]> git.proxmox.com Git - grub2.git/blob - ChangeLog
fa1dd641cd81f05502367bbf80447fe8b0c5872b
[grub2.git] / ChangeLog
1 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
2
3 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
4 * normal/handler.c (read_handler_list): Likewise.
5
6 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
7
8 Misc cleanup.
9
10 * kern/command.c (grub_register_command_prio): Use
11 grub_zalloc() instead of explicitly zeroing data.
12 * kern/list.c: Include `<grub/mm.h>'.
13 (grub_named_list_find): Replace `0' with `NULL'.
14 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
15 (fs_module_list): Change type to `grub_named_list_t'. Update all
16 users.
17 * normal/dyncmd.c (read_command_list): Add space between function
18 call and parenthesis.
19 * normal/handler.c (read_handler_list): Likewise.
20
21 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
22
23 * normal/auth.c (punishment_delay): Moved from here ...
24 (grub_auth_strcmp): ... to here (inside function).
25
26 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27
28 * include/grub/list.h (struct grub_named_list): Remove `const'
29 qualifier from `name'.
30 (struct grub_prio_list): Likewise.
31
32 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
33
34 * normal/auth.c: Include `<grub/time.h>'.
35 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
36
37 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
38
39 * normal/auth.c (punishment_delay): New variable.
40 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
41 (grub_auth_check_authentication): Punish failed login attempts with
42 an incremental (2^N) delay.
43
44 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
45
46 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
47 path with $(srcdir).
48
49 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
50
51 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
52
53 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
54
55 * util/i386/coreboot/grub-mkrescue.in: New file.
56 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
57 variables.
58
59 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
60 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
61 * configure.ac: Add header and function checks to satisfy grub-mkisofs
62 requirements.
63 * util/mkisofs/defaults.h: New file.
64 * util/mkisofs/eltorito.c: Likewise.
65 * util/mkisofs/exclude.h: Likewise.
66 * util/mkisofs/fnmatch.c: Likewise.
67 * util/mkisofs/getopt.c: Likewise.
68 * util/mkisofs/getopt1.c: Likewise.
69 * util/mkisofs/hash.c: Likewise.
70 * util/mkisofs/include/fctldefs.h: Likewise.
71 * util/mkisofs/include/mconfig.h: Likewise.
72 * util/mkisofs/include/prototyp.h: Likewise.
73 * util/mkisofs/include/statdefs.h: Likewise.
74 * util/mkisofs/iso9660.h: Likewise.
75 * util/mkisofs/joliet.c: Likewise.
76 * util/mkisofs/match.c: Likewise.
77 * util/mkisofs/match.h: Likewise.
78 * util/mkisofs/mkisofs.c: Likewise.
79 * util/mkisofs/mkisofs.h: Likewise.
80 * util/mkisofs/multi.c: Likewise.
81 * util/mkisofs/name.c: Likewise.
82 * util/mkisofs/rock.c: Likewise.
83 * util/mkisofs/tree.c: Likewise.
84 * util/mkisofs/write.c: Likewise.
85
86 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
87
88 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
89 being insecure.
90
91 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
92
93 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
94 `grub-mkimage' (and use $0 when possible).
95
96 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
97
98 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
99 error message for excessively large memory map.
100
101 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
102
103 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
104 executable bit.
105
106 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
107
108 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
109 message for coreboot users.
110
111 2009-11-07 Robert Millan <rmh.grub@aybabtu.com>
112
113 Fix build with GNU gold.
114
115 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
116 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
117 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
118 link addresses.
119 * aclocal.m4: Likewise.
120
121 2009-11-04 Felix Zielcke <fzielcke@z-51.de>
122
123 * configure.ac (AC_PREREQ): Bump to 2.59d.
124 * INSTALL: Make it more clear when Autoconf and Ruby are
125 needed and when to run `./autogen.sh'.
126
127 2009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
128
129 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
130 OSes.
131
132 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
133
134 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
135
136 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
137
138 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
139 giving it to GNU Mach.
140
141 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
142
143 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
144 GNU partition number to get internal GRUB partition number.
145
146 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
147
148 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
149 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
150
151 2009-11-01 Robert Millan <rmh.grub@aybabtu.com>
152
153 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
154 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
155 case.
156
157 2009-11-01 Felix Zielcke <fzielcke@z-51.de>
158
159 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
160
161 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
162
163 Fix build problem.
164
165 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
166 `-isystem=$(srcdir)/include'.
167
168 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
169
170 * util/i386/pc/grub-install.in: Remove hint that device.map should be
171 checked (grub-install doesn't currently rely on it).
172
173 2009-10-29 Robert Millan <rmh.grub@aybabtu.com>
174
175 Revert SVN r2660.
176
177 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
178 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
179 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
180 * conf/i386-ieee1275.rmk: Likewise.
181 * conf/i386-pc.rmk: Likewise.
182 * conf/powerpc-ieee1275.rmk: Likewise.
183 * conf/sparc64-ieee1275.rmk: Likewise.
184 * conf/x86_64-efi.rmk: Likewise.
185
186 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
187
188 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
189
190 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
191
192 * include/grub/misc.h: Stop checking for APPLE_CC.
193
194 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
195
196 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
197 doesn't cause an infinite call loop.
198
199 2009-10-28 Felix Zielcke <fzielcke@z-51.de>
200
201 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
202 strings.
203
204 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
205
206 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
207 variable.
208 * Makefile.in: Likewise.
209
210 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
211
212 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
213
214 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
215
216 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
217
218 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
219
220 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
221
222 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
223
224 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
225 from here ...
226 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
227
228 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
229
230 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
231 in $(MAKEINFO) invocation. This makes it clear in output that
232 errors are being ignored.
233
234 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
235
236 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
237 from here ...
238 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
239 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
240 * conf/i386-ieee1275.rmk: Likewise.
241 * conf/i386-pc.rmk: Likewise.
242 * conf/powerpc-ieee1275.rmk: Likewise.
243 * conf/sparc64-ieee1275.rmk: Likewise.
244 * conf/x86_64-efi.rmk: Likewise.
245
246 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
247
248 * util/grub-editenv.c (main): If only a command is given, use
249 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
250 (usage): FILENAME is now optional and has a default.
251
252 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
253
254 Improve grub-mkconfig performance when there are several menu
255 entries on a single filesystem.
256
257 * util/grub.d/10_linux.in (linux_entry): Cache the output of
258 prepare_grub_to_access_device.
259 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
260 * util/grub.d/30_os-prober.in: Likewise.
261
262 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
263
264 * util/grub.d/10_freebsd.in: Remove.
265 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
266 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
267
268 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
269
270 * docs/grub.cfg: Fix example usage of *BSD loaders.
271
272 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
273
274 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
275 grub_util_error() call.
276
277 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
278
279 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
280 `reserved_first_sector' member.
281 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
282 `reserved_first_sector' to 1.
283 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
284 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
285 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
286 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
287 filesystems which begin at first sector.
288 (options): New option --skip-fs-probe.
289 (main): Handle --skip-fs-probe and pass it to setup().
290
291 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
292
293 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
294 (memset): Fix function prototype.
295
296 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
297 2009-10-25 Vasily Averin <vvs@parallels.com>
298
299 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
300 `dirent.direntlen == 0'.
301
302 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
303
304 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
305 `cpio'.
306 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
307
308 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
309
310 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
311 `__trampoline_setup' and `__ucmpdi2'.
312 * include/grub/powerpc/libgcc.h: Only export symbols for functions
313 that libgcc provides.
314
315 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
316
317 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
318 * include/grub/sparc64/libgcc.h (memset): Likewise.
319 * include/grub/misc.h (memset, memcmp): New function prototypes.
320
321 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
322
323 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
324 `cpio'.
325 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
326
327 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
328
329 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
330 * docs/grub.cfg: Compensate for recent change in multiboot
331 loader (since 2009-08-14 it won't pass filename to payload).
332 * util/grub.d/10_hurd.in: Likewise.
333
334 2009-10-21 Felix Zielcke <fzielcke@z-51.de>
335
336 * config.guess: Update to latest version from config git
337 repository.
338 * config.sub: Likewise.
339
340 2009-10-20 Robert Millan <rmh.grub@aybabtu.com>
341
342 Fix build on sparc64.
343
344 * configure.ac: Perform checks for libgcc symbols before
345 adding `-nostdlib' to LDFLAGS.
346
347 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
348
349 Let user specify OpenBSD root device.
350
351 * loader/i386/bsd.c (openbsd_root): New variable.
352 (openbsd_opts): New option 'root'.
353 (OPENBSD_ROOT_ARG): New macro.
354 (grub_openbsd_boot): Use 'openbsd_root'.
355 (grub_cmd_openbsd): Fill 'openbsd_root'.
356
357 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
358
359 * NEWS: Misc adjustments.
360
361 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
362
363 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
364
365 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
366
367 * configure.ac: Bump version to 1.97.
368
369 2009-10-16 Colin Watson <cjwatson@ubuntu.com>
370
371 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
372 -mno-3dnow on x86 architectures. Some toolchains enable these
373 features by default, but they rely on registers that aren't enabled
374 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
375
376 2009-10-15 Robert Millan <rmh.grub@aybabtu.com>
377
378 Make entry text a bit more readable.
379
380 * util/grub.d/10_linux.in: Add `with' before `Linux'.
381
382 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
383
384 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
385
386 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
387
388 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
389 operations.
390
391 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
392
393 * configure.ac: Add missing dollar.
394
395 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
396
397 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
398
399 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
400 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
401 exports.
402 * include/grub/sparc64/libgcc.h: Likewise. Use
403 preprocessor conditionals.
404
405 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
406
407 * conf/common.rmk (grub-dumpbios): Remove rule.
408 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
409 * util/grub-dumpbios.in: Remove file.
410
411 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
412
413 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
414 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
415
416 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
417 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
418 users.
419
420 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
421 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
422 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
423 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
424 users.
425
426 2009-10-12 Robert Millan <rmh.grub@aybabtu.com>
427
428 * term/tparm.c: Switch to GPLv3.
429
430 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
431
432 * include/grub/i386/cpuid.h: Add header protection.
433
434 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
435
436 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
437
438 * include/grub/i386/cpuid.h: New file.
439 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
440 (has_longmode): Rename to ...
441 (grub_cpuid_has_longmode): ... this. Update all users. Remove
442 `static' attribute.
443 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
444 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
445 on a CPU that doesn't implement AMD64 instruction set.
446
447 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
448
449 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
450 that version.texi is rebuilt on version number changes.
451
452 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
453
454 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
455 Fixes bug #27602.
456
457 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
458
459 * util/i386/pc/grub-install.in: Source
460 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
461 that the --grub-probe option will work.
462 * util/sparc64/ieee1275/grub-install.in: Likewise.
463
464 2009-10-05 Robert Millan <rmh.grub@aybabtu.com>
465
466 * configure.ac: Bump version to 1.97~beta4.
467
468 2009-10-03 Robert Millan <rmh.grub@aybabtu.com>
469
470 Resync grub-mkdevicemap in x86_64-efi.
471
472 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
473 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
474 `util/devicemap.c'.
475
476 2009-10-01 Colin Watson <cjwatson@ubuntu.com>
477
478 * util/grub-editenv.c (create_envblk_file): Write new block with a
479 .new suffix and then rename it into place, to ensure atomic
480 creation.
481
482 2009-09-28 Robert Millan <rmh.grub@aybabtu.com>
483
484 Do not automatically install headers.
485
486 * Makefile.in (include_DATA): Remove. Update all users.
487
488 2009-09-26 Robert Millan <rmh.grub@aybabtu.com>
489
490 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
491 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
492
493 * util/osdetect.lua: Remove.
494 * script/lua/lauxlib.c: Likewise.
495 * script/lua/ldebug.c: Likewise.
496 * script/lua/grub_main.c: Likewise.
497 * script/lua/lauxlib.h: Likewise.
498 * script/lua/ldebug.h: Likewise.
499 * script/lua/ltablib.c: Likewise.
500 * script/lua/liolib.c: Likewise.
501 * script/lua/lstrlib.c: Likewise.
502 * script/lua/lualib.h: Likewise.
503 * script/lua/ldo.c: Likewise.
504 * script/lua/ldump.c: Likewise.
505 * script/lua/ldo.h: Likewise.
506 * script/lua/loslib.c: Likewise.
507 * script/lua/lundump.c: Likewise.
508 * script/lua/grub_lib.c: Likewise.
509 * script/lua/ldblib.c: Likewise.
510 * script/lua/lundump.h: Likewise.
511 * script/lua/lmem.c: Likewise.
512 * script/lua/grub_lib.h: Likewise.
513 * script/lua/lmathlib.c: Likewise.
514 * script/lua/lstate.c: Likewise.
515 * script/lua/ltm.c: Likewise.
516 * script/lua/lvm.c: Likewise.
517 * script/lua/lmem.h: Likewise.
518 * script/lua/lstate.h: Likewise.
519 * script/lua/ltm.h: Likewise.
520 * script/lua/ltable.c: Likewise.
521 * script/lua/lvm.h: Likewise.
522 * script/lua/llex.c: Likewise.
523 * script/lua/lgc.c: Likewise.
524 * script/lua/grub_lua.h: Likewise.
525 * script/lua/loadlib.c: Likewise.
526 * script/lua/lfunc.c: Likewise.
527 * script/lua/lopcodes.c: Likewise.
528 * script/lua/lparser.c: Likewise.
529 * script/lua/ltable.h: Likewise.
530 * script/lua/llex.h: Likewise.
531 * script/lua/lgc.h: Likewise.
532 * script/lua/lfunc.h: Likewise.
533 * script/lua/lbaselib.c: Likewise.
534 * script/lua/lopcodes.h: Likewise.
535 * script/lua/lparser.h: Likewise.
536 * script/lua/lzio.c: Likewise.
537 * script/lua/linit.c: Likewise.
538 * script/lua/lobject.c: Likewise.
539 * script/lua/llimits.h: Likewise.
540 * script/lua/lstring.c: Likewise.
541 * script/lua/lzio.h: Likewise.
542 * script/lua/lapi.c: Likewise.
543 * script/lua/lcode.c: Likewise.
544 * script/lua/lua.h: Likewise.
545 * script/lua/lobject.h: Likewise.
546 * script/lua/lstring.h: Likewise.
547 * script/lua/lapi.h: Likewise.
548 * script/lua/lcode.h: Likewise.
549 * script/lua/luaconf.h: Likewise.
550
551 2009-09-26 Colin Watson <cjwatson@ubuntu.com>
552
553 * docs/grub.texi (Command-line and menu entry commands): Document
554 date and echo commands.
555
556 2009-09-24 Pavel Roskin <proski@gnu.org>
557
558 * include/grub/kernel.h (struct grub_module_header): Remove
559 `grub_module_header_types'. Make `type' unsigned. Make `size'
560 32-bit on all platforms.
561 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
562 8-bit field. Use grub_host_to_target32() for `size'.
563 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
564 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
565 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
566
567 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
568
569 Fix "lost keypress" bug in at_keyboard.
570
571 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
572 Checks for readyness of input buffer (without flushing it).
573 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
574 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
575
576 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
577
578 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
579 size check within GRUB_MACHINE_PCBIOS section.
580
581 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
582
583 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
584 return value.
585 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
586 KEYBOARD_ISREADY check.
587 (grub_at_keyboard_checkkey): Rename to ...
588 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
589 Remove gratuitous cast.
590
591 2009-09-23 Colin Watson <cjwatson@ubuntu.com>
592
593 * configure.ac: Call AC_PROG_MKDIR_P.
594 * Makefile.in (docs/stamp-vti): Create docs directory. Create
595 version.texi in $(builddir) rather than $(srcdir).
596 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
597 to makeinfo's @include search path.
598
599 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
600
601 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
602
603 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
604
605 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
606 for `*.dpkg-new'.
607
608 2009-09-21 Colin Watson <cjwatson@ubuntu.com>
609
610 Build info documentation. Some code borrowed from Automake.
611
612 * configure.ac: Check for makeinfo.
613 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
614 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
615 docs/version.texi.
616 (MOSTLYCLEANFILES): Add vti.tmp.
617 (docs/version.texi, docs/stamp-vti): Update automatically.
618 (docs/grub.info): Build info documentation. Use --force and ignore
619 errors for now.
620 (all-local): Add $(INFOS).
621 (install-local): Install info files.
622 (uninstall): Uninstall info files.
623 * docs/version.texi: Remove from revision control. This file is
624 automatically generated on build now.
625 * gendistlist.sh: Add `*.info'.
626
627 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
628
629 * kern/term.c: Fix indentation.
630
631 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
632
633 * util/hostdisk.c: Fix a comment.
634
635 2009-09-20 Robert Millan <rmh.grub@aybabtu.com>
636
637 Fix regression introduced in r2539.
638
639 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
640 to 0xA1.
641
642 2009-09-19 Colin Watson <cjwatson@ubuntu.com>
643
644 * util/grub.d/30_os-prober.in: Don't throw away stderr from
645 os-prober. Under normal operation, it does not print anything to
646 stderr; if it does, we need to debug it, and throwing away stderr
647 makes that excessively difficult.
648
649 2009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
650
651 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
652
653 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
654
655 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
656 AC_LANG_PROGRAM from autoconf.
657 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
658 prototypes (fixes warning).
659
660 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
661 `--disable-werror' was used.
662
663 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
664
665 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
666 uninitialized `lastaddr'.
667
668 2009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
669
670 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
671
672 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
673
674 * commands/test.c (get_fileinfo): Return immediately if
675 grub_fs_probe fails.
676
677 2009-09-14 José Martínez <xosemp@gmail.com>
678
679 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
680
681 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
682
683 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
684 output.
685
686 2009-09-13 Robert Millan <rmh.grub@aybabtu.com>
687
688 * configure.ac: Remove --enable-grub-pe2elf. Only build
689 grub-pe2elf when needed by the build system itself.
690 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
691
692 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
693
694 * configure.ac: Bump version to 1.97~beta3.
695 * docs/version.texi: Likewise.
696
697 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
698
699 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
700 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
701 from here ...
702 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
703 (grub_linux_setup_video): ... to here (with some adjustments).
704
705 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
706
707 Fix memory corruption issue (spotted by Colin Watson).
708
709 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
710 causing returned size to be stored in an incorrect memory location.
711 Fix use of uninitialized value when storing the returned size.
712
713 2009-09-12 Yves Blusseau <blusseau@zetam.org>
714
715 Change clean rules to properly remove files
716
717 * genmk.rb: add new clean rules
718 * Makefile.in (clean): add the new targets
719 (mostlyclean): likewise
720
721 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
722
723 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
724 to grub_uint64_t.
725 * fs/ntfs.c (init_file): Understand 64-bit sizes for
726 non-resident files.
727
728 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
729
730 * configure.ac: Don't look for help2man when cross-compiling. Fixes
731 part of bug #27349.
732
733 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
734
735 * util/grub-mkconfig.in: Make the created config mode 400 and
736 print a warning if it fails.
737
738 2009-09-10 Robert Millan <rmh.grub@aybabtu.com>
739
740 * util/grub.d/40_custom.in: Ask user to type custom entries below
741 comment, rather than below 'exec tail' line.
742
743 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
744
745 * util/grub.d/40_custom.in: Make sure that the explanatory text is
746 visible in grub.cfg.
747
748 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
749
750 * util/grub.d/40_custom.in: Make it a little clearer how to use this
751 file.
752
753 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
754
755 * docs/grub.cfg: Add an example menu entry for memtest86+.
756
757 2009-09-09 Felix Zielcke <fzielcke@z-51.de>
758
759 * config.guess: Update to latest version from config git.
760 * config.sub: Likewise.
761
762 2009-09-08 Colin Watson <cjwatson@ubuntu.com>
763
764 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
765 unknown-command case. Fixes bug #27320.
766
767 2009-09-08 Felix Zielcke <fzielcke@z-51.de>
768
769 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
770 `help' if the command exists.
771
772 2009-09-06 Robert Millan <rmh.grub@aybabtu.com>
773
774 * INSTALL: Require GCC 4.1.3 or later.
775
776 2009-09-06 Yves Blusseau <blusseau@zetam.org>
777
778 * Makefile.in (RMKFILES): add i386-qemu.rmk
779 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
780 $(srcdir)/stamp-h.in
781
782 2009-09-05 Robert Millan <rmh.grub@aybabtu.com>
783
784 * util/grub-probe.c (probe): Comment out buggy codepath, which
785 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
786 should be re-enabled after 1.97.
787
788 2009-09-05 Felix Zielcke <fzielcke@z-51.de>
789
790 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
791 find searches for.
792
793 2009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
794
795 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
796 unnecessary calls to grub_error.
797
798 2009-09-04 Colin Watson <cjwatson@ubuntu.com>
799
800 * NEWS: Mention `keystatus' and Unicode fonts.
801
802 2009-09-04 Robert Millan <rmh.grub@aybabtu.com>
803
804 * configure.ac: Bump version to 1.97~beta2.
805 * docs/version.texi: Likewise.
806
807 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
808
809 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
810 containing unwind information in some cases where it previously did
811 not. Use -fno-dwarf2-cfi-asm if available to restore the old
812 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
813 discussion.
814
815 2009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
816
817 Embedding loadenv module into grub-emu
818
819 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
820 commands/loadenv.c
821 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
822 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
823 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
824 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
825 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
826 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
827
828 2009-09-03 Magnus Granberg <zorry@ume.nu>
829
830 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
831 include -fPIE in the default specs.
832 * configure.ac: Check if pie_possible is yes and add -fno-PIE
833 to TARGET_CFLAGS.
834
835 2009-09-03 Felix Zielcke <fzielcke@z-51.de>
836
837 * INSTALL: Note that GNU Bison 2.3 or later is required.
838
839 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
840
841 * kern/i386/pc/startup.S: Fix typo.
842
843 2009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
844
845 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
846 according to GCS.
847
848 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
849
850 * docs/grub.texi (Naming convention): Describe one-based partition
851 numbering.
852 (Device syntax): Likewise.
853 (File name syntax): Likewise.
854 (Block list syntax): Likewise.
855 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
856 menu.lst.
857 (File name syntax): Likewise.
858 (Command-line and menu entry commands): Document acpi, blocklist,
859 crc, export, insmod, keystatus, ls, set, and unset commands.
860
861 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
862
863 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
864 to avoid implying that only one of --shift, --ctrl, or --alt may be
865 used.
866
867 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
868
869 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
870 rather than comparing against S_IFREG, which will almost never work.
871
872 2009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
873
874 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
875 (write_blocklists): Likewise.
876
877 2009-09-01 Colin Watson <cjwatson@ubuntu.com>
878
879 * script/lua/grub_lua.h (fputs): Supply a format string as the first
880 argument to grub_printf.
881
882 2009-09-01 Felix Zielcke <fzielcke@z-51.de>
883
884 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
885 non GNU test.
886
887 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
888
889 * kern/file.c (grub_file_read): Spelling fix
890
891 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
892
893 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
894 loading of headers in some cases.
895
896 2009-08-30 Robert Millan <rmh.grub@aybabtu.com>
897
898 * configure.ac: Bump version to 1.97~beta1.
899 * docs/version.texi: Likewise.
900
901 2009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
902
903 * include/grub/i386/xnu.h: Add license header.
904 include grub/err.h explicitly.
905
906 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
907
908 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
909 to `ufs' in the vfs.root.mountfrom kernel parameter.
910
911 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
912
913 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
914
915 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
916 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
917
918 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
919 `ARRAY_SIZE' macro.
920
921 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
922
923 * kern/file.c (grub_file_read): Check offset.
924 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
925 * fs/jfs.c (grub_jfs_read_file): Likewise.
926 * fs/ntfs.c (grub_ntfs_read): Likewise.
927 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
928 * fs/minix.c (grub_minix_read_file): Correct offset check.
929 * fs/ufs.c (grub_ufs_read_file): Likewise.
930
931 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
932
933 * term/i386/pc/console.c (bios_data_area): Cast
934 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
935
936 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
937
938 1-bit optimised blitters.
939
940 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
941 prototype.
942 (grub_video_fbblit_replace_24bit_1bit): Likewise.
943 (grub_video_fbblit_replace_16bit_1bit): Likewise.
944 (grub_video_fbblit_replace_8bit_1bit): Likewise.
945 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
946 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
947 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
948 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
949 function.
950 (grub_video_fbblit_replace_24bit_1bit): Likewise.
951 (grub_video_fbblit_replace_16bit_1bit): Likewise.
952 (grub_video_fbblit_replace_8bit_1bit): Likewise.
953 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
954 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
955 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
956 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
957 when possible.
958 * video/video.c (grub_video_get_blit_format): Return
959 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
960
961 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
962
963 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
964 the first argument to grub_printf.
965
966 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
967 2009-08-28 Robert Millan <rmh.grub@aybabtu.com>
968
969 Add `getkeystatus' terminal method. Add a new `keystatus' command
970 to query it.
971
972 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
973 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
974 modifier key bitmasks.
975 (struct grub_term_input): Add `getkeystatus' member.
976 (grub_getkeystatus): Add prototype.
977 * kern/term.c (grub_getkeystatus): New function.
978
979 * include/grub/i386/pc/memory.h
980 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
981 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
982 Data Area layout.
983 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
984 (grub_console_term_input): Set `getkeystatus' member.
985 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
986 constants.
987 (grub_usb_keyboard_getreport): Likewise.
988 (grub_usb_keyboard_checkkey): Likewise.
989 (grub_usb_keyboard_getkeystatus): New function.
990 (grub_usb_keyboard_term): Set `getkeystatus' member.
991
992 * commands/keystatus.c: New file.
993 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
994 (keystatus_mod_SOURCES): New variable.
995 (keystatus_mod_CFLAGS): Likewise.
996 (keystatus_mod_LDFLAGS): Likewise.
997 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
998 commands/keystatus.c.
999 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
1000 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
1001 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
1002 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
1003 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
1004 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
1005
1006 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
1007
1008 Split befs.mod and afs.mod into *_be.mod and *.mod
1009
1010 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
1011 (grub_fstest_SOURCES): Likewise.
1012 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
1013 (afs_be_mod_SOURCES): New variable.
1014 (afs_be_mod_CFLAGS): Likewise.
1015 (afs_be_mod_LDFLAGS): Likewise.
1016 (befs_be_mod_SOURCES): Likewise.
1017 (befs_be_mod_CFLAGS): Likewise.
1018 (befs_be_mod_LDFLAGS): Likewise.
1019 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
1020 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
1021 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
1022 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
1023 (grub_emu_SOURCES): Likewise.
1024 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
1025 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
1026 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
1027 * fs/afs_be.c: New file.
1028 * fs/befs_be.c: New file.
1029 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
1030 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
1031 (U16): Replaced with ...
1032 (grub_afs_to_cpu16): ...this. All users updated.
1033 (U32): Replaced with ...
1034 (grub_afs_to_cpu32): ...this. All users updated.
1035 (U64): Replaced with ...
1036 (grub_afs_to_cpu64): ...this. All users updated.
1037 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
1038 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
1039 (grub_afs_validate_sblock): Check only one endianness.
1040 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
1041 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
1042 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
1043 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
1044 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
1045 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
1046 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
1047 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
1048
1049 2009-08-26 Bean <bean123ch@gmail.com>
1050
1051 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
1052 64-bit number.
1053 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
1054 (grub_xfs_inode_block): Change return type to grub_uint64_t.
1055 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
1056
1057 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
1058
1059 NetBSD memory map support.
1060
1061 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
1062 (grub_netbsd_btinfo_mmap_header): New structure.
1063 (grub_netbsd_btinfo_mmap_entry): Likewise.
1064 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
1065
1066 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
1067
1068 Enable bsd.mod on coreboot.
1069
1070 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
1071 (bsd_mod_SOURCES): New variable.
1072 (bsd_mod_CFLAGS): Likewise.
1073 (bsd_mod_LDFLAGS): Likewise.
1074 (bsd_mod_ASFLAGS): Likewise.
1075 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
1076 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
1077
1078 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
1079
1080 Cleanup NetBSD root support.
1081
1082 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
1083 grub_bsd_get_device.
1084 Fix typo.
1085
1086 2009-08-25 Felix Zielcke <fzielcke@z-51.de>
1087
1088 * util/grub.d/00_header.in: Move check for the video backend of
1089 gfxterm from here ...
1090 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
1091 a suitable video backend.
1092
1093 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
1094
1095 Fix breakage in grub-setup.
1096
1097 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
1098 "msdos_partition_map".
1099
1100 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
1101
1102 Fix breakage in normal/auth.c.
1103
1104 * normal/auth.c (grub_iswordseparator): New function.
1105
1106 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
1107
1108 Authentication support.
1109
1110 * commands/password.c: New file.
1111 * conf/common.rmk (pkglib_MODULES): Add password.mod.
1112 (password_mod_SOURCES): New variable.
1113 (password_mod_CFLAGS): Likewise.
1114 (password_mod_LDFLAGS): Likewise.
1115 (normal_mod_SOURCES): Add normal/auth.c.
1116 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
1117 normal/auth.c.
1118 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
1119 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
1120 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
1121 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
1122 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
1123 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
1124 * include/grub/auth.h: New file.
1125 * include/grub/err.h (grub_err_t): New enum value
1126 GRUB_ERR_ACCESS_DENIED.
1127 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
1128 'users'.
1129 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
1130 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
1131 users updated.
1132 * normal/auth.c: New file.
1133 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
1134 (grub_cmdline_run): Don't allow to go to command line without
1135 authentication.
1136 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
1137 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
1138 menuentry without superuser rights.
1139 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
1140 user isn't a superuser.
1141
1142 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
1143
1144 Save space by inlining misc.c functions.
1145
1146 * kern/misc.c (grub_iswordseparator): Made static.
1147 * kern/misc.c (grub_strcat): Moved from here ...
1148 * include/grub/misc.h (grub_strcat): ... here. Inlined.
1149 * kern/misc.c (grub_strncat): Moved from here ...
1150 * include/grub/misc.h (grub_strncat): ... here. Inlined.
1151 * kern/misc.c (grub_strcasecmp): Moved from here ...
1152 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
1153 * kern/misc.c (grub_strncasecmp): Moved from here ...
1154 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
1155 * kern/misc.c (grub_isalpha): Moved from here ...
1156 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
1157 * kern/misc.c (grub_isdigit): Moved from here ...
1158 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
1159 * kern/misc.c (grub_isgraph): Moved from here ...
1160 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
1161 * kern/misc.c (grub_tolower): Moved from here ...
1162 * include/grub/misc.h (grub_tolower): ... here. Inlined.
1163
1164 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
1165
1166 * script/sh/function.c (grub_script_function_find): Cut error message
1167 not to flood terminal.
1168 * script/sh/lexer.c (grub_script_yylex): Remove command line length
1169 limit.
1170 * script/sh/script.c (grub_script_arg_add): Duplicate string.
1171
1172 2009-08-24 Colin Watson <cjwatson@ubuntu.com>
1173
1174 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
1175 `report' grub_uint8_t *.
1176 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
1177 Use a 50-millisecond timeout rather than just repeating
1178 grub_usb_keyboard_getreport 50 times.
1179 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
1180
1181 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
1182
1183 Rename *_partition_map to part_*
1184
1185 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
1186 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
1187 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
1188 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
1189 All users updated.
1190 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
1191 All users updated.
1192 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
1193 * util/grub-probe.c (probe_partmap): Don't transform partition name
1194 to get module name.
1195
1196 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
1197
1198 Fix OpenBSD and NetBSD support.
1199
1200 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
1201 memory address conflict.
1202 (OPENBSD_MMAP_ACPI): New definition.
1203 (OPENBSD_MMAP_NVS): Likewise.
1204 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
1205 and OPENBSD_MMAP_NVS.
1206 Add memory map terminator
1207 Explicit cast when calling grub_unix_real_boot.
1208 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
1209
1210 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
1211
1212 Let user specify NetBSD root device.
1213
1214 * loader/i386/bsd.c (netbsd_root): New variable.
1215 (netbsd_opts): New option 'root'.
1216 (NETBSD_ROOT_ARG): New macro.
1217 (grub_netbsd_boot): Use 'netbsd_root'.
1218 (grub_bsd_unload): Free 'netbsd_root'.
1219 (grub_cmd_netbsd): Fill 'netbsd_root'.
1220
1221 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
1222
1223 Support for 64-bit NetBSD.
1224
1225 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
1226 point when booting non-FreeBSD.
1227
1228 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
1229
1230 Support --no-smp and --no-acpi for NetBSD.
1231
1232 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
1233 (NETBSD_AB_NOACPI): Likewise.
1234 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
1235 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
1236
1237 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
1238
1239 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
1240 errors.
1241 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
1242 errors. Call grub_error when needed.
1243
1244 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
1245
1246 * commands/search.c (search_fs): Try searching without autoload first.
1247 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
1248 filesystem module explicitly for faster booting.
1249
1250 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
1251
1252 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
1253
1254 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
1255
1256 * util/grub.d/30_os-prober.in: Disable os-prober if
1257 `GRUB_DISABLE_OS_PROBER' was set to true.
1258
1259 2009-08-23 Robert Millan <rmh.grub@aybabtu.com>
1260
1261 * partmap/pc.c: Rename to ...
1262 * partmap/msdos.c: ... this. Update all users.
1263 (grub_pc_partition_map): Rename to ...
1264 (grub_msdos_partition_map): ... this. Update all users.
1265
1266 * parttool/pcpart.c: Rename to ...
1267 * parttool/msdospart.c: ... this. Update all users.
1268
1269 * include/grub/pc_partition.h: Rename to ...
1270 * include/grub/msdos_partition.h: ... this. Update all users.
1271 (grub_pc_partition_bsd_entry): Rename to ...
1272 (grub_msdos_partition_bsd_entry): ... this. Update all users.
1273 (grub_pc_partition_disk_label): Rename to ...
1274 (grub_msdos_partition_disk_label): ... this. Update all users.
1275 (grub_pc_partition_entry): Rename to ...
1276 (grub_msdos_partition_entry): ... this. Update all users.
1277 (grub_pc_partition_mbr): Rename to ...
1278 (grub_msdos_partition_mbr): ... this. Update all users.
1279 (grub_pc_partition): Rename to ...
1280 (grub_msdos_partition): ... this. Update all users.
1281 (grub_pc_partition_is_empty): Rename to ...
1282 (grub_msdos_partition_is_empty): ... this. Update all users.
1283 (grub_pc_partition_is_extended): Rename to ...
1284 (grub_msdos_partition_is_extended): ... this. Update all users.
1285 (grub_pc_partition_is_bsd): Rename to ...
1286 (grub_msdos_partition_is_bsd): ... this. Update all users.
1287
1288 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
1289 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
1290 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
1291 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
1292 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
1293 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
1294 (gpt_mod_LDFLAGS): Rename to ...
1295 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
1296 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
1297 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
1298 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
1299 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
1300 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
1301 (part_gpt_mod_LDFLAGS): ... this.
1302 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
1303 `pcpart.mod' to `msdospart.mod'.
1304 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
1305 to ...
1306 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
1307 (msdospart_mod_LDFLAGS): ... this.
1308
1309 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
1310
1311 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
1312 (openbsd_opts): Likewise.
1313 (netbsd_opts): Likewise.
1314 (freebsd_flags): Added 0 terminator.
1315 (openbsd_flags): Likewise.
1316 (netbsd_flags): Likewise.
1317 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
1318 (grub_cmd_freebsd): Transformed into extended command.
1319 (grub_cmd_openbsd): Likewise.
1320 (grub_cmd_netbsd): Likewise.
1321 (cmd_freebsd): Changed type to grub_extcmd_t.
1322 (cmd_openbsd): Likewise.
1323 (cmd_netbsd): Likewise.
1324 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
1325 grub_cmd_openbsd as extended commands.
1326 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
1327 cmd_netbsd and cmd_openbsd
1328
1329 2009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
1330
1331 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
1332
1333 2009-08-21 Pavel Roskin <proski@gnu.org>
1334
1335 * Makefile.in (install-local): When checking if a file is in the
1336 build directory, use "test -e" to detect symlinks.
1337
1338 * Makefile.in (install-local): Remove all files in
1339 $(DESTDIR)$(pkglibdir) before installing new files there.
1340
1341 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
1342
1343 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
1344 grub-mkelfimage.
1345
1346 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
1347
1348 * util/grub-mkconfig.in: Don't use gfxterm by default if not
1349 explicitly specified by the user.
1350
1351 2009-08-18 Pavel Roskin <proski@gnu.org>
1352
1353 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
1354 grub_uint8_t pointer for data.
1355 * include/grub/fbutil.h (struct grub_video_fbblit_info):
1356 Likewise.
1357 * video/fb/fbutil.c: Remove unnecessary casts.
1358
1359 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
1360
1361 VBE cleanup.
1362
1363 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
1364 (grub_vbe_set_video_mode): Save active mode info
1365 only after setting the mode.
1366 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
1367 second argument.
1368
1369 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
1370
1371 Rename variables for clarity.
1372
1373 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
1374 (active_vbe_mode_info): ... this. All users updated.
1375 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
1376 All users updated.
1377 (initial_mode): Rename to ...
1378 (initial_vbe_mode): ... this. All users updated.
1379 (mode_in_use): Rename to ..
1380 (vbe_mode_in_use): ... this. All users updated.
1381 (mode_list): Rename to ..
1382 (vbe_mode_list): ... this. All users updated.
1383 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
1384 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
1385 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
1386 'mode_list_size' to 'vbe_mode_list_size'.
1387 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
1388 'best_mode_info' to 'best_vbe_mode_info' and
1389 'best_mode' to 'best_vbe_mode'
1390
1391 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
1392
1393 Remove duplicate grub_video_fb_get_video_ptr.
1394
1395 * include/grub/fbutil.h (get_data_ptr): Rename to ...
1396 (grub_video_fb_get_video_ptr): ... this.
1397 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
1398 * video/fb/fbutil.c: Add comment about addressing.
1399 (get_data_ptr): Rename to ...
1400 (grub_video_fb_get_video_ptr): ... this. All users updated.
1401 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
1402
1403 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
1404
1405 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
1406 grub_dprintf() that was just added.
1407
1408 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
1409
1410 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
1411 (DEFAULT_VIDEO_MODE): Remove macros.
1412 (grub_linux_boot): Remove assumption that Linux has FB support,
1413 and use "text" as default video mode.
1414
1415 2009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
1416
1417 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
1418 grub_dprintf.
1419 * fs/fat.c (grub_fat_read_data): Likewise.
1420
1421 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
1422
1423 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
1424 payload.
1425 (grub_module): Likewise.
1426
1427 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
1428
1429 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
1430 mbi->cmdline but free playground.
1431
1432 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
1433
1434 Handle group offset on UFS1.
1435
1436 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
1437 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
1438
1439 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
1440
1441 Split ufs.mod into ufs1.mod and ufs2.mod.
1442
1443 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
1444 (grub_fstest_SOURCES): Likewise.
1445 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
1446 (ufs_mod_SOURCES): Remove.
1447 (ufs_mod_CFLAGS): Likewise.
1448 (ufs_mod_LDFLAGS): Likewise.
1449 (ufs1_mod_SOURCES): New variable.
1450 (ufs1_mod_CFLAGS): Likewise.
1451 (ufs1_mod_LDFLAGS): Likewise.
1452 (ufs2_mod_SOURCES): New variable.
1453 (ufs2_mod_CFLAGS): Likewise.
1454 (ufs2_mod_LDFLAGS): Likewise.
1455 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
1456 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
1457 Likewise.
1458 (grub_emu_SOURCES): Likewise.
1459 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
1460 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
1461 (grub_setup_SOURCES): Likewise.
1462 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
1463 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
1464 (grub_setup_SOURCES): Likewise.
1465 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
1466 Likewise.
1467 * fs/ufs2.c: New file.
1468 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
1469
1470 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
1471
1472 Framebuffer split.
1473
1474 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
1475 subsystem at the end.
1476 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
1477 (video_fb_mod_SOURCES): New variable.
1478 (video_fb_mod_CFLAGS): Likewise.
1479 (video_fb_mod_LDFLAGS): Likewise.
1480 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
1481 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
1482 * video/i386/pc/vbeblit.c: Moved from here ...
1483 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
1484 * video/i386/pc/vbefill.c: Moved from here ...
1485 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
1486 * video/i386/pc/vbeutil.c: Moved from here ...
1487 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
1488 * include/grub/i386/pc/vbeblit.h: Moved from here ...
1489 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
1490 * include/grub/i386/pc/vbefill.h: Moved from here ...
1491 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
1492 * include/grub/i386/pc/vbeutil.h: Moved from here ...
1493 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
1494 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
1495 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
1496 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
1497 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
1498 (grub_video_adapter): Added 'get_info_and_fini'.
1499 (grub_video_get_info_and_fini): New prototype.
1500 (grub_video_set_mode): make modestring const char *.
1501 * loader/i386/linux.c (grub_linux_setup_video): Use
1502 grub_video_get_info_and_fini.
1503 (grub_linux_boot): Move modesetting just before booting.
1504 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
1505 grub_video_get_info_and_fini.
1506 * video/i386/pc/vbe.c: Moved framebuffer part ...
1507 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
1508 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
1509 grub_video_fbstd_colors and grub_video_fb_set_palette.
1510 (grub_video_vbe_init): Clear 'framebuffer' variable and use
1511 grub_video_fb_init.
1512 (grub_video_vbe_fini): Use grub_video_fb_fini.
1513 (grub_video_vbe_setup): Use framebuffer.render_target instead of
1514 render_target and use grub_video_fb_set_active_render_target and
1515 grub_video_fb_set_palette.
1516 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
1517 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
1518 (grub_video_vbe_adapter): Use framebuffer.
1519 * video/video.c (grub_video_get_info_and_fini): New function.
1520 (grub_video_set_mode): Make modestring const char *.
1521 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
1522 values are already initialised.
1523
1524 2009-08-14 Pavel Roskin <proski@gnu.org>
1525
1526 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
1527 ABS and APPLE_CC.
1528 * boot/i386/pc/diskboot.S: Likewise.
1529 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
1530 sectors allow compilation on MacOSX.
1531 * conf/i386-pc.rmk: Enable unconditional compilation of
1532 lnxboot.img.
1533
1534 2009-08-13 Colin Watson <cjwatson@ubuntu.com>
1535
1536 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
1537 * util/grub.d/00_header.in: Enter interruptible sleep if
1538 GRUB_HIDDEN_TIMEOUT is set.
1539
1540 2009-08-13 Yves Blusseau <blusseau@zetam.org>
1541
1542 * include/grub/symbol.h: Add the LOCAL macro.
1543 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
1544 starting with "L_".
1545
1546 2009-08-13 Pavel Roskin <proski@gnu.org>
1547
1548 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
1549 any modern compilers we support.
1550
1551 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
1552 Use local labels starting with "L_" so that Apple assembler
1553 knows they are local.
1554
1555 2009-08-10 Robert Millan <rmh.grub@aybabtu.com>
1556
1557 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
1558 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
1559 (bsd_kernel_types): ... this enum.
1560
1561 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
1562 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
1563 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
1564
1565 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
1566 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
1567 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
1568 messages.
1569
1570 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
1571
1572 * util/grub-dumpdevtree: Moved from here ...
1573 * util/i386/efi/grub-dumpdevtree: ... to here.
1574 (hexify): New function. Converts a string to its hex version.
1575 Generate hex versions of "efi" and "device-properties" by calling
1576 hexify() on the ASCII strings rather than by hardcoding numbers.
1577
1578 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
1579
1580 * fs/jfs.c: Update copyright year.
1581
1582 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
1583
1584 * util/grub.d/00_header.in: Fix a comment.
1585 * util/grub.d/10_linux.in: Likewise.
1586 * util/grub.d/10_windows.in: Likewise.
1587 * util/grub.d/10_hurd.in: Likewise.
1588
1589 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
1590
1591 * util/grub-mkconfig.in: Allow the user to specify the used font
1592 with GRUB_FONT.
1593
1594 2009-08-08 Pavel Roskin <proski@gnu.org>
1595
1596 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
1597 available, xfs.mod needs it now.
1598
1599 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
1600 the "g" modifier in sed when the intention is to strip something
1601 once. This fixes comparison of kernels with multiple dashes.
1602
1603 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
1604 on it. Add missing space before closing bracket. Fix
1605 misleading formatting.
1606
1607 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
1608
1609 * docs/grub.texi: Major overhaul. Remove all sections that are
1610 specific to GRUB Legacy, or mostly composed of Legacy-specific
1611 information.
1612
1613 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
1614
1615 * docs/version.texi: New file. Provides version information for
1616 grub.texi.
1617
1618 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
1619
1620 * docs/grub.texi: Update CVS information to SVN.
1621 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
1622
1623 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
1624
1625 * util/grub-mkconfig.in: Remove a wrong `fi'.
1626
1627 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
1628
1629 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
1630 (grub_jfs_uuid): New function.
1631 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
1632
1633 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
1634
1635 * util/grub-mkconfig_lib.in (font_path): Move the functionality
1636 of it to ...
1637 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
1638 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
1639
1640 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
1641
1642 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
1643 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
1644 Update all users.
1645
1646 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
1647 not just "vmlinu[zx]".
1648 Moved from here ...
1649 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
1650 all users.
1651
1652 * util/grub.d/10_linux.in (find_latest): Moved from here ...
1653 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
1654 all users.
1655
1656 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
1657
1658 * util/grub.d/10_freebsd.in: Use an absolute device path for
1659 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
1660
1661 2009-08-06 Felix Zielcke <fzielcke@z-51.de>
1662
1663 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
1664 handling of multiple abstraction modules.
1665
1666 2009-08-04 Robert Millan <rmh.grub@aybabtu.com>
1667
1668 Fix a bug resulting in black screen when loading Linux using a
1669 packed video mode.
1670
1671 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
1672 function.
1673
1674 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
1675 (grub_vbe_bios_getset_dac_palette_width): New function.
1676 (grub_vbe_bios_get_dac_palette_width)
1677 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
1678 grub_vbe_bios_getset_dac_palette_width()).
1679
1680 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
1681 check for return status.
1682 (grub_vbe_get_video_mode_info): When getting information for a packed
1683 mode (<= 8 bpp), obtain DAC palette width using
1684 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
1685 {red,green,blue}_mark_size.
1686
1687 2009-08-04 Felix Zielcke <fzielcke@z-51.de>
1688
1689 * commands/search.c (options): Fix help output to match actual code.
1690
1691 2009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
1692
1693 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
1694 of homegrown code.
1695
1696 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
1697
1698 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
1699 on XFS or ReiserFS.
1700
1701 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
1702
1703 Support Apple partition map with sector size different from 512 bytes.
1704
1705 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
1706 (apple_partition_map_iterate): Respect 'aheader.blocksize'
1707 and 'apart.partmap_size'.
1708
1709 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
1710 2009-08-01 Robert Millan <rmh.grub@aybabtu.com>
1711
1712 Fix cpuid command.
1713
1714 * commands/i386/cpuid.c (options): New variable.
1715 (grub_cmd_cpuid): Return real error.
1716 (GRUB_MOD_INIT(cpuid)): Declare options.
1717
1718 2009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
1719
1720 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
1721 valid.
1722
1723 2009-07-31 Bean <bean123ch@gmail.com>
1724
1725 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
1726 log2_inode.
1727 (grub_fshelp_node): Move inode field to the end.
1728 (grub_xfs_data): Remove inode field.
1729 (grub_xfs_inode_block): Calculate inode size using sblock.
1730 (grub_xfs_inode_offset): Likewise.
1731 (grub_xfs_read_inode): Calculate inode size using sblock.
1732 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
1733 (grub_xfs_iterate_dir): Calculate inode size using sblock.
1734 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
1735 to match inode size.
1736 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
1737 not accessible when data is null.
1738 (grub_xfs_open): Likewise.
1739
1740 2009-07-31 Bean <bean123ch@gmail.com>
1741
1742 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
1743 Don't change pv->disk if it's already set.
1744
1745 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
1746 (grub_raid_register): ... here.
1747 (grub_raid_rescan): Removed.
1748
1749 * include/grub/raid.h (grub_raid_rescan): Removed.
1750
1751 * util/grub-fstest.c: Remove include file <grub/raid.h>.
1752 (fstest): Replace grub_raid_rescan with module fini function followed
1753 by init function.
1754
1755 * util/grub-probe.c: Add include file <grub/raid.h>.
1756 (probe_raid_level): New function.
1757 (probe): Detect abstraction by walking the disk device, support two
1758 level of abstraction (LVM on RAID) when detecting partition map.
1759
1760 2009-07-31 Pavel Roskin <proski@gnu.org>
1761
1762 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
1763 to grub_zalloc(), it was erroneous.
1764 Reported by Bean <bean123ch@gmail.com>
1765
1766 2009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
1767
1768 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
1769 embedding zone, not only the first one.
1770
1771 2009-07-29 Joe Auricchio <jauricchio@gmail.com>
1772
1773 * term/gfxterm.c (clear_char): New function.
1774 (grub_virtual_screen_setup): Use clear_char.
1775 (scroll_up): Likewise.
1776 (grub_virtual_screen_cls): Likewise.
1777
1778 2009-07-29 Felix Zielcke <fzielcke@z-51.de>
1779
1780 * util/deviceiter.c (get_acceleraid_disk_name): New static
1781 function.
1782 (grub_util_iterate_devices): Handle Accelraid devices.
1783 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
1784
1785 2009-07-28 Robert Millan <rmh.grub@aybabtu.com>
1786
1787 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
1788 separator for the suggested gfxpayload string (';' collides with the
1789 parser and needs escaping).
1790
1791 2009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
1792
1793 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
1794 Clear direction flag before jumping to OS.
1795 (grub_multiboot2_real_boot): Likewise.
1796
1797 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
1798
1799 * util/i386/pc/grub-install: Fix parsing of --disk-module
1800 option.
1801
1802 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
1803
1804 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
1805 when embedding.
1806
1807 2009-07-26 Felix Zielcke <fzielcke@z-51.de>
1808
1809 * util/grub-mkconfig.in (package_version): New variable.
1810 Use it do display the version.
1811
1812 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
1813
1814 * kern/file.c (grub_file_open): Revert to previous check with
1815 grub_errno.
1816
1817 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
1818
1819 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
1820 from help line. It's out of sync with code.
1821
1822 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
1823
1824 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
1825 entries on failed boot.
1826
1827 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
1828
1829 * kern/file.c (grub_file_open): Fix an error check.
1830
1831 2009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
1832
1833 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
1834 partition map couldn't be identified.
1835
1836 2009-07-23 Pavel Roskin <proski@gnu.org>
1837
1838 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
1839 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
1840 case of little endian words becomes just an optimization.
1841 Respect const modifier.
1842 (md5_final): Use code that doesn't depend on endianness.
1843
1844 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
1845 to avoid loss of upper bits if align is unsigned and shorter
1846 than addr.
1847
1848 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
1849
1850 UUID support for UFS
1851
1852 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
1853 (grub_ufs_uuid): New function.
1854 (grub_ufs_fs): add .uuid
1855
1856 2009-07-21 Pavel Roskin <proski@gnu.org>
1857
1858 * kern/dl.c (grub_dl_check_header): Make static.
1859
1860 2009-07-21 Felix Zielcke <fzielcke@z-51.de>
1861
1862 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
1863 add drivemap for Vista. It breaks Windows 7.
1864
1865 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
1866
1867 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
1868 128 bytes
1869
1870 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
1871
1872 Add BFS support
1873
1874 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
1875 (grub_fstest_SOURCES): Likewise.
1876 (pkglib_MODULES): Add befs.mod.
1877 (befs_mod_SOURCES): New variable.
1878 (befs_mod_CFLAGS): Likewise.
1879 (befs_mod_LDFLAGS): Likewise.
1880 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
1881 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
1882 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
1883 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
1884 (grub_setup_SOURCES): Likewise.
1885 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
1886 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
1887 (grub_setup_SOURCES): Likewise.
1888 * fs/befs.c: New file.
1889 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
1890 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
1891 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
1892 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
1893 (B_KEY_INDEX_ALIGN): New declaration.
1894 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
1895 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
1896 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
1897 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
1898 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
1899 (grub_afs_mount) [MODE_BFS]: Likewise.
1900 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
1901 (grub_afs_fs): Use GRUB_AFS_FSNAME
1902 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
1903 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
1904 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
1905 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
1906
1907 2009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
1908
1909 * util/getroot.c (find_root_device): Add support for MacOSX.
1910 * util/hostdisk.c: Likewise.
1911
1912 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
1913
1914 * font/font.c (find_glyph): Check whether a font is present to avoid
1915 segmentation fault.
1916
1917 2009-07-20 Joe Auricchio <jauricchio@gmail.com>
1918
1919 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
1920
1921 2009-07-20 Pavel Roskin <proski@gnu.org>
1922
1923 * configure.ac: Trim excessively wordy excuses.
1924
1925 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
1926
1927 Add symlink, mtime and label support to AtheFS.
1928
1929 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
1930 (grub_afs_iterate_dir): Handle symlinks.
1931 (grub_afs_open): Use grub_afs_read_symlink.
1932 (grub_afs_dir): Likewise.
1933 Pass mtime.
1934 (grub_afs_label): New function.
1935 (grub_afs_fs): Add grub_afs_label.
1936 (grub_afs_read_symlink): New function.
1937
1938 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
1939
1940 Fix AtheFS support.
1941
1942 * fs/afs.c: Fix comments style.
1943 (grub_afs_blockrun): Declare as packed.
1944 (grub_afs_datastream): Likewise.
1945 (grub_afs_bnode): Likewise.
1946 (grub_afs_btree): Likewise.
1947 (grub_afs_sblock): Likewise.
1948 Declare `name' as char.
1949 (grub_afs_inode): Declare as packed.
1950 Change void *vnode to grub_uint32_t unused.
1951 (grub_afs_iterate_dir): Check that key_size is positive.
1952 (grub_afs_mount): Don't read superblock twice.
1953 (grub_afs_dir): Don't free node in case of error,
1954 grub_fshelp_find_file already handles this.
1955 (grub_afs_open): Likewise.
1956
1957 2009-07-19 Pavel Roskin <proski@gnu.org>
1958
1959 * Makefile.in: Remove LIBLZO and enable_lzo.
1960 * conf/i386-pc.rmk: Remove lzo support.
1961 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
1962 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
1963 support.
1964 * kern/i386/pc/lzo1x.S: Remove.
1965 * kern/i386/pc/startup.S: Remove lzo support.
1966 * util/i386/pc/grub-mkimage.c: Likewise.
1967
1968 2009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
1969
1970 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
1971 * fs/xfs.c (grub_xfs_dir): Likewise.
1972 * fs/afs.c (grub_afs_dir): Likewise.
1973 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
1974 (grub_iso9660_open): Likewise.
1975 * fs/jfs.c (grub_jfs_open): Likewise.
1976 * fs/ext2.c (grub_ext2_dir): Likewise.
1977 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
1978 * script/sh/lexer.c (grub_script_yylex): Likewise.
1979
1980 2009-07-16 Pavel Roskin <proski@gnu.org>
1981
1982 * configure.ac: Never add "-c" to CFLAGS.
1983
1984 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
1985
1986 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
1987 grub_cv_cc_efiemu should be used.
1988
1989 * configure.ac: Typo fixes.
1990
1991 * kern/mm.c (grub_zalloc): New function.
1992 (grub_debug_zalloc): Likewise.
1993 * include/grub/mm.h: Declare grub_zalloc() and
1994 grub_debug_zalloc().
1995 * util/misc.c (grub_zalloc): New function.
1996 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
1997 instead of grub_malloc(), remove unneeded initializations.
1998 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
1999 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
2000 * commands/parttool.c (grub_cmd_parttool): Likewise.
2001 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
2002 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
2003 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
2004 * disk/usbms.c (grub_usbms_finddevs): Likewise.
2005 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
2006 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
2007 (grub_cmd_efiemu_pnvram): Likewise.
2008 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
2009 * fs/iso9660.c (grub_iso9660_mount): Likewise.
2010 (grub_iso9660_iterate_dir): Likewise.
2011 * fs/jfs.c (grub_jfs_opendir): Likewise.
2012 * fs/ntfs.c (list_file): Likewise.
2013 (grub_ntfs_mount): Likewise.
2014 * kern/disk.c (grub_disk_open): Likewise.
2015 * kern/dl.c (grub_dl_load_core): Likewise.
2016 * kern/elf.c (grub_elf_file): Likewise.
2017 * kern/env.c (grub_env_context_open): Likewise.
2018 (grub_env_set): Likewise.
2019 (grub_env_set_data_slot): Likewise.
2020 * kern/file.c (grub_file_open): Likewise.
2021 * kern/fs.c (grub_fs_blocklist_open): Likewise.
2022 * loader/i386/multiboot.c (grub_module): Likewise.
2023 * loader/xnu.c (grub_xnu_create_key): Likewise.
2024 (grub_xnu_create_value): Likewise.
2025 * normal/main.c (grub_normal_add_menu_entry): Likewise.
2026 (read_config_file): Likewise.
2027 * normal/menu_entry.c (make_screen): Likewise.
2028 * partmap/sun.c (sun_partition_map_iterate): Likewise.
2029 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
2030 * script/sh/script.c (grub_script_parse): Likewise.
2031 * video/bitmap.c (grub_video_bitmap_create): Likewise.
2032 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
2033 * video/readers/png.c (grub_png_output_byte): Likewise.
2034 (grub_video_reader_png): Likewise.
2035
2036 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
2037
2038 Enable all targets that can be built by default
2039
2040 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
2041 grub-mkfont and grub-fstest if they can be built
2042
2043 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
2044
2045 Fix hang and segmentation fault in grub-emu-usb
2046
2047 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
2048 * util/usb.c (grub_libusb_devices): likewise
2049 (grub_libusb_init): rename to ...
2050 (GRUB_MOD_INIT (libusb)):...this
2051 (grub_libusb_fini): rename to ..
2052 (GRUB_MOD_FINI (libusb)):...this
2053 * disk/usbms.c (grub_usbms_transfer): fix retry logic
2054 * include/grub/disk.h (grub_raid_init): removed, it's useless
2055 (grub_raid_fini): likewise
2056 (grub_lvm_init): likewise
2057 (grub_lvm_fini): likewise
2058 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
2059 by grub_init_all
2060
2061 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
2062
2063 Fix libusb
2064
2065 * Makefile.in (LIBUSB): new macro
2066 * genmk.rb (Utility/print_tail): new method
2067 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
2068 (top level): call util.print_tail at the end.
2069
2070 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
2071
2072 Make FreeBSD accept zpool.cache
2073
2074 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
2075 type is /boot/zfs/zpool.cache
2076
2077 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
2078
2079 Fix 64-bit efiemu
2080
2081 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
2082 correct wrong typedef
2083 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
2084
2085 2009-07-15 Pavel Roskin <proski@gnu.org>
2086
2087 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
2088 * kern/disk.c (struct grub_disk_cache): Likewise.
2089
2090 * commands/probe.c (options): Typo fix.
2091
2092 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
2093 Increase to 0x5a to accommodate FAT32. Adjust other offsets
2094 accordingly.
2095 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
2096
2097 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
2098 the end of "Error" to make the message more readable.
2099
2100 * boot/i386/pc/boot.S (kernel_segment): Remove.
2101 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
2102 for destination.
2103
2104 * boot/i386/pc/boot.S (boot_version): Remove.
2105 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
2106 Remove.
2107
2108 * include/grub/i386/pc/boot.h: Sort all offsets.
2109 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
2110 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
2111 * boot/i386/pc/boot.S: Assert location of every offset listed in
2112 include/grub/i386/pc/boot.h.
2113
2114 2009-07-13 Pavel Roskin <proski@gnu.org>
2115
2116 * include/grub/i386/coreboot/machine.h: Rename
2117 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
2118 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
2119 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
2120
2121 * kern/dl.c: Force native word size to suppress warnings when
2122 compiling grub-emu.
2123
2124 * kern/device.c (grub_device_iterate): Change struct part_ent to
2125 hold the name, not a pointer to it. Use one grub_malloc() per
2126 partition, not two. Free partition_name if grub_malloc() fails.
2127 Set ents to NULL only before grub_partition_iterate() is called.
2128
2129 2009-07-11 Bean <bean123ch@gmail.com>
2130
2131 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
2132 childname.
2133
2134 2009-07-10 Bean <bean123ch@gmail.com>
2135 2009-07-10 Robert Millan <rmh.grub@aybabtu.com>
2136
2137 * kern/ieee1275/openfw.c (grub_children_iterate)
2138 (grub_devalias_iterate): Fix size evaluation for property or path
2139 strings, which was broken since r2132.
2140
2141 2009-07-07 Pavel Roskin <proski@gnu.org>
2142
2143 * commands/search.c (search_file): Merge into ...
2144 (search_fs): ... this. Accept search type as argument.
2145 (grub_cmd_search): Pass search type to search_fs().
2146
2147 * include/grub/util/console.h: New file.
2148 * util/console.c: Use it instead of grub/machine/console.h.
2149 * util/grub-emu.c: Likewise.
2150
2151 * lib/arg.c (find_long_option): Remove.
2152 (find_long): Add `len' argument, make `s' const char *.
2153 (grub_arg_parse): Parse long options in place, not in a
2154 temporary buffer.
2155
2156 2009-07-06 Pavel Roskin <proski@gnu.org>
2157
2158 * commands/search.c (search_fs): Fix potential NULL pointer
2159 dereference.
2160
2161 * commands/search.c (search_fs): Replace QUID macro with quid_fn
2162 function pointer.
2163
2164 2009-07-06 Daniel Mierswa <impulze@impulze.org>
2165
2166 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
2167 comparison.
2168
2169 2009-07-05 Pavel Roskin <proski@gnu.org>
2170
2171 * include/grub/i386/linux.h (struct linux_kernel_params):
2172 Restore padding3, it's still needed.
2173
2174 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
2175 FreeBSD.
2176 * util/osdetect.lua: Likewise.
2177
2178 2009-07-05 Bean <bean123ch@gmail.com>
2179
2180 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
2181
2182 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
2183 (grub_lua_getenv): Likewise.
2184 (grub_lua_setenv): Likewise.
2185 (save_errno): New function.
2186 (push_result): Likewise.
2187 (grub_lua_enum_device): Likewise.
2188 (grub_lua_enum_file): Likewise.
2189 (grub_lua_file_open): Likewise.
2190 (grub_lua_file_close): Likewise.
2191 (grub_lua_file_seek): Likewise.
2192 (grub_lua_file_read): Likewise.
2193 (grub_lua_file_getline): Likewise.
2194 (grub_lua_file_getsize): Likewise.
2195 (grub_lua_file_getpos): Likewise.
2196 (grub_lua_file_eof): Likewise.
2197 (grub_lua_file_exist): Likewise.
2198 (grub_lua_add_menu): Likewise.
2199
2200 * script/lua/grub_lua.h (isupper): New inline function.
2201 (islower): Likewise.
2202 (ispunct): Likewise.
2203 (isxdigit): Likewise.
2204 (strcspn): Change to normal function.
2205 (strpbkr): New function declaration.
2206 (memchr): Likewise.
2207
2208 * script/lua/grub_main.c (scan_str): New function.
2209 (strcspn): Likewise.
2210 (strpbrk): Likewise.
2211 (memchr): Likewise.
2212
2213 * script/lua/linit.c (lualibs): Enable the string library.
2214
2215 * util/osdetect.lua: New file.
2216
2217 2009-07-04 Robert Millan <rmh.grub@aybabtu.com>
2218
2219 * include/grub/i386/linux.h (struct linux_kernel_params): Add
2220 `capabilities' member.
2221
2222 2009-07-02 Pavel Roskin <proski@gnu.org>
2223
2224 * genparttoollist.sh: Add missing newline at the end.
2225
2226 2009-07-01 Pavel Roskin <proski@gnu.org>
2227
2228 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
2229
2230 * util/hostdisk.c (open_device): Remove `const' from
2231 `sysctl_size', as sysctlbyname() can change it (in this case it
2232 doesn't actually happen).
2233
2234 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
2235 using signed long int constants.
2236
2237 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
2238 constant to avoid a warning on FreeBSD.
2239
2240 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
2241 where it's needed.
2242
2243 * Makefile.in: Install include/grub/machine symlink.
2244
2245 * Makefile.in: When installing symlinks, use "cp -fR", which
2246 works on FreeBSD and MacOSX.
2247 From Yves Blusseau <cl7m42e02@sneakemail.com>
2248
2249 * kern/dl.c (grub_dl_resolve_symbol): Make static.
2250 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
2251
2252 * util/misc.c: Move grub_reboot() and grub_halt() ...
2253 * util/grub-emu.c: ... here. Make main_env static.
2254 * include/grub/util/misc.h: Remove main_env.
2255
2256 * kern/mm.c: Use correct format to print size_t.
2257
2258 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
2259 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
2260 * kern/powerpc/dl.c: Likewise.
2261 * kern/sparc64/dl.c: Likewise.
2262 * kern/x86_64/dl.c: Likewise.
2263
2264 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
2265
2266 Fix grub-emu build on sparc64-ieee1275.
2267
2268 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
2269 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
2270
2271 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
2272
2273 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
2274 (grub_reboot, grub_halt): New functions.
2275
2276 * util/i386/pc/misc.c: Delete. Update all users.
2277 * util/sparc64/ieee1275/misc.c: Likewise.
2278 * util/powerpc/ieee1275/misc.c: Likewise.
2279
2280 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
2281
2282 * conf/i386.rmk (setjmp_mod_SOURCES)
2283 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
2284 * conf/common.rmk (setjmp_mod_SOURCES)
2285 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
2286 to use $(target_cpu).
2287 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
2288 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
2289 * conf/powerpc-ieee1275.rmk: Likewise.
2290 * conf/sparc64-ieee1275.rmk: Likewise.
2291
2292 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
2293 $(target_cpu) for kern/$(target_cpu)/dl.c.
2294 * conf/i386-efi.rmk: Likewise.
2295 * conf/i386-ieee1275.rmk: Likewise.
2296 * conf/x86_64-efi.rmk: Likewise.
2297 * conf/i386-coreboot.rmk: Likewise.
2298 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
2299 $(target_cpu) for kern/$(target_cpu)/dl.c and for
2300 kern/$(target_cpu)/cache.S.
2301 * conf/sparc64-ieee1275.rmk: Likewise.
2302
2303 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
2304
2305 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
2306 type to `grub_uint8_t', and adjust `padding9' accordingly.
2307
2308 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
2309
2310 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
2311
2312 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
2313 assembly in final jump, using register constraints.
2314
2315 (grub_linux_boot): For text mode, initialize `have_vga' using
2316 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
2317
2318 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
2319 right before the final jump.
2320
2321 Set `video_mode' to 0x3.
2322
2323 Document initialization of `video_page', `video_mode' and
2324 `video_ega_bx'.
2325
2326 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
2327
2328 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
2329 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
2330 and set GRUB_LINUX_FLAG_QUIET appropriately.
2331
2332 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
2333
2334 Fix build on Debian / sparc.
2335
2336 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
2337
2338 2009-06-28 Pavel Roskin <proski@gnu.org>
2339
2340 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
2341 fix a warning.
2342
2343 * util/grub.d/10_linux.in: Match SUSE style initrd names.
2344
2345 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
2346
2347 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
2348 `err'.
2349
2350 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
2351
2352 Revert r2338.
2353
2354 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
2355 file can't be opened. grub_file_open() is already supposed to set
2356 grub_errno / grub_errmsg appropriately.
2357 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
2358
2359 2009-06-27 Pavel Roskin <proski@gnu.org>
2360 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
2361
2362 * include/grub/dl.h: Include grub/elf.h.
2363 (struct grub_dl): Add symtab field.
2364 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
2365 GRUB_MODULES_MACHINE_READONLY.
2366 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
2367 of the header for read-only modules.
2368 (grub_dl_unload): Free mod->symtab for read-only modules.
2369 * kern/i386/dl.c: Use mod->symtab.
2370 * kern/powerpc/dl.c: Likewise.
2371 * kern/sparc64/dl.c: Likewise.
2372 * kern/x86_64/dl.c: Likewise.
2373
2374 * conf/i386-qemu.rmk: New file.
2375 * kern/i386/qemu/startup.S: Likewise.
2376 * kern/i386/qemu/mmap.c: Likewise.
2377 * boot/i386/qemu/boot.S: Likewise.
2378 * include/grub/i386/qemu/time.h: Likewise.
2379 * include/grub/i386/qemu/serial.h: Likewise.
2380 * include/grub/i386/qemu/kernel.h: Likewise.
2381 * include/grub/i386/qemu/console.h: Likewise.
2382 * include/grub/i386/qemu/boot.h: Likewise.
2383 * include/grub/i386/qemu/init.h: Likewise.
2384 * include/grub/i386/qemu/machine.h: Likewise.
2385 * include/grub/i386/qemu/loader.h: Likewise.
2386 * include/grub/i386/qemu/memory.h: Likewise.
2387
2388 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
2389 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
2390 [qemu] (pkglib_IMAGES): Add `boot.img'.
2391 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
2392 [qemu] (boot_img_FORMAT): New variables.
2393 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
2394 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
2395 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
2396 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
2397 [qemu] (kernel_img_FORMAT): New variables.
2398
2399 * configure.ac: Recognise `i386-qemu'.
2400
2401 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
2402 (for no compression).
2403 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
2404 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
2405 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
2406 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
2407 ifdefs).
2408
2409 2009-06-27 Pavel Roskin <proski@gnu.org>
2410
2411 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
2412 read.
2413 * efiemu/prepare32.c: Likewise.
2414 * efiemu/prepare64.c: Likewise.
2415
2416 2009-06-26 Pavel Roskin <proski@gnu.org>
2417
2418 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
2419 * include/grub/elf.h: Define symbols without "32" or "64" based
2420 on GRUB_TARGET_WORDSIZE.
2421 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
2422 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
2423 ELF definitions.
2424 * efiemu/loadcore64.c: Likewise.
2425 * loader/i386/bsd32.c: Likewise.
2426 * loader/i386/bsd64.c: Likewise.
2427 * kern/dl.c: Remove own ELF definitions.
2428 * util/i386/efi/grub-mkimage.c: Likewise.
2429
2430 2009-06-23 Robert Millan <rmh.grub@aybabtu.com>
2431
2432 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
2433 segment 0x0 unconditionally, because the reference generated by
2434 GAS is an absolute address.
2435
2436 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
2437
2438 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
2439 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
2440
2441 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
2442
2443 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
2444 indexes. Check for -f explicitly.
2445 (search_file): Improve error message.
2446 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
2447
2448 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
2449
2450 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
2451 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
2452
2453 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
2454
2455 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
2456 * conf/i386-ieee1275.rmk: Likewise.
2457 * conf/i386-coreboot.rmk: Likewise.
2458
2459 * kern/i386/pc/startup.S (grub_stop): Remove function.
2460 * kern/i386/ieee1275/startup.S: Likewise.
2461 * kern/i386/coreboot/startup.S: Likewise.
2462 * kern/i386/misc.S (grub_stop): New function.
2463
2464 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
2465
2466 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
2467 * kern/i386/realmode.S (real_to_prot): ... to here.
2468
2469 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
2470
2471 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
2472 with `kernel.img'.
2473 (kernel_elf_SOURCES): Rename to ...
2474 (kernel_img_SOURCES): ... this.
2475 (kernel_elf_HEADERS): Rename to ...
2476 (kernel_img_HEADERS): ... this. Update all users.
2477 (kernel_elf_ASFLAGS): Rename to ...
2478 (kernel_img_ASFLAGS): ... this.
2479 (kernel_elf_CFLAGS): Rename to ...
2480 (kernel_img_CFLAGS): ... this.
2481 (kernel_elf_LDFLAGS): Rename to ...
2482 (kernel_img_LDFLAGS): ... this.
2483 * conf/i386-coreboot.rmk: Likewise.
2484 * conf/powerpc-ieee1275.rmk: Likewise.
2485
2486 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
2487 with "kernel.img".
2488
2489 2009-06-21 Pavel Roskin <proski@gnu.org>
2490
2491 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
2492 to match nested functions.
2493 * loader/sparc64/ieee1275/linux.c: Likewise.
2494
2495 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
2496
2497 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
2498
2499 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
2500 all i386 platforms.
2501
2502 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
2503
2504 Fix asm file handling on ELF, and remove workarounds.
2505
2506 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
2507 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
2508 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
2509 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
2510
2511 2009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
2512
2513 Load BSD ELF modules
2514
2515 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
2516 and loader/i386/bsd64.c
2517 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
2518 (FREEBSD_MODTYPE_ELF_MODULE): New definition
2519 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
2520 (grub_freebsd_load_elfmodule32): New declaration
2521 (grub_freebsd_load_elfmoduleobj64): Likewise
2522 (grub_freebsd_load_elf_meta32): Likewise
2523 (grub_freebsd_load_elf_meta64): Likewise
2524 (grub_freebsd_add_meta): Likewise
2525 (grub_freebsd_add_meta_module): Likewise
2526 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
2527 (grub_freebsd_add_meta_module): Likewise and move module-specific
2528 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
2529 (grub_cmd_freebsd): Add elf-kernel specific parts
2530 based on grub_freebsd_add_meta_module
2531 (grub_cmd_freebsd_module): Add type parsing moved from
2532 grub_freebsd_add_meta_module
2533 (grub_cmd_freebsd_module_elf): New function
2534 (cmd_freebsd_module_elf): New variable
2535 (GRUB_MOD_INIT): Register freebsd_module_elf
2536 * loader/i386/bsd32.c: New file
2537 * loader/i386/bsd64.c: Likewise
2538 * loader/i386/bsdXX.c: Likewise
2539 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
2540 (grub_elf64_load): Likewise
2541 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
2542 All users updated
2543 (grub_elf64_load_hook_t): Likewise
2544
2545 2009-06-21 Colin Watson <cjwatson@ubuntu.com>
2546
2547 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
2548 variable.
2549 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
2550 don't write a menu entry for recovery mode.
2551
2552 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
2553
2554 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
2555 after it's no longer needed.
2556
2557 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
2558
2559 * include/grub/i386/loader.h (grub_linux_prot_size)
2560 (grub_linux_tmp_addr, grub_linux_real_addr)
2561 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
2562 GRUB_MACHINE_PCBIOS.
2563 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
2564 common grub_util_info() call to ...
2565 (generate_image): ... here.
2566 Fix use of uninitialized memory, comparison of signed with
2567 unsigned integers and memory leak.
2568 Remove bogus module address message.
2569
2570 2009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
2571
2572 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
2573 grub_raid_register
2574 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
2575
2576 2009-06-19 Pavel Roskin <proski@gnu.org>
2577
2578 * configure.ac: Remove stray AC_MSG_CHECKING.
2579
2580 2009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
2581
2582 * disk/scsi.c (grub_scsi_open): use continue instead of big if
2583
2584 2009-06-18 Pavel Roskin <proski@gnu.org>
2585
2586 * conf/common.rmk: Add fs_file.mod.
2587 * disk/fs_file.c: New file.
2588 * include/grub/disk.h (enum grub_disk_dev_id): Add
2589 GRUB_DISK_DEVICE_FILE_ID.
2590
2591 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
2592
2593 Fix build with Apple's toolchain. Part 2
2594
2595 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
2596 a fake start
2597
2598 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
2599
2600 Fix build with Apple's toolchain. Part 1
2601
2602 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
2603 for long calls
2604 * configure.ac: remove a leftover AC_MSG_RESULT
2605 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
2606 Apple's toolchain
2607
2608 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
2609
2610 Fix warnings
2611
2612 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
2613 (decomp_block): initialize ch
2614 use grub_memcpy instead of memcpy
2615
2616 2009-06-17 Pavel Roskin <proski@gnu.org>
2617
2618 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
2619 version, use declarations needed to use vga_text as the startup
2620 console.
2621
2622 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
2623 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
2624 the kernel.
2625 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
2626 and grub_at_keyboard_fini(), it's done on module load and
2627 unload.
2628
2629 2009-06-17 Felix Zielcke <fzielcke@z-51.de>
2630
2631 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
2632 file can't be found.
2633 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
2634
2635 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
2636
2637 Fix newline handling
2638
2639 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
2640 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
2641 (grub_script_yylex): don't segfault on unterminated script
2642 newline terminates command and variable
2643
2644 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
2645
2646 avoid double grub_adjust_range call. Bug reported by David Simner
2647
2648 * kern/disk.c (grub_disk_write): change to raw disk access before
2649 calling disk_read
2650
2651 2009-06-17 Colin Watson <cjwatson@ubuntu.com>
2652
2653 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
2654 spaces, for the benefit of help2man.
2655 * util/i386/efi/grub-mkimage.c (usage): Likewise.
2656
2657 2009-06-16 Pavel Roskin <proski@gnu.org>
2658
2659 * kern/i386/halt.c: Include grub/machine/init.h.
2660 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
2661
2662 2009-06-16 Felix Zielcke <fzielcke@z-51.de>
2663
2664 * util/grub.d/30_os-prober.in: Use ${root} in the generated
2665 drivemap menuentry.
2666
2667 2009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
2668
2669 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
2670 `echo' command.
2671
2672 2009-06-16 Pavel Roskin <proski@gnu.org>
2673
2674 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
2675 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
2676 save %dx, we only need %dl and we never change it.
2677 * boot/i386/pc/cdboot.S: Don't set the root drive.
2678 * boot/i386/pc/pxeboot.S: Likewise.
2679 * include/grub/i386/pc/boot.h: Remove
2680 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
2681 GRUB_BOOT_MACHINE_DRIVE_CHECK.
2682 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
2683 * kern/i386/pc/init.c (make_install_device): Remove references
2684 to grub_root_drive.
2685 * kern/i386/pc/startup.S: Likewise.
2686 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
2687
2688 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
2689
2690 xnu_uuid command
2691
2692 * commands/xnu_uuid.c: new file
2693 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
2694 (xnu_uuid_mod_SOURCES): new variable
2695 (xnu_uuid_mod_CFLAGS): likewise
2696 (xnu_uuid_mod_LDFLAGS): likewise
2697 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
2698 * conf/i386-ieee1275.rmk: likewise
2699 * conf/i386-pc.rmk: likewise
2700 * conf/powerpc-ieee1275.rmk: likewise
2701 * conf/sparc64-ieee1275.rmk: likewise
2702 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
2703
2704 2009-06-16 Pavel Roskin <proski@gnu.org>
2705
2706 * configure.ac: Avoid '==' in test command, it's not portable.
2707
2708 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
2709
2710 Probe command
2711
2712 * commands/probe.c: new file
2713 * conf/common.rmk (pkglib_MODULES): add probe.mod
2714 (probe_mod_SOURCES): new variable
2715 (probe_mod_CFLAGS): likewise
2716 (probe_mod_LDFLAGS): likewise
2717 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
2718 * conf/i386-ieee1275.rmk: likewise
2719 * conf/i386-pc.rmk: likewise
2720 * conf/powerpc-ieee1275.rmk: likewise
2721 * conf/sparc64-ieee1275.rmk: likewise
2722
2723 2009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
2724
2725 Fix handling of string like \"hello\" and "a
2726 b"
2727
2728 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
2729 (grub_script_yylex): fix parsing of quoting, escaping and newline
2730
2731 2009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
2732
2733 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
2734 handling
2735
2736 2009-06-13 Jun Inoue <jun.lambda@gmail.com>
2737
2738 * util/grub-mkconfig.in: Fix parsing of --output option.
2739
2740 2009-06-12 Pavel Roskin <proski@gnu.org>
2741
2742 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
2743 genmk.rb don't need to be generated or installed.
2744
2745 2009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
2746
2747 * commands/i386/pc/drivemap_int13h.S: add more comments
2748
2749 2009-06-11 Pavel Roskin <proski@gnu.org>
2750
2751 * Makefile.in (uninstall): Uninstall manuals.
2752
2753 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
2754 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
2755 and update-grub_lib in two places.
2756 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
2757
2758 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
2759 a compiler warning.
2760
2761 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
2762 `entry_lo' to fix variable shadowing.
2763
2764 2009-06-11 Christian Franke <franke@computer.org>
2765
2766 * kern/misc.c (__enable_execute_stack): Add missing return type
2767 to prevent gcc warning.
2768
2769 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
2770
2771 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
2772
2773 2009-06-11 Pavel Roskin <proski@gnu.org>
2774
2775 * Makefile.in: Don't rely on any scripts being executable.
2776 Always use $(SHELL) to run shell scripts.
2777
2778 * configure.ac: Always define ___main if using -nostdlib. This
2779 fixes tests on Cygwin.
2780
2781 2009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
2782
2783 UDF fix
2784
2785 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
2786 is in bytes and not in blocks
2787
2788 2009-06-11 Pavel Roskin <proski@gnu.org>
2789
2790 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
2791 warning.
2792
2793 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
2794
2795 * util/grub.d/30_os-prober.in: Fix a comment. Source
2796 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
2797 to set the root device. Place drivemap command in the generated
2798 chain entry.
2799
2800 2009-06-11 Pavel Roskin <proski@gnu.org>
2801
2802 * configure.ac: Remove host_m32. Issues with 64-bit utilities
2803 have long been resolved.
2804
2805 2009-06-11 Colin Watson <cjwatson@ubuntu.com>
2806
2807 * util/grub.d/10_linux.in: Capitalise "Linux".
2808
2809 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
2810
2811 2009-06-11 Pavel Roskin <proski@gnu.org>
2812
2813 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
2814 fix a gcc warning and ensure that the function won't ever exit.
2815
2816 * kern/i386/ieee1275/init.c: Add missing prototype for
2817 grub_stop_floppy().
2818
2819 * loader/ieee1275/multiboot2.c [__i386__]: Include
2820 grub/cpu/multiboot.h.
2821
2822 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
2823 casts to short - they are not portable and cause warnings. Fix
2824 use of uninitialized values in input_buf. Use ARRAY_SIZE.
2825
2826 2009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
2827
2828 Drivemap fixes
2829
2830 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
2831 new function
2832 (grub_get_root_biosnumber_saved): new variable
2833 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
2834 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
2835 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
2836 %dx after the call if necessary
2837 * conf/common.rmk (pkglib_MODULES): remove boot.mod
2838 (boot_mod_SOURCES): remove
2839 (boot_mod_CFLAGS): remove
2840 (boot_mod_LDFLAGS): remove
2841 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
2842 (boot_mod_SOURCES): new variable
2843 (boot_mod_CFLAGS): likewise
2844 (boot_mod_LDFLAGS): likewise
2845 * conf/i386-efi.rmk: likewise
2846 * conf/i386-ieee1275.rmk: likewise
2847 * conf/i386-pc.rmk: likewise
2848 * conf/powerpc-ieee1275.rmk: likewise
2849 * conf/sparc64-ieee1275.rmk: likewise
2850 * conf/x86_64-efi.rmk: likewise
2851 * include/grub/i386/pc/biosnum.h: new file
2852 * lib/i386/pc/biosnum.c: likewise
2853 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
2854 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
2855 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
2856
2857 2009-06-10 Pavel Roskin <proski@gnu.org>
2858
2859 * io/gzio.c (test_header): Don't reuse one buffer for all data.
2860 Use separate variables. Read only the file size at the end, but
2861 not the checksum that we don't use.
2862
2863 * kern/file.c (grub_file_read): Use void pointer for the buffer.
2864 Adjust all callers.
2865
2866 * kern/ieee1275/openfw.c: Remove libc includes.
2867 * kern/ieee1275/cmain.c: Likewise.
2868 * include/grub/ieee1275/ieee1275.h: Likewise.
2869
2870 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
2871 compiler warnings.
2872
2873 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
2874
2875 * Makefile.in: Remove all trailing whitespace.
2876 * conf/i386-pc.rmk: Likewise.
2877 * conf/powerpc-ieee1275.rmk: Likewise.
2878 * conf/sparc64-ieee1275.rmk: Likewise.
2879 * docs/grub.texi: Likewise.
2880 * docs/texinfo.tex: Likewise.
2881 * disk/fs_uuid.c: Likewise.
2882 * disk/lvm.c: Likewise.
2883 * disk/scsi.c: Likewise.
2884 * disk/ata.c: Likewise.
2885 * disk/ieee1275/ofdisk.c: Likewise.
2886 * disk/i386/pc/biosdisk.c: Likewise.
2887 * disk/host.c: Likewise.
2888 * disk/raid.c: Likewise.
2889 * disk/efi/efidisk.c: Likewise.
2890 * disk/usbms.c: Likewise.
2891 * disk/memdisk.c: Likewise.
2892 * disk/loopback.c: Likewise.
2893 * kern/powerpc/dl.c: Likewise.
2894 * kern/device.c: Likewise.
2895 * kern/dl.c: Likewise.
2896 * kern/sparc64/dl.c: Likewise.
2897 * kern/ieee1275/ieee1275.c: Likewise.
2898 * kern/term.c: Likewise.
2899 * kern/fs.c: Likewise.
2900 * kern/i386/dl.c: Likewise.
2901 * kern/i386/pc/startup.S: Likewise.
2902 * kern/i386/pc/init.c: Likewise.
2903 * kern/i386/pc/mmap.c: Likewise.
2904 * kern/i386/pc/lzo1x.S: Likewise.
2905 * kern/i386/ieee1275/init.c: Likewise.
2906 * kern/i386/realmode.S: Likewise.
2907 * kern/i386/tsc.c: Likewise.
2908 * kern/partition.c: Likewise.
2909 * kern/corecmd.c: Likewise.
2910 * kern/file.c: Likewise.
2911 * kern/efi/efi.c: Likewise.
2912 * kern/efi/init.c: Likewise.
2913 * kern/efi/mm.c: Likewise.
2914 * kern/main.c: Likewise.
2915 * kern/err.c: Likewise.
2916 * kern/env.c: Likewise.
2917 * kern/disk.c: Likewise.
2918 * kern/generic/millisleep.c: Likewise.
2919 * kern/generic/rtc_get_time_ms.c: Likewise.
2920 * kern/misc.c: Likewise.
2921 * kern/parser.c: Likewise.
2922 * genmk.rb: Likewise.
2923 * configure.ac: Likewise.
2924 * boot/i386/pc/diskboot.S: Likewise.
2925 * boot/i386/pc/pxeboot.S: Likewise.
2926 * boot/i386/pc/boot.S: Likewise.
2927 * boot/i386/pc/lnxboot.S: Likewise.
2928 * boot/i386/pc/cdboot.S: Likewise.
2929 * parttool/pcpart.c: Likewise.
2930 * video/readers/tga.c: Likewise.
2931 * video/video.c: Likewise.
2932 * video/bitmap.c: Likewise.
2933 * lib/envblk.c: Likewise.
2934 * lib/i386/setjmp.S: Likewise.
2935 * fs/xfs.c: Likewise.
2936 * fs/afs.c: Likewise.
2937 * fs/fat.c: Likewise.
2938 * fs/ntfs.c: Likewise.
2939 * fs/udf.c: Likewise.
2940 * fs/affs.c: Likewise.
2941 * fs/iso9660.c: Likewise.
2942 * fs/hfs.c: Likewise.
2943 * fs/fshelp.c: Likewise.
2944 * fs/ext2.c: Likewise.
2945 * fs/jfs.c: Likewise.
2946 * fs/reiserfs.c: Likewise.
2947 * fs/hfsplus.c: Likewise.
2948 * fs/minix.c: Likewise.
2949 * fs/cpio.c: Likewise.
2950 * fs/sfs.c: Likewise.
2951 * fs/ufs.c: Likewise.
2952 * efiemu/prepare.c: Likewise.
2953 * efiemu/loadcore_common.c: Likewise.
2954 * efiemu/runtime/efiemu.sh: Likewise.
2955 * efiemu/runtime/efiemu.S: Likewise.
2956 * efiemu/runtime/efiemu.c: Likewise.
2957 * efiemu/pnvram.c: Likewise.
2958 * efiemu/main.c: Likewise.
2959 * efiemu/i386/pc/cfgtables.c: Likewise.
2960 * efiemu/i386/loadcore64.c: Likewise.
2961 * efiemu/i386/loadcore32.c: Likewise.
2962 * efiemu/loadcore.c: Likewise.
2963 * efiemu/symbols.c: Likewise.
2964 * efiemu/mm.c: Likewise.
2965 * include/grub/autoefi.h: Likewise.
2966 * include/grub/datetime.h: Likewise.
2967 * include/grub/term.h: Likewise.
2968 * include/grub/hfs.h: Likewise.
2969 * include/grub/lvm.h: Likewise.
2970 * include/grub/i386/tsc.h: Likewise.
2971 * include/grub/i386/linux.h: Likewise.
2972 * include/grub/i386/xnu.h: Likewise.
2973 * include/grub/i386/efiemu.h: Likewise.
2974 * include/grub/i386/pc/biosdisk.h: Likewise.
2975 * include/grub/i386/pc/memory.h: Likewise.
2976 * include/grub/i386/pc/vbe.h: Likewise.
2977 * include/grub/parttool.h: Likewise.
2978 * include/grub/video.h: Likewise.
2979 * include/grub/memory.h: Likewise.
2980 * include/grub/fs.h: Likewise.
2981 * include/grub/partition.h: Likewise.
2982 * include/grub/xnu.h: Likewise.
2983 * include/grub/efi/api.h: Likewise.
2984 * include/grub/efi/pe32.h: Likewise.
2985 * include/grub/efi/memory.h: Likewise.
2986 * include/grub/multiboot.h: Likewise.
2987 * include/grub/usbdesc.h: Likewise.
2988 * include/grub/multiboot2.h: Likewise.
2989 * include/grub/acpi.h: Likewise.
2990 * include/grub/efiemu/efiemu.h: Likewise.
2991 * include/grub/disk.h: Likewise.
2992 * include/grub/ieee1275/ieee1275.h: Likewise.
2993 * include/grub/net.h: Likewise.
2994 * include/grub/machoload.h: Likewise.
2995 * include/grub/macho.h: Likewise.
2996 * include/multiboot.h: Likewise.
2997 * genmoddep.awk: Likewise.
2998 * normal/main.c: Likewise.
2999 * normal/menu_entry.c: Likewise.
3000 * normal/menu_viewer.c: Likewise.
3001 * normal/completion.c: Likewise.
3002 * normal/cmdline.c: Likewise.
3003 * normal/misc.c: Likewise.
3004 * normal/datetime.c: Likewise.
3005 * bus/usb/usbtrans.c: Likewise.
3006 * bus/usb/ohci.c: Likewise.
3007 * bus/usb/uhci.c: Likewise.
3008 * bus/usb/usb.c: Likewise.
3009 * mmap/efi/mmap.c: Likewise.
3010 * mmap/i386/pc/mmap_helper.S: Likewise.
3011 * mmap/i386/pc/mmap.c: Likewise.
3012 * mmap/i386/mmap.c: Likewise.
3013 * mmap/i386/uppermem.c: Likewise.
3014 * mmap/mmap.c: Likewise.
3015 * commands/acpi.c: Likewise.
3016 * commands/echo.c: Likewise.
3017 * commands/blocklist.c: Likewise.
3018 * commands/loadenv.c: Likewise.
3019 * commands/usbtest.c: Likewise.
3020 * commands/boot.c: Likewise.
3021 * commands/parttool.c: Likewise.
3022 * commands/search.c: Likewise.
3023 * commands/cat.c: Likewise.
3024 * commands/i386/pc/play.c: Likewise.
3025 * commands/i386/pc/drivemap.c: Likewise.
3026 * commands/i386/pc/vbeinfo.c: Likewise.
3027 * commands/i386/pc/acpi.c: Likewise.
3028 * commands/i386/pc/vbetest.c: Likewise.
3029 * commands/ls.c: Likewise.
3030 * commands/cmp.c: Likewise.
3031 * commands/test.c: Likewise.
3032 * commands/efi/acpi.c: Likewise.
3033 * commands/gptsync.c: Likewise.
3034 * commands/help.c: Likewise.
3035 * partmap/amiga.c: Likewise.
3036 * partmap/apple.c: Likewise.
3037 * partmap/acorn.c: Likewise.
3038 * partmap/pc.c: Likewise.
3039 * partmap/sun.c: Likewise.
3040 * partmap/gpt.c: Likewise.
3041 * script/sh/lexer.c: Likewise.
3042 * script/sh/function.c: Likewise.
3043 * font/font.c: Likewise.
3044 * font/font_cmd.c: Likewise.
3045 * loader/powerpc/ieee1275/linux.c: Likewise.
3046 * loader/efi/chainloader.c: Likewise.
3047 * loader/multiboot_loader.c: Likewise.
3048 * loader/macho.c: Likewise.
3049 * loader/i386/multiboot.c: Likewise.
3050 * loader/i386/linux.c: Likewise.
3051 * loader/i386/pc/linux.c: Likewise.
3052 * loader/i386/pc/multiboot2.c: Likewise.
3053 * loader/i386/pc/chainloader.c: Likewise.
3054 * loader/i386/pc/xnu.c: Likewise.
3055 * loader/i386/bsd_trampoline.S: Likewise.
3056 * loader/i386/efi/linux.c: Likewise.
3057 * loader/i386/multiboot_elfxx.c: Likewise.
3058 * loader/i386/bsd_helper.S: Likewise.
3059 * loader/i386/bsd.c: Likewise.
3060 * loader/i386/linux_trampoline.S: Likewise.
3061 * loader/i386/xnu_helper.S: Likewise.
3062 * loader/i386/xnu.c: Likewise.
3063 * loader/i386/bsd_pagetable.c: Likewise.
3064 * loader/i386/multiboot_helper.S: Likewise.
3065 * loader/xnu.c: Likewise.
3066 * loader/xnu_resume.c: Likewise.
3067 * io/gzio.c: Likewise.
3068 * term/efi/console.c: Likewise.
3069 * term/terminfo.c: Likewise.
3070 * term/ieee1275/ofconsole.c: Likewise.
3071 * term/i386/pc/serial.c: Likewise.
3072 * term/i386/pc/vesafb.c: Likewise.
3073 * term/i386/pc/vga.c: Likewise.
3074 * term/usb_keyboard.c: Likewise.
3075 * term/gfxterm.c: Likewise.
3076 * aclocal.m4: Likewise.
3077 * util/lvm.c: Likewise.
3078 * util/grub.d/30_os-prober.in: Likewise.
3079 * util/grub.d/10_hurd.in: Likewise.
3080 * util/console.c: Likewise.
3081 * util/grub-macho2img.c: Likewise.
3082 * util/grub-probe.c: Likewise.
3083 * util/hostfs.c: Likewise.
3084 * util/i386/pc/grub-mkimage.c: Likewise.
3085 * util/i386/pc/grub-setup.c: Likewise.
3086 * util/i386/efi/grub-mkimage.c: Likewise.
3087 * util/grub-mkconfig.in: Likewise.
3088 * util/raid.c: Likewise.
3089 * util/resolve.c: Likewise.
3090 * util/grub-mkdevicemap.c: Likewise.
3091 * util/grub-emu.c: Likewise.
3092 * util/getroot.c: Likewise.
3093 * util/hostdisk.c: Likewise.
3094 * util/usb.c: Likewise.
3095 * util/grub-editenv.c: Likewise.
3096 * util/misc.c: Likewise.
3097
3098 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
3099
3100 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
3101 `genparttoollist.sh'.
3102 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
3103 Add `*.sh' to the list find searches for and change `mdate.sh'
3104 to `mdate-sh'.
3105
3106 2009-06-10 Pavel Roskin <proski@gnu.org>
3107
3108 * include/grub/multiboot2.h: Provide compatibility defines for
3109 multiboot2.h.
3110 * include/multiboot2.h: Include stdint.h only if needed, using
3111 angle brackets.
3112 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
3113 grub/multiboot2.h.
3114 * loader/ieee1275/multiboot2.c: Likewise.
3115 * loader/multiboot2.c: Likewise.
3116 * loader/multiboot_loader.c: Likewise.
3117
3118 * configure.ac: Use -nostdlib when probing for the target. It
3119 should not be required to have libc for the target.
3120
3121 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
3122 they fail without libc headers for the target.
3123 * include/grub/powerpc/libgcc.h: Use weak attribute for all
3124 exports.
3125 * include/grub/sparc64/libgcc.h: Likewise. Don't use
3126 preprocessor conditionals.
3127
3128 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
3129 build system doesn't need to be aware of the tar.c internals.
3130
3131 2009-06-09 Michel Hermier <michel.hermier@gmail.com>
3132
3133 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
3134
3135 2009-06-09 Robert Millan <rmh.grub@aybabtu.com>
3136
3137 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
3138 disk limit to 26 for IDE, Virtio, Xen and SCSI.
3139
3140 2009-06-09 Felix Zielcke <fzielcke@z-51.de>
3141
3142 * util/i386/pc/grub-install.in: Change the error message if UUIDs
3143 aren't available if ata.mod gets used.
3144
3145 2009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
3146
3147 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
3148 initialising controller.
3149 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
3150
3151 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
3152
3153 * util/i386/pc/grub-install.in: Add a parameter --disk-module
3154 to choose between ata and biosdisk module on i386-pc.
3155
3156 2009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
3157
3158 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
3159 Subclass and Programming Interface fields in terms of the 3 byte
3160 Class Code register.
3161 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
3162
3163 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
3164 interface is OHCI. Add grub_dprintf for symmetry with
3165 bus/usb/uhci.c.
3166 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
3167 interface is UHCI. Add interf variable for programming
3168 interface. Print interface with class/subclass.
3169
3170 * bus/usb/ohci.c: Set interf with correct field.
3171
3172 * bus/usb/uhci.c: Remove unneeded doubled lines.
3173 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
3174 Remove whitespace inside comment.
3175
3176 2009-06-08 Robert Millan <rmh.grub@aybabtu.com>
3177
3178 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
3179 as fallback an equivalent option without depth.
3180
3181 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
3182
3183 Not fail if unable to retrieve C/H/S on LBA disks
3184
3185 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
3186 if unable to retrieve C/H/S on LBA disks
3187
3188 2009-06-08 Pavel Roskin <proski@gnu.org>
3189
3190 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
3191 about aliasing.
3192
3193 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
3194
3195 * Makefile.in (uninstall): Remove all $lib_DATA files.
3196
3197 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
3198
3199 Bugfix: install on partitionless device
3200
3201 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
3202 is a whole disk
3203
3204 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
3205
3206 * Makefile.in (uninstall): Remove all $include_DATA files.
3207
3208 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
3209
3210 * commands/true.c: New file. Implement the true and false commands.
3211 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
3212 (true_mod_SOURCES): New variable.
3213 (true_mod_CFLAGS): Likewise.
3214 (true_mod_LDFLAGS): Likewise.
3215
3216 2009-06-05 Colin D Bennett <colin@gibibit.com>
3217
3218 Optimized font character lookup using binary search instead of linear
3219 search. Fonts now are required to have the character index ordered by
3220 code point.
3221
3222 * font/font.c (load_font_index): Verify that fonts have ordered
3223 character indices.
3224 (find_glyph): Use binary search instead of linear search to find a
3225 character in a font.
3226
3227 2009-06-05 Michael Scherer <misc@mandriva.org>
3228
3229 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
3230 uses case sensitive btree.
3231 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
3232 only for case insensitive filesystems.
3233
3234 2009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
3235
3236 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
3237 * conf/common.rmk (search_mod_CFLAGS): likewise
3238
3239 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3240
3241 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
3242 compensate a compiler bug
3243
3244 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3245
3246 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
3247 instead of '\b'
3248
3249 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3250
3251 Definitions for creating asm symbols with Apple's CC
3252
3253 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
3254 [APPLE_CC] (VARIABLE): likewise
3255
3256 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3257
3258 Disable lnxboot.img when compiled
3259 with Apple's CC
3260
3261 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
3262 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
3263 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
3264 [! APPLE_CC] (CODE_LENG): skip
3265 [! APPLE_CC] (setup_sects): likewise
3266 [! APPLE_CC]: skip filling
3267
3268 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3269
3270 Address in trampolines based on 32-bit registers when compiled
3271 with Apple's CC
3272
3273 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
3274 for addresses
3275 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
3276
3277 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3278
3279 Avoid aliases when compiling with Apple's CC for PCBIOS machine
3280
3281 * kern/misc.c [APPLE_CC] (memcpy): new function
3282 [APPLE_CC] (memmove): likewise
3283 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
3284 (memcpy): define alias conditionally on !APPLE_CC
3285 (memset): likewise
3286 (abort): likewise
3287 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
3288 APPLE_CC are defined
3289 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
3290 (grub_assert_fail): make prototype conditional
3291
3292 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3293
3294 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
3295
3296 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
3297 grub-macho2img
3298 (CLEANFILES): add grub-macho2img
3299 (grub_macho2img_SOURCES): new variable
3300 * kern/i386/pc/startup.S (bss_start): new variable
3301 (bss_end): likewise
3302 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
3303 * util/grub-macho2img.c: new file
3304
3305 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3306
3307 Use objconv when compiling with Apple's CC
3308
3309 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
3310 (efiemu64.o): likewise
3311 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
3312 when compiling with Apple's CC
3313 (efiemu64_s.o): likewise
3314 * configure.ac: check for objconv when compiling with Apple's CC
3315 * genmk.rb: use objconv for modules when compiled with Apple's CC
3316
3317 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3318
3319 Define segment as well as section when compiling with
3320 Apple's CC
3321
3322 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
3323 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
3324 (efiemu_convert_pointer): likewise
3325 (efiemu_set_virtual_address_map): likewise
3326 (efiemu_convert_pointer): likewise
3327 (efiemu_getcrc32): likewise
3328 (init_crc32_table): likewise
3329 (reflect): likewise
3330 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
3331 (GRUB_MOD_DEP): likewise
3332
3333 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3334
3335 Allow a compilation without -mcmodel=large
3336
3337 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
3338 when compiled without -mcmodel=large
3339 (filter_memory_map): remove memory post 4 GiB when compiled
3340 without -mcmodel=large
3341 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
3342 TARGET_CFLAGS when -mcmodel=large isn't supported
3343
3344 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3345
3346 Remove nested functions in efiemu core
3347
3348 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
3349
3350 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3351
3352 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
3353
3354 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
3355 temporary storage
3356 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
3357 using Apple's CC
3358 (grub_cpu_is_tsc_supported): likewise
3359 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
3360
3361 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3362
3363 Absolute addressing through constant with Apple's cc
3364
3365 * kern/i386/pc/startup.S: Define necessary constants
3366 and address through it when using ABS with Apple's CC
3367 * boot/i386/pc/diskboot.S: likewise
3368 * boot/i386/pc/boot.S: likewise
3369 * boot/i386/pc/lnxboot.S: likewise
3370 * boot/i386/pc/cdboot.S: likewise
3371 * mmap/i386/pc/mmap_helper.S: likewise
3372 * commands/i386/pc/drivemap_int13h.S: likewise
3373
3374 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3375
3376 Check if compiler is apple cc
3377
3378 * Makefile.in (ASFLAGS): new variable
3379 (TARGET_ASFLAGS): likewise
3380 (TARGET_MODULE_FORMAT): likewise
3381 (TARGET_APPLE_CC): likewise
3382 (OBJCONV): likewise
3383 (TARGET_IMG_CFLAGS): likewise
3384 (TARGET_CPPFLAGS): add includedir
3385 * configure.ac: call grub_apple_cc and grub_apple_target_cc
3386 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
3387 Check for linker script only if compiler isn't Apple's CC
3388 (TARGET_MODULE_FORMAT): set
3389 (TARGET_APPLE_CC): likewise
3390 (TARGET_ASFLAGS): likewise
3391 (ASFLAGS): likewise
3392 Check for objcopy only if compiler isn't Apple's CC
3393 Check for BSS symbol only if compiler isn't Apple's CC
3394 * genmk.rb: adapt nm options if we use Apple's utils
3395 * aclocal.m4 (grub_apple_cc): new test
3396 (grub_apple_target_cc): likewise
3397
3398 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3399
3400 Simplify sed expressions and improve awk
3401
3402 * Makefile.in (install-local): simplify sed expression
3403 * gencmdlist.sh: likewise
3404 * genmoddep.awk: avoid adding module as a dependency of itself
3405
3406 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3407
3408 Add missing start symbols
3409
3410 * boot/i386/pc/boot.S: add start
3411 * boot/i386/pc/pxeboot.S: likewise
3412
3413 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3414
3415 Fix wrong assumptions with grub-mkimage on EFI
3416
3417 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
3418 (relocate_addresses): consider both r_addend and value at offset
3419 (make_mods_section): zerofill modinfo and header
3420 (convert_elf): write prefix here
3421
3422 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3423
3424 Use .asciz instead of .string
3425
3426 * i386/pc/diskboot.S: use .asciz instead of .string
3427 * i386/pc/boot.S: likewise
3428 * include/grub/dl.h (GRUB_MOD_DEP): likewise
3429 (GRUB_MOD_NAME): likewise
3430
3431 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3432
3433 gfxpayload support
3434
3435 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
3436 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
3437 (grub_video_setup): remove
3438 (grub_video_set_mode): new prototype
3439 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
3440 (vid_mode): remove
3441 (linux_vesafb_res): compile only on PCBIOS
3442 (grub_linux_boot): support gfxpayload
3443 * loader/i386/pc/xnu.c (video_hook): new function
3444 (grub_xnu_set_video): support gfxpayload
3445 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
3446 (DEFAULT_VIDEO_HEIGHT): likewise
3447 (DEFAULT_VIDEO_FLAGS): likewise
3448 (DEFAULT_VIDEO_MODE): new definition
3449 (video_hook): new function
3450 (grub_gfxterm_init): use grub_video_set_mode
3451 * util/grub.d/30_os-prober.in: remove explicit modesetting before
3452 loading xnu
3453 * video/video.c (grub_video_setup): removed
3454 (grub_video_set_mode): new function based on grub_gfxterm_init and
3455 grub_video_setup
3456
3457 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3458
3459 Avoid calling biosdisk in drivemap
3460
3461 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
3462 (revparse_biosdisk): likewise
3463 (list_mappings): derive name from id directly
3464 (grub_cmd_drivemap): use tryparse_diskstring
3465
3466 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3467
3468 Script fixes
3469
3470 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
3471 (grub_lexer_param): add tokenonhold
3472 (grub_script_create_cmdline): remove cmdline. All callers updated
3473 (grub_script_function_create): make functionname
3474 grub_script_arg. All callers updated
3475 (grub_script_execute_argument_to_string): new prototype
3476 * kern/parser.c (state_transitions): reorder
3477 (grub_parser_cmdline_state): fix a bug and make more compact
3478 * script/sh/execute.c (grub_script_execute_argument_to_string):
3479 make global
3480 (grub_script_execute_cmdline): use new format
3481 * script/sh/function.c (grub_script_function_create): make functionname
3482 grub_script_arg. All callers updated
3483 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
3484 (grub_script_yylex): remove
3485 (grub_script_yylex2): renamed to ...
3486 (grub_script_yylex): ...renamed
3487 parse the expressions like a${b}c
3488 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
3489 (GRUB_PARSER_TOKEN_VAR): remove
3490 (GRUB_PARSER_TOKEN_NAME): likewise
3491 ("if"): declare as typeless
3492 ("while"): likewise
3493 ("function"): likewise
3494 ("else"): likewise
3495 ("then"): likewise
3496 ("fi"): likewise
3497 (text): remove
3498 (argument): likewise
3499 (script): accept empty scripts and make exit on error
3500 (arguments): use GRUB_PARSER_TOKEN_ARG
3501 (function): likewise
3502 (command): move error handling to script
3503 (menuentry): move grub_script_lexer_ref before
3504 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
3505 argument. All callers updated
3506
3507 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
3508
3509 Prevent GRUB from probing floppies during boot.
3510
3511 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
3512 * commands/search.c (options): Add --no-floppy.
3513 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
3514 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
3515 --no-floppy when searching for UUIDs.
3516
3517 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
3518
3519 Simplify the code duplication in commands/search.c.
3520
3521 * commands/search.c (search_label, search_fs_uuid): Merge into ...
3522 (search_fs): ... this. Update all users.
3523
3524 2009-06-03 Felix Zielcke <fzielcke@z-51.de>
3525
3526 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
3527
3528 2009-05-28 Pavel Roskin <proski@gnu.org>
3529
3530 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
3531 Remove the original symlink explicitly.
3532
3533 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
3534 just one slash. That's how grub_fshelp_find_file() does it.
3535
3536 2009-05-26 Pavel Roskin <proski@gnu.org>
3537
3538 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
3539 to `str'.
3540
3541 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
3542 possibly unused.
3543
3544 2009-05-25 Christian Franke <franke@computer.org>
3545
3546 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
3547 register.
3548 (grub_atapi_identify): Add wait after drive select.
3549 (grub_ata_identify): Do more strict status register check before
3550 calling grub_atapi_identify (). Suppress error message if status
3551 register is 0x00 after command failure. Add status register
3552 check after PIO read to avoid bogus identify due to stuck DRQ.
3553 Thanks to Pavel Roskin for testing.
3554 (grub_device_initialize): Remove unsafe status register check.
3555 Thanks to 'phcoder' for problem report and patch.
3556 Prevent sign extension in debug message.
3557
3558 2009-05-23 Colin D Bennett <colin@gibibit.com>
3559
3560 Cleaned up `include/grub/normal.h'. Grouped prototypes by
3561 definition file, and functions defined in `normal/menu.c' have had
3562 their prototypes moved to `include/grub/menu.h' for consistency.
3563
3564 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
3565 from normal.h.
3566 (grub_menu_get_entry): Likewise.
3567 (grub_menu_get_timeout): Likewise.
3568 (grub_menu_set_timeout): Likewise.
3569 (grub_menu_execute_entry): Likewise.
3570 (grub_menu_execute_with_fallback): Likewise.
3571 (grub_menu_entry_run): Likewise.
3572
3573 * include/grub/normal.h: Re-ordered and grouped function
3574 prototypes by file that the function is defined in.
3575 (grub_menu_execute_callback): Removed; moved to menu.h.
3576 (grub_menu_get_entry): Likewise.
3577 (grub_menu_get_timeout): Likewise.
3578 (grub_menu_set_timeout): Likewise.
3579 (grub_menu_execute_entry): Likewise.
3580 (grub_menu_execute_with_fallback): Likewise.
3581 (grub_menu_entry_run): Likewise.
3582 (grub_menu_addentry): Renamed from this ...
3583 (grub_normal_add_menu_entry): ... to this.
3584
3585 * normal/main.c (grub_menu_addentry): Renamed from this ...
3586 (grub_normal_add_menu_entry): ... to this.
3587
3588 * script/sh/execute.c (grub_script_execute_menuentry): Update
3589 reference to renamed grub_menu_addentry function.
3590
3591 2009-05-23 Felix Zielcke <fzielcke@z-51.de>
3592
3593 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
3594
3595 2009-05-22 Pavel Roskin <proski@gnu.org>
3596
3597 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
3598 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
3599 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
3600 compiling for the i386 targets, but not for the utilities.
3601
3602 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
3603 to grub_uint8_t.
3604 (grub_root_drive): Likewise.
3605 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
3606 remove alignment.
3607 (grub_root_drive): Change size to byte.
3608 (grub_start_addr): Remove.
3609 (grub_end_addr): Likewise.
3610 (grub_apm_bios_info): Likewise.
3611
3612 2009-05-21 Felix Zielcke <fzielcke@z-51.de>
3613
3614 * normal/i386: Remove.
3615 * normal/powerpc: Likewise.
3616 * normal/sparc64: Likewise.
3617 * normal/x86_64: Likewise.
3618
3619 2009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
3620
3621 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
3622 * loader/i386/linux_trampoline.S: Fix indentation
3623 * loader/i386/xnu_helper.S: Likewise
3624
3625 2009-05-18 Colin D Bennett <colin@gibibit.com>
3626
3627 Display error messages when parsing a Lua statement fails.
3628 Previously, executing a syntactically invalid statement like
3629 ")foo" or "bar;" would silently fail.
3630
3631 * script/lua/grub_main.c (handle_lua_error): New function.
3632 (grub_lua_parse_line): Improved reporting of Lua parser and
3633 execution errors.
3634
3635 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
3636
3637 Remove -Werror which causes build to fail on some systems
3638
3639 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
3640 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
3641 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
3642
3643 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
3644
3645 trampoline for linux on 64-bit platform
3646
3647 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
3648 loader/i386/efi/linux_trampoline.S
3649 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
3650 declaration
3651 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
3652 here
3653 * loader/i386/linux_trampoline.S: moved here
3654 * loader/i386/efi/linux.c (allocate_pages): reserve space for
3655 trampoline
3656 (jumpvector): removed
3657 (grub_linux_trampoline_start): new declaration
3658 (grub_linux_trampoline_end): likewise
3659 (grub_linux_boot): use trampoline when on 64-bit platform
3660 * loader/i386/linux.c: likewise
3661
3662 2009-05-16 Pavel Roskin <proski@gnu.org>
3663
3664 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
3665 const to avoid a warning.
3666 (grub_lua_setenv): Likewise.
3667 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
3668 lmsg to fix a warning.
3669
3670 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
3671
3672 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
3673 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
3674 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
3675 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
3676 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
3677 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
3678 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
3679 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
3680
3681 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
3682
3683 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
3684
3685 2009-05-16 Bean <bean123ch@gmail.com>
3686
3687 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
3688 (lua_mod_SOURCES): New variable.
3689 (lua_mod_CFLAGS): Likewise.
3690 (lua_mod_LDFLAGS): Likewise.
3691
3692 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
3693 (setjmp_mod_SOURCES): New variable.
3694 (setjmp_mod_CFLAGS): Likewise.
3695 (setjmp_LDFLAGS): Likewise.
3696
3697 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
3698 (setjmp_mod_SOURCES): New variable.
3699 (setjmp_mod_CFLAGS): Likewise.
3700 (setjmp_LDFLAGS): Likewise.
3701
3702 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
3703 (setjmp_mod_SOURCES): New variable.
3704 (setjmp_mod_CFLAGS): Likewise.
3705 (setjmp_LDFLAGS): Likewise.
3706
3707 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
3708 (setjmp_mod_SOURCES): New variable.
3709 (setjmp_mod_CFLAGS): Likewise.
3710 (setjmp_LDFLAGS): Likewise.
3711
3712 * normal/i386/setjmp.S: Moved from here ...
3713 * lib/i386/setjmp.S: ... Moved here
3714 * normal/x86_64/setjmp.S: Moved from here ...
3715 * lib/x86_64/setjmp.S: ... Moved here
3716 * normal/powerpc/setjmp.S: Moved from here ...
3717 * lib/powerpc/setjmp.S: ... Moved here
3718 * normal/sparc64/setjmp.S: Moved from here ...
3719 * lib/sparc64/setjmp.S: ... Moved here
3720
3721 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
3722 returns_twice in mingw.
3723
3724 * script/lua/grub_lib.c: New file.
3725 * script/lua/grub_lib.h: Likewise.
3726 * script/lua/grub_lua.h: Likewise.
3727 * script/lua/grub_main.c: Likewise.
3728 * script/lua/lapi.c: Likewise.
3729 * script/lua/lapi.h: Likewise.
3730 * script/lua/lauxlib.c: Likewise.
3731 * script/lua/lauxlib.h: Likewise.
3732 * script/lua/lbaselib.c: Likewise.
3733 * script/lua/lcode.c: Likewise.
3734 * script/lua/lcode.h: Likewise.
3735 * script/lua/ldblib.c: Likewise.
3736 * script/lua/ldebug.c: Likewise.
3737 * script/lua/ldebug.h: Likewise.
3738 * script/lua/ldo.c: Likewise.
3739 * script/lua/ldo.h: Likewise.
3740 * script/lua/ldump.c: Likewise.
3741 * script/lua/lfunc.c: Likewise.
3742 * script/lua/lfunc.h: Likewise.
3743 * script/lua/lgc.c: Likewise.
3744 * script/lua/lgc.h: Likewise.
3745 * script/lua/linit.c: Likewise.
3746 * script/lua/liolib.c: Likewise.
3747 * script/lua/llex.c: Likewise.
3748 * script/lua/llex.h: Likewise.
3749 * script/lua/llimits.h: Likewise.
3750 * script/lua/lmathlib.c: Likewise.
3751 * script/lua/lmem.c: Likewise.
3752 * script/lua/lmem.h: Likewise.
3753 * script/lua/loadlib.c: Likewise.
3754 * script/lua/lobject.c: Likewise.
3755 * script/lua/lobject.h: Likewise.
3756 * script/lua/lopcodes.c: Likewise.
3757 * script/lua/lopcodes.h: Likewise.
3758 * script/lua/loslib.c: Likewise.
3759 * script/lua/lparser.c: Likewise.
3760 * script/lua/lparser.h: Likewise.
3761 * script/lua/lstate.c: Likewise.
3762 * script/lua/lstate.h: Likewise.
3763 * script/lua/lstring.c: Likewise.
3764 * script/lua/lstring.h: Likewise.
3765 * script/lua/lstrlib.c: Likewise.
3766 * script/lua/ltable.c: Likewise.
3767 * script/lua/ltable.h: Likewise.
3768 * script/lua/ltablib.c: Likewise.
3769 * script/lua/ltm.c: Likewise.
3770 * script/lua/ltm.h: Likewise.
3771 * script/lua/lua.h: Likewise.
3772 * script/lua/luaconf.h: Likewise.
3773 * script/lua/lualib.h: Likewise.
3774 * script/lua/lundump.c: Likewise.
3775 * script/lua/lundump.h: Likewise.
3776 * script/lua/lvm.c: Likewise.
3777 * script/lua/lvm.h: Likewise.
3778 * script/lua/lzio.c: Likewise.
3779 * script/lua/lzio.h: Likewise.
3780
3781 2009-05-16 Bean <bean123ch@gmail.com>
3782
3783 * include/grub/kernel.h (grub_module_header_types): Add type
3784 OBJ_TYPE_CONFIG.
3785
3786 * kern/main.c (grub_load_config): New function.
3787 (grub_main): Call grub_load_config to read boot config.
3788
3789 * grub-mkimage (generate_image): New parameter config_path.
3790 (options): New option --config.
3791 (main): Parse --config option, and pass it to generate_image.
3792
3793 2009-05-14 Christian Franke <franke@computer.org>
3794
3795 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
3796 This fixes build on Cygwin.
3797
3798 2009-05-14 Pavel Roskin <proski@gnu.org>
3799
3800 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
3801 jump. This saves two bytes, so the typical case of 2 swapped
3802 drives would fit 32 bytes.
3803
3804 2009-05-13 Pavel Roskin <proski@gnu.org>
3805
3806 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
3807 grub_uint32_t to avoid a warning.
3808
3809 * loader/i386/linux.c (allocate_pages): When assigning
3810 real_mode_mem, cast through grub_size_t to fix a warning. The
3811 code already makes sure that the value would fit a pointer.
3812 (grub_linux_setup_video): Cast render_target->data to
3813 grub_size_t to fix a warning.
3814
3815 2009-05-13 Javier Martín <lordhabbit@gmail.com>
3816
3817 * commands/i386/pc/drivemap.c: New file - implement drivemap
3818 command.
3819 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
3820 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
3821
3822 2009-05-13 Pavel Roskin <proski@gnu.org>
3823
3824 * util/i386/pc/grub-setup.c (setup): Remove unused variable
3825 embedding_area_exists.
3826
3827 2009-05-13 Robert Millan <rmh.grub@aybabtu.com>
3828
3829 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
3830 it easier to understand / work with.
3831 Improve warning messages for cases where there's no embedding area,
3832 or when it is too small (or core.img too large).
3833
3834 2009-05-13 Pavel Roskin <proski@gnu.org>
3835
3836 * loader/i386/pc/multiboot2.c: Add necessary includes for
3837 grub_multiboot2_real_boot().
3838
3839 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
3840 PX record is always little-endian. We only need the lower 2
3841 bytes of the mode.
3842
3843 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
3844 facilitate code reuse.
3845 (grub_cpio_mount): Use "struct head", not a char buffer. This
3846 fixes a warning reported by gcc 4.4.
3847
3848 * kernel/disk.c (grub_disk_read): Use void pointer for the
3849 buffer.
3850 (grub_disk_write): Use const void pointer for the buffer.
3851 Adjust all callers. Remove unnecessary casts.
3852
3853 2009-05-10 Robert Millan <rmh.grub@aybabtu.com>
3854
3855 * util/i386/pc/grub-install.in: Update copyright year.
3856
3857 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
3858
3859 gptsync
3860
3861 * commands/gptsync.c: new file
3862 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
3863 (gptsync_mod_SOURCES): new variable
3864 (gptsync_mod_CFLAGS): likewise
3865 (gptsync_mod_LDFLAGS): likewise
3866 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
3867 new definition
3868 (GRUB_PC_PARTITION_TYPE_HFS): likewise
3869 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
3870 * conf/i386-ieee1275.rmk: likewise
3871 * conf/i386-pc.rmk: likewise
3872 * conf/powerpc-ieee1275.rmk: likewise
3873
3874 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
3875
3876 Fixed grub-emu
3877
3878 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
3879 (grub_dl_ref): likewise
3880
3881 2009-05-08 Robert Millan <rmh.grub@aybabtu.com>
3882
3883 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
3884 split in two functions (one for msdos and one for gpt).
3885
3886 2009-05-08 Pavel Roskin <proski@gnu.org>
3887
3888 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
3889 not modified.
3890
3891 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
3892 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
3893 Initialize them with -1. Add sanity check for bad1. Eliminate
3894 nerr variable.
3895
3896 2009-05-08 David S. Miller <davem@davemloft.net>
3897
3898 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
3899
3900 2009-05-06 Robert Millan <rmh.grub@aybabtu.com>
3901
3902 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
3903 existence.
3904
3905 2009-05-05 Felix Zielcke <fzielcke@z-51.de>
3906
3907 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
3908 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
3909
3910 2009-05-05 David S. Miller <davem@davemloft.net>
3911
3912 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
3913
3914 2009-05-05 Pavel Roskin <proski@gnu.org>
3915
3916 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
3917 of grub_dl_ref() and grub_dl_unref().
3918 * commands/parttool.c: Remove preprocessor conditionals around
3919 grub_dl_ref() and grub_dl_unref().
3920 * fs/affs.c: Likewise.
3921 * fs/afs.c: Likewise.
3922 * fs/cpio.c: Likewise.
3923 * fs/ext2.c: Likewise.
3924 * fs/fat.c: Likewise.
3925 * fs/hfs.c: Likewise.
3926 * fs/hfsplus.c: Likewise.
3927 * fs/iso9660.c: Likewise.
3928 * fs/jfs.c: Likewise.
3929 * fs/minix.c: Likewise.
3930 * fs/ntfs.c: Likewise.
3931 * fs/reiserfs.c: Likewise.
3932 * fs/sfs.c: Likewise.
3933 * fs/udf.c: Likewise.
3934 * fs/ufs.c: Likewise.
3935 * fs/xfs.c: Likewise.
3936 * include/grub/dl.h: Likewise.
3937 * loader/xnu.c: Likewise.
3938
3939 2009-05-04 Pavel Roskin <proski@gnu.org>
3940
3941 * commands/acpi.c: Remove unused variable my_mod.
3942 * partmap/amiga.c: Likewise.
3943 * partmap/apple.c: Likewise.
3944 * partmap/gpt.c: Likewise.
3945 * partmap/pc.c: Likewise.
3946 * partmap/sun.c: Likewise.
3947 * term/gfxterm.c: Likewise.
3948 * term/i386/pc/vesafb.c: Likewise.
3949 * term/i386/pc/vga.c: Likewise.
3950
3951 2009-05-04 David S. Miller <davem@davemloft.net>
3952
3953 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
3954 pointer args to grub_ieee1275_get_property().
3955
3956 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
3957
3958 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
3959 devices, and do not traverse down under controller nodes.
3960
3961 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
3962 (grub_ofdisk_open): Use it to un-escape "," characters.
3963 * kern/disk.c (find_part_sep): New.
3964 (grub_disk_open): Use it to find the first non-escaped ','
3965 character in the disk name.
3966 * util/ieee1275/devicemap.c (escape_of_path): New.
3967 (grub_util_emit_devicemap_entry): Use it.
3968 * util/sparc64/ieee1275/grub-install.in: Update script to
3969 strip partition specifiers properly by not triggering on
3970 '\' escaped ',' characters.
3971
3972 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
3973
3974 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
3975 to 0x300.
3976 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
3977 resolutions.
3978 (linux_vesafb_modes): Add a lot of additional modes to the list (based
3979 on documentation from Wikipedia).
3980
3981 2009-05-04 Pavel Roskin <proski@gnu.org>
3982
3983 * disk/ata.c: Spelling fixes.
3984 * disk/raid.c: Likewise.
3985 * disk/usbms.c: Likewise.
3986 * disk/dmraid_nvidia.c: Likewise.
3987 * kern/ieee1275/openfw.c: Likewise.
3988 * kern/ieee1275/init.c: Likewise.
3989 * kern/ieee1275/cmain.c: Likewise.
3990 * boot/i386/pc/cdboot.S: Likewise.
3991 * video/readers/png.c: Likewise.
3992 * video/i386/pc/vbe.c: Likewise.
3993 * fs/udf.c: Likewise.
3994 * fs/hfs.c: Likewise.
3995 * fs/reiserfs.c: Likewise.
3996 * efiemu/runtime/efiemu.c: Likewise.
3997 * efiemu/main.c: Likewise.
3998 * efiemu/mm.c: Likewise.
3999 * include/grub/elf.h: Likewise.
4000 * include/grub/xnu.h: Likewise.
4001 * include/grub/usbdesc.h: Likewise.
4002 * include/grub/usb.h: Likewise.
4003 * include/grub/script_sh.h: Likewise.
4004 * include/grub/lib/LzmaEnc.h: Likewise.
4005 * include/grub/efiemu/efiemu.h: Likewise.
4006 * include/grub/command.h: Likewise.
4007 * normal/menu.c: Likewise.
4008 * normal/main.c: Likewise.
4009 * normal/datetime.c: Likewise.
4010 * bus/usb/uhci.c: Likewise.
4011 * mmap/i386/uppermem.c: Likewise.
4012 * mmap/mmap.c: Likewise.
4013 * commands/acpi.c: Likewise.
4014 * commands/test.c: Likewise.
4015 * partmap/apple.c: Likewise.
4016 * font/font.c: Likewise.
4017 * loader/sparc64/ieee1275/linux.c: Likewise.
4018 * loader/macho.c: Likewise.
4019 * loader/i386/bsd_trampoline.S: Likewise.
4020 * loader/i386/bsd.c: Likewise.
4021 * loader/xnu.c: Likewise.
4022 * term/i386/pc/vesafb.c: Likewise.
4023 * term/usb_keyboard.c: Likewise.
4024 * util/resolve.c: Likewise.
4025 * util/getroot.c: Likewise.
4026
4027 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
4028
4029 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
4030
4031 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
4032
4033 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
4034 build error.
4035
4036 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
4037
4038 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
4039 parameter only available on BIOS.
4040
4041 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
4042
4043 Removed wrong semicolon in declaration
4044
4045 * grub/misc.h (grub_dprintf): remove semicolon
4046
4047 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
4048
4049 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
4050 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
4051 is done by grub_cmd_linux() now).
4052 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
4053 restore video to text mode.
4054 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
4055 indicates lack of "vga=" parameter. "vga=0" is mapped to
4056 `GRUB_LINUX_VID_MODE_NORMAL'.
4057
4058 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
4059
4060 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
4061 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
4062 and `normal/script.c'. Add `kern/rescue_reader.c',
4063 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
4064 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
4065 `grub_script.tab.c'.
4066
4067 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
4068 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
4069 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
4070 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
4071 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
4072
4073 * Makefile.in: Remove duplicated 2008 in Copyright line.
4074
4075 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
4076
4077 * util/misc.c (grub_util_warn): New function. Emits a warning
4078 unconditionally.
4079 * include/grub/util/misc.h (grub_util_warn): New declaration.
4080
4081 * util/i386/pc/grub-install.in: Understand --force and pass it down
4082 to grub-setup.
4083
4084 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
4085 down to setup().
4086 (setup): Improve error messages and add warnings when requested to
4087 install in odd layouts. Refuse to install using blocklists unless
4088 --force was set.
4089
4090 2009-05-04 martin f. krafft <madduck@madduck.net>
4091
4092 * disk/raid.c (grub_raid_scan_device): Improve debug message.
4093
4094 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
4095
4096 Updated copyright year
4097
4098 * fs/hfsplus.c: updated copyright year
4099
4100 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
4101
4102 HFS+ UUID
4103
4104 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
4105 in the space previously used by unused3
4106 (grub_hfsplus_uuid): new function
4107 (grub_hfsplus_fs): added uuid field
4108
4109 2009-05-03 Pavel Roskin <proski@gnu.org>
4110
4111 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
4112 suppress warnings. It's no longer needed.
4113 * disk/host.c: Likewise.
4114 * disk/ata_pthru.c: Likewise.
4115 * disk/loopback.c: Likewise.
4116 * hook/datehook.c: Likewise.
4117 * parttool/pcpart.c: Likewise.
4118 * fs/i386/pc/pxe.c: Likewise.
4119 * fs/ntfscomp.c: Likewise.
4120 * efiemu/main.c: Likewise.
4121 * mmap/mmap.c: Likewise.
4122 * commands/crc.c: Likewise.
4123 * commands/hexdump.c: Likewise.
4124 * commands/hdparm.c: Likewise.
4125 * commands/acpi.c: Likewise.
4126 * commands/echo.c: Likewise.
4127 * commands/minicmd.c: Likewise.
4128 * commands/blocklist.c: Likewise.
4129 * commands/memrw.c: Likewise.
4130 * commands/loadenv.c: Likewise.
4131 * commands/usbtest.c: Likewise.
4132 * commands/lsmmap.c: Likewise.
4133 * commands/boot.c: Likewise.
4134 * commands/parttool.c: Likewise.
4135 * commands/configfile.c: Likewise.
4136 * commands/search.c: Likewise.
4137 * commands/ieee1275/suspend.c: Likewise.
4138 * commands/cat.c: Likewise.
4139 * commands/i386/pc/pxecmd.c: Likewise.
4140 * commands/i386/pc/play.c: Likewise.
4141 * commands/i386/pc/halt.c: Likewise.
4142 * commands/i386/pc/vbeinfo.c: Likewise.
4143 * commands/i386/pc/vbetest.c: Likewise.
4144 * commands/lspci.c: Likewise.
4145 * commands/date.c: Likewise.
4146 * commands/handler.c: Likewise.
4147 * commands/ls.c: Likewise.
4148 * commands/test.c: Likewise.
4149 * commands/cmp.c: Likewise.
4150 * commands/efi/loadbios.c: Likewise.
4151 * commands/efi/fixvideo.c: Likewise.
4152 * commands/halt.c: Likewise.
4153 * commands/help.c: Likewise.
4154 * commands/reboot.c: Likewise.
4155 * hello/hello.c: Likewise.
4156 * script/sh/main.c: Likewise.
4157 * loader/xnu.c: Likewise.
4158 * term/terminfo.c: Likewise.
4159 * term/i386/pc/serial.c: Likewise.
4160 * term/usb_keyboard.c: Likewise.
4161
4162 2009-05-03 David S. Miller <davem@davemloft.net>
4163
4164 * normal/menu.c: Include grub/parser.h
4165
4166 2009-05-03 Pavel Roskin <proski@gnu.org>
4167
4168 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
4169 not char*.
4170 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
4171 Suggested by Javier Martín <lordhabbit@gmail.com>
4172
4173 * util/i386/pc/grub-mkrescue.in: Allow for the case when
4174 efiemu??.o doesn't exist.
4175 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
4176 copying.
4177
4178 2009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
4179
4180 FreeBSD 64-bit support
4181
4182 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
4183 and loader/i386/bsd_trampoline.S
4184 (bsd_mod_ASFLAGS): new variable
4185 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
4186 (FREEBSD_MODTYPE_KERNEL64): likewise
4187 (grub_bsd64_trampoline_start): likewise
4188 (grub_bsd64_trampoline_end): likewise
4189 (grub_bsd64_trampoline_selfjump): likewise
4190 (grub_bsd64_trampoline_gdt): likewise
4191 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
4192 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
4193 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
4194 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
4195 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
4196 of "attrib" member
4197 * loader/i386/bsd_pagetable.c: new file
4198 * loader/i386/bsd_trampoline.S: likewise
4199 * loader/i386/bsd.c (ALIGN_QWORD): new macro
4200 (ALIGN_VAR): likewise
4201 (entry_hi): new variable
4202 (kern_end_mdofs): likewise
4203 (is_64bit): likewise
4204 (grub_freebsd_add_meta): use ALIGN_VAR
4205 (grub_e820_mmap): new declaration
4206 (grub_freebsd_add_mmap): new function
4207 (grub_freebsd_add_meta_module): support 64 bit kernels
4208 (grub_freebsd_list_modules): use ALIGN_VAR
4209 (gdt_descriptor): new declaration
4210 (grub_freebsd_boot): support 64 bit kernels
4211 (grub_bsd_elf64_hook): new function
4212 (grub_bsd_load_elf): support elf64
4213
4214 2009-05-03 Bean <bean123ch@gmail.com>
4215
4216 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
4217 after we get the result of if statement.
4218
4219 2009-05-03 Bean <bean123ch@gmail.com>
4220
4221 * Makefile.in (enable_efiemu): New variable.
4222
4223 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
4224 set.
4225 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
4226 path.
4227 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
4228 path, add -mno-red-zone option.
4229 (efiemu64_s.o): Likewise.
4230 (efiemu64.o): Use macro $^ for source file.
4231
4232 * configure.ac (--enable-efiemu): New option.
4233
4234 2009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
4235
4236 xnu support
4237
4238 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
4239 (pkglib_MODULES): add xnu.mod
4240 (xnu_mod_SOURCES): new variable
4241 (xnu_mod_CFLAGS): likewise
4242 (xnu_mod_LDFLAGS): likewise
4243 (xnu_mod_ASFLAGS): likewise
4244 * conf/i386-pc.rmk: likewise
4245 * conf/x86_64-efi.rmk: likewise
4246 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
4247 new declaration
4248 * include/grub/i386/macho.h: new file
4249 * include/grub/i386/xnu.h: likewise
4250 * include/grub/macho.h: likewise
4251 * include/grub/machoload.h: likewise
4252 * include/grub/x86_64/macho.h: likewise
4253 * include/grub/x86_64/xnu.h: likewise
4254 * include/grub/xnu.h: likewise
4255 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
4256 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
4257 * loader/i386/efi/xnu.c: new file
4258 * loader/i386/pc/xnu.c: likewise
4259 * loader/i386/xnu.c: likewise
4260 * loader/i386/xnu_helper.S: likewise
4261 * loader/macho.c: likewise
4262 * loader/xnu.c: likewise
4263 * loader/xnu_resume.c: likewise
4264 * util/grub-dumpdevtree: likewise
4265 * include/grub/i386/pit.h: include grub/err.h
4266 (grub_pit_wait): export
4267 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
4268
4269 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
4270
4271 Efiemu
4272
4273 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
4274 _linux_efi, linux_efi.
4275 new files in grub-emu
4276 new targets efiemu32.o and efiemu64.o
4277 * loader/linux_normal_efiemu.c: likewise
4278 * loader/i386/efi/linux.c: added preliminary efiemu support
4279 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
4280 files to copy
4281 * include/grub/autoefi.h: new file
4282 * include/grub/i386/efiemu.h: likewise
4283 * include/grub/i386/pc/efiemu.h: likewise
4284 * include/grub/efi/api.h: add LL suffix when necessary
4285 new definitions relating to tables
4286 * include/grub/efiemu/efiemu.h: new file
4287 * include/grub/efiemu/runtime.h: likewise
4288 * efiemu/prepare.c: likewise
4289 * efiemu/loadcore_common.c: likewise
4290 * efiemu/loadcore64.c: likewise
4291 * efiemu/runtime/efiemu.sh: likewise
4292 * efiemu/runtime/efiemu.S: likewise
4293 * efiemu/runtime/efiemu.c: likewise
4294 * efiemu/runtime/config.h: likewise
4295 * efiemu/prepare32.c: likewise
4296 * efiemu/main.c: likewise
4297 * efiemu/modules/pnvram.c: likewise
4298 * efiemu/modules/i386: likewise
4299 * efiemu/modules/i386/pc: likewise
4300 * efiemu/modules/acpi.c: likewise
4301 * efiemu/i386/pc/cfgtables.c: likewise
4302 * efiemu/i386/loadcore64.c: likewise
4303 * efiemu/i386/loadcore32.c: likewise
4304 * efiemu/prepare64.c: likewise
4305 * efiemu/loadcore.c: likewise
4306 * efiemu/symbols.c: likewise
4307 * efiemu/mm.c: likewise
4308 * efiemu/loadcore32.c: likewise
4309
4310 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
4311
4312 ACPI spoofing
4313
4314 * commands/acpi.c: new file
4315 * commands/i386/pc/acpi.c: likewise
4316 * commands/efi/acpi.c: likewise
4317 * include/grub/acpi.h: likewise
4318 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
4319 (acpi_mod_SOURCES): new variable
4320 (acpi_mod_CFLAGS): likewise
4321 (acpi_mod_LDFLAGS): likewise
4322 * conf/i386-efi.rmk: likewise
4323 * conf/x86_64-efi.rmk: likewise
4324
4325 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
4326
4327 Missing part from mmap patch
4328
4329 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
4330 (grub_mmap_unregister)
4331 (grub_mmap_free_and_unregister): use grub_mmap_register
4332
4333 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
4334
4335 Mmap services
4336
4337 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
4338 * loader/i386/linux.c (find_mmap_size): likewise
4339 (allocate_pages): likewise
4340 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
4341 (grub_fill_multiboot_mmap): likewise
4342 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
4343 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
4344 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
4345 (OPENBSD_MMAP_RESERVED): likewise
4346 * include/grub/i386/pc/memory.h: include grub/memory.h
4347 (grub_lower_mem): removed
4348 (grub_upper_mem): likewise
4349 (GRUB_MACHINE_MEMORY_ACPI): new definition
4350 (GRUB_MACHINE_MEMORY_NVS): likewise
4351 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
4352 (GRUB_MACHINE_MEMORY_HOLE): likewise
4353 (grub_machine_mmap_register): likewise
4354 (grub_machine_mmap_unregister): likewise
4355 (grub_machine_get_upper): likewise
4356 (grub_machine_get_lower): likewise
4357 (grub_machine_get_post64): likewise
4358 * include/grub/i386/efi/memory.h: new file
4359 * include/grub/x86_64/efi/memory.h: likewise
4360 * include/grub/efi/memory.h: likewise
4361 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
4362 (mmap_mod_SOURCES): new variable
4363 (mmap_mod_LDFLAGS): likewise
4364 (mmap_mod_ASFLAGS): likewise
4365 * conf/i386-coreboot.rmk: likewise
4366 * conf/i386-ieee1275.rmk: likewise
4367 * conf/i386-efi.rmk: likewise
4368 * conf/x86_64-efi.rmk: likewise
4369 * include/grub/types.h (UINT_TO_PTR): new macro
4370 (PTR_TO_UINT32): likewise
4371 (PTR_TO_UINT64): likewise
4372 * include/grub/memory.h: new file
4373 * mmap/i386/pc/mmap.c: likewise
4374 * mmap/i386/pc/mmap_helper.S: likewise
4375 * mmap/i386/uppermem.c: likewise
4376 * mmap/mmap.c: likewise
4377 * mmap/efi/mmap.c: likewise
4378 * kern/i386/coreboot/init.c (grub_machine_init): don't use
4379 grub_upper_mem
4380 * kern/i386/pc/init.c (grub_lower_mem): removed variable
4381 (grub_upper_mem): likewise
4382 (grub_machine_init): don't use grub_upper_mem,
4383 make grub_lower_mem local
4384 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
4385 grub_mmap_iterate and grub_mmap_get_upper
4386 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
4387
4388 2009-05-02 Bean <bean123ch@gmail.com>
4389
4390 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
4391 script/sh/parser.y.
4392 (pkglib_MODULES): Add normal.mod and sh.mod.
4393 (normal_SOURCES): New variable.
4394 (normal_mod_CFLAGS): Likewise.
4395 (normal_mod_LDFLAGS): Likewise.
4396 (sh_mod_SOURCES): Likewise.
4397 (sh_mod_CFLAGS): Likewise.
4398 (sh_mod_LDFLAGS): Likewise.
4399
4400 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
4401 script/sh/lexer.c_DEPENDENCIES.
4402 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
4403 kern/rescue_reader.c and kern/rescue_parser.c.
4404 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
4405 (grub_emu_SOURCES): Change source files.
4406 (pkglib_MODULES): Remove normal.mod.
4407 (normal_SOURCES): Removed.
4408 (normal_mod_CFLAGS): Likewise.
4409 (normal_mod_LDFLAGS): Likewise.
4410 * conf/i386-coreboot.rmk: Likewise.
4411 * conf/i386-efi.rmk: Likewise.
4412 * conf/i386-ieee1276.rmk: Likewise.
4413 * conf/powerpc-ieee1275.rmk: Likewise.
4414 * conf/sparc64-ieee1275.rmk: Likewise.
4415 * conf/x86_64-efi.rmk: Likewise.
4416
4417 * include/grub/command.h (grub_command_execute): New inline function.
4418
4419 * include/grub/menu.h (grub_menu_entry): Removed commands field.
4420
4421 * include/grub/normal.h: Remove <grub/setjmp.h>.
4422 (grub_fs_module_list): Moved to normal/autofs.c.
4423 (grub_exit_env): Removed.
4424 (grub_command_execute): Likewise.
4425 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
4426 parameter script.
4427 (read_command_list): New function declaration.
4428 (read_fs_list): Likewise.
4429
4430 * include/parser.h: Include <grub/reader.h>.
4431 (grub_parser_split_cmdline): Change type of getline parameter.
4432 (grub_parser): New structure.
4433 (grub_parser_class): New variable.
4434 (grub_parser_execute): New function declaration.
4435 (grub_register_rescue_parser): Likewise.
4436 (grub_parser_register): New inline function.
4437 (grub_parser_unregister): Likewise.
4438 (grub_parser_get_current): Likewise.
4439 (grub_parser_set_current): Likewise.
4440
4441 * include/grub/reader.h: New file.
4442 * kern/reader.c: Likewise.
4443 * kern/rescue_parser.c: Likewise.
4444 * kern/rescue_reader.c: Likewise.
4445 * normal/autofs.c: Likewise.
4446 * normal/dyncmd.c: Likewise.
4447
4448 * include/grub/rescue.h: Removed.
4449 * normal/command.h: Likewise.
4450
4451 * include/grub/script.h: Moved to ...
4452 * include/grub/script_sh.h: ... Moved here.
4453 * normal/execute.c: Moved to ...
4454 * script/sh/execute.c: ... Moved here.
4455 * normal/function.c: Moved to ...
4456 * script/sh/function.c: ... Moved here.
4457 * normal/lexer.c: Moved to ...
4458 * script/sh/lexer.c: ... Moved here.
4459 * normal/parser.y: Moved to ...
4460 * script/sh/parser.y: ... Moved here.
4461 * normal/script.c: Moved to ...
4462 * script/sh/script.c: ... Moved here.
4463
4464 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
4465 <grub/reader.h>.
4466 (grub_exit_env): Removed.
4467 (fs_module_list): Moved to normal/autofs.c.
4468 (grub_file_getline): Don't handle comment here.
4469 (free_menu): Skip removed field entry->commands.
4470 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
4471 script parameter.
4472 (read_config_file): Removed nested parameter, change getline function.
4473 (grub_enter_normal_mode): Removed.
4474 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
4475 (read_command_list): Likewise.
4476 (autoload_fs_module): Moved to normal/autofs.c.
4477 (read_fs_list): Likewise.
4478 (reader_nested): New variable.
4479 (grub_normal_execute): Run parser.sh to switch to sh parser.
4480 (grub_cmd_rescue): Removed.
4481 (cmd_normal): Removed.
4482 (grub_cmd_normal): Unregister itself at the beginning. Don't register
4483 rescue command.
4484 (grub_cmdline_run): New function.
4485 (grub_normal_reader_init): Likewise.
4486 (grub_normal_read_line): Likewise.
4487 (grub_env_write_pager): Likewise.
4488 (cmdline): New variable.
4489 (grub_normal_reader): Likewise.
4490 (GRUB_MOD_INIT): Register normal reader and set as current, register
4491 pager hook, register normal command with grub_register_command_prio,
4492 so that it won't show up in command.lst.
4493 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
4494 grub_fs_autoload_hook.
4495
4496 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
4497 (grub_menu_execute_entry): Replace grub_script_execute with
4498 grub_parser_execute, change parameter to grub_command_execute.
4499
4500 * normal/menu_text.c: Remove <grub/script.h>.
4501
4502 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
4503 and <grub/parser.h>.
4504 (run): Change editor_getline to use new parser interface. Change
4505 parameter to grub_command_execute.
4506
4507 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
4508 <grub/reader.h> and <grub/parser.h>.
4509 (grub_load_normal_mode): Execute normal command.
4510 (grub_main): Call grub_register_core_commands,
4511 grub_register_rescue_parser and grub_register_rescue_reader, use
4512 grub_reader_loop to enter input loop.
4513
4514 * kern/parser.c (grub_parser_split_cmdline): Change type of
4515 getline parameter.
4516 (grub_parser_class): New variable.
4517 (grub_parser_execute): New function.
4518
4519 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
4520 * loader/multiboot2.c: Likewise.
4521 * loader/sparc64/ieee1275/linux.c: Likewise.
4522
4523 * util/grub-emu.c (read_command_list): New dummy function.
4524
4525 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
4526
4527 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
4528 count to 16 for CCISS and IDA.
4529
4530 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
4531
4532 * normal/menu_text.c (grub_wait_after_message): Print a newline
4533 after waiting for user input.
4534
4535 * loader/i386/linux.c: Include `<grub/normal.h>'.
4536 (grub_cmd_linux): Improve the error message about `ask' mode, by
4537 waiting for user input so it's not missed (we can do this, since
4538 user requested interaction).
4539
4540 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
4541
4542 Added missing lst to grub-mkrescue
4543
4544 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
4545 and ${input_dir}/parttool.lst
4546
4547 2009-04-30 David S. Miller <davem@davemloft.net>
4548
4549 * util/hostdisk.c (device_is_wholedisk): New function.
4550 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
4551 zero only if device_is_wholedisk() returns true.
4552
4553 * util/hostdisk.c (convert_system_partition_to_system_disk):
4554 Handle virtual disk devices named /dev/vdiskX as found on sparc
4555 and powerpc.
4556
4557 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
4558 lettered partition specifier is found, convert to numbered.
4559
4560 2009-04-29 David S. Miller <davem@davemloft.net>
4561
4562 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
4563 * include/grub/sparc64/ieee1275/memory.h: Likewise.
4564
4565 * normal/command.c: Add missing newline at end of file.
4566
4567 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
4568 warnings.
4569 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
4570 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
4571 grub_ofdisk_read): Likewise, and deal similarly with the fact that
4572 ihandles have a 32-bit type but need to be stored in a "void *".
4573
4574 2009-04-28 Pavel Roskin <proski@gnu.org>
4575
4576 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
4577 not disk. Adjust all dependencies.
4578 (grub_fs_uuid_close): Use grub_device_close(), not
4579 grub_disk_close().
4580
4581 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
4582 parent's partition, don't copy it by reference, as it gets freed
4583 on close.
4584
4585 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
4586
4587 Preboot hooks support
4588
4589 * commands/boot.c (struct grub_preboot_t): new declaration
4590 (preboots_head): new variable
4591 (preboots_tail): likewise
4592 (grub_loader_register_preboot_hook): new function
4593 (grub_loader_unregister_preboot_hook): likewise
4594 (grub_loader_set): launch preboot hooks
4595 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
4596 (grub_loader_register_preboot_hook): new declaration
4597 (grub_loader_unregister_preboot_hook): likewise
4598
4599 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
4600
4601 Warning fix
4602
4603 * disk/scsi.c (grub_scsi_open): added missing cast when
4604 calling grub_dprintf
4605
4606 2009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
4607
4608 Bug and warning fixes
4609
4610 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
4611 declaration
4612 * commands/test.c (test_parse): fixed bug with file tests and corrected
4613 declaration of find_file
4614
4615 2009-04-26 Pavel Roskin <proski@gnu.org>
4616
4617 * Makefile.in: Don't install empty manual pages if help2man is
4618 missing. Use help2man option for output, not shell redirection.
4619
4620 2009-04-26 David S. Miller <davem@davemloft.net>
4621
4622 * util/grub-mkdevicemap.c (make_device_map): Add missing
4623 NESTED_FUNC_ATTR to process_device().
4624
4625 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
4626
4627 Test command
4628
4629 * commands/test.c: rewritten to use bash-like test
4630
4631 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
4632
4633 Parttool autoloading and improvements
4634
4635 * Makefile.in (pkglib_DATA): add parttool.lst
4636 (parttool.lst): new target
4637 * genmk.rb: generate parttool-*
4638 (CLEANFILES): add #{parttool}
4639 (PARTTOOLFILES): new variable
4640 * genparttoollist.sh: new file
4641 * parttool/pcpart.c (grub_pcpart_boot): more feedback
4642 (grub_pcpart_type): likewise
4643 * commands/parttool.c (helpmsg): new variable
4644 (grub_cmd_parttool): output help if not enough arguments are supplied
4645 autoload modules
4646 (GRUB_MOD_INIT(parttool)): use helpmsg
4647
4648 2009-04-24 David S. Miller <davem@davemloft.net>
4649
4650 Avoiding opening same device multiple times in device iterator.
4651
4652 * kern/device.c: (grub_device_iterate): Define struct part_ent,
4653 and use it to build a list of partitions in iterate_disk() and
4654 iterate_partition().
4655
4656 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
4657 on disk->data.
4658
4659 * disk/ieee1275/nand.c (grub_nand_iterate): Return
4660 grub_devalias_iterate() result instead of unconditional 0.
4661 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
4662 Also, capture hook return value, either directly or via
4663 grub_children_iterate(), and propagate to caller.
4664 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
4665 grub_children_iterate): Return value is now 'int' instead of
4666 'grub_err_t'.
4667 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
4668 like a proper iterator, stopping when hooks return non-zero.
4669 (grub_devalias_iterate): Likewise.
4670
4671 2009-04-23 David S. Miller <davem@davemloft.net>
4672
4673 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
4674
4675 2009-04-22 David S. Miller <davem@davemloft.net>
4676
4677 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
4678 is larger than address_cells, use that value for address_cells too.
4679
4680 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
4681 IEEE1275_MAX_PATH_LEN): Define.
4682 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
4683 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
4684 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
4685 'devtype'. Explicitly NULL terminate devalias expansion.
4686
4687 * util/sparc64/ieee1275/misc.c: New file.
4688 * util/sparc64/ieee1275/grub-setup.c: New file.
4689 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
4690 * util/sparc64/ieee1275/grub-mkimage.c: New file.
4691 * util/sparc64/ieee1275/grub-install.in: New file.
4692 * util/ieee1275/ofpath.c: New file.
4693 * util/ieee1275/devicemap.c: New file.
4694 * util/devicemap.c: New file.
4695 * util/deviceiter.c: New file.
4696 * kern/sparc64/ieee1275/init.c: New file.
4697 * include/grub/util/ofpath.h: New file.
4698 * include/grub/util/deviceiter.h: New file.
4699 * util/grub-mkdevicemap.c: Include deviceiter.h.
4700 Implement using grub_util_emit_devicemap_entry and
4701 grub_util_iterate_devices.
4702 * conf/i386-corebook.rmk: Build util/deviceiter.c and
4703 util/devicemap.c into grub-mkdevicemap
4704 * conf/i386-efi.rmk: Likewise.
4705 * conf/i386-ieee1275.rmk: Likewise.
4706 * conf/i386-pc.rmk: Likewise.
4707 * conf/powerpc-ieee1275.rmk: Likewise.
4708 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
4709 images and installation utilities. Build kernel as image
4710 instead of as elf binary. Use common rules as much as possible.
4711
4712 2009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
4713
4714 Correct GPT definition
4715
4716 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
4717 of "attrib" member
4718
4719 2009-04-19 Felix Zielcke <fzielcke@z-51.de>
4720
4721 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
4722
4723 2009-04-19 David S. Miller <davem@davemloft.net>
4724
4725 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
4726 (grub_rescue_cmd_linux): Rename to...
4727 (grub_cmd_linux): and fix prototype.
4728 (grub_rescue_cmd_initrd): Rename to...
4729 (grub_cmd_initrd): and fix prototype.
4730 (cmd_linux, cmd_initrd): New.
4731 (GRUB_MOD_INIT(linux)): Use grub_register_command().
4732 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
4733
4734 2009-04-17 Pavel Roskin <proski@gnu.org>
4735
4736 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
4737 format.
4738 (grub_ohci_transfer): Likewise.
4739
4740 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
4741
4742 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
4743 return without a value. Fix inconsistent indentation.
4744
4745 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
4746 match struct grub_fs.
4747
4748 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
4749 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
4750 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
4751 * commands/lspci.c (grub_lspci_iter): Likewise.
4752
4753 2009-04-16 Bean <bean123ch@gmail.com>
4754
4755 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
4756 value.
4757
4758 2009-04-15 Pavel Roskin <proski@gnu.org>
4759
4760 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
4761 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
4762 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
4763 definitions.
4764
4765 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
4766
4767 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
4768 that no multiple data or metadata areas are supported and `Unknown
4769 metadata header'.
4770
4771 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
4772
4773 Move loader out of the kernel
4774
4775 * kern/loader.c: moved to ...
4776 * commands/boot.c: ... moved here
4777 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
4778 * commands/boot.c (grub_cmd_boot): moved here. All users updated
4779 * include/grub/kernel.h (grub_machine_fini): export
4780 * include/grub/loader.h (grub_loader_is_loaded): update declaration
4781 (grub_loader_set): likewise
4782 (grub_loader_unset): likewise
4783 (grub_loader_boot): likewise
4784 * conf/common.rmk: new module boot.mod
4785 (pkglib_MODULES): add boot.mod
4786 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
4787 (grub_emu_SOURCES): likewise
4788 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
4789 (grub_emu_SOURCES): likewise
4790 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
4791 (grub_emu_SOURCES): likewise
4792 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
4793 (grub_emu_SOURCES): likewise
4794 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
4795 (grub_emu_SOURCES): likewise
4796 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
4797 (grub_emu_SOURCES): likewise
4798 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
4799 (grub_emu_SOURCES): likewise
4800
4801 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
4802
4803 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
4804
4805 * kern/misc.c (grub_itoa): Removed function
4806 (grub_ltoa): likewise
4807 (grub_vsprintf): use grub_lltoa
4808
4809 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
4810
4811 Restore grub-emu
4812
4813 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
4814 * conf/i386-coreboot.rmk: likewise
4815 * conf/i386-ieee1275.rmk: likewise
4816 * conf/powerpc-ieee1275.rmk: likewise
4817
4818 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
4819
4820 * INSTALL: Add that `./autogen.sh' needs to be run before
4821 `./configure.'.
4822
4823 2009-04-14 Bean <bean123ch@gmail.com>
4824
4825 * Makefile.in (pkglib_DATA): Add handler.lst.
4826 (handler.lst): New rule.
4827
4828 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
4829 * conf/i386-coreboot.rmk: Likewise.
4830 * conf/i386-ieee1275.rmk: Likewise.
4831 * conf/i386-efi.rmk: Likewise.
4832 * conf/x86_64-efi.rmk: Likewise.
4833 * conf/powerpc-ieee1275.rmk: Likewise.
4834 * conf/sparc64-ieee1275.rmk: Likewise.
4835
4836 * genhandlerlist.sh: New file.
4837
4838 * genmk.rb: Add rules to generate handler.lst.
4839
4840 * include/grub/normal.h (grub_file_getline): New function definition.
4841 (read_handler_list): Likewise.
4842 (free_handler_list): Likewise.
4843
4844 * include/grub/term.h (grub_term_register_input): Add name parameter
4845 for auto generation of handler.lst.
4846 (grub_term_register_output): Likewise.
4847
4848 * normal/handler.c: New file.
4849
4850 * normal/main.c (get_line): Renamed to grub_file_getline.
4851 (read_config_file): Use the newly renamed grub_file_getline.
4852 (read_command_list): Likewise.
4853 (read_fs_list): Likewise.
4854 (grub_normal_execute): Call read_handler_list to parse handler.lst.
4855 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
4856
4857 * term/efi/console.c (grub_console_init): Add name parameter for auto
4858 generation of handler.lst.
4859 * term/gfxterm.c: Likewise.
4860 * term/i386/pc/at_keyboard.c: Likewise.
4861 * term/i386/pc/console.c: Likewise.
4862 * term/i386/pc/serial.c: Likewise.
4863 * term/i386/pc/vesafb.c: Likewise.
4864 * term/i386/pc/vga.c: Likewise.
4865 * term/i386/pc/vga_text.c: Likewise.
4866 * term/ieee1275/ofconsole.c: Likewise.
4867 * term/usb_keyboard.c: Likewise.
4868
4869 2009-04-14 Bean <bean123ch@gmail.com>
4870
4871 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
4872 properly with null character.
4873
4874 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
4875
4876 * configure: Remove.
4877 * config.h.in: Likewise.
4878 * stamp-h.in: Likewise.
4879 * DISTLIST: Likewise.
4880 * conf/common.mk: Likewise.
4881 * conf/i386-coreboot.mk: Likewise.
4882 * conf/i386-efi.mk: Likewise.
4883 * conf/i386-ieee1275.mk: Likewise.
4884 * conf/i386.mk: Likewise.
4885 * conf/i386-pc.mk: Likewise.
4886 * conf/powerpc-ieee1275.mk: Likewise.
4887 * conf/sparc64-ieee1275.mk: Likewise.
4888 * conf/x86_64-efi.mk: Likewise.
4889
4890 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
4891 develop on GRUB.
4892
4893 2009-04-14 John Stanley <jpsinthemix@verizon.net>
4894 David S. Miller <davem@davemloft.net>
4895
4896 * util/hostdisk.c (make_device_name): Fix buffer length
4897 calculations.
4898
4899 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
4900
4901 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
4902 <sys/param.h> and <sys/sysctl.h>.
4903 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
4904 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
4905 opening the device and reset them afterwards.
4906
4907 2009-04-13 Pavel Roskin <proski@gnu.org>
4908
4909 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
4910 Reported by John Stanley <jpsinthemix@verizon.net>
4911
4912 2009-04-13 Robert Millan <rmh@aybabtu.com>
4913
4914 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
4915 that name for menuentries when appropriate.
4916
4917 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
4918
4919 * util/grub.d/10_freebsd.in: Add a missing `fi'.
4920
4921 2009-04-13 Robert Millan <rmh@aybabtu.com>
4922
4923 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
4924 to Linux, simply abort telling the user it's no longer supported.
4925
4926 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
4927
4928 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
4929 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
4930 `freebsd_loadenv' only when devices.hints exist.
4931
4932 2009-04-13 Pavel Roskin <proski@gnu.org>
4933
4934 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
4935
4936 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
4937
4938 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
4939 partition number.
4940 (grub_drive): Likewise.
4941
4942 2009-04-13 David S. Miller <davem@davemloft.net>
4943
4944 * kern/sparc64/ieee1275/ieee1275.c: New file.
4945 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
4946 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
4947 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
4948 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
4949 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
4950 grub_ieee1275_alloc_physmem): Declare new exported functions.
4951
4952 * include/grub/sparc64/ieee1275/loader.h: New file.
4953 * include/grub/sparc64/ieee1275/memory.h: Likewise.
4954 * include/grub/sparc64/kernel.h: Likewise.
4955 * loader/sparc64/ieee1275/linux.c: Likewise.
4956
4957 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
4958 (grub_fstest_SOURCES): Likewise.
4959
4960 * util/hostdisk.c (make_device_name): Do not make any assumptions
4961 about the length of drive names.
4962
4963 * kern/dl.c (grub_dl_load_file): Close file immediately when
4964 we are done using it.
4965
4966 2009-04-12 David S. Miller <davem@davemloft.net>
4967
4968 * kern/misc.c (grub_ltoa): Fix cast when handling negative
4969 values. Noticed by Pavel Roskin.
4970
4971 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
4972 target compiler.
4973
4974 * genmk.rb: Add more flexible image type specification, also
4975 pass --strip-unneeded to objcopy.
4976 * conf/i386-pc.rmk: Use *_FORMAT.
4977 * conf/i386-pc.mk: Rebuilt.
4978
4979 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
4980 (OFDISK_HASH_SZ): Define.
4981 (ofdisk_hash): New hash table.
4982 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
4983 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
4984 instead of device phandle which is not unique.
4985
4986 * kern/sparc64/ieee1275/init.c: Delete, replace with...
4987 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
4988 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
4989 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
4990 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
4991 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
4992 GRUB_KERNEL_MACHINE_DATA_END): Define.
4993 (grub_kernel_image_size, grub_total_module_size): Declare.
4994
4995 2009-04-12 Pavel Roskin <proski@gnu.org>
4996
4997 * configure.ac: Change the logic when we check for target tools.
4998 Do it when the target is specified and it's different from the
4999 specified value of the host.
5000
5001 2009-04-11 Felix Zielcke <fzielcke@z-51.de>
5002
5003 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
5004 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
5005 GNU/kFreeBSD. Check if a device is a character device. Use
5006 DIOCGMEDIASIZE to get the size.
5007 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
5008 support for GNU/kFreeBSD.
5009 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
5010 is a character device instead of a block device. Add support for
5011 FreeBSD device names.
5012
5013 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
5014 is a character device instead of a block device.
5015
5016 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
5017 is a character device instead of a block device.
5018
5019 2009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
5020
5021 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
5022 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
5023 FreeBSD. Check if a device is a character device. Use
5024 DIOCGMEDIASIZE to get the size.
5025 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
5026 support for FreeBSD.
5027 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
5028 is a character device instead of a block device. Add support for
5029 FreeBSD device names.
5030
5031 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
5032 a character device instead of a block device.
5033 (grub_util_check_char_device): New function.
5034
5035 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
5036 a character device instead of a block device.
5037
5038 * include/grub/util/getroot.h (grub_util_check_char_device): New
5039 prototype.
5040
5041 2009-04-11 David S. Miller <davem@davemloft.net>
5042
5043 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
5044 static libgcc.
5045 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
5046 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
5047 function, if present.
5048 (__bswapdi2): Likewise.
5049
5050 * include/grub/sparc64/ieee1275/boot.h: New file.
5051 * boot/sparc64/ieee1275/boot.S: Likewise.
5052 * boot/sparc64/ieee1275/diskboot.S: Likewise.
5053
5054 * kern/misc.c (grub_ltoa): New function.
5055 (grub_vsprintf): Use it to format 'long' integers.
5056
5057 2009-04-10 David S. Miller <davem@davemloft.net>
5058
5059 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
5060 slots are of type grub_ieee1275_cell_t.
5061 (grub_nand_read): Likewise.
5062 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
5063 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
5064 macros are used to compare values in arg/ret block of the call.
5065 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
5066 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
5067 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
5068 grub_ieee1275_instance_to_path, grub_ieee1275_write,
5069 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
5070 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
5071 grub_ieee1275_close, grub_ieee1275_set_property,
5072 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
5073 grub_ieee1275_cell_t.
5074 * kern/ieee1275/openfw.c (grub_map): Likewise.
5075 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
5076 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
5077
5078 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
5079 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
5080 (grub_devalias_iterate): Likewise.
5081
5082 2009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
5083
5084 UFS improvements
5085
5086 * fs/ufs.c (INODE_NBLOCKS): new definition
5087 (struct grub_ufs_dirent): added fields for non-BSD dirents
5088 (grub_ufs_get_file_block): fixed double indirect handling
5089 (grub_ufs_lookup_symlink): use more robust way to determine whether
5090 symlink is inline
5091 (grub_ufs_find_file): support for non-BSD dirents
5092 (grub_ufs_dir): support for non-BSD dirents
5093
5094 2009-04-10 Bean <bean123ch@gnail.com>
5095
5096 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
5097 attribute, otherwise the size would be wrong for i386 platform.
5098
5099 * include/grub/pci.h (grub_pci_read_word): New inline function.
5100 (grub_pci_read_byte): Likewise.
5101 (grub_pci_write): Likewise.
5102 (grub_pci_write_word): Likewise.
5103 (grub_pci_write_byte): Likewise.
5104
5105 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
5106
5107 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
5108 (find_framebuf): Scan pci to locate the frame buffer address.
5109
5110 * commands/efi/fixvideo.c: New file.
5111
5112 * commands/efi/loadbios.c: Likewise.
5113
5114 * commands/memrw.c: Likewise.
5115
5116 * util/grub-dumpbios.in: Likewise.
5117
5118 * conf/common.rmk (grub-dumpbios): New utility.
5119 (pkglib_MODULES): New module memrw.mod.
5120 (memrw_mod_SOURCE): New macro.
5121 (memrw_mod_CFLAGS): Likewise.
5122 (memrw_mod_LDFLAGS): Likewise.
5123
5124 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
5125 fixvideo.mod.
5126 (loadbios_mod_SOURCE): New macro.
5127 (loadbios_mod_CFLAGS): Likewise.
5128 (loadbios_mod_LDFLAGS): Likewise.
5129 (fixvideo_mod_SOURCE): Likewise.
5130 (fixvideo_mod_CFLAGS): Likewise.
5131 (fixvideo_mod_LDFLAGS): Likewise.
5132
5133 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
5134 fixvideo.mod.
5135 (loadbios_mod_SOURCE): New macro.
5136 (loadbios_mod_CFLAGS): Likewise.
5137 (loadbios_mod_LDFLAGS): Likewise.
5138 (fixvideo_mod_SOURCE): Likewise.
5139 (fixvideo_mod_CFLAGS): Likewise.
5140 (fixvideo_mod_LDFLAGS): Likewise.
5141
5142 2009-04-08 Felix Zielcke <fzielcke@z-51.de>
5143
5144 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
5145
5146 2009-04-07 David S. Miller <davem@davemloft.net>
5147
5148 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
5149 support for R_SPARC_OLO10 relocations. Fix compile warning for
5150 R_SPARC_WDISP30 case.
5151 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
5152
5153 2009-04-06 Pavel Roskin <proski@gnu.org>
5154
5155 * include/grub/misc.h (ARRAY_SIZE): New macro.
5156 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
5157 New macro.
5158 * loader/i386/linux.c (allocate_pages): Use free_pages().
5159 (grub_linux_unload): Don't use free_pages().
5160 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
5161 wrong index. Treat all other modes as text modes.
5162 (grub_cmd_linux): Initialize vid_mode unconditionally to
5163 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
5164
5165 * commands/help.c (print_command_help): Use cmd->prio, not
5166 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
5167
5168 2009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
5169
5170 Parttool
5171
5172 * parttool/pcpart.c: new file
5173 * commands/parttool.c: likewise
5174 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
5175 (parttool_mod_SOURCES): new variable
5176 (parttool_mod_CFLAGS): likewise
5177 (parttool_mod_LDFLAGS): likewise
5178 (pcpart_mod_SOURCES): likewise
5179 (pcpart_mod_CFLAGS): likewise
5180 (pcpart_mod_LDFLAGS): likewise
5181 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
5182 and parttool/pcpart.c
5183 * conf/i386-efi.rmk: likewise
5184 * conf/i386-ieee1275.rmk: likewise
5185 * conf/i386-pc.rmk: likewise
5186 * conf/powerpc-ieee1275.rmk: likewise
5187 * conf/sparc64-ieee1275.rmk: likewise
5188 * conf/x86_64-ieee1275.rmk: likewise
5189
5190 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
5191
5192 Support for mtime and further expandability of dir command
5193
5194 * include/grub/lib/datetime.h: moved to ...
5195 * include/grub/datetime.h: ... moved here and added
5196 declaration of grub_unixtime2datetime. All users updated
5197 * include/grub/fs.h: new syntax for dir and mtime functions in
5198 struct grub_fs
5199 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
5200 and GRUB_FSHELP_FLAGS_MASK
5201 * commands/ls.c (grub_ls_list_files): Write mtime in long format
5202 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
5203 (grub_ext2_mtime): new function
5204 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
5205 (grub_hfsplus_mtime): new function
5206 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
5207 (GRUB_UFS_ATTR_FILE): likewise
5208 (GRUB_UFS_ATTR_LNK): likewise
5209 (struct grub_ufs_sblock): new fields mtime
5210 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
5211 all users updated
5212 (grub_ufs_dir): mtime support
5213 (grub_ufs_mtime): new function
5214 * fs/affs.c (grub_affs_dir): use new dir syntax
5215 * fs/afs.c (grub_afs_dir): likewise
5216 * fs/cpio.c (grub_cpio_dir): likewise
5217 * fs/fat.c (grub_fat_find_dir): likewise
5218 * fs/hfs.c (grub_hfs_dir): likewise
5219 * fs/iso9660.c (grub_iso9660_dir): likewise
5220 * fs/jfs.c (grub_jfs_dir): likewise
5221 * fs/minix.c (grub_minix_dir): likewise
5222 * fs/ntfs.c (grub_ntfs_dir): likewise
5223 * fs/reiserfs.c (grub_reiserfs_dir): likewise
5224 * fs/sfs.c (grub_sfs_dir): likewise
5225 * fs/xfs.c (grub_xfs_dir): likewise
5226 * util/hostfs.c (grub_hostfs_dir): likewise
5227 * lib/datetime.c: moved to ...
5228 * normal/datetime.c: ... moved here
5229 (grub_unixtime2datetime): new function
5230 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
5231 * normal/completion.c (iterate_dir): use new dir syntax
5232 * normal/misc.c (grub_normal_print_device_info): tell the
5233 last modification time of a volume
5234 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
5235 * conf/common.rmk: added lib/datetime.c to ls.mod
5236 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
5237 (normal_mod_SOURCES): likewise
5238 (datetime_mod_SOURCES): Removed lib/datetime.c
5239 * conf/i386-efi.rmk: likewise
5240 * conf/i386-ieee1275.rmk: likewise
5241 * conf/i386-pc.rmk: likewise
5242 * conf/powerpc-ieee1275.rmk: likewise
5243 * conf/sparc64-ieee1275.rmk: likewise
5244 * conf/x86_64-efi.rmk: likewise
5245
5246 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
5247
5248 Trim trailing spaces in FAT label and support mtools-like labels
5249
5250 * fs/fat.c (grub_fat_iterate_dir): New function based
5251 on grub_fat_find_dir
5252 (grub_fat_find_dir): use grub_fat_iterate_dir
5253 (grub_fat_label): likewise
5254
5255 2009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
5256
5257 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
5258 and command.h
5259 remove extraneous kernel_elf_HEADERS
5260
5261 2009-04-04 Bean <bean123ch@gnail.com>
5262
5263 * include/grub/util/misc.h: Add dummy function fsync for mingw.
5264
5265 * util/misc.c: Likewise.
5266
5267 2009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
5268
5269 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
5270 instead of grub_printf.
5271
5272 2009-04-03 Robert Millan <rmh@aybabtu.com>
5273
5274 * loader/i386/linux.c (grub_linux_setup_video): Fill
5275 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
5276 values from `mode info' structure instead of hardcoded
5277 values.
5278
5279 2009-04-01 Pavel Roskin <proski@gnu.org>
5280
5281 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
5282 unused now.
5283 * genmk.rb: Likewise.
5284 * configure.ac: Likewise.
5285
5286 2009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
5287
5288 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
5289 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
5290
5291 2009-04-01 David S. Miller <davem@davemloft.net>
5292
5293 * normal/sparc64/setjmp.S: Fix setjmp implementation.
5294 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
5295 (grub_setjmp): Mark with 'returns_twice' attribute.
5296 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
5297 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
5298 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
5299
5300 2009-04-01 Robert Millan <rmh@aybabtu.com>
5301
5302 Reapply fix from 2008-07-28 which was accidentally reverted; also
5303 perform the same fix to a similar check in same function.
5304
5305 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
5306 with the same number are found, just use issue a warning with
5307 grub_dprintf(), as this error has been reported to be non-fatal.
5308
5309 2009-03-31 Pavel Roskin <proski@gnu.org>
5310
5311 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
5312 for cross-compilation.
5313
5314 2009-03-30 Robert Millan <rmh@aybabtu.com>
5315
5316 Fix i386-ieee1275 build.
5317
5318 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
5319 Remove declaration.
5320
5321 2009-03-30 Pavel Roskin <proski@gnu.org>
5322
5323 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
5324 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
5325 zero-terminated, rely only on the strlen value. Fix comparison
5326 of strings differing in length.
5327
5328 2009-03-30 Robert Millan <rmh@aybabtu.com>
5329
5330 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
5331 checking for abi version. Improve error messages on BIOS to notify
5332 user about `linux16' command.
5333
5334 2009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
5335
5336 Leak fixes
5337
5338 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
5339 in case of collision
5340 * disk/scsi.c (grub_scsi_open): free scsi in case of error
5341
5342 2009-03-29 Robert Millan <rmh@aybabtu.com>
5343
5344 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
5345 set `vid_mode' accordingly.
5346 (grub_linux_boot): Process `vid_mode' and set video mode.
5347
5348 2009-03-29 Robert Millan <rmh@aybabtu.com>
5349
5350 * util/grub.d/10_linux.in (linux_entry): New function.
5351 Factorize generation of Linux boot entries.
5352
5353 2009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
5354
5355 Make the format of Environment Block plain text. The boot loader
5356 part is not tested well yet.
5357
5358 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
5359 (buffer): Removed.
5360 (envblk): Likewise.
5361 (usage): Remove "info" and "clear". Add "unset". Update the
5362 description of "set", as this does not delete variables any
5363 longer.
5364 (create_envblk_file): Complete rewrite.
5365 (open_envblk_file): Likewise.
5366 (cmd_info): Removed.
5367 (cmd_list): Likewise.
5368 (cmd_set): Likewise.
5369 (cmd_clear): Likewise.
5370 (list_variables): New function.
5371 (write_envblk): Likewise.
5372 (set_variables): Likewise.
5373 (unset_variables): Likewise.
5374 (main): Complete rewrite.
5375
5376 * commands/loadenv.c (buffer): Removed.
5377 (envblk): Likewise.
5378 (open_envblk_file): New function.
5379 (read_envblk_file): Complete rewrite.
5380 (grub_cmd_load_env): Likewise.
5381 (grub_cmd_list_env): Likewise.
5382 (struct blocklist): New struct.
5383 (free_blocklists): New function.
5384 (check_blocklists): Likewise.
5385 (write_blocklists): Likewise.
5386 (grub_cmd_save_env): Complete rewrite.
5387
5388 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
5389 a plain text signature.
5390 (GRUB_ENVBLK_MAXLEN): Removed.
5391 (struct grub_envblk): Complete rewrite.
5392 (grub_envblk_find): Removed.
5393 (grub_envblk_insert): Likewise.
5394 (grub_envblk_open): New prototype.
5395 (grub_envblk_set): Likewise.
5396 (grub_envblk_delete): Put const to VALUE.
5397 (grub_envblk_iterate): Put const to NAME and VALUE.
5398 (grub_envblk_close): New prototype.
5399 (grub_envblk_buffer): New inline function.
5400 (grub_envblk_size): Likewise.
5401
5402 * lib/envblk.c: Include grub/mm.h.
5403 (grub_env_find): Removed.
5404 (grub_envblk_open): New function.
5405 (grub_envblk_close): Likewise.
5406 (escaped_value_len): Likewise.
5407 (find_next_line): Likewise.
5408 (grub_envblk_insert): Removed.
5409 (grub_envblk_set): New function.
5410 (grub_envblk_delete): Complete rewrite.
5411 (grub_envblk_iterate): Likewise.
5412
5413 2009-03-28 Robert Millan <rmh@aybabtu.com>
5414
5415 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
5416 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
5417 variables. Use 16-bit loader.
5418 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
5419 loader.
5420 * kern/i386/loader.S (grub_linux_boot): Rename to ...
5421 (grub_linux16_boot): ... this. Update all users.
5422 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
5423 (grub_linux_boot): ... this. Update all users.
5424
5425 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
5426 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
5427 commands to `linux16' and `initrd16'.
5428 (GRUB_MOD_FINI(linux)): Rename to ...
5429 (GRUB_MOD_FINI(linux16)): ... this.
5430
5431 2009-03-24 Pavel Roskin <proski@gnu.org>
5432
5433 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
5434 not just for compilation.
5435
5436 2009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
5437
5438 Move multiboot helper out of kernel
5439
5440 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
5441 `loader/i386/multiboot_helper.S'.
5442 * conf/i386-coreboot.rmk: Likewise
5443 * conf/i386-ieee1275.rmk: Likewise
5444
5445 * kern/i386/loader.S: Move multiboot helpers from here...
5446 * loader/i386/multiboot_helper.S: ...moved here
5447 * include/grub/i386/loader.h: Move declarations of multiboot
5448 helpers from here...
5449 * include/grub/i386/multiboot.h: ...moved here
5450 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
5451
5452 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
5453
5454 * kern/env.c (grub_env_context_open): Added an argument to specify
5455 whether a new context inherits exported variables from current
5456 one. This is useful when making a sandbox to interpret a config
5457 file.
5458 All callers updated.
5459
5460 * include/grub/env.h (grub_env_context_open): Updated the prototype.
5461
5462 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
5463
5464 * kern/env.c (grub_env_context_close): Fix memory leaks.
5465
5466 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
5467
5468 * normal/main.c (grub_normal_execute): Added an argument
5469 BATCH to specify if an interactive interface should be provided
5470 after reading a config file.
5471 All callers updated.
5472 (read_command_list): Prevent being executed twice.
5473 (read_fs_list): Likewise.
5474
5475 * include/grub/normal.h (grub_normal_execute): Updated the
5476 prototype.
5477
5478 2009-03-22 Pavel Roskin <proski@gno.org>
5479
5480 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
5481 _start.
5482 * kern/i386/pc/startup.S: Likewise.
5483 * kern/i386/efi/startup.S: Likewise.
5484 * kern/i386/ieee1275/startup.S: Likewise.
5485 * kern/i386/coreboot/startup.S: Likewise.
5486 * kern/x86_64/efi/startup.S: Likewise.
5487
5488 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
5489 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
5490 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
5491
5492 2009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
5493
5494 Bugfixes in multiboot for bugs uncovered by solaris kernel.
5495
5496 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
5497 limit detection.
5498 Use vaddr of correct segment for entry_point.
5499
5500 2009-03-21 Bean <bean123ch@gmail.com>
5501
5502 * commands/blocklist.c: Add include file <grub/command.h>, remove
5503 <grub/normal.h> and <grub/arg.h>.
5504 (grub_cmd_blocklist): Use the new command interface.
5505 (GRUB_MOD_INIT): Likewise.
5506 (GRUB_MOD_FINI): Likewise.
5507 * commands/boot.c: Likewise.
5508 * commands/cat.c: Likewise.
5509 * commands/cmp.c: Likewise.
5510 * commands/configfile.c: Likewise.
5511 * commands/crc.c: Likewise.
5512 * commands/echo.c: Likewise.
5513 * commands/halt.c: Likewise.
5514 * commands/handler.c: Likewise.
5515 * commands/hdparm.c: Likewise.
5516 * commands/help.c: Likewise.
5517 * commands/hexdump.c: Likewise.
5518 * commands/loadenv.c: Likewise.
5519 * commands/ls.c: Likewise.
5520 * commands/lsmmap.c: Likewise.
5521 * commands/lspci.c: Likewise.
5522 * commands/loadenv.c: Likewise.
5523 * commands/read.c: Likewise.
5524 * commands/reboot.c: Likewise.
5525 * commands/search.c: Likewise.
5526 * commands/sleep.c: Likewise.
5527 * commands/test.c: Likewise.
5528 * commands/usbtest.c: Likewise.
5529 * commands/videotest.c: Likewise.
5530 * commands/i386/cpuid.c: Likewise.
5531 * commands/i386/pc/halt.c: Likewise.
5532 * commands/i386/pc/play.c: Likewise.
5533 * commands/i386/pc/pxecmd.c: Likewise.
5534 * commands/i386/pc/vbeinfo.c: Likewise.
5535 * commands/i386/pc/vbetest.c: Likewise.
5536 * commands/ieee1275/suspend.c: Likewise.
5537 * disk/loopback.c: Likewise.
5538 * font/font_cmd.c: Likewise.
5539 * hello/hello.c: Likewise.
5540 * loader/efi/appleloader.c: Likewise.
5541 * loader/efi/chainloader.c: Likewise.
5542 * loader/i386/bsd.c: Likewise.
5543 * loader/i386/efi/linux.c: Likewise.
5544 * loader/i386/ieee1275/linux.c: Likewise.
5545 * loader/i386/linux.c: Likewise.
5546 * loader/i386/pc/chainloader.c: Likewise.
5547 * loader/i386/pc/linux.c: Likewise.
5548 * loader/powerpc/ieee1275/linux.c: Likewise.
5549 * loader/multiboot_loader.c: Likewise.
5550 * term/gfxterm.c: Likewise.
5551 * term/i386/pc/serial.c: Likewise.
5552 * term/terminfo.c: Likewise.
5553
5554 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
5555 * term/i386/pc/vga.c: Likewise.
5556 * video/readers/jpeg.c: Likewise.
5557 * video/readers/png.c: Likewise.
5558 * video/readers/tga.c: Likewise.
5559
5560 * util/grub-fstest (cmd_loopback): Removed.
5561 (cmd_blocklist): Likewise.
5562 (cmd_ls): Likewise.
5563 (grub_register_command): Likewise.
5564 (grub_unregister_command): Likewise.
5565 (execute_command): Use grub_command_find to locate command and execute
5566 it.
5567
5568 * include/grub/efi/chainloader.h: Removed.
5569 * loader/efi/chainloader_normal.c: Likewise.
5570 * loader/i386/bsd_normal.c: Likewise.
5571 * loader/i386/pc/chainloader_normal.c: Likewise.
5572 * loader/i386/pc/multiboot_normal.c: Likewise.
5573 * loader/linux_normal.c: Likewise.
5574 * loader/multiboot_loader_normal.c: Likewise.
5575 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
5576
5577 * gencmdlist.sh: Scan new registration command grub_register_extcmd
5578 and grub_register_command_p1.
5579
5580 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
5581 kern/command.c, lib/arg.c and commands/extcmd.c.
5582 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
5583 (minicmd_mod_SOURCES): New variable.
5584 (minicmd_mod_CFLAGS): Likewise.
5585 (minicmd_mod_LDFLAGS): Likewise.
5586 (extcmd_mod_SOURCES): Likewise.
5587 (extcmd_mod_CFLAGS): Likewise.
5588 (extcmd_mod_LDFLAGS): Likewise.
5589 (boot_mod_SOURCES): Removed.
5590 (boot_mod_CFLAGS): Likewise.
5591 (boot_mod_LDFLAGS): Likewise.
5592
5593 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
5594 kern/corecmd.c.
5595 (kernel_img_HEADERS): Add command.h.
5596 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
5597 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
5598 and lib/arg.c.
5599 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
5600 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
5601 remove the corresponding normal mode command.
5602 (normal_mod_SOURCES): Remove normal/arg.c.
5603 * conf/i386-coreboot.rmk: Likewise.
5604 * conf/i386-efi.rmk: Likewise.
5605 * conf/i386-ieee1275.rmk: Likewise.
5606 * conf/powerpc-ieee1275.rmk: Likewise.
5607 * conf/x86_64-efi.rmk: Likewise.
5608
5609 * include/grub/arg.h: Move from here ...
5610 * include/grub/lib/arg.h: ... to here.
5611
5612 * normal/arg.c: Move from here ...
5613 * lib/arg.c: ... to here.
5614
5615 * commands/extcmd.c: New file.
5616 * commands/minicmd.c: Likewise.
5617 * include/grub/command.h: Likewise.
5618 * include/grub/extcmd.h: Likewise.
5619 * kern/command.c: Likewise.
5620 * kern/corecmd.c: Likewise.
5621
5622 * kern/list.c (grub_list_iterate): Return int instead of void.
5623 (grub_list_insert): New function.
5624 (grub_prio_list_insert): Likewise.
5625
5626 * kern/rescue.c (grub_rescue_command): Removed.
5627 (grub_rescue_command_list): Likewise.
5628 (grub_rescue_register_command): Likewise.
5629 (grub_rescue_unregister_command): Likewise.
5630 (grub_rescue_cmd_boot): Move to minicmd.c
5631 (grub_rescue_cmd_help): Likewise.
5632 (grub_rescue_cmd_info): Likewise.
5633 (grub_rescue_cmd_boot): Likewise.
5634 (grub_rescue_cmd_testload): Likewise.
5635 (grub_rescue_cmd_dump): Likewise.
5636 (grub_rescue_cmd_rmmod): Likewise.
5637 (grub_rescue_cmd_lsmod): Likewise.
5638 (grub_rescue_cmd_exit): Likewise.
5639 (grub_rescue_print_devices): Moved to corecmd.c.
5640 (grub_rescue_print_files): Likewise.
5641 (grub_rescue_cmd_ls): Likewise.
5642 (grub_rescue_cmd_insmod): Likewise.
5643 (grub_rescue_cmd_set): Likewise.
5644 (grub_rescue_cmd_unset): Likewise.
5645 (attempt_normal_mode): Use grub_command_find to get normal module.
5646 (grub_enter_rescue_mode): Use grub_register_core_commands to register
5647 commands, remove grub_rescue_register_command calls.
5648
5649 * normal/command.c (grub_register_command): Removed.
5650 (grub_unregister_command): Likewise.
5651 (grub_command_find): Likewise.
5652 (grub_iterate_commands): Likewise.
5653 (rescue_command): Likewise.
5654 (export_command): Moved to corecmd.c.
5655 (set_command): Removed.
5656 (unset_command): Likewise.
5657 (insmod_command): Likewise.
5658 (rmmod_command): Likewise.
5659 (lsmod_command): Likewise.
5660 (grub_command_init): Likewise.
5661
5662 * normal/completion.c (iterate_command): Use cmd->prio to check for
5663 active command.
5664 (complete_arguments): Use grub_extcmd_t structure to find options.
5665 (grub_normal_do_completion): Change function grub_iterate_commands to
5666 grub_command_iterate.
5667
5668 * normal/execute.c (grub_script_execute_cmd): No need to parse
5669 argument here.
5670
5671 * normal/main.c (grub_dyncmd_dispatcher): New function.
5672 (read_command_list): Register unload commands as dyncmd.
5673 (grub_cmd_normal): Use new command interface, register rescue,
5674 unregister normal at entry, register normal, unregister rescue at exit.
5675
5676 * include/grub/list.h (grub_list_test_t): New type.
5677 (grub_list_iterate): Return int instead of void.
5678 (grub_list_insert): New function.
5679 (GRUB_AS_NAMED_LIST_P): New macro.
5680 (GRUB_AS_PRIO_LIST): Likewise.
5681 (GRUB_AS_PRIO_LIST_P): Likewise.
5682 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
5683 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
5684 (grub_prio_list): New structure.
5685 (grub_prio_list_insert): New function.
5686 (grub_prio_list_remove): New inline function.
5687
5688 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
5689 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
5690 (GRUB_COMMAND_FLAG_MENU): Likewise.
5691 (GRUB_COMMAND_FLAG_BOTH): Likewise.
5692 (GRUB_COMMAND_FLAG_TITLE): Likewise.
5693 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
5694 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
5695 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
5696 (grub_command): Likewise.
5697 (grub_register_command): Likewise.
5698 (grub_command_find): Likewise.
5699 (grub_iterate_commands): Likewise.
5700 (grub_command_init): Likewise.
5701 (grub_arg_parse): Likewise.
5702 (grub_arg_show_help): Likewise.
5703
5704 * include/grub/rescue.h (grub_rescue_register_command): Removed.
5705 (grub_rescue_unregister_command): Likewise.
5706
5707 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
5708 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
5709 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
5710
5711 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
5712 grub_rescue_cmd_initrd.
5713 * include/grub/i386/loader.h: Likewise.
5714 * include/grub/x86_64/loader.h: Likewise.
5715
5716 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
5717
5718 2009-03-21 Bean <bean123ch@gmail.com>
5719
5720 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
5721 instead of stat in mingw environment.
5722
5723 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
5724
5725 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
5726
5727 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
5728 AC_CONFIG_LINKS.
5729
5730 2009-03-21 Bean <bean123ch@gmail.com>
5731
5732 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
5733 out of range error.
5734
5735 2009-03-18 Michel Dänzer <michel@daenzer.net>
5736
5737 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
5738 checking inode flags for EXT4_EXTENTS_FLAG.
5739
5740 2009-03-18 Robert Millan <rmh@aybabtu.com>
5741
5742 * loader/i386/linux.c: Include `<grub/video.h>' and
5743 `<grub/i386/pc/vbe.h>'..
5744 (grub_linux_setup_video): New function. Loosely based on the EFI one.
5745 (grub_linux32_boot): Attempt to configure video settings with
5746 grub_linux_setup_video().
5747 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
5748 to avoid grub_console_fini() which would step out of graphical mode
5749 unconditionally.
5750
5751 2009-03-14 Robert Millan <rmh@aybabtu.com>
5752
5753 Fix build on powerpc.
5754 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
5755
5756 2009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
5757
5758 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
5759 background image command.
5760
5761 2009-03-12 Colin D Bennett <colin@gibibit.com>
5762
5763 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
5764 (grub_gfxterm_putchar): Extract pairs of identical calls to
5765 draw_cursor out of conditional blocks.
5766
5767 2009-03-11 Pavel Roskin <proski@gnu.org>
5768
5769 * fs/hfs.c (grub_hfs_strncasecmp): New function.
5770 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
5771
5772 2009-03-11 Robert Millan <rmh@aybabtu.com>
5773
5774 * loader/i386/multiboot_elfxx.c
5775 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
5776
5777 2009-03-11 Felix Zielcke <fzielcke@z-51.de>
5778
5779 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
5780 `kern/handler.c'.
5781
5782 2009-03-11 Robert Millan <rmh@aybabtu.com>
5783
5784 * loader/i386/multiboot.c (code_size): New variable.
5785 (grub_multiboot): Define offsets by adding to `code_size' rather
5786 than subtracting from `grub_multiboot_payload_size'. Provide
5787 4-byte alignment to MBI and others by increasing
5788 `boot_loader_name_length' appropriately.
5789
5790 * loader/i386/multiboot_elfxx.c
5791 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
5792
5793 2009-03-09 Felix Zielcke <fzielcke@z-51.de>
5794
5795 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
5796 `fs/ext2.c'.
5797
5798 2009-03-08 Robert Millan <rmh@aybabtu.com>
5799
5800 Make loader/i386/linux.c usable on i386-pc again.
5801
5802 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
5803 memory to heap.
5804 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
5805 `#error' stanza.
5806
5807 2009-03-07 Bean <bean123ch@gmail.com>
5808
5809 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
5810 allocation.
5811
5812 2009-03-06 Robert Millan <rmh@aybabtu.com>
5813
5814 Fix display issue on terminals with screen size other than 80x25
5815 (e.g. gfxterm with resolution higher than 640x480).
5816
5817 * normal/main.c (grub_normal_init_page): Display title text in a
5818 position relative to the center of the terminal instead of relying
5819 on a hardcoded offset.
5820
5821 2009-03-04 Robert Millan <rmh@aybabtu.com>
5822
5823 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
5824 installed.
5825
5826 * Makefile.in (host_kernel): New variable.
5827 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
5828 scripts instead of just the windows one.
5829 * configure.ac: Initialize and AC_SUBST `host_kernel'.
5830
5831 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
5832
5833 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
5834 `kern/handler.c'.
5835 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
5836 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
5837 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
5838 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
5839 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
5840 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
5841
5842 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
5843
5844 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
5845 or if there's no space for the disk label and print the partition number on a
5846 invalid magic.
5847
5848 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
5849
5850 * util/misc.c: Include <time.h>.
5851 (grub_millisleep): New function.
5852
5853 2009-03-04 Bean <bean123ch@gmail.com>
5854
5855 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
5856 another option -mno-red-zone.
5857
5858 * commands/handler.c: Change module description.
5859
5860 * kern/handler.c: Add missing space at the end of description line.
5861
5862 * kern/list.c: Likewise.
5863
5864 2009-03-03 Robert Millan <rmh@aybabtu.com>
5865
5866 Move more components to the relocation area, and fix mbi pointer
5867 handling to use the destination rather than the origin (thanks to
5868 Vladimir Serbinenko for spotting).
5869
5870 * loader/i386/multiboot.c (mbi_dest): New variable.
5871 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
5872 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
5873 relocation area.
5874
5875 2009-03-01 Bean <bean123ch@gmail.com>
5876
5877 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
5878 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
5879 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
5880 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
5881
5882 * loader/i386/efi/linux.c (acpi_guid): New variable.
5883 (acpi_guid): Likewise.
5884 (EBDA_SEG_ADDR): New constant.
5885 (LOW_MEM_ADDR): Likewise.
5886 (FAKE_EBDA_SEG): Likewise.
5887 (fake_bios_data): New function.
5888 (grub_linux_boot): Call fake_bios_data.
5889
5890 2009-03-01 Bean <bean123ch@gmail.com>
5891
5892 * commands/terminal.c: Removed.
5893
5894 * commands/handler.c: New file.
5895
5896 * include/grub/list.h: Likewise.
5897
5898 * include/grub/handler.h: Likewise.
5899
5900 * kern/list.c: Likewise.
5901
5902 * kern/handler.c: Likewise.
5903
5904 * kern/term.h: Include header file <grub/handler.h>.
5905 (grub_term_input): Move next field to the beginning.
5906 (grub_term_output): Likewise.
5907 (grub_term_input_class): New variable.
5908 (grub_term_output_class): Likewise.
5909 (grub_term_register_input): Changed to inline function.
5910 (grub_term_register_output): Likewise.
5911 (grub_term_unregister_input): Likewise.
5912 (grub_term_unregister_output): Likewise.
5913 (grub_term_set_current_input): Likewise.
5914 (grub_term_set_current_output): Likewise.
5915 (grub_term_get_current_input): Likewise.
5916 (grub_term_get_current_output): Likewise.
5917 (grub_term_iterate_input): Removed.
5918 (grub_term_iterate_output): Likewise.
5919
5920 * kern/term.c (grub_term_list_input): Removed.
5921 (grub_term_list_output): Likewise.
5922 (grub_term_input_class): New variable.
5923 (grub_term_output_class): Likewise.
5924 (grub_cur_term_input): Change variable as macro.
5925 (grub_cur_term_output): Likewise.
5926 (grub_term_register_input): Removed.
5927 (grub_term_register_output): Likewise.
5928 (grub_term_unregister_input): Likewise.
5929 (grub_term_unregister_output): Likewise.
5930 (grub_term_set_current_input): Likewise.
5931 (grub_term_set_current_output): Likewise.
5932 (grub_term_iterate_input): Likewise.
5933 (grub_term_iterate_output): Likewise.
5934 (grub_term_get_current_input): Likewise.
5935 (grub_term_get_current_output): Likewise.
5936
5937 * util/grub-editenv.c: Include header file <grub/handler.h>.
5938 (grub_term_get_current_input): Removed.
5939 (grub_term_get_current_output): Likewise.
5940 (grub_term_input_class): New variable.
5941 (grub_term_output_class): Likewise.
5942
5943 * util/grub-fstest.c (grub_term_get_current_input): Removed.
5944 (grub_term_get_current_output): Likewise.
5945 (grub_term_input_class): New variable.
5946 (grub_term_output_class): Likewise.
5947
5948 * util/grub-probe.c (grub_term_get_current_input): Removed.
5949 (grub_term_get_current_output): Likewise.
5950 (grub_term_input_class): New variable.
5951 (grub_term_output_class): Likewise.
5952
5953 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
5954 (grub_term_get_current_output): Likewise.
5955 (grub_term_input_class): New variable.
5956 (grub_term_output_class): Likewise.
5957
5958 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
5959 (terminal_mod_SOURCES): Likewise.
5960 (terminal_mod_CFLAGS): Likewise.
5961 (terminal_mod_LDFLAGS): Likewise.
5962
5963 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
5964 handler.c.
5965 (kernel_img_SOURCES): Add list.c and handler.c.
5966 (kernel_img_HEADERS): Add list.h and handler.h.
5967
5968 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
5969 handler.c.
5970 (kernel_mod_SOURCES): Add list.c and handler.c.
5971 (kernel_mod_HEADERS): Add list.h and handler.h.
5972
5973 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
5974 handler.c.
5975 (kernel_elf_SOURCES): Add list.c and handler.c.
5976 (kernel_elf_HEADERS): Add list.h and handler.h.
5977
5978 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
5979 handler.c.
5980 (kernel_elf_SOURCES): Add list.c and handler.c.
5981 (kernel_elf_HEADERS): Add list.h and handler.h.
5982
5983 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
5984 handler.c.
5985 (kernel_mod_SOURCES): Add list.c and handler.c.
5986 (kernel_mod_HEADERS): Add list.h and handler.h.
5987
5988 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
5989 handler.c.
5990 (kernel_elf_SOURCES): Add list.c and handler.c.
5991 (kernel_elf_HEADERS): Add list.h and handler.h.
5992
5993 2009-02-27 Robert Millan <rmh@aybabtu.com>
5994
5995 Factorize elf32 / elf64 code in Multiboot loader. This will
5996 prevent it from getting out of sync again.
5997
5998 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
5999 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
6000 grub_multiboot_load_elf64): Move from here ...
6001 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
6002 grub_multiboot_load_elf): ... to here (new file).
6003
6004 2009-02-27 Robert Millan <rmh@aybabtu.com>
6005
6006 * util/grub.d/10_linux.in: Rename "single-user mode" to
6007 "recovery mode".
6008
6009 2009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6010
6011 Don't leak in SCSI code.
6012 * disk/scsi.c (grub_scsi_close): free `scsi'.
6013
6014 2009-02-27 Robert Millan <rmh@aybabtu.com>
6015
6016 * loader/i386/pc/multiboot.c: Move from here ...
6017 * loader/i386/multiboot.c: ... to here. Update all users.
6018
6019 2009-02-27 Robert Millan <rmh@aybabtu.com>
6020
6021 Patch from Alexandre Bique <bique.alexandre@gmail.com>
6022 * util/i386/pc/grub-setup.c (setup): Fix directory path.
6023
6024 2009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
6025
6026 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
6027 b-tree.
6028
6029 2009-02-27 Robert Millan <rmh@aybabtu.com>
6030
6031 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
6032 `0x' qualifier as 0 when base is specified as parameter).
6033
6034 2009-02-24 Bean <bean123ch@gmail.com>
6035
6036 * configure.ac: Check for -mcmodel=large in x86_64 target.
6037
6038 * include/grub/efi/api.h (efi_call_10): New macro.
6039 (efi_wrap_10): New function.
6040
6041 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
6042 (GRUB_PE32_REL_BASED_HIGH): Likewise.
6043 (GRUB_PE32_REL_BASED_LOW): Likewise.
6044 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
6045 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
6046 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
6047 (GRUB_PE32_REL_BASED_SECTION): Likewise.
6048 (GRUB_PE32_REL_BASED_REL): Likewise.
6049 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
6050 (GRUB_PE32_REL_BASED_DIR64): Likewise.
6051 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
6052
6053 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
6054 issue.
6055
6056 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
6057 (efi_wrap_10): New function.
6058
6059 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
6060
6061 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
6062 MB/MBP model (NV chipset).
6063 (devdata_devs): Add devpath_5 to the list.
6064
6065 * load/i386/efi/linux.c (video_base): Remove variable.
6066 (RGB_MASK): New macro.
6067 (RGB_MAGIC): Likewise.
6068 (LINE_MIN): Likewise.
6069 (LINE_MAX): Likewise.
6070 (FBTEST_STEP): Likewise.
6071 (FBTEST_COUNT): Likewise.
6072 (fb_list): New variable.
6073 (grub_find_video_card): Remove function.
6074 (find_framebuf): New function.
6075 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
6076 line length.
6077
6078 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
6079 problem for x86_64.
6080
6081 2009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
6082
6083 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
6084
6085 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
6086 coding tool name.
6087
6088 2009-02-22 Robert Millan <rmh@aybabtu.com>
6089
6090 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
6091 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
6092 in our relocation, instead of using it directly from heap. Also
6093 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
6094
6095 2009-02-21 Robert Millan <rmh@aybabtu.com>
6096
6097 Implement USB keyboard support (based on patch by Marco Gerards)
6098
6099 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
6100 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
6101 (usb_keyboard_mod_LDFLAGS): New variables.
6102
6103 * term/usb_keyboard.c: New file.
6104
6105 2009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
6106
6107 Corrected wrong declaration
6108
6109 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
6110
6111 2009-02-14 Christian Franke <franke@computer.org>
6112
6113 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
6114 (grub_lspci_iter): Print class code and programming interface byte.
6115
6116 2009-02-14 Christian Franke <franke@computer.org>
6117
6118 * gendistlist.sh: Ignore `.svn' directories.
6119
6120 2009-02-14 Felix Zielcke <fzielcke@z-51.de>
6121
6122 * fs/fat.c: Add 2009 to Copyright line.
6123
6124 2009-02-14 Christian Franke <franke@computer.org>
6125
6126 * commands/hdparm.c: New file. Provides `hdparm' command
6127 which sends ATA commands via grub_disk_ata_pass_through ().
6128
6129 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
6130
6131 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
6132 and <grub/cpu/io.h> to include/grub/ata.h.
6133 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
6134 (GRUB_CDROM_SECTOR_SIZE): Remove.
6135 (GRUB_ATA_*): Move to include/grub/ata.h.
6136 (GRUB_ATAPI_*): Likewise.
6137 (enum grub_ata_commands): Likewise.
6138 (enum grub_ata_timeout_milliseconds): Likewise.
6139 (struct grub_ata_device): Likewise.
6140 (grub_ata_regset): Likewise.
6141 (grub_ata_regget): Likewise.
6142 (grub_ata_regset2): Likewise.
6143 (grub_ata_regget2): Likewise.
6144 (grub_ata_check_ready): Likewise.
6145 (grub_ata_wait_not_busy): Remove static, exported in
6146 include/grub/ata.h.
6147 (grub_ata_wait_drq): Likewise.
6148 (grub_ata_pio_read): Likewise.
6149
6150 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
6151 function for hdparm.mod.
6152
6153 * include/grub/ata.h: New file, contains declarations from
6154 disk/ata.c.
6155 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
6156
6157 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
6158 (grub_disk_ata_pass_through): New exported variable.
6159
6160 * kern/disk.c (grub_disk_ata_pass_through): New variable.
6161
6162 2009-02-13 Colin D Bennett <colin@gibibit.com>
6163
6164 Support multiple fallback entries, and provide an API to support
6165 executing default+fallback menu entries. Renamed the `terminal' menu
6166 viewer to `text'.
6167
6168 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
6169 variable declaration.
6170 (grub_menu_execute_callback): New structure declaration.
6171 (grub_menu_execute_callback_t): New typedef.
6172 (grub_menu_execute_with_fallback): New function declaration.
6173 (grub_menu_get_entry): Likewise.
6174 (grub_menu_get_timeout): Likewise.
6175 (grub_menu_set_timeout): Likewise.
6176
6177 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
6178
6179 * normal/menu.c (grub_wait_after_message): Moved to
6180 `normal/menu_text.c'.
6181 (draw_border): Likewise.
6182 (print_message): Likewise.
6183 (print_entry): Likewise.
6184 (print_entries): Likewise.
6185 (grub_menu_init_page): Likewise.
6186 (get_entry_number): Likewise.
6187 (print_timeout): Likewise.
6188 (run_menu): Likewise.
6189 (grub_menu_execute_entry): Likewise.
6190 (show_text_menu): Likewise.
6191 (get_and_remove_first_entry_number): New function.
6192 (grub_menu_execute_with_fallback): Likewise.
6193 (get_entry): Renamed to ...
6194 (grub_menu_get_entry): .. this and made it global.
6195 (get_timeout): Renamed to ...
6196 (grub_menu_get_timeout): ... this and made it global.
6197 (set_timeout): Renamed to ...
6198 (grub_menu_set_timeout): ... this and made it global.
6199 (grub_normal_terminal_menu_viewer): Renamed to ...
6200 (grub_normal_text_menu_viewer): ... this.
6201
6202 * normal/menu_text.c: New file. Extracted text-menu-specific code
6203 from normal/menu.c.
6204
6205 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
6206 (normal_mod_SOURCES): Likewise.
6207
6208 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
6209 (normal_mod_SOURCES): Likewise.
6210
6211 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
6212 (normal_mod_SOURCES): Likewise.
6213
6214 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
6215 (normal_mod_SOURCES): Likewise.
6216
6217 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
6218 (normal_mod_SOURCES): Likewise.
6219
6220 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
6221 (normal_mod_SOURCES): Likewise.
6222
6223 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
6224 (normal_mod_SOURCES): Likewise.
6225
6226 2009-02-11 Robert Millan <rmh@aybabtu.com>
6227
6228 * util/grub.d/00_header.in: Update old reference to `font' command.
6229
6230 2009-02-10 Felix Zielcke <fzielcke@z-51.de>
6231
6232 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
6233
6234 Based on patch from Javier Martín.
6235
6236 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
6237
6238 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
6239 to avoid false positives with FAT.
6240 (grub_fstest_SOURCES): Likewise.
6241 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
6242 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
6243 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
6244 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
6245 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
6246 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
6247
6248 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
6249
6250 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
6251 bpb.version_specific.fat12_or_fat16.fstype and
6252 bpb.version_specific.fat32.fstype.
6253
6254 2009-02-08 Robert Millan <rmh@aybabtu.com>
6255
6256 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
6257
6258 2009-02-08 Robert Millan <rmh@aybabtu.com>
6259
6260 * Makefile.in (host_os, host_cpu): New variables.
6261 (target_os): Remove. Update all users.
6262
6263 2009-02-08 Marco Gerards <marco@gnu.org>
6264
6265 * Makefile.in (enable_grub_emu_usb): New variable.
6266 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
6267 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
6268 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
6269 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
6270 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
6271 `usbtest.mod' and `usbms.mod'.
6272 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
6273 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
6274 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
6275 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
6276 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
6277 variables.
6278
6279 * disk/usbms.c: New file.
6280
6281 * include/grub/usb.h: Likewise.
6282
6283 * include/grub/usbtrans.h: Likewise.
6284
6285 * include/grub/usbdesc.h: Likewise.
6286
6287 * bus/usb/usbtrans.c: Likewise.
6288
6289 * bus/usb/ohci.c: Likewise.
6290
6291 * bus/usb/uhci.c: Likewise.
6292
6293 * bus/usb/usbhub.c: Likewise.
6294
6295 * bus/usb/usb.c: Likewise.
6296
6297 * commands/usbtest.c: Likewise.
6298
6299 * util/usb.c: Likewise.
6300
6301 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
6302
6303 * configure.ac: Test for libusb presence.
6304
6305 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
6306
6307 2009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
6308
6309 * kern/mm.c: Add more comments.
6310
6311 2009-02-08 Robert Millan <rmh@aybabtu.com>
6312
6313 Patch from Javier Martín.
6314 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
6315 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
6316
6317 2009-02-08 Robert Millan <rmh@aybabtu.com>
6318
6319 * fs/cpio.c: Split tar functionality to ...
6320 * fs/tar.c: ... here (new file). Update all users.
6321
6322 2009-02-07 Robert Millan <rmh@aybabtu.com>
6323
6324 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
6325 backward-incompatible features.
6326
6327 Based on patch from Javier Martín, with some adjustments.
6328
6329 2009-02-07 Michael Scherer <misc@mandriva.org>
6330
6331 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
6332
6333 2009-02-07 Robert Millan <rmh@aybabtu.com>
6334
6335 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
6336 position of `disk/lvm.c' to ensure grub_init_all() always picks it
6337 after the RAID stuff.
6338
6339 2009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
6340
6341 Fixes problem when running vbetest command as reported by
6342 Vladimir Serbinenko <phcoder@gmail.com>.
6343
6344 * (grub_vbe_set_video_mode): Fixed problem with text modes.
6345
6346 2009-02-04 Felix Zielcke <fzielcke@z-51.de>
6347
6348 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
6349 /dev/md/NpN style mdraid devices.
6350
6351 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
6352
6353 * util/unifont2pff.rb: Remove.
6354
6355 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
6356
6357 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
6358 `#'.
6359
6360 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
6361
6362 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
6363 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
6364 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
6365 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
6366 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
6367 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
6368 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
6369
6370 2009-02-02 Christian Franke <franke@computer.org>
6371
6372 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
6373
6374 2009-02-01 Felix Zielcke <fzielcke@z-51.de>
6375
6376 * INSTALL: Note that we now require at least autoconf 2.59 and
6377 that LZO is optional.
6378
6379 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
6380
6381 Base on patch on bug #24154 created by Tomas Tintera
6382 <trosos@seznam.cz>.
6383
6384 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
6385
6386 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
6387
6388 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
6389 <bero@arklinux.org>.
6390
6391 * normal/parser.y (script_init): Add missing semicolon.
6392
6393 2009-01-31 Colin D Bennett <colin@gibibit.com>
6394
6395 * normal/main.c: Add include to grub/menu_viewer.h.
6396 (free_menu_entry_classes): Added.
6397 (grub_normal_menu_addentry): Added class property handling.
6398 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
6399 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
6400
6401 * normal/menu_viewer.c: New file.
6402
6403 * normal/menu.c (run_menu_entry): Renamed to ...
6404 (grub_menu_execute_entry): ... this and made it as global.
6405 (grub_menu_run): Renamed to ...
6406 (show_text_menu): ... this and made it local.
6407 (show_text_menu): Adapt to new function names.
6408 (grub_normal_terminal_menu_viewer): New global variable.
6409
6410 * include/grub/menu.h: New file.
6411
6412 * include/grub/menu_viewer.h: New file.
6413
6414 * include/grub/normal.h: Added include to grub/menu.h.
6415 (grub_menu_entry): Moved to include/grub/menu.h.
6416 (grub_menu_entry_t): Likewise.
6417 (grub_menu): Likewise.
6418 (grub_menu_t): Likewise.
6419 (grub_normal_terminal_menu_viewer): Added.
6420 (grub_menu_execute_entry): Likewise.
6421 (grub_menu_run): Removed.
6422
6423 * DISTLIST: Added include/grub/menu.h.
6424 Added include/grub/menu_viewer.h.
6425 Added normal/menu_viewer.c.
6426
6427 2009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
6428
6429 * normal/execute.c (grub_script_execute_menuentry): Changed to use
6430 arglist for menutitle arguments.
6431
6432 * normal/main.c (grub_normal_menu_addentry): Likewise.
6433
6434 * normal/parser.y (menuentry): Likewise.
6435
6436 * normal/script.c (grub_script_create_cmdmenu): Likewise.
6437
6438 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
6439 (grub_script_create_cmdmenu): Likewise.
6440
6441 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
6442
6443 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
6444 changes.
6445
6446 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
6447
6448 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
6449
6450 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
6451
6452 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
6453
6454 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
6455
6456 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
6457
6458 2009-01-30 Christian Franke <franke@computer.org>
6459
6460 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
6461 in option help text.
6462
6463 2009-01-27 Pavel Roskin <proski@gnu.org>
6464
6465 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
6466
6467 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
6468
6469 * commands/lsmmap.c: Add include to grub/machine/memory.h.
6470
6471 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
6472
6473 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
6474 unregister function.
6475
6476 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
6477
6478 * disk/scsi.c (grub_scsi_read): Fix sign problem.
6479
6480 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
6481
6482 * util/grub-mkfont.c (usage): Fix typo.
6483
6484 * util/elf/grub-mkimage.c (load_modules): Fix warning.
6485
6486 2009-01-26 Daniel Mierswa <impulze@impulze.org>
6487
6488 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
6489
6490 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
6491
6492 * kern/misc.c (grub_strcasecmp): New function.
6493 (grub_strcasecmp): Use grub_size_t instead of int for length.
6494 Fix return value.
6495 * include/grub/misc.h: Update function prototypes.
6496
6497 2009-01-26 Robert Millan <rmh@aybabtu.com>
6498
6499 * configure.ac: Fix cross-compilation check.
6500
6501 2009-01-22 Christian Franke <franke@computer.org>
6502
6503 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
6504 (precision) digit string. Allow `.format2' without `format1' (width).
6505 Limit input chars for `%s' output to `format2' if specified. This is
6506 compatible with standard printf ().
6507
6508 2009-01-22 Christian Franke <franke@computer.org>
6509
6510 * disk/ata.c (grub_ata_wait_status): Replace by ...
6511 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
6512 other status bits may be invalid while BSY is asserted.
6513 (grub_ata_check_ready): New function.
6514 (grub_ata_cmd): Removed.
6515 (grub_ata_wait_drq): New function.
6516 (grub_ata_strncpy): Remove inline.
6517 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
6518 and error check now done by grub_ata_wait_drq ().
6519 (grub_ata_pio_write): Likewise.
6520 (grub_atapi_identify): Set DEV before check for !BSY. Use
6521 grub_ata_wait_drq () to wait for data.
6522 (grub_ata_device_initialize): Add status register check to
6523 detect missing SATA slave devices. Add debug messages.
6524 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
6525 (grub_atapi_packet): Set DEV before check for !BSY. Replace
6526 transfer loop by grub_ata_pio_write ().
6527 (grub_ata_identify): Set DEV before check for !BSY. Use
6528 grub_ata_wait_drq () to wait for data.
6529 (grub_ata_setaddress): Set DEV before check for !BSY.
6530 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
6531 read/write in one loop. Fix invalid command on write. Fix incomplete
6532 command on (size % batch) == 0. Add missing error check after write of
6533 last block. Add debug messages.
6534 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
6535
6536 2009-01-19 Christian Franke <franke@computer.org>
6537
6538 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
6539 (GRUB_ATAPI_IREASON_*): Likewise.
6540 (grub_ata_pio_write): Fix timeout error return.
6541 (grub_atapi_identify): Add grub_ata_wait () after cmd.
6542 (grub_atapi_wait_drq): New function.
6543 (grub_atapi_packet): New parameter `size'.
6544 Use grub_atapi_wait_drq () and direct write instead of
6545 grub_ata_pio_write ().
6546 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
6547 reads the number of bytes requested by the device for each DRQ
6548 assertion.
6549 (grub_atapi_write): Remove old implementation, return not
6550 implemented instead.
6551
6552 2009-01-19 Christian Franke <franke@computer.org>
6553
6554 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
6555 of 512 to calculate data size.
6556 (grub_scsi_read12): Likewise.
6557 (grub_scsi_write10): Likewise.
6558 (grub_scsi_write12): Likewise.
6559 (grub_scsi_read): Adjust size according to blocksize.
6560 Add checks for invalid blocksize and unaligned transfer.
6561
6562 2009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
6563
6564 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
6565
6566 * term/gfxterm.c (write_char): Fix background rendering for wide
6567 width glyphs.
6568
6569 2009-01-19 Robert Millan <rmh@aybabtu.com>
6570
6571 * config.guess: Update to latest version from config git.
6572 * config.sub: Likewise.
6573
6574 2009-01-17 Felix Zielcke <fzielcke@z-51.de>
6575
6576 * Makefile.in: Change font compilation to use new grub-mkfont instead
6577 of java version.
6578
6579 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
6580 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
6581 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
6582 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
6583 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
6584 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
6585 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
6586 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
6587 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
6588
6589 2009-01-16 Christian Franke <franke@computer.org>
6590
6591 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
6592 (enum grub_ata_timeout_milliseconds): New enum.
6593 (grub_ata_wait_status): Add parameter milliseconds.
6594 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
6595 recovery from timed-out commands.
6596 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
6597 return grub_errno instead of REG_ERROR.
6598 (grub_ata_pio_write): Add parameter milliseconds.
6599 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
6600 Pass milliseconds to grub_ata_wait_status () and
6601 grub_ata_pio_read ().
6602 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
6603 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
6604 grub_ata_wait_status (). Fix IDENTIFY timeout check.
6605 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
6606 It is not suitable for device detection, because DEV bit is ignored,
6607 the command may run too long, and not all devices set the signature
6608 properly.
6609 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
6610 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
6611 Fix device selection, DEV bit must be set first to address the registers
6612 of the correct device.
6613 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
6614 grub_ata_pio_read/write ().
6615 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
6616 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
6617
6618 2009-01-13 Carles Pina i Estany <carles@pina.cat>
6619
6620 * util/grub-editenv.c (main): Use fseeko(), not fseek().
6621
6622 2009-01-13 Bean <bean123ch@gmail.com>
6623
6624 * util/grub-mkfont.c (write_font): forget to remove some debug code.
6625
6626 2009-01-13 Bean <bean123ch@gmail.com>
6627
6628 * Makefile.in: (enable_grub_mkfont): New variable.
6629 (freetype_cflags): Likewise.
6630 (freetype_libs): Likewise.
6631
6632 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
6633 (grub_mkfont_SOURCES): New variable.
6634 (grub_mkfont_CFLAGS): Likewise.
6635 (grub_mkfont_LDFLAGS): Likewise.
6636
6637 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
6638 library if `--enable-grub-mkfont' is requested.
6639 (enable_grub_mkfont): New variable.
6640 (freetype_cflags): Likewise.
6641 (freetype_libs): Likewise.
6642
6643 * util/grub-mkfont.c: New file.
6644
6645 2009-01-12 Christian Franke <franke@computer.org>
6646
6647 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
6648 mode check. Fix setting of compat_use[].
6649
6650 2009-01-10 Robert Millan <rmh@aybabtu.com>
6651
6652 Update a few copyright years which we forgot to do in 2008 (only for
6653 files whose changes made in 2008 were copyright-significant)
6654
6655 * Makefile.in: Add 2008 to Copyright line.
6656 * disk/ieee1275/ofdisk.c: Likewise.
6657 * disk/efi/efidisk.c: Likewise.
6658 * kern/dl.c: Likewise.
6659 * kern/sparc64/ieee1275/init.c: Likewise.
6660 * kern/mm.c: Likewise.
6661 * kern/efi/mm.c: Likewise.
6662 * boot/i386/pc/boot.S: Likewise.
6663 * genfslist.sh: Likewise.
6664 * fs/iso9660.c: Likewise.
6665 * fs/hfs.c: Likewise.
6666 * fs/jfs.c: Likewise.
6667 * fs/minix.c: Likewise.
6668 * fs/ufs.c: Likewise.
6669 * gensymlist.sh.in: Likewise.
6670 * genkernsyms.sh.in: Likewise.
6671 * include/grub/misc.h: Likewise.
6672 * include/grub/types.h: Likewise.
6673 * include/grub/symbol.h: Likewise.
6674 * include/grub/elf.h: Likewise.
6675 * include/grub/kernel.h: Likewise.
6676 * include/grub/disk.h: Likewise.
6677 * include/grub/dl.h: Likewise.
6678 * include/grub/i386/linux.h: Likewise.
6679 * include/grub/i386/pc/biosdisk.h: Likewise.
6680 * include/grub/efi/api.h: Likewise.
6681 * include/grub/efi/pe32.h: Likewise.
6682 * include/grub/util/misc.h: Likewise.
6683 * normal/execute.c: Likewise.
6684 * normal/arg.c: Likewise.
6685 * normal/completion.c: Likewise.
6686 * normal/lexer.c: Likewise.
6687 * normal/parser.y: Likewise.
6688 * normal/misc.c: Likewise.
6689 * commands/i386/pc/vbeinfo.c: Likewise.
6690 * commands/hexdump.c: Likewise.
6691 * commands/terminal.c: Likewise.
6692 * commands/ls.c: Likewise.
6693 * commands/help.c: Likewise.
6694 * partmap/pc.c: Likewise.
6695 * loader/efi/chainloader.c: Likewise.
6696 * loader/multiboot_loader.c: Likewise.
6697 * loader/i386/pc/multiboot2.c: Likewise.
6698 * term/efi/console.c: Likewise.
6699 * term/i386/pc/serial.c: Likewise.
6700 * util/lvm.c: Likewise.
6701 * util/console.c: Likewise.
6702 * util/i386/efi/grub-mkimage.c: Likewise.
6703 * util/raid.c: Likewise.
6704
6705 2009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
6706
6707 * commands/videotest.c: Removed include to grub/machine/memory.h.
6708
6709 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
6710 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
6711 (video_mod_SOURCES): Removed.
6712 (video_mod_CFLAGS): Likewise.
6713 (video_mod_LDFLAGS): Likewise.
6714 (gfxterm_mod_SOURCES): Likewise.
6715 (gfxterm_mod_CFLAGS): Likewise.
6716 (gfxterm_mod_LDFLAGS): Likewise.
6717 (videotest_mod_SOURCES): Likewise.
6718 (videotest_mod_CFLAGS): Likewise.
6719 (videotest_mod_LDFLAGS): Likewise.
6720 (bitmap_mod_SOURCES): Likewise.
6721 (bitmap_mod_CFLAGS): Likewise.
6722 (bitmap_mod_LDFLAGS): Likewise.
6723 (tga_mod_SOURCES): Likewise.
6724 (tga_mod_CFLAGS): Likewise.
6725 (tga_mod_LDFLAGS): Likewise.
6726 (jpeg_mod_SOURCES): Likewise.
6727 (jpeg_mod_CFLAGS): Likewise.
6728 (jpeg_mod_LDFLAGS): Likewise.
6729 (png_mod_SOURCES): Likewise.
6730 (png_mod_CFLAGS): Likewise.
6731 (png_mod_LDFLAGS): Likewise.
6732
6733 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
6734 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
6735 (video_mod_SOURCES): Added.
6736 (video_mod_CFLAGS): Likewise.
6737 (video_mod_LDFLAGS): Likewise.
6738 (videotest_mod_SOURCES): Likewise.
6739 (videotest_mod_CFLAGS): Likewise.
6740 (videotest_mod_LDFLAGS): Likewise.
6741 (bitmap_mod_SOURCES): Likewise.
6742 (bitmap_mod_CFLAGS): Likewise.
6743 (bitmap_mod_LDFLAGS): Likewise.
6744 (tga_mod_SOURCES): Likewise.
6745 (tga_mod_CFLAGS): Likewise.
6746 (tga_mod_LDFLAGS): Likewise.
6747 (jpeg_mod_SOURCES): Likewise.
6748 (jpeg_mod_CFLAGS): Likewise.
6749 (jpeg_mod_LDFLAGS): Likewise.
6750 (png_mod_SOURCES): Likewise.
6751 (png_mod_CFLAGS): Likewise.
6752 (png_mod_LDFLAGS): Likewise.
6753 (gfxterm_mod_SOURCES): Likewise.
6754 (gfxterm_mod_CFLAGS): Likewise.
6755 (gfxterm_mod_LDFLAGS): Likewise.
6756
6757 * term/gfxterm.c: Removed include to grub/machine/memory.h,
6758 grub/machine/console.h.
6759
6760 2009-01-04 Jerone Young <jerone@gmail.com>
6761
6762 Make on screen instructions clearer
6763
6764 Based on patch created by Jidanni <jidanni@jidanni.org>
6765
6766 * normal/menu.c: print clearer instructions on the screen
6767
6768 2009-01-02 Colin D Bennett <colin@gibibit.com>
6769
6770 New font engine.
6771
6772 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
6773 build system and fixed gfxterm.c to work with different sized fonts.
6774
6775 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
6776
6777 * configure: Re-generated.
6778
6779 * DISTLIST: Removed font/manager.c.
6780 Added font/font.c.
6781 Added font/font_cmd.c.
6782
6783 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
6784 compilation.
6785
6786 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
6787
6788 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
6789
6790 * kern/term.c: Changed users of grub_utf8_to_ucs4.
6791
6792 * normal/menu.c: Likewise.
6793
6794 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
6795 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
6796
6797 * include/grub/font.h: Replaced with new file.
6798
6799 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
6800 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
6801 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
6802 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
6803 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
6804 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
6805 fg_red, fg_green, fg_blue, fg_alpha.
6806 (grub_video_adapter): Removed blit_glyph.
6807 (grub_video_blit_glyph): Removed.
6808
6809 * font/manager.c: Removed file.
6810
6811 * font/font.c: New file.
6812
6813 * font/font_cmd.c: Likewise.
6814
6815 * video/video.c (grub_video_blit_glyph): Removed.
6816
6817 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
6818 (grub_video_vbe_map_rgba): Likewise.
6819 (grub_video_vbe_unmap_color_int): Likewise.
6820 (grub_video_vbe_blit_glyph): Removed.
6821 (grub_video_vbe_adapter): Removed blit_glyph.
6822
6823 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
6824 (get_pixel): Likewise.
6825 (set_pixel): Likewise.
6826
6827 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
6828
6829 * term/gfxterm.c: Adapted to new font engine.
6830
6831 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
6832
6833 * term/i386/pc/vga.c: Likewise.
6834
6835 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
6836
6837 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
6838
6839 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
6840
6841 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
6842
6843 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
6844
6845 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
6846
6847 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
6848
6849 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
6850
6851 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
6852
6853 * util/grub.d/00_header.in: Changed to use new loadfont command.
6854
6855 * util/grub-mkconfig_lib.in: Changed font extension.
6856
6857 2008-12-28 Felix Zielcke <fzielcke@z-51.de>
6858
6859 * util/getroot.c (grub_util_get_grub_dev): Add support for
6860 /dev/md/dNNpNN style partitionable mdraid devices.
6861
6862 2008-12-12 Alex Smith <alex@alex-smith.me.uk>
6863
6864 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
6865 at a time limit of the PXE TFTP API correctly.
6866 (grub_pxefs_close): Likewise.
6867
6868 2008-11-29 Robert Millan <rmh@aybabtu.com>
6869
6870 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
6871 grub_ata_device_initialize() calls.
6872
6873 2008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
6874
6875 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
6876 iteration failed.
6877 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
6878
6879 2008-11-28 Robert Millan <rmh@aybabtu.com>
6880
6881 Fix build on powerpc-ieee1275. Based on patch created by
6882 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
6883 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
6884 `kern/ieee1275/mmap.c'.
6885 * include/grub/powerpc/ieee1275/memory.h: New file.
6886
6887 Provide grub-install on coreboot.
6888 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
6889 (grub_install_SOURCES): New variable.
6890 * util/i386/pc/grub-install.in: Add a few condition checks to make it
6891 usable on coreboot.
6892
6893 2008-11-25 Felix Zielcke <fzielcke@z-51.de>
6894
6895 * util/grub-fstest.c (grub_term_get_current_input): Change return type
6896 to `grub_term_input_t'.
6897 (grub_term_get_current_output): Change return type to
6898 `grub_term_output_t'.
6899
6900 2008-11-22 Robert Millan <rmh@aybabtu.com>
6901
6902 Fix breakage on coreboot due to declaration mismatch.
6903 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
6904 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
6905 grub_vga_text_cls().
6906
6907 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
6908 comments. Avoid copying one more byte than necessary (just in case).
6909
6910 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
6911 to 0x200000 (avoids trouble with some OFW implementations, and matches
6912 with the one in Yaboot).
6913 Reported by Manoel Abranches
6914
6915 2008-11-20 Robert Millan <rmh@aybabtu.com>
6916
6917 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
6918 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
6919
6920 * util/grub-mkconfig_lib.in (grub_warn): New function.
6921 (convert_system_path_to_grub_path): Use grub_warn() when issuing
6922 warnings, to obtain consistent formatting.
6923 * util/grub.d/00_header.in: Likewise.
6924 * util/update-grub_lib.in: Likewise.
6925
6926 * loader/i386/linux.c (allocate_pages): Fix a warning.
6927 Move comment text to `#error' stanza.
6928
6929 Harmonize ieee1275's grub_available_iterate() with the generic
6930 grub_machine_mmap_iterate() interface (fixes a recently-introduced
6931 build problem on i386-ieee1275):
6932 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
6933 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
6934 parameter `type'. Update all users of this function.
6935 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
6936 `kern/ieee1275/mmap.c'.
6937 * kern/ieee1275/init.c
6938 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
6939 with ...
6940 (grub_machine_mmap_iterate): ... this.
6941 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
6942 return type to `grub_err_t'. Update all implementations of this
6943 function prototype.
6944 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
6945 Likewise.
6946
6947 Add `lsmmap' command (lists firmware-provided memory map):
6948 * commands/lsmmap.c: New file.
6949 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
6950 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
6951 variables.
6952 * conf/powerpc-ieee1275.rmk: Likewise.
6953 * conf/i386-coreboot.rmk: Likewise.
6954 * conf/i386-ieee1275.rmk: Likewise.
6955
6956 2008-11-19 Robert Millan <rmh@aybabtu.com>
6957
6958 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
6959 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
6960 constraints to initrd allocation (based on code from
6961 loader/i386/pc/linux.c). Without them, initrd was allocated too high
6962 for Linux to find it.
6963
6964 2008-11-14 Robert Millan <rmh@aybabtu.com>
6965
6966 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
6967 order to cope with duplicate slashes.
6968
6969 2008-11-14 Robert Millan <rmh@aybabtu.com>
6970
6971 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
6972 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
6973 don't want to mess with lower memory, because it is used in the Linux
6974 loader.
6975
6976 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
6977 an appropriate place in lower memory, between 0x10000 and 0x90000,
6978 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
6979 is in our heap (probably as a result of it being corrupted during
6980 decompression). Add #error instance with comment to explain why this
6981 loader isn't currently usable on PC/BIOS.
6982
6983 2008-11-14 Robert Millan <rmh@aybabtu.com>
6984
6985 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
6986 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
6987
6988 2008-11-12 Robert Millan <rmh@aybabtu.com>
6989
6990 Make loader/i386/linux.c buildable on i386-pc (although disabled).
6991
6992 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
6993 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
6994 from here ...
6995 * include/grub/i386/pc/memory.h: ... to here.
6996
6997 2008-11-12 Robert Millan <rmh@aybabtu.com>
6998
6999 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
7000 split).
7001
7002 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
7003 (grub_console_cur_color, grub_console_real_putchar)
7004 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
7005 (grub_console_setcolorstate, grub_console_setcolor)
7006 (grub_console_getcolor): Move from here ...
7007 * include/grub/i386/vga_common.h: ... to here (new file).
7008
7009 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
7010 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
7011 `<grub/i386/io.h>'.
7012 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
7013 `<grub/i386/vga_common.h>'.
7014
7015 2008-11-12 Robert Millan <rmh@aybabtu.com>
7016
7017 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
7018 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
7019 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
7020 variables.
7021 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
7022 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
7023
7024 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
7025 grub_console_init() with call to grub_vga_text_init().
7026 (grub_machine_fini): Replace call to
7027 grub_console_fini() with call to grub_vga_text_fini() and
7028 grub_at_keyboard_fini().
7029
7030 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
7031 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
7032 (grub_console_setcolorstate, grub_console_setcolor)
7033 (grub_console_getcolor): New function prototypes.
7034
7035 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
7036 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
7037 (grub_vga_text_setcursor): Static-ize.
7038 (grub_vga_text_term): New structure.
7039 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
7040
7041 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
7042 (grub_console_cur_color, grub_console_standard_color)
7043 (grub_console_normal_color, grub_console_highlight_color)
7044 (map_char, grub_console_putchar, grub_console_getcharwidth)
7045 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
7046 (grub_console_getcolor): Move from here ...
7047 * term/i386/vga_common.c: ... to here (same function names).
7048
7049 2008-11-12 Robert Millan <rmh@aybabtu.com>
7050
7051 Use newly-added Multiboot support in coreboot.
7052
7053 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
7054 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
7055
7056 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
7057 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
7058 (codestart): Store the MBI in `startup_multiboot_info' when we're
7059 being loaded using Multiboot.
7060
7061 * kern/i386/coreboot/init.c (grub_machine_init): Move
7062 grub_at_keyboard_init() call to beginning of function (useful for
7063 debugging). Call grub_machine_mmap_init() before attempting to use
7064 grub_machine_mmap_iterate().
7065 (grub_lower_mem, grub_upper_mem): Move from here ...
7066 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
7067 here (new file).
7068
7069 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
7070 function prototype.
7071
7072 2008-11-12 Robert Millan <rmh@aybabtu.com>
7073
7074 Fix a regression introduced by the at_keyboard.mod split. Because
7075 some terminals are default on some platforms and non-default on
7076 others, the first terminal being registered determines which is
7077 going to be default.
7078
7079 * kern/term.c (grub_term_register_input): If this is the first
7080 terminal being registered, set it as the current one.
7081 (grub_term_register_output): Likewise.
7082
7083 * term/efi/console.c (grub_console_init): Do not call
7084 grub_term_set_current_output() or grub_term_set_current_input().
7085 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
7086 * term/i386/pc/console.c (grub_console_init): Likewise.
7087 (grub_console_fini): Do not call grub_term_set_current_input()
7088 (but leave grub_term_set_current_output() to restore text mode).
7089
7090 2008-11-10 Robert Millan <rmh@aybabtu.com>
7091
7092 * util/grub.d/00_header.in: Add backward compatibility check for
7093 versions of terminal.mod that don't understand `terminal_input' or
7094 `terminal_output'.
7095
7096 2008-11-09 Robert Millan <rmh@aybabtu.com>
7097
7098 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
7099 `terminal_input' / `terminal_output', not `terminal'.
7100
7101 2008-11-08 Robert Millan <rmh@aybabtu.com>
7102
7103 * Makefile.in (include_DATA): Fix srcdir=. assumption.
7104 (DISTCLEANFILES): Add `build_env.mk'.
7105
7106 2008-11-08 Robert Millan <rmh@aybabtu.com>
7107
7108 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
7109 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
7110 members. Update all users.
7111 * util/console.c (grub_ncurses_term): Split in ...
7112 (grub_ncurses_term_input): ... this, and ...
7113 (grub_ncurses_term_output): ... this. Update all users.
7114 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
7115
7116 2008-11-08 Robert Millan <rmh@aybabtu.com>
7117
7118 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
7119 (PKGDATA): Add $(pkgdata_SRCDIR).
7120 (pkglib_BUILDDIR): New variable.
7121 (pkgdata_SRCDIR): New variable.
7122 (build_env.mk): New target.
7123 (include_DATA): New variable.
7124 (install-local): Install $(include_DATA) files in $(includedir).
7125
7126 2008-11-07 Pavel Roskin <proski@gnu.org>
7127
7128 * gendistlist.sh: Use C locale for sorting to ensure consistent
7129 output on all systems.
7130
7131 * util/grub.d/00_header.in: Remove incorrect space before
7132 "serial".
7133
7134 2008-11-07 Robert Millan <rmh@aybabtu.com>
7135
7136 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
7137 per specification.
7138 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
7139 * loader/multiboot_loader.c (find_multi_boot2_header): New function
7140 (based on find_multi_boot1_header).
7141 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
7142 using find_multi_boot2_header(), and abort if neither Multiboot or
7143 Multiboot headers were found.
7144
7145 2008-11-07 Robert Millan <rmh@aybabtu.com>
7146
7147 Modularize at_keyboard.mod:
7148
7149 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
7150 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
7151 (at_keyboard_mod_LDFLAGS): New variables.
7152
7153 Actual terminal split:
7154
7155 * include/grub/term.h (struct grub_term): Split in ...
7156 (struct grub_term_input): ... this, and ...
7157 (struct grub_term_output): ... this. Update all users.
7158 (grub_term_set_current): Split in ...
7159 (grub_term_set_current_input): ... this, and ...
7160 (grub_term_set_current_output): ... this.
7161 (grub_term_get_current): Split in ...
7162 (grub_term_get_current_input): ... this, and ...
7163 (grub_term_get_current_output): ... this.
7164 (grub_term_register): Split in ...
7165 (grub_term_register_input): ... this, and ...
7166 (grub_term_register_output): ... this.
7167 (grub_term_unregister): Split in ...
7168 (grub_term_unregister_input): ... this, and ...
7169 (grub_term_unregister_output): ... this.
7170 (grub_term_iterate): Split in ...
7171 (grub_term_iterate_input): ... this, and ...
7172 (grub_term_iterate_output): ... this.
7173
7174 * kern/term.c (grub_term_list): Split in ...
7175 (grub_term_list_input): ... this, and ...
7176 (grub_term_list_output): ... this. Update all users.
7177 (grub_cur_term): Split in ...
7178 (grub_cur_term_input): ... this, and ...
7179 (grub_cur_term_output): ... this. Update all users.
7180 (grub_term_set_current): Split in ...
7181 (grub_term_set_current_input): ... this, and ...
7182 (grub_term_set_current_output): ... this.
7183 (grub_term_get_current): Split in ...
7184 (grub_term_get_current_input): ... this, and ...
7185 (grub_term_get_current_output): ... this.
7186 (grub_term_register): Split in ...
7187 (grub_term_register_input): ... this, and ...
7188 (grub_term_register_output): ... this.
7189 (grub_term_unregister): Split in ...
7190 (grub_term_unregister_input): ... this, and ...
7191 (grub_term_unregister_output): ... this.
7192 (grub_term_iterate): Split in ...
7193 (grub_term_iterate_input): ... this, and ...
7194 (grub_term_iterate_output): ... this.
7195
7196 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
7197 a check for input and one for output (and only attempt to get keys
7198 from user when input works).
7199
7200 * util/grub-probe.c (grub_term_get_current): Split in ...
7201 (grub_term_get_current_input): ... this, and ...
7202 (grub_term_get_current_output): ... this.
7203 * util/grub-fstest.c: Likewise.
7204 * util/i386/pc/grub-setup.c: Likewise.
7205 * util/grub-editenv.c: Likewise.
7206
7207 Portability adjustments:
7208
7209 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
7210 `term/i386/pc/at_keyboard.c'.
7211 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
7212 grub_keyboard_controller_init() (now handled by terminal .init).
7213 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
7214 grub_at_keyboard_init().
7215 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
7216 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
7217 at_keyboard.mod via input terminal interface).
7218 * include/grub/i386/coreboot/console.h: Convert into a stub for
7219 `<grub/i386/pc/console.h>'.
7220
7221 Migrate full terminals to new API:
7222
7223 * term/efi/console.c (grub_console_term): Split into ...
7224 (grub_console_term_input): ... this, and ...
7225 (grub_console_term_output): ... this. Update all users.
7226 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
7227 (grub_ofconsole_init): Split into ...
7228 (grub_ofconsole_init_input): ... this, and ...
7229 (grub_ofconsole_init_output): ... this.
7230 (grub_ofconsole_term): Split into ...
7231 (grub_ofconsole_term_input): ... this, and ...
7232 (grub_ofconsole_term_output): ... this. Update all users.
7233 * term/i386/pc/serial.c (grub_serial_term): Split into ...
7234 (grub_serial_term_input): ... this, and ...
7235 (grub_serial_term_output): ... this. Update all users.
7236 * term/i386/pc/console.c (grub_console_term): Split into ...
7237 (grub_console_term_input): ... this, and ...
7238 (grub_console_term_output): ... this. Update all users.
7239 (grub_console_term_input): Only enable it on PC/BIOS platform.
7240 (grub_console_init): Remove grub_keyboard_controller_init() call.
7241
7242 Migrate input terminals to new API:
7243
7244 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
7245 `i386' and `i386/pc' to enable build on x86_64 (this driver is
7246 i386-specific anyway).
7247 (grub_console_checkkey): Rename to ...
7248 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
7249 users.
7250 (grub_keyboard_controller_orig): New variable.
7251 (grub_console_getkey): Rename to ...
7252 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
7253 users.
7254 (grub_keyboard_controller_init): Static-ize. Save original
7255 controller value so that it can be restored ...
7256 (grub_keyboard_controller_fini): ... here (new function).
7257 (grub_at_keyboard_term): New structure.
7258 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
7259 functions.
7260
7261 Migrate output terminals to new API:
7262
7263 * term/i386/pc/vga.c (grub_vga_term): Change type to
7264 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
7265 members. Update all users.
7266 * term/gfxterm.c (grub_video_term): Change type to
7267 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
7268 members. Update all users.
7269 * include/grub/i386/pc/console.h (grub_console_checkkey)
7270 (grub_console_getkey): Do not export (no longer needed by gfxterm,
7271 etc).
7272
7273 Migrate `terminal' command and userland tools to new API:
7274
7275 * commands/terminal.c (grub_cmd_terminal): Split into ...
7276 (grub_cmd_terminal_input): ... this, and ...
7277 (grub_cmd_terminal_output): ... this.
7278 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
7279 `terminal_input' and `terminal_output'.
7280 * util/grub.d/00_header.in: Adjust `terminal' calls to new
7281 `terminal_input' / `terminal_output' API.
7282 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
7283 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
7284 provided ${GRUB_TERMINAL}, convert it).
7285
7286 2008-11-04 Robert Millan <rmh@aybabtu.com>
7287
7288 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
7289 for FreeBSD.
7290 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
7291
7292 2008-11-03 Bean <bean123ch@gmail.com>
7293
7294 * kern/elf.c (grub_elf32_load): Revert to previous code.
7295 (grub_elf64_load): Likewise.
7296
7297 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
7298
7299 2008-11-01 Robert Millan <rmh@aybabtu.com>
7300
7301 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
7302 (TARGET_CPPFLAGS): Likewise.
7303 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
7304
7305 2008-11-01 Carles Pina i Estany <carles@pina.cat>
7306
7307 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
7308
7309 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
7310
7311 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
7312 addition of objects until the code is not going to be able to fail.
7313
7314 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
7315
7316 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
7317 (add a missing NULL check, and correct them by moving the pointer
7318 operations after the actual check).
7319
7320 2008-10-29 Robert Millan <rmh@aybabtu.com>
7321
7322 * util/i386/pc/grub-install.in: Handle empty string as output from
7323 make_system_path_relative_to_its_root().
7324
7325 2008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
7326
7327 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
7328 circular metadata worst case scenario. If the metadata is circular
7329 then copy the wrap in place.
7330 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
7331 project lib/format_text/layout.h
7332 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
7333
7334 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
7335
7336 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
7337
7338 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
7339
7340 * util/update-grub_lib.in: Mention filename in warning message.
7341
7342 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
7343
7344 * NEWS: Update for rename of update-grub to grub-mkconfig.
7345
7346 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
7347
7348 * util/update-grub_lib.in: Copy to ...
7349 * util/grub-mkconfig_lib.in: ... this. Update all users.
7350 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
7351 * util/update-grub.in: Rename to ...
7352 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
7353 option. Add `--output' option to allow users to specify the generated
7354 configuration file. Default to stdout.
7355 (update_grub_dir): Rename to ...
7356 (grub_mkconfig_dir): ... this.
7357 (grub_cfg): Default to an empty string.
7358 * conf/common.rmk (update-grub): Rename to ...
7359 (grub-mkconfig): ... this.
7360 (update-grub_lib): Copy to ...
7361 (grub-mkconfig_lib): ... this.
7362 (update-grub_SCRIPTS): Copy to ...
7363 (grub-mkconfig_SCRIPTS): ... this. Update all users.
7364 (update-grub_DATA): Rename to ...
7365 (grub-mkconfig_DATA): ... this.
7366
7367 2008-09-28 Robert Millan <rmh@aybabtu.com>
7368
7369 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
7370 to `modified'. Add the real `created' field.
7371 (grub_iso9660_uuid): Use `modified' rather than `created' for
7372 constructing the UUID.
7373
7374 2008-09-28 Felix Zielcke <fzielcke@z-51.de>
7375
7376 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
7377 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
7378
7379 2008-09-28 Bean <bean123ch@gmail.com>
7380
7381 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
7382 Thanks to Christian Franke for finding this bug.
7383
7384 2008-09-25 Robert Millan <rmh@aybabtu.com>
7385
7386 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
7387 instances of grub_util_get_disk_name() (see previous commit).
7388
7389 2008-09-25 Robert Millan <rmh@aybabtu.com>
7390
7391 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
7392 `util/i386/get_disk_name.c'.
7393 * conf/i386-efi.rmk: Likewise.
7394 * conf/x86_64-efi.rmk: Likewise.
7395 * conf/i386-coreboot.rmk: Likewise.
7396 * conf/i386-ieee1275.rmk: Likewise.
7397 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
7398 `util/ieee1275/get_disk_name.c'.
7399 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
7400 * util/ieee1275/get_disk_name.c: Remove file.
7401 * util/i386/get_disk_name.c: Remove file.
7402 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
7403 "hd%d" for device.map entries, rather than using
7404 grub_util_get_disk_name().
7405
7406 2008-09-24 Carles Pina i Estany <carles@pina.cat>
7407
7408 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
7409 warning.
7410 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
7411
7412 2008-09-24 Carles Pina i Estany <carles@pina.cat>
7413
7414 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
7415 Changed to 0x5100.
7416 (GRUB_TERM_PPAGE): Changed to 0x4900.
7417
7418 2008-09-24 Robert Millan <rmh@aybabtu.com>
7419
7420 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
7421 macros (they were i386-pc specific).
7422 * include/grub/sparc64/ieee1275/console.h: Likewise.
7423 * include/grub/efi/console.h: Likewise.
7424
7425 2008-09-22 Bean <bean123ch@gmail.com>
7426
7427 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
7428 resident and in attribute list.
7429
7430 * include/grub/ntfs.h (BMP_LEN): Removed.
7431
7432 2008-09-22 Bean <bean123ch@gmail.com>
7433
7434 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
7435 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
7436
7437 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
7438 error occurs, as grub_disk_open will call grub_disk_close, which will
7439 call p->close (scsi).
7440
7441 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
7442
7443 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
7444 (AC_PREREQ): Bumped to 2.59.
7445 (AC_TRY_COMPILE): Replace obsolete macro with ...
7446 (AC_COMPILE_IFELSE): ... this.
7447 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
7448 (AC_LINK_IFELSE): ... this.
7449
7450 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
7451
7452 * autogen.sh: Add a call to `gendistlist.sh'.
7453
7454 2008-09-19 Christian Franke <franke@computer.org>
7455
7456 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
7457 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
7458 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
7459 Export __enable_execute_stack() to modules.
7460 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
7461 New function.
7462
7463 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
7464
7465 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
7466 Sort the list.
7467
7468 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
7469
7470 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
7471 #include <grub/util/hostdisk.h>.
7472
7473 2008-09-08 Robert Millan <rmh@aybabtu.com>
7474
7475 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
7476 segments when their filesz is zero (grub_file_read() interprets
7477 zero-size as "read until EOF", which results in memory corruption).
7478 Use `lowest_segment' rather than 0 for calculating the current
7479 segment load address.
7480
7481 2008-09-08 Robert Millan <rmh@aybabtu.com>
7482
7483 * util/hostdisk.c (open_device): Replace a grub_util_info() call
7484 with grub_dprintf("hostdisk", ...), as it was so verbose that it
7485 clobbered useful information.
7486
7487 2008-09-08 Robert Millan <rmh@aybabtu.com>
7488
7489 * include/grub/util/biosdisk.h: Move to ...
7490 * include/grub/util/hostdisk.h: ... here. Update all users.
7491 * util/biosdisk.c: Move to ...
7492 * util/hostdisk.c: ... here. Update all users.
7493
7494 2008-09-07 Robert Millan <rmh@aybabtu.com>
7495
7496 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
7497 variables.
7498 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
7499 and length can be stored directly in the `mbi->mmap_addr' and
7500 `mbi->mmap_length' struct fields.
7501
7502 2008-09-07 Robert Millan <rmh@aybabtu.com>
7503
7504 * conf/i386.rmk: New file. Provides declaration for building
7505 `cpuid.mod'.
7506 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
7507 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
7508 variables.
7509 Include `conf/i386.mk'.
7510 * conf/i386-efi.rmk: Likewise.
7511 * conf/x86_64-efi.rmk: Likewise.
7512 * conf/i386-coreboot.rmk: Likewise.
7513 * conf/i386-ieee1275.rmk: Likewise.
7514
7515 2008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
7516
7517 Based on patch created by Colin D Bennett <colin@gibibit.com>.
7518 Adds optimization support for BGR based modes.
7519
7520 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
7521 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
7522 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
7523 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
7524 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
7525 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
7526 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
7527 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
7528 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
7529 (grub_video_i386_vbeblit_index_index): Likewise.
7530 (grub_video_i386_vbeblit_replace_directN): Added.
7531 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
7532 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
7533 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
7534 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
7535 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
7536 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
7537 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
7538 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
7539 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
7540 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
7541 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
7542 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
7543 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
7544
7545 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
7546 (grub_video_i386_vbefill_R8G8B8): Likewise.
7547 (grub_video_i386_vbefill_index): Likewise.
7548 (grub_video_i386_vbefill_direct32): Added.
7549 (grub_video_i386_vbefill_direct24): Likewise.
7550 (grub_video_i386_vbefill_direct16): Likewise.
7551 (grub_video_i386_vbefill_direct8): Likewise.
7552
7553 * include/grub/video.h (grub_video_blit_format): Removed
7554 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
7555 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
7556 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
7557 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
7558 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
7559
7560 * video/video.c (grub_video_get_blit_format): Updated to use new
7561 blit formats. Added handling for 16 bit color modes.
7562
7563 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
7564 fillers.
7565 (common_blitter): Updated to use new blitters.
7566
7567 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
7568 Removed.
7569 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
7570 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
7571 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
7572 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
7573 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
7574 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
7575 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
7576 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
7577 (grub_video_i386_vbeblit_index_index): Likewise.
7578 (grub_video_i386_vbeblit_replace_directN): Added.
7579 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
7580 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
7581 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
7582 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
7583 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
7584 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
7585 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
7586 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
7587 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
7588 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
7589 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
7590 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
7591 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
7592
7593 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
7594 (grub_video_i386_vbefill_R8G8B8): Likewise.
7595 (grub_video_i386_vbefill_index): Likewise.
7596 (grub_video_i386_vbefill_direct32): Added.
7597 (grub_video_i386_vbefill_direct24): Likewise.
7598 (grub_video_i386_vbefill_direct16): Likewise.
7599 (grub_video_i386_vbefill_direct8): Likewise.
7600
7601 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
7602 types.
7603
7604 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
7605 types.
7606
7607 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
7608 blitter types.
7609
7610 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
7611 types.
7612
7613 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
7614
7615 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
7616 RAID level 1.
7617
7618 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
7619
7620 * fs/iso9660.c (grub_iso9660_date): New structure.
7621 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
7622 (grub_iso9660_uuid): New function.
7623
7624 2008-09-05 Bean <bean123ch@gmail.com>
7625
7626 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
7627
7628 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
7629 insensitive bit for names in Win32 and Win32 & DOS namespace.
7630
7631 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
7632
7633 * include/grub/types.h (LONG_MAX): Likewise.
7634
7635 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
7636
7637 * util/getroot.c: Include <config.h>.
7638 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
7639 add support for /dev/md/N devices and handle LVM double dash escaping.
7640
7641 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
7642
7643 * config.guess: Update to latest version from config git.
7644 * config.sub: Likewise.
7645
7646 2008-09-03 Robert Millan <rmh@aybabtu.com>
7647
7648 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
7649 `disk->total_sectors'.
7650
7651 2008-09-01 Colin D Bennett <colin@gibibit.com>
7652
7653 * include/grub/normal.h: Fixed incorrect comment for
7654 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
7655
7656 2008-09-01 Colin D Bennett <colin@gibibit.com>
7657
7658 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
7659 values with defines.
7660
7661 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
7662 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
7663 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
7664 (GRUB_VBE_MODEATTR_COLOR): Likewise.
7665 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
7666 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
7667 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
7668 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
7669 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
7670 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
7671 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
7672 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
7673 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
7674 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
7675 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
7676 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
7677 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
7678 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
7679 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
7680
7681 2008-08-31 Robert Millan <rmh@aybabtu.com>
7682
7683 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
7684 declaration.
7685 (grub_multiboot): Fix a few warnings.
7686
7687 2008-08-31 Robert Millan <rmh@aybabtu.com>
7688
7689 * loader/i386/pc/multiboot.c: Update comment not to say that
7690 boot_device support is unimplemented.
7691
7692 2008-08-31 Robert Millan <rmh@aybabtu.com>
7693
7694 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
7695 or memory map support are unimplemented.
7696
7697 2008-08-31 Colin D Bennett <colin@gibibit.com>
7698
7699 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
7700
7701 2008-08-31 Colin D Bennett <colin@gibibit.com>
7702
7703 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
7704 total video memory in 'vbeinfo' output; show color format details for
7705 each video mode.
7706
7707 2008-08-30 Pavel Roskin <proski@gnu.org>
7708
7709 * util/genmoddep.c: Remove for real this time.
7710 * DISTLIST: Remove util/genmoddep.c.
7711
7712 2008-08-30 Robert Millan <rmh@aybabtu.com>
7713
7714 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
7715 as required by Multiboot spec (it was already 4-byte aligned, but
7716 only by chance).
7717
7718 2008-08-29 Pavel Roskin <proski@gnu.org>
7719
7720 * kern/powerpc/ieee1275/crt0.S: Rename to ...
7721 * kern/powerpc/ieee1275/startup.S: ... this.
7722 * conf/powerpc-ieee1275.rmk: Adjust for the above.
7723 * DISTLIST: Likewise.
7724
7725 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
7726 grub/cpu/kernel.h. Add start label for consistency with other
7727 platforms. Add grub_prefix immediately after start. Add jump
7728 to the code after grub_prefix.
7729 * include/grub/powerpc/kernel.h: Provide valid values for
7730 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
7731
7732 2008-08-29 Bean <bean123ch@gmail.com>
7733
7734 * configure.ac: Change host_os to cygwin for mingw.
7735 (asprintf): New check for function.
7736
7737 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
7738 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
7739
7740 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
7741 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
7742 sync, sleep and grub_util_get_disk_size for mingw.
7743
7744 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
7745 to get size in mingw.
7746 (open_device): Use flag O_BINARY if it's defined.
7747 (find_root_device): Add dummy code for mingw.
7748
7749 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
7750 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
7751 (get_scsi_disk_name): Return 0 for mingw.
7752
7753 * util/hostfs.c: #include <grub/util/misc.h>.
7754 (grub_hostfs_open): Use "rb" flag to open file, use
7755 grub_util_get_disk_size to get disk size for mingw.
7756
7757 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
7758 (asprintf): New function if HAVE_ASPRINTF is not set.
7759 (sync): New function for mingw.
7760 (sleep): Likewise.
7761 (grub_util_get_disk_size): Likewise.
7762
7763 2008-08-28 Pavel Roskin <proski@gnu.org>
7764
7765 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
7766 kern/time.c.
7767
7768 2008-08-28 Robert Millan <rmh@aybabtu.com>
7769
7770 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
7771
7772 2008-08-28 Robert Millan <rmh@aybabtu.com>
7773
7774 Change find_grub_drive() syntax so it doesn't prevent it from
7775 detecting NULL names as errors.
7776
7777 * util/biosdisk.c (find_grub_drive): Move free slot search code
7778 from here ...
7779 (find_free_slot): ... to here.
7780 (read_device_map): Use find_free_slot() to search for free slots.
7781
7782 2008-08-27 Marco Gerards <marco@gnu.org>
7783
7784 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
7785 (scsi_mod_SOURCES): New variable.
7786 (scsi_mod_CFLAGS): Likewise
7787 (scsi_mod_LDFLAGS): Likewise.
7788
7789 * disk/scsi.c: New file.
7790
7791 * include/grub/scsi.h: Likewise.
7792
7793 * include/grub/scsicmd.h: Likewise.
7794
7795 * disk/ata.c: Include <grub/scsi.h>.
7796 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
7797 instead.
7798 (grub_ata_iterate): Skip ATAPI devices.
7799 (grub_ata_open): Only handle ATAPI devices.
7800 (struct grub_atapi_read): Removed.
7801 (grub_atapi_readsector): Likewise.
7802 (grub_ata_read): No longer handle ATAPI devices.
7803 (grub_ata_write): Likewise.
7804 (grub_atapi_iterate): New function.
7805 (grub_atapi_read): Likewise.
7806 (grub_atapi_write): Likewise.
7807 (grub_atapi_open): Likewise.
7808 (grub_atapi_close): Likewise.
7809 (grub_atapi_dev): New variable.
7810 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
7811 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
7812
7813 * include/grub/disk.h (enum grub_disk_dev_id): Add
7814 `GRUB_DISK_DEVICE_SCSI_ID'.
7815
7816 2008-08-26 Robert Millan <rmh@aybabtu.com>
7817
7818 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
7819 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
7820 descriptive.
7821
7822 2008-08-23 Bean <bean123ch@gmail.com>
7823
7824 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
7825 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
7826 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
7827 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
7828 dm_nv.mod.
7829 (raid5rec_mod_SOURCES): New macro.
7830 (raid5rec_mod_CFLAGS): Likewise.
7831 (raid5rec_mod_LDFLAGS): Likewise.
7832 (raid6rec_mod_SOURCES): Likewise.
7833 (raid6rec_mod_CFLAGS): Likewise.
7834 (raid6rec_mod_LDFLAGS): Likewise.
7835 (mdraid_mod_SOURCES): Likewise.
7836 (mdraid_mod_CFLAGS): Likewise.
7837 (mdraid_mod_LDFLAGS): Likewise.
7838 (dm_nv_mod_SOURCES): Likewise.
7839 (dm_nv_mod_CFLAGS): Likewise.
7840 (dm_nv_mod_LDFLAGS): Likewise.
7841
7842 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
7843 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
7844 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
7845
7846 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
7847 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
7848
7849 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
7850
7851 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
7852
7853 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
7854
7855 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
7856
7857 * disk/raid5_recover.c: New file.
7858
7859 * disk/raid6_recover.c: Likewise.
7860
7861 * disk/mdraid_linux.c: Likewise.
7862
7863 * disk/dmraid_nvidia.c: Likewise.
7864
7865 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
7866 ULONG_MAX.
7867
7868 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
7869 calculate the size of raid device.
7870 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
7871 different layout of raid5.
7872 (grub_raid_scan_device): Remove code specific to mdraid.
7873 (grub_raid_list): New variable.
7874 (free_array): New function.
7875 (grub_raid_register): Likewise.
7876 (grub_raid_unregister): Likewise.
7877 (grub_raid_rescan): Likewise.
7878 (GRUB_MOD_INIT): Don't iterate device here.
7879 (GRUB_MOD_FINI): Use free_array to release resource.
7880
7881 * include/grub/raid.h: Remove macro and structure specific to mdraid.
7882 (grub_raid5_recover_func_t): New function variable type.
7883 (grub_raid6_recover_func_t): Likewise.
7884 (grub_raid5_recover_func): New variable.
7885 (grub_raid6_recover_func): Likewise.
7886 (grub_raid_register): New function.
7887 (grub_raid_unregister): Likewise.
7888 (grub_raid_rescan): Likewise.
7889 (grub_raid_block_xor): Likewise.
7890
7891 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
7892 (CMD_CRC): New macro.
7893 (part): Removed.
7894 (read_file): Handle device as well as file.
7895 (cmd_crc): New function.
7896 (fstest): Handle multiple disks.
7897 (options): Remove part, raw and long, add root and diskcount.
7898 (usage): Add crc, remove -p, -r, -l, add -r and -c.
7899 (main): Find the first non option entry and ignore subsequent options,
7900 add handling for the new options, support multiple disks.
7901
7902 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
7903
7904 2008-08-23 Bean <bean123ch@gmail.com>
7905
7906 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
7907
7908 * genfslist.sh: Ignore kernel.mod.
7909
7910 * genpartmaplist.sh: Likewise.
7911
7912 2008-08-23 Robert Millan <rmh@aybabtu.com>
7913
7914 * util/getroot.c (find_root_device): Skip anything that starts with
7915 a dot, not just directories. This avoids things like /dev/.tmp.md0.
7916
7917 2008-08-22 Felix Zielcke <fzielcke@z-51.de>
7918
7919 * util/update-grub.in (GRUB_GFXMODE): Export variable.
7920 * util/grub.d/00_header.in: Allow the administrator to change default
7921 gfxmode via ${GRUB_GFXMODE}.
7922
7923 2008-08-21 Felix Zielcke <fzielcke@z-51.de>
7924
7925 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
7926
7927 2008-08-21 Robert Millan <rmh@aybabtu.com>
7928
7929 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
7930 loader.
7931 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
7932 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
7933
7934 2008-08-20 Carles Pina i Estany <carles@pina.cat>
7935
7936 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
7937 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
7938
7939 2008-08-19 Robert Millan <rmh@aybabtu.com>
7940
7941 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
7942 (struct grub_virtual_screen): Remove `cursor_color'.
7943 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
7944 initialization.
7945 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
7946
7947 2008-08-18 Robert Millan <rmh@aybabtu.com>
7948
7949 Unify (identical) linux_normal.c files.
7950 * loader/i386/efi/linux_normal.c: Move from here ...
7951 * loader/linux_normal.c: ... to here. Update all users.
7952 * loader/i386/pc/linux_normal.c: Delete. Update all users.
7953 * loader/i386/ieee1275/linux_normal.c: Likewise.
7954
7955 2008-08-18 Robert Millan <rmh@aybabtu.com>
7956
7957 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
7958 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
7959 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
7960 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
7961 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
7962 New macros.
7963 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
7964 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
7965 (GRUB_LINUX_CL_END_OFFSET): ... to here.
7966 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
7967 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
7968 (GRUB_EFI_CL_END_OFFSET): Rename to ...
7969 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
7970 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
7971 Initialize `params->video_cursor_x' and `params->video_cursor_y'
7972 portably using grub_getxy().
7973 Replace `-EFI' with `-bzImage' in boot message.
7974
7975 2008-08-17 Robert Millan <rmh@aybabtu.com>
7976
7977 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
7978
7979 2008-08-17 Robert Millan <rmh@aybabtu.com>
7980
7981 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
7982
7983 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
7984 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
7985 (grub_machine_mmap_iterate): New function declaration.
7986 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
7987 structure.
7988 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
7989 macros.
7990
7991 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
7992 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
7993 Move e820 parsing from here ...
7994 * kern/i386/pc/mmap.c: New file.
7995 (grub_machine_mmap_iterate): ... to here.
7996
7997 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
7998 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
7999 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
8000 (grub_available_iterate): Redeclare to return `void', and redeclare
8001 its hook to use grub_uint64_t as addr and size parameters, and rename
8002 to ...
8003 (grub_machine_mmap_iterate): ... this. Update all users.
8004
8005 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
8006 to make it more readable. Rename to ...
8007 (grub_machine_mmap_iterate): ... this.
8008
8009 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
8010 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
8011 (grub_multiboot): Allocate an extra region after the payload, and fill
8012 it with a Multiboot memory map. Adjust a.out loader to calculate size
8013 with the extra space.
8014 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
8015 with the extra space.
8016
8017 2008-08-17 Carles Pina i Estany <carles@pina.cat>
8018
8019 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
8020
8021 2008-08-17 Felix Zielcke <fzielcke@z-51.de>
8022
8023 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
8024 mdate-sh to the list `find' searches for.
8025 * DISTLIST: Regenerated.
8026
8027 2008-08-16 Felix Zielcke <fzielcke@z-51.de>
8028
8029 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
8030 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
8031 genmoddep.awk, gensymlist.sh.in.
8032 (DISTDIRS): Add bus, docs, hook, lib.
8033 * DISTLIST: Regenerated.
8034 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
8035
8036 2008-08-16 Robert Millan <rmh@aybabtu.com>
8037
8038 * disk/raid.c (grub_raid_init): Handle/report errors set by
8039 grub_device_iterate().
8040 * disk/lvm.c (grub_lvm_init): Likewise.
8041
8042 2008-08-15 Bean <bean123ch@gmail.com>
8043
8044 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
8045 and datehook.mod.
8046 (datetime_mod_SOURCES): New macro.
8047 (datetime_mod_CFLAGS): Likewise.
8048 (datetime_mod_LDFLAGS): Likewise.
8049 (date_mod_SOURCES): Likewise.
8050 (date_mod_CFLAGS): Likewise.
8051 (date_mod_LDFLAGS): Likewise.
8052 (datehook_mod_SOURCES): Likewise.
8053 (datehook_mod_CFLAGS): Likewise.
8054 (datehook_mod_LDFLAGS): Likewise.
8055
8056 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
8057 and datehook.mod.
8058 (datetime_mod_SOURCES): New macro.
8059 (datetime_mod_CFLAGS): Likewise.
8060 (datetime_mod_LDFLAGS): Likewise.
8061 (date_mod_SOURCES): Likewise.
8062 (date_mod_CFLAGS): Likewise.
8063 (date_mod_LDFLAGS): Likewise.
8064 (datehook_mod_SOURCES): Likewise.
8065 (datehook_mod_CFLAGS): Likewise.
8066 (datehook_mod_LDFLAGS): Likewise.
8067
8068 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
8069 and datehook.mod.
8070 (datetime_mod_SOURCES): New macro.
8071 (datetime_mod_CFLAGS): Likewise.
8072 (datetime_mod_LDFLAGS): Likewise.
8073 (date_mod_SOURCES): Likewise.
8074 (date_mod_CFLAGS): Likewise.
8075 (date_mod_LDFLAGS): Likewise.
8076 (datehook_mod_SOURCES): Likewise.
8077 (datehook_mod_CFLAGS): Likewise.
8078 (datehook_mod_LDFLAGS): Likewise.
8079
8080 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
8081 and datehook.mod.
8082 (datetime_mod_SOURCES): New macro.
8083 (datetime_mod_CFLAGS): Likewise.
8084 (datetime_mod_LDFLAGS): Likewise.
8085 (date_mod_SOURCES): Likewise.
8086 (date_mod_CFLAGS): Likewise.
8087 (date_mod_LDFLAGS): Likewise.
8088 (datehook_mod_SOURCES): Likewise.
8089 (datehook_mod_CFLAGS): Likewise.
8090 (datehook_mod_LDFLAGS): Likewise.
8091
8092 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
8093 and datehook.mod.
8094 (datetime_mod_SOURCES): New macro.
8095 (datetime_mod_CFLAGS): Likewise.
8096 (datetime_mod_LDFLAGS): Likewise.
8097 (date_mod_SOURCES): Likewise.
8098 (date_mod_CFLAGS): Likewise.
8099 (date_mod_LDFLAGS): Likewise.
8100 (datehook_mod_SOURCES): Likewise.
8101 (datehook_mod_CFLAGS): Likewise.
8102 (datehook_mod_LDFLAGS): Likewise.
8103
8104 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
8105
8106 * commands/date.c: New file.
8107
8108 * hook/datehook.c: Likewise.
8109
8110 * include/grub/lib/datetime.h: Likewise.
8111
8112 * include/grub/i386/cmos.h: Likewise.
8113
8114 * lib/datetime.c: Likewise.
8115
8116 * lib/i386/datetime.c: Likewise.
8117
8118 * lib/efi/datetime.c: Likewise.
8119
8120 2008-08-14 Robert Millan <rmh@aybabtu.com>
8121
8122 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
8123 (grub_mkelfimage_SOURCES): New variable.
8124 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
8125
8126 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
8127 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
8128 * conf/powerpc-ieee1275.rmk: Likewise.
8129 * conf/i386-ieee1275.rmk: Likewise.
8130
8131 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
8132 * kern/i386/coreboot/init.c: Likewise.
8133
8134 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
8135 with `<grub/cpu/kernel.h>'.
8136 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
8137 to ...
8138 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
8139 * kern/i386/coreboot/startup.S: Likewise.
8140
8141 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
8142 (GRUB_MOD_GAP): Remove.
8143 * include/grub/powerpc/kernel.h: New file.
8144 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
8145 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
8146 * include/grub/i386/kernel.h: New file.
8147 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
8148 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
8149 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
8150
8151 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
8152 `grub-mkelfimage'.
8153 Use --directory when invoking grub_mkimage.
8154
8155 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
8156 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
8157 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
8158 and GRUB_KERNEL_CPU_PREFIX.
8159
8160 2008-08-14 Felix Zielcke <fzielcke@z-51.de>
8161
8162 * include/grub/err.h (grub_err_printf): New function prototype.
8163 * util/misc.c (grub_err_printf): New function.
8164 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
8165 grub_printf.
8166 * kern/err.c (grub_print_error): Use grub_err_printf.
8167
8168 2008-08-13 Robert Millan <rmh@aybabtu.com>
8169
8170 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
8171
8172 2008-08-13 Robert Millan <rmh@aybabtu.com>
8173
8174 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
8175 boot entry.
8176
8177 2008-08-12 Robert Millan <rmh@aybabtu.com>
8178
8179 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
8180 of the relocation code from here ...
8181 (grub_multiboot): ... to here.
8182 (forward_relocator, backward_relocator): Move from here ...
8183 * kern/i386/loader.S (grub_multiboot_forward_relocator)
8184 (grub_multiboot_backward_relocator): ... to here.
8185 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
8186 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
8187 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
8188 (grub_multiboot_forward_relocator_end)
8189 (grub_multiboot_backward_relocator)
8190 (grub_multiboot_backward_relocator_end): New variables.
8191
8192 2008-08-12 Bean <bean123ch@gmail.com>
8193
8194 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
8195
8196 2008-08-11 Robert Millan <rmh@aybabtu.com>
8197
8198 * kern/i386/linuxbios/startup.S: Move from here ...
8199 * kern/i386/coreboot/startup.S: ... to here.
8200
8201 * kern/i386/linuxbios/init.c: Move from here ...
8202 * kern/i386/coreboot/init.c: ... to here.
8203
8204 * kern/i386/linuxbios/table.c: Move from here ...
8205 * kern/i386/coreboot/mmap.c: ... to here.
8206
8207 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
8208
8209 2008-08-11 Robert Millan <rmh@aybabtu.com>
8210
8211 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
8212 errors. Leave it to the upper layer to handle them.
8213
8214 2008-08-09 Christian Franke <franke@computer.org>
8215
8216 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
8217 * conf/common.rmk: Install `grub-pe2elf' only if requested.
8218 Install `grub.d/10_windows' only on Cygwin.
8219 * configure.ac: Add subst of `target_os'.
8220 Check `target_os' also before setting TARGET_OBJ2ELF.
8221 Add `--enable-grub-pe2elf'.
8222
8223 2008-08-08 Robert Millan <rmh@aybabtu.com>
8224
8225 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
8226 (grub_last_time): Change type to grub_uint64_t.
8227 (grub_disk_open): Migrate code from to using grub_get_time_ms().
8228 (grub_disk_close): Likewise.
8229
8230 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
8231 (run_menu): Migrate code from to using grub_get_time_ms().
8232
8233 * util/misc.c (grub_get_time_ms): New function.
8234
8235 2008-08-08 Marco Gerards <marco@gnu.org>
8236
8237 * disk/ata.c (grub_ata_regget): Change return type to
8238 `grub_uint8_t'.
8239 (grub_ata_regget2): Likewise.
8240 (grub_ata_wait_status): New function.
8241 (grub_ata_wait_busy): Removed function, updated all users to use
8242 `grub_ata_wait_status'.
8243 (grub_ata_wait_drq): Likewise.
8244 (grub_ata_cmd): New function.
8245 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
8246 error handling.
8247 (grub_ata_pio_write): Add error handling.
8248 (grub_atapi_identify): Likewise.
8249 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
8250 handling.
8251 (grub_ata_identify): Use `grub_ata_cmd' and improve error
8252 handling. Actually use the detected registers. Reorder the
8253 detection logic such that it is easier to read.
8254 (grub_ata_pciinit): Do not assign the same ID to each controller.
8255 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
8256 handling.
8257 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
8258
8259 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
8260
8261 2008-08-08 Marco Gerards <marco@gnu.org>
8262
8263 * NEWS: Update.
8264
8265 2008-08-07 Bean <bean123ch@gmail.com>
8266
8267 * include/grub/x86_64/pci.h: New file.
8268
8269 2008-08-07 Christian Franke <franke@computer.org>
8270
8271 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
8272 (TIMER2_GATE): Likewise.
8273 (grub_pit_wait): Add enable/disable of the timer2 gate
8274 bit of port 0x61. This fixes a possible infinite loop.
8275
8276 2008-08-07 Bean <bean123ch@gmail.com>
8277
8278 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
8279 kern/i386/tsc.c and kern/i386/pit.c.
8280
8281 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
8282 x86_64 platform.
8283
8284 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
8285 <grub/i386/tsc.h>.
8286
8287 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
8288
8289 2008-08-07 Bean <bean123ch@gmail.com>
8290
8291 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
8292
8293 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
8294
8295 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
8296 multiple inclusion. Add #include <grub/types.h>.
8297
8298 2008-08-06 Christian Franke <franke@computer.org>
8299
8300 * conf/common.rmk: Build and install `10_windows'.
8301 * util/grub.d/10_windows.in: New script.
8302
8303 2008-08-06 Pavel Roskin <proski@gnu.org>
8304
8305 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
8306
8307 2008-08-06 Robert Millan <rmh@aybabtu.com>
8308
8309 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
8310 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
8311
8312 2008-08-06 Bean <bean123ch@gmail.com>
8313
8314 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
8315 (grub_pxefs_fs_int): Remove dummy definition.
8316 (grub_pxefs_open): Use data->block_size to store the current block
8317 size setting.
8318 (grub_pxefs_read): Use block size stored in data->block_size. As the
8319 value of grub_pxe_blksize can be changed after the file is opened.
8320
8321 2008-08-06 Bean <bean123ch@gmail.com>
8322
8323 * fs/i386/pc/pxe.c (curr_file): new variable.
8324 (grub_pxefs_open): Simply the handling of pxe file system. Don't
8325 require the dummy internal file system anymore.
8326 (grub_pxefs_read): Removed.
8327 (grub_pxefs_close): Likewise.
8328 (grub_pxefs_fs_int): Likewise.
8329 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
8330 connection when we switch file.
8331 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
8332
8333 2008-08-06 Robert Millan <rmh@aybabtu.com>
8334
8335 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
8336 `halt.mod'.
8337 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
8338 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
8339
8340 * kern/i386/halt.c: New file.
8341 * kern/i386/reboot.c: Likewise.
8342 * include/grub/i386/reboot.h: Likewise.
8343 * include/grub/i386/halt.h: Likewise.
8344
8345 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
8346 Include `<grub/cpu/halt.h>'.
8347 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
8348 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
8349
8350 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
8351 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
8352 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
8353 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
8354 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
8355 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
8356 from here ...
8357 * include/grub/i386/at_keyboard.h: ... to here.
8358
8359 2008-08-05 Robert Millan <rmh@aybabtu.com>
8360
8361 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
8362 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
8363 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
8364 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
8365 `kern/generic/millisleep.c'.
8366
8367 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
8368 instead of grub_get_rtc().
8369 (grub_tsc_init): Initialize `tsc_boot_time'.
8370
8371 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
8372 (grub_machine_init): Use grub_tsc_init() rather than
8373 installing an RTC-based handler via grub_install_get_time_ms().
8374
8375 * kern/i386/pit.c: New file.
8376 * include/grub/i386/pit.h: Likewise.
8377
8378 2008-08-05 Bean <bean123ch@gmail.com>
8379
8380 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
8381
8382 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
8383 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
8384 (pxe_mod_SOURCES): New macro.
8385 (pxe_mod_CFLAGS): Likewise.
8386 (pxe_mod_LDFLAGS): Likewise.
8387 (pxecmd_mod_SOURCES): Likewise.
8388 (pxecmd_mod_CFLAGS): Likewise.
8389 (pxecmd_mod_LDFLAGS): Likewise.
8390
8391 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
8392 (grub_pxe_call): Likewise.
8393
8394 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
8395
8396 * commands/i386/pc/pxecmd.c: New file.
8397
8398 * fs/i386/pc/pxe.c: Likewise.
8399
8400 * include/grub/i386/pc/pxe.h: Likewise.
8401
8402 2008-08-05 Bean <bean123ch@gmail.com>
8403
8404 * util/console.c (grub_console_cur_color): New variable.
8405 (grub_console_standard_color): Likewise.
8406 (grub_console_normal_color): Likewise.
8407 (grub_console_highlight_color): Likewise.
8408 (color_map): Likewise.
8409 (use_color): Likewise.
8410 (NUM_COLORS): New macro.
8411 (grub_ncurses_setcolorstate): Handle color properly.
8412 (grub_ncurses_setcolor): Don't change color here, just remember the
8413 settings, color will be set in grub_ncurses_setcolorstate.
8414 (grub_ncurses_getcolor): New function.
8415 (grub_ncurses_init): Initialize color pairs.
8416 (grub_ncurses_term): New member grub_ncurses_getcolor.
8417
8418 2008-08-05 Colin D Bennett <colin@gibibit.com>
8419
8420 High resolution timer support. Implemented for x86 CPUs using TSC.
8421 Extracted generic grub_millisleep() so it's linked in only as needed.
8422 This requires a Pentium compatible CPU; if the RDTSC instruction is
8423 not supported, then it falls back on the generic grub_get_time_ms()
8424 implementation that uses the machine's RTC.
8425
8426 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
8427 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
8428 `kern/generic/millisleep.c'.
8429
8430 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
8431 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
8432
8433 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
8434 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
8435
8436 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
8437
8438 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
8439 `kern/generic/millisleep.c'.
8440
8441 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
8442
8443 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
8444
8445 * kern/generic/rtc_get_time_ms.c: New file.
8446
8447 * kern/generic/millisleep.c: New file.
8448
8449 * kern/misc.c: Don't include
8450 <kern/time.h> anymore.
8451 (grub_millisleep_generic): Removed.
8452
8453 * commands/sleep.c (grub_interruptible_millisleep): Uses
8454 grub_get_time_ms() instead of grub_get_rtc().
8455
8456 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
8457 function.
8458 (grub_cpu_is_cpuid_supported): New inline function.
8459 (grub_cpu_is_tsc_supported): New inline function.
8460 (grub_tsc_init): New function prototype.
8461 (grub_tsc_get_time_ms): New function prototype.
8462
8463 * kern/i386/tsc.c (grub_get_time_ms): New file.
8464
8465 * include/grub/time.h: Include <grub/types.h.
8466 (grub_millisleep_generic): Removed.
8467 (grub_get_time_ms): New prototype.
8468 (grub_install_get_time_ms): New prototype.
8469 (grub_rtc_get_time_ms): New prototype.
8470
8471 * kern/time.c (grub_get_time_ms): New function.
8472 (grub_install_get_time_ms): New function.
8473
8474 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
8475 <grub/time.h> anymore.
8476 (grub_millisleep): Removed.
8477 (grub_machine_init): Call grub_tsc_init.
8478
8479 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
8480 get_time_ms() implementation.
8481
8482 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
8483 (ieee1275_get_time_ms): New function.
8484 (grub_machine_init): Install get_time_ms() implementation.
8485
8486 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
8487 (grub_machine_init): Call grub_tsc_init().
8488 (grub_millisleep): Removed.
8489
8490 * kern/ieee1275/init.c (grub_millisleep): Removed.
8491 (grub_machine_init): Install ieee1275_get_time_ms()
8492 implementation.
8493 (ieee1275_get_time_ms): New function.
8494 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
8495 real work.
8496
8497 2008-08-05 Marco Gerards <marco@gnu.org>
8498
8499 * disk/ata.c: Include <grub/pci.h>.
8500 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
8501 (grub_ata_initialize): Rewritten.
8502 (grub_ata_device_initialize): New function.
8503
8504 2008-08-04 Pavel Roskin <proski@gnu.org>
8505
8506 * kern/main.c: Include grub/mm.h.
8507
8508 2008-08-04 Robert Millan <rmh@aybabtu.com>
8509
8510 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
8511 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
8512 corruption problem).
8513
8514 2008-08-04 Robert Millan <rmh@aybabtu.com>
8515
8516 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
8517 warnings introduced in my last commit.
8518
8519 2008-08-03 Robert Millan <rmh@aybabtu.com>
8520
8521 Make PCI available on all i386 architectures.
8522
8523 * include/grub/i386/pc/pci.h: Move from here ...
8524 * include/grub/i386/pci.h: ... to here.
8525
8526 * include/grub/i386/pc/pci.h: Remove.
8527 * include/grub/i386/efi/pci.h: Remove.
8528 * include/grub/x86_64/efi/pci.h: Remove.
8529
8530 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
8531 `<grub/cpu/pci.h>'.
8532
8533 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
8534 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
8535 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
8536
8537 * conf/i386-ieee1275.rmk: Likewise.
8538
8539 2008-08-03 Robert Millan <rmh@aybabtu.com>
8540
8541 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
8542 (grub_console_setcursor): Make it possible to set cursor off.
8543
8544 2008-08-03 Robert Millan <rmh@aybabtu.com>
8545
8546 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
8547 of modules instead of assuming which platform provides what.
8548 * util/update-grub.in: Likewise.
8549
8550 2008-08-03 Robert Millan <rmh@aybabtu.com>
8551
8552 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
8553 instead of `grub_install_dos_part' to determine whether a drive needs
8554 to be prepended to prefix (`grub_install_dos_part' is not reliable,
8555 because it can be overridden when loading GRUB via Multiboot).
8556
8557 2008-08-02 Robert Millan <rmh@aybabtu.com>
8558
8559 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
8560
8561 2008-08-02 Robert Millan <rmh@aybabtu.com>
8562
8563 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
8564 of informational grub_dprintf() calls.
8565
8566 2008-08-02 Robert Millan <rmh@aybabtu.com>
8567
8568 * disk/memdisk.c (memdisk_size): Don't initialize.
8569 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
8570
8571 * include/grub/i386/pc/kernel.h
8572 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
8573 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
8574 (grub_memdisk_image_size, grub_arch_memdisk_addr)
8575 (grub_arch_memdisk_size): Remove.
8576
8577 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
8578 field (was only used to transfer a constant). Add `type' field to
8579 support multiple module types.
8580 (grub_module_iterate): New function.
8581
8582 * kern/device.c (grub_device_open): Do not hide error messages
8583 when grub_disk_open() fails. Use grub_print_error() instead.
8584
8585 * kern/i386/pc/init.c (grub_arch_modules_addr)
8586 (grub_arch_memdisk_size): Remove functions.
8587 (grub_arch_modules_addr): Return the module address in high memory
8588 (now that it isn't copied anymore).
8589
8590 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
8591 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
8592 decompression routine (grub_total_module_size already includes that
8593 now). Don't copy modules back to low memory.
8594
8595 * kern/main.c: Include `<grub/mm.h>'.
8596 (grub_load_modules): Split out (and use) ...
8597 (grub_module_iterate): ... this function, which iterates through
8598 module objects and runs a hook.
8599 Comment out grub_mm_init_region() call, as it would cause non-ELF
8600 modules to be overwritten.
8601
8602 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
8603 the memdisk image in its own region, make it part of the module list.
8604 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
8605 (main): Parse --memdisk|-m option, and pass user-provided path as
8606 parameter to generate_image().
8607 (add_segments): Pass `memdisk_path' down to load_modules().
8608 (load_modules): Embed memdisk image in module section when requested.
8609 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
8610 `header.type' instead of `header.offset'.
8611
8612 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
8613 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
8614 (memdisk_mod_LDFLAGS): New variables.
8615 * conf/i386-coreboot.rmk: Likewise.
8616 * conf/i386-ieee1275.rmk: Likewise.
8617
8618 2008-08-02 Robert Millan <rmh@aybabtu.com>
8619
8620 * loader/i386/pc/multiboot.c (playground, forward_relocator)
8621 (backward_relocator): New variables. Used to allocate and relocate
8622 the payload, respectively.
8623 (grub_multiboot_load_elf32): Load into heap instead of requested
8624 address, install the appropriate relocator code in each bound of
8625 the payload, and set the entry point such that
8626 grub_multiboot_real_boot() will jump to one of them.
8627
8628 * kern/i386/loader.S (grub_multiboot_payload_size)
8629 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
8630 (grub_multiboot_payload_entry_offset): New variables.
8631 (grub_multiboot_real_boot): Set cpu context to what the relocator
8632 expects, and jump to the relocator instead of the payload.
8633
8634 * include/grub/i386/loader.h (grub_multiboot_payload_size)
8635 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
8636 (grub_multiboot_payload_entry_offset): Export.
8637
8638 2008-08-01 Bean <bean123ch@gmail.com>
8639
8640 * normal/menu_entry.c (editor_getline): Don't return the original
8641 string as result, as it will be released by lexer once it has done
8642 using it.
8643
8644 2008-08-01 Robert Millan <rmh@aybabtu.com>
8645
8646 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
8647 within menuentries, not before them.
8648 util/grub.d/10_hurd.in: Likewise.
8649
8650 2008-08-01 Bean <bean123ch@gmail.com>
8651
8652 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
8653 (bufio_mod_SOURCES): New macro.
8654 (bufio_mod_CFLAGS): Likewise.
8655 (bufio_mod_LDFLAGS): Likewise.
8656
8657 * include/grub/bufio.h: New file.
8658
8659 * io/bufio.c: Likewise.
8660
8661 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
8662 (grub_video_reader_png): Use grub_buffile_open to open file.
8663
8664 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
8665 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
8666
8667 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
8668 (grub_video_reader_tga): Use grub_buffile_open to open file.
8669
8670 * font/manager.c: Include <grub/bufio.h>.
8671 (add_font): Use grub_buffile_open to open file.
8672
8673 2008-07-31 Robert Millan <rmh@aybabtu.com>
8674
8675 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
8676 ELF segments, use a macro for arbitrarily accessing any of them instead
8677 of preparing a pointer that allows access to one at a time.
8678 (grub_multiboot_load_elf64): Likewise.
8679
8680 2008-07-31 Bean <bean123ch@gmail.com>
8681
8682 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
8683 GRUB_KERNEL_MACHINE_DATA_END.
8684
8685 2008-07-30 Robert Millan <rmh@aybabtu.com>
8686
8687 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
8688 Increase from 0x50 to 0x60.
8689 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
8690 use UUIDs to identify the root drive for them. If that's not
8691 possible, abort.
8692 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
8693 check, for cross-disk installs.
8694
8695 2008-07-30 Robert Millan <rmh@aybabtu.com>
8696
8697 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
8698 is non-empty, use it to set the `prefix' environment variable instead
8699 of the usual approach.
8700 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
8701 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
8702 environment variable instead of dummy make_install_device().
8703
8704 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
8705 (start): Insert a data section, with `grub_prefix' variable.
8706 * kern/i386/linuxbios/startup.S: Likewise.
8707
8708 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
8709 New variable reference.
8710 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
8711 New macro. Defines offset of `grub_prefix' within startup.S (relative
8712 to `start').
8713 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
8714 section within startup.S (relative to `start').
8715 * include/grub/i386/coreboot/kernel.h: Likewise.
8716
8717 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
8718 Overwrite grub_prefix with its contents, at the beginning of the
8719 first segment.
8720 (main): Understand -p|--prefix.
8721
8722 2008-07-30 Robert Millan <rmh@aybabtu.com>
8723
8724 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
8725
8726 2008-07-30 Robert Millan <rmh@aybabtu.com>
8727
8728 * term/i386/pc/vga_text.c (grub_console_cls): Use
8729 grub_console_gotoxy() to go back to beginning of the screen.
8730 Found by Patrick Georgi <patrick.georgi@coresystems.de>
8731
8732 2008-07-29 Christian Franke <franke@computer.org>
8733
8734 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
8735 Add conversion of emulated mount points on Cygwin.
8736
8737 2008-07-29 Christian Franke <franke@computer.org>
8738
8739 * util/update-grub.in: Add a check for admin
8740 group on Cygwin.
8741 Remove old `grub.cfg.new' before creation.
8742 Add `-f' to `mv' to handle the different filesystem
8743 semantics of Windows.
8744
8745 2008-07-29 Bean <bean123ch@gmail.com>
8746
8747 * normal/main.c (get_line): Fix buffer overflow bug.
8748
8749 2008-07-28 Robert Millan <rmh@aybabtu.com>
8750
8751 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
8752 (struct grub_apple_header): New struct. Describes the layout of
8753 the partmap header.
8754 (apple_partition_map_iterate): Check the header magic as well as the
8755 partition magic (which was already being checked).
8756
8757 2008-07-28 Pavel Roskin <proski@gnu.org>
8758
8759 * genmk.rb: Add a warning to the beginning of the output that
8760 it's a generated file and should not be edited.
8761
8762 2008-07-28 Robert Millan <rmh@aybabtu.com>
8763
8764 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
8765 with the same number are found, just use issue a warning with
8766 grub_dprintf(), as this error has been reported to be non-fatal.
8767
8768 2008-07-27 Robert Millan <rmh@aybabtu.com>
8769
8770 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
8771 information.
8772
8773 2008-07-27 Bean <bean123ch@gmail.com>
8774
8775 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
8776 (grub_fat_find_dir): Ignore case when comparing filename.
8777
8778 2008-07-27 Bean <bean123ch@gmail.com>
8779
8780 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
8781 smallino, as it's more descriptive, and i8count can be confused with
8782 the other field count.
8783 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
8784 inode type.
8785
8786 2008-07-27 Bean <bean123ch@gmail.com>
8787
8788 * commands/crc.c: New file.
8789
8790 * lib/crc.c: Likewise.
8791
8792 * include/grub/lib/crc.h: Likewise.
8793
8794 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
8795
8796 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
8797 (hexdump): Move this function to ...
8798
8799 * lib/hexdump.c: ... here.
8800
8801 * include/grub/hexdump.h: Renamed to ...
8802
8803 * include/grub/lib/hexdump.h: ... this.
8804
8805 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
8806
8807 * util/grub-editenv.c: Likewise.
8808
8809 * include/envblk.h: Renamed to ...
8810
8811 * include/lib/envblk.h: ... this.
8812
8813 * util/envblk.c: Renamed to ...
8814
8815 * lib/envblk.c: ... this.
8816
8817 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
8818 lib/hexdump.c.
8819 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
8820 (pkglib_MODULES): Add crc.mod.
8821 (hexdump_mod_SOURCES): Add lib/hexdump.c.
8822 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
8823 (crc_mod_SOURCES): New macro.
8824 (crc_mod_CFLAGS): Likewise.
8825 (crc_mod_LDFLAGS): Likewise.
8826
8827 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
8828
8829 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
8830
8831 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
8832
8833 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8834
8835 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
8836
8837 2008-07-27 Felix Zielcke <fzielcke@z-51.de>
8838
8839 * commands/help.c: Include <grub/term.h>.
8840 (TERM_WIDTH): Removed. Updated all users.
8841
8842 2008-07-27 Pavel Roskin <proski@gnu.org>
8843
8844 * util/getroot.c (find_root_device): Rephrase a comment to avoid
8845 spurious warnings about a comment within a comment.
8846
8847 2008-07-25 Robert Millan <rmh@aybabtu.com>
8848
8849 * util/getroot.c (find_root_device): Skip devices that match
8850 /dev/dm-[0-9]. This lets the real device be found for any type of
8851 abstraction (LVM, EVMS, RAID..).
8852 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
8853 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
8854 device is found first, find_root_device() will now skip it.
8855
8856 2008-07-24 Pavel Roskin <proski@gnu.org>
8857
8858 * include/grub/types.h: Use __builtin_bswap32() and
8859 __builtin_bswap64() with gcc 4.3 and newer.
8860
8861 2008-07-24 Christian Franke <franke@computer.org>
8862
8863 * util/i386/pc/grub-install.in: If `--debug' is specified,
8864 pass `--verbose' to grub-setup.
8865 Abort script if make_system_path_relative_to_its_root() fails.
8866
8867 2008-07-24 Bean <bean123ch@gmail.com>
8868
8869 * configure.ac: Fixed a bug caused by the previous cygwin patch,
8870 variable `target_platform' should be `platform'.
8871
8872 2008-07-24 Bean <bean123ch@gmail.com>
8873
8874 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
8875 (grub_png_init_fixed_block): New function.
8876 (grub_png_decode_image_data): Handle fixed huffman code compression.
8877
8878 2008-07-24 Bean <bean123ch@gmail.com>
8879
8880 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
8881 (grub_pe2elf_SOURCES): New macro.
8882 (CLEANFILES): Add grub-pe2elf.
8883
8884 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
8885 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
8886 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
8887 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
8888 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
8889 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
8890 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
8891 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
8892 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
8893 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
8894 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
8895 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
8896 (GRUB_PE32_DT_FUNCTION): Likewise.
8897 (GRUB_PE32_REL_I386_DIR32): Likewise.
8898 (GRUB_PE32_REL_I386_REL32): Likewise.
8899 (grub_pe32_symbol): New structure.
8900 (grub_pe32_reloc): Likewise.
8901
8902 * util/grub-pe2elf.c: New file.
8903
8904 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
8905 start symbol in non pc platform.
8906
8907 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
8908
8909 The following patches are from Christian Franke.
8910
8911 * include/grub/dl.h: Remove .previous, gas supports this only
8912 for ELF format.
8913
8914 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
8915 Remove .type, gas supports this only for ELF format.
8916
8917 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
8918 nullbytes in symbol table. This fixes an infinite loop if table is
8919 zero filled.
8920
8921 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
8922 TARGET_IMG_LDFLAGS and EXEEXT.
8923
8924 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
8925 TARGET_IMG_LDFLAGS_AC.
8926 (grub_CHECK_STACK_ARG_PROBE): New function.
8927
8928 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
8929
8930 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
8931
8932 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
8933 to set TARGET_IMG_LD* accordingly.
8934 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
8935 Add call to grub_CHECK_STACK_ARG_PROBE.
8936 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
8937
8938 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
8939
8940 * genmk.rb: Add EXEEXT to CLEANFILES.
8941
8942 2008-07-23 Robert Millan <rmh@aybabtu.com>
8943
8944 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
8945 define the codes for arrows and lines used for the menu).
8946 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
8947 as well.
8948
8949 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
8950 fonts, because the latter are too slow.
8951
8952 2008-07-21 Bean <bean123ch@gmail.com>
8953
8954 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
8955 a20. Run keyboard test last, as it will cause macbook to halt.
8956
8957 2008-07-18 Pavel Roskin <proski@gnu.org>
8958
8959 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
8960 load foreign architecture modules correctly anyway. Keep
8961 support for loading host architecture modules, whether we
8962 compile them or not.
8963
8964 2008-07-17 Pavel Roskin <proski@gnu.org>
8965
8966 * configure.ac: Use -m32 or -m64 regardless of whether we had to
8967 change target_cpu. The compiler default can mismatch target_cpu
8968 in any case.
8969
8970 * disk/efi/efidisk.c: Fix format warnings on x86_64.
8971 * kern/efi/efi.c: Likewise.
8972
8973 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
8974 target compiler is functional.
8975 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
8976 are set up.
8977
8978 * configure.ac: Default to efi platform for x86_64-apple. Allow
8979 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
8980 adjustments from the rest, only do them if target is not
8981 explicitly given. Merge other adjustments with the final sanity
8982 check. Remove an extraneous check for supported CPU. Be
8983 specific which CPU and which platform is not supported.
8984
8985 * configure.ac: Default to pc platform for x86_64.
8986
8987 2008-07-17 Robert Millan <rmh@aybabtu.com>
8988
8989 Partial LinuxBIOS -> Coreboot rename.
8990
8991 * conf/i386-linuxbios.rmk: Renamed to ...
8992 * conf/i386-coreboot.rmk: ... this.
8993 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
8994 * configure.ac: Accept "coreboot" as input platform (but maintain
8995 compatibility with "linuxbios").
8996 * include/grub/i386/linuxbios: Renamed to ...
8997 * include/grub/i386/coreboot: ... this.
8998
8999 2008-07-17 Bean <bean123ch@gmail.com>
9000
9001 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
9002 (appleldr_mod_SOURCE): New variable.
9003 (appleldr_mod_CFLAGS): Likewise.
9004 (appleldr_mod_LDFLAGS): Likewise.
9005 (pci_mod_SOURCES): Likewise.
9006 (pci_mod_CFLAGS): Likewise.
9007 (pci_mod_LDFLAGS): Likewise.
9008 (lspci_mod_SOURCES): Likewise.
9009 (lspci_mod_CFLAGS): Likewise.
9010 (lspci_mod_LDFLAGS): Likewise.
9011
9012 * conf/x86_64-efi.rmk: New file.
9013
9014 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
9015 macro.
9016 (grub_efidisk_write): Likewise.
9017
9018 * include/efi/api.h (efi_call_0): New macro.
9019 (efi_call_1): Likewise.
9020 (efi_call_2): Likewise.
9021 (efi_call_3): Likewise.
9022 (efi_call_4): Likewise.
9023 (efi_call_5): Likewise.
9024 (efi_call_6): Likewise.
9025
9026 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
9027 grub_rescue_cmd_chainloader.
9028
9029 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
9030 (grub_pe32_optional_header): Change some fields based on i386 or
9031 x86_64 platform.
9032 (GRUB_PE32_PE32_MAGIC): Likewise.
9033
9034 * include/grub/efi/uga_draw.h: New file.
9035
9036 * include/grub/elf.h (STN_ABS): New constant.
9037 (R_X86_64_NONE): Relocation constant for x86_64.
9038 (R_X86_64_64): Likewise.
9039 (R_X86_64_PC32): Likewise.
9040 (R_X86_64_GOT32): Likewise.
9041 (R_X86_64_PLT32): Likewise.
9042 (R_X86_64_COPY): Likewise.
9043 (R_X86_64_GLOB_DAT): Likewise.
9044 (R_X86_64_JUMP_SLOT): Likewise.
9045 (R_X86_64_RELATIVE): Likewise.
9046 (R_X86_64_GOTPCREL): Likewise.
9047 (R_X86_64_32): Likewise.
9048 (R_X86_64_32S): Likewise.
9049 (R_X86_64_16): Likewise.
9050 (R_X86_64_PC16): Likewise.
9051 (R_X86_64_8): Likewise.
9052 (R_X86_64_PC8): Likewise.
9053
9054 * include/grub/i386/efi/pci.h: New file.
9055
9056 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
9057 Change it value based on platform.
9058 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
9059 (GRUB_E820_RAM): Likewise.
9060 (GRUB_E820_RESERVED): Likewise.
9061 (GRUB_E820_ACPI): Likewise.
9062 (GRUB_E820_NVS): Likewise.
9063 (GRUB_E820_EXEC_CODE): Likewise.
9064 (GRUB_E820_MAX_ENTRY): Likewise.
9065 (grub_e820_mmap): New structure.
9066 (linux_kernel_header): Change the efi field according to different
9067 kernel version, also field from linux_kernel_header.
9068
9069 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
9070
9071 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
9072 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
9073 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
9074 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
9075 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
9076 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
9077 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
9078 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
9079 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
9080 (GRUB_PCI_ADDR_IO_MASK): Likewise.
9081
9082 * include/grub/x86_64/efi/kernel.h: New file.
9083
9084 * include/grub/x86_64/efi/loader.h: Likewise.
9085
9086 * include/grub/x86_64/efi/machine.h: Likewise.
9087
9088 * include/grub/x86_64/efi/pci.h: Likewise.
9089
9090 * include/grub/x86_64/efi/time.h: Likewise.
9091
9092 * include/grub/x86_64/linux.h: Likewise.
9093
9094 * include/grub/x86_64/setjmp.h: Likewise.
9095
9096 * include/grub/x86_64/time.h: Likewise.
9097
9098 * include/grub/x86_64/types.h: Likewise.
9099
9100 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
9101 GRUB_TARGET_SIZEOF_VOID_P.
9102
9103 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
9104 (grub_efi_locate_handle): Likewise.
9105 (grub_efi_open_protocol): Likewise.
9106 (grub_efi_set_text_mode): Likewise.
9107 (grub_efi_stall): Likewise.
9108 (grub_exit): Likewise.
9109 (grub_reboot): Likewise.
9110 (grub_halt): Likewise.
9111 (grub_efi_exit_boot_services): Likewise.
9112 (grub_get_rtc): Likewise.
9113
9114 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
9115 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
9116 (grub_efi_allocate_pages): Wrap efi calls.
9117 (grub_efi_free_pages): Wrap efi calls.
9118 (grub_efi_get_memory_map): Wrap efi calls.
9119
9120 * kern/x86_64/dl.c: New file.
9121
9122 * kern/x86_64/efi/callwrap.S: Likewise.
9123
9124 * kern/x86_64/efi/startup.S: Likewise.
9125
9126 * loader/efi/appleloader.c: Likewise.
9127
9128 * loader/efi/chainloader.c (cmdline): New variable.
9129 (grub_chainloader_unload): Wrap efi calls.
9130 (grub_chainloader_boot): Likewise.
9131 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
9132 command line.
9133
9134 * loader/efi/chainloader_normal.c (chainloader_command):
9135 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
9136 command line.
9137
9138 * loader/i386/efi/linux.c (allocate_pages): Change allocation
9139 method.
9140 (grub_e820_add_region): New function.
9141 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
9142 booting.
9143 (grub_find_video_card): New function.
9144 (grub_linux_setup_video): New function.
9145 (grub_rescue_cmd_linux): Probe for video information.
9146
9147 * normal/x86_64/setjmp.S: New file.
9148
9149 * term/efi/console.c (map_char): New function.
9150 (grub_console_putchar): Map unicode char.
9151 (grub_console_checkkey): Wrap efi calls.
9152 (grub_console_getkey): Likewise.
9153 (grub_console_getwh): Likewise.
9154 (grub_console_gotoxy): Likewise.
9155 (grub_console_cls): Likewise.
9156 (grub_console_setcolorstate): Likewise.
9157 (grub_console_setcursor): Likewise.
9158
9159 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
9160
9161 2008-07-16 Pavel Roskin <proski@gnu.org>
9162
9163 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
9164 format strings.
9165
9166 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
9167 pointer, not an integer. This fixes a warning and prevents
9168 precision loss on 64-bit systems.
9169 (relocate_addresses): Remove unneeded cast.
9170
9171 2008-07-15 Pavel Roskin <proski@gnu.org>
9172
9173 * kern/i386/ieee1275/init.c: Include grub/cache.h.
9174
9175 * term/ieee1275/ofconsole.c: Disable code unused on i386.
9176
9177 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
9178 Fix comparison between signed and unsigned.
9179
9180 * include/grub/i386/ieee1275/console.h: Declare
9181 grub_console_init() and grub_console_fini().
9182
9183 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
9184 It's empty and unused.
9185
9186 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
9187 beginning to avoid warnings with some compilers.
9188
9189 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
9190 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
9191
9192 2008-07-14 Pavel Roskin <proski@gnu.org>
9193
9194 * kern/env.c (grub_register_variable_hook): Don't copy empty
9195 string, it leaks memory. Pass "" to grub_env_set(), it should
9196 handle constant strings.
9197
9198 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
9199 * commands/cmp.c (grub_cmd_cmp): Likewise.
9200 * kern/dl.c (grub_dl_flush_cache): Likewise.
9201 (grub_dl_load_core): Likewise.
9202 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
9203 (grub_elf64_load_phdrs): Likewise.
9204
9205 2008-07-13 Pavel Roskin <proski@gnu.org>
9206
9207 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
9208 between signed and unsigned.
9209 (LzmaEnc_Finish): Fix warning about an unused parameter.
9210
9211 2008-07-13 Bean <bean123ch@gmail.com>
9212
9213 * Makefile.in (enable_lzo): New rule.
9214
9215 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
9216
9217 * configure.ac (ENABLE_LZO): New option --enable-lzo.
9218
9219 * boot/i386/pc/lnxboot.S: #include <config.h>.
9220
9221 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
9222 its value according to the compression algorithm used, lzo or lzma.
9223
9224 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
9225 compression algorithm according to configure macro.
9226
9227 * kern/i386/pc/startup.S (codestart): Likewise.
9228
9229 * kern/i386/pc/lzma_decode.S: New file.
9230
9231 * include/grub/lib/LzFind.h: Likewise.
9232
9233 * include/grub/lib/LzHash.h: Likewise.
9234
9235 * include/grub/lib/LzmaDec.h: Likewise.
9236
9237 * include/grub/lib/LzmaEnc.h: Likewise.
9238
9239 * include/grub/lib/LzmaTypes.h: Likewise.
9240
9241 * lib/LzFind.c: Likewise.
9242
9243 * lib/LzmaDec.c: Likewise.
9244
9245 * lib/LzmaEnc.c: Likewise.
9246
9247 2008-07-13 Bean <bean123ch@gmail.com>
9248
9249 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
9250 (grub_ext4_extent_header): New structure.
9251 (grub_ext4_extent): Likewise.
9252 (grub_ext4_extent_idx): Likewise.
9253 (grub_ext4_find_leaf): New function.
9254 (grub_ext2_read_block): Handle extents.
9255
9256 2008-07-12 Robert Millan <rmh@aybabtu.com>
9257
9258 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
9259
9260 2008-07-11 Robert Millan <rmh@aybabtu.com>
9261
9262 * util/grub.d/40_custom.in: New file. Example on how to add custom
9263 entries to /etc/grub.d.
9264 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
9265 40_custom (implicitly, by merging all the grub.d rules).
9266
9267 2008-07-11 Pavel Roskin <proski@gnu.org>
9268
9269 * commands/read.c (grub_getline): Fix invalid memory access.
9270 Don't add newline to the variable value.
9271
9272 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
9273 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
9274 (serial_hw_get_port): Check validity of the port number.
9275 (grub_cmd_serial): Check return value of serial_hw_get_port().
9276
9277 2008-07-07 Pavel Roskin <proski@gnu.org>
9278
9279 * boot/i386/pc/diskboot.S (notification_string): Replace
9280 "Loading kernel" with just "loading". This is shorter, less
9281 confusing and saves a few bytes for possible future changes.
9282
9283 2008-07-05 Pavel Roskin <proski@gnu.org>
9284
9285 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
9286 size for ATAPI devices, they are undefined. Output sector
9287 number in decimal form.
9288
9289 * disk/ata.c: Use named constants for status bits.
9290
9291 2008-07-04 Pavel Roskin <proski@gnu.org>
9292
9293 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
9294 grub_addr_t before casting it to the void pointer to fix a
9295 warning. Non-addressable regions are discarded earlier.
9296 (grub_arch_modules_addr): Cast _end to grub_addr_t.
9297 * kern/i386/linuxbios/table.c: Include grub/misc.h.
9298 (check_signature): Don't shadow table_header.
9299 (grub_linuxbios_table_iterate): Cast numeric constants to
9300 grub_linuxbios_table_header_t.
9301 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
9302 grub_stop().
9303
9304 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
9305 prevent warnings.
9306
9307 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
9308 pointer, which can cause warnings. Support 64-bit addresses.
9309
9310 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
9311 of sizeof(long). This fixes PowerPC image generation on x86_64.
9312
9313 2008-07-04 Robert Millan <rmh@aybabtu.com>
9314
9315 This fixes a performance issue when pc & gpt partmap iterators
9316 didn't abort iteration even after our hook found what it was
9317 looking for (often causing expensive probes of non-existent drives).
9318
9319 Some callers relied on previous buggy behaviour, since they would
9320 raise an error when their own hooks caused early abortion of its
9321 iteration.
9322
9323 * kern/device.c (grub_device_open): Improve error message.
9324 * disk/lvm.c (grub_lvm_open): Likewise.
9325 * disk/raid.c (grub_raid_open): Likewise.
9326
9327 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
9328 when hook requests it, independently of grub_errno.
9329 (pc_partition_map_probe): Do not fail when find_func() caused
9330 early abortion of pc_partition_map_iterate().
9331
9332 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
9333 when hook requests it, independently of grub_errno.
9334 (gpt_partition_map_probe): Do not fail when find_func() caused
9335 early abortion of gpt_partition_map_iterate().
9336
9337 * kern/partition.c (grub_partition_iterate): Abort parent iteration
9338 when hook requests it, independently of grub_errno. Do not fail when
9339 part_map_iterate_hook() caused early abortion of p->iterate().
9340
9341 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
9342 when grub_partition_iterate() returned with non-zero.
9343
9344 2008-07-03 Pavel Roskin <proski@gnu.org>
9345
9346 * disk/ata.c (grub_ata_pio_write): Check status before writing,
9347 like we do in grub_ata_pio_read().
9348 (grub_ata_readwrite): Always write individual sectors. Fix the
9349 sector count for the remainder.
9350 (grub_ata_write): Enable writing to ATA devices. Correctly
9351 report error for ATAPI devices.
9352
9353 2008-07-02 Pavel Roskin <proski@gnu.org>
9354
9355 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
9356 warning.
9357
9358 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
9359 for every read sector, we already increment it for the whole
9360 batch. This fixes reading more than 256 sectors at once.
9361
9362 * util/grub-editenv.c (cmd_info): Cast argument to long
9363 explicitly. ptrdiff_t reduces to int on i386.
9364
9365 * util/grub-editenv.c (main): Be specific which parameter is
9366 missing.
9367
9368 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
9369 (memdisk): Make memdisk_orig_addr a pointer.
9370
9371 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
9372 for file offsets, use grub_off_t instead. Fix printf format
9373 warnings.
9374
9375 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
9376 there. Real unexpected warnings should not drown in the noise
9377 about known problems.
9378
9379 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
9380 grub_disk_addr_t for memory addresses.
9381
9382 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
9383 explicitly to fix a warning.
9384
9385 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
9386
9387 * Makefile.in (MODULE_LDFLAGS): New variable.
9388 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
9389 the linker accepts --build-id=none.
9390 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
9391 MODULE_LDFLAGS.
9392 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
9393
9394 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
9395 those in Linux XFS code. Provide a way to access 64-bit parent
9396 inode.
9397 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
9398 the end of struct grub_xfs_dir_header.
9399
9400 2008-07-02 Bean <bean123ch@gmail.com>
9401
9402 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
9403 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
9404 and GRUB_IEEE1275_FLAG_NO_ANSI.
9405
9406 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
9407 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
9408 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
9409
9410 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
9411 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
9412
9413 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
9414 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
9415
9416 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
9417 esc sequence on non ANSI terminal.
9418 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
9419
9420 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
9421 beginning of file.
9422
9423 2008-07-02 Bean <bean123ch@gmail.com>
9424
9425 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
9426 (grub_editenv_SOURCES): New variable.
9427 (pkglib_MODULES): Add loadenv.mod.
9428 (loadenv_mod_SOURCES): New variable.
9429 (loadenv_mod_CFLAGS): Likewise.
9430 (loadenv_mod_LDFLAGS): Likewise.
9431
9432 * include/grub/envblk.h: New file.
9433
9434 * util/envblk.c: New file.
9435
9436 * util/grub-editenv.c: New file.
9437
9438 * commands/loadenv.c: New file.
9439
9440 2008-07-01 Pavel Roskin <proski@gnu.org>
9441
9442 * include/multiboot2.h (struct multiboot_tag_module): Use char,
9443 not unsigned char. This fixes warnings and is consistent with
9444 other tags.
9445
9446 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
9447
9448 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
9449
9450 * term/tparm.c (analyze): Always set *popcount.
9451
9452 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
9453 cast to fix a warning.
9454
9455 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
9456 cast to suppress a warning.
9457
9458 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
9459 grub_fshelp_read_file() expects.
9460
9461 * fs/fat.c: Fix UUID calculation on big-endian systems. We
9462 write uuid as a 32-bit value in CPU byte order, so declare and
9463 use it as such.
9464
9465 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
9466 long if the format specifier expects it.
9467 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
9468 * partmap/pc.c (pc_partition_map_iterate): Likewise.
9469 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
9470 long to fix a warning.
9471 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
9472 grub_dprintf() arguments to fix warnings.
9473
9474 2008-06-30 Pavel Roskin <proski@gnu.org>
9475
9476 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
9477 install_bsd_part immediately before core.img is embedded or
9478 modified on disk. This fixes core.img verification if core.img
9479 cannot be embedded.
9480
9481 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
9482 core_path to calculate the blocklist.
9483 Patch from Javier Martín <lordhabbit@gmail.com>
9484
9485 2008-06-29 Robert Millan <rmh@aybabtu.com>
9486
9487 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
9488 block to disk block.
9489 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
9490 Patch from Niels Böhm <bitbucket@arcor.de>
9491
9492 2008-06-29 Robert Millan <rmh@aybabtu.com>
9493
9494 * util/update-grub_lib.in (font_path): Search for fonts in
9495 /boot/grub first, which is more likely to be readable (we aren't
9496 deciding where fonts live, just looking for them).
9497
9498 2008-06-26 Pavel Roskin <proski@gnu.org>
9499
9500 * util/biosdisk.c (read_device_map): Don't leave dead map
9501 entries for devices failing stat() check.
9502
9503 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
9504 core_path_dev for the core.img path on the target device.
9505
9506 2008-06-26 Robert Millan <rmh@aybabtu.com>
9507
9508 * disk/fs_uuid.c: New file.
9509 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
9510 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
9511 (fs_uuid_mod_LDFLAGS): New variables.
9512 * include/grub/disk.h (grub_disk_dev_id): Add
9513 `GRUB_DISK_DEVICE_UUID_ID'.
9514 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
9515 implement iterate().
9516
9517 2008-06-26 Robert Millan <rmh@aybabtu.com>
9518
9519 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
9520 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
9521 Linux image includes no initrd.
9522
9523 2008-06-21 Javier Martín <lordhabbit@gmail.com>
9524
9525 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
9526 call to resolve the core image location that effectively appended the
9527 name twice.
9528
9529 2008-06-21 Robert Millan <rmh@aybabtu.com>
9530
9531 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
9532 call from here ...
9533
9534 * util/grub.d/10_hurd.in: ... to here ...
9535 * util/grub.d/10_linux.in: ... and here.
9536
9537 2008-06-19 Robert Millan <rmh@aybabtu.com>
9538
9539 * kern/main.c (grub_main): Export `prefix' variable immediately
9540 after it has been set by grub_machine_set_prefix().
9541
9542 2008-06-19 Robert Millan <rmh@aybabtu.com>
9543
9544 * commands/search.c (search_label, search_fs_uuid, search_file): Print
9545 search result when not saving to variable, not the other way around.
9546 When saving to variable, abort iteration as soon as a match is found.
9547
9548 2008-06-19 Robert Millan <rmh@aybabtu.com>
9549
9550 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
9551 check for partition that provides /boot/grub. Its logic is flawed,
9552 as it prevents prepare_grub_to_access_device() from being called
9553 multiple times.
9554
9555 2008-06-19 Robert Millan <rmh@aybabtu.com>
9556
9557 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
9558 "insmod" command directly when abstraction modules are needed,
9559 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
9560 since it had already been processed).
9561
9562 2008-06-19 Pavel Roskin <proski@gnu.org>
9563
9564 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
9565 changed. This is needed in case GRUB_LIBDIR changes.
9566 * conf/i386-ieee1275.rmk: Likewise.
9567 * conf/i386-linuxbios.rmk: Likewise.
9568 * conf/i386-pc.rmk: Likewise.
9569 * conf/powerpc-ieee1275.rmk: Likewise.
9570
9571 2008-06-18 Pavel Roskin <proski@gnu.org>
9572
9573 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
9574 kernel_elf_symlist.c to symlist.c for consistency with other
9575 architectures. Update all users.
9576 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
9577
9578 2008-06-18 Robert Millan <rmh@aybabtu.com>
9579
9580 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
9581 it in prefix.
9582
9583 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
9584 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
9585 a RAID device, run setup() for all members independently on whether
9586 LVM abstraction is being used.
9587 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
9588 If grub-mkimage has set `*install_dos_part == -2', don't override this
9589 value.
9590 Perform *install_dos_part adjustments independently on whether
9591 we're embedding or not.
9592 Clarify error message when image is too big for embedding.
9593 Remove duplicate *install_dos_part stanza.
9594
9595 2008-06-17 Robert Millan <rmh@aybabtu.com>
9596
9597 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
9598 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
9599 variables.
9600 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
9601 values in grub_ofconsole_normal_color and
9602 grub_ofconsole_highlight_color (they're not directly related to
9603 background and foreground).
9604 (grub_ofconsole_setcolorstate): Extract background and foreground
9605 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
9606
9607 2008-06-17 Robert Millan <rmh@aybabtu.com>
9608
9609 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
9610 /boot/grub for the check in last commit, not /boot (they could be
9611 different partitions).
9612
9613 2008-06-16 Robert Millan <rmh@aybabtu.com>
9614
9615 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
9616 asked to setup access for the same partition that provides /boot,
9617 don't bother using UUIDs since our root already has the value we
9618 want.
9619
9620 2008-06-16 Robert Millan <rmh@aybabtu.com>
9621
9622 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
9623 I2O devices.
9624 Patch from Sven Mueller <sven@debian.org>.
9625
9626 2008-06-16 Robert Millan <rmh@aybabtu.com>
9627
9628 * util/update-grub.in: Check for $EUID instead of $UID.
9629 Reported by Vincent Zweije.
9630
9631 2008-06-16 Bean <bean123ch@gmail.com>
9632
9633 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
9634 (grub_ext2_read_block): Likewise.
9635 (grub_ext2_read_inode): Likewise.
9636 (grub_ext2_mount): Likewise.
9637 (grub_ext2_close): Likewise.
9638 (grub_ext3_get_journal): Removed.
9639
9640 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
9641 (grub_reiserfs_read_symlink): Likewise.
9642 (grub_reiserfs_mount): Likewise.
9643 (grub_reiserfs_open): Likewise.
9644 (grub_reiserfs_read): Likewise.
9645 (grub_reiserfs_close): Likewise.
9646 (grub_reiserfs_get_journal): Removed.
9647
9648 * fs/fshelp.c (grub_fshelp_read): Removed.
9649 (grub_fshelp_map_block): Likewise.
9650
9651 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
9652 (grub_fshelp_journal): Likewise.
9653 (grub_fshelp_read): Likewise.
9654 (grub_fshelp_map_block): Likewise.
9655
9656 2008-06-16 Pavel Roskin <proski@gnu.org>
9657
9658 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
9659 floating point anymore.
9660 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
9661
9662 2008-06-15 Pavel Roskin <proski@gnu.org>
9663
9664 * commands/ls.c (grub_ls_list_files): Use integer calculations
9665 for human readable format, avoid floating point use.
9666 * kern/misc.c (grub_ftoa): Remove.
9667 (grub_vsprintf): Remove floating point support.
9668
9669 2008-06-15 Robert Millan <rmh@aybabtu.com>
9670
9671 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
9672 devices.
9673 Reported by Max Vozeler.
9674
9675 2008-06-15 Robert Millan <rmh@aybabtu.com>
9676
9677 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
9678 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
9679 skipped later.
9680 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
9681 the beginning of the prefix.
9682
9683 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
9684 It is assumed that if we have a memdisk, grub-mkimage has set
9685 grub_prefix to include the "(memdisk)" drive in it.
9686
9687 2008-06-15 Robert Millan <rmh@aybabtu.com>
9688
9689 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
9690 Initialize keyboard controller after registering the terminal, so that
9691 grub_printf() can be called from grub_keyboard_controller_init().
9692
9693 2008-06-15 Robert Millan <rmh@aybabtu.com>
9694
9695 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
9696 extent-btree which is written as big endian on disk.
9697 Reported by Alain Greppin <al@chilibi.org>.
9698
9699 2008-06-14 Robert Millan <rmh@aybabtu.com>
9700
9701 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
9702 * util/i386/pc/grub-install.in (modules): Likewise.
9703
9704 2008-06-13 Pavel Roskin <proski@gnu.org>
9705
9706 * commands/ls.c (grub_ls_list_files): Fix format warnings.
9707
9708 2008-06-13 Bean <bean123ch@gmail.com>
9709
9710 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
9711
9712 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
9713
9714 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
9715 to indicate sparse block.
9716
9717 2008-06-12 Pavel Roskin <proski@gnu.org>
9718
9719 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
9720 number, grub_fshelp_read() does it for us.
9721
9722 * fs/fshelp.c (grub_fshelp_read): New function. Implement
9723 linear disk read with journal translation.
9724 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
9725 * include/grub/fshelp.h: Declare grub_fshelp_read().
9726
9727 2008-06-09 Pavel Roskin <proski@gnu.org>
9728
9729 * fs/minix.c (grub_minix_mount): Handle error reading
9730 superblock.
9731
9732 2008-06-08 Robert Millan <rmh@aybabtu.com>
9733
9734 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
9735 don't append the RAID prefix afterwards.
9736 Reported by Clint Adams.
9737
9738 2008-06-08 Robert Millan <rmh@aybabtu.com>
9739
9740 Based on description from Pavel:
9741 * kern/disk.c (grub_disk_check_range): Rename to ...
9742 (grub_disk_adjust_range): ... this. Add a comment explaining the
9743 tasks performed by this function.
9744
9745 2008-06-08 Robert Millan <rmh@aybabtu.com>
9746
9747 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
9748 `num_serial' (for consistency with other variables).
9749 (struct grub_ntfs_data): Add `uuid' member.
9750 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
9751 (grub_ntfs_uuid): New function.
9752 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
9753
9754 2008-06-07 Pavel Roskin <proski@gnu.org>
9755
9756 * util/biosdisk.c (open_device): Revert last change to the
9757 function, it broke installation. The sector needs to be
9758 different dependent on which device is opened.
9759
9760 2008-06-06 Robert Millan <rmh@aybabtu.com>
9761
9762 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
9763 rest of GRUB, and breakage doesn't happen if its value were modified.
9764
9765 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
9766 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
9767 a constant (same value).
9768 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
9769 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
9770
9771 2008-06-06 Robert Millan <rmh@aybabtu.com>
9772
9773 * util/biosdisk.c (open_device): Do not modify sector offset when
9774 accessing a partition. kern/disk.c already handles this for us.
9775
9776 2008-06-06 Robert Millan <rmh@aybabtu.com>
9777
9778 * util/grub-emu.c (grub_machine_init): Move code in this function from
9779 here ...
9780 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
9781 segfault in case grub_printf() is called).
9782
9783 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
9784 grub_probe. Update all users not to explicitly add it again.
9785 (grub_device): New variable; contains corresponding device for grubdir.
9786 (fs_module, partmap_module, devabstraction_module): Pass
9787 `--device ${grub_device}' to grub_probe to avoid traversing /dev
9788 every time.
9789
9790 2008-06-05 Robert Millan <rmh@aybabtu.com>
9791
9792 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
9793 is found, print it (same layout as with labels).
9794
9795 2008-06-04 Robert Millan <rmh@aybabtu.com>
9796
9797 * util/biosdisk.c (get_drive): Rename to ...
9798 (find_grub_drive): ... this. Update all users.
9799
9800 (get_os_disk): Rename to ...
9801 (convert_system_partition_to_system_disk): ... this. Update all users.
9802
9803 (find_drive): Rename to ...
9804 (find_system_device): ... this. Update all users.
9805
9806 2008-06-04 Robert Millan <rmh@aybabtu.com>
9807
9808 * util/biosdisk.c (get_os_disk): Handle IDA devices.
9809 * util/grub-mkdevicemap.c (get_mmc_disk_name)
9810 (make_device_map): Likewise.
9811
9812 2008-06-01 Robert Millan <rmh@aybabtu.com>
9813
9814 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
9815 before dereferencing it.
9816
9817 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
9818 union with fat12/fat16-specific ones. Add some new fields, including
9819 `num_serial' for both versions.
9820 (struct grub_fat_data): Add `uuid' member.
9821 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
9822 names. Initialize `data->uuid' using `num_serial'.
9823 (grub_fat_uuid): New function.
9824 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
9825
9826 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
9827 (grub_reiserfs_uuid): New function.
9828 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
9829 member.
9830
9831 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
9832 (grub_xfs_uuid): New function.
9833 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
9834
9835 2008-06-01 Robert Millan <rmh@aybabtu.com>
9836
9837 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
9838 code that is backward compatible with pre-uuid search command.
9839
9840 2008-05-31 Robert Millan <rmh@aybabtu.com>
9841
9842 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
9843 floppies after everything else, to ensure floppy drive isn't accessed
9844 unnecessarily (patch from Bean).
9845
9846 2008-05-31 Robert Millan <rmh@aybabtu.com>
9847
9848 * commands/search.c (search_label, search_fs_uuid, search_file): Do
9849 not print device names when we were asked to set a variable.
9850
9851 2008-05-31 Robert Millan <rmh@aybabtu.com>
9852
9853 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
9854 using "cursor-on" and "cursor-off" commands (understood at least by
9855 the Open Firmware flavour on OLPC).
9856
9857 2008-05-31 Michael Gorven <michael@gorven.za.net>
9858
9859 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
9860 on and off sequences.
9861
9862 2008-05-31 Robert Millan <rmh@aybabtu.com>
9863
9864 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
9865 * util/update-grub.in: Likewise.
9866
9867 2008-05-30 Pavel Roskin <proski@gnu.org>
9868
9869 * util/biosdisk.c (linux_find_partition): Simplify logic and
9870 make the code more universal. Keep special processing for
9871 devfs, but use a simple rule for all other devices. If the
9872 device ends with a number, append 'p' and the partition number.
9873 Otherwise, append only the partition number.
9874
9875 2008-05-30 Robert Millan <rmh@aybabtu.com>
9876
9877 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
9878 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
9879 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
9880 the `root' parameter to Linux.
9881
9882 2008-05-30 Robert Millan <rmh@aybabtu.com>
9883
9884 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
9885 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
9886 --fs_uuid with --fs-uuid.
9887 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
9888 all filesystems support them).
9889
9890 2008-05-30 Robert Millan <rmh@aybabtu.com>
9891
9892 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
9893 grub_printf() flags, since we're printing in units of 2 bytes.
9894
9895 2008-05-30 Robert Millan <rmh@aybabtu.com>
9896
9897 * util/grub.d/00_header.in: Remove obsolete comment referencing
9898 convert_system_path_to_grub_path().
9899 * util/update-grub.in: Likewise.
9900 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
9901 (convert_system_path_to_grub_path): Add a warning message explaining
9902 that this function is deprecated. Rely on is_path_readable_by_grub()
9903 for the readability checks.
9904 (font_path): Use is_path_readable_by_grub() for the readability
9905 check rather than convert_system_path_to_grub_path().
9906
9907 2008-05-30 Robert Millan <rmh@aybabtu.com>
9908
9909 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
9910 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
9911 converting it first.
9912 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
9913 grub.cfg for access to font file, and afterwards call it again to set
9914 the root device.
9915
9916 2008-05-30 Robert Millan <rmh@aybabtu.com>
9917
9918 * commands/search.c (options): Add --fs_uuid option.
9919 (search_fs_uuid): New function.
9920 (grub_cmd_search): Fix --set argument passing.
9921 Use search_fs_uuid() when requested via --fs_uuid.
9922 (grub_search_init): Update help message.
9923 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
9924 and redeclare it as an array of 16-bit words.
9925 (grub_ext2_uuid): New function.
9926 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
9927 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
9928 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
9929 (GRUB_DEVICE_BOOT_UUID): New variables.
9930 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
9931 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
9932 whenever possible.
9933 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
9934 just assume `root' variable has the right value.
9935 * util/grub.d/10_linux.in: Likewise.
9936 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
9937 via PRINT_FS_UUID.
9938 (main): Recognise `-t fs_uuid' argument.
9939
9940 2008-05-30 Robert Millan <rmh@aybabtu.com>
9941
9942 * util/biosdisk.c (map): Redefine structure to hold information
9943 about GRUB drive name.
9944 (get_drive): Reimplement without assuming (and verifying) BIOS-like
9945 drive names.
9946 (call_hook): Remove.
9947 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
9948 member. Assume drive has partitions.
9949 (grub_util_biosdisk_open): Access device names via `.device' struct
9950 member.
9951 (open_device): Likewise.
9952 (find_drive): Likewise.
9953 (read_device_map): Adjust map[] usage to match the new struct
9954 definition. Don't check for duplicates (still possible, but not cheap
9955 anymore).
9956 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
9957 (make_device_name): Remove assumption of BIOS-like drive names.
9958
9959 2008-05-30 Pavel Roskin <proski@gnu.org>
9960
9961 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
9962 compiling execute.c doesn't need grub_script.tab.h anymore.
9963 (normal/command.c_DEPENDENCIES): Likewise.
9964 (normal/function.c_DEPENDENCIES): Likewise.
9965 * conf/i386-ieee1275.rmk: Likewise.
9966 * conf/i386-linuxbios.rmk: Likewise.
9967 * conf/i386-pc.rmk: Likewise.
9968 * conf/powerpc-ieee1275.rmk: Likewise.
9969 * conf/sparc64-ieee1275.rmk: Likewise.
9970
9971 2008-05-29 Pavel Roskin <proski@gnu.org>
9972
9973 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
9974 when scanning metadata for volume group name.
9975
9976 * include/grub/script.h: Don't include grub_script.tab.h. It's
9977 a generated file, which may only be included from the files with
9978 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
9979 use union YYSTYPE, as the later allows forward declaration.
9980 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
9981
9982 2008-05-29 Robert Millan <rmh@aybabtu.com>
9983
9984 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
9985 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
9986 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
9987 (grub_console_checkkey): Add grub_dprintf() call to report unknown
9988 scan codes.
9989
9990 2008-05-29 Robert Millan <rmh@aybabtu.com>
9991
9992 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
9993 control key combinations.
9994
9995 2008-05-29 Robert Millan <rmh@aybabtu.com>
9996
9997 * util/powerpc/ieee1275/grub-install.in: Move from here ...
9998 * util/ieee1275/grub-install.in: ... to here.
9999 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
10000 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
10001 (grub_install_SOURCES): Likewise.
10002
10003 2008-05-29 Robert Millan <rmh@aybabtu.com>
10004
10005 * fs/affs.c: Update copyright year.
10006 * fs/ext2.c: Likewise.
10007 * fs/fshelp.c: Likewise.
10008 * fs/hfsplus.c: Likewise.
10009 * fs/ntfs.c: Likewise.
10010 * fs/xfs.c: Likewise.
10011 * include/grub/fshelp.h: Likewise.
10012 * util/grub-mkdevicemap.c: Likewise.
10013
10014 2008-05-28 Robert Millan <rmh@aybabtu.com>
10015
10016 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
10017 might need to be fatfs to support some firmware implementations
10018 (e.g. OFW or EFI).
10019
10020 2008-05-28 Robert Millan <rmh@aybabtu.com>
10021
10022 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
10023 devices.
10024 * util/grub-mkdevicemap.c (get_mmc_disk_name)
10025 (make_device_map): Likewise.
10026
10027 2008-05-20 Bean <bean123ch@gmail.com>
10028
10029 * fs/fshelp.c (grub_fshelp_map_block): New function.
10030 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
10031 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
10032
10033 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
10034 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
10035 (grub_fshelp_journal): New structure.
10036 (grub_fshelp_map_block): New function prototype.
10037 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
10038 (grub_fshelp_map_block): Likewise.
10039
10040 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
10041 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
10042 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
10043 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
10044 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
10045 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
10046 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
10047 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
10048 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
10049 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
10050 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
10051 (grub_ext2_sblock): New members for journal support.
10052 (grub_ext3_journal_header): New structure.
10053 (grub_ext3_journal_revoke_header): Likewise.
10054 (grub_ext3_journal_block_tag): Likewise.
10055 (grub_ext3_journal_sblock): Likewise.
10056 (grub_fshelp_node): New members logfile and journal.
10057 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
10058 grub_fshelp_map_block to get real block number.
10059 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
10060 number.
10061 (grub_ext2_read_inode): Likewise.
10062 (grub_ext3_get_journal): New function.
10063 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
10064 (grub_ext2_close): Release memory used by journal.
10065
10066 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
10067 (REISERFS_MAGIC_DESC_BLOCK): New macro.
10068 (grub_reiserfs_transaction_header): Renamed to
10069 grub_reiserfs_description_block, replace field data with real_blocks.
10070 (grub_reiserfs_commit_block): New structure.
10071 (grub_reiserfs_data): New member journal.
10072 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
10073 number.
10074 (grub_reiserfs_read_symlink): Likewise.
10075 (grub_reiserfs_iterate_dir): Likewise.
10076 (grub_reiserfs_open): Likewise.
10077 (grub_reiserfs_read): Likewise.
10078 (grub_reiserfs_get_journal): New function.
10079 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
10080 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
10081 using grub_reiserfs_get_journal.
10082 (grub_reiserfs_close): Release memory used by journal.
10083
10084 * fs/affs.c (grub_affs_read_block): Change block type to
10085 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
10086
10087 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
10088
10089 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
10090
10091 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
10092
10093 * fs/udf.c (grub_udf_read_block): Change block type to
10094 grub_disk_addr_t. Use type cast to avoid warning.
10095
10096 * fs/xfs.c (grub_xfs_read_block): Likewise.
10097
10098 2008-05-16 Christian Franke <franke@computer.org>
10099
10100 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
10101 to ensure that break with ESC will always work.
10102 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
10103 Remove ESC from keyboard queue.
10104
10105 2008-05-16 Christian Franke <franke@computer.org>
10106
10107 * util/biosdisk.c: [__CYGWIN__] Add includes.
10108 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
10109 (get_os_disk): Move variable declarations to OS specific
10110 parts to avoid warning.
10111 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
10112 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
10113 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
10114 Cygwin.
10115 * util/getroot.c: [__CYGWIN__] Add includes.
10116 (strip_extra_slashes): Fix "/" case.
10117 [__CYGWIN__] (get_win32_path): New function.
10118 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
10119 [__CYGWIN__] (find_root_device): Disable.
10120 [__CYGWIN__] (get_bootsec_serial): New function.
10121 [__CYGWIN__] (find_cygwin_root_device): Likewise.
10122 [__linux__] (grub_guess_root_device): Add early returns to simplify
10123 structure.
10124 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
10125 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
10126 check for Linux only.
10127
10128 2008-05-15 Bean <bean123ch@gmail.com>
10129
10130 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
10131 keyboard hang problem in apple's intel mac.
10132
10133 2008-05-09 Robert Millan <rmh@aybabtu.com>
10134
10135 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
10136 devices.
10137 * util/grub-mkdevicemap.c (get_virtio_disk_name)
10138 (make_device_map): Likewise.
10139 Reported by Aurelien Jarno <aurel32@debian.org>
10140
10141 2008-05-07 Ian Campbell <ijc@hellion.org.uk>
10142
10143 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
10144 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
10145 (make_device_map): Output entries for xvd type disks.
10146
10147 2008-05-07 Robert Millan <rmh@aybabtu.com>
10148
10149 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
10150 devices.
10151 * util/grub-mkdevicemap.c (get_cciss_disk_name)
10152 (make_device_map): Likewise.
10153 Reported by Roland Dreier <rdreier@cisco.com>
10154
10155 2008-05-07 Robert Millan <rmh@aybabtu.com>
10156
10157 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
10158 grub_strstr() call. Correct a few mistakes in failure path handling.
10159
10160 2008-05-06 Robert Millan <rmh@aybabtu.com>
10161
10162 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
10163 Do not print a trailing slash (therefore, the root directory is an
10164 empty string).
10165 (convert_system_path_to_grub_path): Do not remove trailing slash
10166 from make_system_path_relative_to_its_root() output.
10167
10168 * util/i386/pc/grub-install.in: Add trailing slash to output from
10169 make_system_path_relative_to_its_root().
10170
10171 2008-05-06 Robert Millan <rmh@aybabtu.com>
10172
10173 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
10174 ensures that output lines aren't intermangled with those sent to
10175 stderr (via grub_util_info()).
10176 * util/grub-probe.c (grub_refresh): Likewise.
10177 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
10178
10179 2008-05-05 Christian Franke <franke@computer.org>
10180
10181 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
10182 Add Cygwin device names.
10183 (get_ide_disk_name) [__CYGWIN__]: Likewise.
10184 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
10185 (check_device): Return error instead of success on empty name.
10186 (make_device_map): Move label inside linux specific code to
10187 prevent compiler warning.
10188
10189 2008-04-30 Robert Millan <rmh@aybabtu.com>
10190
10191 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
10192 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
10193 first boot option.
10194 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
10195
10196 2008-04-29 Robert Millan <rmh@aybabtu.com>
10197
10198 * docs/grub.cfg: New file (example GRUB configuration).
10199
10200 2008-04-26 Robert Millan <rmh@aybabtu.com>
10201
10202 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
10203 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
10204 and `disk/ieee1275/nand.c'.
10205
10206 2008-04-25 Bean <bean123ch@gmail.com>
10207
10208 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
10209 i386-linuxbios.
10210
10211 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
10212 change the buffer size to 4096 for cdrom device.
10213
10214 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
10215 and nand.mod.
10216 (_linux_mod_SOURCES): New variable.
10217 (_linux_mod_CFLAGS): Likewise.
10218 (_linux_mod_LDFLAGS): Likewise.
10219 (linux_mod_SOURCES): Likewise.
10220 (linux_mod_CFLAGS): Likewise.
10221 (linux_mod_LDFLAGS): Likewise.
10222 (nand_mod_SOURCES): Likewise.
10223 (nand_mod_CFLAGS): Likewise.
10224 (nand_mod_LDFLAGS): Likewise.
10225
10226 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
10227 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
10228 type property. (nand device in olpc don't have this property)
10229
10230 * include/grub/disk.h (grub_disk_dev_id): New macro
10231 GRUB_DISK_DEVICE_NAND_ID.
10232
10233 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
10234 function prototype.
10235 (grub_rescue_cmd_initrd): Likewise.
10236
10237 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
10238 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
10239 ofw_cif_handler and ofw_idt, adjust padding number.
10240
10241 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
10242 GRUB_MACHINE_IEEE1275 is defined.
10243
10244 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
10245 Use NESTED_FUNC_ATTR attribute on the hook parameter.
10246
10247 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
10248 on nested function heap_init.
10249 (grub_upper_mem): New variable for i386-ieee1275.
10250 (grub_get_extended_memory): New function for i386-ieee1275.
10251 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
10252
10253 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
10254 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
10255 property.
10256
10257 * loader/i386/ieee1275/linux.c: New file.
10258
10259 * loader/i386/ieee1275/linux_normal.c: New file.
10260
10261 * disk/ieee1275/nand.c: New file.
10262
10263 2008-04-18 Thomas Schwinge <tschwinge@gnu.org>
10264
10265 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
10266 value.
10267 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
10268
10269 2008-04-18 Robert Millan <rmh@aybabtu.com>
10270
10271 Restructures early code path on ieee1275 to unify grub_main() as
10272 the first C function that is executed in every platform.
10273
10274 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
10275 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
10276 cmain().
10277 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
10278 * kern/ieee1275/cmain.c (cmain): Rename to ...
10279 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
10280 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
10281 at the beginning.
10282
10283 2008-04-18 Robert Millan <rmh@aybabtu.com>
10284
10285 * util/update-grub.in: Fix syntax error when setting
10286 `GRUB_PRELOAD_MODULES'.
10287 Reported by Stephane Chazelas <stephane@artesyncp.com>
10288
10289 2008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
10290
10291 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
10292 section into account, newer toolchains generate unique build ids
10293 * configure.ac: remove the test for --build-id=none acceptance,
10294 we want build ids to be preserved
10295 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
10296 far from other sections don't cause the raw binary images grow
10297 size
10298
10299 2008-04-15 Robert Millan <rmh@aybabtu.com>
10300
10301 * disk/lvm.c: Update copyright year.
10302 * kern/misc.c: Likewise.
10303
10304 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
10305
10306 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
10307 there is no memory left for physical volume name.
10308
10309 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
10310
10311 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
10312 volume name mapping to support bigger than 9 character names properly.
10313
10314 2008-04-13 Robert Millan <rmh@aybabtu.com>
10315
10316 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
10317 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
10318
10319 2008-04-13 Christian Franke <franke@computer.org>
10320
10321 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
10322 to create a floppy emulation boot CD when non emulation mode
10323 does not work.
10324 Enable Joliet CD filesystem extension.
10325
10326 2008-04-13 Robert Millan <rmh@aybabtu.com>
10327
10328 * kern/misc.c (grub_strncat): Fix off-by-one error.
10329 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
10330
10331 * kern/env.c (grub_env_context_close): Clear current context, not
10332 previous one.
10333 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
10334
10335 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
10336
10337 2008-04-13 Robert Millan <rmh@aybabtu.com>
10338
10339 Improve robustness when handling LVM.
10340
10341 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
10342 (and leave `*p' unmodified).
10343 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
10344 through it.
10345 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
10346 iterating through it.
10347 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
10348 through it.
10349 (grub_lvm_scan_device): Check the return value (and fail gracefully
10350 when due) on each grub_lvm_getvalue() or grub_strstr() call.
10351 Don't assume `vg->pvs != NULL' when iterating through it.
10352
10353 2008-04-13 Robert Millan <rmh@aybabtu.com>
10354
10355 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
10356 * genmk.rb (partmap): New variable.
10357 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
10358 (#{partmap}): New target rule.
10359 * genpartmaplist.sh: New file.
10360 * Makefile.in (pkglib_DATA): Add partmap.lst.
10361 (partmap.lst): New target rule.
10362 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
10363 modules (including all partition maps), instead of preloading them.
10364
10365 2007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
10366
10367 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
10368 `linux-boot-prober' (if installed) to detect other operating
10369 systems which are installed on the computer and add them to
10370 the boot menu.
10371 * conf/common.rmk: Build and install 30_os-prober.
10372
10373 2008-04-12 Robert Millan <rmh@aybabtu.com>
10374
10375 * kern/powerpc/ieee1275/init.c: Move from here ...
10376 * kern/ieee1275/init.c: ... to here. Update all users.
10377
10378 * kern/powerpc/ieee1275/cmain.c: Move from here ...
10379 * kern/ieee1275/cmain.c: ... to here. Update all users.
10380
10381 * kern/powerpc/ieee1275/openfw.c: Move from here ...
10382 * kern/ieee1275/openfw.c: ... to here. Update all users.
10383
10384 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
10385 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
10386
10387 2008-04-10 Pavel Roskin <proski@gnu.org>
10388
10389 * configure.ac: Always use "_cv_" in cache variables for
10390 compatibility with Autoconf 2.62.
10391
10392 2008-04-07 Robert Millan <rmh@aybabtu.com>
10393
10394 Revert grub/machine/init.h addition by Pavel (since it breaks on
10395 i386-ieee1275 and others):
10396 * util/i386/pc/misc.c: Remove grub/machine/init.h.
10397 * util/powerpc/ieee1275/misc.c: Likewise.
10398
10399 2008-04-07 Robert Millan <rmh@aybabtu.com>
10400
10401 * util/grub-probe.c (probe): Improve error message.
10402
10403 2008-04-07 Robert Millan <rmh@aybabtu.com>
10404
10405 * util/biosdisk.c (read_device_map): Skip devices that don't exist
10406 (this prevents the presence of a bogus entry from ruining the whole
10407 thing).
10408
10409 2008-04-06 Pavel Roskin <proski@gnu.org>
10410
10411 * util/biosdisk.c: Include grub/util/biosdisk.h.
10412 * util/grub-fstest.c (execute_command): Make static.
10413 * util/grub-mkdevicemap.c (check_device): Likewise.
10414 * util/i386/pc/misc.c: Include grub/machine/init.h.
10415 * util/powerpc/ieee1275/misc.c: Likewise.
10416 * util/lvm.c: Include grub/util/lvm.h.
10417 * util/misc.c: Include grub/kernel.h, grub/misc.h and
10418 grub/cache.h.
10419 * util/raid.c: Include grub/util/raid.h.
10420 (grub_util_getdiskname): Make static.
10421
10422 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
10423 grub_hostfs_fini(), as they are called from grub_init_all() and
10424 grub_fini_all() respectively. This fixes an infinite loop in
10425 grub-fstest due to double registration of hostfs.
10426 Reported by Christian Franke <Christian.Franke@t-online.de>
10427
10428 2008-04-05 Pavel Roskin <proski@gnu.org>
10429
10430 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
10431 all 8 functions. Otherwise, probe function 0 only.
10432
10433 2008-04-04 Pavel Roskin <proski@gnu.org>
10434
10435 * commands/lspci.c (grub_lspci_iter): Print the bus number
10436 correctly.
10437
10438 * commands/lspci.c (grub_pci_classes): Fix typos.
10439 (grub_lspci_iter): Don't print func twice. Print vendor ID
10440 before device ID, as it's normally done.
10441
10442 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
10443 Fix signedness warnings.
10444 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
10445 Likewise.
10446 * util/ieee1275/get_disk_name.c: Include config.h so that
10447 _GNU_SOURCE is defined and getline() is declared. Mark an
10448 unused argument as such. Fix a signedness warning.
10449
10450 2008-04-02 Pavel Roskin <proski@gnu.org>
10451
10452 * genkernsyms.sh.in: Use more robust assignments for CC and
10453 srcdir. Quote srcdir.
10454 * gensymlist.sh.in: Likewise. Assert at the compile time that
10455 the symbol table is not empty.
10456
10457 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
10458 * fs/cpio.c (grub_cpio_read): Likewise.
10459
10460 2008-04-01 Pavel Roskin <proski@gnu.org>
10461
10462 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
10463 * disk/host.c (grub_host_open): Likewise.
10464 * disk/loopback.c (grub_loopback_open): Likewise.
10465 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
10466 disk->id as in disk/host.c, not a multi-character constant.
10467
10468 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
10469 later is obsolete, potentially dangerous and sets a bad example.
10470 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
10471 * util/misc.c (grub_util_get_image_size): Likewise.
10472
10473 * disk/loopback.c (options): Improve help for "--partitions".
10474
10475 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
10476 options to align them with the short options, e.g. "echo -e".
10477
10478 2008-03-31 Bean <bean123ch@gmail.com>
10479
10480 * video/reader/png.c (grub_png_data): New member is_16bit and
10481 image_data.
10482 (grub_png_decode_image_header): Detect 16 bit png image.
10483 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
10484 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
10485 (grub_video_reader_png): Release memory occupied by image_data.
10486
10487 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
10488 4096 bytes.
10489 (grub_nfs_mount): Skip the test for sector per cluster.
10490
10491 * include/grub/ntfs.h (MAX_SPC): Removed.
10492
10493 2008-03-31 Bean <bean123ch@gmail.com>
10494
10495 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
10496 (grub_probe_SOURCES): Add fs/afs.c.
10497 (grub_fstest_SOURCES): Likewise.
10498 (afs_mod_SOURCES): New variable.
10499 (afs_mod_CFLAGS): Likewise.
10500 (afs_mod_LDFLAGS): Likewise.
10501
10502 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
10503 (grub_emu_SOURCES): Likewise.
10504
10505 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
10506
10507 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
10508
10509 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
10510
10511 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
10512
10513 * fs/afs.c: New file.
10514
10515 2008-03-30 Pavel Roskin <proski@gnu.org>
10516
10517 * disk/host.c: Include grub/misc.h to fix a warning.
10518 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
10519 warnings about implicit declarations.
10520
10521 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
10522 variable.
10523 * include/grub/i386/loader.h: Change declaration of
10524 grub_linux_boot() to match what grub_loader_set() expects.
10525 * util/getroot.c (grub_guess_root_device): Return const char* to
10526 fix a warning.
10527 * util/grub-probe.c (probe): Fix a warning about uninitialized
10528 abstraction_name variable.
10529 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
10530 second argument as unused to fix a warning.
10531
10532 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
10533 missing grub_error() call.
10534
10535 * util/update-grub_lib.in: Define datarootdir, since Autoconf
10536 2.60 and newer uses it to define datadir.
10537
10538 * commands/sleep.c: Fix warning about implicit declaration.
10539 * disk/memdisk.c: Likewise.
10540 * loader/aout.c: Likewise.
10541 * loader/i386/bsd_normal.c: Likewise.
10542 * util/grub-probe.c: Likewise.
10543
10544 * commands/i386/cpuid.c (has_longmode): Make static.
10545 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
10546 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
10547
10548 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
10549 GDT. This is more robust, as %ds can change.
10550 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
10551 calling real_to_prot().
10552 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
10553
10554 2008-03-28 Pavel Roskin <proski@gnu.org>
10555
10556 * kern/i386/pc/startup.S: Assert that uncompressed functions
10557 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
10558 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
10559 code, as they push parts of the code (error handlers) beyond
10560 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
10561 code as correctness and size.
10562
10563 2008-03-28 Pavel Roskin <proski@gnu.org>
10564
10565 * kern/i386/pc/startup.S
10566 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
10567 data block address to the real mode, keep offset minimal. This
10568 works around a bug in AWARD BIOS on old Athlon systems, which
10569 makes CD detection hang.
10570
10571 2008-03-26 Pavel Roskin <proski@gnu.org>
10572
10573 * normal/color.c (grub_parse_color_name_pair): Make `name' a
10574 const.
10575 * include/grub/normal.h: Add grub_parse_color_name_pair()
10576 declaration.
10577
10578 2008-03-24 Bean <bean123ch@gmail.com>
10579
10580 * disk/i386/pc/biosdisk.c (cd_start): Removed.
10581 (cd_count): Removed.
10582 (cd_drive): New variable.
10583 (grub_biosdisk_get_drive): Don't check for (cdN) device.
10584 (grub_biosdisk_call_hook): Likewise.
10585 (grub_biosdisk_iterate): Change cdrom detection method.
10586 (grub_biosdisk_open): Replace cd_start with cd_drive.
10587 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
10588 detect cdrom device.
10589
10590 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
10591 Removed.
10592 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
10593 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
10594 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
10595 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
10596 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
10597 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
10598 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
10599 (grub_biosdisk_cdrp): New structure.
10600 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
10601
10602 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
10603
10604 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
10605 device.
10606
10607 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
10608 New function.
10609
10610 2008-03-20 Robert Millan <rmh@aybabtu.com>
10611
10612 Remove 2 TiB limit in ata.mod.
10613 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
10614 (grub_ata_dumpinfo): Print sector count with 0x%llx.
10615 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
10616 grub_uint64_t instead of grub_uint32_t.
10617
10618 2008-03-05 Bean <bean123ch@gmail.com>
10619
10620 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
10621 (grub_multiboot): Set boot device.
10622
10623 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
10624
10625 2008-03-02 Bean <bean123ch@gmail.com>
10626
10627 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
10628 symlink_buffer.
10629
10630 2008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
10631
10632 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
10633 texinfo.tex.
10634
10635 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
10636 modified.
10637
10638 * docs/fdl.texi: New file.
10639
10640 * docs/mdate-sh: New file. Copied from gnulib.
10641 * docs/texinfo.tex: Likewise.
10642
10643 * config.guess: Updated from gnulib.
10644 * install-sh: Likewise.
10645
10646 2008-02-28 Robert Millan <rmh@aybabtu.com>
10647
10648 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
10649 (aout_mod_SOURCES): New variable.
10650 (aout_mod_CFLAGS): Likewise.
10651 (aout_mod_LDFLAGS): Likewise.
10652
10653 * conf/i386-ieee1275.rmk: Likewise.
10654
10655 2008-02-28 Robert Millan <rmh@aybabtu.com>
10656
10657 * util/update-grub.in: Reorganise terminal validity check. Accept
10658 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
10659 Based on suggestion by Franklin PIAT.
10660
10661 2008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
10662
10663 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
10664 function.
10665 * util/getroot.c (grub_util_check_block_device): New function that
10666 returns the given argument if it is a block device and returns NULL else.
10667 * util/grub-probe.c (argument_is_device): New variable.
10668 (probe): Promote device_name from a variable to an argument. Receive
10669 device_name from grub_util_check_block_device() if path is NULL and from
10670 grub_guess_root_device() else. Do not free() device_name anymore.
10671 (options): Introduce new parameter '-d, --device'.
10672 (main): Add description of the new parameter to the help screen.
10673 Rename path variable to argument. Set argument_is_device if the '-d'
10674 option is given. Pass argument to probe() depending on
10675 argument_is_device.
10676
10677 2008-02-24 Bean <bean123ch@gmail.com>
10678
10679 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
10680 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
10681 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
10682 (GRUB_ISO9660_VOLDESC_PART): Likewise.
10683 (GRUB_ISO9660_VOLDESC_END): Likewise.
10684 (grub_iso9660_primary_voldesc): New member escape.
10685 (grub_iso9660_data): New member joliet.
10686 (grub_iso9660_convert_string): New function.
10687 (grub_iso9660_mount): Detect joliet extension.
10688 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
10689 (grub_iso9660_iso9660_label): Likewise.
10690
10691 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
10692 (grub_setup_SOURCES): Add fs/udf.c.
10693 (grub_fstest_SOURCES): Likewise.
10694 (udf_mod_SOURCES): New variable.
10695 (udf_mod_CFLAGS): Likewise.
10696 (udf_mod_LDFLAGS): Likewise.
10697
10698 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
10699 (grub_emu_SOURCES): Likewise.
10700
10701 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
10702
10703 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
10704
10705 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
10706
10707 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
10708
10709 * fs/udf.c: New file.
10710
10711 2008-02-24 Robert Millan <rmh@aybabtu.com>
10712
10713 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
10714 (normal/lexer.c_DEPENDENCIES): New variables.
10715 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
10716 (normal/lexer.c_DEPENDENCIES): Likewise.
10717 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
10718 (normal/lexer.c_DEPENDENCIES): Likewise.
10719 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
10720 (normal/lexer.c_DEPENDENCIES): Likewise.
10721 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
10722 (normal/lexer.c_DEPENDENCIES): Likewise.
10723 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
10724 (normal/lexer.c_DEPENDENCIES): Likewise.
10725
10726 2008-02-23 Robert Millan <rmh@aybabtu.com>
10727
10728 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
10729 since they were intended to be in hex. This didn't break previously
10730 because of a bug in gpt_partition_map_iterate() (see below).
10731
10732 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
10733 when checking the validity of GPT header.
10734 Remove `partno', since it always provides the same information as `i'.
10735
10736 2008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
10737
10738 * include/grub/efi/time.h: Fix a wrong comment.
10739
10740 2008-02-19 Pavel Roskin <proski@gnu.org>
10741
10742 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
10743 message.
10744
10745 2008-02-19 Bean <bean123ch@gmail.com>
10746
10747 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
10748 (aout_mod_SOURCES): New variable.
10749 (aout_mod_CFLAGS): Likewise.
10750 (aout_mod_LDFLAGS): Likewise.
10751 (_bsd_mod_SOURCES): New variable.
10752 (_bsd_mod_CFLAGS): Likewise.
10753 (_bsd_mod_LDFLAGS): Likewise.
10754 (bsd_mod_SOURCES): New variable.
10755 (bsd_mod_CFLAGS): Likewise.
10756 (bsd_mod_LDFLAGS): Likewise.
10757
10758 * include/grub/aout.h: New file.
10759
10760 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
10761
10762 * include/grub/i386/bsd.h: New file.
10763
10764 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
10765 to make it public.
10766
10767 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
10768 function is called, so that it's possible to change it inside the hook.
10769 (grub_elf64_load): Likewise.
10770 (grub_elf_file): Don't close the file if elf header is not found.
10771 (grub_elf_close): Close the file if grub_elf_file fails (The new
10772 grub_elf_file won't close it).
10773 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
10774 (grub_elf64_size): Likewise.
10775
10776 * kern/i386/loader.S (grub_unix_real_boot): New function.
10777
10778 * loader/aout.c: New file.
10779
10780 * loader/i386/bsd.c: New file.
10781
10782 * loader/i386/bsd_normal.c: New file.
10783
10784 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
10785
10786 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
10787 can test other formats.
10788
10789 2008-02-19 Robert Millan <rmh@aybabtu.com>
10790
10791 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
10792 (grub_gpt_partition_type_empty): Redefine with macro from
10793 `<grub/gpt_partition.h>'.
10794 (gpt_partition_map_iterate): Adjust partition type comparison.
10795
10796 Export `entry' as partmap-specific `part.data' struct.
10797 (grub_gpt_header, grub_gpt_partentry): Move from here ...
10798
10799 * include/grub/gpt_partition.h (grub_gpt_header)
10800 (grub_gpt_partentry): ... to here (new file).
10801
10802 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
10803
10804 (grub_gpt_partition_type_bios_boot): New const variable, defined
10805 with macro from `<grub/gpt_partition.h>'.
10806
10807 (setup): Replace `first_start' with `embed_region', which keeps
10808 track of the embed region (and is partmap-agnostic).
10809
10810 Replace find_first_partition_start() with find_usable_region(),
10811 which finds a usable region for embedding using partmap-specific
10812 knowledge (supports PC/MSDOS and GPT).
10813
10814 Fix all assumptions that the embed region start at sector 1, using
10815 `embed_region.start' from now on. Similarly, use `embed_region.end'
10816 rather than `first_start' to calculate available size.
10817
10818 In grub_util_info() message, replace "into after the MBR" with an
10819 indication of the specific sector our embed region starts at.
10820
10821 2008-02-19 Robert Millan <rmh@aybabtu.com>
10822
10823 * DISTLIST: Replace `commands/ieee1275/halt.c' and
10824 `commands/ieee1275/reboot.c' with `commands/halt.c' and
10825 `commands/reboot.c'.
10826 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
10827 (halt_mod_SOURCES): Likewise.
10828 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
10829 (halt_mod_SOURCES): Likewise.
10830
10831 2008-02-17 Christian Franke <franke@computer.org>
10832
10833 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
10834
10835 2008-02-17 Robert Millan <rmh@aybabtu.com>
10836
10837 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
10838 set `first_start' to 0 for non-PC/MSDOS partition maps.
10839
10840 2008-02-16 Robert Millan <rmh@aybabtu.com>
10841
10842 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
10843 do not assume partition map is PC/MSDOS before performing checks that
10844 are specific to that layout.
10845
10846 2008-02-13 Robert Millan <rmh@aybabtu.com>
10847
10848 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
10849 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
10850 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
10851
10852 2008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
10853
10854 * configure.ac: Only a cosmetic change on the handling of
10855 -fno-stack-protector.
10856
10857 2008-02-12 Alexandre Boeglin <alex@boeglin.org>
10858
10859 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
10860 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
10861 reboot.c.
10862 (grub_install_SOURCES): Add halt.mod and reboot.mod.
10863 (halt_mod_SOURCES): New variable.
10864 (halt_mod_CFLAGS): Likewise.
10865 (halt_mod_LDFLAGS): Likewise.
10866 (reboot_mod_SOURCES): Likewise.
10867 (reboot_mod_CFLAGS): Likewise.
10868 (reboot_mod_LDFLAGS): Likewise.
10869
10870 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
10871 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
10872 reboot.c.
10873 (halt_mod_SOURCES): Likewise.
10874 (reboot_mod_SOURCES): Likewise.
10875
10876 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
10877 commands/i386/pc/reboot.c by commands/reboot.c.
10878 (reboot_mod_SOURCES): Likewise.
10879
10880 * commands/i386/pc/reboot.c: merge this file ...
10881
10882 * commands/ieee1275/reboot.c: ... and this file ...
10883
10884 * commands/reboot.c: ... to this file.
10885 Add some precompiler directive to include the correct header for
10886 each machine.
10887
10888 * commands/ieee1275/halt.c: move this file ...
10889
10890 * commands/halt.c: ... to here.
10891 Add some precompiler directive to include the correct header for
10892 each machine.
10893
10894 * include/grub/efi/efi.h (grub_reboot): New function declaration.
10895 (grub_halt): Likewise.
10896
10897 * kern/efi/efi.c (grub_reboot): New function.
10898 (grub_halt): Likewise.
10899
10900 2008-02-12 Robert Millan <rmh@aybabtu.com>
10901
10902 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
10903 /dev (like it is done for /dev/mapper). This doesn't provide support
10904 for EVMS, but at least it is now easy to identify the problem when it
10905 arises.
10906
10907 2008-02-11 Robert Millan <rmh@aybabtu.com>
10908
10909 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
10910 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
10911 comparing it with -1, not 0.
10912
10913 2008-02-10 Robert Millan <rmh@aybabtu.com>
10914
10915 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
10916 `disk/lvm.c'.
10917 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
10918 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
10919
10920 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
10921 `disk/lvm.c' to the end of the list.
10922 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
10923 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
10924
10925 2008-02-10 Robert Millan <rmh@aybabtu.com>
10926
10927 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
10928 grub_print_error() instead. This will let user know why we're entering
10929 rescue mode.
10930 Based on suggestions from Sam Morris.
10931
10932 2008-02-10 Alexandre Boeglin <alex@boeglin.org>
10933
10934 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
10935 on remaining N args, instead of "--" arg N times.
10936
10937 2008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
10938
10939 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
10940 (fill_with_default_glyph): Changed to use unknown_glyph for fill
10941 pattern for unknown glyphs.
10942
10943 2008-02-09 Robert Millan <rmh@aybabtu.com>
10944
10945 * configure.ac: Probe for `help2man'.
10946 * Makefile.in (builddir): New variable.
10947 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
10948 or otherwise add a few flags/options to it.
10949 (install-local): For every executable utility or script that is
10950 installed, invoke $(HELP2MAN) to install a manpage based on --help
10951 output.
10952
10953 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
10954 that it doesn't prevent --help from working in build tree.
10955
10956 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
10957 with `bug-grub@gnu.org'.
10958 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
10959 * util/update-grub.in (usage): New function.
10960 Implement proper argument check, with support for --help and --version
10961 (as well as existing -y).
10962
10963 2008-02-09 Christian Franke <franke@computer.org>
10964
10965 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
10966 avoid overwriting previous output.
10967 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
10968
10969 2008-02-09 Robert Millan <rmh@aybabtu.com>
10970
10971 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
10972 drawing the menu.
10973
10974 2008-02-09 Robert Millan <rmh@aybabtu.com>
10975
10976 * commands/sleep.c: New file.
10977 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
10978 (sleep_mod_SOURCES): New variable.
10979 (sleep_mod_CFLAGS): Likewise.
10980 (sleep_mod_LDFLAGS): Likewise.
10981
10982 2008-02-09 Robert Millan <rmh@aybabtu.com>
10983
10984 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
10985 situations in which we can deduce the RAID size and the superblock
10986 doesn't match it.
10987
10988 2008-02-09 Robert Millan <rmh@aybabtu.com>
10989
10990 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
10991 and return a grub_diskmemberlist_t composed of LVM physical volumes.
10992 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
10993
10994 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
10995 and return a grub_diskmemberlist_t composed of physical array members.
10996 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
10997
10998 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
10999 prototype.
11000 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
11001 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
11002 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
11003
11004 * util/grub-probe.c (probe): Move partmap probing code from here ...
11005 (probe_partmap): ... to here.
11006 (probe): Use probe_partmap() once for the disk we're probing, and
11007 additionally, when such disk contains a memberlist() struct member,
11008 once for each disk that is contained in the structure returned by
11009 memberlist().
11010
11011 2008-02-09 Robert Millan <rmh@aybabtu.com>
11012
11013 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
11014 environment variable to 'all' in order to obtain debug output from
11015 non-util/ code.
11016 * util/i386/pc/grub-setup.c (main): Likewise.
11017
11018 2008-02-08 Robert Millan <rmh@aybabtu.com>
11019
11020 * disk/raid.c (grub_raid_scan_device): Check for
11021 `array->device[sb.this_disk.number]' rather than for
11022 `array->device[sb.this_disk.number]->name', since the latter is not
11023 guaranteed to be accessible.
11024
11025 2008-02-08 Robert Millan <rmh@aybabtu.com>
11026
11027 * disk/raid.c: Update copyright.
11028 * fs/cpio.c: Likewise.
11029 * include/grub/raid.h: Likewise.
11030 * loader/i386/pc/multiboot.c: Likewise.
11031 * util/hostfs.c: Likewise.
11032
11033 2008-02-08 Robert Millan <rmh@aybabtu.com>
11034
11035 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
11036 to a grub_disk_t array.
11037 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
11038 `device[x]'.
11039 (grub_raid_scan_device): Replace `device[x].name' accesses with
11040 `device[x]->name'. Simplify initialization of `array->device[x]'.
11041
11042 2008-02-08 Robert Millan <rmh@aybabtu.com>
11043
11044 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
11045 grub_dprintf() calls.
11046 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
11047 error message.
11048
11049 2008-02-07 Christian Franke <franke@computer.org>
11050
11051 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
11052 instead of fseek and ftell to support large files.
11053 (grub_hostfs_read): Likewise.
11054
11055 2008-02-07 Robert Millan <rmh@aybabtu.com>
11056
11057 Patch from Jeroen Dekkers.
11058 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
11059 failure, since successfully reading all array members might not be
11060 required.
11061
11062 2008-02-06 Robert Millan <rmh@aybabtu.com>
11063
11064 * util/grub-probe.c (probe): Simplify partmap probing (with the
11065 assumption that the first word up to the underscore equals to
11066 the module name).
11067
11068 2008-02-06 Christian Franke <franke@computer.org>
11069
11070 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
11071 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
11072 last block of a cpio or tar stream.
11073 Check for "TRAILER!!!" instead of any empty data
11074 block to detect last block of a cpio stream.
11075 (grub_cpio_dir): Fix constness of variable np.
11076 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
11077 cpio or tar trailer is detected. This fixes a crash
11078 on open of a non existing file.
11079
11080 2008-02-05 Bean <bean123ch@gmail.com>
11081
11082 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
11083 address of entry.
11084 (grub_multiboot_load_elf64): Likewise.
11085 (grub_multiboot): Initialize mbi structure.
11086
11087 * util/grub-fstest.c: Don't include unused header file script.h.
11088
11089 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
11090 of file.
11091 (grub_fstest_SOURCES): Likewise.
11092
11093 2008-02-05 Robert Millan <rmh@aybabtu.com>
11094
11095 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
11096 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
11097 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
11098 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
11099
11100 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
11101 (translation_table): Replace hardcoded values with macros
11102 provided by `<grub/term.h>'.
11103
11104 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
11105 (keyboard_map): Correct/add a few values, with macros provided
11106 by `<grub/term.h>'.
11107 (keyboard_map_shift): Zero values that don't differ from their
11108 `keyboard_map' equivalents.
11109 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
11110 Discard the second scan code that is always sent by Caps lock.
11111 Only use `keyboard_map_shift' when it provides a non-zero value,
11112 otherwise fallback to `keyboard_map'.
11113
11114 2008-02-04 Bean <bean123ch@gmail.com>
11115
11116 * Makefile.in (enable_grub_fstest): New variable.
11117
11118 * conf/common.rmk (grub_fstest_init.lst): New rule.
11119 (grub_fstest_init.h): Likewise.
11120 (grub_fstest_init.c): Likewise.
11121 (util/grub-fstest.c_DEPENDENCIES): New variable.
11122 (grub_fstest_SOURCES): Likewise.
11123
11124 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
11125
11126 * util/grub-fstest.c: New file.
11127
11128 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
11129
11130 Make grub-setup handle a separate root device.
11131
11132 * util/i386/pc/grub-setup.c (setup): Always open the root device,
11133 so that the root device can be compared with the destination
11134 device.
11135 When embedding the core image, if the root and destination devices
11136 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
11137 0xFF.
11138 When not embedding, set ROOT_DRIVE to 0xFF.
11139
11140 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
11141
11142 Add support for having a grub directory in a different drive. This
11143 is still only the data handling part.
11144
11145 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
11146 (codestart): Save %dh in GRUB_ROOT_DRIVE.
11147 (grub_root_drive): New variable.
11148
11149 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
11150 instead of GRUB_BOOT_DRIVE to construct a device name. Set
11151 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
11152 as it was.
11153
11154 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
11155
11156 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
11157 macro.
11158 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
11159
11160 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
11161 is bogus, because PXE booting does not specify any drive
11162 correctly.
11163
11164 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
11165 am not sure if this is really correct.
11166
11167 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
11168 is always identical to the boot drive when booting from a CD.
11169
11170 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
11171 longer.
11172 (root_drive): New variable.
11173 (real_start): Unconditionally set %dh to ROOT_DRIVE.
11174 (setup_sectors): Push %dx right after popping it, because %dh will
11175 be modified later.
11176 (copy_buffer): Restore %dx.
11177
11178 2008-02-03 Robert Millan <rmh@aybabtu.com>
11179
11180 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
11181 use `cdboot.img' for cdrom images.
11182
11183 2008-02-03 Robert Millan <rmh@aybabtu.com>
11184
11185 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
11186 only setup gfxterm when `font' command has succeeded.
11187
11188 2008-02-03 Robert Millan <rmh@aybabtu.com>
11189
11190 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
11191 (grub_rescue_cmd_multiboot_loader)
11192 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
11193
11194 2008-02-03 Pavel Roskin <proski@gnu.org>
11195
11196 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
11197 %edx and %esi from stack only after grub_gate_a20() is called.
11198 grub_gate_a20() clobbers %edx.
11199
11200 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
11201
11202 * configure.ac (AC_INIT): Bumped to 1.96.
11203
11204 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
11205 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
11206 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
11207 video/readers/png.c.
11208
11209 2008-02-03 Bean <bean123ch@gmail.com>
11210
11211 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
11212 (cdboot_img_SOURCES): New variable.
11213 (cdboot_img_ASFLAGS): New variable.
11214 (cdboot_img_LDFLAGS): New variable.
11215
11216 * boot/i386/pc/cdboot.S: New file.
11217
11218 * disk/i386/pc/biosdisk.c (cd_start): New variable.
11219 (cd_count): Likewise.
11220 (grub_biosdisk_get_drive): Add support for cd device.
11221 (grub_biosdisk_call_hook): Likewise.
11222 (grub_biosdisk_iterate): Likewise.
11223 (grub_biosdisk_open): Likewise.
11224 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
11225 (grub_biosdisk_rw): Support reading from cd device.
11226 (GRUB_MOD_INIT): Iterate cd devices.
11227
11228 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
11229 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
11230 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
11231
11232 * kern/i386/pc/init.c (make_install_device): Check for cd device.
11233
11234 2008-02-02 Robert Millan <rmh@aybabtu.com>
11235
11236 * commands/read.c: New file.
11237 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
11238 (read_mod_SOURCES): New variable.
11239 (read_mod_CFLAGS): Likewise.
11240 (read_mod_LDFLAGS): Likewise.
11241
11242 2008-02-02 Robert Millan <rmh@aybabtu.com>
11243
11244 * normal/main.c (grub_normal_execute): Check for `menu->size' when
11245 determining whether menu has to be displayed.
11246
11247 2008-02-02 Marco Gerards <marco@gnu.org>
11248
11249 * bus/pci.c: New file.
11250
11251 * include/grub/pci.h: Likewise.
11252
11253 * include/grub/i386/pc/pci.h: Likewise.
11254
11255 * commands/lspci.c: Likewise.
11256
11257 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
11258 `lspci.mod'.
11259 (pci_mod_SOURCES): New variable.
11260 (pci_mod_CFLAGS): Likewise.
11261 (pci_mod_LDFLAGS): Likewise.
11262 (lspci_mod_SOURCES): Likewise.
11263 (lspci_mod_CFLAGS): Likewise.
11264 (lspci_mod_LDFLAGS): Likewise.
11265
11266 2008-02-02 Bean <bean123ch@gmail.com>
11267
11268 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
11269 (grub_ufs_get_file_block): Fix indirect block calculation problem.
11270
11271 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
11272 (grub_xfs_btree_node): New structure.
11273 (grub_xfs_btree_root): New structure.
11274 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
11275 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
11276 (GRUB_XFS_EXTENT_BLOCK): Likewise.
11277 (GRUB_XFS_EXTENT_SIZE): Likewise.
11278 (grub_xfs_read_block): Support btree format type.
11279 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
11280 Use directory block as basic unit.
11281
11282 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
11283
11284 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
11285 __attribute__ ((__regparm__ (1))).
11286
11287 2008-02-01 Robert Millan <rmh@aybabtu.com>
11288
11289 Correct a mistake in previous commit.
11290
11291 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
11292 top.
11293 (normal/command.c_DEPENDENCIES): New variable.
11294
11295 2008-02-01 Robert Millan <rmh@aybabtu.com>
11296
11297 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
11298 top.
11299 (normal/command.c_DEPENDENCIES): New variable.
11300 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
11301 * conf/i386-ieee1275.rmk: Likewise.
11302 * conf/i386-linuxbios.rmk: Likewise.
11303 * conf/i386-pc.rmk: Likewise.
11304 * conf/sparc64-ieee1275.rmk: Likewise.
11305 * conf/powerpc-ieee1275.rmk: Likewise.
11306 (grub_emu_SOURCES): Add `fs/fshelp.c'.
11307
11308 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
11309
11310 2008-02-01 Robert Millan <rmh@aybabtu.com>
11311
11312 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
11313 call at beginning of function.
11314
11315 2008-01-31 Pavel Roskin <proski@gnu.org>
11316
11317 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
11318 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
11319 (grub_mkrescue_SOURCES): Likewise.
11320 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
11321
11322 2008-01-30 Robert Millan <rmh@aybabtu.com>
11323
11324 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
11325 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
11326 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
11327 (grub_probe_SOURCES): ... to here.
11328
11329 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
11330 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
11331 * conf/i386-ieee1275.rmk: Likewise.
11332 * conf/i386-linuxbios.rmk: Likewise.
11333 * conf/powerpc-ieee1275.rmk: Likewise.
11334
11335 2008-01-30 Tristan Gingold <gingold@free.fr>
11336
11337 * kern/rescue.c: Silently accept empty lines.
11338
11339 2008-01-29 Bean <bean123ch@gmail.com>
11340
11341 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
11342 (real_code_2): Code cleanup and change comment style.
11343 (move_memory): Avoid using 32-bit address mode.
11344
11345 2008-01-29 Bean <bean123ch@gmail.com>
11346
11347 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
11348 (png_mod_SOURCES): New variable.
11349 (png_mod_CFLAGS): Likewise.
11350 (png_mod_LDFLAGS): Likewise.
11351
11352 * video/readers/png.c: New file.
11353
11354 2008-01-28 Robert Millan <rmh@aybabtu.com>
11355
11356 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
11357 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
11358 `ifndef GRUB_MOD_GAP' hack.
11359 * util/elf/grub-mkimage.c (add_segments): Likewise.
11360
11361 2008-01-27 Robert Millan <rmh@aybabtu.com>
11362
11363 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
11364 `GRUB_MOD_GAP' for platforms in which it's not defined.
11365 * util/elf/grub-mkimage.c (add_segments): Likewise.
11366
11367 2008-01-27 Robert Millan <rmh@aybabtu.com>
11368
11369 Get grub-emu to build again (including parallel builds).
11370
11371 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
11372 Split into ...
11373 (util/grub-emu.c_DEPENDENCIES): ... this, ...
11374 (normal/execute.c_DEPENDENCIES): ... this, ...
11375 (grub-emu_DEPENDENCIES): ... and this.
11376
11377 * conf/i386-efi.rmk: Likewise.
11378 * conf/i386-linuxbios.rmk: Likewise.
11379 * conf/i386-ieee1275.rmk: Likewise.
11380 * conf/powerpc-ieee1275.rmk: Likewise.
11381 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
11382
11383 2008-01-27 Robert Millan <rmh@aybabtu.com>
11384
11385 * NEWS: Add a few items.
11386
11387 2008-01-27 Robert Millan <rmh@aybabtu.com>
11388
11389 Fix parallel builds with grub-emu. Based on earlier commit for
11390 grub-probe and grub-setup.
11391
11392 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
11393 (util/grub-emu.c_DEPENDENCIES): ... this.
11394 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
11395 (util/grub-emu.c_DEPENDENCIES): ... this.
11396 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
11397 (util/grub-emu.c_DEPENDENCIES): ... this.
11398 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
11399 (util/grub-emu.c_DEPENDENCIES): ... this.
11400 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
11401 (util/grub-emu.c_DEPENDENCIES): ... this.
11402
11403 2008-01-27 Pavel Roskin <proski@gnu.org>
11404
11405 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
11406 to create a gap between _end and the modules added to the image
11407 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
11408 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
11409 * util/elf/grub-mkimage.c (add_segments): Likewise.
11410
11411 2008-01-26 Pavel Roskin <proski@gnu.org>
11412
11413 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
11414 just return an error.
11415
11416 2008-01-26 Bean <bean123ch@gmail.com>
11417
11418 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
11419 (grub_reiserfs_get_item): Save offset of the next item.
11420 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
11421
11422 2008-01-25 Robert Millan <rmh@aybabtu.com>
11423
11424 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
11425 make all filesystem sources appear together (possibly fixing omissions
11426 while at it).
11427 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
11428 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
11429 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
11430 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
11431
11432 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
11433 add `kern/file.c'.
11434 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
11435 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
11436 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
11437 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
11438
11439 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
11440 (probe): Add a sanity check to make sure of our ability to read
11441 requested files when probing for filesystem type.
11442
11443 * genmk.rb: Update copyright year (2007).
11444
11445 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
11446 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
11447 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
11448 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
11449 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
11450 : Remove function prototypes.
11451
11452 2008-01-25 Robert Millan <rmh@aybabtu.com>
11453
11454 Revert my previous commits (based on wrong assumption of how grub_errno
11455 works).
11456
11457 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
11458 * kern/file.c (grub_file_open): Likewise.
11459
11460 2008-01-24 Pavel Roskin <proski@gnu.org>
11461
11462 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
11463 that hang if GRUB tries to setup colors.
11464 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
11465 colors for firmwares that don't support it.
11466 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
11467 Recognize Open Hack'Ware, set flags to work around its
11468 limitations.
11469
11470 2008-01-24 Robert Millan <rmh@aybabtu.com>
11471
11472 * kern/file.c (grub_file_open): Do not account previous failures of
11473 unrelated functions when grub_errno is checked for.
11474 Reported by Oleg Strikov.
11475
11476 2008-01-24 Bean <bean123ch@gmail.com>
11477
11478 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
11479 (grub_ufs_sblock): New member volume name.
11480 (grub_ufs_find_file): Fix string copy bug.
11481 (grub_ufs_label): Implement this function properly.
11482
11483 * fs/hfs.c (grub_hfs_cnid_type): New enum.
11484 (grub_hfs_iterate_records): Use the correct file number for extents
11485 and catalog file. Fix problem in next index calculation.
11486 (grub_hfs_find_node): Replace recursive function call with loop.
11487 (grub_hfs_iterate_dir): Replace recursive function call with loop.
11488
11489 2008-01-23 Robert Millan <rmh@aybabtu.com>
11490
11491 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
11492 `<grub/symbol.h>' and `<grub/multiboot.h>'.
11493 (grub_multiboot2_real_boot): New function prototype.
11494
11495 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
11496 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
11497
11498 * kern/i386/ieee1275/init.c (grub_os_area_addr)
11499 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
11500
11501 2008-01-23 Robert Millan <rmh@aybabtu.com>
11502
11503 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
11504 #ifdef'ed out grub_printf().
11505
11506 2008-01-23 Robert Millan <rmh@aybabtu.com>
11507
11508 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
11509 grub_dprintf calls, since they make "debug=all" mode unusable.
11510 (grub_console_checkkey): Likewise.
11511
11512 2008-01-23 Robert Millan <rmh@aybabtu.com>
11513
11514 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
11515 `term/i386/pc/at_keyboard.c'.
11516 (pkglib_MODULES): Add `serial.mod'.
11517 (serial_mod_SOURCES): New variable.
11518 (serial_mod_CFLAGS): Likewise.
11519 (serial_mod_LDFLAGS): Likewise.
11520
11521 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
11522 `<grub/powerpc/ieee1275/console.h>'.
11523 (grub_keyboard_controller_init): New function prototype.
11524 (grub_console_checkkey): Likewise.
11525 (grub_console_getkey): Likewise.
11526
11527 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
11528 keyboard on i386.
11529
11530 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
11531 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
11532
11533 2008-01-23 Robert Millan <rmh@aybabtu.com>
11534
11535 * kern/i386/pc/init.c (make_install_device): When memdisk image is
11536 present, "(memdisk)/boot/grub" becomes the default prefix.
11537
11538 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
11539 a memdisk tarball with all the modules. Add --overlay=DIR option that
11540 allows users to overlay additional files into the image.
11541
11542 2008-01-23 Robert Millan <rmh@aybabtu.com>
11543
11544 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
11545 and `machine/memory.h'.
11546 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
11547 (_multiboot_mod_SOURCES): New variable.
11548 (_multiboot_mod_CFLAGS): Likewise.
11549 (_multiboot_mod_LDFLAGS): Likewise.
11550 (multiboot_mod_SOURCES): Likewise.
11551 (multiboot_mod_CFLAGS): Likewise.
11552 (multiboot_mod_LDFLAGS): Likewise.
11553
11554 * include/grub/i386/ieee1275/loader.h: New file.
11555
11556 * include/grub/i386/ieee1275/machine.h: Likewise.
11557
11558 * include/grub/i386/ieee1275/memory.h: Likewise.
11559
11560 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
11561 variable declaration.
11562 (grub_os_area_size): Likewise.
11563
11564 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
11565 (grub_lower_mem, grub_upper_mem): New variables.
11566 (grub_stop_floppy): New function (just to make
11567 grub_multiboot2_real_boot() happy).
11568
11569 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
11570 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
11571 (grub_stop): New function.
11572 Include `"../realmode.S"' and `"../loader.S"'.
11573
11574 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
11575 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
11576
11577 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
11578 rely on grub_multiboot2_real_boot() for final boot.
11579
11580 2008-01-22 Robert Millan <rmh@aybabtu.com>
11581
11582 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
11583 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
11584 device that doesn't look like an SD card.
11585 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
11586 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
11587 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
11588 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
11589 found.
11590
11591 2008-01-22 Robert Millan <rmh@aybabtu.com>
11592
11593 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
11594 avoid claiming over our own code.
11595
11596 2008-01-22 Bean <bean123ch@gmail.com>
11597
11598 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
11599 (jpeg_mod_SOURCES): New variable.
11600 (jpeg_mod_CFLAGS): Likewise.
11601 (jpeg_mod_LDFLAGS): Likewise.
11602
11603 * video/readers/jpeg.c : New file.
11604
11605 2008-01-22 Bean <bean123ch@gmail.com>
11606
11607 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
11608 there are no more items.
11609
11610 2008-01-21 Robert Millan <rmh@aybabtu.com>
11611
11612 * kern/mm.c (grub_mm_init_region): Improve debug message.
11613
11614 2008-01-21 Robert Millan <rmh@aybabtu.com>
11615
11616 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
11617 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
11618 address.
11619 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
11620 a C macro.
11621 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
11622 Indicates start of upper memory.
11623 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
11624 (generate_image): Abort when image size is big enough to corrupt
11625 upper memory.
11626
11627 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
11628 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
11629 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
11630 instead of hardcoding 0xA0000.
11631 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
11632 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
11633 instead of hardcoding 0xA0000.
11634
11635 2008-01-21 Robert Millan <rmh@aybabtu.com>
11636
11637 * disk/memdisk.c (memdisk_size): New variable.
11638 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
11639 `memdisk_size'.
11640 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
11641 image to dynamic memory.
11642 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
11643 `memdisk_size'. Free memdisk block.
11644
11645 2008-01-21 Robert Millan <rmh@aybabtu.com>
11646
11647 Fix detection of very small filesystems (like tar).
11648
11649 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
11650 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
11651 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
11652 a problem with this disk).
11653
11654 2008-01-21 Robert Millan <rmh@aybabtu.com>
11655
11656 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
11657 on grub_biosdisk_rw_standard() error.
11658
11659 2008-01-21 Robert Millan <rmh@aybabtu.com>
11660
11661 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
11662 recent changes.
11663 * kern/elf.c: Likewise.
11664 * kern/ieee1275/ieee1275.c: Likewise.
11665 * kern/powerpc/ieee1275/openfw.c: Likewise.
11666 * term/ieee1275/ofconsole.c: Likewise.
11667
11668 2008-01-21 Robert Millan <rmh@aybabtu.com>
11669
11670 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
11671
11672 * include/grub/kernel.h (grub_arch_memdisk_addr)
11673 (grub_arch_memdisk_size): Moved from here ...
11674
11675 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
11676 (grub_arch_memdisk_size): ... to here.
11677
11678 2008-01-21 Robert Millan <rmh@aybabtu.com>
11679
11680 Mostly based on bugfix from Bean.
11681
11682 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
11683 attribute with hook() parameter.
11684 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
11685 declaration.
11686 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
11687 attribute with hook() parameter.
11688 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
11689 declaration.
11690
11691 2008-01-21 Robert Millan <rmh@aybabtu.com>
11692
11693 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
11694 (pkglib_MODULES): Add `memdisk.mod'.
11695 (memdisk_mod_SOURCES): New variable.
11696 (memdisk_mod_CFLAGS): Likewise.
11697 (memdisk_mod_LDFLAGS): Likewise.
11698
11699 * disk/memdisk.c: New file.
11700
11701 * include/grub/disk.h (grub_disk_dev_id): Add
11702 `GRUB_DISK_DEVICE_MEMDISK_ID'.
11703
11704 * include/grub/i386/pc/kernel.h
11705 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
11706 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
11707 (grub_kernel_image_size): New variable declaration.
11708 (grub_total_module_size): Likewise.
11709 (grub_memdisk_image_size): Likewise.
11710
11711 * include/grub/i386/pc/memory.h
11712 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
11713
11714 * include/grub/kernel.h: Include `<grub/symbol.h>'.
11715 (grub_arch_memdisk_addr): New variable declaration.
11716 (grub_arch_memdisk_size): Likewise.
11717
11718 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
11719 (grub_arch_memdisk_size): Likewise.
11720
11721 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
11722 (codestart): Replace hardcoded `0x100000' with
11723 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
11724
11725 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
11726 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
11727 not NULL, append the contents of the file it refers to, at the end of
11728 the compressed kernel image. Initialize `grub_memdisk_image_size'
11729 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
11730 (options): Add "memdisk"|'m' option.
11731 (main): Parse --memdisk|-m option, and pass user-provided path as
11732 parameter to generate_image().
11733
11734 2008-01-20 Robert Millan <rmh@aybabtu.com>
11735
11736 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
11737 grub_dprintf() calls from here ...
11738 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
11739
11740 2008-01-20 Robert Millan <rmh@aybabtu.com>
11741
11742 Fix detection of "real mode" when /options/real-mode? doesn't exist.
11743
11744 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
11745 declaration.
11746 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
11747 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
11748 `GRUB_IEEE1275_FLAG_REAL_MODE'.
11749 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
11750 property).
11751 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
11752 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
11753
11754 2008-01-19 Robert Millan <rmh@aybabtu.com>
11755
11756 Get rid of confusing function (superseded by
11757 `grub_ieee1275_get_integer_property')
11758 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
11759 prototype.
11760 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
11761 function.
11762 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
11763 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
11764 in native endianness from grub_ieee1275_get_integer_property().
11765
11766 2008-01-19 Robert Millan <rmh@aybabtu.com>
11767
11768 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
11769 command after "shut-down", since implementations differ on which
11770 the command for halt is.
11771
11772 2008-01-19 Robert Millan <rmh@aybabtu.com>
11773
11774 * include/grub/i386/linuxbios/console.h: Add header protection.
11775 (grub_keyboard_controller_init): New function prototype.
11776 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
11777 (KEYBOARD_COMMAND_READ): Likewise.
11778 (KEYBOARD_COMMAND_WRITE): Likewise.
11779 (KEYBOARD_SCANCODE_SET1): Likewise.
11780 (grub_keyboard_controller_write): New function.
11781 (grub_keyboard_controller_read): Likewise.
11782 (grub_keyboard_controller_init): Likewise.
11783
11784 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
11785 (grub_console_init): On coreboot/LinuxBIOS, call
11786 grub_keyboard_controller_init().
11787
11788 2008-01-19 Robert Millan <rmh@aybabtu.com>
11789
11790 PowerPC changes provided by Pavel Roskin.
11791
11792 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
11793 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
11794 don't rely on cmain() doing it.
11795 * kern/i386/ieee1275/startup.S (_start): Store %eax in
11796 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
11797
11798 2008-01-16 Robert Millan <rmh@aybabtu.com>
11799
11800 * include/grub/i386/linuxbios/memory.h
11801 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
11802 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
11803 receive `table_header' as argument. Instead, probe for it in the
11804 known memory ranges where it can be present.
11805 (grub_available_iterate): Do not pass a fixed `table_header' address
11806 to grub_linuxbios_table_iterate().
11807
11808 2008-01-15 Robert Millan <rmh@aybabtu.com>
11809
11810 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
11811 * conf/i386-ieee1275.rmk: New file.
11812 * include/grub/i386/ieee1275/console.h: Likewise.
11813 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
11814 * include/grub/i386/ieee1275/kernel.h: Likewise.
11815 * include/grub/i386/ieee1275/time.h: Likewise.
11816 * kern/i386/ieee1275/init.c: Likewise.
11817 * kern/i386/ieee1275/startup.S: Likewise.
11818
11819 2008-01-15 Robert Millan <rmh@aybabtu.com>
11820
11821 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
11822 when pointers are 32-bit (but still do set it to one when they are
11823 64-bit).
11824
11825 2008-01-15 Robert Millan <rmh@aybabtu.com>
11826
11827 * include/grub/ieee1275/ieee1275.h
11828 (grub_ieee1275_get_integer_property): New function prototype.
11829
11830 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
11831 (grub_ieee1275_get_integer_property): New function. Wraps around
11832 grub_ieee1275_get_property() to handle endianness.
11833
11834 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
11835 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
11836 where appropriate.
11837 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
11838 (grub_map): Likewise.
11839 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
11840
11841 2008-01-15 Bean <bean123ch@gmail.com>
11842
11843 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
11844 (grub_script_execute_cmdline): Reset grub_errno.
11845
11846 * normal/main.c (read_config_file): Reset grub_errno.
11847
11848 * normal/parse.y (script_init): New.
11849 (script): Move function and menuentry here.
11850 (delimiter): New.
11851 (command): Add delimiter at the end of command.
11852 (commands): Adjust to match the new command.
11853 (commandblock): Remove grub_script_lexer_record_start.
11854 (menuentry): Add grub_script_lexer_record_start, use the new commands.
11855 (if): Use the new commands.
11856
11857 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
11858
11859 2008-01-15 Robert Millan <rmh@aybabtu.com>
11860
11861 * normal/menu.c (run_menu): Move timeout message from here ...
11862 (print_timeout): ... to here.
11863 (run_menu): Use print_timeout() once during initial draw to print
11864 the whole message, and again in every clock tick to update only
11865 the number of seconds.
11866
11867 2008-01-15 Robert Millan <rmh@aybabtu.com>
11868
11869 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
11870 actual size of `available' from grub_ieee1275_get_property(), and
11871 restrict parsing to that bound.
11872
11873 2008-01-15 Christian Franke <franke@computer.org>
11874
11875 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
11876 (argp_program_version): Remove variable.
11877 (argp_program_bug_address): Likewise.
11878 (options): Convert from struct argp_option to struct option.
11879 (struct arguments): Remove.
11880 (parse_opt): Remove.
11881 (usage): New function.
11882 (main): Replace struct args members by simple variables.
11883 Replace argp_parse() by getopt_long().
11884 Add switch to evaluate options.
11885 Add missing "(...)" around root_dev in prefix string.
11886
11887 2008-01-14 Robert Millan <rmh@aybabtu.com>
11888
11889 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
11890 for grub_ieee1275_exit(), in order to improve portability.
11891
11892 2008-01-14 Robert Millan <rmh@aybabtu.com>
11893
11894 * util/grub.d/10_linux.in (prefix): Define.
11895 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
11896
11897 2008-01-13 Pavel Roskin <proski@gnu.org>
11898
11899 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
11900 grub_errno if no errors have been detected.
11901
11902 2008-01-12 Robert Millan <rmh@aybabtu.com>
11903
11904 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
11905 (grub_util_get_dev_abstraction): New function prototype.
11906
11907 * util/getroot.c: Include `<grub/util/getroot.h>'
11908 (grub_util_get_grub_dev): Move detection of abstraction type to ...
11909 (grub_util_get_dev_abstraction): ... here (new function).
11910
11911 * util/grub-probe.c: Convert PRINT_* to an enum. Add
11912 `PRINT_ABSTRACTION'.
11913 (probe): Probe for abstraction type when requested.
11914 (main): Understand `--target=abstraction'.
11915
11916 * util/i386/efi/grub-install.in: Add abstraction module to core
11917 image when it is found to be necessary.
11918 * util/i386/pc/grub-install.in: Likewise.
11919 * util/powerpc/ieee1275/grub-install.in: Likewise.
11920
11921 * util/update-grub_lib.in (font_path): Return system path without
11922 converting to GRUB path.
11923 * util/update-grub.in: Convert system path returned by font_path()
11924 to a GRUB path. Use `grub-probe -t abstraction' to determine what
11925 abstraction module is needed for loading fonts (if any). Export
11926 that as `GRUB_PRELOAD_MODULES'.
11927 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
11928 insmod commands).
11929
11930 2008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
11931
11932 Remove some unused code from reiserfs.
11933
11934 * fs/reiserfs.c (struct grub_reiserfs_key)
11935 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
11936 (struct grub_reiserfs_node_body): Removed.
11937 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
11938 Likewise.
11939 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
11940 Likewise.
11941 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
11942 Likewise.
11943 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
11944 Likewise.
11945 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
11946 Likewise.
11947 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
11948 Likewise.
11949 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
11950 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
11951 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
11952
11953 2008-01-10 Robert Millan <rmh@aybabtu.com>
11954
11955 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
11956 Determines if a file is garbage left by packaging systems, etc.
11957 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
11958 for processing /etc/grub.d scripts.
11959 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
11960 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
11961 as a condition for processing Linux images.
11962
11963 2008-01-10 Pavel Roskin <proski@gnu.org>
11964
11965 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
11966 to compile reiserfs.c on PowerPC.
11967
11968 2008-01-10 Robert Millan <rmh@aybabtu.com>
11969
11970 * kern/device.c (grub_device_iterate): Do not abort device iteration
11971 when one of the devices cannot be opened.
11972 * kern/disk.c (grub_disk_open): Do not account previous failures of
11973 unrelated functions when grub_errno is checked for.
11974
11975 2008-01-08 Robert Millan <rmh@aybabtu.com>
11976
11977 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
11978 `! grub_linux_is_bzimage', change order of address comparison to make
11979 it more intuitive, and improve "too big zImage" error message.
11980
11981 2008-01-08 Robert Millan <rmh@aybabtu.com>
11982
11983 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
11984 `$(update-grub_DATA)'.
11985 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
11986 targets.
11987
11988 2008-01-07 Robert Millan <rmh@aybabtu.com>
11989
11990 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
11991 which instruction is modified by grub-setup during installation
11992 (since it wasn't obvious by only looking at this file).
11993
11994 2008-01-07 Robert Millan <rmh@aybabtu.com>
11995
11996 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
11997 listing actual TODO items.
11998
11999 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
12000
12001 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
12002 correctly.
12003 (grub_reiserfs_get_key_offset): Likewise.
12004 (grub_reiserfs_set_key_offset): Likewise.
12005 (grub_reiserfs_set_key_type): Likewise.
12006 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
12007
12008 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
12009 better to remove the bitfield version completely.
12010
12011 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
12012
12013 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
12014 allocated from the heap, due to the fshelp implementation.
12015 (grub_reiserfs_dir): Free NODE, due to the same reason.
12016
12017 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
12018
12019 Mostly from Vincent Pelletier:
12020
12021 * fs/reiserfs.c: New file.
12022
12023 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
12024 (reiserfs_mod_SOURCES): New variable.
12025 (reiserfs_mod_CFLAGS): Likewise.
12026 (reiserfs_mod_LDFLAGS): Likewise.
12027
12028 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
12029 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
12030 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
12031 normal/color.c.
12032
12033 2008-01-06 Robert Millan <rmh@aybabtu.com>
12034
12035 * normal/color.c: Remove `<grub/env.h>'.
12036
12037 2008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
12038
12039 * include/grub/normal.h: Include <grub/env.h>.
12040
12041 2008-01-05 Robert Millan <rmh@aybabtu.com>
12042
12043 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
12044 usage example with `(hd0,1)'.
12045 Reported by Samuel Thibault.
12046
12047 2008-01-05 Robert Millan <rmh@aybabtu.com>
12048
12049 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
12050 (grub_linux_boot_zimage): Rename to ...
12051 (grub_linux_boot): ... this.
12052 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
12053 (grub_linux_boot_zimage): Conditionalize zImage copy.
12054
12055 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
12056 (grub_linux_boot_bzimage): Remove prototype.
12057 (grub_linux_boot_zimage): Rename to ...
12058 (grub_linux_boot): ... this.
12059
12060 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
12061 (grub_linux_boot): Remove function.
12062
12063 2008-01-05 Robert Millan <rmh@aybabtu.com>
12064
12065 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
12066 (grub_env_write_color_highlight): Likewise.
12067 (grub_wait_after_message): Likewise.
12068
12069 * normal/color.c: New file.
12070
12071 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
12072 (normal_mod_DEPENDENCIES): Likewise.
12073
12074 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
12075 (normal_mod_DEPENDENCIES): Likewise.
12076
12077 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
12078 (normal_mod_DEPENDENCIES): Likewise.
12079
12080 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
12081 (normal_mod_DEPENDENCIES): Likewise.
12082
12083 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
12084 for waiting after a message is printed.
12085 * normal/main.c (read_config_file): Likewise.
12086 (grub_normal_init): Register grub_env_write_color_normal() and
12087 grub_env_write_color_highlight() hooks. Mark `color_normal' and
12088 `color_highlight' variables as global.
12089
12090 * normal/menu.c (grub_wait_after_message): New function.
12091 (grub_color_menu_normal): New variable. Replaces ...
12092 (GRUB_COLOR_MENU_NORMAL): ... this macro.
12093 (grub_color_menu_highlight): New variable. Replaces ...
12094 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
12095 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
12096 `GRUB_TERM_COLOR_STANDARD'.
12097 (print_message): Use `grub_setcolorstate' to reload colors. Rename
12098 `normal_code' and `highlight_code' to `old_color_normal' and
12099 `old_color_highlight', respectively.
12100 (grub_menu_init_page): Update colors when drawing the menu, based on
12101 `menu_color_normal' and `menu_color_highlight' variables.
12102 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
12103 a message is printed.
12104
12105 2008-01-05 Robert Millan <rmh@aybabtu.com>
12106
12107 * kern/env.c (grub_env_context_open): Propagate hooks for global
12108 variables to new context.
12109
12110 * kern/main.c (grub_set_root_dev): Export `root' variable.
12111
12112 2008-01-05 Robert Millan <rmh@aybabtu.com>
12113
12114 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
12115 discs unconditionally, since udev and others have options to provide
12116 them.
12117
12118 2008-01-05 Robert Millan <rmh@aybabtu.com>
12119
12120 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
12121
12122 2008-01-04 Christian Franke <franke@computer.org>
12123
12124 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
12125 of eisa_mmap.
12126
12127 2008-01-03 Pavel Roskin <proski@gnu.org>
12128
12129 * kern/i386/linuxbios/init.c: Put "void" to all function
12130 declarations with no arguments.
12131 * kern/powerpc/ieee1275/init.c: Likewise.
12132 * term/i386/pc/at_keyboard.c: Likewise.
12133 * term/i386/pc/vga_text.c: Likewise.
12134 * util/grub-mkdevicemap.c: Likewise.
12135
12136 2008-01-02 Robert Millan <rmh@aybabtu.com>
12137
12138 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
12139 message when loaded image is out of bounds.
12140 (grub_multiboot_load_elf64): Likewise.
12141
12142 2008-01-02 Pavel Roskin <proski@gnu.org>
12143
12144 * util/grub.d/10_linux.in: Try version without ".old" when
12145 looking for initrd. It's better to use initrd from the newer
12146 kernel of the same version than no initrd at all.
12147
12148 2008-01-01 Robert Millan <rmh@aybabtu.com>
12149
12150 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
12151
12152 2008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
12153
12154 * include/grub/video.h: Added grub_video_unmap_color and
12155 grub_video_get_active_render_target.
12156 (grub_video_adapter): Added unmap_color and get_active_render_target.
12157
12158 * video/video.c: Added grub_video_unmap_color and
12159 grub_video_get_active_render_target.
12160 (grub_video_get_info): Changed method to accept NULL pointer as an
12161 argument to allow detection of active video adapter.
12162
12163 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
12164 grub_video_vbe_unmap_color_int.
12165 Added grub_video_vbe_unmap_color and
12166 grub_video_vbe_get_active_render_target.
12167 (grub_video_vbe_adapter): Added unmap_color and
12168 get_active_render_target.
12169
12170 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
12171 with grub_video_vbe_unmap_color_int.
12172
12173 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
12174 (DEFAULT_NORMAL_COLOR): Likewise.
12175 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
12176 (DEFAULT_FG_COLOR): Removed.
12177 (DEFAULT_BG_COLOR): Likewise.
12178 (DEFAULT_CURSOR_COLOR): Changed value.
12179 (grub_virtual_screen): Added standard_color_setting,
12180 normal_color_setting, highlight_color_setting and term_color.
12181 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
12182 (bitmap_width): Added.
12183 (bitmap_height): Likewise.
12184 (bitmap): Likewise.
12185 (set_term_color): Likewise.
12186 (grub_virtual_screen_setup): Changed to use new terminal coloring
12187 settings.
12188 (grub_gfxterm_init): Added init for bitmap.
12189 (grub_gfxterm_fini): Added destroy for bitmap.
12190 (redraw_screen_rect): Updated to use background bitmap and new
12191 terminal coloring.
12192 (scroll_up): Added optimization for case when there is no bitmap.
12193 (grub_gfxterm_cls): Fixed to use correct background color.
12194 (grub_virtual_screen_setcolorstate): Changed to use new terminal
12195 coloring.
12196 (grub_virtual_screen_setcolor): Likewise.
12197 (grub_virtual_screen_getcolor): Added.
12198 (grub_gfxterm_background_image_cmd): Likewise.
12199 (grub_video_term): Added setcolor and getcolor.
12200 (MOD_INIT): Added registration of background_image command.
12201 (MOD_TERM): Added unregistration for background_image command.
12202
12203 2007-12-30 Pavel Roskin <proski@gnu.org>
12204
12205 * loader/multiboot_loader.c: Fix multiboot command
12206 unregistration. Fix all typos in the word "multiboot".
12207
12208 2007-12-29 Pavel Roskin <proski@gnu.org>
12209
12210 * util/grub.d/10_linux.in: Refactor search for initrd. Add
12211 support for initrd names used in Fedora.
12212
12213 2007-12-26 Bean <bean123ch@gmail.com>
12214
12215 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
12216 (cpio_mod_SOURCES): New variable.
12217 (cpio_mod_CFLAGS): Likewise.
12218 (cpio_mod_LDFLAGS): Likewise.
12219
12220 * fs/cpio.c: New file.
12221
12222 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
12223
12224 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
12225
12226 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
12227
12228 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
12229
12230 2007-12-25 Robert Millan <rmh@aybabtu.com>
12231
12232 * include/grub/term.h (struct grub_term): Add `getcolor' function.
12233 (grub_getcolor): New function.
12234
12235 * kern/term.c (grub_getcolor): New function.
12236 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
12237 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
12238 (print_entry): Set normal and highlight colors to
12239 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
12240 respectively, before printing and restore them to old
12241 values afterwards.
12242 (grub_menu_init_page): Likewise. Fill an additional colored space
12243 that would otherwise be left blank.
12244
12245 * term/efi/console.c (grub_console_getcolor): New function.
12246 (struct grub_console_term.getcolor): New variable.
12247 * term/i386/pc/console.c (grub_console_getcolor): New function.
12248 (struct grub_console_term.getcolor): New variable.
12249 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
12250 (struct grub_console_term.getcolor): New variable.
12251
12252 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
12253 (struct grub_console_term.setcolor): Remove variable.
12254 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
12255 (struct grub_console_term.setcolor): Remove variable.
12256 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
12257 (struct grub_console_term.setcolor): Remove variable.
12258 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
12259 (struct grub_console_term.setcolor): Remove variable.
12260
12261 2007-12-25 Robert Millan <rmh@aybabtu.com>
12262
12263 * configure.ac: Search for possible unifont.hex locations, and
12264 define UNIFONT_HEX if found.
12265
12266 * Makefile.in (UNIFONT_HEX): Define variable.
12267 (DATA): Rename to ...
12268 (PKGLIB): ... this. Update all users.
12269 (PKGDATA): New variable.
12270 (pkgdata_IMAGES): Rename to ...
12271 (pkglib_IMAGES): ... this. Update all users.
12272 (pkgdata_MODULES): Rename to ...
12273 (pkglib_MODULES): ... this. Update all users.
12274 (pkgdata_PROGRAMS): Rename to ...
12275 (pkglib_PROGRAMS): ... this. Update all users.
12276 (pkgdata_DATA): Rename to ...
12277 (pkglib_DATA): ... this. Update all users.
12278 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
12279 (unicode.pff, ascii.pff): New rules.
12280 (all-local): Add `$(PKGDATA)' dependency.
12281 (install-local): Process `$(PKGDATA)'.
12282
12283 * util/update-grub_lib.in (font_path): Search for *.pff files in
12284 a few more locations, including `${pkgdata}'.
12285
12286 2007-12-23 Robert Millan <rmh@aybabtu.com>
12287
12288 Patch from Bean <bean123ch@gmail.com>:
12289 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
12290 `size'.
12291
12292 2007-12-21 Bean <bean123ch@gmail.com>
12293
12294 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
12295 (ntfscomp_mod_SOURCES): New variable.
12296 (ntfscomp_mod_CFLAGS): Likewise.
12297 (ntfscomp_mod_LDFLAGS): Likewise.
12298
12299 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
12300 (grub_probe_SOURCES): Likewise.
12301 (grub_emu_SOURCES): Likewise.
12302
12303 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
12304 (grub_emu_SOURCES): Likewise.
12305
12306 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
12307 (grub_emu_SOURCES): Likewise.
12308
12309 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
12310 (grub_emu_SOURCES): Likewise.
12311
12312 * fs/ntfs.c (grub_ntfscomp_func): New variable.
12313 (read_run_list): Renamed to grub_ntfs_read_run_list.
12314 (decomp_nextvcn): Moved to ntfscomp.c.
12315 (decomp_getch): Likewise.
12316 (decomp_get16): Likewise.
12317 (decomp_block): Likewise.
12318 (read_block): Likewise.
12319 (read_data): Partially moved to ntfscomp.c.
12320 (fixup): Change unsigned to grub_uint16_t.
12321 (read_mft): Change unsigned long to grub_uint32_t.
12322 (read_attr): Likewise.
12323 (read_data): Likewise.
12324 (read_run_data): Likewise.
12325 (read_run_list): Likewise.
12326 (read_mft): Likewise.
12327
12328 * fs/ntfscomp.c: New file.
12329
12330 * include/grub/ntfs.h: New file.
12331
12332 2007-12-16 Robert Millan <rmh@aybabtu.com>
12333
12334 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
12335 IDE disk check, since Linux is known to support 20 IDE disks.
12336 Reported by Colin Watson.
12337
12338 2007-12-15 Bean <bean123ch@gmail.com>
12339
12340 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
12341 (lnxboot_img_SOURCES): New variable.
12342 (lnxboot_img_ASFLAGS): Likewise.
12343 (lnxboot_img_LDFLAGS): Likewise.
12344
12345 * boot/i386/pc/lnxboot.S: New file.
12346
12347 2007-11-24 Pavel Roskin <proski@gnu.org>
12348
12349 * configure.ac: Test if '--build-id=none' is supported by the
12350 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
12351 objcopy to generate incorrect binary files (binutils
12352 2.17.50.0.18-1 as shipped by Fedora 8).
12353 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
12354 linking, so that build ID doesn't break the test.
12355
12356 2007-11-24 Pavel Roskin <proski@gnu.org>
12357
12358 * include/grub/i386/time.h: use "void" in the argument list
12359 of grub_cpu_idle().
12360 * include/grub/powerpc/time.h: Likewise.
12361 * include/grub/sparc64/time.h: Likewise.
12362
12363 2007-11-18 Christian Franke <franke@computer.org>
12364
12365 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
12366 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
12367 This fixes the problem that function keys did not work in grub-emu.
12368
12369 2007-11-18 Christian Franke <franke@computer.org>
12370
12371 * disk/host.c (grub_host_open): Remove attribute unused from
12372 name parameter. Add check for "host". This fixes the problem
12373 that grub-emu does not find partitions.
12374
12375 2007-11-18 Christian Franke <franke@computer.org>
12376
12377 * util/hostfs.c (is_dir): New function.
12378 (grub_hostfs_dir): Handle missing dirent.d_type case.
12379 (grub_hostfs_read): Add missing fseek().
12380 (grub_hostfs_label): Clear label pointer. This fixes a crash
12381 of grub-emu on "ls (host)".
12382
12383 2007-11-18 Christian Franke <franke@computer.org>
12384
12385 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
12386 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
12387 to 64 bit boundary by default.
12388
12389 2007-11-18 Bean <bean123ch@gmail.com>
12390
12391 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
12392 (hexdump_mod_SOURCES): New variable.
12393 (hexdump_mod_CFLAGS): Likewise.
12394 (hexdump_mod_LDFLAGS): Likewise.
12395
12396 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
12397
12398 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
12399
12400 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
12401
12402 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
12403
12404 * include/grub/hexdump.h: New file.
12405
12406 * commands/hexdump.c: New file.
12407
12408 2007-11-10 Robert Millan <rmh@aybabtu.com>
12409
12410 * commands/i386/pc/play.c (beep_off): Switch order of arguments
12411 in grub_outb() calls.
12412 (beep_on): Likewise.
12413
12414 2007-11-10 Christian Franke <franke@computer.org>
12415
12416 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
12417 (grub_menu_run): Likewise.
12418
12419 2007-11-10 Robert Millan <rmh@aybabtu.com>
12420
12421 * include/grub/i386/efi/machine.h: New file.
12422 * include/grub/i386/linuxbios/machine.h: Likewise.
12423 * include/grub/i386/pc/machine.h: Likewise.
12424 * include/grub/powerpc/ieee1275/machine.h: Likewise.
12425 * include/grub/sparc64/ieee1275/machine.h: Likewise.
12426
12427 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
12428 (serial_hw_io_addr): New variable.
12429 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
12430 instead of `(unsigned short *) 0x400'.
12431
12432 2007-11-10 Bean <bean123ch@gmail.com>
12433
12434 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
12435
12436 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
12437
12438 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
12439 (vga_mod_SOURCES): Added.
12440 (vga_mod_CFLAGS): Likewise.
12441 (vga_mod_LDFLAGS): Likewise.
12442
12443 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
12444 grub_outb() calls.
12445 (set_map_mask): Likewise.
12446 (set_read_map): Likewise.
12447 (set_read_address): Likewise.
12448 (vga_font): Removed variable.
12449 (get_vga_glyph): Removed function.
12450 (invalidate_char): Likewise.
12451 (write_char): Changed to use grub_font_get_glyph() for font
12452 information.
12453 (grub_vga_putchar): Likewise.
12454 (grub_vga_getcharwidth): Likewise.
12455
12456 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
12457
12458 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
12459 flags.
12460 (pxeboot_img_LDFLAGS): Likewise.
12461 (diskboot_img_LDFLAGS): Likewise.
12462 (kernel_img_LDFLAGS): Likewise.
12463
12464 2007-11-06 Robert Millan <rmh@aybabtu.com>
12465
12466 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
12467 in grub_outb() calls.
12468 (serial_hw_init): Likewise.
12469
12470 2007-11-05 Robert Millan <rmh@aybabtu.com>
12471
12472 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
12473 spaces. Skip non-regular files.
12474
12475 2007-11-05 Robert Millan <rmh@aybabtu.com>
12476
12477 * kern/disk.c (grub_disk_firmware_fini)
12478 (grub_disk_firmware_is_tainted): New variables.
12479
12480 * include/grub/disk.h (grub_disk_firmware_fini)
12481 (grub_disk_firmware_is_tainted): Likewise.
12482
12483 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
12484 (grub_disk_biosdisk_fini): ... to here.
12485 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
12486 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
12487 is set. Register grub_disk_biosdisk_fini() in
12488 `grub_disk_firmware_fini'.
12489
12490 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
12491 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
12492 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
12493 to finish existing firmware disk interface.
12494
12495 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
12496 (ata_mod_SOURCES): New variable.
12497 (ata_mod_CFLAGS): Likewise.
12498 (ata_mod_LDFLAGS): Likewise.
12499
12500 2007-11-05 Robert Millan <rmh@aybabtu.com>
12501
12502 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
12503 (grub_ata_wait): Reimplement using grub_millisleep().
12504
12505 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
12506 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
12507
12508 2007-11-03 Marco Gerards <marco@gnu.org>
12509
12510 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
12511 (CRTC_ADDR_PORT): New macro.
12512 (CRTC_DATA_PORT): Likewise.
12513 (CRTC_CURSOR): Likewise.
12514 (CRTC_CURSOR_ADDR_HIGH): Likewise.
12515 (CRTC_CURSOR_ADDR_LOW): Likewise.
12516 (update_cursor): New function.
12517 (grub_console_real_putchar): Call `update_cursor'.
12518 (grub_console_gotoxy): Likewise.
12519 (grub_console_cls): Set the default color when clearing the
12520 screen.
12521 (grub_console_setcursor): Implemented.
12522
12523 2007-11-03 Marco Gerards <marco@gnu.org>
12524
12525 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
12526 become activate.
12527 (grub_ata_pio_write): Likewise.
12528
12529 (grub_atapi_identify): Wait after issuing an ATA command.
12530 (grub_atapi_packet): Likewise.
12531 (grub_ata_identify): Likewise.
12532 (grub_ata_readwrite): Likewise.
12533
12534 2007-11-03 Marco Gerards <marco@gnu.org>
12535
12536 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
12537 (grub_ata_pio_write): Likewise.
12538 (grub_ata_readwrite): Use `grub_error', instead of
12539 returning `grub_errno'.
12540
12541 2007-11-03 Marco Gerards <marco@gnu.org>
12542
12543 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
12544 grub_ata_pio_write once for every single sector, instead of for
12545 multiple sectors.
12546
12547 2007-10-31 Robert Millan <rmh@aybabtu.com>
12548
12549 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
12550
12551 * conf/i386-linuxbios.rmk: New file.
12552
12553 * kern/i386/pc/hardware.c: Likewise.
12554 * term/i386/pc/at_keyboard.c: Likewise.
12555 * term/i386/pc/vga_text.c: Likewise.
12556
12557 * include/grub/i386/linuxbios/boot.h: Likewise.
12558 * include/grub/i386/linuxbios/console.h: Likewise.
12559 * include/grub/i386/linuxbios/init.h: Likewise.
12560 * include/grub/i386/linuxbios/kernel.h: Likewise.
12561 * include/grub/i386/linuxbios/loader.h: Likewise.
12562 * include/grub/i386/linuxbios/memory.h: Likewise.
12563 * include/grub/i386/linuxbios/serial.h: Likewise.
12564 * include/grub/i386/linuxbios/time.h: Likewise.
12565
12566 * kern/i386/linuxbios/init.c: Likewise.
12567 * kern/i386/linuxbios/startup.S: Likewise.
12568 * kern/i386/linuxbios/table.c: Likewise.
12569
12570 2007-10-31 Marco Gerards <marco@gnu.org>
12571
12572 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
12573 (ata_mod_SOURCES): New variable.
12574 (ata_mod_CFLAGS): Likewise.
12575 (ata_mod_LDFLAGS): Likewise.
12576
12577 * disk/ata.c: New file.
12578
12579 * include/grub/disk.h (grub_disk_dev_id): Add
12580 `GRUB_DISK_DEV_ATA_ID'.
12581
12582 2007-10-31 Robert Millan <rmh@aybabtu.com>
12583
12584 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
12585 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
12586
12587 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
12588 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
12589
12590 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
12591 `<grub/types.h>'.
12592
12593 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
12594
12595 2007-10-27 Robert Millan <rmh@aybabtu.com>
12596
12597 * include/grub/types.h (ULONG_MAX): Define macro.
12598
12599 2007-10-22 Robert Millan <rmh@aybabtu.com>
12600
12601 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
12602 `"../realmode.S"'.
12603 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
12604
12605 2007-10-22 Robert Millan <rmh@aybabtu.com>
12606
12607 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
12608 (pkgdata_MODULES): Add `biosdisk.mod'.
12609 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
12610 variables.
12611
12612 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
12613 (grub_biosdisk_init): Replace with ...
12614 (GRUB_MOD_INIT(biosdisk)): ... this.
12615 (grub_biosdisk_fini): Replace with ...
12616 (GRUB_MOD_FINI(biosdisk)): ... this.
12617
12618 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
12619 (grub_machine_init): Remove call to grub_biosdisk_init().
12620 (grub_machine_fini): Remove call to grub_machine_fini().
12621
12622 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
12623
12624 2007-10-22 Robert Millan <rmh@aybabtu.com>
12625
12626 * include/grub/time.h: New file.
12627 * include/grub/i386/time.h: Likewise.
12628 * include/grub/powerpc/time.h: Likewise.
12629 * include/grub/sparc64/time.h: Likewise.
12630
12631 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
12632 instances to ...
12633 (KERNEL_MACHINE_TIME_HEADER): ... this.
12634 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
12635 instances to ...
12636 (KERNEL_MACHINE_TIME_HEADER): ... this.
12637 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
12638 instances to ...
12639 (KERNEL_MACHINE_TIME_HEADER): ... this.
12640
12641 * kern/i386/efi/init.c: Include `<grub/time.h>'.
12642 (grub_millisleep): New function.
12643 * kern/i386/pc/init.c: Include `<grub/time.h>'.
12644 (grub_millisleep): New function.
12645 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
12646 Remove `grub/machine/time.h' include.
12647 (grub_millisleep): New function.
12648 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
12649 Remove `grub/machine/time.h' include.
12650 (grub_millisleep): New function.
12651
12652 * include/grub/misc.h (grub_div_roundup): New function.
12653
12654 * kern/misc.c: Include `<grub/time.h>'.
12655 (grub_millisleep_generic): New function.
12656
12657 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
12658 Add `time.h'.
12659 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
12660 Add `time.h'.
12661 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
12662 `machine/time.h'. Add `time.h'.
12663 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
12664
12665 2007-10-21 Robert Millan <rmh@aybabtu.com>
12666
12667 * include/grub/misc.h (grub_max): New function.
12668
12669 2007-10-21 Robert Millan <rmh@aybabtu.com>
12670
12671 * util/misc.c (grub_util_info): Call fflush() before returning.
12672
12673 2007-10-20 Robert Millan <rmh@aybabtu.com>
12674
12675 * genmk.rb (Image): Copy `extra_flags' from here ...
12676 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
12677
12678 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
12679 to `argc' and `args' arguments.
12680
12681 2007-10-17 Robert Millan <rmh@aybabtu.com>
12682
12683 * kern/i386/loader.S: New file.
12684
12685 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
12686 * kern/i386/loader.S (grub_linux_prot_size)... to here.
12687 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
12688 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
12689 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
12690 * kern/i386/loader.S (grub_linux_real_addr)... to here.
12691 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
12692 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
12693 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
12694 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
12695 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
12696 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
12697 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
12698 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
12699
12700 * kern/i386/realmode.S: New file.
12701
12702 * kern/i386/pc/startup.S (protstack): Moved from here ...
12703 * kern/i386/realmode.S (protstack)... to here.
12704 * kern/i386/pc/startup.S (gdt): Moved from here ...
12705 * kern/i386/realmode.S (gdt)... to here.
12706 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
12707 * kern/i386/realmode.S (prot_to_real)... to here.
12708
12709 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
12710 `kern/i386/realmode.S'.
12711
12712 2007-10-17 Robert Millan <rmh@aybabtu.com>
12713
12714 * include/grub/i386/loader.h: New file.
12715
12716 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
12717 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
12718 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
12719 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
12720 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
12721 * include/grub/i386/loader.h (grub_linux_prot_size)
12722 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
12723 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
12724 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
12725 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
12726
12727 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
12728
12729 2007-10-15 Robert Millan <rmh@aybabtu.com>
12730
12731 * normal/misc.c (grub_normal_print_device_info): Do not probe for
12732 filesystem when dev->disk is unset.
12733 Do probe for filesystem even when dev->disk->has_partitions is set.
12734 In case a filesystem is found, always report it.
12735 In case it isn't, if dev->disk->has_partitions is set, report that
12736 a partition table was found instead of reporting that no filesystem
12737 could be identified.
12738
12739 2007-10-12 Robert Millan <rmh@aybabtu.com>
12740
12741 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
12742 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
12743
12744 * include/grub/types.h (grub_host_to_target16): New macro.
12745 (grub_host_to_target32): Likewise.
12746 (grub_host_to_target64): Likewise.
12747 (grub_target_to_host16): Likewise.
12748 (grub_target_to_host32): Likewise.
12749 (grub_target_to_host64): Likewise.
12750
12751 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
12752 Renamed from to ...
12753 (GRUB_MOD_ALIGN): ...this. Update all users.
12754
12755 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
12756 grub_host_to_target32.
12757 Replace grub_be_to_cpu32 with grub_target_to_host32.
12758 (load_modules): Likewise.
12759 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
12760 Replace grub_be_to_cpu32 with grub_target_to_host32.
12761 Replace grub_cpu_to_be16 with grub_host_to_target16.
12762 Replace grub_cpu_to_be32 grub_host_to_target32.
12763
12764 2007-10-12 Robert Millan <rmh@aybabtu.com>
12765
12766 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
12767 * util/elf/grub-mkimage.c: ... here.
12768
12769 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
12770 `util/powerpc/ieee1275/grub-mkimage.c'.
12771
12772 2007-10-07 Robert Millan <rmh@aybabtu.com>
12773
12774 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
12775 and make it easier to figure out.
12776 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
12777 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
12778 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
12779 leave us with less than HEAP_MIN_SIZE total heap.
12780 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
12781
12782 2007-10-03 Robert Millan <rmh@aybabtu.com>
12783
12784 * include/grub/i386/io.h: New file.
12785 * commands/i386/pc/play.c (inb): Removed.
12786 (outb): Removed.
12787 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
12788 with grub_outb().
12789 * term/i386/pc/serial.c (inb): Removed.
12790 (outb): Removed.
12791 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
12792 with grub_outb().
12793 * term/i386/pc/vga.c (inb): Removed.
12794 (outb): Removed.
12795 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
12796 with grub_outb().
12797
12798 2007-10-02 Robert Millan <rmh@aybabtu.com>
12799
12800 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
12801 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
12802 Reported by Marcin Kurek.
12803
12804 2007-09-07 Robert Millan <rmh@aybabtu.com>
12805
12806 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
12807 SmartFirmware version updates (as released by Sven Luther), and avoid
12808 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
12809 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
12810 known broken.
12811
12812 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
12813
12814 From Hitoshi Ozeki:
12815 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
12816 when merging two regions.
12817
12818 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
12819
12820 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
12821 * normal/completion.c (grub_normal_do_completion): Likewise.
12822 Reported by Hitoshi Ozeki.
12823
12824 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
12825
12826 Do not use devices at boot in chainloading.
12827
12828 * loader/i386/pc/chainloader.c (boot_drive): New variable.
12829 (boot_part_addr): Likewise.
12830 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
12831 with BOOT_DRIVE and BOOT_PART_ADDR.
12832 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
12833 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
12834
12835 2007-08-29 Robert Millan <rmh@aybabtu.com>
12836
12837 Patch from Simon Peter <dn.tlp@gmx.net>:
12838 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
12839 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
12840 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
12841 util/i386/pc/grub-setup.c_DEPENDENCIES.
12842 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
12843 util/grub-probe.c_DEPENDENCIES.
12844 * conf/powerpc-ieee1275.rmk: Likewise.
12845
12846 2007-08-28 Robert Millan <rmh@aybabtu.com>
12847
12848 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
12849 to tell grub-mkdevicemap how to name devices.
12850 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
12851 feature).
12852
12853 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
12854 util/i386/get_disk_name.c.
12855 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
12856 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
12857 util/ieee1275/get_disk_name.c.
12858
12859 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
12860
12861 * DISTLIST: Add util/i386/get_disk_name.c and
12862 util/ieee1275/get_disk_name.c.
12863
12864 * util/grub-mkdevicemap.c: Replace device naming logic with
12865 grub_util_get_disk_name() calls.
12866
12867 2007-08-20 Robert Millan <rmh@aybabtu.com>
12868
12869 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
12870 (so that it works for both plural and singular quantities).
12871
12872 2007-08-05 Robert Millan <rmh@aybabtu.com>
12873
12874 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
12875 so that [xz] isn't taken into account when determining order.
12876
12877 2007-08-02 Marco Gerards <marco@gnu.org>
12878
12879 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
12880 `include/multiboot2.h', `include/grub/elfload.h',
12881 `include/multiboot.h', `include/grub/multiboot.h',
12882 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
12883 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
12884 `kern/elf.c', `loader/multiboot_loader.c',
12885 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
12886 `loader/i386/pc/multiboot2.c',
12887 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
12888 `util/i386/pc/grub-mkrescue.in'. Remove
12889 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
12890 `include/grub/i386/pc/util/biosdisk.h' and
12891 `include/grub/powerpc/ieee1275/multiboot.h'.
12892
12893 2007-08-02 Bean <bean123ch@gmail.com>
12894
12895 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
12896 (ntfs_mod_SOURCES): New variable.
12897 (ntfs_mod_CFLAGS): Likewise.
12898 (ntfs_mod_LDFLAGS): Likewise.
12899
12900 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
12901 (grub_probe_SOURCES): Likewise.
12902 (grub_emu_SOURCES): Likewise.
12903
12904 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
12905 (grub_emu_SOURCES): Likewise.
12906
12907 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
12908 (grub_emu_SOURCES): Likewise.
12909
12910 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
12911
12912 * fs/ntfs.c: New file.
12913
12914 2007-08-02 Bean <bean123ch@gmail.com>
12915
12916 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
12917
12918 * file.h (grub_file): Likewise.
12919
12920 * fshelp.h (grub_fshelp_read_file): Likewise.
12921
12922 * util/i386/pc/grub-setup.c (setup): Likewise.
12923 (save_first_sector): Likewise.
12924 (save_blocklists): Likewise.
12925
12926 * fs/affs.c (grub_affs_read_file): Likewise.
12927
12928 * fs/ext2.c (grub_ext2_read_file): Likewise.
12929
12930 * fs/fat.c (grub_fat_read_data): Likewise.
12931
12932 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
12933
12934 * fs/hfs.c (grub_hfs_read_file): Likewise.
12935
12936 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
12937
12938 * fs/jfs.c (grub_jfs_read_file): Likewise.
12939
12940 * fs/minix.c (grub_minix_read_file): Likewise.
12941
12942 * fs/sfs.c (grub_sfs_read_file): Likewise.
12943
12944 * fs/ufs.c (grub_ufs_read_file): Likewise.
12945
12946 * fs/xfs.c (grub_xfs_read_file): Likewise.
12947
12948 * command/blocklist.c (read_blocklist): Likewise.
12949 (print_blocklist): Likewise.
12950
12951 2007-08-02 Marco Gerards <marco@gnu.org>
12952
12953 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
12954 `util/hostfs.c'.
12955
12956 * disk/host.c: New file.
12957
12958 * util/hostfs.c: Likewise.
12959
12960 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
12961 return `GRUB_ERR_BAD_FS'.
12962 * fs/sfs.c (grub_sfs_mount): Likewise.
12963 * fs/xfs.c (grub_xfs_mount): Likewise.
12964
12965 * include/grub/disk.h (enum grub_disk_dev_id): Add
12966 `GRUB_DISK_DEVICE_HOST_ID'.
12967
12968 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
12969
12970 2007-07-24 Jerone Young <jerone@gmail.com>
12971
12972 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
12973 modules for compilation.
12974 * conf/powerpc-ieee1275.rmk: Likewise.
12975
12976 * include/multiboot.h: Move multiboot definitions to one file. Rename
12977 many definitions to not get grub specific.
12978 * include/multiboot2.h: Create header with multiboot 2 definitions.
12979 * include/grub/multiboot.h: Header for grub specific function
12980 prototypes and definitions.
12981 * include/grub/multiboot2.h: Likewise.
12982 * include/grub/multiboot_loader.h: Likewise.
12983 * include/grub/i386/pc/multiboot.h: Removed.
12984 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
12985
12986 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
12987 and 2 to allow for one multiboot and module commands.
12988 * loader/multiboot2.c: Add multiboot2 functionality.
12989 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
12990 and definition names.
12991 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
12992 2 functions.
12993 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
12994 ieee1275 specific multiboot2 code.
12995
12996 * kern/i386/pc/startup.S: Change headers and definition names for
12997 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
12998
12999 2007-07-22 Robert Millan <rmh@aybabtu.com>
13000
13001 * geninitheader.sh: Process file specified in first parameter rather
13002 than hardcoding grub_modules_init.lst.
13003 * geninit.sh: Likewise. Also, construct header name dynamically rather
13004 than hardcoding grub_modules_init.h.
13005
13006 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
13007 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
13008 grub_probe_init.[ch] and grub_setup_init.[ch].
13009
13010 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
13011 grub_modules_init.h with grub_emu_init.h.
13012 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
13013 grub_probe_init.[ch] files.
13014 * conf/i386-efi.rmk: Likewise.
13015 * conf/i386-pc.rmk: Likewise.
13016 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
13017 grub_setup_init.[ch] files.
13018
13019 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
13020 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
13021 to initialize modules rather than a list of hardcoded functions.
13022 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
13023 grub_init_all() to initialize modules rather than a list of hardcoded
13024 functions.
13025
13026 2007-07-22 Robert Millan <rmh@aybabtu.com>
13027
13028 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
13029 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
13030
13031 2007-07-22 Robert Millan <rmh@aybabtu.com>
13032
13033 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
13034 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
13035 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
13036 flag when running on SmartFirmware.
13037 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
13038 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
13039 was set.
13040
13041 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
13042 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
13043 rather than decreasing it.
13044
13045 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
13046 there's not enough space to do it, fail in the same way as when it
13047 can't be done because there are no partitions.
13048
13049 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
13050 when nvsetenv failed.
13051
13052 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
13053
13054 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
13055 because this rule is automatically generated.
13056 (grub-mkrescue): Removed for the same reason as above.
13057
13058 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
13059
13060 Migrate to GNU General Public License Version 3.
13061
13062 * COPYING: Replaced with the plain text version of GPLv3.
13063
13064 * config.guess: Updated from gnulib.
13065 * config.sub: Likewise.
13066
13067 * geninit.sh: Output a GPLv3 copyright notice.
13068 * geninitheader.sh: Likewise.
13069 * genmodsrc.sh: Likewise.
13070 * gensymlist.sh.in: Likewise.
13071
13072 * boot/i386/pc/boot.S: Upgraded to GPLv3.
13073 * boot/i386/pc/diskboot.S: Likewise.
13074 * boot/i386/pc/pxeboot.S: Likewise.
13075 * commands/blocklist.c: Likewise.
13076 * commands/boot.c: Likewise.
13077 * commands/cat.c: Likewise.
13078 * commands/cmp.c: Likewise.
13079 * commands/configfile.c: Likewise.
13080 * commands/echo.c: Likewise.
13081 * commands/help.c: Likewise.
13082 * commands/ls.c: Likewise.
13083 * commands/search.c: Likewise.
13084 * commands/terminal.c: Likewise.
13085 * commands/test.c: Likewise.
13086 * commands/videotest.c: Likewise.
13087 * commands/i386/cpuid.c: Likewise.
13088 * commands/i386/pc/halt.c: Likewise.
13089 * commands/i386/pc/play.c: Likewise.
13090 * commands/i386/pc/reboot.c: Likewise.
13091 * commands/i386/pc/vbeinfo.c: Likewise.
13092 * commands/i386/pc/vbetest.c: Likewise.
13093 * commands/ieee1275/halt.c: Likewise.
13094 * commands/ieee1275/reboot.c: Likewise.
13095 * commands/ieee1275/suspend.c: Likewise.
13096 * disk/loopback.c: Likewise.
13097 * disk/lvm.c: Likewise.
13098 * disk/raid.c: Likewise.
13099 * disk/efi/efidisk.c: Likewise.
13100 * disk/i386/pc/biosdisk.c: Likewise.
13101 * disk/ieee1275/ofdisk.c: Likewise.
13102 * font/manager.c: Likewise.
13103 * fs/affs.c: Likewise.
13104 * fs/ext2.c: Likewise.
13105 * fs/fat.c: Likewise.
13106 * fs/fshelp.c: Likewise.
13107 * fs/hfs.c: Likewise.
13108 * fs/hfsplus.c: Likewise.
13109 * fs/iso9660.c: Likewise.
13110 * fs/jfs.c: Likewise.
13111 * fs/minix.c: Likewise.
13112 * fs/sfs.c: Likewise.
13113 * fs/ufs.c: Likewise.
13114 * fs/xfs.c: Likewise.
13115 * hello/hello.c: Likewise.
13116 * include/grub/acorn_filecore.h: Likewise.
13117 * include/grub/arg.h: Likewise.
13118 * include/grub/bitmap.h: Likewise.
13119 * include/grub/boot.h: Likewise.
13120 * include/grub/cache.h: Likewise.
13121 * include/grub/device.h: Likewise.
13122 * include/grub/disk.h: Likewise.
13123 * include/grub/dl.h: Likewise.
13124 * include/grub/elfload.h: Likewise.
13125 * include/grub/env.h: Likewise.
13126 * include/grub/err.h: Likewise.
13127 * include/grub/file.h: Likewise.
13128 * include/grub/font.h: Likewise.
13129 * include/grub/fs.h: Likewise.
13130 * include/grub/fshelp.h: Likewise.
13131 * include/grub/gzio.h: Likewise.
13132 * include/grub/hfs.h: Likewise.
13133 * include/grub/kernel.h: Likewise.
13134 * include/grub/loader.h: Likewise.
13135 * include/grub/lvm.h: Likewise.
13136 * include/grub/misc.h: Likewise.
13137 * include/grub/mm.h: Likewise.
13138 * include/grub/net.h: Likewise.
13139 * include/grub/normal.h: Likewise.
13140 * include/grub/parser.h: Likewise.
13141 * include/grub/partition.h: Likewise.
13142 * include/grub/pc_partition.h: Likewise.
13143 * include/grub/raid.h: Likewise.
13144 * include/grub/rescue.h: Likewise.
13145 * include/grub/script.h: Likewise.
13146 * include/grub/setjmp.h: Likewise.
13147 * include/grub/symbol.h: Likewise.
13148 * include/grub/term.h: Likewise.
13149 * include/grub/terminfo.h: Likewise.
13150 * include/grub/tparm.h: Likewise.
13151 * include/grub/types.h: Likewise.
13152 * include/grub/video.h: Likewise.
13153 * include/grub/efi/api.h: Likewise.
13154 * include/grub/efi/chainloader.h: Likewise.
13155 * include/grub/efi/console.h: Likewise.
13156 * include/grub/efi/console_control.h: Likewise.
13157 * include/grub/efi/disk.h: Likewise.
13158 * include/grub/efi/efi.h: Likewise.
13159 * include/grub/efi/pe32.h: Likewise.
13160 * include/grub/efi/time.h: Likewise.
13161 * include/grub/i386/linux.h: Likewise.
13162 * include/grub/i386/setjmp.h: Likewise.
13163 * include/grub/i386/types.h: Likewise.
13164 * include/grub/i386/efi/kernel.h: Likewise.
13165 * include/grub/i386/efi/loader.h: Likewise.
13166 * include/grub/i386/efi/time.h: Likewise.
13167 * include/grub/i386/pc/biosdisk.h: Likewise.
13168 * include/grub/i386/pc/boot.h: Likewise.
13169 * include/grub/i386/pc/chainloader.h: Likewise.
13170 * include/grub/i386/pc/console.h: Likewise.
13171 * include/grub/i386/pc/init.h: Likewise.
13172 * include/grub/i386/pc/kernel.h: Likewise.
13173 * include/grub/i386/pc/loader.h: Likewise.
13174 * include/grub/i386/pc/memory.h: Likewise.
13175 * include/grub/i386/pc/multiboot.h: Likewise.
13176 * include/grub/i386/pc/serial.h: Likewise.
13177 * include/grub/i386/pc/time.h: Likewise.
13178 * include/grub/i386/pc/vbe.h: Likewise.
13179 * include/grub/i386/pc/vbeblit.h: Likewise.
13180 * include/grub/i386/pc/vbefill.h: Likewise.
13181 * include/grub/i386/pc/vbeutil.h: Likewise.
13182 * include/grub/i386/pc/vga.h: Likewise.
13183 * include/grub/ieee1275/ieee1275.h: Likewise.
13184 * include/grub/ieee1275/ofdisk.h: Likewise.
13185 * include/grub/powerpc/libgcc.h: Likewise.
13186 * include/grub/powerpc/setjmp.h: Likewise.
13187 * include/grub/powerpc/types.h: Likewise.
13188 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
13189 * include/grub/powerpc/ieee1275/console.h: Likewise.
13190 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
13191 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
13192 * include/grub/powerpc/ieee1275/loader.h: Likewise.
13193 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
13194 * include/grub/powerpc/ieee1275/time.h: Likewise.
13195 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
13196 * include/grub/sparc64/libgcc.h: Likewise.
13197 * include/grub/sparc64/setjmp.h: Likewise.
13198 * include/grub/sparc64/types.h: Likewise.
13199 * include/grub/sparc64/ieee1275/console.h: Likewise.
13200 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
13201 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
13202 * include/grub/sparc64/ieee1275/time.h: Likewise.
13203 * include/grub/util/biosdisk.h: Likewise.
13204 * include/grub/util/getroot.h: Likewise.
13205 * include/grub/util/lvm.h: Likewise.
13206 * include/grub/util/misc.h: Likewise.
13207 * include/grub/util/raid.h: Likewise.
13208 * include/grub/util/resolve.h: Likewise.
13209 * io/gzio.c: Likewise.
13210 * kern/device.c: Likewise.
13211 * kern/disk.c: Likewise.
13212 * kern/dl.c: Likewise.
13213 * kern/elf.c: Likewise.
13214 * kern/env.c: Likewise.
13215 * kern/err.c: Likewise.
13216 * kern/file.c: Likewise.
13217 * kern/fs.c: Likewise.
13218 * kern/loader.c: Likewise.
13219 * kern/main.c: Likewise.
13220 * kern/misc.c: Likewise.
13221 * kern/mm.c: Likewise.
13222 * kern/parser.c: Likewise.
13223 * kern/partition.c: Likewise.
13224 * kern/rescue.c: Likewise.
13225 * kern/term.c: Likewise.
13226 * kern/efi/efi.c: Likewise.
13227 * kern/efi/init.c: Likewise.
13228 * kern/efi/mm.c: Likewise.
13229 * kern/i386/dl.c: Likewise.
13230 * kern/i386/efi/init.c: Likewise.
13231 * kern/i386/efi/startup.S: Likewise.
13232 * kern/i386/pc/init.c: Likewise.
13233 * kern/i386/pc/lzo1x.S: Likewise.
13234 * kern/i386/pc/startup.S: Likewise.
13235 * kern/ieee1275/ieee1275.c: Likewise.
13236 * kern/powerpc/cache.S: Likewise.
13237 * kern/powerpc/dl.c: Likewise.
13238 * kern/powerpc/ieee1275/cmain.c: Likewise.
13239 * kern/powerpc/ieee1275/crt0.S: Likewise.
13240 * kern/powerpc/ieee1275/init.c: Likewise.
13241 * kern/powerpc/ieee1275/openfw.c: Likewise.
13242 * kern/sparc64/cache.S: Likewise.
13243 * kern/sparc64/dl.c: Likewise.
13244 * kern/sparc64/ieee1275/init.c: Likewise.
13245 * kern/sparc64/ieee1275/openfw.c: Likewise.
13246 * loader/efi/chainloader.c: Likewise.
13247 * loader/efi/chainloader_normal.c: Likewise.
13248 * loader/i386/efi/linux.c: Likewise.
13249 * loader/i386/efi/linux_normal.c: Likewise.
13250 * loader/i386/pc/chainloader.c: Likewise.
13251 * loader/i386/pc/chainloader_normal.c: Likewise.
13252 * loader/i386/pc/linux.c: Likewise.
13253 * loader/i386/pc/linux_normal.c: Likewise.
13254 * loader/i386/pc/multiboot.c: Likewise.
13255 * loader/i386/pc/multiboot_normal.c: Likewise.
13256 * loader/powerpc/ieee1275/linux.c: Likewise.
13257 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
13258 * normal/arg.c: Likewise.
13259 * normal/cmdline.c: Likewise.
13260 * normal/command.c: Likewise.
13261 * normal/completion.c: Likewise.
13262 * normal/execute.c: Likewise.
13263 * normal/function.c: Likewise.
13264 * normal/lexer.c: Likewise.
13265 * normal/main.c: Likewise.
13266 * normal/menu.c: Likewise.
13267 * normal/menu_entry.c: Likewise.
13268 * normal/misc.c: Likewise.
13269 * normal/parser.y: Likewise.
13270 * normal/script.c: Likewise.
13271 * normal/i386/setjmp.S: Likewise.
13272 * normal/powerpc/setjmp.S: Likewise.
13273 * normal/sparc64/setjmp.S: Likewise.
13274 * partmap/acorn.c: Likewise.
13275 * partmap/amiga.c: Likewise.
13276 * partmap/apple.c: Likewise.
13277 * partmap/gpt.c: Likewise.
13278 * partmap/pc.c: Likewise.
13279 * partmap/sun.c: Likewise.
13280 * term/gfxterm.c: Likewise.
13281 * term/terminfo.c: Likewise.
13282 * term/efi/console.c: Likewise.
13283 * term/i386/pc/console.c: Likewise.
13284 * term/i386/pc/serial.c: Likewise.
13285 * term/i386/pc/vesafb.c: Likewise.
13286 * term/i386/pc/vga.c: Likewise.
13287 * term/ieee1275/ofconsole.c: Likewise.
13288 * util/biosdisk.c: Likewise.
13289 * util/console.c: Likewise.
13290 * util/genmoddep.c: Likewise.
13291 * util/getroot.c: Likewise.
13292 * util/grub-emu.c: Likewise.
13293 * util/grub-mkdevicemap.c: Likewise.
13294 * util/grub-probe.c: Likewise.
13295 * util/lvm.c: Likewise.
13296 * util/misc.c: Likewise.
13297 * util/raid.c: Likewise.
13298 * util/resolve.c: Likewise.
13299 * util/update-grub.in: Likewise.
13300 * util/update-grub_lib.in: Likewise.
13301 * util/grub.d/00_header.in: Likewise.
13302 * util/grub.d/10_hurd.in: Likewise.
13303 * util/grub.d/10_linux.in: Likewise.
13304 * util/i386/efi/grub-install.in: Likewise.
13305 * util/i386/efi/grub-mkimage.c: Likewise.
13306 * util/i386/pc/grub-install.in: Likewise.
13307 * util/i386/pc/grub-mkimage.c: Likewise.
13308 * util/i386/pc/grub-mkrescue.in: Likewise.
13309 * util/i386/pc/grub-setup.c: Likewise.
13310 * util/i386/pc/misc.c: Likewise.
13311 * util/powerpc/ieee1275/grub-install.in: Likewise.
13312 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
13313 * util/powerpc/ieee1275/misc.c: Likewise.
13314 * video/bitmap.c: Likewise.
13315 * video/video.c: Likewise.
13316 * video/i386/pc/vbe.c: Likewise.
13317 * video/i386/pc/vbeblit.c: Likewise.
13318 * video/i386/pc/vbefill.c: Likewise.
13319 * video/i386/pc/vbeutil.c: Likewise.
13320 * video/readers/tga.c: Likewise.
13321
13322 2007-07-02 Robert Millan <rmh@aybabtu.com>
13323
13324 * conf/i386-efi.rmk: Replace obsolete reference to
13325 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
13326 with util/getroot.c.
13327 * conf/powerpc-ieee1275.rmk: Likewise.
13328 * conf/sparc64-ieee1275.rmk: Likewise.
13329
13330 * util/grub-emu.c (main): Fix unchecked pointer handling.
13331
13332 2007-07-02 Robert Millan <rmh@aybabtu.com>
13333
13334 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
13335 invocation to fail, in order to support partition-less media.
13336
13337 * util/i386/pc/grub-install.in: Likewise.
13338
13339 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
13340 which fs or partmap modules are needed (akin to its sister scripts).
13341
13342 Also use grub-probe to get rid of unportable /proc/mounts check.
13343
13344 Print the same informational message that the other scripts do, before
13345 exiting.
13346
13347 2007-06-23 Robert Millan <rmh@aybabtu.com>
13348
13349 * util/update-grub_lib.in (font_path): New function. Determine whether
13350 a font file can be found and, if so, echo the GRUB path to it.
13351
13352 * util/update-grub.in: Handle multiple terminals depending on user
13353 input, platform availability and font file presence. Propagate
13354 variables of our findings to /etc/grub.d/ children.
13355
13356 * util/grub.d/00_header.in: Handle multiple terminals, based on
13357 environment setup by update-grub.
13358
13359 2007-06-23 Robert Millan <rmh@aybabtu.com>
13360
13361 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
13362
13363 2007-06-21 Robert Millan <rmh@aybabtu.com>
13364
13365 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
13366 indicate end of data section in kernel image.
13367 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
13368 GRUB_KERNEL_MACHINE_DATA_END.
13369
13370 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
13371 space for it.
13372 * kern/i386/efi/startup.S: Likewise.
13373
13374 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
13375 during image generation. Implement --prefix option to override this
13376 patch.
13377 * util/i386/efi/grub-mkimage.c: Likewise.
13378
13379 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
13380 code to make path relative to its root into a separate function.
13381
13382 * util/i386/pc/grub-install.in: Use newly provided
13383 make_system_path_relative_to_its_root() to convert ${grubdir}, then
13384 pass the result to grub-install --prefix.
13385
13386 2007-06-13 Robert Millan <rmh@aybabtu.com>
13387
13388 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
13389 DEFAULT_DEVICE_MAP.
13390 * util/grub-emu.c: Use above definitions from misc.h instead of
13391 defining them.
13392 * util/grub-mkdevicemap.c: Likewise.
13393 * util/i386/pc/grub-setup.c: Likewise.
13394 * util/grub-probe.c: Likewise.
13395 (probe): Abort with grub_util_error() when either
13396 grub_guess_root_device or grub_util_get_grub_dev fails.
13397
13398 2007-06-12 Robert Millan <rmh@aybabtu.com>
13399
13400 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
13401 "pager" assignment.
13402 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
13403 "pcdata".
13404 * util/grub-probe.c (probe): Likewise for "drive_name".
13405
13406 2007-06-11 Robert Millan <rmh@aybabtu.com>
13407
13408 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
13409 not just the cdrom one.
13410
13411 2007-06-11 Robert Millan <rmh@aybabtu.com>
13412
13413 * util/i386/pc/grub-mkrescue.in: Add "set -e".
13414 Add --pkglibdir=DIR option to override pkglibdir.
13415 Mention --image-type=TYPE in help output.
13416 Fix --grub-mkimage (it was a no-op).
13417 Abort gracefully when no parameter is given.
13418
13419 2007-06-11 Robert Millan <rmh@aybabtu.com>
13420
13421 * util/i386/pc/grub-mkrescue.in: New file.
13422 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
13423 * Makefile.in: Handle bin_SCRIPTS.
13424
13425 2007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
13426
13427 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
13428 list of video modes.
13429
13430 2007-06-06 Robert Millan <rmh@aybabtu.com>
13431
13432 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
13433 file doesn't exist, or if it is in a filesystem grub can't read.
13434
13435 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
13436 not abort if GRUB_DRIVE could not be defined. Rearrange generated
13437 header comment to fit in 80 columns when the variables are resolved.
13438
13439 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
13440 could be identified by update-grub. Remove redundant check for
13441 unifont.pff existence (since convert_system_path_to_grub_path now
13442 handles that).
13443
13444 2007-06-04 Robert Millan <rmh@aybabtu.com>
13445
13446 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
13447
13448 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
13449
13450 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
13451
13452 2007-06-04 Robert Millan <rmh@aybabtu.com>
13453
13454 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
13455
13456 * include/grub/partition.h: Declare grub_apple_partition_map_init and
13457 grub_apple_partition_map_fini.
13458
13459 * util/biosdisk.c
13460 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
13461 to access >2 TiB disks).
13462
13463 Print disk->total_sectors with %llu instead of %lu, since this
13464 variable is always 64-bit (prevents wrong disk size from being displayed
13465 on either >2 TiB disk or big-endian CPU).
13466
13467 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
13468 into a generic case that supports all (sane) partition maps.
13469
13470 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
13471 breaks big-endian.
13472
13473 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
13474 and grub_apple_partition_map_fini() after that.
13475
13476 2007-06-01 Robert Millan <rmh@aybabtu.com>
13477
13478 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
13479
13480 * util/grub.d/00_header.in: Only enable gfxterm when
13481 convert_system_path_to_grub_path() succeeds.
13482
13483 2007-05-20 Robert Millan <rmh@aybabtu.com>
13484
13485 * util/update-grub_lib.in: New file.
13486 * DISTLIST: Add update-grub_lib.in.
13487 * conf/common.rmk: Generate update-grub_lib and install it in
13488 $(lib_DATA).
13489 * Makefile.in: Add install routine for $(lib_DATA).
13490
13491 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
13492 function provided by update-grub_lib to support arbitrary paths of
13493 unifont.pff.
13494 * util/update-grub.in: Use convert_system_path_to_grub_path() to
13495 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
13496
13497 2007-05-19 Robert Millan <rmh@aybabtu.com>
13498
13499 * commands/i386/cpuid.c: New module.
13500 * DISTLIST: Add it.
13501 * conf/i386-efi.rmk: Enable cpuid.mod.
13502 * conf/i386-pc.rmk: Likewise.
13503
13504 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
13505
13506 * kern/disk.c (grub_disk_read): Check return value of
13507 grub_realloc().
13508
13509 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
13510
13511 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
13512 arrays.
13513 * disk/raid.c (grub_raid_open): Likewise.
13514
13515 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
13516
13517 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
13518 stack instead of on the heap.
13519
13520 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
13521 before doing a read on it.
13522
13523 * configure.ac: Only use -fno-stack-protector for the target
13524 environment.
13525
13526 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
13527
13528 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
13529 __attribute_ ((unused)) to mode_type argument.
13530
13531 * util/getroot.c (grub_guess_root_device): Fix #endif.
13532
13533 * kern/misc.c (memcmp): Fix prototype.
13534
13535 * include/grub/partition.h [GRUB_UTIL]
13536 (grub_gpt_partition_map_init): Add prototype.
13537 (grub_gpt_partition_map_fini): Likewise.
13538
13539 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
13540 at the right place.
13541
13542 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
13543 (grub_fat_read_data): Likewise.
13544 (grub_fat_find_dir): Likewise.
13545
13546 * font/manager.c (find_glyph): Make table a const.
13547 (grub_font_get_glyph): Remove bitmap from if statement.
13548
13549 2007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
13550
13551 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
13552 code, first search for device in /dev/mapper, then in /dev.
13553 (grub_util_get_grub_dev): New function.
13554 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
13555 prototype.
13556 * util/grub-probe.c (probe): Remove check for RAID, call
13557 grub_util_get_grub_dev() instead of
13558 grub_util_biosdisk_get_grub_dev().
13559 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
13560 grub_util_biosdisk_get_grub_dev().
13561 * util/i386/pc/grub-setup.c (main): Likewise.
13562
13563 2007-05-16 Robert Millan <rmh@aybabtu.com>
13564
13565 * DISTLIST: Update for the latest changes.
13566 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
13567 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
13568 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
13569 grub/util/biosdisk.h.
13570 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
13571 grub/util/biosdisk.h.
13572
13573 2007-05-16 Robert Millan <rmh@aybabtu.com>
13574
13575 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
13576
13577 2007-05-16 Robert Millan <rmh@aybabtu.com>
13578
13579 * util/i386/efi/grub-install.in: New.
13580 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
13581 newly added grub-install.
13582 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
13583 include.
13584 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
13585 grub/util/biosdisk.h.
13586 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
13587 grub/util/biosdisk.h.
13588
13589 2007-05-16 Robert Millan <rmh@aybabtu.com>
13590
13591 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
13592 * include/grub/util/biosdisk.h: ... here.
13593 * util/i386/pc/biosdisk.c: Moved to ...
13594 * util/biosdisk.c: ... here.
13595 * util/i386/pc/getroot.c: Moved to ...
13596 * util/getroot.c: ... here.
13597 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
13598 * util/grub-mkdevicemap.c: ... here.
13599 * util/i386/pc/grub-probe.c: Moved to ...
13600 * util/grub-probe.c: ... here.
13601
13602 2007-05-15 Robert Millan <rmh@aybabtu.com>
13603
13604 * util/update-grub.in: Remove duplicated line in grub.cfg header
13605 message.
13606
13607 2007-05-13 Robert Millan <rmh@aybabtu.com>
13608
13609 * util/update-grub.in: Fix a few assumptions about the devices holding
13610 /, /boot and /boot/grub being the same.
13611 * util/grub.d/00_header.in: Likewise.
13612 * util/grub.d/10_hurd.in: Likewise.
13613 * util/grub.d/10_linux.in: Likewise.
13614
13615 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
13616 patterns. Use that to define the `.old' suffix as older than `'.
13617
13618 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
13619
13620 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
13621 the grub.cfg header message.
13622
13623 2007-05-11 Robert Millan <rmh@aybabtu.com>
13624
13625 * util/update-grub.in: Create device.map if it doesn't already exist,
13626 before attempting to run grub-probe.
13627 Check for grub-probe and grub-mkdevicemap with the same code
13628 grub-install is using.
13629 Remove test mode.
13630
13631 2007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
13632
13633 * Makefile.in: Add the datarootdir autoconf variable.
13634
13635 2007-05-09 Robert Millan <rmh@aybabtu.com>
13636
13637 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
13638 fail gracefully if dev->disk->partition == NULL.
13639
13640 2007-05-07 Robert Millan <rmh@aybabtu.com>
13641
13642 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
13643 determine partition map module.
13644 * util/i386/pc/grub-install.in: Use this feature to decide which
13645 partition module to load, instead of hardcoding pc and gpt.
13646
13647 2007-05-07 Robert Millan <rmh@aybabtu.com>
13648
13649 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
13650 source directory differs from build directory.
13651
13652 2007-05-05 Robert Millan <rmh@aybabtu.com>
13653
13654 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
13655 initialisation.
13656
13657 2007-05-05 Robert Millan <rmh@aybabtu.com>
13658
13659 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
13660
13661 2007-05-05 Robert Millan <rmh@aybabtu.com>
13662
13663 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
13664 command-line arguments via ${GRUB_CMDLINE_LINUX}.
13665
13666 2007-05-05 Robert Millan <rmh@aybabtu.com>
13667
13668 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
13669 (grub_probe_SOURCES): Likewise.
13670 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
13671 GPT and initialize dos_part and bsd_part accordingly.
13672 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
13673 install_bsd_part.
13674 (main): Activate gpt module for use during partition identification,
13675 and deactivate it afterwards.
13676 * util/i386/pc/grub-install.in: Add gpt module to core.img.
13677 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
13678 partition identification, and deactivate it afterwards.
13679
13680 2007-05-05 Robert Millan <rmh@aybabtu.com>
13681
13682 * term/i386/pc/console.c (grub_console_fini): Call
13683 grub_term_set_current() before grub_term_unregister().
13684
13685 2007-05-04 Robert Millan <rmh@aybabtu.com>
13686
13687 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
13688 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
13689 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
13690 and update-grub_DATA.
13691 * conf/common.rmk: Build and install update-grub components.
13692 * conf/common.mk: Regenerate.
13693 * util/update-grub.in: New. Core of update-grub.
13694 * util/grub.d/00_header.in: New. Generates grub.cfg header.
13695 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
13696 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
13697 * util/grub.d/README: New. Document grub.d directory layout.
13698
13699 2007-05-01 Robert Millan <rmh@aybabtu.com>
13700
13701 * util/grub-emu.c: Move initialization functions
13702 grub_util_biosdisk_init() and grub_init_all() before
13703 grub_util_biosdisk_get_grub_dev(), which relies on them.
13704
13705 2007-04-19 Robert Millan <rmh@aybabtu.com>
13706
13707 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
13708 it is used later.
13709
13710 2007-04-18 Jerone Young <jerone@gmail.com>
13711
13712 * kernel/elf.c: Add missing parenthesis for conditional statement
13713 stanza.
13714
13715 2007-04-10 Jerone Young <jerone@gmail.com>
13716
13717 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
13718 continue on and look for device node with real device name.
13719
13720 2007-04-10 Jerone Young <jerone@gmail.com>
13721
13722 * configure.ac: Add argument for autoconf to use transformation
13723 ability.
13724 * Makefile.in: Add autoconf package transformation code.
13725 * util/i386/pc/grub-install.in: Likewise.
13726 * util/powerpc/ieee1275/grub-install.in: Likewise.
13727
13728 2007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
13729
13730 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
13731 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
13732 (EXT2_REVISION): Likewise.
13733 (EXT2_INODE_SIZE): Likewise.
13734 (struct grub_ext2_block_group): Added a missing member
13735 "used_dirs".
13736 (grub_ext2_read_inode): Divide by the inode size in a superblock
13737 instead of 128 to obtain INODES_PER_BLOCK.
13738 Use the macro EXT2_INODE_SIZE instead of directly using
13739 SBLOCK->INODE_SIZE.
13740
13741 2007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
13742
13743 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
13744 superblock instead of the structure size to compute an
13745 offset. This fixes the problem that GRUB could not read a
13746 filesystem when inode size is different from 128-byte.
13747
13748 2007-03-05 Marco Gerards <marco@gnu.org>
13749
13750 * normal/main.c (read_config_file): When "menu" is not set, create
13751 an initial context.
13752
13753 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
13754
13755 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
13756 (HEAP_LIMIT): New macro.
13757 (grub_claim_heap): Claim memory up to `heaplimit'.
13758
13759 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
13760
13761 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
13762 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
13763 (_start): Likewise.
13764 (grub_arch_modules_addr): Return address after `_end'.
13765 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
13766 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
13767 (add_segments): Calculate `_end' from phdr size and location.
13768 (ALIGN_UP): Moved to ...
13769 * include/grub/misc.h: here.
13770 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
13771 New macro.
13772 (GRUB_IEEE1275_MODULE_BASE): Removed.
13773
13774 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
13775
13776 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
13777 loop boundary.
13778
13779 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
13780
13781 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
13782 All users updated.
13783 (grub_elf64_load_hook_t): Likewise.
13784 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
13785 debug output.
13786
13787 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
13788
13789 * kern/mm.c: Update copyright.
13790 (grub_mm_debug): Correct syntax error.
13791 (grub_mm_dump_free): New function.
13792 (grub_debug_free): Call `grub_free'.
13793 * include/grub/mm.h: Update copyright.
13794 (grub_mm_dump_free): Add declaration.
13795
13796 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
13797
13798 * include/grub/ieee1275/ieee1275.h: Update copyright.
13799 * kern/powerpc/ieee1275/init.c: Likewise.
13800 * kern/powerpc/ieee1275/openfw.c: Likewise.
13801
13802 * loader/powerpc/ieee1275/linux.c: Likewise.
13803 * include/grub/elfload.h: Likewise.
13804 * kern/elf.c: Likewise.
13805 (grub_elf32_load): Pass `base' and `size' parameters. Update all
13806 callers.
13807 (grub_elf64_load): Likewise.
13808 (grub_elf32_load_segment): Move to a nested function.
13809 (grub_elf64_load_segment): Likewise.
13810
13811 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
13812
13813 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
13814 prototype.
13815 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
13816 (grub_heap_len): Likewise.
13817 (HEAP_SIZE): New macro.
13818 (grub_claim_heap): New function.
13819 (grub_machine_init): Don't claim heap directly. Call
13820 `grub_claim_heap'.
13821 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
13822 (grub_available_iterate): New function.
13823
13824 2007-02-03 Thomas Schwinge <tschwinge@gnu.org>
13825
13826 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
13827 * configure.ac: Use it for testing the HOST and TARGET compilers.
13828
13829 2006-12-13 Thomas Schwinge <tschwinge@gnu.org>
13830
13831 * Makefile.in (enable_grub_emu): New variable.
13832 * configure.ac (--enable-grub-emu): New option.
13833 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
13834 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
13835 * conf/i386-pc.rmk: Likewise.
13836 * conf/powerpc-ieee1275.rmk: Likewise.
13837 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
13838
13839 2006-12-12 Marco Gerards <marco@gnu.org>
13840
13841 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
13842
13843 * kern/env.c (grub_env_unset): Don't free the member `value' when
13844 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
13845 pointer.
13846
13847 * normal/main.c (current_menu): Removed.
13848 (free_menu): Unset the `menu' environment variable.
13849 (grub_normal_menu_addentry): Make use of the environment variable
13850 `menu', instead of using the global `current_menu'. Allocate
13851 memory for the sourcecode of this entry.
13852 (read_config_file): New argument `nested', changed all callers.
13853 Only in the case of a new context, initialize a new menu. Set the
13854 `menu' environment variable.
13855 (grub_normal_execute): Don't set and unset the environment
13856 variable `menu' here anymore. Only free the menu when leaving the
13857 context.
13858
13859 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
13860 leak.
13861
13862 2006-12-11 Marco Gerards <marco@gnu.org>
13863
13864 * normal/menu_entry.c (run): Fix off by one bug so the last line
13865 is executed. Move the loader check to outside the loop.
13866
13867 2006-12-08 Hollis Blanchard <hollis@penguinppc.org>
13868
13869 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
13870
13871 2006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
13872
13873 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
13874 the number of sectors. Reported by Andrey Shuvikov
13875 <mr_hyro@yahoo.com>.
13876
13877 2006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
13878
13879 * kern/disk.c (grub_disk_read): When there is a read error, always
13880 try to read only the necessary data.
13881
13882 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
13883 disk/raid.c.
13884 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
13885 prototype.
13886 [GRUB_UTIL] (grub_raid_fini): Likewise.
13887 [GRUB_UTIL] (grub_lvm_init): Likewise.
13888 [GRUB_UTIL] (grub_lvm_fini): Likewise.
13889 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
13890 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
13891 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
13892 and grub_raid_fini().
13893
13894 2006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
13895
13896 * include/grub/types.h (__unused): Rename to UNUSED.
13897 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
13898 (grub_elf64_size): Likewise.
13899
13900 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
13901
13902 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
13903 grub_error_push and grub_error_pop in the error-handling path.
13904 (grub_elf32_load_segment): Only call grub_file_read with non-zero
13905 length.
13906
13907 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
13908
13909 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
13910 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
13911 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13912 (kernel_elf_SOURCES): Likewise.
13913 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
13914 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
13915 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
13916 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
13917 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
13918 (elf_mod_SOURCES): New variable.
13919 (elf_mod_CFLAGS): Likewise.
13920 (elf_mod_LDFLAGS): Likewise.
13921 * include/grub/types.h (__unused): New macro.
13922 * include/grub/elfload.h: New file.
13923 * kern/elf.c: Likewise.
13924 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
13925 (ELF32_LOADMASK): New macro.
13926 (ELF64_LOADMASK): Likewise.
13927 (vmlinux): Removed.
13928 (grub_linux_load32): New function.
13929 (grub_linux_load64): Likewise.
13930 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
13931 Use grub_elf_t instead of grub_file_t.
13932
13933 2006-11-02 Hollis Blanchard <hollis@penguinppc.org>
13934
13935 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
13936 `catch_result' to struct set_color_args.
13937
13938 2006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
13939
13940 * normal/menu.c: Include grub/script.h.
13941 * normal/menu_entry.c: Likewise.
13942 * include/grub/normal.h: Do not include grub/script.h.
13943
13944 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
13945
13946 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
13947
13948 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
13949
13950 * kern/disk.c (grub_disk_open): Print debug messages when opening a
13951 disk.
13952 (grub_disk_close): Print debug messages when closing a disk.
13953 (grub_disk_read): Print debug messages when disk read fails.
13954 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
13955 filesystem type.
13956 * kern/partition.c: Include misc.h.
13957 (grub_partition_iterate): Print debug messages when detecting
13958 partition type.
13959
13960 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
13961
13962 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
13963 is negative.
13964 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
13965
13966 2006-10-26 Hollis Blanchard <hollis@penguinppc.org>
13967
13968 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
13969 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
13970
13971 2006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
13972
13973 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
13974 instead of sizeof(lv). Patch by Michael Guntsche.
13975
13976 2006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
13977
13978 * disk/lvm.c: Rename VGS to VG_LIST.
13979 (grub_lvm_iterate): Change VGS->LV to VG-LV.
13980 (grub_lvm_open): Likewise.
13981 Thanks to Michael Guntsche for finding this bug.
13982
13983 2006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
13984
13985 * configure.ac (AC_INIT): Bumped to 1.95.
13986
13987 2006-10-14 Robert Millan <rmh@aybabtu.com>
13988
13989 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
13990 with "/dev/.static/dev/md".
13991
13992 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
13993
13994 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
13995 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
13996 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
13997 DRIVE_NAME are always freed.
13998
13999 * util/i386/pc/biosdisk.c (make_device_name): Add one into
14000 DOS_PART, as a DOS partition is counted from one instead of zero
14001 now. Reported by Robert Millan.
14002
14003 2006-10-14 Robert Millan <rmh@aybabtu.com>
14004
14005 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
14006 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
14007 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
14008 string returned by grub_guess_root_device.
14009 * util/i386/pc/grub-setup.c: Likewise.
14010 * util/i386/pc/grub-probefs.c: Likewise.
14011
14012 * util/i386/pc/grub-probefs.c: Rename to ...
14013 * util/i386/pc/grub-probe.c: ... this.
14014 * DISTLIST: Remove grub-probefs, add grub-probe.
14015 * conf/i386-efi.rmk: Likewise.
14016 * conf/i386-pc.rmk: Likewise.
14017 * util/i386/pc/grub-install.in: Likewise.
14018
14019 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
14020 choose which information we want to print.
14021
14022 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
14023
14024 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
14025 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
14026 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
14027 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
14028 video/readers/tga.c and video/i386/pc/vbeutil.c.
14029
14030 2006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
14031
14032 Added support for RAID and LVM.
14033
14034 * disk/lvm.c: New file.
14035 * disk/raid.c: Likewise.
14036 * include/grub/lvm.h: Likewise.
14037 * include/grub/raid.h: Likewise.
14038 * include/grub/util/lvm.h: Likewise.
14039 * include/grub/util/raid.h: Likewise.
14040 * util/lvm.c: Likewise.
14041 * util/raid.c: Likewise.
14042
14043 * include/grub/disk.h (grub_disk_dev_id): Add
14044 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
14045 (grub_disk_get_size): New prototype.
14046 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
14047 returns a partition.
14048 (grub_disk_get_size): New function.
14049
14050 * kern/i386/pc/init.c (make_install_device): Copy the prefix
14051 verbatim if grub_install_dos_part is -2.
14052
14053 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
14054 and LVM devices.
14055
14056 * util/i386/pc/grub-setup.c (setup): New argument
14057 MUST_EMBED. Force embedding of GRUB when the argument is
14058 true. Close FILE before returning.
14059 (main): Add support for RAID and LVM.
14060
14061 * conf/common.rmk: Add RAID and LVM modules.
14062 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
14063 util/lvm.c.
14064 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
14065
14066 * kern/misc.c (grub_strstr): New function.
14067 * include/grub/misc.h (grub_strstr): New prototype.
14068
14069 2006-10-10 Tristan Gingold <tristan.gingold@bull.net>
14070
14071 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
14072
14073 2006-10-05 Tristan Gingold <tristan.gingold@bull.net>
14074
14075 * kern/misc.c (grub_strtoull): Guess the base only if not
14076 specified.
14077
14078 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
14079
14080 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
14081 PowerMac support.
14082
14083 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
14084
14085 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
14086
14087 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
14088 Remove `flags' argument. All callers changed.
14089 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
14090 (IEEE1275_IHANDLE_INVALID): New variable.
14091 (IEEE1275_CELL_INVALID): New variable.
14092 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
14093 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
14094 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
14095 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
14096 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
14097 codes from Open Firmware. All callers updated.
14098 (grub_ieee1275_next_property): Directly return Open Firmware return
14099 code.
14100 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
14101 Standardize error checking from `grub_ieee1275_get_property'.
14102 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
14103 `devalias' to `aliases'. Correct comments. Consolidate error paths.
14104
14105 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
14106
14107 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
14108 `instance_to_package_args' to `instance_to_path_args'.
14109
14110 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
14111 `grub_ieee1275_chosen'.
14112
14113 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
14114 `grub_ieee1275_interpret'.
14115
14116 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
14117
14118 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
14119
14120 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
14121
14122 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
14123 (__cmpdi): Likewise.
14124
14125 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
14126 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
14127 `grub_ssize_t'.
14128
14129 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
14130
14131 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
14132 to type `grub_ssize_t'.
14133 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
14134
14135 2006-09-22 Marco Gerards <marco@gnu.org>
14136
14137 * normal/script.c (grub_script_create_cmdmenu): Skip leading
14138 newlines.
14139
14140 2006-09-22 Marco Gerards <marco@gnu.org>
14141
14142 * commands/echo.c: New file.
14143
14144 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
14145
14146 * conf/common.rmk (echo_mod_SOURCES): New variable.
14147 (echo_mod_CFLAGS): Likewise.
14148 (echo_mod_LDFLAGS): Likewise.
14149
14150 2006-09-22 Marco Gerards <marco@gnu.org>
14151
14152 * normal/main.c (get_line): Malloc memory instead of using
14153 preallocated memory. Removed the arguments `cmdline' and
14154 `max_len'. Updated all callers.
14155
14156 2006-09-22 Marco Gerards <marco@gnu.org>
14157
14158 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
14159 (normal_mod_DEPENDENCIES): Likewise.
14160
14161 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
14162 (normal_mod_DEPENDENCIES): Likewise.
14163
14164 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
14165
14166 2006-09-22 Johan Rydberg <jrydberg@gnu.org>
14167
14168 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
14169 programs.
14170 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
14171 (normal_mod_DEPENDENCIES): Likewise.
14172 * conf/i386-pc.mk: Regenerate.
14173 * conf/i386-efi.mk: Likewise
14174 * conf/common.mk: Likewise.
14175 * conf/powerpc-ieee1275.mk: Likewise.
14176 * conf/sparc64-ieee1275.mk: Likewise.
14177
14178 2006-09-22 Robert Millan <rmh@aybabtu.com>
14179
14180 Sync with i386 version.
14181 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
14182 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
14183
14184 2006-09-21 Robert Millan <rmh@aybabtu.com>
14185
14186 Import from GRUB Legacy (lib/device.c):
14187 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
14188 (init_device_map) [__linux__]: Add support for I2O devices.
14189
14190 2006-09-14 Marco Gerards <marco@gnu.org>
14191
14192 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
14193 `-melf_i386'.
14194
14195 2006-09-14 Robert Millan <rmh@aybabtu.com>
14196
14197 * util/i386/pc/grub-install.in: Skip menu.lst when removing
14198 /boot/grub/*.lst.
14199
14200 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
14201
14202 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
14203 before adding it to device.map.
14204
14205 2006-08-15 Johan Rydberg <jrydberg@gnu.org>
14206
14207 * genmk.rb: Let GCC generate dependencies the first time it
14208 compiles a file; using the -MD option.
14209 * conf/common.mk: Regenerate.
14210 * conf/i386-pc.mk: Likewise.
14211 * conf/i386-efi.mk: Likewise.
14212 * conf/powerpc-ieee1275.mk: Likewise.
14213 * conf/sparc64-ieee1275.mk: Likewise.
14214
14215 2006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
14216
14217 Move the prototypes of grub_setjmp and grub_longjmp to
14218 cpu/setjmp.h, so that each architecture may specify different
14219 attributes.
14220
14221 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
14222 (grub_longjmp): Likewise.
14223 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
14224 (grub_longjmp): Likewise.
14225 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
14226 (grub_longjmp): Likewise.
14227
14228 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
14229 [!GRUB_UTIL] (grub_longjmp): Removed.
14230
14231 2006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
14232
14233 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
14234 "color!" method does not return any value.
14235
14236 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
14237
14238 * include/grub/bitmap.h: New file.
14239
14240 * include/grub/i386/pc/vbeutil.h: Likewise.
14241
14242 * video/bitmap.c: Likewise.
14243
14244 * video/readers/tga.c: Likewise.
14245
14246 * video/i386/pc/vbeutil.c: Likewise.
14247
14248 * commands/videotest.c: Code cleanup and updated to reflect to new
14249 video API.
14250
14251 * term/gfxterm.c: Likewise.
14252
14253 * video/video.c: Likewise.
14254
14255 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
14256 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
14257 (bitmap_mod_SOURCES): New entry.
14258 (bitmap_mod_CFLAGS): Likewise.
14259 (bitmap_mod_LDFLAGS): Likewise.
14260 (tga_mod_SOURCES): Likewise.
14261 (tga_mod_CFLAGS): Likewise.
14262 (tga_mod_LDFLAGS): Likewise.
14263
14264 * include/grub/video.h (grub_video_blit_operators): New enum type.
14265 (grub_video_render_target): Changed as forward declaration and moved
14266 actual definition to be video driver specific.
14267 (grub_video_adapter.blit_bitmap): Added blitting operator.
14268 (grub_video_adapter.blit_render_target): Likewise.
14269 (grub_video_blit_bitmap): Likewise.
14270 (grub_video_blit_render_target): Likewise.
14271
14272 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
14273 driver specific render target definition.
14274 (grub_video_vbe_map_rgba): Added driver internal helper.
14275 (grub_video_vbe_unmap_color): Updated to use
14276 grub_video_i386_vbeblit_info.
14277 (grub_video_vbe_get_video_ptr): Likewise.
14278
14279 * include/grub/i386/pc/vbeblit.h
14280 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
14281 grub_video_i386_vbeblit_info.
14282 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
14283 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
14284 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
14285 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
14286 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
14287 (grub_video_i386_vbeblit_index_index): Likewise.
14288 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
14289 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
14290 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
14291 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
14292 operator.
14293 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
14294 operator.
14295
14296 * video/i386/pc/vbeblit.c: Updated to reflect changes on
14297 include/grub/i386/pc/vbeblit.h.
14298
14299 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
14300 Updated to use grub_video_i386_vbeblit_info.
14301 (grub_video_i386_vbefill_R8G8B8): Likewise.
14302 (grub_video_i386_vbefill_index): Likewise.
14303 (grub_video_i386_vbefill): Added generic filler.
14304
14305 * video/i386/pc/vbefill.c: Updated to reflect changes on
14306 include/grub/i386/pc/vbefill.h.
14307
14308 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
14309 grub_video_i386_vbeblit_info.
14310 (grub_video_vbe_unmap_color): Likewise.
14311 (grub_video_vbe_blit_glyph): Likewise.
14312 (grub_video_vbe_scroll): Likewise.
14313 (grub_video_vbe_draw_pixel): Removed function.
14314 (grub_video_vbe_get_pixel): Likewise.
14315 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
14316 updated code to use it.
14317 (common_blitter): Added common blitter for render target and bitmap.
14318 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
14319 (grub_video_vbe_blit_render_target): Likewise.
14320
14321 2006-07-30 Johan Rydberg <jrydberg@gnu.org>
14322
14323 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
14324 is in text mode if there is no console control protocol instance
14325 available.
14326
14327 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
14328
14329 * include/grub/video.h: Code cleanup.
14330
14331 * include/grub/i386/pc/vbe.h: Likewise.
14332
14333 * video/i386/pc/vbe.c: Likewise.
14334
14335 * video/i386/pc/vbeblit.c: Likewise.
14336
14337 * video/i386/pc/vbefill.c: Likewise.
14338
14339 * video/video.c: Likewise. Also added more comments.
14340
14341 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
14342
14343 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
14344 (struct grub_biosdisk_dap): Likewise.
14345
14346 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
14347 linkage settings for all functions.
14348
14349 2006-07-12 Marco Gerards <marco@gnu.org>
14350
14351 * configure.ac (--enable-mm-debug): Fix typo.
14352
14353 * genkernsyms.sh.in: Use proper quoting for `CC'.
14354
14355 2006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
14356
14357 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
14358 (normal_mod_ASFLAGS): Remove "-m32".
14359
14360 2006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
14361
14362 * util/misc.c: Include config.h.
14363 [!HAVE_MEMALIGN]: Do not include malloc.h.
14364 (grub_memalign): Use posix_memalign, if present. Then, use
14365 memalign, if present. Otherwise, emit an error.
14366
14367 * util/grub-emu.c: Do not include malloc.h.
14368
14369 * include/grub/util/misc.h: Include unistd.h. This is required for
14370 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
14371 D. Eades III <hde@foobar-qux.org>.
14372
14373 * configure.ac (AC_GNU_SOURCE): Added.
14374 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
14375 type.
14376
14377 2006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
14378
14379 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
14380 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
14381
14382 2006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
14383
14384 * include/grub/types.h (grub_host_addr_t): Rename to
14385 grub_target_addr_t.
14386 (grub_host_off_t): Rename to grub_target_off_t.
14387 (grub_host_size_t): Rename to grub_target_size_t.
14388 (grub_host_ssize_t): Rename to grub_target_ssize_t.
14389 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
14390
14391 * include/grub/kernel.h (struct grub_module_header): Change type
14392 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
14393 (grub_module_info): Likewise.
14394
14395 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
14396
14397 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
14398 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
14399 Velazquez <jesus.velazquez@gmail.com>.
14400
14401 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
14402
14403 Count partitions from 1 instead of 0 in the string representation
14404 of partitions. Still use 0-based internally.
14405
14406 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
14407 (sun_partition_map_iterate): Use grub_partition_t instead of
14408 struct grub_partition *. Cast DESC->START_CYLINDER to
14409 grub_uint64_t after converting the endian.
14410 (sun_partition_map_probe): Subtract 1 for PARTNUM.
14411 (sun_partition_map_get_name): Add 1 to P->INDEX.
14412
14413 * partmap/pc.c (grub_partition_parse): Subtract 1 for
14414 PCDATA->DOS_PART.
14415 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
14416
14417 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
14418 zero instead of one.
14419 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
14420 (gpt_partition_map_get_name): Add 1 into P->INDEX.
14421
14422 * partmap/apple.c (apple_partition_map_iterate): Change the type
14423 of POS to unsigned.
14424 (apple_partition_map_probe): Subtract 1 for PARTNUM.
14425 (apple_partition_map_get_name): Add 1 into P->INDEX.
14426
14427 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
14428 of POS to unsigned.
14429 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
14430 calculate the offset of a partition.
14431 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
14432 (amiga_partition_map_get_name): Add 1 into P->INDEX.
14433
14434 * partmap/acorn.c (acorn_partition_map_find): Change the type of
14435 SECTOR to grub_disk_addr_t.
14436 (acorn_partition_map_iterate): Likewise.
14437 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
14438 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
14439 top.
14440 (acorn_partition_map_get_name): Add 1 into P->INDEX.
14441
14442 * kern/i386/pc/init.c (make_install_device): Add 1 into
14443 GRUB_INSTALL_DOS_PART.
14444
14445 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
14446 conditional.
14447
14448 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
14449
14450 Clean up the code to support 64-bit addressing in disks and
14451 files. This change is not enough for filesystems yet.
14452
14453 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
14454 type of "start" to grub_uint64_t.
14455 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
14456 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
14457 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
14458 convert addresses.
14459
14460 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
14461 to grub_disk_addr_t.
14462
14463 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
14464 string.
14465
14466 * partmap/pc.c (pc_partition_map_iterate): Likewise.
14467
14468 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
14469 to char *.
14470
14471 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
14472
14473 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
14474
14475 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
14476
14477 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
14478 to grub_off_t, to detect an error from grub_file_seek.
14479 (grub_multiboot_load_elf32): Likewise.
14480
14481 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
14482 maximum unsigned long value when an overflow is detected.
14483 (grub_strtoull): New function.
14484 (grub_divmod64): Likewise.
14485 (grub_lltoa): use grub_divmod64.
14486
14487 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
14488 grub_disk_addr_t.
14489 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
14490 the pointer to next character. Use grub_strtoull instead of
14491 grub_strtoul.
14492 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
14493 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
14494 respectively.
14495
14496 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
14497 return value is signed.
14498 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
14499 test if OFFSET is less than zero, as OFFSET is unsigned now.
14500
14501 * kern/disk.c (struct grub_disk_cache): Change the type of
14502 "sector" to grub_disk_addr_t.
14503 (grub_disk_cache_get_index): Change the type of SECTOR to
14504 grub_disk_addr_t. Calculate the hash with SECTOR casted to
14505 unsigned after shifting.
14506 (grub_disk_cache_invalidate): Change the type of SECTOR to
14507 grub_disk_addr_t.
14508 (grub_disk_cache_unlock): Likewise.
14509 (grub_disk_cache_store): Likewise.
14510 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
14511 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
14512 grub_disk_addr_t and grub_uint64_t, respectively.
14513 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
14514 body, as the value of OFFSET is tweaked by
14515 grub_disk_check_range. Change the types of START_SECTOR, LEN and
14516 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
14517 respectively.
14518 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
14519 body, as the value of OFFSET is tweaked by
14520 grub_disk_check_range. Change the types of LEN and N to
14521 grub_size_t.
14522
14523 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
14524 and "saved_offset" to grub_off_t.
14525 (test_header): Cast BUF to char *.
14526 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
14527 to char *.
14528 (grub_gzio_read): Change the types of OFFSET and SIZE to
14529 grub_off_t and grub_size_t, respectively.
14530
14531 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
14532 Removed.
14533 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
14534 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
14535 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
14536 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
14537 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
14538
14539 * include/grub/types.h (grub_off_t): Unconditionally set to
14540 grub_uint64_t.
14541 (grub_disk_addr_t): Changed to grub_uint64_t.
14542
14543 * include/grub/partition.h (struct grub_partition): Change the
14544 types of "start", "len" and "offset" to grub_disk_addr_t,
14545 grub_uint64_t and grub_disk_addr_t, respectively.
14546 (grub_partition_get_start): Return grub_disk_addr_t.
14547 (grub_partition_get_len): Return grub_uint64_t.
14548
14549 * include/grub/misc.h (grub_strtoull): New prototype.
14550 (grub_divmod64): Likewise.
14551
14552 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
14553 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
14554 grub_off_t, respectively.
14555 All callers and references changed.
14556
14557 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
14558 grub_size_t in "read".
14559 All callers and references changed.
14560
14561 * include/grub/file.h (struct grub_file): Change the types of
14562 "offset" and "size" to grub_off_t and grub_off_t,
14563 respectively. Change the type of SECTOR to grub_disk_addr_t in
14564 "read_hook".
14565 (grub_file_read): Change the type of LEN to grub_size_t.
14566 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
14567 grub_off_t.
14568 (grub_file_size): Return grub_off_t.
14569 (grub_file_tell): Likewise.
14570 All callers and references changed.
14571
14572 * include/grub/disk.h (struct grub_disk_dev): Change the types of
14573 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
14574 "write".
14575 (struct grub_disk): Change the type of "total_sectors" to
14576 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
14577 "read_hook".
14578 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
14579 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
14580 (grub_disk_write): Likewise.
14581 All callers and references changed.
14582
14583 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
14584 char * for grub_strncmp to silence gcc.
14585 (grub_iso9660_mount): Likewise.
14586 (grub_iso9660_mount): Likewise.
14587 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
14588 return statement.
14589 (grub_iso9660_iterate_dir): Likewise.
14590 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
14591
14592 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
14593 LEN to grub_disk_addr_t and grub_size_t, respectively.
14594
14595 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
14596
14597 * fs/jfs.c (grub_jfs_read_file): Likewise.
14598
14599 * fs/minix.c (grub_jfs_read_file): Likewise.
14600
14601 * fs/sfs.c (grub_jfs_read_file): Likewise.
14602
14603 * fs/ufs.c (grub_jfs_read_file): Likewise.
14604
14605 * fs/xfs.c (grub_jfs_read_file): Likewise.
14606
14607 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
14608 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
14609 respectively.
14610
14611 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
14612 BLKNR to -1 instead of returning GRUB_ERRNO.
14613 (grub_ext2_read_file): Change the types of SECTOR and
14614 LEN to grub_disk_addr_t and grub_size_t, respectively.
14615
14616 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
14617 LEN to grub_disk_addr_t and grub_size_t, respectively.
14618
14619 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
14620 grub_file_read.
14621
14622 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
14623 string. Do not cast SECTOR explicitly.
14624
14625 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
14626 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
14627 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
14628 grub_disk_addr_t and grub_size_t, respectively. If the sector is
14629 over 2TB and LBA mode is not supported, raise an error.
14630 (get_safe_sectors): New function.
14631 (grub_biosdisk_read): Use get_safe_sectors.
14632 (grub_biosdisk_write): Likewise.
14633
14634 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
14635 (grub_efidisk_write): Likewise.
14636
14637 * disk/loopback.c (delete_loopback): Cosmetic changes.
14638 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
14639 correctly.
14640 (grub_loopback_open): Likewise.
14641 (grub_loopback_read): Likewise. Also, change the type of POS to
14642 grub_off_t, and fix the usage of grub_memset.
14643
14644 * commands/i386/pc/play.c: Include grub/machine/time.h.
14645
14646 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
14647 print FILE->SIZE.
14648
14649 * commands/configfile.c: Include grub/env.h.
14650
14651 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
14652 GRUB_ERRNO directly instead. Change the type of POS to
14653 grub_off_t. Follow the coding standard.
14654
14655 * commands/blocklist.c: Include grub/partition.h.
14656 (grub_cmd_blocklist): Return an error if the underlying device is
14657 not a disk. Take the starting sector of a partition into account,
14658 if a partition is used.
14659
14660 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
14661 a length field.
14662 (lba_mode): Support 64-bit addresses.
14663 (chs_mode): Likewise.
14664 (copy_buffer): Adapted to the new offsets of a length field and a
14665 segment field.
14666 (blocklist_default_start): Allocate 64-bit space.
14667
14668 * boot/i386/pc/boot.S (force_lba): Removed.
14669 (boot_drive): Moved to under KERNEL_SECTOR.
14670 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
14671 space.
14672 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
14673 is useless.
14674 (lba_mode): Refactored to support a 64-bit address. More size
14675 optimization.
14676 (setup_sectors): Likewise.
14677
14678 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
14679
14680 * DISTLIST: Added include/grub/i386/linux.h. Removed
14681 include/grub/i386/pc/linux.h
14682
14683 * configure.ac (AC_INIT): Bumped to 1.94.
14684
14685 * config.guess: Updated from gnulib.
14686 * config.sub: Likewise.
14687 * install-sh: Likewise.
14688 * mkinstalldirs: Likewise.
14689
14690 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
14691
14692 * conf/common.rmk (grub_modules_init.lst): Depended on
14693 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
14694 MODSRCFILES.
14695
14696 * genmk.rb (PModule::rule): Reverted the previous change.
14697
14698 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
14699
14700 * conf/common.rmk (grub_modules_init.lst): Depends on
14701 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
14702 that the target does not exist before producing.
14703 (grub_modules_init.h): Remove the target before generating.
14704 (grub_emu_init.c): Likewise.
14705
14706 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
14707
14708 2006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
14709
14710 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
14711 for the target-specific tests. Make sure that we also have the
14712 up-to-date target variables for those tests.
14713
14714 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
14715
14716 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
14717 (PModule::rule): Likewise.
14718
14719 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
14720
14721 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
14722 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
14723 target-specific flags should be prefixed.
14724 (PModule::rule): Likewise.
14725
14726 2006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
14727
14728 * configure.ac (CMP): Check if cmp is available explicitly.
14729
14730 2006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
14731
14732 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
14733 (target_cpu): New variable.
14734 (pkglibdir): Use target_cpu instead of host_cpu.
14735
14736 * util/i386/pc/grub-install.in (host_cpu): Removed.
14737 (target_cpu): New variable.
14738 (pkglibdir): Use target_cpu instead of host_cpu.
14739
14740 * util/genmoddep.c: Removed.
14741
14742 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
14743 instead of GRUB_HOST_SIZEOF_VOID_P.
14744 * kern/dl.c: Likewise.
14745
14746 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
14747 ...
14748 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
14749 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
14750 (GRUB_TARGET_SIZEOF_LONG): ... this.
14751 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
14752 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
14753 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
14754 to ...
14755 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
14756 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
14757 (GRUB_TARGET_SIZEOF_LONG): ... this.
14758 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
14759 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
14760 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
14761 to ...
14762 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
14763 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
14764 (GRUB_TARGET_SIZEOF_LONG): ... this.
14765 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
14766 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
14767
14768 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
14769 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
14770 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
14771 instead of GRUB_HOST_SIZEOF_LONG.
14772 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
14773 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
14774 GRUB_CPU_WORDS_BIGENDIAN.
14775 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
14776 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
14777 grub_host_ssize_t.
14778
14779 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
14780 (genmoddep_SOURCES): Likewise.
14781 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
14782 (genmoddep_SOURCES): Likewise.
14783 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
14784 (genmoddep_SOURCES): Likewise.
14785 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
14786 Likewise.
14787 (genmoddep_SOURCES): Likewise.
14788
14789 * genmoddep.awk: New file.
14790
14791 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
14792 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
14793 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
14794 (PModule::rule): Likewise.
14795 (Program::rule): Likewise.
14796 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
14797 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
14798 respectively.
14799
14800 * configure.ac: Rewritten intensively to use host and target
14801 instead of build and host, respectively.
14802
14803 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
14804 (host_cpu): Removed.
14805 (target_cpu): New variable.
14806 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
14807 (BUILD_CC): Removed.
14808 (BUILD_CFLAGS): Likewise.
14809 (BUILD_CPPFLAGS): Likewise.
14810 (TARGET_CC): New variable.
14811 (TARGET_CFLAGS): Likewise.
14812 (TARGET_CPPFLAGS): Likewise.
14813 (TARGET_LDFLAGS): Likewise.
14814 (AWK): Likewise.
14815 (include): Use target_cpu instead of host_cpu.
14816 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
14817
14818 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
14819
14820 2006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
14821
14822 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
14823 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
14824 field 'false' to 'exec_on_false'.
14825 (grub_script_create_cmdif): Renamed argument names to reflect above
14826 changes.
14827
14828 * normal/execute.c (grub_script_execute_cmdif): Likewise.
14829
14830 * normal/script.c (grub_script_create_cmdif): Likewise.
14831
14832 2006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
14833
14834 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
14835 top.
14836 (grub_hfsplus_btree_recptr): Likewise.
14837 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
14838 FILEBLOCK both to pass a block number and store next block
14839 number.
14840 (grub_hfsplus_read_block): Rewritten heavily to support an extent
14841 overflow file correctly. Specify errors appropriately, because
14842 fshelp expects that GRUB_ERRNO is set when fails. Reuse
14843 grub_hfsplus_btree_recptr to get the pointer to a found key.
14844 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
14845 is found.
14846
14847 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
14848 linux.mod.
14849 (_linux_mod_SOURCES): New variable.
14850 (_linux_mod_CFLAGS): Likewise.
14851 (_linux_mod_LDFLAGS): Likewise.
14852 (linux_mod_SOURCES): Likewise.
14853 (linux_mod_CFLAGS): Likewise.
14854 (linux_mod_LDFLAGS): Likewise.
14855
14856 * DISTLIST: Added loader/i386/efi/linux.c,
14857 loader/i386/efi/linux_normal.c and
14858 include/grub/i386/efi/loader.h.
14859
14860 * loader/i386/efi/linux.c: New file.
14861 * loader/i386/efi/linux_normal.c: Likewise.
14862 * include/grub/i386/efi/loader.h: Likewise.
14863
14864 2006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
14865
14866 * commands/blocklist.c: New file.
14867
14868 * DISTLIST: Added commands/blocklist.c.
14869
14870 * term/efi/console.c (grub_console_highlight_color): Use a lighter
14871 color for the background, and a darker color for the foreground.
14872 (grub_console_checkkey): Return READ_KEY.
14873 (grub_console_cls): Set the background to
14874 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
14875
14876 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
14877
14878 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
14879 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
14880
14881 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
14882 prototype.
14883
14884 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
14885 BG. The spec is wrong again.
14886
14887 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
14888 prototype.
14889 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
14890
14891 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
14892 commands/blocklist.c.
14893 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14894
14895 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
14896 (blocklist_mod_SOURCES): New variable.
14897 (blocklist_mod_CFLAGS): Likewise.
14898 (blocklist_mod_LDFLAGS): Likewise.
14899
14900 2006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
14901
14902 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
14903 duplication.
14904 (lba_mode): Use %eax more intensively to reduce the code size.
14905
14906 2006-05-20 Marco Gerards <marco@gnu.org>
14907
14908 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
14909
14910 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
14911 for `menuentry'.
14912 (script): Accept leading newlines.
14913 (newlines): New rule to describe 0 or more newlines.
14914 (commands): Accept `command' with trailing newline. Fixed the
14915 order in which arguments were passed to `grub_script_add_cmd'.
14916 Accept commands separated by newlines.
14917 (function): Changed to accept newlines.
14918 (menuentry) Rewritten.
14919
14920 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
14921 front of the list, instead of to the end.
14922
14923 2006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
14924
14925 * util/i386/pc/grub-install.in (bindir): New variable.
14926 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
14927 Shaver <lbgwjl@gmail.com>.
14928
14929 2006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
14930
14931 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
14932 grub/machine/linux.h
14933 * loader/i386/pc/linux.c: Likewise.
14934
14935 * include/grub/i386/pc/linux.h: Moved to ...
14936 * include/grub/i386/linux.h: ... here.
14937
14938 * include/grub/i386/linux.h (struct linux_kernel_params): New
14939 struct.
14940
14941 2006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
14942
14943 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
14944 checking.
14945 (grub_video_vbe_blit_glyph): Likewise.
14946 (grub_video_vbe_blit_bitmap): Likewise.
14947 (grub_video_vbe_blit_render_target): Likewise.
14948
14949 2006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
14950
14951 * configure.ac (--with-platform): Properly quote the square
14952 brackets.
14953
14954 2006-05-08 Marco Gerards <marco@gnu.org>
14955
14956 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
14957 this...
14958 (kernel_elf_HEADERS): ...to this. Updated all users.
14959 (grubof_symlist.c): Renamed from this...
14960 (kernel_elf_symlist.c): ...to this. Updated all users.
14961 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
14962 (grubof_SOURCES): Renamed from this...
14963 (kernel_elf_SOURCES): ...to this.
14964 (grubof_HEADERS): Renamed from this...
14965 (kernel_elf_HEADERS): ...to this.
14966 (grubof_CFLAGS): Renamed from this...
14967 (kernel_elf_CFLAGS): ...to this.
14968 (grubof_ASFLAGS): Renamed from this...
14969 (kernel_elf_ASFLAGS): ...to this.
14970 (grubof_LDFLAGS): Renamed from this...
14971 (kernel_elf_LDFLAGS): ...to this.
14972
14973 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
14974 this...
14975 (kernel_elf_HEADERS): ...to this. Updated all users.
14976 (grubof_symlist.c): Renamed from this...
14977 (kernel_elf_symlist.c): ...to this. Updated all users.
14978 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
14979 (grubof_SOURCES): Renamed from this...
14980 (kernel_elf_SOURCES): ...to this.
14981 (grubof_HEADERS): Renamed from this...
14982 (kernel_elf_HEADERS): ...to this.
14983 (grubof_CFLAGS): Renamed from this...
14984 (kernel_elf_CFLAGS): ...to this.
14985 (grubof_ASFLAGS): Renamed from this...
14986 (kernel_elf_ASFLAGS): ...to this.
14987 (grubof_LDFLAGS): Renamed from this...
14988 (kernel_elf_LDFLAGS): ...to this.
14989
14990 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
14991 `kernel.elf' instead of `grubof'.
14992
14993 2006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
14994
14995 Add --with-platform to configure. Use pkglibdir instead of
14996 pkgdatadir. This is reported by Roger Leigh.
14997
14998 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
14999 (host_vendor): Likewise.
15000 (host_os): Likewise.
15001 (pkgdatadir): Likewise.
15002 (platform): New variable.
15003 (pkglibdir): Likewise.
15004 Use PKGLIBDIR instead of PKGDATADIR.
15005
15006 * util/i386/pc/grub-install.in (datadir): Removed.
15007 (host_vendor): Likewise.
15008 (host_os): Likewise.
15009 (pkgdatadir): Likewise.
15010 (platform): New variable.
15011 (pkglibdir): Likewise.
15012 Use PKGLIBDIR instead of PKGDATADIR.
15013
15014 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
15015 instead of GRUB_DATADIR.
15016 (main): Likewise.
15017 * util/i386/pc/grub-mkimage.c (usage): Likewise.
15018 (main): Likewise.
15019 * util/i386/efi/grub-mkimage.c (usage): Likewise.
15020 (main): Likewise.
15021
15022 * configure.ac (--with-platform): New option.
15023 Use PLATFORM instead of HOST_VENDOR to specify a platform.
15024
15025 * Makefile.in: Include a makefile based on PLATFORM instead of
15026 HOST_VENDOR.
15027 (pkgdatadir): Not appended by the machine type.
15028 (pkglibdir): Appended by the machine type.
15029 (host_vendor): Removed.
15030 (platform): New variable.
15031 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
15032 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
15033 (uninstall): Likewise.
15034
15035 2006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
15036
15037 Use the environment context in the menu. Remove the commands
15038 "default" and "timeout", and use variables instead.
15039
15040 * normal/menu.c: Include grub/env.h.
15041 (print_entry): Cast TITLE to silence gcc.
15042 (get_timeout): New function.
15043 (set_timeout): Likewise.
15044 (get_entry_number): Likewise.
15045 (run_menu): Use a default entry, a fallback entry and a timeout
15046 in the environment variables "default", "fallback" and
15047 "timeout". Also, tweak the default entry if it is not within the
15048 current menu entries.
15049 (grub_menu_run): Use a fallback entry in the environment variable
15050 "fallback".
15051
15052 * normal/main.c (read_config_file): Do not initialize
15053 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
15054 NEWMENU->TIMEOUT.
15055 (grub_normal_execute): Use a data slot to store the menu.
15056
15057 * include/grub/normal.h (struct grub_menu): Removed default_entry,
15058 fallback_entry and timeout.
15059 (struct grub_menu_list): Removed.
15060 (grub_menu_list_t): Likewise.
15061 (struct grub_context): Likewise.
15062 (grub_context_t): Likewise.
15063 (grub_context_get): Likewise.
15064 (grub_context_get_current_menu): Likewise.
15065 (grub_context_push_menu): Likewise.
15066 (grub_context_pop_menu): Likewise.
15067 (grub_default_init): Likewise.
15068 (grub_default_fini): Likewise.
15069 (grub_timeout_init): Likewise.
15070 (grub_timeout_fini): Likewise.
15071
15072 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
15073 and timeout.mod.
15074 (normal_mod_SOURCES): Removed normal/context.c.
15075
15076 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
15077 commands/default.c, commands/timeout.c and normal/context.c.
15078 (normal_mod_SOURCES): Removed normal/context.c.
15079
15080 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
15081 commands/timeout.c and normal/context.c.
15082 (normal_mod_SOURCES): Removed normal/context.c.
15083
15084 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
15085 commands/default.c, commands/timeout.c and normal/context.c.
15086 (normal_mod_SOURCES): Removed normal/context.c.
15087
15088 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
15089 timeout.mod.
15090 (default_mod_SOURCES): Removed.
15091 (default_mod_CFLAGS): Likewise.
15092 (default_mod_LDFLAGS): Likewise.
15093 (timeout_mod_SOURCES): Removed.
15094 (timeout_mod_CFLAGS): Likewise.
15095 (timeout_mod_LDFLAGS): Likewise.
15096
15097 * DISTLIST: Removed commands/default.c, commands/timeout.c and
15098 normal/context.c.
15099
15100 * commands/default.c: Removed.
15101 * commands/timeout.c: Likewise.
15102 * normal/context.c: Likewise.
15103
15104 2006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
15105
15106 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
15107
15108 2006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
15109
15110 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
15111 "next" to "prev" for readability.
15112 (struct grub_env_sorted_var): New struct.
15113 (grub_env_context): Renamed to ...
15114 (initial_context): ... this.
15115 (grub_env_var_context): Renamed to ...
15116 (current_context): ... this.
15117 (grub_env_find): Look only at CURRENT_CONTEXT.
15118 (grub_env_context_open): Rewritten to copy exported variables from
15119 previous context.
15120 (grub_env_context_close): Rewritten according to the new
15121 scheme. Also, add an assertion to prevent the initial context from
15122 removed.
15123 (grub_env_insert): Removed the code for the sorted list.
15124 (grub_env_remove): Likewise.
15125 (grub_env_export): Simply mark the variable with
15126 GRUB_ENV_VAR_GLOBAL.
15127 (grub_env_set): A cosmetic change for naming consistency.
15128 (grub_env_get): Likewise.
15129 (grub_env_unset): Likewise.
15130 (grub_env_iterate): Rewritten to sort variables within this
15131 function.
15132 (grub_register_variable_hook): Fixed for naming consistency. Call
15133 grub_env_find again, only if NAME is not found at the first time.
15134 (mangle_data_slot_name): New function.
15135 (grub_env_set_data_slot): Likewise.
15136 (grub_env_get_data_slot): Likewise.
15137 (grub_env_unset_data_slot): Likewise.
15138
15139 * include/grub/env.h (grub_env_var_type): New enum.
15140 (GRUB_ENV_VAR_LOCAL): New constant.
15141 (GRUB_ENV_VAR_GLOBAL): Likewise.
15142 (GRUB_ENV_VAR_DATA): Likewise.
15143 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
15144 "type".
15145 (grub_env_set): Replace VAR with NAME for consistency.
15146 (grub_register_variable_hook): Likewise.
15147 (grub_env_export): Specify the name of the argument.
15148 (grub_env_set_data_slot): New prototype.
15149 (grub_env_get_data_slot): Likewise.
15150 (grub_env_unset_data_slot): Likewise.
15151
15152 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
15153
15154 Extend the loader so that GRUB can accept a loader which comes
15155 back to GRUB when a loaded image exits. Also, this change adds
15156 support for a chainloader on EFI.
15157
15158 * term/efi/console.c: Include grub/misc.h.
15159 (grub_console_checkkey): Display a scan code on the top for
15160 debugging. This will be removed once the EFI port gets stable.
15161 Correct the scan code mapping.
15162
15163 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
15164 allocate memory from larger regions, in order to reduce the number
15165 of allocated regions. Otherwise, the MacOSX loader panics.
15166 (filter_memory_map): Avoid less than 1MB for compatibility with
15167 other loaders.
15168 (add_memory_regions): Allocate from the tail of a region, if
15169 possible, to avoid allocating a region near to 1MB, for the MacOSX
15170 loader.
15171
15172 * kern/efi/init.c (grub_efi_set_prefix): Specify
15173 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
15174
15175 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
15176 argument IMAGE_HANDLE and specify it to get a loaded image.
15177 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
15178 grub_efi_get_loaded_image.
15179 (grub_efi_get_filename): Divide the length by the size of
15180 grub_efi_char16_t.
15181 (grub_efi_get_device_path): New function.
15182 (grub_efi_print_device_path): Print End Device Path nodes. Divide
15183 the length by the size of grub_efi_char16_t for a file path device
15184 path node.
15185
15186 * kern/loader.c (grub_loader_noreturn): New variable.
15187 (grub_loader_set): Accept a new argument NORETURN. Set
15188 GRUB_LOADER_NORETURN to NORETURN.
15189 All callers changed.
15190 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
15191 grub_machine_fini.
15192
15193 * include/grub/efi/efi.h (grub_efi_get_device_path): New
15194 prototype.
15195 (grub_efi_get_loaded_image): Take an argument to specify an image
15196 handle.
15197
15198 * include/grub/loader.h (grub_loader_set): Added one more argument
15199 NORETURN.
15200
15201 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
15202 instead of grub_efi_open_protocol.
15203 (grub_efidisk_get_device_name): Likewise.
15204 (grub_efidisk_close): Print a newline.
15205 (grub_efidisk_get_device_handle): Fixed to use
15206 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
15207 GRUB_EFI_DEVICE_PATH_TYPE.
15208
15209 * disk/efi/efidisk.c (device_path_guid): Moved to ...
15210 * kern/efi/efi.c (device_path_guid): ... here.
15211
15212 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
15213 chain.mod.
15214 (kernel_mod_HEADERS): Added efi/disk.h.
15215 (_chain_mod_SOURCES): New variable.
15216 (_chain_mod_CFLAGS): Likewise.
15217 (_chain_mod_LDFLAGS): Likewise.
15218 (chain_mod_SOURCES): Likewise.
15219 (chain_mod_CFLAGS): Likewise.
15220 (chain_mod_LDFLAGS): Likewise.
15221
15222 * DISTLIST: Added include/grub/efi/chainloader.h,
15223 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
15224
15225 * include/grub/efi/chainloader.h: New file.
15226 * loader/efi/chainloader.c: Likewise.
15227 * loader/efi/chainloader_normal.c: Likewise.
15228
15229 2006-04-30 Marco Gerards <marco@gnu.org>
15230
15231 * commands/configfile.c (grub_cmd_source): New function.
15232 (GRUB_MOD_INIT): Register the commands `source' and `.'.
15233 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
15234
15235 2006-04-30 Marco Gerards <marco@gnu.org>
15236
15237 * normal/execute.c (grub_script_execute_cmd): Change the return
15238 type to `grub_err_t'. Correctly return the error.
15239 (grub_script_execute_cmdline): In case a command line is not a
15240 command or a function, try to interpret it as an assignment.
15241
15242 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
15243
15244 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
15245 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
15246 skip a node whose name is obviously invalid as UTF-16,
15247 i.e. contains a NUL character. Stop the iteration when the last
15248 directory entry is found. Instead of using the return value of
15249 grub_hfsplus_btree_iterate_node, store the value in RET and use
15250 it, because the iterator can be stopped by the last directory
15251 entry.
15252
15253 2006-04-30 Marco Gerards <marco@gnu.org>
15254
15255 * include/grub/env.h (grub_env_export): New prototype. Reported
15256 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
15257
15258 2006-04-30 Marco Gerards <marco@gnu.org>
15259
15260 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
15261 size of the extents in a catalog file record.
15262
15263 2006-04-29 Marco Gerards <marco@gnu.org>
15264
15265 * commands/configfile.c (grub_cmd_configfile): Execute the
15266 configfile within its own context.
15267
15268 * include/grub/env.h (grub_env_context_open): New prototype.
15269 (grub_env_context_close): Likewise.
15270
15271 * kern/env.c (grub_env): Removed.
15272 (grub_env_sorted): Likewise.
15273 (grub_env_context): New variable.
15274 (grub_env_var_context): Likewise.
15275 (grub_env_find): Search both the active context and the global
15276 context.
15277 (grub_env_context_open): New function.
15278 (grub_env_context_close): Likewise.
15279 (grub_env_insert): Likewise.
15280 (grub_env_remove): Likewise.
15281 (grub_env_export): Likewise.
15282 (grub_env_set): Changed to use helper functions to avoid code
15283 duplication.
15284 (grub_env_iterate): Rewritten so both the current context and the
15285 global context are being used.
15286
15287 * normal/command.c (export_command): New function.
15288 (grub_command_init): Register the `export' function.
15289
15290 2006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
15291
15292 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
15293 explicitly to suppress gcc's warnings.
15294 * fs/fat.c (grub_fat_find_dir): Likewise.
15295 (grub_fat_label): Likewise.
15296 * fs/xfs.c (grub_xfs_read_inode): Likewise.
15297 (grub_xfs_mount): Likewise.
15298 (grub_xfs_label): Likewise.
15299 * fs/affs.c (grub_affs_mount): Likewise.
15300 (grub_affs_label): Likewise.
15301 (grub_affs_iterate_dir): Likewise.
15302 * fs/sfs.c (grub_sfs_mount): Likewise.
15303 (grub_sfs_iterate_dir): Likewise.
15304 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
15305 * fs/hfs.c (grub_hfs_mount): Likewise.
15306 (grub_hfs_cmp_catkeys): Likewise.
15307 (grub_hfs_find_dir): Likewise.
15308 (grub_hfs_dir): Likewise.
15309 (grub_hfs_label): Likewise.
15310 * fs/jfs.c (grub_jfs_mount): Likewise.
15311 (grub_jfs_opendir): Likewise.
15312 (grub_jfs_getent): Likewise.
15313 (grub_jfs_lookup_symlink): Likewise.
15314 (grub_jfs_label): Likewise.
15315 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
15316 (grub_hfsplus_iterate_dir): Likewise.
15317 (grub_hfsplus_btree_iterate_node): Made static.
15318
15319 * util/grub-emu.c (prefix): New variable.
15320 (grub_machine_set_prefix): New function.
15321 (main): Do not set the environment variable "prefix" here. Only
15322 set PREFIX, which is used later by grub_machine_set_prefix.
15323
15324 * include/grub/video.h: Do not include grub/symbol.h.
15325 (grub_video_register): Not exported. This symbol is not defined in
15326 the kernel.
15327 (grub_video_unregister): Likewise.
15328 (grub_video_iterate): Likewise.
15329 (grub_video_setup): Likewise.
15330 (grub_video_restore): Likewise.
15331 (grub_video_get_info): Likewise.
15332 (grub_video_get_blit_format): Likewise.
15333 (grub_video_set_palette): Likewise.
15334 (grub_video_get_palette): Likewise.
15335 (grub_video_set_viewport): Likewise.
15336 (grub_video_get_viewport): Likewise.
15337 (grub_video_map_color): Likewise.
15338 (grub_video_map_rgb): Likewise.
15339 (grub_video_map_rgba): Likewise.
15340 (grub_video_fill_rect): Likewise.
15341 (grub_video_blit_glyph): Likewise.
15342 (grub_video_blit_bitmap): Likewise.
15343 (grub_video_blit_render_target): Likewise.
15344 (grub_video_scroll): Likewise.
15345 (grub_video_swap_buffers): Likewise.
15346 (grub_video_create_render_target): Likewise.
15347 (grub_video_delete_render_target): Likewise.
15348 (grub_video_set_active_render_target): Likewise.
15349
15350 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
15351 Undefined.
15352 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
15353
15354 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
15355 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
15356 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
15357 instead of $(srcdir)/genkernsyms.sh.
15358
15359 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
15360 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
15361 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
15362 instead of $(srcdir)/genkernsyms.sh.
15363
15364 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
15365 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
15366 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
15367 instead of $(srcdir)/genkernsyms.sh.
15368
15369 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
15370 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
15371 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
15372 instead of $(srcdir)/genkernsyms.sh.
15373
15374 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
15375 genkernsyms.sh.
15376
15377 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
15378 genkernsyms.sh.
15379 (gensymlist.sh): New target.
15380 (genkernsyms.sh): Likewise.
15381
15382 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
15383 genkernsyms.sh.in and gensymlist.sh.in.
15384
15385 * genkernsyms.sh: Removed.
15386 * gensymlist.sh: Likewise.
15387
15388 * genkernsyms.sh.in: New file.
15389 * gensymlist.sh.in: Likewise.
15390
15391 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
15392
15393 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
15394 clobber "prefix", since we may have already set it manually.
15395
15396 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
15397
15398 * kern/misc.c (abort): New alias for grub_abort.
15399
15400 2006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
15401
15402 A new machine-specific function "grub_machine_set_prefix" is
15403 defined. This is called after loading modules, so that a prefix
15404 initialization can use modules. Also, this change adds an
15405 intensive debugging feature for the memory manager via the
15406 configure option "--enable-mm-debug".
15407
15408 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
15409 PART.LEN.
15410
15411 * kern/sparc64/ieee1275/init.c (abort): Removed.
15412 (grub_stop): Likewise.
15413 (grub_exit): New function.
15414 (grub_set_prefix): Renamed to ...
15415 (grub_machine_set_prefix): ... this.
15416 (grub_machine_init): Do not call grub_set_prefix.
15417
15418 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
15419 (grub_machine_set_prefix): ... this.
15420 (grub_machine_init): Do not call grub_set_prefix.
15421
15422 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
15423 (grub_machine_init): Do not set the prefix here.
15424
15425 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
15426
15427 * kern/efi/init.c: Include grub/mm.h.
15428 (grub_efi_set_prefix): New function.
15429
15430 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
15431 (grub_efi_get_filename): New function.
15432 (grub_print_device_path): Renamed to ...
15433 (grub_efi_print_device_path): ... this.
15434
15435 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
15436 [MM_DEBUG] (grub_realloc): Likewise.
15437 [MM_DEBUG] (grub_free): Likewise.
15438 [MM_DEBUG] (grub_memalign): Likewise.
15439 [MM_DEBUG] (grub_mm_debug): New variable.
15440 [MM_DEBUG] (grub_debug_malloc): New function.
15441 [MM_DEBUG] (grub_debug_free): New function.
15442 [MM_DEBUG] (grub_debug_realloc): New function.
15443 [MM_DEBUG] (grub_debug_memalign): New function.
15444
15445 * kern/misc.c (grub_abort): Print a newline to distinguish
15446 the message.
15447
15448 * kern/main.c (grub_main): Call grub_machine_set_prefix and
15449 grub_set_root_dev after loading modules. This is necessary when
15450 setting a prefix depends on modules.
15451
15452 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
15453 (grub_efi_print_device_path): ... this.
15454 (grub_efi_get_filename): New prototype.
15455 (grub_efi_set_prefix): Likewise.
15456
15457 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
15458 and grub/disk.h.
15459 (grub_efidisk_get_device_handle): New prototype.
15460 (grub_efidisk_get_device_name): Likewise.
15461
15462 * include/grub/mm.h: Include config.h.
15463 (MM_DEBUG): Removed.
15464 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
15465 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
15466 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
15467 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
15468 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
15469 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
15470 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
15471 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
15472 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
15473
15474 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
15475
15476 * disk/efi/efidisk.c: Include grub/partition.h.
15477 (iterate_child_devices): New function.
15478 (add_device): First, compare only last device path nodes, so that
15479 devices are sorted by the types.
15480 (grub_efidisk_get_device_handle): New function.
15481 (grub_efidisk_get_device_name): Likewise.
15482
15483 * configure.ac (--enable-mm-debug): New option to enable the
15484 memory manager debugging feature. This makes the binary much
15485 bigger, so is disabled by default.
15486
15487 2006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
15488
15489 Use grub_abort instead of grub_stop, and grub_exit must be
15490 define in each architecture now. Also, this change adds support
15491 for EFI disks.
15492
15493 * util/i386/pc/grub-probefs.c: Include grub/term.h.
15494 (grub_getkey): New function.
15495 (grub_term_get_current): Likewise.
15496
15497 * util/i386/pc/grub-setup.c: Include grub/term.h.
15498 (grub_getkey): New function.
15499 (grub_term_get_current): Likewise.
15500
15501 * util/misc.c (grub_stop): Renamed to ...
15502 (grub_exit): ... this.
15503
15504 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
15505 (grub_exit): ... this.
15506 (grub_machine_init): Use grub_abort instead of abort.
15507 (grub_stop): Removed.
15508
15509 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
15510 abort.
15511
15512 * kern/i386/pc/startup.S (grub_exit): New function.
15513 (cold_reboot): New label.
15514
15515 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
15516 (grub_efi_init): Call grub_efidisk_init.
15517 (grub_efi_fini): Call grub_efidisk_fini.
15518
15519 * kern/efi/efi.c: Include grub/mm.h.
15520 (grub_efi_console_control_guid): Renamed to ...
15521 (console_control_guid): ... this.
15522 (grub_efi_loaded_image_guid): Renamed to ...
15523 (loaded_image_guid): ... this.
15524 (grub_efi_locate_handle): New function.
15525 (grub_efi_open_protocol): Likewise.
15526 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
15527 GRUB_EFI_CONSOLE_CONTROL_GUID.
15528 (grub_efi_exit): Removed.
15529 (grub_stop): Likewise.
15530 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
15531 (grub_exit): New function.
15532 (grub_print_device_path): Likewise.
15533
15534 * kern/rescue.c (grub_rescue_cmd_exit): New function.
15535 (grub_enter_rescue_mode): Register "exit".
15536
15537 * kern/misc.c (grub_real_dprintf): A cosmetic change.
15538 (grub_abort): New function.
15539
15540 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
15541
15542 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
15543
15544 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
15545
15546 * include/grub/efi/efi.h (grub_efi_exit): Removed.
15547 (grub_print_device_path): New prototype.
15548 (grub_efi_locate_handle): Likewise.
15549 (grub_efi_open_protocol): Likewise.
15550
15551 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
15552 * disk/efi/efidisk.c: Likewise.
15553
15554 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
15555
15556 * include/grub/efi/console_control.h
15557 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
15558
15559 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
15560 last 8 bytes as an array.
15561 (GRUB_EFI_DISK_IO_GUID): New macro.
15562 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
15563 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
15564 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
15565 grub_uint8_t.
15566 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
15567 (struct grub_efi_device_path): Rename the member "sub_type" to
15568 "subtype".
15569 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
15570 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
15571 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
15572 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
15573 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
15574 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
15575 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
15576 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
15577 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
15578 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
15579 (struct grub_efi_pci_device_path): New structure.
15580 (grub_efi_pci_device_path_t): New type.
15581 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
15582 (struct grub_efi_pccard_device_path): New structure.
15583 (grub_efi_pccard_device_path_t): New type.
15584 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
15585 (struct grub_efi_memory_mapped_device_path): New structure.
15586 (grub_efi_memory_mapped_device_path_t): New type.
15587 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
15588 (struct grub_efi_vendor_device_path): New structure.
15589 (grub_efi_vendor_device_path_t): New type.
15590 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
15591 (struct grub_efi_controller_device_path): New structure.
15592 (grub_efi_controller_device_path_t): New type.
15593 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
15594 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
15595 (struct grub_efi_acpi_device_path): New structure.
15596 (grub_efi_acpi_device_path_t): New type.
15597 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
15598 (struct grub_efi_expanded_acpi_device_path): New structure.
15599 (grub_efi_expanded_acpi_device_path_t): New type.
15600 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
15601 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
15602 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
15603 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
15604 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
15605 (struct grub_efi_atapi_device_path): New structure.
15606 (grub_efi_atapi_device_path_t): New type.
15607 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
15608 (struct grub_efi_fibre_channel_device_path): New structure.
15609 (grub_efi_fibre_channel_device_path_t): New type.
15610 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
15611 (struct grub_efi_1394_device_path): New structure.
15612 (grub_efi_1394_device_path_t): New type.
15613 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
15614 (struct grub_efi_usb_device_path): New structure.
15615 (grub_efi_usb_device_path_t): New type.
15616 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
15617 (struct grub_efi_usb_class_device_path): New structure.
15618 (grub_efi_usb_class_device_path_t): New type.
15619 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
15620 (struct grub_efi_i2o_device_path): New structure.
15621 (grub_efi_i2o_device_path_t): New type.
15622 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
15623 (struct grub_efi_mac_address_device_path): New structure.
15624 (grub_efi_mac_address_device_path_t): New type.
15625 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
15626 (struct grub_efi_ipv4_device_path): New structure.
15627 (grub_efi_ipv4_device_path_t): New type.
15628 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
15629 (struct grub_efi_ipv6_device_path): New structure.
15630 (grub_efi_ipv6_device_path_t): New type.
15631 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
15632 (struct grub_efi_infiniband_device_path): New structure.
15633 (grub_efi_infiniband_device_path_t): New type.
15634 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
15635 (struct grub_efi_uart_device_path): New structure.
15636 (grub_efi_uart_device_path_t): New type.
15637 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
15638 (struct grub_efi_vendor_messaging_device_path): New structure.
15639 (grub_efi_vendor_messaging_device_path_t): New type.
15640 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
15641 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
15642 (struct grub_efi_hard_drive_device_path): New structure.
15643 (grub_efi_hard_drive_device_path_t): New type.
15644 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
15645 (struct grub_efi_cdrom_device_path): New structure.
15646 (grub_efi_cdrom_device_path_t): New type.
15647 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
15648 (struct grub_efi_vendor_media_device_path): New structure.
15649 (grub_efi_vendor_media_device_path_t): New type.
15650 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
15651 (struct grub_efi_file_path_device_path): New structure.
15652 (grub_efi_file_path_device_path_t): New type.
15653 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
15654 (struct grub_efi_protocol_device_path): New structure.
15655 (grub_efi_protocol_device_path_t): New type.
15656 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
15657 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
15658 (struct grub_efi_bios_device_path): New structure.
15659 (grub_efi_bios_device_path_t): New type.
15660 (struct grub_efi_disk_io): New structure.
15661 (grub_efi_disk_io_t): New type.
15662 (struct grub_efi_block_io_media): New structure.
15663 (grub_efi_block_io_media_t): New type.
15664 (struct grub_efi_block_io): New structure.
15665 (grub_efi_block_io_t): New type.
15666
15667 * include/grub/misc.h (grub_stop): Removed.
15668 (grub_exit): New prototype.
15669 (grub_abort): Likewise.
15670
15671 * include/grub/disk.h (enum grub_disk_dev_id): Added
15672 GRUB_DISK_DEVICE_EFIDISK_ID.
15673
15674 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
15675 disk/efi/efidisk.c.
15676 (kernel_syms.lst): Remove the target if an error occurs.
15677
15678 2006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
15679
15680 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
15681 as it was simply too buggy.
15682
15683 2006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
15684
15685 * kern/misc.c (grub_lltoa): New function.
15686 (grub_vsprintf): Added support for the long long suffix,
15687 i.e. "ll".
15688
15689 2006-04-20 Hollis Blanchard <hollis@penguinppc.org>
15690
15691 * Makefile.in (LDFLAGS): Add variable.
15692 (LD): Remove variable.
15693 * configure.ac: Add -m32 to LDFLAGS.
15694 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
15695 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
15696 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
15697 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
15698 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
15699 variables.
15700 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
15701 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
15702 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
15703
15704 2006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
15705
15706 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
15707 length for unknown glyph.
15708
15709 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
15710
15711 Add support for pre-loaded modules into the EFI port.
15712
15713 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
15714 completely. Accept one more argument DIR. The caller has changed.
15715
15716 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
15717
15718 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
15719 (grub_efi_loaded_image_guid): New variable.
15720 (grub_efi_get_loaded_image): New function.
15721 (grub_arch_modules_addr): Likewise.
15722
15723 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
15724 prototype.
15725
15726 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
15727 (struct grub_efi_loaded_image): New structure.
15728 (grub_efi_loaded_image_t): New type.
15729
15730 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
15731
15732 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
15733 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
15734 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
15735
15736 2006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
15737
15738 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
15739
15740 2006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
15741
15742 * DISTLIST: Added include/grub/efi/console.h,
15743 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
15744 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
15745
15746 * include/grub/efi/console.h: New file.
15747 * include/grub/efi/time.h: Likewise.
15748 * include/grub/i386/efi/kernel.h: Likewise.
15749 * kern/efi/init.c: Likewise.
15750 * kern/efi/mm.c: Likewise.
15751 * term/efi/console.c: Likewise.
15752
15753 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
15754 (grub_stop): Removed.
15755 (grub_get_rtc): Likewise.
15756 (grub_machine_init): Simply call grub_efi_init.
15757 (grub_machine_fini): Call grub_efi_fini.
15758
15759 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
15760 (grub_efi_output_string): Removed.
15761 (grub_efi_stall): New function.
15762 (grub_stop): Likewise.
15763 (grub_get_rtc): Likewise.
15764
15765 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
15766 (grub_efi_stall): New prototype.
15767 (grub_efi_allocate_pages): Likewise.
15768 (grub_efi_free_pages): Likewise.
15769 (grub_efi_get_memory_map): Likewise.
15770 (grub_efi_mm_init): Likewise.
15771 (grub_efi_mm_fini): Likewise.
15772 (grub_efi_init): Likewise.
15773 (grub_efi_fini): Likewise.
15774
15775 * include/grub/i386/efi/time.h: Do not include
15776 grub/symbol.h. Include grub/efi/time.h.
15777 (GRUB_TICKS_PER_SECOND): Removed.
15778 (grub_get_rtc): Likewise.
15779
15780 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
15781 Added padding. The EFI spec is buggy.
15782 (GRUB_EFI_BLACK): New macro.
15783 (GRUB_EFI_BLUE): Likewise.
15784 (GRUB_EFI_GREEN): Likewise.
15785 (GRUB_EFI_CYAN): Likewise.
15786 (GRUB_EFI_RED): Likewise.
15787 (GRUB_EFI_MAGENTA): Likewise.
15788 (GRUB_EFI_BROWN): Likewise.
15789 (GRUB_EFI_LIGHTGRAY): Likewise.
15790 (GRUB_EFI_BRIGHT): Likewise.
15791 (GRUB_EFI_DARKGRAY): Likewise.
15792 (GRUB_EFI_LIGHTBLUE): Likewise.
15793 (GRUB_EFI_LIGHTGREEN): Likewise.
15794 (GRUB_EFI_LIGHTCYAN): Likewise.
15795 (GRUB_EFI_LIGHTRED): Likewise.
15796 (GRUB_EFI_LIGHTMAGENTA): Likewise.
15797 (GRUB_EFI_YELLOW): Likewise.
15798 (GRUB_EFI_WHITE): Likewise.
15799 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
15800 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
15801 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
15802 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
15803 (GRUB_EFI_BACKGROUND_RED): Likewise.
15804 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
15805 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
15806 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
15807 (GRUB_EFI_TEXT_ATTR): Likewise.
15808
15809 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
15810 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
15811 (kernel_mod_HEADERS): Added efi/time.h.
15812
15813 2006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
15814
15815 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
15816 include/grub/efi/api.h, include/grub/efi/console_control.h,
15817 include/grub/efi/efi.h, include/grub/efi/pe32.h,
15818 include/grub/i386/efi/time.h, kern/efi/efi.c,
15819 kern/i386/efi/init.c, kern/i386/efi/startup.S,
15820 and util/i386/efi/grub-mkimage.c.
15821
15822 * Makefile.in (RMKFILES): Added i386-efi.rmk.
15823
15824 * genmk.rb (PModule#rule): Do not export symbols if
15825 #{prefix}_EXPORTS is set to "no".
15826
15827 * conf/i386-efi.mk: New file.
15828 * conf/i386-efi.rmk: Likewise.
15829 * include/grub/efi/api.h: Likewise.
15830 * include/grub/efi/console_control.h: Likewise.
15831 * include/grub/efi/efi.h: Likewise.
15832 * include/grub/efi/pe32.h: Likewise.
15833 * include/grub/i386/efi/time.h: Likewise.
15834 * kern/efi/efi.c: Likewise.
15835 * kern/i386/efi/init.c: Likewise.
15836 * kern/i386/efi/startup.S: Likewise.
15837 * util/i386/efi/grub-mkimage.c: Likewise.
15838
15839 2006-04-17 Marco Gerards <marco@gnu.org>
15840
15841 * include/grub/script.h: Include <grub/parser.h> and
15842 "grub_script.tab.h".
15843 (struct grub_lexer_param): New struct.
15844 (struct grub_parser_param): Likewise.
15845 (grub_script_create_arglist): Pass the state in an argument.
15846 (grub_script_add_arglist): Likewise.
15847 (grub_script_create_cmdline): Likewise.
15848 (grub_script_create_cmdblock): Likewise.
15849 (grub_script_create_cmdif): Likewise.
15850 (grub_script_create_cmdmenu): Likewise.
15851 (grub_script_add_cmd): Likewise.
15852 (grub_script_arg_add): Likewise.
15853 (grub_script_lexer_ref): Likewise.
15854 (grub_script_lexer_deref): Likewise.
15855 (grub_script_lexer_record_start): Likewise.
15856 (grub_script_lexer_record_stop): Likewise.
15857 (grub_script_mem_record): Likewise.
15858 (grub_script_mem_record_stop): Likewise.
15859 (grub_script_malloc): Likewise.
15860 (grub_script_yylex): Likewise.
15861 (grub_script_yyparse): Likewise.
15862 (grub_script_yyerror): Likewise.
15863 (grub_script_yylex): Likewise.
15864 (grub_script_lexer_init): Return the state.
15865
15866 * normal/lexer.c (grub_script_lexer_state): Removed variable.
15867 (grub_script_lexer_done): Likewise.
15868 (grub_script_lexer_getline): Likewise.
15869 (grub_script_lexer_refs): Likewise.
15870 (script): Likewise.
15871 (newscript): Likewise.
15872 (record): Likewise.
15873 (recording): Likewise.
15874 (recordpos): Likewise.
15875 (recordlen): Likewise.
15876 (grub_script_lexer_init): Return the state instead of setting
15877 global variables.
15878 (grub_script_lexer_ref): Use the newly added argument for state
15879 instead of globals.
15880 (grub_script_lexer_deref): Likewise.
15881 (grub_script_lexer_record_start): Likewise.
15882 (grub_script_lexer_record_stop): Likewise.
15883 (recordchar): Likewise.
15884 (nextchar): Likewise.
15885 (grub_script_yylex2): Likewise.
15886 (grub_script_yylex): Likewise.
15887 (grub_script_yyerror): Likewise.
15888
15889 * normal/parser.y (func_mem): Removed variable.
15890 (menu_entry): Likewise.
15891 (err): Likewise.
15892 (%lex-param): New parser option.
15893 (%parse-param): Likewise.
15894 (script): Always return the AST.
15895 (argument): Pass the state around.
15896 (arguments): Likewise.
15897 (grubcmd): Likewise.
15898 (commands): Likewise.
15899 (function): Likewise.
15900 (menuentry): Likewise.
15901 (if_statement): Likewise.
15902 (if): Likewise.
15903
15904 * normal/script.c (grub_script_memused): Removed variable.
15905 (grub_script_parsed): Likewise.
15906 (grub_script_malloc): Added a state argument. Use that instead of
15907 global variables.
15908 (grub_script_mem_record): Likewise.
15909 (grub_script_mem_record_stop): Likewise.
15910 (grub_script_arg_add): Likewise.
15911 (grub_script_add_arglist): Likewise.
15912 (grub_script_create_cmdline): Likewise.
15913 (grub_script_create_cmdif): Likewise.
15914 (grub_script_create_cmdmenu): Likewise.
15915 (grub_script_add_cmd): Likewise.
15916 (grub_script_parse): Setup the state before calling the parser.
15917
15918 2006-04-16 Marco Gerards <marco@gnu.org>
15919
15920 * normal/command.c (grub_command_init): Remove the title command.
15921
15922 * normal/lexer.c (grub_script_yylex): Renamed from this...
15923 (grub_script_yylex2): ... to this.
15924 (grub_script_yylex): New function. Temporary
15925 introduced to filter some tokens.
15926 (grub_script_yyerror): Print a newline.
15927
15928 * normal/main.c (read_config_file): Output information about the
15929 lines that contain errors. Wait for a key after all lines have
15930 been processed. Don't return an empty menu.
15931
15932 * normal/parser.y (func_mem): Don't initialize.
15933 (menu_entry): Likewise.
15934 (err): New variable.
15935 (script): Don't return anything when an error was encountered.
15936 (ws, returns): Removed rules.
15937 (argument): Disabled concatenated variable support.
15938 (arguments): Remove explicit separators.
15939 (grubcmd): Likewise.
15940 (function): Likewise.
15941 (menuentry): Likewise.
15942 (if): Likewise.
15943 (commands): Likewise. Add error handling.
15944
15945 * normal/script.c (grub_script_create_cmdline): If
15946 `grub_script_parsed' is 0, assume the parser encountered an error.
15947
15948 2006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
15949
15950 * configure.ac: Add support for EFI. Fix the typo
15951 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
15952
15953 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
15954
15955 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
15956 foreign multibyte characters should be shown correctly.
15957
15958 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
15959
15960 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
15961 calculation.
15962 (read_config_file): Made it to close file before returning.
15963
15964 2006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
15965
15966 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
15967 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
15968 video/i386/pc/vbefill.c.
15969
15970 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
15971 video/i386/pc/vbefill.c.
15972
15973 * include/grub/video.h (grub_video_blit_format): New enum.
15974 (grub_video_mode_info): Added new member blit_format.
15975 (grub_video_get_blit_format): New function prototype.
15976
15977 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
15978 function prototype.
15979 (grub_video_vbe_map_rgb): Likewise.
15980 (grub_video_vbe_unmap_color): Likewise.
15981
15982 * include/grub/i386/pc/vbeblit.h: New file.
15983
15984 * include/grub/i386/pc/vbefill.h: New file.
15985
15986 * video/video.c (grub_video_get_blit_format): New function.
15987 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
15988 (grub_video_vbe_map_rgb): Likewise.
15989 (grub_video_vbe_unmap_color): Likewise.
15990
15991 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
15992 optimized fills.
15993 (grub_video_vbe_blit_render_target): Changed to use more optimized
15994 blits.
15995 (grub_video_vbe_setup): Added detection for optimized settings.
15996 (grub_video_vbe_create_render_target): Likewise.
15997
15998 * video/i386/pc/vbeblit.c: New file.
15999
16000 * video/i386/pc/vbefill.c: New file.
16001
16002 2006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
16003
16004 * font/manager.c (grub_font_get_glyph): Removed font fixup from
16005 here...
16006
16007 * util/unifont2pff.rb: ... and moved it to here. Improved argument
16008 parsing to support both hex and dec ranges. If filename was missing
16009 show usage information.
16010
16011 2006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
16012
16013 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
16014 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
16015
16016 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
16017 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
16018 (video_mod_SOURCES): Added.
16019 (video_mod_CFLAGS): Likewise.
16020 (video_mod_LDFLAGS): Likewise.
16021 (gfxterm_mod_SOURCES): Likewise.
16022 (gfxterm_mod_CFLAGS): Likewise.
16023 (gfxterm_mod_LDFLAGS): Likewise.
16024 (videotest_mod_SOURCES): Likewise.
16025 (videotest_mod_CFLAGS): Likewise.
16026 (videotest_mod_LDFLAGS): Likewise.
16027 (vesafb_mod_SOURCES): Removed.
16028 (vesafb_mod_CFLAGS): Likewise.
16029 (vesafb_mod_LDFLAGS): Likewise.
16030 (vga_mod_SOURCES): Likewise.
16031 (vga_mod_CFLAGS): Likewise.
16032 (vga_mod_LDFLAGS): Likewise.
16033
16034 * commands/videotest.c: New file.
16035
16036 * font/manager.c (fill_with_default_glyph): Modified to use
16037 grub_font_glyph.
16038 (grub_font_get_glyph): Likewise.
16039 (fontmanager): Renamed from this...
16040 (font_manager): ... to this.
16041
16042 * include/grub/font.h (grub_font_glyph): Added new structure.
16043 (grub_font_get_glyph): Modified to use grub_font_glyph.
16044
16045 * include/grub/misc.h (grub_abs): Added as inline function.
16046
16047 * include/grub/video.h: New file.
16048
16049 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
16050 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
16051 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
16052 (grub_vbe_get_controller_info): Renamed from this...
16053 (grub_vbe_bios_get_controller_info): ... to this.
16054 (grub_vbe_get_mode_info): Renamed from this...
16055 (grub_vbe_bios_get_mode_info): ... to this.
16056 (grub_vbe_set_mode): Renamed from this...
16057 (grub_vbe_bios_set_mode): ... to this.
16058 (grub_vbe_get_mode): Renamed from this...
16059 (grub_vbe_bios_get_mode): ... to this.
16060 (grub_vbe_set_memory_window): Renamed from this...
16061 (grub_vbe_bios_set_memory_window): ... to this.
16062 (grub_vbe_get_memory_window): Renamed from this...
16063 (grub_vbe_bios_get_memory_window): ... to this.
16064 (grub_vbe_set_scanline_length): Renamed from this...
16065 (grub_vbe_set_scanline_length): ... to this.
16066 (grub_vbe_get_scanline_length): Renamed from this...
16067 (grub_vbe_bios_get_scanline_length): ... to this.
16068 (grub_vbe_set_display_start): Renamed from this...
16069 (grub_vbe_bios_set_display_start): ... to this.
16070 (grub_vbe_get_display_start): Renamed from this...
16071 (grub_vbe_bios_get_display_start): ... to this.
16072 (grub_vbe_set_palette_data): Renamed from this...
16073 (grub_vbe_bios_set_palette_data): ... to this.
16074 (grub_vbe_set_pixel_rgb): Removed.
16075 (grub_vbe_set_pixel_index): Likewise.
16076
16077 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
16078 from this...
16079 (grub_vbe_bios_get_controller_info): ... to this.
16080 (grub_vbe_get_mode_info): Renamed from this...
16081 (grub_vbe_bios_get_mode_info): ... to this.
16082 (grub_vbe_set_mode): Renamed from this...
16083 (grub_vbe_bios_set_mode): ... to this.
16084 (grub_vbe_get_mode): Renamed from this...
16085 (grub_vbe_bios_get_mode): ... to this.
16086 (grub_vbe_set_memory_window): Renamed from this...
16087 (grub_vbe_bios_set_memory_window): ... to this.
16088 (grub_vbe_get_memory_window): Renamed from this...
16089 (grub_vbe_bios_get_memory_window): ... to this.
16090 (grub_vbe_set_scanline_length): Renamed from this...
16091 (grub_vbe_set_scanline_length): ... to this.
16092 (grub_vbe_get_scanline_length): Renamed from this...
16093 (grub_vbe_bios_get_scanline_length): ... to this.
16094 (grub_vbe_set_display_start): Renamed from this...
16095 (grub_vbe_bios_set_display_start): ... to this.
16096 (grub_vbe_get_display_start): Renamed from this...
16097 (grub_vbe_bios_get_display_start): ... to this.
16098 (grub_vbe_set_palette_data): Renamed from this...
16099 (grub_vbe_bios_set_palette_data): ... to this.
16100 (grub_vbe_bios_get_controller_info): Fixed problem with registers
16101 getting corrupted after calling it. Added more pushes and pops.
16102 (grub_vbe_bios_set_mode): Likewise.
16103 (grub_vbe_bios_get_mode): Likewise.
16104 (grub_vbe_bios_get_memory_window): Likewise.
16105 (grub_vbe_bios_set_scanline_length): Likewise.
16106 (grub_vbe_bios_get_scanline_length): Likewise.
16107 (grub_vbe_bios_get_display_start): Likewise.
16108 (grub_vbe_bios_set_palette_data): Likewise.
16109
16110 * normal/cmdline.c (cl_set_pos): Refresh the screen.
16111 (cl_insert): Likewise.
16112 (cl_delete): Likewise.
16113
16114 * term/gfxterm.c: New file.
16115
16116 * term/i386/pc/vesafb.c: Removed file.
16117
16118 * video/video.c: New file.
16119
16120 * video/i386/pc/vbe.c (real2pm): Added new function.
16121 (grub_video_vbe_draw_pixel): Likewise.
16122 (grub_video_vbe_get_video_ptr): Likewise.
16123 (grub_video_vbe_get_pixel): Likewise
16124 (grub_video_vbe_init): Likewise.
16125 (grub_video_vbe_fini): Likewise.
16126 (grub_video_vbe_setup): Likewise.
16127 (grub_video_vbe_get_info): Likewise.
16128 (grub_video_vbe_set_palette): Likewise.
16129 (grub_video_vbe_get_palette): Likewise.
16130 (grub_video_vbe_set_viewport): Likewise.
16131 (grub_video_vbe_get_viewport): Likewise.
16132 (grub_video_vbe_map_color): Likewise.
16133 (grub_video_vbe_map_rgb): Likewise.
16134 (grub_video_vbe_map_rgba): Likewise.
16135 (grub_video_vbe_unmap_color): Likewise.
16136 (grub_video_vbe_fill_rect): Likewise.
16137 (grub_video_vbe_blit_glyph): Likewise.
16138 (grub_video_vbe_blit_bitmap): Likewise.
16139 (grub_video_vbe_blit_render_target): Likewise.
16140 (grub_video_vbe_scroll): Likewise.
16141 (grub_video_vbe_swap_buffers): Likewise.
16142 (grub_video_vbe_create_render_target): Likewise.
16143 (grub_video_vbe_delete_render_target): Likewise.
16144 (grub_video_vbe_set_active_render_target): Likewise.
16145 (grub_vbe_set_pixel_rgb): Remove function.
16146 (grub_vbe_set_pixel_index): Likewise.
16147 (index_color_mode): Remove static variable.
16148 (active_mode): Likewise.
16149 (framebuffer): Likewise.
16150 (bytes_per_scan_line): Likewise.
16151 (grub_video_vbe_adapter): Added new static variable.
16152 (framebuffer): Likewise.
16153 (render_target): Likewise.
16154 (initial_mode): Likewise.
16155 (mode_in_use): Likewise.
16156 (mode_list): Likewise.
16157
16158 2006-03-10 Marco Gerards <marco@gnu.org>
16159
16160 * configure.ac (AC_INIT): Bumped to 1.93.
16161
16162 * DISTLIST: Added `include/grub/hfs.h'.
16163
16164 2006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
16165
16166 * boot/i386/pc/boot.S (general_error): Before looping, try INT
16167 18H, which might help the BIOS falling back to next boot media.
16168
16169 2006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
16170
16171 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
16172 Poe Chen <poe.poechen@gmail.com>.
16173
16174 2006-01-17 Marco Gerards <marco@gnu.org>
16175
16176 * include/grub/normal.h: Include <grub/script.h>.
16177 (grub_command_list): Removed struct.
16178 (grub_command_list_t): Removed type.
16179 (grub_menu_entry): Remove members `num' and `command_list'. Add
16180 members `commands' and `sourcecode'.
16181 * include/grub/script.h: Add inclusion guards.
16182 (grub_script_cmd_menuentry): New struct.
16183 (grub_script_execute_menuentry): New prototype.
16184 (grub_script_lexer_record_start): Likewise.
16185 (grub_script_lexer_record_stop): Likewise.
16186 * normal/execute.c (grub_script_execute_menuentry): New function.
16187 * normal/lexer.c (record, recording, recordpos, recordlen): New
16188 variables.
16189 (grub_script_lexer_record_start): New function.
16190 (grub_script_lexer_record_stop): Likewise.
16191 (recordchar): Likewise.
16192 (nextchar): Likewise.
16193 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
16194 2048 as the buffer size. Add the tokens `menuentry' and `@'.
16195 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
16196 (current_menu): New variable.
16197 (free_menu): Mainly rewritten.
16198 (grub_normal_menu_addentry): New function.
16199 (read_config_file): Rewritten.
16200 * normal/menu.c (run_menu_entry): Mainly rewritten.
16201 * normal/menu_entry.c (make_screen): Rewritten the code to insert
16202 the menu entry.
16203 (run): Mainly rewritten.
16204 * normal/parser.y (menu_entry): New variable.
16205 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
16206 (menuentry): New rule.
16207 (command): Add `menuentry'.
16208 (if_statement): Allow additional returns before `fi'.
16209 * normal/script.c (grub_script_create_cmdmenu): New function.
16210
16211 2006-01-03 Marco Gerards <marco@gnu.org>
16212
16213 * INSTALL: GNU Bison is required.
16214 * configure.ac: Rewritten the test to detect Bison.
16215 * Makefile.in (YACC): New variable. Reported by Xun Sun
16216 <xun.sun.cn@gmail.com>.
16217
16218 2006-01-03 Marco Gerards <marco@gnu.org>
16219
16220 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
16221 the HFS+ filesystem to filesystem blocks.
16222 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
16223 GCC warning is silenced.
16224
16225 2006-01-03 Marco Gerards <marco@gnu.org>
16226
16227 * partmap/apple.c (apple_partition_map_iterate): Convert the data
16228 read from disk from big endian to host byte order.
16229
16230 2006-01-03 Hollis Blanchard <hollis@penguinppc.org>
16231
16232 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
16233 documentation.
16234 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
16235 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
16236 embedded HFS+ filesystem.
16237 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
16238 (grub_hfs_sblock): Move from here...
16239 * include/grub/hfs.h: To here... New file.
16240 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
16241 documentation.
16242 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
16243 New macros.
16244 (grub_hfsplus_volheader): Change type of member `magic' to
16245 `grub_uint16_t'.
16246 (grub_hfsplus_data): Add new member `embedded_offset'.
16247 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
16248 returned block.
16249 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
16250 Calculate the offset.
16251
16252 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
16253
16254 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
16255 Removed.
16256 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
16257
16258 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
16259
16260 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
16261 ENV->NAME is NULL after allocating ENV->VALUE.
16262
16263 2005-12-25 Marco Gerards <marco@gnu.org>
16264
16265 * kern/env.c (grub_env_set): Rewritten the error handling code.
16266
16267 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
16268
16269 * geninit.sh: Made more robust, and more portable.
16270
16271 2005-12-25 Marco Gerards <marco@gnu.org>
16272
16273 Add support for Apple HFS+ filesystems.
16274
16275 * fs/hfsplus.c: New file.
16276
16277 * DISTLIST: Added `fs/hfsplus.c'.
16278
16279 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
16280 (hfsplus_mod_SOURCES): New variable.
16281 (hfsplus_mod_CFLAGS): Likewise.
16282 (hfsplus_mod_LDFLAGS): Likewise.
16283 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
16284 (grub_setup_SOURCES): Likewise.
16285 (grub_mkdevicemap_SOURCES): Likewise.
16286 (grub_emu_SOURCES): Likewise.
16287 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
16288
16289 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
16290
16291 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
16292
16293 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
16294
16295 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
16296 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
16297 include/grub/parser.h, include/grub/script.h, kern/parser.c,
16298 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
16299 normal/lexer.c, normal/parser.y, normal/script.c, and
16300 partmap/gpt.c.
16301 Removed kern/sparc64/cache.c.
16302
16303 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
16304 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
16305 grub_emu_init.c.
16306
16307 * configure.ac (AC_INIT): Bumped to 1.92.
16308
16309 2005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
16310
16311 * kern/err.c (grub_error_push): Added new function to support error
16312 stacks.
16313 (grub_error_pop): Likewise.
16314 (grub_error_stack_items): New local variable to support error stacks.
16315 (grub_error_stack_pos): Likewise.
16316 (grub_error_stack_assert): Likewise.
16317 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
16318 stack depth.
16319 (grub_print_error): Added support to print errors from error stack.
16320
16321 * include/grub/err.h (grub_error_push): Added function prototype.
16322 (grub_error_pop): Likewise.
16323
16324 2005-12-09 Hollis Blanchard <hollis@penguinppc.org>
16325
16326 * configure.ac: Accept `powerpc64' as host_cpu.
16327 (amd64): Rename to `biarch32'.
16328
16329 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
16330 non-cacheline-aligned addresses.
16331
16332 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
16333 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
16334 if `size' is non-zero.
16335
16336 2005-12-03 Marco Gerards <mgerards@xs4all.nl>
16337
16338 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
16339 and `cd' to make sure the filename is not prefixed with a
16340 directory name.
16341 (pkgdata_MODULES): Add `gpt.mod'.
16342 (gpt_mod_SOURCES): New variable.
16343 (gpt_mod_CFLAGS): Likewise.
16344 (gpt_mod_LDFLAGS): Likewise.
16345
16346 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
16347
16348 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
16349 New macro.
16350
16351 * partmap/gpt.c: New file.
16352
16353 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
16354 GPT partition map is detected.
16355
16356 2005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
16357
16358 * commands/i386/pc/play.c: New file.
16359 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
16360 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
16361 macros.
16362
16363 2005-11-27 Marco Gerards <mgerards@xs4all.nl>
16364
16365 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
16366 ((unused))' to silence gcc warning.
16367
16368 2005-11-26 Hollis Blanchard <hollis@penguinppc.org>
16369
16370 * configure.ac: Correct `AC_PROG_YACC' test.
16371
16372 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
16373
16374 * util/powerpc/ieee1275/grub-install.in: Run the mount point
16375 check before installing files.
16376
16377 2005-11-22 Mike Small <smallm@panix.com>
16378
16379 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
16380 number regex so multidigit numbers are recognized correctly.
16381
16382 2005-11-22 Mike Small <smallm@panix.com>
16383
16384 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
16385 debugging message before attempting to claim memory.
16386 (grub_rescue_cmd_initrd): Add a claim debugging message and try
16387 multiple addresses in case of failure.
16388
16389 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
16390
16391 * term/tparm.c (get_space): Remove empty `if' statement.
16392
16393 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
16394
16395 * kern/parser.c (check_varstate): Rename `state' to 's'.
16396
16397 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
16398
16399 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
16400 variable definitions to the beginning of each function. Sort stack
16401 variables by size.
16402 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
16403 `buf' argument to `char *'.
16404
16405 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
16406
16407 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
16408 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
16409 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
16410 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
16411 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
16412 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
16413 configfile.mod, search.mod, gzio.mod and test.mod.
16414 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
16415 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
16416 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
16417 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
16418 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
16419 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
16420 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
16421 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
16422 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
16423 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
16424 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
16425 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
16426 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
16427 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
16428 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
16429 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
16430 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
16431 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
16432 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
16433 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
16434 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
16435 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
16436 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
16437
16438 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
16439 `grep --include'.
16440 (pkgdata_MODULES): Add test.mod.
16441
16442 2005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
16443
16444 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
16445 appending to variables with "+=".
16446 (PModule): Use full pathname to generate *.lst filenames.
16447
16448 * Makefile.in: Fixed list rules moved from genmk.rb.
16449 (.DELETE_ON_ERROR): New special target.
16450 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
16451
16452 * conf/i386-pc.rmk: Include conf/common.mk.
16453 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
16454 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
16455 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
16456 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
16457 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
16458 configfile.mod, search.mod, gzio.mod and test.mod.
16459 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
16460 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
16461 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
16462 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
16463 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
16464 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
16465 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
16466 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
16467 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
16468 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
16469 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
16470 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
16471 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
16472 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
16473 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
16474 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
16475 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
16476 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
16477 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
16478 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
16479 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
16480 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
16481 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
16482 here...
16483 * conf/common.rmk: ... to here. New file.
16484
16485 * conf/common.mk: New file.
16486
16487 2005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
16488
16489 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
16490 (grub_script.tab.c): ... here.
16491
16492 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
16493 (grub_script.tab.c): ... here.
16494
16495 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
16496 (grub_script.tab.c): ... here.
16497
16498 * normal/command.c (grub_command_find): Fixed a memory leak of
16499 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
16500
16501 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
16502
16503 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
16504 "@" which marks the start of a comment on ARM.
16505 (VARIABLE): Likewise.
16506
16507 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
16508
16509 Add support for Linux/ADFS partition tables.
16510
16511 * partmap/acorn.c: New file.
16512
16513 * include/grub/acorn_filecore.h: Likewise.
16514
16515 * DISTLIST: Added `partmap/acorn.c' and
16516 `include/grub/acorn_filecore.h'.
16517
16518 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
16519 `partmap/acorn.c'.
16520 (pkgdata_MODULES): Add `acorn.mod'.
16521 (acorn_mod_SOURCES): New variable.
16522 (acorn_mod_CFLAGS): Likewise.
16523
16524 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
16525 `partmap/acorn.c'.
16526 (pkgdata_MODULES): Add `acorn.mod'.
16527 (acorn_mod_SOURCES): New variable.
16528 (acorn_mod_CFLAGS): Likewise.
16529
16530 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
16531 (pkgdata_MODULES): Add `acorn.mod'.
16532 (acorn_mod_SOURCES): New variable.
16533 (acorn_mod_CFLAGS): Likewise.
16534 (acorn_mod_LDFLAGS): Likewise.
16535
16536 * include/types.h (grub_disk_addr_t): New typedef.
16537
16538 2005-11-13 Marco Gerards <mgerards@xs4all.nl>
16539
16540 * geninit.sh: New file.
16541
16542 * geninitheader.sh: Likewise.
16543
16544 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
16545 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
16546 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
16547 * commands/configfile.c (grub_configfile_init)
16548 (grub_configfile_fini): Likewise.
16549 * commands/default.c (grub_default_init, grub_default_fini):
16550 Likewise.
16551 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
16552 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
16553 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
16554 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
16555 Likewise.
16556 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
16557 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
16558 Likewise.
16559 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
16560 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
16561 Likewise.
16562 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
16563 Likewise.
16564 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
16565 Likewise.
16566 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
16567 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
16568 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
16569 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
16570 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
16571 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
16572 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
16573 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
16574 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
16575 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
16576 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
16577 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
16578 * partmap/amiga.c (grub_amiga_partition_map_init)
16579 (grub_amiga_partition_map_fini): Likewise.
16580 * partmap/apple.c (grub_apple_partition_map_init)
16581 (grub_apple_partition_map_fini): Likewise.
16582 * partmap/pc.c (grub_pc_partition_map_init)
16583 (grub_pc_partition_map_fini): Likewise.
16584 * partmap/sun.c (grub_sun_partition_map_init,
16585 grub_sun_partition_map_fini): Likewise.
16586 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
16587 Likewise.
16588
16589 * util/grub-emu.c: Include <grub_modules_init.h>.
16590 (main): Don't initialize and de-initialize any modules directly,
16591 use `grub_init_all' and `grub_fini_all' instead.
16592
16593 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
16594 `grub_vesafb_mod_init'.
16595 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
16596 all users.
16597 * term/i386/pc/vga.c (grub_vga_init): Renamed to
16598 `grub_vga_mod_init'. Updated all users.
16599 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
16600
16601 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
16602 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
16603 rules.
16604
16605 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
16606 Generate a function to initialize the module in utilities.
16607 Updated all callers.
16608 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
16609 initialize the module in utilities. Updated all callers.
16610
16611 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
16612
16613 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
16614 escape sequence and a literal ^L to clear the screen.
16615
16616 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
16617 when returning from Open Firmware.
16618
16619 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
16620
16621 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
16622 (grub_ofconsole_height): Likewise.
16623 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
16624 manually insert a '\n'.
16625 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
16626 `grub_ofconsole_height'. Return early if these are already set.
16627
16628 2005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
16629
16630 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
16631 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
16632 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
16633 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
16634 and `normal/script.c'.
16635 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
16636 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
16637 (test_mod_SOURCES): New variable.
16638 (test_mod_CFLAGS): Likewise.
16639 (test_mod_LDFLAGS): Likewise.
16640 (pkgdata_MODULES): Add `test.mod'.
16641 (grub_script.tab.c): New rule.
16642 (grub_script.tab.h): Likewise.
16643
16644 2005-11-07 Marco Gerards <mgerards@xs4all.nl>
16645
16646 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
16647 `commands/test.c', `normal/execute.c', `normal/lexer.c',
16648 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
16649 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
16650 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
16651 (test_mod_SOURCES): New variable.
16652 (test_mod_CFLAGS): Likewise.
16653 (pkgdata_MODULES): Add `test.mod'.
16654 (grub_script.tab.c): New rule.
16655 (grub_script.tab.h): Likewise.
16656
16657 2005-11-06 Marco Gerards <mgerards@xs4all.nl>
16658
16659 Add initial scripting support.
16660
16661 * commands/test.c: New file.
16662 * include/grub/script.h: Likewise.
16663 * normal/execute.c: Likewise.
16664 * normal/function.c: Likewise.
16665 * normal/lexer.c: Likewise.
16666 * normal/parser.y: Likewise.
16667 * normal/script.c: Likewise.
16668
16669 * configure.ac: Add `AC_PROG_YACC' test.
16670
16671 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
16672 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
16673 `normal/function.c' and `normal/script.c'.
16674 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
16675 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
16676 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
16677 variables.
16678 (pkgdata_MODULES): Add `test.mod'.
16679 (grub_script.tab.c): New rule.
16680 (grub_script.tab.h): Likewise.
16681
16682 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
16683
16684 * include/grub/normal.h (grub_test_init): New prototype.
16685 (grub_test_fini): Likewise.
16686
16687 * normal/command.c: Include <grub/script.h>.
16688 (grub_command_execute): Rewritten.
16689
16690 * util/grub-emu.c (main): Call `grub_test_init' and
16691 `grub_test_fini'.
16692
16693 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
16694
16695 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
16696 to 0.
16697 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
16698 there are no pending characters.
16699
16700 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
16701
16702 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
16703 `grub_strndup' to drop device arguments. Replace unnecessary
16704 `grub_strndup' with `grub_strdup'.
16705
16706 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
16707
16708 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
16709 `debug' environment variable has been set.
16710
16711 2005-11-02 Hollis Blanchard <hollis@penguinppc.org>
16712
16713 * Makefile.in (install-local): Use $(DATA).
16714 (uninstall): Likewise.
16715 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
16716 (sbin_UTILITIES): ... to here.
16717 (sbin_SCRIPTS): New variable.
16718 (grub_install_SOURCES): New variable.
16719 * util/powerpc/ieee1275/grub-install.in: New file.
16720 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
16721 variable.
16722 (add_segments): Call `grub_util_get_path'.
16723
16724 2005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
16725
16726 From Timothy Baldwin:
16727 * commands/ls.c (grub_ls_list_files): Close FILE with
16728 grub_file_close.
16729 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
16730
16731 2005-10-24 Marco Gerards <mgerards@xs4all.nl>
16732
16733 * include/grub/parser.h: New file.
16734
16735 * kern/parser.c: Likewise.
16736
16737 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
16738 (grub_setup_SOURCES): Likewise.
16739 (grub_probefs_SOURCES): Likewise.
16740 (grub_emu_SOURCES): Likewise.
16741 (kernel_img_HEADERS): Add `parser.h'.
16742
16743 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
16744 (grub_emu_SOURCES): Add `kern/parser.c'.
16745 (grubof_SOURCES): Likewise.
16746
16747 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
16748 (grubof_SOURCES): Add `kern/parser.c'.
16749
16750 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
16751
16752 * kern/misc.c (grub_split_cmdline): Removed function.
16753
16754 * kern/rescue.c: Include <grub/parser.h>.
16755 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
16756 of `grub_split_cmdline'.
16757
16758 * normal/command.c: Include <grub/parser.h>.
16759 (grub_command_execute): Use `grub_parser_split_cmdline' instead
16760 of `grub_split_cmdline'.
16761
16762 * normal/completion.c: Include <grub/parser.h>.
16763 (cmdline_state): New variable.
16764 (iterate_dir): End the filename with a quote depending on the
16765 command line state.
16766 (get_state): new function.
16767 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
16768 split the arguments and determine the current argument. When the
16769 argument string is not quoted, escape all spaces.
16770
16771 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
16772
16773 * normal/sparc64/setjmp.S: New file.
16774
16775 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
16776
16777 * include/grub/sparc64/libgcc.h: New file.
16778 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
16779 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
16780 normal/sparc64/setjmp.c.
16781
16782 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
16783
16784 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
16785 * kern/sparc64/cache.S: New file.
16786 * kern/sparc64/cache.c: Removed.
16787 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
16788 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
16789 -mtune=ultrasparc.
16790 (COMMON_LDFLAGS): Add -melf64_sparc.
16791 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
16792 (grubof_SOURCES): Use cache.S instead of cache.c.
16793 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
16794 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
16795 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
16796 commented though.
16797 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
16798 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
16799 (linux_mod_CFLAGS): Commented out.
16800 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
16801 out because module isn't built.
16802 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
16803 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
16804 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
16805 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
16806 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
16807 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
16808 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
16809 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
16810 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
16811 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
16812 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
16813 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
16814 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
16815 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
16816
16817 2005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
16818
16819 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
16820 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
16821 longer, because HFS should not be used on PC.
16822
16823 2005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
16824
16825 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
16826 consistently within the loop.
16827
16828 2005-10-15 Marco Gerards <mgerards@xs4all.nl>
16829
16830 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
16831 directory can not be read.
16832
16833 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
16834
16835 * configure.ac (AC_INIT): Increase the version number to 1.91.
16836
16837 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
16838 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
16839 term/i386/pc/serial.c.
16840
16841 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
16842
16843 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
16844 file size must be permitted.
16845
16846 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
16847 between %ah and %al.
16848
16849 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
16850
16851 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
16852 grub_uint64_t.
16853 Call the hook with a NUL-terminated filename.
16854 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
16855 grub_cpu_to_be32.
16856
16857 * kern/term.c (cursor_state): New variable.
16858 (grub_term_set_current): Reset the cursor state on a new
16859 terminal.
16860 (grub_setcursor): Rewritten to use CURSOR_STATE.
16861 (grub_getcursor): New function.
16862
16863 * include/grub/term.h (grub_getcursor): New prototype.
16864
16865 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
16866 integers on ARM. Reported by Timothy Baldwin
16867 <T.E.Baldwin99@members.leeds.ac.uk>.
16868
16869 2005-10-11 Marco Gerards <mgerards@xs4all.nl>
16870
16871 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
16872 allocated.
16873 (grub_sfs_dir): Likewise.
16874
16875 2005-10-09 Marco Gerards <mgerards@xs4all.nl>
16876
16877 Add support for the SFS filesystem.
16878
16879 * fs/sfs.c: New file.
16880
16881 * DISTLIST: Added `fs/sfs.c'.
16882
16883 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
16884 (grub_probefs_SOURCES): Likewise.
16885 (grub_emu_SOURCES): Likewise.
16886 (pkgdata_MODULES): Add `sfs.mod'.
16887 (sfs_mod_SOURCES): New variable.
16888 (sfs_mod_CFLAGS): Likewise.
16889 (sfs_mod_LDFLAGS): Likewise.
16890
16891 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
16892 (pkgdata_MODULES): Add `sfs.mod'.
16893 (sfs_mod_SOURCES): New variable.
16894 (sfs_mod_CFLAGS): Likewise.
16895
16896 * util/grub-emu.c (main): Call `grub_sfs_init' and
16897 `grub_sfs_fini'.
16898
16899 * include/grub/fs.h (grub_sfs_init): New prototype.
16900 (grub_sfs_fini): Likewise.
16901
16902 2005-10-07 Marco Gerards <mgerards@xs4all.nl>
16903
16904 Add support for the AFFS filesystem.
16905
16906 * fs/affs.c: New file.
16907
16908 * DISTLIST: Added `fs/affs.c'.
16909
16910 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
16911 (grub_probefs_SOURCES): Likewise.
16912 (grub_emu_SOURCES): Likewise.
16913 (pkgdata_MODULES): Add `affs.mod'.
16914 (affs_mod_SOURCES): New variable.
16915 (affs_mod_CFLAGS): Likewise.
16916 (affs_mod_LDFLAGS): Likewise.
16917
16918 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
16919 (pkgdata_MODULES): Add `affs.mod'.
16920 (affs_mod_SOURCES): New variable.
16921 (affs_mod_CFLAGS): Likewise.
16922
16923 * util/grub-emu.c (main): Call `grub_affs_init' and
16924 `grub_affs_fini'.
16925
16926 * include/grub/fs.h (grub_affs_init): New prototype.
16927 (grub_affs_fini): Likewise.
16928
16929 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
16930
16931 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
16932
16933 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
16934
16935 * configure.ac: Accept `x86_64' as host_cpu. In that case add
16936 `-m32' to CFLAGS.
16937
16938 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
16939 linking.
16940
16941 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
16942 (COMMON_LDFLAGS): New variable.
16943 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
16944 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
16945 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
16946 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
16947 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
16948 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
16949 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
16950 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
16951 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
16952 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
16953 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
16954 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
16955 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
16956 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
16957 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
16958 variables.
16959 (normal_mod_ASFLAGS): Add `-m32'.
16960
16961 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
16962 (grub_host_size_t, grub_host_ssize_t): New types.
16963 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
16964 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
16965 `GRUB_HOST_SIZEOF_VOID_P'.
16966
16967 * include/grub/kernel.h (struct grub_module_header): Type of
16968 member offset changed to `grub_host_off_t'. Type of member size
16969 changed to `grub_host_size_t'.
16970 (struct grub_module_info): Type of member offset changed to
16971 `grub_host_off_t'. Type of member size changed to
16972 `grub_host_size_t'.
16973
16974 2005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
16975
16976 Make GRUB's kernel compliant to Multiboot Specification.
16977
16978 * kern/i386/pc/startup.S (multiboot_header): New label.
16979 (multiboot_entry): Likewise.
16980 (multiboot_trampoline): Likewise.
16981
16982 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
16983 Increased to 0x4A0.
16984
16985 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
16986 put parentheses after a question mark.
16987 [!GRUB_UTIL] (my_mod): New variable.
16988
16989 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
16990
16991 2005-09-28 Marco Gerards <mgerards@xs4all.nl>
16992
16993 Adds support for the XFS filesystem. Btrees are not supported
16994 yet.
16995
16996 * fs/xfs.c: New file.
16997
16998 * DISTLIST: Added `fs/xfs.c'.
16999
17000 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
17001 (grub_probefs_SOURCES): Likewise.
17002 (grub_emu_SOURCES): Likewise.
17003 (pkgdata_MODULES): Add `xfs.mod'.
17004 (xfs_mod_SOURCES): New variable.
17005 (xfs_mod_CFLAGS): Likewise.
17006
17007 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
17008 (pkgdata_MODULES): Add `xfs.mod'.
17009 (xfs_mod_SOURCES): New variable.
17010 (xfs_mod_CFLAGS): Likewise.
17011
17012 * util/grub-emu.c (main): Call `grub_xfs_init' and
17013 `grub_xfs_fini'.
17014
17015 * include/grub/fs.h (grub_xfs_init): New prototype.
17016 (grub_xfs_fini): Likewise.
17017
17018
17019 2005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
17020
17021 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
17022 color modes, allow greater than 16 colors to be configured as
17023 a default palette.
17024
17025 2005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
17026
17027 * normal/completion.c (complete_arguments): Add the qualifier
17028 const into OPTIONS.
17029
17030 From Omniflux <omniflux+lists@omniflux.com>:
17031 * include/grub/terminfo.h: New file.
17032 * include/grub/tparm.h: Likewise.
17033 * include/grub/i386/pc/serial.h: Likewise.
17034 * term/terminfo.c: Likewise.
17035 * term/tparm.c: Likewise.
17036 * term/i386/pc/serial.c: Likewise.
17037 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
17038 serial.mod.
17039 (terminfo_mod_SOURCES): New variable.
17040 (terminfo_mod_CFLAGS): Likewise.
17041 (serial_mod_SOURCES): Likewise.
17042 (serial_mod_CFLAGS): Likewise.
17043
17044 2005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
17045
17046 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
17047 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
17048 and kern/powerpc/ieee1275/cmain.c, respectively.
17049
17050 * boot/powerpc/ieee1275/crt0.S: Moved to ...
17051 * kern/powerpc/ieee1275/crt0.S: ... here.
17052
17053 * boot/powerpc/ieee1275/cmain.c: Moved to ...
17054 * kern/powerpc/ieee1275/cmain.c: ... here.
17055
17056 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
17057 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
17058 instead of boot/powerpc/ieee1275/crt0.S and
17059 boot/powerpc/ieee1275/cmain.c, respectively.
17060
17061 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
17062 sectors. It was not used anyway.
17063
17064 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
17065
17066 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
17067 `unused parameter' warning.
17068
17069 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
17070
17071 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
17072 function.
17073 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
17074 getcharwidth.
17075
17076 2005-08-28 Marco Gerards <metgerards@student.han.nl>
17077
17078 * include/grub/normal.h (enum grub_completion_type): Added
17079 `GRUB_COMPLETION_TYPE_ARGUMENT'.
17080
17081 * normal/cmdline.c (print_completion): Handle
17082 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
17083 * normal/menu_entry.c (store_completion): Likewise.
17084
17085 * normal/completion.c (complete_arguments): New function.
17086 (grub_normal_do_completion): Call `complete_arguments' when the
17087 current words start with a dash.
17088
17089 2005-08-27 Marco Gerards <metgerards@student.han.nl>
17090
17091 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
17092 `gzio.mod' instead of `io.mod').
17093
17094 2005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
17095
17096 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
17097 (DISTDIRS): Added io and video.
17098 Rewrite the search routine to make an output consistently.
17099
17100 * DISTLIST: Added conf/sparc64-ieee1275.mk,
17101 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
17102 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
17103 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
17104 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
17105 util/powerpc/ieee1275/misc.c.
17106
17107 * include/grub/gzio.h: New file.
17108 * io/gzio.c: Likewise.
17109
17110 * kern/file.c (grub_file_close): Call grub_device_close only if
17111 FILE->DEVICE is not NULL.
17112
17113 * include/grub/mm.h [!NULL] (NULL): New macro.
17114
17115 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
17116
17117 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
17118 (pkgdata_MODULES): Added gzio.mod.
17119 (gzio_mod_SOURCES): New variable.
17120 (gzio_mod_CFLAGS): Likewise.
17121
17122 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
17123 (pkgdata_MODULES): Added gzio.mod.
17124 (gzio_mod_SOURCES): New variable.
17125 (gzio_mod_CFLAGS): Likewise.
17126
17127 * commands/cat.c: Include grub/gzio.h.
17128 (grub_cmd_cat): Use grub_gzfile_open instead of
17129 grub_file_open.
17130
17131 * commands/cmp.c: Include grub/gzio.h.
17132 (grub_cmd_cmp): Use grub_gzfile_open instead of
17133 grub_file_open.
17134
17135 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
17136 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
17137 grub_file_open.
17138 (grub_rescue_cmd_module): Likewise.
17139
17140 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
17141
17142 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
17143 kern/sparc64/ieee1275/init.c because it contains _start.
17144 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
17145
17146 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
17147
17148 * configure.ac: Add support for sparc64 host with ieee1275
17149 firmware.
17150 * configure: Generated from configure.ac.
17151 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
17152 instead of int.
17153 (grub_ofdisk_read): Likewise.
17154 (grub_ofdisk_open): Use %p to print pointer values, and cast the
17155 pointers as (void *) to remove a warning.
17156 (grub_ofdisk_close): Likewise.
17157 (grub_ofdisk_read): Likewise.
17158 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
17159 returns, so make it return void to remove a warning.
17160 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
17161 Corresponding prototype change.
17162 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
17163 values, and cast the pointers as (void *) to remove a warning.
17164 (grub_mm_dump): Likewise.
17165 * conf/sparc64-ieee1275.mk: New file.
17166 * conf/sparc64-ieee1275.rmk: Likewise.
17167 * include/grub/sparc64/setjmp.h: Likewise.
17168 * include/grub/sparc64/types.h: Likewise.
17169 * include/grub/sparc64/ieee1275/console.h: Likewise.
17170 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
17171 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
17172 * include/grub/sparc64/ieee1275/time.h: Likewise.
17173 * kern/sparc64/cache.c: Likewise.
17174 * kern/sparc64/dl.c: Likewise.
17175 * kern/sparc64/ieee1275/init.c: Likewise.
17176 * kern/sparc64/ieee1275/openfw.c: Likewise.
17177
17178 2005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
17179
17180 * util/console.c (grub_ncurses_putchar): If C is greater than
17181 0x7f, set C to a question mark.
17182 (grub_ncurses_getcharwidth): New function.
17183 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
17184 getcharwidth.
17185
17186 * normal/menu.c (print_entry): Made aware of Unicode. First,
17187 convert TITLE to UCS-4, and predict the cursor position by
17188 grub_getcharwidth.
17189
17190 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
17191 const to SRC.
17192 * kern/misc.c (grub_utf16_to_utf8): Likewise.
17193
17194 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
17195
17196 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
17197 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
17198 grub_strcat.
17199
17200 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
17201 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
17202 grub_strcpy and grub_strlen. Take it into account that a space
17203 character is inserted as a delimiter.
17204
17205 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
17206
17207 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
17208 invalid magic in the error.
17209
17210 * commands/search.c: New file.
17211
17212 * util/grub-emu.c (main): Call grub_search_init and
17213 grub_search_fini.
17214
17215 * kern/rescue.c (grub_rescue_print_disks): Removed.
17216 (grub_rescue_print_devices): New function.
17217 (grub_rescue_cmd_ls): Use grub_device_iterate with
17218 grub_rescue_print_devices instead of grub_disk_dev_iterate with
17219 grub_rescue_print_disks.
17220
17221 * kern/partition.c (grub_partition_iterate): Return the result of
17222 PARTMAP->ITERATE instead of GRUB_ERRNO.
17223
17224 * kern/device.c: Include grub/partition.h.
17225 (grub_device_iterate): New function.
17226
17227 * include/grub/partition.h (grub_partition_iterate): Return int
17228 instead of grub_err_t.
17229
17230 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
17231 prototype.
17232 [GRUB_UTIL] (grub_search_fini): Likewise.
17233
17234 * include/grub/device.h (grub_device_iterate): New prototype.
17235
17236 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
17237 commands/search.c.
17238 (pkgdata_MODULES): Added search.mod.
17239 (search_mod_SOURCES): New variable.
17240 (search_mod_CFLAGS): Likewise.
17241
17242 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
17243 (pkgdata_MODULES): Added search.mod.
17244 (search_mod_SOURCES): New variable.
17245 (search_mod_CFLAGS): Likewise.
17246
17247 * commands/ls.c (grub_ls_list_disks): Renamed to ...
17248 (grub_ls_list_devices): ... this, and use grub_device_iterate.
17249 All callers changed.
17250
17251 * DISTLIST: Added commands/search.c.
17252
17253 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
17254
17255 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
17256 conversion.
17257 (grub_getcharwidth): New function.
17258
17259 * kern/misc.c (grub_utf8_to_ucs4): New function.
17260
17261 * include/grub/term.h (struct grub_term): Added a new member
17262 "getcharwidth".
17263 (grub_getcharwidth): New prototype.
17264
17265 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
17266
17267 * term/i386/pc/console.c (map_char): New function. Segregated from
17268 grub_console_putchar.
17269 (grub_console_putchar): Use map_char.
17270 (grub_console_getcharwidth): New function.
17271 (grub_console_term): Specified grub_console_getcharwidth as
17272 getcharwidth.
17273
17274 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
17275 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
17276
17277 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
17278 GRUB_ERRNO.
17279 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
17280 on grub_strtoul completely.
17281 (write_char): Declare local variables in the beginning of the
17282 function.
17283 (grub_vesafb_getcharwidth): New function.
17284 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
17285 getcharwidth.
17286
17287 2005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
17288
17289 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
17290 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
17291 commands/i386/pc/vbetest.c.
17292
17293 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
17294 call grub_vbe_get_controller_info again, because the returned
17295 information is volatile.
17296 (grub_vbe_set_video_mode): Mostly rewritten.
17297 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
17298 grub_vbe_status_t correctly.
17299 (grub_vbe_get_video_mode_info): Likewise.
17300 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
17301 several if statements.
17302
17303 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
17304 * commands/i386/pc/vbeinfo.c: ... this.
17305
17306 * commands/i386/pc/vbe_test.c: Renamed to ...
17307 * commands/i386/pc/vbetest.c: ... this.
17308
17309 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
17310 ...
17311 (grub_cmd_vbeinfo): ... this. Save video modes before
17312 iterating. Skip a video mode, if it is not available, not enough
17313 information is given or it is monochrome. Show the memory
17314 model. Leave the interpretation of MODEVAR to grub_strtoul
17315 completely.
17316 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
17317 (GRUB_MOD_FINI): Likewise.
17318
17319 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
17320 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
17321 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
17322 duplicated grub_env_get. Leave the interpretation of MODEVAR to
17323 grub_strtoul completely.
17324 (real2pm): Removed.
17325 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
17326 (GRUB_MOD_FINI): Likewise.
17327
17328 * normal/misc.c: Include grub/mm.h.
17329
17330 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
17331 vbe_list_modes with vbetest.mod and vbeinfo.mod.
17332 (vbe_list_modes_mod_SOURCES): Removed.
17333 (vbe_list_modes_mod_CFLAGS): Likewise.
17334 (vbe_test_mod_SOURCES): Likewise.
17335 (vbe_test_mod_CFLAGS): Likewise.
17336 (vbeinfo_mod_SOURCES): New variable.
17337 (vbeinfo_mod_CFLAGS): Likewise.
17338 (vbetest_mod_SOURCES): Likewise.
17339 (vbetest_mod_CFLAGS): Likewise.
17340
17341 2005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
17342
17343 * normal/misc.c: New file.
17344
17345 * DISTLIST: Added normal/misc.c.
17346
17347 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
17348 DISK to HOOK. Call HOOK with DISK.
17349 * partmap/apple.c (apple_partition_map_iterate): Likewise.
17350 * partmap/pc.c (pc_partition_map_iterate): Likewise.
17351 * partmap/sun.c (sun_partition_map_iterate): Likewise.
17352
17353 * normal/menu_entry.c (struct screen): Added a new member
17354 "completion_shown".
17355 (completion_buffer): New global variable.
17356 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
17357 (store_completion): New function.
17358 (complete): Likewise.
17359 (clear_completions): Likewise.
17360 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
17361 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
17362 a tab, call complete.
17363
17364 * normal/completion.c (disk_dev): Removed.
17365 (print_simple_completion): Likewise.
17366 (print_partition_completion): Likewise.
17367 (print_func): New global variable.
17368 (add_completion): Do not take the arguments WHAT or PRINT any
17369 longer. Added a new argument TYPE. Instead of printing directly,
17370 call PRINT_FUNC if not NULL.
17371 All callers changed.
17372 (complete_device): Use a local variable DEV instead of
17373 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
17374 (grub_normal_do_completion): Take a new argument HOOK. Do not
17375 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
17376 empty string, return NULL instead.
17377 All callers changed.
17378
17379 * normal/cmdline.c (print_completion): New function.
17380
17381 * kern/partition.c (grub_partition_iterate): Add an argument DISK
17382 to HOOK.
17383 All callers changed.
17384
17385 * kern/disk.c (grub_print_partinfo): Removed.
17386
17387 * include/grub/partition.h (struct grub_partition_map): Add a new
17388 argument DISK into HOOK of ITERATE.
17389 (grub_partition_iterate): Add a new argument DISK to HOOK.
17390
17391 * include/grub/normal.h (enum grub_completion_type): New enum.
17392 (grub_completion_type_t): New type.
17393 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
17394 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
17395 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
17396 (GRUB_COMPLETION_TYPE_FILE): Likewise.
17397 (grub_normal_do_completion): Added a new argument HOOK.
17398 (grub_normal_print_device_info): New prototype.
17399
17400 * include/grub/disk.h (grub_print_partinfo): Removed.
17401
17402 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
17403 (normal_mod_SOURCES): Likewise.
17404 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
17405 (normal_mod_SOURCES): Likewise.
17406
17407 * commands/ls.c (grub_ls_list_disks): Use
17408 grub_normal_print_device_info instead of grub_print_partinfo. Free
17409 PNAME.
17410 (grub_ls_list_files): Use grub_normal_print_device_info instead of
17411 duplicating the code.
17412
17413 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
17414
17415 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
17416 follow GCS more precisely.
17417 * commands/i386/pc/vbe_test.c: Likewise.
17418 * include/grub/i386/pc/vbe.h: Likewise.
17419 * term/i386/pc/vesafb.c: Likewise.
17420 * video/i386/pc/vbe.c: Likewise.
17421
17422 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
17423
17424 * DISTLIST: Added term/i386/pc/vesafb.c
17425 DISTLIST: Added video/i386/pc/vbe.c
17426 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
17427 DISTLIST: Added commands/i386/pc/vbe_test.c.
17428 * commands/i386/pc/vbe_list_modes.c: New file.
17429 * commands/i386/pc/vbe_test.c: Likewise.
17430 * term/i386/pc/vesafb.c: Likewise.
17431 * video/i386/pc/vbe.c: Likewise.
17432 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
17433 (grub_vbe_probe) Added prototype.
17434 (grub_vbe_set_video_mode) Likewise.
17435 (grub_vbe_get_video_mode) Likewise.
17436 (grub_vbe_get_video_mode_info) Likewise.
17437 (grub_vbe_set_pixel_rgb) Likewise.
17438 (grub_vbe_set_pixel_index) Likewise.
17439 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
17440 (pkgdata_MODULES): Added vesafb.mod.
17441 (pkgdata_MODULES): Added vbe_list_modes.mod.
17442 (pkgdata_MODULES): Added vbe_test.mod.
17443 (vbe_mod_SOURCES): Added.
17444 (vbe_mod_CFLAGS): Likewise.
17445 (vesafb_mod_SOURCES): Likewise.
17446 (vesafb_mod_CFLAGS): Likewise.
17447 (vbe_list_modes_mod_SOURCES): Likewise.
17448 (vbe_list_modes_mod_CFLAGS): Likewise.
17449 (vbe_test_mod_SOURCES): Likewise.
17450 (vbe_test_mod_CFLAGS): Likewise.
17451
17452 2005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
17453
17454 * normal/command.c (grub_command_execute): If INTERACTIVE is
17455 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
17456 CMDLINE. Disable the pager if INTERACTIVE is true.
17457 All callers are changed.
17458
17459 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
17460 before reading a config file.
17461 * normal/main.c (read_config_file): Even if a command is not
17462 found, register it if it is within an entry.
17463
17464 * util/grub-emu.c: Include sys/types.h and unistd.h.
17465 (options): Added --hold.
17466 (struct arguments): Added a new member "hold".
17467 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
17468 missing.
17469 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
17470 cleared by a debugger, if it is not zero.
17471
17472 * include/grub/normal.h (grub_command_execute): Add an argument
17473 INTERACTIVE.
17474
17475 2005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
17476
17477 * DISTLIST: Added include/grub/i386/pc/vbe.h.
17478
17479 2005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
17480
17481 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
17482 program with another one, because the old one didn't detect a bug
17483 in gcc-3.4. Always use regparm 2, because the new test is still
17484 not enough for gcc-4.0. Someone must investigate a simple test
17485 case which detects a bug in gcc-4.0.
17486
17487 2005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
17488
17489 * DISTLIST: Added normal/completion.c.
17490
17491 * normal/completion.c: New file.
17492
17493 * term/i386/pc/console.c (grub_console_getwh): New function.
17494 (grub_console_term): Assign grub_console_getwh to getwh.
17495
17496 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
17497 function is defined in normal/completion.c as
17498 grub_normal_do_completion.
17499 (grub_cmdline_get): Use grub_normal_do_completion instead of
17500 grub_tab_complete.
17501
17502 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
17503 returns non-zero, otherwise return 0.
17504 (grub_partition_iterate): First, probe the partition map. Then,
17505 call ITERATE only for this partition map.
17506
17507 * kern/misc.c (grub_strncmp): Rewritten.
17508
17509 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
17510 returns non-zero. Otherwise return 0.
17511
17512 * include/grub/partition.h (grub_partition_map_iterate): Return
17513 int instead of void.
17514
17515 * include/grub/normal.h (grub_normal_do_completion): New prototype.
17516
17517 * include/grub/misc.h (grub_strncmp): Change the type of N to
17518 grub_size_t.
17519
17520 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
17521 of void.
17522
17523 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
17524 unsigned explicitly before comparing it with I.
17525
17526 * kern/main.c (grub_env_write_root): Add the attribute unused into
17527 VAR.
17528
17529 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
17530 normal/completion.c.
17531 (normal_mod_SOURCES): Likewise.
17532 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
17533 (normal_mod_SOURCES): Likewise.
17534
17535 * normal/command.c (grub_iterate_commands): If ITERATE returns
17536 non-zero, return one immediately.
17537
17538 2005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
17539
17540 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
17541 * kern/i386/pc/startup.S: Updated Global Descriptor table's
17542 descriptions.
17543 (grub_vbe_get_controller_info): New function.
17544 (grub_vbe_get_mode_info): Likewise.
17545 (grub_vbe_set_mode): Likewise.
17546 (grub_vbe_get_mode): Likewise.
17547 (grub_vbe_set_memory_window): Likewise.
17548 (grub_vbe_get_memory_window): Likewise.
17549 (grub_vbe_set_scanline_length): Likewise.
17550 (grub_vbe_get_scanline_length): Likewise.
17551 (grub_vbe_set_display_start): Likewise.
17552 (grub_vbe_get_display_start): Likewise.
17553 (grub_vbe_set_palette_data): Likewise.
17554 * include/grub/i386/pc/vbe.h: New file.
17555
17556 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
17557
17558 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
17559 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
17560 * DISTLIST: Likewise.
17561 * kern/ieee1275/of.c: Moved to ...
17562 * kern/ieee1275/ieee1275.c: ... here.
17563
17564 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
17565
17566 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
17567 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
17568 Pass 0 as `end' parameter to grub_strtoul().
17569
17570 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
17571
17572 * include/grub/powerpc/ieee1275/console.h: Do not include
17573 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
17574 ifdef.
17575 (grub_console_cur_color): Remove i386-specific prototype.
17576 (grub_console_real_putchar): Likewise.
17577 (grub_console_checkkey): Likewise.
17578 (grub_console_getkey): Likewise.
17579 (grub_console_getxy): Likewise.
17580 (grub_console_gotoxy): Likewise.
17581 (grub_console_cls): Likewise.
17582 (grub_console_setcursor): Likewise.
17583 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
17584 Include <grub/machine/console.h>.
17585 * term/ieee1275/ofconsole.c: Likewise.
17586
17587 2005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
17588
17589 * Makefile.in (LIBLZO): New variable.
17590
17591 * configure.ac: Check for LZO version 2.
17592
17593 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
17594 lzo/lzo1x.h instead of lzo1x.h.
17595
17596 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
17597 of -llzo.
17598
17599 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
17600 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
17601
17602 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
17603 copying the data from PARTITION to P.
17604
17605 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
17606
17607 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
17608 negative, unload the module.
17609
17610 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
17611 map is "pc_partition_map" but not "pc".
17612 (usage): Fix the description. The options are --boot-image and
17613 --core-image but not --boot-file or --core-file.
17614 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
17615 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
17616 DEFAULT_DIRECTORY.
17617
17618 * util/i386/pc/grub-install.in: Do not specify --boot-file or
17619 --core-file. Specify INSTALL_DEVICE as an argument.
17620
17621 * util/console.c: Include config.h.
17622 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
17623 [HAVE_NCURSES_H]: Include ncurses.h.
17624 [HAVE_CURSES_H]: Include curses.h.
17625 [!A_NORMAL] (A_NORMAL): Defined as zero.
17626 [!A_STANDOUT] (A_STANDOUT): Likewise.
17627
17628 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
17629 -lncurses.
17630 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
17631
17632 * configure.ac: Check for curses libraries and headers.
17633
17634 * Makefile.in (LIBCURSES): New variable.
17635
17636 * genmk.rb (Script::rule): Set the executable bits.
17637
17638 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
17639 name of the PC partition map is "pc_partition_map" but not "pc".
17640
17641 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
17642
17643 * util/i386/pc/grub-install.in (grub_probefs): New variable.
17644 (modules): Likewise.
17645 (usage): Added descriptions for --modules and --grub-probefs.
17646 Handle --modules and --grub-probefs. Save the arguments in MODULES
17647 and GRUB_PROBEFS, respectively.
17648 Auto-detect a filesystem module against GRUBDIR. If the result is
17649 empty and modules are not specified explicitly, abort the
17650 installation. Add the result to MODULES.
17651
17652 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
17653 disk/powerpc/ieee1275/ofdisk.c,
17654 include/grub/powerpc/ieee1275/init.h and
17655 term/powerpc/ieee1275/ofconsole.c.
17656 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
17657 term/ieee1275/ofconsole.c.
17658
17659 * include/grub/powerpc/ieee1275/console.h: Resurrected.
17660
17661 * COPYING: Upgraded to the latest version. Only the address of the
17662 FSF office has changed.
17663
17664 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
17665
17666 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
17667 kern/ieee1275.c with kern/ieee1275/of.c.
17668
17669 * kern/ieee1275.c: Moved to ...
17670 * kern/ieee1275/of.c: ... here.
17671
17672 2005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
17673
17674 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
17675 readability.
17676
17677 * config.guess: Updated to the latest version from gnulib.
17678 * config.sub: Likewise.
17679 * install.sh: Likewise.
17680 * mkinstalldirs: Likewise.
17681
17682 * include/grub/console.h: Removed. This file is arch-specific. Do
17683 not put this in include/grub.
17684
17685 * include/grub/i386/pc/console.h: Resurrected.
17686
17687 * util/console.c: Include grub/machine/console.h instead of
17688 grub/console.h.
17689 * util/grub-emu.c: Likewise.
17690
17691 2005-08-04 Marco Gerards <metgerards@student.han.nl>
17692
17693 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
17694 hardcoded value.
17695
17696 From Vincent Pelletier <subdino2004@yahoo.fr>
17697 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
17698 Redefined to use grub_getwh.
17699 (grub_term): New member named getwh.
17700 (grub_getwh): New prototype.
17701 * kern/term.c (grub_getwh): New function.
17702 * term/i386/pc/console.c (grub_console_getwh): New function.
17703 (grub_console_term): New member `getwh'.
17704 * term/i386/pc/vga.c (grub_vga_getwh): New function.
17705 (grub_vga_term): New member `getwh'.
17706 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
17707 grub_ssize_t.
17708 (grub_ofconsole_getw): New function.
17709 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
17710 (grub_ofconsole_term): New field named getwh and new initial
17711 value.
17712
17713 2005-08-03 Hollis Blanchard <hollis@penguinppc.org>
17714
17715 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
17716 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
17717 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
17718 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
17719 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
17720 of <grub/machine/ieee1275.h>.
17721 * commands/ieee1275/reboot.c: Likewise.
17722 * boot/powerpc/ieee1275/ieee1275.c: Move ...
17723 * kern/ieee1275.c: ... to here. All users updated. Change all
17724 parameter structs to use new type `grub_ieee1275_cell_t'.
17725 * term/powerpc/ieee1275/ofconsole.c: Move ...
17726 * term/ieee1275/ofconsole.c: ... to here. All users updated.
17727 * disk/powerpc/ieee1275/ofdisk.c: Move ...
17728 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
17729 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
17730 to return int.
17731 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
17732 Remove unused prototypes. All users updated.
17733 * include/grub/powerpc/ieee1275/console.h: Removed.
17734 * include/grub/powerpc/ieee1275/ieee1275.h: Define
17735 `grub_ieee1275_cell_t'.
17736 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
17737 Cast comparisons with -1 to the correct type.
17738 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
17739 type to match `grub_ieee1275_entry_fn'.
17740
17741 2005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
17742
17743 * DISTLIST: Added util/i386/pc/grub-probefs.c.
17744
17745 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
17746 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
17747 partmap/sun.c.
17748 (grub_probefs_SOURCES): New variable.
17749
17750 * util/i386/pc/grub-probefs.c: New file.
17751
17752 * util/i386/pc/grub-setup.c (main): Call
17753 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
17754 grub_hfs_init and grub_jfs_init to initialize the system. Call
17755 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
17756 grub_pc_partition_map_fini to finish the system.
17757
17758 2005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
17759
17760 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
17761 function.
17762 (grub_multiboot_load_elf32): Likewise.
17763 (grub_multiboot_is_elf64): Likewise.
17764 (grub_multiboot_load_elf64): Likewise.
17765 (grub_multiboot_load_elf): Likewise.
17766 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
17767 an ELF32 or ELF64 file.
17768 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
17769
17770 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
17771 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
17772 NULL before calling FS->LABEL.
17773 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
17774 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
17775 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
17776 before calling FS->LABEL.
17777
17778 2005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
17779
17780 * util/i386/pc/grub-install.in (datadir): New variable.
17781 (libdir): Removed.
17782 (pkgdatadir): New variable.
17783 (pkglibdir): Removed.
17784
17785 2005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
17786
17787 * DISTLIST: Added util/i386/pc/grub-install.in.
17788
17789 * util/i386/pc/grub-install.in: New file.
17790
17791 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
17792 (grub_install_SOURCES): Likewise.
17793
17794 * genmk.rb: Added support for scripts.
17795 (Script): New class.
17796 (scripts): New variable.
17797
17798 * Makefile.in (install-local): Install sbin_SCRIPTS by
17799 INSTALL_SCRIPT.
17800 (uninstall): Remove sbin_SCRIPTS.
17801
17802 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
17803 device, try to get a GRUB device by
17804 grub_util_biosdisk_get_grub_dev.
17805 Free DEST_DEV.
17806
17807 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
17808 description for --device-map.
17809
17810 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
17811
17812 Change the semantics of variable hooks. They now return strings
17813 instead of error values.
17814
17815 * util/i386/pc/grub-setup.c: Include grub/env.h.
17816 (setup): Use grub_device_set_root instead of grub_env_set.
17817
17818 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
17819 grub_env_get instead of grub_device_set_root and
17820 grub_device_get_root, respectively.
17821
17822 * kern/main.c (grub_env_write_root): New function.
17823 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
17824 grub_env_set instead of grub_device_set_root.
17825
17826 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
17827 many variables.
17828 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
17829 rather than calling ENV->WRITE_HOOK afterwards.
17830 (grub_env_get): Return the result of ENV->READ_HOOK rather than
17831 passing a pointer of a pointer.
17832 (grub_register_variable_hook): Change the types of "read_hook" and
17833 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
17834 respectively.
17835 Allocate the default empty string on the heap, because this string
17836 may be freed later.
17837
17838 * kern/device.c: Include grub/env.h.
17839 (grub_device_set_root): Removed.
17840 (grub_device_get_root): Likewise.
17841 (grub_device_open): Use grub_env_get instead of
17842 grub_device_get_root.
17843
17844 * include/grub/env.h (grub_env_read_hook_t): New type.
17845 (grub_env_write_hook_t): Likewise.
17846 (grub_env_var): Change the types of "read_hook" and "write_hook"
17847 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
17848 (grub_register_variable_hook): Likewise.
17849
17850 * include/grub/device.h (grub_device_set_root): Removed.
17851 (grub_device_set_root): Likewise.
17852
17853 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
17854 make sure that DIRNAME terminates with '/', so that
17855 grub_fat_find_dir will fail if PATH is not a directory.
17856
17857 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
17858 from DIRNAME.
17859 Use the qualifier auto for print_files and print_files_long.
17860 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
17861 as a regular file.
17862 Put a newline only if there is no error.
17863 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
17864 used.
17865
17866 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
17867
17868 * kern/partition.c (grub_partition_probe): Initialize PART to
17869 NULL. Otherwise, when no partition map is registered, this returns
17870 a garbage.
17871
17872 2005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
17873
17874 * partmap/apple.c (apple_partition_map_iterate): Check if POS
17875 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
17876 valid.
17877
17878 2005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
17879
17880 * commands/ls.c (grub_ls_list_disks): Print the filesystem
17881 information on each device, if it does not have partitions. Print
17882 "Device" instead of "Disk", because this function is not specific
17883 to disk devices.
17884
17885 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
17886 static to ensure that it is put on the memory rather than a
17887 register.
17888
17889 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
17890
17891 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
17892 (grub_cat_init): Likewise.
17893 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
17894 (options): Likewise.
17895 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
17896 (grub_configfile_init): Likewise.
17897 * font/manager.c (GRUB_MOD_INIT): Likewise.
17898 * commands/help.c (GRUB_MOD_INIT): Likewise.
17899 (grub_help_init): Likewise.
17900 * normal/command.c (grub_command_init): Likewise.
17901 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
17902 * disk/loopback.c (grub_loop_init): Likewise.
17903 (GRUB_MOD_INIT): Likewise.
17904 * commands/ls.c (grub_ls_init): Likewise.
17905 (GRUB_MOD_INIT): Likewise.
17906 (options): Likewise.
17907 * commands/boot.c (grub_boot_init): Likewise.
17908 (GRUB_MOD_INIT): Likewise.
17909 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
17910 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
17911 (GRUB_MOD_INIT): Likewise.
17912 * commands/cmp.c (grub_cmp_init): Likewise.
17913 (GRUB_MOD_INIT): Likewise.
17914
17915 * normal/arg.c: Use <> instead of "" to include header files.
17916 (SHORT_ARG_HELP): New macro.
17917 (SHORT_ARG_USAGE): Likewise.
17918 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
17919 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
17920 descriptions.
17921 (find_short): Check if C is 'h' or 'u' explicitly.
17922 (grub_arg_show_help): Use space characters instead of tabs. Treat
17923 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
17924 are shown with --help and --usage only if they are not used for
17925 the command itself.
17926 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
17927 'h' and 'u'.
17928
17929 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
17930 const into "longarg". Change the type of "shortarg" to int.
17931
17932 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
17933
17934 * boot/i386/pc/boot.S (boot_drive_check): New label.
17935
17936 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
17937 macro.
17938
17939 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
17940 which do not pass a boot drive correctly. Copied from GRUB Legacy.
17941
17942 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
17943
17944 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
17945 When turning off Gate A20, skip the check and return immediately,
17946 because this is not fatal usually.
17947
17948 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
17949
17950 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
17951 be 0x7C00 instead of 0x8000.
17952
17953 * boot/i386/pc/pxeboot.S: Rewritten.
17954
17955 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
17956 EXT_C.
17957 (gate_a20_check_state): Read a byte from 0x108000. Invert the
17958 result.
17959
17960 2005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
17961
17962 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
17963 robustness. This routine now supports a BIOS call and System
17964 Control Port A to modify the gate A20.
17965
17966 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
17967 Increased to 0x440.
17968
17969 2005-07-12 Hollis Blanchard <hollis@penguinppc.org>
17970
17971 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
17972 device path and resulting ihandle.
17973 (grub_ofdisk_close): dprintf the ihandle being closed.
17974 (grub_ofdisk_read): dprintf function parameters.
17975 * kern/mm.c (grub_mm_init_region): Likewise.
17976 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
17977 (grub_linux_boot): dprintf the Linux entry point, initrd address and
17978 size, and boot arguments.
17979 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
17980 before loading into memory.
17981 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
17982 before loading into memory.
17983
17984 2005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
17985
17986 * kern/mm.c: Added much documentation.
17987 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
17988 8, set to 5 instead of 8.
17989
17990 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
17991
17992 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
17993
17994 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
17995 (grub_mkdevicemap_SOURCES): New variable.
17996
17997 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
17998 lib/device.c of GRUB Legacy.
17999
18000 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
18001
18002 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
18003 instead of PATH is NULL.
18004
18005 2005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
18006
18007 * commands/cmp.c (BUFFER_SIZE): New macro.
18008 (grub_cmd_cmp): Close the right file at the right time. Compare
18009 only data just read. Don't report files of different size as
18010 identical. Dynamically allocate buffers. Move variable
18011 declarations at the beginning of function.
18012
18013 2005-07-09 Yoshinori Okuji <okuji@enbug.org>
18014
18015 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
18016 reverse.
18017
18018 2004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
18019
18020 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
18021 when backspace is pressed at beginning of line.
18022
18023 2005-07-03 Yoshinori Okuji <okuji@enbug.org>
18024
18025 * DISTLIST: Added genfslist.sh.
18026
18027 * normal/main.c (fs_module_list): New variable.
18028 (autoload_fs_module): New function.
18029 (read_fs_list): Likewise.
18030 (grub_normal_execute): Call read_fs_list.
18031
18032 * kern/fs.c (grub_fs_autoload_hook): New variable.
18033 (grub_fs_probe): Added support for auto-loading.
18034
18035 * include/grub/normal.h (struct grub_fs_module_list): New struct.
18036 (grub_fs_module_list_t): New type.
18037
18038 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
18039 (grub_fs_autoload_hook): New prototype.
18040
18041 * genfslist.sh: New file.
18042
18043 * genmk.rb: Added a rule to generate a filesystem list.
18044
18045 2005-06-30 Marco Gerards <metgerards@student.han.nl>
18046
18047 * configure.ac: Fix the test for cross-compiling.
18048
18049 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
18050 define GRUB_UTIL anymore.
18051
18052 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
18053 so this function works on other systems than just big endian.
18054 (load_modules): Likewise.
18055 (add_segments): Likewise.
18056
18057 2005-06-23 Hollis Blanchard <hollis@penguinppc.org>
18058
18059 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
18060 contains `l' modifier, get a long from va_arg().
18061
18062 2005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
18063
18064 * kern/mm.c (grub_free): If the next free block which is being
18065 merged is the first free block, set the first block to the block
18066 being freed.
18067 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
18068
18069 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
18070
18071 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
18072 `grub_ieee1275_chosen'.
18073
18074 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
18075
18076 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
18077 (grub_ieee1275_chosen): New variable.
18078 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
18079 `chosen'.
18080 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
18081 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
18082 Rename first argument to `phandle' for consistency.
18083 (grub_ieee1275_get_property_length): Likewise.
18084 (grub_ieee1275_next_property): Likewise. Change type of first argument
18085 to grub_ieee1275_phandle_t.
18086 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
18087 Move export next to declaration.
18088 (grub_ieee1275_chosen): New variable.
18089 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
18090 Correct cosmetic typo.
18091 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
18092 `grub_ieee1275_chosen'.
18093 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
18094 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
18095 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
18096 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
18097 `grub_ieee1275_chosen'.
18098
18099 2005-05-10 Hollis Blanchard <hollis@penguinppc.org>
18100
18101 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
18102 /chosen/bootargs.
18103 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
18104 /chosen/bootargs as "variable=value" pairs.
18105
18106 2005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
18107
18108 * include/grub/misc.h (grub_dprintf): New macro.
18109 (grub_real_dprintf): New prototype.
18110 (grub_strword): Likewise.
18111 (grub_iswordseparator): Likewise.
18112 * kern/misc.c (grub_real_dprintf): New function.
18113 (grub_strword): Likewise.
18114 (grub_iswordseparator): Likewise.
18115
18116 2005-04-30 Hollis Blanchard <hollis@penguinppc.org>
18117
18118 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
18119 (roundup): Remove macro.
18120 (grub_ieee1275_flags): Make static.
18121 (grub_ieee1275_realmode): Remove.
18122 (grub_ieee1275_test_flag): New function.
18123 (grub_ieee1275_set_flag): Likewise.
18124 (find_options): Rename to `grub_ieee1275_find_options'; update
18125 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
18126 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
18127 (cmain): New prototype.
18128 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
18129 `grub_ieee1275_flags' directly.
18130 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
18131 machine/biosdisk.h.
18132 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
18133 Don't include grub/machine/init.h.
18134 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
18135 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
18136 Remove prototype.
18137 (grub_ieee1275_realmode): Likewise.
18138 (grub_ieee1275_flag): New enum.
18139 (grub_ieee1275_test_flag): New prototype.
18140 (grub_ieee1275_set_flag): New prototype.
18141 * include/grub/powerpc/ieee1275/init.h: Remove file.
18142 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
18143 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
18144 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
18145 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
18146 comment.
18147 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
18148 `grub_ieee1275_test_flag'.
18149 (grub_ieee1275_encode_devname): Likewise.
18150
18151 2005-04-21 Hollis Blanchard <hollis@penguinppc.org>
18152
18153 * include/grub/powerpc/ieee1275/ieee1275.h
18154 (grub_ieee1275_encode_devname): New prototype.
18155 (grub_ieee1275_get_filename): Likewise.
18156 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
18157 function.
18158 (grub_set_prefix): Likewise.
18159 (grub_machine_init): Call grub_set_prefix.
18160 * kern/powerpc/ieee1275/openfw.c: Fix typos.
18161 (grub_parse_type): New enum.
18162 (grub_ieee1275_get_devargs): New function.
18163 (grub_ieee1275_get_devname): Likewise.
18164 (grub_ieee1275_parse_args): Likewise.
18165 (grub_ieee1275_get_filename): Likewise.
18166 (grub_ieee1275_encode_devname): Likewise.
18167
18168 2005-03-30 Marco Gerards <metgerards@student.han.nl>
18169
18170 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
18171 `grub_loader_unset'.
18172
18173 2005-03-26 Hollis Blanchard <hollis@penguinppc.org>
18174
18175 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
18176 instead of grub_ieee1275_interpret.
18177 (grub_halt_init): New function.
18178 (grub_halt_fini): Likewise.
18179 (GRUB_MOD_INIT): Correct message grammar.
18180 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
18181 instead of grub_ieee1275_interpret.
18182 (grub_reboot_init): New function.
18183 (grub_reboot_fini): Likewise.
18184 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
18185 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
18186 util/i386/pc/misc.c with commands/ieee1275/halt.c,
18187 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
18188 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
18189 function.
18190 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
18191 Add prototype.
18192 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
18193 prototype.
18194 (grub_halt): Likewise.
18195 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
18196 (cmain): Remove __attribute__((unused)).
18197 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
18198 (grub_heap_len): Likewise.
18199 (grub_machine_fini): New function.
18200 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
18201 (grub_halt): Likewise.
18202 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
18203 function.
18204 * util/powerpc/ieee1275/misc.c: New file.
18205
18206 2005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
18207
18208 * DISTLIST: New file.
18209 * gendistlist.sh: Likewise.
18210
18211 * Makefile.in (COMMON_DISTFILES): Removed.
18212 (BOOT_DISTFILES): Likewise.
18213 (CONF_DISTFILES): Likewise.
18214 (DISK_DISTFILES): Likewise.
18215 (FS_DISTFILES): Likewise.
18216 (INCLUDE_DISTFILES): Likewise.
18217 (KERN_DISTFILES): Likewise.
18218 (LOADER_DISTFILES): Likewise.
18219 (TERM_DISTFILES): Likewise.
18220 (UTIL_DISTFILES): Likewise.
18221 (DISTFILES): Likewise.
18222 (uninstall): Uninstall files in $(pkgdata_DATA).
18223 (DISTLIST): New target.
18224 (distdir): Use the contents of the file DISTLIST to get a list of
18225 distributed files.
18226
18227 2005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
18228
18229 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
18230 descriptor. This is ported from GRUB Legacy.
18231
18232 * gencmdlist.sh: Added an extra semicolon to make it work with
18233 old sed versions. Reported by Robert Bihlmeyer
18234 <robbe@orcus.priv.at>.
18235
18236 2005-03-08 Yoshinori Okuji <okuji@enbug.org>
18237
18238 Automatic loading of commands is supported.
18239
18240 * normal/main.c (read_command_list): New function.
18241 (grub_normal_execute): Call read_command_list.
18242
18243 * normal/command.c (grub_register_command): Return zero or CMD.
18244 Allocate CMD->NAME from the heap.
18245 Initialize CMD->MODULE_NAME to zero.
18246 Find the same name as well. If the same command is found and it is
18247 a dummy command, overwrite members. If it is not a dummy command,
18248 return zero.
18249 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
18250 (grub_command_find): If a dummy command is found, load a module
18251 and retry to find a command only once.
18252
18253 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
18254 make sure that each command is loaded.
18255
18256 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
18257 macro.
18258 (struct grub_command): Remove const from the member `name'.
18259 Add a new member `module_name'.
18260 (grub_register_command): Return grub_command_t.
18261
18262 * commands/help.c (grub_cmd_help): Call grub_command_find to make
18263 sure that each command is loaded.
18264
18265 * genmk.rb (PModule::rule): Specify a module name without the
18266 suffix ".mod" to gencmdlist.sh.
18267
18268 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
18269
18270 * gencmdlist.sh: New file.
18271
18272 * genmk.rb (PModule::rule): Generate a rule for a command list.
18273 Clean command.lst.
18274 Generate command.lst from $(COMMANDFILES).
18275
18276 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
18277 (DATA): Added $(pkgdata_DATA).
18278 (install-local): Install files in $(pkgdata_DATA).
18279
18280 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
18281
18282 * term/i386/pc/vga.c (debug_command): Removed.
18283 (GRUB_MOD_INIT): Do not register the command "debug".
18284
18285 From Hollis Blanchard:
18286 * commands/configfile.c: New file.
18287 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
18288 commands/configfile.c.
18289 (pkgdata_MODULES): Added configfile.mod.
18290 (configfile_mod_SOURCES): New variable.
18291 (configfile_mod_CFLAGS): Likewise.
18292 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
18293 commands/configfile.c.
18294 (pkgdata_MODULES): Added configfile.mod.
18295 (configfile_mod_SOURCES): New variable.
18296 (configfile_mod_CFLAGS): Likewise.
18297 * util/grub-emu.c (main): Call grub_configfile_init and
18298 grub_configfile_fini.
18299 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
18300 prototype.
18301 [GRUB_UTIL] (grub_configfile_fini): Likewise.
18302
18303 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
18304
18305 * normal/arg.c (grub_arg_show_help): Do not show the bug report
18306 address.
18307
18308 * commands/help.c (grub_cmd_help): Do not print newlines after
18309 the last command in print_command_help.
18310
18311 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
18312
18313 * commands/default.h: New file.
18314 * commands/timeout.h: Likewise.
18315 * normal/context.c: Likewise.
18316
18317 * util/misc.c: Do not include sys/times.h.
18318 Include sys/time.h and grub/machine/time.h.
18319 (grub_get_rtc): Rewritten with gettimeofday.
18320
18321 * util/grub-emu.c (main): Call grub_default_init and
18322 grub_timeout_init before grub_normal_init, and call
18323 grub_timeout_fini and grub_default_fini after grub_main.
18324
18325 * util/console.c (grub_ncurses_checkkey): Return the read
18326 character or -1.
18327
18328 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
18329 timeouts.
18330
18331 * normal/main.c (read_config_file): Push MENU. If this fails,
18332 print an error and wait for a user input.
18333 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
18334 If a menu is empty or an error occurs, pop MENU.
18335 (grub_normal_execute): Pop and free MENU after grub_menu_run
18336 returns.
18337
18338 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
18339
18340 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
18341 include time.h.
18342 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
18343 without GRUB_UTIL.
18344 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
18345 time.h.
18346 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
18347 without GRUB_UTIL.
18348
18349 * include/grub/normal.h (struct grub_menu_list): New struct.
18350 (grub_menu_list_t): New type.
18351 (struct grub_context): New struct.
18352 (grub_context_t): New type.
18353 (grub_register_command): Got rid of EXPORT_FUNC.
18354 (grub_unregister_command): Likewise.
18355 (grub_context_get): New prototype.
18356 (grub_context_get_current_menu): Likewise.
18357 (grub_context_push_menu): Likewise.
18358 (grub_context_pop_menu): Likewise.
18359 [GRUB_UTIL] (grub_default_init): Likewise.
18360 [GRUB_UTIL] (grub_default_fini): Likewise.
18361 [GRUB_UTIL] (grub_timeout_init): Likewise.
18362 [GRUB_UTIL] (grub_timeout_fini): Likewise.
18363
18364 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
18365 commands/timeout.c and normal/context.c.
18366 (pkgdata_MODULES): Added default.mod and timeout.mod.
18367 (normal_mod_SOURCES): Added normal/context.c.
18368 (default_mod_SOURCES): New variable.
18369 (default_mod_CFLAGS): Likewise.
18370 (timeout_mod_SOURCES): Likewise.
18371 (timeout_mod_CFLAGS): Likewise.
18372 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
18373 conf/i386-pc.rmk.
18374 (pkgdata_MODULES): Added default.mod and timeout.mod.
18375 (normal_mod_SOURCES): Added normal/context.c.
18376 (default_mod_SOURCES): New variable.
18377 (default_mod_CFLAGS): Likewise.
18378 (timeout_mod_SOURCES): Likewise.
18379 (timeout_mod_CFLAGS): Likewise.
18380
18381 * Makefile.in (all-local): Added $(MKFILES).
18382
18383 2005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
18384
18385 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
18386 (grub_emu_SOURCES): Likewise.
18387 (pkgdata_MODULES): Add `sun.mod'.
18388 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
18389 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
18390 `partmap/sun.c'.
18391 (pkgdata_MODULES): Add `sun.mod'.
18392 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
18393 * include/grub/partition.h (grub_sun_partition_map_init): New
18394 prototype.
18395 (grub_sun_partition_map_fini): Likewise.
18396 * partmap/sun.c: New file.
18397 * util/grub-emu.c (main): Initialize and de-initialize the sun
18398 partitionmap support.
18399
18400 2005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
18401
18402 This implements an Emacs-like menu entry editor.
18403
18404 * normal/menu_entry.c: New file.
18405
18406 * util/console.c (grub_ncurses_putchar): Translate some Unicode
18407 characters to ASCII.
18408 (saved_char): New variable.
18409 (grub_ncurses_checkkey): Rewritten completely.
18410 (grub_ncurses_getkey): Likewise.
18411 (grub_ncurses_init): Call raw instead of cbreak.
18412
18413 * normal/menu.c (print_entry): Do not put a space.
18414 (init_page): Renamed to ...
18415 (grub_menu_init_page): ... this. All callers changed.
18416 (edit_menu_entry): Removed.
18417 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
18418
18419 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
18420
18421 * kern/misc.c (grub_vprintf): Call grub_refresh.
18422
18423 * normal/menu.c (DISP_LEFT): Renamed to ...
18424 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
18425 * normal/menu.c (DISP_UP): Renamed to ...
18426 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
18427 * normal/menu.c (DISP_RIGHT): Renamed to ...
18428 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
18429 * normal/menu.c (DISP_DOWN): Renamed to ...
18430 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
18431 * normal/menu.c (DISP_HLINE): Renamed to ...
18432 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
18433 * normal/menu.c (DISP_VLINE): Renamed to ...
18434 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
18435 * normal/menu.c (DISP_UL): Renamed to ...
18436 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
18437 * normal/menu.c (DISP_UR): Renamed to ...
18438 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
18439 * normal/menu.c (DISP_LL): Renamed to ...
18440 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
18441 * normal/menu.c (DISP_LR): Renamed to ...
18442 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
18443 * normal/menu.c (TERM_WIDTH): Renamed to ...
18444 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
18445 * normal/menu.c (TERM_HEIGHT): Renamed to ...
18446 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
18447 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
18448 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
18449 * normal/menu.c (TERM_MARGIN): Renamed to ...
18450 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
18451 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
18452 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
18453 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
18454 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
18455 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
18456 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
18457 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
18458 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
18459 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
18460 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
18461 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
18462 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
18463 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
18464 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
18465 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
18466 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
18467 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
18468 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
18469 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
18470 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
18471 All callers changed.
18472
18473 * include/grub/normal.h: New prototype.
18474
18475 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
18476 normal/menu_entry.c.
18477 (normal_mod_SOURCES): Likewise.
18478 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18479 (normal_mod_SOURCES): Likewise.
18480
18481 2005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
18482
18483 * include/grub/normal.h (grub_halt_init): New prototype.
18484 (grub_halt_fini): Likewise.
18485 (grub_reboot_init): Likewise.
18486 (grub_reboot_fini): Likewise.
18487
18488 * util/grub-emu.c: Include signal.h.
18489 (main_env): New global variable.
18490 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
18491 catch C-c.
18492 (grub_machine_fini): New function.
18493 (main): Call grub_halt_init and grub_reboot_init before
18494 grub_main, and grub_reboot_fini and grub_halt_fini after it.
18495 Call setjmp with MAIN_ENV to go back afterwards.
18496 Call grub_machine_fini right before return.
18497
18498 * include/grub/util/misc.h: Include setjmp.h.
18499 (main_env): New prototype.
18500
18501 * include/grub/kernel.h (grub_machine_fini): New prototype.
18502 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
18503 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
18504
18505 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
18506 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
18507 * term/i386/pc/console.c (grub_console_fini): Likewise.
18508
18509 * util/i386/pc/misc.c: New file.
18510
18511 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
18512 util/i386/pc/misc.c, commands/i386/pc/halt.c and
18513 commands/i386/pc/reboot.c.
18514
18515 2005-02-14 Guillem Jover <guillem@hadrons.org>
18516
18517 * include/grub/dl.h (grub_dl_check_header): New prototype.
18518 (grub_arch_dl_check_header): Change return type to grub_err_t,
18519 remove size parameter and export function. Update all callers.
18520 * kern/dl.c (grub_dl_check_header): New function.
18521 (grub_dl_load_core): Use `grub_dl_check_header' instead of
18522 `grub_arch_dl_check_header'. Check ELF type. Check if sections
18523 are inside the core.
18524 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
18525 independent ELF header checks.
18526 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
18527 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
18528 `grub_dl_check_header' instead of explicit checks. Check for the
18529 ELF type.
18530 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
18531 `grub_dl_check_header' instead of explicit checks. Remove arch
18532 specific ELF header checks.
18533
18534 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
18535 argument SIZE.
18536
18537 2005-02-13 Hollis Blanchard <hollis@penguinppc.org>
18538
18539 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
18540 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
18541
18542 2005-02-12 Hollis Blanchard <hollis@penguinppc.org>
18543
18544 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
18545 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
18546 (part_map_iterate): Clear `grub_errno' and return 0 if
18547 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
18548 * partmap/amiga.c (amiga_partition_map_iterate): Return
18549 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
18550 * partmap/apple.c (apple_partition_map_iterate): Likewise.
18551
18552 2005-02-01 Guillem Jover <guillem@hadrons.org>
18553
18554 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
18555 help info.
18556
18557 2005-01-31 Marco Gerards <metgerards@student.han.nl>
18558
18559 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
18560 Removed prototype.
18561 (grub_rescue_cmd_linux): New prototype.
18562 (grub_rescue_cmd_initrd): Likewise.
18563 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
18564 `bi_rec'.
18565 (grub_linux_release_mem): Release the memory for the initrd.
18566 (grub_load_linux): Renamed from this...
18567 (grub_rescue_cmd_linux): ...To this. Changed all callers.
18568 Changed `entry' not to be static. Loop over memory regions to
18569 find another one when the default fails.
18570 (grub_rescue_cmd_initrd): New function.
18571 (grub_linux_init): Remove function.
18572 (grub_linux_fini): Likewise.
18573 (GRUB_MOD_INIT): Register `initrd'.
18574 (GRUB_MOD_FINI): Unregister `initrd'.
18575 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
18576 Function removed.
18577 (grub_linux_normal_fini): Likewise.
18578 (GRUB_MOD_INIT): Register `initrd'.
18579 (GRUB_MOD_FINI): Unregister `initrd'.
18580
18581 2005-01-31 Marco Gerards <metgerards@student.han.nl>
18582
18583 * commands/help.c: New file.
18584 * normal/arg.c (show_help): Renamed to...
18585 (grub_arg_show_help): ... this.
18586 * commands/i386/pc/halt.c: New file.
18587 * commands/i386/pc/reboot.c: Likewise.
18588 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
18589 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
18590 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
18591 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
18592 variables.
18593 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
18594 `commands/help.c'.
18595 (pkgdata_MODULES): Add `help.mod'.
18596 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
18597 * grub/i386/pc/init.h (grub_reboot): New prototype.
18598 (grub_halt): Likewise.
18599 * include/grub/normal.h (grub_arg_show_help): New prototype.
18600 (grub_help_init): Likewise.
18601 (grub_help_fini): Likewise.
18602 * util/grub-emu.c (main): Initialize and deinitialize the help
18603 command.
18604
18605 * normal/cmdline.c (grub_cmdline_get): Doc fix.
18606
18607 * normal/command.c (grub_command_init): Fixed the description of
18608 the `set' and `unset' commands.
18609
18610 2005-01-31 Marco Gerards <metgerards@student.han.nl>
18611
18612 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
18613 function.
18614 * commands/ieee1275/halt.c: New file.
18615 * commands/ieee1275/reboot.c: Likewise.
18616 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
18617 `__attribute__ ((unused))'. Some GCS related fixed.
18618 (grub_suspend_init) [GRUB_UTIL]: Function removed.
18619 (grub_suspend_fini): Likewise.
18620 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
18621 and `halt.mod'.
18622 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
18623 (halt_mod_CFLAGS): New variables.
18624 * include/grub/powerpc/ieee1275/ieee1275.h
18625 (grub_ieee1275_interpret): New prototype.
18626
18627 2005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
18628
18629 * include/grub/misc.h (memmove): New prototype.
18630 (memcpy): Likewise.
18631
18632 2005-01-22 Hollis Blanchard <hollis@penguinppc.org>
18633
18634 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
18635 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
18636
18637 2005-01-22 Marco Gerards <metgerards@student.han.nl>
18638
18639 * kern/misc.c (grub_strndup): Function rewritten.
18640
18641 2005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
18642
18643 * normal/menu.c (TERM_WIDTH): Macro redefined.
18644 (TERM_TOP_BORDER_Y): Likewise.
18645 (draw_border): Replaced while-loop by a for-loop. Make the number
18646 of lines consistent with the number of lines displayed in
18647 print_entries. Added a margin below the rectangle.
18648 (print_entry): Make the entry fit in the rectangle.
18649 (print_entries): Display the scroll arrows next to the right
18650 border.
18651
18652 2005-01-21 Marco Gerards <metgerards@student.han.nl>
18653
18654 * fs/minix.c (grub_minix_find_file): Reserve more space for
18655 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
18656 `grub_strncpy' to copy `path' into it.
18657
18658 2005-01-21 Marco Gerards <metgerards@student.han.nl>
18659
18660 Add the loopback device, a device via which files can be accessed
18661 as devices.
18662
18663 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
18664 (pkgdata_MODULES): Add loopback.mod.
18665 (loopback_mod_SOURCES): New variable.
18666 (loopback_mod_CFLAGS): Likewise.
18667 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
18668 `disk/loopback.c'.
18669 (pkgdata_MODULES): Add loopback.mod.
18670 (loopback_mod_SOURCES): New variable.
18671 (loopback_mod_CFLAGS): Likewise.
18672 * disk/loopback.c: new file.
18673 * include/grub/normal.h (grub_loop_init): New prototype.
18674 (grub_loop_fini): New prototype.
18675 * util/grub-emu.c (main): Initialize and de-initialize loopback
18676 support.
18677 * include/grub/disk.h (grub_disk_dev_id): Add
18678 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
18679
18680 2005-01-20 Hollis Blanchard <hollis@penguinppc.org>
18681
18682 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
18683 function.
18684 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
18685 (suspend_mod_SOURCES): New variable.
18686 (suspend_mod_CFLAGS): Likewise.
18687 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
18688 New prototype.
18689 * commands/ieee1275/suspend.c: New file.
18690
18691 2005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
18692
18693 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
18694 ((unused))' to `__attribute__ ((used))'.
18695 (GRUB_MOD_FINI): Likewise.
18696 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
18697 * genmk.rb (PModule): Assign space to common symbols when linking
18698 modules.
18699
18700 2005-01-20 Marco Gerards <metgerards@student.han.nl>
18701
18702 * include/grub/mm.h (grub_mm_init_region): Change the type of the
18703 `unsigned' arguments to `grub_size_t'.
18704 (grub_malloc): Likewise.
18705 (grub_realloc): Likewise.
18706 (grub_memalign): Likewise.
18707 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
18708 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
18709 * util/misc.c (grub_malloc): Likewise.
18710 (grub_realloc): Likewise.
18711 * kern/mm.c (get_header_from_pointer): Change the casts to
18712 `unsigned' into a cast to `grub_size_t'.
18713
18714 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
18715 point to `currnode' when `currnode' is changed.
18716
18717 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
18718 Schottelius <nico-linux@schottelius.org>.
18719
18720 2005-01-09 Hollis Blanchard <hollis@penguinppc.org>
18721
18722 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
18723 (note_path): Remove variable.
18724 (GRUB_IEEE1275_NOTE_NAME): New macro.
18725 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
18726 (grub_ieee1275_note_hdr): New structure.
18727 (grub_ieee1275_note_desc): Likewise.
18728 (grub_ieee1275_note): Likewise.
18729 (load_note): Remove `dir' argument. All callers updated. Remove
18730 `note_img' and `path'. Do not load a file from `note_path'.
18731 Initialize a struct grub_ieee1275_note and write that to `out'.
18732 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
18733
18734 2005-01-05 Marco Gerards <metgerards@student.han.nl>
18735
18736 * util/misc.c (grub_util_read_image): Revert last change. It
18737 called `grub_util_read_at', which seeks from the beginning of the
18738 file.
18739
18740 2005-01-04 Hollis Blanchard <hollis@penguinppc.org>
18741
18742 * TODO: Add note about endianness in grub-mkimage.
18743 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
18744 section.
18745 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
18746 (grub_mkimage_SOURCES): New target.
18747 * include/grub/kernel.h (grub_start_addr): Remove variable.
18748 (grub_end_addr): Likewise.
18749 (grub_total_module_size): Likewise.
18750 (grub_kernel_image_size): Likewise.
18751 (GRUB_MODULE_MAGIC): New constant.
18752 (grub_module_info): New structure.
18753 (grub_arch_modules_addr): New prototype.
18754 (grub_get_end_addr): Remove prototype.
18755 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
18756 * include/grub/powerpc/ieee1275/kernel.h: New file.
18757 * include/grub/util/misc.h (grub_util_get_fp_size): New
18758 prototype.
18759 (grub_util_read_at): Likewise.
18760 (grub_util_write_image_at): Likewise.
18761 * kern/main.c (grub_get_end_addr): Remove function.
18762 (grub_load_modules): Call grub_arch_modules_addr instead of using
18763 grub_end_addr. Look for a grub_module_info struct in memory. Use
18764 the grub_module_info fields instead of calling grub_get_end_addr
18765 as loop conditions. Move grub_add_unused_region code here.
18766 (grub_add_unused_region): Remove function.
18767 * kern/i386/pc/init.c: Include grub/cache.h.
18768 (grub_machine_init): Remove call to grub_get_end_addr. Remove
18769 one call to add_mem_region.
18770 (grub_arch_modules_addr): New function.
18771 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
18772 (grub_total_module_size): Likewise.
18773 Include grub/machine/kernel.h.
18774 (grub_arch_modules_addr): New function.
18775 * util/grub-emu.c (grub_end_addr): Remove variable.
18776 (grub_total_module_size): Likewise.
18777 (grub_arch_modules_addr): New function.
18778 * util/misc.c: Include unistd.h.
18779 (grub_util_get_fp_size): New function.
18780 (grub_util_read_at): Likewise.
18781 (grub_util_write_image_at): Likewise.
18782 (grub_util_read_image): Call grub_util_read_at.
18783 (grub_util_write_image): Call grub_util_write_image_at.
18784 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
18785 additional memory in kernel_img for a struct grub_module_info.
18786 Fill in that grub_module_info.
18787 * util/powerpc/ieee1275/grub-mkimage.c: New file.
18788
18789 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
18790
18791 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
18792 New function.
18793 * include/grub/powerpc/ieee1275/ieee1275.h
18794 (grub_ieee1275_milliseconds): New prototype.
18795 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
18796 Change to 1000.
18797 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
18798 grub_ieee1275_milliseconds.
18799
18800 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
18801
18802 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
18803 variable.
18804 (find_options): New function.
18805 (cmain): Call find_options.
18806 * include/grub/powerpc/ieee1275/ieee1275.h
18807 (grub_ieee1275_realmode): New extern variable.
18808 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
18809 grub_map if grub_ieee1275_realmode is false.
18810
18811 2004-12-29 Marco Gerards <metgerards@student.han.nl>
18812
18813 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
18814 lines are inserted and make it work like readline. Reported by
18815 Vincent Pelletier <subdino2004@yahoo.fr>.
18816
18817 2004-12-28 Marco Gerards <metgerards@student.han.nl>
18818
18819 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
18820
18821 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
18822 `kern/powerpc/cache.S'.
18823
18824 2004-12-27 Marco Gerards <metgerards@student.han.nl>
18825
18826 * genmk.rb: Handle the `Program' class in the main loop. Written
18827 by Johan Rydberg <jrydberg@gnu.org>.
18828 (Program): New class.
18829 (programs): New variable.
18830 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
18831 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
18832 instead of "grub/kernel.h". Include <grub/machine/init.h>.
18833 (help_arch): Function removed.
18834 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
18835 `powerpc/libgcc.h' and `loader.h'.
18836 (pkgdata_PROGRAMS): New variable.
18837 (sbin_UTILITIES): Variable removed.
18838 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
18839 (grubof_SOURCES): Variable re-defined so it only includes the
18840 core functionality.
18841 (grubof_CFLAGS): Remove `-DGRUBOF'.
18842 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
18843 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
18844 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
18845 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
18846 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
18847 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
18848 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
18849 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
18850 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
18851 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
18852 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
18853 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
18854 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
18855 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
18856 (pc_mod_CFLAGS): New variables.
18857 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
18858 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
18859 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
18860 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
18861 Moved from here...
18862 * include/grub/i386/pc/init.h (grub_os_area_addr)
18863 (rub_os_area_size): ... to here.
18864 * include/grub/powerpc/ieee1275/ieee1275.h
18865 (grub_ieee1275_entry_fn): Export symbol.
18866 * include/grub/powerpc/ieee1275/init.h: New file.
18867 * include/grub/powerpc/libgcc.h: Likewise.
18868 * include/grub/cache.h: Likewise.
18869 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
18870 <hollis@penguinppc.org>.
18871 * kern/dl.c: Include <grub/cache.h>.
18872 (grub_dl_flush_cache): New function.
18873 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
18874 for this module.
18875 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
18876 (grub_console_init): Removed prototypes.
18877 (grub_machine_init): Don't initialize the modules anymore.
18878 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
18879 static.
18880 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
18881 Macro undef removed.
18882 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
18883 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
18884 relocation `R_PPC_REL32'. Return an error when the relocation is
18885 unknown.
18886 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
18887 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
18888 * util/misc.c (grub_arch_sync_caches): Likewise.
18889
18890 2004-12-19 Marco Gerards <metgerards@student.han.nl>
18891
18892 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
18893 `symlist.c', add `grubof_symlist.c'.
18894 (symlist.c): Variable removed.
18895 (grubof_HEADERS): Variable added.
18896 (grubof_symlist.c): New target.
18897 (kernel_syms.lst): Use `grubof_HEADERS' instead of
18898 `kernel_img_HEADERS'.
18899 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
18900 * kern/powerpc/dl.c: New file.
18901 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
18902 Function removed.
18903 (grub_arch_dl_relocate_symbols): Likewise.
18904 (grub_register_exported_symbols): Likewise.
18905
18906 2004-12-13 Marco Gerards <metgerards@student.han.nl>
18907
18908 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
18909 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
18910 to fail instead. Reported by Vincent Pelletier
18911 <subdino2004@yahoo.fr>.
18912
18913 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
18914 it is not allocated. Reported by Vincent Pelletier
18915 <subdino2004@yahoo.fr>.
18916
18917 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
18918 output so the output looks better.
18919
18920 2004-12-04 Marco Gerards <metgerards@student.han.nl>
18921
18922 Modulize the partition map support and add support for the amiga
18923 partition map.
18924
18925 * commands/ls.c: Include <grub/partition.h> instead of
18926 <grub/machine/partition.h>.
18927 * kern/disk.c: Likewise.
18928 * kern/rescue.c: Likewise.
18929 * loader/i386/pc/chainloader.c: Likewise.
18930 * normal/cmdline.c: Likewise.
18931 * kern/powerpc/ieee1275/init.c: Likewise.
18932 (grub_machine_init): Call `grub_pc_partition_map_init',
18933 `grub_amiga_partition_map_init' and
18934 `grub_apple_partition_map_init'.
18935 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
18936 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
18937 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
18938 `partition.h' and `pc_partition.h'.
18939 (grub_setup_SOURCES): Remove
18940 `disk/i386/pc/partition.c'. Add `kern/partition.c',
18941 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
18942 (grub_emu_SOURCES): Likewise.
18943 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
18944 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
18945 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
18946 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
18947 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
18948 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
18949 (grubof_SOURCES): Likewise.
18950 * disk/i386/pc/partition.c: File removed.
18951 * disk/powerpc/ieee1275/partition.c: Likewise.
18952 * include/grub/powerpc/ieee1275/partition.h: Likewise.
18953 * include/grub/i386/pc/partition.h: Likewise.
18954 * kern/partition.c: New file.
18955 * partmap/amiga.c: Likewise.
18956 * partmap/apple.c: Likewise.
18957 * partmap/pc.c: Likewise.
18958 * include/grub/partition.h: Likewise..
18959 * include/grub/pc_partition.h: Likewise.
18960 * util/grub-emu.c: Include <grub/partition.h> instead of
18961 <grub/machine/partition.h>.
18962 (main): Call `grub_pc_partition_map_init',
18963 `grub_amiga_partition_map_init' and
18964 `grub_apple_partition_map_init' and deinitialize afterwards.
18965 * util/i386/pc/biosdisk.c: Include `#include
18966 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
18967 `<grub/machine/partition.h>'.
18968 * util/i386/pc/grub-setup.c: Likewise.
18969 * util/i386/pc/biosdisk.c: Likewise.
18970 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
18971 partition information in case of a PC partition.
18972 * util/i386/pc/grub-setup.c: Include `#include
18973 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
18974 `<grub/machine/partition.h>'.
18975 (setup): Only access the PC specific partition information in case
18976 of a PC partition.
18977
18978 2004-11-17 Hollis Blanchard <hollis@penguinppc.org>
18979
18980 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
18981 (grub_longjmp): Likewise.
18982 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
18983 20.
18984 * normal/powerpc/setjmp.S: New file.
18985 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
18986 `normal/powerpc/setjmp.S'.
18987 (grubof_CFLAGS): Add `-DGRUBOF'.
18988 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
18989 [GRUB_UTIL && !GRUBOF].
18990
18991 2004-11-16 Marco Gerards <metgerards@student.han.nl>
18992
18993 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
18994 property named `name'. Correctly handle the error returned by
18995 `grub_ieee1275_finddevice' if a device can not be opened.
18996
18997 2004-11-02 Hollis Blanchard <hollis@penguinppc.org>
18998
18999 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
19000 `actual' for negativity.
19001 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
19002 kern/fshelp.c.
19003
19004 2004-11-01 Marco Gerards <metgerards@student.han.nl>
19005
19006 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
19007 (PAGE_OFFSET): New macro.
19008 (CRTC_ADDR_PORT): Likewise.
19009 (CRTC_DATA_PORT): Likewise.
19010 (START_ADDR_HIGH_REGISTER): Likewise.
19011 (START_ADDR_LOW_REGISTER): Likewise.
19012 (GRAPHICS_ADDR_PORT): Likewise.
19013 (GRAPHICS_DATA_PORT): Likewise.
19014 (READ_MAP_REGISTER): Likewise.
19015 (INPUT_STATUS1_REGISTER): Likewise.
19016 (INPUT_STATUS1_VERTR_BIT): Likewise.
19017 (page): New variable.
19018 (wait_vretrace): New function.
19019 (set_read_map): Likewise.
19020 (set_start_address): Likewise.
19021 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
19022 the right page.
19023 (check_vga_mem): Take the page into account.
19024 (write_char): Likewise.
19025 (write_cursor): Likewise.
19026 (scroll_up): Likewise. Copy the page to the page that is not
19027 shown and switch between both pages.
19028 (grub_vga_putchar): Fix off by one error.
19029 (grub_vga_cls): Wait for the vertical retrace. Take the page into
19030 account.
19031
19032 2004-11-01 Marco Gerards <metgerards@student.han.nl>
19033
19034 Add support for iso9660 (including rockridge).
19035
19036 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
19037 (iso9660_mod_SOURCES): New variable.
19038 (iso9660_mod_CFLAGS): Likewise.
19039 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
19040 * include/grub/fs.h (grub_iso9660_init): New prototype.
19041 * util/grub-emu.c (main): Call `grub_iso9660_init'.
19042 * fs/iso9660.c: New file.
19043
19044 * include/grub/misc.h (grub_strncat): New prototype.
19045 * kern/misc.c (grub_strncat): New function.
19046
19047 * fs/hfs.c (grub_hfs_mount): Translate the error
19048 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
19049 * fs/jfs.c (grub_jfs_mount): Likewise.
19050 * fs/ufs.c (grub_ufs_mount): Likewise.
19051
19052 2004-10-28 Hollis Blanchard <hollis@penguinppc.org>
19053
19054 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
19055 which initialized BAT registers.
19056 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
19057 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
19058 Move from here...
19059 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
19060 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
19061 ... to here.
19062 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
19063 (grub_mapclaim): Likewise.
19064 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
19065 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
19066 hand.
19067
19068 2004-10-19 Hollis Blanchard <hollis@penguinppc.org>
19069
19070 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
19071 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
19072 -ffreestanding and -msoft-float.
19073
19074 2004-10-15 Hollis Blanchard <hollis@penguinppc.org>
19075
19076 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
19077 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
19078 set in grub_ieee1275_flags.
19079
19080 2004-10-14 Hollis Blanchard <hollis@penguinppc.org>
19081
19082 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
19083 prototype.
19084 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
19085 grub_console_init first.
19086 Change the memory range used for grub_ieee1275_claim and
19087 grub_mm_init_region.
19088 Print an error message if the claim fails.
19089 Include <grub/misc.h>.
19090
19091 2004-10-13 Hollis Blanchard <hollis@penguinppc.org>
19092
19093 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
19094 Call grub_children_iterate for device nodes of type `scsi',
19095 `ide', or `ata'.
19096 (grub_ofdisk_open): Remove manual device alias resolution.
19097 Fix memory leak when device cannot be opened.
19098 * include/grub/powerpc/ieee1275/ieee1275.h
19099 (grub_children_iterate): New prototype.
19100 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
19101 New function.
19102 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
19103 Return -1 if args.size was -1.
19104
19105 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
19106
19107 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
19108 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
19109 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
19110 Open Firmware's memory for it; claim memory from _start to _end.
19111 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
19112 (_end): New extern.
19113 (_start): Zero BSS from __bss_start to _end.
19114 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
19115 New extern.
19116 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
19117
19118 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
19119
19120 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
19121 -1 if args.base was -1.
19122
19123 2004-10-08 Hollis Blanchard <hollis@penguinppc.org>
19124
19125 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
19126 escape sequence instead of a literal ^L. Also call
19127 grub_ofconsole_gotoxy.
19128
19129 2004-10-03 Hollis Blanchard <hollis@penguinppc.org>
19130
19131 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
19132 void * arguments to grub_addr_t. All callers updated. Also make
19133 the `result' argument optional.
19134 (grub_ieee1275_release): change void * arguments to grub_addr_t.
19135 All callers updated.
19136
19137 2004-09-22 Hollis Blanchard <hollis@penguinppc.org>
19138
19139 * commands/ls.c (grub_ls_list_files): Use the string following the
19140 initial ')', if present, as the filesystem path.
19141 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
19142
19143 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
19144
19145 2004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
19146
19147 Make the source code of the menu interface more readable.
19148
19149 * normal/menu.c: Include grub/mm.h.
19150 (TERM_WIDTH): New macro.
19151 (TERM_HEIGHT): Likewise.
19152 (TERM_INFO_HEIGHT): Likewise.
19153 (TERM_MARGIN): Likewise.
19154 (TERM_SCROLL_WIDTH): Likewise.
19155 (TERM_TOP_BORDER_Y): Likewise.
19156 (TERM_LEFT_BORDER_X): Likewise.
19157 (TERM_BORDER_WIDTH): Likewise.
19158 (TERM_MESSAGE_HEIGHT): Likewise.
19159 (TERM_BORDER_HEIGHT): Likewise.
19160 (TERM_NUM_ENTRIES): Likewise.
19161 (TERM_FIRST_ENTRY_Y): Likewise.
19162 (TERM_ENTRY_WIDTH): Likewise.
19163 (TERM_CURSOR_X): Likewise.
19164 (draw_border): Use macros instead of magic numbers.
19165 (print_entry): Likewise.
19166 (print_entries): Likewise.
19167 (run_menu): Likewise. Also, handle the key 'e'.
19168 (run_menu_entry): Ignore empty command lines.
19169 (print_message): Added a new argument EDIT. If EDIT is true,
19170 print a different message.
19171 (init_page): Likewise.
19172 (edit_menu_entry): New function. Not implemented yet.
19173
19174 2004-09-17 Marco Gerards <metgerards@student.han.nl>
19175
19176 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
19177 can be loaded from normal mode.
19178
19179 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
19180 `multiboot.mod'.
19181 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
19182 (multiboot_mod_CFLAGS): New variables.
19183 * loader/i386/pc/linux_normal.c: New file.
19184 * loader/i386/pc/multiboot_normal.c: Likewise.
19185
19186 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
19187 attribute `unused'.
19188
19189 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
19190 `fdiro' to read the mode information from instead of `diro'.
19191
19192 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
19193 looking up a symlink.
19194
19195 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
19196 macro.
19197 * normal/command.c (grub_command_execute): Don't parse the
19198 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
19199 flags of the command.
19200
19201 * normal/menu.c (grub_menu_run): Fix typo.
19202
19203 2004-09-14 Hollis Blanchard <hollis@penguinppc.org>
19204
19205 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
19206
19207 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
19208 `y + 1' instead of `y - 1'.
19209
19210 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
19211
19212 2004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
19213
19214 From Hollis Blanchard <hollis@penguinppc.org>:
19215 * kern/misc.c (memmove): New alias for grub_memmove.
19216 (memcmp): New alias for grub_memcmp.
19217 (memset): New alias for grub_memset.
19218 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
19219 Change "int handle" to "grub_ieee1275_phandle_t handle".
19220 * include/grub/powerpc/ieee1275/ieee1275.h
19221 (grub_ieee1275_get_property): Likewise.
19222
19223 2004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
19224
19225 Added normal mode command `chainloader' as module chain.mod, which
19226 depends on normal.mod and _chain.mod.
19227
19228 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
19229 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
19230 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
19231 Deleted prototype.
19232 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
19233 but arguments parsing moved to ...
19234 (grub_chainloader_cmd): ... here. New function.
19235 * include/grub/i386/pc/chainloader.h: New file.
19236 * loader/i386/pc/chainloader_normal.c: Likewise.
19237
19238 2004-09-11 Marco Gerards <metgerards@student.han.nl>
19239
19240 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
19241 (grub_mkimage_LDFLAGS): Likewise.
19242 (grub_emu_SOURCES): Likewise.
19243 (kernel_img_HEADERS): Added fshelp.h.
19244 * fs/ext2.c: Include <grub/fshelp.h>.
19245 (FILETYPE_REG): New macro.
19246 (FILETYPE_INO_REG): Likewise.
19247 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
19248 Changed all users.
19249 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
19250 all users.
19251 (grub_fshelp_node): New struct.
19252 (grub_ext2_data): Added member `diropen'. Changed member `inode'
19253 to a pointer.
19254 (grub_ext2_get_file_block): Removed function.
19255 (grub_ext2_read_block): New function.
19256 (grub_ext2_read_file): Replaced parameter `data' by `node'.
19257 This function was written.
19258 (grub_ext2_mount): Read the root inode. Create a diropen struct.
19259 (grub_ext2_find_file): Removed function.
19260 (grub_ext2_read_symlink): New function.
19261 (grub_ext2_iterate_dir): Likewise.
19262 (grub_ext2_open): Rewritten.
19263 (grub_ext2_dir): Rewritten.
19264 * include/grub/fshelp.h: New file.
19265 * fs/fshelp.c: Likewise.
19266
19267 2004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
19268
19269 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
19270 (print_message): Add a missing newline.
19271 (run_menu): Added timeout support.
19272 (run_menu_entry): New local function.
19273 (grub_menu_run): Added support for booting.
19274
19275 * kern/loader.c (grub_loader_is_loaded): New function.
19276
19277 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
19278 (grub_get_rtc): Exported.
19279
19280 * include/grub/i386/pc/time.h: Include grub/symbol.h.
19281 (grub_get_rtc): Exported.
19282
19283 * include/grub/normal.h (struct grub_command_list): Remove
19284 constant from the member `command'.
19285
19286 * include/grub/loader.h (grub_loader_is_loaded): Declared.
19287
19288 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
19289
19290 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
19291
19292 2004-08-28 Marco Gerards <metgerards@student.han.nl>
19293
19294 Add support for the JFS filesystem.
19295
19296 * fs/jfs.c: New file.
19297 * include/grub/fs.h (grub_jfs_init): New prototype.
19298 (grub_jfs_fini): New prototype.
19299 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
19300 (grub_emu_SOURCES): Likewise.
19301 (pkgdata_MODULES): Add jfs.mod.
19302 (jfs_mod_SOURCES): New variable.
19303 (jfs_mod_CFLAGS): Likewise.
19304 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
19305 (grubof_SOURCES): Likewise.
19306 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
19307
19308 * fs/fat.c (grub_fat_find_dir): Convert the filename little
19309 endian to the host endian.
19310 (grub_fat_utf16_to_utf8): Move function from there...
19311 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
19312 the endianness of the source string anymore.
19313 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
19314
19315 2004-08-24 Marco Gerards <metgerards@student.han.nl>
19316
19317 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
19318 (grub_boot_fini) [GRUB_UTIL]: Likewise.
19319 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
19320 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
19321
19322 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
19323 (grub_hfs_iterate_dir): Make the function static. Add prototypes
19324 for `node_found' and `it_dir'.
19325 (grub_hfs_dir): Add prototype for `dir_hook'.
19326
19327 * fs/minix.c (grub_minix_get_file_block): Add prototype for
19328 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
19329 and `indir32' to silence a gcc warning.
19330
19331 * include/grub/fs.h (grub_hfs_init): New prototype.
19332 (grub_hfs_fini): Likewise.
19333
19334
19335 2004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
19336
19337 Each disk device has its own id now. This is useful to make use
19338 of multiple disk devices.
19339
19340 * include/grub/disk.h (grub_disk_dev_id): New enum.
19341 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
19342 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
19343
19344 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
19345 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
19346
19347 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
19348 GRUB_DISK_DEVICE_OFDISK_ID as an id.
19349
19350 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
19351 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
19352
19353 * include/grub/disk.h (struct grub_disk_dev): Added a new member
19354 "id" which is used by the cache manager.
19355
19356 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
19357 of just "GRUB".
19358
19359 2004-08-18 Marco Gerards <metgerards@student.han.nl>
19360
19361 * fs/hfs.c: New file.
19362 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
19363 (grub_emu_SOURCES): Likewise.
19364 (pkgdata_MODULES): Add hfs.mod.
19365 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
19366 (grubof_SOURCES): Likewise.
19367 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
19368
19369 * include/grub/misc.h (grub_strncasecmp): Add prototype.
19370 * kern/misc.c (grub_strncasecmp): Add function.
19371
19372 2004-08-14 Marco Gerards <metgerards@student.han.nl>
19373
19374 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
19375 with parentheses.
19376
19377 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
19378 (grub_ext2_dir): In case the directory entry type is unknown, read
19379 it from the inode.
19380
19381 2004-08-02 Peter Bruin <pjbruin@dds.nl>
19382
19383 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
19384 grub_load_linux instead of grub_rescue_cmd_linux as second
19385 argument of grub_rescue_register_command.
19386
19387 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
19388
19389 2004-07-27 Marco Gerards <metgerards@student.han.nl>
19390
19391 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
19392 function.
19393 * commands/boot.c: Remove the check for `GRUB_UTIL'.
19394 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
19395 `loader/powerpc/ieee1275/linux.c',
19396 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
19397 * include/grub/powerpc/ieee1275/ieee1275.h
19398 (grub_ieee1275_release): New prototype.
19399 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
19400 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
19401 normal, boot, linux and linux_normal.
19402 * loader/powerpc/ieee1275/linux.c: New file.
19403 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
19404
19405 2004-07-12 Marco Gerards <metgerards@student.han.nl>
19406
19407 * normal/arg.c (grub_arg_parse): Correct error handling after
19408 reallocating the argumentlist (check if `argl' is not null instead
19409 of checking if `args' is not null).
19410 * kern/mm.c (grub_realloc): Return the same pointer when using the
19411 same region, instead of returning the header address.
19412
19413 2004-07-11 Marco Gerards <metgerards@student.han.nl>
19414
19415 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
19416 one block instead of two when looking for the initial partition.
19417 (grub_partition_probe): Initialize the local variable `p' with 0.
19418 Use base 10 for the grub_strtoul call.
19419 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
19420 need for one local variable.
19421 (grub_strtoul): Don't add the new value to `num', instead of that
19422 just assign it.
19423
19424 2004-07-11 Marco Gerards <metgerards@student.han.nl>
19425
19426 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
19427 (pxeboot_img_SOURCES): New variable.
19428 (pxeboot_img_ASFLAGS): Likewise.
19429 (pxeboot_img_LDFLAGS): Likewise.
19430 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
19431 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
19432 <lode_leroy@hotmail.com>.
19433
19434 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
19435
19436 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
19437 there was no input.
19438
19439 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
19440
19441 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
19442 the history buffer logic.
19443
19444 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
19445
19446 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
19447 (FILETYPE_INO_SYMLINK): New macros.
19448 (grub_ext2_find_file): Check if the node is a directory using the
19449 inode stat information instead of using the filetype in the
19450 dirent. Exclude the first character of an absolute symlink.
19451 (grub_ext2_dir): Mask out the filetype part of the mode member of
19452 the inode.
19453
19454 2004-05-24 Marco Gerards <metgerards@student.han.nl>
19455
19456 Add support for UFS version 1 and 2. Add support for the minix
19457 filesystem version 1 and 2, both the variants with 14 and 30 long
19458 filenames.
19459
19460 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
19461 fs/minix.c.
19462 (grub_emu_SOURCES): Likewise.
19463 (pkgdata_MODULES): Add ufs.mod and minix.mod.
19464 (ufs_mod_SOURCES): New variable.
19465 (ufs_mod_CFLAGS): Likewise.
19466 (minix_mod_SOURCES): Likewise.
19467 (minix_mod_CFLAGS): Likewise.
19468 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
19469 fs/minix.c.
19470 (grubof_SOURCES): Likewise.
19471 * fs/ufs.c: New file.
19472 * fs/minix.c: New file.
19473 * include/grub/fs.h (grub_ufs_init): New prototype.
19474 (grub_ufs_fini): Likewise.
19475 (grub_minix_init): Likewise.
19476 (grub_minix_fini): Likewise.
19477 * util/grub-emu.c (main): Initialize and deinitialize UFS and
19478 minix fs.
19479
19480 2004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
19481
19482 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
19483 commands/ls.c, commands/terminal.c, commands/boot.c,
19484 commands/cmp.c and commands/cat.c.
19485 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
19486
19487 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
19488 "env.h"
19489
19490 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
19491
19492 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
19493 and grub_, respectively. Because the conversion is trivial and
19494 mechanical, I omit the details here. Please refer to the CVS
19495 if you need more information.
19496
19497 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
19498
19499 * include/pupa: Renamed to ...
19500 * include/grub: ... this.
19501 * util/i386/pc/pupa-mkimage.c: Renamed to ...
19502 * util/i386/pc/grub-mkimage.c: ... this.
19503 * util/i386/pc/pupa-setup.c: Renamed to ...
19504 * util/i386/pc/grub-setup.c: ... this.
19505 * util/pupa-emu.c: Renamed to ...
19506 * util/grub-emu.c: ... this.
19507
19508 2004-03-29 Marco Gerards <metgerards@student.han.nl>
19509
19510 Add support for the newworld apple macintosh (PPC). This has been
19511 tested on the powerbook 2000 only. It only adds support for
19512 generic ieee1275 functions, console and disk support. This should
19513 be easy to port to other architectures with support for Open
19514 Firmware.
19515
19516 * configure.ac: Accept the powerpc as host_cpu. In the case of
19517 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
19518 specific tests are only executed while building for the i386.
19519 Inverse test for crosscompile.
19520 * genmk.rb (Utility): Allow assembler files.
19521 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
19522 * conf/powerpc-ieee1275.rmk: New file.
19523 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
19524 * disk/powerpc/ieee1275/partition.c: Likewise.
19525 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
19526 * include/pupa/powerpc/ieee1275/console.h: Likewise.
19527 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
19528 * include/pupa/powerpc/ieee1275/time.h: Likewise.
19529 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
19530 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
19531 * include/pupa/powerpc/ieee1275/loader.h
19532 * include/pupa/powerpc/setjmp.h: Likewise.
19533 * include/pupa/powerpc/types.h: Likewise.
19534 * kern/powerpc/ieee1275/init.c: Likewise.
19535 * kern/powerpc/ieee1275/openfw.c: Likewise.
19536 * term/powerpc/ieee1275/ofconsole.c: Likewise.
19537
19538 These files were written by Johan Rydberg
19539 (jrydberg@night.trouble.net) and I only modified them slightly.
19540
19541 * boot/powerpc/ieee1275/cmain.c: New file.
19542 * boot/powerpc/ieee1275/crt0.S: Likewise.
19543 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
19544 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
19545
19546 2004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
19547
19548 * Makefile.in: Update copyright.
19549 * genmodsrc.sh: Likewise.
19550 * gensymlist.sh: Likewise.
19551 * term/i386/pc/vga.c: Indent correctly.
19552
19553 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
19554 bugreporting address.
19555 * util/i386/pc/pupa-setup.c (usage): Likewise,
19556 (main): Call pupa_ext2_init and pupa_ext2_fini.
19557
19558 * fs/fat.c (log2): Renamed to ...
19559 (fat_log2): ... this.
19560 All callers changed.
19561 * kern/misc.c (memcpy): Alias to pupa_memmove.
19562 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
19563 lvalue cast.
19564 * util/console.c (pupa_ncurses_fini): Return 0.
19565
19566 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
19567 Move fail label here.
19568 [__GNU__]: Don't warn when using stat.
19569 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
19570 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
19571 long int. Use strtol instead of strtoul.
19572
19573 2004-03-14 Marco Gerards <metgerards@student.han.nl>
19574
19575 * commands/boot.c: New file.
19576 * commands/cat.c: Likewise.
19577 * commands/cmp.c: Likewise.
19578 * commands/ls.c: Likewise.
19579 * commands/terminal.c: Likewise.
19580 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
19581 (pupa_register_command): Changed interface to match the new
19582 argument parser.
19583 (pupa_command_execute): Changed (almost rewritten) so it uses
19584 pupa_split_command. Added support for setting variables using the
19585 syntax `foo=bar'.
19586 (rescue_command): Changed to work with the new argument parser.
19587 (terminal_command): Moved from here to commands/terminal.c.
19588 (set_command): New function.
19589 (unset_command): New function.
19590 (insmod_command): New function.
19591 (rmmod_command): New function.
19592 (lsmod_command): New function.
19593 (pupa_command_init): Don't initialize the command terminal
19594 anymore. Initialize the commands set, unset, insmod, rmmod and
19595 lsmod.
19596 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
19597 (kernel_img_HEADERS): Add arg.h and env.h.
19598 (pupa_mkimage_LDFLAGS): Add kern/env.c.
19599 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
19600 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
19601 normal/arg.c.
19602 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
19603 terminal.mod.
19604 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
19605 (boot_mod_SOURCES): New variable.
19606 (terminal_mod_SOURCES): Likewise.
19607 (ls_mod_SOURCES): Likewise.
19608 (cmp_mod_SOURCES): Likewise.
19609 (cat_mod_SOURCES): Likewise.
19610
19611 * normal/arg.c: New file.
19612 * kern/env.c: Likewise.
19613 * include/pupa/arg.h: Likewise.
19614 * include/pupa/env.h: Likewise.
19615 * font/manager.c (font_command): Changed to match argument parsing
19616 interface changes.
19617 (PUPA_MOD_INIT): Likewise.
19618 * hello/hello.c (pupa_cmd_hello): Likewise.
19619 (PUPA_MOD_INIT): Likewise.
19620 * include/pupa/disk.h: Include <pupa/device.h>.
19621 (pupa_print_partinfo): New prototype.
19622 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
19623 (pupa_dl_get_prefix): Likewise.
19624 * include/pupa/misc.h: Include <pupa/err.h>.
19625 (pupa_isgraph): New prototype.
19626 (pupa_isdigit): Likewise.
19627 (pupa_split_cmdline): Likewise.
19628 * include/pupa/normal.h: Include <pupa/arg.h>.
19629 (pupa_command): Changed the prototype of the member `func' to
19630 match the argument parsing interface. Added member `options'.
19631 (pupa_register_command): Updated to match function.
19632 (pupa_arg_parse): New prototype.
19633 (pupa_hello_init) [PUPA_UTIL]: New prototype.
19634 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
19635 (pupa_ls_init) [PUPA_UTIL]: Likewise.
19636 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
19637 (pupa_cat_init) [PUPA_UTIL]: Likewise.
19638 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
19639 (pupa_boot_init) [PUPA_UTIL]: Likewise.
19640 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
19641 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
19642 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
19643 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
19644 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
19645 * kern/disk.c: Include <pupa/file.h>.
19646 (pupa_print_partinfo): New function.
19647 * kern/dl.c: Include <pupa/env.h>.
19648 (pupa_dl_dir): Variable removed.
19649 (pupa_dl_load): Use the environment variable `prefix' instead of
19650 the variable pupa_dl_dir.
19651 (pupa_dl_set_prefix): Function removed.
19652 (pupa_dl_get_prefix): Likewise.
19653 * kern/i386/pc/init.c: Include <pupa/env.h>.
19654 (pupa_machine_init): Use the environment variable `prefix' instead of
19655 using pupa_dl_set_prefix to set the prefix.
19656 * kern/main.c: Include <pupa/env.h>.
19657 (pupa_set_root_dev): Use the environment variable `prefix' instead of
19658 using pupa_dl_get_prefix to get the prefix.
19659 * kern/misc.c: Include <pupa/env.h>.
19660 (pupa_isdigit): New function.
19661 (pupa_isgraph): Likewise.
19662 (pupa_ftoa): Likewise.
19663 (pupa_vsprintf): Added support for printing values of the type
19664 `double'. Make it possible to format variable output when using
19665 formatting like `%1.2%f'.
19666 (pupa_split_cmdline): New function.
19667 * kern/rescue.c: Include <pupa/env.h>.
19668 (next_word): Removed function.
19669 (pupa_rescue_cmd_prefix): Likewise.
19670 (pupa_rescue_cmd_set): New function.
19671 (pupa_rescue_cmd_unset): New function.
19672 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
19673 split the command line instead of splitting it here. Added
19674 support for setting variables using the syntax `foo=bar'. Don't
19675 initialize the prefix command anymore. Initialized the set and
19676 unset commands.
19677 * normal/cmdline.c: Include <pupa/env.h>.
19678 (pupa_tab_complete): Added prototypes for print_simple_completion,
19679 print_partition_completion, add_completion, iterate_commands,
19680 iterate_dev, iterate_part and iterate_dir. Moved code to print
19681 partition information from here to kern/disk.c.
19682 (pupa_cmdline_run): Don't check if the function exists anymore.
19683 * normal/main.c: Include <pupa/env.h>.
19684 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
19685 instead of using pupa_dl_get_prefix to get the prefix.
19686 * term/i386/pc/vga.c: Include <pupa/arg.h>.
19687 (check_vga_mem): Cast pointers to `void *' to silence a gcc
19688 warning.
19689 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
19690 (pupa_vga_setcolor): Declare unused variables with `__attribute__
19691 ((unused))' to silence a gcc warning.
19692 (pupa_vga_setcolor): Likewise.
19693 (debug_command): Changed to match argument parsing
19694 interface changes.
19695 * util/pupa-emu.c: Include <pupa/env.h>.
19696 (options): Added 0's for unused fields to silence a gcc warning.
19697 (argp): Likewise.
19698 (main): Use the environment variable `prefix' instead of using
19699 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
19700 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
19701 and terminal.
19702
19703 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
19704 * util/misc.c: Include <malloc.h>.
19705 (pupa_malloc): Rewritten so errors are correctly reported.
19706 (pupa_realloc): Likewise.
19707 (pupa_memalign): Likewise.
19708 (pupa_mm_init_region): Declare unused variables with
19709 `__attribute__ ((unused))' to silence a gcc warning.
19710 * normal/i386/setjmp.S: Remove tab at the end of the file to
19711 silence a gcc warning.
19712 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
19713 variables with `__attribute__ ((unused))' to silence a gcc
19714 warning.
19715 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
19716 local variable i unsigned to silence a gcc warning.
19717
19718 * kern/term.c: Include <pupa/misc.h>.
19719 (pupa_more_lines): New variable.
19720 (pupa_more): Likewise.
19721 (pupa_putcode): When the pager is active pause at the end of every
19722 screen.
19723 (pupa_set_more): New function.
19724 * include/pupa/term.h (pupa_set_more): New prototype.
19725
19726
19727 2004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
19728
19729 Now this project is GRUB 2 rather than PUPA. The location of
19730 the CVS repository was moved to GRUB's.
19731
19732 * configure.ac: Use bug-grub as the reporting address.
19733 Use GRUB instead of PUPA.
19734 Change the version number to 1.90.
19735
19736 2004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
19737
19738 * genkernsyms.sh: Updated copyright information.
19739 * genmk.rb: Likewise.
19740 * genmodsrc.sh: Likewise.
19741 * gensymlist.sh: Likewise.
19742 * boot/i386/pc/boot.S: Likewise.
19743 * boot/i386/pc/diskboot.S: Likewise.
19744 * disk/i386/pc/biosdisk.c: Likewise.
19745 * disk/i386/pc/partition.c: Likewise.
19746 * font/manager.c: Likewise.
19747 * fs/ext2.c: Likewise.
19748 * fs/fat.c: Likewise.
19749 * include/pupa/boot.h: Likewise.
19750 * include/pupa/device.h: Likewise.
19751 * include/pupa/disk.h: Likewise.
19752 * include/pupa/dl.h: Likewise.
19753 * include/pupa/elf.h: Likewise.
19754 * include/pupa/err.h: Likewise.
19755 * include/pupa/file.h: Likewise.
19756 * include/pupa/font.h: Likewise.
19757 * include/pupa/fs.h: Likewise.
19758 * include/pupa/kernel.h: Likewise.
19759 * include/pupa/loader.h: Likewise.
19760 * include/pupa/misc.h: Likewise.
19761 * include/pupa/mm.h: Likewise.
19762 * include/pupa/net.h: Likewise.
19763 * include/pupa/normal.h: Likewise.
19764 * include/pupa/rescue.h: Likewise.
19765 * include/pupa/setjmp.h: Likewise.
19766 * include/pupa/symbol.h: Likewise.
19767 * include/pupa/term.h: Likewise.
19768 * include/pupa/types.h: Likewise.
19769 * include/pupa/i386/setjmp.h: Likewise.
19770 * include/pupa/i386/types.h: Likewise.
19771 * include/pupa/i386/pc/biosdisk.h: Likewise.
19772 * include/pupa/i386/pc/boot.h: Likewise.
19773 * include/pupa/i386/pc/console.h: Likewise.
19774 * include/pupa/i386/pc/init.h: Likewise.
19775 * include/pupa/i386/pc/kernel.h: Likewise.
19776 * include/pupa/i386/pc/linux.h: Likewise.
19777 * include/pupa/i386/pc/loader.h: Likewise.
19778 * include/pupa/i386/pc/memory.h: Likewise.
19779 * include/pupa/i386/pc/multiboot.h: Likewise.
19780 * include/pupa/i386/pc/partition.h: Likewise.
19781 * include/pupa/i386/pc/time.h: Likewise.
19782 * include/pupa/i386/pc/vga.h: Likewise.
19783 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
19784 * include/pupa/util/getroot.h: Likewise.
19785 * include/pupa/util/misc.h: Likewise.
19786 * include/pupa/util/resolve.h: Likewise.
19787 * kern/device.c: Likewise.
19788 * kern/disk.c: Likewise.
19789 * kern/dl.c: Likewise.
19790 * kern/err.c: Likewise.
19791 * kern/file.c: Likewise.
19792 * kern/fs.c: Likewise.
19793 * kern/loader.c: Likewise.
19794 * kern/main.c: Likewise.
19795 * kern/misc.c: Likewise.
19796 * kern/mm.c: Likewise.
19797 * kern/rescue.c: Likewise.
19798 * kern/term.c: Likewise.
19799 * kern/i386/dl.c: Likewise.
19800 * kern/i386/pc/init.c: Likewise.
19801 * kern/i386/pc/lzo1x.S: Likewise.
19802 * kern/i386/pc/startup.S: Likewise.
19803 * loader/i386/pc/chainloader.c: Likewise.
19804 * loader/i386/pc/linux.c: Likewise.
19805 * loader/i386/pc/multiboot.c: Likewise.
19806 * normal/cmdline.c: Likewise.
19807 * normal/command.c: Likewise.
19808 * normal/main.c: Likewise.
19809 * normal/menu.c: Likewise.
19810 * normal/i386/setjmp.S: Likewise.
19811 * term/i386/pc/console.c: Likewise.
19812 * term/i386/pc/vga.c: Likewise.
19813 * util/console.c: Likewise.
19814 * util/genmoddep.c: Likewise.
19815 * util/misc.c: Likewise.
19816 * util/pupa-emu.c: Likewise.
19817 * util/resolve.c: Likewise.
19818 * util/unifont2pff.rb: Likewise.
19819 * util/i386/pc/biosdisk.c: Likewise.
19820 * util/i386/pc/getroot.c: Likewise.
19821 * util/i386/pc/pupa-mkimage.c: Likewise.
19822 * util/i386/pc/pupa-setup.c: Likewise.
19823
19824 2004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
19825
19826 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
19827 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
19828 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
19829 reading and reset it after reading.
19830 (pupa_ext2_close): Return PUPA_ERR_NONE.
19831
19832 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
19833 Correct value.
19834 (struct linux_kernel_header): Add kernel_version and
19835 initrd_addr_max.
19836 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
19837 pupa_file_read succeeds.
19838 (pupa_rescue_cmd_initrd): Implement.
19839
19840 2003-12-03 Marco Gerards <metgerards@student.han.nl>
19841
19842 * fs/ext2.c (pupa_ext2_label): New function.
19843 (pupa_ext2_fs): Added label.
19844 * fs/fat.c (pupa_fat_label): New function.
19845 (pupa_fat_fs): Added label.
19846 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
19847
19848 * kern/misc.c (pupa_strndup): New function.
19849 * include/pupa/misc.h (pupa_strndup): New prototype.
19850
19851 * include/pupa/normal.h: Include <pupa/err.h>.
19852 (pupa_set_history): New prototype.
19853 (pupa_iterate_commands): New prototype.
19854 * normal/cmdline.c: Include <pupa/machine/partition.h>,
19855 <pupa/disk.h>, <pupa/file.h>.
19856 (hist_size): New variable.
19857 (hist_lines): Likewise.
19858 (hist_end): Likewise.
19859 (hist_used): Likewise.
19860 (pupa_set_history): New function.
19861 (pupa_history_get): Likewise.
19862 (pupa_history_add): Likewise.
19863 (pupa_history_replace): Likewise.
19864 (pupa_tab_complete): Likewise.
19865 (pupa_cmdline_run): Added tab completion and history buffer. Tab
19866 completion shows partitionnames while completing partitions, this
19867 feature was suggested by Jeff Bailey.
19868 * normal/command.c (pupa_iterate_commands): New function.
19869 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
19870 (pupa_normal_init): Initialize history buffer.
19871 (PUPA_MOD_INIT): Likewise.
19872 (pupa_normal_fini): Free the history buffer.
19873 (PUPA_MOD_FINI): Likewise.
19874
19875 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
19876 key.
19877
19878 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
19879 * configure.ac [i386]: Check for regparam bug.
19880 (NESTED_FUNC_ATTR) [! i386]: Defined.
19881
19882 2003-11-17 Marco Gerards <metgerards@student.han.nl>
19883
19884 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
19885 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
19886 (pupa_emu_SOURCES): New variable.
19887 (pupa_emu_LDFLAGS): Likewise.
19888 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
19889 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
19890 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
19891 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
19892 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
19893 (pupa_jmp_buf): New typedef.
19894 (pupa_setjmp) [PUPA_UTIL]: New macro.
19895 (pupa_longjmp) [PUPA_UTIL]: Likewise.
19896 * include/pupa/term.h (struct pupa_term): New member `refresh'.
19897 (pupa_refresh): New prototype.
19898 * include/pupa/util/getroot.h: New file.
19899 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
19900 it.
19901 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
19902 (pupa_rescue_cmd_cat): Likewise.
19903 (pupa_rescue_cmd_ls): Likewise.
19904 (pupa_rescue_cmd_testload): Likewise.
19905 (pupa_rescue_cmd_lsmod): Likewise.
19906 * normal/cmdline.c (pupa_cmdline_get): Likewise.
19907 * normal/menu.c (run_menu): Likewise.
19908 * kern/term.c (pupa_cls): Likewise.
19909 (pupa_refresh): New function.
19910 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
19911 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
19912 * util/console.c: New file.
19913
19914 * util/i386/pc/getroot.c: New file.
19915 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
19916 (pupa_putchar): New function.
19917 (pupa_refresh): Likewise.
19918 (xgetcwd): Function moved to ...
19919 (strip_extra_slashes): Likewise.
19920 (get_prefix): Likewise.
19921 * util/i386/pc/getroot.c: ... here.
19922 (find_root_device): Function moved and renamed to...
19923 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
19924 Changed all callers.
19925 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
19926 and renamed to...
19927 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
19928 Changed all callers.
19929 * util/misc.c (pupa_memalign): New function.
19930 (pupa_mm_init_region): Likewise.
19931 (pupa_register_exported_symbols): Likewise.
19932 (pupa_putchar): Function removed.
19933 * util/pupa-emu.c: New file.
19934
19935 2003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
19936
19937 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
19938 (_multiboot_mod_SOURCES): New variable.
19939 (_multiboot_mod_CFLAGS): Likewise.
19940 * loader/i386/pc/multiboot.c: New file.
19941 * include/pupa/i386/pc/multiboot.h: Likewise.
19942 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
19943 (pupa_multiboot_real_boot): New function.
19944 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
19945 (pupa_multiboot_real_boot): New prototype.
19946 (pupa_rescue_cmd_multiboot): Likewise
19947 (pupa_rescue_cmd_module): Likewise.
19948
19949 * kern/loader.c (pupa_loader_set): Continue when
19950 pupa_loader_unload_func() fails.
19951 (pupa_loader_unset): New function.
19952 * include/pupa/loader.h (pupa_loader_unset): New prototype.
19953
19954 * kern/misc.c (pupa_stpcpy): New function.
19955 * include/pupa/misc.h (pupa_stpcpy): New prototype.
19956
19957 2003-11-12 Marco Gerards <metgerards@student.han.nl>
19958
19959 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
19960 for available extensions.
19961
19962 * include/pupa/i386/pc/time.h: New file.
19963 * kern/disk.c: Include <pupa/machine/time.h>.
19964 (PUPA_CACHE_TIMEOUT): New macro.
19965 (pupa_last_time): New variable.
19966 (pupa_disk_open): Flush the cache when there was a timeout.
19967 (pupa_disk_close): Reset the timer.
19968 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
19969 pupa_currticks.
19970 * util/misc.c: Include <sys/times.h>
19971 (pupa_get_rtc): New function.
19972
19973 2003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
19974
19975 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
19976 as blocks.
19977 (pupa_ext2_get_file_block): Use blocks member.
19978
19979 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
19980 first block. Return -1 instead of pupa_errno on error.
19981
19982 2003-10-27 Marco Gerards <metgerards@student.han.nl>
19983
19984 * README: In the pupa-mkimage example use _chain instead of chain
19985 and ext2 instead of fat.
19986 * TODO: Replace ext2fs with jfs as an example. Add an item for
19987 adding journal playback for ext2fs.
19988 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
19989 (pkgdata_MODULES): Added ext2.mod.
19990 (ext2_mod_SOURCES): New variable.
19991 (ext2_mod_CFLAGS): Likewise.
19992 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
19993 * include/pupa/misc.h (pupa_strncpy): New prototype.
19994 (pupa_strcat): Likewise.
19995 (pupa_strncmp): Likewise.
19996 * kern/misc.c (pupa_strcat): Enable function.
19997 (pupa_strncpy): New function.
19998 (pupa_strncmp): Likewise.
19999 * fs/ext2.c: New file.
20000
20001 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
20002 when the read failed before retrying.
20003 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
20004 (_FILE_OFFSET_BITS): Likewise.
20005 * configure.ac: Added AC_SYS_LARGEFILE.
20006
20007 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
20008
20009 * genmk.rb (PModule#rule): Make sure to get only symbol names
20010 from the output of nm.
20011 Reported by Robert Millan <zeratul2@wanadoo.es>.
20012
20013 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
20014
20015 I forgot to check in these changes for a long time. This adds
20016 incomplete support for VGA console, and this is still very
20017 buggy. Also, a lot of consideration is required for I18N,
20018 UNICODE, and VGA font issues. Therefore, assume that this is
20019 such that "better than nothing".
20020
20021 * font/manager.c: New file.
20022 * include/pupa/font.h: Likewise.
20023 * include/pupa/i386/pc/vga.h: Likewise.
20024 * term/i386/pc/vga.c: Likewise.
20025 * util/unifont2pff.rb: Likewise.
20026
20027 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
20028 (pkgdata_MODULES): Added vga.mod and font.mod.
20029 (vga_mod_SOURCES): New variables.
20030 (vga_mod_CFLAGS): Likewise.
20031 (font_mod_SOURCES): Likewise.
20032 (font_mod_CFLAGS): Likewise.
20033
20034 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
20035
20036 * include/pupa/term.h: Include pupa/err.h.
20037 (struct pupa_term): Added init and fini.
20038 Changed the argument of putchar to pupa_uint32_t.
20039
20040 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
20041 (pupa_console_real_putchar): New prototype.
20042 (pupa_console_putchar): Removed.
20043 (pupa_console_checkkey): Exported.
20044 (pupa_console_getkey): Likewise.
20045
20046 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
20047 characters.
20048
20049 * kern/term.c (pupa_term_set_current): Rewritten.
20050 (pupa_putchar): Likewise.
20051 (pupa_putcode): New function.
20052
20053 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
20054 (pupa_console_real_putchar): ... this.
20055 (pupa_vga_set_mode): New function.
20056 (pupa_vga_get_font): Likewise.
20057
20058 * normal/command.c: Include pupa/term.h.
20059 (terminal_command): New function.
20060 (pupa_command_init): Register the command "terminal".
20061
20062 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
20063 (DISP_UP): Likewise.
20064 (DISP_RIGHT): Likewise.
20065 (DISP_DOWN): Likewise.
20066 (DISP_HLINE): Likewise.
20067 (DISP_VLINE): Likewise.
20068 (DISP_UL): Likewise.
20069 (DISP_UR): Likewise.
20070 (DISP_LL): Likewise.
20071 (DISP_LR): Likewise.
20072
20073 * term/i386/pc/console.c (pupa_console_putchar): New function.
20074
20075 2003-02-08 NIIBE Yutaka <gniibe@m17n.org>
20076
20077 * util/resolve.c (pupa_util_resolve_dependencies): BUG
20078 FIX. Reverse the path_list.
20079
20080 * include/pupa/normal.h: Export pupa_register_command and
20081 pupa_unregister_command.
20082
20083 * hello/hello.c (pupa_cmd_hello): New module.
20084 * conf/i386-pc.rmk: Added hello.mod.
20085
20086 2003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
20087
20088 * kern/i386/pc/lzo1x.S: New file.
20089
20090 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
20091 (compress_kernel): New variable.
20092 (generate_image): Heavily modified to support compressing a
20093 large part of the core image.
20094
20095 * util/misc.c (pupa_util_read_image): Fix a file descriptor
20096 leak.
20097 (pupa_util_load_image): New function.
20098
20099 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
20100 (pupa_compressed_size): New variable.
20101 (codestart): Enable Gate A20 here.
20102 Decompress the compressed part of the core image.
20103 Rearrange the code to put functions and variables which are
20104 required for initialization in the non-compressed part.
20105 Include lzo1x.S.
20106
20107 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
20108 here.
20109
20110 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
20111
20112 * include/pupa/i386/pc/kernel.h
20113 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
20114 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
20115 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
20116 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
20117 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
20118
20119 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
20120
20121 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
20122 (Utility#rule): Likewise.
20123
20124 * configure.ac: Check if LZO is available.
20125
20126 2003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
20127
20128 * include/pupa/normal.h: New file.
20129 * include/pupa/setjmp.h: Likewise.
20130 * include/pupa/i386/setjmp.h: Likewise.
20131 * normal/cmdline.c: Likewise.
20132 * normal/command.c: Likewise.
20133 * normal/main.c: Likewise.
20134 * normal/menu.c: Likewise.
20135 * normal/i386/setjmp.S: Likewise.
20136
20137 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
20138 (pupa_rescue_cmd_initrd): Likewise.
20139
20140 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
20141 Likewise.
20142
20143 * kern/i386/pc/startup.S (translation_table): New variable.
20144 (translate_keycode): New function.
20145 (pupa_console_getkey): Call translate_keycode.
20146
20147 * kern/rescue.c (attempt_normal_mode): New function.
20148 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
20149 it failed, print a message.
20150
20151 * kern/mm.c (pupa_real_malloc): Print more information when a
20152 free magic is broken.
20153 (pupa_free): If the first free header is not free actually, set
20154 it to P.
20155
20156 * kern/main.c (pupa_load_normal_mode): Just load the module
20157 "normal".
20158 (pupa_main): Don't print the message
20159 "Entering into rescue mode..." here.
20160
20161 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
20162 Declared.
20163 (pupa_rescue_cmd_initrd): Likewise.
20164 (pupa_rescue_cmd_initrd): Likewise.
20165
20166 * include/pupa/symbol.h (FUNCTION): Specify the type.
20167 (VARIABLE): Likewise.
20168
20169 * include/pupa/err.h (pupa_err_t): Added
20170 PUPA_ERR_UNKNOWN_COMMAND.
20171
20172 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
20173 (pupa_dl_get_prefix): Likewise.
20174
20175 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
20176 Added _chain.mod and _linux.mod instead of chain.mod and
20177 linux.mod.
20178 (chain_mod_SOURCES): Renamed to ...
20179 (_chain_mod_SOURCES): ... this.
20180 (chain_mod_CFLAGS): Renamed to ...
20181 (_chain_mod_CFLAGS): ... this.
20182 (linux_mod_SOURCES): Renamed to ...
20183 (_linux_mod_SOURCES): ... this.
20184 (linux_mod_CFLAGS): Renamed to ...
20185 (_linux_mod_CFLAGS): ... this.
20186 (normal_mod_SOURCES): New variable.
20187 (normal_mod_CFLAGS): Likewise.
20188 (normal_mod_ASFLAGS): Likewise.
20189
20190 2003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
20191
20192 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
20193 possible.
20194
20195 * kern/dl.c (pupa_dl_ref): Refer depending modules
20196 recursively.
20197 (pupa_dl_unref): Unrefer depending modules recursively.
20198 Don't call pupa_dl_unload implicitly, because PUPA can crash if
20199 a module is unloaded before one depending on that module is
20200 unloaded.
20201 (pupa_dl_unload): Unload depending modules explicitly,
20202 if possible.
20203
20204 2003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
20205
20206 * include/pupa/i386/pc/linux.h: New file.
20207 * loader/i386/pc/linux.c: Likewise.
20208
20209 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
20210 Removed.
20211 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
20212 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
20213 of PUPA_CHAINLOADER_BOOT_SECTOR.
20214
20215 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
20216 (pupa_linux_prot_size): New variable.
20217 (pupa_linux_tmp_addr): Likewise.
20218 (pupa_linux_real_addr): Likewise.
20219 (pupa_linux_boot_zimage): New function.
20220 (pupa_linux_boot_bzimage): Likewise.
20221
20222 * kern/i386/pc/init.c (struct mem_region): New structure.
20223 (MAX_REGIONS): New macro.
20224 (mem_regions): New variable.
20225 (num_regions): Likewise.
20226 (pupa_os_area_addr): Likewise.
20227 (pupa_os_area_size): Likewise.
20228 (pupa_lower_mem): Likewise.
20229 (pupa_upper_mem): Likewise.
20230 (add_mem_region): New function.
20231 (compact_mem_regions): Likewise.
20232 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
20233 the size of the conventional memory and that of so-called upper
20234 memory (before the first memory hole).
20235 Instead of adding each found region to free memory, use
20236 add_mem_region and add them after removing overlaps.
20237 Also, add only 1/4 of the upper memory to free memory. The rest
20238 is used for loading OS images. Maybe this is ad hoc, but this
20239 makes it much easier to relocate OS images when booting.
20240
20241 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
20242 (pupa_enter_rescue_mode): Don't register initrd and module.
20243
20244 * kern/mm.c: Include pupa/dl.h.
20245
20246 * kern/main.c: Include pupa/file.h and pupa/device.h.
20247
20248 * kern/loader.c (pupa_loader_load_module_func): Removed.
20249 (pupa_loader_load_module): Likewise.
20250
20251 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
20252 ``.o''.
20253
20254 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
20255 (pupa_linux_tmp_addr): Likewise.
20256 (pupa_linux_real_addr): Likewise.
20257 (pupa_linux_boot_zimage): Likewise.
20258 (pupa_linux_boot_bzimage): Likewise.
20259
20260 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
20261 (pupa_upper_mem): Likewise.
20262 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
20263 module is too dangerous.
20264
20265 * include/pupa/loader.h (pupa_os_area_addr): Declared.
20266 (pupa_os_area_size): Likewise.
20267 (pupa_loader_set): Remove the first argument. Loader doesn't
20268 manage modules or initrd any longer.
20269 (pupa_loader_load_module): Removed.
20270
20271 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
20272 (linux_mod_SOURCES): New variable.
20273 (linux_mod_CFLAGS): Likewise.
20274
20275 2003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
20276
20277 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
20278 the length of a blocklist correctly.
20279
20280 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
20281 Use ioctl only if the OS file is a block device.
20282 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
20283 not very useful for normal files.
20284
20285 * kern/main.c (pupa_set_root_dev): New function.
20286 (pupa_load_normal_mode): Likewise.
20287 (pupa_main): Call those above.
20288
20289 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
20290 pupa_uint16_t.
20291
20292 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
20293
20294 2003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
20295
20296 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
20297 (setup): Configure the installed partition information and the
20298 dl prefix.
20299
20300 * loader/i386/pc/chainloader.c (my_mod): New variable.
20301 (pupa_chainloader_unload): New function.
20302 (pupa_rescue_cmd_chainloader): Refer itself.
20303 (PUPA_MOD_INIT): Save its own module in MY_MOD.
20304
20305 * kern/i386/pc/startup.S (install_partition): Removed.
20306 (version_string): Likewise.
20307 (config_file): Likewise.
20308 (pupa_install_dos_part): New variable.
20309 (pupa_install_bsd_part): Likewise.
20310 (pupa_prefix): Likewise.
20311 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
20312
20313 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
20314 and pupa/misc.h.
20315 (make_install_device): New function.
20316 (pupa_machine_init): Set the dl prefix.
20317
20318 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
20319 (buf): Renamed to ...
20320 (linebuf): ... this.
20321 (pupa_rescue_cmd_prefix): New function.
20322 (pupa_rescue_cmd_insmod): Likewise.
20323 (pupa_rescue_cmd_rmmod): Likewise.
20324 (pupa_rescue_cmd_lsmod): Likewise.
20325 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
20326 rmmod and lsmod.
20327
20328 * kern/mm.c (pupa_memalign): If failed even after invalidating
20329 disk caches, unload unneeded modules and retry.
20330
20331 * kern/misc.c (pupa_memmove): New function.
20332 (pupa_memcpy): Removed.
20333 (pupa_strcpy): New function.
20334 (pupa_itoa): Made static.
20335
20336 * kern/dl.c (pupa_dl_iterate): New function.
20337 (pupa_dl_ref): Likewise.
20338 (pupa_dl_unref): Likewise.
20339 (pupa_dl_unload): Return if succeeded or not.
20340 (pupa_dl_unload_unneeded): New function.
20341 (pupa_dl_unload_all): Likewise.
20342 (pupa_dl_init): Renamed to ...
20343 (pupa_dl_set_prefix): ... this.
20344 (pupa_dl_get_prefix): New function.
20345
20346 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
20347 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
20348 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
20349 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
20350 (pupa_install_dos_part): Declared.
20351 (pupa_install_bsd_part): Likewise.
20352 (pupa_prefix): Likewise.
20353 (pupa_boot_drive): Likewise.
20354
20355 * include/pupa/types.h: Fix a typo.
20356
20357 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
20358 pupa_memmove.
20359 (pupa_memmove): Declared.
20360 (pupa_strcpy): Likewise.
20361
20362 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
20363 pupa_mod_init takes one argument, its own module.
20364 (pupa_dl_unload_unneeded): Declared.
20365 (pupa_dl_unload_all): Likewise.
20366 (pupa_dl_ref): Likewise.
20367 (pupa_dl_unref): Likewise.
20368 (pupa_dl_iterate): Likewise.
20369 (pupa_dl_init): Renamed to ...
20370 (pupa_dl_set_prefix): ... this.
20371 (pupa_dl_get_prefix): Declared.
20372
20373 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
20374 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
20375 unloaded.
20376 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
20377 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
20378
20379 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
20380 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
20381
20382 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
20383
20384 * util/i386/pc/pupa-setup.c (setup): Define the internal
20385 function find_first_partition_start at the top level, because GCC
20386 3.0.x cannot compile internal functions in deeper scopes
20387 correctly.
20388 (find_root_device): Use lstat instead of stat.
20389 Don't follow symbolic links.
20390 Fix the path-constructing code.
20391
20392 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
20393 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
20394 by a BLKGETSIZE ioctl first, because block devices don't fill
20395 the member st_mode of the structure stat on Linux.
20396 [__linux__] (linux_find_partition): Use a temporary buffer
20397 REAL_DEV for the working space. Copy it to DEV before returning.
20398 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
20399 buffer cache consistent.
20400 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
20401 strncmp. The previous value was merely wrong.
20402 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
20403
20404 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
20405 FAT size is 12. The previous value was merely wrong.
20406
20407 * kern/main.c (pupa_main): Don't split the starting message from
20408 newlines.
20409
20410 * kern/term.c (pupa_putchar): Put CR after LF instead of before
20411 LF, because BIOS goes crazy about character attributes in this
20412 case.
20413
20414 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
20415
20416 * include/i386/pc/util/biosdisk.h: New file.
20417 * util/i386/pc/biosdisk.c: Likewise.
20418 * util/i386/pc/pupa-setup.c: Likewise.
20419
20420 * Makefile.in (INCLUDE_DISTFILES): Added
20421 include/pupa/i386/pc/util/biosdisk.h.
20422 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
20423 directory util/i386/pc.
20424 (install-local): Added a rule for sbin_UTILITIES.
20425 (uninstall): Likewise.
20426
20427 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
20428
20429 * util/misc.c (xrealloc): New function.
20430 (pupa_malloc): Likewise.
20431 (pupa_free): Likewise.
20432 (pupa_realloc): Likewise.
20433 (pupa_stop): Likewise.
20434 (pupa_putchar): Likewise.
20435
20436 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
20437
20438 * include/pupa/util/misc.h (xrealloc): Declared.
20439
20440 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
20441 macro.
20442 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
20443 (PUPA_BOOT_MACHINE_BPB_END): ... this.
20444
20445 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
20446 [PUPA_UTIL] (pupa_fat_fini): Likewise.
20447
20448 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
20449 way should be implemented.
20450 [PUPA_UTIL] (pupa_fat_fini): Likewise.
20451
20452 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
20453 the size of NAME for safety.
20454 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
20455 0x88.
20456
20457 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
20458 (pupa_setup_SOURCES): Likewise.
20459
20460 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
20461
20462 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
20463
20464 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
20465 bunch of pushl's from pusha, because this destroys the return
20466 value.
20467
20468 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
20469
20470 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
20471 This means that any missing prototypes could be fatal. Also, you
20472 must take care when writing assembly code. See the comments at
20473 the beginning of startup.S, for more details.
20474
20475 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
20476 compilation mechanism.
20477 (pupa_chainloader_real_boot): Likewise.
20478 (pupa_biosdisk_rw_int13_extensions): Likewise.
20479 (pupa_biosdisk_rw_standard): Likewise.
20480 (pupa_biosdisk_check_int13_extensions): Likewise.
20481 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
20482 (pupa_biosdisk_get_diskinfo_standard): Likewise.
20483 (pupa_get_memsize): Likewise.
20484 (pupa_get_mmap_entry): Likewise.
20485 (pupa_console_putchar): Likewise.
20486 (pupa_console_setcursor): Likewise.
20487 (pupa_getrtsecs): Use pushl instead of push.
20488
20489 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
20490 memory instead of the stack for a mmap entry, because some
20491 BIOSes may ignore the maximum size and overflow.
20492
20493 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
20494
20495 * genmk.rb (PModule#rule): Compile automatically generated
20496 sources with module-specific CFLAGS as well as other sources.
20497
20498 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
20499
20500 * configure.ac: Check ld.
20501 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
20502 respectively, before checking endianness and sizes.
20503
20504 * Makefile.in (LD): New variable.
20505
20506 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
20507
20508 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
20509
20510 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
20511
20512 * Changelog: New file.
20513