]> git.proxmox.com Git - grub2.git/blame - ChangeLog
* grub-core/lib/arg.c (grub_arg_parse): Fix treating of all commands as
[grub2.git] / ChangeLog
CommitLineData
44a1b432
VS
12010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
2
3 * grub-core/lib/arg.c (grub_arg_parse): Fix treating of all commands as
4 if they were BSD-style.
5
edde54e6
VS
62010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
7
8 * grub-core/boot/i386/pc/lnxboot.S: Replace
9 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE with
10 GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART.
11
b65830fa
VS
122010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
13
14 Write embedding zone using Reed-Solomon.
15
16 * Makefile.util.def (grub-setup): Add grub-core/lib/reed_solomon.c.
17 * grub-core/Makefile.am (rs_decoder.S): New target.
18 (kern/i386/pc/startup.S): Depend on rs_decoder.S.
19 * grub-core/kern/i386/pc/startup.S (reed_solomon_redundancy): New field.
20 (multiboot): Move to RS part.
21 (post_reed_solomon): New label.
22 (grub_boot_drive): Move to non-RS part since it's modified in memory
23 on boot.
24 Include rs_decoder.S.
25 * grub-core/lib/reed_solomon.c: New file.
26 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY):
27 New definition.
28 (GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE): Removed.
29 (GRUB_KERNEL_I386_PC_RAW_SIZE): Updated.
30 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): New definition.
31 * include/grub/partition.h (grub_partition_map): Change prototype of
32 embed to allow returning additional sectors.
33 * include/grub/reed_solomon.h: New file.
34 * util/grub-setup.c (setup): Handle Reed-Solomon.
35
0b4b227f
CW
362010-09-28 Colin Watson <cjwatson@ubuntu.com>
37
38 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
39 i386 and x86-64 definedness tests.
40
f772623b
YB
412010-09-27 Yves Blusseau <blusseau@zetam.org>
42
43 Fix generation of kernel_syms.lst
44
45 * grub-core/Makefile.am (kernel_syms.lst): Fix value and position of
46 ASM_PREFIX
47
8e57a6ca
RM
482010-09-26 Robert Millan <rmh@gnu.org>
49
50 Support degraded ZFS arrays in "grub-probe -t device" resolution.
51
52 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): When
53 the pool is an array of devices, iterate through it and return the
54 first device that passes a stat() test (instead of blindly returning
55 the first one).
56
f9130836
RM
572010-09-26 Robert Millan <rmh@gnu.org>
58
59 Build fixes for GNU/kFreeBSD.
60
61 * Makefile.util.def: Add `$(LIBZFS) $(LIBNVPAIR)' library dependencies
62 to programs that require ZFS conversion.
63 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Support
64 kernels that don't have FLOPPY_MAJOR.
65
96510faf
BC
662010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
67
68 * grub-core/kern/emu/full.c (grub_emu_post_init): Fix typo.
69
449333eb
BC
702010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
71
72 Fix grub-emu build.
73
74 * grub-core/kern/emu/main.c: Remove #include <getopt.h>.
75 * grub-core/kern/emu/full.c: Split grub_mdraid_{init,fini} into
76 mdraid09 and mdraid1x.
77
e1fd1939
CW
782010-09-24 Colin Watson <cjwatson@ubuntu.com>
79
80 Re-enable grub-extras.
81
82 * autogen.sh: Create symlinks to ${GRUB_CONTRIB} if necessary to
83 avoid confusing Automake. Run autogen only twice, once for the top
84 level and once for grub-core. Add Makefile.util.def and
85 Makefile.core.def from extra modules to the appropriate autogen
86 invocations. If Makefile.common exists in an extra module, include
87 it in both Makefile.util.am and grub-core/Makefile.core.am;
88 similarly, include any Makefile.util.common file in Makefile.util.am
89 and any Makefile.core.common file in grub-core/Makefile.core.am.
90 * conf/Makefile.common ($(top_srcdir)/grub-core/Makefile.core.am):
91 Depend on $(top_srcdir)/grub-core/Makefile.gcry.def.
92 ($(top_srcdir)/grub-core/Makefile.gcry.def): Remove.
93 * grub-core/Makefile.am: Remove inclusion of Makefile.gcry.am.
94
95 * gentpl.py (gvar_add): Turn GVARS into a set.
96 (global_variable_initializers): Sort global variables on output.
97 (vars_init): New function.
98 (first_time): Likewise.
99 (library): Ensure that non-global variable initialisations are
100 emitted before the first time we emit code for a library block.
101 Append to variables rather than setting them. Only emit
102 noinst_LIBRARIES, BUILT_SOURCES, and CLEANFILES the first time for
103 each conditional path.
104 (program): installdir() emits an Autogen macro, so must be passed to
105 var_add rather than gvar_add.
106 (data): Likewise.
107 (script): Likewise.
108 (rules): New function, centralising handling for different target
109 types. Set up Guile association lists for first_time and vars_init,
110 and send most output to a diversion so that variable initialisations
111 can be emitted first.
112 (module_rules): Use new rules function.
113 (kernel_rules): Likewise.
114 (image_rules): Likewise.
115 (library_rules): Likewise.
116 (program_rules): Likewise.
117 (script_rules): Likewise.
118 (data_rules): Likewise.
119
120 * configure.ac: Add AC_PROG_LN_S, for the benefit of ntldr-img.
121
122 * .bzrignore: Add contrib and grub-core/contrib. Remove
123 grub-core/Makefile.gcry.am.
124
1d12cf29
YB
1252010-09-24 Yves Blusseau <blusseau@zetam.org>
126
127 * grub-core/lib/LzFind.c: Add missing include.
128 * grub-core/lib/LzmaEnc.c: Likewise.
129 * grub-core/script/lexer.c: Likewise.
130 * grub-core/script/yylex.l: Likewise.
131 * util/grub-macho2img.c: Likewise.
132 * util/grub-menulst2cfg.c: Likewise.
133 * util/grub-mklayout.c: Likewise.
134 * util/grub-mkpasswd-pbkdf2.c
135 * util/grub-mkrelpath.c: Likewise.
136 * util/resolve.c: Likewise.
137
dd363028
BC
1382010-09-24 BVK Chaitanya <bvk.groups@gmail.com>
139
140 * Makefile.util.def (example_unit_test): Add
141 grub-core/gnulib/libgnu.a.
142
f5a109e2
GS
1432010-09-23 Grégoire Sutre <gregoire.sutre@gmail.com>
144
145 * grub-core/commands/acpihalt.c (get_sleep_type): Initialize prev.
146
6d0fa83c
VS
1472010-09-23 Vladimir Serbinenko <phcoder@gmail.com>
148
149 Support xz compression on yeeloong.
150
151 * Makefile.util.def (grub-mkimage): Add $(LIBLZMA).
152 * configure.ac: Check for LZMA.
153 * grub-core/Makefile.core.def (xz_decompress): New target.
154 (none_decompress): Likewise.
155 * grub-core/boot/decompressor/minilib.c: New file.
156 * grub-core/boot/decompressor/none.c: Likewise.
157 * grub-core/boot/decompressor/xz.c: Likewise.
158 * grub-core/kern/mips/cache.S: Change to noreorder nomacro.
159 * grub-core/kern/mips/cache_flush.S: Likewise.
160 * grub-core/kern/i386/pc/lzma_decode.S: Remove dead code.
161 * grub-core/kern/mips/startup.S: Move first stage to ...
162 * grub-core/boot/mips/startup_raw.S: ...here. Change to noreorder
163 nomacro.
164 * grub-core/kern/mips/startup.S: Change to noreorder nomacro.
165 * grub-core/lib/mips/relocator_asm.S: Change to noreorder nomacro.
166 * grub-core/lib/xzembed/xz_dec_bcj.c [GRUB_EMBED_DECOMPRESSOR]:
167 Allocate statically.
168 * grub-core/lib/xzembed/xz_dec_lzma2.c [GRUB_EMBED_DECOMPRESSOR]:
169 Allocate statically or use scratch. Don't check CRC32.
170 * grub-core/lib/xzembed/xz_dec_stream.c [GRUB_EMBED_DECOMPRESSOR]:
171 Allocate statically. Don't check CRC32.
172 * include/grub/decompressor.h: New file.
173 * include/grub/offsets.h (GRUB_KERNEL_MIPS_YEELOONG_RAW_SIZE):
174 Removed.
175 (GRUB_KERNEL_MIPS_YEELOONG_UNCOMPRESSED_SIZE): New field.
176 (GRUB_KERNEL_MIPS_YEELOONG_TOTAL_MODULE_SIZE): Adjusted.
177 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX): Likewise.
178 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX_END): Likewise.
179 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_SIZE): New define.
180 * util/grub-mkimage.c (grub_compression_t): New type.
181 (PLATFORM_FLAGS_DECOMPRESSORS): New flag.
182 (image_target_desc): New field default_compression.
183 (image_targets): Adjust yeeloong targets.
184 (compress_kernel_xz) [HAVE_LIBLZMA]: New function.
185 (compress_kernel): New parameter comp.
186 (generate_image): Likewise. Handle new compression case.
187 (options): New option --compression
188 (help): Likewise.
189 (main): Handle new option.
190
1b655af6
GS
1912010-09-22 Grégoire Sutre <gregoire.sutre@gmail.com>
192
193 * grub-core/kern/emu/hostdisk.c [__NetBSD__]: Define FLOPPY_MAJOR.
194
8f03f0b5
CW
1952010-09-22 Colin Watson <cjwatson@ubuntu.com>
196
197 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
198 typo in __i386__ conditional.
199
7835dfd3
VS
2002010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
201
202 * grub-core/loader/multiboot_mbi2.c (GRUB_MACHINE_EFI): Add missing
203 include.
204
e255597e
VS
2052010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
206
6d0fa83c 207 Implement EFI and ACPI multiboot2 extensions.
e255597e
VS
208
209 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare
210 new tags as supported.
211 (acpiv2_size): New function.
212 (grub_multiboot_get_mbi_size): Take new tags into account.
213 (grub_multiboot_make_mbi): Add new tags.
214 * include/grub/multiboot.h (GRUB_MACHINE_HAS_ACPI): New definition.
6d0fa83c 215
6cc14051 2162010-09-21 Aleš Nesrsta <starous@volny.cz>
217
218 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach):
219 Added missing configuration of USB device.
220
df7769d8
CW
2212010-09-21 Colin Watson <cjwatson@ubuntu.com>
222
223 * grub-core/normal/menu_entry.c (run): Make sure we always return
224 a value.
225
b031012d
CW
2262010-09-21 Colin Watson <cjwatson@ubuntu.com>
227
228 * grub-core/commands/efi/lsefimmap.c (grub_cmd_lsefimmap):
229 NumberOfPages is UINT64 according to the UEFI specification, not
230 UINTN. Fix printf format.
231
174de8f3
CW
2322010-09-21 Colin Watson <cjwatson@ubuntu.com>
233
234 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Change type of
235 `err' to grub_usb_err_t.
236 Reported and tested by: KESHAV P.R.
237
d7dbe923
CW
2382010-09-21 Colin Watson <cjwatson@ubuntu.com>
239
240 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Make
241 tpart non-const, so that we can assign to it. (Since this is a
242 typedef, the constness refers to the pointer rather than what it
243 points to.)
244
8d5e2af3
CW
2452010-09-21 Colin Watson <cjwatson@ubuntu.com>
246
247 * conf/Makefile.common (CPPFLAGS_GNULIB): Add
248 $(top_srcdir)/grub-core/gnulib as well as
249 $(top_builddir)/grub-core/gnulib.
250 Reported by: KESHAV P.R.
251
5c527783
CW
2522010-09-21 Colin Watson <cjwatson@ubuntu.com>
253
254 * util/grub-install.in: Fix the bootloader ID option to be
255 consistently --bootloader-id, not --bootloader_id.
256 Reported by: KESHAV P.R.
257
d309a16e
CW
2582010-09-21 Colin Watson <cjwatson@ubuntu.com>
259
260 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Make "Compute or
261 check hash checksum." consistently translatable.
262
b830cd16
YB
2632010-09-21 Yves Blusseau <blusseau@zetam.org>
264
265 * conf/Makefile.common (CPPFLAGS_GNULIB): Replace $(top_srcdir) with
266 $(top_builddir).
267
c4fe27a8
CW
2682010-09-21 Colin Watson <cjwatson@ubuntu.com>
269
270 * grub-core/commands/hashsum.c (aliases): Add sha1sum alias.
271 (GRUB_MOD_INIT): Register sha1sum command.
272 (GRUB_MOD_FINI): Unregister sha1sum command.
273
a4c1d277
YB
2742010-09-21 Yves Blusseau <blusseau@zetam.org>
275
276 Keep boot and grub directory names in sync with utils scripts
277
278 * configure.ac: Define GRUB_BOOT_DIR_NAME and GRUB_DIR_NAME macros.
279 * config.h.in: Add previous macros.
280 * include/grub/emu/misc.h (DEFAULT_DIRECTORY): Use previous macros.
281 * util/grub-install.in: Use $bootdir and $grubdir variables.
282
4eff79d2
CW
2832010-09-21 Colin Watson <cjwatson@ubuntu.com>
284
285 * grub-core/kern/emu/hostdisk.c (find_system_device): Only try to
286 convert partition names to disk names if the new `convert' parameter
287 is set.
288 (grub_util_biosdisk_get_grub_dev): If opening the disk device
289 returns GRUB_ERR_UNKNOWN_DEVICE, treat the partition device as a
290 disk in its own right. This can happen with Xen disk images.
291
934d7e44
YB
2922010-09-21 Yves Blusseau <blusseau@zetam.org>
293
294 * util/grub-editenv.c: Update strings to avoid warnings when generating
295 grub.pot file.
296 * util/grub-setup.c: Likewise.
934d7e44 297
df3367cc
VS
2982010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
299
300 * configure.ac: Change version to 1.99~beta0.
301
77a94e98
VS
3022010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
303
304 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
305 Add BADRAM.
306 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap):
307 Likewise.
308 * include/multiboot.h: Resynced with specification.
309 * include/multiboot2.h: Likewise.
310
269004c1
CW
3112010-09-21 Colin Watson <cjwatson@ubuntu.com>
312
313 Fix po directory handling.
314
315 * configure.ac: Create po/Makefile.in rather than po/Makefile.
316 * grub-core/gnulib/Makefile.am: Import gettext module.
317 * m4/gnulib-cache.m4: Likewise.
318 * m4/gnulib-comp.m4: Likewise.
319 * m4/gettext.m4: New file, from gnulib.
320 * m4/glibc2.m4: Likewise.
321 * m4/iconv.m4: Likewise.
322 * m4/intdiv0.m4: Likewise.
323 * m4/intl.m4: Likewise.
324 * m4/intldir.m4: Likewise.
325 * m4/intlmacosx.m4: Likewise.
326 * m4/intmax.m4: Likewise.
327 * m4/inttypes-pri.m4: Likewise.
328 * m4/lcmessage.m4: Likewise.
329 * m4/lib-ld.m4: Likewise.
330 * m4/lib-link.m4: Likewise.
331 * m4/lib-prefix.m4: Likewise.
332 * m4/lock.m4: Likewise.
333 * m4/nls.m4: Likewise.
334 * m4/po.m4: Likewise.
335 * m4/printf-posix.m4: Likewise.
336 * m4/progtest.m4: Likewise.
337 * m4/threadlib.m4: Likewise.
338 * m4/uintmax_t.m4: Likewise.
339 * m4/visibility.m4: Likewise.
340 * po/Makefile.am: Remove.
341 * po/Makefile.in.in: New file, from gettext.
342 ($(DOMAIN).pot-update): Support POTFILES-shell.
343 * po/Makevars: New file.
344 * po/POTFILES-shell: Rename to ...
345 * po/POTFILES-shell.in: ... this. Update.
346 * po/POTFILES: Rename to ...
347 * po/POTFILES.in: ... this. Update.
348 * po/Rules-quot: New file, from gettext.
349 * po/boldquot.sed: Likewise.
350 * po/en@boldquot.header: Likewise.
351 * po/en@quot.header: Likewise.
352 * po/insert-header.sin: Likewise.
353 * po/quot.sed: Likewise.
354 * po/remove-potcdate.sin: Likewise.
355
3e0fa5d0
VS
3562010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
357
358 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Use UUID when possible.
359
ade9bd66
VS
3602010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
361
362 * util/grub.d/20_linux_xen.in: Use submenus.
363
fc55cc4c
VS
3642010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
365
366 Support submenus.
367
368 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): New
369 parameter submenu. All users updated.
370 * grub-core/normal/main.c (free_menu): Rename to ...
371 (grub_normal_free_menu): ... this. Made global.
372 * grub-core/normal/menu.c (grub_menu_execute_entry): Open new context
373 if requested.
374 * grub-core/normal/menu_entry.c (screen): New field submenu.
375 (make_screen): Set submenu.
376 (run): Open new context if requested.
377 * include/grub/menu.h (grub_menu_entry): New field submenu.
378 * include/grub/normal.h (grub_normal_free_menu): New proto.
379
600cedf7
VS
3802010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
381
382 Menu entries extractor.
383
384 * grub-core/commands/configfile.c (grub_cmd_source): Implement extractor
385 variants.
386 (GRUB_MOD_INIT): Register new variants.
387 (GRUB_MOD_FINI): Unregister new variants.
388 * grub-core/commands/legacycfg.c (grub_cmd_legacy_configfile): Merge
389 into grub_cmd_legacy_source.
390 (grub_cmd_legacy_source): Implement extractor variants.
391 (GRUB_MOD_INIT): Register new variants.
392 (GRUB_MOD_FINI): Unregister new variants.
393 * grub-core/commands/menuentry.c (grub_menu_init): Declare menuentry
394 as an extractor.
395 * grub-core/commands/search_wrap.c (GRUB_MOD_INIT): Declare
396 search as an extractor.
397 * grub-core/commands/test.c (GRUB_MOD_INIT): Declare
398 test as an extractor.
399 * grub-core/kern/corecmd.c (grub_register_core_commands): Declare set
400 as an extractor.
401 * grub-core/normal/context.c (grub_env_context_open): Reorganised.
402 (grub_env_new_context): New function.
403 (grub_env_context_open): Likewise.
404 (grub_env_extractor_open): Likewise.
405 (grub_env_extractor_close): Likewise.
406 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
407 grub_extractor_level.
408 * include/grub/command.h (GRUB_COMMAND_FLAG_EXTRACTOR): New flag.
409 * include/grub/env.h (grub_env_extractor_open): New proto.
410 (grub_env_extractor_close): Likewise.
411 * include/grub/normal.h (grub_extractor_level): New external variable.
412
7bda3a87
VS
4132010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
414
415 Make cutmem accept a region specification.
416 Suggested by: Samuel Thibault
417
418 * grub-core/mmap/mmap.c (parsemem): New function.
419 (grub_cmd_cutmem): Handle new arguments.
420
2ea57f88
VS
4212010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
422
423 New command cutmem.
424
425 * grub-core/mmap/mmap.c (grub_cmd_cutmem): New function.
426 (GRUB_MOD_INIT): Register new command.
427 (GRUB_MOD_FINI): Unregister new command.
428
74342e31
VS
4292010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
430
431 Support some annoying BSD and Minix subpartitions.
432
433 * Makefile.util.def (libgrub.a): Add grub-core/partmap/bsdlabel.c.
434 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
435 Properly handle concatenation.
436 * grub-core/kern/device.c (grub_device_iterate): Likewise.
437 * grub-core/normal/completion.c (iterate_partition): Likewise.
438 * grub-core/kern/disk.c (grub_disk_open): Make disk->name not
439 contain partition. All users updated.
440 * grub-core/partmap/bsdlabel.c (grub_netbsdlabel_partition_map): New
441 struct.
442 (grub_openbsdlabel_partition_map): Likewise.
443 (bsdlabel_partition_map_iterate): Rename to ..
444 (iterate_real): ... this. New arguments sector, freebsd and pmap.
445 (bsdlabel_partition_map_iterate): New function.
446 (netopenbsdlabel_partition_map_iterate): Likewise.
447 (netbsdlabel_partition_map_iterate): Likewise.
448 (openbsdlabel_partition_map_iterate): Likewise.
449 (GRUB_MOD_INIT): Register new partmaps.
450 (GRUB_MOD_FINI): Unregister new partmaps.
451 * grub-core/partmap/msdos.c (pc_partition_map_iterate): Rename to ...
452 (grub_partition_msdos_iterate): ... this. All users updated.
453 Don't support embedding other than in a minix partition.
454 * include/grub/msdos_partition.h (grub_partition_msdos_iterate): New
455 proto.
456 * include/grub/partition.h (grub_partition): New field msdostype.
457 * util/grub-install.in: Handle openbsd and netbsd types being in
458 part_bsd module.
459
1e8d555b
VS
4602010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
461
462 Split mdraid.mod into mdraid09.mod and mdraid1x.mod.
463
464 * Makefile.util.def (libgrub.a): Add grub-core/disk/mdraid1x_linux.c.
465 * grub-core/Makefile.core.def (mdraid): Renamed to ...
466 (mdraid09): ... this.
467 (mdraid1x): New module.
468 * grub-core/disk/mdraid_linux.c: Move 1.x parts ...
469 * grub-core/disk/mdraid1x_linux.c: ...here. All users updated.
470
899d8af4
VS
4712010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
472
473 * grub-core/kern/emu/misc.c (asprintf): Use vsnprintf instead of
474 vsprintf.
475
40901acd
CW
4762010-09-20 Colin Watson <cjwatson@ubuntu.com>
477
478 * grub-core/commands/efi/lsefimmap.c: Correct header.
479 * NEWS: Update.
480
dfe3b247
CW
4812010-09-20 Colin Watson <cjwatson@ubuntu.com>
482
483 * util/grub-editenv.c (argp_parser): Don't pass translated strings
484 as printf format strings; the translations might contain '%' which
485 could cause a crash.
486 (main): Likewise.
487 * util/grub-fstest.c (argp_parser): Likewise.
488 * util/grub-setup.c (argp_parser): Likewise.
489 (main): Likewise.
490
3286a4b4
VS
4912010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
492
493 Use argp in grub-fstest.
494
495 * util/grub-fstest.c: Don't include getopt.h.
496 Include argp.h.
497 (root): New variable.
498 (args_count): Likewise.
499 (nparm): Likewise.
500 (num_disks): Likewise.
501 (images): Likewise.
502 (cmd): Likewise.
503 (debug_str): Likewise.
504 (args): Likewise.
505 (options): Transformed to argp.
506 (usage): Removed.
507 (main): Split argument parsing into ...
508 (argp_parser): ... this. Changed to argp format.
509 (argp): New variable.
510 (main): Use argp_parse.
511
3dccbe4b
TG
5122010-09-20 Tristan Gingold <gingold@free.fr>
5132010-09-20 Robert Millan <rmh.grub@aybabtu.com>
5142010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
515
516 * grub-core/commands/efi/lsefimmap.c: New file.
517 * grub-core/Makefile.core.def (lsefimmap): New module.
518 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): New definition.
519
38c259a7
VS
5202010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
521
522 Pause the execution (10s max) if any errors are displayed so the user
523 has a chance to see them.
524
525 * grub-core/kern/err.c (grub_err_printed_errors): New variable.
526 (grub_print_error): Increment grub_err_printed_errors.
527 * grub-core/normal/menu.c (grub_menu_execute_entry): Pause the
528 execution if any errors were displayed.
529 (show_menu): Remove old code for pause.
530 * grub-core/normal/menu_entry.c (run): Likewise.
531 * grub-core/normal/term.c (grub_normal_char_counter): Removed. All
532 users updated.
533 (grub_normal_get_char_counter): Likewise.
534 * include/grub/err.h (grub_err_printed_errors): New external variable.
535 * include/grub/normal.h (grub_normal_get_char_counter): Removed.
536
f218b09c
VS
5372010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
538
539 Support multiboot VBE info.
540
541 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
542 Take VBE info into account.
543 (fill_vbe_info) [GRUB_MACHINE_HAS_VBE]: New function.
544 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
545 Call fill_vbe_info when appropriate.
546 (grub_multiboot_make_mbi): Account for the size occupied by VBE info.
547 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare tags
548 as supported.
549 (grub_multiboot_get_mbi_size): Take new tags into account.
550 (fill_vbe_tag) [GRUB_MACHINE_HAS_VBE]: New function.
551 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
552 Call fill_vbe_tag when appropriate.
553 (grub_multiboot_make_mbi): Properly align tags.
554 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_pm_interface): New
555 function.
556 * include/grub/i386/pc/vbe.h (grub_vbe_bios_get_pm_interface): New
557 proto.
558 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): New definition.
559
a9cc5438
VS
5602010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
561
562 Suport manual terminal geometry specification.
563
564 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions):
565 Save state in grub_ofconsole_terminfo_output.
566 (grub_ofconsole_term): Use grub_terminfo_getwh.
567 (grub_ofconsole_getwh): Removed.
568 * grub-core/term/serial.c (grub_serial_getwh): Removed.
569 (grub_serial_term): Use grub_terminfo_getwh.
570 * grub-core/term/terminfo.c (grub_terminfo_getwh): New function.
571 (options): New struct.
572 (OPTION_*): New enum.
573 (grub_cmd_terminfo): Transform into extcmd and handle new parameters.
574 * include/grub/terminfo.h (grub_terminfo_output_state): New fields
575 width and height.
576 (grub_terminfo_getwh): New proto.
577 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Handle --lines.
578
1a8fed20
VS
5792010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
580
581 Handle legacy "terminal" command.
582
583 * grub-core/lib/legacy_parse.c (legacy_command): New flags FLAG_TITLE
584 and FLAG_TERMINAL.
585 (legacy_commands): Add terminal and title.
586 (grub_legacy_parse): Handle terminal. Simplify title handling.
587
41e9c57d
VS
5882010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
589
590 * grub-core/lib/arg.c (grub_arg_show_help): Correctly handle
591 parameters overflow.
592
61c874c5
CW
5932010-09-20 Colin Watson <cjwatson@ubuntu.com>
594
595 * .bzrignore: Add grub-core/gnulib/sys, widthspec.bin, and
596 widthspec.h.
597
598 * docs/grub.texi (Shell-like scripting): Document `!'.
599 (Network): Simplify using new i386-pc-pxe format. Mention
600 grub-mknetdir.
601
602 * NEWS: Update.
603
943682b4
CW
6042010-09-20 Colin Watson <cjwatson@ubuntu.com>
605
606 * Makefile.am (SUBDIRS): Restore "."; it's important to force
607 ordering, so that e.g. ascii.h is built before grub-core/font/font.c
608 when needed.
609
6d3d698d
CW
6102010-09-20 Colin Watson <cjwatson@ubuntu.com>
611
612 * grub-core/commands/efi/lsefisystab.c: Correct header.
613 * grub-core/commands/efi/lssal.c: Likewise.
614 * grub-core/commands/testload.c: Likewise.
615
c982589f
CW
6162010-09-20 Colin Watson <cjwatson@ubuntu.com>
617
618 * util/grub-mkrescue.in: Add explicit root argument to --set to
619 prevent the UUID being interpreted as an argument to --set (matches
620 previous change to prepare_grub_to_access_device).
621
a63c31b6
CW
6222010-09-20 Colin Watson <cjwatson@ubuntu.com>
623
624 * kern/emu/hostdisk.c: Include <sys/ioctl.h> and <sys/disklabel.h>
625 on FreeBSD. Define HAVE_DIOCGDINFO on NetBSD and FreeBSD to reduce
626 the verbosity of later #ifs.
627 (find_partition_start): Define this function on FreeBSD too.
628 (device_is_wholedisk) [__FreeBSD__ || __FreeBSD_kernel__]: New
629 function.
630 (grub_util_biosdisk_get_grub_dev): Use partition-start-sector logic
631 on FreeBSD.
632
6439b8ee
YB
6332010-09-20 Yves Blusseau <blusseau@zetam.org>
634
635 * util/grub-editenv.c: Use argp instead of getopt.
636
c5930ec8
YB
6372010-09-20 Yves Blusseau <blusseau@zetam.org>
638
639 * util/grub-setup.c: Use argp instead of getopt.
640
15c69261
YB
6412010-09-20 Yves Blusseau <blusseau@zetam.org>
642
643 Use gnulib-tool to create gnulib source files.
644
645 * Add gnulib files generated by gnulib-tool in build-aux, m4 and
646 grub-core/gnulib directories
647 * .bzignore: Add **/.deps and autogenerated gnulib files
648 * configure.ac: Assign auxiliary directory to build-aux, add invocation
649 of gnulib macros, add grub-core/gnulib/Makefile
650 * Makefile.am: Add gnulib directory in SUBDIRS (removing unnecessary .),
651 include m4 directory to aclocal.
652 * Makefile.util.def: Remove direct compilation of gnulib source files
653 and use the new grub-core/gnulib/libgnu.a.
654 * build-aux/config.rpath: move config.rpath from top directory to
655 build-aux
656 * conf/Makefile.common: Remove the macro _GL_UNUSED already defined
657 in gnulib headers
658 * conf/Makefile.extra-dist: Add m4/gnulib-cache.m4
659 * grub-core/Makefile.core.def: Remove unnecessary extra_dist
660 * grub-core/lib/posix_wrap/localcharset.h (locale_charset): Update
661 header.
662 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Return static
663 string.
664
e511c9f5
YB
6652010-09-20 Yves Blusseau <blusseau@zetam.org>
666
667 * .bzrignore: Add grub-kbdcomp, grub-menulst2cfg, *.marker,
668 grub-core/genmod.sh and grub-core/gensyminfo.sh
669
c2dede05
BC
6702010-09-20 BVK Chaitanya <bvk.groups@gmail.com>
671
672 Add a test for echo command options.
673
674 * tests/grub_cmd_echo.in: New test.
675 * Makefile.util.def: Rules for new test.
676
c55f5018
SJ
6772010-09-20 Szymon Janc <szymon@janc.net.pl>
678
679 Remove crc.mod and move crc command to hashsum.mod.
680 Remove lib/crc.c - users updated to use gcrypt implementation.
681
682 * grub-core/commands/crc.c: Removed.
683 * grub-core/Makefile.core.def (crc): Module removed.
684 * grub-core/commands/hashsum.c (aliases[]): Add crc alias.
685 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Register crc command.
686 * grub-core/commands/hashsum.c (GRUB_MOD_FINI): Unregister crc command.
687 * grub-core/lib/crc.c: Removed.
688 * include/grub/lib/crc.h: Removed.
689 * Makefile.util.def (crc): Remove lib/crc.c
690 * grub-core/Makefile.core.def (libgrub.a): Remove grub-core/lib/crc.c.
691 * util/grub-fstest.c (cmd_crd): Use libgcrypt crc implementation.
692 * Makefile.util.def (libgrub.a): Add grub-core/lib/libgcrypt-grub/cipher/crc.c.
693 * Makefile.util.def (grub-fstest): Add CFLAGS_GCRY to cflags.
694 * Makefile.util.def (grub-fstest): Add CPPFLAGS_GCRY to cppflags.
695 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Use libgcrypt crc implementation.
696
e0337366
VS
6972010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
698
699 * grub-core/boot/i386/pc/boot.S: Ignore %dl if it's not in a sane range.
700
742f9232
VS
7012010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
702
703 Split config.h for util and core.
704
705 * acinclude.m4 (HAVE_ASM_USCORE): Transformed into a variable.
706 (ADDR32): Likewise.
707 (DATA32): Likewise.
708 (BSS_START_SYMBOL): Likewise.
709 (END_SYMBOL): Likewise.
710 (NEED_ENABLE_EXECUTE_STACK): Likewise. All users updated.
711 (grub_I386_ASM_ABSOLUTE_WITHOUT_ASTERISK): Removed.
712 * config.h.in: New file.
713 * configure.ac: Use config-util.h as config define file.
714 Rename MACHINE into GRUB_MACHINE. All users updated.
715 (NEED_REGISTER_FRAME_INFO): Transformed into a variable. All users
716 updated.
717 (NESTED_FUNC_ATTR): Likewise.
718 Substitue new variables.
719 (COND_HAVE_ASM_USCORE): New conditional.
720 * grub-core/Makefile.am (ASM_PREFIX): New variable.
721 (kernel_syms.lst): Use ASM_PREFIX.
722 * grub-core/kern/emu/console.c: Include config-util.h.
723 * grub-core/kern/emu/misc.c: Likewise.
724 * grub-core/kern/emu/mm.c: Likewise.
725 * include/grub/emu/misc.h: Likewise.
726 * include/grub/libgcc.h: Likewise.
727
39feb0e8
VS
7282010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
729
730 * grub-core/term/efi/console.c (efi_codes): Fix GRUB_TERM_KEY_*
731 constants usage.
732 * grub-core/kern/emu/console.c (grub_ncurses_getkey):
733 Fix GRUB_TERM_KEY_* constants usage.
734 * grub-core/kern/emu/misc.c (asprintf): Fix vasprintf usage.
735
9af6dac3
VS
7362010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
737
738 * grub-core/bus/usb/ohci.c (grub_ohci_cancel_transfer): Use %p to
739 print pointer.
740 * grub-core/bus/usb/uhci.c: Remove empty define.
741 (grub_uhci_check_transfer): Add missing cast.
742 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Use %p to
743 print pointer.
744 * grub-core/term/usb_keyboard.c (grub_usb_keyboard_getkey): Use
745 PRIuGRUB_SIZE.
746 * include/grub/types.h (PRIuGRUB_SIZE): New definition.
747
d6d94820
VS
7482010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
749
750 * grub-core/Makefile.core.def (legacycfg): Add
751 lib/i386/pc/vesa_modes_table.c on emu.
752
3572f2b6
BC
7532010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
754
755 Reduce number of temporary files generated by build system.
756
757 * grub-core/gencmdlist.sh: Removed.
758 * grub-core/genfslist.sh: Removed.
759 * grub-core/genhandlerlist.sh: Removed.
760 * grub-core/genmodsrc.sh: Removed.
761 * grub-core/genpartmaplist.sh: Removed.
762 * grub-core/genparttoollist.sh: Removed.
763 * grub-core/gentermiinallist.sh: Removed.
764 * grub-core/genvideolist.sh: Removed.
765
766 * grub-core/genmod.sh.in: New file.
767 * grub-core/gensyminfo.sh.in: New file.
768
769 * conf/Makefile.common (CPPFLAGS_*_LIST): New marker flags.
770 * conf/Makefile.extra-dist: Update with new files.
771 * gentpl.py: Remove rules related to unnecessary temporary files.
772 * grub-core/Makefile.am (syminfo.lst): New replacement for def-*
773 and und-* files.
774 * grub-core/Makefile.core.def: New rules for gensyminfo.sh and
775 genmod.sh scripts.
776 * grub-core/bus/usb/uhci.c: Remove empty #define.
777 * grub-core/genmoddep.awk: Updated with new syminfo format.
778 * util/bash-completion.d/Makefile.am: Add config.log to
779 CLEANFILES.
780
c836b030
YB
7812010-09-19 Yves Blusseau <blusseau@zetam.org>
782
783 * Makefile.util.def: Add forgotten $(LIBINTL) library.
784
2f4e8053
BC
7852010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
786
787 * util/grub-mkconfig.in: Check the config script for syntax errors
788 before saving.
789
75831c34
CW
7902010-09-19 Colin Watson <cjwatson@ubuntu.com>
7912010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
792
793 * Makefile.util.def (grub-install): Use util/grub-install.in on all
794 platforms.
795 * util/grub-install.in: Add EFI and IEEE1275 support.
796 * util/i386/efi/grub-install.in: Removed.
797 * util/ieee1275/grub-install.in: Likewise.
798
eaf41b25
VS
7992010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
800
801 * grub-core/commands/i386/cmostest.c (+parse_args): New function.
802 (grub_cmd_cmosclean): Likewise.
803 (GRUB_MOD_INIT): Register command cmosclean.
804 * util/grub-mkconfig.in: Export GRUB_BUTTON_CMOS_CLEAN.
805 * util/grub.d/00_header.in: Handle GRUB_BUTTON_CMOS_CLEAN.
806
1a9130dd
CPE
8072010-09-18 Carles Pina i Estany <carles@pina.cat>
8082010-09-18 Aleš Nesrsta <starous@volny.cz>
8092010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
810
811 Add keyboard layouts support.
812
813 * Makefile.util.def (grub-mklayout): New file.
814 (grub-kbdcomp): New script.
815 * grub-core/Makefile.am (KERNEL_HEADER_FILES) [COND_mips_yeeloong]:
816 Add keyboard_layouts.h.
817 * grub-core/Makefile.core.def (kernel): Add commands/keylayouts.c and
818 commands/boot.c on yeeloong.
819 (keylayouts): New module.
820 * grub-core/bus/usb/ohci.c
821 * grub-core/bus/usb/uhci.c
822 * grub-core/bus/usb/usbhub.c (rescan): New variable.
823 (grub_usb_add_hub): Poll interrupt pipe for device handling.
824 (attach_root_port): Likewise.
825 (poll_nonroot_hub): Likewise.
826 (grub_usb_poll_devices): Likewise.
827 (detach_device): Close transfer.
828 * grub-core/bus/usb/usbtrans.c (grub_usb_execute_and_wait_transfer): New
829 function.
830 (grub_usb_bulk_setup_readwrite): Likewise.
831 (grub_usb_bulk_finish_readwrite): Likewise.
832 * grub-core/commands/keylayouts.c: New file.
833 * grub-core/commands/keystatus.c (grub_getkeystatus): New function.
834 * grub-core/commands/menuentry.c (hotkey_aliases): All several new
835 aliases.
836 * grub-core/term/at_keyboard.c: Restructured to use keylayouts and
837 support scancode 2.
838 * grub-core/term/usb_keyboard.c: Restructured to use keylayouts.
839 * include/grub/keyboard_layouts.h: New file.
840 * util/grub-mklayout.c: New file.
841 * util/grub-kbdcomp.in: Likewise.
842
a1d84a5e
VS
8432010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
844
845 Unify memory types.
846
847 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include memory.h.
848 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap): Output user-readable
849 types.
850 * grub-core/kern/i386/multiboot_mmap.c (grub_lower_mem): Removed.
851 (grub_upper_mem): Likewise.
852 * grub-core/kern/ieee1275/init.c (grub_upper_mem): Likewise.
853 * include/grub/memory.h (grub_memory_type_t): New enum.
854 All users updated.
855
9696382e
VS
8562010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
857
858 * grub-core/Makefile.core.def (lsapm): New module.
859 * grub-core/commands/i386/pc/lsapm.c: New file.
860 * grub-core/loader/i386/multiboot_mbi.c (make_mbi) [GRUB_MACHINE_PCBIOS]: Pass APM info.
861 * grub-core/loader/multiboot_mbi2.c (make_mbi) [GRUB_MACHINE_PCBIOS]:
862 Likewise.
863 * include/grub/i386/pc/apm.h: New file.
864 * include/multiboot.h (multiboot_apm_info): New struct.
865
8662010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
867
868 GRUB-legacy configuration file support.
869
870 * Makefile.util.def (grub-menulst2cfg): New util.
871 * docs/man/grub-menulst2cfg.h2m: New file.
872 * grub-core/Makefile.core.def (legacycfg): New module.
873 * grub-core/commands/legacycfg.c: New file.
874 * grub-core/commands/menuentry.c (append_menu_entry): Rename to ...
875 (grub_normal_add_menu_entry): ... this.
876 * grub-core/commands/password.c (grub_cmd_password): Split main part to ...
877 (grub_normal_set_password): ...this.
878 * grub-core/commands/videoinfo.c (grub_cmd_videoinfo): Support MODE.
879 * grub-core/loader/i386/linux.c (linux_vesafb_res): Move to ..,
880 * grub-core/lib/i386/pc/vesa_modes_table.c: ... here.
881 * grub-core/lib/legacy_parse.c: New file.
882 * grub-core/normal/auth.c (grub_cmd_authenticate): New command.
883 * include/grub/i386/pc/vesa_modes_table.h: New file.
884 * include/grub/legacy_parse.h: Likewise.
885 * include/grub/normal.h (grub_normal_add_menu_entry): New proto.
886 * util/grub-menulst2cfg.c: New file.
887
bf8d1338
CW
8882010-09-17 Colin Watson <cjwatson@ubuntu.com>
889
890 * grub-core/kern/emu/hostdisk.c
891 (convert_system_partition_to_system_disk): Initialise node.
892
9c0bad2e
CW
8932010-09-17 Colin Watson <cjwatson@ubuntu.com>
894
895 * grub-core/kern/emu/hostdisk.c
896 (convert_system_partition_to_system_disk): Fix devmapper memory pool
897 leak.
898 Reported and based on patch by: Modestas Vainius.
899
a939d135
CW
9002010-09-17 Colin Watson <cjwatson@ubuntu.com>
901
902 Fix DM-RAID probing with recent versions of device-mapper udev
903 rules.
904
905 * grub-core/kern/emu/hostdisk.c (read_device_map): Don't
906 canonicalise device paths under /dev/mapper/.
907 (convert_system_partition_to_system_disk): Compare the
908 uncanonicalised path to /dev/mapper/ rather than the canonicalised
909 path, since device nodes under /dev/mapper/ are often symlinks.
910
0f7ee3c9
YB
9112010-09-17 Yves Blusseau <blusseau@zetam.org>
912
913 * .bzrignore: *.d removed (old rule), add *.image and symlist.h.
914
10854d0d
YB
9152010-09-16 Yves Blusseau <blusseau@zetam.org>
916
917 * configure.ac: Avoid some annoying error messages if freetype-config
918 program is not found.
919
108538d8
CW
9202010-09-16 Colin Watson <cjwatson@ubuntu.com>
921
922 Support RAID on virtio devices, and others.
923
924 * grub-core/kern/emu/getroot.c [__MINGW32__] (find_root_device):
925 Rename to ...
926 [__MINGW32__] (grub_find_device): ... this.
927 [! __MINGW32__ && ! __CYGWIN__] (find_root_device): Rename to ...
928 [! __MINGW32__ && ! __CYGWIN__] (grub_find_device): ... this. Use a
929 reasonable default if dir is NULL.
930 [! __MINGW32__ && __CYGWIN__] (find_cygwin_root_device): Rename to
931 ...
932 [! __MINGW32__ && __CYGWIN__] (grub_find_device): ... this.
933 (grub_guess_root_device): Update callers.
934 * include/grub/emu/getroot.h (grub_find_device): Add prototype.
935
936 * util/raid.c (grub_util_getdiskname): Remove.
937 (grub_util_raid_getmembers): Use grub_find_device rather than
938 grub_util_getdiskname.
939
e5bfc130
CW
9402010-09-16 Colin Watson <cjwatson@ubuntu.com>
941
942 * docs/grub.texi (serial): Remove obsolete comment about GRUB
943 needing to be compiled with serial support.
944 (ls): Indicate that multiple files are accepted.
945 * grub-core/commands/ls.c (GRUB_MOD_INIT): Update help text to
946 indicate that multiple files are accepted.
947
be458ae2
CW
9482010-09-16 Colin Watson <cjwatson@ubuntu.com>
949
950 * .bzrignore: Add *.1, *.8, grub-shell, grub-shell-tester,
951 libgrub_a_init.c, and util/bash-completion.d/grub.
952
cb731b5e
VS
9532010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
954
955 * util/grub-setup.c (setup): Fix incorrect container semantics.
956
35139e8a
VS
9572010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
958
959 * grub-core/commands/parttool.c (grub_cmd_parttool): Fix a variable
960 misusage.
961 Reported by: J. Nick Terry
962
e50fca4a
VS
9632010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
964
965 Move embedding routines to partmap sources files.
966
967 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot)
968 [GRUB_UTIL]: New variable.
969 (gpt_partition_map_iterate): Set part.parent.
970 (gpt_partition_map_embed) [GRUB_UTIL]: New function.
971 (grub_gpt_partition_map) [GRUB_UTIL]: Set .embed.
972 * grub-core/partmap/msdos.c (pc_partition_map_embed) [GRUB_UTIL]:
973 New function.
974 (grub_msdos_partition_map) [GRUB_UTIL]: Set .embed.
975 * include/grub/partition.h (grub_embed_type_t) [GRUB_UTIL]: New type.
976 (grub_partition_map) [GRUB_UTIL]: New field embed.
977 * util/grub-setup.c (grub_gpt_partition_type_bios_boot): Removed.
978 (setup): Use ->embed.
979
f00478b7
VS
9802010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
981
982 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): New
983 function.
984 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_floppy): New proto.
985 * util/grub-setup.c (setup): Use grub_util_biosdisk_is_floppy.
986
2b94e3ff
YB
9872010-09-15 Yves Blusseau <blusseau@zetam.org>
988
989 Add function to get completions from usage.
990
991 * util/bash-completion.d/grub-completion.bash.in: Add function to get
992 completions from usage. Use LC_ALL=C to get options properly.
993
2e04a006
VS
9942010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
995
996 * grub-core/gnulib/basename-lgpl.c: Imported.
997 * grub-core/gnulib/basename.c: Likewise.
998 * grub-core/gnulib/dirname-lgpl.c: Likewise.
999 * grub-core/gnulib/dirname.c: Likewise.
1000 * grub-core/gnulib/dirname.h: Likewise.
1001 * grub-core/gnulib/stripslash.c: Likewise.
1002
5dcdf93a
VS
10032010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
1004
1005 * grub-core/gnulib/error.c: Resynced.
1006 * grub-core/gnulib/getopt.c: Likewise.
1007 * grub-core/gnulib/getopt_int.h: Likewise.
1008 * grub-core/gnulib/regex.h: Likewise.
1009 * grub-core/gnulib/regex_internal.c: Likewise.
1010 * grub-core/gnulib/regex_internal.h: Likewise.
1011
014f47b7
SJ
10122010-09-15 Szymon Janc <szymon@janc.net.pl>
1013
1014 * grub-core/lib/xzembed/xz_dec_stream.c (dec_main): Fix index and block
1015 CRC calculations and validity checks.
1016 * grub-core/lib/xzembed/xz_dec_stream.c (dec_index): Fix index CRC
1017 calculations.
1018
dd521a4a
SJ
10192010-09-15 Szymon Janc <szymon@janc.net.pl>
1020
1021 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_end): Fix memory leak.
1022
79c4eeb9
VS
10232010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
1024
1025 Fix incorrect echo options handling.
1026 Reported by: Yves Blusseau.
1027
1028 * include/grub/command.h (grub_command_flags_t): New flags
1029 GRUB_COMMAND_ACCEPT_DASH and GRUB_COMMAND_OPTIONS_AT_START.
1030 * grub-core/lib/arg.c (grub_arg_parse): Handle new flags.
1031 * grub-core/commands/echo.c (GRUB_MOD_INIT): Use new flags.
1032
ed80f7d5
VS
10332010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
1034
1035 * include/grub/command.h (GRUB_COMMAND_FLAG_CMDLINE): Removed. All
1036 users updated.
1037 (GRUB_COMMAND_FLAG_MENU): Likewise.
1038 (GRUB_COMMAND_FLAG_BOTH): Likewise.
1039 (GRUB_COMMAND_FLAG_TITLE): Removed.
1040 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
1041 (GRUB_COMMAND_FLAG_EXTCMD): Moved into enum.
1042 (GRUB_COMMAND_FLAG_DYNCMD): Likewise.
1043 (GRUB_COMMAND_FLAG_BLOCKS): Likewise.
1044 (grub_command_flags_t): New enum. All users updated.
1045
5fe7620a
SG
10462010-09-14 Seth Goldberg <seth.goldberg@oracle.com>
1047
1048 Fix solaris compilation.
1049
1050 * grub-core/Makefile.core.def (kernel): Include gnulib/error.c on emu.
1051 (grub-emu): Add LIBZFS and LIBNVPAIR to ldadd.
1052 (grub-emu-list): Likewise.
1053
545b752f
VS
10542010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
1055
1056 Remove deprecated root command.
1057
1058 * grub-core/commands/minicmd.c (grub_mini_cmd_root): Removed. All users
1059 updated.
1060
6c1a338c
VS
10612010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
1062
1063 * util/i386/pc/grub-setup.c: Merge this ...
1064 * util/sparc64/ieee1275/grub-setup.c: ... and this ...
1065 * util/grub-setup.c: ... into this.
1066 * include/grub/sparc64/ieee1275/boot.h (grub_boot_blocklist) [ASM_FILE]:
1067 New struct.
1068
10692010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
1070
1071 * grub-core/fs/ext2.c (grub_ext2_open): Use return error value when
1072 possible.
1073
d2ea4551
VS
10742010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
1075
1076 * grub-core/partmap/sun.c (sun_partition_map_iterate): Don't needlesly
1077 allocate p.
1078
3c3b5040
VS
10792010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
1080
1081 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
1082 explicit root argument to set to prevent UUID to be interpreted as
1083 argument to set.
1084
b71c3fae
VS
10852010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
1086
1087 * grub-core/kern/sparc64/ieee1275/crt0.S: Align stack.
1088
275433e6
VS
10892010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
1090
1091 Don't export grub_gate_a20.
1092
1093 * grub-core/kern/i386/pc/init.c: Remove leftovers.
1094 * grub-core/kern/i386/pc/startup.S (FUNCTION(grub_gate_a20)): Rename
1095 to ...
1096 (grub_gate_a20): ... this. All users updated.
1097 * include/grub/i386/pc/init.h: Removed. All users updated.
1098
a5dbb1f1
VS
10992010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
1100
1101 Create euro.pf2 which supports most European languages.
1102
1103 * Makefile.am (grubdata_DATA): Add euro.pf2.
1104 (euro.pf2): New target.
1105 (CLEANFILES): Add euro.pf2.
1106
62a747cb
VS
11072010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
1108
1109 * configure.ac: Disable emu-usb by default to prevent inadvertent
1110 device takeover.
1111
608e43b1
VS
11122010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
1113
1114 Disable usbserial on grub-emu since our libusb code isn't good enough
1115 yet.
1116
1117 * grub-core/Makefile.core.def (usbserial_common): Disable on emu.
1118 (usbserial_pl2303): Likewise.
1119 (usbserial_ftdi): Likewise.
1120
94564f81
VS
11212010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
1122
1123 * include/grub/disk.h (grub_disk): Remove has_partitions.
1124 All users updated.
1125 * disk/loopback.c (grub_loopback): Remove has_partitions.
1126 All users updated.
1127 (options): Remove partitions. All users updated.
1128 * util/grub-fstest.c (fstest): Don't pass "-p" to loopback.
1129 * util/i386/pc/grub-setup.c (setup): copy partition table only when
1130 actual partition table is found.
1131
3352800b
VS
11322010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
1133
1134 Remove readability checks (too many false negatives).
1135
1136 * util/grub-install.in: Remove readability checks.
1137 * util/grub-mkconfig.in: Likewise.
1138 * util/grub.d/10_hurd.in: Likewise.
1139 * util/grub.d/10_kfreebsd.in: Likewise.
1140 * util/grub.d/10_linux.in: Likewise.
1141 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Revert to old
1142 way.
1143
2419f17a
VS
11442010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
1145
1146 Enable acpi shutdown on all ACPI platforms.
1147
1148 * grub-core/Makefile.core.def (halt): Inlude commands/acpihalt.c
1149 on coreboo, multiboot and EFI.
1150 * grub-core/commands/acpihalt.c (get_sleep_type): Add missing casts.
1151 (grub_acpi_halt): Likewise.
1152 * grub-core/commands/i386/pc/halt.c (grub_halt): Call grub_acpi_halt.
1153 (grub_cmd_halt): Don't call grub_acpi_halt directly.
1154 * grub-core/lib/efi/halt.c (grub_halt): Call grub_acpi_halt.
1155 * grub-core/lib/i386/halt.c (grub_halt)
1156 [GRUB_MACHINE_COREBOOT || GRUB_MACHINE_MULTIBOOT]: Likewise.
1157
0575c7c3
VS
11582010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
1159
1160 * grub-core/commands/iorw.c (grub_cmd_read): Declare buf in smallest
1161 context.
1162
54ac3cd1
VS
11632010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
1164
1165 * grub-core/video/efi_gop.c: Fix over-80-chars line.
1166 * grub-core/video/efi_uga.c: Likewise.
1167
b2a30ac5
VS
11682010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
1169
1170 Filter devaliases and never open same device twice.
1171
1172 * grub-core/disk/ieee1275/ofdisk.c (last_devpath): New variable.
1173 (last_ihandle): Likewise.
1174 (ofdisk_hash_ent): New member shortest.
1175 (ofdisk_hash_add): Add canonical path too.
1176 (scan): New function.
1177 (grub_ofdisk_iterate): Iterate over hashed entries.
1178 (compute_dev_path): Don't add :0.
1179 (grub_ofdisk_open): Don't really open the disk.
1180 (grub_ofdisk_close): Avoid closing unrelated disk.
1181 (grub_ofdisk_read): Implement reopen logic.
1182 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_canonicalise_devname):
1183 New function.
1184 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_canonicalise_devname):
1185 New proto.
1186
fb53b340
VS
11872010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
1188
1189 Fix sparc64.
1190
1191 * configure.ac (GRUB_KERNEL_MACHINE_LINK_ADDR): Removed.
1192 * grub-core/Makefile.core.def (kernel): Make ldflags just use the
1193 right address. Add sparc64_ieee1275_ldflags.
1194 * grub-core/loader/sparc64/ieee1275/linux.c: Remove leftover include.
1195 * util/grub-mkimagexx.c (locate_sections): Correct grub_host_to_target32
1196 to grub_host_to_target_addr
1197 (load_image): Likewise.
1198
f452b040
VS
11992010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
1200
1201 * grub-core/normal/completion.c (complete_file): Handle device
1202 containing slash.
1203 Fix based on patch by Doug Nazar.
1204
9b5b2541
VS
12052010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
1206
1207 grub-mknetdir script.
1208
1209 * Makefile.util.def (grub-mknetdir): New module.
1210 * tests/util/grub-shell.in: Support boot=net
1211 * util/grub-mknetdir.in: New file.
1212
9d2be652
VS
12132010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
1214
1215 videoinfo on non-vbe.
1216
1217 * grub-core/Makefile.core.def (vbeinfo): Removed.
1218 (vbetest): Removed.
1219 (videoinfo): New module.
1220 * grub-core/commands/i386/pc/vbeinfo.c: Removed.
1221 * grub-core/commands/i386/pc/vbetest.c: Removed.
1222 * grub-core/commands/videoinfo.c: New file.
1223 * grub-core/commands/videotest.c (grub_cmd_videotest): Support mode
1224 specification.
1225 (grub_cmd_videotest) [GRUB_MACHINE_PCBIOS]: Load vbe.mod when invoked
1226 as vbetest.
1227 (GRUB_MOD_INIT) [GRUB_MACHINE_PCBIOS]: New command vbetest.
1228 (GRUB_MOD_FINI) [GRUB_MACHINE_PCBIOS]: Unregister vbetest.
1229 * grub-core/video/efi_gop.c (grub_video_gop_fill_mode_info): Fill
1230 mode_number. New parameter mode. All users updated.
1231 (grub_video_gop_iterate): New function.
1232 (grub_video_efi_gop): New member iterate.
1233 * grub-core/video/i386/pc/vbe.c (framebuffer): Removed leftover fields.
1234 (grub_vbe_set_video_mode): Remove setting useless fields.
1235 (vbe2videoinfo): New function.
1236 (grub_video_vbe_iterate): Likewise.
1237 (grub_video_vbe_setup): Use vbe2videoinfo.
1238 (grub_video_vbe_print_adapter_specific_info): New function.
1239 (grub_video_vbe_adapter): New fields iterate and
1240 print_adapter_specific_info.
1241 * include/grub/video.h (GRUB_VIDEO_MODE_*): Transform into enum.
1242 All users updated.
1243 (grub_video_mode_info): New field mode_number.
1244 (grub_video_adapter): New fields iterate and
1245 print_adapter_specific_info.
1246
179503f5
TG
12472010-09-13 Tristan Gingold <gingold@free.fr>
12482010-09-13 Robert Millan <rmh.grub@aybabtu.com>
12492010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
1250
1251 * grub-core/commands/efi/lsefisystab.c: New file.
1252 * grub-core/commands/efi/lssal.c: Likewise.
1253 * grub-core/Makefile.core.def (lsacpi): New module.
1254 (lsefisystab): Likewise.
1255 * include/grub/efi/api.h (GRUB_EFI_SAL_TABLE_GUID): New definition.
1256 (GRUB_EFI_HCDP_TABLE_GUID): Likewise.
1257 (grub_efi_sal_system_table): New struct.
1258 (grub_efi_sal_system_table_entrypoint_descriptor): Likewise.
1259 (grub_efi_sal_system_table_memory_descriptor): Likewise.
1260 (grub_efi_sal_system_table_platform_features): Likewise.
1261 (grub_efi_sal_system_table_translation_register_descriptor): Likewise.
1262 (grub_efi_sal_system_table_purge_translation_coherence): Likewise.
1263 (grub_efi_sal_system_table_ap_wakeup): Likewise.
1264 * include/grub/types.h (PRIuGRUB_UINT64_T): New definition.
1265
cf9827de
VS
12662010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
1267
1268 Support explicit user claim that a device is BIOS-visible.
1269
1270 * grub-core/kern/emu/getroot.c (grub_util_get_dev_abstraction):
1271 Return GRUB_DEV_ABSTRACTION_NONE if device is in device.map.
1272 * grub-core/kern/emu/hostdisk.c
1273 (convert_system_partition_to_system_disk): Support mdX.
1274 (find_system_device): New parameter add. All users updated.
1275 (grub_util_biosdisk_is_present): New function.
1276 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_present): New
1277 proto.
1278
53f0eb1f
VS
12792010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
1280
1281 Search hints support.
1282
1283 * commands/search.c (FUNC_NAME): New arguments hints and nhints.
1284 All users updated.
1285
b23ffd70
YB
12862010-09-13 Yves Blusseau <blusseau@zetam.org>
1287
1288 Bash completion script for util commands
1289
1290 * Makefile.am: Add util/bash-completion.d directory
1291 * configure.ac: Likewise.
1292 * util/bash-completion.d/Makefile.am: New file.
1293 * util/bash-completion.d/grub-completion.bash.in: Likewise.
1294
d547dc28
VS
12952010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
1296
1297 * grub-core/normal/term.c (put_glyphs_terminal): Correct sign.
1298 (print_backlog): set backlog_ucs4 and backlog_glyphs.
1299 Reported by: Yves Blusseau.
1300
2fc8ccb9
VS
13012010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
1302
1303 * grub-core/normal/misc.c (grub_normal_print_device_info): Show
1304 partition size and offset.
1305
d8a84076
VS
13062010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
1307
1308 * grub-core/commands/wildcard.c (make_regex): Escape brackets.
1309
84fb3b3d
VS
13102010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
1311
1312 * grub-core/commands/ls.c (grub_cmd_ls): Accept multiple files.
1313
768ec2e2
VS
13142010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
1315
1316 * grub-core/kern/misc.c (grub_vprintf): Use va_copy when necessary.
1317 (grub_xvasprintf): Likewise.
1318
4870900f
VS
13192010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
1320
1321 * grub-core/kern/emu/main.c (main): Call hostfs_init only after init_all.
1322
faca6bec
VS
13232010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
1324
1325 * grub-core/commands/menuentry.c (append_menu_entry): Don't rely on
1326 args ending with NULL.
1327
13282010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
788f1f3a
VS
1329
1330 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_reset): Preserve context
1331 pointer.
1332
3c70f225
SJ
13332010-09-11 Szymon Janc <szymon@janc.net.pl>
1334
1335 * grub-core/commands/lsacpi.c (grub_cmd_lsacpi): Fix prototype.
1336
4df7996d
VS
13372010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
1338
1339 Shutdown using ACPI.
1340
1341 * grub-core/Makefile.core.def (halt): Add commands/acpihalt.c on i386-pc.
1342 * grub-core/commands/acpihalt.c: New file.
1343 * grub-core/commands/i386/pc/halt.c (grub_cmd_halt): Call grub_acpi_halt.
1344 * include/grub/acpi.h (grub_acpi_fadt): New member pm1a.
1345 (grub_acpi_halt): New proto.
1346 (GRUB_ACPI_SLP_EN): New const.
1347 (GRUB_ACPI_SLP_TYP_OFFSET): Likewise.
1348 (GRUB_ACPI_OPCODE_*): New enum.
1349 (GRUB_ACPI_EXTOPCODE_*): Likewise.
1350
126b4c32
TG
13512010-09-11 Tristan Gingold <gingold@free.fr>
13522010-09-11 Robert Millan <rmh.grub@aybabtu.com>
13532010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
1354
1355 * commands/lsacpi.c: New file.
1356 * grub-core/Makefile.core.def (lsacpi): New module.
1357 * include/grub/acpi.h (GRUB_ACPI_FADT_SIGNATURE): New definition.
1358 (GRUB_ACPI_MADT_SIGNATURE): Likewise.
1359 (grub_acpi_madt_entry_header): New struct.
1360 (grub_acpi_madt): Likewise.
1361 (grub_acpi_madt_entry_interrupt_override): Likewise.
1362 (grub_acpi_madt_entry_sapic): Likewise.
1363 (grub_acpi_madt_entry_lsapic): Likewise.
1364 (grub_acpi_madt_entry_platform_int_source): Likewise.
1365 * include/grub/types.h (PRIxGRUB_UINT32_T): New definition.
1366 (PRIuGRUB_UINT32_T): Likewise.
1367 (PRIxGRUB_UINT64_T): Likewise.
1368
1aa4fe88
VS
13692010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
1370
1371 Implement loading palette on ieee1275_fb.
1372
1373 * grub-core/video/ieee1275.c (stdout_ihandle): New variable.
1374 (have_setcolors): Likewise.
1375 (grub_video_ieee1275_init): Fill stdout_ihandle and have_setcolors.
1376 (grub_video_ieee1275_setup): Use grub_video_ieee1275_set_palette.
1377 (grub_video_ieee1275_set_palette): Implement.
1378
25761e13
VS
13792010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
13802010-09-11 Colin Watson <cjwatson@ubuntu.com>
1381
1382 * util/grub-install.in (grub_partition): New variable.
1383 Set prefix_drive on EFI and PC to (,$grub_partition) as last resort.
1384 * util/i386/pc/grub-setup.c (setup): Don't touch prefix.
1385 Fixes a bug reported by Yves Blusseau.
1386
050abaea
VS
13872010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
1388
1389 Fix emu on mipsel.
1390
1391 * conf/Makefile.common (CFLAGS_PLATFORM): Add -mflush-func
1392 =grub_cpu_flush_cache on all mips and not only yeeloong.
1393 * configure.ac (COND_mips): New conditional.
1394 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add libgcc on all
1395 platforms.
1396 * grub-core/kern/emu/cache.S (__mips__): Use _flush_cache.
1397 * grub-core/kern/emu/full.c (grub_arch_dl_init_linker)
1398 [GRUB_LINKER_HAVE_INIT]: New function.
1399 (grub_emu_post_init): Likewise.
1400 * grub-core/kern/emu/lite.c (grub_emu_post_init): Likewise.
1401 * grub-core/kern/emu/main.c: Use grub_emu_post_init.
1402 * include/grub/cache.h (_mips): Include mips/cache.h.
1403 * include/grub/disk.h [GRUB_UTIL || GRUB_MACHINE_EMU]: Add missing
1404 LVM and RAID prototypes.
1405 * include/grub/emu/misc.h (grub_emu_post_init): New proto.
1406 * include/grub/mips/time.h (grub_cpu_idle) [GRUB_MACHINE_EMU]: New
1407 function.
1408
5ed7d816
CW
14092010-09-10 Colin Watson <cjwatson@ubuntu.com>
1410
1411 * util/grub-install.in: Don't try to verify core.img until after
1412 running grub-mkimage to create it.
1413
90367e04
RM
14142010-09-10 Robert Millan <rmh@gnu.org>
1415
1416 * util/grub.d/10_hurd.in: Add misc readability checks.
1417 * util/grub.d/10_kfreebsd.in: Likewise.
1418 * util/grub.d/10_linux.in: Likewise.
1419
c452fa66
CW
14202010-09-10 Colin Watson <cjwatson@ubuntu.com>
1421
1422 * util/grub-install.in: ${imgext} won't be defined here until the
1423 install branch is merged. For the meantime, only verify core.img on
1424 i386-pc and sparc64-ieee1275 platforms.
1425
c38fe9f4
RM
14262010-09-10 Robert Millan <rmh@gnu.org>
1427
1428 Solaris support in grub_find_zpool_from_dir(). Thanks
1429 Seth Goldberg for referring to getextmntent() facility.
1430
1431 * configure.ac: Check for getextmntent(), `sys/mnttab.h' and
1432 `sys/mkdev.h'.
1433 * grub-core/kern/emu/misc.c [HAVE_SYS_MNTTAB_H]: Include
1434 `<sys/mnttab.h>'.
1435 [HAVE_SYS_MKDEV_H]: Include `<sys/mkdev.h>'.
1436 [HAVE_GETEXTMNTENT] (grub_find_zpool_from_dir): Add getextmntent()
1437 method for finding zpool name.
1438
905f7773
CW
14392010-09-10 Colin Watson <cjwatson@ubuntu.com>
1440
1441 grub-fstest needs the host and hostfs modules while other utilities
1442 actively require those modules to be absent, so grub-fstest needs
1443 its own initialisation and finalisation code.
1444
1445 * Makefile.am (grub_fstest.pp): New target.
1446 (grub_fstest_init.lst): Likewise.
1447 (grub_fstest_init.c): Likewise.
1448 * Makefile.util.def (grub-fstest): Add grub_fstest_init.c.
1449
fb90b546
RM
14502010-09-10 Robert Millan <rmh@gnu.org>
1451
1452 * configure.ac: Check for `struct statfs.f_fstypename' and
1453 `struct statfs.f_mntfromname'.
1454
1455 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir): Conditionalize
1456 kFreeBSD-specific code.
1457
66d4bea5
RM
14582010-09-10 Robert Millan <rmh@gnu.org>
1459
1460 * util/grub.d/10_kfreebsd.in: Fix ${kfreebsd_device} initialization
1461 on ZFS. Now non-main filesystems are supported as / too.
1462
b6a690ee
CW
14632010-09-09 Colin Watson <cjwatson@ubuntu.com>
1464
1465 * Makefile.util.def (libgrub.a): Move grub-core/kern/emu/hostfs.c
1466 and grub-core/disk/host.c to ...
1467 (grub-fstest): ... here. Having the host disk implementation
1468 present confuses grub-probe and other utility programs.
1469
1470 * util/grub-mkconfig.in: Only verify readability of grub.cfg.new
1471 when writing to a file, not when writing to stdout.
1472
8901b00c 14732010-09-09 BVK Chaitanya <bvk.groups@gmail.com>
1474
1475 * tests/partmap_test.in: New test for partitions.
1476 * Makefile.util.def: Rules for new test.
1477
7bf45fdd
RM
14782010-09-09 Robert Millan <rmh@gnu.org>
1479
1480 * util/grub-probe.c (probe): Fix a pair of unhandled error
1481 conditions.
1482
4dfbc574
RM
14832010-09-09 Robert Millan <rmh@gnu.org>
1484
1485 Basic Btrfs support (detection and UUID).
1486
1487 * grub-core/fs/btrfs.c: New file.
1488 * Makefile.util.def (library): Register btrfs.c.
1489 * grub-core/Makefile.core.def: Likewise.
1490
6b8e78ae
RM
14912010-09-08 Robert Millan <rmh@gnu.org>
1492
1493 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Improve
1494 with (optional) parameters to specify device and relative path.
1495 * util/grub-install.in: Use is_path_readable_by_grub() to
1496 verify readability of a few critical files.
1497 * util/grub-mkconfig.in: Use is_path_readable_by_grub() to
1498 verify readability of grub.cfg.new.
1499
27f21a8b
VS
15002010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
1501
1502 Split minix.mod into minix.mod and minix2.mod.
1503
1504 * Makefile.util.def (libgrub.a): Add grub-core/fs/minix2.c.
1505 * grub-core/Makefile.core.def (minix2): New module.
1506 * grub-core/fs/minix.c: Use definitions instead of runtime version
1507 checking.
1508 * grub-core/fs/minix2.c: New file.
1509
c0e53ea5
YB
15102010-09-08 Yves Blusseau <blusseau@zetam.org>
1511
1512 Add new --boot-directory option to replace --root-directory
1513
1514 * util/grub-install.in: Add new --boot-directory option
1515 * util/grub-reboot.in: Likewise.
1516 * util/grub-set-default.in: Likewise.
1517
b9fe6ea2
YB
15182010-09-08 Yves Blusseau <blusseau@zetam.org>
1519
1520 * util/grub-mkconfig.in: Use new variable.
1521
d87aedff
YB
15222010-09-08 Yves Blusseau <blusseau@zetam.org>
1523
1524 * configure.ac: Define some useful variables.
1525
e55e8495
VS
15262010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
1527
1528 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
1529 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF when appropriate.
1530 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_setcursor):
1531 Use terminfo and don't use cursor-on/cursor-off unless it's known
1532 to work.
1533 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New element
1534 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF.
1535
6fa6d675
CW
15362010-09-08 Colin Watson <cjwatson@ubuntu.com>
1537
1538 * grub-core/kern/efi/init.c (grub_efi_set_prefix): If the prefix
1539 starts with "(,", fill the drive containing the loaded image in
1540 between those two characters, but expect that a full partition
1541 specification including partition map names will follow.
1542
92f2aef0
RM
15432010-09-08 Robert Millan <rmh@gnu.org>
1544
1545 * configure.ac: Remove `--enable-grub-fstest' option.
1546 * Makefile.util.def (grub-fstest): Remove COND_GRUB_FSTEST condition.
1547
1548 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Use
1549 `grub-fstest' instead of `grub-probe' for readability verification.
1550 * util/grub-probe.c (probe): Remove readability verification kludge.
1551
99fd620d
RM
15522010-09-08 Robert Millan <rmh@gnu.org>
1553
1554 * util/grub-mkconfig.in: Pass `--device ${GRUB_DEVICE}' when
1555 initializing `GRUB_FS'.
1556
058e30ac 15572010-09-08 BVK Chaitanya <bvk.groups@gmail.com>
1558
1559 Not command (!) support to GRUB script.
1560
1561 * tests/grub_script_not.in: New test.
1562 * Makefile.util.def: Rules for new test.
1563
1564 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
1565 ! command as a special case.
1566 * grub-core/script/yylex.l (GRUB_PARSER_TOKEN_NOT): Removed.
1567
b61d05ed 15682010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
1569
058e30ac 1570 * grub-core/commands/wildcard.c (wildcard_expand): Fix wrong
1571 grub_free.
b61d05ed 1572
4d69c786 15732010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
1574
1575 * docs/grub.texi (Shell-like scripting): Fix @dots to @dots{}.
1576
aa3119c4 15772010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
1578
1579 * docs/grub.texi (Shell-like scripting): Documentation for break,
1580 continue, shift and return commands.
1581
db0f7e3d
VS
15822010-09-06 Vladimir Serbinenko <phcoder@gmail.com>
1583
1584 Rename CD-ROM to cd on BIOS.
1585
1586 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_drive): Recognise
1587 "cd".
1588 (grub_biosdisk_call_hook): Call with "cd" instead of arbitrary hdX.
1589
88b87c93
VS
15902010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
1591
1592 * grub-core/kern/emu/main.c (main): Reinit LVM and RAID.
1593 * util/grub-probe.c (main): Likewise.
1594 * util/i386/pc/grub-setup.c (main): Likewise.
1595 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
1596 Reported and debugged by: alexxy
1597
294f324d
VS
15982010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
1599
1600 * grub-core/disk/lvm.c (grub_lvm_scan_device) [GRUB_UTIL]: Output more
1601 diagnostic info.
1602
d7ee3441
JS
16032010-09-05 Jo Shields <directhex@apebox.org>
1604
1605 * util/grub.d/30_os-prober.in: Add missing classes.
1606
d7e06c1f
VS
16072010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
1608
1609 * docs/grub.texi (Theme file format): Document new position format.
1610
fc157e53
VS
16112010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
1612
1613 * docs/grub.texi (Theme file format): Replace Box_slice_names.png with
1614 a table. Use @code instead of @verbatim.
1615
506e9a1c
CB
16162010-09-05 Colin D Bennett <colin@gibibit.com>
1617
1618 Gfxmenu documentation.
1619
1620 * docs/grub.texi (Theme file format): New chapter.
1621
f0aff67c
SJ
16222010-09-05 Szymon Janc <szymon@janc.net.pl>
1623
1624 * grub-core/Makefile.core.def (xzio): New module.
1625 * grub-core/io/xzio.c: New file.
1626 * grub-core/lib/xzembed/xz.h: New file (from xembed).
1627 * grub-core/lib/xzembed/xz_config.h: Likewise.
1628 * grub-core/lib/xzembed/xz_dec_bcj.c: Likewise.
1629 * grub-core/lib/xzembed/xz_dec_lzma2.c: Likewise.
1630 * grub-core/lib/xzembed/xz_dec_stream.c: Likewise.
1631 * grub-core/lib/xzembed/xz_lzma2.h: Likewise.
1632 * grub-core/lib/xzembed/xz_private.h: Likewise.
1633 * grub-core/lib/xzembed/xz_stream.h: Likewise.
1634 * include/grub/file.h (grub_file_filter_id): New compression filter
1635 GRUB_FILE_FILTER_XZIO.
1636
82a85062
VS
16372010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
1638
1639 * include/grub/file.h (GRUB_FILE_SIZE_UNKNOWN): New definition.
1640 * grub-core/disk/loopback.c (grub_loopback_open): Handle unknown file
1641 size.
1642
3579415d
VS
16432010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
1644
1645 * include/grub/err.h (grub_err_t): Replace GRUB_ERR_BAD_GZIP_DATA with
1646 GRUB_ERR_BAD_COMPRESSED_DATA. All users updated.
1647
5124ae6d
VS
16482010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
1649
1650 Uncompressed checksum support.
1651
1652 * grub-core/commands/hashsum.c (options): Add option --uncompress.
1653 (check_list): New parameter uncompress.
1654 (grub_cmd_hashsum): Handle --uncompress.
1655
9aadb3d1
VS
16562010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
1657
1658 Reintroduce testload.
1659
1660 * grub-core/commands/minicmd.c (grub_rescue_cmd_testload) [0]: Moved
1661 from here ...
1662 * grub-core/commands/testload.c (grub_cmd_testload): ... here.
1663 (GRUB_MOD_INIT): New function.
1664 (GRUB_MOD_FINI): Likewise.
1665 * grub-core/Makefile.core.def (testload): New module.
1666
a17792c3
SJ
16672010-09-05 Szymon Janc <szymon@janc.net.pl>
1668
1669 * grub-core/lib/posix_wrap/sys/types.h (bool): Transform into an enum.
1670 (uint8_t): New type.
1671 (uint16_t): Likewise.
1672 (uint32_t): Likewise.
1673 (uint64_t): Likewise.
1674
b81e40a3
SJ
16752010-09-05 Szymon Janc <szymon@janc.net.pl>
1676
1677 * include/grub/crypto.h (GRUB_MD_CRC32): New definition.
1678
fc2ef117
VS
16792010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
1680
1681 * grub-core/io/gzio.c (grub_gzio_open): Removed "transparent" parameter.
1682 Made static.
1683 (grub_gzfile_open): Removed. All users updated.
1684 (GRUB_MOD_INIT): New function.
1685 (GRUB_MOD_FINI): Likewise.
1686 * grub-core/kern/file.c (grub_file_filters_all): New variable.
1687 (grub_file_filters_enabled): Likewise.
1688 (grub_file_open): Handle filters.
1689 * grub-core/loader/i386/bsd.c (GRUB_MOD_INIT): Load gzio.
1690 * grub-core/normal/main.c (GRUB_MOD_INIT): Likewise.
1691 * include/grub/file.h (grub_file_filter_id_t): New type.
1692 (grub_file_filter_t): Likewise.
1693 (grub_file_filters_all): New extern variable.
1694 (grub_file_filters_enabled): Likewise.
1695 (grub_file_filter_register): New inline function.
1696 (grub_file_filter_unregister): Likewise.
1697 (grub_file_filter_disable): Likewise.
1698 (grub_file_filter_disable_compression): Likewise.
1699 * include/grub/gzio.h: Removed.
1700
35ee15e0
BC
17012010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
1702
1703 Filename expansion support for wildcards in GRUB script.
1704
1705 * tests/grub_script_expansion.in: New test.
1706 * Makefile.util.def: Rule for new test.
1707
1708 * grub-core/commands/wildcard.c: New file, implements filename
1709 expansion support for GRUB script.
1710 * grub-core/Makefile.core.def: Rule update for regexp.mod.
1711 * grub-core/script/argv.c: Cosmetic changes.
1712 * grub-core/script/execute.c (grub_script_arglist_to_argv):
1713 Refactored to perform wildcard expansion on arguments.
1714 * include/grub/script_sh.h (grub_script_wildcard_translator): New
1715 struct.
1716
1717 * tests/util/grub-shell.in: Fix quoting for read input.
1718
5f0c4aca
BC
17192010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
1720
1721 Support for updating environment variables with matched substrings
1722 of regexp.
1723
1724 * tests/grub_cmd_regexp.in: New test.
1725 * Makefile.util.def: Rule for new test.
1726
1727 * grub-core/commands/regexp.c: New option -s to update environment
1728 variables with regexp matches.
1729
3759a35f
SJ
17302010-09-04 Szymon Janc <szymon@janc.net.pl>
1731
1732 * include/grub/file.h (grub_file): New member not_easly_seekable.
1733 (grub_file_seekable): New inline function.
1734 * grub-core/io/gzio.c (test_header): Don't test end magic if file isn't
1735 easily seekable.
1736 (grub_gzio_open): Set not_easly_seekable.
1737 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_open): Set not_easily_seekable.
1738 * grub-core/io/bufio.c (grub_bufio_open): Propagate not_easily_seekable.
1739
ed8c6dec
BC
17402010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
1741
1742 Support for options to appear multiple times on cmdline.
1743
1744 * include/grub/lib/arg.h (grub_arg_list_alloc): New prototype.
1745 * grub-core/commands/extcmd.c: Support for repeatable option.
1746 * grub-core/lib/arg.c (grub_arg_list_alloc): New function for
1747 repeatable option support.
1748
1749 Refactor menuentry into a regular command.
1750
1751 * grub-core/commands/menuentry.c: New file, menuentry command
1752 implementation.
1753 * grub-core/Makefile.core.def: Rule update for normal.mod.
1754 * grub-core/normal/main.c: Moved menuentry creation to
1755 grub-core/commands/menuentry.c.
1756 * grub-core/normal/menu.c (grub_menu_execute_entry): Removed.
1757 (grub_menu_execute_entry_real): Removed.
1758 * grub-core/script/execute.c (grub_script_execute_sourcecode): New
1759 function.
1760 (grub_script_execute_menuentry): Removed.
1761 * grub-core/script/parser.y (menuentry): Removed.
1762 * grub-core/script/script.c (grub_script_create_cmdmenu): Removed.
1763 * grub-core/script/yylex.l (menuentry): Removed.
1764 * include/grub/menu.h (grub_menu_init): New prototype.
1765 (grub_menu_fini): New prototype.
1766 * include/grub/normal.h (grub_normal_add_menu_entry): Removed.
1767 * include/grub/script_sh.h (grub_script_cmd_menuentry): Removed.
1768 (grub_script_execute_sourcecode): New prototype.
1769
dacd0cf0
BC
17702010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
1771
1772 "return" command for GRUB script functions.
1773
1774 * tests/grub_script_return.in: New test.
1775 * Makefile.util.def: Rules for new test.
1776
1777 * grub-core/script/execute.c (grub_script_return): New function.
1778 * grub-core/script/main.c: Register/unregister return commaond.
1779 * include/grub/script_sh.h (grub_script_return): New prototype.
1780
52e72f9d
BC
17812010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
1782
1783 "setparams" command to update positional parameters.
1784
1785 * tests/grub_script_setparams.in: New test.
1786 * Makefile.util.def: Rules for new test.
1787
1788 * grub-core/script/argv.c (grub_script_argv_make): New function.
1789 * grub-core/script/execute.c (replace_scope): New function.
1790 (grub_script_setparams): New function.
1791 * grub-core/script/lexer.c: Remove unused variables.
1792 * grub-core/script/main.c: Register/unregister setparams command.
1793 * include/grub/script_sh.h (grub_script_argv_make): New prototype.
1794 (grub_script_setparams): New prototype.
1795
25b60c91
BC
17962010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
1797
1798 * grub-core/normal/completion.c (grub_normal_do_completion): Fix
1799 grub_free order.
1800
37e7bf68
BC
18012010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
1802
1803 Support for passing block of commands as an argument to extcmds.
1804
1805 * Makefile.util.def: Rules for new test.
1806 * tests/grub_script_blockarg.in: New test.
1807 * grub-core/tests/test_blockarg.c: New file, block argument
1808 command used in the test.
1809
1810 * include/grub/extcmd.h (grub_extcmd_context): New struct.
1811 (grub_register_extcmd_prio): New function prototype.
1812 (grub_extcmd_dispatcher): New function prototype.
1813 * include/grub/command.h (GRUB_COMMAND_FLAG_BLOCKS): New command
1814 type.
1815 * include/grub/script_sh.h (struct grub_script): New members
1816 `children', `next_siblings' and `refcnt' for block arguments and
1817 reference counting.
1818 (GRUB_SCRIPT_ARG_TYPE_BLOCK): New argument type.
1819 (grub_script_arg): New member `script' for block argument.
1820 (grub_script_argv): New member `script' for block argument.
1821 (grub_parser_param): New member `scripts' for block argument.
1822 (grub_script_mem_free): New extern function prototype.
1823 (grub_script_ref): New function prototype.
1824 (grub_script_unref): New function prototype.
1825
1826 * grub-core/normal/dyncmd.c (grub_dyncmd_dispatcher): Moved to
1827 extcmd form to support block arguments.
1828 * grub-core/script/argv.c: Block arguments support.
1829 * grub-core/script/execute.c: Likewise.
1830 * grub-core/script/lexer.c: Likewise.
1831 * grub-core/script/main.c: Likewise.
1832 * grub-core/script/script.c: Likewise.
1833 * grub-core/script/parser.y: Likewise. New `block' and `block0'
1834 non-terminals.
1835
1836 * grub-core/commands/acpi.c: Update extcmd implementations with
1837 grub_extcmd_context_t.
1838 * grub-core/commands/cat.c: Likewise.
1839 * grub-core/commands/echo.c: Likewise.
1840 * grub-core/commands/extcmd.c: Likewise.
1841 * grub-core/commands/hashsum.c: Likewise.
1842 * grub-core/commands/hdparm.c: Likewise.
1843 * grub-core/commands/help.c: Likewise.
1844 * grub-core/commands/hexdump.c: Likewise.
1845 * grub-core/commands/i386/cpuid.c: Likewise.
1846 * grub-core/commands/i386/pc/drivemap.c: Likewise.
1847 * grub-core/commands/i386/pc/halt.c: Likewise.
1848 * grub-core/commands/i386/pc/sendkey.c: Likewise.
1849 * grub-core/commands/iorw.c: Likewise.
1850 * grub-core/commands/keystatus.c: Likewise.
1851 * grub-core/commands/loadenv.c: Likewise.
1852 * grub-core/commands/ls.c: Likewise.
1853 * grub-core/commands/lspci.c: Likewise.
1854 * grub-core/commands/memrw.c: Likewise.
1855 * grub-core/commands/probe.c: Likewise.
1856 * grub-core/commands/search_wrap.c: Likewise.
1857 * grub-core/commands/setpci.c: Likewise.
1858 * grub-core/commands/sleep.c: Likewise.
1859 * grub-core/disk/loopback.c: Likewise.
1860 * grub-core/hello/hello.c: Likewise.
1861 * grub-core/loader/i386/bsd.c: Likewise.
1862 * grub-core/loader/xnu.c: Likewise.
1863 * grub-core/term/gfxterm.c: Likewise.
1864 * grub-core/term/serial.c: Likewise.
1865 * grub-core/tests/lib/functional_test.c: Likewise.
1866
888d1500
BC
18672010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
1868
1869 Multi-line quoted strings support.
1870
1871 * grub-core/script/lexer.c (append_newline): Removed.
1872 (grub_script_lexer_yywrap): Refactored.
1873 (grub_script_lexer_init): Refactored.
1874 * grub-core/script/yylex.l (yywrap): New function.
1875 (grub_lexer_resplit): New function.
1876 (grub_lexer_unput): New function.
1877 * include/grub/script_sh.h (grub_lexer_param): New members, unput
1878 and resplit.
1879 * tests/grub_script_echo1.in: Added few more testcases.
1880
dda060dd
VS
18812010-09-04 Vladimir Serbinenko <phcoder@gmail.com>
1882
1883 * grub-core/kern/misc.c: Don't add abort alias in utils.
1884 Reported by: echoline.
1885
6556eba9
BC
18862010-09-03 BVK Chaitanya <bvk.groups@gmail.com>
1887
1888 Add missing files into "make dist" tarball for other platforms.
1889
1890 * gentpl.py (script): Use dist_noinst_DATA instead of EXTRA_DIST.
1891 * conf/Makefile.common (dist_noinst_DATA): New variable.
1892 * conf/Makefile.extra-dist: Added missing make dist files.
1893 * grub-core/Makefile.core.def: Likewise.
1894
c8e7bf5f
VS
18952010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
1896
1897 Compress grub_prefix.
1898
1899 * grub-core/boot/i386/pc/lnxboot.S: Use
1900 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE.
1901 * grub-core/kern/i386/pc/startup.S: Move grub_prefix to compressed part.
1902 * include/grub/offsets.h: Rename GRUB_MACHINE_DATA_END to
1903 GRUB_MACHINE_PREFIX_END. All users updated.
1904 (GRUB_KERNEL_I386_PC_PREFIX): Set to GRUB_KERNEL_I386_PC_RAW_SIZE.
1905 (GRUB_KERNEL_I386_PC_PREFIX_END): Set to GRUB_KERNEL_I386_PC_PREFIX
1906 + 0x40.
1907 (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
1908 * util/grub-mkimage.c (image_target_desc): Change data_end to
1909 prefix_end. All users updated.
1910
a7c00cdb
VS
19112010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
1912
1913 * grub-core/loader/i386/bsd.c (grub_freebsd_boot): Set %ebp to sane
1914 value.
1915 (grub_openbsd_boot): Likewise.
1916 (grub_netbsd_boot): Likewise.
1917 * grub-core/loader/i386/xnu.c (grub_xnu_boot_resume): Likewise.
1918 (grub_xnu_boot): Likewise.
1919
9f915872
VS
19202010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
1921
1922 * configure.ac: Clean LIBS variable after tests.
1923
efa1bee7
CW
19242010-09-02 Colin Watson <cjwatson@ubuntu.com>
1925
1926 * INSTALL: Document that libdevmapper needs to be 1.02.34 or later.
1927
61d720e5
VS
19282010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
1929
1930 * configure.ac: Check for dm_log_with_errno_init in libdevmapper and
1931 echo if libdevmapper will be used.
1932
ef8e0ec8
IT
19332010-09-02 Ian Turner <Ian.Turner@deshaw.com>
1934
1935 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_read): Keep the blocksize
1936 constant for the same file.
1937
03e261d8
VS
19382010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
1939
1940 * grub-core/kern/i386/multiboot_mmap.c: Remove leftover include.
1941
c2a4eba6
CW
19422010-09-02 Colin Watson <cjwatson@ubuntu.com>
1943
1944 * .bzrignore: Add *.pp, **/.dirstamp, grub-core/*.module, and
1945 grub-core/*.pp.
1946
9056cbf3
CW
19472010-09-02 Colin Watson <cjwatson@ubuntu.com>
1948
1949 Zero %ebp and %edi when entering Linux's 32-bit entry point, as
1950 required by the boot protocol.
1951
1952 * include/grub/i386/relocator.h (struct grub_relocator32_state): Add
1953 ebp and edi members.
1954 * grub-core/lib/i386/relocator.c (grub_relocator_boot): Handle
1955 state.ebp and state.edi.
1956 * grub-core/lib/i386/relocator32.S (grub_relocator32_start): Set
1957 %ebp and %edi according to grub_relocator32_ebp and
1958 grub_relocator32_edi respectively.
1959 * grub-core/loader/i386/linux.c (grub_linux_boot): Zero state.ebp
1960 and state.edi.
1961
529cc99a
VS
19622010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
1963
1964 Add i386-pc-pxe image target.
1965
1966 * util/grub-mkimage.c (image_target_desc): New enum value
1967 IMAGE_I386_PC_PXE.
1968 (image_targets): New target i386-pc-pxe.
1969 (generate_image): Handle i386-pc-pxe image.
1970
9a093920
VS
19712010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
1972
1973 Fix grub_pxe_scan.
1974
1975 * grub-core/fs/i386/pc/pxe.c (grub_pxe_pxenv): Put correct type bangpxe.
1976 (grub_pxe_scan): Fix types and pxe_rm_entry computation.
1977 All users updated.
1978 * include/grub/i386/pc/pxe.h (grub_pxe_bangpxe): New struct.
1979 (grub_pxe_pxenv): Correct type.
1980
f9cefc4e
CW
19812010-09-01 Colin Watson <cjwatson@ubuntu.com>
1982
1983 * NEWS: Document most of the important changes since 1.98.
1984
4066f57f
CW
19852010-09-01 Colin Watson <cjwatson@ubuntu.com>
1986
1987 * util/grub-mkrescue.in (usage): Tidy up usage output (and hence
1988 generated manual page) a little.
1989
da2891f9
CW
19902010-09-01 Colin Watson <cjwatson@ubuntu.com>
1991
1992 * docs/grub.texi: Add myself as an author.
1993
ad717fae
VS
19942010-09-01 Vladimir Serbinenko <phcoder@gmail.com>
1995
1996 * Makefile.util.def (libgrub.a): Add missing sunpc.
1997 Reported by: Seth Goldberg.
1998
eefe8abd
VS
19992010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
2000
2001 Interrupt wrapping and code simplifications.
2002
9494ef9a
VS
2003 * Makefile.util.def (grub-mkrescue): Use x86 tg instead of
2004 x86_noieee1275 which are functionaly equivalent in this case.
2005 (grub-install): Make source on each platform explicit. Enable on
2006 all noemu.
2007 * gentpl.py (x86_efi_pc): Removed group.
2008 (x86_noefi): Likewise.
2009 (i386_noefi): Likewise.
2010 (x86_noieee1275): Likewise.
2011 (i386_noieee1275): Likewise.
2012 (i386_noefi_noieee1275): Likewise.
2013 (i386_pc_qemu_coreboot): Likewise.
2014 (i386_coreboot_multiboot): Likewise.
2015 (i386_pc_coreboot_multiboot_qemu): Likewise.
2016 (x86_noefi_mips): Likewise.
2017 (noieee1275): Likewise.
2018 (ieee1275_mips): Likewise.
2019 (noemu_noieee1275): Likewise.
2020 (cmos): New group.
2021 (usb): Likewise.
2022 (videoinkernel): Likewise.
2023 (videomodules): Likewise.
eefe8abd 2024 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove
9494ef9a
VS
2025 include/grub/elf.h, include/grub/elfload.h, include/grub/net.h,
2026 include/grub/reader.h, include/grub/symbol.h, include/grub/types.h,
2027 include/grub/loader.h, include/grub/msdos_partition.h,
2028 include/grub/machine/biosdisk.h, include/grub/machine/boot.h,
2029 include/grub/machine/console.h, include/grub/machine/vga.h,
2030 include/grub/machine/vbe.h, include/grub/machine/init.h,
2031 include/grub/machine/kernel.h, include/grub/cpu/time.h,
2032 include/grub/cpu/types.h, include/grub/gzio.h and include/grub/menu.h
eefe8abd 2033 (KERNEL_HEADER_FILES) [i386-pc]: Add include/grub/machine/int.h.
9494ef9a
VS
2034 (KERNEL_HEADER_FILES) [i386-ieee1275]: Add include/grub/i386/pit.h
2035 * grub-core/Makefile.core.def (kernel): Explicit the source for
2036 startup. Explicit the platforms using kern/generic/rtc_get_time_ms.c.
2037 Split ieee1275_mips. Remove kern/i386/halt.c. Remove kern/i386/misc.S.
2038 Enable kern/i386/pit.c on all x86. Remove kern/i386/ieee1275/init.c.
2039 Use videoinkernel tag.
2040 (usb): Enable on all usb.
2041 (usbserial_common): Likewise.
2042 (usbserial_pl2303): Likewise.
2043 (usbserial_ftdi): Likewise.
2044 (uhci): Enable on all x86.
2045 (ohci): Enable on all pci.
2046 (cmostest): Enable on all CMOS.
2047 (acpi): Include commands/acpi.c on all platforms.
2048 (halt): Add relevant lib/*/halt.c.
2049 (hdparm): Enable on all pci.
2050 (lspci): Likewise.
2051 (usbtest): Enable on all usb.
2052 (ata): Enable on all pci.
2053 (ata_pthru): Likewise.
2054 (usbms): Enable on all usb.
2055 (usb_keyboard): Likewise.
2056 (font): Use tag videomodules.
2057 (bufio): Likewise.
2058 (datetime): Use tag cmos. Enable on all noemu.
2059 (mmap): Use tags common and x86.
2060 (gfxterm): Use tag videomodules.
2061 (bitmap): Likewise.
2062 (bitmap_scale): Likewise.
2063 (video_fb): Likewise.
2064 (video): Likewise.
2065 * grub-core/bus/usb/ohci.c (grub_ohci_td): Make link_td a pointer and
2066 adjust padding accordingly. All users updated.
2067 (grub_ohci_transaction): Fix bad format specification.
2068 (GRUB_MOD_INIT): Add asserts for struct size.
2069 * grub-core/bus/usb/uhci.c (grub_uhci_pci_iter): Add explicit casts.
2070 (grub_alloc_td): Likewise.
2071 (grub_free_queue): Likewise.
2072 (grub_uhci_transfer): Likewise.
2073 (grub_uhci_transaction): Fix bad format specification.
2074 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
2075 (grub_usb_bulk_readwrite): Likewise.
2076 * grub-core/kern/i386/misc.S (grub_stop): Moved from here ...
2077 * grub-core/commands/i386/pc/halt.c (stop): ...here. Transformed into C.
2078 Made static.
2079 * grub-core/lib/i386/halt.c (stop): ... and here. Transformed into C.
2080 Made static.
2081 * grub-core/kern/i386/pc/startup.S (grub_halt): Moved from here ...
2082 * grub-core/commands/i386/pc/halt.c (grub_halt): ...here.
2083 Transformed into C.
2084 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_int13_extensions):
2085 Moved from here ...
2086 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_int13_extensions):
2087 ... here. Transformed into C. Made static.
2088 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_standard):
2089 Moved from here ...
2090 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_standard):
2091 ... here. Transformed into C. Made static.
2092 * grub-core/kern/i386/pc/startup.S
2093 (grub_biosdisk_check_int13_extensions): Moved from here ...
2094 * grub-core/disk/i386/pc/biosdisk.c
2095 (grub_biosdisk_check_int13_extensions): ... here. Transformed into C.
2096 Made static.
2097 * grub-core/kern/i386/pc/startup.S
2098 (grub_biosdisk_get_cdinfo_int13_extensions): Moved from here ...
2099 * grub-core/disk/i386/pc/biosdisk.c
2100 (grub_biosdisk_get_cdinfo_int13_extensions): ... here.
2101 Transformed into C. Made static.
2102 * grub-core/kern/i386/pc/startup.S
2103 (grub_biosdisk_get_diskinfo_int13_extensions): Moved from here ...
2104 * grub-core/disk/i386/pc/biosdisk.c
2105 (grub_biosdisk_get_diskinfo_int13_extensions): ... here.
2106 Transformed into C. Made static.
2107 * grub-core/kern/i386/pc/startup.S
2108 (grub_biosdisk_get_diskinfo_standard): Moved from here ...
2109 * grub-core/disk/i386/pc/biosdisk.c
2110 (grub_biosdisk_get_diskinfo_standard): ... here.
2111 Transformed into C. Made static.
2112 * grub-core/kern/i386/pc/startup.S
2113 (grub_biosdisk_get_num_floppies): Moved from here ...
2114 * grub-core/disk/i386/pc/biosdisk.c
2115 (grub_biosdisk_get_num_floppies): ... here.
2116 Transformed into C. Made static.
2117 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_diskinfo_real):
2118 New function.
2119 * grub-core/kern/i386/pc/startup.S (grub_pxe_scan): Moved from here ...
2120 * grub-core/fs/i386/pc/pxe.c (grub_pxe_scan): ... here.
2121 Transformed into C. Made static.
2122 * grub-core/kern/i386/pc/startup.S (grub_rm_entry): Moved from here ...
2123 * grub-core/fs/i386/pc/pxe.c (grub_rm_entry): ... here.
2124 Transformed into C. Made static.
2125 * grub-core/kern/i386/ieee1275/init.c: Removed.
2126 * grub-core/kern/i386/misc.S: Likewise.
2127 * grub-core/kern/i386/pc/startup.S (grub_get_memsize):
2128 Splitted from here ...
2129 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): ... here.
2130 Transformed into C. Made static. All users updated.
2131 * grub-core/kern/i386/pc/mmap.c (grub_get_ext_memsize): ... and here.
2132 Transformed into C. Made static. All users updated.
2133 * grub-core/kern/i386/pc/startup.S (grub_get_eisa_mmap):
2134 Moved from here...
2135 * grub-core/kern/i386/pc/mmap.c (grub_get_eisa_mmap): ... here.
2136 Transformed into C. Made static. All users updated.
2137 * grub-core/kern/i386/pc/startup.S (grub_get_mmap_entry):
2138 Moved from here...
2139 * grub-core/kern/i386/pc/mmap.c (grub_get_mmap_entry): ... here.
2140 Transformed into C. Made static. All users updated.
2141 * grub-core/kern/i386/pc/startup.S (grub_stop_floppy):
2142 Removed (replaced by C version).
2143 * grub-core/kern/i386/pc/startup.S (grub_vga_set_mode):
2144 Moved from here...
2145 * grub-core/video/i386/pc/vga.c (grub_vga_set_mode): ...here.
2146 Transformed into C. Made static.
2147 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_controller_info):
2148 Moved from here...
2149 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_controller_info):
2150 ... here. Transformed into C.
2151 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode_info):
2152 Moved from here...
2153 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode_info):
2154 ... here. Transformed into C.
2155 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_mode):
2156 Moved from here...
2157 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_mode):
2158 ... here. Transformed into C. Made static.
2159 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode):
2160 Moved from here...
2161 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode):
2162 ... here. Transformed into C.
21ed554b
VS
2163 * grub-core/kern/i386/pc/startup.S
2164 (grub_vbe_bios_getset_dac_palette_width):Moved from here...
2165 * grub-core/video/i386/pc/vbe.c
2166 (grub_vbe_bios_getset_dac_palette_width):... here. Transformed into C.
9494ef9a
VS
2167 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_memory_window):
2168 Moved from here...
2169 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_memory_window):
2170 ... here. Transformed into C.
2171 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_memory_window):
2172 Moved from here...
2173 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_memory_window):
2174 ... here. Transformed into C.
2175 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_scanline_length):
2176 Moved from here...
2177 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_scanline_length):
2178 ... here. Transformed into C.
2179 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_scanline_length):
2180 Moved from here...
2181 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_scanline_length):
2182 ... here. Transformed into C.
2183 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_display_start):
2184 Moved from here...
2185 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_display_start):
2186 ... here. Transformed into C. Made static.
2187 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_display_start):
2188 Moved from here...
2189 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_display_start):
2190 ... here. Transformed into C. Made static.
2191 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_palette_data):
2192 Moved from here...
2193 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_palette_data):
2194 ... here. Transformed into C. Made static.
2195 * grub-core/kern/i386/pc/startup.S (grub_pxe_call): Receive
2196 pxe_rm_entry as third argument.
2197 (grub_bios_interrupt): New function.
2198 * grub-core/kern/i386/qemu/mmap.c: Remove useless include.
2199 * grub-core/kern/i386/qemu/startup.S (codestart): Do cli;hlt instead
2200 of calling grub_stop.
2201 * grub-core/kern/efi/efi.c (grub_halt): Moved from here ...
2202 * grub-core/lib/efi/halt.c (grub_halt): ...here.
2203 * grub-core/kern/emu/main.c (grub_halt): Moved from here ...
2204 * grub-core/lib/emu/halt.c (grub_halt): ... here.
2205 * grub-core/lib/i386/halt.c: Moved from here ...
2206 * grub-core/lib/i386/halt.c: ... here.
2207 * grub-core/kern/ieee1275/openfw.c (grub_halt): Moved from here ...
2208 * grub-core/lib/ieee1275/halt.c (grub_halt): ... here.
2209 * grub-core/loader/i386/pc/linux.c (grub_linux16_boot): Call
2210 grub_stop_floppy.
2211 * grub-core/loader/i386/xnu.c (guessfsb) [IEEE1275]: Enable.
2212 * include/grub/i386/coreboot/init.h: Removed.
2213 * include/grub/i386/multiboot/init.h: Likewise.
2214 * include/grub/i386/pc/biosdisk.h: Removed all function prototypes.
2215 * include/grub/i386/pc/init.h: Likewise except grub_gate_a20.
2216 * include/grub/i386/pc/int.h: New file.
2217 * include/grub/i386/pc/pxe.h (GRUB_PXE_SIGNATURE): New definition.
2218 (grub_pxe_scan): Removed.
2219 (grub_pxe_call): Update prototype.
2220 * include/grub/i386/pc/vbe.h: Removed EXPORT_FUNC and useless
2221 prototypes.
2222 * include/grub/i386/pc/vga.h (grub_vga_set_mode): Removed.
2223 * include/grub/i386/qemu/init.h: Removed.
2224 * include/grub/mips/yeeloong/kernel.h (grub_reboot): Add missing
2225 noreturn.
2226 (grub_halt): Likewise.
2227 * include/grub/misc.h (grub_halt): Removed EXPORT_FUNC.
2228 (grub_reboot): Likewise.
2229 * grub-core/kern/i386/coreboot/init.c (grub_stop_floppy): Moved from here...
2230 * include/grub/i386/floppy.h (grub_stop_floppy): ...here. Inlined.
21ed554b
VS
2231 * grub-core/kern/i386/pc/startup.S (grub_hard_stop): Removed.
2232
215dd471
RM
22332010-08-30 Robert Millan <rmh@gnu.org>
2234
2235 * NEWS: Document addition of ZFS support in `grub-install' and
2236 `grub-mkconfig'.
2237
ebd65b82
BC
22382010-08-30 BVK Chaitanya <bvk.groups@gmail.com>
2239
2240 * conf/Makefile.common (CPPFLAGS_DEFAULT): Remove leading / from
2241 dprintf output.
2242
11721d19
VS
22432010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
2244
2245 Remove leftover embedding of font objects.
2246
2247 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
2248 * util/grub-install.in (font): Removed.
2249 * util/grub-mkimage.c (generate_image): Remove font support. All users
2250 updated.
2251
37837d4e
VS
22522010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
2253
2254 Remove leftover embedding of font objects.
2255
2256 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
2257 * util/grub-install.in (font): Removed.
2258 * util/grub-mkimage.c (generate_image): Remove font support. All users
2259 updated.
2260
b4c1aae0
VS
22612010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
2262
2263 * docs/grub.texi (Network): Fix reference to pxe_blksize.
e176a764 2264 Reported by: Ian Turner
b4c1aae0 2265
8920a08d
VS
22662010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
2267
2268 * grub-core/normal/menu.c (grub_wait_after_message): Add a 10 second
2269 timeout to avoid indefinite boot stalling.
2270
f21db033
VS
22712010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
2272
2273 * grub-core/normal/color.c (grub_env_write_color_normal): Fix a warning.
2274 (grub_env_write_color_highlight): Likewise.
2275
9a9de209
VS
22762010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
2277
2278 * grub-core/normal/term.c (print_more): Return to normal and not
2279 to standard state after printing "---MORE---".
2280
3dca01d7
VS
22812010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
2282
2283 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate):
2284 Mask out the bit 0x80 since it has other meaning that specifiing color.
2285
0b986c40
VS
22862010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
2287
2288 New relocator. Allows for more kernel support and more straightforward
2289 loader writing.
2290
2291 * Makefile.am (BOOTTARGET): New variable.
2292 (QEMU32): Likewise.
2293 (linux.init.x86_64): New target.
2294 (linux.init.i386): Likewise.
2295 (multiboot.elf): Likewise.
2296 (kfreebsd.elf): Likewise.
2297 (kfreebsd.aout): Likewise.
2298 (pc-chainloader.elf): Likewise.
2299 (pc-chainloader.bin): Likewise.
2300 (ntldr.elf): Likewise.
2301 (ntldr.bin): Likewise.
2302 (multiboot2.elf): Likewise.
2303 (kfreebsd.init.x86_64): Likewise.
2304 (kfreebsd.init.i386): Likewise.
2305 (knetbsd.init.i386): Likewise.
2306 (kopenbsd.init.i386): Likewise.
2307 (knetbsd.init.x86_64): Likewise.
2308 (kopenbsd.init.x86_64): Likewise.
2309 (linux-initramfs.i386): Likewise.
2310 (linux-initramfs.x86_64): Likewise.
2311 (kfreebsd-mfsroot.i386.img): Likewise.
2312 (knetbsd.image.i386): Likewise.
2313 (kopenbsd.image.i386): Likewise.
2314 (kopenbsd.image.x86_64): Likewise.
2315 (knetbsd.miniroot-image.i386.img): Likewise.
2316 (kfreebsd-mfsroot.x86_64.img): Likewise.
2317 (knetbsd.image.x86_64): Likewise.
2318 (knetbsd.miniroot-image.x86_64.img): Likewise.
2319 (kfreebsd-mfsroot.i386.gz): Likewise.
2320 (bootcheck-kfreebsd-i386): Likewise.
2321 (kfreebsd-mfsroot.x86_64.gz): Likewise.
2322 (bootcheck-kfreebsd-x86_64): Likewise.
2323 (knetbsd.miniroot-image.i386.gz): Likewise.
2324 (bootcheck-knetbsd-i386): Likewise.
2325 (bootcheck-kopenbsd-i386): Likewise.
2326 (bootcheck-kopenbsd-x86_64): Likewise.
2327 (knetbsd.miniroot-image.x86_64.gz): Likewise.
2328 (bootcheck-knetbsd-x86_64): Likewise.
2329 (bootcheck-linux-i386): Likewise.
2330 (bootcheck-linux-x86_64): Likewise.
2331 (bootcheck-linux16-i386): Likewise.
2332 (bootcheck-linux16-x86_64): Likewise.
2333 (bootcheck-multiboot): Likewise.
2334 (bootcheck-multiboot2): Likewise.
2335 (bootcheck-kfreebsd-aout): Likewise.
2336 (bootcheck-pc-chainloader): Likewise.
2337 (bootcheck-ntldr): Likewise.
2338 (CLEANFILES): Add new targets.
2339 (BOOTCHECKS): New variable.
2340 (.PHONY): Add bootchecks.
2341 (SUCCESSFUL_BOOT_STRING): New variable.
2342 (BOOTCHECK_TIMEOUT): Likewise.
2343 (bootcheck): New target
2344 * Makefile.util.def (grub-mkrescue): Enable on i386-multiboot.
2345 * configure.ac: Correct efiemu excuse.
2346 * docs/grub.texi (Supported kernels): New chapter.
2347 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add
2348 include/grub/mm_private.h. Simplify inclusion of
2349 include/grub/boot.h, include/grub/loader.h
2350 and include/grub/msdos_partition.h
2351 (KERNEL_HEADER_FILES) [i386_coreboot]:
2352 Remove include/grub/machine/loader.h. Add include/grub/i386/pit.h.
2353 (KERNEL_HEADER_FILES) [i386_multiboot]: Likewise.
2354 (KERNEL_HEADER_FILES) [i386_qemu]: Likewise.
2355 (KERNEL_HEADER_FILES) [i386_ieee1275]: Remove
2356 include/grub/machine/loader.h.
2357 (KERNEL_HEADER_FILES) [x86_64-efi]: Likewise.
2358 * grub-core/Makefile.core.def (kernel): Remove kern/i386/loader.S from
2359 extra_dist.
2360 (pci.mod): Enable on i386-multiboot.
2361 (acpi.mod): Enable on i386-multiboot and i386-coreboot.
2362 (efiemu.mod): Enable on i386-coreboot, i386-ieee1275, i386-multiboot and
2363 i386-qemu.
2364 (relocator.mod): Rewritten.
2365 (aout.mod): Enable on all x86.
2366 (bsd.mod): Likewise.
2367 (ntldr.mod): New module.
2368 (linux.mod): Use loader/i386/linux.c on all x86.
2369 (xnu.mod): Enable on all x86.
2370 (vga_text.mod): disable on EFI and QEMU.
2371 * grub-core/efiemu/i386/coredetect.c: Remove useless include.
2372 * grub-core/efiemu/i386/pc/cfgtables.c: Likewise.
2373 * grub-core/efiemu/loadcore.c: Likewise.
2374 * grub-core/efiemu/main.c: Likewise.
2375 (grub_efiemu_exit_boot_services): Removed.
2376 (grub_efiemu_finish_boot_services): Likewise.
2377 * grub-core/efiemu/mm.c (grub_efiemu_finish_boot_services): New
2378 function.
2379 * grub-core/efiemu/i386/nocfgtables.c: New file.
2380 * grub-core/kern/dl.c (grub_dl_unload_all): Removed.
2381 * grub-core/kern/efi/efi.c (grub_efi_exit_boot_services): Removed.
2382 (grub_efi_finish_boot_services): Moved from here ...
2383 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services): ...here.
2384 Fille finish memory map and related data.
2385 (finish_mmap_buf): New variable.
2386 (grub_efi_uintn_t finish_mmap_size): Likewise.
2387 (grub_efi_uintn_t finish_key): Likewise.
2388 (grub_efi_uintn_t finish_desc_size): Likewise.
2389 (grub_efi_uint32_t finish_desc_version): Likewise.
2390 (grub_efi_is_finished): Likewise.
2391 (grub_efi_get_memory_map): Use saved memory map if EFI is already
2392 finished.
2393 * grub-core/kern/elf.c (grub_elf32_phdr_iterate): Make global.
2394 (grub_elf64_phdr_iterate): Likewise.
2395 * grub-core/kern/i386/coreboot/init.c (grub_os_area_addr): Removed.
2396 (grub_os_area_size): Likewise.
2397 (grub_machine_init): Don't reserve os area.
2398 * grub-core/kern/i386/coreboot/startup.S: Don't include loader.S.
2399 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
2400 * grub-core/kern/i386/loader.S: Removed.
2401 * grub-core/kern/i386/pc/init.c (grub_os_area_addr): Removed.
2402 (grub_os_area_size): Likewise.
2403 (grub_machine_init): Don't reserve os area.
2404 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
2405 Don't call grub_dl_unload_all.
2406 Don't include loader.S.
2407 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
2408 Declare the memory after _end as available.
2409 * grub-core/kern/mm.c (GRUB_MM_FREE_MAGIC): Moved from here...
1935c077 2410 * include/grub/mm_private.h (GRUB_MM_FREE_MAGIC): ... here.
0b986c40 2411 (GRUB_MM_ALLOC_MAGIC): Moved from here...
1935c077
VS
2412 * include/grub/mm_private.h (GRUB_MM_ALLOC_MAGIC): ... here.
2413 * grub-core/kern/mm.c (grub_mm_header): Moved from here...
2414 * include/grub/mm_private.h (grub_mm_header): ... here.
2415 * grub-core/kern/mm.c (GRUB_MM_ALIGN): Moved from here...
2416 * include/grub/mm_private.h (GRUB_MM_ALIGN): ... here.
0b986c40
VS
2417 * grub-core/kern/mm.c (grub_mm_region): Moved from here ...
2418 (grub_mm_region): ..here. Removed addr. Added pre_size.
2419 All users updated.
2420 * grub-core/kern/mm.c (base): Renamed to ...
2421 (grub_mm_base): ... this. Made global.
2422 (grub_real_malloc): Alloc from end of region.
2423 (grub_memalign): Don't attempt to malloc if grub_mm_base is NULL.
2424 * grub-core/kern/powerpc/cache.S (grub_arch_sync_caches): Move to ...
2425 * grub-core/kern/powerpc/cache_flush.S: ... here.
2426 * grub-core/lib/efi/relocator.c: New file.
2427 * grub-core/lib/i386/relocator.c: Rewritten.
2428 * grub-core/lib/i386/relocator16.S: New file.
2429 * grub-core/lib/i386/relocator32.S: Likewise.
2430 * grub-core/lib/i386/relocator64.S: Likewise.
2431 * grub-core/lib/i386/relocator_asm.S: Rewritten.
2432 * grub-core/lib/i386/relocator_common.S: New file.
2433 * grub-core/lib/ieee1275/relocator.c: Likewise.
2434 * grub-core/lib/mips/relocator.c: Rewritten.
2435 * grub-core/lib/mips/relocator_asm.S: Renamed variables and minor
2436 stylistic adjustments.
2437 * grub-core/lib/powerpc/relocator.c: New file.
2438 * grub-core/lib/powerpc/relocator_asm.S: Likewise.
2439 * grub-core/lib/relocator.c: Rewritten.
2440 * grub-core/lib/x86_64/relocator_asm.S: New file.
2441 * grub-core/loader/aout.c (grub_aout_load): Make load_addr a void *.
2442 * grub-core/loader/i386/bsd.c (NETBSD_DEFAULT_VIDEO_MODE): New const.
2443 (bsd_tag): New struct.
2444 (tags): New variable.
2445 (tags_last): Likewise.
2446 (netbsd_module): New struct.
2447 (netbsd_mods): New variable.
2448 (netbsd_mods_last): Likewise.
2449 (openbsd_opts): New parameter "serial".
2450 (OPENBSD_SERIAL_ARG): New definition.
2451 (netbsd_opts): New parameter "serial".
2452 (NETBSD_SERIAL_ARG): New definition.
2453 (grub_freebsd_add_meta): Reorganised into ...
2454 (grub_bsd_add_meta): ...this. All users updated.
2455 (grub_freebsd_add_mmap): Reorganised into ...
2456 (generate_e820_mmap): ...this...
2457 (grub_bsd_add_mmap): ...and this. All users updated.
2458 (grub_freebsd_list_modules): Use tags.
2459 (grub_netbsd_add_meta_module): New function.
2460 (grub_netbsd_list_modules): Likewise.
2461 (grub_freebsd_boot): Use relocator and finish EFI.
2462 (grub_openbsd_boot): Likewise.
2463 (grub_netbsd_setup_video): New function.
2464 (grub_netbsd_add_modules): Likewise.
2465 (grub_netbsd_boot): Use grub_netbsd_add_modules, relocator, netbsd_tags
2466 and finish EFI.
2467 (grub_bsd_unload): Unload tags.
2468 (grub_bsd_load_aout): Use relocator.
2469 (grub_bsd_elf32_size_hook): New function.
2470 (grub_bsd_elf32_hook): Use relocator.
2471 (grub_bsd_elf64_size_hook): New function.
2472 (grub_bsd_elf64_hook): Use relocator.
2473 (grub_bsd_load_elf): Use relocator and call grub_openbsd_find_ramdisk.
2474 (grub_bsd_load): Zero-out openbsd_ramdisk.
2475 (grub_bsd_load): Use relocator.
2476 (grub_cmd_openbsd): Support serial.
2477 (grub_cmd_netbsd): Support modules.
2478 (grub_cmd_freebsd_module): Use relocator.
2479 (grub_netbsd_module_load): New function.
2480 (grub_cmd_netbsd_module): Likewise.
2481 (grub_cmd_openbsd_ramdisk): Likewise.
2482 (GRUB_MOD_INIT): Register knetbsd_module, knetbsd_module_elf and
2483 kopenbsd_ramdisk.
2484 (GRUB_MOD_FINI): Unregister new commands.
2485 * grub-core/loader/i386/bsdXX.c (load): Remove useless checks.
2486 (grub_freebsd_load_elfmodule_obj): Use relocator.
2487 (grub_freebsd_load_elfmodule): Likewise.
2488 (grub_freebsd_load_elf_meta): Likewise.
2489 (grub_netbsd_load_elf_meta): New function.
2490 (grub_openbsd_find_ramdisk): Likewise.
2491 * grub-core/loader/i386/bsd_helper.S: Removed.
2492 * grub-core/loader/i386/bsd_pagetable.c: Support relocator.
2493 * grub-core/loader/i386/bsd_trampoline.S: Removed.
2494 * grub-core/loader/i386/efi/linux.c: Likewise.
2495 * grub-core/loader/i386/ieee1275/linux.c: Likewise.
2496 * grub-core/loader/i386/linux.c (HAS_VGA_TEXT): New const.
2497 (DEFAULT_VIDEO_MODE): Likewise.
2498 (real_mode_target): New variable.
2499 (prot_mode_target): Likewise.
2500 (initrd_mem_target): Likewise.
2501 (relocator): Likewise.
2502 (efi_mmap_buf): Likewise.
2503 (efi_mmap_size): Likewise.
2504 (find_efi_mmap_size): Moved from grub-core/loader/i386/efi/linux.c.
2505 (free_pages): Use relocator.
2506 (allocate_pages): Account for efi_mmap and use relocator. Return error.
2507 (grub_linux_setup_video): Return error.
2508 (grub_linux_trampoline_start): Removed.
2509 (grub_linux_trampoline_end): Likewise.
2510 (grub_linux_boot): Use relocator and DEFAULT_VIDEO_MODE. Pass console
2511 andd video parameters depending on firmware.
2512 [GRUB_MACHINE_IEEE1275]: Pass OFW parameters.
2513 [GRUB_MACHINE_EFI]: Pass EFI parameters.
2514 (grub_cmd_linux) [GRUB_MACHINE_EFI]: Likewise.
2515 (grub_cmd_initrd): Use relocator.
2516 * grub-core/loader/i386/linux_trampoline.S: Removed.
2517 * grub-core/loader/i386/multiboot_mbi.c (elf_sec_num): New variable.
2518 (elf_sec_entsize): Likewise.
2519 (elf_sec_shstrndx): Likewise.
2520 (elf_sections): Likewise.
2521 (grub_multiboot_load): Use relocator.
2522 (grub_multiboot_get_mbi_size): Account for sections.
2523 (grub_multiboot_make_mbi): Use relocator and support sections.
2524 (grub_multiboot_add_elfsyms): New function.
2525 (grub_multiboot_free_mbi): Free sections.
2526 * grub-core/loader/i386/pc/linux.c (relocator): New variable.
2527 (grub_linux_real_target): Likewise.
2528 (grub_linux_real_chunk): Likewise.
2529 (grub_linux16_prot_size): Likewise.
2530 (grub_linux16_boot): Use relocator.
2531 (grub_linux_unload): Unload relocator.
2532 (grub_cmd_linux): Use relocator.
2533 (grub_cmd_initrd): Likewise.
2534 * grub-core/loader/i386/pc/ntldr.c: New file.
2535 * grub-core/loader/i386/xnu.c (guessfsb) [GRUB_MACHINE_IEEE1275]:
2536 Don't try to guess CPU frequency.
2537 (grub_xnu_set_video): Stretch bitmap.
2538 (grub_xnu_boot): Use relocator.
2539 * grub-core/loader/mips/linux.c (grub_linux_boot): Use relocator.
2540 (grub_linux_unload): Free relocator.
2541 (grub_linux_load32): Use relocator.
2542 (grub_linux_load64): Likewise.
2543 (grub_cmd_initrd): Likewise.
2544 * grub-core/loader/multiboot.c (grub_multiboot_boot): Use relocator.
2545 (grub_multiboot_unload): Unload relocator.
2546 (grub_cmd_multiboot): Use relocator.
2547 (grub_cmd_module): Likewise.
2548 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elfXX):
2549 Use relocator and support sections.
2550 * grub-core/loader/multiboot_mbi2.c(elf_sec_num): New variable.
2551 (elf_sec_entsize): Likewise.
2552 (elf_sec_shstrndx): Likewise.
2553 (elf_sections): Likewise.
2554 (grub_multiboot_load): Use relocator.
2555 (grub_multiboot_get_mbi_size): Account for sections.
2556 (grub_multiboot_make_mbi): Use relocator and support sections.
2557 (grub_multiboot_add_elfsyms): New function.
2558 * grub-core/loader/powerpc/ieee1275/linux.c: Remove useless include.
2559 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
2560 * grub-core/loader/xnu.c (grub_xnu_heap_malloc): Use relocator.
2561 Prototype changed. All users updated.
2562 (grub_xnu_align_heap): Simplified.
2563 (grub_xnu_writetree_toheap): Likewise.
2564 (grub_xnu_unload): Unload relocator.
2565 (grub_cmd_xnu_kernel): Use relocator.
2566 (grub_cmd_xnu_kernel64): Likewise.
2567 (grub_xnu_register_memory): Simplified.
2568 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Use relocator.
1935c077
VS
2569 * grub-core/term/efi/console.c (grub_console_putchar): Abort if
2570 EFI is finished.
2571 (grub_console_checkkey): Likewise.
2572 (grub_console_getkey): Likewise.
2573 (grub_console_getwh): Likewise.
2574 (grub_console_getxy): Likewise.
2575 (grub_console_gotoxy): Likewise.
2576 (grub_console_cls): Likewise.
2577 (grub_console_setcolorstate): Likewise.
2578 (grub_console_setcursor): Likewise.
2579 * grub-core/term/ns8250.c (grub_ns8250_hw_get_port): New function.
2580 * grub-core/tests/boot/kbsd.init-i386.S: New file.
2581 * grub-core/tests/boot/kbsd.init-x86_64.S: Likewise.
2582 * grub-core/tests/boot/kbsd.spec.txt: Likewise.
2583 * grub-core/tests/boot/kernel-8086.S: Likewise.
2584 * grub-core/tests/boot/kernel-i386.S: Likewise.
2585 * grub-core/tests/boot/kfreebsd-aout.cfg: Likewise.
2586 * grub-core/tests/boot/kfreebsd.cfg: Likewise.
2587 * grub-core/tests/boot/kfreebsd.init-i386.S: Likewise.
2588 * grub-core/tests/boot/kfreebsd.init-x86_64.S: Likewise.
2589 * grub-core/tests/boot/knetbsd.cfg: Likewise.
2590 * grub-core/tests/boot/kopenbsd.cfg: Likewise.
2591 * grub-core/tests/boot/kopenbsdlabel.txt: Likewise.
2592 * grub-core/tests/boot/linux.cfg: Likewise.
2593 * grub-core/tests/boot/linux.init-i386.S: Likewise.
2594 * grub-core/tests/boot/linux.init-x86_64.S: Likewise.
2595 * grub-core/tests/boot/linux16.cfg: Likewise.
2596 * grub-core/tests/boot/multiboot.cfg: Likewise.
2597 * grub-core/tests/boot/multiboot2.cfg: Likewise.
2598 * grub-core/tests/boot/ntldr.cfg: Likewise.
2599 * grub-core/tests/boot/pc-chainloader.cfg: Likewise.
2600 * include/grub/aout.h (grub_aout_load): Make load_addr a void *.
2601 * include/grub/autoefi.h (grub_autoefi_finish_boot_services):
2602 New definition.
2603 * include/grub/dl.h (grub_dl_unload_all): Removed.
2604 * include/grub/efi/efi.h (grub_efi_exit_boot_services): Likewise.
2605 (grub_efi_finish_boot_services): Change prototype.
2606 (grub_efi_is_finished): New variable.
2607 * include/grub/efiemu/efiemu.h (grub_efiemu_finish_boot_services):
2608 Changed prototype.
2609 (grub_efiemu_finish_boot_services): Removed.
2610 (grub_machine_efiemu_init_tables): New prototype.
2611 * include/grub/elfload.h (grub_elf32_phdr_iterate): Likewise.
2612 (grub_elf64_phdr_iterate): Likewise.
2613 * include/grub/i386/bsd.h: Include relocator.h.
2614 (freebsd_tag_header): New struct.
2615 (grub_openbsd_bios_mmap): Removed.
2616 (grub_unix_real_boot): Removed.
2617 (grub_freebsd_load_elfmodule32): Changed prototype.
2618 (grub_freebsd_load_elfmodule_obj64): Likewise.
2619 (grub_freebsd_load_elf_meta32): Likewise.
2620 (grub_freebsd_load_elf_meta64): Likewise.
2621 (grub_freebsd_add_meta): Removed.
2622 (grub_netbsd_load_elf_meta32): New prototype.
2623 (grub_netbsd_load_elf_meta64): Likewise.
2624 (grub_bsd_add_meta): Likewise.
2625 (grub_openbsd_ramdisk_descriptor): New struct.
2626 (grub_openbsd_find_ramdisk32): New prototype.
2627 (grub_openbsd_find_ramdisk64): Likewise.
2628 * include/grub/i386/coreboot/loader.h: Removed.
2629 * include/grub/i386/efi/loader.h: Likewise.
2630 * include/grub/i386/ieee1275/loader.h: Likewise.
2631 * include/grub/i386/linux.h (linux_kernel_header): Change void *
2632 to grub_uint32_t.
2633 * include/grub/i386/loader.h: Removed.
2634 * include/grub/i386/memory.h (GRUB_MEMORY_CPU_CR4_PAE_ON): Correct the
2635 value.
2636 (GRUB_MEMORY_CPU_CR4_PSE_ON): New definition.
2637 (grub_phys_addr_t): New type.
2638 (grub_vtop): New inline function.
2639 (grub_map_memory): Likewise.
2640 (grub_unmap_memory): Likewise.
2641 * include/grub/i386/multiboot/loader.h: Removed.
2642 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK): Removed.
2643 (NETBSD_BTINFO_CONSOLE): New definition.
2644 (NETBSD_BTINFO_SYMTAB): Likewise.
2645 (NETBSD_BTINFO_MODULES): Likewise.
2646 (NETBSD_BTINFO_FRAMEBUF): Likewise.
2647 (grub_netbsd_bootinfo): New struct.
2648 (grub_netbsd_btinfo_common): Use explicit bitsize.
2649 (grub_netbsd_btinfo_mmap_entry): Removed.
2650 (GRUB_NETBSD_MAX_BOOTPATH_LEN): New definition.
2651 (grub_netbsd_btinfo_bootdisk): New struct.
2652 (grub_netbsd_btinfo_symtab): Likewise.
2653 (grub_netbsd_btinfo_serial): Likewise.
2654 (grub_netbsd_btinfo_modules): Likewise.
2655 (grub_netbsd_btinfo_framebuf): Likewise.
2656 (GRUB_NETBSD_MAX_ROOTDEVICE_LEN): New definition.
2657 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_CONSOLE):
2658 Likewise.
2659 (grub_openbsd_bootargs): Use explicit bitsize.
2660 (grub_openbsd_bootarg_console): New struct.
2661 (GRUB_OPENBSD_COM_MAJOR): New definition.
2662 (GRUB_OPENBSD_VGA_MAJOR): Likewise.
2663 * include/grub/i386/pc/efiemu.h: Removed.
2664 * include/grub/i386/pc/loader.h: Don't include cpu/loader.h.
2665 * include/grub/i386/qemu/loader.h: Removed.
2666 * include/grub/i386/relocator.h: Rewritten.
2667 * include/grub/i386/xnu.h (grub_xnu_heap_will_be_at): Removed.
2668 * include/grub/mips/memory.h: New file.
2669 * include/grub/mips/multiboot.h: Rewritten.
2670 * include/grub/mips/relocator.h: Rewritten.
2671 * include/grub/mips/yeeloong/memory.h (grub_phys_addr_t): New type.
2672 (grub_vtop): New function.
2673 (grub_map_memory): Likewise.
2674 (grub_unmap_memory): Likewise.
2675 * include/grub/misc.h (ALIGN_DOWN): New definition.
2676 * include/grub/mm.h (grub_mm_check_real): New proto.
2677 (GRUB_MM_CHECK): New definition.
2678 * include/grub/mm_private.h: New file.
2679 * include/grub/multiboot.h (grub_multiboot_relocator): New variable.
2680 (grub_multiboot_get_mbi_size): Removed.
2681 (grub_multiboot_make_mbi): Change prottype.
2682 (grub_multiboot_set_accepts_video): New proto.
2683 (grub_multiboot_add_elfsyms): Likewise.
2684 (grub_multiboot_payload_eip): New variable.
2685 * include/grub/ns8250.h (grub_ns8250_hw_get_port) [!ASM_FILE]:
2686 New prototype.
2687 * include/grub/offsets.h (GRUB_KERNEL_I386_MULTIBOOT_PREFIX):
2688 New definition.
2689 (GRUB_KERNEL_I386_MULTIBOOT_DATA_END): Likewise.
2690 (GRUB_KERNEL_I386_MULTIBOOT_MOD_ALIGN): Likewise.
2691 * include/grub/powerpc/ieee1275/loader.h: Removed.
2692 * include/grub/powerpc/memory.h: New file.
2693 * include/grub/powerpc/relocator.h: Likewise.
2694 * include/grub/relocator.h: Likewise.
2695 * include/grub/relocator_private.h: Likewise.
2696 * include/grub/sparc64/ieee1275/loader.h: Removed.
2697 * include/grub/x86_64/memory.h: New file.
2698 * include/grub/xnu.h (grub_xnu_writetree_toheap): Changed prototype.
2699 (grub_xnu_heap_malloc): Likewise.
2700 (grub_xnu_heap_real_start): Removed.
2701 (grub_xnu_heap_start): Likewise.
2702 (grub_xnu_relocator): New variable.
2703 (grub_xnu_heap_target_start): Likewise.
2704 * tests/util/grub-shell.in: Support non-pc.
2705 * util/grub-mkimage.c (image_targets): Fix multiboot target.
0b986c40 2706
5303b85d
VS
27072010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
2708
2709 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Avoid deadloop
2710 on malloc error.
2711 (grub_bidi_logical_to_visual): Check that malloc succeded.
2712 * grub-core/normal/term.c (grub_puts_terminal): Fix fallback to dumb
2713 puts.
2714 (grub_xputs_normal): Likewise.
2715
d768d159
VS
27162010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
2717
2718 * grub-core/Makefile.core.def (kernel): Add kern/mips/cache_flush.S to
2719 extra_dist.
2720
27212010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
2722
2723 * grub-core/efiemu/runtime/efiemu.sh: Removed.
2724
5bf84df4
VS
27252010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
2726
2727 * Makefile.util.def (grub-ofpathname): Add missing ldadd.
2728
3626810e
VS
27292010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
2730
2731 * grub-core/kern/misc.c (grub_real_dprintf): Always refresh after
2732 dprintf.
2733
a7363f53
BC
27342010-08-29 BVK Chaitanya <bvk.groups@gmail.com>
2735
2736 * Makefile.util.def: Use ldadd instead of ldflags for libraries.
2737
902f75f6
VS
27382010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
2739
2740 * grub-core/normal/term.c (print_more): Fix a memory leak.
2741 (grub_puts_terminal): Revert to dumb puts if memory allocation fails.
2742 (grub_xputs_normal): Likewise.
2743
3c707967
VS
27442010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
2745
2746 * grub-core/script/lexer.c (grub_script_lexer_init): Don't look before
2747 the begining of the string
2748
2053cc07
VS
27492010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
2750
2751 * grub-core/script/script.c (grub_script_parse): Free parsed on
2752 failure.
2753
46422ebf
VS
27542010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
2755
2756 * grub-core/normal/completion.c (grub_normal_do_completion): Free argv
2757 on failure.
2758
9e0fa3f6
VS
27592010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
2760
2761 * grub-core/normal/cmdline.c (grub_cmdline_get): Free cl_terms on
2762 return.
2763
3393cf16
VS
27642010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
2765
2766 * grub-core/term/gfxterm.c (grub_gfxterm_term_fini): Free the text buffer.
2767 (scroll_up): Fix a memory leak.
2768
b17540cb
VS
27692010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
2770
2771 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Handle grub_disk_read
2772 errors.
2773
67140446
VS
27742010-08-27 Vladimir Serbinenko <phcoder@gmail.com>
2775
2776 Handle USB pendrives exposed as floppies.
2777
2778 * grub-core/boot/i386/pc/boot.S: Check LBA even on what appears to be
2779 floppy.
2780 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
2781 Check for partitions on all devices.
2782
e35e46fc
VS
27832010-08-25 Vladimir Serbinenko <phcoder@gmail.com>
2784
2785 * grub-core/term/ieee1275/ofconsole.c (put): Correct prototype.
2786 (readkey): Likewise.
2787
d24c6190
BC
27882010-08-25 BVK Chaitanya <bvk.groups@gmail.com>
2789
2790 Multiple variable names support to "export" command.
2791
2792 * normal/context.c (grub_cmd_export): "export" command supports
2793 multiple variable names.
2794
04ddcc6a
ST
27952010-08-23 Samuel Thibault <samuel.thibault@ens-lyon.org>
2796
2797 * util/grub.d/30_os-prober.in: Fix conversion from grub-probe
2798 --target=drive output to Mach device name.
2799
0c8b61d8
BC
28002010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
2801
2802 New Automake based build system for GRUB.
2803
2804 * ABOUT-NLS: New file.
2805 * Makefile.am: New file. GRUB host utils' rules that doesn't fit
2806 in Makefile.util.def file.
2807 * Makefile.util.def: New file. Autogen build definitions file for
2808 GRUB host utils.
2809 * conf/Makefile.common: New file. Common variables for GRUB host
2810 utils and target modules.
2811 * conf/Makefile.extra-dist: New file. Extra files for make dist.
2812 * docs/Makefile.am: New file. Automake file for docs.
2813 * gentpl.py: New file. Python script to generate Autogen
2814 template.
2815 * grub-core/Makefile.am: New file. GRUB target modules' rules
2816 that doesn't fit in Makefile.core.def file.
2817 * grub-core/Makefile.core.def: New file. Autogen build
2818 definitions file for GRUB target modules.
2819 * grub-core/lib/setjmp.S: New file. Wrapper for target_cpu
2820 specific setjmp.S file.
2821 * po/Makefile.am: New file.
2822
2823 * .bzrignore: New ignores.
2824 * INSTALL: New requirements, without Ruby.
2825 * acinclude.m4: Use TARGET_IMG_BASE_LDOPT variable instead.
2826 * autogen.sh: Updated to invoke autogen as necessary.
2827 * configure.ac: Separate *FLAGS with HOST_ and TARGET_ prefixes,
2828 and defines for Automake conditionals.
2829 * geninit.sh: Refactoring.
2830
2831 * include/grub/dl.h: Allow build rules to define GRUB_MOD_* if
2832 necessary.
2833 * include/grub/emu/getroot.h (grub_make_system_path_relative_to_its_root):
2834 New prototype.
2835
2836 * include/grub/test.h: Fix functional test modules' naming.
2837 * grub-core/tests/example_functional_test.c: Fix test module name.
2838
2839 * util/misc.c: Hosted versions' of grub functions for libgrub.a
2840 * tests/lib/unit_test.c: Remove hosted versions of grub functions.
2841 * util/grub-editenv.c: Likewise.
2842 * util/grub-fstest.c: Likewise.
2843 * util/grub-mkdevicemap.c: Likewise.
2844 * util/grub-mkfont.c: Likewise.
2845 * util/grub-mkimage.c: Likewise.
2846 * util/grub-mkpasswd-pbkdf2.c: Likewise.
2847 * util/grub-probe.c: Likewise.
2848 * util/grub-script-check.c: Likewise.
2849 * util/i386/pc/grub-setup.c: Likewise.
2850 * util/sparc64/ieee1275/grub-setup.c: Likewise.
2851
2852 * tests/util/grub-shell.in: Fix override directory path.
2853 * util/grub-mkrescue.in: Replace @pkglib_DATA@ with files.
2854 * util/import_gcry.py: Create Makefile.gcry.def file instead.
2855
2856 * util/lvm.c: Update #includes.
2857 * util/raid.c: Likewise.
2858 * util/resolve.c: Likewise.
2859 * grub-core/bus/emu/pci.c: Likewise.
2860 * grub-core/lib/posix_wrap/stdlib.h: Likewise.
2861 * grub-core/lib/posix_wrap/string.h: Likewise.
2862 * grub-core/kern/emu/main.c: Likewise.
2863
2864 * grub-core/gensymlist.sh: New file. Script for generating kernel
2865 symbols file.
2866 * grub-core/genmoddep.awk: Support new kernel_syms.lst format.
2867
2868 * grub-core/gentrigtables.c: Fix unused variable warnings.
2869
2870 * Makefile.in: Removed.
2871 * conf/any-emu.rmk: Removed.
2872 * conf/common.rmk: Removed.
2873 * conf/i386-coreboot.rmk: Removed.
2874 * conf/i386-efi.rmk: Removed.
2875 * conf/i386-ieee1275.rmk: Removed.
2876 * conf/i386-multiboot.rmk: Removed.
2877 * conf/i386-pc.rmk: Removed.
2878 * conf/i386-qemu.rmk: Removed.
2879 * conf/i386.rmk: Removed.
2880 * conf/mips-yeeloong.rmk: Removed.
2881 * conf/mips.rmk: Removed.
2882 * conf/powerpc-ieee1275.rmk: Removed.
2883 * conf/sparc64-ieee1275.rmk: Removed.
2884 * conf/tests.rmk: Removed.
2885 * conf/x86-efi.rmk: Removed.
2886 * conf/x86_64-efi.rmk: Removed.
2887 * gendistlist.sh: Removed.
2888 * geninitheader.sh: Removed.
2889 * genkernsyms.sh.in: Removed.
2890 * genmk.rb: Removed.
2891 * gensymlist.sh.in: Removed.
2892 * mkinstalldirs: Removed.
2893 * boot: Moved ...
2894 * grub-core/boot: ... to here.
2895 * bus: Moved ...
2896 * grub-core/bus: ... to here.
2897 * commands: Moved ...
2898 * grub-core/commands: ... to here.
2899 * disk: Moved ...
2900 * grub-core/disk: ... to here.
2901 * efiemu: Moved ...
2902 * grub-core/efiemu: ... to here.
2903 * font: Moved ...
2904 * grub-core/font: ... to here.
2905 * fs: Moved ...
2906 * grub-core/fs: ... to here.
2907 * gencmdlist.sh: Moved ...
2908 * grub-core/gencmdlist.sh: ... to here.
2909 * genemuinit.sh: Moved ...
2910 * grub-core/genemuinit.sh: ... to here.
2911 * genemuinitheader.sh: Moved ...
2912 * grub-core/genemuinitheader.sh: ... to here.
2913 * genfslist.sh: Moved ...
2914 * grub-core/genfslist.sh: ... to here.
2915 * genhandlerlist.sh: Moved ...
2916 * grub-core/genhandlerlist.sh: ... to here.
2917 * genmoddep.awk: Moved ...
2918 * grub-core/genmoddep.awk: ... to here.
2919 * genmodsrc.sh: Moved ...
2920 * grub-core/genmodsrc.sh: ... to here.
2921 * genpartmaplist.sh: Moved ...
2922 * grub-core/genpartmaplist.sh: ... to here.
2923 * genparttoollist.sh: Moved ...
2924 * grub-core/genparttoollist.sh: ... to here.
2925 * genterminallist.sh: Moved ...
2926 * grub-core/genterminallist.sh: ... to here.
2927 * gentrigtables.c: Moved ...
2928 * grub-core/gentrigtables.c: ... to here.
2929 * genvideolist.sh: Moved ...
2930 * grub-core/genvideolist.sh: ... to here.
2931 * gettext: Moved ...
2932 * grub-core/gettext: ... to here.
2933 * gfxmenu: Moved ...
2934 * grub-core/gfxmenu: ... to here.
2935 * gnulib: Moved ...
2936 * grub-core/gnulib: ... to here.
2937 * hello: Moved ...
2938 * grub-core/hello: ... to here.
2939 * hook: Moved ...
2940 * grub-core/hook: ... to here.
2941 * io: Moved ...
2942 * grub-core/io: ... to here.
2943 * kern: Moved ...
2944 * grub-core/kern: ... to here.
2945 * lib: Moved ...
2946 * grub-core/lib: ... to here.
2947 * loader: Moved ...
2948 * grub-core/loader: ... to here.
2949 * mmap: Moved ...
2950 * grub-core/mmap: ... to here.
2951 * normal: Moved ...
2952 * grub-core/normal: ... to here.
2953 * partmap: Moved ...
2954 * grub-core/partmap: ... to here.
2955 * parttool: Moved ...
2956 * grub-core/parttool: ... to here.
2957 * script: Moved ...
2958 * grub-core/script: ... to here.
2959 * term: Moved ...
2960 * grub-core/term: ... to here
2961 * tests/example_functional_test.c: Moved ...
2962 * grub-core/tests/example_functional_test.c: ... to here.
2963 * tests/lib/functional_test.c: Moved ...
2964 * grub-core/tests/lib/functional_test.c: ... to here.
2965 * tests/lib/test.c: Moved ...
2966 * grub-core/tests/lib/test.c: ... to here.
2967 * video: Moved ...
2968 * grub-core/video: ... to here.
2969
645586e6
BC
29702010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
2971
2972 Replace --enable-grub-emu-modules with grub-emu-lite.
2973
2974 * kern/emu/cache.S: New file. Wrapper for $target_cpu specific
2975 cache.S.
2976
2977 * include/grub/emu/misc.h (grub_emu_init): New prototype.
2978 * kern/emu/full.c: New file. For grub-emu specific initialization.
2979 * kern/emu/lite.c: New file. For grub-emu-lite initialization.
2980 * kern/emu/main.c: Call initialization function grub_emu_init.
2981
2982 * Makefile.in: Include grub-emu-lite in install.
2983 * commands/parttool.c: Use grub_no_autoload to differentiate
2984 between grub-emu and grub-emu-lite.
2985 * include/grub/misc.h: New variable grub_no_autoload.
2986
2987 * conf/any-emu.rmk: New rules for grub-emu-lite.
2988 * configure.ac: Remove --enable-grub-emu-modules.
2989 * genmk.rb: Cleanup unnecessary rules.
2990 * include/grub/dl.h: Remove GRUB_NO_MODULES macro.
2991
2992 * normal/main.c: Don't load list files on grub-emu-lite.
2993 * util/misc.c (grub_arch_sync_caches): Removed.
2994
f86a4030
CW
29952010-08-23 Colin Watson <cjwatson@ubuntu.com>
2996
2997 * kern/mips/startup.S (grub_prefix): Update comment to refer to
2998 grub-mkimage rather than grub-mkelfimage.
2999 * kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
3000
06776944
VS
30012010-08-22 Vladimir Serbinenko <phcoder@gmail.com>
3002
3003 * term/at_keyboard.c (grub_at_keyboard_getkey_noblock): Don't discard
3004 a key after CapsLock or NumLock. It's just a qemu bug.
3005
df262419
VS
30062010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
3007
3008 * include/grub/usb.h (grub_usb_device): Add 'data' field back. It's
3009 needed by libusb wrapper.
3010
b40ea81b
ST
30112010-08-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
3012
3013 * docs/grub.texi (GNU/Hurd): Document booting GNU/Hurd.
3014
dee50575
VS
30152010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
3016
3017 * loader/multiboot.c (grub_cmd_module): Don't unzip module if
3018 --nounzip is passed.
3019
fb1d7b79
VS
30202010-08-20 Vladimir Serbinenko <phcoder@gmail.com>
3021
3022 USB hotunplugging and USB serial support.
3023
3024 * bus/usb/ohci.c (grub_ohci_transfer): Fill *actual and respect timeout.
3025 * bus/usb/uhci.c (grub_free_queue): Compute *actual.
3026 (grub_uhci_transfer): Respect timeout and set *actual.
3027 * bus/usb/usb.c (grub_usb_device_initialize): Correctly skip fields of
3028 non-standard length.
3029 (grub_usb_device_attach): Autoload modules.
3030 (GRUB_MOD_INIT): Set grub_term_poll_usb.
3031 (GRUB_MOD_FINI): Unset grub_term_poll_usb.
3032 * bus/usb/usbhub.c (grub_usb_hub): Replace speed with devices. All
3033 users updated.
3034 (grub_usb_add_hub): Fill nports and children.
3035 (attach_root_port): Receive hub instead of controller.
3036 All users updated. Fill hub->devices.
3037 (grub_usb_root_hub): Allocate hub->devices.
3038 (detach_device): New function.
3039 (poll_nonroot_hub): Fill children and detach devices.
3040 * bus/usb/usbtrans.c (grub_usb_bulk_readwrite): Accept timeout and
3041 actual arguments. All users updated.
3042 (grub_usb_bulk_read_extended): New function.
3043 * bus/usb/serial/common.c: New file.
3044 * bus/usb/serial/ftdi.c: Likewise.
3045 * bus/usb/serial/pl2303.c: Likewise.
3046 * commands/terminal.c (handle_command): Support wildcard.
3047 * commands/usbtest.c: Output "Unknown" instead of empty string.
3048 * conf/any-emu.rmk (pkglib_MODULES): Add usbserial_common.mod.
3049 (usbserial_common_mod_SOURCES): New variable.
3050 (usbserial_common_mod_CFLAGS): Likewise.
3051 (usbserial_common_mod_LDFLAGS): Likewise.
3052 (pkglib_MODULES): Add usbserial_pl2303.mod.
3053 (usbserial_pl2303_mod_SOURCES): New variable.
3054 (usbserial_pl2303_mod_CFLAGS): Likewise.
3055 (usbserial_pl2303_mod_LDFLAGS): Likewise.
3056 (pkglib_MODULES): Add usbserial_ftdi.mod.
3057 (usbserial_ftdi_mod_SOURCES): New variable.
3058 (usbserial_ftdi_mod_CFLAGS): Likewise.
3059 (usbserial_ftdi_mod_LDFLAGS): Likewise.
3060 (pkglib_MODULES): Add serial.mod.
3061 (serial_mod_SOURCES): New variable.
3062 (serial_mod_CFLAGS): Likewise.
3063 (serial_mod_LDFLAGS): Likewise.
3064 * conf/i386-pc.rmk: Likewise.
3065 * conf/mips-yeeloong.rmk: Likewise.
3066 * conf/i386.rmk (serial_mod_SOURCES): Add term/ns8250.c.
3067 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
3068 * disk/usbms.c (first_available_slot): New variable.
3069 (grub_usbms_attach): Don't reuse free slots due to potential cache
3070 problems.
3071 * include/grub/serial.h: Moved to ..
3072 * include/grub/ns8250.h: ...this.
3073 * include/grub/serial.h: New file.
3074 * include/grub/term.h (grub_term_poll_usb): New variable.
3075 * include/grub/terminfo.h (grub_terminfo_input_state): Pass term to
3076 readkey. All users updated.
3077 (grub_terminfo_output_state): Pass term to put.
3078 * include/grub/usb.h (GRUB_USB_REQTYPE): New enum.
3079 (grub_usb_controller_dev): Add timeout and actual arguments to
3080 transfer. All users updated.
3081 (grub_usb_interface): New field detach_data.
3082 (grub_usb_device): New fields children and nports.
3083 (grub_usb_ep_type_t): New type.
3084 (grub_usb_get_ep_type): New function.
3085 (grub_usb_bulk_read_extended): Likewise.
3086 * include/grub/usbdesc.h (grub_usb_desc): New type.
3087 * include/grub/usbserial.h: New file.
3088 * include/grub/usbtrans.h (grub_usb_transaction): New field preceding.
3089 * kern/term.c (grub_term_poll_usb): New variable.
3090 (grub_getkey): Call grub_term_poll_usb if set.
3091 (grub_checkkey): Likewise.
3092 (grub_getkeystatus): Likewise.
3093 * term/serial.c: Moved controller-specific parts to ...
3094 * term/ns8250.c: ... here.
3095 * term/serial.c: Mostly rewritten.
3096 * term/usb_keyboard.c: Reorganised to use GET_REPORT only on attaching
3097 according to spec.
3098
21a313de
RM
30992010-08-20 Robert Millan <rmh@gnu.org>
3100
3101 Make kFreeBSD code more generic to support ext2fs as root, ufs as
3102 a separate module and maybe other interesting combinations.
3103
3104 * util/grub.d/10_kfreebsd.in (load_kfreebsd_module): New function.
3105 (kfreebsd_entry): Use load_kfreebsd_module() to load modules.
3106 (kfreebsd_entry): Add generic filesystem module load routine.
3107 Map GRUB `ext2' to kFreeBSD `ext2fs'.
3108
63c734a6
CW
31092010-08-20 Colin Watson <cjwatson@ubuntu.com>
3110
3111 * commands/i386/pc/sendkey.c (keysym_table): Rename "numlock" to
3112 "numcenter" (I misunderstood the purpose of this entry).
3113 * docs/grub.texi (sendkey): Likewise.
3114
c4d16542
CW
31152010-08-20 Colin Watson <cjwatson@ubuntu.com>
3116
3117 * commands/i386/pc/sendkey.c (options): Remove "keep" from all
3118 status flag options; simply omitting the option is equivalent and
3119 simpler. Rename "wait" to "pause". Rename "sysreq" to "sysrq".
3120 (keysym_table): Rename "num5numlock" to "numlock".
3121 (grub_cmd_sendkey): Reinitialise `andmask' and `ormask', so that we
3122 can uniformly say that only the last of multiple `sendkey'
3123 invocations has any effect.
3124 * docs/grub.texi (sendkey): New section.
3125
93541d66
CW
31262010-08-19 Colin Watson <cjwatson@ubuntu.com>
3127
3128 * commands/i386/pc/sendkey.c (options): Fix three typos.
3129
b4ece5e1
VS
31302010-08-19 Vladimir Serbinenko <phcoder@gmail.com>
3131
3132 Implement sendkey support.
3133
3134 * commands/i386/pc/sendkey.c: New file.
3135 * conf/i386-pc.rmk (pkglib_MODULES): Add sendkey.mod.
3136 (sendkey_mod_SOURCES): New variable.
3137 (sendkey_mod_CFLAGS): Likewise.
3138 (sendkey_mod_LDFLAGS): Likewise.
3139
51f1f5af
CW
31402010-08-18 Colin Watson <cjwatson@ubuntu.com>
3141
3142 * configure.ac: Move AM_INIT_AUTOMAKE after AC_CANONICAL_TARGET to
3143 fix warnings from Autoconf.
3144
9da94e05
CW
31452010-08-18 Colin Watson <cjwatson@ubuntu.com>
3146
3147 * acinclude.m4 (grub_ASM_USCORE): Use a more accurate grep pattern,
3148 to avoid false positives with some assemblers that output things
3149 like "someprefix_func" as part of their output.
3150
729a0f2e
RM
31512010-08-15 Robert Millan <rmh@gnu.org>
3152
3153 * kern/emu/misc.c (grub_get_libzfs_handle): Handle libzfs_init()
3154 errors.
3155 * kern/emu/getroot.c (find_root_device_from_libzfs): Handle
3156 grub_get_libzfs_handle() errors.
3157
f3710e08
RM
31582010-08-14 Robert Millan <rmh@gnu.org>
3159
3160 * kern/emu/misc.c (grub_find_zpool_from_dir): Abort function if
3161 filesystem is not ZFS.
3162
7a3c13de
BC
31632010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
3164
3165 Fix for misspelled color names defaulting to black/black (bug
3166 reported by Doug Nazar)
3167
3168 * include/grub/normal.h (grub_parse_color_name_pair): Add return
3169 status to prototype.
3170 * normal/color.c (grub_parse_color_name_pair): Return failure
3171 status.
3172 (grub_env_write_color_normal): Ignore bad color names.
3173 (grub_env_write_color_highlight): Likewise.
3174 * normal/main.c (GRUB_MOD_INIT): Set default color names.
3175
ab8ba50d
BC
31762010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
3177
3178 "shift" command support to GRUB script.
3179
3180 * include/grub/script_sh.h (grub_script_shift): New prototype.
3181 * script/execute.c (grub_script_shift): New function.
3182 * script/main.c (grub_script_init): Register shift command.
3183 (grub_script_fini): Unregister shift command.
3184 * util/grub-script-check.c (grub_script_cmd_shift): New function.
3185
3186 * tests/grub_script_shift.in: New testcase.
3187 * conf/tests.rmk: Rules for new testcase.
3188
4d61999e
BC
31892010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
3190
3191 "continue" command support to GRUB script.
3192
3193 * script/execute.c (grub_script_execute_cmdwhile): Continue support.
3194 (grub_script_break): Continue support.
3195 * script/main.c (grub_script_init): Register continue command.
3196 (grub_script_fini): Unregister continue command.
3197
3198 * tests/grub_script_continue.in: New testcase.
3199 * conf/tests.rmk: Rules for new testcase.
3200
4df51e00
BC
32012010-08-12 BVK Chaitanya <bvk@dbook>
3202
3203 "break" command support to GRUB script.
3204
3205 * conf/common.rmk: Rule updates to grub-script-check.
3206 * include/grub/misc.h (grub_min): New function.
3207 * include/grub/script_sh.h (grub_script_init): New prototype.
3208 (grub_script_fini): New prototype.
3209 (grub_script_break): New prototype.
3210 * script/main.c (grub_script_init): New function.
3211 (grub_script_fini): New function.
3212 * script/execute.c (grub_script_break): New function.
3213 * normal/main.c: Calls to grub_script_{init,fini}.
3214 * util/grub-script-check.c (grub_script_break): New function.
3215
3216 * tests/grub_script_break.in: New testcase.
3217 * conf/tests.rmk: Rules for new test case.
3218
f12c8420
BC
32192010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
3220
3221 Function parameters support to GRUB script.
3222
3223 * script/yylex.l (VARIABLE): Regular expression update.
3224 * script/function.c (grub_script_function_call): Moved ...
3225 * script/execute.c (grub_script_function_call): ... to here.
3226 (grub_script_execute_arglist_to_argv): Removed.
3227 (grub_script_arglist_to_argv): New function.
3228 * script/argv.c: New file.
3229 (grub_script_argv_free): New function.
3230 (grub_script_argv_next): Likewise.
3231 (grub_script_argv_append): Likewise.
3232 (grub_script_argv_split_append): Likewise.
3233 * include/grub/script_sh.h (grub_script_argv): New struct.
3234 (grub_script_argv_free): New function.
3235 (grub_script_argv_next): Likewise.
3236 (grub_script_argv_append): Likewise.
3237 (grub_script_argv_split_append): Likewise.
3238
3239 * conf/common.rmk (normal.mod): New source script/argv.c.
3240
3241 * tests/grub_script_echo1.in: More tests.
3242 * tests/grub_script_vars1.in: Likewise.
3243 * tests/grub_script_functions.in: New test case.
3244 * conf/tests.rmk: Rules for new testcase.
3245
8022b748
BC
32462010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
3247
3248 Remove grub_script_cmdblock struct.
3249
3250 * include/grub/script_sh.h: Remove grub_script_cmdblock.
3251 * script/parser.y: Likewise.
3252 * script/execute.c: Rename cmdblock suffix to cmdlist.
3253 * script/script.c: Likewise.
3254 * util/grub-script-check.c: Likewise.
3255
79a6ba61
YB
32562010-08-11 Yves Blusseau <blusseau@zetam.org>
3257
3258 * .bzrignore: add grub-macho2img
3259
d04b9414
VS
32602010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
3261
3262 * kern/i386/qemu/init.c (grub_qemu_init_cirrus): Fix compilation error.
3263
f947ab49
VS
32642010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
3265
3266 Remove the dump of sm712 initialisation sequence.
3267
3268 * include/grub/pci.h (GRUB_PCI_CLASS_SUBCLASS_VGA): New const.
3269 * include/grub/vga.h (GRUB_VGA_IO_ARX_READ): New register.
3270 (GRUB_VGA_IO_MISC_WRITE): Likewise.
3271 (GRUB_VGA_CR_*): Added many registers.
3272 (GRUB_VGA_SR_*): Likewise.
3273 (GRUB_VGA_GR_*): Likewise.
3274 (grub_vga_write_arx): New function.
3275 (grub_video_hw_config): New struct.
3276 (grub_vga_set_geometry): New function.
3277 * kern/i386/qemu/init.c (load_palette): Use grub_vga_write_arx and
3278 GRUB_PCI_CLASS_SUBCLASS_VGA.
3279 * video/cirrus.c (grub_video_cirrus_setup): Use grub_vga_set_geometry.
3280 * video/sm712.c (grub_sm712_write_reg): New function
3281 (grub_sm712_read_reg): Likewise.
3282 (grub_sm712_sr_write): Likewise.
3283 (grub_sm712_gr_write): Likewise.
3284 (grub_sm712_cr_write): Likewise.
3285 (grub_sm712_write_arx): Likewise.
3286 (grub_sm712_cr_shadow_write): Likewise.
3287 (grub_sm712_write_dda_lookup): Likewise.
3288 (grub_video_sm712_setup): Initialise the video rather then
3289 blindly replay the dump.
3290 (main) [TEST]: Add a routine to be able to compile as standalone for
3291 tests.
3292 * video/sm712_init.c (sm712_init): Removed.
3293 (sm712_sr_seq1): New array.
3294 (sm712_sr_seq2): Likewise.
3295
f0206638
VS
32962010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
3297
3298 * include/grub/vga.h: Add missing grub/pci.h include.
3299
2764da3b
YB
33002010-08-10 Yves Blusseau <blusseau@zetam.org>
3301
3302 * util/grub-macho2img.c (main): fix typo
3303
cf0c775e
VS
33042010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
3305
3306 * include/grub/vga.h (grub_vga_gr_write): Add GRUB_MACHINE_PCI_IO_BASE.
3307 (grub_vga_gr_read): Likewise.
3308 (grub_vga_cr_write): Likewise.
3309 (grub_vga_cr_read): Likewise.
3310 (grub_vga_sr_write): Likewise.
3311 (grub_vga_sr_read): Likewise.
3312 (grub_vga_palette_read): Likewise.
3313 (grub_vga_palette_write): Likewise.
3314 * video/sm712.c (GRUB_SM712_REG_BASE): New definition.
3315 (grub_sm712_sr_read): New function.
3316 (grub_video_sm712_setup): Use grub_vga_sr_write and grub_sm712_sr_read.
3317 * video/sm712_init.c (sm712_init): Substract GRUB_MACHINE_PCI_IO_BASE.
3318
07f360e9
RM
33192010-08-09 Robert Millan <rmh@gnu.org>
3320
3321 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Filter
3322 out unused variables on non-ZFS build.
3323
346c2072
RM
33242010-08-08 Robert Millan <rmh@gnu.org>
3325
3326 Fix path generation for sub-filesystems in ZFS.
3327
3328 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Add
3329 missing slash.
3330
71175420
RM
33312010-08-08 Robert Millan <rmh@gnu.org>
3332
3333 * util/grub-fstest.c (read_file, cmd_cmp): Improve error message.
3334
0d8286f3
RM
33352010-08-08 Robert Millan <rmh@gnu.org>
3336
3337 * util/grub.d/10_kfreebsd.in: When files required for ZFS do not
3338 exist, issue a proper error message (rely on `ls' for translated
3339 strings).
3340
55dd2924
RM
33412010-08-08 Robert Millan <rmh@gnu.org>
3342
3343 Fix grub-probe invocation.
3344
3345 * util/grub.d/10_kfreebsd.in: s/label/fs_label/g.
3346
d3dd9e80
RM
33472010-08-04 Robert Millan <rmh@gnu.org>
3348
3349 * configure.ac: Remove checks for getfsstat() and getmntany().
3350 Add checks for `<sys/param.h>' and `<sys/mount.h>'.
3351 * kern/emu/misc.c [HAVE_GETMNTANY]: Remove `<sys/mnttab.h>'.
3352 [HAVE_SYS_PARAM_H]: Include `<sys/param.h>'.
3353 [HAVE_SYS_MOUNT_H]: Include `<sys/mount.h>'.
3354 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_mount_point_from_dir): Remove
3355 function.
3356 (grub_find_zpool_from_dir): Use statfs() instead of indirect matching
3357 via find_mount_point_from_dir() and getfsstat() / getmntany().
3358
0de22aa9
RM
33592010-08-04 Robert Millan <rmh@gnu.org>
3360
3361 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
3362 (grub_find_zpool_from_mount_point): Merge into ...
3363 (grub_find_zpool_from_dir): ... this.
3364 * kern/emu/misc.c: Likewise.
3365
3366 * kern/emu/misc.c
3367 (grub_make_system_path_relative_to_its_root): Replace
3368 grub_find_mount_point_from_dir() / grub_find_zpool_from_mount_point()
3369 with grub_find_zpool_from_dir().
3370 * kern/emu/getroot.c (find_root_device_from_libzfs): Likewise.
3371
62858144
RM
33722010-08-04 Robert Millan <rmh@gnu.org>
3373
3374 Support OpenSolaris in ZFS device resolution.
3375
3376 * configure.ac: Check for getmntany().
3377 * kern/emu/misc.c [HAVE_GETMNTANY]: Include `<sys/mnttab.h>'.
3378 [HAVE_GETMNTANY] (grub_find_zpool_from_mount_point): Add OpenSolaris
3379 support.
3380
9dd6fd50
RM
33812010-08-03 Robert Millan <rmh@gnu.org>
3382
3383 Fix grub-emu build.
3384
3385 * include/grub/util/misc.h: Move `<grub/util/libzfs.h>' to ...
3386 * include/grub/emu/misc.h: ... here.
3387
3388 * include/grub/util/misc.h (grub_get_libzfs_handle): Move function ...
3389 * include/grub/emu/misc.h (grub_get_libzfs_handle): ... here.
3390
3391 * util/misc.c: Remove `<grub/util/libzfs.h>'.
3392 [HAVE_LIBZFS] (libzfs_handle, fini_libzfs)
3393 (grub_get_libzfs_handle): Move to ...
3394 * kern/emu/misc.c [HAVE_LIBZFS] (__libzfs_handle, fini_libzfs)
3395 (grub_get_libzfs_handle): ... here.
3396
c9f7ff97
BC
33972010-08-03 BVK Chaitanya <bvk.groups@gmail.com>
3398
3399 * script/execute.c (grub_script_execute_cmdline): Check for NULL
3400 as command name case.
3401
a870a783
CW
34022010-08-02 Colin Watson <cjwatson@ubuntu.com>
3403
3404 * disk/raid.c (insert_array): Select unique numbers for named arrays
3405 as well, for use as keys in the disk cache.
3406
c7db243b
RM
34072010-08-01 Robert Millan <rmh@gnu.org>
3408
3409 * util/grub.d/10_kfreebsd.in: Initialize ${kfreebsd_device} as the
3410 kFreeBSD device name, except on ZFS where the filesystem label is
3411 used.
3412 (kfreebsd_entry): On ZFS root, load `opensolaris.ko', `zfs.ko' and
3413 `/boot/zfs/zpool.cache'.
3414 Set mountfrom kernel variable using ${kfreebsd_device}.
3415
f7abdefb
RM
34162010-08-01 Robert Millan <rmh@gnu.org>
3417
3418 Make it even harder to use uninitialized `libzfs_handle' (and
3419 make the interface a bit simpler).
3420
3421 * include/grub/util/misc.h (grub_util_init_libzfs)
3422 (libzfs_handle): Remove.
3423 (grub_get_libzfs_handle): New prototype.
3424
3425 * util/misc.c [HAVE_LIBZFS] (libzfs_handle): Add `static'
3426 attribute.
3427 (grub_util_init_libzfs): Remove.
3428 (grub_get_libzfs_handle): New function.
3429
3430 * kern/emu/getroot.c (find_root_device_from_libzfs): Use
3431 grub_get_libzfs_handle() to obtain a libzfs handle instead of
3432 accessing `libzfs_handle' directly.
3433
c882acc0
RM
34342010-08-01 Robert Millan <rmh@gnu.org>
3435
3436 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
3437 (grub_find_zpool_from_mount_point): New function prototypes.
3438
3439 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
3440 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
3441
3442 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
3443 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
3444 `static' attribute.
3445
3446 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
3447 finding zpool from mount point into ...
3448 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
3449
3450 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
3451 requested path is part of a ZFS pool, use
3452 grub_find_zpool_from_mount_point() to detect its filesystem name,
3453 and generate a path with `/fsname@path' syntax.
3454
8bfe31d8
CW
34552010-08-01 Colin Watson <cjwatson@ubuntu.com>
3456
3457 * include/grub/util/libzfs.h (libzfs_init): Set argument list to
3458 (void) rather than () so that this is a proper prototype.
3459
553df63d
VS
34602010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
3461
3462 * lib/arg.c (grub_arg_show_help): Add the necessary spacing.
3463
8687cf07
VS
34642010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
3465
3466 * kern/emu/getroot.c (find_mount_point_from_dir): Compile only if
3467 [HAVE_LIBZFS && HAVE_LIBNVPAIR]
3468
ea9be8ea
CW
34692010-08-01 Colin Watson <cjwatson@ubuntu.com>
3470
3471 * util/grub-mkrescue.in: Remove ${efi_dir} after building efi.img.
3472
6eea041a
CW
34732010-08-01 Colin Watson <cjwatson@ubuntu.com>
3474
3475 * script/yylex.l (NAME): Remove [:digit:], redundant with [:alnum:].
3476
2cfb45df
CW
34772010-08-01 Colin Watson <cjwatson@ubuntu.com>
3478
3479 * docs/grub.texi (Simple configuration): Document GRUB_CMDLINE_XEN
3480 and GRUB_CMDLINE_XEN_DEFAULT. Recommend setting
3481 GRUB_GFXPAYLOAD_LINUX=text rather than unsetting it in order to
3482 disable gfxpayload.
3483 (Shell-like scripting): Add real content.
3484 (Serial terminal): Suggest `terminal_input serial; terminal_output
3485 serial' rather than putting the two commands on separate lines,
3486 since console input will be inoperative after the first command.
3487 (menuentry): Document --class, --users, and --hotkey options.
3488 (terminfo): Describe what `visually-ordered UTF-8' means (thanks,
3489 Vladimir Serbinenko).
3490
7decd202
VS
34912010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
34922010-08-01 Colin Watson <cjwatson@ubuntu.com>
3493
3494 * kern/misc.c (grub_memset): Optimise to reduce cache stalls.
3495
c882acc0
RM
34962010-08-01 Robert Millan <rmh@gnu.org>
3497
3498 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
3499 (grub_find_zpool_from_mount_point): New function prototypes.
3500
3501 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
3502 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
3503
3504 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
3505 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
3506 `static' attribute.
3507
3508 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
3509 finding zpool from mount point into ...
3510 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
3511
3512 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
3513 requested path is part of a ZFS pool, use
3514 grub_find_zpool_from_mount_point() to detect its filesystem name,
3515 and generate a path with `/fsname@path' syntax.
3516
deb0caa3
RM
35172010-08-01 Robert Millan <rmh@gnu.org>
3518
3519 Prevent accidental use of uninitialized libzfs_handle.
3520
3521 * util/grub-probe.c (main): Move grub_util_init_libzfs() call to ...
3522 * kern/emu/getroot.c (find_root_device_from_libzfs): ... here.
3523 * util/misc.c (grub_util_init_libzfs): Make this function idempotent.
3524
ce04ef47
CW
35252010-08-01 Colin Watson <cjwatson@ubuntu.com>
3526
3527 * util/grub.d/20_linux_xen.in: Don't use UUID for LVM root (matching
3528 util/grub.d/10_linux.in). Fixes Debian bug #591093.
3529
ebf53056
RM
35302010-08-01 Robert Millan <rmh@gnu.org>
3531
3532 * kern/emu/getroot.c: Include `<grub/util/misc.h>'.
8687cf07 3533
3710bb6b
RM
35342010-07-31 Robert Millan <rmh@gnu.org>
3535
3536 * util/grub.d/10_kfreebsd.in: Make module handling more generic.
3537
8072efeb
RM
35382010-07-31 Robert Millan <rmh@gnu.org>
3539
3540 * kern/emu/misc.c: Add missing license header.
3541
3169f4c7
RM
35422010-07-31 Robert Millan <rmh@gnu.org>
3543
3544 * configure.ac: Check for `libzfs.h' and `libnvpair.h'.
3545
3546 * include/grub/util/libnvpair.h: Include `<config.h>'.
3547 [HAVE_LIBNVPAIR_H]: Include `<libnvpair.h>' instead of
3548 declaring libnvpair prototypes ourselves.
3549 * include/grub/util/libzfs.h: Include `<config.h>'.
3550 [HAVE_LIBZFS_H]: Include `<libzfs.h>' instead of
3551 declaring libzfs prototypes ourselves.
3552
3553 (libzfs_handle): Moved to ...
3554 * include/grub/util/misc.h (libzfs_handle): ... here.
3555 Include `<grub/util/libzfs.h>'.
3556
c9a00aee
RM
35572010-07-30 Robert Millan <rmh@gnu.org>
3558
3559 * include/grub/emu/misc.h: Add missing license header.
3560
a184f9c8
RM
35612010-07-30 Robert Millan <rmh@gnu.org>
3562
3563 Enable `grub-probe -t device' resolution on ZFS.
3564
3565 * configure.ac: Check for getfsstat(), libzfs and libnvpair.
3566 * include/grub/util/libnvpair.h: New file.
3567 * include/grub/util/libzfs.h: New file.
3568
3569 * kern/emu/getroot.c: Include `<assert.h>' and `<error.h>'.
3570 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Include `<grub/util/libzfs.h>' and
3571 `<grub/util/libnvpair.h>'.
3572 [HAVE_GETFSSTAT]: Include `<sys/mount.h>'.
3573
3574 (find_mount_point_from_dir): New static function.
3575 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_root_device_from_libzfs): New
3576 function.
3577 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (grub_guess_root_device): Use
3578 find_root_device_from_libzfs() before ressorting to find_root_device().
3579
3580 * include/grub/util/misc.h (grub_util_init_libzfs): New function
3581 prototype.
3582 * util/misc.c: Include `<grub/util/libzfs.h>'.
3583 (grub_util_init_libzfs): New function.
3584 [HAVE_LIBZFS] (libzfs_handle): New global variable.
3585 [HAVE_LIBZFS] (fini_libzfs): New static function.
3586 (grub_util_init_libzfs): New function.
3587 * util/grub-probe.c (main): Call grub_util_init_libzfs().
3588
f7790cdd
RM
35892010-07-30 Robert Millan <rmh@gnu.org>
3590
3591 * include/grub/emu/misc.h (grub_make_system_path_relative_to_its_root)
3592 (xmalloc, xrealloc, xstrdup, xasprintf): Add
3593 `warn_unused_result' attribute.
3594 * include/grub/misc.h (grub_strdup, grub_strndup, grub_strlen)
3595 (grub_xasprintf, grub_xvasprintf): Likewise.
3596 * include/grub/emu/misc.h (xasprintf): Remove duplicate prototype.
3597
0806b63c
RM
35982010-07-29 Robert Millan <rmh@gnu.org>
3599
3600 * util/grub-probe.c (PRINT_FS_LABEL): New enum value.
3601 (probe): Handle `PRINT_FS_LABEL'.
3602 (main): Handle `-t fs_label'.
3603
9f841f5c
RM
36042010-07-29 Robert Millan <rmh@gnu.org>
3605
3606 * configure.ac: Remove grub-mkisofs checks.
3607
46371121
VS
36082010-07-28 Vladimir Serbinenko <phcoder@gmail.com>
3609
3610 * util/ieee1275/grub-install.in: Don't use empty grub_device.
3611 Reported by: Lennart Sorensen.
3612
36132010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
3614
3615 * util/grub.d/00_header.in: Remove compatibility with terminal.mod
3616 prior to terminal_input/terminal_output separation. It's been over 1.5
3617 years and those versions weren't widely deployed.
3618
a9600892
CW
36192010-07-22 Colin Watson <cjwatson@ubuntu.com>
3620
3621 * disk/raid.c (insert_array): Don't count named arrays when looking
3622 for unused array numbers.
697e053c 3623 Reported and tested by: Michael Guntsche.
a9600892 3624
c03507df
CW
36252010-07-20 Colin Watson <cjwatson@ubuntu.com>
3626
3627 * bus/usb/emu/usb.c (grub_usb_poll_devices): Add a dummy
3628 implementation of this so that grub-emu links again, with a note
3629 that this should support hotplugging in the future.
3630
b26f1c11
CW
36312010-07-20 Colin Watson <cjwatson@ubuntu.com>
3632
3633 * kern/emu/getroot.c (grub_util_get_grub_dev): Use xasprintf.
3634
efc9d7f1
CW
36352010-07-20 Colin Watson <cjwatson@ubuntu.com>
3636
3637 * disk/loopback.c (grub_cmd_loopback): Don't leak a grub_file_t
3638 handle on failure.
3639 (grub_loopback_close): Remove empty function.
3640 (grub_loopback_dev): Remove close method.
3641
dd8ff5c9
CW
36422010-07-20 Colin Watson <cjwatson@ubuntu.com>
3643
3644 Disable EFI cursor when the EFI console becomes inactive.
3645
3646 * term/efi/console.c (grub_efi_console_init): New function.
3647 (grub_efi_console_fini): New function.
3648 (grub_console_term_output): Register init and fini methods.
3649
5e3bec67
VS
36502010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
3651
3652 * tests/util/grub-shell-tester.in: Remove bashism and declare as
3653 sh script.
3654
afaec079
VS
36552010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
3656
3657 * disk/loopback.c (grub_loopback): Replace filename with file.
3658 (delete_loopback): Handle new semantics.
3659 (grub_cmd_loopback): Likewise.
3660 (grub_loopback_iterate): Likewise.
3661 (grub_loopback_close): Likewise.
3662
a6a11f3c
VS
36632010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
3664
3665 * util/i386/efi/grub-install.in: Revert to platform-specific behaviour
3666 with -p "".
3667 Reported by: Tito Keitel.
3668
64a638b0
VS
36692010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
3670
3671 * docs/grub.texi (Naming convention): Document new naming convention.
3672
ab8ba957
VS
36732010-07-20 Vadim Solomin <vadic052@gmail.com>
36742010-07-20 Colin Watson <cjwatson@ubuntu.com>
3675
3676 Generate device.map in something closer to the old ordering.
3677
3678 * util/deviceiter.c (struct device): New declaration.
3679 (compare_file_names): Rename to ...
3680 (compare_devices): ... this. Sort by kernel name in preference to
3681 the stable by-id name, but keep the latter as a fallback comparison.
3682 Update header comment.
3683 (grub_util_iterate_devices) [__linux__]: Construct and sort an array
3684 of `struct device' rather than of plain file names.
3685
a29d6a4b
TF
36862010-07-20 Thomas Frauendorfer <Thomas.Frauendorfer@googlemail.com>
3687
3688 * lib/i386/relocator_asm.S [! __x86_64__]: Don't try to disable amd64
3689 on i386.
3690
39d824e8
VS
36912010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
3692
3693 * commands/acpi.c (setup_common_tables): Use sizeof instead of
3694 hardcoding size.
3695 (setv1table): Likewise.
3696
f058276b
FZ
36972010-07-20 Colin Watson <cjwatson@ubuntu.com>
3698
3699 * disk/raid.c (insert_array): Use md/%s to name mdadm 1.x devices,
3700 removing the homehost if present.
3701 * kern/emu/getroot.c (get_mdadm_name) [__linux__]: New function.
3702 (grub_util_get_grub_dev): Use md/%s to name mdadm 1.x devices,
3703 removing the homehost if present.
3704 (grub_util_get_grub_dev) [__linux__]: Get the array name from mdadm
3705 if possible.
3706 * util/i386/pc/grub-setup.c (main): Handle md/* devices.
3707
3708 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Add start_sector
3709 parameter. Set its pointer target to 0.
3710 * disk/mdraid_linux.c (grub_mdraid_detect): Add start_sector
3711 parameter. Set its pointer target to 0 for 0.9 metadata, or to the
3712 `data_offset' value from the superblock for 1.x metadata.
3713 * disk/raid.c (grub_raid_read): Offset reads by the start sector of
3714 data on the device.
3715 (insert_array): Record the start sector of data on the device.
3716 (grub_raid_register): Pass start_sector parameters to
3717 grub_raid_list->detect and insert_array.
3718 * include/grub/raid.h (struct grub_raid_array): Add start_sector
3719 member.
3720 (struct grub_raid): Add start_sector parameter to `detect'.
3721
3722 * disk/mdraid_linux.c (struct grub_raid_super_1x): Remove
3723 __attribute__ ((packed)), leaving a comment.
3724 (grub_mdraid_detect): Split out 0.9 and 1.x detection to ...
3725 (grub_mdraid_detect_09): ... here and ...
3726 (grub_mdraid_detect_1x): ... here.
3727
37282010-07-20 Peter Henn <peter.henn@web.de>
3729
3730 * disk/mdraid_linux.c (grub_mdraid_detect): Fix calculation of 1.x
3731 chunk size and disk size, which are already given as sector counts
3732 as distinct from the 0.90 units. Fetch the correct device number
3733 from the role table instead of using the table index.
3734
37352010-07-20 Felix Zielcke <fzielcke@z-51.de>
3736
3737 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Set array->name to NULL.
3738 * disk/mdraid_linux.c (grub_raid_super_1x): New structure.
3739 (WriteMostly1): New macro.
3740 Set array->name to NULL for metadata format 0.90. Add support for
3741 metadata 1.x. Fix some comments.
3742 * disk/raid.c (): Add support for name based RAID arrays. Fix a
3743 few comments.
3744 * util/getroot.c (grub_util_get_grub_dev): Add support for
3745 /dev/md/name style devices.
3746
4b761da9
CW
37472010-07-20 Colin Watson <cjwatson@ubuntu.com>
3748
3749 * .bzrignore: Ignore 20_linux_xen.
3750
5771289a
CW
37512010-07-17 Colin Watson <cjwatson@ubuntu.com>
3752
3753 * util/import_unicode.py: Remove unnecessary imports.
3754
5dab68df
AN
37552010-07-17 Aleš Nesrsta <starous@volny.cz>
3756
3757 Hotplugging and USB hub support.
3758
3759 * bus/usb/ohci.c (grub_ohci_td): Add convenience fields.
3760 (grub_ohci): Likewise.
3761 (GRUB_OHCI_REG_CONTROL_BULK_ENABLE): New definition.
3762 (GRUB_OHCI_REG_CONTROL_CONTROL_ENABLE): Likewise.
3763 (GRUB_OHCI_RESET_CONNECT_CHANGE): Likewise.
3764 (GRUB_OHCI_CTRL_EDS): Likewise.
3765 (GRUB_OHCI_BULK_EDS): Likewise.
3766 (GRUB_OHCI_TDS): Likewise.
3767 (GRUB_OHCI_ED_ADDR_MASK): Likewise.
3768 (grub_ohci_ed_phys2virt): New function.
3769 (grub_ohci_virt_to_phys): Likewise.
3770 (grub_ohci_td_phys2virt): Likewise.
3771 (grub_ohci_td_virt2phys): Likewise.
3772 (grub_ohci_pci_iter): Allocate memory and don't wait for stable
3773 attachment.
3774 (grub_ohci_find_ed): New function.
3775 (grub_ohci_alloc_td): Likewise.
3776 (grub_ohci_free_td): Likewise.
3777 (grub_ohci_free_tds): Likewise.
3778 (grub_ohci_transfer): Use previously allocated memory.
3779 (grub_ohci_portstatus): Reset status changed bit.
3780 (grub_ohci_detect_dev): Supply status changed.
3781 (grub_ohci_fini_hw): Free memory.
3782 (grub_ohci_restore_hw): Reallocate memory.
3783 * bus/usb/uhci.c (grub_uhci_portstatus): Don't reset on disable.
3784 Reset status change.
3785 (grub_uhci_detect_dev): Supply status_change.
3786 * bus/usb/usb.c (attach_hooks): New var.
3787 (grub_usb_device_attach): New function.
3788 (grub_usb_register_attach_hook_class): Likewise.
3789 (grub_usb_unregister_attach_hook_class): Likewise.
3790 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Handle errors correctly.
3791 (grub_usb_add_hub): Reset connection changed bit.
3792 (attach_root_port): New function.
3793 (grub_usb_root_hub): Likewise.
3794 (poll_nonroot_hub): Likewise.
3795 (grub_usb_poll_devices): Likewise.
3796 * commands/usbtest.c (grub_cmd_usbtest): Poll devices before listing.
3797 * disk/usbms.c (grub_usbms_open): Use device hooks.
3798 (grub_usbms_iterate) :Poll devices.
3799 (grub_usbms_finddevs): Split into ...
3800 (grub_usbms_attach): ... this ...
3801 (grub_usbms_attach): ... and this.
3802 * include/grub/usb.h (grub_usb_controller_dev): Supply status_changed
3803 in detect_dev.
3804 (grub_usb_interface): New fields attached and detach_hook.
3805 (grub_usb_attach_hook_class): New type.
3806 (grub_usb_attach_desc): New struct.
3807 (grub_usb_register_attach_hook_class): New function.
3808 (grub_usb_unregister_attach_hook_class): Likewise.
3809 (grub_usb_poll_devices): Likewise.
3810 (grub_usb_device_attach): Likewise.
3811 * include/grub/usbtrans.h (GRUB_USB_HUB_FEATURE_C_CONNECTED): New const.
3812 (GRUB_USB_HUB_STATUS_C_CONNECTED): Likewise.
3813
3222efaf
VS
38142010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
3815
3816 * include/grub/bsdlabel.h (GRUB_PC_PARTITION_BSD_LABEL_WHOLE_DISK_PARTITION): New definition.
3817 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Use FreeBSD
3818 delta determination style. Works with most NetBSD partitions too.
3819
139b714a
VS
38202010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
3821
3822 * kern/partition.c [GRUB_UTIL]: Add missing util/misc.h inclusion.
3823 * partmap/bsdlabel.c [GRUB_UTIL]: Likewise.
3824
986aad56
VS
38252010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
3826
3827 * disk/scsi.c (grub_scsi_open): Fix incorrect pointer dereference.
3828
99be513c
AB
38292010-07-14 Anton Blanchard <anton@samba.org>
3830
3831 * loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Do not reject
3832 ET_DYN files.
3833
18075f62
GS
38342010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
3835
3836 * Makefile.in: Use the substituted @USE_NLS@ instead of ENABLE_NLS.
3837
8d9a5b15
GS
38382010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
3839
3840 * kern/partition.c (grub_partition_check_containment): New function to
3841 check that a partition is physically contained in a parent. Since
3842 offsets are relative (and non-negative), this reduces to checking that
3843 the partition ends before its parent.
3844 (grub_partition_map_probe): Discard out-of-range sub-partitions.
3845 (grub_partition_iterate): Likewise.
3846 * include/grub/partition.h (grub_partition_map): Slightly more detailed
3847 comments.
3848 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Discard
3849 partitions that start before their parent, and add debug printfs.
3850
19563c25
CW
38512010-07-13 Colin Watson <cjwatson@ubuntu.com>
3852
3853 * Makefile.in (.SUFFIX): Spell correctly, as ...
3854 (.SUFFIXES): ... this. Fixes bug where `make foo' (where foo is a
3855 bare module name without `.mod', e.g. `test') tried to invoke a
3856 Modula-2 compiler.
3857
1a1f1e67
CW
38582010-07-13 Colin Watson <cjwatson@ubuntu.com>
3859
3860 * README: Point to the Info manual.
3861
811b0dca
JS
38622010-07-13 Jiro SEKIBA <jir@unicus.jp>
3863
3864 * fs/nilfs2.c: fix macro NILFS_2ND_SUPER_BLOCK to calculate
3865 2nd superblock position from partition size.
3866
e4f4eafc
CW
38672010-07-10 Colin Watson <cjwatson@ubuntu.com>
3868
3869 * Makefile.in (MAINTAINER_CLEANFILES): Remove
3870 unicode/UnicodeData.txt, unicode/BidiMirroring.txt, and
3871 unicode/ArabicShaping.txt again; these are inputs to autogen.sh, not
3872 outputs.
3873
4274c30f
VS
38742010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
3875
3876 Restructure SCSI .id handling.
3877 Reported and tested by: Aleš Nesrsta.
3878
3879 * disk/ata.c (grub_atapi_close): Removed. All users updated.
3880 (grub_atapi_dev): Changed .name to "ata". New field .id.
3881 * disk/usbms.c (grub_usbms_close): Removed. All users updated.
3882 (grub_usbms_dev): New field .id.
3883 * disk/scsi.c (grub_scsi_iterate): Generate name.
3884 (grub_scsi_open): Parse name.
3885 * include/grub/scsi.h (grub_make_scsi_id): New function.
3886 (grub_scsi_dev): Change iterate and open to number instead of naming
3887 busses. All users updated.
3888 (grub_scsi): Remove name. Add .bus.
3889
5bc24388
VS
38902010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
3891
3892 * commands/help.c (grub_cmd_help): Fix a typo.
3893
249975ba
VS
38942010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
3895
3896 * normal/term.c (put_glyphs_terminal): Fix state->num_lines counting.
3897 Reported and tested by: Colin Watson.
3898
3eaac1a1
VS
38992010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
3900
3901 * util/grub-mkrescue.in: Don't use tar GNU-ism since it's not necessary
3902 in this context.
3903
becce1b1
VS
39042010-07-07 Vladimir Serbinenko <phcoder@gmail.com>
3905
3906 * tests/util/grub-shell.in: Remove bashisms and declare as sh script.
3907
f7bf0918
CW
39082010-07-07 Colin Watson <cjwatson@ubuntu.com>
3909
3910 * term/gfxterm.c (grub_gfxterm_background_image_cmd): Fix
3911 indentation.
3912
0b0f9620
CW
39132010-07-06 Colin Watson <cjwatson@ubuntu.com>
3914
3915 * conf/common.rmk (grub_probe_SOURCES): Add disk/raid5_recover.c
3916 and disk/raid6_recover.c.
3917 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
3918 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
3919
1e545469
CW
39202010-07-06 Colin Watson <cjwatson@ubuntu.com>
3921
3922 * term/gfxterm.c (repaint_schedulded): Rename to ...
3923 (repaint_scheduled): ... this. Update all callers.
3924 (repaint_was_schedulded): Rename to ...
3925 (repaint_was_scheduled): ... this. Update all callers.
3926
5357687a
CW
39272010-07-06 Colin Watson <cjwatson@ubuntu.com>
3928
3929 * util/deviceiter.c (grub_util_iterate_devices): Skip MD devices,
3930 which we expect to be handled by upper layers.
3931
29d7e783
BC
39322010-07-06 BVK Chaitanya <bvk.groups@gmail.com>
3933
3934 * bus/usb/usbhub.c: #include time.h header.
3935
37582066
CW
39362010-07-06 Colin Watson <cjwatson@ubuntu.com>
3937
3938 * fs/reiserfs.c (grub_reiserfs_iterate_dir): Zero out first byte of
3939 entry_name also for entries without stat blocks (e.g. ".."); fixes
3940 corruption of the first entry in a directory.
3941
c8c06953
CW
39422010-07-06 Colin Watson <cjwatson@ubuntu.com>
3943
3944 * util/grub.d/00_header.in: Process GRUB_THEME and GRUB_BACKGROUND
3945 after setting gfxterm as the active terminal. GRUB_BACKGROUND
3946 doesn't work otherwise.
3947
e75056f1
CW
39482010-07-05 Colin Watson <cjwatson@ubuntu.com>
3949
3950 * docs/grub.texi (Features): Update list of supported file systems.
3951 (GNU/Linux): Update for GRUB 2.
3952 (Serial terminal): Remove mention of --disable-serial, which was a
3953 GRUB Legacy configure option. Update instructions to use
3954 `terminal_input' and `terminal_output' rather than `terminal'.
3955 (Vendor power-on keys): Copy-edit. Add cross-references to `Simple
3956 configuration' and `Installing GRUB using grub-install'.
3957 (Menu entry editor): Update for GRUB 2.
3958 (terminfo): Add vt100-color, ieee1275, and dumb terminal types.
3959 Document new -a, -u, and -v options.
3960 (initrd): New section.
3961 (initrd16): New section.
3962 (linux): New section.
3963 (linux16): New section.
3964 (search): The `var' argument to `--set' is optional.
3965 (GRUB only offers a rescue shell): Go into a little more detail on
3966 drive ordering.
3967
5cf69151
CW
39682010-07-05 Colin Watson <cjwatson@ubuntu.com>
3969
3970 * Makefile.in: Set LINGUAS to empty if ENABLE_NLS is undefined.
3971
e3f90044
CW
39722010-07-05 Colin Watson <cjwatson@ubuntu.com>
3973
3974 * Makefile.in (MAINTAINER_CLEANFILES): Add unicode/UnicodeData.txt,
3975 unicode/BidiMirroring.txt, unicode/ArabicShaping.txt, and unidata.c.
3976
38d8f4f3
CW
39772010-07-05 Colin Watson <cjwatson@ubuntu.com>
3978
3979 * util/i386/pc/grub-setup.c (setup): Rename prefix to
3980 install_prefix, in line with install_dos_part and install_bsd_part.
3981 Add new prefix variable, which is copied to install_prefix after
3982 comparing core.img in memory with the one read from disk in the
3983 no-embedding case, and use that rather than overwriting
3984 install_prefix immediately when installing to a partition.
3985 Fixes Debian bug #586621; based on patches by Matt Kraai and M. Vefa
3986 Bicakci.
3987
57ebd41e
GS
39882010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
3989
3990 * configure.ac: Avoid == in test command, it's not portable.
3991 * util/grub.d/30_os-prober.in: Likewise.
3992
cb7f64b2
CW
39932010-07-04 Colin Watson <cjwatson@ubuntu.com>
3994
3995 * kern/emu/getroot.c [__GNU__]: Include <sys/mman.h> for munmap.
3996
6b654bb0
GS
39972010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
3998
3999 * util/i386/pc/grub-setup.c (setup): Do not embed when there are
4000 multiple (top-level) partmaps.
4001
72a2026d
VS
40022010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
4003
4004 * util/i386/efi/grub-install.in: Don't use empty grub_device.
fcda2a1f 4005 Reported by: Tino Keitel.
72a2026d 4006
df3eb88f
VS
40072010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
4008
4009 Bidi and diacritics support.
4010
4011 * Makefile.in (widthspec.bin): New target.
4012 (widthspec.h): Likewise.
4013 (TARGET_CFLAGS): Add -DHAVE_UNIFONT_WIDTHSPEC=1 if font was available.
4014 * autogen.sh: Generate unidata.c.
4015 * commands/cat.c (grub_cmd_cat): Don't use grub_putchar.
4016 * commands/ls.c (grub_ls_list_devices): Likewise.
4017 (grub_ls_list_files): Likewise.
4018 * commands/minicmd.c (grub_mini_cmd_cat): Likewise.
4019 (grub_mini_cmd_lsmod): Likewise.
4020 * commands/read.c: Likewise.
4021 * kern/corecmd.c (grub_core_cmd_ls): Likewise.
4022 * kern/rescue_reader.c (grub_rescue_read_line): Likewise.
4023 * lib/arg.c (grub_arg_show_help): Likewise.
4024 * lib/crypto.c (grub_password_get): Likewise.
4025 * normal/auth.c (grub_username_get): Likewise.
4026 * normal/misc.c (grub_normal_print_device_info): Likewise.
4027 * commands/help.c (grub_cmd_help): Use grub_unicode_aglomerate_comb.
4028 * conf/common.rmk (grub_mkfont_SOURCES): Add unidata.c.
4029 (gfxmenu_mod_SOURCES): Add gfxmenu/font.c.
4030 (normal/charset.c_DEPENDENCIES): New variable.
4031 (normal_mod_SOURCES): Add normal/charset.c and unidata.c.
4032 (pkglib_MODULES): Remove charset.mod.
4033 (charset_mod_SOURCES): Removed.
4034 (charset_mod_CFLAGS): Likewise.
4035 (charset_mod_LDFLAGS): Likewise.
4036 (pkglib_MODULES) [ieee1275]: Remove terminfo.mod.
4037 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Add term/terminfo.c
4038 and term/tparm.c.
4039 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
4040 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
4041 (kernel_img_HEADERS): Add terminfo.h.
4042 * font/font.c (ascii_glyph_lookup): Return NULL on failure.
4043 Fill ->font. Reverse ascii bitmaps.
4044 (grub_font_get_xheight): New function.
4045 * font/font.c (grub_font_get_string_width): Moved from here ...
4046 * gfxmenu/font.c (grub_font_get_string_width): ... here.
4047 * font/font.c (grub_font_draw_string): Moved from here ...
4048 * gfxmenu/font.c (grub_font_draw_string): ... here.
4049 * font/font.c (grub_font_dup_glyph): New function.
4050 (grub_font_blit_glyph): Likewise.
4051 (grub_font_blit_glyph_mirror): Likewise.
4052 (blit_comb): Likewise.
4053 (grub_font_construct_dry_run): Likewise.
4054 (grub_font_get_constructed_device_width): Likewise.
4055 (grub_font_construct_glyph): Likewise.
4056 * include/grub/charset.h (grub_ucs4_to_utf8): New proto.
4057 * include/grub/misc.h (grub_utf8_to_ucs4): Moved from here ...
4058 * include/grub/charset.h (grub_utf8_to_ucs4): ... here.
4059 * include/grub/font.h (GRUB_FONT_CODE_CHAR_MASK): New constant.
4060 (GRUB_FONT_CODE_RIGHT_JOINED): Likewise.
4061 (GRUB_FONT_CODE_LEFT_JOINED): Likewise.
4062 (grub_font_get_xheight): New proto.
4063 (grub_font_get_constructed_device_width): Likewise.
4064 (grub_font_construct_glyph): Likewise.
4065 * include/grub/font.h (grub_font_get_string_width): Moved from here ...
4066 * include/grub/gfxmenu_view.h (grub_font_get_string_width): ... here.
4067 * include/grub/font.h (grub_font_draw_string): Moved from here ...
4068 * include/grub/gfxmenu_view.h (grub_font_draw_string): ... here.
4069 * include/grub/i386/vga_common.h (grub_console_putchar): Moved from here..
4070 * include/grub/i386/pc/console.h (grub_console_putchar): ... here.
4071 * include/grub/i386/vga_common.h (grub_console_real_putchar): Removed.
4072 (grub_console_getcharwidth): Likewise.
4073 * include/grub/misc.h (grub_xputs): New proto.
4074 (grub_puts): Inlined.
4075 * include/grub/normal.h (grub_print_ucs4): Add margin specification.
4076 (grub_normal_get_line_counter): Removed.
4077 (grub_install_newline_hook): Likewise.
4078 (grub_normal_get_char_counter): New proto.
4079 (grub_normal_reset_more): Likewise.
4080 (grub_xputs_normal): Likewise.
4081 * include/grub/powerpc/ieee1275/console.h: Removed.
4082 * include/grub/sparc64/ieee1275/console.h: Likewise.
4083 * include/grub/term.h (GRUB_TERM_CODE_TYPE_MASK): New definition.
4084 (GRUB_TERM_CODE_TYPE_ASCII): Likewise.
4085 (GRUB_TERM_CODE_TYPE_CP437): Likewise.
4086 (GRUB_TERM_CODE_TYPE_UTF8_LOGICAL): Likewise.
4087 (GRUB_TERM_CODE_TYPE_UTF8_VISUAL): Likewise.
4088 (GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS): Likewise.
4089 (grub_term_input): Pass reference to self. All users updated.
4090 (grub_term_output): Pass grub_unicode_glyph to putchar and getcharwidth.
4091 Pass reference to self. New fields normal_color, highlight_color and
4092 data. All users updated.
4093 (grub_putchar): Removed.
4094 (grub_putcode): Remove EXPORT_FUNC since it's not in kernel anymore.
4095 (grub_unicode_estimate_width): New function.
4096 (grub_term_getcharwidth): Add defaults.
4097 (GRUB_TERM_DEFAULT_NORMAL_COLOR): New definition.
4098 (GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR): Likewise.
4099 (GRUB_TERM_DEFAULT_STANDARD_COLOR): Likewise.
4100 (grub_cls): Remove EXPORT_FUNC.
4101 (grub_setcolorstate): Inline.
4102 (grub_newline_hook): Removed.
4103 * include/grub/terminfo.h: Rewritten. All users updated.
4104 * include/grub/unicode.h: New file.
4105 * include/grub/video.h (grub_video_signed_rect): New type.
4106 * kern/emu/console.c (grub_console_highlight_color): Removed.
4107 (grub_console_normal_color): Likewise.
4108 (grub_console_standard_color): Made static.
4109 (grub_ncurses_putchar): Remove mapping.
4110 (grub_ncurses_getcharwidth): Removed.
4111 (grub_ncurses_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
4112 (grub_ncurses_setcolor): Removed.
4113 (grub_ncurses_getcolor): Likewise.
4114 * kern/i386/pc/startup.S (grub_console_real_putchar): Renamed to ...
4115 (grub_console_putchar): ... this.
4116 (grub_console_putchar): Handle argument difference.
4117 * kern/ieee1275/init.c (grub_machine_init): Split console_init into
4118 console_init_early and console_init_lately.
4119 * kern/sparc64/ieee1275/init.c (grub_machine_init): Likewise.
4120 * kern/misc.c (grub_puts): Removed.
4121 (grub_vprintf): Store UTF-8 string instead of outputting it directly.
4122 (grub_vsnprintf_real): Remove str = NULL support.
4123 * kern/misc.c (grub_utf8_to_ucs4): Move from here ...
4124 * normal/charset.c (grub_utf8_to_ucs4): ... here.
4125 * kern/term.c (grub_putcode): Renamed to ...
4126 (grub_putcode_dumb): ... this. Pass grub_unicode_glyph instead of code.
4127 (grub_putchar): Removed.
4128 (grub_xputs_dumb): New function.
4129 (grub_xputs): New variable.
4130 * lib/charset.c: Move from here ...
4131 * normal/charset.c: ... to here.
4132 (grub_ucs4_to_utf8): New function.
4133 (grub_ucs4_to_utf8_alloc): Use grub_ucs4_to_utf8.
4134 (join_types): New variable.
4135 (unpack_join): New function.
4136 (bidi_types): New variable.
4137 (unpack_bidi): New function.
4138 (get_bidi_type): Likewise.
4139 (get_join_type): Likewise.
4140 (is_mirrored): Likewise.
4141 (grub_unicode_get_comb_type): Likewise.
4142 (grub_unicode_estimate_width) [HAVE_UNIFONT_WIDTHSPEC]: Likewise.
4143 (is_type_after): Likewise.
4144 (grub_unicode_aglomerate_comb): Likewise.
4145 (bidi_line_wrap): Likewise.
4146 (grub_bidi_line_logical_to_visual): Likewise.
4147 (grub_bidi_logical_to_visual): Likewise.
4148 (grub_unicode_mirror_code): Likewise.
4149 (grub_unicode_shape_code): Likewise.
4150 * normal/cmdline.c (grub_cmdline_get): Reset more counter.
4151 Don't use grub_putchar.
4152 * normal/main.c (grub_normal_init_page): Use grub_putcode.
4153 (grub_normal_reader_init): Likewise.
4154 (grub_xputs_saved): New variable.
4155 (GRUB_MOD_INIT): Set grub_xputs.
4156 (GRUB_MOD_FINI): Restore grub_xputs.
4157 * normal/menu.c (grub_wait_after_message): Don't use grub_putchar.
4158 (menu_init): Avoid printing gfxmenu error.
4159 (show_menu): Use grub_normal_get_char_counter.
4160 * normal/menu_entry.c (update_screen): Fix out-of-array.
4161 (complete): Avoid NULL dereferencing.
4162 * grub_menu_entry_run (grub_menu_entry_run): Don't use putchar.
4163 * normal/menu_text.c (print_spaces): Removed.
4164 (grub_print_ucs4): Likewise.
4165 (grub_print_message_indented): Use grub_print_ucs4.
4166 (print_message): Use grub_putcode.
4167 (print_entry): Hanlde diacritics.
4168 * normal/term.c (term_state): New type.
4169 (grub_more_lines): Removed.
4170 (term_states): New variable.
4171 (grub_normal_line_counter): Renamed to ..
4172 (grub_normal_char_counter): ...this. All users updated.
4173 (grub_normal_get_line_counter): Renamed to ...
4174 (grub_normal_get_char_counter): ... this.
4175 (grub_normal_reset_more): New function.
4176 (process_newline): Removed.
4177 (print_more): New function.
4178 (grub_install_newline_hook): Removed.
4179 (map_code): New function.
4180 (grub_puts_terminal): Use grub_print_ucs4.
4181 (putglyph): New function.
4182 (putcode_real): Likewise.
4183 (grub_putcode): Use putcode_real.
4184 (get_maxwidth): New function.
4185 (get_startwidth): Likewise.
4186 (print_ucs4_terminal): Likewise.
4187 (find_term_state): Likewise.
4188 (put_glyphs_terminal): Likewise.
4189 (print_backlog): Likewise.
4190 (print_ucs4_real): Likewise.
4191 (grub_print_ucs4): Likewise.
4192 (grub_xputs_normal): Likewise.
4193 * term/efi/console.c (grub_console_putchar): Output diacritics.
4194 (grub_console_getcharwidth): Removed.
4195 (grub_console_term_output): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
4196 * term/gfxterm.c (clear_char): Free chars.
4197 (scroll_up): Avoid leaking memory.
4198 (grub_gfxterm_putchar): Support diacritics.
4199 (grub_video_term): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
4200 * term/i386/pc/console.c (grub_console_term_output): Declare as
4201 GRUB_TERM_CODE_TYPE_VGA.
4202 * term/i386/pc/vga.c (grub_vga_term): Declare as
4203 GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS.
4204 * term/i386/pc/vga_text.c (grub_vga_text_term): Declare as
4205 GRUB_TERM_CODE_TYPE_VGA.
4206 * term/i386/vga_common.c (map_char): Removed.
4207 (grub_console_putchar): Likewise.
4208 (grub_console_getcharwidth): Likewise.
4209 * term/ieee1275/ofconsole.c: Simplify using terminfo.
4210 (colors): Reordered to match terminfo.
4211 (grub_ofconsole_normal_color): Removed.
4212 (grub_ofconsole_writeesc): Likewise.
4213 (grub_ofconsole_highlight_color): Likewise.
4214 (grub_ofconsole_getcharwidth): Likewise.
4215 (grub_ofconsole_setcolorstate): Likewise.
4216 (grub_ofconsole_setcolor): Likewise.
4217 (grub_ofconsole_getcolor): Likewise.
4218 (grub_ofconsole_readkey): Renamed to ...
4219 (readkey): ... this. Remove escape sequence handling. Return -1 on no
4220 key.
4221 (grub_ofconsole_checkkey): Removed.
4222 (grub_ofconsole_getkey): Likewise.
4223 (grub_ofconsole_getxy): Likewise.
4224 (grub_ofconsole_gotoxy): Likewise.
4225 (grub_ofconsole_cls): Likewise.
4226 (grub_ofconsole_refresh): Likewise.
4227 (grub_ofconsole_terminfo_input): New struct.
4228 (grub_ofconsole_terminfo_output): Likewise.
4229 (grub_ofconsole_term_input): Use terminfo.
4230 (grub_ofconsole_term_output): Likewise.
4231 (grub_console_init): Split into ...
4232 (grub_console_init_early): ...this and ...
4233 (grub_console_init_lately): ...this. Use terminfo.
4234 (grub_ofconsole_putchar): Renamed to ...
4235 (put): ... this. Remove mapping.
4236 (grub_ofconsole_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
4237 * term/serial.c: Simplify using terminfo.
4238 (xpos): Removed.
4239 (ypos): Likewise.
4240 (keep_track): Likewise.
4241 (registered): Likewise.
4242 (input_buf): Likewise.
4243 (npending): Likewise.
4244 (serial_translate_key_sequence): Likewise.
4245 (fill_input_buf): Likewise.
4246 (grub_serial_checkkey): Likewise.
4247 (grub_serial_getkey): Likewise.
4248 (grub_serial_getxy): Likewise.
4249 (grub_serial_gotoxy): Likewise.
4250 (grub_serial_putchar): Likewise.
4251 (grub_serial_cls): Likewise.
4252 (grub_serial_setcolorstate): Likewise.
4253 (grub_serial_setcursor): Likewise.
4254 (serial_hw_init): Use serial_hw_fetch.
4255 (grub_serial_terminfo_input): New variable.
4256 (grub_serial_terminfo_output): Likewise.
4257 (grub_serial_term_input): Use terminfo.
4258 (grub_serial_term_output): Likewise.
4259 * term/terminfo.c (putstr): Use put.
4260 (grub_terminfo_all_free): New function
4261 (grub_terminfo_set_current): New types vt100-color, ieee1275 and dumb.
4262 (grub_terminfo_output_register): New function.
4263 (grub_terminfo_output_unregister): Likewise.
4264 (grub_terminfo_getxy): Likewise.
4265 (grub_terminfo_readkey): Likewise.
4266 (grub_terminfo_checkkey): Likewise.
4267 (grub_terminfo_getkey): Likewise.
4268 (grub_terminfo_input_init): Likewise.
4269 (print_terminfo): Likewise.
4270 (grub_cmd_terminfo): Handle encoding.
4271 (grub_terminfo_gotoxy): Track position.
4272 (grub_terminfo_cls): Likewise.
4273 (grub_terminfo_putchar): Likewise.
4274 (grub_terminfo_setcolorstate): Handle colors
4275 (grub_terminfo_cursor_on): This ...
4276 (grub_terminfo_cursor_off): ... and this merged into ...
4277 (grub_terminfo_setcursor): ... this.
4278 * term/tparm.c (grub_terminfo_tparm): Avoid NULL dereferencing.
4279 * unicode/ArabicShaping.txt: New file (imported from Unicode).
4280 * unicode/BidiMirroring.txt: Likewise.
4281 * unicode/UnicodeData.txt: Likewise.
4282 * unicode/COPYING: Likewise.
4283 * util/grub-editenv.c (grub_putchar): Removed.
4284 (grub_xputs_real): New function.
4285 (grub_xputs): New variable.
4286 * util/grub-fstest.c (grub_putchar): Removed.
4287 (grub_xputs_real): New function.
4288 (grub_xputs): New variable.
4289 * util/grub-mkdevicemap.c (grub_putchar): Removed.
4290 (grub_xputs_real): New function.
4291 (grub_xputs): New variable.
4292 * util/grub-probe.c (grub_putchar): Removed.
4293 (grub_xputs_real): New function.
4294 (grub_xputs): New variable.
4295 * util/grub-script-check.c (grub_putchar): Removed.
4296 (grub_xputs_real): New function.
4297 (grub_xputs): New variable.
4298 * util/i386/pc/grub-setup.c (grub_putchar): Removed.
4299 (grub_xputs_real): New function.
4300 (grub_xputs): New variable.
4301 * util/import_unicode.py: New file.
4302 * util/grub-mkfont.c (ft_errmsgs): New array.
4303 (grub_glyph_info): Make bitmap a pointer.
4304 (file_formats): New type WIDTH_SPEC.
4305 (grub_font_info): New members glyphs_unsorted, glyphs_sorted, num_glyphs.
4306 (options): Add width-spec.
4307 (help): Likewise.
4308 (add_char): Renamed to ...
4309 (add_glyph): ... this.
4310 (add_glyph): Use index. Show freetype errors. Cut blank space at borders.
4311 (glyph_replace): New type.
4312 (subst_rightjoin), (subst_leftjoin), (subst_medijoin): New variables.
4313 (add_char): New function.
4314 (add_subst): Likewise.
4315 (process_cursive): Likewise.
4316 (add_font): Handle GSUB.
4317 (write_font_width_spec): New function.
4318 (main): Sort glyphs.
4319 * commands/minicmd.c (grub_mini_cmd_clear): Moved from here ...
4320 * normal/main.c (grub_mini_cmd_clear): ..here. All users updated.
4321 * kern/term.c (grub_cls): Moved from here...
4322 * normal/term.c (grub_cls): ... here.
4323
50f0bcda
CW
43242010-07-02 Colin Watson <cjwatson@ubuntu.com>
4325
4326 * include/grub/types.h: Define the C99-style PRIxGRUB_SIZE macro,
4327 suitable for using within the format argument of printf when
4328 converting grub_size_t.
4329 * disk/usbms.c (grub_usbms_transfer): Use PRIxGRUB_SIZE rather than
4330 "x" to convert grub_size_t arguments.
4331
40372103
VS
43322010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
4333
4334 * gfxmenu/gui_list.c (draw_menu): Use viewport to simplify code and fix
4335 too long captions.
4336 (list_get_minimal_size): Take selection box into account.
4337
942a10c7
VS
43382010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
4339
4340 * font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing
4341 NULL font.
4342
2bdb2892
CW
43432010-07-02 Colin Watson <cjwatson@ubuntu.com>
4344
4345 * util/deviceiter.c (grub_util_iterate_devices): Skip device-mapper
4346 devices when iterating over /dev/disk/by-id; they will be handled
4347 later if appropriate, which they aren't always (e.g. LVM).
4348
e03ed6c1
CW
43492010-07-02 Colin Watson <cjwatson@ubuntu.com>
4350
4351 * include/grub/misc.h (grub_reboot): Declare as noreturn.
4352 * kern/efi/efi.c (grub_reboot): Don't return, even if reset_system
4353 fails.
4354 (grub_halt): Likewise.
4355 * kern/ieee1275/openfw.c (grub_reboot): Don't return, even if
4356 reset-all fails.
4357 (grub_halt): Don't return, even if all of shut-down, power-off, and
4358 poweroff fail.
4359
47695765
CW
43602010-07-02 Colin Watson <cjwatson@ubuntu.com>
4361
4362 * kern/efi/init.c (grub_efi_init): set_watchdog_timer takes four
4363 arguments, not three.
4364
507736c8
CW
43652010-07-02 Colin Watson <cjwatson@ubuntu.com>
4366
4367 * util/grub-mkconfig_lib.in (uses_abstraction): New function.
4368 * util/grub.d/10_linux.in: Use it to check for LVM, so that
4369 LVM-on-RAID is handled correctly.
4370
e3c8cd37
CW
43712010-07-02 Colin Watson <cjwatson@ubuntu.com>
4372
4373 * docs/grub.texi (Changes from GRUB Legacy): New section.
4374 (Future): Fix typo.
4375
8d4a2fec
CW
43762010-07-02 Colin Watson <cjwatson@ubuntu.com>
4377
4378 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
4379 grub.d/README accidentally ends up executable for one reason or
4380 another. Ignore it.
4381
1c4827be
VS
43822010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
4383
4384 * partmap/gpt.c (MAX_SECTOR_LOG): New definition.
4385 (gpt_partition_map_iterate): Support non-512B sectors.
4386
d9a0c941
VS
43872010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
4388
4389 * kern/efi/init.c (grub_efi_init): Disable watchdog.
4390 Tested by: Seth Goldberg.
4391
48f27e87
VS
43922010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
4393
4394 * loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
4395 Properly align mbi.
4396 Reported by: Seth Goldberg.
4397
b0c4f956
VS
43982010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
4399
4400 * util/grub-mkrescue.in: Avoid module duplication.
4401
105a2e8c
SF
44022010-07-01 Sean Finney <seanius@seanius.net>
4403
4404 * util/grub.d/10_linux.in: Don't use UUID for LVM root.
4405
5944958c
SF
44062010-07-01 Sean Finney <seanius@seanius.net>
4407
4408 * disk/lvm.c (grub_lvm_scan_device): Skip snapshots.
4409
44102010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
4411
4412 * disk/lvm.c (grub_lvm_checkvalue): New function.
4413 (grub_lvm_check_flag): Likewise.
4414
b79889ba
RM
44152010-07-01 Robert Millan <rmh@gnu.org>
4416
4417 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk):
4418 Support 'p' as partition separator on kernel of FreeBSD (used
4419 with GPT labels).
4420 (grub_util_biosdisk_get_grub_dev): Likewise.
4421
ec1d04f1
VS
44222010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
4423
4424 Yeeloong firmware port.
4425
4426 * boot/mips/yeeloong/fwstart.S: New file.
4427 * bus/cs5536.c (gpiodump): New const.
4428 (set_io_space): New function.
4429 (set_iod): Likewise.
4430 (set_p2d): Likewise.
4431 (grub_cs5536_init_geode): Likewise.
4432 * commands/mips/yeeloong/lsspd.c: New file.
4433 * conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod.
4434 (serial_mod_SOURCES): New variable.
4435 (serial_mod_CFLAGS): Likewise.
4436 (serial_mod_LDFLAGS): Likewise.
4437 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c,
4438 term/terminfo.c and term/tparm.c.
4439 (pkglib_IMAGES): Add fwstart.img.
4440 (fwstart_img_SOURCES): New variable.
4441 (fwstart_img_CFLAGS): Likewise.
4442 (fwstart_img_ASFLAGS): Likewise.
4443 (fwstart_img_LDFLAGS): Likewise.
4444 (fwstart_img_FORMAT): Likewise.
4445 (pkglib_MODULES): Add lsspd.mod.
4446 (lsspd_mod_SOURCES): New variable.
4447 (lsspd_mod_CFLAGS): Likewise.
4448 (lsspd_mod_LDFLAGS): Likewise.
4449 (pkglib_MODULES): Add halt.mod.
4450 (halt_mod_SOURCES): New variable.
4451 (halt_mod_CFLAGS): Likewise.
4452 (halt_mod_LDFLAGS): Likewise.
4453 * conf/mips.rmk (pkglib_MODULES): Remove serial.mod.
4454 (serial_mod_SOURCES): Removed.
4455 (serial_mod_CFLAGS): Likewise.
4456 (serial_mod_LDFLAGS): Likewise.
4457 * disk/ata.c (check_device): New function.
4458 (grub_ata_device_initialize): Use check_device.
4459 (grub_ata_iterate): Recheck devices.
4460 (grub_ata_open): Likewise.
4461 (grub_atapi_iterate): Likewise.
4462 (grub_atapi_open): Likewise.
4463 * include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro.
4464 (GRUB_ATA_CH1_PORT1): Likewise.
4465 (GRUB_ATA_CH0_PORT2): Likewise.
4466 (GRUB_ATA_CH1_PORT2): Likewise.
4467 * include/grub/mips/loongson.h: New file.
4468 * include/grub/mips/yeeloong/ec.h: Likewise.
4469 * include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition.
4470 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise.
4471 (GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove.
4472 * include/grub/misc.h (grub_halt): Declare as noreturn.
4473 * include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ...
4474 (UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated.
4475 (UART_ENABLE_FIFO_TRIGGER1): New definition.
4476 (UART_ENABLE_DTRRTS): Likewise.
4477 (UART_ENABLE_MODEM): Removed.
4478 (UART_ENABLE_OUT2): New const.
4479 * include/grub/term.h (grub_term_register_input_active): New function.
4480 (grub_term_register_output_active): Likewise.
4481 * kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff
4482 argument.
4483 * kern/mips/yeeloong/init.c (grub_get_rtc): Macroify.
4484 (init_pci): New function.
4485 (grub_machine_init): Execute platform init when firmware. Init serial.
4486 (grub_halt): Implement.
4487 (grub_exit): Likewise.
4488 (grub_reboot): Likewise.
4489 * term/serial.c (serial_hw_init): Update macros.
4490 [GRUB_MACHINE_MIPS_YEELOONG]: Init on startup.
4491 * util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH.
4492 (image_targets): New target mipsel-yeeloong-flash.
4493 (generate_image): Support IMAGE_YEELOONG_FLASH.
4494 * video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition.
4495 (grub_video_sm712_setup): Init card.
4496 (grub_video_sm712_set_palette): Removed.
4497 * video/sm712_init.c: New file.
4498
ff4a70d2
CW
44992010-06-30 Colin Watson <cjwatson@ubuntu.com>
4500
4501 * Makefile.in (install-local): Temporarily prepend $(builddir) to
4502 PATH when running help2man and then run it on the unadorned
4503 executable names, rather than passing $(builddir)/* paths to
4504 help2man. This avoids the build directory ending up in generated
4505 manual pages.
4506
1246efeb
CW
45072010-06-29 Colin Watson <cjwatson@ubuntu.com>
4508
4509 * util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
4510 to avoid accidents when debugging with 'sh -x'.
4511 * util/grub-mkrescue.in: Likewise.
4512 * util/grub.d/00_header.in: Likewise.
4513 * util/grub.d/10_hurd.in: Likewise.
4514 * util/grub.d/10_kfreebsd.in: Likewise.
4515 * util/grub.d/10_linux.in: Likewise.
4516 * util/grub.d/10_netbsd.in: Likewise.
4517 * util/grub.d/10_windows.in: Likewise.
4518 * util/grub.d/20_linux_xen.in: Likewise.
4519 * util/grub.d/30_os-prober.in: Likewise.
4520 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
4521
1ba9b889
CW
45222010-06-29 Colin Watson <cjwatson@ubuntu.com>
4523
4524 * commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
4525 last character in the buffer.
4526 Reported by: Vladimir Serbinenko.
4527
dccaf99d
RM
45282010-06-29 Robert Millan <rmh@gnu.org>
4529
4530 * docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}.
4531 (Command-line and menu entry commands): Document `badram' command.
4532
d500ed12
RM
45332010-06-28 Robert Millan <rmh@gnu.org>
4534
4535 * util/grub-mkconfig.in: Export `GRUB_BADRAM' variable.
4536 * util/grub.d/00_header.in: When `GRUB_BADRAM' is set, issue badram
4537 command using ${GRUB_BADRAM} as parameter.
4538
20bc84a6
CW
45392010-06-28 Colin Watson <cjwatson@ubuntu.com>
4540
4541 * docs/grub.texi (Device map): New section.
4542 (Themes): New section (stub).
4543 * Makefile.in (docs/grub.info): The info documentation now builds
4544 without errors. Make sure it stays that way.
4545
4045dee1
VS
45462010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
4547
4548 Use normal parser for menu entries.
4549 Reported by: Thomas Frauendorfer
4550
4551 * include/grub/parser.h (grub_parser_execute): Don't export.
4552 * normal/menu.c (grub_menu_execute_entry_real): New function.
4553 (grub_menu_execute_entry): Use grub_menu_execute_entry_real.
4554
bca58c7b
CW
45552010-06-28 Colin Watson <cjwatson@ubuntu.com>
4556
4557 * docs/grub.texi (Embedded configuration): New section (replacing
4558 old "Preset Menu" stub).
4559 (Images): New section.
4560 (configfile): Note that any menu entries defined in `file' are shown
4561 immediately.
4562
dec53e63
JT
45632010-06-28 Josh Triplett <josh@joshtriplett.org>
4564
4565 * mmap/i386/pc/mmap_helper.S: Set CF on return.
4566
c06e40f7
CW
45672010-06-28 Colin Watson <cjwatson@ubuntu.com>
4568
4569 * util/grub-install.in: Add --debug-image= option.
4570
cb88052b
CW
45712010-06-28 Colin Watson <cjwatson@ubuntu.com>
4572
4573 Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
4574 possible on Linux.
4575
4576 * util/deviceiter.c (check_device): Rename to ...
4577 (check_device_readable_unique): ... this. Update all callers.
4578 Maintain and check a list of which devices (by canonicalized name)
4579 have already been seen.
4580 (clear_seen_devices): New function.
4581 (compare_file_names) [__linux__]: New function.
4582 (grub_util_iterate_devices): Clear the list of seen devices on exit
4583 and (just in case) on entry.
4584 (grub_util_iterate_devices) [__linux__]: Iterate over non-partition
4585 devices in /dev/disk/by-id/, in sorted order. Remove DM-RAID
4586 seen-devices list, superseded by general code in check_device.
4587
bbe34652
CW
45882010-06-28 Colin Watson <cjwatson@ubuntu.com>
4589
4590 * commands/cat.c (options): New variable.
4591 (grub_cmd_cat): Parse options. If the --dos option is given, print
4592 DOS-style "\r\n" line endings as simple newlines (Debian bug
4593 #586358).
4594 (GRUB_MOD_INIT): Use extcmd.
4595 (GRUB_MOD_FINI): Likewise.
4596 * docs/grub.texi (cat): Document --dos.
4597
412e09f3
VS
45982010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
4599
4600 XEN with Linux grub-mkconfig support.
4601
4602 * conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
4603 * util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
4604 GRUB_CMDLINE_XEN_DEFAULT.
4605 * util/grub.d/20_linux_xen.in: New file.
4606
53f3ef38 46072010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
994b0c27
VS
4608
4609 Initialise VGA video on qemu ourselves.
4610
4611 * boot/i386/qemu/boot.S: Don't call 0xc000.
4612 * conf/i386-qemu.rmk (kern/i386/qemu/init.c_DEPENDENCIES): New variable.
4613 (kernel_img_SOURCES): Add kern/i386/qemu/init.c and bus/pci.c.
4614 (kernel_img_HEADERS): Add pci.h.
4615 * conf/i386.rmk (pkglib_MODULES) [qemu]: Remove pci.mod.
4616 * configure.ac: Force unifont on qemu and yeeloong.
4617 * include/grub/i386/qemu/kernel.h (grub_qemu_init_cirrus): New proto.
4618 (grub_vga_palette_write): Use correct register.
4619 * kern/i386/coreboot/init.c (grub_machine_init) [GRUB_MACHINE_QEMU]:
4620 Call grub_qemu_init_cirrus.
4621 * kern/i386/qemu/init.c: New file.
4622 * term/i386/pc/vga_text.c (inc_y): Never read outside the screen.
4623
4624 * commands/videotest.c (grub_cmd_videotest): Handle double buffering.
4625
c75be4fb
PR
46262010-06-26 Pavel Roskin <proski@gnu.org>
4627
4628 * util/grub.d/10_linux.in: Add support for initrd images on Fedora
4629 13.
4630
d8034603
CW
46312010-06-26 Colin Watson <cjwatson@ubuntu.com>
4632
4633 * docs/grub.texi (Simple configuration): Explain that
4634 GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY must be
4635 set to `true' to disable their respective recovery entries, not
4636 merely set.
4637
3fa06487
CW
46382010-06-26 Colin Watson <cjwatson@ubuntu.com>
4639
4640 Make the `source' command slightly faster.
4641
4642 * normal/main.c (grub_normal_execute): Don't re-read list files when
4643 nested.
4644
e9b29642
CW
46452010-06-23 Colin Watson <cjwatson@ubuntu.com>
4646
4647 * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
4648 field position and mask size to red fields from mode_info, not
4649 green.
4650 * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
4651 Remove redundant tag->common.framebuffer_type assignment.
4652 Reported by: Seth Goldberg.
4653
e726542f
CW
46542010-06-23 Colin Watson <cjwatson@ubuntu.com>
4655
4656 Sync up other versions of the Linux loader with Robert Millan's
4657 change of 2010-01-09, "Make loader output a bit more user-friendly".
4658
4659 * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
4660 grub_dprintf().
4661 (grub_cmd_linux): Likewise.
4662 (grub_cmd_initrd): Likewise.
4663 * loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise.
4664 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
4665
d6e98a17
CW
46662010-06-21 Colin Watson <cjwatson@ubuntu.com>
4667
4668 * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
4669 larger than MEMORY_MAP_SIZE.
4670
14d3f08e
BC
46712010-06-21 BVK Chaitanya <bvk.groups@gmail.com>
4672
4673 Fix parallel build.
4674
4675 * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
4676 dependency.
4677 * script/parser.y: #include grub_script.tab.h header.
4678
4f9613a3
VS
46792010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
4680
4681 Support >3GiB and <16MiB RAM in i386-qemu.
4682
4683 * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
4684 (QEMU_CMOS_MEMSIZE2_LOW): Likewise.
4685 (grub_lower_mem): Removed.
4686 (grub_upper_mem): Likewise.
4687 (mem_size): Made static.
4688 (above_4g): New variable.
4689 (grub_machine_mmap_init): Detect small mem_size and above_4g.
4690 (grub_machine_mmap_iterate): Order in ascending order and add above_4g
4691 support.
4692
05e51879
VS
46932010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
4694
4695 Cirrus 5446 and Bochs video cards support.
4696
4697 * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
4698 video_bochs.mod
4699 (video_cirrus_mod_SOURCES): New variable.
4700 (video_cirrus_mod_CFLAGS): Likewise.
4701 (video_cirrus_mod_LDFLAGS): Likewise.
4702 (video_bochs_mod_SOURCES): Likewise.
4703 (video_bochs_mod_CFLAGS): Likewise.
4704 (video_bochs_mod_LDFLAGS): Likewise.
4705 * include/grub/vga.h: New file.
4706 * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
4707 (grub_video_fb_set_page_t): New type.
4708 (grub_video_fb_setup): New prototype.
4709 (grub_video_fb_swap_buffers): Likewise.
4710 (grub_video_fb_get_info_and_fini): Likewise.
4711 * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
4712 (CRTC_DATA_PORT): Likewise.
4713 (CRTC_CURSOR): Likewise.
4714 (CRTC_CURSOR_ADDR_HIGH): Likewise.
4715 (CRTC_CURSOR_ADDR_LOW): Likewise.
4716 (CRTC_CURSOR_DISABLE): Likewise.
4717 (update_cursor): Use grub_vga_cr_write.
4718 (grub_vga_text_setcursor): Likewise.
4719 * video/bochs.c: New file.
4720 * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
4721 (palette): Likewise.
4722 (palette_size): Likewise.
4723 (framebuffer): New variable.
4724 (grub_video_fb_init): Use 'framebuffer'.
4725 (grub_video_fb_fini): Likewise.
4726 (grub_video_fb_get_info): Likewise.
4727 (grub_video_fb_get_palette): Likewise.
4728 (grub_video_fb_set_palette): Likewise.
4729 (grub_video_fb_set_viewport): Likewise.
4730 (grub_video_fb_get_viewport): Likewise.
4731 (grub_video_fb_map_color): Likewise.
4732 (grub_video_fb_map_rgb): Likewise.
4733 (grub_video_fb_map_rgba): Likewise.
4734 (grub_video_fb_unmap_color): Likewise.
4735 (grub_video_fb_unmap_color_int): Likewise.
4736 (grub_video_fb_fill_rect): Likewise.
4737 (grub_video_fb_blit_bitmap): Likewise.
4738 (grub_video_fb_blit_render_target): Likewise.
4739 (grub_video_fb_scroll): Likewise.
4740 (grub_video_fb_create_render_target): Likewise.
4741 (grub_video_fb_doublebuf_blit_init): Likewise.
4742 (grub_video_fb_set_active_render_target): Handle doublebuffering.
4743 (doublebuf_pageflipping_update_screen): New function.
4744 (doublebuf_pageflipping_init): Likewise.
4745 (grub_video_fb_setup): Likewise.
4746 (grub_video_fb_swap_buffers): Likewise.
4747 (grub_video_fb_get_info_and_fini): Likewise.
4748 * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
4749 All users updated.
4750 (doublebuf_pageflipping_commit): Restructured into ...
4751 (doublebuf_pageflipping_set_page): ... this.
4752 (doublebuf_pageflipping_update_screen): Removed.
4753 (doublebuf_pageflipping_init): Likewise.
4754 (double_buffering_init): Likewise.
4755 (grub_video_vbe_setup): Use grub_video_fb_setup.
4756 (grub_video_vbe_swap_buffers): Removed.
4757 (grub_video_vbe_set_active_render_target): Likewise.
4758 (grub_video_vbe_get_active_render_target): Likewise.
4759 (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
4760 (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
4761 grub_video_fb_set_active_render_target and
4762 grub_video_fb_get_active_render_target.
4763 * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
4764 (SEQUENCER_DATA_PORT): Likewise.
4765 (MAP_MASK_REGISTER): Likewise.
4766 (CRTC_ADDR_PORT): Likewise.
4767 (CRTC_DATA_PORT): Likewise.
4768 (START_ADDR_HIGH_REGISTER): Likewise.
4769 (START_ADDR_LOW_REGISTER): Likewise.
4770 (GRAPHICS_ADDR_PORT): Likewise.
4771 (GRAPHICS_DATA_PORT): Likewise.
4772 (READ_MAP_REGISTER): Likewise.
4773 (INPUT_STATUS1_REGISTER): Likewise.
4774 (INPUT_STATUS1_VERTR_BIT): Likewise.
4775 (get_map_mask): Use grub_vga_sr_read.
4776 (set_map_mask): Use grub_vga_sr_write.
4777 (set_read_map): Use grub_vga_gr_write.
4778 (set_start_address): Use grub_vga_cr_write.
4779 * video/sm712.c (framebuffer): Remove leftover fields.
4780
4321c64a
CW
47812010-06-20 Colin Watson <cjwatson@ubuntu.com>
4782
4783 * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
4784 setting GRUB_VIDEO_BACKEND. Make it available as a user override
4785 instead. Replace the gfxterm backend check with a check that
4786 ${GRUB_PREFIX}/video.lst is non-empty.
4787 * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
4788 again.
4789 (load_video): New generated function. Call it before loading
4790 gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
4791 * util/grub.d/10_linux.in (linux_entry): Call load_video.
4792 * util/grub.d/30_os-prober.in (osx_entry): Likewise.
4793 * docs/grub.texi (Simple configuration): Document
4794 GRUB_VIDEO_BACKEND.
4795
47962010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
4797
4798 Use video functions in linux and xnu loaders.
4799
4800 * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
4801 * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
4802 * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
4803 * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
4804 loader/i386/pc/linux.c.
4805 (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
4806 (find_line_len): Removed.
4807 (find_framebuf): Likewise.
4808 (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
4809 * loader/i386/efi/xnu.c: Removed.
4810 * loader/i386/pc/xnu.c: Moved from here...
4811 * loader/i386/xnu.c: ...here.
4812
4813 Enable priorities in video drivers.
4814
4815 * include/grub/video.h (grub_video_adapter_prio_t): New type.
4816 (grub_video_adapter): New field prio.
4817 (grub_video_register): Respect prio when inserting.
4818 * video/efi_gop.c (grub_video_gop_adapter): Add prio.
4819 * video/efi_uga.c (grub_video_uga_adapter): Likewise.
4820 * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
4821 * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
4822 * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
4823 * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
4824 * video/sm712.c (grub_video_sm712_adapter): Likewise.
4825
4826 Fix SDL driver ID.
4827
4828 * include/grub/video.h (grub_video_driver_id_t): New value
4829 GRUB_VIDEO_DRIVER_SDL.
4830 * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
4831
7d24e434
CW
48322010-06-17 Colin Watson <cjwatson@ubuntu.com>
4833
4834 * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
4835 argument to printf.
4836 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
4837
c88a83f6
CW
48382010-06-17 Colin Watson <cjwatson@ubuntu.com>
4839
4840 * util/i386/pc/grub-setup.c (usage): Fix syntax error.
4841 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
4842
094dfb69
CW
48432010-06-17 Colin Watson <cjwatson@ubuntu.com>
4844
4845 * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
4846 directly, and recommend grub-install instead.
4847 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
4848
2164da6b
CW
48492010-06-17 Colin Watson <cjwatson@ubuntu.com>
4850
4851 Fix i386-pc prefix handling with nested partitions (Debian bug
4852 #585068). Note that the case where the core image is booted using
4853 multiboot and relocated from its original location still requires
4854 more work.
4855
4856 * kern/i386/pc/init.c (make_install_device): If the prefix starts
4857 with "(,", fill the boot drive in between those two characters, but
4858 expect that a full partition specification including partition map
4859 names will follow.
4860 * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
4861 specified, write a prefix without the drive name but including a
4862 full partition specification.
4863
044e2e60
CW
48642010-06-16 Colin Watson <cjwatson@ubuntu.com>
4865
4866 * util/grub-mkconfig.in: Ignore non-option arguments, for
4867 compatibility with older versions (before 2010-06-12) which did the
4868 same. In particular, this makes it easier to ship an update-grub
4869 wrapper which is compatible with that used with GRUB Legacy (Debian
4870 bug #586056).
4871
5591324f
GS
48722010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
4873
4874 * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
4875 for manual page generation.
4876
662e24d5
GS
48772010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
4878
4879 * po/POTFILES: Remove leftover commands/handler.c.
4880
8d70754e
CW
48812010-06-14 Colin Watson <cjwatson@ubuntu.com>
4882
4883 * util/grub-mkconfig.in: Remove vestige of old argument parsing that
4884 left this script non-functional.
4885
41160e2e
CW
48862010-06-14 Colin Watson <cjwatson@ubuntu.com>
4887
4888 * docs/man/grub-emu.h2m: New file.
4889
b5309cc1
CW
48902010-06-13 Colin Watson <cjwatson@ubuntu.com>
4891
4892 * docs/grub.texi (Commands): Document reduced command set in rescue
4893 mode.
4894 (cpuid): New section.
4895
fcb2d090
GS
48962010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
4897
4898 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
4899 new partition naming style.
4900 * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
4901
96e5c556
BC
49022010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
4903
4904 Add "-o grub.iso" like cmdline options support.
4905
4906 * util/grub-install.in: Improve cmdline option parsing.
4907 * util/grub-mkconfig.in: Likewise.
4908 * util/grub-mkrescue.in: Likewise.
4909 * util/grub-reboot.in: Likewise.
4910 * util/grub-set-default.in: Likewise.
4911 * util/i386/efi/grub-install.in: Likewise.
4912 * util/ieee1275/grub-install.in: Likewise.
4913 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
4914
c16be99b
CW
49152010-06-12 Colin Watson <cjwatson@ubuntu.com>
4916
4917 * .bzrignore: Ignore 41_custom.
4918
ce08a9fb
TS
49192010-06-12 Thomas Schmitt <scdbackup@gmx.net>
4920
4921 * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
4922
7beac90c
CW
49232010-06-12 Colin Watson <cjwatson@ubuntu.com>
4924
4925 Avoid false positives in fs.lst, partmap.lst, and video.lst due to
4926 prototype declarations.
4927
4928 * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
4929 generating fs, partmap, and video lists.
4930 * include/grub/fs.h (grub_fs_register): Omit prototype if
4931 GRUB_LST_GENERATOR is defined.
4932 * include/grub/partition.h (grub_partition_map_register): Likewise.
4933 * include/grub/video.h (grub_video_register): Likewise.
4934
1c8f0f8d
JM
49352010-06-12 Javier Martín <lordhabbit@gmail.com>
4936
4937 * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
4938
a6085973
TS
49392010-06-12 Thomas Schmitt <scdbackup@gmx.net>
4940
4941 * util/grub-mkrescue.in: Support --xorriso argument.
4942
25c56d29
VS
49432010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
4944
4945 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
4946 Suggested by: Thomas Schmitt.
4947
e03e4b24
VS
49482010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
4949
4950 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
4951 Suggested by: Thomas Schmitt.
4952
57711df6
VS
49532010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
4954
4955 custom.cfg support.
4956
4957 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
4958 * util/grub.d/41_custom.in: New file.
4959
ee62c427
CW
49602010-06-12 Colin Watson <cjwatson@ubuntu.com>
4961
4962 * util/grub-mkrescue.in (make_image): Remove sh module, which has
4963 been merged back into normal.
4964
283af07a
CW
49652010-06-11 Colin Watson <cjwatson@ubuntu.com>
4966
4967 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
4968 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
4969
56a0d956
CW
49702010-06-11 Colin Watson <cjwatson@ubuntu.com>
4971
4972 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
4973 when generating manual pages.
4974 * docs/man/grub-bin2h.h2m: New file.
4975 * docs/man/grub-editenv.h2m: New file.
4976 * docs/man/grub-fstest.h2m: New file.
4977 * docs/man/grub-install.h2m: New file.
4978 * docs/man/grub-macho2img.h2m: New file.
4979 * docs/man/grub-mkconfig.h2m: New file.
4980 * docs/man/grub-mkdevicemap.h2m: New file.
4981 * docs/man/grub-mkfont.h2m: New file.
4982 * docs/man/grub-mkimage.h2m: New file.
4983 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
4984 * docs/man/grub-mkrelpath.h2m: New file.
4985 * docs/man/grub-mkrescue.h2m: New file.
4986 * docs/man/grub-ofpathname.h2m: New file.
4987 * docs/man/grub-pe2elf.h2m: New file.
4988 * docs/man/grub-probe.h2m: New file.
4989 * docs/man/grub-reboot.h2m: New file.
4990 * docs/man/grub-script-check.h2m: New file.
4991 * docs/man/grub-set-default.h2m: New file.
4992 * docs/man/grub-setup.h2m: New file.
4993
3a37e322
VS
49942010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
4995
4996 Use FOR_* macros instead of *_iterate whenever possible.
4997
4998 * commands/handler.c: Removed.
4999 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
5000 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
5001 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
5002 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
5003 (grub_probe_SOURCES): Remove kern/parser.c.
5004 (util/grub-script-check.c_DEPENDENCIES): Removed.
5005 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
5006 and grub_script_check_init.c.
5007 (grub_script_check_init.lst): Removed.
5008 (grub_script_check_init.h): Likewise.
5009 (grub_script_check_init.c): Likewise.
5010 (pkglib_MODULES): Remove handler.mod and sh.mod.
5011 (handler_mod_SOURCES): Removed.
5012 (handler_mod_CFLAGS): Likewise.
5013 (handler_mod_LDFLAGS): Likewise.
5014 (normal_mod_SOURCES): Remove normal/handler.c.
5015 Add script/main.c, script/script.c, script/execute.c,
5016 script/function.c, script/lexer.c, grub_script.tab.c
5017 and grub_script.yy.c.
5018 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
5019 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
5020 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
5021 (grub_setup_SOURCES): Remove kern/parser.c.
5022 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
5023 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
5024 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
5025 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
5026 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
5027 (grub_setup_SOURCES): Remove kern/parser.c.
5028 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
5029 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
5030 * include/grub/command.h (grub_command_iterate): Removed.
5031 (FOR_COMMANDS): New macro.
5032 * include/grub/dl.h (grub_dl): New member next.
5033 (grub_dl_iterate): Removed.
5034 (grub_dl_head): New variable declaration.
5035 (FOR_DL_MODULES): New macro.
5036 * include/grub/fs.h: Include list.h.
5037 (grub_fs): Make next first element.
5038 (grub_fs_list): New variable declaration.
5039 (grub_fs_register): Make inline.
5040 (grub_fs_unregister): Likewise.
5041 (grub_fs_iterate): Removed.
5042 (FOR_FILESYSTEMS): New macro.
5043 * include/grub/handler.h: Removed.
5044 * include/grub/list.h (grub_list_hook_t): Removed.
5045 (grub_list_test_t): Likewise.
5046 (grub_list_pop): Likewise.
5047 (grub_list_iterate): Likewise.
5048 (grub_list_insert): Likewise.
5049 (FOR_LIST_ELEMENTS): New macro.
5050 * include/grub/parser.h (grub_parser_class): Removed.
5051 (grub_parser_register): Likewise.
5052 (grub_parser_unregister): Likewise.
5053 (grub_parser_get_current): Likewise.
5054 (grub_parser_set_current): Likewise.
5055 (grub_register_rescue_parser): Likewise.
5056 (grub_rescue_parse_line): New function.
5057 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
5058 * include/grub/script_sh.h (grub_script_function_list): New variable
5059 declaration.
5060 (FOR_SCRIPT_FUNCTIONS): New macro.
5061 (grub_script_function_iterate): Removed.
5062 (grub_normal_parse_line): New prototype.
5063 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
5064 (FOR_DISABLED_TERM_INPUTS): Likewise.
5065 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
5066 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
5067 * include/grub/video.h (grub_video_adapter): Move 'next' to first
5068 element.
5069 (grub_video_register): Inline.
5070 (grub_video_unregister): Likewise.
5071 (grub_video_adapter_list): New variable declaration.
5072 (grub_video_iterate): Removed.
5073 (FOR_VIDEO_ADAPTERS): New macro.
5074 * kern/dl.c (grub_dl_list): Removed. All users updated.
5075 (grub_dl_iterate): Removed.
5076 * kern/fs.c (grub_fs_list): Make global.
5077 (grub_fs_register): Removed.
5078 (grub_fs_unregister): Likewise.
5079 (grub_fs_iterate): Likewise.
5080 * kern/handler.c: Removed.
5081 * kern/list.c (grub_list_pop): Removed.
5082 (grub_list_iterate): Likewise.
5083 (grub_list_insert): Likewise.
5084 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
5085 (grub_prio_list_insert): Don't use grub_list_insert.
5086 * kern/main.c (grub_register_rescue_parser): Don't call
5087 grub_register_rescue_parser.
5088 * kern/parser.c (grub_parser_class): Removed.
5089 (grub_parser_execute): Use grub_rescue_parse_line.
5090 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
5091 (grub_rescue_parser): Removed.
5092 (grub_register_rescue_parser): Likewise.
5093 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
5094 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
5095 (grub_auth_check_authentication): Likewise.
5096 * normal/completion.c (iterate_command): Removed.
5097 (grub_normal_do_completion): Use FOR_COMMANDS.
5098 * normal/handler.c: Removed.
5099 * normal/main.c (read_config_file): Remove parser changing.
5100 (grub_normal_execute): Don't call read_handler_list.
5101 (grub_normal_read_line_real): Statically allocate prompt.
5102 (grub_cmdline_run): Use grub_normal_parse_line.
5103 (GRUB_MOD_FINI): Don't call free_handler_list.
5104 * normal/menu_entry.c (run): Likewise.
5105 * script/function.c (grub_script_function_list): Make global.
5106 (grub_script_function_iterate): Removed.
5107 * script/main.c (grub_normal_parse_line): Make global.
5108 (grub_sh_parser): Removed.
5109 (GRUB_MOD_INIT): Likewise.
5110 (GRUB_MOD_FINI): Likewise.
5111 * tests/lib/functional_test.c (grub_functional_test): Use
5112 FOR_LIST_ELEMENTS.
5113 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
5114 (grub_test_run): Use FOR_LIST_ELEMENTS.
5115 * tests/lib/unit_test.c (main): Likewise.
5116 * util/deviceiter.c (grub_util_iterate_devices): Don't use
5117 grub_list_pop.
5118 * util/grub-fstest.c (grub_term_input_class): Removed.
5119 (grub_term_output_class): Likewise.
5120 * util/grub-probe.c: Likewise.
5121 * util/i386/pc/grub-setup.c: Likewise.
5122 * util/sparc64/ieee1275/grub-setup.c: Likewise.
5123 * util/grub-script-check.c (main): Don't call grub_init_all and
5124 grub_fini_all.
5125 * video/video.c (grub_video_adapter_list): Make global.
5126 (grub_video_register): Removed.
5127 (grub_video_unregister): Likewise.
5128 (grub_video_iterate): Likewise.
5129
6289c3a7
VS
51302010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
5131
5132 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
5133 reported by Henrique Ferreiro.
5134
91460247
RM
51352010-06-09 Robert Millan <rmh@gnu.org>
5136
5137 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
5138 ones, when both are available.
5139
0ea7c4f9
GS
51402010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
5141
5142 Make --version uniform and avoid hard-coded program name.
5143
5144 * util/grub-mkimage.c (main): Use `program_name' instead of
5145 hard-coded string.
5146 * util/i386/pc/grub-setup.c (main): Likewise.
5147 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
5148 * util/grub-install.in: Save the basename of $0 in $self, and use the
5149 latter in informational messages. Use the same format for --version
5150 as the binary programs.
5151 * util/grub-mkconfig.in: Likewise.
5152 * util/grub-mkrescue.in: Likewise.
5153 * util/grub-reboot.in: Likewise.
5154 * util/grub-set-default.in: Likewise.
5155 * util/i386/efi/grub-install.in: Likewise.
5156 * util/ieee1275/grub-install.in: Likewise.
5157 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
5158
e8a6f3b6
GS
51592010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
5160
5161 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
5162 embedding area. Use <= instead of == when checking for non-emptiness.
5163
f4d095d7
GS
51642010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
5165
5166 * configure.ac: Add `.' to the directories searched for unifont.
5167
50e532ca
CW
51682010-06-08 Colin Watson <cjwatson@ubuntu.com>
5169
5170 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
5171 grub_script.yy.h.
5172
d39f3dec
CW
51732010-06-08 Colin Watson <cjwatson@ubuntu.com>
5174
5175 * docs/grub.texi (History): Expand to cover GRUB 2.
5176 (Serial terminal): Refer to `terminal_input' and `terminal_output'
5177 commands, not `terminal'.
5178 (serial): Likewise.
5179 (terminal_input): New section.
5180 (terminal_output): New section.
5181 (uppermem): New section (stub).
5182 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
5183
6ef0ddb4
CW
51842010-06-08 Colin Watson <cjwatson@ubuntu.com>
5185
5186 * docs/grub.texi (Security): Menu entries are unrestricted by
5187 default, not restricted to superusers as I had previously thought.
5188 Reword to account for this.
5189
e0f4c438
CW
51902010-06-07 Colin Watson <cjwatson@ubuntu.com>
5191
5192 * kern/emu/misc.c (device_mapper_null_log): New function.
5193 (grub_device_mapper_supported): New function.
5194 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
5195 prototype.
5196 * kern/emu/hostdisk.c (find_partition_start): Check whether
5197 device-mapper is supported before trying to use it.
5198 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
5199
da908200
CW
52002010-06-07 Colin Watson <cjwatson@ubuntu.com>
5201
5202 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
5203 (File name syntax): Likewise.
5204 (help): --all is no longer supported in GRUB 2. Be more precise
5205 about pattern matching.
5206
fb55c3ac
CW
52072010-06-07 Colin Watson <cjwatson@ubuntu.com>
5208
5209 * normal/completion.c (grub_normal_do_completion): When completing
5210 arguments to "set" and the current word contains an equals sign,
5211 skip to after the equals sign before starting completion.
5212
258c2573
CW
52132010-06-07 Colin Watson <cjwatson@ubuntu.com>
5214
5215 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
5216
ee75515e
CW
52172010-06-07 Colin Watson <cjwatson@ubuntu.com>
5218
5219 * docs/grub.texi (Network): New section.
5220 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
5221 `(nd)' as in GRUB Legacy.
5222 (pxe_unload): New section.
5223
a6a700aa
CW
52242010-06-07 Colin Watson <cjwatson@ubuntu.com>
5225
5226 * docs/grub.texi (Troubleshooting): `echo' is not usually available
5227 in the rescue shell, so recommend using `set' instead. Thanks,
5228 Jordan Uggla.
5229
4003dd38
CW
52302010-06-07 Colin Watson <cjwatson@ubuntu.com>
5231
5232 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
5233 (password): New section.
5234 (password_pbkdf2): New section.
5235 (search): New section.
5236 (Security): New section.
5237 (Troubleshooting): New section, currently very incomplete.
5238 (Invoking grub-mkpasswd-pbkdf2): New section.
5239 (Internals): New section, currently very incomplete.
5240
e1cbcc40
CW
52412010-06-07 Colin Watson <cjwatson@ubuntu.com>
5242
5243 * util/grub.d/00_header.in: Add some more quoting (of
5244 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
5245 work again.
5246 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
5247
db8fa1ad
CW
52482010-06-07 Colin Watson <cjwatson@ubuntu.com>
5249
5250 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
5251 to `count', fixing variable shadowing that broke the -c option.
5252
52532010-06-05 Colin Watson <cjwatson@ubuntu.com>
71c38098
CW
5254
5255 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
5256 in case they contain spaces.
5257
f28a9212
CW
52582010-06-04 Colin Watson <cjwatson@ubuntu.com>
5259
5260 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
5261 "part_" to partmap module names, in line with grub-install.
5262 Reported by: Jindřich Makovička (Debian bug #584426).
5263
9cdfe32f
CW
52642010-06-04 Colin Watson <cjwatson@ubuntu.com>
5265
5266 * util/grub-mkimage.c: Make target-related error messages slightly
5267 more helpful; -O talks about "format". Explicitly point to the use
5268 of -O if no target is specified.
5269 Reported by: Didier Raboud (Debian bug #584415).
5270
795b593a
CW
52712010-06-03 Colin Watson <cjwatson@ubuntu.com>
5272
5273 * INSTALL: Document several build requirements for optional features
5274 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
5275
9d9b5833
GS
52762010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
5277
5278 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
5279 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
5280 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
5281
0819fec8
CW
52822010-06-02 Colin Watson <cjwatson@ubuntu.com>
5283
5284 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
5285 Thanks to Jordan Uggla for spotting this.
5286
49396b4f
VS
52872010-06-02 Aleš Nesrsta <starous@volny.cz>
5288
5289 Finally make USB usable.
5290
5291 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
5292 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
5293 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
5294 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
5295 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
5296 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
5297 (GRUB_OHCI_FSMPS): Likewise.
5298 (GRUB_OHCI_PERIODIC_START): Likewise.
5299 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
5300 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
5301 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
5302 (GRUB_OHCI_SET_PORT_RESET): Likewise.
5303 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
5304 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
5305 (grub_ohci_transaction): Likewise.
5306 (grub_ohci_transfer): Improve condition detection algorithms.
5307 Handle toggle property. Program the transactions correctly.
5308 Improve error handling. Various important fixups.
5309 (grub_ohci_portstatus): Put register writes in right order.
5310 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
5311 (grub_uhci_transfer): Don't show "failed" message on success.
5312 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
5313 array.
5314 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
5315 determine its size.
5316 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
5317 before initialization is completed. Use IN direction for empty
5318 transfers. Use last_trans and compute toggle.
5319 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
5320 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
5321 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
5322 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
5323 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
5324 (grub_usb_device): Increase toggle to 256.
5325 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
5326 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
5327 GRUB_USBMS_SUBCLASS_SFF8070.
5328 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
5329 (grub_scsi_inquiry): New member page and alloc_length.
5330 (grub_scsi_request_sense): New structure.
5331 (grub_scsi_request_sense_data): Likewise.
5332 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
5333 control.
5334 * disk/scsi.c (grub_scsi_request_sense): New function.
5335 (grub_scsi_test_unit_ready): Likewise.
5336 (grub_scsi_inquiry): Fill new fields.
5337 (grub_scsi_read_capacity): Likewise.
5338 (grub_scsi_read10): Add request sense at the end.
5339 (grub_scsi_read12): Likewise.
5340 (grub_scsi_write10): Likewise.
5341 (grub_scsi_write12): Likewise.
5342 (grub_scsi_open): Add Test Unit Ready.
5343 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
5344 Support additional subclasses. Con't clear halt yet. Activate the
5345 proper config. Calculate LUNs correctly.
5346 (grub_usbms_transfer): Various important fixups.
5347
53482010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
5349
5350 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
5351 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
5352 (grub_ohci_fini_hw): New function.
5353 (grub_ohci_restore_hw): Likewise.
5354 (GRUB_MOD_INIT(ohci)): Register preboot hook.
5355 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
5356 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
5357
53582010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
5359
5360 Dedicated DMA allocations.
5361
5362 * bus/pci.c (grub_memalign_dma32): New function
5363 (grub_dma_free): Likewise.
5364 (grub_dma_get_virt): Likewise.
5365 (grub_dma_get_phys): Likewise.
5366 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
5367 (grub_ohci_pci_iter): Use dma32_alloc.
5368 (grub_ohci_transfer): Likewise.
5369 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
5370 (grub_usb_bulk_readwrite): Likewise.
5371 * include/grub/pci.h: Add declarations.
5372
53732010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
5374
5375 CS5536 support.
5376
5377 * bus/cs5536.c: New file.
5378 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
5379 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
5380 (cs5536_mod_SOURCES): New variable.
5381 (cs5536_mod_CFLAGS): Likewise.
5382 (cs5536_mod_LDFLAGS): Likewise.
5383 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
5384 machine/pci.h.
5385 (kernel_img_SOURCES): Add bus/cs5536.c.
5386 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
5387 usb_keyboard.mod.
5388 (usb_mod_SOURCES): New variable.
5389 (usb_mod_CFLAGS): New variable.
5390 (usb_mod_LDFLAGS): New variable.
5391 (usbtest_mod_SOURCES): New variable.
5392 (usbtest_mod_CFLAGS): New variable.
5393 (usbtest_mod_LDFLAGS): New variable.
5394 (ohci_mod_SOURCES): New variable.
5395 (ohci_mod_CFLAGS): New variable.
5396 (ohci_mod_LDFLAGS): New variable.
5397 (usbms_mod_SOURCES): New variable.
5398 (usbms_mod_CFLAGS): New variable.
5399 (usbms_mod_LDFLAGS): New variable.
5400 (usb_keyboard_mod_SOURCES): New variable.
5401 (usb_keyboard_mod_CFLAGS): New variable.
5402 (usb_keyboard_mod_LDFLAGS): New variable.
5403 * include/grub/smbus.h: New file.
5404 * include/grub/cs5536.h: New file.
5405
0b35b2a9
CW
54062010-06-02 Colin Watson <cjwatson@ubuntu.com>
5407
5408 * util/grub.d/00_header.in: Add safety check to make sure that
5409 ${locale_dir} exists before trying to probe it.
5410
ca0afd5b
CW
54112010-06-02 Colin Watson <cjwatson@ubuntu.com>
5412
5413 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
5414 per the GNU Coding Standards; this is now too obscure to be worth
5415 documenting.
5416 (QNX): Likewise.
5417 (chainloader): Remove cross-reference to `SCO UnixWare'.
5418
1c41aa78
CW
54192010-06-02 Colin Watson <cjwatson@ubuntu.com>
5420
5421 * docs/grub.texi (Chain-loading): New section.
5422 (DOS/Windows): New section, borrowed from GRUB Legacy with details
5423 adjusted for GRUB 2.
5424 (SCO UnixWare): Likewise.
5425 (QNX): Likewise.
5426 (chainloader): Add reference to `Block list syntax'.
5427 (drivemap): New section.
5428 (parttool): New section.
5429
bb8ea0f5
CW
54302010-06-02 Colin Watson <cjwatson@ubuntu.com>
5431
5432 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
5433 the grub shell'.
5434 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
5435 (Installing GRUB using grub-install): Remove reference to the grub
5436 shell; mention `grub-mkimage' and `grub-setup' instead.
5437 (Invoking grub-install): Likewise.
5438 (Interface): Add reference to `Menu entry editor'.
5439 (serial): Remove `--device' option.
5440
288dd6ed
CW
54412010-06-02 Colin Watson <cjwatson@ubuntu.com>
5442
5443 * docs/grub.texi (Configuration): New section, documenting
5444 configuration file generation using grub-mkconfig. I've left a slot
5445 for documenting the full shell scripting format but have not yet
5446 started on writing that up.
5447 (Invoking grub-mkconfig): New section.
5448
34c9f0e9
CW
54492010-06-02 Colin Watson <cjwatson@ubuntu.com>
5450
5451 * docs/grub.texi (direntry): Remove grub-terminfo reference.
5452 (GNU GRUB manual): Likewise.
5453 (General commands): Update description of `terminfo' for GRUB 2.
5454
9121567e
CW
54552010-06-02 Colin Watson <cjwatson@ubuntu.com>
5456
5457 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
5458 (GRUB_MOD_INIT): Fix capitalisation.
5459 * docs/grub.texi (Command-line and menu entry commands): Document
5460 gettext and gptsync commands.
5461
ab631611
CW
54622010-06-02 Colin Watson <cjwatson@ubuntu.com>
5463
5464 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
5465 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
5466
bde4a9ac
CW
54672010-06-01 Colin Watson <cjwatson@ubuntu.com>
5468
5469 Add btrfs probing support, currently only in the single-device case.
5470
5471 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
5472 function.
5473 (grub_guess_root_device): Call find_root_device_from_mountinfo
5474 before looking in /dev.
5475
b1d17e10
VS
54762010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
5477
5478 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
5479 GRUB_DISK_SIZE_UNKNOWN.
5480 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
5481
dfbfe004
JS
54822010-05-31 Jiro SEKIBA <jir@unicus.jp>
5483
5484 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
5485 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
5486 corrupted or not synced properly.
5487
c2ffc8e9
VS
54882010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
5489
5490 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
5491 Reported by: Seth Goldberg.
5492
56293166
VS
54932010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
5494
5495 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
5496 addition of dest.
5497 Reported by: Seth Goldberg.
5498
7620e7de
VS
54992010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
5500
5501 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
5502 Reported by: Seth Goldberg.
5503
c837af3f
VS
55042010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
5505
5506 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
5507 64-bit address as signed on MIPS.
5508
c7c75cf4
CW
55092010-05-28 Colin Watson <cjwatson@ubuntu.com>
5510
5511 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
5512 to the empty string.
5513
fa4b8490
BC
55142010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
5515
5516 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
5517
5518 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
5519 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
5520 * kern/misc.c (__enable_execute_stack): Disable on
5521 GRUB_MACHINE_EMU.
5522
a33075b9
CW
55232010-05-28 Colin Watson <cjwatson@ubuntu.com>
5524
5525 Make grub-probe work with symbolic links under /dev/mapper as well
5526 as with real block devices. The Linux world seems to be (at best)
5527 in transition here, and GRUB shouldn't get caught in the middle.
5528
5529 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
5530 /dev/mapper.
5531
d8708134
CW
55322010-05-27 Colin Watson <cjwatson@ubuntu.com>
5533
5534 * util/grub-script-check.c (main): Ensure defined behaviour on empty
5535 input files (in which case exit zero).
5536
db2102a0
CW
55372010-05-27 Colin Watson <cjwatson@ubuntu.com>
5538
5539 * kern/emu/misc.c (canonicalize_file_name): realpath can still
5540 return NULL for various reasons even if it has a maximum-length
5541 buffer: for example, there might be a symlink loop, or the path
5542 might exceed PATH_MAX. If this happens, return NULL.
5543
5fdba519
RM
55442010-05-27 Robert Millan <rmh@gnu.org>
5545
5546 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
5547 partmap module to handle cross-partmap setups.
5548 Reported by Orestes Mas. Gràcies!
5549
d1d368e4
CW
55502010-05-27 Colin Watson <cjwatson@ubuntu.com>
5551
5552 * util/grub-mkrescue.in: Initialise override_dir rather than
5553 assuming that it's unset or empty in the environment.
5554
95ac3c73
GS
55552010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
5556
5557 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
5558 variable index into p_index to suppress a warning with -Wshadow.
5559
7d8c0213
BC
55602010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
5561
5562 * INSTALL: Added flex >= 2.5.35 requirement.
5563
db4d5813
VS
55642010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
5565
5566 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
5567
f24f4300
VS
55682010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
5569
5570 cmostest support.
5571
5572 * commands/i386/cmostest.c: New file.
5573 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
5574 (cmostest_mod_SOURCES): New variable.
5575 (cmostest_mod_CFLAGS): Likewise.
5576 (cmostest_mod_LDFLAGS): Likewise.
5577 * conf/i386-pc.rmk: Likewise.
5578 * docs/grub.texi (Vendor power-on keys): New section.
5579 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
5580 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
5581 and GRUB_BUTTON_CMOS_ADDRESS.
5582 * util/grub.d/00_header.in: Handle powering-on by separate button.
5583
ad603f61
VS
55842010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
5585
5586 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
5587 Removed drawing_scrollbar argument. All users updated
5588 Fixes #29792.
5589 Reported by Jo Shields
5590
3ecb080a
VS
55912010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
5592
5593 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
5594 buffer since gfxterm handles double repaint.
5595
5f2316c1
VS
55962010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
5597
5598 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
5599 * term/gfxterm.c (real_scroll): Likewise.
5600
9a25f885
VS
56012010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
5602
5603 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
5604 before calling BIOS.
5605
39fbb79a
VS
56062010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
5607
5608 * include/grub/i18n.h: Always enable grub_gettext.
5609
228cfa97
VS
56102010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
5611
5612 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
5613 partition naming style.
5614
21717c8f
CW
56152010-05-21 Colin Watson <cjwatson@ubuntu.com>
5616
5617 * util/grub-mkconfig.in: Fix handling of -o so that it works when
5618 not the first option.
5619
c0f48e65
CW
56202010-05-20 Colin Watson <cjwatson@ubuntu.com>
5621
5622 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
5623
96779aec
CW
56242010-05-20 Colin Watson <cjwatson@ubuntu.com>
5625
5626 * util/misc.c: Move inclusion of <limits.h> to ...
5627 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
5628
fa9d256e
GS
56292010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
5630
5631 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
5632 Fix merge error in NetBSD code.
5633 (find_partition_start) [__NetBSD__]: Likewise.
5634
123b7a85
BC
56352010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
5636
5637 Fix grub-mkrescue usage unit testing.
5638
5639 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
5640
74276c0d
CF
56412010-05-18 Christian Franke <franke@computer.org>
5642
5643 * util/grub.d/10_windows.in: Use path names instead of
5644 drive letters to prevent warning from Cygwin 1.7.
5645 Add drivemap command to menuentry if needed.
5646
c4f7b523
ST
56472010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
5648
5649 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
5650 gnumach and gnumach.gz.
5651
95b97950
VS
56522010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
5653
5654 * include/grub/i18n.h (gettext): Inline instead of using #define.
5655 (grub_gettext): Likewise.
5656 (_): Likewise.
5657
01b8d2d7
VS
56582010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
5659
5660 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
5661 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
5662 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
5663 (main): Add a slash after pkglibdirroot.
5664
654e1d1e
VS
56652010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
5666
5667 * util/grub-install.in: Add missing "in" keyword.
5668
26966aeb
VS
56692010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
5670
5671 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
5672 Reported by: Seth Goldberg.
5673
75006747
VS
56742010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
5675
5676 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
5677
74cbf5bd
CW
56782010-05-18 Colin Watson <cjwatson@ubuntu.com>
5679
5680 * configure.ac: Check for Linux device-mapper support.
5681
5682 * util/hostdisk.c (device_is_mapped): New function.
5683 (find_partition_start): New function, partly broken out from
5684 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
5685 device-mapper support added.
5686 (linux_find_partition): Use find_partition_start.
5687 (convert_system_partition_to_system_disk): Add `st' argument.
5688 Support Linux /dev/mapper/* devices if device-mapper support is
5689 available; only DM-RAID devices are understood at present.
5690 (find_system_device): Add `st' argument. Pass it to
5691 convert_system_partition_to_system_disk.
5692 (grub_util_biosdisk_get_grub_dev): Pass stat result to
5693 find_system_device and convert_system_partition_to_system_disk. Use
5694 find_partition_start.
5695
5696 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
5697 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
5698 * util/deviceiter.c [__linux__]: Define MINOR.
5699 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
5700 * util/mkdevicemap.c (grub_putchar): New function.
5701 (grub_getkey): New function.
5702 (grub_refresh): New function.
5703 (main): Set debug=all if -v -v is used.
5704
355b51e9
CW
57052010-05-18 Colin Watson <cjwatson@ubuntu.com>
5706
5707 Fix build with non-GNU libcs.
5708
5709 * util/misc.c (canonicalize_file_name): Move to ...
5710 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
5711 grub_make_system_path_relative_to_its_root.
5712
7fb5c25f
CW
57132010-05-18 Colin Watson <cjwatson@ubuntu.com>
5714
5715 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
5716 we handle finding grub-mkimage. Default to finding grub-mkimage in
5717 ${bindir} with program_transform_name applied, and provide a
5718 --grub-mkimage option to override this.
5719
1d3293d6
VS
57202010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
5721
5722 Remove grub-mkisofs.
5723
5724 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
5725 (grub_mkisofs_SOURCES): Removed.
5726 (grub_mkisofs_CFLAGS): Removed.
5727 * util/mkisofs/defaults.h: Removed.
5728 * util/mkisofs/eltorito.c: Likewise.
5729 * util/mkisofs/exclude.h: Likewise.
5730 * util/mkisofs/hash.c: Likewise.
5731 * util/mkisofs/include/: Likewise.
5732 * util/mkisofs/include/fctldefs.h: Likewise.
5733 * util/mkisofs/include/mconfig.h: Likewise.
5734 * util/mkisofs/include/prototyp.h: Likewise.
5735 * util/mkisofs/include/statdefs.h: Likewise.
5736 * util/mkisofs/iso9660.h: Likewise.
5737 * util/mkisofs/joliet.c: Likewise.
5738 * util/mkisofs/match.c: Likewise.
5739 * util/mkisofs/match.h: Likewise.
5740 * util/mkisofs/mkisofs.c: Likewise.
5741 * util/mkisofs/mkisofs.h: Likewise.
5742 * util/mkisofs/msdos_partition.h: Likewise.
5743 * util/mkisofs/multi.c: Likewise.
5744 * util/mkisofs/name.c: Likewise.
5745 * util/mkisofs/rock.c: Likewise.
5746 * util/mkisofs/tree.c: Likewise.
5747 * util/mkisofs/write.c: Likewise.
5748
5dde9afe
VS
57492010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
5750
5751 Unify grub-mkimage accross platforms.
5752
5753 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
5754 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
5755 (grub_mkelfimage_SOURCES): Removed.
5756 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
5757 (util/grub-mkimage.c_DEPENDENCIES): .. this.
5758 (bin_UTILITIES): Add grub-mkimage.
5759 (grub_mkimage_SOURCES): New variable.
5760 (kernel_img_HEADERS): Remove machine/kernel.h.
5761 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
5762 (pkglib_PROGRAMS): Add kernel.img.
5763 (kernel_img_HEADERS): Add machine/kernel.h.
5764 (kernel_img_FORMAT): Removed.
5765 (bin_UTILITIES): Remove grub-mkimage.
5766 (grub_mkimage_SOURCES): Removed.
5767 (grub_mkimage_CFLAGS): Likewise.
5768 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
5769 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
5770 (pkglib_PROGRAMS): Add kernel.img.
5771 (bin_UTILITIES): Remove grub-mkimage.
5772 (grub_mkimage_SOURCES): Removed.
5773 (grub_mkimage_CFLAGS): Likewise.
5774 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
5775 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
5776 (pkglib_PROGRAMS): Add kernel.img.
5777 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
5778 (pkglib_PROGRAMS): Add kernel.img.
5779 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
5780 (grub_mkimage_SOURCES): Removed.
5781 (grub_mkimage_CFLAGS): Likewise.
5782 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
5783 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
5784 (pkglib_PROGRAMS): Add kernel.img.
5785 (bin_UTILITIES): Remove grub-mkimage.
5786 (grub_mkimage_SOURCES): Removed.
5787 (grub_mkimage_CFLAGS): Likewise.
5788 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
5789 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
5790 (grub_mkimage_SOURCES): Removed.
5791 (grub_mkimage_CFLAGS): Likewise.
5792 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
5793 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
5794 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
5795 (grub_pe32_optional_header): ... this.
5796 (grub_pe64_optional_header): ... and this. All users updated.
5797 (GRUB_PE32_PE32_MAGIC): Split into ..
5798 (GRUB_PE32_PE32_MAGIC): .. this.
5799 (GRUB_PE32_PE64_MAGIC): .. and this.
5800 (GRUB_PE32_SIGNATURE_SIZE): New definition.
5801 * include/grub/elf.h (PT_GNU_STACK): New definition.
5802 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
5803 * include/grub/i386/efi/kernel.h: Likewise.
5804 * include/grub/i386/kernel.h: Likewise.
5805 * include/grub/i386/pc/kernel.h: Likewise.
5806 * include/grub/i386/qemu/boot.h: Likewise.
5807 * include/grub/mips/kernel.h: Likewise.
5808 * include/grub/mips/qemu-mips/kernel.h: Likewise.
5809 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
5810 * include/grub/powerpc/kernel.h: Likewise.
5811 * include/grub/sparc64/ieee1275/boot.h: Likewise.
5812 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
5813 * include/grub/sparc64/kernel.h: Likewise.
5814 * include/grub/x86_64/efi/kernel.h: Likewise.
5815 * include/grub/x86_64/kernel.h: Likewise.
5816 * include/grub/offsets.h: New file.
5817 * include/grub/kernel.h (grub_module_info): Split into ...
5818 (grub_module_info32): ... this.
5819 (grub_module_info64): ... and this.
5820 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
5821 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
5822 (grub_boot_blocklist): Moved from here ...
5823 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
5824 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
5825 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
5826 * include/grub/types.h (grub_target_to_host16): Removed.
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 (grub_host_to_target_addr): Likewise.
5833
5834 Support grub-mkrescue for efi, coreboot and qemu.
5835
5836 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
5837 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
5838 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
5839 * util/grub-mkrawimage.c: Moved from here ...
5840 * util/grub-mkimage.c: ... here. All users updated.
5841 (ALIGN_ADDR): Use image_target.
5842 (TARGET_NO_FIELD): New const.
5843 (image_target_desc): New type.
5844 (image_targets): New array.
5845 (grub_target_to_host64): Use image_target.
5846 (grub_target_to_host32): Likewise.
5847 (grub_target_to_host16): Likewise.
5848 (grub_host_to_target64): Likewise.
5849 (grub_host_to_target32): Likewise.
5850 (grub_host_to_target16): Likewise.
5851 (grub_host_to_target_addr): Likewise.
5852 (generate_image): Handle multiimage.
5853 (main): Require -O parameter. All users updated.
5854 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
5855 util/efi/grub-mkimage.c
5856 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
5857 New option --rom-directory.
5858 Use xorriso.
5859 * util/i386/efi/grub-mkimage.c: Removed.
5860 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
5861 (grub_target_to_host32): Likewise.
5862 (grub_target_to_host64): Likewise.
5863 (grub_host_to_target16): Likewise.
5864 (grub_host_to_target32): Likewise.
5865 (grub_host_to_target64): Likewise.
5866 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
5867 (grub_target_to_host32): Likewise.
5868 (grub_target_to_host64): Likewise.
5869 (grub_host_to_target16): Likewise.
5870 (grub_host_to_target32): Likewise.
5871 (grub_host_to_target64): Likewise.
5872
f4fc97d0
BC
58732010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
5874
5875 Source tree is reorganized for emu build.
5876
5877 * include/grub/util/console.h: Move from here...
5878 * include/grub/emu/console.h: ...to here.
5879 * include/grub/util/getroot.h: Move from here...
5880 * include/grub/emu/getroot.h: ...to here.
5881 * include/grub/util/hostdisk.h: Move from here...
5882 * include/grub/emu/hostdisk.h: ...to here.
5883 * util/console.c: Move from here...
5884 * kern/emu/console.c: ...to here.
5885 * util/getroot.c: Move from here...
5886 * kern/emu/getroot.c: ...to here.
5887 * util/grub-emu.c: Move from here...
5888 * kern/emu/main.c: ...to here.
5889 * util/hostdisk.c: Move from here...
5890 * kern/emu/hostdisk.c: ...to here.
5891 * util/hostfs.c: Move from here...
5892 * kern/emu/hostfs.c: ...to here.
5893 * util/mm.c: Move from here...
5894 * kern/emu/mm.c: ...to here.
5895 * util/pci.c: Move from here...
5896 * bus/emu/pci.c: ...to here.
5897 * util/sdl.c: Move from here...
5898 * video/emu/sdl.c: ...to here.
5899 * util/time.c: Move from here...
5900 * kern/emu/time.c: ...to here.
5901 * util/usb.c: Move from here...
5902 * bus/usb/emu/usb.c: ...to here.
5903
5904 * include/grub/emu/misc.h: New header for grub-emu functions.
5905 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
5906
5907 * conf/any-emu.rmk: Rule updates for above renames.
5908 * conf/common.rmk: Likewise.
5909 * conf/i386-pc.rmk: Likewise.
5910 * conf/i386-qemu.rmk: Likewise.
5911 * conf/mips.rmk: Likewise.
5912 * conf/sparc64-ieee1275.rmk: Likewise.
5913 * conf/x86-efi.rmk: Likewise.
5914
5915 * disk/lvm.h: #include updates for above renames.
5916 * util/grub-mkrelpath.c: Likewise.
5917 * util/grub-probe.c: Likewise.
5918 * util/i386/pc/grub-setup.c: Likewise.
5919 * util/sparc64/ieee1275/grub-setup.c: Likewise.
5920 * kern/emu/console.c: Likewise.
5921 * kern/emu/getroot.c: Likewise.
5922 * kern/emu/hostdisk.c: Likewise.
5923 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
5924
5925 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
5926 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
5927 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
5928 * util/misc.c: Remove grub-emu functions.
5929
cced9145
VS
59302010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
5931
5932 Fix gfxmenu crash.
5933 Reported by: Thorsten Grützmacher.
5934
5935 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
5936 timeout hook.
5937 (circprog_set_property): Register and unregister timeout hook.
5938 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
5939 (label_destroy): Free template. and unregister hook.
5940 (label_set_state): New function.
5941 (label_set_property): Handle templates and hooks.
5942 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
5943 timeout hook.
5944 (progress_bar_set_property): Register and unregister timeout hook.
5945 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
5946 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
5947 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
5948 (update_timeout_visit): Removed.
5949 (update_timeouts): New function.
5950 (redraw_timeouts): Likewise.
5951 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
5952 (grub_gfxmenu_clear_timeout): Likewise.
5953 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
5954 (grub_gfxmenu_timeout_notify): Likewise.
5955 (grub_gfxmenu_timeout_notifications): New external variable.
5956 (grub_gfxmenu_timeout_register): New function.
5957 (grub_gfxmenu_timeout_unregister): Likewise.
5958
c6e5caab
VS
59592010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
5960
5961 Transform (broken) vga terminal into (working) vga video driver.
5962
5963 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
5964 video/i386/pc/vga.c.
5965 * include/grub/video.h (grub_video_driver_id):
5966 Add GRUB_VIDEO_DRIVER_VGA.
5967 * term/i386/pc/vga.c: Renamed to ...
5968 * video/i386/pc/vga.c: ...this
5969 (DEBUG_VGA): Removed.
5970 (CHAR_WIDTH): Likewise.
5971 (CHAR_HEIGHT): Likewise.
5972 (TEXT_WIDTH): Likewise.
5973 (TEXT_HEIGHT): Likewise.
5974 (DEFAULT_FG_COLOR): Likewise.
5975 (DEFAULT_BG_COLOR): Likewise.
5976 (colored_char): Likewise.
5977 (xpos): Likewise.
5978 (ypos): Likewise.
5979 (cursor_state): Likewise.
5980 (fg_color): Likewise.
5981 (bg_color): Likewise.
5982 (text_buf): Likewise.
5983 (page): Likewise.
5984 (font): Likewise.
5985 (framebuffer): New variable.
5986 (set_read_map): Disabled.
5987 (setup): New variable.
5988 (is_target): Likewise.
5989 (grub_vga_mod_init): Likewise.
5990 (grub_vga_mod_fini): Likewise.
5991 (check_vga_mem): Likewise.
5992 (write_char): Likewise.
5993 (write_cursor): Likewise.
5994 (scroll_up): Likewise.
5995 (grub_vga_putchar): Likewise.
5996 (grub_vga_getcharwidth): Likewise.
5997 (grub_vga_getwh): Likewise.
5998 (grub_vga_getxy): Likewise.
5999 (grub_vga_gotoxy): Likewise.
6000 (grub_vga_cls): Likewise.
6001 (grub_vga_setcolorstate): Likewise.
6002 (grub_vga_setcursor): Likewise.
6003 (grub_video_vga_init): New function.
6004 (grub_video_vga_setup): Likewise.
6005 (grub_video_vga_fini): Likewise.
6006 (update_target): Likewise.
6007 (grub_video_vga_blit_bitmap): Likewise.
6008 (grub_video_vga_blit_render_target): Likewise.
6009 (grub_video_vga_set_active_render_target): Likewise.
6010 (grub_video_vga_get_active_render_target): Likewise.
6011 (grub_video_vga_swap_buffers): Likewise.
6012 (grub_video_vga_set_palette): Likewise.
6013 (grub_video_vga_get_info_and_fini): Likewise.
6014 (grub_vga_term): Removed.
6015 (grub_video_vga_adapter): New variable.
6016 (GRUB_MOD_INIT): Register a video driver instead of terminal.
6017 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
6018
2bf61a98
VS
60192010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
6020
6021 * video/readers/jpeg.c: Indented.
6022
09ddcd11
VS
60232010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
6024
6025 Various jpeg cleanups.
6026
6027 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
6028 (grub_jpeg_decode_quan_table): Use sizeof.
6029 (grub_jpeg_decode_du): Use ARRAY_SIZE.
6030
e5507505
PH
60312010-05-05 Peter Hurley <No e-mail available> (tiny change)
6032
6033 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
6034 tables. Ignore non-last ac bit.
6035 (grub_jpeg_decode_quan_table): Likewise.
6036
7e720a9b
VS
60372010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
6038
6039 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
6040 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
6041 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
6042 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
6043 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
6044 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
6045
a7fc080b
VS
60462010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
6047
6048 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
6049 error.
6050
2bf6012d
VS
60512010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
6052
6053 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
6054
265d68cd
VS
60552010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6056
6057 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
6058 condition.
6059
60602010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7dd5a111
VS
6061
6062 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
6063 part.
6064
265d68cd 60652010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9b058d52
VS
6066
6067 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
6068 pointers.
6069
265d68cd 60702010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
25893831
VS
6071
6072 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
6073
d1b61374
CF
60742010-05-01 Christian Franke <franke@computer.org>
6075
6076 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
6077 Remove broken Cygwin path conversion.
6078 * util/misc.c: [__CYGWIN__] Add include and define.
6079 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
6080 for Cygwin 1.7.
6081 (make_system_path_relative_to_its_root): Simplify loop, replace early
6082 return by break.
6083 [__CYGWIN__] Add conversion to win32 path.
6084 Include "/" case in trailing slash removal.
6085
3558c6e9
VS
60862010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
6087
6088 * kern/main.c (grub_load_config): Fix copy-pasted comment.
6089 Reported by: Seth Goldberg
6090
f5f3ff93
VS
60912010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
6092
6093 * commands/help.c (grub_cmd_help): Fix a typo.
6094 Reported by: Seth Goldberg
6095
d8b5cd40
VS
60962010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
6097
6098 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
6099 name and add N_.
6100 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
6101 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
6102 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
6103 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
6104 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
6105 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
6106 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
6107 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
6108 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
6109 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
6110 * normal/context.c (GRUB_MOD_INIT): Likewise.
6111 * normal/main.c (GRUB_MOD_INIT): Likewise.
6112 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
6113 * term/serial.c (GRUB_MOD_INIT): Likewise.
6114 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
6115
88c14915
VS
61162010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
6117
6118 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
6119 extra == 0.
6120
165134bc
VS
61212010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
6122
6123 * commands/iorw.c: New file.
6124 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
6125 (iorw_mod_SOURCES): New variable.
6126 (iorw_mod_CFLAGS): Likewise.
6127 (iorw_mod_LDFLAGS): Likewise.
6128
c5ac9b32
VS
61292010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
6130
6131 Hotkey support
6132
6133 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
6134 * normal/main.c (hotkey_aliases): New variable.
6135 (grub_normal_add_menu_entry): Parse "--hotkey".
6136 * normal/menu_text.c (run_menu): Handle hotkeys.
6137
ce60689c
VS
61382010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
6139
6140 * kern/i386/coreboot/init.c (grub_machine_init): Call
6141 grub_machine_mmap_init on qemu.
6142
0359d006
VS
61432010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
6144
6145 * boot/i386/qemu/boot.S: Add a missing .code16.
6146
7819a456
VS
61472010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
6148
6149 Use LBIO on coreboot.
6150
6151 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
6152 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
6153 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
6154 New declaration.
6155 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
6156 grub_machine_mmap_init on coreboot.
6157 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
6158 GRUB_LINUXBIOS_MEMBER_LINK.
6159 (grub_machine_mmap_iterate): Fix declaration.
6160 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
6161
7210dca9
VS
61622010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
6163
6164 Split coreboot and multiboot ports.
6165
6166 * conf/i386-multiboot.rmk: New file.
6167 * configure.ac: Add multiboot port.
6168 * include/grub/i386/multiboot/boot.h: New file.
6169 * include/grub/i386/multiboot/console.h: Likewise.
6170 * include/grub/i386/multiboot/init.h: Likewise.
6171 * include/grub/i386/multiboot/kernel.h: Likewise.
6172 * include/grub/i386/multiboot/loader.h: Likewise.
6173 * include/grub/i386/multiboot/memory.h: Likewise.
6174 * include/grub/i386/multiboot/serial.h: Likewise.
6175 * include/grub/i386/multiboot/time.h: Likewise.
6176 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
6177 * loader/multiboot.c: Likewise.
6178 * loader/multiboot_mbi2.c: Likewise.
6179 * util/grub-mkrescue.in: Generate multiboot rescue.
6180
6f8aaf68
VS
61812010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
6182
3080f7a7
VS
6183 * kern/parser.c (grub_parser_execute): Cope with read-only config.
6184
61852010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
6186
6187 Merge handling of input and output terminals. Fix a hang.
6f8aaf68
VS
6188
6189 * commands/terminal.c (abstract_terminal): New struct.
6190 (handle_command): New function. Based on grub_cmd_terminal_input.
6191 (grub_cmd_terminal_input): Use handle_command.
6192 (grub_cmd_terminal_output): Use handle_command.
6193
a8ebb841
BC
61942010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
6195
6196 Fix comment handling.
6197
6198 * tests/grub_script_comments.in: New testcase.
6199 * conf/tests.rmk: Rules for new testcase.
6200 * script/yylex.l: Updated flex rules.
6201
bb06ba08
ST
62022010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
6203
6204 * docs/grub.texi (play): Document that zero pitches produce rests.
c76a1838
ST
6205 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
6206 if argc is 1.
bb06ba08 6207
cc9d2425
VS
62082010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6209
6210 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
6211 autogen issues.
6212
460d8402
CF
62132010-04-26 Christian Franke <franke@computer.org>
6214
6215 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
6216 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
6217 (grub_get_prefix): Remove function.
6218 * util/grub-emu.c (main): Replace grub_get_prefix () call by
6219 make_system_path_relative_to_its_root ().
6220 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
6221
553c01f9
CF
62222010-04-24 Christian Franke <franke@computer.org>
6223
6224 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
6225 (kernel_img_LDFLAGS): Remove -static-libgcc.
6226
2aec1692
CF
62272010-04-24 Christian Franke <franke@computer.org>
6228
6229 * configure.ac: Do not CHECK_BSS_START_SYMBOL
6230 and CHECK_END_SYMBOL if grub-emu is built.
6231 Unset TARGET_OBJ2ELF if grub-emu is built
6232 without module support.
6233
f67dc308
JS
62342010-04-24 Jiro SEKIBA <jir@unicus.jp>
6235
6236 Nilfs2 support.
6237
6238 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
6239 (grub_fstest_SOURCES): Likewise.
6240 (pkglib_MODULES): Add nilfs2.mod.
6241 (nilfs2_mod_SOURCES): New variable.
6242 (nilfs2_mod_CFLAGS): Likewise.
6243 (nilfs2_mod_LDFLAGS): Likewise.
6244 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
6245 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
6246 * fs/nilfs2.c: New file.
6247
4ba8d354
VS
62482010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
6249
6250 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
6251 is not supported.
6252
0d2c20c6
GS
62532010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
6254
6255 Add grub-mkconfig support for NetBSD.
6256
6257 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
6258 * util/grub-mkconfig.in: export new NetBSD specific variables.
6259 * po/POTFILES-shell: added 10_netbsd.in.
6260 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
6261
bc4a2d83
BC
62622010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
6263
6264 Fix emu build with grub-emu-pci and grub-emu-modules.
6265
6266 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
6267 functions.
6268 * include/grub/libpciaccess.h: New file.
6269 * conf/any-emu.rmk: Update kernel headers for emu build.
6270
f48c87aa
VS
62712010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6272
6273 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
6274
18959385
VS
62752010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6276
6277 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
6278
0037de3f
VS
62792010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
6280
6281 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
6282 Retrieve chosen/bootpath if bootpath isn't hardcoded.
6283 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
6284 util/ieee1275/ofpath.c.
6285 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
6286 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
6287 * include/grub/sparc64/ieee1275/boot.h
6288 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
6289 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
6290 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
6291 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
6292 const char *.
6293 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
6294 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
6295 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
6296 install.
6297
38e55e90
GS
62982010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
6299
6300 * util/grub-mkconfig.in: Corrected two == equality tests.
6301 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
6302 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
6303 expect a number appended to it.
6304 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
6305 expects a number appended to it.
6306
a9e6ff28
VS
63072010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
6308
6309 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
6310
0b830b8f
VS
63112010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
6312
6313 * util/hostdisk.c (make_device_name): Change to new partition naming.
6314
0973daeb
VS
63152010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
6316
6317 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
6318
460d8402 63192010-04-17 Christian Franke <franke@computer.org>
ebfe7eb4
CF
6320
6321 * Makefile.in: Add missing localedir setting.
6322
0b456309
CW
63232010-04-14 Colin Watson <cjwatson@ubuntu.com>
6324
6325 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
6326 mistake in r2156. Noticed by Anthony Fok.
6327
6328 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
6329 @localedir@.
6330 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
6331
08f46d62
BC
63322010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
6333
6334 Fix a spurious, uninitialized variable warning.
6335
6336 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
6337 Initialize variable, shdr.
6338 (grub_freebsd_load_elfmodule): Likewise.
6339 (grub_freebsd_load_elf_meta): Likewise.
6340
8c4a72d4
BC
63412010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
6342
6343 Fix for escaped dollar in double quoted strings.
6344
6345 * script/yylex.l: Updated flex rules.
6346 * conf/tests.rmk: Rule for new testcase.
6347 * tests/grub_script_dollar.in: New testcase.
6348
ce44826e
CPE
63492010-04-13 Carles Pina i Estany <carles@pina.cat>
63502010-04-13 Colin Watson <cjwatson@ubuntu.com>
6351
6352 Enclose all translated strings in grub.cfg in single quotes, and
6353 escape them appropriately (Ubuntu bug #552921).
6354
6355 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
6356 * util/grub.d/10_hurd.in: Use it.
6357 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
6358 * util/grub.d/10_linux.in (linux_entry): Likewise.
6359
4b0cd8f8
VS
63602010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6361
6362 Fix cygwin compilation.
6363
6364 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
6365 * include/grub/misc.h (__register_frame_info)
6366 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
6367 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
6368 * kern/misc.c (__register_frame_info)
6369 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
6370 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
6371
01fcf061
VS
63722010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6373
6374 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
6375
5d04b11e
VS
63762010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6377
6378 Unify libgcc processing.
6379
6380 * Makefile.in (kernel_img_LDFLAGS): New variable.
6381 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
6382 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
6383 overwriting.
6384 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
6385 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
6386 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
6387 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
6388 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
6389 overwriting. Remove -lgcc and -static-libgcc
6390 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
6391 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
6392 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
6393 (kernel_img_LDFLAGS): Append instead of overwriting.
6394 Remove -lgcc and -static-libgcc
6395 * conf/sparc64-ieee1275.rmk: Likewise.
6396 * include/grub/powerpc/libgcc.h: Move to ...
6397 * include/grub/libgcc.h: .. this.
6398 * include/grub/libgcc.h: Don't export most of the function on x86.
6399 (__bswapsi2): New export.
6400 (__bswapdi2): Likewise.
6401 * include/grub/mips/libgcc.h: Removed.
6402 * include/grub/sparc64/libgcc.h: Likewise.
6403
b7f3ac29
VS
64042010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
6405
6406 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
6407 disk_info_msg (conflicts with gettexting into languages with cases).
6408
2c7031b1
GS
64092010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
6410
6411 Add grub-probe support for NetBSD.
6412
6413 * util/getroot.c (find_root_device): Convert block device to
6414 character device on NetBSD.
6415 * util/probe.c (probe): Require character device on NetBSD.
6416 * util/hostdisk.c: NetBSD specific headers.
6417 (configure_device_driver): new function to tune device driver
6418 parameters (currently only for NetBSD floppy driver).
6419 (grub_util_biosdisk_open): NetBSD specific code (get disk size
6420 via disklabel ioctl).
6421 (open_device): call configure_device_driver on NetBSD.
6422 (convert_system_partition_to_system_disk): NetBSD specific code.
6423 (device_is_wholedisk): Likewise.
6424 (grub_util_biosdisk_get_grub_dev): Likewise.
6425 (make_device_name): Fixed a typo in bsd_part_str.
6426 * configure.ac: check for opendisk() and getrawpartition() on
6427 NetBSD and set LIBUTIL.
6428 * Makefile.in: add LIBUTIL to LIBS.
6429
f516290c
BC
64302010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
6431
6432 Documentation fix.
6433
6434 * util/grub-script-check.c: Better help message.
6435
d8dcc0df
BC
64362010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
6437
6438 Fix FreeBSD build.
6439
6440 * configure.ac: Flex version check.
6441 * conf/common.rmk: Add -Wno-error to sh.mod.
6442 * script/yylex.l: Remove all #pragma.
6443
6734334a
VS
64442010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
6445
6446 * include/grub/util/misc.h (canonicalise_file_name): Add missing
6447 prototype.
6448 Reported by: Seth Goldberg.
6449
daea6abd
VS
64502010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
6451
6452 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
6453 Rename "module" to "module2".
6454 Reported by: Seth Goldberg.
6455
f2fd9d2b
VS
64562010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
6457
6458 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
6459 EXPORT_FUNC.
6460 Reported by: Seth Goldberg.
6461
be124579
VS
64622010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
6463
6464 * lib/posix_wrap/locale.h: Add missing file.
6465 Reported by: Seth Goldberg.
6466
ef5da797
VS
64672010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
6468
6469 grub-emu module load support.
6470
6471 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
6472 NO_DYNAMIC_MODULES switched to this.
6473 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
6474 (CFLAGS): Likewise.
6475 * conf/any-emu.rmk: Generate symlist.
6476 (kernel_img_HEADERS): Add util/datetime.h.
6477 (kernel_img_HEADERS) [sdl]: Add sdl.h.
6478 (kernel_img_HEADERS) [libusb]: Add libusb.h.
6479 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
6480 kern/$(target_cpu)/cache.S.
6481 * configure.ac (grub-emu-modules): New option.
6482 * genmk.rb: Handle multiple source lists.
6483 * include/grub/sdl.h: New file.
6484 * include/grub/libusb.h: Likewise.
6485 * util/grub-emu.c (main): Hanle (host) root.
6486 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
6487 GRUB_ERR_UNKNOWN_DEVICE.
6488 * util/misc.c: Move mm functions to ...
6489 * util/mm.c: ... here. All users updated.
6490
47822096
VS
64912010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
6492
6493 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
6494 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
6495 missing files.
6496 (maintainer-clean): Remove libgcrypt-grub.
6497
5d7e7445
VS
64982010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
6499
6500 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
6501
25f4e252
EC
65022010-04-09 EFI Coder <eficoder@hotmail.com>
6503
6504 * normal/menu_text.c (print_message): Clean up the message and show
6505 the Fn information when on EFI
6506 * term/efi/console.c (grub_console_checkkey): Add F4 support.
6507
027de555
VS
65082010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
6509
6510 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
6511 All users updated.
6512 * normal/crypto.c (read_crypto_list): Likewise.
6513 * normal/dyncmd.c (read_command_list): Likewise.
6514 * normal/term.c (read_terminal_list): Likewise.
6515 * normal/main.c (read_lists): Use explicit prefix.
6516 (read_lists_hook): Use read_lists.
6517 (grub_normal_execute): Likewise.
6518
47779711
VS
65192010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
6520
6521 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
6522 Reported by: Thomas Schmitt.
6523 Add -no-emul-boot to grub-mkisofs parameters.
6524
1118c32e
VS
65252010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
6526
6527 * font/font.c: Indented.
6528
7d652447
BC
65292010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
6530
6531 Elif support to GRUB script (by Deepak Vankadaru).
6532
6533 * tests/grub_script_if.in: New testcase.
6534 * conf/tests.rmk: Rule for new testcase.
6535 * script/parser.y: Grammar rules for elif.
6536
34bb22df
BC
65372010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
6538
6539 While and until loops support to GRUB script.
6540
6541 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
6542 (grub_script_create_cmdwhile): New function prototype.
6543 (grub_script_execute_cmdwhile): New function prototype.
6544 * script/execute.c (grub_script_execute_cmdwhile): New function.
6545 * script/parser.y (command): New commands.
6546 (whilecmd): New grammar rule.
6547 (untilcmd): New grammar rule.
6548 * script/script.c (grub_script_create_cmdwhile): New function.
6549 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
6550 function.
6551
6552 * tests/grub_script_while1.in: New testcase.
6553 * conf/tests.rmk: Rule for new testcase.
6554
e215d8e0
VS
65552010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
6556
6557 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
6558 as *.jpg.
6559
d7c43ba1
MV
65602010-04-09 Mario Vazquez <mariovazq@gmail.com>
6561
6562 GRUB_BACKGROUND support.
6563
6564 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
6565 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
6566
d64795c0
VS
65672010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
6568
6569 Load fonts and modules for gfxmenu in grub-mkconfig.
d7c43ba1 6570 Idea by: Mario Vazquez
d64795c0
VS
6571
6572 * util/grub.d/00_header.in: Load pf2 and image modules.
6573
f267f83a
VS
65742010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
6575
6576 grub-mkconfig multiple terminal support.
6577
6578 * util/grub-mkconfig.in: Handle multiple terminals correctly.
6579 * util/grub.d/00_header.in: Likewise.
6580
b7841ceb
VS
65812010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
6582
6583 * Makefile.in: Specify files explicitly instead of using $< and $@ since
6584 we use cd $(srcdir).
6585
df60998c
CW
65862010-04-08 Colin Watson <cjwatson@ubuntu.com>
6587
6588 * util/grub.d/10_linux.in: Only use the first word of
6589 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
6590 spaces in GRUB_DISTRIBUTOR.
6591 * util/grub.d/10_kfreebsd.in: Likewise.
6592 * util/grub.d/10_hurd.in: Likewise.
6593
fa09c82e
BC
65942010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
6595
14e18ae3 6596 Fix unit testing framework for Qemu 0.12.
fa09c82e
BC
6597
6598 * tests/util/grub-shell.in: Remove -serial stdio option.
6599
daf892b3
BC
66002010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
6601
6602 POSIX header file wrappers.
6603
6604 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
6605 equivalents.
6606 * lib/posix_wrap/ctype.h: Likewise.
6607 * lib/posix_wrap/errno.h: Likewise.
6608 * lib/posix_wrap/langinfo.h: Likewise.
6609 * lib/posix_wrap/limits.h: Likewise.
6610 * lib/posix_wrap/localcharset.h: Likewise.
6611 * lib/posix_wrap/stdint.h: Likewise.
6612 * lib/posix_wrap/stdio.h: Likewise.
6613 * lib/posix_wrap/stdlib.h: Likewise.
6614 * lib/posix_wrap/string.h: Likewise.
6615 * lib/posix_wrap/sys/types.h: Likewise.
6616 * lib/posix_wrap/unistd.h: Likewise.
6617 * lib/posix_wrap/wchar.h: Likewise.
6618 * lib/posix_wrap/wctype.h: Likewise.
6619 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
6620 (grub_script.yy.h): Likewise.
6621 * script/yylex.l: Remove POSIX emulation #defines.
6622 * Makefile.in (POSIX_CFLAGS): New variable.
6623 (GNULIB_UTIL_CFLAGS): Likewise.
6624
6625 Regexp support.
6626
6627 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
6628 (regexp_mod_SOURCES): New variable.
6629 (regexp_mod_CFLAGS): Likewise.
6630 (regexp_mod_LDFLAGS): Likewise.
6631 * commands/regexp.c: New file.
6632 * gnulib/regcomp.c: New file. Imported from gnulib.
6633 * gnulib/regex.c: Likewise.
6634 * gnulib/regex_internal.c: Likewise.
6635 * gnulib/regex_internal.h: Likewise.
6636 * gnulib/regexec.c: Likewise.
6637 * gnulib/regex.h: Likewise.
6638
974ac4f7
VS
66392010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
6640
6641 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
6642 unsupported video mode types.
6643
2622c3ff
VS
66442010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
6645
6646 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
6647
064cb524
VS
66482010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
6649
6650 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
6651 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
6652
a8c3b552
VS
66532010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
6654
6655 Remove unused grub_vga_get_font.
6656
6657 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
6658 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
6659
187bbe3d
GS
66602010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
6661
6662 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
6663 * include/grub/misc.h: Likewise.
6664
b9396631
GS
66652010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
6666
6667 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
6668 for which failure is fatal.
6669
50479feb
GS
66702010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
6671
6672 * util/grub-install.in: Use mkdir -p to create grub directory.
6673 * util/i386/efi/grub-install.in: Likewise.
6674 * util/ieee1275/grub-install.in: Likewise.
6675
b1654fdf
GS
66762010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
6677
6678 * Makefile.in (LEX): new variable.
6679
bd5a6415
GS
66802010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
6681
6682 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
6683 `=' and added double quotes on operands of this equality test.
6684
3db3a82b
VS
66852010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
6686
6687 * Makefile.in (uninstall): Remove a leftover debug echo.
6688 Reported by: Grégoire Sutre
6689
38023412
VS
66902010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
6691
6692 MIPS multiboot2 support.
6693
6694 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
6695 (multiboot2_mod_SOURCES): New variable.
6696 (multiboot2_mod_CFLAGS): Likewise.
6697 (multiboot2_mod_LDFLAGS): Likewise.
6698 (multiboot2_mod_ASFLAGS): Likewise.
6699 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
6700 definition.
6701 (MULTIBOOT_ENTRY_REGISTER): Likewise.
6702 (MULTIBOOT_MBI_REGISTER): Likewise.
6703 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
6704 (MULTIBOOT_ELF32_MACHINE): Likewise.
6705 (MULTIBOOT_ELF64_MACHINE): Likewise.
6706 * include/grub/mips/multiboot.h: New file.
6707 * include/grub/video.h (grub_video_driver_id): New type
6708 GRUB_VIDEO_DRIVER_SM712.
6709 (grub_video_get_info_and_fini): Export.
6710 (grub_video_get_palette): Likewise.
6711 (grub_video_get_driver_id): Likewise.
6712 * include/multiboot2.h: Resynced with spec.
6713 * loader/i386/multiboot.c: Moved from here ...
6714 * loader/multiboot.c: ... here. All users updated.
6715 (grub_multiboot_boot): Use platform-specific macros.
6716 * loader/i386/multiboot_elfxx.c: Moved from here ...
6717 * loader/multiboot_elfxx.c: ... here. All users updated.
6718 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
6719 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
6720 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
6721
47674667
VS
67222010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
6723
6724 Import gnulib argp module.
6725
6726 * gnulib/argp-ba.c: New file.
6727 * gnulib/argp-eexst.c: Likewise.
6728 * gnulib/argp-fmtstream.c: Likewise.
6729 * gnulib/argp-fmtstream.h: Likewise.
6730 * gnulib/argp-fs-xinl.c: Likewise.
6731 * gnulib/argp-help.c: Likewise.
6732 * gnulib/argp-namefrob.h: Likewise.
6733 * gnulib/argp-parse.c: Likewise.
6734 * gnulib/argp-pin.c: Likewise.
6735 * gnulib/argp-pv.c: Likewise.
6736 * gnulib/argp-pvh.c: Likewise.
6737 * gnulib/argp-version-etc.c: Likewise.
6738 * gnulib/argp-version-etc.h: Likewise.
6739 * gnulib/argp-xinl.c: Likewise.
6740 * gnulib/argp.h: Likewise.
6741
495442ed
VS
67422010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
6743
6744 * kern/device.c (grub_device_iterate): Clear errors after failed
6745 opening device.
6746
f9fd65df
VS
67472010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
6748
6749 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
6750 returned by firmware.
6751
af09641e
VS
67522010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
6753
6754 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
6755 compilation on coreboot and qemu
6756
016883a5
VS
67572010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
6758
6759 * include/multiboot2.h: Resync with spec.
6760
f97e1f7d
VS
67612010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
6762
6763 Multiboot2 tag support
6764
6765 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
6766 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
6767 Remove loader/multiboot_loader.c.
6768 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
6769 (grub_multiboot2_real_boot): Likewise.
6770 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
6771 (grub_get_multiboot_mmap_count): New proto.
6772 (grub_fill_multiboot_mmap): Likewise.
6773 (grub_multiboot_set_video_mode): Likewise.
6774 (grub_multiboot_set_console): Likewise.
6775 (grub_multiboot_load): Likewise.
6776 (grub_multiboot_load_elf): Likewise.
6777 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
6778 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
6779 * include/multiboot.h: Resynced with specification.
6780 * include/multiboot2.h: Resynced with specification.
6781 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
6782 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
6783 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
6784 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
6785 users updated.
6786 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
6787 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
6788 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
6789 Removed.
6790 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
6791 Moved from here...
6792 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
6793 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
6794 Moved from here...
6795 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
6796 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
6797 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
6798 All users updated.
6799 * loader/i386/multiboot_mbi2.c: New file.
6800
3506b90b
VS
68012010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
6802
6803 Resync with gnulib.
6804
6805 * Makefile.in (GNULIB_CFLAGS): New variable.
6806 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
6807 (grub_script_check_CFLAGS): New variable.
6808 * gnulib/alloca.h: Resync with gnulib.
6809 * gnulib/error.c: Likewise.
6810 * gnulib/error.h: Likewise.
6811 * gnulib/fnmatch.c: Likewise.
6812 * gnulib/fnmatch_loop.c: Likewise.
6813 * gnulib/getdelim.c: Likewise.
6814 * gnulib/getline.c: Likewise.
6815 * gnulib/getopt.c: Likewise.
6816 * gnulib/getopt1.c: Likewise.
6817 * gnulib/getopt_int.h: Likewise.
6818 * gnulib/gettext.h: Likewise.
6819 * gnulib/progname.c: Likewise.
6820 * gnulib/progname.h: Likewise.
6821
394a3120
GS
68222010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
6823
6824 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
6825 which is the case with --disabled-nls.
6826
6827 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
6828 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
6829 * util/misc.c: Likewise.
6830 * util/mkisofs/mkisofs.c: Likewise.
6831 * util/mkisofs/mkisofs.h: Likewise.
6832
969d1c78
VS
68332010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
6834
6835 Simplify Apple CC support.
6836
6837 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
6838 Add 0 byte at the end not to have a symbol with empty target.
6839 * mmap/i386/pc/mmap_helper.S: Likewise.
6840 * genmk.rb: Ignore errors 2030 and 2050.
6841 * kern/i386/pc/startup.S: Use LOCAL when possible.
6842
8d2977bb
BC
68432010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
6844
6845 Testcase and the fix for final semicolon on cmdline.
6846
6847 * tests/grub_script_final_semicolon.in: New testcase.
6848 * conf/tests.rmk: Rules for the new testcase.
6849 * script/parser.y: Grammar fix.
6850
a7bd6915
BC
68512010-03-26 BVK Chaitanya <bvk@localhost>
6852
6853 Blank lines testcase for GRUB script.
6854
6855 * tests/grub_script_blanklines.in: New testcase.
6856 * conf/tests.rmk: Rules for the new testcase.
6857
e4ff6628
VS
68582010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
6859
6860 Don't use __FILE__.
6861
6862 * genmk.rb: Add -DGRUB_FILE to all C targets.
6863 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
6864 * include/grub/list.h: Likewise.
6865 * include/grub/misc.h: Likewise.
6866 * include/grub/mm.h: Likewise.
6867 * include/grub/test.h: Likewise.
6868 * kern/mm.c: Likewise.
6869 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
6870
6a5cf6b6
VS
68712010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
6872
6873 Sunpc partitions support.
6874
6875 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
6876 (grub_fstest_SOURCES): Likewise.
6877 (pkglib_MODULES): Add part_sunpc.mod.
6878 (part_sunpc_mod_SOURCES): New variable.
6879 (part_sunpc_mod_CFLAGS): Likewise.
6880 (part_sunpc_mod_LDFLAGS): Likewise.
6881 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
6882 * partmap/sunpc.c: New file.
6883
746d9045
BC
68842010-03-26 BVK Chaitanya <bvk@localhost>
6885
6886 For loop support to GRUB script.
6887
6888 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
6889 (grub_script_create_cmdfor): New function prototype.
6890 (grub_script_execute_cmdfor): New function prototype.
6891 * script/execute.c (grub_script_execute_cmdfor): New function.
6892 * script/parser.y (command): New for command.
6893 (forcmd): New grammar rule.
6894 * script/script.c (grub_script_create_cmdfor): New function.
6895 * util/grub-script-check.c (grub_script_execute_cmdfor): New
6896 function.
6897 * tests/grub_script_for1.in: New testcase.
6898 * conf/tests.rmk: Rules for new testcase.
6899
18486b18
VS
69002010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
6901
6902 Nested partitions
6903
6904 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
6905 'partition' is NULL, grub_partition_get_start already does that.
6906 * commands/loadenv.c (check_blocklists): Likewise.
6907 (write_blocklists): Likewise.
6908 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
6909 (grub_fstest_SOURCES): Likewise.
6910 (pkglib_MODULES): Add part_bsd.mod.
6911 (part_bsd_mod_SOURCES): New variable.
6912 (part_bsd_mod_CFLAGS): Likewise.
6913 (part_bsd_mod_LDFLAGS): Likewise.
6914 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
6915 (grub_emu_SOURCES): Likewise.
6916 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
6917 * include/grub/bsdlabel.h: New file.
6918 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
6919 'get_name'.
6920 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
6921 (grub_partition_map_list): New variable.
6922 (grub_partition_map_register): Inline.
6923 (grub_partition_map_unregister): Likewise.
6924 (FOR_PARTITION_MAPS): New macro.
6925 (grub_partition_map_iterate): Removed.
6926 (grub_partition_get_start): Handle nested partitions.
6927 * include/grub/msdos_partition.h: Remove bsd-related entries.
6928 (grub_pc_partition): Remove.
6929 * kern/disk.c (grub_disk_close): Free partition data.
6930 (grub_disk_adjust_range): Handle nested partitions.
6931 * kern/partition.c (grub_partition_map_probe): New function.
6932 (grub_partition_probe): Parse name to number, handle subpartitions.
6933 (get_partmap): New function.
6934 (grub_partition_iterate): Handle subpartitions.
6935 (grub_partition_get_name): Likewise.
6936 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
6937 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
6938 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
6939 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
6940 Set 'number'.
6941 (acorn_partition_map_probe): Remove.
6942 (acorn_partition_map_get_name): Likewise.
6943 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
6944 Set 'number'.
6945 Set 'index' to 0 since there can be only one partition entry per sector.
6946 (amiga_partition_map_probe): Remove.
6947 (amiga_partition_map_get_name): Likewise.
6948 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
6949 Set 'number'.
6950 Set 'offset' and 'index' to real positions of partitions.
6951 (apple_partition_map_probe): Remove.
6952 (apple_partition_map_get_name): Likewise.
6953 * partmap/bsdlabel.c: New file.
6954 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
6955 Set 'number'.
6956 Allocate 'data' so it can be correctly freed.
6957 Set 'index' to offset inside sector.
6958 (gpt_partition_map_probe): Remove.
6959 (gpt_partition_map_get_name): Likewise.
6960 * partmap/msdos.c (grub_partition_parse): Remove.
6961 (pc_partition_map_iterate): Don't force raw access.
6962 Set 'number'.
6963 Make 'ext_offset' a local variable.
6964 (pc_partition_map_probe): Remove.
6965 (pc_partition_map_get_name): Remove.
6966 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
6967 Set 'number'.
6968 (sun_partition_map_probe): Remove.
6969 (sun_partition_map_get_name): Likewise.
6970 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
6971 (grub_pcpart_type): Likewise.
6972 * util/hostdisk.c (open_device): Handle new numbering scheme.
6973 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
6974 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
6975 * util/grub-probe.c (probe_partmap): Handle nested paritions.
6976 * util/grub-install.in: Insert all subpartition modules.
6977 * util/ieee1275/grub-install.in: Likewise.
6978
a3940f88
AG
69792010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
6980
6981 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
6982 grammar.
6983
21b99926 69842010-03-24 Colin Watson <cjwatson@ubuntu.com>
6985
6986 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
6987
bed1d352
CW
69882010-03-21 Colin Watson <cjwatson@ubuntu.com>
6989
6990 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
6991 match where 'make install' puts them.
6992 * util/i386/efi/grub-install.in: Likewise.
6993
c9f58427
CW
69942010-03-19 Colin Watson <cjwatson@ubuntu.com>
6995
6996 * .bzrignore: Add gentrigtables, grub-script-check,
6997 grub_script_check_init.c, grub_script_check_init.h, and
6998 trigtables.c.
6999
f84afb27
VS
70002010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
7001
7002 * kern/parser.c: Indented.
7003
ed0e3d30
VS
70042010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
7005
7006 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
7007
0ea81d98
VS
70082010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
7009
7010 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
7011 alpha_mask_size == 0 case.
7012
0cdc2a09
BC
70132010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
7014
7015 GRUB shell lexer and parser improvements.
7016
7017 * conf/any-emu.rmk: Build rule updates.
7018 * conf/common.rmk: Likewise.
7019 * conf/i386-coreboot.rmk: Likewise.
7020 * conf/i386-efi.rmk: Likewise.
7021 * conf/i386-ieee1275.rmk: Likewise.
7022 * conf/i386-pc.rmk: Likewise.
7023 * conf/powerpc-ieee1275.rmk: Likewise.
7024 * conf/x86_64-efi.rmk: Likewise.
7025
7026 * configure.ac: Configure check for flex.
7027
7028 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
7029 types.
7030 (grub_lexer_param): Struct member updates.
7031 (grub_parser_param): Likewise.
7032 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
7033 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
7034 (grub_script_lexer_init): Prototype update.
7035 (grub_script_lexer_record_start): Likewise.
7036 (grub_script_lexer_record_stop): Likewise.
7037 (grub_script_lexer_yywrap): New function prototype.
7038 (grub_script_lexer_fini): Likewise.
7039 (grub_script_execute_argument_to_string): Removed by...
7040 (grub_script_execute_argument_to_argv): ...better version.
7041
7042 * script/execute.c (ROUND_UPTO): New macro.
7043 (grub_script_execute_cmdline): Out of memory fixes.
7044 (grub_script_execute_menuentry): Likewise.
7045 (grub_script_execute_argument_to_string): Removed. Update all
7046 users by...
7047 (grub_script_execute_argument_to_argv): ...better version.
7048 * script/function.c (grub_script_function_create): Use
7049 grub_script_execute_argument_to_argv instead of
7050 grub_script_execute_argument_to_string.
7051
7052 * script/lexer.c (check_varstate): Removed.
7053 (check_textstate): Removed.
7054 (grub_script_lexer_record_start): Likewise.
7055 (grub_script_lexer_record_stop): Likewise.
7056 (recordchar): Replaced with...
7057 (grub_script_lexer_record): ...new function.
7058 (nextchar): Removed.
7059 (grub_script_lexer_init): Rewritten.
7060 (grub_script_yylex): Rewritten.
7061 (append_newline): New function.
7062 (grub_script_lexer_yywrap): New function.
7063 (grub_script_lexer_fini): New function.
7064 (grub_script_yyerror): Sets error flag.
7065
7066 * script/yylex.l: New file.
7067 (grub_lexer_yyfree): Wrapper for flex yyffre.
7068 (grub_lexer_yyalloc): Likewise.
7069 (grub_lexer_yyrealloc): Likewise.
7070 * script/parser.y: Refactored.
7071
7072 * script/script.c (grub_script_arg_add): Out of memory fixes.
7073 (grub_script_add_arglist): Likewise.
7074 (grub_script_create_cmdline): Likewise.
7075 (grub_script_create_cmdmenu): Likewise.
7076 (grub_script_add_cmd): Likewise.
7077 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
7078 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
7079 unnecessary code.
7080
7081 * tests/grub_script_echo1.in: New testcase.
7082 * tests/grub_script_vars1.in: New testcase.
7083 * tests/grub_script_echo_keywords.in: New testcase.
7084
1d63a066
VS
70852010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
7086
7087 Remove some redundancy in build system.
7088
7089 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
7090 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
7091 (TARGET_LDFLAGS): Add -nostdlib.
7092 (TARGET_IMG_LDFLAGS): Likewise.
7093 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
7094 anything since mmap isn't available.
7095 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
7096 Add util/time.c.
7097 (pkglib_MODULES): Remove reboot.mod.
7098 (reboot_mod_SOURCES): Removed.
7099 (reboot_mod_CFLAGS): Likewise.
7100 (reboot_mod_LDFLAGS): Likewise.
7101 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
7102 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
7103 (DEFSYMFILES): Add kernel_syms.lst.
7104 (kernel_img_HEADERS): Add common headers.
7105 (symlist.c): New target.
7106 (kernel_syms.lst): Likewise.
7107 (pkglib_MODULES): Add memdisk.mod.
7108 (memdisk_mod_SOURCES): New variable.
7109 (memdisk_mod_CFLAGS): Likewise.
7110 (memdisk_mod_LDFLAGS): Likewise.
7111 (pkglib_MODULES): Add reboot.mod.
7112 (reboot_mod_SOURCES): New variable.
7113 (reboot_mod_CFLAGS): Likewise.
7114 (reboot_mod_LDFLAGS): Likewise.
7115 (pkglib_MODULES): Add date.mod.
7116 (date_mod_SOURCES): New variable.
7117 (date_mod_CFLAGS): Likewise.
7118 (date_mod_LDFLAGS): Likewise.
7119 (pkglib_MODULES): Add datehook.mod.
7120 (datehook_mod_SOURCES): New variable.
7121 (datehook_mod_CFLAGS): Likewise.
7122 (datehook_mod_LDFLAGS): Likewise.
7123 (pkglib_MODULES): Add lsmmap.mod.
7124 (lsmmap_mod_SOURCES): New variable.
7125 (lsmmap_mod_CFLAGS): Likewise.
7126 (lsmmap_mod_LDFLAGS): Likewise.
7127 (pkglib_MODULES): Add boot.mod.
7128 (boot_mod_SOURCES): New variable.
7129 (boot_mod_CFLAGS): Likewise.
7130 (boot_mod_LDFLAGS): Likewise.
7131 * conf/i386-coreboot.rmk: Removed redundant parts.
7132 * conf/i386-ieee1275.rmk: Likewise.
7133 * conf/i386-pc.rmk: Likewise.
7134 * conf/mips-yeeloong.rmk: Likewise.
7135 * conf/mips.rmk: Likewise.
7136 * conf/powerpc-ieee1275.rmk: Likewise.
7137 * conf/sparc64-ieee1275.rmk: Likewise.
7138 * conf/x86_64-efi.rmk: Likewise.
7139 * conf/i386-coreboot.rmk: Moved qemu parts ..
7140 * conf/i386-qemu.rmk: ... here
7141 * conf/i386-efi.rmk: Moved common parts to...
7142 * conf/x86-efi.rmk: ... here.
7143 * conf/i386.rmk: Added modules common to all x86 variants.
7144 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
7145 * disk/memdisk.c: Remove grub/machine/kernel.h.
7146 * gensymlist.sh.in: Include symbol.h.
7147 * hook/datehook.c: Correct module name.
7148 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
7149 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
7150 * include/grub/i386/efi/serial.h: New file.
7151 * include/grub/x86_64/efi/serial.h: Likewise.
7152 * util/time.c: Likewise.
7153 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
7154
463ac55f
CK
71552010-03-14 Colin King <colin.king@ubuntu.com>
71562010-03-14 Colin Watson <cjwatson@ubuntu.com>
7157
7158 Shrink the pre-partition-table part of boot.img by eight bytes.
7159
7160 * boot/i386/pc/boot.S (ERR): New macro.
7161 (chs_mode): Use ERR.
7162 (geometry_error): Likewise.
7163 (hd_probe_error): Remove. This is only used once, so we wrwite
7164 it inline instead.
7165 (read_error): Instead of printing read_error_string, just set up
7166 %si and fall through to ...
7167 (error_message): ... this new function, also used by ERR.
7168
08e46ede
CW
71692010-03-14 Colin Watson <cjwatson@ubuntu.com>
7170
7171 Speed up consecutive hostdisk operations on the same device.
7172
7173 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
7174 (grub_util_biosdisk_open): Initialise disk->data.
7175 (struct linux_partition_cache): New structure.
7176 (linux_find_partition): Cache partition start positions; these are
7177 expensive to compute on every read and write.
7178 (open_device): Cache open file descriptor in disk->data, so that we
7179 don't have to reopen it and flush the buffer cache for consecutive
7180 operations on the same device.
7181 (grub_util_biosdisk_close): New function.
7182 (grub_util_biosdisk_dev): Set `close' member.
7183
7184 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
7185 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
7186 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
7187 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
7188 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
7189
4a6d2d06
VS
71902010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
7191
7192 Compile parts of grub-emu as modules.
7193
7194 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
7195 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
7196 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
7197 (all-local): Add $(GRUB_EMU).
7198 (install-local): Install $(GRUB_EMU).
7199 (uninstall): Uninstall $(GRUB_EMU).
7200 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
7201 * kern/dl.c: Likewise.
7202 * commands/sleep.c: Not include machine/time.h.
7203 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
7204 (COMMON_CFLAGS): Likewise.
7205 (sbin_UTILITIES): Remove grub-emu.
7206 (grub_emu_SOURCES): Removed.
7207 (kernel_img_RELOCATABLE): New variable.
7208 (pkglib_PROGRAMS): Add kernel.img.
7209 (kernel_img_SOURCES): New variable
7210 (kernel_img_CFLAGS): Likewise.
7211 (kernel_img_LDFLAGS): Likewise.
7212 (TARGET_NO_STRIP): Likewise.
7213 (TARGET_NO_DYNAMIC_MODULES): Likewise.
7214 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
7215 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
7216 (grub-emu): New target.
7217 (GRUB_EMU): New variable.
7218 * configure.ac: Whitelist -emu as possible x86_64 architecture.
7219 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
7220 * loader/xnu.c: Likewise.
7221 * include/grub/pci.h: Likewise.
7222 * genemuinit.sh: New file.
7223 * genemuinitheader.sh: Likewise.
7224 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
7225 Support TARGET_NO_DYNAMIC_MODULES.
7226 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
7227 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
7228 * disk/loopback.c: Likewise.
7229 * font/font_cmd.c: Likewise.
7230 * partmap/acorn.c: Likewise.
7231 * partmap/amiga.c: Likewise.
7232 * partmap/apple.c: Likewise.
7233 * partmap/gpt.c: Likewise.
7234 * partmap/msdos.c: Likewise.
7235 * partmap/sun.c: Likewise.
7236 * parttool/msdospart.c: Likewise.
7237 * term/gfxterm.c: Likewise.
7238 * video/bitmap.c: Likewise.
7239 * video/readers/jpeg.c: Likewise.
7240 * video/readers/png.c: Likewise.
7241 * video/readers/tga.c: Likewise.
7242 * video/video.c: Likewise.
7243 * util/grub-emu.c (read_command_list): Removed.
7244 (main): Don't call util_init_nls.
7245 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
7246 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
7247
91fdd2ed
VS
72482010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
7249
7250 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
7251 date.mod, datehook.mod.
7252 (datetime_mod_SOURCES): New variable.
7253 (datetime_mod_CFLAGS): Likewise.
7254 (datetime_mod_LDFLAGS): Likewise.
7255 (date_mod_SOURCES): Likewise.
7256 (date_mod_CFLAGS): Likewise.
7257 (date_mod_LDFLAGS): Likewise.
7258 (datehook_mod_SOURCES): Likewise.
7259 (datehook_mod_CFLAGS): Likewise.
7260 (datehook_mod_LDFLAGS): Likewise.
7261 * conf/sparc64-ieee1275.rmk: Likewise.
7262 * lib/ieee1275/datetime.c: New file.
7263
873ccae6
VS
72642010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
7265
7266 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
7267 (ieee1275_fb_mod_SOURCES): New variable.
7268 (ieee1275_fb_mod_CFLAGS): Likewise.
7269 (ieee1275_fb_mod_LDFLAGS): Likewise.
7270 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
7271 New proto.
7272 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
7273 (HEAP_MAX_ADDR): Likewise.
7274 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
7275 type.
7276 Correct stop condition.
7277 (grub_ieee1275_devices_iterate): New function.
7278 * video/ieee1275.c: New file.
7279
601c97c0
VS
72802010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
7281
7282 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
7283
7284 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
7285 as scratch.
7286 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
7287 SCRATCH_PAD_DISKBOOT as scratch.
7288 (bootit): Pass Openfirmware pointer in %o4.
7289 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
7290 of 0x200000.
7291 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
7292 with util/grub-mkrawimage.c.
7293 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
7294 * include/grub/aout.h (AOUT_MID_SUN): New definition.
7295 (grub_aout_get_type) [GRUB_UTIL]: Removed.
7296 (grub_aout_load) [GRUB_UTIL]: Likewise.
7297 * include/grub/kernel.h (grub_modules_get_end): New proto.
7298 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
7299 (SCRATCH_PAD_BOOT): New definition.
7300 (SCRATCH_PAD_DISKBOOT): Likewise.
7301 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
7302 * include/grub/sparc64/ieee1275/ieee1275.h
7303 (grub_ieee1275_original_stack): New variable
7304 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
7305 New definition
7306 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
7307 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
7308 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
7309 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
7310 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
7311 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
7312 (grub_platform_image_format_t): New type.
7313 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
7314 * kern/main.c (grub_modules_get_end)
7315 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
7316 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
7317 (codestart): Switch stacks.
7318 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
7319 variable.
7320 (grub_heap_init): Use grub_modules_get_end.
7321 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
7322 stack.
7323 * util/grub-mkrawimage.c (generate_image): Support sparc64.
7324 (main): Likewise.
7325 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
7326
d68b491e
TG
73272010-03-14 Thorsten Glaser <tg@mirbsd.org>
7328
7329 * util/grub-mkrescue.in: Base ISO UUID on UTC.
7330
4e02ed50
MK
73312010-03-08 Matt Kraai <kraai@ftbfs.org>
7332
7333 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
7334 bug #559005).
7335
1f15fc1e
VS
73362010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
7337
7338 * genmoddep.awk: Output all missing symbols and not only first.
7339
fce5d8ff
VS
73402010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
7341
7342 * NEWS: Put the date of 1.98 release.
7343
d1e8a02f
VS
73442010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
7345
7346 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
7347 ft2build.h.
7348
696fd607
VS
73492010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
7350
7351 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
7352 completition in the middle of string.
7353
33e2e6f3
VS
73542010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
7355
7356 * util/grub-mkrescue.in: Use mktemp with explicit template.
7357
b1f6d291
VS
73582010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
7359
7360 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
7361
2ac227c7
VS
73622010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
7363
7364 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
7365 right pointer.
7366
8f9a632b
VS
73672010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
7368
7369 Fix FreeBSD compilation.
7370
7371 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
7372 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
7373
60b03859
VS
73742010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
7375
7376 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
7377
48a5a769
VS
73782010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
7379
7380 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
7381
3ab4bd77
VS
73822010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
7383
7384 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
7385
d116e0d8
RM
73862010-03-04 Robert Millan <rmh.grub@aybabtu.com>
7387
7388 Support relative image path in theme file.
7389
7390 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
7391 (image_set_property): Handle theme_dir and relative path.
7392
c7ef54aa
VS
73932010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
7394
7395 * configure.ac: Alias amd64 to x86_64.
7396
fcee14ed
VS
73972010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
7398
7399 * NEWS: mention multiboot on EFI.
7400
d0780363
VS
74012010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
7402
7403 * kern/main.c (grub_load_modules): Handle errors from init functions of
7404 embeded modules.
7405
41168ea4
VS
74062010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
7407
7408 * normal/autofs.c (autoload_fs_module): Handle errors.
7409
b54d93ac
VS
74102010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
7411
7412 Disable linux.mod on qemu-mips since it's not functional and leads
7413 to compilation failure.
7414
7415 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
7416 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
7417 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
7418 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
7419 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
7420 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
7421 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
7422 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
7423 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
7424 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
7425 Reported by: BVK Chaitanya
7426
fc8345da
JU
74272010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
7428
7429 * INSTALL: Add gettext as a dependency and add qemu to a new section
7430 "Prerequisites for make-check".
7431
4760f979
CF
74322010-03-04 Christian Franke <franke@computer.org>
7433
7434 * util/grub-pe2elf.c: Add missing include "progname.h".
7435
f209b5b2
VS
74362010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
7437
7438 * normal/crypto.c (read_crypto_list): Fix a typo.
7439 Reported by: Seth Goldberg.
7440
b4b7be98
VS
74412010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
7442
7443 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
f209b5b2 7444 Reported by: Seth Goldberg.
b4b7be98 7445
c0ee0385
VS
74462010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
7447
7448 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
7449 ascii.bitmaps.
7450
a8efbf64
VS
74512010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
7452
7453 * genmk.rb: Remove terminal*.lst in make clean.
f209b5b2 7454 Reported by: Seth Goldberg.
a8efbf64 7455
08dcd913
VS
74562010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
7457
7458 * util/i386/efi/grub-install.in: Copy gettext files.
7459
c4d0b332
VS
74602010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7461
7462 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
7463
c6f2fe52
VS
74642010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7465
7466 Wait for user entry basing on presence of output rather than on errors.
7467
7468 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
7469 (grub_install_newline_hook): Likewise.
7470 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
7471 * normal/menu.c (show_menu): Check line_counter to determine presence
7472 of output.
7473 * normal/term.c (grub_normal_line_counter): New variable.
7474 (grub_normal_get_line_counter): New function.
7475 (grub_install_newline_hook): Likewise.
7476
5382b1e4
VS
74772010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7478
7479 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
7480
5519963b
VS
74812010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7482
7483 * configure.ac: Update version to 1.98.
7484
72b28631
VS
74852010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7486
7487 * util/grub.d/10_linux.in (linux_entry): Don't default to
7488 gfxpayload=keep if Linux doesn't support video handover.
7489
c140a180
VS
74902010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
7491
7492 Don't compile video modules on yeeloong since video subsystem is part
7493 of kernel.
7494
7495 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
7496 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
7497 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
7498 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
7499 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
7500 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
7501 * include/grub/bitmap_scale.h: Likewise.
7502 * include/grub/bufio.h: Likewise.
7503 * include/grub/font.h: Likewise.
7504 * include/grub/gfxterm.h: Likewise.
7505 * include/grub/video.h: Likewise.
7506 * include/grub/vbe.h: Don't include video_fb.h.
7507 * video/i386/pc/vbe.c: Include video_fb.h.
7508 * commands/i386/pc/vbetest.c: Include video.h.
7509
a0ca21c2
CW
75102010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
7511
7512 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
7513 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
7514 default entry if GRUB_SAVEDEFAULT=true. This allows using
7515 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
7516 saving a new default on every boot.
7517
4a8a763c
VS
75182010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
7519
7520 * normal/crypto.c (read_crypto_list): Fix a memory leak.
7521 * normal/term.c (read_terminal_list): Likewise.
7522 * normal/main.c (grub_normal_init_page): Likewise.
7523 (grub_normal_read_line_real): Likewise.
7524
607ffde2
VS
75252010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
7526
7527 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
7528 memory leak.
7529 Reported by: Seth Goldberg.
7530
2b8fa975
CW
75312010-02-24 Joey Korkames <joey+lists@kidfixit.com>
7532
7533 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
7534 duplicate declaration of `start'.
7535
618307dd
VS
75362010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
7537
7538 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
7539 filename.
7540 Reported by: Georgy Buranov
7541
7dd05b96 75422010-02-20 Carles Pina i Estany <carles@pina.cat>
7543
7544 * util/grub-mkrawimage.c (usage): Change string formatting to
7545 improve gettext.
7546
d1484a42
MRA
75472010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
7548
7549 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
7550 backspace keys.
7551
42b1d186
VS
75522010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
7553
7554 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
7555 Reported by: Michael Suchanek.
7556
75572010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
0a39de87
ST
7558
7559 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
7560 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
7561
d9f31a41
VS
75622010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
7563
7564 Remove any reference to non-free fonts.
7565
7566 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
7567 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
7568 uses non-free components.
7569 * font/font.c (grub_font_get_name): Remove example name.
7570 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
7571 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
7572 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
7573 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
7574
2793c71e
GB
75752010-02-16 Georgy Buranov <gburanov@gmail.com>
7576
7577 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
7578
402e3779
VS
75792010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
7580
7581 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
7582 Double divisor.
7583 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
7584 features.
7585 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
7586
0dd1e0dd
VS
75872010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
7588
7589 * gensymlist.sh.in: Use TARGET_CC instead of CC.
7590
6fa7cfce
ST
75912010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
7592
7593 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
7594 * docs/grub.texi (Command-line and menu entry commands): Document play
7595 command.
7596
37c8483b
ST
75972010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
7598
7599 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
7600 parse arguments as inline tempo and notes. Move code for playing notes
7601 to...
7602 (play): ... new function.
7603
14da0fb7
ST
76042010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
7605
7606 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
7607 grub_uint16_t instead of short.
7608 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
7609 disk from little endian to cpu endianness.
7610
04459e70
ST
76112010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
7612
7613 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
7614 GRUB_TICKS_PER_SECOND instead of 120.
7615
a0876943
VS
76162010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
7617
7618 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
7619 escape sequence after \e.
7620
e29f95dc
VS
76212010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
7622
7623 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
7624 non-ASCII characters.
7625
d27859b2
VS
76262010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
7627
7628 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
7629 set root in single quotes to prevent \, from being unescaped.
7630
bc028f2f
VS
76312010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
7632
7633 Prevent unknown commands from stopping menuentry execution.
7634
7635 * script/execute.c (grub_script_execute_cmdline): Print error after
7636 unknown command.
7637
095f5f82
VS
76382010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
7639
7640 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
7641 Reported by: Pavel Pisa.
7642
8c717950
VS
76432010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
7644
7645 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
7646
904935c3
VS
76472010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
7648
7649 Merge grub_ieee1275_map_physical into grub_map and rename to
7650 grub_ieee1275_map
7651
7652 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
7653 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
7654 Remove.
7655 * kern/ieee1275/openfw.c (grub_map): Rename to ...
7656 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
7657 necessary.
7658 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
7659
5b59a4e3
VS
76602010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
7661
7662 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
7663 opening and not after.
7664
69e137e8
VS
76652010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
7666
7667 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
7668 constants.
7669
2c0fcc36
VS
76702010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
7671
7672 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
7673 (alloc_phys): Use ALIGN_UP instead of align_addr.
7674
8c6052ce
VS
76752010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
7676
7677 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
7678
17cec782
VS
76792010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
7680
7681 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
7682
e0128bbd
VS
76832010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
7684
7685 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
7686 verbose dprintf.
7687
ca62070b
VS
76882010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
7689
7690 Fix over-4GiB seek on sparc64.
7691
7692 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
7693 Replace pos_i and pos_lo with pos. All users updated.
7694 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
7695 New constant.
7696 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
7697 Likewise.
7698 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
7699 and pos_lo.
7700
bdca2607
VS
77012010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
7702
7703 * util/grub-mkrawimage.c (main): Call set_program_name.
7704
da278c4d
VS
77052010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
7706
7707 Properly align 64-bit targets.
7708
7709 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
7710 (generate_image): Use ALIGN_ADDR.
7711
b274d734
VS
77122010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
7713
7714 Properly create cross-endian images.
7715
7716 * include/grub/types.h (grub_host_to_target_addr): New macro
7717 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
7718
82da2062
VS
77192010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
7720
7721 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
7722
7cae4377
VS
77232010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7724
7725 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
7726
7727 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
7728 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
7729 (grub_linux_boot): Divide by 64K when on VESA.
7730
65a533e7
VS
77312010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7732
7733 Support GRUB_GFXPAYLOAD_LINUX.
7734
7735 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
7736 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
7737
dd01d397
VS
77382010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7739
7740 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
7741 to show messages instead of discarding them.
7742 Process errors after executing command and not before. Keep old method
7743 too as precaution.
7744
660960d6
VS
77452010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
7746
7747 * configure.ac: Check for ft2build.h.
7748
62509f04
VS
77492010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
7750
7751 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
7752
473df63d
VS
77532010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
7754
7755 * genkernsyms.sh.in: Use TARGET_CC.
7756
c98d2a13
CW
77572010-02-07 Colin Watson <cjwatson@ubuntu.com>
7758
7759 * NEWS: Update.
7760
6e14234c
VS
77612010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
7762
7763 * include/grub/multiboot2.h: Remove leftover file.
e28e32ae
VS
7764 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
7765 * include/grub/partition.h [GRUB_UTIL]: Likewise.
6e14234c 7766
b255e9cf
YB
77672010-02-07 Yves Blusseau <blusseau@zetam.org>
7768
6e14234c 7769 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
b255e9cf 7770
98e6959d
VS
77712010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
7772
7773 Fix warnings in grub-emu when compiling with maximum warning options.
7774
7775 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
7776 (grub_arch_modules_addr): Return 0 and not NULL.
7777 * util/misc.c (ENABLE_RELOCATABLE): New definition.
74e4934e 7778 (xstrdup): Use newstr instead of dup.
f88d801b
VS
7779 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
7780 of disk to dsk to avoid shadowing.
74e4934e
VS
7781 (find_free_slot): Fix prototype.
7782 * util/getroot.c (grub_util_is_dmraid): Make static.
7783 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
7784 Add missing prototype.
7785 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
98e6959d 7786
74e31b5c
VS
77872010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
7788
7789 * loader/i386/linux.c (grub_linux_setup_video): Handle error
7790 appropriately.
7791
6b2ad14b
VS
77922010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
7793
7794 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
7795 code out.
7796
8f891adc
VS
77972010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
7798
7799 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
7800 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
7801 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
7802 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
7803 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
7804 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
7805
74b45184
VS
78062010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
7807
7808 * include/grub/err.h (grub_err_printf): Don't export.
7809
a4bced77
VS
78102010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
7811
7812 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
7813
007d0695
VS
78142010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
7815
7816 * include/grub/i18n.h (grub_gettext_dummy): Removed.
7817 * kern/misc.c (grub_gettext_dummy): Make static.
7818
b6c0d9c2
VS
78192010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
7820
7821 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
7822 by non-valid ones.
7823 * kern/term.c (grub_putchar): Likewise.
7824
f51a90d0
VS
78252010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
7826
7827 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
7828 buggy hook call and memory leak.
7829
6846cec5
VS
78302010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
7831
7832 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
7833
468d69fe
VS
78342010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
7835
7836 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
7837
51906b8c
VS
78382010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
7839
7840 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
7841 modevar.
7842 Return grub_errno on allocation error.
7843
09706ce5
VS
78442010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
7845
7846 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
7847
911df80c
YB
78482010-02-06 Yves Blusseau <blusseau@zetam.org>
7849
7850 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
7851 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
7852
3746a6bc
VS
78532010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
7854
7855 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
7856 non-pxe disk.
7857 (grub_pxefs_open): Likewise.
7858
09706ce5
VS
78592010-02-06 Robert Millan <rmh.grub@aybabtu.com>
7860
7861 * util/grub.d/10_hurd.in: Add --class information to menuentries.
7862 * util/grub.d/10_kfreebsd.in: Likewise.
7863 * util/grub.d/10_linux.in: Likewise.
7864
7cc192d9
VS
78652010-02-06 Colin D Bennett <colin@gibibit.com>
7866
7867 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
7868 (gfxmenu_mod_SOURCES): New variable.
7869 (gfxmenu_mod_CFLAGS): Likewise.
7870 (gfxmenu_mod_LDFLAGS): Likewise.
7871 * include/grub/term.h (grub_term_set_current_output): Declare
7872 argument as const.
7873 * docs/gfxmenu-theme-example.txt: New file.
7874 * gfxmenu/gfxmenu.c: Likewise.
7875 * gfxmenu/gui_box.c: Likewise.
7876 * gfxmenu/gui_canvas.c: Likewise.
7877 * gfxmenu/gui_circular_progress.c: Likewise.
7878 * gfxmenu/gui_image.c: Likewise.
7879 * gfxmenu/gui_label.c: Likewise.
7880 * gfxmenu/gui_list.c: Likewise.
7881 * gfxmenu/gui_progress_bar.c: Likewise.
7882 * gfxmenu/gui_string_util.c: Likewise.
7883 * gfxmenu/gui_util.c: Likewise.
7884 * gfxmenu/icon_manager.c: Likewise.
7885 * gfxmenu/model.c: Likewise.
7886 * gfxmenu/named_colors.c: Likewise.
7887 * gfxmenu/theme_loader.c: Likewise.
7888 * gfxmenu/view.c: Likewise.
7889 * gfxmenu/widget-box.c: Likewise.
7890 * include/grub/gfxmenu_model.h: Likewise.
7891 * include/grub/gfxmenu_view.h: Likewise.
7892 * include/grub/gfxwidgets.h: Likewise.
7893 * include/grub/gui.h: Likewise.
7894 * include/grub/gui_string_util.h: Likewise.
7895 * include/grub/icon_manager.h: Likewise.
7896
78972010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
7898
7899 Agglomerate scrolling in gfxterm.
7900
7901 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
7902 (grub_virtual_screen_setup): Initialise 'total_screen'.
7903 (write_char): Split to ...
7904 (paint_char): ... this ...
7905 (write_char): ... and this.
7906 (paint_char): Handle delayed scrolling.
7907 (draw_cursor): Likewise.
7908 (scroll_up): Split to ...
7909 (real_scroll): ... this ...
7910 (scroll_up): ... and this.
7911 (real_scroll): Handle multi-line scroll and draw below-the-bottom
7912 characters.
7913 (grub_gfxterm_refresh): Call real_scroll.
7914
79152010-02-06 Colin D Bennett <colin@gibibit.com>
7916
7917 * include/grub/misc.h (grub_iscntrl): New inline function.
7918 (grub_isalnum): Likewise.
7919 (grub_strtol): Likewise.
7920
79212010-02-06 Colin D Bennett <colin@gibibit.com>
7922
7923 * normal/menu_text.c (get_entry_number): Move from here ...
7924 * normal/menu.c (get_entry_number): ... moved here.
7925 * include/grub/menu.h (grub_menu_get_default_entry_index):
7926 New prototype.
7927 * normal/menu.c (grub_menu_get_default_entry_index): New function.
7928 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
7929 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
7930 (grub_menu_viewer_should_return): Likewise.
7931 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
7932 * normal/menu_text.c (run_menu): Enable menu switching.
7933 * normal/menu_viewer.c (should_return): New variable.
7934 (menu_viewer_changed): Likewise.
7935 (grub_menu_viewer_show_menu): Handle menu viewer changes.
7936 (grub_menu_viewer_should_return): New function.
7937 (menuviewer_write_hook): Likewise.
7938 (grub_menu_viewer_init): Likewise.
7939
79402010-02-06 Colin D Bennet <colin@gibibit.com>
79412010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
7942
7943 Support for gfxterm in a window.
7944
7945 * include/grub/gfxterm.h: New file.
7946 * include/grub/video.h (struct grub_video_rect): New declaration.
7947 (grub_video_rect_t): Likewise.
7948 * term/gfxterm.c (struct grub_gfxterm_window): New type.
7949 (refcount): New variable.
7950 (render_target): Likewise.
7951 (window): Likewise.
7952 (repaint_callback): Likewise.
7953 (grub_virtual_screen_setup): Use 'render_target'.
7954 (init_window): New function.
7955 (grub_gfxterm_init_window): Likewise.
7956 (grub_gfxterm_init): Check reference counter.
7957 Use init_window.
7958 (destroy_window): New function.
7959 (grub_gfxterm_destroy_window): Likewise.
7960 (grub_gfxterm_fini): Check reference counter.
7961 Use destroy_window.
7962 (redraw_screen_rect): Restore viewport.
7963 Use 'render_target' and 'window'.
7964 Call 'repaint_callback'.
7965 (write_char): Use 'render_target'.
7966 (draw_cursor): Likewise.
7967 (scroll_up): Restore viewport.
7968 Use 'render_target' and 'window'.
7969 Call 'repaint_callback'.
7970 (grub_gfxterm_cls): Likewise.
7971 (grub_gfxterm_refresh): Use 'window'.
7972 (grub_gfxterm_set_repaint_callback): New function.
7973 (grub_gfxterm_background_image_cmd): Use 'window'.
7974 (grub_gfxterm_get_term): New function.
7975 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
7976
79772010-02-06 Colin D Bennett <colin@gibibit.com>
7978
7979 Bitmap scaling support.
7980
7981 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
7982 (bitmap_scale_mod_SOURCES): New variable.
7983 (bitmap_scale_mod_CFLAGS): Likewise.
7984 (bitmap_scale_mod_LDFLAGS): Likewise.
7985 * include/grub/bitmap_scale.h: New file.
7986 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
7987 (background_image_cmd_options): New variable.
7988 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
7989 (cmd): Rename and change type to ...
7990 (background_image_cmd_handle): ... this. All users updated.
7991 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
7992 * video/bitmap_scale.c: New file.
7993
79942010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
7995
7996 SDL support.
7997
7998 * Makefile.in (LIBSDL): New variable.
7999 (enable_grub_emu_sdl): Likewise.
8000 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
8001 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
8002 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
8003 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
8004 * util/sdl.c: New file.
8005
80062010-02-06 Colin D Bennett <colin@gibibit.com>
80072010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
8008
8009 Double buffering support.
8010
8011 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
8012 * include/grub/video.h: Update comment.
8013 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
8014 New type.
8015 (grub_video_fb_doublebuf_blit_init): New prototype.
8016 * term/gfxterm.c (scroll_up): Support double buffering.
8017 (grub_gfxterm_refresh): Likewise.
8018 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
8019 (grub_video_fb_doublebuf_blit_init): Likewise.
8020 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
8021 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
8022 'displayed_page', 'render_page' and 'update_screen'.
8023 (grub_video_vbe_fini): Free offscreen buffer.
8024 (doublebuf_pageflipping_commit): New function.
8025 (doublebuf_pageflipping_update_screen): Likewise.
8026 (doublebuf_pageflipping_init): Likewise.
8027 (double_buffering_init): Likewise.
8028 (grub_video_vbe_setup): Enable doublebuffering.
8029 (grub_video_vbe_swap_buffers): Implement.
8030 (grub_video_vbe_set_active_render_target): Handle double buffering.
8031 (grub_video_vbe_get_active_render_target): Likewise.
8032 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
8033 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
8034 (grub_video_vbe_enable_double_buffering): Likewise.
8035 (grub_video_vbe_swap_buffers): Use update_screen.
8036 (grub_video_set_mode): Use double buffering.
8037
80382010-02-06 Robert Millan <rmh.grub@aybabtu.com>
8039
8040 * maintainance/gentrigtables.py: Remove.
8041 * lib/trig.c: Likewise.
8042
8043 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
8044
8045 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
8046 `trigtables.c'.
8047 (trigtables.c): New rule.
8048 (gentrigtables): Likewise.
8049 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
8050
80512010-02-06 Robert Millan <rmh.grub@aybabtu.com>
8052
8053 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
8054 integer constants.
8055
80562010-02-06 Colin D Bennet <colin@gibibit.com>
8057
8058 Trigonometry support.
8059
8060 * include/grub/trig.h: New file.
8061 * lib/trig.c: Likewise.
8062 * maintainance/gentrigtables.py: Likewise.
8063 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
8064 (trig_mod_SOURCES): New variable.
8065 (trig_mod_CFLAGS): Likewise.
8066 (trig_mod_LDFLAGS): Likewise.
8067
5562834e
VS
80682010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
8069
8070 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
8071 disk devices.
8072
4f8528fc
VS
80732010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
8074
8075 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
8076 error.
8077
2b4068e9
VS
80782010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
8079
8080 * util/hostdisk.c (open_device): Don't use partition device when reading
8081 before the partition.
8082 (grub_util_biosdisk_read): Don't read from partition and before the
8083 partition in single operation.
8084 (grub_util_biosdisk_write): Don't write to partition and before the
8085 partition in single operation.
8086
399f6e4d
TL
80872010-02-03 Torsten Landschoff <torsten@debian.org>
8088
8089 * kern/disk.c (grub_disk_read): Fix offset computation when reading
8090 last sectors.
8091
996649b0
VS
80922010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
8093
8094 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
8095 CDROM reads.
8096 (grub_biosdisk_write): Refuse to write to CDROM.
8097
3b205d4d
VS
80982010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
8099
8100 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
8101
61e89d9d
VS
81022010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
8103
8104 * font/font.c (find_glyph): Check that bmp_idx is available before
8105 using it.
8106 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
8107 with (font == NULL).
8108
bf7fcba2
CS
81092010-01-28 Christian Schmitt <chris@ilovelinux.de>
8110
8111 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
8112
f45d2663
BC
81132010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
8114
8115 * include/grub/script_sh.h (sourcecode): Add const qualifier.
8116 * util/grub-script-check.c (getline): Fix empty lines case.
8117
ec1444e6
RM
81182010-01-28 Robert Millan <rmh.grub@aybabtu.com>
8119
8120 * Makefile.in (check): Exit with fail status when one of the tests
8121 fails.
8122 * tests/example_functional_test.c (example_test): Fix reversed assert.
8123 * tests/example_unit_test.c (example_test): Likewise.
8124
2e1cb9bb
CW
81252010-01-28 Colin Watson <cjwatson@ubuntu.com>
8126
8127 * util/grub.d/10_linux.in: This script does not use any of the
8128 contents of gettext.sh, only the external command `gettext', so stop
8129 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
8130 the same prefix as GRUB.)
8131 * util/grub.d/10_kfreebsd.in: Likewise.
8132
63533ab0
VS
81332010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
8134
8135 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
8136 of the line.
8137
989e1f93
VS
81382010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
8139
8140 * kern/disk.c (grub_disk_read): Fix offset computation when reading
8141 last sectors.
8142
e709ebe2
VS
81432010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
8144
8145 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
8146 having a 4KiB and not 32KiB buffer size.
8147
27dea7ed
RM
81482010-01-27 Robert Millan <rmh.grub@aybabtu.com>
8149
8150 * util/hostfs.c: Include `<errno.h>'.
8151 (grub_hostfs_read): Handle errors from fseeko() and fread().
8152
67667b9c
RM
81532010-01-27 Robert Millan <rmh.grub@aybabtu.com>
8154
8155 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
8156 loop when using read hooks on files whose size isn't sector-aligned.
8157
c294d9d8
RM
81582010-01-27 Robert Millan <rmh.grub@aybabtu.com>
8159
8160 Remove unused parameter.
8161
8162 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
8163 (grub_iso9660_open): Remove initialization of `data->length'.
8164
af75a9f1
RM
81652010-01-27 Robert Millan <rmh.grub@aybabtu.com>
8166
8167 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
8168 memleak conditions.
8169
254e2ce5 81702010-01-27 Carles Pina i Estany <carles@pina.cat>
8171
8172 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
8173 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
8174
b510928c 81752010-01-26 Carles Pina i Estany <carles@pina.cat>
8176
8177 * util/bin2h.c (usage): Fix warning (space after backslash).
8178
aa2f9dd2 81792010-01-26 Carles Pina i Estany <carles@pina.cat>
de0b7a4e 8180
8181 * font/font.c: Include `grub/fontformat.h.
8182 Remove font file format constants.
8183 (grub_font_load): Use the new macros.
8184 * include/grub/fontformat.h: New file.
8185 * util/grub-mkfont.c: Include `grub/fontformat.c'.
8186 (write_font_pf2): Use the new macros.
8187
94e7e712
RM
81882010-01-26 Robert Millan <rmh.grub@aybabtu.com>
8189
8190 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
8191 does.
8192
3973a59a
RM
81932010-01-26 Robert Millan <rmh.grub@aybabtu.com>
8194
8195 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
8196
8197 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
8198 (_start): Macroify `0x7F'.
8199
8200 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
8201 (make_install_device): Use "(pxe)" as fallback prefix when booting
8202 via PXE.
8203
42e0cba3
GS
82042010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
8205
8206 * configure.ac: Reset LIBS after check for libgcc symbols.
8207
847effd8
CW
82082010-01-25 Colin Watson <cjwatson@ubuntu.com>
8209
8210 * util/hostdisk.c (open_device): Add trailing newline to debug
8211 message.
8212
ea4a7e35
GS
82132010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
8214
8215 * configure.ac: Check for `limits.h'.
8216 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
8217
67951a53
RM
82182010-01-24 Robert Millan <rmh.grub@aybabtu.com>
8219
8220 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
8221 capitalize error strings.
8222
c273d4ce
ST
82232010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
8224
8225 * util/grub.d/10_hurd.in: Add a recovery mode.
8226
69be5b74
VS
82272010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
8228
8229 * configure.ac: Check for libgcc symbols with -nostdlib.
8230
fc9e5810
BC
82312010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
8232
8233 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
8234
4b358c0a
VS
82352010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
8236
8237 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
8238 stack since heap may be unavailable at that point.
8239 (grub_ofconsole_gotoxy): Likewise.
8240
454fcd1c
VS
82412010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
8242
8243 * configure.ac: Check for _restgpr_14_x.
8244 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
8245 and _savegpr_* prototypes.
8246
566863ca
RM
82472010-01-22 Robert Millan <rmh.grub@aybabtu.com>
8248
8249 Use generic grub_reboot() for i386-efi.
8250
8251 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
8252 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
8253 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
8254
bf86e59a
VS
82552010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
8256
8257 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
8258 presence of "prefix" variable as it breaks when normal.mod is
8259 embedded.
8260
d645e0f8
VS
82612010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
8262
8263 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
8264 stack since heap is unavailable at that point.
8265
f9ab2e25
VS
82662010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
8267
8268 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
8269 (grub_freebsd_bootinfo): Rewritten.
8270 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
8271
01fc7054
VS
82722010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
8273
8274 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
8275
caab4fd6
RM
82762010-01-21 Robert Millan <rmh.grub@aybabtu.com>
8277
8278 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
8279 domain now.
8280
67eb1427
FZ
82812010-01-20 Felix Zielcke <fzielcke@z-51.de>
8282
8283 * util/misc.c (make_system_path_relative_to_its_root): Change the work
8284 around for handling "/" to the correct fix. Fix a memory leak. Use
8285 xstrdup instead of strdup.
8286
a9ed4ff3
VS
82872010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
8288
8289 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
8290
82912010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
bed35bda
VS
8292
8293 Optimise glyph lookup by Basic Multilingual Plane lookup array.
8294
8295 * font/font.c (struct grub_font): New member 'bmp_idx'.
8296 (font_init): Initialise 'bmp_idx'.
8297 (load_font_index): Fill 'bmp_idx'.
8298 (find_glyph): Make inline. Use bmp_idx for BMP characters.
8299
48209f4f
VS
83002010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
8301
8302 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
8303 unnecessary calls.
8304
9f0a4bb7
VS
83052010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
8306
8307 Move context handling out of the kernel.
8308
8309 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
8310 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
8311 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
8312 * conf/i386-efi.rmk: Likewise.
8313 * conf/i386-ieee1275.rmk: Likewise.
8314 * conf/i386-pc.rmk: Likewise.
8315 * conf/powerpc-ieee1275.rmk: Likewise.
8316 * conf/sparc64-ieee1275.rmk: Likewise.
8317 * conf/x86_64-efi.rmk: Likewise.
8318 * include/grub/env.h: Include grub/menu.h.
8319 (grub_env_var_type): Removed.
8320 (grub_env_var): Replaced field 'type' with 'global'.
8321 (grub_env_find): New prototype.
8322 (grub_env_context_open): Remove EXPORT_FUNC.
8323 (grub_env_context_close): Likewise.
8324 (grub_env_export): Likewise.
8325 (grub_env_set_data_slot): Removed.
8326 (grub_env_get_data_slot): Likewise.
8327 (grub_env_unset_data_slot): Likewise.
8328 (grub_env_unset_menu): New prototype.
8329 (grub_env_set_menu): Likewise.
8330 (grub_env_get_menu): Likewise.
8331 * include/grub/env_private.h: New file.
8332 * include/grub/normal.h (grub_context_init): New prototype.
8333 (grub_context_fini): Likewise.
8334 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
8335 * normal/context.c (grub_cmd_export): ... to here.
8336 * kern/env.c: Include env_private.h.
8337 (HASHSZ): Moved to include/grub/env_private.h.
8338 (grub_env_context): Likewise.
8339 (grub_env_sorted_var): Likewise.
8340 (current_context): Renamed from this ...
8341 (grub_current_context): ...to this. 'static' removed. All users updated.
8342 (grub_env_find): Removed 'static'.
8343 (grub_env_context_open): Moved to normal/context.c.
8344 (grub_env_context_close): Likewise.
8345 (grub_env_export): Likewise.
8346 (mangle_data_slot_name): Removed.
8347 (grub_env_set_data_slot): Likewise.
8348 (grub_env_get_data_slot): Likewise.
8349 (grub_env_unset_data_slot): Likewise.
8350 * kern/main.c (grub_set_root_dev): Don't export root.
8351 It will be done later.
8352 (grub_main): Don't export prefix.
8353 It will be done later.
8354 * normal/context.c: New file.
8355 * normal/main.c (free_menu): Use grub_env_unset_menu.
8356 (grub_normal_add_menu_entry): Use grub_env_get_menu.
8357 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
8358 (GRUB_MOD_INIT(normal)): Call grub_context_init.
8359 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
8360
8dd35b8c
VS
83612010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
8362
8363 setpci support.
8364
8365 * commands/setpci.c: New file.
8366 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
8367 (setpci_mod_SOURCES): New variable.
8368 (setpci_mod_CFLAGS): Likewise.
8369 (setpci_mod_LDFLAGS): Likewise.
8370
449193d5
VS
83712010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
8372
8373 Byte-addressable PCI configuration space.
8374
8375 * bus/pci.c (grub_pci_make_address): Use byte address instead of
8376 dword address.
8377 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
8378 GRUB_PCI_REG_CACHELINE.
8379 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
8380 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
8381 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
8382 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
8383 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
8384 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
8385 grub_pci_make_address.
8386 (lock_rom_area): Likewise.
8387 * commands/lspci.c (grub_lspci_iter): Use macroses
8388 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
8389 of grub_pci_make_address.
8390 * disk/ata.c (grub_ata_pciinit): Likewise.
8391 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
8392 (GRUB_PCI_REG_VENDOR): Likewise.
8393 (GRUB_PCI_REG_DEVICE): Likewise.
8394 (GRUB_PCI_REG_COMMAND): Likewise.
8395 (GRUB_PCI_REG_STATUS): Likewise.
8396 (GRUB_PCI_REG_REVISION): Likewise.
8397 (GRUB_PCI_REG_CLASS): Likewise.
8398 (GRUB_PCI_REG_CACHELINE): Likewise.
8399 (GRUB_PCI_REG_LAT_TIMER): Likewise.
8400 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
8401 (GRUB_PCI_REG_BIST): Likewise.
8402 (GRUB_PCI_REG_ADDRESSES): Likewise.
8403 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
8404 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
8405 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
8406 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
8407 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
8408 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
8409 (GRUB_PCI_REG_CIS_POINTER): Likewise.
8410 (GRUB_PCI_REG_SUBVENDOR): Likewise.
8411 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
8412 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
8413 (GRUB_PCI_REG_CAP_POINTER): Likewise.
8414 (GRUB_PCI_REG_IRQ_LINE): Likewise.
8415 (GRUB_PCI_REG_IRQ_PIN): Likewise.
8416 (GRUB_PCI_REG_MIN_GNT): Likewise.
8417 (GRUB_PCI_REG_MAX_LAT): Likewise.
8418 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
8419 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
8420 * video/efi_uga.c (find_framebuf): Likewise.
fdb1b2ea 8421 * video/sm712.c (grub_video_sm712_setup): Likewise.
449193d5
VS
8422 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
8423 space.
8424
96d73208
RM
84252010-01-20 Robert Millan <rmh.grub@aybabtu.com>
8426
8427 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
8428 can be reliably determined to be supported.
8429
d4484482
RM
84302010-01-20 Robert Millan <rmh.grub@aybabtu.com>
8431
8432 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
8433 that VESA is supported.
8434 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
8435 supported.
8436
00308ecf
VS
84372010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
8438
8439 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
8440
f66924a4
RM
84412010-01-20 Robert Millan <rmh.grub@aybabtu.com>
8442
8443 * util/misc.c (make_system_path_relative_to_its_root): Work around
8444 special-casing of "/", as previous incarnation of this routine did.
8445
cbca0ada
VS
84462010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
8447
8448 Fix any-emu compilation.
8449
8450 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
8451 * grub_bin2h_SOURCES: New variable.
8452
34a66d99
RM
84532010-01-20 Robert Millan <rmh.grub@aybabtu.com>
8454
8455 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
8456
94fabf58
RM
84572010-01-20 Robert Millan <rmh.grub@aybabtu.com>
8458
8459 * util/grub.d/00_header.in: Fix handling of locale_dir.
8460
02cf98ca
VS
84612010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
8462
8463 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
8464 as possible unifont location (Gentoo).
8465 Reported by: Alexander Brüning
8466
327dbcd7
VS
84672010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
8468
8469 Don't try to generate lists for kernel.img.
8470
8471 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
8472 (pkglib_MODULES): Remove kernel.img.
8473 (kernel_img_EXPORTS): Removed.
8474 (kernel_img_RELOCATABLE): New variable.
8475 * conf/x86_64-efi.rmk: Likewise.
8476 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
8477
ca467290
VS
84782010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
8479
8480 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
8481 grub_xasprintf or grub_snprintf.
8482 (grub_vsprintf): Likewise.
8483 (grub_snprintf): New proto.
8484 (grub_vsnprintf): Likewise.
8485 (grub_xasprintf): Likewise.
8486 (grub_xvasprintf): Likewise.
8487 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
8488 (grub_sprintf): Removed.
8489 (grub_vsnprintf): New function.
8490 (grub_snprintf): Likewise.
8491 (grub_xvasprintf): Likewise.
8492 (grub_xasprintf): Likewise.
8493 (grub_vsprintf): Renamed to ...
8494 (grub_vsnprintf_real): ...this. New argument max_len.
8495
aca655fd
BC
84962010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
8497
8498 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
8499 fix grub-script-check warning.
8500
7ee92c32
VS
85012010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
8502
8503 * include/grub/font.h (grub_font_load): Fix prototype.
8504
f80927ca
VS
85052010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
8506
8507 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
8508
119c50ea
VS
85092010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
8510
8511 * include/grub/x86_64/at_keyboard.h: New file.
8512
47d5f3c1
VS
85132010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
8514
8515 * loader/mips/linux.c: Include missing grub/i18n.h.
8516
55ff5266
RM
85172009-12-20 Robert Millan <rmh.grub@aybabtu.com>
8518
8519 * normal/menu.c (notify_execution_failure): Clarify error message.
8520
c893cc87
RM
85212009-12-20 Robert Millan <rmh.grub@aybabtu.com>
8522
8523 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
8524 return value (and revert all return statements). Update users.
8525
917dd370
CW
85262010-01-20 Dan Merillat <debian@dan.merillat.org>
8527
8528 * kern/device.c (grub_device_iterate): Allocate new part_ent
8529 structure based on sizeof (*p) rather than sizeof (p->next), to
8530 account for structure padding.
8531
8532 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
8533 disk is NULL, which might happen for LVM physical volumes with no
8534 LVM signature.
8535
d4a4ee57
RM
85362009-12-20 Robert Millan <rmh.grub@aybabtu.com>
8537
8538 * loader/mips/linux.c (grub_cmd_initrd)
8539 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
8540
85412009-12-20 Robert Millan <rmh.grub@aybabtu.com>
8542
8543 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
8544 (grub_video_video_init, grub_video_bitmap_init)
8545 (grub_font_manager_init, grub_term_gfxterm_init)
8546 (grub_at_keyboard_init): New extern declarations.
8547 (grub_machine_init): Initialize gfxterm and at_keyboard.
8548
8549 * kern/main.c (grub_main): Revert grub_printf delay kludge.
8550
8551 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
8552 `gfxterm.mod' into core image.
8553
8554 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
8555 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
8556 (kernel_img_FORMAT): Copy to ...
8557
8558 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
8559 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
8560 (kernel_img_FORMAT): ... here, and ...
8561
8562 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
8563 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
8564 (kernel_img_FORMAT): ... here.
8565
8566 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
8567 and input (at_keyboard) terminals in kernel.
8568 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
8569
8570 (pkglib_MODULES): Remove `pci.mod'.
8571 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
8572 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
8573 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
8574 (at_keyboard_mod_LDFLAGS): Remove variables.
8575
85762010-01-11 Felix Zielcke <fzielcke@z-51.de>
8577
8578 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
8579
85802009-12-10 Robert Millan <rmh.grub@aybabtu.com>
8581
8582 * include/grub/mips/libgcc.h: Only export symbols for functions
8583 that libgcc provides.
8584
85852009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
8586
8587 MIPS support.
8588
8589 * bus/bonito.c: New file.
8590 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
8591 GRUB_PCI_NUM_DEVICES.
8592 * term/i386/pc/serial.c: Move to ...
8593 * term/serial.c: ... here. All users updated.
8594 * util/i386/pc/grub-mkimage.c: Move to ...
8595 * util/grub-mkrawimage.c: ... here. All users updated.
8596 * term/i386/pc/at_keyboard.c: Move to ...
8597 * term/at_keyboard.c: ... here. All users updated.
8598 * conf/mips-qemu-mips.rmk: New file.
8599 * conf/mips-yeeloong.rmk: Likewise.
8600 * conf/mips.rmk: Likewise.
8601 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
8602 mipsel-qemu-mips.
8603 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
8604 to port addresses.
8605 (grub_ata_pciinit): Support CS5536.
8606 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
8607 * font/font_cmd.c (loadfont_command): Open file before passing it to
8608 grub_font_load.
8609 (pseudo_file_read): New function.
8610 (pseudo_file_close): Likewise.
8611 (pseudo_fs): New structure.
8612 (load_font_module): New function.
8613 (GRUB_MOD_INIT(font_manager)): Load embedded font.
8614 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
8615 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
8616 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
8617 * include/grub/i386/at_keyboard.h: Split into ...
8618 * include/grub/at_keyboard.h: ... this ...
8619 * include/grub/i386/at_keyboard.h: ... and this.
8620 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
8621 New prototype.
8622 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
8623 updated.
8624 (grub_elf64_size): Likewise.
8625 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
8626 filename.
8627 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
8628 * include/grub/i386/coreboot/serial.h: Rewritten.
8629 * include/grub/i386/ieee1275/serial.h: Include
8630 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
8631 * include/grub/i386/pc/serial.h: Moved from here ...
8632 * include/grub/serial.h: ... to here. All users updated.
8633 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
8634 (GRUB_PCI_NUM_BUS): Likewise.
8635 (GRUB_PCI_NUM_DEVICES): Likewise.
8636 (grub_pci_device_map_range): Add missing volatile keyword.
8637 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
8638 * include/grub/mips/at_keyboard.h: New file.
8639 * include/grub/mips/cache.h: Likewise.
8640 * include/grub/mips/io.h: Likewise.
8641 * include/grub/mips/kernel.h: Likewise.
8642 * include/grub/mips/libgcc.h: Likewise.
8643 * include/grub/mips/pci.h: Likewise.
8644 * include/grub/mips/qemu-mips/boot.h: Likewise.
8645 * include/grub/mips/qemu-mips/kernel.h: Likewise.
8646 * include/grub/mips/qemu-mips/loader.h: Likewise.
8647 * include/grub/mips/qemu-mips/memory.h: Likewise.
8648 * include/grub/mips/qemu-mips/serial.h: Likewise.
8649 * include/grub/mips/qemu-mips/time.h: Likewise.
8650 * include/grub/mips/relocator.h: Likewise.
8651 * include/grub/mips/time.h: Likewise.
8652 * include/grub/mips/types.h: Likewise.
8653 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
8654 * include/grub/mips/yeeloong/boot.h: Likewise.
8655 * include/grub/mips/yeeloong/kernel.h: Likewise.
8656 * include/grub/mips/yeeloong/loader.h: Likewise.
8657 * include/grub/mips/yeeloong/memory.h: Likewise.
8658 * include/grub/mips/yeeloong/pci.h: Likewise.
8659 * include/grub/mips/yeeloong/serial.h: Likewise.
8660 * include/grub/mips/yeeloong/time.h: Likewise.
8661 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
8662 * kern/elf.c (grub_elf32_size): New parameter. All users
8663 updated.
8664 (grub_elf64_size): Likewise.
8665 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
8666 Load modules before saying "Welcome to GRUB!".
8667 Call grub_refresh after saying "Welcome to GRUB!".
8668 * kern/mips/cache.S: New file.
8669 * kern/mips/cache_flush.S: Likewise.
8670 * kern/mips/dl.c: Likewise.
8671 * kern/mips/init.c: Likewise.
8672 * kern/mips/qemu-mips/init.c: Likewise.
8673 * kern/mips/startup.S: Likewise.
8674 * kern/mips/yeeloong/init.c: Likewise.
8675 * kern/term.c (grub_putcode): Handle NULL terminal.
8676 (grub_getcharwidth): Likewise.
8677 (grub_getkey): Likewise.
8678 (grub_checkkey): Likewise.
8679 (grub_getkeystatus): Likewise.
8680 (grub_getxy): Likewise.
8681 (grub_getwh): Likewise.
8682 (grub_gotoxy): Likewise.
8683 (grub_cls): Likewise.
8684 (grub_setcolorstate): Likewise.
8685 (grub_setcolor): Likewise.
8686 (grub_getcolor): Likewise.
8687 (grub_refresh): Likewise.
8688 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
8689 (write_jump): Add hatch nop.
8690 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
8691 * lib/mips/setjmp.S: New file.
8692 * loader/mips/linux.c: Likewise.
8693 * term/i386/pc/at_keyboard.c: Move from here ...
8694 * term/at_keyboard.c: ... to here.
8695 * term/i386/pc/serial.c: Moved from here ...
8696 * term/serial.c: ... to here. All users updated.
8697 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
8698 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
8699 (serial_translate_key_sequence): Avoid deadlock.
8700 (grub_serial_getkey): Handle backspace.
8701 (grub_serial_putchar): Fix newline handling.
8702 * util/i386/pc/grub-mkimage.c: Move from here ...
8703 * util/grub-mkrawimage.c: ... to here. All users updated.
8704 (generate_image): New parameters 'font_path' and 'format'.
8705 Support embedding font.
8706 Use grub_host_to_target* instead of grub_cpu_to_le*.
8707 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
8708 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
8709 (options): New option "--font".
8710 (usage): Likewise.
8711 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
8712 (main): Handle "--font".
8713 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
8714 (grub_virtual_screen_setup): Set bg_color_display.
8715 (redraw_screen_rect): Use bg_color_display instead of incorrect
8716 bg_color.
8717 (grub_gfxterm_cls): Likewise.
8718 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
8719 Support embedding config file.
8720 (add_segments): Likewise.
8721 (options): New option "--config".
8722 (main): Handle "--config".
8723 * video/sm712.c: New file.
8724
25c2b5b3
RM
87252010-01-18 Robert Millan <rmh.grub@aybabtu.com>
8726
8727 Fix parallel builds.
8728
8729 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
8730 font.c depend on ascii.h).
8731
87322010-01-12 Carles Pina i Estany <carles@pina.cat>
8733
8734 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
8735
87362010-01-11 Carles Pina i Estany <carles@pina.cat>
8737
8738 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
8739 By default: disabled.
8740 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
8741 parameter.
8742
87432010-01-10 Carles Pina i Estany <carles@pina.cat>
8744
8745 * font/font.c: Update copyright years.
8746 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
8747
87482010-01-10 Carles Pina i Estany <carles@pina.cat>
8749
8750 * font/font.c: Include `ascii.h'.
8751 (ASCII_BITMAP_SIZE): New macro.
8752 (ascii_font_glyph): Define.
8753 (ascii_glyph_lookup): New function.
8754 (grub_font_get_string_width): Change comment. If glyph not found, use
8755 ascii_glyph_lookup.
8756 (grub_font_get_glyph_with_fallback): If glyph not available returns
8757 ascii_glyph_lookup.
8758 * util/grub-mkfont.c (file_formats): New enum.
8759 (options): Add `ascii-bitmaps' new option.
8760 (usage): Add `asii-bitmaps' new option.
8761 (write_font_ascii_bitmap): New function.
8762 (write_font): Rename to ...
8763 (write_font_p2): ... this. Remove print_glyphs call.
8764 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
8765 used. Call print_glyphs.
8766 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
8767
87682010-01-14 Robert Millan <rmh.grub@aybabtu.com>
8769
8770 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
8771 (grub_bin2h_SOURCES): New variable.
8772 * util/bin2h.c: New file.
8773
915fc1b8
VS
87742010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
8775
8776 * include/multiboot.h: Resynced with spec.
8777 * include/multiboot2.h: Likewise.
8778 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
8779 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
8780
9444b678
RM
87812010-01-18 Robert Millan <rmh.grub@aybabtu.com>
8782
8783 * include/grub/term.h (grub_term_register_input,
8784 grub_term_register_output): Check return of terminal init()
8785 routines, and abort if errors are raised.
8786
8787 * commands/terminal.c: Update copyright year.
8788
cba98e8d
RM
87892010-01-18 Robert Millan <rmh.grub@aybabtu.com>
8790
8791 * commands/terminal.c (grub_cmd_terminal_input)
8792 (grub_cmd_terminal_output): Check return of terminal init()
8793 routines, and abort if errors are raised.
8794
6f7db5d6
VS
87952010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
8796
8797 * include/grub/i386/bsd.h: Fix include pathes.
8798
262bff8d
VS
87992010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
8800
8801 Add missing *BSD copyright headers.
8802
8803 * include/grub/aout.h: Add BSD licence.
8804 * include/grub/i386/bsd.h: Parts under different licences moved to ...
8805 * include/grub/i386/freebsd_linker.h: ... here,
8806 * include/grub/i386/freebsd_reboot.h: ... here,
8807 * include/grub/i386/netbsd_bootinfo.h: ... here,
8808 * include/grub/i386/netbsd_reboot.h: ... here,
8809 * include/grub/i386/openbsd_bootarg.h: ... here,
8810 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
8811 licence to each file.
8812
b2cab848
RM
88132010-01-18 Robert Millan <rmh.grub@aybabtu.com>
8814
8815 * acinclude.m4: Remove `nop' assembly instruction; it's not
8816 implemented by all architectures.
8817
2cb6be4b
RM
88182010-01-18 Robert Millan <rmh.grub@aybabtu.com>
8819
8820 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
8821 ELILO. This is no longer necessary.
8822
a2eaee15
BC
88232010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
8824
8825 Added new tool, grub-scrit-check to verify grub.cfg syntax.
8826
8827 * util/grub-script-check.c: grub-script-check tool.
8828 * conf/common.rmk: Make rules for grub-script-check.
8829
88d17012
RM
88302010-01-18 Robert Millan <rmh.grub@aybabtu.com>
8831
8832 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
8833 spotting it back in 2008. Shame on me for forgetting he did.
8834
8835 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
8836
8040619d
RM
88372010-01-18 Robert Millan <rmh.grub@aybabtu.com>
8838
8839 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
8840 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
8841 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
8842 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
8843 (GRUB_VIDEO_TYPE_EFI): Rename to ...
8844 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
8845
a0c2a0f6
RM
88462010-01-17 Robert Millan <rmh.grub@aybabtu.com>
8847
8848 * include/grub/test.h: Add license header.
8849 * tests/example_functional_test.c: Likewise.
8850 * tests/example_unit_test.c: Likewise.
8851 * tests/lib/functional_test.c: Likewise.
8852 * tests/lib/test.c: Likewise.
8853 * tests/lib/unit_test.c: Likewise.
8854
b0b13907
VS
88552010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
8856
8857 Use flag-based instead of hook-based video mode selection and "auto"
8858 keyword.
8859
8860 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
8861 (grub_video_set_mode): Changed prototype. All users updated.
8862 (grub_video_check_mode_flag): New inline function.
8863 * video/video.c (parse_modespec): New function.
8864 (grub_video_set_mode): Parse flags and keywords.
8865
ea379330 88662010-01-17 Carles Pina i Estany <carles@pina.cat>
8867
8868 * util/misc.c (grub_util_info): Fix the order of the parameters in a
8869 fprintf call.
8870
e15c215e
FZ
88712010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
8872
8873 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
8874
409ae1c9 88752010-01-16 Carles Pina i Estany <carles@pina.cat>
8876
8877 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
8878 string.
8879 * util/grub-emu.c (usage): Likewise.
8880 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
8881 * util/i386/efi/grub-mkimage.c (usage): Likewise.
8882 * util/i386/pc/grub-mkimage.c (usage): Likewise.
8883 * util/i386/pc/grub-setup.c (usage): Likewise.
8884
70a14d3d 88852010-01-16 Carles Pina i Estany <carles@pina.cat>
8886
8887 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
8888 the message.
8889 (grub_util_info): Likewise.
8890 (grub_util_error): Likewise.
8891 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
8892 and/or new lines in `grub_util_warna', `grub_util_info',
8893 `grub_util_error' calls.
8894 * util/getroot.c: Likewise.
8895 * util/grub-editenv.c: Likewise.
8896 * util/grub-emu.c: Likewise.
8897 * util/grub-fstest.c: Likewise.
8898 * util/grub-mkdevicemap.c: Likewise.
8899 * util/grub-mkfont.c: Likewise.
8900 * util/grub-mkpasswd-pbkdf2.c: Likewise.
8901 * util/grub-mkrelpath.c: Likewise.
8902 * util/grub-pe2elf.c: Likewise.
8903 * util/grub-probe.c: Likewise.
8904 * util/hostdisk.c: Likewise.
8905 * util/i386/efi/grub-mkimage.c: Likewise.
8906 * util/i386/pc/grub-mkimage.c: Likewise.
8907 * util/i386/pc/grub-setup.c: Likewise.
8908 * util/ieee1275/ofpath.c: Likewise.
8909 * util/mkisofs/eltorito.c: Likewise.
8910 * util/mkisofs/rock.c: Likewise.
8911 * util/mkisofs/write.c: Likewise.
8912 * util/raid.c: Likewise.
8913 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
8914 * util/sparc64/ieee1275/grub-setup.c: Likewise.
8915
a0b766fc
VS
89162010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
8917
8918 Enable multiboot on non-pc.
8919
8920 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
8921 multiboot.mod and multiboot2.mod to ...
8922 * conf/i386.rmk (pkglib_MODULES): ... here.
8923 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
8924 Moved to ...
8925 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
8926 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
8927 Moved to ...
8928 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
8929 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
8930 Moved to ...
8931 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
8932 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
8933 Moved to ...
8934 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
8935 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
8936 relocator.mod.
8937 (ata_mod_SOURCES): Removed.
8938 (ata_mod_CFLAGS): Likewise.
8939 (ata_mod_LDFLAGS): Likewise.
8940 (relocator_mod_SOURCES): Removed.
8941 (relocator_mod_CFLAGS): Likewise.
8942 (relocator_mod_ASFLAGS): Likewise.
8943 (relocator_mod_LDFLAGS): Likewise.
8944 Include i386.mk.
8945 * include/grub/x86_64/multiboot.h: New file.
8946 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
8947 Terminate EFI.
8948
884ade56
VS
89492010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
8950
8951 Video multiboot support.
8952
8953 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
8954 New prototype.
8955 * include/multiboot.h: Resynced with multiboot specification.
8956 * include/multiboot2.h: Likewise.
8957 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
8958 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
8959 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
8960 (HAS_VGA_TEXT): Likewise.
8961 (accepts_video): New variable.
8962 (grub_multiboot_set_accepts_video): New function.
8963 (grub_multiboot_get_mbi_size): Account for video structures.
8964 (set_video_mode): New function.
8965 (retrieve_video_parameters): Likewise.
8966 (grub_multiboot_make_mbi): Fill video fields.
8967
0d90e8a6
VS
89682010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
8969
8970 Video driver ids.
8971
8972 * include/grub/video.h (grub_video_driver_id): New type.
8973 (grub_video_adapter): New member 'id'. All users updated.
8974 (grub_video_get_driver_id): New proto.
8975 * video/video.c (grub_video_get_driver_id): New function.
8976
5c71db1b 89772010-01-14 Carles Pina i Estany <carles@pina.cat>
8978
8979 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
8980 `var=val'.
8981
cca15b52 89822010-01-14 Carles Pina i Estany <carles@pina.cat>
8983
8984 * normal/cmdline.c (print_completion): Gettextizze.
8985
c586fbb2 89862001-01-14 Carles Pina i Estany <carles@pina.cat>
8987
8988 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
8989
ba2f6848 89902010-01-14 Carles Pina i Estany <carles@pina.cat>
8991
8992 * gettext/gettext.c (grub_gettext_translate): Push and pop
8993 grub_errno.
8994 (grub_gettext_delete_list): Change comment style.
8995 * kern/err.c (grub_error): Gettextizze.
8996 (grub_fatal): Gettextizze.
8997
0a46429a
RM
89982010-01-14 Robert Millan <rmh.grub@aybabtu.com>
8999
9000 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
9001 (grub_linux16_real_boot): ... this.
9002 * kern/i386/loader.S: Likewise.
9003 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
9004 (grub_linux16_boot): New function. Switches to text mode and calls
9005 grub_linux16_real_boot().
9006
9007 * loader/i386/bsd.c: Include `<grub/video.h>'.
9008 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
9009 text mode before calling grub_unix_real_boot().
9010
9011 * loader/i386/multiboot.c: Include `<grub/video.h>'.
9012 (grub_multiboot_boot): Switch to text mode before calling
9013 grub_relocator32_boot().
9014
9015 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
9016 (grub_chainloader_boot): Switch to text mode before calling
9017 grub_chainloader_real_boot().
9018
d6f93a66
RM
90192010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
90202010-01-05 Colin Watson <cjwatson@ubuntu.com>
9021
9022 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
9023 non-empty value.
9024
90252010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
90262010-01-05 Colin Watson <cjwatson@ubuntu.com>
9027
9028 * util/grub.d/00_header.in: Define a "savedefault" function for use
9029 in menu entries.
9030 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
9031
90322010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
90332010-01-05 Colin Watson <cjwatson@ubuntu.com>
9034
9035 * util/grub-mkconfig_lib.in (save_default_entry): Only set
9036 saved_entry if boot_once is unset.
9037 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
9038 previous saved entry (i.e. grub-reboot).
9039
90402009-12-08 Colin Watson <cjwatson@ubuntu.com>
9041
9042 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
9043
90442009-12-08 Colin Watson <cjwatson@ubuntu.com>
9045
9046 * util/grub.d/00_header.in: Use `set var=val' rather than plain
9047 `var=val'.
9048 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
9049
90502009-12-08 Colin Watson <cjwatson@ubuntu.com>
9051
9052 * util/grub-reboot.in: Fix --version output.
9053 * util/grub-set-default.in: Likewise.
9054
90552009-12-08 Colin Watson <cjwatson@ubuntu.com>
9056
9057 * util/grub.d/00_header.in: Silently ignore zero-sized environment
9058 blocks.
9059
90602009-12-08 Colin Watson <cjwatson@ubuntu.com>
9061
9062 * util/grub.d/00_header.in: Quote the value assigned to `default',
9063 in case it contains spaces.
9064
90652009-12-08 Colin Watson <cjwatson@ubuntu.com>
9066
9067 * util/grub.d/30_os-prober.in: Fix merge error that moved a
9068 `save_default_entry' call from the macosx case to the linux case.
9069
90702009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
90712009-10-25 Colin Watson <cjwatson@ubuntu.com>
9072
9073 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
9074 in `chosen' environment variable.
9075 * normal/menu_text.c (get_entry_number): Check if the variable
9076 matches the title of a menu entry.
9077 (run_menu): Pass menu to get_entry_number.
9078
9079 * util/grub-reboot.in: New file.
9080 * util/grub-set-default.in: New file.
9081 * conf/common.rmk (grub-reboot): New utility.
9082 (grub-set-default): New utility.
9083
9084 * util/grub-mkconfig_lib.in (save_default_entry): New function.
9085 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
9086 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
9087 move it to `saved_entry' for the next boot. Load environment on
9088 initialisation.
9089 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
9090 * util/grub.d/10_hurd.in: Likewise.
9091 * util/grub.d/10_linux.in (linux_entry): Likewise.
9092 * util/grub.d/10_windows.in: Likewise.
9093 * util/grub.d/30_os-prober.in: Likewise.
9094
9095 * util/grub-install.in: Create environment block.
9096 * util/i386/efi/grub-install.in: Likewise.
9097 * util/ieee1275/grub-install.in: Likewise.
9098 * util/sparc64/ieee1275/grub-install.in: Likewise.
9099
0934d184
BC
91002010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
9101
9102 Unit testing framework for GRUB.
9103
9104 * Makefile.in: Test framework build rules for 'make check'.
9105 * conf/tests.rmk: Build rules for individual tests and framework.
9106
9107 * include/grub/test.h: Header file for whitebox tests.
9108 * tests/lib/functional_test.c: Framework support for whitebox
9109 functional tests.
9110 * tests/lib/test.c: Common whitebox testing code for unit and
9111 functional tests.
9112 * tests/lib/unit_test.c: Framework support for whitebox unit
9113 tests.
9114
9115 * tests/util/grub-shell-tester.in: Support utility for grub-script
9116 tests.
9117 * tests/util/grub-shell.in: Utility to execute grub-script
9118 commands in a Qemu instance.
9119
9120 * tests/example_functional_test.c: Example whitebox functional
9121 test.
9122 * tests/example_grub_script_test.in: Example grub-script test.
9123 * tests/example_scripted_test.in: Example scripted test.
9124 * tests/example_unit_test.c: Example whitebox unit test.
9125
9c4ffeeb
VS
91262010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
9127
9128 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
9129 Add loader/i386/multiboot_mbi.c.
9130 (multiboot2_mod_SOURCES): Likewise.
9131 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
9132 (multiboot2_mod_SOURCES): Likewise.
9133 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
9134 (grub_multiboot_make_mbi): Likewise.
9135 (grub_multiboot_free_mbi): Likewise.
9136 (grub_multiboot_init_mbi): Likewise.
9137 (grub_multiboot_add_module): Likewise.
9138 (grub_multiboot_set_bootdev): Likewise.
9139 * loader/i386/multiboot.c (mbi): Removed.
9140 (mbi_dest): Likewise.
9141 (alloc_mbi): New variable.
9142 (grub_multiboot_payload_size): Removed. All users updated.
9143 (grub_multiboot_pure_size): New variable.
9144 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
9145 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
9146 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
9147 (grub_fill_multiboot_mmap): Likewise.
9148 (grub_multiboot_get_bootdev): Likewise.
9149 (grub_multiboot): Use multiboot_mbi functions.
9150 * loader/i386/multiboot_mbi.c: New file.
9151
17383dfe
VS
91522010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
9153
9154 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
9155 it would result in module crash.
9156
c1f28820
VS
91572010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
9158
9159 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
9160 (grub_ofconsole_getwh): Split to ...
9161 (grub_ofconsole_getwh): ... this.
9162 (grub_ofconsole_dimensions): ...and this.
9163 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
9164
58655a16
RM
91652010-01-13 Robert Millan <rmh.grub@aybabtu.com>
9166
9167 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
9168
10891398
VS
91692010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
9170
9171 * loader/i386/pc/multiboot2.c: Removed stalled file.
9172
0b8a223c
VS
91732010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
9174
9175 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
9176 Reported by: Grégoire Sutre
9177
92ab12b0
RM
91782010-01-11 Robert Millan <rmh.grub@aybabtu.com>
9179
9180 * util/misc.c (canonicalize_file_name): New function.
9181 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
9182 instead of realpath().
9183
a788afb6
CW
91842010-01-11 Colin Watson <cjwatson@ubuntu.com>
9185
9186 * util/grub-install.in (usage): Clarify meaning of --root-directory,
9187 and make it clearer that it's optional. Based on confusion
9188 witnessed on IRC.
9189
ffa8e3d2
VS
91902010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
9191
9192 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
9193 in premature implicit newline.
9194
e9060a9d
VS
91952010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
9196
9197 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
9198 which resulted in garbled command line at the end of screen.
9199
f0d0c0b7
RM
92002010-01-10 Robert Millan <rmh.grub@aybabtu.com>
9201
9202 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
9203 initialization with similar approach as with other Linux loaders.
9204
0e60bae7
RM
92052010-01-10 Robert Millan <rmh.grub@aybabtu.com>
9206
9207 Fix i386-ieee1275 build.
9208
9209 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
9210 and grub_term_height() for video_{width,height} initialization.
9211
92122010-01-10 Robert Millan <rmh.grub@aybabtu.com>
cdec4d31
RM
9213
9214 Fix grub-emu build.
9215
9216 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
9217
cdb3f378
RM
92182010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
92192010-01-09 Robert Millan <rmh.grub@aybabtu.com>
9220
9221 Support for multiple terminals.
9222
9223 * Makefile.in (pkglib_DATA): terminal.lst.
9224 (terminal.lst): New target.
9225 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
9226 (GRUB_MOD_INIT(handler)): Likewise.
9227 (GRUB_MOD_FINI(handler)): Likewise.
9228 * commands/help.c (grub_cmd_help): Handle multiple terminals.
9229 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
9230 * commands/sleep.c (do_print): Use grub_term_restore_pos.
9231 (grub_cmd_sleep): Use grub_term_save_pos.
9232 * commands/terminal.c: New file.
9233 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
9234 commands/terminal.c and lib/charset.c.
9235 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
9236 (pkglib_MODULES): Add terminal.mod.
9237 (terminal_mod_SOURCES): New variable.
9238 (terminal_mod_CFLAGS): Likewise.
9239 (terminal_mod_LDFLAGS): Likewise.
9240 * genhandlerlist.sh: Don't handle terminals.
9241 * genmk.rb: Generate terminal-*.lst.
9242 * genterminallist.sh: New file.
9243 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
9244 (grub_is_valid_utf8): Likewise.
9245 (grub_utf8_to_ucs4_alloc): Likewise.
9246 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
9247 (grub_menu_register_viewer): Changed argument.
9248 (grub_menu_try_text): New proto.
9249 (grub_gfxmenu_try_hook): New declaration.
9250 * include/grub/normal.h (grub_normal_exit_level): New declaration.
9251 (grub_menu_init_page): Additional argument term.
9252 (grub_normal_init_page): Likewise.
9253 (grub_cmdline_get): Arguments simplified.
9254 (grub_utf8_to_ucs4_alloc): Removed.
9255 (grub_print_ucs4): Additional argument term.
9256 (grub_getstringwidth): Likewise.
9257 (grub_print_message_indented): Likewise.
9258 (grub_menu_text_register_instances): New proto.
9259 (grub_show_menu): Likewise.
9260 (read_terminal_list): Likewise.
9261 (grub_set_more): Likewise.
9262 * include/grub/parser.h: Include handler.h.
9263 * include/grub/reader.h: Rewritten.
9264 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
9265 (GRUB_TERM_WIDTH): Changed to function.
9266 (GRUB_TERM_HEIGHT): Likewise.
9267 (GRUB_TERM_BORDER_WIDTH): Likewise.
9268 (GRUB_TERM_BORDER_HEIGHT): Likewise.
9269 (GRUB_TERM_NUM_ENTRIES): Likewise.
9270 (GRUB_TERM_ENTRY_WIDTH): Likewise.
9271 (GRUB_TERM_CURSOR_X): Likewise.
9272 (grub_term_input_class): Likewise.
9273 (grub_term_output_class): Likewise.
9274 (grub_term_outputs_disabled): New declaration.
9275 (grub_term_inputs_disabled): Likewise.
9276 (grub_term_outputs): Likewise.
9277 (grub_term_inputs): Likewise.
9278 (grub_term_register_input): Rewritten.
9279 (grub_term_register_output): Likewise.
9280 (grub_term_unregister_input): Likewise.
9281 (grub_term_unregister_output): Likewise.
9282 (FOR_ACTIVE_TERM_INPUTS): New macro.
9283 (FOR_DISABLED_TERM_INPUTS): Likewise.
9284 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
9285 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
9286 * include/grub/terminfo.h: Add oterm argument to all protypes.
9287 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
9288 Use grub_rescue_run.
9289 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
9290 All users updated.
9291 * kern/reader.c: Removed. All users updated.
9292 * kern/rescue_reader.c (grub_rescue_init): Removed.
9293 (grub_rescue_reader): Likewise.
9294 (grub_register_rescue_reader): Likewise.
9295 (grub_rescue_run): New function based on kern/reader.c.
9296 * kern/term.c: Adapted for multiterm.
9297 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
9298 (grub_is_valid_utf8): Likewise.
9299 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
9300 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
9301 right terminal.
9302 * loader/i386/linux.c (grub_linux_boot): Likewise.
9303 * normal/auth.c (grub_username_get): New function.
9304 (grub_auth_check_authentication): Use grub_username_get.
9305 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
9306 * normal/color.c: Adapt for multiterm.
9307 * normal/main.c (read_config_file): Don't use grub_reader_loop.
9308 (grub_normal_init_page): Additional argument term.
9309 (read_lists): Call read_terminal_lists.
9310 (grub_enter_normal_mode): Call grub_cmdline_run.
9311 Handle grub_normal_exit_level.
9312 (grub_cmd_normal): Make reentrant.
9313 (grub_cmd_normal_exit): New function.
9314 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
9315 * normal/menu.c: Adapt for multiterm.
9316 * normal/menu_entry.c: Likewise.
9317 * normal/menu_text.c: Likewise.
9318 * normal/menu_viewer.c: Removed. All users updated.
9319 * normal/term.c: New file.
9320 * util/console.c: Change order of includes to workaround a bug in
9321 ncurses headers.
9322 * term/terminfo.c: New argument oterm on all exported functions.
9323 All users updated.
9324 * util/grub-editenv.c (grub_term_input_class): Removed.
9325 (grub_term_output_class): Likewise.
9326
1a064917
RM
93272010-01-09 Robert Millan <rmh.grub@aybabtu.com>
9328
9329 Make loader output a bit more user-friendly.
9330
9331 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
9332 is being loaded. Likewise for the Hurd.
9333
9334 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
9335 that kernel of FreeBSD ${version} is being loaded.
9336
9337 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
9338 grub_dprintf().
9339 (grub_cmd_initrd): Likewise.
9340 * util/grub.d/10_linux.in (linux_entry): Print message indicating
9341 that Linux ${version} is being loaded. Likewise for initrd.
9342
5ce0a83a 93432010-01-09 Carles Pina i Estany <carles@pina.cat>
9344
9345 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
9346
809bbfeb 93472010-01-08 Carles Pina i Estany <carles@pina.cat>
9348
9349 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
9350 (GRUB_MOD_INIT): Gettextizze.
9351 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
9352 (GRUB_MOD_INIT): Gettextizze.
9353 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
9354 (grub_cmd_linux): Capitalise Linux.
9355 (GRUB_MOD_INIT): Gettextizze.
9356 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
9357 (grub_cmd_linux): Capitalise Linux.
9358 (GRUB_MOD_INIT): Gettextizze.
9359 * loader/i386/linux.c: Include `<grub/i18n.h>'.
9360 (grub_cmd_linux): Capitalise Linux.
9361 (GRUB_MOD_INIT): Gettextizze.
9362 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
9363 (GRUB_MOD_INIT): Gettextizze.
9364 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
9365 (grub_cmd_linux): Capitalise Linux.
9366 (GRUB_MOD_INIT): Gettextizze.
9367 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
9368 (grub_cpu_xnu_init): Gettextizze.
9369 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
9370 (GRUB_MOD_INIT): Gettextizze.
9371 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
9372 (GRUB_MOD_INIT): Gettextizze.
9373 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
9374 (grub_linux_load64): Capitalise Linux.
9375 (GRUB_MOD_INIT): Gettextizze.
9376 * loader/xnu.c: Include `<grub/i18n.h>'.
9377 (GRUB_MOD_INIT): Gettextizze.
9378 * po/POTFILES: Add `loader/efi/appleloader.c',
9379 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
9380 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
9381 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
9382 `loader/i386/xnu.c', `loader/multiboot_loader.c',
9383 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
9384 and `loader/xnu.c'.
9385
b394b2ca
RM
93862010-01-08 Robert Millan <rmh.grub@aybabtu.com>
9387
9388 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
9389
93902010-01-08 Robert Millan <rmh.grub@aybabtu.com>
cd943b75
RM
9391
9392 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
9393 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
9394 * util/mkisofs/mkisofs.c (main): Readjust --version output.
9395
bc8b32b3
RM
93962010-01-07 Robert Millan <rmh.grub@aybabtu.com>
9397
9398 Reset Multiboot 2 support. New loader implements the draft in
9399 /branches/multiboot2 and shares as much code as possible with the
9400 production Multiboot 1 implementation.
9401
9402 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
9403 * loader/multiboot2.c: Likewise.
9404 * loader/i386/multiboot_helper.S: Likewise.
9405 * include/multiboot2.h: Replace with latest version from the draft
9406 in /branches/multiboot2.
9407
9408 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
9409 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
9410 and `loader/multiboot2.c'.
9411 (pkglib_MODULES): Add `multiboot2.mod'.
9412 (multiboot2_mod_SOURCES): New variable.
9413 (multiboot2_mod_LDFLAGS): Likewise.
9414 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
9415
9416 * conf/i386-pc.rmk: Likewise.
9417
9418 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
9419 (multiboot_mod_SOURCES): Remove variable.
9420 (multiboot_mod_LDFLAGS): Likewise.
9421 (multiboot_mod_CFLAGS): Likewise.
9422
9423 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
9424 `<multiboot2.h>' instead of `<multiboot.h>'.
9425 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
9426 (MULTIBOOT_HEADER_MAGIC): New macros.
9427
9428 * loader/multiboot_loader.c (module_version_status): Remove variable.
9429 (find_multi_boot2_header): Remove function.
9430 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
9431 logic. Always check for the Multiboot version we're compiling for.
9432 (grub_cmd_module_loader): Likewise.
9433 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
9434 command instead of `multiboot'.
9435
5d2c52b8
RM
94362010-01-07 Robert Millan <rmh.grub@aybabtu.com>
9437
9438 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
9439 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
9440 all users.
9441
53108d92
RM
94422010-01-07 Robert Millan <rmh.grub@aybabtu.com>
94432010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
9444
9445 Fix breakage introduced with previous commit.
9446
9447 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
9448 commands.
9449 * normal/handler.c (read_handler_list): Revert part of previous commit
9450 affecting this file.
9451 * normal/main.c (read_lists): Move read_handler_list() call back to ...
9452 (grub_normal_execute): ... here.
9453
e2e936b2
RM
94542010-01-07 Robert Millan <rmh.grub@aybabtu.com>
9455
9456 Merge prefix-redefinition-fix branch.
9457
9458 * normal/autofs.c (read_fs_list): Make function capable of being
9459 run multiple times, gracefuly replacing the previous data
9460 structures.
9461 * normal/dyncmd.c (read_command_list): Likewise.
9462 * normal/handler.c (read_handler_list): Likewise.
9463 * normal/main.c (read_lists): New function. Calls all the
9464 list reading functions.
9465 (grub_normal_execute): Use read_lists() instead of calling all
9466 list reading functions explicitly. Register read_lists() as a
9467 variable hook attached to ${prefix}.
9468
607a3701
VS
94692010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
9470
9471 Merge crypto branch.
9472
9473 * Makefile.in (pkglib_DATA): Add crypto.lst.
9474 (crypto.lst): New target.
9475 * commands/hashsum.c: New file.
9476 * commands/password.c (check_password): Use grub_crypto_memcmp.
9477 * commands/password_pbkdf2.c: New file.
9478 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
9479 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
9480 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
9481 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
9482 -I$(srcdir)/lib/libgcrypt_wrap.
9483 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
9484 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
9485 password_pbkdf2.mod.
9486 (crypto_mod_SOURCES): New variable.
9487 (crypto_mod_CFLAGS): Likewise.
9488 (crypto_mod_LDFLAGS): Likewise.
9489 (hashsum_mod_SOURCES): New variable.
9490 (hashsum_mod_CFLAGS): Likewise.
9491 (hashsum_mod_LDFLAGS): Likewise.
9492 (pbkdf2_mod_SOURCES): New variable.
9493 (pbkdf2_mod_CFLAGS): Likewise.
9494 (pbkdf2_mod_LDFLAGS): Likewise.
9495 (password_pbkdf2_mod_SOURCES): New variable.
9496 (password_pbkdf2_mod_CFLAGS): Likewise.
9497 (password_pbkdf2_mod_LDFLAGS): Likewise.
9498 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
9499 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
9500 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
9501 Include conf/gcry.rmk.
9502 * include/grub/auth.h: Rewritten.
9503 * include/grub/crypto.h: New file.
9504 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
9505 * include/grub/normal.h (read_crypto_list): New prototype.
9506 * lib/crypto.c: New file.
9507 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
9508 * lib/pbkdf2.c: Likewise.
9509 * normal/auth.c (grub_auth_strcmp): Removed.
9510 (grub_iswordseparator): Likewise.
9511 (grub_auth_strword): Likewise.
9512 (is_authenticated): Use grub_strword.
9513 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
9514 and grub_strword. Pass entered password to authentication callback.
9515 * normal/crypto.c: New file.
9516 * normal/main.c: Call read_crypto_list.
9517 * util/grub-mkpasswd-pbkdf2.c: New file.
9518 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
9519
42841caa
VS
95202010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
9521
9522 Fix descent and ascent calculation.
9523
9524 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
9525 (options): New option "asce".
9526 (usage): Likewise.
9527 (add_char): Ignore invalid glyphs for descent calculation.
9528 Calculate ascent from actual content.
9529 (print_glyphs): Use 'asce'.
9530 (write_font): Likewise. Allow ascent override.
9531 (main): Handle "asce" option.
9532
e7730de7 95332010-01-06 Carles Pina i Estany <carles@pina.cat>
9534
9535 * kern/err.c: Include `<grub/i18n.h>'.
9536 (grub_print_error): Add full stop. Gettextizze.
9537 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
9538 (grub_bsd_load_elf): Capitalise ELF.
9539 (grub_cmd_freebsd_loadenv): Add `s' in error string.
9540 (grub_cmd_freebsd_module): Likewise.
9541 (grub_cmd_freebsd_module_elf): Likewise.
9542 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
9543
40e3a41f 95442010-01-06 Carles Pina i Estany <carles@pina.cat>
9545
9546 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
9547 * commands/search_file.c (HELP_MESSAGE): New macro.
9548 * commands/search_label.c (HELP_MESSAGE): Likewise.
9549 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
9550 * po/POTFILES: Add `commands/search_file.c',
9551 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
9552 `commands/search.c'.
9553
83507e68
RM
95542010-01-05 Robert Millan <rmh.grub@aybabtu.com>
9555
9556 * config.rpath: Update from Gnulib.
9557
465c787b
YB
95582010-01-05 Yves Blusseau <blusseau@zetam.org>
9559
9560 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
9561
6581dd3a
YB
95622010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
9563
9564 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
9565
3bff18c5
CW
95662010-01-05 Colin Watson <cjwatson@ubuntu.com>
9567
9568 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
9569 arguments to fread so that we get a return value in bytes, rather
9570 than something that will normally be rounded down to 0.
9571 Adjust error handling to avoid producing garbage when size_t is not
9572 the same size as long long.
9573
a1368118
CW
95742010-01-05 Colin Watson <cjwatson@ubuntu.com>
9575
9576 * util/mkisofs/write.c (padblock_write): Check return value of
9577 fread.
9578
7c302978
RM
95792010-01-05 Robert Millan <rmh.grub@aybabtu.com>
9580
9581 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
9582 floppy images now.
9583
9584 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
9585
e33ace06
RM
95862010-01-04 Robert Millan <rmh.grub@aybabtu.com>
9587
9588 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
9589 instead of manual alignment.
9590 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
9591 verbose). Avoid attempts to read past end of the device
9592 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
9593 but GRUB_DISK_CACHE_SIZE may exceed that).
9594
4b856776
RM
95952010-01-04 Robert Millan <rmh.grub@aybabtu.com>
9596
9597 * commands/crc.c (grub_cmd_crc): Abort on read errors.
9598 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
9599 it to upper layer.
9600
52c2d97f
VS
96012010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
9602
9603 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
9604 New constant.
9605 (grub_efi_piwg_device_path): New structure
9606 (grub_efi_piwg_device_path_t): New type.
9607 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
9608 (devpath_1): Transform to a structure. All users updated.
9609 (devpath_2): Likewise.
9610 (devpath_3): Likewise.
9611 (devpath_4): Likewise.
9612 (devpath_5): Likewise.
9613
98ff6a54
VS
96142010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
9615
9616 * loader/efi/appleloader.c: Restored. Update all users.
9617
3a73dcb6
RM
96182010-01-03 Robert Millan <rmh.grub@aybabtu.com>
9619
9620 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
9621
9622 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
9623 (struct boot_blocklist): Move from here ...
9624 * include/grub/i386/pc/boot.h [ASM_FILE]
9625 (struct grub_boot_blocklist): ... to here. Update all users.
9626 (setup): Only initialize `start' member of `first_block'
9627 structure. Add assert() calls to verify the other members.
9628
9629 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
9630 (generate_image): Fix broken blocklist length initialization.
9631 Add assert() call to verify blocklist `segment' field.
9632
ab0eeb0c
RM
96332010-01-03 Robert Millan <rmh.grub@aybabtu.com>
9634
9635 * loader/efi/appleloader.c: Remove. Update all users.
9636
58bc8bd5
RM
96372010-01-03 Robert Millan <rmh.grub@aybabtu.com>
9638
9639 * boot/i386/pc/boot.S: Update copyright year.
9640 * boot/i386/pc/cdboot.S: Likewise.
9641 * boot/i386/pc/diskboot.S: Likewise.
9642 * boot/i386/pc/lnxboot.S: Likewise.
9643 * boot/i386/pc/pxeboot.S: Likewise.
9644 * bus/pci.c: Likewise.
9645 * commands/cmp.c: Likewise.
9646 * commands/help.c: Likewise.
9647 * commands/hexdump.c: Likewise.
9648 * commands/i386/pc/halt.c: Likewise.
9649 * commands/i386/pc/play.c: Likewise.
9650 * commands/i386/pc/vbeinfo.c: Likewise.
9651 * commands/ls.c: Likewise.
9652 * commands/test.c: Likewise.
9653 * disk/dmraid_nvidia.c: Likewise.
9654 * disk/i386/pc/biosdisk.c: Likewise.
9655 * disk/ieee1275/nand.c: Likewise.
9656 * disk/ieee1275/ofdisk.c: Likewise.
9657 * disk/lvm.c: Likewise.
9658 * disk/raid.c: Likewise.
9659 * disk/raid6_recover.c: Likewise.
9660 * disk/scsi.c: Likewise.
9661 * fs/affs.c: Likewise.
9662 * fs/cpio.c: Likewise.
9663 * fs/ext2.c: Likewise.
9664 * fs/hfs.c: Likewise.
9665 * fs/iso9660.c: Likewise.
9666 * fs/ntfs.c: Likewise.
9667 * fs/sfs.c: Likewise.
9668 * fs/udf.c: Likewise.
9669 * fs/ufs.c: Likewise.
9670 * fs/xfs.c: Likewise.
9671 * gencmdlist.sh: Likewise.
9672 * genmk.rb: Likewise.
9673 * include/grub/disk.h: Likewise.
9674 * include/grub/efi/api.h: Likewise.
9675 * include/grub/efi/efi.h: Likewise.
9676 * include/grub/efi/pe32.h: Likewise.
9677 * include/grub/elf.h: Likewise.
9678 * include/grub/fs.h: Likewise.
9679 * include/grub/i386/at_keyboard.h: Likewise.
9680 * include/grub/i386/pc/memory.h: Likewise.
9681 * include/grub/i386/pc/vbe.h: Likewise.
9682 * include/grub/i386/pci.h: Likewise.
9683 * include/grub/i386/tsc.h: Likewise.
9684 * include/grub/ieee1275/ieee1275.h: Likewise.
9685 * include/grub/ntfs.h: Likewise.
9686 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
9687 * include/grub/sparc64/libgcc.h: Likewise.
9688 * include/grub/symbol.h: Likewise.
9689 * include/grub/types.h: Likewise.
9690 * include/multiboot2.h: Likewise.
9691 * io/gzio.c: Likewise.
9692 * kern/device.c: Likewise.
9693 * kern/disk.c: Likewise.
9694 * kern/efi/efi.c: Likewise.
9695 * kern/efi/mm.c: Likewise.
9696 * kern/elf.c: Likewise.
9697 * kern/file.c: Likewise.
9698 * kern/i386/dl.c: Likewise.
9699 * kern/i386/pc/init.c: Likewise.
9700 * kern/i386/pc/startup.S: Likewise.
9701 * kern/ieee1275/ieee1275.c: Likewise.
9702 * kern/ieee1275/init.c: Likewise.
9703 * kern/main.c: Likewise.
9704 * kern/mm.c: Likewise.
9705 * kern/powerpc/dl.c: Likewise.
9706 * kern/sparc64/dl.c: Likewise.
9707 * kern/x86_64/dl.c: Likewise.
9708 * lib/hexdump.c: Likewise.
9709 * loader/efi/appleloader.c: Likewise.
9710 * loader/i386/ieee1275/linux.c: Likewise.
9711 * loader/i386/pc/chainloader.c: Likewise.
9712 * loader/i386/pc/linux.c: Likewise.
9713 * loader/i386/pc/multiboot2.c: Likewise.
9714 * loader/ieee1275/multiboot2.c: Likewise.
9715 * loader/multiboot2.c: Likewise.
9716 * loader/multiboot_loader.c: Likewise.
9717 * loader/powerpc/ieee1275/linux.c: Likewise.
9718 * normal/completion.c: Likewise.
9719 * normal/menu_entry.c: Likewise.
9720 * partmap/apple.c: Likewise.
9721 * util/grub.d/10_hurd.in: Likewise.
9722 * util/hostfs.c: Likewise.
9723 * video/readers/png.c: Likewise.
9724
e2d70b5c
CW
97252010-01-03 Colin Watson <cjwatson@ubuntu.com>
9726
9727 * include/grub/misc.h (GNUC_PREREQ): New macro.
9728 (ATTRIBUTE_ERROR): New macro.
9729 * include/grub/list.h (grub_bad_type_cast_real): Use
9730 ATTRIBUTE_ERROR.
9731
a173283f 97322010-01-03 Carles Pina i Estany <carles@pina.cat>
9733
9734 * normal/menu_text.c (print_message): Change messages.
9735
7fa7ff74 97362010-01-03 Carles Pina i Estany <carles@pina.cat>
9737
9738 * normal/menu_entry.c (store_completion): Gettextizze.
9739
136d24f6 97402010-01-03 Carles Pina i Estany <carles@pina.cat>
9741
9742 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
9743
f936862e 97442010-01-03 Carles Pina i Estany <carles@pina.cat>
9745
9746 * po/POTFILES: Sort correctly.
9747
29c44ad1 97482010-01-03 Carles Pina i Estany <carles@pina.cat>
9749
9750 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
9751 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
9752 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
9753 full stop.
9754 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
9755 summary. Gettextizze the strings.
9756 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
9757 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
9758 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
9759 full stop.
9760 (GRUB_MOD_INIT): Remove command name from summary.
9761 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
9762 summary.
9763 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
9764 * term/i386/pc/serial.c (options): Add full stops.
9765 (GRUB_MOD_INIT): Remove command name from the summary.
9766
77a79592 97672010-01-03 Carles Pina i Estany <carles@pina.cat>
9768
9769 * commands/acpi.c: Gettextizze help strings and/or options. Include
9770 `grub/i18n.h' if needed.
9771 * commands/blocklist.c: Likewise.
9772 * commands/boot.c: Likewise.
9773 * commands/cat.c: Likewise.
9774 * commands/cmp.c: Likewise.
9775 * commands/configfile.c: Likewise.
9776 * commands/crc.c: Likewise.
9777 * commands/date.c: Likewise.
9778 * commands/echo.c: Likewise.
9779 * commands/efi/fixvideo.c: Likewise.
9780 * commands/efi/loadbios.c: Likewise.
9781 * commands/gptsync.c: Likewise.
9782 * commands/halt.c: Likewise.
9783 * commands/handler.c: Likewise.
9784 * commands/hdparm.c: Likewise.
9785 * commands/hexdump.c: Likewise.
9786 * commands/i386/cpuid.c: Likewise.
9787 * commands/i386/pc/drivemap.c: Likewise.
9788 * commands/i386/pc/halt.c: Likewise.
9789 * commands/i386/pc/pxecmd.c: Likewise.
9790 * commands/i386/pc/vbeinfo.c: Likewise.
9791 * commands/i386/pc/vbetest.c: Likewise.
9792 * commands/ieee1275/suspend.c: Likewise.
9793 * commands/keystatus.c: Likewise.
9794 * commands/loadenv.c: Likewise.
9795 * commands/ls.c: Likewise.
9796 * commands/lsmmap.c: Likewise.
9797 * commands/lspci.c: Likewise.
9798 * commands/memrw.c: Likewise.
9799 * commands/minicmd.c: Likewise.
9800 * commands/parttool.c: Likewise.
9801 * commands/password.c: Likewise.
9802 * commands/probe.c: Likewise.
9803 * commands/read.c: Likewise.
9804 * commands/reboot.c: Likewise.
9805 * commands/search.c: Likewise.
9806 * commands/sleep.c: Likewise.
9807 * commands/test.c: Likewise.
9808 * commands/true.c: Likewise.
9809 * commands/usbtest.c: Likewise.
9810 * commands/videotest.c: Likewise.
9811 * commands/xnu_uuid.c: Likewise.
9812 * disk/loopback.c: Likewise.
9813 * hello/hello.c: Likewise.
9814 * loader/i386/bsd.c: Likewise.
9815 * term/i386/pc/serial.c: Likewise.
9816 * po/POTFILES: Add new files.
9817
da8d5c53
CW
98182010-01-02 Colin Watson <cjwatson@ubuntu.com>
9819
9820 * term/i386/pc/at_keyboard.c
9821 (keyboard_controller_wait_untill_ready): Rename to ...
9822 (keyboard_controller_wait_until_ready): ... this. Update all users.
9823
33937904 98242010-01-01 Carles Pina i Estany <carles@pina.cat>
9825
9826 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
9827 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
9828 string using string width.
9829 * normal/menu_text.c (grub_print_message_indented): Use
9830 grub_print_spaces and not print_spaces.
9831 (print_timeout): Likewise.
9832 (print_spaces): Move to...
9833 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
9834
3fd3b8d8
RM
98352010-01-01 Robert Millan <rmh.grub@aybabtu.com>
9836
9837 Import from Gnulib.
9838
9839 * gnulib/getdelim.c: New file.
9840 * gnulib/getline.c: Likewise.
9841
33433555
VS
98422009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
9843
9844 * include/grub/list.h (grub_assert_fail): Removed.
9845 (grub_bad_type_cast_real): New function.
9846 (grub_bad_type_cast): New macro.
9847 (GRUB_AS_LIST): Use grub_bad_type_cast.
9848 (GRUB_AS_LIST_P): Likewise.
e44721e8 9849 (GRUB_AS_NAMED_LIST): Likewise.
33433555 9850 (GRUB_AS_NAMED_LIST_P): Likewise.
e44721e8 9851 (GRUB_AS_PRIO_LIST): Likewise.
33433555 9852 (GRUB_AS_PRIO_LIST_P): Likewise.
e44721e8 9853 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
33433555 9854
f5a51306
VS
98552009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
9856
9857 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
9858 Fix syntax error.
9859
90d1e879
RM
98602009-12-29 Robert Millan <rmh.grub@aybabtu.com>
9861
9862 * configure.ac: Check for TARGET_CFLAGS initialization before we
9863 initialize it ourselves (sigh).
9864 Move a few modifications to TARGET_CFLAGS to be unconditional
9865 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
9866 eh_frame)
9867
9868 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
9869 * term/i386/pc/at_keyboard.c
9870 (keyboard_controller_wait_untill_ready): Likewise.
9871 (keyboard_controller_led): Rename `led_status' paramter to avoid
9872 name conflict.
9873
465b5a81 98742009-12-28 Carles Pina i Estany <carles@pina.cat>
9875
9876 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
9877 quotes.
9878
c181849b
VS
98792009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
9880
9881 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
9882
9c8739a4
VS
98832009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
9884
9885 * normal/menu_text.c (grub_print_message_indented): Prevent
9886 past-the-end-of-array dereference.
9887
3e74249c
VS
98882009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
9889
9890 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
9891 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
9892
64fd18ed 98932009-12-27 Carles Pina i Estany <carles@pina.cat>
9894
9895 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
9896 * normal/main.c (grub_normal_read_line): Remove a space from the
9897 default prompt.
9898
714af9b9 98992009-12-27 Carles Pina i Estany <carles@pina.cat>
9900
9901 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
9902 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
9903 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
9904 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
9905 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
9906 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
9907 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
9908
82f3e412 99092009-12-26 Carles Pina i Estany <carles@pina.cat>
c541b01a 9910
9911 * video/readers/jpeg.c (cmd): Declare.
9912 (grub_cmd_jpegtest): Use `grub_command_t' type.
9913 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
9914 Assign to `cmd'.
9915 (GRUB_MOD_FINI): Use `cmd' to unregister.
9916 * video/readers/png.c (cmd): Declare.
9917 (grub_cmd_pngtest): Use `grub_command_t' type.
9918 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
9919 Assign to `cmd'.
9920 (GRUB_MOD_FINI): Use `cmd' to unregister.
9921 * video/readers/tga.c (cmd): Declare.
9922 (grub_cmd_tgatest): Use `grub_command_t' type.
9923 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
9924 Assign to `cmd'.
9925 (GRUB_MOD_FINI): Use `cmd' to unregister.
9926
82f3e412 99272009-12-26 Carles Pina i Estany <carles@pina.cat>
864ba2bb 9928
9929 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
9930 stops.
9931 * kern/corecmd.c (grub_register_core_commands): Likewise.
9932 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
9933 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
9934 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
9935 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
9936 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
9937 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
9938 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
9939 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
9940 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
9941 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
9942 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
9943 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
9944 * normal/handler.c (insert_handler): Likewise.
9945 * normal/main.c (GRUB_MOD_INIT): Likewise.
9946 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
9947
fdcdbb66 99482009-12-26 Carles Pina i Estany <carles@pina.cat>
9949
9950 * commands/help.c (grub_cmd_help): Print the command name before the
9951 summary.
9952 (GRUB_MOD_INIT): Remove command name from the summary.
9953 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
82f3e412 9954 string as summary.
fdcdbb66 9955 * lib/arg.c (find_long): Print the command name before the summary.
9956 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
9957 summary.
9958 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
9959 * commands/cat.c (GRUB_MOD_INIT): Likewise.
9960 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
9961 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
9962 * commands/crc.c (GRUB_MOD_INIT): Likewise.
9963 * commands/date.c (GRUB_MOD_INIT): Likewise.
9964 * commands/echo.c (GRUB_MOD_INIT): Likewise.
9965 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
9966 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
9967 * commands/handler.c (GRUB_MOD_INIT): Likewise.
9968 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
9969 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
9970 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
9971 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
9972 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
9973 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
9974 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
9975 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
9976 * commands/ls.c (GRUB_MOD_INIT): Likewise.
9977 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
9978 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
9979 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
9980 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
9981 * commands/password.c (GRUB_MOD_INIT): Likewise.
9982 * commands/probe.c (GRUB_MOD_INIT): Likewise.
9983 * commands/read.c (GRUB_MOD_INIT): Likewise.
9984 * commands/search.c (GRUB_MOD_INIT): Likewise.
9985 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
9986 * commands/test.c (GRUB_MOD_INIT): Likewise.
9987 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
9988 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
9989 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
9990 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
9991 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
9992 * lib/arg.c (GRUB_MOD_INIT): Likewise.
9993 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
9994 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
9995 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
9996 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
9997 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
9998 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
9999 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
10000 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
10001
9c288be2
VS
100022009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
10003
10004 Use search command for preliminar UUID search.
10005
10006 * commands/search.c: Split into ...
10007 * commands/search_wrap.c: ...this
10008 * commands/search.c: ...and this.
10009 * commands/search_file.c: New file.
10010 * commands/search_label.c: New file.
10011 * commands/search_uuid.c: New file.
10012 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
10013 Add commands/search_wrap.c, commands/search_file.c,
10014 commands/search_label.c and commands/search_uuid.c.
10015 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
10016 (search_mod_SOURCES): Set to commands/search_wrap.c.
10017 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
10018 search_label.mod.
10019 (search_fs_file_mod_SOURCES): New variable.
10020 (search_fs_file_mod_CFLAGS): Likewise.
10021 (search_fs_file_mod_LDFLAGS): Likewise.
10022 (search_label_mod_SOURCES): Likewise.
10023 (search_label_mod_CFLAGS): Likewise.
10024 (search_label_mod_LDFLAGS): Likewise.
10025 (search_fs_uuid_mod_SOURCES): New variable.
10026 (search_fs_uuid_mod_CFLAGS): Likewise.
10027 (search_fs_uuid_mod_LDFLAGS): Likewise.
10028 (fs_file_mod_SOURCES): Removed.
10029 (fs_file_mod_CFLAGS): Likewise.
10030 (fs_file_mod_LDFLAGS): Likewise.
10031 (fs_uuid_mod_SOURCES): Removed.
10032 (fs_uuid_mod_CFLAGS): Likewise.
10033 (fs_uuid_mod_LDFLAGS): Likewise.
10034 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
10035 Set to util/grub-install.in.
10036 * disk/fs_file.c: Removed.
10037 * disk/fs_uuid.c: Likewise.
10038 * include/grub/search.h: New file.
10039 * util/grub-install.in: Handle sparc64.
10040 Create and use load.cfg.
10041 * util/sparc64/ieee1275/grub-install.in: Removed.
10042
db943399
VS
100432009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
10044
10045 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
10046 Ignore return status if CF is cleared.
10047 (grub_biosdisk_get_diskinfo_standard): Likewise.
10048
3fdae612
RM
100492009-12-25 Robert Millan <rmh.grub@aybabtu.com>
10050
10051 * term/i386/pc/at_keyboard.c
10052 (keyboard_controller_wait_untill_ready): New function.
10053 (grub_keyboard_controller_write, grub_keyboard_controller_read)
10054 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
10055 for keyboard polling, rather than duplicate the same loop. This
10056 saves a few bytes in code size.
10057
7ebaa2b4
VS
100582009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
10059
10060 Support for (pxe[:server[:gateway]]) syntax and
10061 use environment variable for PXE.
10062
10063 * commands/i386/pc/pxecmd.c (options): Removed.
10064 (print_ip): Removed.
10065 (grub_cmd_pxe): Removed
10066 (grub_cmd_pxe_unload): New function.
10067 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
10068 (grub_pxe_your_ip): Made static.
10069 (grub_pxe_default_server_ip): Likewise.
10070 (grub_pxe_default_gateway_ip): Likewise.
10071 (grub_pxe_blksize): Likewise.
10072 (parse_ip): New function.
10073 (grub_pxe_open): Support server and gateway specification.
10074 (grub_pxe_close): Free disk->data.
10075 (grub_pxefs_open): Use disk->data.
10076 (grub_pxefs_read): Likewise.
10077 (grub_env_write_readonly): New function.
10078 (set_mac_env): Likewise.
10079 (set_env_limn_ro): Likewise.
10080 (parse_dhcp_vendor): Likewise.
10081 (grub_pxe_detect): Set the environment variables.
10082 (set_ip_env): New function.
10083 (write_ip_env): Likewise.
10084 (grub_env_write_pxe_default_server): Likewise.
10085 (grub_env_write_pxe_default_gateway): Likewise.
10086 (grub_env_write_pxe_blocksize): Likewise.
10087 (GRUB_MOD_INIT(pxe)): Set environment variables.
10088 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
10089 (grub_pxe_mac_addr_t): ... this. All users updated.
10090 (grub_pxe_your_ip): Removed.
10091 (grub_pxe_server_ip): Likewise.
10092 (grub_pxe_gateway_ip): Likewise.
10093 (grub_pxe_blksize): Likewise.
10094
ec5f98ab 100952009-12-25 Carles Pina i Estany <carles@pina.cat>
10096
10097 * commands/help.c: Include `<grub/i18n.h>'.
10098 (grub_cmd_help): Gettextizze.
10099 (GRUB_MOD_INIT): Likewise.
10100 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
10101 (GRUB_MOD_INIT): Gettextizze.
10102 * commands/search.c: Include `<grub/i18n.h>'.
10103 (options): Gettextizze.
10104 (GRUB_MOD_INIT): Gettextizze.
10105 * lib/arg.c: Include `<grub/i18n.h>'.
10106 (help_options): Gettextizze.
10107 (find_long): Likewise.
10108 (grub_arg_show_help): Likewise.
10109 * normal/dyncmd.c: Include `<grub/i18n.h>'.
10110 (read_command_list): Gettextizze.
10111 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
7ebaa2b4 10112 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
ec5f98ab 10113
22815526
RM
101142009-12-25 Robert Millan <rmh.grub@aybabtu.com>
10115
10116 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
10117 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
10118 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
10119 (led_status): New variable.
10120 (keyboard_controller_led): New function.
10121 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
10122 update led status for caps lock, num lock and scroll lock.
10123
0ad46fd7
FZ
101242009-12-25 Felix Zielcke <fzielcke@z-51.de>
10125
10126 * util/hostdisk.c (open_device): Fix a comment.
10127
d0e158c2
RM
101282009-12-24 Robert Millan <rmh.grub@aybabtu.com>
10129
10130 * util/grub-install.in (host_os): New variable.
10131 * util/i386/efi/grub-install.in (host_os): Likewise.
10132
401c0ad6
RM
101332009-12-24 Robert Millan <rmh.grub@aybabtu.com>
10134
10135 * util/mkisofs/write.c (padblock_write): Abort when given an
10136 excedingly large embed image, instead of silently truncating it.
10137
d14d3370
RM
101382009-12-24 Robert Millan <rmh.grub@aybabtu.com>
10139
10140 * include/multiboot.h: Indentation fixes.
10141
eeed10b4
RM
101422009-12-24 Robert Millan <rmh.grub@aybabtu.com>
10143
10144 * include/multiboot.h (struct multiboot_aout_symbol_table)
10145 (struct multiboot_elf_section_header_table): New structure
10146 declarations (stolen from GRUB Legacy).
10147 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
10148 table information.
10149
10150 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
10151 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
10152 type aliases.
10153
681c70ab
RM
101542009-12-24 Robert Millan <rmh.grub@aybabtu.com>
10155
10156 * include/multiboot.h: Make comments src2texi-friendly.
10157
e4d47d8d
RM
101582009-12-24 Robert Millan <rmh.grub@aybabtu.com>
10159
10160 For consistency with [multiboot]/docs/boot.S.
10161
10162 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
10163 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
10164 (MULTIBOOT_MAGIC2): Rename from this ...
10165 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
10166
a0b70bda
RM
101672009-12-24 Robert Millan <rmh.grub@aybabtu.com>
10168
10169 * include/multiboot.h: Remove `<grub/types.h>'.
10170 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
10171 types. Update all users.
10172
61ba42be 101732009-12-25 Carles Pina i Estany <carles@pina.cat>
10174
10175 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
10176 `couldn't' and `can not' by `cannot'.
10177 * commands/i386/pc/drivemap.c: Likewise.
10178 * disk/ata.c: Likewise.
10179 * disk/ieee1275/nand.c: Likewise.
10180 * fs/affs.c: Likewise.
10181 * fs/fat.c: Likewise.
10182 * fs/hfs.c: Likewise.
10183 * fs/hfsplus.c: Likewise.
10184 * fs/iso9660.c: Likewise.
10185 * fs/jfs.c: Likewise.
10186 * fs/minix.c: Likewise.
10187 * fs/reiserfs.c: Likewise.
10188 * fs/sfs.c: Likewise.
10189 * fs/udf.c: Likewise.
10190 * fs/ufs.c: Likewise.
10191 * fs/xfs.c: Likewise.
10192 * loader/powerpc/ieee1275/linux.c: Likewise.
10193 * loader/sparc64/ieee1275/linux.c: Likewise.
10194 * util/grub-probe.c: Likewise.
10195 * util/misc.c: Likewise.
10196
7fd0baee 101972009-12-24 Carles Pina i Estany <carles@pina.cat>
10198
10199 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
10200 grub_errno calls.
10201 * commands/acpi.c: Likewise.
10202 * commands/blocklist.c: Likewise.
10203 * commands/efi/loadbios.c: Likewise.
10204 * commands/i386/pc/drivemap.c: Likewise.
10205 * commands/loadenv.c: Likewise.
10206 * commands/memrw.c: Likewise.
10207 * commands/password.c: Likewise.
10208 * commands/videotest.c: Likewise.
10209 * disk/ata.c: Likewise.
10210 * disk/ata_pthru.c: Likewise.
10211 * disk/dmraid_nvidia.c: Likewise.
10212 * disk/ieee1275/nand.c: Likewise.
10213 * disk/ieee1275/ofdisk.c: Likewise.
10214 * disk/loopback.c: Likewise.
10215 * disk/lvm.c: Likewise.
10216 * disk/mdraid_linux.c: Likewise.
10217 * disk/raid.c: Likewise.
10218 * disk/raid6_recover.c: Likewise.
10219 * disk/scsi.c: Likewise.
10220 * efiemu/main.c: Likewise.
10221 * efiemu/mm.c: Likewise.
10222 * efiemu/pnvram.c: Likewise.
10223 * efiemu/symbols.c: Likewise.
10224 * font/font.c: Likewise.
10225 * fs/cpio.c: Likewise.
10226 * fs/hfsplus.c: Likewise.
10227 * fs/iso9660.c: Likewise.
10228 * fs/jfs.c: Likewise.
10229 * fs/minix.c: Likewise.
10230 * fs/ntfs.c: Likewise.
10231 * fs/ntfscomp.c: Likewise.
10232 * fs/reiserfs.c: Likewise.
10233 * fs/ufs.c: Likewise.
10234 * fs/xfs.c: Likewise.
10235 * gettext/gettext.c: Likewise.
10236 * include/grub/auth.h: Likewise.
10237 * kern/elf.c: Likewise.
10238 * kern/file.c: Likewise.
10239 * kern/ieee1275/init.c: Likewise.
10240 * kern/ieee1275/mmap.c: Likewise.
10241 * kern/ieee1275/openfw.c: Likewise.
10242 * kern/powerpc/dl.c: Likewise.
10243 * kern/sparc64/dl.c: Likewise.
10244 * lib/arg.c: Likewise.
10245 * loader/i386/bsd.c: Likewise.
10246 * loader/i386/bsdXX.c: Likewise.
10247 * loader/i386/efi/linux.c: Likewise.
10248 * loader/i386/efi/xnu.c: Likewise.
10249 * loader/i386/ieee1275/linux.c: Likewise.
10250 * loader/i386/linux.c: Likewise.
10251 * loader/i386/multiboot.c: Likewise.
10252 * loader/i386/pc/linux.c: Likewise.
10253 * loader/i386/pc/multiboot2.c: Likewise.
10254 * loader/i386/xnu.c: Likewise.
10255 * loader/ieee1275/multiboot2.c: Likewise.
10256 * loader/macho.c: Likewise.
10257 * loader/machoXX.c: Likewise.
10258 * loader/multiboot2.c: Likewise.
10259 * loader/multiboot_loader.c: Likewise.
10260 * loader/powerpc/ieee1275/linux.c: Likewise.
10261 * loader/sparc64/ieee1275/linux.c: Likewise.
10262 * loader/xnu.c: Likewise.
10263 * loader/xnu_resume.c: Likewise.
10264 * mmap/i386/pc/mmap.c: Likewise.
10265 * normal/menu_viewer.c: Likewise.
10266 * partmap/acorn.c: Likewise.
10267 * partmap/amiga.c: Likewise.
10268 * partmap/apple.c: Likewise.
10269 * script/lexer.c: Likewise.
10270 * term/gfxterm.c: Likewise.
10271 * term/i386/pc/serial.c: Likewise.
10272 * term/i386/pc/vga.c: Likewise.
10273 * term/ieee1275/ofconsole.c: Likewise.
10274 * term/terminfo.c: Likewise.
10275 * video/bitmap.c: Likewise.
10276 * video/efi_gop.c: Likewise.
10277 * video/efi_uga.c: Likewise.
10278 * video/fb/video_fb.c: Likewise.
10279 * video/i386/pc/vbe.c: Likewise.
10280 * video/readers/tga.c: Likewise.
10281 * video/video.c: Likewise.
10282
0ad46fd7 102832009-12-23 Felix Zielcke <fzielcke@z-51.de>
a2c1332b
FZ
10284
10285 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
10286 * commands/lspci.c: Likewise.
10287 * commands/probe.c: Likewise.
10288 * commands/xnu_uuid.c: Likewise.
10289 * conf/i386-coreboot.rmk: Likewise.
10290 * conf/i386-efi.rmk: Likewise.
10291 * conf/i386-ieee1275.rmk: Likewise.
10292 * conf/i386-pc.rmk: Likewise.
10293 * conf/powerpc-ieee1275.rmk: Likewise.
10294 * conf/sparc64-ieee1275.rmk: Likewise.
10295 * conf/x86_64-efi.rmk: Likewise.
10296 * fs/i386/pc/pxe.c: Likewise.
10297 * gettext/gettext.c: Likewise.
10298 * include/grub/efi/graphics_output.h: Likewise.
10299 * include/grub/i386/pc/memory.h: Likewise.
10300 * kern/env.c: Likewise.
10301 * kern/i386/qemu/startup.S: Likewise.
10302 * lib/i386/pc/biosnum.c: Likewise.
10303 * lib/i386/relocator.c: Likewise.
10304 * lib/i386/relocator_asm.S: Likewise.
10305 * lib/relocator.c: Likewise.
10306 * loader/i386/bsd.c: Likewise.
10307 * loader/i386/multiboot.c: Likewise.
10308 * loader/i386/pc/chainloader.c: Likewise.
10309 * loader/i386/xnu.c: Likewise.
10310 * loader/xnu.c: Likewise.
10311 * normal/main.c: Likewise.
10312 * normal/menu_text.c: Likewise.
10313 * util/getroot.c: Likewise.
10314 * util/grub-mkconfig_lib.in: Likewise.
10315 * util/grub.d/00_header.in: Likewise.
10316 * util/i386/pc/grub-mkimage.c: Likewise.
10317 * util/mkisofs/eltorito.c: Likewise.
10318 * util/mkisofs/exclude.h: Likewise.
10319 * util/mkisofs/hash.c: Likewise.
10320 * util/mkisofs/iso9660.h: Likewise.
10321 * util/mkisofs/joliet.c: Likewise.
10322 * util/mkisofs/mkisofs.c: Likewise.
10323 * util/mkisofs/mkisofs.h: Likewise.
10324 * util/mkisofs/multi.c: Likewise.
10325 * util/mkisofs/name.c: Likewise.
10326 * util/mkisofs/rock.c: Likewise.
10327 * util/mkisofs/tree.c: Likewise.
10328 * util/mkisofs/write.c: Likewise.
10329 * video/efi_gop.c: Likewise.
10330
009ec743
VS
103312009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
10332
10333 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
10334 size counting.
10335
0ad46fd7 103362009-12-22 Felix Zielcke <fzielcke@z-51.de>
990f3548
FZ
10337
10338 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
10339 * genmk.rb (class SCRIPT): Modify the target file instead of source.
10340
d3d30ea0
VS
103412009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
10342
10343 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
10344 (GRUB_MOD_INIT(memrw)): Update help line.
10345
a34f5c70
VS
103462009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
10347
10348 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
10349 Use grub_extcmd_t. All users updated.
10350 (options): New variable.
10351 (grub_cmd_read): Restructure for readability. Support "-v" option.
10352 (grub_cmd_write): Restructure for readability.
10353
0ad46fd7 103542009-12-22 Felix Zielcke <fzielcke@z-51.de>
67618ea6
FZ
10355
10356 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
10357
0ad46fd7 103582009-12-22 Felix Zielcke <fzielcke@z-51.de>
10a88797
FZ
10359
10360 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
10361 with the actual contents of the correspondending make variable.
10362 * util/grub-mkrescue.in (pkglib_DATA): New variable.
10363 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
10364 specifying `*.lst' and `efiemu??.o'
10365
0ad46fd7 103662009-12-22 Felix Zielcke <fzielcke@z-51.de>
7e70dfff
FZ
10367
10368 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
10369 after function name.
10370 Noticed by Rene Engelhard <rene@debian.org>.
10371
dc77a799
VS
103722009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
10373
10374 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
10375 (options): New variable.
10376 (iospace): Likewise.
10377 (grub_lspci_iter): List IO spaces if "-i" was given.
10378 (grub_cmd_lspci): Parse options.
10379 (GRUB_MOD_INIT(lspci)): Use extcmd.
10380 (GRUB_MOD_FINI(lspci)): Likewise.
10381
0ad46fd7 103822009-12-22 Felix Zielcke <fzielcke@z-51.de>
82000aa2
FZ
10383
10384 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
10385 `function' keyword.
10386 Patch by Tony Mancill <tmancill@debian.org>.
10387
b5d5993b
VS
103882009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
10389
10390 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
10391 (grub_uhci_portstatus): Likewise.
10392 (grub_uhci_portstatus): Add necessary delay.
11d18281 10393 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
b5d5993b 10394
941903f2 103952009-12-21 Carles Pina i Estany <carles@pina.cat>
b5d5993b 10396
941903f2 10397 * commands/acpi.c (options): Fix capitalizations and/or full stops.
10398 (GRUB_MOD_INIT): Likewise.
10399 * commands/boot.c (GRUB_MOD_INIT): Likewise.
cb04503e 10400 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
10401 * commands/echo.c (options): Fix capitalizations and/or full stops.
941903f2 10402 * commands/efi/loadbios.c (enable_rom_area): Likewise.
10403 (enable_rom_area): Likewise.
10404 (GRUB_MOD_INIT): Likewise.
10405 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
10406 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
10407 * commands/handler.c (GRUB_MOD_INIT): Likewise.
10408 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
10409 * commands/hexdump.c (options): Likewise.
10410 * commands/i386/cpuid.c (options): Likewise.
10411 (GRUB_MOD_INIT): Likewise.
10412 * commands/i386/pc/drivemap.c (options): Likewise.
10413 (GRUB_MOD_INIT): Likewise.
10414 * commands/i386/pc/halt (options): Likewise.
10415 (GRUB_MOD_INIT): Likewise.
10416 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
10417 * commands/i386/pc/pxecmd.c (options): Likewise.
10418 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
10419 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
10420 * commands/keystatus.c (options): Likewise.
10421 (GRUB_MOD_INIT): Likewise.
10422 * commands/loadenv.c (options): Likewise.
10423 * commands/ls.c (options): Likewise.
10424 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
10425 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
10426 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
10427 * commands/parttool.c (helpmsg): Likewise.
10428 * commands/probe.c (options): Likewise.
10429 * commands/read.c (GRUB_MOD_INIT): Likewise.
10430 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
10431 * commands/search.c (options): Likewise.
10432 * commands/sleep.c (options): Likewise.
10433 * commands/test.c (GRUB_MOD_INIT): Likewise.
10434 * commands/true.c (GRUB_MOD_INIT): Likewise.
10435 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
10436 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
10437 * lib/arg.c (help_options): Likewise.
e9bbb4e7 10438 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
10439 `$(XGETTEXT)'.
98a50553 10440 * po/POTFILES: Add `commands/loadenv.c'.
941903f2 10441
0ad46fd7 104422009-12-21 Felix Zielcke <fzielcke@z-51.de>
4dd13225 10443
ef3c2c3a 10444 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
4dd13225
FZ
10445 instead of specifying them explicit.
10446
7922f68b
RM
104472009-12-21 Robert Millan <rmh.grub@aybabtu.com>
10448
10449 * NEWS: Add grub-probe support for GNU/Hurd.
10450
537ce47f
RM
104512009-12-21 Robert Millan <rmh.grub@aybabtu.com>
10452
10453 * NEWS: gettext was added after 1.97.
10454
9b214e3a
RM
104552009-12-21 Robert Millan <rmh.grub@aybabtu.com>
10456
10457 * util/mkisofs/msdos_partition.h: New file (based on
10458 include/grub/msdos_partition.h).
10459 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
10460 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
10461 (ld_options, main): Recognize --protective-msdos-label.
10462 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
10463 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
10464 (padblock_write): If `use_protective_msdos_label' is set, patch a
10465 protective DOS-style label in the output image.
10466
10467 * util/grub-mkrescue.in: Use --protective-msdos-label.
10468
e9309813
RM
104692009-12-21 Robert Millan <rmh.grub@aybabtu.com>
10470
10471 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
10472 boot.
10473
0ae56929
RM
104742009-12-21 Robert Millan <rmh.grub@aybabtu.com>
10475
10476 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
10477 variables.
10478 (ld_options, main): Recognize `--embedded-boot'.
10479 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
10480 declarations.
10481 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
10482 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
10483 (padblock_write): Likewise. Rewrite to support embedded boot image.
10484
10485 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
10486 for BIOS-based disk boot instead of only ElTorito.
10487
b15937b1
RM
104882009-12-21 Robert Millan <rmh.grub@aybabtu.com>
10489
10490 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
10491 build (not needed for bootstrap).
10492
52cc3ce0
RM
104932009-12-21 Robert Millan <rmh.grub@aybabtu.com>
10494
10495 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
10496 from i386-pc build (not needed for bootstrap).
10497 Rewrite a pair of strings.
10498
36f5ff04
RM
104992009-12-21 Robert Millan <rmh.grub@aybabtu.com>
10500
10501 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
10502
973c6c85 105032009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
b07e53f0
VS
10504
10505 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
10506
05d21547
AB
105072009-12-21 Andreas Born <futur.andy@googlemail.com>
10508
10509 * kern/env.c (grub_env_context_open): Mark exported variable for
10510 reexport.
10511
0175d51f
AB
105122009-12-21 Andreas Born <futur.andy@googlemail.com>
10513
10514 * kern/env.c (grub_env_export): Create nonexistent variables before
10515 exporting.
10516
7f39d92f 105172009-12-20 Carles Pina i Estany <carles@pina.cat>
0175d51f 10518
7f39d92f 10519 * include/grub/auth.h: Include `<grub/i18n.h>'.
10520 (GRUB_GET_PASSWORD): Gettextizze string.
10521 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
10522 menu_text.c.
10523 (grub_utf8_to_ucs4_alloc): Fix indentation.
10524 (grub_print_ucs4): Likewise.
10525 (grub_getstringwidth): Likewise.
10526 (print_message_indented): New declaration.
10527 * normal/auth.c: Include `<grub/i18n.h>'.
10528 (grub_auth_check_authentication): Gettexttize string.
10529 * normal/cmdline.c: Include `<grub/i18n.h>'.
10530 (grub_cmdline_get): Gettextizze.
10531 * normal/color.c: Include `<grub/i18n.h>'.
10532 (grub_parse_color_name_pair): Gettexttize strings.
10533 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
10534 string (use `print_message_indented').
10535 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
10536 `include/grub/normal.h'.
10537 (print_message_indented): Renamed to ...
10538 (grub_print_message_indented): ... this. Remove `static' qualifer (now
10539 used in normal/main.c).
10540 (print_message): Use `grub_print_message_indented' instead of
10541 `print_message_indented'.
10542 (print_timeout): Likewise.
10543 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
10544 (grub_normal_print_device_info): Gettexttize strings.
10545 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
10546
3041d898
VS
105472009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
10548
10549 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
10550 of arguments. Return number of tokens and not arguments. All users
10551 updated.
10552
de15bf8e
VS
105532009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
10554
10555 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
10556 non-MSDOS paritions.
10557
e0a6ca52
VS
105582009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
10559
10560 * include/grub/types.h (UNUSED): Removed since it conflicts with
10561 NetBSD headers. All users changed to direct __attribute__ ((unused)).
10562 Reported by Grégoire Sutre.
10563
b99518d1 105642009-12-19 Carles Pina i Estany <carles@pina.cat>
10565
10566 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
10567 (grub_print_ucs4_alloc): Likewise.
10568 (grub_getstringwidth): Likewise.
10569 * normal/main.c (grub_normal_init_page): Gettextize version string.
10570 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
10571 (getstringwidth): Renamed to ...
10572 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
10573 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
10574 (grub_print_ucs4): Remove `static' qualifer (now used in
10575 normal/main.c).
10576 * po/POTFILES: Add normal/main.c.
10577
bfd5e52b 105782009-12-19 Carles Pina i Estany <carles@pina.cat>
10579
10580 * normal/menu_text.c (STANDARD_MARGIN): New macro.
10581 (print_message_indented): Add `margin_left' and `margin_right'
10582 parameters.
10583 (print_message): Update `print_message_indented' calls. Adds '\n' to the
10584 strings.
10585 (print_timeout): Use `print_message_indented' to print the message.
10586 Deletes `second_stage' parameter.
10587 (run_menu): Update `print_timeout' calls.
10588
5a1ad2b9
VS
105892009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
10590
10591 Fix console palette on OpenFirmware.
10592
10593 * term/ieee1275/ofconsole.c (MAX): Removed.
10594 (colors): Redone based on VGA palette.
10595 (grub_ofconsole_setcolor): Discard brightness bit since only 8
10596 colors are supported.
10597 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
10598
b045f00a
VS
105992009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
10600
10601 Fix potential EfiEmu double prepare.
10602
10603 * efiemu/main.c (prepared): New variable
10604 (grub_efiemu_unload): Set prepare to '0'.
10605 (grub_efiemu_prepare): Return if already prepared. Set prepared.
10606
10607 set_virtual_address_map support.
10608
10609 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
10610 prototype.
10611 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
10612 prototype.
10613 (grub_efiemu_crc32): Likewise.
10614 (grub_efiemu_crc64): Likewise.
10615 (grub_efiemu_set_virtual_address_map): Likewise.
10616 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
10617 New definition.
10618 (grub_autoefi_set_virtual_address_map): Likewise.
10619 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
10620 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
10621 Restructure flow to accomodate it.
10622 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
10623 (grub_efiemu_crc): Recompute CRC32.
10624 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
10625 (efiemu_ptv_relocated): ... this. Made global. All users updated.
10626 * efiemu/symbols.c (relocated_handle): New variable.
10627 (grub_efiemu_free_syms): Free relocated_handle.
10628 (grub_efiemu_alloc_syms): Allocate relocated_handle.
10629 (grub_efiemu_write_sym_markers): New function.
10630 (grub_efiemu_set_virtual_address_map): Likewise.
10631
10632 Newer XNU parameters.
10633
10634 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
10635 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
10636 (grub_xnu_fill_devicetree): New prototype.
10637 (grub_xnu_heap_real_start): New variable.
10638 * loader/xnu.c (get_name_ptr): New function.
10639 (grub_xnu_load_driver): Fill namelen and name.
10640
10641 64-bit xnu support.
10642
10643 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
10644 and 'loader/macho64.c'.
10645 * conf/i386-pc.rmk: Likewise.
10646 * conf/x86_64-efi.rmk: Likewise.
10647 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
10648 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
10649 * include/grub/macho.h (grub_macho_segment64): New structure.
10650 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
10651 (grub_macho_size32): ... to this.
10652 (grub_macho32_get_entry_point): Renamed from ...
10653 (grub_macho_get_entry_point32): ... to this.
10654 (grub_macho_contains_macho64): New prototype.
10655 (grub_macho_size64): Likewise.
10656 (grub_macho_get_entry_point64): Likewise.
10657 (grub_macho32_load): Renamed from ...
10658 (grub_macho_load32): ... to this.
10659 (grub_macho32_filesize): Renamed from ...
10660 (grub_macho_filesize32): ... to this.
10661 (grub_macho32_readfile): Renamed from ...
10662 (grub_macho_readfile32): ... to this.
10663 (grub_macho_filesize64): New prototype.
10664 (grub_macho_readfile64): Likewise.
10665 (grub_macho_parse32): Likewise.
10666 (grub_macho_parse64): Likewise.
10667 * loader/macho.c: Split into ...
10668 * loader/machoXX.c: ... and this. Replace 32 with XX.
10669 * loader/macho32.c: New file.
10670 * loader/macho64.c: Likewise.
10671 * loader/xnu.c (grub_xnu_is_64bit): New variable.
10672 (grub_cmd_xnu_kernel): Make 32-bit only.
10673 (grub_cmd_xnu_kernel64): New function.
10674 (grub_xnu_load_driver): Support Mach-O 64.
10675 (grub_cmd_xnu_mkext): Likewise.
10676 * util/grub.d/30_os-prober.in (osx_entry): New function.
10677 Generate entries for 64-bit boot too.
10678
10679 Eliminate ad-hoc tree format in XNU and EfiEmu.
10680
10681 * efiemu/main.c (grub_efiemu_prepare): Update comment.
10682 * efiemu/pnvram.c: Rewritten to use environment variables.
10683 All users updated.
10684
10685 Inline utf16_to_utf8.
10686
10687 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
10688 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
10689 All users updated.
10690 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
10691
10692 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
10693 * commands/usbtest.c (grub_usb_get_string): ... move here.
10694 (usb_print_str): Fix error handling.
10695 * include/grub/usb.h (grub_usb_get_string): Remove.
10696
10697 UTF-8 to UTF-16 transformation.
10698
10699 * conf/common.rmk (pkglib_MODULES): Add charset.mod
10700 (charset_mod_SOURCES): New variable.
10701 (charset_mod_CFLAGS): Likewise.
10702 (charset_mod_LDFLAGS): Likewise.
10703 * include/grub/utf.h: New file.
10704 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
10705
10706 Support for device properties.
10707
10708 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
10709 (grub_xnu_devprop_device_header): Likewise.
10710 (grub_xnu_devprop_device_descriptor): Likewise.
10711 (grub_xnu_devprop_add_device): New prototype.
10712 (grub_xnu_devprop_remove_device): Likewise.
10713 (grub_xnu_devprop_remove_property): Likewise.
10714 (grub_xnu_devprop_add_property_utf8): Likewise.
10715 (grub_xnu_devprop_add_property_utf16): Likewise.
10716 (grub_cpu_xnu_init): Likewise.
10717 (grub_cpu_xnu_fini): Likewise.
10718 (grub_cpu_xnu_unload): Likewise.
10719 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
10720 (property_descriptor): Likewise.
10721 (devices): New variable.
10722 (grub_xnu_devprop_remove_property): New function.
10723 (grub_xnu_devprop_add_device): Likewise.
10724 (grub_xnu_devprop_remove_device): Likewise.
10725 (grub_xnu_devprop_add_property): Likewise.
10726 (grub_xnu_devprop_add_property_utf8): Likewise.
10727 (grub_xnu_devprop_add_property_utf16): Likewise.
10728 (hextoval): Likewise.
10729 (grub_cpu_xnu_fill_devprop): Likewise.
10730 (grub_cmd_devprop_load): Likewise.
10731 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
10732 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
10733 (cmd_devprop_load): New variable.
10734 (grub_cpu_xnu_init): New function.
10735 (grub_cpu_xnu_fini): Likewise.
10736 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
10737 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
10738 (grub_cmd_xnu_devtree): Likewise.
10739 (hextoval): New function.
10740 (unescape): Likewise.
10741 (grub_xnu_fill_devicetree): Likewise.
10742
10743 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
10744 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
10745
0945f181
VS
107462009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
10747
10748 Workaround for broken ATI VBE.
10749
10750 * video/i386/pc/vbe.c (last_set_mode): New variable.
10751 (grub_vbe_set_video_mode): Set 'last_set_mode'.
10752 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
10753 (grub_video_vbe_setup): Don't check for reserved flag.
10754
0ad46fd7 107552009-12-17 Felix Zielcke <fzielcke@z-51.de>
0297aafb
FZ
10756
10757 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
10758 the `find' command.
10759
c179ebe4
VS
107602009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
10761
10762 UUID support for HFS.
10763
10764 * fs/hfs.c (grub_hfs_uuid): New function.
10765 (grub_hfs_fs): New value .uuid.
10766 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
10767
0ad46fd7 107682009-12-14 Felix Zielcke <fzielcke@z-51.de>
574cce0c
FZ
10769
10770 Fix a segfault with parsing unknown long options.
10771
10772 * util/grub-mkrelpath.c (options): Zero terminate it.
10773
c4a3e41a
CPE
107742009-12-13 Carles Pina i Estany <carles@pina.cat>
10775
10776 * include/grub/misc.h (grub_puts): New declaration.
10777 (grub_puts_): Likewise.
a22008a6 10778 * kern/misc.c (grub_puts): New definition.
c4a3e41a
CPE
10779 (grub_puts_): Likewise.
10780
2e8a7602
RM
107812009-12-13 Robert Millan <rmh.grub@aybabtu.com>
10782
10783 * util/grub-probe.c (probe): Improve error message.
10784
b50b77b9
RM
107852009-12-13 Robert Millan <rmh.grub@aybabtu.com>
10786
10787 * loader/i386/multiboot_elfxx.c
10788 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
10789 initialization.
10790
107912009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10792
10793 Relocator framework
10794
10795 * loader/i386/xnu_helper.S: Removed. All users updated.
10796 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
10797 (relocator_mod_SOURCES): New variable.
10798 (relocator_mod_CFLAGS): Likewise.
10799 (relocator_mod_LDFLAGS): Likewise.
10800 (relocator_mod_ASFLAGS): Likewise.
10801 * conf/x86_64.rmk: Likewise.
10802 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
10803 (grub_multiboot_payload_entry_offset): Likewise.
10804 (grub_multiboot_forward_relocator): Likewise.
10805 (grub_multiboot_forward_relocator_end): Likewise.
10806 (grub_multiboot_backward_relocator): Likewise.
10807 (grub_multiboot_backward_relocator_end): Likewise.
10808 (grub_multiboot_payload_eip): New variable.
10809 (grub_multiboot_payload_orig): Likewise.
10810 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
10811 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
10812 * include/grub/i386/memory.h
10813 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
10814 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
10815 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
10816 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
10817 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
10818 * include/grub/i386/relocator.h: New file.
10819 * include/grub/x86_64/relocator.h: Likewise.
10820 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
10821 (XNU_RELOCATOR): New macro.
10822 (grub_xnu_launcher_start): Remove.
10823 (grub_xnu_launcher_end): Likewise.
10824 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
10825 (grub_xnu_heap_real_start): Remove.
10826 (grub_xnu_heap_start): Change to void *. All users updated.
10827 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
10828 * lib/i386/relocator.c: New file.
10829 * lib/i386/relocator_asm.S: Likewise.
10830 * lib/i386/relocator_backward.S: Likewise.
10831 * lib/mips/relocator.c: Likewise.
10832 * lib/mips/relocator_asm.S: Likewise.
10833 * lib/relocator.c: Likewise.
10834 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
10835 (entry): Removed.
10836 (playground): Likewise.
10837 (grub_multiboot_payload_orig): New variable.
10838 (grub_multiboot_payload_dest): Likewise.
10839 (grub_multiboot_payload_size): Likewise.
10840 (grub_multiboot_payload_eip): Likewise.
10841 (grub_multiboot_payload_esp): Likewise.
10842 (grub_multiboot_boot): Use grub_relocator32_boot.
10843 (grub_multiboot_unload): Free relocators.
10844 (grub_multiboot): Setup stack. Use relocators.
10845 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
10846 (grub_multiboot_load_elfXX): Use relocators.
10847 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
10848 (grub_multiboot_payload_size): Likewise.
10849 (grub_multiboot_payload_dest): Likewise.
10850 (grub_multiboot_payload_entry_offset): Likewise.
10851 (grub_multiboot_forward_relocator): Likewise.
10852 (grub_multiboot_backward_relocator): Likewise.
10853 (grub_multiboot_real_boot): Likewise.
10854 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
10855 (grub_xnu_entry_point): Likewise.
10856 (grub_xnu_arg1): Likewise.
10857 (grub_xnu_stack): Likewise.
10858 (grub_xnu_launch): Removed.
10859 (grub_xnu_boot_resume): New function.
10860 (grub_xnu_boot): Use relocators.
10861 * loader/i386/xnu_helper.S: Removed.
10862 * loader/xnu.c (grub_xnu_heap_start): New variable.
10863 (grub_xnu_heap_size): Likewise.
10864 (grub_xnu_heap_malloc): Use relocators.
10865 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
10866
29eb90c6
VS
108672009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10868
10869 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
10870 anything.
10871
31027430
CPE
108722009-12-13 Carles Pina i Estany <carles@pina.cat>
10873
10874 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
10875 GRUB_ERR_NONE before calling grub_env_set.
10876
dc0c71d9
RM
108772009-12-12 Robert Millan <rmh@aybabtu.com>
10878
10879 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
10880 * genmk.rb (video): New variable.
10881 (CLEANFILES, VIDEOFILES): Add #{video}.
10882 (#{video}): New target rule.
10883 * genvideolist.sh: New file.
10884 * Makefile.in (pkglib_DATA): Add video.lst.
10885 (video.lst): New target rule.
10886 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
10887 `video.lst'.
10888 * util/grub.d/30_os-prober.in: Replace `vbe' with
10889 ${GRUB_VIDEO_BACKEND}.
10890
2a4bfcf0
RM
108912009-12-11 Robert Millan <rmh.grub@aybabtu.com>
10892
10893 * THANKS: Add David Miller.
10894
2a3aa4d5
RM
108952009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
10896
10897 libpciaccess support.
10898
10899 * Makefile.in (LIBPCIACCESS): New variable.
10900 (enable_grub_emu_pci): Likewise.
10901 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
10902 util/pci.c and commands/lspci.c.
10903 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
10904 * configure.ac (grub-emu-pci): New option.
10905 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
10906 (grub_pci_device_unmap_range): Likewise.
10907 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
10908 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
10909 (grub_pci_address_t) [!GRUB_UTIL]: New type.
10910 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
10911 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
10912 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
10913 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
10914 * include/grub/pciutils.h: New file.
10915 * util/pci.c: Likewise.
10916
0ad46fd7 109172009-12-11 Felix Zielcke <fzielcke@z-51.de>
8d0502d9
FZ
10918
10919 * util/misc.c: Don't include <errno.h> twice.
10920
0ad46fd7 109212009-12-10 Felix Zielcke <fzielcke@z-51.de>
0d56ed64
FZ
10922
10923 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
10924 name in an error message.
10925 (grub_biosdisk_rw): Likewise.
10926
2e59983c
VS
109272009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
10928
10929 Eliminate NTFS 4Gib barrier.
10930
10931 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
10932 (read_run_data): Likewise.
10933 (grub_ntfs_read_run_list): Likewise.
10934 (grub_ntfs_read_block): Likewise.
10935 (grub_ntfs_iterate_dir): Likewise.
10936 (read_mft): Likewise.
10937 (read_data): Likewise.
10938 Use COM_LOG_LEN.
10939 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
10940 to avoid 64-bit division
10941 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
10942 (grub_ntfs_rlst): Use grub_disk_addr_t.
10943
71ee178a
VS
109442009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
10945
10946 Eliminate grub-fstest 4Gib barrier.
10947
10948 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
10949 (read_file): Fix error reporting.
10950
2520d4b8
VS
109512009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
10952
10953 Eliminate hexdump 4Gib barrier.
10954
10955 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
10956 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
10957
e1f27065
VS
109582009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
10959
10960 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
10961 Fixes amarsh bug.
10962
1a0f7f45
RM
109632009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
10964
10965 Remove miscellaneous files in distclean target.
10966
10967 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
10968
c631d9fb
CW
109692009-12-09 Colin Watson <cjwatson@ubuntu.com>
10970
10971 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
10972 if they're already set. This resolves the conflict between my
10973 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
10974 fixing the --grub-probe option again.
10975 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
10976 change on 2009-10-06, so that we now once again source
10977 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
10978
7c7b6106
RM
109792009-12-08 Robert Millan <rmh.grub@aybabtu.com>
10980
10981 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
10982 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
10983 `util/devicemap.c'.
10984
e3069ec1
CPE
109852009-12-08 Carles Pina i Estany <carles@pina.cat>
10986
10987 * include/grub/misc.h (grub_printf_): New declaration.
10988 * kern/misc.c (grub_printf_): New definition.
10989 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
10990 instead of `grub_printf' and `_'.
10991 * normal/menu_entry.c (store_completion): Likewise.
10992 (run): Likewise.
10993 (grub_menu_entry_run): Likewise.
10994 * normal/menu_text.c (grub_wait_after_message): Likewise.
10995 (notify_booting): Likewise.
10996 (notify_fallback): Likewise.
10997 (notify_execution_failure): Likewise.
10998
d6ceebf1
CW
109992009-12-07 Colin Watson <cjwatson@ubuntu.com>
11000
11001 * configure.ac: Check for vasprintf.
11002 * util/misc.c (asprintf): Move allocation from here ...
11003 (vasprintf): ... to here. New function.
11004 (xasprintf): New function.
11005 * include/grub/util/misc.h (vasprintf, xasprintf): Add
11006 prototypes.
11007 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
11008 * util/grub-mkfont.c (write_font): Likewise.
11009 * util/grub-probe.c (probe): Likewise.
11010 * util/hostdisk.c (make_device_name): Likewise.
11011
de6daa8b
DM
110122009-12-06 David S. Miller <davem@sunset.davemloft.net>
11013
11014 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
11015 anything even prefixed with 'cdrom' as a cdrom.
11016
0ad46fd7 110172009-12-06 Felix Zielcke <fzielcke@z-51.de>
df91e679
FZ
11018
11019 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
11020 mount points.
11021
98d3dc02
CPE
110222009-12-05 Carles Pina i Estany <carles@pina.cat>
11023
11024 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
11025 grub_gettext_msg_list.
11026 (grub_gettext_gettranslation_from_position): Return const char *
11027 and not char *.
a2c1332b 11028 (grub_gettext_translate): Add the translated strings into a list,
98d3dc02
CPE
11029 returns from the list if existing there.
11030 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
11031 (grub_gettext_delete_list): Delete the list.
11032 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
11033 lang environment variable is changed.
11034 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
11035
b283f108
VS
110362009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
11037
11038 Rename kernel.mod to kernel.img.
11039
11040 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
11041 (kernel_mod_EXPORTS): Rename to ...
11042 (kernel_img_EXPORTS): ... this.
11043 (kernel_mod_SOURCES): Rename to ...
11044 (kernel_img_SOURCES): ... this.
11045 (kernel_mod_HEADERS): Rename to ...
11046 (kernel_img_HEADERS): ... this. All users updated.
11047 (kernel_mod_CFLAGS): Rename to ...
11048 (kernel_img_CFLAGS): ... this.
11049 (kernel_mod_ASFLAGS): Rename to ...
11050 (kernel_img_ASFLAGS): ... this.
11051 (kernel_mod_LDFLAGS): Rename to ...
11052 (kernel_img_LDFLAGS): ... this.
11053 * conf/x86_64-efi.rmk: Likewise.
11054 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
11055 (read_kernel_image): ... this. All users updated.
11056 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
11057
69055f8a
CPE
110582009-12-05 Carles Pina i Estany <carles@pina.cat>
11059
11060 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
11061 (print_spaces): New function.
11062 (grub_print_ucs4): New function.
11063 (getstringwidth): New function.
11064 (print_message_indented): New function.
11065 (print_message): Gettexttize strings using print_message_indented.
11066 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
11067 width.
11068 (get_entry_number): Gettextize and uses dynamic terminal width.
a2c1332b 11069 (notify_booting, notify_fallback, notify_execution_failure):
69055f8a
CPE
11070 Gettextize.
11071 * normal/menu_entry.c (store_completion): Cleanup the gettextized
11072 string.
11073 (run): Likewise.
11074 (grub_menu_entry_run): Likewise.
11075 * PO/POTFILES: Add normal/menu_entry.c.
11076
f616f51c
VS
110772009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
11078
11079 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
11080
57bbe3be
CPE
110812009-12-05 Carles Pina i Estany <carles@pina.cat>
11082
11083 * util/grub-install.in: Install gettext .mo files.
11084 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
11085
013d67a1
CPE
110862009-12-05 Carles Pina i Estany <carles@pina.cat>
11087
11088 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
11089 grub_dprintf.
11090
fb954db0
RM
110912009-12-05 Robert Millan <rmh.grub@aybabtu.com>
11092
11093 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
11094 non-firmware-dependant one in realmode.S takes precedence.
11095
6b8474f8
RM
110962009-12-04 Robert Millan <rmh.grub@aybabtu.com>
11097
11098 * commands/halt.c: Replace misc arch-specific headers with
11099 `<grub/misc.h>'.
11100 * commands/reboot.c: Likewise.
11101 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
11102 `<grub/misc.h>'.
11103 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
11104 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
11105 (kernel_img_SOURCES): ... to here.
11106
11107 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
11108 * include/grub/i386/pc/init.h: Likewise.
11109 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
11110 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
11111
11112 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
11113
11114 * include/grub/i386/halt.h: Remove.
11115 * include/grub/i386/reboot.h: Likewise.
11116
11117 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
11118
4b2e6ca2
DM
111192009-12-03 David S. Miller <davem@sunset.davemloft.net>
11120
11121 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
11122 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
11123 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
11124 "progname.h"
11125 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
11126 * util/sparc64/ieee1275/grub-setup.c: Likewise.
11127 (usage): Add missing comma in printf.
11128
5239348f
RM
111292009-12-02 Robert Millan <rmh.grub@aybabtu.com>
11130
11131 Use the same reboot approach on i386 coreboot and qemu as we do on
11132 BIOS.
11133
11134 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
11135 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
11136 * kern/i386/reboot.c: Remove.
11137 * include/grub/i386/reboot.h (grub_reboot): Export function.
11138 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
11139 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
11140 0xf000:0xfff0 instead of 0xffff:0x0000.
11141 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
11142 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
11143
ef34cbd4
RM
111442009-11-30 Robert Millan <rmh.grub@aybabtu.com>
11145
11146 Fix $srcdir != $objdir build.
11147
11148 * Makefile.in (po/%.po): Rewrite as ...
11149 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
11150
dc9837ea
ST
111512009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
11152
11153 Fix GNU/Hurd grub-install crash.
11154 * util/grub-probe.c (probe): Try to access `path' only when it is not
11155 NULL.
11156
2f857f98
VS
111572009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
11158
11159 Correct module naming.
11160
11161 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
11162 (GRUB_MOD_INIT(efi_uga)): ... to this
11163 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
11164 (GRUB_MOD_FINI(efi_uga)): ... to this
11165 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
11166 (GRUB_MOD_INIT(efi_gop)): ... to this
11167 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
11168 (GRUB_MOD_FINI(efi_gop)): ... to this
11169
c5448046
RM
111702009-11-28 Robert Millan <rmh.grub@aybabtu.com>
11171
11172 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
11173 translatable.
11174 (usage): Translate `arg' strings using gettext().
11175 Thanks to Jordi Mallach for the suggestion.
11176
c85184ad
VS
111772009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
11178
11179 GOP support. Based on patch from Bean
11180 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
11181
11182 * video/efi_gop.c: New file.
11183 * include/grub/efi/graphics_output.h: Likewise.
11184 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
11185 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
11186 variables.
11187 * conf/x86_64-efi.rmk: Likewise.
11188
8a4c48d8
VS
111892009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
11190
11191 Rename efi_fb to efi_uga.
11192
11193 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
11194 'efi_uga.mod'.
11195 (efi_fb_mod_SOURCES): Rename this ...
11196 (efi_uga_mod_SOURCES): ... to this.
11197 (efi_fb_mod_CFLAGS): Rename this ...
11198 (efi_uga_mod_CFLAGS): ... to this.
11199 (efi_fb_mod_LDFLAGS): Rename this ...
11200 (efi_uga_mod_LDFLAGS): ... to this.
11201 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
11202 'efi_uga.mod'.
11203 (efi_fb_mod_SOURCES): Rename this ...
11204 (efi_uga_mod_SOURCES): ... to this.
11205 (efi_fb_mod_CFLAGS): Rename this ...
11206 (efi_uga_mod_CFLAGS): ... to this.
11207 (efi_fb_mod_LDFLAGS): Rename this ...
11208 (efi_uga_mod_LDFLAGS): ... to this.
11209 * video/efi_fb.c: Move this ...
11210 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
11211
fb6c1a7b
RM
112122009-11-27 Robert Millan <rmh.grub@aybabtu.com>
11213
11214 * po/README: New file. Explain our PO file workflow.
11215
3bc7896c
RM
112162009-11-27 Robert Millan <rmh.grub@aybabtu.com>
11217
11218 * po/ChangeLog: Remove. Move relevant entries back to ...
11219 * ChangeLog: ... here.
11220 * po/ca.po: Remove (now handled by TLP).
11221 * po/id.po: Likewise.
11222 * po/zh_CN.po: Likewise.
11223 * Makefile.in (LINGUAS): Initialize in a way that supports
11224 empty set.
11225
9ed4841d
RM
112262009-11-27 Robert Millan <rmh.grub@aybabtu.com>
11227
11228 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
11229 reliing on po/LINGUAS.
11230 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
11231 (po/%.po): ... this.
11232
0ad46fd7 112332009-11-26 Felix Zielcke <fzielcke@z-51.de>
242668a2
FZ
11234
11235 * util/i386/efi/grub-mkimage.c: Include "progname.h".
11236 (main): Use `program_name' instead of nonexistent `progname'.
11237
e30dd392
FZ
112382009-11-26 Felix Zielcke <fzielcke@z-51.de>
11239
11240 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
11241 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
11242
7656de4f
RM
112432009-11-26 Robert Millan <rmh.grub@aybabtu.com>
11244
11245 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
11246 commit.
11247 * conf/i386-efi.rmk: Likewise.
11248 * conf/i386-ieee1275.rmk: Likewise.
11249 * conf/powerpc-ieee1275.rmk: Likewise.
11250 * conf/sparc64-ieee1275.rmk: Likewise.
11251 * conf/x86_64-efi.rmk: Likewise.
11252
db77c4d4
FZ
112532009-11-26 Felix Zielcke <fzielcke@z-51.de>
11254
11255 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
11256
a755bb04
FZ
112572009-11-26 Felix Zielcke <fzielcke@z-51.de>
11258
11259 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
11260
8a4c07fd
RM
112612009-11-26 Robert Millan <rmh.grub@aybabtu.com>
11262
11263 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
11264 (grub_mkdevicemap_SOURCES): New variable.
11265 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
11266 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
11267 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
11268 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
11269 (grub_mkdevicemap_SOURCES): Remove.
11270 * conf/i386-efi.rmk: Likewise.
11271 * conf/i386-ieee1275.rmk: Likewise.
11272 * conf/i386-pc.rmk: Likewise.
11273 * conf/powerpc-ieee1275.rmk: Likewise.
11274 * conf/sparc64-ieee1275.rmk: Likewise.
11275 * conf/x86_64-efi.rmk: Likewise.
11276 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
11277 (usage): Fix strings to use `program_name'.
11278 (main): Initialize gettext.
11279 * util/grub-editenv.c: Likewise.
11280 * util/grub-emu.c: Likewise.
11281 * util/grub-fstest.c: Likewise.
11282 * util/grub-mkdevicemap.c: Likewise.
11283 * util/grub-mkfont.c: Likewise.
11284 * util/grub-mkrelpath.c: Likewise.
11285 * util/grub-pe2elf.c: Likewise.
11286 * util/grub-probe.c: Likewise.
11287 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
11288 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
11289 * util/sparc64/ieee1275/grub-setup.c: Likewise.
11290
11291 * util/misc.c: Include `"progname.h"'.
11292 (progname): Remove variable.
11293 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
11294
6f61ed55
FZ
112952009-11-25 Felix Zielcke <fzielcke@z-51.de>
11296
11297 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
11298 printf and print a newline after the menuentry header line.
11299 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
11300
f022876b
FZ
113012009-11-25 Felix Zielcke <fzielcke@z-51.de>
11302
11303 autoconf >= 2.60 support $(localedir).
11304
11305 * INSTALL: Note that autoconf 2.60 is required.
11306 * configure.ac (AC_PREREQ): Bump to 2.60.
11307 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
11308 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
11309
6717926e
YB
113102009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
11311
11312 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
11313 aclocal is run.
11314
08806a54
RM
113152009-11-25 Robert Millan <rmh.grub@aybabtu.com>
11316
11317 * normal/main.c (grub_normal_read_line): Fix off-by-one
11318 buffer overflow.
11319
13b33fba
RM
113202009-11-25 Robert Millan <rmh.grub@aybabtu.com>
11321
11322 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
11323 "parser.grub" in grub_command_execute() call.
11324
4a8572e9
CPE
113252009-11-24 Carles Pina i Estany <carles@pina.cat>
11326
11327 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
11328 * conf/i386-efi.rmk: Likewise.
11329 * conf/i386-ieee1275.rmk: Likewise.
11330 * conf/i386-pc.rmk: Likewise.
11331 * conf/powerpc-ieee1275.rmk: Likewise.
11332 * conf/sparc64-ieee1275.rmk: Likewise.
11333 * conf/x86_64-efi.rmk: Likewise.
11334 * gettext/gettex.c: Include <grub/i18n.h>.
11335 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
11336 here ...
11337 * include/grub/i18n.h: ... to here
11338 * include/grub/i18n.h: ... to here.
11339 * kern/misc.c: Include <grub/i18n.h>
a2c1332b 11340 (grub_gettext_dummy): Move above user.
4a8572e9 11341
bee48093
FZ
113422009-11-24 Felix Zielcke <fzielcke@z-51.de>
11343
11344 * util/Makefile.in (install-local): Convert a `for' into a normal
11345 shell expansion.
11346
a031e91c
RM
113472009-11-24 Robert Millan <rmh.grub@aybabtu.com>
11348
11349 * autogen.sh: Add automake call.
11350 * config.guess: Remove.
11351 * config.sub: Likewise.
11352 * install-sh: Likewise.
11353
26bec39d
FZ
113542009-11-24 Felix Zielcke <fzielcke@z-51.de>
11355
11356 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
11357
8e2532fd
FZ
113582009-11-24 Felix Zielcke <fzielcke@z-51.de>
11359
11360 * util/Makefile.in (install-local): Convert a make `$(foreach)'
11361 function to a normal shell `for'.
11362
fefa1b7d
FZ
113632009-11-24 Felix Zielcke <fzielcke@z-51.de>
11364
11365 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
11366
4501250b
FZ
113672009-11-24 Felix Zielcke <fzielcke@z-51.de>
11368
11369 * util/grub-mkrelpath.c: New file.
11370 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
11371 (grub_mkrelpath_SOURCES): New variable.
11372 * include/grub/util/misc.h: New function prototype.
11373 * util/misc.c (make_system_path_relative_to_its_root): New function.
11374
11375 * util/grub-mkconfig_lib.in (bindir): New variable.
11376 (grub_mkrelpath): Likewise.
11377 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
11378
11379 * util/probe.c (probe): Make the file path relative to its root.
11380 Change a info message to use the GRUB path. Enable again the
11381 check if we can read the file with GRUB facilities.
11382
11383 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
11384 to its root.
11385
11d9778b
FZ
113862009-11-24 Felix Zielcke <fzielcke@z-51.de>
11387
11388 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
11389 platform.
11390
4465287d
FZ
113912009-11-24 Felix Zielcke <fzielcke@z-51.de>
11392
11393 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
11394 strncmp().
11395
62b47f22
FZ
113962009-11-24 Felix Zielcke <fzielcke@z-51.de>
11397
11398 * util/getroot.c (grub_util_is_dmraid): New function.
11399 (grub_util_get_dev_abstraction): Treat dmraid and multipath
11400 devices as normal ones, not as LVM.
11401
1eafb9b9 114022009-11-23 Carles Pina i Estany <carles@pina.cat>
c3ea6bd4
CPE
11403
11404 * conf/common.rmk: Add grub-gettext_lib target and updates
11405 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
11406 LDFLAGS.
11407 * gettext/gettext.c: New file. (Reads mo files).
11408 * include/grub/file.h (grub_file_pread): New prototype.
11409 * include/grub/i18n.h (_): New prototype.
11410 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
11411 prototypes.
11412 * kern/misc.c (grub_gettext_dummy): New function.
11413 * normal/menu_text.c: Include <grub/i18n.h>.
11414 * normal/menu_text.c (print_timeout): Gettexttize string.
11415 * normal/menu_text.c (print_message): Gettexttize string.
3bc7896c
RM
11416 * po/POTFILES: Add `normal/menu_text.c'.
11417 * po/ca.po: Add new translations.
c3ea6bd4
CPE
11418 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
11419 gettext module and defines locale_dir and lang in grub.cfg.
11420 * NEWS: Add gettext support.
11421
0fdb2568
RM
114222009-11-23 Robert Millan <rmh.grub@aybabtu.com>
11423
11424 * util/hostdisk.c: Include `<grub/i18n.h>'.
11425 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
11426 (make_device_name): Rewrite using asprintf.
11427 (convert_system_partition_to_system_disk): Replace 0 with NULL.
11428 (find_system_device): If a device is not found, generate one just
11429 by reusing the OS path name.
11430 (read_device_map): Make it permissible for device.map not to exist.
11431
f515aa62
RM
114322009-11-23 Robert Millan <rmh.grub@aybabtu.com>
11433
11434 * script/sh/execute.c: Move from here ...
11435 * script/execute.c: ... to here. Update all users.
11436 * script/sh/function.c: Move from here ...
11437 * script/function.c: ... to here. Update all users.
11438 * script/sh/lexer.c: Move from here ...
11439 * script/lexer.c: ... to here. Update all users.
11440 * script/sh/main.c: Move from here ...
11441 * script/main.c: ... to here. Update all users.
11442 * script/sh/parser.y: Move from here ...
11443 * script/parser.y: ... to here. Update all users.
11444 * script/sh/script.c: Move from here ...
11445 * script/script.c: ... to here. Update all users.
11446
f84b481b
RM
114472009-11-23 Robert Millan <rmh.grub@aybabtu.com>
11448
11449 * configure.ac: Detect all `emu' platforms. Define
11450 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
11451 --enable-grub-emu logic. Disable include/grub/machine
11452 symlink on `emu' platforms.
11453
11454 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
11455 * gensymlist.sh.in: Likewise.
11456
11457 * include/grub/i386/coreboot/machine.h: Remove file.
11458 * include/grub/i386/efi/machine.h: Likewise.
11459 * include/grub/i386/ieee1275/machine.h: Likewise.
11460 * include/grub/i386/pc/machine.h: Likewise.
11461 * include/grub/i386/qemu/machine.h: Likewise.
11462 * include/grub/powerpc/ieee1275/machine.h: Likewise.
11463 * include/grub/sparc64/ieee1275/machine.h: Likewise.
11464 * include/grub/x86_64/efi/machine.h: Likewise.
11465
11466 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
11467 * commands/halt.c: Likewise.
11468 * commands/reboot.c: Likewise.
11469 * include/grub/autoefi.h: Likewise.
11470 * include/grub/i386/at_keyboard.h: Likewise.
11471 * include/grub/i386/kernel.h: Likewise.
11472 * include/grub/i386/loader.h: Likewise.
11473 * include/grub/i386/pc/memory.h: Likewise.
11474 * kern/dl.c: Likewise.
11475 * kern/i386/coreboot/init.c: Likewise.
11476 * loader/i386/bsd.c: Likewise.
11477 * loader/i386/linux.c: Likewise.
11478 * loader/multiboot_loader.c: Likewise.
11479 * term/i386/pc/serial.c: Likewise.
11480 * term/usb_keyboard.c: Likewise.
11481
11482 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
11483 `<grub/machine/machine.h>'
11484 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
11485 * util/misc.c: Remove `<grub/machine/machine.h>' and
11486 `<grub/machine/time.h>'.
11487
11488 * Makefile.in (enable_grub_emu): Remove variable.
11489 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
11490
11491 * conf/any-emu.rmk: New file.
11492 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
11493 (grub_emu_init.c): Move from here ...
11494 * conf/any-emu.rmk: ... to here.
11495
11496 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
11497 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
11498 * conf/any-emu.rmk: ... to here.
11499
4efeab03
RM
115002009-11-23 Robert Millan <rmh.grub@aybabtu.com>
11501
11502 * include/grub/parser.h (grub_parser_register): Document need
11503 of `name' parameter.
11504 * normal/main.c (grub_normal_read_line): Simplify prompt string.
11505 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
11506 "sh" to "grub".
11507
ea1dd8bf
RM
115082009-11-23 Robert Millan <rmh.grub@aybabtu.com>
11509
11510 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
11511 `$(XGETTEXT)'.
11512 * include/grub/i18n.h (N_): New macro.
11513 * util/mkisofs/mkisofs.h: Likewise.
11514 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
11515 around N_().
11516 (usage): Use gettext() to translate help strings when printing them.
11517
0c140626
RM
115182009-11-23 Robert Millan <rmh.grub@aybabtu.com>
11519
11520 Based on patch from Bean
11521 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
11522
11523 * video/efi_fb.c: New file.
11524 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
11525 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
11526 variables.
11527 * conf/x86_64-efi.rmk: Likewise.
11528
87d58298
RM
115292009-11-22 Robert Millan <rmh.grub@aybabtu.com>
11530
11531 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
11532 * util/i386/pc/grub-setup.c: Likewise.
11533
994cc3a3
ST
115342009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
11535
11536 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
11537 <hurd/fs.h>
11538 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
11539 file_get_storage_info to implement grub_guess_root_device.
11540
26a61d6a
FZ
115412009-11-21 Felix Zielcke <fzielcke@z-51.de>
11542
11543 * Makefile.in (target): Use make's builtin $(shell) function
11544 instead of calling directly $(SHELL) to create the locale directories,
11545 inside the $(foreach) function.
11546
74ff1dd5
FZ
115472009-11-21 Felix Zielcke <fzielcke@z-51.de>
11548
11549 * util/grub-mkrescue.in: Print an error and usage if output option
11550 has not been given.
11551
0b787d0e
FZ
115522009-11-21 Felix Zielcke <fzielcke@z-51.de>
11553
11554 Patch from Loïc Minier <loic.minier@ubuntu.com>.
11555 * util/grub.d/30_os-prober.in: Cope with Linux entries where
11556 root and /boot are on different devices.
11557
1164b270
RM
115582009-11-21 Robert Millan <rmh.grub@aybabtu.com>
11559
11560 Fix build for srcdir != objdir.
11561
11562 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
11563 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
11564 $(srcdir).
11565 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
11566 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
11567 reference for input.
11568
13774a2f
RM
115692009-11-21 Robert Millan <rmh.grub@aybabtu.com>
11570
11571 * util/grub-mkrescue.in: Use source directory direcly (without copiing
11572 or hardlinking it). Remove -J option, Joliet is not compatible with
11573 multiple source directories.
11574
efda854e
RM
115752009-11-21 Carles Pina i Estany <carles@pina.cat>
115762009-11-21 Robert Millan <rmh.grub@aybabtu.com>
11577
11578 * util/grub-mkrescue.in: Recognize `--override-directory' option.
11579 (process_input_dir): New function. Process an arbitrary input
11580 directory.
11581 Misc adjustments to support both "override mode" and system-wide mode.
11582
6c09890c
FZ
115832009-11-20 Felix Zielcke <fzielcke@z-51.de>
11584
11585 * configure.ac (UNIFONT_BDF): Rename to ...
11586 (FONT_SOURCE): ... this. Update all users.
11587
a797824f
FZ
115882009-11-20 Felix Zielcke <fzielcke@z-51.de>
11589
11590 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
11591 to the list of unifont files to look for.
11592
cd4f42b0
RM
115932009-11-19 Robert Millan <rmh.grub@aybabtu.com>
11594
11595 Patch from Joe Auricchio <jauricchio@gmail.com>
11596 * commands/minicmd.c (grub_mini_cmd_clear): New function.
11597 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
11598 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
11599
393c783d
FZ
116002009-11-19 Felix Zielcke <fzielcke@z-51.de>
11601
11602 * Makefile.in (install-local): Add a missing backslash.
11603
b2f1e327
FZ
116042009-11-19 Felix Zielcke <fzielcke@z-51.de>
11605
11606 * include/grub/x86_64/io.h: New file.
11607
f577f7a0
RM
116082009-11-19 Robert Millan <rmh.grub@aybabtu.com>
11609
11610 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
11611 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
11612 Include `"progname.h"'.
11613 (main): Initialize gettext.
11614 * util/i386/pc/grub-setup.c: Gettexttize.
11615 * util/i386/pc/grub-mkimage.c: Likewise.
11616
11617 * Makefile.in (po/*.po): Redefine as ...
11618 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
11619
3bc7896c
RM
11620 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
11621
c37943b6
RM
116222009-11-19 Robert Millan <rmh.grub@aybabtu.com>
11623
11624 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
11625 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
11626 (program_name): Remove.
11627 (main): Initialize gettext support.
6323f705
RM
11628 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
11629 Include `<libintl.h>'.
11630 (_): New macro.
c37943b6
RM
11631
11632 * util/mkisofs/eltorito.c: Gettexttize.
11633 * util/mkisofs/joliet.c: Likewise.
11634 * util/mkisofs/mkisofs.c: Likewise.
c37943b6
RM
11635 * util/mkisofs/multi.c: Likewise.
11636 * util/mkisofs/rock.c: Likewise.
11637 * util/mkisofs/tree.c: Likewise.
11638 * util/mkisofs/write.c: Likewise.
11639
3bc7896c
RM
11640 * po/POTFILES: Update with new files.
11641
5ce77c6e
RM
116422009-11-18 Robert Millan <rmh.grub@aybabtu.com>
11643
11644 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
11645 * util/mkisofs/iso9660.h: Likewise.
11646 * util/mkisofs/joliet.c: Likewise.
11647 * util/mkisofs/mkisofs.c: Likewise.
11648 * util/mkisofs/mkisofs.h: Likewise.
11649 * util/mkisofs/rock.c: Likewise.
11650 * util/mkisofs/tree.c: Likewise.
11651 * util/mkisofs/write.c: Likewise.
11652
11653 * util/mkisofs/eltorito.c (rcsid): Remove.
11654 * util/mkisofs/hash.c: Likewise.
11655 * util/mkisofs/joliet.c: Likewise.
11656 * util/mkisofs/name.c: Likewise.
11657 * util/mkisofs/rock.c: Likewise.
11658 * util/mkisofs/tree.c: Likewise.
11659 * util/mkisofs/write.c: Likewise.
11660
1dabbc77
RM
116612009-11-18 Robert Millan <rmh.grub@aybabtu.com>
11662
11663 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
11664 instead of static allocation.
11665 * util/mkisofs/match.h: Likewise.
11666
633877cb
RM
116672009-11-18 Robert Millan <rmh.grub@aybabtu.com>
11668
3bc7896c
RM
11669 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
11670 and `util/grub.d/10_linux.in'.
633877cb
RM
11671 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
11672 translatable Shell files.
11673
af1c0c85
RM
116742009-11-18 Robert Millan <rmh.grub@aybabtu.com>
11675
11676 * Makefile.in ($(srcdir)/aclocal.m4): New target.
11677
769ae37b
RM
116782009-11-17 Robert Millan <rmh.grub@aybabtu.com>
11679
11680 * INSTALL: Document Automake is needed for bootstrap.
3bc7896c 11681 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
769ae37b
RM
11682 * util/grub.d/10_kfreebsd.in (bindir): New variable.
11683 Add gettext initialization.
11684 (kfreebsd_entry): Make menuentry output translatable.
11685
116862009-11-17 Robert Millan <rmh.grub@aybabtu.com>
11687
11688 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
11689 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
11690 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
11691 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
11692 (LINGUAS): Auto-generate using `po/LINGUAS'.
3bc7896c 11693 * po/LINGUAS: New file.
769ae37b
RM
11694
116952009-11-17 Robert Millan <rmh.grub@aybabtu.com>
11696
11697 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
11698 other things).
11699 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
11700 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
11701 bindtextdomain() calls for gettext initialization.
11702
117032009-11-17 Robert Millan <rmh.grub@aybabtu.com>
11704
11705 * gnulib/progname.c: New file (imported from Gnulib).
11706 * gnulib/progname.h: Likewise.
11707 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
11708 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
11709 (usage): Replace `progname' with `program_name'.
11710 (main): Use set_program_name() for program name initialization.
11711
117122009-11-17 Robert Millan <rmh.grub@aybabtu.com>
11713
11714 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
11715 from here ...
11716 * Makefile.in (CPPFLAGS): ... to here.
11717
117182009-11-16 Robert Millan <rmh.grub@aybabtu.com>
11719
11720 * aclocal.m4: Move from here ...
11721 * acinclude.m4: ... to here.
11722 * autogen.sh: Add call to `aclocal'.
11723 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
11724
117252009-11-16 Robert Millan <rmh.grub@aybabtu.com>
11726
11727 * Makefile.in (CLEANFILES): Add `po/*.mo'.
11728 (LINGUAS): New variable.
11729 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
11730 (install-local): Install MO files.
11731 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
11732 * include/grub/i18n.h: New file.
3bc7896c
RM
11733 * po/POTFILES: New file.
11734 * po/ca.po: New file.
769ae37b
RM
11735 * util/grub.d/10_linux.in (bindir): New variable.
11736 Add gettext initialization.
11737 (linux_entry): Make menuentry output translatable.
11738 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
11739 (usage): Make --help output translatable.
11740 (main): Initialize gettext.
11741
02c0a6ad
RM
117422009-11-17 Robert Millan <rmh.grub@aybabtu.com>
11743
11744 * import_gcry.py: New file (written by Vladimir with minor
11745 adjustments).
11746 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
11747 ciphers.
11748 * INSTALL: Document that Python is required for bootstrap.
11749
117502009-11-17 Robert Millan <rmh.grub@aybabtu.com>
11751
11752 Import ciphers from libgcrypt 1.4.4.
11753
11754 * lib/libgcrypt/cipher/ChangeLog
11755 * lib/libgcrypt/cipher/ac.c
11756 * lib/libgcrypt/cipher/arcfour.c
11757 * lib/libgcrypt/cipher/bithelp.h
11758 * lib/libgcrypt/cipher/blowfish.c
11759 * lib/libgcrypt/cipher/camellia-glue.c
11760 * lib/libgcrypt/cipher/camellia.c
11761 * lib/libgcrypt/cipher/camellia.h
11762 * lib/libgcrypt/cipher/cast5.c
11763 * lib/libgcrypt/cipher/cipher.c
11764 * lib/libgcrypt/cipher/crc.c
11765 * lib/libgcrypt/cipher/des.c
11766 * lib/libgcrypt/cipher/dsa.c
11767 * lib/libgcrypt/cipher/ecc.c
11768 * lib/libgcrypt/cipher/elgamal.c
11769 * lib/libgcrypt/cipher/hash-common.c
11770 * lib/libgcrypt/cipher/hash-common.h
11771 * lib/libgcrypt/cipher/hmac-tests.c
11772 * lib/libgcrypt/cipher/md.c
11773 * lib/libgcrypt/cipher/md4.c
11774 * lib/libgcrypt/cipher/md5.c
11775 * lib/libgcrypt/cipher/primegen.c
11776 * lib/libgcrypt/cipher/pubkey.c
11777 * lib/libgcrypt/cipher/rfc2268.c
11778 * lib/libgcrypt/cipher/rijndael-tables.h
11779 * lib/libgcrypt/cipher/rijndael.c
11780 * lib/libgcrypt/cipher/rmd.h
11781 * lib/libgcrypt/cipher/rmd160.c
11782 * lib/libgcrypt/cipher/rsa.c
11783 * lib/libgcrypt/cipher/seed.c
11784 * lib/libgcrypt/cipher/serpent.c
11785 * lib/libgcrypt/cipher/sha1.c
11786 * lib/libgcrypt/cipher/sha256.c
11787 * lib/libgcrypt/cipher/sha512.c
11788 * lib/libgcrypt/cipher/tiger.c
11789 * lib/libgcrypt/cipher/twofish.c
11790 * lib/libgcrypt/cipher/whirlpool.c
11791
af2f93ac
RM
117922009-11-16 Robert Millan <rmh.grub@aybabtu.com>
11793
11794 Fix build for systems without error().
11795
11796 * gnulib/error.c: New file (imported from Gnulib).
11797 * gnulib/error.h: Likewise.
11798 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
11799 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
11800 (this variable is now used by error()).
11801
73fb3dd5
FZ
118022009-11-16 Felix Zielcke <fzielcke@z-51.de>
11803
814f5e96
FZ
11804 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
11805 instead of relying that char is signed.
73fb3dd5 11806
a691ca33
VS
118072009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
11808
11809 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
11810 blocksize different from specified.
11811 (grub_pxefs_read): Likewise.
11812
2af8f0f4
FZ
118132009-11-16 Felix Zielcke <fzielcke@z-51.de>
11814
11815 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
11816
11817 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
11818 (grub_ata_readwrite): Likewise. Update 2 format strings.
11819 (grub_atapi_read): Likewise.
11820
11821 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
11822 * conf/i386.rmk (pkglib_MODULES): ... to here ...
11823 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
11824 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
11825 (ata_mod_LDFLAGS): Move from here ...
11826 * conf/i386.rmk: ... to here ...
11827 * conf/x86_64-efi.rmk: ... and here.
11828 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
11829 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
11830
83bdecaf
RM
118312009-11-16 Robert Millan <rmh.grub@aybabtu.com>
11832
11833 Relicense multiboot.h, with RMS' blessing.
11834
11835 * include/multiboot.h: Change to X11 license.
11836
fd6fd3d7
RM
118372009-11-15 Robert Millan <rmh.grub@aybabtu.com>
11838
11839 Support --version in grub-mkisofs.
11840
11841 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
11842 (OPTION_VERSION): New macro.
11843 (ld_options): Recognize --version.
11844 (usage): Move `program_name' from here ...
11845 (program_name): ... to here. Add `static' qualifier.
11846 (main): Recognize `OPTION_VERSION'.
11847
16a88c49
FZ
118482009-11-15 Felix Zielcke <fzielcke@z-51.de>
11849
11850 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
11851 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
11852
a4158476
RM
118532009-11-14 Robert Millan <rmh.grub@aybabtu.com>
11854
11855 Fix help2man generation for mkisofs.
11856
11857 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
11858 (usage): Send output to stdout (rather than stderr).
11859
fc2208b0
RM
118602009-11-14 Robert Millan <rmh.grub@aybabtu.com>
11861
11862 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
11863 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
11864 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
11865 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
11866 (bin_SCRIPTS): Add `grub-mkfloppy'.
11867 (grub_mkfloppy_SOURCES): New variable.
11868
11869 * util/grub-mkrescue.in: New file.
11870 * util/i386/pc/grub-mkfloppy.in: New file.
11871
11872 * util/i386/coreboot/grub-mkrescue.in: Remove.
11873 * util/i386/pc/grub-mkrescue.in: Remove.
11874
8d0edf4a
RM
118752009-11-13 Robert Millan <rmh.grub@aybabtu.com>
11876
11877 * include/grub/multiboot.h (struct grub_multiboot_header): Move
11878 from here ...
11879 * include/multiboot.h (struct multiboot_header): ... to here. Update
11880 all users.
11881 * include/grub/multiboot.h (struct grub_multiboot_info): Move
11882 from here ...
11883 * include/multiboot.h (struct multiboot_info): ... to here. Update
11884 all users.
11885 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
11886 from here ...
11887 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
11888 Update all users.
11889 * include/grub/multiboot.h (struct grub_mod_list): Move
11890 from here ...
11891 * include/multiboot.h (struct multiboot_mod_list): ... to here.
11892 Update all users.
11893
a73f5969
RM
118942009-11-13 Robert Millan <rmh.grub@aybabtu.com>
11895
11896 * include/multiboot2.h (multiboot_word): Rename from this ...
11897 (multiboot2_word): ... to this. Update all users.
11898 (multiboot_header): Rename from this ...
11899 (multiboot2_header): ... to this. Update all users.
11900 (multiboot_tag_header): Rename from this ...
11901 (multiboot2_tag_header): ... to this. Update all users.
11902 (multiboot_tag_start): Rename from this ...
11903 (multiboot2_tag_start): ... to this. Update all users.
11904 (multiboot_tag_name): Rename from this ...
11905 (multiboot2_tag_name): ... to this. Update all users.
11906 (multiboot_tag_module): Rename from this ...
11907 (multiboot2_tag_module): ... to this. Update all users.
11908 (multiboot_tag_memory): Rename from this ...
11909 (multiboot2_tag_memory): ... to this. Update all users.
11910 (multiboot_tag_unused): Rename from this ...
11911 (multiboot2_tag_unused): ... to this. Update all users.
11912 (multiboot_tag_end): Rename from this ...
11913 (multiboot2_tag_end): ... to this. Update all users.
11914
1c8927f0
RM
119152009-11-13 Robert Millan <rmh.grub@aybabtu.com>
11916
11917 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
11918 this platform we should support Multiboot1 first.
11919
11920 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
11921 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
11922 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
11923
6e1e0d89
RM
119242009-11-12 Robert Millan <rmh.grub@aybabtu.com>
11925
11926 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
11927 of write calls (converting them to fwrite() if they aren't already).
11928 (get_torito_desc): Likewise.
11929 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
11930
7f2b34d8
RM
119312009-11-12 Robert Millan <rmh.grub@aybabtu.com>
11932
11933 * util/i386/pc/grub-install.in: Move from here ...
11934 * util/grub-install.in: ... to here. Update all users.
11935
c0ef3311
CW
119362009-11-11 Colin Watson <cjwatson@ubuntu.com>
11937
11938 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
11939
e1f240ff
RM
119402009-11-11 Robert Millan <rmh.grub@aybabtu.com>
11941
11942 Support for El Torito without floppy emulation.
11943
11944 * util/mkisofs/eltorito.c: Include `<errno.h>'.
11945 (init_boot_catalog): Improve error handling.
11946 (get_torito_desc): Don't use floppy emulation unless requested by
11947 user. Patch boot information table when requested via
11948 `-boot-info-table'.
11949 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
11950 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
11951 (use_boot_info_table): New variables.
11952 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
11953 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
11954 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
11955 `--eltorito-emul-floppy'.
11956 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
11957 and `OPTION_ELTORITO_EMUL_FLOPPY'.
11958 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
11959 (use_boot_info_table, get_731): New prototypes.
11960 * util/mkisofs/write.c (get_731): New function.
11961
af7d4de5
FZ
119622009-11-11 Felix Zielcke <fzielcke@z-51.de>
11963
11964 Fix the generation of the man page.
11965
11966 * util/pc/i386/grub-install.in: Source
11967 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
11968
2c55dbc0
RM
119692009-11-11 Robert Millan <rmh.grub@aybabtu.com>
11970
11971 Large file support for grub-mkisofs.
11972
11973 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
11974 * util/mkisofs/mkisofs.c (next_extent, last_extent)
11975 (session_start): Upgrade type to `uint64_t'. Update all users.
11976 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
11977 (struct directory_entry): Upgrade type of `starting_block' and
11978 `size' to `uint64_t'. Update all users.
11979 (struct deferred): Remove unused structure.
11980 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
11981 Update all users.
11982 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
11983 file is larger than `UINT32_MAX'.
11984 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
11985 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
11986 return value.
11987 (struct deferred_write): Upgrade type of `extent' and `size' to
11988 `uint64_t'. Update all users.
11989 (last_extent_written): Upgrade type to `uint64_t'. Update all
11990 users.
11991 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
11992 Update all users. Upgrade type of `remain' to `int64_t' and
11993 `use' to `size_t'. Use error() to handle fread() errors.
11994 (write_files): Rely on write_one_file() rather than calling
11995 xfwrite() directly.
11996
6a9cead5
FZ
119972009-11-09 Felix Zielcke <fzielcke@z-51.de>
11998
11999 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
12000
4825d790
RM
120012009-11-09 Robert Millan <rmh.grub@aybabtu.com>
12002
12003 * util/mkisofs/fnmatch.c: Remove.
12004 * util/mkisofs/getopt1.c: Likewise.
12005 * util/mkisofs/getopt.c: Likewise.
12006 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
12007 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
12008 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
12009 `gnulib/getopt1.c' and `gnulib/getopt.c'.
12010 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
12011
12012 * configure.ac: Detect `mingw32msvc' host_os.
12013 Check for lstat(), getuid() and getgid().
12014
12015 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
12016 instances of `u_char' with `uint8_t'.
12017
12018 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
12019 [!HAVE_GETUID] (getuid): New function (stub).
12020 [!HAVE_GETGID] (getgid): Likewise.
12021 [!HAVE_LSTAT] (lstat): Likewise.
12022 [!S_IROTH] (S_IROTH): New macro (dummy).
12023 [!S_IRGRP] (S_IRGRP): Likewise.
12024
84b860d8
RM
120252009-11-09 Robert Millan <rmh.grub@aybabtu.com>
12026
12027 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
12028 conditional expression).
12029
66e9b712
RM
120302009-11-09 Robert Millan <rmh.grub@aybabtu.com>
12031
12032 Import from Gnulib.
12033
12034 * gnulib/fnmatch.c: New file.
12035 * gnulib/fnmatch.h: Likewise.
12036 * gnulib/fnmatch_loop.c: Likewise.
12037 * gnulib/getopt.c: Likewise.
12038 * gnulib/getopt.h: Likewise.
12039 * gnulib/getopt1.c: Likewise.
12040 * gnulib/getopt_int.h: Likewise.
12041 * gnulib/gettext.h: Likewise.
12042
34f4a5b0
RM
120432009-11-09 Robert Millan <rmh.grub@aybabtu.com>
12044
12045 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
12046 * normal/handler.c (read_handler_list): Likewise.
12047
ac451143
RM
120482009-11-09 Robert Millan <rmh.grub@aybabtu.com>
12049
12050 Misc cleanup.
12051
12052 * kern/command.c (grub_register_command_prio): Use
12053 grub_zalloc() instead of explicitly zeroing data.
12054 * kern/list.c: Include `<grub/mm.h>'.
12055 (grub_named_list_find): Replace `0' with `NULL'.
12056 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
12057 (fs_module_list): Change type to `grub_named_list_t'. Update all
12058 users.
12059 * normal/dyncmd.c (read_command_list): Add space between function
12060 call and parenthesis.
12061 * normal/handler.c (read_handler_list): Likewise.
12062
4089b167
RM
120632009-11-09 Robert Millan <rmh.grub@aybabtu.com>
12064
12065 * normal/auth.c (punishment_delay): Moved from here ...
12066 (grub_auth_strcmp): ... to here (inside function).
12067
325f5037
RM
120682009-11-09 Robert Millan <rmh.grub@aybabtu.com>
12069
12070 * include/grub/list.h (struct grub_named_list): Remove `const'
12071 qualifier from `name'.
12072 (struct grub_prio_list): Likewise.
12073
7aea29a3
RM
120742009-11-09 Robert Millan <rmh.grub@aybabtu.com>
12075
12076 * normal/auth.c: Include `<grub/time.h>'.
12077 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
12078
3fd6f044
RM
120792009-11-09 Robert Millan <rmh.grub@aybabtu.com>
12080
12081 * normal/auth.c (punishment_delay): New variable.
12082 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
12083 (grub_auth_check_authentication): Punish failed login attempts with
12084 an incremental (2^N) delay.
12085
a4cd68e4
RM
120862009-11-09 Robert Millan <rmh.grub@aybabtu.com>
12087
12088 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
12089 path with $(srcdir).
12090
7ad12f43
VS
120912009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
12092
12093 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
12094
c1129f03
RM
120952009-11-09 Robert Millan <rmh.grub@aybabtu.com>
12096
12097 * util/i386/coreboot/grub-mkrescue.in: New file.
12098 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
12099 variables.
12100
12101 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
12102 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
12103 * configure.ac: Add header and function checks to satisfy grub-mkisofs
12104 requirements.
12105 * util/mkisofs/defaults.h: New file.
12106 * util/mkisofs/eltorito.c: Likewise.
12107 * util/mkisofs/exclude.h: Likewise.
12108 * util/mkisofs/fnmatch.c: Likewise.
12109 * util/mkisofs/getopt.c: Likewise.
12110 * util/mkisofs/getopt1.c: Likewise.
12111 * util/mkisofs/hash.c: Likewise.
12112 * util/mkisofs/include/fctldefs.h: Likewise.
12113 * util/mkisofs/include/mconfig.h: Likewise.
12114 * util/mkisofs/include/prototyp.h: Likewise.
12115 * util/mkisofs/include/statdefs.h: Likewise.
12116 * util/mkisofs/iso9660.h: Likewise.
12117 * util/mkisofs/joliet.c: Likewise.
12118 * util/mkisofs/match.c: Likewise.
12119 * util/mkisofs/match.h: Likewise.
12120 * util/mkisofs/mkisofs.c: Likewise.
12121 * util/mkisofs/mkisofs.h: Likewise.
12122 * util/mkisofs/multi.c: Likewise.
12123 * util/mkisofs/name.c: Likewise.
12124 * util/mkisofs/rock.c: Likewise.
12125 * util/mkisofs/tree.c: Likewise.
12126 * util/mkisofs/write.c: Likewise.
12127
ec8bb77d
VS
121282009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
12129
12130 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
12131 being insecure.
12132
3716b12c
RM
121332009-11-08 Robert Millan <rmh.grub@aybabtu.com>
12134
12135 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
12136 `grub-mkimage' (and use $0 when possible).
12137
b97b7b91
RM
121382009-11-08 Robert Millan <rmh.grub@aybabtu.com>
12139
12140 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
12141 error message for excessively large memory map.
12142
04114812
RM
121432009-11-08 Robert Millan <rmh.grub@aybabtu.com>
12144
12145 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
12146 executable bit.
12147
e4eb2373
RM
121482009-11-08 Robert Millan <rmh.grub@aybabtu.com>
12149
12150 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
12151 message for coreboot users.
12152
c926e1d5 121532009-11-07 Robert Millan <rmh.grub@aybabtu.com>
12154
12155 Fix build with GNU gold.
12156
12157 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
12158 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
12159 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
12160 link addresses.
12161 * aclocal.m4: Likewise.
12162
86e5b1db 121632009-11-04 Felix Zielcke <fzielcke@z-51.de>
12164
12165 * configure.ac (AC_PREREQ): Bump to 2.59d.
12166 * INSTALL: Make it more clear when Autoconf and Ruby are
12167 needed and when to run `./autogen.sh'.
12168
246cd78f 121692009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
12170
12171 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
12172 OSes.
12173
4f9dfb37 121742009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
12175
12176 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
12177
b82bd5e1 121782009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
12179
12180 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
12181 giving it to GNU Mach.
12182
ff1a9bca 121832009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
12184
12185 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
12186 GNU partition number to get internal GRUB partition number.
12187
61697d9c 121882009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
12189
12190 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
12191 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
12192
a50569e1 121932009-11-01 Robert Millan <rmh.grub@aybabtu.com>
12194
12195 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
12196 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
12197 case.
12198
5b153867 121992009-11-01 Felix Zielcke <fzielcke@z-51.de>
12200
12201 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
12202
d9e2cd70 122032009-10-30 Robert Millan <rmh.grub@aybabtu.com>
12204
12205 Fix build problem.
12206
12207 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
12208 `-isystem=$(srcdir)/include'.
12209
805111a4 122102009-10-30 Robert Millan <rmh.grub@aybabtu.com>
12211
12212 * util/i386/pc/grub-install.in: Remove hint that device.map should be
12213 checked (grub-install doesn't currently rely on it).
12214
fa6e945f 122152009-10-29 Robert Millan <rmh.grub@aybabtu.com>
12216
12217 Revert SVN r2660.
12218
12219 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
12220 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
12221 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
12222 * conf/i386-ieee1275.rmk: Likewise.
12223 * conf/i386-pc.rmk: Likewise.
12224 * conf/powerpc-ieee1275.rmk: Likewise.
12225 * conf/sparc64-ieee1275.rmk: Likewise.
12226 * conf/x86_64-efi.rmk: Likewise.
12227
cee15086 122282009-10-28 Robert Millan <rmh.grub@aybabtu.com>
12229
12230 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
12231
95b9239e 122322009-10-28 Robert Millan <rmh.grub@aybabtu.com>
12233
12234 * include/grub/misc.h: Stop checking for APPLE_CC.
12235
2ed19dfd 122362009-10-28 Robert Millan <rmh.grub@aybabtu.com>
12237
12238 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
12239 doesn't cause an infinite call loop.
12240
fdcdde19 122412009-10-28 Felix Zielcke <fzielcke@z-51.de>
12242
12243 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
12244 strings.
12245
cefabfe1 122462009-10-26 Robert Millan <rmh.grub@aybabtu.com>
12247
12248 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
12249 variable.
12250 * Makefile.in: Likewise.
12251
ed96ab6d 122522009-10-26 Robert Millan <rmh.grub@aybabtu.com>
12253
12254 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
12255
0579b753 122562009-10-26 Robert Millan <rmh.grub@aybabtu.com>
12257
12258 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
12259
478df409 122602009-10-26 Robert Millan <rmh.grub@aybabtu.com>
12261
12262 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
12263
083d1679 122642009-10-26 Robert Millan <rmh.grub@aybabtu.com>
12265
12266 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
12267 from here ...
12268 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
12269
5947ae32 122702009-10-26 Robert Millan <rmh.grub@aybabtu.com>
12271
12272 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
12273 in $(MAKEINFO) invocation. This makes it clear in output that
12274 errors are being ignored.
12275
94180ff6 122762009-10-26 Robert Millan <rmh.grub@aybabtu.com>
12277
12278 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
12279 from here ...
12280 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
12281 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
12282 * conf/i386-ieee1275.rmk: Likewise.
12283 * conf/i386-pc.rmk: Likewise.
12284 * conf/powerpc-ieee1275.rmk: Likewise.
12285 * conf/sparc64-ieee1275.rmk: Likewise.
12286 * conf/x86_64-efi.rmk: Likewise.
12287
9031b03a 122882009-10-26 Colin Watson <cjwatson@ubuntu.com>
12289
12290 * util/grub-editenv.c (main): If only a command is given, use
12291 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
12292 (usage): FILENAME is now optional and has a default.
12293
e4f6809b 122942009-10-26 Colin Watson <cjwatson@ubuntu.com>
12295
12296 Improve grub-mkconfig performance when there are several menu
12297 entries on a single filesystem.
12298
12299 * util/grub.d/10_linux.in (linux_entry): Cache the output of
12300 prepare_grub_to_access_device.
12301 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
12302 * util/grub.d/30_os-prober.in: Likewise.
12303
67937d4d 123042009-10-26 Robert Millan <rmh.grub@aybabtu.com>
12305
12306 * util/grub.d/10_freebsd.in: Remove.
12307 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
12308 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
12309
ee3756cc 123102009-10-26 Robert Millan <rmh.grub@aybabtu.com>
12311
5c35048e 12312 * docs/grub.cfg: Fix example usage of *BSD loaders.
ee3756cc 12313
4dea1c6f 123142009-10-25 Robert Millan <rmh.grub@aybabtu.com>
12315
12316 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
12317 grub_util_error() call.
12318
042484d7 123192009-10-25 Robert Millan <rmh.grub@aybabtu.com>
12320
12321 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
12322 `reserved_first_sector' member.
12323 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
12324 `reserved_first_sector' to 1.
12325 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
12326 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
12327 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
12328 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
12329 filesystems which begin at first sector.
12330 (options): New option --skip-fs-probe.
12331 (main): Handle --skip-fs-probe and pass it to setup().
12332
d64448a7 123332009-10-25 Robert Millan <rmh.grub@aybabtu.com>
12334
12335 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
12336 (memset): Fix function prototype.
12337
508d42ec 123382009-10-25 Robert Millan <rmh.grub@aybabtu.com>
123392009-10-25 Vasily Averin <vvs@parallels.com>
12340
12341 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
12342 `dirent.direntlen == 0'.
12343
b240e30c 123442009-10-25 Robert Millan <rmh.grub@aybabtu.com>
12345
12346 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
12347 `cpio'.
12348 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
12349
346e7fbe 123502009-10-25 Robert Millan <rmh.grub@aybabtu.com>
12351
12352 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
12353 `__trampoline_setup' and `__ucmpdi2'.
12354 * include/grub/powerpc/libgcc.h: Only export symbols for functions
12355 that libgcc provides.
12356
cdb308b0 123572009-10-25 Robert Millan <rmh.grub@aybabtu.com>
12358
12359 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
12360 * include/grub/sparc64/libgcc.h (memset): Likewise.
12361 * include/grub/misc.h (memset, memcmp): New function prototypes.
12362
fb26abc2 123632009-10-25 Robert Millan <rmh.grub@aybabtu.com>
12364
12365 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
12366 `cpio'.
12367 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
12368
f6693890 123692009-10-25 Robert Millan <rmh.grub@aybabtu.com>
12370
12371 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
12372 * docs/grub.cfg: Compensate for recent change in multiboot
12373 loader (since 2009-08-14 it won't pass filename to payload).
12374 * util/grub.d/10_hurd.in: Likewise.
12375
0933cdc0 123762009-10-21 Felix Zielcke <fzielcke@z-51.de>
12377
12378 * config.guess: Update to latest version from config git
12379 repository.
12380 * config.sub: Likewise.
12381
3b2fe8c2 123822009-10-20 Robert Millan <rmh.grub@aybabtu.com>
12383
12384 Fix build on sparc64.
12385
12386 * configure.ac: Perform checks for libgcc symbols before
12387 adding `-nostdlib' to LDFLAGS.
12388
46695a62 123892009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
12390
12391 Let user specify OpenBSD root device.
12392
12393 * loader/i386/bsd.c (openbsd_root): New variable.
12394 (openbsd_opts): New option 'root'.
12395 (OPENBSD_ROOT_ARG): New macro.
12396 (grub_openbsd_boot): Use 'openbsd_root'.
12397 (grub_cmd_openbsd): Fill 'openbsd_root'.
12398
d2b6b7fc 123992009-10-16 Robert Millan <rmh.grub@aybabtu.com>
12400
12401 * NEWS: Misc adjustments.
12402
421bd7ac 124032009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
12404
12405 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
12406
f1d29d87 124072009-10-16 Robert Millan <rmh.grub@aybabtu.com>
12408
12409 * configure.ac: Bump version to 1.97.
12410
6f3cd880 124112009-10-16 Colin Watson <cjwatson@ubuntu.com>
12412
12413 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
12414 -mno-3dnow on x86 architectures. Some toolchains enable these
12415 features by default, but they rely on registers that aren't enabled
12416 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
12417
035f7122 124182009-10-15 Robert Millan <rmh.grub@aybabtu.com>
12419
12420 Make entry text a bit more readable.
12421
12422 * util/grub.d/10_linux.in: Add `with' before `Linux'.
12423
44998e58 124242009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
12425
12426 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
12427
cd2851b3 124282009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
12429
12430 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
12431 operations.
12432
c6f3b249 124332009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
12434
12435 * configure.ac: Add missing dollar.
12436
6b5886ba 124372009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
12438
12439 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
12440
12441 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
12442 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
12443 exports.
12444 * include/grub/sparc64/libgcc.h: Likewise. Use
12445 preprocessor conditionals.
12446
e9d66f6d 124472009-10-14 Robert Millan <rmh.grub@aybabtu.com>
12448
12449 * conf/common.rmk (grub-dumpbios): Remove rule.
12450 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
12451 * util/grub-dumpbios.in: Remove file.
12452
9155bc17 124532009-10-14 Robert Millan <rmh.grub@aybabtu.com>
12454
12455 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
12456 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
12457
12458 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
12459 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
12460 users.
12461
12462 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
12463 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
12464 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
12465 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
12466 users.
12467
bf7f7a18 124682009-10-12 Robert Millan <rmh.grub@aybabtu.com>
12469
12470 * term/tparm.c: Switch to GPLv3.
12471
86564c26 124722009-10-09 Robert Millan <rmh.grub@aybabtu.com>
12473
12474 * include/grub/i386/cpuid.h: Add header protection.
12475
5c936493 124762009-10-09 Robert Millan <rmh.grub@aybabtu.com>
12477
12478 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
12479
12480 * include/grub/i386/cpuid.h: New file.
12481 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
12482 (has_longmode): Rename to ...
12483 (grub_cpuid_has_longmode): ... this. Update all users. Remove
12484 `static' attribute.
12485 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
12486 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
12487 on a CPU that doesn't implement AMD64 instruction set.
12488
186e7cf2 124892009-10-06 Colin Watson <cjwatson@ubuntu.com>
12490
12491 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
12492 that version.texi is rebuilt on version number changes.
12493
83b65c4a 124942009-10-06 Colin Watson <cjwatson@ubuntu.com>
12495
12496 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
12497 Fixes bug #27602.
12498
d244281c 124992009-10-06 Colin Watson <cjwatson@ubuntu.com>
12500
12501 * util/i386/pc/grub-install.in: Source
12502 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
12503 that the --grub-probe option will work.
12504 * util/sparc64/ieee1275/grub-install.in: Likewise.
12505
da25306d 125062009-10-05 Robert Millan <rmh.grub@aybabtu.com>
12507
12508 * configure.ac: Bump version to 1.97~beta4.
12509
e8ee83c0 125102009-10-03 Robert Millan <rmh.grub@aybabtu.com>
12511
12512 Resync grub-mkdevicemap in x86_64-efi.
12513
12514 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
12515 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
12516 `util/devicemap.c'.
12517
50dcabcf 125182009-10-01 Colin Watson <cjwatson@ubuntu.com>
12519
12520 * util/grub-editenv.c (create_envblk_file): Write new block with a
12521 .new suffix and then rename it into place, to ensure atomic
12522 creation.
12523
0e51c3a7 125242009-09-28 Robert Millan <rmh.grub@aybabtu.com>
12525
12526 Do not automatically install headers.
12527
12528 * Makefile.in (include_DATA): Remove. Update all users.
12529
31299a95 125302009-09-26 Robert Millan <rmh.grub@aybabtu.com>
12531
12532 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
12533 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
12534
12535 * util/osdetect.lua: Remove.
12536 * script/lua/lauxlib.c: Likewise.
12537 * script/lua/ldebug.c: Likewise.
12538 * script/lua/grub_main.c: Likewise.
12539 * script/lua/lauxlib.h: Likewise.
12540 * script/lua/ldebug.h: Likewise.
12541 * script/lua/ltablib.c: Likewise.
12542 * script/lua/liolib.c: Likewise.
12543 * script/lua/lstrlib.c: Likewise.
12544 * script/lua/lualib.h: Likewise.
12545 * script/lua/ldo.c: Likewise.
12546 * script/lua/ldump.c: Likewise.
12547 * script/lua/ldo.h: Likewise.
12548 * script/lua/loslib.c: Likewise.
12549 * script/lua/lundump.c: Likewise.
12550 * script/lua/grub_lib.c: Likewise.
12551 * script/lua/ldblib.c: Likewise.
12552 * script/lua/lundump.h: Likewise.
12553 * script/lua/lmem.c: Likewise.
12554 * script/lua/grub_lib.h: Likewise.
12555 * script/lua/lmathlib.c: Likewise.
12556 * script/lua/lstate.c: Likewise.
12557 * script/lua/ltm.c: Likewise.
12558 * script/lua/lvm.c: Likewise.
12559 * script/lua/lmem.h: Likewise.
12560 * script/lua/lstate.h: Likewise.
12561 * script/lua/ltm.h: Likewise.
12562 * script/lua/ltable.c: Likewise.
12563 * script/lua/lvm.h: Likewise.
12564 * script/lua/llex.c: Likewise.
12565 * script/lua/lgc.c: Likewise.
12566 * script/lua/grub_lua.h: Likewise.
12567 * script/lua/loadlib.c: Likewise.
12568 * script/lua/lfunc.c: Likewise.
12569 * script/lua/lopcodes.c: Likewise.
12570 * script/lua/lparser.c: Likewise.
12571 * script/lua/ltable.h: Likewise.
12572 * script/lua/llex.h: Likewise.
12573 * script/lua/lgc.h: Likewise.
12574 * script/lua/lfunc.h: Likewise.
12575 * script/lua/lbaselib.c: Likewise.
12576 * script/lua/lopcodes.h: Likewise.
12577 * script/lua/lparser.h: Likewise.
12578 * script/lua/lzio.c: Likewise.
12579 * script/lua/linit.c: Likewise.
12580 * script/lua/lobject.c: Likewise.
12581 * script/lua/llimits.h: Likewise.
12582 * script/lua/lstring.c: Likewise.
12583 * script/lua/lzio.h: Likewise.
12584 * script/lua/lapi.c: Likewise.
12585 * script/lua/lcode.c: Likewise.
12586 * script/lua/lua.h: Likewise.
12587 * script/lua/lobject.h: Likewise.
12588 * script/lua/lstring.h: Likewise.
12589 * script/lua/lapi.h: Likewise.
12590 * script/lua/lcode.h: Likewise.
12591 * script/lua/luaconf.h: Likewise.
12592
cb8a2c38 125932009-09-26 Colin Watson <cjwatson@ubuntu.com>
12594
12595 * docs/grub.texi (Command-line and menu entry commands): Document
12596 date and echo commands.
12597
6b9b6276 125982009-09-24 Pavel Roskin <proski@gnu.org>
12599
12600 * include/grub/kernel.h (struct grub_module_header): Remove
12601 `grub_module_header_types'. Make `type' unsigned. Make `size'
12602 32-bit on all platforms.
12603 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
12604 8-bit field. Use grub_host_to_target32() for `size'.
12605 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
12606 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
12607 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
12608
4e5a02a7 126092009-09-24 Robert Millan <rmh.grub@aybabtu.com>
12610
12611 Fix "lost keypress" bug in at_keyboard.
12612
12613 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
12614 Checks for readyness of input buffer (without flushing it).
12615 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
12616 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
12617
c6dcedf6 126182009-09-24 Robert Millan <rmh.grub@aybabtu.com>
12619
12620 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
12621 size check within GRUB_MACHINE_PCBIOS section.
12622
74c958b1 126232009-09-24 Robert Millan <rmh.grub@aybabtu.com>
12624
12625 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
12626 return value.
12627 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
12628 KEYBOARD_ISREADY check.
12629 (grub_at_keyboard_checkkey): Rename to ...
12630 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
12631 Remove gratuitous cast.
12632
ff420223 126332009-09-23 Colin Watson <cjwatson@ubuntu.com>
12634
12635 * configure.ac: Call AC_PROG_MKDIR_P.
12636 * Makefile.in (docs/stamp-vti): Create docs directory. Create
12637 version.texi in $(builddir) rather than $(srcdir).
12638 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
12639 to makeinfo's @include search path.
12640
d96875df 126412009-09-23 Felix Zielcke <fzielcke@z-51.de>
12642
12643 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
12644
9b3f8365 126452009-09-23 Felix Zielcke <fzielcke@z-51.de>
12646
12647 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
12648 for `*.dpkg-new'.
12649
c44c90db 126502009-09-21 Colin Watson <cjwatson@ubuntu.com>
12651
12652 Build info documentation. Some code borrowed from Automake.
12653
12654 * configure.ac: Check for makeinfo.
12655 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
12656 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
12657 docs/version.texi.
12658 (MOSTLYCLEANFILES): Add vti.tmp.
12659 (docs/version.texi, docs/stamp-vti): Update automatically.
12660 (docs/grub.info): Build info documentation. Use --force and ignore
12661 errors for now.
12662 (all-local): Add $(INFOS).
12663 (install-local): Install info files.
12664 (uninstall): Uninstall info files.
12665 * docs/version.texi: Remove from revision control. This file is
12666 automatically generated on build now.
12667 * gendistlist.sh: Add `*.info'.
12668
e0b37bb5 126692009-09-21 Felix Zielcke <fzielcke@z-51.de>
12670
12671 * kern/term.c: Fix indentation.
12672
5a78865b 126732009-09-21 Felix Zielcke <fzielcke@z-51.de>
12674
12675 * util/hostdisk.c: Fix a comment.
12676
dace7e8a 126772009-09-20 Robert Millan <rmh.grub@aybabtu.com>
12678
12679 Fix regression introduced in r2539.
12680
12681 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
12682 to 0xA1.
12683
a83d079b 126842009-09-19 Colin Watson <cjwatson@ubuntu.com>
12685
12686 * util/grub.d/30_os-prober.in: Don't throw away stderr from
4cbbccec 12687 os-prober. Under normal operation, it does not print anything to
12688 stderr; if it does, we need to debug it, and throwing away stderr
12689 makes that excessively difficult.
a83d079b 12690
be94a509 126912009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
12692
12693 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
12694
63f745e8 126952009-09-16 Robert Millan <rmh.grub@aybabtu.com>
12696
12697 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
12698 AC_LANG_PROGRAM from autoconf.
12699 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
12700 prototypes (fixes warning).
12701
12702 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
12703 `--disable-werror' was used.
12704
bbb2a70f 127052009-09-16 Robert Millan <rmh.grub@aybabtu.com>
12706
12707 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
12708 uninitialized `lastaddr'.
12709
77c24f1d 127102009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
12711
0f0b8c87 12712 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
77c24f1d 12713
07197f23 127142009-09-14 Colin Watson <cjwatson@ubuntu.com>
12715
12716 * commands/test.c (get_fileinfo): Return immediately if
12717 grub_fs_probe fails.
12718
dabf1798 127192009-09-14 José Martínez <xosemp@gmail.com>
12720
12721 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
12722
d52109a7 127232009-09-14 Colin Watson <cjwatson@ubuntu.com>
12724
12725 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
12726 output.
12727
56532179 127282009-09-13 Robert Millan <rmh.grub@aybabtu.com>
12729
12730 * configure.ac: Remove --enable-grub-pe2elf. Only build
12731 grub-pe2elf when needed by the build system itself.
12732 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
12733
8ef070f5 127342009-09-12 Robert Millan <rmh.grub@aybabtu.com>
12735
12736 * configure.ac: Bump version to 1.97~beta3.
12737 * docs/version.texi: Likewise.
12738
61229557 127392009-09-12 Robert Millan <rmh.grub@aybabtu.com>
12740
12741 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
12742 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
12743 from here ...
12744 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
12745 (grub_linux_setup_video): ... to here (with some adjustments).
12746
5c9f8d84 127472009-09-12 Robert Millan <rmh.grub@aybabtu.com>
12748
12749 Fix memory corruption issue (spotted by Colin Watson).
12750
12751 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
12752 causing returned size to be stored in an incorrect memory location.
12753 Fix use of uninitialized value when storing the returned size.
12754
e8f5d6e9 127552009-09-12 Yves Blusseau <blusseau@zetam.org>
12756
12757 Change clean rules to properly remove files
12758
12759 * genmk.rb: add new clean rules
12760 * Makefile.in (clean): add the new targets
12761 (mostlyclean): likewise
12762
cda2a409 127632009-09-11 Colin Watson <cjwatson@ubuntu.com>
12764
12765 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
12766 to grub_uint64_t.
12767 * fs/ntfs.c (init_file): Understand 64-bit sizes for
12768 non-resident files.
12769
86695375 127702009-09-11 Colin Watson <cjwatson@ubuntu.com>
12771
12772 * configure.ac: Don't look for help2man when cross-compiling. Fixes
12773 part of bug #27349.
12774
8aa1541a 127752009-09-10 Felix Zielcke <fzielcke@z-51.de>
12776
12777 * util/grub-mkconfig.in: Make the created config mode 400 and
12778 print a warning if it fails.
12779
48d9bb0a 127802009-09-10 Robert Millan <rmh.grub@aybabtu.com>
12781
12782 * util/grub.d/40_custom.in: Ask user to type custom entries below
12783 comment, rather than below 'exec tail' line.
12784
3b0521be 127852009-09-10 Colin Watson <cjwatson@ubuntu.com>
12786
12787 * util/grub.d/40_custom.in: Make sure that the explanatory text is
12788 visible in grub.cfg.
12789
50051d55 127902009-09-10 Colin Watson <cjwatson@ubuntu.com>
12791
12792 * util/grub.d/40_custom.in: Make it a little clearer how to use this
12793 file.
12794
c0d34387 127952009-09-10 Felix Zielcke <fzielcke@z-51.de>
12796
12797 * docs/grub.cfg: Add an example menu entry for memtest86+.
12798
80a608f3 127992009-09-09 Felix Zielcke <fzielcke@z-51.de>
12800
a2094832 12801 * config.guess: Update to latest version from config git.
80a608f3 12802 * config.sub: Likewise.
12803
99423078 128042009-09-08 Colin Watson <cjwatson@ubuntu.com>
12805
12806 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
12807 unknown-command case. Fixes bug #27320.
12808
44454e4c 128092009-09-08 Felix Zielcke <fzielcke@z-51.de>
12810
12811 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
12812 `help' if the command exists.
12813
e30d87ad 128142009-09-06 Robert Millan <rmh.grub@aybabtu.com>
12815
12816 * INSTALL: Require GCC 4.1.3 or later.
12817
9a86f1ec 128182009-09-06 Yves Blusseau <blusseau@zetam.org>
12819
12820 * Makefile.in (RMKFILES): add i386-qemu.rmk
12821 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
12822 $(srcdir)/stamp-h.in
12823
7f26d466 128242009-09-05 Robert Millan <rmh.grub@aybabtu.com>
12825
12826 * util/grub-probe.c (probe): Comment out buggy codepath, which
12827 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
12828 should be re-enabled after 1.97.
12829
3a613259 128302009-09-05 Felix Zielcke <fzielcke@z-51.de>
12831
12832 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
12833 find searches for.
12834
197f76c7 128352009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
12836
12837 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
12838 unnecessary calls to grub_error.
12839
70ba68ce 128402009-09-04 Colin Watson <cjwatson@ubuntu.com>
12841
12842 * NEWS: Mention `keystatus' and Unicode fonts.
12843
4ff0d7a4 128442009-09-04 Robert Millan <rmh.grub@aybabtu.com>
12845
12846 * configure.ac: Bump version to 1.97~beta2.
12847 * docs/version.texi: Likewise.
12848
77c55a87 128492009-09-03 Colin Watson <cjwatson@ubuntu.com>
12850
12851 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
12852 containing unwind information in some cases where it previously did
12853 not. Use -fno-dwarf2-cfi-asm if available to restore the old
12854 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
12855 discussion.
12856
f79572cd 128572009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
12858
12859 Embedding loadenv module into grub-emu
12860
12861 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
12862 commands/loadenv.c
12863 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
12864 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
12865 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
12866 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
12867 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
12868 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
12869
93a81088 128702009-09-03 Magnus Granberg <zorry@ume.nu>
12871
12872 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
12873 include -fPIE in the default specs.
12874 * configure.ac: Check if pie_possible is yes and add -fno-PIE
12875 to TARGET_CFLAGS.
12876
160034b2 128772009-09-03 Felix Zielcke <fzielcke@z-51.de>
12878
12879 * INSTALL: Note that GNU Bison 2.3 or later is required.
12880
087c07c4 128812009-09-03 Colin Watson <cjwatson@ubuntu.com>
12882
12883 * kern/i386/pc/startup.S: Fix typo.
12884
cbf978c0 128852009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
12886
12887 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
12888 according to GCS.
12889
128902009-09-02 Colin Watson <cjwatson@ubuntu.com>
f0910644 12891
12892 * docs/grub.texi (Naming convention): Describe one-based partition
12893 numbering.
12894 (Device syntax): Likewise.
12895 (File name syntax): Likewise.
12896 (Block list syntax): Likewise.
12897 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
12898 menu.lst.
12899 (File name syntax): Likewise.
12900 (Command-line and menu entry commands): Document acpi, blocklist,
12901 crc, export, insmod, keystatus, ls, set, and unset commands.
12902
f3e8cdfd 129032009-09-02 Colin Watson <cjwatson@ubuntu.com>
12904
12905 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
12906 to avoid implying that only one of --shift, --ctrl, or --alt may be
12907 used.
12908
c0bc232b 129092009-09-02 Colin Watson <cjwatson@ubuntu.com>
12910
12911 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
12912 rather than comparing against S_IFREG, which will almost never work.
12913
aa0f752d 129142009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
12915
12916 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
12917 (write_blocklists): Likewise.
12918
ecb3166a 129192009-09-01 Colin Watson <cjwatson@ubuntu.com>
12920
12921 * script/lua/grub_lua.h (fputs): Supply a format string as the first
12922 argument to grub_printf.
12923
c403a125 129242009-09-01 Felix Zielcke <fzielcke@z-51.de>
31aba781 12925
12926 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
c403a125 12927 non GNU test.
31aba781 12928
b5e7312c 129292009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
12930
12931 * kern/file.c (grub_file_read): Spelling fix
12932
fe00f472 129332009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
12934
12935 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
12936 loading of headers in some cases.
12937
cc55302e 129382009-08-30 Robert Millan <rmh.grub@aybabtu.com>
12939
12940 * configure.ac: Bump version to 1.97~beta1.
12941 * docs/version.texi: Likewise.
12942
5c90cdd2 129432009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
64bf71d0 12944
12945 * include/grub/i386/xnu.h: Add license header.
12946 include grub/err.h explicitly.
12947
c90edae4 129482009-08-29 Robert Millan <rmh.grub@aybabtu.com>
12949
12950 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
12951 to `ufs' in the vfs.root.mountfrom kernel parameter.
12952
d8888b5c 129532009-08-29 Robert Millan <rmh.grub@aybabtu.com>
12954
12955 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
12956
12957 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
12958 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
12959
12960 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
12961 `ARRAY_SIZE' macro.
12962
6f07b921 129632009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
12964
12965 * kern/file.c (grub_file_read): Check offset.
12966 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
12967 * fs/jfs.c (grub_jfs_read_file): Likewise.
12968 * fs/ntfs.c (grub_ntfs_read): Likewise.
12969 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
12970 * fs/minix.c (grub_minix_read_file): Correct offset check.
12971 * fs/ufs.c (grub_ufs_read_file): Likewise.
12972
b4f34077 129732009-08-28 Colin Watson <cjwatson@ubuntu.com>
12974
12975 * term/i386/pc/console.c (bios_data_area): Cast
12976 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
12977
e7c69859 129782009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
12979
12980 1-bit optimised blitters.
12981
12982 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
12983 prototype.
12984 (grub_video_fbblit_replace_24bit_1bit): Likewise.
12985 (grub_video_fbblit_replace_16bit_1bit): Likewise.
12986 (grub_video_fbblit_replace_8bit_1bit): Likewise.
12987 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
12988 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
12989 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
12990 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
12991 function.
12992 (grub_video_fbblit_replace_24bit_1bit): Likewise.
12993 (grub_video_fbblit_replace_16bit_1bit): Likewise.
12994 (grub_video_fbblit_replace_8bit_1bit): Likewise.
12995 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
12996 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
12997 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
12998 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
12999 when possible.
13000 * video/video.c (grub_video_get_blit_format): Return
13001 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
13002
a57da43f 130032009-08-28 Colin Watson <cjwatson@ubuntu.com>
13004
13005 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
13006 the first argument to grub_printf.
13007
4cbe67e5 130082009-08-28 Colin Watson <cjwatson@ubuntu.com>
130092009-08-28 Robert Millan <rmh.grub@aybabtu.com>
13010
13011 Add `getkeystatus' terminal method. Add a new `keystatus' command
13012 to query it.
13013
13014 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
13015 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
13016 modifier key bitmasks.
13017 (struct grub_term_input): Add `getkeystatus' member.
13018 (grub_getkeystatus): Add prototype.
13019 * kern/term.c (grub_getkeystatus): New function.
13020
13021 * include/grub/i386/pc/memory.h
13022 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
13023 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
13024 Data Area layout.
13025 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
13026 (grub_console_term_input): Set `getkeystatus' member.
13027 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
13028 constants.
13029 (grub_usb_keyboard_getreport): Likewise.
13030 (grub_usb_keyboard_checkkey): Likewise.
13031 (grub_usb_keyboard_getkeystatus): New function.
13032 (grub_usb_keyboard_term): Set `getkeystatus' member.
13033
13034 * commands/keystatus.c: New file.
13035 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
13036 (keystatus_mod_SOURCES): New variable.
13037 (keystatus_mod_CFLAGS): Likewise.
13038 (keystatus_mod_LDFLAGS): Likewise.
13039 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
13040 commands/keystatus.c.
13041 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
13042 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13043 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
13044 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13045 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13046 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
4cbe67e5 13047
6e2a9085 130482009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
13049
13050 Split befs.mod and afs.mod into *_be.mod and *.mod
13051
13052 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
13053 (grub_fstest_SOURCES): Likewise.
13054 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
13055 (afs_be_mod_SOURCES): New variable.
13056 (afs_be_mod_CFLAGS): Likewise.
13057 (afs_be_mod_LDFLAGS): Likewise.
13058 (befs_be_mod_SOURCES): Likewise.
13059 (befs_be_mod_CFLAGS): Likewise.
13060 (befs_be_mod_LDFLAGS): Likewise.
13061 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
13062 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
13063 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13064 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
13065 (grub_emu_SOURCES): Likewise.
13066 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13067 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13068 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
13069 * fs/afs_be.c: New file.
13070 * fs/befs_be.c: New file.
13071 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
13072 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
13073 (U16): Replaced with ...
13074 (grub_afs_to_cpu16): ...this. All users updated.
13075 (U32): Replaced with ...
13076 (grub_afs_to_cpu32): ...this. All users updated.
13077 (U64): Replaced with ...
13078 (grub_afs_to_cpu64): ...this. All users updated.
13079 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
13080 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
ad8ea1f4 13081 (grub_afs_validate_sblock): Check only one endianness.
6e2a9085 13082 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
13083 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
13084 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
13085 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
13086 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
13087 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
13088 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
13089 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
13090
32a71655 130912009-08-26 Bean <bean123ch@gmail.com>
13092
13093 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
13094 64-bit number.
13095 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
13096 (grub_xfs_inode_block): Change return type to grub_uint64_t.
13097 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
13098
552bf6c5 130992009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
13100
13101 NetBSD memory map support.
13102
13103 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
13104 (grub_netbsd_btinfo_mmap_header): New structure.
13105 (grub_netbsd_btinfo_mmap_entry): Likewise.
13106 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
13107
1ae2078c 131082009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
13109
13110 Enable bsd.mod on coreboot.
13111
13112 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
13113 (bsd_mod_SOURCES): New variable.
13114 (bsd_mod_CFLAGS): Likewise.
13115 (bsd_mod_LDFLAGS): Likewise.
13116 (bsd_mod_ASFLAGS): Likewise.
13117 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
13118 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
13119
beefc598 131202009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
13121
13122 Cleanup NetBSD root support.
13123
13124 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
13125 grub_bsd_get_device.
13126 Fix typo.
13127
3b76e68b 131282009-08-25 Felix Zielcke <fzielcke@z-51.de>
13129
13130 * util/grub.d/00_header.in: Move check for the video backend of
13131 gfxterm from here ...
13132 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
13133 a suitable video backend.
13134
aea664ea 131352009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
13136
13137 Fix breakage in grub-setup.
13138
13139 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
13140 "msdos_partition_map".
13141
ff747d50 131422009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
13143
13144 Fix breakage in normal/auth.c.
13145
13146 * normal/auth.c (grub_iswordseparator): New function.
13147
e7e1f93f 131482009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
13149
13150 Authentication support.
13151
13152 * commands/password.c: New file.
13153 * conf/common.rmk (pkglib_MODULES): Add password.mod.
13154 (password_mod_SOURCES): New variable.
13155 (password_mod_CFLAGS): Likewise.
13156 (password_mod_LDFLAGS): Likewise.
13157 (normal_mod_SOURCES): Add normal/auth.c.
13158 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
13159 normal/auth.c.
13160 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
13161 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13162 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
13163 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13164 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13165 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
13166 * include/grub/auth.h: New file.
13167 * include/grub/err.h (grub_err_t): New enum value
13168 GRUB_ERR_ACCESS_DENIED.
13169 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
13170 'users'.
13171 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
13172 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
13173 users updated.
13174 * normal/auth.c: New file.
13175 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
13176 (grub_cmdline_run): Don't allow to go to command line without
13177 authentication.
13178 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
13179 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
13180 menuentry without superuser rights.
13181 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
13182 user isn't a superuser.
13183
70f1161d 131842009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
13185
13186 Save space by inlining misc.c functions.
13187
13188 * kern/misc.c (grub_iswordseparator): Made static.
13189 * kern/misc.c (grub_strcat): Moved from here ...
13190 * include/grub/misc.h (grub_strcat): ... here. Inlined.
13191 * kern/misc.c (grub_strncat): Moved from here ...
13192 * include/grub/misc.h (grub_strncat): ... here. Inlined.
13193 * kern/misc.c (grub_strcasecmp): Moved from here ...
13194 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
13195 * kern/misc.c (grub_strncasecmp): Moved from here ...
13196 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
13197 * kern/misc.c (grub_isalpha): Moved from here ...
13198 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
13199 * kern/misc.c (grub_isdigit): Moved from here ...
13200 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
13201 * kern/misc.c (grub_isgraph): Moved from here ...
13202 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
13203 * kern/misc.c (grub_tolower): Moved from here ...
13204 * include/grub/misc.h (grub_tolower): ... here. Inlined.
13205
48e40bff 132062009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
13207
13208 * script/sh/function.c (grub_script_function_find): Cut error message
13209 not to flood terminal.
13210 * script/sh/lexer.c (grub_script_yylex): Remove command line length
13211 limit.
13212 * script/sh/script.c (grub_script_arg_add): Duplicate string.
13213
c385bfc3 132142009-08-24 Colin Watson <cjwatson@ubuntu.com>
13215
13216 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
13217 `report' grub_uint8_t *.
13218 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
13219 Use a 50-millisecond timeout rather than just repeating
13220 grub_usb_keyboard_getreport 50 times.
13221 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
13222
2d21e3e8 132232009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
13224
13225 Rename *_partition_map to part_*
13226
13227 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
13228 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
13229 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
13230 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
13231 All users updated.
13232 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
13233 All users updated.
13234 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
13235 * util/grub-probe.c (probe_partmap): Don't transform partition name
13236 to get module name.
13237
dd103c4e 132382009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
13239
13240 Fix OpenBSD and NetBSD support.
13241
13242 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
13243 memory address conflict.
13244 (OPENBSD_MMAP_ACPI): New definition.
13245 (OPENBSD_MMAP_NVS): Likewise.
13246 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
13247 and OPENBSD_MMAP_NVS.
13248 Add memory map terminator
13249 Explicit cast when calling grub_unix_real_boot.
ad8ea1f4 13250 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
dd103c4e 13251
16c84d74 132522009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
13253
13254 Let user specify NetBSD root device.
13255
13256 * loader/i386/bsd.c (netbsd_root): New variable.
13257 (netbsd_opts): New option 'root'.
13258 (NETBSD_ROOT_ARG): New macro.
13259 (grub_netbsd_boot): Use 'netbsd_root'.
13260 (grub_bsd_unload): Free 'netbsd_root'.
13261 (grub_cmd_netbsd): Fill 'netbsd_root'.
13262
adb29902 132632009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
13264
13265 Support for 64-bit NetBSD.
13266
13267 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
13268 point when booting non-FreeBSD.
13269
f5ae9f74 132702009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
13271
13272 Support --no-smp and --no-acpi for NetBSD.
13273
13274 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
13275 (NETBSD_AB_NOACPI): Likewise.
13276 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
13277 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
13278
de74f136 132792009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
13280
13281 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
13282 errors.
13283 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
13284 errors. Call grub_error when needed.
13285
e9a925da 132862009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
13287
13288 * commands/search.c (search_fs): Try searching without autoload first.
13289 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
13290 filesystem module explicitly for faster booting.
13291
5174302b 132922009-08-23 Colin Watson <cjwatson@ubuntu.com>
13293
13294 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
13295
c8c80635 132962009-08-23 Colin Watson <cjwatson@ubuntu.com>
13297
13298 * util/grub.d/30_os-prober.in: Disable os-prober if
13299 `GRUB_DISABLE_OS_PROBER' was set to true.
13300
71acf5e5 133012009-08-23 Robert Millan <rmh.grub@aybabtu.com>
13302
13303 * partmap/pc.c: Rename to ...
13304 * partmap/msdos.c: ... this. Update all users.
13305 (grub_pc_partition_map): Rename to ...
13306 (grub_msdos_partition_map): ... this. Update all users.
13307
13308 * parttool/pcpart.c: Rename to ...
13309 * parttool/msdospart.c: ... this. Update all users.
13310
13311 * include/grub/pc_partition.h: Rename to ...
13312 * include/grub/msdos_partition.h: ... this. Update all users.
13313 (grub_pc_partition_bsd_entry): Rename to ...
13314 (grub_msdos_partition_bsd_entry): ... this. Update all users.
13315 (grub_pc_partition_disk_label): Rename to ...
13316 (grub_msdos_partition_disk_label): ... this. Update all users.
13317 (grub_pc_partition_entry): Rename to ...
13318 (grub_msdos_partition_entry): ... this. Update all users.
13319 (grub_pc_partition_mbr): Rename to ...
13320 (grub_msdos_partition_mbr): ... this. Update all users.
13321 (grub_pc_partition): Rename to ...
13322 (grub_msdos_partition): ... this. Update all users.
13323 (grub_pc_partition_is_empty): Rename to ...
13324 (grub_msdos_partition_is_empty): ... this. Update all users.
13325 (grub_pc_partition_is_extended): Rename to ...
13326 (grub_msdos_partition_is_extended): ... this. Update all users.
13327 (grub_pc_partition_is_bsd): Rename to ...
13328 (grub_msdos_partition_is_bsd): ... this. Update all users.
13329
13330 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
13331 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
13332 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
13333 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
13334 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
13335 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
13336 (gpt_mod_LDFLAGS): Rename to ...
13337 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
13338 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
13339 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
13340 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
13341 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
13342 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
13343 (part_gpt_mod_LDFLAGS): ... this.
13344 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
13345 `pcpart.mod' to `msdospart.mod'.
13346 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
13347 to ...
13348 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
13349 (msdospart_mod_LDFLAGS): ... this.
13350
c11fded5 133512009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
13352
13353 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
13354 (openbsd_opts): Likewise.
13355 (netbsd_opts): Likewise.
13356 (freebsd_flags): Added 0 terminator.
13357 (openbsd_flags): Likewise.
13358 (netbsd_flags): Likewise.
13359 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
13360 (grub_cmd_freebsd): Transformed into extended command.
13361 (grub_cmd_openbsd): Likewise.
13362 (grub_cmd_netbsd): Likewise.
13363 (cmd_freebsd): Changed type to grub_extcmd_t.
13364 (cmd_openbsd): Likewise.
13365 (cmd_netbsd): Likewise.
13366 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
13367 grub_cmd_openbsd as extended commands.
13368 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
13369 cmd_netbsd and cmd_openbsd
13370
11d1c769 133712009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
13372
13373 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
13374
7a9094e5 133752009-08-21 Pavel Roskin <proski@gnu.org>
13376
5496c37e 13377 * Makefile.in (install-local): When checking if a file is in the
13378 build directory, use "test -e" to detect symlinks.
13379
7a9094e5 13380 * Makefile.in (install-local): Remove all files in
13381 $(DESTDIR)$(pkglibdir) before installing new files there.
13382
e53cea11 133832009-08-18 Felix Zielcke <fzielcke@z-51.de>
13384
13385 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
13386 grub-mkelfimage.
13387
9aced544 133882009-08-18 Felix Zielcke <fzielcke@z-51.de>
13389
13390 * util/grub-mkconfig.in: Don't use gfxterm by default if not
13391 explicitly specified by the user.
13392
b7da6bab 133932009-08-18 Pavel Roskin <proski@gnu.org>
13394
13395 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
13396 grub_uint8_t pointer for data.
13397 * include/grub/fbutil.h (struct grub_video_fbblit_info):
13398 Likewise.
13399 * video/fb/fbutil.c: Remove unnecessary casts.
13400
19f1b335 134012009-08-17 Michal Suchanek <hramrach@centrum.cz>
13402
13403 VBE cleanup.
13404
13405 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
13406 (grub_vbe_set_video_mode): Save active mode info
13407 only after setting the mode.
13408 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
13409 second argument.
13410
2f467aa9 134112009-08-17 Michal Suchanek <hramrach@centrum.cz>
13412
13413 Rename variables for clarity.
13414
13415 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
13416 (active_vbe_mode_info): ... this. All users updated.
13417 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
13418 All users updated.
13419 (initial_mode): Rename to ...
13420 (initial_vbe_mode): ... this. All users updated.
13421 (mode_in_use): Rename to ..
13422 (vbe_mode_in_use): ... this. All users updated.
13423 (mode_list): Rename to ..
13424 (vbe_mode_list): ... this. All users updated.
13425 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
13426 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
13427 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
13428 'mode_list_size' to 'vbe_mode_list_size'.
13429 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
13430 'best_mode_info' to 'best_vbe_mode_info' and
13431 'best_mode' to 'best_vbe_mode'
13432
6025fcd7 134332009-08-17 Michal Suchanek <hramrach@centrum.cz>
13434
13435 Remove duplicate grub_video_fb_get_video_ptr.
13436
13437 * include/grub/fbutil.h (get_data_ptr): Rename to ...
13438 (grub_video_fb_get_video_ptr): ... this.
13439 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
13440 * video/fb/fbutil.c: Add comment about addressing.
13441 (get_data_ptr): Rename to ...
13442 (grub_video_fb_get_video_ptr): ... this. All users updated.
13443 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
13444
cc8c6faf 134452009-08-17 Robert Millan <rmh.grub@aybabtu.com>
13446
13447 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
13448 grub_dprintf() that was just added.
13449
08aa61f0 134502009-08-17 Robert Millan <rmh.grub@aybabtu.com>
13451
13452 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
13453 (DEFAULT_VIDEO_MODE): Remove macros.
13454 (grub_linux_boot): Remove assumption that Linux has FB support,
13455 and use "text" as default video mode.
13456
7cef4f75 134572009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
13458
13459 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
13460 grub_dprintf.
13461 * fs/fat.c (grub_fat_read_data): Likewise.
13462
e1f39873 134632009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
13464
13465 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
13466 payload.
13467 (grub_module): Likewise.
13468
c166d79e 134692009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
13470
13471 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
13472 mbi->cmdline but free playground.
13473
c60cee8e 134742009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
13475
13476 Handle group offset on UFS1.
13477
13478 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
13479 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
13480
c0d8b5d4 134812009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
13482
13483 Split ufs.mod into ufs1.mod and ufs2.mod.
13484
13485 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
13486 (grub_fstest_SOURCES): Likewise.
13487 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
13488 (ufs_mod_SOURCES): Remove.
13489 (ufs_mod_CFLAGS): Likewise.
13490 (ufs_mod_LDFLAGS): Likewise.
13491 (ufs1_mod_SOURCES): New variable.
13492 (ufs1_mod_CFLAGS): Likewise.
13493 (ufs1_mod_LDFLAGS): Likewise.
25fbd77a 13494 (ufs2_mod_SOURCES): New variable.
13495 (ufs2_mod_CFLAGS): Likewise.
13496 (ufs2_mod_LDFLAGS): Likewise.
c0d8b5d4 13497 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
13498 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
13499 Likewise.
13500 (grub_emu_SOURCES): Likewise.
13501 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13502 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
13503 (grub_setup_SOURCES): Likewise.
13504 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13505 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
13506 (grub_setup_SOURCES): Likewise.
13507 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
13508 Likewise.
13509 * fs/ufs2.c: New file.
13510 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
13511
d3539132 135122009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
13513
13514 Framebuffer split.
13515
13516 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
13517 subsystem at the end.
13518 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
13519 (video_fb_mod_SOURCES): New variable.
13520 (video_fb_mod_CFLAGS): Likewise.
13521 (video_fb_mod_LDFLAGS): Likewise.
13522 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
13523 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
13524 * video/i386/pc/vbeblit.c: Moved from here ...
13525 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
13526 * video/i386/pc/vbefill.c: Moved from here ...
13527 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
13528 * video/i386/pc/vbeutil.c: Moved from here ...
13529 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
13530 * include/grub/i386/pc/vbeblit.h: Moved from here ...
13531 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
13532 * include/grub/i386/pc/vbefill.h: Moved from here ...
13533 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
13534 * include/grub/i386/pc/vbeutil.h: Moved from here ...
13535 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
13536 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
13537 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
13538 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
13539 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
13540 (grub_video_adapter): Added 'get_info_and_fini'.
13541 (grub_video_get_info_and_fini): New prototype.
13542 (grub_video_set_mode): make modestring const char *.
13543 * loader/i386/linux.c (grub_linux_setup_video): Use
13544 grub_video_get_info_and_fini.
13545 (grub_linux_boot): Move modesetting just before booting.
13546 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
13547 grub_video_get_info_and_fini.
13548 * video/i386/pc/vbe.c: Moved framebuffer part ...
13549 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
13550 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
13551 grub_video_fbstd_colors and grub_video_fb_set_palette.
13552 (grub_video_vbe_init): Clear 'framebuffer' variable and use
13553 grub_video_fb_init.
13554 (grub_video_vbe_fini): Use grub_video_fb_fini.
13555 (grub_video_vbe_setup): Use framebuffer.render_target instead of
13556 render_target and use grub_video_fb_set_active_render_target and
13557 grub_video_fb_set_palette.
13558 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
13559 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
13560 (grub_video_vbe_adapter): Use framebuffer.
13561 * video/video.c (grub_video_get_info_and_fini): New function.
13562 (grub_video_set_mode): Make modestring const char *.
13563 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
13564 values are already initialised.
13565
d404ee56 135662009-08-14 Pavel Roskin <proski@gnu.org>
13567
13568 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
13569 ABS and APPLE_CC.
13570 * boot/i386/pc/diskboot.S: Likewise.
13571 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
13572 sectors allow compilation on MacOSX.
13573 * conf/i386-pc.rmk: Enable unconditional compilation of
13574 lnxboot.img.
13575
9a10df16 135762009-08-13 Colin Watson <cjwatson@ubuntu.com>
13577
13578 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
13579 * util/grub.d/00_header.in: Enter interruptible sleep if
13580 GRUB_HIDDEN_TIMEOUT is set.
13581
be3c9ca7 135822009-08-13 Yves Blusseau <blusseau@zetam.org>
13583
13584 * include/grub/symbol.h: Add the LOCAL macro.
13585 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
13586 starting with "L_".
13587
1f9e557e 135882009-08-13 Pavel Roskin <proski@gnu.org>
13589
9ca62843 13590 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
13591 any modern compilers we support.
13592
1f9e557e 13593 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
13594 Use local labels starting with "L_" so that Apple assembler
13595 knows they are local.
13596
81623db6 135972009-08-10 Robert Millan <rmh.grub@aybabtu.com>
13598
13599 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
13600 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
13601 (bsd_kernel_types): ... this enum.
13602
13603 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
13604 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
13605 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
13606
13607 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
13608 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
13609 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
13610 messages.
13611
f5d35e7a 136122009-08-08 Robert Millan <rmh.grub@aybabtu.com>
13613
13614 * util/grub-dumpdevtree: Moved from here ...
13615 * util/i386/efi/grub-dumpdevtree: ... to here.
13616 (hexify): New function. Converts a string to its hex version.
13617 Generate hex versions of "efi" and "device-properties" by calling
13618 hexify() on the ASCII strings rather than by hardcoding numbers.
13619
d1e1d527 136202009-08-08 Robert Millan <rmh.grub@aybabtu.com>
13621
13622 * fs/jfs.c: Update copyright year.
13623
1ebbe064 136242009-08-08 Felix Zielcke <fzielcke@z-51.de>
13625
13626 * util/grub.d/00_header.in: Fix a comment.
13627 * util/grub.d/10_linux.in: Likewise.
13628 * util/grub.d/10_windows.in: Likewise.
13629 * util/grub.d/10_hurd.in: Likewise.
13630
a78c8d24 136312009-08-08 Felix Zielcke <fzielcke@z-51.de>
13632
13633 * util/grub-mkconfig.in: Allow the user to specify the used font
13634 with GRUB_FONT.
13635
29a6b9e8 136362009-08-08 Pavel Roskin <proski@gnu.org>
13637
b5f16cc4 13638 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
13639 available, xfs.mod needs it now.
13640
2f5cb827 13641 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
13642 the "g" modifier in sed when the intention is to strip something
13643 once. This fixes comparison of kernels with multiple dashes.
13644
29a6b9e8 13645 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
13646 on it. Add missing space before closing bracket. Fix
13647 misleading formatting.
13648
892a3d98 136492009-08-07 Robert Millan <rmh.grub@aybabtu.com>
13650
13651 * docs/grub.texi: Major overhaul. Remove all sections that are
13652 specific to GRUB Legacy, or mostly composed of Legacy-specific
13653 information.
13654
ed94253f 136552009-08-07 Robert Millan <rmh.grub@aybabtu.com>
13656
13657 * docs/version.texi: New file. Provides version information for
13658 grub.texi.
13659
126d6628 136602009-08-07 Robert Millan <rmh.grub@aybabtu.com>
13661
13662 * docs/grub.texi: Update CVS information to SVN.
13663 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
13664
998b5aa9 136652009-08-07 Felix Zielcke <fzielcke@z-51.de>
13666
13667 * util/grub-mkconfig.in: Remove a wrong `fi'.
13668
818e094a 136692009-08-07 Felix Zielcke <fzielcke@z-51.de>
13670
13671 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
13672 (grub_jfs_uuid): New function.
13673 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
13674
b969c52f 136752009-08-07 Felix Zielcke <fzielcke@z-51.de>
13676
13677 * util/grub-mkconfig_lib.in (font_path): Move the functionality
13678 of it to ...
13679 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
13680 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
13681
7a4894cc 136822009-08-07 Robert Millan <rmh.grub@aybabtu.com>
13683
13684 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
13685 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
13686 Update all users.
13687
13688 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
13689 not just "vmlinu[zx]".
13690 Moved from here ...
13691 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
13692 all users.
13693
13694 * util/grub.d/10_linux.in (find_latest): Moved from here ...
13695 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
13696 all users.
13697
4e2171f8 136982009-08-07 Robert Millan <rmh.grub@aybabtu.com>
13699
13700 * util/grub.d/10_freebsd.in: Use an absolute device path for
13701 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
13702
6dcfcb32 137032009-08-06 Felix Zielcke <fzielcke@z-51.de>
13704
13705 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
13706 handling of multiple abstraction modules.
13707
f56a8756 137082009-08-04 Robert Millan <rmh.grub@aybabtu.com>
13709
13710 Fix a bug resulting in black screen when loading Linux using a
13711 packed video mode.
13712
13713 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
13714 function.
13715
13716 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
13717 (grub_vbe_bios_getset_dac_palette_width): New function.
13718 (grub_vbe_bios_get_dac_palette_width)
13719 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
13720 grub_vbe_bios_getset_dac_palette_width()).
13721
13722 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
13723 check for return status.
13724 (grub_vbe_get_video_mode_info): When getting information for a packed
13725 mode (<= 8 bpp), obtain DAC palette width using
13726 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
13727 {red,green,blue}_mark_size.
13728
222671b2 137292009-08-04 Felix Zielcke <fzielcke@z-51.de>
13730
ecb1a6d9 13731 * commands/search.c (options): Fix help output to match actual code.
222671b2 13732
f84114f5 137332009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
13734
13735 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
13736 of homegrown code.
13737
bd288a20 137382009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
e768b770 13739
13740 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
13741 on XFS or ReiserFS.
13742
8aab5e25 137432009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
13744
13745 Support Apple partition map with sector size different from 512 bytes.
13746
13747 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
13748 (apple_partition_map_iterate): Respect 'aheader.blocksize'
13749 and 'apart.partmap_size'.
13750
6ad6258a 137512009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
137522009-08-01 Robert Millan <rmh.grub@aybabtu.com>
13753
13754 Fix cpuid command.
13755
13756 * commands/i386/cpuid.c (options): New variable.
13757 (grub_cmd_cpuid): Return real error.
13758 (GRUB_MOD_INIT(cpuid)): Declare options.
13759
67459bc6 137602009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
13761
13762 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
13763 valid.
13764
fbc6ab54 137652009-07-31 Bean <bean123ch@gmail.com>
13766
13767 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
13768 log2_inode.
13769 (grub_fshelp_node): Move inode field to the end.
13770 (grub_xfs_data): Remove inode field.
13771 (grub_xfs_inode_block): Calculate inode size using sblock.
13772 (grub_xfs_inode_offset): Likewise.
13773 (grub_xfs_read_inode): Calculate inode size using sblock.
13774 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
13775 (grub_xfs_iterate_dir): Calculate inode size using sblock.
13776 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
13777 to match inode size.
13778 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
13779 not accessible when data is null.
13780 (grub_xfs_open): Likewise.
13781
f45d6cfc 137822009-07-31 Bean <bean123ch@gmail.com>
13783
13784 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
13785 Don't change pv->disk if it's already set.
13786
13787 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
13788 (grub_raid_register): ... here.
13789 (grub_raid_rescan): Removed.
13790
13791 * include/grub/raid.h (grub_raid_rescan): Removed.
13792
13793 * util/grub-fstest.c: Remove include file <grub/raid.h>.
13794 (fstest): Replace grub_raid_rescan with module fini function followed
13795 by init function.
13796
13797 * util/grub-probe.c: Add include file <grub/raid.h>.
13798 (probe_raid_level): New function.
13799 (probe): Detect abstraction by walking the disk device, support two
13800 level of abstraction (LVM on RAID) when detecting partition map.
13801
24443b5a 138022009-07-31 Pavel Roskin <proski@gnu.org>
13803
13804 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
13805 to grub_zalloc(), it was erroneous.
13806 Reported by Bean <bean123ch@gmail.com>
13807
a275d9e7 138082009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
13809
13810 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
ad8ea1f4 13811 embedding zone, not only the first one.
a275d9e7 13812
56c5a47f 138132009-07-29 Joe Auricchio <jauricchio@gmail.com>
13814
13815 * term/gfxterm.c (clear_char): New function.
13816 (grub_virtual_screen_setup): Use clear_char.
13817 (scroll_up): Likewise.
13818 (grub_virtual_screen_cls): Likewise.
13819
67bb323a 138202009-07-29 Felix Zielcke <fzielcke@z-51.de>
13821
13822 * util/deviceiter.c (get_acceleraid_disk_name): New static
13823 function.
13824 (grub_util_iterate_devices): Handle Accelraid devices.
13825 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
13826
388a7c75 138272009-07-28 Robert Millan <rmh.grub@aybabtu.com>
13828
13829 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
13830 separator for the suggested gfxpayload string (';' collides with the
13831 parser and needs escaping).
13832
3bb7abcf 138332009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
13834
13835 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
13836 Clear direction flag before jumping to OS.
13837 (grub_multiboot2_real_boot): Likewise.
13838
2ddd36d7 138392009-07-28 Felix Zielcke <fzielcke@z-51.de>
13840
13841 * util/i386/pc/grub-install: Fix parsing of --disk-module
13842 option.
13843
c521b62b 138442009-07-28 Felix Zielcke <fzielcke@z-51.de>
13845
13846 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
13847 when embedding.
13848
880e0a0c 138492009-07-26 Felix Zielcke <fzielcke@z-51.de>
13850
13851 * util/grub-mkconfig.in (package_version): New variable.
13852 Use it do display the version.
13853
2366e356 138542009-07-25 Felix Zielcke <fzielcke@z-51.de>
13855
13856 * kern/file.c (grub_file_open): Revert to previous check with
13857 grub_errno.
13858
7ad8c80e 138592009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
13860
13861 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
13862 from help line. It's out of sync with code.
13863
72b9658b 138642009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
13865
13866 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
13867 entries on failed boot.
13868
77435277 138692009-07-25 Felix Zielcke <fzielcke@z-51.de>
13870
13871 * kern/file.c (grub_file_open): Fix an error check.
13872
fcaa8b21 138732009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
13874
35d16c74 13875 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
13876 partition map couldn't be identified.
fcaa8b21 13877
48904cd1 138782009-07-23 Pavel Roskin <proski@gnu.org>
13879
ef3c317f 13880 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
13881 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
13882 case of little endian words becomes just an optimization.
13883 Respect const modifier.
ad8ea1f4 13884 (md5_final): Use code that doesn't depend on endianness.
ef3c317f 13885
48904cd1 13886 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
13887 to avoid loss of upper bits if align is unsigned and shorter
13888 than addr.
13889
260c9a89 138902009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
13891
13892 UUID support for UFS
13893
13894 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
13895 (grub_ufs_uuid): New function.
13896 (grub_ufs_fs): add .uuid
13897
f76ce889 138982009-07-21 Pavel Roskin <proski@gnu.org>
13899
13900 * kern/dl.c (grub_dl_check_header): Make static.
13901
6a6cbcaf 139022009-07-21 Felix Zielcke <fzielcke@z-51.de>
13903
13904 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
13905 add drivemap for Vista. It breaks Windows 7.
13906
cffcddb2 139072009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
13908
13909 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
13910 128 bytes
13911
1ef44b80 139122009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
13913
13914 Add BFS support
13915
13916 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
13917 (grub_fstest_SOURCES): Likewise.
13918 (pkglib_MODULES): Add befs.mod.
13919 (befs_mod_SOURCES): New variable.
13920 (befs_mod_CFLAGS): Likewise.
13921 (befs_mod_LDFLAGS): Likewise.
13922 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
13923 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
13924 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13925 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
13926 (grub_setup_SOURCES): Likewise.
13927 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13928 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13929 (grub_setup_SOURCES): Likewise.
13930 * fs/befs.c: New file.
13931 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
13932 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
13933 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
13934 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
13935 (B_KEY_INDEX_ALIGN): New declaration.
13936 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
13937 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
13938 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
13939 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
13940 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
13941 (grub_afs_mount) [MODE_BFS]: Likewise.
13942 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
13943 (grub_afs_fs): Use GRUB_AFS_FSNAME
13944 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
13945 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
13946 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
13947 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
13948
4f253044 139492009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
13950
13951 * util/getroot.c (find_root_device): Add support for MacOSX.
13952 * util/hostdisk.c: Likewise.
13953
57a55913 139542009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
13955
13956 * font/font.c (find_glyph): Check whether a font is present to avoid
13957 segmentation fault.
75421ca9 13958
139592009-07-20 Joe Auricchio <jauricchio@gmail.com>
04c7c429 13960
13961 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
13962
e98cd0c2 139632009-07-20 Pavel Roskin <proski@gnu.org>
13964
13965 * configure.ac: Trim excessively wordy excuses.
13966
1d2d169a 139672009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
13968
13969 Add symlink, mtime and label support to AtheFS.
13970
13971 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
13972 (grub_afs_iterate_dir): Handle symlinks.
13973 (grub_afs_open): Use grub_afs_read_symlink.
13974 (grub_afs_dir): Likewise.
13975 Pass mtime.
13976 (grub_afs_label): New function.
13977 (grub_afs_fs): Add grub_afs_label.
13978 (grub_afs_read_symlink): New function.
13979
186f3189 139802009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
13981
13982 Fix AtheFS support.
13983
13984 * fs/afs.c: Fix comments style.
13985 (grub_afs_blockrun): Declare as packed.
13986 (grub_afs_datastream): Likewise.
13987 (grub_afs_bnode): Likewise.
13988 (grub_afs_btree): Likewise.
13989 (grub_afs_sblock): Likewise.
13990 Declare `name' as char.
13991 (grub_afs_inode): Declare as packed.
13992 Change void *vnode to grub_uint32_t unused.
13993 (grub_afs_iterate_dir): Check that key_size is positive.
13994 (grub_afs_mount): Don't read superblock twice.
75421ca9 13995 (grub_afs_dir): Don't free node in case of error,
186f3189 13996 grub_fshelp_find_file already handles this.
13997 (grub_afs_open): Likewise.
13998
5680109e 139992009-07-19 Pavel Roskin <proski@gnu.org>
14000
14001 * Makefile.in: Remove LIBLZO and enable_lzo.
14002 * conf/i386-pc.rmk: Remove lzo support.
14003 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
14004 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
14005 support.
14006 * kern/i386/pc/lzo1x.S: Remove.
14007 * kern/i386/pc/startup.S: Remove lzo support.
14008 * util/i386/pc/grub-mkimage.c: Likewise.
14009
ac70fa32 140102009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
14011
14012 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
14013 * fs/xfs.c (grub_xfs_dir): Likewise.
14014 * fs/afs.c (grub_afs_dir): Likewise.
14015 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
14016 (grub_iso9660_open): Likewise.
14017 * fs/jfs.c (grub_jfs_open): Likewise.
14018 * fs/ext2.c (grub_ext2_dir): Likewise.
14019 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
14020 * script/sh/lexer.c (grub_script_yylex): Likewise.
75421ca9 14021
eab58da2 140222009-07-16 Pavel Roskin <proski@gnu.org>
14023
d2838156 14024 * configure.ac: Never add "-c" to CFLAGS.
14025
55c70904 14026 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
14027
43e6200c 14028 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
14029 grub_cv_cc_efiemu should be used.
14030
ce7a733d 14031 * configure.ac: Typo fixes.
14032
eab58da2 14033 * kern/mm.c (grub_zalloc): New function.
14034 (grub_debug_zalloc): Likewise.
14035 * include/grub/mm.h: Declare grub_zalloc() and
14036 grub_debug_zalloc().
14037 * util/misc.c (grub_zalloc): New function.
14038 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
14039 instead of grub_malloc(), remove unneeded initializations.
14040 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
14041 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
14042 * commands/parttool.c (grub_cmd_parttool): Likewise.
14043 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
14044 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
14045 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
14046 * disk/usbms.c (grub_usbms_finddevs): Likewise.
14047 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
14048 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
14049 (grub_cmd_efiemu_pnvram): Likewise.
14050 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
14051 * fs/iso9660.c (grub_iso9660_mount): Likewise.
14052 (grub_iso9660_iterate_dir): Likewise.
14053 * fs/jfs.c (grub_jfs_opendir): Likewise.
14054 * fs/ntfs.c (list_file): Likewise.
14055 (grub_ntfs_mount): Likewise.
14056 * kern/disk.c (grub_disk_open): Likewise.
14057 * kern/dl.c (grub_dl_load_core): Likewise.
14058 * kern/elf.c (grub_elf_file): Likewise.
14059 * kern/env.c (grub_env_context_open): Likewise.
14060 (grub_env_set): Likewise.
14061 (grub_env_set_data_slot): Likewise.
14062 * kern/file.c (grub_file_open): Likewise.
14063 * kern/fs.c (grub_fs_blocklist_open): Likewise.
14064 * loader/i386/multiboot.c (grub_module): Likewise.
14065 * loader/xnu.c (grub_xnu_create_key): Likewise.
14066 (grub_xnu_create_value): Likewise.
14067 * normal/main.c (grub_normal_add_menu_entry): Likewise.
14068 (read_config_file): Likewise.
14069 * normal/menu_entry.c (make_screen): Likewise.
14070 * partmap/sun.c (sun_partition_map_iterate): Likewise.
14071 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
14072 * script/sh/script.c (grub_script_parse): Likewise.
14073 * video/bitmap.c (grub_video_bitmap_create): Likewise.
14074 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
14075 * video/readers/png.c (grub_png_output_byte): Likewise.
14076 (grub_video_reader_png): Likewise.
14077
830afef7 140782009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
5ce5507f 14079
14080 Enable all targets that can be built by default
14081
830afef7 14082 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
5ce5507f 14083 grub-mkfont and grub-fstest if they can be built
14084
ee293aee 140852009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
14086
14087 Fix hang and segmentation fault in grub-emu-usb
14088
14089 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
14090 * util/usb.c (grub_libusb_devices): likewise
14091 (grub_libusb_init): rename to ...
14092 (GRUB_MOD_INIT (libusb)):...this
14093 (grub_libusb_fini): rename to ..
14094 (GRUB_MOD_FINI (libusb)):...this
14095 * disk/usbms.c (grub_usbms_transfer): fix retry logic
14096 * include/grub/disk.h (grub_raid_init): removed, it's useless
14097 (grub_raid_fini): likewise
14098 (grub_lvm_init): likewise
14099 (grub_lvm_fini): likewise
14100 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
14101 by grub_init_all
14102
94414221 141032009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
14104
14105 Fix libusb
14106
14107 * Makefile.in (LIBUSB): new macro
14108 * genmk.rb (Utility/print_tail): new method
14109 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
14110 (top level): call util.print_tail at the end.
14111
59ade63d 141122009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
14113
14114 Make FreeBSD accept zpool.cache
14115
14116 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
14117 type is /boot/zfs/zpool.cache
14118
a58da8c7 141192009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
14120
14121 Fix 64-bit efiemu
14122
14123 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
14124 correct wrong typedef
14125 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
14126
20591577 141272009-07-15 Pavel Roskin <proski@gnu.org>
14128
560ca572 14129 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
14130 * kern/disk.c (struct grub_disk_cache): Likewise.
14131
e8e8e4fd 14132 * commands/probe.c (options): Typo fix.
14133
fde24e10 14134 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
14135 Increase to 0x5a to accommodate FAT32. Adjust other offsets
14136 accordingly.
14137 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
14138
379c54c1 14139 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
14140 the end of "Error" to make the message more readable.
14141
7bd8f5bf 14142 * boot/i386/pc/boot.S (kernel_segment): Remove.
14143 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
14144 for destination.
14145
40b132c5 14146 * boot/i386/pc/boot.S (boot_version): Remove.
14147 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
14148 Remove.
14149
20591577 14150 * include/grub/i386/pc/boot.h: Sort all offsets.
14151 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
14152 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
14153 * boot/i386/pc/boot.S: Assert location of every offset listed in
14154 include/grub/i386/pc/boot.h.
14155
2df32b2c 141562009-07-13 Pavel Roskin <proski@gnu.org>
14157
44b5d879 14158 * include/grub/i386/coreboot/machine.h: Rename
14159 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
14160 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
14161 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
14162
17dc3751 14163 * kern/dl.c: Force native word size to suppress warnings when
14164 compiling grub-emu.
14165
2df32b2c 14166 * kern/device.c (grub_device_iterate): Change struct part_ent to
14167 hold the name, not a pointer to it. Use one grub_malloc() per
14168 partition, not two. Free partition_name if grub_malloc() fails.
14169 Set ents to NULL only before grub_partition_iterate() is called.
14170
75c59f59 141712009-07-11 Bean <bean123ch@gmail.com>
14172
14173 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
14174 childname.
14175
0ae1bf88 141762009-07-10 Bean <bean123ch@gmail.com>
141772009-07-10 Robert Millan <rmh.grub@aybabtu.com>
14178
14179 * kern/ieee1275/openfw.c (grub_children_iterate)
14180 (grub_devalias_iterate): Fix size evaluation for property or path
14181 strings, which was broken since r2132.
14182
8279cade 141832009-07-07 Pavel Roskin <proski@gnu.org>
14184
7d8a52d3 14185 * commands/search.c (search_file): Merge into ...
14186 (search_fs): ... this. Accept search type as argument.
14187 (grub_cmd_search): Pass search type to search_fs().
14188
25f9a05a 14189 * include/grub/util/console.h: New file.
14190 * util/console.c: Use it instead of grub/machine/console.h.
14191 * util/grub-emu.c: Likewise.
14192
8279cade 14193 * lib/arg.c (find_long_option): Remove.
14194 (find_long): Add `len' argument, make `s' const char *.
14195 (grub_arg_parse): Parse long options in place, not in a
14196 temporary buffer.
14197
4a11b60f 141982009-07-06 Pavel Roskin <proski@gnu.org>
14199
99f68041 14200 * commands/search.c (search_fs): Fix potential NULL pointer
14201 dereference.
14202
4a11b60f 14203 * commands/search.c (search_fs): Replace QUID macro with quid_fn
14204 function pointer.
14205
e110f4de 142062009-07-06 Daniel Mierswa <impulze@impulze.org>
14207
14208 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
14209 comparison.
14210
46eeb6a2 142112009-07-05 Pavel Roskin <proski@gnu.org>
14212
bab74958 14213 * include/grub/i386/linux.h (struct linux_kernel_params):
14214 Restore padding3, it's still needed.
14215
46eeb6a2 14216 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
14217 FreeBSD.
14218 * util/osdetect.lua: Likewise.
14219
b4a1dc79 142202009-07-05 Bean <bean123ch@gmail.com>
14221
14222 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
14223
14224 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
14225 (grub_lua_getenv): Likewise.
14226 (grub_lua_setenv): Likewise.
14227 (save_errno): New function.
14228 (push_result): Likewise.
14229 (grub_lua_enum_device): Likewise.
14230 (grub_lua_enum_file): Likewise.
14231 (grub_lua_file_open): Likewise.
14232 (grub_lua_file_close): Likewise.
14233 (grub_lua_file_seek): Likewise.
14234 (grub_lua_file_read): Likewise.
14235 (grub_lua_file_getline): Likewise.
14236 (grub_lua_file_getsize): Likewise.
14237 (grub_lua_file_getpos): Likewise.
14238 (grub_lua_file_eof): Likewise.
14239 (grub_lua_file_exist): Likewise.
14240 (grub_lua_add_menu): Likewise.
14241
14242 * script/lua/grub_lua.h (isupper): New inline function.
14243 (islower): Likewise.
14244 (ispunct): Likewise.
14245 (isxdigit): Likewise.
14246 (strcspn): Change to normal function.
14247 (strpbkr): New function declaration.
14248 (memchr): Likewise.
14249
14250 * script/lua/grub_main.c (scan_str): New function.
14251 (strcspn): Likewise.
14252 (strpbrk): Likewise.
14253 (memchr): Likewise.
14254
14255 * script/lua/linit.c (lualibs): Enable the string library.
14256
14257 * util/osdetect.lua: New file.
14258
2da92295 142592009-07-04 Robert Millan <rmh.grub@aybabtu.com>
14260
14261 * include/grub/i386/linux.h (struct linux_kernel_params): Add
14262 `capabilities' member.
14263
b2582ec9 142642009-07-02 Pavel Roskin <proski@gnu.org>
14265
14266 * genparttoollist.sh: Add missing newline at the end.
14267
32622956 142682009-07-01 Pavel Roskin <proski@gnu.org>
14269
87a7339e 14270 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
14271
d23af54e 14272 * util/hostdisk.c (open_device): Remove `const' from
14273 `sysctl_size', as sysctlbyname() can change it (in this case it
14274 doesn't actually happen).
14275
c94b18a9 14276 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
14277 using signed long int constants.
14278
c6cd3ef0 14279 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
14280 constant to avoid a warning on FreeBSD.
14281
0df63420 14282 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
14283 where it's needed.
14284
999577f1 14285 * Makefile.in: Install include/grub/machine symlink.
14286
6f41557f 14287 * Makefile.in: When installing symlinks, use "cp -fR", which
14288 works on FreeBSD and MacOSX.
14289 From Yves Blusseau <cl7m42e02@sneakemail.com>
14290
c8d22988 14291 * kern/dl.c (grub_dl_resolve_symbol): Make static.
14292 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
14293
1b96e952 14294 * util/misc.c: Move grub_reboot() and grub_halt() ...
14295 * util/grub-emu.c: ... here. Make main_env static.
14296 * include/grub/util/misc.h: Remove main_env.
14297
2ef0084d 14298 * kern/mm.c: Use correct format to print size_t.
14299
32622956 14300 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
14301 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
14302 * kern/powerpc/dl.c: Likewise.
14303 * kern/sparc64/dl.c: Likewise.
14304 * kern/x86_64/dl.c: Likewise.
14305
3f7f0cd0 143062009-07-01 Robert Millan <rmh.grub@aybabtu.com>
14307
14308 Fix grub-emu build on sparc64-ieee1275.
14309
75421ca9 14310 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
3f7f0cd0 14311 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
14312
211d06b5 143132009-07-01 Robert Millan <rmh.grub@aybabtu.com>
14314
14315 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
14316 (grub_reboot, grub_halt): New functions.
14317
14318 * util/i386/pc/misc.c: Delete. Update all users.
14319 * util/sparc64/ieee1275/misc.c: Likewise.
14320 * util/powerpc/ieee1275/misc.c: Likewise.
14321
aaf53e3c 143222009-07-01 Robert Millan <rmh.grub@aybabtu.com>
14323
14324 * conf/i386.rmk (setjmp_mod_SOURCES)
14325 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
14326 * conf/common.rmk (setjmp_mod_SOURCES)
14327 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
14328 to use $(target_cpu).
14329 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
14330 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
14331 * conf/powerpc-ieee1275.rmk: Likewise.
14332 * conf/sparc64-ieee1275.rmk: Likewise.
14333
14334 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
14335 $(target_cpu) for kern/$(target_cpu)/dl.c.
14336 * conf/i386-efi.rmk: Likewise.
14337 * conf/i386-ieee1275.rmk: Likewise.
14338 * conf/x86_64-efi.rmk: Likewise.
14339 * conf/i386-coreboot.rmk: Likewise.
14340 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
14341 $(target_cpu) for kern/$(target_cpu)/dl.c and for
14342 kern/$(target_cpu)/cache.S.
14343 * conf/sparc64-ieee1275.rmk: Likewise.
14344
a337130b 143452009-07-01 Robert Millan <rmh.grub@aybabtu.com>
14346
14347 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
14348 type to `grub_uint8_t', and adjust `padding9' accordingly.
14349
c6fe4d53 143502009-06-29 Robert Millan <rmh.grub@aybabtu.com>
14351
b09db61d 14352 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
14353
c6fe4d53 14354 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
14355 assembly in final jump, using register constraints.
14356
b09db61d 14357 (grub_linux_boot): For text mode, initialize `have_vga' using
14358 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
14359
14360 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
14361 right before the final jump.
14362
14363 Set `video_mode' to 0x3.
14364
14365 Document initialization of `video_page', `video_mode' and
14366 `video_ega_bx'.
14367
28333ad0 143682009-06-29 Robert Millan <rmh.grub@aybabtu.com>
14369
14370 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
14371 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
75421ca9 14372 and set GRUB_LINUX_FLAG_QUIET appropriately.
28333ad0 14373
02164e1b 143742009-06-29 Robert Millan <rmh.grub@aybabtu.com>
14375
14376 Fix build on Debian / sparc.
14377
14378 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
14379
18b6c557 143802009-06-28 Pavel Roskin <proski@gnu.org>
14381
85f2aab6 14382 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
14383 fix a warning.
14384
18b6c557 14385 * util/grub.d/10_linux.in: Match SUSE style initrd names.
14386
ad760f81 143872009-06-27 Robert Millan <rmh.grub@aybabtu.com>
14388
14389 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
14390 `err'.
14391
87a4623b 143922009-06-27 Robert Millan <rmh.grub@aybabtu.com>
14393
14394 Revert r2338.
14395
14396 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
14397 file can't be opened. grub_file_open() is already supposed to set
75421ca9 14398 grub_errno / grub_errmsg appropriately.
87a4623b 14399 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
14400
8231fb77 144012009-06-27 Pavel Roskin <proski@gnu.org>
144022009-06-27 Robert Millan <rmh.grub@aybabtu.com>
14403
14404 * include/grub/dl.h: Include grub/elf.h.
14405 (struct grub_dl): Add symtab field.
14406 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
14407 GRUB_MODULES_MACHINE_READONLY.
14408 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
14409 of the header for read-only modules.
14410 (grub_dl_unload): Free mod->symtab for read-only modules.
14411 * kern/i386/dl.c: Use mod->symtab.
14412 * kern/powerpc/dl.c: Likewise.
14413 * kern/sparc64/dl.c: Likewise.
14414 * kern/x86_64/dl.c: Likewise.
14415
14416 * conf/i386-qemu.rmk: New file.
14417 * kern/i386/qemu/startup.S: Likewise.
14418 * kern/i386/qemu/mmap.c: Likewise.
14419 * boot/i386/qemu/boot.S: Likewise.
14420 * include/grub/i386/qemu/time.h: Likewise.
14421 * include/grub/i386/qemu/serial.h: Likewise.
14422 * include/grub/i386/qemu/kernel.h: Likewise.
14423 * include/grub/i386/qemu/console.h: Likewise.
14424 * include/grub/i386/qemu/boot.h: Likewise.
14425 * include/grub/i386/qemu/init.h: Likewise.
14426 * include/grub/i386/qemu/machine.h: Likewise.
14427 * include/grub/i386/qemu/loader.h: Likewise.
14428 * include/grub/i386/qemu/memory.h: Likewise.
14429
14430 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
14431 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
14432 [qemu] (pkglib_IMAGES): Add `boot.img'.
14433 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
14434 [qemu] (boot_img_FORMAT): New variables.
14435 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
14436 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
14437 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
14438 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
14439 [qemu] (kernel_img_FORMAT): New variables.
14440
14441 * configure.ac: Recognise `i386-qemu'.
14442
14443 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
14444 (for no compression).
14445 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
14446 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
14447 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
14448 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
14449 ifdefs).
14450
97fe384e 144512009-06-27 Pavel Roskin <proski@gnu.org>
14452
14453 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
14454 read.
14455 * efiemu/prepare32.c: Likewise.
14456 * efiemu/prepare64.c: Likewise.
14457
c402ab17 144582009-06-26 Pavel Roskin <proski@gnu.org>
14459
14460 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
14461 * include/grub/elf.h: Define symbols without "32" or "64" based
14462 on GRUB_TARGET_WORDSIZE.
14463 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
14464 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
14465 ELF definitions.
14466 * efiemu/loadcore64.c: Likewise.
14467 * loader/i386/bsd32.c: Likewise.
14468 * loader/i386/bsd64.c: Likewise.
14469 * kern/dl.c: Remove own ELF definitions.
14470 * util/i386/efi/grub-mkimage.c: Likewise.
14471
9bbdfd4d 144722009-06-23 Robert Millan <rmh.grub@aybabtu.com>
14473
14474 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
14475 segment 0x0 unconditionally, because the reference generated by
14476 GAS is an absolute address.
14477
a42ce6e9 144782009-06-22 Robert Millan <rmh.grub@aybabtu.com>
14479
14480 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
14481 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
14482
c952cf92 144832009-06-22 Robert Millan <rmh.grub@aybabtu.com>
14484
14485 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
14486 indexes. Check for -f explicitly.
cc3752ad 14487 (search_file): Improve error message.
14488 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
c952cf92 14489
132a0a59 144902009-06-22 Robert Millan <rmh.grub@aybabtu.com>
14491
14492 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
14493 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
14494
387a140c 144952009-06-22 Robert Millan <rmh.grub@aybabtu.com>
14496
14497 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
14498 * conf/i386-ieee1275.rmk: Likewise.
14499 * conf/i386-coreboot.rmk: Likewise.
14500
14501 * kern/i386/pc/startup.S (grub_stop): Remove function.
14502 * kern/i386/ieee1275/startup.S: Likewise.
14503 * kern/i386/coreboot/startup.S: Likewise.
14504 * kern/i386/misc.S (grub_stop): New function.
14505
41da9665 145062009-06-22 Robert Millan <rmh.grub@aybabtu.com>
14507
14508 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
14509 * kern/i386/realmode.S (real_to_prot): ... to here.
14510
bf337234 145112009-06-22 Robert Millan <rmh.grub@aybabtu.com>
14512
14513 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
14514 with `kernel.img'.
14515 (kernel_elf_SOURCES): Rename to ...
14516 (kernel_img_SOURCES): ... this.
14517 (kernel_elf_HEADERS): Rename to ...
14518 (kernel_img_HEADERS): ... this. Update all users.
14519 (kernel_elf_ASFLAGS): Rename to ...
14520 (kernel_img_ASFLAGS): ... this.
14521 (kernel_elf_CFLAGS): Rename to ...
14522 (kernel_img_CFLAGS): ... this.
14523 (kernel_elf_LDFLAGS): Rename to ...
14524 (kernel_img_LDFLAGS): ... this.
14525 * conf/i386-coreboot.rmk: Likewise.
14526 * conf/powerpc-ieee1275.rmk: Likewise.
14527
14528 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
14529 with "kernel.img".
14530
f52196ff 145312009-06-21 Pavel Roskin <proski@gnu.org>
14532
c3cee413 14533 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
14534 to match nested functions.
14535 * loader/sparc64/ieee1275/linux.c: Likewise.
14536
f52196ff 14537 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
14538
58750afc 145392009-06-21 Robert Millan <rmh.grub@aybabtu.com>
14540
14541 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
14542 all i386 platforms.
14543
15355c7d 145442009-06-21 Robert Millan <rmh.grub@aybabtu.com>
14545
14546 Fix asm file handling on ELF, and remove workarounds.
14547
14548 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
75421ca9 14549 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
15355c7d 14550 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
14551 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
14552
3f3ec72b 145532009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
14554
14555 Load BSD ELF modules
14556
14557 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
14558 and loader/i386/bsd64.c
14559 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
14560 (FREEBSD_MODTYPE_ELF_MODULE): New definition
14561 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
14562 (grub_freebsd_load_elfmodule32): New declaration
14563 (grub_freebsd_load_elfmoduleobj64): Likewise
14564 (grub_freebsd_load_elf_meta32): Likewise
14565 (grub_freebsd_load_elf_meta64): Likewise
14566 (grub_freebsd_add_meta): Likewise
14567 (grub_freebsd_add_meta_module): Likewise
14568 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
14569 (grub_freebsd_add_meta_module): Likewise and move module-specific
14570 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
14571 (grub_cmd_freebsd): Add elf-kernel specific parts
14572 based on grub_freebsd_add_meta_module
14573 (grub_cmd_freebsd_module): Add type parsing moved from
14574 grub_freebsd_add_meta_module
14575 (grub_cmd_freebsd_module_elf): New function
14576 (cmd_freebsd_module_elf): New variable
14577 (GRUB_MOD_INIT): Register freebsd_module_elf
14578 * loader/i386/bsd32.c: New file
14579 * loader/i386/bsd64.c: Likewise
14580 * loader/i386/bsdXX.c: Likewise
14581 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
14582 (grub_elf64_load): Likewise
14583 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
14584 All users updated
14585 (grub_elf64_load_hook_t): Likewise
14586
0db15301 145872009-06-21 Colin Watson <cjwatson@ubuntu.com>
14588
14589 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
14590 variable.
14591 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
14592 don't write a menu entry for recovery mode.
14593
546796c1 145942009-06-20 Robert Millan <rmh.grub@aybabtu.com>
14595
14596 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
14597 after it's no longer needed.
14598
cd7310d5 145992009-06-20 Robert Millan <rmh.grub@aybabtu.com>
14600
14601 * include/grub/i386/loader.h (grub_linux_prot_size)
14602 (grub_linux_tmp_addr, grub_linux_real_addr)
14603 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
14604 GRUB_MACHINE_PCBIOS.
14605 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
14606 common grub_util_info() call to ...
14607 (generate_image): ... here.
14608 Fix use of uninitialized memory, comparison of signed with
14609 unsigned integers and memory leak.
14610 Remove bogus module address message.
14611
ab32d3b5 146122009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
14613
14614 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
14615 grub_raid_register
14616 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
14617
024ef597 146182009-06-19 Pavel Roskin <proski@gnu.org>
14619
14620 * configure.ac: Remove stray AC_MSG_CHECKING.
14621
3ac72b51 146222009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
14623
14624 * disk/scsi.c (grub_scsi_open): use continue instead of big if
dd74360c 14625
e14cd814 146262009-06-18 Pavel Roskin <proski@gnu.org>
14627
14628 * conf/common.rmk: Add fs_file.mod.
14629 * disk/fs_file.c: New file.
14630 * include/grub/disk.h (enum grub_disk_dev_id): Add
14631 GRUB_DISK_DEVICE_FILE_ID.
14632
26586d98 146332009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
14634
14635 Fix build with Apple's toolchain. Part 2
14636
14637 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
14638 a fake start
14639
26de2bcd 146402009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
14641
14642 Fix build with Apple's toolchain. Part 1
14643
14644 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
14645 for long calls
14646 * configure.ac: remove a leftover AC_MSG_RESULT
dd74360c 14647 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
26de2bcd 14648 Apple's toolchain
14649
09b3490b 146502009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
14651
14652 Fix warnings
14653
14654 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
14655 (decomp_block): initialize ch
14656 use grub_memcpy instead of memcpy
14657
c22a006a 146582009-06-17 Pavel Roskin <proski@gnu.org>
14659
d3638678 14660 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
14661 version, use declarations needed to use vga_text as the startup
14662 console.
14663
c22a006a 14664 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
14665 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
14666 the kernel.
14667 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
14668 and grub_at_keyboard_fini(), it's done on module load and
14669 unload.
14670
05b129e0 146712009-06-17 Felix Zielcke <fzielcke@z-51.de>
14672
14673 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
14674 file can't be found.
14675 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
14676
cf24ed9e 146772009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
14678
14679 Fix newline handling
14680
14681 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
dd74360c 14682 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
cf24ed9e 14683 (grub_script_yylex): don't segfault on unterminated script
14684 newline terminates command and variable
14685
74aa8e4b 146862009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
14687
14688 avoid double grub_adjust_range call. Bug reported by David Simner
14689
14690 * kern/disk.c (grub_disk_write): change to raw disk access before
14691 calling disk_read
14692
1bd265f3 146932009-06-17 Colin Watson <cjwatson@ubuntu.com>
14694
14695 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
14696 spaces, for the benefit of help2man.
14697 * util/i386/efi/grub-mkimage.c (usage): Likewise.
14698
a2d08c06 146992009-06-16 Pavel Roskin <proski@gnu.org>
14700
14701 * kern/i386/halt.c: Include grub/machine/init.h.
14702 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
14703
b97bcb19 147042009-06-16 Felix Zielcke <fzielcke@z-51.de>
14705
14706 * util/grub.d/30_os-prober.in: Use ${root} in the generated
14707 drivemap menuentry.
14708
0644f96c 147092009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
14710
14711 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
14712 `echo' command.
14713
3ef17a2e 147142009-06-16 Pavel Roskin <proski@gnu.org>
14715
14716 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
14717 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
14718 save %dx, we only need %dl and we never change it.
14719 * boot/i386/pc/cdboot.S: Don't set the root drive.
14720 * boot/i386/pc/pxeboot.S: Likewise.
14721 * include/grub/i386/pc/boot.h: Remove
14722 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
14723 GRUB_BOOT_MACHINE_DRIVE_CHECK.
14724 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
14725 * kern/i386/pc/init.c (make_install_device): Remove references
14726 to grub_root_drive.
14727 * kern/i386/pc/startup.S: Likewise.
14728 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
14729
693fe637 147302009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
14731
14732 xnu_uuid command
14733
14734 * commands/xnu_uuid.c: new file
14735 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
14736 (xnu_uuid_mod_SOURCES): new variable
14737 (xnu_uuid_mod_CFLAGS): likewise
14738 (xnu_uuid_mod_LDFLAGS): likewise
14739 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
14740 * conf/i386-ieee1275.rmk: likewise
14741 * conf/i386-pc.rmk: likewise
14742 * conf/powerpc-ieee1275.rmk: likewise
14743 * conf/sparc64-ieee1275.rmk: likewise
14744 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
14745
c9da87d0 147462009-06-16 Pavel Roskin <proski@gnu.org>
14747
14748 * configure.ac: Avoid '==' in test command, it's not portable.
14749
9c6f4596 147502009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
14751
14752 Probe command
14753
14754 * commands/probe.c: new file
14755 * conf/common.rmk (pkglib_MODULES): add probe.mod
14756 (probe_mod_SOURCES): new variable
14757 (probe_mod_CFLAGS): likewise
14758 (probe_mod_LDFLAGS): likewise
14759 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
14760 * conf/i386-ieee1275.rmk: likewise
14761 * conf/i386-pc.rmk: likewise
14762 * conf/powerpc-ieee1275.rmk: likewise
14763 * conf/sparc64-ieee1275.rmk: likewise
14764
70b7f9fd 147652009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
14766
14767 Fix handling of string like \"hello\" and "a
14768 b"
14769
14770 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
14771 (grub_script_yylex): fix parsing of quoting, escaping and newline
14772
71c79a6b 147732009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
14774
dd74360c 14775 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
71c79a6b 14776 handling
dd74360c 14777
0644f96c 147782009-06-13 Jun Inoue <jun.lambda@gmail.com>
880fc3c4 14779
14780 * util/grub-mkconfig.in: Fix parsing of --output option.
14781
e40893c3 147822009-06-12 Pavel Roskin <proski@gnu.org>
14783
14784 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
14785 genmk.rb don't need to be generated or installed.
14786
3a1acfe2 147872009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
14788
14789 * commands/i386/pc/drivemap_int13h.S: add more comments
14790
3a4575d4 147912009-06-11 Pavel Roskin <proski@gnu.org>
14792
0658e928 14793 * Makefile.in (uninstall): Uninstall manuals.
14794
ca0388f0 14795 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
14796 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
14797 and update-grub_lib in two places.
14798 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
14799
e3b27c39 14800 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
14801 a compiler warning.
14802
3a4575d4 14803 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
14804 `entry_lo' to fix variable shadowing.
14805
af1f4f55 148062009-06-11 Christian Franke <franke@computer.org>
14807
14808 * kern/misc.c (__enable_execute_stack): Add missing return type
14809 to prevent gcc warning.
14810
5225e649 148112009-06-11 Felix Zielcke <fzielcke@z-51.de>
14812
14813 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
14814
7d83bd47 148152009-06-11 Pavel Roskin <proski@gnu.org>
14816
c1cb63ba 14817 * Makefile.in: Don't rely on any scripts being executable.
14818 Always use $(SHELL) to run shell scripts.
14819
7d83bd47 14820 * configure.ac: Always define ___main if using -nostdlib. This
14821 fixes tests on Cygwin.
14822
948f48e7 148232009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
14824
14825 UDF fix
14826
7d83bd47 14827 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
948f48e7 14828 is in bytes and not in blocks
7d83bd47 14829
8ada9bc1 148302009-06-11 Pavel Roskin <proski@gnu.org>
14831
14832 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
14833 warning.
14834
25ad2323 148352009-06-11 Felix Zielcke <fzielcke@z-51.de>
14836
14837 * util/grub.d/30_os-prober.in: Fix a comment. Source
14838 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
14839 to set the root device. Place drivemap command in the generated
14840 chain entry.
14841
e65acb0c 148422009-06-11 Pavel Roskin <proski@gnu.org>
14843
14844 * configure.ac: Remove host_m32. Issues with 64-bit utilities
14845 have long been resolved.
14846
f285fe2d 148472009-06-11 Colin Watson <cjwatson@ubuntu.com>
14848
bd47b0b5 14849 * util/grub.d/10_linux.in: Capitalise "Linux".
14850
f285fe2d 14851 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
14852
a0c62e4e 148532009-06-11 Pavel Roskin <proski@gnu.org>
14854
b6783cb2 14855 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
14856 fix a gcc warning and ensure that the function won't ever exit.
14857
dde032e8 14858 * kern/i386/ieee1275/init.c: Add missing prototype for
14859 grub_stop_floppy().
14860
22cd079d 14861 * loader/ieee1275/multiboot2.c [__i386__]: Include
14862 grub/cpu/multiboot.h.
14863
a0c62e4e 14864 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
14865 casts to short - they are not portable and cause warnings. Fix
14866 use of uninitialized values in input_buf. Use ARRAY_SIZE.
14867
63963d17 148682009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
14869
14870 Drivemap fixes
14871
14872 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
14873 new function
14874 (grub_get_root_biosnumber_saved): new variable
14875 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
14876 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
775dbc4d 14877 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
63963d17 14878 %dx after the call if necessary
14879 * conf/common.rmk (pkglib_MODULES): remove boot.mod
14880 (boot_mod_SOURCES): remove
14881 (boot_mod_CFLAGS): remove
14882 (boot_mod_LDFLAGS): remove
14883 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
14884 (boot_mod_SOURCES): new variable
14885 (boot_mod_CFLAGS): likewise
14886 (boot_mod_LDFLAGS): likewise
14887 * conf/i386-efi.rmk: likewise
14888 * conf/i386-ieee1275.rmk: likewise
14889 * conf/i386-pc.rmk: likewise
14890 * conf/powerpc-ieee1275.rmk: likewise
14891 * conf/sparc64-ieee1275.rmk: likewise
14892 * conf/x86_64-efi.rmk: likewise
14893 * include/grub/i386/pc/biosnum.h: new file
14894 * lib/i386/pc/biosnum.c: likewise
14895 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
14896 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
14897 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
775dbc4d 14898
33abf7ae 148992009-06-10 Pavel Roskin <proski@gnu.org>
14900
5ac35b35 14901 * io/gzio.c (test_header): Don't reuse one buffer for all data.
14902 Use separate variables. Read only the file size at the end, but
14903 not the checksum that we don't use.
14904
5c5215d5 14905 * kern/file.c (grub_file_read): Use void pointer for the buffer.
14906 Adjust all callers.
14907
27d5fef7 14908 * kern/ieee1275/openfw.c: Remove libc includes.
14909 * kern/ieee1275/cmain.c: Likewise.
14910 * include/grub/ieee1275/ieee1275.h: Likewise.
14911
33abf7ae 14912 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
14913 compiler warnings.
14914
19d50c2b 149152009-06-10 Felix Zielcke <fzielcke@z-51.de>
14916
14917 * Makefile.in: Remove all trailing whitespace.
14918 * conf/i386-pc.rmk: Likewise.
14919 * conf/powerpc-ieee1275.rmk: Likewise.
14920 * conf/sparc64-ieee1275.rmk: Likewise.
14921 * docs/grub.texi: Likewise.
14922 * docs/texinfo.tex: Likewise.
14923 * disk/fs_uuid.c: Likewise.
14924 * disk/lvm.c: Likewise.
14925 * disk/scsi.c: Likewise.
14926 * disk/ata.c: Likewise.
14927 * disk/ieee1275/ofdisk.c: Likewise.
14928 * disk/i386/pc/biosdisk.c: Likewise.
14929 * disk/host.c: Likewise.
14930 * disk/raid.c: Likewise.
14931 * disk/efi/efidisk.c: Likewise.
14932 * disk/usbms.c: Likewise.
14933 * disk/memdisk.c: Likewise.
14934 * disk/loopback.c: Likewise.
14935 * kern/powerpc/dl.c: Likewise.
14936 * kern/device.c: Likewise.
14937 * kern/dl.c: Likewise.
14938 * kern/sparc64/dl.c: Likewise.
14939 * kern/ieee1275/ieee1275.c: Likewise.
14940 * kern/term.c: Likewise.
14941 * kern/fs.c: Likewise.
14942 * kern/i386/dl.c: Likewise.
14943 * kern/i386/pc/startup.S: Likewise.
14944 * kern/i386/pc/init.c: Likewise.
14945 * kern/i386/pc/mmap.c: Likewise.
14946 * kern/i386/pc/lzo1x.S: Likewise.
14947 * kern/i386/ieee1275/init.c: Likewise.
14948 * kern/i386/realmode.S: Likewise.
14949 * kern/i386/tsc.c: Likewise.
14950 * kern/partition.c: Likewise.
14951 * kern/corecmd.c: Likewise.
14952 * kern/file.c: Likewise.
14953 * kern/efi/efi.c: Likewise.
14954 * kern/efi/init.c: Likewise.
14955 * kern/efi/mm.c: Likewise.
14956 * kern/main.c: Likewise.
14957 * kern/err.c: Likewise.
14958 * kern/env.c: Likewise.
14959 * kern/disk.c: Likewise.
14960 * kern/generic/millisleep.c: Likewise.
14961 * kern/generic/rtc_get_time_ms.c: Likewise.
14962 * kern/misc.c: Likewise.
14963 * kern/parser.c: Likewise.
14964 * genmk.rb: Likewise.
14965 * configure.ac: Likewise.
14966 * boot/i386/pc/diskboot.S: Likewise.
14967 * boot/i386/pc/pxeboot.S: Likewise.
14968 * boot/i386/pc/boot.S: Likewise.
14969 * boot/i386/pc/lnxboot.S: Likewise.
14970 * boot/i386/pc/cdboot.S: Likewise.
14971 * parttool/pcpart.c: Likewise.
14972 * video/readers/tga.c: Likewise.
14973 * video/video.c: Likewise.
14974 * video/bitmap.c: Likewise.
14975 * lib/envblk.c: Likewise.
14976 * lib/i386/setjmp.S: Likewise.
14977 * fs/xfs.c: Likewise.
14978 * fs/afs.c: Likewise.
14979 * fs/fat.c: Likewise.
14980 * fs/ntfs.c: Likewise.
14981 * fs/udf.c: Likewise.
14982 * fs/affs.c: Likewise.
14983 * fs/iso9660.c: Likewise.
14984 * fs/hfs.c: Likewise.
14985 * fs/fshelp.c: Likewise.
14986 * fs/ext2.c: Likewise.
14987 * fs/jfs.c: Likewise.
14988 * fs/reiserfs.c: Likewise.
14989 * fs/hfsplus.c: Likewise.
14990 * fs/minix.c: Likewise.
14991 * fs/cpio.c: Likewise.
14992 * fs/sfs.c: Likewise.
14993 * fs/ufs.c: Likewise.
14994 * efiemu/prepare.c: Likewise.
14995 * efiemu/loadcore_common.c: Likewise.
14996 * efiemu/runtime/efiemu.sh: Likewise.
14997 * efiemu/runtime/efiemu.S: Likewise.
14998 * efiemu/runtime/efiemu.c: Likewise.
14999 * efiemu/pnvram.c: Likewise.
15000 * efiemu/main.c: Likewise.
15001 * efiemu/i386/pc/cfgtables.c: Likewise.
15002 * efiemu/i386/loadcore64.c: Likewise.
15003 * efiemu/i386/loadcore32.c: Likewise.
15004 * efiemu/loadcore.c: Likewise.
15005 * efiemu/symbols.c: Likewise.
15006 * efiemu/mm.c: Likewise.
15007 * include/grub/autoefi.h: Likewise.
15008 * include/grub/datetime.h: Likewise.
15009 * include/grub/term.h: Likewise.
15010 * include/grub/hfs.h: Likewise.
15011 * include/grub/lvm.h: Likewise.
15012 * include/grub/i386/tsc.h: Likewise.
15013 * include/grub/i386/linux.h: Likewise.
15014 * include/grub/i386/xnu.h: Likewise.
15015 * include/grub/i386/efiemu.h: Likewise.
15016 * include/grub/i386/pc/biosdisk.h: Likewise.
15017 * include/grub/i386/pc/memory.h: Likewise.
15018 * include/grub/i386/pc/vbe.h: Likewise.
15019 * include/grub/parttool.h: Likewise.
15020 * include/grub/video.h: Likewise.
15021 * include/grub/memory.h: Likewise.
15022 * include/grub/fs.h: Likewise.
15023 * include/grub/partition.h: Likewise.
15024 * include/grub/xnu.h: Likewise.
15025 * include/grub/efi/api.h: Likewise.
15026 * include/grub/efi/pe32.h: Likewise.
15027 * include/grub/efi/memory.h: Likewise.
15028 * include/grub/multiboot.h: Likewise.
15029 * include/grub/usbdesc.h: Likewise.
15030 * include/grub/multiboot2.h: Likewise.
15031 * include/grub/acpi.h: Likewise.
15032 * include/grub/efiemu/efiemu.h: Likewise.
15033 * include/grub/disk.h: Likewise.
15034 * include/grub/ieee1275/ieee1275.h: Likewise.
15035 * include/grub/net.h: Likewise.
15036 * include/grub/machoload.h: Likewise.
15037 * include/grub/macho.h: Likewise.
15038 * include/multiboot.h: Likewise.
15039 * genmoddep.awk: Likewise.
15040 * normal/main.c: Likewise.
15041 * normal/menu_entry.c: Likewise.
15042 * normal/menu_viewer.c: Likewise.
15043 * normal/completion.c: Likewise.
15044 * normal/cmdline.c: Likewise.
15045 * normal/misc.c: Likewise.
15046 * normal/datetime.c: Likewise.
15047 * bus/usb/usbtrans.c: Likewise.
15048 * bus/usb/ohci.c: Likewise.
15049 * bus/usb/uhci.c: Likewise.
15050 * bus/usb/usb.c: Likewise.
15051 * mmap/efi/mmap.c: Likewise.
15052 * mmap/i386/pc/mmap_helper.S: Likewise.
15053 * mmap/i386/pc/mmap.c: Likewise.
15054 * mmap/i386/mmap.c: Likewise.
15055 * mmap/i386/uppermem.c: Likewise.
15056 * mmap/mmap.c: Likewise.
15057 * commands/acpi.c: Likewise.
15058 * commands/echo.c: Likewise.
15059 * commands/blocklist.c: Likewise.
15060 * commands/loadenv.c: Likewise.
15061 * commands/usbtest.c: Likewise.
15062 * commands/boot.c: Likewise.
15063 * commands/parttool.c: Likewise.
15064 * commands/search.c: Likewise.
15065 * commands/cat.c: Likewise.
15066 * commands/i386/pc/play.c: Likewise.
15067 * commands/i386/pc/drivemap.c: Likewise.
15068 * commands/i386/pc/vbeinfo.c: Likewise.
15069 * commands/i386/pc/acpi.c: Likewise.
15070 * commands/i386/pc/vbetest.c: Likewise.
15071 * commands/ls.c: Likewise.
15072 * commands/cmp.c: Likewise.
15073 * commands/test.c: Likewise.
15074 * commands/efi/acpi.c: Likewise.
15075 * commands/gptsync.c: Likewise.
15076 * commands/help.c: Likewise.
15077 * partmap/amiga.c: Likewise.
15078 * partmap/apple.c: Likewise.
15079 * partmap/acorn.c: Likewise.
15080 * partmap/pc.c: Likewise.
15081 * partmap/sun.c: Likewise.
15082 * partmap/gpt.c: Likewise.
15083 * script/sh/lexer.c: Likewise.
15084 * script/sh/function.c: Likewise.
15085 * font/font.c: Likewise.
15086 * font/font_cmd.c: Likewise.
15087 * loader/powerpc/ieee1275/linux.c: Likewise.
15088 * loader/efi/chainloader.c: Likewise.
15089 * loader/multiboot_loader.c: Likewise.
15090 * loader/macho.c: Likewise.
15091 * loader/i386/multiboot.c: Likewise.
15092 * loader/i386/linux.c: Likewise.
15093 * loader/i386/pc/linux.c: Likewise.
15094 * loader/i386/pc/multiboot2.c: Likewise.
15095 * loader/i386/pc/chainloader.c: Likewise.
15096 * loader/i386/pc/xnu.c: Likewise.
15097 * loader/i386/bsd_trampoline.S: Likewise.
15098 * loader/i386/efi/linux.c: Likewise.
15099 * loader/i386/multiboot_elfxx.c: Likewise.
15100 * loader/i386/bsd_helper.S: Likewise.
15101 * loader/i386/bsd.c: Likewise.
15102 * loader/i386/linux_trampoline.S: Likewise.
15103 * loader/i386/xnu_helper.S: Likewise.
15104 * loader/i386/xnu.c: Likewise.
15105 * loader/i386/bsd_pagetable.c: Likewise.
15106 * loader/i386/multiboot_helper.S: Likewise.
15107 * loader/xnu.c: Likewise.
15108 * loader/xnu_resume.c: Likewise.
15109 * io/gzio.c: Likewise.
15110 * term/efi/console.c: Likewise.
15111 * term/terminfo.c: Likewise.
15112 * term/ieee1275/ofconsole.c: Likewise.
15113 * term/i386/pc/serial.c: Likewise.
15114 * term/i386/pc/vesafb.c: Likewise.
15115 * term/i386/pc/vga.c: Likewise.
15116 * term/usb_keyboard.c: Likewise.
15117 * term/gfxterm.c: Likewise.
15118 * aclocal.m4: Likewise.
15119 * util/lvm.c: Likewise.
15120 * util/grub.d/30_os-prober.in: Likewise.
15121 * util/grub.d/10_hurd.in: Likewise.
15122 * util/console.c: Likewise.
15123 * util/grub-macho2img.c: Likewise.
15124 * util/grub-probe.c: Likewise.
15125 * util/hostfs.c: Likewise.
15126 * util/i386/pc/grub-mkimage.c: Likewise.
15127 * util/i386/pc/grub-setup.c: Likewise.
15128 * util/i386/efi/grub-mkimage.c: Likewise.
15129 * util/grub-mkconfig.in: Likewise.
15130 * util/raid.c: Likewise.
15131 * util/resolve.c: Likewise.
15132 * util/grub-mkdevicemap.c: Likewise.
15133 * util/grub-emu.c: Likewise.
15134 * util/getroot.c: Likewise.
15135 * util/hostdisk.c: Likewise.
15136 * util/usb.c: Likewise.
15137 * util/grub-editenv.c: Likewise.
15138 * util/misc.c: Likewise.
15139
d2d49665 151402009-06-10 Felix Zielcke <fzielcke@z-51.de>
15141
15142 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
15143 `genparttoollist.sh'.
15144 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
15145 Add `*.sh' to the list find searches for and change `mdate.sh'
15146 to `mdate-sh'.
15147
fe052e37 151482009-06-10 Pavel Roskin <proski@gnu.org>
15149
2763ac18 15150 * include/grub/multiboot2.h: Provide compatibility defines for
15151 multiboot2.h.
15152 * include/multiboot2.h: Include stdint.h only if needed, using
15153 angle brackets.
15154 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
15155 grub/multiboot2.h.
15156 * loader/ieee1275/multiboot2.c: Likewise.
15157 * loader/multiboot2.c: Likewise.
15158 * loader/multiboot_loader.c: Likewise.
15159
437e6adc 15160 * configure.ac: Use -nostdlib when probing for the target. It
15161 should not be required to have libc for the target.
15162
06a6836c 15163 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
15164 they fail without libc headers for the target.
15165 * include/grub/powerpc/libgcc.h: Use weak attribute for all
15166 exports.
15167 * include/grub/sparc64/libgcc.h: Likewise. Don't use
15168 preprocessor conditionals.
15169
fe052e37 15170 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
15171 build system doesn't need to be aware of the tar.c internals.
15172
afd22553 151732009-06-09 Michel Hermier <michel.hermier@gmail.com>
87b8f28c 15174
afd22553 15175 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
8ec4a6d0 15176
6b787c4f 151772009-06-09 Robert Millan <rmh.grub@aybabtu.com>
15178
15179 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
15180 disk limit to 26 for IDE, Virtio, Xen and SCSI.
15181
151822009-06-09 Felix Zielcke <fzielcke@z-51.de>
15183
15184 * util/i386/pc/grub-install.in: Change the error message if UUIDs
473d1e45 15185 aren't available if ata.mod gets used.
6b787c4f 15186
473d1e45 151872009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
e23721e8 15188
473d1e45 15189 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
e23721e8 15190 initialising controller.
473d1e45 15191 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
e23721e8 15192
255a27d4 151932009-06-08 Felix Zielcke <fzielcke@z-51.de>
15194
15195 * util/i386/pc/grub-install.in: Add a parameter --disk-module
15196 to choose between ata and biosdisk module on i386-pc.
15197
473d1e45 151982009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
69da8877 15199
d55842d8 15200 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
15201 Subclass and Programming Interface fields in terms of the 3 byte
15202 Class Code register.
15203 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
15204
fa5db0b1 15205 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
15206 interface is OHCI. Add grub_dprintf for symmetry with
15207 bus/usb/uhci.c.
15208 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
15209 interface is UHCI. Add interf variable for programming
15210 interface. Print interface with class/subclass.
15211
c0947beb 15212 * bus/usb/ohci.c: Set interf with correct field.
15213
69da8877 15214 * bus/usb/uhci.c: Remove unneeded doubled lines.
15215 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
15216 Remove whitespace inside comment.
15217
9e172e30 152182009-06-08 Robert Millan <rmh.grub@aybabtu.com>
15219
15220 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
15221 as fallback an equivalent option without depth.
15222
de65ee2b 152232009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
15224
15225 Not fail if unable to retrieve C/H/S on LBA disks
15226
473d1e45 15227 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
de65ee2b 15228 if unable to retrieve C/H/S on LBA disks
15229
b57ea2c9 152302009-06-08 Pavel Roskin <proski@gnu.org>
15231
15232 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
15233 about aliasing.
15234
af361263 152352009-06-08 Felix Zielcke <fzielcke@z-51.de>
15236
15237 * Makefile.in (uninstall): Remove all $lib_DATA files.
15238
4c9ec6b3 152392009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
15240
15241 Bugfix: install on partitionless device
15242
15243 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
15244 is a whole disk
15245
e76fc924 152462009-06-08 Felix Zielcke <fzielcke@z-51.de>
15247
15248 * Makefile.in (uninstall): Remove all $include_DATA files.
15249
ba5a0d05 152502009-06-08 Felix Zielcke <fzielcke@z-51.de>
15251
15252 * commands/true.c: New file. Implement the true and false commands.
15253 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
15254 (true_mod_SOURCES): New variable.
15255 (true_mod_CFLAGS): Likewise.
15256 (true_mod_LDFLAGS): Likewise.
15257
c8048e32 152582009-06-05 Colin D Bennett <colin@gibibit.com>
15259
15260 Optimized font character lookup using binary search instead of linear
15261 search. Fonts now are required to have the character index ordered by
15262 code point.
15263
15264 * font/font.c (load_font_index): Verify that fonts have ordered
15265 character indices.
15266 (find_glyph): Use binary search instead of linear search to find a
15267 character in a font.
15268
408305be 152692009-06-05 Michael Scherer <misc@mandriva.org>
15270
15271 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
15272 uses case sensitive btree.
15273 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
15274 only for case insensitive filesystems.
15275
8ee1e0d9 152762009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
15277
15278 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
15279 * conf/common.rmk (search_mod_CFLAGS): likewise
15280
a9966eb1 152812009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
15282
473d1e45 15283 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
a9966eb1 15284 compensate a compiler bug
15285
9e7100fb 152862009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
15287
473d1e45 15288 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
9e7100fb 15289 instead of '\b'
473d1e45 15290
ede21d71 152912009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
15292
15293 Definitions for creating asm symbols with Apple's CC
15294
15295 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
15296 [APPLE_CC] (VARIABLE): likewise
15297
9dbf7653 152982009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
15299
15300 Disable lnxboot.img when compiled
15301 with Apple's CC
15302
15303 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
15304 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
15305 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
15306 [! APPLE_CC] (CODE_LENG): skip
15307 [! APPLE_CC] (setup_sects): likewise
15308 [! APPLE_CC]: skip filling
473d1e45 15309
e93cdc3d 153102009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
15311
15312 Address in trampolines based on 32-bit registers when compiled
15313 with Apple's CC
15314
473d1e45 15315 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
e93cdc3d 15316 for addresses
15317 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
15318
6c688477 153192009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
15320
15321 Avoid aliases when compiling with Apple's CC for PCBIOS machine
15322
15323 * kern/misc.c [APPLE_CC] (memcpy): new function
15324 [APPLE_CC] (memmove): likewise
15325 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
473d1e45 15326 (memcpy): define alias conditionally on !APPLE_CC
6c688477 15327 (memset): likewise
15328 (abort): likewise
15329 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
15330 APPLE_CC are defined
15331 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
15332 (grub_assert_fail): make prototype conditional
15333
e37ffc5c 153342009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
15335
15336 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
15337
473d1e45 15338 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
15339 grub-macho2img
e37ffc5c 15340 (CLEANFILES): add grub-macho2img
15341 (grub_macho2img_SOURCES): new variable
15342 * kern/i386/pc/startup.S (bss_start): new variable
15343 (bss_end): likewise
15344 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
15345 * util/grub-macho2img.c: new file
15346
cf00df31 153472009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
15348
15349 Use objconv when compiling with Apple's CC
15350
15351 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
15352 (efiemu64.o): likewise
15353 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
15354 when compiling with Apple's CC
15355 (efiemu64_s.o): likewise
15356 * configure.ac: check for objconv when compiling with Apple's CC
15357 * genmk.rb: use objconv for modules when compiled with Apple's CC
473d1e45 15358
d119a20c 153592009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
15360
15361 Define segment as well as section when compiling with
15362 Apple's CC
15363
15364 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
15365 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
15366 (efiemu_convert_pointer): likewise
15367 (efiemu_set_virtual_address_map): likewise
15368 (efiemu_convert_pointer): likewise
15369 (efiemu_getcrc32): likewise
15370 (init_crc32_table): likewise
15371 (reflect): likewise
15372 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
15373 (GRUB_MOD_DEP): likewise
473d1e45 15374
c8600122 153752009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
15376
15377 Allow a compilation without -mcmodel=large
15378
15379 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
15380 when compiled without -mcmodel=large
473d1e45 15381 (filter_memory_map): remove memory post 4 GiB when compiled
c8600122 15382 without -mcmodel=large
473d1e45 15383 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
c8600122 15384 TARGET_CFLAGS when -mcmodel=large isn't supported
473d1e45 15385
e8df1d4e 153862009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
15387
15388 Remove nested functions in efiemu core
15389
15390 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
473d1e45 15391
cc6c3ac1 153922009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
15393
15394 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
15395
15396 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
15397 temporary storage
473d1e45 15398 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
15399 using Apple's CC
cc6c3ac1 15400 (grub_cpu_is_tsc_supported): likewise
15401 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
473d1e45 15402
3e325901 154032009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
15404
15405 Absolute addressing through constant with Apple's cc
15406
15407 * kern/i386/pc/startup.S: Define necessary constants
15408 and address through it when using ABS with Apple's CC
15409 * boot/i386/pc/diskboot.S: likewise
15410 * boot/i386/pc/boot.S: likewise
15411 * boot/i386/pc/lnxboot.S: likewise
15412 * boot/i386/pc/cdboot.S: likewise
15413 * mmap/i386/pc/mmap_helper.S: likewise
15414 * commands/i386/pc/drivemap_int13h.S: likewise
15415
2b167a72 154162009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
15417
15418 Check if compiler is apple cc
15419
15420 * Makefile.in (ASFLAGS): new variable
15421 (TARGET_ASFLAGS): likewise
15422 (TARGET_MODULE_FORMAT): likewise
15423 (TARGET_APPLE_CC): likewise
15424 (OBJCONV): likewise
15425 (TARGET_IMG_CFLAGS): likewise
15426 (TARGET_CPPFLAGS): add includedir
15427 * configure.ac: call grub_apple_cc and grub_apple_target_cc
15428 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
15429 Check for linker script only if compiler isn't Apple's CC
15430 (TARGET_MODULE_FORMAT): set
15431 (TARGET_APPLE_CC): likewise
15432 (TARGET_ASFLAGS): likewise
15433 (ASFLAGS): likewise
15434 Check for objcopy only if compiler isn't Apple's CC
15435 Check for BSS symbol only if compiler isn't Apple's CC
15436 * genmk.rb: adapt nm options if we use Apple's utils
15437 * aclocal.m4 (grub_apple_cc): new test
15438 (grub_apple_target_cc): likewise
473d1e45 15439
fb14123e 154402009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
15441
15442 Simplify sed expressions and improve awk
15443
15444 * Makefile.in (install-local): simplify sed expression
15445 * gencmdlist.sh: likewise
15446 * genmoddep.awk: avoid adding module as a dependency of itself
15447
5b889789 154482009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
15449
15450 Add missing start symbols
15451
15452 * boot/i386/pc/boot.S: add start
fb14123e 15453 * boot/i386/pc/pxeboot.S: likewise
473d1e45 15454
fd2bf2e3 154552009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
15456
15457 Fix wrong assumptions with grub-mkimage on EFI
473d1e45 15458
15459 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
fd2bf2e3 15460 (relocate_addresses): consider both r_addend and value at offset
15461 (make_mods_section): zerofill modinfo and header
15462 (convert_elf): write prefix here
473d1e45 15463
5389763d 154642009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
15465
15466 Use .asciz instead of .string
15467
15468 * i386/pc/diskboot.S: use .asciz instead of .string
15469 * i386/pc/boot.S: likewise
15470 * include/grub/dl.h (GRUB_MOD_DEP): likewise
15471 (GRUB_MOD_NAME): likewise
473d1e45 15472
3eb5ed4e 154732009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
15474
15475 gfxpayload support
15476
15477 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
15478 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
15479 (grub_video_setup): remove
15480 (grub_video_set_mode): new prototype
15481 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
15482 (vid_mode): remove
15483 (linux_vesafb_res): compile only on PCBIOS
15484 (grub_linux_boot): support gfxpayload
15485 * loader/i386/pc/xnu.c (video_hook): new function
15486 (grub_xnu_set_video): support gfxpayload
15487 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
15488 (DEFAULT_VIDEO_HEIGHT): likewise
15489 (DEFAULT_VIDEO_FLAGS): likewise
15490 (DEFAULT_VIDEO_MODE): new definition
15491 (video_hook): new function
15492 (grub_gfxterm_init): use grub_video_set_mode
473d1e45 15493 * util/grub.d/30_os-prober.in: remove explicit modesetting before
3eb5ed4e 15494 loading xnu
15495 * video/video.c (grub_video_setup): removed
473d1e45 15496 (grub_video_set_mode): new function based on grub_gfxterm_init and
3eb5ed4e 15497 grub_video_setup
15498
4b0e1143 154992009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
15500
15501 Avoid calling biosdisk in drivemap
15502
15503 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
15504 (revparse_biosdisk): likewise
15505 (list_mappings): derive name from id directly
15506 (grub_cmd_drivemap): use tryparse_diskstring
473d1e45 15507
fda6cb98 155082009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
15509
15510 Script fixes
15511
15512 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
15513 (grub_lexer_param): add tokenonhold
15514 (grub_script_create_cmdline): remove cmdline. All callers updated
15515 (grub_script_function_create): make functionname
15516 grub_script_arg. All callers updated
15517 (grub_script_execute_argument_to_string): new prototype
15518 * kern/parser.c (state_transitions): reorder
15519 (grub_parser_cmdline_state): fix a bug and make more compact
473d1e45 15520 * script/sh/execute.c (grub_script_execute_argument_to_string):
fda6cb98 15521 make global
15522 (grub_script_execute_cmdline): use new format
15523 * script/sh/function.c (grub_script_function_create): make functionname
15524 grub_script_arg. All callers updated
473d1e45 15525 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
fda6cb98 15526 (grub_script_yylex): remove
15527 (grub_script_yylex2): renamed to ...
15528 (grub_script_yylex): ...renamed
15529 parse the expressions like a${b}c
15530 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
15531 (GRUB_PARSER_TOKEN_VAR): remove
15532 (GRUB_PARSER_TOKEN_NAME): likewise
15533 ("if"): declare as typeless
15534 ("while"): likewise
15535 ("function"): likewise
15536 ("else"): likewise
15537 ("then"): likewise
15538 ("fi"): likewise
15539 (text): remove
15540 (argument): likewise
15541 (script): accept empty scripts and make exit on error
15542 (arguments): use GRUB_PARSER_TOKEN_ARG
15543 (function): likewise
15544 (command): move error handling to script
15545 (menuentry): move grub_script_lexer_ref before
473d1e45 15546 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
fda6cb98 15547 argument. All callers updated
15548
f4448a07 155492009-06-04 Robert Millan <rmh.grub@aybabtu.com>
15550
15551 Prevent GRUB from probing floppies during boot.
15552
15553 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
15554 * commands/search.c (options): Add --no-floppy.
15555 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
15556 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
15557 --no-floppy when searching for UUIDs.
15558
2bf5885a 155592009-06-04 Robert Millan <rmh.grub@aybabtu.com>
15560
15561 Simplify the code duplication in commands/search.c.
15562
15563 * commands/search.c (search_label, search_fs_uuid): Merge into ...
15564 (search_fs): ... this. Update all users.
15565
f6fd460a 155662009-06-03 Felix Zielcke <fzielcke@z-51.de>
15567
15568 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
15569
cbb3c83e 155702009-05-28 Pavel Roskin <proski@gnu.org>
15571
57788cfd 15572 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
15573 Remove the original symlink explicitly.
15574
cbb3c83e 15575 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
15576 just one slash. That's how grub_fshelp_find_file() does it.
15577
cd0d5e30 155782009-05-26 Pavel Roskin <proski@gnu.org>
15579
f0f8bbe2 15580 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
15581 to `str'.
15582
cd0d5e30 15583 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
15584 possibly unused.
15585
8c2cab51 155862009-05-25 Christian Franke <franke@computer.org>
15587
15588 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
15589 register.
15590 (grub_atapi_identify): Add wait after drive select.
15591 (grub_ata_identify): Do more strict status register check before
15592 calling grub_atapi_identify (). Suppress error message if status
15593 register is 0x00 after command failure. Add status register
15594 check after PIO read to avoid bogus identify due to stuck DRQ.
15595 Thanks to Pavel Roskin for testing.
15596 (grub_device_initialize): Remove unsafe status register check.
15597 Thanks to 'phcoder' for problem report and patch.
15598 Prevent sign extension in debug message.
15599
230c0ad6 156002009-05-23 Colin D Bennett <colin@gibibit.com>
15601
15602 Cleaned up `include/grub/normal.h'. Grouped prototypes by
15603 definition file, and functions defined in `normal/menu.c' have had
15604 their prototypes moved to `include/grub/menu.h' for consistency.
15605
15606 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
15607 from normal.h.
15608 (grub_menu_get_entry): Likewise.
15609 (grub_menu_get_timeout): Likewise.
15610 (grub_menu_set_timeout): Likewise.
15611 (grub_menu_execute_entry): Likewise.
15612 (grub_menu_execute_with_fallback): Likewise.
15613 (grub_menu_entry_run): Likewise.
15614
15615 * include/grub/normal.h: Re-ordered and grouped function
15616 prototypes by file that the function is defined in.
15617 (grub_menu_execute_callback): Removed; moved to menu.h.
15618 (grub_menu_get_entry): Likewise.
15619 (grub_menu_get_timeout): Likewise.
15620 (grub_menu_set_timeout): Likewise.
15621 (grub_menu_execute_entry): Likewise.
15622 (grub_menu_execute_with_fallback): Likewise.
15623 (grub_menu_entry_run): Likewise.
15624 (grub_menu_addentry): Renamed from this ...
15625 (grub_normal_add_menu_entry): ... to this.
15626
15627 * normal/main.c (grub_menu_addentry): Renamed from this ...
15628 (grub_normal_add_menu_entry): ... to this.
15629
15630 * script/sh/execute.c (grub_script_execute_menuentry): Update
15631 reference to renamed grub_menu_addentry function.
15632
861f03a5 156332009-05-23 Felix Zielcke <fzielcke@z-51.de>
15634
15635 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
15636
96b1619a 156372009-05-22 Pavel Roskin <proski@gnu.org>
15638
bf6a5fb2 15639 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
15640 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
15641 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
15642 compiling for the i386 targets, but not for the utilities.
15643
96b1619a 15644 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
15645 to grub_uint8_t.
15646 (grub_root_drive): Likewise.
15647 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
15648 remove alignment.
15649 (grub_root_drive): Change size to byte.
15650 (grub_start_addr): Remove.
15651 (grub_end_addr): Likewise.
15652 (grub_apm_bios_info): Likewise.
15653
b729776b 156542009-05-21 Felix Zielcke <fzielcke@z-51.de>
15655
15656 * normal/i386: Remove.
15657 * normal/powerpc: Likewise.
15658 * normal/sparc64: Likewise.
15659 * normal/x86_64: Likewise.
15660
0a15ce80 156612009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
15662
15663 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
473d1e45 15664 * loader/i386/linux_trampoline.S: Fix indentation
0a15ce80 15665 * loader/i386/xnu_helper.S: Likewise
d6da58e6 15666
33db9015 156672009-05-18 Colin D Bennett <colin@gibibit.com>
15668
d6da58e6 15669 Display error messages when parsing a Lua statement fails.
15670 Previously, executing a syntactically invalid statement like
15671 ")foo" or "bar;" would silently fail.
33db9015 15672
15673 * script/lua/grub_main.c (handle_lua_error): New function.
d6da58e6 15674 (grub_lua_parse_line): Improved reporting of Lua parser and
15675 execution errors.
33db9015 15676
46422c89 156772009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
15678
15679 Remove -Werror which causes build to fail on some systems
15680
15681 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
15682 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
15683 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
18f547ad 15684
22f53a96 156852009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
15686
15687 trampoline for linux on 64-bit platform
15688
18f547ad 15689 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
15690 loader/i386/efi/linux_trampoline.S
15691 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
473d1e45 15692 declaration
d6da58e6 15693 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
15694 here
22f53a96 15695 * loader/i386/linux_trampoline.S: moved here
d6da58e6 15696 * loader/i386/efi/linux.c (allocate_pages): reserve space for
15697 trampoline
22f53a96 15698 (jumpvector): removed
15699 (grub_linux_trampoline_start): new declaration
15700 (grub_linux_trampoline_end): likewise
15701 (grub_linux_boot): use trampoline when on 64-bit platform
15702 * loader/i386/linux.c: likewise
15703
cb5a0f40 157042009-05-16 Pavel Roskin <proski@gnu.org>
15705
15706 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
15707 const to avoid a warning.
15708 (grub_lua_setenv): Likewise.
15709 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
15710 lmsg to fix a warning.
15711
334f2c28 157122009-05-16 Felix Zielcke <fzielcke@z-51.de>
15713
15714 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
7dd10fce 15715 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
15716 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
15717 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
15718 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
15719 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
15720 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
15721 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
334f2c28 15722
59e5d3ec 157232009-05-16 Felix Zielcke <fzielcke@z-51.de>
15724
15725 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
15726
9d87a1ba 157272009-05-16 Bean <bean123ch@gmail.com>
15728
15729 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
15730 (lua_mod_SOURCES): New variable.
15731 (lua_mod_CFLAGS): Likewise.
15732 (lua_mod_LDFLAGS): Likewise.
15733
15734 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
15735 (setjmp_mod_SOURCES): New variable.
15736 (setjmp_mod_CFLAGS): Likewise.
15737 (setjmp_LDFLAGS): Likewise.
15738
15739 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
15740 (setjmp_mod_SOURCES): New variable.
15741 (setjmp_mod_CFLAGS): Likewise.
15742 (setjmp_LDFLAGS): Likewise.
15743
15744 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
15745 (setjmp_mod_SOURCES): New variable.
15746 (setjmp_mod_CFLAGS): Likewise.
15747 (setjmp_LDFLAGS): Likewise.
15748
15749 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
15750 (setjmp_mod_SOURCES): New variable.
15751 (setjmp_mod_CFLAGS): Likewise.
15752 (setjmp_LDFLAGS): Likewise.
15753
15754 * normal/i386/setjmp.S: Moved from here ...
15755 * lib/i386/setjmp.S: ... Moved here
15756 * normal/x86_64/setjmp.S: Moved from here ...
15757 * lib/x86_64/setjmp.S: ... Moved here
15758 * normal/powerpc/setjmp.S: Moved from here ...
15759 * lib/powerpc/setjmp.S: ... Moved here
15760 * normal/sparc64/setjmp.S: Moved from here ...
15761 * lib/sparc64/setjmp.S: ... Moved here
15762
15763 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
15764 returns_twice in mingw.
15765
15766 * script/lua/grub_lib.c: New file.
15767 * script/lua/grub_lib.h: Likewise.
15768 * script/lua/grub_lua.h: Likewise.
15769 * script/lua/grub_main.c: Likewise.
15770 * script/lua/lapi.c: Likewise.
15771 * script/lua/lapi.h: Likewise.
15772 * script/lua/lauxlib.c: Likewise.
15773 * script/lua/lauxlib.h: Likewise.
15774 * script/lua/lbaselib.c: Likewise.
15775 * script/lua/lcode.c: Likewise.
15776 * script/lua/lcode.h: Likewise.
15777 * script/lua/ldblib.c: Likewise.
15778 * script/lua/ldebug.c: Likewise.
15779 * script/lua/ldebug.h: Likewise.
15780 * script/lua/ldo.c: Likewise.
15781 * script/lua/ldo.h: Likewise.
15782 * script/lua/ldump.c: Likewise.
15783 * script/lua/lfunc.c: Likewise.
15784 * script/lua/lfunc.h: Likewise.
15785 * script/lua/lgc.c: Likewise.
15786 * script/lua/lgc.h: Likewise.
15787 * script/lua/linit.c: Likewise.
15788 * script/lua/liolib.c: Likewise.
15789 * script/lua/llex.c: Likewise.
15790 * script/lua/llex.h: Likewise.
15791 * script/lua/llimits.h: Likewise.
15792 * script/lua/lmathlib.c: Likewise.
15793 * script/lua/lmem.c: Likewise.
15794 * script/lua/lmem.h: Likewise.
15795 * script/lua/loadlib.c: Likewise.
15796 * script/lua/lobject.c: Likewise.
15797 * script/lua/lobject.h: Likewise.
15798 * script/lua/lopcodes.c: Likewise.
15799 * script/lua/lopcodes.h: Likewise.
15800 * script/lua/loslib.c: Likewise.
15801 * script/lua/lparser.c: Likewise.
15802 * script/lua/lparser.h: Likewise.
15803 * script/lua/lstate.c: Likewise.
15804 * script/lua/lstate.h: Likewise.
15805 * script/lua/lstring.c: Likewise.
15806 * script/lua/lstring.h: Likewise.
15807 * script/lua/lstrlib.c: Likewise.
15808 * script/lua/ltable.c: Likewise.
15809 * script/lua/ltable.h: Likewise.
15810 * script/lua/ltablib.c: Likewise.
15811 * script/lua/ltm.c: Likewise.
15812 * script/lua/ltm.h: Likewise.
15813 * script/lua/lua.h: Likewise.
15814 * script/lua/luaconf.h: Likewise.
15815 * script/lua/lualib.h: Likewise.
15816 * script/lua/lundump.c: Likewise.
15817 * script/lua/lundump.h: Likewise.
15818 * script/lua/lvm.c: Likewise.
15819 * script/lua/lvm.h: Likewise.
15820 * script/lua/lzio.c: Likewise.
15821 * script/lua/lzio.h: Likewise.
15822
5e898c9d 158232009-05-16 Bean <bean123ch@gmail.com>
15824
15825 * include/grub/kernel.h (grub_module_header_types): Add type
15826 OBJ_TYPE_CONFIG.
15827
15828 * kern/main.c (grub_load_config): New function.
15829 (grub_main): Call grub_load_config to read boot config.
15830
15831 * grub-mkimage (generate_image): New parameter config_path.
15832 (options): New option --config.
15833 (main): Parse --config option, and pass it to generate_image.
15834
cf353a47 158352009-05-14 Christian Franke <franke@computer.org>
15836
15837 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
15838 This fixes build on Cygwin.
15839
3834887f 158402009-05-14 Pavel Roskin <proski@gnu.org>
15841
15842 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
15843 jump. This saves two bytes, so the typical case of 2 swapped
15844 drives would fit 32 bytes.
15845
8090fc01 158462009-05-13 Pavel Roskin <proski@gnu.org>
15847
ac963883 15848 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
15849 grub_uint32_t to avoid a warning.
15850
8090fc01 15851 * loader/i386/linux.c (allocate_pages): When assigning
15852 real_mode_mem, cast through grub_size_t to fix a warning. The
15853 code already makes sure that the value would fit a pointer.
15854 (grub_linux_setup_video): Cast render_target->data to
15855 grub_size_t to fix a warning.
15856
18f547ad 158572009-05-13 Javier Martín <lordhabbit@gmail.com>
4246b8a9 15858
15859 * commands/i386/pc/drivemap.c: New file - implement drivemap
15860 command.
15861 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
15862 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
15863
6f6a8b28 158642009-05-13 Pavel Roskin <proski@gnu.org>
15865
15866 * util/i386/pc/grub-setup.c (setup): Remove unused variable
15867 embedding_area_exists.
15868
15fbf4c4 158692009-05-13 Robert Millan <rmh.grub@aybabtu.com>
15870
15871 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
15872 it easier to understand / work with.
59978c8a 15873 Improve warning messages for cases where there's no embedding area,
15874 or when it is too small (or core.img too large).
15fbf4c4 15875
238e871f 158762009-05-13 Pavel Roskin <proski@gnu.org>
15877
0ab3a9a4 15878 * loader/i386/pc/multiboot2.c: Add necessary includes for
15879 grub_multiboot2_real_boot().
15880
a2c8c5f8 15881 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
15882 PX record is always little-endian. We only need the lower 2
15883 bytes of the mode.
15884
faec96af 15885 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
15886 facilitate code reuse.
15887 (grub_cpio_mount): Use "struct head", not a char buffer. This
15888 fixes a warning reported by gcc 4.4.
15889
238e871f 15890 * kernel/disk.c (grub_disk_read): Use void pointer for the
15891 buffer.
15892 (grub_disk_write): Use const void pointer for the buffer.
15893 Adjust all callers. Remove unnecessary casts.
15894
901d2f0c 158952009-05-10 Robert Millan <rmh.grub@aybabtu.com>
15896
15897 * util/i386/pc/grub-install.in: Update copyright year.
15898
18f547ad 158992009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
2eac4c16 15900
15901 gptsync
15902
15903 * commands/gptsync.c: new file
15904 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
15905 (gptsync_mod_SOURCES): new variable
15906 (gptsync_mod_CFLAGS): likewise
15907 (gptsync_mod_LDFLAGS): likewise
18f547ad 15908 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
2eac4c16 15909 new definition
15910 (GRUB_PC_PARTITION_TYPE_HFS): likewise
15911 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
15912 * conf/i386-ieee1275.rmk: likewise
15913 * conf/i386-pc.rmk: likewise
15914 * conf/powerpc-ieee1275.rmk: likewise
15915
b4ba690a 159162009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
15917
15918 Fixed grub-emu
15919
15920 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
15921 (grub_dl_ref): likewise
15922
317e1a44 159232009-05-08 Robert Millan <rmh.grub@aybabtu.com>
15924
15925 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
15926 split in two functions (one for msdos and one for gpt).
15927
041b8094 159282009-05-08 Pavel Roskin <proski@gnu.org>
15929
752473c2 15930 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
15931 not modified.
15932
041b8094 15933 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
15934 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
15935 Initialize them with -1. Add sanity check for bad1. Eliminate
15936 nerr variable.
15937
172800ce 159382009-05-08 David S. Miller <davem@davemloft.net>
15939
15940 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
15941
29aa5e81 159422009-05-06 Robert Millan <rmh.grub@aybabtu.com>
15943
15944 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
473d1e45 15945 existence.
29aa5e81 15946
96613b62 159472009-05-05 Felix Zielcke <fzielcke@z-51.de>
15948
15949 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
1905c57b 15950 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
96613b62 15951
eef73c8a 159522009-05-05 David S. Miller <davem@davemloft.net>
15953
15954 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
15955
119494b5 159562009-05-05 Pavel Roskin <proski@gnu.org>
15957
15958 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
15959 of grub_dl_ref() and grub_dl_unref().
15960 * commands/parttool.c: Remove preprocessor conditionals around
15961 grub_dl_ref() and grub_dl_unref().
15962 * fs/affs.c: Likewise.
15963 * fs/afs.c: Likewise.
15964 * fs/cpio.c: Likewise.
15965 * fs/ext2.c: Likewise.
15966 * fs/fat.c: Likewise.
15967 * fs/hfs.c: Likewise.
15968 * fs/hfsplus.c: Likewise.
15969 * fs/iso9660.c: Likewise.
15970 * fs/jfs.c: Likewise.
15971 * fs/minix.c: Likewise.
15972 * fs/ntfs.c: Likewise.
15973 * fs/reiserfs.c: Likewise.
15974 * fs/sfs.c: Likewise.
15975 * fs/udf.c: Likewise.
15976 * fs/ufs.c: Likewise.
15977 * fs/xfs.c: Likewise.
15978 * include/grub/dl.h: Likewise.
15979 * loader/xnu.c: Likewise.
15980
de5fd76e 159812009-05-04 Pavel Roskin <proski@gnu.org>
15982
15983 * commands/acpi.c: Remove unused variable my_mod.
15984 * partmap/amiga.c: Likewise.
15985 * partmap/apple.c: Likewise.
15986 * partmap/gpt.c: Likewise.
15987 * partmap/pc.c: Likewise.
15988 * partmap/sun.c: Likewise.
15989 * term/gfxterm.c: Likewise.
15990 * term/i386/pc/vesafb.c: Likewise.
15991 * term/i386/pc/vga.c: Likewise.
15992
983598ad 159932009-05-04 David S. Miller <davem@davemloft.net>
15994
15995 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
15996 pointer args to grub_ieee1275_get_property().
15997
8aadec43 15998 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
15999
9554b15e 16000 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
16001 devices, and do not traverse down under controller nodes.
16002
67e23c90 16003 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
16004 (grub_ofdisk_open): Use it to un-escape "," characters.
16005 * kern/disk.c (find_part_sep): New.
16006 (grub_disk_open): Use it to find the first non-escaped ','
16007 character in the disk name.
16008 * util/ieee1275/devicemap.c (escape_of_path): New.
16009 (grub_util_emit_devicemap_entry): Use it.
16010 * util/sparc64/ieee1275/grub-install.in: Update script to
16011 strip partition specifiers properly by not triggering on
16012 '\' escaped ',' characters.
16013
74bfdd2f 160142009-05-04 Robert Millan <rmh.grub@aybabtu.com>
16015
16016 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
16017 to 0x300.
16018 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
16019 resolutions.
16020 (linux_vesafb_modes): Add a lot of additional modes to the list (based
16021 on documentation from Wikipedia).
16022
4241d2b1 160232009-05-04 Pavel Roskin <proski@gnu.org>
16024
16025 * disk/ata.c: Spelling fixes.
16026 * disk/raid.c: Likewise.
16027 * disk/usbms.c: Likewise.
16028 * disk/dmraid_nvidia.c: Likewise.
16029 * kern/ieee1275/openfw.c: Likewise.
16030 * kern/ieee1275/init.c: Likewise.
16031 * kern/ieee1275/cmain.c: Likewise.
16032 * boot/i386/pc/cdboot.S: Likewise.
16033 * video/readers/png.c: Likewise.
16034 * video/i386/pc/vbe.c: Likewise.
16035 * fs/udf.c: Likewise.
16036 * fs/hfs.c: Likewise.
16037 * fs/reiserfs.c: Likewise.
16038 * efiemu/runtime/efiemu.c: Likewise.
16039 * efiemu/main.c: Likewise.
16040 * efiemu/mm.c: Likewise.
16041 * include/grub/elf.h: Likewise.
16042 * include/grub/xnu.h: Likewise.
16043 * include/grub/usbdesc.h: Likewise.
16044 * include/grub/usb.h: Likewise.
16045 * include/grub/script_sh.h: Likewise.
16046 * include/grub/lib/LzmaEnc.h: Likewise.
16047 * include/grub/efiemu/efiemu.h: Likewise.
16048 * include/grub/command.h: Likewise.
16049 * normal/menu.c: Likewise.
16050 * normal/main.c: Likewise.
16051 * normal/datetime.c: Likewise.
16052 * bus/usb/uhci.c: Likewise.
16053 * mmap/i386/uppermem.c: Likewise.
16054 * mmap/mmap.c: Likewise.
16055 * commands/acpi.c: Likewise.
16056 * commands/test.c: Likewise.
16057 * partmap/apple.c: Likewise.
16058 * font/font.c: Likewise.
16059 * loader/sparc64/ieee1275/linux.c: Likewise.
16060 * loader/macho.c: Likewise.
16061 * loader/i386/bsd_trampoline.S: Likewise.
16062 * loader/i386/bsd.c: Likewise.
16063 * loader/xnu.c: Likewise.
16064 * term/i386/pc/vesafb.c: Likewise.
16065 * term/usb_keyboard.c: Likewise.
16066 * util/resolve.c: Likewise.
16067 * util/getroot.c: Likewise.
16068
0cfc0083 160692009-05-04 Felix Zielcke <fzielcke@z-51.de>
16070
16071 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
16072
7c1d00cd 160732009-05-04 Robert Millan <rmh.grub@aybabtu.com>
16074
16075 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
16076 build error.
16077
b01f0548 160782009-05-04 Robert Millan <rmh.grub@aybabtu.com>
16079
16080 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
16081 parameter only available on BIOS.
16082
ecc3eb22 160832009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
16084
16085 Removed wrong semicolon in declaration
16086
16087 * grub/misc.h (grub_dprintf): remove semicolon
16088
112972a9 160892009-05-04 Robert Millan <rmh.grub@aybabtu.com>
16090
16091 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
16092 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
16093 is done by grub_cmd_linux() now).
16094 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
16095 restore video to text mode.
16096 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
16097 indicates lack of "vga=" parameter. "vga=0" is mapped to
16098 `GRUB_LINUX_VID_MODE_NORMAL'.
16099
afd5c115 161002009-05-04 Felix Zielcke <fzielcke@z-51.de>
16101
16102 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
16103 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
16104 and `normal/script.c'. Add `kern/rescue_reader.c',
18f547ad 16105 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
afd5c115 16106 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
16107 `grub_script.tab.c'.
16108
16109 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
16110 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
16111 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
16112 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
16113 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
16114
faa517ce 16115 * Makefile.in: Remove duplicated 2008 in Copyright line.
16116
ae0c0bdc 161172009-05-04 Robert Millan <rmh.grub@aybabtu.com>
16118
473d1e45 16119 * util/misc.c (grub_util_warn): New function. Emits a warning
ae0c0bdc 16120 unconditionally.
16121 * include/grub/util/misc.h (grub_util_warn): New declaration.
16122
16123 * util/i386/pc/grub-install.in: Understand --force and pass it down
16124 to grub-setup.
16125
16126 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
16127 down to setup().
16128 (setup): Improve error messages and add warnings when requested to
16129 install in odd layouts. Refuse to install using blocklists unless
16130 --force was set.
16131
18f547ad 161322009-05-04 martin f. krafft <madduck@madduck.net>
c149b500 16133
16134 * disk/raid.c (grub_raid_scan_device): Improve debug message.
16135
6d260daa 161362009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
16137
16138 Updated copyright year
16139
16140 * fs/hfsplus.c: updated copyright year
18f547ad 16141
69f853f8 161422009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
16143
16144 HFS+ UUID
16145
18f547ad 16146 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
69f853f8 16147 in the space previously used by unused3
16148 (grub_hfsplus_uuid): new function
16149 (grub_hfsplus_fs): added uuid field
16150
4c402e73 161512009-05-03 Pavel Roskin <proski@gnu.org>
16152
16153 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
16154 suppress warnings. It's no longer needed.
16155 * disk/host.c: Likewise.
16156 * disk/ata_pthru.c: Likewise.
16157 * disk/loopback.c: Likewise.
16158 * hook/datehook.c: Likewise.
16159 * parttool/pcpart.c: Likewise.
16160 * fs/i386/pc/pxe.c: Likewise.
16161 * fs/ntfscomp.c: Likewise.
16162 * efiemu/main.c: Likewise.
16163 * mmap/mmap.c: Likewise.
16164 * commands/crc.c: Likewise.
16165 * commands/hexdump.c: Likewise.
16166 * commands/hdparm.c: Likewise.
16167 * commands/acpi.c: Likewise.
16168 * commands/echo.c: Likewise.
16169 * commands/minicmd.c: Likewise.
16170 * commands/blocklist.c: Likewise.
16171 * commands/memrw.c: Likewise.
16172 * commands/loadenv.c: Likewise.
16173 * commands/usbtest.c: Likewise.
16174 * commands/lsmmap.c: Likewise.
16175 * commands/boot.c: Likewise.
16176 * commands/parttool.c: Likewise.
16177 * commands/configfile.c: Likewise.
16178 * commands/search.c: Likewise.
16179 * commands/ieee1275/suspend.c: Likewise.
16180 * commands/cat.c: Likewise.
16181 * commands/i386/pc/pxecmd.c: Likewise.
16182 * commands/i386/pc/play.c: Likewise.
16183 * commands/i386/pc/halt.c: Likewise.
16184 * commands/i386/pc/vbeinfo.c: Likewise.
16185 * commands/i386/pc/vbetest.c: Likewise.
16186 * commands/lspci.c: Likewise.
16187 * commands/date.c: Likewise.
16188 * commands/handler.c: Likewise.
16189 * commands/ls.c: Likewise.
16190 * commands/test.c: Likewise.
16191 * commands/cmp.c: Likewise.
16192 * commands/efi/loadbios.c: Likewise.
16193 * commands/efi/fixvideo.c: Likewise.
16194 * commands/halt.c: Likewise.
16195 * commands/help.c: Likewise.
16196 * commands/reboot.c: Likewise.
16197 * hello/hello.c: Likewise.
16198 * script/sh/main.c: Likewise.
16199 * loader/xnu.c: Likewise.
16200 * term/terminfo.c: Likewise.
16201 * term/i386/pc/serial.c: Likewise.
16202 * term/usb_keyboard.c: Likewise.
16203
515b5079 162042009-05-03 David S. Miller <davem@davemloft.net>
16205
16206 * normal/menu.c: Include grub/parser.h
16207
dfc31a22 162082009-05-03 Pavel Roskin <proski@gnu.org>
16209
2fee74f1 16210 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
16211 not char*.
16212 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
16213 Suggested by Javier Martín <lordhabbit@gmail.com>
16214
dfc31a22 16215 * util/i386/pc/grub-mkrescue.in: Allow for the case when
16216 efiemu??.o doesn't exist.
16217 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
16218 copying.
16219
18f547ad 162202009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
cef17233 16221
16222 FreeBSD 64-bit support
16223
18f547ad 16224 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
cef17233 16225 and loader/i386/bsd_trampoline.S
16226 (bsd_mod_ASFLAGS): new variable
16227 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
16228 (FREEBSD_MODTYPE_KERNEL64): likewise
16229 (grub_bsd64_trampoline_start): likewise
16230 (grub_bsd64_trampoline_end): likewise
16231 (grub_bsd64_trampoline_selfjump): likewise
16232 (grub_bsd64_trampoline_gdt): likewise
16233 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
16234 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
16235 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
16236 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
18f547ad 16237 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
cef17233 16238 of "attrib" member
16239 * loader/i386/bsd_pagetable.c: new file
16240 * loader/i386/bsd_trampoline.S: likewise
16241 * loader/i386/bsd.c (ALIGN_QWORD): new macro
16242 (ALIGN_VAR): likewise
16243 (entry_hi): new variable
16244 (kern_end_mdofs): likewise
16245 (is_64bit): likewise
16246 (grub_freebsd_add_meta): use ALIGN_VAR
16247 (grub_e820_mmap): new declaration
16248 (grub_freebsd_add_mmap): new function
16249 (grub_freebsd_add_meta_module): support 64 bit kernels
16250 (grub_freebsd_list_modules): use ALIGN_VAR
16251 (gdt_descriptor): new declaration
16252 (grub_freebsd_boot): support 64 bit kernels
16253 (grub_bsd_elf64_hook): new function
16254 (grub_bsd_load_elf): support elf64
16255
038c5720 162562009-05-03 Bean <bean123ch@gmail.com>
16257
16258 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
16259 after we get the result of if statement.
16260
fc45fb58 162612009-05-03 Bean <bean123ch@gmail.com>
16262
16263 * Makefile.in (enable_efiemu): New variable.
16264
16265 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
16266 set.
16267 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
16268 path.
16269 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
16270 path, add -mno-red-zone option.
16271 (efiemu64_s.o): Likewise.
16272 (efiemu64.o): Use macro $^ for source file.
16273
16274 * configure.ac (--enable-efiemu): New option.
16275
bbee0f2b 162762009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
16277
16278 xnu support
16279
16280 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
16281 (pkglib_MODULES): add xnu.mod
16282 (xnu_mod_SOURCES): new variable
16283 (xnu_mod_CFLAGS): likewise
16284 (xnu_mod_LDFLAGS): likewise
16285 (xnu_mod_ASFLAGS): likewise
16286 * conf/i386-pc.rmk: likewise
16287 * conf/x86_64-efi.rmk: likewise
7dd4a573 16288 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
bbee0f2b 16289 new declaration
16290 * include/grub/i386/macho.h: new file
16291 * include/grub/i386/xnu.h: likewise
16292 * include/grub/macho.h: likewise
16293 * include/grub/machoload.h: likewise
16294 * include/grub/x86_64/macho.h: likewise
16295 * include/grub/x86_64/xnu.h: likewise
16296 * include/grub/xnu.h: likewise
16297 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
16298 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
16299 * loader/i386/efi/xnu.c: new file
16300 * loader/i386/pc/xnu.c: likewise
16301 * loader/i386/xnu.c: likewise
16302 * loader/i386/xnu_helper.S: likewise
16303 * loader/macho.c: likewise
16304 * loader/xnu.c: likewise
16305 * loader/xnu_resume.c: likewise
16306 * util/grub-dumpdevtree: likewise
16307 * include/grub/i386/pit.h: include grub/err.h
16308 (grub_pit_wait): export
16309 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
7dd4a573 16310
5caf964d 163112009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
16312
16313 Efiemu
7dd4a573 16314
5caf964d 16315 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
7dd4a573 16316 _linux_efi, linux_efi.
16317 new files in grub-emu
5caf964d 16318 new targets efiemu32.o and efiemu64.o
16319 * loader/linux_normal_efiemu.c: likewise
16320 * loader/i386/efi/linux.c: added preliminary efiemu support
7dd4a573 16321 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
5caf964d 16322 files to copy
16323 * include/grub/autoefi.h: new file
7dd4a573 16324 * include/grub/i386/efiemu.h: likewise
5caf964d 16325 * include/grub/i386/pc/efiemu.h: likewise
16326 * include/grub/efi/api.h: add LL suffix when necessary
16327 new definitions relating to tables
16328 * include/grub/efiemu/efiemu.h: new file
16329 * include/grub/efiemu/runtime.h: likewise
16330 * efiemu/prepare.c: likewise
16331 * efiemu/loadcore_common.c: likewise
16332 * efiemu/loadcore64.c: likewise
16333 * efiemu/runtime/efiemu.sh: likewise
16334 * efiemu/runtime/efiemu.S: likewise
16335 * efiemu/runtime/efiemu.c: likewise
16336 * efiemu/runtime/config.h: likewise
16337 * efiemu/prepare32.c: likewise
16338 * efiemu/main.c: likewise
16339 * efiemu/modules/pnvram.c: likewise
16340 * efiemu/modules/i386: likewise
16341 * efiemu/modules/i386/pc: likewise
16342 * efiemu/modules/acpi.c: likewise
16343 * efiemu/i386/pc/cfgtables.c: likewise
16344 * efiemu/i386/loadcore64.c: likewise
16345 * efiemu/i386/loadcore32.c: likewise
16346 * efiemu/prepare64.c: likewise
16347 * efiemu/loadcore.c: likewise
16348 * efiemu/symbols.c: likewise
16349 * efiemu/mm.c: likewise
16350 * efiemu/loadcore32.c: likewise
7dd4a573 16351
163522009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
f8efe3ad 16353
16354 ACPI spoofing
16355
16356 * commands/acpi.c: new file
16357 * commands/i386/pc/acpi.c: likewise
16358 * commands/efi/acpi.c: likewise
16359 * include/grub/acpi.h: likewise
16360 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
16361 (acpi_mod_SOURCES): new variable
16362 (acpi_mod_CFLAGS): likewise
16363 (acpi_mod_LDFLAGS): likewise
16364 * conf/i386-efi.rmk: likewise
16365 * conf/x86_64-efi.rmk: likewise
16366
7dd4a573 163672009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
28a85665 16368
16369 Missing part from mmap patch
16370
16371 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
16372 (grub_mmap_unregister)
16373 (grub_mmap_free_and_unregister): use grub_mmap_register
16374
7dd4a573 163752009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
09d842b9 16376
16377 Mmap services
16378
16379 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
16380 * loader/i386/linux.c (find_mmap_size): likewise
16381 (allocate_pages): likewise
16382 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
16383 (grub_fill_multiboot_mmap): likewise
16384 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
16385 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
16386 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
16387 (OPENBSD_MMAP_RESERVED): likewise
16388 * include/grub/i386/pc/memory.h: include grub/memory.h
16389 (grub_lower_mem): removed
16390 (grub_upper_mem): likewise
16391 (GRUB_MACHINE_MEMORY_ACPI): new definition
16392 (GRUB_MACHINE_MEMORY_NVS): likewise
16393 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
16394 (GRUB_MACHINE_MEMORY_HOLE): likewise
16395 (grub_machine_mmap_register): likewise
16396 (grub_machine_mmap_unregister): likewise
16397 (grub_machine_get_upper): likewise
16398 (grub_machine_get_lower): likewise
16399 (grub_machine_get_post64): likewise
16400 * include/grub/i386/efi/memory.h: new file
16401 * include/grub/x86_64/efi/memory.h: likewise
16402 * include/grub/efi/memory.h: likewise
16403 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
16404 (mmap_mod_SOURCES): new variable
16405 (mmap_mod_LDFLAGS): likewise
16406 (mmap_mod_ASFLAGS): likewise
16407 * conf/i386-coreboot.rmk: likewise
16408 * conf/i386-ieee1275.rmk: likewise
16409 * conf/i386-efi.rmk: likewise
16410 * conf/x86_64-efi.rmk: likewise
16411 * include/grub/types.h (UINT_TO_PTR): new macro
16412 (PTR_TO_UINT32): likewise
16413 (PTR_TO_UINT64): likewise
16414 * include/grub/memory.h: new file
16415 * mmap/i386/pc/mmap.c: likewise
16416 * mmap/i386/pc/mmap_helper.S: likewise
16417 * mmap/i386/uppermem.c: likewise
16418 * mmap/mmap.c: likewise
16419 * mmap/efi/mmap.c: likewise
7dd4a573 16420 * kern/i386/coreboot/init.c (grub_machine_init): don't use
09d842b9 16421 grub_upper_mem
16422 * kern/i386/pc/init.c (grub_lower_mem): removed variable
16423 (grub_upper_mem): likewise
16424 (grub_machine_init): don't use grub_upper_mem,
16425 make grub_lower_mem local
16426 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
16427 grub_mmap_iterate and grub_mmap_get_upper
16428 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
16429
d558e6b5 164302009-05-02 Bean <bean123ch@gmail.com>
16431
16432 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
16433 script/sh/parser.y.
16434 (pkglib_MODULES): Add normal.mod and sh.mod.
16435 (normal_SOURCES): New variable.
16436 (normal_mod_CFLAGS): Likewise.
16437 (normal_mod_LDFLAGS): Likewise.
16438 (sh_mod_SOURCES): Likewise.
16439 (sh_mod_CFLAGS): Likewise.
16440 (sh_mod_LDFLAGS): Likewise.
16441
16442 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
16443 script/sh/lexer.c_DEPENDENCIES.
16444 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
16445 kern/rescue_reader.c and kern/rescue_parser.c.
16446 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
16447 (grub_emu_SOURCES): Change source files.
16448 (pkglib_MODULES): Remove normal.mod.
16449 (normal_SOURCES): Removed.
16450 (normal_mod_CFLAGS): Likewise.
16451 (normal_mod_LDFLAGS): Likewise.
16452 * conf/i386-coreboot.rmk: Likewise.
16453 * conf/i386-efi.rmk: Likewise.
16454 * conf/i386-ieee1276.rmk: Likewise.
16455 * conf/powerpc-ieee1275.rmk: Likewise.
16456 * conf/sparc64-ieee1275.rmk: Likewise.
16457 * conf/x86_64-efi.rmk: Likewise.
16458
16459 * include/grub/command.h (grub_command_execute): New inline function.
16460
16461 * include/grub/menu.h (grub_menu_entry): Removed commands field.
16462
16463 * include/grub/normal.h: Remove <grub/setjmp.h>.
16464 (grub_fs_module_list): Moved to normal/autofs.c.
16465 (grub_exit_env): Removed.
16466 (grub_command_execute): Likewise.
16467 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
16468 parameter script.
16469 (read_command_list): New function declaration.
16470 (read_fs_list): Likewise.
16471
16472 * include/parser.h: Include <grub/reader.h>.
16473 (grub_parser_split_cmdline): Change type of getline parameter.
16474 (grub_parser): New structure.
16475 (grub_parser_class): New variable.
16476 (grub_parser_execute): New function declaration.
16477 (grub_register_rescue_parser): Likewise.
16478 (grub_parser_register): New inline function.
16479 (grub_parser_unregister): Likewise.
16480 (grub_parser_get_current): Likewise.
16481 (grub_parser_set_current): Likewise.
16482
16483 * include/grub/reader.h: New file.
16484 * kern/reader.c: Likewise.
16485 * kern/rescue_parser.c: Likewise.
16486 * kern/rescue_reader.c: Likewise.
16487 * normal/autofs.c: Likewise.
16488 * normal/dyncmd.c: Likewise.
16489
16490 * include/grub/rescue.h: Removed.
16491 * normal/command.h: Likewise.
16492
16493 * include/grub/script.h: Moved to ...
16494 * include/grub/script_sh.h: ... Moved here.
16495 * normal/execute.c: Moved to ...
16496 * script/sh/execute.c: ... Moved here.
16497 * normal/function.c: Moved to ...
16498 * script/sh/function.c: ... Moved here.
16499 * normal/lexer.c: Moved to ...
16500 * script/sh/lexer.c: ... Moved here.
16501 * normal/parser.y: Moved to ...
16502 * script/sh/parser.y: ... Moved here.
16503 * normal/script.c: Moved to ...
16504 * script/sh/script.c: ... Moved here.
16505
16506 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
16507 <grub/reader.h>.
16508 (grub_exit_env): Removed.
16509 (fs_module_list): Moved to normal/autofs.c.
16510 (grub_file_getline): Don't handle comment here.
16511 (free_menu): Skip removed field entry->commands.
16512 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
16513 script parameter.
16514 (read_config_file): Removed nested parameter, change getline function.
16515 (grub_enter_normal_mode): Removed.
16516 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
16517 (read_command_list): Likewise.
16518 (autoload_fs_module): Moved to normal/autofs.c.
16519 (read_fs_list): Likewise.
16520 (reader_nested): New variable.
16521 (grub_normal_execute): Run parser.sh to switch to sh parser.
16522 (grub_cmd_rescue): Removed.
16523 (cmd_normal): Removed.
16524 (grub_cmd_normal): Unregister itself at the beginning. Don't register
16525 rescue command.
16526 (grub_cmdline_run): New function.
16527 (grub_normal_reader_init): Likewise.
16528 (grub_normal_read_line): Likewise.
16529 (grub_env_write_pager): Likewise.
16530 (cmdline): New variable.
16531 (grub_normal_reader): Likewise.
16532 (GRUB_MOD_INIT): Register normal reader and set as current, register
16533 pager hook, register normal command with grub_register_command_prio,
16534 so that it won't show up in command.lst.
16535 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
16536 grub_fs_autoload_hook.
16537
16538 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
16539 (grub_menu_execute_entry): Replace grub_script_execute with
16540 grub_parser_execute, change parameter to grub_command_execute.
16541
16542 * normal/menu_text.c: Remove <grub/script.h>.
16543
16544 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
16545 and <grub/parser.h>.
16546 (run): Change editor_getline to use new parser interface. Change
16547 parameter to grub_command_execute.
16548
16549 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
16550 <grub/reader.h> and <grub/parser.h>.
16551 (grub_load_normal_mode): Execute normal command.
16552 (grub_main): Call grub_register_core_commands,
16553 grub_register_rescue_parser and grub_register_rescue_reader, use
16554 grub_reader_loop to enter input loop.
16555
7dd4a573 16556 * kern/parser.c (grub_parser_split_cmdline): Change type of
16557 getline parameter.
d558e6b5 16558 (grub_parser_class): New variable.
16559 (grub_parser_execute): New function.
16560
16561 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
16562 * loader/multiboot2.c: Likewise.
16563 * loader/sparc64/ieee1275/linux.c: Likewise.
16564
16565 * util/grub-emu.c (read_command_list): New dummy function.
16566
18db813d 165672009-05-02 Robert Millan <rmh.grub@aybabtu.com>
16568
16569 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
16570 count to 16 for CCISS and IDA.
16571
6c67de15 165722009-05-02 Robert Millan <rmh.grub@aybabtu.com>
16573
16574 * normal/menu_text.c (grub_wait_after_message): Print a newline
16575 after waiting for user input.
16576
16577 * loader/i386/linux.c: Include `<grub/normal.h>'.
16578 (grub_cmd_linux): Improve the error message about `ask' mode, by
16579 waiting for user input so it's not missed (we can do this, since
16580 user requested interaction).
16581
d9dc87b0 165822009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
16583
16584 Added missing lst to grub-mkrescue
16585
16586 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
16587 and ${input_dir}/parttool.lst
16588
ac8a2baa 165892009-04-30 David S. Miller <davem@davemloft.net>
16590
ad22a610 16591 * util/hostdisk.c (device_is_wholedisk): New function.
16592 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
16593 zero only if device_is_wholedisk() returns true.
16594
6966215d 16595 * util/hostdisk.c (convert_system_partition_to_system_disk):
16596 Handle virtual disk devices named /dev/vdiskX as found on sparc
16597 and powerpc.
16598
ac8a2baa 16599 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
16600 lettered partition specifier is found, convert to numbered.
16601
979b4fb4 166022009-04-29 David S. Miller <davem@davemloft.net>
16603
e2bf39b2 16604 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
16605 * include/grub/sparc64/ieee1275/memory.h: Likewise.
16606
3c64e104 16607 * normal/command.c: Add missing newline at end of file.
16608
979b4fb4 16609 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
16610 warnings.
16611 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
16612 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
16613 grub_ofdisk_read): Likewise, and deal similarly with the fact that
16614 ihandles have a 32-bit type but need to be stored in a "void *".
16615
136d9f82 166162009-04-28 Pavel Roskin <proski@gnu.org>
16617
9459c306 16618 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
16619 not disk. Adjust all dependencies.
2e08a26a 16620 (grub_fs_uuid_close): Use grub_device_close(), not
9459c306 16621 grub_disk_close().
16622
136d9f82 16623 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
16624 parent's partition, don't copy it by reference, as it gets freed
16625 on close.
16626
7dd4a573 166272009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
75a807cf 16628
16629 Preboot hooks support
16630
16631 * commands/boot.c (struct grub_preboot_t): new declaration
16632 (preboots_head): new variable
16633 (preboots_tail): likewise
16634 (grub_loader_register_preboot_hook): new function
16635 (grub_loader_unregister_preboot_hook): likewise
16636 (grub_loader_set): launch preboot hooks
16637 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
16638 (grub_loader_register_preboot_hook): new declaration
16639 (grub_loader_unregister_preboot_hook): likewise
16640
5af922b5 166412009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
16642
16643 Warning fix
16644
7dd4a573 16645 * disk/scsi.c (grub_scsi_open): added missing cast when
5af922b5 16646 calling grub_dprintf
16647
a5562c30 166482009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
16649
16650 Bug and warning fixes
16651
7dd4a573 16652 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
a5562c30 16653 declaration
16654 * commands/test.c (test_parse): fixed bug with file tests and corrected
16655 declaration of find_file
16656
4006f85c 166572009-04-26 Pavel Roskin <proski@gnu.org>
16658
16659 * Makefile.in: Don't install empty manual pages if help2man is
16660 missing. Use help2man option for output, not shell redirection.
16661
5c77c3de 166622009-04-26 David S. Miller <davem@davemloft.net>
16663
16664 * util/grub-mkdevicemap.c (make_device_map): Add missing
16665 NESTED_FUNC_ATTR to process_device().
16666
033b10a8 166672009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
16668
16669 Test command
16670
16671 * commands/test.c: rewritten to use bash-like test
16672
e4343593 166732009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
16674
16675 Parttool autoloading and improvements
16676
7dd4a573 16677 * Makefile.in (pkglib_DATA): add parttool.lst
e4343593 16678 (parttool.lst): new target
16679 * genmk.rb: generate parttool-*
16680 (CLEANFILES): add #{parttool}
16681 (PARTTOOLFILES): new variable
16682 * genparttoollist.sh: new file
7dd4a573 16683 * parttool/pcpart.c (grub_pcpart_boot): more feedback
e4343593 16684 (grub_pcpart_type): likewise
16685 * commands/parttool.c (helpmsg): new variable
16686 (grub_cmd_parttool): output help if not enough arguments are supplied
16687 autoload modules
16688 (GRUB_MOD_INIT(parttool)): use helpmsg
16689
0d312500 166902009-04-24 David S. Miller <davem@davemloft.net>
16691
7dd4a573 16692 Avoiding opening same device multiple times in device iterator.
0d312500 16693
16694 * kern/device.c: (grub_device_iterate): Define struct part_ent,
7dd4a573 16695 and use it to build a list of partitions in iterate_disk() and
0d312500 16696 iterate_partition().
16697
ac20caff 16698 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
16699 on disk->data.
16700
0dcf7495 16701 * disk/ieee1275/nand.c (grub_nand_iterate): Return
16702 grub_devalias_iterate() result instead of unconditional 0.
16703 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
16704 Also, capture hook return value, either directly or via
16705 grub_children_iterate(), and propagate to caller.
16706 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
16707 grub_children_iterate): Return value is now 'int' instead of
16708 'grub_err_t'.
16709 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
16710 like a proper iterator, stopping when hooks return non-zero.
16711 (grub_devalias_iterate): Likewise.
16712
c8c08833 167132009-04-23 David S. Miller <davem@davemloft.net>
16714
16715 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
16716
f01005a8 167172009-04-22 David S. Miller <davem@davemloft.net>
16718
16719 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
16720 is larger than address_cells, use that value for address_cells too.
16721
4e8269da 16722 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
16723 IEEE1275_MAX_PATH_LEN): Define.
16724 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
16725 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
16726 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
16727 'devtype'. Explicitly NULL terminate devalias expansion.
16728
a1447506 16729 * util/sparc64/ieee1275/misc.c: New file.
16730 * util/sparc64/ieee1275/grub-setup.c: New file.
16731 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
16732 * util/sparc64/ieee1275/grub-mkimage.c: New file.
16733 * util/sparc64/ieee1275/grub-install.in: New file.
16734 * util/ieee1275/ofpath.c: New file.
16735 * util/ieee1275/devicemap.c: New file.
16736 * util/devicemap.c: New file.
16737 * util/deviceiter.c: New file.
16738 * kern/sparc64/ieee1275/init.c: New file.
16739 * include/grub/util/ofpath.h: New file.
16740 * include/grub/util/deviceiter.h: New file.
16741 * util/grub-mkdevicemap.c: Include deviceiter.h.
16742 Implement using grub_util_emit_devicemap_entry and
16743 grub_util_iterate_devices.
16744 * conf/i386-corebook.rmk: Build util/deviceiter.c and
16745 util/devicemap.c into grub-mkdevicemap
16746 * conf/i386-efi.rmk: Likewise.
16747 * conf/i386-ieee1275.rmk: Likewise.
16748 * conf/i386-pc.rmk: Likewise.
16749 * conf/powerpc-ieee1275.rmk: Likewise.
16750 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
16751 images and installation utilities. Build kernel as image
16752 instead of as elf binary. Use common rules as much as possible.
16753
7dd4a573 167542009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
0aefc632 16755
16756 Correct GPT definition
16757
7dd4a573 16758 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
0aefc632 16759 of "attrib" member
16760
c6c5219f 167612009-04-19 Felix Zielcke <fzielcke@z-51.de>
16762
16763 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
16764
0552ff9f 167652009-04-19 David S. Miller <davem@davemloft.net>
16766
16767 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
16768 (grub_rescue_cmd_linux): Rename to...
16769 (grub_cmd_linux): and fix prototype.
16770 (grub_rescue_cmd_initrd): Rename to...
16771 (grub_cmd_initrd): and fix prototype.
16772 (cmd_linux, cmd_initrd): New.
16773 (GRUB_MOD_INIT(linux)): Use grub_register_command().
16774 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
16775
d1a282fc 167762009-04-17 Pavel Roskin <proski@gnu.org>
16777
07c5039f 16778 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
16779 format.
16780 (grub_ohci_transfer): Likewise.
16781
b012002d 16782 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
16783
1bc09c35 16784 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
16785 return without a value. Fix inconsistent indentation.
16786
e0ff9126 16787 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
16788 match struct grub_fs.
16789
d1a282fc 16790 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
16791 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
16792 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
16793 * commands/lspci.c (grub_lspci_iter): Likewise.
16794
a96df3f2 167952009-04-16 Bean <bean123ch@gmail.com>
16796
16797 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
16798 value.
16799
41bb0fe9 168002009-04-15 Pavel Roskin <proski@gnu.org>
16801
16802 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
16803 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
16804 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
16805 definitions.
16806
596c6970 168072009-04-15 Felix Zielcke <fzielcke@z-51.de>
16808
16809 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
7dd4a573 16810 that no multiple data or metadata areas are supported and `Unknown
596c6970 16811 metadata header'.
16812
7dd4a573 168132009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
0d5d5653 16814
16815 Move loader out of the kernel
16816
16817 * kern/loader.c: moved to ...
16818 * commands/boot.c: ... moved here
16819 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
16820 * commands/boot.c (grub_cmd_boot): moved here. All users updated
16821 * include/grub/kernel.h (grub_machine_fini): export
16822 * include/grub/loader.h (grub_loader_is_loaded): update declaration
16823 (grub_loader_set): likewise
16824 (grub_loader_unset): likewise
16825 (grub_loader_boot): likewise
16826 * conf/common.rmk: new module boot.mod
16827 (pkglib_MODULES): add boot.mod
16828 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
16829 (grub_emu_SOURCES): likewise
16830 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
16831 (grub_emu_SOURCES): likewise
16832 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
16833 (grub_emu_SOURCES): likewise
16834 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
16835 (grub_emu_SOURCES): likewise
16836 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
16837 (grub_emu_SOURCES): likewise
7dd4a573 16838 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
16839 (grub_emu_SOURCES): likewise
0d5d5653 16840 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
7dd4a573 16841 (grub_emu_SOURCES): likewise
0d5d5653 16842
7dd4a573 168432009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
5999d619 16844
16845 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
7dd4a573 16846
5999d619 16847 * kern/misc.c (grub_itoa): Removed function
16848 (grub_ltoa): likewise
16849 (grub_vsprintf): use grub_lltoa
16850
7dd4a573 168512009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
13c00781 16852
16853 Restore grub-emu
16854
16855 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
16856 * conf/i386-coreboot.rmk: likewise
16857 * conf/i386-ieee1275.rmk: likewise
16858 * conf/powerpc-ieee1275.rmk: likewise
7dd4a573 16859
20318222 168602009-04-15 Felix Zielcke <fzielcke@z-51.de>
16861
16862 * INSTALL: Add that `./autogen.sh' needs to be run before
16863 `./configure.'.
16864
d05f0df3 168652009-04-14 Bean <bean123ch@gmail.com>
16866
16867 * Makefile.in (pkglib_DATA): Add handler.lst.
16868 (handler.lst): New rule.
16869
16870 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
16871 * conf/i386-coreboot.rmk: Likewise.
16872 * conf/i386-ieee1275.rmk: Likewise.
16873 * conf/i386-efi.rmk: Likewise.
16874 * conf/x86_64-efi.rmk: Likewise.
16875 * conf/powerpc-ieee1275.rmk: Likewise.
16876 * conf/sparc64-ieee1275.rmk: Likewise.
16877
16878 * genhandlerlist.sh: New file.
16879
16880 * genmk.rb: Add rules to generate handler.lst.
16881
16882 * include/grub/normal.h (grub_file_getline): New function definition.
16883 (read_handler_list): Likewise.
16884 (free_handler_list): Likewise.
16885
16886 * include/grub/term.h (grub_term_register_input): Add name parameter
16887 for auto generation of handler.lst.
16888 (grub_term_register_output): Likewise.
16889
16890 * normal/handler.c: New file.
16891
16892 * normal/main.c (get_line): Renamed to grub_file_getline.
16893 (read_config_file): Use the newly renamed grub_file_getline.
16894 (read_command_list): Likewise.
16895 (read_fs_list): Likewise.
16896 (grub_normal_execute): Call read_handler_list to parse handler.lst.
16897 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
16898
16899 * term/efi/console.c (grub_console_init): Add name parameter for auto
16900 generation of handler.lst.
16901 * term/gfxterm.c: Likewise.
16902 * term/i386/pc/at_keyboard.c: Likewise.
16903 * term/i386/pc/console.c: Likewise.
16904 * term/i386/pc/serial.c: Likewise.
16905 * term/i386/pc/vesafb.c: Likewise.
16906 * term/i386/pc/vga.c: Likewise.
16907 * term/i386/pc/vga_text.c: Likewise.
16908 * term/ieee1275/ofconsole.c: Likewise.
16909 * term/usb_keyboard.c: Likewise.
16910
33c846be 169112009-04-14 Bean <bean123ch@gmail.com>
16912
16913 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
16914 properly with null character.
16915
4484e01e 169162009-04-14 Felix Zielcke <fzielcke@z-51.de>
16917
16918 * configure: Remove.
16919 * config.h.in: Likewise.
f93d668e 16920 * stamp-h.in: Likewise.
4484e01e 16921 * DISTLIST: Likewise.
16922 * conf/common.mk: Likewise.
16923 * conf/i386-coreboot.mk: Likewise.
16924 * conf/i386-efi.mk: Likewise.
16925 * conf/i386-ieee1275.mk: Likewise.
16926 * conf/i386.mk: Likewise.
16927 * conf/i386-pc.mk: Likewise.
16928 * conf/powerpc-ieee1275.mk: Likewise.
16929 * conf/sparc64-ieee1275.mk: Likewise.
16930 * conf/x86_64-efi.mk: Likewise.
16931
16932 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
16933 develop on GRUB.
16934
7dd4a573 169352009-04-14 John Stanley <jpsinthemix@verizon.net>
5c5bf96a 16936 David S. Miller <davem@davemloft.net>
16937
16938 * util/hostdisk.c (make_device_name): Fix buffer length
16939 calculations.
16940
e25b5a8c 169412009-04-14 Felix Zielcke <fzielcke@z-51.de>
16942
16943 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
16944 <sys/param.h> and <sys/sysctl.h>.
16945 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
16946 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
16947 opening the device and reset them afterwards.
16948
1f1f580c 169492009-04-13 Pavel Roskin <proski@gnu.org>
16950
16951 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
16952 Reported by John Stanley <jpsinthemix@verizon.net>
16953
7ebc2d6b 169542009-04-13 Robert Millan <rmh@aybabtu.com>
16955
16956 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
7dd4a573 16957 that name for menuentries when appropriate.
7ebc2d6b 16958
d8ba3667 169592009-04-13 Felix Zielcke <fzielcke@z-51.de>
16960
16961 * util/grub.d/10_freebsd.in: Add a missing `fi'.
16962
cba416eb 169632009-04-13 Robert Millan <rmh@aybabtu.com>
16964
16965 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
16966 to Linux, simply abort telling the user it's no longer supported.
16967
a547a745 169682009-04-13 Felix Zielcke <fzielcke@z-51.de>
16969
16970 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
7dd4a573 16971 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
a547a745 16972 `freebsd_loadenv' only when devices.hints exist.
16973
232a769c 169742009-04-13 Pavel Roskin <proski@gnu.org>
16975
16976 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
16977
c3012039 169782009-04-13 Felix Zielcke <fzielcke@z-51.de>
16979
16980 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
16981 partition number.
16982 (grub_drive): Likewise.
16983
234022fe 169842009-04-13 David S. Miller <davem@davemloft.net>
16985
16986 * kern/sparc64/ieee1275/ieee1275.c: New file.
16987 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
16988 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
16989 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
16990 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
16991 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
16992 grub_ieee1275_alloc_physmem): Declare new exported functions.
16993
d8e1836c 16994 * include/grub/sparc64/ieee1275/loader.h: New file.
16995 * include/grub/sparc64/ieee1275/memory.h: Likewise.
16996 * include/grub/sparc64/kernel.h: Likewise.
16997 * loader/sparc64/ieee1275/linux.c: Likewise.
16998
96bd81ec 16999 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
17000 (grub_fstest_SOURCES): Likewise.
17001
6a4737e5 17002 * util/hostdisk.c (make_device_name): Do not make any assumptions
17003 about the length of drive names.
17004
1d7a72fd 17005 * kern/dl.c (grub_dl_load_file): Close file immediately when
17006 we are done using it.
17007
56bc2471 170082009-04-12 David S. Miller <davem@davemloft.net>
17009
17010 * kern/misc.c (grub_ltoa): Fix cast when handling negative
17011 values. Noticed by Pavel Roskin.
17012
df38d0bb 17013 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
17014 target compiler.
7dd4a573 17015
e382e93a 17016 * genmk.rb: Add more flexible image type specification, also
17017 pass --strip-unneeded to objcopy.
17018 * conf/i386-pc.rmk: Use *_FORMAT.
17019 * conf/i386-pc.mk: Rebuilt.
17020
f5dbbca9 17021 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
17022 (OFDISK_HASH_SZ): Define.
17023 (ofdisk_hash): New hash table.
17024 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
17025 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
17026 instead of device phandle which is not unique.
17027
91c88b12 17028 * kern/sparc64/ieee1275/init.c: Delete, replace with...
17029 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
17030 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
17031 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
17032 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
17033 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
17034 GRUB_KERNEL_MACHINE_DATA_END): Define.
17035 (grub_kernel_image_size, grub_total_module_size): Declare.
17036
5b5d4aa5 170372009-04-12 Pavel Roskin <proski@gnu.org>
17038
7dd4a573 17039 * configure.ac: Change the logic when we check for target tools.
17040 Do it when the target is specified and it's different from the
17041 specified value of the host.
5b5d4aa5 17042
c91e1793 170432009-04-11 Felix Zielcke <fzielcke@z-51.de>
17044
17045 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
17046 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
17047 GNU/kFreeBSD. Check if a device is a character device. Use
17048 DIOCGMEDIASIZE to get the size.
17049 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
17050 support for GNU/kFreeBSD.
17051 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
17052 is a character device instead of a block device. Add support for
17053 FreeBSD device names.
17054
17055 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
17056 is a character device instead of a block device.
17057
17058 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
17059 is a character device instead of a block device.
17060
b1ac8644 170612009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
17062
17063 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
17064 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
17065 FreeBSD. Check if a device is a character device. Use
17066 DIOCGMEDIASIZE to get the size.
17067 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
17068 support for FreeBSD.
17069 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
17070 is a character device instead of a block device. Add support for
17071 FreeBSD device names.
17072
17073 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
17074 a character device instead of a block device.
17075 (grub_util_check_char_device): New function.
17076
17077 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
17078 a character device instead of a block device.
17079
17080 * include/grub/util/getroot.h (grub_util_check_char_device): New
17081 prototype.
17082
a3f7515a 170832009-04-11 David S. Miller <davem@davemloft.net>
17084
17085 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
17086 static libgcc.
17087 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
17088 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
17089 function, if present.
17090 (__bswapdi2): Likewise.
17091
0d44993d 17092 * include/grub/sparc64/ieee1275/boot.h: New file.
17093 * boot/sparc64/ieee1275/boot.S: Likewise.
17094 * boot/sparc64/ieee1275/diskboot.S: Likewise.
17095
ed3d2bc2 17096 * kern/misc.c (grub_ltoa): New function.
17097 (grub_vsprintf): Use it to format 'long' integers.
17098
d3bfb59c 170992009-04-10 David S. Miller <davem@davemloft.net>
17100
17101 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
17102 slots are of type grub_ieee1275_cell_t.
17103 (grub_nand_read): Likewise.
17104 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
17105 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
17106 macros are used to compare values in arg/ret block of the call.
17107 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
17108 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
17109 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
17110 grub_ieee1275_instance_to_path, grub_ieee1275_write,
17111 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
17112 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
17113 grub_ieee1275_close, grub_ieee1275_set_property,
17114 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
17115 grub_ieee1275_cell_t.
17116 * kern/ieee1275/openfw.c (grub_map): Likewise.
17117 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
17118 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
17119
450e2238 17120 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
17121 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
17122 (grub_devalias_iterate): Likewise.
17123
7dd4a573 171242009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
6df8cc76 17125
17126 UFS improvements
17127
17128 * fs/ufs.c (INODE_NBLOCKS): new definition
17129 (struct grub_ufs_dirent): added fields for non-BSD dirents
17130 (grub_ufs_get_file_block): fixed double indirect handling
17131 (grub_ufs_lookup_symlink): use more robust way to determine whether
17132 symlink is inline
17133 (grub_ufs_find_file): support for non-BSD dirents
17134 (grub_ufs_dir): support for non-BSD dirents
17135
e7e6862a 171362009-04-10 Bean <bean123ch@gnail.com>
17137
17138 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
17139 attribute, otherwise the size would be wrong for i386 platform.
17140
17141 * include/grub/pci.h (grub_pci_read_word): New inline function.
17142 (grub_pci_read_byte): Likewise.
17143 (grub_pci_write): Likewise.
17144 (grub_pci_write_word): Likewise.
17145 (grub_pci_write_byte): Likewise.
17146
17147 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
17148
17149 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
17150 (find_framebuf): Scan pci to locate the frame buffer address.
17151
17152 * commands/efi/fixvideo.c: New file.
17153
17154 * commands/efi/loadbios.c: Likewise.
17155
17156 * commands/memrw.c: Likewise.
17157
17158 * util/grub-dumpbios.in: Likewise.
17159
17160 * conf/common.rmk (grub-dumpbios): New utility.
17161 (pkglib_MODULES): New module memrw.mod.
17162 (memrw_mod_SOURCE): New macro.
17163 (memrw_mod_CFLAGS): Likewise.
17164 (memrw_mod_LDFLAGS): Likewise.
17165
7dd4a573 17166 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
e7e6862a 17167 fixvideo.mod.
17168 (loadbios_mod_SOURCE): New macro.
17169 (loadbios_mod_CFLAGS): Likewise.
17170 (loadbios_mod_LDFLAGS): Likewise.
17171 (fixvideo_mod_SOURCE): Likewise.
17172 (fixvideo_mod_CFLAGS): Likewise.
17173 (fixvideo_mod_LDFLAGS): Likewise.
17174
7dd4a573 17175 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
e7e6862a 17176 fixvideo.mod.
17177 (loadbios_mod_SOURCE): New macro.
17178 (loadbios_mod_CFLAGS): Likewise.
17179 (loadbios_mod_LDFLAGS): Likewise.
17180 (fixvideo_mod_SOURCE): Likewise.
17181 (fixvideo_mod_CFLAGS): Likewise.
17182 (fixvideo_mod_LDFLAGS): Likewise.
17183
af63ada2 171842009-04-08 Felix Zielcke <fzielcke@z-51.de>
17185
17186 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
17187
c2cdde70 171882009-04-07 David S. Miller <davem@davemloft.net>
17189
17190 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
17191 support for R_SPARC_OLO10 relocations. Fix compile warning for
17192 R_SPARC_WDISP30 case.
ea3f72cf 17193 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
c2cdde70 17194
761319cf 171952009-04-06 Pavel Roskin <proski@gnu.org>
17196
1007d1f5 17197 * include/grub/misc.h (ARRAY_SIZE): New macro.
17198 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
17199 New macro.
17200 * loader/i386/linux.c (allocate_pages): Use free_pages().
17201 (grub_linux_unload): Don't use free_pages().
17202 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
17203 wrong index. Treat all other modes as text modes.
17204 (grub_cmd_linux): Initialize vid_mode unconditionally to
17205 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
17206
761319cf 17207 * commands/help.c (print_command_help): Use cmd->prio, not
17208 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
17209
ea761d40 172102009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
7dd4a573 17211
ea761d40 17212 Parttool
17213
17214 * parttool/pcpart.c: new file
17215 * commands/parttool.c: likewise
17216 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
17217 (parttool_mod_SOURCES): new variable
17218 (parttool_mod_CFLAGS): likewise
17219 (parttool_mod_LDFLAGS): likewise
17220 (pcpart_mod_SOURCES): likewise
17221 (pcpart_mod_CFLAGS): likewise
17222 (pcpart_mod_LDFLAGS): likewise
7dd4a573 17223 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
ea761d40 17224 and parttool/pcpart.c
17225 * conf/i386-efi.rmk: likewise
17226 * conf/i386-ieee1275.rmk: likewise
17227 * conf/i386-pc.rmk: likewise
17228 * conf/powerpc-ieee1275.rmk: likewise
17229 * conf/sparc64-ieee1275.rmk: likewise
17230 * conf/x86_64-ieee1275.rmk: likewise
17231
05aaebfb 172322009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
17233
17234 Support for mtime and further expandability of dir command
17235
17236 * include/grub/lib/datetime.h: moved to ...
7dd4a573 17237 * include/grub/datetime.h: ... moved here and added
05aaebfb 17238 declaration of grub_unixtime2datetime. All users updated
7dd4a573 17239 * include/grub/fs.h: new syntax for dir and mtime functions in
17240 struct grub_fs
05aaebfb 17241 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
17242 and GRUB_FSHELP_FLAGS_MASK
17243 * commands/ls.c (grub_ls_list_files): Write mtime in long format
17244 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
17245 (grub_ext2_mtime): new function
17246 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
17247 (grub_hfsplus_mtime): new function
17248 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
17249 (GRUB_UFS_ATTR_FILE): likewise
17250 (GRUB_UFS_ATTR_LNK): likewise
17251 (struct grub_ufs_sblock): new fields mtime
17252 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
17253 all users updated
17254 (grub_ufs_dir): mtime support
17255 (grub_ufs_mtime): new function
17256 * fs/affs.c (grub_affs_dir): use new dir syntax
17257 * fs/afs.c (grub_afs_dir): likewise
17258 * fs/cpio.c (grub_cpio_dir): likewise
17259 * fs/fat.c (grub_fat_find_dir): likewise
17260 * fs/hfs.c (grub_hfs_dir): likewise
17261 * fs/iso9660.c (grub_iso9660_dir): likewise
17262 * fs/jfs.c (grub_jfs_dir): likewise
17263 * fs/minix.c (grub_minix_dir): likewise
17264 * fs/ntfs.c (grub_ntfs_dir): likewise
17265 * fs/reiserfs.c (grub_reiserfs_dir): likewise
17266 * fs/sfs.c (grub_sfs_dir): likewise
17267 * fs/xfs.c (grub_xfs_dir): likewise
17268 * util/hostfs.c (grub_hostfs_dir): likewise
17269 * lib/datetime.c: moved to ...
17270 * normal/datetime.c: ... moved here
17271 (grub_unixtime2datetime): new function
17272 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
7dd4a573 17273 * normal/completion.c (iterate_dir): use new dir syntax
17274 * normal/misc.c (grub_normal_print_device_info): tell the
05aaebfb 17275 last modification time of a volume
7dd4a573 17276 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
05aaebfb 17277 * conf/common.rmk: added lib/datetime.c to ls.mod
7dd4a573 17278 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
05aaebfb 17279 (normal_mod_SOURCES): likewise
17280 (datetime_mod_SOURCES): Removed lib/datetime.c
17281 * conf/i386-efi.rmk: likewise
7dd4a573 17282 * conf/i386-ieee1275.rmk: likewise
05aaebfb 17283 * conf/i386-pc.rmk: likewise
17284 * conf/powerpc-ieee1275.rmk: likewise
7dd4a573 17285 * conf/sparc64-ieee1275.rmk: likewise
17286 * conf/x86_64-efi.rmk: likewise
05aaebfb 17287
8a7e1a14 172882009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
17289
17290 Trim trailing spaces in FAT label and support mtools-like labels
7dd4a573 17291
17292 * fs/fat.c (grub_fat_iterate_dir): New function based
8a7e1a14 17293 on grub_fat_find_dir
17294 (grub_fat_find_dir): use grub_fat_iterate_dir
17295 (grub_fat_label): likewise
17296
04186a9c 172972009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
17298
7dd4a573 17299 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
04186a9c 17300 and command.h
17301 remove extraneous kernel_elf_HEADERS
17302
da4c0bb6 173032009-04-04 Bean <bean123ch@gnail.com>
17304
17305 * include/grub/util/misc.h: Add dummy function fsync for mingw.
17306
17307 * util/misc.c: Likewise.
17308
54ad9555 173092009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
17310
17311 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
17312 instead of grub_printf.
17313
7a6bf9f2 173142009-04-03 Robert Millan <rmh@aybabtu.com>
17315
17316 * loader/i386/linux.c (grub_linux_setup_video): Fill
17317 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
17318 values from `mode info' structure instead of hardcoded
17319 values.
17320
3fcc2083 173212009-04-01 Pavel Roskin <proski@gnu.org>
17322
17323 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
17324 unused now.
17325 * genmk.rb: Likewise.
17326 * configure.ac: Likewise.
17327
5ec9740b 173282009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
17329
17330 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
17331 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
17332
5270cec8 173332009-04-01 David S. Miller <davem@davemloft.net>
17334
17335 * normal/sparc64/setjmp.S: Fix setjmp implementation.
7dd4a573 17336 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
5270cec8 17337 (grub_setjmp): Mark with 'returns_twice' attribute.
17338 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
17339 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
17340 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
17341
9c3dd854 173422009-04-01 Robert Millan <rmh@aybabtu.com>
17343
17344 Reapply fix from 2008-07-28 which was accidentally reverted; also
17345 perform the same fix to a similar check in same function.
17346
17347 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
17348 with the same number are found, just use issue a warning with
17349 grub_dprintf(), as this error has been reported to be non-fatal.
17350
0d818b7e 173512009-03-31 Pavel Roskin <proski@gnu.org>
17352
17353 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
17354 for cross-compilation.
17355
95646d92 173562009-03-30 Robert Millan <rmh@aybabtu.com>
17357
17358 Fix i386-ieee1275 build.
17359
17360 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
17361 Remove declaration.
17362
6a003ed1 173632009-03-30 Pavel Roskin <proski@gnu.org>
17364
17365 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
17366 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
17367 zero-terminated, rely only on the strlen value. Fix comparison
17368 of strings differing in length.
17369
92f33540 173702009-03-30 Robert Millan <rmh@aybabtu.com>
17371
17372 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
17373 checking for abi version. Improve error messages on BIOS to notify
17374 user about `linux16' command.
17375
a8c48fd5 173762009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
17377
f968172e 17378 Leak fixes
a8c48fd5 17379
f968172e 17380 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
17381 in case of collision
17382 * disk/scsi.c (grub_scsi_open): free scsi in case of error
a8c48fd5 17383
9c323f09 173842009-03-29 Robert Millan <rmh@aybabtu.com>
17385
17386 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
17387 set `vid_mode' accordingly.
17388 (grub_linux_boot): Process `vid_mode' and set video mode.
17389
ae68f423 173902009-03-29 Robert Millan <rmh@aybabtu.com>
17391
17392 * util/grub.d/10_linux.in (linux_entry): New function.
17393 Factorize generation of Linux boot entries.
17394
5709cfc4 173952009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
17396
17397 Make the format of Environment Block plain text. The boot loader
17398 part is not tested well yet.
7dd4a573 17399
5709cfc4 17400 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
17401 (buffer): Removed.
17402 (envblk): Likewise.
17403 (usage): Remove "info" and "clear". Add "unset". Update the
17404 description of "set", as this does not delete variables any
17405 longer.
17406 (create_envblk_file): Complete rewrite.
17407 (open_envblk_file): Likewise.
17408 (cmd_info): Removed.
17409 (cmd_list): Likewise.
17410 (cmd_set): Likewise.
17411 (cmd_clear): Likewise.
17412 (list_variables): New function.
17413 (write_envblk): Likewise.
17414 (set_variables): Likewise.
17415 (unset_variables): Likewise.
17416 (main): Complete rewrite.
17417
17418 * commands/loadenv.c (buffer): Removed.
17419 (envblk): Likewise.
17420 (open_envblk_file): New function.
17421 (read_envblk_file): Complete rewrite.
17422 (grub_cmd_load_env): Likewise.
17423 (grub_cmd_list_env): Likewise.
17424 (struct blocklist): New struct.
17425 (free_blocklists): New function.
17426 (check_blocklists): Likewise.
17427 (write_blocklists): Likewise.
17428 (grub_cmd_save_env): Complete rewrite.
17429
17430 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
17431 a plain text signature.
17432 (GRUB_ENVBLK_MAXLEN): Removed.
17433 (struct grub_envblk): Complete rewrite.
17434 (grub_envblk_find): Removed.
17435 (grub_envblk_insert): Likewise.
17436 (grub_envblk_open): New prototype.
17437 (grub_envblk_set): Likewise.
17438 (grub_envblk_delete): Put const to VALUE.
17439 (grub_envblk_iterate): Put const to NAME and VALUE.
17440 (grub_envblk_close): New prototype.
17441 (grub_envblk_buffer): New inline function.
17442 (grub_envblk_size): Likewise.
17443
17444 * lib/envblk.c: Include grub/mm.h.
17445 (grub_env_find): Removed.
17446 (grub_envblk_open): New function.
17447 (grub_envblk_close): Likewise.
17448 (escaped_value_len): Likewise.
17449 (find_next_line): Likewise.
17450 (grub_envblk_insert): Removed.
17451 (grub_envblk_set): New function.
17452 (grub_envblk_delete): Complete rewrite.
17453 (grub_envblk_iterate): Likewise.
17454
a9368fd3 174552009-03-28 Robert Millan <rmh@aybabtu.com>
17456
17457 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
17458 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
17459 variables. Use 16-bit loader.
17460 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
17461 loader.
17462 * kern/i386/loader.S (grub_linux_boot): Rename to ...
17463 (grub_linux16_boot): ... this. Update all users.
17464 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
17465 (grub_linux_boot): ... this. Update all users.
17466
17467 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
17468 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
17469 commands to `linux16' and `initrd16'.
17470 (GRUB_MOD_FINI(linux)): Rename to ...
17471 (GRUB_MOD_FINI(linux16)): ... this.
17472
e4dd5a7e 174732009-03-24 Pavel Roskin <proski@gnu.org>
17474
17475 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
17476 not just for compilation.
17477
c04d6e05 174782009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
17479
17480 Move multiboot helper out of kernel
17481
17482 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
17483 `loader/i386/multiboot_helper.S'.
17484 * conf/i386-coreboot.rmk: Likewise
17485 * conf/i386-ieee1275.rmk: Likewise
17486
17487 * kern/i386/loader.S: Move multiboot helpers from here...
17488 * loader/i386/multiboot_helper.S: ...moved here
17489 * include/grub/i386/loader.h: Move declarations of multiboot
17490 helpers from here...
17491 * include/grub/i386/multiboot.h: ...moved here
17492 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
17493
42a5b3fc 174942009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
17495
17496 * kern/env.c (grub_env_context_open): Added an argument to specify
17497 whether a new context inherits exported variables from current
17498 one. This is useful when making a sandbox to interpret a config
17499 file.
17500 All callers updated.
17501
17502 * include/grub/env.h (grub_env_context_open): Updated the prototype.
17503
b28bbc4e 175042009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
17505
17506 * kern/env.c (grub_env_context_close): Fix memory leaks.
17507
f04f02e4 175082009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
17509
17510 * normal/main.c (grub_normal_execute): Added an argument
17511 BATCH to specify if an interactive interface should be provided
17512 after reading a config file.
17513 All callers updated.
17514 (read_command_list): Prevent being executed twice.
17515 (read_fs_list): Likewise.
17516
42a5b3fc 17517 * include/grub/normal.h (grub_normal_execute): Updated the
17518 prototype.
f04f02e4 17519
41473ac2 175202009-03-22 Pavel Roskin <proski@gno.org>
17521
fbc00b0c 17522 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
17523 _start.
17524 * kern/i386/pc/startup.S: Likewise.
17525 * kern/i386/efi/startup.S: Likewise.
17526 * kern/i386/ieee1275/startup.S: Likewise.
17527 * kern/i386/coreboot/startup.S: Likewise.
17528 * kern/x86_64/efi/startup.S: Likewise.
17529
41473ac2 17530 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
17531 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
17532 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
17533
2274cc8f 175342009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
17535
17536 Bugfixes in multiboot for bugs uncovered by solaris kernel.
17537
17538 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
17539 limit detection.
17540 Use vaddr of correct segment for entry_point.
17541
b1b797cb 175422009-03-21 Bean <bean123ch@gmail.com>
17543
17544 * commands/blocklist.c: Add include file <grub/command.h>, remove
17545 <grub/normal.h> and <grub/arg.h>.
17546 (grub_cmd_blocklist): Use the new command interface.
17547 (GRUB_MOD_INIT): Likewise.
17548 (GRUB_MOD_FINI): Likewise.
17549 * commands/boot.c: Likewise.
17550 * commands/cat.c: Likewise.
17551 * commands/cmp.c: Likewise.
17552 * commands/configfile.c: Likewise.
17553 * commands/crc.c: Likewise.
17554 * commands/echo.c: Likewise.
17555 * commands/halt.c: Likewise.
17556 * commands/handler.c: Likewise.
17557 * commands/hdparm.c: Likewise.
17558 * commands/help.c: Likewise.
17559 * commands/hexdump.c: Likewise.
17560 * commands/loadenv.c: Likewise.
17561 * commands/ls.c: Likewise.
17562 * commands/lsmmap.c: Likewise.
17563 * commands/lspci.c: Likewise.
17564 * commands/loadenv.c: Likewise.
17565 * commands/read.c: Likewise.
17566 * commands/reboot.c: Likewise.
17567 * commands/search.c: Likewise.
17568 * commands/sleep.c: Likewise.
17569 * commands/test.c: Likewise.
17570 * commands/usbtest.c: Likewise.
17571 * commands/videotest.c: Likewise.
17572 * commands/i386/cpuid.c: Likewise.
17573 * commands/i386/pc/halt.c: Likewise.
17574 * commands/i386/pc/play.c: Likewise.
17575 * commands/i386/pc/pxecmd.c: Likewise.
17576 * commands/i386/pc/vbeinfo.c: Likewise.
17577 * commands/i386/pc/vbetest.c: Likewise.
17578 * commands/ieee1275/suspend.c: Likewise.
17579 * disk/loopback.c: Likewise.
17580 * font/font_cmd.c: Likewise.
17581 * hello/hello.c: Likewise.
17582 * loader/efi/appleloader.c: Likewise.
17583 * loader/efi/chainloader.c: Likewise.
17584 * loader/i386/bsd.c: Likewise.
17585 * loader/i386/efi/linux.c: Likewise.
17586 * loader/i386/ieee1275/linux.c: Likewise.
17587 * loader/i386/linux.c: Likewise.
17588 * loader/i386/pc/chainloader.c: Likewise.
17589 * loader/i386/pc/linux.c: Likewise.
17590 * loader/powerpc/ieee1275/linux.c: Likewise.
17591 * loader/multiboot_loader.c: Likewise.
17592 * term/gfxterm.c: Likewise.
17593 * term/i386/pc/serial.c: Likewise.
17594 * term/terminfo.c: Likewise.
17595
17596 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
17597 * term/i386/pc/vga.c: Likewise.
17598 * video/readers/jpeg.c: Likewise.
17599 * video/readers/png.c: Likewise.
17600 * video/readers/tga.c: Likewise.
17601
17602 * util/grub-fstest (cmd_loopback): Removed.
17603 (cmd_blocklist): Likewise.
17604 (cmd_ls): Likewise.
17605 (grub_register_command): Likewise.
17606 (grub_unregister_command): Likewise.
17607 (execute_command): Use grub_command_find to locate command and execute
17608 it.
17609
17610 * include/grub/efi/chainloader.h: Removed.
17611 * loader/efi/chainloader_normal.c: Likewise.
17612 * loader/i386/bsd_normal.c: Likewise.
17613 * loader/i386/pc/chainloader_normal.c: Likewise.
17614 * loader/i386/pc/multiboot_normal.c: Likewise.
17615 * loader/linux_normal.c: Likewise.
17616 * loader/multiboot_loader_normal.c: Likewise.
17617 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
17618
17619 * gencmdlist.sh: Scan new registration command grub_register_extcmd
17620 and grub_register_command_p1.
17621
17622 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
17623 kern/command.c, lib/arg.c and commands/extcmd.c.
17624 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
17625 (minicmd_mod_SOURCES): New variable.
17626 (minicmd_mod_CFLAGS): Likewise.
17627 (minicmd_mod_LDFLAGS): Likewise.
17628 (extcmd_mod_SOURCES): Likewise.
17629 (extcmd_mod_CFLAGS): Likewise.
17630 (extcmd_mod_LDFLAGS): Likewise.
17631 (boot_mod_SOURCES): Removed.
17632 (boot_mod_CFLAGS): Likewise.
17633 (boot_mod_LDFLAGS): Likewise.
17634
17635 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
17636 kern/corecmd.c.
17637 (kernel_img_HEADERS): Add command.h.
17638 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
17639 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
17640 and lib/arg.c.
17641 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
17642 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
17643 remove the corresponding normal mode command.
17644 (normal_mod_SOURCES): Remove normal/arg.c.
17645 * conf/i386-coreboot.rmk: Likewise.
17646 * conf/i386-efi.rmk: Likewise.
17647 * conf/i386-ieee1275.rmk: Likewise.
17648 * conf/powerpc-ieee1275.rmk: Likewise.
17649 * conf/x86_64-efi.rmk: Likewise.
17650
17651 * include/grub/arg.h: Move from here ...
17652 * include/grub/lib/arg.h: ... to here.
17653
17654 * normal/arg.c: Move from here ...
17655 * lib/arg.c: ... to here.
17656
17657 * commands/extcmd.c: New file.
17658 * commands/minicmd.c: Likewise.
17659 * include/grub/command.h: Likewise.
17660 * include/grub/extcmd.h: Likewise.
17661 * kern/command.c: Likewise.
17662 * kern/corecmd.c: Likewise.
17663
17664 * kern/list.c (grub_list_iterate): Return int instead of void.
17665 (grub_list_insert): New function.
17666 (grub_prio_list_insert): Likewise.
17667
17668 * kern/rescue.c (grub_rescue_command): Removed.
17669 (grub_rescue_command_list): Likewise.
17670 (grub_rescue_register_command): Likewise.
17671 (grub_rescue_unregister_command): Likewise.
17672 (grub_rescue_cmd_boot): Move to minicmd.c
17673 (grub_rescue_cmd_help): Likewise.
17674 (grub_rescue_cmd_info): Likewise.
17675 (grub_rescue_cmd_boot): Likewise.
17676 (grub_rescue_cmd_testload): Likewise.
17677 (grub_rescue_cmd_dump): Likewise.
17678 (grub_rescue_cmd_rmmod): Likewise.
17679 (grub_rescue_cmd_lsmod): Likewise.
17680 (grub_rescue_cmd_exit): Likewise.
17681 (grub_rescue_print_devices): Moved to corecmd.c.
17682 (grub_rescue_print_files): Likewise.
17683 (grub_rescue_cmd_ls): Likewise.
17684 (grub_rescue_cmd_insmod): Likewise.
17685 (grub_rescue_cmd_set): Likewise.
17686 (grub_rescue_cmd_unset): Likewise.
7d074e3c 17687 (attempt_normal_mode): Use grub_command_find to get normal module.
b1b797cb 17688 (grub_enter_rescue_mode): Use grub_register_core_commands to register
7d074e3c 17689 commands, remove grub_rescue_register_command calls.
b1b797cb 17690
7d074e3c 17691 * normal/command.c (grub_register_command): Removed.
b1b797cb 17692 (grub_unregister_command): Likewise.
17693 (grub_command_find): Likewise.
17694 (grub_iterate_commands): Likewise.
17695 (rescue_command): Likewise.
17696 (export_command): Moved to corecmd.c.
17697 (set_command): Removed.
17698 (unset_command): Likewise.
17699 (insmod_command): Likewise.
17700 (rmmod_command): Likewise.
17701 (lsmod_command): Likewise.
17702 (grub_command_init): Likewise.
17703
17704 * normal/completion.c (iterate_command): Use cmd->prio to check for
17705 active command.
17706 (complete_arguments): Use grub_extcmd_t structure to find options.
17707 (grub_normal_do_completion): Change function grub_iterate_commands to
17708 grub_command_iterate.
17709
17710 * normal/execute.c (grub_script_execute_cmd): No need to parse
17711 argument here.
17712
17713 * normal/main.c (grub_dyncmd_dispatcher): New function.
17714 (read_command_list): Register unload commands as dyncmd.
17715 (grub_cmd_normal): Use new command interface, register rescue,
17716 unregister normal at entry, register normal, unregister rescue at exit.
17717
17718 * include/grub/list.h (grub_list_test_t): New type.
17719 (grub_list_iterate): Return int instead of void.
17720 (grub_list_insert): New function.
17721 (GRUB_AS_NAMED_LIST_P): New macro.
17722 (GRUB_AS_PRIO_LIST): Likewise.
17723 (GRUB_AS_PRIO_LIST_P): Likewise.
17724 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
17725 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
17726 (grub_prio_list): New structure.
17727 (grub_prio_list_insert): New function.
17728 (grub_prio_list_remove): New inline function.
17729
17730 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
17731 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
17732 (GRUB_COMMAND_FLAG_MENU): Likewise.
17733 (GRUB_COMMAND_FLAG_BOTH): Likewise.
17734 (GRUB_COMMAND_FLAG_TITLE): Likewise.
17735 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
17736 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
17737 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
17738 (grub_command): Likewise.
17739 (grub_register_command): Likewise.
17740 (grub_command_find): Likewise.
17741 (grub_iterate_commands): Likewise.
17742 (grub_command_init): Likewise.
17743 (grub_arg_parse): Likewise.
17744 (grub_arg_show_help): Likewise.
17745
17746 * include/grub/rescue.h (grub_rescue_register_command): Removed.
17747 (grub_rescue_unregister_command): Likewise.
17748
17749 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
17750 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
17751 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
17752
17753 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
17754 grub_rescue_cmd_initrd.
17755 * include/grub/i386/loader.h: Likewise.
17756 * include/grub/x86_64/loader.h: Likewise.
17757
17758 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
17759
1f4147aa 177602009-03-21 Bean <bean123ch@gmail.com>
17761
17762 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
17763 instead of stat in mingw environment.
17764
17765 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
17766
17767 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
17768
17769 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
17770 AC_CONFIG_LINKS.
17771
2156d5ba 177722009-03-21 Bean <bean123ch@gmail.com>
17773
17774 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
17775 out of range error.
17776
177b82ca 177772009-03-18 Michel Dänzer <michel@daenzer.net>
17778
17779 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
17780 checking inode flags for EXT4_EXTENTS_FLAG.
17781
14aad807 177822009-03-18 Robert Millan <rmh@aybabtu.com>
17783
17784 * loader/i386/linux.c: Include `<grub/video.h>' and
17785 `<grub/i386/pc/vbe.h>'..
17786 (grub_linux_setup_video): New function. Loosely based on the EFI one.
17787 (grub_linux32_boot): Attempt to configure video settings with
17788 grub_linux_setup_video().
17789 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
17790 to avoid grub_console_fini() which would step out of graphical mode
17791 unconditionally.
17792
8cf83a27 177932009-03-14 Robert Millan <rmh@aybabtu.com>
17794
17795 Fix build on powerpc.
17796 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
17797
40164e75 177982009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
17799
17800 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
17801 background image command.
17802
c58bc32a 178032009-03-12 Colin D Bennett <colin@gibibit.com>
17804
17805 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
17806 (grub_gfxterm_putchar): Extract pairs of identical calls to
17807 draw_cursor out of conditional blocks.
17808
5415144a 178092009-03-11 Pavel Roskin <proski@gnu.org>
17810
17811 * fs/hfs.c (grub_hfs_strncasecmp): New function.
17812 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
17813
6394042e 178142009-03-11 Robert Millan <rmh@aybabtu.com>
17815
17816 * loader/i386/multiboot_elfxx.c
17817 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
17818
b7b50e5f 178192009-03-11 Felix Zielcke <fzielcke@z-51.de>
17820
17821 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
17822 `kern/handler.c'.
17823
1ca7fc96 178242009-03-11 Robert Millan <rmh@aybabtu.com>
17825
17826 * loader/i386/multiboot.c (code_size): New variable.
17827 (grub_multiboot): Define offsets by adding to `code_size' rather
7d074e3c 17828 than subtracting from `grub_multiboot_payload_size'. Provide
1ca7fc96 17829 4-byte alignment to MBI and others by increasing
7d074e3c 17830 `boot_loader_name_length' appropriately.
1ca7fc96 17831
17832 * loader/i386/multiboot_elfxx.c
17833 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
17834
a83ea1d2 178352009-03-09 Felix Zielcke <fzielcke@z-51.de>
17836
17837 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
17838 `fs/ext2.c'.
17839
aa9f3bff 178402009-03-08 Robert Millan <rmh@aybabtu.com>
17841
17842 Make loader/i386/linux.c usable on i386-pc again.
17843
17844 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
17845 memory to heap.
17846 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
17847 `#error' stanza.
17848
d8b3b60e 178492009-03-07 Bean <bean123ch@gmail.com>
17850
17851 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
17852 allocation.
17853
b362c9e9 178542009-03-06 Robert Millan <rmh@aybabtu.com>
17855
17856 Fix display issue on terminals with screen size other than 80x25
17857 (e.g. gfxterm with resolution higher than 640x480).
17858
17859 * normal/main.c (grub_normal_init_page): Display title text in a
7d074e3c 17860 position relative to the center of the terminal instead of relying
b362c9e9 17861 on a hardcoded offset.
17862
9304eef1 178632009-03-04 Robert Millan <rmh@aybabtu.com>
17864
17865 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
17866 installed.
17867
17868 * Makefile.in (host_kernel): New variable.
17869 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
17870 scripts instead of just the windows one.
17871 * configure.ac: Initialize and AC_SUBST `host_kernel'.
17872
eabc95fb 178732009-03-04 Felix Zielcke <fzielcke@z-51.de>
2ba60b62 17874
17875 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
17876 `kern/handler.c'.
17877 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
17878 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
17879 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
17880 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
17881 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
17882 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
17883
ceb1223c 178842009-03-04 Felix Zielcke <fzielcke@z-51.de>
17885
17886 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
17887 or if there's no space for the disk label and print the partition number on a
17888 invalid magic.
17889
4910684a 178902009-03-04 Felix Zielcke <fzielcke@z-51.de>
17891
17892 * util/misc.c: Include <time.h>.
17893 (grub_millisleep): New function.
17894
7e9ca17a 178952009-03-04 Bean <bean123ch@gmail.com>
17896
17897 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
17898 another option -mno-red-zone.
17899
17900 * commands/handler.c: Change module description.
17901
17902 * kern/handler.c: Add missing space at the end of description line.
17903
17904 * kern/list.c: Likewise.
17905
f501677c 179062009-03-03 Robert Millan <rmh@aybabtu.com>
17907
17908 Move more components to the relocation area, and fix mbi pointer
17909 handling to use the destination rather than the origin (thanks to
17910 Vladimir Serbinenko for spotting).
17911
17912 * loader/i386/multiboot.c (mbi_dest): New variable.
17913 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
17914 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
17915 relocation area.
17916
9902d047 179172009-03-01 Bean <bean123ch@gmail.com>
17918
50fb7002 17919 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
9902d047 17920 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
17921 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
17922 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
17923
17924 * loader/i386/efi/linux.c (acpi_guid): New variable.
17925 (acpi_guid): Likewise.
17926 (EBDA_SEG_ADDR): New constant.
17927 (LOW_MEM_ADDR): Likewise.
17928 (FAKE_EBDA_SEG): Likewise.
17929 (fake_bios_data): New function.
17930 (grub_linux_boot): Call fake_bios_data.
17931
71b9f361 179322009-03-01 Bean <bean123ch@gmail.com>
17933
17934 * commands/terminal.c: Removed.
17935
17936 * commands/handler.c: New file.
17937
17938 * include/grub/list.h: Likewise.
17939
17940 * include/grub/handler.h: Likewise.
17941
17942 * kern/list.c: Likewise.
17943
17944 * kern/handler.c: Likewise.
17945
17946 * kern/term.h: Include header file <grub/handler.h>.
17947 (grub_term_input): Move next field to the beginning.
17948 (grub_term_output): Likewise.
17949 (grub_term_input_class): New variable.
17950 (grub_term_output_class): Likewise.
17951 (grub_term_register_input): Changed to inline function.
17952 (grub_term_register_output): Likewise.
17953 (grub_term_unregister_input): Likewise.
17954 (grub_term_unregister_output): Likewise.
17955 (grub_term_set_current_input): Likewise.
17956 (grub_term_set_current_output): Likewise.
17957 (grub_term_get_current_input): Likewise.
17958 (grub_term_get_current_output): Likewise.
17959 (grub_term_iterate_input): Removed.
17960 (grub_term_iterate_output): Likewise.
17961
17962 * kern/term.c (grub_term_list_input): Removed.
17963 (grub_term_list_output): Likewise.
17964 (grub_term_input_class): New variable.
17965 (grub_term_output_class): Likewise.
50fb7002 17966 (grub_cur_term_input): Change variable as macro.
71b9f361 17967 (grub_cur_term_output): Likewise.
17968 (grub_term_register_input): Removed.
17969 (grub_term_register_output): Likewise.
17970 (grub_term_unregister_input): Likewise.
17971 (grub_term_unregister_output): Likewise.
17972 (grub_term_set_current_input): Likewise.
17973 (grub_term_set_current_output): Likewise.
17974 (grub_term_iterate_input): Likewise.
17975 (grub_term_iterate_output): Likewise.
17976 (grub_term_get_current_input): Likewise.
17977 (grub_term_get_current_output): Likewise.
17978
17979 * util/grub-editenv.c: Include header file <grub/handler.h>.
17980 (grub_term_get_current_input): Removed.
17981 (grub_term_get_current_output): Likewise.
17982 (grub_term_input_class): New variable.
50fb7002 17983 (grub_term_output_class): Likewise.
71b9f361 17984
17985 * util/grub-fstest.c (grub_term_get_current_input): Removed.
17986 (grub_term_get_current_output): Likewise.
17987 (grub_term_input_class): New variable.
50fb7002 17988 (grub_term_output_class): Likewise.
71b9f361 17989
17990 * util/grub-probe.c (grub_term_get_current_input): Removed.
17991 (grub_term_get_current_output): Likewise.
17992 (grub_term_input_class): New variable.
50fb7002 17993 (grub_term_output_class): Likewise.
71b9f361 17994
17995 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
17996 (grub_term_get_current_output): Likewise.
17997 (grub_term_input_class): New variable.
50fb7002 17998 (grub_term_output_class): Likewise.
71b9f361 17999
18000 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
18001 (terminal_mod_SOURCES): Likewise.
18002 (terminal_mod_CFLAGS): Likewise.
18003 (terminal_mod_LDFLAGS): Likewise.
18004
18005 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
18006 handler.c.
18007 (kernel_img_SOURCES): Add list.c and handler.c.
18008 (kernel_img_HEADERS): Add list.h and handler.h.
18009
18010 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
18011 handler.c.
18012 (kernel_mod_SOURCES): Add list.c and handler.c.
18013 (kernel_mod_HEADERS): Add list.h and handler.h.
18014
18015 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
18016 handler.c.
18017 (kernel_elf_SOURCES): Add list.c and handler.c.
18018 (kernel_elf_HEADERS): Add list.h and handler.h.
18019
18020 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
18021 handler.c.
18022 (kernel_elf_SOURCES): Add list.c and handler.c.
18023 (kernel_elf_HEADERS): Add list.h and handler.h.
18024
18025 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
18026 handler.c.
18027 (kernel_mod_SOURCES): Add list.c and handler.c.
18028 (kernel_mod_HEADERS): Add list.h and handler.h.
18029
18030 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
18031 handler.c.
18032 (kernel_elf_SOURCES): Add list.c and handler.c.
18033 (kernel_elf_HEADERS): Add list.h and handler.h.
18034
8a31787f 180352009-02-27 Robert Millan <rmh@aybabtu.com>
18036
18037 Factorize elf32 / elf64 code in Multiboot loader. This will
18038 prevent it from getting out of sync again.
18039
18040 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
18041 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
18042 grub_multiboot_load_elf64): Move from here ...
18043 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
18044 grub_multiboot_load_elf): ... to here (new file).
18045
51cd3dfc 180462009-02-27 Robert Millan <rmh@aybabtu.com>
18047
18048 * util/grub.d/10_linux.in: Rename "single-user mode" to
18049 "recovery mode".
18050
6e8c9c3a 180512009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
18052
18053 Don't leak in SCSI code.
18054 * disk/scsi.c (grub_scsi_close): free `scsi'.
18055
4b6bf4f9 180562009-02-27 Robert Millan <rmh@aybabtu.com>
18057
18058 * loader/i386/pc/multiboot.c: Move from here ...
18059 * loader/i386/multiboot.c: ... to here. Update all users.
18060
b9413424 180612009-02-27 Robert Millan <rmh@aybabtu.com>
18062
18063 Patch from Alexandre Bique <bique.alexandre@gmail.com>
18064 * util/i386/pc/grub-setup.c (setup): Fix directory path.
18065
50fb7002 180662009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
34519c3f 18067
18068 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
18069 b-tree.
18070
8cc50345 180712009-02-27 Robert Millan <rmh@aybabtu.com>
18072
18073 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
18074 `0x' qualifier as 0 when base is specified as parameter).
18075
6e09b8b7 180762009-02-24 Bean <bean123ch@gmail.com>
18077
18078 * configure.ac: Check for -mcmodel=large in x86_64 target.
18079
18080 * include/grub/efi/api.h (efi_call_10): New macro.
18081 (efi_wrap_10): New function.
18082
18083 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
18084 (GRUB_PE32_REL_BASED_HIGH): Likewise.
18085 (GRUB_PE32_REL_BASED_LOW): Likewise.
18086 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
18087 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
18088 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
18089 (GRUB_PE32_REL_BASED_SECTION): Likewise.
18090 (GRUB_PE32_REL_BASED_REL): Likewise.
18091 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
18092 (GRUB_PE32_REL_BASED_DIR64): Likewise.
18093 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
18094
18095 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
18096 issue.
18097
18098 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
18099 (efi_wrap_10): New function.
18100
18101 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
18102
18103 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
18104 MB/MBP model (NV chipset).
18105 (devdata_devs): Add devpath_5 to the list.
18106
18107 * load/i386/efi/linux.c (video_base): Remove variable.
18108 (RGB_MASK): New macro.
18109 (RGB_MAGIC): Likewise.
18110 (LINE_MIN): Likewise.
18111 (LINE_MAX): Likewise.
18112 (FBTEST_STEP): Likewise.
18113 (FBTEST_COUNT): Likewise.
18114 (fb_list): New variable.
18115 (grub_find_video_card): Remove function.
18116 (find_framebuf): New function.
18117 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
18118 line length.
18119
18120 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
18121 problem for x86_64.
18122
74b21bee 181232009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
18124
18125 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
18126
18127 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
18128 coding tool name.
18129
a455f472 181302009-02-22 Robert Millan <rmh@aybabtu.com>
18131
18132 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
18133 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
18134 in our relocation, instead of using it directly from heap. Also
18135 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
18136
6374daf3 181372009-02-21 Robert Millan <rmh@aybabtu.com>
18138
18139 Implement USB keyboard support (based on patch by Marco Gerards)
18140
18141 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
18142 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
18143 (usb_keyboard_mod_LDFLAGS): New variables.
18144
18145 * term/usb_keyboard.c: New file.
18146
8fa4ea70 181472009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
18148
18149 Corrected wrong declaration
18150
18151 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
18152
353976ac 181532009-02-14 Christian Franke <franke@computer.org>
18154
18155 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
18156 (grub_lspci_iter): Print class code and programming interface byte.
18157
6aa1169b 181582009-02-14 Christian Franke <franke@computer.org>
18159
18160 * gendistlist.sh: Ignore `.svn' directories.
18161
265372ca 181622009-02-14 Felix Zielcke <fzielcke@z-51.de>
18163
18164 * fs/fat.c: Add 2009 to Copyright line.
18165
9ff516f3 181662009-02-14 Christian Franke <franke@computer.org>
18167
18168 * commands/hdparm.c: New file. Provides `hdparm' command
18169 which sends ATA commands via grub_disk_ata_pass_through ().
18170
18171 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
18172
18173 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
18174 and <grub/cpu/io.h> to include/grub/ata.h.
18175 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
18176 (GRUB_CDROM_SECTOR_SIZE): Remove.
18177 (GRUB_ATA_*): Move to include/grub/ata.h.
18178 (GRUB_ATAPI_*): Likewise.
18179 (enum grub_ata_commands): Likewise.
18180 (enum grub_ata_timeout_milliseconds): Likewise.
18181 (struct grub_ata_device): Likewise.
18182 (grub_ata_regset): Likewise.
18183 (grub_ata_regget): Likewise.
18184 (grub_ata_regset2): Likewise.
18185 (grub_ata_regget2): Likewise.
18186 (grub_ata_check_ready): Likewise.
18187 (grub_ata_wait_not_busy): Remove static, exported in
18188 include/grub/ata.h.
18189 (grub_ata_wait_drq): Likewise.
18190 (grub_ata_pio_read): Likewise.
18191
18192 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
18193 function for hdparm.mod.
18194
18195 * include/grub/ata.h: New file, contains declarations from
18196 disk/ata.c.
18197 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
18198
18199 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
18200 (grub_disk_ata_pass_through): New exported variable.
18201
18202 * kern/disk.c (grub_disk_ata_pass_through): New variable.
18203
772e23da 182042009-02-13 Colin D Bennett <colin@gibibit.com>
18205
18206 Support multiple fallback entries, and provide an API to support
18207 executing default+fallback menu entries. Renamed the `terminal' menu
18208 viewer to `text'.
18209
18210 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
18211 variable declaration.
18212 (grub_menu_execute_callback): New structure declaration.
18213 (grub_menu_execute_callback_t): New typedef.
18214 (grub_menu_execute_with_fallback): New function declaration.
18215 (grub_menu_get_entry): Likewise.
18216 (grub_menu_get_timeout): Likewise.
18217 (grub_menu_set_timeout): Likewise.
18218
18219 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
18220
18221 * normal/menu.c (grub_wait_after_message): Moved to
18222 `normal/menu_text.c'.
18223 (draw_border): Likewise.
18224 (print_message): Likewise.
18225 (print_entry): Likewise.
18226 (print_entries): Likewise.
18227 (grub_menu_init_page): Likewise.
18228 (get_entry_number): Likewise.
18229 (print_timeout): Likewise.
18230 (run_menu): Likewise.
18231 (grub_menu_execute_entry): Likewise.
18232 (show_text_menu): Likewise.
18233 (get_and_remove_first_entry_number): New function.
18234 (grub_menu_execute_with_fallback): Likewise.
18235 (get_entry): Renamed to ...
18236 (grub_menu_get_entry): .. this and made it global.
18237 (get_timeout): Renamed to ...
18238 (grub_menu_get_timeout): ... this and made it global.
18239 (set_timeout): Renamed to ...
18240 (grub_menu_set_timeout): ... this and made it global.
18241 (grub_normal_terminal_menu_viewer): Renamed to ...
18242 (grub_normal_text_menu_viewer): ... this.
18243
18244 * normal/menu_text.c: New file. Extracted text-menu-specific code
18245 from normal/menu.c.
18246
18247 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
18248 (normal_mod_SOURCES): Likewise.
18249
18250 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
18251 (normal_mod_SOURCES): Likewise.
18252
18253 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18254 (normal_mod_SOURCES): Likewise.
18255
18256 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
18257 (normal_mod_SOURCES): Likewise.
18258
18259 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18260 (normal_mod_SOURCES): Likewise.
18261
18262 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18263 (normal_mod_SOURCES): Likewise.
18264
18265 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
18266 (normal_mod_SOURCES): Likewise.
18267
16ac430e 182682009-02-11 Robert Millan <rmh@aybabtu.com>
18269
18270 * util/grub.d/00_header.in: Update old reference to `font' command.
18271
06ff20fc 182722009-02-10 Felix Zielcke <fzielcke@z-51.de>
18273
18274 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
18275
18276 Based on patch from Javier Martín.
18277
96da9407 182782009-02-09 Felix Zielcke <fzielcke@z-51.de>
18279
18280 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
50fb7002 18281 to avoid false positives with FAT.
96da9407 18282 (grub_fstest_SOURCES): Likewise.
18283 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
18284 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
18285 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18286 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
18287 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18288 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18289
6dca6fe4 182902009-02-09 Felix Zielcke <fzielcke@z-51.de>
18291
06ff20fc 18292 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
6dca6fe4 18293 bpb.version_specific.fat12_or_fat16.fstype and
18294 bpb.version_specific.fat32.fstype.
18295
2550c62f 182962009-02-08 Robert Millan <rmh@aybabtu.com>
18297
be110b30 18298 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
2550c62f 18299
56978920 183002009-02-08 Robert Millan <rmh@aybabtu.com>
18301
18302 * Makefile.in (host_os, host_cpu): New variables.
18303 (target_os): Remove. Update all users.
18304
d64399b5 183052009-02-08 Marco Gerards <marco@gnu.org>
18306
18307 * Makefile.in (enable_grub_emu_usb): New variable.
18308 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
18309 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
18310 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
18311 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
18312 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
18313 `usbtest.mod' and `usbms.mod'.
18314 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
18315 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
18316 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
18317 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
18318 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
18319 variables.
18320
18321 * disk/usbms.c: New file.
18322
18323 * include/grub/usb.h: Likewise.
18324
18325 * include/grub/usbtrans.h: Likewise.
18326
18327 * include/grub/usbdesc.h: Likewise.
18328
18329 * bus/usb/usbtrans.c: Likewise.
18330
18331 * bus/usb/ohci.c: Likewise.
18332
18333 * bus/usb/uhci.c: Likewise.
18334
18335 * bus/usb/usbhub.c: Likewise.
18336
18337 * bus/usb/usb.c: Likewise.
18338
18339 * commands/usbtest.c: Likewise.
18340
18341 * util/usb.c: Likewise.
50fb7002 18342
d64399b5 18343 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
18344
18345 * configure.ac: Test for libusb presence.
50fb7002 18346
d64399b5 18347 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
18348
2b40d6bb 183492009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
18350
18351 * kern/mm.c: Add more comments.
18352
73a4ce81 183532009-02-08 Robert Millan <rmh@aybabtu.com>
18354
18355 Patch from Javier Martín.
18356 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
18357 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
18358
f821ce59 183592009-02-08 Robert Millan <rmh@aybabtu.com>
18360
18361 * fs/cpio.c: Split tar functionality to ...
18362 * fs/tar.c: ... here (new file). Update all users.
18363
aebfc4b0 183642009-02-07 Robert Millan <rmh@aybabtu.com>
18365
18366 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
18367 backward-incompatible features.
18368
18369 Based on patch from Javier Martín, with some adjustments.
18370
50fb7002 183712009-02-07 Michael Scherer <misc@mandriva.org>
cea15bca 18372
18373 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
18374
0bb5115e 183752009-02-07 Robert Millan <rmh@aybabtu.com>
18376
18377 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
18378 position of `disk/lvm.c' to ensure grub_init_all() always picks it
18379 after the RAID stuff.
18380
38a0f8e7 183812009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
18382
50fb7002 18383 Fixes problem when running vbetest command as reported by
38a0f8e7 18384 Vladimir Serbinenko <phcoder@gmail.com>.
18385
18386 * (grub_vbe_set_video_mode): Fixed problem with text modes.
18387
3143cc1c 183882009-02-04 Felix Zielcke <fzielcke@z-51.de>
18389
18390 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
18391 /dev/md/NpN style mdraid devices.
18392
9cba6fce 183932009-02-03 Felix Zielcke <fzielcke@z-51.de>
18394
18395 * util/unifont2pff.rb: Remove.
18396
e507a2c1 183972009-02-03 Felix Zielcke <fzielcke@z-51.de>
18398
18399 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
18400 `#'.
18401
d2c2b4cd 184022009-02-03 Felix Zielcke <fzielcke@z-51.de>
18403
18404 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
18405 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
18406 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
18407 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
18408 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18409 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18410 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18411
b4315fb0 184122009-02-02 Christian Franke <franke@computer.org>
18413
18414 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
18415
de3aa260 184162009-02-01 Felix Zielcke <fzielcke@z-51.de>
18417
7c3ff286 18418 * INSTALL: Note that we now require at least autoconf 2.59 and
18419 that LZO is optional.
de3aa260 18420
825a182b 184212009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
18422
18423 Base on patch on bug #24154 created by Tomas Tintera
18424 <trosos@seznam.cz>.
18425
18426 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
18427
a69ef770 184282009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
18429
7c3ff286 18430 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
a69ef770 18431 <bero@arklinux.org>.
18432
18433 * normal/parser.y (script_init): Add missing semicolon.
18434
6fa42fa6 184352009-01-31 Colin D Bennett <colin@gibibit.com>
18436
7c3ff286 18437 * normal/main.c: Add include to grub/menu_viewer.h.
6fa42fa6 18438 (free_menu_entry_classes): Added.
18439 (grub_normal_menu_addentry): Added class property handling.
18440 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
18441 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
18442
18443 * normal/menu_viewer.c: New file.
18444
18445 * normal/menu.c (run_menu_entry): Renamed to ...
18446 (grub_menu_execute_entry): ... this and made it as global.
18447 (grub_menu_run): Renamed to ...
18448 (show_text_menu): ... this and made it local.
18449 (show_text_menu): Adapt to new function names.
18450 (grub_normal_terminal_menu_viewer): New global variable.
18451
18452 * include/grub/menu.h: New file.
18453
18454 * include/grub/menu_viewer.h: New file.
18455
18456 * include/grub/normal.h: Added include to grub/menu.h.
18457 (grub_menu_entry): Moved to include/grub/menu.h.
18458 (grub_menu_entry_t): Likewise.
18459 (grub_menu): Likewise.
18460 (grub_menu_t): Likewise.
18461 (grub_normal_terminal_menu_viewer): Added.
18462 (grub_menu_execute_entry): Likewise.
18463 (grub_menu_run): Removed.
18464
18465 * DISTLIST: Added include/grub/menu.h.
18466 Added include/grub/menu_viewer.h.
18467 Added normal/menu_viewer.c.
18468
184692009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
18470
18471 * normal/execute.c (grub_script_execute_menuentry): Changed to use
18472 arglist for menutitle arguments.
18473
18474 * normal/main.c (grub_normal_menu_addentry): Likewise.
18475
18476 * normal/parser.y (menuentry): Likewise.
18477
18478 * normal/script.c (grub_script_create_cmdmenu): Likewise.
18479
18480 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
18481 (grub_script_create_cmdmenu): Likewise.
18482
18483 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
18484
18485 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
18486 changes.
18487
18488 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
18489
18490 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
18491
18492 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
18493
18494 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
18495
18496 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
18497
18498 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
18499
56192c23 185002009-01-30 Christian Franke <franke@computer.org>
18501
18502 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
18503 in option help text.
18504
d72521b3 185052009-01-27 Pavel Roskin <proski@gnu.org>
18506
18507 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
18508
994b5e84 185092009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
18510
18511 * commands/lsmmap.c: Add include to grub/machine/memory.h.
18512
18513 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
18514
18515 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
18516 unregister function.
18517
6a7eab2c 185182009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
18519
18520 * disk/scsi.c (grub_scsi_read): Fix sign problem.
18521
18522 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
18523
18524 * util/grub-mkfont.c (usage): Fix typo.
18525
18526 * util/elf/grub-mkimage.c (load_modules): Fix warning.
18527
1806b56e 185282009-01-26 Daniel Mierswa <impulze@impulze.org>
18529
3fb18f09 18530 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
18531
336e1fb9 18532 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
18533
1806b56e 18534 * kern/misc.c (grub_strcasecmp): New function.
18535 (grub_strcasecmp): Use grub_size_t instead of int for length.
18536 Fix return value.
18537 * include/grub/misc.h: Update function prototypes.
18538
580b2a0f 185392009-01-26 Robert Millan <rmh@aybabtu.com>
18540
18541 * configure.ac: Fix cross-compilation check.
ef257b36 18542
d31c24f1 185432009-01-22 Christian Franke <franke@computer.org>
18544
18545 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
18546 (precision) digit string. Allow `.format2' without `format1' (width).
18547 Limit input chars for `%s' output to `format2' if specified. This is
18548 compatible with standard printf ().
18549
3138b44c 185502009-01-22 Christian Franke <franke@computer.org>
18551
18552 * disk/ata.c (grub_ata_wait_status): Replace by ...
18553 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
18554 other status bits may be invalid while BSY is asserted.
18555 (grub_ata_check_ready): New function.
18556 (grub_ata_cmd): Removed.
18557 (grub_ata_wait_drq): New function.
18558 (grub_ata_strncpy): Remove inline.
18559 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
18560 and error check now done by grub_ata_wait_drq ().
18561 (grub_ata_pio_write): Likewise.
18562 (grub_atapi_identify): Set DEV before check for !BSY. Use
18563 grub_ata_wait_drq () to wait for data.
18564 (grub_ata_device_initialize): Add status register check to
18565 detect missing SATA slave devices. Add debug messages.
18566 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
18567 (grub_atapi_packet): Set DEV before check for !BSY. Replace
18568 transfer loop by grub_ata_pio_write ().
18569 (grub_ata_identify): Set DEV before check for !BSY. Use
18570 grub_ata_wait_drq () to wait for data.
ef257b36 18571 (grub_ata_setaddress): Set DEV before check for !BSY.
3138b44c 18572 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
18573 read/write in one loop. Fix invalid command on write. Fix incomplete
18574 command on (size % batch) == 0. Add missing error check after write of
18575 last block. Add debug messages.
18576 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
18577
59a64ef6 185782009-01-19 Christian Franke <franke@computer.org>
18579
18580 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
18581 (GRUB_ATAPI_IREASON_*): Likewise.
18582 (grub_ata_pio_write): Fix timeout error return.
18583 (grub_atapi_identify): Add grub_ata_wait () after cmd.
18584 (grub_atapi_wait_drq): New function.
18585 (grub_atapi_packet): New parameter `size'.
18586 Use grub_atapi_wait_drq () and direct write instead of
18587 grub_ata_pio_write ().
18588 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
18589 reads the number of bytes requested by the device for each DRQ
18590 assertion.
18591 (grub_atapi_write): Remove old implementation, return not
18592 implemented instead.
18593
1cfe20b3 185942009-01-19 Christian Franke <franke@computer.org>
18595
18596 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
18597 of 512 to calculate data size.
18598 (grub_scsi_read12): Likewise.
18599 (grub_scsi_write10): Likewise.
18600 (grub_scsi_write12): Likewise.
18601 (grub_scsi_read): Adjust size according to blocksize.
18602 Add checks for invalid blocksize and unaligned transfer.
18603
bee5fe5d 186042009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
18605
18606 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
18607
ef257b36 18608 * term/gfxterm.c (write_char): Fix background rendering for wide
bee5fe5d 18609 width glyphs.
18610
3e643f8c 186112009-01-19 Robert Millan <rmh@aybabtu.com>
18612
18613 * config.guess: Update to latest version from config git.
18614 * config.sub: Likewise.
18615
4fa80998 186162009-01-17 Felix Zielcke <fzielcke@z-51.de>
18617
18618 * Makefile.in: Change font compilation to use new grub-mkfont instead
18619 of java version.
18620
18621 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
18622 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
18623 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
18624 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
18625 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
18626 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
18627 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
18628 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
18629 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
18630
7086085b 186312009-01-16 Christian Franke <franke@computer.org>
18632
18633 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
18634 (enum grub_ata_timeout_milliseconds): New enum.
18635 (grub_ata_wait_status): Add parameter milliseconds.
18636 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
18637 recovery from timed-out commands.
18638 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
18639 return grub_errno instead of REG_ERROR.
18640 (grub_ata_pio_write): Add parameter milliseconds.
18641 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
18642 Pass milliseconds to grub_ata_wait_status () and
18643 grub_ata_pio_read ().
18644 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
18645 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
18646 grub_ata_wait_status (). Fix IDENTIFY timeout check.
18647 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
18648 It is not suitable for device detection, because DEV bit is ignored,
18649 the command may run too long, and not all devices set the signature
18650 properly.
18651 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
18652 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
18653 Fix device selection, DEV bit must be set first to address the registers
18654 of the correct device.
18655 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
18656 grub_ata_pio_read/write ().
18657 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
18658 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
18659
4a412913 186602009-01-13 Carles Pina i Estany <carles@pina.cat>
18661
18662 * util/grub-editenv.c (main): Use fseeko(), not fseek().
18663
7795c55e 186642009-01-13 Bean <bean123ch@gmail.com>
d913988c 18665
18666 * util/grub-mkfont.c (write_font): forget to remove some debug code.
18667
7795c55e 186682009-01-13 Bean <bean123ch@gmail.com>
e52db1f7 18669
18670 * Makefile.in: (enable_grub_mkfont): New variable.
18671 (freetype_cflags): Likewise.
18672 (freetype_libs): Likewise.
18673
18674 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
18675 (grub_mkfont_SOURCES): New variable.
18676 (grub_mkfont_CFLAGS): Likewise.
18677 (grub_mkfont_LDFLAGS): Likewise.
18678
18679 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
18680 library if `--enable-grub-mkfont' is requested.
18681 (enable_grub_mkfont): New variable.
18682 (freetype_cflags): Likewise.
18683 (freetype_libs): Likewise.
18684
18685 * util/grub-mkfont.c: New file.
18686
093af1fe 186872009-01-12 Christian Franke <franke@computer.org>
18688
18689 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
18690 mode check. Fix setting of compat_use[].
18691
f36cc108 186922009-01-10 Robert Millan <rmh@aybabtu.com>
18693
18694 Update a few copyright years which we forgot to do in 2008 (only for
18695 files whose changes made in 2008 were copyright-significant)
18696
18697 * Makefile.in: Add 2008 to Copyright line.
18698 * disk/ieee1275/ofdisk.c: Likewise.
18699 * disk/efi/efidisk.c: Likewise.
18700 * kern/dl.c: Likewise.
18701 * kern/sparc64/ieee1275/init.c: Likewise.
18702 * kern/mm.c: Likewise.
18703 * kern/efi/mm.c: Likewise.
18704 * boot/i386/pc/boot.S: Likewise.
18705 * genfslist.sh: Likewise.
18706 * fs/iso9660.c: Likewise.
18707 * fs/hfs.c: Likewise.
18708 * fs/jfs.c: Likewise.
18709 * fs/minix.c: Likewise.
18710 * fs/ufs.c: Likewise.
18711 * gensymlist.sh.in: Likewise.
18712 * genkernsyms.sh.in: Likewise.
18713 * include/grub/misc.h: Likewise.
18714 * include/grub/types.h: Likewise.
18715 * include/grub/symbol.h: Likewise.
18716 * include/grub/elf.h: Likewise.
18717 * include/grub/kernel.h: Likewise.
18718 * include/grub/disk.h: Likewise.
18719 * include/grub/dl.h: Likewise.
18720 * include/grub/i386/linux.h: Likewise.
18721 * include/grub/i386/pc/biosdisk.h: Likewise.
18722 * include/grub/efi/api.h: Likewise.
18723 * include/grub/efi/pe32.h: Likewise.
18724 * include/grub/util/misc.h: Likewise.
18725 * normal/execute.c: Likewise.
18726 * normal/arg.c: Likewise.
18727 * normal/completion.c: Likewise.
18728 * normal/lexer.c: Likewise.
18729 * normal/parser.y: Likewise.
18730 * normal/misc.c: Likewise.
18731 * commands/i386/pc/vbeinfo.c: Likewise.
18732 * commands/hexdump.c: Likewise.
18733 * commands/terminal.c: Likewise.
18734 * commands/ls.c: Likewise.
18735 * commands/help.c: Likewise.
18736 * partmap/pc.c: Likewise.
18737 * loader/efi/chainloader.c: Likewise.
18738 * loader/multiboot_loader.c: Likewise.
18739 * loader/i386/pc/multiboot2.c: Likewise.
18740 * term/efi/console.c: Likewise.
18741 * term/i386/pc/serial.c: Likewise.
18742 * util/lvm.c: Likewise.
18743 * util/console.c: Likewise.
18744 * util/i386/efi/grub-mkimage.c: Likewise.
18745 * util/raid.c: Likewise.
18746
7f02114b 187472009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
18748
18749 * commands/videotest.c: Removed include to grub/machine/memory.h.
18750
18751 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
18752 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
18753 (video_mod_SOURCES): Removed.
18754 (video_mod_CFLAGS): Likewise.
18755 (video_mod_LDFLAGS): Likewise.
18756 (gfxterm_mod_SOURCES): Likewise.
18757 (gfxterm_mod_CFLAGS): Likewise.
18758 (gfxterm_mod_LDFLAGS): Likewise.
18759 (videotest_mod_SOURCES): Likewise.
18760 (videotest_mod_CFLAGS): Likewise.
18761 (videotest_mod_LDFLAGS): Likewise.
18762 (bitmap_mod_SOURCES): Likewise.
18763 (bitmap_mod_CFLAGS): Likewise.
18764 (bitmap_mod_LDFLAGS): Likewise.
18765 (tga_mod_SOURCES): Likewise.
18766 (tga_mod_CFLAGS): Likewise.
18767 (tga_mod_LDFLAGS): Likewise.
18768 (jpeg_mod_SOURCES): Likewise.
18769 (jpeg_mod_CFLAGS): Likewise.
18770 (jpeg_mod_LDFLAGS): Likewise.
18771 (png_mod_SOURCES): Likewise.
18772 (png_mod_CFLAGS): Likewise.
18773 (png_mod_LDFLAGS): Likewise.
18774
18775 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
18776 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
18777 (video_mod_SOURCES): Added.
18778 (video_mod_CFLAGS): Likewise.
18779 (video_mod_LDFLAGS): Likewise.
18780 (videotest_mod_SOURCES): Likewise.
18781 (videotest_mod_CFLAGS): Likewise.
18782 (videotest_mod_LDFLAGS): Likewise.
18783 (bitmap_mod_SOURCES): Likewise.
18784 (bitmap_mod_CFLAGS): Likewise.
18785 (bitmap_mod_LDFLAGS): Likewise.
18786 (tga_mod_SOURCES): Likewise.
18787 (tga_mod_CFLAGS): Likewise.
18788 (tga_mod_LDFLAGS): Likewise.
18789 (jpeg_mod_SOURCES): Likewise.
18790 (jpeg_mod_CFLAGS): Likewise.
18791 (jpeg_mod_LDFLAGS): Likewise.
18792 (png_mod_SOURCES): Likewise.
18793 (png_mod_CFLAGS): Likewise.
18794 (png_mod_LDFLAGS): Likewise.
18795 (gfxterm_mod_SOURCES): Likewise.
18796 (gfxterm_mod_CFLAGS): Likewise.
7795c55e 18797 (gfxterm_mod_LDFLAGS): Likewise.
7f02114b 18798
18799 * term/gfxterm.c: Removed include to grub/machine/memory.h,
18800 grub/machine/console.h.
18801
644fff97 188022009-01-04 Jerone Young <jerone@gmail.com>
18803
18804 Make on screen instructions clearer
18805
18806 Based on patch created by Jidanni <jidanni@jidanni.org>
18807
18808 * normal/menu.c: print clearer instructions on the screen
18809
1e901a75 188102009-01-02 Colin D Bennett <colin@gibibit.com>
18811
18812 New font engine.
34c44600 18813
1e901a75 18814 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
18815 build system and fixed gfxterm.c to work with different sized fonts.
18816
18817 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
34c44600 18818
1e901a75 18819 * configure: Re-generated.
34c44600 18820
1e901a75 18821 * DISTLIST: Removed font/manager.c.
18822 Added font/font.c.
18823 Added font/font_cmd.c.
34c44600 18824
1e901a75 18825 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
18826 compilation.
34c44600 18827
1e901a75 18828 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
34c44600 18829
18830 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
1e901a75 18831
18832 * kern/term.c: Changed users of grub_utf8_to_ucs4.
34c44600 18833
1e901a75 18834 * normal/menu.c: Likewise.
34c44600 18835
1e901a75 18836 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
18837 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
34c44600 18838
1e901a75 18839 * include/grub/font.h: Replaced with new file.
34c44600 18840
1e901a75 18841 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
18842 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
18843 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
18844 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
18845 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
34c44600 18846 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
1e901a75 18847 fg_red, fg_green, fg_blue, fg_alpha.
18848 (grub_video_adapter): Removed blit_glyph.
34c44600 18849 (grub_video_blit_glyph): Removed.
18850
1e901a75 18851 * font/manager.c: Removed file.
34c44600 18852
18853 * font/font.c: New file.
18854
1e901a75 18855 * font/font_cmd.c: Likewise.
34c44600 18856
1e901a75 18857 * video/video.c (grub_video_blit_glyph): Removed.
34c44600 18858
1e901a75 18859 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
18860 (grub_video_vbe_map_rgba): Likewise.
18861 (grub_video_vbe_unmap_color_int): Likewise.
18862 (grub_video_vbe_blit_glyph): Removed.
18863 (grub_video_vbe_adapter): Removed blit_glyph.
34c44600 18864
1e901a75 18865 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
18866 (get_pixel): Likewise.
34c44600 18867 (set_pixel): Likewise.
18868
1e901a75 18869 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
34c44600 18870
1e901a75 18871 * term/gfxterm.c: Adapted to new font engine.
34c44600 18872
1e901a75 18873 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
34c44600 18874
1e901a75 18875 * term/i386/pc/vga.c: Likewise.
34c44600 18876
1e901a75 18877 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
34c44600 18878
1e901a75 18879 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
34c44600 18880
1e901a75 18881 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
34c44600 18882
1e901a75 18883 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
34c44600 18884
1e901a75 18885 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
34c44600 18886
1e901a75 18887 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
34c44600 18888
1e901a75 18889 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
34c44600 18890
1e901a75 18891 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
34c44600 18892
1e901a75 18893 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
18894
18895 * util/grub.d/00_header.in: Changed to use new loadfont command.
34c44600 18896
1e901a75 18897 * util/grub-mkconfig_lib.in: Changed font extension.
18898
278922e8 188992008-12-28 Felix Zielcke <fzielcke@z-51.de>
18900
18901 * util/getroot.c (grub_util_get_grub_dev): Add support for
18902 /dev/md/dNNpNN style partitionable mdraid devices.
18903
3ced05cf 189042008-12-12 Alex Smith <alex@alex-smith.me.uk>
18905
18906 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
18907 at a time limit of the PXE TFTP API correctly.
18908 (grub_pxefs_close): Likewise.
18909
7fd0ee30 189102008-11-29 Robert Millan <rmh@aybabtu.com>
18911
34c44600 18912 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
7fd0ee30 18913 grub_ata_device_initialize() calls.
18914
34c44600 189152008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
0c5e79ab 18916
18917 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
18918 iteration failed.
18919 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
18920
89313780 189212008-11-28 Robert Millan <rmh@aybabtu.com>
18922
18923 Fix build on powerpc-ieee1275. Based on patch created by
18924 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
18925 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
18926 `kern/ieee1275/mmap.c'.
18927 * include/grub/powerpc/ieee1275/memory.h: New file.
18928
15257703 18929 Provide grub-install on coreboot.
18930 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
18931 (grub_install_SOURCES): New variable.
18932 * util/i386/pc/grub-install.in: Add a few condition checks to make it
18933 usable on coreboot.
18934
9fc5388a 189352008-11-25 Felix Zielcke <fzielcke@z-51.de>
18936
18937 * util/grub-fstest.c (grub_term_get_current_input): Change return type
18938 to `grub_term_input_t'.
18939 (grub_term_get_current_output): Change return type to
18940 `grub_term_output_t'.
18941
bc3a2f31 189422008-11-22 Robert Millan <rmh@aybabtu.com>
18943
34c44600 18944 Fix breakage on coreboot due to declaration mismatch.
bc3a2f31 18945 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
18946 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
18947 grub_vga_text_cls().
18948
80fc88f2 18949 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
34c44600 18950 comments. Avoid copying one more byte than necessary (just in case).
80fc88f2 18951
cbf36fd3 18952 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
18953 to 0x200000 (avoids trouble with some OFW implementations, and matches
18954 with the one in Yaboot).
18955 Reported by Manoel Abranches
18956
73e8e268 189572008-11-20 Robert Millan <rmh@aybabtu.com>
3cf6ac19 18958
18959 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
18960 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
18961
73e8e268 18962 * util/grub-mkconfig_lib.in (grub_warn): New function.
18963 (convert_system_path_to_grub_path): Use grub_warn() when issuing
18964 warnings, to obtain consistent formatting.
18965 * util/grub.d/00_header.in: Likewise.
18966 * util/update-grub_lib.in: Likewise.
18967
e94045a1 18968 * loader/i386/linux.c (allocate_pages): Fix a warning.
40f9faa4 18969 Move comment text to `#error' stanza.
e94045a1 18970
79d29fd7 18971 Harmonize ieee1275's grub_available_iterate() with the generic
18972 grub_machine_mmap_iterate() interface (fixes a recently-introduced
18973 build problem on i386-ieee1275):
18974 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
18975 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
18976 parameter `type'. Update all users of this function.
18977 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
18978 `kern/ieee1275/mmap.c'.
18979 * kern/ieee1275/init.c
18980 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
18981 with ...
18982 (grub_machine_mmap_iterate): ... this.
18983 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
18984 return type to `grub_err_t'. Update all implementations of this
18985 function prototype.
18986 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
18987 Likewise.
18988
60d6b16e 18989 Add `lsmmap' command (lists firmware-provided memory map):
18990 * commands/lsmmap.c: New file.
18991 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
18992 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
18993 variables.
18994 * conf/powerpc-ieee1275.rmk: Likewise.
18995 * conf/i386-coreboot.rmk: Likewise.
18996 * conf/i386-ieee1275.rmk: Likewise.
18997
ebaaf49b 189982008-11-19 Robert Millan <rmh@aybabtu.com>
18999
19000 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
92907110 19001 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
19002 constraints to initrd allocation (based on code from
19003 loader/i386/pc/linux.c). Without them, initrd was allocated too high
19004 for Linux to find it.
ebaaf49b 19005
dfab719f 190062008-11-14 Robert Millan <rmh@aybabtu.com>
19007
19008 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
19009 order to cope with duplicate slashes.
19010
10fc3eb9 190112008-11-14 Robert Millan <rmh@aybabtu.com>
19012
19013 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
19014 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
19015 don't want to mess with lower memory, because it is used in the Linux
19016 loader.
19017
19018 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
34c44600 19019 an appropriate place in lower memory, between 0x10000 and 0x90000,
10fc3eb9 19020 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
19021 is in our heap (probably as a result of it being corrupted during
2f2a3442 19022 decompression). Add #error instance with comment to explain why this
19023 loader isn't currently usable on PC/BIOS.
10fc3eb9 19024
e2e07847 190252008-11-14 Robert Millan <rmh@aybabtu.com>
19026
19027 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
34c44600 19028 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
e2e07847 19029
fe8e8d69 190302008-11-12 Robert Millan <rmh@aybabtu.com>
19031
19032 Make loader/i386/linux.c buildable on i386-pc (although disabled).
19033
19034 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
19035 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
19036 from here ...
19037 * include/grub/i386/pc/memory.h: ... to here.
19038
976b07d0 190392008-11-12 Robert Millan <rmh@aybabtu.com>
19040
19041 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
19042 split).
19043
19044 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
19045 (grub_console_cur_color, grub_console_real_putchar)
19046 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
19047 (grub_console_setcolorstate, grub_console_setcolor)
19048 (grub_console_getcolor): Move from here ...
19049 * include/grub/i386/vga_common.h: ... to here (new file).
19050
19051 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
19052 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
19053 `<grub/i386/io.h>'.
19054 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
19055 `<grub/i386/vga_common.h>'.
19056
76679cd3 190572008-11-12 Robert Millan <rmh@aybabtu.com>
19058
19059 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
19060 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
19061 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
19062 variables.
19063 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
19064 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
19065
19066 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
19067 grub_console_init() with call to grub_vga_text_init().
19068 (grub_machine_fini): Replace call to
19069 grub_console_fini() with call to grub_vga_text_fini() and
19070 grub_at_keyboard_fini().
19071
19072 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
19073 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
19074 (grub_console_setcolorstate, grub_console_setcolor)
19075 (grub_console_getcolor): New function prototypes.
19076
19077 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
19078 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
19079 (grub_vga_text_setcursor): Static-ize.
19080 (grub_vga_text_term): New structure.
19081 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
19082
19083 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
19084 (grub_console_cur_color, grub_console_standard_color)
19085 (grub_console_normal_color, grub_console_highlight_color)
19086 (map_char, grub_console_putchar, grub_console_getcharwidth)
19087 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
19088 (grub_console_getcolor): Move from here ...
19089 * term/i386/vga_common.c: ... to here (same function names).
19090
95b841d3 190912008-11-12 Robert Millan <rmh@aybabtu.com>
19092
19093 Use newly-added Multiboot support in coreboot.
19094
19095 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
19096 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
19097
19098 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
19099 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
19100 (codestart): Store the MBI in `startup_multiboot_info' when we're
19101 being loaded using Multiboot.
19102
19103 * kern/i386/coreboot/init.c (grub_machine_init): Move
19104 grub_at_keyboard_init() call to beginning of function (useful for
19105 debugging). Call grub_machine_mmap_init() before attempting to use
19106 grub_machine_mmap_iterate().
19107 (grub_lower_mem, grub_upper_mem): Move from here ...
19108 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
19109 here (new file).
19110
19111 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
19112 function prototype.
19113
761ca975 191142008-11-12 Robert Millan <rmh@aybabtu.com>
19115
19116 Fix a regression introduced by the at_keyboard.mod split. Because
19117 some terminals are default on some platforms and non-default on
19118 others, the first terminal being registered determines which is
19119 going to be default.
19120
19121 * kern/term.c (grub_term_register_input): If this is the first
19122 terminal being registered, set it as the current one.
19123 (grub_term_register_output): Likewise.
19124
19125 * term/efi/console.c (grub_console_init): Do not call
19126 grub_term_set_current_output() or grub_term_set_current_input().
19127 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
19128 * term/i386/pc/console.c (grub_console_init): Likewise.
19129 (grub_console_fini): Do not call grub_term_set_current_input()
19130 (but leave grub_term_set_current_output() to restore text mode).
19131
6c529df7 191322008-11-10 Robert Millan <rmh@aybabtu.com>
19133
19134 * util/grub.d/00_header.in: Add backward compatibility check for
19135 versions of terminal.mod that don't understand `terminal_input' or
19136 `terminal_output'.
19137
132e4113 191382008-11-09 Robert Millan <rmh@aybabtu.com>
19139
19140 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
19141 `terminal_input' / `terminal_output', not `terminal'.
19142
ac293d50 191432008-11-08 Robert Millan <rmh@aybabtu.com>
19144
19145 * Makefile.in (include_DATA): Fix srcdir=. assumption.
2a9c5940 19146 (DISTCLEANFILES): Add `build_env.mk'.
ac293d50 19147
0025933a 191482008-11-08 Robert Millan <rmh@aybabtu.com>
19149
19150 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
dba3f844 19151 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
0025933a 19152 members. Update all users.
19153 * util/console.c (grub_ncurses_term): Split in ...
19154 (grub_ncurses_term_input): ... this, and ...
19155 (grub_ncurses_term_output): ... this. Update all users.
dcb6fa0a 19156 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
0025933a 19157
37c86336 191582008-11-08 Robert Millan <rmh@aybabtu.com>
19159
19160 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
19161 (PKGDATA): Add $(pkgdata_SRCDIR).
19162 (pkglib_BUILDDIR): New variable.
19163 (pkgdata_SRCDIR): New variable.
19164 (build_env.mk): New target.
19165 (include_DATA): New variable.
19166 (install-local): Install $(include_DATA) files in $(includedir).
19167
b6c15a2d 191682008-11-07 Pavel Roskin <proski@gnu.org>
19169
d99d46f1 19170 * gendistlist.sh: Use C locale for sorting to ensure consistent
19171 output on all systems.
19172
b6c15a2d 19173 * util/grub.d/00_header.in: Remove incorrect space before
19174 "serial".
19175
c32ee8c9 191762008-11-07 Robert Millan <rmh@aybabtu.com>
19177
19178 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
19179 per specification.
19180 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
19181 * loader/multiboot_loader.c (find_multi_boot2_header): New function
19182 (based on find_multi_boot1_header).
19183 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
19184 using find_multi_boot2_header(), and abort if neither Multiboot or
19185 Multiboot headers were found.
19186
651c29b7 191872008-11-07 Robert Millan <rmh@aybabtu.com>
19188
19189 Modularize at_keyboard.mod:
19190
19191 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
19192 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
19193 (at_keyboard_mod_LDFLAGS): New variables.
19194
19195 Actual terminal split:
19196
19197 * include/grub/term.h (struct grub_term): Split in ...
19198 (struct grub_term_input): ... this, and ...
19199 (struct grub_term_output): ... this. Update all users.
19200 (grub_term_set_current): Split in ...
19201 (grub_term_set_current_input): ... this, and ...
19202 (grub_term_set_current_output): ... this.
19203 (grub_term_get_current): Split in ...
19204 (grub_term_get_current_input): ... this, and ...
19205 (grub_term_get_current_output): ... this.
19206 (grub_term_register): Split in ...
19207 (grub_term_register_input): ... this, and ...
19208 (grub_term_register_output): ... this.
19209 (grub_term_unregister): Split in ...
19210 (grub_term_unregister_input): ... this, and ...
19211 (grub_term_unregister_output): ... this.
19212 (grub_term_iterate): Split in ...
19213 (grub_term_iterate_input): ... this, and ...
19214 (grub_term_iterate_output): ... this.
19215
19216 * kern/term.c (grub_term_list): Split in ...
19217 (grub_term_list_input): ... this, and ...
19218 (grub_term_list_output): ... this. Update all users.
19219 (grub_cur_term): Split in ...
19220 (grub_cur_term_input): ... this, and ...
19221 (grub_cur_term_output): ... this. Update all users.
19222 (grub_term_set_current): Split in ...
19223 (grub_term_set_current_input): ... this, and ...
19224 (grub_term_set_current_output): ... this.
19225 (grub_term_get_current): Split in ...
19226 (grub_term_get_current_input): ... this, and ...
19227 (grub_term_get_current_output): ... this.
19228 (grub_term_register): Split in ...
19229 (grub_term_register_input): ... this, and ...
19230 (grub_term_register_output): ... this.
19231 (grub_term_unregister): Split in ...
19232 (grub_term_unregister_input): ... this, and ...
19233 (grub_term_unregister_output): ... this.
19234 (grub_term_iterate): Split in ...
19235 (grub_term_iterate_input): ... this, and ...
19236 (grub_term_iterate_output): ... this.
19237
19238 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
19239 a check for input and one for output (and only attempt to get keys
19240 from user when input works).
19241
19242 * util/grub-probe.c (grub_term_get_current): Split in ...
19243 (grub_term_get_current_input): ... this, and ...
19244 (grub_term_get_current_output): ... this.
19245 * util/grub-fstest.c: Likewise.
19246 * util/i386/pc/grub-setup.c: Likewise.
19247 * util/grub-editenv.c: Likewise.
19248
19249 Portability adjustments:
19250
19251 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
19252 `term/i386/pc/at_keyboard.c'.
19253 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
19254 grub_keyboard_controller_init() (now handled by terminal .init).
19255 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
19256 grub_at_keyboard_init().
19257 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
19258 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
19259 at_keyboard.mod via input terminal interface).
19260 * include/grub/i386/coreboot/console.h: Convert into a stub for
19261 `<grub/i386/pc/console.h>'.
19262
19263 Migrate full terminals to new API:
19264
19265 * term/efi/console.c (grub_console_term): Split into ...
19266 (grub_console_term_input): ... this, and ...
19267 (grub_console_term_output): ... this. Update all users.
19268 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
19269 (grub_ofconsole_init): Split into ...
19270 (grub_ofconsole_init_input): ... this, and ...
19271 (grub_ofconsole_init_output): ... this.
19272 (grub_ofconsole_term): Split into ...
19273 (grub_ofconsole_term_input): ... this, and ...
19274 (grub_ofconsole_term_output): ... this. Update all users.
19275 * term/i386/pc/serial.c (grub_serial_term): Split into ...
19276 (grub_serial_term_input): ... this, and ...
19277 (grub_serial_term_output): ... this. Update all users.
19278 * term/i386/pc/console.c (grub_console_term): Split into ...
19279 (grub_console_term_input): ... this, and ...
19280 (grub_console_term_output): ... this. Update all users.
19281 (grub_console_term_input): Only enable it on PC/BIOS platform.
19282 (grub_console_init): Remove grub_keyboard_controller_init() call.
19283
19284 Migrate input terminals to new API:
19285
19286 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
19287 `i386' and `i386/pc' to enable build on x86_64 (this driver is
19288 i386-specific anyway).
19289 (grub_console_checkkey): Rename to ...
19290 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
19291 users.
19292 (grub_keyboard_controller_orig): New variable.
19293 (grub_console_getkey): Rename to ...
19294 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
19295 users.
19296 (grub_keyboard_controller_init): Static-ize. Save original
19297 controller value so that it can be restored ...
19298 (grub_keyboard_controller_fini): ... here (new function).
19299 (grub_at_keyboard_term): New structure.
19300 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
19301 functions.
19302
19303 Migrate output terminals to new API:
19304
19305 * term/i386/pc/vga.c (grub_vga_term): Change type to
19306 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
19307 members. Update all users.
19308 * term/gfxterm.c (grub_video_term): Change type to
19309 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
19310 members. Update all users.
19311 * include/grub/i386/pc/console.h (grub_console_checkkey)
19312 (grub_console_getkey): Do not export (no longer needed by gfxterm,
19313 etc).
19314
19315 Migrate `terminal' command and userland tools to new API:
19316
19317 * commands/terminal.c (grub_cmd_terminal): Split into ...
19318 (grub_cmd_terminal_input): ... this, and ...
19319 (grub_cmd_terminal_output): ... this.
19320 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
19321 `terminal_input' and `terminal_output'.
19322 * util/grub.d/00_header.in: Adjust `terminal' calls to new
19323 `terminal_input' / `terminal_output' API.
19324 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
19325 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
19326 provided ${GRUB_TERMINAL}, convert it).
19327
96e5d876 193282008-11-04 Robert Millan <rmh@aybabtu.com>
19329
19330 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
19331 for FreeBSD.
19332 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
19333
556f3775 193342008-11-03 Bean <bean123ch@gmail.com>
19335
19336 * kern/elf.c (grub_elf32_load): Revert to previous code.
19337 (grub_elf64_load): Likewise.
19338
19339 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
19340
926b9823 193412008-11-01 Robert Millan <rmh@aybabtu.com>
19342
19343 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
19344 (TARGET_CPPFLAGS): Likewise.
19345 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
19346
1432e958 193472008-11-01 Carles Pina i Estany <carles@pina.cat>
19348
19349 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
19350
dba3f844 193512008-10-29 Guillem Jover <guillem.jover@nokia.com>
de4fa71c 19352
19353 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
19354 addition of objects until the code is not going to be able to fail.
19355
dba3f844 193562008-10-29 Guillem Jover <guillem.jover@nokia.com>
b7279447 19357
19358 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
19359 (add a missing NULL check, and correct them by moving the pointer
19360 operations after the actual check).
19361
7ab28c21 193622008-10-29 Robert Millan <rmh@aybabtu.com>
19363
19364 * util/i386/pc/grub-install.in: Handle empty string as output from
19365 make_system_path_relative_to_its_root().
19366
1b7748eb 193672008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
19368
19369 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
19370 circular metadata worst case scenario. If the metadata is circular
19371 then copy the wrap in place.
19372 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
19373 project lib/format_text/layout.h
19374 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
19375
c9618ab2 193762008-10-03 Felix Zielcke <fzielcke@z-51.de>
19377
7a36edca 19378 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
c9618ab2 19379
bf981c62 193802008-10-03 Felix Zielcke <fzielcke@z-51.de>
19381
19382 * util/update-grub_lib.in: Mention filename in warning message.
19383
6d994591 193842008-09-29 Felix Zielcke <fzielcke@z-51.de>
19385
19386 * NEWS: Update for rename of update-grub to grub-mkconfig.
19387
18ade780 193882008-09-29 Felix Zielcke <fzielcke@z-51.de>
19389
19390 * util/update-grub_lib.in: Copy to ...
19391 * util/grub-mkconfig_lib.in: ... this. Update all users.
7c3ff286 19392 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
18ade780 19393 * util/update-grub.in: Rename to ...
19394 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
19395 option. Add `--output' option to allow users to specify the generated
19396 configuration file. Default to stdout.
19397 (update_grub_dir): Rename to ...
19398 (grub_mkconfig_dir): ... this.
19399 (grub_cfg): Default to an empty string.
19400 * conf/common.rmk (update-grub): Rename to ...
19401 (grub-mkconfig): ... this.
19402 (update-grub_lib): Copy to ...
19403 (grub-mkconfig_lib): ... this.
19404 (update-grub_SCRIPTS): Copy to ...
19405 (grub-mkconfig_SCRIPTS): ... this. Update all users.
19406 (update-grub_DATA): Rename to ...
19407 (grub-mkconfig_DATA): ... this.
19408
556ce6ac 194092008-09-28 Robert Millan <rmh@aybabtu.com>
19410
19411 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
19412 to `modified'. Add the real `created' field.
19413 (grub_iso9660_uuid): Use `modified' rather than `created' for
19414 constructing the UUID.
19415
194162008-09-28 Felix Zielcke <fzielcke@z-51.de>
eb079ba9 19417
19418 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
19419 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
19420
92274e85 194212008-09-28 Bean <bean123ch@gmail.com>
19422
19423 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
19424 Thanks to Christian Franke for finding this bug.
19425
add6f17a 194262008-09-25 Robert Millan <rmh@aybabtu.com>
19427
19428 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
19429 instances of grub_util_get_disk_name() (see previous commit).
19430
d2a367b8 194312008-09-25 Robert Millan <rmh@aybabtu.com>
19432
19433 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
19434 `util/i386/get_disk_name.c'.
19435 * conf/i386-efi.rmk: Likewise.
19436 * conf/x86_64-efi.rmk: Likewise.
19437 * conf/i386-coreboot.rmk: Likewise.
19438 * conf/i386-ieee1275.rmk: Likewise.
19439 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
19440 `util/ieee1275/get_disk_name.c'.
19441 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
19442 * util/ieee1275/get_disk_name.c: Remove file.
19443 * util/i386/get_disk_name.c: Remove file.
19444 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
19445 "hd%d" for device.map entries, rather than using
19446 grub_util_get_disk_name().
19447
81a06771 194482008-09-24 Carles Pina i Estany <carles@pina.cat>
b0c301f7 19449
19450 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
19451 warning.
19452 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
19453
5a004279 194542008-09-24 Carles Pina i Estany <carles@pina.cat>
19455
19456 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
19457 Changed to 0x5100.
19458 (GRUB_TERM_PPAGE): Changed to 0x4900.
19459
397093d3 194602008-09-24 Robert Millan <rmh@aybabtu.com>
19461
19462 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
19463 macros (they were i386-pc specific).
19464 * include/grub/sparc64/ieee1275/console.h: Likewise.
19465 * include/grub/efi/console.h: Likewise.
19466
a91b6c7c 194672008-09-22 Bean <bean123ch@gmail.com>
19468
19469 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
19470 resident and in attribute list.
19471
19472 * include/grub/ntfs.h (BMP_LEN): Removed.
19473
c40fd116 194742008-09-22 Bean <bean123ch@gmail.com>
19475
81a06771 19476 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
c40fd116 19477 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
19478
19479 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
19480 error occurs, as grub_disk_open will call grub_disk_close, which will
19481 call p->close (scsi).
19482
81a06771 194832008-09-21 Felix Zielcke <fzielcke@z-51.de>
eb73121d 19484
19485 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
19486 (AC_PREREQ): Bumped to 2.59.
19487 (AC_TRY_COMPILE): Replace obsolete macro with ...
19488 (AC_COMPILE_IFELSE): ... this.
19489 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
19490 (AC_LINK_IFELSE): ... this.
19491
5dc43410 194922008-09-21 Felix Zielcke <fzielcke@z-51.de>
19493
19494 * autogen.sh: Add a call to `gendistlist.sh'.
19495
9035dce4 194962008-09-19 Christian Franke <franke@computer.org>
19497
19498 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
19499 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
19500 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
19501 Export __enable_execute_stack() to modules.
19502 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
19503 New function.
19504
7fd75377 195052008-09-09 Felix Zielcke <fzielcke@z-51.de>
19506
040030b3 19507 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
19508 Sort the list.
19509
195102008-09-09 Felix Zielcke <fzielcke@z-51.de>
19511
19512 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
7fd75377 19513 #include <grub/util/hostdisk.h>.
19514
89d5ffcf 195152008-09-08 Robert Millan <rmh@aybabtu.com>
19516
19517 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
19518 segments when their filesz is zero (grub_file_read() interprets
81a06771 19519 zero-size as "read until EOF", which results in memory corruption).
89d5ffcf 19520 Use `lowest_segment' rather than 0 for calculating the current
19521 segment load address.
19522
40da438f 195232008-09-08 Robert Millan <rmh@aybabtu.com>
19524
19525 * util/hostdisk.c (open_device): Replace a grub_util_info() call
19526 with grub_dprintf("hostdisk", ...), as it was so verbose that it
19527 clobbered useful information.
19528
ddbf5556 195292008-09-08 Robert Millan <rmh@aybabtu.com>
19530
19531 * include/grub/util/biosdisk.h: Move to ...
19532 * include/grub/util/hostdisk.h: ... here. Update all users.
19533 * util/biosdisk.c: Move to ...
19534 * util/hostdisk.c: ... here. Update all users.
19535
783d0f48 195362008-09-07 Robert Millan <rmh@aybabtu.com>
19537
19538 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
19539 variables.
19540 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
19541 and length can be stored directly in the `mbi->mmap_addr' and
19542 `mbi->mmap_length' struct fields.
19543
548e2ea5 195442008-09-07 Robert Millan <rmh@aybabtu.com>
19545
19546 * conf/i386.rmk: New file. Provides declaration for building
19547 `cpuid.mod'.
19548 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
19549 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
19550 variables.
19551 Include `conf/i386.mk'.
19552 * conf/i386-efi.rmk: Likewise.
19553 * conf/x86_64-efi.rmk: Likewise.
19554 * conf/i386-coreboot.rmk: Likewise.
19555 * conf/i386-ieee1275.rmk: Likewise.
19556
0ea85a37 195572008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
19558
19559 Based on patch created by Colin D Bennett <colin@gibibit.com>.
19560 Adds optimization support for BGR based modes.
19561
19562 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
19563 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
19564 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
19565 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
19566 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
19567 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
19568 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
19569 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
19570 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
19571 (grub_video_i386_vbeblit_index_index): Likewise.
19572 (grub_video_i386_vbeblit_replace_directN): Added.
19573 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
19574 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
19575 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
19576 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
19577 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
19578 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
81a06771 19579 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
0ea85a37 19580 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
19581 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
19582 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
19583 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
19584 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
19585 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
19586
19587 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
19588 (grub_video_i386_vbefill_R8G8B8): Likewise.
19589 (grub_video_i386_vbefill_index): Likewise.
19590 (grub_video_i386_vbefill_direct32): Added.
19591 (grub_video_i386_vbefill_direct24): Likewise.
19592 (grub_video_i386_vbefill_direct16): Likewise.
19593 (grub_video_i386_vbefill_direct8): Likewise.
19594
81a06771 19595 * include/grub/video.h (grub_video_blit_format): Removed
0ea85a37 19596 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
19597 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
19598 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
19599 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
19600 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
81a06771 19601
0ea85a37 19602 * video/video.c (grub_video_get_blit_format): Updated to use new
19603 blit formats. Added handling for 16 bit color modes.
81a06771 19604
19605 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
0ea85a37 19606 fillers.
19607 (common_blitter): Updated to use new blitters.
19608
19609 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
19610 Removed.
19611 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
19612 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
19613 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
19614 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
19615 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
19616 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
19617 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
19618 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
19619 (grub_video_i386_vbeblit_index_index): Likewise.
19620 (grub_video_i386_vbeblit_replace_directN): Added.
19621 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
19622 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
19623 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
19624 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
19625 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
19626 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
19627 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
19628 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
19629 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
19630 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
19631 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
19632 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
19633 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
81a06771 19634
0ea85a37 19635 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
19636 (grub_video_i386_vbefill_R8G8B8): Likewise.
19637 (grub_video_i386_vbefill_index): Likewise.
19638 (grub_video_i386_vbefill_direct32): Added.
19639 (grub_video_i386_vbefill_direct24): Likewise.
19640 (grub_video_i386_vbefill_direct16): Likewise.
19641 (grub_video_i386_vbefill_direct8): Likewise.
81a06771 19642
0ea85a37 19643 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
19644 types.
81a06771 19645
0ea85a37 19646 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
19647 types.
81a06771 19648
0ea85a37 19649 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
19650 blitter types.
81a06771 19651
0ea85a37 19652 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
19653 types.
19654
e8a83df6 196552008-09-06 Felix Zielcke <fzielcke@z-51.de>
19656
19657 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
19658 RAID level 1.
19659
6bcd8ee5 196602008-09-06 Felix Zielcke <fzielcke@z-51.de>
c375ae58 19661
6bcd8ee5 19662 * fs/iso9660.c (grub_iso9660_date): New structure.
19663 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
19664 (grub_iso9660_uuid): New function.
c375ae58 19665
59261157 196662008-09-05 Bean <bean123ch@gmail.com>
19667
19668 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
19669
19670 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
19671 insensitive bit for names in Win32 and Win32 & DOS namespace.
19672
19673 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
19674
19675 * include/grub/types.h (LONG_MAX): Likewise.
19676
58b6645a 196772008-09-04 Felix Zielcke <fzielcke@z-51.de>
19678
4ee55921 19679 * util/getroot.c: Include <config.h>.
19680 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
19681 add support for /dev/md/N devices and handle LVM double dash escaping.
19682
196832008-09-04 Felix Zielcke <fzielcke@z-51.de>
19684
19685 * config.guess: Update to latest version from config git.
19686 * config.sub: Likewise.
58b6645a 19687
9124f65d 196882008-09-03 Robert Millan <rmh@aybabtu.com>
19689
19690 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
19691 `disk->total_sectors'.
19692
81a06771 196932008-09-01 Colin D Bennett <colin@gibibit.com>
a0224a4e 19694
19695 * include/grub/normal.h: Fixed incorrect comment for
19696 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
19697
81a06771 196982008-09-01 Colin D Bennett <colin@gibibit.com>
f0619958 19699
19700 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
19701 values with defines.
19702
19703 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
19704 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
19705 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
19706 (GRUB_VBE_MODEATTR_COLOR): Likewise.
19707 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
19708 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
19709 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
19710 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
19711 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
19712 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
19713 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
19714 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
19715 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
19716 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
19717 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
19718 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
19719 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
19720 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
19721 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
19722
93d5cbf8 197232008-08-31 Robert Millan <rmh@aybabtu.com>
19724
19725 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
19726 declaration.
19727 (grub_multiboot): Fix a few warnings.
19728
21751d50 197292008-08-31 Robert Millan <rmh@aybabtu.com>
19730
19731 * loader/i386/pc/multiboot.c: Update comment not to say that
19732 boot_device support is unimplemented.
19733
e27a75c5 197342008-08-31 Robert Millan <rmh@aybabtu.com>
19735
19736 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
19737 or memory map support are unimplemented.
19738
81a06771 197392008-08-31 Colin D Bennett <colin@gibibit.com>
64d2d53c 19740
19741 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
19742
81a06771 197432008-08-31 Colin D Bennett <colin@gibibit.com>
c08a6c18 19744
19745 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
19746 total video memory in 'vbeinfo' output; show color format details for
19747 each video mode.
19748
7c5d8d95 197492008-08-30 Pavel Roskin <proski@gnu.org>
19750
19751 * util/genmoddep.c: Remove for real this time.
19752 * DISTLIST: Remove util/genmoddep.c.
19753
4cebd25a 197542008-08-30 Robert Millan <rmh@aybabtu.com>
19755
19756 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
19757 as required by Multiboot spec (it was already 4-byte aligned, but
19758 only by chance).
19759
b497a269 197602008-08-29 Pavel Roskin <proski@gnu.org>
19761
e3925185 19762 * kern/powerpc/ieee1275/crt0.S: Rename to ...
19763 * kern/powerpc/ieee1275/startup.S: ... this.
19764 * conf/powerpc-ieee1275.rmk: Adjust for the above.
19765 * DISTLIST: Likewise.
19766
b497a269 19767 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
19768 grub/cpu/kernel.h. Add start label for consistency with other
19769 platforms. Add grub_prefix immediately after start. Add jump
19770 to the code after grub_prefix.
19771 * include/grub/powerpc/kernel.h: Provide valid values for
19772 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
19773
6e5a42fe 197742008-08-29 Bean <bean123ch@gmail.com>
19775
19776 * configure.ac: Change host_os to cygwin for mingw.
19777 (asprintf): New check for function.
19778
19779 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
19780 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
19781
19782 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
81a06771 19783 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
6e5a42fe 19784 sync, sleep and grub_util_get_disk_size for mingw.
19785
19786 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
19787 to get size in mingw.
19788 (open_device): Use flag O_BINARY if it's defined.
19789 (find_root_device): Add dummy code for mingw.
19790
19791 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
19792 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
19793 (get_scsi_disk_name): Return 0 for mingw.
19794
19795 * util/hostfs.c: #include <grub/util/misc.h>.
19796 (grub_hostfs_open): Use "rb" flag to open file, use
19797 grub_util_get_disk_size to get disk size for mingw.
19798
19799 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
19800 (asprintf): New function if HAVE_ASPRINTF is not set.
19801 (sync): New function for mingw.
19802 (sleep): Likewise.
19803 (grub_util_get_disk_size): Likewise.
19804
ab3f2673 198052008-08-28 Pavel Roskin <proski@gnu.org>
19806
19807 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
19808 kern/time.c.
19809
1c282483 198102008-08-28 Robert Millan <rmh@aybabtu.com>
19811
19812 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
19813
678e849c 198142008-08-28 Robert Millan <rmh@aybabtu.com>
19815
19816 Change find_grub_drive() syntax so it doesn't prevent it from
19817 detecting NULL names as errors.
19818
19819 * util/biosdisk.c (find_grub_drive): Move free slot search code
19820 from here ...
19821 (find_free_slot): ... to here.
19822 (read_device_map): Use find_free_slot() to search for free slots.
19823
965c75ca 198242008-08-27 Marco Gerards <marco@gnu.org>
19825
19826 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
19827 (scsi_mod_SOURCES): New variable.
19828 (scsi_mod_CFLAGS): Likewise
19829 (scsi_mod_LDFLAGS): Likewise.
19830
19831 * disk/scsi.c: New file.
19832
19833 * include/grub/scsi.h: Likewise.
19834
19835 * include/grub/scsicmd.h: Likewise.
19836
19837 * disk/ata.c: Include <grub/scsi.h>.
19838 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
19839 instead.
19840 (grub_ata_iterate): Skip ATAPI devices.
19841 (grub_ata_open): Only handle ATAPI devices.
19842 (struct grub_atapi_read): Removed.
19843 (grub_atapi_readsector): Likewise.
19844 (grub_ata_read): No longer handle ATAPI devices.
19845 (grub_ata_write): Likewise.
19846 (grub_atapi_iterate): New function.
19847 (grub_atapi_read): Likewise.
19848 (grub_atapi_write): Likewise.
19849 (grub_atapi_open): Likewise.
19850 (grub_atapi_close): Likewise.
19851 (grub_atapi_dev): New variable.
19852 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
19853 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
19854
19855 * include/grub/disk.h (enum grub_disk_dev_id): Add
19856 `GRUB_DISK_DEVICE_SCSI_ID'.
19857
c07ae501 198582008-08-26 Robert Millan <rmh@aybabtu.com>
19859
19860 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
19861 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
19862 descriptive.
19863
5ed20adc 198642008-08-23 Bean <bean123ch@gmail.com>
19865
19866 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
19867 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
19868 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
19869 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
19870 dm_nv.mod.
19871 (raid5rec_mod_SOURCES): New macro.
19872 (raid5rec_mod_CFLAGS): Likewise.
19873 (raid5rec_mod_LDFLAGS): Likewise.
19874 (raid6rec_mod_SOURCES): Likewise.
19875 (raid6rec_mod_CFLAGS): Likewise.
19876 (raid6rec_mod_LDFLAGS): Likewise.
19877 (mdraid_mod_SOURCES): Likewise.
19878 (mdraid_mod_CFLAGS): Likewise.
19879 (mdraid_mod_LDFLAGS): Likewise.
19880 (dm_nv_mod_SOURCES): Likewise.
19881 (dm_nv_mod_CFLAGS): Likewise.
19882 (dm_nv_mod_LDFLAGS): Likewise.
19883
19884 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
19885 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
19886 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
19887
19888 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
19889 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
19890
19891 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
19892
19893 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
19894
19895 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19896
19897 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19898
19899 * disk/raid5_recover.c: New file.
19900
19901 * disk/raid6_recover.c: Likewise.
19902
19903 * disk/mdraid_linux.c: Likewise.
19904
19905 * disk/dmraid_nvidia.c: Likewise.
19906
19907 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
19908 ULONG_MAX.
19909
19910 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
19911 calculate the size of raid device.
19912 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
19913 different layout of raid5.
19914 (grub_raid_scan_device): Remove code specific to mdraid.
19915 (grub_raid_list): New variable.
19916 (free_array): New function.
19917 (grub_raid_register): Likewise.
19918 (grub_raid_unregister): Likewise.
19919 (grub_raid_rescan): Likewise.
19920 (GRUB_MOD_INIT): Don't iterate device here.
19921 (GRUB_MOD_FINI): Use free_array to release resource.
19922
19923 * include/grub/raid.h: Remove macro and structure specific to mdraid.
19924 (grub_raid5_recover_func_t): New function variable type.
19925 (grub_raid6_recover_func_t): Likewise.
19926 (grub_raid5_recover_func): New variable.
19927 (grub_raid6_recover_func): Likewise.
19928 (grub_raid_register): New function.
19929 (grub_raid_unregister): Likewise.
19930 (grub_raid_rescan): Likewise.
19931 (grub_raid_block_xor): Likewise.
19932
19933 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
19934 (CMD_CRC): New macro.
19935 (part): Removed.
19936 (read_file): Handle device as well as file.
19937 (cmd_crc): New function.
19938 (fstest): Handle multiple disks.
19939 (options): Remove part, raw and long, add root and diskcount.
19940 (usage): Add crc, remove -p, -r, -l, add -r and -c.
dba3f844 19941 (main): Find the first non option entry and ignore subsequent options,
5ed20adc 19942 add handling for the new options, support multiple disks.
19943
19944 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
19945
29c18915 199462008-08-23 Bean <bean123ch@gmail.com>
19947
19948 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
19949
19950 * genfslist.sh: Ignore kernel.mod.
19951
19952 * genpartmaplist.sh: Likewise.
19953
8415f261 199542008-08-23 Robert Millan <rmh@aybabtu.com>
19955
19956 * util/getroot.c (find_root_device): Skip anything that starts with
19957 a dot, not just directories. This avoids things like /dev/.tmp.md0.
19958
d5a7dc5b 199592008-08-22 Felix Zielcke <fzielcke@z-51.de>
81a06771 19960
d5a7dc5b 19961 * util/update-grub.in (GRUB_GFXMODE): Export variable.
19962 * util/grub.d/00_header.in: Allow the administrator to change default
19963 gfxmode via ${GRUB_GFXMODE}.
19964
380cfbb4 199652008-08-21 Felix Zielcke <fzielcke@z-51.de>
19966
19967 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
19968
c9baafe7 199692008-08-21 Robert Millan <rmh@aybabtu.com>
19970
19971 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
19972 loader.
19973 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
19974 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
19975
e290bef2 199762008-08-20 Carles Pina i Estany <carles@pina.cat>
19977
19978 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
19979 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
19980
f9dbfc96 199812008-08-19 Robert Millan <rmh@aybabtu.com>
19982
19983 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
19984 (struct grub_virtual_screen): Remove `cursor_color'.
19985 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
19986 initialization.
19987 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
19988
dd6bd6ab 199892008-08-18 Robert Millan <rmh@aybabtu.com>
19990
19991 Unify (identical) linux_normal.c files.
19992 * loader/i386/efi/linux_normal.c: Move from here ...
19993 * loader/linux_normal.c: ... to here. Update all users.
19994 * loader/i386/pc/linux_normal.c: Delete. Update all users.
19995 * loader/i386/ieee1275/linux_normal.c: Likewise.
19996
7f42f83e 199972008-08-18 Robert Millan <rmh@aybabtu.com>
19998
19999 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
20000 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
20001 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
20002 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
20003 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
20004 New macros.
20005 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
20006 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
20007 (GRUB_LINUX_CL_END_OFFSET): ... to here.
20008 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
20009 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
20010 (GRUB_EFI_CL_END_OFFSET): Rename to ...
20011 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
20012 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
20013 Initialize `params->video_cursor_x' and `params->video_cursor_y'
20014 portably using grub_getxy().
20015 Replace `-EFI' with `-bzImage' in boot message.
20016
38487ddb 200172008-08-17 Robert Millan <rmh@aybabtu.com>
20018
20019 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
20020
deceb3ec 200212008-08-17 Robert Millan <rmh@aybabtu.com>
20022
20023 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
20024
20025 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
20026 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
20027 (grub_machine_mmap_iterate): New function declaration.
20028 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
20029 structure.
20030 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
20031 macros.
20032
20033 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
20034 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
20035 Move e820 parsing from here ...
20036 * kern/i386/pc/mmap.c: New file.
20037 (grub_machine_mmap_iterate): ... to here.
20038
20039 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
20040 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
20041 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
20042 (grub_available_iterate): Redeclare to return `void', and redeclare
20043 its hook to use grub_uint64_t as addr and size parameters, and rename
20044 to ...
20045 (grub_machine_mmap_iterate): ... this. Update all users.
20046
20047 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
20048 to make it more readable. Rename to ...
20049 (grub_machine_mmap_iterate): ... this.
20050
20051 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
20052 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
20053 (grub_multiboot): Allocate an extra region after the payload, and fill
20054 it with a Multiboot memory map. Adjust a.out loader to calculate size
20055 with the extra space.
20056 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
20057 with the extra space.
20058
f8aa0f43 200592008-08-17 Carles Pina i Estany <carles@pina.cat>
20060
9807deb9 20061 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
f8aa0f43 20062
605f5bb6 200632008-08-17 Felix Zielcke <fzielcke@z-51.de>
20064
20065 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
20066 mdate-sh to the list `find' searches for.
20067 * DISTLIST: Regenerated.
20068
210db6c6 200692008-08-16 Felix Zielcke <fzielcke@z-51.de>
20070
20071 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
20072 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
48cdbfd4 20073 genmoddep.awk, gensymlist.sh.in.
20074 (DISTDIRS): Add bus, docs, hook, lib.
210db6c6 20075 * DISTLIST: Regenerated.
48cdbfd4 20076 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
210db6c6 20077
1082b929 200782008-08-16 Robert Millan <rmh@aybabtu.com>
20079
20080 * disk/raid.c (grub_raid_init): Handle/report errors set by
20081 grub_device_iterate().
20082 * disk/lvm.c (grub_lvm_init): Likewise.
20083
42ce5170 200842008-08-15 Bean <bean123ch@gmail.com>
20085
20086 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
20087 and datehook.mod.
20088 (datetime_mod_SOURCES): New macro.
20089 (datetime_mod_CFLAGS): Likewise.
20090 (datetime_mod_LDFLAGS): Likewise.
20091 (date_mod_SOURCES): Likewise.
20092 (date_mod_CFLAGS): Likewise.
20093 (date_mod_LDFLAGS): Likewise.
20094 (datehook_mod_SOURCES): Likewise.
20095 (datehook_mod_CFLAGS): Likewise.
20096 (datehook_mod_LDFLAGS): Likewise.
20097
20098 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
20099 and datehook.mod.
20100 (datetime_mod_SOURCES): New macro.
20101 (datetime_mod_CFLAGS): Likewise.
20102 (datetime_mod_LDFLAGS): Likewise.
20103 (date_mod_SOURCES): Likewise.
20104 (date_mod_CFLAGS): Likewise.
20105 (date_mod_LDFLAGS): Likewise.
20106 (datehook_mod_SOURCES): Likewise.
20107 (datehook_mod_CFLAGS): Likewise.
20108 (datehook_mod_LDFLAGS): Likewise.
20109
20110 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
20111 and datehook.mod.
20112 (datetime_mod_SOURCES): New macro.
20113 (datetime_mod_CFLAGS): Likewise.
20114 (datetime_mod_LDFLAGS): Likewise.
20115 (date_mod_SOURCES): Likewise.
20116 (date_mod_CFLAGS): Likewise.
20117 (date_mod_LDFLAGS): Likewise.
20118 (datehook_mod_SOURCES): Likewise.
20119 (datehook_mod_CFLAGS): Likewise.
20120 (datehook_mod_LDFLAGS): Likewise.
20121
20122 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
20123 and datehook.mod.
20124 (datetime_mod_SOURCES): New macro.
20125 (datetime_mod_CFLAGS): Likewise.
20126 (datetime_mod_LDFLAGS): Likewise.
20127 (date_mod_SOURCES): Likewise.
20128 (date_mod_CFLAGS): Likewise.
20129 (date_mod_LDFLAGS): Likewise.
20130 (datehook_mod_SOURCES): Likewise.
20131 (datehook_mod_CFLAGS): Likewise.
20132 (datehook_mod_LDFLAGS): Likewise.
20133
20134 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
20135 and datehook.mod.
20136 (datetime_mod_SOURCES): New macro.
20137 (datetime_mod_CFLAGS): Likewise.
20138 (datetime_mod_LDFLAGS): Likewise.
20139 (date_mod_SOURCES): Likewise.
20140 (date_mod_CFLAGS): Likewise.
20141 (date_mod_LDFLAGS): Likewise.
20142 (datehook_mod_SOURCES): Likewise.
20143 (datehook_mod_CFLAGS): Likewise.
20144 (datehook_mod_LDFLAGS): Likewise.
20145
20146 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
20147
20148 * commands/date.c: New file.
20149
20150 * hook/datehook.c: Likewise.
20151
20152 * include/grub/lib/datetime.h: Likewise.
20153
20154 * include/grub/i386/cmos.h: Likewise.
20155
20156 * lib/datetime.c: Likewise.
20157
20158 * lib/i386/datetime.c: Likewise.
20159
20160 * lib/efi/datetime.c: Likewise.
20161
0e9242da 201622008-08-14 Robert Millan <rmh@aybabtu.com>
20163
20164 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
20165 (grub_mkelfimage_SOURCES): New variable.
20166 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
20167
20168 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
20169 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
20170 * conf/powerpc-ieee1275.rmk: Likewise.
20171 * conf/i386-ieee1275.rmk: Likewise.
20172
20173 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
20174 * kern/i386/coreboot/init.c: Likewise.
20175
20176 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
20177 with `<grub/cpu/kernel.h>'.
20178 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
20179 to ...
20180 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
20181 * kern/i386/coreboot/startup.S: Likewise.
20182
20183 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
20184 (GRUB_MOD_GAP): Remove.
20185 * include/grub/powerpc/kernel.h: New file.
20186 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
20187 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
20188 * include/grub/i386/kernel.h: New file.
20189 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
20190 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
20191 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
20192
20193 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
20194 `grub-mkelfimage'.
20195 Use --directory when invoking grub_mkimage.
20196
20197 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
20198 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
20199 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
20200 and GRUB_KERNEL_CPU_PREFIX.
20201
b86408f8 202022008-08-14 Felix Zielcke <fzielcke@z-51.de>
20203
d5e619ca 20204 * include/grub/err.h (grub_err_printf): New function prototype.
20205 * util/misc.c (grub_err_printf): New function.
20206 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
20207 grub_printf.
20208 * kern/err.c (grub_print_error): Use grub_err_printf.
b86408f8 20209
7161f0e0 202102008-08-13 Robert Millan <rmh@aybabtu.com>
20211
20212 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
20213
a1967522 202142008-08-13 Robert Millan <rmh@aybabtu.com>
20215
20216 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
20217 boot entry.
20218
371458b5 202192008-08-12 Robert Millan <rmh@aybabtu.com>
20220
20221 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
20222 of the relocation code from here ...
20223 (grub_multiboot): ... to here.
20224 (forward_relocator, backward_relocator): Move from here ...
20225 * kern/i386/loader.S (grub_multiboot_forward_relocator)
20226 (grub_multiboot_backward_relocator): ... to here.
20227 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
20228 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
20229 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
20230 (grub_multiboot_forward_relocator_end)
20231 (grub_multiboot_backward_relocator)
20232 (grub_multiboot_backward_relocator_end): New variables.
20233
05f9452b 202342008-08-12 Bean <bean123ch@gmail.com>
20235
20236 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
20237
20024ab0 202382008-08-11 Robert Millan <rmh@aybabtu.com>
20239
20240 * kern/i386/linuxbios/startup.S: Move from here ...
20241 * kern/i386/coreboot/startup.S: ... to here.
20242
20243 * kern/i386/linuxbios/init.c: Move from here ...
20244 * kern/i386/coreboot/init.c: ... to here.
20245
20246 * kern/i386/linuxbios/table.c: Move from here ...
20247 * kern/i386/coreboot/mmap.c: ... to here.
20248
20249 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
20250
e352e9cd 202512008-08-11 Robert Millan <rmh@aybabtu.com>
20252
20253 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
20254 errors. Leave it to the upper layer to handle them.
20255
2d05bc6a 202562008-08-09 Christian Franke <franke@computer.org>
20257
20258 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
20259 * conf/common.rmk: Install `grub-pe2elf' only if requested.
20260 Install `grub.d/10_windows' only on Cygwin.
20261 * configure.ac: Add subst of `target_os'.
20262 Check `target_os' also before setting TARGET_OBJ2ELF.
20263 Add `--enable-grub-pe2elf'.
20264
042bd419 202652008-08-08 Robert Millan <rmh@aybabtu.com>
20266
20267 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
20268 (grub_last_time): Change type to grub_uint64_t.
20269 (grub_disk_open): Migrate code from to using grub_get_time_ms().
20270 (grub_disk_close): Likewise.
20271
20272 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
20273 (run_menu): Migrate code from to using grub_get_time_ms().
20274
20275 * util/misc.c (grub_get_time_ms): New function.
20276
7f280db5 202772008-08-08 Marco Gerards <marco@gnu.org>
20278
20279 * disk/ata.c (grub_ata_regget): Change return type to
20280 `grub_uint8_t'.
20281 (grub_ata_regget2): Likewise.
20282 (grub_ata_wait_status): New function.
20283 (grub_ata_wait_busy): Removed function, updated all users to use
20284 `grub_ata_wait_status'.
20285 (grub_ata_wait_drq): Likewise.
20286 (grub_ata_cmd): New function.
20287 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
20288 error handling.
20289 (grub_ata_pio_write): Add error handling.
20290 (grub_atapi_identify): Likewise.
20291 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
20292 handling.
20293 (grub_ata_identify): Use `grub_ata_cmd' and improve error
20294 handling. Actually use the detected registers. Reorder the
20295 detection logic such that it is easier to read.
20296 (grub_ata_pciinit): Do not assign the same ID to each controller.
20297 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
20298 handling.
20299 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
20300
20301 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
20302
1fbc5e66 203032008-08-08 Marco Gerards <marco@gnu.org>
20304
20305 * NEWS: Update.
20306
819ce6c0 203072008-08-07 Bean <bean123ch@gmail.com>
20308
20309 * include/grub/x86_64/pci.h: New file.
20310
5c41d44d 203112008-08-07 Christian Franke <franke@computer.org>
20312
20313 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
20314 (TIMER2_GATE): Likewise.
20315 (grub_pit_wait): Add enable/disable of the timer2 gate
20316 bit of port 0x61. This fixes a possible infinite loop.
20317
5ebc275d 203182008-08-07 Bean <bean123ch@gmail.com>
20319
20320 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
20321 kern/i386/tsc.c and kern/i386/pit.c.
20322
20323 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
20324 x86_64 platform.
20325
20326 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
20327 <grub/i386/tsc.h>.
20328
20329 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
20330
e383b3d0 203312008-08-07 Bean <bean123ch@gmail.com>
20332
20333 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
20334
20335 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
20336
20337 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
20338 multiple inclusion. Add #include <grub/types.h>.
20339
1cbb58ac 203402008-08-06 Christian Franke <franke@computer.org>
20341
20342 * conf/common.rmk: Build and install `10_windows'.
20343 * util/grub.d/10_windows.in: New script.
20344
337f5a1e 203452008-08-06 Pavel Roskin <proski@gnu.org>
20346
20347 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
20348
057bc4ac 203492008-08-06 Robert Millan <rmh@aybabtu.com>
20350
20351 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
20352 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
20353
2b99f123 203542008-08-06 Bean <bean123ch@gmail.com>
20355
20356 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
20357 (grub_pxefs_fs_int): Remove dummy definition.
20358 (grub_pxefs_open): Use data->block_size to store the current block
20359 size setting.
20360 (grub_pxefs_read): Use block size stored in data->block_size. As the
20361 value of grub_pxe_blksize can be changed after the file is opened.
20362
9f0234cb 203632008-08-06 Bean <bean123ch@gmail.com>
20364
20365 * fs/i386/pc/pxe.c (curr_file): new variable.
20366 (grub_pxefs_open): Simply the handling of pxe file system. Don't
20367 require the dummy internal file system anymore.
20368 (grub_pxefs_read): Removed.
20369 (grub_pxefs_close): Likewise.
20370 (grub_pxefs_fs_int): Likewise.
20371 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
20372 connection when we switch file.
20373 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
20374
a55d42e0 203752008-08-06 Robert Millan <rmh@aybabtu.com>
20376
20377 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
20378 `halt.mod'.
20379 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
20380 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
20381
20382 * kern/i386/halt.c: New file.
20383 * kern/i386/reboot.c: Likewise.
20384 * include/grub/i386/reboot.h: Likewise.
20385 * include/grub/i386/halt.h: Likewise.
20386
20387 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
20388 Include `<grub/cpu/halt.h>'.
20389 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
20390 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
20391
20392 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
20393 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
20394 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
20395 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
20396 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
20397 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
20398 from here ...
20399 * include/grub/i386/at_keyboard.h: ... to here.
20400
24371d26 204012008-08-05 Robert Millan <rmh@aybabtu.com>
20402
20403 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
20404 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
20405 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
20406 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
20407 `kern/generic/millisleep.c'.
20408
20409 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
20410 instead of grub_get_rtc().
20411 (grub_tsc_init): Initialize `tsc_boot_time'.
20412
20413 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
20414 (grub_machine_init): Use grub_tsc_init() rather than
20415 installing an RTC-based handler via grub_install_get_time_ms().
20416
20417 * kern/i386/pit.c: New file.
20418 * include/grub/i386/pit.h: Likewise.
20419
9e7007b3 204202008-08-05 Bean <bean123ch@gmail.com>
20421
20422 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
20423
20424 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
20425 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
20426 (pxe_mod_SOURCES): New macro.
20427 (pxe_mod_CFLAGS): Likewise.
20428 (pxe_mod_LDFLAGS): Likewise.
20429 (pxecmd_mod_SOURCES): Likewise.
20430 (pxecmd_mod_CFLAGS): Likewise.
20431 (pxecmd_mod_LDFLAGS): Likewise.
20432
20433 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
20434 (grub_pxe_call): Likewise.
20435
20436 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
20437
20438 * commands/i386/pc/pxecmd.c: New file.
20439
9f0234cb 20440 * fs/i386/pc/pxe.c: Likewise.
9e7007b3 20441
20442 * include/grub/i386/pc/pxe.h: Likewise.
20443
6977d49f 204442008-08-05 Bean <bean123ch@gmail.com>
20445
20446 * util/console.c (grub_console_cur_color): New variable.
20447 (grub_console_standard_color): Likewise.
20448 (grub_console_normal_color): Likewise.
20449 (grub_console_highlight_color): Likewise.
20450 (color_map): Likewise.
20451 (use_color): Likewise.
20452 (NUM_COLORS): New macro.
20453 (grub_ncurses_setcolorstate): Handle color properly.
20454 (grub_ncurses_setcolor): Don't change color here, just remember the
20455 settings, color will be set in grub_ncurses_setcolorstate.
20456 (grub_ncurses_getcolor): New function.
20457 (grub_ncurses_init): Initialize color pairs.
20458 (grub_ncurses_term): New member grub_ncurses_getcolor.
20459
9c2ff3ee 204602008-08-05 Colin D Bennett <colin@gibibit.com>
337f5a1e 20461
9c2ff3ee 20462 High resolution timer support. Implemented for x86 CPUs using TSC.
20463 Extracted generic grub_millisleep() so it's linked in only as needed.
20464 This requires a Pentium compatible CPU; if the RDTSC instruction is
20465 not supported, then it falls back on the generic grub_get_time_ms()
20466 implementation that uses the machine's RTC.
20467
20468 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
20469 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
20470 `kern/generic/millisleep.c'.
20471
20472 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
20473 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
20474
20475 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
20476 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
20477
20478 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
20479
20480 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
20481 `kern/generic/millisleep.c'.
20482
20483 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
20484
20485 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
20486
20487 * kern/generic/rtc_get_time_ms.c: New file.
20488
20489 * kern/generic/millisleep.c: New file.
337f5a1e 20490
9c2ff3ee 20491 * kern/misc.c: Don't include
20492 <kern/time.h> anymore.
20493 (grub_millisleep_generic): Removed.
20494
20495 * commands/sleep.c (grub_interruptible_millisleep): Uses
20496 grub_get_time_ms() instead of grub_get_rtc().
20497
20498 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
20499 function.
20500 (grub_cpu_is_cpuid_supported): New inline function.
20501 (grub_cpu_is_tsc_supported): New inline function.
20502 (grub_tsc_init): New function prototype.
20503 (grub_tsc_get_time_ms): New function prototype.
20504
20505 * kern/i386/tsc.c (grub_get_time_ms): New file.
20506
20507 * include/grub/time.h: Include <grub/types.h.
20508 (grub_millisleep_generic): Removed.
20509 (grub_get_time_ms): New prototype.
20510 (grub_install_get_time_ms): New prototype.
20511 (grub_rtc_get_time_ms): New prototype.
20512
20513 * kern/time.c (grub_get_time_ms): New function.
20514 (grub_install_get_time_ms): New function.
20515
20516 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
20517 <grub/time.h> anymore.
20518 (grub_millisleep): Removed.
20519 (grub_machine_init): Call grub_tsc_init.
20520
20521 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
20522 get_time_ms() implementation.
20523
20524 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
20525 (ieee1275_get_time_ms): New function.
20526 (grub_machine_init): Install get_time_ms() implementation.
20527
20528 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
20529 (grub_machine_init): Call grub_tsc_init().
20530 (grub_millisleep): Removed.
bf06a93f 20531
9c2ff3ee 20532 * kern/ieee1275/init.c (grub_millisleep): Removed.
20533 (grub_machine_init): Install ieee1275_get_time_ms()
20534 implementation.
20535 (ieee1275_get_time_ms): New function.
20536 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
20537 real work.
20538
9ec92aaf 205392008-08-05 Marco Gerards <marco@gnu.org>
20540
20541 * disk/ata.c: Include <grub/pci.h>.
20542 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
20543 (grub_ata_initialize): Rewritten.
20544 (grub_ata_device_initialize): New function.
20545
8d23f507 205462008-08-04 Pavel Roskin <proski@gnu.org>
20547
20548 * kern/main.c: Include grub/mm.h.
20549
5e15ee3d 205502008-08-04 Robert Millan <rmh@aybabtu.com>
20551
20552 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
20553 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
20554 corruption problem).
20555
a9053f8f 205562008-08-04 Robert Millan <rmh@aybabtu.com>
20557
20558 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
20559 warnings introduced in my last commit.
20560
dd19c7d7 205612008-08-03 Robert Millan <rmh@aybabtu.com>
20562
20563 Make PCI available on all i386 architectures.
20564
20565 * include/grub/i386/pc/pci.h: Move from here ...
20566 * include/grub/i386/pci.h: ... to here.
20567
20568 * include/grub/i386/pc/pci.h: Remove.
20569 * include/grub/i386/efi/pci.h: Remove.
20570 * include/grub/x86_64/efi/pci.h: Remove.
20571
20572 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
20573 `<grub/cpu/pci.h>'.
20574
20575 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
20576 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
20577 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
20578
20579 * conf/i386-ieee1275.rmk: Likewise.
20580
e14a6184 205812008-08-03 Robert Millan <rmh@aybabtu.com>
20582
20583 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
20584 (grub_console_setcursor): Make it possible to set cursor off.
20585
52768e37 205862008-08-03 Robert Millan <rmh@aybabtu.com>
20587
20588 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
20589 of modules instead of assuming which platform provides what.
20590 * util/update-grub.in: Likewise.
20591
2d52f57f 205922008-08-03 Robert Millan <rmh@aybabtu.com>
20593
20594 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
20595 instead of `grub_install_dos_part' to determine whether a drive needs
20596 to be prepended to prefix (`grub_install_dos_part' is not reliable,
825aa57a 20597 because it can be overridden when loading GRUB via Multiboot).
2d52f57f 20598
2a5cd121 205992008-08-02 Robert Millan <rmh@aybabtu.com>
20600
20601 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
20602
93808428 206032008-08-02 Robert Millan <rmh@aybabtu.com>
20604
20605 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
20606 of informational grub_dprintf() calls.
20607
3bd0a12a 206082008-08-02 Robert Millan <rmh@aybabtu.com>
20609
20610 * disk/memdisk.c (memdisk_size): Don't initialize.
20611 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
20612
20613 * include/grub/i386/pc/kernel.h
20614 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
20615 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
20616 (grub_memdisk_image_size, grub_arch_memdisk_addr)
20617 (grub_arch_memdisk_size): Remove.
20618
20619 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
20620 field (was only used to transfer a constant). Add `type' field to
20621 support multiple module types.
20622 (grub_module_iterate): New function.
20623
20624 * kern/device.c (grub_device_open): Do not hide error messages
20625 when grub_disk_open() fails. Use grub_print_error() instead.
20626
20627 * kern/i386/pc/init.c (grub_arch_modules_addr)
20628 (grub_arch_memdisk_size): Remove functions.
20629 (grub_arch_modules_addr): Return the module address in high memory
20630 (now that it isn't copied anymore).
20631
20632 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
20633 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
20634 decompression routine (grub_total_module_size already includes that
20635 now). Don't copy modules back to low memory.
20636
20637 * kern/main.c: Include `<grub/mm.h>'.
20638 (grub_load_modules): Split out (and use) ...
20639 (grub_module_iterate): ... this function, which iterates through
20640 module objects and runs a hook.
20641 Comment out grub_mm_init_region() call, as it would cause non-ELF
20642 modules to be overwritten.
20643
20644 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
20645 the memdisk image in its own region, make it part of the module list.
20646 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
20647 (main): Parse --memdisk|-m option, and pass user-provided path as
20648 parameter to generate_image().
20649 (add_segments): Pass `memdisk_path' down to load_modules().
20650 (load_modules): Embed memdisk image in module section when requested.
20651 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
20652 `header.type' instead of `header.offset'.
20653
20654 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
20655 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
20656 (memdisk_mod_LDFLAGS): New variables.
20657 * conf/i386-coreboot.rmk: Likewise.
20658 * conf/i386-ieee1275.rmk: Likewise.
20659
a927cc73 206602008-08-02 Robert Millan <rmh@aybabtu.com>
20661
20662 * loader/i386/pc/multiboot.c (playground, forward_relocator)
20663 (backward_relocator): New variables. Used to allocate and relocate
20664 the payload, respectively.
20665 (grub_multiboot_load_elf32): Load into heap instead of requested
825aa57a 20666 address, install the appropriate relocator code in each bound of
a927cc73 20667 the payload, and set the entry point such that
20668 grub_multiboot_real_boot() will jump to one of them.
20669
20670 * kern/i386/loader.S (grub_multiboot_payload_size)
20671 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
20672 (grub_multiboot_payload_entry_offset): New variables.
20673 (grub_multiboot_real_boot): Set cpu context to what the relocator
20674 expects, and jump to the relocator instead of the payload.
20675
20676 * include/grub/i386/loader.h (grub_multiboot_payload_size)
20677 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
20678 (grub_multiboot_payload_entry_offset): Export.
20679
b15d8a0c 206802008-08-01 Bean <bean123ch@gmail.com>
20681
20682 * normal/menu_entry.c (editor_getline): Don't return the original
20683 string as result, as it will be released by lexer once it has done
20684 using it.
20685
cdfb3d22 206862008-08-01 Robert Millan <rmh@aybabtu.com>
20687
20688 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
20689 within menuentries, not before them.
20690 util/grub.d/10_hurd.in: Likewise.
20691
9175e93d 206922008-08-01 Bean <bean123ch@gmail.com>
20693
20694 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
20695 (bufio_mod_SOURCES): New macro.
20696 (bufio_mod_CFLAGS): Likewise.
20697 (bufio_mod_LDFLAGS): Likewise.
20698
20699 * include/grub/bufio.h: New file.
20700
20701 * io/bufio.c: Likewise.
20702
20703 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
20704 (grub_video_reader_png): Use grub_buffile_open to open file.
20705
20706 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
20707 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
20708
20709 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
20710 (grub_video_reader_tga): Use grub_buffile_open to open file.
20711
20712 * font/manager.c: Include <grub/bufio.h>.
20713 (add_font): Use grub_buffile_open to open file.
20714
3d8383e7 207152008-07-31 Robert Millan <rmh@aybabtu.com>
20716
20717 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
20718 ELF segments, use a macro for arbitrarily accessing any of them instead
20719 of preparing a pointer that allows access to one at a time.
20720 (grub_multiboot_load_elf64): Likewise.
20721
16e641b6 207222008-07-31 Bean <bean123ch@gmail.com>
20723
20724 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
20725 GRUB_KERNEL_MACHINE_DATA_END.
20726
59198b72 207272008-07-30 Robert Millan <rmh@aybabtu.com>
20728
20729 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
20730 Increase from 0x50 to 0x60.
20731 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
20732 use UUIDs to identify the root drive for them. If that's not
20733 possible, abort.
20734 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
20735 check, for cross-disk installs.
20736
ae88bca3 207372008-07-30 Robert Millan <rmh@aybabtu.com>
20738
20739 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
20740 is non-empty, use it to set the `prefix' environment variable instead
20741 of the usual approach.
20742 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
20743 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
20744 environment variable instead of dummy make_install_device().
20745
20746 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
20747 (start): Insert a data section, with `grub_prefix' variable.
825aa57a 20748 * kern/i386/linuxbios/startup.S: Likewise.
ae88bca3 20749
20750 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
20751 New variable reference.
20752 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
20753 New macro. Defines offset of `grub_prefix' within startup.S (relative
20754 to `start').
20755 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
20756 section within startup.S (relative to `start').
20757 * include/grub/i386/coreboot/kernel.h: Likewise.
20758
20759 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
20760 Overwrite grub_prefix with its contents, at the beginning of the
20761 first segment.
20762 (main): Understand -p|--prefix.
20763
14f41dd1 207642008-07-30 Robert Millan <rmh@aybabtu.com>
20765
20766 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
20767
4ca049a3 207682008-07-30 Robert Millan <rmh@aybabtu.com>
20769
20770 * term/i386/pc/vga_text.c (grub_console_cls): Use
20771 grub_console_gotoxy() to go back to beginning of the screen.
20772 Found by Patrick Georgi <patrick.georgi@coresystems.de>
20773
2921d337 207742008-07-29 Christian Franke <franke@computer.org>
20775
20776 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
20777 Add conversion of emulated mount points on Cygwin.
20778
b609876d 207792008-07-29 Christian Franke <franke@computer.org>
20780
20781 * util/update-grub.in: Add a check for admin
20782 group on Cygwin.
20783 Remove old `grub.cfg.new' before creation.
20784 Add `-f' to `mv' to handle the different filesystem
20785 semantics of Windows.
20786
e93e4679 207872008-07-29 Bean <bean123ch@gmail.com>
20788
20789 * normal/main.c (get_line): Fix buffer overflow bug.
20790
41694fd0 207912008-07-28 Robert Millan <rmh@aybabtu.com>
20792
20793 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
20794 (struct grub_apple_header): New struct. Describes the layout of
20795 the partmap header.
20796 (apple_partition_map_iterate): Check the header magic as well as the
20797 partition magic (which was already being checked).
20798
cfd0b4e6 207992008-07-28 Pavel Roskin <proski@gnu.org>
20800
20801 * genmk.rb: Add a warning to the beginning of the output that
20802 it's a generated file and should not be edited.
20803
93cce016 208042008-07-28 Robert Millan <rmh@aybabtu.com>
20805
20806 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
20807 with the same number are found, just use issue a warning with
20808 grub_dprintf(), as this error has been reported to be non-fatal.
c298def0 20809
cd1df915 208102008-07-27 Robert Millan <rmh@aybabtu.com>
20811
20812 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
20813 information.
20814
b70a8427 208152008-07-27 Bean <bean123ch@gmail.com>
20816
20817 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
20818 (grub_fat_find_dir): Ignore case when comparing filename.
20819
8f5e379f 208202008-07-27 Bean <bean123ch@gmail.com>
20821
20822 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
20823 smallino, as it's more descriptive, and i8count can be confused with
20824 the other field count.
20825 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
20826 inode type.
20827
a85cd5a0 208282008-07-27 Bean <bean123ch@gmail.com>
20829
20830 * commands/crc.c: New file.
20831
20832 * lib/crc.c: Likewise.
20833
20834 * include/grub/lib/crc.h: Likewise.
20835
20836 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
20837
20838 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
20839 (hexdump): Move this function to ...
20840
20841 * lib/hexdump.c: ... here.
20842
20843 * include/grub/hexdump.h: Renamed to ...
20844
20845 * include/grub/lib/hexdump.h: ... this.
20846
20847 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
20848
20849 * util/grub-editenv.c: Likewise.
20850
20851 * include/envblk.h: Renamed to ...
20852
20853 * include/lib/envblk.h: ... this.
20854
20855 * util/envblk.c: Renamed to ...
20856
20857 * lib/envblk.c: ... this.
20858
20859 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
20860 lib/hexdump.c.
20861 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
20862 (pkglib_MODULES): Add crc.mod.
20863 (hexdump_mod_SOURCES): Add lib/hexdump.c.
20864 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
20865 (crc_mod_SOURCES): New macro.
20866 (crc_mod_CFLAGS): Likewise.
20867 (crc_mod_LDFLAGS): Likewise.
20868
20869 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
20870
20871 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
20872
20873 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
20874
20875 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
20876
20877 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
20878
c298def0 208792008-07-27 Felix Zielcke <fzielcke@z-51.de>
8749e9e5 20880
20881 * commands/help.c: Include <grub/term.h>.
20882 (TERM_WIDTH): Removed. Updated all users.
20883
cc349fb3 208842008-07-27 Pavel Roskin <proski@gnu.org>
20885
20886 * util/getroot.c (find_root_device): Rephrase a comment to avoid
20887 spurious warnings about a comment within a comment.
20888
9051607e 208892008-07-25 Robert Millan <rmh@aybabtu.com>
20890
20891 * util/getroot.c (find_root_device): Skip devices that match
20892 /dev/dm-[0-9]. This lets the real device be found for any type of
20893 abstraction (LVM, EVMS, RAID..).
20894 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
20895 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
20896 device is found first, find_root_device() will now skip it.
20897
01453bfc 208982008-07-24 Pavel Roskin <proski@gnu.org>
20899
20900 * include/grub/types.h: Use __builtin_bswap32() and
20901 __builtin_bswap64() with gcc 4.3 and newer.
20902
6af9849f 209032008-07-24 Christian Franke <franke@computer.org>
20904
3a0fa256 20905 * util/i386/pc/grub-install.in: If `--debug' is specified,
20906 pass `--verbose' to grub-setup.
20907 Abort script if make_system_path_relative_to_its_root() fails.
20908
7810e747 209092008-07-24 Bean <bean123ch@gmail.com>
20910
20911 * configure.ac: Fixed a bug caused by the previous cygwin patch,
20912 variable `target_platform' should be `platform'.
20913
42290e17 209142008-07-24 Bean <bean123ch@gmail.com>
20915
51cc5193 20916 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
42290e17 20917 (grub_png_init_fixed_block): New function.
20918 (grub_png_decode_image_data): Handle fixed huffman code compression.
20919
2a8a80e4 209202008-07-24 Bean <bean123ch@gmail.com>
20921
20922 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
20923 (grub_pe2elf_SOURCES): New macro.
20924 (CLEANFILES): Add grub-pe2elf.
20925
20926 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
20927 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
20928 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
20929 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
20930 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
20931 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
20932 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
20933 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
20934 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
20935 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
20936 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
20937 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
20938 (GRUB_PE32_DT_FUNCTION): Likewise.
20939 (GRUB_PE32_REL_I386_DIR32): Likewise.
20940 (GRUB_PE32_REL_I386_REL32): Likewise.
20941 (grub_pe32_symbol): New structure.
20942 (grub_pe32_reloc): Likewise.
20943
20944 * util/grub-pe2elf.c: New file.
20945
20946 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
20947 start symbol in non pc platform.
20948
20949 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
20950
20951 The following patches are from Christian Franke.
20952
20953 * include/grub/dl.h: Remove .previous, gas supports this only
20954 for ELF format.
20955
20956 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
20957 Remove .type, gas supports this only for ELF format.
20958
20959 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
20960 nullbytes in symbol table. This fixes an infinite loop if table is
20961 zero filled.
20962
20963 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
20964 TARGET_IMG_LDFLAGS and EXEEXT.
20965
20966 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
20967 TARGET_IMG_LDFLAGS_AC.
20968 (grub_CHECK_STACK_ARG_PROBE): New function.
20969
20970 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
20971
20972 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
20973
20974 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
20975 to set TARGET_IMG_LD* accordingly.
20976 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
20977 Add call to grub_CHECK_STACK_ARG_PROBE.
20978 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
20979
20980 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
20981
20982 * genmk.rb: Add EXEEXT to CLEANFILES.
20983
12ccdb75 209842008-07-23 Robert Millan <rmh@aybabtu.com>
20985
20986 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
20987 define the codes for arrows and lines used for the menu).
20988 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
20989 as well.
20990
20991 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
20992 fonts, because the latter are too slow.
20993
18eeaf04 209942008-07-21 Bean <bean123ch@gmail.com>
20995
20996 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
20997 a20. Run keyboard test last, as it will cause macbook to halt.
20998
b095e2ad 209992008-07-18 Pavel Roskin <proski@gnu.org>
21000
21001 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
21002 load foreign architecture modules correctly anyway. Keep
21003 support for loading host architecture modules, whether we
21004 compile them or not.
21005
737feb35 210062008-07-17 Pavel Roskin <proski@gnu.org>
21007
3f4ce737 21008 * configure.ac: Use -m32 or -m64 regardless of whether we had to
21009 change target_cpu. The compiler default can mismatch target_cpu
21010 in any case.
21011
4ad2d049 21012 * disk/efi/efidisk.c: Fix format warnings on x86_64.
21013 * kern/efi/efi.c: Likewise.
21014
f6130a12 21015 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
21016 target compiler is functional.
21017 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
21018 are set up.
21019
58393a2d 21020 * configure.ac: Default to efi platform for x86_64-apple. Allow
21021 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
21022 adjustments from the rest, only do them if target is not
21023 explicitly given. Merge other adjustments with the final sanity
21024 check. Remove an extraneous check for supported CPU. Be
21025 specific which CPU and which platform is not supported.
21026
737feb35 21027 * configure.ac: Default to pc platform for x86_64.
21028
546f966a 210292008-07-17 Robert Millan <rmh@aybabtu.com>
21030
21031 Partial LinuxBIOS -> Coreboot rename.
21032
21033 * conf/i386-linuxbios.rmk: Renamed to ...
21034 * conf/i386-coreboot.rmk: ... this.
21035 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
21036 * configure.ac: Accept "coreboot" as input platform (but maintain
21037 compatibility with "linuxbios").
21038 * include/grub/i386/linuxbios: Renamed to ...
21039 * include/grub/i386/coreboot: ... this.
21040
20011694 210412008-07-17 Bean <bean123ch@gmail.com>
21042
21043 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
c11f6d16 21044 (appleldr_mod_SOURCE): New variable.
20011694 21045 (appleldr_mod_CFLAGS): Likewise.
21046 (appleldr_mod_LDFLAGS): Likewise.
21047 (pci_mod_SOURCES): Likewise.
21048 (pci_mod_CFLAGS): Likewise.
21049 (pci_mod_LDFLAGS): Likewise.
21050 (lspci_mod_SOURCES): Likewise.
21051 (lspci_mod_CFLAGS): Likewise.
21052 (lspci_mod_LDFLAGS): Likewise.
21053
21054 * conf/x86_64-efi.rmk: New file.
21055
21056 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
21057 macro.
21058 (grub_efidisk_write): Likewise.
21059
21060 * include/efi/api.h (efi_call_0): New macro.
21061 (efi_call_1): Likewise.
21062 (efi_call_2): Likewise.
21063 (efi_call_3): Likewise.
21064 (efi_call_4): Likewise.
21065 (efi_call_5): Likewise.
21066 (efi_call_6): Likewise.
21067
21068 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
21069 grub_rescue_cmd_chainloader.
21070
21071 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
21072 (grub_pe32_optional_header): Change some fields based on i386 or
21073 x86_64 platform.
21074 (GRUB_PE32_PE32_MAGIC): Likewise.
21075
21076 * include/grub/efi/uga_draw.h: New file.
21077
21078 * include/grub/elf.h (STN_ABS): New constant.
21079 (R_X86_64_NONE): Relocation constant for x86_64.
21080 (R_X86_64_64): Likewise.
21081 (R_X86_64_PC32): Likewise.
21082 (R_X86_64_GOT32): Likewise.
21083 (R_X86_64_PLT32): Likewise.
21084 (R_X86_64_COPY): Likewise.
21085 (R_X86_64_GLOB_DAT): Likewise.
21086 (R_X86_64_JUMP_SLOT): Likewise.
21087 (R_X86_64_RELATIVE): Likewise.
21088 (R_X86_64_GOTPCREL): Likewise.
21089 (R_X86_64_32): Likewise.
21090 (R_X86_64_32S): Likewise.
21091 (R_X86_64_16): Likewise.
21092 (R_X86_64_PC16): Likewise.
21093 (R_X86_64_8): Likewise.
21094 (R_X86_64_PC8): Likewise.
21095
21096 * include/grub/i386/efi/pci.h: New file.
21097
21098 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
21099 Change it value based on platform.
21100 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
21101 (GRUB_E820_RAM): Likewise.
21102 (GRUB_E820_RESERVED): Likewise.
21103 (GRUB_E820_ACPI): Likewise.
21104 (GRUB_E820_NVS): Likewise.
21105 (GRUB_E820_EXEC_CODE): Likewise.
21106 (GRUB_E820_MAX_ENTRY): Likewise.
21107 (grub_e820_mmap): New structure.
21108 (linux_kernel_header): Change the efi field according to different
21109 kernel version, also field from linux_kernel_header.
21110
21111 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
21112
21113 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
21114 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
21115 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
21116 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
21117 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
21118 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
21119 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
21120 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
21121 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
21122 (GRUB_PCI_ADDR_IO_MASK): Likewise.
21123
21124 * include/grub/x86_64/efi/kernel.h: New file.
21125
21126 * include/grub/x86_64/efi/loader.h: Likewise.
21127
21128 * include/grub/x86_64/efi/machine.h: Likewise.
21129
21130 * include/grub/x86_64/efi/pci.h: Likewise.
21131
21132 * include/grub/x86_64/efi/time.h: Likewise.
21133
21134 * include/grub/x86_64/linux.h: Likewise.
21135
21136 * include/grub/x86_64/setjmp.h: Likewise.
21137
21138 * include/grub/x86_64/time.h: Likewise.
21139
21140 * include/grub/x86_64/types.h: Likewise.
21141
21142 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
21143 GRUB_TARGET_SIZEOF_VOID_P.
21144
21145 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
21146 (grub_efi_locate_handle): Likewise.
21147 (grub_efi_open_protocol): Likewise.
21148 (grub_efi_set_text_mode): Likewise.
21149 (grub_efi_stall): Likewise.
21150 (grub_exit): Likewise.
21151 (grub_reboot): Likewise.
21152 (grub_halt): Likewise.
21153 (grub_efi_exit_boot_services): Likewise.
21154 (grub_get_rtc): Likewise.
21155
21156 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
21157 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
21158 (grub_efi_allocate_pages): Wrap efi calls.
21159 (grub_efi_free_pages): Wrap efi calls.
21160 (grub_efi_get_memory_map): Wrap efi calls.
21161
21162 * kern/x86_64/dl.c: New file.
21163
21164 * kern/x86_64/efi/callwrap.S: Likewise.
21165
21166 * kern/x86_64/efi/startup.S: Likewise.
21167
21168 * loader/efi/appleloader.c: Likewise.
21169
21170 * loader/efi/chainloader.c (cmdline): New variable.
21171 (grub_chainloader_unload): Wrap efi calls.
21172 (grub_chainloader_boot): Likewise.
21173 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
21174 command line.
21175
21176 * loader/efi/chainloader_normal.c (chainloader_command):
21177 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
21178 command line.
21179
21180 * loader/i386/efi/linux.c (allocate_pages): Change allocation
21181 method.
21182 (grub_e820_add_region): New function.
21183 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
21184 booting.
21185 (grub_find_video_card): New function.
21186 (grub_linux_setup_video): New function.
21187 (grub_rescue_cmd_linux): Probe for video information.
21188
21189 * normal/x86_64/setjmp.S: New file.
21190
21191 * term/efi/console.c (map_char): New function.
21192 (grub_console_putchar): Map unicode char.
21193 (grub_console_checkkey): Wrap efi calls.
21194 (grub_console_getkey): Likewise.
21195 (grub_console_getwh): Likewise.
21196 (grub_console_gotoxy): Likewise.
21197 (grub_console_cls): Likewise.
21198 (grub_console_setcolorstate): Likewise.
21199 (grub_console_setcursor): Likewise.
21200
21201 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
21202
59652a20 212032008-07-16 Pavel Roskin <proski@gnu.org>
21204
ef294055 21205 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
21206 format strings.
21207
59652a20 21208 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
21209 pointer, not an integer. This fixes a warning and prevents
21210 precision loss on 64-bit systems.
21211 (relocate_addresses): Remove unneeded cast.
21212
afc3b5d7 212132008-07-15 Pavel Roskin <proski@gnu.org>
21214
506b2b3e 21215 * kern/i386/ieee1275/init.c: Include grub/cache.h.
21216
62ead89c 21217 * term/ieee1275/ofconsole.c: Disable code unused on i386.
21218
c4cd51d7 21219 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
21220 Fix comparison between signed and unsigned.
21221
0d3d8f28 21222 * include/grub/i386/ieee1275/console.h: Declare
21223 grub_console_init() and grub_console_fini().
21224
8804b286 21225 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
21226 It's empty and unused.
21227
ee01cf35 21228 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
21229 beginning to avoid warnings with some compilers.
21230
afc3b5d7 21231 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
21232 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
21233
e4e8eaa5 212342008-07-14 Pavel Roskin <proski@gnu.org>
21235
407aceb4 21236 * kern/env.c (grub_register_variable_hook): Don't copy empty
21237 string, it leaks memory. Pass "" to grub_env_set(), it should
21238 handle constant strings.
21239
e4e8eaa5 21240 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
21241 * commands/cmp.c (grub_cmd_cmp): Likewise.
21242 * kern/dl.c (grub_dl_flush_cache): Likewise.
21243 (grub_dl_load_core): Likewise.
21244 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
21245 (grub_elf64_load_phdrs): Likewise.
21246
d4e2dad3 212472008-07-13 Pavel Roskin <proski@gnu.org>
21248
21249 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
21250 between signed and unsigned.
21251 (LzmaEnc_Finish): Fix warning about an unused parameter.
21252
aa24b516 212532008-07-13 Bean <bean123ch@gmail.com>
21254
21255 * Makefile.in (enable_lzo): New rule.
21256
21257 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
21258
21259 * configure.ac (ENABLE_LZO): New option --enable-lzo.
21260
21261 * boot/i386/pc/lnxboot.S: #include <config.h>.
21262
21263 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
fe987087 21264 its value according to the compression algorithm used, lzo or lzma.
aa24b516 21265
21266 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
21267 compression algorithm according to configure macro.
21268
21269 * kern/i386/pc/startup.S (codestart): Likewise.
21270
21271 * kern/i386/pc/lzma_decode.S: New file.
21272
21273 * include/grub/lib/LzFind.h: Likewise.
21274
21275 * include/grub/lib/LzHash.h: Likewise.
21276
21277 * include/grub/lib/LzmaDec.h: Likewise.
21278
21279 * include/grub/lib/LzmaEnc.h: Likewise.
21280
21281 * include/grub/lib/LzmaTypes.h: Likewise.
21282
21283 * lib/LzFind.c: Likewise.
21284
21285 * lib/LzmaDec.c: Likewise.
21286
21287 * lib/LzmaEnc.c: Likewise.
21288
4ae821ac 212892008-07-13 Bean <bean123ch@gmail.com>
21290
21291 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
21292 (grub_ext4_extent_header): New structure.
21293 (grub_ext4_extent): Likewise.
21294 (grub_ext4_extent_idx): Likewise.
21295 (grub_ext4_find_leaf): New function.
21296 (grub_ext2_read_block): Handle extents.
21297
9a745147 212982008-07-12 Robert Millan <rmh@aybabtu.com>
21299
21300 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
21301
d49a4cf6 213022008-07-11 Robert Millan <rmh@aybabtu.com>
21303
21304 * util/grub.d/40_custom.in: New file. Example on how to add custom
21305 entries to /etc/grub.d.
21306 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
21307 40_custom (implicitly, by merging all the grub.d rules).
21308
947414b4 213092008-07-11 Pavel Roskin <proski@gnu.org>
21310
0059cf6f 21311 * commands/read.c (grub_getline): Fix invalid memory access.
21312 Don't add newline to the variable value.
21313
947414b4 21314 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
21315 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
21316 (serial_hw_get_port): Check validity of the port number.
21317 (grub_cmd_serial): Check return value of serial_hw_get_port().
21318
62a02d00 213192008-07-07 Pavel Roskin <proski@gnu.org>
21320
21321 * boot/i386/pc/diskboot.S (notification_string): Replace
21322 "Loading kernel" with just "loading". This is shorter, less
21323 confusing and saves a few bytes for possible future changes.
21324
3e5581b0 213252008-07-05 Pavel Roskin <proski@gnu.org>
21326
ea387a48 21327 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
21328 size for ATAPI devices, they are undefined. Output sector
21329 number in decimal form.
21330
3e5581b0 21331 * disk/ata.c: Use named constants for status bits.
21332
fdecb8fd 213332008-07-04 Pavel Roskin <proski@gnu.org>
21334
bcd35b90 21335 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
21336 grub_addr_t before casting it to the void pointer to fix a
21337 warning. Non-addressable regions are discarded earlier.
21338 (grub_arch_modules_addr): Cast _end to grub_addr_t.
21339 * kern/i386/linuxbios/table.c: Include grub/misc.h.
21340 (check_signature): Don't shadow table_header.
21341 (grub_linuxbios_table_iterate): Cast numeric constants to
21342 grub_linuxbios_table_header_t.
21343 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
21344 grub_stop().
21345
af58ab3d 21346 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
21347 prevent warnings.
21348
1759aa57 21349 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
21350 pointer, which can cause warnings. Support 64-bit addresses.
21351
fdecb8fd 21352 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
21353 of sizeof(long). This fixes PowerPC image generation on x86_64.
21354
8516d2a8 213552008-07-04 Robert Millan <rmh@aybabtu.com>
21356
21357 This fixes a performance issue when pc & gpt partmap iterators
21358 didn't abort iteration even after our hook found what it was
fe987087 21359 looking for (often causing expensive probes of non-existent drives).
8516d2a8 21360
21361 Some callers relied on previous buggy behaviour, since they would
34c44600 21362 raise an error when their own hooks caused early abortion of its
8516d2a8 21363 iteration.
21364
21365 * kern/device.c (grub_device_open): Improve error message.
21366 * disk/lvm.c (grub_lvm_open): Likewise.
21367 * disk/raid.c (grub_raid_open): Likewise.
21368
21369 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
21370 when hook requests it, independently of grub_errno.
21371 (pc_partition_map_probe): Do not fail when find_func() caused
21372 early abortion of pc_partition_map_iterate().
21373
21374 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
21375 when hook requests it, independently of grub_errno.
21376 (gpt_partition_map_probe): Do not fail when find_func() caused
21377 early abortion of gpt_partition_map_iterate().
21378
21379 * kern/partition.c (grub_partition_iterate): Abort parent iteration
21380 when hook requests it, independently of grub_errno. Do not fail when
21381 part_map_iterate_hook() caused early abortion of p->iterate().
21382
21383 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
21384 when grub_partition_iterate() returned with non-zero.
21385
277d0de9 213862008-07-03 Pavel Roskin <proski@gnu.org>
21387
21388 * disk/ata.c (grub_ata_pio_write): Check status before writing,
21389 like we do in grub_ata_pio_read().
21390 (grub_ata_readwrite): Always write individual sectors. Fix the
21391 sector count for the remainder.
21392 (grub_ata_write): Enable writing to ATA devices. Correctly
21393 report error for ATAPI devices.
21394
d4c9b428 213952008-07-02 Pavel Roskin <proski@gnu.org>
21396
e43fc690 21397 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
21398 warning.
21399
f707af42 21400 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
21401 for every read sector, we already increment it for the whole
21402 batch. This fixes reading more than 256 sectors at once.
21403
11e16b15 21404 * util/grub-editenv.c (cmd_info): Cast argument to long
21405 explicitly. ptrdiff_t reduces to int on i386.
21406
cbabfdd4 21407 * util/grub-editenv.c (main): Be specific which parameter is
21408 missing.
21409
b8fbce0a 21410 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
21411 (memdisk): Make memdisk_orig_addr a pointer.
21412
c9c8e606 21413 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
21414 for file offsets, use grub_off_t instead. Fix printf format
21415 warnings.
21416
ca62e598 21417 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
21418 there. Real unexpected warnings should not drown in the noise
21419 about known problems.
21420
ce8d1766 21421 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
21422 grub_disk_addr_t for memory addresses.
21423
00c7a56a 21424 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
21425 explicitly to fix a warning.
21426
08d3ef09 21427 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
21428
cb71ba20 21429 * Makefile.in (MODULE_LDFLAGS): New variable.
21430 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
21431 the linker accepts --build-id=none.
21432 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
21433 MODULE_LDFLAGS.
21434 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
21435
d4c9b428 21436 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
21437 those in Linux XFS code. Provide a way to access 64-bit parent
21438 inode.
21439 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
21440 the end of struct grub_xfs_dir_header.
21441
d4156eee 214422008-07-02 Bean <bean123ch@gmail.com>
21443
21444 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
21445 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
21446 and GRUB_IEEE1275_FLAG_NO_ANSI.
21447
21448 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
21449 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
21450 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
21451
21452 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
21453 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
21454
21455 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
21456 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
21457
21458 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
21459 esc sequence on non ANSI terminal.
21460 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
21461
21462 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
21463 beginning of file.
21464
2270f77b 214652008-07-02 Bean <bean123ch@gmail.com>
21466
21467 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
21468 (grub_editenv_SOURCES): New variable.
21469 (pkglib_MODULES): Add loadenv.mod.
21470 (loadenv_mod_SOURCES): New variable.
21471 (loadenv_mod_CFLAGS): Likewise.
21472 (loadenv_mod_LDFLAGS): Likewise.
21473
21474 * include/grub/envblk.h: New file.
21475
21476 * util/envblk.c: New file.
21477
21478 * util/grub-editenv.c: New file.
21479
21480 * commands/loadenv.c: New file.
21481
0e9e51ec 214822008-07-01 Pavel Roskin <proski@gnu.org>
21483
d89b7634 21484 * include/multiboot2.h (struct multiboot_tag_module): Use char,
21485 not unsigned char. This fixes warnings and is consistent with
21486 other tags.
21487
bf1835b1 21488 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
21489
8222a04b 21490 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
21491
6a42d99d 21492 * term/tparm.c (analyze): Always set *popcount.
21493
10b159d1 21494 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
21495 cast to fix a warning.
21496
b8789f6c 21497 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
21498 cast to suppress a warning.
21499
29d7e38a 21500 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
21501 grub_fshelp_read_file() expects.
21502
f341f669 21503 * fs/fat.c: Fix UUID calculation on big-endian systems. We
21504 write uuid as a 32-bit value in CPU byte order, so declare and
21505 use it as such.
21506
0e9e51ec 21507 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
21508 long if the format specifier expects it.
21509 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
21510 * partmap/pc.c (pc_partition_map_iterate): Likewise.
21511 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
21512 long to fix a warning.
21513 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
21514 grub_dprintf() arguments to fix warnings.
21515
3aefa857 215162008-06-30 Pavel Roskin <proski@gnu.org>
21517
56c7668b 21518 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
21519 install_bsd_part immediately before core.img is embedded or
21520 modified on disk. This fixes core.img verification if core.img
21521 cannot be embedded.
21522
3aefa857 21523 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
21524 core_path to calculate the blocklist.
21525 Patch from Javier Martín <lordhabbit@gmail.com>
21526
5444088d 215272008-06-29 Robert Millan <rmh@aybabtu.com>
21528
21529 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
21530 block to disk block.
21531 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
21532 Patch from Niels Böhm <bitbucket@arcor.de>
21533
674835c8 215342008-06-29 Robert Millan <rmh@aybabtu.com>
21535
21536 * util/update-grub_lib.in (font_path): Search for fonts in
21537 /boot/grub first, which is more likely to be readable (we aren't
21538 deciding where fonts live, just looking for them).
21539
f527dbc8 215402008-06-26 Pavel Roskin <proski@gnu.org>
21541
6c2d8df6 21542 * util/biosdisk.c (read_device_map): Don't leave dead map
21543 entries for devices failing stat() check.
21544
f527dbc8 21545 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
21546 core_path_dev for the core.img path on the target device.
21547
aebe3d13 215482008-06-26 Robert Millan <rmh@aybabtu.com>
21549
21550 * disk/fs_uuid.c: New file.
21551 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
21552 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
21553 (fs_uuid_mod_LDFLAGS): New variables.
21554 * include/grub/disk.h (grub_disk_dev_id): Add
21555 `GRUB_DISK_DEVICE_UUID_ID'.
21556 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
21557 implement iterate().
21558
37aaf354 215592008-06-26 Robert Millan <rmh@aybabtu.com>
21560
21561 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
21562 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
21563 Linux image includes no initrd.
21564
25ff262a 215652008-06-21 Javier Martín <lordhabbit@gmail.com>
21566
21567 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
21568 call to resolve the core image location that effectively appended the
21569 name twice.
21570
76a2bd44 215712008-06-21 Robert Millan <rmh@aybabtu.com>
21572
21573 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
21574 call from here ...
21575
21576 * util/grub.d/10_hurd.in: ... to here ...
21577 * util/grub.d/10_linux.in: ... and here.
21578
650e1c79 215792008-06-19 Robert Millan <rmh@aybabtu.com>
21580
fe987087 21581 * kern/main.c (grub_main): Export `prefix' variable immediately
650e1c79 21582 after it has been set by grub_machine_set_prefix().
21583
6ce63911 215842008-06-19 Robert Millan <rmh@aybabtu.com>
21585
21586 * commands/search.c (search_label, search_fs_uuid, search_file): Print
21587 search result when not saving to variable, not the other way around.
21588 When saving to variable, abort iteration as soon as a match is found.
21589
73940cec 215902008-06-19 Robert Millan <rmh@aybabtu.com>
21591
21592 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
21593 check for partition that provides /boot/grub. Its logic is flawed,
21594 as it prevents prepare_grub_to_access_device() from being called
21595 multiple times.
21596
3c62a39d 215972008-06-19 Robert Millan <rmh@aybabtu.com>
21598
21599 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
21600 "insmod" command directly when abstraction modules are needed,
fe987087 21601 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
3c62a39d 21602 since it had already been processed).
21603
47395a42 216042008-06-19 Pavel Roskin <proski@gnu.org>
21605
21606 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
21607 changed. This is needed in case GRUB_LIBDIR changes.
21608 * conf/i386-ieee1275.rmk: Likewise.
21609 * conf/i386-linuxbios.rmk: Likewise.
21610 * conf/i386-pc.rmk: Likewise.
21611 * conf/powerpc-ieee1275.rmk: Likewise.
21612
a145ac2d 216132008-06-18 Pavel Roskin <proski@gnu.org>
21614
21615 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
21616 kernel_elf_symlist.c to symlist.c for consistency with other
21617 architectures. Update all users.
21618 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
21619
7847c51e 216202008-06-18 Robert Millan <rmh@aybabtu.com>
21621
21622 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
21623 it in prefix.
21624
21625 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
21626 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
21627 a RAID device, run setup() for all members independently on whether
21628 LVM abstraction is being used.
21629 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
21630 If grub-mkimage has set `*install_dos_part == -2', don't override this
21631 value.
21632 Perform *install_dos_part adjustments independently on whether
21633 we're embedding or not.
21634 Clarify error message when image is too big for embedding.
21635 Remove duplicate *install_dos_part stanza.
21636
b23e5644 216372008-06-17 Robert Millan <rmh@aybabtu.com>
21638
21639 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
21640 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
21641 variables.
21642 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
21643 values in grub_ofconsole_normal_color and
21644 grub_ofconsole_highlight_color (they're not directly related to
21645 background and foreground).
21646 (grub_ofconsole_setcolorstate): Extract background and foreground
21647 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
21648
0aac2f79 216492008-06-17 Robert Millan <rmh@aybabtu.com>
21650
21651 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
21652 /boot/grub for the check in last commit, not /boot (they could be
21653 different partitions).
21654
3cca7ef3 216552008-06-16 Robert Millan <rmh@aybabtu.com>
21656
21657 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
21658 asked to setup access for the same partition that provides /boot,
21659 don't bother using UUIDs since our root already has the value we
21660 want.
21661
347396d8 216622008-06-16 Robert Millan <rmh@aybabtu.com>
21663
21664 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
21665 I2O devices.
21666 Patch from Sven Mueller <sven@debian.org>.
21667
991477f8 216682008-06-16 Robert Millan <rmh@aybabtu.com>
21669
21670 * util/update-grub.in: Check for $EUID instead of $UID.
21671 Reported by Vincent Zweije.
21672
d31a32a1 216732008-06-16 Bean <bean123ch@gmail.com>
21674
fe987087 21675 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
d31a32a1 21676 (grub_ext2_read_block): Likewise.
21677 (grub_ext2_read_inode): Likewise.
21678 (grub_ext2_mount): Likewise.
21679 (grub_ext2_close): Likewise.
21680 (grub_ext3_get_journal): Removed.
21681
fe987087 21682 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
d31a32a1 21683 (grub_reiserfs_read_symlink): Likewise.
21684 (grub_reiserfs_mount): Likewise.
21685 (grub_reiserfs_open): Likewise.
21686 (grub_reiserfs_read): Likewise.
21687 (grub_reiserfs_close): Likewise.
21688 (grub_reiserfs_get_journal): Removed.
21689
21690 * fs/fshelp.c (grub_fshelp_read): Removed.
21691 (grub_fshelp_map_block): Likewise.
21692
21693 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
21694 (grub_fshelp_journal): Likewise.
21695 (grub_fshelp_read): Likewise.
21696 (grub_fshelp_map_block): Likewise.
21697
3540a760 216982008-06-16 Pavel Roskin <proski@gnu.org>
21699
21700 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
21701 floating point anymore.
21702 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
21703
95614c84 217042008-06-15 Pavel Roskin <proski@gnu.org>
21705
21706 * commands/ls.c (grub_ls_list_files): Use integer calculations
21707 for human readable format, avoid floating point use.
21708 * kern/misc.c (grub_ftoa): Remove.
21709 (grub_vsprintf): Remove floating point support.
21710
50465dd6 217112008-06-15 Robert Millan <rmh@aybabtu.com>
21712
fe6b695a 21713 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
50465dd6 21714 devices.
21715 Reported by Max Vozeler.
21716
a9207284 217172008-06-15 Robert Millan <rmh@aybabtu.com>
21718
21719 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
21720 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
21721 skipped later.
21722 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
21723 the beginning of the prefix.
21724
21725 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
21726 It is assumed that if we have a memdisk, grub-mkimage has set
21727 grub_prefix to include the "(memdisk)" drive in it.
21728
a7cbd45a 217292008-06-15 Robert Millan <rmh@aybabtu.com>
21730
21731 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
21732 Initialize keyboard controller after registering the terminal, so that
21733 grub_printf() can be called from grub_keyboard_controller_init().
21734
21cf716a 217352008-06-15 Robert Millan <rmh@aybabtu.com>
21736
21737 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
21738 extent-btree which is written as big endian on disk.
21739 Reported by Alain Greppin <al@chilibi.org>.
21740
23a64d8e 217412008-06-14 Robert Millan <rmh@aybabtu.com>
21742
21743 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
21744 * util/i386/pc/grub-install.in (modules): Likewise.
21745
d687651c 217462008-06-13 Pavel Roskin <proski@gnu.org>
21747
21748 * commands/ls.c (grub_ls_list_files): Fix format warnings.
21749
dfe9ddd4 217502008-06-13 Bean <bean123ch@gmail.com>
21751
21752 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
21753
21754 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
21755
21756 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
21757 to indicate sparse block.
21758
16ae7781 217592008-06-12 Pavel Roskin <proski@gnu.org>
21760
e6d1a308 21761 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
21762 number, grub_fshelp_read() does it for us.
21763
16ae7781 21764 * fs/fshelp.c (grub_fshelp_read): New function. Implement
21765 linear disk read with journal translation.
21766 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
21767 * include/grub/fshelp.h: Declare grub_fshelp_read().
21768
40fd3a2b 217692008-06-09 Pavel Roskin <proski@gnu.org>
21770
21771 * fs/minix.c (grub_minix_mount): Handle error reading
21772 superblock.
21773
f5679726 217742008-06-08 Robert Millan <rmh@aybabtu.com>
21775
21776 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
21777 don't append the RAID prefix afterwards.
21778 Reported by Clint Adams.
21779
ce525529 217802008-06-08 Robert Millan <rmh@aybabtu.com>
21781
21782 Based on description from Pavel:
21783 * kern/disk.c (grub_disk_check_range): Rename to ...
21784 (grub_disk_adjust_range): ... this. Add a comment explaining the
21785 tasks performed by this function.
21786
ad4936a0 217872008-06-08 Robert Millan <rmh@aybabtu.com>
21788
21789 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
21790 `num_serial' (for consistency with other variables).
21791 (struct grub_ntfs_data): Add `uuid' member.
21792 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
21793 (grub_ntfs_uuid): New function.
21794 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
21795
dc20b0f9 217962008-06-07 Pavel Roskin <proski@gnu.org>
21797
21798 * util/biosdisk.c (open_device): Revert last change to the
21799 function, it broke installation. The sector needs to be
21800 different dependent on which device is opened.
21801
c5e3cfba 218022008-06-06 Robert Millan <rmh@aybabtu.com>
21803
21804 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
21805 rest of GRUB, and breakage doesn't happen if its value were modified.
21806
21807 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
21808 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
21809 a constant (same value).
21810 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
21811 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
21812
26a1f8c4 218132008-06-06 Robert Millan <rmh@aybabtu.com>
21814
21815 * util/biosdisk.c (open_device): Do not modify sector offset when
21816 accessing a partition. kern/disk.c already handles this for us.
21817
25d6b327 218182008-06-06 Robert Millan <rmh@aybabtu.com>
21819
21820 * util/grub-emu.c (grub_machine_init): Move code in this function from
21821 here ...
21822 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
21823 segfault in case grub_printf() is called).
21824
21825 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
21826 grub_probe. Update all users not to explicitly add it again.
21827 (grub_device): New variable; contains corresponding device for grubdir.
21828 (fs_module, partmap_module, devabstraction_module): Pass
21829 `--device ${grub_device}' to grub_probe to avoid traversing /dev
21830 every time.
21831
9ece62fb 218322008-06-05 Robert Millan <rmh@aybabtu.com>
21833
21834 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
21835 is found, print it (same layout as with labels).
21836
1ad36d37 218372008-06-04 Robert Millan <rmh@aybabtu.com>
21838
21839 * util/biosdisk.c (get_drive): Rename to ...
21840 (find_grub_drive): ... this. Update all users.
21841
21842 (get_os_disk): Rename to ...
21843 (convert_system_partition_to_system_disk): ... this. Update all users.
21844
21845 (find_drive): Rename to ...
21846 (find_system_device): ... this. Update all users.
21847
e6a30859 218482008-06-04 Robert Millan <rmh@aybabtu.com>
21849
21850 * util/biosdisk.c (get_os_disk): Handle IDA devices.
21851 * util/grub-mkdevicemap.c (get_mmc_disk_name)
21852 (make_device_map): Likewise.
21853
00c108a4 218542008-06-01 Robert Millan <rmh@aybabtu.com>
21855
21856 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
21857 before dereferencing it.
21858
21859 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
21860 union with fat12/fat16-specific ones. Add some new fields, including
21861 `num_serial' for both versions.
21862 (struct grub_fat_data): Add `uuid' member.
21863 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
21864 names. Initialize `data->uuid' using `num_serial'.
21865 (grub_fat_uuid): New function.
21866 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
21867
21868 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
21869 (grub_reiserfs_uuid): New function.
21870 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
21871 member.
21872
21873 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
21874 (grub_xfs_uuid): New function.
21875 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
21876
1385c5bb 218772008-06-01 Robert Millan <rmh@aybabtu.com>
21878
21879 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
21880 code that is backward compatible with pre-uuid search command.
21881
c682dfd7 218822008-05-31 Robert Millan <rmh@aybabtu.com>
21883
21884 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
21885 floppies after everything else, to ensure floppy drive isn't accessed
21886 unnecessarily (patch from Bean).
21887
b7db5d47 218882008-05-31 Robert Millan <rmh@aybabtu.com>
21889
21890 * commands/search.c (search_label, search_fs_uuid, search_file): Do
21891 not print device names when we were asked to set a variable.
21892
6e037aa9 218932008-05-31 Robert Millan <rmh@aybabtu.com>
21894
21895 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
21896 using "cursor-on" and "cursor-off" commands (understood at least by
21897 the Open Firmware flavour on OLPC).
21898
41305bc8 218992008-05-31 Michael Gorven <michael@gorven.za.net>
21900
21901 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
21902 on and off sequences.
21903
69ba137e 219042008-05-31 Robert Millan <rmh@aybabtu.com>
21905
21906 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
21907 * util/update-grub.in: Likewise.
21908
520ae21b 219092008-05-30 Pavel Roskin <proski@gnu.org>
21910
21911 * util/biosdisk.c (linux_find_partition): Simplify logic and
21912 make the code more universal. Keep special processing for
21913 devfs, but use a simple rule for all other devices. If the
21914 device ends with a number, append 'p' and the partition number.
21915 Otherwise, append only the partition number.
21916
5786569b 219172008-05-30 Robert Millan <rmh@aybabtu.com>
21918
21919 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
21920 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
21921 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
21922 the `root' parameter to Linux.
21923
51500452 219242008-05-30 Robert Millan <rmh@aybabtu.com>
21925
21926 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
21927 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
21928 --fs_uuid with --fs-uuid.
21929 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
21930 all filesystems support them).
21931
811d3878 219322008-05-30 Robert Millan <rmh@aybabtu.com>
21933
21934 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
f19dbdb7 21935 grub_printf() flags, since we're printing in units of 2 bytes.
811d3878 21936
cab63c95 219372008-05-30 Robert Millan <rmh@aybabtu.com>
21938
21939 * util/grub.d/00_header.in: Remove obsolete comment referencing
21940 convert_system_path_to_grub_path().
21941 * util/update-grub.in: Likewise.
21942 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
21943 (convert_system_path_to_grub_path): Add a warning message explaining
21944 that this function is deprecated. Rely on is_path_readable_by_grub()
21945 for the readability checks.
21946 (font_path): Use is_path_readable_by_grub() for the readability
21947 check rather than convert_system_path_to_grub_path().
21948
972e2f7a 219492008-05-30 Robert Millan <rmh@aybabtu.com>
21950
21951 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
21952 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
21953 converting it first.
21954 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
21955 grub.cfg for access to font file, and afterwards call it again to set
21956 the root device.
21957
62191274 219582008-05-30 Robert Millan <rmh@aybabtu.com>
21959
21960 * commands/search.c (options): Add --fs_uuid option.
21961 (search_fs_uuid): New function.
21962 (grub_cmd_search): Fix --set argument passing.
21963 Use search_fs_uuid() when requested via --fs_uuid.
21964 (grub_search_init): Update help message.
21965 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
21966 and redeclare it as an array of 16-bit words.
21967 (grub_ext2_uuid): New function.
21968 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
21969 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
21970 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
21971 (GRUB_DEVICE_BOOT_UUID): New variables.
21972 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
21973 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
21974 whenever possible.
21975 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
21976 just assume `root' variable has the right value.
21977 * util/grub.d/10_linux.in: Likewise.
21978 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
21979 via PRINT_FS_UUID.
21980 (main): Recognise `-t fs_uuid' argument.
21981
01b73ec8 219822008-05-30 Robert Millan <rmh@aybabtu.com>
21983
21984 * util/biosdisk.c (map): Redefine structure to hold information
21985 about GRUB drive name.
fe6b695a 21986 (get_drive): Reimplement without assuming (and verifying) BIOS-like
01b73ec8 21987 drive names.
21988 (call_hook): Remove.
21989 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
21990 member. Assume drive has partitions.
21991 (grub_util_biosdisk_open): Access device names via `.device' struct
21992 member.
21993 (open_device): Likewise.
21994 (find_drive): Likewise.
21995 (read_device_map): Adjust map[] usage to match the new struct
21996 definition. Don't check for duplicates (still possible, but not cheap
21997 anymore).
21998 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
21999 (make_device_name): Remove assumption of BIOS-like drive names.
22000
22f16596 220012008-05-30 Pavel Roskin <proski@gnu.org>
22002
22003 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
22004 compiling execute.c doesn't need grub_script.tab.h anymore.
22005 (normal/command.c_DEPENDENCIES): Likewise.
22006 (normal/function.c_DEPENDENCIES): Likewise.
22007 * conf/i386-ieee1275.rmk: Likewise.
22008 * conf/i386-linuxbios.rmk: Likewise.
22009 * conf/i386-pc.rmk: Likewise.
22010 * conf/powerpc-ieee1275.rmk: Likewise.
22011 * conf/sparc64-ieee1275.rmk: Likewise.
22012
528ad8f2 220132008-05-29 Pavel Roskin <proski@gnu.org>
22014
d1dff95d 22015 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
22016 when scanning metadata for volume group name.
22017
528ad8f2 22018 * include/grub/script.h: Don't include grub_script.tab.h. It's
22019 a generated file, which may only be included from the files with
22020 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
22021 use union YYSTYPE, as the later allows forward declaration.
22022 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
22023
47248e08 220242008-05-29 Robert Millan <rmh@aybabtu.com>
22025
22026 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
22027 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
22028 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
22029 (grub_console_checkkey): Add grub_dprintf() call to report unknown
22030 scan codes.
22031
ee632529 220322008-05-29 Robert Millan <rmh@aybabtu.com>
22033
22034 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
22035 control key combinations.
22036
eee96e08 220372008-05-29 Robert Millan <rmh@aybabtu.com>
22038
22039 * util/powerpc/ieee1275/grub-install.in: Move from here ...
22040 * util/ieee1275/grub-install.in: ... to here.
22041 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
22042 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
22043 (grub_install_SOURCES): Likewise.
22044
da9a6a94 220452008-05-29 Robert Millan <rmh@aybabtu.com>
22046
22047 * fs/affs.c: Update copyright year.
22048 * fs/ext2.c: Likewise.
22049 * fs/fshelp.c: Likewise.
22050 * fs/hfsplus.c: Likewise.
22051 * fs/ntfs.c: Likewise.
22052 * fs/xfs.c: Likewise.
22053 * include/grub/fshelp.h: Likewise.
22054 * util/grub-mkdevicemap.c: Likewise.
22055
12e65f3a 220562008-05-28 Robert Millan <rmh@aybabtu.com>
22057
22058 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
22059 might need to be fatfs to support some firmware implementations
22060 (e.g. OFW or EFI).
22061
23023641 220622008-05-28 Robert Millan <rmh@aybabtu.com>
22063
22064 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
22065 devices.
22066 * util/grub-mkdevicemap.c (get_mmc_disk_name)
22067 (make_device_map): Likewise.
22068
887d2619 220692008-05-20 Bean <bean123ch@gmail.com>
22070
22071 * fs/fshelp.c (grub_fshelp_map_block): New function.
22072 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
22073 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
22074
22075 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
22076 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
22077 (grub_fshelp_journal): New structure.
22078 (grub_fshelp_map_block): New function prototype.
22079 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
22080 (grub_fshelp_map_block): Likewise.
22081
22082 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
22083 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
22084 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
22085 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
22086 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
22087 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
22088 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
22089 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
22090 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
22091 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
22092 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
22093 (grub_ext2_sblock): New members for journal support.
22094 (grub_ext3_journal_header): New structure.
22095 (grub_ext3_journal_revoke_header): Likewise.
22096 (grub_ext3_journal_block_tag): Likewise.
22097 (grub_ext3_journal_sblock): Likewise.
22098 (grub_fshelp_node): New members logfile and journal.
22099 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
22100 grub_fshelp_map_block to get real block number.
22101 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
22102 number.
22103 (grub_ext2_read_inode): Likewise.
22104 (grub_ext3_get_journal): New function.
22105 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
22106 (grub_ext2_close): Release memory used by journal.
22107
22108 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
22109 (REISERFS_MAGIC_DESC_BLOCK): New macro.
22110 (grub_reiserfs_transaction_header): Renamed to
22111 grub_reiserfs_description_block, replace field data with real_blocks.
22112 (grub_reiserfs_commit_block): New structure.
22113 (grub_reiserfs_data): New member journal.
22114 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
22115 number.
22116 (grub_reiserfs_read_symlink): Likewise.
22117 (grub_reiserfs_iterate_dir): Likewise.
22118 (grub_reiserfs_open): Likewise.
22119 (grub_reiserfs_read): Likewise.
22120 (grub_reiserfs_get_journal): New function.
22121 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
22122 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
22123 using grub_reiserfs_get_journal.
22124 (grub_reiserfs_close): Release memory used by journal.
22125
22126 * fs/affs.c (grub_affs_read_block): Change block type to
22127 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
22128
22129 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
22130
22131 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
22132
22133 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
22134
22135 * fs/udf.c (grub_udf_read_block): Change block type to
22136 grub_disk_addr_t. Use type cast to avoid warning.
22137
22138 * fs/xfs.c (grub_xfs_read_block): Likewise.
22139
b7c6bed5 221402008-05-16 Christian Franke <franke@computer.org>
22141
22142 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
22143 to ensure that break with ESC will always work.
22144 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
22145 Remove ESC from keyboard queue.
22146
eedf167f 221472008-05-16 Christian Franke <franke@computer.org>
22148
22149 * util/biosdisk.c: [__CYGWIN__] Add includes.
22150 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
22151 (get_os_disk): Move variable declarations to OS specific
22152 parts to avoid warning.
22153 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
22154 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
22155 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
22156 Cygwin.
22157 * util/getroot.c: [__CYGWIN__] Add includes.
22158 (strip_extra_slashes): Fix "/" case.
22159 [__CYGWIN__] (get_win32_path): New function.
22160 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
22161 [__CYGWIN__] (find_root_device): Disable.
22162 [__CYGWIN__] (get_bootsec_serial): New function.
22163 [__CYGWIN__] (find_cygwin_root_device): Likewise.
22164 [__linux__] (grub_guess_root_device): Add early returns to simplify
22165 structure.
22166 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
22167 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
22168 check for Linux only.
22169
a079699e 221702008-05-15 Bean <bean123ch@gmail.com>
22171
22172 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
22173 keyboard hang problem in apple's intel mac.
22174
1cf4059a 221752008-05-09 Robert Millan <rmh@aybabtu.com>
22176
22177 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
22178 devices.
22179 * util/grub-mkdevicemap.c (get_virtio_disk_name)
22180 (make_device_map): Likewise.
22181 Reported by Aurelien Jarno <aurel32@debian.org>
22182
ed759390 221832008-05-07 Ian Campbell <ijc@hellion.org.uk>
22184
22185 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
22186 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
22187 (make_device_map): Output entries for xvd type disks.
22188
b56c4eaa 221892008-05-07 Robert Millan <rmh@aybabtu.com>
22190
22191 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
22192 devices.
22193 * util/grub-mkdevicemap.c (get_cciss_disk_name)
22194 (make_device_map): Likewise.
22195 Reported by Roland Dreier <rdreier@cisco.com>
22196
7f8866ed 221972008-05-07 Robert Millan <rmh@aybabtu.com>
22198
22199 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
22200 grub_strstr() call. Correct a few mistakes in failure path handling.
22201
b0346e0f 222022008-05-06 Robert Millan <rmh@aybabtu.com>
22203
22204 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
22205 Do not print a trailing slash (therefore, the root directory is an
22206 empty string).
22207 (convert_system_path_to_grub_path): Do not remove trailing slash
22208 from make_system_path_relative_to_its_root() output.
22209
22210 * util/i386/pc/grub-install.in: Add trailing slash to output from
22211 make_system_path_relative_to_its_root().
22212
6cf12cbd 222132008-05-06 Robert Millan <rmh@aybabtu.com>
22214
22215 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
22216 ensures that output lines aren't intermangled with those sent to
22217 stderr (via grub_util_info()).
22218 * util/grub-probe.c (grub_refresh): Likewise.
22219 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
22220
0fbb3117 222212008-05-05 Christian Franke <franke@computer.org>
22222
22223 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
22224 Add Cygwin device names.
22225 (get_ide_disk_name) [__CYGWIN__]: Likewise.
22226 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
22227 (check_device): Return error instead of success on empty name.
22228 (make_device_map): Move label inside linux specific code to
22229 prevent compiler warning.
22230
8124cdb7 222312008-04-30 Robert Millan <rmh@aybabtu.com>
22232
22233 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
22234 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
22235 first boot option.
22236 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
22237
094c01d0 222382008-04-29 Robert Millan <rmh@aybabtu.com>
22239
22240 * docs/grub.cfg: New file (example GRUB configuration).
22241
f4b1fc02 222422008-04-26 Robert Millan <rmh@aybabtu.com>
22243
329ce2a5 22244 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
22245 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
22246 and `disk/ieee1275/nand.c'.
f4b1fc02 22247
25f16ec1 222482008-04-25 Bean <bean123ch@gmail.com>
f19dbdb7 22249
25f16ec1 22250 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
22251 i386-linuxbios.
22252
22253 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
22254 change the buffer size to 4096 for cdrom device.
22255
22256 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
22257 and nand.mod.
22258 (_linux_mod_SOURCES): New variable.
22259 (_linux_mod_CFLAGS): Likewise.
22260 (_linux_mod_LDFLAGS): Likewise.
22261 (linux_mod_SOURCES): Likewise.
22262 (linux_mod_CFLAGS): Likewise.
22263 (linux_mod_LDFLAGS): Likewise.
22264 (nand_mod_SOURCES): Likewise.
22265 (nand_mod_CFLAGS): Likewise.
22266 (nand_mod_LDFLAGS): Likewise.
22267
22268 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
22269 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
22270 type property. (nand device in olpc don't have this property)
22271
22272 * include/grub/disk.h (grub_disk_dev_id): New macro
22273 GRUB_DISK_DEVICE_NAND_ID.
22274
22275 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
22276 function prototype.
22277 (grub_rescue_cmd_initrd): Likewise.
22278
22279 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
22280 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
22281 ofw_cif_handler and ofw_idt, adjust padding number.
f19dbdb7 22282
25f16ec1 22283 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
22284 GRUB_MACHINE_IEEE1275 is defined.
22285
22286 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
22287 Use NESTED_FUNC_ATTR attribute on the hook parameter.
22288
22289 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
22290 on nested function heap_init.
22291 (grub_upper_mem): New variable for i386-ieee1275.
22292 (grub_get_extended_memory): New function for i386-ieee1275.
22293 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
22294
22295 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
22296 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
22297 property.
f19dbdb7 22298
25f16ec1 22299 * loader/i386/ieee1275/linux.c: New file.
22300
22301 * loader/i386/ieee1275/linux_normal.c: New file.
22302
22303 * disk/ieee1275/nand.c: New file.
22304
e89d61e9 223052008-04-18 Thomas Schwinge <tschwinge@gnu.org>
22306
22307 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
22308 value.
22309 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
22310
602566f6 223112008-04-18 Robert Millan <rmh@aybabtu.com>
22312
22313 Restructures early code path on ieee1275 to unify grub_main() as
22314 the first C function that is executed in every platform.
22315
22316 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
22317 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
22318 cmain().
22319 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
22320 * kern/ieee1275/cmain.c (cmain): Rename to ...
22321 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
22322 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
22323 at the beginning.
22324
57490c2b 223252008-04-18 Robert Millan <rmh@aybabtu.com>
22326
22327 * util/update-grub.in: Fix syntax error when setting
22328 `GRUB_PRELOAD_MODULES'.
22329 Reported by Stephane Chazelas <stephane@artesyncp.com>
22330
1977517d 223312008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
22332
22333 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
22334 section into account, newer toolchains generate unique build ids
22335 * configure.ac: remove the test for --build-id=none acceptance,
e0c5dacb 22336 we want build ids to be preserved
1977517d 22337 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
22338 far from other sections don't cause the raw binary images grow
22339 size
22340
bfb1f1a2 223412008-04-15 Robert Millan <rmh@aybabtu.com>
22342
22343 * disk/lvm.c: Update copyright year.
22344 * kern/misc.c: Likewise.
22345
01979850 223462008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
22347
22348 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
f19dbdb7 22349 there is no memory left for physical volume name.
01979850 22350
0a1150e2 223512008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
22352
22353 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
22354 volume name mapping to support bigger than 9 character names properly.
22355
82ead3fe 223562008-04-13 Robert Millan <rmh@aybabtu.com>
22357
22358 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
22359 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
22360
e54a72f5 223612008-04-13 Christian Franke <franke@computer.org>
22362
22363 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
22364 to create a floppy emulation boot CD when non emulation mode
22365 does not work.
22366 Enable Joliet CD filesystem extension.
22367
9fe86034 223682008-04-13 Robert Millan <rmh@aybabtu.com>
22369
22370 * kern/misc.c (grub_strncat): Fix off-by-one error.
22371 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
22372
22373 * kern/env.c (grub_env_context_close): Clear current context, not
22374 previous one.
22375 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
22376
22377 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
22378
7ceeee39 223792008-04-13 Robert Millan <rmh@aybabtu.com>
22380
22381 Improve robustness when handling LVM.
22382
22383 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
f19dbdb7 22384 (and leave `*p' unmodified).
7ceeee39 22385 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
22386 through it.
22387 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
22388 iterating through it.
22389 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
22390 through it.
fe6b695a 22391 (grub_lvm_scan_device): Check the return value (and fail gracefully
7ceeee39 22392 when due) on each grub_lvm_getvalue() or grub_strstr() call.
22393 Don't assume `vg->pvs != NULL' when iterating through it.
22394
58cd3d85 223952008-04-13 Robert Millan <rmh@aybabtu.com>
22396
22397 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
22398 * genmk.rb (partmap): New variable.
22399 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
22400 (#{partmap}): New target rule.
22401 * genpartmaplist.sh: New file.
22402 * Makefile.in (pkglib_DATA): Add partmap.lst.
22403 (partmap.lst): New target rule.
22404 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
22405 modules (including all partition maps), instead of preloading them.
22406
78b51059 224072007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
22408
22409 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
22410 `linux-boot-prober' (if installed) to detect other operating
22411 systems which are installed on the computer and add them to
22412 the boot menu.
22413 * conf/common.rmk: Build and install 30_os-prober.
22414
a91627b4 224152008-04-12 Robert Millan <rmh@aybabtu.com>
22416
22417 * kern/powerpc/ieee1275/init.c: Move from here ...
22418 * kern/ieee1275/init.c: ... to here. Update all users.
22419
22420 * kern/powerpc/ieee1275/cmain.c: Move from here ...
22421 * kern/ieee1275/cmain.c: ... to here. Update all users.
22422
22423 * kern/powerpc/ieee1275/openfw.c: Move from here ...
22424 * kern/ieee1275/openfw.c: ... to here. Update all users.
22425
22426 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
22427 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
22428
322562ea 224292008-04-10 Pavel Roskin <proski@gnu.org>
22430
22431 * configure.ac: Always use "_cv_" in cache variables for
22432 compatibility with Autoconf 2.62.
22433
a02a73c5 224342008-04-07 Robert Millan <rmh@aybabtu.com>
22435
22436 Revert grub/machine/init.h addition by Pavel (since it breaks on
22437 i386-ieee1275 and others):
22438 * util/i386/pc/misc.c: Remove grub/machine/init.h.
22439 * util/powerpc/ieee1275/misc.c: Likewise.
22440
25c024b1 224412008-04-07 Robert Millan <rmh@aybabtu.com>
22442
22443 * util/grub-probe.c (probe): Improve error message.
22444
3cbd2f98 224452008-04-07 Robert Millan <rmh@aybabtu.com>
22446
22447 * util/biosdisk.c (read_device_map): Skip devices that don't exist
22448 (this prevents the presence of a bogus entry from ruining the whole
22449 thing).
22450
87a297bf 224512008-04-06 Pavel Roskin <proski@gnu.org>
22452
36747a62 22453 * util/biosdisk.c: Include grub/util/biosdisk.h.
22454 * util/grub-fstest.c (execute_command): Make static.
22455 * util/grub-mkdevicemap.c (check_device): Likewise.
22456 * util/i386/pc/misc.c: Include grub/machine/init.h.
22457 * util/powerpc/ieee1275/misc.c: Likewise.
22458 * util/lvm.c: Include grub/util/lvm.h.
22459 * util/misc.c: Include grub/kernel.h, grub/misc.h and
22460 grub/cache.h.
22461 * util/raid.c: Include grub/util/raid.h.
22462 (grub_util_getdiskname): Make static.
22463
87a297bf 22464 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
22465 grub_hostfs_fini(), as they are called from grub_init_all() and
22466 grub_fini_all() respectively. This fixes an infinite loop in
22467 grub-fstest due to double registration of hostfs.
22468 Reported by Christian Franke <Christian.Franke@t-online.de>
22469
f6ce7629 224702008-04-05 Pavel Roskin <proski@gnu.org>
22471
22472 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
22473 all 8 functions. Otherwise, probe function 0 only.
22474
070e49e4 224752008-04-04 Pavel Roskin <proski@gnu.org>
22476
8b088a4c 22477 * commands/lspci.c (grub_lspci_iter): Print the bus number
22478 correctly.
22479
4f657021 22480 * commands/lspci.c (grub_pci_classes): Fix typos.
22481 (grub_lspci_iter): Don't print func twice. Print vendor ID
22482 before device ID, as it's normally done.
22483
070e49e4 22484 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
22485 Fix signedness warnings.
22486 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
22487 Likewise.
22488 * util/ieee1275/get_disk_name.c: Include config.h so that
22489 _GNU_SOURCE is defined and getline() is declared. Mark an
22490 unused argument as such. Fix a signedness warning.
22491
ba7328dc 224922008-04-02 Pavel Roskin <proski@gnu.org>
22493
26887f22 22494 * genkernsyms.sh.in: Use more robust assignments for CC and
22495 srcdir. Quote srcdir.
22496 * gensymlist.sh.in: Likewise. Assert at the compile time that
22497 the symbol table is not empty.
22498
ba7328dc 22499 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
22500 * fs/cpio.c (grub_cpio_read): Likewise.
22501
0f582c6b 225022008-04-01 Pavel Roskin <proski@gnu.org>
22503
4b6e1995 22504 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
22505 * disk/host.c (grub_host_open): Likewise.
22506 * disk/loopback.c (grub_loopback_open): Likewise.
22507 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
22508 disk->id as in disk/host.c, not a multi-character constant.
22509
828a2768 22510 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
22511 later is obsolete, potentially dangerous and sets a bad example.
22512 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
22513 * util/misc.c (grub_util_get_image_size): Likewise.
22514
2bb4fb47 22515 * disk/loopback.c (options): Improve help for "--partitions".
22516
0f582c6b 22517 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
22518 options to align them with the short options, e.g. "echo -e".
22519
a33224e0 225202008-03-31 Bean <bean123ch@gmail.com>
22521
22522 * video/reader/png.c (grub_png_data): New member is_16bit and
22523 image_data.
22524 (grub_png_decode_image_header): Detect 16 bit png image.
22525 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
22526 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
22527 (grub_video_reader_png): Release memory occupied by image_data.
22528
22529 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
22530 4096 bytes.
22531 (grub_nfs_mount): Skip the test for sector per cluster.
22532
22533 * include/grub/ntfs.h (MAX_SPC): Removed.
22534
86cb4f54 225352008-03-31 Bean <bean123ch@gmail.com>
22536
22537 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
22538 (grub_probe_SOURCES): Add fs/afs.c.
22539 (grub_fstest_SOURCES): Likewise.
22540 (afs_mod_SOURCES): New variable.
22541 (afs_mod_CFLAGS): Likewise.
22542 (afs_mod_LDFLAGS): Likewise.
22543
22544 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
22545 (grub_emu_SOURCES): Likewise.
22546
22547 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
22548
22549 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
22550
22551 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
22552
22553 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
22554
22555 * fs/afs.c: New file.
22556
17c74c21 225572008-03-30 Pavel Roskin <proski@gnu.org>
22558
4cb68e89 22559 * disk/host.c: Include grub/misc.h to fix a warning.
22560 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
22561 warnings about implicit declarations.
22562
8790bb04 22563 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
22564 variable.
22565 * include/grub/i386/loader.h: Change declaration of
22566 grub_linux_boot() to match what grub_loader_set() expects.
22567 * util/getroot.c (grub_guess_root_device): Return const char* to
22568 fix a warning.
22569 * util/grub-probe.c (probe): Fix a warning about uninitialized
22570 abstraction_name variable.
22571 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
22572 second argument as unused to fix a warning.
22573
9a3f3296 22574 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
22575 missing grub_error() call.
22576
0ecef90d 22577 * util/update-grub_lib.in: Define datarootdir, since Autoconf
22578 2.60 and newer uses it to define datadir.
22579
0bf6d401 22580 * commands/sleep.c: Fix warning about implicit declaration.
22581 * disk/memdisk.c: Likewise.
22582 * loader/aout.c: Likewise.
22583 * loader/i386/bsd_normal.c: Likewise.
22584 * util/grub-probe.c: Likewise.
22585
7cdacf97 22586 * commands/i386/cpuid.c (has_longmode): Make static.
22587 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
22588 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
22589
17c74c21 22590 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
22591 GDT. This is more robust, as %ds can change.
22592 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
22593 calling real_to_prot().
22594 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
22595
80a3e68b 225962008-03-28 Pavel Roskin <proski@gnu.org>
22597
22598 * kern/i386/pc/startup.S: Assert that uncompressed functions
22599 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
22600 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
22601 code, as they push parts of the code (error handlers) beyond
22602 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
22603 code as correctness and size.
22604
77bcd272 226052008-03-28 Pavel Roskin <proski@gnu.org>
22606
22607 * kern/i386/pc/startup.S
22608 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
22609 data block address to the real mode, keep offset minimal. This
22610 works around a bug in AWARD BIOS on old Athlon systems, which
22611 makes CD detection hang.
22612
c5dfd43b 226132008-03-26 Pavel Roskin <proski@gnu.org>
22614
22615 * normal/color.c (grub_parse_color_name_pair): Make `name' a
22616 const.
22617 * include/grub/normal.h: Add grub_parse_color_name_pair()
22618 declaration.
22619
bf962df2 226202008-03-24 Bean <bean123ch@gmail.com>
22621
22622 * disk/i386/pc/biosdisk.c (cd_start): Removed.
22623 (cd_count): Removed.
22624 (cd_drive): New variable.
22625 (grub_biosdisk_get_drive): Don't check for (cdN) device.
22626 (grub_biosdisk_call_hook): Likewise.
22627 (grub_biosdisk_iterate): Change cdrom detection method.
22628 (grub_biosdisk_open): Replace cd_start with cd_drive.
22629 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
22630 detect cdrom device.
22631
22632 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
22633 Removed.
22634 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
22635 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
22636 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
22637 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
22638 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
22639 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
22640 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
22641 (grub_biosdisk_cdrp): New structure.
22642 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
22643
22644 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
22645
22646 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
22647 device.
22648
22649 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
22650 New function.
22651
68e7fc7a 226522008-03-20 Robert Millan <rmh@aybabtu.com>
22653
22654 Remove 2 TiB limit in ata.mod.
22655 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
22656 (grub_ata_dumpinfo): Print sector count with 0x%llx.
22657 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
22658 grub_uint64_t instead of grub_uint32_t.
22659
38ad2cf5 226602008-03-05 Bean <bean123ch@gmail.com>
22661
22662 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
22663 (grub_multiboot): Set boot device.
22664
22665 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
22666
2b89344e 226672008-03-02 Bean <bean123ch@gmail.com>
22668
22669 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
22670 symlink_buffer.
22671
87a95d1f 226722008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
22673
22674 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
22675 texinfo.tex.
22676
22677 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
22678 modified.
22679
22680 * docs/fdl.texi: New file.
f19dbdb7 22681
87a95d1f 22682 * docs/mdate-sh: New file. Copied from gnulib.
22683 * docs/texinfo.tex: Likewise.
22684
22685 * config.guess: Updated from gnulib.
22686 * install-sh: Likewise.
22687
7dc15d8e 226882008-02-28 Robert Millan <rmh@aybabtu.com>
22689
22690 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
22691 (aout_mod_SOURCES): New variable.
22692 (aout_mod_CFLAGS): Likewise.
22693 (aout_mod_LDFLAGS): Likewise.
22694
22695 * conf/i386-ieee1275.rmk: Likewise.
22696
b00ab696 226972008-02-28 Robert Millan <rmh@aybabtu.com>
22698
22699 * util/update-grub.in: Reorganise terminal validity check. Accept
22700 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
22701 Based on suggestion by Franklin PIAT.
22702
79ca2d78 227032008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
22704
22705 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
22706 function.
22707 * util/getroot.c (grub_util_check_block_device): New function that
22708 returns the given argument if it is a block device and returns NULL else.
22709 * util/grub-probe.c (argument_is_device): New variable.
22710 (probe): Promote device_name from a variable to an argument. Receive
22711 device_name from grub_util_check_block_device() if path is NULL and from
22712 grub_guess_root_device() else. Do not free() device_name anymore.
f19dbdb7 22713 (options): Introduce new parameter '-d, --device'.
79ca2d78 22714 (main): Add description of the new parameter to the help screen.
22715 Rename path variable to argument. Set argument_is_device if the '-d'
22716 option is given. Pass argument to probe() depending on
22717 argument_is_device.
22718
0d16e571 227192008-02-24 Bean <bean123ch@gmail.com>
22720
22721 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
22722 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
22723 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
22724 (GRUB_ISO9660_VOLDESC_PART): Likewise.
22725 (GRUB_ISO9660_VOLDESC_END): Likewise.
22726 (grub_iso9660_primary_voldesc): New member escape.
22727 (grub_iso9660_data): New member joliet.
22728 (grub_iso9660_convert_string): New function.
22729 (grub_iso9660_mount): Detect joliet extension.
22730 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
22731 (grub_iso9660_iso9660_label): Likewise.
22732
22733 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
22734 (grub_setup_SOURCES): Add fs/udf.c.
22735 (grub_fstest_SOURCES): Likewise.
22736 (udf_mod_SOURCES): New variable.
22737 (udf_mod_CFLAGS): Likewise.
22738 (udf_mod_LDFLAGS): Likewise.
22739
22740 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
22741 (grub_emu_SOURCES): Likewise.
22742
22743 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
22744
22745 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
22746
22747 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
22748
22749 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
22750
22751 * fs/udf.c: New file.
22752
8a594a17 227532008-02-24 Robert Millan <rmh@aybabtu.com>
22754
22755 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
22756 (normal/lexer.c_DEPENDENCIES): New variables.
22757 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
22758 (normal/lexer.c_DEPENDENCIES): Likewise.
22759 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
22760 (normal/lexer.c_DEPENDENCIES): Likewise.
22761 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
22762 (normal/lexer.c_DEPENDENCIES): Likewise.
22763 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
22764 (normal/lexer.c_DEPENDENCIES): Likewise.
22765 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
22766 (normal/lexer.c_DEPENDENCIES): Likewise.
22767
2dc33c03 227682008-02-23 Robert Millan <rmh@aybabtu.com>
22769
22770 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
22771 since they were intended to be in hex. This didn't break previously
22772 because of a bug in gpt_partition_map_iterate() (see below).
22773
22774 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
22775 when checking the validity of GPT header.
22776 Remove `partno', since it always provides the same information as `i'.
22777
f6f4cfb0 227782008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
22779
22780 * include/grub/efi/time.h: Fix a wrong comment.
22781
79ff665f 227822008-02-19 Pavel Roskin <proski@gnu.org>
22783
22784 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
22785 message.
22786
d38e24c2 227872008-02-19 Bean <bean123ch@gmail.com>
22788
22789 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
22790 (aout_mod_SOURCES): New variable.
22791 (aout_mod_CFLAGS): Likewise.
22792 (aout_mod_LDFLAGS): Likewise.
22793 (_bsd_mod_SOURCES): New variable.
22794 (_bsd_mod_CFLAGS): Likewise.
22795 (_bsd_mod_LDFLAGS): Likewise.
22796 (bsd_mod_SOURCES): New variable.
22797 (bsd_mod_CFLAGS): Likewise.
22798 (bsd_mod_LDFLAGS): Likewise.
22799
22800 * include/grub/aout.h: New file.
22801
22802 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
22803
22804 * include/grub/i386/bsd.h: New file.
22805
22806 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
22807 to make it public.
22808
22809 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
22810 function is called, so that it's possible to change it inside the hook.
22811 (grub_elf64_load): Likewise.
22812 (grub_elf_file): Don't close the file if elf header is not found.
22813 (grub_elf_close): Close the file if grub_elf_file fails (The new
22814 grub_elf_file won't close it).
22815 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
22816 (grub_elf64_size): Likewise.
22817
22818 * kern/i386/loader.S (grub_unix_real_boot): New function.
22819
22820 * loader/aout.c: New file.
22821
22822 * loader/i386/bsd.c: New file.
22823
22824 * loader/i386/bsd_normal.c: New file.
22825
22826 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
22827
22828 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
fe987087 22829 can test other formats.
d38e24c2 22830
b93bdb0f 228312008-02-19 Robert Millan <rmh@aybabtu.com>
22832
22833 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
22834 (grub_gpt_partition_type_empty): Redefine with macro from
22835 `<grub/gpt_partition.h>'.
22836 (gpt_partition_map_iterate): Adjust partition type comparison.
22837
22838 Export `entry' as partmap-specific `part.data' struct.
22839 (grub_gpt_header, grub_gpt_partentry): Move from here ...
22840
22841 * include/grub/gpt_partition.h (grub_gpt_header)
22842 (grub_gpt_partentry): ... to here (new file).
22843
22844 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
22845
22846 (grub_gpt_partition_type_bios_boot): New const variable, defined
22847 with macro from `<grub/gpt_partition.h>'.
22848
22849 (setup): Replace `first_start' with `embed_region', which keeps
22850 track of the embed region (and is partmap-agnostic).
22851
22852 Replace find_first_partition_start() with find_usable_region(),
22853 which finds a usable region for embedding using partmap-specific
22854 knowledge (supports PC/MSDOS and GPT).
22855
22856 Fix all assumptions that the embed region start at sector 1, using
22857 `embed_region.start' from now on. Similarly, use `embed_region.end'
22858 rather than `first_start' to calculate available size.
22859
22860 In grub_util_info() message, replace "into after the MBR" with an
22861 indication of the specific sector our embed region starts at.
22862
66cb40f6 228632008-02-19 Robert Millan <rmh@aybabtu.com>
22864
22865 * DISTLIST: Replace `commands/ieee1275/halt.c' and
22866 `commands/ieee1275/reboot.c' with `commands/halt.c' and
22867 `commands/reboot.c'.
22868 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
22869 (halt_mod_SOURCES): Likewise.
22870 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
22871 (halt_mod_SOURCES): Likewise.
22872
b7202015 228732008-02-17 Christian Franke <franke@computer.org>
22874
22875 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
22876
32b0fc49 228772008-02-17 Robert Millan <rmh@aybabtu.com>
22878
22879 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
22880 set `first_start' to 0 for non-PC/MSDOS partition maps.
22881
aca63502 228822008-02-16 Robert Millan <rmh@aybabtu.com>
22883
22884 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
22885 do not assume partition map is PC/MSDOS before performing checks that
22886 are specific to that layout.
22887
0de8be86 228882008-02-13 Robert Millan <rmh@aybabtu.com>
22889
22890 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
22891 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
22892 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
22893
c3db8364 228942008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
22895
22896 * configure.ac: Only a cosmetic change on the handling of
22897 -fno-stack-protector.
22898
f714229e 228992008-02-12 Alexandre Boeglin <alex@boeglin.org>
22900
c3db8364 22901 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
22902 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
22903 reboot.c.
f714229e 22904 (grub_install_SOURCES): Add halt.mod and reboot.mod.
22905 (halt_mod_SOURCES): New variable.
22906 (halt_mod_CFLAGS): Likewise.
22907 (halt_mod_LDFLAGS): Likewise.
22908 (reboot_mod_SOURCES): Likewise.
22909 (reboot_mod_CFLAGS): Likewise.
22910 (reboot_mod_LDFLAGS): Likewise.
22911
c3db8364 22912 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
22913 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
22914 reboot.c.
f714229e 22915 (halt_mod_SOURCES): Likewise.
22916 (reboot_mod_SOURCES): Likewise.
22917
c3db8364 22918 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
22919 commands/i386/pc/reboot.c by commands/reboot.c.
f714229e 22920 (reboot_mod_SOURCES): Likewise.
22921
22922 * commands/i386/pc/reboot.c: merge this file ...
22923
22924 * commands/ieee1275/reboot.c: ... and this file ...
22925
22926 * commands/reboot.c: ... to this file.
c3db8364 22927 Add some precompiler directive to include the correct header for
22928 each machine.
f714229e 22929
22930 * commands/ieee1275/halt.c: move this file ...
22931
22932 * commands/halt.c: ... to here.
c3db8364 22933 Add some precompiler directive to include the correct header for
22934 each machine.
f714229e 22935
22936 * include/grub/efi/efi.h (grub_reboot): New function declaration.
22937 (grub_halt): Likewise.
22938
22939 * kern/efi/efi.c (grub_reboot): New function.
22940 (grub_halt): Likewise.
22941
c74493e0 229422008-02-12 Robert Millan <rmh@aybabtu.com>
22943
22944 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
22945 /dev (like it is done for /dev/mapper). This doesn't provide support
22946 for EVMS, but at least it is now easy to identify the problem when it
22947 arises.
22948
d0db4b04 229492008-02-11 Robert Millan <rmh@aybabtu.com>
22950
22951 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
22952 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
22953 comparing it with -1, not 0.
22954
bf748642 229552008-02-10 Robert Millan <rmh@aybabtu.com>
22956
22957 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
22958 `disk/lvm.c'.
22959 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
22960 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
22961
22962 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
22963 `disk/lvm.c' to the end of the list.
22964 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
22965 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
22966
b5db202a 229672008-02-10 Robert Millan <rmh@aybabtu.com>
22968
22969 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
22970 grub_print_error() instead. This will let user know why we're entering
22971 rescue mode.
22972 Based on suggestions from Sam Morris.
22973
83abee31 229742008-02-10 Alexandre Boeglin <alex@boeglin.org>
22975
22976 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
22977 on remaining N args, instead of "--" arg N times.
22978
78d5a08b 229792008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
22980
22981 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
22982 (fill_with_default_glyph): Changed to use unknown_glyph for fill
22983 pattern for unknown glyphs.
22984
68807e5f 229852008-02-09 Robert Millan <rmh@aybabtu.com>
22986
22987 * configure.ac: Probe for `help2man'.
22988 * Makefile.in (builddir): New variable.
22989 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
22990 or otherwise add a few flags/options to it.
22991 (install-local): For every executable utility or script that is
22992 installed, invoke $(HELP2MAN) to install a manpage based on --help
22993 output.
22994
22995 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
22996 that it doesn't prevent --help from working in build tree.
22997
22998 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
22999 with `bug-grub@gnu.org'.
23000 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
23001 * util/update-grub.in (usage): New function.
23002 Implement proper argument check, with support for --help and --version
23003 (as well as existing -y).
23004
230052008-02-09 Christian Franke <franke@computer.org>
0d9ff7f0 23006
23007 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
23008 avoid overwriting previous output.
23009 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
23010
c1962162 230112008-02-09 Robert Millan <rmh@aybabtu.com>
23012
23013 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
23014 drawing the menu.
23015
3dac2e3f 230162008-02-09 Robert Millan <rmh@aybabtu.com>
23017
23018 * commands/sleep.c: New file.
23019 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
23020 (sleep_mod_SOURCES): New variable.
23021 (sleep_mod_CFLAGS): Likewise.
23022 (sleep_mod_LDFLAGS): Likewise.
23023
7a634e08 230242008-02-09 Robert Millan <rmh@aybabtu.com>
23025
23026 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
23027 situations in which we can deduce the RAID size and the superblock
23028 doesn't match it.
23029
b92f0c18 230302008-02-09 Robert Millan <rmh@aybabtu.com>
23031
23032 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
23033 and return a grub_diskmemberlist_t composed of LVM physical volumes.
23034 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
23035
23036 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
23037 and return a grub_diskmemberlist_t composed of physical array members.
23038 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
23039
23040 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
23041 prototype.
23042 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
23043 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
23044 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
23045
23046 * util/grub-probe.c (probe): Move partmap probing code from here ...
23047 (probe_partmap): ... to here.
23048 (probe): Use probe_partmap() once for the disk we're probing, and
23049 additionally, when such disk contains a memberlist() struct member,
23050 once for each disk that is contained in the structure returned by
23051 memberlist().
23052
91a4bf68 230532008-02-09 Robert Millan <rmh@aybabtu.com>
23054
23055 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
23056 environment variable to 'all' in order to obtain debug output from
23057 non-util/ code.
23058 * util/i386/pc/grub-setup.c (main): Likewise.
23059
a96f9caa 230602008-02-08 Robert Millan <rmh@aybabtu.com>
23061
23062 * disk/raid.c (grub_raid_scan_device): Check for
23063 `array->device[sb.this_disk.number]' rather than for
23064 `array->device[sb.this_disk.number]->name', since the latter is not
fe6b695a 23065 guaranteed to be accessible.
a96f9caa 23066
b37a9222 230672008-02-08 Robert Millan <rmh@aybabtu.com>
23068
23069 * disk/raid.c: Update copyright.
23070 * fs/cpio.c: Likewise.
23071 * include/grub/raid.h: Likewise.
23072 * loader/i386/pc/multiboot.c: Likewise.
23073 * util/hostfs.c: Likewise.
23074
5626aee1 230752008-02-08 Robert Millan <rmh@aybabtu.com>
23076
23077 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
23078 to a grub_disk_t array.
23079 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
23080 `device[x]'.
23081 (grub_raid_scan_device): Replace `device[x].name' accesses with
23082 `device[x]->name'. Simplify initialization of `array->device[x]'.
23083
554f0187 230842008-02-08 Robert Millan <rmh@aybabtu.com>
23085
23086 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
23087 grub_dprintf() calls.
23088 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
23089 error message.
23090
1ec8425d 230912008-02-07 Christian Franke <franke@computer.org>
23092
23093 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
23094 instead of fseek and ftell to support large files.
23095 (grub_hostfs_read): Likewise.
23096
f2156fda 230972008-02-07 Robert Millan <rmh@aybabtu.com>
23098
23099 Patch from Jeroen Dekkers.
23100 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
fe6b695a 23101 failure, since successfully reading all array members might not be
f2156fda 23102 required.
23103
9216e0e7 231042008-02-06 Robert Millan <rmh@aybabtu.com>
23105
23106 * util/grub-probe.c (probe): Simplify partmap probing (with the
23107 assumption that the first word up to the underscore equals to
23108 the module name).
23109
b0dfd29a 231102008-02-06 Christian Franke <franke@computer.org>
23111
23112 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
23113 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
23114 last block of a cpio or tar stream.
23115 Check for "TRAILER!!!" instead of any empty data
23116 block to detect last block of a cpio stream.
23117 (grub_cpio_dir): Fix constness of variable np.
23118 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
23119 cpio or tar trailer is detected. This fixes a crash
23120 on open of a non existing file.
23121
c32865bf 231222008-02-05 Bean <bean123ch@gmail.com>
23123
23124 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
23125 address of entry.
23126 (grub_multiboot_load_elf64): Likewise.
23127 (grub_multiboot): Initialize mbi structure.
23128
23129 * util/grub-fstest.c: Don't include unused header file script.h.
23130
fe6b695a 23131 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
c32865bf 23132 of file.
23133 (grub_fstest_SOURCES): Likewise.
23134
409480b7 231352008-02-05 Robert Millan <rmh@aybabtu.com>
23136
23137 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
23138 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
23139 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
23140 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
23141
23142 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
23143 (translation_table): Replace hardcoded values with macros
23144 provided by `<grub/term.h>'.
23145
23146 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
23147 (keyboard_map): Correct/add a few values, with macros provided
23148 by `<grub/term.h>'.
23149 (keyboard_map_shift): Zero values that don't differ from their
23150 `keyboard_map' equivalents.
23151 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
23152 Discard the second scan code that is always sent by Caps lock.
23153 Only use `keyboard_map_shift' when it provides a non-zero value,
23154 otherwise fallback to `keyboard_map'.
23155
99fadbaa 231562008-02-04 Bean <bean123ch@gmail.com>
23157
23158 * Makefile.in (enable_grub_fstest): New variable.
23159
23160 * conf/common.rmk (grub_fstest_init.lst): New rule.
23161 (grub_fstest_init.h): Likewise.
23162 (grub_fstest_init.c): Likewise.
23163 (util/grub-fstest.c_DEPENDENCIES): New variable.
23164 (grub_fstest_SOURCES): Likewise.
23165
23166 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
23167
23168 * util/grub-fstest.c: New file.
23169
bf567c50 231702008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
23171
23172 Make grub-setup handle a separate root device.
f19dbdb7 23173
bf567c50 23174 * util/i386/pc/grub-setup.c (setup): Always open the root device,
23175 so that the root device can be compared with the destination
23176 device.
23177 When embedding the core image, if the root and destination devices
23178 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
23179 0xFF.
23180 When not embedding, set ROOT_DRIVE to 0xFF.
f19dbdb7 23181
9be6b98b 231822008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
23183
23184 Add support for having a grub directory in a different drive. This
23185 is still only the data handling part.
f19dbdb7 23186
9be6b98b 23187 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
23188 (codestart): Save %dh in GRUB_ROOT_DRIVE.
23189 (grub_root_drive): New variable.
23190
23191 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
23192 instead of GRUB_BOOT_DRIVE to construct a device name. Set
23193 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
23194 as it was.
23195
23196 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
23197
23198 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
23199 macro.
23200 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
23201
23202 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
23203 is bogus, because PXE booting does not specify any drive
23204 correctly.
23205
23206 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
23207 am not sure if this is really correct.
23208
23209 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
23210 is always identical to the boot drive when booting from a CD.
23211
23212 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
23213 longer.
23214 (root_drive): New variable.
23215 (real_start): Unconditionally set %dh to ROOT_DRIVE.
23216 (setup_sectors): Push %dx right after popping it, because %dh will
23217 be modified later.
23218 (copy_buffer): Restore %dx.
23219
e0ca0677 232202008-02-03 Robert Millan <rmh@aybabtu.com>
23221
23222 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
23223 use `cdboot.img' for cdrom images.
23224
3b3f6629 232252008-02-03 Robert Millan <rmh@aybabtu.com>
23226
23227 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
23228 only setup gfxterm when `font' command has succeeded.
23229
d42b3672 232302008-02-03 Robert Millan <rmh@aybabtu.com>
23231
23232 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
23233 (grub_rescue_cmd_multiboot_loader)
23234 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
23235
fa370ea6 232362008-02-03 Pavel Roskin <proski@gnu.org>
23237
e0c5dacb 23238 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
fa370ea6 23239 %edx and %esi from stack only after grub_gate_a20() is called.
23240 grub_gate_a20() clobbers %edx.
23241
f2a76e1d 232422008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
23243
23244 * configure.ac (AC_INIT): Bumped to 1.96.
23245
23246 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
23247 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
23248 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
23249 video/readers/png.c.
23250
90fd32d1 232512008-02-03 Bean <bean123ch@gmail.com>
9be665dd 23252
23253 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
23254 (cdboot_img_SOURCES): New variable.
23255 (cdboot_img_ASFLAGS): New variable.
23256 (cdboot_img_LDFLAGS): New variable.
23257
23258 * boot/i386/pc/cdboot.S: New file.
23259
23260 * disk/i386/pc/biosdisk.c (cd_start): New variable.
23261 (cd_count): Likewise.
23262 (grub_biosdisk_get_drive): Add support for cd device.
23263 (grub_biosdisk_call_hook): Likewise.
23264 (grub_biosdisk_iterate): Likewise.
23265 (grub_biosdisk_open): Likewise.
23266 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
23267 (grub_biosdisk_rw): Support reading from cd device.
23268 (GRUB_MOD_INIT): Iterate cd devices.
23269
23270 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
23271 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
23272 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
23273
23274 * kern/i386/pc/init.c (make_install_device): Check for cd device.
23275
4020aa53 232762008-02-02 Robert Millan <rmh@aybabtu.com>
23277
23278 * commands/read.c: New file.
23279 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
23280 (read_mod_SOURCES): New variable.
23281 (read_mod_CFLAGS): Likewise.
23282 (read_mod_LDFLAGS): Likewise.
23283
e03a1132 232842008-02-02 Robert Millan <rmh@aybabtu.com>
23285
23286 * normal/main.c (grub_normal_execute): Check for `menu->size' when
23287 determining whether menu has to be displayed.
23288
58c69220 232892008-02-02 Marco Gerards <marco@gnu.org>
23290
23291 * bus/pci.c: New file.
23292
23293 * include/grub/pci.h: Likewise.
23294
23295 * include/grub/i386/pc/pci.h: Likewise.
23296
23297 * commands/lspci.c: Likewise.
23298
23299 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
23300 `lspci.mod'.
23301 (pci_mod_SOURCES): New variable.
23302 (pci_mod_CFLAGS): Likewise.
23303 (pci_mod_LDFLAGS): Likewise.
23304 (lspci_mod_SOURCES): Likewise.
23305 (lspci_mod_CFLAGS): Likewise.
f19dbdb7 23306 (lspci_mod_LDFLAGS): Likewise.
58c69220 23307
c004e1b4 233082008-02-02 Bean <bean123ch@gmail.com>
23309
23310 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
23311 (grub_ufs_get_file_block): Fix indirect block calculation problem.
23312
23313 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
23314 (grub_xfs_btree_node): New structure.
23315 (grub_xfs_btree_root): New structure.
23316 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
23317 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
23318 (GRUB_XFS_EXTENT_BLOCK): Likewise.
23319 (GRUB_XFS_EXTENT_SIZE): Likewise.
23320 (grub_xfs_read_block): Support btree format type.
23321 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
23322 Use directory block as basic unit.
23323
23324 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
23325
23326 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
23327 __attribute__ ((__regparm__ (1))).
23328
f95562bf 233292008-02-01 Robert Millan <rmh@aybabtu.com>
23330
23331 Correct a mistake in previous commit.
23332
23333 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
23334 top.
23335 (normal/command.c_DEPENDENCIES): New variable.
23336
7d31f41f 233372008-02-01 Robert Millan <rmh@aybabtu.com>
23338
23339 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
23340 top.
23341 (normal/command.c_DEPENDENCIES): New variable.
23342 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
23343 * conf/i386-ieee1275.rmk: Likewise.
23344 * conf/i386-linuxbios.rmk: Likewise.
23345 * conf/i386-pc.rmk: Likewise.
23346 * conf/sparc64-ieee1275.rmk: Likewise.
23347 * conf/powerpc-ieee1275.rmk: Likewise.
23348 (grub_emu_SOURCES): Add `fs/fshelp.c'.
23349
23350 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
23351
60b6be74 233522008-02-01 Robert Millan <rmh@aybabtu.com>
23353
23354 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
23355 call at beginning of function.
23356
078522ab 233572008-01-31 Pavel Roskin <proski@gnu.org>
23358
23359 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
d2c11005 23360 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
23361 (grub_mkrescue_SOURCES): Likewise.
078522ab 23362 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
23363
ccaa8a5f 233642008-01-30 Robert Millan <rmh@aybabtu.com>
23365
23366 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
23367 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
23368 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
23369 (grub_probe_SOURCES): ... to here.
23370
23371 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
23372 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
23373 * conf/i386-ieee1275.rmk: Likewise.
23374 * conf/i386-linuxbios.rmk: Likewise.
23375 * conf/powerpc-ieee1275.rmk: Likewise.
23376
ae5a9cd7 233772008-01-30 Tristan Gingold <gingold@free.fr>
23378
23379 * kern/rescue.c: Silently accept empty lines.
23380
70bc2ef2 233812008-01-29 Bean <bean123ch@gmail.com>
23382
23383 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
23384 (real_code_2): Code cleanup and change comment style.
23385 (move_memory): Avoid using 32-bit address mode.
23386
6a4d50ea 233872008-01-29 Bean <bean123ch@gmail.com>
23388
23389 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
23390 (png_mod_SOURCES): New variable.
23391 (png_mod_CFLAGS): Likewise.
23392 (png_mod_LDFLAGS): Likewise.
23393
23394 * video/readers/png.c: New file.
23395
11cc30ac 233962008-01-28 Robert Millan <rmh@aybabtu.com>
23397
23398 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
23399 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
23400 `ifndef GRUB_MOD_GAP' hack.
23401 * util/elf/grub-mkimage.c (add_segments): Likewise.
23402
3abc589f 234032008-01-27 Robert Millan <rmh@aybabtu.com>
23404
23405 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
23406 `GRUB_MOD_GAP' for platforms in which it's not defined.
962ca133 23407 * util/elf/grub-mkimage.c (add_segments): Likewise.
3abc589f 23408
e1907778 234092008-01-27 Robert Millan <rmh@aybabtu.com>
23410
23411 Get grub-emu to build again (including parallel builds).
23412
23413 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
23414 Split into ...
23415 (util/grub-emu.c_DEPENDENCIES): ... this, ...
23416 (normal/execute.c_DEPENDENCIES): ... this, ...
23417 (grub-emu_DEPENDENCIES): ... and this.
23418
23419 * conf/i386-efi.rmk: Likewise.
23420 * conf/i386-linuxbios.rmk: Likewise.
23421 * conf/i386-ieee1275.rmk: Likewise.
23422 * conf/powerpc-ieee1275.rmk: Likewise.
23423 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
23424
2216b101 234252008-01-27 Robert Millan <rmh@aybabtu.com>
23426
23427 * NEWS: Add a few items.
23428
f75172d9 234292008-01-27 Robert Millan <rmh@aybabtu.com>
23430
23431 Fix parallel builds with grub-emu. Based on earlier commit for
23432 grub-probe and grub-setup.
23433
23434 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
23435 (util/grub-emu.c_DEPENDENCIES): ... this.
23436 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
23437 (util/grub-emu.c_DEPENDENCIES): ... this.
23438 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
23439 (util/grub-emu.c_DEPENDENCIES): ... this.
23440 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
23441 (util/grub-emu.c_DEPENDENCIES): ... this.
23442 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
23443 (util/grub-emu.c_DEPENDENCIES): ... this.
23444
3f51de77 234452008-01-27 Pavel Roskin <proski@gnu.org>
23446
23447 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
23448 to create a gap between _end and the modules added to the image
23449 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
23450 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
23451 * util/elf/grub-mkimage.c (add_segments): Likewise.
23452
2033f53e 234532008-01-26 Pavel Roskin <proski@gnu.org>
23454
23455 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
23456 just return an error.
23457
22da1f6f 234582008-01-26 Bean <bean123ch@gmail.com>
23459
23460 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
23461 (grub_reiserfs_get_item): Save offset of the next item.
23462 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
23463
2a9525e6 234642008-01-25 Robert Millan <rmh@aybabtu.com>
23465
23466 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
23467 make all filesystem sources appear together (possibly fixing omissions
23468 while at it).
23469 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
23470 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
23471 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
23472 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
23473
23474 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
23475 add `kern/file.c'.
23476 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
23477 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
23478 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
23479 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
23480
23481 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
23482 (probe): Add a sanity check to make sure of our ability to read
23483 requested files when probing for filesystem type.
23484
23485 * genmk.rb: Update copyright year (2007).
23486
23487 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
23488 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
23489 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
23490 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
23491 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
23492 : Remove function prototypes.
23493
b95f71b5 234942008-01-25 Robert Millan <rmh@aybabtu.com>
23495
23496 Revert my previous commits (based on wrong assumption of how grub_errno
23497 works).
23498
fe6b695a 23499 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
b95f71b5 23500 * kern/file.c (grub_file_open): Likewise.
23501
d08bbb49 235022008-01-24 Pavel Roskin <proski@gnu.org>
23503
23504 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
23505 that hang if GRUB tries to setup colors.
23506 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
23507 colors for firmwares that don't support it.
23508 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
23509 Recognize Open Hack'Ware, set flags to work around its
23510 limitations.
23511
605e36ed 235122008-01-24 Robert Millan <rmh@aybabtu.com>
23513
23514 * kern/file.c (grub_file_open): Do not account previous failures of
23515 unrelated functions when grub_errno is checked for.
23516 Reported by Oleg Strikov.
23517
bac332a1 235182008-01-24 Bean <bean123ch@gmail.com>
23519
23520 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
23521 (grub_ufs_sblock): New member volume name.
23522 (grub_ufs_find_file): Fix string copy bug.
23523 (grub_ufs_label): Implement this function properly.
23524
23525 * fs/hfs.c (grub_hfs_cnid_type): New enum.
23526 (grub_hfs_iterate_records): Use the correct file number for extents
23527 and catalog file. Fix problem in next index calculation.
23528 (grub_hfs_find_node): Replace recursive function call with loop.
23529 (grub_hfs_iterate_dir): Replace recursive function call with loop.
23530
15c80c09 235312008-01-23 Robert Millan <rmh@aybabtu.com>
23532
23533 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
23534 `<grub/symbol.h>' and `<grub/multiboot.h>'.
23535 (grub_multiboot2_real_boot): New function prototype.
23536
23537 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
23538 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
23539
23540 * kern/i386/ieee1275/init.c (grub_os_area_addr)
23541 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
23542
305338fd 235432008-01-23 Robert Millan <rmh@aybabtu.com>
23544
23545 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
23546 #ifdef'ed out grub_printf().
23547
3ea52685 235482008-01-23 Robert Millan <rmh@aybabtu.com>
23549
23550 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
23551 grub_dprintf calls, since they make "debug=all" mode unusable.
23552 (grub_console_checkkey): Likewise.
23553
5882ae4b 235542008-01-23 Robert Millan <rmh@aybabtu.com>
23555
23556 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
23557 `term/i386/pc/at_keyboard.c'.
23558 (pkglib_MODULES): Add `serial.mod'.
23559 (serial_mod_SOURCES): New variable.
23560 (serial_mod_CFLAGS): Likewise.
23561 (serial_mod_LDFLAGS): Likewise.
23562
23563 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
23564 `<grub/powerpc/ieee1275/console.h>'.
23565 (grub_keyboard_controller_init): New function prototype.
23566 (grub_console_checkkey): Likewise.
23567 (grub_console_getkey): Likewise.
23568
23569 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
23570 keyboard on i386.
23571
23572 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
23573 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
23574
06ab5303 235752008-01-23 Robert Millan <rmh@aybabtu.com>
23576
23577 * kern/i386/pc/init.c (make_install_device): When memdisk image is
23578 present, "(memdisk)/boot/grub" becomes the default prefix.
23579
23580 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
23581 a memdisk tarball with all the modules. Add --overlay=DIR option that
23582 allows users to overlay additional files into the image.
23583
dbb475a4 235842008-01-23 Robert Millan <rmh@aybabtu.com>
23585
23586 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
23587 and `machine/memory.h'.
23588 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
23589 (_multiboot_mod_SOURCES): New variable.
23590 (_multiboot_mod_CFLAGS): Likewise.
23591 (_multiboot_mod_LDFLAGS): Likewise.
23592 (multiboot_mod_SOURCES): Likewise.
23593 (multiboot_mod_CFLAGS): Likewise.
23594 (multiboot_mod_LDFLAGS): Likewise.
23595
23596 * include/grub/i386/ieee1275/loader.h: New file.
23597
23598 * include/grub/i386/ieee1275/machine.h: Likewise.
23599
23600 * include/grub/i386/ieee1275/memory.h: Likewise.
23601
23602 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
23603 variable declaration.
23604 (grub_os_area_size): Likewise.
23605
23606 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
23607 (grub_lower_mem, grub_upper_mem): New variables.
23608 (grub_stop_floppy): New function (just to make
23609 grub_multiboot2_real_boot() happy).
23610
23611 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
23612 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
23613 (grub_stop): New function.
23614 Include `"../realmode.S"' and `"../loader.S"'.
23615
23616 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
23617 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
23618
23619 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
23620 rely on grub_multiboot2_real_boot() for final boot.
23621
25638629 236222008-01-22 Robert Millan <rmh@aybabtu.com>
23623
23624 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
23625 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
23626 device that doesn't look like an SD card.
23627 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
23628 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
23629 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
23630 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
23631 found.
23632
9dad816d 236332008-01-22 Robert Millan <rmh@aybabtu.com>
23634
23635 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
23636 avoid claiming over our own code.
23637
34842f2d 236382008-01-22 Bean <bean123ch@gmail.com>
23639
23640 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
23641 (jpeg_mod_SOURCES): New variable.
23642 (jpeg_mod_CFLAGS): Likewise.
23643 (jpeg_mod_LDFLAGS): Likewise.
23644
23645 * video/readers/jpeg.c : New file.
23646
44023a28 236472008-01-22 Bean <bean123ch@gmail.com>
23648
23649 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
23650 there are no more items.
23651
bc2d8ac6 236522008-01-21 Robert Millan <rmh@aybabtu.com>
23653
23654 * kern/mm.c (grub_mm_init_region): Improve debug message.
23655
261bd4bc 236562008-01-21 Robert Millan <rmh@aybabtu.com>
23657
23658 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
23659 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
23660 address.
23661 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
23662 a C macro.
23663 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
23664 Indicates start of upper memory.
23665 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
23666 (generate_image): Abort when image size is big enough to corrupt
23667 upper memory.
23668
23669 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
23670 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
23671 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
23672 instead of hardcoding 0xA0000.
23673 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
23674 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
23675 instead of hardcoding 0xA0000.
23676
f970b55e 236772008-01-21 Robert Millan <rmh@aybabtu.com>
23678
23679 * disk/memdisk.c (memdisk_size): New variable.
23680 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
23681 `memdisk_size'.
23682 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
23683 image to dynamic memory.
23684 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
23685 `memdisk_size'. Free memdisk block.
23686
1a8b0526 236872008-01-21 Robert Millan <rmh@aybabtu.com>
23688
23689 Fix detection of very small filesystems (like tar).
23690
23691 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
23692 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
23693 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
23694 a problem with this disk).
23695
6e9b4aab 236962008-01-21 Robert Millan <rmh@aybabtu.com>
23697
23698 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
23699 on grub_biosdisk_rw_standard() error.
23700
0d8837b2 237012008-01-21 Robert Millan <rmh@aybabtu.com>
23702
23703 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
23704 recent changes.
23705 * kern/elf.c: Likewise.
23706 * kern/ieee1275/ieee1275.c: Likewise.
23707 * kern/powerpc/ieee1275/openfw.c: Likewise.
23708 * term/ieee1275/ofconsole.c: Likewise.
23709
ffd36e34 237102008-01-21 Robert Millan <rmh@aybabtu.com>
23711
23712 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
23713
3f0093d0 23714 * include/grub/kernel.h (grub_arch_memdisk_addr)
23715 (grub_arch_memdisk_size): Moved from here ...
ffd36e34 23716
3f0093d0 23717 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
23718 (grub_arch_memdisk_size): ... to here.
ffd36e34 23719
6c391b21 237202008-01-21 Robert Millan <rmh@aybabtu.com>
23721
23722 Mostly based on bugfix from Bean.
23723
23724 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
23725 attribute with hook() parameter.
23726 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
23727 declaration.
23728 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
23729 attribute with hook() parameter.
23730 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
23731 declaration.
23732
55a581dc 237332008-01-21 Robert Millan <rmh@aybabtu.com>
23734
23735 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
23736 (pkglib_MODULES): Add `memdisk.mod'.
23737 (memdisk_mod_SOURCES): New variable.
23738 (memdisk_mod_CFLAGS): Likewise.
23739 (memdisk_mod_LDFLAGS): Likewise.
23740
23741 * disk/memdisk.c: New file.
23742
23743 * include/grub/disk.h (grub_disk_dev_id): Add
23744 `GRUB_DISK_DEVICE_MEMDISK_ID'.
23745
23746 * include/grub/i386/pc/kernel.h
23747 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
23748 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
23749 (grub_kernel_image_size): New variable declaration.
23750 (grub_total_module_size): Likewise.
23751 (grub_memdisk_image_size): Likewise.
23752
23753 * include/grub/i386/pc/memory.h
23754 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
23755
23756 * include/grub/kernel.h: Include `<grub/symbol.h>'.
23757 (grub_arch_memdisk_addr): New variable declaration.
23758 (grub_arch_memdisk_size): Likewise.
23759
23760 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
23761 (grub_arch_memdisk_size): Likewise.
23762
23763 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
23764 (codestart): Replace hardcoded `0x100000' with
23765 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
23766
23767 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
23768 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
23769 not NULL, append the contents of the file it refers to, at the end of
23770 the compressed kernel image. Initialize `grub_memdisk_image_size'
23771 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
23772 (options): Add "memdisk"|'m' option.
23773 (main): Parse --memdisk|-m option, and pass user-provided path as
23774 parameter to generate_image().
23775
3d7f54c9 237762008-01-20 Robert Millan <rmh@aybabtu.com>
23777
23778 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
23779 grub_dprintf() calls from here ...
23780 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
23781
0bf74728 237822008-01-20 Robert Millan <rmh@aybabtu.com>
23783
23784 Fix detection of "real mode" when /options/real-mode? doesn't exist.
23785
23786 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
23787 declaration.
23788 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
23789 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
23790 `GRUB_IEEE1275_FLAG_REAL_MODE'.
fe6b695a 23791 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
0bf74728 23792 property).
23793 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
23794 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
23795
33bf70a7 237962008-01-19 Robert Millan <rmh@aybabtu.com>
23797
fe6b695a 23798 Get rid of confusing function (superseded by
33bf70a7 23799 `grub_ieee1275_get_integer_property')
23800 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
23801 prototype.
23802 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
23803 function.
23804 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
23805 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
fe987087 23806 in native endianness from grub_ieee1275_get_integer_property().
33bf70a7 23807
e2da7d26 238082008-01-19 Robert Millan <rmh@aybabtu.com>
23809
23810 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
23811 command after "shut-down", since implementations differ on which
23812 the command for halt is.
23813
59f1fd8d 238142008-01-19 Robert Millan <rmh@aybabtu.com>
23815
23816 * include/grub/i386/linuxbios/console.h: Add header protection.
23817 (grub_keyboard_controller_init): New function prototype.
23818 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
23819 (KEYBOARD_COMMAND_READ): Likewise.
23820 (KEYBOARD_COMMAND_WRITE): Likewise.
23821 (KEYBOARD_SCANCODE_SET1): Likewise.
23822 (grub_keyboard_controller_write): New function.
23823 (grub_keyboard_controller_read): Likewise.
23824 (grub_keyboard_controller_init): Likewise.
23825
23826 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
23827 (grub_console_init): On coreboot/LinuxBIOS, call
23828 grub_keyboard_controller_init().
23829
5f5a7c15 238302008-01-19 Robert Millan <rmh@aybabtu.com>
23831
23832 PowerPC changes provided by Pavel Roskin.
23833
23834 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
23835 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
23836 don't rely on cmain() doing it.
23837 * kern/i386/ieee1275/startup.S (_start): Store %eax in
23838 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
23839
1210e168 238402008-01-16 Robert Millan <rmh@aybabtu.com>
23841
23842 * include/grub/i386/linuxbios/memory.h
23843 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
23844 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
23845 receive `table_header' as argument. Instead, probe for it in the
23846 known memory ranges where it can be present.
23847 (grub_available_iterate): Do not pass a fixed `table_header' address
23848 to grub_linuxbios_table_iterate().
23849
3d04eab8 238502008-01-15 Robert Millan <rmh@aybabtu.com>
23851
23852 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
23853 * conf/i386-ieee1275.rmk: New file.
23854 * include/grub/i386/ieee1275/console.h: Likewise.
23855 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
23856 * include/grub/i386/ieee1275/kernel.h: Likewise.
23857 * include/grub/i386/ieee1275/time.h: Likewise.
23858 * kern/i386/ieee1275/init.c: Likewise.
23859 * kern/i386/ieee1275/startup.S: Likewise.
23860
d1bc1b73 238612008-01-15 Robert Millan <rmh@aybabtu.com>
23862
23863 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
23864 when pointers are 32-bit (but still do set it to one when they are
23865 64-bit).
23866
66a65807 238672008-01-15 Robert Millan <rmh@aybabtu.com>
23868
23869 * include/grub/ieee1275/ieee1275.h
23870 (grub_ieee1275_get_integer_property): New function prototype.
23871
23872 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
23873 (grub_ieee1275_get_integer_property): New function. Wraps around
fe987087 23874 grub_ieee1275_get_property() to handle endianness.
66a65807 23875
23876 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
23877 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
fe6b695a 23878 where appropriate.
66a65807 23879 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
23880 (grub_map): Likewise.
23881 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
23882
a83ccafd 238832008-01-15 Bean <bean123ch@gmail.com>
23884
23885 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
23886 (grub_script_execute_cmdline): Reset grub_errno.
23887
23888 * normal/main.c (read_config_file): Reset grub_errno.
23889
23890 * normal/parse.y (script_init): New.
23891 (script): Move function and menuentry here.
23892 (delimiter): New.
23893 (command): Add delimiter at the end of command.
23894 (commands): Adjust to match the new command.
23895 (commandblock): Remove grub_script_lexer_record_start.
f19dbdb7 23896 (menuentry): Add grub_script_lexer_record_start, use the new commands.
a83ccafd 23897 (if): Use the new commands.
23898
23899 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
23900
df6ecfc6 239012008-01-15 Robert Millan <rmh@aybabtu.com>
23902
23903 * normal/menu.c (run_menu): Move timeout message from here ...
23904 (print_timeout): ... to here.
23905 (run_menu): Use print_timeout() once during initial draw to print
23906 the whole message, and again in every clock tick to update only
23907 the number of seconds.
23908
87ae25eb 239092008-01-15 Robert Millan <rmh@aybabtu.com>
23910
23911 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
23912 actual size of `available' from grub_ieee1275_get_property(), and
23913 restrict parsing to that bound.
23914
47bf09a4 239152008-01-15 Christian Franke <franke@computer.org>
23916
23917 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
23918 (argp_program_version): Remove variable.
23919 (argp_program_bug_address): Likewise.
23920 (options): Convert from struct argp_option to struct option.
23921 (struct arguments): Remove.
23922 (parse_opt): Remove.
23923 (usage): New function.
23924 (main): Replace struct args members by simple variables.
23925 Replace argp_parse() by getopt_long().
23926 Add switch to evaluate options.
23927 Add missing "(...)" around root_dev in prefix string.
23928
c86f1469 239292008-01-14 Robert Millan <rmh@aybabtu.com>
23930
23931 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
23932 for grub_ieee1275_exit(), in order to improve portability.
23933
e622c559 239342008-01-14 Robert Millan <rmh@aybabtu.com>
23935
23936 * util/grub.d/10_linux.in (prefix): Define.
23937 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
23938
44cb1ec8 239392008-01-13 Pavel Roskin <proski@gnu.org>
23940
23941 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
23942 grub_errno if no errors have been detected.
23943
1eb8c802 239442008-01-12 Robert Millan <rmh@aybabtu.com>
23945
23946 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
23947 (grub_util_get_dev_abstraction): New function prototype.
23948
23949 * util/getroot.c: Include `<grub/util/getroot.h>'
23950 (grub_util_get_grub_dev): Move detection of abstraction type to ...
23951 (grub_util_get_dev_abstraction): ... here (new function).
23952
23953 * util/grub-probe.c: Convert PRINT_* to an enum. Add
23954 `PRINT_ABSTRACTION'.
23955 (probe): Probe for abstraction type when requested.
23956 (main): Understand `--target=abstraction'.
23957
23958 * util/i386/efi/grub-install.in: Add abstraction module to core
23959 image when it is found to be necessary.
23960 * util/i386/pc/grub-install.in: Likewise.
23961 * util/powerpc/ieee1275/grub-install.in: Likewise.
23962
23963 * util/update-grub_lib.in (font_path): Return system path without
23964 converting to GRUB path.
23965 * util/update-grub.in: Convert system path returned by font_path()
23966 to a GRUB path. Use `grub-probe -t abstraction' to determine what
23967 abstraction module is needed for loading fonts (if any). Export
23968 that as `GRUB_PRELOAD_MODULES'.
23969 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
23970 insmod commands).
23971
52bd3de9 239722008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
23973
23974 Remove some unused code from reiserfs.
f19dbdb7 23975
52bd3de9 23976 * fs/reiserfs.c (struct grub_reiserfs_key)
23977 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
23978 (struct grub_reiserfs_node_body): Removed.
23979 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
23980 Likewise.
23981 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
23982 Likewise.
23983 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
23984 Likewise.
23985 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
23986 Likewise.
23987 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
23988 Likewise.
23989 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
23990 Likewise.
23991 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
23992 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
23993 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
23994
2f80039d 239952008-01-10 Robert Millan <rmh@aybabtu.com>
23996
23997 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
23998 Determines if a file is garbage left by packaging systems, etc.
23999 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
24000 for processing /etc/grub.d scripts.
24001 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
24002 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
24003 as a condition for processing Linux images.
24004
87888032 240052008-01-10 Pavel Roskin <proski@gnu.org>
24006
24007 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
24008 to compile reiserfs.c on PowerPC.
24009
7e54fced 240102008-01-10 Robert Millan <rmh@aybabtu.com>
de9993e0 24011
24012 * kern/device.c (grub_device_iterate): Do not abort device iteration
24013 when one of the devices cannot be opened.
24014 * kern/disk.c (grub_disk_open): Do not account previous failures of
24015 unrelated functions when grub_errno is checked for.
24016
5aa541e6 240172008-01-08 Robert Millan <rmh@aybabtu.com>
24018
24019 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
24020 `! grub_linux_is_bzimage', change order of address comparison to make
24021 it more intuitive, and improve "too big zImage" error message.
24022
7076340d 240232008-01-08 Robert Millan <rmh@aybabtu.com>
24024
24025 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
24026 `$(update-grub_DATA)'.
24027 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
24028 targets.
24029
9ca70333 240302008-01-07 Robert Millan <rmh@aybabtu.com>
24031
24032 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
24033 which instruction is modified by grub-setup during installation
24034 (since it wasn't obvious by only looking at this file).
24035
38ccf575 240362008-01-07 Robert Millan <rmh@aybabtu.com>
24037
24038 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
24039 listing actual TODO items.
24040
f5db4291 240412008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
24042
868967cf 24043 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
24044 correctly.
24045 (grub_reiserfs_get_key_offset): Likewise.
24046 (grub_reiserfs_set_key_offset): Likewise.
24047 (grub_reiserfs_set_key_type): Likewise.
fe6b695a 24048 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
868967cf 24049
24050 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
24051 better to remove the bitfield version completely.
f19dbdb7 24052
868967cf 240532008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
f19dbdb7 24054
f5db4291 24055 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
24056 allocated from the heap, due to the fshelp implementation.
24057 (grub_reiserfs_dir): Free NODE, due to the same reason.
24058
492e6d9d 240592008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
24060
24061 Mostly from Vincent Pelletier:
f19dbdb7 24062
492e6d9d 24063 * fs/reiserfs.c: New file.
f19dbdb7 24064
492e6d9d 24065 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
24066 (reiserfs_mod_SOURCES): New variable.
24067 (reiserfs_mod_CFLAGS): Likewise.
24068 (reiserfs_mod_LDFLAGS): Likewise.
24069
24070 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
24071 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
24072 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
24073 normal/color.c.
24074
9ce3e7c1 240752008-01-06 Robert Millan <rmh@aybabtu.com>
24076
24077 * normal/color.c: Remove `<grub/env.h>'.
24078
f3b58148 240792008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
24080
24081 * include/grub/normal.h: Include <grub/env.h>.
24082
7ac3bcfa 240832008-01-05 Robert Millan <rmh@aybabtu.com>
24084
24085 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
24086 usage example with `(hd0,1)'.
fb358190 24087 Reported by Samuel Thibault.
7ac3bcfa 24088
c8ee99d7 240892008-01-05 Robert Millan <rmh@aybabtu.com>
24090
24091 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
24092 (grub_linux_boot_zimage): Rename to ...
24093 (grub_linux_boot): ... this.
24094 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
24095 (grub_linux_boot_zimage): Conditionalize zImage copy.
24096
24097 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
24098 (grub_linux_boot_bzimage): Remove prototype.
24099 (grub_linux_boot_zimage): Rename to ...
24100 (grub_linux_boot): ... this.
24101
24102 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
24103 (grub_linux_boot): Remove function.
24104
0ece25b1 241052008-01-05 Robert Millan <rmh@aybabtu.com>
24106
24107 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
24108 (grub_env_write_color_highlight): Likewise.
24109 (grub_wait_after_message): Likewise.
24110
24111 * normal/color.c: New file.
24112
24113 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
24114 (normal_mod_DEPENDENCIES): Likewise.
24115
24116 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
24117 (normal_mod_DEPENDENCIES): Likewise.
24118
24119 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
24120 (normal_mod_DEPENDENCIES): Likewise.
24121
24122 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
24123 (normal_mod_DEPENDENCIES): Likewise.
24124
24125 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
24126 for waiting after a message is printed.
24127 * normal/main.c (read_config_file): Likewise.
24128 (grub_normal_init): Register grub_env_write_color_normal() and
24129 grub_env_write_color_highlight() hooks. Mark `color_normal' and
24130 `color_highlight' variables as global.
24131
24132 * normal/menu.c (grub_wait_after_message): New function.
24133 (grub_color_menu_normal): New variable. Replaces ...
24134 (GRUB_COLOR_MENU_NORMAL): ... this macro.
24135 (grub_color_menu_highlight): New variable. Replaces ...
24136 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
24137 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
24138 `GRUB_TERM_COLOR_STANDARD'.
24139 (print_message): Use `grub_setcolorstate' to reload colors. Rename
24140 `normal_code' and `highlight_code' to `old_color_normal' and
24141 `old_color_highlight', respectively.
24142 (grub_menu_init_page): Update colors when drawing the menu, based on
24143 `menu_color_normal' and `menu_color_highlight' variables.
24144 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
24145 a message is printed.
24146
182dd4e5 241472008-01-05 Robert Millan <rmh@aybabtu.com>
24148
24149 * kern/env.c (grub_env_context_open): Propagate hooks for global
24150 variables to new context.
24151
24152 * kern/main.c (grub_set_root_dev): Export `root' variable.
24153
ddf8f6ad 241542008-01-05 Robert Millan <rmh@aybabtu.com>
24155
24156 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
fe6b695a 24157 discs unconditionally, since udev and others have options to provide
ddf8f6ad 24158 them.
24159
d8b43d9b 241602008-01-05 Robert Millan <rmh@aybabtu.com>
24161
24162 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
24163
2bff2de3 241642008-01-04 Christian Franke <franke@computer.org>
24165
24166 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
24167 of eisa_mmap.
24168
97eab917 241692008-01-03 Pavel Roskin <proski@gnu.org>
24170
24171 * kern/i386/linuxbios/init.c: Put "void" to all function
24172 declarations with no arguments.
24173 * kern/powerpc/ieee1275/init.c: Likewise.
24174 * term/i386/pc/at_keyboard.c: Likewise.
24175 * term/i386/pc/vga_text.c: Likewise.
24176 * util/grub-mkdevicemap.c: Likewise.
24177
b9416d00 241782008-01-02 Robert Millan <rmh@aybabtu.com>
24179
24180 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
24181 message when loaded image is out of bounds.
24182 (grub_multiboot_load_elf64): Likewise.
24183
92695df9 241842008-01-02 Pavel Roskin <proski@gnu.org>
24185
24186 * util/grub.d/10_linux.in: Try version without ".old" when
24187 looking for initrd. It's better to use initrd from the newer
24188 kernel of the same version than no initrd at all.
24189
d98d9cad 241902008-01-01 Robert Millan <rmh@aybabtu.com>
24191
24192 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
24193
dbfdce36 241942008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
24195
f19dbdb7 24196 * include/grub/video.h: Added grub_video_unmap_color and
dbfdce36 24197 grub_video_get_active_render_target.
24198 (grub_video_adapter): Added unmap_color and get_active_render_target.
24199
f19dbdb7 24200 * video/video.c: Added grub_video_unmap_color and
dbfdce36 24201 grub_video_get_active_render_target.
24202 (grub_video_get_info): Changed method to accept NULL pointer as an
24203 argument to allow detection of active video adapter.
24204
24205 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
24206 grub_video_vbe_unmap_color_int.
24207 Added grub_video_vbe_unmap_color and
24208 grub_video_vbe_get_active_render_target.
24209 (grub_video_vbe_adapter): Added unmap_color and
24210 get_active_render_target.
24211
f19dbdb7 24212 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
dbfdce36 24213 with grub_video_vbe_unmap_color_int.
24214
24215 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
24216 (DEFAULT_NORMAL_COLOR): Likewise.
24217 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
24218 (DEFAULT_FG_COLOR): Removed.
24219 (DEFAULT_BG_COLOR): Likewise.
24220 (DEFAULT_CURSOR_COLOR): Changed value.
24221 (grub_virtual_screen): Added standard_color_setting,
24222 normal_color_setting, highlight_color_setting and term_color.
24223 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
24224 (bitmap_width): Added.
24225 (bitmap_height): Likewise.
24226 (bitmap): Likewise.
24227 (set_term_color): Likewise.
24228 (grub_virtual_screen_setup): Changed to use new terminal coloring
24229 settings.
24230 (grub_gfxterm_init): Added init for bitmap.
24231 (grub_gfxterm_fini): Added destroy for bitmap.
24232 (redraw_screen_rect): Updated to use background bitmap and new
24233 terminal coloring.
24234 (scroll_up): Added optimization for case when there is no bitmap.
24235 (grub_gfxterm_cls): Fixed to use correct background color.
24236 (grub_virtual_screen_setcolorstate): Changed to use new terminal
24237 coloring.
24238 (grub_virtual_screen_setcolor): Likewise.
24239 (grub_virtual_screen_getcolor): Added.
24240 (grub_gfxterm_background_image_cmd): Likewise.
24241 (grub_video_term): Added setcolor and getcolor.
24242 (MOD_INIT): Added registration of background_image command.
24243 (MOD_TERM): Added unregistration for background_image command.
24244
c3c20931 242452007-12-30 Pavel Roskin <proski@gnu.org>
24246
24247 * loader/multiboot_loader.c: Fix multiboot command
24248 unregistration. Fix all typos in the word "multiboot".
24249
df266716 242502007-12-29 Pavel Roskin <proski@gnu.org>
94239199 24251
24252 * util/grub.d/10_linux.in: Refactor search for initrd. Add
24253 support for initrd names used in Fedora.
24254
fc6e896c 242552007-12-26 Bean <bean123ch@gmail.com>
24256
24257 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
24258 (cpio_mod_SOURCES): New variable.
24259 (cpio_mod_CFLAGS): Likewise.
24260 (cpio_mod_LDFLAGS): Likewise.
24261
24262 * fs/cpio.c: New file.
24263
24264 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
24265
24266 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
24267
24268 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
24269
24270 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24271
533110ad 242722007-12-25 Robert Millan <rmh@aybabtu.com>
24273
24274 * include/grub/term.h (struct grub_term): Add `getcolor' function.
24275 (grub_getcolor): New function.
24276
24277 * kern/term.c (grub_getcolor): New function.
24278 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
24279 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
24280 (print_entry): Set normal and highlight colors to
24281 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
24282 respectively, before printing and restore them to old
24283 values afterwards.
24284 (grub_menu_init_page): Likewise. Fill an additional colored space
24285 that would otherwise be left blank.
24286
24287 * term/efi/console.c (grub_console_getcolor): New function.
24288 (struct grub_console_term.getcolor): New variable.
24289 * term/i386/pc/console.c (grub_console_getcolor): New function.
24290 (struct grub_console_term.getcolor): New variable.
24291 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
24292 (struct grub_console_term.getcolor): New variable.
24293
24294 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
24295 (struct grub_console_term.setcolor): Remove variable.
24296 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
24297 (struct grub_console_term.setcolor): Remove variable.
24298 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
24299 (struct grub_console_term.setcolor): Remove variable.
24300 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
24301 (struct grub_console_term.setcolor): Remove variable.
24302
4931827f 243032007-12-25 Robert Millan <rmh@aybabtu.com>
24304
24305 * configure.ac: Search for possible unifont.hex locations, and
24306 define UNIFONT_HEX if found.
24307
24308 * Makefile.in (UNIFONT_HEX): Define variable.
24309 (DATA): Rename to ...
24310 (PKGLIB): ... this. Update all users.
24311 (PKGDATA): New variable.
24312 (pkgdata_IMAGES): Rename to ...
24313 (pkglib_IMAGES): ... this. Update all users.
24314 (pkgdata_MODULES): Rename to ...
24315 (pkglib_MODULES): ... this. Update all users.
24316 (pkgdata_PROGRAMS): Rename to ...
24317 (pkglib_PROGRAMS): ... this. Update all users.
24318 (pkgdata_DATA): Rename to ...
24319 (pkglib_DATA): ... this. Update all users.
24320 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
24321 (unicode.pff, ascii.pff): New rules.
24322 (all-local): Add `$(PKGDATA)' dependency.
24323 (install-local): Process `$(PKGDATA)'.
24324
24325 * util/update-grub_lib.in (font_path): Search for *.pff files in
24326 a few more locations, including `${pkgdata}'.
24327
57e57e31 243282007-12-23 Robert Millan <rmh@aybabtu.com>
24329
24330 Patch from Bean <bean123ch@gmail.com>:
24331 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
24332 `size'.
24333
4bc72aa9 243342007-12-21 Bean <bean123ch@gmail.com>
24335
24336 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
24337 (ntfscomp_mod_SOURCES): New variable.
24338 (ntfscomp_mod_CFLAGS): Likewise.
24339 (ntfscomp_mod_LDFLAGS): Likewise.
24340
24341 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
24342 (grub_probe_SOURCES): Likewise.
24343 (grub_emu_SOURCES): Likewise.
24344
24345 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
24346 (grub_emu_SOURCES): Likewise.
24347
24348 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
24349 (grub_emu_SOURCES): Likewise.
24350
24351 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
24352 (grub_emu_SOURCES): Likewise.
24353
24354 * fs/ntfs.c (grub_ntfscomp_func): New variable.
24355 (read_run_list): Renamed to grub_ntfs_read_run_list.
24356 (decomp_nextvcn): Moved to ntfscomp.c.
24357 (decomp_getch): Likewise.
24358 (decomp_get16): Likewise.
24359 (decomp_block): Likewise.
24360 (read_block): Likewise.
24361 (read_data): Partially moved to ntfscomp.c.
24362 (fixup): Change unsigned to grub_uint16_t.
24363 (read_mft): Change unsigned long to grub_uint32_t.
24364 (read_attr): Likewise.
24365 (read_data): Likewise.
24366 (read_run_data): Likewise.
24367 (read_run_list): Likewise.
24368 (read_mft): Likewise.
24369
24370 * fs/ntfscomp.c: New file.
24371
24372 * include/grub/ntfs.h: New file.
24373
af680a87 243742007-12-16 Robert Millan <rmh@aybabtu.com>
24375
24376 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
24377 IDE disk check, since Linux is known to support 20 IDE disks.
24378 Reported by Colin Watson.
24379
84be7599 243802007-12-15 Bean <bean123ch@gmail.com>
24381
24382 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
24383 (lnxboot_img_SOURCES): New variable.
24384 (lnxboot_img_ASFLAGS): Likewise.
24385 (lnxboot_img_LDFLAGS): Likewise.
24386
24387 * boot/i386/pc/lnxboot.S: New file.
24388
6af9db01 243892007-11-24 Pavel Roskin <proski@gnu.org>
24390
24391 * configure.ac: Test if '--build-id=none' is supported by the
24392 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
24393 objcopy to generate incorrect binary files (binutils
24394 2.17.50.0.18-1 as shipped by Fedora 8).
24395 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
24396 linking, so that build ID doesn't break the test.
24397
7361cfe6 243982007-11-24 Pavel Roskin <proski@gnu.org>
24399
24400 * include/grub/i386/time.h: use "void" in the argument list
24401 of grub_cpu_idle().
24402 * include/grub/powerpc/time.h: Likewise.
24403 * include/grub/sparc64/time.h: Likewise.
24404
1593e10c 244052007-11-18 Christian Franke <franke@computer.org>
24406
24407 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
24408 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
24409 This fixes the problem that function keys did not work in grub-emu.
24410
3b8db1a8 244112007-11-18 Christian Franke <franke@computer.org>
24412
24413 * disk/host.c (grub_host_open): Remove attribute unused from
24414 name parameter. Add check for "host". This fixes the problem
24415 that grub-emu does not find partitions.
24416
2e29408d 244172007-11-18 Christian Franke <franke@computer.org>
24418
24419 * util/hostfs.c (is_dir): New function.
24420 (grub_hostfs_dir): Handle missing dirent.d_type case.
24421 (grub_hostfs_read): Add missing fseek().
24422 (grub_hostfs_label): Clear label pointer. This fixes a crash
24423 of grub-emu on "ls (host)".
24424
398cd047 244252007-11-18 Christian Franke <franke@computer.org>
24426
24427 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
24428 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
24429 to 64 bit boundary by default.
24430
c405c391 244312007-11-18 Bean <bean123ch@gmail.com>
24432
24433 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
24434 (hexdump_mod_SOURCES): New variable.
24435 (hexdump_mod_CFLAGS): Likewise.
24436 (hexdump_mod_LDFLAGS): Likewise.
f19dbdb7 24437
c405c391 24438 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
24439
24440 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
24441
24442 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
24443
24444 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
24445
24446 * include/grub/hexdump.h: New file.
24447
24448 * commands/hexdump.c: New file.
24449
5cced7fd 244502007-11-10 Robert Millan <rmh@aybabtu.com>
24451
24452 * commands/i386/pc/play.c (beep_off): Switch order of arguments
24453 in grub_outb() calls.
24454 (beep_on): Likewise.
24455
8b714eb0 244562007-11-10 Christian Franke <franke@computer.org>
24457
24458 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
24459 (grub_menu_run): Likewise.
24460
ce0f1839 244612007-11-10 Robert Millan <rmh@aybabtu.com>
24462
24463 * include/grub/i386/efi/machine.h: New file.
24464 * include/grub/i386/linuxbios/machine.h: Likewise.
24465 * include/grub/i386/pc/machine.h: Likewise.
24466 * include/grub/powerpc/ieee1275/machine.h: Likewise.
24467 * include/grub/sparc64/ieee1275/machine.h: Likewise.
24468
24469 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
24470 (serial_hw_io_addr): New variable.
24471 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
24472 instead of `(unsigned short *) 0x400'.
24473
270c237d 244742007-11-10 Bean <bean123ch@gmail.com>
24475
24476 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
24477
a87783bf 244782007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
24479
24480 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
24481 (vga_mod_SOURCES): Added.
24482 (vga_mod_CFLAGS): Likewise.
24483 (vga_mod_LDFLAGS): Likewise.
24484
24485 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
24486 grub_outb() calls.
24487 (set_map_mask): Likewise.
24488 (set_read_map): Likewise.
24489 (set_read_address): Likewise.
24490 (vga_font): Removed variable.
24491 (get_vga_glyph): Removed function.
24492 (invalidate_char): Likewise.
24493 (write_char): Changed to use grub_font_get_glyph() for font
24494 information.
24495 (grub_vga_putchar): Likewise.
24496 (grub_vga_getcharwidth): Likewise.
24497
6433b448 244982007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
24499
24500 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
24501 flags.
24502 (pxeboot_img_LDFLAGS): Likewise.
24503 (diskboot_img_LDFLAGS): Likewise.
24504 (kernel_img_LDFLAGS): Likewise.
24505
49178511 245062007-11-06 Robert Millan <rmh@aybabtu.com>
24507
24508 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
24509 in grub_outb() calls.
24510 (serial_hw_init): Likewise.
24511
53b052de 245122007-11-05 Robert Millan <rmh@aybabtu.com>
24513
24514 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
24515 spaces. Skip non-regular files.
24516
5ab33bba 245172007-11-05 Robert Millan <rmh@aybabtu.com>
24518
24519 * kern/disk.c (grub_disk_firmware_fini)
24520 (grub_disk_firmware_is_tainted): New variables.
24521
24522 * include/grub/disk.h (grub_disk_firmware_fini)
24523 (grub_disk_firmware_is_tainted): Likewise.
24524
24525 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
24526 (grub_disk_biosdisk_fini): ... to here.
24527 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
24528 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
24529 is set. Register grub_disk_biosdisk_fini() in
24530 `grub_disk_firmware_fini'.
24531
24532 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
24533 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
24534 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
24535 to finish existing firmware disk interface.
24536
24537 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
24538 (ata_mod_SOURCES): New variable.
24539 (ata_mod_CFLAGS): Likewise.
24540 (ata_mod_LDFLAGS): Likewise.
24541
0149ab7c 245422007-11-05 Robert Millan <rmh@aybabtu.com>
24543
24544 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
24545 (grub_ata_wait): Reimplement using grub_millisleep().
24546
24547 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
24548 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
24549
be7ac41e 245502007-11-03 Marco Gerards <marco@gnu.org>
24551
24552 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
24553 (CRTC_ADDR_PORT): New macro.
24554 (CRTC_DATA_PORT): Likewise.
24555 (CRTC_CURSOR): Likewise.
24556 (CRTC_CURSOR_ADDR_HIGH): Likewise.
24557 (CRTC_CURSOR_ADDR_LOW): Likewise.
24558 (update_cursor): New function.
24559 (grub_console_real_putchar): Call `update_cursor'.
24560 (grub_console_gotoxy): Likewise.
24561 (grub_console_cls): Set the default color when clearing the
24562 screen.
24563 (grub_console_setcursor): Implemented.
24564
bb06ab2e 245652007-11-03 Marco Gerards <marco@gnu.org>
24566
24567 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
24568 become activate.
24569 (grub_ata_pio_write): Likewise.
24570
24571 (grub_atapi_identify): Wait after issuing an ATA command.
24572 (grub_atapi_packet): Likewise.
24573 (grub_ata_identify): Likewise.
24574 (grub_ata_readwrite): Likewise.
24575
cf8f780b 245762007-11-03 Marco Gerards <marco@gnu.org>
24577
24578 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
24579 (grub_ata_pio_write): Likewise.
24580 (grub_ata_readwrite): Use `grub_error', instead of
24581 returning `grub_errno'.
24582
ed649e54 245832007-11-03 Marco Gerards <marco@gnu.org>
24584
24585 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
24586 grub_ata_pio_write once for every single sector, instead of for
24587 multiple sectors.
24588
ca25d8f0 245892007-10-31 Robert Millan <rmh@aybabtu.com>
24590
24591 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
24592
24593 * conf/i386-linuxbios.rmk: New file.
24594
24595 * kern/i386/pc/hardware.c: Likewise.
24596 * term/i386/pc/at_keyboard.c: Likewise.
24597 * term/i386/pc/vga_text.c: Likewise.
24598
24599 * include/grub/i386/linuxbios/boot.h: Likewise.
24600 * include/grub/i386/linuxbios/console.h: Likewise.
24601 * include/grub/i386/linuxbios/init.h: Likewise.
24602 * include/grub/i386/linuxbios/kernel.h: Likewise.
24603 * include/grub/i386/linuxbios/loader.h: Likewise.
24604 * include/grub/i386/linuxbios/memory.h: Likewise.
24605 * include/grub/i386/linuxbios/serial.h: Likewise.
24606 * include/grub/i386/linuxbios/time.h: Likewise.
24607
24608 * kern/i386/linuxbios/init.c: Likewise.
24609 * kern/i386/linuxbios/startup.S: Likewise.
24610 * kern/i386/linuxbios/table.c: Likewise.
24611
e911ecc1 246122007-10-31 Marco Gerards <marco@gnu.org>
24613
24614 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
24615 (ata_mod_SOURCES): New variable.
24616 (ata_mod_CFLAGS): Likewise.
24617 (ata_mod_LDFLAGS): Likewise.
24618
24619 * disk/ata.c: New file.
24620
24621 * include/grub/disk.h (grub_disk_dev_id): Add
24622 `GRUB_DISK_DEV_ATA_ID'.
f19dbdb7 24623
7f66d0e0 246242007-10-31 Robert Millan <rmh@aybabtu.com>
24625
24626 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
24627 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
24628
24629 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
24630 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
24631
24632 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
24633 `<grub/types.h>'.
24634
24635 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
24636
5cd7dd46 246372007-10-27 Robert Millan <rmh@aybabtu.com>
24638
3236ca65 24639 * include/grub/types.h (ULONG_MAX): Define macro.
5cd7dd46 24640
2ebfc90f 246412007-10-22 Robert Millan <rmh@aybabtu.com>
24642
24643 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
24644 `"../realmode.S"'.
24645 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
24646
73fcb0f3 246472007-10-22 Robert Millan <rmh@aybabtu.com>
24648
24649 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
24650 (pkgdata_MODULES): Add `biosdisk.mod'.
24651 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
24652 variables.
24653
24654 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
24655 (grub_biosdisk_init): Replace with ...
24656 (GRUB_MOD_INIT(biosdisk)): ... this.
24657 (grub_biosdisk_fini): Replace with ...
24658 (GRUB_MOD_FINI(biosdisk)): ... this.
24659
24660 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
24661 (grub_machine_init): Remove call to grub_biosdisk_init().
24662 (grub_machine_fini): Remove call to grub_machine_fini().
24663
24664 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
24665
3381d274 246662007-10-22 Robert Millan <rmh@aybabtu.com>
24667
24668 * include/grub/time.h: New file.
24669 * include/grub/i386/time.h: Likewise.
24670 * include/grub/powerpc/time.h: Likewise.
24671 * include/grub/sparc64/time.h: Likewise.
24672
24673 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
24674 instances to ...
24675 (KERNEL_MACHINE_TIME_HEADER): ... this.
24676 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
24677 instances to ...
24678 (KERNEL_MACHINE_TIME_HEADER): ... this.
24679 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
24680 instances to ...
24681 (KERNEL_MACHINE_TIME_HEADER): ... this.
24682
24683 * kern/i386/efi/init.c: Include `<grub/time.h>'.
24684 (grub_millisleep): New function.
24685 * kern/i386/pc/init.c: Include `<grub/time.h>'.
24686 (grub_millisleep): New function.
24687 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
24688 Remove `grub/machine/time.h' include.
24689 (grub_millisleep): New function.
24690 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
24691 Remove `grub/machine/time.h' include.
24692 (grub_millisleep): New function.
24693
24694 * include/grub/misc.h (grub_div_roundup): New function.
24695
24696 * kern/misc.c: Include `<grub/time.h>'.
24697 (grub_millisleep_generic): New function.
24698
24699 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
24700 Add `time.h'.
24701 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
24702 Add `time.h'.
24703 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
24704 `machine/time.h'. Add `time.h'.
24705 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
24706
a39a0312 247072007-10-21 Robert Millan <rmh@aybabtu.com>
24708
24709 * include/grub/misc.h (grub_max): New function.
24710
2aad70e2 247112007-10-21 Robert Millan <rmh@aybabtu.com>
24712
24713 * util/misc.c (grub_util_info): Call fflush() before returning.
24714
54b71c4b 247152007-10-20 Robert Millan <rmh@aybabtu.com>
24716
24717 * genmk.rb (Image): Copy `extra_flags' from here ...
24718 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
24719
24720 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
24721 to `argc' and `args' arguments.
24722
a979f513 247232007-10-17 Robert Millan <rmh@aybabtu.com>
24724
24725 * kern/i386/loader.S: New file.
24726
24727 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
24728 * kern/i386/loader.S (grub_linux_prot_size)... to here.
24729 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
24730 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
24731 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
24732 * kern/i386/loader.S (grub_linux_real_addr)... to here.
24733 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
24734 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
24735 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
24736 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
24737 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
24738 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
24739 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
24740 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
24741
24742 * kern/i386/realmode.S: New file.
24743
24744 * kern/i386/pc/startup.S (protstack): Moved from here ...
24745 * kern/i386/realmode.S (protstack)... to here.
24746 * kern/i386/pc/startup.S (gdt): Moved from here ...
24747 * kern/i386/realmode.S (gdt)... to here.
24748 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
24749 * kern/i386/realmode.S (prot_to_real)... to here.
24750
24751 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
24752 `kern/i386/realmode.S'.
24753
825fc8fd 247542007-10-17 Robert Millan <rmh@aybabtu.com>
24755
24756 * include/grub/i386/loader.h: New file.
24757
24758 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
24759 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
24760 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
24761 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
24762 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
24763 * include/grub/i386/loader.h (grub_linux_prot_size)
24764 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
24765 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
24766 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
24767 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
24768
24769 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
24770
e179b2f4 247712007-10-15 Robert Millan <rmh@aybabtu.com>
24772
24773 * normal/misc.c (grub_normal_print_device_info): Do not probe for
24774 filesystem when dev->disk is unset.
24775 Do probe for filesystem even when dev->disk->has_partitions is set.
24776 In case a filesystem is found, always report it.
24777 In case it isn't, if dev->disk->has_partitions is set, report that
24778 a partition table was found instead of reporting that no filesystem
24779 could be identified.
24780
5db82af6 247812007-10-12 Robert Millan <rmh@aybabtu.com>
24782
24783 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
24784 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
24785
68f6ac74 24786 * include/grub/types.h (grub_host_to_target16): New macro.
24787 (grub_host_to_target32): Likewise.
24788 (grub_host_to_target64): Likewise.
24789 (grub_target_to_host16): Likewise.
24790 (grub_target_to_host32): Likewise.
24791 (grub_target_to_host64): Likewise.
5db82af6 24792
24793 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
24794 Renamed from to ...
24795 (GRUB_MOD_ALIGN): ...this. Update all users.
24796
68f6ac74 24797 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
24798 grub_host_to_target32.
24799 Replace grub_be_to_cpu32 with grub_target_to_host32.
24800 (load_modules): Likewise.
24801 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
24802 Replace grub_be_to_cpu32 with grub_target_to_host32.
24803 Replace grub_cpu_to_be16 with grub_host_to_target16.
24804 Replace grub_cpu_to_be32 grub_host_to_target32.
5db82af6 24805
3cf497cc 248062007-10-12 Robert Millan <rmh@aybabtu.com>
24807
24808 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
24809 * util/elf/grub-mkimage.c: ... here.
24810
24811 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
24812 `util/powerpc/ieee1275/grub-mkimage.c'.
24813
c8cc3692 248142007-10-07 Robert Millan <rmh@aybabtu.com>
adbc4c9d 24815
c8cc3692 24816 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
24817 and make it easier to figure out.
24818 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
24819 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
24820 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
24821 leave us with less than HEAP_MIN_SIZE total heap.
24822 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
adbc4c9d 24823
5c58b791 248242007-10-03 Robert Millan <rmh@aybabtu.com>
24825
24826 * include/grub/i386/io.h: New file.
24827 * commands/i386/pc/play.c (inb): Removed.
24828 (outb): Removed.
24829 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
24830 with grub_outb().
afcd2ef8 24831 * term/i386/pc/serial.c (inb): Removed.
24832 (outb): Removed.
24833 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
24834 with grub_outb().
24835 * term/i386/pc/vga.c (inb): Removed.
24836 (outb): Removed.
24837 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
24838 with grub_outb().
5c58b791 24839
1a477ed6 248402007-10-02 Robert Millan <rmh@aybabtu.com>
24841
24842 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
24843 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24844 Reported by Marcin Kurek.
24845
6b5d80fa 248462007-09-07 Robert Millan <rmh@aybabtu.com>
24847
24848 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
24849 SmartFirmware version updates (as released by Sven Luther), and avoid
24850 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
24851 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
24852 known broken.
24853
5618afbf 248542007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
24855
24856 From Hitoshi Ozeki:
24857 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
24858 when merging two regions.
24859
6139dcd9 248602007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
24861
508e39ee 24862 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
24863 * normal/completion.c (grub_normal_do_completion): Likewise.
24864 Reported by Hitoshi Ozeki.
24865
248662007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
f19dbdb7 24867
6139dcd9 24868 Do not use devices at boot in chainloading.
f19dbdb7 24869
6139dcd9 24870 * loader/i386/pc/chainloader.c (boot_drive): New variable.
24871 (boot_part_addr): Likewise.
24872 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
24873 with BOOT_DRIVE and BOOT_PART_ADDR.
24874 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
24875 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
24876
38da6516 248772007-08-29 Robert Millan <rmh@aybabtu.com>
24878
24879 Patch from Simon Peter <dn.tlp@gmx.net>:
24880 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
24881 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
24882 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
24883 util/i386/pc/grub-setup.c_DEPENDENCIES.
24884 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
24885 util/grub-probe.c_DEPENDENCIES.
24886 * conf/powerpc-ieee1275.rmk: Likewise.
24887
29d0928c 248882007-08-28 Robert Millan <rmh@aybabtu.com>
24889
24890 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
24891 to tell grub-mkdevicemap how to name devices.
24892 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
24893 feature).
24894
24895 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
24896 util/i386/get_disk_name.c.
24897 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
24898 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
24899 util/ieee1275/get_disk_name.c.
24900
24901 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
24902
24903 * DISTLIST: Add util/i386/get_disk_name.c and
24904 util/ieee1275/get_disk_name.c.
24905
24906 * util/grub-mkdevicemap.c: Replace device naming logic with
24907 grub_util_get_disk_name() calls.
24908
5a0d3cca 249092007-08-20 Robert Millan <rmh@aybabtu.com>
24910
24911 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
24912 (so that it works for both plural and singular quantities).
24913
8b72db2f 249142007-08-05 Robert Millan <rmh@aybabtu.com>
24915
24916 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
24917 so that [xz] isn't taken into account when determining order.
24918
352466bf 249192007-08-02 Marco Gerards <marco@gnu.org>
24920
24921 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
24922 `include/multiboot2.h', `include/grub/elfload.h',
24923 `include/multiboot.h', `include/grub/multiboot.h',
24924 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
24925 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
24926 `kern/elf.c', `loader/multiboot_loader.c',
24927 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
24928 `loader/i386/pc/multiboot2.c',
24929 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
24930 `util/i386/pc/grub-mkrescue.in'. Remove
24931 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
24932 `include/grub/i386/pc/util/biosdisk.h' and
24933 `include/grub/powerpc/ieee1275/multiboot.h'.
24934
8f096014 249352007-08-02 Bean <bean123ch@gmail.com>
24936
24937 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
24938 (ntfs_mod_SOURCES): New variable.
24939 (ntfs_mod_CFLAGS): Likewise.
24940 (ntfs_mod_LDFLAGS): Likewise.
24941
24942 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
24943 (grub_probe_SOURCES): Likewise.
24944 (grub_emu_SOURCES): Likewise.
24945
24946 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
24947 (grub_emu_SOURCES): Likewise.
24948
24949 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
24950 (grub_emu_SOURCES): Likewise.
f19dbdb7 24951
8f096014 24952 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
24953
24954 * fs/ntfs.c: New file.
24955
9959f7db 249562007-08-02 Bean <bean123ch@gmail.com>
24957
24958 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
24959
24960 * file.h (grub_file): Likewise.
24961
24962 * fshelp.h (grub_fshelp_read_file): Likewise.
24963
24964 * util/i386/pc/grub-setup.c (setup): Likewise.
24965 (save_first_sector): Likewise.
24966 (save_blocklists): Likewise.
f19dbdb7 24967
9959f7db 24968 * fs/affs.c (grub_affs_read_file): Likewise.
24969
24970 * fs/ext2.c (grub_ext2_read_file): Likewise.
24971
24972 * fs/fat.c (grub_fat_read_data): Likewise.
24973
24974 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
24975
24976 * fs/hfs.c (grub_hfs_read_file): Likewise.
24977
24978 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
24979
24980 * fs/jfs.c (grub_jfs_read_file): Likewise.
24981
24982 * fs/minix.c (grub_minix_read_file): Likewise.
24983
24984 * fs/sfs.c (grub_sfs_read_file): Likewise.
24985
24986 * fs/ufs.c (grub_ufs_read_file): Likewise.
f19dbdb7 24987
9959f7db 24988 * fs/xfs.c (grub_xfs_read_file): Likewise.
24989
24990 * command/blocklist.c (read_blocklist): Likewise.
24991 (print_blocklist): Likewise.
24992
0a203f83 249932007-08-02 Marco Gerards <marco@gnu.org>
24994
24995 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
24996 `util/hostfs.c'.
24997
24998 * disk/host.c: New file.
24999
25000 * util/hostfs.c: Likewise.
25001
25002 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
25003 return `GRUB_ERR_BAD_FS'.
25004 * fs/sfs.c (grub_sfs_mount): Likewise.
25005 * fs/xfs.c (grub_xfs_mount): Likewise.
25006
25007 * include/grub/disk.h (enum grub_disk_dev_id): Add
25008 `GRUB_DISK_DEVICE_HOST_ID'.
25009
25010 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
25011
e5dfe777 250122007-07-24 Jerone Young <jerone@gmail.com>
25013
f19dbdb7 25014 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
e5dfe777 25015 modules for compilation.
25016 * conf/powerpc-ieee1275.rmk: Likewise.
25017
25018 * include/multiboot.h: Move multiboot definitions to one file. Rename
25019 many definitions to not get grub specific.
25020 * include/multiboot2.h: Create header with multiboot 2 definitions.
25021 * include/grub/multiboot.h: Header for grub specific function
25022 prototypes and definitions.
25023 * include/grub/multiboot2.h: Likewise.
25024 * include/grub/multiboot_loader.h: Likewise.
25025 * include/grub/i386/pc/multiboot.h: Removed.
25026 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
25027
25028 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
25029 and 2 to allow for one multiboot and module commands.
25030 * loader/multiboot2.c: Add multiboot2 functionality.
25031 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
25032 and definition names.
25033 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
25034 2 functions.
25035 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
25036 ieee1275 specific multiboot2 code.
25037
25038 * kern/i386/pc/startup.S: Change headers and definition names for
25039 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
25040
daf0f0ba 250412007-07-22 Robert Millan <rmh@aybabtu.com>
25042
25043 * geninitheader.sh: Process file specified in first parameter rather
25044 than hardcoding grub_modules_init.lst.
fe6b695a 25045 * geninit.sh: Likewise. Also, construct header name dynamically rather
daf0f0ba 25046 than hardcoding grub_modules_init.h.
25047
25048 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
25049 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
25050 grub_probe_init.[ch] and grub_setup_init.[ch].
25051
25052 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
25053 grub_modules_init.h with grub_emu_init.h.
25054 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
25055 grub_probe_init.[ch] files.
25056 * conf/i386-efi.rmk: Likewise.
25057 * conf/i386-pc.rmk: Likewise.
25058 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
25059 grub_setup_init.[ch] files.
25060
25061 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
25062 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
25063 to initialize modules rather than a list of hardcoded functions.
25064 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
25065 grub_init_all() to initialize modules rather than a list of hardcoded
25066 functions.
25067
54cdc1cc 250682007-07-22 Robert Millan <rmh@aybabtu.com>
25069
25070 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
25071 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
25072
ad0686cc 250732007-07-22 Robert Millan <rmh@aybabtu.com>
25074
25075 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
25076 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
25077 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
25078 flag when running on SmartFirmware.
25079 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
25080 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
25081 was set.
25082
25083 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
25084 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
25085 rather than decreasing it.
25086
25087 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
25088 there's not enough space to do it, fail in the same way as when it
25089 can't be done because there are no partitions.
25090
25091 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
25092 when nvsetenv failed.
25093
969c02ec 250942007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
25095
25096 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
25097 because this rule is automatically generated.
25098 (grub-mkrescue): Removed for the same reason as above.
25099
5a79f472 251002007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
25101
25102 Migrate to GNU General Public License Version 3.
f19dbdb7 25103
5a79f472 25104 * COPYING: Replaced with the plain text version of GPLv3.
25105
25106 * config.guess: Updated from gnulib.
25107 * config.sub: Likewise.
25108
25109 * geninit.sh: Output a GPLv3 copyright notice.
25110 * geninitheader.sh: Likewise.
25111 * genmodsrc.sh: Likewise.
25112 * gensymlist.sh.in: Likewise.
25113
25114 * boot/i386/pc/boot.S: Upgraded to GPLv3.
25115 * boot/i386/pc/diskboot.S: Likewise.
25116 * boot/i386/pc/pxeboot.S: Likewise.
25117 * commands/blocklist.c: Likewise.
25118 * commands/boot.c: Likewise.
25119 * commands/cat.c: Likewise.
25120 * commands/cmp.c: Likewise.
25121 * commands/configfile.c: Likewise.
25122 * commands/echo.c: Likewise.
25123 * commands/help.c: Likewise.
25124 * commands/ls.c: Likewise.
25125 * commands/search.c: Likewise.
25126 * commands/terminal.c: Likewise.
25127 * commands/test.c: Likewise.
25128 * commands/videotest.c: Likewise.
25129 * commands/i386/cpuid.c: Likewise.
25130 * commands/i386/pc/halt.c: Likewise.
25131 * commands/i386/pc/play.c: Likewise.
25132 * commands/i386/pc/reboot.c: Likewise.
25133 * commands/i386/pc/vbeinfo.c: Likewise.
25134 * commands/i386/pc/vbetest.c: Likewise.
25135 * commands/ieee1275/halt.c: Likewise.
25136 * commands/ieee1275/reboot.c: Likewise.
25137 * commands/ieee1275/suspend.c: Likewise.
25138 * disk/loopback.c: Likewise.
25139 * disk/lvm.c: Likewise.
25140 * disk/raid.c: Likewise.
25141 * disk/efi/efidisk.c: Likewise.
25142 * disk/i386/pc/biosdisk.c: Likewise.
25143 * disk/ieee1275/ofdisk.c: Likewise.
25144 * font/manager.c: Likewise.
25145 * fs/affs.c: Likewise.
25146 * fs/ext2.c: Likewise.
25147 * fs/fat.c: Likewise.
25148 * fs/fshelp.c: Likewise.
25149 * fs/hfs.c: Likewise.
25150 * fs/hfsplus.c: Likewise.
25151 * fs/iso9660.c: Likewise.
25152 * fs/jfs.c: Likewise.
25153 * fs/minix.c: Likewise.
25154 * fs/sfs.c: Likewise.
25155 * fs/ufs.c: Likewise.
25156 * fs/xfs.c: Likewise.
25157 * hello/hello.c: Likewise.
25158 * include/grub/acorn_filecore.h: Likewise.
25159 * include/grub/arg.h: Likewise.
25160 * include/grub/bitmap.h: Likewise.
25161 * include/grub/boot.h: Likewise.
25162 * include/grub/cache.h: Likewise.
25163 * include/grub/device.h: Likewise.
25164 * include/grub/disk.h: Likewise.
25165 * include/grub/dl.h: Likewise.
25166 * include/grub/elfload.h: Likewise.
25167 * include/grub/env.h: Likewise.
25168 * include/grub/err.h: Likewise.
25169 * include/grub/file.h: Likewise.
25170 * include/grub/font.h: Likewise.
25171 * include/grub/fs.h: Likewise.
25172 * include/grub/fshelp.h: Likewise.
25173 * include/grub/gzio.h: Likewise.
25174 * include/grub/hfs.h: Likewise.
25175 * include/grub/kernel.h: Likewise.
25176 * include/grub/loader.h: Likewise.
25177 * include/grub/lvm.h: Likewise.
25178 * include/grub/misc.h: Likewise.
25179 * include/grub/mm.h: Likewise.
25180 * include/grub/net.h: Likewise.
25181 * include/grub/normal.h: Likewise.
25182 * include/grub/parser.h: Likewise.
25183 * include/grub/partition.h: Likewise.
25184 * include/grub/pc_partition.h: Likewise.
25185 * include/grub/raid.h: Likewise.
25186 * include/grub/rescue.h: Likewise.
25187 * include/grub/script.h: Likewise.
25188 * include/grub/setjmp.h: Likewise.
25189 * include/grub/symbol.h: Likewise.
25190 * include/grub/term.h: Likewise.
25191 * include/grub/terminfo.h: Likewise.
25192 * include/grub/tparm.h: Likewise.
25193 * include/grub/types.h: Likewise.
25194 * include/grub/video.h: Likewise.
25195 * include/grub/efi/api.h: Likewise.
25196 * include/grub/efi/chainloader.h: Likewise.
25197 * include/grub/efi/console.h: Likewise.
25198 * include/grub/efi/console_control.h: Likewise.
25199 * include/grub/efi/disk.h: Likewise.
25200 * include/grub/efi/efi.h: Likewise.
25201 * include/grub/efi/pe32.h: Likewise.
25202 * include/grub/efi/time.h: Likewise.
25203 * include/grub/i386/linux.h: Likewise.
25204 * include/grub/i386/setjmp.h: Likewise.
25205 * include/grub/i386/types.h: Likewise.
25206 * include/grub/i386/efi/kernel.h: Likewise.
25207 * include/grub/i386/efi/loader.h: Likewise.
25208 * include/grub/i386/efi/time.h: Likewise.
25209 * include/grub/i386/pc/biosdisk.h: Likewise.
25210 * include/grub/i386/pc/boot.h: Likewise.
25211 * include/grub/i386/pc/chainloader.h: Likewise.
25212 * include/grub/i386/pc/console.h: Likewise.
25213 * include/grub/i386/pc/init.h: Likewise.
25214 * include/grub/i386/pc/kernel.h: Likewise.
25215 * include/grub/i386/pc/loader.h: Likewise.
25216 * include/grub/i386/pc/memory.h: Likewise.
25217 * include/grub/i386/pc/multiboot.h: Likewise.
25218 * include/grub/i386/pc/serial.h: Likewise.
25219 * include/grub/i386/pc/time.h: Likewise.
25220 * include/grub/i386/pc/vbe.h: Likewise.
25221 * include/grub/i386/pc/vbeblit.h: Likewise.
25222 * include/grub/i386/pc/vbefill.h: Likewise.
25223 * include/grub/i386/pc/vbeutil.h: Likewise.
25224 * include/grub/i386/pc/vga.h: Likewise.
25225 * include/grub/ieee1275/ieee1275.h: Likewise.
25226 * include/grub/ieee1275/ofdisk.h: Likewise.
25227 * include/grub/powerpc/libgcc.h: Likewise.
25228 * include/grub/powerpc/setjmp.h: Likewise.
25229 * include/grub/powerpc/types.h: Likewise.
25230 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
25231 * include/grub/powerpc/ieee1275/console.h: Likewise.
25232 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
25233 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
25234 * include/grub/powerpc/ieee1275/loader.h: Likewise.
25235 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
25236 * include/grub/powerpc/ieee1275/time.h: Likewise.
25237 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
25238 * include/grub/sparc64/libgcc.h: Likewise.
25239 * include/grub/sparc64/setjmp.h: Likewise.
25240 * include/grub/sparc64/types.h: Likewise.
25241 * include/grub/sparc64/ieee1275/console.h: Likewise.
25242 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
25243 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
25244 * include/grub/sparc64/ieee1275/time.h: Likewise.
25245 * include/grub/util/biosdisk.h: Likewise.
25246 * include/grub/util/getroot.h: Likewise.
25247 * include/grub/util/lvm.h: Likewise.
25248 * include/grub/util/misc.h: Likewise.
25249 * include/grub/util/raid.h: Likewise.
25250 * include/grub/util/resolve.h: Likewise.
25251 * io/gzio.c: Likewise.
25252 * kern/device.c: Likewise.
25253 * kern/disk.c: Likewise.
25254 * kern/dl.c: Likewise.
25255 * kern/elf.c: Likewise.
25256 * kern/env.c: Likewise.
25257 * kern/err.c: Likewise.
25258 * kern/file.c: Likewise.
25259 * kern/fs.c: Likewise.
25260 * kern/loader.c: Likewise.
25261 * kern/main.c: Likewise.
25262 * kern/misc.c: Likewise.
25263 * kern/mm.c: Likewise.
25264 * kern/parser.c: Likewise.
25265 * kern/partition.c: Likewise.
25266 * kern/rescue.c: Likewise.
25267 * kern/term.c: Likewise.
25268 * kern/efi/efi.c: Likewise.
25269 * kern/efi/init.c: Likewise.
25270 * kern/efi/mm.c: Likewise.
25271 * kern/i386/dl.c: Likewise.
25272 * kern/i386/efi/init.c: Likewise.
25273 * kern/i386/efi/startup.S: Likewise.
25274 * kern/i386/pc/init.c: Likewise.
25275 * kern/i386/pc/lzo1x.S: Likewise.
25276 * kern/i386/pc/startup.S: Likewise.
25277 * kern/ieee1275/ieee1275.c: Likewise.
25278 * kern/powerpc/cache.S: Likewise.
25279 * kern/powerpc/dl.c: Likewise.
25280 * kern/powerpc/ieee1275/cmain.c: Likewise.
25281 * kern/powerpc/ieee1275/crt0.S: Likewise.
25282 * kern/powerpc/ieee1275/init.c: Likewise.
25283 * kern/powerpc/ieee1275/openfw.c: Likewise.
25284 * kern/sparc64/cache.S: Likewise.
25285 * kern/sparc64/dl.c: Likewise.
25286 * kern/sparc64/ieee1275/init.c: Likewise.
25287 * kern/sparc64/ieee1275/openfw.c: Likewise.
25288 * loader/efi/chainloader.c: Likewise.
25289 * loader/efi/chainloader_normal.c: Likewise.
25290 * loader/i386/efi/linux.c: Likewise.
25291 * loader/i386/efi/linux_normal.c: Likewise.
25292 * loader/i386/pc/chainloader.c: Likewise.
25293 * loader/i386/pc/chainloader_normal.c: Likewise.
25294 * loader/i386/pc/linux.c: Likewise.
25295 * loader/i386/pc/linux_normal.c: Likewise.
25296 * loader/i386/pc/multiboot.c: Likewise.
25297 * loader/i386/pc/multiboot_normal.c: Likewise.
25298 * loader/powerpc/ieee1275/linux.c: Likewise.
25299 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
25300 * normal/arg.c: Likewise.
25301 * normal/cmdline.c: Likewise.
25302 * normal/command.c: Likewise.
25303 * normal/completion.c: Likewise.
25304 * normal/execute.c: Likewise.
25305 * normal/function.c: Likewise.
25306 * normal/lexer.c: Likewise.
25307 * normal/main.c: Likewise.
25308 * normal/menu.c: Likewise.
25309 * normal/menu_entry.c: Likewise.
25310 * normal/misc.c: Likewise.
25311 * normal/parser.y: Likewise.
25312 * normal/script.c: Likewise.
25313 * normal/i386/setjmp.S: Likewise.
25314 * normal/powerpc/setjmp.S: Likewise.
25315 * normal/sparc64/setjmp.S: Likewise.
25316 * partmap/acorn.c: Likewise.
25317 * partmap/amiga.c: Likewise.
25318 * partmap/apple.c: Likewise.
25319 * partmap/gpt.c: Likewise.
25320 * partmap/pc.c: Likewise.
25321 * partmap/sun.c: Likewise.
25322 * term/gfxterm.c: Likewise.
25323 * term/terminfo.c: Likewise.
25324 * term/efi/console.c: Likewise.
25325 * term/i386/pc/console.c: Likewise.
25326 * term/i386/pc/serial.c: Likewise.
25327 * term/i386/pc/vesafb.c: Likewise.
25328 * term/i386/pc/vga.c: Likewise.
25329 * term/ieee1275/ofconsole.c: Likewise.
25330 * util/biosdisk.c: Likewise.
25331 * util/console.c: Likewise.
25332 * util/genmoddep.c: Likewise.
25333 * util/getroot.c: Likewise.
25334 * util/grub-emu.c: Likewise.
25335 * util/grub-mkdevicemap.c: Likewise.
25336 * util/grub-probe.c: Likewise.
25337 * util/lvm.c: Likewise.
25338 * util/misc.c: Likewise.
25339 * util/raid.c: Likewise.
25340 * util/resolve.c: Likewise.
25341 * util/update-grub.in: Likewise.
25342 * util/update-grub_lib.in: Likewise.
25343 * util/grub.d/00_header.in: Likewise.
25344 * util/grub.d/10_hurd.in: Likewise.
25345 * util/grub.d/10_linux.in: Likewise.
25346 * util/i386/efi/grub-install.in: Likewise.
25347 * util/i386/efi/grub-mkimage.c: Likewise.
25348 * util/i386/pc/grub-install.in: Likewise.
25349 * util/i386/pc/grub-mkimage.c: Likewise.
25350 * util/i386/pc/grub-mkrescue.in: Likewise.
25351 * util/i386/pc/grub-setup.c: Likewise.
25352 * util/i386/pc/misc.c: Likewise.
25353 * util/powerpc/ieee1275/grub-install.in: Likewise.
25354 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
25355 * util/powerpc/ieee1275/misc.c: Likewise.
25356 * video/bitmap.c: Likewise.
25357 * video/video.c: Likewise.
25358 * video/i386/pc/vbe.c: Likewise.
25359 * video/i386/pc/vbeblit.c: Likewise.
25360 * video/i386/pc/vbefill.c: Likewise.
25361 * video/i386/pc/vbeutil.c: Likewise.
25362 * video/readers/tga.c: Likewise.
25363
3572d015 253642007-07-02 Robert Millan <rmh@aybabtu.com>
25365
25366 * conf/i386-efi.rmk: Replace obsolete reference to
25367 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
25368 with util/getroot.c.
25369 * conf/powerpc-ieee1275.rmk: Likewise.
25370 * conf/sparc64-ieee1275.rmk: Likewise.
25371
25372 * util/grub-emu.c (main): Fix unchecked pointer handling.
25373
2c2a681b 253742007-07-02 Robert Millan <rmh@aybabtu.com>
25375
25376 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
25377 invocation to fail, in order to support partition-less media.
25378
25379 * util/i386/pc/grub-install.in: Likewise.
25380
25381 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
25382 which fs or partmap modules are needed (akin to its sister scripts).
25383
25384 Also use grub-probe to get rid of unportable /proc/mounts check.
25385
25386 Print the same informational message that the other scripts do, before
fe6b695a 25387 exiting.
2c2a681b 25388
6193defe 253892007-06-23 Robert Millan <rmh@aybabtu.com>
25390
fe6b695a 25391 * util/update-grub_lib.in (font_path): New function. Determine whether
6193defe 25392 a font file can be found and, if so, echo the GRUB path to it.
25393
25394 * util/update-grub.in: Handle multiple terminals depending on user
25395 input, platform availability and font file presence. Propagate
25396 variables of our findings to /etc/grub.d/ children.
25397
25398 * util/grub.d/00_header.in: Handle multiple terminals, based on
25399 environment setup by update-grub.
25400
eface1dc 254012007-06-23 Robert Millan <rmh@aybabtu.com>
25402
ba50d28f 25403 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
eface1dc 25404
bf697e28 254052007-06-21 Robert Millan <rmh@aybabtu.com>
25406
25407 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
25408 indicate end of data section in kernel image.
25409 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
25410 GRUB_KERNEL_MACHINE_DATA_END.
25411
25412 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
25413 space for it.
25414 * kern/i386/efi/startup.S: Likewise.
25415
25416 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
25417 during image generation. Implement --prefix option to override this
25418 patch.
25419 * util/i386/efi/grub-mkimage.c: Likewise.
25420
25421 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
25422 code to make path relative to its root into a separate function.
25423
25424 * util/i386/pc/grub-install.in: Use newly provided
25425 make_system_path_relative_to_its_root() to convert ${grubdir}, then
25426 pass the result to grub-install --prefix.
25427
baa574b4 254282007-06-13 Robert Millan <rmh@aybabtu.com>
25429
25430 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
25431 DEFAULT_DEVICE_MAP.
25432 * util/grub-emu.c: Use above definitions from misc.h instead of
25433 defining them.
25434 * util/grub-mkdevicemap.c: Likewise.
25435 * util/i386/pc/grub-setup.c: Likewise.
25436 * util/grub-probe.c: Likewise.
25437 (probe): Abort with grub_util_error() when either
25438 grub_guess_root_device or grub_util_get_grub_dev fails.
25439
0215dcbf 254402007-06-12 Robert Millan <rmh@aybabtu.com>
25441
25442 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
25443 "pager" assignment.
25444 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
25445 "pcdata".
25446 * util/grub-probe.c (probe): Likewise for "drive_name".
25447
8af2ab7b 254482007-06-11 Robert Millan <rmh@aybabtu.com>
25449
25450 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
25451 not just the cdrom one.
25452
59d31694 254532007-06-11 Robert Millan <rmh@aybabtu.com>
25454
25455 * util/i386/pc/grub-mkrescue.in: Add "set -e".
25456 Add --pkglibdir=DIR option to override pkglibdir.
25457 Mention --image-type=TYPE in help output.
25458 Fix --grub-mkimage (it was a no-op).
fe6b695a 25459 Abort gracefully when no parameter is given.
59d31694 25460
7ee367e4 254612007-06-11 Robert Millan <rmh@aybabtu.com>
25462
25463 * util/i386/pc/grub-mkrescue.in: New file.
25464 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
25465 * Makefile.in: Handle bin_SCRIPTS.
25466
29b0ed46 254672007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
25468
25469 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
25470 list of video modes.
25471
c0f90770 254722007-06-06 Robert Millan <rmh@aybabtu.com>
25473
25474 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
25475 file doesn't exist, or if it is in a filesystem grub can't read.
25476
25477 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
25478 not abort if GRUB_DRIVE could not be defined. Rearrange generated
25479 header comment to fit in 80 columns when the variables are resolved.
25480
25481 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
25482 could be identified by update-grub. Remove redundant check for
fe6b695a 25483 unifont.pff existence (since convert_system_path_to_grub_path now
c0f90770 25484 handles that).
25485
fb36dc26 254862007-06-04 Robert Millan <rmh@aybabtu.com>
25487
25488 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
25489
25490 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
25491
25492 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
25493
0c68c93e 254942007-06-04 Robert Millan <rmh@aybabtu.com>
25495
25496 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
25497
25498 * include/grub/partition.h: Declare grub_apple_partition_map_init and
25499 grub_apple_partition_map_fini.
25500
25501 * util/biosdisk.c
25502 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
25503 to access >2 TiB disks).
25504
25505 Print disk->total_sectors with %llu instead of %lu, since this
25506 variable is always 64-bit (prevents wrong disk size from being displayed
25507 on either >2 TiB disk or big-endian CPU).
25508
25509 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
25510 into a generic case that supports all (sane) partition maps.
25511
25512 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
25513 breaks big-endian.
25514
25515 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
25516 and grub_apple_partition_map_fini() after that.
25517
0f23eb74 255182007-06-01 Robert Millan <rmh@aybabtu.com>
25519
25520 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
25521
25522 * util/grub.d/00_header.in: Only enable gfxterm when
25523 convert_system_path_to_grub_path() succeeds.
25524
42c71976 255252007-05-20 Robert Millan <rmh@aybabtu.com>
25526
25527 * util/update-grub_lib.in: New file.
25528 * DISTLIST: Add update-grub_lib.in.
25529 * conf/common.rmk: Generate update-grub_lib and install it in
25530 $(lib_DATA).
25531 * Makefile.in: Add install routine for $(lib_DATA).
25532
25533 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
25534 function provided by update-grub_lib to support arbitrary paths of
25535 unifont.pff.
25536 * util/update-grub.in: Use convert_system_path_to_grub_path() to
25537 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
25538
5beb2291 255392007-05-19 Robert Millan <rmh@aybabtu.com>
25540
25541 * commands/i386/cpuid.c: New module.
25542 * DISTLIST: Add it.
25543 * conf/i386-efi.rmk: Enable cpuid.mod.
25544 * conf/i386-pc.rmk: Likewise.
25545
7262eca1 255462007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
25547
25548 * kern/disk.c (grub_disk_read): Check return value of
25549 grub_realloc().
25550
260ba823 255512007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
25552
25553 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
25554 arrays.
25555 * disk/raid.c (grub_raid_open): Likewise.
25556
1ecb6cf2 255572007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
25558
25559 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
25560 stack instead of on the heap.
25561
25562 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
25563 before doing a read on it.
25564
25565 * configure.ac: Only use -fno-stack-protector for the target
25566 environment.
f19dbdb7 25567
21c8cbb1 255682007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
25569
25570 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
25571 __attribute_ ((unused)) to mode_type argument.
25572
25573 * util/getroot.c (grub_guess_root_device): Fix #endif.
f19dbdb7 25574
21c8cbb1 25575 * kern/misc.c (memcmp): Fix prototype.
25576
25577 * include/grub/partition.h [GRUB_UTIL]
25578 (grub_gpt_partition_map_init): Add prototype.
25579 (grub_gpt_partition_map_fini): Likewise.
25580
25581 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
25582 at the right place.
25583
25584 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
25585 (grub_fat_read_data): Likewise.
25586 (grub_fat_find_dir): Likewise.
25587
25588 * font/manager.c (find_glyph): Make table a const.
25589 (grub_font_get_glyph): Remove bitmap from if statement.
f19dbdb7 25590
849d55d3 255912007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
25592
25593 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
25594 code, first search for device in /dev/mapper, then in /dev.
25595 (grub_util_get_grub_dev): New function.
25596 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
25597 prototype.
25598 * util/grub-probe.c (probe): Remove check for RAID, call
25599 grub_util_get_grub_dev() instead of
25600 grub_util_biosdisk_get_grub_dev().
25601 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
25602 grub_util_biosdisk_get_grub_dev().
25603 * util/i386/pc/grub-setup.c (main): Likewise.
25604
8fff7c2f 256052007-05-16 Robert Millan <rmh@aybabtu.com>
25606
25607 * DISTLIST: Update for the latest changes.
25608 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
25609 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
25610 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
25611 grub/util/biosdisk.h.
25612 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
25613 grub/util/biosdisk.h.
25614
48e12b52 256152007-05-16 Robert Millan <rmh@aybabtu.com>
25616
25617 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
25618
46b9d128 256192007-05-16 Robert Millan <rmh@aybabtu.com>
25620
25621 * util/i386/efi/grub-install.in: New.
25622 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
25623 newly added grub-install.
25624 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
25625 include.
25626 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
25627 grub/util/biosdisk.h.
25628 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
25629 grub/util/biosdisk.h.
25630
2d1a40a9 256312007-05-16 Robert Millan <rmh@aybabtu.com>
25632
25633 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
25634 * include/grub/util/biosdisk.h: ... here.
25635 * util/i386/pc/biosdisk.c: Moved to ...
25636 * util/biosdisk.c: ... here.
25637 * util/i386/pc/getroot.c: Moved to ...
25638 * util/getroot.c: ... here.
25639 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
25640 * util/grub-mkdevicemap.c: ... here.
25641 * util/i386/pc/grub-probe.c: Moved to ...
25642 * util/grub-probe.c: ... here.
25643
9e26e3bc 256442007-05-15 Robert Millan <rmh@aybabtu.com>
25645
25646 * util/update-grub.in: Remove duplicated line in grub.cfg header
25647 message.
25648
57f96397 256492007-05-13 Robert Millan <rmh@aybabtu.com>
25650
25651 * util/update-grub.in: Fix a few assumptions about the devices holding
25652 /, /boot and /boot/grub being the same.
25653 * util/grub.d/00_header.in: Likewise.
25654 * util/grub.d/10_hurd.in: Likewise.
25655 * util/grub.d/10_linux.in: Likewise.
25656
25657 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
25658 patterns. Use that to define the `.old' suffix as older than `'.
25659
25660 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
25661
25662 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
25663 the grub.cfg header message.
25664
2e610d62 256652007-05-11 Robert Millan <rmh@aybabtu.com>
25666
25667 * util/update-grub.in: Create device.map if it doesn't already exist,
25668 before attempting to run grub-probe.
25669 Check for grub-probe and grub-mkdevicemap with the same code
25670 grub-install is using.
25671 Remove test mode.
25672
3f6a10ef 256732007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
25674
25675 * Makefile.in: Add the datarootdir autoconf variable.
25676
02e7b75e 256772007-05-09 Robert Millan <rmh@aybabtu.com>
25678
25679 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
f19dbdb7 25680 fail gracefully if dev->disk->partition == NULL.
02e7b75e 25681
75f396cc 256822007-05-07 Robert Millan <rmh@aybabtu.com>
25683
25684 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
25685 determine partition map module.
25686 * util/i386/pc/grub-install.in: Use this feature to decide which
25687 partition module to load, instead of hardcoding pc and gpt.
25688
da65cb36 256892007-05-07 Robert Millan <rmh@aybabtu.com>
25690
25691 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
25692 source directory differs from build directory.
25693
b57d6a91 256942007-05-05 Robert Millan <rmh@aybabtu.com>
25695
25696 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
25697 initialisation.
25698
509d00f1 256992007-05-05 Robert Millan <rmh@aybabtu.com>
25700
25701 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
25702
c48f23ef 257032007-05-05 Robert Millan <rmh@aybabtu.com>
25704
25705 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
25706 command-line arguments via ${GRUB_CMDLINE_LINUX}.
25707
20b97658 257082007-05-05 Robert Millan <rmh@aybabtu.com>
25709
25710 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
25711 (grub_probe_SOURCES): Likewise.
25712 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
25713 GPT and initialize dos_part and bsd_part accordingly.
25714 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
25715 install_bsd_part.
25716 (main): Activate gpt module for use during partition identification,
25717 and deactivate it afterwards.
25718 * util/i386/pc/grub-install.in: Add gpt module to core.img.
25719 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
25720 partition identification, and deactivate it afterwards.
25721
99123174 257222007-05-05 Robert Millan <rmh@aybabtu.com>
25723
25724 * term/i386/pc/console.c (grub_console_fini): Call
25725 grub_term_set_current() before grub_term_unregister().
25726
ebd97f6e 257272007-05-04 Robert Millan <rmh@aybabtu.com>
25728
25729 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
25730 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
25731 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
25732 and update-grub_DATA.
25733 * conf/common.rmk: Build and install update-grub components.
25734 * conf/common.mk: Regenerate.
25735 * util/update-grub.in: New. Core of update-grub.
25736 * util/grub.d/00_header.in: New. Generates grub.cfg header.
25737 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
25738 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
25739 * util/grub.d/README: New. Document grub.d directory layout.
25740
b06a264d 257412007-05-01 Robert Millan <rmh@aybabtu.com>
25742
25743 * util/grub-emu.c: Move initialization functions
25744 grub_util_biosdisk_init() and grub_init_all() before
25745 grub_util_biosdisk_get_grub_dev(), which relies on them.
25746
41f0050e 257472007-04-19 Robert Millan <rmh@aybabtu.com>
25748
25749 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
25750 it is used later.
25751
04582bb3 257522007-04-18 Jerone Young <jerone@gmail.com>
25753
f19dbdb7 25754 * kernel/elf.c: Add missing parenthesis for conditional statement
04582bb3 25755 stanza.
25756
08db4632 257572007-04-10 Jerone Young <jerone@gmail.com>
49892fdf 25758
08db4632 25759 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
25760 continue on and look for device node with real device name.
25761
801b76be 257622007-04-10 Jerone Young <jerone@gmail.com>
f19dbdb7 25763
fe6b695a 25764 * configure.ac: Add argument for autoconf to use transformation
1d543c3e 25765 ability.
25766 * Makefile.in: Add autoconf package transformation code.
25767 * util/i386/pc/grub-install.in: Likewise.
25768 * util/powerpc/ieee1275/grub-install.in: Likewise.
25769
6795c4e1 257702007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
25771
25772 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
25773 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
25774 (EXT2_REVISION): Likewise.
25775 (EXT2_INODE_SIZE): Likewise.
25776 (struct grub_ext2_block_group): Added a missing member
25777 "used_dirs".
25778 (grub_ext2_read_inode): Divide by the inode size in a superblock
25779 instead of 128 to obtain INODES_PER_BLOCK.
25780 Use the macro EXT2_INODE_SIZE instead of directly using
25781 SBLOCK->INODE_SIZE.
25782
d70af616 257832007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
25784
25785 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
25786 superblock instead of the structure size to compute an
25787 offset. This fixes the problem that GRUB could not read a
25788 filesystem when inode size is different from 128-byte.
25789
3b801603 257902007-03-05 Marco Gerards <marco@gnu.org>
25791
25792 * normal/main.c (read_config_file): When "menu" is not set, create
25793 an initial context.
25794
4785bfe4 257952007-02-21 Hollis Blanchard <hollis@penguinppc.org>
25796
25797 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
25798 (HEAP_LIMIT): New macro.
25799 (grub_claim_heap): Claim memory up to `heaplimit'.
25800
a0cbb023 258012007-02-21 Hollis Blanchard <hollis@penguinppc.org>
25802
25803 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
25804 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
25805 (_start): Likewise.
25806 (grub_arch_modules_addr): Return address after `_end'.
25807 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
25808 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
25809 (add_segments): Calculate `_end' from phdr size and location.
25810 (ALIGN_UP): Moved to ...
25811 * include/grub/misc.h: here.
25812 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
25813 New macro.
25814 (GRUB_IEEE1275_MODULE_BASE): Removed.
25815
fd7d8eba 258162007-02-20 Hollis Blanchard <hollis@penguinppc.org>
25817
25818 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
25819 loop boundary.
25820
9b09e6fc 258212007-02-20 Hollis Blanchard <hollis@penguinppc.org>
25822
25823 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
25824 All users updated.
25825 (grub_elf64_load_hook_t): Likewise.
25826 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
25827 debug output.
25828
3ce27299 258292007-02-20 Hollis Blanchard <hollis@penguinppc.org>
25830
25831 * kern/mm.c: Update copyright.
25832 (grub_mm_debug): Correct syntax error.
25833 (grub_mm_dump_free): New function.
25834 (grub_debug_free): Call `grub_free'.
25835 * include/grub/mm.h: Update copyright.
25836 (grub_mm_dump_free): Add declaration.
25837
077d5fee 258382007-02-12 Hollis Blanchard <hollis@penguinppc.org>
25839
25840 * include/grub/ieee1275/ieee1275.h: Update copyright.
25841 * kern/powerpc/ieee1275/init.c: Likewise.
25842 * kern/powerpc/ieee1275/openfw.c: Likewise.
25843
25844 * loader/powerpc/ieee1275/linux.c: Likewise.
25845 * include/grub/elfload.h: Likewise.
25846 * kern/elf.c: Likewise.
25847 (grub_elf32_load): Pass `base' and `size' parameters. Update all
25848 callers.
25849 (grub_elf64_load): Likewise.
25850 (grub_elf32_load_segment): Move to a nested function.
25851 (grub_elf64_load_segment): Likewise.
25852
dc946850 258532007-02-12 Hollis Blanchard <hollis@penguinppc.org>
25854
25855 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
25856 prototype.
25857 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
25858 (grub_heap_len): Likewise.
25859 (HEAP_SIZE): New macro.
25860 (grub_claim_heap): New function.
25861 (grub_machine_init): Don't claim heap directly. Call
25862 `grub_claim_heap'.
25863 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
25864 (grub_available_iterate): New function.
25865
baa2a121 258662007-02-03 Thomas Schwinge <tschwinge@gnu.org>
25867
25868 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
25869 * configure.ac: Use it for testing the HOST and TARGET compilers.
25870
4fe9862e 258712006-12-13 Thomas Schwinge <tschwinge@gnu.org>
25872
25873 * Makefile.in (enable_grub_emu): New variable.
25874 * configure.ac (--enable-grub-emu): New option.
25875 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
25876 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
25877 * conf/i386-pc.rmk: Likewise.
25878 * conf/powerpc-ieee1275.rmk: Likewise.
25879 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
25880
a8aa5762 258812006-12-12 Marco Gerards <marco@gnu.org>
25882
25883 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
25884
25885 * kern/env.c (grub_env_unset): Don't free the member `value' when
25886 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
25887 pointer.
25888
25889 * normal/main.c (current_menu): Removed.
25890 (free_menu): Unset the `menu' environment variable.
25891 (grub_normal_menu_addentry): Make use of the environment variable
25892 `menu', instead of using the global `current_menu'. Allocate
25893 memory for the sourcecode of this entry.
25894 (read_config_file): New argument `nested', changed all callers.
25895 Only in the case of a new context, initialize a new menu. Set the
25896 `menu' environment variable.
25897 (grub_normal_execute): Don't set and unset the environment
25898 variable `menu' here anymore. Only free the menu when leaving the
25899 context.
25900
25901 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
25902 leak.
25903
957b3a3e 259042006-12-11 Marco Gerards <marco@gnu.org>
25905
25906 * normal/menu_entry.c (run): Fix off by one bug so the last line
25907 is executed. Move the loader check to outside the loop.
25908
ef875714 259092006-12-08 Hollis Blanchard <hollis@penguinppc.org>
25910
25911 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
25912
4e739985 259132006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
25914
25915 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
25916 the number of sectors. Reported by Andrey Shuvikov
25917 <mr_hyro@yahoo.com>.
f19dbdb7 25918
790707f2 259192006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
25920
25921 * kern/disk.c (grub_disk_read): When there is a read error, always
25922 try to read only the necessary data.
f19dbdb7 25923
790707f2 25924 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
25925 disk/raid.c.
25926 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
25927 prototype.
25928 [GRUB_UTIL] (grub_raid_fini): Likewise.
25929 [GRUB_UTIL] (grub_lvm_init): Likewise.
f19dbdb7 25930 [GRUB_UTIL] (grub_lvm_fini): Likewise.
790707f2 25931 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
25932 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
25933 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
25934 and grub_raid_fini().
f19dbdb7 25935
03e58196 259362006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
25937
25938 * include/grub/types.h (__unused): Rename to UNUSED.
25939 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
25940 (grub_elf64_size): Likewise.
f19dbdb7 25941
ae4f23bf 259422006-11-03 Hollis Blanchard <hollis@penguinppc.org>
25943
25944 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
25945 grub_error_push and grub_error_pop in the error-handling path.
25946 (grub_elf32_load_segment): Only call grub_file_read with non-zero
25947 length.
25948
2166cc83 259492006-11-03 Hollis Blanchard <hollis@penguinppc.org>
25950
25951 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
25952 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
25953 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
25954 (kernel_elf_SOURCES): Likewise.
25955 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
25956 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
25957 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
25958 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
25959 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
25960 (elf_mod_SOURCES): New variable.
25961 (elf_mod_CFLAGS): Likewise.
25962 (elf_mod_LDFLAGS): Likewise.
25963 * include/grub/types.h (__unused): New macro.
25964 * include/grub/elfload.h: New file.
25965 * kern/elf.c: Likewise.
25966 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
25967 (ELF32_LOADMASK): New macro.
25968 (ELF64_LOADMASK): Likewise.
25969 (vmlinux): Removed.
25970 (grub_linux_load32): New function.
25971 (grub_linux_load64): Likewise.
25972 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
25973 Use grub_elf_t instead of grub_file_t.
25974
a09d5aa5 259752006-11-02 Hollis Blanchard <hollis@penguinppc.org>
25976
25977 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
25978 `catch_result' to struct set_color_args.
25979
d976fc51 259802006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
25981
25982 * normal/menu.c: Include grub/script.h.
25983 * normal/menu_entry.c: Likewise.
25984 * include/grub/normal.h: Do not include grub/script.h.
25985
67507549 259862006-10-27 Hollis Blanchard <hollis@penguinppc.org>
25987
25988 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
25989
69203a99 259902006-10-27 Hollis Blanchard <hollis@penguinppc.org>
25991
25992 * kern/disk.c (grub_disk_open): Print debug messages when opening a
25993 disk.
25994 (grub_disk_close): Print debug messages when closing a disk.
25995 (grub_disk_read): Print debug messages when disk read fails.
25996 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
25997 filesystem type.
25998 * kern/partition.c: Include misc.h.
25999 (grub_partition_iterate): Print debug messages when detecting
26000 partition type.
26001
e2b8278c 260022006-10-27 Hollis Blanchard <hollis@penguinppc.org>
26003
26004 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
26005 is negative.
26006 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
26007
97b2f2ff 260082006-10-26 Hollis Blanchard <hollis@penguinppc.org>
26009
26010 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
26011 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
26012
6555d655 260132006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
26014
26015 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
26016 instead of sizeof(lv). Patch by Michael Guntsche.
26017
4d42b77f 260182006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
26019
26020 * disk/lvm.c: Rename VGS to VG_LIST.
26021 (grub_lvm_iterate): Change VGS->LV to VG-LV.
26022 (grub_lvm_open): Likewise.
26023 Thanks to Michael Guntsche for finding this bug.
26024
5d74d927 260252006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
26026
26027 * configure.ac (AC_INIT): Bumped to 1.95.
26028
a1bb27e4 260292006-10-14 Robert Millan <rmh@aybabtu.com>
26030
26031 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
26032 with "/dev/.static/dev/md".
26033
e0994b8b 260342006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
26035
26036 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
26037 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
26038 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
26039 DRIVE_NAME are always freed.
26040
26041 * util/i386/pc/biosdisk.c (make_device_name): Add one into
26042 DOS_PART, as a DOS partition is counted from one instead of zero
26043 now. Reported by Robert Millan.
26044
ddd5cee9 260452006-10-14 Robert Millan <rmh@aybabtu.com>
26046
26047 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
26048 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
26049 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
26050 string returned by grub_guess_root_device.
26051 * util/i386/pc/grub-setup.c: Likewise.
26052 * util/i386/pc/grub-probefs.c: Likewise.
26053
26054 * util/i386/pc/grub-probefs.c: Rename to ...
26055 * util/i386/pc/grub-probe.c: ... this.
26056 * DISTLIST: Remove grub-probefs, add grub-probe.
26057 * conf/i386-efi.rmk: Likewise.
26058 * conf/i386-pc.rmk: Likewise.
26059 * util/i386/pc/grub-install.in: Likewise.
26060
26061 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
26062 choose which information we want to print.
26063
2b002173 260642006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
26065
26066 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
26067 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
26068 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
26069 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
26070 video/readers/tga.c and video/i386/pc/vbeutil.c.
26071
260722006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
26073
26074 Added support for RAID and LVM.
f19dbdb7 26075
2b002173 26076 * disk/lvm.c: New file.
26077 * disk/raid.c: Likewise.
26078 * include/grub/lvm.h: Likewise.
f19dbdb7 26079 * include/grub/raid.h: Likewise.
2b002173 26080 * include/grub/util/lvm.h: Likewise.
26081 * include/grub/util/raid.h: Likewise.
26082 * util/lvm.c: Likewise.
26083 * util/raid.c: Likewise.
26084
26085 * include/grub/disk.h (grub_disk_dev_id): Add
26086 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
26087 (grub_disk_get_size): New prototype.
26088 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
26089 returns a partition.
26090 (grub_disk_get_size): New function.
f19dbdb7 26091
2b002173 26092 * kern/i386/pc/init.c (make_install_device): Copy the prefix
26093 verbatim if grub_install_dos_part is -2.
26094
26095 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
26096 and LVM devices.
26097
26098 * util/i386/pc/grub-setup.c (setup): New argument
26099 MUST_EMBED. Force embedding of GRUB when the argument is
26100 true. Close FILE before returning.
26101 (main): Add support for RAID and LVM.
f19dbdb7 26102
2b002173 26103 * conf/common.rmk: Add RAID and LVM modules.
26104 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
26105 util/lvm.c.
26106 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
26107
26108 * kern/misc.c (grub_strstr): New function.
26109 * include/grub/misc.h (grub_strstr): New prototype.
26110
050548d0 261112006-10-10 Tristan Gingold <tristan.gingold@bull.net>
26112
26113 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
26114
da849d2d 261152006-10-05 Tristan Gingold <tristan.gingold@bull.net>
26116
26117 * kern/misc.c (grub_strtoull): Guess the base only if not
26118 specified.
26119
97b2f2ff 261202006-10-01 Hollis Blanchard <hollis@penguinppc.org>
4f0acd39 26121
26122 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
26123 PowerMac support.
26124
97b2f2ff 261252006-10-01 Hollis Blanchard <hollis@penguinppc.org>
fba51f48 26126
26127 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
26128
26129 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
26130 Remove `flags' argument. All callers changed.
26131 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
26132 (IEEE1275_IHANDLE_INVALID): New variable.
26133 (IEEE1275_CELL_INVALID): New variable.
26134 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
26135 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
26136 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
26137 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
26138 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
26139 codes from Open Firmware. All callers updated.
26140 (grub_ieee1275_next_property): Directly return Open Firmware return
26141 code.
26142 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
26143 Standardize error checking from `grub_ieee1275_get_property'.
26144 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
26145 `devalias' to `aliases'. Correct comments. Consolidate error paths.
26146
97b2f2ff 261472006-10-01 Hollis Blanchard <hollis@penguinppc.org>
cc6d3df3 26148
26149 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
26150 `instance_to_package_args' to `instance_to_path_args'.
26151
26152 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
26153 `grub_ieee1275_chosen'.
26154
26155 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
26156 `grub_ieee1275_interpret'.
26157
97b2f2ff 261582006-09-25 Hollis Blanchard <hollis@penguinppc.org>
02bb8acc 26159
26160 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
26161
97b2f2ff 261622006-09-25 Hollis Blanchard <hollis@penguinppc.org>
663b72f0 26163
26164 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
26165 (__cmpdi): Likewise.
26166
26167 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
26168 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
26169 `grub_ssize_t'.
26170
02bb8acc 26171 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
663b72f0 26172
26173 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
26174 to type `grub_ssize_t'.
26175 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
26176
7f9a8531 261772006-09-22 Marco Gerards <marco@gnu.org>
26178
26179 * normal/script.c (grub_script_create_cmdmenu): Skip leading
26180 newlines.
26181
b5ef1102 261822006-09-22 Marco Gerards <marco@gnu.org>
26183
26184 * commands/echo.c: New file.
26185
26186 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
26187
26188 * conf/common.rmk (echo_mod_SOURCES): New variable.
26189 (echo_mod_CFLAGS): Likewise.
26190 (echo_mod_LDFLAGS): Likewise.
26191
2cff3677 261922006-09-22 Marco Gerards <marco@gnu.org>
26193
26194 * normal/main.c (get_line): Malloc memory instead of using
26195 preallocated memory. Removed the arguments `cmdline' and
26196 `max_len'. Updated all callers.
26197
6ba4688b 261982006-09-22 Marco Gerards <marco@gnu.org>
26199
26200 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
26201 (normal_mod_DEPENDENCIES): Likewise.
26202
26203 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
26204 (normal_mod_DEPENDENCIES): Likewise.
26205
26206 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
26207
e02ac02c 262082006-09-22 Johan Rydberg <jrydberg@gnu.org>
26209
26210 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
26211 programs.
26212 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
26213 (normal_mod_DEPENDENCIES): Likewise.
26214 * conf/i386-pc.mk: Regenerate.
26215 * conf/i386-efi.mk: Likewise
26216 * conf/common.mk: Likewise.
26217 * conf/powerpc-ieee1275.mk: Likewise.
26218 * conf/sparc64-ieee1275.mk: Likewise.
f19dbdb7 26219
8d252e44 262202006-09-22 Robert Millan <rmh@aybabtu.com>
26221
26222 Sync with i386 version.
26223 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
26224 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
26225
209bf7ac 262262006-09-21 Robert Millan <rmh@aybabtu.com>
26227
26228 Import from GRUB Legacy (lib/device.c):
26229 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
26230 (init_device_map) [__linux__]: Add support for I2O devices.
26231
6b146090 262322006-09-14 Marco Gerards <marco@gnu.org>
26233
26234 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
26235 `-melf_i386'.
26236
e38600a8 262372006-09-14 Robert Millan <rmh@aybabtu.com>
2952da5d 26238
26239 * util/i386/pc/grub-install.in: Skip menu.lst when removing
26240 /boot/grub/*.lst.
78fa1790 26241
2952da5d 26242 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
6b146090 26243
2952da5d 26244 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
26245 before adding it to device.map.
26246
01b82a64 262472006-08-15 Johan Rydberg <jrydberg@gnu.org>
26248
fe6b695a 26249 * genmk.rb: Let GCC generate dependencies the first time it
01b82a64 26250 compiles a file; using the -MD option.
26251 * conf/common.mk: Regenerate.
26252 * conf/i386-pc.mk: Likewise.
26253 * conf/i386-efi.mk: Likewise.
26254 * conf/powerpc-ieee1275.mk: Likewise.
26255 * conf/sparc64-ieee1275.mk: Likewise.
f19dbdb7 26256
1064790d 262572006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
26258
26259 Move the prototypes of grub_setjmp and grub_longjmp to
26260 cpu/setjmp.h, so that each architecture may specify different
26261 attributes.
f19dbdb7 26262
1064790d 26263 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
26264 (grub_longjmp): Likewise.
26265 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
26266 (grub_longjmp): Likewise.
26267 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
26268 (grub_longjmp): Likewise.
26269
26270 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
26271 [!GRUB_UTIL] (grub_longjmp): Removed.
26272
29dda3ed 262732006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
26274
26275 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
26276 "color!" method does not return any value.
26277
ad2a06ed 262782006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
26279
26280 * include/grub/bitmap.h: New file.
26281
26282 * include/grub/i386/pc/vbeutil.h: Likewise.
26283
26284 * video/bitmap.c: Likewise.
26285
26286 * video/readers/tga.c: Likewise.
26287
26288 * video/i386/pc/vbeutil.c: Likewise.
26289
26290 * commands/videotest.c: Code cleanup and updated to reflect to new
26291 video API.
26292
26293 * term/gfxterm.c: Likewise.
26294
26295 * video/video.c: Likewise.
26296
26297 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
26298 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
26299 (bitmap_mod_SOURCES): New entry.
26300 (bitmap_mod_CFLAGS): Likewise.
26301 (bitmap_mod_LDFLAGS): Likewise.
26302 (tga_mod_SOURCES): Likewise.
26303 (tga_mod_CFLAGS): Likewise.
26304 (tga_mod_LDFLAGS): Likewise.
26305
26306 * include/grub/video.h (grub_video_blit_operators): New enum type.
26307 (grub_video_render_target): Changed as forward declaration and moved
26308 actual definition to be video driver specific.
26309 (grub_video_adapter.blit_bitmap): Added blitting operator.
26310 (grub_video_adapter.blit_render_target): Likewise.
26311 (grub_video_blit_bitmap): Likewise.
26312 (grub_video_blit_render_target): Likewise.
26313
26314 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
26315 driver specific render target definition.
26316 (grub_video_vbe_map_rgba): Added driver internal helper.
26317 (grub_video_vbe_unmap_color): Updated to use
26318 grub_video_i386_vbeblit_info.
26319 (grub_video_vbe_get_video_ptr): Likewise.
26320
26321 * include/grub/i386/pc/vbeblit.h
26322 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
26323 grub_video_i386_vbeblit_info.
26324 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
26325 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
26326 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
26327 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
26328 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
26329 (grub_video_i386_vbeblit_index_index): Likewise.
26330 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
26331 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
26332 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
26333 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
26334 operator.
26335 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
26336 operator.
26337
26338 * video/i386/pc/vbeblit.c: Updated to reflect changes on
26339 include/grub/i386/pc/vbeblit.h.
26340
26341 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
26342 Updated to use grub_video_i386_vbeblit_info.
26343 (grub_video_i386_vbefill_R8G8B8): Likewise.
26344 (grub_video_i386_vbefill_index): Likewise.
26345 (grub_video_i386_vbefill): Added generic filler.
26346
26347 * video/i386/pc/vbefill.c: Updated to reflect changes on
26348 include/grub/i386/pc/vbefill.h.
26349
26350 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
26351 grub_video_i386_vbeblit_info.
26352 (grub_video_vbe_unmap_color): Likewise.
26353 (grub_video_vbe_blit_glyph): Likewise.
26354 (grub_video_vbe_scroll): Likewise.
26355 (grub_video_vbe_draw_pixel): Removed function.
26356 (grub_video_vbe_get_pixel): Likewise.
26357 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
26358 updated code to use it.
26359 (common_blitter): Added common blitter for render target and bitmap.
26360 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
26361 (grub_video_vbe_blit_render_target): Likewise.
26362
bc8c036d 263632006-07-30 Johan Rydberg <jrydberg@gnu.org>
26364
26365 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
26366 is in text mode if there is no console control protocol instance
26367 available.
26368
684a8eff 263692006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
26370
26371 * include/grub/video.h: Code cleanup.
26372
26373 * include/grub/i386/pc/vbe.h: Likewise.
26374
26375 * video/i386/pc/vbe.c: Likewise.
26376
26377 * video/i386/pc/vbeblit.c: Likewise.
26378
26379 * video/i386/pc/vbefill.c: Likewise.
26380
26381 * video/video.c: Likewise. Also added more comments.
26382
5915059b 263832006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
26384
26385 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
26386 (struct grub_biosdisk_dap): Likewise.
26387
26388 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
26389 linkage settings for all functions.
26390
90ce5d56 263912006-07-12 Marco Gerards <marco@gnu.org>
26392
26393 * configure.ac (--enable-mm-debug): Fix typo.
26394
26395 * genkernsyms.sh.in: Use proper quoting for `CC'.
26396
43e7f879 263972006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
26398
26399 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
26400 (normal_mod_ASFLAGS): Remove "-m32".
26401
4889bdec 264022006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
26403
26404 * util/misc.c: Include config.h.
26405 [!HAVE_MEMALIGN]: Do not include malloc.h.
26406 (grub_memalign): Use posix_memalign, if present. Then, use
26407 memalign, if present. Otherwise, emit an error.
26408
26409 * util/grub-emu.c: Do not include malloc.h.
26410
26411 * include/grub/util/misc.h: Include unistd.h. This is required for
26412 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
26413 D. Eades III <hde@foobar-qux.org>.
26414
26415 * configure.ac (AC_GNU_SOURCE): Added.
26416 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
26417 type.
26418
fd39d4da 264192006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
26420
26421 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
26422 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
26423
b786f3b5 264242006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
26425
26426 * include/grub/types.h (grub_host_addr_t): Rename to
26427 grub_target_addr_t.
26428 (grub_host_off_t): Rename to grub_target_off_t.
26429 (grub_host_size_t): Rename to grub_target_size_t.
26430 (grub_host_ssize_t): Rename to grub_target_ssize_t.
26431 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
26432
26433 * include/grub/kernel.h (struct grub_module_header): Change type
26434 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
26435 (grub_module_info): Likewise.
f19dbdb7 26436
051988bb 264372006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
26438
26439 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
26440 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
26441 Velazquez <jesus.velazquez@gmail.com>.
26442
deae281b 264432006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
26444
26445 Count partitions from 1 instead of 0 in the string representation
26446 of partitions. Still use 0-based internally.
f19dbdb7 26447
deae281b 26448 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
26449 (sun_partition_map_iterate): Use grub_partition_t instead of
26450 struct grub_partition *. Cast DESC->START_CYLINDER to
26451 grub_uint64_t after converting the endian.
26452 (sun_partition_map_probe): Subtract 1 for PARTNUM.
26453 (sun_partition_map_get_name): Add 1 to P->INDEX.
26454
26455 * partmap/pc.c (grub_partition_parse): Subtract 1 for
26456 PCDATA->DOS_PART.
26457 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
26458
26459 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
26460 zero instead of one.
26461 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
26462 (gpt_partition_map_get_name): Add 1 into P->INDEX.
26463
26464 * partmap/apple.c (apple_partition_map_iterate): Change the type
26465 of POS to unsigned.
26466 (apple_partition_map_probe): Subtract 1 for PARTNUM.
26467 (apple_partition_map_get_name): Add 1 into P->INDEX.
26468
26469 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
26470 of POS to unsigned.
26471 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
26472 calculate the offset of a partition.
26473 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
26474 (amiga_partition_map_get_name): Add 1 into P->INDEX.
26475
26476 * partmap/acorn.c (acorn_partition_map_find): Change the type of
26477 SECTOR to grub_disk_addr_t.
26478 (acorn_partition_map_iterate): Likewise.
26479 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
26480 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
26481 top.
26482 (acorn_partition_map_get_name): Add 1 into P->INDEX.
26483
26484 * kern/i386/pc/init.c (make_install_device): Add 1 into
26485 GRUB_INSTALL_DOS_PART.
26486
26487 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
26488 conditional.
26489
524a1e6a 264902006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
26491
26492 Clean up the code to support 64-bit addressing in disks and
26493 files. This change is not enough for filesystems yet.
f19dbdb7 26494
524a1e6a 26495 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
26496 type of "start" to grub_uint64_t.
26497 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
26498 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
26499 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
26500 convert addresses.
26501
26502 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
26503 to grub_disk_addr_t.
26504
26505 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
26506 string.
26507
26508 * partmap/pc.c (pc_partition_map_iterate): Likewise.
26509
26510 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
26511 to char *.
26512
26513 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
26514
26515 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
26516
26517 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
26518
26519 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
26520 to grub_off_t, to detect an error from grub_file_seek.
26521 (grub_multiboot_load_elf32): Likewise.
26522
26523 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
26524 maximum unsigned long value when an overflow is detected.
26525 (grub_strtoull): New function.
26526 (grub_divmod64): Likewise.
26527 (grub_lltoa): use grub_divmod64.
26528
26529 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
26530 grub_disk_addr_t.
26531 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
26532 the pointer to next character. Use grub_strtoull instead of
26533 grub_strtoul.
26534 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
26535 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
26536 respectively.
26537
fe6b695a 26538 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
524a1e6a 26539 return value is signed.
26540 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
26541 test if OFFSET is less than zero, as OFFSET is unsigned now.
26542
26543 * kern/disk.c (struct grub_disk_cache): Change the type of
26544 "sector" to grub_disk_addr_t.
26545 (grub_disk_cache_get_index): Change the type of SECTOR to
26546 grub_disk_addr_t. Calculate the hash with SECTOR casted to
26547 unsigned after shifting.
26548 (grub_disk_cache_invalidate): Change the type of SECTOR to
26549 grub_disk_addr_t.
26550 (grub_disk_cache_unlock): Likewise.
26551 (grub_disk_cache_store): Likewise.
26552 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
26553 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
26554 grub_disk_addr_t and grub_uint64_t, respectively.
26555 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
26556 body, as the value of OFFSET is tweaked by
26557 grub_disk_check_range. Change the types of START_SECTOR, LEN and
26558 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
26559 respectively.
26560 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
26561 body, as the value of OFFSET is tweaked by
26562 grub_disk_check_range. Change the types of LEN and N to
26563 grub_size_t.
26564
26565 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
26566 and "saved_offset" to grub_off_t.
26567 (test_header): Cast BUF to char *.
26568 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
26569 to char *.
26570 (grub_gzio_read): Change the types of OFFSET and SIZE to
26571 grub_off_t and grub_size_t, respectively.
26572
26573 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
26574 Removed.
26575 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
26576 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
26577 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
26578 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
26579 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
26580
26581 * include/grub/types.h (grub_off_t): Unconditionally set to
26582 grub_uint64_t.
26583 (grub_disk_addr_t): Changed to grub_uint64_t.
26584
26585 * include/grub/partition.h (struct grub_partition): Change the
26586 types of "start", "len" and "offset" to grub_disk_addr_t,
26587 grub_uint64_t and grub_disk_addr_t, respectively.
26588 (grub_partition_get_start): Return grub_disk_addr_t.
26589 (grub_partition_get_len): Return grub_uint64_t.
26590
26591 * include/grub/misc.h (grub_strtoull): New prototype.
26592 (grub_divmod64): Likewise.
26593
26594 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
26595 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
26596 grub_off_t, respectively.
26597 All callers and references changed.
26598
26599 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
26600 grub_size_t in "read".
26601 All callers and references changed.
26602
26603 * include/grub/file.h (struct grub_file): Change the types of
26604 "offset" and "size" to grub_off_t and grub_off_t,
26605 respectively. Change the type of SECTOR to grub_disk_addr_t in
26606 "read_hook".
26607 (grub_file_read): Change the type of LEN to grub_size_t.
26608 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
26609 grub_off_t.
26610 (grub_file_size): Return grub_off_t.
26611 (grub_file_tell): Likewise.
26612 All callers and references changed.
26613
26614 * include/grub/disk.h (struct grub_disk_dev): Change the types of
26615 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
26616 "write".
26617 (struct grub_disk): Change the type of "total_sectors" to
26618 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
f19dbdb7 26619 "read_hook".
524a1e6a 26620 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
26621 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
26622 (grub_disk_write): Likewise.
26623 All callers and references changed.
26624
26625 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
26626 char * for grub_strncmp to silence gcc.
26627 (grub_iso9660_mount): Likewise.
26628 (grub_iso9660_mount): Likewise.
26629 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
26630 return statement.
26631 (grub_iso9660_iterate_dir): Likewise.
26632 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
26633
26634 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
26635 LEN to grub_disk_addr_t and grub_size_t, respectively.
26636
26637 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
26638
26639 * fs/jfs.c (grub_jfs_read_file): Likewise.
26640
26641 * fs/minix.c (grub_jfs_read_file): Likewise.
26642
26643 * fs/sfs.c (grub_jfs_read_file): Likewise.
26644
26645 * fs/ufs.c (grub_jfs_read_file): Likewise.
26646
26647 * fs/xfs.c (grub_jfs_read_file): Likewise.
26648
26649 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
26650 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
26651 respectively.
26652
26653 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
26654 BLKNR to -1 instead of returning GRUB_ERRNO.
26655 (grub_ext2_read_file): Change the types of SECTOR and
26656 LEN to grub_disk_addr_t and grub_size_t, respectively.
26657
26658 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
26659 LEN to grub_disk_addr_t and grub_size_t, respectively.
26660
26661 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
26662 grub_file_read.
26663
26664 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
26665 string. Do not cast SECTOR explicitly.
26666
26667 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
26668 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
26669 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
26670 grub_disk_addr_t and grub_size_t, respectively. If the sector is
26671 over 2TB and LBA mode is not supported, raise an error.
26672 (get_safe_sectors): New function.
26673 (grub_biosdisk_read): Use get_safe_sectors.
26674 (grub_biosdisk_write): Likewise.
26675
26676 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
26677 (grub_efidisk_write): Likewise.
26678
26679 * disk/loopback.c (delete_loopback): Cosmetic changes.
26680 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
26681 correctly.
26682 (grub_loopback_open): Likewise.
26683 (grub_loopback_read): Likewise. Also, change the type of POS to
26684 grub_off_t, and fix the usage of grub_memset.
26685
26686 * commands/i386/pc/play.c: Include grub/machine/time.h.
26687
26688 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
26689 print FILE->SIZE.
26690
26691 * commands/configfile.c: Include grub/env.h.
26692
26693 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
26694 GRUB_ERRNO directly instead. Change the type of POS to
26695 grub_off_t. Follow the coding standard.
26696
26697 * commands/blocklist.c: Include grub/partition.h.
26698 (grub_cmd_blocklist): Return an error if the underlying device is
26699 not a disk. Take the starting sector of a partition into account,
26700 if a partition is used.
26701
26702 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
26703 a length field.
26704 (lba_mode): Support 64-bit addresses.
26705 (chs_mode): Likewise.
26706 (copy_buffer): Adapted to the new offsets of a length field and a
26707 segment field.
26708 (blocklist_default_start): Allocate 64-bit space.
26709
26710 * boot/i386/pc/boot.S (force_lba): Removed.
26711 (boot_drive): Moved to under KERNEL_SECTOR.
fe987087 26712 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
524a1e6a 26713 space.
26714 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
26715 is useless.
26716 (lba_mode): Refactored to support a 64-bit address. More size
26717 optimization.
26718 (setup_sectors): Likewise.
26719
53af98ad 267202006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
26721
26722 * DISTLIST: Added include/grub/i386/linux.h. Removed
26723 include/grub/i386/pc/linux.h
26724
26725 * configure.ac (AC_INIT): Bumped to 1.94.
26726
26727 * config.guess: Updated from gnulib.
26728 * config.sub: Likewise.
26729 * install-sh: Likewise.
26730 * mkinstalldirs: Likewise.
26731
b4c1940a 267322006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
26733
26734 * conf/common.rmk (grub_modules_init.lst): Depended on
26735 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
26736 MODSRCFILES.
26737
26738 * genmk.rb (PModule::rule): Reverted the previous change.
26739
cfca1cfd 267402006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
26741
26742 * conf/common.rmk (grub_modules_init.lst): Depends on
26743 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
26744 that the target does not exist before producing.
26745 (grub_modules_init.h): Remove the target before generating.
26746 (grub_emu_init.c): Likewise.
26747
26748 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
26749
aa6d7826 267502006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
26751
26752 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
26753 for the target-specific tests. Make sure that we also have the
26754 up-to-date target variables for those tests.
26755
26c607b9 267562006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
26757
26758 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
26759 (PModule::rule): Likewise.
26760
0162321a 267612006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
26762
26763 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
26764 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
26765 target-specific flags should be prefixed.
26766 (PModule::rule): Likewise.
26767
6c826348 267682006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
26769
26770 * configure.ac (CMP): Check if cmp is available explicitly.
26771
b977bf01 267722006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
26773
26774 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
26775 (target_cpu): New variable.
26776 (pkglibdir): Use target_cpu instead of host_cpu.
f19dbdb7 26777
b977bf01 26778 * util/i386/pc/grub-install.in (host_cpu): Removed.
26779 (target_cpu): New variable.
26780 (pkglibdir): Use target_cpu instead of host_cpu.
26781
26782 * util/genmoddep.c: Removed.
f19dbdb7 26783
b977bf01 26784 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
26785 instead of GRUB_HOST_SIZEOF_VOID_P.
26786 * kern/dl.c: Likewise.
26787
26788 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
26789 ...
26790 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
26791 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
26792 (GRUB_TARGET_SIZEOF_LONG): ... this.
26793 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
26794 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
26795 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
26796 to ...
26797 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
26798 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
26799 (GRUB_TARGET_SIZEOF_LONG): ... this.
26800 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
26801 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
26802 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
26803 to ...
26804 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
26805 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
26806 (GRUB_TARGET_SIZEOF_LONG): ... this.
26807 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
26808 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
26809
26810 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
26811 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
26812 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
26813 instead of GRUB_HOST_SIZEOF_LONG.
26814 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
26815 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
26816 GRUB_CPU_WORDS_BIGENDIAN.
26817 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
26818 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
26819 grub_host_ssize_t.
26820
26821 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
26822 (genmoddep_SOURCES): Likewise.
26823 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
26824 (genmoddep_SOURCES): Likewise.
26825 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
26826 (genmoddep_SOURCES): Likewise.
26827 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
26828 Likewise.
26829 (genmoddep_SOURCES): Likewise.
26830
26831 * genmoddep.awk: New file.
26832
26833 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
26834 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
26835 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
26836 (PModule::rule): Likewise.
26837 (Program::rule): Likewise.
26838 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
26839 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
26840 respectively.
26841
26842 * configure.ac: Rewritten intensively to use host and target
26843 instead of build and host, respectively.
26844
26845 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
26846 (host_cpu): Removed.
26847 (target_cpu): New variable.
26848 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
26849 (BUILD_CC): Removed.
26850 (BUILD_CFLAGS): Likewise.
26851 (BUILD_CPPFLAGS): Likewise.
26852 (TARGET_CC): New variable.
26853 (TARGET_CFLAGS): Likewise.
26854 (TARGET_CPPFLAGS): Likewise.
26855 (TARGET_LDFLAGS): Likewise.
26856 (AWK): Likewise.
26857 (include): Use target_cpu instead of host_cpu.
26858 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
f19dbdb7 26859
b977bf01 26860 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
26861
f09771a1 268622006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
26863
26864 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
26865 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
26866 field 'false' to 'exec_on_false'.
26867 (grub_script_create_cmdif): Renamed argument names to reflect above
26868 changes.
26869
26870 * normal/execute.c (grub_script_execute_cmdif): Likewise.
26871
26872 * normal/script.c (grub_script_create_cmdif): Likewise.
26873
118f4fb3 268742006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
26875
26876 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
26877 top.
26878 (grub_hfsplus_btree_recptr): Likewise.
26879 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
26880 FILEBLOCK both to pass a block number and store next block
26881 number.
26882 (grub_hfsplus_read_block): Rewritten heavily to support an extent
26883 overflow file correctly. Specify errors appropriately, because
26884 fshelp expects that GRUB_ERRNO is set when fails. Reuse
26885 grub_hfsplus_btree_recptr to get the pointer to a found key.
26886 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
26887 is found.
26888
26889 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
26890 linux.mod.
26891 (_linux_mod_SOURCES): New variable.
26892 (_linux_mod_CFLAGS): Likewise.
26893 (_linux_mod_LDFLAGS): Likewise.
26894 (linux_mod_SOURCES): Likewise.
26895 (linux_mod_CFLAGS): Likewise.
26896 (linux_mod_LDFLAGS): Likewise.
26897
26898 * DISTLIST: Added loader/i386/efi/linux.c,
26899 loader/i386/efi/linux_normal.c and
26900 include/grub/i386/efi/loader.h.
26901
26902 * loader/i386/efi/linux.c: New file.
26903 * loader/i386/efi/linux_normal.c: Likewise.
26904 * include/grub/i386/efi/loader.h: Likewise.
26905
89a7d726 269062006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
26907
26908 * commands/blocklist.c: New file.
26909
26910 * DISTLIST: Added commands/blocklist.c.
26911
26912 * term/efi/console.c (grub_console_highlight_color): Use a lighter
43b553ad 26913 color for the background, and a darker color for the foreground.
89a7d726 26914 (grub_console_checkkey): Return READ_KEY.
26915 (grub_console_cls): Set the background to
26916 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
26917
26918 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
26919
26920 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
26921 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
26922
26923 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
26924 prototype.
26925
26926 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
26927 BG. The spec is wrong again.
26928
26929 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
26930 prototype.
26931 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
26932
26933 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
26934 commands/blocklist.c.
26935 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
f19dbdb7 26936
89a7d726 26937 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
26938 (blocklist_mod_SOURCES): New variable.
26939 (blocklist_mod_CFLAGS): Likewise.
26940 (blocklist_mod_LDFLAGS): Likewise.
26941
75c8f258 269422006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
26943
26944 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
26945 duplication.
26946 (lba_mode): Use %eax more intensively to reduce the code size.
26947
da2eb181 269482006-05-20 Marco Gerards <marco@gnu.org>
26949
26950 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
26951
26952 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
26953 for `menuentry'.
26954 (script): Accept leading newlines.
26955 (newlines): New rule to describe 0 or more newlines.
26956 (commands): Accept `command' with trailing newline. Fixed the
26957 order in which arguments were passed to `grub_script_add_cmd'.
26958 Accept commands separated by newlines.
26959 (function): Changed to accept newlines.
26960 (menuentry) Rewritten.
26961
26962 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
26963 front of the list, instead of to the end.
26964
577b4050 269652006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
26966
26967 * util/i386/pc/grub-install.in (bindir): New variable.
26968 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
26969 Shaver <lbgwjl@gmail.com>.
26970
0d6e1189 269712006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
26972
26973 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
26974 grub/machine/linux.h
26975 * loader/i386/pc/linux.c: Likewise.
26976
26977 * include/grub/i386/pc/linux.h: Moved to ...
26978 * include/grub/i386/linux.h: ... here.
26979
26980 * include/grub/i386/linux.h (struct linux_kernel_params): New
26981 struct.
f19dbdb7 26982
31b86e9f 269832006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
26984
26985 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
26986 checking.
26987 (grub_video_vbe_blit_glyph): Likewise.
26988 (grub_video_vbe_blit_bitmap): Likewise.
26989 (grub_video_vbe_blit_render_target): Likewise.
26990
83b984de 269912006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
26992
26993 * configure.ac (--with-platform): Properly quote the square
26994 brackets.
26995
5f0413bd 269962006-05-08 Marco Gerards <marco@gnu.org>
26997
26998 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
26999 this...
27000 (kernel_elf_HEADERS): ...to this. Updated all users.
27001 (grubof_symlist.c): Renamed from this...
27002 (kernel_elf_symlist.c): ...to this. Updated all users.
27003 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
27004 (grubof_SOURCES): Renamed from this...
27005 (kernel_elf_SOURCES): ...to this.
27006 (grubof_HEADERS): Renamed from this...
27007 (kernel_elf_HEADERS): ...to this.
27008 (grubof_CFLAGS): Renamed from this...
27009 (kernel_elf_CFLAGS): ...to this.
27010 (grubof_ASFLAGS): Renamed from this...
27011 (kernel_elf_ASFLAGS): ...to this.
27012 (grubof_LDFLAGS): Renamed from this...
27013 (kernel_elf_LDFLAGS): ...to this.
27014
27015 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
27016 this...
27017 (kernel_elf_HEADERS): ...to this. Updated all users.
27018 (grubof_symlist.c): Renamed from this...
27019 (kernel_elf_symlist.c): ...to this. Updated all users.
27020 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
27021 (grubof_SOURCES): Renamed from this...
27022 (kernel_elf_SOURCES): ...to this.
27023 (grubof_HEADERS): Renamed from this...
27024 (kernel_elf_HEADERS): ...to this.
27025 (grubof_CFLAGS): Renamed from this...
27026 (kernel_elf_CFLAGS): ...to this.
27027 (grubof_ASFLAGS): Renamed from this...
27028 (kernel_elf_ASFLAGS): ...to this.
27029 (grubof_LDFLAGS): Renamed from this...
27030 (kernel_elf_LDFLAGS): ...to this.
27031
27032 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
27033 `kernel.elf' instead of `grubof'.
27034
05568c2e 270352006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
27036
27037 Add --with-platform to configure. Use pkglibdir instead of
27038 pkgdatadir. This is reported by Roger Leigh.
27039
27040 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
27041 (host_vendor): Likewise.
27042 (host_os): Likewise.
27043 (pkgdatadir): Likewise.
27044 (platform): New variable.
27045 (pkglibdir): Likewise.
27046 Use PKGLIBDIR instead of PKGDATADIR.
f19dbdb7 27047
05568c2e 27048 * util/i386/pc/grub-install.in (datadir): Removed.
27049 (host_vendor): Likewise.
27050 (host_os): Likewise.
27051 (pkgdatadir): Likewise.
27052 (platform): New variable.
27053 (pkglibdir): Likewise.
27054 Use PKGLIBDIR instead of PKGDATADIR.
27055
27056 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
27057 instead of GRUB_DATADIR.
27058 (main): Likewise.
27059 * util/i386/pc/grub-mkimage.c (usage): Likewise.
27060 (main): Likewise.
27061 * util/i386/efi/grub-mkimage.c (usage): Likewise.
27062 (main): Likewise.
27063
27064 * configure.ac (--with-platform): New option.
27065 Use PLATFORM instead of HOST_VENDOR to specify a platform.
27066
27067 * Makefile.in: Include a makefile based on PLATFORM instead of
27068 HOST_VENDOR.
27069 (pkgdatadir): Not appended by the machine type.
27070 (pkglibdir): Appended by the machine type.
27071 (host_vendor): Removed.
27072 (platform): New variable.
27073 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
27074 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
27075 (uninstall): Likewise.
27076
4e93851c 270772006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
27078
27079 Use the environment context in the menu. Remove the commands
27080 "default" and "timeout", and use variables instead.
f19dbdb7 27081
4e93851c 27082 * normal/menu.c: Include grub/env.h.
27083 (print_entry): Cast TITLE to silence gcc.
27084 (get_timeout): New function.
27085 (set_timeout): Likewise.
27086 (get_entry_number): Likewise.
27087 (run_menu): Use a default entry, a fallback entry and a timeout
27088 in the environment variables "default", "fallback" and
27089 "timeout". Also, tweak the default entry if it is not within the
27090 current menu entries.
27091 (grub_menu_run): Use a fallback entry in the environment variable
27092 "fallback".
27093
27094 * normal/main.c (read_config_file): Do not initialize
27095 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
27096 NEWMENU->TIMEOUT.
27097 (grub_normal_execute): Use a data slot to store the menu.
27098
27099 * include/grub/normal.h (struct grub_menu): Removed default_entry,
27100 fallback_entry and timeout.
27101 (struct grub_menu_list): Removed.
27102 (grub_menu_list_t): Likewise.
27103 (struct grub_context): Likewise.
27104 (grub_context_t): Likewise.
27105 (grub_context_get): Likewise.
27106 (grub_context_get_current_menu): Likewise.
27107 (grub_context_push_menu): Likewise.
27108 (grub_context_pop_menu): Likewise.
27109 (grub_default_init): Likewise.
27110 (grub_default_fini): Likewise.
27111 (grub_timeout_init): Likewise.
27112 (grub_timeout_fini): Likewise.
27113
27114 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
27115 and timeout.mod.
27116 (normal_mod_SOURCES): Removed normal/context.c.
27117
27118 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
27119 commands/default.c, commands/timeout.c and normal/context.c.
27120 (normal_mod_SOURCES): Removed normal/context.c.
27121
27122 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
27123 commands/timeout.c and normal/context.c.
27124 (normal_mod_SOURCES): Removed normal/context.c.
27125
27126 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
27127 commands/default.c, commands/timeout.c and normal/context.c.
27128 (normal_mod_SOURCES): Removed normal/context.c.
27129
27130 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
27131 timeout.mod.
27132 (default_mod_SOURCES): Removed.
27133 (default_mod_CFLAGS): Likewise.
27134 (default_mod_LDFLAGS): Likewise.
27135 (timeout_mod_SOURCES): Removed.
27136 (timeout_mod_CFLAGS): Likewise.
27137 (timeout_mod_LDFLAGS): Likewise.
27138
27139 * DISTLIST: Removed commands/default.c, commands/timeout.c and
27140 normal/context.c.
27141
27142 * commands/default.c: Removed.
27143 * commands/timeout.c: Likewise.
27144 * normal/context.c: Likewise.
27145
1eb9cc1d 271462006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
27147
27148 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
27149
385bd9c1 271502006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
27151
27152 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
27153 "next" to "prev" for readability.
27154 (struct grub_env_sorted_var): New struct.
27155 (grub_env_context): Renamed to ...
27156 (initial_context): ... this.
27157 (grub_env_var_context): Renamed to ...
27158 (current_context): ... this.
27159 (grub_env_find): Look only at CURRENT_CONTEXT.
27160 (grub_env_context_open): Rewritten to copy exported variables from
27161 previous context.
27162 (grub_env_context_close): Rewritten according to the new
27163 scheme. Also, add an assertion to prevent the initial context from
27164 removed.
27165 (grub_env_insert): Removed the code for the sorted list.
27166 (grub_env_remove): Likewise.
27167 (grub_env_export): Simply mark the variable with
27168 GRUB_ENV_VAR_GLOBAL.
27169 (grub_env_set): A cosmetic change for naming consistency.
27170 (grub_env_get): Likewise.
27171 (grub_env_unset): Likewise.
27172 (grub_env_iterate): Rewritten to sort variables within this
27173 function.
27174 (grub_register_variable_hook): Fixed for naming consistency. Call
27175 grub_env_find again, only if NAME is not found at the first time.
27176 (mangle_data_slot_name): New function.
27177 (grub_env_set_data_slot): Likewise.
27178 (grub_env_get_data_slot): Likewise.
27179 (grub_env_unset_data_slot): Likewise.
27180
27181 * include/grub/env.h (grub_env_var_type): New enum.
27182 (GRUB_ENV_VAR_LOCAL): New constant.
27183 (GRUB_ENV_VAR_GLOBAL): Likewise.
27184 (GRUB_ENV_VAR_DATA): Likewise.
27185 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
27186 "type".
27187 (grub_env_set): Replace VAR with NAME for consistency.
27188 (grub_register_variable_hook): Likewise.
27189 (grub_env_export): Specify the name of the argument.
27190 (grub_env_set_data_slot): New prototype.
27191 (grub_env_get_data_slot): Likewise.
27192 (grub_env_unset_data_slot): Likewise.
27193
7f362539 271942006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
27195
27196 Extend the loader so that GRUB can accept a loader which comes
27197 back to GRUB when a loaded image exits. Also, this change adds
27198 support for a chainloader on EFI.
f19dbdb7 27199
7f362539 27200 * term/efi/console.c: Include grub/misc.h.
27201 (grub_console_checkkey): Display a scan code on the top for
27202 debugging. This will be removed once the EFI port gets stable.
27203 Correct the scan code mapping.
27204
27205 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
27206 allocate memory from larger regions, in order to reduce the number
27207 of allocated regions. Otherwise, the MacOSX loader panics.
27208 (filter_memory_map): Avoid less than 1MB for compatibility with
27209 other loaders.
27210 (add_memory_regions): Allocate from the tail of a region, if
27211 possible, to avoid allocating a region near to 1MB, for the MacOSX
27212 loader.
27213
27214 * kern/efi/init.c (grub_efi_set_prefix): Specify
27215 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
27216
27217 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
27218 argument IMAGE_HANDLE and specify it to get a loaded image.
27219 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
27220 grub_efi_get_loaded_image.
fe6b695a 27221 (grub_efi_get_filename): Divide the length by the size of
7f362539 27222 grub_efi_char16_t.
27223 (grub_efi_get_device_path): New function.
27224 (grub_efi_print_device_path): Print End Device Path nodes. Divide
27225 the length by the size of grub_efi_char16_t for a file path device
27226 path node.
27227
27228 * kern/loader.c (grub_loader_noreturn): New variable.
27229 (grub_loader_set): Accept a new argument NORETURN. Set
27230 GRUB_LOADER_NORETURN to NORETURN.
27231 All callers changed.
27232 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
27233 grub_machine_fini.
27234
27235 * include/grub/efi/efi.h (grub_efi_get_device_path): New
27236 prototype.
27237 (grub_efi_get_loaded_image): Take an argument to specify an image
27238 handle.
27239
27240 * include/grub/loader.h (grub_loader_set): Added one more argument
27241 NORETURN.
27242
27243 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
27244 instead of grub_efi_open_protocol.
27245 (grub_efidisk_get_device_name): Likewise.
27246 (grub_efidisk_close): Print a newline.
27247 (grub_efidisk_get_device_handle): Fixed to use
27248 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
27249 GRUB_EFI_DEVICE_PATH_TYPE.
27250
27251 * disk/efi/efidisk.c (device_path_guid): Moved to ...
27252 * kern/efi/efi.c (device_path_guid): ... here.
27253
27254 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
27255 chain.mod.
27256 (kernel_mod_HEADERS): Added efi/disk.h.
27257 (_chain_mod_SOURCES): New variable.
27258 (_chain_mod_CFLAGS): Likewise.
27259 (_chain_mod_LDFLAGS): Likewise.
27260 (chain_mod_SOURCES): Likewise.
27261 (chain_mod_CFLAGS): Likewise.
27262 (chain_mod_LDFLAGS): Likewise.
27263
27264 * DISTLIST: Added include/grub/efi/chainloader.h,
27265 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
27266
27267 * include/grub/efi/chainloader.h: New file.
27268 * loader/efi/chainloader.c: Likewise.
27269 * loader/efi/chainloader_normal.c: Likewise.
27270
c0111d6e 272712006-04-30 Marco Gerards <marco@gnu.org>
27272
27273 * commands/configfile.c (grub_cmd_source): New function.
27274 (GRUB_MOD_INIT): Register the commands `source' and `.'.
27275 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
27276
df5341da 272772006-04-30 Marco Gerards <marco@gnu.org>
27278
27279 * normal/execute.c (grub_script_execute_cmd): Change the return
27280 type to `grub_err_t'. Correctly return the error.
27281 (grub_script_execute_cmdline): In case a command line is not a
27282 command or a function, try to interpret it as an assignment.
27283
f85934bd 272842006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
27285
27286 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
27287 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
27288 skip a node whose name is obviously invalid as UTF-16,
27289 i.e. contains a NUL character. Stop the iteration when the last
27290 directory entry is found. Instead of using the return value of
27291 grub_hfsplus_btree_iterate_node, store the value in RET and use
27292 it, because the iterator can be stopped by the last directory
27293 entry.
27294
8f8a2cf8 272952006-04-30 Marco Gerards <marco@gnu.org>
27296
27297 * include/grub/env.h (grub_env_export): New prototype. Reported
27298 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
27299
a27e84ce 273002006-04-30 Marco Gerards <marco@gnu.org>
27301
27302 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
27303 size of the extents in a catalog file record.
27304
eaef0553 273052006-04-29 Marco Gerards <marco@gnu.org>
27306
27307 * commands/configfile.c (grub_cmd_configfile): Execute the
27308 configfile within its own context.
27309
27310 * include/grub/env.h (grub_env_context_open): New prototype.
27311 (grub_env_context_close): Likewise.
27312
27313 * kern/env.c (grub_env): Removed.
27314 (grub_env_sorted): Likewise.
27315 (grub_env_context): New variable.
27316 (grub_env_var_context): Likewise.
27317 (grub_env_find): Search both the active context and the global
27318 context.
27319 (grub_env_context_open): New function.
27320 (grub_env_context_close): Likewise.
27321 (grub_env_insert): Likewise.
27322 (grub_env_remove): Likewise.
27323 (grub_env_export): Likewise.
27324 (grub_env_set): Changed to use helper functions to avoid code
27325 duplication.
27326 (grub_env_iterate): Rewritten so both the current context and the
27327 global context are being used.
27328
27329 * normal/command.c (export_command): New function.
27330 (grub_command_init): Register the `export' function.
27331
7b455f4d 273322006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
27333
27334 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
27335 explicitly to suppress gcc's warnings.
27336 * fs/fat.c (grub_fat_find_dir): Likewise.
27337 (grub_fat_label): Likewise.
27338 * fs/xfs.c (grub_xfs_read_inode): Likewise.
27339 (grub_xfs_mount): Likewise.
27340 (grub_xfs_label): Likewise.
27341 * fs/affs.c (grub_affs_mount): Likewise.
27342 (grub_affs_label): Likewise.
27343 (grub_affs_iterate_dir): Likewise.
27344 * fs/sfs.c (grub_sfs_mount): Likewise.
27345 (grub_sfs_iterate_dir): Likewise.
27346 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
27347 * fs/hfs.c (grub_hfs_mount): Likewise.
27348 (grub_hfs_cmp_catkeys): Likewise.
27349 (grub_hfs_find_dir): Likewise.
27350 (grub_hfs_dir): Likewise.
27351 (grub_hfs_label): Likewise.
27352 * fs/jfs.c (grub_jfs_mount): Likewise.
27353 (grub_jfs_opendir): Likewise.
27354 (grub_jfs_getent): Likewise.
27355 (grub_jfs_lookup_symlink): Likewise.
27356 (grub_jfs_label): Likewise.
27357 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
27358 (grub_hfsplus_iterate_dir): Likewise.
27359 (grub_hfsplus_btree_iterate_node): Made static.
27360
27361 * util/grub-emu.c (prefix): New variable.
27362 (grub_machine_set_prefix): New function.
27363 (main): Do not set the environment variable "prefix" here. Only
27364 set PREFIX, which is used later by grub_machine_set_prefix.
27365
27366 * include/grub/video.h: Do not include grub/symbol.h.
27367 (grub_video_register): Not exported. This symbol is not defined in
27368 the kernel.
27369 (grub_video_unregister): Likewise.
27370 (grub_video_iterate): Likewise.
27371 (grub_video_setup): Likewise.
27372 (grub_video_restore): Likewise.
27373 (grub_video_get_info): Likewise.
27374 (grub_video_get_blit_format): Likewise.
27375 (grub_video_set_palette): Likewise.
27376 (grub_video_get_palette): Likewise.
27377 (grub_video_set_viewport): Likewise.
27378 (grub_video_get_viewport): Likewise.
27379 (grub_video_map_color): Likewise.
27380 (grub_video_map_rgb): Likewise.
27381 (grub_video_map_rgba): Likewise.
27382 (grub_video_fill_rect): Likewise.
27383 (grub_video_blit_glyph): Likewise.
27384 (grub_video_blit_bitmap): Likewise.
27385 (grub_video_blit_render_target): Likewise.
27386 (grub_video_scroll): Likewise.
27387 (grub_video_swap_buffers): Likewise.
27388 (grub_video_create_render_target): Likewise.
27389 (grub_video_delete_render_target): Likewise.
27390 (grub_video_set_active_render_target): Likewise.
27391
27392 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
27393 Undefined.
27394 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
27395
27396 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
27397 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
27398 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
27399 instead of $(srcdir)/genkernsyms.sh.
27400
27401 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
27402 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
27403 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
27404 instead of $(srcdir)/genkernsyms.sh.
27405
27406 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
27407 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
27408 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
27409 instead of $(srcdir)/genkernsyms.sh.
27410
27411 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
27412 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
27413 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
27414 instead of $(srcdir)/genkernsyms.sh.
27415
27416 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
27417 genkernsyms.sh.
27418
27419 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
27420 genkernsyms.sh.
27421 (gensymlist.sh): New target.
27422 (genkernsyms.sh): Likewise.
27423
27424 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
27425 genkernsyms.sh.in and gensymlist.sh.in.
27426
27427 * genkernsyms.sh: Removed.
27428 * gensymlist.sh: Likewise.
f19dbdb7 27429
7b455f4d 27430 * genkernsyms.sh.in: New file.
27431 * gensymlist.sh.in: Likewise.
27432
1885bb27 274332006-04-25 Hollis Blanchard <hollis@penguinppc.org>
27434
27435 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
27436 clobber "prefix", since we may have already set it manually.
27437
71538dff 274382006-04-25 Hollis Blanchard <hollis@penguinppc.org>
27439
27440 * kern/misc.c (abort): New alias for grub_abort.
27441
2965c7cc 274422006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
27443
27444 A new machine-specific function "grub_machine_set_prefix" is
27445 defined. This is called after loading modules, so that a prefix
27446 initialization can use modules. Also, this change adds an
27447 intensive debugging feature for the memory manager via the
27448 configure option "--enable-mm-debug".
f19dbdb7 27449
2965c7cc 27450 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
27451 PART.LEN.
27452
27453 * kern/sparc64/ieee1275/init.c (abort): Removed.
27454 (grub_stop): Likewise.
27455 (grub_exit): New function.
27456 (grub_set_prefix): Renamed to ...
27457 (grub_machine_set_prefix): ... this.
27458 (grub_machine_init): Do not call grub_set_prefix.
27459
27460 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
27461 (grub_machine_set_prefix): ... this.
27462 (grub_machine_init): Do not call grub_set_prefix.
27463
27464 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
27465 (grub_machine_init): Do not set the prefix here.
27466
27467 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
27468
27469 * kern/efi/init.c: Include grub/mm.h.
27470 (grub_efi_set_prefix): New function.
27471
27472 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
27473 (grub_efi_get_filename): New function.
27474 (grub_print_device_path): Renamed to ...
27475 (grub_efi_print_device_path): ... this.
27476
27477 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
27478 [MM_DEBUG] (grub_realloc): Likewise.
27479 [MM_DEBUG] (grub_free): Likewise.
27480 [MM_DEBUG] (grub_memalign): Likewise.
27481 [MM_DEBUG] (grub_mm_debug): New variable.
27482 [MM_DEBUG] (grub_debug_malloc): New function.
27483 [MM_DEBUG] (grub_debug_free): New function.
27484 [MM_DEBUG] (grub_debug_realloc): New function.
27485 [MM_DEBUG] (grub_debug_memalign): New function.
27486
27487 * kern/misc.c (grub_abort): Print a newline to distinguish
27488 the message.
27489
27490 * kern/main.c (grub_main): Call grub_machine_set_prefix and
27491 grub_set_root_dev after loading modules. This is necessary when
27492 setting a prefix depends on modules.
27493
27494 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
27495 (grub_efi_print_device_path): ... this.
27496 (grub_efi_get_filename): New prototype.
27497 (grub_efi_set_prefix): Likewise.
27498
27499 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
27500 and grub/disk.h.
27501 (grub_efidisk_get_device_handle): New prototype.
27502 (grub_efidisk_get_device_name): Likewise.
27503
27504 * include/grub/mm.h: Include config.h.
27505 (MM_DEBUG): Removed.
27506 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
27507 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
27508 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
27509 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
27510 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
27511 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
27512 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
27513 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
27514 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
27515
27516 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
27517
27518 * disk/efi/efidisk.c: Include grub/partition.h.
27519 (iterate_child_devices): New function.
27520 (add_device): First, compare only last device path nodes, so that
27521 devices are sorted by the types.
27522 (grub_efidisk_get_device_handle): New function.
27523 (grub_efidisk_get_device_name): Likewise.
27524
27525 * configure.ac (--enable-mm-debug): New option to enable the
27526 memory manager debugging feature. This makes the binary much
27527 bigger, so is disabled by default.
27528
9cacaa17 275292006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
27530
27531 Use grub_abort instead of grub_stop, and grub_exit must be
27532 define in each architecture now. Also, this change adds support
27533 for EFI disks.
f19dbdb7 27534
9cacaa17 27535 * util/i386/pc/grub-probefs.c: Include grub/term.h.
27536 (grub_getkey): New function.
27537 (grub_term_get_current): Likewise.
27538
27539 * util/i386/pc/grub-setup.c: Include grub/term.h.
27540 (grub_getkey): New function.
27541 (grub_term_get_current): Likewise.
27542
27543 * util/misc.c (grub_stop): Renamed to ...
27544 (grub_exit): ... this.
27545
27546 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
27547 (grub_exit): ... this.
27548 (grub_machine_init): Use grub_abort instead of abort.
27549 (grub_stop): Removed.
27550
27551 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
27552 abort.
27553
27554 * kern/i386/pc/startup.S (grub_exit): New function.
27555 (cold_reboot): New label.
27556
27557 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
27558 (grub_efi_init): Call grub_efidisk_init.
27559 (grub_efi_fini): Call grub_efidisk_fini.
27560
27561 * kern/efi/efi.c: Include grub/mm.h.
27562 (grub_efi_console_control_guid): Renamed to ...
27563 (console_control_guid): ... this.
27564 (grub_efi_loaded_image_guid): Renamed to ...
27565 (loaded_image_guid): ... this.
27566 (grub_efi_locate_handle): New function.
27567 (grub_efi_open_protocol): Likewise.
27568 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
27569 GRUB_EFI_CONSOLE_CONTROL_GUID.
27570 (grub_efi_exit): Removed.
27571 (grub_stop): Likewise.
27572 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
27573 (grub_exit): New function.
27574 (grub_print_device_path): Likewise.
27575
27576 * kern/rescue.c (grub_rescue_cmd_exit): New function.
27577 (grub_enter_rescue_mode): Register "exit".
27578
27579 * kern/misc.c (grub_real_dprintf): A cosmetic change.
27580 (grub_abort): New function.
27581
27582 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
27583
27584 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
27585
27586 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
27587
27588 * include/grub/efi/efi.h (grub_efi_exit): Removed.
27589 (grub_print_device_path): New prototype.
27590 (grub_efi_locate_handle): Likewise.
27591 (grub_efi_open_protocol): Likewise.
27592
27593 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
27594 * disk/efi/efidisk.c: Likewise.
27595
27596 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
27597
27598 * include/grub/efi/console_control.h
27599 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
27600
27601 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
27602 last 8 bytes as an array.
27603 (GRUB_EFI_DISK_IO_GUID): New macro.
27604 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
27605 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
27606 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
27607 grub_uint8_t.
27608 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
27609 (struct grub_efi_device_path): Rename the member "sub_type" to
27610 "subtype".
27611 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
27612 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
27613 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
27614 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
27615 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
27616 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
27617 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
27618 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
27619 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
27620 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
27621 (struct grub_efi_pci_device_path): New structure.
27622 (grub_efi_pci_device_path_t): New type.
27623 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
27624 (struct grub_efi_pccard_device_path): New structure.
27625 (grub_efi_pccard_device_path_t): New type.
27626 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
27627 (struct grub_efi_memory_mapped_device_path): New structure.
27628 (grub_efi_memory_mapped_device_path_t): New type.
27629 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
27630 (struct grub_efi_vendor_device_path): New structure.
27631 (grub_efi_vendor_device_path_t): New type.
27632 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
27633 (struct grub_efi_controller_device_path): New structure.
27634 (grub_efi_controller_device_path_t): New type.
27635 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
27636 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
27637 (struct grub_efi_acpi_device_path): New structure.
27638 (grub_efi_acpi_device_path_t): New type.
27639 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
27640 (struct grub_efi_expanded_acpi_device_path): New structure.
27641 (grub_efi_expanded_acpi_device_path_t): New type.
27642 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
27643 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
27644 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
27645 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
27646 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
27647 (struct grub_efi_atapi_device_path): New structure.
27648 (grub_efi_atapi_device_path_t): New type.
27649 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
27650 (struct grub_efi_fibre_channel_device_path): New structure.
27651 (grub_efi_fibre_channel_device_path_t): New type.
27652 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
27653 (struct grub_efi_1394_device_path): New structure.
27654 (grub_efi_1394_device_path_t): New type.
27655 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
27656 (struct grub_efi_usb_device_path): New structure.
27657 (grub_efi_usb_device_path_t): New type.
27658 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
27659 (struct grub_efi_usb_class_device_path): New structure.
27660 (grub_efi_usb_class_device_path_t): New type.
27661 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
27662 (struct grub_efi_i2o_device_path): New structure.
27663 (grub_efi_i2o_device_path_t): New type.
27664 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
27665 (struct grub_efi_mac_address_device_path): New structure.
27666 (grub_efi_mac_address_device_path_t): New type.
27667 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
27668 (struct grub_efi_ipv4_device_path): New structure.
27669 (grub_efi_ipv4_device_path_t): New type.
27670 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
27671 (struct grub_efi_ipv6_device_path): New structure.
27672 (grub_efi_ipv6_device_path_t): New type.
27673 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
27674 (struct grub_efi_infiniband_device_path): New structure.
27675 (grub_efi_infiniband_device_path_t): New type.
27676 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
27677 (struct grub_efi_uart_device_path): New structure.
27678 (grub_efi_uart_device_path_t): New type.
27679 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
27680 (struct grub_efi_vendor_messaging_device_path): New structure.
27681 (grub_efi_vendor_messaging_device_path_t): New type.
27682 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
27683 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
27684 (struct grub_efi_hard_drive_device_path): New structure.
27685 (grub_efi_hard_drive_device_path_t): New type.
27686 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
27687 (struct grub_efi_cdrom_device_path): New structure.
27688 (grub_efi_cdrom_device_path_t): New type.
27689 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
27690 (struct grub_efi_vendor_media_device_path): New structure.
27691 (grub_efi_vendor_media_device_path_t): New type.
27692 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
27693 (struct grub_efi_file_path_device_path): New structure.
27694 (grub_efi_file_path_device_path_t): New type.
27695 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
27696 (struct grub_efi_protocol_device_path): New structure.
27697 (grub_efi_protocol_device_path_t): New type.
27698 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
27699 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
27700 (struct grub_efi_bios_device_path): New structure.
27701 (grub_efi_bios_device_path_t): New type.
27702 (struct grub_efi_disk_io): New structure.
27703 (grub_efi_disk_io_t): New type.
27704 (struct grub_efi_block_io_media): New structure.
27705 (grub_efi_block_io_media_t): New type.
27706 (struct grub_efi_block_io): New structure.
27707 (grub_efi_block_io_t): New type.
27708
27709 * include/grub/misc.h (grub_stop): Removed.
27710 (grub_exit): New prototype.
27711 (grub_abort): Likewise.
27712
27713 * include/grub/disk.h (enum grub_disk_dev_id): Added
27714 GRUB_DISK_DEVICE_EFIDISK_ID.
27715
27716 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
27717 disk/efi/efidisk.c.
27718 (kernel_syms.lst): Remove the target if an error occurs.
27719
49986a9f 277202006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
27721
27722 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
27723 as it was simply too buggy.
27724
970d3b8a 277252006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
27726
27727 * kern/misc.c (grub_lltoa): New function.
27728 (grub_vsprintf): Added support for the long long suffix,
27729 i.e. "ll".
27730
ff04ec24 277312006-04-20 Hollis Blanchard <hollis@penguinppc.org>
27732
27733 * Makefile.in (LDFLAGS): Add variable.
27734 (LD): Remove variable.
27735 * configure.ac: Add -m32 to LDFLAGS.
27736 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
27737 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
27738 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
27739 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
27740 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
27741 variables.
27742 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
27743 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
27744 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
27745
37e5e1a4 277462006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
27747
27748 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
27749 length for unknown glyph.
27750
c352d8dd 277512006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
27752
2eab1c0d 27753 Add support for pre-loaded modules into the EFI port.
f19dbdb7 27754
2eab1c0d 27755 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
27756 completely. Accept one more argument DIR. The caller has changed.
27757
27758 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
27759
27760 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
27761 (grub_efi_loaded_image_guid): New variable.
27762 (grub_efi_get_loaded_image): New function.
27763 (grub_arch_modules_addr): Likewise.
27764
27765 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
27766 prototype.
27767
27768 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
27769 (struct grub_efi_loaded_image): New structure.
27770 (grub_efi_loaded_image_t): New type.
27771
277722006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
f19dbdb7 27773
c352d8dd 27774 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
27775 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
27776 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
27777
6d01d6b4 277782006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
27779
27780 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
27781
976a4ea0 277822006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
27783
27784 * DISTLIST: Added include/grub/efi/console.h,
27785 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
27786 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
27787
27788 * include/grub/efi/console.h: New file.
27789 * include/grub/efi/time.h: Likewise.
27790 * include/grub/i386/efi/kernel.h: Likewise.
27791 * kern/efi/init.c: Likewise.
27792 * kern/efi/mm.c: Likewise.
27793 * term/efi/console.c: Likewise.
f19dbdb7 27794
976a4ea0 27795 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
27796 (grub_stop): Removed.
27797 (grub_get_rtc): Likewise.
27798 (grub_machine_init): Simply call grub_efi_init.
27799 (grub_machine_fini): Call grub_efi_fini.
27800
27801 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
27802 (grub_efi_output_string): Removed.
27803 (grub_efi_stall): New function.
27804 (grub_stop): Likewise.
27805 (grub_get_rtc): Likewise.
27806
27807 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
27808 (grub_efi_stall): New prototype.
27809 (grub_efi_allocate_pages): Likewise.
27810 (grub_efi_free_pages): Likewise.
27811 (grub_efi_get_memory_map): Likewise.
27812 (grub_efi_mm_init): Likewise.
27813 (grub_efi_mm_fini): Likewise.
27814 (grub_efi_init): Likewise.
27815 (grub_efi_fini): Likewise.
27816
27817 * include/grub/i386/efi/time.h: Do not include
27818 grub/symbol.h. Include grub/efi/time.h.
27819 (GRUB_TICKS_PER_SECOND): Removed.
27820 (grub_get_rtc): Likewise.
27821
27822 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
27823 Added padding. The EFI spec is buggy.
27824 (GRUB_EFI_BLACK): New macro.
27825 (GRUB_EFI_BLUE): Likewise.
27826 (GRUB_EFI_GREEN): Likewise.
27827 (GRUB_EFI_CYAN): Likewise.
27828 (GRUB_EFI_RED): Likewise.
27829 (GRUB_EFI_MAGENTA): Likewise.
27830 (GRUB_EFI_BROWN): Likewise.
27831 (GRUB_EFI_LIGHTGRAY): Likewise.
27832 (GRUB_EFI_BRIGHT): Likewise.
27833 (GRUB_EFI_DARKGRAY): Likewise.
27834 (GRUB_EFI_LIGHTBLUE): Likewise.
27835 (GRUB_EFI_LIGHTGREEN): Likewise.
27836 (GRUB_EFI_LIGHTCYAN): Likewise.
27837 (GRUB_EFI_LIGHTRED): Likewise.
27838 (GRUB_EFI_LIGHTMAGENTA): Likewise.
27839 (GRUB_EFI_YELLOW): Likewise.
27840 (GRUB_EFI_WHITE): Likewise.
27841 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
27842 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
27843 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
27844 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
27845 (GRUB_EFI_BACKGROUND_RED): Likewise.
27846 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
27847 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
27848 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
27849 (GRUB_EFI_TEXT_ATTR): Likewise.
27850
27851 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
27852 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
27853 (kernel_mod_HEADERS): Added efi/time.h.
27854
83709125 278552006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
27856
27857 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
27858 include/grub/efi/api.h, include/grub/efi/console_control.h,
27859 include/grub/efi/efi.h, include/grub/efi/pe32.h,
27860 include/grub/i386/efi/time.h, kern/efi/efi.c,
27861 kern/i386/efi/init.c, kern/i386/efi/startup.S,
27862 and util/i386/efi/grub-mkimage.c.
27863
27864 * Makefile.in (RMKFILES): Added i386-efi.rmk.
27865
27866 * genmk.rb (PModule#rule): Do not export symbols if
27867 #{prefix}_EXPORTS is set to "no".
27868
27869 * conf/i386-efi.mk: New file.
27870 * conf/i386-efi.rmk: Likewise.
27871 * include/grub/efi/api.h: Likewise.
27872 * include/grub/efi/console_control.h: Likewise.
27873 * include/grub/efi/efi.h: Likewise.
27874 * include/grub/efi/pe32.h: Likewise.
27875 * include/grub/i386/efi/time.h: Likewise.
27876 * kern/efi/efi.c: Likewise.
27877 * kern/i386/efi/init.c: Likewise.
27878 * kern/i386/efi/startup.S: Likewise.
27879 * util/i386/efi/grub-mkimage.c: Likewise.
27880
278812006-04-17 Marco Gerards <marco@gnu.org>
bfa2bd9e 27882
27883 * include/grub/script.h: Include <grub/parser.h> and
27884 "grub_script.tab.h".
27885 (struct grub_lexer_param): New struct.
27886 (struct grub_parser_param): Likewise.
27887 (grub_script_create_arglist): Pass the state in an argument.
27888 (grub_script_add_arglist): Likewise.
27889 (grub_script_create_cmdline): Likewise.
27890 (grub_script_create_cmdblock): Likewise.
27891 (grub_script_create_cmdif): Likewise.
27892 (grub_script_create_cmdmenu): Likewise.
27893 (grub_script_add_cmd): Likewise.
27894 (grub_script_arg_add): Likewise.
27895 (grub_script_lexer_ref): Likewise.
27896 (grub_script_lexer_deref): Likewise.
27897 (grub_script_lexer_record_start): Likewise.
27898 (grub_script_lexer_record_stop): Likewise.
27899 (grub_script_mem_record): Likewise.
27900 (grub_script_mem_record_stop): Likewise.
27901 (grub_script_malloc): Likewise.
27902 (grub_script_yylex): Likewise.
27903 (grub_script_yyparse): Likewise.
27904 (grub_script_yyerror): Likewise.
27905 (grub_script_yylex): Likewise.
27906 (grub_script_lexer_init): Return the state.
27907
27908 * normal/lexer.c (grub_script_lexer_state): Removed variable.
27909 (grub_script_lexer_done): Likewise.
27910 (grub_script_lexer_getline): Likewise.
27911 (grub_script_lexer_refs): Likewise.
27912 (script): Likewise.
27913 (newscript): Likewise.
27914 (record): Likewise.
27915 (recording): Likewise.
27916 (recordpos): Likewise.
27917 (recordlen): Likewise.
27918 (grub_script_lexer_init): Return the state instead of setting
27919 global variables.
27920 (grub_script_lexer_ref): Use the newly added argument for state
27921 instead of globals.
27922 (grub_script_lexer_deref): Likewise.
27923 (grub_script_lexer_record_start): Likewise.
27924 (grub_script_lexer_record_stop): Likewise.
27925 (recordchar): Likewise.
27926 (nextchar): Likewise.
27927 (grub_script_yylex2): Likewise.
27928 (grub_script_yylex): Likewise.
27929 (grub_script_yyerror): Likewise.
27930
27931 * normal/parser.y (func_mem): Removed variable.
27932 (menu_entry): Likewise.
27933 (err): Likewise.
27934 (%lex-param): New parser option.
27935 (%parse-param): Likewise.
27936 (script): Always return the AST.
27937 (argument): Pass the state around.
27938 (arguments): Likewise.
27939 (grubcmd): Likewise.
27940 (commands): Likewise.
27941 (function): Likewise.
27942 (menuentry): Likewise.
27943 (if_statement): Likewise.
27944 (if): Likewise.
27945
27946 * normal/script.c (grub_script_memused): Removed variable.
27947 (grub_script_parsed): Likewise.
27948 (grub_script_malloc): Added a state argument. Use that instead of
27949 global variables.
27950 (grub_script_mem_record): Likewise.
27951 (grub_script_mem_record_stop): Likewise.
27952 (grub_script_arg_add): Likewise.
27953 (grub_script_add_arglist): Likewise.
27954 (grub_script_create_cmdline): Likewise.
27955 (grub_script_create_cmdif): Likewise.
27956 (grub_script_create_cmdmenu): Likewise.
27957 (grub_script_add_cmd): Likewise.
27958 (grub_script_parse): Setup the state before calling the parser.
f19dbdb7 27959
e2a8c904 279602006-04-16 Marco Gerards <marco@gnu.org>
6de2ee99 27961
27962 * normal/command.c (grub_command_init): Remove the title command.
27963
27964 * normal/lexer.c (grub_script_yylex): Renamed from this...
27965 (grub_script_yylex2): ... to this.
27966 (grub_script_yylex): New function. Temporary
27967 introduced to filter some tokens.
27968 (grub_script_yyerror): Print a newline.
27969
27970 * normal/main.c (read_config_file): Output information about the
27971 lines that contain errors. Wait for a key after all lines have
27972 been processed. Don't return an empty menu.
27973
27974 * normal/parser.y (func_mem): Don't initialize.
27975 (menu_entry): Likewise.
27976 (err): New variable.
27977 (script): Don't return anything when an error was encountered.
27978 (ws, returns): Removed rules.
27979 (argument): Disabled concatenated variable support.
27980 (arguments): Remove explicit separators.
27981 (grubcmd): Likewise.
27982 (function): Likewise.
27983 (menuentry): Likewise.
27984 (if): Likewise.
27985 (commands): Likewise. Add error handling.
27986
27987 * normal/script.c (grub_script_create_cmdline): If
27988 `grub_script_parsed' is 0, assume the parser encountered an error.
27989
c9a86192 279902006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
27991
27992 * configure.ac: Add support for EFI. Fix the typo
27993 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
27994
70f3b243 279952006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
27996
27997 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
27998 foreign multibyte characters should be shown correctly.
27999
65f201ad 280002006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
28001
28002 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
28003 calculation.
28004 (read_config_file): Made it to close file before returning.
28005
b4b93674 280062006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
28007
28008 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
28009 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
28010 video/i386/pc/vbefill.c.
28011
28012 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
28013 video/i386/pc/vbefill.c.
28014
28015 * include/grub/video.h (grub_video_blit_format): New enum.
28016 (grub_video_mode_info): Added new member blit_format.
28017 (grub_video_get_blit_format): New function prototype.
28018
28019 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
28020 function prototype.
28021 (grub_video_vbe_map_rgb): Likewise.
28022 (grub_video_vbe_unmap_color): Likewise.
28023
28024 * include/grub/i386/pc/vbeblit.h: New file.
28025
28026 * include/grub/i386/pc/vbefill.h: New file.
28027
28028 * video/video.c (grub_video_get_blit_format): New function.
28029 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
28030 (grub_video_vbe_map_rgb): Likewise.
28031 (grub_video_vbe_unmap_color): Likewise.
28032
28033 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
28034 optimized fills.
28035 (grub_video_vbe_blit_render_target): Changed to use more optimized
28036 blits.
28037 (grub_video_vbe_setup): Added detection for optimized settings.
28038 (grub_video_vbe_create_render_target): Likewise.
28039
28040 * video/i386/pc/vbeblit.c: New file.
28041
28042 * video/i386/pc/vbefill.c: New file.
28043
c2379b9c 280442006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
28045
28046 * font/manager.c (grub_font_get_glyph): Removed font fixup from
28047 here...
28048
28049 * util/unifont2pff.rb: ... and moved it to here. Improved argument
28050 parsing to support both hex and dec ranges. If filename was missing
28051 show usage information.
28052
bd0d7896 280532006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
28054
28055 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
28056 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
28057
28058 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
28059 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
28060 (video_mod_SOURCES): Added.
28061 (video_mod_CFLAGS): Likewise.
28062 (video_mod_LDFLAGS): Likewise.
28063 (gfxterm_mod_SOURCES): Likewise.
28064 (gfxterm_mod_CFLAGS): Likewise.
28065 (gfxterm_mod_LDFLAGS): Likewise.
28066 (videotest_mod_SOURCES): Likewise.
28067 (videotest_mod_CFLAGS): Likewise.
28068 (videotest_mod_LDFLAGS): Likewise.
28069 (vesafb_mod_SOURCES): Removed.
28070 (vesafb_mod_CFLAGS): Likewise.
28071 (vesafb_mod_LDFLAGS): Likewise.
28072 (vga_mod_SOURCES): Likewise.
28073 (vga_mod_CFLAGS): Likewise.
28074 (vga_mod_LDFLAGS): Likewise.
28075
28076 * commands/videotest.c: New file.
28077
28078 * font/manager.c (fill_with_default_glyph): Modified to use
28079 grub_font_glyph.
28080 (grub_font_get_glyph): Likewise.
28081 (fontmanager): Renamed from this...
28082 (font_manager): ... to this.
28083
28084 * include/grub/font.h (grub_font_glyph): Added new structure.
28085 (grub_font_get_glyph): Modified to use grub_font_glyph.
28086
28087 * include/grub/misc.h (grub_abs): Added as inline function.
28088
28089 * include/grub/video.h: New file.
28090
28091 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
28092 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
28093 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
28094 (grub_vbe_get_controller_info): Renamed from this...
28095 (grub_vbe_bios_get_controller_info): ... to this.
28096 (grub_vbe_get_mode_info): Renamed from this...
28097 (grub_vbe_bios_get_mode_info): ... to this.
28098 (grub_vbe_set_mode): Renamed from this...
28099 (grub_vbe_bios_set_mode): ... to this.
28100 (grub_vbe_get_mode): Renamed from this...
28101 (grub_vbe_bios_get_mode): ... to this.
28102 (grub_vbe_set_memory_window): Renamed from this...
28103 (grub_vbe_bios_set_memory_window): ... to this.
28104 (grub_vbe_get_memory_window): Renamed from this...
28105 (grub_vbe_bios_get_memory_window): ... to this.
28106 (grub_vbe_set_scanline_length): Renamed from this...
28107 (grub_vbe_set_scanline_length): ... to this.
28108 (grub_vbe_get_scanline_length): Renamed from this...
28109 (grub_vbe_bios_get_scanline_length): ... to this.
28110 (grub_vbe_set_display_start): Renamed from this...
28111 (grub_vbe_bios_set_display_start): ... to this.
28112 (grub_vbe_get_display_start): Renamed from this...
28113 (grub_vbe_bios_get_display_start): ... to this.
28114 (grub_vbe_set_palette_data): Renamed from this...
28115 (grub_vbe_bios_set_palette_data): ... to this.
28116 (grub_vbe_set_pixel_rgb): Removed.
28117 (grub_vbe_set_pixel_index): Likewise.
28118
28119 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
28120 from this...
28121 (grub_vbe_bios_get_controller_info): ... to this.
28122 (grub_vbe_get_mode_info): Renamed from this...
28123 (grub_vbe_bios_get_mode_info): ... to this.
28124 (grub_vbe_set_mode): Renamed from this...
28125 (grub_vbe_bios_set_mode): ... to this.
28126 (grub_vbe_get_mode): Renamed from this...
28127 (grub_vbe_bios_get_mode): ... to this.
28128 (grub_vbe_set_memory_window): Renamed from this...
28129 (grub_vbe_bios_set_memory_window): ... to this.
28130 (grub_vbe_get_memory_window): Renamed from this...
28131 (grub_vbe_bios_get_memory_window): ... to this.
28132 (grub_vbe_set_scanline_length): Renamed from this...
28133 (grub_vbe_set_scanline_length): ... to this.
28134 (grub_vbe_get_scanline_length): Renamed from this...
28135 (grub_vbe_bios_get_scanline_length): ... to this.
28136 (grub_vbe_set_display_start): Renamed from this...
28137 (grub_vbe_bios_set_display_start): ... to this.
28138 (grub_vbe_get_display_start): Renamed from this...
28139 (grub_vbe_bios_get_display_start): ... to this.
28140 (grub_vbe_set_palette_data): Renamed from this...
28141 (grub_vbe_bios_set_palette_data): ... to this.
28142 (grub_vbe_bios_get_controller_info): Fixed problem with registers
28143 getting corrupted after calling it. Added more pushes and pops.
28144 (grub_vbe_bios_set_mode): Likewise.
28145 (grub_vbe_bios_get_mode): Likewise.
28146 (grub_vbe_bios_get_memory_window): Likewise.
28147 (grub_vbe_bios_set_scanline_length): Likewise.
28148 (grub_vbe_bios_get_scanline_length): Likewise.
28149 (grub_vbe_bios_get_display_start): Likewise.
28150 (grub_vbe_bios_set_palette_data): Likewise.
28151
28152 * normal/cmdline.c (cl_set_pos): Refresh the screen.
28153 (cl_insert): Likewise.
28154 (cl_delete): Likewise.
28155
28156 * term/gfxterm.c: New file.
28157
28158 * term/i386/pc/vesafb.c: Removed file.
28159
28160 * video/video.c: New file.
28161
28162 * video/i386/pc/vbe.c (real2pm): Added new function.
28163 (grub_video_vbe_draw_pixel): Likewise.
28164 (grub_video_vbe_get_video_ptr): Likewise.
28165 (grub_video_vbe_get_pixel): Likewise
28166 (grub_video_vbe_init): Likewise.
28167 (grub_video_vbe_fini): Likewise.
28168 (grub_video_vbe_setup): Likewise.
28169 (grub_video_vbe_get_info): Likewise.
28170 (grub_video_vbe_set_palette): Likewise.
28171 (grub_video_vbe_get_palette): Likewise.
28172 (grub_video_vbe_set_viewport): Likewise.
28173 (grub_video_vbe_get_viewport): Likewise.
28174 (grub_video_vbe_map_color): Likewise.
28175 (grub_video_vbe_map_rgb): Likewise.
28176 (grub_video_vbe_map_rgba): Likewise.
28177 (grub_video_vbe_unmap_color): Likewise.
28178 (grub_video_vbe_fill_rect): Likewise.
28179 (grub_video_vbe_blit_glyph): Likewise.
28180 (grub_video_vbe_blit_bitmap): Likewise.
28181 (grub_video_vbe_blit_render_target): Likewise.
28182 (grub_video_vbe_scroll): Likewise.
28183 (grub_video_vbe_swap_buffers): Likewise.
28184 (grub_video_vbe_create_render_target): Likewise.
28185 (grub_video_vbe_delete_render_target): Likewise.
28186 (grub_video_vbe_set_active_render_target): Likewise.
28187 (grub_vbe_set_pixel_rgb): Remove function.
28188 (grub_vbe_set_pixel_index): Likewise.
28189 (index_color_mode): Remove static variable.
28190 (active_mode): Likewise.
28191 (framebuffer): Likewise.
28192 (bytes_per_scan_line): Likewise.
28193 (grub_video_vbe_adapter): Added new static variable.
28194 (framebuffer): Likewise.
28195 (render_target): Likewise.
28196 (initial_mode): Likewise.
28197 (mode_in_use): Likewise.
28198 (mode_list): Likewise.
28199
5f97350b 282002006-03-10 Marco Gerards <marco@gnu.org>
28201
28202 * configure.ac (AC_INIT): Bumped to 1.93.
28203
28204 * DISTLIST: Added `include/grub/hfs.h'.
28205
a3c5c6f8 282062006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
28207
28208 * boot/i386/pc/boot.S (general_error): Before looping, try INT
28209 18H, which might help the BIOS falling back to next boot media.
28210
6de53d26 282112006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
28212
28213 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
28214 Poe Chen <poe.poechen@gmail.com>.
28215
77c4a393 282162006-01-17 Marco Gerards <marco@gnu.org>
28217
28218 * include/grub/normal.h: Include <grub/script.h>.
28219 (grub_command_list): Removed struct.
28220 (grub_command_list_t): Removed type.
28221 (grub_menu_entry): Remove members `num' and `command_list'. Add
28222 members `commands' and `sourcecode'.
28223 * include/grub/script.h: Add inclusion guards.
28224 (grub_script_cmd_menuentry): New struct.
28225 (grub_script_execute_menuentry): New prototype.
28226 (grub_script_lexer_record_start): Likewise.
28227 (grub_script_lexer_record_stop): Likewise.
28228 * normal/execute.c (grub_script_execute_menuentry): New function.
28229 * normal/lexer.c (record, recording, recordpos, recordlen): New
28230 variables.
28231 (grub_script_lexer_record_start): New function.
28232 (grub_script_lexer_record_stop): Likewise.
28233 (recordchar): Likewise.
28234 (nextchar): Likewise.
28235 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
28236 2048 as the buffer size. Add the tokens `menuentry' and `@'.
28237 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
28238 (current_menu): New variable.
28239 (free_menu): Mainly rewritten.
28240 (grub_normal_menu_addentry): New function.
28241 (read_config_file): Rewritten.
28242 * normal/menu.c (run_menu_entry): Mainly rewritten.
fe987087 28243 * normal/menu_entry.c (make_screen): Rewritten the code to insert
77c4a393 28244 the menu entry.
28245 (run): Mainly rewritten.
28246 * normal/parser.y (menu_entry): New variable.
28247 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
28248 (menuentry): New rule.
28249 (command): Add `menuentry'.
28250 (if_statement): Allow additional returns before `fi'.
28251 * normal/script.c (grub_script_create_cmdmenu): New function.
28252
144f1f98 282532006-01-03 Marco Gerards <marco@gnu.org>
28254
28255 * INSTALL: GNU Bison is required.
28256 * configure.ac: Rewritten the test to detect Bison.
28257 * Makefile.in (YACC): New variable. Reported by Xun Sun
28258 <xun.sun.cn@gmail.com>.
28259
af4b2d89 282602006-01-03 Marco Gerards <marco@gnu.org>
28261
28262 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
28263 the HFS+ filesystem to filesystem blocks.
28264 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
28265 GCC warning is silenced.
28266
15643b71 282672006-01-03 Marco Gerards <marco@gnu.org>
28268
28269 * partmap/apple.c (apple_partition_map_iterate): Convert the data
28270 read from disk from big endian to host byte order.
28271
00905879 282722006-01-03 Hollis Blanchard <hollis@penguinppc.org>
28273
28274 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
28275 documentation.
28276 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
28277 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
28278 embedded HFS+ filesystem.
28279 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
28280 (grub_hfs_sblock): Move from here...
28281 * include/grub/hfs.h: To here... New file.
28282 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
28283 documentation.
28284 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
28285 New macros.
28286 (grub_hfsplus_volheader): Change type of member `magic' to
28287 `grub_uint16_t'.
28288 (grub_hfsplus_data): Add new member `embedded_offset'.
28289 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
28290 returned block.
28291 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
28292 Calculate the offset.
28293
8899bc3e 282942005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
28295
28296 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
28297 Removed.
28298 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
28299
ae8c0277 283002005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
28301
28302 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
28303 ENV->NAME is NULL after allocating ENV->VALUE.
28304
07084456 283052005-12-25 Marco Gerards <marco@gnu.org>
28306
28307 * kern/env.c (grub_env_set): Rewritten the error handling code.
28308
4750f5f1 283092005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
28310
28311 * geninit.sh: Made more robust, and more portable.
28312
50214199 283132005-12-25 Marco Gerards <marco@gnu.org>
28314
28315 Add support for Apple HFS+ filesystems.
f19dbdb7 28316
50214199 28317 * fs/hfsplus.c: New file.
28318
28319 * DISTLIST: Added `fs/hfsplus.c'.
28320
28321 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
28322 (hfsplus_mod_SOURCES): New variable.
28323 (hfsplus_mod_CFLAGS): Likewise.
28324 (hfsplus_mod_LDFLAGS): Likewise.
28325 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
28326 (grub_setup_SOURCES): Likewise.
28327 (grub_mkdevicemap_SOURCES): Likewise.
28328 (grub_emu_SOURCES): Likewise.
28329 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28330
28331 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
28332
28333 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
28334
befaed6c 283352005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
28336
28337 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
28338 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
28339 include/grub/parser.h, include/grub/script.h, kern/parser.c,
28340 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
28341 normal/lexer.c, normal/parser.y, normal/script.c, and
28342 partmap/gpt.c.
28343 Removed kern/sparc64/cache.c.
28344
28345 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
28346 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
28347 grub_emu_init.c.
28348
28349 * configure.ac (AC_INIT): Bumped to 1.92.
28350
6a124103 283512005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
28352
28353 * kern/err.c (grub_error_push): Added new function to support error
28354 stacks.
28355 (grub_error_pop): Likewise.
28356 (grub_error_stack_items): New local variable to support error stacks.
28357 (grub_error_stack_pos): Likewise.
28358 (grub_error_stack_assert): Likewise.
28359 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
28360 stack depth.
28361 (grub_print_error): Added support to print errors from error stack.
28362
28363 * include/grub/err.h (grub_error_push): Added function prototype.
28364 (grub_error_pop): Likewise.
28365
be973c1b 283662005-12-09 Hollis Blanchard <hollis@penguinppc.org>
28367
28368 * configure.ac: Accept `powerpc64' as host_cpu.
28369 (amd64): Rename to `biarch32'.
28370
28371 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
28372 non-cacheline-aligned addresses.
28373
28374 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
28375 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
28376 if `size' is non-zero.
28377
b04216ab 283782005-12-03 Marco Gerards <mgerards@xs4all.nl>
28379
28380 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
28381 and `cd' to make sure the filename is not prefixed with a
28382 directory name.
28383 (pkgdata_MODULES): Add `gpt.mod'.
28384 (gpt_mod_SOURCES): New variable.
28385 (gpt_mod_CFLAGS): Likewise.
28386 (gpt_mod_LDFLAGS): Likewise.
28387
28388 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
28389
28390 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
28391 New macro.
28392
28393 * partmap/gpt.c: New file.
28394
28395 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
28396 GPT partition map is detected.
28397
41730ed9 283982005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
28399
28400 * commands/i386/pc/play.c: New file.
28401 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
28402 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
28403 macros.
f19dbdb7 28404
95dc3643 284052005-11-27 Marco Gerards <mgerards@xs4all.nl>
28406
28407 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
28408 ((unused))' to silence gcc warning.
28409
1569ec51 284102005-11-26 Hollis Blanchard <hollis@penguinppc.org>
28411
28412 * configure.ac: Correct `AC_PROG_YACC' test.
28413
9abde152 284142005-11-22 Hollis Blanchard <hollis@penguinppc.org>
28415
28416 * util/powerpc/ieee1275/grub-install.in: Run the mount point
28417 check before installing files.
28418
44b83271 284192005-11-22 Mike Small <smallm@panix.com>
28420
28421 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
28422 number regex so multidigit numbers are recognized correctly.
28423
284242005-11-22 Mike Small <smallm@panix.com>
28425
28426 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
28427 debugging message before attempting to claim memory.
28428 (grub_rescue_cmd_initrd): Add a claim debugging message and try
28429 multiple addresses in case of failure.
28430
9c12956b 284312005-11-22 Hollis Blanchard <hollis@penguinppc.org>
28432
28433 * term/tparm.c (get_space): Remove empty `if' statement.
28434
28435 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
28436
28437 * kern/parser.c (check_varstate): Rename `state' to 's'.
28438
aeaf81d9 284392005-11-22 Hollis Blanchard <hollis@penguinppc.org>
28440
28441 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
28442 variable definitions to the beginning of each function. Sort stack
28443 variables by size.
28444 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
28445 `buf' argument to `char *'.
28446
79bbb63f 284472005-11-22 Hollis Blanchard <hollis@penguinppc.org>
28448
28449 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
28450 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
fe6b695a 28451 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
79bbb63f 28452 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
28453 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
28454 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
28455 configfile.mod, search.mod, gzio.mod and test.mod.
28456 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
28457 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
28458 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
28459 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
28460 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
28461 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
28462 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
28463 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
28464 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
28465 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
28466 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
28467 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
28468 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
28469 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
28470 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
28471 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
28472 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
28473 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
28474 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
28475 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
28476 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
28477 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
28478 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
28479
28480 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
28481 `grep --include'.
28482 (pkgdata_MODULES): Add test.mod.
28483
233b1628 284842005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
28485
28486 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
28487 appending to variables with "+=".
28488 (PModule): Use full pathname to generate *.lst filenames.
28489
28490 * Makefile.in: Fixed list rules moved from genmk.rb.
28491 (.DELETE_ON_ERROR): New special target.
28492 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
28493
28494 * conf/i386-pc.rmk: Include conf/common.mk.
28495 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
fe6b695a 28496 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
233b1628 28497 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
28498 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
28499 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
28500 configfile.mod, search.mod, gzio.mod and test.mod.
28501 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
28502 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
28503 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
28504 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
28505 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
28506 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
28507 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
28508 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
28509 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
28510 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
28511 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
28512 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
28513 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
28514 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
28515 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
28516 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
28517 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
28518 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
28519 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
28520 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
28521 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
28522 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
28523 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
28524 here...
28525 * conf/common.rmk: ... to here. New file.
28526
28527 * conf/common.mk: New file.
28528
16f820c8 285292005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
28530
28531 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
28532 (grub_script.tab.c): ... here.
28533
28534 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
28535 (grub_script.tab.c): ... here.
28536
28537 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
28538 (grub_script.tab.c): ... here.
28539
28540 * normal/command.c (grub_command_find): Fixed a memory leak of
28541 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
28542
63ba1554 285432005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
28544
28545 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
28546 "@" which marks the start of a comment on ARM.
28547 (VARIABLE): Likewise.
28548
7f67dc13 285492005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
28550
79bbb63f 28551 Add support for Linux/ADFS partition tables.
7f67dc13 28552
28553 * partmap/acorn.c: New file.
28554
28555 * include/grub/acorn_filecore.h: Likewise.
28556
28557 * DISTLIST: Added `partmap/acorn.c' and
28558 `include/grub/acorn_filecore.h'.
f19dbdb7 28559
7f67dc13 28560 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
28561 `partmap/acorn.c'.
28562 (pkgdata_MODULES): Add `acorn.mod'.
28563 (acorn_mod_SOURCES): New variable.
28564 (acorn_mod_CFLAGS): Likewise.
28565
28566 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
28567 `partmap/acorn.c'.
28568 (pkgdata_MODULES): Add `acorn.mod'.
28569 (acorn_mod_SOURCES): New variable.
28570 (acorn_mod_CFLAGS): Likewise.
28571
28572 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
28573 (pkgdata_MODULES): Add `acorn.mod'.
28574 (acorn_mod_SOURCES): New variable.
28575 (acorn_mod_CFLAGS): Likewise.
28576 (acorn_mod_LDFLAGS): Likewise.
28577
28578 * include/types.h (grub_disk_addr_t): New typedef.
28579
6d099807 285802005-11-13 Marco Gerards <mgerards@xs4all.nl>
28581
28582 * geninit.sh: New file.
28583
28584 * geninitheader.sh: Likewise.
28585
28586 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
28587 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
28588 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
28589 * commands/configfile.c (grub_configfile_init)
28590 (grub_configfile_fini): Likewise.
28591 * commands/default.c (grub_default_init, grub_default_fini):
28592 Likewise.
28593 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
28594 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
28595 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
28596 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
28597 Likewise.
28598 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
28599 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
28600 Likewise.
28601 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
fe6b695a 28602 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
6d099807 28603 Likewise.
28604 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
28605 Likewise.
fe6b695a 28606 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
6d099807 28607 Likewise.
28608 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
28609 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
28610 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
28611 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
28612 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
28613 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
28614 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
28615 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
28616 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
28617 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
28618 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
28619 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
28620 * partmap/amiga.c (grub_amiga_partition_map_init)
28621 (grub_amiga_partition_map_fini): Likewise.
28622 * partmap/apple.c (grub_apple_partition_map_init)
28623 (grub_apple_partition_map_fini): Likewise.
28624 * partmap/pc.c (grub_pc_partition_map_init)
28625 (grub_pc_partition_map_fini): Likewise.
28626 * partmap/sun.c (grub_sun_partition_map_init,
28627 grub_sun_partition_map_fini): Likewise.
28628 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
28629 Likewise.
28630
28631 * util/grub-emu.c: Include <grub_modules_init.h>.
28632 (main): Don't initialize and de-initialize any modules directly,
28633 use `grub_init_all' and `grub_fini_all' instead.
28634
28635 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
28636 `grub_vesafb_mod_init'.
28637 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
28638 all users.
28639 * term/i386/pc/vga.c (grub_vga_init): Renamed to
28640 `grub_vga_mod_init'. Updated all users.
28641 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
f19dbdb7 28642
6d099807 28643 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
28644 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
28645 rules.
28646
28647 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
28648 Generate a function to initialize the module in utilities.
28649 Updated all callers.
28650 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
28651 initialize the module in utilities. Updated all callers.
28652
9046bcf0 286532005-11-09 Hollis Blanchard <hollis@penguinppc.org>
28654
28655 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
28656 escape sequence and a literal ^L to clear the screen.
28657
28658 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
28659 when returning from Open Firmware.
28660
d13ea639 286612005-11-09 Hollis Blanchard <hollis@penguinppc.org>
28662
28663 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
28664 (grub_ofconsole_height): Likewise.
28665 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
28666 manually insert a '\n'.
28667 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
28668 `grub_ofconsole_height'. Return early if these are already set.
28669
a8fcf206 286702005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
28671
28672 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
28673 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
28674 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
28675 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
28676 and `normal/script.c'.
28677 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
28678 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
28679 (test_mod_SOURCES): New variable.
28680 (test_mod_CFLAGS): Likewise.
28681 (test_mod_LDFLAGS): Likewise.
28682 (pkgdata_MODULES): Add `test.mod'.
28683 (grub_script.tab.c): New rule.
28684 (grub_script.tab.h): Likewise.
28685
b6b32745 286862005-11-07 Marco Gerards <mgerards@xs4all.nl>
28687
28688 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
28689 `commands/test.c', `normal/execute.c', `normal/lexer.c',
28690 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
28691 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
28692 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
28693 (test_mod_SOURCES): New variable.
28694 (test_mod_CFLAGS): Likewise.
28695 (pkgdata_MODULES): Add `test.mod'.
28696 (grub_script.tab.c): New rule.
28697 (grub_script.tab.h): Likewise.
28698
daac212a 286992005-11-06 Marco Gerards <mgerards@xs4all.nl>
28700
28701 Add initial scripting support.
28702
28703 * commands/test.c: New file.
28704 * include/grub/script.h: Likewise.
28705 * normal/execute.c: Likewise.
28706 * normal/function.c: Likewise.
28707 * normal/lexer.c: Likewise.
28708 * normal/parser.y: Likewise.
28709 * normal/script.c: Likewise.
28710
28711 * configure.ac: Add `AC_PROG_YACC' test.
f19dbdb7 28712
daac212a 28713 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
28714 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
28715 `normal/function.c' and `normal/script.c'.
28716 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
28717 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
b6b32745 28718 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
28719 variables.
daac212a 28720 (pkgdata_MODULES): Add `test.mod'.
28721 (grub_script.tab.c): New rule.
28722 (grub_script.tab.h): Likewise.
28723
28724 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
28725
28726 * include/grub/normal.h (grub_test_init): New prototype.
28727 (grub_test_fini): Likewise.
f19dbdb7 28728
daac212a 28729 * normal/command.c: Include <grub/script.h>.
28730 (grub_command_execute): Rewritten.
f19dbdb7 28731
daac212a 28732 * util/grub-emu.c (main): Call `grub_test_init' and
28733 `grub_test_fini'.
28734
77500b2b 287352005-11-03 Hollis Blanchard <hollis@penguinppc.org>
28736
28737 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
28738 to 0.
28739 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
28740 there are no pending characters.
28741
e45deb9e 287422005-11-03 Hollis Blanchard <hollis@penguinppc.org>
28743
28744 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
28745 `grub_strndup' to drop device arguments. Replace unnecessary
28746 `grub_strndup' with `grub_strdup'.
28747
4ce32619 287482005-11-03 Hollis Blanchard <hollis@penguinppc.org>
28749
28750 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
28751 `debug' environment variable has been set.
28752
287532005-11-02 Hollis Blanchard <hollis@penguinppc.org>
f19dbdb7 28754
4ce32619 28755 * Makefile.in (install-local): Use $(DATA).
28756 (uninstall): Likewise.
28757 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
28758 (sbin_UTILITIES): ... to here.
28759 (sbin_SCRIPTS): New variable.
28760 (grub_install_SOURCES): New variable.
28761 * util/powerpc/ieee1275/grub-install.in: New file.
28762 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
28763 variable.
28764 (add_segments): Call `grub_util_get_path'.
28765
25fe6f03 287662005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
28767
28768 From Timothy Baldwin:
28769 * commands/ls.c (grub_ls_list_files): Close FILE with
28770 grub_file_close.
28771 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
28772
04ccf3ec 287732005-10-24 Marco Gerards <mgerards@xs4all.nl>
28774
28775 * include/grub/parser.h: New file.
28776
28777 * kern/parser.c: Likewise.
28778
28779 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
28780 (grub_setup_SOURCES): Likewise.
28781 (grub_probefs_SOURCES): Likewise.
28782 (grub_emu_SOURCES): Likewise.
28783 (kernel_img_HEADERS): Add `parser.h'.
28784
28785 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
28786 (grub_emu_SOURCES): Add `kern/parser.c'.
28787 (grubof_SOURCES): Likewise.
28788
28789 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
28790 (grubof_SOURCES): Add `kern/parser.c'.
28791
28792 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
28793
28794 * kern/misc.c (grub_split_cmdline): Removed function.
28795
28796 * kern/rescue.c: Include <grub/parser.h>.
28797 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
28798 of `grub_split_cmdline'.
28799
28800 * normal/command.c: Include <grub/parser.h>.
28801 (grub_command_execute): Use `grub_parser_split_cmdline' instead
28802 of `grub_split_cmdline'.
28803
28804 * normal/completion.c: Include <grub/parser.h>.
28805 (cmdline_state): New variable.
28806 (iterate_dir): End the filename with a quote depending on the
28807 command line state.
28808 (get_state): new function.
28809 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
28810 split the arguments and determine the current argument. When the
28811 argument string is not quoted, escape all spaces.
28812
6d8f4b0e 288132005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
28814
28815 * normal/sparc64/setjmp.S: New file.
28816
15cf03ed 288172005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
28818
28819 * include/grub/sparc64/libgcc.h: New file.
28820 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
28821 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
28822 normal/sparc64/setjmp.c.
28823
03e8661a 288242005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
28825
28826 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
28827 * kern/sparc64/cache.S: New file.
28828 * kern/sparc64/cache.c: Removed.
28829 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
28830 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
28831 -mtune=ultrasparc.
28832 (COMMON_LDFLAGS): Add -melf64_sparc.
28833 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
28834 (grubof_SOURCES): Use cache.S instead of cache.c.
28835 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
28836 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
28837 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
28838 commented though.
28839 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
28840 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
28841 (linux_mod_CFLAGS): Commented out.
28842 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
28843 out because module isn't built.
28844 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
28845 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
28846 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
28847 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
28848 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
28849 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
28850 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
28851 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
28852 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
28853 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
28854 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
28855 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
28856 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
28857 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
28858
34eeec8a 288592005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
28860
28861 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
28862 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
28863 longer, because HFS should not be used on PC.
28864
708367a3 288652005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
28866
28867 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
28868 consistently within the loop.
28869
6fa1251a 288702005-10-15 Marco Gerards <mgerards@xs4all.nl>
28871
28872 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
28873 directory can not be read.
28874
4801580b 288752005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
28876
28877 * configure.ac (AC_INIT): Increase the version number to 1.91.
28878
28879 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
28880 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
28881 term/i386/pc/serial.c.
28882
219ad426 288832005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
28884
28885 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
28886 file size must be permitted.
28887
28888 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
28889 between %ah and %al.
28890
688e5699 288912005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
28892
28893 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
28894 grub_uint64_t.
28895 Call the hook with a NUL-terminated filename.
28896 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
28897 grub_cpu_to_be32.
28898
28899 * kern/term.c (cursor_state): New variable.
28900 (grub_term_set_current): Reset the cursor state on a new
28901 terminal.
28902 (grub_setcursor): Rewritten to use CURSOR_STATE.
28903 (grub_getcursor): New function.
28904
28905 * include/grub/term.h (grub_getcursor): New prototype.
28906
28907 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
28908 integers on ARM. Reported by Timothy Baldwin
28909 <T.E.Baldwin99@members.leeds.ac.uk>.
28910
bb34586c 289112005-10-11 Marco Gerards <mgerards@xs4all.nl>
28912
28913 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
28914 allocated.
28915 (grub_sfs_dir): Likewise.
28916
9a909877 289172005-10-09 Marco Gerards <mgerards@xs4all.nl>
28918
28919 Add support for the SFS filesystem.
28920
28921 * fs/sfs.c: New file.
28922
28923 * DISTLIST: Added `fs/sfs.c'.
28924
28925 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
28926 (grub_probefs_SOURCES): Likewise.
28927 (grub_emu_SOURCES): Likewise.
28928 (pkgdata_MODULES): Add `sfs.mod'.
28929 (sfs_mod_SOURCES): New variable.
28930 (sfs_mod_CFLAGS): Likewise.
28931 (sfs_mod_LDFLAGS): Likewise.
28932
28933 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
28934 (pkgdata_MODULES): Add `sfs.mod'.
28935 (sfs_mod_SOURCES): New variable.
28936 (sfs_mod_CFLAGS): Likewise.
28937
28938 * util/grub-emu.c (main): Call `grub_sfs_init' and
28939 `grub_sfs_fini'.
28940
28941 * include/grub/fs.h (grub_sfs_init): New prototype.
28942 (grub_sfs_fini): Likewise.
28943
57bdbde3 289442005-10-07 Marco Gerards <mgerards@xs4all.nl>
28945
28946 Add support for the AFFS filesystem.
28947
28948 * fs/affs.c: New file.
28949
28950 * DISTLIST: Added `fs/affs.c'.
28951
28952 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
28953 (grub_probefs_SOURCES): Likewise.
28954 (grub_emu_SOURCES): Likewise.
28955 (pkgdata_MODULES): Add `affs.mod'.
28956 (affs_mod_SOURCES): New variable.
28957 (affs_mod_CFLAGS): Likewise.
28958 (affs_mod_LDFLAGS): Likewise.
28959
28960 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
28961 (pkgdata_MODULES): Add `affs.mod'.
28962 (affs_mod_SOURCES): New variable.
28963 (affs_mod_CFLAGS): Likewise.
28964
28965 * util/grub-emu.c (main): Call `grub_affs_init' and
28966 `grub_affs_fini'.
28967
28968 * include/grub/fs.h (grub_affs_init): New prototype.
28969 (grub_affs_fini): Likewise.
28970
047b67e0 289712005-10-01 Marco Gerards <mgerards@xs4all.nl>
28972
28973 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
28974
59b8208a 289752005-10-01 Marco Gerards <mgerards@xs4all.nl>
28976
28977 * configure.ac: Accept `x86_64' as host_cpu. In that case add
28978 `-m32' to CFLAGS.
28979
28980 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
28981 linking.
f19dbdb7 28982
59b8208a 28983 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
28984 (COMMON_LDFLAGS): New variable.
28985 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
28986 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
28987 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
28988 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
28989 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
28990 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
28991 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
28992 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
28993 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
28994 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
28995 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
28996 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
28997 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
28998 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
28999 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
29000 variables.
29001 (normal_mod_ASFLAGS): Add `-m32'.
29002
29003 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
29004 (grub_host_size_t, grub_host_ssize_t): New types.
29005 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
fe6b695a 29006 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
59b8208a 29007 `GRUB_HOST_SIZEOF_VOID_P'.
29008
29009 * include/grub/kernel.h (struct grub_module_header): Type of
29010 member offset changed to `grub_host_off_t'. Type of member size
29011 changed to `grub_host_size_t'.
29012 (struct grub_module_info): Type of member offset changed to
29013 `grub_host_off_t'. Type of member size changed to
29014 `grub_host_size_t'.
29015
b4093103 290162005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
29017
29018 Make GRUB's kernel compliant to Multiboot Specification.
f19dbdb7 29019
b4093103 29020 * kern/i386/pc/startup.S (multiboot_header): New label.
29021 (multiboot_entry): Likewise.
29022 (multiboot_trampoline): Likewise.
29023
29024 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
29025 Increased to 0x4A0.
29026
29027 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
29028 put parentheses after a question mark.
29029 [!GRUB_UTIL] (my_mod): New variable.
29030
29031 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
29032
b2499b29 290332005-09-28 Marco Gerards <mgerards@xs4all.nl>
29034
29035 Adds support for the XFS filesystem. Btrees are not supported
29036 yet.
29037
29038 * fs/xfs.c: New file.
29039
29040 * DISTLIST: Added `fs/xfs.c'.
29041
29042 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
29043 (grub_probefs_SOURCES): Likewise.
29044 (grub_emu_SOURCES): Likewise.
29045 (pkgdata_MODULES): Add `xfs.mod'.
29046 (xfs_mod_SOURCES): New variable.
29047 (xfs_mod_CFLAGS): Likewise.
29048
29049 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
29050 (pkgdata_MODULES): Add `xfs.mod'.
29051 (xfs_mod_SOURCES): New variable.
29052 (xfs_mod_CFLAGS): Likewise.
29053
29054 * util/grub-emu.c (main): Call `grub_xfs_init' and
29055 `grub_xfs_fini'.
29056
29057 * include/grub/fs.h (grub_xfs_init): New prototype.
29058 (grub_xfs_fini): Likewise.
29059
f19dbdb7 29060
83d37a62 290612005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
29062
29063 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
29064 color modes, allow greater than 16 colors to be configured as
29065 a default palette.
29066
47d2d65e 290672005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
29068
29069 * normal/completion.c (complete_arguments): Add the qualifier
29070 const into OPTIONS.
29071
29072 From Omniflux <omniflux+lists@omniflux.com>:
29073 * include/grub/terminfo.h: New file.
29074 * include/grub/tparm.h: Likewise.
29075 * include/grub/i386/pc/serial.h: Likewise.
29076 * term/terminfo.c: Likewise.
29077 * term/tparm.c: Likewise.
29078 * term/i386/pc/serial.c: Likewise.
29079 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
29080 serial.mod.
29081 (terminfo_mod_SOURCES): New variable.
29082 (terminfo_mod_CFLAGS): Likewise.
29083 (serial_mod_SOURCES): Likewise.
29084 (serial_mod_CFLAGS): Likewise.
29085
48b671ff 290862005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
29087
29088 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
29089 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
29090 and kern/powerpc/ieee1275/cmain.c, respectively.
29091
29092 * boot/powerpc/ieee1275/crt0.S: Moved to ...
29093 * kern/powerpc/ieee1275/crt0.S: ... here.
29094
29095 * boot/powerpc/ieee1275/cmain.c: Moved to ...
29096 * kern/powerpc/ieee1275/cmain.c: ... here.
f19dbdb7 29097
48b671ff 29098 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
29099 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
29100 instead of boot/powerpc/ieee1275/crt0.S and
29101 boot/powerpc/ieee1275/cmain.c, respectively.
29102
29103 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
29104 sectors. It was not used anyway.
29105
09fc77a7 291062005-08-30 Hollis Blanchard <hollis@penguinppc.org>
29107
29108 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
29109 `unused parameter' warning.
29110
003789c7 291112005-08-30 Hollis Blanchard <hollis@penguinppc.org>
29112
29113 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
29114 function.
29115 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
29116 getcharwidth.
29117
67f44c86 291182005-08-28 Marco Gerards <metgerards@student.han.nl>
29119
29120 * include/grub/normal.h (enum grub_completion_type): Added
29121 `GRUB_COMPLETION_TYPE_ARGUMENT'.
29122
29123 * normal/cmdline.c (print_completion): Handle
29124 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
29125 * normal/menu_entry.c (store_completion): Likewise.
29126
29127 * normal/completion.c (complete_arguments): New function.
29128 (grub_normal_do_completion): Call `complete_arguments' when the
29129 current words start with a dash.
29130
0b5abe02 291312005-08-27 Marco Gerards <metgerards@student.han.nl>
29132
29133 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
29134 `gzio.mod' instead of `io.mod').
29135
d9864ee1 291362005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
29137
29138 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
29139 (DISTDIRS): Added io and video.
29140 Rewrite the search routine to make an output consistently.
29141
29142 * DISTLIST: Added conf/sparc64-ieee1275.mk,
29143 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
29144 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
29145 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
29146 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
29147 util/powerpc/ieee1275/misc.c.
f19dbdb7 29148
d9864ee1 29149 * include/grub/gzio.h: New file.
29150 * io/gzio.c: Likewise.
f19dbdb7 29151
d9864ee1 29152 * kern/file.c (grub_file_close): Call grub_device_close only if
29153 FILE->DEVICE is not NULL.
29154
29155 * include/grub/mm.h [!NULL] (NULL): New macro.
29156
29157 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
29158
29159 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
29160 (pkgdata_MODULES): Added gzio.mod.
29161 (gzio_mod_SOURCES): New variable.
29162 (gzio_mod_CFLAGS): Likewise.
29163
29164 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
29165 (pkgdata_MODULES): Added gzio.mod.
29166 (gzio_mod_SOURCES): New variable.
29167 (gzio_mod_CFLAGS): Likewise.
29168
29169 * commands/cat.c: Include grub/gzio.h.
29170 (grub_cmd_cat): Use grub_gzfile_open instead of
29171 grub_file_open.
f19dbdb7 29172
d9864ee1 29173 * commands/cmp.c: Include grub/gzio.h.
29174 (grub_cmd_cmp): Use grub_gzfile_open instead of
29175 grub_file_open.
29176
29177 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
29178 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
29179 grub_file_open.
29180 (grub_rescue_cmd_module): Likewise.
29181
fa46f4b5 291822005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
29183
29184 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
29185 kern/sparc64/ieee1275/init.c because it contains _start.
29186 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
29187
e9211b5d 291882005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
29189
29190 * configure.ac: Add support for sparc64 host with ieee1275
29191 firmware.
29192 * configure: Generated from configure.ac.
29193 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
29194 instead of int.
29195 (grub_ofdisk_read): Likewise.
29196 (grub_ofdisk_open): Use %p to print pointer values, and cast the
29197 pointers as (void *) to remove a warning.
29198 (grub_ofdisk_close): Likewise.
29199 (grub_ofdisk_read): Likewise.
29200 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
29201 returns, so make it return void to remove a warning.
29202 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
29203 Corresponding prototype change.
29204 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
29205 values, and cast the pointers as (void *) to remove a warning.
29206 (grub_mm_dump): Likewise.
29207 * conf/sparc64-ieee1275.mk: New file.
29208 * conf/sparc64-ieee1275.rmk: Likewise.
29209 * include/grub/sparc64/setjmp.h: Likewise.
29210 * include/grub/sparc64/types.h: Likewise.
29211 * include/grub/sparc64/ieee1275/console.h: Likewise.
29212 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
29213 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
29214 * include/grub/sparc64/ieee1275/time.h: Likewise.
29215 * kern/sparc64/cache.c: Likewise.
29216 * kern/sparc64/dl.c: Likewise.
29217 * kern/sparc64/ieee1275/init.c: Likewise.
29218 * kern/sparc64/ieee1275/openfw.c: Likewise.
29219
385c6a92 292202005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
29221
29222 * util/console.c (grub_ncurses_putchar): If C is greater than
29223 0x7f, set C to a question mark.
29224 (grub_ncurses_getcharwidth): New function.
29225 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
29226 getcharwidth.
29227
29228 * normal/menu.c (print_entry): Made aware of Unicode. First,
29229 convert TITLE to UCS-4, and predict the cursor position by
29230 grub_getcharwidth.
29231
29232 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
29233 const to SRC.
29234 * kern/misc.c (grub_utf16_to_utf8): Likewise.
29235
16ccb8b1 292362005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
29237
29238 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
29239 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
29240 grub_strcat.
29241
29242 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
29243 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
29244 grub_strcpy and grub_strlen. Take it into account that a space
29245 character is inserted as a delimiter.
29246
6a85ce79 292472005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
29248
29249 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
fe6b695a 29250 invalid magic in the error.
6a85ce79 29251
29252 * commands/search.c: New file.
f19dbdb7 29253
6a85ce79 29254 * util/grub-emu.c (main): Call grub_search_init and
29255 grub_search_fini.
29256
29257 * kern/rescue.c (grub_rescue_print_disks): Removed.
29258 (grub_rescue_print_devices): New function.
29259 (grub_rescue_cmd_ls): Use grub_device_iterate with
29260 grub_rescue_print_devices instead of grub_disk_dev_iterate with
29261 grub_rescue_print_disks.
29262
29263 * kern/partition.c (grub_partition_iterate): Return the result of
29264 PARTMAP->ITERATE instead of GRUB_ERRNO.
29265
29266 * kern/device.c: Include grub/partition.h.
29267 (grub_device_iterate): New function.
29268
29269 * include/grub/partition.h (grub_partition_iterate): Return int
29270 instead of grub_err_t.
29271
29272 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
29273 prototype.
29274 [GRUB_UTIL] (grub_search_fini): Likewise.
29275
29276 * include/grub/device.h (grub_device_iterate): New prototype.
29277
29278 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
29279 commands/search.c.
29280 (pkgdata_MODULES): Added search.mod.
29281 (search_mod_SOURCES): New variable.
29282 (search_mod_CFLAGS): Likewise.
29283
29284 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
29285 (pkgdata_MODULES): Added search.mod.
29286 (search_mod_SOURCES): New variable.
29287 (search_mod_CFLAGS): Likewise.
29288
29289 * commands/ls.c (grub_ls_list_disks): Renamed to ...
29290 (grub_ls_list_devices): ... this, and use grub_device_iterate.
29291 All callers changed.
29292
29293 * DISTLIST: Added commands/search.c.
29294
ef095434 292952005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
29296
29297 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
29298 conversion.
29299 (grub_getcharwidth): New function.
29300
29301 * kern/misc.c (grub_utf8_to_ucs4): New function.
29302
29303 * include/grub/term.h (struct grub_term): Added a new member
29304 "getcharwidth".
29305 (grub_getcharwidth): New prototype.
29306
29307 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
29308
29309 * term/i386/pc/console.c (map_char): New function. Segregated from
29310 grub_console_putchar.
29311 (grub_console_putchar): Use map_char.
29312 (grub_console_getcharwidth): New function.
29313 (grub_console_term): Specified grub_console_getcharwidth as
29314 getcharwidth.
29315
29316 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
29317 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
29318
29319 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
29320 GRUB_ERRNO.
29321 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
29322 on grub_strtoul completely.
29323 (write_char): Declare local variables in the beginning of the
29324 function.
29325 (grub_vesafb_getcharwidth): New function.
29326 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
29327 getcharwidth.
29328
1f0a95e4 293292005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
29330
29331 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
29332 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
29333 commands/i386/pc/vbetest.c.
29334
29335 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
29336 call grub_vbe_get_controller_info again, because the returned
29337 information is volatile.
29338 (grub_vbe_set_video_mode): Mostly rewritten.
29339 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
29340 grub_vbe_status_t correctly.
29341 (grub_vbe_get_video_mode_info): Likewise.
29342 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
29343 several if statements.
29344
29345 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
29346 * commands/i386/pc/vbeinfo.c: ... this.
29347
29348 * commands/i386/pc/vbe_test.c: Renamed to ...
29349 * commands/i386/pc/vbetest.c: ... this.
29350
29351 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
29352 ...
29353 (grub_cmd_vbeinfo): ... this. Save video modes before
29354 iterating. Skip a video mode, if it is not available, not enough
29355 information is given or it is monochrome. Show the memory
29356 model. Leave the interpretation of MODEVAR to grub_strtoul
29357 completely.
29358 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
29359 (GRUB_MOD_FINI): Likewise.
29360
29361 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
29362 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
29363 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
29364 duplicated grub_env_get. Leave the interpretation of MODEVAR to
29365 grub_strtoul completely.
29366 (real2pm): Removed.
29367 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
29368 (GRUB_MOD_FINI): Likewise.
29369
29370 * normal/misc.c: Include grub/mm.h.
29371
29372 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
29373 vbe_list_modes with vbetest.mod and vbeinfo.mod.
29374 (vbe_list_modes_mod_SOURCES): Removed.
29375 (vbe_list_modes_mod_CFLAGS): Likewise.
29376 (vbe_test_mod_SOURCES): Likewise.
29377 (vbe_test_mod_CFLAGS): Likewise.
29378 (vbeinfo_mod_SOURCES): New variable.
29379 (vbeinfo_mod_CFLAGS): Likewise.
29380 (vbetest_mod_SOURCES): Likewise.
29381 (vbetest_mod_CFLAGS): Likewise.
29382
992ffbbe 293832005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
29384
29385 * normal/misc.c: New file.
29386
29387 * DISTLIST: Added normal/misc.c.
f19dbdb7 29388
992ffbbe 29389 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
29390 DISK to HOOK. Call HOOK with DISK.
29391 * partmap/apple.c (apple_partition_map_iterate): Likewise.
29392 * partmap/pc.c (pc_partition_map_iterate): Likewise.
29393 * partmap/sun.c (sun_partition_map_iterate): Likewise.
29394
29395 * normal/menu_entry.c (struct screen): Added a new member
29396 "completion_shown".
29397 (completion_buffer): New global variable.
29398 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
29399 (store_completion): New function.
29400 (complete): Likewise.
29401 (clear_completions): Likewise.
29402 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
29403 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
29404 a tab, call complete.
29405
29406 * normal/completion.c (disk_dev): Removed.
29407 (print_simple_completion): Likewise.
29408 (print_partition_completion): Likewise.
29409 (print_func): New global variable.
29410 (add_completion): Do not take the arguments WHAT or PRINT any
29411 longer. Added a new argument TYPE. Instead of printing directly,
29412 call PRINT_FUNC if not NULL.
29413 All callers changed.
29414 (complete_device): Use a local variable DEV instead of
29415 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
29416 (grub_normal_do_completion): Take a new argument HOOK. Do not
29417 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
29418 empty string, return NULL instead.
29419 All callers changed.
29420
29421 * normal/cmdline.c (print_completion): New function.
29422
29423 * kern/partition.c (grub_partition_iterate): Add an argument DISK
29424 to HOOK.
29425 All callers changed.
29426
29427 * kern/disk.c (grub_print_partinfo): Removed.
29428
29429 * include/grub/partition.h (struct grub_partition_map): Add a new
29430 argument DISK into HOOK of ITERATE.
29431 (grub_partition_iterate): Add a new argument DISK to HOOK.
29432
29433 * include/grub/normal.h (enum grub_completion_type): New enum.
29434 (grub_completion_type_t): New type.
29435 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
29436 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
29437 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
29438 (GRUB_COMPLETION_TYPE_FILE): Likewise.
29439 (grub_normal_do_completion): Added a new argument HOOK.
29440 (grub_normal_print_device_info): New prototype.
29441
29442 * include/grub/disk.h (grub_print_partinfo): Removed.
29443
29444 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
29445 (normal_mod_SOURCES): Likewise.
29446 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29447 (normal_mod_SOURCES): Likewise.
29448
29449 * commands/ls.c (grub_ls_list_disks): Use
29450 grub_normal_print_device_info instead of grub_print_partinfo. Free
29451 PNAME.
29452 (grub_ls_list_files): Use grub_normal_print_device_info instead of
29453 duplicating the code.
29454
0bd41162 294552005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
29456
29457 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
f19dbdb7 29458 follow GCS more precisely.
29459 * commands/i386/pc/vbe_test.c: Likewise.
29460 * include/grub/i386/pc/vbe.h: Likewise.
29461 * term/i386/pc/vesafb.c: Likewise.
29462 * video/i386/pc/vbe.c: Likewise.
0bd41162 29463
6323696a 294642005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
29465
29466 * DISTLIST: Added term/i386/pc/vesafb.c
29467 DISTLIST: Added video/i386/pc/vbe.c
29468 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
29469 DISTLIST: Added commands/i386/pc/vbe_test.c.
29470 * commands/i386/pc/vbe_list_modes.c: New file.
29471 * commands/i386/pc/vbe_test.c: Likewise.
29472 * term/i386/pc/vesafb.c: Likewise.
29473 * video/i386/pc/vbe.c: Likewise.
29474 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
29475 (grub_vbe_probe) Added prototype.
29476 (grub_vbe_set_video_mode) Likewise.
29477 (grub_vbe_get_video_mode) Likewise.
29478 (grub_vbe_get_video_mode_info) Likewise.
29479 (grub_vbe_set_pixel_rgb) Likewise.
29480 (grub_vbe_set_pixel_index) Likewise.
29481 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
29482 (pkgdata_MODULES): Added vesafb.mod.
29483 (pkgdata_MODULES): Added vbe_list_modes.mod.
29484 (pkgdata_MODULES): Added vbe_test.mod.
29485 (vbe_mod_SOURCES): Added.
29486 (vbe_mod_CFLAGS): Likewise.
29487 (vesafb_mod_SOURCES): Likewise.
29488 (vesafb_mod_CFLAGS): Likewise.
29489 (vbe_list_modes_mod_SOURCES): Likewise.
29490 (vbe_list_modes_mod_CFLAGS): Likewise.
29491 (vbe_test_mod_SOURCES): Likewise.
29492 (vbe_test_mod_CFLAGS): Likewise.
29493
0a74e62f 294942005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
29495
0a74e62f 29496 * normal/command.c (grub_command_execute): If INTERACTIVE is
29497 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
29498 CMDLINE. Disable the pager if INTERACTIVE is true.
29499 All callers are changed.
29500
29501 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
29502 before reading a config file.
29503 * normal/main.c (read_config_file): Even if a command is not
29504 found, register it if it is within an entry.
29505
29506 * util/grub-emu.c: Include sys/types.h and unistd.h.
29507 (options): Added --hold.
29508 (struct arguments): Added a new member "hold".
29509 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
29510 missing.
29511 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
29512 cleared by a debugger, if it is not zero.
29513
29514 * include/grub/normal.h (grub_command_execute): Add an argument
29515 INTERACTIVE.
29516
e51f85ae 295172005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
29518
29519 * DISTLIST: Added include/grub/i386/pc/vbe.h.
29520
e9c6f39b 295212005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
29522
29523 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
29524 program with another one, because the old one didn't detect a bug
29525 in gcc-3.4. Always use regparm 2, because the new test is still
29526 not enough for gcc-4.0. Someone must investigate a simple test
29527 case which detects a bug in gcc-4.0.
29528
8de3495c 295292005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
29530
29531 * DISTLIST: Added normal/completion.c.
29532
29533 * normal/completion.c: New file.
f19dbdb7 29534
8de3495c 29535 * term/i386/pc/console.c (grub_console_getwh): New function.
29536 (grub_console_term): Assign grub_console_getwh to getwh.
29537
29538 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
29539 function is defined in normal/completion.c as
29540 grub_normal_do_completion.
29541 (grub_cmdline_get): Use grub_normal_do_completion instead of
29542 grub_tab_complete.
29543
29544 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
29545 returns non-zero, otherwise return 0.
29546 (grub_partition_iterate): First, probe the partition map. Then,
29547 call ITERATE only for this partition map.
29548
29549 * kern/misc.c (grub_strncmp): Rewritten.
29550
29551 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
29552 returns non-zero. Otherwise return 0.
29553
29554 * include/grub/partition.h (grub_partition_map_iterate): Return
29555 int instead of void.
29556
29557 * include/grub/normal.h (grub_normal_do_completion): New prototype.
29558
29559 * include/grub/misc.h (grub_strncmp): Change the type of N to
29560 grub_size_t.
29561
29562 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
29563 of void.
29564
29565 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
fe6b695a 29566 unsigned explicitly before comparing it with I.
8de3495c 29567
29568 * kern/main.c (grub_env_write_root): Add the attribute unused into
29569 VAR.
29570
29571 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
29572 normal/completion.c.
29573 (normal_mod_SOURCES): Likewise.
29574 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
29575 (normal_mod_SOURCES): Likewise.
29576
29577 * normal/command.c (grub_iterate_commands): If ITERATE returns
29578 non-zero, return one immediately.
29579
e85e144b 295802005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
29581
29582 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
29583 * kern/i386/pc/startup.S: Updated Global Descriptor table's
29584 descriptions.
29585 (grub_vbe_get_controller_info): New function.
29586 (grub_vbe_get_mode_info): Likewise.
29587 (grub_vbe_set_mode): Likewise.
29588 (grub_vbe_get_mode): Likewise.
29589 (grub_vbe_set_memory_window): Likewise.
29590 (grub_vbe_get_memory_window): Likewise.
29591 (grub_vbe_set_scanline_length): Likewise.
29592 (grub_vbe_get_scanline_length): Likewise.
29593 (grub_vbe_set_display_start): Likewise.
29594 (grub_vbe_get_display_start): Likewise.
29595 (grub_vbe_set_palette_data): Likewise.
29596 * include/grub/i386/pc/vbe.h: New file.
29597
c46153d2 295982005-08-08 Hollis Blanchard <hollis@penguinppc.org>
29599
29600 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
29601 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
29602 * DISTLIST: Likewise.
29603 * kern/ieee1275/of.c: Moved to ...
29604 * kern/ieee1275/ieee1275.c: ... here.
29605
0cb90c45 296062005-08-08 Hollis Blanchard <hollis@penguinppc.org>
29607
29608 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
29609 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
29610 Pass 0 as `end' parameter to grub_strtoul().
29611
a19fb360 296122005-08-08 Hollis Blanchard <hollis@penguinppc.org>
29613
29614 * include/grub/powerpc/ieee1275/console.h: Do not include
29615 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
29616 ifdef.
29617 (grub_console_cur_color): Remove i386-specific prototype.
29618 (grub_console_real_putchar): Likewise.
29619 (grub_console_checkkey): Likewise.
29620 (grub_console_getkey): Likewise.
29621 (grub_console_getxy): Likewise.
29622 (grub_console_gotoxy): Likewise.
29623 (grub_console_cls): Likewise.
29624 (grub_console_setcursor): Likewise.
29625 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
29626 Include <grub/machine/console.h>.
29627 * term/ieee1275/ofconsole.c: Likewise.
29628
4ac9bd04 296292005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
29630
29631 * Makefile.in (LIBLZO): New variable.
29632
29633 * configure.ac: Check for LZO version 2.
29634
29635 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
29636 lzo/lzo1x.h instead of lzo1x.h.
29637
29638 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
29639 of -llzo.
29640
29641 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
29642 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
29643
29644 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
29645 copying the data from PARTITION to P.
29646
f4917dfd 296472005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
29648
29649 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
29650 negative, unload the module.
29651
29652 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
29653 map is "pc_partition_map" but not "pc".
29654 (usage): Fix the description. The options are --boot-image and
29655 --core-image but not --boot-file or --core-file.
29656 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
29657 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
29658 DEFAULT_DIRECTORY.
29659
29660 * util/i386/pc/grub-install.in: Do not specify --boot-file or
29661 --core-file. Specify INSTALL_DEVICE as an argument.
29662
29663 * util/console.c: Include config.h.
29664 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
29665 [HAVE_NCURSES_H]: Include ncurses.h.
29666 [HAVE_CURSES_H]: Include curses.h.
29667 [!A_NORMAL] (A_NORMAL): Defined as zero.
29668 [!A_STANDOUT] (A_STANDOUT): Likewise.
29669
29670 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
29671 -lncurses.
29672 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
29673
29674 * configure.ac: Check for curses libraries and headers.
29675
29676 * Makefile.in (LIBCURSES): New variable.
29677
29678 * genmk.rb (Script::rule): Set the executable bits.
29679
29680 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
29681 name of the PC partition map is "pc_partition_map" but not "pc".
29682
0e143073 296832005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
29684
29685 * util/i386/pc/grub-install.in (grub_probefs): New variable.
29686 (modules): Likewise.
29687 (usage): Added descriptions for --modules and --grub-probefs.
29688 Handle --modules and --grub-probefs. Save the arguments in MODULES
29689 and GRUB_PROBEFS, respectively.
29690 Auto-detect a filesystem module against GRUBDIR. If the result is
29691 empty and modules are not specified explicitly, abort the
29692 installation. Add the result to MODULES.
29693
29694 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
29695 disk/powerpc/ieee1275/ofdisk.c,
29696 include/grub/powerpc/ieee1275/init.h and
29697 term/powerpc/ieee1275/ofconsole.c.
29698 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
29699 term/ieee1275/ofconsole.c.
29700
29701 * include/grub/powerpc/ieee1275/console.h: Resurrected.
29702
29703 * COPYING: Upgraded to the latest version. Only the address of the
29704 FSF office has changed.
f19dbdb7 29705
efd6e6d5 297062005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
29707
29708 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
29709 kern/ieee1275.c with kern/ieee1275/of.c.
29710
29711 * kern/ieee1275.c: Moved to ...
29712 * kern/ieee1275/of.c: ... here.
29713
8ceafda2 297142005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
29715
29716 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
fe6b695a 29717 readability.
8ceafda2 29718
29719 * config.guess: Updated to the latest version from gnulib.
29720 * config.sub: Likewise.
29721 * install.sh: Likewise.
29722 * mkinstalldirs: Likewise.
29723
29724 * include/grub/console.h: Removed. This file is arch-specific. Do
29725 not put this in include/grub.
29726
29727 * include/grub/i386/pc/console.h: Resurrected.
29728
29729 * util/console.c: Include grub/machine/console.h instead of
29730 grub/console.h.
29731 * util/grub-emu.c: Likewise.
29732
267f6cd9 297332005-08-04 Marco Gerards <metgerards@student.han.nl>
29734
29735 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
29736 hardcoded value.
f19dbdb7 29737
267f6cd9 29738 From Vincent Pelletier <subdino2004@yahoo.fr>
29739 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
29740 Redefined to use grub_getwh.
29741 (grub_term): New member named getwh.
29742 (grub_getwh): New prototype.
29743 * kern/term.c (grub_getwh): New function.
29744 * term/i386/pc/console.c (grub_console_getwh): New function.
29745 (grub_console_term): New member `getwh'.
29746 * term/i386/pc/vga.c (grub_vga_getwh): New function.
29747 (grub_vga_term): New member `getwh'.
0b5abe02 29748 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
267f6cd9 29749 grub_ssize_t.
29750 (grub_ofconsole_getw): New function.
29751 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
29752 (grub_ofconsole_term): New field named getwh and new initial
29753 value.
29754
3be7266d 297552005-08-03 Hollis Blanchard <hollis@penguinppc.org>
29756
29757 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
29758 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
29759 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
29760 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
29761 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
29762 of <grub/machine/ieee1275.h>.
29763 * commands/ieee1275/reboot.c: Likewise.
29764 * boot/powerpc/ieee1275/ieee1275.c: Move ...
29765 * kern/ieee1275.c: ... to here. All users updated. Change all
29766 parameter structs to use new type `grub_ieee1275_cell_t'.
29767 * term/powerpc/ieee1275/ofconsole.c: Move ...
29768 * term/ieee1275/ofconsole.c: ... to here. All users updated.
29769 * disk/powerpc/ieee1275/ofdisk.c: Move ...
29770 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
29771 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
29772 to return int.
29773 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
29774 Remove unused prototypes. All users updated.
29775 * include/grub/powerpc/ieee1275/console.h: Removed.
29776 * include/grub/powerpc/ieee1275/ieee1275.h: Define
29777 `grub_ieee1275_cell_t'.
29778 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
29779 Cast comparisons with -1 to the correct type.
29780 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
29781 type to match `grub_ieee1275_entry_fn'.
29782
8b5f3938 297832005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
29784
29785 * DISTLIST: Added util/i386/pc/grub-probefs.c.
29786
29787 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
29788 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
29789 partmap/sun.c.
29790 (grub_probefs_SOURCES): New variable.
29791
29792 * util/i386/pc/grub-probefs.c: New file.
29793
29794 * util/i386/pc/grub-setup.c (main): Call
29795 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
29796 grub_hfs_init and grub_jfs_init to initialize the system. Call
29797 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
29798 grub_pc_partition_map_fini to finish the system.
29799
ea409713 298002005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
29801
29802 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
29803 function.
29804 (grub_multiboot_load_elf32): Likewise.
29805 (grub_multiboot_is_elf64): Likewise.
29806 (grub_multiboot_load_elf64): Likewise.
29807 (grub_multiboot_load_elf): Likewise.
29808 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
29809 an ELF32 or ELF64 file.
29810 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
29811
29812 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
29813 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
29814 NULL before calling FS->LABEL.
29815 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
29816 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
29817 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
29818 before calling FS->LABEL.
29819
141a288b 298202005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
29821
29822 * util/i386/pc/grub-install.in (datadir): New variable.
29823 (libdir): Removed.
29824 (pkgdatadir): New variable.
29825 (pkglibdir): Removed.
29826
0d5f8a54 298272005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
29828
29829 * DISTLIST: Added util/i386/pc/grub-install.in.
29830
29831 * util/i386/pc/grub-install.in: New file.
29832
29833 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
29834 (grub_install_SOURCES): Likewise.
29835
29836 * genmk.rb: Added support for scripts.
29837 (Script): New class.
29838 (scripts): New variable.
29839
29840 * Makefile.in (install-local): Install sbin_SCRIPTS by
29841 INSTALL_SCRIPT.
29842 (uninstall): Remove sbin_SCRIPTS.
29843
29844 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
29845 device, try to get a GRUB device by
29846 grub_util_biosdisk_get_grub_dev.
29847 Free DEST_DEV.
29848
29849 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
29850 description for --device-map.
29851
5f968e1e 298522005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
29853
29854 Change the semantics of variable hooks. They now return strings
29855 instead of error values.
f19dbdb7 29856
5f968e1e 29857 * util/i386/pc/grub-setup.c: Include grub/env.h.
29858 (setup): Use grub_device_set_root instead of grub_env_set.
29859
29860 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
29861 grub_env_get instead of grub_device_set_root and
29862 grub_device_get_root, respectively.
29863
29864 * kern/main.c (grub_env_write_root): New function.
29865 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
29866 grub_env_set instead of grub_device_set_root.
29867
29868 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
29869 many variables.
29870 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
29871 rather than calling ENV->WRITE_HOOK afterwards.
29872 (grub_env_get): Return the result of ENV->READ_HOOK rather than
29873 passing a pointer of a pointer.
29874 (grub_register_variable_hook): Change the types of "read_hook" and
29875 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
29876 respectively.
29877 Allocate the default empty string on the heap, because this string
29878 may be freed later.
29879
29880 * kern/device.c: Include grub/env.h.
29881 (grub_device_set_root): Removed.
29882 (grub_device_get_root): Likewise.
29883 (grub_device_open): Use grub_env_get instead of
29884 grub_device_get_root.
29885
29886 * include/grub/env.h (grub_env_read_hook_t): New type.
29887 (grub_env_write_hook_t): Likewise.
29888 (grub_env_var): Change the types of "read_hook" and "write_hook"
29889 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
29890 (grub_register_variable_hook): Likewise.
29891
29892 * include/grub/device.h (grub_device_set_root): Removed.
29893 (grub_device_set_root): Likewise.
29894
29895 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
29896 make sure that DIRNAME terminates with '/', so that
29897 grub_fat_find_dir will fail if PATH is not a directory.
29898
29899 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
29900 from DIRNAME.
29901 Use the qualifier auto for print_files and print_files_long.
29902 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
29903 as a regular file.
29904 Put a newline only if there is no error.
29905 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
29906 used.
29907
896f0afd 299082005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
29909
29910 * kern/partition.c (grub_partition_probe): Initialize PART to
29911 NULL. Otherwise, when no partition map is registered, this returns
29912 a garbage.
29913
b28b81b2 299142005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
29915
29916 * partmap/apple.c (apple_partition_map_iterate): Check if POS
29917 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
29918 valid.
29919
5f3607e0 299202005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
29921
29922 * commands/ls.c (grub_ls_list_disks): Print the filesystem
29923 information on each device, if it does not have partitions. Print
29924 "Device" instead of "Disk", because this function is not specific
29925 to disk devices.
29926
29927 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
29928 static to ensure that it is put on the memory rather than a
29929 register.
29930
502c87e8 299312005-07-17 Yoshinori Okuji <okuji@enbug.org>
29932
29933 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
29934 (grub_cat_init): Likewise.
29935 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
29936 (options): Likewise.
29937 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
29938 (grub_configfile_init): Likewise.
29939 * font/manager.c (GRUB_MOD_INIT): Likewise.
29940 * commands/help.c (GRUB_MOD_INIT): Likewise.
29941 (grub_help_init): Likewise.
29942 * normal/command.c (grub_command_init): Likewise.
29943 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
29944 * disk/loopback.c (grub_loop_init): Likewise.
29945 (GRUB_MOD_INIT): Likewise.
29946 * commands/ls.c (grub_ls_init): Likewise.
29947 (GRUB_MOD_INIT): Likewise.
29948 (options): Likewise.
29949 * commands/boot.c (grub_boot_init): Likewise.
29950 (GRUB_MOD_INIT): Likewise.
29951 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
29952 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
29953 (GRUB_MOD_INIT): Likewise.
29954 * commands/cmp.c (grub_cmp_init): Likewise.
29955 (GRUB_MOD_INIT): Likewise.
29956
29957 * normal/arg.c: Use <> instead of "" to include header files.
29958 (SHORT_ARG_HELP): New macro.
29959 (SHORT_ARG_USAGE): Likewise.
29960 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
29961 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
29962 descriptions.
29963 (find_short): Check if C is 'h' or 'u' explicitly.
29964 (grub_arg_show_help): Use space characters instead of tabs. Treat
29965 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
29966 are shown with --help and --usage only if they are not used for
29967 the command itself.
29968 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
29969 'h' and 'u'.
29970
29971 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
29972 const into "longarg". Change the type of "shortarg" to int.
29973
f806d18e 299742005-07-17 Yoshinori Okuji <okuji@enbug.org>
29975
29976 * boot/i386/pc/boot.S (boot_drive_check): New label.
29977
29978 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
29979 macro.
29980
29981 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
29982 which do not pass a boot drive correctly. Copied from GRUB Legacy.
29983
e293232b 299842005-07-17 Yoshinori Okuji <okuji@enbug.org>
29985
29986 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
29987 When turning off Gate A20, skip the check and return immediately,
29988 because this is not fatal usually.
29989
ebedfd00 299902005-07-17 Yoshinori Okuji <okuji@enbug.org>
29991
29992 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
29993 be 0x7C00 instead of 0x8000.
29994
29995 * boot/i386/pc/pxeboot.S: Rewritten.
29996
29997 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
29998 EXT_C.
29999 (gate_a20_check_state): Read a byte from 0x108000. Invert the
30000 result.
30001
654fc59f 300022005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
30003
30004 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
30005 robustness. This routine now supports a BIOS call and System
30006 Control Port A to modify the gate A20.
30007
30008 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
30009 Increased to 0x440.
30010
09f9923f 300112005-07-12 Hollis Blanchard <hollis@penguinppc.org>
30012
30013 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
30014 device path and resulting ihandle.
30015 (grub_ofdisk_close): dprintf the ihandle being closed.
30016 (grub_ofdisk_read): dprintf function parameters.
30017 * kern/mm.c (grub_mm_init_region): Likewise.
30018 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
30019 (grub_linux_boot): dprintf the Linux entry point, initrd address and
30020 size, and boot arguments.
30021 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
30022 before loading into memory.
30023 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
30024 before loading into memory.
30025
7ef504d8 300262005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
30027
30028 * kern/mm.c: Added much documentation.
30029 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
30030 8, set to 5 instead of 8.
30031
e0f050c2 300322005-07-10 Yoshinori Okuji <okuji@enbug.org>
30033
30034 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
30035
30036 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
30037 (grub_mkdevicemap_SOURCES): New variable.
30038
30039 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
30040 lib/device.c of GRUB Legacy.
30041
7224189a 300422005-07-10 Yoshinori Okuji <okuji@enbug.org>
30043
30044 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
30045 instead of PATH is NULL.
30046
68c864eb 300472005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
30048
30049 * commands/cmp.c (BUFFER_SIZE): New macro.
30050 (grub_cmd_cmp): Close the right file at the right time. Compare
30051 only data just read. Don't report files of different size as
30052 identical. Dynamically allocate buffers. Move variable
30053 declarations at the beginning of function.
30054
e6f3e614 300552005-07-09 Yoshinori Okuji <okuji@enbug.org>
30056
30057 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
30058 reverse.
30059
f8f1559a 300602004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
30061
30062 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
30063 when backspace is pressed at beginning of line.
30064
39c9d41d 300652005-07-03 Yoshinori Okuji <okuji@enbug.org>
30066
30067 * DISTLIST: Added genfslist.sh.
30068
30069 * normal/main.c (fs_module_list): New variable.
30070 (autoload_fs_module): New function.
30071 (read_fs_list): Likewise.
30072 (grub_normal_execute): Call read_fs_list.
30073
30074 * kern/fs.c (grub_fs_autoload_hook): New variable.
30075 (grub_fs_probe): Added support for auto-loading.
30076
30077 * include/grub/normal.h (struct grub_fs_module_list): New struct.
30078 (grub_fs_module_list_t): New type.
30079
30080 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
30081 (grub_fs_autoload_hook): New prototype.
30082
30083 * genfslist.sh: New file.
f19dbdb7 30084
39c9d41d 30085 * genmk.rb: Added a rule to generate a filesystem list.
30086
121c1d83 300872005-06-30 Marco Gerards <metgerards@student.han.nl>
30088
30089 * configure.ac: Fix the test for cross-compiling.
30090
30091 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
30092 define GRUB_UTIL anymore.
30093
30094 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
30095 so this function works on other systems than just big endian.
30096 (load_modules): Likewise.
30097 (add_segments): Likewise.
30098
e75d76e1 300992005-06-23 Hollis Blanchard <hollis@penguinppc.org>
30100
30101 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
30102 contains `l' modifier, get a long from va_arg().
30103
50b5a0a7 301042005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
30105
30106 * kern/mm.c (grub_free): If the next free block which is being
30107 merged is the first free block, set the first block to the block
30108 being freed.
30109 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
30110
89371b20 301112005-05-08 Hollis Blanchard <hollis@penguinppc.org>
30112
30113 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
30114 `grub_ieee1275_chosen'.
30115
168d6e58 301162005-05-08 Hollis Blanchard <hollis@penguinppc.org>
30117
30118 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
30119 (grub_ieee1275_chosen): New variable.
30120 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
30121 `chosen'.
30122 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
30123 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
30124 Rename first argument to `phandle' for consistency.
30125 (grub_ieee1275_get_property_length): Likewise.
30126 (grub_ieee1275_next_property): Likewise. Change type of first argument
30127 to grub_ieee1275_phandle_t.
30128 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
30129 Move export next to declaration.
30130 (grub_ieee1275_chosen): New variable.
30131 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
30132 Correct cosmetic typo.
30133 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
30134 `grub_ieee1275_chosen'.
30135 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
30136 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
30137 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
30138 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
30139 `grub_ieee1275_chosen'.
30140
ca5baa3f 301412005-05-10 Hollis Blanchard <hollis@penguinppc.org>
30142
30143 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
30144 /chosen/bootargs.
30145 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
30146 /chosen/bootargs as "variable=value" pairs.
30147
708b345f 301482005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
30149
30150 * include/grub/misc.h (grub_dprintf): New macro.
30151 (grub_real_dprintf): New prototype.
30152 (grub_strword): Likewise.
30153 (grub_iswordseparator): Likewise.
30154 * kern/misc.c (grub_real_dprintf): New function.
30155 (grub_strword): Likewise.
30156 (grub_iswordseparator): Likewise.
30157
f4c5e67c 301582005-04-30 Hollis Blanchard <hollis@penguinppc.org>
30159
30160 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
30161 (roundup): Remove macro.
30162 (grub_ieee1275_flags): Make static.
30163 (grub_ieee1275_realmode): Remove.
30164 (grub_ieee1275_test_flag): New function.
30165 (grub_ieee1275_set_flag): Likewise.
30166 (find_options): Rename to `grub_ieee1275_find_options'; update
30167 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
30168 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
30169 (cmain): New prototype.
30170 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
30171 `grub_ieee1275_flags' directly.
30172 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
30173 machine/biosdisk.h.
30174 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
30175 Don't include grub/machine/init.h.
30176 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
30177 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
30178 Remove prototype.
30179 (grub_ieee1275_realmode): Likewise.
30180 (grub_ieee1275_flag): New enum.
30181 (grub_ieee1275_test_flag): New prototype.
30182 (grub_ieee1275_set_flag): New prototype.
30183 * include/grub/powerpc/ieee1275/init.h: Remove file.
30184 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
30185 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
30186 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
30187 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
30188 comment.
30189 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
30190 `grub_ieee1275_test_flag'.
30191 (grub_ieee1275_encode_devname): Likewise.
30192
ed16607e 301932005-04-21 Hollis Blanchard <hollis@penguinppc.org>
30194
30195 * include/grub/powerpc/ieee1275/ieee1275.h
30196 (grub_ieee1275_encode_devname): New prototype.
30197 (grub_ieee1275_get_filename): Likewise.
30198 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
30199 function.
30200 (grub_set_prefix): Likewise.
30201 (grub_machine_init): Call grub_set_prefix.
30202 * kern/powerpc/ieee1275/openfw.c: Fix typos.
30203 (grub_parse_type): New enum.
30204 (grub_ieee1275_get_devargs): New function.
30205 (grub_ieee1275_get_devname): Likewise.
30206 (grub_ieee1275_parse_args): Likewise.
30207 (grub_ieee1275_get_filename): Likewise.
30208 (grub_ieee1275_encode_devname): Likewise.
30209
be369920 302102005-03-30 Marco Gerards <metgerards@student.han.nl>
30211
30212 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
30213 `grub_loader_unset'.
30214
a5ce3a4a 302152005-03-26 Hollis Blanchard <hollis@penguinppc.org>
30216
30217 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
30218 instead of grub_ieee1275_interpret.
30219 (grub_halt_init): New function.
30220 (grub_halt_fini): Likewise.
30221 (GRUB_MOD_INIT): Correct message grammar.
30222 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
30223 instead of grub_ieee1275_interpret.
30224 (grub_reboot_init): New function.
30225 (grub_reboot_fini): Likewise.
30226 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
30227 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
30228 util/i386/pc/misc.c with commands/ieee1275/halt.c,
30229 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
30230 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
30231 function.
30232 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
30233 Add prototype.
30234 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
30235 prototype.
30236 (grub_halt): Likewise.
30237 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
30238 (cmain): Remove __attribute__((unused)).
30239 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
30240 (grub_heap_len): Likewise.
30241 (grub_machine_fini): New function.
30242 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
30243 (grub_halt): Likewise.
30244 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
30245 function.
30246 * util/powerpc/ieee1275/misc.c: New file.
30247
0058f771 302482005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
30249
30250 * DISTLIST: New file.
30251 * gendistlist.sh: Likewise.
f19dbdb7 30252
0058f771 30253 * Makefile.in (COMMON_DISTFILES): Removed.
30254 (BOOT_DISTFILES): Likewise.
30255 (CONF_DISTFILES): Likewise.
30256 (DISK_DISTFILES): Likewise.
30257 (FS_DISTFILES): Likewise.
30258 (INCLUDE_DISTFILES): Likewise.
30259 (KERN_DISTFILES): Likewise.
30260 (LOADER_DISTFILES): Likewise.
30261 (TERM_DISTFILES): Likewise.
30262 (UTIL_DISTFILES): Likewise.
30263 (DISTFILES): Likewise.
30264 (uninstall): Uninstall files in $(pkgdata_DATA).
30265 (DISTLIST): New target.
30266 (distdir): Use the contents of the file DISTLIST to get a list of
30267 distributed files.
30268
46b3b8a5 302692005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
30270
30271 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
30272 descriptor. This is ported from GRUB Legacy.
30273
30274 * gencmdlist.sh: Added an extra semicolon to make it work with
30275 old sed versions. Reported by Robert Bihlmeyer
30276 <robbe@orcus.priv.at>.
30277
5822ff87 302782005-03-08 Yoshinori Okuji <okuji@enbug.org>
30279
30280 Automatic loading of commands is supported.
f19dbdb7 30281
5822ff87 30282 * normal/main.c (read_command_list): New function.
30283 (grub_normal_execute): Call read_command_list.
30284
30285 * normal/command.c (grub_register_command): Return zero or CMD.
30286 Allocate CMD->NAME from the heap.
30287 Initialize CMD->MODULE_NAME to zero.
30288 Find the same name as well. If the same command is found and it is
30289 a dummy command, overwrite members. If it is not a dummy command,
30290 return zero.
30291 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
30292 (grub_command_find): If a dummy command is found, load a module
30293 and retry to find a command only once.
30294
30295 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
30296 make sure that each command is loaded.
30297
30298 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
30299 macro.
30300 (struct grub_command): Remove const from the member `name'.
30301 Add a new member `module_name'.
30302 (grub_register_command): Return grub_command_t.
30303
30304 * commands/help.c (grub_cmd_help): Call grub_command_find to make
30305 sure that each command is loaded.
30306
30307 * genmk.rb (PModule::rule): Specify a module name without the
30308 suffix ".mod" to gencmdlist.sh.
30309
7b1f4b57 303102005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
30311
30312 * gencmdlist.sh: New file.
f19dbdb7 30313
7b1f4b57 30314 * genmk.rb (PModule::rule): Generate a rule for a command list.
30315 Clean command.lst.
30316 Generate command.lst from $(COMMANDFILES).
30317
30318 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
30319 (DATA): Added $(pkgdata_DATA).
30320 (install-local): Install files in $(pkgdata_DATA).
30321
062aaf39 303222005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
30323
30324 * term/i386/pc/vga.c (debug_command): Removed.
30325 (GRUB_MOD_INIT): Do not register the command "debug".
30326
30327 From Hollis Blanchard:
30328 * commands/configfile.c: New file.
30329 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
30330 commands/configfile.c.
30331 (pkgdata_MODULES): Added configfile.mod.
30332 (configfile_mod_SOURCES): New variable.
30333 (configfile_mod_CFLAGS): Likewise.
30334 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
30335 commands/configfile.c.
30336 (pkgdata_MODULES): Added configfile.mod.
30337 (configfile_mod_SOURCES): New variable.
30338 (configfile_mod_CFLAGS): Likewise.
30339 * util/grub-emu.c (main): Call grub_configfile_init and
30340 grub_configfile_fini.
30341 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
30342 prototype.
30343 [GRUB_UTIL] (grub_configfile_fini): Likewise.
f19dbdb7 30344
cee01aa6 303452005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
30346
30347 * normal/arg.c (grub_arg_show_help): Do not show the bug report
30348 address.
30349
30350 * commands/help.c (grub_cmd_help): Do not print newlines after
30351 the last command in print_command_help.
30352
93f3a1d8 303532005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
30354
30355 * commands/default.h: New file.
30356 * commands/timeout.h: Likewise.
30357 * normal/context.c: Likewise.
f19dbdb7 30358
93f3a1d8 30359 * util/misc.c: Do not include sys/times.h.
30360 Include sys/time.h and grub/machine/time.h.
30361 (grub_get_rtc): Rewritten with gettimeofday.
30362
30363 * util/grub-emu.c (main): Call grub_default_init and
30364 grub_timeout_init before grub_normal_init, and call
30365 grub_timeout_fini and grub_default_fini after grub_main.
30366
30367 * util/console.c (grub_ncurses_checkkey): Return the read
30368 character or -1.
30369
30370 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
30371 timeouts.
30372
30373 * normal/main.c (read_config_file): Push MENU. If this fails,
30374 print an error and wait for a user input.
30375 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
30376 If a menu is empty or an error occurs, pop MENU.
30377 (grub_normal_execute): Pop and free MENU after grub_menu_run
30378 returns.
30379
30380 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
30381
30382 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
30383 include time.h.
30384 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
30385 without GRUB_UTIL.
30386 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
30387 time.h.
30388 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
30389 without GRUB_UTIL.
30390
30391 * include/grub/normal.h (struct grub_menu_list): New struct.
30392 (grub_menu_list_t): New type.
30393 (struct grub_context): New struct.
30394 (grub_context_t): New type.
30395 (grub_register_command): Got rid of EXPORT_FUNC.
30396 (grub_unregister_command): Likewise.
30397 (grub_context_get): New prototype.
30398 (grub_context_get_current_menu): Likewise.
30399 (grub_context_push_menu): Likewise.
30400 (grub_context_pop_menu): Likewise.
30401 [GRUB_UTIL] (grub_default_init): Likewise.
30402 [GRUB_UTIL] (grub_default_fini): Likewise.
30403 [GRUB_UTIL] (grub_timeout_init): Likewise.
30404 [GRUB_UTIL] (grub_timeout_fini): Likewise.
30405
30406 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
30407 commands/timeout.c and normal/context.c.
30408 (pkgdata_MODULES): Added default.mod and timeout.mod.
30409 (normal_mod_SOURCES): Added normal/context.c.
30410 (default_mod_SOURCES): New variable.
30411 (default_mod_CFLAGS): Likewise.
30412 (timeout_mod_SOURCES): Likewise.
30413 (timeout_mod_CFLAGS): Likewise.
30414 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
30415 conf/i386-pc.rmk.
30416 (pkgdata_MODULES): Added default.mod and timeout.mod.
30417 (normal_mod_SOURCES): Added normal/context.c.
30418 (default_mod_SOURCES): New variable.
30419 (default_mod_CFLAGS): Likewise.
30420 (timeout_mod_SOURCES): Likewise.
30421 (timeout_mod_CFLAGS): Likewise.
30422
30423 * Makefile.in (all-local): Added $(MKFILES).
30424
4ed2e1dd 304252005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
30426
30427 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
30428 (grub_emu_SOURCES): Likewise.
30429 (pkgdata_MODULES): Add `sun.mod'.
30430 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
30431 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
30432 `partmap/sun.c'.
30433 (pkgdata_MODULES): Add `sun.mod'.
30434 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
30435 * include/grub/partition.h (grub_sun_partition_map_init): New
30436 prototype.
30437 (grub_sun_partition_map_fini): Likewise.
30438 * partmap/sun.c: New file.
30439 * util/grub-emu.c (main): Initialize and de-initialize the sun
30440 partitionmap support.
30441
4d4e372e 304422005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
30443
30444 This implements an Emacs-like menu entry editor.
f19dbdb7 30445
4d4e372e 30446 * normal/menu_entry.c: New file.
f19dbdb7 30447
4d4e372e 30448 * util/console.c (grub_ncurses_putchar): Translate some Unicode
30449 characters to ASCII.
30450 (saved_char): New variable.
30451 (grub_ncurses_checkkey): Rewritten completely.
30452 (grub_ncurses_getkey): Likewise.
30453 (grub_ncurses_init): Call raw instead of cbreak.
30454
30455 * normal/menu.c (print_entry): Do not put a space.
30456 (init_page): Renamed to ...
30457 (grub_menu_init_page): ... this. All callers changed.
30458 (edit_menu_entry): Removed.
30459 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
30460
30461 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
30462
30463 * kern/misc.c (grub_vprintf): Call grub_refresh.
30464
30465 * normal/menu.c (DISP_LEFT): Renamed to ...
30466 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
30467 * normal/menu.c (DISP_UP): Renamed to ...
30468 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
30469 * normal/menu.c (DISP_RIGHT): Renamed to ...
30470 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
30471 * normal/menu.c (DISP_DOWN): Renamed to ...
30472 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
30473 * normal/menu.c (DISP_HLINE): Renamed to ...
30474 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
30475 * normal/menu.c (DISP_VLINE): Renamed to ...
30476 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
30477 * normal/menu.c (DISP_UL): Renamed to ...
30478 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
30479 * normal/menu.c (DISP_UR): Renamed to ...
30480 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
30481 * normal/menu.c (DISP_LL): Renamed to ...
30482 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
30483 * normal/menu.c (DISP_LR): Renamed to ...
30484 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
30485 * normal/menu.c (TERM_WIDTH): Renamed to ...
30486 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
30487 * normal/menu.c (TERM_HEIGHT): Renamed to ...
30488 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
30489 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
30490 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
30491 * normal/menu.c (TERM_MARGIN): Renamed to ...
30492 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
30493 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
30494 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
30495 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
30496 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
30497 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
30498 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
30499 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
30500 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
30501 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
30502 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
30503 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
30504 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
30505 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
30506 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
30507 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
30508 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
30509 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
30510 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
30511 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
30512 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
30513 All callers changed.
30514
30515 * include/grub/normal.h: New prototype.
30516
30517 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
30518 normal/menu_entry.c.
30519 (normal_mod_SOURCES): Likewise.
30520 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
30521 (normal_mod_SOURCES): Likewise.
30522
e6b92c8a 305232005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
30524
30525 * include/grub/normal.h (grub_halt_init): New prototype.
30526 (grub_halt_fini): Likewise.
30527 (grub_reboot_init): Likewise.
30528 (grub_reboot_fini): Likewise.
30529
30530 * util/grub-emu.c: Include signal.h.
30531 (main_env): New global variable.
30532 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
30533 catch C-c.
30534 (grub_machine_fini): New function.
30535 (main): Call grub_halt_init and grub_reboot_init before
30536 grub_main, and grub_reboot_fini and grub_halt_fini after it.
30537 Call setjmp with MAIN_ENV to go back afterwards.
30538 Call grub_machine_fini right before return.
30539
30540 * include/grub/util/misc.h: Include setjmp.h.
30541 (main_env): New prototype.
30542
30543 * include/grub/kernel.h (grub_machine_fini): New prototype.
30544 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
30545 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
30546
30547 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
30548 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
30549 * term/i386/pc/console.c (grub_console_fini): Likewise.
f19dbdb7 30550
e6b92c8a 30551 * util/i386/pc/misc.c: New file.
f19dbdb7 30552
e6b92c8a 30553 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
30554 util/i386/pc/misc.c, commands/i386/pc/halt.c and
30555 commands/i386/pc/reboot.c.
30556
c642636f 305572005-02-14 Guillem Jover <guillem@hadrons.org>
30558
30559 * include/grub/dl.h (grub_dl_check_header): New prototype.
30560 (grub_arch_dl_check_header): Change return type to grub_err_t,
30561 remove size parameter and export function. Update all callers.
30562 * kern/dl.c (grub_dl_check_header): New function.
30563 (grub_dl_load_core): Use `grub_dl_check_header' instead of
30564 `grub_arch_dl_check_header'. Check ELF type. Check if sections
30565 are inside the core.
30566 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
30567 independent ELF header checks.
30568 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
30569 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
30570 `grub_dl_check_header' instead of explicit checks. Check for the
30571 ELF type.
30572 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
30573 `grub_dl_check_header' instead of explicit checks. Remove arch
30574 specific ELF header checks.
30575
e6b92c8a 30576 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
30577 argument SIZE.
30578
5eabe94b 305792005-02-13 Hollis Blanchard <hollis@penguinppc.org>
30580
30581 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
30582 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
30583
1b14a681 305842005-02-12 Hollis Blanchard <hollis@penguinppc.org>
30585
30586 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
f19dbdb7 30587 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
1b14a681 30588 (part_map_iterate): Clear `grub_errno' and return 0 if
f19dbdb7 30589 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
1b14a681 30590 * partmap/amiga.c (amiga_partition_map_iterate): Return
30591 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
30592 * partmap/apple.c (apple_partition_map_iterate): Likewise.
30593
aca108aa 305942005-02-01 Guillem Jover <guillem@hadrons.org>
30595
30596 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
30597 help info.
30598
c9f9c556 305992005-01-31 Marco Gerards <metgerards@student.han.nl>
30600
30601 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
30602 Removed prototype.
30603 (grub_rescue_cmd_linux): New prototype.
30604 (grub_rescue_cmd_initrd): Likewise.
30605 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
30606 `bi_rec'.
30607 (grub_linux_release_mem): Release the memory for the initrd.
30608 (grub_load_linux): Renamed from this...
30609 (grub_rescue_cmd_linux): ...To this. Changed all callers.
30610 Changed `entry' not to be static. Loop over memory regions to
30611 find another one when the default fails.
30612 (grub_rescue_cmd_initrd): New function.
30613 (grub_linux_init): Remove function.
30614 (grub_linux_fini): Likewise.
30615 (GRUB_MOD_INIT): Register `initrd'.
30616 (GRUB_MOD_FINI): Unregister `initrd'.
30617 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
30618 Function removed.
30619 (grub_linux_normal_fini): Likewise.
30620 (GRUB_MOD_INIT): Register `initrd'.
30621 (GRUB_MOD_FINI): Unregister `initrd'.
30622
990cf3aa 306232005-01-31 Marco Gerards <metgerards@student.han.nl>
30624
30625 * commands/help.c: New file.
30626 * normal/arg.c (show_help): Renamed to...
30627 (grub_arg_show_help): ... this.
30628 * commands/i386/pc/halt.c: New file.
30629 * commands/i386/pc/reboot.c: Likewise.
30630 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
30631 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
30632 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
30633 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
30634 variables.
30635 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
30636 `commands/help.c'.
30637 (pkgdata_MODULES): Add `help.mod'.
30638 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
30639 * grub/i386/pc/init.h (grub_reboot): New prototype.
30640 (grub_halt): Likewise.
30641 * include/grub/normal.h (grub_arg_show_help): New prototype.
30642 (grub_help_init): Likewise.
30643 (grub_help_fini): Likewise.
30644 * util/grub-emu.c (main): Initialize and deinitialize the help
30645 command.
30646
30647 * normal/cmdline.c (grub_cmdline_get): Doc fix.
30648
30649 * normal/command.c (grub_command_init): Fixed the description of
30650 the `set' and `unset' commands.
30651
306522005-01-31 Marco Gerards <metgerards@student.han.nl>
0f79cdc1 30653
30654 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
30655 function.
30656 * commands/ieee1275/halt.c: New file.
30657 * commands/ieee1275/reboot.c: Likewise.
30658 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
30659 `__attribute__ ((unused))'. Some GCS related fixed.
30660 (grub_suspend_init) [GRUB_UTIL]: Function removed.
30661 (grub_suspend_fini): Likewise.
30662 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
30663 and `halt.mod'.
30664 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
30665 (halt_mod_CFLAGS): New variables.
30666 * include/grub/powerpc/ieee1275/ieee1275.h
30667 (grub_ieee1275_interpret): New prototype.
30668
1ab09cc7 306692005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
30670
30671 * include/grub/misc.h (memmove): New prototype.
30672 (memcpy): Likewise.
30673
8b8cbdb2 306742005-01-22 Hollis Blanchard <hollis@penguinppc.org>
30675
30676 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
30677 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
30678
e3741a27 306792005-01-22 Marco Gerards <metgerards@student.han.nl>
30680
30681 * kern/misc.c (grub_strndup): Function rewritten.
30682
776bd780 306832005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
30684
30685 * normal/menu.c (TERM_WIDTH): Macro redefined.
30686 (TERM_TOP_BORDER_Y): Likewise.
30687 (draw_border): Replaced while-loop by a for-loop. Make the number
30688 of lines consistent with the number of lines displayed in
30689 print_entries. Added a margin below the rectangle.
30690 (print_entry): Make the entry fit in the rectangle.
30691 (print_entries): Display the scroll arrows next to the right
30692 border.
30693
78026bce 306942005-01-21 Marco Gerards <metgerards@student.han.nl>
30695
30696 * fs/minix.c (grub_minix_find_file): Reserve more space for
30697 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
30698 `grub_strncpy' to copy `path' into it.
30699
67bbaf0f 307002005-01-21 Marco Gerards <metgerards@student.han.nl>
30701
30702 Add the loopback device, a device via which files can be accessed
30703 as devices.
f19dbdb7 30704
67bbaf0f 30705 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
30706 (pkgdata_MODULES): Add loopback.mod.
30707 (loopback_mod_SOURCES): New variable.
30708 (loopback_mod_CFLAGS): Likewise.
30709 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
30710 `disk/loopback.c'.
30711 (pkgdata_MODULES): Add loopback.mod.
30712 (loopback_mod_SOURCES): New variable.
30713 (loopback_mod_CFLAGS): Likewise.
30714 * disk/loopback.c: new file.
30715 * include/grub/normal.h (grub_loop_init): New prototype.
30716 (grub_loop_fini): New prototype.
30717 * util/grub-emu.c (main): Initialize and de-initialize loopback
30718 support.
30719 * include/grub/disk.h (grub_disk_dev_id): Add
30720 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
30721
6f1c18bd 307222005-01-20 Hollis Blanchard <hollis@penguinppc.org>
30723
30724 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
30725 function.
30726 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
30727 (suspend_mod_SOURCES): New variable.
30728 (suspend_mod_CFLAGS): Likewise.
30729 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
30730 New prototype.
30731 * commands/ieee1275/suspend.c: New file.
30732
b38551da 307332005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
30734
30735 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
f19dbdb7 30736 ((unused))' to `__attribute__ ((used))'.
b38551da 30737 (GRUB_MOD_FINI): Likewise.
30738 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
30739 * genmk.rb (PModule): Assign space to common symbols when linking
30740 modules.
30741
777aff39 307422005-01-20 Marco Gerards <metgerards@student.han.nl>
30743
30744 * include/grub/mm.h (grub_mm_init_region): Change the type of the
30745 `unsigned' arguments to `grub_size_t'.
30746 (grub_malloc): Likewise.
30747 (grub_realloc): Likewise.
30748 (grub_memalign): Likewise.
30749 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
30750 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
30751 * util/misc.c (grub_malloc): Likewise.
30752 (grub_realloc): Likewise.
30753 * kern/mm.c (get_header_from_pointer): Change the casts to
30754 `unsigned' into a cast to `grub_size_t'.
30755
30756 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
30757 point to `currnode' when `currnode' is changed.
30758
30759 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
30760 Schottelius <nico-linux@schottelius.org>.
30761
d0ff18e1 307622005-01-09 Hollis Blanchard <hollis@penguinppc.org>
30763
30764 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
30765 (note_path): Remove variable.
30766 (GRUB_IEEE1275_NOTE_NAME): New macro.
30767 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
30768 (grub_ieee1275_note_hdr): New structure.
30769 (grub_ieee1275_note_desc): Likewise.
30770 (grub_ieee1275_note): Likewise.
30771 (load_note): Remove `dir' argument. All callers updated. Remove
30772 `note_img' and `path'. Do not load a file from `note_path'.
30773 Initialize a struct grub_ieee1275_note and write that to `out'.
30774 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
30775
4ca7004c 307762005-01-05 Marco Gerards <metgerards@student.han.nl>
30777
30778 * util/misc.c (grub_util_read_image): Revert last change. It
30779 called `grub_util_read_at', which seeks from the beginning of the
30780 file.
30781
0b412211 307822005-01-04 Hollis Blanchard <hollis@penguinppc.org>
30783
30784 * TODO: Add note about endianness in grub-mkimage.
30785 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
30786 section.
30787 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
30788 (grub_mkimage_SOURCES): New target.
30789 * include/grub/kernel.h (grub_start_addr): Remove variable.
30790 (grub_end_addr): Likewise.
30791 (grub_total_module_size): Likewise.
30792 (grub_kernel_image_size): Likewise.
30793 (GRUB_MODULE_MAGIC): New constant.
30794 (grub_module_info): New structure.
30795 (grub_arch_modules_addr): New prototype.
30796 (grub_get_end_addr): Remove prototype.
30797 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
30798 * include/grub/powerpc/ieee1275/kernel.h: New file.
30799 * include/grub/util/misc.h (grub_util_get_fp_size): New
30800 prototype.
30801 (grub_util_read_at): Likewise.
30802 (grub_util_write_image_at): Likewise.
30803 * kern/main.c (grub_get_end_addr): Remove function.
30804 (grub_load_modules): Call grub_arch_modules_addr instead of using
30805 grub_end_addr. Look for a grub_module_info struct in memory. Use
30806 the grub_module_info fields instead of calling grub_get_end_addr
30807 as loop conditions. Move grub_add_unused_region code here.
30808 (grub_add_unused_region): Remove function.
30809 * kern/i386/pc/init.c: Include grub/cache.h.
30810 (grub_machine_init): Remove call to grub_get_end_addr. Remove
30811 one call to add_mem_region.
30812 (grub_arch_modules_addr): New function.
30813 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
30814 (grub_total_module_size): Likewise.
30815 Include grub/machine/kernel.h.
30816 (grub_arch_modules_addr): New function.
30817 * util/grub-emu.c (grub_end_addr): Remove variable.
30818 (grub_total_module_size): Likewise.
30819 (grub_arch_modules_addr): New function.
30820 * util/misc.c: Include unistd.h.
30821 (grub_util_get_fp_size): New function.
30822 (grub_util_read_at): Likewise.
30823 (grub_util_write_image_at): Likewise.
30824 (grub_util_read_image): Call grub_util_read_at.
30825 (grub_util_write_image): Call grub_util_write_image_at.
30826 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
30827 additional memory in kernel_img for a struct grub_module_info.
30828 Fill in that grub_module_info.
30829 * util/powerpc/ieee1275/grub-mkimage.c: New file.
30830
458786f8 308312005-01-03 Hollis Blanchard <hollis@penguinppc.org>
30832
30833 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
30834 New function.
30835 * include/grub/powerpc/ieee1275/ieee1275.h
30836 (grub_ieee1275_milliseconds): New prototype.
30837 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
30838 Change to 1000.
30839 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
30840 grub_ieee1275_milliseconds.
30841
ac507d1b 308422005-01-03 Hollis Blanchard <hollis@penguinppc.org>
30843
30844 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
30845 variable.
30846 (find_options): New function.
30847 (cmain): Call find_options.
30848 * include/grub/powerpc/ieee1275/ieee1275.h
30849 (grub_ieee1275_realmode): New extern variable.
30850 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
30851 grub_map if grub_ieee1275_realmode is false.
30852
6b8fd1c4 308532004-12-29 Marco Gerards <metgerards@student.han.nl>
30854
30855 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
30856 lines are inserted and make it work like readline. Reported by
30857 Vincent Pelletier <subdino2004@yahoo.fr>.
30858
8514a1e0 308592004-12-28 Marco Gerards <metgerards@student.han.nl>
30860
30861 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
30862
30863 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
30864 `kern/powerpc/cache.S'.
30865
924b6140 308662004-12-27 Marco Gerards <metgerards@student.han.nl>
30867
30868 * genmk.rb: Handle the `Program' class in the main loop. Written
30869 by Johan Rydberg <jrydberg@gnu.org>.
30870 (Program): New class.
30871 (programs): New variable.
30872 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
30873 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
30874 instead of "grub/kernel.h". Include <grub/machine/init.h>.
30875 (help_arch): Function removed.
30876 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
30877 `powerpc/libgcc.h' and `loader.h'.
30878 (pkgdata_PROGRAMS): New variable.
30879 (sbin_UTILITIES): Variable removed.
30880 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
30881 (grubof_SOURCES): Variable re-defined so it only includes the
30882 core functionality.
30883 (grubof_CFLAGS): Remove `-DGRUBOF'.
30884 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
30885 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
30886 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
30887 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
30888 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
30889 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
30890 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
30891 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
30892 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
30893 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
30894 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
30895 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
30896 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
30897 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
30898 (pc_mod_CFLAGS): New variables.
30899 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
30900 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
30901 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
30902 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
30903 Moved from here...
30904 * include/grub/i386/pc/init.h (grub_os_area_addr)
30905 (rub_os_area_size): ... to here.
30906 * include/grub/powerpc/ieee1275/ieee1275.h
30907 (grub_ieee1275_entry_fn): Export symbol.
30908 * include/grub/powerpc/ieee1275/init.h: New file.
30909 * include/grub/powerpc/libgcc.h: Likewise.
30910 * include/grub/cache.h: Likewise.
30911 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
30912 <hollis@penguinppc.org>.
30913 * kern/dl.c: Include <grub/cache.h>.
30914 (grub_dl_flush_cache): New function.
30915 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
30916 for this module.
30917 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
30918 (grub_console_init): Removed prototypes.
30919 (grub_machine_init): Don't initialize the modules anymore.
30920 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
30921 static.
30922 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
30923 Macro undef removed.
30924 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
30925 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
30926 relocation `R_PPC_REL32'. Return an error when the relocation is
30927 unknown.
30928 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
30929 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
30930 * util/misc.c (grub_arch_sync_caches): Likewise.
30931
e4b47e0c 309322004-12-19 Marco Gerards <metgerards@student.han.nl>
30933
30934 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
30935 `symlist.c', add `grubof_symlist.c'.
30936 (symlist.c): Variable removed.
30937 (grubof_HEADERS): Variable added.
30938 (grubof_symlist.c): New target.
30939 (kernel_syms.lst): Use `grubof_HEADERS' instead of
30940 `kernel_img_HEADERS'.
30941 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
30942 * kern/powerpc/dl.c: New file.
30943 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
30944 Function removed.
30945 (grub_arch_dl_relocate_symbols): Likewise.
30946 (grub_register_exported_symbols): Likewise.
30947
4ceb3636 309482004-12-13 Marco Gerards <metgerards@student.han.nl>
30949
30950 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
30951 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
30952 to fail instead. Reported by Vincent Pelletier
30953 <subdino2004@yahoo.fr>.
30954
30955 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
30956 it is not allocated. Reported by Vincent Pelletier
30957 <subdino2004@yahoo.fr>.
30958
30959 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
30960 output so the output looks better.
f19dbdb7 30961
3f1578fe 309622004-12-04 Marco Gerards <metgerards@student.han.nl>
30963
30964 Modulize the partition map support and add support for the amiga
30965 partition map.
f19dbdb7 30966
3f1578fe 30967 * commands/ls.c: Include <grub/partition.h> instead of
30968 <grub/machine/partition.h>.
30969 * kern/disk.c: Likewise.
30970 * kern/rescue.c: Likewise.
30971 * loader/i386/pc/chainloader.c: Likewise.
30972 * normal/cmdline.c: Likewise.
30973 * kern/powerpc/ieee1275/init.c: Likewise.
30974 (grub_machine_init): Call `grub_pc_partition_map_init',
30975 `grub_amiga_partition_map_init' and
30976 `grub_apple_partition_map_init'.
30977 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
30978 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
30979 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
30980 `partition.h' and `pc_partition.h'.
30981 (grub_setup_SOURCES): Remove
30982 `disk/i386/pc/partition.c'. Add `kern/partition.c',
30983 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
30984 (grub_emu_SOURCES): Likewise.
30985 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
30986 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
30987 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
30988 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
30989 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
30990 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
30991 (grubof_SOURCES): Likewise.
30992 * disk/i386/pc/partition.c: File removed.
30993 * disk/powerpc/ieee1275/partition.c: Likewise.
30994 * include/grub/powerpc/ieee1275/partition.h: Likewise.
30995 * include/grub/i386/pc/partition.h: Likewise.
30996 * kern/partition.c: New file.
30997 * partmap/amiga.c: Likewise.
30998 * partmap/apple.c: Likewise.
30999 * partmap/pc.c: Likewise.
31000 * include/grub/partition.h: Likewise..
31001 * include/grub/pc_partition.h: Likewise.
31002 * util/grub-emu.c: Include <grub/partition.h> instead of
31003 <grub/machine/partition.h>.
31004 (main): Call `grub_pc_partition_map_init',
31005 `grub_amiga_partition_map_init' and
31006 `grub_apple_partition_map_init' and deinitialize afterwards.
31007 * util/i386/pc/biosdisk.c: Include `#include
31008 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
31009 `<grub/machine/partition.h>'.
31010 * util/i386/pc/grub-setup.c: Likewise.
31011 * util/i386/pc/biosdisk.c: Likewise.
31012 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
31013 partition information in case of a PC partition.
31014 * util/i386/pc/grub-setup.c: Include `#include
31015 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
31016 `<grub/machine/partition.h>'.
31017 (setup): Only access the PC specific partition information in case
31018 of a PC partition.
31019
0ef4ced9 310202004-11-17 Hollis Blanchard <hollis@penguinppc.org>
f19dbdb7 31021
0ef4ced9 31022 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
31023 (grub_longjmp): Likewise.
31024 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
31025 20.
31026 * normal/powerpc/setjmp.S: New file.
31027 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
31028 `normal/powerpc/setjmp.S'.
31029 (grubof_CFLAGS): Add `-DGRUBOF'.
31030 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
31031 [GRUB_UTIL && !GRUBOF].
f19dbdb7 31032
19950e29 310332004-11-16 Marco Gerards <metgerards@student.han.nl>
31034
31035 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
31036 property named `name'. Correctly handle the error returned by
31037 `grub_ieee1275_finddevice' if a device can not be opened.
31038
a2fea427 310392004-11-02 Hollis Blanchard <hollis@penguinppc.org>
31040
31041 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
31042 `actual' for negativity.
31043 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
31044 kern/fshelp.c.
31045
41ea0ea3 310462004-11-01 Marco Gerards <metgerards@student.han.nl>
31047
31048 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
31049 (PAGE_OFFSET): New macro.
31050 (CRTC_ADDR_PORT): Likewise.
31051 (CRTC_DATA_PORT): Likewise.
31052 (START_ADDR_HIGH_REGISTER): Likewise.
31053 (START_ADDR_LOW_REGISTER): Likewise.
31054 (GRAPHICS_ADDR_PORT): Likewise.
31055 (GRAPHICS_DATA_PORT): Likewise.
31056 (READ_MAP_REGISTER): Likewise.
31057 (INPUT_STATUS1_REGISTER): Likewise.
31058 (INPUT_STATUS1_VERTR_BIT): Likewise.
31059 (page): New variable.
31060 (wait_vretrace): New function.
31061 (set_read_map): Likewise.
31062 (set_start_address): Likewise.
31063 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
31064 the right page.
31065 (check_vga_mem): Take the page into account.
31066 (write_char): Likewise.
31067 (write_cursor): Likewise.
31068 (scroll_up): Likewise. Copy the page to the page that is not
31069 shown and switch between both pages.
31070 (grub_vga_putchar): Fix off by one error.
31071 (grub_vga_cls): Wait for the vertical retrace. Take the page into
31072 account.
31073
ad0bd20b 310742004-11-01 Marco Gerards <metgerards@student.han.nl>
31075
31076 Add support for iso9660 (including rockridge).
f19dbdb7 31077
ad0bd20b 31078 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
31079 (iso9660_mod_SOURCES): New variable.
31080 (iso9660_mod_CFLAGS): Likewise.
31081 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
31082 * include/grub/fs.h (grub_iso9660_init): New prototype.
31083 * util/grub-emu.c (main): Call `grub_iso9660_init'.
31084 * fs/iso9660.c: New file.
31085
31086 * include/grub/misc.h (grub_strncat): New prototype.
31087 * kern/misc.c (grub_strncat): New function.
f19dbdb7 31088
ad0bd20b 31089 * fs/hfs.c (grub_hfs_mount): Translate the error
31090 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
31091 * fs/jfs.c (grub_jfs_mount): Likewise.
31092 * fs/ufs.c (grub_ufs_mount): Likewise.
31093
a5477a59 310942004-10-28 Hollis Blanchard <hollis@penguinppc.org>
31095
31096 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
31097 which initialized BAT registers.
31098 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
31099 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
31100 Move from here...
31101 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
31102 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
31103 ... to here.
31104 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
31105 (grub_mapclaim): Likewise.
31106 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
31107 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
31108 hand.
31109
9304c1f8 311102004-10-19 Hollis Blanchard <hollis@penguinppc.org>
31111
31112 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
31113 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
31114 -ffreestanding and -msoft-float.
31115
86f4ae25 311162004-10-15 Hollis Blanchard <hollis@penguinppc.org>
31117
31118 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
31119 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
31120 set in grub_ieee1275_flags.
31121
38912228 311222004-10-14 Hollis Blanchard <hollis@penguinppc.org>
31123
31124 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
31125 prototype.
31126 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
31127 grub_console_init first.
31128 Change the memory range used for grub_ieee1275_claim and
31129 grub_mm_init_region.
31130 Print an error message if the claim fails.
31131 Include <grub/misc.h>.
31132
d1923dc8 311332004-10-13 Hollis Blanchard <hollis@penguinppc.org>
31134
31135 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
31136 Call grub_children_iterate for device nodes of type `scsi',
31137 `ide', or `ata'.
31138 (grub_ofdisk_open): Remove manual device alias resolution.
31139 Fix memory leak when device cannot be opened.
f19dbdb7 31140 * include/grub/powerpc/ieee1275/ieee1275.h
d1923dc8 31141 (grub_children_iterate): New prototype.
31142 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
31143 New function.
31144 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
31145 Return -1 if args.size was -1.
31146
4512e4f3 311472004-10-11 Hollis Blanchard <hollis@penguinppc.org>
31148
31149 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
31150 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
31151 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
31152 Open Firmware's memory for it; claim memory from _start to _end.
31153 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
31154 (_end): New extern.
31155 (_start): Zero BSS from __bss_start to _end.
31156 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
31157 New extern.
31158 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
31159
4d61feb0 311602004-10-11 Hollis Blanchard <hollis@penguinppc.org>
31161
ad0bd20b 31162 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
31163 -1 if args.base was -1.
4d61feb0 31164
026fa2f9 311652004-10-08 Hollis Blanchard <hollis@penguinppc.org>
31166
31167 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
31168 escape sequence instead of a literal ^L. Also call
31169 grub_ofconsole_gotoxy.
31170
9f2220ef 311712004-10-03 Hollis Blanchard <hollis@penguinppc.org>
31172
31173 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
31174 void * arguments to grub_addr_t. All callers updated. Also make
31175 the `result' argument optional.
31176 (grub_ieee1275_release): change void * arguments to grub_addr_t.
31177 All callers updated.
31178
8a572cd7 311792004-09-22 Hollis Blanchard <hollis@penguinppc.org>
31180
31181 * commands/ls.c (grub_ls_list_files): Use the string following the
31182 initial ')', if present, as the filesystem path.
31183 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
31184
31185 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
31186
18aa81f2 311872004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
31188
31189 Make the source code of the menu interface more readable.
f19dbdb7 31190
18aa81f2 31191 * normal/menu.c: Include grub/mm.h.
31192 (TERM_WIDTH): New macro.
31193 (TERM_HEIGHT): Likewise.
31194 (TERM_INFO_HEIGHT): Likewise.
31195 (TERM_MARGIN): Likewise.
31196 (TERM_SCROLL_WIDTH): Likewise.
31197 (TERM_TOP_BORDER_Y): Likewise.
31198 (TERM_LEFT_BORDER_X): Likewise.
31199 (TERM_BORDER_WIDTH): Likewise.
31200 (TERM_MESSAGE_HEIGHT): Likewise.
31201 (TERM_BORDER_HEIGHT): Likewise.
31202 (TERM_NUM_ENTRIES): Likewise.
31203 (TERM_FIRST_ENTRY_Y): Likewise.
31204 (TERM_ENTRY_WIDTH): Likewise.
31205 (TERM_CURSOR_X): Likewise.
31206 (draw_border): Use macros instead of magic numbers.
31207 (print_entry): Likewise.
31208 (print_entries): Likewise.
31209 (run_menu): Likewise. Also, handle the key 'e'.
31210 (run_menu_entry): Ignore empty command lines.
31211 (print_message): Added a new argument EDIT. If EDIT is true,
31212 print a different message.
31213 (init_page): Likewise.
31214 (edit_menu_entry): New function. Not implemented yet.
31215
b47efe30 312162004-09-17 Marco Gerards <metgerards@student.han.nl>
31217
31218 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
31219 can be loaded from normal mode.
f19dbdb7 31220
b47efe30 31221 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
31222 `multiboot.mod'.
31223 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
31224 (multiboot_mod_CFLAGS): New variables.
31225 * loader/i386/pc/linux_normal.c: New file.
f19dbdb7 31226 * loader/i386/pc/multiboot_normal.c: Likewise.
31227
b47efe30 31228 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
31229 attribute `unused'.
f19dbdb7 31230
b47efe30 31231 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
31232 `fdiro' to read the mode information from instead of `diro'.
31233
31234 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
31235 looking up a symlink.
31236
31237 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
31238 macro.
31239 * normal/command.c (grub_command_execute): Don't parse the
31240 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
31241 flags of the command.
31242
31243 * normal/menu.c (grub_menu_run): Fix typo.
31244
da75ac71 312452004-09-14 Hollis Blanchard <hollis@penguinppc.org>
31246
31247 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
31248
31249 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
31250 `y + 1' instead of `y - 1'.
31251
31252 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
f19dbdb7 31253
062b24c2 312542004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
31255
31256 From Hollis Blanchard <hollis@penguinppc.org>:
31257 * kern/misc.c (memmove): New alias for grub_memmove.
31258 (memcmp): New alias for grub_memcmp.
31259 (memset): New alias for grub_memset.
f19dbdb7 31260 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
062b24c2 31261 Change "int handle" to "grub_ieee1275_phandle_t handle".
f19dbdb7 31262 * include/grub/powerpc/ieee1275/ieee1275.h
062b24c2 31263 (grub_ieee1275_get_property): Likewise.
f19dbdb7 31264
8ddad845 312652004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
31266
31267 Added normal mode command `chainloader' as module chain.mod, which
31268 depends on normal.mod and _chain.mod.
f19dbdb7 31269
8ddad845 31270 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
31271 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
31272 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
31273 Deleted prototype.
31274 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
31275 but arguments parsing moved to ...
31276 (grub_chainloader_cmd): ... here. New function.
31277 * include/grub/i386/pc/chainloader.h: New file.
31278 * loader/i386/pc/chainloader_normal.c: Likewise.
31279
2c1f4ce3 312802004-09-11 Marco Gerards <metgerards@student.han.nl>
31281
31282 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
31283 (grub_mkimage_LDFLAGS): Likewise.
31284 (grub_emu_SOURCES): Likewise.
31285 (kernel_img_HEADERS): Added fshelp.h.
31286 * fs/ext2.c: Include <grub/fshelp.h>.
31287 (FILETYPE_REG): New macro.
31288 (FILETYPE_INO_REG): Likewise.
31289 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
31290 Changed all users.
31291 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
31292 all users.
31293 (grub_fshelp_node): New struct.
31294 (grub_ext2_data): Added member `diropen'. Changed member `inode'
31295 to a pointer.
31296 (grub_ext2_get_file_block): Removed function.
31297 (grub_ext2_read_block): New function.
31298 (grub_ext2_read_file): Replaced parameter `data' by `node'.
31299 This function was written.
31300 (grub_ext2_mount): Read the root inode. Create a diropen struct.
31301 (grub_ext2_find_file): Removed function.
31302 (grub_ext2_read_symlink): New function.
31303 (grub_ext2_iterate_dir): Likewise.
31304 (grub_ext2_open): Rewritten.
31305 (grub_ext2_dir): Rewritten.
31306 * include/grub/fshelp.h: New file.
31307 * fs/fshelp.c: Likewise.
31308
3c52136a 313092004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
31310
31311 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
31312 (print_message): Add a missing newline.
31313 (run_menu): Added timeout support.
31314 (run_menu_entry): New local function.
31315 (grub_menu_run): Added support for booting.
31316
31317 * kern/loader.c (grub_loader_is_loaded): New function.
31318
31319 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
31320 (grub_get_rtc): Exported.
31321
31322 * include/grub/i386/pc/time.h: Include grub/symbol.h.
31323 (grub_get_rtc): Exported.
31324
31325 * include/grub/normal.h (struct grub_command_list): Remove
31326 constant from the member `command'.
31327
31328 * include/grub/loader.h (grub_loader_is_loaded): Declared.
31329
31330 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
31331
31332 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
31333
aa033560 313342004-08-28 Marco Gerards <metgerards@student.han.nl>
31335
31336 Add support for the JFS filesystem.
31337
31338 * fs/jfs.c: New file.
31339 * include/grub/fs.h (grub_jfs_init): New prototype.
31340 (grub_jfs_fini): New prototype.
31341 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
31342 (grub_emu_SOURCES): Likewise.
31343 (pkgdata_MODULES): Add jfs.mod.
31344 (jfs_mod_SOURCES): New variable.
31345 (jfs_mod_CFLAGS): Likewise.
31346 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
31347 (grubof_SOURCES): Likewise.
31348 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
31349
31350 * fs/fat.c (grub_fat_find_dir): Convert the filename little
31351 endian to the host endian.
31352 (grub_fat_utf16_to_utf8): Move function from there...
31353 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
fe987087 31354 the endianness of the source string anymore.
aa033560 31355 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
31356
94bc45af 313572004-08-24 Marco Gerards <metgerards@student.han.nl>
31358
31359 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
31360 (grub_boot_fini) [GRUB_UTIL]: Likewise.
31361 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
31362 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
f19dbdb7 31363
94bc45af 31364 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
31365 (grub_hfs_iterate_dir): Make the function static. Add prototypes
31366 for `node_found' and `it_dir'.
31367 (grub_hfs_dir): Add prototype for `dir_hook'.
31368
31369 * fs/minix.c (grub_minix_get_file_block): Add prototype for
31370 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
31371 and `indir32' to silence a gcc warning.
31372
31373 * include/grub/fs.h (grub_hfs_init): New prototype.
31374 (grub_hfs_fini): Likewise.
f19dbdb7 31375
31376
97543f08 313772004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
31378
31379 Each disk device has its own id now. This is useful to make use
31380 of multiple disk devices.
f19dbdb7 31381
97543f08 31382 * include/grub/disk.h (grub_disk_dev_id): New enum.
31383 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
31384 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
31385
31386 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
31387 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
31388
31389 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
31390 GRUB_DISK_DEVICE_OFDISK_ID as an id.
31391
31392 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
31393 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
31394
31395 * include/grub/disk.h (struct grub_disk_dev): Added a new member
31396 "id" which is used by the cache manager.
31397
31398 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
31399 of just "GRUB".
31400
64372eb4 314012004-08-18 Marco Gerards <metgerards@student.han.nl>
31402
31403 * fs/hfs.c: New file.
31404 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
31405 (grub_emu_SOURCES): Likewise.
31406 (pkgdata_MODULES): Add hfs.mod.
31407 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
31408 (grubof_SOURCES): Likewise.
31409 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
31410
31411 * include/grub/misc.h (grub_strncasecmp): Add prototype.
31412 * kern/misc.c (grub_strncasecmp): Add function.
31413
cc61b58f 314142004-08-14 Marco Gerards <metgerards@student.han.nl>
31415
31416 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
31417 with parentheses.
31418
31419 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
31420 (grub_ext2_dir): In case the directory entry type is unknown, read
31421 it from the inode.
31422
0ef123f6 314232004-08-02 Peter Bruin <pjbruin@dds.nl>
31424
31425 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
31426 grub_load_linux instead of grub_rescue_cmd_linux as second
31427 argument of grub_rescue_register_command.
31428
31429 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
31430
a447c5df 314312004-07-27 Marco Gerards <metgerards@student.han.nl>
31432
31433 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
31434 function.
31435 * commands/boot.c: Remove the check for `GRUB_UTIL'.
31436 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
31437 `loader/powerpc/ieee1275/linux.c',
31438 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
31439 * include/grub/powerpc/ieee1275/ieee1275.h
31440 (grub_ieee1275_release): New prototype.
31441 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
31442 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
31443 normal, boot, linux and linux_normal.
31444 * loader/powerpc/ieee1275/linux.c: New file.
31445 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
31446
5a9e3546 314472004-07-12 Marco Gerards <metgerards@student.han.nl>
31448
31449 * normal/arg.c (grub_arg_parse): Correct error handling after
31450 reallocating the argumentlist (check if `argl' is not null instead
31451 of checking if `args' is not null).
31452 * kern/mm.c (grub_realloc): Return the same pointer when using the
31453 same region, instead of returning the header address.
31454
e15199cb 314552004-07-11 Marco Gerards <metgerards@student.han.nl>
31456
31457 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
31458 one block instead of two when looking for the initial partition.
31459 (grub_partition_probe): Initialize the local variable `p' with 0.
31460 Use base 10 for the grub_strtoul call.
31461 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
31462 need for one local variable.
31463 (grub_strtoul): Don't add the new value to `num', instead of that
31464 just assign it.
31465
020616c2 314662004-07-11 Marco Gerards <metgerards@student.han.nl>
31467
31468 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
31469 (pxeboot_img_SOURCES): New variable.
31470 (pxeboot_img_ASFLAGS): Likewise.
31471 (pxeboot_img_LDFLAGS): Likewise.
31472 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
31473 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
31474 <lode_leroy@hotmail.com>.
31475
6c51eb64 314762004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
31477
31478 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
31479 there was no input.
31480
cfb12aff 314812004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
31482
31483 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
31484 the history buffer logic.
31485
6eabba74 314862004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
31487
31488 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
31489 (FILETYPE_INO_SYMLINK): New macros.
31490 (grub_ext2_find_file): Check if the node is a directory using the
31491 inode stat information instead of using the filetype in the
31492 dirent. Exclude the first character of an absolute symlink.
31493 (grub_ext2_dir): Mask out the filetype part of the mode member of
31494 the inode.
31495
66e19ef8 314962004-05-24 Marco Gerards <metgerards@student.han.nl>
31497
31498 Add support for UFS version 1 and 2. Add support for the minix
31499 filesystem version 1 and 2, both the variants with 14 and 30 long
31500 filenames.
f19dbdb7 31501
66e19ef8 31502 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
31503 fs/minix.c.
31504 (grub_emu_SOURCES): Likewise.
31505 (pkgdata_MODULES): Add ufs.mod and minix.mod.
31506 (ufs_mod_SOURCES): New variable.
31507 (ufs_mod_CFLAGS): Likewise.
31508 (minix_mod_SOURCES): Likewise.
31509 (minix_mod_CFLAGS): Likewise.
31510 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
31511 fs/minix.c.
31512 (grubof_SOURCES): Likewise.
31513 * fs/ufs.c: New file.
31514 * fs/minix.c: New file.
31515 * include/grub/fs.h (grub_ufs_init): New prototype.
31516 (grub_ufs_fini): Likewise.
31517 (grub_minix_init): Likewise.
31518 (grub_minix_fini): Likewise.
31519 * util/grub-emu.c (main): Initialize and deinitialize UFS and
31520 minix fs.
31521
cc2e748a 315222004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
31523
31524 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
31525 commands/ls.c, commands/terminal.c, commands/boot.c,
31526 commands/cmp.c and commands/cat.c.
31527 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
31528
31529 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
31530 "env.h"
31531
4b13b216 315322004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
31533
31534 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
31535 and grub_, respectively. Because the conversion is trivial and
31536 mechanical, I omit the details here. Please refer to the CVS
31537 if you need more information.
31538
6a142551 315392004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
31540
31541 * include/pupa: Renamed to ...
31542 * include/grub: ... this.
31543 * util/i386/pc/pupa-mkimage.c: Renamed to ...
31544 * util/i386/pc/grub-mkimage.c: ... this.
31545 * util/i386/pc/pupa-setup.c: Renamed to ...
31546 * util/i386/pc/grub-setup.c: ... this.
31547 * util/pupa-emu.c: Renamed to ...
31548 * util/grub-emu.c: ... this.
31549
e56cdf21 315502004-03-29 Marco Gerards <metgerards@student.han.nl>
31551
31552 Add support for the newworld apple macintosh (PPC). This has been
31553 tested on the powerbook 2000 only. It only adds support for
31554 generic ieee1275 functions, console and disk support. This should
31555 be easy to port to other architectures with support for Open
31556 Firmware.
f19dbdb7 31557
e56cdf21 31558 * configure.ac: Accept the powerpc as host_cpu. In the case of
31559 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
31560 specific tests are only executed while building for the i386.
31561 Inverse test for crosscompile.
31562 * genmk.rb (Utility): Allow assembler files.
31563 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
31564 * conf/powerpc-ieee1275.rmk: New file.
31565 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
31566 * disk/powerpc/ieee1275/partition.c: Likewise.
31567 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
31568 * include/pupa/powerpc/ieee1275/console.h: Likewise.
31569 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
31570 * include/pupa/powerpc/ieee1275/time.h: Likewise.
31571 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
31572 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
31573 * include/pupa/powerpc/ieee1275/loader.h
31574 * include/pupa/powerpc/setjmp.h: Likewise.
31575 * include/pupa/powerpc/types.h: Likewise.
31576 * kern/powerpc/ieee1275/init.c: Likewise.
31577 * kern/powerpc/ieee1275/openfw.c: Likewise.
31578 * term/powerpc/ieee1275/ofconsole.c: Likewise.
31579
31580 These files were written by Johan Rydberg
31581 (jrydberg@night.trouble.net) and I only modified them slightly.
f19dbdb7 31582
e56cdf21 31583 * boot/powerpc/ieee1275/cmain.c: New file.
31584 * boot/powerpc/ieee1275/crt0.S: Likewise.
31585 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
31586 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
31587
8c8cc205 315882004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
31589
31590 * Makefile.in: Update copyright.
31591 * genmodsrc.sh: Likewise.
31592 * gensymlist.sh: Likewise.
31593 * term/i386/pc/vga.c: Indent correctly.
31594
31595 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
31596 bugreporting address.
31597 * util/i386/pc/pupa-setup.c (usage): Likewise,
31598 (main): Call pupa_ext2_init and pupa_ext2_fini.
31599
f19dbdb7 31600 * fs/fat.c (log2): Renamed to ...
8c8cc205 31601 (fat_log2): ... this.
31602 All callers changed.
31603 * kern/misc.c (memcpy): Alias to pupa_memmove.
31604 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
31605 lvalue cast.
31606 * util/console.c (pupa_ncurses_fini): Return 0.
31607
31608 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
31609 Move fail label here.
31610 [__GNU__]: Don't warn when using stat.
31611 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
31612 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
31613 long int. Use strtol instead of strtoul.
f19dbdb7 31614
db1771cf 316152004-03-14 Marco Gerards <metgerards@student.han.nl>
31616
31617 * commands/boot.c: New file.
31618 * commands/cat.c: Likewise.
31619 * commands/cmp.c: Likewise.
31620 * commands/ls.c: Likewise.
31621 * commands/terminal.c: Likewise.
31622 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
31623 (pupa_register_command): Changed interface to match the new
31624 argument parser.
31625 (pupa_command_execute): Changed (almost rewritten) so it uses
31626 pupa_split_command. Added support for setting variables using the
31627 syntax `foo=bar'.
31628 (rescue_command): Changed to work with the new argument parser.
31629 (terminal_command): Moved from here to commands/terminal.c.
31630 (set_command): New function.
31631 (unset_command): New function.
31632 (insmod_command): New function.
31633 (rmmod_command): New function.
31634 (lsmod_command): New function.
31635 (pupa_command_init): Don't initialize the command terminal
31636 anymore. Initialize the commands set, unset, insmod, rmmod and
31637 lsmod.
31638 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
31639 (kernel_img_HEADERS): Add arg.h and env.h.
31640 (pupa_mkimage_LDFLAGS): Add kern/env.c.
31641 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
31642 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
31643 normal/arg.c.
31644 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
31645 terminal.mod.
31646 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
31647 (boot_mod_SOURCES): New variable.
31648 (terminal_mod_SOURCES): Likewise.
31649 (ls_mod_SOURCES): Likewise.
31650 (cmp_mod_SOURCES): Likewise.
31651 (cat_mod_SOURCES): Likewise.
31652
31653 * normal/arg.c: New file.
31654 * kern/env.c: Likewise.
31655 * include/pupa/arg.h: Likewise.
31656 * include/pupa/env.h: Likewise.
31657 * font/manager.c (font_command): Changed to match argument parsing
31658 interface changes.
31659 (PUPA_MOD_INIT): Likewise.
31660 * hello/hello.c (pupa_cmd_hello): Likewise.
31661 (PUPA_MOD_INIT): Likewise.
31662 * include/pupa/disk.h: Include <pupa/device.h>.
31663 (pupa_print_partinfo): New prototype.
31664 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
31665 (pupa_dl_get_prefix): Likewise.
31666 * include/pupa/misc.h: Include <pupa/err.h>.
31667 (pupa_isgraph): New prototype.
31668 (pupa_isdigit): Likewise.
31669 (pupa_split_cmdline): Likewise.
31670 * include/pupa/normal.h: Include <pupa/arg.h>.
31671 (pupa_command): Changed the prototype of the member `func' to
31672 match the argument parsing interface. Added member `options'.
31673 (pupa_register_command): Updated to match function.
31674 (pupa_arg_parse): New prototype.
31675 (pupa_hello_init) [PUPA_UTIL]: New prototype.
31676 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
31677 (pupa_ls_init) [PUPA_UTIL]: Likewise.
31678 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
31679 (pupa_cat_init) [PUPA_UTIL]: Likewise.
31680 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
31681 (pupa_boot_init) [PUPA_UTIL]: Likewise.
31682 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
31683 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
31684 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
31685 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
31686 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
31687 * kern/disk.c: Include <pupa/file.h>.
31688 (pupa_print_partinfo): New function.
31689 * kern/dl.c: Include <pupa/env.h>.
31690 (pupa_dl_dir): Variable removed.
31691 (pupa_dl_load): Use the environment variable `prefix' instead of
31692 the variable pupa_dl_dir.
31693 (pupa_dl_set_prefix): Function removed.
31694 (pupa_dl_get_prefix): Likewise.
31695 * kern/i386/pc/init.c: Include <pupa/env.h>.
31696 (pupa_machine_init): Use the environment variable `prefix' instead of
31697 using pupa_dl_set_prefix to set the prefix.
31698 * kern/main.c: Include <pupa/env.h>.
31699 (pupa_set_root_dev): Use the environment variable `prefix' instead of
31700 using pupa_dl_get_prefix to get the prefix.
31701 * kern/misc.c: Include <pupa/env.h>.
31702 (pupa_isdigit): New function.
31703 (pupa_isgraph): Likewise.
31704 (pupa_ftoa): Likewise.
31705 (pupa_vsprintf): Added support for printing values of the type
31706 `double'. Make it possible to format variable output when using
31707 formatting like `%1.2%f'.
31708 (pupa_split_cmdline): New function.
31709 * kern/rescue.c: Include <pupa/env.h>.
31710 (next_word): Removed function.
31711 (pupa_rescue_cmd_prefix): Likewise.
31712 (pupa_rescue_cmd_set): New function.
31713 (pupa_rescue_cmd_unset): New function.
31714 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
31715 split the command line instead of splitting it here. Added
31716 support for setting variables using the syntax `foo=bar'. Don't
31717 initialize the prefix command anymore. Initialized the set and
31718 unset commands.
31719 * normal/cmdline.c: Include <pupa/env.h>.
31720 (pupa_tab_complete): Added prototypes for print_simple_completion,
31721 print_partition_completion, add_completion, iterate_commands,
31722 iterate_dev, iterate_part and iterate_dir. Moved code to print
31723 partition information from here to kern/disk.c.
fe6b695a 31724 (pupa_cmdline_run): Don't check if the function exists anymore.
db1771cf 31725 * normal/main.c: Include <pupa/env.h>.
31726 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
31727 instead of using pupa_dl_get_prefix to get the prefix.
31728 * term/i386/pc/vga.c: Include <pupa/arg.h>.
31729 (check_vga_mem): Cast pointers to `void *' to silence a gcc
31730 warning.
31731 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
31732 (pupa_vga_setcolor): Declare unused variables with `__attribute__
31733 ((unused))' to silence a gcc warning.
31734 (pupa_vga_setcolor): Likewise.
31735 (debug_command): Changed to match argument parsing
31736 interface changes.
31737 * util/pupa-emu.c: Include <pupa/env.h>.
31738 (options): Added 0's for unused fields to silence a gcc warning.
31739 (argp): Likewise.
31740 (main): Use the environment variable `prefix' instead of using
31741 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
31742 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
31743 and terminal.
31744
31745 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
31746 * util/misc.c: Include <malloc.h>.
31747 (pupa_malloc): Rewritten so errors are correctly reported.
31748 (pupa_realloc): Likewise.
31749 (pupa_memalign): Likewise.
31750 (pupa_mm_init_region): Declare unused variables with
31751 `__attribute__ ((unused))' to silence a gcc warning.
31752 * normal/i386/setjmp.S: Remove tab at the end of the file to
31753 silence a gcc warning.
31754 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
31755 variables with `__attribute__ ((unused))' to silence a gcc
31756 warning.
31757 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
31758 local variable i unsigned to silence a gcc warning.
31759
31760 * kern/term.c: Include <pupa/misc.h>.
31761 (pupa_more_lines): New variable.
31762 (pupa_more): Likewise.
31763 (pupa_putcode): When the pager is active pause at the end of every
31764 screen.
31765 (pupa_set_more): New function.
31766 * include/pupa/term.h (pupa_set_more): New prototype.
31767
31768
3b1139cb 317692004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
31770
31771 Now this project is GRUB 2 rather than PUPA. The location of
31772 the CVS repository was moved to GRUB's.
f19dbdb7 31773
3b1139cb 31774 * configure.ac: Use bug-grub as the reporting address.
31775 Use GRUB instead of PUPA.
31776 Change the version number to 1.90.
31777
8367695c 317782004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
31779
31780 * genkernsyms.sh: Updated copyright information.
31781 * genmk.rb: Likewise.
31782 * genmodsrc.sh: Likewise.
31783 * gensymlist.sh: Likewise.
31784 * boot/i386/pc/boot.S: Likewise.
31785 * boot/i386/pc/diskboot.S: Likewise.
31786 * disk/i386/pc/biosdisk.c: Likewise.
31787 * disk/i386/pc/partition.c: Likewise.
31788 * font/manager.c: Likewise.
31789 * fs/ext2.c: Likewise.
31790 * fs/fat.c: Likewise.
31791 * include/pupa/boot.h: Likewise.
31792 * include/pupa/device.h: Likewise.
31793 * include/pupa/disk.h: Likewise.
31794 * include/pupa/dl.h: Likewise.
31795 * include/pupa/elf.h: Likewise.
31796 * include/pupa/err.h: Likewise.
31797 * include/pupa/file.h: Likewise.
31798 * include/pupa/font.h: Likewise.
31799 * include/pupa/fs.h: Likewise.
31800 * include/pupa/kernel.h: Likewise.
31801 * include/pupa/loader.h: Likewise.
31802 * include/pupa/misc.h: Likewise.
31803 * include/pupa/mm.h: Likewise.
31804 * include/pupa/net.h: Likewise.
31805 * include/pupa/normal.h: Likewise.
31806 * include/pupa/rescue.h: Likewise.
31807 * include/pupa/setjmp.h: Likewise.
31808 * include/pupa/symbol.h: Likewise.
31809 * include/pupa/term.h: Likewise.
31810 * include/pupa/types.h: Likewise.
31811 * include/pupa/i386/setjmp.h: Likewise.
31812 * include/pupa/i386/types.h: Likewise.
31813 * include/pupa/i386/pc/biosdisk.h: Likewise.
31814 * include/pupa/i386/pc/boot.h: Likewise.
31815 * include/pupa/i386/pc/console.h: Likewise.
31816 * include/pupa/i386/pc/init.h: Likewise.
31817 * include/pupa/i386/pc/kernel.h: Likewise.
31818 * include/pupa/i386/pc/linux.h: Likewise.
31819 * include/pupa/i386/pc/loader.h: Likewise.
31820 * include/pupa/i386/pc/memory.h: Likewise.
31821 * include/pupa/i386/pc/multiboot.h: Likewise.
31822 * include/pupa/i386/pc/partition.h: Likewise.
31823 * include/pupa/i386/pc/time.h: Likewise.
31824 * include/pupa/i386/pc/vga.h: Likewise.
31825 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
31826 * include/pupa/util/getroot.h: Likewise.
31827 * include/pupa/util/misc.h: Likewise.
31828 * include/pupa/util/resolve.h: Likewise.
31829 * kern/device.c: Likewise.
31830 * kern/disk.c: Likewise.
31831 * kern/dl.c: Likewise.
31832 * kern/err.c: Likewise.
31833 * kern/file.c: Likewise.
31834 * kern/fs.c: Likewise.
31835 * kern/loader.c: Likewise.
31836 * kern/main.c: Likewise.
31837 * kern/misc.c: Likewise.
31838 * kern/mm.c: Likewise.
31839 * kern/rescue.c: Likewise.
31840 * kern/term.c: Likewise.
31841 * kern/i386/dl.c: Likewise.
31842 * kern/i386/pc/init.c: Likewise.
31843 * kern/i386/pc/lzo1x.S: Likewise.
31844 * kern/i386/pc/startup.S: Likewise.
31845 * loader/i386/pc/chainloader.c: Likewise.
31846 * loader/i386/pc/linux.c: Likewise.
31847 * loader/i386/pc/multiboot.c: Likewise.
31848 * normal/cmdline.c: Likewise.
31849 * normal/command.c: Likewise.
31850 * normal/main.c: Likewise.
31851 * normal/menu.c: Likewise.
31852 * normal/i386/setjmp.S: Likewise.
31853 * term/i386/pc/console.c: Likewise.
31854 * term/i386/pc/vga.c: Likewise.
31855 * util/console.c: Likewise.
31856 * util/genmoddep.c: Likewise.
31857 * util/misc.c: Likewise.
31858 * util/pupa-emu.c: Likewise.
31859 * util/resolve.c: Likewise.
31860 * util/unifont2pff.rb: Likewise.
31861 * util/i386/pc/biosdisk.c: Likewise.
31862 * util/i386/pc/getroot.c: Likewise.
31863 * util/i386/pc/pupa-mkimage.c: Likewise.
31864 * util/i386/pc/pupa-setup.c: Likewise.
31865
e6eced71 318662004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
31867
31868 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
31869 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
31870 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
31871 reading and reset it after reading.
31872 (pupa_ext2_close): Return PUPA_ERR_NONE.
31873
31874 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
31875 Correct value.
31876 (struct linux_kernel_header): Add kernel_version and
31877 initrd_addr_max.
31878 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
31879 pupa_file_read succeeds.
31880 (pupa_rescue_cmd_initrd): Implement.
31881
5aded270 318822003-12-03 Marco Gerards <metgerards@student.han.nl>
31883
31884 * fs/ext2.c (pupa_ext2_label): New function.
31885 (pupa_ext2_fs): Added label.
31886 * fs/fat.c (pupa_fat_label): New function.
31887 (pupa_fat_fs): Added label.
31888 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
31889
31890 * kern/misc.c (pupa_strndup): New function.
31891 * include/pupa/misc.h (pupa_strndup): New prototype.
31892
31893 * include/pupa/normal.h: Include <pupa/err.h>.
31894 (pupa_set_history): New prototype.
31895 (pupa_iterate_commands): New prototype.
31896 * normal/cmdline.c: Include <pupa/machine/partition.h>,
31897 <pupa/disk.h>, <pupa/file.h>.
31898 (hist_size): New variable.
31899 (hist_lines): Likewise.
31900 (hist_end): Likewise.
31901 (hist_used): Likewise.
31902 (pupa_set_history): New function.
31903 (pupa_history_get): Likewise.
31904 (pupa_history_add): Likewise.
31905 (pupa_history_replace): Likewise.
31906 (pupa_tab_complete): Likewise.
31907 (pupa_cmdline_run): Added tab completion and history buffer. Tab
31908 completion shows partitionnames while completing partitions, this
31909 feature was suggested by Jeff Bailey.
31910 * normal/command.c (pupa_iterate_commands): New function.
31911 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
31912 (pupa_normal_init): Initialize history buffer.
31913 (PUPA_MOD_INIT): Likewise.
31914 (pupa_normal_fini): Free the history buffer.
31915 (PUPA_MOD_FINI): Likewise.
31916
31917 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
31918 key.
31919
31920 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
31921 * configure.ac [i386]: Check for regparam bug.
31922 (NESTED_FUNC_ATTR) [! i386]: Defined.
31923
1f7315a3 319242003-11-17 Marco Gerards <metgerards@student.han.nl>
31925
31926 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
31927 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
31928 (pupa_emu_SOURCES): New variable.
31929 (pupa_emu_LDFLAGS): Likewise.
31930 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
31931 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
31932 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
31933 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
31934 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
31935 (pupa_jmp_buf): New typedef.
31936 (pupa_setjmp) [PUPA_UTIL]: New macro.
31937 (pupa_longjmp) [PUPA_UTIL]: Likewise.
31938 * include/pupa/term.h (struct pupa_term): New member `refresh'.
31939 (pupa_refresh): New prototype.
31940 * include/pupa/util/getroot.h: New file.
31941 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
31942 it.
31943 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
31944 (pupa_rescue_cmd_cat): Likewise.
31945 (pupa_rescue_cmd_ls): Likewise.
31946 (pupa_rescue_cmd_testload): Likewise.
31947 (pupa_rescue_cmd_lsmod): Likewise.
31948 * normal/cmdline.c (pupa_cmdline_get): Likewise.
31949 * normal/menu.c (run_menu): Likewise.
31950 * kern/term.c (pupa_cls): Likewise.
31951 (pupa_refresh): New function.
31952 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
31953 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
31954 * util/console.c: New file.
f19dbdb7 31955
1f7315a3 31956 * util/i386/pc/getroot.c: New file.
31957 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
31958 (pupa_putchar): New function.
31959 (pupa_refresh): Likewise.
31960 (xgetcwd): Function moved to ...
31961 (strip_extra_slashes): Likewise.
31962 (get_prefix): Likewise.
f19dbdb7 31963 * util/i386/pc/getroot.c: ... here.
1f7315a3 31964 (find_root_device): Function moved and renamed to...
31965 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
31966 Changed all callers.
31967 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
31968 and renamed to...
31969 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
31970 Changed all callers.
31971 * util/misc.c (pupa_memalign): New function.
31972 (pupa_mm_init_region): Likewise.
31973 (pupa_register_exported_symbols): Likewise.
31974 (pupa_putchar): Function removed.
31975 * util/pupa-emu.c: New file.
31976
9a5c1ade 319772003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
31978
31979 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
31980 (_multiboot_mod_SOURCES): New variable.
31981 (_multiboot_mod_CFLAGS): Likewise.
31982 * loader/i386/pc/multiboot.c: New file.
31983 * include/pupa/i386/pc/multiboot.h: Likewise.
31984 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
31985 (pupa_multiboot_real_boot): New function.
31986 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
31987 (pupa_multiboot_real_boot): New prototype.
31988 (pupa_rescue_cmd_multiboot): Likewise
31989 (pupa_rescue_cmd_module): Likewise.
31990
31991 * kern/loader.c (pupa_loader_set): Continue when
31992 pupa_loader_unload_func() fails.
31993 (pupa_loader_unset): New function.
31994 * include/pupa/loader.h (pupa_loader_unset): New prototype.
31995
31996 * kern/misc.c (pupa_stpcpy): New function.
31997 * include/pupa/misc.h (pupa_stpcpy): New prototype.
31998
8e72a9c0 319992003-11-12 Marco Gerards <metgerards@student.han.nl>
32000
32001 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
32002 for available extensions.
32003
32004 * include/pupa/i386/pc/time.h: New file.
32005 * kern/disk.c: Include <pupa/machine/time.h>.
32006 (PUPA_CACHE_TIMEOUT): New macro.
32007 (pupa_last_time): New variable.
32008 (pupa_disk_open): Flush the cache when there was a timeout.
32009 (pupa_disk_close): Reset the timer.
32010 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
32011 pupa_currticks.
32012 * util/misc.c: Include <sys/times.h>
32013 (pupa_get_rtc): New function.
32014
c4adbd32 320152003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
32016
32017 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
32018 as blocks.
32019 (pupa_ext2_get_file_block): Use blocks member.
32020
32021 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
32022 first block. Return -1 instead of pupa_errno on error.
32023
bfd30f06 320242003-10-27 Marco Gerards <metgerards@student.han.nl>
32025
32026 * README: In the pupa-mkimage example use _chain instead of chain
32027 and ext2 instead of fat.
32028 * TODO: Replace ext2fs with jfs as an example. Add an item for
32029 adding journal playback for ext2fs.
32030 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
32031 (pkgdata_MODULES): Added ext2.mod.
32032 (ext2_mod_SOURCES): New variable.
32033 (ext2_mod_CFLAGS): Likewise.
32034 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
32035 * include/pupa/misc.h (pupa_strncpy): New prototype.
32036 (pupa_strcat): Likewise.
32037 (pupa_strncmp): Likewise.
32038 * kern/misc.c (pupa_strcat): Enable function.
32039 (pupa_strncpy): New function.
32040 (pupa_strncmp): Likewise.
32041 * fs/ext2.c: New file.
f19dbdb7 32042
bfd30f06 32043 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
32044 when the read failed before retrying.
32045 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
32046 (_FILE_OFFSET_BITS): Likewise.
32047 * configure.ac: Added AC_SYS_LARGEFILE.
32048
98d15063 320492003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
32050
32051 * genmk.rb (PModule#rule): Make sure to get only symbol names
32052 from the output of nm.
59cad637 32053 Reported by Robert Millan <rmh.grub@aybabtu.com>.
98d15063 32054
18d9c7cd 320552003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
32056
32057 I forgot to check in these changes for a long time. This adds
32058 incomplete support for VGA console, and this is still very
32059 buggy. Also, a lot of consideration is required for I18N,
32060 UNICODE, and VGA font issues. Therefore, assume that this is
32061 such that "better than nothing".
f19dbdb7 32062
18d9c7cd 32063 * font/manager.c: New file.
32064 * include/pupa/font.h: Likewise.
32065 * include/pupa/i386/pc/vga.h: Likewise.
32066 * term/i386/pc/vga.c: Likewise.
32067 * util/unifont2pff.rb: Likewise.
32068
32069 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
32070 (pkgdata_MODULES): Added vga.mod and font.mod.
32071 (vga_mod_SOURCES): New variables.
32072 (vga_mod_CFLAGS): Likewise.
32073 (font_mod_SOURCES): Likewise.
32074 (font_mod_CFLAGS): Likewise.
32075
32076 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
32077
32078 * include/pupa/term.h: Include pupa/err.h.
f19dbdb7 32079 (struct pupa_term): Added init and fini.
18d9c7cd 32080 Changed the argument of putchar to pupa_uint32_t.
32081
32082 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
32083 (pupa_console_real_putchar): New prototype.
32084 (pupa_console_putchar): Removed.
32085 (pupa_console_checkkey): Exported.
32086 (pupa_console_getkey): Likewise.
32087
32088 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
32089 characters.
32090
32091 * kern/term.c (pupa_term_set_current): Rewritten.
32092 (pupa_putchar): Likewise.
32093 (pupa_putcode): New function.
32094
32095 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
32096 (pupa_console_real_putchar): ... this.
32097 (pupa_vga_set_mode): New function.
32098 (pupa_vga_get_font): Likewise.
32099
32100 * normal/command.c: Include pupa/term.h.
32101 (terminal_command): New function.
32102 (pupa_command_init): Register the command "terminal".
32103
32104 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
32105 (DISP_UP): Likewise.
32106 (DISP_RIGHT): Likewise.
32107 (DISP_DOWN): Likewise.
32108 (DISP_HLINE): Likewise.
32109 (DISP_VLINE): Likewise.
32110 (DISP_UL): Likewise.
32111 (DISP_UR): Likewise.
32112 (DISP_LL): Likewise.
32113 (DISP_LR): Likewise.
32114
32115 * term/i386/pc/console.c (pupa_console_putchar): New function.
f19dbdb7 32116
977329f5 321172003-02-08 NIIBE Yutaka <gniibe@m17n.org>
32118
32119 * util/resolve.c (pupa_util_resolve_dependencies): BUG
32120 FIX. Reverse the path_list.
32121
32122 * include/pupa/normal.h: Export pupa_register_command and
32123 pupa_unregister_command.
32124
32125 * hello/hello.c (pupa_cmd_hello): New module.
32126 * conf/i386-pc.rmk: Added hello.mod.
32127
1f5ab428 321282003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
32129
32130 * kern/i386/pc/lzo1x.S: New file.
f19dbdb7 32131
1f5ab428 32132 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
32133 (compress_kernel): New variable.
32134 (generate_image): Heavily modified to support compressing a
32135 large part of the core image.
32136
32137 * util/misc.c (pupa_util_read_image): Fix a file descriptor
32138 leak.
32139 (pupa_util_load_image): New function.
32140
32141 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
32142 (pupa_compressed_size): New variable.
32143 (codestart): Enable Gate A20 here.
32144 Decompress the compressed part of the core image.
32145 Rearrange the code to put functions and variables which are
32146 required for initialization in the non-compressed part.
32147 Include lzo1x.S.
32148
32149 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
32150 here.
32151
32152 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
32153
f19dbdb7 32154 * include/pupa/i386/pc/kernel.h
1f5ab428 32155 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
32156 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
32157 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
32158 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
32159 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
32160
32161 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
32162
32163 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
32164 (Utility#rule): Likewise.
32165
32166 * configure.ac: Check if LZO is available.
32167
ce5bf700 321682003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
32169
32170 * include/pupa/normal.h: New file.
32171 * include/pupa/setjmp.h: Likewise.
32172 * include/pupa/i386/setjmp.h: Likewise.
32173 * normal/cmdline.c: Likewise.
32174 * normal/command.c: Likewise.
32175 * normal/main.c: Likewise.
32176 * normal/menu.c: Likewise.
32177 * normal/i386/setjmp.S: Likewise.
f19dbdb7 32178
ce5bf700 32179 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
32180 (pupa_rescue_cmd_initrd): Likewise.
32181
32182 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
32183 Likewise.
32184
32185 * kern/i386/pc/startup.S (translation_table): New variable.
32186 (translate_keycode): New function.
32187 (pupa_console_getkey): Call translate_keycode.
32188
32189 * kern/rescue.c (attempt_normal_mode): New function.
32190 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
32191 it failed, print a message.
32192
32193 * kern/mm.c (pupa_real_malloc): Print more information when a
32194 free magic is broken.
32195 (pupa_free): If the first free header is not free actually, set
32196 it to P.
32197
32198 * kern/main.c (pupa_load_normal_mode): Just load the module
32199 "normal".
32200 (pupa_main): Don't print the message
32201 "Entering into rescue mode..." here.
32202
32203 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
32204 Declared.
32205 (pupa_rescue_cmd_initrd): Likewise.
32206 (pupa_rescue_cmd_initrd): Likewise.
32207
32208 * include/pupa/symbol.h (FUNCTION): Specify the type.
32209 (VARIABLE): Likewise.
32210
32211 * include/pupa/err.h (pupa_err_t): Added
32212 PUPA_ERR_UNKNOWN_COMMAND.
32213
32214 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
32215 (pupa_dl_get_prefix): Likewise.
32216
32217 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
32218 Added _chain.mod and _linux.mod instead of chain.mod and
32219 linux.mod.
32220 (chain_mod_SOURCES): Renamed to ...
32221 (_chain_mod_SOURCES): ... this.
32222 (chain_mod_CFLAGS): Renamed to ...
32223 (_chain_mod_CFLAGS): ... this.
32224 (linux_mod_SOURCES): Renamed to ...
32225 (_linux_mod_SOURCES): ... this.
32226 (linux_mod_CFLAGS): Renamed to ...
32227 (_linux_mod_CFLAGS): ... this.
32228 (normal_mod_SOURCES): New variable.
32229 (normal_mod_CFLAGS): Likewise.
32230 (normal_mod_ASFLAGS): Likewise.
32231
322322003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
32233
32234 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
32235 possible.
32236
fe6b695a 32237 * kern/dl.c (pupa_dl_ref): Refer depending modules
ce5bf700 32238 recursively.
32239 (pupa_dl_unref): Unrefer depending modules recursively.
32240 Don't call pupa_dl_unload implicitly, because PUPA can crash if
32241 a module is unloaded before one depending on that module is
32242 unloaded.
32243 (pupa_dl_unload): Unload depending modules explicitly,
32244 if possible.
32245
c04da074 322462003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
32247
32248 * include/pupa/i386/pc/linux.h: New file.
32249 * loader/i386/pc/linux.c: Likewise.
f19dbdb7 32250
c04da074 32251 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
32252 Removed.
32253 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
32254 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
32255 of PUPA_CHAINLOADER_BOOT_SECTOR.
32256
32257 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
32258 (pupa_linux_prot_size): New variable.
32259 (pupa_linux_tmp_addr): Likewise.
32260 (pupa_linux_real_addr): Likewise.
32261 (pupa_linux_boot_zimage): New function.
32262 (pupa_linux_boot_bzimage): Likewise.
32263
32264 * kern/i386/pc/init.c (struct mem_region): New structure.
32265 (MAX_REGIONS): New macro.
32266 (mem_regions): New variable.
32267 (num_regions): Likewise.
32268 (pupa_os_area_addr): Likewise.
32269 (pupa_os_area_size): Likewise.
32270 (pupa_lower_mem): Likewise.
32271 (pupa_upper_mem): Likewise.
32272 (add_mem_region): New function.
32273 (compact_mem_regions): Likewise.
32274 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
32275 the size of the conventional memory and that of so-called upper
32276 memory (before the first memory hole).
32277 Instead of adding each found region to free memory, use
32278 add_mem_region and add them after removing overlaps.
32279 Also, add only 1/4 of the upper memory to free memory. The rest
32280 is used for loading OS images. Maybe this is ad hoc, but this
32281 makes it much easier to relocate OS images when booting.
32282
32283 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
32284 (pupa_enter_rescue_mode): Don't register initrd and module.
32285
32286 * kern/mm.c: Include pupa/dl.h.
32287
32288 * kern/main.c: Include pupa/file.h and pupa/device.h.
32289
32290 * kern/loader.c (pupa_loader_load_module_func): Removed.
32291 (pupa_loader_load_module): Likewise.
32292
32293 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
32294 ``.o''.
32295
32296 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
32297 (pupa_linux_tmp_addr): Likewise.
32298 (pupa_linux_real_addr): Likewise.
32299 (pupa_linux_boot_zimage): Likewise.
32300 (pupa_linux_boot_bzimage): Likewise.
32301
32302 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
32303 (pupa_upper_mem): Likewise.
32304 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
32305 module is too dangerous.
32306
32307 * include/pupa/loader.h (pupa_os_area_addr): Declared.
32308 (pupa_os_area_size): Likewise.
32309 (pupa_loader_set): Remove the first argument. Loader doesn't
32310 manage modules or initrd any longer.
32311 (pupa_loader_load_module): Removed.
32312
32313 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
32314 (linux_mod_SOURCES): New variable.
32315 (linux_mod_CFLAGS): Likewise.
32316
a13f9237 323172003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
32318
32319 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
32320 the length of a blocklist correctly.
32321
32322 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
32323 Use ioctl only if the OS file is a block device.
32324 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
32325 not very useful for normal files.
32326
32327 * kern/main.c (pupa_set_root_dev): New function.
32328 (pupa_load_normal_mode): Likewise.
32329 (pupa_main): Call those above.
32330
32331 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
32332 pupa_uint16_t.
32333
32334 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
32335
a5ffe966 323362003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
32337
32338 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
32339 (setup): Configure the installed partition information and the
32340 dl prefix.
32341
32342 * loader/i386/pc/chainloader.c (my_mod): New variable.
32343 (pupa_chainloader_unload): New function.
32344 (pupa_rescue_cmd_chainloader): Refer itself.
32345 (PUPA_MOD_INIT): Save its own module in MY_MOD.
32346
32347 * kern/i386/pc/startup.S (install_partition): Removed.
32348 (version_string): Likewise.
32349 (config_file): Likewise.
32350 (pupa_install_dos_part): New variable.
32351 (pupa_install_bsd_part): Likewise.
32352 (pupa_prefix): Likewise.
32353 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
32354
32355 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
32356 and pupa/misc.h.
32357 (make_install_device): New function.
32358 (pupa_machine_init): Set the dl prefix.
32359
32360 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
32361 (buf): Renamed to ...
32362 (linebuf): ... this.
32363 (pupa_rescue_cmd_prefix): New function.
32364 (pupa_rescue_cmd_insmod): Likewise.
32365 (pupa_rescue_cmd_rmmod): Likewise.
32366 (pupa_rescue_cmd_lsmod): Likewise.
32367 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
32368 rmmod and lsmod.
32369
32370 * kern/mm.c (pupa_memalign): If failed even after invalidating
32371 disk caches, unload unneeded modules and retry.
32372
32373 * kern/misc.c (pupa_memmove): New function.
32374 (pupa_memcpy): Removed.
32375 (pupa_strcpy): New function.
32376 (pupa_itoa): Made static.
32377
32378 * kern/dl.c (pupa_dl_iterate): New function.
32379 (pupa_dl_ref): Likewise.
32380 (pupa_dl_unref): Likewise.
32381 (pupa_dl_unload): Return if succeeded or not.
32382 (pupa_dl_unload_unneeded): New function.
32383 (pupa_dl_unload_all): Likewise.
32384 (pupa_dl_init): Renamed to ...
32385 (pupa_dl_set_prefix): ... this.
32386 (pupa_dl_get_prefix): New function.
32387
32388 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
32389 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
32390 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
32391 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
32392 (pupa_install_dos_part): Declared.
32393 (pupa_install_bsd_part): Likewise.
32394 (pupa_prefix): Likewise.
32395 (pupa_boot_drive): Likewise.
32396
32397 * include/pupa/types.h: Fix a typo.
32398
32399 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
32400 pupa_memmove.
32401 (pupa_memmove): Declared.
32402 (pupa_strcpy): Likewise.
32403
32404 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
32405 pupa_mod_init takes one argument, its own module.
32406 (pupa_dl_unload_unneeded): Declared.
32407 (pupa_dl_unload_all): Likewise.
32408 (pupa_dl_ref): Likewise.
32409 (pupa_dl_unref): Likewise.
32410 (pupa_dl_iterate): Likewise.
32411 (pupa_dl_init): Renamed to ...
32412 (pupa_dl_set_prefix): ... this.
32413 (pupa_dl_get_prefix): Declared.
32414
32415 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
f19dbdb7 32416 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
a5ffe966 32417 unloaded.
32418 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
32419 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
32420
32421 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
32422 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
32423
012d7999 324242003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
32425
32426 * util/i386/pc/pupa-setup.c (setup): Define the internal
32427 function find_first_partition_start at the top level, because GCC
32428 3.0.x cannot compile internal functions in deeper scopes
32429 correctly.
32430 (find_root_device): Use lstat instead of stat.
32431 Don't follow symbolic links.
32432 Fix the path-constructing code.
32433
32434 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
32435 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
32436 by a BLKGETSIZE ioctl first, because block devices don't fill
32437 the member st_mode of the structure stat on Linux.
32438 [__linux__] (linux_find_partition): Use a temporary buffer
32439 REAL_DEV for the working space. Copy it to DEV before returning.
32440 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
32441 buffer cache consistent.
32442 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
32443 strncmp. The previous value was merely wrong.
32444 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
32445
32446 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
32447 FAT size is 12. The previous value was merely wrong.
32448
32449 * kern/main.c (pupa_main): Don't split the starting message from
32450 newlines.
32451
32452 * kern/term.c (pupa_putchar): Put CR after LF instead of before
32453 LF, because BIOS goes crazy about character attributes in this
32454 case.
32455
1cc73a62 324562003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
32457
32458 * include/i386/pc/util/biosdisk.h: New file.
32459 * util/i386/pc/biosdisk.c: Likewise.
32460 * util/i386/pc/pupa-setup.c: Likewise.
f19dbdb7 32461
1cc73a62 32462 * Makefile.in (INCLUDE_DISTFILES): Added
32463 include/pupa/i386/pc/util/biosdisk.h.
32464 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
32465 directory util/i386/pc.
32466 (install-local): Added a rule for sbin_UTILITIES.
32467 (uninstall): Likewise.
32468
32469 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
32470
32471 * util/misc.c (xrealloc): New function.
32472 (pupa_malloc): Likewise.
32473 (pupa_free): Likewise.
32474 (pupa_realloc): Likewise.
32475 (pupa_stop): Likewise.
32476 (pupa_putchar): Likewise.
32477
32478 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
32479
32480 * include/pupa/util/misc.h (xrealloc): Declared.
32481
32482 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
32483 macro.
32484 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
32485 (PUPA_BOOT_MACHINE_BPB_END): ... this.
32486
32487 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
32488 [PUPA_UTIL] (pupa_fat_fini): Likewise.
32489
32490 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
32491 way should be implemented.
32492 [PUPA_UTIL] (pupa_fat_fini): Likewise.
32493
32494 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
32495 the size of NAME for safety.
32496 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
32497 0x88.
32498
32499 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
32500 (pupa_setup_SOURCES): Likewise.
32501
32502 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
32503
08b70fe8 325042002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
32505
32506 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
32507 bunch of pushl's from pusha, because this destroys the return
32508 value.
32509
62ddcc8f 325102002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
32511
32512 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
32513 This means that any missing prototypes could be fatal. Also, you
32514 must take care when writing assembly code. See the comments at
32515 the beginning of startup.S, for more details.
f19dbdb7 32516
62ddcc8f 32517 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
32518 compilation mechanism.
32519 (pupa_chainloader_real_boot): Likewise.
32520 (pupa_biosdisk_rw_int13_extensions): Likewise.
32521 (pupa_biosdisk_rw_standard): Likewise.
32522 (pupa_biosdisk_check_int13_extensions): Likewise.
32523 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
32524 (pupa_biosdisk_get_diskinfo_standard): Likewise.
32525 (pupa_get_memsize): Likewise.
32526 (pupa_get_mmap_entry): Likewise.
32527 (pupa_console_putchar): Likewise.
32528 (pupa_console_setcursor): Likewise.
32529 (pupa_getrtsecs): Use pushl instead of push.
32530
32531 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
32532 memory instead of the stack for a mmap entry, because some
32533 BIOSes may ignore the maximum size and overflow.
32534
32535 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
32536
32537 * genmk.rb (PModule#rule): Compile automatically generated
32538 sources with module-specific CFLAGS as well as other sources.
32539
9962ed99 325402002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
32541
32542 * configure.ac: Check ld.
32543 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
32544 respectively, before checking endianness and sizes.
32545
32546 * Makefile.in (LD): New variable.
f19dbdb7 32547
abdfc3c5 325482002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
32549
32550 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
32551
6a161fa9 325522002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
32553
32554 * Changelog: New file.
32555