]> git.proxmox.com Git - grub2.git/blob - ChangeLog
2009-11-15 Felix Zielcke <fzielcke@z-51.de>
[grub2.git] / ChangeLog
1 2009-11-15 Felix Zielcke <fzielcke@z-51.de>
2
3 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
4 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
5
6 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
7
8 Fix help2man generation for mkisofs.
9
10 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
11 (usage): Send output to stdout (rather than stderr).
12
13 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
14
15 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
16 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
17 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
18 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
19 (bin_SCRIPTS): Add `grub-mkfloppy'.
20 (grub_mkfloppy_SOURCES): New variable.
21
22 * util/grub-mkrescue.in: New file.
23 * util/i386/pc/grub-mkfloppy.in: New file.
24
25 * util/i386/coreboot/grub-mkrescue.in: Remove.
26 * util/i386/pc/grub-mkrescue.in: Remove.
27
28 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
29
30 * include/grub/multiboot.h (struct grub_multiboot_header): Move
31 from here ...
32 * include/multiboot.h (struct multiboot_header): ... to here. Update
33 all users.
34 * include/grub/multiboot.h (struct grub_multiboot_info): Move
35 from here ...
36 * include/multiboot.h (struct multiboot_info): ... to here. Update
37 all users.
38 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
39 from here ...
40 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
41 Update all users.
42 * include/grub/multiboot.h (struct grub_mod_list): Move
43 from here ...
44 * include/multiboot.h (struct multiboot_mod_list): ... to here.
45 Update all users.
46
47 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
48
49 * include/multiboot2.h (multiboot_word): Rename from this ...
50 (multiboot2_word): ... to this. Update all users.
51 (multiboot_header): Rename from this ...
52 (multiboot2_header): ... to this. Update all users.
53 (multiboot_tag_header): Rename from this ...
54 (multiboot2_tag_header): ... to this. Update all users.
55 (multiboot_tag_start): Rename from this ...
56 (multiboot2_tag_start): ... to this. Update all users.
57 (multiboot_tag_name): Rename from this ...
58 (multiboot2_tag_name): ... to this. Update all users.
59 (multiboot_tag_module): Rename from this ...
60 (multiboot2_tag_module): ... to this. Update all users.
61 (multiboot_tag_memory): Rename from this ...
62 (multiboot2_tag_memory): ... to this. Update all users.
63 (multiboot_tag_unused): Rename from this ...
64 (multiboot2_tag_unused): ... to this. Update all users.
65 (multiboot_tag_end): Rename from this ...
66 (multiboot2_tag_end): ... to this. Update all users.
67
68 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
69
70 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
71 this platform we should support Multiboot1 first.
72
73 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
74 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
75 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
76
77 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
78
79 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
80 of write calls (converting them to fwrite() if they aren't already).
81 (get_torito_desc): Likewise.
82 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
83
84 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
85
86 * util/i386/pc/grub-install.in: Move from here ...
87 * util/grub-install.in: ... to here. Update all users.
88
89 2009-11-11 Colin Watson <cjwatson@ubuntu.com>
90
91 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
92
93 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
94
95 Support for El Torito without floppy emulation.
96
97 * util/mkisofs/eltorito.c: Include `<errno.h>'.
98 (init_boot_catalog): Improve error handling.
99 (get_torito_desc): Don't use floppy emulation unless requested by
100 user. Patch boot information table when requested via
101 `-boot-info-table'.
102 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
103 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
104 (use_boot_info_table): New variables.
105 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
106 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
107 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
108 `--eltorito-emul-floppy'.
109 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
110 and `OPTION_ELTORITO_EMUL_FLOPPY'.
111 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
112 (use_boot_info_table, get_731): New prototypes.
113 * util/mkisofs/write.c (get_731): New function.
114
115 2009-11-11 Felix Zielcke <fzielcke@z-51.de>
116
117 Fix the generation of the man page.
118
119 * util/pc/i386/grub-install.in: Source
120 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
121
122 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
123
124 Large file support for grub-mkisofs.
125
126 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
127 * util/mkisofs/mkisofs.c (next_extent, last_extent)
128 (session_start): Upgrade type to `uint64_t'. Update all users.
129 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
130 (struct directory_entry): Upgrade type of `starting_block' and
131 `size' to `uint64_t'. Update all users.
132 (struct deferred): Remove unused structure.
133 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
134 Update all users.
135 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
136 file is larger than `UINT32_MAX'.
137 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
138 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
139 return value.
140 (struct deferred_write): Upgrade type of `extent' and `size' to
141 `uint64_t'. Update all users.
142 (last_extent_written): Upgrade type to `uint64_t'. Update all
143 users.
144 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
145 Update all users. Upgrade type of `remain' to `int64_t' and
146 `use' to `size_t'. Use error() to handle fread() errors.
147 (write_files): Rely on write_one_file() rather than calling
148 xfwrite() directly.
149
150 2009-11-09 Felix Zielcke <fzielcke@z-51.de>
151
152 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
153
154 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
155
156 * util/mkisofs/fnmatch.c: Remove.
157 * util/mkisofs/getopt1.c: Likewise.
158 * util/mkisofs/getopt.c: Likewise.
159 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
160 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
161 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
162 `gnulib/getopt1.c' and `gnulib/getopt.c'.
163 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
164
165 * configure.ac: Detect `mingw32msvc' host_os.
166 Check for lstat(), getuid() and getgid().
167
168 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
169 instances of `u_char' with `uint8_t'.
170
171 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
172 [!HAVE_GETUID] (getuid): New function (stub).
173 [!HAVE_GETGID] (getgid): Likewise.
174 [!HAVE_LSTAT] (lstat): Likewise.
175 [!S_IROTH] (S_IROTH): New macro (dummy).
176 [!S_IRGRP] (S_IRGRP): Likewise.
177
178 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
179
180 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
181 conditional expression).
182
183 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
184
185 Import from Gnulib.
186
187 * gnulib/fnmatch.c: New file.
188 * gnulib/fnmatch.h: Likewise.
189 * gnulib/fnmatch_loop.c: Likewise.
190 * gnulib/getopt.c: Likewise.
191 * gnulib/getopt.h: Likewise.
192 * gnulib/getopt1.c: Likewise.
193 * gnulib/getopt_int.h: Likewise.
194 * gnulib/gettext.h: Likewise.
195
196 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
197
198 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
199 * normal/handler.c (read_handler_list): Likewise.
200
201 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
202
203 Misc cleanup.
204
205 * kern/command.c (grub_register_command_prio): Use
206 grub_zalloc() instead of explicitly zeroing data.
207 * kern/list.c: Include `<grub/mm.h>'.
208 (grub_named_list_find): Replace `0' with `NULL'.
209 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
210 (fs_module_list): Change type to `grub_named_list_t'. Update all
211 users.
212 * normal/dyncmd.c (read_command_list): Add space between function
213 call and parenthesis.
214 * normal/handler.c (read_handler_list): Likewise.
215
216 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
217
218 * normal/auth.c (punishment_delay): Moved from here ...
219 (grub_auth_strcmp): ... to here (inside function).
220
221 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
222
223 * include/grub/list.h (struct grub_named_list): Remove `const'
224 qualifier from `name'.
225 (struct grub_prio_list): Likewise.
226
227 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
228
229 * normal/auth.c: Include `<grub/time.h>'.
230 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
231
232 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
233
234 * normal/auth.c (punishment_delay): New variable.
235 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
236 (grub_auth_check_authentication): Punish failed login attempts with
237 an incremental (2^N) delay.
238
239 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
240
241 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
242 path with $(srcdir).
243
244 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
245
246 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
247
248 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
249
250 * util/i386/coreboot/grub-mkrescue.in: New file.
251 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
252 variables.
253
254 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
255 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
256 * configure.ac: Add header and function checks to satisfy grub-mkisofs
257 requirements.
258 * util/mkisofs/defaults.h: New file.
259 * util/mkisofs/eltorito.c: Likewise.
260 * util/mkisofs/exclude.h: Likewise.
261 * util/mkisofs/fnmatch.c: Likewise.
262 * util/mkisofs/getopt.c: Likewise.
263 * util/mkisofs/getopt1.c: Likewise.
264 * util/mkisofs/hash.c: Likewise.
265 * util/mkisofs/include/fctldefs.h: Likewise.
266 * util/mkisofs/include/mconfig.h: Likewise.
267 * util/mkisofs/include/prototyp.h: Likewise.
268 * util/mkisofs/include/statdefs.h: Likewise.
269 * util/mkisofs/iso9660.h: Likewise.
270 * util/mkisofs/joliet.c: Likewise.
271 * util/mkisofs/match.c: Likewise.
272 * util/mkisofs/match.h: Likewise.
273 * util/mkisofs/mkisofs.c: Likewise.
274 * util/mkisofs/mkisofs.h: Likewise.
275 * util/mkisofs/multi.c: Likewise.
276 * util/mkisofs/name.c: Likewise.
277 * util/mkisofs/rock.c: Likewise.
278 * util/mkisofs/tree.c: Likewise.
279 * util/mkisofs/write.c: Likewise.
280
281 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
282
283 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
284 being insecure.
285
286 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
287
288 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
289 `grub-mkimage' (and use $0 when possible).
290
291 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
292
293 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
294 error message for excessively large memory map.
295
296 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
297
298 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
299 executable bit.
300
301 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
302
303 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
304 message for coreboot users.
305
306 2009-11-07 Robert Millan <rmh.grub@aybabtu.com>
307
308 Fix build with GNU gold.
309
310 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
311 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
312 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
313 link addresses.
314 * aclocal.m4: Likewise.
315
316 2009-11-04 Felix Zielcke <fzielcke@z-51.de>
317
318 * configure.ac (AC_PREREQ): Bump to 2.59d.
319 * INSTALL: Make it more clear when Autoconf and Ruby are
320 needed and when to run `./autogen.sh'.
321
322 2009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
323
324 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
325 OSes.
326
327 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
328
329 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
330
331 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
332
333 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
334 giving it to GNU Mach.
335
336 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
337
338 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
339 GNU partition number to get internal GRUB partition number.
340
341 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
342
343 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
344 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
345
346 2009-11-01 Robert Millan <rmh.grub@aybabtu.com>
347
348 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
349 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
350 case.
351
352 2009-11-01 Felix Zielcke <fzielcke@z-51.de>
353
354 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
355
356 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
357
358 Fix build problem.
359
360 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
361 `-isystem=$(srcdir)/include'.
362
363 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
364
365 * util/i386/pc/grub-install.in: Remove hint that device.map should be
366 checked (grub-install doesn't currently rely on it).
367
368 2009-10-29 Robert Millan <rmh.grub@aybabtu.com>
369
370 Revert SVN r2660.
371
372 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
373 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
374 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
375 * conf/i386-ieee1275.rmk: Likewise.
376 * conf/i386-pc.rmk: Likewise.
377 * conf/powerpc-ieee1275.rmk: Likewise.
378 * conf/sparc64-ieee1275.rmk: Likewise.
379 * conf/x86_64-efi.rmk: Likewise.
380
381 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
382
383 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
384
385 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
386
387 * include/grub/misc.h: Stop checking for APPLE_CC.
388
389 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
390
391 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
392 doesn't cause an infinite call loop.
393
394 2009-10-28 Felix Zielcke <fzielcke@z-51.de>
395
396 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
397 strings.
398
399 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
400
401 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
402 variable.
403 * Makefile.in: Likewise.
404
405 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
406
407 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
408
409 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
410
411 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
412
413 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
414
415 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
416
417 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
418
419 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
420 from here ...
421 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
422
423 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
424
425 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
426 in $(MAKEINFO) invocation. This makes it clear in output that
427 errors are being ignored.
428
429 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
430
431 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
432 from here ...
433 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
434 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
435 * conf/i386-ieee1275.rmk: Likewise.
436 * conf/i386-pc.rmk: Likewise.
437 * conf/powerpc-ieee1275.rmk: Likewise.
438 * conf/sparc64-ieee1275.rmk: Likewise.
439 * conf/x86_64-efi.rmk: Likewise.
440
441 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
442
443 * util/grub-editenv.c (main): If only a command is given, use
444 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
445 (usage): FILENAME is now optional and has a default.
446
447 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
448
449 Improve grub-mkconfig performance when there are several menu
450 entries on a single filesystem.
451
452 * util/grub.d/10_linux.in (linux_entry): Cache the output of
453 prepare_grub_to_access_device.
454 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
455 * util/grub.d/30_os-prober.in: Likewise.
456
457 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
458
459 * util/grub.d/10_freebsd.in: Remove.
460 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
461 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
462
463 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
464
465 * docs/grub.cfg: Fix example usage of *BSD loaders.
466
467 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
468
469 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
470 grub_util_error() call.
471
472 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
473
474 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
475 `reserved_first_sector' member.
476 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
477 `reserved_first_sector' to 1.
478 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
479 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
480 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
481 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
482 filesystems which begin at first sector.
483 (options): New option --skip-fs-probe.
484 (main): Handle --skip-fs-probe and pass it to setup().
485
486 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
487
488 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
489 (memset): Fix function prototype.
490
491 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
492 2009-10-25 Vasily Averin <vvs@parallels.com>
493
494 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
495 `dirent.direntlen == 0'.
496
497 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
498
499 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
500 `cpio'.
501 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
502
503 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
504
505 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
506 `__trampoline_setup' and `__ucmpdi2'.
507 * include/grub/powerpc/libgcc.h: Only export symbols for functions
508 that libgcc provides.
509
510 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
511
512 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
513 * include/grub/sparc64/libgcc.h (memset): Likewise.
514 * include/grub/misc.h (memset, memcmp): New function prototypes.
515
516 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
517
518 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
519 `cpio'.
520 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
521
522 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
523
524 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
525 * docs/grub.cfg: Compensate for recent change in multiboot
526 loader (since 2009-08-14 it won't pass filename to payload).
527 * util/grub.d/10_hurd.in: Likewise.
528
529 2009-10-21 Felix Zielcke <fzielcke@z-51.de>
530
531 * config.guess: Update to latest version from config git
532 repository.
533 * config.sub: Likewise.
534
535 2009-10-20 Robert Millan <rmh.grub@aybabtu.com>
536
537 Fix build on sparc64.
538
539 * configure.ac: Perform checks for libgcc symbols before
540 adding `-nostdlib' to LDFLAGS.
541
542 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
543
544 Let user specify OpenBSD root device.
545
546 * loader/i386/bsd.c (openbsd_root): New variable.
547 (openbsd_opts): New option 'root'.
548 (OPENBSD_ROOT_ARG): New macro.
549 (grub_openbsd_boot): Use 'openbsd_root'.
550 (grub_cmd_openbsd): Fill 'openbsd_root'.
551
552 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
553
554 * NEWS: Misc adjustments.
555
556 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
557
558 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
559
560 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
561
562 * configure.ac: Bump version to 1.97.
563
564 2009-10-16 Colin Watson <cjwatson@ubuntu.com>
565
566 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
567 -mno-3dnow on x86 architectures. Some toolchains enable these
568 features by default, but they rely on registers that aren't enabled
569 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
570
571 2009-10-15 Robert Millan <rmh.grub@aybabtu.com>
572
573 Make entry text a bit more readable.
574
575 * util/grub.d/10_linux.in: Add `with' before `Linux'.
576
577 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
578
579 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
580
581 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
582
583 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
584 operations.
585
586 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
587
588 * configure.ac: Add missing dollar.
589
590 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
591
592 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
593
594 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
595 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
596 exports.
597 * include/grub/sparc64/libgcc.h: Likewise. Use
598 preprocessor conditionals.
599
600 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
601
602 * conf/common.rmk (grub-dumpbios): Remove rule.
603 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
604 * util/grub-dumpbios.in: Remove file.
605
606 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
607
608 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
609 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
610
611 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
612 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
613 users.
614
615 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
616 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
617 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
618 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
619 users.
620
621 2009-10-12 Robert Millan <rmh.grub@aybabtu.com>
622
623 * term/tparm.c: Switch to GPLv3.
624
625 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
626
627 * include/grub/i386/cpuid.h: Add header protection.
628
629 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
630
631 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
632
633 * include/grub/i386/cpuid.h: New file.
634 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
635 (has_longmode): Rename to ...
636 (grub_cpuid_has_longmode): ... this. Update all users. Remove
637 `static' attribute.
638 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
639 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
640 on a CPU that doesn't implement AMD64 instruction set.
641
642 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
643
644 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
645 that version.texi is rebuilt on version number changes.
646
647 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
648
649 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
650 Fixes bug #27602.
651
652 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
653
654 * util/i386/pc/grub-install.in: Source
655 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
656 that the --grub-probe option will work.
657 * util/sparc64/ieee1275/grub-install.in: Likewise.
658
659 2009-10-05 Robert Millan <rmh.grub@aybabtu.com>
660
661 * configure.ac: Bump version to 1.97~beta4.
662
663 2009-10-03 Robert Millan <rmh.grub@aybabtu.com>
664
665 Resync grub-mkdevicemap in x86_64-efi.
666
667 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
668 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
669 `util/devicemap.c'.
670
671 2009-10-01 Colin Watson <cjwatson@ubuntu.com>
672
673 * util/grub-editenv.c (create_envblk_file): Write new block with a
674 .new suffix and then rename it into place, to ensure atomic
675 creation.
676
677 2009-09-28 Robert Millan <rmh.grub@aybabtu.com>
678
679 Do not automatically install headers.
680
681 * Makefile.in (include_DATA): Remove. Update all users.
682
683 2009-09-26 Robert Millan <rmh.grub@aybabtu.com>
684
685 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
686 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
687
688 * util/osdetect.lua: Remove.
689 * script/lua/lauxlib.c: Likewise.
690 * script/lua/ldebug.c: Likewise.
691 * script/lua/grub_main.c: Likewise.
692 * script/lua/lauxlib.h: Likewise.
693 * script/lua/ldebug.h: Likewise.
694 * script/lua/ltablib.c: Likewise.
695 * script/lua/liolib.c: Likewise.
696 * script/lua/lstrlib.c: Likewise.
697 * script/lua/lualib.h: Likewise.
698 * script/lua/ldo.c: Likewise.
699 * script/lua/ldump.c: Likewise.
700 * script/lua/ldo.h: Likewise.
701 * script/lua/loslib.c: Likewise.
702 * script/lua/lundump.c: Likewise.
703 * script/lua/grub_lib.c: Likewise.
704 * script/lua/ldblib.c: Likewise.
705 * script/lua/lundump.h: Likewise.
706 * script/lua/lmem.c: Likewise.
707 * script/lua/grub_lib.h: Likewise.
708 * script/lua/lmathlib.c: Likewise.
709 * script/lua/lstate.c: Likewise.
710 * script/lua/ltm.c: Likewise.
711 * script/lua/lvm.c: Likewise.
712 * script/lua/lmem.h: Likewise.
713 * script/lua/lstate.h: Likewise.
714 * script/lua/ltm.h: Likewise.
715 * script/lua/ltable.c: Likewise.
716 * script/lua/lvm.h: Likewise.
717 * script/lua/llex.c: Likewise.
718 * script/lua/lgc.c: Likewise.
719 * script/lua/grub_lua.h: Likewise.
720 * script/lua/loadlib.c: Likewise.
721 * script/lua/lfunc.c: Likewise.
722 * script/lua/lopcodes.c: Likewise.
723 * script/lua/lparser.c: Likewise.
724 * script/lua/ltable.h: Likewise.
725 * script/lua/llex.h: Likewise.
726 * script/lua/lgc.h: Likewise.
727 * script/lua/lfunc.h: Likewise.
728 * script/lua/lbaselib.c: Likewise.
729 * script/lua/lopcodes.h: Likewise.
730 * script/lua/lparser.h: Likewise.
731 * script/lua/lzio.c: Likewise.
732 * script/lua/linit.c: Likewise.
733 * script/lua/lobject.c: Likewise.
734 * script/lua/llimits.h: Likewise.
735 * script/lua/lstring.c: Likewise.
736 * script/lua/lzio.h: Likewise.
737 * script/lua/lapi.c: Likewise.
738 * script/lua/lcode.c: Likewise.
739 * script/lua/lua.h: Likewise.
740 * script/lua/lobject.h: Likewise.
741 * script/lua/lstring.h: Likewise.
742 * script/lua/lapi.h: Likewise.
743 * script/lua/lcode.h: Likewise.
744 * script/lua/luaconf.h: Likewise.
745
746 2009-09-26 Colin Watson <cjwatson@ubuntu.com>
747
748 * docs/grub.texi (Command-line and menu entry commands): Document
749 date and echo commands.
750
751 2009-09-24 Pavel Roskin <proski@gnu.org>
752
753 * include/grub/kernel.h (struct grub_module_header): Remove
754 `grub_module_header_types'. Make `type' unsigned. Make `size'
755 32-bit on all platforms.
756 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
757 8-bit field. Use grub_host_to_target32() for `size'.
758 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
759 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
760 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
761
762 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
763
764 Fix "lost keypress" bug in at_keyboard.
765
766 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
767 Checks for readyness of input buffer (without flushing it).
768 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
769 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
770
771 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
772
773 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
774 size check within GRUB_MACHINE_PCBIOS section.
775
776 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
777
778 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
779 return value.
780 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
781 KEYBOARD_ISREADY check.
782 (grub_at_keyboard_checkkey): Rename to ...
783 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
784 Remove gratuitous cast.
785
786 2009-09-23 Colin Watson <cjwatson@ubuntu.com>
787
788 * configure.ac: Call AC_PROG_MKDIR_P.
789 * Makefile.in (docs/stamp-vti): Create docs directory. Create
790 version.texi in $(builddir) rather than $(srcdir).
791 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
792 to makeinfo's @include search path.
793
794 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
795
796 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
797
798 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
799
800 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
801 for `*.dpkg-new'.
802
803 2009-09-21 Colin Watson <cjwatson@ubuntu.com>
804
805 Build info documentation. Some code borrowed from Automake.
806
807 * configure.ac: Check for makeinfo.
808 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
809 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
810 docs/version.texi.
811 (MOSTLYCLEANFILES): Add vti.tmp.
812 (docs/version.texi, docs/stamp-vti): Update automatically.
813 (docs/grub.info): Build info documentation. Use --force and ignore
814 errors for now.
815 (all-local): Add $(INFOS).
816 (install-local): Install info files.
817 (uninstall): Uninstall info files.
818 * docs/version.texi: Remove from revision control. This file is
819 automatically generated on build now.
820 * gendistlist.sh: Add `*.info'.
821
822 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
823
824 * kern/term.c: Fix indentation.
825
826 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
827
828 * util/hostdisk.c: Fix a comment.
829
830 2009-09-20 Robert Millan <rmh.grub@aybabtu.com>
831
832 Fix regression introduced in r2539.
833
834 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
835 to 0xA1.
836
837 2009-09-19 Colin Watson <cjwatson@ubuntu.com>
838
839 * util/grub.d/30_os-prober.in: Don't throw away stderr from
840 os-prober. Under normal operation, it does not print anything to
841 stderr; if it does, we need to debug it, and throwing away stderr
842 makes that excessively difficult.
843
844 2009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
845
846 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
847
848 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
849
850 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
851 AC_LANG_PROGRAM from autoconf.
852 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
853 prototypes (fixes warning).
854
855 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
856 `--disable-werror' was used.
857
858 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
859
860 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
861 uninitialized `lastaddr'.
862
863 2009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
864
865 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
866
867 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
868
869 * commands/test.c (get_fileinfo): Return immediately if
870 grub_fs_probe fails.
871
872 2009-09-14 José Martínez <xosemp@gmail.com>
873
874 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
875
876 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
877
878 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
879 output.
880
881 2009-09-13 Robert Millan <rmh.grub@aybabtu.com>
882
883 * configure.ac: Remove --enable-grub-pe2elf. Only build
884 grub-pe2elf when needed by the build system itself.
885 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
886
887 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
888
889 * configure.ac: Bump version to 1.97~beta3.
890 * docs/version.texi: Likewise.
891
892 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
893
894 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
895 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
896 from here ...
897 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
898 (grub_linux_setup_video): ... to here (with some adjustments).
899
900 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
901
902 Fix memory corruption issue (spotted by Colin Watson).
903
904 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
905 causing returned size to be stored in an incorrect memory location.
906 Fix use of uninitialized value when storing the returned size.
907
908 2009-09-12 Yves Blusseau <blusseau@zetam.org>
909
910 Change clean rules to properly remove files
911
912 * genmk.rb: add new clean rules
913 * Makefile.in (clean): add the new targets
914 (mostlyclean): likewise
915
916 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
917
918 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
919 to grub_uint64_t.
920 * fs/ntfs.c (init_file): Understand 64-bit sizes for
921 non-resident files.
922
923 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
924
925 * configure.ac: Don't look for help2man when cross-compiling. Fixes
926 part of bug #27349.
927
928 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
929
930 * util/grub-mkconfig.in: Make the created config mode 400 and
931 print a warning if it fails.
932
933 2009-09-10 Robert Millan <rmh.grub@aybabtu.com>
934
935 * util/grub.d/40_custom.in: Ask user to type custom entries below
936 comment, rather than below 'exec tail' line.
937
938 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
939
940 * util/grub.d/40_custom.in: Make sure that the explanatory text is
941 visible in grub.cfg.
942
943 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
944
945 * util/grub.d/40_custom.in: Make it a little clearer how to use this
946 file.
947
948 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
949
950 * docs/grub.cfg: Add an example menu entry for memtest86+.
951
952 2009-09-09 Felix Zielcke <fzielcke@z-51.de>
953
954 * config.guess: Update to latest version from config git.
955 * config.sub: Likewise.
956
957 2009-09-08 Colin Watson <cjwatson@ubuntu.com>
958
959 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
960 unknown-command case. Fixes bug #27320.
961
962 2009-09-08 Felix Zielcke <fzielcke@z-51.de>
963
964 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
965 `help' if the command exists.
966
967 2009-09-06 Robert Millan <rmh.grub@aybabtu.com>
968
969 * INSTALL: Require GCC 4.1.3 or later.
970
971 2009-09-06 Yves Blusseau <blusseau@zetam.org>
972
973 * Makefile.in (RMKFILES): add i386-qemu.rmk
974 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
975 $(srcdir)/stamp-h.in
976
977 2009-09-05 Robert Millan <rmh.grub@aybabtu.com>
978
979 * util/grub-probe.c (probe): Comment out buggy codepath, which
980 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
981 should be re-enabled after 1.97.
982
983 2009-09-05 Felix Zielcke <fzielcke@z-51.de>
984
985 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
986 find searches for.
987
988 2009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
989
990 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
991 unnecessary calls to grub_error.
992
993 2009-09-04 Colin Watson <cjwatson@ubuntu.com>
994
995 * NEWS: Mention `keystatus' and Unicode fonts.
996
997 2009-09-04 Robert Millan <rmh.grub@aybabtu.com>
998
999 * configure.ac: Bump version to 1.97~beta2.
1000 * docs/version.texi: Likewise.
1001
1002 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
1003
1004 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
1005 containing unwind information in some cases where it previously did
1006 not. Use -fno-dwarf2-cfi-asm if available to restore the old
1007 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
1008 discussion.
1009
1010 2009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
1011
1012 Embedding loadenv module into grub-emu
1013
1014 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
1015 commands/loadenv.c
1016 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
1017 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
1018 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
1019 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
1020 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
1021 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
1022
1023 2009-09-03 Magnus Granberg <zorry@ume.nu>
1024
1025 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
1026 include -fPIE in the default specs.
1027 * configure.ac: Check if pie_possible is yes and add -fno-PIE
1028 to TARGET_CFLAGS.
1029
1030 2009-09-03 Felix Zielcke <fzielcke@z-51.de>
1031
1032 * INSTALL: Note that GNU Bison 2.3 or later is required.
1033
1034 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
1035
1036 * kern/i386/pc/startup.S: Fix typo.
1037
1038 2009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
1039
1040 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
1041 according to GCS.
1042
1043 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
1044
1045 * docs/grub.texi (Naming convention): Describe one-based partition
1046 numbering.
1047 (Device syntax): Likewise.
1048 (File name syntax): Likewise.
1049 (Block list syntax): Likewise.
1050 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
1051 menu.lst.
1052 (File name syntax): Likewise.
1053 (Command-line and menu entry commands): Document acpi, blocklist,
1054 crc, export, insmod, keystatus, ls, set, and unset commands.
1055
1056 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
1057
1058 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
1059 to avoid implying that only one of --shift, --ctrl, or --alt may be
1060 used.
1061
1062 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
1063
1064 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
1065 rather than comparing against S_IFREG, which will almost never work.
1066
1067 2009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
1068
1069 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
1070 (write_blocklists): Likewise.
1071
1072 2009-09-01 Colin Watson <cjwatson@ubuntu.com>
1073
1074 * script/lua/grub_lua.h (fputs): Supply a format string as the first
1075 argument to grub_printf.
1076
1077 2009-09-01 Felix Zielcke <fzielcke@z-51.de>
1078
1079 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
1080 non GNU test.
1081
1082 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
1083
1084 * kern/file.c (grub_file_read): Spelling fix
1085
1086 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
1087
1088 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
1089 loading of headers in some cases.
1090
1091 2009-08-30 Robert Millan <rmh.grub@aybabtu.com>
1092
1093 * configure.ac: Bump version to 1.97~beta1.
1094 * docs/version.texi: Likewise.
1095
1096 2009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
1097
1098 * include/grub/i386/xnu.h: Add license header.
1099 include grub/err.h explicitly.
1100
1101 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
1102
1103 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
1104 to `ufs' in the vfs.root.mountfrom kernel parameter.
1105
1106 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
1107
1108 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
1109
1110 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
1111 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
1112
1113 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
1114 `ARRAY_SIZE' macro.
1115
1116 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
1117
1118 * kern/file.c (grub_file_read): Check offset.
1119 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
1120 * fs/jfs.c (grub_jfs_read_file): Likewise.
1121 * fs/ntfs.c (grub_ntfs_read): Likewise.
1122 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
1123 * fs/minix.c (grub_minix_read_file): Correct offset check.
1124 * fs/ufs.c (grub_ufs_read_file): Likewise.
1125
1126 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
1127
1128 * term/i386/pc/console.c (bios_data_area): Cast
1129 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
1130
1131 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
1132
1133 1-bit optimised blitters.
1134
1135 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
1136 prototype.
1137 (grub_video_fbblit_replace_24bit_1bit): Likewise.
1138 (grub_video_fbblit_replace_16bit_1bit): Likewise.
1139 (grub_video_fbblit_replace_8bit_1bit): Likewise.
1140 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
1141 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
1142 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
1143 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
1144 function.
1145 (grub_video_fbblit_replace_24bit_1bit): Likewise.
1146 (grub_video_fbblit_replace_16bit_1bit): Likewise.
1147 (grub_video_fbblit_replace_8bit_1bit): Likewise.
1148 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
1149 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
1150 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
1151 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
1152 when possible.
1153 * video/video.c (grub_video_get_blit_format): Return
1154 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
1155
1156 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
1157
1158 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
1159 the first argument to grub_printf.
1160
1161 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
1162 2009-08-28 Robert Millan <rmh.grub@aybabtu.com>
1163
1164 Add `getkeystatus' terminal method. Add a new `keystatus' command
1165 to query it.
1166
1167 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
1168 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
1169 modifier key bitmasks.
1170 (struct grub_term_input): Add `getkeystatus' member.
1171 (grub_getkeystatus): Add prototype.
1172 * kern/term.c (grub_getkeystatus): New function.
1173
1174 * include/grub/i386/pc/memory.h
1175 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
1176 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
1177 Data Area layout.
1178 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
1179 (grub_console_term_input): Set `getkeystatus' member.
1180 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
1181 constants.
1182 (grub_usb_keyboard_getreport): Likewise.
1183 (grub_usb_keyboard_checkkey): Likewise.
1184 (grub_usb_keyboard_getkeystatus): New function.
1185 (grub_usb_keyboard_term): Set `getkeystatus' member.
1186
1187 * commands/keystatus.c: New file.
1188 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
1189 (keystatus_mod_SOURCES): New variable.
1190 (keystatus_mod_CFLAGS): Likewise.
1191 (keystatus_mod_LDFLAGS): Likewise.
1192 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
1193 commands/keystatus.c.
1194 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
1195 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
1196 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
1197 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
1198 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
1199 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
1200
1201 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
1202
1203 Split befs.mod and afs.mod into *_be.mod and *.mod
1204
1205 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
1206 (grub_fstest_SOURCES): Likewise.
1207 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
1208 (afs_be_mod_SOURCES): New variable.
1209 (afs_be_mod_CFLAGS): Likewise.
1210 (afs_be_mod_LDFLAGS): Likewise.
1211 (befs_be_mod_SOURCES): Likewise.
1212 (befs_be_mod_CFLAGS): Likewise.
1213 (befs_be_mod_LDFLAGS): Likewise.
1214 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
1215 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
1216 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
1217 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
1218 (grub_emu_SOURCES): Likewise.
1219 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
1220 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
1221 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
1222 * fs/afs_be.c: New file.
1223 * fs/befs_be.c: New file.
1224 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
1225 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
1226 (U16): Replaced with ...
1227 (grub_afs_to_cpu16): ...this. All users updated.
1228 (U32): Replaced with ...
1229 (grub_afs_to_cpu32): ...this. All users updated.
1230 (U64): Replaced with ...
1231 (grub_afs_to_cpu64): ...this. All users updated.
1232 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
1233 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
1234 (grub_afs_validate_sblock): Check only one endianness.
1235 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
1236 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
1237 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
1238 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
1239 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
1240 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
1241 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
1242 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
1243
1244 2009-08-26 Bean <bean123ch@gmail.com>
1245
1246 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
1247 64-bit number.
1248 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
1249 (grub_xfs_inode_block): Change return type to grub_uint64_t.
1250 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
1251
1252 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
1253
1254 NetBSD memory map support.
1255
1256 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
1257 (grub_netbsd_btinfo_mmap_header): New structure.
1258 (grub_netbsd_btinfo_mmap_entry): Likewise.
1259 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
1260
1261 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
1262
1263 Enable bsd.mod on coreboot.
1264
1265 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
1266 (bsd_mod_SOURCES): New variable.
1267 (bsd_mod_CFLAGS): Likewise.
1268 (bsd_mod_LDFLAGS): Likewise.
1269 (bsd_mod_ASFLAGS): Likewise.
1270 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
1271 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
1272
1273 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
1274
1275 Cleanup NetBSD root support.
1276
1277 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
1278 grub_bsd_get_device.
1279 Fix typo.
1280
1281 2009-08-25 Felix Zielcke <fzielcke@z-51.de>
1282
1283 * util/grub.d/00_header.in: Move check for the video backend of
1284 gfxterm from here ...
1285 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
1286 a suitable video backend.
1287
1288 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
1289
1290 Fix breakage in grub-setup.
1291
1292 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
1293 "msdos_partition_map".
1294
1295 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
1296
1297 Fix breakage in normal/auth.c.
1298
1299 * normal/auth.c (grub_iswordseparator): New function.
1300
1301 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
1302
1303 Authentication support.
1304
1305 * commands/password.c: New file.
1306 * conf/common.rmk (pkglib_MODULES): Add password.mod.
1307 (password_mod_SOURCES): New variable.
1308 (password_mod_CFLAGS): Likewise.
1309 (password_mod_LDFLAGS): Likewise.
1310 (normal_mod_SOURCES): Add normal/auth.c.
1311 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
1312 normal/auth.c.
1313 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
1314 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
1315 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
1316 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
1317 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
1318 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
1319 * include/grub/auth.h: New file.
1320 * include/grub/err.h (grub_err_t): New enum value
1321 GRUB_ERR_ACCESS_DENIED.
1322 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
1323 'users'.
1324 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
1325 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
1326 users updated.
1327 * normal/auth.c: New file.
1328 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
1329 (grub_cmdline_run): Don't allow to go to command line without
1330 authentication.
1331 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
1332 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
1333 menuentry without superuser rights.
1334 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
1335 user isn't a superuser.
1336
1337 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
1338
1339 Save space by inlining misc.c functions.
1340
1341 * kern/misc.c (grub_iswordseparator): Made static.
1342 * kern/misc.c (grub_strcat): Moved from here ...
1343 * include/grub/misc.h (grub_strcat): ... here. Inlined.
1344 * kern/misc.c (grub_strncat): Moved from here ...
1345 * include/grub/misc.h (grub_strncat): ... here. Inlined.
1346 * kern/misc.c (grub_strcasecmp): Moved from here ...
1347 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
1348 * kern/misc.c (grub_strncasecmp): Moved from here ...
1349 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
1350 * kern/misc.c (grub_isalpha): Moved from here ...
1351 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
1352 * kern/misc.c (grub_isdigit): Moved from here ...
1353 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
1354 * kern/misc.c (grub_isgraph): Moved from here ...
1355 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
1356 * kern/misc.c (grub_tolower): Moved from here ...
1357 * include/grub/misc.h (grub_tolower): ... here. Inlined.
1358
1359 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
1360
1361 * script/sh/function.c (grub_script_function_find): Cut error message
1362 not to flood terminal.
1363 * script/sh/lexer.c (grub_script_yylex): Remove command line length
1364 limit.
1365 * script/sh/script.c (grub_script_arg_add): Duplicate string.
1366
1367 2009-08-24 Colin Watson <cjwatson@ubuntu.com>
1368
1369 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
1370 `report' grub_uint8_t *.
1371 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
1372 Use a 50-millisecond timeout rather than just repeating
1373 grub_usb_keyboard_getreport 50 times.
1374 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
1375
1376 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
1377
1378 Rename *_partition_map to part_*
1379
1380 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
1381 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
1382 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
1383 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
1384 All users updated.
1385 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
1386 All users updated.
1387 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
1388 * util/grub-probe.c (probe_partmap): Don't transform partition name
1389 to get module name.
1390
1391 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
1392
1393 Fix OpenBSD and NetBSD support.
1394
1395 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
1396 memory address conflict.
1397 (OPENBSD_MMAP_ACPI): New definition.
1398 (OPENBSD_MMAP_NVS): Likewise.
1399 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
1400 and OPENBSD_MMAP_NVS.
1401 Add memory map terminator
1402 Explicit cast when calling grub_unix_real_boot.
1403 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
1404
1405 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
1406
1407 Let user specify NetBSD root device.
1408
1409 * loader/i386/bsd.c (netbsd_root): New variable.
1410 (netbsd_opts): New option 'root'.
1411 (NETBSD_ROOT_ARG): New macro.
1412 (grub_netbsd_boot): Use 'netbsd_root'.
1413 (grub_bsd_unload): Free 'netbsd_root'.
1414 (grub_cmd_netbsd): Fill 'netbsd_root'.
1415
1416 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
1417
1418 Support for 64-bit NetBSD.
1419
1420 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
1421 point when booting non-FreeBSD.
1422
1423 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
1424
1425 Support --no-smp and --no-acpi for NetBSD.
1426
1427 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
1428 (NETBSD_AB_NOACPI): Likewise.
1429 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
1430 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
1431
1432 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
1433
1434 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
1435 errors.
1436 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
1437 errors. Call grub_error when needed.
1438
1439 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
1440
1441 * commands/search.c (search_fs): Try searching without autoload first.
1442 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
1443 filesystem module explicitly for faster booting.
1444
1445 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
1446
1447 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
1448
1449 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
1450
1451 * util/grub.d/30_os-prober.in: Disable os-prober if
1452 `GRUB_DISABLE_OS_PROBER' was set to true.
1453
1454 2009-08-23 Robert Millan <rmh.grub@aybabtu.com>
1455
1456 * partmap/pc.c: Rename to ...
1457 * partmap/msdos.c: ... this. Update all users.
1458 (grub_pc_partition_map): Rename to ...
1459 (grub_msdos_partition_map): ... this. Update all users.
1460
1461 * parttool/pcpart.c: Rename to ...
1462 * parttool/msdospart.c: ... this. Update all users.
1463
1464 * include/grub/pc_partition.h: Rename to ...
1465 * include/grub/msdos_partition.h: ... this. Update all users.
1466 (grub_pc_partition_bsd_entry): Rename to ...
1467 (grub_msdos_partition_bsd_entry): ... this. Update all users.
1468 (grub_pc_partition_disk_label): Rename to ...
1469 (grub_msdos_partition_disk_label): ... this. Update all users.
1470 (grub_pc_partition_entry): Rename to ...
1471 (grub_msdos_partition_entry): ... this. Update all users.
1472 (grub_pc_partition_mbr): Rename to ...
1473 (grub_msdos_partition_mbr): ... this. Update all users.
1474 (grub_pc_partition): Rename to ...
1475 (grub_msdos_partition): ... this. Update all users.
1476 (grub_pc_partition_is_empty): Rename to ...
1477 (grub_msdos_partition_is_empty): ... this. Update all users.
1478 (grub_pc_partition_is_extended): Rename to ...
1479 (grub_msdos_partition_is_extended): ... this. Update all users.
1480 (grub_pc_partition_is_bsd): Rename to ...
1481 (grub_msdos_partition_is_bsd): ... this. Update all users.
1482
1483 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
1484 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
1485 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
1486 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
1487 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
1488 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
1489 (gpt_mod_LDFLAGS): Rename to ...
1490 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
1491 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
1492 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
1493 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
1494 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
1495 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
1496 (part_gpt_mod_LDFLAGS): ... this.
1497 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
1498 `pcpart.mod' to `msdospart.mod'.
1499 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
1500 to ...
1501 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
1502 (msdospart_mod_LDFLAGS): ... this.
1503
1504 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
1505
1506 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
1507 (openbsd_opts): Likewise.
1508 (netbsd_opts): Likewise.
1509 (freebsd_flags): Added 0 terminator.
1510 (openbsd_flags): Likewise.
1511 (netbsd_flags): Likewise.
1512 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
1513 (grub_cmd_freebsd): Transformed into extended command.
1514 (grub_cmd_openbsd): Likewise.
1515 (grub_cmd_netbsd): Likewise.
1516 (cmd_freebsd): Changed type to grub_extcmd_t.
1517 (cmd_openbsd): Likewise.
1518 (cmd_netbsd): Likewise.
1519 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
1520 grub_cmd_openbsd as extended commands.
1521 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
1522 cmd_netbsd and cmd_openbsd
1523
1524 2009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
1525
1526 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
1527
1528 2009-08-21 Pavel Roskin <proski@gnu.org>
1529
1530 * Makefile.in (install-local): When checking if a file is in the
1531 build directory, use "test -e" to detect symlinks.
1532
1533 * Makefile.in (install-local): Remove all files in
1534 $(DESTDIR)$(pkglibdir) before installing new files there.
1535
1536 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
1537
1538 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
1539 grub-mkelfimage.
1540
1541 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
1542
1543 * util/grub-mkconfig.in: Don't use gfxterm by default if not
1544 explicitly specified by the user.
1545
1546 2009-08-18 Pavel Roskin <proski@gnu.org>
1547
1548 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
1549 grub_uint8_t pointer for data.
1550 * include/grub/fbutil.h (struct grub_video_fbblit_info):
1551 Likewise.
1552 * video/fb/fbutil.c: Remove unnecessary casts.
1553
1554 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
1555
1556 VBE cleanup.
1557
1558 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
1559 (grub_vbe_set_video_mode): Save active mode info
1560 only after setting the mode.
1561 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
1562 second argument.
1563
1564 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
1565
1566 Rename variables for clarity.
1567
1568 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
1569 (active_vbe_mode_info): ... this. All users updated.
1570 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
1571 All users updated.
1572 (initial_mode): Rename to ...
1573 (initial_vbe_mode): ... this. All users updated.
1574 (mode_in_use): Rename to ..
1575 (vbe_mode_in_use): ... this. All users updated.
1576 (mode_list): Rename to ..
1577 (vbe_mode_list): ... this. All users updated.
1578 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
1579 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
1580 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
1581 'mode_list_size' to 'vbe_mode_list_size'.
1582 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
1583 'best_mode_info' to 'best_vbe_mode_info' and
1584 'best_mode' to 'best_vbe_mode'
1585
1586 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
1587
1588 Remove duplicate grub_video_fb_get_video_ptr.
1589
1590 * include/grub/fbutil.h (get_data_ptr): Rename to ...
1591 (grub_video_fb_get_video_ptr): ... this.
1592 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
1593 * video/fb/fbutil.c: Add comment about addressing.
1594 (get_data_ptr): Rename to ...
1595 (grub_video_fb_get_video_ptr): ... this. All users updated.
1596 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
1597
1598 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
1599
1600 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
1601 grub_dprintf() that was just added.
1602
1603 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
1604
1605 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
1606 (DEFAULT_VIDEO_MODE): Remove macros.
1607 (grub_linux_boot): Remove assumption that Linux has FB support,
1608 and use "text" as default video mode.
1609
1610 2009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
1611
1612 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
1613 grub_dprintf.
1614 * fs/fat.c (grub_fat_read_data): Likewise.
1615
1616 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
1617
1618 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
1619 payload.
1620 (grub_module): Likewise.
1621
1622 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
1623
1624 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
1625 mbi->cmdline but free playground.
1626
1627 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
1628
1629 Handle group offset on UFS1.
1630
1631 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
1632 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
1633
1634 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
1635
1636 Split ufs.mod into ufs1.mod and ufs2.mod.
1637
1638 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
1639 (grub_fstest_SOURCES): Likewise.
1640 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
1641 (ufs_mod_SOURCES): Remove.
1642 (ufs_mod_CFLAGS): Likewise.
1643 (ufs_mod_LDFLAGS): Likewise.
1644 (ufs1_mod_SOURCES): New variable.
1645 (ufs1_mod_CFLAGS): Likewise.
1646 (ufs1_mod_LDFLAGS): Likewise.
1647 (ufs2_mod_SOURCES): New variable.
1648 (ufs2_mod_CFLAGS): Likewise.
1649 (ufs2_mod_LDFLAGS): Likewise.
1650 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
1651 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
1652 Likewise.
1653 (grub_emu_SOURCES): Likewise.
1654 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
1655 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
1656 (grub_setup_SOURCES): Likewise.
1657 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
1658 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
1659 (grub_setup_SOURCES): Likewise.
1660 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
1661 Likewise.
1662 * fs/ufs2.c: New file.
1663 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
1664
1665 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
1666
1667 Framebuffer split.
1668
1669 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
1670 subsystem at the end.
1671 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
1672 (video_fb_mod_SOURCES): New variable.
1673 (video_fb_mod_CFLAGS): Likewise.
1674 (video_fb_mod_LDFLAGS): Likewise.
1675 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
1676 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
1677 * video/i386/pc/vbeblit.c: Moved from here ...
1678 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
1679 * video/i386/pc/vbefill.c: Moved from here ...
1680 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
1681 * video/i386/pc/vbeutil.c: Moved from here ...
1682 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
1683 * include/grub/i386/pc/vbeblit.h: Moved from here ...
1684 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
1685 * include/grub/i386/pc/vbefill.h: Moved from here ...
1686 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
1687 * include/grub/i386/pc/vbeutil.h: Moved from here ...
1688 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
1689 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
1690 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
1691 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
1692 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
1693 (grub_video_adapter): Added 'get_info_and_fini'.
1694 (grub_video_get_info_and_fini): New prototype.
1695 (grub_video_set_mode): make modestring const char *.
1696 * loader/i386/linux.c (grub_linux_setup_video): Use
1697 grub_video_get_info_and_fini.
1698 (grub_linux_boot): Move modesetting just before booting.
1699 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
1700 grub_video_get_info_and_fini.
1701 * video/i386/pc/vbe.c: Moved framebuffer part ...
1702 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
1703 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
1704 grub_video_fbstd_colors and grub_video_fb_set_palette.
1705 (grub_video_vbe_init): Clear 'framebuffer' variable and use
1706 grub_video_fb_init.
1707 (grub_video_vbe_fini): Use grub_video_fb_fini.
1708 (grub_video_vbe_setup): Use framebuffer.render_target instead of
1709 render_target and use grub_video_fb_set_active_render_target and
1710 grub_video_fb_set_palette.
1711 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
1712 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
1713 (grub_video_vbe_adapter): Use framebuffer.
1714 * video/video.c (grub_video_get_info_and_fini): New function.
1715 (grub_video_set_mode): Make modestring const char *.
1716 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
1717 values are already initialised.
1718
1719 2009-08-14 Pavel Roskin <proski@gnu.org>
1720
1721 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
1722 ABS and APPLE_CC.
1723 * boot/i386/pc/diskboot.S: Likewise.
1724 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
1725 sectors allow compilation on MacOSX.
1726 * conf/i386-pc.rmk: Enable unconditional compilation of
1727 lnxboot.img.
1728
1729 2009-08-13 Colin Watson <cjwatson@ubuntu.com>
1730
1731 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
1732 * util/grub.d/00_header.in: Enter interruptible sleep if
1733 GRUB_HIDDEN_TIMEOUT is set.
1734
1735 2009-08-13 Yves Blusseau <blusseau@zetam.org>
1736
1737 * include/grub/symbol.h: Add the LOCAL macro.
1738 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
1739 starting with "L_".
1740
1741 2009-08-13 Pavel Roskin <proski@gnu.org>
1742
1743 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
1744 any modern compilers we support.
1745
1746 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
1747 Use local labels starting with "L_" so that Apple assembler
1748 knows they are local.
1749
1750 2009-08-10 Robert Millan <rmh.grub@aybabtu.com>
1751
1752 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
1753 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
1754 (bsd_kernel_types): ... this enum.
1755
1756 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
1757 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
1758 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
1759
1760 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
1761 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
1762 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
1763 messages.
1764
1765 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
1766
1767 * util/grub-dumpdevtree: Moved from here ...
1768 * util/i386/efi/grub-dumpdevtree: ... to here.
1769 (hexify): New function. Converts a string to its hex version.
1770 Generate hex versions of "efi" and "device-properties" by calling
1771 hexify() on the ASCII strings rather than by hardcoding numbers.
1772
1773 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
1774
1775 * fs/jfs.c: Update copyright year.
1776
1777 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
1778
1779 * util/grub.d/00_header.in: Fix a comment.
1780 * util/grub.d/10_linux.in: Likewise.
1781 * util/grub.d/10_windows.in: Likewise.
1782 * util/grub.d/10_hurd.in: Likewise.
1783
1784 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
1785
1786 * util/grub-mkconfig.in: Allow the user to specify the used font
1787 with GRUB_FONT.
1788
1789 2009-08-08 Pavel Roskin <proski@gnu.org>
1790
1791 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
1792 available, xfs.mod needs it now.
1793
1794 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
1795 the "g" modifier in sed when the intention is to strip something
1796 once. This fixes comparison of kernels with multiple dashes.
1797
1798 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
1799 on it. Add missing space before closing bracket. Fix
1800 misleading formatting.
1801
1802 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
1803
1804 * docs/grub.texi: Major overhaul. Remove all sections that are
1805 specific to GRUB Legacy, or mostly composed of Legacy-specific
1806 information.
1807
1808 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
1809
1810 * docs/version.texi: New file. Provides version information for
1811 grub.texi.
1812
1813 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
1814
1815 * docs/grub.texi: Update CVS information to SVN.
1816 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
1817
1818 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
1819
1820 * util/grub-mkconfig.in: Remove a wrong `fi'.
1821
1822 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
1823
1824 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
1825 (grub_jfs_uuid): New function.
1826 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
1827
1828 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
1829
1830 * util/grub-mkconfig_lib.in (font_path): Move the functionality
1831 of it to ...
1832 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
1833 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
1834
1835 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
1836
1837 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
1838 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
1839 Update all users.
1840
1841 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
1842 not just "vmlinu[zx]".
1843 Moved from here ...
1844 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
1845 all users.
1846
1847 * util/grub.d/10_linux.in (find_latest): Moved from here ...
1848 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
1849 all users.
1850
1851 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
1852
1853 * util/grub.d/10_freebsd.in: Use an absolute device path for
1854 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
1855
1856 2009-08-06 Felix Zielcke <fzielcke@z-51.de>
1857
1858 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
1859 handling of multiple abstraction modules.
1860
1861 2009-08-04 Robert Millan <rmh.grub@aybabtu.com>
1862
1863 Fix a bug resulting in black screen when loading Linux using a
1864 packed video mode.
1865
1866 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
1867 function.
1868
1869 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
1870 (grub_vbe_bios_getset_dac_palette_width): New function.
1871 (grub_vbe_bios_get_dac_palette_width)
1872 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
1873 grub_vbe_bios_getset_dac_palette_width()).
1874
1875 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
1876 check for return status.
1877 (grub_vbe_get_video_mode_info): When getting information for a packed
1878 mode (<= 8 bpp), obtain DAC palette width using
1879 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
1880 {red,green,blue}_mark_size.
1881
1882 2009-08-04 Felix Zielcke <fzielcke@z-51.de>
1883
1884 * commands/search.c (options): Fix help output to match actual code.
1885
1886 2009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
1887
1888 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
1889 of homegrown code.
1890
1891 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
1892
1893 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
1894 on XFS or ReiserFS.
1895
1896 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
1897
1898 Support Apple partition map with sector size different from 512 bytes.
1899
1900 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
1901 (apple_partition_map_iterate): Respect 'aheader.blocksize'
1902 and 'apart.partmap_size'.
1903
1904 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
1905 2009-08-01 Robert Millan <rmh.grub@aybabtu.com>
1906
1907 Fix cpuid command.
1908
1909 * commands/i386/cpuid.c (options): New variable.
1910 (grub_cmd_cpuid): Return real error.
1911 (GRUB_MOD_INIT(cpuid)): Declare options.
1912
1913 2009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
1914
1915 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
1916 valid.
1917
1918 2009-07-31 Bean <bean123ch@gmail.com>
1919
1920 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
1921 log2_inode.
1922 (grub_fshelp_node): Move inode field to the end.
1923 (grub_xfs_data): Remove inode field.
1924 (grub_xfs_inode_block): Calculate inode size using sblock.
1925 (grub_xfs_inode_offset): Likewise.
1926 (grub_xfs_read_inode): Calculate inode size using sblock.
1927 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
1928 (grub_xfs_iterate_dir): Calculate inode size using sblock.
1929 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
1930 to match inode size.
1931 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
1932 not accessible when data is null.
1933 (grub_xfs_open): Likewise.
1934
1935 2009-07-31 Bean <bean123ch@gmail.com>
1936
1937 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
1938 Don't change pv->disk if it's already set.
1939
1940 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
1941 (grub_raid_register): ... here.
1942 (grub_raid_rescan): Removed.
1943
1944 * include/grub/raid.h (grub_raid_rescan): Removed.
1945
1946 * util/grub-fstest.c: Remove include file <grub/raid.h>.
1947 (fstest): Replace grub_raid_rescan with module fini function followed
1948 by init function.
1949
1950 * util/grub-probe.c: Add include file <grub/raid.h>.
1951 (probe_raid_level): New function.
1952 (probe): Detect abstraction by walking the disk device, support two
1953 level of abstraction (LVM on RAID) when detecting partition map.
1954
1955 2009-07-31 Pavel Roskin <proski@gnu.org>
1956
1957 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
1958 to grub_zalloc(), it was erroneous.
1959 Reported by Bean <bean123ch@gmail.com>
1960
1961 2009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
1962
1963 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
1964 embedding zone, not only the first one.
1965
1966 2009-07-29 Joe Auricchio <jauricchio@gmail.com>
1967
1968 * term/gfxterm.c (clear_char): New function.
1969 (grub_virtual_screen_setup): Use clear_char.
1970 (scroll_up): Likewise.
1971 (grub_virtual_screen_cls): Likewise.
1972
1973 2009-07-29 Felix Zielcke <fzielcke@z-51.de>
1974
1975 * util/deviceiter.c (get_acceleraid_disk_name): New static
1976 function.
1977 (grub_util_iterate_devices): Handle Accelraid devices.
1978 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
1979
1980 2009-07-28 Robert Millan <rmh.grub@aybabtu.com>
1981
1982 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
1983 separator for the suggested gfxpayload string (';' collides with the
1984 parser and needs escaping).
1985
1986 2009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
1987
1988 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
1989 Clear direction flag before jumping to OS.
1990 (grub_multiboot2_real_boot): Likewise.
1991
1992 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
1993
1994 * util/i386/pc/grub-install: Fix parsing of --disk-module
1995 option.
1996
1997 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
1998
1999 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
2000 when embedding.
2001
2002 2009-07-26 Felix Zielcke <fzielcke@z-51.de>
2003
2004 * util/grub-mkconfig.in (package_version): New variable.
2005 Use it do display the version.
2006
2007 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
2008
2009 * kern/file.c (grub_file_open): Revert to previous check with
2010 grub_errno.
2011
2012 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
2013
2014 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
2015 from help line. It's out of sync with code.
2016
2017 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
2018
2019 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
2020 entries on failed boot.
2021
2022 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
2023
2024 * kern/file.c (grub_file_open): Fix an error check.
2025
2026 2009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
2027
2028 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
2029 partition map couldn't be identified.
2030
2031 2009-07-23 Pavel Roskin <proski@gnu.org>
2032
2033 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
2034 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
2035 case of little endian words becomes just an optimization.
2036 Respect const modifier.
2037 (md5_final): Use code that doesn't depend on endianness.
2038
2039 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
2040 to avoid loss of upper bits if align is unsigned and shorter
2041 than addr.
2042
2043 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
2044
2045 UUID support for UFS
2046
2047 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
2048 (grub_ufs_uuid): New function.
2049 (grub_ufs_fs): add .uuid
2050
2051 2009-07-21 Pavel Roskin <proski@gnu.org>
2052
2053 * kern/dl.c (grub_dl_check_header): Make static.
2054
2055 2009-07-21 Felix Zielcke <fzielcke@z-51.de>
2056
2057 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
2058 add drivemap for Vista. It breaks Windows 7.
2059
2060 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
2061
2062 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
2063 128 bytes
2064
2065 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
2066
2067 Add BFS support
2068
2069 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
2070 (grub_fstest_SOURCES): Likewise.
2071 (pkglib_MODULES): Add befs.mod.
2072 (befs_mod_SOURCES): New variable.
2073 (befs_mod_CFLAGS): Likewise.
2074 (befs_mod_LDFLAGS): Likewise.
2075 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
2076 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
2077 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
2078 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
2079 (grub_setup_SOURCES): Likewise.
2080 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
2081 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
2082 (grub_setup_SOURCES): Likewise.
2083 * fs/befs.c: New file.
2084 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
2085 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
2086 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
2087 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
2088 (B_KEY_INDEX_ALIGN): New declaration.
2089 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
2090 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
2091 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
2092 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
2093 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
2094 (grub_afs_mount) [MODE_BFS]: Likewise.
2095 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
2096 (grub_afs_fs): Use GRUB_AFS_FSNAME
2097 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
2098 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
2099 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
2100 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
2101
2102 2009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
2103
2104 * util/getroot.c (find_root_device): Add support for MacOSX.
2105 * util/hostdisk.c: Likewise.
2106
2107 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
2108
2109 * font/font.c (find_glyph): Check whether a font is present to avoid
2110 segmentation fault.
2111
2112 2009-07-20 Joe Auricchio <jauricchio@gmail.com>
2113
2114 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
2115
2116 2009-07-20 Pavel Roskin <proski@gnu.org>
2117
2118 * configure.ac: Trim excessively wordy excuses.
2119
2120 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
2121
2122 Add symlink, mtime and label support to AtheFS.
2123
2124 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
2125 (grub_afs_iterate_dir): Handle symlinks.
2126 (grub_afs_open): Use grub_afs_read_symlink.
2127 (grub_afs_dir): Likewise.
2128 Pass mtime.
2129 (grub_afs_label): New function.
2130 (grub_afs_fs): Add grub_afs_label.
2131 (grub_afs_read_symlink): New function.
2132
2133 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
2134
2135 Fix AtheFS support.
2136
2137 * fs/afs.c: Fix comments style.
2138 (grub_afs_blockrun): Declare as packed.
2139 (grub_afs_datastream): Likewise.
2140 (grub_afs_bnode): Likewise.
2141 (grub_afs_btree): Likewise.
2142 (grub_afs_sblock): Likewise.
2143 Declare `name' as char.
2144 (grub_afs_inode): Declare as packed.
2145 Change void *vnode to grub_uint32_t unused.
2146 (grub_afs_iterate_dir): Check that key_size is positive.
2147 (grub_afs_mount): Don't read superblock twice.
2148 (grub_afs_dir): Don't free node in case of error,
2149 grub_fshelp_find_file already handles this.
2150 (grub_afs_open): Likewise.
2151
2152 2009-07-19 Pavel Roskin <proski@gnu.org>
2153
2154 * Makefile.in: Remove LIBLZO and enable_lzo.
2155 * conf/i386-pc.rmk: Remove lzo support.
2156 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
2157 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
2158 support.
2159 * kern/i386/pc/lzo1x.S: Remove.
2160 * kern/i386/pc/startup.S: Remove lzo support.
2161 * util/i386/pc/grub-mkimage.c: Likewise.
2162
2163 2009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
2164
2165 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
2166 * fs/xfs.c (grub_xfs_dir): Likewise.
2167 * fs/afs.c (grub_afs_dir): Likewise.
2168 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
2169 (grub_iso9660_open): Likewise.
2170 * fs/jfs.c (grub_jfs_open): Likewise.
2171 * fs/ext2.c (grub_ext2_dir): Likewise.
2172 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
2173 * script/sh/lexer.c (grub_script_yylex): Likewise.
2174
2175 2009-07-16 Pavel Roskin <proski@gnu.org>
2176
2177 * configure.ac: Never add "-c" to CFLAGS.
2178
2179 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
2180
2181 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
2182 grub_cv_cc_efiemu should be used.
2183
2184 * configure.ac: Typo fixes.
2185
2186 * kern/mm.c (grub_zalloc): New function.
2187 (grub_debug_zalloc): Likewise.
2188 * include/grub/mm.h: Declare grub_zalloc() and
2189 grub_debug_zalloc().
2190 * util/misc.c (grub_zalloc): New function.
2191 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
2192 instead of grub_malloc(), remove unneeded initializations.
2193 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
2194 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
2195 * commands/parttool.c (grub_cmd_parttool): Likewise.
2196 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
2197 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
2198 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
2199 * disk/usbms.c (grub_usbms_finddevs): Likewise.
2200 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
2201 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
2202 (grub_cmd_efiemu_pnvram): Likewise.
2203 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
2204 * fs/iso9660.c (grub_iso9660_mount): Likewise.
2205 (grub_iso9660_iterate_dir): Likewise.
2206 * fs/jfs.c (grub_jfs_opendir): Likewise.
2207 * fs/ntfs.c (list_file): Likewise.
2208 (grub_ntfs_mount): Likewise.
2209 * kern/disk.c (grub_disk_open): Likewise.
2210 * kern/dl.c (grub_dl_load_core): Likewise.
2211 * kern/elf.c (grub_elf_file): Likewise.
2212 * kern/env.c (grub_env_context_open): Likewise.
2213 (grub_env_set): Likewise.
2214 (grub_env_set_data_slot): Likewise.
2215 * kern/file.c (grub_file_open): Likewise.
2216 * kern/fs.c (grub_fs_blocklist_open): Likewise.
2217 * loader/i386/multiboot.c (grub_module): Likewise.
2218 * loader/xnu.c (grub_xnu_create_key): Likewise.
2219 (grub_xnu_create_value): Likewise.
2220 * normal/main.c (grub_normal_add_menu_entry): Likewise.
2221 (read_config_file): Likewise.
2222 * normal/menu_entry.c (make_screen): Likewise.
2223 * partmap/sun.c (sun_partition_map_iterate): Likewise.
2224 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
2225 * script/sh/script.c (grub_script_parse): Likewise.
2226 * video/bitmap.c (grub_video_bitmap_create): Likewise.
2227 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
2228 * video/readers/png.c (grub_png_output_byte): Likewise.
2229 (grub_video_reader_png): Likewise.
2230
2231 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
2232
2233 Enable all targets that can be built by default
2234
2235 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
2236 grub-mkfont and grub-fstest if they can be built
2237
2238 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
2239
2240 Fix hang and segmentation fault in grub-emu-usb
2241
2242 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
2243 * util/usb.c (grub_libusb_devices): likewise
2244 (grub_libusb_init): rename to ...
2245 (GRUB_MOD_INIT (libusb)):...this
2246 (grub_libusb_fini): rename to ..
2247 (GRUB_MOD_FINI (libusb)):...this
2248 * disk/usbms.c (grub_usbms_transfer): fix retry logic
2249 * include/grub/disk.h (grub_raid_init): removed, it's useless
2250 (grub_raid_fini): likewise
2251 (grub_lvm_init): likewise
2252 (grub_lvm_fini): likewise
2253 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
2254 by grub_init_all
2255
2256 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
2257
2258 Fix libusb
2259
2260 * Makefile.in (LIBUSB): new macro
2261 * genmk.rb (Utility/print_tail): new method
2262 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
2263 (top level): call util.print_tail at the end.
2264
2265 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
2266
2267 Make FreeBSD accept zpool.cache
2268
2269 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
2270 type is /boot/zfs/zpool.cache
2271
2272 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
2273
2274 Fix 64-bit efiemu
2275
2276 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
2277 correct wrong typedef
2278 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
2279
2280 2009-07-15 Pavel Roskin <proski@gnu.org>
2281
2282 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
2283 * kern/disk.c (struct grub_disk_cache): Likewise.
2284
2285 * commands/probe.c (options): Typo fix.
2286
2287 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
2288 Increase to 0x5a to accommodate FAT32. Adjust other offsets
2289 accordingly.
2290 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
2291
2292 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
2293 the end of "Error" to make the message more readable.
2294
2295 * boot/i386/pc/boot.S (kernel_segment): Remove.
2296 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
2297 for destination.
2298
2299 * boot/i386/pc/boot.S (boot_version): Remove.
2300 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
2301 Remove.
2302
2303 * include/grub/i386/pc/boot.h: Sort all offsets.
2304 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
2305 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
2306 * boot/i386/pc/boot.S: Assert location of every offset listed in
2307 include/grub/i386/pc/boot.h.
2308
2309 2009-07-13 Pavel Roskin <proski@gnu.org>
2310
2311 * include/grub/i386/coreboot/machine.h: Rename
2312 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
2313 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
2314 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
2315
2316 * kern/dl.c: Force native word size to suppress warnings when
2317 compiling grub-emu.
2318
2319 * kern/device.c (grub_device_iterate): Change struct part_ent to
2320 hold the name, not a pointer to it. Use one grub_malloc() per
2321 partition, not two. Free partition_name if grub_malloc() fails.
2322 Set ents to NULL only before grub_partition_iterate() is called.
2323
2324 2009-07-11 Bean <bean123ch@gmail.com>
2325
2326 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
2327 childname.
2328
2329 2009-07-10 Bean <bean123ch@gmail.com>
2330 2009-07-10 Robert Millan <rmh.grub@aybabtu.com>
2331
2332 * kern/ieee1275/openfw.c (grub_children_iterate)
2333 (grub_devalias_iterate): Fix size evaluation for property or path
2334 strings, which was broken since r2132.
2335
2336 2009-07-07 Pavel Roskin <proski@gnu.org>
2337
2338 * commands/search.c (search_file): Merge into ...
2339 (search_fs): ... this. Accept search type as argument.
2340 (grub_cmd_search): Pass search type to search_fs().
2341
2342 * include/grub/util/console.h: New file.
2343 * util/console.c: Use it instead of grub/machine/console.h.
2344 * util/grub-emu.c: Likewise.
2345
2346 * lib/arg.c (find_long_option): Remove.
2347 (find_long): Add `len' argument, make `s' const char *.
2348 (grub_arg_parse): Parse long options in place, not in a
2349 temporary buffer.
2350
2351 2009-07-06 Pavel Roskin <proski@gnu.org>
2352
2353 * commands/search.c (search_fs): Fix potential NULL pointer
2354 dereference.
2355
2356 * commands/search.c (search_fs): Replace QUID macro with quid_fn
2357 function pointer.
2358
2359 2009-07-06 Daniel Mierswa <impulze@impulze.org>
2360
2361 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
2362 comparison.
2363
2364 2009-07-05 Pavel Roskin <proski@gnu.org>
2365
2366 * include/grub/i386/linux.h (struct linux_kernel_params):
2367 Restore padding3, it's still needed.
2368
2369 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
2370 FreeBSD.
2371 * util/osdetect.lua: Likewise.
2372
2373 2009-07-05 Bean <bean123ch@gmail.com>
2374
2375 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
2376
2377 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
2378 (grub_lua_getenv): Likewise.
2379 (grub_lua_setenv): Likewise.
2380 (save_errno): New function.
2381 (push_result): Likewise.
2382 (grub_lua_enum_device): Likewise.
2383 (grub_lua_enum_file): Likewise.
2384 (grub_lua_file_open): Likewise.
2385 (grub_lua_file_close): Likewise.
2386 (grub_lua_file_seek): Likewise.
2387 (grub_lua_file_read): Likewise.
2388 (grub_lua_file_getline): Likewise.
2389 (grub_lua_file_getsize): Likewise.
2390 (grub_lua_file_getpos): Likewise.
2391 (grub_lua_file_eof): Likewise.
2392 (grub_lua_file_exist): Likewise.
2393 (grub_lua_add_menu): Likewise.
2394
2395 * script/lua/grub_lua.h (isupper): New inline function.
2396 (islower): Likewise.
2397 (ispunct): Likewise.
2398 (isxdigit): Likewise.
2399 (strcspn): Change to normal function.
2400 (strpbkr): New function declaration.
2401 (memchr): Likewise.
2402
2403 * script/lua/grub_main.c (scan_str): New function.
2404 (strcspn): Likewise.
2405 (strpbrk): Likewise.
2406 (memchr): Likewise.
2407
2408 * script/lua/linit.c (lualibs): Enable the string library.
2409
2410 * util/osdetect.lua: New file.
2411
2412 2009-07-04 Robert Millan <rmh.grub@aybabtu.com>
2413
2414 * include/grub/i386/linux.h (struct linux_kernel_params): Add
2415 `capabilities' member.
2416
2417 2009-07-02 Pavel Roskin <proski@gnu.org>
2418
2419 * genparttoollist.sh: Add missing newline at the end.
2420
2421 2009-07-01 Pavel Roskin <proski@gnu.org>
2422
2423 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
2424
2425 * util/hostdisk.c (open_device): Remove `const' from
2426 `sysctl_size', as sysctlbyname() can change it (in this case it
2427 doesn't actually happen).
2428
2429 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
2430 using signed long int constants.
2431
2432 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
2433 constant to avoid a warning on FreeBSD.
2434
2435 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
2436 where it's needed.
2437
2438 * Makefile.in: Install include/grub/machine symlink.
2439
2440 * Makefile.in: When installing symlinks, use "cp -fR", which
2441 works on FreeBSD and MacOSX.
2442 From Yves Blusseau <cl7m42e02@sneakemail.com>
2443
2444 * kern/dl.c (grub_dl_resolve_symbol): Make static.
2445 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
2446
2447 * util/misc.c: Move grub_reboot() and grub_halt() ...
2448 * util/grub-emu.c: ... here. Make main_env static.
2449 * include/grub/util/misc.h: Remove main_env.
2450
2451 * kern/mm.c: Use correct format to print size_t.
2452
2453 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
2454 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
2455 * kern/powerpc/dl.c: Likewise.
2456 * kern/sparc64/dl.c: Likewise.
2457 * kern/x86_64/dl.c: Likewise.
2458
2459 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
2460
2461 Fix grub-emu build on sparc64-ieee1275.
2462
2463 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
2464 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
2465
2466 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
2467
2468 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
2469 (grub_reboot, grub_halt): New functions.
2470
2471 * util/i386/pc/misc.c: Delete. Update all users.
2472 * util/sparc64/ieee1275/misc.c: Likewise.
2473 * util/powerpc/ieee1275/misc.c: Likewise.
2474
2475 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
2476
2477 * conf/i386.rmk (setjmp_mod_SOURCES)
2478 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
2479 * conf/common.rmk (setjmp_mod_SOURCES)
2480 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
2481 to use $(target_cpu).
2482 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
2483 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
2484 * conf/powerpc-ieee1275.rmk: Likewise.
2485 * conf/sparc64-ieee1275.rmk: Likewise.
2486
2487 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
2488 $(target_cpu) for kern/$(target_cpu)/dl.c.
2489 * conf/i386-efi.rmk: Likewise.
2490 * conf/i386-ieee1275.rmk: Likewise.
2491 * conf/x86_64-efi.rmk: Likewise.
2492 * conf/i386-coreboot.rmk: Likewise.
2493 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
2494 $(target_cpu) for kern/$(target_cpu)/dl.c and for
2495 kern/$(target_cpu)/cache.S.
2496 * conf/sparc64-ieee1275.rmk: Likewise.
2497
2498 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
2499
2500 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
2501 type to `grub_uint8_t', and adjust `padding9' accordingly.
2502
2503 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
2504
2505 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
2506
2507 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
2508 assembly in final jump, using register constraints.
2509
2510 (grub_linux_boot): For text mode, initialize `have_vga' using
2511 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
2512
2513 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
2514 right before the final jump.
2515
2516 Set `video_mode' to 0x3.
2517
2518 Document initialization of `video_page', `video_mode' and
2519 `video_ega_bx'.
2520
2521 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
2522
2523 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
2524 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
2525 and set GRUB_LINUX_FLAG_QUIET appropriately.
2526
2527 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
2528
2529 Fix build on Debian / sparc.
2530
2531 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
2532
2533 2009-06-28 Pavel Roskin <proski@gnu.org>
2534
2535 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
2536 fix a warning.
2537
2538 * util/grub.d/10_linux.in: Match SUSE style initrd names.
2539
2540 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
2541
2542 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
2543 `err'.
2544
2545 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
2546
2547 Revert r2338.
2548
2549 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
2550 file can't be opened. grub_file_open() is already supposed to set
2551 grub_errno / grub_errmsg appropriately.
2552 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
2553
2554 2009-06-27 Pavel Roskin <proski@gnu.org>
2555 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
2556
2557 * include/grub/dl.h: Include grub/elf.h.
2558 (struct grub_dl): Add symtab field.
2559 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
2560 GRUB_MODULES_MACHINE_READONLY.
2561 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
2562 of the header for read-only modules.
2563 (grub_dl_unload): Free mod->symtab for read-only modules.
2564 * kern/i386/dl.c: Use mod->symtab.
2565 * kern/powerpc/dl.c: Likewise.
2566 * kern/sparc64/dl.c: Likewise.
2567 * kern/x86_64/dl.c: Likewise.
2568
2569 * conf/i386-qemu.rmk: New file.
2570 * kern/i386/qemu/startup.S: Likewise.
2571 * kern/i386/qemu/mmap.c: Likewise.
2572 * boot/i386/qemu/boot.S: Likewise.
2573 * include/grub/i386/qemu/time.h: Likewise.
2574 * include/grub/i386/qemu/serial.h: Likewise.
2575 * include/grub/i386/qemu/kernel.h: Likewise.
2576 * include/grub/i386/qemu/console.h: Likewise.
2577 * include/grub/i386/qemu/boot.h: Likewise.
2578 * include/grub/i386/qemu/init.h: Likewise.
2579 * include/grub/i386/qemu/machine.h: Likewise.
2580 * include/grub/i386/qemu/loader.h: Likewise.
2581 * include/grub/i386/qemu/memory.h: Likewise.
2582
2583 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
2584 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
2585 [qemu] (pkglib_IMAGES): Add `boot.img'.
2586 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
2587 [qemu] (boot_img_FORMAT): New variables.
2588 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
2589 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
2590 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
2591 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
2592 [qemu] (kernel_img_FORMAT): New variables.
2593
2594 * configure.ac: Recognise `i386-qemu'.
2595
2596 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
2597 (for no compression).
2598 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
2599 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
2600 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
2601 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
2602 ifdefs).
2603
2604 2009-06-27 Pavel Roskin <proski@gnu.org>
2605
2606 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
2607 read.
2608 * efiemu/prepare32.c: Likewise.
2609 * efiemu/prepare64.c: Likewise.
2610
2611 2009-06-26 Pavel Roskin <proski@gnu.org>
2612
2613 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
2614 * include/grub/elf.h: Define symbols without "32" or "64" based
2615 on GRUB_TARGET_WORDSIZE.
2616 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
2617 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
2618 ELF definitions.
2619 * efiemu/loadcore64.c: Likewise.
2620 * loader/i386/bsd32.c: Likewise.
2621 * loader/i386/bsd64.c: Likewise.
2622 * kern/dl.c: Remove own ELF definitions.
2623 * util/i386/efi/grub-mkimage.c: Likewise.
2624
2625 2009-06-23 Robert Millan <rmh.grub@aybabtu.com>
2626
2627 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
2628 segment 0x0 unconditionally, because the reference generated by
2629 GAS is an absolute address.
2630
2631 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
2632
2633 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
2634 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
2635
2636 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
2637
2638 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
2639 indexes. Check for -f explicitly.
2640 (search_file): Improve error message.
2641 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
2642
2643 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
2644
2645 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
2646 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
2647
2648 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
2649
2650 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
2651 * conf/i386-ieee1275.rmk: Likewise.
2652 * conf/i386-coreboot.rmk: Likewise.
2653
2654 * kern/i386/pc/startup.S (grub_stop): Remove function.
2655 * kern/i386/ieee1275/startup.S: Likewise.
2656 * kern/i386/coreboot/startup.S: Likewise.
2657 * kern/i386/misc.S (grub_stop): New function.
2658
2659 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
2660
2661 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
2662 * kern/i386/realmode.S (real_to_prot): ... to here.
2663
2664 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
2665
2666 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
2667 with `kernel.img'.
2668 (kernel_elf_SOURCES): Rename to ...
2669 (kernel_img_SOURCES): ... this.
2670 (kernel_elf_HEADERS): Rename to ...
2671 (kernel_img_HEADERS): ... this. Update all users.
2672 (kernel_elf_ASFLAGS): Rename to ...
2673 (kernel_img_ASFLAGS): ... this.
2674 (kernel_elf_CFLAGS): Rename to ...
2675 (kernel_img_CFLAGS): ... this.
2676 (kernel_elf_LDFLAGS): Rename to ...
2677 (kernel_img_LDFLAGS): ... this.
2678 * conf/i386-coreboot.rmk: Likewise.
2679 * conf/powerpc-ieee1275.rmk: Likewise.
2680
2681 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
2682 with "kernel.img".
2683
2684 2009-06-21 Pavel Roskin <proski@gnu.org>
2685
2686 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
2687 to match nested functions.
2688 * loader/sparc64/ieee1275/linux.c: Likewise.
2689
2690 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
2691
2692 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
2693
2694 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
2695 all i386 platforms.
2696
2697 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
2698
2699 Fix asm file handling on ELF, and remove workarounds.
2700
2701 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
2702 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
2703 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
2704 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
2705
2706 2009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
2707
2708 Load BSD ELF modules
2709
2710 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
2711 and loader/i386/bsd64.c
2712 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
2713 (FREEBSD_MODTYPE_ELF_MODULE): New definition
2714 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
2715 (grub_freebsd_load_elfmodule32): New declaration
2716 (grub_freebsd_load_elfmoduleobj64): Likewise
2717 (grub_freebsd_load_elf_meta32): Likewise
2718 (grub_freebsd_load_elf_meta64): Likewise
2719 (grub_freebsd_add_meta): Likewise
2720 (grub_freebsd_add_meta_module): Likewise
2721 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
2722 (grub_freebsd_add_meta_module): Likewise and move module-specific
2723 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
2724 (grub_cmd_freebsd): Add elf-kernel specific parts
2725 based on grub_freebsd_add_meta_module
2726 (grub_cmd_freebsd_module): Add type parsing moved from
2727 grub_freebsd_add_meta_module
2728 (grub_cmd_freebsd_module_elf): New function
2729 (cmd_freebsd_module_elf): New variable
2730 (GRUB_MOD_INIT): Register freebsd_module_elf
2731 * loader/i386/bsd32.c: New file
2732 * loader/i386/bsd64.c: Likewise
2733 * loader/i386/bsdXX.c: Likewise
2734 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
2735 (grub_elf64_load): Likewise
2736 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
2737 All users updated
2738 (grub_elf64_load_hook_t): Likewise
2739
2740 2009-06-21 Colin Watson <cjwatson@ubuntu.com>
2741
2742 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
2743 variable.
2744 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
2745 don't write a menu entry for recovery mode.
2746
2747 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
2748
2749 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
2750 after it's no longer needed.
2751
2752 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
2753
2754 * include/grub/i386/loader.h (grub_linux_prot_size)
2755 (grub_linux_tmp_addr, grub_linux_real_addr)
2756 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
2757 GRUB_MACHINE_PCBIOS.
2758 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
2759 common grub_util_info() call to ...
2760 (generate_image): ... here.
2761 Fix use of uninitialized memory, comparison of signed with
2762 unsigned integers and memory leak.
2763 Remove bogus module address message.
2764
2765 2009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
2766
2767 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
2768 grub_raid_register
2769 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
2770
2771 2009-06-19 Pavel Roskin <proski@gnu.org>
2772
2773 * configure.ac: Remove stray AC_MSG_CHECKING.
2774
2775 2009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
2776
2777 * disk/scsi.c (grub_scsi_open): use continue instead of big if
2778
2779 2009-06-18 Pavel Roskin <proski@gnu.org>
2780
2781 * conf/common.rmk: Add fs_file.mod.
2782 * disk/fs_file.c: New file.
2783 * include/grub/disk.h (enum grub_disk_dev_id): Add
2784 GRUB_DISK_DEVICE_FILE_ID.
2785
2786 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
2787
2788 Fix build with Apple's toolchain. Part 2
2789
2790 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
2791 a fake start
2792
2793 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
2794
2795 Fix build with Apple's toolchain. Part 1
2796
2797 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
2798 for long calls
2799 * configure.ac: remove a leftover AC_MSG_RESULT
2800 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
2801 Apple's toolchain
2802
2803 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
2804
2805 Fix warnings
2806
2807 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
2808 (decomp_block): initialize ch
2809 use grub_memcpy instead of memcpy
2810
2811 2009-06-17 Pavel Roskin <proski@gnu.org>
2812
2813 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
2814 version, use declarations needed to use vga_text as the startup
2815 console.
2816
2817 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
2818 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
2819 the kernel.
2820 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
2821 and grub_at_keyboard_fini(), it's done on module load and
2822 unload.
2823
2824 2009-06-17 Felix Zielcke <fzielcke@z-51.de>
2825
2826 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
2827 file can't be found.
2828 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
2829
2830 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
2831
2832 Fix newline handling
2833
2834 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
2835 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
2836 (grub_script_yylex): don't segfault on unterminated script
2837 newline terminates command and variable
2838
2839 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
2840
2841 avoid double grub_adjust_range call. Bug reported by David Simner
2842
2843 * kern/disk.c (grub_disk_write): change to raw disk access before
2844 calling disk_read
2845
2846 2009-06-17 Colin Watson <cjwatson@ubuntu.com>
2847
2848 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
2849 spaces, for the benefit of help2man.
2850 * util/i386/efi/grub-mkimage.c (usage): Likewise.
2851
2852 2009-06-16 Pavel Roskin <proski@gnu.org>
2853
2854 * kern/i386/halt.c: Include grub/machine/init.h.
2855 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
2856
2857 2009-06-16 Felix Zielcke <fzielcke@z-51.de>
2858
2859 * util/grub.d/30_os-prober.in: Use ${root} in the generated
2860 drivemap menuentry.
2861
2862 2009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
2863
2864 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
2865 `echo' command.
2866
2867 2009-06-16 Pavel Roskin <proski@gnu.org>
2868
2869 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
2870 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
2871 save %dx, we only need %dl and we never change it.
2872 * boot/i386/pc/cdboot.S: Don't set the root drive.
2873 * boot/i386/pc/pxeboot.S: Likewise.
2874 * include/grub/i386/pc/boot.h: Remove
2875 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
2876 GRUB_BOOT_MACHINE_DRIVE_CHECK.
2877 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
2878 * kern/i386/pc/init.c (make_install_device): Remove references
2879 to grub_root_drive.
2880 * kern/i386/pc/startup.S: Likewise.
2881 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
2882
2883 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
2884
2885 xnu_uuid command
2886
2887 * commands/xnu_uuid.c: new file
2888 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
2889 (xnu_uuid_mod_SOURCES): new variable
2890 (xnu_uuid_mod_CFLAGS): likewise
2891 (xnu_uuid_mod_LDFLAGS): likewise
2892 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
2893 * conf/i386-ieee1275.rmk: likewise
2894 * conf/i386-pc.rmk: likewise
2895 * conf/powerpc-ieee1275.rmk: likewise
2896 * conf/sparc64-ieee1275.rmk: likewise
2897 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
2898
2899 2009-06-16 Pavel Roskin <proski@gnu.org>
2900
2901 * configure.ac: Avoid '==' in test command, it's not portable.
2902
2903 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
2904
2905 Probe command
2906
2907 * commands/probe.c: new file
2908 * conf/common.rmk (pkglib_MODULES): add probe.mod
2909 (probe_mod_SOURCES): new variable
2910 (probe_mod_CFLAGS): likewise
2911 (probe_mod_LDFLAGS): likewise
2912 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
2913 * conf/i386-ieee1275.rmk: likewise
2914 * conf/i386-pc.rmk: likewise
2915 * conf/powerpc-ieee1275.rmk: likewise
2916 * conf/sparc64-ieee1275.rmk: likewise
2917
2918 2009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
2919
2920 Fix handling of string like \"hello\" and "a
2921 b"
2922
2923 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
2924 (grub_script_yylex): fix parsing of quoting, escaping and newline
2925
2926 2009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
2927
2928 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
2929 handling
2930
2931 2009-06-13 Jun Inoue <jun.lambda@gmail.com>
2932
2933 * util/grub-mkconfig.in: Fix parsing of --output option.
2934
2935 2009-06-12 Pavel Roskin <proski@gnu.org>
2936
2937 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
2938 genmk.rb don't need to be generated or installed.
2939
2940 2009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
2941
2942 * commands/i386/pc/drivemap_int13h.S: add more comments
2943
2944 2009-06-11 Pavel Roskin <proski@gnu.org>
2945
2946 * Makefile.in (uninstall): Uninstall manuals.
2947
2948 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
2949 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
2950 and update-grub_lib in two places.
2951 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
2952
2953 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
2954 a compiler warning.
2955
2956 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
2957 `entry_lo' to fix variable shadowing.
2958
2959 2009-06-11 Christian Franke <franke@computer.org>
2960
2961 * kern/misc.c (__enable_execute_stack): Add missing return type
2962 to prevent gcc warning.
2963
2964 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
2965
2966 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
2967
2968 2009-06-11 Pavel Roskin <proski@gnu.org>
2969
2970 * Makefile.in: Don't rely on any scripts being executable.
2971 Always use $(SHELL) to run shell scripts.
2972
2973 * configure.ac: Always define ___main if using -nostdlib. This
2974 fixes tests on Cygwin.
2975
2976 2009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
2977
2978 UDF fix
2979
2980 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
2981 is in bytes and not in blocks
2982
2983 2009-06-11 Pavel Roskin <proski@gnu.org>
2984
2985 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
2986 warning.
2987
2988 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
2989
2990 * util/grub.d/30_os-prober.in: Fix a comment. Source
2991 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
2992 to set the root device. Place drivemap command in the generated
2993 chain entry.
2994
2995 2009-06-11 Pavel Roskin <proski@gnu.org>
2996
2997 * configure.ac: Remove host_m32. Issues with 64-bit utilities
2998 have long been resolved.
2999
3000 2009-06-11 Colin Watson <cjwatson@ubuntu.com>
3001
3002 * util/grub.d/10_linux.in: Capitalise "Linux".
3003
3004 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
3005
3006 2009-06-11 Pavel Roskin <proski@gnu.org>
3007
3008 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
3009 fix a gcc warning and ensure that the function won't ever exit.
3010
3011 * kern/i386/ieee1275/init.c: Add missing prototype for
3012 grub_stop_floppy().
3013
3014 * loader/ieee1275/multiboot2.c [__i386__]: Include
3015 grub/cpu/multiboot.h.
3016
3017 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
3018 casts to short - they are not portable and cause warnings. Fix
3019 use of uninitialized values in input_buf. Use ARRAY_SIZE.
3020
3021 2009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
3022
3023 Drivemap fixes
3024
3025 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
3026 new function
3027 (grub_get_root_biosnumber_saved): new variable
3028 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
3029 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
3030 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
3031 %dx after the call if necessary
3032 * conf/common.rmk (pkglib_MODULES): remove boot.mod
3033 (boot_mod_SOURCES): remove
3034 (boot_mod_CFLAGS): remove
3035 (boot_mod_LDFLAGS): remove
3036 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
3037 (boot_mod_SOURCES): new variable
3038 (boot_mod_CFLAGS): likewise
3039 (boot_mod_LDFLAGS): likewise
3040 * conf/i386-efi.rmk: likewise
3041 * conf/i386-ieee1275.rmk: likewise
3042 * conf/i386-pc.rmk: likewise
3043 * conf/powerpc-ieee1275.rmk: likewise
3044 * conf/sparc64-ieee1275.rmk: likewise
3045 * conf/x86_64-efi.rmk: likewise
3046 * include/grub/i386/pc/biosnum.h: new file
3047 * lib/i386/pc/biosnum.c: likewise
3048 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
3049 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
3050 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
3051
3052 2009-06-10 Pavel Roskin <proski@gnu.org>
3053
3054 * io/gzio.c (test_header): Don't reuse one buffer for all data.
3055 Use separate variables. Read only the file size at the end, but
3056 not the checksum that we don't use.
3057
3058 * kern/file.c (grub_file_read): Use void pointer for the buffer.
3059 Adjust all callers.
3060
3061 * kern/ieee1275/openfw.c: Remove libc includes.
3062 * kern/ieee1275/cmain.c: Likewise.
3063 * include/grub/ieee1275/ieee1275.h: Likewise.
3064
3065 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
3066 compiler warnings.
3067
3068 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
3069
3070 * Makefile.in: Remove all trailing whitespace.
3071 * conf/i386-pc.rmk: Likewise.
3072 * conf/powerpc-ieee1275.rmk: Likewise.
3073 * conf/sparc64-ieee1275.rmk: Likewise.
3074 * docs/grub.texi: Likewise.
3075 * docs/texinfo.tex: Likewise.
3076 * disk/fs_uuid.c: Likewise.
3077 * disk/lvm.c: Likewise.
3078 * disk/scsi.c: Likewise.
3079 * disk/ata.c: Likewise.
3080 * disk/ieee1275/ofdisk.c: Likewise.
3081 * disk/i386/pc/biosdisk.c: Likewise.
3082 * disk/host.c: Likewise.
3083 * disk/raid.c: Likewise.
3084 * disk/efi/efidisk.c: Likewise.
3085 * disk/usbms.c: Likewise.
3086 * disk/memdisk.c: Likewise.
3087 * disk/loopback.c: Likewise.
3088 * kern/powerpc/dl.c: Likewise.
3089 * kern/device.c: Likewise.
3090 * kern/dl.c: Likewise.
3091 * kern/sparc64/dl.c: Likewise.
3092 * kern/ieee1275/ieee1275.c: Likewise.
3093 * kern/term.c: Likewise.
3094 * kern/fs.c: Likewise.
3095 * kern/i386/dl.c: Likewise.
3096 * kern/i386/pc/startup.S: Likewise.
3097 * kern/i386/pc/init.c: Likewise.
3098 * kern/i386/pc/mmap.c: Likewise.
3099 * kern/i386/pc/lzo1x.S: Likewise.
3100 * kern/i386/ieee1275/init.c: Likewise.
3101 * kern/i386/realmode.S: Likewise.
3102 * kern/i386/tsc.c: Likewise.
3103 * kern/partition.c: Likewise.
3104 * kern/corecmd.c: Likewise.
3105 * kern/file.c: Likewise.
3106 * kern/efi/efi.c: Likewise.
3107 * kern/efi/init.c: Likewise.
3108 * kern/efi/mm.c: Likewise.
3109 * kern/main.c: Likewise.
3110 * kern/err.c: Likewise.
3111 * kern/env.c: Likewise.
3112 * kern/disk.c: Likewise.
3113 * kern/generic/millisleep.c: Likewise.
3114 * kern/generic/rtc_get_time_ms.c: Likewise.
3115 * kern/misc.c: Likewise.
3116 * kern/parser.c: Likewise.
3117 * genmk.rb: Likewise.
3118 * configure.ac: Likewise.
3119 * boot/i386/pc/diskboot.S: Likewise.
3120 * boot/i386/pc/pxeboot.S: Likewise.
3121 * boot/i386/pc/boot.S: Likewise.
3122 * boot/i386/pc/lnxboot.S: Likewise.
3123 * boot/i386/pc/cdboot.S: Likewise.
3124 * parttool/pcpart.c: Likewise.
3125 * video/readers/tga.c: Likewise.
3126 * video/video.c: Likewise.
3127 * video/bitmap.c: Likewise.
3128 * lib/envblk.c: Likewise.
3129 * lib/i386/setjmp.S: Likewise.
3130 * fs/xfs.c: Likewise.
3131 * fs/afs.c: Likewise.
3132 * fs/fat.c: Likewise.
3133 * fs/ntfs.c: Likewise.
3134 * fs/udf.c: Likewise.
3135 * fs/affs.c: Likewise.
3136 * fs/iso9660.c: Likewise.
3137 * fs/hfs.c: Likewise.
3138 * fs/fshelp.c: Likewise.
3139 * fs/ext2.c: Likewise.
3140 * fs/jfs.c: Likewise.
3141 * fs/reiserfs.c: Likewise.
3142 * fs/hfsplus.c: Likewise.
3143 * fs/minix.c: Likewise.
3144 * fs/cpio.c: Likewise.
3145 * fs/sfs.c: Likewise.
3146 * fs/ufs.c: Likewise.
3147 * efiemu/prepare.c: Likewise.
3148 * efiemu/loadcore_common.c: Likewise.
3149 * efiemu/runtime/efiemu.sh: Likewise.
3150 * efiemu/runtime/efiemu.S: Likewise.
3151 * efiemu/runtime/efiemu.c: Likewise.
3152 * efiemu/pnvram.c: Likewise.
3153 * efiemu/main.c: Likewise.
3154 * efiemu/i386/pc/cfgtables.c: Likewise.
3155 * efiemu/i386/loadcore64.c: Likewise.
3156 * efiemu/i386/loadcore32.c: Likewise.
3157 * efiemu/loadcore.c: Likewise.
3158 * efiemu/symbols.c: Likewise.
3159 * efiemu/mm.c: Likewise.
3160 * include/grub/autoefi.h: Likewise.
3161 * include/grub/datetime.h: Likewise.
3162 * include/grub/term.h: Likewise.
3163 * include/grub/hfs.h: Likewise.
3164 * include/grub/lvm.h: Likewise.
3165 * include/grub/i386/tsc.h: Likewise.
3166 * include/grub/i386/linux.h: Likewise.
3167 * include/grub/i386/xnu.h: Likewise.
3168 * include/grub/i386/efiemu.h: Likewise.
3169 * include/grub/i386/pc/biosdisk.h: Likewise.
3170 * include/grub/i386/pc/memory.h: Likewise.
3171 * include/grub/i386/pc/vbe.h: Likewise.
3172 * include/grub/parttool.h: Likewise.
3173 * include/grub/video.h: Likewise.
3174 * include/grub/memory.h: Likewise.
3175 * include/grub/fs.h: Likewise.
3176 * include/grub/partition.h: Likewise.
3177 * include/grub/xnu.h: Likewise.
3178 * include/grub/efi/api.h: Likewise.
3179 * include/grub/efi/pe32.h: Likewise.
3180 * include/grub/efi/memory.h: Likewise.
3181 * include/grub/multiboot.h: Likewise.
3182 * include/grub/usbdesc.h: Likewise.
3183 * include/grub/multiboot2.h: Likewise.
3184 * include/grub/acpi.h: Likewise.
3185 * include/grub/efiemu/efiemu.h: Likewise.
3186 * include/grub/disk.h: Likewise.
3187 * include/grub/ieee1275/ieee1275.h: Likewise.
3188 * include/grub/net.h: Likewise.
3189 * include/grub/machoload.h: Likewise.
3190 * include/grub/macho.h: Likewise.
3191 * include/multiboot.h: Likewise.
3192 * genmoddep.awk: Likewise.
3193 * normal/main.c: Likewise.
3194 * normal/menu_entry.c: Likewise.
3195 * normal/menu_viewer.c: Likewise.
3196 * normal/completion.c: Likewise.
3197 * normal/cmdline.c: Likewise.
3198 * normal/misc.c: Likewise.
3199 * normal/datetime.c: Likewise.
3200 * bus/usb/usbtrans.c: Likewise.
3201 * bus/usb/ohci.c: Likewise.
3202 * bus/usb/uhci.c: Likewise.
3203 * bus/usb/usb.c: Likewise.
3204 * mmap/efi/mmap.c: Likewise.
3205 * mmap/i386/pc/mmap_helper.S: Likewise.
3206 * mmap/i386/pc/mmap.c: Likewise.
3207 * mmap/i386/mmap.c: Likewise.
3208 * mmap/i386/uppermem.c: Likewise.
3209 * mmap/mmap.c: Likewise.
3210 * commands/acpi.c: Likewise.
3211 * commands/echo.c: Likewise.
3212 * commands/blocklist.c: Likewise.
3213 * commands/loadenv.c: Likewise.
3214 * commands/usbtest.c: Likewise.
3215 * commands/boot.c: Likewise.
3216 * commands/parttool.c: Likewise.
3217 * commands/search.c: Likewise.
3218 * commands/cat.c: Likewise.
3219 * commands/i386/pc/play.c: Likewise.
3220 * commands/i386/pc/drivemap.c: Likewise.
3221 * commands/i386/pc/vbeinfo.c: Likewise.
3222 * commands/i386/pc/acpi.c: Likewise.
3223 * commands/i386/pc/vbetest.c: Likewise.
3224 * commands/ls.c: Likewise.
3225 * commands/cmp.c: Likewise.
3226 * commands/test.c: Likewise.
3227 * commands/efi/acpi.c: Likewise.
3228 * commands/gptsync.c: Likewise.
3229 * commands/help.c: Likewise.
3230 * partmap/amiga.c: Likewise.
3231 * partmap/apple.c: Likewise.
3232 * partmap/acorn.c: Likewise.
3233 * partmap/pc.c: Likewise.
3234 * partmap/sun.c: Likewise.
3235 * partmap/gpt.c: Likewise.
3236 * script/sh/lexer.c: Likewise.
3237 * script/sh/function.c: Likewise.
3238 * font/font.c: Likewise.
3239 * font/font_cmd.c: Likewise.
3240 * loader/powerpc/ieee1275/linux.c: Likewise.
3241 * loader/efi/chainloader.c: Likewise.
3242 * loader/multiboot_loader.c: Likewise.
3243 * loader/macho.c: Likewise.
3244 * loader/i386/multiboot.c: Likewise.
3245 * loader/i386/linux.c: Likewise.
3246 * loader/i386/pc/linux.c: Likewise.
3247 * loader/i386/pc/multiboot2.c: Likewise.
3248 * loader/i386/pc/chainloader.c: Likewise.
3249 * loader/i386/pc/xnu.c: Likewise.
3250 * loader/i386/bsd_trampoline.S: Likewise.
3251 * loader/i386/efi/linux.c: Likewise.
3252 * loader/i386/multiboot_elfxx.c: Likewise.
3253 * loader/i386/bsd_helper.S: Likewise.
3254 * loader/i386/bsd.c: Likewise.
3255 * loader/i386/linux_trampoline.S: Likewise.
3256 * loader/i386/xnu_helper.S: Likewise.
3257 * loader/i386/xnu.c: Likewise.
3258 * loader/i386/bsd_pagetable.c: Likewise.
3259 * loader/i386/multiboot_helper.S: Likewise.
3260 * loader/xnu.c: Likewise.
3261 * loader/xnu_resume.c: Likewise.
3262 * io/gzio.c: Likewise.
3263 * term/efi/console.c: Likewise.
3264 * term/terminfo.c: Likewise.
3265 * term/ieee1275/ofconsole.c: Likewise.
3266 * term/i386/pc/serial.c: Likewise.
3267 * term/i386/pc/vesafb.c: Likewise.
3268 * term/i386/pc/vga.c: Likewise.
3269 * term/usb_keyboard.c: Likewise.
3270 * term/gfxterm.c: Likewise.
3271 * aclocal.m4: Likewise.
3272 * util/lvm.c: Likewise.
3273 * util/grub.d/30_os-prober.in: Likewise.
3274 * util/grub.d/10_hurd.in: Likewise.
3275 * util/console.c: Likewise.
3276 * util/grub-macho2img.c: Likewise.
3277 * util/grub-probe.c: Likewise.
3278 * util/hostfs.c: Likewise.
3279 * util/i386/pc/grub-mkimage.c: Likewise.
3280 * util/i386/pc/grub-setup.c: Likewise.
3281 * util/i386/efi/grub-mkimage.c: Likewise.
3282 * util/grub-mkconfig.in: Likewise.
3283 * util/raid.c: Likewise.
3284 * util/resolve.c: Likewise.
3285 * util/grub-mkdevicemap.c: Likewise.
3286 * util/grub-emu.c: Likewise.
3287 * util/getroot.c: Likewise.
3288 * util/hostdisk.c: Likewise.
3289 * util/usb.c: Likewise.
3290 * util/grub-editenv.c: Likewise.
3291 * util/misc.c: Likewise.
3292
3293 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
3294
3295 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
3296 `genparttoollist.sh'.
3297 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
3298 Add `*.sh' to the list find searches for and change `mdate.sh'
3299 to `mdate-sh'.
3300
3301 2009-06-10 Pavel Roskin <proski@gnu.org>
3302
3303 * include/grub/multiboot2.h: Provide compatibility defines for
3304 multiboot2.h.
3305 * include/multiboot2.h: Include stdint.h only if needed, using
3306 angle brackets.
3307 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
3308 grub/multiboot2.h.
3309 * loader/ieee1275/multiboot2.c: Likewise.
3310 * loader/multiboot2.c: Likewise.
3311 * loader/multiboot_loader.c: Likewise.
3312
3313 * configure.ac: Use -nostdlib when probing for the target. It
3314 should not be required to have libc for the target.
3315
3316 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
3317 they fail without libc headers for the target.
3318 * include/grub/powerpc/libgcc.h: Use weak attribute for all
3319 exports.
3320 * include/grub/sparc64/libgcc.h: Likewise. Don't use
3321 preprocessor conditionals.
3322
3323 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
3324 build system doesn't need to be aware of the tar.c internals.
3325
3326 2009-06-09 Michel Hermier <michel.hermier@gmail.com>
3327
3328 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
3329
3330 2009-06-09 Robert Millan <rmh.grub@aybabtu.com>
3331
3332 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
3333 disk limit to 26 for IDE, Virtio, Xen and SCSI.
3334
3335 2009-06-09 Felix Zielcke <fzielcke@z-51.de>
3336
3337 * util/i386/pc/grub-install.in: Change the error message if UUIDs
3338 aren't available if ata.mod gets used.
3339
3340 2009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
3341
3342 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
3343 initialising controller.
3344 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
3345
3346 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
3347
3348 * util/i386/pc/grub-install.in: Add a parameter --disk-module
3349 to choose between ata and biosdisk module on i386-pc.
3350
3351 2009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
3352
3353 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
3354 Subclass and Programming Interface fields in terms of the 3 byte
3355 Class Code register.
3356 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
3357
3358 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
3359 interface is OHCI. Add grub_dprintf for symmetry with
3360 bus/usb/uhci.c.
3361 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
3362 interface is UHCI. Add interf variable for programming
3363 interface. Print interface with class/subclass.
3364
3365 * bus/usb/ohci.c: Set interf with correct field.
3366
3367 * bus/usb/uhci.c: Remove unneeded doubled lines.
3368 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
3369 Remove whitespace inside comment.
3370
3371 2009-06-08 Robert Millan <rmh.grub@aybabtu.com>
3372
3373 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
3374 as fallback an equivalent option without depth.
3375
3376 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
3377
3378 Not fail if unable to retrieve C/H/S on LBA disks
3379
3380 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
3381 if unable to retrieve C/H/S on LBA disks
3382
3383 2009-06-08 Pavel Roskin <proski@gnu.org>
3384
3385 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
3386 about aliasing.
3387
3388 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
3389
3390 * Makefile.in (uninstall): Remove all $lib_DATA files.
3391
3392 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
3393
3394 Bugfix: install on partitionless device
3395
3396 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
3397 is a whole disk
3398
3399 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
3400
3401 * Makefile.in (uninstall): Remove all $include_DATA files.
3402
3403 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
3404
3405 * commands/true.c: New file. Implement the true and false commands.
3406 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
3407 (true_mod_SOURCES): New variable.
3408 (true_mod_CFLAGS): Likewise.
3409 (true_mod_LDFLAGS): Likewise.
3410
3411 2009-06-05 Colin D Bennett <colin@gibibit.com>
3412
3413 Optimized font character lookup using binary search instead of linear
3414 search. Fonts now are required to have the character index ordered by
3415 code point.
3416
3417 * font/font.c (load_font_index): Verify that fonts have ordered
3418 character indices.
3419 (find_glyph): Use binary search instead of linear search to find a
3420 character in a font.
3421
3422 2009-06-05 Michael Scherer <misc@mandriva.org>
3423
3424 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
3425 uses case sensitive btree.
3426 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
3427 only for case insensitive filesystems.
3428
3429 2009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
3430
3431 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
3432 * conf/common.rmk (search_mod_CFLAGS): likewise
3433
3434 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3435
3436 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
3437 compensate a compiler bug
3438
3439 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3440
3441 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
3442 instead of '\b'
3443
3444 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3445
3446 Definitions for creating asm symbols with Apple's CC
3447
3448 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
3449 [APPLE_CC] (VARIABLE): likewise
3450
3451 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3452
3453 Disable lnxboot.img when compiled
3454 with Apple's CC
3455
3456 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
3457 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
3458 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
3459 [! APPLE_CC] (CODE_LENG): skip
3460 [! APPLE_CC] (setup_sects): likewise
3461 [! APPLE_CC]: skip filling
3462
3463 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3464
3465 Address in trampolines based on 32-bit registers when compiled
3466 with Apple's CC
3467
3468 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
3469 for addresses
3470 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
3471
3472 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3473
3474 Avoid aliases when compiling with Apple's CC for PCBIOS machine
3475
3476 * kern/misc.c [APPLE_CC] (memcpy): new function
3477 [APPLE_CC] (memmove): likewise
3478 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
3479 (memcpy): define alias conditionally on !APPLE_CC
3480 (memset): likewise
3481 (abort): likewise
3482 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
3483 APPLE_CC are defined
3484 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
3485 (grub_assert_fail): make prototype conditional
3486
3487 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3488
3489 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
3490
3491 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
3492 grub-macho2img
3493 (CLEANFILES): add grub-macho2img
3494 (grub_macho2img_SOURCES): new variable
3495 * kern/i386/pc/startup.S (bss_start): new variable
3496 (bss_end): likewise
3497 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
3498 * util/grub-macho2img.c: new file
3499
3500 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3501
3502 Use objconv when compiling with Apple's CC
3503
3504 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
3505 (efiemu64.o): likewise
3506 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
3507 when compiling with Apple's CC
3508 (efiemu64_s.o): likewise
3509 * configure.ac: check for objconv when compiling with Apple's CC
3510 * genmk.rb: use objconv for modules when compiled with Apple's CC
3511
3512 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3513
3514 Define segment as well as section when compiling with
3515 Apple's CC
3516
3517 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
3518 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
3519 (efiemu_convert_pointer): likewise
3520 (efiemu_set_virtual_address_map): likewise
3521 (efiemu_convert_pointer): likewise
3522 (efiemu_getcrc32): likewise
3523 (init_crc32_table): likewise
3524 (reflect): likewise
3525 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
3526 (GRUB_MOD_DEP): likewise
3527
3528 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3529
3530 Allow a compilation without -mcmodel=large
3531
3532 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
3533 when compiled without -mcmodel=large
3534 (filter_memory_map): remove memory post 4 GiB when compiled
3535 without -mcmodel=large
3536 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
3537 TARGET_CFLAGS when -mcmodel=large isn't supported
3538
3539 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3540
3541 Remove nested functions in efiemu core
3542
3543 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
3544
3545 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3546
3547 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
3548
3549 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
3550 temporary storage
3551 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
3552 using Apple's CC
3553 (grub_cpu_is_tsc_supported): likewise
3554 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
3555
3556 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3557
3558 Absolute addressing through constant with Apple's cc
3559
3560 * kern/i386/pc/startup.S: Define necessary constants
3561 and address through it when using ABS with Apple's CC
3562 * boot/i386/pc/diskboot.S: likewise
3563 * boot/i386/pc/boot.S: likewise
3564 * boot/i386/pc/lnxboot.S: likewise
3565 * boot/i386/pc/cdboot.S: likewise
3566 * mmap/i386/pc/mmap_helper.S: likewise
3567 * commands/i386/pc/drivemap_int13h.S: likewise
3568
3569 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3570
3571 Check if compiler is apple cc
3572
3573 * Makefile.in (ASFLAGS): new variable
3574 (TARGET_ASFLAGS): likewise
3575 (TARGET_MODULE_FORMAT): likewise
3576 (TARGET_APPLE_CC): likewise
3577 (OBJCONV): likewise
3578 (TARGET_IMG_CFLAGS): likewise
3579 (TARGET_CPPFLAGS): add includedir
3580 * configure.ac: call grub_apple_cc and grub_apple_target_cc
3581 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
3582 Check for linker script only if compiler isn't Apple's CC
3583 (TARGET_MODULE_FORMAT): set
3584 (TARGET_APPLE_CC): likewise
3585 (TARGET_ASFLAGS): likewise
3586 (ASFLAGS): likewise
3587 Check for objcopy only if compiler isn't Apple's CC
3588 Check for BSS symbol only if compiler isn't Apple's CC
3589 * genmk.rb: adapt nm options if we use Apple's utils
3590 * aclocal.m4 (grub_apple_cc): new test
3591 (grub_apple_target_cc): likewise
3592
3593 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3594
3595 Simplify sed expressions and improve awk
3596
3597 * Makefile.in (install-local): simplify sed expression
3598 * gencmdlist.sh: likewise
3599 * genmoddep.awk: avoid adding module as a dependency of itself
3600
3601 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3602
3603 Add missing start symbols
3604
3605 * boot/i386/pc/boot.S: add start
3606 * boot/i386/pc/pxeboot.S: likewise
3607
3608 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3609
3610 Fix wrong assumptions with grub-mkimage on EFI
3611
3612 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
3613 (relocate_addresses): consider both r_addend and value at offset
3614 (make_mods_section): zerofill modinfo and header
3615 (convert_elf): write prefix here
3616
3617 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3618
3619 Use .asciz instead of .string
3620
3621 * i386/pc/diskboot.S: use .asciz instead of .string
3622 * i386/pc/boot.S: likewise
3623 * include/grub/dl.h (GRUB_MOD_DEP): likewise
3624 (GRUB_MOD_NAME): likewise
3625
3626 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3627
3628 gfxpayload support
3629
3630 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
3631 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
3632 (grub_video_setup): remove
3633 (grub_video_set_mode): new prototype
3634 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
3635 (vid_mode): remove
3636 (linux_vesafb_res): compile only on PCBIOS
3637 (grub_linux_boot): support gfxpayload
3638 * loader/i386/pc/xnu.c (video_hook): new function
3639 (grub_xnu_set_video): support gfxpayload
3640 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
3641 (DEFAULT_VIDEO_HEIGHT): likewise
3642 (DEFAULT_VIDEO_FLAGS): likewise
3643 (DEFAULT_VIDEO_MODE): new definition
3644 (video_hook): new function
3645 (grub_gfxterm_init): use grub_video_set_mode
3646 * util/grub.d/30_os-prober.in: remove explicit modesetting before
3647 loading xnu
3648 * video/video.c (grub_video_setup): removed
3649 (grub_video_set_mode): new function based on grub_gfxterm_init and
3650 grub_video_setup
3651
3652 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3653
3654 Avoid calling biosdisk in drivemap
3655
3656 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
3657 (revparse_biosdisk): likewise
3658 (list_mappings): derive name from id directly
3659 (grub_cmd_drivemap): use tryparse_diskstring
3660
3661 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3662
3663 Script fixes
3664
3665 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
3666 (grub_lexer_param): add tokenonhold
3667 (grub_script_create_cmdline): remove cmdline. All callers updated
3668 (grub_script_function_create): make functionname
3669 grub_script_arg. All callers updated
3670 (grub_script_execute_argument_to_string): new prototype
3671 * kern/parser.c (state_transitions): reorder
3672 (grub_parser_cmdline_state): fix a bug and make more compact
3673 * script/sh/execute.c (grub_script_execute_argument_to_string):
3674 make global
3675 (grub_script_execute_cmdline): use new format
3676 * script/sh/function.c (grub_script_function_create): make functionname
3677 grub_script_arg. All callers updated
3678 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
3679 (grub_script_yylex): remove
3680 (grub_script_yylex2): renamed to ...
3681 (grub_script_yylex): ...renamed
3682 parse the expressions like a${b}c
3683 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
3684 (GRUB_PARSER_TOKEN_VAR): remove
3685 (GRUB_PARSER_TOKEN_NAME): likewise
3686 ("if"): declare as typeless
3687 ("while"): likewise
3688 ("function"): likewise
3689 ("else"): likewise
3690 ("then"): likewise
3691 ("fi"): likewise
3692 (text): remove
3693 (argument): likewise
3694 (script): accept empty scripts and make exit on error
3695 (arguments): use GRUB_PARSER_TOKEN_ARG
3696 (function): likewise
3697 (command): move error handling to script
3698 (menuentry): move grub_script_lexer_ref before
3699 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
3700 argument. All callers updated
3701
3702 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
3703
3704 Prevent GRUB from probing floppies during boot.
3705
3706 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
3707 * commands/search.c (options): Add --no-floppy.
3708 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
3709 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
3710 --no-floppy when searching for UUIDs.
3711
3712 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
3713
3714 Simplify the code duplication in commands/search.c.
3715
3716 * commands/search.c (search_label, search_fs_uuid): Merge into ...
3717 (search_fs): ... this. Update all users.
3718
3719 2009-06-03 Felix Zielcke <fzielcke@z-51.de>
3720
3721 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
3722
3723 2009-05-28 Pavel Roskin <proski@gnu.org>
3724
3725 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
3726 Remove the original symlink explicitly.
3727
3728 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
3729 just one slash. That's how grub_fshelp_find_file() does it.
3730
3731 2009-05-26 Pavel Roskin <proski@gnu.org>
3732
3733 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
3734 to `str'.
3735
3736 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
3737 possibly unused.
3738
3739 2009-05-25 Christian Franke <franke@computer.org>
3740
3741 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
3742 register.
3743 (grub_atapi_identify): Add wait after drive select.
3744 (grub_ata_identify): Do more strict status register check before
3745 calling grub_atapi_identify (). Suppress error message if status
3746 register is 0x00 after command failure. Add status register
3747 check after PIO read to avoid bogus identify due to stuck DRQ.
3748 Thanks to Pavel Roskin for testing.
3749 (grub_device_initialize): Remove unsafe status register check.
3750 Thanks to 'phcoder' for problem report and patch.
3751 Prevent sign extension in debug message.
3752
3753 2009-05-23 Colin D Bennett <colin@gibibit.com>
3754
3755 Cleaned up `include/grub/normal.h'. Grouped prototypes by
3756 definition file, and functions defined in `normal/menu.c' have had
3757 their prototypes moved to `include/grub/menu.h' for consistency.
3758
3759 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
3760 from normal.h.
3761 (grub_menu_get_entry): Likewise.
3762 (grub_menu_get_timeout): Likewise.
3763 (grub_menu_set_timeout): Likewise.
3764 (grub_menu_execute_entry): Likewise.
3765 (grub_menu_execute_with_fallback): Likewise.
3766 (grub_menu_entry_run): Likewise.
3767
3768 * include/grub/normal.h: Re-ordered and grouped function
3769 prototypes by file that the function is defined in.
3770 (grub_menu_execute_callback): Removed; moved to menu.h.
3771 (grub_menu_get_entry): Likewise.
3772 (grub_menu_get_timeout): Likewise.
3773 (grub_menu_set_timeout): Likewise.
3774 (grub_menu_execute_entry): Likewise.
3775 (grub_menu_execute_with_fallback): Likewise.
3776 (grub_menu_entry_run): Likewise.
3777 (grub_menu_addentry): Renamed from this ...
3778 (grub_normal_add_menu_entry): ... to this.
3779
3780 * normal/main.c (grub_menu_addentry): Renamed from this ...
3781 (grub_normal_add_menu_entry): ... to this.
3782
3783 * script/sh/execute.c (grub_script_execute_menuentry): Update
3784 reference to renamed grub_menu_addentry function.
3785
3786 2009-05-23 Felix Zielcke <fzielcke@z-51.de>
3787
3788 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
3789
3790 2009-05-22 Pavel Roskin <proski@gnu.org>
3791
3792 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
3793 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
3794 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
3795 compiling for the i386 targets, but not for the utilities.
3796
3797 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
3798 to grub_uint8_t.
3799 (grub_root_drive): Likewise.
3800 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
3801 remove alignment.
3802 (grub_root_drive): Change size to byte.
3803 (grub_start_addr): Remove.
3804 (grub_end_addr): Likewise.
3805 (grub_apm_bios_info): Likewise.
3806
3807 2009-05-21 Felix Zielcke <fzielcke@z-51.de>
3808
3809 * normal/i386: Remove.
3810 * normal/powerpc: Likewise.
3811 * normal/sparc64: Likewise.
3812 * normal/x86_64: Likewise.
3813
3814 2009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
3815
3816 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
3817 * loader/i386/linux_trampoline.S: Fix indentation
3818 * loader/i386/xnu_helper.S: Likewise
3819
3820 2009-05-18 Colin D Bennett <colin@gibibit.com>
3821
3822 Display error messages when parsing a Lua statement fails.
3823 Previously, executing a syntactically invalid statement like
3824 ")foo" or "bar;" would silently fail.
3825
3826 * script/lua/grub_main.c (handle_lua_error): New function.
3827 (grub_lua_parse_line): Improved reporting of Lua parser and
3828 execution errors.
3829
3830 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
3831
3832 Remove -Werror which causes build to fail on some systems
3833
3834 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
3835 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
3836 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
3837
3838 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
3839
3840 trampoline for linux on 64-bit platform
3841
3842 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
3843 loader/i386/efi/linux_trampoline.S
3844 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
3845 declaration
3846 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
3847 here
3848 * loader/i386/linux_trampoline.S: moved here
3849 * loader/i386/efi/linux.c (allocate_pages): reserve space for
3850 trampoline
3851 (jumpvector): removed
3852 (grub_linux_trampoline_start): new declaration
3853 (grub_linux_trampoline_end): likewise
3854 (grub_linux_boot): use trampoline when on 64-bit platform
3855 * loader/i386/linux.c: likewise
3856
3857 2009-05-16 Pavel Roskin <proski@gnu.org>
3858
3859 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
3860 const to avoid a warning.
3861 (grub_lua_setenv): Likewise.
3862 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
3863 lmsg to fix a warning.
3864
3865 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
3866
3867 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
3868 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
3869 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
3870 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
3871 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
3872 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
3873 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
3874 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
3875
3876 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
3877
3878 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
3879
3880 2009-05-16 Bean <bean123ch@gmail.com>
3881
3882 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
3883 (lua_mod_SOURCES): New variable.
3884 (lua_mod_CFLAGS): Likewise.
3885 (lua_mod_LDFLAGS): Likewise.
3886
3887 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
3888 (setjmp_mod_SOURCES): New variable.
3889 (setjmp_mod_CFLAGS): Likewise.
3890 (setjmp_LDFLAGS): Likewise.
3891
3892 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
3893 (setjmp_mod_SOURCES): New variable.
3894 (setjmp_mod_CFLAGS): Likewise.
3895 (setjmp_LDFLAGS): Likewise.
3896
3897 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
3898 (setjmp_mod_SOURCES): New variable.
3899 (setjmp_mod_CFLAGS): Likewise.
3900 (setjmp_LDFLAGS): Likewise.
3901
3902 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
3903 (setjmp_mod_SOURCES): New variable.
3904 (setjmp_mod_CFLAGS): Likewise.
3905 (setjmp_LDFLAGS): Likewise.
3906
3907 * normal/i386/setjmp.S: Moved from here ...
3908 * lib/i386/setjmp.S: ... Moved here
3909 * normal/x86_64/setjmp.S: Moved from here ...
3910 * lib/x86_64/setjmp.S: ... Moved here
3911 * normal/powerpc/setjmp.S: Moved from here ...
3912 * lib/powerpc/setjmp.S: ... Moved here
3913 * normal/sparc64/setjmp.S: Moved from here ...
3914 * lib/sparc64/setjmp.S: ... Moved here
3915
3916 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
3917 returns_twice in mingw.
3918
3919 * script/lua/grub_lib.c: New file.
3920 * script/lua/grub_lib.h: Likewise.
3921 * script/lua/grub_lua.h: Likewise.
3922 * script/lua/grub_main.c: Likewise.
3923 * script/lua/lapi.c: Likewise.
3924 * script/lua/lapi.h: Likewise.
3925 * script/lua/lauxlib.c: Likewise.
3926 * script/lua/lauxlib.h: Likewise.
3927 * script/lua/lbaselib.c: Likewise.
3928 * script/lua/lcode.c: Likewise.
3929 * script/lua/lcode.h: Likewise.
3930 * script/lua/ldblib.c: Likewise.
3931 * script/lua/ldebug.c: Likewise.
3932 * script/lua/ldebug.h: Likewise.
3933 * script/lua/ldo.c: Likewise.
3934 * script/lua/ldo.h: Likewise.
3935 * script/lua/ldump.c: Likewise.
3936 * script/lua/lfunc.c: Likewise.
3937 * script/lua/lfunc.h: Likewise.
3938 * script/lua/lgc.c: Likewise.
3939 * script/lua/lgc.h: Likewise.
3940 * script/lua/linit.c: Likewise.
3941 * script/lua/liolib.c: Likewise.
3942 * script/lua/llex.c: Likewise.
3943 * script/lua/llex.h: Likewise.
3944 * script/lua/llimits.h: Likewise.
3945 * script/lua/lmathlib.c: Likewise.
3946 * script/lua/lmem.c: Likewise.
3947 * script/lua/lmem.h: Likewise.
3948 * script/lua/loadlib.c: Likewise.
3949 * script/lua/lobject.c: Likewise.
3950 * script/lua/lobject.h: Likewise.
3951 * script/lua/lopcodes.c: Likewise.
3952 * script/lua/lopcodes.h: Likewise.
3953 * script/lua/loslib.c: Likewise.
3954 * script/lua/lparser.c: Likewise.
3955 * script/lua/lparser.h: Likewise.
3956 * script/lua/lstate.c: Likewise.
3957 * script/lua/lstate.h: Likewise.
3958 * script/lua/lstring.c: Likewise.
3959 * script/lua/lstring.h: Likewise.
3960 * script/lua/lstrlib.c: Likewise.
3961 * script/lua/ltable.c: Likewise.
3962 * script/lua/ltable.h: Likewise.
3963 * script/lua/ltablib.c: Likewise.
3964 * script/lua/ltm.c: Likewise.
3965 * script/lua/ltm.h: Likewise.
3966 * script/lua/lua.h: Likewise.
3967 * script/lua/luaconf.h: Likewise.
3968 * script/lua/lualib.h: Likewise.
3969 * script/lua/lundump.c: Likewise.
3970 * script/lua/lundump.h: Likewise.
3971 * script/lua/lvm.c: Likewise.
3972 * script/lua/lvm.h: Likewise.
3973 * script/lua/lzio.c: Likewise.
3974 * script/lua/lzio.h: Likewise.
3975
3976 2009-05-16 Bean <bean123ch@gmail.com>
3977
3978 * include/grub/kernel.h (grub_module_header_types): Add type
3979 OBJ_TYPE_CONFIG.
3980
3981 * kern/main.c (grub_load_config): New function.
3982 (grub_main): Call grub_load_config to read boot config.
3983
3984 * grub-mkimage (generate_image): New parameter config_path.
3985 (options): New option --config.
3986 (main): Parse --config option, and pass it to generate_image.
3987
3988 2009-05-14 Christian Franke <franke@computer.org>
3989
3990 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
3991 This fixes build on Cygwin.
3992
3993 2009-05-14 Pavel Roskin <proski@gnu.org>
3994
3995 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
3996 jump. This saves two bytes, so the typical case of 2 swapped
3997 drives would fit 32 bytes.
3998
3999 2009-05-13 Pavel Roskin <proski@gnu.org>
4000
4001 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
4002 grub_uint32_t to avoid a warning.
4003
4004 * loader/i386/linux.c (allocate_pages): When assigning
4005 real_mode_mem, cast through grub_size_t to fix a warning. The
4006 code already makes sure that the value would fit a pointer.
4007 (grub_linux_setup_video): Cast render_target->data to
4008 grub_size_t to fix a warning.
4009
4010 2009-05-13 Javier Martín <lordhabbit@gmail.com>
4011
4012 * commands/i386/pc/drivemap.c: New file - implement drivemap
4013 command.
4014 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
4015 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
4016
4017 2009-05-13 Pavel Roskin <proski@gnu.org>
4018
4019 * util/i386/pc/grub-setup.c (setup): Remove unused variable
4020 embedding_area_exists.
4021
4022 2009-05-13 Robert Millan <rmh.grub@aybabtu.com>
4023
4024 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
4025 it easier to understand / work with.
4026 Improve warning messages for cases where there's no embedding area,
4027 or when it is too small (or core.img too large).
4028
4029 2009-05-13 Pavel Roskin <proski@gnu.org>
4030
4031 * loader/i386/pc/multiboot2.c: Add necessary includes for
4032 grub_multiboot2_real_boot().
4033
4034 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
4035 PX record is always little-endian. We only need the lower 2
4036 bytes of the mode.
4037
4038 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
4039 facilitate code reuse.
4040 (grub_cpio_mount): Use "struct head", not a char buffer. This
4041 fixes a warning reported by gcc 4.4.
4042
4043 * kernel/disk.c (grub_disk_read): Use void pointer for the
4044 buffer.
4045 (grub_disk_write): Use const void pointer for the buffer.
4046 Adjust all callers. Remove unnecessary casts.
4047
4048 2009-05-10 Robert Millan <rmh.grub@aybabtu.com>
4049
4050 * util/i386/pc/grub-install.in: Update copyright year.
4051
4052 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
4053
4054 gptsync
4055
4056 * commands/gptsync.c: new file
4057 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
4058 (gptsync_mod_SOURCES): new variable
4059 (gptsync_mod_CFLAGS): likewise
4060 (gptsync_mod_LDFLAGS): likewise
4061 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
4062 new definition
4063 (GRUB_PC_PARTITION_TYPE_HFS): likewise
4064 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
4065 * conf/i386-ieee1275.rmk: likewise
4066 * conf/i386-pc.rmk: likewise
4067 * conf/powerpc-ieee1275.rmk: likewise
4068
4069 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
4070
4071 Fixed grub-emu
4072
4073 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
4074 (grub_dl_ref): likewise
4075
4076 2009-05-08 Robert Millan <rmh.grub@aybabtu.com>
4077
4078 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
4079 split in two functions (one for msdos and one for gpt).
4080
4081 2009-05-08 Pavel Roskin <proski@gnu.org>
4082
4083 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
4084 not modified.
4085
4086 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
4087 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
4088 Initialize them with -1. Add sanity check for bad1. Eliminate
4089 nerr variable.
4090
4091 2009-05-08 David S. Miller <davem@davemloft.net>
4092
4093 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
4094
4095 2009-05-06 Robert Millan <rmh.grub@aybabtu.com>
4096
4097 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
4098 existence.
4099
4100 2009-05-05 Felix Zielcke <fzielcke@z-51.de>
4101
4102 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
4103 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
4104
4105 2009-05-05 David S. Miller <davem@davemloft.net>
4106
4107 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
4108
4109 2009-05-05 Pavel Roskin <proski@gnu.org>
4110
4111 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
4112 of grub_dl_ref() and grub_dl_unref().
4113 * commands/parttool.c: Remove preprocessor conditionals around
4114 grub_dl_ref() and grub_dl_unref().
4115 * fs/affs.c: Likewise.
4116 * fs/afs.c: Likewise.
4117 * fs/cpio.c: Likewise.
4118 * fs/ext2.c: Likewise.
4119 * fs/fat.c: Likewise.
4120 * fs/hfs.c: Likewise.
4121 * fs/hfsplus.c: Likewise.
4122 * fs/iso9660.c: Likewise.
4123 * fs/jfs.c: Likewise.
4124 * fs/minix.c: Likewise.
4125 * fs/ntfs.c: Likewise.
4126 * fs/reiserfs.c: Likewise.
4127 * fs/sfs.c: Likewise.
4128 * fs/udf.c: Likewise.
4129 * fs/ufs.c: Likewise.
4130 * fs/xfs.c: Likewise.
4131 * include/grub/dl.h: Likewise.
4132 * loader/xnu.c: Likewise.
4133
4134 2009-05-04 Pavel Roskin <proski@gnu.org>
4135
4136 * commands/acpi.c: Remove unused variable my_mod.
4137 * partmap/amiga.c: Likewise.
4138 * partmap/apple.c: Likewise.
4139 * partmap/gpt.c: Likewise.
4140 * partmap/pc.c: Likewise.
4141 * partmap/sun.c: Likewise.
4142 * term/gfxterm.c: Likewise.
4143 * term/i386/pc/vesafb.c: Likewise.
4144 * term/i386/pc/vga.c: Likewise.
4145
4146 2009-05-04 David S. Miller <davem@davemloft.net>
4147
4148 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
4149 pointer args to grub_ieee1275_get_property().
4150
4151 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
4152
4153 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
4154 devices, and do not traverse down under controller nodes.
4155
4156 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
4157 (grub_ofdisk_open): Use it to un-escape "," characters.
4158 * kern/disk.c (find_part_sep): New.
4159 (grub_disk_open): Use it to find the first non-escaped ','
4160 character in the disk name.
4161 * util/ieee1275/devicemap.c (escape_of_path): New.
4162 (grub_util_emit_devicemap_entry): Use it.
4163 * util/sparc64/ieee1275/grub-install.in: Update script to
4164 strip partition specifiers properly by not triggering on
4165 '\' escaped ',' characters.
4166
4167 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
4168
4169 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
4170 to 0x300.
4171 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
4172 resolutions.
4173 (linux_vesafb_modes): Add a lot of additional modes to the list (based
4174 on documentation from Wikipedia).
4175
4176 2009-05-04 Pavel Roskin <proski@gnu.org>
4177
4178 * disk/ata.c: Spelling fixes.
4179 * disk/raid.c: Likewise.
4180 * disk/usbms.c: Likewise.
4181 * disk/dmraid_nvidia.c: Likewise.
4182 * kern/ieee1275/openfw.c: Likewise.
4183 * kern/ieee1275/init.c: Likewise.
4184 * kern/ieee1275/cmain.c: Likewise.
4185 * boot/i386/pc/cdboot.S: Likewise.
4186 * video/readers/png.c: Likewise.
4187 * video/i386/pc/vbe.c: Likewise.
4188 * fs/udf.c: Likewise.
4189 * fs/hfs.c: Likewise.
4190 * fs/reiserfs.c: Likewise.
4191 * efiemu/runtime/efiemu.c: Likewise.
4192 * efiemu/main.c: Likewise.
4193 * efiemu/mm.c: Likewise.
4194 * include/grub/elf.h: Likewise.
4195 * include/grub/xnu.h: Likewise.
4196 * include/grub/usbdesc.h: Likewise.
4197 * include/grub/usb.h: Likewise.
4198 * include/grub/script_sh.h: Likewise.
4199 * include/grub/lib/LzmaEnc.h: Likewise.
4200 * include/grub/efiemu/efiemu.h: Likewise.
4201 * include/grub/command.h: Likewise.
4202 * normal/menu.c: Likewise.
4203 * normal/main.c: Likewise.
4204 * normal/datetime.c: Likewise.
4205 * bus/usb/uhci.c: Likewise.
4206 * mmap/i386/uppermem.c: Likewise.
4207 * mmap/mmap.c: Likewise.
4208 * commands/acpi.c: Likewise.
4209 * commands/test.c: Likewise.
4210 * partmap/apple.c: Likewise.
4211 * font/font.c: Likewise.
4212 * loader/sparc64/ieee1275/linux.c: Likewise.
4213 * loader/macho.c: Likewise.
4214 * loader/i386/bsd_trampoline.S: Likewise.
4215 * loader/i386/bsd.c: Likewise.
4216 * loader/xnu.c: Likewise.
4217 * term/i386/pc/vesafb.c: Likewise.
4218 * term/usb_keyboard.c: Likewise.
4219 * util/resolve.c: Likewise.
4220 * util/getroot.c: Likewise.
4221
4222 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
4223
4224 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
4225
4226 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
4227
4228 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
4229 build error.
4230
4231 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
4232
4233 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
4234 parameter only available on BIOS.
4235
4236 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
4237
4238 Removed wrong semicolon in declaration
4239
4240 * grub/misc.h (grub_dprintf): remove semicolon
4241
4242 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
4243
4244 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
4245 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
4246 is done by grub_cmd_linux() now).
4247 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
4248 restore video to text mode.
4249 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
4250 indicates lack of "vga=" parameter. "vga=0" is mapped to
4251 `GRUB_LINUX_VID_MODE_NORMAL'.
4252
4253 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
4254
4255 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
4256 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
4257 and `normal/script.c'. Add `kern/rescue_reader.c',
4258 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
4259 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
4260 `grub_script.tab.c'.
4261
4262 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
4263 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
4264 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
4265 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
4266 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
4267
4268 * Makefile.in: Remove duplicated 2008 in Copyright line.
4269
4270 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
4271
4272 * util/misc.c (grub_util_warn): New function. Emits a warning
4273 unconditionally.
4274 * include/grub/util/misc.h (grub_util_warn): New declaration.
4275
4276 * util/i386/pc/grub-install.in: Understand --force and pass it down
4277 to grub-setup.
4278
4279 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
4280 down to setup().
4281 (setup): Improve error messages and add warnings when requested to
4282 install in odd layouts. Refuse to install using blocklists unless
4283 --force was set.
4284
4285 2009-05-04 martin f. krafft <madduck@madduck.net>
4286
4287 * disk/raid.c (grub_raid_scan_device): Improve debug message.
4288
4289 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
4290
4291 Updated copyright year
4292
4293 * fs/hfsplus.c: updated copyright year
4294
4295 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
4296
4297 HFS+ UUID
4298
4299 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
4300 in the space previously used by unused3
4301 (grub_hfsplus_uuid): new function
4302 (grub_hfsplus_fs): added uuid field
4303
4304 2009-05-03 Pavel Roskin <proski@gnu.org>
4305
4306 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
4307 suppress warnings. It's no longer needed.
4308 * disk/host.c: Likewise.
4309 * disk/ata_pthru.c: Likewise.
4310 * disk/loopback.c: Likewise.
4311 * hook/datehook.c: Likewise.
4312 * parttool/pcpart.c: Likewise.
4313 * fs/i386/pc/pxe.c: Likewise.
4314 * fs/ntfscomp.c: Likewise.
4315 * efiemu/main.c: Likewise.
4316 * mmap/mmap.c: Likewise.
4317 * commands/crc.c: Likewise.
4318 * commands/hexdump.c: Likewise.
4319 * commands/hdparm.c: Likewise.
4320 * commands/acpi.c: Likewise.
4321 * commands/echo.c: Likewise.
4322 * commands/minicmd.c: Likewise.
4323 * commands/blocklist.c: Likewise.
4324 * commands/memrw.c: Likewise.
4325 * commands/loadenv.c: Likewise.
4326 * commands/usbtest.c: Likewise.
4327 * commands/lsmmap.c: Likewise.
4328 * commands/boot.c: Likewise.
4329 * commands/parttool.c: Likewise.
4330 * commands/configfile.c: Likewise.
4331 * commands/search.c: Likewise.
4332 * commands/ieee1275/suspend.c: Likewise.
4333 * commands/cat.c: Likewise.
4334 * commands/i386/pc/pxecmd.c: Likewise.
4335 * commands/i386/pc/play.c: Likewise.
4336 * commands/i386/pc/halt.c: Likewise.
4337 * commands/i386/pc/vbeinfo.c: Likewise.
4338 * commands/i386/pc/vbetest.c: Likewise.
4339 * commands/lspci.c: Likewise.
4340 * commands/date.c: Likewise.
4341 * commands/handler.c: Likewise.
4342 * commands/ls.c: Likewise.
4343 * commands/test.c: Likewise.
4344 * commands/cmp.c: Likewise.
4345 * commands/efi/loadbios.c: Likewise.
4346 * commands/efi/fixvideo.c: Likewise.
4347 * commands/halt.c: Likewise.
4348 * commands/help.c: Likewise.
4349 * commands/reboot.c: Likewise.
4350 * hello/hello.c: Likewise.
4351 * script/sh/main.c: Likewise.
4352 * loader/xnu.c: Likewise.
4353 * term/terminfo.c: Likewise.
4354 * term/i386/pc/serial.c: Likewise.
4355 * term/usb_keyboard.c: Likewise.
4356
4357 2009-05-03 David S. Miller <davem@davemloft.net>
4358
4359 * normal/menu.c: Include grub/parser.h
4360
4361 2009-05-03 Pavel Roskin <proski@gnu.org>
4362
4363 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
4364 not char*.
4365 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
4366 Suggested by Javier Martín <lordhabbit@gmail.com>
4367
4368 * util/i386/pc/grub-mkrescue.in: Allow for the case when
4369 efiemu??.o doesn't exist.
4370 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
4371 copying.
4372
4373 2009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
4374
4375 FreeBSD 64-bit support
4376
4377 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
4378 and loader/i386/bsd_trampoline.S
4379 (bsd_mod_ASFLAGS): new variable
4380 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
4381 (FREEBSD_MODTYPE_KERNEL64): likewise
4382 (grub_bsd64_trampoline_start): likewise
4383 (grub_bsd64_trampoline_end): likewise
4384 (grub_bsd64_trampoline_selfjump): likewise
4385 (grub_bsd64_trampoline_gdt): likewise
4386 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
4387 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
4388 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
4389 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
4390 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
4391 of "attrib" member
4392 * loader/i386/bsd_pagetable.c: new file
4393 * loader/i386/bsd_trampoline.S: likewise
4394 * loader/i386/bsd.c (ALIGN_QWORD): new macro
4395 (ALIGN_VAR): likewise
4396 (entry_hi): new variable
4397 (kern_end_mdofs): likewise
4398 (is_64bit): likewise
4399 (grub_freebsd_add_meta): use ALIGN_VAR
4400 (grub_e820_mmap): new declaration
4401 (grub_freebsd_add_mmap): new function
4402 (grub_freebsd_add_meta_module): support 64 bit kernels
4403 (grub_freebsd_list_modules): use ALIGN_VAR
4404 (gdt_descriptor): new declaration
4405 (grub_freebsd_boot): support 64 bit kernels
4406 (grub_bsd_elf64_hook): new function
4407 (grub_bsd_load_elf): support elf64
4408
4409 2009-05-03 Bean <bean123ch@gmail.com>
4410
4411 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
4412 after we get the result of if statement.
4413
4414 2009-05-03 Bean <bean123ch@gmail.com>
4415
4416 * Makefile.in (enable_efiemu): New variable.
4417
4418 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
4419 set.
4420 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
4421 path.
4422 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
4423 path, add -mno-red-zone option.
4424 (efiemu64_s.o): Likewise.
4425 (efiemu64.o): Use macro $^ for source file.
4426
4427 * configure.ac (--enable-efiemu): New option.
4428
4429 2009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
4430
4431 xnu support
4432
4433 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
4434 (pkglib_MODULES): add xnu.mod
4435 (xnu_mod_SOURCES): new variable
4436 (xnu_mod_CFLAGS): likewise
4437 (xnu_mod_LDFLAGS): likewise
4438 (xnu_mod_ASFLAGS): likewise
4439 * conf/i386-pc.rmk: likewise
4440 * conf/x86_64-efi.rmk: likewise
4441 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
4442 new declaration
4443 * include/grub/i386/macho.h: new file
4444 * include/grub/i386/xnu.h: likewise
4445 * include/grub/macho.h: likewise
4446 * include/grub/machoload.h: likewise
4447 * include/grub/x86_64/macho.h: likewise
4448 * include/grub/x86_64/xnu.h: likewise
4449 * include/grub/xnu.h: likewise
4450 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
4451 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
4452 * loader/i386/efi/xnu.c: new file
4453 * loader/i386/pc/xnu.c: likewise
4454 * loader/i386/xnu.c: likewise
4455 * loader/i386/xnu_helper.S: likewise
4456 * loader/macho.c: likewise
4457 * loader/xnu.c: likewise
4458 * loader/xnu_resume.c: likewise
4459 * util/grub-dumpdevtree: likewise
4460 * include/grub/i386/pit.h: include grub/err.h
4461 (grub_pit_wait): export
4462 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
4463
4464 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
4465
4466 Efiemu
4467
4468 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
4469 _linux_efi, linux_efi.
4470 new files in grub-emu
4471 new targets efiemu32.o and efiemu64.o
4472 * loader/linux_normal_efiemu.c: likewise
4473 * loader/i386/efi/linux.c: added preliminary efiemu support
4474 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
4475 files to copy
4476 * include/grub/autoefi.h: new file
4477 * include/grub/i386/efiemu.h: likewise
4478 * include/grub/i386/pc/efiemu.h: likewise
4479 * include/grub/efi/api.h: add LL suffix when necessary
4480 new definitions relating to tables
4481 * include/grub/efiemu/efiemu.h: new file
4482 * include/grub/efiemu/runtime.h: likewise
4483 * efiemu/prepare.c: likewise
4484 * efiemu/loadcore_common.c: likewise
4485 * efiemu/loadcore64.c: likewise
4486 * efiemu/runtime/efiemu.sh: likewise
4487 * efiemu/runtime/efiemu.S: likewise
4488 * efiemu/runtime/efiemu.c: likewise
4489 * efiemu/runtime/config.h: likewise
4490 * efiemu/prepare32.c: likewise
4491 * efiemu/main.c: likewise
4492 * efiemu/modules/pnvram.c: likewise
4493 * efiemu/modules/i386: likewise
4494 * efiemu/modules/i386/pc: likewise
4495 * efiemu/modules/acpi.c: likewise
4496 * efiemu/i386/pc/cfgtables.c: likewise
4497 * efiemu/i386/loadcore64.c: likewise
4498 * efiemu/i386/loadcore32.c: likewise
4499 * efiemu/prepare64.c: likewise
4500 * efiemu/loadcore.c: likewise
4501 * efiemu/symbols.c: likewise
4502 * efiemu/mm.c: likewise
4503 * efiemu/loadcore32.c: likewise
4504
4505 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
4506
4507 ACPI spoofing
4508
4509 * commands/acpi.c: new file
4510 * commands/i386/pc/acpi.c: likewise
4511 * commands/efi/acpi.c: likewise
4512 * include/grub/acpi.h: likewise
4513 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
4514 (acpi_mod_SOURCES): new variable
4515 (acpi_mod_CFLAGS): likewise
4516 (acpi_mod_LDFLAGS): likewise
4517 * conf/i386-efi.rmk: likewise
4518 * conf/x86_64-efi.rmk: likewise
4519
4520 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
4521
4522 Missing part from mmap patch
4523
4524 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
4525 (grub_mmap_unregister)
4526 (grub_mmap_free_and_unregister): use grub_mmap_register
4527
4528 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
4529
4530 Mmap services
4531
4532 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
4533 * loader/i386/linux.c (find_mmap_size): likewise
4534 (allocate_pages): likewise
4535 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
4536 (grub_fill_multiboot_mmap): likewise
4537 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
4538 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
4539 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
4540 (OPENBSD_MMAP_RESERVED): likewise
4541 * include/grub/i386/pc/memory.h: include grub/memory.h
4542 (grub_lower_mem): removed
4543 (grub_upper_mem): likewise
4544 (GRUB_MACHINE_MEMORY_ACPI): new definition
4545 (GRUB_MACHINE_MEMORY_NVS): likewise
4546 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
4547 (GRUB_MACHINE_MEMORY_HOLE): likewise
4548 (grub_machine_mmap_register): likewise
4549 (grub_machine_mmap_unregister): likewise
4550 (grub_machine_get_upper): likewise
4551 (grub_machine_get_lower): likewise
4552 (grub_machine_get_post64): likewise
4553 * include/grub/i386/efi/memory.h: new file
4554 * include/grub/x86_64/efi/memory.h: likewise
4555 * include/grub/efi/memory.h: likewise
4556 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
4557 (mmap_mod_SOURCES): new variable
4558 (mmap_mod_LDFLAGS): likewise
4559 (mmap_mod_ASFLAGS): likewise
4560 * conf/i386-coreboot.rmk: likewise
4561 * conf/i386-ieee1275.rmk: likewise
4562 * conf/i386-efi.rmk: likewise
4563 * conf/x86_64-efi.rmk: likewise
4564 * include/grub/types.h (UINT_TO_PTR): new macro
4565 (PTR_TO_UINT32): likewise
4566 (PTR_TO_UINT64): likewise
4567 * include/grub/memory.h: new file
4568 * mmap/i386/pc/mmap.c: likewise
4569 * mmap/i386/pc/mmap_helper.S: likewise
4570 * mmap/i386/uppermem.c: likewise
4571 * mmap/mmap.c: likewise
4572 * mmap/efi/mmap.c: likewise
4573 * kern/i386/coreboot/init.c (grub_machine_init): don't use
4574 grub_upper_mem
4575 * kern/i386/pc/init.c (grub_lower_mem): removed variable
4576 (grub_upper_mem): likewise
4577 (grub_machine_init): don't use grub_upper_mem,
4578 make grub_lower_mem local
4579 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
4580 grub_mmap_iterate and grub_mmap_get_upper
4581 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
4582
4583 2009-05-02 Bean <bean123ch@gmail.com>
4584
4585 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
4586 script/sh/parser.y.
4587 (pkglib_MODULES): Add normal.mod and sh.mod.
4588 (normal_SOURCES): New variable.
4589 (normal_mod_CFLAGS): Likewise.
4590 (normal_mod_LDFLAGS): Likewise.
4591 (sh_mod_SOURCES): Likewise.
4592 (sh_mod_CFLAGS): Likewise.
4593 (sh_mod_LDFLAGS): Likewise.
4594
4595 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
4596 script/sh/lexer.c_DEPENDENCIES.
4597 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
4598 kern/rescue_reader.c and kern/rescue_parser.c.
4599 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
4600 (grub_emu_SOURCES): Change source files.
4601 (pkglib_MODULES): Remove normal.mod.
4602 (normal_SOURCES): Removed.
4603 (normal_mod_CFLAGS): Likewise.
4604 (normal_mod_LDFLAGS): Likewise.
4605 * conf/i386-coreboot.rmk: Likewise.
4606 * conf/i386-efi.rmk: Likewise.
4607 * conf/i386-ieee1276.rmk: Likewise.
4608 * conf/powerpc-ieee1275.rmk: Likewise.
4609 * conf/sparc64-ieee1275.rmk: Likewise.
4610 * conf/x86_64-efi.rmk: Likewise.
4611
4612 * include/grub/command.h (grub_command_execute): New inline function.
4613
4614 * include/grub/menu.h (grub_menu_entry): Removed commands field.
4615
4616 * include/grub/normal.h: Remove <grub/setjmp.h>.
4617 (grub_fs_module_list): Moved to normal/autofs.c.
4618 (grub_exit_env): Removed.
4619 (grub_command_execute): Likewise.
4620 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
4621 parameter script.
4622 (read_command_list): New function declaration.
4623 (read_fs_list): Likewise.
4624
4625 * include/parser.h: Include <grub/reader.h>.
4626 (grub_parser_split_cmdline): Change type of getline parameter.
4627 (grub_parser): New structure.
4628 (grub_parser_class): New variable.
4629 (grub_parser_execute): New function declaration.
4630 (grub_register_rescue_parser): Likewise.
4631 (grub_parser_register): New inline function.
4632 (grub_parser_unregister): Likewise.
4633 (grub_parser_get_current): Likewise.
4634 (grub_parser_set_current): Likewise.
4635
4636 * include/grub/reader.h: New file.
4637 * kern/reader.c: Likewise.
4638 * kern/rescue_parser.c: Likewise.
4639 * kern/rescue_reader.c: Likewise.
4640 * normal/autofs.c: Likewise.
4641 * normal/dyncmd.c: Likewise.
4642
4643 * include/grub/rescue.h: Removed.
4644 * normal/command.h: Likewise.
4645
4646 * include/grub/script.h: Moved to ...
4647 * include/grub/script_sh.h: ... Moved here.
4648 * normal/execute.c: Moved to ...
4649 * script/sh/execute.c: ... Moved here.
4650 * normal/function.c: Moved to ...
4651 * script/sh/function.c: ... Moved here.
4652 * normal/lexer.c: Moved to ...
4653 * script/sh/lexer.c: ... Moved here.
4654 * normal/parser.y: Moved to ...
4655 * script/sh/parser.y: ... Moved here.
4656 * normal/script.c: Moved to ...
4657 * script/sh/script.c: ... Moved here.
4658
4659 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
4660 <grub/reader.h>.
4661 (grub_exit_env): Removed.
4662 (fs_module_list): Moved to normal/autofs.c.
4663 (grub_file_getline): Don't handle comment here.
4664 (free_menu): Skip removed field entry->commands.
4665 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
4666 script parameter.
4667 (read_config_file): Removed nested parameter, change getline function.
4668 (grub_enter_normal_mode): Removed.
4669 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
4670 (read_command_list): Likewise.
4671 (autoload_fs_module): Moved to normal/autofs.c.
4672 (read_fs_list): Likewise.
4673 (reader_nested): New variable.
4674 (grub_normal_execute): Run parser.sh to switch to sh parser.
4675 (grub_cmd_rescue): Removed.
4676 (cmd_normal): Removed.
4677 (grub_cmd_normal): Unregister itself at the beginning. Don't register
4678 rescue command.
4679 (grub_cmdline_run): New function.
4680 (grub_normal_reader_init): Likewise.
4681 (grub_normal_read_line): Likewise.
4682 (grub_env_write_pager): Likewise.
4683 (cmdline): New variable.
4684 (grub_normal_reader): Likewise.
4685 (GRUB_MOD_INIT): Register normal reader and set as current, register
4686 pager hook, register normal command with grub_register_command_prio,
4687 so that it won't show up in command.lst.
4688 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
4689 grub_fs_autoload_hook.
4690
4691 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
4692 (grub_menu_execute_entry): Replace grub_script_execute with
4693 grub_parser_execute, change parameter to grub_command_execute.
4694
4695 * normal/menu_text.c: Remove <grub/script.h>.
4696
4697 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
4698 and <grub/parser.h>.
4699 (run): Change editor_getline to use new parser interface. Change
4700 parameter to grub_command_execute.
4701
4702 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
4703 <grub/reader.h> and <grub/parser.h>.
4704 (grub_load_normal_mode): Execute normal command.
4705 (grub_main): Call grub_register_core_commands,
4706 grub_register_rescue_parser and grub_register_rescue_reader, use
4707 grub_reader_loop to enter input loop.
4708
4709 * kern/parser.c (grub_parser_split_cmdline): Change type of
4710 getline parameter.
4711 (grub_parser_class): New variable.
4712 (grub_parser_execute): New function.
4713
4714 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
4715 * loader/multiboot2.c: Likewise.
4716 * loader/sparc64/ieee1275/linux.c: Likewise.
4717
4718 * util/grub-emu.c (read_command_list): New dummy function.
4719
4720 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
4721
4722 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
4723 count to 16 for CCISS and IDA.
4724
4725 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
4726
4727 * normal/menu_text.c (grub_wait_after_message): Print a newline
4728 after waiting for user input.
4729
4730 * loader/i386/linux.c: Include `<grub/normal.h>'.
4731 (grub_cmd_linux): Improve the error message about `ask' mode, by
4732 waiting for user input so it's not missed (we can do this, since
4733 user requested interaction).
4734
4735 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
4736
4737 Added missing lst to grub-mkrescue
4738
4739 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
4740 and ${input_dir}/parttool.lst
4741
4742 2009-04-30 David S. Miller <davem@davemloft.net>
4743
4744 * util/hostdisk.c (device_is_wholedisk): New function.
4745 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
4746 zero only if device_is_wholedisk() returns true.
4747
4748 * util/hostdisk.c (convert_system_partition_to_system_disk):
4749 Handle virtual disk devices named /dev/vdiskX as found on sparc
4750 and powerpc.
4751
4752 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
4753 lettered partition specifier is found, convert to numbered.
4754
4755 2009-04-29 David S. Miller <davem@davemloft.net>
4756
4757 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
4758 * include/grub/sparc64/ieee1275/memory.h: Likewise.
4759
4760 * normal/command.c: Add missing newline at end of file.
4761
4762 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
4763 warnings.
4764 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
4765 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
4766 grub_ofdisk_read): Likewise, and deal similarly with the fact that
4767 ihandles have a 32-bit type but need to be stored in a "void *".
4768
4769 2009-04-28 Pavel Roskin <proski@gnu.org>
4770
4771 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
4772 not disk. Adjust all dependencies.
4773 (grub_fs_uuid_close): Use grub_device_close(), not
4774 grub_disk_close().
4775
4776 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
4777 parent's partition, don't copy it by reference, as it gets freed
4778 on close.
4779
4780 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
4781
4782 Preboot hooks support
4783
4784 * commands/boot.c (struct grub_preboot_t): new declaration
4785 (preboots_head): new variable
4786 (preboots_tail): likewise
4787 (grub_loader_register_preboot_hook): new function
4788 (grub_loader_unregister_preboot_hook): likewise
4789 (grub_loader_set): launch preboot hooks
4790 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
4791 (grub_loader_register_preboot_hook): new declaration
4792 (grub_loader_unregister_preboot_hook): likewise
4793
4794 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
4795
4796 Warning fix
4797
4798 * disk/scsi.c (grub_scsi_open): added missing cast when
4799 calling grub_dprintf
4800
4801 2009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
4802
4803 Bug and warning fixes
4804
4805 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
4806 declaration
4807 * commands/test.c (test_parse): fixed bug with file tests and corrected
4808 declaration of find_file
4809
4810 2009-04-26 Pavel Roskin <proski@gnu.org>
4811
4812 * Makefile.in: Don't install empty manual pages if help2man is
4813 missing. Use help2man option for output, not shell redirection.
4814
4815 2009-04-26 David S. Miller <davem@davemloft.net>
4816
4817 * util/grub-mkdevicemap.c (make_device_map): Add missing
4818 NESTED_FUNC_ATTR to process_device().
4819
4820 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
4821
4822 Test command
4823
4824 * commands/test.c: rewritten to use bash-like test
4825
4826 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
4827
4828 Parttool autoloading and improvements
4829
4830 * Makefile.in (pkglib_DATA): add parttool.lst
4831 (parttool.lst): new target
4832 * genmk.rb: generate parttool-*
4833 (CLEANFILES): add #{parttool}
4834 (PARTTOOLFILES): new variable
4835 * genparttoollist.sh: new file
4836 * parttool/pcpart.c (grub_pcpart_boot): more feedback
4837 (grub_pcpart_type): likewise
4838 * commands/parttool.c (helpmsg): new variable
4839 (grub_cmd_parttool): output help if not enough arguments are supplied
4840 autoload modules
4841 (GRUB_MOD_INIT(parttool)): use helpmsg
4842
4843 2009-04-24 David S. Miller <davem@davemloft.net>
4844
4845 Avoiding opening same device multiple times in device iterator.
4846
4847 * kern/device.c: (grub_device_iterate): Define struct part_ent,
4848 and use it to build a list of partitions in iterate_disk() and
4849 iterate_partition().
4850
4851 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
4852 on disk->data.
4853
4854 * disk/ieee1275/nand.c (grub_nand_iterate): Return
4855 grub_devalias_iterate() result instead of unconditional 0.
4856 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
4857 Also, capture hook return value, either directly or via
4858 grub_children_iterate(), and propagate to caller.
4859 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
4860 grub_children_iterate): Return value is now 'int' instead of
4861 'grub_err_t'.
4862 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
4863 like a proper iterator, stopping when hooks return non-zero.
4864 (grub_devalias_iterate): Likewise.
4865
4866 2009-04-23 David S. Miller <davem@davemloft.net>
4867
4868 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
4869
4870 2009-04-22 David S. Miller <davem@davemloft.net>
4871
4872 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
4873 is larger than address_cells, use that value for address_cells too.
4874
4875 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
4876 IEEE1275_MAX_PATH_LEN): Define.
4877 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
4878 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
4879 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
4880 'devtype'. Explicitly NULL terminate devalias expansion.
4881
4882 * util/sparc64/ieee1275/misc.c: New file.
4883 * util/sparc64/ieee1275/grub-setup.c: New file.
4884 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
4885 * util/sparc64/ieee1275/grub-mkimage.c: New file.
4886 * util/sparc64/ieee1275/grub-install.in: New file.
4887 * util/ieee1275/ofpath.c: New file.
4888 * util/ieee1275/devicemap.c: New file.
4889 * util/devicemap.c: New file.
4890 * util/deviceiter.c: New file.
4891 * kern/sparc64/ieee1275/init.c: New file.
4892 * include/grub/util/ofpath.h: New file.
4893 * include/grub/util/deviceiter.h: New file.
4894 * util/grub-mkdevicemap.c: Include deviceiter.h.
4895 Implement using grub_util_emit_devicemap_entry and
4896 grub_util_iterate_devices.
4897 * conf/i386-corebook.rmk: Build util/deviceiter.c and
4898 util/devicemap.c into grub-mkdevicemap
4899 * conf/i386-efi.rmk: Likewise.
4900 * conf/i386-ieee1275.rmk: Likewise.
4901 * conf/i386-pc.rmk: Likewise.
4902 * conf/powerpc-ieee1275.rmk: Likewise.
4903 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
4904 images and installation utilities. Build kernel as image
4905 instead of as elf binary. Use common rules as much as possible.
4906
4907 2009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
4908
4909 Correct GPT definition
4910
4911 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
4912 of "attrib" member
4913
4914 2009-04-19 Felix Zielcke <fzielcke@z-51.de>
4915
4916 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
4917
4918 2009-04-19 David S. Miller <davem@davemloft.net>
4919
4920 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
4921 (grub_rescue_cmd_linux): Rename to...
4922 (grub_cmd_linux): and fix prototype.
4923 (grub_rescue_cmd_initrd): Rename to...
4924 (grub_cmd_initrd): and fix prototype.
4925 (cmd_linux, cmd_initrd): New.
4926 (GRUB_MOD_INIT(linux)): Use grub_register_command().
4927 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
4928
4929 2009-04-17 Pavel Roskin <proski@gnu.org>
4930
4931 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
4932 format.
4933 (grub_ohci_transfer): Likewise.
4934
4935 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
4936
4937 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
4938 return without a value. Fix inconsistent indentation.
4939
4940 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
4941 match struct grub_fs.
4942
4943 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
4944 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
4945 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
4946 * commands/lspci.c (grub_lspci_iter): Likewise.
4947
4948 2009-04-16 Bean <bean123ch@gmail.com>
4949
4950 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
4951 value.
4952
4953 2009-04-15 Pavel Roskin <proski@gnu.org>
4954
4955 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
4956 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
4957 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
4958 definitions.
4959
4960 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
4961
4962 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
4963 that no multiple data or metadata areas are supported and `Unknown
4964 metadata header'.
4965
4966 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
4967
4968 Move loader out of the kernel
4969
4970 * kern/loader.c: moved to ...
4971 * commands/boot.c: ... moved here
4972 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
4973 * commands/boot.c (grub_cmd_boot): moved here. All users updated
4974 * include/grub/kernel.h (grub_machine_fini): export
4975 * include/grub/loader.h (grub_loader_is_loaded): update declaration
4976 (grub_loader_set): likewise
4977 (grub_loader_unset): likewise
4978 (grub_loader_boot): likewise
4979 * conf/common.rmk: new module boot.mod
4980 (pkglib_MODULES): add boot.mod
4981 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
4982 (grub_emu_SOURCES): likewise
4983 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
4984 (grub_emu_SOURCES): likewise
4985 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
4986 (grub_emu_SOURCES): likewise
4987 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
4988 (grub_emu_SOURCES): likewise
4989 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
4990 (grub_emu_SOURCES): likewise
4991 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
4992 (grub_emu_SOURCES): likewise
4993 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
4994 (grub_emu_SOURCES): likewise
4995
4996 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
4997
4998 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
4999
5000 * kern/misc.c (grub_itoa): Removed function
5001 (grub_ltoa): likewise
5002 (grub_vsprintf): use grub_lltoa
5003
5004 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
5005
5006 Restore grub-emu
5007
5008 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
5009 * conf/i386-coreboot.rmk: likewise
5010 * conf/i386-ieee1275.rmk: likewise
5011 * conf/powerpc-ieee1275.rmk: likewise
5012
5013 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
5014
5015 * INSTALL: Add that `./autogen.sh' needs to be run before
5016 `./configure.'.
5017
5018 2009-04-14 Bean <bean123ch@gmail.com>
5019
5020 * Makefile.in (pkglib_DATA): Add handler.lst.
5021 (handler.lst): New rule.
5022
5023 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
5024 * conf/i386-coreboot.rmk: Likewise.
5025 * conf/i386-ieee1275.rmk: Likewise.
5026 * conf/i386-efi.rmk: Likewise.
5027 * conf/x86_64-efi.rmk: Likewise.
5028 * conf/powerpc-ieee1275.rmk: Likewise.
5029 * conf/sparc64-ieee1275.rmk: Likewise.
5030
5031 * genhandlerlist.sh: New file.
5032
5033 * genmk.rb: Add rules to generate handler.lst.
5034
5035 * include/grub/normal.h (grub_file_getline): New function definition.
5036 (read_handler_list): Likewise.
5037 (free_handler_list): Likewise.
5038
5039 * include/grub/term.h (grub_term_register_input): Add name parameter
5040 for auto generation of handler.lst.
5041 (grub_term_register_output): Likewise.
5042
5043 * normal/handler.c: New file.
5044
5045 * normal/main.c (get_line): Renamed to grub_file_getline.
5046 (read_config_file): Use the newly renamed grub_file_getline.
5047 (read_command_list): Likewise.
5048 (read_fs_list): Likewise.
5049 (grub_normal_execute): Call read_handler_list to parse handler.lst.
5050 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
5051
5052 * term/efi/console.c (grub_console_init): Add name parameter for auto
5053 generation of handler.lst.
5054 * term/gfxterm.c: Likewise.
5055 * term/i386/pc/at_keyboard.c: Likewise.
5056 * term/i386/pc/console.c: Likewise.
5057 * term/i386/pc/serial.c: Likewise.
5058 * term/i386/pc/vesafb.c: Likewise.
5059 * term/i386/pc/vga.c: Likewise.
5060 * term/i386/pc/vga_text.c: Likewise.
5061 * term/ieee1275/ofconsole.c: Likewise.
5062 * term/usb_keyboard.c: Likewise.
5063
5064 2009-04-14 Bean <bean123ch@gmail.com>
5065
5066 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
5067 properly with null character.
5068
5069 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
5070
5071 * configure: Remove.
5072 * config.h.in: Likewise.
5073 * stamp-h.in: Likewise.
5074 * DISTLIST: Likewise.
5075 * conf/common.mk: Likewise.
5076 * conf/i386-coreboot.mk: Likewise.
5077 * conf/i386-efi.mk: Likewise.
5078 * conf/i386-ieee1275.mk: Likewise.
5079 * conf/i386.mk: Likewise.
5080 * conf/i386-pc.mk: Likewise.
5081 * conf/powerpc-ieee1275.mk: Likewise.
5082 * conf/sparc64-ieee1275.mk: Likewise.
5083 * conf/x86_64-efi.mk: Likewise.
5084
5085 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
5086 develop on GRUB.
5087
5088 2009-04-14 John Stanley <jpsinthemix@verizon.net>
5089 David S. Miller <davem@davemloft.net>
5090
5091 * util/hostdisk.c (make_device_name): Fix buffer length
5092 calculations.
5093
5094 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
5095
5096 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
5097 <sys/param.h> and <sys/sysctl.h>.
5098 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
5099 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
5100 opening the device and reset them afterwards.
5101
5102 2009-04-13 Pavel Roskin <proski@gnu.org>
5103
5104 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
5105 Reported by John Stanley <jpsinthemix@verizon.net>
5106
5107 2009-04-13 Robert Millan <rmh@aybabtu.com>
5108
5109 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
5110 that name for menuentries when appropriate.
5111
5112 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
5113
5114 * util/grub.d/10_freebsd.in: Add a missing `fi'.
5115
5116 2009-04-13 Robert Millan <rmh@aybabtu.com>
5117
5118 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
5119 to Linux, simply abort telling the user it's no longer supported.
5120
5121 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
5122
5123 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
5124 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
5125 `freebsd_loadenv' only when devices.hints exist.
5126
5127 2009-04-13 Pavel Roskin <proski@gnu.org>
5128
5129 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
5130
5131 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
5132
5133 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
5134 partition number.
5135 (grub_drive): Likewise.
5136
5137 2009-04-13 David S. Miller <davem@davemloft.net>
5138
5139 * kern/sparc64/ieee1275/ieee1275.c: New file.
5140 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
5141 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
5142 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
5143 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
5144 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
5145 grub_ieee1275_alloc_physmem): Declare new exported functions.
5146
5147 * include/grub/sparc64/ieee1275/loader.h: New file.
5148 * include/grub/sparc64/ieee1275/memory.h: Likewise.
5149 * include/grub/sparc64/kernel.h: Likewise.
5150 * loader/sparc64/ieee1275/linux.c: Likewise.
5151
5152 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
5153 (grub_fstest_SOURCES): Likewise.
5154
5155 * util/hostdisk.c (make_device_name): Do not make any assumptions
5156 about the length of drive names.
5157
5158 * kern/dl.c (grub_dl_load_file): Close file immediately when
5159 we are done using it.
5160
5161 2009-04-12 David S. Miller <davem@davemloft.net>
5162
5163 * kern/misc.c (grub_ltoa): Fix cast when handling negative
5164 values. Noticed by Pavel Roskin.
5165
5166 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
5167 target compiler.
5168
5169 * genmk.rb: Add more flexible image type specification, also
5170 pass --strip-unneeded to objcopy.
5171 * conf/i386-pc.rmk: Use *_FORMAT.
5172 * conf/i386-pc.mk: Rebuilt.
5173
5174 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
5175 (OFDISK_HASH_SZ): Define.
5176 (ofdisk_hash): New hash table.
5177 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
5178 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
5179 instead of device phandle which is not unique.
5180
5181 * kern/sparc64/ieee1275/init.c: Delete, replace with...
5182 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
5183 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
5184 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
5185 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
5186 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
5187 GRUB_KERNEL_MACHINE_DATA_END): Define.
5188 (grub_kernel_image_size, grub_total_module_size): Declare.
5189
5190 2009-04-12 Pavel Roskin <proski@gnu.org>
5191
5192 * configure.ac: Change the logic when we check for target tools.
5193 Do it when the target is specified and it's different from the
5194 specified value of the host.
5195
5196 2009-04-11 Felix Zielcke <fzielcke@z-51.de>
5197
5198 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
5199 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
5200 GNU/kFreeBSD. Check if a device is a character device. Use
5201 DIOCGMEDIASIZE to get the size.
5202 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
5203 support for GNU/kFreeBSD.
5204 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
5205 is a character device instead of a block device. Add support for
5206 FreeBSD device names.
5207
5208 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
5209 is a character device instead of a block device.
5210
5211 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
5212 is a character device instead of a block device.
5213
5214 2009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
5215
5216 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
5217 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
5218 FreeBSD. Check if a device is a character device. Use
5219 DIOCGMEDIASIZE to get the size.
5220 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
5221 support for FreeBSD.
5222 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
5223 is a character device instead of a block device. Add support for
5224 FreeBSD device names.
5225
5226 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
5227 a character device instead of a block device.
5228 (grub_util_check_char_device): New function.
5229
5230 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
5231 a character device instead of a block device.
5232
5233 * include/grub/util/getroot.h (grub_util_check_char_device): New
5234 prototype.
5235
5236 2009-04-11 David S. Miller <davem@davemloft.net>
5237
5238 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
5239 static libgcc.
5240 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
5241 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
5242 function, if present.
5243 (__bswapdi2): Likewise.
5244
5245 * include/grub/sparc64/ieee1275/boot.h: New file.
5246 * boot/sparc64/ieee1275/boot.S: Likewise.
5247 * boot/sparc64/ieee1275/diskboot.S: Likewise.
5248
5249 * kern/misc.c (grub_ltoa): New function.
5250 (grub_vsprintf): Use it to format 'long' integers.
5251
5252 2009-04-10 David S. Miller <davem@davemloft.net>
5253
5254 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
5255 slots are of type grub_ieee1275_cell_t.
5256 (grub_nand_read): Likewise.
5257 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
5258 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
5259 macros are used to compare values in arg/ret block of the call.
5260 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
5261 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
5262 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
5263 grub_ieee1275_instance_to_path, grub_ieee1275_write,
5264 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
5265 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
5266 grub_ieee1275_close, grub_ieee1275_set_property,
5267 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
5268 grub_ieee1275_cell_t.
5269 * kern/ieee1275/openfw.c (grub_map): Likewise.
5270 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
5271 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
5272
5273 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
5274 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
5275 (grub_devalias_iterate): Likewise.
5276
5277 2009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
5278
5279 UFS improvements
5280
5281 * fs/ufs.c (INODE_NBLOCKS): new definition
5282 (struct grub_ufs_dirent): added fields for non-BSD dirents
5283 (grub_ufs_get_file_block): fixed double indirect handling
5284 (grub_ufs_lookup_symlink): use more robust way to determine whether
5285 symlink is inline
5286 (grub_ufs_find_file): support for non-BSD dirents
5287 (grub_ufs_dir): support for non-BSD dirents
5288
5289 2009-04-10 Bean <bean123ch@gnail.com>
5290
5291 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
5292 attribute, otherwise the size would be wrong for i386 platform.
5293
5294 * include/grub/pci.h (grub_pci_read_word): New inline function.
5295 (grub_pci_read_byte): Likewise.
5296 (grub_pci_write): Likewise.
5297 (grub_pci_write_word): Likewise.
5298 (grub_pci_write_byte): Likewise.
5299
5300 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
5301
5302 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
5303 (find_framebuf): Scan pci to locate the frame buffer address.
5304
5305 * commands/efi/fixvideo.c: New file.
5306
5307 * commands/efi/loadbios.c: Likewise.
5308
5309 * commands/memrw.c: Likewise.
5310
5311 * util/grub-dumpbios.in: Likewise.
5312
5313 * conf/common.rmk (grub-dumpbios): New utility.
5314 (pkglib_MODULES): New module memrw.mod.
5315 (memrw_mod_SOURCE): New macro.
5316 (memrw_mod_CFLAGS): Likewise.
5317 (memrw_mod_LDFLAGS): Likewise.
5318
5319 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
5320 fixvideo.mod.
5321 (loadbios_mod_SOURCE): New macro.
5322 (loadbios_mod_CFLAGS): Likewise.
5323 (loadbios_mod_LDFLAGS): Likewise.
5324 (fixvideo_mod_SOURCE): Likewise.
5325 (fixvideo_mod_CFLAGS): Likewise.
5326 (fixvideo_mod_LDFLAGS): Likewise.
5327
5328 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
5329 fixvideo.mod.
5330 (loadbios_mod_SOURCE): New macro.
5331 (loadbios_mod_CFLAGS): Likewise.
5332 (loadbios_mod_LDFLAGS): Likewise.
5333 (fixvideo_mod_SOURCE): Likewise.
5334 (fixvideo_mod_CFLAGS): Likewise.
5335 (fixvideo_mod_LDFLAGS): Likewise.
5336
5337 2009-04-08 Felix Zielcke <fzielcke@z-51.de>
5338
5339 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
5340
5341 2009-04-07 David S. Miller <davem@davemloft.net>
5342
5343 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
5344 support for R_SPARC_OLO10 relocations. Fix compile warning for
5345 R_SPARC_WDISP30 case.
5346 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
5347
5348 2009-04-06 Pavel Roskin <proski@gnu.org>
5349
5350 * include/grub/misc.h (ARRAY_SIZE): New macro.
5351 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
5352 New macro.
5353 * loader/i386/linux.c (allocate_pages): Use free_pages().
5354 (grub_linux_unload): Don't use free_pages().
5355 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
5356 wrong index. Treat all other modes as text modes.
5357 (grub_cmd_linux): Initialize vid_mode unconditionally to
5358 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
5359
5360 * commands/help.c (print_command_help): Use cmd->prio, not
5361 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
5362
5363 2009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
5364
5365 Parttool
5366
5367 * parttool/pcpart.c: new file
5368 * commands/parttool.c: likewise
5369 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
5370 (parttool_mod_SOURCES): new variable
5371 (parttool_mod_CFLAGS): likewise
5372 (parttool_mod_LDFLAGS): likewise
5373 (pcpart_mod_SOURCES): likewise
5374 (pcpart_mod_CFLAGS): likewise
5375 (pcpart_mod_LDFLAGS): likewise
5376 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
5377 and parttool/pcpart.c
5378 * conf/i386-efi.rmk: likewise
5379 * conf/i386-ieee1275.rmk: likewise
5380 * conf/i386-pc.rmk: likewise
5381 * conf/powerpc-ieee1275.rmk: likewise
5382 * conf/sparc64-ieee1275.rmk: likewise
5383 * conf/x86_64-ieee1275.rmk: likewise
5384
5385 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
5386
5387 Support for mtime and further expandability of dir command
5388
5389 * include/grub/lib/datetime.h: moved to ...
5390 * include/grub/datetime.h: ... moved here and added
5391 declaration of grub_unixtime2datetime. All users updated
5392 * include/grub/fs.h: new syntax for dir and mtime functions in
5393 struct grub_fs
5394 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
5395 and GRUB_FSHELP_FLAGS_MASK
5396 * commands/ls.c (grub_ls_list_files): Write mtime in long format
5397 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
5398 (grub_ext2_mtime): new function
5399 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
5400 (grub_hfsplus_mtime): new function
5401 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
5402 (GRUB_UFS_ATTR_FILE): likewise
5403 (GRUB_UFS_ATTR_LNK): likewise
5404 (struct grub_ufs_sblock): new fields mtime
5405 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
5406 all users updated
5407 (grub_ufs_dir): mtime support
5408 (grub_ufs_mtime): new function
5409 * fs/affs.c (grub_affs_dir): use new dir syntax
5410 * fs/afs.c (grub_afs_dir): likewise
5411 * fs/cpio.c (grub_cpio_dir): likewise
5412 * fs/fat.c (grub_fat_find_dir): likewise
5413 * fs/hfs.c (grub_hfs_dir): likewise
5414 * fs/iso9660.c (grub_iso9660_dir): likewise
5415 * fs/jfs.c (grub_jfs_dir): likewise
5416 * fs/minix.c (grub_minix_dir): likewise
5417 * fs/ntfs.c (grub_ntfs_dir): likewise
5418 * fs/reiserfs.c (grub_reiserfs_dir): likewise
5419 * fs/sfs.c (grub_sfs_dir): likewise
5420 * fs/xfs.c (grub_xfs_dir): likewise
5421 * util/hostfs.c (grub_hostfs_dir): likewise
5422 * lib/datetime.c: moved to ...
5423 * normal/datetime.c: ... moved here
5424 (grub_unixtime2datetime): new function
5425 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
5426 * normal/completion.c (iterate_dir): use new dir syntax
5427 * normal/misc.c (grub_normal_print_device_info): tell the
5428 last modification time of a volume
5429 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
5430 * conf/common.rmk: added lib/datetime.c to ls.mod
5431 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
5432 (normal_mod_SOURCES): likewise
5433 (datetime_mod_SOURCES): Removed lib/datetime.c
5434 * conf/i386-efi.rmk: likewise
5435 * conf/i386-ieee1275.rmk: likewise
5436 * conf/i386-pc.rmk: likewise
5437 * conf/powerpc-ieee1275.rmk: likewise
5438 * conf/sparc64-ieee1275.rmk: likewise
5439 * conf/x86_64-efi.rmk: likewise
5440
5441 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
5442
5443 Trim trailing spaces in FAT label and support mtools-like labels
5444
5445 * fs/fat.c (grub_fat_iterate_dir): New function based
5446 on grub_fat_find_dir
5447 (grub_fat_find_dir): use grub_fat_iterate_dir
5448 (grub_fat_label): likewise
5449
5450 2009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
5451
5452 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
5453 and command.h
5454 remove extraneous kernel_elf_HEADERS
5455
5456 2009-04-04 Bean <bean123ch@gnail.com>
5457
5458 * include/grub/util/misc.h: Add dummy function fsync for mingw.
5459
5460 * util/misc.c: Likewise.
5461
5462 2009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
5463
5464 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
5465 instead of grub_printf.
5466
5467 2009-04-03 Robert Millan <rmh@aybabtu.com>
5468
5469 * loader/i386/linux.c (grub_linux_setup_video): Fill
5470 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
5471 values from `mode info' structure instead of hardcoded
5472 values.
5473
5474 2009-04-01 Pavel Roskin <proski@gnu.org>
5475
5476 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
5477 unused now.
5478 * genmk.rb: Likewise.
5479 * configure.ac: Likewise.
5480
5481 2009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
5482
5483 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
5484 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
5485
5486 2009-04-01 David S. Miller <davem@davemloft.net>
5487
5488 * normal/sparc64/setjmp.S: Fix setjmp implementation.
5489 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
5490 (grub_setjmp): Mark with 'returns_twice' attribute.
5491 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
5492 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
5493 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
5494
5495 2009-04-01 Robert Millan <rmh@aybabtu.com>
5496
5497 Reapply fix from 2008-07-28 which was accidentally reverted; also
5498 perform the same fix to a similar check in same function.
5499
5500 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
5501 with the same number are found, just use issue a warning with
5502 grub_dprintf(), as this error has been reported to be non-fatal.
5503
5504 2009-03-31 Pavel Roskin <proski@gnu.org>
5505
5506 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
5507 for cross-compilation.
5508
5509 2009-03-30 Robert Millan <rmh@aybabtu.com>
5510
5511 Fix i386-ieee1275 build.
5512
5513 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
5514 Remove declaration.
5515
5516 2009-03-30 Pavel Roskin <proski@gnu.org>
5517
5518 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
5519 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
5520 zero-terminated, rely only on the strlen value. Fix comparison
5521 of strings differing in length.
5522
5523 2009-03-30 Robert Millan <rmh@aybabtu.com>
5524
5525 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
5526 checking for abi version. Improve error messages on BIOS to notify
5527 user about `linux16' command.
5528
5529 2009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
5530
5531 Leak fixes
5532
5533 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
5534 in case of collision
5535 * disk/scsi.c (grub_scsi_open): free scsi in case of error
5536
5537 2009-03-29 Robert Millan <rmh@aybabtu.com>
5538
5539 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
5540 set `vid_mode' accordingly.
5541 (grub_linux_boot): Process `vid_mode' and set video mode.
5542
5543 2009-03-29 Robert Millan <rmh@aybabtu.com>
5544
5545 * util/grub.d/10_linux.in (linux_entry): New function.
5546 Factorize generation of Linux boot entries.
5547
5548 2009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
5549
5550 Make the format of Environment Block plain text. The boot loader
5551 part is not tested well yet.
5552
5553 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
5554 (buffer): Removed.
5555 (envblk): Likewise.
5556 (usage): Remove "info" and "clear". Add "unset". Update the
5557 description of "set", as this does not delete variables any
5558 longer.
5559 (create_envblk_file): Complete rewrite.
5560 (open_envblk_file): Likewise.
5561 (cmd_info): Removed.
5562 (cmd_list): Likewise.
5563 (cmd_set): Likewise.
5564 (cmd_clear): Likewise.
5565 (list_variables): New function.
5566 (write_envblk): Likewise.
5567 (set_variables): Likewise.
5568 (unset_variables): Likewise.
5569 (main): Complete rewrite.
5570
5571 * commands/loadenv.c (buffer): Removed.
5572 (envblk): Likewise.
5573 (open_envblk_file): New function.
5574 (read_envblk_file): Complete rewrite.
5575 (grub_cmd_load_env): Likewise.
5576 (grub_cmd_list_env): Likewise.
5577 (struct blocklist): New struct.
5578 (free_blocklists): New function.
5579 (check_blocklists): Likewise.
5580 (write_blocklists): Likewise.
5581 (grub_cmd_save_env): Complete rewrite.
5582
5583 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
5584 a plain text signature.
5585 (GRUB_ENVBLK_MAXLEN): Removed.
5586 (struct grub_envblk): Complete rewrite.
5587 (grub_envblk_find): Removed.
5588 (grub_envblk_insert): Likewise.
5589 (grub_envblk_open): New prototype.
5590 (grub_envblk_set): Likewise.
5591 (grub_envblk_delete): Put const to VALUE.
5592 (grub_envblk_iterate): Put const to NAME and VALUE.
5593 (grub_envblk_close): New prototype.
5594 (grub_envblk_buffer): New inline function.
5595 (grub_envblk_size): Likewise.
5596
5597 * lib/envblk.c: Include grub/mm.h.
5598 (grub_env_find): Removed.
5599 (grub_envblk_open): New function.
5600 (grub_envblk_close): Likewise.
5601 (escaped_value_len): Likewise.
5602 (find_next_line): Likewise.
5603 (grub_envblk_insert): Removed.
5604 (grub_envblk_set): New function.
5605 (grub_envblk_delete): Complete rewrite.
5606 (grub_envblk_iterate): Likewise.
5607
5608 2009-03-28 Robert Millan <rmh@aybabtu.com>
5609
5610 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
5611 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
5612 variables. Use 16-bit loader.
5613 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
5614 loader.
5615 * kern/i386/loader.S (grub_linux_boot): Rename to ...
5616 (grub_linux16_boot): ... this. Update all users.
5617 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
5618 (grub_linux_boot): ... this. Update all users.
5619
5620 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
5621 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
5622 commands to `linux16' and `initrd16'.
5623 (GRUB_MOD_FINI(linux)): Rename to ...
5624 (GRUB_MOD_FINI(linux16)): ... this.
5625
5626 2009-03-24 Pavel Roskin <proski@gnu.org>
5627
5628 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
5629 not just for compilation.
5630
5631 2009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
5632
5633 Move multiboot helper out of kernel
5634
5635 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
5636 `loader/i386/multiboot_helper.S'.
5637 * conf/i386-coreboot.rmk: Likewise
5638 * conf/i386-ieee1275.rmk: Likewise
5639
5640 * kern/i386/loader.S: Move multiboot helpers from here...
5641 * loader/i386/multiboot_helper.S: ...moved here
5642 * include/grub/i386/loader.h: Move declarations of multiboot
5643 helpers from here...
5644 * include/grub/i386/multiboot.h: ...moved here
5645 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
5646
5647 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
5648
5649 * kern/env.c (grub_env_context_open): Added an argument to specify
5650 whether a new context inherits exported variables from current
5651 one. This is useful when making a sandbox to interpret a config
5652 file.
5653 All callers updated.
5654
5655 * include/grub/env.h (grub_env_context_open): Updated the prototype.
5656
5657 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
5658
5659 * kern/env.c (grub_env_context_close): Fix memory leaks.
5660
5661 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
5662
5663 * normal/main.c (grub_normal_execute): Added an argument
5664 BATCH to specify if an interactive interface should be provided
5665 after reading a config file.
5666 All callers updated.
5667 (read_command_list): Prevent being executed twice.
5668 (read_fs_list): Likewise.
5669
5670 * include/grub/normal.h (grub_normal_execute): Updated the
5671 prototype.
5672
5673 2009-03-22 Pavel Roskin <proski@gno.org>
5674
5675 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
5676 _start.
5677 * kern/i386/pc/startup.S: Likewise.
5678 * kern/i386/efi/startup.S: Likewise.
5679 * kern/i386/ieee1275/startup.S: Likewise.
5680 * kern/i386/coreboot/startup.S: Likewise.
5681 * kern/x86_64/efi/startup.S: Likewise.
5682
5683 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
5684 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
5685 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
5686
5687 2009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
5688
5689 Bugfixes in multiboot for bugs uncovered by solaris kernel.
5690
5691 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
5692 limit detection.
5693 Use vaddr of correct segment for entry_point.
5694
5695 2009-03-21 Bean <bean123ch@gmail.com>
5696
5697 * commands/blocklist.c: Add include file <grub/command.h>, remove
5698 <grub/normal.h> and <grub/arg.h>.
5699 (grub_cmd_blocklist): Use the new command interface.
5700 (GRUB_MOD_INIT): Likewise.
5701 (GRUB_MOD_FINI): Likewise.
5702 * commands/boot.c: Likewise.
5703 * commands/cat.c: Likewise.
5704 * commands/cmp.c: Likewise.
5705 * commands/configfile.c: Likewise.
5706 * commands/crc.c: Likewise.
5707 * commands/echo.c: Likewise.
5708 * commands/halt.c: Likewise.
5709 * commands/handler.c: Likewise.
5710 * commands/hdparm.c: Likewise.
5711 * commands/help.c: Likewise.
5712 * commands/hexdump.c: Likewise.
5713 * commands/loadenv.c: Likewise.
5714 * commands/ls.c: Likewise.
5715 * commands/lsmmap.c: Likewise.
5716 * commands/lspci.c: Likewise.
5717 * commands/loadenv.c: Likewise.
5718 * commands/read.c: Likewise.
5719 * commands/reboot.c: Likewise.
5720 * commands/search.c: Likewise.
5721 * commands/sleep.c: Likewise.
5722 * commands/test.c: Likewise.
5723 * commands/usbtest.c: Likewise.
5724 * commands/videotest.c: Likewise.
5725 * commands/i386/cpuid.c: Likewise.
5726 * commands/i386/pc/halt.c: Likewise.
5727 * commands/i386/pc/play.c: Likewise.
5728 * commands/i386/pc/pxecmd.c: Likewise.
5729 * commands/i386/pc/vbeinfo.c: Likewise.
5730 * commands/i386/pc/vbetest.c: Likewise.
5731 * commands/ieee1275/suspend.c: Likewise.
5732 * disk/loopback.c: Likewise.
5733 * font/font_cmd.c: Likewise.
5734 * hello/hello.c: Likewise.
5735 * loader/efi/appleloader.c: Likewise.
5736 * loader/efi/chainloader.c: Likewise.
5737 * loader/i386/bsd.c: Likewise.
5738 * loader/i386/efi/linux.c: Likewise.
5739 * loader/i386/ieee1275/linux.c: Likewise.
5740 * loader/i386/linux.c: Likewise.
5741 * loader/i386/pc/chainloader.c: Likewise.
5742 * loader/i386/pc/linux.c: Likewise.
5743 * loader/powerpc/ieee1275/linux.c: Likewise.
5744 * loader/multiboot_loader.c: Likewise.
5745 * term/gfxterm.c: Likewise.
5746 * term/i386/pc/serial.c: Likewise.
5747 * term/terminfo.c: Likewise.
5748
5749 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
5750 * term/i386/pc/vga.c: Likewise.
5751 * video/readers/jpeg.c: Likewise.
5752 * video/readers/png.c: Likewise.
5753 * video/readers/tga.c: Likewise.
5754
5755 * util/grub-fstest (cmd_loopback): Removed.
5756 (cmd_blocklist): Likewise.
5757 (cmd_ls): Likewise.
5758 (grub_register_command): Likewise.
5759 (grub_unregister_command): Likewise.
5760 (execute_command): Use grub_command_find to locate command and execute
5761 it.
5762
5763 * include/grub/efi/chainloader.h: Removed.
5764 * loader/efi/chainloader_normal.c: Likewise.
5765 * loader/i386/bsd_normal.c: Likewise.
5766 * loader/i386/pc/chainloader_normal.c: Likewise.
5767 * loader/i386/pc/multiboot_normal.c: Likewise.
5768 * loader/linux_normal.c: Likewise.
5769 * loader/multiboot_loader_normal.c: Likewise.
5770 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
5771
5772 * gencmdlist.sh: Scan new registration command grub_register_extcmd
5773 and grub_register_command_p1.
5774
5775 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
5776 kern/command.c, lib/arg.c and commands/extcmd.c.
5777 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
5778 (minicmd_mod_SOURCES): New variable.
5779 (minicmd_mod_CFLAGS): Likewise.
5780 (minicmd_mod_LDFLAGS): Likewise.
5781 (extcmd_mod_SOURCES): Likewise.
5782 (extcmd_mod_CFLAGS): Likewise.
5783 (extcmd_mod_LDFLAGS): Likewise.
5784 (boot_mod_SOURCES): Removed.
5785 (boot_mod_CFLAGS): Likewise.
5786 (boot_mod_LDFLAGS): Likewise.
5787
5788 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
5789 kern/corecmd.c.
5790 (kernel_img_HEADERS): Add command.h.
5791 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
5792 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
5793 and lib/arg.c.
5794 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
5795 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
5796 remove the corresponding normal mode command.
5797 (normal_mod_SOURCES): Remove normal/arg.c.
5798 * conf/i386-coreboot.rmk: Likewise.
5799 * conf/i386-efi.rmk: Likewise.
5800 * conf/i386-ieee1275.rmk: Likewise.
5801 * conf/powerpc-ieee1275.rmk: Likewise.
5802 * conf/x86_64-efi.rmk: Likewise.
5803
5804 * include/grub/arg.h: Move from here ...
5805 * include/grub/lib/arg.h: ... to here.
5806
5807 * normal/arg.c: Move from here ...
5808 * lib/arg.c: ... to here.
5809
5810 * commands/extcmd.c: New file.
5811 * commands/minicmd.c: Likewise.
5812 * include/grub/command.h: Likewise.
5813 * include/grub/extcmd.h: Likewise.
5814 * kern/command.c: Likewise.
5815 * kern/corecmd.c: Likewise.
5816
5817 * kern/list.c (grub_list_iterate): Return int instead of void.
5818 (grub_list_insert): New function.
5819 (grub_prio_list_insert): Likewise.
5820
5821 * kern/rescue.c (grub_rescue_command): Removed.
5822 (grub_rescue_command_list): Likewise.
5823 (grub_rescue_register_command): Likewise.
5824 (grub_rescue_unregister_command): Likewise.
5825 (grub_rescue_cmd_boot): Move to minicmd.c
5826 (grub_rescue_cmd_help): Likewise.
5827 (grub_rescue_cmd_info): Likewise.
5828 (grub_rescue_cmd_boot): Likewise.
5829 (grub_rescue_cmd_testload): Likewise.
5830 (grub_rescue_cmd_dump): Likewise.
5831 (grub_rescue_cmd_rmmod): Likewise.
5832 (grub_rescue_cmd_lsmod): Likewise.
5833 (grub_rescue_cmd_exit): Likewise.
5834 (grub_rescue_print_devices): Moved to corecmd.c.
5835 (grub_rescue_print_files): Likewise.
5836 (grub_rescue_cmd_ls): Likewise.
5837 (grub_rescue_cmd_insmod): Likewise.
5838 (grub_rescue_cmd_set): Likewise.
5839 (grub_rescue_cmd_unset): Likewise.
5840 (attempt_normal_mode): Use grub_command_find to get normal module.
5841 (grub_enter_rescue_mode): Use grub_register_core_commands to register
5842 commands, remove grub_rescue_register_command calls.
5843
5844 * normal/command.c (grub_register_command): Removed.
5845 (grub_unregister_command): Likewise.
5846 (grub_command_find): Likewise.
5847 (grub_iterate_commands): Likewise.
5848 (rescue_command): Likewise.
5849 (export_command): Moved to corecmd.c.
5850 (set_command): Removed.
5851 (unset_command): Likewise.
5852 (insmod_command): Likewise.
5853 (rmmod_command): Likewise.
5854 (lsmod_command): Likewise.
5855 (grub_command_init): Likewise.
5856
5857 * normal/completion.c (iterate_command): Use cmd->prio to check for
5858 active command.
5859 (complete_arguments): Use grub_extcmd_t structure to find options.
5860 (grub_normal_do_completion): Change function grub_iterate_commands to
5861 grub_command_iterate.
5862
5863 * normal/execute.c (grub_script_execute_cmd): No need to parse
5864 argument here.
5865
5866 * normal/main.c (grub_dyncmd_dispatcher): New function.
5867 (read_command_list): Register unload commands as dyncmd.
5868 (grub_cmd_normal): Use new command interface, register rescue,
5869 unregister normal at entry, register normal, unregister rescue at exit.
5870
5871 * include/grub/list.h (grub_list_test_t): New type.
5872 (grub_list_iterate): Return int instead of void.
5873 (grub_list_insert): New function.
5874 (GRUB_AS_NAMED_LIST_P): New macro.
5875 (GRUB_AS_PRIO_LIST): Likewise.
5876 (GRUB_AS_PRIO_LIST_P): Likewise.
5877 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
5878 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
5879 (grub_prio_list): New structure.
5880 (grub_prio_list_insert): New function.
5881 (grub_prio_list_remove): New inline function.
5882
5883 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
5884 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
5885 (GRUB_COMMAND_FLAG_MENU): Likewise.
5886 (GRUB_COMMAND_FLAG_BOTH): Likewise.
5887 (GRUB_COMMAND_FLAG_TITLE): Likewise.
5888 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
5889 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
5890 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
5891 (grub_command): Likewise.
5892 (grub_register_command): Likewise.
5893 (grub_command_find): Likewise.
5894 (grub_iterate_commands): Likewise.
5895 (grub_command_init): Likewise.
5896 (grub_arg_parse): Likewise.
5897 (grub_arg_show_help): Likewise.
5898
5899 * include/grub/rescue.h (grub_rescue_register_command): Removed.
5900 (grub_rescue_unregister_command): Likewise.
5901
5902 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
5903 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
5904 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
5905
5906 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
5907 grub_rescue_cmd_initrd.
5908 * include/grub/i386/loader.h: Likewise.
5909 * include/grub/x86_64/loader.h: Likewise.
5910
5911 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
5912
5913 2009-03-21 Bean <bean123ch@gmail.com>
5914
5915 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
5916 instead of stat in mingw environment.
5917
5918 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
5919
5920 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
5921
5922 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
5923 AC_CONFIG_LINKS.
5924
5925 2009-03-21 Bean <bean123ch@gmail.com>
5926
5927 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
5928 out of range error.
5929
5930 2009-03-18 Michel Dänzer <michel@daenzer.net>
5931
5932 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
5933 checking inode flags for EXT4_EXTENTS_FLAG.
5934
5935 2009-03-18 Robert Millan <rmh@aybabtu.com>
5936
5937 * loader/i386/linux.c: Include `<grub/video.h>' and
5938 `<grub/i386/pc/vbe.h>'..
5939 (grub_linux_setup_video): New function. Loosely based on the EFI one.
5940 (grub_linux32_boot): Attempt to configure video settings with
5941 grub_linux_setup_video().
5942 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
5943 to avoid grub_console_fini() which would step out of graphical mode
5944 unconditionally.
5945
5946 2009-03-14 Robert Millan <rmh@aybabtu.com>
5947
5948 Fix build on powerpc.
5949 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
5950
5951 2009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
5952
5953 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
5954 background image command.
5955
5956 2009-03-12 Colin D Bennett <colin@gibibit.com>
5957
5958 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
5959 (grub_gfxterm_putchar): Extract pairs of identical calls to
5960 draw_cursor out of conditional blocks.
5961
5962 2009-03-11 Pavel Roskin <proski@gnu.org>
5963
5964 * fs/hfs.c (grub_hfs_strncasecmp): New function.
5965 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
5966
5967 2009-03-11 Robert Millan <rmh@aybabtu.com>
5968
5969 * loader/i386/multiboot_elfxx.c
5970 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
5971
5972 2009-03-11 Felix Zielcke <fzielcke@z-51.de>
5973
5974 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
5975 `kern/handler.c'.
5976
5977 2009-03-11 Robert Millan <rmh@aybabtu.com>
5978
5979 * loader/i386/multiboot.c (code_size): New variable.
5980 (grub_multiboot): Define offsets by adding to `code_size' rather
5981 than subtracting from `grub_multiboot_payload_size'. Provide
5982 4-byte alignment to MBI and others by increasing
5983 `boot_loader_name_length' appropriately.
5984
5985 * loader/i386/multiboot_elfxx.c
5986 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
5987
5988 2009-03-09 Felix Zielcke <fzielcke@z-51.de>
5989
5990 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
5991 `fs/ext2.c'.
5992
5993 2009-03-08 Robert Millan <rmh@aybabtu.com>
5994
5995 Make loader/i386/linux.c usable on i386-pc again.
5996
5997 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
5998 memory to heap.
5999 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
6000 `#error' stanza.
6001
6002 2009-03-07 Bean <bean123ch@gmail.com>
6003
6004 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
6005 allocation.
6006
6007 2009-03-06 Robert Millan <rmh@aybabtu.com>
6008
6009 Fix display issue on terminals with screen size other than 80x25
6010 (e.g. gfxterm with resolution higher than 640x480).
6011
6012 * normal/main.c (grub_normal_init_page): Display title text in a
6013 position relative to the center of the terminal instead of relying
6014 on a hardcoded offset.
6015
6016 2009-03-04 Robert Millan <rmh@aybabtu.com>
6017
6018 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
6019 installed.
6020
6021 * Makefile.in (host_kernel): New variable.
6022 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
6023 scripts instead of just the windows one.
6024 * configure.ac: Initialize and AC_SUBST `host_kernel'.
6025
6026 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
6027
6028 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
6029 `kern/handler.c'.
6030 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
6031 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
6032 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
6033 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
6034 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
6035 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
6036
6037 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
6038
6039 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
6040 or if there's no space for the disk label and print the partition number on a
6041 invalid magic.
6042
6043 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
6044
6045 * util/misc.c: Include <time.h>.
6046 (grub_millisleep): New function.
6047
6048 2009-03-04 Bean <bean123ch@gmail.com>
6049
6050 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
6051 another option -mno-red-zone.
6052
6053 * commands/handler.c: Change module description.
6054
6055 * kern/handler.c: Add missing space at the end of description line.
6056
6057 * kern/list.c: Likewise.
6058
6059 2009-03-03 Robert Millan <rmh@aybabtu.com>
6060
6061 Move more components to the relocation area, and fix mbi pointer
6062 handling to use the destination rather than the origin (thanks to
6063 Vladimir Serbinenko for spotting).
6064
6065 * loader/i386/multiboot.c (mbi_dest): New variable.
6066 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
6067 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
6068 relocation area.
6069
6070 2009-03-01 Bean <bean123ch@gmail.com>
6071
6072 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
6073 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
6074 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
6075 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
6076
6077 * loader/i386/efi/linux.c (acpi_guid): New variable.
6078 (acpi_guid): Likewise.
6079 (EBDA_SEG_ADDR): New constant.
6080 (LOW_MEM_ADDR): Likewise.
6081 (FAKE_EBDA_SEG): Likewise.
6082 (fake_bios_data): New function.
6083 (grub_linux_boot): Call fake_bios_data.
6084
6085 2009-03-01 Bean <bean123ch@gmail.com>
6086
6087 * commands/terminal.c: Removed.
6088
6089 * commands/handler.c: New file.
6090
6091 * include/grub/list.h: Likewise.
6092
6093 * include/grub/handler.h: Likewise.
6094
6095 * kern/list.c: Likewise.
6096
6097 * kern/handler.c: Likewise.
6098
6099 * kern/term.h: Include header file <grub/handler.h>.
6100 (grub_term_input): Move next field to the beginning.
6101 (grub_term_output): Likewise.
6102 (grub_term_input_class): New variable.
6103 (grub_term_output_class): Likewise.
6104 (grub_term_register_input): Changed to inline function.
6105 (grub_term_register_output): Likewise.
6106 (grub_term_unregister_input): Likewise.
6107 (grub_term_unregister_output): Likewise.
6108 (grub_term_set_current_input): Likewise.
6109 (grub_term_set_current_output): Likewise.
6110 (grub_term_get_current_input): Likewise.
6111 (grub_term_get_current_output): Likewise.
6112 (grub_term_iterate_input): Removed.
6113 (grub_term_iterate_output): Likewise.
6114
6115 * kern/term.c (grub_term_list_input): Removed.
6116 (grub_term_list_output): Likewise.
6117 (grub_term_input_class): New variable.
6118 (grub_term_output_class): Likewise.
6119 (grub_cur_term_input): Change variable as macro.
6120 (grub_cur_term_output): Likewise.
6121 (grub_term_register_input): Removed.
6122 (grub_term_register_output): Likewise.
6123 (grub_term_unregister_input): Likewise.
6124 (grub_term_unregister_output): Likewise.
6125 (grub_term_set_current_input): Likewise.
6126 (grub_term_set_current_output): Likewise.
6127 (grub_term_iterate_input): Likewise.
6128 (grub_term_iterate_output): Likewise.
6129 (grub_term_get_current_input): Likewise.
6130 (grub_term_get_current_output): Likewise.
6131
6132 * util/grub-editenv.c: Include header file <grub/handler.h>.
6133 (grub_term_get_current_input): Removed.
6134 (grub_term_get_current_output): Likewise.
6135 (grub_term_input_class): New variable.
6136 (grub_term_output_class): Likewise.
6137
6138 * util/grub-fstest.c (grub_term_get_current_input): Removed.
6139 (grub_term_get_current_output): Likewise.
6140 (grub_term_input_class): New variable.
6141 (grub_term_output_class): Likewise.
6142
6143 * util/grub-probe.c (grub_term_get_current_input): Removed.
6144 (grub_term_get_current_output): Likewise.
6145 (grub_term_input_class): New variable.
6146 (grub_term_output_class): Likewise.
6147
6148 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
6149 (grub_term_get_current_output): Likewise.
6150 (grub_term_input_class): New variable.
6151 (grub_term_output_class): Likewise.
6152
6153 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
6154 (terminal_mod_SOURCES): Likewise.
6155 (terminal_mod_CFLAGS): Likewise.
6156 (terminal_mod_LDFLAGS): Likewise.
6157
6158 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
6159 handler.c.
6160 (kernel_img_SOURCES): Add list.c and handler.c.
6161 (kernel_img_HEADERS): Add list.h and handler.h.
6162
6163 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
6164 handler.c.
6165 (kernel_mod_SOURCES): Add list.c and handler.c.
6166 (kernel_mod_HEADERS): Add list.h and handler.h.
6167
6168 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
6169 handler.c.
6170 (kernel_elf_SOURCES): Add list.c and handler.c.
6171 (kernel_elf_HEADERS): Add list.h and handler.h.
6172
6173 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
6174 handler.c.
6175 (kernel_elf_SOURCES): Add list.c and handler.c.
6176 (kernel_elf_HEADERS): Add list.h and handler.h.
6177
6178 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
6179 handler.c.
6180 (kernel_mod_SOURCES): Add list.c and handler.c.
6181 (kernel_mod_HEADERS): Add list.h and handler.h.
6182
6183 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
6184 handler.c.
6185 (kernel_elf_SOURCES): Add list.c and handler.c.
6186 (kernel_elf_HEADERS): Add list.h and handler.h.
6187
6188 2009-02-27 Robert Millan <rmh@aybabtu.com>
6189
6190 Factorize elf32 / elf64 code in Multiboot loader. This will
6191 prevent it from getting out of sync again.
6192
6193 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
6194 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
6195 grub_multiboot_load_elf64): Move from here ...
6196 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
6197 grub_multiboot_load_elf): ... to here (new file).
6198
6199 2009-02-27 Robert Millan <rmh@aybabtu.com>
6200
6201 * util/grub.d/10_linux.in: Rename "single-user mode" to
6202 "recovery mode".
6203
6204 2009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6205
6206 Don't leak in SCSI code.
6207 * disk/scsi.c (grub_scsi_close): free `scsi'.
6208
6209 2009-02-27 Robert Millan <rmh@aybabtu.com>
6210
6211 * loader/i386/pc/multiboot.c: Move from here ...
6212 * loader/i386/multiboot.c: ... to here. Update all users.
6213
6214 2009-02-27 Robert Millan <rmh@aybabtu.com>
6215
6216 Patch from Alexandre Bique <bique.alexandre@gmail.com>
6217 * util/i386/pc/grub-setup.c (setup): Fix directory path.
6218
6219 2009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
6220
6221 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
6222 b-tree.
6223
6224 2009-02-27 Robert Millan <rmh@aybabtu.com>
6225
6226 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
6227 `0x' qualifier as 0 when base is specified as parameter).
6228
6229 2009-02-24 Bean <bean123ch@gmail.com>
6230
6231 * configure.ac: Check for -mcmodel=large in x86_64 target.
6232
6233 * include/grub/efi/api.h (efi_call_10): New macro.
6234 (efi_wrap_10): New function.
6235
6236 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
6237 (GRUB_PE32_REL_BASED_HIGH): Likewise.
6238 (GRUB_PE32_REL_BASED_LOW): Likewise.
6239 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
6240 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
6241 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
6242 (GRUB_PE32_REL_BASED_SECTION): Likewise.
6243 (GRUB_PE32_REL_BASED_REL): Likewise.
6244 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
6245 (GRUB_PE32_REL_BASED_DIR64): Likewise.
6246 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
6247
6248 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
6249 issue.
6250
6251 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
6252 (efi_wrap_10): New function.
6253
6254 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
6255
6256 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
6257 MB/MBP model (NV chipset).
6258 (devdata_devs): Add devpath_5 to the list.
6259
6260 * load/i386/efi/linux.c (video_base): Remove variable.
6261 (RGB_MASK): New macro.
6262 (RGB_MAGIC): Likewise.
6263 (LINE_MIN): Likewise.
6264 (LINE_MAX): Likewise.
6265 (FBTEST_STEP): Likewise.
6266 (FBTEST_COUNT): Likewise.
6267 (fb_list): New variable.
6268 (grub_find_video_card): Remove function.
6269 (find_framebuf): New function.
6270 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
6271 line length.
6272
6273 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
6274 problem for x86_64.
6275
6276 2009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
6277
6278 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
6279
6280 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
6281 coding tool name.
6282
6283 2009-02-22 Robert Millan <rmh@aybabtu.com>
6284
6285 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
6286 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
6287 in our relocation, instead of using it directly from heap. Also
6288 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
6289
6290 2009-02-21 Robert Millan <rmh@aybabtu.com>
6291
6292 Implement USB keyboard support (based on patch by Marco Gerards)
6293
6294 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
6295 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
6296 (usb_keyboard_mod_LDFLAGS): New variables.
6297
6298 * term/usb_keyboard.c: New file.
6299
6300 2009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
6301
6302 Corrected wrong declaration
6303
6304 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
6305
6306 2009-02-14 Christian Franke <franke@computer.org>
6307
6308 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
6309 (grub_lspci_iter): Print class code and programming interface byte.
6310
6311 2009-02-14 Christian Franke <franke@computer.org>
6312
6313 * gendistlist.sh: Ignore `.svn' directories.
6314
6315 2009-02-14 Felix Zielcke <fzielcke@z-51.de>
6316
6317 * fs/fat.c: Add 2009 to Copyright line.
6318
6319 2009-02-14 Christian Franke <franke@computer.org>
6320
6321 * commands/hdparm.c: New file. Provides `hdparm' command
6322 which sends ATA commands via grub_disk_ata_pass_through ().
6323
6324 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
6325
6326 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
6327 and <grub/cpu/io.h> to include/grub/ata.h.
6328 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
6329 (GRUB_CDROM_SECTOR_SIZE): Remove.
6330 (GRUB_ATA_*): Move to include/grub/ata.h.
6331 (GRUB_ATAPI_*): Likewise.
6332 (enum grub_ata_commands): Likewise.
6333 (enum grub_ata_timeout_milliseconds): Likewise.
6334 (struct grub_ata_device): Likewise.
6335 (grub_ata_regset): Likewise.
6336 (grub_ata_regget): Likewise.
6337 (grub_ata_regset2): Likewise.
6338 (grub_ata_regget2): Likewise.
6339 (grub_ata_check_ready): Likewise.
6340 (grub_ata_wait_not_busy): Remove static, exported in
6341 include/grub/ata.h.
6342 (grub_ata_wait_drq): Likewise.
6343 (grub_ata_pio_read): Likewise.
6344
6345 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
6346 function for hdparm.mod.
6347
6348 * include/grub/ata.h: New file, contains declarations from
6349 disk/ata.c.
6350 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
6351
6352 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
6353 (grub_disk_ata_pass_through): New exported variable.
6354
6355 * kern/disk.c (grub_disk_ata_pass_through): New variable.
6356
6357 2009-02-13 Colin D Bennett <colin@gibibit.com>
6358
6359 Support multiple fallback entries, and provide an API to support
6360 executing default+fallback menu entries. Renamed the `terminal' menu
6361 viewer to `text'.
6362
6363 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
6364 variable declaration.
6365 (grub_menu_execute_callback): New structure declaration.
6366 (grub_menu_execute_callback_t): New typedef.
6367 (grub_menu_execute_with_fallback): New function declaration.
6368 (grub_menu_get_entry): Likewise.
6369 (grub_menu_get_timeout): Likewise.
6370 (grub_menu_set_timeout): Likewise.
6371
6372 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
6373
6374 * normal/menu.c (grub_wait_after_message): Moved to
6375 `normal/menu_text.c'.
6376 (draw_border): Likewise.
6377 (print_message): Likewise.
6378 (print_entry): Likewise.
6379 (print_entries): Likewise.
6380 (grub_menu_init_page): Likewise.
6381 (get_entry_number): Likewise.
6382 (print_timeout): Likewise.
6383 (run_menu): Likewise.
6384 (grub_menu_execute_entry): Likewise.
6385 (show_text_menu): Likewise.
6386 (get_and_remove_first_entry_number): New function.
6387 (grub_menu_execute_with_fallback): Likewise.
6388 (get_entry): Renamed to ...
6389 (grub_menu_get_entry): .. this and made it global.
6390 (get_timeout): Renamed to ...
6391 (grub_menu_get_timeout): ... this and made it global.
6392 (set_timeout): Renamed to ...
6393 (grub_menu_set_timeout): ... this and made it global.
6394 (grub_normal_terminal_menu_viewer): Renamed to ...
6395 (grub_normal_text_menu_viewer): ... this.
6396
6397 * normal/menu_text.c: New file. Extracted text-menu-specific code
6398 from normal/menu.c.
6399
6400 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
6401 (normal_mod_SOURCES): Likewise.
6402
6403 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
6404 (normal_mod_SOURCES): Likewise.
6405
6406 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
6407 (normal_mod_SOURCES): Likewise.
6408
6409 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
6410 (normal_mod_SOURCES): Likewise.
6411
6412 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
6413 (normal_mod_SOURCES): Likewise.
6414
6415 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
6416 (normal_mod_SOURCES): Likewise.
6417
6418 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
6419 (normal_mod_SOURCES): Likewise.
6420
6421 2009-02-11 Robert Millan <rmh@aybabtu.com>
6422
6423 * util/grub.d/00_header.in: Update old reference to `font' command.
6424
6425 2009-02-10 Felix Zielcke <fzielcke@z-51.de>
6426
6427 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
6428
6429 Based on patch from Javier Martín.
6430
6431 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
6432
6433 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
6434 to avoid false positives with FAT.
6435 (grub_fstest_SOURCES): Likewise.
6436 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
6437 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
6438 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
6439 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
6440 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
6441 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
6442
6443 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
6444
6445 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
6446 bpb.version_specific.fat12_or_fat16.fstype and
6447 bpb.version_specific.fat32.fstype.
6448
6449 2009-02-08 Robert Millan <rmh@aybabtu.com>
6450
6451 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
6452
6453 2009-02-08 Robert Millan <rmh@aybabtu.com>
6454
6455 * Makefile.in (host_os, host_cpu): New variables.
6456 (target_os): Remove. Update all users.
6457
6458 2009-02-08 Marco Gerards <marco@gnu.org>
6459
6460 * Makefile.in (enable_grub_emu_usb): New variable.
6461 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
6462 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
6463 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
6464 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
6465 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
6466 `usbtest.mod' and `usbms.mod'.
6467 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
6468 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
6469 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
6470 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
6471 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
6472 variables.
6473
6474 * disk/usbms.c: New file.
6475
6476 * include/grub/usb.h: Likewise.
6477
6478 * include/grub/usbtrans.h: Likewise.
6479
6480 * include/grub/usbdesc.h: Likewise.
6481
6482 * bus/usb/usbtrans.c: Likewise.
6483
6484 * bus/usb/ohci.c: Likewise.
6485
6486 * bus/usb/uhci.c: Likewise.
6487
6488 * bus/usb/usbhub.c: Likewise.
6489
6490 * bus/usb/usb.c: Likewise.
6491
6492 * commands/usbtest.c: Likewise.
6493
6494 * util/usb.c: Likewise.
6495
6496 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
6497
6498 * configure.ac: Test for libusb presence.
6499
6500 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
6501
6502 2009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
6503
6504 * kern/mm.c: Add more comments.
6505
6506 2009-02-08 Robert Millan <rmh@aybabtu.com>
6507
6508 Patch from Javier Martín.
6509 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
6510 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
6511
6512 2009-02-08 Robert Millan <rmh@aybabtu.com>
6513
6514 * fs/cpio.c: Split tar functionality to ...
6515 * fs/tar.c: ... here (new file). Update all users.
6516
6517 2009-02-07 Robert Millan <rmh@aybabtu.com>
6518
6519 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
6520 backward-incompatible features.
6521
6522 Based on patch from Javier Martín, with some adjustments.
6523
6524 2009-02-07 Michael Scherer <misc@mandriva.org>
6525
6526 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
6527
6528 2009-02-07 Robert Millan <rmh@aybabtu.com>
6529
6530 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
6531 position of `disk/lvm.c' to ensure grub_init_all() always picks it
6532 after the RAID stuff.
6533
6534 2009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
6535
6536 Fixes problem when running vbetest command as reported by
6537 Vladimir Serbinenko <phcoder@gmail.com>.
6538
6539 * (grub_vbe_set_video_mode): Fixed problem with text modes.
6540
6541 2009-02-04 Felix Zielcke <fzielcke@z-51.de>
6542
6543 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
6544 /dev/md/NpN style mdraid devices.
6545
6546 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
6547
6548 * util/unifont2pff.rb: Remove.
6549
6550 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
6551
6552 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
6553 `#'.
6554
6555 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
6556
6557 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
6558 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
6559 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
6560 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
6561 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
6562 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
6563 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
6564
6565 2009-02-02 Christian Franke <franke@computer.org>
6566
6567 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
6568
6569 2009-02-01 Felix Zielcke <fzielcke@z-51.de>
6570
6571 * INSTALL: Note that we now require at least autoconf 2.59 and
6572 that LZO is optional.
6573
6574 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
6575
6576 Base on patch on bug #24154 created by Tomas Tintera
6577 <trosos@seznam.cz>.
6578
6579 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
6580
6581 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
6582
6583 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
6584 <bero@arklinux.org>.
6585
6586 * normal/parser.y (script_init): Add missing semicolon.
6587
6588 2009-01-31 Colin D Bennett <colin@gibibit.com>
6589
6590 * normal/main.c: Add include to grub/menu_viewer.h.
6591 (free_menu_entry_classes): Added.
6592 (grub_normal_menu_addentry): Added class property handling.
6593 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
6594 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
6595
6596 * normal/menu_viewer.c: New file.
6597
6598 * normal/menu.c (run_menu_entry): Renamed to ...
6599 (grub_menu_execute_entry): ... this and made it as global.
6600 (grub_menu_run): Renamed to ...
6601 (show_text_menu): ... this and made it local.
6602 (show_text_menu): Adapt to new function names.
6603 (grub_normal_terminal_menu_viewer): New global variable.
6604
6605 * include/grub/menu.h: New file.
6606
6607 * include/grub/menu_viewer.h: New file.
6608
6609 * include/grub/normal.h: Added include to grub/menu.h.
6610 (grub_menu_entry): Moved to include/grub/menu.h.
6611 (grub_menu_entry_t): Likewise.
6612 (grub_menu): Likewise.
6613 (grub_menu_t): Likewise.
6614 (grub_normal_terminal_menu_viewer): Added.
6615 (grub_menu_execute_entry): Likewise.
6616 (grub_menu_run): Removed.
6617
6618 * DISTLIST: Added include/grub/menu.h.
6619 Added include/grub/menu_viewer.h.
6620 Added normal/menu_viewer.c.
6621
6622 2009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
6623
6624 * normal/execute.c (grub_script_execute_menuentry): Changed to use
6625 arglist for menutitle arguments.
6626
6627 * normal/main.c (grub_normal_menu_addentry): Likewise.
6628
6629 * normal/parser.y (menuentry): Likewise.
6630
6631 * normal/script.c (grub_script_create_cmdmenu): Likewise.
6632
6633 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
6634 (grub_script_create_cmdmenu): Likewise.
6635
6636 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
6637
6638 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
6639 changes.
6640
6641 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
6642
6643 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
6644
6645 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
6646
6647 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
6648
6649 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
6650
6651 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
6652
6653 2009-01-30 Christian Franke <franke@computer.org>
6654
6655 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
6656 in option help text.
6657
6658 2009-01-27 Pavel Roskin <proski@gnu.org>
6659
6660 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
6661
6662 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
6663
6664 * commands/lsmmap.c: Add include to grub/machine/memory.h.
6665
6666 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
6667
6668 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
6669 unregister function.
6670
6671 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
6672
6673 * disk/scsi.c (grub_scsi_read): Fix sign problem.
6674
6675 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
6676
6677 * util/grub-mkfont.c (usage): Fix typo.
6678
6679 * util/elf/grub-mkimage.c (load_modules): Fix warning.
6680
6681 2009-01-26 Daniel Mierswa <impulze@impulze.org>
6682
6683 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
6684
6685 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
6686
6687 * kern/misc.c (grub_strcasecmp): New function.
6688 (grub_strcasecmp): Use grub_size_t instead of int for length.
6689 Fix return value.
6690 * include/grub/misc.h: Update function prototypes.
6691
6692 2009-01-26 Robert Millan <rmh@aybabtu.com>
6693
6694 * configure.ac: Fix cross-compilation check.
6695
6696 2009-01-22 Christian Franke <franke@computer.org>
6697
6698 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
6699 (precision) digit string. Allow `.format2' without `format1' (width).
6700 Limit input chars for `%s' output to `format2' if specified. This is
6701 compatible with standard printf ().
6702
6703 2009-01-22 Christian Franke <franke@computer.org>
6704
6705 * disk/ata.c (grub_ata_wait_status): Replace by ...
6706 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
6707 other status bits may be invalid while BSY is asserted.
6708 (grub_ata_check_ready): New function.
6709 (grub_ata_cmd): Removed.
6710 (grub_ata_wait_drq): New function.
6711 (grub_ata_strncpy): Remove inline.
6712 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
6713 and error check now done by grub_ata_wait_drq ().
6714 (grub_ata_pio_write): Likewise.
6715 (grub_atapi_identify): Set DEV before check for !BSY. Use
6716 grub_ata_wait_drq () to wait for data.
6717 (grub_ata_device_initialize): Add status register check to
6718 detect missing SATA slave devices. Add debug messages.
6719 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
6720 (grub_atapi_packet): Set DEV before check for !BSY. Replace
6721 transfer loop by grub_ata_pio_write ().
6722 (grub_ata_identify): Set DEV before check for !BSY. Use
6723 grub_ata_wait_drq () to wait for data.
6724 (grub_ata_setaddress): Set DEV before check for !BSY.
6725 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
6726 read/write in one loop. Fix invalid command on write. Fix incomplete
6727 command on (size % batch) == 0. Add missing error check after write of
6728 last block. Add debug messages.
6729 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
6730
6731 2009-01-19 Christian Franke <franke@computer.org>
6732
6733 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
6734 (GRUB_ATAPI_IREASON_*): Likewise.
6735 (grub_ata_pio_write): Fix timeout error return.
6736 (grub_atapi_identify): Add grub_ata_wait () after cmd.
6737 (grub_atapi_wait_drq): New function.
6738 (grub_atapi_packet): New parameter `size'.
6739 Use grub_atapi_wait_drq () and direct write instead of
6740 grub_ata_pio_write ().
6741 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
6742 reads the number of bytes requested by the device for each DRQ
6743 assertion.
6744 (grub_atapi_write): Remove old implementation, return not
6745 implemented instead.
6746
6747 2009-01-19 Christian Franke <franke@computer.org>
6748
6749 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
6750 of 512 to calculate data size.
6751 (grub_scsi_read12): Likewise.
6752 (grub_scsi_write10): Likewise.
6753 (grub_scsi_write12): Likewise.
6754 (grub_scsi_read): Adjust size according to blocksize.
6755 Add checks for invalid blocksize and unaligned transfer.
6756
6757 2009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
6758
6759 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
6760
6761 * term/gfxterm.c (write_char): Fix background rendering for wide
6762 width glyphs.
6763
6764 2009-01-19 Robert Millan <rmh@aybabtu.com>
6765
6766 * config.guess: Update to latest version from config git.
6767 * config.sub: Likewise.
6768
6769 2009-01-17 Felix Zielcke <fzielcke@z-51.de>
6770
6771 * Makefile.in: Change font compilation to use new grub-mkfont instead
6772 of java version.
6773
6774 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
6775 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
6776 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
6777 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
6778 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
6779 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
6780 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
6781 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
6782 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
6783
6784 2009-01-16 Christian Franke <franke@computer.org>
6785
6786 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
6787 (enum grub_ata_timeout_milliseconds): New enum.
6788 (grub_ata_wait_status): Add parameter milliseconds.
6789 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
6790 recovery from timed-out commands.
6791 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
6792 return grub_errno instead of REG_ERROR.
6793 (grub_ata_pio_write): Add parameter milliseconds.
6794 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
6795 Pass milliseconds to grub_ata_wait_status () and
6796 grub_ata_pio_read ().
6797 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
6798 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
6799 grub_ata_wait_status (). Fix IDENTIFY timeout check.
6800 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
6801 It is not suitable for device detection, because DEV bit is ignored,
6802 the command may run too long, and not all devices set the signature
6803 properly.
6804 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
6805 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
6806 Fix device selection, DEV bit must be set first to address the registers
6807 of the correct device.
6808 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
6809 grub_ata_pio_read/write ().
6810 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
6811 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
6812
6813 2009-01-13 Carles Pina i Estany <carles@pina.cat>
6814
6815 * util/grub-editenv.c (main): Use fseeko(), not fseek().
6816
6817 2009-01-13 Bean <bean123ch@gmail.com>
6818
6819 * util/grub-mkfont.c (write_font): forget to remove some debug code.
6820
6821 2009-01-13 Bean <bean123ch@gmail.com>
6822
6823 * Makefile.in: (enable_grub_mkfont): New variable.
6824 (freetype_cflags): Likewise.
6825 (freetype_libs): Likewise.
6826
6827 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
6828 (grub_mkfont_SOURCES): New variable.
6829 (grub_mkfont_CFLAGS): Likewise.
6830 (grub_mkfont_LDFLAGS): Likewise.
6831
6832 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
6833 library if `--enable-grub-mkfont' is requested.
6834 (enable_grub_mkfont): New variable.
6835 (freetype_cflags): Likewise.
6836 (freetype_libs): Likewise.
6837
6838 * util/grub-mkfont.c: New file.
6839
6840 2009-01-12 Christian Franke <franke@computer.org>
6841
6842 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
6843 mode check. Fix setting of compat_use[].
6844
6845 2009-01-10 Robert Millan <rmh@aybabtu.com>
6846
6847 Update a few copyright years which we forgot to do in 2008 (only for
6848 files whose changes made in 2008 were copyright-significant)
6849
6850 * Makefile.in: Add 2008 to Copyright line.
6851 * disk/ieee1275/ofdisk.c: Likewise.
6852 * disk/efi/efidisk.c: Likewise.
6853 * kern/dl.c: Likewise.
6854 * kern/sparc64/ieee1275/init.c: Likewise.
6855 * kern/mm.c: Likewise.
6856 * kern/efi/mm.c: Likewise.
6857 * boot/i386/pc/boot.S: Likewise.
6858 * genfslist.sh: Likewise.
6859 * fs/iso9660.c: Likewise.
6860 * fs/hfs.c: Likewise.
6861 * fs/jfs.c: Likewise.
6862 * fs/minix.c: Likewise.
6863 * fs/ufs.c: Likewise.
6864 * gensymlist.sh.in: Likewise.
6865 * genkernsyms.sh.in: Likewise.
6866 * include/grub/misc.h: Likewise.
6867 * include/grub/types.h: Likewise.
6868 * include/grub/symbol.h: Likewise.
6869 * include/grub/elf.h: Likewise.
6870 * include/grub/kernel.h: Likewise.
6871 * include/grub/disk.h: Likewise.
6872 * include/grub/dl.h: Likewise.
6873 * include/grub/i386/linux.h: Likewise.
6874 * include/grub/i386/pc/biosdisk.h: Likewise.
6875 * include/grub/efi/api.h: Likewise.
6876 * include/grub/efi/pe32.h: Likewise.
6877 * include/grub/util/misc.h: Likewise.
6878 * normal/execute.c: Likewise.
6879 * normal/arg.c: Likewise.
6880 * normal/completion.c: Likewise.
6881 * normal/lexer.c: Likewise.
6882 * normal/parser.y: Likewise.
6883 * normal/misc.c: Likewise.
6884 * commands/i386/pc/vbeinfo.c: Likewise.
6885 * commands/hexdump.c: Likewise.
6886 * commands/terminal.c: Likewise.
6887 * commands/ls.c: Likewise.
6888 * commands/help.c: Likewise.
6889 * partmap/pc.c: Likewise.
6890 * loader/efi/chainloader.c: Likewise.
6891 * loader/multiboot_loader.c: Likewise.
6892 * loader/i386/pc/multiboot2.c: Likewise.
6893 * term/efi/console.c: Likewise.
6894 * term/i386/pc/serial.c: Likewise.
6895 * util/lvm.c: Likewise.
6896 * util/console.c: Likewise.
6897 * util/i386/efi/grub-mkimage.c: Likewise.
6898 * util/raid.c: Likewise.
6899
6900 2009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
6901
6902 * commands/videotest.c: Removed include to grub/machine/memory.h.
6903
6904 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
6905 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
6906 (video_mod_SOURCES): Removed.
6907 (video_mod_CFLAGS): Likewise.
6908 (video_mod_LDFLAGS): Likewise.
6909 (gfxterm_mod_SOURCES): Likewise.
6910 (gfxterm_mod_CFLAGS): Likewise.
6911 (gfxterm_mod_LDFLAGS): Likewise.
6912 (videotest_mod_SOURCES): Likewise.
6913 (videotest_mod_CFLAGS): Likewise.
6914 (videotest_mod_LDFLAGS): Likewise.
6915 (bitmap_mod_SOURCES): Likewise.
6916 (bitmap_mod_CFLAGS): Likewise.
6917 (bitmap_mod_LDFLAGS): Likewise.
6918 (tga_mod_SOURCES): Likewise.
6919 (tga_mod_CFLAGS): Likewise.
6920 (tga_mod_LDFLAGS): Likewise.
6921 (jpeg_mod_SOURCES): Likewise.
6922 (jpeg_mod_CFLAGS): Likewise.
6923 (jpeg_mod_LDFLAGS): Likewise.
6924 (png_mod_SOURCES): Likewise.
6925 (png_mod_CFLAGS): Likewise.
6926 (png_mod_LDFLAGS): Likewise.
6927
6928 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
6929 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
6930 (video_mod_SOURCES): Added.
6931 (video_mod_CFLAGS): Likewise.
6932 (video_mod_LDFLAGS): Likewise.
6933 (videotest_mod_SOURCES): Likewise.
6934 (videotest_mod_CFLAGS): Likewise.
6935 (videotest_mod_LDFLAGS): Likewise.
6936 (bitmap_mod_SOURCES): Likewise.
6937 (bitmap_mod_CFLAGS): Likewise.
6938 (bitmap_mod_LDFLAGS): Likewise.
6939 (tga_mod_SOURCES): Likewise.
6940 (tga_mod_CFLAGS): Likewise.
6941 (tga_mod_LDFLAGS): Likewise.
6942 (jpeg_mod_SOURCES): Likewise.
6943 (jpeg_mod_CFLAGS): Likewise.
6944 (jpeg_mod_LDFLAGS): Likewise.
6945 (png_mod_SOURCES): Likewise.
6946 (png_mod_CFLAGS): Likewise.
6947 (png_mod_LDFLAGS): Likewise.
6948 (gfxterm_mod_SOURCES): Likewise.
6949 (gfxterm_mod_CFLAGS): Likewise.
6950 (gfxterm_mod_LDFLAGS): Likewise.
6951
6952 * term/gfxterm.c: Removed include to grub/machine/memory.h,
6953 grub/machine/console.h.
6954
6955 2009-01-04 Jerone Young <jerone@gmail.com>
6956
6957 Make on screen instructions clearer
6958
6959 Based on patch created by Jidanni <jidanni@jidanni.org>
6960
6961 * normal/menu.c: print clearer instructions on the screen
6962
6963 2009-01-02 Colin D Bennett <colin@gibibit.com>
6964
6965 New font engine.
6966
6967 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
6968 build system and fixed gfxterm.c to work with different sized fonts.
6969
6970 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
6971
6972 * configure: Re-generated.
6973
6974 * DISTLIST: Removed font/manager.c.
6975 Added font/font.c.
6976 Added font/font_cmd.c.
6977
6978 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
6979 compilation.
6980
6981 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
6982
6983 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
6984
6985 * kern/term.c: Changed users of grub_utf8_to_ucs4.
6986
6987 * normal/menu.c: Likewise.
6988
6989 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
6990 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
6991
6992 * include/grub/font.h: Replaced with new file.
6993
6994 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
6995 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
6996 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
6997 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
6998 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
6999 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
7000 fg_red, fg_green, fg_blue, fg_alpha.
7001 (grub_video_adapter): Removed blit_glyph.
7002 (grub_video_blit_glyph): Removed.
7003
7004 * font/manager.c: Removed file.
7005
7006 * font/font.c: New file.
7007
7008 * font/font_cmd.c: Likewise.
7009
7010 * video/video.c (grub_video_blit_glyph): Removed.
7011
7012 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
7013 (grub_video_vbe_map_rgba): Likewise.
7014 (grub_video_vbe_unmap_color_int): Likewise.
7015 (grub_video_vbe_blit_glyph): Removed.
7016 (grub_video_vbe_adapter): Removed blit_glyph.
7017
7018 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
7019 (get_pixel): Likewise.
7020 (set_pixel): Likewise.
7021
7022 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
7023
7024 * term/gfxterm.c: Adapted to new font engine.
7025
7026 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
7027
7028 * term/i386/pc/vga.c: Likewise.
7029
7030 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
7031
7032 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
7033
7034 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
7035
7036 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
7037
7038 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
7039
7040 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
7041
7042 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
7043
7044 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
7045
7046 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
7047
7048 * util/grub.d/00_header.in: Changed to use new loadfont command.
7049
7050 * util/grub-mkconfig_lib.in: Changed font extension.
7051
7052 2008-12-28 Felix Zielcke <fzielcke@z-51.de>
7053
7054 * util/getroot.c (grub_util_get_grub_dev): Add support for
7055 /dev/md/dNNpNN style partitionable mdraid devices.
7056
7057 2008-12-12 Alex Smith <alex@alex-smith.me.uk>
7058
7059 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
7060 at a time limit of the PXE TFTP API correctly.
7061 (grub_pxefs_close): Likewise.
7062
7063 2008-11-29 Robert Millan <rmh@aybabtu.com>
7064
7065 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
7066 grub_ata_device_initialize() calls.
7067
7068 2008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
7069
7070 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
7071 iteration failed.
7072 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
7073
7074 2008-11-28 Robert Millan <rmh@aybabtu.com>
7075
7076 Fix build on powerpc-ieee1275. Based on patch created by
7077 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
7078 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
7079 `kern/ieee1275/mmap.c'.
7080 * include/grub/powerpc/ieee1275/memory.h: New file.
7081
7082 Provide grub-install on coreboot.
7083 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
7084 (grub_install_SOURCES): New variable.
7085 * util/i386/pc/grub-install.in: Add a few condition checks to make it
7086 usable on coreboot.
7087
7088 2008-11-25 Felix Zielcke <fzielcke@z-51.de>
7089
7090 * util/grub-fstest.c (grub_term_get_current_input): Change return type
7091 to `grub_term_input_t'.
7092 (grub_term_get_current_output): Change return type to
7093 `grub_term_output_t'.
7094
7095 2008-11-22 Robert Millan <rmh@aybabtu.com>
7096
7097 Fix breakage on coreboot due to declaration mismatch.
7098 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
7099 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
7100 grub_vga_text_cls().
7101
7102 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
7103 comments. Avoid copying one more byte than necessary (just in case).
7104
7105 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
7106 to 0x200000 (avoids trouble with some OFW implementations, and matches
7107 with the one in Yaboot).
7108 Reported by Manoel Abranches
7109
7110 2008-11-20 Robert Millan <rmh@aybabtu.com>
7111
7112 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
7113 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
7114
7115 * util/grub-mkconfig_lib.in (grub_warn): New function.
7116 (convert_system_path_to_grub_path): Use grub_warn() when issuing
7117 warnings, to obtain consistent formatting.
7118 * util/grub.d/00_header.in: Likewise.
7119 * util/update-grub_lib.in: Likewise.
7120
7121 * loader/i386/linux.c (allocate_pages): Fix a warning.
7122 Move comment text to `#error' stanza.
7123
7124 Harmonize ieee1275's grub_available_iterate() with the generic
7125 grub_machine_mmap_iterate() interface (fixes a recently-introduced
7126 build problem on i386-ieee1275):
7127 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
7128 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
7129 parameter `type'. Update all users of this function.
7130 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
7131 `kern/ieee1275/mmap.c'.
7132 * kern/ieee1275/init.c
7133 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
7134 with ...
7135 (grub_machine_mmap_iterate): ... this.
7136 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
7137 return type to `grub_err_t'. Update all implementations of this
7138 function prototype.
7139 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
7140 Likewise.
7141
7142 Add `lsmmap' command (lists firmware-provided memory map):
7143 * commands/lsmmap.c: New file.
7144 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
7145 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
7146 variables.
7147 * conf/powerpc-ieee1275.rmk: Likewise.
7148 * conf/i386-coreboot.rmk: Likewise.
7149 * conf/i386-ieee1275.rmk: Likewise.
7150
7151 2008-11-19 Robert Millan <rmh@aybabtu.com>
7152
7153 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
7154 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
7155 constraints to initrd allocation (based on code from
7156 loader/i386/pc/linux.c). Without them, initrd was allocated too high
7157 for Linux to find it.
7158
7159 2008-11-14 Robert Millan <rmh@aybabtu.com>
7160
7161 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
7162 order to cope with duplicate slashes.
7163
7164 2008-11-14 Robert Millan <rmh@aybabtu.com>
7165
7166 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
7167 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
7168 don't want to mess with lower memory, because it is used in the Linux
7169 loader.
7170
7171 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
7172 an appropriate place in lower memory, between 0x10000 and 0x90000,
7173 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
7174 is in our heap (probably as a result of it being corrupted during
7175 decompression). Add #error instance with comment to explain why this
7176 loader isn't currently usable on PC/BIOS.
7177
7178 2008-11-14 Robert Millan <rmh@aybabtu.com>
7179
7180 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
7181 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
7182
7183 2008-11-12 Robert Millan <rmh@aybabtu.com>
7184
7185 Make loader/i386/linux.c buildable on i386-pc (although disabled).
7186
7187 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
7188 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
7189 from here ...
7190 * include/grub/i386/pc/memory.h: ... to here.
7191
7192 2008-11-12 Robert Millan <rmh@aybabtu.com>
7193
7194 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
7195 split).
7196
7197 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
7198 (grub_console_cur_color, grub_console_real_putchar)
7199 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
7200 (grub_console_setcolorstate, grub_console_setcolor)
7201 (grub_console_getcolor): Move from here ...
7202 * include/grub/i386/vga_common.h: ... to here (new file).
7203
7204 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
7205 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
7206 `<grub/i386/io.h>'.
7207 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
7208 `<grub/i386/vga_common.h>'.
7209
7210 2008-11-12 Robert Millan <rmh@aybabtu.com>
7211
7212 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
7213 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
7214 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
7215 variables.
7216 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
7217 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
7218
7219 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
7220 grub_console_init() with call to grub_vga_text_init().
7221 (grub_machine_fini): Replace call to
7222 grub_console_fini() with call to grub_vga_text_fini() and
7223 grub_at_keyboard_fini().
7224
7225 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
7226 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
7227 (grub_console_setcolorstate, grub_console_setcolor)
7228 (grub_console_getcolor): New function prototypes.
7229
7230 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
7231 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
7232 (grub_vga_text_setcursor): Static-ize.
7233 (grub_vga_text_term): New structure.
7234 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
7235
7236 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
7237 (grub_console_cur_color, grub_console_standard_color)
7238 (grub_console_normal_color, grub_console_highlight_color)
7239 (map_char, grub_console_putchar, grub_console_getcharwidth)
7240 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
7241 (grub_console_getcolor): Move from here ...
7242 * term/i386/vga_common.c: ... to here (same function names).
7243
7244 2008-11-12 Robert Millan <rmh@aybabtu.com>
7245
7246 Use newly-added Multiboot support in coreboot.
7247
7248 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
7249 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
7250
7251 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
7252 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
7253 (codestart): Store the MBI in `startup_multiboot_info' when we're
7254 being loaded using Multiboot.
7255
7256 * kern/i386/coreboot/init.c (grub_machine_init): Move
7257 grub_at_keyboard_init() call to beginning of function (useful for
7258 debugging). Call grub_machine_mmap_init() before attempting to use
7259 grub_machine_mmap_iterate().
7260 (grub_lower_mem, grub_upper_mem): Move from here ...
7261 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
7262 here (new file).
7263
7264 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
7265 function prototype.
7266
7267 2008-11-12 Robert Millan <rmh@aybabtu.com>
7268
7269 Fix a regression introduced by the at_keyboard.mod split. Because
7270 some terminals are default on some platforms and non-default on
7271 others, the first terminal being registered determines which is
7272 going to be default.
7273
7274 * kern/term.c (grub_term_register_input): If this is the first
7275 terminal being registered, set it as the current one.
7276 (grub_term_register_output): Likewise.
7277
7278 * term/efi/console.c (grub_console_init): Do not call
7279 grub_term_set_current_output() or grub_term_set_current_input().
7280 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
7281 * term/i386/pc/console.c (grub_console_init): Likewise.
7282 (grub_console_fini): Do not call grub_term_set_current_input()
7283 (but leave grub_term_set_current_output() to restore text mode).
7284
7285 2008-11-10 Robert Millan <rmh@aybabtu.com>
7286
7287 * util/grub.d/00_header.in: Add backward compatibility check for
7288 versions of terminal.mod that don't understand `terminal_input' or
7289 `terminal_output'.
7290
7291 2008-11-09 Robert Millan <rmh@aybabtu.com>
7292
7293 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
7294 `terminal_input' / `terminal_output', not `terminal'.
7295
7296 2008-11-08 Robert Millan <rmh@aybabtu.com>
7297
7298 * Makefile.in (include_DATA): Fix srcdir=. assumption.
7299 (DISTCLEANFILES): Add `build_env.mk'.
7300
7301 2008-11-08 Robert Millan <rmh@aybabtu.com>
7302
7303 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
7304 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
7305 members. Update all users.
7306 * util/console.c (grub_ncurses_term): Split in ...
7307 (grub_ncurses_term_input): ... this, and ...
7308 (grub_ncurses_term_output): ... this. Update all users.
7309 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
7310
7311 2008-11-08 Robert Millan <rmh@aybabtu.com>
7312
7313 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
7314 (PKGDATA): Add $(pkgdata_SRCDIR).
7315 (pkglib_BUILDDIR): New variable.
7316 (pkgdata_SRCDIR): New variable.
7317 (build_env.mk): New target.
7318 (include_DATA): New variable.
7319 (install-local): Install $(include_DATA) files in $(includedir).
7320
7321 2008-11-07 Pavel Roskin <proski@gnu.org>
7322
7323 * gendistlist.sh: Use C locale for sorting to ensure consistent
7324 output on all systems.
7325
7326 * util/grub.d/00_header.in: Remove incorrect space before
7327 "serial".
7328
7329 2008-11-07 Robert Millan <rmh@aybabtu.com>
7330
7331 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
7332 per specification.
7333 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
7334 * loader/multiboot_loader.c (find_multi_boot2_header): New function
7335 (based on find_multi_boot1_header).
7336 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
7337 using find_multi_boot2_header(), and abort if neither Multiboot or
7338 Multiboot headers were found.
7339
7340 2008-11-07 Robert Millan <rmh@aybabtu.com>
7341
7342 Modularize at_keyboard.mod:
7343
7344 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
7345 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
7346 (at_keyboard_mod_LDFLAGS): New variables.
7347
7348 Actual terminal split:
7349
7350 * include/grub/term.h (struct grub_term): Split in ...
7351 (struct grub_term_input): ... this, and ...
7352 (struct grub_term_output): ... this. Update all users.
7353 (grub_term_set_current): Split in ...
7354 (grub_term_set_current_input): ... this, and ...
7355 (grub_term_set_current_output): ... this.
7356 (grub_term_get_current): Split in ...
7357 (grub_term_get_current_input): ... this, and ...
7358 (grub_term_get_current_output): ... this.
7359 (grub_term_register): Split in ...
7360 (grub_term_register_input): ... this, and ...
7361 (grub_term_register_output): ... this.
7362 (grub_term_unregister): Split in ...
7363 (grub_term_unregister_input): ... this, and ...
7364 (grub_term_unregister_output): ... this.
7365 (grub_term_iterate): Split in ...
7366 (grub_term_iterate_input): ... this, and ...
7367 (grub_term_iterate_output): ... this.
7368
7369 * kern/term.c (grub_term_list): Split in ...
7370 (grub_term_list_input): ... this, and ...
7371 (grub_term_list_output): ... this. Update all users.
7372 (grub_cur_term): Split in ...
7373 (grub_cur_term_input): ... this, and ...
7374 (grub_cur_term_output): ... this. Update all users.
7375 (grub_term_set_current): Split in ...
7376 (grub_term_set_current_input): ... this, and ...
7377 (grub_term_set_current_output): ... this.
7378 (grub_term_get_current): Split in ...
7379 (grub_term_get_current_input): ... this, and ...
7380 (grub_term_get_current_output): ... this.
7381 (grub_term_register): Split in ...
7382 (grub_term_register_input): ... this, and ...
7383 (grub_term_register_output): ... this.
7384 (grub_term_unregister): Split in ...
7385 (grub_term_unregister_input): ... this, and ...
7386 (grub_term_unregister_output): ... this.
7387 (grub_term_iterate): Split in ...
7388 (grub_term_iterate_input): ... this, and ...
7389 (grub_term_iterate_output): ... this.
7390
7391 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
7392 a check for input and one for output (and only attempt to get keys
7393 from user when input works).
7394
7395 * util/grub-probe.c (grub_term_get_current): Split in ...
7396 (grub_term_get_current_input): ... this, and ...
7397 (grub_term_get_current_output): ... this.
7398 * util/grub-fstest.c: Likewise.
7399 * util/i386/pc/grub-setup.c: Likewise.
7400 * util/grub-editenv.c: Likewise.
7401
7402 Portability adjustments:
7403
7404 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
7405 `term/i386/pc/at_keyboard.c'.
7406 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
7407 grub_keyboard_controller_init() (now handled by terminal .init).
7408 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
7409 grub_at_keyboard_init().
7410 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
7411 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
7412 at_keyboard.mod via input terminal interface).
7413 * include/grub/i386/coreboot/console.h: Convert into a stub for
7414 `<grub/i386/pc/console.h>'.
7415
7416 Migrate full terminals to new API:
7417
7418 * term/efi/console.c (grub_console_term): Split into ...
7419 (grub_console_term_input): ... this, and ...
7420 (grub_console_term_output): ... this. Update all users.
7421 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
7422 (grub_ofconsole_init): Split into ...
7423 (grub_ofconsole_init_input): ... this, and ...
7424 (grub_ofconsole_init_output): ... this.
7425 (grub_ofconsole_term): Split into ...
7426 (grub_ofconsole_term_input): ... this, and ...
7427 (grub_ofconsole_term_output): ... this. Update all users.
7428 * term/i386/pc/serial.c (grub_serial_term): Split into ...
7429 (grub_serial_term_input): ... this, and ...
7430 (grub_serial_term_output): ... this. Update all users.
7431 * term/i386/pc/console.c (grub_console_term): Split into ...
7432 (grub_console_term_input): ... this, and ...
7433 (grub_console_term_output): ... this. Update all users.
7434 (grub_console_term_input): Only enable it on PC/BIOS platform.
7435 (grub_console_init): Remove grub_keyboard_controller_init() call.
7436
7437 Migrate input terminals to new API:
7438
7439 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
7440 `i386' and `i386/pc' to enable build on x86_64 (this driver is
7441 i386-specific anyway).
7442 (grub_console_checkkey): Rename to ...
7443 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
7444 users.
7445 (grub_keyboard_controller_orig): New variable.
7446 (grub_console_getkey): Rename to ...
7447 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
7448 users.
7449 (grub_keyboard_controller_init): Static-ize. Save original
7450 controller value so that it can be restored ...
7451 (grub_keyboard_controller_fini): ... here (new function).
7452 (grub_at_keyboard_term): New structure.
7453 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
7454 functions.
7455
7456 Migrate output terminals to new API:
7457
7458 * term/i386/pc/vga.c (grub_vga_term): Change type to
7459 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
7460 members. Update all users.
7461 * term/gfxterm.c (grub_video_term): Change type to
7462 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
7463 members. Update all users.
7464 * include/grub/i386/pc/console.h (grub_console_checkkey)
7465 (grub_console_getkey): Do not export (no longer needed by gfxterm,
7466 etc).
7467
7468 Migrate `terminal' command and userland tools to new API:
7469
7470 * commands/terminal.c (grub_cmd_terminal): Split into ...
7471 (grub_cmd_terminal_input): ... this, and ...
7472 (grub_cmd_terminal_output): ... this.
7473 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
7474 `terminal_input' and `terminal_output'.
7475 * util/grub.d/00_header.in: Adjust `terminal' calls to new
7476 `terminal_input' / `terminal_output' API.
7477 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
7478 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
7479 provided ${GRUB_TERMINAL}, convert it).
7480
7481 2008-11-04 Robert Millan <rmh@aybabtu.com>
7482
7483 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
7484 for FreeBSD.
7485 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
7486
7487 2008-11-03 Bean <bean123ch@gmail.com>
7488
7489 * kern/elf.c (grub_elf32_load): Revert to previous code.
7490 (grub_elf64_load): Likewise.
7491
7492 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
7493
7494 2008-11-01 Robert Millan <rmh@aybabtu.com>
7495
7496 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
7497 (TARGET_CPPFLAGS): Likewise.
7498 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
7499
7500 2008-11-01 Carles Pina i Estany <carles@pina.cat>
7501
7502 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
7503
7504 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
7505
7506 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
7507 addition of objects until the code is not going to be able to fail.
7508
7509 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
7510
7511 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
7512 (add a missing NULL check, and correct them by moving the pointer
7513 operations after the actual check).
7514
7515 2008-10-29 Robert Millan <rmh@aybabtu.com>
7516
7517 * util/i386/pc/grub-install.in: Handle empty string as output from
7518 make_system_path_relative_to_its_root().
7519
7520 2008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
7521
7522 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
7523 circular metadata worst case scenario. If the metadata is circular
7524 then copy the wrap in place.
7525 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
7526 project lib/format_text/layout.h
7527 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
7528
7529 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
7530
7531 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
7532
7533 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
7534
7535 * util/update-grub_lib.in: Mention filename in warning message.
7536
7537 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
7538
7539 * NEWS: Update for rename of update-grub to grub-mkconfig.
7540
7541 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
7542
7543 * util/update-grub_lib.in: Copy to ...
7544 * util/grub-mkconfig_lib.in: ... this. Update all users.
7545 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
7546 * util/update-grub.in: Rename to ...
7547 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
7548 option. Add `--output' option to allow users to specify the generated
7549 configuration file. Default to stdout.
7550 (update_grub_dir): Rename to ...
7551 (grub_mkconfig_dir): ... this.
7552 (grub_cfg): Default to an empty string.
7553 * conf/common.rmk (update-grub): Rename to ...
7554 (grub-mkconfig): ... this.
7555 (update-grub_lib): Copy to ...
7556 (grub-mkconfig_lib): ... this.
7557 (update-grub_SCRIPTS): Copy to ...
7558 (grub-mkconfig_SCRIPTS): ... this. Update all users.
7559 (update-grub_DATA): Rename to ...
7560 (grub-mkconfig_DATA): ... this.
7561
7562 2008-09-28 Robert Millan <rmh@aybabtu.com>
7563
7564 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
7565 to `modified'. Add the real `created' field.
7566 (grub_iso9660_uuid): Use `modified' rather than `created' for
7567 constructing the UUID.
7568
7569 2008-09-28 Felix Zielcke <fzielcke@z-51.de>
7570
7571 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
7572 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
7573
7574 2008-09-28 Bean <bean123ch@gmail.com>
7575
7576 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
7577 Thanks to Christian Franke for finding this bug.
7578
7579 2008-09-25 Robert Millan <rmh@aybabtu.com>
7580
7581 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
7582 instances of grub_util_get_disk_name() (see previous commit).
7583
7584 2008-09-25 Robert Millan <rmh@aybabtu.com>
7585
7586 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
7587 `util/i386/get_disk_name.c'.
7588 * conf/i386-efi.rmk: Likewise.
7589 * conf/x86_64-efi.rmk: Likewise.
7590 * conf/i386-coreboot.rmk: Likewise.
7591 * conf/i386-ieee1275.rmk: Likewise.
7592 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
7593 `util/ieee1275/get_disk_name.c'.
7594 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
7595 * util/ieee1275/get_disk_name.c: Remove file.
7596 * util/i386/get_disk_name.c: Remove file.
7597 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
7598 "hd%d" for device.map entries, rather than using
7599 grub_util_get_disk_name().
7600
7601 2008-09-24 Carles Pina i Estany <carles@pina.cat>
7602
7603 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
7604 warning.
7605 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
7606
7607 2008-09-24 Carles Pina i Estany <carles@pina.cat>
7608
7609 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
7610 Changed to 0x5100.
7611 (GRUB_TERM_PPAGE): Changed to 0x4900.
7612
7613 2008-09-24 Robert Millan <rmh@aybabtu.com>
7614
7615 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
7616 macros (they were i386-pc specific).
7617 * include/grub/sparc64/ieee1275/console.h: Likewise.
7618 * include/grub/efi/console.h: Likewise.
7619
7620 2008-09-22 Bean <bean123ch@gmail.com>
7621
7622 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
7623 resident and in attribute list.
7624
7625 * include/grub/ntfs.h (BMP_LEN): Removed.
7626
7627 2008-09-22 Bean <bean123ch@gmail.com>
7628
7629 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
7630 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
7631
7632 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
7633 error occurs, as grub_disk_open will call grub_disk_close, which will
7634 call p->close (scsi).
7635
7636 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
7637
7638 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
7639 (AC_PREREQ): Bumped to 2.59.
7640 (AC_TRY_COMPILE): Replace obsolete macro with ...
7641 (AC_COMPILE_IFELSE): ... this.
7642 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
7643 (AC_LINK_IFELSE): ... this.
7644
7645 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
7646
7647 * autogen.sh: Add a call to `gendistlist.sh'.
7648
7649 2008-09-19 Christian Franke <franke@computer.org>
7650
7651 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
7652 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
7653 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
7654 Export __enable_execute_stack() to modules.
7655 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
7656 New function.
7657
7658 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
7659
7660 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
7661 Sort the list.
7662
7663 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
7664
7665 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
7666 #include <grub/util/hostdisk.h>.
7667
7668 2008-09-08 Robert Millan <rmh@aybabtu.com>
7669
7670 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
7671 segments when their filesz is zero (grub_file_read() interprets
7672 zero-size as "read until EOF", which results in memory corruption).
7673 Use `lowest_segment' rather than 0 for calculating the current
7674 segment load address.
7675
7676 2008-09-08 Robert Millan <rmh@aybabtu.com>
7677
7678 * util/hostdisk.c (open_device): Replace a grub_util_info() call
7679 with grub_dprintf("hostdisk", ...), as it was so verbose that it
7680 clobbered useful information.
7681
7682 2008-09-08 Robert Millan <rmh@aybabtu.com>
7683
7684 * include/grub/util/biosdisk.h: Move to ...
7685 * include/grub/util/hostdisk.h: ... here. Update all users.
7686 * util/biosdisk.c: Move to ...
7687 * util/hostdisk.c: ... here. Update all users.
7688
7689 2008-09-07 Robert Millan <rmh@aybabtu.com>
7690
7691 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
7692 variables.
7693 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
7694 and length can be stored directly in the `mbi->mmap_addr' and
7695 `mbi->mmap_length' struct fields.
7696
7697 2008-09-07 Robert Millan <rmh@aybabtu.com>
7698
7699 * conf/i386.rmk: New file. Provides declaration for building
7700 `cpuid.mod'.
7701 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
7702 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
7703 variables.
7704 Include `conf/i386.mk'.
7705 * conf/i386-efi.rmk: Likewise.
7706 * conf/x86_64-efi.rmk: Likewise.
7707 * conf/i386-coreboot.rmk: Likewise.
7708 * conf/i386-ieee1275.rmk: Likewise.
7709
7710 2008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
7711
7712 Based on patch created by Colin D Bennett <colin@gibibit.com>.
7713 Adds optimization support for BGR based modes.
7714
7715 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
7716 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
7717 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
7718 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
7719 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
7720 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
7721 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
7722 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
7723 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
7724 (grub_video_i386_vbeblit_index_index): Likewise.
7725 (grub_video_i386_vbeblit_replace_directN): Added.
7726 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
7727 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
7728 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
7729 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
7730 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
7731 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
7732 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
7733 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
7734 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
7735 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
7736 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
7737 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
7738 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
7739
7740 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
7741 (grub_video_i386_vbefill_R8G8B8): Likewise.
7742 (grub_video_i386_vbefill_index): Likewise.
7743 (grub_video_i386_vbefill_direct32): Added.
7744 (grub_video_i386_vbefill_direct24): Likewise.
7745 (grub_video_i386_vbefill_direct16): Likewise.
7746 (grub_video_i386_vbefill_direct8): Likewise.
7747
7748 * include/grub/video.h (grub_video_blit_format): Removed
7749 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
7750 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
7751 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
7752 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
7753 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
7754
7755 * video/video.c (grub_video_get_blit_format): Updated to use new
7756 blit formats. Added handling for 16 bit color modes.
7757
7758 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
7759 fillers.
7760 (common_blitter): Updated to use new blitters.
7761
7762 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
7763 Removed.
7764 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
7765 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
7766 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
7767 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
7768 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
7769 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
7770 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
7771 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
7772 (grub_video_i386_vbeblit_index_index): Likewise.
7773 (grub_video_i386_vbeblit_replace_directN): Added.
7774 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
7775 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
7776 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
7777 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
7778 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
7779 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
7780 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
7781 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
7782 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
7783 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
7784 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
7785 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
7786 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
7787
7788 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
7789 (grub_video_i386_vbefill_R8G8B8): Likewise.
7790 (grub_video_i386_vbefill_index): Likewise.
7791 (grub_video_i386_vbefill_direct32): Added.
7792 (grub_video_i386_vbefill_direct24): Likewise.
7793 (grub_video_i386_vbefill_direct16): Likewise.
7794 (grub_video_i386_vbefill_direct8): Likewise.
7795
7796 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
7797 types.
7798
7799 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
7800 types.
7801
7802 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
7803 blitter types.
7804
7805 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
7806 types.
7807
7808 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
7809
7810 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
7811 RAID level 1.
7812
7813 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
7814
7815 * fs/iso9660.c (grub_iso9660_date): New structure.
7816 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
7817 (grub_iso9660_uuid): New function.
7818
7819 2008-09-05 Bean <bean123ch@gmail.com>
7820
7821 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
7822
7823 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
7824 insensitive bit for names in Win32 and Win32 & DOS namespace.
7825
7826 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
7827
7828 * include/grub/types.h (LONG_MAX): Likewise.
7829
7830 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
7831
7832 * util/getroot.c: Include <config.h>.
7833 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
7834 add support for /dev/md/N devices and handle LVM double dash escaping.
7835
7836 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
7837
7838 * config.guess: Update to latest version from config git.
7839 * config.sub: Likewise.
7840
7841 2008-09-03 Robert Millan <rmh@aybabtu.com>
7842
7843 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
7844 `disk->total_sectors'.
7845
7846 2008-09-01 Colin D Bennett <colin@gibibit.com>
7847
7848 * include/grub/normal.h: Fixed incorrect comment for
7849 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
7850
7851 2008-09-01 Colin D Bennett <colin@gibibit.com>
7852
7853 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
7854 values with defines.
7855
7856 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
7857 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
7858 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
7859 (GRUB_VBE_MODEATTR_COLOR): Likewise.
7860 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
7861 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
7862 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
7863 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
7864 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
7865 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
7866 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
7867 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
7868 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
7869 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
7870 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
7871 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
7872 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
7873 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
7874 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
7875
7876 2008-08-31 Robert Millan <rmh@aybabtu.com>
7877
7878 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
7879 declaration.
7880 (grub_multiboot): Fix a few warnings.
7881
7882 2008-08-31 Robert Millan <rmh@aybabtu.com>
7883
7884 * loader/i386/pc/multiboot.c: Update comment not to say that
7885 boot_device support is unimplemented.
7886
7887 2008-08-31 Robert Millan <rmh@aybabtu.com>
7888
7889 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
7890 or memory map support are unimplemented.
7891
7892 2008-08-31 Colin D Bennett <colin@gibibit.com>
7893
7894 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
7895
7896 2008-08-31 Colin D Bennett <colin@gibibit.com>
7897
7898 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
7899 total video memory in 'vbeinfo' output; show color format details for
7900 each video mode.
7901
7902 2008-08-30 Pavel Roskin <proski@gnu.org>
7903
7904 * util/genmoddep.c: Remove for real this time.
7905 * DISTLIST: Remove util/genmoddep.c.
7906
7907 2008-08-30 Robert Millan <rmh@aybabtu.com>
7908
7909 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
7910 as required by Multiboot spec (it was already 4-byte aligned, but
7911 only by chance).
7912
7913 2008-08-29 Pavel Roskin <proski@gnu.org>
7914
7915 * kern/powerpc/ieee1275/crt0.S: Rename to ...
7916 * kern/powerpc/ieee1275/startup.S: ... this.
7917 * conf/powerpc-ieee1275.rmk: Adjust for the above.
7918 * DISTLIST: Likewise.
7919
7920 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
7921 grub/cpu/kernel.h. Add start label for consistency with other
7922 platforms. Add grub_prefix immediately after start. Add jump
7923 to the code after grub_prefix.
7924 * include/grub/powerpc/kernel.h: Provide valid values for
7925 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
7926
7927 2008-08-29 Bean <bean123ch@gmail.com>
7928
7929 * configure.ac: Change host_os to cygwin for mingw.
7930 (asprintf): New check for function.
7931
7932 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
7933 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
7934
7935 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
7936 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
7937 sync, sleep and grub_util_get_disk_size for mingw.
7938
7939 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
7940 to get size in mingw.
7941 (open_device): Use flag O_BINARY if it's defined.
7942 (find_root_device): Add dummy code for mingw.
7943
7944 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
7945 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
7946 (get_scsi_disk_name): Return 0 for mingw.
7947
7948 * util/hostfs.c: #include <grub/util/misc.h>.
7949 (grub_hostfs_open): Use "rb" flag to open file, use
7950 grub_util_get_disk_size to get disk size for mingw.
7951
7952 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
7953 (asprintf): New function if HAVE_ASPRINTF is not set.
7954 (sync): New function for mingw.
7955 (sleep): Likewise.
7956 (grub_util_get_disk_size): Likewise.
7957
7958 2008-08-28 Pavel Roskin <proski@gnu.org>
7959
7960 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
7961 kern/time.c.
7962
7963 2008-08-28 Robert Millan <rmh@aybabtu.com>
7964
7965 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
7966
7967 2008-08-28 Robert Millan <rmh@aybabtu.com>
7968
7969 Change find_grub_drive() syntax so it doesn't prevent it from
7970 detecting NULL names as errors.
7971
7972 * util/biosdisk.c (find_grub_drive): Move free slot search code
7973 from here ...
7974 (find_free_slot): ... to here.
7975 (read_device_map): Use find_free_slot() to search for free slots.
7976
7977 2008-08-27 Marco Gerards <marco@gnu.org>
7978
7979 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
7980 (scsi_mod_SOURCES): New variable.
7981 (scsi_mod_CFLAGS): Likewise
7982 (scsi_mod_LDFLAGS): Likewise.
7983
7984 * disk/scsi.c: New file.
7985
7986 * include/grub/scsi.h: Likewise.
7987
7988 * include/grub/scsicmd.h: Likewise.
7989
7990 * disk/ata.c: Include <grub/scsi.h>.
7991 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
7992 instead.
7993 (grub_ata_iterate): Skip ATAPI devices.
7994 (grub_ata_open): Only handle ATAPI devices.
7995 (struct grub_atapi_read): Removed.
7996 (grub_atapi_readsector): Likewise.
7997 (grub_ata_read): No longer handle ATAPI devices.
7998 (grub_ata_write): Likewise.
7999 (grub_atapi_iterate): New function.
8000 (grub_atapi_read): Likewise.
8001 (grub_atapi_write): Likewise.
8002 (grub_atapi_open): Likewise.
8003 (grub_atapi_close): Likewise.
8004 (grub_atapi_dev): New variable.
8005 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
8006 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
8007
8008 * include/grub/disk.h (enum grub_disk_dev_id): Add
8009 `GRUB_DISK_DEVICE_SCSI_ID'.
8010
8011 2008-08-26 Robert Millan <rmh@aybabtu.com>
8012
8013 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
8014 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
8015 descriptive.
8016
8017 2008-08-23 Bean <bean123ch@gmail.com>
8018
8019 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
8020 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
8021 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
8022 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
8023 dm_nv.mod.
8024 (raid5rec_mod_SOURCES): New macro.
8025 (raid5rec_mod_CFLAGS): Likewise.
8026 (raid5rec_mod_LDFLAGS): Likewise.
8027 (raid6rec_mod_SOURCES): Likewise.
8028 (raid6rec_mod_CFLAGS): Likewise.
8029 (raid6rec_mod_LDFLAGS): Likewise.
8030 (mdraid_mod_SOURCES): Likewise.
8031 (mdraid_mod_CFLAGS): Likewise.
8032 (mdraid_mod_LDFLAGS): Likewise.
8033 (dm_nv_mod_SOURCES): Likewise.
8034 (dm_nv_mod_CFLAGS): Likewise.
8035 (dm_nv_mod_LDFLAGS): Likewise.
8036
8037 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
8038 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
8039 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
8040
8041 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
8042 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
8043
8044 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
8045
8046 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
8047
8048 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8049
8050 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8051
8052 * disk/raid5_recover.c: New file.
8053
8054 * disk/raid6_recover.c: Likewise.
8055
8056 * disk/mdraid_linux.c: Likewise.
8057
8058 * disk/dmraid_nvidia.c: Likewise.
8059
8060 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
8061 ULONG_MAX.
8062
8063 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
8064 calculate the size of raid device.
8065 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
8066 different layout of raid5.
8067 (grub_raid_scan_device): Remove code specific to mdraid.
8068 (grub_raid_list): New variable.
8069 (free_array): New function.
8070 (grub_raid_register): Likewise.
8071 (grub_raid_unregister): Likewise.
8072 (grub_raid_rescan): Likewise.
8073 (GRUB_MOD_INIT): Don't iterate device here.
8074 (GRUB_MOD_FINI): Use free_array to release resource.
8075
8076 * include/grub/raid.h: Remove macro and structure specific to mdraid.
8077 (grub_raid5_recover_func_t): New function variable type.
8078 (grub_raid6_recover_func_t): Likewise.
8079 (grub_raid5_recover_func): New variable.
8080 (grub_raid6_recover_func): Likewise.
8081 (grub_raid_register): New function.
8082 (grub_raid_unregister): Likewise.
8083 (grub_raid_rescan): Likewise.
8084 (grub_raid_block_xor): Likewise.
8085
8086 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
8087 (CMD_CRC): New macro.
8088 (part): Removed.
8089 (read_file): Handle device as well as file.
8090 (cmd_crc): New function.
8091 (fstest): Handle multiple disks.
8092 (options): Remove part, raw and long, add root and diskcount.
8093 (usage): Add crc, remove -p, -r, -l, add -r and -c.
8094 (main): Find the first non option entry and ignore subsequent options,
8095 add handling for the new options, support multiple disks.
8096
8097 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
8098
8099 2008-08-23 Bean <bean123ch@gmail.com>
8100
8101 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
8102
8103 * genfslist.sh: Ignore kernel.mod.
8104
8105 * genpartmaplist.sh: Likewise.
8106
8107 2008-08-23 Robert Millan <rmh@aybabtu.com>
8108
8109 * util/getroot.c (find_root_device): Skip anything that starts with
8110 a dot, not just directories. This avoids things like /dev/.tmp.md0.
8111
8112 2008-08-22 Felix Zielcke <fzielcke@z-51.de>
8113
8114 * util/update-grub.in (GRUB_GFXMODE): Export variable.
8115 * util/grub.d/00_header.in: Allow the administrator to change default
8116 gfxmode via ${GRUB_GFXMODE}.
8117
8118 2008-08-21 Felix Zielcke <fzielcke@z-51.de>
8119
8120 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
8121
8122 2008-08-21 Robert Millan <rmh@aybabtu.com>
8123
8124 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
8125 loader.
8126 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
8127 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
8128
8129 2008-08-20 Carles Pina i Estany <carles@pina.cat>
8130
8131 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
8132 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
8133
8134 2008-08-19 Robert Millan <rmh@aybabtu.com>
8135
8136 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
8137 (struct grub_virtual_screen): Remove `cursor_color'.
8138 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
8139 initialization.
8140 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
8141
8142 2008-08-18 Robert Millan <rmh@aybabtu.com>
8143
8144 Unify (identical) linux_normal.c files.
8145 * loader/i386/efi/linux_normal.c: Move from here ...
8146 * loader/linux_normal.c: ... to here. Update all users.
8147 * loader/i386/pc/linux_normal.c: Delete. Update all users.
8148 * loader/i386/ieee1275/linux_normal.c: Likewise.
8149
8150 2008-08-18 Robert Millan <rmh@aybabtu.com>
8151
8152 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
8153 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
8154 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
8155 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
8156 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
8157 New macros.
8158 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
8159 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
8160 (GRUB_LINUX_CL_END_OFFSET): ... to here.
8161 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
8162 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
8163 (GRUB_EFI_CL_END_OFFSET): Rename to ...
8164 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
8165 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
8166 Initialize `params->video_cursor_x' and `params->video_cursor_y'
8167 portably using grub_getxy().
8168 Replace `-EFI' with `-bzImage' in boot message.
8169
8170 2008-08-17 Robert Millan <rmh@aybabtu.com>
8171
8172 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
8173
8174 2008-08-17 Robert Millan <rmh@aybabtu.com>
8175
8176 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
8177
8178 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
8179 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
8180 (grub_machine_mmap_iterate): New function declaration.
8181 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
8182 structure.
8183 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
8184 macros.
8185
8186 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
8187 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
8188 Move e820 parsing from here ...
8189 * kern/i386/pc/mmap.c: New file.
8190 (grub_machine_mmap_iterate): ... to here.
8191
8192 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
8193 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
8194 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
8195 (grub_available_iterate): Redeclare to return `void', and redeclare
8196 its hook to use grub_uint64_t as addr and size parameters, and rename
8197 to ...
8198 (grub_machine_mmap_iterate): ... this. Update all users.
8199
8200 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
8201 to make it more readable. Rename to ...
8202 (grub_machine_mmap_iterate): ... this.
8203
8204 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
8205 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
8206 (grub_multiboot): Allocate an extra region after the payload, and fill
8207 it with a Multiboot memory map. Adjust a.out loader to calculate size
8208 with the extra space.
8209 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
8210 with the extra space.
8211
8212 2008-08-17 Carles Pina i Estany <carles@pina.cat>
8213
8214 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
8215
8216 2008-08-17 Felix Zielcke <fzielcke@z-51.de>
8217
8218 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
8219 mdate-sh to the list `find' searches for.
8220 * DISTLIST: Regenerated.
8221
8222 2008-08-16 Felix Zielcke <fzielcke@z-51.de>
8223
8224 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
8225 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
8226 genmoddep.awk, gensymlist.sh.in.
8227 (DISTDIRS): Add bus, docs, hook, lib.
8228 * DISTLIST: Regenerated.
8229 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
8230
8231 2008-08-16 Robert Millan <rmh@aybabtu.com>
8232
8233 * disk/raid.c (grub_raid_init): Handle/report errors set by
8234 grub_device_iterate().
8235 * disk/lvm.c (grub_lvm_init): Likewise.
8236
8237 2008-08-15 Bean <bean123ch@gmail.com>
8238
8239 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
8240 and datehook.mod.
8241 (datetime_mod_SOURCES): New macro.
8242 (datetime_mod_CFLAGS): Likewise.
8243 (datetime_mod_LDFLAGS): Likewise.
8244 (date_mod_SOURCES): Likewise.
8245 (date_mod_CFLAGS): Likewise.
8246 (date_mod_LDFLAGS): Likewise.
8247 (datehook_mod_SOURCES): Likewise.
8248 (datehook_mod_CFLAGS): Likewise.
8249 (datehook_mod_LDFLAGS): Likewise.
8250
8251 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
8252 and datehook.mod.
8253 (datetime_mod_SOURCES): New macro.
8254 (datetime_mod_CFLAGS): Likewise.
8255 (datetime_mod_LDFLAGS): Likewise.
8256 (date_mod_SOURCES): Likewise.
8257 (date_mod_CFLAGS): Likewise.
8258 (date_mod_LDFLAGS): Likewise.
8259 (datehook_mod_SOURCES): Likewise.
8260 (datehook_mod_CFLAGS): Likewise.
8261 (datehook_mod_LDFLAGS): Likewise.
8262
8263 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
8264 and datehook.mod.
8265 (datetime_mod_SOURCES): New macro.
8266 (datetime_mod_CFLAGS): Likewise.
8267 (datetime_mod_LDFLAGS): Likewise.
8268 (date_mod_SOURCES): Likewise.
8269 (date_mod_CFLAGS): Likewise.
8270 (date_mod_LDFLAGS): Likewise.
8271 (datehook_mod_SOURCES): Likewise.
8272 (datehook_mod_CFLAGS): Likewise.
8273 (datehook_mod_LDFLAGS): Likewise.
8274
8275 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
8276 and datehook.mod.
8277 (datetime_mod_SOURCES): New macro.
8278 (datetime_mod_CFLAGS): Likewise.
8279 (datetime_mod_LDFLAGS): Likewise.
8280 (date_mod_SOURCES): Likewise.
8281 (date_mod_CFLAGS): Likewise.
8282 (date_mod_LDFLAGS): Likewise.
8283 (datehook_mod_SOURCES): Likewise.
8284 (datehook_mod_CFLAGS): Likewise.
8285 (datehook_mod_LDFLAGS): Likewise.
8286
8287 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
8288 and datehook.mod.
8289 (datetime_mod_SOURCES): New macro.
8290 (datetime_mod_CFLAGS): Likewise.
8291 (datetime_mod_LDFLAGS): Likewise.
8292 (date_mod_SOURCES): Likewise.
8293 (date_mod_CFLAGS): Likewise.
8294 (date_mod_LDFLAGS): Likewise.
8295 (datehook_mod_SOURCES): Likewise.
8296 (datehook_mod_CFLAGS): Likewise.
8297 (datehook_mod_LDFLAGS): Likewise.
8298
8299 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
8300
8301 * commands/date.c: New file.
8302
8303 * hook/datehook.c: Likewise.
8304
8305 * include/grub/lib/datetime.h: Likewise.
8306
8307 * include/grub/i386/cmos.h: Likewise.
8308
8309 * lib/datetime.c: Likewise.
8310
8311 * lib/i386/datetime.c: Likewise.
8312
8313 * lib/efi/datetime.c: Likewise.
8314
8315 2008-08-14 Robert Millan <rmh@aybabtu.com>
8316
8317 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
8318 (grub_mkelfimage_SOURCES): New variable.
8319 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
8320
8321 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
8322 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
8323 * conf/powerpc-ieee1275.rmk: Likewise.
8324 * conf/i386-ieee1275.rmk: Likewise.
8325
8326 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
8327 * kern/i386/coreboot/init.c: Likewise.
8328
8329 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
8330 with `<grub/cpu/kernel.h>'.
8331 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
8332 to ...
8333 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
8334 * kern/i386/coreboot/startup.S: Likewise.
8335
8336 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
8337 (GRUB_MOD_GAP): Remove.
8338 * include/grub/powerpc/kernel.h: New file.
8339 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
8340 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
8341 * include/grub/i386/kernel.h: New file.
8342 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
8343 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
8344 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
8345
8346 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
8347 `grub-mkelfimage'.
8348 Use --directory when invoking grub_mkimage.
8349
8350 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
8351 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
8352 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
8353 and GRUB_KERNEL_CPU_PREFIX.
8354
8355 2008-08-14 Felix Zielcke <fzielcke@z-51.de>
8356
8357 * include/grub/err.h (grub_err_printf): New function prototype.
8358 * util/misc.c (grub_err_printf): New function.
8359 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
8360 grub_printf.
8361 * kern/err.c (grub_print_error): Use grub_err_printf.
8362
8363 2008-08-13 Robert Millan <rmh@aybabtu.com>
8364
8365 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
8366
8367 2008-08-13 Robert Millan <rmh@aybabtu.com>
8368
8369 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
8370 boot entry.
8371
8372 2008-08-12 Robert Millan <rmh@aybabtu.com>
8373
8374 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
8375 of the relocation code from here ...
8376 (grub_multiboot): ... to here.
8377 (forward_relocator, backward_relocator): Move from here ...
8378 * kern/i386/loader.S (grub_multiboot_forward_relocator)
8379 (grub_multiboot_backward_relocator): ... to here.
8380 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
8381 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
8382 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
8383 (grub_multiboot_forward_relocator_end)
8384 (grub_multiboot_backward_relocator)
8385 (grub_multiboot_backward_relocator_end): New variables.
8386
8387 2008-08-12 Bean <bean123ch@gmail.com>
8388
8389 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
8390
8391 2008-08-11 Robert Millan <rmh@aybabtu.com>
8392
8393 * kern/i386/linuxbios/startup.S: Move from here ...
8394 * kern/i386/coreboot/startup.S: ... to here.
8395
8396 * kern/i386/linuxbios/init.c: Move from here ...
8397 * kern/i386/coreboot/init.c: ... to here.
8398
8399 * kern/i386/linuxbios/table.c: Move from here ...
8400 * kern/i386/coreboot/mmap.c: ... to here.
8401
8402 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
8403
8404 2008-08-11 Robert Millan <rmh@aybabtu.com>
8405
8406 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
8407 errors. Leave it to the upper layer to handle them.
8408
8409 2008-08-09 Christian Franke <franke@computer.org>
8410
8411 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
8412 * conf/common.rmk: Install `grub-pe2elf' only if requested.
8413 Install `grub.d/10_windows' only on Cygwin.
8414 * configure.ac: Add subst of `target_os'.
8415 Check `target_os' also before setting TARGET_OBJ2ELF.
8416 Add `--enable-grub-pe2elf'.
8417
8418 2008-08-08 Robert Millan <rmh@aybabtu.com>
8419
8420 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
8421 (grub_last_time): Change type to grub_uint64_t.
8422 (grub_disk_open): Migrate code from to using grub_get_time_ms().
8423 (grub_disk_close): Likewise.
8424
8425 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
8426 (run_menu): Migrate code from to using grub_get_time_ms().
8427
8428 * util/misc.c (grub_get_time_ms): New function.
8429
8430 2008-08-08 Marco Gerards <marco@gnu.org>
8431
8432 * disk/ata.c (grub_ata_regget): Change return type to
8433 `grub_uint8_t'.
8434 (grub_ata_regget2): Likewise.
8435 (grub_ata_wait_status): New function.
8436 (grub_ata_wait_busy): Removed function, updated all users to use
8437 `grub_ata_wait_status'.
8438 (grub_ata_wait_drq): Likewise.
8439 (grub_ata_cmd): New function.
8440 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
8441 error handling.
8442 (grub_ata_pio_write): Add error handling.
8443 (grub_atapi_identify): Likewise.
8444 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
8445 handling.
8446 (grub_ata_identify): Use `grub_ata_cmd' and improve error
8447 handling. Actually use the detected registers. Reorder the
8448 detection logic such that it is easier to read.
8449 (grub_ata_pciinit): Do not assign the same ID to each controller.
8450 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
8451 handling.
8452 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
8453
8454 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
8455
8456 2008-08-08 Marco Gerards <marco@gnu.org>
8457
8458 * NEWS: Update.
8459
8460 2008-08-07 Bean <bean123ch@gmail.com>
8461
8462 * include/grub/x86_64/pci.h: New file.
8463
8464 2008-08-07 Christian Franke <franke@computer.org>
8465
8466 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
8467 (TIMER2_GATE): Likewise.
8468 (grub_pit_wait): Add enable/disable of the timer2 gate
8469 bit of port 0x61. This fixes a possible infinite loop.
8470
8471 2008-08-07 Bean <bean123ch@gmail.com>
8472
8473 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
8474 kern/i386/tsc.c and kern/i386/pit.c.
8475
8476 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
8477 x86_64 platform.
8478
8479 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
8480 <grub/i386/tsc.h>.
8481
8482 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
8483
8484 2008-08-07 Bean <bean123ch@gmail.com>
8485
8486 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
8487
8488 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
8489
8490 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
8491 multiple inclusion. Add #include <grub/types.h>.
8492
8493 2008-08-06 Christian Franke <franke@computer.org>
8494
8495 * conf/common.rmk: Build and install `10_windows'.
8496 * util/grub.d/10_windows.in: New script.
8497
8498 2008-08-06 Pavel Roskin <proski@gnu.org>
8499
8500 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
8501
8502 2008-08-06 Robert Millan <rmh@aybabtu.com>
8503
8504 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
8505 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
8506
8507 2008-08-06 Bean <bean123ch@gmail.com>
8508
8509 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
8510 (grub_pxefs_fs_int): Remove dummy definition.
8511 (grub_pxefs_open): Use data->block_size to store the current block
8512 size setting.
8513 (grub_pxefs_read): Use block size stored in data->block_size. As the
8514 value of grub_pxe_blksize can be changed after the file is opened.
8515
8516 2008-08-06 Bean <bean123ch@gmail.com>
8517
8518 * fs/i386/pc/pxe.c (curr_file): new variable.
8519 (grub_pxefs_open): Simply the handling of pxe file system. Don't
8520 require the dummy internal file system anymore.
8521 (grub_pxefs_read): Removed.
8522 (grub_pxefs_close): Likewise.
8523 (grub_pxefs_fs_int): Likewise.
8524 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
8525 connection when we switch file.
8526 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
8527
8528 2008-08-06 Robert Millan <rmh@aybabtu.com>
8529
8530 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
8531 `halt.mod'.
8532 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
8533 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
8534
8535 * kern/i386/halt.c: New file.
8536 * kern/i386/reboot.c: Likewise.
8537 * include/grub/i386/reboot.h: Likewise.
8538 * include/grub/i386/halt.h: Likewise.
8539
8540 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
8541 Include `<grub/cpu/halt.h>'.
8542 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
8543 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
8544
8545 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
8546 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
8547 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
8548 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
8549 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
8550 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
8551 from here ...
8552 * include/grub/i386/at_keyboard.h: ... to here.
8553
8554 2008-08-05 Robert Millan <rmh@aybabtu.com>
8555
8556 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
8557 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
8558 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
8559 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
8560 `kern/generic/millisleep.c'.
8561
8562 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
8563 instead of grub_get_rtc().
8564 (grub_tsc_init): Initialize `tsc_boot_time'.
8565
8566 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
8567 (grub_machine_init): Use grub_tsc_init() rather than
8568 installing an RTC-based handler via grub_install_get_time_ms().
8569
8570 * kern/i386/pit.c: New file.
8571 * include/grub/i386/pit.h: Likewise.
8572
8573 2008-08-05 Bean <bean123ch@gmail.com>
8574
8575 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
8576
8577 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
8578 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
8579 (pxe_mod_SOURCES): New macro.
8580 (pxe_mod_CFLAGS): Likewise.
8581 (pxe_mod_LDFLAGS): Likewise.
8582 (pxecmd_mod_SOURCES): Likewise.
8583 (pxecmd_mod_CFLAGS): Likewise.
8584 (pxecmd_mod_LDFLAGS): Likewise.
8585
8586 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
8587 (grub_pxe_call): Likewise.
8588
8589 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
8590
8591 * commands/i386/pc/pxecmd.c: New file.
8592
8593 * fs/i386/pc/pxe.c: Likewise.
8594
8595 * include/grub/i386/pc/pxe.h: Likewise.
8596
8597 2008-08-05 Bean <bean123ch@gmail.com>
8598
8599 * util/console.c (grub_console_cur_color): New variable.
8600 (grub_console_standard_color): Likewise.
8601 (grub_console_normal_color): Likewise.
8602 (grub_console_highlight_color): Likewise.
8603 (color_map): Likewise.
8604 (use_color): Likewise.
8605 (NUM_COLORS): New macro.
8606 (grub_ncurses_setcolorstate): Handle color properly.
8607 (grub_ncurses_setcolor): Don't change color here, just remember the
8608 settings, color will be set in grub_ncurses_setcolorstate.
8609 (grub_ncurses_getcolor): New function.
8610 (grub_ncurses_init): Initialize color pairs.
8611 (grub_ncurses_term): New member grub_ncurses_getcolor.
8612
8613 2008-08-05 Colin D Bennett <colin@gibibit.com>
8614
8615 High resolution timer support. Implemented for x86 CPUs using TSC.
8616 Extracted generic grub_millisleep() so it's linked in only as needed.
8617 This requires a Pentium compatible CPU; if the RDTSC instruction is
8618 not supported, then it falls back on the generic grub_get_time_ms()
8619 implementation that uses the machine's RTC.
8620
8621 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
8622 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
8623 `kern/generic/millisleep.c'.
8624
8625 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
8626 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
8627
8628 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
8629 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
8630
8631 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
8632
8633 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
8634 `kern/generic/millisleep.c'.
8635
8636 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
8637
8638 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
8639
8640 * kern/generic/rtc_get_time_ms.c: New file.
8641
8642 * kern/generic/millisleep.c: New file.
8643
8644 * kern/misc.c: Don't include
8645 <kern/time.h> anymore.
8646 (grub_millisleep_generic): Removed.
8647
8648 * commands/sleep.c (grub_interruptible_millisleep): Uses
8649 grub_get_time_ms() instead of grub_get_rtc().
8650
8651 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
8652 function.
8653 (grub_cpu_is_cpuid_supported): New inline function.
8654 (grub_cpu_is_tsc_supported): New inline function.
8655 (grub_tsc_init): New function prototype.
8656 (grub_tsc_get_time_ms): New function prototype.
8657
8658 * kern/i386/tsc.c (grub_get_time_ms): New file.
8659
8660 * include/grub/time.h: Include <grub/types.h.
8661 (grub_millisleep_generic): Removed.
8662 (grub_get_time_ms): New prototype.
8663 (grub_install_get_time_ms): New prototype.
8664 (grub_rtc_get_time_ms): New prototype.
8665
8666 * kern/time.c (grub_get_time_ms): New function.
8667 (grub_install_get_time_ms): New function.
8668
8669 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
8670 <grub/time.h> anymore.
8671 (grub_millisleep): Removed.
8672 (grub_machine_init): Call grub_tsc_init.
8673
8674 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
8675 get_time_ms() implementation.
8676
8677 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
8678 (ieee1275_get_time_ms): New function.
8679 (grub_machine_init): Install get_time_ms() implementation.
8680
8681 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
8682 (grub_machine_init): Call grub_tsc_init().
8683 (grub_millisleep): Removed.
8684
8685 * kern/ieee1275/init.c (grub_millisleep): Removed.
8686 (grub_machine_init): Install ieee1275_get_time_ms()
8687 implementation.
8688 (ieee1275_get_time_ms): New function.
8689 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
8690 real work.
8691
8692 2008-08-05 Marco Gerards <marco@gnu.org>
8693
8694 * disk/ata.c: Include <grub/pci.h>.
8695 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
8696 (grub_ata_initialize): Rewritten.
8697 (grub_ata_device_initialize): New function.
8698
8699 2008-08-04 Pavel Roskin <proski@gnu.org>
8700
8701 * kern/main.c: Include grub/mm.h.
8702
8703 2008-08-04 Robert Millan <rmh@aybabtu.com>
8704
8705 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
8706 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
8707 corruption problem).
8708
8709 2008-08-04 Robert Millan <rmh@aybabtu.com>
8710
8711 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
8712 warnings introduced in my last commit.
8713
8714 2008-08-03 Robert Millan <rmh@aybabtu.com>
8715
8716 Make PCI available on all i386 architectures.
8717
8718 * include/grub/i386/pc/pci.h: Move from here ...
8719 * include/grub/i386/pci.h: ... to here.
8720
8721 * include/grub/i386/pc/pci.h: Remove.
8722 * include/grub/i386/efi/pci.h: Remove.
8723 * include/grub/x86_64/efi/pci.h: Remove.
8724
8725 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
8726 `<grub/cpu/pci.h>'.
8727
8728 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
8729 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
8730 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
8731
8732 * conf/i386-ieee1275.rmk: Likewise.
8733
8734 2008-08-03 Robert Millan <rmh@aybabtu.com>
8735
8736 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
8737 (grub_console_setcursor): Make it possible to set cursor off.
8738
8739 2008-08-03 Robert Millan <rmh@aybabtu.com>
8740
8741 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
8742 of modules instead of assuming which platform provides what.
8743 * util/update-grub.in: Likewise.
8744
8745 2008-08-03 Robert Millan <rmh@aybabtu.com>
8746
8747 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
8748 instead of `grub_install_dos_part' to determine whether a drive needs
8749 to be prepended to prefix (`grub_install_dos_part' is not reliable,
8750 because it can be overridden when loading GRUB via Multiboot).
8751
8752 2008-08-02 Robert Millan <rmh@aybabtu.com>
8753
8754 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
8755
8756 2008-08-02 Robert Millan <rmh@aybabtu.com>
8757
8758 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
8759 of informational grub_dprintf() calls.
8760
8761 2008-08-02 Robert Millan <rmh@aybabtu.com>
8762
8763 * disk/memdisk.c (memdisk_size): Don't initialize.
8764 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
8765
8766 * include/grub/i386/pc/kernel.h
8767 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
8768 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
8769 (grub_memdisk_image_size, grub_arch_memdisk_addr)
8770 (grub_arch_memdisk_size): Remove.
8771
8772 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
8773 field (was only used to transfer a constant). Add `type' field to
8774 support multiple module types.
8775 (grub_module_iterate): New function.
8776
8777 * kern/device.c (grub_device_open): Do not hide error messages
8778 when grub_disk_open() fails. Use grub_print_error() instead.
8779
8780 * kern/i386/pc/init.c (grub_arch_modules_addr)
8781 (grub_arch_memdisk_size): Remove functions.
8782 (grub_arch_modules_addr): Return the module address in high memory
8783 (now that it isn't copied anymore).
8784
8785 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
8786 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
8787 decompression routine (grub_total_module_size already includes that
8788 now). Don't copy modules back to low memory.
8789
8790 * kern/main.c: Include `<grub/mm.h>'.
8791 (grub_load_modules): Split out (and use) ...
8792 (grub_module_iterate): ... this function, which iterates through
8793 module objects and runs a hook.
8794 Comment out grub_mm_init_region() call, as it would cause non-ELF
8795 modules to be overwritten.
8796
8797 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
8798 the memdisk image in its own region, make it part of the module list.
8799 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
8800 (main): Parse --memdisk|-m option, and pass user-provided path as
8801 parameter to generate_image().
8802 (add_segments): Pass `memdisk_path' down to load_modules().
8803 (load_modules): Embed memdisk image in module section when requested.
8804 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
8805 `header.type' instead of `header.offset'.
8806
8807 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
8808 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
8809 (memdisk_mod_LDFLAGS): New variables.
8810 * conf/i386-coreboot.rmk: Likewise.
8811 * conf/i386-ieee1275.rmk: Likewise.
8812
8813 2008-08-02 Robert Millan <rmh@aybabtu.com>
8814
8815 * loader/i386/pc/multiboot.c (playground, forward_relocator)
8816 (backward_relocator): New variables. Used to allocate and relocate
8817 the payload, respectively.
8818 (grub_multiboot_load_elf32): Load into heap instead of requested
8819 address, install the appropriate relocator code in each bound of
8820 the payload, and set the entry point such that
8821 grub_multiboot_real_boot() will jump to one of them.
8822
8823 * kern/i386/loader.S (grub_multiboot_payload_size)
8824 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
8825 (grub_multiboot_payload_entry_offset): New variables.
8826 (grub_multiboot_real_boot): Set cpu context to what the relocator
8827 expects, and jump to the relocator instead of the payload.
8828
8829 * include/grub/i386/loader.h (grub_multiboot_payload_size)
8830 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
8831 (grub_multiboot_payload_entry_offset): Export.
8832
8833 2008-08-01 Bean <bean123ch@gmail.com>
8834
8835 * normal/menu_entry.c (editor_getline): Don't return the original
8836 string as result, as it will be released by lexer once it has done
8837 using it.
8838
8839 2008-08-01 Robert Millan <rmh@aybabtu.com>
8840
8841 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
8842 within menuentries, not before them.
8843 util/grub.d/10_hurd.in: Likewise.
8844
8845 2008-08-01 Bean <bean123ch@gmail.com>
8846
8847 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
8848 (bufio_mod_SOURCES): New macro.
8849 (bufio_mod_CFLAGS): Likewise.
8850 (bufio_mod_LDFLAGS): Likewise.
8851
8852 * include/grub/bufio.h: New file.
8853
8854 * io/bufio.c: Likewise.
8855
8856 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
8857 (grub_video_reader_png): Use grub_buffile_open to open file.
8858
8859 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
8860 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
8861
8862 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
8863 (grub_video_reader_tga): Use grub_buffile_open to open file.
8864
8865 * font/manager.c: Include <grub/bufio.h>.
8866 (add_font): Use grub_buffile_open to open file.
8867
8868 2008-07-31 Robert Millan <rmh@aybabtu.com>
8869
8870 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
8871 ELF segments, use a macro for arbitrarily accessing any of them instead
8872 of preparing a pointer that allows access to one at a time.
8873 (grub_multiboot_load_elf64): Likewise.
8874
8875 2008-07-31 Bean <bean123ch@gmail.com>
8876
8877 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
8878 GRUB_KERNEL_MACHINE_DATA_END.
8879
8880 2008-07-30 Robert Millan <rmh@aybabtu.com>
8881
8882 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
8883 Increase from 0x50 to 0x60.
8884 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
8885 use UUIDs to identify the root drive for them. If that's not
8886 possible, abort.
8887 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
8888 check, for cross-disk installs.
8889
8890 2008-07-30 Robert Millan <rmh@aybabtu.com>
8891
8892 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
8893 is non-empty, use it to set the `prefix' environment variable instead
8894 of the usual approach.
8895 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
8896 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
8897 environment variable instead of dummy make_install_device().
8898
8899 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
8900 (start): Insert a data section, with `grub_prefix' variable.
8901 * kern/i386/linuxbios/startup.S: Likewise.
8902
8903 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
8904 New variable reference.
8905 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
8906 New macro. Defines offset of `grub_prefix' within startup.S (relative
8907 to `start').
8908 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
8909 section within startup.S (relative to `start').
8910 * include/grub/i386/coreboot/kernel.h: Likewise.
8911
8912 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
8913 Overwrite grub_prefix with its contents, at the beginning of the
8914 first segment.
8915 (main): Understand -p|--prefix.
8916
8917 2008-07-30 Robert Millan <rmh@aybabtu.com>
8918
8919 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
8920
8921 2008-07-30 Robert Millan <rmh@aybabtu.com>
8922
8923 * term/i386/pc/vga_text.c (grub_console_cls): Use
8924 grub_console_gotoxy() to go back to beginning of the screen.
8925 Found by Patrick Georgi <patrick.georgi@coresystems.de>
8926
8927 2008-07-29 Christian Franke <franke@computer.org>
8928
8929 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
8930 Add conversion of emulated mount points on Cygwin.
8931
8932 2008-07-29 Christian Franke <franke@computer.org>
8933
8934 * util/update-grub.in: Add a check for admin
8935 group on Cygwin.
8936 Remove old `grub.cfg.new' before creation.
8937 Add `-f' to `mv' to handle the different filesystem
8938 semantics of Windows.
8939
8940 2008-07-29 Bean <bean123ch@gmail.com>
8941
8942 * normal/main.c (get_line): Fix buffer overflow bug.
8943
8944 2008-07-28 Robert Millan <rmh@aybabtu.com>
8945
8946 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
8947 (struct grub_apple_header): New struct. Describes the layout of
8948 the partmap header.
8949 (apple_partition_map_iterate): Check the header magic as well as the
8950 partition magic (which was already being checked).
8951
8952 2008-07-28 Pavel Roskin <proski@gnu.org>
8953
8954 * genmk.rb: Add a warning to the beginning of the output that
8955 it's a generated file and should not be edited.
8956
8957 2008-07-28 Robert Millan <rmh@aybabtu.com>
8958
8959 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
8960 with the same number are found, just use issue a warning with
8961 grub_dprintf(), as this error has been reported to be non-fatal.
8962
8963 2008-07-27 Robert Millan <rmh@aybabtu.com>
8964
8965 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
8966 information.
8967
8968 2008-07-27 Bean <bean123ch@gmail.com>
8969
8970 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
8971 (grub_fat_find_dir): Ignore case when comparing filename.
8972
8973 2008-07-27 Bean <bean123ch@gmail.com>
8974
8975 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
8976 smallino, as it's more descriptive, and i8count can be confused with
8977 the other field count.
8978 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
8979 inode type.
8980
8981 2008-07-27 Bean <bean123ch@gmail.com>
8982
8983 * commands/crc.c: New file.
8984
8985 * lib/crc.c: Likewise.
8986
8987 * include/grub/lib/crc.h: Likewise.
8988
8989 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
8990
8991 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
8992 (hexdump): Move this function to ...
8993
8994 * lib/hexdump.c: ... here.
8995
8996 * include/grub/hexdump.h: Renamed to ...
8997
8998 * include/grub/lib/hexdump.h: ... this.
8999
9000 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
9001
9002 * util/grub-editenv.c: Likewise.
9003
9004 * include/envblk.h: Renamed to ...
9005
9006 * include/lib/envblk.h: ... this.
9007
9008 * util/envblk.c: Renamed to ...
9009
9010 * lib/envblk.c: ... this.
9011
9012 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
9013 lib/hexdump.c.
9014 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
9015 (pkglib_MODULES): Add crc.mod.
9016 (hexdump_mod_SOURCES): Add lib/hexdump.c.
9017 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
9018 (crc_mod_SOURCES): New macro.
9019 (crc_mod_CFLAGS): Likewise.
9020 (crc_mod_LDFLAGS): Likewise.
9021
9022 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
9023
9024 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
9025
9026 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
9027
9028 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9029
9030 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
9031
9032 2008-07-27 Felix Zielcke <fzielcke@z-51.de>
9033
9034 * commands/help.c: Include <grub/term.h>.
9035 (TERM_WIDTH): Removed. Updated all users.
9036
9037 2008-07-27 Pavel Roskin <proski@gnu.org>
9038
9039 * util/getroot.c (find_root_device): Rephrase a comment to avoid
9040 spurious warnings about a comment within a comment.
9041
9042 2008-07-25 Robert Millan <rmh@aybabtu.com>
9043
9044 * util/getroot.c (find_root_device): Skip devices that match
9045 /dev/dm-[0-9]. This lets the real device be found for any type of
9046 abstraction (LVM, EVMS, RAID..).
9047 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
9048 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
9049 device is found first, find_root_device() will now skip it.
9050
9051 2008-07-24 Pavel Roskin <proski@gnu.org>
9052
9053 * include/grub/types.h: Use __builtin_bswap32() and
9054 __builtin_bswap64() with gcc 4.3 and newer.
9055
9056 2008-07-24 Christian Franke <franke@computer.org>
9057
9058 * util/i386/pc/grub-install.in: If `--debug' is specified,
9059 pass `--verbose' to grub-setup.
9060 Abort script if make_system_path_relative_to_its_root() fails.
9061
9062 2008-07-24 Bean <bean123ch@gmail.com>
9063
9064 * configure.ac: Fixed a bug caused by the previous cygwin patch,
9065 variable `target_platform' should be `platform'.
9066
9067 2008-07-24 Bean <bean123ch@gmail.com>
9068
9069 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
9070 (grub_png_init_fixed_block): New function.
9071 (grub_png_decode_image_data): Handle fixed huffman code compression.
9072
9073 2008-07-24 Bean <bean123ch@gmail.com>
9074
9075 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
9076 (grub_pe2elf_SOURCES): New macro.
9077 (CLEANFILES): Add grub-pe2elf.
9078
9079 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
9080 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
9081 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
9082 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
9083 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
9084 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
9085 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
9086 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
9087 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
9088 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
9089 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
9090 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
9091 (GRUB_PE32_DT_FUNCTION): Likewise.
9092 (GRUB_PE32_REL_I386_DIR32): Likewise.
9093 (GRUB_PE32_REL_I386_REL32): Likewise.
9094 (grub_pe32_symbol): New structure.
9095 (grub_pe32_reloc): Likewise.
9096
9097 * util/grub-pe2elf.c: New file.
9098
9099 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
9100 start symbol in non pc platform.
9101
9102 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
9103
9104 The following patches are from Christian Franke.
9105
9106 * include/grub/dl.h: Remove .previous, gas supports this only
9107 for ELF format.
9108
9109 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
9110 Remove .type, gas supports this only for ELF format.
9111
9112 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
9113 nullbytes in symbol table. This fixes an infinite loop if table is
9114 zero filled.
9115
9116 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
9117 TARGET_IMG_LDFLAGS and EXEEXT.
9118
9119 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
9120 TARGET_IMG_LDFLAGS_AC.
9121 (grub_CHECK_STACK_ARG_PROBE): New function.
9122
9123 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
9124
9125 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
9126
9127 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
9128 to set TARGET_IMG_LD* accordingly.
9129 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
9130 Add call to grub_CHECK_STACK_ARG_PROBE.
9131 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
9132
9133 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
9134
9135 * genmk.rb: Add EXEEXT to CLEANFILES.
9136
9137 2008-07-23 Robert Millan <rmh@aybabtu.com>
9138
9139 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
9140 define the codes for arrows and lines used for the menu).
9141 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
9142 as well.
9143
9144 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
9145 fonts, because the latter are too slow.
9146
9147 2008-07-21 Bean <bean123ch@gmail.com>
9148
9149 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
9150 a20. Run keyboard test last, as it will cause macbook to halt.
9151
9152 2008-07-18 Pavel Roskin <proski@gnu.org>
9153
9154 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
9155 load foreign architecture modules correctly anyway. Keep
9156 support for loading host architecture modules, whether we
9157 compile them or not.
9158
9159 2008-07-17 Pavel Roskin <proski@gnu.org>
9160
9161 * configure.ac: Use -m32 or -m64 regardless of whether we had to
9162 change target_cpu. The compiler default can mismatch target_cpu
9163 in any case.
9164
9165 * disk/efi/efidisk.c: Fix format warnings on x86_64.
9166 * kern/efi/efi.c: Likewise.
9167
9168 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
9169 target compiler is functional.
9170 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
9171 are set up.
9172
9173 * configure.ac: Default to efi platform for x86_64-apple. Allow
9174 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
9175 adjustments from the rest, only do them if target is not
9176 explicitly given. Merge other adjustments with the final sanity
9177 check. Remove an extraneous check for supported CPU. Be
9178 specific which CPU and which platform is not supported.
9179
9180 * configure.ac: Default to pc platform for x86_64.
9181
9182 2008-07-17 Robert Millan <rmh@aybabtu.com>
9183
9184 Partial LinuxBIOS -> Coreboot rename.
9185
9186 * conf/i386-linuxbios.rmk: Renamed to ...
9187 * conf/i386-coreboot.rmk: ... this.
9188 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
9189 * configure.ac: Accept "coreboot" as input platform (but maintain
9190 compatibility with "linuxbios").
9191 * include/grub/i386/linuxbios: Renamed to ...
9192 * include/grub/i386/coreboot: ... this.
9193
9194 2008-07-17 Bean <bean123ch@gmail.com>
9195
9196 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
9197 (appleldr_mod_SOURCE): New variable.
9198 (appleldr_mod_CFLAGS): Likewise.
9199 (appleldr_mod_LDFLAGS): Likewise.
9200 (pci_mod_SOURCES): Likewise.
9201 (pci_mod_CFLAGS): Likewise.
9202 (pci_mod_LDFLAGS): Likewise.
9203 (lspci_mod_SOURCES): Likewise.
9204 (lspci_mod_CFLAGS): Likewise.
9205 (lspci_mod_LDFLAGS): Likewise.
9206
9207 * conf/x86_64-efi.rmk: New file.
9208
9209 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
9210 macro.
9211 (grub_efidisk_write): Likewise.
9212
9213 * include/efi/api.h (efi_call_0): New macro.
9214 (efi_call_1): Likewise.
9215 (efi_call_2): Likewise.
9216 (efi_call_3): Likewise.
9217 (efi_call_4): Likewise.
9218 (efi_call_5): Likewise.
9219 (efi_call_6): Likewise.
9220
9221 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
9222 grub_rescue_cmd_chainloader.
9223
9224 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
9225 (grub_pe32_optional_header): Change some fields based on i386 or
9226 x86_64 platform.
9227 (GRUB_PE32_PE32_MAGIC): Likewise.
9228
9229 * include/grub/efi/uga_draw.h: New file.
9230
9231 * include/grub/elf.h (STN_ABS): New constant.
9232 (R_X86_64_NONE): Relocation constant for x86_64.
9233 (R_X86_64_64): Likewise.
9234 (R_X86_64_PC32): Likewise.
9235 (R_X86_64_GOT32): Likewise.
9236 (R_X86_64_PLT32): Likewise.
9237 (R_X86_64_COPY): Likewise.
9238 (R_X86_64_GLOB_DAT): Likewise.
9239 (R_X86_64_JUMP_SLOT): Likewise.
9240 (R_X86_64_RELATIVE): Likewise.
9241 (R_X86_64_GOTPCREL): Likewise.
9242 (R_X86_64_32): Likewise.
9243 (R_X86_64_32S): Likewise.
9244 (R_X86_64_16): Likewise.
9245 (R_X86_64_PC16): Likewise.
9246 (R_X86_64_8): Likewise.
9247 (R_X86_64_PC8): Likewise.
9248
9249 * include/grub/i386/efi/pci.h: New file.
9250
9251 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
9252 Change it value based on platform.
9253 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
9254 (GRUB_E820_RAM): Likewise.
9255 (GRUB_E820_RESERVED): Likewise.
9256 (GRUB_E820_ACPI): Likewise.
9257 (GRUB_E820_NVS): Likewise.
9258 (GRUB_E820_EXEC_CODE): Likewise.
9259 (GRUB_E820_MAX_ENTRY): Likewise.
9260 (grub_e820_mmap): New structure.
9261 (linux_kernel_header): Change the efi field according to different
9262 kernel version, also field from linux_kernel_header.
9263
9264 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
9265
9266 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
9267 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
9268 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
9269 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
9270 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
9271 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
9272 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
9273 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
9274 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
9275 (GRUB_PCI_ADDR_IO_MASK): Likewise.
9276
9277 * include/grub/x86_64/efi/kernel.h: New file.
9278
9279 * include/grub/x86_64/efi/loader.h: Likewise.
9280
9281 * include/grub/x86_64/efi/machine.h: Likewise.
9282
9283 * include/grub/x86_64/efi/pci.h: Likewise.
9284
9285 * include/grub/x86_64/efi/time.h: Likewise.
9286
9287 * include/grub/x86_64/linux.h: Likewise.
9288
9289 * include/grub/x86_64/setjmp.h: Likewise.
9290
9291 * include/grub/x86_64/time.h: Likewise.
9292
9293 * include/grub/x86_64/types.h: Likewise.
9294
9295 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
9296 GRUB_TARGET_SIZEOF_VOID_P.
9297
9298 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
9299 (grub_efi_locate_handle): Likewise.
9300 (grub_efi_open_protocol): Likewise.
9301 (grub_efi_set_text_mode): Likewise.
9302 (grub_efi_stall): Likewise.
9303 (grub_exit): Likewise.
9304 (grub_reboot): Likewise.
9305 (grub_halt): Likewise.
9306 (grub_efi_exit_boot_services): Likewise.
9307 (grub_get_rtc): Likewise.
9308
9309 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
9310 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
9311 (grub_efi_allocate_pages): Wrap efi calls.
9312 (grub_efi_free_pages): Wrap efi calls.
9313 (grub_efi_get_memory_map): Wrap efi calls.
9314
9315 * kern/x86_64/dl.c: New file.
9316
9317 * kern/x86_64/efi/callwrap.S: Likewise.
9318
9319 * kern/x86_64/efi/startup.S: Likewise.
9320
9321 * loader/efi/appleloader.c: Likewise.
9322
9323 * loader/efi/chainloader.c (cmdline): New variable.
9324 (grub_chainloader_unload): Wrap efi calls.
9325 (grub_chainloader_boot): Likewise.
9326 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
9327 command line.
9328
9329 * loader/efi/chainloader_normal.c (chainloader_command):
9330 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
9331 command line.
9332
9333 * loader/i386/efi/linux.c (allocate_pages): Change allocation
9334 method.
9335 (grub_e820_add_region): New function.
9336 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
9337 booting.
9338 (grub_find_video_card): New function.
9339 (grub_linux_setup_video): New function.
9340 (grub_rescue_cmd_linux): Probe for video information.
9341
9342 * normal/x86_64/setjmp.S: New file.
9343
9344 * term/efi/console.c (map_char): New function.
9345 (grub_console_putchar): Map unicode char.
9346 (grub_console_checkkey): Wrap efi calls.
9347 (grub_console_getkey): Likewise.
9348 (grub_console_getwh): Likewise.
9349 (grub_console_gotoxy): Likewise.
9350 (grub_console_cls): Likewise.
9351 (grub_console_setcolorstate): Likewise.
9352 (grub_console_setcursor): Likewise.
9353
9354 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
9355
9356 2008-07-16 Pavel Roskin <proski@gnu.org>
9357
9358 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
9359 format strings.
9360
9361 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
9362 pointer, not an integer. This fixes a warning and prevents
9363 precision loss on 64-bit systems.
9364 (relocate_addresses): Remove unneeded cast.
9365
9366 2008-07-15 Pavel Roskin <proski@gnu.org>
9367
9368 * kern/i386/ieee1275/init.c: Include grub/cache.h.
9369
9370 * term/ieee1275/ofconsole.c: Disable code unused on i386.
9371
9372 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
9373 Fix comparison between signed and unsigned.
9374
9375 * include/grub/i386/ieee1275/console.h: Declare
9376 grub_console_init() and grub_console_fini().
9377
9378 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
9379 It's empty and unused.
9380
9381 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
9382 beginning to avoid warnings with some compilers.
9383
9384 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
9385 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
9386
9387 2008-07-14 Pavel Roskin <proski@gnu.org>
9388
9389 * kern/env.c (grub_register_variable_hook): Don't copy empty
9390 string, it leaks memory. Pass "" to grub_env_set(), it should
9391 handle constant strings.
9392
9393 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
9394 * commands/cmp.c (grub_cmd_cmp): Likewise.
9395 * kern/dl.c (grub_dl_flush_cache): Likewise.
9396 (grub_dl_load_core): Likewise.
9397 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
9398 (grub_elf64_load_phdrs): Likewise.
9399
9400 2008-07-13 Pavel Roskin <proski@gnu.org>
9401
9402 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
9403 between signed and unsigned.
9404 (LzmaEnc_Finish): Fix warning about an unused parameter.
9405
9406 2008-07-13 Bean <bean123ch@gmail.com>
9407
9408 * Makefile.in (enable_lzo): New rule.
9409
9410 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
9411
9412 * configure.ac (ENABLE_LZO): New option --enable-lzo.
9413
9414 * boot/i386/pc/lnxboot.S: #include <config.h>.
9415
9416 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
9417 its value according to the compression algorithm used, lzo or lzma.
9418
9419 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
9420 compression algorithm according to configure macro.
9421
9422 * kern/i386/pc/startup.S (codestart): Likewise.
9423
9424 * kern/i386/pc/lzma_decode.S: New file.
9425
9426 * include/grub/lib/LzFind.h: Likewise.
9427
9428 * include/grub/lib/LzHash.h: Likewise.
9429
9430 * include/grub/lib/LzmaDec.h: Likewise.
9431
9432 * include/grub/lib/LzmaEnc.h: Likewise.
9433
9434 * include/grub/lib/LzmaTypes.h: Likewise.
9435
9436 * lib/LzFind.c: Likewise.
9437
9438 * lib/LzmaDec.c: Likewise.
9439
9440 * lib/LzmaEnc.c: Likewise.
9441
9442 2008-07-13 Bean <bean123ch@gmail.com>
9443
9444 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
9445 (grub_ext4_extent_header): New structure.
9446 (grub_ext4_extent): Likewise.
9447 (grub_ext4_extent_idx): Likewise.
9448 (grub_ext4_find_leaf): New function.
9449 (grub_ext2_read_block): Handle extents.
9450
9451 2008-07-12 Robert Millan <rmh@aybabtu.com>
9452
9453 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
9454
9455 2008-07-11 Robert Millan <rmh@aybabtu.com>
9456
9457 * util/grub.d/40_custom.in: New file. Example on how to add custom
9458 entries to /etc/grub.d.
9459 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
9460 40_custom (implicitly, by merging all the grub.d rules).
9461
9462 2008-07-11 Pavel Roskin <proski@gnu.org>
9463
9464 * commands/read.c (grub_getline): Fix invalid memory access.
9465 Don't add newline to the variable value.
9466
9467 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
9468 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
9469 (serial_hw_get_port): Check validity of the port number.
9470 (grub_cmd_serial): Check return value of serial_hw_get_port().
9471
9472 2008-07-07 Pavel Roskin <proski@gnu.org>
9473
9474 * boot/i386/pc/diskboot.S (notification_string): Replace
9475 "Loading kernel" with just "loading". This is shorter, less
9476 confusing and saves a few bytes for possible future changes.
9477
9478 2008-07-05 Pavel Roskin <proski@gnu.org>
9479
9480 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
9481 size for ATAPI devices, they are undefined. Output sector
9482 number in decimal form.
9483
9484 * disk/ata.c: Use named constants for status bits.
9485
9486 2008-07-04 Pavel Roskin <proski@gnu.org>
9487
9488 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
9489 grub_addr_t before casting it to the void pointer to fix a
9490 warning. Non-addressable regions are discarded earlier.
9491 (grub_arch_modules_addr): Cast _end to grub_addr_t.
9492 * kern/i386/linuxbios/table.c: Include grub/misc.h.
9493 (check_signature): Don't shadow table_header.
9494 (grub_linuxbios_table_iterate): Cast numeric constants to
9495 grub_linuxbios_table_header_t.
9496 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
9497 grub_stop().
9498
9499 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
9500 prevent warnings.
9501
9502 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
9503 pointer, which can cause warnings. Support 64-bit addresses.
9504
9505 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
9506 of sizeof(long). This fixes PowerPC image generation on x86_64.
9507
9508 2008-07-04 Robert Millan <rmh@aybabtu.com>
9509
9510 This fixes a performance issue when pc & gpt partmap iterators
9511 didn't abort iteration even after our hook found what it was
9512 looking for (often causing expensive probes of non-existent drives).
9513
9514 Some callers relied on previous buggy behaviour, since they would
9515 raise an error when their own hooks caused early abortion of its
9516 iteration.
9517
9518 * kern/device.c (grub_device_open): Improve error message.
9519 * disk/lvm.c (grub_lvm_open): Likewise.
9520 * disk/raid.c (grub_raid_open): Likewise.
9521
9522 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
9523 when hook requests it, independently of grub_errno.
9524 (pc_partition_map_probe): Do not fail when find_func() caused
9525 early abortion of pc_partition_map_iterate().
9526
9527 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
9528 when hook requests it, independently of grub_errno.
9529 (gpt_partition_map_probe): Do not fail when find_func() caused
9530 early abortion of gpt_partition_map_iterate().
9531
9532 * kern/partition.c (grub_partition_iterate): Abort parent iteration
9533 when hook requests it, independently of grub_errno. Do not fail when
9534 part_map_iterate_hook() caused early abortion of p->iterate().
9535
9536 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
9537 when grub_partition_iterate() returned with non-zero.
9538
9539 2008-07-03 Pavel Roskin <proski@gnu.org>
9540
9541 * disk/ata.c (grub_ata_pio_write): Check status before writing,
9542 like we do in grub_ata_pio_read().
9543 (grub_ata_readwrite): Always write individual sectors. Fix the
9544 sector count for the remainder.
9545 (grub_ata_write): Enable writing to ATA devices. Correctly
9546 report error for ATAPI devices.
9547
9548 2008-07-02 Pavel Roskin <proski@gnu.org>
9549
9550 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
9551 warning.
9552
9553 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
9554 for every read sector, we already increment it for the whole
9555 batch. This fixes reading more than 256 sectors at once.
9556
9557 * util/grub-editenv.c (cmd_info): Cast argument to long
9558 explicitly. ptrdiff_t reduces to int on i386.
9559
9560 * util/grub-editenv.c (main): Be specific which parameter is
9561 missing.
9562
9563 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
9564 (memdisk): Make memdisk_orig_addr a pointer.
9565
9566 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
9567 for file offsets, use grub_off_t instead. Fix printf format
9568 warnings.
9569
9570 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
9571 there. Real unexpected warnings should not drown in the noise
9572 about known problems.
9573
9574 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
9575 grub_disk_addr_t for memory addresses.
9576
9577 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
9578 explicitly to fix a warning.
9579
9580 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
9581
9582 * Makefile.in (MODULE_LDFLAGS): New variable.
9583 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
9584 the linker accepts --build-id=none.
9585 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
9586 MODULE_LDFLAGS.
9587 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
9588
9589 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
9590 those in Linux XFS code. Provide a way to access 64-bit parent
9591 inode.
9592 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
9593 the end of struct grub_xfs_dir_header.
9594
9595 2008-07-02 Bean <bean123ch@gmail.com>
9596
9597 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
9598 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
9599 and GRUB_IEEE1275_FLAG_NO_ANSI.
9600
9601 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
9602 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
9603 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
9604
9605 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
9606 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
9607
9608 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
9609 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
9610
9611 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
9612 esc sequence on non ANSI terminal.
9613 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
9614
9615 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
9616 beginning of file.
9617
9618 2008-07-02 Bean <bean123ch@gmail.com>
9619
9620 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
9621 (grub_editenv_SOURCES): New variable.
9622 (pkglib_MODULES): Add loadenv.mod.
9623 (loadenv_mod_SOURCES): New variable.
9624 (loadenv_mod_CFLAGS): Likewise.
9625 (loadenv_mod_LDFLAGS): Likewise.
9626
9627 * include/grub/envblk.h: New file.
9628
9629 * util/envblk.c: New file.
9630
9631 * util/grub-editenv.c: New file.
9632
9633 * commands/loadenv.c: New file.
9634
9635 2008-07-01 Pavel Roskin <proski@gnu.org>
9636
9637 * include/multiboot2.h (struct multiboot_tag_module): Use char,
9638 not unsigned char. This fixes warnings and is consistent with
9639 other tags.
9640
9641 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
9642
9643 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
9644
9645 * term/tparm.c (analyze): Always set *popcount.
9646
9647 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
9648 cast to fix a warning.
9649
9650 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
9651 cast to suppress a warning.
9652
9653 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
9654 grub_fshelp_read_file() expects.
9655
9656 * fs/fat.c: Fix UUID calculation on big-endian systems. We
9657 write uuid as a 32-bit value in CPU byte order, so declare and
9658 use it as such.
9659
9660 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
9661 long if the format specifier expects it.
9662 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
9663 * partmap/pc.c (pc_partition_map_iterate): Likewise.
9664 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
9665 long to fix a warning.
9666 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
9667 grub_dprintf() arguments to fix warnings.
9668
9669 2008-06-30 Pavel Roskin <proski@gnu.org>
9670
9671 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
9672 install_bsd_part immediately before core.img is embedded or
9673 modified on disk. This fixes core.img verification if core.img
9674 cannot be embedded.
9675
9676 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
9677 core_path to calculate the blocklist.
9678 Patch from Javier Martín <lordhabbit@gmail.com>
9679
9680 2008-06-29 Robert Millan <rmh@aybabtu.com>
9681
9682 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
9683 block to disk block.
9684 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
9685 Patch from Niels Böhm <bitbucket@arcor.de>
9686
9687 2008-06-29 Robert Millan <rmh@aybabtu.com>
9688
9689 * util/update-grub_lib.in (font_path): Search for fonts in
9690 /boot/grub first, which is more likely to be readable (we aren't
9691 deciding where fonts live, just looking for them).
9692
9693 2008-06-26 Pavel Roskin <proski@gnu.org>
9694
9695 * util/biosdisk.c (read_device_map): Don't leave dead map
9696 entries for devices failing stat() check.
9697
9698 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
9699 core_path_dev for the core.img path on the target device.
9700
9701 2008-06-26 Robert Millan <rmh@aybabtu.com>
9702
9703 * disk/fs_uuid.c: New file.
9704 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
9705 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
9706 (fs_uuid_mod_LDFLAGS): New variables.
9707 * include/grub/disk.h (grub_disk_dev_id): Add
9708 `GRUB_DISK_DEVICE_UUID_ID'.
9709 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
9710 implement iterate().
9711
9712 2008-06-26 Robert Millan <rmh@aybabtu.com>
9713
9714 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
9715 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
9716 Linux image includes no initrd.
9717
9718 2008-06-21 Javier Martín <lordhabbit@gmail.com>
9719
9720 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
9721 call to resolve the core image location that effectively appended the
9722 name twice.
9723
9724 2008-06-21 Robert Millan <rmh@aybabtu.com>
9725
9726 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
9727 call from here ...
9728
9729 * util/grub.d/10_hurd.in: ... to here ...
9730 * util/grub.d/10_linux.in: ... and here.
9731
9732 2008-06-19 Robert Millan <rmh@aybabtu.com>
9733
9734 * kern/main.c (grub_main): Export `prefix' variable immediately
9735 after it has been set by grub_machine_set_prefix().
9736
9737 2008-06-19 Robert Millan <rmh@aybabtu.com>
9738
9739 * commands/search.c (search_label, search_fs_uuid, search_file): Print
9740 search result when not saving to variable, not the other way around.
9741 When saving to variable, abort iteration as soon as a match is found.
9742
9743 2008-06-19 Robert Millan <rmh@aybabtu.com>
9744
9745 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
9746 check for partition that provides /boot/grub. Its logic is flawed,
9747 as it prevents prepare_grub_to_access_device() from being called
9748 multiple times.
9749
9750 2008-06-19 Robert Millan <rmh@aybabtu.com>
9751
9752 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
9753 "insmod" command directly when abstraction modules are needed,
9754 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
9755 since it had already been processed).
9756
9757 2008-06-19 Pavel Roskin <proski@gnu.org>
9758
9759 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
9760 changed. This is needed in case GRUB_LIBDIR changes.
9761 * conf/i386-ieee1275.rmk: Likewise.
9762 * conf/i386-linuxbios.rmk: Likewise.
9763 * conf/i386-pc.rmk: Likewise.
9764 * conf/powerpc-ieee1275.rmk: Likewise.
9765
9766 2008-06-18 Pavel Roskin <proski@gnu.org>
9767
9768 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
9769 kernel_elf_symlist.c to symlist.c for consistency with other
9770 architectures. Update all users.
9771 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
9772
9773 2008-06-18 Robert Millan <rmh@aybabtu.com>
9774
9775 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
9776 it in prefix.
9777
9778 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
9779 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
9780 a RAID device, run setup() for all members independently on whether
9781 LVM abstraction is being used.
9782 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
9783 If grub-mkimage has set `*install_dos_part == -2', don't override this
9784 value.
9785 Perform *install_dos_part adjustments independently on whether
9786 we're embedding or not.
9787 Clarify error message when image is too big for embedding.
9788 Remove duplicate *install_dos_part stanza.
9789
9790 2008-06-17 Robert Millan <rmh@aybabtu.com>
9791
9792 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
9793 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
9794 variables.
9795 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
9796 values in grub_ofconsole_normal_color and
9797 grub_ofconsole_highlight_color (they're not directly related to
9798 background and foreground).
9799 (grub_ofconsole_setcolorstate): Extract background and foreground
9800 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
9801
9802 2008-06-17 Robert Millan <rmh@aybabtu.com>
9803
9804 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
9805 /boot/grub for the check in last commit, not /boot (they could be
9806 different partitions).
9807
9808 2008-06-16 Robert Millan <rmh@aybabtu.com>
9809
9810 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
9811 asked to setup access for the same partition that provides /boot,
9812 don't bother using UUIDs since our root already has the value we
9813 want.
9814
9815 2008-06-16 Robert Millan <rmh@aybabtu.com>
9816
9817 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
9818 I2O devices.
9819 Patch from Sven Mueller <sven@debian.org>.
9820
9821 2008-06-16 Robert Millan <rmh@aybabtu.com>
9822
9823 * util/update-grub.in: Check for $EUID instead of $UID.
9824 Reported by Vincent Zweije.
9825
9826 2008-06-16 Bean <bean123ch@gmail.com>
9827
9828 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
9829 (grub_ext2_read_block): Likewise.
9830 (grub_ext2_read_inode): Likewise.
9831 (grub_ext2_mount): Likewise.
9832 (grub_ext2_close): Likewise.
9833 (grub_ext3_get_journal): Removed.
9834
9835 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
9836 (grub_reiserfs_read_symlink): Likewise.
9837 (grub_reiserfs_mount): Likewise.
9838 (grub_reiserfs_open): Likewise.
9839 (grub_reiserfs_read): Likewise.
9840 (grub_reiserfs_close): Likewise.
9841 (grub_reiserfs_get_journal): Removed.
9842
9843 * fs/fshelp.c (grub_fshelp_read): Removed.
9844 (grub_fshelp_map_block): Likewise.
9845
9846 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
9847 (grub_fshelp_journal): Likewise.
9848 (grub_fshelp_read): Likewise.
9849 (grub_fshelp_map_block): Likewise.
9850
9851 2008-06-16 Pavel Roskin <proski@gnu.org>
9852
9853 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
9854 floating point anymore.
9855 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
9856
9857 2008-06-15 Pavel Roskin <proski@gnu.org>
9858
9859 * commands/ls.c (grub_ls_list_files): Use integer calculations
9860 for human readable format, avoid floating point use.
9861 * kern/misc.c (grub_ftoa): Remove.
9862 (grub_vsprintf): Remove floating point support.
9863
9864 2008-06-15 Robert Millan <rmh@aybabtu.com>
9865
9866 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
9867 devices.
9868 Reported by Max Vozeler.
9869
9870 2008-06-15 Robert Millan <rmh@aybabtu.com>
9871
9872 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
9873 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
9874 skipped later.
9875 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
9876 the beginning of the prefix.
9877
9878 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
9879 It is assumed that if we have a memdisk, grub-mkimage has set
9880 grub_prefix to include the "(memdisk)" drive in it.
9881
9882 2008-06-15 Robert Millan <rmh@aybabtu.com>
9883
9884 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
9885 Initialize keyboard controller after registering the terminal, so that
9886 grub_printf() can be called from grub_keyboard_controller_init().
9887
9888 2008-06-15 Robert Millan <rmh@aybabtu.com>
9889
9890 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
9891 extent-btree which is written as big endian on disk.
9892 Reported by Alain Greppin <al@chilibi.org>.
9893
9894 2008-06-14 Robert Millan <rmh@aybabtu.com>
9895
9896 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
9897 * util/i386/pc/grub-install.in (modules): Likewise.
9898
9899 2008-06-13 Pavel Roskin <proski@gnu.org>
9900
9901 * commands/ls.c (grub_ls_list_files): Fix format warnings.
9902
9903 2008-06-13 Bean <bean123ch@gmail.com>
9904
9905 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
9906
9907 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
9908
9909 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
9910 to indicate sparse block.
9911
9912 2008-06-12 Pavel Roskin <proski@gnu.org>
9913
9914 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
9915 number, grub_fshelp_read() does it for us.
9916
9917 * fs/fshelp.c (grub_fshelp_read): New function. Implement
9918 linear disk read with journal translation.
9919 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
9920 * include/grub/fshelp.h: Declare grub_fshelp_read().
9921
9922 2008-06-09 Pavel Roskin <proski@gnu.org>
9923
9924 * fs/minix.c (grub_minix_mount): Handle error reading
9925 superblock.
9926
9927 2008-06-08 Robert Millan <rmh@aybabtu.com>
9928
9929 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
9930 don't append the RAID prefix afterwards.
9931 Reported by Clint Adams.
9932
9933 2008-06-08 Robert Millan <rmh@aybabtu.com>
9934
9935 Based on description from Pavel:
9936 * kern/disk.c (grub_disk_check_range): Rename to ...
9937 (grub_disk_adjust_range): ... this. Add a comment explaining the
9938 tasks performed by this function.
9939
9940 2008-06-08 Robert Millan <rmh@aybabtu.com>
9941
9942 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
9943 `num_serial' (for consistency with other variables).
9944 (struct grub_ntfs_data): Add `uuid' member.
9945 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
9946 (grub_ntfs_uuid): New function.
9947 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
9948
9949 2008-06-07 Pavel Roskin <proski@gnu.org>
9950
9951 * util/biosdisk.c (open_device): Revert last change to the
9952 function, it broke installation. The sector needs to be
9953 different dependent on which device is opened.
9954
9955 2008-06-06 Robert Millan <rmh@aybabtu.com>
9956
9957 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
9958 rest of GRUB, and breakage doesn't happen if its value were modified.
9959
9960 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
9961 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
9962 a constant (same value).
9963 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
9964 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
9965
9966 2008-06-06 Robert Millan <rmh@aybabtu.com>
9967
9968 * util/biosdisk.c (open_device): Do not modify sector offset when
9969 accessing a partition. kern/disk.c already handles this for us.
9970
9971 2008-06-06 Robert Millan <rmh@aybabtu.com>
9972
9973 * util/grub-emu.c (grub_machine_init): Move code in this function from
9974 here ...
9975 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
9976 segfault in case grub_printf() is called).
9977
9978 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
9979 grub_probe. Update all users not to explicitly add it again.
9980 (grub_device): New variable; contains corresponding device for grubdir.
9981 (fs_module, partmap_module, devabstraction_module): Pass
9982 `--device ${grub_device}' to grub_probe to avoid traversing /dev
9983 every time.
9984
9985 2008-06-05 Robert Millan <rmh@aybabtu.com>
9986
9987 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
9988 is found, print it (same layout as with labels).
9989
9990 2008-06-04 Robert Millan <rmh@aybabtu.com>
9991
9992 * util/biosdisk.c (get_drive): Rename to ...
9993 (find_grub_drive): ... this. Update all users.
9994
9995 (get_os_disk): Rename to ...
9996 (convert_system_partition_to_system_disk): ... this. Update all users.
9997
9998 (find_drive): Rename to ...
9999 (find_system_device): ... this. Update all users.
10000
10001 2008-06-04 Robert Millan <rmh@aybabtu.com>
10002
10003 * util/biosdisk.c (get_os_disk): Handle IDA devices.
10004 * util/grub-mkdevicemap.c (get_mmc_disk_name)
10005 (make_device_map): Likewise.
10006
10007 2008-06-01 Robert Millan <rmh@aybabtu.com>
10008
10009 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
10010 before dereferencing it.
10011
10012 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
10013 union with fat12/fat16-specific ones. Add some new fields, including
10014 `num_serial' for both versions.
10015 (struct grub_fat_data): Add `uuid' member.
10016 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
10017 names. Initialize `data->uuid' using `num_serial'.
10018 (grub_fat_uuid): New function.
10019 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
10020
10021 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
10022 (grub_reiserfs_uuid): New function.
10023 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
10024 member.
10025
10026 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
10027 (grub_xfs_uuid): New function.
10028 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
10029
10030 2008-06-01 Robert Millan <rmh@aybabtu.com>
10031
10032 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
10033 code that is backward compatible with pre-uuid search command.
10034
10035 2008-05-31 Robert Millan <rmh@aybabtu.com>
10036
10037 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
10038 floppies after everything else, to ensure floppy drive isn't accessed
10039 unnecessarily (patch from Bean).
10040
10041 2008-05-31 Robert Millan <rmh@aybabtu.com>
10042
10043 * commands/search.c (search_label, search_fs_uuid, search_file): Do
10044 not print device names when we were asked to set a variable.
10045
10046 2008-05-31 Robert Millan <rmh@aybabtu.com>
10047
10048 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
10049 using "cursor-on" and "cursor-off" commands (understood at least by
10050 the Open Firmware flavour on OLPC).
10051
10052 2008-05-31 Michael Gorven <michael@gorven.za.net>
10053
10054 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
10055 on and off sequences.
10056
10057 2008-05-31 Robert Millan <rmh@aybabtu.com>
10058
10059 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
10060 * util/update-grub.in: Likewise.
10061
10062 2008-05-30 Pavel Roskin <proski@gnu.org>
10063
10064 * util/biosdisk.c (linux_find_partition): Simplify logic and
10065 make the code more universal. Keep special processing for
10066 devfs, but use a simple rule for all other devices. If the
10067 device ends with a number, append 'p' and the partition number.
10068 Otherwise, append only the partition number.
10069
10070 2008-05-30 Robert Millan <rmh@aybabtu.com>
10071
10072 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
10073 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
10074 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
10075 the `root' parameter to Linux.
10076
10077 2008-05-30 Robert Millan <rmh@aybabtu.com>
10078
10079 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
10080 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
10081 --fs_uuid with --fs-uuid.
10082 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
10083 all filesystems support them).
10084
10085 2008-05-30 Robert Millan <rmh@aybabtu.com>
10086
10087 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
10088 grub_printf() flags, since we're printing in units of 2 bytes.
10089
10090 2008-05-30 Robert Millan <rmh@aybabtu.com>
10091
10092 * util/grub.d/00_header.in: Remove obsolete comment referencing
10093 convert_system_path_to_grub_path().
10094 * util/update-grub.in: Likewise.
10095 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
10096 (convert_system_path_to_grub_path): Add a warning message explaining
10097 that this function is deprecated. Rely on is_path_readable_by_grub()
10098 for the readability checks.
10099 (font_path): Use is_path_readable_by_grub() for the readability
10100 check rather than convert_system_path_to_grub_path().
10101
10102 2008-05-30 Robert Millan <rmh@aybabtu.com>
10103
10104 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
10105 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
10106 converting it first.
10107 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
10108 grub.cfg for access to font file, and afterwards call it again to set
10109 the root device.
10110
10111 2008-05-30 Robert Millan <rmh@aybabtu.com>
10112
10113 * commands/search.c (options): Add --fs_uuid option.
10114 (search_fs_uuid): New function.
10115 (grub_cmd_search): Fix --set argument passing.
10116 Use search_fs_uuid() when requested via --fs_uuid.
10117 (grub_search_init): Update help message.
10118 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
10119 and redeclare it as an array of 16-bit words.
10120 (grub_ext2_uuid): New function.
10121 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
10122 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
10123 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
10124 (GRUB_DEVICE_BOOT_UUID): New variables.
10125 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
10126 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
10127 whenever possible.
10128 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
10129 just assume `root' variable has the right value.
10130 * util/grub.d/10_linux.in: Likewise.
10131 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
10132 via PRINT_FS_UUID.
10133 (main): Recognise `-t fs_uuid' argument.
10134
10135 2008-05-30 Robert Millan <rmh@aybabtu.com>
10136
10137 * util/biosdisk.c (map): Redefine structure to hold information
10138 about GRUB drive name.
10139 (get_drive): Reimplement without assuming (and verifying) BIOS-like
10140 drive names.
10141 (call_hook): Remove.
10142 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
10143 member. Assume drive has partitions.
10144 (grub_util_biosdisk_open): Access device names via `.device' struct
10145 member.
10146 (open_device): Likewise.
10147 (find_drive): Likewise.
10148 (read_device_map): Adjust map[] usage to match the new struct
10149 definition. Don't check for duplicates (still possible, but not cheap
10150 anymore).
10151 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
10152 (make_device_name): Remove assumption of BIOS-like drive names.
10153
10154 2008-05-30 Pavel Roskin <proski@gnu.org>
10155
10156 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
10157 compiling execute.c doesn't need grub_script.tab.h anymore.
10158 (normal/command.c_DEPENDENCIES): Likewise.
10159 (normal/function.c_DEPENDENCIES): Likewise.
10160 * conf/i386-ieee1275.rmk: Likewise.
10161 * conf/i386-linuxbios.rmk: Likewise.
10162 * conf/i386-pc.rmk: Likewise.
10163 * conf/powerpc-ieee1275.rmk: Likewise.
10164 * conf/sparc64-ieee1275.rmk: Likewise.
10165
10166 2008-05-29 Pavel Roskin <proski@gnu.org>
10167
10168 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
10169 when scanning metadata for volume group name.
10170
10171 * include/grub/script.h: Don't include grub_script.tab.h. It's
10172 a generated file, which may only be included from the files with
10173 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
10174 use union YYSTYPE, as the later allows forward declaration.
10175 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
10176
10177 2008-05-29 Robert Millan <rmh@aybabtu.com>
10178
10179 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
10180 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
10181 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
10182 (grub_console_checkkey): Add grub_dprintf() call to report unknown
10183 scan codes.
10184
10185 2008-05-29 Robert Millan <rmh@aybabtu.com>
10186
10187 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
10188 control key combinations.
10189
10190 2008-05-29 Robert Millan <rmh@aybabtu.com>
10191
10192 * util/powerpc/ieee1275/grub-install.in: Move from here ...
10193 * util/ieee1275/grub-install.in: ... to here.
10194 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
10195 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
10196 (grub_install_SOURCES): Likewise.
10197
10198 2008-05-29 Robert Millan <rmh@aybabtu.com>
10199
10200 * fs/affs.c: Update copyright year.
10201 * fs/ext2.c: Likewise.
10202 * fs/fshelp.c: Likewise.
10203 * fs/hfsplus.c: Likewise.
10204 * fs/ntfs.c: Likewise.
10205 * fs/xfs.c: Likewise.
10206 * include/grub/fshelp.h: Likewise.
10207 * util/grub-mkdevicemap.c: Likewise.
10208
10209 2008-05-28 Robert Millan <rmh@aybabtu.com>
10210
10211 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
10212 might need to be fatfs to support some firmware implementations
10213 (e.g. OFW or EFI).
10214
10215 2008-05-28 Robert Millan <rmh@aybabtu.com>
10216
10217 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
10218 devices.
10219 * util/grub-mkdevicemap.c (get_mmc_disk_name)
10220 (make_device_map): Likewise.
10221
10222 2008-05-20 Bean <bean123ch@gmail.com>
10223
10224 * fs/fshelp.c (grub_fshelp_map_block): New function.
10225 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
10226 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
10227
10228 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
10229 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
10230 (grub_fshelp_journal): New structure.
10231 (grub_fshelp_map_block): New function prototype.
10232 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
10233 (grub_fshelp_map_block): Likewise.
10234
10235 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
10236 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
10237 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
10238 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
10239 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
10240 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
10241 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
10242 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
10243 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
10244 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
10245 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
10246 (grub_ext2_sblock): New members for journal support.
10247 (grub_ext3_journal_header): New structure.
10248 (grub_ext3_journal_revoke_header): Likewise.
10249 (grub_ext3_journal_block_tag): Likewise.
10250 (grub_ext3_journal_sblock): Likewise.
10251 (grub_fshelp_node): New members logfile and journal.
10252 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
10253 grub_fshelp_map_block to get real block number.
10254 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
10255 number.
10256 (grub_ext2_read_inode): Likewise.
10257 (grub_ext3_get_journal): New function.
10258 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
10259 (grub_ext2_close): Release memory used by journal.
10260
10261 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
10262 (REISERFS_MAGIC_DESC_BLOCK): New macro.
10263 (grub_reiserfs_transaction_header): Renamed to
10264 grub_reiserfs_description_block, replace field data with real_blocks.
10265 (grub_reiserfs_commit_block): New structure.
10266 (grub_reiserfs_data): New member journal.
10267 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
10268 number.
10269 (grub_reiserfs_read_symlink): Likewise.
10270 (grub_reiserfs_iterate_dir): Likewise.
10271 (grub_reiserfs_open): Likewise.
10272 (grub_reiserfs_read): Likewise.
10273 (grub_reiserfs_get_journal): New function.
10274 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
10275 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
10276 using grub_reiserfs_get_journal.
10277 (grub_reiserfs_close): Release memory used by journal.
10278
10279 * fs/affs.c (grub_affs_read_block): Change block type to
10280 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
10281
10282 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
10283
10284 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
10285
10286 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
10287
10288 * fs/udf.c (grub_udf_read_block): Change block type to
10289 grub_disk_addr_t. Use type cast to avoid warning.
10290
10291 * fs/xfs.c (grub_xfs_read_block): Likewise.
10292
10293 2008-05-16 Christian Franke <franke@computer.org>
10294
10295 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
10296 to ensure that break with ESC will always work.
10297 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
10298 Remove ESC from keyboard queue.
10299
10300 2008-05-16 Christian Franke <franke@computer.org>
10301
10302 * util/biosdisk.c: [__CYGWIN__] Add includes.
10303 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
10304 (get_os_disk): Move variable declarations to OS specific
10305 parts to avoid warning.
10306 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
10307 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
10308 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
10309 Cygwin.
10310 * util/getroot.c: [__CYGWIN__] Add includes.
10311 (strip_extra_slashes): Fix "/" case.
10312 [__CYGWIN__] (get_win32_path): New function.
10313 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
10314 [__CYGWIN__] (find_root_device): Disable.
10315 [__CYGWIN__] (get_bootsec_serial): New function.
10316 [__CYGWIN__] (find_cygwin_root_device): Likewise.
10317 [__linux__] (grub_guess_root_device): Add early returns to simplify
10318 structure.
10319 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
10320 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
10321 check for Linux only.
10322
10323 2008-05-15 Bean <bean123ch@gmail.com>
10324
10325 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
10326 keyboard hang problem in apple's intel mac.
10327
10328 2008-05-09 Robert Millan <rmh@aybabtu.com>
10329
10330 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
10331 devices.
10332 * util/grub-mkdevicemap.c (get_virtio_disk_name)
10333 (make_device_map): Likewise.
10334 Reported by Aurelien Jarno <aurel32@debian.org>
10335
10336 2008-05-07 Ian Campbell <ijc@hellion.org.uk>
10337
10338 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
10339 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
10340 (make_device_map): Output entries for xvd type disks.
10341
10342 2008-05-07 Robert Millan <rmh@aybabtu.com>
10343
10344 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
10345 devices.
10346 * util/grub-mkdevicemap.c (get_cciss_disk_name)
10347 (make_device_map): Likewise.
10348 Reported by Roland Dreier <rdreier@cisco.com>
10349
10350 2008-05-07 Robert Millan <rmh@aybabtu.com>
10351
10352 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
10353 grub_strstr() call. Correct a few mistakes in failure path handling.
10354
10355 2008-05-06 Robert Millan <rmh@aybabtu.com>
10356
10357 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
10358 Do not print a trailing slash (therefore, the root directory is an
10359 empty string).
10360 (convert_system_path_to_grub_path): Do not remove trailing slash
10361 from make_system_path_relative_to_its_root() output.
10362
10363 * util/i386/pc/grub-install.in: Add trailing slash to output from
10364 make_system_path_relative_to_its_root().
10365
10366 2008-05-06 Robert Millan <rmh@aybabtu.com>
10367
10368 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
10369 ensures that output lines aren't intermangled with those sent to
10370 stderr (via grub_util_info()).
10371 * util/grub-probe.c (grub_refresh): Likewise.
10372 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
10373
10374 2008-05-05 Christian Franke <franke@computer.org>
10375
10376 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
10377 Add Cygwin device names.
10378 (get_ide_disk_name) [__CYGWIN__]: Likewise.
10379 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
10380 (check_device): Return error instead of success on empty name.
10381 (make_device_map): Move label inside linux specific code to
10382 prevent compiler warning.
10383
10384 2008-04-30 Robert Millan <rmh@aybabtu.com>
10385
10386 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
10387 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
10388 first boot option.
10389 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
10390
10391 2008-04-29 Robert Millan <rmh@aybabtu.com>
10392
10393 * docs/grub.cfg: New file (example GRUB configuration).
10394
10395 2008-04-26 Robert Millan <rmh@aybabtu.com>
10396
10397 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
10398 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
10399 and `disk/ieee1275/nand.c'.
10400
10401 2008-04-25 Bean <bean123ch@gmail.com>
10402
10403 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
10404 i386-linuxbios.
10405
10406 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
10407 change the buffer size to 4096 for cdrom device.
10408
10409 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
10410 and nand.mod.
10411 (_linux_mod_SOURCES): New variable.
10412 (_linux_mod_CFLAGS): Likewise.
10413 (_linux_mod_LDFLAGS): Likewise.
10414 (linux_mod_SOURCES): Likewise.
10415 (linux_mod_CFLAGS): Likewise.
10416 (linux_mod_LDFLAGS): Likewise.
10417 (nand_mod_SOURCES): Likewise.
10418 (nand_mod_CFLAGS): Likewise.
10419 (nand_mod_LDFLAGS): Likewise.
10420
10421 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
10422 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
10423 type property. (nand device in olpc don't have this property)
10424
10425 * include/grub/disk.h (grub_disk_dev_id): New macro
10426 GRUB_DISK_DEVICE_NAND_ID.
10427
10428 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
10429 function prototype.
10430 (grub_rescue_cmd_initrd): Likewise.
10431
10432 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
10433 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
10434 ofw_cif_handler and ofw_idt, adjust padding number.
10435
10436 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
10437 GRUB_MACHINE_IEEE1275 is defined.
10438
10439 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
10440 Use NESTED_FUNC_ATTR attribute on the hook parameter.
10441
10442 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
10443 on nested function heap_init.
10444 (grub_upper_mem): New variable for i386-ieee1275.
10445 (grub_get_extended_memory): New function for i386-ieee1275.
10446 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
10447
10448 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
10449 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
10450 property.
10451
10452 * loader/i386/ieee1275/linux.c: New file.
10453
10454 * loader/i386/ieee1275/linux_normal.c: New file.
10455
10456 * disk/ieee1275/nand.c: New file.
10457
10458 2008-04-18 Thomas Schwinge <tschwinge@gnu.org>
10459
10460 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
10461 value.
10462 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
10463
10464 2008-04-18 Robert Millan <rmh@aybabtu.com>
10465
10466 Restructures early code path on ieee1275 to unify grub_main() as
10467 the first C function that is executed in every platform.
10468
10469 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
10470 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
10471 cmain().
10472 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
10473 * kern/ieee1275/cmain.c (cmain): Rename to ...
10474 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
10475 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
10476 at the beginning.
10477
10478 2008-04-18 Robert Millan <rmh@aybabtu.com>
10479
10480 * util/update-grub.in: Fix syntax error when setting
10481 `GRUB_PRELOAD_MODULES'.
10482 Reported by Stephane Chazelas <stephane@artesyncp.com>
10483
10484 2008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
10485
10486 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
10487 section into account, newer toolchains generate unique build ids
10488 * configure.ac: remove the test for --build-id=none acceptance,
10489 we want build ids to be preserved
10490 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
10491 far from other sections don't cause the raw binary images grow
10492 size
10493
10494 2008-04-15 Robert Millan <rmh@aybabtu.com>
10495
10496 * disk/lvm.c: Update copyright year.
10497 * kern/misc.c: Likewise.
10498
10499 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
10500
10501 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
10502 there is no memory left for physical volume name.
10503
10504 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
10505
10506 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
10507 volume name mapping to support bigger than 9 character names properly.
10508
10509 2008-04-13 Robert Millan <rmh@aybabtu.com>
10510
10511 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
10512 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
10513
10514 2008-04-13 Christian Franke <franke@computer.org>
10515
10516 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
10517 to create a floppy emulation boot CD when non emulation mode
10518 does not work.
10519 Enable Joliet CD filesystem extension.
10520
10521 2008-04-13 Robert Millan <rmh@aybabtu.com>
10522
10523 * kern/misc.c (grub_strncat): Fix off-by-one error.
10524 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
10525
10526 * kern/env.c (grub_env_context_close): Clear current context, not
10527 previous one.
10528 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
10529
10530 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
10531
10532 2008-04-13 Robert Millan <rmh@aybabtu.com>
10533
10534 Improve robustness when handling LVM.
10535
10536 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
10537 (and leave `*p' unmodified).
10538 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
10539 through it.
10540 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
10541 iterating through it.
10542 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
10543 through it.
10544 (grub_lvm_scan_device): Check the return value (and fail gracefully
10545 when due) on each grub_lvm_getvalue() or grub_strstr() call.
10546 Don't assume `vg->pvs != NULL' when iterating through it.
10547
10548 2008-04-13 Robert Millan <rmh@aybabtu.com>
10549
10550 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
10551 * genmk.rb (partmap): New variable.
10552 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
10553 (#{partmap}): New target rule.
10554 * genpartmaplist.sh: New file.
10555 * Makefile.in (pkglib_DATA): Add partmap.lst.
10556 (partmap.lst): New target rule.
10557 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
10558 modules (including all partition maps), instead of preloading them.
10559
10560 2007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
10561
10562 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
10563 `linux-boot-prober' (if installed) to detect other operating
10564 systems which are installed on the computer and add them to
10565 the boot menu.
10566 * conf/common.rmk: Build and install 30_os-prober.
10567
10568 2008-04-12 Robert Millan <rmh@aybabtu.com>
10569
10570 * kern/powerpc/ieee1275/init.c: Move from here ...
10571 * kern/ieee1275/init.c: ... to here. Update all users.
10572
10573 * kern/powerpc/ieee1275/cmain.c: Move from here ...
10574 * kern/ieee1275/cmain.c: ... to here. Update all users.
10575
10576 * kern/powerpc/ieee1275/openfw.c: Move from here ...
10577 * kern/ieee1275/openfw.c: ... to here. Update all users.
10578
10579 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
10580 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
10581
10582 2008-04-10 Pavel Roskin <proski@gnu.org>
10583
10584 * configure.ac: Always use "_cv_" in cache variables for
10585 compatibility with Autoconf 2.62.
10586
10587 2008-04-07 Robert Millan <rmh@aybabtu.com>
10588
10589 Revert grub/machine/init.h addition by Pavel (since it breaks on
10590 i386-ieee1275 and others):
10591 * util/i386/pc/misc.c: Remove grub/machine/init.h.
10592 * util/powerpc/ieee1275/misc.c: Likewise.
10593
10594 2008-04-07 Robert Millan <rmh@aybabtu.com>
10595
10596 * util/grub-probe.c (probe): Improve error message.
10597
10598 2008-04-07 Robert Millan <rmh@aybabtu.com>
10599
10600 * util/biosdisk.c (read_device_map): Skip devices that don't exist
10601 (this prevents the presence of a bogus entry from ruining the whole
10602 thing).
10603
10604 2008-04-06 Pavel Roskin <proski@gnu.org>
10605
10606 * util/biosdisk.c: Include grub/util/biosdisk.h.
10607 * util/grub-fstest.c (execute_command): Make static.
10608 * util/grub-mkdevicemap.c (check_device): Likewise.
10609 * util/i386/pc/misc.c: Include grub/machine/init.h.
10610 * util/powerpc/ieee1275/misc.c: Likewise.
10611 * util/lvm.c: Include grub/util/lvm.h.
10612 * util/misc.c: Include grub/kernel.h, grub/misc.h and
10613 grub/cache.h.
10614 * util/raid.c: Include grub/util/raid.h.
10615 (grub_util_getdiskname): Make static.
10616
10617 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
10618 grub_hostfs_fini(), as they are called from grub_init_all() and
10619 grub_fini_all() respectively. This fixes an infinite loop in
10620 grub-fstest due to double registration of hostfs.
10621 Reported by Christian Franke <Christian.Franke@t-online.de>
10622
10623 2008-04-05 Pavel Roskin <proski@gnu.org>
10624
10625 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
10626 all 8 functions. Otherwise, probe function 0 only.
10627
10628 2008-04-04 Pavel Roskin <proski@gnu.org>
10629
10630 * commands/lspci.c (grub_lspci_iter): Print the bus number
10631 correctly.
10632
10633 * commands/lspci.c (grub_pci_classes): Fix typos.
10634 (grub_lspci_iter): Don't print func twice. Print vendor ID
10635 before device ID, as it's normally done.
10636
10637 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
10638 Fix signedness warnings.
10639 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
10640 Likewise.
10641 * util/ieee1275/get_disk_name.c: Include config.h so that
10642 _GNU_SOURCE is defined and getline() is declared. Mark an
10643 unused argument as such. Fix a signedness warning.
10644
10645 2008-04-02 Pavel Roskin <proski@gnu.org>
10646
10647 * genkernsyms.sh.in: Use more robust assignments for CC and
10648 srcdir. Quote srcdir.
10649 * gensymlist.sh.in: Likewise. Assert at the compile time that
10650 the symbol table is not empty.
10651
10652 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
10653 * fs/cpio.c (grub_cpio_read): Likewise.
10654
10655 2008-04-01 Pavel Roskin <proski@gnu.org>
10656
10657 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
10658 * disk/host.c (grub_host_open): Likewise.
10659 * disk/loopback.c (grub_loopback_open): Likewise.
10660 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
10661 disk->id as in disk/host.c, not a multi-character constant.
10662
10663 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
10664 later is obsolete, potentially dangerous and sets a bad example.
10665 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
10666 * util/misc.c (grub_util_get_image_size): Likewise.
10667
10668 * disk/loopback.c (options): Improve help for "--partitions".
10669
10670 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
10671 options to align them with the short options, e.g. "echo -e".
10672
10673 2008-03-31 Bean <bean123ch@gmail.com>
10674
10675 * video/reader/png.c (grub_png_data): New member is_16bit and
10676 image_data.
10677 (grub_png_decode_image_header): Detect 16 bit png image.
10678 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
10679 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
10680 (grub_video_reader_png): Release memory occupied by image_data.
10681
10682 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
10683 4096 bytes.
10684 (grub_nfs_mount): Skip the test for sector per cluster.
10685
10686 * include/grub/ntfs.h (MAX_SPC): Removed.
10687
10688 2008-03-31 Bean <bean123ch@gmail.com>
10689
10690 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
10691 (grub_probe_SOURCES): Add fs/afs.c.
10692 (grub_fstest_SOURCES): Likewise.
10693 (afs_mod_SOURCES): New variable.
10694 (afs_mod_CFLAGS): Likewise.
10695 (afs_mod_LDFLAGS): Likewise.
10696
10697 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
10698 (grub_emu_SOURCES): Likewise.
10699
10700 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
10701
10702 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
10703
10704 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
10705
10706 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
10707
10708 * fs/afs.c: New file.
10709
10710 2008-03-30 Pavel Roskin <proski@gnu.org>
10711
10712 * disk/host.c: Include grub/misc.h to fix a warning.
10713 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
10714 warnings about implicit declarations.
10715
10716 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
10717 variable.
10718 * include/grub/i386/loader.h: Change declaration of
10719 grub_linux_boot() to match what grub_loader_set() expects.
10720 * util/getroot.c (grub_guess_root_device): Return const char* to
10721 fix a warning.
10722 * util/grub-probe.c (probe): Fix a warning about uninitialized
10723 abstraction_name variable.
10724 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
10725 second argument as unused to fix a warning.
10726
10727 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
10728 missing grub_error() call.
10729
10730 * util/update-grub_lib.in: Define datarootdir, since Autoconf
10731 2.60 and newer uses it to define datadir.
10732
10733 * commands/sleep.c: Fix warning about implicit declaration.
10734 * disk/memdisk.c: Likewise.
10735 * loader/aout.c: Likewise.
10736 * loader/i386/bsd_normal.c: Likewise.
10737 * util/grub-probe.c: Likewise.
10738
10739 * commands/i386/cpuid.c (has_longmode): Make static.
10740 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
10741 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
10742
10743 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
10744 GDT. This is more robust, as %ds can change.
10745 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
10746 calling real_to_prot().
10747 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
10748
10749 2008-03-28 Pavel Roskin <proski@gnu.org>
10750
10751 * kern/i386/pc/startup.S: Assert that uncompressed functions
10752 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
10753 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
10754 code, as they push parts of the code (error handlers) beyond
10755 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
10756 code as correctness and size.
10757
10758 2008-03-28 Pavel Roskin <proski@gnu.org>
10759
10760 * kern/i386/pc/startup.S
10761 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
10762 data block address to the real mode, keep offset minimal. This
10763 works around a bug in AWARD BIOS on old Athlon systems, which
10764 makes CD detection hang.
10765
10766 2008-03-26 Pavel Roskin <proski@gnu.org>
10767
10768 * normal/color.c (grub_parse_color_name_pair): Make `name' a
10769 const.
10770 * include/grub/normal.h: Add grub_parse_color_name_pair()
10771 declaration.
10772
10773 2008-03-24 Bean <bean123ch@gmail.com>
10774
10775 * disk/i386/pc/biosdisk.c (cd_start): Removed.
10776 (cd_count): Removed.
10777 (cd_drive): New variable.
10778 (grub_biosdisk_get_drive): Don't check for (cdN) device.
10779 (grub_biosdisk_call_hook): Likewise.
10780 (grub_biosdisk_iterate): Change cdrom detection method.
10781 (grub_biosdisk_open): Replace cd_start with cd_drive.
10782 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
10783 detect cdrom device.
10784
10785 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
10786 Removed.
10787 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
10788 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
10789 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
10790 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
10791 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
10792 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
10793 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
10794 (grub_biosdisk_cdrp): New structure.
10795 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
10796
10797 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
10798
10799 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
10800 device.
10801
10802 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
10803 New function.
10804
10805 2008-03-20 Robert Millan <rmh@aybabtu.com>
10806
10807 Remove 2 TiB limit in ata.mod.
10808 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
10809 (grub_ata_dumpinfo): Print sector count with 0x%llx.
10810 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
10811 grub_uint64_t instead of grub_uint32_t.
10812
10813 2008-03-05 Bean <bean123ch@gmail.com>
10814
10815 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
10816 (grub_multiboot): Set boot device.
10817
10818 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
10819
10820 2008-03-02 Bean <bean123ch@gmail.com>
10821
10822 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
10823 symlink_buffer.
10824
10825 2008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
10826
10827 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
10828 texinfo.tex.
10829
10830 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
10831 modified.
10832
10833 * docs/fdl.texi: New file.
10834
10835 * docs/mdate-sh: New file. Copied from gnulib.
10836 * docs/texinfo.tex: Likewise.
10837
10838 * config.guess: Updated from gnulib.
10839 * install-sh: Likewise.
10840
10841 2008-02-28 Robert Millan <rmh@aybabtu.com>
10842
10843 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
10844 (aout_mod_SOURCES): New variable.
10845 (aout_mod_CFLAGS): Likewise.
10846 (aout_mod_LDFLAGS): Likewise.
10847
10848 * conf/i386-ieee1275.rmk: Likewise.
10849
10850 2008-02-28 Robert Millan <rmh@aybabtu.com>
10851
10852 * util/update-grub.in: Reorganise terminal validity check. Accept
10853 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
10854 Based on suggestion by Franklin PIAT.
10855
10856 2008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
10857
10858 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
10859 function.
10860 * util/getroot.c (grub_util_check_block_device): New function that
10861 returns the given argument if it is a block device and returns NULL else.
10862 * util/grub-probe.c (argument_is_device): New variable.
10863 (probe): Promote device_name from a variable to an argument. Receive
10864 device_name from grub_util_check_block_device() if path is NULL and from
10865 grub_guess_root_device() else. Do not free() device_name anymore.
10866 (options): Introduce new parameter '-d, --device'.
10867 (main): Add description of the new parameter to the help screen.
10868 Rename path variable to argument. Set argument_is_device if the '-d'
10869 option is given. Pass argument to probe() depending on
10870 argument_is_device.
10871
10872 2008-02-24 Bean <bean123ch@gmail.com>
10873
10874 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
10875 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
10876 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
10877 (GRUB_ISO9660_VOLDESC_PART): Likewise.
10878 (GRUB_ISO9660_VOLDESC_END): Likewise.
10879 (grub_iso9660_primary_voldesc): New member escape.
10880 (grub_iso9660_data): New member joliet.
10881 (grub_iso9660_convert_string): New function.
10882 (grub_iso9660_mount): Detect joliet extension.
10883 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
10884 (grub_iso9660_iso9660_label): Likewise.
10885
10886 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
10887 (grub_setup_SOURCES): Add fs/udf.c.
10888 (grub_fstest_SOURCES): Likewise.
10889 (udf_mod_SOURCES): New variable.
10890 (udf_mod_CFLAGS): Likewise.
10891 (udf_mod_LDFLAGS): Likewise.
10892
10893 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
10894 (grub_emu_SOURCES): Likewise.
10895
10896 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
10897
10898 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
10899
10900 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
10901
10902 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
10903
10904 * fs/udf.c: New file.
10905
10906 2008-02-24 Robert Millan <rmh@aybabtu.com>
10907
10908 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
10909 (normal/lexer.c_DEPENDENCIES): New variables.
10910 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
10911 (normal/lexer.c_DEPENDENCIES): Likewise.
10912 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
10913 (normal/lexer.c_DEPENDENCIES): Likewise.
10914 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
10915 (normal/lexer.c_DEPENDENCIES): Likewise.
10916 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
10917 (normal/lexer.c_DEPENDENCIES): Likewise.
10918 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
10919 (normal/lexer.c_DEPENDENCIES): Likewise.
10920
10921 2008-02-23 Robert Millan <rmh@aybabtu.com>
10922
10923 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
10924 since they were intended to be in hex. This didn't break previously
10925 because of a bug in gpt_partition_map_iterate() (see below).
10926
10927 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
10928 when checking the validity of GPT header.
10929 Remove `partno', since it always provides the same information as `i'.
10930
10931 2008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
10932
10933 * include/grub/efi/time.h: Fix a wrong comment.
10934
10935 2008-02-19 Pavel Roskin <proski@gnu.org>
10936
10937 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
10938 message.
10939
10940 2008-02-19 Bean <bean123ch@gmail.com>
10941
10942 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
10943 (aout_mod_SOURCES): New variable.
10944 (aout_mod_CFLAGS): Likewise.
10945 (aout_mod_LDFLAGS): Likewise.
10946 (_bsd_mod_SOURCES): New variable.
10947 (_bsd_mod_CFLAGS): Likewise.
10948 (_bsd_mod_LDFLAGS): Likewise.
10949 (bsd_mod_SOURCES): New variable.
10950 (bsd_mod_CFLAGS): Likewise.
10951 (bsd_mod_LDFLAGS): Likewise.
10952
10953 * include/grub/aout.h: New file.
10954
10955 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
10956
10957 * include/grub/i386/bsd.h: New file.
10958
10959 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
10960 to make it public.
10961
10962 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
10963 function is called, so that it's possible to change it inside the hook.
10964 (grub_elf64_load): Likewise.
10965 (grub_elf_file): Don't close the file if elf header is not found.
10966 (grub_elf_close): Close the file if grub_elf_file fails (The new
10967 grub_elf_file won't close it).
10968 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
10969 (grub_elf64_size): Likewise.
10970
10971 * kern/i386/loader.S (grub_unix_real_boot): New function.
10972
10973 * loader/aout.c: New file.
10974
10975 * loader/i386/bsd.c: New file.
10976
10977 * loader/i386/bsd_normal.c: New file.
10978
10979 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
10980
10981 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
10982 can test other formats.
10983
10984 2008-02-19 Robert Millan <rmh@aybabtu.com>
10985
10986 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
10987 (grub_gpt_partition_type_empty): Redefine with macro from
10988 `<grub/gpt_partition.h>'.
10989 (gpt_partition_map_iterate): Adjust partition type comparison.
10990
10991 Export `entry' as partmap-specific `part.data' struct.
10992 (grub_gpt_header, grub_gpt_partentry): Move from here ...
10993
10994 * include/grub/gpt_partition.h (grub_gpt_header)
10995 (grub_gpt_partentry): ... to here (new file).
10996
10997 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
10998
10999 (grub_gpt_partition_type_bios_boot): New const variable, defined
11000 with macro from `<grub/gpt_partition.h>'.
11001
11002 (setup): Replace `first_start' with `embed_region', which keeps
11003 track of the embed region (and is partmap-agnostic).
11004
11005 Replace find_first_partition_start() with find_usable_region(),
11006 which finds a usable region for embedding using partmap-specific
11007 knowledge (supports PC/MSDOS and GPT).
11008
11009 Fix all assumptions that the embed region start at sector 1, using
11010 `embed_region.start' from now on. Similarly, use `embed_region.end'
11011 rather than `first_start' to calculate available size.
11012
11013 In grub_util_info() message, replace "into after the MBR" with an
11014 indication of the specific sector our embed region starts at.
11015
11016 2008-02-19 Robert Millan <rmh@aybabtu.com>
11017
11018 * DISTLIST: Replace `commands/ieee1275/halt.c' and
11019 `commands/ieee1275/reboot.c' with `commands/halt.c' and
11020 `commands/reboot.c'.
11021 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
11022 (halt_mod_SOURCES): Likewise.
11023 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
11024 (halt_mod_SOURCES): Likewise.
11025
11026 2008-02-17 Christian Franke <franke@computer.org>
11027
11028 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
11029
11030 2008-02-17 Robert Millan <rmh@aybabtu.com>
11031
11032 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
11033 set `first_start' to 0 for non-PC/MSDOS partition maps.
11034
11035 2008-02-16 Robert Millan <rmh@aybabtu.com>
11036
11037 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
11038 do not assume partition map is PC/MSDOS before performing checks that
11039 are specific to that layout.
11040
11041 2008-02-13 Robert Millan <rmh@aybabtu.com>
11042
11043 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
11044 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
11045 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
11046
11047 2008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
11048
11049 * configure.ac: Only a cosmetic change on the handling of
11050 -fno-stack-protector.
11051
11052 2008-02-12 Alexandre Boeglin <alex@boeglin.org>
11053
11054 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
11055 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
11056 reboot.c.
11057 (grub_install_SOURCES): Add halt.mod and reboot.mod.
11058 (halt_mod_SOURCES): New variable.
11059 (halt_mod_CFLAGS): Likewise.
11060 (halt_mod_LDFLAGS): Likewise.
11061 (reboot_mod_SOURCES): Likewise.
11062 (reboot_mod_CFLAGS): Likewise.
11063 (reboot_mod_LDFLAGS): Likewise.
11064
11065 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
11066 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
11067 reboot.c.
11068 (halt_mod_SOURCES): Likewise.
11069 (reboot_mod_SOURCES): Likewise.
11070
11071 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
11072 commands/i386/pc/reboot.c by commands/reboot.c.
11073 (reboot_mod_SOURCES): Likewise.
11074
11075 * commands/i386/pc/reboot.c: merge this file ...
11076
11077 * commands/ieee1275/reboot.c: ... and this file ...
11078
11079 * commands/reboot.c: ... to this file.
11080 Add some precompiler directive to include the correct header for
11081 each machine.
11082
11083 * commands/ieee1275/halt.c: move this file ...
11084
11085 * commands/halt.c: ... to here.
11086 Add some precompiler directive to include the correct header for
11087 each machine.
11088
11089 * include/grub/efi/efi.h (grub_reboot): New function declaration.
11090 (grub_halt): Likewise.
11091
11092 * kern/efi/efi.c (grub_reboot): New function.
11093 (grub_halt): Likewise.
11094
11095 2008-02-12 Robert Millan <rmh@aybabtu.com>
11096
11097 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
11098 /dev (like it is done for /dev/mapper). This doesn't provide support
11099 for EVMS, but at least it is now easy to identify the problem when it
11100 arises.
11101
11102 2008-02-11 Robert Millan <rmh@aybabtu.com>
11103
11104 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
11105 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
11106 comparing it with -1, not 0.
11107
11108 2008-02-10 Robert Millan <rmh@aybabtu.com>
11109
11110 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
11111 `disk/lvm.c'.
11112 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
11113 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
11114
11115 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
11116 `disk/lvm.c' to the end of the list.
11117 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
11118 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
11119
11120 2008-02-10 Robert Millan <rmh@aybabtu.com>
11121
11122 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
11123 grub_print_error() instead. This will let user know why we're entering
11124 rescue mode.
11125 Based on suggestions from Sam Morris.
11126
11127 2008-02-10 Alexandre Boeglin <alex@boeglin.org>
11128
11129 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
11130 on remaining N args, instead of "--" arg N times.
11131
11132 2008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
11133
11134 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
11135 (fill_with_default_glyph): Changed to use unknown_glyph for fill
11136 pattern for unknown glyphs.
11137
11138 2008-02-09 Robert Millan <rmh@aybabtu.com>
11139
11140 * configure.ac: Probe for `help2man'.
11141 * Makefile.in (builddir): New variable.
11142 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
11143 or otherwise add a few flags/options to it.
11144 (install-local): For every executable utility or script that is
11145 installed, invoke $(HELP2MAN) to install a manpage based on --help
11146 output.
11147
11148 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
11149 that it doesn't prevent --help from working in build tree.
11150
11151 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
11152 with `bug-grub@gnu.org'.
11153 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
11154 * util/update-grub.in (usage): New function.
11155 Implement proper argument check, with support for --help and --version
11156 (as well as existing -y).
11157
11158 2008-02-09 Christian Franke <franke@computer.org>
11159
11160 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
11161 avoid overwriting previous output.
11162 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
11163
11164 2008-02-09 Robert Millan <rmh@aybabtu.com>
11165
11166 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
11167 drawing the menu.
11168
11169 2008-02-09 Robert Millan <rmh@aybabtu.com>
11170
11171 * commands/sleep.c: New file.
11172 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
11173 (sleep_mod_SOURCES): New variable.
11174 (sleep_mod_CFLAGS): Likewise.
11175 (sleep_mod_LDFLAGS): Likewise.
11176
11177 2008-02-09 Robert Millan <rmh@aybabtu.com>
11178
11179 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
11180 situations in which we can deduce the RAID size and the superblock
11181 doesn't match it.
11182
11183 2008-02-09 Robert Millan <rmh@aybabtu.com>
11184
11185 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
11186 and return a grub_diskmemberlist_t composed of LVM physical volumes.
11187 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
11188
11189 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
11190 and return a grub_diskmemberlist_t composed of physical array members.
11191 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
11192
11193 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
11194 prototype.
11195 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
11196 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
11197 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
11198
11199 * util/grub-probe.c (probe): Move partmap probing code from here ...
11200 (probe_partmap): ... to here.
11201 (probe): Use probe_partmap() once for the disk we're probing, and
11202 additionally, when such disk contains a memberlist() struct member,
11203 once for each disk that is contained in the structure returned by
11204 memberlist().
11205
11206 2008-02-09 Robert Millan <rmh@aybabtu.com>
11207
11208 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
11209 environment variable to 'all' in order to obtain debug output from
11210 non-util/ code.
11211 * util/i386/pc/grub-setup.c (main): Likewise.
11212
11213 2008-02-08 Robert Millan <rmh@aybabtu.com>
11214
11215 * disk/raid.c (grub_raid_scan_device): Check for
11216 `array->device[sb.this_disk.number]' rather than for
11217 `array->device[sb.this_disk.number]->name', since the latter is not
11218 guaranteed to be accessible.
11219
11220 2008-02-08 Robert Millan <rmh@aybabtu.com>
11221
11222 * disk/raid.c: Update copyright.
11223 * fs/cpio.c: Likewise.
11224 * include/grub/raid.h: Likewise.
11225 * loader/i386/pc/multiboot.c: Likewise.
11226 * util/hostfs.c: Likewise.
11227
11228 2008-02-08 Robert Millan <rmh@aybabtu.com>
11229
11230 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
11231 to a grub_disk_t array.
11232 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
11233 `device[x]'.
11234 (grub_raid_scan_device): Replace `device[x].name' accesses with
11235 `device[x]->name'. Simplify initialization of `array->device[x]'.
11236
11237 2008-02-08 Robert Millan <rmh@aybabtu.com>
11238
11239 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
11240 grub_dprintf() calls.
11241 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
11242 error message.
11243
11244 2008-02-07 Christian Franke <franke@computer.org>
11245
11246 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
11247 instead of fseek and ftell to support large files.
11248 (grub_hostfs_read): Likewise.
11249
11250 2008-02-07 Robert Millan <rmh@aybabtu.com>
11251
11252 Patch from Jeroen Dekkers.
11253 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
11254 failure, since successfully reading all array members might not be
11255 required.
11256
11257 2008-02-06 Robert Millan <rmh@aybabtu.com>
11258
11259 * util/grub-probe.c (probe): Simplify partmap probing (with the
11260 assumption that the first word up to the underscore equals to
11261 the module name).
11262
11263 2008-02-06 Christian Franke <franke@computer.org>
11264
11265 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
11266 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
11267 last block of a cpio or tar stream.
11268 Check for "TRAILER!!!" instead of any empty data
11269 block to detect last block of a cpio stream.
11270 (grub_cpio_dir): Fix constness of variable np.
11271 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
11272 cpio or tar trailer is detected. This fixes a crash
11273 on open of a non existing file.
11274
11275 2008-02-05 Bean <bean123ch@gmail.com>
11276
11277 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
11278 address of entry.
11279 (grub_multiboot_load_elf64): Likewise.
11280 (grub_multiboot): Initialize mbi structure.
11281
11282 * util/grub-fstest.c: Don't include unused header file script.h.
11283
11284 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
11285 of file.
11286 (grub_fstest_SOURCES): Likewise.
11287
11288 2008-02-05 Robert Millan <rmh@aybabtu.com>
11289
11290 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
11291 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
11292 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
11293 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
11294
11295 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
11296 (translation_table): Replace hardcoded values with macros
11297 provided by `<grub/term.h>'.
11298
11299 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
11300 (keyboard_map): Correct/add a few values, with macros provided
11301 by `<grub/term.h>'.
11302 (keyboard_map_shift): Zero values that don't differ from their
11303 `keyboard_map' equivalents.
11304 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
11305 Discard the second scan code that is always sent by Caps lock.
11306 Only use `keyboard_map_shift' when it provides a non-zero value,
11307 otherwise fallback to `keyboard_map'.
11308
11309 2008-02-04 Bean <bean123ch@gmail.com>
11310
11311 * Makefile.in (enable_grub_fstest): New variable.
11312
11313 * conf/common.rmk (grub_fstest_init.lst): New rule.
11314 (grub_fstest_init.h): Likewise.
11315 (grub_fstest_init.c): Likewise.
11316 (util/grub-fstest.c_DEPENDENCIES): New variable.
11317 (grub_fstest_SOURCES): Likewise.
11318
11319 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
11320
11321 * util/grub-fstest.c: New file.
11322
11323 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
11324
11325 Make grub-setup handle a separate root device.
11326
11327 * util/i386/pc/grub-setup.c (setup): Always open the root device,
11328 so that the root device can be compared with the destination
11329 device.
11330 When embedding the core image, if the root and destination devices
11331 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
11332 0xFF.
11333 When not embedding, set ROOT_DRIVE to 0xFF.
11334
11335 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
11336
11337 Add support for having a grub directory in a different drive. This
11338 is still only the data handling part.
11339
11340 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
11341 (codestart): Save %dh in GRUB_ROOT_DRIVE.
11342 (grub_root_drive): New variable.
11343
11344 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
11345 instead of GRUB_BOOT_DRIVE to construct a device name. Set
11346 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
11347 as it was.
11348
11349 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
11350
11351 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
11352 macro.
11353 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
11354
11355 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
11356 is bogus, because PXE booting does not specify any drive
11357 correctly.
11358
11359 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
11360 am not sure if this is really correct.
11361
11362 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
11363 is always identical to the boot drive when booting from a CD.
11364
11365 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
11366 longer.
11367 (root_drive): New variable.
11368 (real_start): Unconditionally set %dh to ROOT_DRIVE.
11369 (setup_sectors): Push %dx right after popping it, because %dh will
11370 be modified later.
11371 (copy_buffer): Restore %dx.
11372
11373 2008-02-03 Robert Millan <rmh@aybabtu.com>
11374
11375 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
11376 use `cdboot.img' for cdrom images.
11377
11378 2008-02-03 Robert Millan <rmh@aybabtu.com>
11379
11380 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
11381 only setup gfxterm when `font' command has succeeded.
11382
11383 2008-02-03 Robert Millan <rmh@aybabtu.com>
11384
11385 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
11386 (grub_rescue_cmd_multiboot_loader)
11387 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
11388
11389 2008-02-03 Pavel Roskin <proski@gnu.org>
11390
11391 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
11392 %edx and %esi from stack only after grub_gate_a20() is called.
11393 grub_gate_a20() clobbers %edx.
11394
11395 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
11396
11397 * configure.ac (AC_INIT): Bumped to 1.96.
11398
11399 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
11400 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
11401 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
11402 video/readers/png.c.
11403
11404 2008-02-03 Bean <bean123ch@gmail.com>
11405
11406 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
11407 (cdboot_img_SOURCES): New variable.
11408 (cdboot_img_ASFLAGS): New variable.
11409 (cdboot_img_LDFLAGS): New variable.
11410
11411 * boot/i386/pc/cdboot.S: New file.
11412
11413 * disk/i386/pc/biosdisk.c (cd_start): New variable.
11414 (cd_count): Likewise.
11415 (grub_biosdisk_get_drive): Add support for cd device.
11416 (grub_biosdisk_call_hook): Likewise.
11417 (grub_biosdisk_iterate): Likewise.
11418 (grub_biosdisk_open): Likewise.
11419 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
11420 (grub_biosdisk_rw): Support reading from cd device.
11421 (GRUB_MOD_INIT): Iterate cd devices.
11422
11423 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
11424 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
11425 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
11426
11427 * kern/i386/pc/init.c (make_install_device): Check for cd device.
11428
11429 2008-02-02 Robert Millan <rmh@aybabtu.com>
11430
11431 * commands/read.c: New file.
11432 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
11433 (read_mod_SOURCES): New variable.
11434 (read_mod_CFLAGS): Likewise.
11435 (read_mod_LDFLAGS): Likewise.
11436
11437 2008-02-02 Robert Millan <rmh@aybabtu.com>
11438
11439 * normal/main.c (grub_normal_execute): Check for `menu->size' when
11440 determining whether menu has to be displayed.
11441
11442 2008-02-02 Marco Gerards <marco@gnu.org>
11443
11444 * bus/pci.c: New file.
11445
11446 * include/grub/pci.h: Likewise.
11447
11448 * include/grub/i386/pc/pci.h: Likewise.
11449
11450 * commands/lspci.c: Likewise.
11451
11452 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
11453 `lspci.mod'.
11454 (pci_mod_SOURCES): New variable.
11455 (pci_mod_CFLAGS): Likewise.
11456 (pci_mod_LDFLAGS): Likewise.
11457 (lspci_mod_SOURCES): Likewise.
11458 (lspci_mod_CFLAGS): Likewise.
11459 (lspci_mod_LDFLAGS): Likewise.
11460
11461 2008-02-02 Bean <bean123ch@gmail.com>
11462
11463 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
11464 (grub_ufs_get_file_block): Fix indirect block calculation problem.
11465
11466 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
11467 (grub_xfs_btree_node): New structure.
11468 (grub_xfs_btree_root): New structure.
11469 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
11470 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
11471 (GRUB_XFS_EXTENT_BLOCK): Likewise.
11472 (GRUB_XFS_EXTENT_SIZE): Likewise.
11473 (grub_xfs_read_block): Support btree format type.
11474 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
11475 Use directory block as basic unit.
11476
11477 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
11478
11479 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
11480 __attribute__ ((__regparm__ (1))).
11481
11482 2008-02-01 Robert Millan <rmh@aybabtu.com>
11483
11484 Correct a mistake in previous commit.
11485
11486 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
11487 top.
11488 (normal/command.c_DEPENDENCIES): New variable.
11489
11490 2008-02-01 Robert Millan <rmh@aybabtu.com>
11491
11492 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
11493 top.
11494 (normal/command.c_DEPENDENCIES): New variable.
11495 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
11496 * conf/i386-ieee1275.rmk: Likewise.
11497 * conf/i386-linuxbios.rmk: Likewise.
11498 * conf/i386-pc.rmk: Likewise.
11499 * conf/sparc64-ieee1275.rmk: Likewise.
11500 * conf/powerpc-ieee1275.rmk: Likewise.
11501 (grub_emu_SOURCES): Add `fs/fshelp.c'.
11502
11503 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
11504
11505 2008-02-01 Robert Millan <rmh@aybabtu.com>
11506
11507 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
11508 call at beginning of function.
11509
11510 2008-01-31 Pavel Roskin <proski@gnu.org>
11511
11512 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
11513 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
11514 (grub_mkrescue_SOURCES): Likewise.
11515 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
11516
11517 2008-01-30 Robert Millan <rmh@aybabtu.com>
11518
11519 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
11520 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
11521 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
11522 (grub_probe_SOURCES): ... to here.
11523
11524 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
11525 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
11526 * conf/i386-ieee1275.rmk: Likewise.
11527 * conf/i386-linuxbios.rmk: Likewise.
11528 * conf/powerpc-ieee1275.rmk: Likewise.
11529
11530 2008-01-30 Tristan Gingold <gingold@free.fr>
11531
11532 * kern/rescue.c: Silently accept empty lines.
11533
11534 2008-01-29 Bean <bean123ch@gmail.com>
11535
11536 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
11537 (real_code_2): Code cleanup and change comment style.
11538 (move_memory): Avoid using 32-bit address mode.
11539
11540 2008-01-29 Bean <bean123ch@gmail.com>
11541
11542 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
11543 (png_mod_SOURCES): New variable.
11544 (png_mod_CFLAGS): Likewise.
11545 (png_mod_LDFLAGS): Likewise.
11546
11547 * video/readers/png.c: New file.
11548
11549 2008-01-28 Robert Millan <rmh@aybabtu.com>
11550
11551 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
11552 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
11553 `ifndef GRUB_MOD_GAP' hack.
11554 * util/elf/grub-mkimage.c (add_segments): Likewise.
11555
11556 2008-01-27 Robert Millan <rmh@aybabtu.com>
11557
11558 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
11559 `GRUB_MOD_GAP' for platforms in which it's not defined.
11560 * util/elf/grub-mkimage.c (add_segments): Likewise.
11561
11562 2008-01-27 Robert Millan <rmh@aybabtu.com>
11563
11564 Get grub-emu to build again (including parallel builds).
11565
11566 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
11567 Split into ...
11568 (util/grub-emu.c_DEPENDENCIES): ... this, ...
11569 (normal/execute.c_DEPENDENCIES): ... this, ...
11570 (grub-emu_DEPENDENCIES): ... and this.
11571
11572 * conf/i386-efi.rmk: Likewise.
11573 * conf/i386-linuxbios.rmk: Likewise.
11574 * conf/i386-ieee1275.rmk: Likewise.
11575 * conf/powerpc-ieee1275.rmk: Likewise.
11576 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
11577
11578 2008-01-27 Robert Millan <rmh@aybabtu.com>
11579
11580 * NEWS: Add a few items.
11581
11582 2008-01-27 Robert Millan <rmh@aybabtu.com>
11583
11584 Fix parallel builds with grub-emu. Based on earlier commit for
11585 grub-probe and grub-setup.
11586
11587 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
11588 (util/grub-emu.c_DEPENDENCIES): ... this.
11589 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
11590 (util/grub-emu.c_DEPENDENCIES): ... this.
11591 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
11592 (util/grub-emu.c_DEPENDENCIES): ... this.
11593 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
11594 (util/grub-emu.c_DEPENDENCIES): ... this.
11595 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
11596 (util/grub-emu.c_DEPENDENCIES): ... this.
11597
11598 2008-01-27 Pavel Roskin <proski@gnu.org>
11599
11600 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
11601 to create a gap between _end and the modules added to the image
11602 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
11603 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
11604 * util/elf/grub-mkimage.c (add_segments): Likewise.
11605
11606 2008-01-26 Pavel Roskin <proski@gnu.org>
11607
11608 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
11609 just return an error.
11610
11611 2008-01-26 Bean <bean123ch@gmail.com>
11612
11613 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
11614 (grub_reiserfs_get_item): Save offset of the next item.
11615 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
11616
11617 2008-01-25 Robert Millan <rmh@aybabtu.com>
11618
11619 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
11620 make all filesystem sources appear together (possibly fixing omissions
11621 while at it).
11622 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
11623 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
11624 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
11625 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
11626
11627 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
11628 add `kern/file.c'.
11629 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
11630 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
11631 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
11632 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
11633
11634 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
11635 (probe): Add a sanity check to make sure of our ability to read
11636 requested files when probing for filesystem type.
11637
11638 * genmk.rb: Update copyright year (2007).
11639
11640 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
11641 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
11642 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
11643 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
11644 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
11645 : Remove function prototypes.
11646
11647 2008-01-25 Robert Millan <rmh@aybabtu.com>
11648
11649 Revert my previous commits (based on wrong assumption of how grub_errno
11650 works).
11651
11652 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
11653 * kern/file.c (grub_file_open): Likewise.
11654
11655 2008-01-24 Pavel Roskin <proski@gnu.org>
11656
11657 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
11658 that hang if GRUB tries to setup colors.
11659 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
11660 colors for firmwares that don't support it.
11661 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
11662 Recognize Open Hack'Ware, set flags to work around its
11663 limitations.
11664
11665 2008-01-24 Robert Millan <rmh@aybabtu.com>
11666
11667 * kern/file.c (grub_file_open): Do not account previous failures of
11668 unrelated functions when grub_errno is checked for.
11669 Reported by Oleg Strikov.
11670
11671 2008-01-24 Bean <bean123ch@gmail.com>
11672
11673 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
11674 (grub_ufs_sblock): New member volume name.
11675 (grub_ufs_find_file): Fix string copy bug.
11676 (grub_ufs_label): Implement this function properly.
11677
11678 * fs/hfs.c (grub_hfs_cnid_type): New enum.
11679 (grub_hfs_iterate_records): Use the correct file number for extents
11680 and catalog file. Fix problem in next index calculation.
11681 (grub_hfs_find_node): Replace recursive function call with loop.
11682 (grub_hfs_iterate_dir): Replace recursive function call with loop.
11683
11684 2008-01-23 Robert Millan <rmh@aybabtu.com>
11685
11686 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
11687 `<grub/symbol.h>' and `<grub/multiboot.h>'.
11688 (grub_multiboot2_real_boot): New function prototype.
11689
11690 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
11691 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
11692
11693 * kern/i386/ieee1275/init.c (grub_os_area_addr)
11694 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
11695
11696 2008-01-23 Robert Millan <rmh@aybabtu.com>
11697
11698 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
11699 #ifdef'ed out grub_printf().
11700
11701 2008-01-23 Robert Millan <rmh@aybabtu.com>
11702
11703 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
11704 grub_dprintf calls, since they make "debug=all" mode unusable.
11705 (grub_console_checkkey): Likewise.
11706
11707 2008-01-23 Robert Millan <rmh@aybabtu.com>
11708
11709 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
11710 `term/i386/pc/at_keyboard.c'.
11711 (pkglib_MODULES): Add `serial.mod'.
11712 (serial_mod_SOURCES): New variable.
11713 (serial_mod_CFLAGS): Likewise.
11714 (serial_mod_LDFLAGS): Likewise.
11715
11716 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
11717 `<grub/powerpc/ieee1275/console.h>'.
11718 (grub_keyboard_controller_init): New function prototype.
11719 (grub_console_checkkey): Likewise.
11720 (grub_console_getkey): Likewise.
11721
11722 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
11723 keyboard on i386.
11724
11725 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
11726 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
11727
11728 2008-01-23 Robert Millan <rmh@aybabtu.com>
11729
11730 * kern/i386/pc/init.c (make_install_device): When memdisk image is
11731 present, "(memdisk)/boot/grub" becomes the default prefix.
11732
11733 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
11734 a memdisk tarball with all the modules. Add --overlay=DIR option that
11735 allows users to overlay additional files into the image.
11736
11737 2008-01-23 Robert Millan <rmh@aybabtu.com>
11738
11739 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
11740 and `machine/memory.h'.
11741 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
11742 (_multiboot_mod_SOURCES): New variable.
11743 (_multiboot_mod_CFLAGS): Likewise.
11744 (_multiboot_mod_LDFLAGS): Likewise.
11745 (multiboot_mod_SOURCES): Likewise.
11746 (multiboot_mod_CFLAGS): Likewise.
11747 (multiboot_mod_LDFLAGS): Likewise.
11748
11749 * include/grub/i386/ieee1275/loader.h: New file.
11750
11751 * include/grub/i386/ieee1275/machine.h: Likewise.
11752
11753 * include/grub/i386/ieee1275/memory.h: Likewise.
11754
11755 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
11756 variable declaration.
11757 (grub_os_area_size): Likewise.
11758
11759 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
11760 (grub_lower_mem, grub_upper_mem): New variables.
11761 (grub_stop_floppy): New function (just to make
11762 grub_multiboot2_real_boot() happy).
11763
11764 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
11765 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
11766 (grub_stop): New function.
11767 Include `"../realmode.S"' and `"../loader.S"'.
11768
11769 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
11770 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
11771
11772 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
11773 rely on grub_multiboot2_real_boot() for final boot.
11774
11775 2008-01-22 Robert Millan <rmh@aybabtu.com>
11776
11777 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
11778 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
11779 device that doesn't look like an SD card.
11780 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
11781 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
11782 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
11783 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
11784 found.
11785
11786 2008-01-22 Robert Millan <rmh@aybabtu.com>
11787
11788 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
11789 avoid claiming over our own code.
11790
11791 2008-01-22 Bean <bean123ch@gmail.com>
11792
11793 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
11794 (jpeg_mod_SOURCES): New variable.
11795 (jpeg_mod_CFLAGS): Likewise.
11796 (jpeg_mod_LDFLAGS): Likewise.
11797
11798 * video/readers/jpeg.c : New file.
11799
11800 2008-01-22 Bean <bean123ch@gmail.com>
11801
11802 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
11803 there are no more items.
11804
11805 2008-01-21 Robert Millan <rmh@aybabtu.com>
11806
11807 * kern/mm.c (grub_mm_init_region): Improve debug message.
11808
11809 2008-01-21 Robert Millan <rmh@aybabtu.com>
11810
11811 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
11812 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
11813 address.
11814 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
11815 a C macro.
11816 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
11817 Indicates start of upper memory.
11818 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
11819 (generate_image): Abort when image size is big enough to corrupt
11820 upper memory.
11821
11822 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
11823 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
11824 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
11825 instead of hardcoding 0xA0000.
11826 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
11827 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
11828 instead of hardcoding 0xA0000.
11829
11830 2008-01-21 Robert Millan <rmh@aybabtu.com>
11831
11832 * disk/memdisk.c (memdisk_size): New variable.
11833 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
11834 `memdisk_size'.
11835 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
11836 image to dynamic memory.
11837 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
11838 `memdisk_size'. Free memdisk block.
11839
11840 2008-01-21 Robert Millan <rmh@aybabtu.com>
11841
11842 Fix detection of very small filesystems (like tar).
11843
11844 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
11845 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
11846 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
11847 a problem with this disk).
11848
11849 2008-01-21 Robert Millan <rmh@aybabtu.com>
11850
11851 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
11852 on grub_biosdisk_rw_standard() error.
11853
11854 2008-01-21 Robert Millan <rmh@aybabtu.com>
11855
11856 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
11857 recent changes.
11858 * kern/elf.c: Likewise.
11859 * kern/ieee1275/ieee1275.c: Likewise.
11860 * kern/powerpc/ieee1275/openfw.c: Likewise.
11861 * term/ieee1275/ofconsole.c: Likewise.
11862
11863 2008-01-21 Robert Millan <rmh@aybabtu.com>
11864
11865 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
11866
11867 * include/grub/kernel.h (grub_arch_memdisk_addr)
11868 (grub_arch_memdisk_size): Moved from here ...
11869
11870 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
11871 (grub_arch_memdisk_size): ... to here.
11872
11873 2008-01-21 Robert Millan <rmh@aybabtu.com>
11874
11875 Mostly based on bugfix from Bean.
11876
11877 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
11878 attribute with hook() parameter.
11879 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
11880 declaration.
11881 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
11882 attribute with hook() parameter.
11883 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
11884 declaration.
11885
11886 2008-01-21 Robert Millan <rmh@aybabtu.com>
11887
11888 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
11889 (pkglib_MODULES): Add `memdisk.mod'.
11890 (memdisk_mod_SOURCES): New variable.
11891 (memdisk_mod_CFLAGS): Likewise.
11892 (memdisk_mod_LDFLAGS): Likewise.
11893
11894 * disk/memdisk.c: New file.
11895
11896 * include/grub/disk.h (grub_disk_dev_id): Add
11897 `GRUB_DISK_DEVICE_MEMDISK_ID'.
11898
11899 * include/grub/i386/pc/kernel.h
11900 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
11901 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
11902 (grub_kernel_image_size): New variable declaration.
11903 (grub_total_module_size): Likewise.
11904 (grub_memdisk_image_size): Likewise.
11905
11906 * include/grub/i386/pc/memory.h
11907 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
11908
11909 * include/grub/kernel.h: Include `<grub/symbol.h>'.
11910 (grub_arch_memdisk_addr): New variable declaration.
11911 (grub_arch_memdisk_size): Likewise.
11912
11913 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
11914 (grub_arch_memdisk_size): Likewise.
11915
11916 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
11917 (codestart): Replace hardcoded `0x100000' with
11918 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
11919
11920 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
11921 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
11922 not NULL, append the contents of the file it refers to, at the end of
11923 the compressed kernel image. Initialize `grub_memdisk_image_size'
11924 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
11925 (options): Add "memdisk"|'m' option.
11926 (main): Parse --memdisk|-m option, and pass user-provided path as
11927 parameter to generate_image().
11928
11929 2008-01-20 Robert Millan <rmh@aybabtu.com>
11930
11931 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
11932 grub_dprintf() calls from here ...
11933 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
11934
11935 2008-01-20 Robert Millan <rmh@aybabtu.com>
11936
11937 Fix detection of "real mode" when /options/real-mode? doesn't exist.
11938
11939 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
11940 declaration.
11941 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
11942 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
11943 `GRUB_IEEE1275_FLAG_REAL_MODE'.
11944 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
11945 property).
11946 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
11947 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
11948
11949 2008-01-19 Robert Millan <rmh@aybabtu.com>
11950
11951 Get rid of confusing function (superseded by
11952 `grub_ieee1275_get_integer_property')
11953 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
11954 prototype.
11955 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
11956 function.
11957 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
11958 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
11959 in native endianness from grub_ieee1275_get_integer_property().
11960
11961 2008-01-19 Robert Millan <rmh@aybabtu.com>
11962
11963 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
11964 command after "shut-down", since implementations differ on which
11965 the command for halt is.
11966
11967 2008-01-19 Robert Millan <rmh@aybabtu.com>
11968
11969 * include/grub/i386/linuxbios/console.h: Add header protection.
11970 (grub_keyboard_controller_init): New function prototype.
11971 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
11972 (KEYBOARD_COMMAND_READ): Likewise.
11973 (KEYBOARD_COMMAND_WRITE): Likewise.
11974 (KEYBOARD_SCANCODE_SET1): Likewise.
11975 (grub_keyboard_controller_write): New function.
11976 (grub_keyboard_controller_read): Likewise.
11977 (grub_keyboard_controller_init): Likewise.
11978
11979 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
11980 (grub_console_init): On coreboot/LinuxBIOS, call
11981 grub_keyboard_controller_init().
11982
11983 2008-01-19 Robert Millan <rmh@aybabtu.com>
11984
11985 PowerPC changes provided by Pavel Roskin.
11986
11987 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
11988 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
11989 don't rely on cmain() doing it.
11990 * kern/i386/ieee1275/startup.S (_start): Store %eax in
11991 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
11992
11993 2008-01-16 Robert Millan <rmh@aybabtu.com>
11994
11995 * include/grub/i386/linuxbios/memory.h
11996 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
11997 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
11998 receive `table_header' as argument. Instead, probe for it in the
11999 known memory ranges where it can be present.
12000 (grub_available_iterate): Do not pass a fixed `table_header' address
12001 to grub_linuxbios_table_iterate().
12002
12003 2008-01-15 Robert Millan <rmh@aybabtu.com>
12004
12005 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
12006 * conf/i386-ieee1275.rmk: New file.
12007 * include/grub/i386/ieee1275/console.h: Likewise.
12008 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
12009 * include/grub/i386/ieee1275/kernel.h: Likewise.
12010 * include/grub/i386/ieee1275/time.h: Likewise.
12011 * kern/i386/ieee1275/init.c: Likewise.
12012 * kern/i386/ieee1275/startup.S: Likewise.
12013
12014 2008-01-15 Robert Millan <rmh@aybabtu.com>
12015
12016 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
12017 when pointers are 32-bit (but still do set it to one when they are
12018 64-bit).
12019
12020 2008-01-15 Robert Millan <rmh@aybabtu.com>
12021
12022 * include/grub/ieee1275/ieee1275.h
12023 (grub_ieee1275_get_integer_property): New function prototype.
12024
12025 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
12026 (grub_ieee1275_get_integer_property): New function. Wraps around
12027 grub_ieee1275_get_property() to handle endianness.
12028
12029 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
12030 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
12031 where appropriate.
12032 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
12033 (grub_map): Likewise.
12034 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
12035
12036 2008-01-15 Bean <bean123ch@gmail.com>
12037
12038 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
12039 (grub_script_execute_cmdline): Reset grub_errno.
12040
12041 * normal/main.c (read_config_file): Reset grub_errno.
12042
12043 * normal/parse.y (script_init): New.
12044 (script): Move function and menuentry here.
12045 (delimiter): New.
12046 (command): Add delimiter at the end of command.
12047 (commands): Adjust to match the new command.
12048 (commandblock): Remove grub_script_lexer_record_start.
12049 (menuentry): Add grub_script_lexer_record_start, use the new commands.
12050 (if): Use the new commands.
12051
12052 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
12053
12054 2008-01-15 Robert Millan <rmh@aybabtu.com>
12055
12056 * normal/menu.c (run_menu): Move timeout message from here ...
12057 (print_timeout): ... to here.
12058 (run_menu): Use print_timeout() once during initial draw to print
12059 the whole message, and again in every clock tick to update only
12060 the number of seconds.
12061
12062 2008-01-15 Robert Millan <rmh@aybabtu.com>
12063
12064 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
12065 actual size of `available' from grub_ieee1275_get_property(), and
12066 restrict parsing to that bound.
12067
12068 2008-01-15 Christian Franke <franke@computer.org>
12069
12070 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
12071 (argp_program_version): Remove variable.
12072 (argp_program_bug_address): Likewise.
12073 (options): Convert from struct argp_option to struct option.
12074 (struct arguments): Remove.
12075 (parse_opt): Remove.
12076 (usage): New function.
12077 (main): Replace struct args members by simple variables.
12078 Replace argp_parse() by getopt_long().
12079 Add switch to evaluate options.
12080 Add missing "(...)" around root_dev in prefix string.
12081
12082 2008-01-14 Robert Millan <rmh@aybabtu.com>
12083
12084 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
12085 for grub_ieee1275_exit(), in order to improve portability.
12086
12087 2008-01-14 Robert Millan <rmh@aybabtu.com>
12088
12089 * util/grub.d/10_linux.in (prefix): Define.
12090 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
12091
12092 2008-01-13 Pavel Roskin <proski@gnu.org>
12093
12094 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
12095 grub_errno if no errors have been detected.
12096
12097 2008-01-12 Robert Millan <rmh@aybabtu.com>
12098
12099 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
12100 (grub_util_get_dev_abstraction): New function prototype.
12101
12102 * util/getroot.c: Include `<grub/util/getroot.h>'
12103 (grub_util_get_grub_dev): Move detection of abstraction type to ...
12104 (grub_util_get_dev_abstraction): ... here (new function).
12105
12106 * util/grub-probe.c: Convert PRINT_* to an enum. Add
12107 `PRINT_ABSTRACTION'.
12108 (probe): Probe for abstraction type when requested.
12109 (main): Understand `--target=abstraction'.
12110
12111 * util/i386/efi/grub-install.in: Add abstraction module to core
12112 image when it is found to be necessary.
12113 * util/i386/pc/grub-install.in: Likewise.
12114 * util/powerpc/ieee1275/grub-install.in: Likewise.
12115
12116 * util/update-grub_lib.in (font_path): Return system path without
12117 converting to GRUB path.
12118 * util/update-grub.in: Convert system path returned by font_path()
12119 to a GRUB path. Use `grub-probe -t abstraction' to determine what
12120 abstraction module is needed for loading fonts (if any). Export
12121 that as `GRUB_PRELOAD_MODULES'.
12122 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
12123 insmod commands).
12124
12125 2008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
12126
12127 Remove some unused code from reiserfs.
12128
12129 * fs/reiserfs.c (struct grub_reiserfs_key)
12130 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
12131 (struct grub_reiserfs_node_body): Removed.
12132 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
12133 Likewise.
12134 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
12135 Likewise.
12136 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
12137 Likewise.
12138 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
12139 Likewise.
12140 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
12141 Likewise.
12142 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
12143 Likewise.
12144 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
12145 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
12146 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
12147
12148 2008-01-10 Robert Millan <rmh@aybabtu.com>
12149
12150 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
12151 Determines if a file is garbage left by packaging systems, etc.
12152 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
12153 for processing /etc/grub.d scripts.
12154 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
12155 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
12156 as a condition for processing Linux images.
12157
12158 2008-01-10 Pavel Roskin <proski@gnu.org>
12159
12160 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
12161 to compile reiserfs.c on PowerPC.
12162
12163 2008-01-10 Robert Millan <rmh@aybabtu.com>
12164
12165 * kern/device.c (grub_device_iterate): Do not abort device iteration
12166 when one of the devices cannot be opened.
12167 * kern/disk.c (grub_disk_open): Do not account previous failures of
12168 unrelated functions when grub_errno is checked for.
12169
12170 2008-01-08 Robert Millan <rmh@aybabtu.com>
12171
12172 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
12173 `! grub_linux_is_bzimage', change order of address comparison to make
12174 it more intuitive, and improve "too big zImage" error message.
12175
12176 2008-01-08 Robert Millan <rmh@aybabtu.com>
12177
12178 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
12179 `$(update-grub_DATA)'.
12180 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
12181 targets.
12182
12183 2008-01-07 Robert Millan <rmh@aybabtu.com>
12184
12185 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
12186 which instruction is modified by grub-setup during installation
12187 (since it wasn't obvious by only looking at this file).
12188
12189 2008-01-07 Robert Millan <rmh@aybabtu.com>
12190
12191 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
12192 listing actual TODO items.
12193
12194 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
12195
12196 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
12197 correctly.
12198 (grub_reiserfs_get_key_offset): Likewise.
12199 (grub_reiserfs_set_key_offset): Likewise.
12200 (grub_reiserfs_set_key_type): Likewise.
12201 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
12202
12203 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
12204 better to remove the bitfield version completely.
12205
12206 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
12207
12208 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
12209 allocated from the heap, due to the fshelp implementation.
12210 (grub_reiserfs_dir): Free NODE, due to the same reason.
12211
12212 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
12213
12214 Mostly from Vincent Pelletier:
12215
12216 * fs/reiserfs.c: New file.
12217
12218 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
12219 (reiserfs_mod_SOURCES): New variable.
12220 (reiserfs_mod_CFLAGS): Likewise.
12221 (reiserfs_mod_LDFLAGS): Likewise.
12222
12223 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
12224 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
12225 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
12226 normal/color.c.
12227
12228 2008-01-06 Robert Millan <rmh@aybabtu.com>
12229
12230 * normal/color.c: Remove `<grub/env.h>'.
12231
12232 2008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
12233
12234 * include/grub/normal.h: Include <grub/env.h>.
12235
12236 2008-01-05 Robert Millan <rmh@aybabtu.com>
12237
12238 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
12239 usage example with `(hd0,1)'.
12240 Reported by Samuel Thibault.
12241
12242 2008-01-05 Robert Millan <rmh@aybabtu.com>
12243
12244 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
12245 (grub_linux_boot_zimage): Rename to ...
12246 (grub_linux_boot): ... this.
12247 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
12248 (grub_linux_boot_zimage): Conditionalize zImage copy.
12249
12250 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
12251 (grub_linux_boot_bzimage): Remove prototype.
12252 (grub_linux_boot_zimage): Rename to ...
12253 (grub_linux_boot): ... this.
12254
12255 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
12256 (grub_linux_boot): Remove function.
12257
12258 2008-01-05 Robert Millan <rmh@aybabtu.com>
12259
12260 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
12261 (grub_env_write_color_highlight): Likewise.
12262 (grub_wait_after_message): Likewise.
12263
12264 * normal/color.c: New file.
12265
12266 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
12267 (normal_mod_DEPENDENCIES): Likewise.
12268
12269 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
12270 (normal_mod_DEPENDENCIES): Likewise.
12271
12272 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
12273 (normal_mod_DEPENDENCIES): Likewise.
12274
12275 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
12276 (normal_mod_DEPENDENCIES): Likewise.
12277
12278 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
12279 for waiting after a message is printed.
12280 * normal/main.c (read_config_file): Likewise.
12281 (grub_normal_init): Register grub_env_write_color_normal() and
12282 grub_env_write_color_highlight() hooks. Mark `color_normal' and
12283 `color_highlight' variables as global.
12284
12285 * normal/menu.c (grub_wait_after_message): New function.
12286 (grub_color_menu_normal): New variable. Replaces ...
12287 (GRUB_COLOR_MENU_NORMAL): ... this macro.
12288 (grub_color_menu_highlight): New variable. Replaces ...
12289 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
12290 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
12291 `GRUB_TERM_COLOR_STANDARD'.
12292 (print_message): Use `grub_setcolorstate' to reload colors. Rename
12293 `normal_code' and `highlight_code' to `old_color_normal' and
12294 `old_color_highlight', respectively.
12295 (grub_menu_init_page): Update colors when drawing the menu, based on
12296 `menu_color_normal' and `menu_color_highlight' variables.
12297 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
12298 a message is printed.
12299
12300 2008-01-05 Robert Millan <rmh@aybabtu.com>
12301
12302 * kern/env.c (grub_env_context_open): Propagate hooks for global
12303 variables to new context.
12304
12305 * kern/main.c (grub_set_root_dev): Export `root' variable.
12306
12307 2008-01-05 Robert Millan <rmh@aybabtu.com>
12308
12309 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
12310 discs unconditionally, since udev and others have options to provide
12311 them.
12312
12313 2008-01-05 Robert Millan <rmh@aybabtu.com>
12314
12315 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
12316
12317 2008-01-04 Christian Franke <franke@computer.org>
12318
12319 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
12320 of eisa_mmap.
12321
12322 2008-01-03 Pavel Roskin <proski@gnu.org>
12323
12324 * kern/i386/linuxbios/init.c: Put "void" to all function
12325 declarations with no arguments.
12326 * kern/powerpc/ieee1275/init.c: Likewise.
12327 * term/i386/pc/at_keyboard.c: Likewise.
12328 * term/i386/pc/vga_text.c: Likewise.
12329 * util/grub-mkdevicemap.c: Likewise.
12330
12331 2008-01-02 Robert Millan <rmh@aybabtu.com>
12332
12333 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
12334 message when loaded image is out of bounds.
12335 (grub_multiboot_load_elf64): Likewise.
12336
12337 2008-01-02 Pavel Roskin <proski@gnu.org>
12338
12339 * util/grub.d/10_linux.in: Try version without ".old" when
12340 looking for initrd. It's better to use initrd from the newer
12341 kernel of the same version than no initrd at all.
12342
12343 2008-01-01 Robert Millan <rmh@aybabtu.com>
12344
12345 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
12346
12347 2008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
12348
12349 * include/grub/video.h: Added grub_video_unmap_color and
12350 grub_video_get_active_render_target.
12351 (grub_video_adapter): Added unmap_color and get_active_render_target.
12352
12353 * video/video.c: Added grub_video_unmap_color and
12354 grub_video_get_active_render_target.
12355 (grub_video_get_info): Changed method to accept NULL pointer as an
12356 argument to allow detection of active video adapter.
12357
12358 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
12359 grub_video_vbe_unmap_color_int.
12360 Added grub_video_vbe_unmap_color and
12361 grub_video_vbe_get_active_render_target.
12362 (grub_video_vbe_adapter): Added unmap_color and
12363 get_active_render_target.
12364
12365 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
12366 with grub_video_vbe_unmap_color_int.
12367
12368 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
12369 (DEFAULT_NORMAL_COLOR): Likewise.
12370 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
12371 (DEFAULT_FG_COLOR): Removed.
12372 (DEFAULT_BG_COLOR): Likewise.
12373 (DEFAULT_CURSOR_COLOR): Changed value.
12374 (grub_virtual_screen): Added standard_color_setting,
12375 normal_color_setting, highlight_color_setting and term_color.
12376 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
12377 (bitmap_width): Added.
12378 (bitmap_height): Likewise.
12379 (bitmap): Likewise.
12380 (set_term_color): Likewise.
12381 (grub_virtual_screen_setup): Changed to use new terminal coloring
12382 settings.
12383 (grub_gfxterm_init): Added init for bitmap.
12384 (grub_gfxterm_fini): Added destroy for bitmap.
12385 (redraw_screen_rect): Updated to use background bitmap and new
12386 terminal coloring.
12387 (scroll_up): Added optimization for case when there is no bitmap.
12388 (grub_gfxterm_cls): Fixed to use correct background color.
12389 (grub_virtual_screen_setcolorstate): Changed to use new terminal
12390 coloring.
12391 (grub_virtual_screen_setcolor): Likewise.
12392 (grub_virtual_screen_getcolor): Added.
12393 (grub_gfxterm_background_image_cmd): Likewise.
12394 (grub_video_term): Added setcolor and getcolor.
12395 (MOD_INIT): Added registration of background_image command.
12396 (MOD_TERM): Added unregistration for background_image command.
12397
12398 2007-12-30 Pavel Roskin <proski@gnu.org>
12399
12400 * loader/multiboot_loader.c: Fix multiboot command
12401 unregistration. Fix all typos in the word "multiboot".
12402
12403 2007-12-29 Pavel Roskin <proski@gnu.org>
12404
12405 * util/grub.d/10_linux.in: Refactor search for initrd. Add
12406 support for initrd names used in Fedora.
12407
12408 2007-12-26 Bean <bean123ch@gmail.com>
12409
12410 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
12411 (cpio_mod_SOURCES): New variable.
12412 (cpio_mod_CFLAGS): Likewise.
12413 (cpio_mod_LDFLAGS): Likewise.
12414
12415 * fs/cpio.c: New file.
12416
12417 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
12418
12419 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
12420
12421 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
12422
12423 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
12424
12425 2007-12-25 Robert Millan <rmh@aybabtu.com>
12426
12427 * include/grub/term.h (struct grub_term): Add `getcolor' function.
12428 (grub_getcolor): New function.
12429
12430 * kern/term.c (grub_getcolor): New function.
12431 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
12432 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
12433 (print_entry): Set normal and highlight colors to
12434 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
12435 respectively, before printing and restore them to old
12436 values afterwards.
12437 (grub_menu_init_page): Likewise. Fill an additional colored space
12438 that would otherwise be left blank.
12439
12440 * term/efi/console.c (grub_console_getcolor): New function.
12441 (struct grub_console_term.getcolor): New variable.
12442 * term/i386/pc/console.c (grub_console_getcolor): New function.
12443 (struct grub_console_term.getcolor): New variable.
12444 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
12445 (struct grub_console_term.getcolor): New variable.
12446
12447 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
12448 (struct grub_console_term.setcolor): Remove variable.
12449 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
12450 (struct grub_console_term.setcolor): Remove variable.
12451 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
12452 (struct grub_console_term.setcolor): Remove variable.
12453 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
12454 (struct grub_console_term.setcolor): Remove variable.
12455
12456 2007-12-25 Robert Millan <rmh@aybabtu.com>
12457
12458 * configure.ac: Search for possible unifont.hex locations, and
12459 define UNIFONT_HEX if found.
12460
12461 * Makefile.in (UNIFONT_HEX): Define variable.
12462 (DATA): Rename to ...
12463 (PKGLIB): ... this. Update all users.
12464 (PKGDATA): New variable.
12465 (pkgdata_IMAGES): Rename to ...
12466 (pkglib_IMAGES): ... this. Update all users.
12467 (pkgdata_MODULES): Rename to ...
12468 (pkglib_MODULES): ... this. Update all users.
12469 (pkgdata_PROGRAMS): Rename to ...
12470 (pkglib_PROGRAMS): ... this. Update all users.
12471 (pkgdata_DATA): Rename to ...
12472 (pkglib_DATA): ... this. Update all users.
12473 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
12474 (unicode.pff, ascii.pff): New rules.
12475 (all-local): Add `$(PKGDATA)' dependency.
12476 (install-local): Process `$(PKGDATA)'.
12477
12478 * util/update-grub_lib.in (font_path): Search for *.pff files in
12479 a few more locations, including `${pkgdata}'.
12480
12481 2007-12-23 Robert Millan <rmh@aybabtu.com>
12482
12483 Patch from Bean <bean123ch@gmail.com>:
12484 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
12485 `size'.
12486
12487 2007-12-21 Bean <bean123ch@gmail.com>
12488
12489 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
12490 (ntfscomp_mod_SOURCES): New variable.
12491 (ntfscomp_mod_CFLAGS): Likewise.
12492 (ntfscomp_mod_LDFLAGS): Likewise.
12493
12494 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
12495 (grub_probe_SOURCES): Likewise.
12496 (grub_emu_SOURCES): Likewise.
12497
12498 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
12499 (grub_emu_SOURCES): Likewise.
12500
12501 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
12502 (grub_emu_SOURCES): Likewise.
12503
12504 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
12505 (grub_emu_SOURCES): Likewise.
12506
12507 * fs/ntfs.c (grub_ntfscomp_func): New variable.
12508 (read_run_list): Renamed to grub_ntfs_read_run_list.
12509 (decomp_nextvcn): Moved to ntfscomp.c.
12510 (decomp_getch): Likewise.
12511 (decomp_get16): Likewise.
12512 (decomp_block): Likewise.
12513 (read_block): Likewise.
12514 (read_data): Partially moved to ntfscomp.c.
12515 (fixup): Change unsigned to grub_uint16_t.
12516 (read_mft): Change unsigned long to grub_uint32_t.
12517 (read_attr): Likewise.
12518 (read_data): Likewise.
12519 (read_run_data): Likewise.
12520 (read_run_list): Likewise.
12521 (read_mft): Likewise.
12522
12523 * fs/ntfscomp.c: New file.
12524
12525 * include/grub/ntfs.h: New file.
12526
12527 2007-12-16 Robert Millan <rmh@aybabtu.com>
12528
12529 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
12530 IDE disk check, since Linux is known to support 20 IDE disks.
12531 Reported by Colin Watson.
12532
12533 2007-12-15 Bean <bean123ch@gmail.com>
12534
12535 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
12536 (lnxboot_img_SOURCES): New variable.
12537 (lnxboot_img_ASFLAGS): Likewise.
12538 (lnxboot_img_LDFLAGS): Likewise.
12539
12540 * boot/i386/pc/lnxboot.S: New file.
12541
12542 2007-11-24 Pavel Roskin <proski@gnu.org>
12543
12544 * configure.ac: Test if '--build-id=none' is supported by the
12545 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
12546 objcopy to generate incorrect binary files (binutils
12547 2.17.50.0.18-1 as shipped by Fedora 8).
12548 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
12549 linking, so that build ID doesn't break the test.
12550
12551 2007-11-24 Pavel Roskin <proski@gnu.org>
12552
12553 * include/grub/i386/time.h: use "void" in the argument list
12554 of grub_cpu_idle().
12555 * include/grub/powerpc/time.h: Likewise.
12556 * include/grub/sparc64/time.h: Likewise.
12557
12558 2007-11-18 Christian Franke <franke@computer.org>
12559
12560 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
12561 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
12562 This fixes the problem that function keys did not work in grub-emu.
12563
12564 2007-11-18 Christian Franke <franke@computer.org>
12565
12566 * disk/host.c (grub_host_open): Remove attribute unused from
12567 name parameter. Add check for "host". This fixes the problem
12568 that grub-emu does not find partitions.
12569
12570 2007-11-18 Christian Franke <franke@computer.org>
12571
12572 * util/hostfs.c (is_dir): New function.
12573 (grub_hostfs_dir): Handle missing dirent.d_type case.
12574 (grub_hostfs_read): Add missing fseek().
12575 (grub_hostfs_label): Clear label pointer. This fixes a crash
12576 of grub-emu on "ls (host)".
12577
12578 2007-11-18 Christian Franke <franke@computer.org>
12579
12580 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
12581 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
12582 to 64 bit boundary by default.
12583
12584 2007-11-18 Bean <bean123ch@gmail.com>
12585
12586 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
12587 (hexdump_mod_SOURCES): New variable.
12588 (hexdump_mod_CFLAGS): Likewise.
12589 (hexdump_mod_LDFLAGS): Likewise.
12590
12591 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
12592
12593 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
12594
12595 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
12596
12597 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
12598
12599 * include/grub/hexdump.h: New file.
12600
12601 * commands/hexdump.c: New file.
12602
12603 2007-11-10 Robert Millan <rmh@aybabtu.com>
12604
12605 * commands/i386/pc/play.c (beep_off): Switch order of arguments
12606 in grub_outb() calls.
12607 (beep_on): Likewise.
12608
12609 2007-11-10 Christian Franke <franke@computer.org>
12610
12611 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
12612 (grub_menu_run): Likewise.
12613
12614 2007-11-10 Robert Millan <rmh@aybabtu.com>
12615
12616 * include/grub/i386/efi/machine.h: New file.
12617 * include/grub/i386/linuxbios/machine.h: Likewise.
12618 * include/grub/i386/pc/machine.h: Likewise.
12619 * include/grub/powerpc/ieee1275/machine.h: Likewise.
12620 * include/grub/sparc64/ieee1275/machine.h: Likewise.
12621
12622 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
12623 (serial_hw_io_addr): New variable.
12624 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
12625 instead of `(unsigned short *) 0x400'.
12626
12627 2007-11-10 Bean <bean123ch@gmail.com>
12628
12629 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
12630
12631 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
12632
12633 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
12634 (vga_mod_SOURCES): Added.
12635 (vga_mod_CFLAGS): Likewise.
12636 (vga_mod_LDFLAGS): Likewise.
12637
12638 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
12639 grub_outb() calls.
12640 (set_map_mask): Likewise.
12641 (set_read_map): Likewise.
12642 (set_read_address): Likewise.
12643 (vga_font): Removed variable.
12644 (get_vga_glyph): Removed function.
12645 (invalidate_char): Likewise.
12646 (write_char): Changed to use grub_font_get_glyph() for font
12647 information.
12648 (grub_vga_putchar): Likewise.
12649 (grub_vga_getcharwidth): Likewise.
12650
12651 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
12652
12653 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
12654 flags.
12655 (pxeboot_img_LDFLAGS): Likewise.
12656 (diskboot_img_LDFLAGS): Likewise.
12657 (kernel_img_LDFLAGS): Likewise.
12658
12659 2007-11-06 Robert Millan <rmh@aybabtu.com>
12660
12661 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
12662 in grub_outb() calls.
12663 (serial_hw_init): Likewise.
12664
12665 2007-11-05 Robert Millan <rmh@aybabtu.com>
12666
12667 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
12668 spaces. Skip non-regular files.
12669
12670 2007-11-05 Robert Millan <rmh@aybabtu.com>
12671
12672 * kern/disk.c (grub_disk_firmware_fini)
12673 (grub_disk_firmware_is_tainted): New variables.
12674
12675 * include/grub/disk.h (grub_disk_firmware_fini)
12676 (grub_disk_firmware_is_tainted): Likewise.
12677
12678 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
12679 (grub_disk_biosdisk_fini): ... to here.
12680 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
12681 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
12682 is set. Register grub_disk_biosdisk_fini() in
12683 `grub_disk_firmware_fini'.
12684
12685 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
12686 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
12687 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
12688 to finish existing firmware disk interface.
12689
12690 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
12691 (ata_mod_SOURCES): New variable.
12692 (ata_mod_CFLAGS): Likewise.
12693 (ata_mod_LDFLAGS): Likewise.
12694
12695 2007-11-05 Robert Millan <rmh@aybabtu.com>
12696
12697 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
12698 (grub_ata_wait): Reimplement using grub_millisleep().
12699
12700 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
12701 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
12702
12703 2007-11-03 Marco Gerards <marco@gnu.org>
12704
12705 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
12706 (CRTC_ADDR_PORT): New macro.
12707 (CRTC_DATA_PORT): Likewise.
12708 (CRTC_CURSOR): Likewise.
12709 (CRTC_CURSOR_ADDR_HIGH): Likewise.
12710 (CRTC_CURSOR_ADDR_LOW): Likewise.
12711 (update_cursor): New function.
12712 (grub_console_real_putchar): Call `update_cursor'.
12713 (grub_console_gotoxy): Likewise.
12714 (grub_console_cls): Set the default color when clearing the
12715 screen.
12716 (grub_console_setcursor): Implemented.
12717
12718 2007-11-03 Marco Gerards <marco@gnu.org>
12719
12720 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
12721 become activate.
12722 (grub_ata_pio_write): Likewise.
12723
12724 (grub_atapi_identify): Wait after issuing an ATA command.
12725 (grub_atapi_packet): Likewise.
12726 (grub_ata_identify): Likewise.
12727 (grub_ata_readwrite): Likewise.
12728
12729 2007-11-03 Marco Gerards <marco@gnu.org>
12730
12731 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
12732 (grub_ata_pio_write): Likewise.
12733 (grub_ata_readwrite): Use `grub_error', instead of
12734 returning `grub_errno'.
12735
12736 2007-11-03 Marco Gerards <marco@gnu.org>
12737
12738 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
12739 grub_ata_pio_write once for every single sector, instead of for
12740 multiple sectors.
12741
12742 2007-10-31 Robert Millan <rmh@aybabtu.com>
12743
12744 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
12745
12746 * conf/i386-linuxbios.rmk: New file.
12747
12748 * kern/i386/pc/hardware.c: Likewise.
12749 * term/i386/pc/at_keyboard.c: Likewise.
12750 * term/i386/pc/vga_text.c: Likewise.
12751
12752 * include/grub/i386/linuxbios/boot.h: Likewise.
12753 * include/grub/i386/linuxbios/console.h: Likewise.
12754 * include/grub/i386/linuxbios/init.h: Likewise.
12755 * include/grub/i386/linuxbios/kernel.h: Likewise.
12756 * include/grub/i386/linuxbios/loader.h: Likewise.
12757 * include/grub/i386/linuxbios/memory.h: Likewise.
12758 * include/grub/i386/linuxbios/serial.h: Likewise.
12759 * include/grub/i386/linuxbios/time.h: Likewise.
12760
12761 * kern/i386/linuxbios/init.c: Likewise.
12762 * kern/i386/linuxbios/startup.S: Likewise.
12763 * kern/i386/linuxbios/table.c: Likewise.
12764
12765 2007-10-31 Marco Gerards <marco@gnu.org>
12766
12767 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
12768 (ata_mod_SOURCES): New variable.
12769 (ata_mod_CFLAGS): Likewise.
12770 (ata_mod_LDFLAGS): Likewise.
12771
12772 * disk/ata.c: New file.
12773
12774 * include/grub/disk.h (grub_disk_dev_id): Add
12775 `GRUB_DISK_DEV_ATA_ID'.
12776
12777 2007-10-31 Robert Millan <rmh@aybabtu.com>
12778
12779 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
12780 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
12781
12782 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
12783 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
12784
12785 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
12786 `<grub/types.h>'.
12787
12788 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
12789
12790 2007-10-27 Robert Millan <rmh@aybabtu.com>
12791
12792 * include/grub/types.h (ULONG_MAX): Define macro.
12793
12794 2007-10-22 Robert Millan <rmh@aybabtu.com>
12795
12796 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
12797 `"../realmode.S"'.
12798 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
12799
12800 2007-10-22 Robert Millan <rmh@aybabtu.com>
12801
12802 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
12803 (pkgdata_MODULES): Add `biosdisk.mod'.
12804 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
12805 variables.
12806
12807 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
12808 (grub_biosdisk_init): Replace with ...
12809 (GRUB_MOD_INIT(biosdisk)): ... this.
12810 (grub_biosdisk_fini): Replace with ...
12811 (GRUB_MOD_FINI(biosdisk)): ... this.
12812
12813 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
12814 (grub_machine_init): Remove call to grub_biosdisk_init().
12815 (grub_machine_fini): Remove call to grub_machine_fini().
12816
12817 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
12818
12819 2007-10-22 Robert Millan <rmh@aybabtu.com>
12820
12821 * include/grub/time.h: New file.
12822 * include/grub/i386/time.h: Likewise.
12823 * include/grub/powerpc/time.h: Likewise.
12824 * include/grub/sparc64/time.h: Likewise.
12825
12826 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
12827 instances to ...
12828 (KERNEL_MACHINE_TIME_HEADER): ... this.
12829 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
12830 instances to ...
12831 (KERNEL_MACHINE_TIME_HEADER): ... this.
12832 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
12833 instances to ...
12834 (KERNEL_MACHINE_TIME_HEADER): ... this.
12835
12836 * kern/i386/efi/init.c: Include `<grub/time.h>'.
12837 (grub_millisleep): New function.
12838 * kern/i386/pc/init.c: Include `<grub/time.h>'.
12839 (grub_millisleep): New function.
12840 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
12841 Remove `grub/machine/time.h' include.
12842 (grub_millisleep): New function.
12843 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
12844 Remove `grub/machine/time.h' include.
12845 (grub_millisleep): New function.
12846
12847 * include/grub/misc.h (grub_div_roundup): New function.
12848
12849 * kern/misc.c: Include `<grub/time.h>'.
12850 (grub_millisleep_generic): New function.
12851
12852 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
12853 Add `time.h'.
12854 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
12855 Add `time.h'.
12856 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
12857 `machine/time.h'. Add `time.h'.
12858 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
12859
12860 2007-10-21 Robert Millan <rmh@aybabtu.com>
12861
12862 * include/grub/misc.h (grub_max): New function.
12863
12864 2007-10-21 Robert Millan <rmh@aybabtu.com>
12865
12866 * util/misc.c (grub_util_info): Call fflush() before returning.
12867
12868 2007-10-20 Robert Millan <rmh@aybabtu.com>
12869
12870 * genmk.rb (Image): Copy `extra_flags' from here ...
12871 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
12872
12873 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
12874 to `argc' and `args' arguments.
12875
12876 2007-10-17 Robert Millan <rmh@aybabtu.com>
12877
12878 * kern/i386/loader.S: New file.
12879
12880 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
12881 * kern/i386/loader.S (grub_linux_prot_size)... to here.
12882 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
12883 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
12884 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
12885 * kern/i386/loader.S (grub_linux_real_addr)... to here.
12886 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
12887 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
12888 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
12889 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
12890 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
12891 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
12892 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
12893 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
12894
12895 * kern/i386/realmode.S: New file.
12896
12897 * kern/i386/pc/startup.S (protstack): Moved from here ...
12898 * kern/i386/realmode.S (protstack)... to here.
12899 * kern/i386/pc/startup.S (gdt): Moved from here ...
12900 * kern/i386/realmode.S (gdt)... to here.
12901 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
12902 * kern/i386/realmode.S (prot_to_real)... to here.
12903
12904 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
12905 `kern/i386/realmode.S'.
12906
12907 2007-10-17 Robert Millan <rmh@aybabtu.com>
12908
12909 * include/grub/i386/loader.h: New file.
12910
12911 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
12912 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
12913 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
12914 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
12915 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
12916 * include/grub/i386/loader.h (grub_linux_prot_size)
12917 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
12918 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
12919 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
12920 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
12921
12922 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
12923
12924 2007-10-15 Robert Millan <rmh@aybabtu.com>
12925
12926 * normal/misc.c (grub_normal_print_device_info): Do not probe for
12927 filesystem when dev->disk is unset.
12928 Do probe for filesystem even when dev->disk->has_partitions is set.
12929 In case a filesystem is found, always report it.
12930 In case it isn't, if dev->disk->has_partitions is set, report that
12931 a partition table was found instead of reporting that no filesystem
12932 could be identified.
12933
12934 2007-10-12 Robert Millan <rmh@aybabtu.com>
12935
12936 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
12937 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
12938
12939 * include/grub/types.h (grub_host_to_target16): New macro.
12940 (grub_host_to_target32): Likewise.
12941 (grub_host_to_target64): Likewise.
12942 (grub_target_to_host16): Likewise.
12943 (grub_target_to_host32): Likewise.
12944 (grub_target_to_host64): Likewise.
12945
12946 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
12947 Renamed from to ...
12948 (GRUB_MOD_ALIGN): ...this. Update all users.
12949
12950 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
12951 grub_host_to_target32.
12952 Replace grub_be_to_cpu32 with grub_target_to_host32.
12953 (load_modules): Likewise.
12954 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
12955 Replace grub_be_to_cpu32 with grub_target_to_host32.
12956 Replace grub_cpu_to_be16 with grub_host_to_target16.
12957 Replace grub_cpu_to_be32 grub_host_to_target32.
12958
12959 2007-10-12 Robert Millan <rmh@aybabtu.com>
12960
12961 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
12962 * util/elf/grub-mkimage.c: ... here.
12963
12964 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
12965 `util/powerpc/ieee1275/grub-mkimage.c'.
12966
12967 2007-10-07 Robert Millan <rmh@aybabtu.com>
12968
12969 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
12970 and make it easier to figure out.
12971 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
12972 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
12973 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
12974 leave us with less than HEAP_MIN_SIZE total heap.
12975 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
12976
12977 2007-10-03 Robert Millan <rmh@aybabtu.com>
12978
12979 * include/grub/i386/io.h: New file.
12980 * commands/i386/pc/play.c (inb): Removed.
12981 (outb): Removed.
12982 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
12983 with grub_outb().
12984 * term/i386/pc/serial.c (inb): Removed.
12985 (outb): Removed.
12986 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
12987 with grub_outb().
12988 * term/i386/pc/vga.c (inb): Removed.
12989 (outb): Removed.
12990 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
12991 with grub_outb().
12992
12993 2007-10-02 Robert Millan <rmh@aybabtu.com>
12994
12995 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
12996 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
12997 Reported by Marcin Kurek.
12998
12999 2007-09-07 Robert Millan <rmh@aybabtu.com>
13000
13001 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
13002 SmartFirmware version updates (as released by Sven Luther), and avoid
13003 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
13004 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
13005 known broken.
13006
13007 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
13008
13009 From Hitoshi Ozeki:
13010 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
13011 when merging two regions.
13012
13013 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
13014
13015 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
13016 * normal/completion.c (grub_normal_do_completion): Likewise.
13017 Reported by Hitoshi Ozeki.
13018
13019 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
13020
13021 Do not use devices at boot in chainloading.
13022
13023 * loader/i386/pc/chainloader.c (boot_drive): New variable.
13024 (boot_part_addr): Likewise.
13025 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
13026 with BOOT_DRIVE and BOOT_PART_ADDR.
13027 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
13028 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
13029
13030 2007-08-29 Robert Millan <rmh@aybabtu.com>
13031
13032 Patch from Simon Peter <dn.tlp@gmx.net>:
13033 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
13034 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
13035 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
13036 util/i386/pc/grub-setup.c_DEPENDENCIES.
13037 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
13038 util/grub-probe.c_DEPENDENCIES.
13039 * conf/powerpc-ieee1275.rmk: Likewise.
13040
13041 2007-08-28 Robert Millan <rmh@aybabtu.com>
13042
13043 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
13044 to tell grub-mkdevicemap how to name devices.
13045 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
13046 feature).
13047
13048 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
13049 util/i386/get_disk_name.c.
13050 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
13051 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
13052 util/ieee1275/get_disk_name.c.
13053
13054 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
13055
13056 * DISTLIST: Add util/i386/get_disk_name.c and
13057 util/ieee1275/get_disk_name.c.
13058
13059 * util/grub-mkdevicemap.c: Replace device naming logic with
13060 grub_util_get_disk_name() calls.
13061
13062 2007-08-20 Robert Millan <rmh@aybabtu.com>
13063
13064 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
13065 (so that it works for both plural and singular quantities).
13066
13067 2007-08-05 Robert Millan <rmh@aybabtu.com>
13068
13069 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
13070 so that [xz] isn't taken into account when determining order.
13071
13072 2007-08-02 Marco Gerards <marco@gnu.org>
13073
13074 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
13075 `include/multiboot2.h', `include/grub/elfload.h',
13076 `include/multiboot.h', `include/grub/multiboot.h',
13077 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
13078 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
13079 `kern/elf.c', `loader/multiboot_loader.c',
13080 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
13081 `loader/i386/pc/multiboot2.c',
13082 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
13083 `util/i386/pc/grub-mkrescue.in'. Remove
13084 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
13085 `include/grub/i386/pc/util/biosdisk.h' and
13086 `include/grub/powerpc/ieee1275/multiboot.h'.
13087
13088 2007-08-02 Bean <bean123ch@gmail.com>
13089
13090 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
13091 (ntfs_mod_SOURCES): New variable.
13092 (ntfs_mod_CFLAGS): Likewise.
13093 (ntfs_mod_LDFLAGS): Likewise.
13094
13095 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
13096 (grub_probe_SOURCES): Likewise.
13097 (grub_emu_SOURCES): Likewise.
13098
13099 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
13100 (grub_emu_SOURCES): Likewise.
13101
13102 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
13103 (grub_emu_SOURCES): Likewise.
13104
13105 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
13106
13107 * fs/ntfs.c: New file.
13108
13109 2007-08-02 Bean <bean123ch@gmail.com>
13110
13111 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
13112
13113 * file.h (grub_file): Likewise.
13114
13115 * fshelp.h (grub_fshelp_read_file): Likewise.
13116
13117 * util/i386/pc/grub-setup.c (setup): Likewise.
13118 (save_first_sector): Likewise.
13119 (save_blocklists): Likewise.
13120
13121 * fs/affs.c (grub_affs_read_file): Likewise.
13122
13123 * fs/ext2.c (grub_ext2_read_file): Likewise.
13124
13125 * fs/fat.c (grub_fat_read_data): Likewise.
13126
13127 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
13128
13129 * fs/hfs.c (grub_hfs_read_file): Likewise.
13130
13131 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
13132
13133 * fs/jfs.c (grub_jfs_read_file): Likewise.
13134
13135 * fs/minix.c (grub_minix_read_file): Likewise.
13136
13137 * fs/sfs.c (grub_sfs_read_file): Likewise.
13138
13139 * fs/ufs.c (grub_ufs_read_file): Likewise.
13140
13141 * fs/xfs.c (grub_xfs_read_file): Likewise.
13142
13143 * command/blocklist.c (read_blocklist): Likewise.
13144 (print_blocklist): Likewise.
13145
13146 2007-08-02 Marco Gerards <marco@gnu.org>
13147
13148 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
13149 `util/hostfs.c'.
13150
13151 * disk/host.c: New file.
13152
13153 * util/hostfs.c: Likewise.
13154
13155 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
13156 return `GRUB_ERR_BAD_FS'.
13157 * fs/sfs.c (grub_sfs_mount): Likewise.
13158 * fs/xfs.c (grub_xfs_mount): Likewise.
13159
13160 * include/grub/disk.h (enum grub_disk_dev_id): Add
13161 `GRUB_DISK_DEVICE_HOST_ID'.
13162
13163 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
13164
13165 2007-07-24 Jerone Young <jerone@gmail.com>
13166
13167 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
13168 modules for compilation.
13169 * conf/powerpc-ieee1275.rmk: Likewise.
13170
13171 * include/multiboot.h: Move multiboot definitions to one file. Rename
13172 many definitions to not get grub specific.
13173 * include/multiboot2.h: Create header with multiboot 2 definitions.
13174 * include/grub/multiboot.h: Header for grub specific function
13175 prototypes and definitions.
13176 * include/grub/multiboot2.h: Likewise.
13177 * include/grub/multiboot_loader.h: Likewise.
13178 * include/grub/i386/pc/multiboot.h: Removed.
13179 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
13180
13181 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
13182 and 2 to allow for one multiboot and module commands.
13183 * loader/multiboot2.c: Add multiboot2 functionality.
13184 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
13185 and definition names.
13186 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
13187 2 functions.
13188 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
13189 ieee1275 specific multiboot2 code.
13190
13191 * kern/i386/pc/startup.S: Change headers and definition names for
13192 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
13193
13194 2007-07-22 Robert Millan <rmh@aybabtu.com>
13195
13196 * geninitheader.sh: Process file specified in first parameter rather
13197 than hardcoding grub_modules_init.lst.
13198 * geninit.sh: Likewise. Also, construct header name dynamically rather
13199 than hardcoding grub_modules_init.h.
13200
13201 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
13202 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
13203 grub_probe_init.[ch] and grub_setup_init.[ch].
13204
13205 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
13206 grub_modules_init.h with grub_emu_init.h.
13207 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
13208 grub_probe_init.[ch] files.
13209 * conf/i386-efi.rmk: Likewise.
13210 * conf/i386-pc.rmk: Likewise.
13211 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
13212 grub_setup_init.[ch] files.
13213
13214 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
13215 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
13216 to initialize modules rather than a list of hardcoded functions.
13217 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
13218 grub_init_all() to initialize modules rather than a list of hardcoded
13219 functions.
13220
13221 2007-07-22 Robert Millan <rmh@aybabtu.com>
13222
13223 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
13224 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
13225
13226 2007-07-22 Robert Millan <rmh@aybabtu.com>
13227
13228 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
13229 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
13230 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
13231 flag when running on SmartFirmware.
13232 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
13233 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
13234 was set.
13235
13236 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
13237 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
13238 rather than decreasing it.
13239
13240 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
13241 there's not enough space to do it, fail in the same way as when it
13242 can't be done because there are no partitions.
13243
13244 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
13245 when nvsetenv failed.
13246
13247 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
13248
13249 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
13250 because this rule is automatically generated.
13251 (grub-mkrescue): Removed for the same reason as above.
13252
13253 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
13254
13255 Migrate to GNU General Public License Version 3.
13256
13257 * COPYING: Replaced with the plain text version of GPLv3.
13258
13259 * config.guess: Updated from gnulib.
13260 * config.sub: Likewise.
13261
13262 * geninit.sh: Output a GPLv3 copyright notice.
13263 * geninitheader.sh: Likewise.
13264 * genmodsrc.sh: Likewise.
13265 * gensymlist.sh.in: Likewise.
13266
13267 * boot/i386/pc/boot.S: Upgraded to GPLv3.
13268 * boot/i386/pc/diskboot.S: Likewise.
13269 * boot/i386/pc/pxeboot.S: Likewise.
13270 * commands/blocklist.c: Likewise.
13271 * commands/boot.c: Likewise.
13272 * commands/cat.c: Likewise.
13273 * commands/cmp.c: Likewise.
13274 * commands/configfile.c: Likewise.
13275 * commands/echo.c: Likewise.
13276 * commands/help.c: Likewise.
13277 * commands/ls.c: Likewise.
13278 * commands/search.c: Likewise.
13279 * commands/terminal.c: Likewise.
13280 * commands/test.c: Likewise.
13281 * commands/videotest.c: Likewise.
13282 * commands/i386/cpuid.c: Likewise.
13283 * commands/i386/pc/halt.c: Likewise.
13284 * commands/i386/pc/play.c: Likewise.
13285 * commands/i386/pc/reboot.c: Likewise.
13286 * commands/i386/pc/vbeinfo.c: Likewise.
13287 * commands/i386/pc/vbetest.c: Likewise.
13288 * commands/ieee1275/halt.c: Likewise.
13289 * commands/ieee1275/reboot.c: Likewise.
13290 * commands/ieee1275/suspend.c: Likewise.
13291 * disk/loopback.c: Likewise.
13292 * disk/lvm.c: Likewise.
13293 * disk/raid.c: Likewise.
13294 * disk/efi/efidisk.c: Likewise.
13295 * disk/i386/pc/biosdisk.c: Likewise.
13296 * disk/ieee1275/ofdisk.c: Likewise.
13297 * font/manager.c: Likewise.
13298 * fs/affs.c: Likewise.
13299 * fs/ext2.c: Likewise.
13300 * fs/fat.c: Likewise.
13301 * fs/fshelp.c: Likewise.
13302 * fs/hfs.c: Likewise.
13303 * fs/hfsplus.c: Likewise.
13304 * fs/iso9660.c: Likewise.
13305 * fs/jfs.c: Likewise.
13306 * fs/minix.c: Likewise.
13307 * fs/sfs.c: Likewise.
13308 * fs/ufs.c: Likewise.
13309 * fs/xfs.c: Likewise.
13310 * hello/hello.c: Likewise.
13311 * include/grub/acorn_filecore.h: Likewise.
13312 * include/grub/arg.h: Likewise.
13313 * include/grub/bitmap.h: Likewise.
13314 * include/grub/boot.h: Likewise.
13315 * include/grub/cache.h: Likewise.
13316 * include/grub/device.h: Likewise.
13317 * include/grub/disk.h: Likewise.
13318 * include/grub/dl.h: Likewise.
13319 * include/grub/elfload.h: Likewise.
13320 * include/grub/env.h: Likewise.
13321 * include/grub/err.h: Likewise.
13322 * include/grub/file.h: Likewise.
13323 * include/grub/font.h: Likewise.
13324 * include/grub/fs.h: Likewise.
13325 * include/grub/fshelp.h: Likewise.
13326 * include/grub/gzio.h: Likewise.
13327 * include/grub/hfs.h: Likewise.
13328 * include/grub/kernel.h: Likewise.
13329 * include/grub/loader.h: Likewise.
13330 * include/grub/lvm.h: Likewise.
13331 * include/grub/misc.h: Likewise.
13332 * include/grub/mm.h: Likewise.
13333 * include/grub/net.h: Likewise.
13334 * include/grub/normal.h: Likewise.
13335 * include/grub/parser.h: Likewise.
13336 * include/grub/partition.h: Likewise.
13337 * include/grub/pc_partition.h: Likewise.
13338 * include/grub/raid.h: Likewise.
13339 * include/grub/rescue.h: Likewise.
13340 * include/grub/script.h: Likewise.
13341 * include/grub/setjmp.h: Likewise.
13342 * include/grub/symbol.h: Likewise.
13343 * include/grub/term.h: Likewise.
13344 * include/grub/terminfo.h: Likewise.
13345 * include/grub/tparm.h: Likewise.
13346 * include/grub/types.h: Likewise.
13347 * include/grub/video.h: Likewise.
13348 * include/grub/efi/api.h: Likewise.
13349 * include/grub/efi/chainloader.h: Likewise.
13350 * include/grub/efi/console.h: Likewise.
13351 * include/grub/efi/console_control.h: Likewise.
13352 * include/grub/efi/disk.h: Likewise.
13353 * include/grub/efi/efi.h: Likewise.
13354 * include/grub/efi/pe32.h: Likewise.
13355 * include/grub/efi/time.h: Likewise.
13356 * include/grub/i386/linux.h: Likewise.
13357 * include/grub/i386/setjmp.h: Likewise.
13358 * include/grub/i386/types.h: Likewise.
13359 * include/grub/i386/efi/kernel.h: Likewise.
13360 * include/grub/i386/efi/loader.h: Likewise.
13361 * include/grub/i386/efi/time.h: Likewise.
13362 * include/grub/i386/pc/biosdisk.h: Likewise.
13363 * include/grub/i386/pc/boot.h: Likewise.
13364 * include/grub/i386/pc/chainloader.h: Likewise.
13365 * include/grub/i386/pc/console.h: Likewise.
13366 * include/grub/i386/pc/init.h: Likewise.
13367 * include/grub/i386/pc/kernel.h: Likewise.
13368 * include/grub/i386/pc/loader.h: Likewise.
13369 * include/grub/i386/pc/memory.h: Likewise.
13370 * include/grub/i386/pc/multiboot.h: Likewise.
13371 * include/grub/i386/pc/serial.h: Likewise.
13372 * include/grub/i386/pc/time.h: Likewise.
13373 * include/grub/i386/pc/vbe.h: Likewise.
13374 * include/grub/i386/pc/vbeblit.h: Likewise.
13375 * include/grub/i386/pc/vbefill.h: Likewise.
13376 * include/grub/i386/pc/vbeutil.h: Likewise.
13377 * include/grub/i386/pc/vga.h: Likewise.
13378 * include/grub/ieee1275/ieee1275.h: Likewise.
13379 * include/grub/ieee1275/ofdisk.h: Likewise.
13380 * include/grub/powerpc/libgcc.h: Likewise.
13381 * include/grub/powerpc/setjmp.h: Likewise.
13382 * include/grub/powerpc/types.h: Likewise.
13383 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
13384 * include/grub/powerpc/ieee1275/console.h: Likewise.
13385 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
13386 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
13387 * include/grub/powerpc/ieee1275/loader.h: Likewise.
13388 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
13389 * include/grub/powerpc/ieee1275/time.h: Likewise.
13390 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
13391 * include/grub/sparc64/libgcc.h: Likewise.
13392 * include/grub/sparc64/setjmp.h: Likewise.
13393 * include/grub/sparc64/types.h: Likewise.
13394 * include/grub/sparc64/ieee1275/console.h: Likewise.
13395 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
13396 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
13397 * include/grub/sparc64/ieee1275/time.h: Likewise.
13398 * include/grub/util/biosdisk.h: Likewise.
13399 * include/grub/util/getroot.h: Likewise.
13400 * include/grub/util/lvm.h: Likewise.
13401 * include/grub/util/misc.h: Likewise.
13402 * include/grub/util/raid.h: Likewise.
13403 * include/grub/util/resolve.h: Likewise.
13404 * io/gzio.c: Likewise.
13405 * kern/device.c: Likewise.
13406 * kern/disk.c: Likewise.
13407 * kern/dl.c: Likewise.
13408 * kern/elf.c: Likewise.
13409 * kern/env.c: Likewise.
13410 * kern/err.c: Likewise.
13411 * kern/file.c: Likewise.
13412 * kern/fs.c: Likewise.
13413 * kern/loader.c: Likewise.
13414 * kern/main.c: Likewise.
13415 * kern/misc.c: Likewise.
13416 * kern/mm.c: Likewise.
13417 * kern/parser.c: Likewise.
13418 * kern/partition.c: Likewise.
13419 * kern/rescue.c: Likewise.
13420 * kern/term.c: Likewise.
13421 * kern/efi/efi.c: Likewise.
13422 * kern/efi/init.c: Likewise.
13423 * kern/efi/mm.c: Likewise.
13424 * kern/i386/dl.c: Likewise.
13425 * kern/i386/efi/init.c: Likewise.
13426 * kern/i386/efi/startup.S: Likewise.
13427 * kern/i386/pc/init.c: Likewise.
13428 * kern/i386/pc/lzo1x.S: Likewise.
13429 * kern/i386/pc/startup.S: Likewise.
13430 * kern/ieee1275/ieee1275.c: Likewise.
13431 * kern/powerpc/cache.S: Likewise.
13432 * kern/powerpc/dl.c: Likewise.
13433 * kern/powerpc/ieee1275/cmain.c: Likewise.
13434 * kern/powerpc/ieee1275/crt0.S: Likewise.
13435 * kern/powerpc/ieee1275/init.c: Likewise.
13436 * kern/powerpc/ieee1275/openfw.c: Likewise.
13437 * kern/sparc64/cache.S: Likewise.
13438 * kern/sparc64/dl.c: Likewise.
13439 * kern/sparc64/ieee1275/init.c: Likewise.
13440 * kern/sparc64/ieee1275/openfw.c: Likewise.
13441 * loader/efi/chainloader.c: Likewise.
13442 * loader/efi/chainloader_normal.c: Likewise.
13443 * loader/i386/efi/linux.c: Likewise.
13444 * loader/i386/efi/linux_normal.c: Likewise.
13445 * loader/i386/pc/chainloader.c: Likewise.
13446 * loader/i386/pc/chainloader_normal.c: Likewise.
13447 * loader/i386/pc/linux.c: Likewise.
13448 * loader/i386/pc/linux_normal.c: Likewise.
13449 * loader/i386/pc/multiboot.c: Likewise.
13450 * loader/i386/pc/multiboot_normal.c: Likewise.
13451 * loader/powerpc/ieee1275/linux.c: Likewise.
13452 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
13453 * normal/arg.c: Likewise.
13454 * normal/cmdline.c: Likewise.
13455 * normal/command.c: Likewise.
13456 * normal/completion.c: Likewise.
13457 * normal/execute.c: Likewise.
13458 * normal/function.c: Likewise.
13459 * normal/lexer.c: Likewise.
13460 * normal/main.c: Likewise.
13461 * normal/menu.c: Likewise.
13462 * normal/menu_entry.c: Likewise.
13463 * normal/misc.c: Likewise.
13464 * normal/parser.y: Likewise.
13465 * normal/script.c: Likewise.
13466 * normal/i386/setjmp.S: Likewise.
13467 * normal/powerpc/setjmp.S: Likewise.
13468 * normal/sparc64/setjmp.S: Likewise.
13469 * partmap/acorn.c: Likewise.
13470 * partmap/amiga.c: Likewise.
13471 * partmap/apple.c: Likewise.
13472 * partmap/gpt.c: Likewise.
13473 * partmap/pc.c: Likewise.
13474 * partmap/sun.c: Likewise.
13475 * term/gfxterm.c: Likewise.
13476 * term/terminfo.c: Likewise.
13477 * term/efi/console.c: Likewise.
13478 * term/i386/pc/console.c: Likewise.
13479 * term/i386/pc/serial.c: Likewise.
13480 * term/i386/pc/vesafb.c: Likewise.
13481 * term/i386/pc/vga.c: Likewise.
13482 * term/ieee1275/ofconsole.c: Likewise.
13483 * util/biosdisk.c: Likewise.
13484 * util/console.c: Likewise.
13485 * util/genmoddep.c: Likewise.
13486 * util/getroot.c: Likewise.
13487 * util/grub-emu.c: Likewise.
13488 * util/grub-mkdevicemap.c: Likewise.
13489 * util/grub-probe.c: Likewise.
13490 * util/lvm.c: Likewise.
13491 * util/misc.c: Likewise.
13492 * util/raid.c: Likewise.
13493 * util/resolve.c: Likewise.
13494 * util/update-grub.in: Likewise.
13495 * util/update-grub_lib.in: Likewise.
13496 * util/grub.d/00_header.in: Likewise.
13497 * util/grub.d/10_hurd.in: Likewise.
13498 * util/grub.d/10_linux.in: Likewise.
13499 * util/i386/efi/grub-install.in: Likewise.
13500 * util/i386/efi/grub-mkimage.c: Likewise.
13501 * util/i386/pc/grub-install.in: Likewise.
13502 * util/i386/pc/grub-mkimage.c: Likewise.
13503 * util/i386/pc/grub-mkrescue.in: Likewise.
13504 * util/i386/pc/grub-setup.c: Likewise.
13505 * util/i386/pc/misc.c: Likewise.
13506 * util/powerpc/ieee1275/grub-install.in: Likewise.
13507 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
13508 * util/powerpc/ieee1275/misc.c: Likewise.
13509 * video/bitmap.c: Likewise.
13510 * video/video.c: Likewise.
13511 * video/i386/pc/vbe.c: Likewise.
13512 * video/i386/pc/vbeblit.c: Likewise.
13513 * video/i386/pc/vbefill.c: Likewise.
13514 * video/i386/pc/vbeutil.c: Likewise.
13515 * video/readers/tga.c: Likewise.
13516
13517 2007-07-02 Robert Millan <rmh@aybabtu.com>
13518
13519 * conf/i386-efi.rmk: Replace obsolete reference to
13520 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
13521 with util/getroot.c.
13522 * conf/powerpc-ieee1275.rmk: Likewise.
13523 * conf/sparc64-ieee1275.rmk: Likewise.
13524
13525 * util/grub-emu.c (main): Fix unchecked pointer handling.
13526
13527 2007-07-02 Robert Millan <rmh@aybabtu.com>
13528
13529 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
13530 invocation to fail, in order to support partition-less media.
13531
13532 * util/i386/pc/grub-install.in: Likewise.
13533
13534 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
13535 which fs or partmap modules are needed (akin to its sister scripts).
13536
13537 Also use grub-probe to get rid of unportable /proc/mounts check.
13538
13539 Print the same informational message that the other scripts do, before
13540 exiting.
13541
13542 2007-06-23 Robert Millan <rmh@aybabtu.com>
13543
13544 * util/update-grub_lib.in (font_path): New function. Determine whether
13545 a font file can be found and, if so, echo the GRUB path to it.
13546
13547 * util/update-grub.in: Handle multiple terminals depending on user
13548 input, platform availability and font file presence. Propagate
13549 variables of our findings to /etc/grub.d/ children.
13550
13551 * util/grub.d/00_header.in: Handle multiple terminals, based on
13552 environment setup by update-grub.
13553
13554 2007-06-23 Robert Millan <rmh@aybabtu.com>
13555
13556 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
13557
13558 2007-06-21 Robert Millan <rmh@aybabtu.com>
13559
13560 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
13561 indicate end of data section in kernel image.
13562 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
13563 GRUB_KERNEL_MACHINE_DATA_END.
13564
13565 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
13566 space for it.
13567 * kern/i386/efi/startup.S: Likewise.
13568
13569 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
13570 during image generation. Implement --prefix option to override this
13571 patch.
13572 * util/i386/efi/grub-mkimage.c: Likewise.
13573
13574 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
13575 code to make path relative to its root into a separate function.
13576
13577 * util/i386/pc/grub-install.in: Use newly provided
13578 make_system_path_relative_to_its_root() to convert ${grubdir}, then
13579 pass the result to grub-install --prefix.
13580
13581 2007-06-13 Robert Millan <rmh@aybabtu.com>
13582
13583 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
13584 DEFAULT_DEVICE_MAP.
13585 * util/grub-emu.c: Use above definitions from misc.h instead of
13586 defining them.
13587 * util/grub-mkdevicemap.c: Likewise.
13588 * util/i386/pc/grub-setup.c: Likewise.
13589 * util/grub-probe.c: Likewise.
13590 (probe): Abort with grub_util_error() when either
13591 grub_guess_root_device or grub_util_get_grub_dev fails.
13592
13593 2007-06-12 Robert Millan <rmh@aybabtu.com>
13594
13595 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
13596 "pager" assignment.
13597 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
13598 "pcdata".
13599 * util/grub-probe.c (probe): Likewise for "drive_name".
13600
13601 2007-06-11 Robert Millan <rmh@aybabtu.com>
13602
13603 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
13604 not just the cdrom one.
13605
13606 2007-06-11 Robert Millan <rmh@aybabtu.com>
13607
13608 * util/i386/pc/grub-mkrescue.in: Add "set -e".
13609 Add --pkglibdir=DIR option to override pkglibdir.
13610 Mention --image-type=TYPE in help output.
13611 Fix --grub-mkimage (it was a no-op).
13612 Abort gracefully when no parameter is given.
13613
13614 2007-06-11 Robert Millan <rmh@aybabtu.com>
13615
13616 * util/i386/pc/grub-mkrescue.in: New file.
13617 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
13618 * Makefile.in: Handle bin_SCRIPTS.
13619
13620 2007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
13621
13622 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
13623 list of video modes.
13624
13625 2007-06-06 Robert Millan <rmh@aybabtu.com>
13626
13627 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
13628 file doesn't exist, or if it is in a filesystem grub can't read.
13629
13630 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
13631 not abort if GRUB_DRIVE could not be defined. Rearrange generated
13632 header comment to fit in 80 columns when the variables are resolved.
13633
13634 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
13635 could be identified by update-grub. Remove redundant check for
13636 unifont.pff existence (since convert_system_path_to_grub_path now
13637 handles that).
13638
13639 2007-06-04 Robert Millan <rmh@aybabtu.com>
13640
13641 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
13642
13643 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
13644
13645 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
13646
13647 2007-06-04 Robert Millan <rmh@aybabtu.com>
13648
13649 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
13650
13651 * include/grub/partition.h: Declare grub_apple_partition_map_init and
13652 grub_apple_partition_map_fini.
13653
13654 * util/biosdisk.c
13655 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
13656 to access >2 TiB disks).
13657
13658 Print disk->total_sectors with %llu instead of %lu, since this
13659 variable is always 64-bit (prevents wrong disk size from being displayed
13660 on either >2 TiB disk or big-endian CPU).
13661
13662 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
13663 into a generic case that supports all (sane) partition maps.
13664
13665 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
13666 breaks big-endian.
13667
13668 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
13669 and grub_apple_partition_map_fini() after that.
13670
13671 2007-06-01 Robert Millan <rmh@aybabtu.com>
13672
13673 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
13674
13675 * util/grub.d/00_header.in: Only enable gfxterm when
13676 convert_system_path_to_grub_path() succeeds.
13677
13678 2007-05-20 Robert Millan <rmh@aybabtu.com>
13679
13680 * util/update-grub_lib.in: New file.
13681 * DISTLIST: Add update-grub_lib.in.
13682 * conf/common.rmk: Generate update-grub_lib and install it in
13683 $(lib_DATA).
13684 * Makefile.in: Add install routine for $(lib_DATA).
13685
13686 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
13687 function provided by update-grub_lib to support arbitrary paths of
13688 unifont.pff.
13689 * util/update-grub.in: Use convert_system_path_to_grub_path() to
13690 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
13691
13692 2007-05-19 Robert Millan <rmh@aybabtu.com>
13693
13694 * commands/i386/cpuid.c: New module.
13695 * DISTLIST: Add it.
13696 * conf/i386-efi.rmk: Enable cpuid.mod.
13697 * conf/i386-pc.rmk: Likewise.
13698
13699 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
13700
13701 * kern/disk.c (grub_disk_read): Check return value of
13702 grub_realloc().
13703
13704 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
13705
13706 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
13707 arrays.
13708 * disk/raid.c (grub_raid_open): Likewise.
13709
13710 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
13711
13712 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
13713 stack instead of on the heap.
13714
13715 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
13716 before doing a read on it.
13717
13718 * configure.ac: Only use -fno-stack-protector for the target
13719 environment.
13720
13721 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
13722
13723 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
13724 __attribute_ ((unused)) to mode_type argument.
13725
13726 * util/getroot.c (grub_guess_root_device): Fix #endif.
13727
13728 * kern/misc.c (memcmp): Fix prototype.
13729
13730 * include/grub/partition.h [GRUB_UTIL]
13731 (grub_gpt_partition_map_init): Add prototype.
13732 (grub_gpt_partition_map_fini): Likewise.
13733
13734 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
13735 at the right place.
13736
13737 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
13738 (grub_fat_read_data): Likewise.
13739 (grub_fat_find_dir): Likewise.
13740
13741 * font/manager.c (find_glyph): Make table a const.
13742 (grub_font_get_glyph): Remove bitmap from if statement.
13743
13744 2007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
13745
13746 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
13747 code, first search for device in /dev/mapper, then in /dev.
13748 (grub_util_get_grub_dev): New function.
13749 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
13750 prototype.
13751 * util/grub-probe.c (probe): Remove check for RAID, call
13752 grub_util_get_grub_dev() instead of
13753 grub_util_biosdisk_get_grub_dev().
13754 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
13755 grub_util_biosdisk_get_grub_dev().
13756 * util/i386/pc/grub-setup.c (main): Likewise.
13757
13758 2007-05-16 Robert Millan <rmh@aybabtu.com>
13759
13760 * DISTLIST: Update for the latest changes.
13761 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
13762 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
13763 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
13764 grub/util/biosdisk.h.
13765 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
13766 grub/util/biosdisk.h.
13767
13768 2007-05-16 Robert Millan <rmh@aybabtu.com>
13769
13770 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
13771
13772 2007-05-16 Robert Millan <rmh@aybabtu.com>
13773
13774 * util/i386/efi/grub-install.in: New.
13775 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
13776 newly added grub-install.
13777 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
13778 include.
13779 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
13780 grub/util/biosdisk.h.
13781 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
13782 grub/util/biosdisk.h.
13783
13784 2007-05-16 Robert Millan <rmh@aybabtu.com>
13785
13786 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
13787 * include/grub/util/biosdisk.h: ... here.
13788 * util/i386/pc/biosdisk.c: Moved to ...
13789 * util/biosdisk.c: ... here.
13790 * util/i386/pc/getroot.c: Moved to ...
13791 * util/getroot.c: ... here.
13792 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
13793 * util/grub-mkdevicemap.c: ... here.
13794 * util/i386/pc/grub-probe.c: Moved to ...
13795 * util/grub-probe.c: ... here.
13796
13797 2007-05-15 Robert Millan <rmh@aybabtu.com>
13798
13799 * util/update-grub.in: Remove duplicated line in grub.cfg header
13800 message.
13801
13802 2007-05-13 Robert Millan <rmh@aybabtu.com>
13803
13804 * util/update-grub.in: Fix a few assumptions about the devices holding
13805 /, /boot and /boot/grub being the same.
13806 * util/grub.d/00_header.in: Likewise.
13807 * util/grub.d/10_hurd.in: Likewise.
13808 * util/grub.d/10_linux.in: Likewise.
13809
13810 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
13811 patterns. Use that to define the `.old' suffix as older than `'.
13812
13813 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
13814
13815 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
13816 the grub.cfg header message.
13817
13818 2007-05-11 Robert Millan <rmh@aybabtu.com>
13819
13820 * util/update-grub.in: Create device.map if it doesn't already exist,
13821 before attempting to run grub-probe.
13822 Check for grub-probe and grub-mkdevicemap with the same code
13823 grub-install is using.
13824 Remove test mode.
13825
13826 2007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
13827
13828 * Makefile.in: Add the datarootdir autoconf variable.
13829
13830 2007-05-09 Robert Millan <rmh@aybabtu.com>
13831
13832 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
13833 fail gracefully if dev->disk->partition == NULL.
13834
13835 2007-05-07 Robert Millan <rmh@aybabtu.com>
13836
13837 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
13838 determine partition map module.
13839 * util/i386/pc/grub-install.in: Use this feature to decide which
13840 partition module to load, instead of hardcoding pc and gpt.
13841
13842 2007-05-07 Robert Millan <rmh@aybabtu.com>
13843
13844 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
13845 source directory differs from build directory.
13846
13847 2007-05-05 Robert Millan <rmh@aybabtu.com>
13848
13849 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
13850 initialisation.
13851
13852 2007-05-05 Robert Millan <rmh@aybabtu.com>
13853
13854 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
13855
13856 2007-05-05 Robert Millan <rmh@aybabtu.com>
13857
13858 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
13859 command-line arguments via ${GRUB_CMDLINE_LINUX}.
13860
13861 2007-05-05 Robert Millan <rmh@aybabtu.com>
13862
13863 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
13864 (grub_probe_SOURCES): Likewise.
13865 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
13866 GPT and initialize dos_part and bsd_part accordingly.
13867 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
13868 install_bsd_part.
13869 (main): Activate gpt module for use during partition identification,
13870 and deactivate it afterwards.
13871 * util/i386/pc/grub-install.in: Add gpt module to core.img.
13872 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
13873 partition identification, and deactivate it afterwards.
13874
13875 2007-05-05 Robert Millan <rmh@aybabtu.com>
13876
13877 * term/i386/pc/console.c (grub_console_fini): Call
13878 grub_term_set_current() before grub_term_unregister().
13879
13880 2007-05-04 Robert Millan <rmh@aybabtu.com>
13881
13882 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
13883 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
13884 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
13885 and update-grub_DATA.
13886 * conf/common.rmk: Build and install update-grub components.
13887 * conf/common.mk: Regenerate.
13888 * util/update-grub.in: New. Core of update-grub.
13889 * util/grub.d/00_header.in: New. Generates grub.cfg header.
13890 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
13891 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
13892 * util/grub.d/README: New. Document grub.d directory layout.
13893
13894 2007-05-01 Robert Millan <rmh@aybabtu.com>
13895
13896 * util/grub-emu.c: Move initialization functions
13897 grub_util_biosdisk_init() and grub_init_all() before
13898 grub_util_biosdisk_get_grub_dev(), which relies on them.
13899
13900 2007-04-19 Robert Millan <rmh@aybabtu.com>
13901
13902 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
13903 it is used later.
13904
13905 2007-04-18 Jerone Young <jerone@gmail.com>
13906
13907 * kernel/elf.c: Add missing parenthesis for conditional statement
13908 stanza.
13909
13910 2007-04-10 Jerone Young <jerone@gmail.com>
13911
13912 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
13913 continue on and look for device node with real device name.
13914
13915 2007-04-10 Jerone Young <jerone@gmail.com>
13916
13917 * configure.ac: Add argument for autoconf to use transformation
13918 ability.
13919 * Makefile.in: Add autoconf package transformation code.
13920 * util/i386/pc/grub-install.in: Likewise.
13921 * util/powerpc/ieee1275/grub-install.in: Likewise.
13922
13923 2007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
13924
13925 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
13926 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
13927 (EXT2_REVISION): Likewise.
13928 (EXT2_INODE_SIZE): Likewise.
13929 (struct grub_ext2_block_group): Added a missing member
13930 "used_dirs".
13931 (grub_ext2_read_inode): Divide by the inode size in a superblock
13932 instead of 128 to obtain INODES_PER_BLOCK.
13933 Use the macro EXT2_INODE_SIZE instead of directly using
13934 SBLOCK->INODE_SIZE.
13935
13936 2007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
13937
13938 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
13939 superblock instead of the structure size to compute an
13940 offset. This fixes the problem that GRUB could not read a
13941 filesystem when inode size is different from 128-byte.
13942
13943 2007-03-05 Marco Gerards <marco@gnu.org>
13944
13945 * normal/main.c (read_config_file): When "menu" is not set, create
13946 an initial context.
13947
13948 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
13949
13950 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
13951 (HEAP_LIMIT): New macro.
13952 (grub_claim_heap): Claim memory up to `heaplimit'.
13953
13954 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
13955
13956 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
13957 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
13958 (_start): Likewise.
13959 (grub_arch_modules_addr): Return address after `_end'.
13960 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
13961 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
13962 (add_segments): Calculate `_end' from phdr size and location.
13963 (ALIGN_UP): Moved to ...
13964 * include/grub/misc.h: here.
13965 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
13966 New macro.
13967 (GRUB_IEEE1275_MODULE_BASE): Removed.
13968
13969 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
13970
13971 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
13972 loop boundary.
13973
13974 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
13975
13976 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
13977 All users updated.
13978 (grub_elf64_load_hook_t): Likewise.
13979 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
13980 debug output.
13981
13982 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
13983
13984 * kern/mm.c: Update copyright.
13985 (grub_mm_debug): Correct syntax error.
13986 (grub_mm_dump_free): New function.
13987 (grub_debug_free): Call `grub_free'.
13988 * include/grub/mm.h: Update copyright.
13989 (grub_mm_dump_free): Add declaration.
13990
13991 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
13992
13993 * include/grub/ieee1275/ieee1275.h: Update copyright.
13994 * kern/powerpc/ieee1275/init.c: Likewise.
13995 * kern/powerpc/ieee1275/openfw.c: Likewise.
13996
13997 * loader/powerpc/ieee1275/linux.c: Likewise.
13998 * include/grub/elfload.h: Likewise.
13999 * kern/elf.c: Likewise.
14000 (grub_elf32_load): Pass `base' and `size' parameters. Update all
14001 callers.
14002 (grub_elf64_load): Likewise.
14003 (grub_elf32_load_segment): Move to a nested function.
14004 (grub_elf64_load_segment): Likewise.
14005
14006 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
14007
14008 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
14009 prototype.
14010 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
14011 (grub_heap_len): Likewise.
14012 (HEAP_SIZE): New macro.
14013 (grub_claim_heap): New function.
14014 (grub_machine_init): Don't claim heap directly. Call
14015 `grub_claim_heap'.
14016 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
14017 (grub_available_iterate): New function.
14018
14019 2007-02-03 Thomas Schwinge <tschwinge@gnu.org>
14020
14021 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
14022 * configure.ac: Use it for testing the HOST and TARGET compilers.
14023
14024 2006-12-13 Thomas Schwinge <tschwinge@gnu.org>
14025
14026 * Makefile.in (enable_grub_emu): New variable.
14027 * configure.ac (--enable-grub-emu): New option.
14028 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
14029 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
14030 * conf/i386-pc.rmk: Likewise.
14031 * conf/powerpc-ieee1275.rmk: Likewise.
14032 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
14033
14034 2006-12-12 Marco Gerards <marco@gnu.org>
14035
14036 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
14037
14038 * kern/env.c (grub_env_unset): Don't free the member `value' when
14039 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
14040 pointer.
14041
14042 * normal/main.c (current_menu): Removed.
14043 (free_menu): Unset the `menu' environment variable.
14044 (grub_normal_menu_addentry): Make use of the environment variable
14045 `menu', instead of using the global `current_menu'. Allocate
14046 memory for the sourcecode of this entry.
14047 (read_config_file): New argument `nested', changed all callers.
14048 Only in the case of a new context, initialize a new menu. Set the
14049 `menu' environment variable.
14050 (grub_normal_execute): Don't set and unset the environment
14051 variable `menu' here anymore. Only free the menu when leaving the
14052 context.
14053
14054 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
14055 leak.
14056
14057 2006-12-11 Marco Gerards <marco@gnu.org>
14058
14059 * normal/menu_entry.c (run): Fix off by one bug so the last line
14060 is executed. Move the loader check to outside the loop.
14061
14062 2006-12-08 Hollis Blanchard <hollis@penguinppc.org>
14063
14064 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
14065
14066 2006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
14067
14068 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
14069 the number of sectors. Reported by Andrey Shuvikov
14070 <mr_hyro@yahoo.com>.
14071
14072 2006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
14073
14074 * kern/disk.c (grub_disk_read): When there is a read error, always
14075 try to read only the necessary data.
14076
14077 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
14078 disk/raid.c.
14079 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
14080 prototype.
14081 [GRUB_UTIL] (grub_raid_fini): Likewise.
14082 [GRUB_UTIL] (grub_lvm_init): Likewise.
14083 [GRUB_UTIL] (grub_lvm_fini): Likewise.
14084 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
14085 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
14086 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
14087 and grub_raid_fini().
14088
14089 2006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
14090
14091 * include/grub/types.h (__unused): Rename to UNUSED.
14092 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
14093 (grub_elf64_size): Likewise.
14094
14095 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
14096
14097 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
14098 grub_error_push and grub_error_pop in the error-handling path.
14099 (grub_elf32_load_segment): Only call grub_file_read with non-zero
14100 length.
14101
14102 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
14103
14104 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
14105 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
14106 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14107 (kernel_elf_SOURCES): Likewise.
14108 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
14109 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
14110 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
14111 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
14112 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
14113 (elf_mod_SOURCES): New variable.
14114 (elf_mod_CFLAGS): Likewise.
14115 (elf_mod_LDFLAGS): Likewise.
14116 * include/grub/types.h (__unused): New macro.
14117 * include/grub/elfload.h: New file.
14118 * kern/elf.c: Likewise.
14119 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
14120 (ELF32_LOADMASK): New macro.
14121 (ELF64_LOADMASK): Likewise.
14122 (vmlinux): Removed.
14123 (grub_linux_load32): New function.
14124 (grub_linux_load64): Likewise.
14125 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
14126 Use grub_elf_t instead of grub_file_t.
14127
14128 2006-11-02 Hollis Blanchard <hollis@penguinppc.org>
14129
14130 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
14131 `catch_result' to struct set_color_args.
14132
14133 2006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
14134
14135 * normal/menu.c: Include grub/script.h.
14136 * normal/menu_entry.c: Likewise.
14137 * include/grub/normal.h: Do not include grub/script.h.
14138
14139 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
14140
14141 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
14142
14143 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
14144
14145 * kern/disk.c (grub_disk_open): Print debug messages when opening a
14146 disk.
14147 (grub_disk_close): Print debug messages when closing a disk.
14148 (grub_disk_read): Print debug messages when disk read fails.
14149 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
14150 filesystem type.
14151 * kern/partition.c: Include misc.h.
14152 (grub_partition_iterate): Print debug messages when detecting
14153 partition type.
14154
14155 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
14156
14157 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
14158 is negative.
14159 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
14160
14161 2006-10-26 Hollis Blanchard <hollis@penguinppc.org>
14162
14163 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
14164 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
14165
14166 2006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
14167
14168 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
14169 instead of sizeof(lv). Patch by Michael Guntsche.
14170
14171 2006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
14172
14173 * disk/lvm.c: Rename VGS to VG_LIST.
14174 (grub_lvm_iterate): Change VGS->LV to VG-LV.
14175 (grub_lvm_open): Likewise.
14176 Thanks to Michael Guntsche for finding this bug.
14177
14178 2006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
14179
14180 * configure.ac (AC_INIT): Bumped to 1.95.
14181
14182 2006-10-14 Robert Millan <rmh@aybabtu.com>
14183
14184 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
14185 with "/dev/.static/dev/md".
14186
14187 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
14188
14189 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
14190 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
14191 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
14192 DRIVE_NAME are always freed.
14193
14194 * util/i386/pc/biosdisk.c (make_device_name): Add one into
14195 DOS_PART, as a DOS partition is counted from one instead of zero
14196 now. Reported by Robert Millan.
14197
14198 2006-10-14 Robert Millan <rmh@aybabtu.com>
14199
14200 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
14201 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
14202 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
14203 string returned by grub_guess_root_device.
14204 * util/i386/pc/grub-setup.c: Likewise.
14205 * util/i386/pc/grub-probefs.c: Likewise.
14206
14207 * util/i386/pc/grub-probefs.c: Rename to ...
14208 * util/i386/pc/grub-probe.c: ... this.
14209 * DISTLIST: Remove grub-probefs, add grub-probe.
14210 * conf/i386-efi.rmk: Likewise.
14211 * conf/i386-pc.rmk: Likewise.
14212 * util/i386/pc/grub-install.in: Likewise.
14213
14214 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
14215 choose which information we want to print.
14216
14217 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
14218
14219 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
14220 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
14221 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
14222 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
14223 video/readers/tga.c and video/i386/pc/vbeutil.c.
14224
14225 2006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
14226
14227 Added support for RAID and LVM.
14228
14229 * disk/lvm.c: New file.
14230 * disk/raid.c: Likewise.
14231 * include/grub/lvm.h: Likewise.
14232 * include/grub/raid.h: Likewise.
14233 * include/grub/util/lvm.h: Likewise.
14234 * include/grub/util/raid.h: Likewise.
14235 * util/lvm.c: Likewise.
14236 * util/raid.c: Likewise.
14237
14238 * include/grub/disk.h (grub_disk_dev_id): Add
14239 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
14240 (grub_disk_get_size): New prototype.
14241 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
14242 returns a partition.
14243 (grub_disk_get_size): New function.
14244
14245 * kern/i386/pc/init.c (make_install_device): Copy the prefix
14246 verbatim if grub_install_dos_part is -2.
14247
14248 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
14249 and LVM devices.
14250
14251 * util/i386/pc/grub-setup.c (setup): New argument
14252 MUST_EMBED. Force embedding of GRUB when the argument is
14253 true. Close FILE before returning.
14254 (main): Add support for RAID and LVM.
14255
14256 * conf/common.rmk: Add RAID and LVM modules.
14257 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
14258 util/lvm.c.
14259 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
14260
14261 * kern/misc.c (grub_strstr): New function.
14262 * include/grub/misc.h (grub_strstr): New prototype.
14263
14264 2006-10-10 Tristan Gingold <tristan.gingold@bull.net>
14265
14266 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
14267
14268 2006-10-05 Tristan Gingold <tristan.gingold@bull.net>
14269
14270 * kern/misc.c (grub_strtoull): Guess the base only if not
14271 specified.
14272
14273 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
14274
14275 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
14276 PowerMac support.
14277
14278 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
14279
14280 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
14281
14282 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
14283 Remove `flags' argument. All callers changed.
14284 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
14285 (IEEE1275_IHANDLE_INVALID): New variable.
14286 (IEEE1275_CELL_INVALID): New variable.
14287 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
14288 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
14289 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
14290 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
14291 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
14292 codes from Open Firmware. All callers updated.
14293 (grub_ieee1275_next_property): Directly return Open Firmware return
14294 code.
14295 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
14296 Standardize error checking from `grub_ieee1275_get_property'.
14297 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
14298 `devalias' to `aliases'. Correct comments. Consolidate error paths.
14299
14300 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
14301
14302 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
14303 `instance_to_package_args' to `instance_to_path_args'.
14304
14305 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
14306 `grub_ieee1275_chosen'.
14307
14308 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
14309 `grub_ieee1275_interpret'.
14310
14311 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
14312
14313 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
14314
14315 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
14316
14317 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
14318 (__cmpdi): Likewise.
14319
14320 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
14321 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
14322 `grub_ssize_t'.
14323
14324 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
14325
14326 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
14327 to type `grub_ssize_t'.
14328 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
14329
14330 2006-09-22 Marco Gerards <marco@gnu.org>
14331
14332 * normal/script.c (grub_script_create_cmdmenu): Skip leading
14333 newlines.
14334
14335 2006-09-22 Marco Gerards <marco@gnu.org>
14336
14337 * commands/echo.c: New file.
14338
14339 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
14340
14341 * conf/common.rmk (echo_mod_SOURCES): New variable.
14342 (echo_mod_CFLAGS): Likewise.
14343 (echo_mod_LDFLAGS): Likewise.
14344
14345 2006-09-22 Marco Gerards <marco@gnu.org>
14346
14347 * normal/main.c (get_line): Malloc memory instead of using
14348 preallocated memory. Removed the arguments `cmdline' and
14349 `max_len'. Updated all callers.
14350
14351 2006-09-22 Marco Gerards <marco@gnu.org>
14352
14353 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
14354 (normal_mod_DEPENDENCIES): Likewise.
14355
14356 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
14357 (normal_mod_DEPENDENCIES): Likewise.
14358
14359 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
14360
14361 2006-09-22 Johan Rydberg <jrydberg@gnu.org>
14362
14363 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
14364 programs.
14365 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
14366 (normal_mod_DEPENDENCIES): Likewise.
14367 * conf/i386-pc.mk: Regenerate.
14368 * conf/i386-efi.mk: Likewise
14369 * conf/common.mk: Likewise.
14370 * conf/powerpc-ieee1275.mk: Likewise.
14371 * conf/sparc64-ieee1275.mk: Likewise.
14372
14373 2006-09-22 Robert Millan <rmh@aybabtu.com>
14374
14375 Sync with i386 version.
14376 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
14377 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
14378
14379 2006-09-21 Robert Millan <rmh@aybabtu.com>
14380
14381 Import from GRUB Legacy (lib/device.c):
14382 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
14383 (init_device_map) [__linux__]: Add support for I2O devices.
14384
14385 2006-09-14 Marco Gerards <marco@gnu.org>
14386
14387 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
14388 `-melf_i386'.
14389
14390 2006-09-14 Robert Millan <rmh@aybabtu.com>
14391
14392 * util/i386/pc/grub-install.in: Skip menu.lst when removing
14393 /boot/grub/*.lst.
14394
14395 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
14396
14397 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
14398 before adding it to device.map.
14399
14400 2006-08-15 Johan Rydberg <jrydberg@gnu.org>
14401
14402 * genmk.rb: Let GCC generate dependencies the first time it
14403 compiles a file; using the -MD option.
14404 * conf/common.mk: Regenerate.
14405 * conf/i386-pc.mk: Likewise.
14406 * conf/i386-efi.mk: Likewise.
14407 * conf/powerpc-ieee1275.mk: Likewise.
14408 * conf/sparc64-ieee1275.mk: Likewise.
14409
14410 2006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
14411
14412 Move the prototypes of grub_setjmp and grub_longjmp to
14413 cpu/setjmp.h, so that each architecture may specify different
14414 attributes.
14415
14416 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
14417 (grub_longjmp): Likewise.
14418 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
14419 (grub_longjmp): Likewise.
14420 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
14421 (grub_longjmp): Likewise.
14422
14423 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
14424 [!GRUB_UTIL] (grub_longjmp): Removed.
14425
14426 2006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
14427
14428 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
14429 "color!" method does not return any value.
14430
14431 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
14432
14433 * include/grub/bitmap.h: New file.
14434
14435 * include/grub/i386/pc/vbeutil.h: Likewise.
14436
14437 * video/bitmap.c: Likewise.
14438
14439 * video/readers/tga.c: Likewise.
14440
14441 * video/i386/pc/vbeutil.c: Likewise.
14442
14443 * commands/videotest.c: Code cleanup and updated to reflect to new
14444 video API.
14445
14446 * term/gfxterm.c: Likewise.
14447
14448 * video/video.c: Likewise.
14449
14450 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
14451 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
14452 (bitmap_mod_SOURCES): New entry.
14453 (bitmap_mod_CFLAGS): Likewise.
14454 (bitmap_mod_LDFLAGS): Likewise.
14455 (tga_mod_SOURCES): Likewise.
14456 (tga_mod_CFLAGS): Likewise.
14457 (tga_mod_LDFLAGS): Likewise.
14458
14459 * include/grub/video.h (grub_video_blit_operators): New enum type.
14460 (grub_video_render_target): Changed as forward declaration and moved
14461 actual definition to be video driver specific.
14462 (grub_video_adapter.blit_bitmap): Added blitting operator.
14463 (grub_video_adapter.blit_render_target): Likewise.
14464 (grub_video_blit_bitmap): Likewise.
14465 (grub_video_blit_render_target): Likewise.
14466
14467 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
14468 driver specific render target definition.
14469 (grub_video_vbe_map_rgba): Added driver internal helper.
14470 (grub_video_vbe_unmap_color): Updated to use
14471 grub_video_i386_vbeblit_info.
14472 (grub_video_vbe_get_video_ptr): Likewise.
14473
14474 * include/grub/i386/pc/vbeblit.h
14475 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
14476 grub_video_i386_vbeblit_info.
14477 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
14478 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
14479 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
14480 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
14481 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
14482 (grub_video_i386_vbeblit_index_index): Likewise.
14483 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
14484 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
14485 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
14486 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
14487 operator.
14488 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
14489 operator.
14490
14491 * video/i386/pc/vbeblit.c: Updated to reflect changes on
14492 include/grub/i386/pc/vbeblit.h.
14493
14494 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
14495 Updated to use grub_video_i386_vbeblit_info.
14496 (grub_video_i386_vbefill_R8G8B8): Likewise.
14497 (grub_video_i386_vbefill_index): Likewise.
14498 (grub_video_i386_vbefill): Added generic filler.
14499
14500 * video/i386/pc/vbefill.c: Updated to reflect changes on
14501 include/grub/i386/pc/vbefill.h.
14502
14503 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
14504 grub_video_i386_vbeblit_info.
14505 (grub_video_vbe_unmap_color): Likewise.
14506 (grub_video_vbe_blit_glyph): Likewise.
14507 (grub_video_vbe_scroll): Likewise.
14508 (grub_video_vbe_draw_pixel): Removed function.
14509 (grub_video_vbe_get_pixel): Likewise.
14510 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
14511 updated code to use it.
14512 (common_blitter): Added common blitter for render target and bitmap.
14513 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
14514 (grub_video_vbe_blit_render_target): Likewise.
14515
14516 2006-07-30 Johan Rydberg <jrydberg@gnu.org>
14517
14518 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
14519 is in text mode if there is no console control protocol instance
14520 available.
14521
14522 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
14523
14524 * include/grub/video.h: Code cleanup.
14525
14526 * include/grub/i386/pc/vbe.h: Likewise.
14527
14528 * video/i386/pc/vbe.c: Likewise.
14529
14530 * video/i386/pc/vbeblit.c: Likewise.
14531
14532 * video/i386/pc/vbefill.c: Likewise.
14533
14534 * video/video.c: Likewise. Also added more comments.
14535
14536 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
14537
14538 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
14539 (struct grub_biosdisk_dap): Likewise.
14540
14541 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
14542 linkage settings for all functions.
14543
14544 2006-07-12 Marco Gerards <marco@gnu.org>
14545
14546 * configure.ac (--enable-mm-debug): Fix typo.
14547
14548 * genkernsyms.sh.in: Use proper quoting for `CC'.
14549
14550 2006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
14551
14552 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
14553 (normal_mod_ASFLAGS): Remove "-m32".
14554
14555 2006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
14556
14557 * util/misc.c: Include config.h.
14558 [!HAVE_MEMALIGN]: Do not include malloc.h.
14559 (grub_memalign): Use posix_memalign, if present. Then, use
14560 memalign, if present. Otherwise, emit an error.
14561
14562 * util/grub-emu.c: Do not include malloc.h.
14563
14564 * include/grub/util/misc.h: Include unistd.h. This is required for
14565 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
14566 D. Eades III <hde@foobar-qux.org>.
14567
14568 * configure.ac (AC_GNU_SOURCE): Added.
14569 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
14570 type.
14571
14572 2006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
14573
14574 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
14575 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
14576
14577 2006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
14578
14579 * include/grub/types.h (grub_host_addr_t): Rename to
14580 grub_target_addr_t.
14581 (grub_host_off_t): Rename to grub_target_off_t.
14582 (grub_host_size_t): Rename to grub_target_size_t.
14583 (grub_host_ssize_t): Rename to grub_target_ssize_t.
14584 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
14585
14586 * include/grub/kernel.h (struct grub_module_header): Change type
14587 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
14588 (grub_module_info): Likewise.
14589
14590 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
14591
14592 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
14593 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
14594 Velazquez <jesus.velazquez@gmail.com>.
14595
14596 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
14597
14598 Count partitions from 1 instead of 0 in the string representation
14599 of partitions. Still use 0-based internally.
14600
14601 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
14602 (sun_partition_map_iterate): Use grub_partition_t instead of
14603 struct grub_partition *. Cast DESC->START_CYLINDER to
14604 grub_uint64_t after converting the endian.
14605 (sun_partition_map_probe): Subtract 1 for PARTNUM.
14606 (sun_partition_map_get_name): Add 1 to P->INDEX.
14607
14608 * partmap/pc.c (grub_partition_parse): Subtract 1 for
14609 PCDATA->DOS_PART.
14610 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
14611
14612 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
14613 zero instead of one.
14614 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
14615 (gpt_partition_map_get_name): Add 1 into P->INDEX.
14616
14617 * partmap/apple.c (apple_partition_map_iterate): Change the type
14618 of POS to unsigned.
14619 (apple_partition_map_probe): Subtract 1 for PARTNUM.
14620 (apple_partition_map_get_name): Add 1 into P->INDEX.
14621
14622 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
14623 of POS to unsigned.
14624 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
14625 calculate the offset of a partition.
14626 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
14627 (amiga_partition_map_get_name): Add 1 into P->INDEX.
14628
14629 * partmap/acorn.c (acorn_partition_map_find): Change the type of
14630 SECTOR to grub_disk_addr_t.
14631 (acorn_partition_map_iterate): Likewise.
14632 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
14633 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
14634 top.
14635 (acorn_partition_map_get_name): Add 1 into P->INDEX.
14636
14637 * kern/i386/pc/init.c (make_install_device): Add 1 into
14638 GRUB_INSTALL_DOS_PART.
14639
14640 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
14641 conditional.
14642
14643 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
14644
14645 Clean up the code to support 64-bit addressing in disks and
14646 files. This change is not enough for filesystems yet.
14647
14648 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
14649 type of "start" to grub_uint64_t.
14650 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
14651 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
14652 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
14653 convert addresses.
14654
14655 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
14656 to grub_disk_addr_t.
14657
14658 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
14659 string.
14660
14661 * partmap/pc.c (pc_partition_map_iterate): Likewise.
14662
14663 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
14664 to char *.
14665
14666 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
14667
14668 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
14669
14670 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
14671
14672 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
14673 to grub_off_t, to detect an error from grub_file_seek.
14674 (grub_multiboot_load_elf32): Likewise.
14675
14676 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
14677 maximum unsigned long value when an overflow is detected.
14678 (grub_strtoull): New function.
14679 (grub_divmod64): Likewise.
14680 (grub_lltoa): use grub_divmod64.
14681
14682 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
14683 grub_disk_addr_t.
14684 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
14685 the pointer to next character. Use grub_strtoull instead of
14686 grub_strtoul.
14687 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
14688 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
14689 respectively.
14690
14691 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
14692 return value is signed.
14693 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
14694 test if OFFSET is less than zero, as OFFSET is unsigned now.
14695
14696 * kern/disk.c (struct grub_disk_cache): Change the type of
14697 "sector" to grub_disk_addr_t.
14698 (grub_disk_cache_get_index): Change the type of SECTOR to
14699 grub_disk_addr_t. Calculate the hash with SECTOR casted to
14700 unsigned after shifting.
14701 (grub_disk_cache_invalidate): Change the type of SECTOR to
14702 grub_disk_addr_t.
14703 (grub_disk_cache_unlock): Likewise.
14704 (grub_disk_cache_store): Likewise.
14705 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
14706 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
14707 grub_disk_addr_t and grub_uint64_t, respectively.
14708 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
14709 body, as the value of OFFSET is tweaked by
14710 grub_disk_check_range. Change the types of START_SECTOR, LEN and
14711 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
14712 respectively.
14713 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
14714 body, as the value of OFFSET is tweaked by
14715 grub_disk_check_range. Change the types of LEN and N to
14716 grub_size_t.
14717
14718 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
14719 and "saved_offset" to grub_off_t.
14720 (test_header): Cast BUF to char *.
14721 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
14722 to char *.
14723 (grub_gzio_read): Change the types of OFFSET and SIZE to
14724 grub_off_t and grub_size_t, respectively.
14725
14726 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
14727 Removed.
14728 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
14729 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
14730 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
14731 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
14732 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
14733
14734 * include/grub/types.h (grub_off_t): Unconditionally set to
14735 grub_uint64_t.
14736 (grub_disk_addr_t): Changed to grub_uint64_t.
14737
14738 * include/grub/partition.h (struct grub_partition): Change the
14739 types of "start", "len" and "offset" to grub_disk_addr_t,
14740 grub_uint64_t and grub_disk_addr_t, respectively.
14741 (grub_partition_get_start): Return grub_disk_addr_t.
14742 (grub_partition_get_len): Return grub_uint64_t.
14743
14744 * include/grub/misc.h (grub_strtoull): New prototype.
14745 (grub_divmod64): Likewise.
14746
14747 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
14748 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
14749 grub_off_t, respectively.
14750 All callers and references changed.
14751
14752 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
14753 grub_size_t in "read".
14754 All callers and references changed.
14755
14756 * include/grub/file.h (struct grub_file): Change the types of
14757 "offset" and "size" to grub_off_t and grub_off_t,
14758 respectively. Change the type of SECTOR to grub_disk_addr_t in
14759 "read_hook".
14760 (grub_file_read): Change the type of LEN to grub_size_t.
14761 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
14762 grub_off_t.
14763 (grub_file_size): Return grub_off_t.
14764 (grub_file_tell): Likewise.
14765 All callers and references changed.
14766
14767 * include/grub/disk.h (struct grub_disk_dev): Change the types of
14768 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
14769 "write".
14770 (struct grub_disk): Change the type of "total_sectors" to
14771 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
14772 "read_hook".
14773 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
14774 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
14775 (grub_disk_write): Likewise.
14776 All callers and references changed.
14777
14778 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
14779 char * for grub_strncmp to silence gcc.
14780 (grub_iso9660_mount): Likewise.
14781 (grub_iso9660_mount): Likewise.
14782 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
14783 return statement.
14784 (grub_iso9660_iterate_dir): Likewise.
14785 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
14786
14787 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
14788 LEN to grub_disk_addr_t and grub_size_t, respectively.
14789
14790 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
14791
14792 * fs/jfs.c (grub_jfs_read_file): Likewise.
14793
14794 * fs/minix.c (grub_jfs_read_file): Likewise.
14795
14796 * fs/sfs.c (grub_jfs_read_file): Likewise.
14797
14798 * fs/ufs.c (grub_jfs_read_file): Likewise.
14799
14800 * fs/xfs.c (grub_jfs_read_file): Likewise.
14801
14802 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
14803 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
14804 respectively.
14805
14806 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
14807 BLKNR to -1 instead of returning GRUB_ERRNO.
14808 (grub_ext2_read_file): Change the types of SECTOR and
14809 LEN to grub_disk_addr_t and grub_size_t, respectively.
14810
14811 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
14812 LEN to grub_disk_addr_t and grub_size_t, respectively.
14813
14814 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
14815 grub_file_read.
14816
14817 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
14818 string. Do not cast SECTOR explicitly.
14819
14820 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
14821 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
14822 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
14823 grub_disk_addr_t and grub_size_t, respectively. If the sector is
14824 over 2TB and LBA mode is not supported, raise an error.
14825 (get_safe_sectors): New function.
14826 (grub_biosdisk_read): Use get_safe_sectors.
14827 (grub_biosdisk_write): Likewise.
14828
14829 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
14830 (grub_efidisk_write): Likewise.
14831
14832 * disk/loopback.c (delete_loopback): Cosmetic changes.
14833 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
14834 correctly.
14835 (grub_loopback_open): Likewise.
14836 (grub_loopback_read): Likewise. Also, change the type of POS to
14837 grub_off_t, and fix the usage of grub_memset.
14838
14839 * commands/i386/pc/play.c: Include grub/machine/time.h.
14840
14841 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
14842 print FILE->SIZE.
14843
14844 * commands/configfile.c: Include grub/env.h.
14845
14846 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
14847 GRUB_ERRNO directly instead. Change the type of POS to
14848 grub_off_t. Follow the coding standard.
14849
14850 * commands/blocklist.c: Include grub/partition.h.
14851 (grub_cmd_blocklist): Return an error if the underlying device is
14852 not a disk. Take the starting sector of a partition into account,
14853 if a partition is used.
14854
14855 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
14856 a length field.
14857 (lba_mode): Support 64-bit addresses.
14858 (chs_mode): Likewise.
14859 (copy_buffer): Adapted to the new offsets of a length field and a
14860 segment field.
14861 (blocklist_default_start): Allocate 64-bit space.
14862
14863 * boot/i386/pc/boot.S (force_lba): Removed.
14864 (boot_drive): Moved to under KERNEL_SECTOR.
14865 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
14866 space.
14867 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
14868 is useless.
14869 (lba_mode): Refactored to support a 64-bit address. More size
14870 optimization.
14871 (setup_sectors): Likewise.
14872
14873 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
14874
14875 * DISTLIST: Added include/grub/i386/linux.h. Removed
14876 include/grub/i386/pc/linux.h
14877
14878 * configure.ac (AC_INIT): Bumped to 1.94.
14879
14880 * config.guess: Updated from gnulib.
14881 * config.sub: Likewise.
14882 * install-sh: Likewise.
14883 * mkinstalldirs: Likewise.
14884
14885 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
14886
14887 * conf/common.rmk (grub_modules_init.lst): Depended on
14888 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
14889 MODSRCFILES.
14890
14891 * genmk.rb (PModule::rule): Reverted the previous change.
14892
14893 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
14894
14895 * conf/common.rmk (grub_modules_init.lst): Depends on
14896 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
14897 that the target does not exist before producing.
14898 (grub_modules_init.h): Remove the target before generating.
14899 (grub_emu_init.c): Likewise.
14900
14901 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
14902
14903 2006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
14904
14905 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
14906 for the target-specific tests. Make sure that we also have the
14907 up-to-date target variables for those tests.
14908
14909 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
14910
14911 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
14912 (PModule::rule): Likewise.
14913
14914 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
14915
14916 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
14917 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
14918 target-specific flags should be prefixed.
14919 (PModule::rule): Likewise.
14920
14921 2006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
14922
14923 * configure.ac (CMP): Check if cmp is available explicitly.
14924
14925 2006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
14926
14927 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
14928 (target_cpu): New variable.
14929 (pkglibdir): Use target_cpu instead of host_cpu.
14930
14931 * util/i386/pc/grub-install.in (host_cpu): Removed.
14932 (target_cpu): New variable.
14933 (pkglibdir): Use target_cpu instead of host_cpu.
14934
14935 * util/genmoddep.c: Removed.
14936
14937 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
14938 instead of GRUB_HOST_SIZEOF_VOID_P.
14939 * kern/dl.c: Likewise.
14940
14941 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
14942 ...
14943 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
14944 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
14945 (GRUB_TARGET_SIZEOF_LONG): ... this.
14946 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
14947 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
14948 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
14949 to ...
14950 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
14951 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
14952 (GRUB_TARGET_SIZEOF_LONG): ... this.
14953 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
14954 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
14955 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
14956 to ...
14957 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
14958 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
14959 (GRUB_TARGET_SIZEOF_LONG): ... this.
14960 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
14961 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
14962
14963 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
14964 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
14965 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
14966 instead of GRUB_HOST_SIZEOF_LONG.
14967 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
14968 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
14969 GRUB_CPU_WORDS_BIGENDIAN.
14970 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
14971 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
14972 grub_host_ssize_t.
14973
14974 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
14975 (genmoddep_SOURCES): Likewise.
14976 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
14977 (genmoddep_SOURCES): Likewise.
14978 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
14979 (genmoddep_SOURCES): Likewise.
14980 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
14981 Likewise.
14982 (genmoddep_SOURCES): Likewise.
14983
14984 * genmoddep.awk: New file.
14985
14986 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
14987 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
14988 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
14989 (PModule::rule): Likewise.
14990 (Program::rule): Likewise.
14991 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
14992 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
14993 respectively.
14994
14995 * configure.ac: Rewritten intensively to use host and target
14996 instead of build and host, respectively.
14997
14998 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
14999 (host_cpu): Removed.
15000 (target_cpu): New variable.
15001 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
15002 (BUILD_CC): Removed.
15003 (BUILD_CFLAGS): Likewise.
15004 (BUILD_CPPFLAGS): Likewise.
15005 (TARGET_CC): New variable.
15006 (TARGET_CFLAGS): Likewise.
15007 (TARGET_CPPFLAGS): Likewise.
15008 (TARGET_LDFLAGS): Likewise.
15009 (AWK): Likewise.
15010 (include): Use target_cpu instead of host_cpu.
15011 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
15012
15013 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
15014
15015 2006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
15016
15017 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
15018 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
15019 field 'false' to 'exec_on_false'.
15020 (grub_script_create_cmdif): Renamed argument names to reflect above
15021 changes.
15022
15023 * normal/execute.c (grub_script_execute_cmdif): Likewise.
15024
15025 * normal/script.c (grub_script_create_cmdif): Likewise.
15026
15027 2006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
15028
15029 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
15030 top.
15031 (grub_hfsplus_btree_recptr): Likewise.
15032 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
15033 FILEBLOCK both to pass a block number and store next block
15034 number.
15035 (grub_hfsplus_read_block): Rewritten heavily to support an extent
15036 overflow file correctly. Specify errors appropriately, because
15037 fshelp expects that GRUB_ERRNO is set when fails. Reuse
15038 grub_hfsplus_btree_recptr to get the pointer to a found key.
15039 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
15040 is found.
15041
15042 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
15043 linux.mod.
15044 (_linux_mod_SOURCES): New variable.
15045 (_linux_mod_CFLAGS): Likewise.
15046 (_linux_mod_LDFLAGS): Likewise.
15047 (linux_mod_SOURCES): Likewise.
15048 (linux_mod_CFLAGS): Likewise.
15049 (linux_mod_LDFLAGS): Likewise.
15050
15051 * DISTLIST: Added loader/i386/efi/linux.c,
15052 loader/i386/efi/linux_normal.c and
15053 include/grub/i386/efi/loader.h.
15054
15055 * loader/i386/efi/linux.c: New file.
15056 * loader/i386/efi/linux_normal.c: Likewise.
15057 * include/grub/i386/efi/loader.h: Likewise.
15058
15059 2006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
15060
15061 * commands/blocklist.c: New file.
15062
15063 * DISTLIST: Added commands/blocklist.c.
15064
15065 * term/efi/console.c (grub_console_highlight_color): Use a lighter
15066 color for the background, and a darker color for the foreground.
15067 (grub_console_checkkey): Return READ_KEY.
15068 (grub_console_cls): Set the background to
15069 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
15070
15071 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
15072
15073 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
15074 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
15075
15076 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
15077 prototype.
15078
15079 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
15080 BG. The spec is wrong again.
15081
15082 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
15083 prototype.
15084 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
15085
15086 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
15087 commands/blocklist.c.
15088 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
15089
15090 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
15091 (blocklist_mod_SOURCES): New variable.
15092 (blocklist_mod_CFLAGS): Likewise.
15093 (blocklist_mod_LDFLAGS): Likewise.
15094
15095 2006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
15096
15097 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
15098 duplication.
15099 (lba_mode): Use %eax more intensively to reduce the code size.
15100
15101 2006-05-20 Marco Gerards <marco@gnu.org>
15102
15103 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
15104
15105 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
15106 for `menuentry'.
15107 (script): Accept leading newlines.
15108 (newlines): New rule to describe 0 or more newlines.
15109 (commands): Accept `command' with trailing newline. Fixed the
15110 order in which arguments were passed to `grub_script_add_cmd'.
15111 Accept commands separated by newlines.
15112 (function): Changed to accept newlines.
15113 (menuentry) Rewritten.
15114
15115 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
15116 front of the list, instead of to the end.
15117
15118 2006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
15119
15120 * util/i386/pc/grub-install.in (bindir): New variable.
15121 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
15122 Shaver <lbgwjl@gmail.com>.
15123
15124 2006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
15125
15126 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
15127 grub/machine/linux.h
15128 * loader/i386/pc/linux.c: Likewise.
15129
15130 * include/grub/i386/pc/linux.h: Moved to ...
15131 * include/grub/i386/linux.h: ... here.
15132
15133 * include/grub/i386/linux.h (struct linux_kernel_params): New
15134 struct.
15135
15136 2006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
15137
15138 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
15139 checking.
15140 (grub_video_vbe_blit_glyph): Likewise.
15141 (grub_video_vbe_blit_bitmap): Likewise.
15142 (grub_video_vbe_blit_render_target): Likewise.
15143
15144 2006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
15145
15146 * configure.ac (--with-platform): Properly quote the square
15147 brackets.
15148
15149 2006-05-08 Marco Gerards <marco@gnu.org>
15150
15151 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
15152 this...
15153 (kernel_elf_HEADERS): ...to this. Updated all users.
15154 (grubof_symlist.c): Renamed from this...
15155 (kernel_elf_symlist.c): ...to this. Updated all users.
15156 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
15157 (grubof_SOURCES): Renamed from this...
15158 (kernel_elf_SOURCES): ...to this.
15159 (grubof_HEADERS): Renamed from this...
15160 (kernel_elf_HEADERS): ...to this.
15161 (grubof_CFLAGS): Renamed from this...
15162 (kernel_elf_CFLAGS): ...to this.
15163 (grubof_ASFLAGS): Renamed from this...
15164 (kernel_elf_ASFLAGS): ...to this.
15165 (grubof_LDFLAGS): Renamed from this...
15166 (kernel_elf_LDFLAGS): ...to this.
15167
15168 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
15169 this...
15170 (kernel_elf_HEADERS): ...to this. Updated all users.
15171 (grubof_symlist.c): Renamed from this...
15172 (kernel_elf_symlist.c): ...to this. Updated all users.
15173 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
15174 (grubof_SOURCES): Renamed from this...
15175 (kernel_elf_SOURCES): ...to this.
15176 (grubof_HEADERS): Renamed from this...
15177 (kernel_elf_HEADERS): ...to this.
15178 (grubof_CFLAGS): Renamed from this...
15179 (kernel_elf_CFLAGS): ...to this.
15180 (grubof_ASFLAGS): Renamed from this...
15181 (kernel_elf_ASFLAGS): ...to this.
15182 (grubof_LDFLAGS): Renamed from this...
15183 (kernel_elf_LDFLAGS): ...to this.
15184
15185 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
15186 `kernel.elf' instead of `grubof'.
15187
15188 2006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
15189
15190 Add --with-platform to configure. Use pkglibdir instead of
15191 pkgdatadir. This is reported by Roger Leigh.
15192
15193 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
15194 (host_vendor): Likewise.
15195 (host_os): Likewise.
15196 (pkgdatadir): Likewise.
15197 (platform): New variable.
15198 (pkglibdir): Likewise.
15199 Use PKGLIBDIR instead of PKGDATADIR.
15200
15201 * util/i386/pc/grub-install.in (datadir): Removed.
15202 (host_vendor): Likewise.
15203 (host_os): Likewise.
15204 (pkgdatadir): Likewise.
15205 (platform): New variable.
15206 (pkglibdir): Likewise.
15207 Use PKGLIBDIR instead of PKGDATADIR.
15208
15209 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
15210 instead of GRUB_DATADIR.
15211 (main): Likewise.
15212 * util/i386/pc/grub-mkimage.c (usage): Likewise.
15213 (main): Likewise.
15214 * util/i386/efi/grub-mkimage.c (usage): Likewise.
15215 (main): Likewise.
15216
15217 * configure.ac (--with-platform): New option.
15218 Use PLATFORM instead of HOST_VENDOR to specify a platform.
15219
15220 * Makefile.in: Include a makefile based on PLATFORM instead of
15221 HOST_VENDOR.
15222 (pkgdatadir): Not appended by the machine type.
15223 (pkglibdir): Appended by the machine type.
15224 (host_vendor): Removed.
15225 (platform): New variable.
15226 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
15227 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
15228 (uninstall): Likewise.
15229
15230 2006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
15231
15232 Use the environment context in the menu. Remove the commands
15233 "default" and "timeout", and use variables instead.
15234
15235 * normal/menu.c: Include grub/env.h.
15236 (print_entry): Cast TITLE to silence gcc.
15237 (get_timeout): New function.
15238 (set_timeout): Likewise.
15239 (get_entry_number): Likewise.
15240 (run_menu): Use a default entry, a fallback entry and a timeout
15241 in the environment variables "default", "fallback" and
15242 "timeout". Also, tweak the default entry if it is not within the
15243 current menu entries.
15244 (grub_menu_run): Use a fallback entry in the environment variable
15245 "fallback".
15246
15247 * normal/main.c (read_config_file): Do not initialize
15248 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
15249 NEWMENU->TIMEOUT.
15250 (grub_normal_execute): Use a data slot to store the menu.
15251
15252 * include/grub/normal.h (struct grub_menu): Removed default_entry,
15253 fallback_entry and timeout.
15254 (struct grub_menu_list): Removed.
15255 (grub_menu_list_t): Likewise.
15256 (struct grub_context): Likewise.
15257 (grub_context_t): Likewise.
15258 (grub_context_get): Likewise.
15259 (grub_context_get_current_menu): Likewise.
15260 (grub_context_push_menu): Likewise.
15261 (grub_context_pop_menu): Likewise.
15262 (grub_default_init): Likewise.
15263 (grub_default_fini): Likewise.
15264 (grub_timeout_init): Likewise.
15265 (grub_timeout_fini): Likewise.
15266
15267 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
15268 and timeout.mod.
15269 (normal_mod_SOURCES): Removed normal/context.c.
15270
15271 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
15272 commands/default.c, commands/timeout.c and normal/context.c.
15273 (normal_mod_SOURCES): Removed normal/context.c.
15274
15275 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
15276 commands/timeout.c and normal/context.c.
15277 (normal_mod_SOURCES): Removed normal/context.c.
15278
15279 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
15280 commands/default.c, commands/timeout.c and normal/context.c.
15281 (normal_mod_SOURCES): Removed normal/context.c.
15282
15283 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
15284 timeout.mod.
15285 (default_mod_SOURCES): Removed.
15286 (default_mod_CFLAGS): Likewise.
15287 (default_mod_LDFLAGS): Likewise.
15288 (timeout_mod_SOURCES): Removed.
15289 (timeout_mod_CFLAGS): Likewise.
15290 (timeout_mod_LDFLAGS): Likewise.
15291
15292 * DISTLIST: Removed commands/default.c, commands/timeout.c and
15293 normal/context.c.
15294
15295 * commands/default.c: Removed.
15296 * commands/timeout.c: Likewise.
15297 * normal/context.c: Likewise.
15298
15299 2006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
15300
15301 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
15302
15303 2006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
15304
15305 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
15306 "next" to "prev" for readability.
15307 (struct grub_env_sorted_var): New struct.
15308 (grub_env_context): Renamed to ...
15309 (initial_context): ... this.
15310 (grub_env_var_context): Renamed to ...
15311 (current_context): ... this.
15312 (grub_env_find): Look only at CURRENT_CONTEXT.
15313 (grub_env_context_open): Rewritten to copy exported variables from
15314 previous context.
15315 (grub_env_context_close): Rewritten according to the new
15316 scheme. Also, add an assertion to prevent the initial context from
15317 removed.
15318 (grub_env_insert): Removed the code for the sorted list.
15319 (grub_env_remove): Likewise.
15320 (grub_env_export): Simply mark the variable with
15321 GRUB_ENV_VAR_GLOBAL.
15322 (grub_env_set): A cosmetic change for naming consistency.
15323 (grub_env_get): Likewise.
15324 (grub_env_unset): Likewise.
15325 (grub_env_iterate): Rewritten to sort variables within this
15326 function.
15327 (grub_register_variable_hook): Fixed for naming consistency. Call
15328 grub_env_find again, only if NAME is not found at the first time.
15329 (mangle_data_slot_name): New function.
15330 (grub_env_set_data_slot): Likewise.
15331 (grub_env_get_data_slot): Likewise.
15332 (grub_env_unset_data_slot): Likewise.
15333
15334 * include/grub/env.h (grub_env_var_type): New enum.
15335 (GRUB_ENV_VAR_LOCAL): New constant.
15336 (GRUB_ENV_VAR_GLOBAL): Likewise.
15337 (GRUB_ENV_VAR_DATA): Likewise.
15338 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
15339 "type".
15340 (grub_env_set): Replace VAR with NAME for consistency.
15341 (grub_register_variable_hook): Likewise.
15342 (grub_env_export): Specify the name of the argument.
15343 (grub_env_set_data_slot): New prototype.
15344 (grub_env_get_data_slot): Likewise.
15345 (grub_env_unset_data_slot): Likewise.
15346
15347 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
15348
15349 Extend the loader so that GRUB can accept a loader which comes
15350 back to GRUB when a loaded image exits. Also, this change adds
15351 support for a chainloader on EFI.
15352
15353 * term/efi/console.c: Include grub/misc.h.
15354 (grub_console_checkkey): Display a scan code on the top for
15355 debugging. This will be removed once the EFI port gets stable.
15356 Correct the scan code mapping.
15357
15358 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
15359 allocate memory from larger regions, in order to reduce the number
15360 of allocated regions. Otherwise, the MacOSX loader panics.
15361 (filter_memory_map): Avoid less than 1MB for compatibility with
15362 other loaders.
15363 (add_memory_regions): Allocate from the tail of a region, if
15364 possible, to avoid allocating a region near to 1MB, for the MacOSX
15365 loader.
15366
15367 * kern/efi/init.c (grub_efi_set_prefix): Specify
15368 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
15369
15370 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
15371 argument IMAGE_HANDLE and specify it to get a loaded image.
15372 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
15373 grub_efi_get_loaded_image.
15374 (grub_efi_get_filename): Divide the length by the size of
15375 grub_efi_char16_t.
15376 (grub_efi_get_device_path): New function.
15377 (grub_efi_print_device_path): Print End Device Path nodes. Divide
15378 the length by the size of grub_efi_char16_t for a file path device
15379 path node.
15380
15381 * kern/loader.c (grub_loader_noreturn): New variable.
15382 (grub_loader_set): Accept a new argument NORETURN. Set
15383 GRUB_LOADER_NORETURN to NORETURN.
15384 All callers changed.
15385 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
15386 grub_machine_fini.
15387
15388 * include/grub/efi/efi.h (grub_efi_get_device_path): New
15389 prototype.
15390 (grub_efi_get_loaded_image): Take an argument to specify an image
15391 handle.
15392
15393 * include/grub/loader.h (grub_loader_set): Added one more argument
15394 NORETURN.
15395
15396 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
15397 instead of grub_efi_open_protocol.
15398 (grub_efidisk_get_device_name): Likewise.
15399 (grub_efidisk_close): Print a newline.
15400 (grub_efidisk_get_device_handle): Fixed to use
15401 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
15402 GRUB_EFI_DEVICE_PATH_TYPE.
15403
15404 * disk/efi/efidisk.c (device_path_guid): Moved to ...
15405 * kern/efi/efi.c (device_path_guid): ... here.
15406
15407 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
15408 chain.mod.
15409 (kernel_mod_HEADERS): Added efi/disk.h.
15410 (_chain_mod_SOURCES): New variable.
15411 (_chain_mod_CFLAGS): Likewise.
15412 (_chain_mod_LDFLAGS): Likewise.
15413 (chain_mod_SOURCES): Likewise.
15414 (chain_mod_CFLAGS): Likewise.
15415 (chain_mod_LDFLAGS): Likewise.
15416
15417 * DISTLIST: Added include/grub/efi/chainloader.h,
15418 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
15419
15420 * include/grub/efi/chainloader.h: New file.
15421 * loader/efi/chainloader.c: Likewise.
15422 * loader/efi/chainloader_normal.c: Likewise.
15423
15424 2006-04-30 Marco Gerards <marco@gnu.org>
15425
15426 * commands/configfile.c (grub_cmd_source): New function.
15427 (GRUB_MOD_INIT): Register the commands `source' and `.'.
15428 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
15429
15430 2006-04-30 Marco Gerards <marco@gnu.org>
15431
15432 * normal/execute.c (grub_script_execute_cmd): Change the return
15433 type to `grub_err_t'. Correctly return the error.
15434 (grub_script_execute_cmdline): In case a command line is not a
15435 command or a function, try to interpret it as an assignment.
15436
15437 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
15438
15439 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
15440 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
15441 skip a node whose name is obviously invalid as UTF-16,
15442 i.e. contains a NUL character. Stop the iteration when the last
15443 directory entry is found. Instead of using the return value of
15444 grub_hfsplus_btree_iterate_node, store the value in RET and use
15445 it, because the iterator can be stopped by the last directory
15446 entry.
15447
15448 2006-04-30 Marco Gerards <marco@gnu.org>
15449
15450 * include/grub/env.h (grub_env_export): New prototype. Reported
15451 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
15452
15453 2006-04-30 Marco Gerards <marco@gnu.org>
15454
15455 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
15456 size of the extents in a catalog file record.
15457
15458 2006-04-29 Marco Gerards <marco@gnu.org>
15459
15460 * commands/configfile.c (grub_cmd_configfile): Execute the
15461 configfile within its own context.
15462
15463 * include/grub/env.h (grub_env_context_open): New prototype.
15464 (grub_env_context_close): Likewise.
15465
15466 * kern/env.c (grub_env): Removed.
15467 (grub_env_sorted): Likewise.
15468 (grub_env_context): New variable.
15469 (grub_env_var_context): Likewise.
15470 (grub_env_find): Search both the active context and the global
15471 context.
15472 (grub_env_context_open): New function.
15473 (grub_env_context_close): Likewise.
15474 (grub_env_insert): Likewise.
15475 (grub_env_remove): Likewise.
15476 (grub_env_export): Likewise.
15477 (grub_env_set): Changed to use helper functions to avoid code
15478 duplication.
15479 (grub_env_iterate): Rewritten so both the current context and the
15480 global context are being used.
15481
15482 * normal/command.c (export_command): New function.
15483 (grub_command_init): Register the `export' function.
15484
15485 2006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
15486
15487 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
15488 explicitly to suppress gcc's warnings.
15489 * fs/fat.c (grub_fat_find_dir): Likewise.
15490 (grub_fat_label): Likewise.
15491 * fs/xfs.c (grub_xfs_read_inode): Likewise.
15492 (grub_xfs_mount): Likewise.
15493 (grub_xfs_label): Likewise.
15494 * fs/affs.c (grub_affs_mount): Likewise.
15495 (grub_affs_label): Likewise.
15496 (grub_affs_iterate_dir): Likewise.
15497 * fs/sfs.c (grub_sfs_mount): Likewise.
15498 (grub_sfs_iterate_dir): Likewise.
15499 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
15500 * fs/hfs.c (grub_hfs_mount): Likewise.
15501 (grub_hfs_cmp_catkeys): Likewise.
15502 (grub_hfs_find_dir): Likewise.
15503 (grub_hfs_dir): Likewise.
15504 (grub_hfs_label): Likewise.
15505 * fs/jfs.c (grub_jfs_mount): Likewise.
15506 (grub_jfs_opendir): Likewise.
15507 (grub_jfs_getent): Likewise.
15508 (grub_jfs_lookup_symlink): Likewise.
15509 (grub_jfs_label): Likewise.
15510 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
15511 (grub_hfsplus_iterate_dir): Likewise.
15512 (grub_hfsplus_btree_iterate_node): Made static.
15513
15514 * util/grub-emu.c (prefix): New variable.
15515 (grub_machine_set_prefix): New function.
15516 (main): Do not set the environment variable "prefix" here. Only
15517 set PREFIX, which is used later by grub_machine_set_prefix.
15518
15519 * include/grub/video.h: Do not include grub/symbol.h.
15520 (grub_video_register): Not exported. This symbol is not defined in
15521 the kernel.
15522 (grub_video_unregister): Likewise.
15523 (grub_video_iterate): Likewise.
15524 (grub_video_setup): Likewise.
15525 (grub_video_restore): Likewise.
15526 (grub_video_get_info): Likewise.
15527 (grub_video_get_blit_format): Likewise.
15528 (grub_video_set_palette): Likewise.
15529 (grub_video_get_palette): Likewise.
15530 (grub_video_set_viewport): Likewise.
15531 (grub_video_get_viewport): Likewise.
15532 (grub_video_map_color): Likewise.
15533 (grub_video_map_rgb): Likewise.
15534 (grub_video_map_rgba): Likewise.
15535 (grub_video_fill_rect): Likewise.
15536 (grub_video_blit_glyph): Likewise.
15537 (grub_video_blit_bitmap): Likewise.
15538 (grub_video_blit_render_target): Likewise.
15539 (grub_video_scroll): Likewise.
15540 (grub_video_swap_buffers): Likewise.
15541 (grub_video_create_render_target): Likewise.
15542 (grub_video_delete_render_target): Likewise.
15543 (grub_video_set_active_render_target): Likewise.
15544
15545 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
15546 Undefined.
15547 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
15548
15549 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
15550 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
15551 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
15552 instead of $(srcdir)/genkernsyms.sh.
15553
15554 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
15555 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
15556 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
15557 instead of $(srcdir)/genkernsyms.sh.
15558
15559 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
15560 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
15561 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
15562 instead of $(srcdir)/genkernsyms.sh.
15563
15564 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
15565 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
15566 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
15567 instead of $(srcdir)/genkernsyms.sh.
15568
15569 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
15570 genkernsyms.sh.
15571
15572 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
15573 genkernsyms.sh.
15574 (gensymlist.sh): New target.
15575 (genkernsyms.sh): Likewise.
15576
15577 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
15578 genkernsyms.sh.in and gensymlist.sh.in.
15579
15580 * genkernsyms.sh: Removed.
15581 * gensymlist.sh: Likewise.
15582
15583 * genkernsyms.sh.in: New file.
15584 * gensymlist.sh.in: Likewise.
15585
15586 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
15587
15588 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
15589 clobber "prefix", since we may have already set it manually.
15590
15591 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
15592
15593 * kern/misc.c (abort): New alias for grub_abort.
15594
15595 2006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
15596
15597 A new machine-specific function "grub_machine_set_prefix" is
15598 defined. This is called after loading modules, so that a prefix
15599 initialization can use modules. Also, this change adds an
15600 intensive debugging feature for the memory manager via the
15601 configure option "--enable-mm-debug".
15602
15603 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
15604 PART.LEN.
15605
15606 * kern/sparc64/ieee1275/init.c (abort): Removed.
15607 (grub_stop): Likewise.
15608 (grub_exit): New function.
15609 (grub_set_prefix): Renamed to ...
15610 (grub_machine_set_prefix): ... this.
15611 (grub_machine_init): Do not call grub_set_prefix.
15612
15613 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
15614 (grub_machine_set_prefix): ... this.
15615 (grub_machine_init): Do not call grub_set_prefix.
15616
15617 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
15618 (grub_machine_init): Do not set the prefix here.
15619
15620 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
15621
15622 * kern/efi/init.c: Include grub/mm.h.
15623 (grub_efi_set_prefix): New function.
15624
15625 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
15626 (grub_efi_get_filename): New function.
15627 (grub_print_device_path): Renamed to ...
15628 (grub_efi_print_device_path): ... this.
15629
15630 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
15631 [MM_DEBUG] (grub_realloc): Likewise.
15632 [MM_DEBUG] (grub_free): Likewise.
15633 [MM_DEBUG] (grub_memalign): Likewise.
15634 [MM_DEBUG] (grub_mm_debug): New variable.
15635 [MM_DEBUG] (grub_debug_malloc): New function.
15636 [MM_DEBUG] (grub_debug_free): New function.
15637 [MM_DEBUG] (grub_debug_realloc): New function.
15638 [MM_DEBUG] (grub_debug_memalign): New function.
15639
15640 * kern/misc.c (grub_abort): Print a newline to distinguish
15641 the message.
15642
15643 * kern/main.c (grub_main): Call grub_machine_set_prefix and
15644 grub_set_root_dev after loading modules. This is necessary when
15645 setting a prefix depends on modules.
15646
15647 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
15648 (grub_efi_print_device_path): ... this.
15649 (grub_efi_get_filename): New prototype.
15650 (grub_efi_set_prefix): Likewise.
15651
15652 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
15653 and grub/disk.h.
15654 (grub_efidisk_get_device_handle): New prototype.
15655 (grub_efidisk_get_device_name): Likewise.
15656
15657 * include/grub/mm.h: Include config.h.
15658 (MM_DEBUG): Removed.
15659 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
15660 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
15661 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
15662 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
15663 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
15664 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
15665 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
15666 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
15667 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
15668
15669 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
15670
15671 * disk/efi/efidisk.c: Include grub/partition.h.
15672 (iterate_child_devices): New function.
15673 (add_device): First, compare only last device path nodes, so that
15674 devices are sorted by the types.
15675 (grub_efidisk_get_device_handle): New function.
15676 (grub_efidisk_get_device_name): Likewise.
15677
15678 * configure.ac (--enable-mm-debug): New option to enable the
15679 memory manager debugging feature. This makes the binary much
15680 bigger, so is disabled by default.
15681
15682 2006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
15683
15684 Use grub_abort instead of grub_stop, and grub_exit must be
15685 define in each architecture now. Also, this change adds support
15686 for EFI disks.
15687
15688 * util/i386/pc/grub-probefs.c: Include grub/term.h.
15689 (grub_getkey): New function.
15690 (grub_term_get_current): Likewise.
15691
15692 * util/i386/pc/grub-setup.c: Include grub/term.h.
15693 (grub_getkey): New function.
15694 (grub_term_get_current): Likewise.
15695
15696 * util/misc.c (grub_stop): Renamed to ...
15697 (grub_exit): ... this.
15698
15699 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
15700 (grub_exit): ... this.
15701 (grub_machine_init): Use grub_abort instead of abort.
15702 (grub_stop): Removed.
15703
15704 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
15705 abort.
15706
15707 * kern/i386/pc/startup.S (grub_exit): New function.
15708 (cold_reboot): New label.
15709
15710 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
15711 (grub_efi_init): Call grub_efidisk_init.
15712 (grub_efi_fini): Call grub_efidisk_fini.
15713
15714 * kern/efi/efi.c: Include grub/mm.h.
15715 (grub_efi_console_control_guid): Renamed to ...
15716 (console_control_guid): ... this.
15717 (grub_efi_loaded_image_guid): Renamed to ...
15718 (loaded_image_guid): ... this.
15719 (grub_efi_locate_handle): New function.
15720 (grub_efi_open_protocol): Likewise.
15721 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
15722 GRUB_EFI_CONSOLE_CONTROL_GUID.
15723 (grub_efi_exit): Removed.
15724 (grub_stop): Likewise.
15725 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
15726 (grub_exit): New function.
15727 (grub_print_device_path): Likewise.
15728
15729 * kern/rescue.c (grub_rescue_cmd_exit): New function.
15730 (grub_enter_rescue_mode): Register "exit".
15731
15732 * kern/misc.c (grub_real_dprintf): A cosmetic change.
15733 (grub_abort): New function.
15734
15735 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
15736
15737 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
15738
15739 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
15740
15741 * include/grub/efi/efi.h (grub_efi_exit): Removed.
15742 (grub_print_device_path): New prototype.
15743 (grub_efi_locate_handle): Likewise.
15744 (grub_efi_open_protocol): Likewise.
15745
15746 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
15747 * disk/efi/efidisk.c: Likewise.
15748
15749 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
15750
15751 * include/grub/efi/console_control.h
15752 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
15753
15754 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
15755 last 8 bytes as an array.
15756 (GRUB_EFI_DISK_IO_GUID): New macro.
15757 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
15758 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
15759 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
15760 grub_uint8_t.
15761 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
15762 (struct grub_efi_device_path): Rename the member "sub_type" to
15763 "subtype".
15764 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
15765 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
15766 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
15767 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
15768 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
15769 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
15770 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
15771 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
15772 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
15773 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
15774 (struct grub_efi_pci_device_path): New structure.
15775 (grub_efi_pci_device_path_t): New type.
15776 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
15777 (struct grub_efi_pccard_device_path): New structure.
15778 (grub_efi_pccard_device_path_t): New type.
15779 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
15780 (struct grub_efi_memory_mapped_device_path): New structure.
15781 (grub_efi_memory_mapped_device_path_t): New type.
15782 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
15783 (struct grub_efi_vendor_device_path): New structure.
15784 (grub_efi_vendor_device_path_t): New type.
15785 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
15786 (struct grub_efi_controller_device_path): New structure.
15787 (grub_efi_controller_device_path_t): New type.
15788 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
15789 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
15790 (struct grub_efi_acpi_device_path): New structure.
15791 (grub_efi_acpi_device_path_t): New type.
15792 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
15793 (struct grub_efi_expanded_acpi_device_path): New structure.
15794 (grub_efi_expanded_acpi_device_path_t): New type.
15795 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
15796 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
15797 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
15798 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
15799 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
15800 (struct grub_efi_atapi_device_path): New structure.
15801 (grub_efi_atapi_device_path_t): New type.
15802 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
15803 (struct grub_efi_fibre_channel_device_path): New structure.
15804 (grub_efi_fibre_channel_device_path_t): New type.
15805 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
15806 (struct grub_efi_1394_device_path): New structure.
15807 (grub_efi_1394_device_path_t): New type.
15808 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
15809 (struct grub_efi_usb_device_path): New structure.
15810 (grub_efi_usb_device_path_t): New type.
15811 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
15812 (struct grub_efi_usb_class_device_path): New structure.
15813 (grub_efi_usb_class_device_path_t): New type.
15814 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
15815 (struct grub_efi_i2o_device_path): New structure.
15816 (grub_efi_i2o_device_path_t): New type.
15817 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
15818 (struct grub_efi_mac_address_device_path): New structure.
15819 (grub_efi_mac_address_device_path_t): New type.
15820 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
15821 (struct grub_efi_ipv4_device_path): New structure.
15822 (grub_efi_ipv4_device_path_t): New type.
15823 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
15824 (struct grub_efi_ipv6_device_path): New structure.
15825 (grub_efi_ipv6_device_path_t): New type.
15826 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
15827 (struct grub_efi_infiniband_device_path): New structure.
15828 (grub_efi_infiniband_device_path_t): New type.
15829 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
15830 (struct grub_efi_uart_device_path): New structure.
15831 (grub_efi_uart_device_path_t): New type.
15832 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
15833 (struct grub_efi_vendor_messaging_device_path): New structure.
15834 (grub_efi_vendor_messaging_device_path_t): New type.
15835 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
15836 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
15837 (struct grub_efi_hard_drive_device_path): New structure.
15838 (grub_efi_hard_drive_device_path_t): New type.
15839 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
15840 (struct grub_efi_cdrom_device_path): New structure.
15841 (grub_efi_cdrom_device_path_t): New type.
15842 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
15843 (struct grub_efi_vendor_media_device_path): New structure.
15844 (grub_efi_vendor_media_device_path_t): New type.
15845 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
15846 (struct grub_efi_file_path_device_path): New structure.
15847 (grub_efi_file_path_device_path_t): New type.
15848 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
15849 (struct grub_efi_protocol_device_path): New structure.
15850 (grub_efi_protocol_device_path_t): New type.
15851 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
15852 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
15853 (struct grub_efi_bios_device_path): New structure.
15854 (grub_efi_bios_device_path_t): New type.
15855 (struct grub_efi_disk_io): New structure.
15856 (grub_efi_disk_io_t): New type.
15857 (struct grub_efi_block_io_media): New structure.
15858 (grub_efi_block_io_media_t): New type.
15859 (struct grub_efi_block_io): New structure.
15860 (grub_efi_block_io_t): New type.
15861
15862 * include/grub/misc.h (grub_stop): Removed.
15863 (grub_exit): New prototype.
15864 (grub_abort): Likewise.
15865
15866 * include/grub/disk.h (enum grub_disk_dev_id): Added
15867 GRUB_DISK_DEVICE_EFIDISK_ID.
15868
15869 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
15870 disk/efi/efidisk.c.
15871 (kernel_syms.lst): Remove the target if an error occurs.
15872
15873 2006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
15874
15875 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
15876 as it was simply too buggy.
15877
15878 2006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
15879
15880 * kern/misc.c (grub_lltoa): New function.
15881 (grub_vsprintf): Added support for the long long suffix,
15882 i.e. "ll".
15883
15884 2006-04-20 Hollis Blanchard <hollis@penguinppc.org>
15885
15886 * Makefile.in (LDFLAGS): Add variable.
15887 (LD): Remove variable.
15888 * configure.ac: Add -m32 to LDFLAGS.
15889 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
15890 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
15891 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
15892 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
15893 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
15894 variables.
15895 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
15896 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
15897 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
15898
15899 2006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
15900
15901 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
15902 length for unknown glyph.
15903
15904 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
15905
15906 Add support for pre-loaded modules into the EFI port.
15907
15908 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
15909 completely. Accept one more argument DIR. The caller has changed.
15910
15911 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
15912
15913 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
15914 (grub_efi_loaded_image_guid): New variable.
15915 (grub_efi_get_loaded_image): New function.
15916 (grub_arch_modules_addr): Likewise.
15917
15918 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
15919 prototype.
15920
15921 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
15922 (struct grub_efi_loaded_image): New structure.
15923 (grub_efi_loaded_image_t): New type.
15924
15925 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
15926
15927 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
15928 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
15929 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
15930
15931 2006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
15932
15933 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
15934
15935 2006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
15936
15937 * DISTLIST: Added include/grub/efi/console.h,
15938 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
15939 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
15940
15941 * include/grub/efi/console.h: New file.
15942 * include/grub/efi/time.h: Likewise.
15943 * include/grub/i386/efi/kernel.h: Likewise.
15944 * kern/efi/init.c: Likewise.
15945 * kern/efi/mm.c: Likewise.
15946 * term/efi/console.c: Likewise.
15947
15948 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
15949 (grub_stop): Removed.
15950 (grub_get_rtc): Likewise.
15951 (grub_machine_init): Simply call grub_efi_init.
15952 (grub_machine_fini): Call grub_efi_fini.
15953
15954 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
15955 (grub_efi_output_string): Removed.
15956 (grub_efi_stall): New function.
15957 (grub_stop): Likewise.
15958 (grub_get_rtc): Likewise.
15959
15960 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
15961 (grub_efi_stall): New prototype.
15962 (grub_efi_allocate_pages): Likewise.
15963 (grub_efi_free_pages): Likewise.
15964 (grub_efi_get_memory_map): Likewise.
15965 (grub_efi_mm_init): Likewise.
15966 (grub_efi_mm_fini): Likewise.
15967 (grub_efi_init): Likewise.
15968 (grub_efi_fini): Likewise.
15969
15970 * include/grub/i386/efi/time.h: Do not include
15971 grub/symbol.h. Include grub/efi/time.h.
15972 (GRUB_TICKS_PER_SECOND): Removed.
15973 (grub_get_rtc): Likewise.
15974
15975 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
15976 Added padding. The EFI spec is buggy.
15977 (GRUB_EFI_BLACK): New macro.
15978 (GRUB_EFI_BLUE): Likewise.
15979 (GRUB_EFI_GREEN): Likewise.
15980 (GRUB_EFI_CYAN): Likewise.
15981 (GRUB_EFI_RED): Likewise.
15982 (GRUB_EFI_MAGENTA): Likewise.
15983 (GRUB_EFI_BROWN): Likewise.
15984 (GRUB_EFI_LIGHTGRAY): Likewise.
15985 (GRUB_EFI_BRIGHT): Likewise.
15986 (GRUB_EFI_DARKGRAY): Likewise.
15987 (GRUB_EFI_LIGHTBLUE): Likewise.
15988 (GRUB_EFI_LIGHTGREEN): Likewise.
15989 (GRUB_EFI_LIGHTCYAN): Likewise.
15990 (GRUB_EFI_LIGHTRED): Likewise.
15991 (GRUB_EFI_LIGHTMAGENTA): Likewise.
15992 (GRUB_EFI_YELLOW): Likewise.
15993 (GRUB_EFI_WHITE): Likewise.
15994 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
15995 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
15996 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
15997 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
15998 (GRUB_EFI_BACKGROUND_RED): Likewise.
15999 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
16000 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
16001 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
16002 (GRUB_EFI_TEXT_ATTR): Likewise.
16003
16004 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
16005 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
16006 (kernel_mod_HEADERS): Added efi/time.h.
16007
16008 2006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
16009
16010 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
16011 include/grub/efi/api.h, include/grub/efi/console_control.h,
16012 include/grub/efi/efi.h, include/grub/efi/pe32.h,
16013 include/grub/i386/efi/time.h, kern/efi/efi.c,
16014 kern/i386/efi/init.c, kern/i386/efi/startup.S,
16015 and util/i386/efi/grub-mkimage.c.
16016
16017 * Makefile.in (RMKFILES): Added i386-efi.rmk.
16018
16019 * genmk.rb (PModule#rule): Do not export symbols if
16020 #{prefix}_EXPORTS is set to "no".
16021
16022 * conf/i386-efi.mk: New file.
16023 * conf/i386-efi.rmk: Likewise.
16024 * include/grub/efi/api.h: Likewise.
16025 * include/grub/efi/console_control.h: Likewise.
16026 * include/grub/efi/efi.h: Likewise.
16027 * include/grub/efi/pe32.h: Likewise.
16028 * include/grub/i386/efi/time.h: Likewise.
16029 * kern/efi/efi.c: Likewise.
16030 * kern/i386/efi/init.c: Likewise.
16031 * kern/i386/efi/startup.S: Likewise.
16032 * util/i386/efi/grub-mkimage.c: Likewise.
16033
16034 2006-04-17 Marco Gerards <marco@gnu.org>
16035
16036 * include/grub/script.h: Include <grub/parser.h> and
16037 "grub_script.tab.h".
16038 (struct grub_lexer_param): New struct.
16039 (struct grub_parser_param): Likewise.
16040 (grub_script_create_arglist): Pass the state in an argument.
16041 (grub_script_add_arglist): Likewise.
16042 (grub_script_create_cmdline): Likewise.
16043 (grub_script_create_cmdblock): Likewise.
16044 (grub_script_create_cmdif): Likewise.
16045 (grub_script_create_cmdmenu): Likewise.
16046 (grub_script_add_cmd): Likewise.
16047 (grub_script_arg_add): Likewise.
16048 (grub_script_lexer_ref): Likewise.
16049 (grub_script_lexer_deref): Likewise.
16050 (grub_script_lexer_record_start): Likewise.
16051 (grub_script_lexer_record_stop): Likewise.
16052 (grub_script_mem_record): Likewise.
16053 (grub_script_mem_record_stop): Likewise.
16054 (grub_script_malloc): Likewise.
16055 (grub_script_yylex): Likewise.
16056 (grub_script_yyparse): Likewise.
16057 (grub_script_yyerror): Likewise.
16058 (grub_script_yylex): Likewise.
16059 (grub_script_lexer_init): Return the state.
16060
16061 * normal/lexer.c (grub_script_lexer_state): Removed variable.
16062 (grub_script_lexer_done): Likewise.
16063 (grub_script_lexer_getline): Likewise.
16064 (grub_script_lexer_refs): Likewise.
16065 (script): Likewise.
16066 (newscript): Likewise.
16067 (record): Likewise.
16068 (recording): Likewise.
16069 (recordpos): Likewise.
16070 (recordlen): Likewise.
16071 (grub_script_lexer_init): Return the state instead of setting
16072 global variables.
16073 (grub_script_lexer_ref): Use the newly added argument for state
16074 instead of globals.
16075 (grub_script_lexer_deref): Likewise.
16076 (grub_script_lexer_record_start): Likewise.
16077 (grub_script_lexer_record_stop): Likewise.
16078 (recordchar): Likewise.
16079 (nextchar): Likewise.
16080 (grub_script_yylex2): Likewise.
16081 (grub_script_yylex): Likewise.
16082 (grub_script_yyerror): Likewise.
16083
16084 * normal/parser.y (func_mem): Removed variable.
16085 (menu_entry): Likewise.
16086 (err): Likewise.
16087 (%lex-param): New parser option.
16088 (%parse-param): Likewise.
16089 (script): Always return the AST.
16090 (argument): Pass the state around.
16091 (arguments): Likewise.
16092 (grubcmd): Likewise.
16093 (commands): Likewise.
16094 (function): Likewise.
16095 (menuentry): Likewise.
16096 (if_statement): Likewise.
16097 (if): Likewise.
16098
16099 * normal/script.c (grub_script_memused): Removed variable.
16100 (grub_script_parsed): Likewise.
16101 (grub_script_malloc): Added a state argument. Use that instead of
16102 global variables.
16103 (grub_script_mem_record): Likewise.
16104 (grub_script_mem_record_stop): Likewise.
16105 (grub_script_arg_add): Likewise.
16106 (grub_script_add_arglist): Likewise.
16107 (grub_script_create_cmdline): Likewise.
16108 (grub_script_create_cmdif): Likewise.
16109 (grub_script_create_cmdmenu): Likewise.
16110 (grub_script_add_cmd): Likewise.
16111 (grub_script_parse): Setup the state before calling the parser.
16112
16113 2006-04-16 Marco Gerards <marco@gnu.org>
16114
16115 * normal/command.c (grub_command_init): Remove the title command.
16116
16117 * normal/lexer.c (grub_script_yylex): Renamed from this...
16118 (grub_script_yylex2): ... to this.
16119 (grub_script_yylex): New function. Temporary
16120 introduced to filter some tokens.
16121 (grub_script_yyerror): Print a newline.
16122
16123 * normal/main.c (read_config_file): Output information about the
16124 lines that contain errors. Wait for a key after all lines have
16125 been processed. Don't return an empty menu.
16126
16127 * normal/parser.y (func_mem): Don't initialize.
16128 (menu_entry): Likewise.
16129 (err): New variable.
16130 (script): Don't return anything when an error was encountered.
16131 (ws, returns): Removed rules.
16132 (argument): Disabled concatenated variable support.
16133 (arguments): Remove explicit separators.
16134 (grubcmd): Likewise.
16135 (function): Likewise.
16136 (menuentry): Likewise.
16137 (if): Likewise.
16138 (commands): Likewise. Add error handling.
16139
16140 * normal/script.c (grub_script_create_cmdline): If
16141 `grub_script_parsed' is 0, assume the parser encountered an error.
16142
16143 2006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
16144
16145 * configure.ac: Add support for EFI. Fix the typo
16146 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
16147
16148 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
16149
16150 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
16151 foreign multibyte characters should be shown correctly.
16152
16153 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
16154
16155 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
16156 calculation.
16157 (read_config_file): Made it to close file before returning.
16158
16159 2006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
16160
16161 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
16162 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
16163 video/i386/pc/vbefill.c.
16164
16165 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
16166 video/i386/pc/vbefill.c.
16167
16168 * include/grub/video.h (grub_video_blit_format): New enum.
16169 (grub_video_mode_info): Added new member blit_format.
16170 (grub_video_get_blit_format): New function prototype.
16171
16172 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
16173 function prototype.
16174 (grub_video_vbe_map_rgb): Likewise.
16175 (grub_video_vbe_unmap_color): Likewise.
16176
16177 * include/grub/i386/pc/vbeblit.h: New file.
16178
16179 * include/grub/i386/pc/vbefill.h: New file.
16180
16181 * video/video.c (grub_video_get_blit_format): New function.
16182 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
16183 (grub_video_vbe_map_rgb): Likewise.
16184 (grub_video_vbe_unmap_color): Likewise.
16185
16186 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
16187 optimized fills.
16188 (grub_video_vbe_blit_render_target): Changed to use more optimized
16189 blits.
16190 (grub_video_vbe_setup): Added detection for optimized settings.
16191 (grub_video_vbe_create_render_target): Likewise.
16192
16193 * video/i386/pc/vbeblit.c: New file.
16194
16195 * video/i386/pc/vbefill.c: New file.
16196
16197 2006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
16198
16199 * font/manager.c (grub_font_get_glyph): Removed font fixup from
16200 here...
16201
16202 * util/unifont2pff.rb: ... and moved it to here. Improved argument
16203 parsing to support both hex and dec ranges. If filename was missing
16204 show usage information.
16205
16206 2006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
16207
16208 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
16209 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
16210
16211 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
16212 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
16213 (video_mod_SOURCES): Added.
16214 (video_mod_CFLAGS): Likewise.
16215 (video_mod_LDFLAGS): Likewise.
16216 (gfxterm_mod_SOURCES): Likewise.
16217 (gfxterm_mod_CFLAGS): Likewise.
16218 (gfxterm_mod_LDFLAGS): Likewise.
16219 (videotest_mod_SOURCES): Likewise.
16220 (videotest_mod_CFLAGS): Likewise.
16221 (videotest_mod_LDFLAGS): Likewise.
16222 (vesafb_mod_SOURCES): Removed.
16223 (vesafb_mod_CFLAGS): Likewise.
16224 (vesafb_mod_LDFLAGS): Likewise.
16225 (vga_mod_SOURCES): Likewise.
16226 (vga_mod_CFLAGS): Likewise.
16227 (vga_mod_LDFLAGS): Likewise.
16228
16229 * commands/videotest.c: New file.
16230
16231 * font/manager.c (fill_with_default_glyph): Modified to use
16232 grub_font_glyph.
16233 (grub_font_get_glyph): Likewise.
16234 (fontmanager): Renamed from this...
16235 (font_manager): ... to this.
16236
16237 * include/grub/font.h (grub_font_glyph): Added new structure.
16238 (grub_font_get_glyph): Modified to use grub_font_glyph.
16239
16240 * include/grub/misc.h (grub_abs): Added as inline function.
16241
16242 * include/grub/video.h: New file.
16243
16244 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
16245 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
16246 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
16247 (grub_vbe_get_controller_info): Renamed from this...
16248 (grub_vbe_bios_get_controller_info): ... to this.
16249 (grub_vbe_get_mode_info): Renamed from this...
16250 (grub_vbe_bios_get_mode_info): ... to this.
16251 (grub_vbe_set_mode): Renamed from this...
16252 (grub_vbe_bios_set_mode): ... to this.
16253 (grub_vbe_get_mode): Renamed from this...
16254 (grub_vbe_bios_get_mode): ... to this.
16255 (grub_vbe_set_memory_window): Renamed from this...
16256 (grub_vbe_bios_set_memory_window): ... to this.
16257 (grub_vbe_get_memory_window): Renamed from this...
16258 (grub_vbe_bios_get_memory_window): ... to this.
16259 (grub_vbe_set_scanline_length): Renamed from this...
16260 (grub_vbe_set_scanline_length): ... to this.
16261 (grub_vbe_get_scanline_length): Renamed from this...
16262 (grub_vbe_bios_get_scanline_length): ... to this.
16263 (grub_vbe_set_display_start): Renamed from this...
16264 (grub_vbe_bios_set_display_start): ... to this.
16265 (grub_vbe_get_display_start): Renamed from this...
16266 (grub_vbe_bios_get_display_start): ... to this.
16267 (grub_vbe_set_palette_data): Renamed from this...
16268 (grub_vbe_bios_set_palette_data): ... to this.
16269 (grub_vbe_set_pixel_rgb): Removed.
16270 (grub_vbe_set_pixel_index): Likewise.
16271
16272 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
16273 from this...
16274 (grub_vbe_bios_get_controller_info): ... to this.
16275 (grub_vbe_get_mode_info): Renamed from this...
16276 (grub_vbe_bios_get_mode_info): ... to this.
16277 (grub_vbe_set_mode): Renamed from this...
16278 (grub_vbe_bios_set_mode): ... to this.
16279 (grub_vbe_get_mode): Renamed from this...
16280 (grub_vbe_bios_get_mode): ... to this.
16281 (grub_vbe_set_memory_window): Renamed from this...
16282 (grub_vbe_bios_set_memory_window): ... to this.
16283 (grub_vbe_get_memory_window): Renamed from this...
16284 (grub_vbe_bios_get_memory_window): ... to this.
16285 (grub_vbe_set_scanline_length): Renamed from this...
16286 (grub_vbe_set_scanline_length): ... to this.
16287 (grub_vbe_get_scanline_length): Renamed from this...
16288 (grub_vbe_bios_get_scanline_length): ... to this.
16289 (grub_vbe_set_display_start): Renamed from this...
16290 (grub_vbe_bios_set_display_start): ... to this.
16291 (grub_vbe_get_display_start): Renamed from this...
16292 (grub_vbe_bios_get_display_start): ... to this.
16293 (grub_vbe_set_palette_data): Renamed from this...
16294 (grub_vbe_bios_set_palette_data): ... to this.
16295 (grub_vbe_bios_get_controller_info): Fixed problem with registers
16296 getting corrupted after calling it. Added more pushes and pops.
16297 (grub_vbe_bios_set_mode): Likewise.
16298 (grub_vbe_bios_get_mode): Likewise.
16299 (grub_vbe_bios_get_memory_window): Likewise.
16300 (grub_vbe_bios_set_scanline_length): Likewise.
16301 (grub_vbe_bios_get_scanline_length): Likewise.
16302 (grub_vbe_bios_get_display_start): Likewise.
16303 (grub_vbe_bios_set_palette_data): Likewise.
16304
16305 * normal/cmdline.c (cl_set_pos): Refresh the screen.
16306 (cl_insert): Likewise.
16307 (cl_delete): Likewise.
16308
16309 * term/gfxterm.c: New file.
16310
16311 * term/i386/pc/vesafb.c: Removed file.
16312
16313 * video/video.c: New file.
16314
16315 * video/i386/pc/vbe.c (real2pm): Added new function.
16316 (grub_video_vbe_draw_pixel): Likewise.
16317 (grub_video_vbe_get_video_ptr): Likewise.
16318 (grub_video_vbe_get_pixel): Likewise
16319 (grub_video_vbe_init): Likewise.
16320 (grub_video_vbe_fini): Likewise.
16321 (grub_video_vbe_setup): Likewise.
16322 (grub_video_vbe_get_info): Likewise.
16323 (grub_video_vbe_set_palette): Likewise.
16324 (grub_video_vbe_get_palette): Likewise.
16325 (grub_video_vbe_set_viewport): Likewise.
16326 (grub_video_vbe_get_viewport): Likewise.
16327 (grub_video_vbe_map_color): Likewise.
16328 (grub_video_vbe_map_rgb): Likewise.
16329 (grub_video_vbe_map_rgba): Likewise.
16330 (grub_video_vbe_unmap_color): Likewise.
16331 (grub_video_vbe_fill_rect): Likewise.
16332 (grub_video_vbe_blit_glyph): Likewise.
16333 (grub_video_vbe_blit_bitmap): Likewise.
16334 (grub_video_vbe_blit_render_target): Likewise.
16335 (grub_video_vbe_scroll): Likewise.
16336 (grub_video_vbe_swap_buffers): Likewise.
16337 (grub_video_vbe_create_render_target): Likewise.
16338 (grub_video_vbe_delete_render_target): Likewise.
16339 (grub_video_vbe_set_active_render_target): Likewise.
16340 (grub_vbe_set_pixel_rgb): Remove function.
16341 (grub_vbe_set_pixel_index): Likewise.
16342 (index_color_mode): Remove static variable.
16343 (active_mode): Likewise.
16344 (framebuffer): Likewise.
16345 (bytes_per_scan_line): Likewise.
16346 (grub_video_vbe_adapter): Added new static variable.
16347 (framebuffer): Likewise.
16348 (render_target): Likewise.
16349 (initial_mode): Likewise.
16350 (mode_in_use): Likewise.
16351 (mode_list): Likewise.
16352
16353 2006-03-10 Marco Gerards <marco@gnu.org>
16354
16355 * configure.ac (AC_INIT): Bumped to 1.93.
16356
16357 * DISTLIST: Added `include/grub/hfs.h'.
16358
16359 2006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
16360
16361 * boot/i386/pc/boot.S (general_error): Before looping, try INT
16362 18H, which might help the BIOS falling back to next boot media.
16363
16364 2006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
16365
16366 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
16367 Poe Chen <poe.poechen@gmail.com>.
16368
16369 2006-01-17 Marco Gerards <marco@gnu.org>
16370
16371 * include/grub/normal.h: Include <grub/script.h>.
16372 (grub_command_list): Removed struct.
16373 (grub_command_list_t): Removed type.
16374 (grub_menu_entry): Remove members `num' and `command_list'. Add
16375 members `commands' and `sourcecode'.
16376 * include/grub/script.h: Add inclusion guards.
16377 (grub_script_cmd_menuentry): New struct.
16378 (grub_script_execute_menuentry): New prototype.
16379 (grub_script_lexer_record_start): Likewise.
16380 (grub_script_lexer_record_stop): Likewise.
16381 * normal/execute.c (grub_script_execute_menuentry): New function.
16382 * normal/lexer.c (record, recording, recordpos, recordlen): New
16383 variables.
16384 (grub_script_lexer_record_start): New function.
16385 (grub_script_lexer_record_stop): Likewise.
16386 (recordchar): Likewise.
16387 (nextchar): Likewise.
16388 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
16389 2048 as the buffer size. Add the tokens `menuentry' and `@'.
16390 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
16391 (current_menu): New variable.
16392 (free_menu): Mainly rewritten.
16393 (grub_normal_menu_addentry): New function.
16394 (read_config_file): Rewritten.
16395 * normal/menu.c (run_menu_entry): Mainly rewritten.
16396 * normal/menu_entry.c (make_screen): Rewritten the code to insert
16397 the menu entry.
16398 (run): Mainly rewritten.
16399 * normal/parser.y (menu_entry): New variable.
16400 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
16401 (menuentry): New rule.
16402 (command): Add `menuentry'.
16403 (if_statement): Allow additional returns before `fi'.
16404 * normal/script.c (grub_script_create_cmdmenu): New function.
16405
16406 2006-01-03 Marco Gerards <marco@gnu.org>
16407
16408 * INSTALL: GNU Bison is required.
16409 * configure.ac: Rewritten the test to detect Bison.
16410 * Makefile.in (YACC): New variable. Reported by Xun Sun
16411 <xun.sun.cn@gmail.com>.
16412
16413 2006-01-03 Marco Gerards <marco@gnu.org>
16414
16415 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
16416 the HFS+ filesystem to filesystem blocks.
16417 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
16418 GCC warning is silenced.
16419
16420 2006-01-03 Marco Gerards <marco@gnu.org>
16421
16422 * partmap/apple.c (apple_partition_map_iterate): Convert the data
16423 read from disk from big endian to host byte order.
16424
16425 2006-01-03 Hollis Blanchard <hollis@penguinppc.org>
16426
16427 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
16428 documentation.
16429 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
16430 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
16431 embedded HFS+ filesystem.
16432 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
16433 (grub_hfs_sblock): Move from here...
16434 * include/grub/hfs.h: To here... New file.
16435 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
16436 documentation.
16437 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
16438 New macros.
16439 (grub_hfsplus_volheader): Change type of member `magic' to
16440 `grub_uint16_t'.
16441 (grub_hfsplus_data): Add new member `embedded_offset'.
16442 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
16443 returned block.
16444 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
16445 Calculate the offset.
16446
16447 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
16448
16449 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
16450 Removed.
16451 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
16452
16453 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
16454
16455 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
16456 ENV->NAME is NULL after allocating ENV->VALUE.
16457
16458 2005-12-25 Marco Gerards <marco@gnu.org>
16459
16460 * kern/env.c (grub_env_set): Rewritten the error handling code.
16461
16462 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
16463
16464 * geninit.sh: Made more robust, and more portable.
16465
16466 2005-12-25 Marco Gerards <marco@gnu.org>
16467
16468 Add support for Apple HFS+ filesystems.
16469
16470 * fs/hfsplus.c: New file.
16471
16472 * DISTLIST: Added `fs/hfsplus.c'.
16473
16474 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
16475 (hfsplus_mod_SOURCES): New variable.
16476 (hfsplus_mod_CFLAGS): Likewise.
16477 (hfsplus_mod_LDFLAGS): Likewise.
16478 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
16479 (grub_setup_SOURCES): Likewise.
16480 (grub_mkdevicemap_SOURCES): Likewise.
16481 (grub_emu_SOURCES): Likewise.
16482 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
16483
16484 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
16485
16486 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
16487
16488 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
16489
16490 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
16491 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
16492 include/grub/parser.h, include/grub/script.h, kern/parser.c,
16493 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
16494 normal/lexer.c, normal/parser.y, normal/script.c, and
16495 partmap/gpt.c.
16496 Removed kern/sparc64/cache.c.
16497
16498 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
16499 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
16500 grub_emu_init.c.
16501
16502 * configure.ac (AC_INIT): Bumped to 1.92.
16503
16504 2005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
16505
16506 * kern/err.c (grub_error_push): Added new function to support error
16507 stacks.
16508 (grub_error_pop): Likewise.
16509 (grub_error_stack_items): New local variable to support error stacks.
16510 (grub_error_stack_pos): Likewise.
16511 (grub_error_stack_assert): Likewise.
16512 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
16513 stack depth.
16514 (grub_print_error): Added support to print errors from error stack.
16515
16516 * include/grub/err.h (grub_error_push): Added function prototype.
16517 (grub_error_pop): Likewise.
16518
16519 2005-12-09 Hollis Blanchard <hollis@penguinppc.org>
16520
16521 * configure.ac: Accept `powerpc64' as host_cpu.
16522 (amd64): Rename to `biarch32'.
16523
16524 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
16525 non-cacheline-aligned addresses.
16526
16527 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
16528 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
16529 if `size' is non-zero.
16530
16531 2005-12-03 Marco Gerards <mgerards@xs4all.nl>
16532
16533 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
16534 and `cd' to make sure the filename is not prefixed with a
16535 directory name.
16536 (pkgdata_MODULES): Add `gpt.mod'.
16537 (gpt_mod_SOURCES): New variable.
16538 (gpt_mod_CFLAGS): Likewise.
16539 (gpt_mod_LDFLAGS): Likewise.
16540
16541 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
16542
16543 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
16544 New macro.
16545
16546 * partmap/gpt.c: New file.
16547
16548 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
16549 GPT partition map is detected.
16550
16551 2005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
16552
16553 * commands/i386/pc/play.c: New file.
16554 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
16555 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
16556 macros.
16557
16558 2005-11-27 Marco Gerards <mgerards@xs4all.nl>
16559
16560 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
16561 ((unused))' to silence gcc warning.
16562
16563 2005-11-26 Hollis Blanchard <hollis@penguinppc.org>
16564
16565 * configure.ac: Correct `AC_PROG_YACC' test.
16566
16567 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
16568
16569 * util/powerpc/ieee1275/grub-install.in: Run the mount point
16570 check before installing files.
16571
16572 2005-11-22 Mike Small <smallm@panix.com>
16573
16574 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
16575 number regex so multidigit numbers are recognized correctly.
16576
16577 2005-11-22 Mike Small <smallm@panix.com>
16578
16579 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
16580 debugging message before attempting to claim memory.
16581 (grub_rescue_cmd_initrd): Add a claim debugging message and try
16582 multiple addresses in case of failure.
16583
16584 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
16585
16586 * term/tparm.c (get_space): Remove empty `if' statement.
16587
16588 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
16589
16590 * kern/parser.c (check_varstate): Rename `state' to 's'.
16591
16592 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
16593
16594 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
16595 variable definitions to the beginning of each function. Sort stack
16596 variables by size.
16597 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
16598 `buf' argument to `char *'.
16599
16600 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
16601
16602 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
16603 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
16604 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
16605 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
16606 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
16607 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
16608 configfile.mod, search.mod, gzio.mod and test.mod.
16609 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
16610 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
16611 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
16612 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
16613 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
16614 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
16615 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
16616 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
16617 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
16618 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
16619 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
16620 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
16621 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
16622 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
16623 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
16624 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
16625 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
16626 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
16627 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
16628 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
16629 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
16630 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
16631 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
16632
16633 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
16634 `grep --include'.
16635 (pkgdata_MODULES): Add test.mod.
16636
16637 2005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
16638
16639 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
16640 appending to variables with "+=".
16641 (PModule): Use full pathname to generate *.lst filenames.
16642
16643 * Makefile.in: Fixed list rules moved from genmk.rb.
16644 (.DELETE_ON_ERROR): New special target.
16645 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
16646
16647 * conf/i386-pc.rmk: Include conf/common.mk.
16648 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
16649 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
16650 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
16651 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
16652 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
16653 configfile.mod, search.mod, gzio.mod and test.mod.
16654 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
16655 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
16656 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
16657 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
16658 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
16659 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
16660 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
16661 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
16662 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
16663 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
16664 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
16665 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
16666 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
16667 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
16668 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
16669 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
16670 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
16671 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
16672 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
16673 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
16674 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
16675 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
16676 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
16677 here...
16678 * conf/common.rmk: ... to here. New file.
16679
16680 * conf/common.mk: New file.
16681
16682 2005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
16683
16684 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
16685 (grub_script.tab.c): ... here.
16686
16687 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
16688 (grub_script.tab.c): ... here.
16689
16690 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
16691 (grub_script.tab.c): ... here.
16692
16693 * normal/command.c (grub_command_find): Fixed a memory leak of
16694 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
16695
16696 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
16697
16698 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
16699 "@" which marks the start of a comment on ARM.
16700 (VARIABLE): Likewise.
16701
16702 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
16703
16704 Add support for Linux/ADFS partition tables.
16705
16706 * partmap/acorn.c: New file.
16707
16708 * include/grub/acorn_filecore.h: Likewise.
16709
16710 * DISTLIST: Added `partmap/acorn.c' and
16711 `include/grub/acorn_filecore.h'.
16712
16713 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
16714 `partmap/acorn.c'.
16715 (pkgdata_MODULES): Add `acorn.mod'.
16716 (acorn_mod_SOURCES): New variable.
16717 (acorn_mod_CFLAGS): Likewise.
16718
16719 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
16720 `partmap/acorn.c'.
16721 (pkgdata_MODULES): Add `acorn.mod'.
16722 (acorn_mod_SOURCES): New variable.
16723 (acorn_mod_CFLAGS): Likewise.
16724
16725 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
16726 (pkgdata_MODULES): Add `acorn.mod'.
16727 (acorn_mod_SOURCES): New variable.
16728 (acorn_mod_CFLAGS): Likewise.
16729 (acorn_mod_LDFLAGS): Likewise.
16730
16731 * include/types.h (grub_disk_addr_t): New typedef.
16732
16733 2005-11-13 Marco Gerards <mgerards@xs4all.nl>
16734
16735 * geninit.sh: New file.
16736
16737 * geninitheader.sh: Likewise.
16738
16739 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
16740 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
16741 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
16742 * commands/configfile.c (grub_configfile_init)
16743 (grub_configfile_fini): Likewise.
16744 * commands/default.c (grub_default_init, grub_default_fini):
16745 Likewise.
16746 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
16747 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
16748 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
16749 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
16750 Likewise.
16751 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
16752 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
16753 Likewise.
16754 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
16755 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
16756 Likewise.
16757 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
16758 Likewise.
16759 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
16760 Likewise.
16761 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
16762 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
16763 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
16764 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
16765 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
16766 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
16767 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
16768 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
16769 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
16770 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
16771 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
16772 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
16773 * partmap/amiga.c (grub_amiga_partition_map_init)
16774 (grub_amiga_partition_map_fini): Likewise.
16775 * partmap/apple.c (grub_apple_partition_map_init)
16776 (grub_apple_partition_map_fini): Likewise.
16777 * partmap/pc.c (grub_pc_partition_map_init)
16778 (grub_pc_partition_map_fini): Likewise.
16779 * partmap/sun.c (grub_sun_partition_map_init,
16780 grub_sun_partition_map_fini): Likewise.
16781 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
16782 Likewise.
16783
16784 * util/grub-emu.c: Include <grub_modules_init.h>.
16785 (main): Don't initialize and de-initialize any modules directly,
16786 use `grub_init_all' and `grub_fini_all' instead.
16787
16788 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
16789 `grub_vesafb_mod_init'.
16790 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
16791 all users.
16792 * term/i386/pc/vga.c (grub_vga_init): Renamed to
16793 `grub_vga_mod_init'. Updated all users.
16794 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
16795
16796 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
16797 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
16798 rules.
16799
16800 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
16801 Generate a function to initialize the module in utilities.
16802 Updated all callers.
16803 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
16804 initialize the module in utilities. Updated all callers.
16805
16806 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
16807
16808 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
16809 escape sequence and a literal ^L to clear the screen.
16810
16811 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
16812 when returning from Open Firmware.
16813
16814 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
16815
16816 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
16817 (grub_ofconsole_height): Likewise.
16818 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
16819 manually insert a '\n'.
16820 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
16821 `grub_ofconsole_height'. Return early if these are already set.
16822
16823 2005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
16824
16825 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
16826 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
16827 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
16828 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
16829 and `normal/script.c'.
16830 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
16831 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
16832 (test_mod_SOURCES): New variable.
16833 (test_mod_CFLAGS): Likewise.
16834 (test_mod_LDFLAGS): Likewise.
16835 (pkgdata_MODULES): Add `test.mod'.
16836 (grub_script.tab.c): New rule.
16837 (grub_script.tab.h): Likewise.
16838
16839 2005-11-07 Marco Gerards <mgerards@xs4all.nl>
16840
16841 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
16842 `commands/test.c', `normal/execute.c', `normal/lexer.c',
16843 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
16844 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
16845 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
16846 (test_mod_SOURCES): New variable.
16847 (test_mod_CFLAGS): Likewise.
16848 (pkgdata_MODULES): Add `test.mod'.
16849 (grub_script.tab.c): New rule.
16850 (grub_script.tab.h): Likewise.
16851
16852 2005-11-06 Marco Gerards <mgerards@xs4all.nl>
16853
16854 Add initial scripting support.
16855
16856 * commands/test.c: New file.
16857 * include/grub/script.h: Likewise.
16858 * normal/execute.c: Likewise.
16859 * normal/function.c: Likewise.
16860 * normal/lexer.c: Likewise.
16861 * normal/parser.y: Likewise.
16862 * normal/script.c: Likewise.
16863
16864 * configure.ac: Add `AC_PROG_YACC' test.
16865
16866 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
16867 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
16868 `normal/function.c' and `normal/script.c'.
16869 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
16870 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
16871 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
16872 variables.
16873 (pkgdata_MODULES): Add `test.mod'.
16874 (grub_script.tab.c): New rule.
16875 (grub_script.tab.h): Likewise.
16876
16877 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
16878
16879 * include/grub/normal.h (grub_test_init): New prototype.
16880 (grub_test_fini): Likewise.
16881
16882 * normal/command.c: Include <grub/script.h>.
16883 (grub_command_execute): Rewritten.
16884
16885 * util/grub-emu.c (main): Call `grub_test_init' and
16886 `grub_test_fini'.
16887
16888 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
16889
16890 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
16891 to 0.
16892 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
16893 there are no pending characters.
16894
16895 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
16896
16897 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
16898 `grub_strndup' to drop device arguments. Replace unnecessary
16899 `grub_strndup' with `grub_strdup'.
16900
16901 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
16902
16903 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
16904 `debug' environment variable has been set.
16905
16906 2005-11-02 Hollis Blanchard <hollis@penguinppc.org>
16907
16908 * Makefile.in (install-local): Use $(DATA).
16909 (uninstall): Likewise.
16910 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
16911 (sbin_UTILITIES): ... to here.
16912 (sbin_SCRIPTS): New variable.
16913 (grub_install_SOURCES): New variable.
16914 * util/powerpc/ieee1275/grub-install.in: New file.
16915 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
16916 variable.
16917 (add_segments): Call `grub_util_get_path'.
16918
16919 2005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
16920
16921 From Timothy Baldwin:
16922 * commands/ls.c (grub_ls_list_files): Close FILE with
16923 grub_file_close.
16924 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
16925
16926 2005-10-24 Marco Gerards <mgerards@xs4all.nl>
16927
16928 * include/grub/parser.h: New file.
16929
16930 * kern/parser.c: Likewise.
16931
16932 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
16933 (grub_setup_SOURCES): Likewise.
16934 (grub_probefs_SOURCES): Likewise.
16935 (grub_emu_SOURCES): Likewise.
16936 (kernel_img_HEADERS): Add `parser.h'.
16937
16938 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
16939 (grub_emu_SOURCES): Add `kern/parser.c'.
16940 (grubof_SOURCES): Likewise.
16941
16942 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
16943 (grubof_SOURCES): Add `kern/parser.c'.
16944
16945 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
16946
16947 * kern/misc.c (grub_split_cmdline): Removed function.
16948
16949 * kern/rescue.c: Include <grub/parser.h>.
16950 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
16951 of `grub_split_cmdline'.
16952
16953 * normal/command.c: Include <grub/parser.h>.
16954 (grub_command_execute): Use `grub_parser_split_cmdline' instead
16955 of `grub_split_cmdline'.
16956
16957 * normal/completion.c: Include <grub/parser.h>.
16958 (cmdline_state): New variable.
16959 (iterate_dir): End the filename with a quote depending on the
16960 command line state.
16961 (get_state): new function.
16962 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
16963 split the arguments and determine the current argument. When the
16964 argument string is not quoted, escape all spaces.
16965
16966 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
16967
16968 * normal/sparc64/setjmp.S: New file.
16969
16970 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
16971
16972 * include/grub/sparc64/libgcc.h: New file.
16973 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
16974 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
16975 normal/sparc64/setjmp.c.
16976
16977 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
16978
16979 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
16980 * kern/sparc64/cache.S: New file.
16981 * kern/sparc64/cache.c: Removed.
16982 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
16983 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
16984 -mtune=ultrasparc.
16985 (COMMON_LDFLAGS): Add -melf64_sparc.
16986 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
16987 (grubof_SOURCES): Use cache.S instead of cache.c.
16988 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
16989 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
16990 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
16991 commented though.
16992 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
16993 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
16994 (linux_mod_CFLAGS): Commented out.
16995 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
16996 out because module isn't built.
16997 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
16998 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
16999 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
17000 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
17001 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
17002 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
17003 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
17004 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
17005 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
17006 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
17007 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
17008 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
17009 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
17010 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
17011
17012 2005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
17013
17014 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
17015 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
17016 longer, because HFS should not be used on PC.
17017
17018 2005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
17019
17020 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
17021 consistently within the loop.
17022
17023 2005-10-15 Marco Gerards <mgerards@xs4all.nl>
17024
17025 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
17026 directory can not be read.
17027
17028 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
17029
17030 * configure.ac (AC_INIT): Increase the version number to 1.91.
17031
17032 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
17033 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
17034 term/i386/pc/serial.c.
17035
17036 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
17037
17038 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
17039 file size must be permitted.
17040
17041 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
17042 between %ah and %al.
17043
17044 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
17045
17046 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
17047 grub_uint64_t.
17048 Call the hook with a NUL-terminated filename.
17049 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
17050 grub_cpu_to_be32.
17051
17052 * kern/term.c (cursor_state): New variable.
17053 (grub_term_set_current): Reset the cursor state on a new
17054 terminal.
17055 (grub_setcursor): Rewritten to use CURSOR_STATE.
17056 (grub_getcursor): New function.
17057
17058 * include/grub/term.h (grub_getcursor): New prototype.
17059
17060 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
17061 integers on ARM. Reported by Timothy Baldwin
17062 <T.E.Baldwin99@members.leeds.ac.uk>.
17063
17064 2005-10-11 Marco Gerards <mgerards@xs4all.nl>
17065
17066 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
17067 allocated.
17068 (grub_sfs_dir): Likewise.
17069
17070 2005-10-09 Marco Gerards <mgerards@xs4all.nl>
17071
17072 Add support for the SFS filesystem.
17073
17074 * fs/sfs.c: New file.
17075
17076 * DISTLIST: Added `fs/sfs.c'.
17077
17078 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
17079 (grub_probefs_SOURCES): Likewise.
17080 (grub_emu_SOURCES): Likewise.
17081 (pkgdata_MODULES): Add `sfs.mod'.
17082 (sfs_mod_SOURCES): New variable.
17083 (sfs_mod_CFLAGS): Likewise.
17084 (sfs_mod_LDFLAGS): Likewise.
17085
17086 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
17087 (pkgdata_MODULES): Add `sfs.mod'.
17088 (sfs_mod_SOURCES): New variable.
17089 (sfs_mod_CFLAGS): Likewise.
17090
17091 * util/grub-emu.c (main): Call `grub_sfs_init' and
17092 `grub_sfs_fini'.
17093
17094 * include/grub/fs.h (grub_sfs_init): New prototype.
17095 (grub_sfs_fini): Likewise.
17096
17097 2005-10-07 Marco Gerards <mgerards@xs4all.nl>
17098
17099 Add support for the AFFS filesystem.
17100
17101 * fs/affs.c: New file.
17102
17103 * DISTLIST: Added `fs/affs.c'.
17104
17105 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
17106 (grub_probefs_SOURCES): Likewise.
17107 (grub_emu_SOURCES): Likewise.
17108 (pkgdata_MODULES): Add `affs.mod'.
17109 (affs_mod_SOURCES): New variable.
17110 (affs_mod_CFLAGS): Likewise.
17111 (affs_mod_LDFLAGS): Likewise.
17112
17113 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
17114 (pkgdata_MODULES): Add `affs.mod'.
17115 (affs_mod_SOURCES): New variable.
17116 (affs_mod_CFLAGS): Likewise.
17117
17118 * util/grub-emu.c (main): Call `grub_affs_init' and
17119 `grub_affs_fini'.
17120
17121 * include/grub/fs.h (grub_affs_init): New prototype.
17122 (grub_affs_fini): Likewise.
17123
17124 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
17125
17126 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
17127
17128 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
17129
17130 * configure.ac: Accept `x86_64' as host_cpu. In that case add
17131 `-m32' to CFLAGS.
17132
17133 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
17134 linking.
17135
17136 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
17137 (COMMON_LDFLAGS): New variable.
17138 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
17139 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
17140 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
17141 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
17142 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
17143 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
17144 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
17145 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
17146 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
17147 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
17148 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
17149 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
17150 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
17151 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
17152 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
17153 variables.
17154 (normal_mod_ASFLAGS): Add `-m32'.
17155
17156 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
17157 (grub_host_size_t, grub_host_ssize_t): New types.
17158 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
17159 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
17160 `GRUB_HOST_SIZEOF_VOID_P'.
17161
17162 * include/grub/kernel.h (struct grub_module_header): Type of
17163 member offset changed to `grub_host_off_t'. Type of member size
17164 changed to `grub_host_size_t'.
17165 (struct grub_module_info): Type of member offset changed to
17166 `grub_host_off_t'. Type of member size changed to
17167 `grub_host_size_t'.
17168
17169 2005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
17170
17171 Make GRUB's kernel compliant to Multiboot Specification.
17172
17173 * kern/i386/pc/startup.S (multiboot_header): New label.
17174 (multiboot_entry): Likewise.
17175 (multiboot_trampoline): Likewise.
17176
17177 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
17178 Increased to 0x4A0.
17179
17180 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
17181 put parentheses after a question mark.
17182 [!GRUB_UTIL] (my_mod): New variable.
17183
17184 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
17185
17186 2005-09-28 Marco Gerards <mgerards@xs4all.nl>
17187
17188 Adds support for the XFS filesystem. Btrees are not supported
17189 yet.
17190
17191 * fs/xfs.c: New file.
17192
17193 * DISTLIST: Added `fs/xfs.c'.
17194
17195 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
17196 (grub_probefs_SOURCES): Likewise.
17197 (grub_emu_SOURCES): Likewise.
17198 (pkgdata_MODULES): Add `xfs.mod'.
17199 (xfs_mod_SOURCES): New variable.
17200 (xfs_mod_CFLAGS): Likewise.
17201
17202 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
17203 (pkgdata_MODULES): Add `xfs.mod'.
17204 (xfs_mod_SOURCES): New variable.
17205 (xfs_mod_CFLAGS): Likewise.
17206
17207 * util/grub-emu.c (main): Call `grub_xfs_init' and
17208 `grub_xfs_fini'.
17209
17210 * include/grub/fs.h (grub_xfs_init): New prototype.
17211 (grub_xfs_fini): Likewise.
17212
17213
17214 2005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
17215
17216 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
17217 color modes, allow greater than 16 colors to be configured as
17218 a default palette.
17219
17220 2005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
17221
17222 * normal/completion.c (complete_arguments): Add the qualifier
17223 const into OPTIONS.
17224
17225 From Omniflux <omniflux+lists@omniflux.com>:
17226 * include/grub/terminfo.h: New file.
17227 * include/grub/tparm.h: Likewise.
17228 * include/grub/i386/pc/serial.h: Likewise.
17229 * term/terminfo.c: Likewise.
17230 * term/tparm.c: Likewise.
17231 * term/i386/pc/serial.c: Likewise.
17232 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
17233 serial.mod.
17234 (terminfo_mod_SOURCES): New variable.
17235 (terminfo_mod_CFLAGS): Likewise.
17236 (serial_mod_SOURCES): Likewise.
17237 (serial_mod_CFLAGS): Likewise.
17238
17239 2005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
17240
17241 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
17242 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
17243 and kern/powerpc/ieee1275/cmain.c, respectively.
17244
17245 * boot/powerpc/ieee1275/crt0.S: Moved to ...
17246 * kern/powerpc/ieee1275/crt0.S: ... here.
17247
17248 * boot/powerpc/ieee1275/cmain.c: Moved to ...
17249 * kern/powerpc/ieee1275/cmain.c: ... here.
17250
17251 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
17252 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
17253 instead of boot/powerpc/ieee1275/crt0.S and
17254 boot/powerpc/ieee1275/cmain.c, respectively.
17255
17256 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
17257 sectors. It was not used anyway.
17258
17259 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
17260
17261 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
17262 `unused parameter' warning.
17263
17264 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
17265
17266 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
17267 function.
17268 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
17269 getcharwidth.
17270
17271 2005-08-28 Marco Gerards <metgerards@student.han.nl>
17272
17273 * include/grub/normal.h (enum grub_completion_type): Added
17274 `GRUB_COMPLETION_TYPE_ARGUMENT'.
17275
17276 * normal/cmdline.c (print_completion): Handle
17277 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
17278 * normal/menu_entry.c (store_completion): Likewise.
17279
17280 * normal/completion.c (complete_arguments): New function.
17281 (grub_normal_do_completion): Call `complete_arguments' when the
17282 current words start with a dash.
17283
17284 2005-08-27 Marco Gerards <metgerards@student.han.nl>
17285
17286 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
17287 `gzio.mod' instead of `io.mod').
17288
17289 2005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
17290
17291 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
17292 (DISTDIRS): Added io and video.
17293 Rewrite the search routine to make an output consistently.
17294
17295 * DISTLIST: Added conf/sparc64-ieee1275.mk,
17296 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
17297 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
17298 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
17299 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
17300 util/powerpc/ieee1275/misc.c.
17301
17302 * include/grub/gzio.h: New file.
17303 * io/gzio.c: Likewise.
17304
17305 * kern/file.c (grub_file_close): Call grub_device_close only if
17306 FILE->DEVICE is not NULL.
17307
17308 * include/grub/mm.h [!NULL] (NULL): New macro.
17309
17310 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
17311
17312 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
17313 (pkgdata_MODULES): Added gzio.mod.
17314 (gzio_mod_SOURCES): New variable.
17315 (gzio_mod_CFLAGS): Likewise.
17316
17317 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
17318 (pkgdata_MODULES): Added gzio.mod.
17319 (gzio_mod_SOURCES): New variable.
17320 (gzio_mod_CFLAGS): Likewise.
17321
17322 * commands/cat.c: Include grub/gzio.h.
17323 (grub_cmd_cat): Use grub_gzfile_open instead of
17324 grub_file_open.
17325
17326 * commands/cmp.c: Include grub/gzio.h.
17327 (grub_cmd_cmp): Use grub_gzfile_open instead of
17328 grub_file_open.
17329
17330 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
17331 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
17332 grub_file_open.
17333 (grub_rescue_cmd_module): Likewise.
17334
17335 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
17336
17337 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
17338 kern/sparc64/ieee1275/init.c because it contains _start.
17339 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
17340
17341 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
17342
17343 * configure.ac: Add support for sparc64 host with ieee1275
17344 firmware.
17345 * configure: Generated from configure.ac.
17346 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
17347 instead of int.
17348 (grub_ofdisk_read): Likewise.
17349 (grub_ofdisk_open): Use %p to print pointer values, and cast the
17350 pointers as (void *) to remove a warning.
17351 (grub_ofdisk_close): Likewise.
17352 (grub_ofdisk_read): Likewise.
17353 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
17354 returns, so make it return void to remove a warning.
17355 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
17356 Corresponding prototype change.
17357 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
17358 values, and cast the pointers as (void *) to remove a warning.
17359 (grub_mm_dump): Likewise.
17360 * conf/sparc64-ieee1275.mk: New file.
17361 * conf/sparc64-ieee1275.rmk: Likewise.
17362 * include/grub/sparc64/setjmp.h: Likewise.
17363 * include/grub/sparc64/types.h: Likewise.
17364 * include/grub/sparc64/ieee1275/console.h: Likewise.
17365 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
17366 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
17367 * include/grub/sparc64/ieee1275/time.h: Likewise.
17368 * kern/sparc64/cache.c: Likewise.
17369 * kern/sparc64/dl.c: Likewise.
17370 * kern/sparc64/ieee1275/init.c: Likewise.
17371 * kern/sparc64/ieee1275/openfw.c: Likewise.
17372
17373 2005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
17374
17375 * util/console.c (grub_ncurses_putchar): If C is greater than
17376 0x7f, set C to a question mark.
17377 (grub_ncurses_getcharwidth): New function.
17378 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
17379 getcharwidth.
17380
17381 * normal/menu.c (print_entry): Made aware of Unicode. First,
17382 convert TITLE to UCS-4, and predict the cursor position by
17383 grub_getcharwidth.
17384
17385 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
17386 const to SRC.
17387 * kern/misc.c (grub_utf16_to_utf8): Likewise.
17388
17389 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
17390
17391 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
17392 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
17393 grub_strcat.
17394
17395 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
17396 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
17397 grub_strcpy and grub_strlen. Take it into account that a space
17398 character is inserted as a delimiter.
17399
17400 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
17401
17402 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
17403 invalid magic in the error.
17404
17405 * commands/search.c: New file.
17406
17407 * util/grub-emu.c (main): Call grub_search_init and
17408 grub_search_fini.
17409
17410 * kern/rescue.c (grub_rescue_print_disks): Removed.
17411 (grub_rescue_print_devices): New function.
17412 (grub_rescue_cmd_ls): Use grub_device_iterate with
17413 grub_rescue_print_devices instead of grub_disk_dev_iterate with
17414 grub_rescue_print_disks.
17415
17416 * kern/partition.c (grub_partition_iterate): Return the result of
17417 PARTMAP->ITERATE instead of GRUB_ERRNO.
17418
17419 * kern/device.c: Include grub/partition.h.
17420 (grub_device_iterate): New function.
17421
17422 * include/grub/partition.h (grub_partition_iterate): Return int
17423 instead of grub_err_t.
17424
17425 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
17426 prototype.
17427 [GRUB_UTIL] (grub_search_fini): Likewise.
17428
17429 * include/grub/device.h (grub_device_iterate): New prototype.
17430
17431 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
17432 commands/search.c.
17433 (pkgdata_MODULES): Added search.mod.
17434 (search_mod_SOURCES): New variable.
17435 (search_mod_CFLAGS): Likewise.
17436
17437 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
17438 (pkgdata_MODULES): Added search.mod.
17439 (search_mod_SOURCES): New variable.
17440 (search_mod_CFLAGS): Likewise.
17441
17442 * commands/ls.c (grub_ls_list_disks): Renamed to ...
17443 (grub_ls_list_devices): ... this, and use grub_device_iterate.
17444 All callers changed.
17445
17446 * DISTLIST: Added commands/search.c.
17447
17448 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
17449
17450 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
17451 conversion.
17452 (grub_getcharwidth): New function.
17453
17454 * kern/misc.c (grub_utf8_to_ucs4): New function.
17455
17456 * include/grub/term.h (struct grub_term): Added a new member
17457 "getcharwidth".
17458 (grub_getcharwidth): New prototype.
17459
17460 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
17461
17462 * term/i386/pc/console.c (map_char): New function. Segregated from
17463 grub_console_putchar.
17464 (grub_console_putchar): Use map_char.
17465 (grub_console_getcharwidth): New function.
17466 (grub_console_term): Specified grub_console_getcharwidth as
17467 getcharwidth.
17468
17469 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
17470 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
17471
17472 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
17473 GRUB_ERRNO.
17474 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
17475 on grub_strtoul completely.
17476 (write_char): Declare local variables in the beginning of the
17477 function.
17478 (grub_vesafb_getcharwidth): New function.
17479 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
17480 getcharwidth.
17481
17482 2005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
17483
17484 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
17485 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
17486 commands/i386/pc/vbetest.c.
17487
17488 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
17489 call grub_vbe_get_controller_info again, because the returned
17490 information is volatile.
17491 (grub_vbe_set_video_mode): Mostly rewritten.
17492 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
17493 grub_vbe_status_t correctly.
17494 (grub_vbe_get_video_mode_info): Likewise.
17495 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
17496 several if statements.
17497
17498 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
17499 * commands/i386/pc/vbeinfo.c: ... this.
17500
17501 * commands/i386/pc/vbe_test.c: Renamed to ...
17502 * commands/i386/pc/vbetest.c: ... this.
17503
17504 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
17505 ...
17506 (grub_cmd_vbeinfo): ... this. Save video modes before
17507 iterating. Skip a video mode, if it is not available, not enough
17508 information is given or it is monochrome. Show the memory
17509 model. Leave the interpretation of MODEVAR to grub_strtoul
17510 completely.
17511 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
17512 (GRUB_MOD_FINI): Likewise.
17513
17514 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
17515 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
17516 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
17517 duplicated grub_env_get. Leave the interpretation of MODEVAR to
17518 grub_strtoul completely.
17519 (real2pm): Removed.
17520 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
17521 (GRUB_MOD_FINI): Likewise.
17522
17523 * normal/misc.c: Include grub/mm.h.
17524
17525 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
17526 vbe_list_modes with vbetest.mod and vbeinfo.mod.
17527 (vbe_list_modes_mod_SOURCES): Removed.
17528 (vbe_list_modes_mod_CFLAGS): Likewise.
17529 (vbe_test_mod_SOURCES): Likewise.
17530 (vbe_test_mod_CFLAGS): Likewise.
17531 (vbeinfo_mod_SOURCES): New variable.
17532 (vbeinfo_mod_CFLAGS): Likewise.
17533 (vbetest_mod_SOURCES): Likewise.
17534 (vbetest_mod_CFLAGS): Likewise.
17535
17536 2005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
17537
17538 * normal/misc.c: New file.
17539
17540 * DISTLIST: Added normal/misc.c.
17541
17542 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
17543 DISK to HOOK. Call HOOK with DISK.
17544 * partmap/apple.c (apple_partition_map_iterate): Likewise.
17545 * partmap/pc.c (pc_partition_map_iterate): Likewise.
17546 * partmap/sun.c (sun_partition_map_iterate): Likewise.
17547
17548 * normal/menu_entry.c (struct screen): Added a new member
17549 "completion_shown".
17550 (completion_buffer): New global variable.
17551 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
17552 (store_completion): New function.
17553 (complete): Likewise.
17554 (clear_completions): Likewise.
17555 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
17556 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
17557 a tab, call complete.
17558
17559 * normal/completion.c (disk_dev): Removed.
17560 (print_simple_completion): Likewise.
17561 (print_partition_completion): Likewise.
17562 (print_func): New global variable.
17563 (add_completion): Do not take the arguments WHAT or PRINT any
17564 longer. Added a new argument TYPE. Instead of printing directly,
17565 call PRINT_FUNC if not NULL.
17566 All callers changed.
17567 (complete_device): Use a local variable DEV instead of
17568 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
17569 (grub_normal_do_completion): Take a new argument HOOK. Do not
17570 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
17571 empty string, return NULL instead.
17572 All callers changed.
17573
17574 * normal/cmdline.c (print_completion): New function.
17575
17576 * kern/partition.c (grub_partition_iterate): Add an argument DISK
17577 to HOOK.
17578 All callers changed.
17579
17580 * kern/disk.c (grub_print_partinfo): Removed.
17581
17582 * include/grub/partition.h (struct grub_partition_map): Add a new
17583 argument DISK into HOOK of ITERATE.
17584 (grub_partition_iterate): Add a new argument DISK to HOOK.
17585
17586 * include/grub/normal.h (enum grub_completion_type): New enum.
17587 (grub_completion_type_t): New type.
17588 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
17589 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
17590 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
17591 (GRUB_COMPLETION_TYPE_FILE): Likewise.
17592 (grub_normal_do_completion): Added a new argument HOOK.
17593 (grub_normal_print_device_info): New prototype.
17594
17595 * include/grub/disk.h (grub_print_partinfo): Removed.
17596
17597 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
17598 (normal_mod_SOURCES): Likewise.
17599 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
17600 (normal_mod_SOURCES): Likewise.
17601
17602 * commands/ls.c (grub_ls_list_disks): Use
17603 grub_normal_print_device_info instead of grub_print_partinfo. Free
17604 PNAME.
17605 (grub_ls_list_files): Use grub_normal_print_device_info instead of
17606 duplicating the code.
17607
17608 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
17609
17610 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
17611 follow GCS more precisely.
17612 * commands/i386/pc/vbe_test.c: Likewise.
17613 * include/grub/i386/pc/vbe.h: Likewise.
17614 * term/i386/pc/vesafb.c: Likewise.
17615 * video/i386/pc/vbe.c: Likewise.
17616
17617 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
17618
17619 * DISTLIST: Added term/i386/pc/vesafb.c
17620 DISTLIST: Added video/i386/pc/vbe.c
17621 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
17622 DISTLIST: Added commands/i386/pc/vbe_test.c.
17623 * commands/i386/pc/vbe_list_modes.c: New file.
17624 * commands/i386/pc/vbe_test.c: Likewise.
17625 * term/i386/pc/vesafb.c: Likewise.
17626 * video/i386/pc/vbe.c: Likewise.
17627 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
17628 (grub_vbe_probe) Added prototype.
17629 (grub_vbe_set_video_mode) Likewise.
17630 (grub_vbe_get_video_mode) Likewise.
17631 (grub_vbe_get_video_mode_info) Likewise.
17632 (grub_vbe_set_pixel_rgb) Likewise.
17633 (grub_vbe_set_pixel_index) Likewise.
17634 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
17635 (pkgdata_MODULES): Added vesafb.mod.
17636 (pkgdata_MODULES): Added vbe_list_modes.mod.
17637 (pkgdata_MODULES): Added vbe_test.mod.
17638 (vbe_mod_SOURCES): Added.
17639 (vbe_mod_CFLAGS): Likewise.
17640 (vesafb_mod_SOURCES): Likewise.
17641 (vesafb_mod_CFLAGS): Likewise.
17642 (vbe_list_modes_mod_SOURCES): Likewise.
17643 (vbe_list_modes_mod_CFLAGS): Likewise.
17644 (vbe_test_mod_SOURCES): Likewise.
17645 (vbe_test_mod_CFLAGS): Likewise.
17646
17647 2005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
17648
17649 * normal/command.c (grub_command_execute): If INTERACTIVE is
17650 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
17651 CMDLINE. Disable the pager if INTERACTIVE is true.
17652 All callers are changed.
17653
17654 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
17655 before reading a config file.
17656 * normal/main.c (read_config_file): Even if a command is not
17657 found, register it if it is within an entry.
17658
17659 * util/grub-emu.c: Include sys/types.h and unistd.h.
17660 (options): Added --hold.
17661 (struct arguments): Added a new member "hold".
17662 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
17663 missing.
17664 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
17665 cleared by a debugger, if it is not zero.
17666
17667 * include/grub/normal.h (grub_command_execute): Add an argument
17668 INTERACTIVE.
17669
17670 2005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
17671
17672 * DISTLIST: Added include/grub/i386/pc/vbe.h.
17673
17674 2005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
17675
17676 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
17677 program with another one, because the old one didn't detect a bug
17678 in gcc-3.4. Always use regparm 2, because the new test is still
17679 not enough for gcc-4.0. Someone must investigate a simple test
17680 case which detects a bug in gcc-4.0.
17681
17682 2005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
17683
17684 * DISTLIST: Added normal/completion.c.
17685
17686 * normal/completion.c: New file.
17687
17688 * term/i386/pc/console.c (grub_console_getwh): New function.
17689 (grub_console_term): Assign grub_console_getwh to getwh.
17690
17691 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
17692 function is defined in normal/completion.c as
17693 grub_normal_do_completion.
17694 (grub_cmdline_get): Use grub_normal_do_completion instead of
17695 grub_tab_complete.
17696
17697 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
17698 returns non-zero, otherwise return 0.
17699 (grub_partition_iterate): First, probe the partition map. Then,
17700 call ITERATE only for this partition map.
17701
17702 * kern/misc.c (grub_strncmp): Rewritten.
17703
17704 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
17705 returns non-zero. Otherwise return 0.
17706
17707 * include/grub/partition.h (grub_partition_map_iterate): Return
17708 int instead of void.
17709
17710 * include/grub/normal.h (grub_normal_do_completion): New prototype.
17711
17712 * include/grub/misc.h (grub_strncmp): Change the type of N to
17713 grub_size_t.
17714
17715 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
17716 of void.
17717
17718 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
17719 unsigned explicitly before comparing it with I.
17720
17721 * kern/main.c (grub_env_write_root): Add the attribute unused into
17722 VAR.
17723
17724 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
17725 normal/completion.c.
17726 (normal_mod_SOURCES): Likewise.
17727 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
17728 (normal_mod_SOURCES): Likewise.
17729
17730 * normal/command.c (grub_iterate_commands): If ITERATE returns
17731 non-zero, return one immediately.
17732
17733 2005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
17734
17735 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
17736 * kern/i386/pc/startup.S: Updated Global Descriptor table's
17737 descriptions.
17738 (grub_vbe_get_controller_info): New function.
17739 (grub_vbe_get_mode_info): Likewise.
17740 (grub_vbe_set_mode): Likewise.
17741 (grub_vbe_get_mode): Likewise.
17742 (grub_vbe_set_memory_window): Likewise.
17743 (grub_vbe_get_memory_window): Likewise.
17744 (grub_vbe_set_scanline_length): Likewise.
17745 (grub_vbe_get_scanline_length): Likewise.
17746 (grub_vbe_set_display_start): Likewise.
17747 (grub_vbe_get_display_start): Likewise.
17748 (grub_vbe_set_palette_data): Likewise.
17749 * include/grub/i386/pc/vbe.h: New file.
17750
17751 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
17752
17753 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
17754 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
17755 * DISTLIST: Likewise.
17756 * kern/ieee1275/of.c: Moved to ...
17757 * kern/ieee1275/ieee1275.c: ... here.
17758
17759 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
17760
17761 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
17762 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
17763 Pass 0 as `end' parameter to grub_strtoul().
17764
17765 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
17766
17767 * include/grub/powerpc/ieee1275/console.h: Do not include
17768 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
17769 ifdef.
17770 (grub_console_cur_color): Remove i386-specific prototype.
17771 (grub_console_real_putchar): Likewise.
17772 (grub_console_checkkey): Likewise.
17773 (grub_console_getkey): Likewise.
17774 (grub_console_getxy): Likewise.
17775 (grub_console_gotoxy): Likewise.
17776 (grub_console_cls): Likewise.
17777 (grub_console_setcursor): Likewise.
17778 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
17779 Include <grub/machine/console.h>.
17780 * term/ieee1275/ofconsole.c: Likewise.
17781
17782 2005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
17783
17784 * Makefile.in (LIBLZO): New variable.
17785
17786 * configure.ac: Check for LZO version 2.
17787
17788 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
17789 lzo/lzo1x.h instead of lzo1x.h.
17790
17791 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
17792 of -llzo.
17793
17794 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
17795 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
17796
17797 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
17798 copying the data from PARTITION to P.
17799
17800 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
17801
17802 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
17803 negative, unload the module.
17804
17805 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
17806 map is "pc_partition_map" but not "pc".
17807 (usage): Fix the description. The options are --boot-image and
17808 --core-image but not --boot-file or --core-file.
17809 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
17810 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
17811 DEFAULT_DIRECTORY.
17812
17813 * util/i386/pc/grub-install.in: Do not specify --boot-file or
17814 --core-file. Specify INSTALL_DEVICE as an argument.
17815
17816 * util/console.c: Include config.h.
17817 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
17818 [HAVE_NCURSES_H]: Include ncurses.h.
17819 [HAVE_CURSES_H]: Include curses.h.
17820 [!A_NORMAL] (A_NORMAL): Defined as zero.
17821 [!A_STANDOUT] (A_STANDOUT): Likewise.
17822
17823 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
17824 -lncurses.
17825 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
17826
17827 * configure.ac: Check for curses libraries and headers.
17828
17829 * Makefile.in (LIBCURSES): New variable.
17830
17831 * genmk.rb (Script::rule): Set the executable bits.
17832
17833 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
17834 name of the PC partition map is "pc_partition_map" but not "pc".
17835
17836 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
17837
17838 * util/i386/pc/grub-install.in (grub_probefs): New variable.
17839 (modules): Likewise.
17840 (usage): Added descriptions for --modules and --grub-probefs.
17841 Handle --modules and --grub-probefs. Save the arguments in MODULES
17842 and GRUB_PROBEFS, respectively.
17843 Auto-detect a filesystem module against GRUBDIR. If the result is
17844 empty and modules are not specified explicitly, abort the
17845 installation. Add the result to MODULES.
17846
17847 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
17848 disk/powerpc/ieee1275/ofdisk.c,
17849 include/grub/powerpc/ieee1275/init.h and
17850 term/powerpc/ieee1275/ofconsole.c.
17851 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
17852 term/ieee1275/ofconsole.c.
17853
17854 * include/grub/powerpc/ieee1275/console.h: Resurrected.
17855
17856 * COPYING: Upgraded to the latest version. Only the address of the
17857 FSF office has changed.
17858
17859 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
17860
17861 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
17862 kern/ieee1275.c with kern/ieee1275/of.c.
17863
17864 * kern/ieee1275.c: Moved to ...
17865 * kern/ieee1275/of.c: ... here.
17866
17867 2005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
17868
17869 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
17870 readability.
17871
17872 * config.guess: Updated to the latest version from gnulib.
17873 * config.sub: Likewise.
17874 * install.sh: Likewise.
17875 * mkinstalldirs: Likewise.
17876
17877 * include/grub/console.h: Removed. This file is arch-specific. Do
17878 not put this in include/grub.
17879
17880 * include/grub/i386/pc/console.h: Resurrected.
17881
17882 * util/console.c: Include grub/machine/console.h instead of
17883 grub/console.h.
17884 * util/grub-emu.c: Likewise.
17885
17886 2005-08-04 Marco Gerards <metgerards@student.han.nl>
17887
17888 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
17889 hardcoded value.
17890
17891 From Vincent Pelletier <subdino2004@yahoo.fr>
17892 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
17893 Redefined to use grub_getwh.
17894 (grub_term): New member named getwh.
17895 (grub_getwh): New prototype.
17896 * kern/term.c (grub_getwh): New function.
17897 * term/i386/pc/console.c (grub_console_getwh): New function.
17898 (grub_console_term): New member `getwh'.
17899 * term/i386/pc/vga.c (grub_vga_getwh): New function.
17900 (grub_vga_term): New member `getwh'.
17901 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
17902 grub_ssize_t.
17903 (grub_ofconsole_getw): New function.
17904 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
17905 (grub_ofconsole_term): New field named getwh and new initial
17906 value.
17907
17908 2005-08-03 Hollis Blanchard <hollis@penguinppc.org>
17909
17910 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
17911 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
17912 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
17913 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
17914 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
17915 of <grub/machine/ieee1275.h>.
17916 * commands/ieee1275/reboot.c: Likewise.
17917 * boot/powerpc/ieee1275/ieee1275.c: Move ...
17918 * kern/ieee1275.c: ... to here. All users updated. Change all
17919 parameter structs to use new type `grub_ieee1275_cell_t'.
17920 * term/powerpc/ieee1275/ofconsole.c: Move ...
17921 * term/ieee1275/ofconsole.c: ... to here. All users updated.
17922 * disk/powerpc/ieee1275/ofdisk.c: Move ...
17923 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
17924 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
17925 to return int.
17926 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
17927 Remove unused prototypes. All users updated.
17928 * include/grub/powerpc/ieee1275/console.h: Removed.
17929 * include/grub/powerpc/ieee1275/ieee1275.h: Define
17930 `grub_ieee1275_cell_t'.
17931 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
17932 Cast comparisons with -1 to the correct type.
17933 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
17934 type to match `grub_ieee1275_entry_fn'.
17935
17936 2005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
17937
17938 * DISTLIST: Added util/i386/pc/grub-probefs.c.
17939
17940 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
17941 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
17942 partmap/sun.c.
17943 (grub_probefs_SOURCES): New variable.
17944
17945 * util/i386/pc/grub-probefs.c: New file.
17946
17947 * util/i386/pc/grub-setup.c (main): Call
17948 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
17949 grub_hfs_init and grub_jfs_init to initialize the system. Call
17950 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
17951 grub_pc_partition_map_fini to finish the system.
17952
17953 2005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
17954
17955 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
17956 function.
17957 (grub_multiboot_load_elf32): Likewise.
17958 (grub_multiboot_is_elf64): Likewise.
17959 (grub_multiboot_load_elf64): Likewise.
17960 (grub_multiboot_load_elf): Likewise.
17961 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
17962 an ELF32 or ELF64 file.
17963 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
17964
17965 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
17966 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
17967 NULL before calling FS->LABEL.
17968 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
17969 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
17970 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
17971 before calling FS->LABEL.
17972
17973 2005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
17974
17975 * util/i386/pc/grub-install.in (datadir): New variable.
17976 (libdir): Removed.
17977 (pkgdatadir): New variable.
17978 (pkglibdir): Removed.
17979
17980 2005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
17981
17982 * DISTLIST: Added util/i386/pc/grub-install.in.
17983
17984 * util/i386/pc/grub-install.in: New file.
17985
17986 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
17987 (grub_install_SOURCES): Likewise.
17988
17989 * genmk.rb: Added support for scripts.
17990 (Script): New class.
17991 (scripts): New variable.
17992
17993 * Makefile.in (install-local): Install sbin_SCRIPTS by
17994 INSTALL_SCRIPT.
17995 (uninstall): Remove sbin_SCRIPTS.
17996
17997 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
17998 device, try to get a GRUB device by
17999 grub_util_biosdisk_get_grub_dev.
18000 Free DEST_DEV.
18001
18002 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
18003 description for --device-map.
18004
18005 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
18006
18007 Change the semantics of variable hooks. They now return strings
18008 instead of error values.
18009
18010 * util/i386/pc/grub-setup.c: Include grub/env.h.
18011 (setup): Use grub_device_set_root instead of grub_env_set.
18012
18013 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
18014 grub_env_get instead of grub_device_set_root and
18015 grub_device_get_root, respectively.
18016
18017 * kern/main.c (grub_env_write_root): New function.
18018 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
18019 grub_env_set instead of grub_device_set_root.
18020
18021 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
18022 many variables.
18023 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
18024 rather than calling ENV->WRITE_HOOK afterwards.
18025 (grub_env_get): Return the result of ENV->READ_HOOK rather than
18026 passing a pointer of a pointer.
18027 (grub_register_variable_hook): Change the types of "read_hook" and
18028 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
18029 respectively.
18030 Allocate the default empty string on the heap, because this string
18031 may be freed later.
18032
18033 * kern/device.c: Include grub/env.h.
18034 (grub_device_set_root): Removed.
18035 (grub_device_get_root): Likewise.
18036 (grub_device_open): Use grub_env_get instead of
18037 grub_device_get_root.
18038
18039 * include/grub/env.h (grub_env_read_hook_t): New type.
18040 (grub_env_write_hook_t): Likewise.
18041 (grub_env_var): Change the types of "read_hook" and "write_hook"
18042 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
18043 (grub_register_variable_hook): Likewise.
18044
18045 * include/grub/device.h (grub_device_set_root): Removed.
18046 (grub_device_set_root): Likewise.
18047
18048 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
18049 make sure that DIRNAME terminates with '/', so that
18050 grub_fat_find_dir will fail if PATH is not a directory.
18051
18052 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
18053 from DIRNAME.
18054 Use the qualifier auto for print_files and print_files_long.
18055 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
18056 as a regular file.
18057 Put a newline only if there is no error.
18058 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
18059 used.
18060
18061 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
18062
18063 * kern/partition.c (grub_partition_probe): Initialize PART to
18064 NULL. Otherwise, when no partition map is registered, this returns
18065 a garbage.
18066
18067 2005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
18068
18069 * partmap/apple.c (apple_partition_map_iterate): Check if POS
18070 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
18071 valid.
18072
18073 2005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
18074
18075 * commands/ls.c (grub_ls_list_disks): Print the filesystem
18076 information on each device, if it does not have partitions. Print
18077 "Device" instead of "Disk", because this function is not specific
18078 to disk devices.
18079
18080 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
18081 static to ensure that it is put on the memory rather than a
18082 register.
18083
18084 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
18085
18086 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
18087 (grub_cat_init): Likewise.
18088 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
18089 (options): Likewise.
18090 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
18091 (grub_configfile_init): Likewise.
18092 * font/manager.c (GRUB_MOD_INIT): Likewise.
18093 * commands/help.c (GRUB_MOD_INIT): Likewise.
18094 (grub_help_init): Likewise.
18095 * normal/command.c (grub_command_init): Likewise.
18096 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
18097 * disk/loopback.c (grub_loop_init): Likewise.
18098 (GRUB_MOD_INIT): Likewise.
18099 * commands/ls.c (grub_ls_init): Likewise.
18100 (GRUB_MOD_INIT): Likewise.
18101 (options): Likewise.
18102 * commands/boot.c (grub_boot_init): Likewise.
18103 (GRUB_MOD_INIT): Likewise.
18104 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
18105 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
18106 (GRUB_MOD_INIT): Likewise.
18107 * commands/cmp.c (grub_cmp_init): Likewise.
18108 (GRUB_MOD_INIT): Likewise.
18109
18110 * normal/arg.c: Use <> instead of "" to include header files.
18111 (SHORT_ARG_HELP): New macro.
18112 (SHORT_ARG_USAGE): Likewise.
18113 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
18114 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
18115 descriptions.
18116 (find_short): Check if C is 'h' or 'u' explicitly.
18117 (grub_arg_show_help): Use space characters instead of tabs. Treat
18118 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
18119 are shown with --help and --usage only if they are not used for
18120 the command itself.
18121 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
18122 'h' and 'u'.
18123
18124 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
18125 const into "longarg". Change the type of "shortarg" to int.
18126
18127 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
18128
18129 * boot/i386/pc/boot.S (boot_drive_check): New label.
18130
18131 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
18132 macro.
18133
18134 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
18135 which do not pass a boot drive correctly. Copied from GRUB Legacy.
18136
18137 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
18138
18139 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
18140 When turning off Gate A20, skip the check and return immediately,
18141 because this is not fatal usually.
18142
18143 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
18144
18145 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
18146 be 0x7C00 instead of 0x8000.
18147
18148 * boot/i386/pc/pxeboot.S: Rewritten.
18149
18150 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
18151 EXT_C.
18152 (gate_a20_check_state): Read a byte from 0x108000. Invert the
18153 result.
18154
18155 2005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
18156
18157 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
18158 robustness. This routine now supports a BIOS call and System
18159 Control Port A to modify the gate A20.
18160
18161 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
18162 Increased to 0x440.
18163
18164 2005-07-12 Hollis Blanchard <hollis@penguinppc.org>
18165
18166 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
18167 device path and resulting ihandle.
18168 (grub_ofdisk_close): dprintf the ihandle being closed.
18169 (grub_ofdisk_read): dprintf function parameters.
18170 * kern/mm.c (grub_mm_init_region): Likewise.
18171 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
18172 (grub_linux_boot): dprintf the Linux entry point, initrd address and
18173 size, and boot arguments.
18174 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
18175 before loading into memory.
18176 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
18177 before loading into memory.
18178
18179 2005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
18180
18181 * kern/mm.c: Added much documentation.
18182 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
18183 8, set to 5 instead of 8.
18184
18185 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
18186
18187 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
18188
18189 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
18190 (grub_mkdevicemap_SOURCES): New variable.
18191
18192 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
18193 lib/device.c of GRUB Legacy.
18194
18195 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
18196
18197 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
18198 instead of PATH is NULL.
18199
18200 2005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
18201
18202 * commands/cmp.c (BUFFER_SIZE): New macro.
18203 (grub_cmd_cmp): Close the right file at the right time. Compare
18204 only data just read. Don't report files of different size as
18205 identical. Dynamically allocate buffers. Move variable
18206 declarations at the beginning of function.
18207
18208 2005-07-09 Yoshinori Okuji <okuji@enbug.org>
18209
18210 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
18211 reverse.
18212
18213 2004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
18214
18215 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
18216 when backspace is pressed at beginning of line.
18217
18218 2005-07-03 Yoshinori Okuji <okuji@enbug.org>
18219
18220 * DISTLIST: Added genfslist.sh.
18221
18222 * normal/main.c (fs_module_list): New variable.
18223 (autoload_fs_module): New function.
18224 (read_fs_list): Likewise.
18225 (grub_normal_execute): Call read_fs_list.
18226
18227 * kern/fs.c (grub_fs_autoload_hook): New variable.
18228 (grub_fs_probe): Added support for auto-loading.
18229
18230 * include/grub/normal.h (struct grub_fs_module_list): New struct.
18231 (grub_fs_module_list_t): New type.
18232
18233 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
18234 (grub_fs_autoload_hook): New prototype.
18235
18236 * genfslist.sh: New file.
18237
18238 * genmk.rb: Added a rule to generate a filesystem list.
18239
18240 2005-06-30 Marco Gerards <metgerards@student.han.nl>
18241
18242 * configure.ac: Fix the test for cross-compiling.
18243
18244 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
18245 define GRUB_UTIL anymore.
18246
18247 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
18248 so this function works on other systems than just big endian.
18249 (load_modules): Likewise.
18250 (add_segments): Likewise.
18251
18252 2005-06-23 Hollis Blanchard <hollis@penguinppc.org>
18253
18254 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
18255 contains `l' modifier, get a long from va_arg().
18256
18257 2005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
18258
18259 * kern/mm.c (grub_free): If the next free block which is being
18260 merged is the first free block, set the first block to the block
18261 being freed.
18262 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
18263
18264 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
18265
18266 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
18267 `grub_ieee1275_chosen'.
18268
18269 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
18270
18271 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
18272 (grub_ieee1275_chosen): New variable.
18273 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
18274 `chosen'.
18275 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
18276 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
18277 Rename first argument to `phandle' for consistency.
18278 (grub_ieee1275_get_property_length): Likewise.
18279 (grub_ieee1275_next_property): Likewise. Change type of first argument
18280 to grub_ieee1275_phandle_t.
18281 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
18282 Move export next to declaration.
18283 (grub_ieee1275_chosen): New variable.
18284 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
18285 Correct cosmetic typo.
18286 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
18287 `grub_ieee1275_chosen'.
18288 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
18289 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
18290 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
18291 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
18292 `grub_ieee1275_chosen'.
18293
18294 2005-05-10 Hollis Blanchard <hollis@penguinppc.org>
18295
18296 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
18297 /chosen/bootargs.
18298 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
18299 /chosen/bootargs as "variable=value" pairs.
18300
18301 2005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
18302
18303 * include/grub/misc.h (grub_dprintf): New macro.
18304 (grub_real_dprintf): New prototype.
18305 (grub_strword): Likewise.
18306 (grub_iswordseparator): Likewise.
18307 * kern/misc.c (grub_real_dprintf): New function.
18308 (grub_strword): Likewise.
18309 (grub_iswordseparator): Likewise.
18310
18311 2005-04-30 Hollis Blanchard <hollis@penguinppc.org>
18312
18313 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
18314 (roundup): Remove macro.
18315 (grub_ieee1275_flags): Make static.
18316 (grub_ieee1275_realmode): Remove.
18317 (grub_ieee1275_test_flag): New function.
18318 (grub_ieee1275_set_flag): Likewise.
18319 (find_options): Rename to `grub_ieee1275_find_options'; update
18320 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
18321 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
18322 (cmain): New prototype.
18323 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
18324 `grub_ieee1275_flags' directly.
18325 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
18326 machine/biosdisk.h.
18327 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
18328 Don't include grub/machine/init.h.
18329 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
18330 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
18331 Remove prototype.
18332 (grub_ieee1275_realmode): Likewise.
18333 (grub_ieee1275_flag): New enum.
18334 (grub_ieee1275_test_flag): New prototype.
18335 (grub_ieee1275_set_flag): New prototype.
18336 * include/grub/powerpc/ieee1275/init.h: Remove file.
18337 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
18338 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
18339 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
18340 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
18341 comment.
18342 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
18343 `grub_ieee1275_test_flag'.
18344 (grub_ieee1275_encode_devname): Likewise.
18345
18346 2005-04-21 Hollis Blanchard <hollis@penguinppc.org>
18347
18348 * include/grub/powerpc/ieee1275/ieee1275.h
18349 (grub_ieee1275_encode_devname): New prototype.
18350 (grub_ieee1275_get_filename): Likewise.
18351 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
18352 function.
18353 (grub_set_prefix): Likewise.
18354 (grub_machine_init): Call grub_set_prefix.
18355 * kern/powerpc/ieee1275/openfw.c: Fix typos.
18356 (grub_parse_type): New enum.
18357 (grub_ieee1275_get_devargs): New function.
18358 (grub_ieee1275_get_devname): Likewise.
18359 (grub_ieee1275_parse_args): Likewise.
18360 (grub_ieee1275_get_filename): Likewise.
18361 (grub_ieee1275_encode_devname): Likewise.
18362
18363 2005-03-30 Marco Gerards <metgerards@student.han.nl>
18364
18365 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
18366 `grub_loader_unset'.
18367
18368 2005-03-26 Hollis Blanchard <hollis@penguinppc.org>
18369
18370 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
18371 instead of grub_ieee1275_interpret.
18372 (grub_halt_init): New function.
18373 (grub_halt_fini): Likewise.
18374 (GRUB_MOD_INIT): Correct message grammar.
18375 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
18376 instead of grub_ieee1275_interpret.
18377 (grub_reboot_init): New function.
18378 (grub_reboot_fini): Likewise.
18379 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
18380 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
18381 util/i386/pc/misc.c with commands/ieee1275/halt.c,
18382 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
18383 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
18384 function.
18385 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
18386 Add prototype.
18387 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
18388 prototype.
18389 (grub_halt): Likewise.
18390 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
18391 (cmain): Remove __attribute__((unused)).
18392 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
18393 (grub_heap_len): Likewise.
18394 (grub_machine_fini): New function.
18395 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
18396 (grub_halt): Likewise.
18397 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
18398 function.
18399 * util/powerpc/ieee1275/misc.c: New file.
18400
18401 2005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
18402
18403 * DISTLIST: New file.
18404 * gendistlist.sh: Likewise.
18405
18406 * Makefile.in (COMMON_DISTFILES): Removed.
18407 (BOOT_DISTFILES): Likewise.
18408 (CONF_DISTFILES): Likewise.
18409 (DISK_DISTFILES): Likewise.
18410 (FS_DISTFILES): Likewise.
18411 (INCLUDE_DISTFILES): Likewise.
18412 (KERN_DISTFILES): Likewise.
18413 (LOADER_DISTFILES): Likewise.
18414 (TERM_DISTFILES): Likewise.
18415 (UTIL_DISTFILES): Likewise.
18416 (DISTFILES): Likewise.
18417 (uninstall): Uninstall files in $(pkgdata_DATA).
18418 (DISTLIST): New target.
18419 (distdir): Use the contents of the file DISTLIST to get a list of
18420 distributed files.
18421
18422 2005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
18423
18424 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
18425 descriptor. This is ported from GRUB Legacy.
18426
18427 * gencmdlist.sh: Added an extra semicolon to make it work with
18428 old sed versions. Reported by Robert Bihlmeyer
18429 <robbe@orcus.priv.at>.
18430
18431 2005-03-08 Yoshinori Okuji <okuji@enbug.org>
18432
18433 Automatic loading of commands is supported.
18434
18435 * normal/main.c (read_command_list): New function.
18436 (grub_normal_execute): Call read_command_list.
18437
18438 * normal/command.c (grub_register_command): Return zero or CMD.
18439 Allocate CMD->NAME from the heap.
18440 Initialize CMD->MODULE_NAME to zero.
18441 Find the same name as well. If the same command is found and it is
18442 a dummy command, overwrite members. If it is not a dummy command,
18443 return zero.
18444 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
18445 (grub_command_find): If a dummy command is found, load a module
18446 and retry to find a command only once.
18447
18448 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
18449 make sure that each command is loaded.
18450
18451 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
18452 macro.
18453 (struct grub_command): Remove const from the member `name'.
18454 Add a new member `module_name'.
18455 (grub_register_command): Return grub_command_t.
18456
18457 * commands/help.c (grub_cmd_help): Call grub_command_find to make
18458 sure that each command is loaded.
18459
18460 * genmk.rb (PModule::rule): Specify a module name without the
18461 suffix ".mod" to gencmdlist.sh.
18462
18463 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
18464
18465 * gencmdlist.sh: New file.
18466
18467 * genmk.rb (PModule::rule): Generate a rule for a command list.
18468 Clean command.lst.
18469 Generate command.lst from $(COMMANDFILES).
18470
18471 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
18472 (DATA): Added $(pkgdata_DATA).
18473 (install-local): Install files in $(pkgdata_DATA).
18474
18475 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
18476
18477 * term/i386/pc/vga.c (debug_command): Removed.
18478 (GRUB_MOD_INIT): Do not register the command "debug".
18479
18480 From Hollis Blanchard:
18481 * commands/configfile.c: New file.
18482 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
18483 commands/configfile.c.
18484 (pkgdata_MODULES): Added configfile.mod.
18485 (configfile_mod_SOURCES): New variable.
18486 (configfile_mod_CFLAGS): Likewise.
18487 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
18488 commands/configfile.c.
18489 (pkgdata_MODULES): Added configfile.mod.
18490 (configfile_mod_SOURCES): New variable.
18491 (configfile_mod_CFLAGS): Likewise.
18492 * util/grub-emu.c (main): Call grub_configfile_init and
18493 grub_configfile_fini.
18494 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
18495 prototype.
18496 [GRUB_UTIL] (grub_configfile_fini): Likewise.
18497
18498 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
18499
18500 * normal/arg.c (grub_arg_show_help): Do not show the bug report
18501 address.
18502
18503 * commands/help.c (grub_cmd_help): Do not print newlines after
18504 the last command in print_command_help.
18505
18506 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
18507
18508 * commands/default.h: New file.
18509 * commands/timeout.h: Likewise.
18510 * normal/context.c: Likewise.
18511
18512 * util/misc.c: Do not include sys/times.h.
18513 Include sys/time.h and grub/machine/time.h.
18514 (grub_get_rtc): Rewritten with gettimeofday.
18515
18516 * util/grub-emu.c (main): Call grub_default_init and
18517 grub_timeout_init before grub_normal_init, and call
18518 grub_timeout_fini and grub_default_fini after grub_main.
18519
18520 * util/console.c (grub_ncurses_checkkey): Return the read
18521 character or -1.
18522
18523 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
18524 timeouts.
18525
18526 * normal/main.c (read_config_file): Push MENU. If this fails,
18527 print an error and wait for a user input.
18528 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
18529 If a menu is empty or an error occurs, pop MENU.
18530 (grub_normal_execute): Pop and free MENU after grub_menu_run
18531 returns.
18532
18533 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
18534
18535 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
18536 include time.h.
18537 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
18538 without GRUB_UTIL.
18539 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
18540 time.h.
18541 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
18542 without GRUB_UTIL.
18543
18544 * include/grub/normal.h (struct grub_menu_list): New struct.
18545 (grub_menu_list_t): New type.
18546 (struct grub_context): New struct.
18547 (grub_context_t): New type.
18548 (grub_register_command): Got rid of EXPORT_FUNC.
18549 (grub_unregister_command): Likewise.
18550 (grub_context_get): New prototype.
18551 (grub_context_get_current_menu): Likewise.
18552 (grub_context_push_menu): Likewise.
18553 (grub_context_pop_menu): Likewise.
18554 [GRUB_UTIL] (grub_default_init): Likewise.
18555 [GRUB_UTIL] (grub_default_fini): Likewise.
18556 [GRUB_UTIL] (grub_timeout_init): Likewise.
18557 [GRUB_UTIL] (grub_timeout_fini): Likewise.
18558
18559 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
18560 commands/timeout.c and normal/context.c.
18561 (pkgdata_MODULES): Added default.mod and timeout.mod.
18562 (normal_mod_SOURCES): Added normal/context.c.
18563 (default_mod_SOURCES): New variable.
18564 (default_mod_CFLAGS): Likewise.
18565 (timeout_mod_SOURCES): Likewise.
18566 (timeout_mod_CFLAGS): Likewise.
18567 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
18568 conf/i386-pc.rmk.
18569 (pkgdata_MODULES): Added default.mod and timeout.mod.
18570 (normal_mod_SOURCES): Added normal/context.c.
18571 (default_mod_SOURCES): New variable.
18572 (default_mod_CFLAGS): Likewise.
18573 (timeout_mod_SOURCES): Likewise.
18574 (timeout_mod_CFLAGS): Likewise.
18575
18576 * Makefile.in (all-local): Added $(MKFILES).
18577
18578 2005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
18579
18580 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
18581 (grub_emu_SOURCES): Likewise.
18582 (pkgdata_MODULES): Add `sun.mod'.
18583 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
18584 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
18585 `partmap/sun.c'.
18586 (pkgdata_MODULES): Add `sun.mod'.
18587 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
18588 * include/grub/partition.h (grub_sun_partition_map_init): New
18589 prototype.
18590 (grub_sun_partition_map_fini): Likewise.
18591 * partmap/sun.c: New file.
18592 * util/grub-emu.c (main): Initialize and de-initialize the sun
18593 partitionmap support.
18594
18595 2005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
18596
18597 This implements an Emacs-like menu entry editor.
18598
18599 * normal/menu_entry.c: New file.
18600
18601 * util/console.c (grub_ncurses_putchar): Translate some Unicode
18602 characters to ASCII.
18603 (saved_char): New variable.
18604 (grub_ncurses_checkkey): Rewritten completely.
18605 (grub_ncurses_getkey): Likewise.
18606 (grub_ncurses_init): Call raw instead of cbreak.
18607
18608 * normal/menu.c (print_entry): Do not put a space.
18609 (init_page): Renamed to ...
18610 (grub_menu_init_page): ... this. All callers changed.
18611 (edit_menu_entry): Removed.
18612 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
18613
18614 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
18615
18616 * kern/misc.c (grub_vprintf): Call grub_refresh.
18617
18618 * normal/menu.c (DISP_LEFT): Renamed to ...
18619 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
18620 * normal/menu.c (DISP_UP): Renamed to ...
18621 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
18622 * normal/menu.c (DISP_RIGHT): Renamed to ...
18623 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
18624 * normal/menu.c (DISP_DOWN): Renamed to ...
18625 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
18626 * normal/menu.c (DISP_HLINE): Renamed to ...
18627 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
18628 * normal/menu.c (DISP_VLINE): Renamed to ...
18629 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
18630 * normal/menu.c (DISP_UL): Renamed to ...
18631 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
18632 * normal/menu.c (DISP_UR): Renamed to ...
18633 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
18634 * normal/menu.c (DISP_LL): Renamed to ...
18635 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
18636 * normal/menu.c (DISP_LR): Renamed to ...
18637 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
18638 * normal/menu.c (TERM_WIDTH): Renamed to ...
18639 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
18640 * normal/menu.c (TERM_HEIGHT): Renamed to ...
18641 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
18642 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
18643 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
18644 * normal/menu.c (TERM_MARGIN): Renamed to ...
18645 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
18646 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
18647 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
18648 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
18649 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
18650 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
18651 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
18652 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
18653 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
18654 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
18655 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
18656 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
18657 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
18658 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
18659 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
18660 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
18661 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
18662 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
18663 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
18664 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
18665 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
18666 All callers changed.
18667
18668 * include/grub/normal.h: New prototype.
18669
18670 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
18671 normal/menu_entry.c.
18672 (normal_mod_SOURCES): Likewise.
18673 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18674 (normal_mod_SOURCES): Likewise.
18675
18676 2005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
18677
18678 * include/grub/normal.h (grub_halt_init): New prototype.
18679 (grub_halt_fini): Likewise.
18680 (grub_reboot_init): Likewise.
18681 (grub_reboot_fini): Likewise.
18682
18683 * util/grub-emu.c: Include signal.h.
18684 (main_env): New global variable.
18685 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
18686 catch C-c.
18687 (grub_machine_fini): New function.
18688 (main): Call grub_halt_init and grub_reboot_init before
18689 grub_main, and grub_reboot_fini and grub_halt_fini after it.
18690 Call setjmp with MAIN_ENV to go back afterwards.
18691 Call grub_machine_fini right before return.
18692
18693 * include/grub/util/misc.h: Include setjmp.h.
18694 (main_env): New prototype.
18695
18696 * include/grub/kernel.h (grub_machine_fini): New prototype.
18697 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
18698 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
18699
18700 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
18701 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
18702 * term/i386/pc/console.c (grub_console_fini): Likewise.
18703
18704 * util/i386/pc/misc.c: New file.
18705
18706 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
18707 util/i386/pc/misc.c, commands/i386/pc/halt.c and
18708 commands/i386/pc/reboot.c.
18709
18710 2005-02-14 Guillem Jover <guillem@hadrons.org>
18711
18712 * include/grub/dl.h (grub_dl_check_header): New prototype.
18713 (grub_arch_dl_check_header): Change return type to grub_err_t,
18714 remove size parameter and export function. Update all callers.
18715 * kern/dl.c (grub_dl_check_header): New function.
18716 (grub_dl_load_core): Use `grub_dl_check_header' instead of
18717 `grub_arch_dl_check_header'. Check ELF type. Check if sections
18718 are inside the core.
18719 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
18720 independent ELF header checks.
18721 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
18722 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
18723 `grub_dl_check_header' instead of explicit checks. Check for the
18724 ELF type.
18725 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
18726 `grub_dl_check_header' instead of explicit checks. Remove arch
18727 specific ELF header checks.
18728
18729 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
18730 argument SIZE.
18731
18732 2005-02-13 Hollis Blanchard <hollis@penguinppc.org>
18733
18734 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
18735 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
18736
18737 2005-02-12 Hollis Blanchard <hollis@penguinppc.org>
18738
18739 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
18740 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
18741 (part_map_iterate): Clear `grub_errno' and return 0 if
18742 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
18743 * partmap/amiga.c (amiga_partition_map_iterate): Return
18744 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
18745 * partmap/apple.c (apple_partition_map_iterate): Likewise.
18746
18747 2005-02-01 Guillem Jover <guillem@hadrons.org>
18748
18749 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
18750 help info.
18751
18752 2005-01-31 Marco Gerards <metgerards@student.han.nl>
18753
18754 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
18755 Removed prototype.
18756 (grub_rescue_cmd_linux): New prototype.
18757 (grub_rescue_cmd_initrd): Likewise.
18758 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
18759 `bi_rec'.
18760 (grub_linux_release_mem): Release the memory for the initrd.
18761 (grub_load_linux): Renamed from this...
18762 (grub_rescue_cmd_linux): ...To this. Changed all callers.
18763 Changed `entry' not to be static. Loop over memory regions to
18764 find another one when the default fails.
18765 (grub_rescue_cmd_initrd): New function.
18766 (grub_linux_init): Remove function.
18767 (grub_linux_fini): Likewise.
18768 (GRUB_MOD_INIT): Register `initrd'.
18769 (GRUB_MOD_FINI): Unregister `initrd'.
18770 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
18771 Function removed.
18772 (grub_linux_normal_fini): Likewise.
18773 (GRUB_MOD_INIT): Register `initrd'.
18774 (GRUB_MOD_FINI): Unregister `initrd'.
18775
18776 2005-01-31 Marco Gerards <metgerards@student.han.nl>
18777
18778 * commands/help.c: New file.
18779 * normal/arg.c (show_help): Renamed to...
18780 (grub_arg_show_help): ... this.
18781 * commands/i386/pc/halt.c: New file.
18782 * commands/i386/pc/reboot.c: Likewise.
18783 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
18784 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
18785 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
18786 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
18787 variables.
18788 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
18789 `commands/help.c'.
18790 (pkgdata_MODULES): Add `help.mod'.
18791 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
18792 * grub/i386/pc/init.h (grub_reboot): New prototype.
18793 (grub_halt): Likewise.
18794 * include/grub/normal.h (grub_arg_show_help): New prototype.
18795 (grub_help_init): Likewise.
18796 (grub_help_fini): Likewise.
18797 * util/grub-emu.c (main): Initialize and deinitialize the help
18798 command.
18799
18800 * normal/cmdline.c (grub_cmdline_get): Doc fix.
18801
18802 * normal/command.c (grub_command_init): Fixed the description of
18803 the `set' and `unset' commands.
18804
18805 2005-01-31 Marco Gerards <metgerards@student.han.nl>
18806
18807 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
18808 function.
18809 * commands/ieee1275/halt.c: New file.
18810 * commands/ieee1275/reboot.c: Likewise.
18811 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
18812 `__attribute__ ((unused))'. Some GCS related fixed.
18813 (grub_suspend_init) [GRUB_UTIL]: Function removed.
18814 (grub_suspend_fini): Likewise.
18815 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
18816 and `halt.mod'.
18817 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
18818 (halt_mod_CFLAGS): New variables.
18819 * include/grub/powerpc/ieee1275/ieee1275.h
18820 (grub_ieee1275_interpret): New prototype.
18821
18822 2005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
18823
18824 * include/grub/misc.h (memmove): New prototype.
18825 (memcpy): Likewise.
18826
18827 2005-01-22 Hollis Blanchard <hollis@penguinppc.org>
18828
18829 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
18830 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
18831
18832 2005-01-22 Marco Gerards <metgerards@student.han.nl>
18833
18834 * kern/misc.c (grub_strndup): Function rewritten.
18835
18836 2005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
18837
18838 * normal/menu.c (TERM_WIDTH): Macro redefined.
18839 (TERM_TOP_BORDER_Y): Likewise.
18840 (draw_border): Replaced while-loop by a for-loop. Make the number
18841 of lines consistent with the number of lines displayed in
18842 print_entries. Added a margin below the rectangle.
18843 (print_entry): Make the entry fit in the rectangle.
18844 (print_entries): Display the scroll arrows next to the right
18845 border.
18846
18847 2005-01-21 Marco Gerards <metgerards@student.han.nl>
18848
18849 * fs/minix.c (grub_minix_find_file): Reserve more space for
18850 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
18851 `grub_strncpy' to copy `path' into it.
18852
18853 2005-01-21 Marco Gerards <metgerards@student.han.nl>
18854
18855 Add the loopback device, a device via which files can be accessed
18856 as devices.
18857
18858 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
18859 (pkgdata_MODULES): Add loopback.mod.
18860 (loopback_mod_SOURCES): New variable.
18861 (loopback_mod_CFLAGS): Likewise.
18862 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
18863 `disk/loopback.c'.
18864 (pkgdata_MODULES): Add loopback.mod.
18865 (loopback_mod_SOURCES): New variable.
18866 (loopback_mod_CFLAGS): Likewise.
18867 * disk/loopback.c: new file.
18868 * include/grub/normal.h (grub_loop_init): New prototype.
18869 (grub_loop_fini): New prototype.
18870 * util/grub-emu.c (main): Initialize and de-initialize loopback
18871 support.
18872 * include/grub/disk.h (grub_disk_dev_id): Add
18873 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
18874
18875 2005-01-20 Hollis Blanchard <hollis@penguinppc.org>
18876
18877 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
18878 function.
18879 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
18880 (suspend_mod_SOURCES): New variable.
18881 (suspend_mod_CFLAGS): Likewise.
18882 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
18883 New prototype.
18884 * commands/ieee1275/suspend.c: New file.
18885
18886 2005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
18887
18888 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
18889 ((unused))' to `__attribute__ ((used))'.
18890 (GRUB_MOD_FINI): Likewise.
18891 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
18892 * genmk.rb (PModule): Assign space to common symbols when linking
18893 modules.
18894
18895 2005-01-20 Marco Gerards <metgerards@student.han.nl>
18896
18897 * include/grub/mm.h (grub_mm_init_region): Change the type of the
18898 `unsigned' arguments to `grub_size_t'.
18899 (grub_malloc): Likewise.
18900 (grub_realloc): Likewise.
18901 (grub_memalign): Likewise.
18902 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
18903 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
18904 * util/misc.c (grub_malloc): Likewise.
18905 (grub_realloc): Likewise.
18906 * kern/mm.c (get_header_from_pointer): Change the casts to
18907 `unsigned' into a cast to `grub_size_t'.
18908
18909 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
18910 point to `currnode' when `currnode' is changed.
18911
18912 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
18913 Schottelius <nico-linux@schottelius.org>.
18914
18915 2005-01-09 Hollis Blanchard <hollis@penguinppc.org>
18916
18917 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
18918 (note_path): Remove variable.
18919 (GRUB_IEEE1275_NOTE_NAME): New macro.
18920 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
18921 (grub_ieee1275_note_hdr): New structure.
18922 (grub_ieee1275_note_desc): Likewise.
18923 (grub_ieee1275_note): Likewise.
18924 (load_note): Remove `dir' argument. All callers updated. Remove
18925 `note_img' and `path'. Do not load a file from `note_path'.
18926 Initialize a struct grub_ieee1275_note and write that to `out'.
18927 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
18928
18929 2005-01-05 Marco Gerards <metgerards@student.han.nl>
18930
18931 * util/misc.c (grub_util_read_image): Revert last change. It
18932 called `grub_util_read_at', which seeks from the beginning of the
18933 file.
18934
18935 2005-01-04 Hollis Blanchard <hollis@penguinppc.org>
18936
18937 * TODO: Add note about endianness in grub-mkimage.
18938 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
18939 section.
18940 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
18941 (grub_mkimage_SOURCES): New target.
18942 * include/grub/kernel.h (grub_start_addr): Remove variable.
18943 (grub_end_addr): Likewise.
18944 (grub_total_module_size): Likewise.
18945 (grub_kernel_image_size): Likewise.
18946 (GRUB_MODULE_MAGIC): New constant.
18947 (grub_module_info): New structure.
18948 (grub_arch_modules_addr): New prototype.
18949 (grub_get_end_addr): Remove prototype.
18950 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
18951 * include/grub/powerpc/ieee1275/kernel.h: New file.
18952 * include/grub/util/misc.h (grub_util_get_fp_size): New
18953 prototype.
18954 (grub_util_read_at): Likewise.
18955 (grub_util_write_image_at): Likewise.
18956 * kern/main.c (grub_get_end_addr): Remove function.
18957 (grub_load_modules): Call grub_arch_modules_addr instead of using
18958 grub_end_addr. Look for a grub_module_info struct in memory. Use
18959 the grub_module_info fields instead of calling grub_get_end_addr
18960 as loop conditions. Move grub_add_unused_region code here.
18961 (grub_add_unused_region): Remove function.
18962 * kern/i386/pc/init.c: Include grub/cache.h.
18963 (grub_machine_init): Remove call to grub_get_end_addr. Remove
18964 one call to add_mem_region.
18965 (grub_arch_modules_addr): New function.
18966 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
18967 (grub_total_module_size): Likewise.
18968 Include grub/machine/kernel.h.
18969 (grub_arch_modules_addr): New function.
18970 * util/grub-emu.c (grub_end_addr): Remove variable.
18971 (grub_total_module_size): Likewise.
18972 (grub_arch_modules_addr): New function.
18973 * util/misc.c: Include unistd.h.
18974 (grub_util_get_fp_size): New function.
18975 (grub_util_read_at): Likewise.
18976 (grub_util_write_image_at): Likewise.
18977 (grub_util_read_image): Call grub_util_read_at.
18978 (grub_util_write_image): Call grub_util_write_image_at.
18979 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
18980 additional memory in kernel_img for a struct grub_module_info.
18981 Fill in that grub_module_info.
18982 * util/powerpc/ieee1275/grub-mkimage.c: New file.
18983
18984 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
18985
18986 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
18987 New function.
18988 * include/grub/powerpc/ieee1275/ieee1275.h
18989 (grub_ieee1275_milliseconds): New prototype.
18990 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
18991 Change to 1000.
18992 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
18993 grub_ieee1275_milliseconds.
18994
18995 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
18996
18997 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
18998 variable.
18999 (find_options): New function.
19000 (cmain): Call find_options.
19001 * include/grub/powerpc/ieee1275/ieee1275.h
19002 (grub_ieee1275_realmode): New extern variable.
19003 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
19004 grub_map if grub_ieee1275_realmode is false.
19005
19006 2004-12-29 Marco Gerards <metgerards@student.han.nl>
19007
19008 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
19009 lines are inserted and make it work like readline. Reported by
19010 Vincent Pelletier <subdino2004@yahoo.fr>.
19011
19012 2004-12-28 Marco Gerards <metgerards@student.han.nl>
19013
19014 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
19015
19016 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
19017 `kern/powerpc/cache.S'.
19018
19019 2004-12-27 Marco Gerards <metgerards@student.han.nl>
19020
19021 * genmk.rb: Handle the `Program' class in the main loop. Written
19022 by Johan Rydberg <jrydberg@gnu.org>.
19023 (Program): New class.
19024 (programs): New variable.
19025 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
19026 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
19027 instead of "grub/kernel.h". Include <grub/machine/init.h>.
19028 (help_arch): Function removed.
19029 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
19030 `powerpc/libgcc.h' and `loader.h'.
19031 (pkgdata_PROGRAMS): New variable.
19032 (sbin_UTILITIES): Variable removed.
19033 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
19034 (grubof_SOURCES): Variable re-defined so it only includes the
19035 core functionality.
19036 (grubof_CFLAGS): Remove `-DGRUBOF'.
19037 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
19038 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
19039 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
19040 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
19041 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
19042 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
19043 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
19044 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
19045 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
19046 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
19047 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
19048 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
19049 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
19050 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
19051 (pc_mod_CFLAGS): New variables.
19052 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
19053 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
19054 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
19055 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
19056 Moved from here...
19057 * include/grub/i386/pc/init.h (grub_os_area_addr)
19058 (rub_os_area_size): ... to here.
19059 * include/grub/powerpc/ieee1275/ieee1275.h
19060 (grub_ieee1275_entry_fn): Export symbol.
19061 * include/grub/powerpc/ieee1275/init.h: New file.
19062 * include/grub/powerpc/libgcc.h: Likewise.
19063 * include/grub/cache.h: Likewise.
19064 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
19065 <hollis@penguinppc.org>.
19066 * kern/dl.c: Include <grub/cache.h>.
19067 (grub_dl_flush_cache): New function.
19068 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
19069 for this module.
19070 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
19071 (grub_console_init): Removed prototypes.
19072 (grub_machine_init): Don't initialize the modules anymore.
19073 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
19074 static.
19075 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
19076 Macro undef removed.
19077 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
19078 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
19079 relocation `R_PPC_REL32'. Return an error when the relocation is
19080 unknown.
19081 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
19082 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
19083 * util/misc.c (grub_arch_sync_caches): Likewise.
19084
19085 2004-12-19 Marco Gerards <metgerards@student.han.nl>
19086
19087 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
19088 `symlist.c', add `grubof_symlist.c'.
19089 (symlist.c): Variable removed.
19090 (grubof_HEADERS): Variable added.
19091 (grubof_symlist.c): New target.
19092 (kernel_syms.lst): Use `grubof_HEADERS' instead of
19093 `kernel_img_HEADERS'.
19094 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
19095 * kern/powerpc/dl.c: New file.
19096 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
19097 Function removed.
19098 (grub_arch_dl_relocate_symbols): Likewise.
19099 (grub_register_exported_symbols): Likewise.
19100
19101 2004-12-13 Marco Gerards <metgerards@student.han.nl>
19102
19103 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
19104 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
19105 to fail instead. Reported by Vincent Pelletier
19106 <subdino2004@yahoo.fr>.
19107
19108 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
19109 it is not allocated. Reported by Vincent Pelletier
19110 <subdino2004@yahoo.fr>.
19111
19112 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
19113 output so the output looks better.
19114
19115 2004-12-04 Marco Gerards <metgerards@student.han.nl>
19116
19117 Modulize the partition map support and add support for the amiga
19118 partition map.
19119
19120 * commands/ls.c: Include <grub/partition.h> instead of
19121 <grub/machine/partition.h>.
19122 * kern/disk.c: Likewise.
19123 * kern/rescue.c: Likewise.
19124 * loader/i386/pc/chainloader.c: Likewise.
19125 * normal/cmdline.c: Likewise.
19126 * kern/powerpc/ieee1275/init.c: Likewise.
19127 (grub_machine_init): Call `grub_pc_partition_map_init',
19128 `grub_amiga_partition_map_init' and
19129 `grub_apple_partition_map_init'.
19130 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
19131 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
19132 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
19133 `partition.h' and `pc_partition.h'.
19134 (grub_setup_SOURCES): Remove
19135 `disk/i386/pc/partition.c'. Add `kern/partition.c',
19136 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
19137 (grub_emu_SOURCES): Likewise.
19138 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
19139 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
19140 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
19141 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
19142 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
19143 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
19144 (grubof_SOURCES): Likewise.
19145 * disk/i386/pc/partition.c: File removed.
19146 * disk/powerpc/ieee1275/partition.c: Likewise.
19147 * include/grub/powerpc/ieee1275/partition.h: Likewise.
19148 * include/grub/i386/pc/partition.h: Likewise.
19149 * kern/partition.c: New file.
19150 * partmap/amiga.c: Likewise.
19151 * partmap/apple.c: Likewise.
19152 * partmap/pc.c: Likewise.
19153 * include/grub/partition.h: Likewise..
19154 * include/grub/pc_partition.h: Likewise.
19155 * util/grub-emu.c: Include <grub/partition.h> instead of
19156 <grub/machine/partition.h>.
19157 (main): Call `grub_pc_partition_map_init',
19158 `grub_amiga_partition_map_init' and
19159 `grub_apple_partition_map_init' and deinitialize afterwards.
19160 * util/i386/pc/biosdisk.c: Include `#include
19161 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
19162 `<grub/machine/partition.h>'.
19163 * util/i386/pc/grub-setup.c: Likewise.
19164 * util/i386/pc/biosdisk.c: Likewise.
19165 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
19166 partition information in case of a PC partition.
19167 * util/i386/pc/grub-setup.c: Include `#include
19168 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
19169 `<grub/machine/partition.h>'.
19170 (setup): Only access the PC specific partition information in case
19171 of a PC partition.
19172
19173 2004-11-17 Hollis Blanchard <hollis@penguinppc.org>
19174
19175 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
19176 (grub_longjmp): Likewise.
19177 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
19178 20.
19179 * normal/powerpc/setjmp.S: New file.
19180 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
19181 `normal/powerpc/setjmp.S'.
19182 (grubof_CFLAGS): Add `-DGRUBOF'.
19183 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
19184 [GRUB_UTIL && !GRUBOF].
19185
19186 2004-11-16 Marco Gerards <metgerards@student.han.nl>
19187
19188 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
19189 property named `name'. Correctly handle the error returned by
19190 `grub_ieee1275_finddevice' if a device can not be opened.
19191
19192 2004-11-02 Hollis Blanchard <hollis@penguinppc.org>
19193
19194 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
19195 `actual' for negativity.
19196 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
19197 kern/fshelp.c.
19198
19199 2004-11-01 Marco Gerards <metgerards@student.han.nl>
19200
19201 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
19202 (PAGE_OFFSET): New macro.
19203 (CRTC_ADDR_PORT): Likewise.
19204 (CRTC_DATA_PORT): Likewise.
19205 (START_ADDR_HIGH_REGISTER): Likewise.
19206 (START_ADDR_LOW_REGISTER): Likewise.
19207 (GRAPHICS_ADDR_PORT): Likewise.
19208 (GRAPHICS_DATA_PORT): Likewise.
19209 (READ_MAP_REGISTER): Likewise.
19210 (INPUT_STATUS1_REGISTER): Likewise.
19211 (INPUT_STATUS1_VERTR_BIT): Likewise.
19212 (page): New variable.
19213 (wait_vretrace): New function.
19214 (set_read_map): Likewise.
19215 (set_start_address): Likewise.
19216 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
19217 the right page.
19218 (check_vga_mem): Take the page into account.
19219 (write_char): Likewise.
19220 (write_cursor): Likewise.
19221 (scroll_up): Likewise. Copy the page to the page that is not
19222 shown and switch between both pages.
19223 (grub_vga_putchar): Fix off by one error.
19224 (grub_vga_cls): Wait for the vertical retrace. Take the page into
19225 account.
19226
19227 2004-11-01 Marco Gerards <metgerards@student.han.nl>
19228
19229 Add support for iso9660 (including rockridge).
19230
19231 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
19232 (iso9660_mod_SOURCES): New variable.
19233 (iso9660_mod_CFLAGS): Likewise.
19234 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
19235 * include/grub/fs.h (grub_iso9660_init): New prototype.
19236 * util/grub-emu.c (main): Call `grub_iso9660_init'.
19237 * fs/iso9660.c: New file.
19238
19239 * include/grub/misc.h (grub_strncat): New prototype.
19240 * kern/misc.c (grub_strncat): New function.
19241
19242 * fs/hfs.c (grub_hfs_mount): Translate the error
19243 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
19244 * fs/jfs.c (grub_jfs_mount): Likewise.
19245 * fs/ufs.c (grub_ufs_mount): Likewise.
19246
19247 2004-10-28 Hollis Blanchard <hollis@penguinppc.org>
19248
19249 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
19250 which initialized BAT registers.
19251 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
19252 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
19253 Move from here...
19254 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
19255 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
19256 ... to here.
19257 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
19258 (grub_mapclaim): Likewise.
19259 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
19260 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
19261 hand.
19262
19263 2004-10-19 Hollis Blanchard <hollis@penguinppc.org>
19264
19265 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
19266 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
19267 -ffreestanding and -msoft-float.
19268
19269 2004-10-15 Hollis Blanchard <hollis@penguinppc.org>
19270
19271 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
19272 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
19273 set in grub_ieee1275_flags.
19274
19275 2004-10-14 Hollis Blanchard <hollis@penguinppc.org>
19276
19277 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
19278 prototype.
19279 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
19280 grub_console_init first.
19281 Change the memory range used for grub_ieee1275_claim and
19282 grub_mm_init_region.
19283 Print an error message if the claim fails.
19284 Include <grub/misc.h>.
19285
19286 2004-10-13 Hollis Blanchard <hollis@penguinppc.org>
19287
19288 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
19289 Call grub_children_iterate for device nodes of type `scsi',
19290 `ide', or `ata'.
19291 (grub_ofdisk_open): Remove manual device alias resolution.
19292 Fix memory leak when device cannot be opened.
19293 * include/grub/powerpc/ieee1275/ieee1275.h
19294 (grub_children_iterate): New prototype.
19295 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
19296 New function.
19297 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
19298 Return -1 if args.size was -1.
19299
19300 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
19301
19302 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
19303 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
19304 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
19305 Open Firmware's memory for it; claim memory from _start to _end.
19306 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
19307 (_end): New extern.
19308 (_start): Zero BSS from __bss_start to _end.
19309 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
19310 New extern.
19311 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
19312
19313 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
19314
19315 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
19316 -1 if args.base was -1.
19317
19318 2004-10-08 Hollis Blanchard <hollis@penguinppc.org>
19319
19320 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
19321 escape sequence instead of a literal ^L. Also call
19322 grub_ofconsole_gotoxy.
19323
19324 2004-10-03 Hollis Blanchard <hollis@penguinppc.org>
19325
19326 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
19327 void * arguments to grub_addr_t. All callers updated. Also make
19328 the `result' argument optional.
19329 (grub_ieee1275_release): change void * arguments to grub_addr_t.
19330 All callers updated.
19331
19332 2004-09-22 Hollis Blanchard <hollis@penguinppc.org>
19333
19334 * commands/ls.c (grub_ls_list_files): Use the string following the
19335 initial ')', if present, as the filesystem path.
19336 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
19337
19338 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
19339
19340 2004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
19341
19342 Make the source code of the menu interface more readable.
19343
19344 * normal/menu.c: Include grub/mm.h.
19345 (TERM_WIDTH): New macro.
19346 (TERM_HEIGHT): Likewise.
19347 (TERM_INFO_HEIGHT): Likewise.
19348 (TERM_MARGIN): Likewise.
19349 (TERM_SCROLL_WIDTH): Likewise.
19350 (TERM_TOP_BORDER_Y): Likewise.
19351 (TERM_LEFT_BORDER_X): Likewise.
19352 (TERM_BORDER_WIDTH): Likewise.
19353 (TERM_MESSAGE_HEIGHT): Likewise.
19354 (TERM_BORDER_HEIGHT): Likewise.
19355 (TERM_NUM_ENTRIES): Likewise.
19356 (TERM_FIRST_ENTRY_Y): Likewise.
19357 (TERM_ENTRY_WIDTH): Likewise.
19358 (TERM_CURSOR_X): Likewise.
19359 (draw_border): Use macros instead of magic numbers.
19360 (print_entry): Likewise.
19361 (print_entries): Likewise.
19362 (run_menu): Likewise. Also, handle the key 'e'.
19363 (run_menu_entry): Ignore empty command lines.
19364 (print_message): Added a new argument EDIT. If EDIT is true,
19365 print a different message.
19366 (init_page): Likewise.
19367 (edit_menu_entry): New function. Not implemented yet.
19368
19369 2004-09-17 Marco Gerards <metgerards@student.han.nl>
19370
19371 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
19372 can be loaded from normal mode.
19373
19374 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
19375 `multiboot.mod'.
19376 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
19377 (multiboot_mod_CFLAGS): New variables.
19378 * loader/i386/pc/linux_normal.c: New file.
19379 * loader/i386/pc/multiboot_normal.c: Likewise.
19380
19381 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
19382 attribute `unused'.
19383
19384 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
19385 `fdiro' to read the mode information from instead of `diro'.
19386
19387 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
19388 looking up a symlink.
19389
19390 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
19391 macro.
19392 * normal/command.c (grub_command_execute): Don't parse the
19393 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
19394 flags of the command.
19395
19396 * normal/menu.c (grub_menu_run): Fix typo.
19397
19398 2004-09-14 Hollis Blanchard <hollis@penguinppc.org>
19399
19400 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
19401
19402 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
19403 `y + 1' instead of `y - 1'.
19404
19405 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
19406
19407 2004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
19408
19409 From Hollis Blanchard <hollis@penguinppc.org>:
19410 * kern/misc.c (memmove): New alias for grub_memmove.
19411 (memcmp): New alias for grub_memcmp.
19412 (memset): New alias for grub_memset.
19413 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
19414 Change "int handle" to "grub_ieee1275_phandle_t handle".
19415 * include/grub/powerpc/ieee1275/ieee1275.h
19416 (grub_ieee1275_get_property): Likewise.
19417
19418 2004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
19419
19420 Added normal mode command `chainloader' as module chain.mod, which
19421 depends on normal.mod and _chain.mod.
19422
19423 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
19424 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
19425 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
19426 Deleted prototype.
19427 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
19428 but arguments parsing moved to ...
19429 (grub_chainloader_cmd): ... here. New function.
19430 * include/grub/i386/pc/chainloader.h: New file.
19431 * loader/i386/pc/chainloader_normal.c: Likewise.
19432
19433 2004-09-11 Marco Gerards <metgerards@student.han.nl>
19434
19435 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
19436 (grub_mkimage_LDFLAGS): Likewise.
19437 (grub_emu_SOURCES): Likewise.
19438 (kernel_img_HEADERS): Added fshelp.h.
19439 * fs/ext2.c: Include <grub/fshelp.h>.
19440 (FILETYPE_REG): New macro.
19441 (FILETYPE_INO_REG): Likewise.
19442 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
19443 Changed all users.
19444 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
19445 all users.
19446 (grub_fshelp_node): New struct.
19447 (grub_ext2_data): Added member `diropen'. Changed member `inode'
19448 to a pointer.
19449 (grub_ext2_get_file_block): Removed function.
19450 (grub_ext2_read_block): New function.
19451 (grub_ext2_read_file): Replaced parameter `data' by `node'.
19452 This function was written.
19453 (grub_ext2_mount): Read the root inode. Create a diropen struct.
19454 (grub_ext2_find_file): Removed function.
19455 (grub_ext2_read_symlink): New function.
19456 (grub_ext2_iterate_dir): Likewise.
19457 (grub_ext2_open): Rewritten.
19458 (grub_ext2_dir): Rewritten.
19459 * include/grub/fshelp.h: New file.
19460 * fs/fshelp.c: Likewise.
19461
19462 2004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
19463
19464 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
19465 (print_message): Add a missing newline.
19466 (run_menu): Added timeout support.
19467 (run_menu_entry): New local function.
19468 (grub_menu_run): Added support for booting.
19469
19470 * kern/loader.c (grub_loader_is_loaded): New function.
19471
19472 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
19473 (grub_get_rtc): Exported.
19474
19475 * include/grub/i386/pc/time.h: Include grub/symbol.h.
19476 (grub_get_rtc): Exported.
19477
19478 * include/grub/normal.h (struct grub_command_list): Remove
19479 constant from the member `command'.
19480
19481 * include/grub/loader.h (grub_loader_is_loaded): Declared.
19482
19483 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
19484
19485 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
19486
19487 2004-08-28 Marco Gerards <metgerards@student.han.nl>
19488
19489 Add support for the JFS filesystem.
19490
19491 * fs/jfs.c: New file.
19492 * include/grub/fs.h (grub_jfs_init): New prototype.
19493 (grub_jfs_fini): New prototype.
19494 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
19495 (grub_emu_SOURCES): Likewise.
19496 (pkgdata_MODULES): Add jfs.mod.
19497 (jfs_mod_SOURCES): New variable.
19498 (jfs_mod_CFLAGS): Likewise.
19499 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
19500 (grubof_SOURCES): Likewise.
19501 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
19502
19503 * fs/fat.c (grub_fat_find_dir): Convert the filename little
19504 endian to the host endian.
19505 (grub_fat_utf16_to_utf8): Move function from there...
19506 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
19507 the endianness of the source string anymore.
19508 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
19509
19510 2004-08-24 Marco Gerards <metgerards@student.han.nl>
19511
19512 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
19513 (grub_boot_fini) [GRUB_UTIL]: Likewise.
19514 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
19515 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
19516
19517 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
19518 (grub_hfs_iterate_dir): Make the function static. Add prototypes
19519 for `node_found' and `it_dir'.
19520 (grub_hfs_dir): Add prototype for `dir_hook'.
19521
19522 * fs/minix.c (grub_minix_get_file_block): Add prototype for
19523 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
19524 and `indir32' to silence a gcc warning.
19525
19526 * include/grub/fs.h (grub_hfs_init): New prototype.
19527 (grub_hfs_fini): Likewise.
19528
19529
19530 2004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
19531
19532 Each disk device has its own id now. This is useful to make use
19533 of multiple disk devices.
19534
19535 * include/grub/disk.h (grub_disk_dev_id): New enum.
19536 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
19537 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
19538
19539 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
19540 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
19541
19542 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
19543 GRUB_DISK_DEVICE_OFDISK_ID as an id.
19544
19545 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
19546 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
19547
19548 * include/grub/disk.h (struct grub_disk_dev): Added a new member
19549 "id" which is used by the cache manager.
19550
19551 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
19552 of just "GRUB".
19553
19554 2004-08-18 Marco Gerards <metgerards@student.han.nl>
19555
19556 * fs/hfs.c: New file.
19557 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
19558 (grub_emu_SOURCES): Likewise.
19559 (pkgdata_MODULES): Add hfs.mod.
19560 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
19561 (grubof_SOURCES): Likewise.
19562 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
19563
19564 * include/grub/misc.h (grub_strncasecmp): Add prototype.
19565 * kern/misc.c (grub_strncasecmp): Add function.
19566
19567 2004-08-14 Marco Gerards <metgerards@student.han.nl>
19568
19569 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
19570 with parentheses.
19571
19572 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
19573 (grub_ext2_dir): In case the directory entry type is unknown, read
19574 it from the inode.
19575
19576 2004-08-02 Peter Bruin <pjbruin@dds.nl>
19577
19578 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
19579 grub_load_linux instead of grub_rescue_cmd_linux as second
19580 argument of grub_rescue_register_command.
19581
19582 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
19583
19584 2004-07-27 Marco Gerards <metgerards@student.han.nl>
19585
19586 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
19587 function.
19588 * commands/boot.c: Remove the check for `GRUB_UTIL'.
19589 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
19590 `loader/powerpc/ieee1275/linux.c',
19591 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
19592 * include/grub/powerpc/ieee1275/ieee1275.h
19593 (grub_ieee1275_release): New prototype.
19594 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
19595 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
19596 normal, boot, linux and linux_normal.
19597 * loader/powerpc/ieee1275/linux.c: New file.
19598 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
19599
19600 2004-07-12 Marco Gerards <metgerards@student.han.nl>
19601
19602 * normal/arg.c (grub_arg_parse): Correct error handling after
19603 reallocating the argumentlist (check if `argl' is not null instead
19604 of checking if `args' is not null).
19605 * kern/mm.c (grub_realloc): Return the same pointer when using the
19606 same region, instead of returning the header address.
19607
19608 2004-07-11 Marco Gerards <metgerards@student.han.nl>
19609
19610 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
19611 one block instead of two when looking for the initial partition.
19612 (grub_partition_probe): Initialize the local variable `p' with 0.
19613 Use base 10 for the grub_strtoul call.
19614 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
19615 need for one local variable.
19616 (grub_strtoul): Don't add the new value to `num', instead of that
19617 just assign it.
19618
19619 2004-07-11 Marco Gerards <metgerards@student.han.nl>
19620
19621 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
19622 (pxeboot_img_SOURCES): New variable.
19623 (pxeboot_img_ASFLAGS): Likewise.
19624 (pxeboot_img_LDFLAGS): Likewise.
19625 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
19626 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
19627 <lode_leroy@hotmail.com>.
19628
19629 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
19630
19631 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
19632 there was no input.
19633
19634 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
19635
19636 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
19637 the history buffer logic.
19638
19639 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
19640
19641 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
19642 (FILETYPE_INO_SYMLINK): New macros.
19643 (grub_ext2_find_file): Check if the node is a directory using the
19644 inode stat information instead of using the filetype in the
19645 dirent. Exclude the first character of an absolute symlink.
19646 (grub_ext2_dir): Mask out the filetype part of the mode member of
19647 the inode.
19648
19649 2004-05-24 Marco Gerards <metgerards@student.han.nl>
19650
19651 Add support for UFS version 1 and 2. Add support for the minix
19652 filesystem version 1 and 2, both the variants with 14 and 30 long
19653 filenames.
19654
19655 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
19656 fs/minix.c.
19657 (grub_emu_SOURCES): Likewise.
19658 (pkgdata_MODULES): Add ufs.mod and minix.mod.
19659 (ufs_mod_SOURCES): New variable.
19660 (ufs_mod_CFLAGS): Likewise.
19661 (minix_mod_SOURCES): Likewise.
19662 (minix_mod_CFLAGS): Likewise.
19663 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
19664 fs/minix.c.
19665 (grubof_SOURCES): Likewise.
19666 * fs/ufs.c: New file.
19667 * fs/minix.c: New file.
19668 * include/grub/fs.h (grub_ufs_init): New prototype.
19669 (grub_ufs_fini): Likewise.
19670 (grub_minix_init): Likewise.
19671 (grub_minix_fini): Likewise.
19672 * util/grub-emu.c (main): Initialize and deinitialize UFS and
19673 minix fs.
19674
19675 2004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
19676
19677 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
19678 commands/ls.c, commands/terminal.c, commands/boot.c,
19679 commands/cmp.c and commands/cat.c.
19680 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
19681
19682 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
19683 "env.h"
19684
19685 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
19686
19687 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
19688 and grub_, respectively. Because the conversion is trivial and
19689 mechanical, I omit the details here. Please refer to the CVS
19690 if you need more information.
19691
19692 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
19693
19694 * include/pupa: Renamed to ...
19695 * include/grub: ... this.
19696 * util/i386/pc/pupa-mkimage.c: Renamed to ...
19697 * util/i386/pc/grub-mkimage.c: ... this.
19698 * util/i386/pc/pupa-setup.c: Renamed to ...
19699 * util/i386/pc/grub-setup.c: ... this.
19700 * util/pupa-emu.c: Renamed to ...
19701 * util/grub-emu.c: ... this.
19702
19703 2004-03-29 Marco Gerards <metgerards@student.han.nl>
19704
19705 Add support for the newworld apple macintosh (PPC). This has been
19706 tested on the powerbook 2000 only. It only adds support for
19707 generic ieee1275 functions, console and disk support. This should
19708 be easy to port to other architectures with support for Open
19709 Firmware.
19710
19711 * configure.ac: Accept the powerpc as host_cpu. In the case of
19712 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
19713 specific tests are only executed while building for the i386.
19714 Inverse test for crosscompile.
19715 * genmk.rb (Utility): Allow assembler files.
19716 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
19717 * conf/powerpc-ieee1275.rmk: New file.
19718 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
19719 * disk/powerpc/ieee1275/partition.c: Likewise.
19720 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
19721 * include/pupa/powerpc/ieee1275/console.h: Likewise.
19722 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
19723 * include/pupa/powerpc/ieee1275/time.h: Likewise.
19724 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
19725 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
19726 * include/pupa/powerpc/ieee1275/loader.h
19727 * include/pupa/powerpc/setjmp.h: Likewise.
19728 * include/pupa/powerpc/types.h: Likewise.
19729 * kern/powerpc/ieee1275/init.c: Likewise.
19730 * kern/powerpc/ieee1275/openfw.c: Likewise.
19731 * term/powerpc/ieee1275/ofconsole.c: Likewise.
19732
19733 These files were written by Johan Rydberg
19734 (jrydberg@night.trouble.net) and I only modified them slightly.
19735
19736 * boot/powerpc/ieee1275/cmain.c: New file.
19737 * boot/powerpc/ieee1275/crt0.S: Likewise.
19738 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
19739 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
19740
19741 2004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
19742
19743 * Makefile.in: Update copyright.
19744 * genmodsrc.sh: Likewise.
19745 * gensymlist.sh: Likewise.
19746 * term/i386/pc/vga.c: Indent correctly.
19747
19748 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
19749 bugreporting address.
19750 * util/i386/pc/pupa-setup.c (usage): Likewise,
19751 (main): Call pupa_ext2_init and pupa_ext2_fini.
19752
19753 * fs/fat.c (log2): Renamed to ...
19754 (fat_log2): ... this.
19755 All callers changed.
19756 * kern/misc.c (memcpy): Alias to pupa_memmove.
19757 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
19758 lvalue cast.
19759 * util/console.c (pupa_ncurses_fini): Return 0.
19760
19761 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
19762 Move fail label here.
19763 [__GNU__]: Don't warn when using stat.
19764 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
19765 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
19766 long int. Use strtol instead of strtoul.
19767
19768 2004-03-14 Marco Gerards <metgerards@student.han.nl>
19769
19770 * commands/boot.c: New file.
19771 * commands/cat.c: Likewise.
19772 * commands/cmp.c: Likewise.
19773 * commands/ls.c: Likewise.
19774 * commands/terminal.c: Likewise.
19775 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
19776 (pupa_register_command): Changed interface to match the new
19777 argument parser.
19778 (pupa_command_execute): Changed (almost rewritten) so it uses
19779 pupa_split_command. Added support for setting variables using the
19780 syntax `foo=bar'.
19781 (rescue_command): Changed to work with the new argument parser.
19782 (terminal_command): Moved from here to commands/terminal.c.
19783 (set_command): New function.
19784 (unset_command): New function.
19785 (insmod_command): New function.
19786 (rmmod_command): New function.
19787 (lsmod_command): New function.
19788 (pupa_command_init): Don't initialize the command terminal
19789 anymore. Initialize the commands set, unset, insmod, rmmod and
19790 lsmod.
19791 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
19792 (kernel_img_HEADERS): Add arg.h and env.h.
19793 (pupa_mkimage_LDFLAGS): Add kern/env.c.
19794 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
19795 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
19796 normal/arg.c.
19797 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
19798 terminal.mod.
19799 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
19800 (boot_mod_SOURCES): New variable.
19801 (terminal_mod_SOURCES): Likewise.
19802 (ls_mod_SOURCES): Likewise.
19803 (cmp_mod_SOURCES): Likewise.
19804 (cat_mod_SOURCES): Likewise.
19805
19806 * normal/arg.c: New file.
19807 * kern/env.c: Likewise.
19808 * include/pupa/arg.h: Likewise.
19809 * include/pupa/env.h: Likewise.
19810 * font/manager.c (font_command): Changed to match argument parsing
19811 interface changes.
19812 (PUPA_MOD_INIT): Likewise.
19813 * hello/hello.c (pupa_cmd_hello): Likewise.
19814 (PUPA_MOD_INIT): Likewise.
19815 * include/pupa/disk.h: Include <pupa/device.h>.
19816 (pupa_print_partinfo): New prototype.
19817 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
19818 (pupa_dl_get_prefix): Likewise.
19819 * include/pupa/misc.h: Include <pupa/err.h>.
19820 (pupa_isgraph): New prototype.
19821 (pupa_isdigit): Likewise.
19822 (pupa_split_cmdline): Likewise.
19823 * include/pupa/normal.h: Include <pupa/arg.h>.
19824 (pupa_command): Changed the prototype of the member `func' to
19825 match the argument parsing interface. Added member `options'.
19826 (pupa_register_command): Updated to match function.
19827 (pupa_arg_parse): New prototype.
19828 (pupa_hello_init) [PUPA_UTIL]: New prototype.
19829 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
19830 (pupa_ls_init) [PUPA_UTIL]: Likewise.
19831 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
19832 (pupa_cat_init) [PUPA_UTIL]: Likewise.
19833 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
19834 (pupa_boot_init) [PUPA_UTIL]: Likewise.
19835 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
19836 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
19837 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
19838 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
19839 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
19840 * kern/disk.c: Include <pupa/file.h>.
19841 (pupa_print_partinfo): New function.
19842 * kern/dl.c: Include <pupa/env.h>.
19843 (pupa_dl_dir): Variable removed.
19844 (pupa_dl_load): Use the environment variable `prefix' instead of
19845 the variable pupa_dl_dir.
19846 (pupa_dl_set_prefix): Function removed.
19847 (pupa_dl_get_prefix): Likewise.
19848 * kern/i386/pc/init.c: Include <pupa/env.h>.
19849 (pupa_machine_init): Use the environment variable `prefix' instead of
19850 using pupa_dl_set_prefix to set the prefix.
19851 * kern/main.c: Include <pupa/env.h>.
19852 (pupa_set_root_dev): Use the environment variable `prefix' instead of
19853 using pupa_dl_get_prefix to get the prefix.
19854 * kern/misc.c: Include <pupa/env.h>.
19855 (pupa_isdigit): New function.
19856 (pupa_isgraph): Likewise.
19857 (pupa_ftoa): Likewise.
19858 (pupa_vsprintf): Added support for printing values of the type
19859 `double'. Make it possible to format variable output when using
19860 formatting like `%1.2%f'.
19861 (pupa_split_cmdline): New function.
19862 * kern/rescue.c: Include <pupa/env.h>.
19863 (next_word): Removed function.
19864 (pupa_rescue_cmd_prefix): Likewise.
19865 (pupa_rescue_cmd_set): New function.
19866 (pupa_rescue_cmd_unset): New function.
19867 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
19868 split the command line instead of splitting it here. Added
19869 support for setting variables using the syntax `foo=bar'. Don't
19870 initialize the prefix command anymore. Initialized the set and
19871 unset commands.
19872 * normal/cmdline.c: Include <pupa/env.h>.
19873 (pupa_tab_complete): Added prototypes for print_simple_completion,
19874 print_partition_completion, add_completion, iterate_commands,
19875 iterate_dev, iterate_part and iterate_dir. Moved code to print
19876 partition information from here to kern/disk.c.
19877 (pupa_cmdline_run): Don't check if the function exists anymore.
19878 * normal/main.c: Include <pupa/env.h>.
19879 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
19880 instead of using pupa_dl_get_prefix to get the prefix.
19881 * term/i386/pc/vga.c: Include <pupa/arg.h>.
19882 (check_vga_mem): Cast pointers to `void *' to silence a gcc
19883 warning.
19884 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
19885 (pupa_vga_setcolor): Declare unused variables with `__attribute__
19886 ((unused))' to silence a gcc warning.
19887 (pupa_vga_setcolor): Likewise.
19888 (debug_command): Changed to match argument parsing
19889 interface changes.
19890 * util/pupa-emu.c: Include <pupa/env.h>.
19891 (options): Added 0's for unused fields to silence a gcc warning.
19892 (argp): Likewise.
19893 (main): Use the environment variable `prefix' instead of using
19894 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
19895 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
19896 and terminal.
19897
19898 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
19899 * util/misc.c: Include <malloc.h>.
19900 (pupa_malloc): Rewritten so errors are correctly reported.
19901 (pupa_realloc): Likewise.
19902 (pupa_memalign): Likewise.
19903 (pupa_mm_init_region): Declare unused variables with
19904 `__attribute__ ((unused))' to silence a gcc warning.
19905 * normal/i386/setjmp.S: Remove tab at the end of the file to
19906 silence a gcc warning.
19907 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
19908 variables with `__attribute__ ((unused))' to silence a gcc
19909 warning.
19910 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
19911 local variable i unsigned to silence a gcc warning.
19912
19913 * kern/term.c: Include <pupa/misc.h>.
19914 (pupa_more_lines): New variable.
19915 (pupa_more): Likewise.
19916 (pupa_putcode): When the pager is active pause at the end of every
19917 screen.
19918 (pupa_set_more): New function.
19919 * include/pupa/term.h (pupa_set_more): New prototype.
19920
19921
19922 2004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
19923
19924 Now this project is GRUB 2 rather than PUPA. The location of
19925 the CVS repository was moved to GRUB's.
19926
19927 * configure.ac: Use bug-grub as the reporting address.
19928 Use GRUB instead of PUPA.
19929 Change the version number to 1.90.
19930
19931 2004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
19932
19933 * genkernsyms.sh: Updated copyright information.
19934 * genmk.rb: Likewise.
19935 * genmodsrc.sh: Likewise.
19936 * gensymlist.sh: Likewise.
19937 * boot/i386/pc/boot.S: Likewise.
19938 * boot/i386/pc/diskboot.S: Likewise.
19939 * disk/i386/pc/biosdisk.c: Likewise.
19940 * disk/i386/pc/partition.c: Likewise.
19941 * font/manager.c: Likewise.
19942 * fs/ext2.c: Likewise.
19943 * fs/fat.c: Likewise.
19944 * include/pupa/boot.h: Likewise.
19945 * include/pupa/device.h: Likewise.
19946 * include/pupa/disk.h: Likewise.
19947 * include/pupa/dl.h: Likewise.
19948 * include/pupa/elf.h: Likewise.
19949 * include/pupa/err.h: Likewise.
19950 * include/pupa/file.h: Likewise.
19951 * include/pupa/font.h: Likewise.
19952 * include/pupa/fs.h: Likewise.
19953 * include/pupa/kernel.h: Likewise.
19954 * include/pupa/loader.h: Likewise.
19955 * include/pupa/misc.h: Likewise.
19956 * include/pupa/mm.h: Likewise.
19957 * include/pupa/net.h: Likewise.
19958 * include/pupa/normal.h: Likewise.
19959 * include/pupa/rescue.h: Likewise.
19960 * include/pupa/setjmp.h: Likewise.
19961 * include/pupa/symbol.h: Likewise.
19962 * include/pupa/term.h: Likewise.
19963 * include/pupa/types.h: Likewise.
19964 * include/pupa/i386/setjmp.h: Likewise.
19965 * include/pupa/i386/types.h: Likewise.
19966 * include/pupa/i386/pc/biosdisk.h: Likewise.
19967 * include/pupa/i386/pc/boot.h: Likewise.
19968 * include/pupa/i386/pc/console.h: Likewise.
19969 * include/pupa/i386/pc/init.h: Likewise.
19970 * include/pupa/i386/pc/kernel.h: Likewise.
19971 * include/pupa/i386/pc/linux.h: Likewise.
19972 * include/pupa/i386/pc/loader.h: Likewise.
19973 * include/pupa/i386/pc/memory.h: Likewise.
19974 * include/pupa/i386/pc/multiboot.h: Likewise.
19975 * include/pupa/i386/pc/partition.h: Likewise.
19976 * include/pupa/i386/pc/time.h: Likewise.
19977 * include/pupa/i386/pc/vga.h: Likewise.
19978 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
19979 * include/pupa/util/getroot.h: Likewise.
19980 * include/pupa/util/misc.h: Likewise.
19981 * include/pupa/util/resolve.h: Likewise.
19982 * kern/device.c: Likewise.
19983 * kern/disk.c: Likewise.
19984 * kern/dl.c: Likewise.
19985 * kern/err.c: Likewise.
19986 * kern/file.c: Likewise.
19987 * kern/fs.c: Likewise.
19988 * kern/loader.c: Likewise.
19989 * kern/main.c: Likewise.
19990 * kern/misc.c: Likewise.
19991 * kern/mm.c: Likewise.
19992 * kern/rescue.c: Likewise.
19993 * kern/term.c: Likewise.
19994 * kern/i386/dl.c: Likewise.
19995 * kern/i386/pc/init.c: Likewise.
19996 * kern/i386/pc/lzo1x.S: Likewise.
19997 * kern/i386/pc/startup.S: Likewise.
19998 * loader/i386/pc/chainloader.c: Likewise.
19999 * loader/i386/pc/linux.c: Likewise.
20000 * loader/i386/pc/multiboot.c: Likewise.
20001 * normal/cmdline.c: Likewise.
20002 * normal/command.c: Likewise.
20003 * normal/main.c: Likewise.
20004 * normal/menu.c: Likewise.
20005 * normal/i386/setjmp.S: Likewise.
20006 * term/i386/pc/console.c: Likewise.
20007 * term/i386/pc/vga.c: Likewise.
20008 * util/console.c: Likewise.
20009 * util/genmoddep.c: Likewise.
20010 * util/misc.c: Likewise.
20011 * util/pupa-emu.c: Likewise.
20012 * util/resolve.c: Likewise.
20013 * util/unifont2pff.rb: Likewise.
20014 * util/i386/pc/biosdisk.c: Likewise.
20015 * util/i386/pc/getroot.c: Likewise.
20016 * util/i386/pc/pupa-mkimage.c: Likewise.
20017 * util/i386/pc/pupa-setup.c: Likewise.
20018
20019 2004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
20020
20021 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
20022 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
20023 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
20024 reading and reset it after reading.
20025 (pupa_ext2_close): Return PUPA_ERR_NONE.
20026
20027 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
20028 Correct value.
20029 (struct linux_kernel_header): Add kernel_version and
20030 initrd_addr_max.
20031 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
20032 pupa_file_read succeeds.
20033 (pupa_rescue_cmd_initrd): Implement.
20034
20035 2003-12-03 Marco Gerards <metgerards@student.han.nl>
20036
20037 * fs/ext2.c (pupa_ext2_label): New function.
20038 (pupa_ext2_fs): Added label.
20039 * fs/fat.c (pupa_fat_label): New function.
20040 (pupa_fat_fs): Added label.
20041 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
20042
20043 * kern/misc.c (pupa_strndup): New function.
20044 * include/pupa/misc.h (pupa_strndup): New prototype.
20045
20046 * include/pupa/normal.h: Include <pupa/err.h>.
20047 (pupa_set_history): New prototype.
20048 (pupa_iterate_commands): New prototype.
20049 * normal/cmdline.c: Include <pupa/machine/partition.h>,
20050 <pupa/disk.h>, <pupa/file.h>.
20051 (hist_size): New variable.
20052 (hist_lines): Likewise.
20053 (hist_end): Likewise.
20054 (hist_used): Likewise.
20055 (pupa_set_history): New function.
20056 (pupa_history_get): Likewise.
20057 (pupa_history_add): Likewise.
20058 (pupa_history_replace): Likewise.
20059 (pupa_tab_complete): Likewise.
20060 (pupa_cmdline_run): Added tab completion and history buffer. Tab
20061 completion shows partitionnames while completing partitions, this
20062 feature was suggested by Jeff Bailey.
20063 * normal/command.c (pupa_iterate_commands): New function.
20064 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
20065 (pupa_normal_init): Initialize history buffer.
20066 (PUPA_MOD_INIT): Likewise.
20067 (pupa_normal_fini): Free the history buffer.
20068 (PUPA_MOD_FINI): Likewise.
20069
20070 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
20071 key.
20072
20073 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
20074 * configure.ac [i386]: Check for regparam bug.
20075 (NESTED_FUNC_ATTR) [! i386]: Defined.
20076
20077 2003-11-17 Marco Gerards <metgerards@student.han.nl>
20078
20079 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
20080 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
20081 (pupa_emu_SOURCES): New variable.
20082 (pupa_emu_LDFLAGS): Likewise.
20083 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
20084 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
20085 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
20086 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
20087 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
20088 (pupa_jmp_buf): New typedef.
20089 (pupa_setjmp) [PUPA_UTIL]: New macro.
20090 (pupa_longjmp) [PUPA_UTIL]: Likewise.
20091 * include/pupa/term.h (struct pupa_term): New member `refresh'.
20092 (pupa_refresh): New prototype.
20093 * include/pupa/util/getroot.h: New file.
20094 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
20095 it.
20096 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
20097 (pupa_rescue_cmd_cat): Likewise.
20098 (pupa_rescue_cmd_ls): Likewise.
20099 (pupa_rescue_cmd_testload): Likewise.
20100 (pupa_rescue_cmd_lsmod): Likewise.
20101 * normal/cmdline.c (pupa_cmdline_get): Likewise.
20102 * normal/menu.c (run_menu): Likewise.
20103 * kern/term.c (pupa_cls): Likewise.
20104 (pupa_refresh): New function.
20105 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
20106 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
20107 * util/console.c: New file.
20108
20109 * util/i386/pc/getroot.c: New file.
20110 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
20111 (pupa_putchar): New function.
20112 (pupa_refresh): Likewise.
20113 (xgetcwd): Function moved to ...
20114 (strip_extra_slashes): Likewise.
20115 (get_prefix): Likewise.
20116 * util/i386/pc/getroot.c: ... here.
20117 (find_root_device): Function moved and renamed to...
20118 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
20119 Changed all callers.
20120 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
20121 and renamed to...
20122 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
20123 Changed all callers.
20124 * util/misc.c (pupa_memalign): New function.
20125 (pupa_mm_init_region): Likewise.
20126 (pupa_register_exported_symbols): Likewise.
20127 (pupa_putchar): Function removed.
20128 * util/pupa-emu.c: New file.
20129
20130 2003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
20131
20132 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
20133 (_multiboot_mod_SOURCES): New variable.
20134 (_multiboot_mod_CFLAGS): Likewise.
20135 * loader/i386/pc/multiboot.c: New file.
20136 * include/pupa/i386/pc/multiboot.h: Likewise.
20137 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
20138 (pupa_multiboot_real_boot): New function.
20139 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
20140 (pupa_multiboot_real_boot): New prototype.
20141 (pupa_rescue_cmd_multiboot): Likewise
20142 (pupa_rescue_cmd_module): Likewise.
20143
20144 * kern/loader.c (pupa_loader_set): Continue when
20145 pupa_loader_unload_func() fails.
20146 (pupa_loader_unset): New function.
20147 * include/pupa/loader.h (pupa_loader_unset): New prototype.
20148
20149 * kern/misc.c (pupa_stpcpy): New function.
20150 * include/pupa/misc.h (pupa_stpcpy): New prototype.
20151
20152 2003-11-12 Marco Gerards <metgerards@student.han.nl>
20153
20154 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
20155 for available extensions.
20156
20157 * include/pupa/i386/pc/time.h: New file.
20158 * kern/disk.c: Include <pupa/machine/time.h>.
20159 (PUPA_CACHE_TIMEOUT): New macro.
20160 (pupa_last_time): New variable.
20161 (pupa_disk_open): Flush the cache when there was a timeout.
20162 (pupa_disk_close): Reset the timer.
20163 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
20164 pupa_currticks.
20165 * util/misc.c: Include <sys/times.h>
20166 (pupa_get_rtc): New function.
20167
20168 2003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
20169
20170 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
20171 as blocks.
20172 (pupa_ext2_get_file_block): Use blocks member.
20173
20174 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
20175 first block. Return -1 instead of pupa_errno on error.
20176
20177 2003-10-27 Marco Gerards <metgerards@student.han.nl>
20178
20179 * README: In the pupa-mkimage example use _chain instead of chain
20180 and ext2 instead of fat.
20181 * TODO: Replace ext2fs with jfs as an example. Add an item for
20182 adding journal playback for ext2fs.
20183 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
20184 (pkgdata_MODULES): Added ext2.mod.
20185 (ext2_mod_SOURCES): New variable.
20186 (ext2_mod_CFLAGS): Likewise.
20187 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
20188 * include/pupa/misc.h (pupa_strncpy): New prototype.
20189 (pupa_strcat): Likewise.
20190 (pupa_strncmp): Likewise.
20191 * kern/misc.c (pupa_strcat): Enable function.
20192 (pupa_strncpy): New function.
20193 (pupa_strncmp): Likewise.
20194 * fs/ext2.c: New file.
20195
20196 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
20197 when the read failed before retrying.
20198 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
20199 (_FILE_OFFSET_BITS): Likewise.
20200 * configure.ac: Added AC_SYS_LARGEFILE.
20201
20202 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
20203
20204 * genmk.rb (PModule#rule): Make sure to get only symbol names
20205 from the output of nm.
20206 Reported by Robert Millan <zeratul2@wanadoo.es>.
20207
20208 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
20209
20210 I forgot to check in these changes for a long time. This adds
20211 incomplete support for VGA console, and this is still very
20212 buggy. Also, a lot of consideration is required for I18N,
20213 UNICODE, and VGA font issues. Therefore, assume that this is
20214 such that "better than nothing".
20215
20216 * font/manager.c: New file.
20217 * include/pupa/font.h: Likewise.
20218 * include/pupa/i386/pc/vga.h: Likewise.
20219 * term/i386/pc/vga.c: Likewise.
20220 * util/unifont2pff.rb: Likewise.
20221
20222 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
20223 (pkgdata_MODULES): Added vga.mod and font.mod.
20224 (vga_mod_SOURCES): New variables.
20225 (vga_mod_CFLAGS): Likewise.
20226 (font_mod_SOURCES): Likewise.
20227 (font_mod_CFLAGS): Likewise.
20228
20229 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
20230
20231 * include/pupa/term.h: Include pupa/err.h.
20232 (struct pupa_term): Added init and fini.
20233 Changed the argument of putchar to pupa_uint32_t.
20234
20235 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
20236 (pupa_console_real_putchar): New prototype.
20237 (pupa_console_putchar): Removed.
20238 (pupa_console_checkkey): Exported.
20239 (pupa_console_getkey): Likewise.
20240
20241 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
20242 characters.
20243
20244 * kern/term.c (pupa_term_set_current): Rewritten.
20245 (pupa_putchar): Likewise.
20246 (pupa_putcode): New function.
20247
20248 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
20249 (pupa_console_real_putchar): ... this.
20250 (pupa_vga_set_mode): New function.
20251 (pupa_vga_get_font): Likewise.
20252
20253 * normal/command.c: Include pupa/term.h.
20254 (terminal_command): New function.
20255 (pupa_command_init): Register the command "terminal".
20256
20257 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
20258 (DISP_UP): Likewise.
20259 (DISP_RIGHT): Likewise.
20260 (DISP_DOWN): Likewise.
20261 (DISP_HLINE): Likewise.
20262 (DISP_VLINE): Likewise.
20263 (DISP_UL): Likewise.
20264 (DISP_UR): Likewise.
20265 (DISP_LL): Likewise.
20266 (DISP_LR): Likewise.
20267
20268 * term/i386/pc/console.c (pupa_console_putchar): New function.
20269
20270 2003-02-08 NIIBE Yutaka <gniibe@m17n.org>
20271
20272 * util/resolve.c (pupa_util_resolve_dependencies): BUG
20273 FIX. Reverse the path_list.
20274
20275 * include/pupa/normal.h: Export pupa_register_command and
20276 pupa_unregister_command.
20277
20278 * hello/hello.c (pupa_cmd_hello): New module.
20279 * conf/i386-pc.rmk: Added hello.mod.
20280
20281 2003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
20282
20283 * kern/i386/pc/lzo1x.S: New file.
20284
20285 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
20286 (compress_kernel): New variable.
20287 (generate_image): Heavily modified to support compressing a
20288 large part of the core image.
20289
20290 * util/misc.c (pupa_util_read_image): Fix a file descriptor
20291 leak.
20292 (pupa_util_load_image): New function.
20293
20294 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
20295 (pupa_compressed_size): New variable.
20296 (codestart): Enable Gate A20 here.
20297 Decompress the compressed part of the core image.
20298 Rearrange the code to put functions and variables which are
20299 required for initialization in the non-compressed part.
20300 Include lzo1x.S.
20301
20302 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
20303 here.
20304
20305 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
20306
20307 * include/pupa/i386/pc/kernel.h
20308 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
20309 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
20310 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
20311 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
20312 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
20313
20314 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
20315
20316 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
20317 (Utility#rule): Likewise.
20318
20319 * configure.ac: Check if LZO is available.
20320
20321 2003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
20322
20323 * include/pupa/normal.h: New file.
20324 * include/pupa/setjmp.h: Likewise.
20325 * include/pupa/i386/setjmp.h: Likewise.
20326 * normal/cmdline.c: Likewise.
20327 * normal/command.c: Likewise.
20328 * normal/main.c: Likewise.
20329 * normal/menu.c: Likewise.
20330 * normal/i386/setjmp.S: Likewise.
20331
20332 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
20333 (pupa_rescue_cmd_initrd): Likewise.
20334
20335 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
20336 Likewise.
20337
20338 * kern/i386/pc/startup.S (translation_table): New variable.
20339 (translate_keycode): New function.
20340 (pupa_console_getkey): Call translate_keycode.
20341
20342 * kern/rescue.c (attempt_normal_mode): New function.
20343 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
20344 it failed, print a message.
20345
20346 * kern/mm.c (pupa_real_malloc): Print more information when a
20347 free magic is broken.
20348 (pupa_free): If the first free header is not free actually, set
20349 it to P.
20350
20351 * kern/main.c (pupa_load_normal_mode): Just load the module
20352 "normal".
20353 (pupa_main): Don't print the message
20354 "Entering into rescue mode..." here.
20355
20356 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
20357 Declared.
20358 (pupa_rescue_cmd_initrd): Likewise.
20359 (pupa_rescue_cmd_initrd): Likewise.
20360
20361 * include/pupa/symbol.h (FUNCTION): Specify the type.
20362 (VARIABLE): Likewise.
20363
20364 * include/pupa/err.h (pupa_err_t): Added
20365 PUPA_ERR_UNKNOWN_COMMAND.
20366
20367 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
20368 (pupa_dl_get_prefix): Likewise.
20369
20370 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
20371 Added _chain.mod and _linux.mod instead of chain.mod and
20372 linux.mod.
20373 (chain_mod_SOURCES): Renamed to ...
20374 (_chain_mod_SOURCES): ... this.
20375 (chain_mod_CFLAGS): Renamed to ...
20376 (_chain_mod_CFLAGS): ... this.
20377 (linux_mod_SOURCES): Renamed to ...
20378 (_linux_mod_SOURCES): ... this.
20379 (linux_mod_CFLAGS): Renamed to ...
20380 (_linux_mod_CFLAGS): ... this.
20381 (normal_mod_SOURCES): New variable.
20382 (normal_mod_CFLAGS): Likewise.
20383 (normal_mod_ASFLAGS): Likewise.
20384
20385 2003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
20386
20387 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
20388 possible.
20389
20390 * kern/dl.c (pupa_dl_ref): Refer depending modules
20391 recursively.
20392 (pupa_dl_unref): Unrefer depending modules recursively.
20393 Don't call pupa_dl_unload implicitly, because PUPA can crash if
20394 a module is unloaded before one depending on that module is
20395 unloaded.
20396 (pupa_dl_unload): Unload depending modules explicitly,
20397 if possible.
20398
20399 2003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
20400
20401 * include/pupa/i386/pc/linux.h: New file.
20402 * loader/i386/pc/linux.c: Likewise.
20403
20404 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
20405 Removed.
20406 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
20407 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
20408 of PUPA_CHAINLOADER_BOOT_SECTOR.
20409
20410 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
20411 (pupa_linux_prot_size): New variable.
20412 (pupa_linux_tmp_addr): Likewise.
20413 (pupa_linux_real_addr): Likewise.
20414 (pupa_linux_boot_zimage): New function.
20415 (pupa_linux_boot_bzimage): Likewise.
20416
20417 * kern/i386/pc/init.c (struct mem_region): New structure.
20418 (MAX_REGIONS): New macro.
20419 (mem_regions): New variable.
20420 (num_regions): Likewise.
20421 (pupa_os_area_addr): Likewise.
20422 (pupa_os_area_size): Likewise.
20423 (pupa_lower_mem): Likewise.
20424 (pupa_upper_mem): Likewise.
20425 (add_mem_region): New function.
20426 (compact_mem_regions): Likewise.
20427 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
20428 the size of the conventional memory and that of so-called upper
20429 memory (before the first memory hole).
20430 Instead of adding each found region to free memory, use
20431 add_mem_region and add them after removing overlaps.
20432 Also, add only 1/4 of the upper memory to free memory. The rest
20433 is used for loading OS images. Maybe this is ad hoc, but this
20434 makes it much easier to relocate OS images when booting.
20435
20436 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
20437 (pupa_enter_rescue_mode): Don't register initrd and module.
20438
20439 * kern/mm.c: Include pupa/dl.h.
20440
20441 * kern/main.c: Include pupa/file.h and pupa/device.h.
20442
20443 * kern/loader.c (pupa_loader_load_module_func): Removed.
20444 (pupa_loader_load_module): Likewise.
20445
20446 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
20447 ``.o''.
20448
20449 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
20450 (pupa_linux_tmp_addr): Likewise.
20451 (pupa_linux_real_addr): Likewise.
20452 (pupa_linux_boot_zimage): Likewise.
20453 (pupa_linux_boot_bzimage): Likewise.
20454
20455 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
20456 (pupa_upper_mem): Likewise.
20457 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
20458 module is too dangerous.
20459
20460 * include/pupa/loader.h (pupa_os_area_addr): Declared.
20461 (pupa_os_area_size): Likewise.
20462 (pupa_loader_set): Remove the first argument. Loader doesn't
20463 manage modules or initrd any longer.
20464 (pupa_loader_load_module): Removed.
20465
20466 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
20467 (linux_mod_SOURCES): New variable.
20468 (linux_mod_CFLAGS): Likewise.
20469
20470 2003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
20471
20472 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
20473 the length of a blocklist correctly.
20474
20475 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
20476 Use ioctl only if the OS file is a block device.
20477 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
20478 not very useful for normal files.
20479
20480 * kern/main.c (pupa_set_root_dev): New function.
20481 (pupa_load_normal_mode): Likewise.
20482 (pupa_main): Call those above.
20483
20484 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
20485 pupa_uint16_t.
20486
20487 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
20488
20489 2003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
20490
20491 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
20492 (setup): Configure the installed partition information and the
20493 dl prefix.
20494
20495 * loader/i386/pc/chainloader.c (my_mod): New variable.
20496 (pupa_chainloader_unload): New function.
20497 (pupa_rescue_cmd_chainloader): Refer itself.
20498 (PUPA_MOD_INIT): Save its own module in MY_MOD.
20499
20500 * kern/i386/pc/startup.S (install_partition): Removed.
20501 (version_string): Likewise.
20502 (config_file): Likewise.
20503 (pupa_install_dos_part): New variable.
20504 (pupa_install_bsd_part): Likewise.
20505 (pupa_prefix): Likewise.
20506 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
20507
20508 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
20509 and pupa/misc.h.
20510 (make_install_device): New function.
20511 (pupa_machine_init): Set the dl prefix.
20512
20513 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
20514 (buf): Renamed to ...
20515 (linebuf): ... this.
20516 (pupa_rescue_cmd_prefix): New function.
20517 (pupa_rescue_cmd_insmod): Likewise.
20518 (pupa_rescue_cmd_rmmod): Likewise.
20519 (pupa_rescue_cmd_lsmod): Likewise.
20520 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
20521 rmmod and lsmod.
20522
20523 * kern/mm.c (pupa_memalign): If failed even after invalidating
20524 disk caches, unload unneeded modules and retry.
20525
20526 * kern/misc.c (pupa_memmove): New function.
20527 (pupa_memcpy): Removed.
20528 (pupa_strcpy): New function.
20529 (pupa_itoa): Made static.
20530
20531 * kern/dl.c (pupa_dl_iterate): New function.
20532 (pupa_dl_ref): Likewise.
20533 (pupa_dl_unref): Likewise.
20534 (pupa_dl_unload): Return if succeeded or not.
20535 (pupa_dl_unload_unneeded): New function.
20536 (pupa_dl_unload_all): Likewise.
20537 (pupa_dl_init): Renamed to ...
20538 (pupa_dl_set_prefix): ... this.
20539 (pupa_dl_get_prefix): New function.
20540
20541 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
20542 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
20543 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
20544 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
20545 (pupa_install_dos_part): Declared.
20546 (pupa_install_bsd_part): Likewise.
20547 (pupa_prefix): Likewise.
20548 (pupa_boot_drive): Likewise.
20549
20550 * include/pupa/types.h: Fix a typo.
20551
20552 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
20553 pupa_memmove.
20554 (pupa_memmove): Declared.
20555 (pupa_strcpy): Likewise.
20556
20557 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
20558 pupa_mod_init takes one argument, its own module.
20559 (pupa_dl_unload_unneeded): Declared.
20560 (pupa_dl_unload_all): Likewise.
20561 (pupa_dl_ref): Likewise.
20562 (pupa_dl_unref): Likewise.
20563 (pupa_dl_iterate): Likewise.
20564 (pupa_dl_init): Renamed to ...
20565 (pupa_dl_set_prefix): ... this.
20566 (pupa_dl_get_prefix): Declared.
20567
20568 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
20569 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
20570 unloaded.
20571 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
20572 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
20573
20574 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
20575 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
20576
20577 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
20578
20579 * util/i386/pc/pupa-setup.c (setup): Define the internal
20580 function find_first_partition_start at the top level, because GCC
20581 3.0.x cannot compile internal functions in deeper scopes
20582 correctly.
20583 (find_root_device): Use lstat instead of stat.
20584 Don't follow symbolic links.
20585 Fix the path-constructing code.
20586
20587 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
20588 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
20589 by a BLKGETSIZE ioctl first, because block devices don't fill
20590 the member st_mode of the structure stat on Linux.
20591 [__linux__] (linux_find_partition): Use a temporary buffer
20592 REAL_DEV for the working space. Copy it to DEV before returning.
20593 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
20594 buffer cache consistent.
20595 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
20596 strncmp. The previous value was merely wrong.
20597 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
20598
20599 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
20600 FAT size is 12. The previous value was merely wrong.
20601
20602 * kern/main.c (pupa_main): Don't split the starting message from
20603 newlines.
20604
20605 * kern/term.c (pupa_putchar): Put CR after LF instead of before
20606 LF, because BIOS goes crazy about character attributes in this
20607 case.
20608
20609 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
20610
20611 * include/i386/pc/util/biosdisk.h: New file.
20612 * util/i386/pc/biosdisk.c: Likewise.
20613 * util/i386/pc/pupa-setup.c: Likewise.
20614
20615 * Makefile.in (INCLUDE_DISTFILES): Added
20616 include/pupa/i386/pc/util/biosdisk.h.
20617 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
20618 directory util/i386/pc.
20619 (install-local): Added a rule for sbin_UTILITIES.
20620 (uninstall): Likewise.
20621
20622 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
20623
20624 * util/misc.c (xrealloc): New function.
20625 (pupa_malloc): Likewise.
20626 (pupa_free): Likewise.
20627 (pupa_realloc): Likewise.
20628 (pupa_stop): Likewise.
20629 (pupa_putchar): Likewise.
20630
20631 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
20632
20633 * include/pupa/util/misc.h (xrealloc): Declared.
20634
20635 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
20636 macro.
20637 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
20638 (PUPA_BOOT_MACHINE_BPB_END): ... this.
20639
20640 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
20641 [PUPA_UTIL] (pupa_fat_fini): Likewise.
20642
20643 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
20644 way should be implemented.
20645 [PUPA_UTIL] (pupa_fat_fini): Likewise.
20646
20647 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
20648 the size of NAME for safety.
20649 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
20650 0x88.
20651
20652 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
20653 (pupa_setup_SOURCES): Likewise.
20654
20655 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
20656
20657 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
20658
20659 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
20660 bunch of pushl's from pusha, because this destroys the return
20661 value.
20662
20663 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
20664
20665 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
20666 This means that any missing prototypes could be fatal. Also, you
20667 must take care when writing assembly code. See the comments at
20668 the beginning of startup.S, for more details.
20669
20670 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
20671 compilation mechanism.
20672 (pupa_chainloader_real_boot): Likewise.
20673 (pupa_biosdisk_rw_int13_extensions): Likewise.
20674 (pupa_biosdisk_rw_standard): Likewise.
20675 (pupa_biosdisk_check_int13_extensions): Likewise.
20676 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
20677 (pupa_biosdisk_get_diskinfo_standard): Likewise.
20678 (pupa_get_memsize): Likewise.
20679 (pupa_get_mmap_entry): Likewise.
20680 (pupa_console_putchar): Likewise.
20681 (pupa_console_setcursor): Likewise.
20682 (pupa_getrtsecs): Use pushl instead of push.
20683
20684 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
20685 memory instead of the stack for a mmap entry, because some
20686 BIOSes may ignore the maximum size and overflow.
20687
20688 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
20689
20690 * genmk.rb (PModule#rule): Compile automatically generated
20691 sources with module-specific CFLAGS as well as other sources.
20692
20693 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
20694
20695 * configure.ac: Check ld.
20696 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
20697 respectively, before checking endianness and sizes.
20698
20699 * Makefile.in (LD): New variable.
20700
20701 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
20702
20703 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
20704
20705 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
20706
20707 * Changelog: New file.
20708