]> git.proxmox.com Git - grub2.git/blame - ChangeLog
* docs/grub.texi (Chain-loading): New section.
[grub2.git] / ChangeLog
CommitLineData
1c41aa78
CW
12010-06-02 Colin Watson <cjwatson@ubuntu.com>
2
3 * docs/grub.texi (Chain-loading): New section.
4 (DOS/Windows): New section, borrowed from GRUB Legacy with details
5 adjusted for GRUB 2.
6 (SCO UnixWare): Likewise.
7 (QNX): Likewise.
8 (chainloader): Add reference to `Block list syntax'.
9 (drivemap): New section.
10 (parttool): New section.
11
bb8ea0f5
CW
122010-06-02 Colin Watson <cjwatson@ubuntu.com>
13
14 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
15 the grub shell'.
16 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
17 (Installing GRUB using grub-install): Remove reference to the grub
18 shell; mention `grub-mkimage' and `grub-setup' instead.
19 (Invoking grub-install): Likewise.
20 (Interface): Add reference to `Menu entry editor'.
21 (serial): Remove `--device' option.
22
288dd6ed
CW
232010-06-02 Colin Watson <cjwatson@ubuntu.com>
24
25 * docs/grub.texi (Configuration): New section, documenting
26 configuration file generation using grub-mkconfig. I've left a slot
27 for documenting the full shell scripting format but have not yet
28 started on writing that up.
29 (Invoking grub-mkconfig): New section.
30
34c9f0e9
CW
312010-06-02 Colin Watson <cjwatson@ubuntu.com>
32
33 * docs/grub.texi (direntry): Remove grub-terminfo reference.
34 (GNU GRUB manual): Likewise.
35 (General commands): Update description of `terminfo' for GRUB 2.
36
9121567e
CW
372010-06-02 Colin Watson <cjwatson@ubuntu.com>
38
39 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
40 (GRUB_MOD_INIT): Fix capitalisation.
41 * docs/grub.texi (Command-line and menu entry commands): Document
42 gettext and gptsync commands.
43
ab631611
CW
442010-06-02 Colin Watson <cjwatson@ubuntu.com>
45
46 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
47 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
48
bde4a9ac
CW
492010-06-01 Colin Watson <cjwatson@ubuntu.com>
50
51 Add btrfs probing support, currently only in the single-device case.
52
53 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
54 function.
55 (grub_guess_root_device): Call find_root_device_from_mountinfo
56 before looking in /dev.
57
b1d17e10
VS
582010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
59
60 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
61 GRUB_DISK_SIZE_UNKNOWN.
62 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
63
dfbfe004
JS
642010-05-31 Jiro SEKIBA <jir@unicus.jp>
65
66 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
67 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
68 corrupted or not synced properly.
69
c2ffc8e9
VS
702010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
71
72 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
73 Reported by: Seth Goldberg.
74
56293166
VS
752010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
76
77 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
78 addition of dest.
79 Reported by: Seth Goldberg.
80
7620e7de
VS
812010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
82
83 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
84 Reported by: Seth Goldberg.
85
c837af3f
VS
862010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
87
88 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
89 64-bit address as signed on MIPS.
90
c7c75cf4
CW
912010-05-28 Colin Watson <cjwatson@ubuntu.com>
92
93 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
94 to the empty string.
95
fa4b8490
BC
962010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
97
98 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
99
100 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
101 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
102 * kern/misc.c (__enable_execute_stack): Disable on
103 GRUB_MACHINE_EMU.
104
a33075b9
CW
1052010-05-28 Colin Watson <cjwatson@ubuntu.com>
106
107 Make grub-probe work with symbolic links under /dev/mapper as well
108 as with real block devices. The Linux world seems to be (at best)
109 in transition here, and GRUB shouldn't get caught in the middle.
110
111 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
112 /dev/mapper.
113
d8708134
CW
1142010-05-27 Colin Watson <cjwatson@ubuntu.com>
115
116 * util/grub-script-check.c (main): Ensure defined behaviour on empty
117 input files (in which case exit zero).
118
db2102a0
CW
1192010-05-27 Colin Watson <cjwatson@ubuntu.com>
120
121 * kern/emu/misc.c (canonicalize_file_name): realpath can still
122 return NULL for various reasons even if it has a maximum-length
123 buffer: for example, there might be a symlink loop, or the path
124 might exceed PATH_MAX. If this happens, return NULL.
125
5fdba519
RM
1262010-05-27 Robert Millan <rmh@gnu.org>
127
128 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
129 partmap module to handle cross-partmap setups.
130 Reported by Orestes Mas. Gràcies!
131
d1d368e4
CW
1322010-05-27 Colin Watson <cjwatson@ubuntu.com>
133
134 * util/grub-mkrescue.in: Initialise override_dir rather than
135 assuming that it's unset or empty in the environment.
136
95ac3c73
GS
1372010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
138
139 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
140 variable index into p_index to suppress a warning with -Wshadow.
141
7d8c0213
BC
1422010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
143
144 * INSTALL: Added flex >= 2.5.35 requirement.
145
db4d5813
VS
1462010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
147
148 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
149
f24f4300
VS
1502010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
151
152 cmostest support.
153
154 * commands/i386/cmostest.c: New file.
155 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
156 (cmostest_mod_SOURCES): New variable.
157 (cmostest_mod_CFLAGS): Likewise.
158 (cmostest_mod_LDFLAGS): Likewise.
159 * conf/i386-pc.rmk: Likewise.
160 * docs/grub.texi (Vendor power-on keys): New section.
161 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
162 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
163 and GRUB_BUTTON_CMOS_ADDRESS.
164 * util/grub.d/00_header.in: Handle powering-on by separate button.
165
ad603f61
VS
1662010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
167
168 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
169 Removed drawing_scrollbar argument. All users updated
170 Fixes #29792.
171 Reported by Jo Shields
172
3ecb080a
VS
1732010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
174
175 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
176 buffer since gfxterm handles double repaint.
177
5f2316c1
VS
1782010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
179
180 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
181 * term/gfxterm.c (real_scroll): Likewise.
182
9a25f885
VS
1832010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
184
185 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
186 before calling BIOS.
187
39fbb79a
VS
1882010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
189
190 * include/grub/i18n.h: Always enable grub_gettext.
191
228cfa97
VS
1922010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
193
194 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
195 partition naming style.
196
21717c8f
CW
1972010-05-21 Colin Watson <cjwatson@ubuntu.com>
198
199 * util/grub-mkconfig.in: Fix handling of -o so that it works when
200 not the first option.
201
c0f48e65
CW
2022010-05-20 Colin Watson <cjwatson@ubuntu.com>
203
204 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
205
96779aec
CW
2062010-05-20 Colin Watson <cjwatson@ubuntu.com>
207
208 * util/misc.c: Move inclusion of <limits.h> to ...
209 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
210
fa9d256e
GS
2112010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
212
213 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
214 Fix merge error in NetBSD code.
215 (find_partition_start) [__NetBSD__]: Likewise.
216
123b7a85
BC
2172010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
218
219 Fix grub-mkrescue usage unit testing.
220
221 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
222
74276c0d
CF
2232010-05-18 Christian Franke <franke@computer.org>
224
225 * util/grub.d/10_windows.in: Use path names instead of
226 drive letters to prevent warning from Cygwin 1.7.
227 Add drivemap command to menuentry if needed.
228
c4f7b523
ST
2292010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
230
231 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
232 gnumach and gnumach.gz.
233
95b97950
VS
2342010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
235
236 * include/grub/i18n.h (gettext): Inline instead of using #define.
237 (grub_gettext): Likewise.
238 (_): Likewise.
239
01b8d2d7
VS
2402010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
241
242 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
243 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
244 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
245 (main): Add a slash after pkglibdirroot.
246
654e1d1e
VS
2472010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
248
249 * util/grub-install.in: Add missing "in" keyword.
250
26966aeb
VS
2512010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
252
253 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
254 Reported by: Seth Goldberg.
255
75006747
VS
2562010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
257
258 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
259
74cbf5bd
CW
2602010-05-18 Colin Watson <cjwatson@ubuntu.com>
261
262 * configure.ac: Check for Linux device-mapper support.
263
264 * util/hostdisk.c (device_is_mapped): New function.
265 (find_partition_start): New function, partly broken out from
266 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
267 device-mapper support added.
268 (linux_find_partition): Use find_partition_start.
269 (convert_system_partition_to_system_disk): Add `st' argument.
270 Support Linux /dev/mapper/* devices if device-mapper support is
271 available; only DM-RAID devices are understood at present.
272 (find_system_device): Add `st' argument. Pass it to
273 convert_system_partition_to_system_disk.
274 (grub_util_biosdisk_get_grub_dev): Pass stat result to
275 find_system_device and convert_system_partition_to_system_disk. Use
276 find_partition_start.
277
278 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
279 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
280 * util/deviceiter.c [__linux__]: Define MINOR.
281 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
282 * util/mkdevicemap.c (grub_putchar): New function.
283 (grub_getkey): New function.
284 (grub_refresh): New function.
285 (main): Set debug=all if -v -v is used.
286
355b51e9
CW
2872010-05-18 Colin Watson <cjwatson@ubuntu.com>
288
289 Fix build with non-GNU libcs.
290
291 * util/misc.c (canonicalize_file_name): Move to ...
292 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
293 grub_make_system_path_relative_to_its_root.
294
7fb5c25f
CW
2952010-05-18 Colin Watson <cjwatson@ubuntu.com>
296
297 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
298 we handle finding grub-mkimage. Default to finding grub-mkimage in
299 ${bindir} with program_transform_name applied, and provide a
300 --grub-mkimage option to override this.
301
1d3293d6
VS
3022010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
303
304 Remove grub-mkisofs.
305
306 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
307 (grub_mkisofs_SOURCES): Removed.
308 (grub_mkisofs_CFLAGS): Removed.
309 * util/mkisofs/defaults.h: Removed.
310 * util/mkisofs/eltorito.c: Likewise.
311 * util/mkisofs/exclude.h: Likewise.
312 * util/mkisofs/hash.c: Likewise.
313 * util/mkisofs/include/: Likewise.
314 * util/mkisofs/include/fctldefs.h: Likewise.
315 * util/mkisofs/include/mconfig.h: Likewise.
316 * util/mkisofs/include/prototyp.h: Likewise.
317 * util/mkisofs/include/statdefs.h: Likewise.
318 * util/mkisofs/iso9660.h: Likewise.
319 * util/mkisofs/joliet.c: Likewise.
320 * util/mkisofs/match.c: Likewise.
321 * util/mkisofs/match.h: Likewise.
322 * util/mkisofs/mkisofs.c: Likewise.
323 * util/mkisofs/mkisofs.h: Likewise.
324 * util/mkisofs/msdos_partition.h: Likewise.
325 * util/mkisofs/multi.c: Likewise.
326 * util/mkisofs/name.c: Likewise.
327 * util/mkisofs/rock.c: Likewise.
328 * util/mkisofs/tree.c: Likewise.
329 * util/mkisofs/write.c: Likewise.
330
5dde9afe
VS
3312010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
332
333 Unify grub-mkimage accross platforms.
334
335 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
336 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
337 (grub_mkelfimage_SOURCES): Removed.
338 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
339 (util/grub-mkimage.c_DEPENDENCIES): .. this.
340 (bin_UTILITIES): Add grub-mkimage.
341 (grub_mkimage_SOURCES): New variable.
342 (kernel_img_HEADERS): Remove machine/kernel.h.
343 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
344 (pkglib_PROGRAMS): Add kernel.img.
345 (kernel_img_HEADERS): Add machine/kernel.h.
346 (kernel_img_FORMAT): Removed.
347 (bin_UTILITIES): Remove grub-mkimage.
348 (grub_mkimage_SOURCES): Removed.
349 (grub_mkimage_CFLAGS): Likewise.
350 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
351 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
352 (pkglib_PROGRAMS): Add kernel.img.
353 (bin_UTILITIES): Remove grub-mkimage.
354 (grub_mkimage_SOURCES): Removed.
355 (grub_mkimage_CFLAGS): Likewise.
356 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
357 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
358 (pkglib_PROGRAMS): Add kernel.img.
359 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
360 (pkglib_PROGRAMS): Add kernel.img.
361 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
362 (grub_mkimage_SOURCES): Removed.
363 (grub_mkimage_CFLAGS): Likewise.
364 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
365 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
366 (pkglib_PROGRAMS): Add kernel.img.
367 (bin_UTILITIES): Remove grub-mkimage.
368 (grub_mkimage_SOURCES): Removed.
369 (grub_mkimage_CFLAGS): Likewise.
370 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
371 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
372 (grub_mkimage_SOURCES): Removed.
373 (grub_mkimage_CFLAGS): Likewise.
374 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
375 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
376 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
377 (grub_pe32_optional_header): ... this.
378 (grub_pe64_optional_header): ... and this. All users updated.
379 (GRUB_PE32_PE32_MAGIC): Split into ..
380 (GRUB_PE32_PE32_MAGIC): .. this.
381 (GRUB_PE32_PE64_MAGIC): .. and this.
382 (GRUB_PE32_SIGNATURE_SIZE): New definition.
383 * include/grub/elf.h (PT_GNU_STACK): New definition.
384 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
385 * include/grub/i386/efi/kernel.h: Likewise.
386 * include/grub/i386/kernel.h: Likewise.
387 * include/grub/i386/pc/kernel.h: Likewise.
388 * include/grub/i386/qemu/boot.h: Likewise.
389 * include/grub/mips/kernel.h: Likewise.
390 * include/grub/mips/qemu-mips/kernel.h: Likewise.
391 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
392 * include/grub/powerpc/kernel.h: Likewise.
393 * include/grub/sparc64/ieee1275/boot.h: Likewise.
394 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
395 * include/grub/sparc64/kernel.h: Likewise.
396 * include/grub/x86_64/efi/kernel.h: Likewise.
397 * include/grub/x86_64/kernel.h: Likewise.
398 * include/grub/offsets.h: New file.
399 * include/grub/kernel.h (grub_module_info): Split into ...
400 (grub_module_info32): ... this.
401 (grub_module_info64): ... and this.
402 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
403 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
404 (grub_boot_blocklist): Moved from here ...
405 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
406 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
407 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
408 * include/grub/types.h (grub_target_to_host16): Removed.
409 (grub_target_to_host32): Likewise.
410 (grub_target_to_host64): Likewise.
411 (grub_host_to_target16): Likewise.
412 (grub_host_to_target32): Likewise.
413 (grub_host_to_target64): Likewise.
414 (grub_host_to_target_addr): Likewise.
415
416 Support grub-mkrescue for efi, coreboot and qemu.
417
418 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
419 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
420 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
421 * util/grub-mkrawimage.c: Moved from here ...
422 * util/grub-mkimage.c: ... here. All users updated.
423 (ALIGN_ADDR): Use image_target.
424 (TARGET_NO_FIELD): New const.
425 (image_target_desc): New type.
426 (image_targets): New array.
427 (grub_target_to_host64): Use image_target.
428 (grub_target_to_host32): Likewise.
429 (grub_target_to_host16): Likewise.
430 (grub_host_to_target64): Likewise.
431 (grub_host_to_target32): Likewise.
432 (grub_host_to_target16): Likewise.
433 (grub_host_to_target_addr): Likewise.
434 (generate_image): Handle multiimage.
435 (main): Require -O parameter. All users updated.
436 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
437 util/efi/grub-mkimage.c
438 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
439 New option --rom-directory.
440 Use xorriso.
441 * util/i386/efi/grub-mkimage.c: Removed.
442 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
443 (grub_target_to_host32): Likewise.
444 (grub_target_to_host64): Likewise.
445 (grub_host_to_target16): Likewise.
446 (grub_host_to_target32): Likewise.
447 (grub_host_to_target64): Likewise.
448 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
449 (grub_target_to_host32): Likewise.
450 (grub_target_to_host64): Likewise.
451 (grub_host_to_target16): Likewise.
452 (grub_host_to_target32): Likewise.
453 (grub_host_to_target64): Likewise.
454
f4fc97d0
BC
4552010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
456
457 Source tree is reorganized for emu build.
458
459 * include/grub/util/console.h: Move from here...
460 * include/grub/emu/console.h: ...to here.
461 * include/grub/util/getroot.h: Move from here...
462 * include/grub/emu/getroot.h: ...to here.
463 * include/grub/util/hostdisk.h: Move from here...
464 * include/grub/emu/hostdisk.h: ...to here.
465 * util/console.c: Move from here...
466 * kern/emu/console.c: ...to here.
467 * util/getroot.c: Move from here...
468 * kern/emu/getroot.c: ...to here.
469 * util/grub-emu.c: Move from here...
470 * kern/emu/main.c: ...to here.
471 * util/hostdisk.c: Move from here...
472 * kern/emu/hostdisk.c: ...to here.
473 * util/hostfs.c: Move from here...
474 * kern/emu/hostfs.c: ...to here.
475 * util/mm.c: Move from here...
476 * kern/emu/mm.c: ...to here.
477 * util/pci.c: Move from here...
478 * bus/emu/pci.c: ...to here.
479 * util/sdl.c: Move from here...
480 * video/emu/sdl.c: ...to here.
481 * util/time.c: Move from here...
482 * kern/emu/time.c: ...to here.
483 * util/usb.c: Move from here...
484 * bus/usb/emu/usb.c: ...to here.
485
486 * include/grub/emu/misc.h: New header for grub-emu functions.
487 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
488
489 * conf/any-emu.rmk: Rule updates for above renames.
490 * conf/common.rmk: Likewise.
491 * conf/i386-pc.rmk: Likewise.
492 * conf/i386-qemu.rmk: Likewise.
493 * conf/mips.rmk: Likewise.
494 * conf/sparc64-ieee1275.rmk: Likewise.
495 * conf/x86-efi.rmk: Likewise.
496
497 * disk/lvm.h: #include updates for above renames.
498 * util/grub-mkrelpath.c: Likewise.
499 * util/grub-probe.c: Likewise.
500 * util/i386/pc/grub-setup.c: Likewise.
501 * util/sparc64/ieee1275/grub-setup.c: Likewise.
502 * kern/emu/console.c: Likewise.
503 * kern/emu/getroot.c: Likewise.
504 * kern/emu/hostdisk.c: Likewise.
505 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
506
507 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
508 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
509 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
510 * util/misc.c: Remove grub-emu functions.
511
cced9145
VS
5122010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
513
514 Fix gfxmenu crash.
515 Reported by: Thorsten Grützmacher.
516
517 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
518 timeout hook.
519 (circprog_set_property): Register and unregister timeout hook.
520 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
521 (label_destroy): Free template. and unregister hook.
522 (label_set_state): New function.
523 (label_set_property): Handle templates and hooks.
524 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
525 timeout hook.
526 (progress_bar_set_property): Register and unregister timeout hook.
527 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
528 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
529 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
530 (update_timeout_visit): Removed.
531 (update_timeouts): New function.
532 (redraw_timeouts): Likewise.
533 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
534 (grub_gfxmenu_clear_timeout): Likewise.
535 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
536 (grub_gfxmenu_timeout_notify): Likewise.
537 (grub_gfxmenu_timeout_notifications): New external variable.
538 (grub_gfxmenu_timeout_register): New function.
539 (grub_gfxmenu_timeout_unregister): Likewise.
540
c6e5caab
VS
5412010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
542
543 Transform (broken) vga terminal into (working) vga video driver.
544
545 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
546 video/i386/pc/vga.c.
547 * include/grub/video.h (grub_video_driver_id):
548 Add GRUB_VIDEO_DRIVER_VGA.
549 * term/i386/pc/vga.c: Renamed to ...
550 * video/i386/pc/vga.c: ...this
551 (DEBUG_VGA): Removed.
552 (CHAR_WIDTH): Likewise.
553 (CHAR_HEIGHT): Likewise.
554 (TEXT_WIDTH): Likewise.
555 (TEXT_HEIGHT): Likewise.
556 (DEFAULT_FG_COLOR): Likewise.
557 (DEFAULT_BG_COLOR): Likewise.
558 (colored_char): Likewise.
559 (xpos): Likewise.
560 (ypos): Likewise.
561 (cursor_state): Likewise.
562 (fg_color): Likewise.
563 (bg_color): Likewise.
564 (text_buf): Likewise.
565 (page): Likewise.
566 (font): Likewise.
567 (framebuffer): New variable.
568 (set_read_map): Disabled.
569 (setup): New variable.
570 (is_target): Likewise.
571 (grub_vga_mod_init): Likewise.
572 (grub_vga_mod_fini): Likewise.
573 (check_vga_mem): Likewise.
574 (write_char): Likewise.
575 (write_cursor): Likewise.
576 (scroll_up): Likewise.
577 (grub_vga_putchar): Likewise.
578 (grub_vga_getcharwidth): Likewise.
579 (grub_vga_getwh): Likewise.
580 (grub_vga_getxy): Likewise.
581 (grub_vga_gotoxy): Likewise.
582 (grub_vga_cls): Likewise.
583 (grub_vga_setcolorstate): Likewise.
584 (grub_vga_setcursor): Likewise.
585 (grub_video_vga_init): New function.
586 (grub_video_vga_setup): Likewise.
587 (grub_video_vga_fini): Likewise.
588 (update_target): Likewise.
589 (grub_video_vga_blit_bitmap): Likewise.
590 (grub_video_vga_blit_render_target): Likewise.
591 (grub_video_vga_set_active_render_target): Likewise.
592 (grub_video_vga_get_active_render_target): Likewise.
593 (grub_video_vga_swap_buffers): Likewise.
594 (grub_video_vga_set_palette): Likewise.
595 (grub_video_vga_get_info_and_fini): Likewise.
596 (grub_vga_term): Removed.
597 (grub_video_vga_adapter): New variable.
598 (GRUB_MOD_INIT): Register a video driver instead of terminal.
599 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
600
2bf61a98
VS
6012010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
602
603 * video/readers/jpeg.c: Indented.
604
09ddcd11
VS
6052010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
606
607 Various jpeg cleanups.
608
609 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
610 (grub_jpeg_decode_quan_table): Use sizeof.
611 (grub_jpeg_decode_du): Use ARRAY_SIZE.
612
e5507505
PH
6132010-05-05 Peter Hurley <No e-mail available> (tiny change)
614
615 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
616 tables. Ignore non-last ac bit.
617 (grub_jpeg_decode_quan_table): Likewise.
618
7e720a9b
VS
6192010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
620
621 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
622 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
623 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
624 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
625 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
626 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
627
a7fc080b
VS
6282010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
629
630 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
631 error.
632
2bf6012d
VS
6332010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
634
635 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
636
265d68cd
VS
6372010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
638
639 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
640 condition.
641
6422010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7dd5a111
VS
643
644 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
645 part.
646
265d68cd 6472010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9b058d52
VS
648
649 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
650 pointers.
651
265d68cd 6522010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
25893831
VS
653
654 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
655
d1b61374
CF
6562010-05-01 Christian Franke <franke@computer.org>
657
658 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
659 Remove broken Cygwin path conversion.
660 * util/misc.c: [__CYGWIN__] Add include and define.
661 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
662 for Cygwin 1.7.
663 (make_system_path_relative_to_its_root): Simplify loop, replace early
664 return by break.
665 [__CYGWIN__] Add conversion to win32 path.
666 Include "/" case in trailing slash removal.
667
3558c6e9
VS
6682010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
669
670 * kern/main.c (grub_load_config): Fix copy-pasted comment.
671 Reported by: Seth Goldberg
672
f5f3ff93
VS
6732010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
674
675 * commands/help.c (grub_cmd_help): Fix a typo.
676 Reported by: Seth Goldberg
677
d8b5cd40
VS
6782010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
679
680 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
681 name and add N_.
682 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
683 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
684 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
685 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
686 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
687 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
688 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
689 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
690 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
691 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
692 * normal/context.c (GRUB_MOD_INIT): Likewise.
693 * normal/main.c (GRUB_MOD_INIT): Likewise.
694 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
695 * term/serial.c (GRUB_MOD_INIT): Likewise.
696 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
697
88c14915
VS
6982010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
699
700 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
701 extra == 0.
702
165134bc
VS
7032010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
704
705 * commands/iorw.c: New file.
706 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
707 (iorw_mod_SOURCES): New variable.
708 (iorw_mod_CFLAGS): Likewise.
709 (iorw_mod_LDFLAGS): Likewise.
710
c5ac9b32
VS
7112010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
712
713 Hotkey support
714
715 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
716 * normal/main.c (hotkey_aliases): New variable.
717 (grub_normal_add_menu_entry): Parse "--hotkey".
718 * normal/menu_text.c (run_menu): Handle hotkeys.
719
ce60689c
VS
7202010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
721
722 * kern/i386/coreboot/init.c (grub_machine_init): Call
723 grub_machine_mmap_init on qemu.
724
0359d006
VS
7252010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
726
727 * boot/i386/qemu/boot.S: Add a missing .code16.
728
7819a456
VS
7292010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
730
731 Use LBIO on coreboot.
732
733 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
734 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
735 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
736 New declaration.
737 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
738 grub_machine_mmap_init on coreboot.
739 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
740 GRUB_LINUXBIOS_MEMBER_LINK.
741 (grub_machine_mmap_iterate): Fix declaration.
742 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
743
7210dca9
VS
7442010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
745
746 Split coreboot and multiboot ports.
747
748 * conf/i386-multiboot.rmk: New file.
749 * configure.ac: Add multiboot port.
750 * include/grub/i386/multiboot/boot.h: New file.
751 * include/grub/i386/multiboot/console.h: Likewise.
752 * include/grub/i386/multiboot/init.h: Likewise.
753 * include/grub/i386/multiboot/kernel.h: Likewise.
754 * include/grub/i386/multiboot/loader.h: Likewise.
755 * include/grub/i386/multiboot/memory.h: Likewise.
756 * include/grub/i386/multiboot/serial.h: Likewise.
757 * include/grub/i386/multiboot/time.h: Likewise.
758 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
759 * loader/multiboot.c: Likewise.
760 * loader/multiboot_mbi2.c: Likewise.
761 * util/grub-mkrescue.in: Generate multiboot rescue.
762
6f8aaf68
VS
7632010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
764
3080f7a7
VS
765 * kern/parser.c (grub_parser_execute): Cope with read-only config.
766
7672010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
768
769 Merge handling of input and output terminals. Fix a hang.
6f8aaf68
VS
770
771 * commands/terminal.c (abstract_terminal): New struct.
772 (handle_command): New function. Based on grub_cmd_terminal_input.
773 (grub_cmd_terminal_input): Use handle_command.
774 (grub_cmd_terminal_output): Use handle_command.
775
a8ebb841
BC
7762010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
777
778 Fix comment handling.
779
780 * tests/grub_script_comments.in: New testcase.
781 * conf/tests.rmk: Rules for new testcase.
782 * script/yylex.l: Updated flex rules.
783
bb06ba08
ST
7842010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
785
786 * docs/grub.texi (play): Document that zero pitches produce rests.
c76a1838
ST
787 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
788 if argc is 1.
bb06ba08 789
cc9d2425
VS
7902010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
791
792 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
793 autogen issues.
794
460d8402
CF
7952010-04-26 Christian Franke <franke@computer.org>
796
797 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
798 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
799 (grub_get_prefix): Remove function.
800 * util/grub-emu.c (main): Replace grub_get_prefix () call by
801 make_system_path_relative_to_its_root ().
802 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
803
553c01f9
CF
8042010-04-24 Christian Franke <franke@computer.org>
805
806 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
807 (kernel_img_LDFLAGS): Remove -static-libgcc.
808
2aec1692
CF
8092010-04-24 Christian Franke <franke@computer.org>
810
811 * configure.ac: Do not CHECK_BSS_START_SYMBOL
812 and CHECK_END_SYMBOL if grub-emu is built.
813 Unset TARGET_OBJ2ELF if grub-emu is built
814 without module support.
815
f67dc308
JS
8162010-04-24 Jiro SEKIBA <jir@unicus.jp>
817
818 Nilfs2 support.
819
820 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
821 (grub_fstest_SOURCES): Likewise.
822 (pkglib_MODULES): Add nilfs2.mod.
823 (nilfs2_mod_SOURCES): New variable.
824 (nilfs2_mod_CFLAGS): Likewise.
825 (nilfs2_mod_LDFLAGS): Likewise.
826 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
827 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
828 * fs/nilfs2.c: New file.
829
4ba8d354
VS
8302010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
831
832 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
833 is not supported.
834
0d2c20c6
GS
8352010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
836
837 Add grub-mkconfig support for NetBSD.
838
839 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
840 * util/grub-mkconfig.in: export new NetBSD specific variables.
841 * po/POTFILES-shell: added 10_netbsd.in.
842 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
843
bc4a2d83
BC
8442010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
845
846 Fix emu build with grub-emu-pci and grub-emu-modules.
847
848 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
849 functions.
850 * include/grub/libpciaccess.h: New file.
851 * conf/any-emu.rmk: Update kernel headers for emu build.
852
f48c87aa
VS
8532010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
854
855 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
856
18959385
VS
8572010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
858
859 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
860
0037de3f
VS
8612010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
862
863 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
864 Retrieve chosen/bootpath if bootpath isn't hardcoded.
865 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
866 util/ieee1275/ofpath.c.
867 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
868 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
869 * include/grub/sparc64/ieee1275/boot.h
870 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
871 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
872 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
873 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
874 const char *.
875 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
876 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
877 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
878 install.
879
38e55e90
GS
8802010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
881
882 * util/grub-mkconfig.in: Corrected two == equality tests.
883 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
884 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
885 expect a number appended to it.
886 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
887 expects a number appended to it.
888
a9e6ff28
VS
8892010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
890
891 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
892
0b830b8f
VS
8932010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
894
895 * util/hostdisk.c (make_device_name): Change to new partition naming.
896
0973daeb
VS
8972010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
898
899 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
900
460d8402 9012010-04-17 Christian Franke <franke@computer.org>
ebfe7eb4
CF
902
903 * Makefile.in: Add missing localedir setting.
904
0b456309
CW
9052010-04-14 Colin Watson <cjwatson@ubuntu.com>
906
907 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
908 mistake in r2156. Noticed by Anthony Fok.
909
910 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
911 @localedir@.
912 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
913
08f46d62
BC
9142010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
915
916 Fix a spurious, uninitialized variable warning.
917
918 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
919 Initialize variable, shdr.
920 (grub_freebsd_load_elfmodule): Likewise.
921 (grub_freebsd_load_elf_meta): Likewise.
922
8c4a72d4
BC
9232010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
924
925 Fix for escaped dollar in double quoted strings.
926
927 * script/yylex.l: Updated flex rules.
928 * conf/tests.rmk: Rule for new testcase.
929 * tests/grub_script_dollar.in: New testcase.
930
ce44826e
CPE
9312010-04-13 Carles Pina i Estany <carles@pina.cat>
9322010-04-13 Colin Watson <cjwatson@ubuntu.com>
933
934 Enclose all translated strings in grub.cfg in single quotes, and
935 escape them appropriately (Ubuntu bug #552921).
936
937 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
938 * util/grub.d/10_hurd.in: Use it.
939 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
940 * util/grub.d/10_linux.in (linux_entry): Likewise.
941
4b0cd8f8
VS
9422010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
943
944 Fix cygwin compilation.
945
946 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
947 * include/grub/misc.h (__register_frame_info)
948 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
949 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
950 * kern/misc.c (__register_frame_info)
951 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
952 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
953
01fcf061
VS
9542010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
955
956 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
957
5d04b11e
VS
9582010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
959
960 Unify libgcc processing.
961
962 * Makefile.in (kernel_img_LDFLAGS): New variable.
963 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
964 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
965 overwriting.
966 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
967 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
968 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
969 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
970 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
971 overwriting. Remove -lgcc and -static-libgcc
972 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
973 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
974 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
975 (kernel_img_LDFLAGS): Append instead of overwriting.
976 Remove -lgcc and -static-libgcc
977 * conf/sparc64-ieee1275.rmk: Likewise.
978 * include/grub/powerpc/libgcc.h: Move to ...
979 * include/grub/libgcc.h: .. this.
980 * include/grub/libgcc.h: Don't export most of the function on x86.
981 (__bswapsi2): New export.
982 (__bswapdi2): Likewise.
983 * include/grub/mips/libgcc.h: Removed.
984 * include/grub/sparc64/libgcc.h: Likewise.
985
b7f3ac29
VS
9862010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
987
988 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
989 disk_info_msg (conflicts with gettexting into languages with cases).
990
2c7031b1
GS
9912010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
992
993 Add grub-probe support for NetBSD.
994
995 * util/getroot.c (find_root_device): Convert block device to
996 character device on NetBSD.
997 * util/probe.c (probe): Require character device on NetBSD.
998 * util/hostdisk.c: NetBSD specific headers.
999 (configure_device_driver): new function to tune device driver
1000 parameters (currently only for NetBSD floppy driver).
1001 (grub_util_biosdisk_open): NetBSD specific code (get disk size
1002 via disklabel ioctl).
1003 (open_device): call configure_device_driver on NetBSD.
1004 (convert_system_partition_to_system_disk): NetBSD specific code.
1005 (device_is_wholedisk): Likewise.
1006 (grub_util_biosdisk_get_grub_dev): Likewise.
1007 (make_device_name): Fixed a typo in bsd_part_str.
1008 * configure.ac: check for opendisk() and getrawpartition() on
1009 NetBSD and set LIBUTIL.
1010 * Makefile.in: add LIBUTIL to LIBS.
1011
f516290c
BC
10122010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
1013
1014 Documentation fix.
1015
1016 * util/grub-script-check.c: Better help message.
1017
d8dcc0df
BC
10182010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
1019
1020 Fix FreeBSD build.
1021
1022 * configure.ac: Flex version check.
1023 * conf/common.rmk: Add -Wno-error to sh.mod.
1024 * script/yylex.l: Remove all #pragma.
1025
6734334a
VS
10262010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
1027
1028 * include/grub/util/misc.h (canonicalise_file_name): Add missing
1029 prototype.
1030 Reported by: Seth Goldberg.
1031
daea6abd
VS
10322010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
1033
1034 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
1035 Rename "module" to "module2".
1036 Reported by: Seth Goldberg.
1037
f2fd9d2b
VS
10382010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
1039
1040 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
1041 EXPORT_FUNC.
1042 Reported by: Seth Goldberg.
1043
be124579
VS
10442010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
1045
1046 * lib/posix_wrap/locale.h: Add missing file.
1047 Reported by: Seth Goldberg.
1048
ef5da797
VS
10492010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
1050
1051 grub-emu module load support.
1052
1053 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
1054 NO_DYNAMIC_MODULES switched to this.
1055 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
1056 (CFLAGS): Likewise.
1057 * conf/any-emu.rmk: Generate symlist.
1058 (kernel_img_HEADERS): Add util/datetime.h.
1059 (kernel_img_HEADERS) [sdl]: Add sdl.h.
1060 (kernel_img_HEADERS) [libusb]: Add libusb.h.
1061 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
1062 kern/$(target_cpu)/cache.S.
1063 * configure.ac (grub-emu-modules): New option.
1064 * genmk.rb: Handle multiple source lists.
1065 * include/grub/sdl.h: New file.
1066 * include/grub/libusb.h: Likewise.
1067 * util/grub-emu.c (main): Hanle (host) root.
1068 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
1069 GRUB_ERR_UNKNOWN_DEVICE.
1070 * util/misc.c: Move mm functions to ...
1071 * util/mm.c: ... here. All users updated.
1072
47822096
VS
10732010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
1074
1075 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
1076 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
1077 missing files.
1078 (maintainer-clean): Remove libgcrypt-grub.
1079
5d7e7445
VS
10802010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
1081
1082 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
1083
25f4e252
EC
10842010-04-09 EFI Coder <eficoder@hotmail.com>
1085
1086 * normal/menu_text.c (print_message): Clean up the message and show
1087 the Fn information when on EFI
1088 * term/efi/console.c (grub_console_checkkey): Add F4 support.
1089
027de555
VS
10902010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
1091
1092 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
1093 All users updated.
1094 * normal/crypto.c (read_crypto_list): Likewise.
1095 * normal/dyncmd.c (read_command_list): Likewise.
1096 * normal/term.c (read_terminal_list): Likewise.
1097 * normal/main.c (read_lists): Use explicit prefix.
1098 (read_lists_hook): Use read_lists.
1099 (grub_normal_execute): Likewise.
1100
47779711
VS
11012010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
1102
1103 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
1104 Reported by: Thomas Schmitt.
1105 Add -no-emul-boot to grub-mkisofs parameters.
1106
1118c32e
VS
11072010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
1108
1109 * font/font.c: Indented.
1110
7d652447
BC
11112010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
1112
1113 Elif support to GRUB script (by Deepak Vankadaru).
1114
1115 * tests/grub_script_if.in: New testcase.
1116 * conf/tests.rmk: Rule for new testcase.
1117 * script/parser.y: Grammar rules for elif.
1118
34bb22df
BC
11192010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
1120
1121 While and until loops support to GRUB script.
1122
1123 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
1124 (grub_script_create_cmdwhile): New function prototype.
1125 (grub_script_execute_cmdwhile): New function prototype.
1126 * script/execute.c (grub_script_execute_cmdwhile): New function.
1127 * script/parser.y (command): New commands.
1128 (whilecmd): New grammar rule.
1129 (untilcmd): New grammar rule.
1130 * script/script.c (grub_script_create_cmdwhile): New function.
1131 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
1132 function.
1133
1134 * tests/grub_script_while1.in: New testcase.
1135 * conf/tests.rmk: Rule for new testcase.
1136
e215d8e0
VS
11372010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
1138
1139 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
1140 as *.jpg.
1141
d7c43ba1
MV
11422010-04-09 Mario Vazquez <mariovazq@gmail.com>
1143
1144 GRUB_BACKGROUND support.
1145
1146 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
1147 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
1148
d64795c0
VS
11492010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
1150
1151 Load fonts and modules for gfxmenu in grub-mkconfig.
d7c43ba1 1152 Idea by: Mario Vazquez
d64795c0
VS
1153
1154 * util/grub.d/00_header.in: Load pf2 and image modules.
1155
f267f83a
VS
11562010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
1157
1158 grub-mkconfig multiple terminal support.
1159
1160 * util/grub-mkconfig.in: Handle multiple terminals correctly.
1161 * util/grub.d/00_header.in: Likewise.
1162
b7841ceb
VS
11632010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
1164
1165 * Makefile.in: Specify files explicitly instead of using $< and $@ since
1166 we use cd $(srcdir).
1167
df60998c
CW
11682010-04-08 Colin Watson <cjwatson@ubuntu.com>
1169
1170 * util/grub.d/10_linux.in: Only use the first word of
1171 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
1172 spaces in GRUB_DISTRIBUTOR.
1173 * util/grub.d/10_kfreebsd.in: Likewise.
1174 * util/grub.d/10_hurd.in: Likewise.
1175
fa09c82e
BC
11762010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
1177
14e18ae3 1178 Fix unit testing framework for Qemu 0.12.
fa09c82e
BC
1179
1180 * tests/util/grub-shell.in: Remove -serial stdio option.
1181
daf892b3
BC
11822010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
1183
1184 POSIX header file wrappers.
1185
1186 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
1187 equivalents.
1188 * lib/posix_wrap/ctype.h: Likewise.
1189 * lib/posix_wrap/errno.h: Likewise.
1190 * lib/posix_wrap/langinfo.h: Likewise.
1191 * lib/posix_wrap/limits.h: Likewise.
1192 * lib/posix_wrap/localcharset.h: Likewise.
1193 * lib/posix_wrap/stdint.h: Likewise.
1194 * lib/posix_wrap/stdio.h: Likewise.
1195 * lib/posix_wrap/stdlib.h: Likewise.
1196 * lib/posix_wrap/string.h: Likewise.
1197 * lib/posix_wrap/sys/types.h: Likewise.
1198 * lib/posix_wrap/unistd.h: Likewise.
1199 * lib/posix_wrap/wchar.h: Likewise.
1200 * lib/posix_wrap/wctype.h: Likewise.
1201 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
1202 (grub_script.yy.h): Likewise.
1203 * script/yylex.l: Remove POSIX emulation #defines.
1204 * Makefile.in (POSIX_CFLAGS): New variable.
1205 (GNULIB_UTIL_CFLAGS): Likewise.
1206
1207 Regexp support.
1208
1209 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
1210 (regexp_mod_SOURCES): New variable.
1211 (regexp_mod_CFLAGS): Likewise.
1212 (regexp_mod_LDFLAGS): Likewise.
1213 * commands/regexp.c: New file.
1214 * gnulib/regcomp.c: New file. Imported from gnulib.
1215 * gnulib/regex.c: Likewise.
1216 * gnulib/regex_internal.c: Likewise.
1217 * gnulib/regex_internal.h: Likewise.
1218 * gnulib/regexec.c: Likewise.
1219 * gnulib/regex.h: Likewise.
1220
974ac4f7
VS
12212010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
1222
1223 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
1224 unsupported video mode types.
1225
2622c3ff
VS
12262010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
1227
1228 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
1229
064cb524
VS
12302010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
1231
1232 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
1233 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
1234
a8c3b552
VS
12352010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
1236
1237 Remove unused grub_vga_get_font.
1238
1239 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
1240 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
1241
187bbe3d
GS
12422010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
1243
1244 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
1245 * include/grub/misc.h: Likewise.
1246
b9396631
GS
12472010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
1248
1249 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
1250 for which failure is fatal.
1251
50479feb
GS
12522010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
1253
1254 * util/grub-install.in: Use mkdir -p to create grub directory.
1255 * util/i386/efi/grub-install.in: Likewise.
1256 * util/ieee1275/grub-install.in: Likewise.
1257
b1654fdf
GS
12582010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
1259
1260 * Makefile.in (LEX): new variable.
1261
bd5a6415
GS
12622010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
1263
1264 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
1265 `=' and added double quotes on operands of this equality test.
1266
3db3a82b
VS
12672010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
1268
1269 * Makefile.in (uninstall): Remove a leftover debug echo.
1270 Reported by: Grégoire Sutre
1271
38023412
VS
12722010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
1273
1274 MIPS multiboot2 support.
1275
1276 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
1277 (multiboot2_mod_SOURCES): New variable.
1278 (multiboot2_mod_CFLAGS): Likewise.
1279 (multiboot2_mod_LDFLAGS): Likewise.
1280 (multiboot2_mod_ASFLAGS): Likewise.
1281 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
1282 definition.
1283 (MULTIBOOT_ENTRY_REGISTER): Likewise.
1284 (MULTIBOOT_MBI_REGISTER): Likewise.
1285 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
1286 (MULTIBOOT_ELF32_MACHINE): Likewise.
1287 (MULTIBOOT_ELF64_MACHINE): Likewise.
1288 * include/grub/mips/multiboot.h: New file.
1289 * include/grub/video.h (grub_video_driver_id): New type
1290 GRUB_VIDEO_DRIVER_SM712.
1291 (grub_video_get_info_and_fini): Export.
1292 (grub_video_get_palette): Likewise.
1293 (grub_video_get_driver_id): Likewise.
1294 * include/multiboot2.h: Resynced with spec.
1295 * loader/i386/multiboot.c: Moved from here ...
1296 * loader/multiboot.c: ... here. All users updated.
1297 (grub_multiboot_boot): Use platform-specific macros.
1298 * loader/i386/multiboot_elfxx.c: Moved from here ...
1299 * loader/multiboot_elfxx.c: ... here. All users updated.
1300 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
1301 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
1302 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
1303
47674667
VS
13042010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
1305
1306 Import gnulib argp module.
1307
1308 * gnulib/argp-ba.c: New file.
1309 * gnulib/argp-eexst.c: Likewise.
1310 * gnulib/argp-fmtstream.c: Likewise.
1311 * gnulib/argp-fmtstream.h: Likewise.
1312 * gnulib/argp-fs-xinl.c: Likewise.
1313 * gnulib/argp-help.c: Likewise.
1314 * gnulib/argp-namefrob.h: Likewise.
1315 * gnulib/argp-parse.c: Likewise.
1316 * gnulib/argp-pin.c: Likewise.
1317 * gnulib/argp-pv.c: Likewise.
1318 * gnulib/argp-pvh.c: Likewise.
1319 * gnulib/argp-version-etc.c: Likewise.
1320 * gnulib/argp-version-etc.h: Likewise.
1321 * gnulib/argp-xinl.c: Likewise.
1322 * gnulib/argp.h: Likewise.
1323
495442ed
VS
13242010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
1325
1326 * kern/device.c (grub_device_iterate): Clear errors after failed
1327 opening device.
1328
f9fd65df
VS
13292010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
1330
1331 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
1332 returned by firmware.
1333
af09641e
VS
13342010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
1335
1336 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
1337 compilation on coreboot and qemu
1338
016883a5
VS
13392010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
1340
1341 * include/multiboot2.h: Resync with spec.
1342
f97e1f7d
VS
13432010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
1344
1345 Multiboot2 tag support
1346
1347 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
1348 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
1349 Remove loader/multiboot_loader.c.
1350 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
1351 (grub_multiboot2_real_boot): Likewise.
1352 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
1353 (grub_get_multiboot_mmap_count): New proto.
1354 (grub_fill_multiboot_mmap): Likewise.
1355 (grub_multiboot_set_video_mode): Likewise.
1356 (grub_multiboot_set_console): Likewise.
1357 (grub_multiboot_load): Likewise.
1358 (grub_multiboot_load_elf): Likewise.
1359 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
1360 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
1361 * include/multiboot.h: Resynced with specification.
1362 * include/multiboot2.h: Resynced with specification.
1363 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
1364 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
1365 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
1366 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
1367 users updated.
1368 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
1369 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
1370 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
1371 Removed.
1372 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
1373 Moved from here...
1374 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
1375 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
1376 Moved from here...
1377 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
1378 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
1379 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
1380 All users updated.
1381 * loader/i386/multiboot_mbi2.c: New file.
1382
3506b90b
VS
13832010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
1384
1385 Resync with gnulib.
1386
1387 * Makefile.in (GNULIB_CFLAGS): New variable.
1388 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
1389 (grub_script_check_CFLAGS): New variable.
1390 * gnulib/alloca.h: Resync with gnulib.
1391 * gnulib/error.c: Likewise.
1392 * gnulib/error.h: Likewise.
1393 * gnulib/fnmatch.c: Likewise.
1394 * gnulib/fnmatch_loop.c: Likewise.
1395 * gnulib/getdelim.c: Likewise.
1396 * gnulib/getline.c: Likewise.
1397 * gnulib/getopt.c: Likewise.
1398 * gnulib/getopt1.c: Likewise.
1399 * gnulib/getopt_int.h: Likewise.
1400 * gnulib/gettext.h: Likewise.
1401 * gnulib/progname.c: Likewise.
1402 * gnulib/progname.h: Likewise.
1403
394a3120
GS
14042010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
1405
1406 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
1407 which is the case with --disabled-nls.
1408
1409 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
1410 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
1411 * util/misc.c: Likewise.
1412 * util/mkisofs/mkisofs.c: Likewise.
1413 * util/mkisofs/mkisofs.h: Likewise.
1414
969d1c78
VS
14152010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
1416
1417 Simplify Apple CC support.
1418
1419 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
1420 Add 0 byte at the end not to have a symbol with empty target.
1421 * mmap/i386/pc/mmap_helper.S: Likewise.
1422 * genmk.rb: Ignore errors 2030 and 2050.
1423 * kern/i386/pc/startup.S: Use LOCAL when possible.
1424
8d2977bb
BC
14252010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
1426
1427 Testcase and the fix for final semicolon on cmdline.
1428
1429 * tests/grub_script_final_semicolon.in: New testcase.
1430 * conf/tests.rmk: Rules for the new testcase.
1431 * script/parser.y: Grammar fix.
1432
a7bd6915
BC
14332010-03-26 BVK Chaitanya <bvk@localhost>
1434
1435 Blank lines testcase for GRUB script.
1436
1437 * tests/grub_script_blanklines.in: New testcase.
1438 * conf/tests.rmk: Rules for the new testcase.
1439
e4ff6628
VS
14402010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
1441
1442 Don't use __FILE__.
1443
1444 * genmk.rb: Add -DGRUB_FILE to all C targets.
1445 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
1446 * include/grub/list.h: Likewise.
1447 * include/grub/misc.h: Likewise.
1448 * include/grub/mm.h: Likewise.
1449 * include/grub/test.h: Likewise.
1450 * kern/mm.c: Likewise.
1451 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
1452
6a5cf6b6
VS
14532010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
1454
1455 Sunpc partitions support.
1456
1457 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
1458 (grub_fstest_SOURCES): Likewise.
1459 (pkglib_MODULES): Add part_sunpc.mod.
1460 (part_sunpc_mod_SOURCES): New variable.
1461 (part_sunpc_mod_CFLAGS): Likewise.
1462 (part_sunpc_mod_LDFLAGS): Likewise.
1463 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
1464 * partmap/sunpc.c: New file.
1465
746d9045
BC
14662010-03-26 BVK Chaitanya <bvk@localhost>
1467
1468 For loop support to GRUB script.
1469
1470 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
1471 (grub_script_create_cmdfor): New function prototype.
1472 (grub_script_execute_cmdfor): New function prototype.
1473 * script/execute.c (grub_script_execute_cmdfor): New function.
1474 * script/parser.y (command): New for command.
1475 (forcmd): New grammar rule.
1476 * script/script.c (grub_script_create_cmdfor): New function.
1477 * util/grub-script-check.c (grub_script_execute_cmdfor): New
1478 function.
1479 * tests/grub_script_for1.in: New testcase.
1480 * conf/tests.rmk: Rules for new testcase.
1481
18486b18
VS
14822010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
1483
1484 Nested partitions
1485
1486 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
1487 'partition' is NULL, grub_partition_get_start already does that.
1488 * commands/loadenv.c (check_blocklists): Likewise.
1489 (write_blocklists): Likewise.
1490 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
1491 (grub_fstest_SOURCES): Likewise.
1492 (pkglib_MODULES): Add part_bsd.mod.
1493 (part_bsd_mod_SOURCES): New variable.
1494 (part_bsd_mod_CFLAGS): Likewise.
1495 (part_bsd_mod_LDFLAGS): Likewise.
1496 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
1497 (grub_emu_SOURCES): Likewise.
1498 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
1499 * include/grub/bsdlabel.h: New file.
1500 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
1501 'get_name'.
1502 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
1503 (grub_partition_map_list): New variable.
1504 (grub_partition_map_register): Inline.
1505 (grub_partition_map_unregister): Likewise.
1506 (FOR_PARTITION_MAPS): New macro.
1507 (grub_partition_map_iterate): Removed.
1508 (grub_partition_get_start): Handle nested partitions.
1509 * include/grub/msdos_partition.h: Remove bsd-related entries.
1510 (grub_pc_partition): Remove.
1511 * kern/disk.c (grub_disk_close): Free partition data.
1512 (grub_disk_adjust_range): Handle nested partitions.
1513 * kern/partition.c (grub_partition_map_probe): New function.
1514 (grub_partition_probe): Parse name to number, handle subpartitions.
1515 (get_partmap): New function.
1516 (grub_partition_iterate): Handle subpartitions.
1517 (grub_partition_get_name): Likewise.
1518 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
1519 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
1520 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
1521 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
1522 Set 'number'.
1523 (acorn_partition_map_probe): Remove.
1524 (acorn_partition_map_get_name): Likewise.
1525 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
1526 Set 'number'.
1527 Set 'index' to 0 since there can be only one partition entry per sector.
1528 (amiga_partition_map_probe): Remove.
1529 (amiga_partition_map_get_name): Likewise.
1530 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
1531 Set 'number'.
1532 Set 'offset' and 'index' to real positions of partitions.
1533 (apple_partition_map_probe): Remove.
1534 (apple_partition_map_get_name): Likewise.
1535 * partmap/bsdlabel.c: New file.
1536 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
1537 Set 'number'.
1538 Allocate 'data' so it can be correctly freed.
1539 Set 'index' to offset inside sector.
1540 (gpt_partition_map_probe): Remove.
1541 (gpt_partition_map_get_name): Likewise.
1542 * partmap/msdos.c (grub_partition_parse): Remove.
1543 (pc_partition_map_iterate): Don't force raw access.
1544 Set 'number'.
1545 Make 'ext_offset' a local variable.
1546 (pc_partition_map_probe): Remove.
1547 (pc_partition_map_get_name): Remove.
1548 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
1549 Set 'number'.
1550 (sun_partition_map_probe): Remove.
1551 (sun_partition_map_get_name): Likewise.
1552 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
1553 (grub_pcpart_type): Likewise.
1554 * util/hostdisk.c (open_device): Handle new numbering scheme.
1555 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
1556 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
1557 * util/grub-probe.c (probe_partmap): Handle nested paritions.
1558 * util/grub-install.in: Insert all subpartition modules.
1559 * util/ieee1275/grub-install.in: Likewise.
1560
a3940f88
AG
15612010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
1562
1563 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
1564 grammar.
1565
21b99926 15662010-03-24 Colin Watson <cjwatson@ubuntu.com>
1567
1568 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
1569
bed1d352
CW
15702010-03-21 Colin Watson <cjwatson@ubuntu.com>
1571
1572 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
1573 match where 'make install' puts them.
1574 * util/i386/efi/grub-install.in: Likewise.
1575
c9f58427
CW
15762010-03-19 Colin Watson <cjwatson@ubuntu.com>
1577
1578 * .bzrignore: Add gentrigtables, grub-script-check,
1579 grub_script_check_init.c, grub_script_check_init.h, and
1580 trigtables.c.
1581
f84afb27
VS
15822010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
1583
1584 * kern/parser.c: Indented.
1585
ed0e3d30
VS
15862010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
1587
1588 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
1589
0ea81d98
VS
15902010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
1591
1592 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
1593 alpha_mask_size == 0 case.
1594
0cdc2a09
BC
15952010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
1596
1597 GRUB shell lexer and parser improvements.
1598
1599 * conf/any-emu.rmk: Build rule updates.
1600 * conf/common.rmk: Likewise.
1601 * conf/i386-coreboot.rmk: Likewise.
1602 * conf/i386-efi.rmk: Likewise.
1603 * conf/i386-ieee1275.rmk: Likewise.
1604 * conf/i386-pc.rmk: Likewise.
1605 * conf/powerpc-ieee1275.rmk: Likewise.
1606 * conf/x86_64-efi.rmk: Likewise.
1607
1608 * configure.ac: Configure check for flex.
1609
1610 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
1611 types.
1612 (grub_lexer_param): Struct member updates.
1613 (grub_parser_param): Likewise.
1614 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
1615 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
1616 (grub_script_lexer_init): Prototype update.
1617 (grub_script_lexer_record_start): Likewise.
1618 (grub_script_lexer_record_stop): Likewise.
1619 (grub_script_lexer_yywrap): New function prototype.
1620 (grub_script_lexer_fini): Likewise.
1621 (grub_script_execute_argument_to_string): Removed by...
1622 (grub_script_execute_argument_to_argv): ...better version.
1623
1624 * script/execute.c (ROUND_UPTO): New macro.
1625 (grub_script_execute_cmdline): Out of memory fixes.
1626 (grub_script_execute_menuentry): Likewise.
1627 (grub_script_execute_argument_to_string): Removed. Update all
1628 users by...
1629 (grub_script_execute_argument_to_argv): ...better version.
1630 * script/function.c (grub_script_function_create): Use
1631 grub_script_execute_argument_to_argv instead of
1632 grub_script_execute_argument_to_string.
1633
1634 * script/lexer.c (check_varstate): Removed.
1635 (check_textstate): Removed.
1636 (grub_script_lexer_record_start): Likewise.
1637 (grub_script_lexer_record_stop): Likewise.
1638 (recordchar): Replaced with...
1639 (grub_script_lexer_record): ...new function.
1640 (nextchar): Removed.
1641 (grub_script_lexer_init): Rewritten.
1642 (grub_script_yylex): Rewritten.
1643 (append_newline): New function.
1644 (grub_script_lexer_yywrap): New function.
1645 (grub_script_lexer_fini): New function.
1646 (grub_script_yyerror): Sets error flag.
1647
1648 * script/yylex.l: New file.
1649 (grub_lexer_yyfree): Wrapper for flex yyffre.
1650 (grub_lexer_yyalloc): Likewise.
1651 (grub_lexer_yyrealloc): Likewise.
1652 * script/parser.y: Refactored.
1653
1654 * script/script.c (grub_script_arg_add): Out of memory fixes.
1655 (grub_script_add_arglist): Likewise.
1656 (grub_script_create_cmdline): Likewise.
1657 (grub_script_create_cmdmenu): Likewise.
1658 (grub_script_add_cmd): Likewise.
1659 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
1660 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
1661 unnecessary code.
1662
1663 * tests/grub_script_echo1.in: New testcase.
1664 * tests/grub_script_vars1.in: New testcase.
1665 * tests/grub_script_echo_keywords.in: New testcase.
1666
1d63a066
VS
16672010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
1668
1669 Remove some redundancy in build system.
1670
1671 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
1672 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
1673 (TARGET_LDFLAGS): Add -nostdlib.
1674 (TARGET_IMG_LDFLAGS): Likewise.
1675 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
1676 anything since mmap isn't available.
1677 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
1678 Add util/time.c.
1679 (pkglib_MODULES): Remove reboot.mod.
1680 (reboot_mod_SOURCES): Removed.
1681 (reboot_mod_CFLAGS): Likewise.
1682 (reboot_mod_LDFLAGS): Likewise.
1683 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
1684 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
1685 (DEFSYMFILES): Add kernel_syms.lst.
1686 (kernel_img_HEADERS): Add common headers.
1687 (symlist.c): New target.
1688 (kernel_syms.lst): Likewise.
1689 (pkglib_MODULES): Add memdisk.mod.
1690 (memdisk_mod_SOURCES): New variable.
1691 (memdisk_mod_CFLAGS): Likewise.
1692 (memdisk_mod_LDFLAGS): Likewise.
1693 (pkglib_MODULES): Add reboot.mod.
1694 (reboot_mod_SOURCES): New variable.
1695 (reboot_mod_CFLAGS): Likewise.
1696 (reboot_mod_LDFLAGS): Likewise.
1697 (pkglib_MODULES): Add date.mod.
1698 (date_mod_SOURCES): New variable.
1699 (date_mod_CFLAGS): Likewise.
1700 (date_mod_LDFLAGS): Likewise.
1701 (pkglib_MODULES): Add datehook.mod.
1702 (datehook_mod_SOURCES): New variable.
1703 (datehook_mod_CFLAGS): Likewise.
1704 (datehook_mod_LDFLAGS): Likewise.
1705 (pkglib_MODULES): Add lsmmap.mod.
1706 (lsmmap_mod_SOURCES): New variable.
1707 (lsmmap_mod_CFLAGS): Likewise.
1708 (lsmmap_mod_LDFLAGS): Likewise.
1709 (pkglib_MODULES): Add boot.mod.
1710 (boot_mod_SOURCES): New variable.
1711 (boot_mod_CFLAGS): Likewise.
1712 (boot_mod_LDFLAGS): Likewise.
1713 * conf/i386-coreboot.rmk: Removed redundant parts.
1714 * conf/i386-ieee1275.rmk: Likewise.
1715 * conf/i386-pc.rmk: Likewise.
1716 * conf/mips-yeeloong.rmk: Likewise.
1717 * conf/mips.rmk: Likewise.
1718 * conf/powerpc-ieee1275.rmk: Likewise.
1719 * conf/sparc64-ieee1275.rmk: Likewise.
1720 * conf/x86_64-efi.rmk: Likewise.
1721 * conf/i386-coreboot.rmk: Moved qemu parts ..
1722 * conf/i386-qemu.rmk: ... here
1723 * conf/i386-efi.rmk: Moved common parts to...
1724 * conf/x86-efi.rmk: ... here.
1725 * conf/i386.rmk: Added modules common to all x86 variants.
1726 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
1727 * disk/memdisk.c: Remove grub/machine/kernel.h.
1728 * gensymlist.sh.in: Include symbol.h.
1729 * hook/datehook.c: Correct module name.
1730 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
1731 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
1732 * include/grub/i386/efi/serial.h: New file.
1733 * include/grub/x86_64/efi/serial.h: Likewise.
1734 * util/time.c: Likewise.
1735 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
1736
463ac55f
CK
17372010-03-14 Colin King <colin.king@ubuntu.com>
17382010-03-14 Colin Watson <cjwatson@ubuntu.com>
1739
1740 Shrink the pre-partition-table part of boot.img by eight bytes.
1741
1742 * boot/i386/pc/boot.S (ERR): New macro.
1743 (chs_mode): Use ERR.
1744 (geometry_error): Likewise.
1745 (hd_probe_error): Remove. This is only used once, so we wrwite
1746 it inline instead.
1747 (read_error): Instead of printing read_error_string, just set up
1748 %si and fall through to ...
1749 (error_message): ... this new function, also used by ERR.
1750
08e46ede
CW
17512010-03-14 Colin Watson <cjwatson@ubuntu.com>
1752
1753 Speed up consecutive hostdisk operations on the same device.
1754
1755 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
1756 (grub_util_biosdisk_open): Initialise disk->data.
1757 (struct linux_partition_cache): New structure.
1758 (linux_find_partition): Cache partition start positions; these are
1759 expensive to compute on every read and write.
1760 (open_device): Cache open file descriptor in disk->data, so that we
1761 don't have to reopen it and flush the buffer cache for consecutive
1762 operations on the same device.
1763 (grub_util_biosdisk_close): New function.
1764 (grub_util_biosdisk_dev): Set `close' member.
1765
1766 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
1767 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
1768 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
1769 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
1770 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
1771
4a6d2d06
VS
17722010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
1773
1774 Compile parts of grub-emu as modules.
1775
1776 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
1777 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
1778 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
1779 (all-local): Add $(GRUB_EMU).
1780 (install-local): Install $(GRUB_EMU).
1781 (uninstall): Uninstall $(GRUB_EMU).
1782 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
1783 * kern/dl.c: Likewise.
1784 * commands/sleep.c: Not include machine/time.h.
1785 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
1786 (COMMON_CFLAGS): Likewise.
1787 (sbin_UTILITIES): Remove grub-emu.
1788 (grub_emu_SOURCES): Removed.
1789 (kernel_img_RELOCATABLE): New variable.
1790 (pkglib_PROGRAMS): Add kernel.img.
1791 (kernel_img_SOURCES): New variable
1792 (kernel_img_CFLAGS): Likewise.
1793 (kernel_img_LDFLAGS): Likewise.
1794 (TARGET_NO_STRIP): Likewise.
1795 (TARGET_NO_DYNAMIC_MODULES): Likewise.
1796 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
1797 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
1798 (grub-emu): New target.
1799 (GRUB_EMU): New variable.
1800 * configure.ac: Whitelist -emu as possible x86_64 architecture.
1801 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
1802 * loader/xnu.c: Likewise.
1803 * include/grub/pci.h: Likewise.
1804 * genemuinit.sh: New file.
1805 * genemuinitheader.sh: Likewise.
1806 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
1807 Support TARGET_NO_DYNAMIC_MODULES.
1808 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
1809 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
1810 * disk/loopback.c: Likewise.
1811 * font/font_cmd.c: Likewise.
1812 * partmap/acorn.c: Likewise.
1813 * partmap/amiga.c: Likewise.
1814 * partmap/apple.c: Likewise.
1815 * partmap/gpt.c: Likewise.
1816 * partmap/msdos.c: Likewise.
1817 * partmap/sun.c: Likewise.
1818 * parttool/msdospart.c: Likewise.
1819 * term/gfxterm.c: Likewise.
1820 * video/bitmap.c: Likewise.
1821 * video/readers/jpeg.c: Likewise.
1822 * video/readers/png.c: Likewise.
1823 * video/readers/tga.c: Likewise.
1824 * video/video.c: Likewise.
1825 * util/grub-emu.c (read_command_list): Removed.
1826 (main): Don't call util_init_nls.
1827 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
1828 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
1829
91fdd2ed
VS
18302010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
1831
1832 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
1833 date.mod, datehook.mod.
1834 (datetime_mod_SOURCES): New variable.
1835 (datetime_mod_CFLAGS): Likewise.
1836 (datetime_mod_LDFLAGS): Likewise.
1837 (date_mod_SOURCES): Likewise.
1838 (date_mod_CFLAGS): Likewise.
1839 (date_mod_LDFLAGS): Likewise.
1840 (datehook_mod_SOURCES): Likewise.
1841 (datehook_mod_CFLAGS): Likewise.
1842 (datehook_mod_LDFLAGS): Likewise.
1843 * conf/sparc64-ieee1275.rmk: Likewise.
1844 * lib/ieee1275/datetime.c: New file.
1845
873ccae6
VS
18462010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
1847
1848 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
1849 (ieee1275_fb_mod_SOURCES): New variable.
1850 (ieee1275_fb_mod_CFLAGS): Likewise.
1851 (ieee1275_fb_mod_LDFLAGS): Likewise.
1852 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
1853 New proto.
1854 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
1855 (HEAP_MAX_ADDR): Likewise.
1856 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
1857 type.
1858 Correct stop condition.
1859 (grub_ieee1275_devices_iterate): New function.
1860 * video/ieee1275.c: New file.
1861
601c97c0
VS
18622010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
1863
1864 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
1865
1866 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
1867 as scratch.
1868 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
1869 SCRATCH_PAD_DISKBOOT as scratch.
1870 (bootit): Pass Openfirmware pointer in %o4.
1871 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
1872 of 0x200000.
1873 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
1874 with util/grub-mkrawimage.c.
1875 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
1876 * include/grub/aout.h (AOUT_MID_SUN): New definition.
1877 (grub_aout_get_type) [GRUB_UTIL]: Removed.
1878 (grub_aout_load) [GRUB_UTIL]: Likewise.
1879 * include/grub/kernel.h (grub_modules_get_end): New proto.
1880 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
1881 (SCRATCH_PAD_BOOT): New definition.
1882 (SCRATCH_PAD_DISKBOOT): Likewise.
1883 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
1884 * include/grub/sparc64/ieee1275/ieee1275.h
1885 (grub_ieee1275_original_stack): New variable
1886 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
1887 New definition
1888 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
1889 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
1890 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
1891 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
1892 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
1893 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
1894 (grub_platform_image_format_t): New type.
1895 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
1896 * kern/main.c (grub_modules_get_end)
1897 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
1898 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
1899 (codestart): Switch stacks.
1900 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
1901 variable.
1902 (grub_heap_init): Use grub_modules_get_end.
1903 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
1904 stack.
1905 * util/grub-mkrawimage.c (generate_image): Support sparc64.
1906 (main): Likewise.
1907 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
1908
d68b491e
TG
19092010-03-14 Thorsten Glaser <tg@mirbsd.org>
1910
1911 * util/grub-mkrescue.in: Base ISO UUID on UTC.
1912
4e02ed50
MK
19132010-03-08 Matt Kraai <kraai@ftbfs.org>
1914
1915 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
1916 bug #559005).
1917
1f15fc1e
VS
19182010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
1919
1920 * genmoddep.awk: Output all missing symbols and not only first.
1921
fce5d8ff
VS
19222010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
1923
1924 * NEWS: Put the date of 1.98 release.
1925
d1e8a02f
VS
19262010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
1927
1928 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
1929 ft2build.h.
1930
696fd607
VS
19312010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
1932
1933 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
1934 completition in the middle of string.
1935
33e2e6f3
VS
19362010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
1937
1938 * util/grub-mkrescue.in: Use mktemp with explicit template.
1939
b1f6d291
VS
19402010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
1941
1942 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
1943
2ac227c7
VS
19442010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
1945
1946 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
1947 right pointer.
1948
8f9a632b
VS
19492010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
1950
1951 Fix FreeBSD compilation.
1952
1953 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
1954 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
1955
60b03859
VS
19562010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
1957
1958 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
1959
48a5a769
VS
19602010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
1961
1962 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
1963
3ab4bd77
VS
19642010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
1965
1966 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
1967
d116e0d8
RM
19682010-03-04 Robert Millan <rmh.grub@aybabtu.com>
1969
1970 Support relative image path in theme file.
1971
1972 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
1973 (image_set_property): Handle theme_dir and relative path.
1974
c7ef54aa
VS
19752010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
1976
1977 * configure.ac: Alias amd64 to x86_64.
1978
fcee14ed
VS
19792010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
1980
1981 * NEWS: mention multiboot on EFI.
1982
d0780363
VS
19832010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
1984
1985 * kern/main.c (grub_load_modules): Handle errors from init functions of
1986 embeded modules.
1987
41168ea4
VS
19882010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
1989
1990 * normal/autofs.c (autoload_fs_module): Handle errors.
1991
b54d93ac
VS
19922010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
1993
1994 Disable linux.mod on qemu-mips since it's not functional and leads
1995 to compilation failure.
1996
1997 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
1998 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
1999 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
2000 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
2001 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
2002 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
2003 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
2004 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
2005 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
2006 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
2007 Reported by: BVK Chaitanya
2008
fc8345da
JU
20092010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
2010
2011 * INSTALL: Add gettext as a dependency and add qemu to a new section
2012 "Prerequisites for make-check".
2013
4760f979
CF
20142010-03-04 Christian Franke <franke@computer.org>
2015
2016 * util/grub-pe2elf.c: Add missing include "progname.h".
2017
f209b5b2
VS
20182010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
2019
2020 * normal/crypto.c (read_crypto_list): Fix a typo.
2021 Reported by: Seth Goldberg.
2022
b4b7be98
VS
20232010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
2024
2025 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
f209b5b2 2026 Reported by: Seth Goldberg.
b4b7be98 2027
c0ee0385
VS
20282010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
2029
2030 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
2031 ascii.bitmaps.
2032
a8efbf64
VS
20332010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
2034
2035 * genmk.rb: Remove terminal*.lst in make clean.
f209b5b2 2036 Reported by: Seth Goldberg.
a8efbf64 2037
08dcd913
VS
20382010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
2039
2040 * util/i386/efi/grub-install.in: Copy gettext files.
2041
c4d0b332
VS
20422010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
2043
2044 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
2045
c6f2fe52
VS
20462010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
2047
2048 Wait for user entry basing on presence of output rather than on errors.
2049
2050 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
2051 (grub_install_newline_hook): Likewise.
2052 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
2053 * normal/menu.c (show_menu): Check line_counter to determine presence
2054 of output.
2055 * normal/term.c (grub_normal_line_counter): New variable.
2056 (grub_normal_get_line_counter): New function.
2057 (grub_install_newline_hook): Likewise.
2058
5382b1e4
VS
20592010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
2060
2061 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
2062
5519963b
VS
20632010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
2064
2065 * configure.ac: Update version to 1.98.
2066
72b28631
VS
20672010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
2068
2069 * util/grub.d/10_linux.in (linux_entry): Don't default to
2070 gfxpayload=keep if Linux doesn't support video handover.
2071
c140a180
VS
20722010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
2073
2074 Don't compile video modules on yeeloong since video subsystem is part
2075 of kernel.
2076
2077 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
2078 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
2079 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
2080 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
2081 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
2082 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
2083 * include/grub/bitmap_scale.h: Likewise.
2084 * include/grub/bufio.h: Likewise.
2085 * include/grub/font.h: Likewise.
2086 * include/grub/gfxterm.h: Likewise.
2087 * include/grub/video.h: Likewise.
2088 * include/grub/vbe.h: Don't include video_fb.h.
2089 * video/i386/pc/vbe.c: Include video_fb.h.
2090 * commands/i386/pc/vbetest.c: Include video.h.
2091
a0ca21c2
CW
20922010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
2093
2094 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
2095 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
2096 default entry if GRUB_SAVEDEFAULT=true. This allows using
2097 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
2098 saving a new default on every boot.
2099
4a8a763c
VS
21002010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
2101
2102 * normal/crypto.c (read_crypto_list): Fix a memory leak.
2103 * normal/term.c (read_terminal_list): Likewise.
2104 * normal/main.c (grub_normal_init_page): Likewise.
2105 (grub_normal_read_line_real): Likewise.
2106
607ffde2
VS
21072010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
2108
2109 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
2110 memory leak.
2111 Reported by: Seth Goldberg.
2112
2b8fa975
CW
21132010-02-24 Joey Korkames <joey+lists@kidfixit.com>
2114
2115 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
2116 duplicate declaration of `start'.
2117
618307dd
VS
21182010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
2119
2120 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
2121 filename.
2122 Reported by: Georgy Buranov
2123
7dd05b96 21242010-02-20 Carles Pina i Estany <carles@pina.cat>
2125
2126 * util/grub-mkrawimage.c (usage): Change string formatting to
2127 improve gettext.
2128
d1484a42
MRA
21292010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
2130
2131 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
2132 backspace keys.
2133
42b1d186
VS
21342010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
2135
2136 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
2137 Reported by: Michael Suchanek.
2138
21392010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
0a39de87
ST
2140
2141 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
2142 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
2143
d9f31a41
VS
21442010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
2145
2146 Remove any reference to non-free fonts.
2147
2148 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
2149 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
2150 uses non-free components.
2151 * font/font.c (grub_font_get_name): Remove example name.
2152 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
2153 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
2154 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
2155 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
2156
2793c71e
GB
21572010-02-16 Georgy Buranov <gburanov@gmail.com>
2158
2159 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
2160
402e3779
VS
21612010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
2162
2163 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
2164 Double divisor.
2165 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
2166 features.
2167 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
2168
0dd1e0dd
VS
21692010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
2170
2171 * gensymlist.sh.in: Use TARGET_CC instead of CC.
2172
6fa7cfce
ST
21732010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
2174
2175 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
2176 * docs/grub.texi (Command-line and menu entry commands): Document play
2177 command.
2178
37c8483b
ST
21792010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
2180
2181 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
2182 parse arguments as inline tempo and notes. Move code for playing notes
2183 to...
2184 (play): ... new function.
2185
14da0fb7
ST
21862010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
2187
2188 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
2189 grub_uint16_t instead of short.
2190 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
2191 disk from little endian to cpu endianness.
2192
04459e70
ST
21932010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
2194
2195 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
2196 GRUB_TICKS_PER_SECOND instead of 120.
2197
a0876943
VS
21982010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
2199
2200 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
2201 escape sequence after \e.
2202
e29f95dc
VS
22032010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
2204
2205 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
2206 non-ASCII characters.
2207
d27859b2
VS
22082010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
2209
2210 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
2211 set root in single quotes to prevent \, from being unescaped.
2212
bc028f2f
VS
22132010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
2214
2215 Prevent unknown commands from stopping menuentry execution.
2216
2217 * script/execute.c (grub_script_execute_cmdline): Print error after
2218 unknown command.
2219
095f5f82
VS
22202010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
2221
2222 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
2223 Reported by: Pavel Pisa.
2224
8c717950
VS
22252010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
2226
2227 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
2228
904935c3
VS
22292010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
2230
2231 Merge grub_ieee1275_map_physical into grub_map and rename to
2232 grub_ieee1275_map
2233
2234 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
2235 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
2236 Remove.
2237 * kern/ieee1275/openfw.c (grub_map): Rename to ...
2238 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
2239 necessary.
2240 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
2241
5b59a4e3
VS
22422010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
2243
2244 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
2245 opening and not after.
2246
69e137e8
VS
22472010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
2248
2249 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
2250 constants.
2251
2c0fcc36
VS
22522010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
2253
2254 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
2255 (alloc_phys): Use ALIGN_UP instead of align_addr.
2256
8c6052ce
VS
22572010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
2258
2259 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
2260
17cec782
VS
22612010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
2262
2263 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
2264
e0128bbd
VS
22652010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
2266
2267 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
2268 verbose dprintf.
2269
ca62070b
VS
22702010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
2271
2272 Fix over-4GiB seek on sparc64.
2273
2274 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
2275 Replace pos_i and pos_lo with pos. All users updated.
2276 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
2277 New constant.
2278 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
2279 Likewise.
2280 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
2281 and pos_lo.
2282
bdca2607
VS
22832010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
2284
2285 * util/grub-mkrawimage.c (main): Call set_program_name.
2286
da278c4d
VS
22872010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
2288
2289 Properly align 64-bit targets.
2290
2291 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
2292 (generate_image): Use ALIGN_ADDR.
2293
b274d734
VS
22942010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
2295
2296 Properly create cross-endian images.
2297
2298 * include/grub/types.h (grub_host_to_target_addr): New macro
2299 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
2300
82da2062
VS
23012010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
2302
2303 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
2304
7cae4377
VS
23052010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
2306
2307 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
2308
2309 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
2310 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
2311 (grub_linux_boot): Divide by 64K when on VESA.
2312
65a533e7
VS
23132010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
2314
2315 Support GRUB_GFXPAYLOAD_LINUX.
2316
2317 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
2318 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
2319
dd01d397
VS
23202010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
2321
2322 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
2323 to show messages instead of discarding them.
2324 Process errors after executing command and not before. Keep old method
2325 too as precaution.
2326
660960d6
VS
23272010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
2328
2329 * configure.ac: Check for ft2build.h.
2330
62509f04
VS
23312010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
2332
2333 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
2334
473df63d
VS
23352010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
2336
2337 * genkernsyms.sh.in: Use TARGET_CC.
2338
c98d2a13
CW
23392010-02-07 Colin Watson <cjwatson@ubuntu.com>
2340
2341 * NEWS: Update.
2342
6e14234c
VS
23432010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
2344
2345 * include/grub/multiboot2.h: Remove leftover file.
e28e32ae
VS
2346 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
2347 * include/grub/partition.h [GRUB_UTIL]: Likewise.
6e14234c 2348
b255e9cf
YB
23492010-02-07 Yves Blusseau <blusseau@zetam.org>
2350
6e14234c 2351 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
b255e9cf 2352
98e6959d
VS
23532010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
2354
2355 Fix warnings in grub-emu when compiling with maximum warning options.
2356
2357 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
2358 (grub_arch_modules_addr): Return 0 and not NULL.
2359 * util/misc.c (ENABLE_RELOCATABLE): New definition.
74e4934e 2360 (xstrdup): Use newstr instead of dup.
f88d801b
VS
2361 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
2362 of disk to dsk to avoid shadowing.
74e4934e
VS
2363 (find_free_slot): Fix prototype.
2364 * util/getroot.c (grub_util_is_dmraid): Make static.
2365 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
2366 Add missing prototype.
2367 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
98e6959d 2368
74e31b5c
VS
23692010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
2370
2371 * loader/i386/linux.c (grub_linux_setup_video): Handle error
2372 appropriately.
2373
6b2ad14b
VS
23742010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
2375
2376 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
2377 code out.
2378
8f891adc
VS
23792010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
2380
2381 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
2382 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
2383 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
2384 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
2385 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
2386 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
2387
74b45184
VS
23882010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
2389
2390 * include/grub/err.h (grub_err_printf): Don't export.
2391
a4bced77
VS
23922010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
2393
2394 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
2395
007d0695
VS
23962010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
2397
2398 * include/grub/i18n.h (grub_gettext_dummy): Removed.
2399 * kern/misc.c (grub_gettext_dummy): Make static.
2400
b6c0d9c2
VS
24012010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
2402
2403 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
2404 by non-valid ones.
2405 * kern/term.c (grub_putchar): Likewise.
2406
f51a90d0
VS
24072010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
2408
2409 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
2410 buggy hook call and memory leak.
2411
6846cec5
VS
24122010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
2413
2414 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
2415
468d69fe
VS
24162010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
2417
2418 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
2419
51906b8c
VS
24202010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
2421
2422 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
2423 modevar.
2424 Return grub_errno on allocation error.
2425
09706ce5
VS
24262010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
2427
2428 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
2429
911df80c
YB
24302010-02-06 Yves Blusseau <blusseau@zetam.org>
2431
2432 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
2433 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
2434
3746a6bc
VS
24352010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
2436
2437 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
2438 non-pxe disk.
2439 (grub_pxefs_open): Likewise.
2440
09706ce5
VS
24412010-02-06 Robert Millan <rmh.grub@aybabtu.com>
2442
2443 * util/grub.d/10_hurd.in: Add --class information to menuentries.
2444 * util/grub.d/10_kfreebsd.in: Likewise.
2445 * util/grub.d/10_linux.in: Likewise.
2446
7cc192d9
VS
24472010-02-06 Colin D Bennett <colin@gibibit.com>
2448
2449 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
2450 (gfxmenu_mod_SOURCES): New variable.
2451 (gfxmenu_mod_CFLAGS): Likewise.
2452 (gfxmenu_mod_LDFLAGS): Likewise.
2453 * include/grub/term.h (grub_term_set_current_output): Declare
2454 argument as const.
2455 * docs/gfxmenu-theme-example.txt: New file.
2456 * gfxmenu/gfxmenu.c: Likewise.
2457 * gfxmenu/gui_box.c: Likewise.
2458 * gfxmenu/gui_canvas.c: Likewise.
2459 * gfxmenu/gui_circular_progress.c: Likewise.
2460 * gfxmenu/gui_image.c: Likewise.
2461 * gfxmenu/gui_label.c: Likewise.
2462 * gfxmenu/gui_list.c: Likewise.
2463 * gfxmenu/gui_progress_bar.c: Likewise.
2464 * gfxmenu/gui_string_util.c: Likewise.
2465 * gfxmenu/gui_util.c: Likewise.
2466 * gfxmenu/icon_manager.c: Likewise.
2467 * gfxmenu/model.c: Likewise.
2468 * gfxmenu/named_colors.c: Likewise.
2469 * gfxmenu/theme_loader.c: Likewise.
2470 * gfxmenu/view.c: Likewise.
2471 * gfxmenu/widget-box.c: Likewise.
2472 * include/grub/gfxmenu_model.h: Likewise.
2473 * include/grub/gfxmenu_view.h: Likewise.
2474 * include/grub/gfxwidgets.h: Likewise.
2475 * include/grub/gui.h: Likewise.
2476 * include/grub/gui_string_util.h: Likewise.
2477 * include/grub/icon_manager.h: Likewise.
2478
24792010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
2480
2481 Agglomerate scrolling in gfxterm.
2482
2483 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
2484 (grub_virtual_screen_setup): Initialise 'total_screen'.
2485 (write_char): Split to ...
2486 (paint_char): ... this ...
2487 (write_char): ... and this.
2488 (paint_char): Handle delayed scrolling.
2489 (draw_cursor): Likewise.
2490 (scroll_up): Split to ...
2491 (real_scroll): ... this ...
2492 (scroll_up): ... and this.
2493 (real_scroll): Handle multi-line scroll and draw below-the-bottom
2494 characters.
2495 (grub_gfxterm_refresh): Call real_scroll.
2496
24972010-02-06 Colin D Bennett <colin@gibibit.com>
2498
2499 * include/grub/misc.h (grub_iscntrl): New inline function.
2500 (grub_isalnum): Likewise.
2501 (grub_strtol): Likewise.
2502
25032010-02-06 Colin D Bennett <colin@gibibit.com>
2504
2505 * normal/menu_text.c (get_entry_number): Move from here ...
2506 * normal/menu.c (get_entry_number): ... moved here.
2507 * include/grub/menu.h (grub_menu_get_default_entry_index):
2508 New prototype.
2509 * normal/menu.c (grub_menu_get_default_entry_index): New function.
2510 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
2511 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
2512 (grub_menu_viewer_should_return): Likewise.
2513 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
2514 * normal/menu_text.c (run_menu): Enable menu switching.
2515 * normal/menu_viewer.c (should_return): New variable.
2516 (menu_viewer_changed): Likewise.
2517 (grub_menu_viewer_show_menu): Handle menu viewer changes.
2518 (grub_menu_viewer_should_return): New function.
2519 (menuviewer_write_hook): Likewise.
2520 (grub_menu_viewer_init): Likewise.
2521
25222010-02-06 Colin D Bennet <colin@gibibit.com>
25232010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
2524
2525 Support for gfxterm in a window.
2526
2527 * include/grub/gfxterm.h: New file.
2528 * include/grub/video.h (struct grub_video_rect): New declaration.
2529 (grub_video_rect_t): Likewise.
2530 * term/gfxterm.c (struct grub_gfxterm_window): New type.
2531 (refcount): New variable.
2532 (render_target): Likewise.
2533 (window): Likewise.
2534 (repaint_callback): Likewise.
2535 (grub_virtual_screen_setup): Use 'render_target'.
2536 (init_window): New function.
2537 (grub_gfxterm_init_window): Likewise.
2538 (grub_gfxterm_init): Check reference counter.
2539 Use init_window.
2540 (destroy_window): New function.
2541 (grub_gfxterm_destroy_window): Likewise.
2542 (grub_gfxterm_fini): Check reference counter.
2543 Use destroy_window.
2544 (redraw_screen_rect): Restore viewport.
2545 Use 'render_target' and 'window'.
2546 Call 'repaint_callback'.
2547 (write_char): Use 'render_target'.
2548 (draw_cursor): Likewise.
2549 (scroll_up): Restore viewport.
2550 Use 'render_target' and 'window'.
2551 Call 'repaint_callback'.
2552 (grub_gfxterm_cls): Likewise.
2553 (grub_gfxterm_refresh): Use 'window'.
2554 (grub_gfxterm_set_repaint_callback): New function.
2555 (grub_gfxterm_background_image_cmd): Use 'window'.
2556 (grub_gfxterm_get_term): New function.
2557 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
2558
25592010-02-06 Colin D Bennett <colin@gibibit.com>
2560
2561 Bitmap scaling support.
2562
2563 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
2564 (bitmap_scale_mod_SOURCES): New variable.
2565 (bitmap_scale_mod_CFLAGS): Likewise.
2566 (bitmap_scale_mod_LDFLAGS): Likewise.
2567 * include/grub/bitmap_scale.h: New file.
2568 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
2569 (background_image_cmd_options): New variable.
2570 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
2571 (cmd): Rename and change type to ...
2572 (background_image_cmd_handle): ... this. All users updated.
2573 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
2574 * video/bitmap_scale.c: New file.
2575
25762010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
2577
2578 SDL support.
2579
2580 * Makefile.in (LIBSDL): New variable.
2581 (enable_grub_emu_sdl): Likewise.
2582 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
2583 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
2584 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
2585 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
2586 * util/sdl.c: New file.
2587
25882010-02-06 Colin D Bennett <colin@gibibit.com>
25892010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
2590
2591 Double buffering support.
2592
2593 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
2594 * include/grub/video.h: Update comment.
2595 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
2596 New type.
2597 (grub_video_fb_doublebuf_blit_init): New prototype.
2598 * term/gfxterm.c (scroll_up): Support double buffering.
2599 (grub_gfxterm_refresh): Likewise.
2600 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
2601 (grub_video_fb_doublebuf_blit_init): Likewise.
2602 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
2603 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
2604 'displayed_page', 'render_page' and 'update_screen'.
2605 (grub_video_vbe_fini): Free offscreen buffer.
2606 (doublebuf_pageflipping_commit): New function.
2607 (doublebuf_pageflipping_update_screen): Likewise.
2608 (doublebuf_pageflipping_init): Likewise.
2609 (double_buffering_init): Likewise.
2610 (grub_video_vbe_setup): Enable doublebuffering.
2611 (grub_video_vbe_swap_buffers): Implement.
2612 (grub_video_vbe_set_active_render_target): Handle double buffering.
2613 (grub_video_vbe_get_active_render_target): Likewise.
2614 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
2615 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
2616 (grub_video_vbe_enable_double_buffering): Likewise.
2617 (grub_video_vbe_swap_buffers): Use update_screen.
2618 (grub_video_set_mode): Use double buffering.
2619
26202010-02-06 Robert Millan <rmh.grub@aybabtu.com>
2621
2622 * maintainance/gentrigtables.py: Remove.
2623 * lib/trig.c: Likewise.
2624
2625 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
2626
2627 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
2628 `trigtables.c'.
2629 (trigtables.c): New rule.
2630 (gentrigtables): Likewise.
2631 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
2632
26332010-02-06 Robert Millan <rmh.grub@aybabtu.com>
2634
2635 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
2636 integer constants.
2637
26382010-02-06 Colin D Bennet <colin@gibibit.com>
2639
2640 Trigonometry support.
2641
2642 * include/grub/trig.h: New file.
2643 * lib/trig.c: Likewise.
2644 * maintainance/gentrigtables.py: Likewise.
2645 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
2646 (trig_mod_SOURCES): New variable.
2647 (trig_mod_CFLAGS): Likewise.
2648 (trig_mod_LDFLAGS): Likewise.
2649
5562834e
VS
26502010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
2651
2652 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
2653 disk devices.
2654
4f8528fc
VS
26552010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
2656
2657 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
2658 error.
2659
2b4068e9
VS
26602010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
2661
2662 * util/hostdisk.c (open_device): Don't use partition device when reading
2663 before the partition.
2664 (grub_util_biosdisk_read): Don't read from partition and before the
2665 partition in single operation.
2666 (grub_util_biosdisk_write): Don't write to partition and before the
2667 partition in single operation.
2668
399f6e4d
TL
26692010-02-03 Torsten Landschoff <torsten@debian.org>
2670
2671 * kern/disk.c (grub_disk_read): Fix offset computation when reading
2672 last sectors.
2673
996649b0
VS
26742010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
2675
2676 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
2677 CDROM reads.
2678 (grub_biosdisk_write): Refuse to write to CDROM.
2679
3b205d4d
VS
26802010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
2681
2682 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
2683
61e89d9d
VS
26842010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
2685
2686 * font/font.c (find_glyph): Check that bmp_idx is available before
2687 using it.
2688 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
2689 with (font == NULL).
2690
bf7fcba2
CS
26912010-01-28 Christian Schmitt <chris@ilovelinux.de>
2692
2693 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
2694
f45d2663
BC
26952010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
2696
2697 * include/grub/script_sh.h (sourcecode): Add const qualifier.
2698 * util/grub-script-check.c (getline): Fix empty lines case.
2699
ec1444e6
RM
27002010-01-28 Robert Millan <rmh.grub@aybabtu.com>
2701
2702 * Makefile.in (check): Exit with fail status when one of the tests
2703 fails.
2704 * tests/example_functional_test.c (example_test): Fix reversed assert.
2705 * tests/example_unit_test.c (example_test): Likewise.
2706
2e1cb9bb
CW
27072010-01-28 Colin Watson <cjwatson@ubuntu.com>
2708
2709 * util/grub.d/10_linux.in: This script does not use any of the
2710 contents of gettext.sh, only the external command `gettext', so stop
2711 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
2712 the same prefix as GRUB.)
2713 * util/grub.d/10_kfreebsd.in: Likewise.
2714
63533ab0
VS
27152010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
2716
2717 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
2718 of the line.
2719
989e1f93
VS
27202010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
2721
2722 * kern/disk.c (grub_disk_read): Fix offset computation when reading
2723 last sectors.
2724
e709ebe2
VS
27252010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
2726
2727 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
2728 having a 4KiB and not 32KiB buffer size.
2729
27dea7ed
RM
27302010-01-27 Robert Millan <rmh.grub@aybabtu.com>
2731
2732 * util/hostfs.c: Include `<errno.h>'.
2733 (grub_hostfs_read): Handle errors from fseeko() and fread().
2734
67667b9c
RM
27352010-01-27 Robert Millan <rmh.grub@aybabtu.com>
2736
2737 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
2738 loop when using read hooks on files whose size isn't sector-aligned.
2739
c294d9d8
RM
27402010-01-27 Robert Millan <rmh.grub@aybabtu.com>
2741
2742 Remove unused parameter.
2743
2744 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
2745 (grub_iso9660_open): Remove initialization of `data->length'.
2746
af75a9f1
RM
27472010-01-27 Robert Millan <rmh.grub@aybabtu.com>
2748
2749 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
2750 memleak conditions.
2751
254e2ce5 27522010-01-27 Carles Pina i Estany <carles@pina.cat>
2753
2754 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
2755 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
2756
b510928c 27572010-01-26 Carles Pina i Estany <carles@pina.cat>
2758
2759 * util/bin2h.c (usage): Fix warning (space after backslash).
2760
aa2f9dd2 27612010-01-26 Carles Pina i Estany <carles@pina.cat>
de0b7a4e 2762
2763 * font/font.c: Include `grub/fontformat.h.
2764 Remove font file format constants.
2765 (grub_font_load): Use the new macros.
2766 * include/grub/fontformat.h: New file.
2767 * util/grub-mkfont.c: Include `grub/fontformat.c'.
2768 (write_font_pf2): Use the new macros.
2769
94e7e712
RM
27702010-01-26 Robert Millan <rmh.grub@aybabtu.com>
2771
2772 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
2773 does.
2774
3973a59a
RM
27752010-01-26 Robert Millan <rmh.grub@aybabtu.com>
2776
2777 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
2778
2779 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
2780 (_start): Macroify `0x7F'.
2781
2782 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
2783 (make_install_device): Use "(pxe)" as fallback prefix when booting
2784 via PXE.
2785
42e0cba3
GS
27862010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
2787
2788 * configure.ac: Reset LIBS after check for libgcc symbols.
2789
847effd8
CW
27902010-01-25 Colin Watson <cjwatson@ubuntu.com>
2791
2792 * util/hostdisk.c (open_device): Add trailing newline to debug
2793 message.
2794
ea4a7e35
GS
27952010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
2796
2797 * configure.ac: Check for `limits.h'.
2798 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
2799
67951a53
RM
28002010-01-24 Robert Millan <rmh.grub@aybabtu.com>
2801
2802 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
2803 capitalize error strings.
2804
c273d4ce
ST
28052010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
2806
2807 * util/grub.d/10_hurd.in: Add a recovery mode.
2808
69be5b74
VS
28092010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
2810
2811 * configure.ac: Check for libgcc symbols with -nostdlib.
2812
fc9e5810
BC
28132010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
2814
2815 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
2816
4b358c0a
VS
28172010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
2818
2819 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
2820 stack since heap may be unavailable at that point.
2821 (grub_ofconsole_gotoxy): Likewise.
2822
454fcd1c
VS
28232010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
2824
2825 * configure.ac: Check for _restgpr_14_x.
2826 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
2827 and _savegpr_* prototypes.
2828
566863ca
RM
28292010-01-22 Robert Millan <rmh.grub@aybabtu.com>
2830
2831 Use generic grub_reboot() for i386-efi.
2832
2833 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
2834 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
2835 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
2836
bf86e59a
VS
28372010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
2838
2839 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
2840 presence of "prefix" variable as it breaks when normal.mod is
2841 embedded.
2842
d645e0f8
VS
28432010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
2844
2845 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
2846 stack since heap is unavailable at that point.
2847
f9ab2e25
VS
28482010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
2849
2850 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
2851 (grub_freebsd_bootinfo): Rewritten.
2852 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
2853
01fc7054
VS
28542010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
2855
2856 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
2857
caab4fd6
RM
28582010-01-21 Robert Millan <rmh.grub@aybabtu.com>
2859
2860 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
2861 domain now.
2862
67eb1427
FZ
28632010-01-20 Felix Zielcke <fzielcke@z-51.de>
2864
2865 * util/misc.c (make_system_path_relative_to_its_root): Change the work
2866 around for handling "/" to the correct fix. Fix a memory leak. Use
2867 xstrdup instead of strdup.
2868
a9ed4ff3
VS
28692010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
2870
2871 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
2872
28732010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
bed35bda
VS
2874
2875 Optimise glyph lookup by Basic Multilingual Plane lookup array.
2876
2877 * font/font.c (struct grub_font): New member 'bmp_idx'.
2878 (font_init): Initialise 'bmp_idx'.
2879 (load_font_index): Fill 'bmp_idx'.
2880 (find_glyph): Make inline. Use bmp_idx for BMP characters.
2881
48209f4f
VS
28822010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
2883
2884 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
2885 unnecessary calls.
2886
9f0a4bb7
VS
28872010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
2888
2889 Move context handling out of the kernel.
2890
2891 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
2892 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
2893 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
2894 * conf/i386-efi.rmk: Likewise.
2895 * conf/i386-ieee1275.rmk: Likewise.
2896 * conf/i386-pc.rmk: Likewise.
2897 * conf/powerpc-ieee1275.rmk: Likewise.
2898 * conf/sparc64-ieee1275.rmk: Likewise.
2899 * conf/x86_64-efi.rmk: Likewise.
2900 * include/grub/env.h: Include grub/menu.h.
2901 (grub_env_var_type): Removed.
2902 (grub_env_var): Replaced field 'type' with 'global'.
2903 (grub_env_find): New prototype.
2904 (grub_env_context_open): Remove EXPORT_FUNC.
2905 (grub_env_context_close): Likewise.
2906 (grub_env_export): Likewise.
2907 (grub_env_set_data_slot): Removed.
2908 (grub_env_get_data_slot): Likewise.
2909 (grub_env_unset_data_slot): Likewise.
2910 (grub_env_unset_menu): New prototype.
2911 (grub_env_set_menu): Likewise.
2912 (grub_env_get_menu): Likewise.
2913 * include/grub/env_private.h: New file.
2914 * include/grub/normal.h (grub_context_init): New prototype.
2915 (grub_context_fini): Likewise.
2916 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
2917 * normal/context.c (grub_cmd_export): ... to here.
2918 * kern/env.c: Include env_private.h.
2919 (HASHSZ): Moved to include/grub/env_private.h.
2920 (grub_env_context): Likewise.
2921 (grub_env_sorted_var): Likewise.
2922 (current_context): Renamed from this ...
2923 (grub_current_context): ...to this. 'static' removed. All users updated.
2924 (grub_env_find): Removed 'static'.
2925 (grub_env_context_open): Moved to normal/context.c.
2926 (grub_env_context_close): Likewise.
2927 (grub_env_export): Likewise.
2928 (mangle_data_slot_name): Removed.
2929 (grub_env_set_data_slot): Likewise.
2930 (grub_env_get_data_slot): Likewise.
2931 (grub_env_unset_data_slot): Likewise.
2932 * kern/main.c (grub_set_root_dev): Don't export root.
2933 It will be done later.
2934 (grub_main): Don't export prefix.
2935 It will be done later.
2936 * normal/context.c: New file.
2937 * normal/main.c (free_menu): Use grub_env_unset_menu.
2938 (grub_normal_add_menu_entry): Use grub_env_get_menu.
2939 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
2940 (GRUB_MOD_INIT(normal)): Call grub_context_init.
2941 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
2942
8dd35b8c
VS
29432010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
2944
2945 setpci support.
2946
2947 * commands/setpci.c: New file.
2948 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
2949 (setpci_mod_SOURCES): New variable.
2950 (setpci_mod_CFLAGS): Likewise.
2951 (setpci_mod_LDFLAGS): Likewise.
2952
449193d5
VS
29532010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
2954
2955 Byte-addressable PCI configuration space.
2956
2957 * bus/pci.c (grub_pci_make_address): Use byte address instead of
2958 dword address.
2959 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
2960 GRUB_PCI_REG_CACHELINE.
2961 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
2962 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
2963 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
2964 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
2965 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
2966 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
2967 grub_pci_make_address.
2968 (lock_rom_area): Likewise.
2969 * commands/lspci.c (grub_lspci_iter): Use macroses
2970 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
2971 of grub_pci_make_address.
2972 * disk/ata.c (grub_ata_pciinit): Likewise.
2973 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
2974 (GRUB_PCI_REG_VENDOR): Likewise.
2975 (GRUB_PCI_REG_DEVICE): Likewise.
2976 (GRUB_PCI_REG_COMMAND): Likewise.
2977 (GRUB_PCI_REG_STATUS): Likewise.
2978 (GRUB_PCI_REG_REVISION): Likewise.
2979 (GRUB_PCI_REG_CLASS): Likewise.
2980 (GRUB_PCI_REG_CACHELINE): Likewise.
2981 (GRUB_PCI_REG_LAT_TIMER): Likewise.
2982 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
2983 (GRUB_PCI_REG_BIST): Likewise.
2984 (GRUB_PCI_REG_ADDRESSES): Likewise.
2985 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
2986 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
2987 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
2988 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
2989 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
2990 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
2991 (GRUB_PCI_REG_CIS_POINTER): Likewise.
2992 (GRUB_PCI_REG_SUBVENDOR): Likewise.
2993 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
2994 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
2995 (GRUB_PCI_REG_CAP_POINTER): Likewise.
2996 (GRUB_PCI_REG_IRQ_LINE): Likewise.
2997 (GRUB_PCI_REG_IRQ_PIN): Likewise.
2998 (GRUB_PCI_REG_MIN_GNT): Likewise.
2999 (GRUB_PCI_REG_MAX_LAT): Likewise.
3000 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
3001 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
3002 * video/efi_uga.c (find_framebuf): Likewise.
fdb1b2ea 3003 * video/sm712.c (grub_video_sm712_setup): Likewise.
449193d5
VS
3004 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
3005 space.
3006
96d73208
RM
30072010-01-20 Robert Millan <rmh.grub@aybabtu.com>
3008
3009 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
3010 can be reliably determined to be supported.
3011
d4484482
RM
30122010-01-20 Robert Millan <rmh.grub@aybabtu.com>
3013
3014 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
3015 that VESA is supported.
3016 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
3017 supported.
3018
00308ecf
VS
30192010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3020
3021 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
3022
f66924a4
RM
30232010-01-20 Robert Millan <rmh.grub@aybabtu.com>
3024
3025 * util/misc.c (make_system_path_relative_to_its_root): Work around
3026 special-casing of "/", as previous incarnation of this routine did.
3027
cbca0ada
VS
30282010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3029
3030 Fix any-emu compilation.
3031
3032 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
3033 * grub_bin2h_SOURCES: New variable.
3034
34a66d99
RM
30352010-01-20 Robert Millan <rmh.grub@aybabtu.com>
3036
3037 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
3038
94fabf58
RM
30392010-01-20 Robert Millan <rmh.grub@aybabtu.com>
3040
3041 * util/grub.d/00_header.in: Fix handling of locale_dir.
3042
02cf98ca
VS
30432010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3044
3045 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
3046 as possible unifont location (Gentoo).
3047 Reported by: Alexander Brüning
3048
327dbcd7
VS
30492010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3050
3051 Don't try to generate lists for kernel.img.
3052
3053 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
3054 (pkglib_MODULES): Remove kernel.img.
3055 (kernel_img_EXPORTS): Removed.
3056 (kernel_img_RELOCATABLE): New variable.
3057 * conf/x86_64-efi.rmk: Likewise.
3058 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
3059
ca467290
VS
30602010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3061
3062 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
3063 grub_xasprintf or grub_snprintf.
3064 (grub_vsprintf): Likewise.
3065 (grub_snprintf): New proto.
3066 (grub_vsnprintf): Likewise.
3067 (grub_xasprintf): Likewise.
3068 (grub_xvasprintf): Likewise.
3069 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
3070 (grub_sprintf): Removed.
3071 (grub_vsnprintf): New function.
3072 (grub_snprintf): Likewise.
3073 (grub_xvasprintf): Likewise.
3074 (grub_xasprintf): Likewise.
3075 (grub_vsprintf): Renamed to ...
3076 (grub_vsnprintf_real): ...this. New argument max_len.
3077
aca655fd
BC
30782010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
3079
3080 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
3081 fix grub-script-check warning.
3082
7ee92c32
VS
30832010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3084
3085 * include/grub/font.h (grub_font_load): Fix prototype.
3086
f80927ca
VS
30872010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3088
3089 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
3090
119c50ea
VS
30912010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3092
3093 * include/grub/x86_64/at_keyboard.h: New file.
3094
47d5f3c1
VS
30952010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3096
3097 * loader/mips/linux.c: Include missing grub/i18n.h.
3098
55ff5266
RM
30992009-12-20 Robert Millan <rmh.grub@aybabtu.com>
3100
3101 * normal/menu.c (notify_execution_failure): Clarify error message.
3102
c893cc87
RM
31032009-12-20 Robert Millan <rmh.grub@aybabtu.com>
3104
3105 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
3106 return value (and revert all return statements). Update users.
3107
917dd370
CW
31082010-01-20 Dan Merillat <debian@dan.merillat.org>
3109
3110 * kern/device.c (grub_device_iterate): Allocate new part_ent
3111 structure based on sizeof (*p) rather than sizeof (p->next), to
3112 account for structure padding.
3113
3114 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
3115 disk is NULL, which might happen for LVM physical volumes with no
3116 LVM signature.
3117
d4a4ee57
RM
31182009-12-20 Robert Millan <rmh.grub@aybabtu.com>
3119
3120 * loader/mips/linux.c (grub_cmd_initrd)
3121 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
3122
31232009-12-20 Robert Millan <rmh.grub@aybabtu.com>
3124
3125 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
3126 (grub_video_video_init, grub_video_bitmap_init)
3127 (grub_font_manager_init, grub_term_gfxterm_init)
3128 (grub_at_keyboard_init): New extern declarations.
3129 (grub_machine_init): Initialize gfxterm and at_keyboard.
3130
3131 * kern/main.c (grub_main): Revert grub_printf delay kludge.
3132
3133 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
3134 `gfxterm.mod' into core image.
3135
3136 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
3137 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
3138 (kernel_img_FORMAT): Copy to ...
3139
3140 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
3141 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
3142 (kernel_img_FORMAT): ... here, and ...
3143
3144 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
3145 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
3146 (kernel_img_FORMAT): ... here.
3147
3148 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
3149 and input (at_keyboard) terminals in kernel.
3150 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
3151
3152 (pkglib_MODULES): Remove `pci.mod'.
3153 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
3154 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
3155 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
3156 (at_keyboard_mod_LDFLAGS): Remove variables.
3157
31582010-01-11 Felix Zielcke <fzielcke@z-51.de>
3159
3160 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
3161
31622009-12-10 Robert Millan <rmh.grub@aybabtu.com>
3163
3164 * include/grub/mips/libgcc.h: Only export symbols for functions
3165 that libgcc provides.
3166
31672009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
3168
3169 MIPS support.
3170
3171 * bus/bonito.c: New file.
3172 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
3173 GRUB_PCI_NUM_DEVICES.
3174 * term/i386/pc/serial.c: Move to ...
3175 * term/serial.c: ... here. All users updated.
3176 * util/i386/pc/grub-mkimage.c: Move to ...
3177 * util/grub-mkrawimage.c: ... here. All users updated.
3178 * term/i386/pc/at_keyboard.c: Move to ...
3179 * term/at_keyboard.c: ... here. All users updated.
3180 * conf/mips-qemu-mips.rmk: New file.
3181 * conf/mips-yeeloong.rmk: Likewise.
3182 * conf/mips.rmk: Likewise.
3183 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
3184 mipsel-qemu-mips.
3185 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
3186 to port addresses.
3187 (grub_ata_pciinit): Support CS5536.
3188 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
3189 * font/font_cmd.c (loadfont_command): Open file before passing it to
3190 grub_font_load.
3191 (pseudo_file_read): New function.
3192 (pseudo_file_close): Likewise.
3193 (pseudo_fs): New structure.
3194 (load_font_module): New function.
3195 (GRUB_MOD_INIT(font_manager)): Load embedded font.
3196 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
3197 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
3198 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
3199 * include/grub/i386/at_keyboard.h: Split into ...
3200 * include/grub/at_keyboard.h: ... this ...
3201 * include/grub/i386/at_keyboard.h: ... and this.
3202 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
3203 New prototype.
3204 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
3205 updated.
3206 (grub_elf64_size): Likewise.
3207 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
3208 filename.
3209 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
3210 * include/grub/i386/coreboot/serial.h: Rewritten.
3211 * include/grub/i386/ieee1275/serial.h: Include
3212 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
3213 * include/grub/i386/pc/serial.h: Moved from here ...
3214 * include/grub/serial.h: ... to here. All users updated.
3215 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
3216 (GRUB_PCI_NUM_BUS): Likewise.
3217 (GRUB_PCI_NUM_DEVICES): Likewise.
3218 (grub_pci_device_map_range): Add missing volatile keyword.
3219 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
3220 * include/grub/mips/at_keyboard.h: New file.
3221 * include/grub/mips/cache.h: Likewise.
3222 * include/grub/mips/io.h: Likewise.
3223 * include/grub/mips/kernel.h: Likewise.
3224 * include/grub/mips/libgcc.h: Likewise.
3225 * include/grub/mips/pci.h: Likewise.
3226 * include/grub/mips/qemu-mips/boot.h: Likewise.
3227 * include/grub/mips/qemu-mips/kernel.h: Likewise.
3228 * include/grub/mips/qemu-mips/loader.h: Likewise.
3229 * include/grub/mips/qemu-mips/memory.h: Likewise.
3230 * include/grub/mips/qemu-mips/serial.h: Likewise.
3231 * include/grub/mips/qemu-mips/time.h: Likewise.
3232 * include/grub/mips/relocator.h: Likewise.
3233 * include/grub/mips/time.h: Likewise.
3234 * include/grub/mips/types.h: Likewise.
3235 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
3236 * include/grub/mips/yeeloong/boot.h: Likewise.
3237 * include/grub/mips/yeeloong/kernel.h: Likewise.
3238 * include/grub/mips/yeeloong/loader.h: Likewise.
3239 * include/grub/mips/yeeloong/memory.h: Likewise.
3240 * include/grub/mips/yeeloong/pci.h: Likewise.
3241 * include/grub/mips/yeeloong/serial.h: Likewise.
3242 * include/grub/mips/yeeloong/time.h: Likewise.
3243 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
3244 * kern/elf.c (grub_elf32_size): New parameter. All users
3245 updated.
3246 (grub_elf64_size): Likewise.
3247 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
3248 Load modules before saying "Welcome to GRUB!".
3249 Call grub_refresh after saying "Welcome to GRUB!".
3250 * kern/mips/cache.S: New file.
3251 * kern/mips/cache_flush.S: Likewise.
3252 * kern/mips/dl.c: Likewise.
3253 * kern/mips/init.c: Likewise.
3254 * kern/mips/qemu-mips/init.c: Likewise.
3255 * kern/mips/startup.S: Likewise.
3256 * kern/mips/yeeloong/init.c: Likewise.
3257 * kern/term.c (grub_putcode): Handle NULL terminal.
3258 (grub_getcharwidth): Likewise.
3259 (grub_getkey): Likewise.
3260 (grub_checkkey): Likewise.
3261 (grub_getkeystatus): Likewise.
3262 (grub_getxy): Likewise.
3263 (grub_getwh): Likewise.
3264 (grub_gotoxy): Likewise.
3265 (grub_cls): Likewise.
3266 (grub_setcolorstate): Likewise.
3267 (grub_setcolor): Likewise.
3268 (grub_getcolor): Likewise.
3269 (grub_refresh): Likewise.
3270 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
3271 (write_jump): Add hatch nop.
3272 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
3273 * lib/mips/setjmp.S: New file.
3274 * loader/mips/linux.c: Likewise.
3275 * term/i386/pc/at_keyboard.c: Move from here ...
3276 * term/at_keyboard.c: ... to here.
3277 * term/i386/pc/serial.c: Moved from here ...
3278 * term/serial.c: ... to here. All users updated.
3279 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
3280 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
3281 (serial_translate_key_sequence): Avoid deadlock.
3282 (grub_serial_getkey): Handle backspace.
3283 (grub_serial_putchar): Fix newline handling.
3284 * util/i386/pc/grub-mkimage.c: Move from here ...
3285 * util/grub-mkrawimage.c: ... to here. All users updated.
3286 (generate_image): New parameters 'font_path' and 'format'.
3287 Support embedding font.
3288 Use grub_host_to_target* instead of grub_cpu_to_le*.
3289 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
3290 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
3291 (options): New option "--font".
3292 (usage): Likewise.
3293 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
3294 (main): Handle "--font".
3295 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
3296 (grub_virtual_screen_setup): Set bg_color_display.
3297 (redraw_screen_rect): Use bg_color_display instead of incorrect
3298 bg_color.
3299 (grub_gfxterm_cls): Likewise.
3300 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
3301 Support embedding config file.
3302 (add_segments): Likewise.
3303 (options): New option "--config".
3304 (main): Handle "--config".
3305 * video/sm712.c: New file.
3306
25c2b5b3
RM
33072010-01-18 Robert Millan <rmh.grub@aybabtu.com>
3308
3309 Fix parallel builds.
3310
3311 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
3312 font.c depend on ascii.h).
3313
33142010-01-12 Carles Pina i Estany <carles@pina.cat>
3315
3316 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
3317
33182010-01-11 Carles Pina i Estany <carles@pina.cat>
3319
3320 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
3321 By default: disabled.
3322 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
3323 parameter.
3324
33252010-01-10 Carles Pina i Estany <carles@pina.cat>
3326
3327 * font/font.c: Update copyright years.
3328 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
3329
33302010-01-10 Carles Pina i Estany <carles@pina.cat>
3331
3332 * font/font.c: Include `ascii.h'.
3333 (ASCII_BITMAP_SIZE): New macro.
3334 (ascii_font_glyph): Define.
3335 (ascii_glyph_lookup): New function.
3336 (grub_font_get_string_width): Change comment. If glyph not found, use
3337 ascii_glyph_lookup.
3338 (grub_font_get_glyph_with_fallback): If glyph not available returns
3339 ascii_glyph_lookup.
3340 * util/grub-mkfont.c (file_formats): New enum.
3341 (options): Add `ascii-bitmaps' new option.
3342 (usage): Add `asii-bitmaps' new option.
3343 (write_font_ascii_bitmap): New function.
3344 (write_font): Rename to ...
3345 (write_font_p2): ... this. Remove print_glyphs call.
3346 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
3347 used. Call print_glyphs.
3348 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
3349
33502010-01-14 Robert Millan <rmh.grub@aybabtu.com>
3351
3352 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
3353 (grub_bin2h_SOURCES): New variable.
3354 * util/bin2h.c: New file.
3355
915fc1b8
VS
33562010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3357
3358 * include/multiboot.h: Resynced with spec.
3359 * include/multiboot2.h: Likewise.
3360 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
3361 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
3362
9444b678
RM
33632010-01-18 Robert Millan <rmh.grub@aybabtu.com>
3364
3365 * include/grub/term.h (grub_term_register_input,
3366 grub_term_register_output): Check return of terminal init()
3367 routines, and abort if errors are raised.
3368
3369 * commands/terminal.c: Update copyright year.
3370
cba98e8d
RM
33712010-01-18 Robert Millan <rmh.grub@aybabtu.com>
3372
3373 * commands/terminal.c (grub_cmd_terminal_input)
3374 (grub_cmd_terminal_output): Check return of terminal init()
3375 routines, and abort if errors are raised.
3376
6f7db5d6
VS
33772010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
3378
3379 * include/grub/i386/bsd.h: Fix include pathes.
3380
262bff8d
VS
33812010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
3382
3383 Add missing *BSD copyright headers.
3384
3385 * include/grub/aout.h: Add BSD licence.
3386 * include/grub/i386/bsd.h: Parts under different licences moved to ...
3387 * include/grub/i386/freebsd_linker.h: ... here,
3388 * include/grub/i386/freebsd_reboot.h: ... here,
3389 * include/grub/i386/netbsd_bootinfo.h: ... here,
3390 * include/grub/i386/netbsd_reboot.h: ... here,
3391 * include/grub/i386/openbsd_bootarg.h: ... here,
3392 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
3393 licence to each file.
3394
b2cab848
RM
33952010-01-18 Robert Millan <rmh.grub@aybabtu.com>
3396
3397 * acinclude.m4: Remove `nop' assembly instruction; it's not
3398 implemented by all architectures.
3399
2cb6be4b
RM
34002010-01-18 Robert Millan <rmh.grub@aybabtu.com>
3401
3402 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
3403 ELILO. This is no longer necessary.
3404
a2eaee15
BC
34052010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
3406
3407 Added new tool, grub-scrit-check to verify grub.cfg syntax.
3408
3409 * util/grub-script-check.c: grub-script-check tool.
3410 * conf/common.rmk: Make rules for grub-script-check.
3411
88d17012
RM
34122010-01-18 Robert Millan <rmh.grub@aybabtu.com>
3413
3414 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
3415 spotting it back in 2008. Shame on me for forgetting he did.
3416
3417 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
3418
8040619d
RM
34192010-01-18 Robert Millan <rmh.grub@aybabtu.com>
3420
3421 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
3422 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
3423 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
3424 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
3425 (GRUB_VIDEO_TYPE_EFI): Rename to ...
3426 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
3427
a0c2a0f6
RM
34282010-01-17 Robert Millan <rmh.grub@aybabtu.com>
3429
3430 * include/grub/test.h: Add license header.
3431 * tests/example_functional_test.c: Likewise.
3432 * tests/example_unit_test.c: Likewise.
3433 * tests/lib/functional_test.c: Likewise.
3434 * tests/lib/test.c: Likewise.
3435 * tests/lib/unit_test.c: Likewise.
3436
b0b13907
VS
34372010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
3438
3439 Use flag-based instead of hook-based video mode selection and "auto"
3440 keyword.
3441
3442 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
3443 (grub_video_set_mode): Changed prototype. All users updated.
3444 (grub_video_check_mode_flag): New inline function.
3445 * video/video.c (parse_modespec): New function.
3446 (grub_video_set_mode): Parse flags and keywords.
3447
ea379330 34482010-01-17 Carles Pina i Estany <carles@pina.cat>
3449
3450 * util/misc.c (grub_util_info): Fix the order of the parameters in a
3451 fprintf call.
3452
e15c215e
FZ
34532010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
3454
3455 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
3456
409ae1c9 34572010-01-16 Carles Pina i Estany <carles@pina.cat>
3458
3459 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
3460 string.
3461 * util/grub-emu.c (usage): Likewise.
3462 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
3463 * util/i386/efi/grub-mkimage.c (usage): Likewise.
3464 * util/i386/pc/grub-mkimage.c (usage): Likewise.
3465 * util/i386/pc/grub-setup.c (usage): Likewise.
3466
70a14d3d 34672010-01-16 Carles Pina i Estany <carles@pina.cat>
3468
3469 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
3470 the message.
3471 (grub_util_info): Likewise.
3472 (grub_util_error): Likewise.
3473 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
3474 and/or new lines in `grub_util_warna', `grub_util_info',
3475 `grub_util_error' calls.
3476 * util/getroot.c: Likewise.
3477 * util/grub-editenv.c: Likewise.
3478 * util/grub-emu.c: Likewise.
3479 * util/grub-fstest.c: Likewise.
3480 * util/grub-mkdevicemap.c: Likewise.
3481 * util/grub-mkfont.c: Likewise.
3482 * util/grub-mkpasswd-pbkdf2.c: Likewise.
3483 * util/grub-mkrelpath.c: Likewise.
3484 * util/grub-pe2elf.c: Likewise.
3485 * util/grub-probe.c: Likewise.
3486 * util/hostdisk.c: Likewise.
3487 * util/i386/efi/grub-mkimage.c: Likewise.
3488 * util/i386/pc/grub-mkimage.c: Likewise.
3489 * util/i386/pc/grub-setup.c: Likewise.
3490 * util/ieee1275/ofpath.c: Likewise.
3491 * util/mkisofs/eltorito.c: Likewise.
3492 * util/mkisofs/rock.c: Likewise.
3493 * util/mkisofs/write.c: Likewise.
3494 * util/raid.c: Likewise.
3495 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
3496 * util/sparc64/ieee1275/grub-setup.c: Likewise.
3497
a0b766fc
VS
34982010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
3499
3500 Enable multiboot on non-pc.
3501
3502 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
3503 multiboot.mod and multiboot2.mod to ...
3504 * conf/i386.rmk (pkglib_MODULES): ... here.
3505 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
3506 Moved to ...
3507 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
3508 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
3509 Moved to ...
3510 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
3511 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
3512 Moved to ...
3513 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
3514 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
3515 Moved to ...
3516 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
3517 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
3518 relocator.mod.
3519 (ata_mod_SOURCES): Removed.
3520 (ata_mod_CFLAGS): Likewise.
3521 (ata_mod_LDFLAGS): Likewise.
3522 (relocator_mod_SOURCES): Removed.
3523 (relocator_mod_CFLAGS): Likewise.
3524 (relocator_mod_ASFLAGS): Likewise.
3525 (relocator_mod_LDFLAGS): Likewise.
3526 Include i386.mk.
3527 * include/grub/x86_64/multiboot.h: New file.
3528 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
3529 Terminate EFI.
3530
884ade56
VS
35312010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
3532
3533 Video multiboot support.
3534
3535 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
3536 New prototype.
3537 * include/multiboot.h: Resynced with multiboot specification.
3538 * include/multiboot2.h: Likewise.
3539 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
3540 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
3541 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
3542 (HAS_VGA_TEXT): Likewise.
3543 (accepts_video): New variable.
3544 (grub_multiboot_set_accepts_video): New function.
3545 (grub_multiboot_get_mbi_size): Account for video structures.
3546 (set_video_mode): New function.
3547 (retrieve_video_parameters): Likewise.
3548 (grub_multiboot_make_mbi): Fill video fields.
3549
0d90e8a6
VS
35502010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
3551
3552 Video driver ids.
3553
3554 * include/grub/video.h (grub_video_driver_id): New type.
3555 (grub_video_adapter): New member 'id'. All users updated.
3556 (grub_video_get_driver_id): New proto.
3557 * video/video.c (grub_video_get_driver_id): New function.
3558
5c71db1b 35592010-01-14 Carles Pina i Estany <carles@pina.cat>
3560
3561 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
3562 `var=val'.
3563
cca15b52 35642010-01-14 Carles Pina i Estany <carles@pina.cat>
3565
3566 * normal/cmdline.c (print_completion): Gettextizze.
3567
c586fbb2 35682001-01-14 Carles Pina i Estany <carles@pina.cat>
3569
3570 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
3571
ba2f6848 35722010-01-14 Carles Pina i Estany <carles@pina.cat>
3573
3574 * gettext/gettext.c (grub_gettext_translate): Push and pop
3575 grub_errno.
3576 (grub_gettext_delete_list): Change comment style.
3577 * kern/err.c (grub_error): Gettextizze.
3578 (grub_fatal): Gettextizze.
3579
0a46429a
RM
35802010-01-14 Robert Millan <rmh.grub@aybabtu.com>
3581
3582 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
3583 (grub_linux16_real_boot): ... this.
3584 * kern/i386/loader.S: Likewise.
3585 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
3586 (grub_linux16_boot): New function. Switches to text mode and calls
3587 grub_linux16_real_boot().
3588
3589 * loader/i386/bsd.c: Include `<grub/video.h>'.
3590 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
3591 text mode before calling grub_unix_real_boot().
3592
3593 * loader/i386/multiboot.c: Include `<grub/video.h>'.
3594 (grub_multiboot_boot): Switch to text mode before calling
3595 grub_relocator32_boot().
3596
3597 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
3598 (grub_chainloader_boot): Switch to text mode before calling
3599 grub_chainloader_real_boot().
3600
d6f93a66
RM
36012010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
36022010-01-05 Colin Watson <cjwatson@ubuntu.com>
3603
3604 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
3605 non-empty value.
3606
36072010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
36082010-01-05 Colin Watson <cjwatson@ubuntu.com>
3609
3610 * util/grub.d/00_header.in: Define a "savedefault" function for use
3611 in menu entries.
3612 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
3613
36142010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
36152010-01-05 Colin Watson <cjwatson@ubuntu.com>
3616
3617 * util/grub-mkconfig_lib.in (save_default_entry): Only set
3618 saved_entry if boot_once is unset.
3619 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
3620 previous saved entry (i.e. grub-reboot).
3621
36222009-12-08 Colin Watson <cjwatson@ubuntu.com>
3623
3624 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
3625
36262009-12-08 Colin Watson <cjwatson@ubuntu.com>
3627
3628 * util/grub.d/00_header.in: Use `set var=val' rather than plain
3629 `var=val'.
3630 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
3631
36322009-12-08 Colin Watson <cjwatson@ubuntu.com>
3633
3634 * util/grub-reboot.in: Fix --version output.
3635 * util/grub-set-default.in: Likewise.
3636
36372009-12-08 Colin Watson <cjwatson@ubuntu.com>
3638
3639 * util/grub.d/00_header.in: Silently ignore zero-sized environment
3640 blocks.
3641
36422009-12-08 Colin Watson <cjwatson@ubuntu.com>
3643
3644 * util/grub.d/00_header.in: Quote the value assigned to `default',
3645 in case it contains spaces.
3646
36472009-12-08 Colin Watson <cjwatson@ubuntu.com>
3648
3649 * util/grub.d/30_os-prober.in: Fix merge error that moved a
3650 `save_default_entry' call from the macosx case to the linux case.
3651
36522009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
36532009-10-25 Colin Watson <cjwatson@ubuntu.com>
3654
3655 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
3656 in `chosen' environment variable.
3657 * normal/menu_text.c (get_entry_number): Check if the variable
3658 matches the title of a menu entry.
3659 (run_menu): Pass menu to get_entry_number.
3660
3661 * util/grub-reboot.in: New file.
3662 * util/grub-set-default.in: New file.
3663 * conf/common.rmk (grub-reboot): New utility.
3664 (grub-set-default): New utility.
3665
3666 * util/grub-mkconfig_lib.in (save_default_entry): New function.
3667 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
3668 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
3669 move it to `saved_entry' for the next boot. Load environment on
3670 initialisation.
3671 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
3672 * util/grub.d/10_hurd.in: Likewise.
3673 * util/grub.d/10_linux.in (linux_entry): Likewise.
3674 * util/grub.d/10_windows.in: Likewise.
3675 * util/grub.d/30_os-prober.in: Likewise.
3676
3677 * util/grub-install.in: Create environment block.
3678 * util/i386/efi/grub-install.in: Likewise.
3679 * util/ieee1275/grub-install.in: Likewise.
3680 * util/sparc64/ieee1275/grub-install.in: Likewise.
3681
0934d184
BC
36822010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
3683
3684 Unit testing framework for GRUB.
3685
3686 * Makefile.in: Test framework build rules for 'make check'.
3687 * conf/tests.rmk: Build rules for individual tests and framework.
3688
3689 * include/grub/test.h: Header file for whitebox tests.
3690 * tests/lib/functional_test.c: Framework support for whitebox
3691 functional tests.
3692 * tests/lib/test.c: Common whitebox testing code for unit and
3693 functional tests.
3694 * tests/lib/unit_test.c: Framework support for whitebox unit
3695 tests.
3696
3697 * tests/util/grub-shell-tester.in: Support utility for grub-script
3698 tests.
3699 * tests/util/grub-shell.in: Utility to execute grub-script
3700 commands in a Qemu instance.
3701
3702 * tests/example_functional_test.c: Example whitebox functional
3703 test.
3704 * tests/example_grub_script_test.in: Example grub-script test.
3705 * tests/example_scripted_test.in: Example scripted test.
3706 * tests/example_unit_test.c: Example whitebox unit test.
3707
9c4ffeeb
VS
37082010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
3709
3710 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
3711 Add loader/i386/multiboot_mbi.c.
3712 (multiboot2_mod_SOURCES): Likewise.
3713 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
3714 (multiboot2_mod_SOURCES): Likewise.
3715 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
3716 (grub_multiboot_make_mbi): Likewise.
3717 (grub_multiboot_free_mbi): Likewise.
3718 (grub_multiboot_init_mbi): Likewise.
3719 (grub_multiboot_add_module): Likewise.
3720 (grub_multiboot_set_bootdev): Likewise.
3721 * loader/i386/multiboot.c (mbi): Removed.
3722 (mbi_dest): Likewise.
3723 (alloc_mbi): New variable.
3724 (grub_multiboot_payload_size): Removed. All users updated.
3725 (grub_multiboot_pure_size): New variable.
3726 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
3727 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
3728 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
3729 (grub_fill_multiboot_mmap): Likewise.
3730 (grub_multiboot_get_bootdev): Likewise.
3731 (grub_multiboot): Use multiboot_mbi functions.
3732 * loader/i386/multiboot_mbi.c: New file.
3733
17383dfe
VS
37342010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
3735
3736 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
3737 it would result in module crash.
3738
c1f28820
VS
37392010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
3740
3741 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
3742 (grub_ofconsole_getwh): Split to ...
3743 (grub_ofconsole_getwh): ... this.
3744 (grub_ofconsole_dimensions): ...and this.
3745 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
3746
58655a16
RM
37472010-01-13 Robert Millan <rmh.grub@aybabtu.com>
3748
3749 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
3750
10891398
VS
37512010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
3752
3753 * loader/i386/pc/multiboot2.c: Removed stalled file.
3754
0b8a223c
VS
37552010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
3756
3757 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
3758 Reported by: Grégoire Sutre
3759
92ab12b0
RM
37602010-01-11 Robert Millan <rmh.grub@aybabtu.com>
3761
3762 * util/misc.c (canonicalize_file_name): New function.
3763 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
3764 instead of realpath().
3765
a788afb6
CW
37662010-01-11 Colin Watson <cjwatson@ubuntu.com>
3767
3768 * util/grub-install.in (usage): Clarify meaning of --root-directory,
3769 and make it clearer that it's optional. Based on confusion
3770 witnessed on IRC.
3771
ffa8e3d2
VS
37722010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
3773
3774 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
3775 in premature implicit newline.
3776
e9060a9d
VS
37772010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
3778
3779 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
3780 which resulted in garbled command line at the end of screen.
3781
f0d0c0b7
RM
37822010-01-10 Robert Millan <rmh.grub@aybabtu.com>
3783
3784 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
3785 initialization with similar approach as with other Linux loaders.
3786
0e60bae7
RM
37872010-01-10 Robert Millan <rmh.grub@aybabtu.com>
3788
3789 Fix i386-ieee1275 build.
3790
3791 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
3792 and grub_term_height() for video_{width,height} initialization.
3793
37942010-01-10 Robert Millan <rmh.grub@aybabtu.com>
cdec4d31
RM
3795
3796 Fix grub-emu build.
3797
3798 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
3799
cdb3f378
RM
38002010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
38012010-01-09 Robert Millan <rmh.grub@aybabtu.com>
3802
3803 Support for multiple terminals.
3804
3805 * Makefile.in (pkglib_DATA): terminal.lst.
3806 (terminal.lst): New target.
3807 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
3808 (GRUB_MOD_INIT(handler)): Likewise.
3809 (GRUB_MOD_FINI(handler)): Likewise.
3810 * commands/help.c (grub_cmd_help): Handle multiple terminals.
3811 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
3812 * commands/sleep.c (do_print): Use grub_term_restore_pos.
3813 (grub_cmd_sleep): Use grub_term_save_pos.
3814 * commands/terminal.c: New file.
3815 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
3816 commands/terminal.c and lib/charset.c.
3817 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
3818 (pkglib_MODULES): Add terminal.mod.
3819 (terminal_mod_SOURCES): New variable.
3820 (terminal_mod_CFLAGS): Likewise.
3821 (terminal_mod_LDFLAGS): Likewise.
3822 * genhandlerlist.sh: Don't handle terminals.
3823 * genmk.rb: Generate terminal-*.lst.
3824 * genterminallist.sh: New file.
3825 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
3826 (grub_is_valid_utf8): Likewise.
3827 (grub_utf8_to_ucs4_alloc): Likewise.
3828 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
3829 (grub_menu_register_viewer): Changed argument.
3830 (grub_menu_try_text): New proto.
3831 (grub_gfxmenu_try_hook): New declaration.
3832 * include/grub/normal.h (grub_normal_exit_level): New declaration.
3833 (grub_menu_init_page): Additional argument term.
3834 (grub_normal_init_page): Likewise.
3835 (grub_cmdline_get): Arguments simplified.
3836 (grub_utf8_to_ucs4_alloc): Removed.
3837 (grub_print_ucs4): Additional argument term.
3838 (grub_getstringwidth): Likewise.
3839 (grub_print_message_indented): Likewise.
3840 (grub_menu_text_register_instances): New proto.
3841 (grub_show_menu): Likewise.
3842 (read_terminal_list): Likewise.
3843 (grub_set_more): Likewise.
3844 * include/grub/parser.h: Include handler.h.
3845 * include/grub/reader.h: Rewritten.
3846 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
3847 (GRUB_TERM_WIDTH): Changed to function.
3848 (GRUB_TERM_HEIGHT): Likewise.
3849 (GRUB_TERM_BORDER_WIDTH): Likewise.
3850 (GRUB_TERM_BORDER_HEIGHT): Likewise.
3851 (GRUB_TERM_NUM_ENTRIES): Likewise.
3852 (GRUB_TERM_ENTRY_WIDTH): Likewise.
3853 (GRUB_TERM_CURSOR_X): Likewise.
3854 (grub_term_input_class): Likewise.
3855 (grub_term_output_class): Likewise.
3856 (grub_term_outputs_disabled): New declaration.
3857 (grub_term_inputs_disabled): Likewise.
3858 (grub_term_outputs): Likewise.
3859 (grub_term_inputs): Likewise.
3860 (grub_term_register_input): Rewritten.
3861 (grub_term_register_output): Likewise.
3862 (grub_term_unregister_input): Likewise.
3863 (grub_term_unregister_output): Likewise.
3864 (FOR_ACTIVE_TERM_INPUTS): New macro.
3865 (FOR_DISABLED_TERM_INPUTS): Likewise.
3866 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
3867 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
3868 * include/grub/terminfo.h: Add oterm argument to all protypes.
3869 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
3870 Use grub_rescue_run.
3871 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
3872 All users updated.
3873 * kern/reader.c: Removed. All users updated.
3874 * kern/rescue_reader.c (grub_rescue_init): Removed.
3875 (grub_rescue_reader): Likewise.
3876 (grub_register_rescue_reader): Likewise.
3877 (grub_rescue_run): New function based on kern/reader.c.
3878 * kern/term.c: Adapted for multiterm.
3879 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
3880 (grub_is_valid_utf8): Likewise.
3881 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
3882 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
3883 right terminal.
3884 * loader/i386/linux.c (grub_linux_boot): Likewise.
3885 * normal/auth.c (grub_username_get): New function.
3886 (grub_auth_check_authentication): Use grub_username_get.
3887 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
3888 * normal/color.c: Adapt for multiterm.
3889 * normal/main.c (read_config_file): Don't use grub_reader_loop.
3890 (grub_normal_init_page): Additional argument term.
3891 (read_lists): Call read_terminal_lists.
3892 (grub_enter_normal_mode): Call grub_cmdline_run.
3893 Handle grub_normal_exit_level.
3894 (grub_cmd_normal): Make reentrant.
3895 (grub_cmd_normal_exit): New function.
3896 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
3897 * normal/menu.c: Adapt for multiterm.
3898 * normal/menu_entry.c: Likewise.
3899 * normal/menu_text.c: Likewise.
3900 * normal/menu_viewer.c: Removed. All users updated.
3901 * normal/term.c: New file.
3902 * util/console.c: Change order of includes to workaround a bug in
3903 ncurses headers.
3904 * term/terminfo.c: New argument oterm on all exported functions.
3905 All users updated.
3906 * util/grub-editenv.c (grub_term_input_class): Removed.
3907 (grub_term_output_class): Likewise.
3908
1a064917
RM
39092010-01-09 Robert Millan <rmh.grub@aybabtu.com>
3910
3911 Make loader output a bit more user-friendly.
3912
3913 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
3914 is being loaded. Likewise for the Hurd.
3915
3916 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
3917 that kernel of FreeBSD ${version} is being loaded.
3918
3919 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
3920 grub_dprintf().
3921 (grub_cmd_initrd): Likewise.
3922 * util/grub.d/10_linux.in (linux_entry): Print message indicating
3923 that Linux ${version} is being loaded. Likewise for initrd.
3924
5ce0a83a 39252010-01-09 Carles Pina i Estany <carles@pina.cat>
3926
3927 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
3928
809bbfeb 39292010-01-08 Carles Pina i Estany <carles@pina.cat>
3930
3931 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
3932 (GRUB_MOD_INIT): Gettextizze.
3933 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
3934 (GRUB_MOD_INIT): Gettextizze.
3935 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
3936 (grub_cmd_linux): Capitalise Linux.
3937 (GRUB_MOD_INIT): Gettextizze.
3938 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
3939 (grub_cmd_linux): Capitalise Linux.
3940 (GRUB_MOD_INIT): Gettextizze.
3941 * loader/i386/linux.c: Include `<grub/i18n.h>'.
3942 (grub_cmd_linux): Capitalise Linux.
3943 (GRUB_MOD_INIT): Gettextizze.
3944 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
3945 (GRUB_MOD_INIT): Gettextizze.
3946 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
3947 (grub_cmd_linux): Capitalise Linux.
3948 (GRUB_MOD_INIT): Gettextizze.
3949 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
3950 (grub_cpu_xnu_init): Gettextizze.
3951 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
3952 (GRUB_MOD_INIT): Gettextizze.
3953 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
3954 (GRUB_MOD_INIT): Gettextizze.
3955 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
3956 (grub_linux_load64): Capitalise Linux.
3957 (GRUB_MOD_INIT): Gettextizze.
3958 * loader/xnu.c: Include `<grub/i18n.h>'.
3959 (GRUB_MOD_INIT): Gettextizze.
3960 * po/POTFILES: Add `loader/efi/appleloader.c',
3961 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
3962 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
3963 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
3964 `loader/i386/xnu.c', `loader/multiboot_loader.c',
3965 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
3966 and `loader/xnu.c'.
3967
b394b2ca
RM
39682010-01-08 Robert Millan <rmh.grub@aybabtu.com>
3969
3970 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
3971
39722010-01-08 Robert Millan <rmh.grub@aybabtu.com>
cd943b75
RM
3973
3974 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
3975 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
3976 * util/mkisofs/mkisofs.c (main): Readjust --version output.
3977
bc8b32b3
RM
39782010-01-07 Robert Millan <rmh.grub@aybabtu.com>
3979
3980 Reset Multiboot 2 support. New loader implements the draft in
3981 /branches/multiboot2 and shares as much code as possible with the
3982 production Multiboot 1 implementation.
3983
3984 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
3985 * loader/multiboot2.c: Likewise.
3986 * loader/i386/multiboot_helper.S: Likewise.
3987 * include/multiboot2.h: Replace with latest version from the draft
3988 in /branches/multiboot2.
3989
3990 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
3991 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
3992 and `loader/multiboot2.c'.
3993 (pkglib_MODULES): Add `multiboot2.mod'.
3994 (multiboot2_mod_SOURCES): New variable.
3995 (multiboot2_mod_LDFLAGS): Likewise.
3996 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
3997
3998 * conf/i386-pc.rmk: Likewise.
3999
4000 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
4001 (multiboot_mod_SOURCES): Remove variable.
4002 (multiboot_mod_LDFLAGS): Likewise.
4003 (multiboot_mod_CFLAGS): Likewise.
4004
4005 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
4006 `<multiboot2.h>' instead of `<multiboot.h>'.
4007 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
4008 (MULTIBOOT_HEADER_MAGIC): New macros.
4009
4010 * loader/multiboot_loader.c (module_version_status): Remove variable.
4011 (find_multi_boot2_header): Remove function.
4012 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
4013 logic. Always check for the Multiboot version we're compiling for.
4014 (grub_cmd_module_loader): Likewise.
4015 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
4016 command instead of `multiboot'.
4017
5d2c52b8
RM
40182010-01-07 Robert Millan <rmh.grub@aybabtu.com>
4019
4020 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
4021 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
4022 all users.
4023
53108d92
RM
40242010-01-07 Robert Millan <rmh.grub@aybabtu.com>
40252010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
4026
4027 Fix breakage introduced with previous commit.
4028
4029 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
4030 commands.
4031 * normal/handler.c (read_handler_list): Revert part of previous commit
4032 affecting this file.
4033 * normal/main.c (read_lists): Move read_handler_list() call back to ...
4034 (grub_normal_execute): ... here.
4035
e2e936b2
RM
40362010-01-07 Robert Millan <rmh.grub@aybabtu.com>
4037
4038 Merge prefix-redefinition-fix branch.
4039
4040 * normal/autofs.c (read_fs_list): Make function capable of being
4041 run multiple times, gracefuly replacing the previous data
4042 structures.
4043 * normal/dyncmd.c (read_command_list): Likewise.
4044 * normal/handler.c (read_handler_list): Likewise.
4045 * normal/main.c (read_lists): New function. Calls all the
4046 list reading functions.
4047 (grub_normal_execute): Use read_lists() instead of calling all
4048 list reading functions explicitly. Register read_lists() as a
4049 variable hook attached to ${prefix}.
4050
607a3701
VS
40512010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
4052
4053 Merge crypto branch.
4054
4055 * Makefile.in (pkglib_DATA): Add crypto.lst.
4056 (crypto.lst): New target.
4057 * commands/hashsum.c: New file.
4058 * commands/password.c (check_password): Use grub_crypto_memcmp.
4059 * commands/password_pbkdf2.c: New file.
4060 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
4061 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
4062 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
4063 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
4064 -I$(srcdir)/lib/libgcrypt_wrap.
4065 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
4066 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
4067 password_pbkdf2.mod.
4068 (crypto_mod_SOURCES): New variable.
4069 (crypto_mod_CFLAGS): Likewise.
4070 (crypto_mod_LDFLAGS): Likewise.
4071 (hashsum_mod_SOURCES): New variable.
4072 (hashsum_mod_CFLAGS): Likewise.
4073 (hashsum_mod_LDFLAGS): Likewise.
4074 (pbkdf2_mod_SOURCES): New variable.
4075 (pbkdf2_mod_CFLAGS): Likewise.
4076 (pbkdf2_mod_LDFLAGS): Likewise.
4077 (password_pbkdf2_mod_SOURCES): New variable.
4078 (password_pbkdf2_mod_CFLAGS): Likewise.
4079 (password_pbkdf2_mod_LDFLAGS): Likewise.
4080 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
4081 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
4082 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
4083 Include conf/gcry.rmk.
4084 * include/grub/auth.h: Rewritten.
4085 * include/grub/crypto.h: New file.
4086 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
4087 * include/grub/normal.h (read_crypto_list): New prototype.
4088 * lib/crypto.c: New file.
4089 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
4090 * lib/pbkdf2.c: Likewise.
4091 * normal/auth.c (grub_auth_strcmp): Removed.
4092 (grub_iswordseparator): Likewise.
4093 (grub_auth_strword): Likewise.
4094 (is_authenticated): Use grub_strword.
4095 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
4096 and grub_strword. Pass entered password to authentication callback.
4097 * normal/crypto.c: New file.
4098 * normal/main.c: Call read_crypto_list.
4099 * util/grub-mkpasswd-pbkdf2.c: New file.
4100 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
4101
42841caa
VS
41022010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
4103
4104 Fix descent and ascent calculation.
4105
4106 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
4107 (options): New option "asce".
4108 (usage): Likewise.
4109 (add_char): Ignore invalid glyphs for descent calculation.
4110 Calculate ascent from actual content.
4111 (print_glyphs): Use 'asce'.
4112 (write_font): Likewise. Allow ascent override.
4113 (main): Handle "asce" option.
4114
e7730de7 41152010-01-06 Carles Pina i Estany <carles@pina.cat>
4116
4117 * kern/err.c: Include `<grub/i18n.h>'.
4118 (grub_print_error): Add full stop. Gettextizze.
4119 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
4120 (grub_bsd_load_elf): Capitalise ELF.
4121 (grub_cmd_freebsd_loadenv): Add `s' in error string.
4122 (grub_cmd_freebsd_module): Likewise.
4123 (grub_cmd_freebsd_module_elf): Likewise.
4124 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
4125
40e3a41f 41262010-01-06 Carles Pina i Estany <carles@pina.cat>
4127
4128 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
4129 * commands/search_file.c (HELP_MESSAGE): New macro.
4130 * commands/search_label.c (HELP_MESSAGE): Likewise.
4131 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
4132 * po/POTFILES: Add `commands/search_file.c',
4133 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
4134 `commands/search.c'.
4135
83507e68
RM
41362010-01-05 Robert Millan <rmh.grub@aybabtu.com>
4137
4138 * config.rpath: Update from Gnulib.
4139
465c787b
YB
41402010-01-05 Yves Blusseau <blusseau@zetam.org>
4141
4142 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
4143
6581dd3a
YB
41442010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
4145
4146 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
4147
3bff18c5
CW
41482010-01-05 Colin Watson <cjwatson@ubuntu.com>
4149
4150 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
4151 arguments to fread so that we get a return value in bytes, rather
4152 than something that will normally be rounded down to 0.
4153 Adjust error handling to avoid producing garbage when size_t is not
4154 the same size as long long.
4155
a1368118
CW
41562010-01-05 Colin Watson <cjwatson@ubuntu.com>
4157
4158 * util/mkisofs/write.c (padblock_write): Check return value of
4159 fread.
4160
7c302978
RM
41612010-01-05 Robert Millan <rmh.grub@aybabtu.com>
4162
4163 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
4164 floppy images now.
4165
4166 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
4167
e33ace06
RM
41682010-01-04 Robert Millan <rmh.grub@aybabtu.com>
4169
4170 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
4171 instead of manual alignment.
4172 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
4173 verbose). Avoid attempts to read past end of the device
4174 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
4175 but GRUB_DISK_CACHE_SIZE may exceed that).
4176
4b856776
RM
41772010-01-04 Robert Millan <rmh.grub@aybabtu.com>
4178
4179 * commands/crc.c (grub_cmd_crc): Abort on read errors.
4180 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
4181 it to upper layer.
4182
52c2d97f
VS
41832010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
4184
4185 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
4186 New constant.
4187 (grub_efi_piwg_device_path): New structure
4188 (grub_efi_piwg_device_path_t): New type.
4189 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
4190 (devpath_1): Transform to a structure. All users updated.
4191 (devpath_2): Likewise.
4192 (devpath_3): Likewise.
4193 (devpath_4): Likewise.
4194 (devpath_5): Likewise.
4195
98ff6a54
VS
41962010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
4197
4198 * loader/efi/appleloader.c: Restored. Update all users.
4199
3a73dcb6
RM
42002010-01-03 Robert Millan <rmh.grub@aybabtu.com>
4201
4202 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
4203
4204 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
4205 (struct boot_blocklist): Move from here ...
4206 * include/grub/i386/pc/boot.h [ASM_FILE]
4207 (struct grub_boot_blocklist): ... to here. Update all users.
4208 (setup): Only initialize `start' member of `first_block'
4209 structure. Add assert() calls to verify the other members.
4210
4211 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
4212 (generate_image): Fix broken blocklist length initialization.
4213 Add assert() call to verify blocklist `segment' field.
4214
ab0eeb0c
RM
42152010-01-03 Robert Millan <rmh.grub@aybabtu.com>
4216
4217 * loader/efi/appleloader.c: Remove. Update all users.
4218
58bc8bd5
RM
42192010-01-03 Robert Millan <rmh.grub@aybabtu.com>
4220
4221 * boot/i386/pc/boot.S: Update copyright year.
4222 * boot/i386/pc/cdboot.S: Likewise.
4223 * boot/i386/pc/diskboot.S: Likewise.
4224 * boot/i386/pc/lnxboot.S: Likewise.
4225 * boot/i386/pc/pxeboot.S: Likewise.
4226 * bus/pci.c: Likewise.
4227 * commands/cmp.c: Likewise.
4228 * commands/help.c: Likewise.
4229 * commands/hexdump.c: Likewise.
4230 * commands/i386/pc/halt.c: Likewise.
4231 * commands/i386/pc/play.c: Likewise.
4232 * commands/i386/pc/vbeinfo.c: Likewise.
4233 * commands/ls.c: Likewise.
4234 * commands/test.c: Likewise.
4235 * disk/dmraid_nvidia.c: Likewise.
4236 * disk/i386/pc/biosdisk.c: Likewise.
4237 * disk/ieee1275/nand.c: Likewise.
4238 * disk/ieee1275/ofdisk.c: Likewise.
4239 * disk/lvm.c: Likewise.
4240 * disk/raid.c: Likewise.
4241 * disk/raid6_recover.c: Likewise.
4242 * disk/scsi.c: Likewise.
4243 * fs/affs.c: Likewise.
4244 * fs/cpio.c: Likewise.
4245 * fs/ext2.c: Likewise.
4246 * fs/hfs.c: Likewise.
4247 * fs/iso9660.c: Likewise.
4248 * fs/ntfs.c: Likewise.
4249 * fs/sfs.c: Likewise.
4250 * fs/udf.c: Likewise.
4251 * fs/ufs.c: Likewise.
4252 * fs/xfs.c: Likewise.
4253 * gencmdlist.sh: Likewise.
4254 * genmk.rb: Likewise.
4255 * include/grub/disk.h: Likewise.
4256 * include/grub/efi/api.h: Likewise.
4257 * include/grub/efi/efi.h: Likewise.
4258 * include/grub/efi/pe32.h: Likewise.
4259 * include/grub/elf.h: Likewise.
4260 * include/grub/fs.h: Likewise.
4261 * include/grub/i386/at_keyboard.h: Likewise.
4262 * include/grub/i386/pc/memory.h: Likewise.
4263 * include/grub/i386/pc/vbe.h: Likewise.
4264 * include/grub/i386/pci.h: Likewise.
4265 * include/grub/i386/tsc.h: Likewise.
4266 * include/grub/ieee1275/ieee1275.h: Likewise.
4267 * include/grub/ntfs.h: Likewise.
4268 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
4269 * include/grub/sparc64/libgcc.h: Likewise.
4270 * include/grub/symbol.h: Likewise.
4271 * include/grub/types.h: Likewise.
4272 * include/multiboot2.h: Likewise.
4273 * io/gzio.c: Likewise.
4274 * kern/device.c: Likewise.
4275 * kern/disk.c: Likewise.
4276 * kern/efi/efi.c: Likewise.
4277 * kern/efi/mm.c: Likewise.
4278 * kern/elf.c: Likewise.
4279 * kern/file.c: Likewise.
4280 * kern/i386/dl.c: Likewise.
4281 * kern/i386/pc/init.c: Likewise.
4282 * kern/i386/pc/startup.S: Likewise.
4283 * kern/ieee1275/ieee1275.c: Likewise.
4284 * kern/ieee1275/init.c: Likewise.
4285 * kern/main.c: Likewise.
4286 * kern/mm.c: Likewise.
4287 * kern/powerpc/dl.c: Likewise.
4288 * kern/sparc64/dl.c: Likewise.
4289 * kern/x86_64/dl.c: Likewise.
4290 * lib/hexdump.c: Likewise.
4291 * loader/efi/appleloader.c: Likewise.
4292 * loader/i386/ieee1275/linux.c: Likewise.
4293 * loader/i386/pc/chainloader.c: Likewise.
4294 * loader/i386/pc/linux.c: Likewise.
4295 * loader/i386/pc/multiboot2.c: Likewise.
4296 * loader/ieee1275/multiboot2.c: Likewise.
4297 * loader/multiboot2.c: Likewise.
4298 * loader/multiboot_loader.c: Likewise.
4299 * loader/powerpc/ieee1275/linux.c: Likewise.
4300 * normal/completion.c: Likewise.
4301 * normal/menu_entry.c: Likewise.
4302 * partmap/apple.c: Likewise.
4303 * util/grub.d/10_hurd.in: Likewise.
4304 * util/hostfs.c: Likewise.
4305 * video/readers/png.c: Likewise.
4306
e2d70b5c
CW
43072010-01-03 Colin Watson <cjwatson@ubuntu.com>
4308
4309 * include/grub/misc.h (GNUC_PREREQ): New macro.
4310 (ATTRIBUTE_ERROR): New macro.
4311 * include/grub/list.h (grub_bad_type_cast_real): Use
4312 ATTRIBUTE_ERROR.
4313
a173283f 43142010-01-03 Carles Pina i Estany <carles@pina.cat>
4315
4316 * normal/menu_text.c (print_message): Change messages.
4317
7fa7ff74 43182010-01-03 Carles Pina i Estany <carles@pina.cat>
4319
4320 * normal/menu_entry.c (store_completion): Gettextizze.
4321
136d24f6 43222010-01-03 Carles Pina i Estany <carles@pina.cat>
4323
4324 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
4325
f936862e 43262010-01-03 Carles Pina i Estany <carles@pina.cat>
4327
4328 * po/POTFILES: Sort correctly.
4329
29c44ad1 43302010-01-03 Carles Pina i Estany <carles@pina.cat>
4331
4332 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
4333 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
4334 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
4335 full stop.
4336 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
4337 summary. Gettextizze the strings.
4338 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
4339 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
4340 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
4341 full stop.
4342 (GRUB_MOD_INIT): Remove command name from summary.
4343 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
4344 summary.
4345 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
4346 * term/i386/pc/serial.c (options): Add full stops.
4347 (GRUB_MOD_INIT): Remove command name from the summary.
4348
77a79592 43492010-01-03 Carles Pina i Estany <carles@pina.cat>
4350
4351 * commands/acpi.c: Gettextizze help strings and/or options. Include
4352 `grub/i18n.h' if needed.
4353 * commands/blocklist.c: Likewise.
4354 * commands/boot.c: Likewise.
4355 * commands/cat.c: Likewise.
4356 * commands/cmp.c: Likewise.
4357 * commands/configfile.c: Likewise.
4358 * commands/crc.c: Likewise.
4359 * commands/date.c: Likewise.
4360 * commands/echo.c: Likewise.
4361 * commands/efi/fixvideo.c: Likewise.
4362 * commands/efi/loadbios.c: Likewise.
4363 * commands/gptsync.c: Likewise.
4364 * commands/halt.c: Likewise.
4365 * commands/handler.c: Likewise.
4366 * commands/hdparm.c: Likewise.
4367 * commands/hexdump.c: Likewise.
4368 * commands/i386/cpuid.c: Likewise.
4369 * commands/i386/pc/drivemap.c: Likewise.
4370 * commands/i386/pc/halt.c: Likewise.
4371 * commands/i386/pc/pxecmd.c: Likewise.
4372 * commands/i386/pc/vbeinfo.c: Likewise.
4373 * commands/i386/pc/vbetest.c: Likewise.
4374 * commands/ieee1275/suspend.c: Likewise.
4375 * commands/keystatus.c: Likewise.
4376 * commands/loadenv.c: Likewise.
4377 * commands/ls.c: Likewise.
4378 * commands/lsmmap.c: Likewise.
4379 * commands/lspci.c: Likewise.
4380 * commands/memrw.c: Likewise.
4381 * commands/minicmd.c: Likewise.
4382 * commands/parttool.c: Likewise.
4383 * commands/password.c: Likewise.
4384 * commands/probe.c: Likewise.
4385 * commands/read.c: Likewise.
4386 * commands/reboot.c: Likewise.
4387 * commands/search.c: Likewise.
4388 * commands/sleep.c: Likewise.
4389 * commands/test.c: Likewise.
4390 * commands/true.c: Likewise.
4391 * commands/usbtest.c: Likewise.
4392 * commands/videotest.c: Likewise.
4393 * commands/xnu_uuid.c: Likewise.
4394 * disk/loopback.c: Likewise.
4395 * hello/hello.c: Likewise.
4396 * loader/i386/bsd.c: Likewise.
4397 * term/i386/pc/serial.c: Likewise.
4398 * po/POTFILES: Add new files.
4399
da8d5c53
CW
44002010-01-02 Colin Watson <cjwatson@ubuntu.com>
4401
4402 * term/i386/pc/at_keyboard.c
4403 (keyboard_controller_wait_untill_ready): Rename to ...
4404 (keyboard_controller_wait_until_ready): ... this. Update all users.
4405
33937904 44062010-01-01 Carles Pina i Estany <carles@pina.cat>
4407
4408 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
4409 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
4410 string using string width.
4411 * normal/menu_text.c (grub_print_message_indented): Use
4412 grub_print_spaces and not print_spaces.
4413 (print_timeout): Likewise.
4414 (print_spaces): Move to...
4415 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
4416
3fd3b8d8
RM
44172010-01-01 Robert Millan <rmh.grub@aybabtu.com>
4418
4419 Import from Gnulib.
4420
4421 * gnulib/getdelim.c: New file.
4422 * gnulib/getline.c: Likewise.
4423
33433555
VS
44242009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
4425
4426 * include/grub/list.h (grub_assert_fail): Removed.
4427 (grub_bad_type_cast_real): New function.
4428 (grub_bad_type_cast): New macro.
4429 (GRUB_AS_LIST): Use grub_bad_type_cast.
4430 (GRUB_AS_LIST_P): Likewise.
e44721e8 4431 (GRUB_AS_NAMED_LIST): Likewise.
33433555 4432 (GRUB_AS_NAMED_LIST_P): Likewise.
e44721e8 4433 (GRUB_AS_PRIO_LIST): Likewise.
33433555 4434 (GRUB_AS_PRIO_LIST_P): Likewise.
e44721e8 4435 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
33433555 4436
f5a51306
VS
44372009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
4438
4439 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
4440 Fix syntax error.
4441
90d1e879
RM
44422009-12-29 Robert Millan <rmh.grub@aybabtu.com>
4443
4444 * configure.ac: Check for TARGET_CFLAGS initialization before we
4445 initialize it ourselves (sigh).
4446 Move a few modifications to TARGET_CFLAGS to be unconditional
4447 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
4448 eh_frame)
4449
4450 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
4451 * term/i386/pc/at_keyboard.c
4452 (keyboard_controller_wait_untill_ready): Likewise.
4453 (keyboard_controller_led): Rename `led_status' paramter to avoid
4454 name conflict.
4455
465b5a81 44562009-12-28 Carles Pina i Estany <carles@pina.cat>
4457
4458 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
4459 quotes.
4460
c181849b
VS
44612009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
4462
4463 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
4464
9c8739a4
VS
44652009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
4466
4467 * normal/menu_text.c (grub_print_message_indented): Prevent
4468 past-the-end-of-array dereference.
4469
3e74249c
VS
44702009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
4471
4472 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
4473 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
4474
64fd18ed 44752009-12-27 Carles Pina i Estany <carles@pina.cat>
4476
4477 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
4478 * normal/main.c (grub_normal_read_line): Remove a space from the
4479 default prompt.
4480
714af9b9 44812009-12-27 Carles Pina i Estany <carles@pina.cat>
4482
4483 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
4484 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
4485 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
4486 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
4487 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
4488 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
4489 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
4490
82f3e412 44912009-12-26 Carles Pina i Estany <carles@pina.cat>
c541b01a 4492
4493 * video/readers/jpeg.c (cmd): Declare.
4494 (grub_cmd_jpegtest): Use `grub_command_t' type.
4495 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
4496 Assign to `cmd'.
4497 (GRUB_MOD_FINI): Use `cmd' to unregister.
4498 * video/readers/png.c (cmd): Declare.
4499 (grub_cmd_pngtest): Use `grub_command_t' type.
4500 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
4501 Assign to `cmd'.
4502 (GRUB_MOD_FINI): Use `cmd' to unregister.
4503 * video/readers/tga.c (cmd): Declare.
4504 (grub_cmd_tgatest): Use `grub_command_t' type.
4505 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
4506 Assign to `cmd'.
4507 (GRUB_MOD_FINI): Use `cmd' to unregister.
4508
82f3e412 45092009-12-26 Carles Pina i Estany <carles@pina.cat>
864ba2bb 4510
4511 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
4512 stops.
4513 * kern/corecmd.c (grub_register_core_commands): Likewise.
4514 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
4515 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
4516 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
4517 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
4518 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
4519 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
4520 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
4521 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
4522 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
4523 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
4524 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
4525 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
4526 * normal/handler.c (insert_handler): Likewise.
4527 * normal/main.c (GRUB_MOD_INIT): Likewise.
4528 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
4529
fdcdbb66 45302009-12-26 Carles Pina i Estany <carles@pina.cat>
4531
4532 * commands/help.c (grub_cmd_help): Print the command name before the
4533 summary.
4534 (GRUB_MOD_INIT): Remove command name from the summary.
4535 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
82f3e412 4536 string as summary.
fdcdbb66 4537 * lib/arg.c (find_long): Print the command name before the summary.
4538 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
4539 summary.
4540 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
4541 * commands/cat.c (GRUB_MOD_INIT): Likewise.
4542 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
4543 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
4544 * commands/crc.c (GRUB_MOD_INIT): Likewise.
4545 * commands/date.c (GRUB_MOD_INIT): Likewise.
4546 * commands/echo.c (GRUB_MOD_INIT): Likewise.
4547 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
4548 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
4549 * commands/handler.c (GRUB_MOD_INIT): Likewise.
4550 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
4551 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
4552 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
4553 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
4554 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
4555 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
4556 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
4557 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
4558 * commands/ls.c (GRUB_MOD_INIT): Likewise.
4559 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
4560 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
4561 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
4562 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
4563 * commands/password.c (GRUB_MOD_INIT): Likewise.
4564 * commands/probe.c (GRUB_MOD_INIT): Likewise.
4565 * commands/read.c (GRUB_MOD_INIT): Likewise.
4566 * commands/search.c (GRUB_MOD_INIT): Likewise.
4567 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
4568 * commands/test.c (GRUB_MOD_INIT): Likewise.
4569 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
4570 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
4571 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
4572 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
4573 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
4574 * lib/arg.c (GRUB_MOD_INIT): Likewise.
4575 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
4576 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
4577 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
4578 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
4579 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
4580 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
4581 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
4582 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
4583
9c288be2
VS
45842009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
4585
4586 Use search command for preliminar UUID search.
4587
4588 * commands/search.c: Split into ...
4589 * commands/search_wrap.c: ...this
4590 * commands/search.c: ...and this.
4591 * commands/search_file.c: New file.
4592 * commands/search_label.c: New file.
4593 * commands/search_uuid.c: New file.
4594 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
4595 Add commands/search_wrap.c, commands/search_file.c,
4596 commands/search_label.c and commands/search_uuid.c.
4597 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
4598 (search_mod_SOURCES): Set to commands/search_wrap.c.
4599 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
4600 search_label.mod.
4601 (search_fs_file_mod_SOURCES): New variable.
4602 (search_fs_file_mod_CFLAGS): Likewise.
4603 (search_fs_file_mod_LDFLAGS): Likewise.
4604 (search_label_mod_SOURCES): Likewise.
4605 (search_label_mod_CFLAGS): Likewise.
4606 (search_label_mod_LDFLAGS): Likewise.
4607 (search_fs_uuid_mod_SOURCES): New variable.
4608 (search_fs_uuid_mod_CFLAGS): Likewise.
4609 (search_fs_uuid_mod_LDFLAGS): Likewise.
4610 (fs_file_mod_SOURCES): Removed.
4611 (fs_file_mod_CFLAGS): Likewise.
4612 (fs_file_mod_LDFLAGS): Likewise.
4613 (fs_uuid_mod_SOURCES): Removed.
4614 (fs_uuid_mod_CFLAGS): Likewise.
4615 (fs_uuid_mod_LDFLAGS): Likewise.
4616 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
4617 Set to util/grub-install.in.
4618 * disk/fs_file.c: Removed.
4619 * disk/fs_uuid.c: Likewise.
4620 * include/grub/search.h: New file.
4621 * util/grub-install.in: Handle sparc64.
4622 Create and use load.cfg.
4623 * util/sparc64/ieee1275/grub-install.in: Removed.
4624
db943399
VS
46252009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
4626
4627 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
4628 Ignore return status if CF is cleared.
4629 (grub_biosdisk_get_diskinfo_standard): Likewise.
4630
3fdae612
RM
46312009-12-25 Robert Millan <rmh.grub@aybabtu.com>
4632
4633 * term/i386/pc/at_keyboard.c
4634 (keyboard_controller_wait_untill_ready): New function.
4635 (grub_keyboard_controller_write, grub_keyboard_controller_read)
4636 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
4637 for keyboard polling, rather than duplicate the same loop. This
4638 saves a few bytes in code size.
4639
7ebaa2b4
VS
46402009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
4641
4642 Support for (pxe[:server[:gateway]]) syntax and
4643 use environment variable for PXE.
4644
4645 * commands/i386/pc/pxecmd.c (options): Removed.
4646 (print_ip): Removed.
4647 (grub_cmd_pxe): Removed
4648 (grub_cmd_pxe_unload): New function.
4649 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
4650 (grub_pxe_your_ip): Made static.
4651 (grub_pxe_default_server_ip): Likewise.
4652 (grub_pxe_default_gateway_ip): Likewise.
4653 (grub_pxe_blksize): Likewise.
4654 (parse_ip): New function.
4655 (grub_pxe_open): Support server and gateway specification.
4656 (grub_pxe_close): Free disk->data.
4657 (grub_pxefs_open): Use disk->data.
4658 (grub_pxefs_read): Likewise.
4659 (grub_env_write_readonly): New function.
4660 (set_mac_env): Likewise.
4661 (set_env_limn_ro): Likewise.
4662 (parse_dhcp_vendor): Likewise.
4663 (grub_pxe_detect): Set the environment variables.
4664 (set_ip_env): New function.
4665 (write_ip_env): Likewise.
4666 (grub_env_write_pxe_default_server): Likewise.
4667 (grub_env_write_pxe_default_gateway): Likewise.
4668 (grub_env_write_pxe_blocksize): Likewise.
4669 (GRUB_MOD_INIT(pxe)): Set environment variables.
4670 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
4671 (grub_pxe_mac_addr_t): ... this. All users updated.
4672 (grub_pxe_your_ip): Removed.
4673 (grub_pxe_server_ip): Likewise.
4674 (grub_pxe_gateway_ip): Likewise.
4675 (grub_pxe_blksize): Likewise.
4676
ec5f98ab 46772009-12-25 Carles Pina i Estany <carles@pina.cat>
4678
4679 * commands/help.c: Include `<grub/i18n.h>'.
4680 (grub_cmd_help): Gettextizze.
4681 (GRUB_MOD_INIT): Likewise.
4682 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
4683 (GRUB_MOD_INIT): Gettextizze.
4684 * commands/search.c: Include `<grub/i18n.h>'.
4685 (options): Gettextizze.
4686 (GRUB_MOD_INIT): Gettextizze.
4687 * lib/arg.c: Include `<grub/i18n.h>'.
4688 (help_options): Gettextizze.
4689 (find_long): Likewise.
4690 (grub_arg_show_help): Likewise.
4691 * normal/dyncmd.c: Include `<grub/i18n.h>'.
4692 (read_command_list): Gettextizze.
4693 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
7ebaa2b4 4694 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
ec5f98ab 4695
22815526
RM
46962009-12-25 Robert Millan <rmh.grub@aybabtu.com>
4697
4698 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
4699 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
4700 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
4701 (led_status): New variable.
4702 (keyboard_controller_led): New function.
4703 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
4704 update led status for caps lock, num lock and scroll lock.
4705
0ad46fd7
FZ
47062009-12-25 Felix Zielcke <fzielcke@z-51.de>
4707
4708 * util/hostdisk.c (open_device): Fix a comment.
4709
d0e158c2
RM
47102009-12-24 Robert Millan <rmh.grub@aybabtu.com>
4711
4712 * util/grub-install.in (host_os): New variable.
4713 * util/i386/efi/grub-install.in (host_os): Likewise.
4714
401c0ad6
RM
47152009-12-24 Robert Millan <rmh.grub@aybabtu.com>
4716
4717 * util/mkisofs/write.c (padblock_write): Abort when given an
4718 excedingly large embed image, instead of silently truncating it.
4719
d14d3370
RM
47202009-12-24 Robert Millan <rmh.grub@aybabtu.com>
4721
4722 * include/multiboot.h: Indentation fixes.
4723
eeed10b4
RM
47242009-12-24 Robert Millan <rmh.grub@aybabtu.com>
4725
4726 * include/multiboot.h (struct multiboot_aout_symbol_table)
4727 (struct multiboot_elf_section_header_table): New structure
4728 declarations (stolen from GRUB Legacy).
4729 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
4730 table information.
4731
4732 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
4733 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
4734 type aliases.
4735
681c70ab
RM
47362009-12-24 Robert Millan <rmh.grub@aybabtu.com>
4737
4738 * include/multiboot.h: Make comments src2texi-friendly.
4739
e4d47d8d
RM
47402009-12-24 Robert Millan <rmh.grub@aybabtu.com>
4741
4742 For consistency with [multiboot]/docs/boot.S.
4743
4744 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
4745 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
4746 (MULTIBOOT_MAGIC2): Rename from this ...
4747 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
4748
a0b70bda
RM
47492009-12-24 Robert Millan <rmh.grub@aybabtu.com>
4750
4751 * include/multiboot.h: Remove `<grub/types.h>'.
4752 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
4753 types. Update all users.
4754
61ba42be 47552009-12-25 Carles Pina i Estany <carles@pina.cat>
4756
4757 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
4758 `couldn't' and `can not' by `cannot'.
4759 * commands/i386/pc/drivemap.c: Likewise.
4760 * disk/ata.c: Likewise.
4761 * disk/ieee1275/nand.c: Likewise.
4762 * fs/affs.c: Likewise.
4763 * fs/fat.c: Likewise.
4764 * fs/hfs.c: Likewise.
4765 * fs/hfsplus.c: Likewise.
4766 * fs/iso9660.c: Likewise.
4767 * fs/jfs.c: Likewise.
4768 * fs/minix.c: Likewise.
4769 * fs/reiserfs.c: Likewise.
4770 * fs/sfs.c: Likewise.
4771 * fs/udf.c: Likewise.
4772 * fs/ufs.c: Likewise.
4773 * fs/xfs.c: Likewise.
4774 * loader/powerpc/ieee1275/linux.c: Likewise.
4775 * loader/sparc64/ieee1275/linux.c: Likewise.
4776 * util/grub-probe.c: Likewise.
4777 * util/misc.c: Likewise.
4778
7fd0baee 47792009-12-24 Carles Pina i Estany <carles@pina.cat>
4780
4781 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
4782 grub_errno calls.
4783 * commands/acpi.c: Likewise.
4784 * commands/blocklist.c: Likewise.
4785 * commands/efi/loadbios.c: Likewise.
4786 * commands/i386/pc/drivemap.c: Likewise.
4787 * commands/loadenv.c: Likewise.
4788 * commands/memrw.c: Likewise.
4789 * commands/password.c: Likewise.
4790 * commands/videotest.c: Likewise.
4791 * disk/ata.c: Likewise.
4792 * disk/ata_pthru.c: Likewise.
4793 * disk/dmraid_nvidia.c: Likewise.
4794 * disk/ieee1275/nand.c: Likewise.
4795 * disk/ieee1275/ofdisk.c: Likewise.
4796 * disk/loopback.c: Likewise.
4797 * disk/lvm.c: Likewise.
4798 * disk/mdraid_linux.c: Likewise.
4799 * disk/raid.c: Likewise.
4800 * disk/raid6_recover.c: Likewise.
4801 * disk/scsi.c: Likewise.
4802 * efiemu/main.c: Likewise.
4803 * efiemu/mm.c: Likewise.
4804 * efiemu/pnvram.c: Likewise.
4805 * efiemu/symbols.c: Likewise.
4806 * font/font.c: Likewise.
4807 * fs/cpio.c: Likewise.
4808 * fs/hfsplus.c: Likewise.
4809 * fs/iso9660.c: Likewise.
4810 * fs/jfs.c: Likewise.
4811 * fs/minix.c: Likewise.
4812 * fs/ntfs.c: Likewise.
4813 * fs/ntfscomp.c: Likewise.
4814 * fs/reiserfs.c: Likewise.
4815 * fs/ufs.c: Likewise.
4816 * fs/xfs.c: Likewise.
4817 * gettext/gettext.c: Likewise.
4818 * include/grub/auth.h: Likewise.
4819 * kern/elf.c: Likewise.
4820 * kern/file.c: Likewise.
4821 * kern/ieee1275/init.c: Likewise.
4822 * kern/ieee1275/mmap.c: Likewise.
4823 * kern/ieee1275/openfw.c: Likewise.
4824 * kern/powerpc/dl.c: Likewise.
4825 * kern/sparc64/dl.c: Likewise.
4826 * lib/arg.c: Likewise.
4827 * loader/i386/bsd.c: Likewise.
4828 * loader/i386/bsdXX.c: Likewise.
4829 * loader/i386/efi/linux.c: Likewise.
4830 * loader/i386/efi/xnu.c: Likewise.
4831 * loader/i386/ieee1275/linux.c: Likewise.
4832 * loader/i386/linux.c: Likewise.
4833 * loader/i386/multiboot.c: Likewise.
4834 * loader/i386/pc/linux.c: Likewise.
4835 * loader/i386/pc/multiboot2.c: Likewise.
4836 * loader/i386/xnu.c: Likewise.
4837 * loader/ieee1275/multiboot2.c: Likewise.
4838 * loader/macho.c: Likewise.
4839 * loader/machoXX.c: Likewise.
4840 * loader/multiboot2.c: Likewise.
4841 * loader/multiboot_loader.c: Likewise.
4842 * loader/powerpc/ieee1275/linux.c: Likewise.
4843 * loader/sparc64/ieee1275/linux.c: Likewise.
4844 * loader/xnu.c: Likewise.
4845 * loader/xnu_resume.c: Likewise.
4846 * mmap/i386/pc/mmap.c: Likewise.
4847 * normal/menu_viewer.c: Likewise.
4848 * partmap/acorn.c: Likewise.
4849 * partmap/amiga.c: Likewise.
4850 * partmap/apple.c: Likewise.
4851 * script/lexer.c: Likewise.
4852 * term/gfxterm.c: Likewise.
4853 * term/i386/pc/serial.c: Likewise.
4854 * term/i386/pc/vga.c: Likewise.
4855 * term/ieee1275/ofconsole.c: Likewise.
4856 * term/terminfo.c: Likewise.
4857 * video/bitmap.c: Likewise.
4858 * video/efi_gop.c: Likewise.
4859 * video/efi_uga.c: Likewise.
4860 * video/fb/video_fb.c: Likewise.
4861 * video/i386/pc/vbe.c: Likewise.
4862 * video/readers/tga.c: Likewise.
4863 * video/video.c: Likewise.
4864
0ad46fd7 48652009-12-23 Felix Zielcke <fzielcke@z-51.de>
a2c1332b
FZ
4866
4867 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
4868 * commands/lspci.c: Likewise.
4869 * commands/probe.c: Likewise.
4870 * commands/xnu_uuid.c: Likewise.
4871 * conf/i386-coreboot.rmk: Likewise.
4872 * conf/i386-efi.rmk: Likewise.
4873 * conf/i386-ieee1275.rmk: Likewise.
4874 * conf/i386-pc.rmk: Likewise.
4875 * conf/powerpc-ieee1275.rmk: Likewise.
4876 * conf/sparc64-ieee1275.rmk: Likewise.
4877 * conf/x86_64-efi.rmk: Likewise.
4878 * fs/i386/pc/pxe.c: Likewise.
4879 * gettext/gettext.c: Likewise.
4880 * include/grub/efi/graphics_output.h: Likewise.
4881 * include/grub/i386/pc/memory.h: Likewise.
4882 * kern/env.c: Likewise.
4883 * kern/i386/qemu/startup.S: Likewise.
4884 * lib/i386/pc/biosnum.c: Likewise.
4885 * lib/i386/relocator.c: Likewise.
4886 * lib/i386/relocator_asm.S: Likewise.
4887 * lib/relocator.c: Likewise.
4888 * loader/i386/bsd.c: Likewise.
4889 * loader/i386/multiboot.c: Likewise.
4890 * loader/i386/pc/chainloader.c: Likewise.
4891 * loader/i386/xnu.c: Likewise.
4892 * loader/xnu.c: Likewise.
4893 * normal/main.c: Likewise.
4894 * normal/menu_text.c: Likewise.
4895 * util/getroot.c: Likewise.
4896 * util/grub-mkconfig_lib.in: Likewise.
4897 * util/grub.d/00_header.in: Likewise.
4898 * util/i386/pc/grub-mkimage.c: Likewise.
4899 * util/mkisofs/eltorito.c: Likewise.
4900 * util/mkisofs/exclude.h: Likewise.
4901 * util/mkisofs/hash.c: Likewise.
4902 * util/mkisofs/iso9660.h: Likewise.
4903 * util/mkisofs/joliet.c: Likewise.
4904 * util/mkisofs/mkisofs.c: Likewise.
4905 * util/mkisofs/mkisofs.h: Likewise.
4906 * util/mkisofs/multi.c: Likewise.
4907 * util/mkisofs/name.c: Likewise.
4908 * util/mkisofs/rock.c: Likewise.
4909 * util/mkisofs/tree.c: Likewise.
4910 * util/mkisofs/write.c: Likewise.
4911 * video/efi_gop.c: Likewise.
4912
009ec743
VS
49132009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
4914
4915 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
4916 size counting.
4917
0ad46fd7 49182009-12-22 Felix Zielcke <fzielcke@z-51.de>
990f3548
FZ
4919
4920 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
4921 * genmk.rb (class SCRIPT): Modify the target file instead of source.
4922
d3d30ea0
VS
49232009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
4924
4925 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
4926 (GRUB_MOD_INIT(memrw)): Update help line.
4927
a34f5c70
VS
49282009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
4929
4930 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
4931 Use grub_extcmd_t. All users updated.
4932 (options): New variable.
4933 (grub_cmd_read): Restructure for readability. Support "-v" option.
4934 (grub_cmd_write): Restructure for readability.
4935
0ad46fd7 49362009-12-22 Felix Zielcke <fzielcke@z-51.de>
67618ea6
FZ
4937
4938 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
4939
0ad46fd7 49402009-12-22 Felix Zielcke <fzielcke@z-51.de>
10a88797
FZ
4941
4942 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
4943 with the actual contents of the correspondending make variable.
4944 * util/grub-mkrescue.in (pkglib_DATA): New variable.
4945 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
4946 specifying `*.lst' and `efiemu??.o'
4947
0ad46fd7 49482009-12-22 Felix Zielcke <fzielcke@z-51.de>
7e70dfff
FZ
4949
4950 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
4951 after function name.
4952 Noticed by Rene Engelhard <rene@debian.org>.
4953
dc77a799
VS
49542009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
4955
4956 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
4957 (options): New variable.
4958 (iospace): Likewise.
4959 (grub_lspci_iter): List IO spaces if "-i" was given.
4960 (grub_cmd_lspci): Parse options.
4961 (GRUB_MOD_INIT(lspci)): Use extcmd.
4962 (GRUB_MOD_FINI(lspci)): Likewise.
4963
0ad46fd7 49642009-12-22 Felix Zielcke <fzielcke@z-51.de>
82000aa2
FZ
4965
4966 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
4967 `function' keyword.
4968 Patch by Tony Mancill <tmancill@debian.org>.
4969
b5d5993b
VS
49702009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
4971
4972 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
4973 (grub_uhci_portstatus): Likewise.
4974 (grub_uhci_portstatus): Add necessary delay.
11d18281 4975 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
b5d5993b 4976
941903f2 49772009-12-21 Carles Pina i Estany <carles@pina.cat>
b5d5993b 4978
941903f2 4979 * commands/acpi.c (options): Fix capitalizations and/or full stops.
4980 (GRUB_MOD_INIT): Likewise.
4981 * commands/boot.c (GRUB_MOD_INIT): Likewise.
cb04503e 4982 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
4983 * commands/echo.c (options): Fix capitalizations and/or full stops.
941903f2 4984 * commands/efi/loadbios.c (enable_rom_area): Likewise.
4985 (enable_rom_area): Likewise.
4986 (GRUB_MOD_INIT): Likewise.
4987 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
4988 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
4989 * commands/handler.c (GRUB_MOD_INIT): Likewise.
4990 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
4991 * commands/hexdump.c (options): Likewise.
4992 * commands/i386/cpuid.c (options): Likewise.
4993 (GRUB_MOD_INIT): Likewise.
4994 * commands/i386/pc/drivemap.c (options): Likewise.
4995 (GRUB_MOD_INIT): Likewise.
4996 * commands/i386/pc/halt (options): Likewise.
4997 (GRUB_MOD_INIT): Likewise.
4998 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
4999 * commands/i386/pc/pxecmd.c (options): Likewise.
5000 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
5001 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
5002 * commands/keystatus.c (options): Likewise.
5003 (GRUB_MOD_INIT): Likewise.
5004 * commands/loadenv.c (options): Likewise.
5005 * commands/ls.c (options): Likewise.
5006 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
5007 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
5008 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
5009 * commands/parttool.c (helpmsg): Likewise.
5010 * commands/probe.c (options): Likewise.
5011 * commands/read.c (GRUB_MOD_INIT): Likewise.
5012 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
5013 * commands/search.c (options): Likewise.
5014 * commands/sleep.c (options): Likewise.
5015 * commands/test.c (GRUB_MOD_INIT): Likewise.
5016 * commands/true.c (GRUB_MOD_INIT): Likewise.
5017 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
5018 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
5019 * lib/arg.c (help_options): Likewise.
e9bbb4e7 5020 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
5021 `$(XGETTEXT)'.
98a50553 5022 * po/POTFILES: Add `commands/loadenv.c'.
941903f2 5023
0ad46fd7 50242009-12-21 Felix Zielcke <fzielcke@z-51.de>
4dd13225 5025
ef3c2c3a 5026 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
4dd13225
FZ
5027 instead of specifying them explicit.
5028
7922f68b
RM
50292009-12-21 Robert Millan <rmh.grub@aybabtu.com>
5030
5031 * NEWS: Add grub-probe support for GNU/Hurd.
5032
537ce47f
RM
50332009-12-21 Robert Millan <rmh.grub@aybabtu.com>
5034
5035 * NEWS: gettext was added after 1.97.
5036
9b214e3a
RM
50372009-12-21 Robert Millan <rmh.grub@aybabtu.com>
5038
5039 * util/mkisofs/msdos_partition.h: New file (based on
5040 include/grub/msdos_partition.h).
5041 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
5042 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
5043 (ld_options, main): Recognize --protective-msdos-label.
5044 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
5045 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
5046 (padblock_write): If `use_protective_msdos_label' is set, patch a
5047 protective DOS-style label in the output image.
5048
5049 * util/grub-mkrescue.in: Use --protective-msdos-label.
5050
e9309813
RM
50512009-12-21 Robert Millan <rmh.grub@aybabtu.com>
5052
5053 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
5054 boot.
5055
0ae56929
RM
50562009-12-21 Robert Millan <rmh.grub@aybabtu.com>
5057
5058 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
5059 variables.
5060 (ld_options, main): Recognize `--embedded-boot'.
5061 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
5062 declarations.
5063 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
5064 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
5065 (padblock_write): Likewise. Rewrite to support embedded boot image.
5066
5067 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
5068 for BIOS-based disk boot instead of only ElTorito.
5069
b15937b1
RM
50702009-12-21 Robert Millan <rmh.grub@aybabtu.com>
5071
5072 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
5073 build (not needed for bootstrap).
5074
52cc3ce0
RM
50752009-12-21 Robert Millan <rmh.grub@aybabtu.com>
5076
5077 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
5078 from i386-pc build (not needed for bootstrap).
5079 Rewrite a pair of strings.
5080
36f5ff04
RM
50812009-12-21 Robert Millan <rmh.grub@aybabtu.com>
5082
5083 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
5084
973c6c85 50852009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
b07e53f0
VS
5086
5087 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
5088
05d21547
AB
50892009-12-21 Andreas Born <futur.andy@googlemail.com>
5090
5091 * kern/env.c (grub_env_context_open): Mark exported variable for
5092 reexport.
5093
0175d51f
AB
50942009-12-21 Andreas Born <futur.andy@googlemail.com>
5095
5096 * kern/env.c (grub_env_export): Create nonexistent variables before
5097 exporting.
5098
7f39d92f 50992009-12-20 Carles Pina i Estany <carles@pina.cat>
0175d51f 5100
7f39d92f 5101 * include/grub/auth.h: Include `<grub/i18n.h>'.
5102 (GRUB_GET_PASSWORD): Gettextizze string.
5103 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
5104 menu_text.c.
5105 (grub_utf8_to_ucs4_alloc): Fix indentation.
5106 (grub_print_ucs4): Likewise.
5107 (grub_getstringwidth): Likewise.
5108 (print_message_indented): New declaration.
5109 * normal/auth.c: Include `<grub/i18n.h>'.
5110 (grub_auth_check_authentication): Gettexttize string.
5111 * normal/cmdline.c: Include `<grub/i18n.h>'.
5112 (grub_cmdline_get): Gettextizze.
5113 * normal/color.c: Include `<grub/i18n.h>'.
5114 (grub_parse_color_name_pair): Gettexttize strings.
5115 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
5116 string (use `print_message_indented').
5117 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
5118 `include/grub/normal.h'.
5119 (print_message_indented): Renamed to ...
5120 (grub_print_message_indented): ... this. Remove `static' qualifer (now
5121 used in normal/main.c).
5122 (print_message): Use `grub_print_message_indented' instead of
5123 `print_message_indented'.
5124 (print_timeout): Likewise.
5125 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
5126 (grub_normal_print_device_info): Gettexttize strings.
5127 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
5128
3041d898
VS
51292009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
5130
5131 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
5132 of arguments. Return number of tokens and not arguments. All users
5133 updated.
5134
de15bf8e
VS
51352009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
5136
5137 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
5138 non-MSDOS paritions.
5139
e0a6ca52
VS
51402009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
5141
5142 * include/grub/types.h (UNUSED): Removed since it conflicts with
5143 NetBSD headers. All users changed to direct __attribute__ ((unused)).
5144 Reported by Grégoire Sutre.
5145
b99518d1 51462009-12-19 Carles Pina i Estany <carles@pina.cat>
5147
5148 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
5149 (grub_print_ucs4_alloc): Likewise.
5150 (grub_getstringwidth): Likewise.
5151 * normal/main.c (grub_normal_init_page): Gettextize version string.
5152 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
5153 (getstringwidth): Renamed to ...
5154 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
5155 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
5156 (grub_print_ucs4): Remove `static' qualifer (now used in
5157 normal/main.c).
5158 * po/POTFILES: Add normal/main.c.
5159
bfd5e52b 51602009-12-19 Carles Pina i Estany <carles@pina.cat>
5161
5162 * normal/menu_text.c (STANDARD_MARGIN): New macro.
5163 (print_message_indented): Add `margin_left' and `margin_right'
5164 parameters.
5165 (print_message): Update `print_message_indented' calls. Adds '\n' to the
5166 strings.
5167 (print_timeout): Use `print_message_indented' to print the message.
5168 Deletes `second_stage' parameter.
5169 (run_menu): Update `print_timeout' calls.
5170
5a1ad2b9
VS
51712009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
5172
5173 Fix console palette on OpenFirmware.
5174
5175 * term/ieee1275/ofconsole.c (MAX): Removed.
5176 (colors): Redone based on VGA palette.
5177 (grub_ofconsole_setcolor): Discard brightness bit since only 8
5178 colors are supported.
5179 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
5180
b045f00a
VS
51812009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
5182
5183 Fix potential EfiEmu double prepare.
5184
5185 * efiemu/main.c (prepared): New variable
5186 (grub_efiemu_unload): Set prepare to '0'.
5187 (grub_efiemu_prepare): Return if already prepared. Set prepared.
5188
5189 set_virtual_address_map support.
5190
5191 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
5192 prototype.
5193 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
5194 prototype.
5195 (grub_efiemu_crc32): Likewise.
5196 (grub_efiemu_crc64): Likewise.
5197 (grub_efiemu_set_virtual_address_map): Likewise.
5198 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
5199 New definition.
5200 (grub_autoefi_set_virtual_address_map): Likewise.
5201 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
5202 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
5203 Restructure flow to accomodate it.
5204 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
5205 (grub_efiemu_crc): Recompute CRC32.
5206 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
5207 (efiemu_ptv_relocated): ... this. Made global. All users updated.
5208 * efiemu/symbols.c (relocated_handle): New variable.
5209 (grub_efiemu_free_syms): Free relocated_handle.
5210 (grub_efiemu_alloc_syms): Allocate relocated_handle.
5211 (grub_efiemu_write_sym_markers): New function.
5212 (grub_efiemu_set_virtual_address_map): Likewise.
5213
5214 Newer XNU parameters.
5215
5216 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
5217 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
5218 (grub_xnu_fill_devicetree): New prototype.
5219 (grub_xnu_heap_real_start): New variable.
5220 * loader/xnu.c (get_name_ptr): New function.
5221 (grub_xnu_load_driver): Fill namelen and name.
5222
5223 64-bit xnu support.
5224
5225 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
5226 and 'loader/macho64.c'.
5227 * conf/i386-pc.rmk: Likewise.
5228 * conf/x86_64-efi.rmk: Likewise.
5229 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
5230 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
5231 * include/grub/macho.h (grub_macho_segment64): New structure.
5232 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
5233 (grub_macho_size32): ... to this.
5234 (grub_macho32_get_entry_point): Renamed from ...
5235 (grub_macho_get_entry_point32): ... to this.
5236 (grub_macho_contains_macho64): New prototype.
5237 (grub_macho_size64): Likewise.
5238 (grub_macho_get_entry_point64): Likewise.
5239 (grub_macho32_load): Renamed from ...
5240 (grub_macho_load32): ... to this.
5241 (grub_macho32_filesize): Renamed from ...
5242 (grub_macho_filesize32): ... to this.
5243 (grub_macho32_readfile): Renamed from ...
5244 (grub_macho_readfile32): ... to this.
5245 (grub_macho_filesize64): New prototype.
5246 (grub_macho_readfile64): Likewise.
5247 (grub_macho_parse32): Likewise.
5248 (grub_macho_parse64): Likewise.
5249 * loader/macho.c: Split into ...
5250 * loader/machoXX.c: ... and this. Replace 32 with XX.
5251 * loader/macho32.c: New file.
5252 * loader/macho64.c: Likewise.
5253 * loader/xnu.c (grub_xnu_is_64bit): New variable.
5254 (grub_cmd_xnu_kernel): Make 32-bit only.
5255 (grub_cmd_xnu_kernel64): New function.
5256 (grub_xnu_load_driver): Support Mach-O 64.
5257 (grub_cmd_xnu_mkext): Likewise.
5258 * util/grub.d/30_os-prober.in (osx_entry): New function.
5259 Generate entries for 64-bit boot too.
5260
5261 Eliminate ad-hoc tree format in XNU and EfiEmu.
5262
5263 * efiemu/main.c (grub_efiemu_prepare): Update comment.
5264 * efiemu/pnvram.c: Rewritten to use environment variables.
5265 All users updated.
5266
5267 Inline utf16_to_utf8.
5268
5269 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
5270 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
5271 All users updated.
5272 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
5273
5274 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
5275 * commands/usbtest.c (grub_usb_get_string): ... move here.
5276 (usb_print_str): Fix error handling.
5277 * include/grub/usb.h (grub_usb_get_string): Remove.
5278
5279 UTF-8 to UTF-16 transformation.
5280
5281 * conf/common.rmk (pkglib_MODULES): Add charset.mod
5282 (charset_mod_SOURCES): New variable.
5283 (charset_mod_CFLAGS): Likewise.
5284 (charset_mod_LDFLAGS): Likewise.
5285 * include/grub/utf.h: New file.
5286 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
5287
5288 Support for device properties.
5289
5290 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
5291 (grub_xnu_devprop_device_header): Likewise.
5292 (grub_xnu_devprop_device_descriptor): Likewise.
5293 (grub_xnu_devprop_add_device): New prototype.
5294 (grub_xnu_devprop_remove_device): Likewise.
5295 (grub_xnu_devprop_remove_property): Likewise.
5296 (grub_xnu_devprop_add_property_utf8): Likewise.
5297 (grub_xnu_devprop_add_property_utf16): Likewise.
5298 (grub_cpu_xnu_init): Likewise.
5299 (grub_cpu_xnu_fini): Likewise.
5300 (grub_cpu_xnu_unload): Likewise.
5301 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
5302 (property_descriptor): Likewise.
5303 (devices): New variable.
5304 (grub_xnu_devprop_remove_property): New function.
5305 (grub_xnu_devprop_add_device): Likewise.
5306 (grub_xnu_devprop_remove_device): Likewise.
5307 (grub_xnu_devprop_add_property): Likewise.
5308 (grub_xnu_devprop_add_property_utf8): Likewise.
5309 (grub_xnu_devprop_add_property_utf16): Likewise.
5310 (hextoval): Likewise.
5311 (grub_cpu_xnu_fill_devprop): Likewise.
5312 (grub_cmd_devprop_load): Likewise.
5313 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
5314 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
5315 (cmd_devprop_load): New variable.
5316 (grub_cpu_xnu_init): New function.
5317 (grub_cpu_xnu_fini): Likewise.
5318 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
5319 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
5320 (grub_cmd_xnu_devtree): Likewise.
5321 (hextoval): New function.
5322 (unescape): Likewise.
5323 (grub_xnu_fill_devicetree): Likewise.
5324
5325 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
5326 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
5327
0945f181
VS
53282009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
5329
5330 Workaround for broken ATI VBE.
5331
5332 * video/i386/pc/vbe.c (last_set_mode): New variable.
5333 (grub_vbe_set_video_mode): Set 'last_set_mode'.
5334 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
5335 (grub_video_vbe_setup): Don't check for reserved flag.
5336
0ad46fd7 53372009-12-17 Felix Zielcke <fzielcke@z-51.de>
0297aafb
FZ
5338
5339 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
5340 the `find' command.
5341
c179ebe4
VS
53422009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
5343
5344 UUID support for HFS.
5345
5346 * fs/hfs.c (grub_hfs_uuid): New function.
5347 (grub_hfs_fs): New value .uuid.
5348 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
5349
0ad46fd7 53502009-12-14 Felix Zielcke <fzielcke@z-51.de>
574cce0c
FZ
5351
5352 Fix a segfault with parsing unknown long options.
5353
5354 * util/grub-mkrelpath.c (options): Zero terminate it.
5355
c4a3e41a
CPE
53562009-12-13 Carles Pina i Estany <carles@pina.cat>
5357
5358 * include/grub/misc.h (grub_puts): New declaration.
5359 (grub_puts_): Likewise.
a22008a6 5360 * kern/misc.c (grub_puts): New definition.
c4a3e41a
CPE
5361 (grub_puts_): Likewise.
5362
2e8a7602
RM
53632009-12-13 Robert Millan <rmh.grub@aybabtu.com>
5364
5365 * util/grub-probe.c (probe): Improve error message.
5366
b50b77b9
RM
53672009-12-13 Robert Millan <rmh.grub@aybabtu.com>
5368
5369 * loader/i386/multiboot_elfxx.c
5370 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
5371 initialization.
5372
53732009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
5374
5375 Relocator framework
5376
5377 * loader/i386/xnu_helper.S: Removed. All users updated.
5378 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
5379 (relocator_mod_SOURCES): New variable.
5380 (relocator_mod_CFLAGS): Likewise.
5381 (relocator_mod_LDFLAGS): Likewise.
5382 (relocator_mod_ASFLAGS): Likewise.
5383 * conf/x86_64.rmk: Likewise.
5384 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
5385 (grub_multiboot_payload_entry_offset): Likewise.
5386 (grub_multiboot_forward_relocator): Likewise.
5387 (grub_multiboot_forward_relocator_end): Likewise.
5388 (grub_multiboot_backward_relocator): Likewise.
5389 (grub_multiboot_backward_relocator_end): Likewise.
5390 (grub_multiboot_payload_eip): New variable.
5391 (grub_multiboot_payload_orig): Likewise.
5392 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
5393 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
5394 * include/grub/i386/memory.h
5395 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
5396 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
5397 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
5398 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
5399 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
5400 * include/grub/i386/relocator.h: New file.
5401 * include/grub/x86_64/relocator.h: Likewise.
5402 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
5403 (XNU_RELOCATOR): New macro.
5404 (grub_xnu_launcher_start): Remove.
5405 (grub_xnu_launcher_end): Likewise.
5406 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
5407 (grub_xnu_heap_real_start): Remove.
5408 (grub_xnu_heap_start): Change to void *. All users updated.
5409 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
5410 * lib/i386/relocator.c: New file.
5411 * lib/i386/relocator_asm.S: Likewise.
5412 * lib/i386/relocator_backward.S: Likewise.
5413 * lib/mips/relocator.c: Likewise.
5414 * lib/mips/relocator_asm.S: Likewise.
5415 * lib/relocator.c: Likewise.
5416 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
5417 (entry): Removed.
5418 (playground): Likewise.
5419 (grub_multiboot_payload_orig): New variable.
5420 (grub_multiboot_payload_dest): Likewise.
5421 (grub_multiboot_payload_size): Likewise.
5422 (grub_multiboot_payload_eip): Likewise.
5423 (grub_multiboot_payload_esp): Likewise.
5424 (grub_multiboot_boot): Use grub_relocator32_boot.
5425 (grub_multiboot_unload): Free relocators.
5426 (grub_multiboot): Setup stack. Use relocators.
5427 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
5428 (grub_multiboot_load_elfXX): Use relocators.
5429 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
5430 (grub_multiboot_payload_size): Likewise.
5431 (grub_multiboot_payload_dest): Likewise.
5432 (grub_multiboot_payload_entry_offset): Likewise.
5433 (grub_multiboot_forward_relocator): Likewise.
5434 (grub_multiboot_backward_relocator): Likewise.
5435 (grub_multiboot_real_boot): Likewise.
5436 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
5437 (grub_xnu_entry_point): Likewise.
5438 (grub_xnu_arg1): Likewise.
5439 (grub_xnu_stack): Likewise.
5440 (grub_xnu_launch): Removed.
5441 (grub_xnu_boot_resume): New function.
5442 (grub_xnu_boot): Use relocators.
5443 * loader/i386/xnu_helper.S: Removed.
5444 * loader/xnu.c (grub_xnu_heap_start): New variable.
5445 (grub_xnu_heap_size): Likewise.
5446 (grub_xnu_heap_malloc): Use relocators.
5447 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
5448
29eb90c6
VS
54492009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
5450
5451 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
5452 anything.
5453
31027430
CPE
54542009-12-13 Carles Pina i Estany <carles@pina.cat>
5455
5456 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
5457 GRUB_ERR_NONE before calling grub_env_set.
5458
dc0c71d9
RM
54592009-12-12 Robert Millan <rmh@aybabtu.com>
5460
5461 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
5462 * genmk.rb (video): New variable.
5463 (CLEANFILES, VIDEOFILES): Add #{video}.
5464 (#{video}): New target rule.
5465 * genvideolist.sh: New file.
5466 * Makefile.in (pkglib_DATA): Add video.lst.
5467 (video.lst): New target rule.
5468 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
5469 `video.lst'.
5470 * util/grub.d/30_os-prober.in: Replace `vbe' with
5471 ${GRUB_VIDEO_BACKEND}.
5472
2a4bfcf0
RM
54732009-12-11 Robert Millan <rmh.grub@aybabtu.com>
5474
5475 * THANKS: Add David Miller.
5476
2a3aa4d5
RM
54772009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
5478
5479 libpciaccess support.
5480
5481 * Makefile.in (LIBPCIACCESS): New variable.
5482 (enable_grub_emu_pci): Likewise.
5483 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
5484 util/pci.c and commands/lspci.c.
5485 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
5486 * configure.ac (grub-emu-pci): New option.
5487 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
5488 (grub_pci_device_unmap_range): Likewise.
5489 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
5490 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
5491 (grub_pci_address_t) [!GRUB_UTIL]: New type.
5492 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
5493 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
5494 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
5495 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
5496 * include/grub/pciutils.h: New file.
5497 * util/pci.c: Likewise.
5498
0ad46fd7 54992009-12-11 Felix Zielcke <fzielcke@z-51.de>
8d0502d9
FZ
5500
5501 * util/misc.c: Don't include <errno.h> twice.
5502
0ad46fd7 55032009-12-10 Felix Zielcke <fzielcke@z-51.de>
0d56ed64
FZ
5504
5505 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
5506 name in an error message.
5507 (grub_biosdisk_rw): Likewise.
5508
2e59983c
VS
55092009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
5510
5511 Eliminate NTFS 4Gib barrier.
5512
5513 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
5514 (read_run_data): Likewise.
5515 (grub_ntfs_read_run_list): Likewise.
5516 (grub_ntfs_read_block): Likewise.
5517 (grub_ntfs_iterate_dir): Likewise.
5518 (read_mft): Likewise.
5519 (read_data): Likewise.
5520 Use COM_LOG_LEN.
5521 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
5522 to avoid 64-bit division
5523 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
5524 (grub_ntfs_rlst): Use grub_disk_addr_t.
5525
71ee178a
VS
55262009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
5527
5528 Eliminate grub-fstest 4Gib barrier.
5529
5530 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
5531 (read_file): Fix error reporting.
5532
2520d4b8
VS
55332009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
5534
5535 Eliminate hexdump 4Gib barrier.
5536
5537 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
5538 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
5539
e1f27065
VS
55402009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
5541
5542 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
5543 Fixes amarsh bug.
5544
1a0f7f45
RM
55452009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
5546
5547 Remove miscellaneous files in distclean target.
5548
5549 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
5550
c631d9fb
CW
55512009-12-09 Colin Watson <cjwatson@ubuntu.com>
5552
5553 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
5554 if they're already set. This resolves the conflict between my
5555 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
5556 fixing the --grub-probe option again.
5557 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
5558 change on 2009-10-06, so that we now once again source
5559 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
5560
7c7b6106
RM
55612009-12-08 Robert Millan <rmh.grub@aybabtu.com>
5562
5563 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
5564 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
5565 `util/devicemap.c'.
5566
e3069ec1
CPE
55672009-12-08 Carles Pina i Estany <carles@pina.cat>
5568
5569 * include/grub/misc.h (grub_printf_): New declaration.
5570 * kern/misc.c (grub_printf_): New definition.
5571 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
5572 instead of `grub_printf' and `_'.
5573 * normal/menu_entry.c (store_completion): Likewise.
5574 (run): Likewise.
5575 (grub_menu_entry_run): Likewise.
5576 * normal/menu_text.c (grub_wait_after_message): Likewise.
5577 (notify_booting): Likewise.
5578 (notify_fallback): Likewise.
5579 (notify_execution_failure): Likewise.
5580
d6ceebf1
CW
55812009-12-07 Colin Watson <cjwatson@ubuntu.com>
5582
5583 * configure.ac: Check for vasprintf.
5584 * util/misc.c (asprintf): Move allocation from here ...
5585 (vasprintf): ... to here. New function.
5586 (xasprintf): New function.
5587 * include/grub/util/misc.h (vasprintf, xasprintf): Add
5588 prototypes.
5589 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
5590 * util/grub-mkfont.c (write_font): Likewise.
5591 * util/grub-probe.c (probe): Likewise.
5592 * util/hostdisk.c (make_device_name): Likewise.
5593
de6daa8b
DM
55942009-12-06 David S. Miller <davem@sunset.davemloft.net>
5595
5596 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
5597 anything even prefixed with 'cdrom' as a cdrom.
5598
0ad46fd7 55992009-12-06 Felix Zielcke <fzielcke@z-51.de>
df91e679
FZ
5600
5601 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
5602 mount points.
5603
98d3dc02
CPE
56042009-12-05 Carles Pina i Estany <carles@pina.cat>
5605
5606 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
5607 grub_gettext_msg_list.
5608 (grub_gettext_gettranslation_from_position): Return const char *
5609 and not char *.
a2c1332b 5610 (grub_gettext_translate): Add the translated strings into a list,
98d3dc02
CPE
5611 returns from the list if existing there.
5612 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
5613 (grub_gettext_delete_list): Delete the list.
5614 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
5615 lang environment variable is changed.
5616 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
5617
b283f108
VS
56182009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
5619
5620 Rename kernel.mod to kernel.img.
5621
5622 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
5623 (kernel_mod_EXPORTS): Rename to ...
5624 (kernel_img_EXPORTS): ... this.
5625 (kernel_mod_SOURCES): Rename to ...
5626 (kernel_img_SOURCES): ... this.
5627 (kernel_mod_HEADERS): Rename to ...
5628 (kernel_img_HEADERS): ... this. All users updated.
5629 (kernel_mod_CFLAGS): Rename to ...
5630 (kernel_img_CFLAGS): ... this.
5631 (kernel_mod_ASFLAGS): Rename to ...
5632 (kernel_img_ASFLAGS): ... this.
5633 (kernel_mod_LDFLAGS): Rename to ...
5634 (kernel_img_LDFLAGS): ... this.
5635 * conf/x86_64-efi.rmk: Likewise.
5636 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
5637 (read_kernel_image): ... this. All users updated.
5638 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
5639
69055f8a
CPE
56402009-12-05 Carles Pina i Estany <carles@pina.cat>
5641
5642 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
5643 (print_spaces): New function.
5644 (grub_print_ucs4): New function.
5645 (getstringwidth): New function.
5646 (print_message_indented): New function.
5647 (print_message): Gettexttize strings using print_message_indented.
5648 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
5649 width.
5650 (get_entry_number): Gettextize and uses dynamic terminal width.
a2c1332b 5651 (notify_booting, notify_fallback, notify_execution_failure):
69055f8a
CPE
5652 Gettextize.
5653 * normal/menu_entry.c (store_completion): Cleanup the gettextized
5654 string.
5655 (run): Likewise.
5656 (grub_menu_entry_run): Likewise.
5657 * PO/POTFILES: Add normal/menu_entry.c.
5658
f616f51c
VS
56592009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
5660
5661 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
5662
57bbe3be
CPE
56632009-12-05 Carles Pina i Estany <carles@pina.cat>
5664
5665 * util/grub-install.in: Install gettext .mo files.
5666 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
5667
013d67a1
CPE
56682009-12-05 Carles Pina i Estany <carles@pina.cat>
5669
5670 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
5671 grub_dprintf.
5672
fb954db0
RM
56732009-12-05 Robert Millan <rmh.grub@aybabtu.com>
5674
5675 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
5676 non-firmware-dependant one in realmode.S takes precedence.
5677
6b8474f8
RM
56782009-12-04 Robert Millan <rmh.grub@aybabtu.com>
5679
5680 * commands/halt.c: Replace misc arch-specific headers with
5681 `<grub/misc.h>'.
5682 * commands/reboot.c: Likewise.
5683 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
5684 `<grub/misc.h>'.
5685 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
5686 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
5687 (kernel_img_SOURCES): ... to here.
5688
5689 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
5690 * include/grub/i386/pc/init.h: Likewise.
5691 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
5692 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
5693
5694 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
5695
5696 * include/grub/i386/halt.h: Remove.
5697 * include/grub/i386/reboot.h: Likewise.
5698
5699 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
5700
4b2e6ca2
DM
57012009-12-03 David S. Miller <davem@sunset.davemloft.net>
5702
5703 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
5704 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
5705 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
5706 "progname.h"
5707 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
5708 * util/sparc64/ieee1275/grub-setup.c: Likewise.
5709 (usage): Add missing comma in printf.
5710
5239348f
RM
57112009-12-02 Robert Millan <rmh.grub@aybabtu.com>
5712
5713 Use the same reboot approach on i386 coreboot and qemu as we do on
5714 BIOS.
5715
5716 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
5717 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
5718 * kern/i386/reboot.c: Remove.
5719 * include/grub/i386/reboot.h (grub_reboot): Export function.
5720 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
5721 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
5722 0xf000:0xfff0 instead of 0xffff:0x0000.
5723 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
5724 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
5725
ef34cbd4
RM
57262009-11-30 Robert Millan <rmh.grub@aybabtu.com>
5727
5728 Fix $srcdir != $objdir build.
5729
5730 * Makefile.in (po/%.po): Rewrite as ...
5731 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
5732
dc9837ea
ST
57332009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
5734
5735 Fix GNU/Hurd grub-install crash.
5736 * util/grub-probe.c (probe): Try to access `path' only when it is not
5737 NULL.
5738
2f857f98
VS
57392009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
5740
5741 Correct module naming.
5742
5743 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
5744 (GRUB_MOD_INIT(efi_uga)): ... to this
5745 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
5746 (GRUB_MOD_FINI(efi_uga)): ... to this
5747 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
5748 (GRUB_MOD_INIT(efi_gop)): ... to this
5749 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
5750 (GRUB_MOD_FINI(efi_gop)): ... to this
5751
c5448046
RM
57522009-11-28 Robert Millan <rmh.grub@aybabtu.com>
5753
5754 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
5755 translatable.
5756 (usage): Translate `arg' strings using gettext().
5757 Thanks to Jordi Mallach for the suggestion.
5758
c85184ad
VS
57592009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
5760
5761 GOP support. Based on patch from Bean
5762 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
5763
5764 * video/efi_gop.c: New file.
5765 * include/grub/efi/graphics_output.h: Likewise.
5766 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
5767 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
5768 variables.
5769 * conf/x86_64-efi.rmk: Likewise.
5770
8a4c48d8
VS
57712009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
5772
5773 Rename efi_fb to efi_uga.
5774
5775 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
5776 'efi_uga.mod'.
5777 (efi_fb_mod_SOURCES): Rename this ...
5778 (efi_uga_mod_SOURCES): ... to this.
5779 (efi_fb_mod_CFLAGS): Rename this ...
5780 (efi_uga_mod_CFLAGS): ... to this.
5781 (efi_fb_mod_LDFLAGS): Rename this ...
5782 (efi_uga_mod_LDFLAGS): ... to this.
5783 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
5784 'efi_uga.mod'.
5785 (efi_fb_mod_SOURCES): Rename this ...
5786 (efi_uga_mod_SOURCES): ... to this.
5787 (efi_fb_mod_CFLAGS): Rename this ...
5788 (efi_uga_mod_CFLAGS): ... to this.
5789 (efi_fb_mod_LDFLAGS): Rename this ...
5790 (efi_uga_mod_LDFLAGS): ... to this.
5791 * video/efi_fb.c: Move this ...
5792 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
5793
fb6c1a7b
RM
57942009-11-27 Robert Millan <rmh.grub@aybabtu.com>
5795
5796 * po/README: New file. Explain our PO file workflow.
5797
3bc7896c
RM
57982009-11-27 Robert Millan <rmh.grub@aybabtu.com>
5799
5800 * po/ChangeLog: Remove. Move relevant entries back to ...
5801 * ChangeLog: ... here.
5802 * po/ca.po: Remove (now handled by TLP).
5803 * po/id.po: Likewise.
5804 * po/zh_CN.po: Likewise.
5805 * Makefile.in (LINGUAS): Initialize in a way that supports
5806 empty set.
5807
9ed4841d
RM
58082009-11-27 Robert Millan <rmh.grub@aybabtu.com>
5809
5810 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
5811 reliing on po/LINGUAS.
5812 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
5813 (po/%.po): ... this.
5814
0ad46fd7 58152009-11-26 Felix Zielcke <fzielcke@z-51.de>
242668a2
FZ
5816
5817 * util/i386/efi/grub-mkimage.c: Include "progname.h".
5818 (main): Use `program_name' instead of nonexistent `progname'.
5819
e30dd392
FZ
58202009-11-26 Felix Zielcke <fzielcke@z-51.de>
5821
5822 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
5823 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
5824
7656de4f
RM
58252009-11-26 Robert Millan <rmh.grub@aybabtu.com>
5826
5827 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
5828 commit.
5829 * conf/i386-efi.rmk: Likewise.
5830 * conf/i386-ieee1275.rmk: Likewise.
5831 * conf/powerpc-ieee1275.rmk: Likewise.
5832 * conf/sparc64-ieee1275.rmk: Likewise.
5833 * conf/x86_64-efi.rmk: Likewise.
5834
db77c4d4
FZ
58352009-11-26 Felix Zielcke <fzielcke@z-51.de>
5836
5837 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
5838
a755bb04
FZ
58392009-11-26 Felix Zielcke <fzielcke@z-51.de>
5840
5841 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
5842
8a4c07fd
RM
58432009-11-26 Robert Millan <rmh.grub@aybabtu.com>
5844
5845 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
5846 (grub_mkdevicemap_SOURCES): New variable.
5847 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
5848 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
5849 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
5850 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
5851 (grub_mkdevicemap_SOURCES): Remove.
5852 * conf/i386-efi.rmk: Likewise.
5853 * conf/i386-ieee1275.rmk: Likewise.
5854 * conf/i386-pc.rmk: Likewise.
5855 * conf/powerpc-ieee1275.rmk: Likewise.
5856 * conf/sparc64-ieee1275.rmk: Likewise.
5857 * conf/x86_64-efi.rmk: Likewise.
5858 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
5859 (usage): Fix strings to use `program_name'.
5860 (main): Initialize gettext.
5861 * util/grub-editenv.c: Likewise.
5862 * util/grub-emu.c: Likewise.
5863 * util/grub-fstest.c: Likewise.
5864 * util/grub-mkdevicemap.c: Likewise.
5865 * util/grub-mkfont.c: Likewise.
5866 * util/grub-mkrelpath.c: Likewise.
5867 * util/grub-pe2elf.c: Likewise.
5868 * util/grub-probe.c: Likewise.
5869 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
5870 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
5871 * util/sparc64/ieee1275/grub-setup.c: Likewise.
5872
5873 * util/misc.c: Include `"progname.h"'.
5874 (progname): Remove variable.
5875 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
5876
6f61ed55
FZ
58772009-11-25 Felix Zielcke <fzielcke@z-51.de>
5878
5879 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
5880 printf and print a newline after the menuentry header line.
5881 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
5882
f022876b
FZ
58832009-11-25 Felix Zielcke <fzielcke@z-51.de>
5884
5885 autoconf >= 2.60 support $(localedir).
5886
5887 * INSTALL: Note that autoconf 2.60 is required.
5888 * configure.ac (AC_PREREQ): Bump to 2.60.
5889 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
5890 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
5891
6717926e
YB
58922009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
5893
5894 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
5895 aclocal is run.
5896
08806a54
RM
58972009-11-25 Robert Millan <rmh.grub@aybabtu.com>
5898
5899 * normal/main.c (grub_normal_read_line): Fix off-by-one
5900 buffer overflow.
5901
13b33fba
RM
59022009-11-25 Robert Millan <rmh.grub@aybabtu.com>
5903
5904 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
5905 "parser.grub" in grub_command_execute() call.
5906
4a8572e9
CPE
59072009-11-24 Carles Pina i Estany <carles@pina.cat>
5908
5909 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
5910 * conf/i386-efi.rmk: Likewise.
5911 * conf/i386-ieee1275.rmk: Likewise.
5912 * conf/i386-pc.rmk: Likewise.
5913 * conf/powerpc-ieee1275.rmk: Likewise.
5914 * conf/sparc64-ieee1275.rmk: Likewise.
5915 * conf/x86_64-efi.rmk: Likewise.
5916 * gettext/gettex.c: Include <grub/i18n.h>.
5917 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
5918 here ...
5919 * include/grub/i18n.h: ... to here
5920 * include/grub/i18n.h: ... to here.
5921 * kern/misc.c: Include <grub/i18n.h>
a2c1332b 5922 (grub_gettext_dummy): Move above user.
4a8572e9 5923
bee48093
FZ
59242009-11-24 Felix Zielcke <fzielcke@z-51.de>
5925
5926 * util/Makefile.in (install-local): Convert a `for' into a normal
5927 shell expansion.
5928
a031e91c
RM
59292009-11-24 Robert Millan <rmh.grub@aybabtu.com>
5930
5931 * autogen.sh: Add automake call.
5932 * config.guess: Remove.
5933 * config.sub: Likewise.
5934 * install-sh: Likewise.
5935
26bec39d
FZ
59362009-11-24 Felix Zielcke <fzielcke@z-51.de>
5937
5938 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
5939
8e2532fd
FZ
59402009-11-24 Felix Zielcke <fzielcke@z-51.de>
5941
5942 * util/Makefile.in (install-local): Convert a make `$(foreach)'
5943 function to a normal shell `for'.
5944
fefa1b7d
FZ
59452009-11-24 Felix Zielcke <fzielcke@z-51.de>
5946
5947 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
5948
4501250b
FZ
59492009-11-24 Felix Zielcke <fzielcke@z-51.de>
5950
5951 * util/grub-mkrelpath.c: New file.
5952 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
5953 (grub_mkrelpath_SOURCES): New variable.
5954 * include/grub/util/misc.h: New function prototype.
5955 * util/misc.c (make_system_path_relative_to_its_root): New function.
5956
5957 * util/grub-mkconfig_lib.in (bindir): New variable.
5958 (grub_mkrelpath): Likewise.
5959 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
5960
5961 * util/probe.c (probe): Make the file path relative to its root.
5962 Change a info message to use the GRUB path. Enable again the
5963 check if we can read the file with GRUB facilities.
5964
5965 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
5966 to its root.
5967
11d9778b
FZ
59682009-11-24 Felix Zielcke <fzielcke@z-51.de>
5969
5970 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
5971 platform.
5972
4465287d
FZ
59732009-11-24 Felix Zielcke <fzielcke@z-51.de>
5974
5975 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
5976 strncmp().
5977
62b47f22
FZ
59782009-11-24 Felix Zielcke <fzielcke@z-51.de>
5979
5980 * util/getroot.c (grub_util_is_dmraid): New function.
5981 (grub_util_get_dev_abstraction): Treat dmraid and multipath
5982 devices as normal ones, not as LVM.
5983
1eafb9b9 59842009-11-23 Carles Pina i Estany <carles@pina.cat>
c3ea6bd4
CPE
5985
5986 * conf/common.rmk: Add grub-gettext_lib target and updates
5987 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
5988 LDFLAGS.
5989 * gettext/gettext.c: New file. (Reads mo files).
5990 * include/grub/file.h (grub_file_pread): New prototype.
5991 * include/grub/i18n.h (_): New prototype.
5992 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
5993 prototypes.
5994 * kern/misc.c (grub_gettext_dummy): New function.
5995 * normal/menu_text.c: Include <grub/i18n.h>.
5996 * normal/menu_text.c (print_timeout): Gettexttize string.
5997 * normal/menu_text.c (print_message): Gettexttize string.
3bc7896c
RM
5998 * po/POTFILES: Add `normal/menu_text.c'.
5999 * po/ca.po: Add new translations.
c3ea6bd4
CPE
6000 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
6001 gettext module and defines locale_dir and lang in grub.cfg.
6002 * NEWS: Add gettext support.
6003
0fdb2568
RM
60042009-11-23 Robert Millan <rmh.grub@aybabtu.com>
6005
6006 * util/hostdisk.c: Include `<grub/i18n.h>'.
6007 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
6008 (make_device_name): Rewrite using asprintf.
6009 (convert_system_partition_to_system_disk): Replace 0 with NULL.
6010 (find_system_device): If a device is not found, generate one just
6011 by reusing the OS path name.
6012 (read_device_map): Make it permissible for device.map not to exist.
6013
f515aa62
RM
60142009-11-23 Robert Millan <rmh.grub@aybabtu.com>
6015
6016 * script/sh/execute.c: Move from here ...
6017 * script/execute.c: ... to here. Update all users.
6018 * script/sh/function.c: Move from here ...
6019 * script/function.c: ... to here. Update all users.
6020 * script/sh/lexer.c: Move from here ...
6021 * script/lexer.c: ... to here. Update all users.
6022 * script/sh/main.c: Move from here ...
6023 * script/main.c: ... to here. Update all users.
6024 * script/sh/parser.y: Move from here ...
6025 * script/parser.y: ... to here. Update all users.
6026 * script/sh/script.c: Move from here ...
6027 * script/script.c: ... to here. Update all users.
6028
f84b481b
RM
60292009-11-23 Robert Millan <rmh.grub@aybabtu.com>
6030
6031 * configure.ac: Detect all `emu' platforms. Define
6032 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
6033 --enable-grub-emu logic. Disable include/grub/machine
6034 symlink on `emu' platforms.
6035
6036 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
6037 * gensymlist.sh.in: Likewise.
6038
6039 * include/grub/i386/coreboot/machine.h: Remove file.
6040 * include/grub/i386/efi/machine.h: Likewise.
6041 * include/grub/i386/ieee1275/machine.h: Likewise.
6042 * include/grub/i386/pc/machine.h: Likewise.
6043 * include/grub/i386/qemu/machine.h: Likewise.
6044 * include/grub/powerpc/ieee1275/machine.h: Likewise.
6045 * include/grub/sparc64/ieee1275/machine.h: Likewise.
6046 * include/grub/x86_64/efi/machine.h: Likewise.
6047
6048 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
6049 * commands/halt.c: Likewise.
6050 * commands/reboot.c: Likewise.
6051 * include/grub/autoefi.h: Likewise.
6052 * include/grub/i386/at_keyboard.h: Likewise.
6053 * include/grub/i386/kernel.h: Likewise.
6054 * include/grub/i386/loader.h: Likewise.
6055 * include/grub/i386/pc/memory.h: Likewise.
6056 * kern/dl.c: Likewise.
6057 * kern/i386/coreboot/init.c: Likewise.
6058 * loader/i386/bsd.c: Likewise.
6059 * loader/i386/linux.c: Likewise.
6060 * loader/multiboot_loader.c: Likewise.
6061 * term/i386/pc/serial.c: Likewise.
6062 * term/usb_keyboard.c: Likewise.
6063
6064 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
6065 `<grub/machine/machine.h>'
6066 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
6067 * util/misc.c: Remove `<grub/machine/machine.h>' and
6068 `<grub/machine/time.h>'.
6069
6070 * Makefile.in (enable_grub_emu): Remove variable.
6071 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
6072
6073 * conf/any-emu.rmk: New file.
6074 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
6075 (grub_emu_init.c): Move from here ...
6076 * conf/any-emu.rmk: ... to here.
6077
6078 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
6079 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
6080 * conf/any-emu.rmk: ... to here.
6081
4efeab03
RM
60822009-11-23 Robert Millan <rmh.grub@aybabtu.com>
6083
6084 * include/grub/parser.h (grub_parser_register): Document need
6085 of `name' parameter.
6086 * normal/main.c (grub_normal_read_line): Simplify prompt string.
6087 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
6088 "sh" to "grub".
6089
ea1dd8bf
RM
60902009-11-23 Robert Millan <rmh.grub@aybabtu.com>
6091
6092 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
6093 `$(XGETTEXT)'.
6094 * include/grub/i18n.h (N_): New macro.
6095 * util/mkisofs/mkisofs.h: Likewise.
6096 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
6097 around N_().
6098 (usage): Use gettext() to translate help strings when printing them.
6099
0c140626
RM
61002009-11-23 Robert Millan <rmh.grub@aybabtu.com>
6101
6102 Based on patch from Bean
6103 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
6104
6105 * video/efi_fb.c: New file.
6106 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
6107 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
6108 variables.
6109 * conf/x86_64-efi.rmk: Likewise.
6110
87d58298
RM
61112009-11-22 Robert Millan <rmh.grub@aybabtu.com>
6112
6113 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
6114 * util/i386/pc/grub-setup.c: Likewise.
6115
994cc3a3
ST
61162009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
6117
6118 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
6119 <hurd/fs.h>
6120 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
6121 file_get_storage_info to implement grub_guess_root_device.
6122
26a61d6a
FZ
61232009-11-21 Felix Zielcke <fzielcke@z-51.de>
6124
6125 * Makefile.in (target): Use make's builtin $(shell) function
6126 instead of calling directly $(SHELL) to create the locale directories,
6127 inside the $(foreach) function.
6128
74ff1dd5
FZ
61292009-11-21 Felix Zielcke <fzielcke@z-51.de>
6130
6131 * util/grub-mkrescue.in: Print an error and usage if output option
6132 has not been given.
6133
0b787d0e
FZ
61342009-11-21 Felix Zielcke <fzielcke@z-51.de>
6135
6136 Patch from Loïc Minier <loic.minier@ubuntu.com>.
6137 * util/grub.d/30_os-prober.in: Cope with Linux entries where
6138 root and /boot are on different devices.
6139
1164b270
RM
61402009-11-21 Robert Millan <rmh.grub@aybabtu.com>
6141
6142 Fix build for srcdir != objdir.
6143
6144 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
6145 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
6146 $(srcdir).
6147 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
6148 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
6149 reference for input.
6150
13774a2f
RM
61512009-11-21 Robert Millan <rmh.grub@aybabtu.com>
6152
6153 * util/grub-mkrescue.in: Use source directory direcly (without copiing
6154 or hardlinking it). Remove -J option, Joliet is not compatible with
6155 multiple source directories.
6156
efda854e
RM
61572009-11-21 Carles Pina i Estany <carles@pina.cat>
61582009-11-21 Robert Millan <rmh.grub@aybabtu.com>
6159
6160 * util/grub-mkrescue.in: Recognize `--override-directory' option.
6161 (process_input_dir): New function. Process an arbitrary input
6162 directory.
6163 Misc adjustments to support both "override mode" and system-wide mode.
6164
6c09890c
FZ
61652009-11-20 Felix Zielcke <fzielcke@z-51.de>
6166
6167 * configure.ac (UNIFONT_BDF): Rename to ...
6168 (FONT_SOURCE): ... this. Update all users.
6169
a797824f
FZ
61702009-11-20 Felix Zielcke <fzielcke@z-51.de>
6171
6172 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
6173 to the list of unifont files to look for.
6174
cd4f42b0
RM
61752009-11-19 Robert Millan <rmh.grub@aybabtu.com>
6176
6177 Patch from Joe Auricchio <jauricchio@gmail.com>
6178 * commands/minicmd.c (grub_mini_cmd_clear): New function.
6179 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
6180 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
6181
393c783d
FZ
61822009-11-19 Felix Zielcke <fzielcke@z-51.de>
6183
6184 * Makefile.in (install-local): Add a missing backslash.
6185
b2f1e327
FZ
61862009-11-19 Felix Zielcke <fzielcke@z-51.de>
6187
6188 * include/grub/x86_64/io.h: New file.
6189
f577f7a0
RM
61902009-11-19 Robert Millan <rmh.grub@aybabtu.com>
6191
6192 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
6193 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
6194 Include `"progname.h"'.
6195 (main): Initialize gettext.
6196 * util/i386/pc/grub-setup.c: Gettexttize.
6197 * util/i386/pc/grub-mkimage.c: Likewise.
6198
6199 * Makefile.in (po/*.po): Redefine as ...
6200 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
6201
3bc7896c
RM
6202 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
6203
c37943b6
RM
62042009-11-19 Robert Millan <rmh.grub@aybabtu.com>
6205
6206 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
6207 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
6208 (program_name): Remove.
6209 (main): Initialize gettext support.
6323f705
RM
6210 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
6211 Include `<libintl.h>'.
6212 (_): New macro.
c37943b6
RM
6213
6214 * util/mkisofs/eltorito.c: Gettexttize.
6215 * util/mkisofs/joliet.c: Likewise.
6216 * util/mkisofs/mkisofs.c: Likewise.
c37943b6
RM
6217 * util/mkisofs/multi.c: Likewise.
6218 * util/mkisofs/rock.c: Likewise.
6219 * util/mkisofs/tree.c: Likewise.
6220 * util/mkisofs/write.c: Likewise.
6221
3bc7896c
RM
6222 * po/POTFILES: Update with new files.
6223
5ce77c6e
RM
62242009-11-18 Robert Millan <rmh.grub@aybabtu.com>
6225
6226 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
6227 * util/mkisofs/iso9660.h: Likewise.
6228 * util/mkisofs/joliet.c: Likewise.
6229 * util/mkisofs/mkisofs.c: Likewise.
6230 * util/mkisofs/mkisofs.h: Likewise.
6231 * util/mkisofs/rock.c: Likewise.
6232 * util/mkisofs/tree.c: Likewise.
6233 * util/mkisofs/write.c: Likewise.
6234
6235 * util/mkisofs/eltorito.c (rcsid): Remove.
6236 * util/mkisofs/hash.c: Likewise.
6237 * util/mkisofs/joliet.c: Likewise.
6238 * util/mkisofs/name.c: Likewise.
6239 * util/mkisofs/rock.c: Likewise.
6240 * util/mkisofs/tree.c: Likewise.
6241 * util/mkisofs/write.c: Likewise.
6242
1dabbc77
RM
62432009-11-18 Robert Millan <rmh.grub@aybabtu.com>
6244
6245 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
6246 instead of static allocation.
6247 * util/mkisofs/match.h: Likewise.
6248
633877cb
RM
62492009-11-18 Robert Millan <rmh.grub@aybabtu.com>
6250
3bc7896c
RM
6251 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
6252 and `util/grub.d/10_linux.in'.
633877cb
RM
6253 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
6254 translatable Shell files.
6255
af1c0c85
RM
62562009-11-18 Robert Millan <rmh.grub@aybabtu.com>
6257
6258 * Makefile.in ($(srcdir)/aclocal.m4): New target.
6259
769ae37b
RM
62602009-11-17 Robert Millan <rmh.grub@aybabtu.com>
6261
6262 * INSTALL: Document Automake is needed for bootstrap.
3bc7896c 6263 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
769ae37b
RM
6264 * util/grub.d/10_kfreebsd.in (bindir): New variable.
6265 Add gettext initialization.
6266 (kfreebsd_entry): Make menuentry output translatable.
6267
62682009-11-17 Robert Millan <rmh.grub@aybabtu.com>
6269
6270 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
6271 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
6272 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
6273 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
6274 (LINGUAS): Auto-generate using `po/LINGUAS'.
3bc7896c 6275 * po/LINGUAS: New file.
769ae37b
RM
6276
62772009-11-17 Robert Millan <rmh.grub@aybabtu.com>
6278
6279 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
6280 other things).
6281 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
6282 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
6283 bindtextdomain() calls for gettext initialization.
6284
62852009-11-17 Robert Millan <rmh.grub@aybabtu.com>
6286
6287 * gnulib/progname.c: New file (imported from Gnulib).
6288 * gnulib/progname.h: Likewise.
6289 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
6290 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
6291 (usage): Replace `progname' with `program_name'.
6292 (main): Use set_program_name() for program name initialization.
6293
62942009-11-17 Robert Millan <rmh.grub@aybabtu.com>
6295
6296 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
6297 from here ...
6298 * Makefile.in (CPPFLAGS): ... to here.
6299
63002009-11-16 Robert Millan <rmh.grub@aybabtu.com>
6301
6302 * aclocal.m4: Move from here ...
6303 * acinclude.m4: ... to here.
6304 * autogen.sh: Add call to `aclocal'.
6305 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
6306
63072009-11-16 Robert Millan <rmh.grub@aybabtu.com>
6308
6309 * Makefile.in (CLEANFILES): Add `po/*.mo'.
6310 (LINGUAS): New variable.
6311 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
6312 (install-local): Install MO files.
6313 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
6314 * include/grub/i18n.h: New file.
3bc7896c
RM
6315 * po/POTFILES: New file.
6316 * po/ca.po: New file.
769ae37b
RM
6317 * util/grub.d/10_linux.in (bindir): New variable.
6318 Add gettext initialization.
6319 (linux_entry): Make menuentry output translatable.
6320 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
6321 (usage): Make --help output translatable.
6322 (main): Initialize gettext.
6323
02c0a6ad
RM
63242009-11-17 Robert Millan <rmh.grub@aybabtu.com>
6325
6326 * import_gcry.py: New file (written by Vladimir with minor
6327 adjustments).
6328 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
6329 ciphers.
6330 * INSTALL: Document that Python is required for bootstrap.
6331
63322009-11-17 Robert Millan <rmh.grub@aybabtu.com>
6333
6334 Import ciphers from libgcrypt 1.4.4.
6335
6336 * lib/libgcrypt/cipher/ChangeLog
6337 * lib/libgcrypt/cipher/ac.c
6338 * lib/libgcrypt/cipher/arcfour.c
6339 * lib/libgcrypt/cipher/bithelp.h
6340 * lib/libgcrypt/cipher/blowfish.c
6341 * lib/libgcrypt/cipher/camellia-glue.c
6342 * lib/libgcrypt/cipher/camellia.c
6343 * lib/libgcrypt/cipher/camellia.h
6344 * lib/libgcrypt/cipher/cast5.c
6345 * lib/libgcrypt/cipher/cipher.c
6346 * lib/libgcrypt/cipher/crc.c
6347 * lib/libgcrypt/cipher/des.c
6348 * lib/libgcrypt/cipher/dsa.c
6349 * lib/libgcrypt/cipher/ecc.c
6350 * lib/libgcrypt/cipher/elgamal.c
6351 * lib/libgcrypt/cipher/hash-common.c
6352 * lib/libgcrypt/cipher/hash-common.h
6353 * lib/libgcrypt/cipher/hmac-tests.c
6354 * lib/libgcrypt/cipher/md.c
6355 * lib/libgcrypt/cipher/md4.c
6356 * lib/libgcrypt/cipher/md5.c
6357 * lib/libgcrypt/cipher/primegen.c
6358 * lib/libgcrypt/cipher/pubkey.c
6359 * lib/libgcrypt/cipher/rfc2268.c
6360 * lib/libgcrypt/cipher/rijndael-tables.h
6361 * lib/libgcrypt/cipher/rijndael.c
6362 * lib/libgcrypt/cipher/rmd.h
6363 * lib/libgcrypt/cipher/rmd160.c
6364 * lib/libgcrypt/cipher/rsa.c
6365 * lib/libgcrypt/cipher/seed.c
6366 * lib/libgcrypt/cipher/serpent.c
6367 * lib/libgcrypt/cipher/sha1.c
6368 * lib/libgcrypt/cipher/sha256.c
6369 * lib/libgcrypt/cipher/sha512.c
6370 * lib/libgcrypt/cipher/tiger.c
6371 * lib/libgcrypt/cipher/twofish.c
6372 * lib/libgcrypt/cipher/whirlpool.c
6373
af2f93ac
RM
63742009-11-16 Robert Millan <rmh.grub@aybabtu.com>
6375
6376 Fix build for systems without error().
6377
6378 * gnulib/error.c: New file (imported from Gnulib).
6379 * gnulib/error.h: Likewise.
6380 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
6381 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
6382 (this variable is now used by error()).
6383
73fb3dd5
FZ
63842009-11-16 Felix Zielcke <fzielcke@z-51.de>
6385
814f5e96
FZ
6386 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
6387 instead of relying that char is signed.
73fb3dd5 6388
a691ca33
VS
63892009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
6390
6391 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
6392 blocksize different from specified.
6393 (grub_pxefs_read): Likewise.
6394
2af8f0f4
FZ
63952009-11-16 Felix Zielcke <fzielcke@z-51.de>
6396
6397 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
6398
6399 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
6400 (grub_ata_readwrite): Likewise. Update 2 format strings.
6401 (grub_atapi_read): Likewise.
6402
6403 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
6404 * conf/i386.rmk (pkglib_MODULES): ... to here ...
6405 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
6406 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
6407 (ata_mod_LDFLAGS): Move from here ...
6408 * conf/i386.rmk: ... to here ...
6409 * conf/x86_64-efi.rmk: ... and here.
6410 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
6411 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
6412
83bdecaf
RM
64132009-11-16 Robert Millan <rmh.grub@aybabtu.com>
6414
6415 Relicense multiboot.h, with RMS' blessing.
6416
6417 * include/multiboot.h: Change to X11 license.
6418
fd6fd3d7
RM
64192009-11-15 Robert Millan <rmh.grub@aybabtu.com>
6420
6421 Support --version in grub-mkisofs.
6422
6423 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
6424 (OPTION_VERSION): New macro.
6425 (ld_options): Recognize --version.
6426 (usage): Move `program_name' from here ...
6427 (program_name): ... to here. Add `static' qualifier.
6428 (main): Recognize `OPTION_VERSION'.
6429
16a88c49
FZ
64302009-11-15 Felix Zielcke <fzielcke@z-51.de>
6431
6432 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
6433 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
6434
a4158476
RM
64352009-11-14 Robert Millan <rmh.grub@aybabtu.com>
6436
6437 Fix help2man generation for mkisofs.
6438
6439 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
6440 (usage): Send output to stdout (rather than stderr).
6441
fc2208b0
RM
64422009-11-14 Robert Millan <rmh.grub@aybabtu.com>
6443
6444 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
6445 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
6446 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
6447 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
6448 (bin_SCRIPTS): Add `grub-mkfloppy'.
6449 (grub_mkfloppy_SOURCES): New variable.
6450
6451 * util/grub-mkrescue.in: New file.
6452 * util/i386/pc/grub-mkfloppy.in: New file.
6453
6454 * util/i386/coreboot/grub-mkrescue.in: Remove.
6455 * util/i386/pc/grub-mkrescue.in: Remove.
6456
8d0edf4a
RM
64572009-11-13 Robert Millan <rmh.grub@aybabtu.com>
6458
6459 * include/grub/multiboot.h (struct grub_multiboot_header): Move
6460 from here ...
6461 * include/multiboot.h (struct multiboot_header): ... to here. Update
6462 all users.
6463 * include/grub/multiboot.h (struct grub_multiboot_info): Move
6464 from here ...
6465 * include/multiboot.h (struct multiboot_info): ... to here. Update
6466 all users.
6467 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
6468 from here ...
6469 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
6470 Update all users.
6471 * include/grub/multiboot.h (struct grub_mod_list): Move
6472 from here ...
6473 * include/multiboot.h (struct multiboot_mod_list): ... to here.
6474 Update all users.
6475
a73f5969
RM
64762009-11-13 Robert Millan <rmh.grub@aybabtu.com>
6477
6478 * include/multiboot2.h (multiboot_word): Rename from this ...
6479 (multiboot2_word): ... to this. Update all users.
6480 (multiboot_header): Rename from this ...
6481 (multiboot2_header): ... to this. Update all users.
6482 (multiboot_tag_header): Rename from this ...
6483 (multiboot2_tag_header): ... to this. Update all users.
6484 (multiboot_tag_start): Rename from this ...
6485 (multiboot2_tag_start): ... to this. Update all users.
6486 (multiboot_tag_name): Rename from this ...
6487 (multiboot2_tag_name): ... to this. Update all users.
6488 (multiboot_tag_module): Rename from this ...
6489 (multiboot2_tag_module): ... to this. Update all users.
6490 (multiboot_tag_memory): Rename from this ...
6491 (multiboot2_tag_memory): ... to this. Update all users.
6492 (multiboot_tag_unused): Rename from this ...
6493 (multiboot2_tag_unused): ... to this. Update all users.
6494 (multiboot_tag_end): Rename from this ...
6495 (multiboot2_tag_end): ... to this. Update all users.
6496
1c8927f0
RM
64972009-11-13 Robert Millan <rmh.grub@aybabtu.com>
6498
6499 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
6500 this platform we should support Multiboot1 first.
6501
6502 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
6503 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
6504 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
6505
6e1e0d89
RM
65062009-11-12 Robert Millan <rmh.grub@aybabtu.com>
6507
6508 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
6509 of write calls (converting them to fwrite() if they aren't already).
6510 (get_torito_desc): Likewise.
6511 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
6512
7f2b34d8
RM
65132009-11-12 Robert Millan <rmh.grub@aybabtu.com>
6514
6515 * util/i386/pc/grub-install.in: Move from here ...
6516 * util/grub-install.in: ... to here. Update all users.
6517
c0ef3311
CW
65182009-11-11 Colin Watson <cjwatson@ubuntu.com>
6519
6520 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
6521
e1f240ff
RM
65222009-11-11 Robert Millan <rmh.grub@aybabtu.com>
6523
6524 Support for El Torito without floppy emulation.
6525
6526 * util/mkisofs/eltorito.c: Include `<errno.h>'.
6527 (init_boot_catalog): Improve error handling.
6528 (get_torito_desc): Don't use floppy emulation unless requested by
6529 user. Patch boot information table when requested via
6530 `-boot-info-table'.
6531 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
6532 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
6533 (use_boot_info_table): New variables.
6534 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
6535 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
6536 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
6537 `--eltorito-emul-floppy'.
6538 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
6539 and `OPTION_ELTORITO_EMUL_FLOPPY'.
6540 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
6541 (use_boot_info_table, get_731): New prototypes.
6542 * util/mkisofs/write.c (get_731): New function.
6543
af7d4de5
FZ
65442009-11-11 Felix Zielcke <fzielcke@z-51.de>
6545
6546 Fix the generation of the man page.
6547
6548 * util/pc/i386/grub-install.in: Source
6549 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
6550
2c55dbc0
RM
65512009-11-11 Robert Millan <rmh.grub@aybabtu.com>
6552
6553 Large file support for grub-mkisofs.
6554
6555 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
6556 * util/mkisofs/mkisofs.c (next_extent, last_extent)
6557 (session_start): Upgrade type to `uint64_t'. Update all users.
6558 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
6559 (struct directory_entry): Upgrade type of `starting_block' and
6560 `size' to `uint64_t'. Update all users.
6561 (struct deferred): Remove unused structure.
6562 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
6563 Update all users.
6564 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
6565 file is larger than `UINT32_MAX'.
6566 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
6567 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
6568 return value.
6569 (struct deferred_write): Upgrade type of `extent' and `size' to
6570 `uint64_t'. Update all users.
6571 (last_extent_written): Upgrade type to `uint64_t'. Update all
6572 users.
6573 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
6574 Update all users. Upgrade type of `remain' to `int64_t' and
6575 `use' to `size_t'. Use error() to handle fread() errors.
6576 (write_files): Rely on write_one_file() rather than calling
6577 xfwrite() directly.
6578
6a9cead5
FZ
65792009-11-09 Felix Zielcke <fzielcke@z-51.de>
6580
6581 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
6582
4825d790
RM
65832009-11-09 Robert Millan <rmh.grub@aybabtu.com>
6584
6585 * util/mkisofs/fnmatch.c: Remove.
6586 * util/mkisofs/getopt1.c: Likewise.
6587 * util/mkisofs/getopt.c: Likewise.
6588 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
6589 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
6590 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
6591 `gnulib/getopt1.c' and `gnulib/getopt.c'.
6592 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
6593
6594 * configure.ac: Detect `mingw32msvc' host_os.
6595 Check for lstat(), getuid() and getgid().
6596
6597 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
6598 instances of `u_char' with `uint8_t'.
6599
6600 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
6601 [!HAVE_GETUID] (getuid): New function (stub).
6602 [!HAVE_GETGID] (getgid): Likewise.
6603 [!HAVE_LSTAT] (lstat): Likewise.
6604 [!S_IROTH] (S_IROTH): New macro (dummy).
6605 [!S_IRGRP] (S_IRGRP): Likewise.
6606
84b860d8
RM
66072009-11-09 Robert Millan <rmh.grub@aybabtu.com>
6608
6609 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
6610 conditional expression).
6611
66e9b712
RM
66122009-11-09 Robert Millan <rmh.grub@aybabtu.com>
6613
6614 Import from Gnulib.
6615
6616 * gnulib/fnmatch.c: New file.
6617 * gnulib/fnmatch.h: Likewise.
6618 * gnulib/fnmatch_loop.c: Likewise.
6619 * gnulib/getopt.c: Likewise.
6620 * gnulib/getopt.h: Likewise.
6621 * gnulib/getopt1.c: Likewise.
6622 * gnulib/getopt_int.h: Likewise.
6623 * gnulib/gettext.h: Likewise.
6624
34f4a5b0
RM
66252009-11-09 Robert Millan <rmh.grub@aybabtu.com>
6626
6627 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
6628 * normal/handler.c (read_handler_list): Likewise.
6629
ac451143
RM
66302009-11-09 Robert Millan <rmh.grub@aybabtu.com>
6631
6632 Misc cleanup.
6633
6634 * kern/command.c (grub_register_command_prio): Use
6635 grub_zalloc() instead of explicitly zeroing data.
6636 * kern/list.c: Include `<grub/mm.h>'.
6637 (grub_named_list_find): Replace `0' with `NULL'.
6638 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
6639 (fs_module_list): Change type to `grub_named_list_t'. Update all
6640 users.
6641 * normal/dyncmd.c (read_command_list): Add space between function
6642 call and parenthesis.
6643 * normal/handler.c (read_handler_list): Likewise.
6644
4089b167
RM
66452009-11-09 Robert Millan <rmh.grub@aybabtu.com>
6646
6647 * normal/auth.c (punishment_delay): Moved from here ...
6648 (grub_auth_strcmp): ... to here (inside function).
6649
325f5037
RM
66502009-11-09 Robert Millan <rmh.grub@aybabtu.com>
6651
6652 * include/grub/list.h (struct grub_named_list): Remove `const'
6653 qualifier from `name'.
6654 (struct grub_prio_list): Likewise.
6655
7aea29a3
RM
66562009-11-09 Robert Millan <rmh.grub@aybabtu.com>
6657
6658 * normal/auth.c: Include `<grub/time.h>'.
6659 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
6660
3fd6f044
RM
66612009-11-09 Robert Millan <rmh.grub@aybabtu.com>
6662
6663 * normal/auth.c (punishment_delay): New variable.
6664 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
6665 (grub_auth_check_authentication): Punish failed login attempts with
6666 an incremental (2^N) delay.
6667
a4cd68e4
RM
66682009-11-09 Robert Millan <rmh.grub@aybabtu.com>
6669
6670 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
6671 path with $(srcdir).
6672
7ad12f43
VS
66732009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
6674
6675 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
6676
c1129f03
RM
66772009-11-09 Robert Millan <rmh.grub@aybabtu.com>
6678
6679 * util/i386/coreboot/grub-mkrescue.in: New file.
6680 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
6681 variables.
6682
6683 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
6684 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
6685 * configure.ac: Add header and function checks to satisfy grub-mkisofs
6686 requirements.
6687 * util/mkisofs/defaults.h: New file.
6688 * util/mkisofs/eltorito.c: Likewise.
6689 * util/mkisofs/exclude.h: Likewise.
6690 * util/mkisofs/fnmatch.c: Likewise.
6691 * util/mkisofs/getopt.c: Likewise.
6692 * util/mkisofs/getopt1.c: Likewise.
6693 * util/mkisofs/hash.c: Likewise.
6694 * util/mkisofs/include/fctldefs.h: Likewise.
6695 * util/mkisofs/include/mconfig.h: Likewise.
6696 * util/mkisofs/include/prototyp.h: Likewise.
6697 * util/mkisofs/include/statdefs.h: Likewise.
6698 * util/mkisofs/iso9660.h: Likewise.
6699 * util/mkisofs/joliet.c: Likewise.
6700 * util/mkisofs/match.c: Likewise.
6701 * util/mkisofs/match.h: Likewise.
6702 * util/mkisofs/mkisofs.c: Likewise.
6703 * util/mkisofs/mkisofs.h: Likewise.
6704 * util/mkisofs/multi.c: Likewise.
6705 * util/mkisofs/name.c: Likewise.
6706 * util/mkisofs/rock.c: Likewise.
6707 * util/mkisofs/tree.c: Likewise.
6708 * util/mkisofs/write.c: Likewise.
6709
ec8bb77d
VS
67102009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
6711
6712 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
6713 being insecure.
6714
3716b12c
RM
67152009-11-08 Robert Millan <rmh.grub@aybabtu.com>
6716
6717 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
6718 `grub-mkimage' (and use $0 when possible).
6719
b97b7b91
RM
67202009-11-08 Robert Millan <rmh.grub@aybabtu.com>
6721
6722 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
6723 error message for excessively large memory map.
6724
04114812
RM
67252009-11-08 Robert Millan <rmh.grub@aybabtu.com>
6726
6727 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
6728 executable bit.
6729
e4eb2373
RM
67302009-11-08 Robert Millan <rmh.grub@aybabtu.com>
6731
6732 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
6733 message for coreboot users.
6734
c926e1d5 67352009-11-07 Robert Millan <rmh.grub@aybabtu.com>
6736
6737 Fix build with GNU gold.
6738
6739 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
6740 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
6741 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
6742 link addresses.
6743 * aclocal.m4: Likewise.
6744
86e5b1db 67452009-11-04 Felix Zielcke <fzielcke@z-51.de>
6746
6747 * configure.ac (AC_PREREQ): Bump to 2.59d.
6748 * INSTALL: Make it more clear when Autoconf and Ruby are
6749 needed and when to run `./autogen.sh'.
6750
246cd78f 67512009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
6752
6753 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
6754 OSes.
6755
4f9dfb37 67562009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
6757
6758 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
6759
b82bd5e1 67602009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
6761
6762 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
6763 giving it to GNU Mach.
6764
ff1a9bca 67652009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
6766
6767 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
6768 GNU partition number to get internal GRUB partition number.
6769
61697d9c 67702009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
6771
6772 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
6773 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
6774
a50569e1 67752009-11-01 Robert Millan <rmh.grub@aybabtu.com>
6776
6777 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
6778 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
6779 case.
6780
5b153867 67812009-11-01 Felix Zielcke <fzielcke@z-51.de>
6782
6783 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
6784
d9e2cd70 67852009-10-30 Robert Millan <rmh.grub@aybabtu.com>
6786
6787 Fix build problem.
6788
6789 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
6790 `-isystem=$(srcdir)/include'.
6791
805111a4 67922009-10-30 Robert Millan <rmh.grub@aybabtu.com>
6793
6794 * util/i386/pc/grub-install.in: Remove hint that device.map should be
6795 checked (grub-install doesn't currently rely on it).
6796
fa6e945f 67972009-10-29 Robert Millan <rmh.grub@aybabtu.com>
6798
6799 Revert SVN r2660.
6800
6801 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
6802 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
6803 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
6804 * conf/i386-ieee1275.rmk: Likewise.
6805 * conf/i386-pc.rmk: Likewise.
6806 * conf/powerpc-ieee1275.rmk: Likewise.
6807 * conf/sparc64-ieee1275.rmk: Likewise.
6808 * conf/x86_64-efi.rmk: Likewise.
6809
cee15086 68102009-10-28 Robert Millan <rmh.grub@aybabtu.com>
6811
6812 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
6813
95b9239e 68142009-10-28 Robert Millan <rmh.grub@aybabtu.com>
6815
6816 * include/grub/misc.h: Stop checking for APPLE_CC.
6817
2ed19dfd 68182009-10-28 Robert Millan <rmh.grub@aybabtu.com>
6819
6820 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
6821 doesn't cause an infinite call loop.
6822
fdcdde19 68232009-10-28 Felix Zielcke <fzielcke@z-51.de>
6824
6825 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
6826 strings.
6827
cefabfe1 68282009-10-26 Robert Millan <rmh.grub@aybabtu.com>
6829
6830 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
6831 variable.
6832 * Makefile.in: Likewise.
6833
ed96ab6d 68342009-10-26 Robert Millan <rmh.grub@aybabtu.com>
6835
6836 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
6837
0579b753 68382009-10-26 Robert Millan <rmh.grub@aybabtu.com>
6839
6840 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
6841
478df409 68422009-10-26 Robert Millan <rmh.grub@aybabtu.com>
6843
6844 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
6845
083d1679 68462009-10-26 Robert Millan <rmh.grub@aybabtu.com>
6847
6848 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
6849 from here ...
6850 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
6851
5947ae32 68522009-10-26 Robert Millan <rmh.grub@aybabtu.com>
6853
6854 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
6855 in $(MAKEINFO) invocation. This makes it clear in output that
6856 errors are being ignored.
6857
94180ff6 68582009-10-26 Robert Millan <rmh.grub@aybabtu.com>
6859
6860 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
6861 from here ...
6862 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
6863 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
6864 * conf/i386-ieee1275.rmk: Likewise.
6865 * conf/i386-pc.rmk: Likewise.
6866 * conf/powerpc-ieee1275.rmk: Likewise.
6867 * conf/sparc64-ieee1275.rmk: Likewise.
6868 * conf/x86_64-efi.rmk: Likewise.
6869
9031b03a 68702009-10-26 Colin Watson <cjwatson@ubuntu.com>
6871
6872 * util/grub-editenv.c (main): If only a command is given, use
6873 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
6874 (usage): FILENAME is now optional and has a default.
6875
e4f6809b 68762009-10-26 Colin Watson <cjwatson@ubuntu.com>
6877
6878 Improve grub-mkconfig performance when there are several menu
6879 entries on a single filesystem.
6880
6881 * util/grub.d/10_linux.in (linux_entry): Cache the output of
6882 prepare_grub_to_access_device.
6883 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
6884 * util/grub.d/30_os-prober.in: Likewise.
6885
67937d4d 68862009-10-26 Robert Millan <rmh.grub@aybabtu.com>
6887
6888 * util/grub.d/10_freebsd.in: Remove.
6889 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
6890 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
6891
ee3756cc 68922009-10-26 Robert Millan <rmh.grub@aybabtu.com>
6893
5c35048e 6894 * docs/grub.cfg: Fix example usage of *BSD loaders.
ee3756cc 6895
4dea1c6f 68962009-10-25 Robert Millan <rmh.grub@aybabtu.com>
6897
6898 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
6899 grub_util_error() call.
6900
042484d7 69012009-10-25 Robert Millan <rmh.grub@aybabtu.com>
6902
6903 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
6904 `reserved_first_sector' member.
6905 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
6906 `reserved_first_sector' to 1.
6907 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
6908 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
6909 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
6910 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
6911 filesystems which begin at first sector.
6912 (options): New option --skip-fs-probe.
6913 (main): Handle --skip-fs-probe and pass it to setup().
6914
d64448a7 69152009-10-25 Robert Millan <rmh.grub@aybabtu.com>
6916
6917 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
6918 (memset): Fix function prototype.
6919
508d42ec 69202009-10-25 Robert Millan <rmh.grub@aybabtu.com>
69212009-10-25 Vasily Averin <vvs@parallels.com>
6922
6923 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
6924 `dirent.direntlen == 0'.
6925
b240e30c 69262009-10-25 Robert Millan <rmh.grub@aybabtu.com>
6927
6928 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
6929 `cpio'.
6930 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
6931
346e7fbe 69322009-10-25 Robert Millan <rmh.grub@aybabtu.com>
6933
6934 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
6935 `__trampoline_setup' and `__ucmpdi2'.
6936 * include/grub/powerpc/libgcc.h: Only export symbols for functions
6937 that libgcc provides.
6938
cdb308b0 69392009-10-25 Robert Millan <rmh.grub@aybabtu.com>
6940
6941 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
6942 * include/grub/sparc64/libgcc.h (memset): Likewise.
6943 * include/grub/misc.h (memset, memcmp): New function prototypes.
6944
fb26abc2 69452009-10-25 Robert Millan <rmh.grub@aybabtu.com>
6946
6947 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
6948 `cpio'.
6949 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
6950
f6693890 69512009-10-25 Robert Millan <rmh.grub@aybabtu.com>
6952
6953 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
6954 * docs/grub.cfg: Compensate for recent change in multiboot
6955 loader (since 2009-08-14 it won't pass filename to payload).
6956 * util/grub.d/10_hurd.in: Likewise.
6957
0933cdc0 69582009-10-21 Felix Zielcke <fzielcke@z-51.de>
6959
6960 * config.guess: Update to latest version from config git
6961 repository.
6962 * config.sub: Likewise.
6963
3b2fe8c2 69642009-10-20 Robert Millan <rmh.grub@aybabtu.com>
6965
6966 Fix build on sparc64.
6967
6968 * configure.ac: Perform checks for libgcc symbols before
6969 adding `-nostdlib' to LDFLAGS.
6970
46695a62 69712009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
6972
6973 Let user specify OpenBSD root device.
6974
6975 * loader/i386/bsd.c (openbsd_root): New variable.
6976 (openbsd_opts): New option 'root'.
6977 (OPENBSD_ROOT_ARG): New macro.
6978 (grub_openbsd_boot): Use 'openbsd_root'.
6979 (grub_cmd_openbsd): Fill 'openbsd_root'.
6980
d2b6b7fc 69812009-10-16 Robert Millan <rmh.grub@aybabtu.com>
6982
6983 * NEWS: Misc adjustments.
6984
421bd7ac 69852009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
6986
6987 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
6988
f1d29d87 69892009-10-16 Robert Millan <rmh.grub@aybabtu.com>
6990
6991 * configure.ac: Bump version to 1.97.
6992
6f3cd880 69932009-10-16 Colin Watson <cjwatson@ubuntu.com>
6994
6995 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
6996 -mno-3dnow on x86 architectures. Some toolchains enable these
6997 features by default, but they rely on registers that aren't enabled
6998 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
6999
035f7122 70002009-10-15 Robert Millan <rmh.grub@aybabtu.com>
7001
7002 Make entry text a bit more readable.
7003
7004 * util/grub.d/10_linux.in: Add `with' before `Linux'.
7005
44998e58 70062009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
7007
7008 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
7009
cd2851b3 70102009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
7011
7012 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
7013 operations.
7014
c6f3b249 70152009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
7016
7017 * configure.ac: Add missing dollar.
7018
6b5886ba 70192009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
7020
7021 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
7022
7023 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
7024 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
7025 exports.
7026 * include/grub/sparc64/libgcc.h: Likewise. Use
7027 preprocessor conditionals.
7028
e9d66f6d 70292009-10-14 Robert Millan <rmh.grub@aybabtu.com>
7030
7031 * conf/common.rmk (grub-dumpbios): Remove rule.
7032 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
7033 * util/grub-dumpbios.in: Remove file.
7034
9155bc17 70352009-10-14 Robert Millan <rmh.grub@aybabtu.com>
7036
7037 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
7038 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
7039
7040 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
7041 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
7042 users.
7043
7044 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
7045 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
7046 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
7047 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
7048 users.
7049
bf7f7a18 70502009-10-12 Robert Millan <rmh.grub@aybabtu.com>
7051
7052 * term/tparm.c: Switch to GPLv3.
7053
86564c26 70542009-10-09 Robert Millan <rmh.grub@aybabtu.com>
7055
7056 * include/grub/i386/cpuid.h: Add header protection.
7057
5c936493 70582009-10-09 Robert Millan <rmh.grub@aybabtu.com>
7059
7060 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
7061
7062 * include/grub/i386/cpuid.h: New file.
7063 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
7064 (has_longmode): Rename to ...
7065 (grub_cpuid_has_longmode): ... this. Update all users. Remove
7066 `static' attribute.
7067 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
7068 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
7069 on a CPU that doesn't implement AMD64 instruction set.
7070
186e7cf2 70712009-10-06 Colin Watson <cjwatson@ubuntu.com>
7072
7073 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
7074 that version.texi is rebuilt on version number changes.
7075
83b65c4a 70762009-10-06 Colin Watson <cjwatson@ubuntu.com>
7077
7078 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
7079 Fixes bug #27602.
7080
d244281c 70812009-10-06 Colin Watson <cjwatson@ubuntu.com>
7082
7083 * util/i386/pc/grub-install.in: Source
7084 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
7085 that the --grub-probe option will work.
7086 * util/sparc64/ieee1275/grub-install.in: Likewise.
7087
da25306d 70882009-10-05 Robert Millan <rmh.grub@aybabtu.com>
7089
7090 * configure.ac: Bump version to 1.97~beta4.
7091
e8ee83c0 70922009-10-03 Robert Millan <rmh.grub@aybabtu.com>
7093
7094 Resync grub-mkdevicemap in x86_64-efi.
7095
7096 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
7097 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
7098 `util/devicemap.c'.
7099
50dcabcf 71002009-10-01 Colin Watson <cjwatson@ubuntu.com>
7101
7102 * util/grub-editenv.c (create_envblk_file): Write new block with a
7103 .new suffix and then rename it into place, to ensure atomic
7104 creation.
7105
0e51c3a7 71062009-09-28 Robert Millan <rmh.grub@aybabtu.com>
7107
7108 Do not automatically install headers.
7109
7110 * Makefile.in (include_DATA): Remove. Update all users.
7111
31299a95 71122009-09-26 Robert Millan <rmh.grub@aybabtu.com>
7113
7114 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
7115 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
7116
7117 * util/osdetect.lua: Remove.
7118 * script/lua/lauxlib.c: Likewise.
7119 * script/lua/ldebug.c: Likewise.
7120 * script/lua/grub_main.c: Likewise.
7121 * script/lua/lauxlib.h: Likewise.
7122 * script/lua/ldebug.h: Likewise.
7123 * script/lua/ltablib.c: Likewise.
7124 * script/lua/liolib.c: Likewise.
7125 * script/lua/lstrlib.c: Likewise.
7126 * script/lua/lualib.h: Likewise.
7127 * script/lua/ldo.c: Likewise.
7128 * script/lua/ldump.c: Likewise.
7129 * script/lua/ldo.h: Likewise.
7130 * script/lua/loslib.c: Likewise.
7131 * script/lua/lundump.c: Likewise.
7132 * script/lua/grub_lib.c: Likewise.
7133 * script/lua/ldblib.c: Likewise.
7134 * script/lua/lundump.h: Likewise.
7135 * script/lua/lmem.c: Likewise.
7136 * script/lua/grub_lib.h: Likewise.
7137 * script/lua/lmathlib.c: Likewise.
7138 * script/lua/lstate.c: Likewise.
7139 * script/lua/ltm.c: Likewise.
7140 * script/lua/lvm.c: Likewise.
7141 * script/lua/lmem.h: Likewise.
7142 * script/lua/lstate.h: Likewise.
7143 * script/lua/ltm.h: Likewise.
7144 * script/lua/ltable.c: Likewise.
7145 * script/lua/lvm.h: Likewise.
7146 * script/lua/llex.c: Likewise.
7147 * script/lua/lgc.c: Likewise.
7148 * script/lua/grub_lua.h: Likewise.
7149 * script/lua/loadlib.c: Likewise.
7150 * script/lua/lfunc.c: Likewise.
7151 * script/lua/lopcodes.c: Likewise.
7152 * script/lua/lparser.c: Likewise.
7153 * script/lua/ltable.h: Likewise.
7154 * script/lua/llex.h: Likewise.
7155 * script/lua/lgc.h: Likewise.
7156 * script/lua/lfunc.h: Likewise.
7157 * script/lua/lbaselib.c: Likewise.
7158 * script/lua/lopcodes.h: Likewise.
7159 * script/lua/lparser.h: Likewise.
7160 * script/lua/lzio.c: Likewise.
7161 * script/lua/linit.c: Likewise.
7162 * script/lua/lobject.c: Likewise.
7163 * script/lua/llimits.h: Likewise.
7164 * script/lua/lstring.c: Likewise.
7165 * script/lua/lzio.h: Likewise.
7166 * script/lua/lapi.c: Likewise.
7167 * script/lua/lcode.c: Likewise.
7168 * script/lua/lua.h: Likewise.
7169 * script/lua/lobject.h: Likewise.
7170 * script/lua/lstring.h: Likewise.
7171 * script/lua/lapi.h: Likewise.
7172 * script/lua/lcode.h: Likewise.
7173 * script/lua/luaconf.h: Likewise.
7174
cb8a2c38 71752009-09-26 Colin Watson <cjwatson@ubuntu.com>
7176
7177 * docs/grub.texi (Command-line and menu entry commands): Document
7178 date and echo commands.
7179
6b9b6276 71802009-09-24 Pavel Roskin <proski@gnu.org>
7181
7182 * include/grub/kernel.h (struct grub_module_header): Remove
7183 `grub_module_header_types'. Make `type' unsigned. Make `size'
7184 32-bit on all platforms.
7185 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
7186 8-bit field. Use grub_host_to_target32() for `size'.
7187 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
7188 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
7189 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
7190
4e5a02a7 71912009-09-24 Robert Millan <rmh.grub@aybabtu.com>
7192
7193 Fix "lost keypress" bug in at_keyboard.
7194
7195 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
7196 Checks for readyness of input buffer (without flushing it).
7197 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
7198 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
7199
c6dcedf6 72002009-09-24 Robert Millan <rmh.grub@aybabtu.com>
7201
7202 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
7203 size check within GRUB_MACHINE_PCBIOS section.
7204
74c958b1 72052009-09-24 Robert Millan <rmh.grub@aybabtu.com>
7206
7207 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
7208 return value.
7209 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
7210 KEYBOARD_ISREADY check.
7211 (grub_at_keyboard_checkkey): Rename to ...
7212 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
7213 Remove gratuitous cast.
7214
ff420223 72152009-09-23 Colin Watson <cjwatson@ubuntu.com>
7216
7217 * configure.ac: Call AC_PROG_MKDIR_P.
7218 * Makefile.in (docs/stamp-vti): Create docs directory. Create
7219 version.texi in $(builddir) rather than $(srcdir).
7220 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
7221 to makeinfo's @include search path.
7222
d96875df 72232009-09-23 Felix Zielcke <fzielcke@z-51.de>
7224
7225 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
7226
9b3f8365 72272009-09-23 Felix Zielcke <fzielcke@z-51.de>
7228
7229 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
7230 for `*.dpkg-new'.
7231
c44c90db 72322009-09-21 Colin Watson <cjwatson@ubuntu.com>
7233
7234 Build info documentation. Some code borrowed from Automake.
7235
7236 * configure.ac: Check for makeinfo.
7237 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
7238 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
7239 docs/version.texi.
7240 (MOSTLYCLEANFILES): Add vti.tmp.
7241 (docs/version.texi, docs/stamp-vti): Update automatically.
7242 (docs/grub.info): Build info documentation. Use --force and ignore
7243 errors for now.
7244 (all-local): Add $(INFOS).
7245 (install-local): Install info files.
7246 (uninstall): Uninstall info files.
7247 * docs/version.texi: Remove from revision control. This file is
7248 automatically generated on build now.
7249 * gendistlist.sh: Add `*.info'.
7250
e0b37bb5 72512009-09-21 Felix Zielcke <fzielcke@z-51.de>
7252
7253 * kern/term.c: Fix indentation.
7254
5a78865b 72552009-09-21 Felix Zielcke <fzielcke@z-51.de>
7256
7257 * util/hostdisk.c: Fix a comment.
7258
dace7e8a 72592009-09-20 Robert Millan <rmh.grub@aybabtu.com>
7260
7261 Fix regression introduced in r2539.
7262
7263 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
7264 to 0xA1.
7265
a83d079b 72662009-09-19 Colin Watson <cjwatson@ubuntu.com>
7267
7268 * util/grub.d/30_os-prober.in: Don't throw away stderr from
4cbbccec 7269 os-prober. Under normal operation, it does not print anything to
7270 stderr; if it does, we need to debug it, and throwing away stderr
7271 makes that excessively difficult.
a83d079b 7272
be94a509 72732009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
7274
7275 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
7276
63f745e8 72772009-09-16 Robert Millan <rmh.grub@aybabtu.com>
7278
7279 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
7280 AC_LANG_PROGRAM from autoconf.
7281 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
7282 prototypes (fixes warning).
7283
7284 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
7285 `--disable-werror' was used.
7286
bbb2a70f 72872009-09-16 Robert Millan <rmh.grub@aybabtu.com>
7288
7289 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
7290 uninitialized `lastaddr'.
7291
77c24f1d 72922009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
7293
0f0b8c87 7294 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
77c24f1d 7295
07197f23 72962009-09-14 Colin Watson <cjwatson@ubuntu.com>
7297
7298 * commands/test.c (get_fileinfo): Return immediately if
7299 grub_fs_probe fails.
7300
dabf1798 73012009-09-14 José Martínez <xosemp@gmail.com>
7302
7303 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
7304
d52109a7 73052009-09-14 Colin Watson <cjwatson@ubuntu.com>
7306
7307 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
7308 output.
7309
56532179 73102009-09-13 Robert Millan <rmh.grub@aybabtu.com>
7311
7312 * configure.ac: Remove --enable-grub-pe2elf. Only build
7313 grub-pe2elf when needed by the build system itself.
7314 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
7315
8ef070f5 73162009-09-12 Robert Millan <rmh.grub@aybabtu.com>
7317
7318 * configure.ac: Bump version to 1.97~beta3.
7319 * docs/version.texi: Likewise.
7320
61229557 73212009-09-12 Robert Millan <rmh.grub@aybabtu.com>
7322
7323 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
7324 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
7325 from here ...
7326 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
7327 (grub_linux_setup_video): ... to here (with some adjustments).
7328
5c9f8d84 73292009-09-12 Robert Millan <rmh.grub@aybabtu.com>
7330
7331 Fix memory corruption issue (spotted by Colin Watson).
7332
7333 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
7334 causing returned size to be stored in an incorrect memory location.
7335 Fix use of uninitialized value when storing the returned size.
7336
e8f5d6e9 73372009-09-12 Yves Blusseau <blusseau@zetam.org>
7338
7339 Change clean rules to properly remove files
7340
7341 * genmk.rb: add new clean rules
7342 * Makefile.in (clean): add the new targets
7343 (mostlyclean): likewise
7344
cda2a409 73452009-09-11 Colin Watson <cjwatson@ubuntu.com>
7346
7347 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
7348 to grub_uint64_t.
7349 * fs/ntfs.c (init_file): Understand 64-bit sizes for
7350 non-resident files.
7351
86695375 73522009-09-11 Colin Watson <cjwatson@ubuntu.com>
7353
7354 * configure.ac: Don't look for help2man when cross-compiling. Fixes
7355 part of bug #27349.
7356
8aa1541a 73572009-09-10 Felix Zielcke <fzielcke@z-51.de>
7358
7359 * util/grub-mkconfig.in: Make the created config mode 400 and
7360 print a warning if it fails.
7361
48d9bb0a 73622009-09-10 Robert Millan <rmh.grub@aybabtu.com>
7363
7364 * util/grub.d/40_custom.in: Ask user to type custom entries below
7365 comment, rather than below 'exec tail' line.
7366
3b0521be 73672009-09-10 Colin Watson <cjwatson@ubuntu.com>
7368
7369 * util/grub.d/40_custom.in: Make sure that the explanatory text is
7370 visible in grub.cfg.
7371
50051d55 73722009-09-10 Colin Watson <cjwatson@ubuntu.com>
7373
7374 * util/grub.d/40_custom.in: Make it a little clearer how to use this
7375 file.
7376
c0d34387 73772009-09-10 Felix Zielcke <fzielcke@z-51.de>
7378
7379 * docs/grub.cfg: Add an example menu entry for memtest86+.
7380
80a608f3 73812009-09-09 Felix Zielcke <fzielcke@z-51.de>
7382
a2094832 7383 * config.guess: Update to latest version from config git.
80a608f3 7384 * config.sub: Likewise.
7385
99423078 73862009-09-08 Colin Watson <cjwatson@ubuntu.com>
7387
7388 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
7389 unknown-command case. Fixes bug #27320.
7390
44454e4c 73912009-09-08 Felix Zielcke <fzielcke@z-51.de>
7392
7393 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
7394 `help' if the command exists.
7395
e30d87ad 73962009-09-06 Robert Millan <rmh.grub@aybabtu.com>
7397
7398 * INSTALL: Require GCC 4.1.3 or later.
7399
9a86f1ec 74002009-09-06 Yves Blusseau <blusseau@zetam.org>
7401
7402 * Makefile.in (RMKFILES): add i386-qemu.rmk
7403 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
7404 $(srcdir)/stamp-h.in
7405
7f26d466 74062009-09-05 Robert Millan <rmh.grub@aybabtu.com>
7407
7408 * util/grub-probe.c (probe): Comment out buggy codepath, which
7409 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
7410 should be re-enabled after 1.97.
7411
3a613259 74122009-09-05 Felix Zielcke <fzielcke@z-51.de>
7413
7414 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
7415 find searches for.
7416
197f76c7 74172009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
7418
7419 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
7420 unnecessary calls to grub_error.
7421
70ba68ce 74222009-09-04 Colin Watson <cjwatson@ubuntu.com>
7423
7424 * NEWS: Mention `keystatus' and Unicode fonts.
7425
4ff0d7a4 74262009-09-04 Robert Millan <rmh.grub@aybabtu.com>
7427
7428 * configure.ac: Bump version to 1.97~beta2.
7429 * docs/version.texi: Likewise.
7430
77c55a87 74312009-09-03 Colin Watson <cjwatson@ubuntu.com>
7432
7433 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
7434 containing unwind information in some cases where it previously did
7435 not. Use -fno-dwarf2-cfi-asm if available to restore the old
7436 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
7437 discussion.
7438
f79572cd 74392009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
7440
7441 Embedding loadenv module into grub-emu
7442
7443 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
7444 commands/loadenv.c
7445 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
7446 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
7447 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
7448 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
7449 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
7450 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
7451
93a81088 74522009-09-03 Magnus Granberg <zorry@ume.nu>
7453
7454 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
7455 include -fPIE in the default specs.
7456 * configure.ac: Check if pie_possible is yes and add -fno-PIE
7457 to TARGET_CFLAGS.
7458
160034b2 74592009-09-03 Felix Zielcke <fzielcke@z-51.de>
7460
7461 * INSTALL: Note that GNU Bison 2.3 or later is required.
7462
087c07c4 74632009-09-03 Colin Watson <cjwatson@ubuntu.com>
7464
7465 * kern/i386/pc/startup.S: Fix typo.
7466
cbf978c0 74672009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
7468
7469 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
7470 according to GCS.
7471
74722009-09-02 Colin Watson <cjwatson@ubuntu.com>
f0910644 7473
7474 * docs/grub.texi (Naming convention): Describe one-based partition
7475 numbering.
7476 (Device syntax): Likewise.
7477 (File name syntax): Likewise.
7478 (Block list syntax): Likewise.
7479 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
7480 menu.lst.
7481 (File name syntax): Likewise.
7482 (Command-line and menu entry commands): Document acpi, blocklist,
7483 crc, export, insmod, keystatus, ls, set, and unset commands.
7484
f3e8cdfd 74852009-09-02 Colin Watson <cjwatson@ubuntu.com>
7486
7487 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
7488 to avoid implying that only one of --shift, --ctrl, or --alt may be
7489 used.
7490
c0bc232b 74912009-09-02 Colin Watson <cjwatson@ubuntu.com>
7492
7493 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
7494 rather than comparing against S_IFREG, which will almost never work.
7495
aa0f752d 74962009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
7497
7498 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
7499 (write_blocklists): Likewise.
7500
ecb3166a 75012009-09-01 Colin Watson <cjwatson@ubuntu.com>
7502
7503 * script/lua/grub_lua.h (fputs): Supply a format string as the first
7504 argument to grub_printf.
7505
c403a125 75062009-09-01 Felix Zielcke <fzielcke@z-51.de>
31aba781 7507
7508 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
c403a125 7509 non GNU test.
31aba781 7510
b5e7312c 75112009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
7512
7513 * kern/file.c (grub_file_read): Spelling fix
7514
fe00f472 75152009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
7516
7517 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
7518 loading of headers in some cases.
7519
cc55302e 75202009-08-30 Robert Millan <rmh.grub@aybabtu.com>
7521
7522 * configure.ac: Bump version to 1.97~beta1.
7523 * docs/version.texi: Likewise.
7524
5c90cdd2 75252009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
64bf71d0 7526
7527 * include/grub/i386/xnu.h: Add license header.
7528 include grub/err.h explicitly.
7529
c90edae4 75302009-08-29 Robert Millan <rmh.grub@aybabtu.com>
7531
7532 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
7533 to `ufs' in the vfs.root.mountfrom kernel parameter.
7534
d8888b5c 75352009-08-29 Robert Millan <rmh.grub@aybabtu.com>
7536
7537 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
7538
7539 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
7540 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
7541
7542 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
7543 `ARRAY_SIZE' macro.
7544
6f07b921 75452009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
7546
7547 * kern/file.c (grub_file_read): Check offset.
7548 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
7549 * fs/jfs.c (grub_jfs_read_file): Likewise.
7550 * fs/ntfs.c (grub_ntfs_read): Likewise.
7551 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
7552 * fs/minix.c (grub_minix_read_file): Correct offset check.
7553 * fs/ufs.c (grub_ufs_read_file): Likewise.
7554
b4f34077 75552009-08-28 Colin Watson <cjwatson@ubuntu.com>
7556
7557 * term/i386/pc/console.c (bios_data_area): Cast
7558 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
7559
e7c69859 75602009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
7561
7562 1-bit optimised blitters.
7563
7564 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
7565 prototype.
7566 (grub_video_fbblit_replace_24bit_1bit): Likewise.
7567 (grub_video_fbblit_replace_16bit_1bit): Likewise.
7568 (grub_video_fbblit_replace_8bit_1bit): Likewise.
7569 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
7570 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
7571 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
7572 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
7573 function.
7574 (grub_video_fbblit_replace_24bit_1bit): Likewise.
7575 (grub_video_fbblit_replace_16bit_1bit): Likewise.
7576 (grub_video_fbblit_replace_8bit_1bit): Likewise.
7577 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
7578 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
7579 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
7580 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
7581 when possible.
7582 * video/video.c (grub_video_get_blit_format): Return
7583 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
7584
a57da43f 75852009-08-28 Colin Watson <cjwatson@ubuntu.com>
7586
7587 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
7588 the first argument to grub_printf.
7589
4cbe67e5 75902009-08-28 Colin Watson <cjwatson@ubuntu.com>
75912009-08-28 Robert Millan <rmh.grub@aybabtu.com>
7592
7593 Add `getkeystatus' terminal method. Add a new `keystatus' command
7594 to query it.
7595
7596 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
7597 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
7598 modifier key bitmasks.
7599 (struct grub_term_input): Add `getkeystatus' member.
7600 (grub_getkeystatus): Add prototype.
7601 * kern/term.c (grub_getkeystatus): New function.
7602
7603 * include/grub/i386/pc/memory.h
7604 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
7605 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
7606 Data Area layout.
7607 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
7608 (grub_console_term_input): Set `getkeystatus' member.
7609 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
7610 constants.
7611 (grub_usb_keyboard_getreport): Likewise.
7612 (grub_usb_keyboard_checkkey): Likewise.
7613 (grub_usb_keyboard_getkeystatus): New function.
7614 (grub_usb_keyboard_term): Set `getkeystatus' member.
7615
7616 * commands/keystatus.c: New file.
7617 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
7618 (keystatus_mod_SOURCES): New variable.
7619 (keystatus_mod_CFLAGS): Likewise.
7620 (keystatus_mod_LDFLAGS): Likewise.
7621 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
7622 commands/keystatus.c.
7623 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
7624 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
7625 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
7626 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
7627 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
7628 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
4cbe67e5 7629
6e2a9085 76302009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
7631
7632 Split befs.mod and afs.mod into *_be.mod and *.mod
7633
7634 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
7635 (grub_fstest_SOURCES): Likewise.
7636 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
7637 (afs_be_mod_SOURCES): New variable.
7638 (afs_be_mod_CFLAGS): Likewise.
7639 (afs_be_mod_LDFLAGS): Likewise.
7640 (befs_be_mod_SOURCES): Likewise.
7641 (befs_be_mod_CFLAGS): Likewise.
7642 (befs_be_mod_LDFLAGS): Likewise.
7643 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
7644 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
7645 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
7646 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
7647 (grub_emu_SOURCES): Likewise.
7648 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
7649 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
7650 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
7651 * fs/afs_be.c: New file.
7652 * fs/befs_be.c: New file.
7653 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
7654 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
7655 (U16): Replaced with ...
7656 (grub_afs_to_cpu16): ...this. All users updated.
7657 (U32): Replaced with ...
7658 (grub_afs_to_cpu32): ...this. All users updated.
7659 (U64): Replaced with ...
7660 (grub_afs_to_cpu64): ...this. All users updated.
7661 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
7662 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
ad8ea1f4 7663 (grub_afs_validate_sblock): Check only one endianness.
6e2a9085 7664 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
7665 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
7666 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
7667 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
7668 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
7669 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
7670 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
7671 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
7672
32a71655 76732009-08-26 Bean <bean123ch@gmail.com>
7674
7675 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
7676 64-bit number.
7677 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
7678 (grub_xfs_inode_block): Change return type to grub_uint64_t.
7679 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
7680
552bf6c5 76812009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
7682
7683 NetBSD memory map support.
7684
7685 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
7686 (grub_netbsd_btinfo_mmap_header): New structure.
7687 (grub_netbsd_btinfo_mmap_entry): Likewise.
7688 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
7689
1ae2078c 76902009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
7691
7692 Enable bsd.mod on coreboot.
7693
7694 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
7695 (bsd_mod_SOURCES): New variable.
7696 (bsd_mod_CFLAGS): Likewise.
7697 (bsd_mod_LDFLAGS): Likewise.
7698 (bsd_mod_ASFLAGS): Likewise.
7699 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
7700 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
7701
beefc598 77022009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
7703
7704 Cleanup NetBSD root support.
7705
7706 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
7707 grub_bsd_get_device.
7708 Fix typo.
7709
3b76e68b 77102009-08-25 Felix Zielcke <fzielcke@z-51.de>
7711
7712 * util/grub.d/00_header.in: Move check for the video backend of
7713 gfxterm from here ...
7714 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
7715 a suitable video backend.
7716
aea664ea 77172009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
7718
7719 Fix breakage in grub-setup.
7720
7721 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
7722 "msdos_partition_map".
7723
ff747d50 77242009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
7725
7726 Fix breakage in normal/auth.c.
7727
7728 * normal/auth.c (grub_iswordseparator): New function.
7729
e7e1f93f 77302009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
7731
7732 Authentication support.
7733
7734 * commands/password.c: New file.
7735 * conf/common.rmk (pkglib_MODULES): Add password.mod.
7736 (password_mod_SOURCES): New variable.
7737 (password_mod_CFLAGS): Likewise.
7738 (password_mod_LDFLAGS): Likewise.
7739 (normal_mod_SOURCES): Add normal/auth.c.
7740 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
7741 normal/auth.c.
7742 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
7743 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
7744 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
7745 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
7746 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
7747 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
7748 * include/grub/auth.h: New file.
7749 * include/grub/err.h (grub_err_t): New enum value
7750 GRUB_ERR_ACCESS_DENIED.
7751 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
7752 'users'.
7753 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
7754 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
7755 users updated.
7756 * normal/auth.c: New file.
7757 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
7758 (grub_cmdline_run): Don't allow to go to command line without
7759 authentication.
7760 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
7761 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
7762 menuentry without superuser rights.
7763 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
7764 user isn't a superuser.
7765
70f1161d 77662009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
7767
7768 Save space by inlining misc.c functions.
7769
7770 * kern/misc.c (grub_iswordseparator): Made static.
7771 * kern/misc.c (grub_strcat): Moved from here ...
7772 * include/grub/misc.h (grub_strcat): ... here. Inlined.
7773 * kern/misc.c (grub_strncat): Moved from here ...
7774 * include/grub/misc.h (grub_strncat): ... here. Inlined.
7775 * kern/misc.c (grub_strcasecmp): Moved from here ...
7776 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
7777 * kern/misc.c (grub_strncasecmp): Moved from here ...
7778 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
7779 * kern/misc.c (grub_isalpha): Moved from here ...
7780 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
7781 * kern/misc.c (grub_isdigit): Moved from here ...
7782 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
7783 * kern/misc.c (grub_isgraph): Moved from here ...
7784 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
7785 * kern/misc.c (grub_tolower): Moved from here ...
7786 * include/grub/misc.h (grub_tolower): ... here. Inlined.
7787
48e40bff 77882009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
7789
7790 * script/sh/function.c (grub_script_function_find): Cut error message
7791 not to flood terminal.
7792 * script/sh/lexer.c (grub_script_yylex): Remove command line length
7793 limit.
7794 * script/sh/script.c (grub_script_arg_add): Duplicate string.
7795
c385bfc3 77962009-08-24 Colin Watson <cjwatson@ubuntu.com>
7797
7798 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
7799 `report' grub_uint8_t *.
7800 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
7801 Use a 50-millisecond timeout rather than just repeating
7802 grub_usb_keyboard_getreport 50 times.
7803 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
7804
2d21e3e8 78052009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
7806
7807 Rename *_partition_map to part_*
7808
7809 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
7810 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
7811 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
7812 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
7813 All users updated.
7814 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
7815 All users updated.
7816 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
7817 * util/grub-probe.c (probe_partmap): Don't transform partition name
7818 to get module name.
7819
dd103c4e 78202009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
7821
7822 Fix OpenBSD and NetBSD support.
7823
7824 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
7825 memory address conflict.
7826 (OPENBSD_MMAP_ACPI): New definition.
7827 (OPENBSD_MMAP_NVS): Likewise.
7828 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
7829 and OPENBSD_MMAP_NVS.
7830 Add memory map terminator
7831 Explicit cast when calling grub_unix_real_boot.
ad8ea1f4 7832 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
dd103c4e 7833
16c84d74 78342009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
7835
7836 Let user specify NetBSD root device.
7837
7838 * loader/i386/bsd.c (netbsd_root): New variable.
7839 (netbsd_opts): New option 'root'.
7840 (NETBSD_ROOT_ARG): New macro.
7841 (grub_netbsd_boot): Use 'netbsd_root'.
7842 (grub_bsd_unload): Free 'netbsd_root'.
7843 (grub_cmd_netbsd): Fill 'netbsd_root'.
7844
adb29902 78452009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
7846
7847 Support for 64-bit NetBSD.
7848
7849 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
7850 point when booting non-FreeBSD.
7851
f5ae9f74 78522009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
7853
7854 Support --no-smp and --no-acpi for NetBSD.
7855
7856 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
7857 (NETBSD_AB_NOACPI): Likewise.
7858 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
7859 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
7860
de74f136 78612009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
7862
7863 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
7864 errors.
7865 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
7866 errors. Call grub_error when needed.
7867
e9a925da 78682009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
7869
7870 * commands/search.c (search_fs): Try searching without autoload first.
7871 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
7872 filesystem module explicitly for faster booting.
7873
5174302b 78742009-08-23 Colin Watson <cjwatson@ubuntu.com>
7875
7876 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
7877
c8c80635 78782009-08-23 Colin Watson <cjwatson@ubuntu.com>
7879
7880 * util/grub.d/30_os-prober.in: Disable os-prober if
7881 `GRUB_DISABLE_OS_PROBER' was set to true.
7882
71acf5e5 78832009-08-23 Robert Millan <rmh.grub@aybabtu.com>
7884
7885 * partmap/pc.c: Rename to ...
7886 * partmap/msdos.c: ... this. Update all users.
7887 (grub_pc_partition_map): Rename to ...
7888 (grub_msdos_partition_map): ... this. Update all users.
7889
7890 * parttool/pcpart.c: Rename to ...
7891 * parttool/msdospart.c: ... this. Update all users.
7892
7893 * include/grub/pc_partition.h: Rename to ...
7894 * include/grub/msdos_partition.h: ... this. Update all users.
7895 (grub_pc_partition_bsd_entry): Rename to ...
7896 (grub_msdos_partition_bsd_entry): ... this. Update all users.
7897 (grub_pc_partition_disk_label): Rename to ...
7898 (grub_msdos_partition_disk_label): ... this. Update all users.
7899 (grub_pc_partition_entry): Rename to ...
7900 (grub_msdos_partition_entry): ... this. Update all users.
7901 (grub_pc_partition_mbr): Rename to ...
7902 (grub_msdos_partition_mbr): ... this. Update all users.
7903 (grub_pc_partition): Rename to ...
7904 (grub_msdos_partition): ... this. Update all users.
7905 (grub_pc_partition_is_empty): Rename to ...
7906 (grub_msdos_partition_is_empty): ... this. Update all users.
7907 (grub_pc_partition_is_extended): Rename to ...
7908 (grub_msdos_partition_is_extended): ... this. Update all users.
7909 (grub_pc_partition_is_bsd): Rename to ...
7910 (grub_msdos_partition_is_bsd): ... this. Update all users.
7911
7912 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
7913 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
7914 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
7915 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
7916 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
7917 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
7918 (gpt_mod_LDFLAGS): Rename to ...
7919 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
7920 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
7921 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
7922 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
7923 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
7924 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
7925 (part_gpt_mod_LDFLAGS): ... this.
7926 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
7927 `pcpart.mod' to `msdospart.mod'.
7928 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
7929 to ...
7930 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
7931 (msdospart_mod_LDFLAGS): ... this.
7932
c11fded5 79332009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
7934
7935 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
7936 (openbsd_opts): Likewise.
7937 (netbsd_opts): Likewise.
7938 (freebsd_flags): Added 0 terminator.
7939 (openbsd_flags): Likewise.
7940 (netbsd_flags): Likewise.
7941 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
7942 (grub_cmd_freebsd): Transformed into extended command.
7943 (grub_cmd_openbsd): Likewise.
7944 (grub_cmd_netbsd): Likewise.
7945 (cmd_freebsd): Changed type to grub_extcmd_t.
7946 (cmd_openbsd): Likewise.
7947 (cmd_netbsd): Likewise.
7948 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
7949 grub_cmd_openbsd as extended commands.
7950 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
7951 cmd_netbsd and cmd_openbsd
7952
11d1c769 79532009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
7954
7955 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
7956
7a9094e5 79572009-08-21 Pavel Roskin <proski@gnu.org>
7958
5496c37e 7959 * Makefile.in (install-local): When checking if a file is in the
7960 build directory, use "test -e" to detect symlinks.
7961
7a9094e5 7962 * Makefile.in (install-local): Remove all files in
7963 $(DESTDIR)$(pkglibdir) before installing new files there.
7964
e53cea11 79652009-08-18 Felix Zielcke <fzielcke@z-51.de>
7966
7967 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
7968 grub-mkelfimage.
7969
9aced544 79702009-08-18 Felix Zielcke <fzielcke@z-51.de>
7971
7972 * util/grub-mkconfig.in: Don't use gfxterm by default if not
7973 explicitly specified by the user.
7974
b7da6bab 79752009-08-18 Pavel Roskin <proski@gnu.org>
7976
7977 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
7978 grub_uint8_t pointer for data.
7979 * include/grub/fbutil.h (struct grub_video_fbblit_info):
7980 Likewise.
7981 * video/fb/fbutil.c: Remove unnecessary casts.
7982
19f1b335 79832009-08-17 Michal Suchanek <hramrach@centrum.cz>
7984
7985 VBE cleanup.
7986
7987 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
7988 (grub_vbe_set_video_mode): Save active mode info
7989 only after setting the mode.
7990 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
7991 second argument.
7992
2f467aa9 79932009-08-17 Michal Suchanek <hramrach@centrum.cz>
7994
7995 Rename variables for clarity.
7996
7997 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
7998 (active_vbe_mode_info): ... this. All users updated.
7999 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
8000 All users updated.
8001 (initial_mode): Rename to ...
8002 (initial_vbe_mode): ... this. All users updated.
8003 (mode_in_use): Rename to ..
8004 (vbe_mode_in_use): ... this. All users updated.
8005 (mode_list): Rename to ..
8006 (vbe_mode_list): ... this. All users updated.
8007 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
8008 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
8009 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
8010 'mode_list_size' to 'vbe_mode_list_size'.
8011 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
8012 'best_mode_info' to 'best_vbe_mode_info' and
8013 'best_mode' to 'best_vbe_mode'
8014
6025fcd7 80152009-08-17 Michal Suchanek <hramrach@centrum.cz>
8016
8017 Remove duplicate grub_video_fb_get_video_ptr.
8018
8019 * include/grub/fbutil.h (get_data_ptr): Rename to ...
8020 (grub_video_fb_get_video_ptr): ... this.
8021 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
8022 * video/fb/fbutil.c: Add comment about addressing.
8023 (get_data_ptr): Rename to ...
8024 (grub_video_fb_get_video_ptr): ... this. All users updated.
8025 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
8026
cc8c6faf 80272009-08-17 Robert Millan <rmh.grub@aybabtu.com>
8028
8029 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
8030 grub_dprintf() that was just added.
8031
08aa61f0 80322009-08-17 Robert Millan <rmh.grub@aybabtu.com>
8033
8034 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
8035 (DEFAULT_VIDEO_MODE): Remove macros.
8036 (grub_linux_boot): Remove assumption that Linux has FB support,
8037 and use "text" as default video mode.
8038
7cef4f75 80392009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
8040
8041 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
8042 grub_dprintf.
8043 * fs/fat.c (grub_fat_read_data): Likewise.
8044
e1f39873 80452009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
8046
8047 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
8048 payload.
8049 (grub_module): Likewise.
8050
c166d79e 80512009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
8052
8053 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
8054 mbi->cmdline but free playground.
8055
c60cee8e 80562009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
8057
8058 Handle group offset on UFS1.
8059
8060 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
8061 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
8062
c0d8b5d4 80632009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
8064
8065 Split ufs.mod into ufs1.mod and ufs2.mod.
8066
8067 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
8068 (grub_fstest_SOURCES): Likewise.
8069 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
8070 (ufs_mod_SOURCES): Remove.
8071 (ufs_mod_CFLAGS): Likewise.
8072 (ufs_mod_LDFLAGS): Likewise.
8073 (ufs1_mod_SOURCES): New variable.
8074 (ufs1_mod_CFLAGS): Likewise.
8075 (ufs1_mod_LDFLAGS): Likewise.
25fbd77a 8076 (ufs2_mod_SOURCES): New variable.
8077 (ufs2_mod_CFLAGS): Likewise.
8078 (ufs2_mod_LDFLAGS): Likewise.
c0d8b5d4 8079 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
8080 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
8081 Likewise.
8082 (grub_emu_SOURCES): Likewise.
8083 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8084 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
8085 (grub_setup_SOURCES): Likewise.
8086 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8087 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
8088 (grub_setup_SOURCES): Likewise.
8089 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
8090 Likewise.
8091 * fs/ufs2.c: New file.
8092 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
8093
d3539132 80942009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
8095
8096 Framebuffer split.
8097
8098 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
8099 subsystem at the end.
8100 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
8101 (video_fb_mod_SOURCES): New variable.
8102 (video_fb_mod_CFLAGS): Likewise.
8103 (video_fb_mod_LDFLAGS): Likewise.
8104 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
8105 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
8106 * video/i386/pc/vbeblit.c: Moved from here ...
8107 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
8108 * video/i386/pc/vbefill.c: Moved from here ...
8109 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
8110 * video/i386/pc/vbeutil.c: Moved from here ...
8111 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
8112 * include/grub/i386/pc/vbeblit.h: Moved from here ...
8113 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
8114 * include/grub/i386/pc/vbefill.h: Moved from here ...
8115 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
8116 * include/grub/i386/pc/vbeutil.h: Moved from here ...
8117 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
8118 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
8119 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
8120 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
8121 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
8122 (grub_video_adapter): Added 'get_info_and_fini'.
8123 (grub_video_get_info_and_fini): New prototype.
8124 (grub_video_set_mode): make modestring const char *.
8125 * loader/i386/linux.c (grub_linux_setup_video): Use
8126 grub_video_get_info_and_fini.
8127 (grub_linux_boot): Move modesetting just before booting.
8128 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
8129 grub_video_get_info_and_fini.
8130 * video/i386/pc/vbe.c: Moved framebuffer part ...
8131 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
8132 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
8133 grub_video_fbstd_colors and grub_video_fb_set_palette.
8134 (grub_video_vbe_init): Clear 'framebuffer' variable and use
8135 grub_video_fb_init.
8136 (grub_video_vbe_fini): Use grub_video_fb_fini.
8137 (grub_video_vbe_setup): Use framebuffer.render_target instead of
8138 render_target and use grub_video_fb_set_active_render_target and
8139 grub_video_fb_set_palette.
8140 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
8141 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
8142 (grub_video_vbe_adapter): Use framebuffer.
8143 * video/video.c (grub_video_get_info_and_fini): New function.
8144 (grub_video_set_mode): Make modestring const char *.
8145 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
8146 values are already initialised.
8147
d404ee56 81482009-08-14 Pavel Roskin <proski@gnu.org>
8149
8150 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
8151 ABS and APPLE_CC.
8152 * boot/i386/pc/diskboot.S: Likewise.
8153 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
8154 sectors allow compilation on MacOSX.
8155 * conf/i386-pc.rmk: Enable unconditional compilation of
8156 lnxboot.img.
8157
9a10df16 81582009-08-13 Colin Watson <cjwatson@ubuntu.com>
8159
8160 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
8161 * util/grub.d/00_header.in: Enter interruptible sleep if
8162 GRUB_HIDDEN_TIMEOUT is set.
8163
be3c9ca7 81642009-08-13 Yves Blusseau <blusseau@zetam.org>
8165
8166 * include/grub/symbol.h: Add the LOCAL macro.
8167 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
8168 starting with "L_".
8169
1f9e557e 81702009-08-13 Pavel Roskin <proski@gnu.org>
8171
9ca62843 8172 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
8173 any modern compilers we support.
8174
1f9e557e 8175 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
8176 Use local labels starting with "L_" so that Apple assembler
8177 knows they are local.
8178
81623db6 81792009-08-10 Robert Millan <rmh.grub@aybabtu.com>
8180
8181 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
8182 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
8183 (bsd_kernel_types): ... this enum.
8184
8185 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
8186 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
8187 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
8188
8189 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
8190 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
8191 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
8192 messages.
8193
f5d35e7a 81942009-08-08 Robert Millan <rmh.grub@aybabtu.com>
8195
8196 * util/grub-dumpdevtree: Moved from here ...
8197 * util/i386/efi/grub-dumpdevtree: ... to here.
8198 (hexify): New function. Converts a string to its hex version.
8199 Generate hex versions of "efi" and "device-properties" by calling
8200 hexify() on the ASCII strings rather than by hardcoding numbers.
8201
d1e1d527 82022009-08-08 Robert Millan <rmh.grub@aybabtu.com>
8203
8204 * fs/jfs.c: Update copyright year.
8205
1ebbe064 82062009-08-08 Felix Zielcke <fzielcke@z-51.de>
8207
8208 * util/grub.d/00_header.in: Fix a comment.
8209 * util/grub.d/10_linux.in: Likewise.
8210 * util/grub.d/10_windows.in: Likewise.
8211 * util/grub.d/10_hurd.in: Likewise.
8212
a78c8d24 82132009-08-08 Felix Zielcke <fzielcke@z-51.de>
8214
8215 * util/grub-mkconfig.in: Allow the user to specify the used font
8216 with GRUB_FONT.
8217
29a6b9e8 82182009-08-08 Pavel Roskin <proski@gnu.org>
8219
b5f16cc4 8220 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
8221 available, xfs.mod needs it now.
8222
2f5cb827 8223 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
8224 the "g" modifier in sed when the intention is to strip something
8225 once. This fixes comparison of kernels with multiple dashes.
8226
29a6b9e8 8227 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
8228 on it. Add missing space before closing bracket. Fix
8229 misleading formatting.
8230
892a3d98 82312009-08-07 Robert Millan <rmh.grub@aybabtu.com>
8232
8233 * docs/grub.texi: Major overhaul. Remove all sections that are
8234 specific to GRUB Legacy, or mostly composed of Legacy-specific
8235 information.
8236
ed94253f 82372009-08-07 Robert Millan <rmh.grub@aybabtu.com>
8238
8239 * docs/version.texi: New file. Provides version information for
8240 grub.texi.
8241
126d6628 82422009-08-07 Robert Millan <rmh.grub@aybabtu.com>
8243
8244 * docs/grub.texi: Update CVS information to SVN.
8245 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
8246
998b5aa9 82472009-08-07 Felix Zielcke <fzielcke@z-51.de>
8248
8249 * util/grub-mkconfig.in: Remove a wrong `fi'.
8250
818e094a 82512009-08-07 Felix Zielcke <fzielcke@z-51.de>
8252
8253 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
8254 (grub_jfs_uuid): New function.
8255 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
8256
b969c52f 82572009-08-07 Felix Zielcke <fzielcke@z-51.de>
8258
8259 * util/grub-mkconfig_lib.in (font_path): Move the functionality
8260 of it to ...
8261 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
8262 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
8263
7a4894cc 82642009-08-07 Robert Millan <rmh.grub@aybabtu.com>
8265
8266 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
8267 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
8268 Update all users.
8269
8270 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
8271 not just "vmlinu[zx]".
8272 Moved from here ...
8273 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
8274 all users.
8275
8276 * util/grub.d/10_linux.in (find_latest): Moved from here ...
8277 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
8278 all users.
8279
4e2171f8 82802009-08-07 Robert Millan <rmh.grub@aybabtu.com>
8281
8282 * util/grub.d/10_freebsd.in: Use an absolute device path for
8283 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
8284
6dcfcb32 82852009-08-06 Felix Zielcke <fzielcke@z-51.de>
8286
8287 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
8288 handling of multiple abstraction modules.
8289
f56a8756 82902009-08-04 Robert Millan <rmh.grub@aybabtu.com>
8291
8292 Fix a bug resulting in black screen when loading Linux using a
8293 packed video mode.
8294
8295 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
8296 function.
8297
8298 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
8299 (grub_vbe_bios_getset_dac_palette_width): New function.
8300 (grub_vbe_bios_get_dac_palette_width)
8301 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
8302 grub_vbe_bios_getset_dac_palette_width()).
8303
8304 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
8305 check for return status.
8306 (grub_vbe_get_video_mode_info): When getting information for a packed
8307 mode (<= 8 bpp), obtain DAC palette width using
8308 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
8309 {red,green,blue}_mark_size.
8310
222671b2 83112009-08-04 Felix Zielcke <fzielcke@z-51.de>
8312
ecb1a6d9 8313 * commands/search.c (options): Fix help output to match actual code.
222671b2 8314
f84114f5 83152009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
8316
8317 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
8318 of homegrown code.
8319
bd288a20 83202009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
e768b770 8321
8322 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
8323 on XFS or ReiserFS.
8324
8aab5e25 83252009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
8326
8327 Support Apple partition map with sector size different from 512 bytes.
8328
8329 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
8330 (apple_partition_map_iterate): Respect 'aheader.blocksize'
8331 and 'apart.partmap_size'.
8332
6ad6258a 83332009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
83342009-08-01 Robert Millan <rmh.grub@aybabtu.com>
8335
8336 Fix cpuid command.
8337
8338 * commands/i386/cpuid.c (options): New variable.
8339 (grub_cmd_cpuid): Return real error.
8340 (GRUB_MOD_INIT(cpuid)): Declare options.
8341
67459bc6 83422009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
8343
8344 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
8345 valid.
8346
fbc6ab54 83472009-07-31 Bean <bean123ch@gmail.com>
8348
8349 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
8350 log2_inode.
8351 (grub_fshelp_node): Move inode field to the end.
8352 (grub_xfs_data): Remove inode field.
8353 (grub_xfs_inode_block): Calculate inode size using sblock.
8354 (grub_xfs_inode_offset): Likewise.
8355 (grub_xfs_read_inode): Calculate inode size using sblock.
8356 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
8357 (grub_xfs_iterate_dir): Calculate inode size using sblock.
8358 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
8359 to match inode size.
8360 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
8361 not accessible when data is null.
8362 (grub_xfs_open): Likewise.
8363
f45d6cfc 83642009-07-31 Bean <bean123ch@gmail.com>
8365
8366 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
8367 Don't change pv->disk if it's already set.
8368
8369 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
8370 (grub_raid_register): ... here.
8371 (grub_raid_rescan): Removed.
8372
8373 * include/grub/raid.h (grub_raid_rescan): Removed.
8374
8375 * util/grub-fstest.c: Remove include file <grub/raid.h>.
8376 (fstest): Replace grub_raid_rescan with module fini function followed
8377 by init function.
8378
8379 * util/grub-probe.c: Add include file <grub/raid.h>.
8380 (probe_raid_level): New function.
8381 (probe): Detect abstraction by walking the disk device, support two
8382 level of abstraction (LVM on RAID) when detecting partition map.
8383
24443b5a 83842009-07-31 Pavel Roskin <proski@gnu.org>
8385
8386 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
8387 to grub_zalloc(), it was erroneous.
8388 Reported by Bean <bean123ch@gmail.com>
8389
a275d9e7 83902009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
8391
8392 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
ad8ea1f4 8393 embedding zone, not only the first one.
a275d9e7 8394
56c5a47f 83952009-07-29 Joe Auricchio <jauricchio@gmail.com>
8396
8397 * term/gfxterm.c (clear_char): New function.
8398 (grub_virtual_screen_setup): Use clear_char.
8399 (scroll_up): Likewise.
8400 (grub_virtual_screen_cls): Likewise.
8401
67bb323a 84022009-07-29 Felix Zielcke <fzielcke@z-51.de>
8403
8404 * util/deviceiter.c (get_acceleraid_disk_name): New static
8405 function.
8406 (grub_util_iterate_devices): Handle Accelraid devices.
8407 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
8408
388a7c75 84092009-07-28 Robert Millan <rmh.grub@aybabtu.com>
8410
8411 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
8412 separator for the suggested gfxpayload string (';' collides with the
8413 parser and needs escaping).
8414
3bb7abcf 84152009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
8416
8417 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
8418 Clear direction flag before jumping to OS.
8419 (grub_multiboot2_real_boot): Likewise.
8420
2ddd36d7 84212009-07-28 Felix Zielcke <fzielcke@z-51.de>
8422
8423 * util/i386/pc/grub-install: Fix parsing of --disk-module
8424 option.
8425
c521b62b 84262009-07-28 Felix Zielcke <fzielcke@z-51.de>
8427
8428 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
8429 when embedding.
8430
880e0a0c 84312009-07-26 Felix Zielcke <fzielcke@z-51.de>
8432
8433 * util/grub-mkconfig.in (package_version): New variable.
8434 Use it do display the version.
8435
2366e356 84362009-07-25 Felix Zielcke <fzielcke@z-51.de>
8437
8438 * kern/file.c (grub_file_open): Revert to previous check with
8439 grub_errno.
8440
7ad8c80e 84412009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
8442
8443 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
8444 from help line. It's out of sync with code.
8445
72b9658b 84462009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
8447
8448 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
8449 entries on failed boot.
8450
77435277 84512009-07-25 Felix Zielcke <fzielcke@z-51.de>
8452
8453 * kern/file.c (grub_file_open): Fix an error check.
8454
fcaa8b21 84552009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
8456
35d16c74 8457 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
8458 partition map couldn't be identified.
fcaa8b21 8459
48904cd1 84602009-07-23 Pavel Roskin <proski@gnu.org>
8461
ef3c317f 8462 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
8463 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
8464 case of little endian words becomes just an optimization.
8465 Respect const modifier.
ad8ea1f4 8466 (md5_final): Use code that doesn't depend on endianness.
ef3c317f 8467
48904cd1 8468 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
8469 to avoid loss of upper bits if align is unsigned and shorter
8470 than addr.
8471
260c9a89 84722009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
8473
8474 UUID support for UFS
8475
8476 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
8477 (grub_ufs_uuid): New function.
8478 (grub_ufs_fs): add .uuid
8479
f76ce889 84802009-07-21 Pavel Roskin <proski@gnu.org>
8481
8482 * kern/dl.c (grub_dl_check_header): Make static.
8483
6a6cbcaf 84842009-07-21 Felix Zielcke <fzielcke@z-51.de>
8485
8486 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
8487 add drivemap for Vista. It breaks Windows 7.
8488
cffcddb2 84892009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
8490
8491 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
8492 128 bytes
8493
1ef44b80 84942009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
8495
8496 Add BFS support
8497
8498 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
8499 (grub_fstest_SOURCES): Likewise.
8500 (pkglib_MODULES): Add befs.mod.
8501 (befs_mod_SOURCES): New variable.
8502 (befs_mod_CFLAGS): Likewise.
8503 (befs_mod_LDFLAGS): Likewise.
8504 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
8505 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
8506 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8507 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
8508 (grub_setup_SOURCES): Likewise.
8509 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8510 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8511 (grub_setup_SOURCES): Likewise.
8512 * fs/befs.c: New file.
8513 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
8514 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
8515 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
8516 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
8517 (B_KEY_INDEX_ALIGN): New declaration.
8518 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
8519 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
8520 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
8521 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
8522 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
8523 (grub_afs_mount) [MODE_BFS]: Likewise.
8524 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
8525 (grub_afs_fs): Use GRUB_AFS_FSNAME
8526 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
8527 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
8528 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
8529 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
8530
4f253044 85312009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
8532
8533 * util/getroot.c (find_root_device): Add support for MacOSX.
8534 * util/hostdisk.c: Likewise.
8535
57a55913 85362009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
8537
8538 * font/font.c (find_glyph): Check whether a font is present to avoid
8539 segmentation fault.
75421ca9 8540
85412009-07-20 Joe Auricchio <jauricchio@gmail.com>
04c7c429 8542
8543 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
8544
e98cd0c2 85452009-07-20 Pavel Roskin <proski@gnu.org>
8546
8547 * configure.ac: Trim excessively wordy excuses.
8548
1d2d169a 85492009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
8550
8551 Add symlink, mtime and label support to AtheFS.
8552
8553 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
8554 (grub_afs_iterate_dir): Handle symlinks.
8555 (grub_afs_open): Use grub_afs_read_symlink.
8556 (grub_afs_dir): Likewise.
8557 Pass mtime.
8558 (grub_afs_label): New function.
8559 (grub_afs_fs): Add grub_afs_label.
8560 (grub_afs_read_symlink): New function.
8561
186f3189 85622009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
8563
8564 Fix AtheFS support.
8565
8566 * fs/afs.c: Fix comments style.
8567 (grub_afs_blockrun): Declare as packed.
8568 (grub_afs_datastream): Likewise.
8569 (grub_afs_bnode): Likewise.
8570 (grub_afs_btree): Likewise.
8571 (grub_afs_sblock): Likewise.
8572 Declare `name' as char.
8573 (grub_afs_inode): Declare as packed.
8574 Change void *vnode to grub_uint32_t unused.
8575 (grub_afs_iterate_dir): Check that key_size is positive.
8576 (grub_afs_mount): Don't read superblock twice.
75421ca9 8577 (grub_afs_dir): Don't free node in case of error,
186f3189 8578 grub_fshelp_find_file already handles this.
8579 (grub_afs_open): Likewise.
8580
5680109e 85812009-07-19 Pavel Roskin <proski@gnu.org>
8582
8583 * Makefile.in: Remove LIBLZO and enable_lzo.
8584 * conf/i386-pc.rmk: Remove lzo support.
8585 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
8586 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
8587 support.
8588 * kern/i386/pc/lzo1x.S: Remove.
8589 * kern/i386/pc/startup.S: Remove lzo support.
8590 * util/i386/pc/grub-mkimage.c: Likewise.
8591
ac70fa32 85922009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
8593
8594 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
8595 * fs/xfs.c (grub_xfs_dir): Likewise.
8596 * fs/afs.c (grub_afs_dir): Likewise.
8597 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
8598 (grub_iso9660_open): Likewise.
8599 * fs/jfs.c (grub_jfs_open): Likewise.
8600 * fs/ext2.c (grub_ext2_dir): Likewise.
8601 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
8602 * script/sh/lexer.c (grub_script_yylex): Likewise.
75421ca9 8603
eab58da2 86042009-07-16 Pavel Roskin <proski@gnu.org>
8605
d2838156 8606 * configure.ac: Never add "-c" to CFLAGS.
8607
55c70904 8608 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
8609
43e6200c 8610 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
8611 grub_cv_cc_efiemu should be used.
8612
ce7a733d 8613 * configure.ac: Typo fixes.
8614
eab58da2 8615 * kern/mm.c (grub_zalloc): New function.
8616 (grub_debug_zalloc): Likewise.
8617 * include/grub/mm.h: Declare grub_zalloc() and
8618 grub_debug_zalloc().
8619 * util/misc.c (grub_zalloc): New function.
8620 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
8621 instead of grub_malloc(), remove unneeded initializations.
8622 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
8623 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
8624 * commands/parttool.c (grub_cmd_parttool): Likewise.
8625 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
8626 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
8627 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
8628 * disk/usbms.c (grub_usbms_finddevs): Likewise.
8629 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
8630 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
8631 (grub_cmd_efiemu_pnvram): Likewise.
8632 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
8633 * fs/iso9660.c (grub_iso9660_mount): Likewise.
8634 (grub_iso9660_iterate_dir): Likewise.
8635 * fs/jfs.c (grub_jfs_opendir): Likewise.
8636 * fs/ntfs.c (list_file): Likewise.
8637 (grub_ntfs_mount): Likewise.
8638 * kern/disk.c (grub_disk_open): Likewise.
8639 * kern/dl.c (grub_dl_load_core): Likewise.
8640 * kern/elf.c (grub_elf_file): Likewise.
8641 * kern/env.c (grub_env_context_open): Likewise.
8642 (grub_env_set): Likewise.
8643 (grub_env_set_data_slot): Likewise.
8644 * kern/file.c (grub_file_open): Likewise.
8645 * kern/fs.c (grub_fs_blocklist_open): Likewise.
8646 * loader/i386/multiboot.c (grub_module): Likewise.
8647 * loader/xnu.c (grub_xnu_create_key): Likewise.
8648 (grub_xnu_create_value): Likewise.
8649 * normal/main.c (grub_normal_add_menu_entry): Likewise.
8650 (read_config_file): Likewise.
8651 * normal/menu_entry.c (make_screen): Likewise.
8652 * partmap/sun.c (sun_partition_map_iterate): Likewise.
8653 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
8654 * script/sh/script.c (grub_script_parse): Likewise.
8655 * video/bitmap.c (grub_video_bitmap_create): Likewise.
8656 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
8657 * video/readers/png.c (grub_png_output_byte): Likewise.
8658 (grub_video_reader_png): Likewise.
8659
830afef7 86602009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
5ce5507f 8661
8662 Enable all targets that can be built by default
8663
830afef7 8664 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
5ce5507f 8665 grub-mkfont and grub-fstest if they can be built
8666
ee293aee 86672009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
8668
8669 Fix hang and segmentation fault in grub-emu-usb
8670
8671 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
8672 * util/usb.c (grub_libusb_devices): likewise
8673 (grub_libusb_init): rename to ...
8674 (GRUB_MOD_INIT (libusb)):...this
8675 (grub_libusb_fini): rename to ..
8676 (GRUB_MOD_FINI (libusb)):...this
8677 * disk/usbms.c (grub_usbms_transfer): fix retry logic
8678 * include/grub/disk.h (grub_raid_init): removed, it's useless
8679 (grub_raid_fini): likewise
8680 (grub_lvm_init): likewise
8681 (grub_lvm_fini): likewise
8682 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
8683 by grub_init_all
8684
94414221 86852009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
8686
8687 Fix libusb
8688
8689 * Makefile.in (LIBUSB): new macro
8690 * genmk.rb (Utility/print_tail): new method
8691 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
8692 (top level): call util.print_tail at the end.
8693
59ade63d 86942009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
8695
8696 Make FreeBSD accept zpool.cache
8697
8698 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
8699 type is /boot/zfs/zpool.cache
8700
a58da8c7 87012009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
8702
8703 Fix 64-bit efiemu
8704
8705 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
8706 correct wrong typedef
8707 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
8708
20591577 87092009-07-15 Pavel Roskin <proski@gnu.org>
8710
560ca572 8711 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
8712 * kern/disk.c (struct grub_disk_cache): Likewise.
8713
e8e8e4fd 8714 * commands/probe.c (options): Typo fix.
8715
fde24e10 8716 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
8717 Increase to 0x5a to accommodate FAT32. Adjust other offsets
8718 accordingly.
8719 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
8720
379c54c1 8721 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
8722 the end of "Error" to make the message more readable.
8723
7bd8f5bf 8724 * boot/i386/pc/boot.S (kernel_segment): Remove.
8725 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
8726 for destination.
8727
40b132c5 8728 * boot/i386/pc/boot.S (boot_version): Remove.
8729 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
8730 Remove.
8731
20591577 8732 * include/grub/i386/pc/boot.h: Sort all offsets.
8733 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
8734 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
8735 * boot/i386/pc/boot.S: Assert location of every offset listed in
8736 include/grub/i386/pc/boot.h.
8737
2df32b2c 87382009-07-13 Pavel Roskin <proski@gnu.org>
8739
44b5d879 8740 * include/grub/i386/coreboot/machine.h: Rename
8741 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
8742 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
8743 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
8744
17dc3751 8745 * kern/dl.c: Force native word size to suppress warnings when
8746 compiling grub-emu.
8747
2df32b2c 8748 * kern/device.c (grub_device_iterate): Change struct part_ent to
8749 hold the name, not a pointer to it. Use one grub_malloc() per
8750 partition, not two. Free partition_name if grub_malloc() fails.
8751 Set ents to NULL only before grub_partition_iterate() is called.
8752
75c59f59 87532009-07-11 Bean <bean123ch@gmail.com>
8754
8755 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
8756 childname.
8757
0ae1bf88 87582009-07-10 Bean <bean123ch@gmail.com>
87592009-07-10 Robert Millan <rmh.grub@aybabtu.com>
8760
8761 * kern/ieee1275/openfw.c (grub_children_iterate)
8762 (grub_devalias_iterate): Fix size evaluation for property or path
8763 strings, which was broken since r2132.
8764
8279cade 87652009-07-07 Pavel Roskin <proski@gnu.org>
8766
7d8a52d3 8767 * commands/search.c (search_file): Merge into ...
8768 (search_fs): ... this. Accept search type as argument.
8769 (grub_cmd_search): Pass search type to search_fs().
8770
25f9a05a 8771 * include/grub/util/console.h: New file.
8772 * util/console.c: Use it instead of grub/machine/console.h.
8773 * util/grub-emu.c: Likewise.
8774
8279cade 8775 * lib/arg.c (find_long_option): Remove.
8776 (find_long): Add `len' argument, make `s' const char *.
8777 (grub_arg_parse): Parse long options in place, not in a
8778 temporary buffer.
8779
4a11b60f 87802009-07-06 Pavel Roskin <proski@gnu.org>
8781
99f68041 8782 * commands/search.c (search_fs): Fix potential NULL pointer
8783 dereference.
8784
4a11b60f 8785 * commands/search.c (search_fs): Replace QUID macro with quid_fn
8786 function pointer.
8787
e110f4de 87882009-07-06 Daniel Mierswa <impulze@impulze.org>
8789
8790 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
8791 comparison.
8792
46eeb6a2 87932009-07-05 Pavel Roskin <proski@gnu.org>
8794
bab74958 8795 * include/grub/i386/linux.h (struct linux_kernel_params):
8796 Restore padding3, it's still needed.
8797
46eeb6a2 8798 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
8799 FreeBSD.
8800 * util/osdetect.lua: Likewise.
8801
b4a1dc79 88022009-07-05 Bean <bean123ch@gmail.com>
8803
8804 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
8805
8806 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
8807 (grub_lua_getenv): Likewise.
8808 (grub_lua_setenv): Likewise.
8809 (save_errno): New function.
8810 (push_result): Likewise.
8811 (grub_lua_enum_device): Likewise.
8812 (grub_lua_enum_file): Likewise.
8813 (grub_lua_file_open): Likewise.
8814 (grub_lua_file_close): Likewise.
8815 (grub_lua_file_seek): Likewise.
8816 (grub_lua_file_read): Likewise.
8817 (grub_lua_file_getline): Likewise.
8818 (grub_lua_file_getsize): Likewise.
8819 (grub_lua_file_getpos): Likewise.
8820 (grub_lua_file_eof): Likewise.
8821 (grub_lua_file_exist): Likewise.
8822 (grub_lua_add_menu): Likewise.
8823
8824 * script/lua/grub_lua.h (isupper): New inline function.
8825 (islower): Likewise.
8826 (ispunct): Likewise.
8827 (isxdigit): Likewise.
8828 (strcspn): Change to normal function.
8829 (strpbkr): New function declaration.
8830 (memchr): Likewise.
8831
8832 * script/lua/grub_main.c (scan_str): New function.
8833 (strcspn): Likewise.
8834 (strpbrk): Likewise.
8835 (memchr): Likewise.
8836
8837 * script/lua/linit.c (lualibs): Enable the string library.
8838
8839 * util/osdetect.lua: New file.
8840
2da92295 88412009-07-04 Robert Millan <rmh.grub@aybabtu.com>
8842
8843 * include/grub/i386/linux.h (struct linux_kernel_params): Add
8844 `capabilities' member.
8845
b2582ec9 88462009-07-02 Pavel Roskin <proski@gnu.org>
8847
8848 * genparttoollist.sh: Add missing newline at the end.
8849
32622956 88502009-07-01 Pavel Roskin <proski@gnu.org>
8851
87a7339e 8852 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
8853
d23af54e 8854 * util/hostdisk.c (open_device): Remove `const' from
8855 `sysctl_size', as sysctlbyname() can change it (in this case it
8856 doesn't actually happen).
8857
c94b18a9 8858 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
8859 using signed long int constants.
8860
c6cd3ef0 8861 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
8862 constant to avoid a warning on FreeBSD.
8863
0df63420 8864 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
8865 where it's needed.
8866
999577f1 8867 * Makefile.in: Install include/grub/machine symlink.
8868
6f41557f 8869 * Makefile.in: When installing symlinks, use "cp -fR", which
8870 works on FreeBSD and MacOSX.
8871 From Yves Blusseau <cl7m42e02@sneakemail.com>
8872
c8d22988 8873 * kern/dl.c (grub_dl_resolve_symbol): Make static.
8874 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
8875
1b96e952 8876 * util/misc.c: Move grub_reboot() and grub_halt() ...
8877 * util/grub-emu.c: ... here. Make main_env static.
8878 * include/grub/util/misc.h: Remove main_env.
8879
2ef0084d 8880 * kern/mm.c: Use correct format to print size_t.
8881
32622956 8882 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
8883 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
8884 * kern/powerpc/dl.c: Likewise.
8885 * kern/sparc64/dl.c: Likewise.
8886 * kern/x86_64/dl.c: Likewise.
8887
3f7f0cd0 88882009-07-01 Robert Millan <rmh.grub@aybabtu.com>
8889
8890 Fix grub-emu build on sparc64-ieee1275.
8891
75421ca9 8892 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
3f7f0cd0 8893 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
8894
211d06b5 88952009-07-01 Robert Millan <rmh.grub@aybabtu.com>
8896
8897 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
8898 (grub_reboot, grub_halt): New functions.
8899
8900 * util/i386/pc/misc.c: Delete. Update all users.
8901 * util/sparc64/ieee1275/misc.c: Likewise.
8902 * util/powerpc/ieee1275/misc.c: Likewise.
8903
aaf53e3c 89042009-07-01 Robert Millan <rmh.grub@aybabtu.com>
8905
8906 * conf/i386.rmk (setjmp_mod_SOURCES)
8907 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
8908 * conf/common.rmk (setjmp_mod_SOURCES)
8909 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
8910 to use $(target_cpu).
8911 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
8912 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
8913 * conf/powerpc-ieee1275.rmk: Likewise.
8914 * conf/sparc64-ieee1275.rmk: Likewise.
8915
8916 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
8917 $(target_cpu) for kern/$(target_cpu)/dl.c.
8918 * conf/i386-efi.rmk: Likewise.
8919 * conf/i386-ieee1275.rmk: Likewise.
8920 * conf/x86_64-efi.rmk: Likewise.
8921 * conf/i386-coreboot.rmk: Likewise.
8922 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
8923 $(target_cpu) for kern/$(target_cpu)/dl.c and for
8924 kern/$(target_cpu)/cache.S.
8925 * conf/sparc64-ieee1275.rmk: Likewise.
8926
a337130b 89272009-07-01 Robert Millan <rmh.grub@aybabtu.com>
8928
8929 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
8930 type to `grub_uint8_t', and adjust `padding9' accordingly.
8931
c6fe4d53 89322009-06-29 Robert Millan <rmh.grub@aybabtu.com>
8933
b09db61d 8934 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
8935
c6fe4d53 8936 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
8937 assembly in final jump, using register constraints.
8938
b09db61d 8939 (grub_linux_boot): For text mode, initialize `have_vga' using
8940 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
8941
8942 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
8943 right before the final jump.
8944
8945 Set `video_mode' to 0x3.
8946
8947 Document initialization of `video_page', `video_mode' and
8948 `video_ega_bx'.
8949
28333ad0 89502009-06-29 Robert Millan <rmh.grub@aybabtu.com>
8951
8952 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
8953 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
75421ca9 8954 and set GRUB_LINUX_FLAG_QUIET appropriately.
28333ad0 8955
02164e1b 89562009-06-29 Robert Millan <rmh.grub@aybabtu.com>
8957
8958 Fix build on Debian / sparc.
8959
8960 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
8961
18b6c557 89622009-06-28 Pavel Roskin <proski@gnu.org>
8963
85f2aab6 8964 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
8965 fix a warning.
8966
18b6c557 8967 * util/grub.d/10_linux.in: Match SUSE style initrd names.
8968
ad760f81 89692009-06-27 Robert Millan <rmh.grub@aybabtu.com>
8970
8971 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
8972 `err'.
8973
87a4623b 89742009-06-27 Robert Millan <rmh.grub@aybabtu.com>
8975
8976 Revert r2338.
8977
8978 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
8979 file can't be opened. grub_file_open() is already supposed to set
75421ca9 8980 grub_errno / grub_errmsg appropriately.
87a4623b 8981 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
8982
8231fb77 89832009-06-27 Pavel Roskin <proski@gnu.org>
89842009-06-27 Robert Millan <rmh.grub@aybabtu.com>
8985
8986 * include/grub/dl.h: Include grub/elf.h.
8987 (struct grub_dl): Add symtab field.
8988 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
8989 GRUB_MODULES_MACHINE_READONLY.
8990 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
8991 of the header for read-only modules.
8992 (grub_dl_unload): Free mod->symtab for read-only modules.
8993 * kern/i386/dl.c: Use mod->symtab.
8994 * kern/powerpc/dl.c: Likewise.
8995 * kern/sparc64/dl.c: Likewise.
8996 * kern/x86_64/dl.c: Likewise.
8997
8998 * conf/i386-qemu.rmk: New file.
8999 * kern/i386/qemu/startup.S: Likewise.
9000 * kern/i386/qemu/mmap.c: Likewise.
9001 * boot/i386/qemu/boot.S: Likewise.
9002 * include/grub/i386/qemu/time.h: Likewise.
9003 * include/grub/i386/qemu/serial.h: Likewise.
9004 * include/grub/i386/qemu/kernel.h: Likewise.
9005 * include/grub/i386/qemu/console.h: Likewise.
9006 * include/grub/i386/qemu/boot.h: Likewise.
9007 * include/grub/i386/qemu/init.h: Likewise.
9008 * include/grub/i386/qemu/machine.h: Likewise.
9009 * include/grub/i386/qemu/loader.h: Likewise.
9010 * include/grub/i386/qemu/memory.h: Likewise.
9011
9012 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
9013 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
9014 [qemu] (pkglib_IMAGES): Add `boot.img'.
9015 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
9016 [qemu] (boot_img_FORMAT): New variables.
9017 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
9018 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
9019 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
9020 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
9021 [qemu] (kernel_img_FORMAT): New variables.
9022
9023 * configure.ac: Recognise `i386-qemu'.
9024
9025 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
9026 (for no compression).
9027 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
9028 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
9029 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
9030 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
9031 ifdefs).
9032
97fe384e 90332009-06-27 Pavel Roskin <proski@gnu.org>
9034
9035 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
9036 read.
9037 * efiemu/prepare32.c: Likewise.
9038 * efiemu/prepare64.c: Likewise.
9039
c402ab17 90402009-06-26 Pavel Roskin <proski@gnu.org>
9041
9042 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
9043 * include/grub/elf.h: Define symbols without "32" or "64" based
9044 on GRUB_TARGET_WORDSIZE.
9045 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
9046 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
9047 ELF definitions.
9048 * efiemu/loadcore64.c: Likewise.
9049 * loader/i386/bsd32.c: Likewise.
9050 * loader/i386/bsd64.c: Likewise.
9051 * kern/dl.c: Remove own ELF definitions.
9052 * util/i386/efi/grub-mkimage.c: Likewise.
9053
9bbdfd4d 90542009-06-23 Robert Millan <rmh.grub@aybabtu.com>
9055
9056 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
9057 segment 0x0 unconditionally, because the reference generated by
9058 GAS is an absolute address.
9059
a42ce6e9 90602009-06-22 Robert Millan <rmh.grub@aybabtu.com>
9061
9062 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
9063 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
9064
c952cf92 90652009-06-22 Robert Millan <rmh.grub@aybabtu.com>
9066
9067 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
9068 indexes. Check for -f explicitly.
cc3752ad 9069 (search_file): Improve error message.
9070 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
c952cf92 9071
132a0a59 90722009-06-22 Robert Millan <rmh.grub@aybabtu.com>
9073
9074 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
9075 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
9076
387a140c 90772009-06-22 Robert Millan <rmh.grub@aybabtu.com>
9078
9079 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
9080 * conf/i386-ieee1275.rmk: Likewise.
9081 * conf/i386-coreboot.rmk: Likewise.
9082
9083 * kern/i386/pc/startup.S (grub_stop): Remove function.
9084 * kern/i386/ieee1275/startup.S: Likewise.
9085 * kern/i386/coreboot/startup.S: Likewise.
9086 * kern/i386/misc.S (grub_stop): New function.
9087
41da9665 90882009-06-22 Robert Millan <rmh.grub@aybabtu.com>
9089
9090 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
9091 * kern/i386/realmode.S (real_to_prot): ... to here.
9092
bf337234 90932009-06-22 Robert Millan <rmh.grub@aybabtu.com>
9094
9095 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
9096 with `kernel.img'.
9097 (kernel_elf_SOURCES): Rename to ...
9098 (kernel_img_SOURCES): ... this.
9099 (kernel_elf_HEADERS): Rename to ...
9100 (kernel_img_HEADERS): ... this. Update all users.
9101 (kernel_elf_ASFLAGS): Rename to ...
9102 (kernel_img_ASFLAGS): ... this.
9103 (kernel_elf_CFLAGS): Rename to ...
9104 (kernel_img_CFLAGS): ... this.
9105 (kernel_elf_LDFLAGS): Rename to ...
9106 (kernel_img_LDFLAGS): ... this.
9107 * conf/i386-coreboot.rmk: Likewise.
9108 * conf/powerpc-ieee1275.rmk: Likewise.
9109
9110 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
9111 with "kernel.img".
9112
f52196ff 91132009-06-21 Pavel Roskin <proski@gnu.org>
9114
c3cee413 9115 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
9116 to match nested functions.
9117 * loader/sparc64/ieee1275/linux.c: Likewise.
9118
f52196ff 9119 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
9120
58750afc 91212009-06-21 Robert Millan <rmh.grub@aybabtu.com>
9122
9123 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
9124 all i386 platforms.
9125
15355c7d 91262009-06-21 Robert Millan <rmh.grub@aybabtu.com>
9127
9128 Fix asm file handling on ELF, and remove workarounds.
9129
9130 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
75421ca9 9131 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
15355c7d 9132 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
9133 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
9134
3f3ec72b 91352009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9136
9137 Load BSD ELF modules
9138
9139 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
9140 and loader/i386/bsd64.c
9141 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
9142 (FREEBSD_MODTYPE_ELF_MODULE): New definition
9143 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
9144 (grub_freebsd_load_elfmodule32): New declaration
9145 (grub_freebsd_load_elfmoduleobj64): Likewise
9146 (grub_freebsd_load_elf_meta32): Likewise
9147 (grub_freebsd_load_elf_meta64): Likewise
9148 (grub_freebsd_add_meta): Likewise
9149 (grub_freebsd_add_meta_module): Likewise
9150 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
9151 (grub_freebsd_add_meta_module): Likewise and move module-specific
9152 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
9153 (grub_cmd_freebsd): Add elf-kernel specific parts
9154 based on grub_freebsd_add_meta_module
9155 (grub_cmd_freebsd_module): Add type parsing moved from
9156 grub_freebsd_add_meta_module
9157 (grub_cmd_freebsd_module_elf): New function
9158 (cmd_freebsd_module_elf): New variable
9159 (GRUB_MOD_INIT): Register freebsd_module_elf
9160 * loader/i386/bsd32.c: New file
9161 * loader/i386/bsd64.c: Likewise
9162 * loader/i386/bsdXX.c: Likewise
9163 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
9164 (grub_elf64_load): Likewise
9165 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
9166 All users updated
9167 (grub_elf64_load_hook_t): Likewise
9168
0db15301 91692009-06-21 Colin Watson <cjwatson@ubuntu.com>
9170
9171 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
9172 variable.
9173 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
9174 don't write a menu entry for recovery mode.
9175
546796c1 91762009-06-20 Robert Millan <rmh.grub@aybabtu.com>
9177
9178 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
9179 after it's no longer needed.
9180
cd7310d5 91812009-06-20 Robert Millan <rmh.grub@aybabtu.com>
9182
9183 * include/grub/i386/loader.h (grub_linux_prot_size)
9184 (grub_linux_tmp_addr, grub_linux_real_addr)
9185 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
9186 GRUB_MACHINE_PCBIOS.
9187 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
9188 common grub_util_info() call to ...
9189 (generate_image): ... here.
9190 Fix use of uninitialized memory, comparison of signed with
9191 unsigned integers and memory leak.
9192 Remove bogus module address message.
9193
ab32d3b5 91942009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9195
9196 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
9197 grub_raid_register
9198 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
9199
024ef597 92002009-06-19 Pavel Roskin <proski@gnu.org>
9201
9202 * configure.ac: Remove stray AC_MSG_CHECKING.
9203
3ac72b51 92042009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9205
9206 * disk/scsi.c (grub_scsi_open): use continue instead of big if
dd74360c 9207
e14cd814 92082009-06-18 Pavel Roskin <proski@gnu.org>
9209
9210 * conf/common.rmk: Add fs_file.mod.
9211 * disk/fs_file.c: New file.
9212 * include/grub/disk.h (enum grub_disk_dev_id): Add
9213 GRUB_DISK_DEVICE_FILE_ID.
9214
26586d98 92152009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
9216
9217 Fix build with Apple's toolchain. Part 2
9218
9219 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
9220 a fake start
9221
26de2bcd 92222009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
9223
9224 Fix build with Apple's toolchain. Part 1
9225
9226 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
9227 for long calls
9228 * configure.ac: remove a leftover AC_MSG_RESULT
dd74360c 9229 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
26de2bcd 9230 Apple's toolchain
9231
09b3490b 92322009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
9233
9234 Fix warnings
9235
9236 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
9237 (decomp_block): initialize ch
9238 use grub_memcpy instead of memcpy
9239
c22a006a 92402009-06-17 Pavel Roskin <proski@gnu.org>
9241
d3638678 9242 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
9243 version, use declarations needed to use vga_text as the startup
9244 console.
9245
c22a006a 9246 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
9247 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
9248 the kernel.
9249 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
9250 and grub_at_keyboard_fini(), it's done on module load and
9251 unload.
9252
05b129e0 92532009-06-17 Felix Zielcke <fzielcke@z-51.de>
9254
9255 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
9256 file can't be found.
9257 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
9258
cf24ed9e 92592009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
9260
9261 Fix newline handling
9262
9263 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
dd74360c 9264 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
cf24ed9e 9265 (grub_script_yylex): don't segfault on unterminated script
9266 newline terminates command and variable
9267
74aa8e4b 92682009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
9269
9270 avoid double grub_adjust_range call. Bug reported by David Simner
9271
9272 * kern/disk.c (grub_disk_write): change to raw disk access before
9273 calling disk_read
9274
1bd265f3 92752009-06-17 Colin Watson <cjwatson@ubuntu.com>
9276
9277 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
9278 spaces, for the benefit of help2man.
9279 * util/i386/efi/grub-mkimage.c (usage): Likewise.
9280
a2d08c06 92812009-06-16 Pavel Roskin <proski@gnu.org>
9282
9283 * kern/i386/halt.c: Include grub/machine/init.h.
9284 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
9285
b97bcb19 92862009-06-16 Felix Zielcke <fzielcke@z-51.de>
9287
9288 * util/grub.d/30_os-prober.in: Use ${root} in the generated
9289 drivemap menuentry.
9290
0644f96c 92912009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
9292
9293 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
9294 `echo' command.
9295
3ef17a2e 92962009-06-16 Pavel Roskin <proski@gnu.org>
9297
9298 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
9299 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
9300 save %dx, we only need %dl and we never change it.
9301 * boot/i386/pc/cdboot.S: Don't set the root drive.
9302 * boot/i386/pc/pxeboot.S: Likewise.
9303 * include/grub/i386/pc/boot.h: Remove
9304 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
9305 GRUB_BOOT_MACHINE_DRIVE_CHECK.
9306 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
9307 * kern/i386/pc/init.c (make_install_device): Remove references
9308 to grub_root_drive.
9309 * kern/i386/pc/startup.S: Likewise.
9310 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
9311
693fe637 93122009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
9313
9314 xnu_uuid command
9315
9316 * commands/xnu_uuid.c: new file
9317 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
9318 (xnu_uuid_mod_SOURCES): new variable
9319 (xnu_uuid_mod_CFLAGS): likewise
9320 (xnu_uuid_mod_LDFLAGS): likewise
9321 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
9322 * conf/i386-ieee1275.rmk: likewise
9323 * conf/i386-pc.rmk: likewise
9324 * conf/powerpc-ieee1275.rmk: likewise
9325 * conf/sparc64-ieee1275.rmk: likewise
9326 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
9327
c9da87d0 93282009-06-16 Pavel Roskin <proski@gnu.org>
9329
9330 * configure.ac: Avoid '==' in test command, it's not portable.
9331
9c6f4596 93322009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
9333
9334 Probe command
9335
9336 * commands/probe.c: new file
9337 * conf/common.rmk (pkglib_MODULES): add probe.mod
9338 (probe_mod_SOURCES): new variable
9339 (probe_mod_CFLAGS): likewise
9340 (probe_mod_LDFLAGS): likewise
9341 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
9342 * conf/i386-ieee1275.rmk: likewise
9343 * conf/i386-pc.rmk: likewise
9344 * conf/powerpc-ieee1275.rmk: likewise
9345 * conf/sparc64-ieee1275.rmk: likewise
9346
70b7f9fd 93472009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9348
9349 Fix handling of string like \"hello\" and "a
9350 b"
9351
9352 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
9353 (grub_script_yylex): fix parsing of quoting, escaping and newline
9354
71c79a6b 93552009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9356
dd74360c 9357 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
71c79a6b 9358 handling
dd74360c 9359
0644f96c 93602009-06-13 Jun Inoue <jun.lambda@gmail.com>
880fc3c4 9361
9362 * util/grub-mkconfig.in: Fix parsing of --output option.
9363
e40893c3 93642009-06-12 Pavel Roskin <proski@gnu.org>
9365
9366 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
9367 genmk.rb don't need to be generated or installed.
9368
3a1acfe2 93692009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
9370
9371 * commands/i386/pc/drivemap_int13h.S: add more comments
9372
3a4575d4 93732009-06-11 Pavel Roskin <proski@gnu.org>
9374
0658e928 9375 * Makefile.in (uninstall): Uninstall manuals.
9376
ca0388f0 9377 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
9378 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
9379 and update-grub_lib in two places.
9380 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
9381
e3b27c39 9382 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
9383 a compiler warning.
9384
3a4575d4 9385 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
9386 `entry_lo' to fix variable shadowing.
9387
af1f4f55 93882009-06-11 Christian Franke <franke@computer.org>
9389
9390 * kern/misc.c (__enable_execute_stack): Add missing return type
9391 to prevent gcc warning.
9392
5225e649 93932009-06-11 Felix Zielcke <fzielcke@z-51.de>
9394
9395 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
9396
7d83bd47 93972009-06-11 Pavel Roskin <proski@gnu.org>
9398
c1cb63ba 9399 * Makefile.in: Don't rely on any scripts being executable.
9400 Always use $(SHELL) to run shell scripts.
9401
7d83bd47 9402 * configure.ac: Always define ___main if using -nostdlib. This
9403 fixes tests on Cygwin.
9404
948f48e7 94052009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
9406
9407 UDF fix
9408
7d83bd47 9409 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
948f48e7 9410 is in bytes and not in blocks
7d83bd47 9411
8ada9bc1 94122009-06-11 Pavel Roskin <proski@gnu.org>
9413
9414 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
9415 warning.
9416
25ad2323 94172009-06-11 Felix Zielcke <fzielcke@z-51.de>
9418
9419 * util/grub.d/30_os-prober.in: Fix a comment. Source
9420 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
9421 to set the root device. Place drivemap command in the generated
9422 chain entry.
9423
e65acb0c 94242009-06-11 Pavel Roskin <proski@gnu.org>
9425
9426 * configure.ac: Remove host_m32. Issues with 64-bit utilities
9427 have long been resolved.
9428
f285fe2d 94292009-06-11 Colin Watson <cjwatson@ubuntu.com>
9430
bd47b0b5 9431 * util/grub.d/10_linux.in: Capitalise "Linux".
9432
f285fe2d 9433 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
9434
a0c62e4e 94352009-06-11 Pavel Roskin <proski@gnu.org>
9436
b6783cb2 9437 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
9438 fix a gcc warning and ensure that the function won't ever exit.
9439
dde032e8 9440 * kern/i386/ieee1275/init.c: Add missing prototype for
9441 grub_stop_floppy().
9442
22cd079d 9443 * loader/ieee1275/multiboot2.c [__i386__]: Include
9444 grub/cpu/multiboot.h.
9445
a0c62e4e 9446 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
9447 casts to short - they are not portable and cause warnings. Fix
9448 use of uninitialized values in input_buf. Use ARRAY_SIZE.
9449
63963d17 94502009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
9451
9452 Drivemap fixes
9453
9454 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
9455 new function
9456 (grub_get_root_biosnumber_saved): new variable
9457 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
9458 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
775dbc4d 9459 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
63963d17 9460 %dx after the call if necessary
9461 * conf/common.rmk (pkglib_MODULES): remove boot.mod
9462 (boot_mod_SOURCES): remove
9463 (boot_mod_CFLAGS): remove
9464 (boot_mod_LDFLAGS): remove
9465 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
9466 (boot_mod_SOURCES): new variable
9467 (boot_mod_CFLAGS): likewise
9468 (boot_mod_LDFLAGS): likewise
9469 * conf/i386-efi.rmk: likewise
9470 * conf/i386-ieee1275.rmk: likewise
9471 * conf/i386-pc.rmk: likewise
9472 * conf/powerpc-ieee1275.rmk: likewise
9473 * conf/sparc64-ieee1275.rmk: likewise
9474 * conf/x86_64-efi.rmk: likewise
9475 * include/grub/i386/pc/biosnum.h: new file
9476 * lib/i386/pc/biosnum.c: likewise
9477 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
9478 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
9479 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
775dbc4d 9480
33abf7ae 94812009-06-10 Pavel Roskin <proski@gnu.org>
9482
5ac35b35 9483 * io/gzio.c (test_header): Don't reuse one buffer for all data.
9484 Use separate variables. Read only the file size at the end, but
9485 not the checksum that we don't use.
9486
5c5215d5 9487 * kern/file.c (grub_file_read): Use void pointer for the buffer.
9488 Adjust all callers.
9489
27d5fef7 9490 * kern/ieee1275/openfw.c: Remove libc includes.
9491 * kern/ieee1275/cmain.c: Likewise.
9492 * include/grub/ieee1275/ieee1275.h: Likewise.
9493
33abf7ae 9494 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
9495 compiler warnings.
9496
19d50c2b 94972009-06-10 Felix Zielcke <fzielcke@z-51.de>
9498
9499 * Makefile.in: Remove all trailing whitespace.
9500 * conf/i386-pc.rmk: Likewise.
9501 * conf/powerpc-ieee1275.rmk: Likewise.
9502 * conf/sparc64-ieee1275.rmk: Likewise.
9503 * docs/grub.texi: Likewise.
9504 * docs/texinfo.tex: Likewise.
9505 * disk/fs_uuid.c: Likewise.
9506 * disk/lvm.c: Likewise.
9507 * disk/scsi.c: Likewise.
9508 * disk/ata.c: Likewise.
9509 * disk/ieee1275/ofdisk.c: Likewise.
9510 * disk/i386/pc/biosdisk.c: Likewise.
9511 * disk/host.c: Likewise.
9512 * disk/raid.c: Likewise.
9513 * disk/efi/efidisk.c: Likewise.
9514 * disk/usbms.c: Likewise.
9515 * disk/memdisk.c: Likewise.
9516 * disk/loopback.c: Likewise.
9517 * kern/powerpc/dl.c: Likewise.
9518 * kern/device.c: Likewise.
9519 * kern/dl.c: Likewise.
9520 * kern/sparc64/dl.c: Likewise.
9521 * kern/ieee1275/ieee1275.c: Likewise.
9522 * kern/term.c: Likewise.
9523 * kern/fs.c: Likewise.
9524 * kern/i386/dl.c: Likewise.
9525 * kern/i386/pc/startup.S: Likewise.
9526 * kern/i386/pc/init.c: Likewise.
9527 * kern/i386/pc/mmap.c: Likewise.
9528 * kern/i386/pc/lzo1x.S: Likewise.
9529 * kern/i386/ieee1275/init.c: Likewise.
9530 * kern/i386/realmode.S: Likewise.
9531 * kern/i386/tsc.c: Likewise.
9532 * kern/partition.c: Likewise.
9533 * kern/corecmd.c: Likewise.
9534 * kern/file.c: Likewise.
9535 * kern/efi/efi.c: Likewise.
9536 * kern/efi/init.c: Likewise.
9537 * kern/efi/mm.c: Likewise.
9538 * kern/main.c: Likewise.
9539 * kern/err.c: Likewise.
9540 * kern/env.c: Likewise.
9541 * kern/disk.c: Likewise.
9542 * kern/generic/millisleep.c: Likewise.
9543 * kern/generic/rtc_get_time_ms.c: Likewise.
9544 * kern/misc.c: Likewise.
9545 * kern/parser.c: Likewise.
9546 * genmk.rb: Likewise.
9547 * configure.ac: Likewise.
9548 * boot/i386/pc/diskboot.S: Likewise.
9549 * boot/i386/pc/pxeboot.S: Likewise.
9550 * boot/i386/pc/boot.S: Likewise.
9551 * boot/i386/pc/lnxboot.S: Likewise.
9552 * boot/i386/pc/cdboot.S: Likewise.
9553 * parttool/pcpart.c: Likewise.
9554 * video/readers/tga.c: Likewise.
9555 * video/video.c: Likewise.
9556 * video/bitmap.c: Likewise.
9557 * lib/envblk.c: Likewise.
9558 * lib/i386/setjmp.S: Likewise.
9559 * fs/xfs.c: Likewise.
9560 * fs/afs.c: Likewise.
9561 * fs/fat.c: Likewise.
9562 * fs/ntfs.c: Likewise.
9563 * fs/udf.c: Likewise.
9564 * fs/affs.c: Likewise.
9565 * fs/iso9660.c: Likewise.
9566 * fs/hfs.c: Likewise.
9567 * fs/fshelp.c: Likewise.
9568 * fs/ext2.c: Likewise.
9569 * fs/jfs.c: Likewise.
9570 * fs/reiserfs.c: Likewise.
9571 * fs/hfsplus.c: Likewise.
9572 * fs/minix.c: Likewise.
9573 * fs/cpio.c: Likewise.
9574 * fs/sfs.c: Likewise.
9575 * fs/ufs.c: Likewise.
9576 * efiemu/prepare.c: Likewise.
9577 * efiemu/loadcore_common.c: Likewise.
9578 * efiemu/runtime/efiemu.sh: Likewise.
9579 * efiemu/runtime/efiemu.S: Likewise.
9580 * efiemu/runtime/efiemu.c: Likewise.
9581 * efiemu/pnvram.c: Likewise.
9582 * efiemu/main.c: Likewise.
9583 * efiemu/i386/pc/cfgtables.c: Likewise.
9584 * efiemu/i386/loadcore64.c: Likewise.
9585 * efiemu/i386/loadcore32.c: Likewise.
9586 * efiemu/loadcore.c: Likewise.
9587 * efiemu/symbols.c: Likewise.
9588 * efiemu/mm.c: Likewise.
9589 * include/grub/autoefi.h: Likewise.
9590 * include/grub/datetime.h: Likewise.
9591 * include/grub/term.h: Likewise.
9592 * include/grub/hfs.h: Likewise.
9593 * include/grub/lvm.h: Likewise.
9594 * include/grub/i386/tsc.h: Likewise.
9595 * include/grub/i386/linux.h: Likewise.
9596 * include/grub/i386/xnu.h: Likewise.
9597 * include/grub/i386/efiemu.h: Likewise.
9598 * include/grub/i386/pc/biosdisk.h: Likewise.
9599 * include/grub/i386/pc/memory.h: Likewise.
9600 * include/grub/i386/pc/vbe.h: Likewise.
9601 * include/grub/parttool.h: Likewise.
9602 * include/grub/video.h: Likewise.
9603 * include/grub/memory.h: Likewise.
9604 * include/grub/fs.h: Likewise.
9605 * include/grub/partition.h: Likewise.
9606 * include/grub/xnu.h: Likewise.
9607 * include/grub/efi/api.h: Likewise.
9608 * include/grub/efi/pe32.h: Likewise.
9609 * include/grub/efi/memory.h: Likewise.
9610 * include/grub/multiboot.h: Likewise.
9611 * include/grub/usbdesc.h: Likewise.
9612 * include/grub/multiboot2.h: Likewise.
9613 * include/grub/acpi.h: Likewise.
9614 * include/grub/efiemu/efiemu.h: Likewise.
9615 * include/grub/disk.h: Likewise.
9616 * include/grub/ieee1275/ieee1275.h: Likewise.
9617 * include/grub/net.h: Likewise.
9618 * include/grub/machoload.h: Likewise.
9619 * include/grub/macho.h: Likewise.
9620 * include/multiboot.h: Likewise.
9621 * genmoddep.awk: Likewise.
9622 * normal/main.c: Likewise.
9623 * normal/menu_entry.c: Likewise.
9624 * normal/menu_viewer.c: Likewise.
9625 * normal/completion.c: Likewise.
9626 * normal/cmdline.c: Likewise.
9627 * normal/misc.c: Likewise.
9628 * normal/datetime.c: Likewise.
9629 * bus/usb/usbtrans.c: Likewise.
9630 * bus/usb/ohci.c: Likewise.
9631 * bus/usb/uhci.c: Likewise.
9632 * bus/usb/usb.c: Likewise.
9633 * mmap/efi/mmap.c: Likewise.
9634 * mmap/i386/pc/mmap_helper.S: Likewise.
9635 * mmap/i386/pc/mmap.c: Likewise.
9636 * mmap/i386/mmap.c: Likewise.
9637 * mmap/i386/uppermem.c: Likewise.
9638 * mmap/mmap.c: Likewise.
9639 * commands/acpi.c: Likewise.
9640 * commands/echo.c: Likewise.
9641 * commands/blocklist.c: Likewise.
9642 * commands/loadenv.c: Likewise.
9643 * commands/usbtest.c: Likewise.
9644 * commands/boot.c: Likewise.
9645 * commands/parttool.c: Likewise.
9646 * commands/search.c: Likewise.
9647 * commands/cat.c: Likewise.
9648 * commands/i386/pc/play.c: Likewise.
9649 * commands/i386/pc/drivemap.c: Likewise.
9650 * commands/i386/pc/vbeinfo.c: Likewise.
9651 * commands/i386/pc/acpi.c: Likewise.
9652 * commands/i386/pc/vbetest.c: Likewise.
9653 * commands/ls.c: Likewise.
9654 * commands/cmp.c: Likewise.
9655 * commands/test.c: Likewise.
9656 * commands/efi/acpi.c: Likewise.
9657 * commands/gptsync.c: Likewise.
9658 * commands/help.c: Likewise.
9659 * partmap/amiga.c: Likewise.
9660 * partmap/apple.c: Likewise.
9661 * partmap/acorn.c: Likewise.
9662 * partmap/pc.c: Likewise.
9663 * partmap/sun.c: Likewise.
9664 * partmap/gpt.c: Likewise.
9665 * script/sh/lexer.c: Likewise.
9666 * script/sh/function.c: Likewise.
9667 * font/font.c: Likewise.
9668 * font/font_cmd.c: Likewise.
9669 * loader/powerpc/ieee1275/linux.c: Likewise.
9670 * loader/efi/chainloader.c: Likewise.
9671 * loader/multiboot_loader.c: Likewise.
9672 * loader/macho.c: Likewise.
9673 * loader/i386/multiboot.c: Likewise.
9674 * loader/i386/linux.c: Likewise.
9675 * loader/i386/pc/linux.c: Likewise.
9676 * loader/i386/pc/multiboot2.c: Likewise.
9677 * loader/i386/pc/chainloader.c: Likewise.
9678 * loader/i386/pc/xnu.c: Likewise.
9679 * loader/i386/bsd_trampoline.S: Likewise.
9680 * loader/i386/efi/linux.c: Likewise.
9681 * loader/i386/multiboot_elfxx.c: Likewise.
9682 * loader/i386/bsd_helper.S: Likewise.
9683 * loader/i386/bsd.c: Likewise.
9684 * loader/i386/linux_trampoline.S: Likewise.
9685 * loader/i386/xnu_helper.S: Likewise.
9686 * loader/i386/xnu.c: Likewise.
9687 * loader/i386/bsd_pagetable.c: Likewise.
9688 * loader/i386/multiboot_helper.S: Likewise.
9689 * loader/xnu.c: Likewise.
9690 * loader/xnu_resume.c: Likewise.
9691 * io/gzio.c: Likewise.
9692 * term/efi/console.c: Likewise.
9693 * term/terminfo.c: Likewise.
9694 * term/ieee1275/ofconsole.c: Likewise.
9695 * term/i386/pc/serial.c: Likewise.
9696 * term/i386/pc/vesafb.c: Likewise.
9697 * term/i386/pc/vga.c: Likewise.
9698 * term/usb_keyboard.c: Likewise.
9699 * term/gfxterm.c: Likewise.
9700 * aclocal.m4: Likewise.
9701 * util/lvm.c: Likewise.
9702 * util/grub.d/30_os-prober.in: Likewise.
9703 * util/grub.d/10_hurd.in: Likewise.
9704 * util/console.c: Likewise.
9705 * util/grub-macho2img.c: Likewise.
9706 * util/grub-probe.c: Likewise.
9707 * util/hostfs.c: Likewise.
9708 * util/i386/pc/grub-mkimage.c: Likewise.
9709 * util/i386/pc/grub-setup.c: Likewise.
9710 * util/i386/efi/grub-mkimage.c: Likewise.
9711 * util/grub-mkconfig.in: Likewise.
9712 * util/raid.c: Likewise.
9713 * util/resolve.c: Likewise.
9714 * util/grub-mkdevicemap.c: Likewise.
9715 * util/grub-emu.c: Likewise.
9716 * util/getroot.c: Likewise.
9717 * util/hostdisk.c: Likewise.
9718 * util/usb.c: Likewise.
9719 * util/grub-editenv.c: Likewise.
9720 * util/misc.c: Likewise.
9721
d2d49665 97222009-06-10 Felix Zielcke <fzielcke@z-51.de>
9723
9724 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
9725 `genparttoollist.sh'.
9726 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
9727 Add `*.sh' to the list find searches for and change `mdate.sh'
9728 to `mdate-sh'.
9729
fe052e37 97302009-06-10 Pavel Roskin <proski@gnu.org>
9731
2763ac18 9732 * include/grub/multiboot2.h: Provide compatibility defines for
9733 multiboot2.h.
9734 * include/multiboot2.h: Include stdint.h only if needed, using
9735 angle brackets.
9736 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
9737 grub/multiboot2.h.
9738 * loader/ieee1275/multiboot2.c: Likewise.
9739 * loader/multiboot2.c: Likewise.
9740 * loader/multiboot_loader.c: Likewise.
9741
437e6adc 9742 * configure.ac: Use -nostdlib when probing for the target. It
9743 should not be required to have libc for the target.
9744
06a6836c 9745 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
9746 they fail without libc headers for the target.
9747 * include/grub/powerpc/libgcc.h: Use weak attribute for all
9748 exports.
9749 * include/grub/sparc64/libgcc.h: Likewise. Don't use
9750 preprocessor conditionals.
9751
fe052e37 9752 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
9753 build system doesn't need to be aware of the tar.c internals.
9754
afd22553 97552009-06-09 Michel Hermier <michel.hermier@gmail.com>
87b8f28c 9756
afd22553 9757 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
8ec4a6d0 9758
6b787c4f 97592009-06-09 Robert Millan <rmh.grub@aybabtu.com>
9760
9761 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
9762 disk limit to 26 for IDE, Virtio, Xen and SCSI.
9763
97642009-06-09 Felix Zielcke <fzielcke@z-51.de>
9765
9766 * util/i386/pc/grub-install.in: Change the error message if UUIDs
473d1e45 9767 aren't available if ata.mod gets used.
6b787c4f 9768
473d1e45 97692009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
e23721e8 9770
473d1e45 9771 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
e23721e8 9772 initialising controller.
473d1e45 9773 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
e23721e8 9774
255a27d4 97752009-06-08 Felix Zielcke <fzielcke@z-51.de>
9776
9777 * util/i386/pc/grub-install.in: Add a parameter --disk-module
9778 to choose between ata and biosdisk module on i386-pc.
9779
473d1e45 97802009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
69da8877 9781
d55842d8 9782 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
9783 Subclass and Programming Interface fields in terms of the 3 byte
9784 Class Code register.
9785 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
9786
fa5db0b1 9787 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
9788 interface is OHCI. Add grub_dprintf for symmetry with
9789 bus/usb/uhci.c.
9790 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
9791 interface is UHCI. Add interf variable for programming
9792 interface. Print interface with class/subclass.
9793
c0947beb 9794 * bus/usb/ohci.c: Set interf with correct field.
9795
69da8877 9796 * bus/usb/uhci.c: Remove unneeded doubled lines.
9797 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
9798 Remove whitespace inside comment.
9799
9e172e30 98002009-06-08 Robert Millan <rmh.grub@aybabtu.com>
9801
9802 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
9803 as fallback an equivalent option without depth.
9804
de65ee2b 98052009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9806
9807 Not fail if unable to retrieve C/H/S on LBA disks
9808
473d1e45 9809 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
de65ee2b 9810 if unable to retrieve C/H/S on LBA disks
9811
b57ea2c9 98122009-06-08 Pavel Roskin <proski@gnu.org>
9813
9814 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
9815 about aliasing.
9816
af361263 98172009-06-08 Felix Zielcke <fzielcke@z-51.de>
9818
9819 * Makefile.in (uninstall): Remove all $lib_DATA files.
9820
4c9ec6b3 98212009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9822
9823 Bugfix: install on partitionless device
9824
9825 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
9826 is a whole disk
9827
e76fc924 98282009-06-08 Felix Zielcke <fzielcke@z-51.de>
9829
9830 * Makefile.in (uninstall): Remove all $include_DATA files.
9831
ba5a0d05 98322009-06-08 Felix Zielcke <fzielcke@z-51.de>
9833
9834 * commands/true.c: New file. Implement the true and false commands.
9835 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
9836 (true_mod_SOURCES): New variable.
9837 (true_mod_CFLAGS): Likewise.
9838 (true_mod_LDFLAGS): Likewise.
9839
c8048e32 98402009-06-05 Colin D Bennett <colin@gibibit.com>
9841
9842 Optimized font character lookup using binary search instead of linear
9843 search. Fonts now are required to have the character index ordered by
9844 code point.
9845
9846 * font/font.c (load_font_index): Verify that fonts have ordered
9847 character indices.
9848 (find_glyph): Use binary search instead of linear search to find a
9849 character in a font.
9850
408305be 98512009-06-05 Michael Scherer <misc@mandriva.org>
9852
9853 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
9854 uses case sensitive btree.
9855 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
9856 only for case insensitive filesystems.
9857
8ee1e0d9 98582009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9859
9860 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
9861 * conf/common.rmk (search_mod_CFLAGS): likewise
9862
a9966eb1 98632009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
9864
473d1e45 9865 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
a9966eb1 9866 compensate a compiler bug
9867
9e7100fb 98682009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
9869
473d1e45 9870 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
9e7100fb 9871 instead of '\b'
473d1e45 9872
ede21d71 98732009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
9874
9875 Definitions for creating asm symbols with Apple's CC
9876
9877 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
9878 [APPLE_CC] (VARIABLE): likewise
9879
9dbf7653 98802009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
9881
9882 Disable lnxboot.img when compiled
9883 with Apple's CC
9884
9885 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
9886 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
9887 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
9888 [! APPLE_CC] (CODE_LENG): skip
9889 [! APPLE_CC] (setup_sects): likewise
9890 [! APPLE_CC]: skip filling
473d1e45 9891
e93cdc3d 98922009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
9893
9894 Address in trampolines based on 32-bit registers when compiled
9895 with Apple's CC
9896
473d1e45 9897 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
e93cdc3d 9898 for addresses
9899 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
9900
6c688477 99012009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
9902
9903 Avoid aliases when compiling with Apple's CC for PCBIOS machine
9904
9905 * kern/misc.c [APPLE_CC] (memcpy): new function
9906 [APPLE_CC] (memmove): likewise
9907 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
473d1e45 9908 (memcpy): define alias conditionally on !APPLE_CC
6c688477 9909 (memset): likewise
9910 (abort): likewise
9911 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
9912 APPLE_CC are defined
9913 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
9914 (grub_assert_fail): make prototype conditional
9915
e37ffc5c 99162009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
9917
9918 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
9919
473d1e45 9920 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
9921 grub-macho2img
e37ffc5c 9922 (CLEANFILES): add grub-macho2img
9923 (grub_macho2img_SOURCES): new variable
9924 * kern/i386/pc/startup.S (bss_start): new variable
9925 (bss_end): likewise
9926 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
9927 * util/grub-macho2img.c: new file
9928
cf00df31 99292009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
9930
9931 Use objconv when compiling with Apple's CC
9932
9933 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
9934 (efiemu64.o): likewise
9935 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
9936 when compiling with Apple's CC
9937 (efiemu64_s.o): likewise
9938 * configure.ac: check for objconv when compiling with Apple's CC
9939 * genmk.rb: use objconv for modules when compiled with Apple's CC
473d1e45 9940
d119a20c 99412009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
9942
9943 Define segment as well as section when compiling with
9944 Apple's CC
9945
9946 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
9947 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
9948 (efiemu_convert_pointer): likewise
9949 (efiemu_set_virtual_address_map): likewise
9950 (efiemu_convert_pointer): likewise
9951 (efiemu_getcrc32): likewise
9952 (init_crc32_table): likewise
9953 (reflect): likewise
9954 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
9955 (GRUB_MOD_DEP): likewise
473d1e45 9956
c8600122 99572009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
9958
9959 Allow a compilation without -mcmodel=large
9960
9961 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
9962 when compiled without -mcmodel=large
473d1e45 9963 (filter_memory_map): remove memory post 4 GiB when compiled
c8600122 9964 without -mcmodel=large
473d1e45 9965 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
c8600122 9966 TARGET_CFLAGS when -mcmodel=large isn't supported
473d1e45 9967
e8df1d4e 99682009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
9969
9970 Remove nested functions in efiemu core
9971
9972 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
473d1e45 9973
cc6c3ac1 99742009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
9975
9976 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
9977
9978 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
9979 temporary storage
473d1e45 9980 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
9981 using Apple's CC
cc6c3ac1 9982 (grub_cpu_is_tsc_supported): likewise
9983 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
473d1e45 9984
3e325901 99852009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
9986
9987 Absolute addressing through constant with Apple's cc
9988
9989 * kern/i386/pc/startup.S: Define necessary constants
9990 and address through it when using ABS with Apple's CC
9991 * boot/i386/pc/diskboot.S: likewise
9992 * boot/i386/pc/boot.S: likewise
9993 * boot/i386/pc/lnxboot.S: likewise
9994 * boot/i386/pc/cdboot.S: likewise
9995 * mmap/i386/pc/mmap_helper.S: likewise
9996 * commands/i386/pc/drivemap_int13h.S: likewise
9997
2b167a72 99982009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
9999
10000 Check if compiler is apple cc
10001
10002 * Makefile.in (ASFLAGS): new variable
10003 (TARGET_ASFLAGS): likewise
10004 (TARGET_MODULE_FORMAT): likewise
10005 (TARGET_APPLE_CC): likewise
10006 (OBJCONV): likewise
10007 (TARGET_IMG_CFLAGS): likewise
10008 (TARGET_CPPFLAGS): add includedir
10009 * configure.ac: call grub_apple_cc and grub_apple_target_cc
10010 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
10011 Check for linker script only if compiler isn't Apple's CC
10012 (TARGET_MODULE_FORMAT): set
10013 (TARGET_APPLE_CC): likewise
10014 (TARGET_ASFLAGS): likewise
10015 (ASFLAGS): likewise
10016 Check for objcopy only if compiler isn't Apple's CC
10017 Check for BSS symbol only if compiler isn't Apple's CC
10018 * genmk.rb: adapt nm options if we use Apple's utils
10019 * aclocal.m4 (grub_apple_cc): new test
10020 (grub_apple_target_cc): likewise
473d1e45 10021
fb14123e 100222009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10023
10024 Simplify sed expressions and improve awk
10025
10026 * Makefile.in (install-local): simplify sed expression
10027 * gencmdlist.sh: likewise
10028 * genmoddep.awk: avoid adding module as a dependency of itself
10029
5b889789 100302009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10031
10032 Add missing start symbols
10033
10034 * boot/i386/pc/boot.S: add start
fb14123e 10035 * boot/i386/pc/pxeboot.S: likewise
473d1e45 10036
fd2bf2e3 100372009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10038
10039 Fix wrong assumptions with grub-mkimage on EFI
473d1e45 10040
10041 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
fd2bf2e3 10042 (relocate_addresses): consider both r_addend and value at offset
10043 (make_mods_section): zerofill modinfo and header
10044 (convert_elf): write prefix here
473d1e45 10045
5389763d 100462009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10047
10048 Use .asciz instead of .string
10049
10050 * i386/pc/diskboot.S: use .asciz instead of .string
10051 * i386/pc/boot.S: likewise
10052 * include/grub/dl.h (GRUB_MOD_DEP): likewise
10053 (GRUB_MOD_NAME): likewise
473d1e45 10054
3eb5ed4e 100552009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10056
10057 gfxpayload support
10058
10059 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
10060 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
10061 (grub_video_setup): remove
10062 (grub_video_set_mode): new prototype
10063 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
10064 (vid_mode): remove
10065 (linux_vesafb_res): compile only on PCBIOS
10066 (grub_linux_boot): support gfxpayload
10067 * loader/i386/pc/xnu.c (video_hook): new function
10068 (grub_xnu_set_video): support gfxpayload
10069 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
10070 (DEFAULT_VIDEO_HEIGHT): likewise
10071 (DEFAULT_VIDEO_FLAGS): likewise
10072 (DEFAULT_VIDEO_MODE): new definition
10073 (video_hook): new function
10074 (grub_gfxterm_init): use grub_video_set_mode
473d1e45 10075 * util/grub.d/30_os-prober.in: remove explicit modesetting before
3eb5ed4e 10076 loading xnu
10077 * video/video.c (grub_video_setup): removed
473d1e45 10078 (grub_video_set_mode): new function based on grub_gfxterm_init and
3eb5ed4e 10079 grub_video_setup
10080
4b0e1143 100812009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10082
10083 Avoid calling biosdisk in drivemap
10084
10085 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
10086 (revparse_biosdisk): likewise
10087 (list_mappings): derive name from id directly
10088 (grub_cmd_drivemap): use tryparse_diskstring
473d1e45 10089
fda6cb98 100902009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10091
10092 Script fixes
10093
10094 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
10095 (grub_lexer_param): add tokenonhold
10096 (grub_script_create_cmdline): remove cmdline. All callers updated
10097 (grub_script_function_create): make functionname
10098 grub_script_arg. All callers updated
10099 (grub_script_execute_argument_to_string): new prototype
10100 * kern/parser.c (state_transitions): reorder
10101 (grub_parser_cmdline_state): fix a bug and make more compact
473d1e45 10102 * script/sh/execute.c (grub_script_execute_argument_to_string):
fda6cb98 10103 make global
10104 (grub_script_execute_cmdline): use new format
10105 * script/sh/function.c (grub_script_function_create): make functionname
10106 grub_script_arg. All callers updated
473d1e45 10107 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
fda6cb98 10108 (grub_script_yylex): remove
10109 (grub_script_yylex2): renamed to ...
10110 (grub_script_yylex): ...renamed
10111 parse the expressions like a${b}c
10112 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
10113 (GRUB_PARSER_TOKEN_VAR): remove
10114 (GRUB_PARSER_TOKEN_NAME): likewise
10115 ("if"): declare as typeless
10116 ("while"): likewise
10117 ("function"): likewise
10118 ("else"): likewise
10119 ("then"): likewise
10120 ("fi"): likewise
10121 (text): remove
10122 (argument): likewise
10123 (script): accept empty scripts and make exit on error
10124 (arguments): use GRUB_PARSER_TOKEN_ARG
10125 (function): likewise
10126 (command): move error handling to script
10127 (menuentry): move grub_script_lexer_ref before
473d1e45 10128 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
fda6cb98 10129 argument. All callers updated
10130
f4448a07 101312009-06-04 Robert Millan <rmh.grub@aybabtu.com>
10132
10133 Prevent GRUB from probing floppies during boot.
10134
10135 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
10136 * commands/search.c (options): Add --no-floppy.
10137 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
10138 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
10139 --no-floppy when searching for UUIDs.
10140
2bf5885a 101412009-06-04 Robert Millan <rmh.grub@aybabtu.com>
10142
10143 Simplify the code duplication in commands/search.c.
10144
10145 * commands/search.c (search_label, search_fs_uuid): Merge into ...
10146 (search_fs): ... this. Update all users.
10147
f6fd460a 101482009-06-03 Felix Zielcke <fzielcke@z-51.de>
10149
10150 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
10151
cbb3c83e 101522009-05-28 Pavel Roskin <proski@gnu.org>
10153
57788cfd 10154 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
10155 Remove the original symlink explicitly.
10156
cbb3c83e 10157 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
10158 just one slash. That's how grub_fshelp_find_file() does it.
10159
cd0d5e30 101602009-05-26 Pavel Roskin <proski@gnu.org>
10161
f0f8bbe2 10162 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
10163 to `str'.
10164
cd0d5e30 10165 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
10166 possibly unused.
10167
8c2cab51 101682009-05-25 Christian Franke <franke@computer.org>
10169
10170 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
10171 register.
10172 (grub_atapi_identify): Add wait after drive select.
10173 (grub_ata_identify): Do more strict status register check before
10174 calling grub_atapi_identify (). Suppress error message if status
10175 register is 0x00 after command failure. Add status register
10176 check after PIO read to avoid bogus identify due to stuck DRQ.
10177 Thanks to Pavel Roskin for testing.
10178 (grub_device_initialize): Remove unsafe status register check.
10179 Thanks to 'phcoder' for problem report and patch.
10180 Prevent sign extension in debug message.
10181
230c0ad6 101822009-05-23 Colin D Bennett <colin@gibibit.com>
10183
10184 Cleaned up `include/grub/normal.h'. Grouped prototypes by
10185 definition file, and functions defined in `normal/menu.c' have had
10186 their prototypes moved to `include/grub/menu.h' for consistency.
10187
10188 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
10189 from normal.h.
10190 (grub_menu_get_entry): Likewise.
10191 (grub_menu_get_timeout): Likewise.
10192 (grub_menu_set_timeout): Likewise.
10193 (grub_menu_execute_entry): Likewise.
10194 (grub_menu_execute_with_fallback): Likewise.
10195 (grub_menu_entry_run): Likewise.
10196
10197 * include/grub/normal.h: Re-ordered and grouped function
10198 prototypes by file that the function is defined in.
10199 (grub_menu_execute_callback): Removed; moved to menu.h.
10200 (grub_menu_get_entry): Likewise.
10201 (grub_menu_get_timeout): Likewise.
10202 (grub_menu_set_timeout): Likewise.
10203 (grub_menu_execute_entry): Likewise.
10204 (grub_menu_execute_with_fallback): Likewise.
10205 (grub_menu_entry_run): Likewise.
10206 (grub_menu_addentry): Renamed from this ...
10207 (grub_normal_add_menu_entry): ... to this.
10208
10209 * normal/main.c (grub_menu_addentry): Renamed from this ...
10210 (grub_normal_add_menu_entry): ... to this.
10211
10212 * script/sh/execute.c (grub_script_execute_menuentry): Update
10213 reference to renamed grub_menu_addentry function.
10214
861f03a5 102152009-05-23 Felix Zielcke <fzielcke@z-51.de>
10216
10217 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
10218
96b1619a 102192009-05-22 Pavel Roskin <proski@gnu.org>
10220
bf6a5fb2 10221 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
10222 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
10223 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
10224 compiling for the i386 targets, but not for the utilities.
10225
96b1619a 10226 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
10227 to grub_uint8_t.
10228 (grub_root_drive): Likewise.
10229 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
10230 remove alignment.
10231 (grub_root_drive): Change size to byte.
10232 (grub_start_addr): Remove.
10233 (grub_end_addr): Likewise.
10234 (grub_apm_bios_info): Likewise.
10235
b729776b 102362009-05-21 Felix Zielcke <fzielcke@z-51.de>
10237
10238 * normal/i386: Remove.
10239 * normal/powerpc: Likewise.
10240 * normal/sparc64: Likewise.
10241 * normal/x86_64: Likewise.
10242
0a15ce80 102432009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
10244
10245 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
473d1e45 10246 * loader/i386/linux_trampoline.S: Fix indentation
0a15ce80 10247 * loader/i386/xnu_helper.S: Likewise
d6da58e6 10248
33db9015 102492009-05-18 Colin D Bennett <colin@gibibit.com>
10250
d6da58e6 10251 Display error messages when parsing a Lua statement fails.
10252 Previously, executing a syntactically invalid statement like
10253 ")foo" or "bar;" would silently fail.
33db9015 10254
10255 * script/lua/grub_main.c (handle_lua_error): New function.
d6da58e6 10256 (grub_lua_parse_line): Improved reporting of Lua parser and
10257 execution errors.
33db9015 10258
46422c89 102592009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
10260
10261 Remove -Werror which causes build to fail on some systems
10262
10263 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
10264 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
10265 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
18f547ad 10266
22f53a96 102672009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
10268
10269 trampoline for linux on 64-bit platform
10270
18f547ad 10271 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
10272 loader/i386/efi/linux_trampoline.S
10273 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
473d1e45 10274 declaration
d6da58e6 10275 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
10276 here
22f53a96 10277 * loader/i386/linux_trampoline.S: moved here
d6da58e6 10278 * loader/i386/efi/linux.c (allocate_pages): reserve space for
10279 trampoline
22f53a96 10280 (jumpvector): removed
10281 (grub_linux_trampoline_start): new declaration
10282 (grub_linux_trampoline_end): likewise
10283 (grub_linux_boot): use trampoline when on 64-bit platform
10284 * loader/i386/linux.c: likewise
10285
cb5a0f40 102862009-05-16 Pavel Roskin <proski@gnu.org>
10287
10288 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
10289 const to avoid a warning.
10290 (grub_lua_setenv): Likewise.
10291 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
10292 lmsg to fix a warning.
10293
334f2c28 102942009-05-16 Felix Zielcke <fzielcke@z-51.de>
10295
10296 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
7dd10fce 10297 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
10298 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
10299 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
10300 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
10301 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
10302 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
10303 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
334f2c28 10304
59e5d3ec 103052009-05-16 Felix Zielcke <fzielcke@z-51.de>
10306
10307 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
10308
9d87a1ba 103092009-05-16 Bean <bean123ch@gmail.com>
10310
10311 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
10312 (lua_mod_SOURCES): New variable.
10313 (lua_mod_CFLAGS): Likewise.
10314 (lua_mod_LDFLAGS): Likewise.
10315
10316 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
10317 (setjmp_mod_SOURCES): New variable.
10318 (setjmp_mod_CFLAGS): Likewise.
10319 (setjmp_LDFLAGS): Likewise.
10320
10321 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
10322 (setjmp_mod_SOURCES): New variable.
10323 (setjmp_mod_CFLAGS): Likewise.
10324 (setjmp_LDFLAGS): Likewise.
10325
10326 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
10327 (setjmp_mod_SOURCES): New variable.
10328 (setjmp_mod_CFLAGS): Likewise.
10329 (setjmp_LDFLAGS): Likewise.
10330
10331 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
10332 (setjmp_mod_SOURCES): New variable.
10333 (setjmp_mod_CFLAGS): Likewise.
10334 (setjmp_LDFLAGS): Likewise.
10335
10336 * normal/i386/setjmp.S: Moved from here ...
10337 * lib/i386/setjmp.S: ... Moved here
10338 * normal/x86_64/setjmp.S: Moved from here ...
10339 * lib/x86_64/setjmp.S: ... Moved here
10340 * normal/powerpc/setjmp.S: Moved from here ...
10341 * lib/powerpc/setjmp.S: ... Moved here
10342 * normal/sparc64/setjmp.S: Moved from here ...
10343 * lib/sparc64/setjmp.S: ... Moved here
10344
10345 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
10346 returns_twice in mingw.
10347
10348 * script/lua/grub_lib.c: New file.
10349 * script/lua/grub_lib.h: Likewise.
10350 * script/lua/grub_lua.h: Likewise.
10351 * script/lua/grub_main.c: Likewise.
10352 * script/lua/lapi.c: Likewise.
10353 * script/lua/lapi.h: Likewise.
10354 * script/lua/lauxlib.c: Likewise.
10355 * script/lua/lauxlib.h: Likewise.
10356 * script/lua/lbaselib.c: Likewise.
10357 * script/lua/lcode.c: Likewise.
10358 * script/lua/lcode.h: Likewise.
10359 * script/lua/ldblib.c: Likewise.
10360 * script/lua/ldebug.c: Likewise.
10361 * script/lua/ldebug.h: Likewise.
10362 * script/lua/ldo.c: Likewise.
10363 * script/lua/ldo.h: Likewise.
10364 * script/lua/ldump.c: Likewise.
10365 * script/lua/lfunc.c: Likewise.
10366 * script/lua/lfunc.h: Likewise.
10367 * script/lua/lgc.c: Likewise.
10368 * script/lua/lgc.h: Likewise.
10369 * script/lua/linit.c: Likewise.
10370 * script/lua/liolib.c: Likewise.
10371 * script/lua/llex.c: Likewise.
10372 * script/lua/llex.h: Likewise.
10373 * script/lua/llimits.h: Likewise.
10374 * script/lua/lmathlib.c: Likewise.
10375 * script/lua/lmem.c: Likewise.
10376 * script/lua/lmem.h: Likewise.
10377 * script/lua/loadlib.c: Likewise.
10378 * script/lua/lobject.c: Likewise.
10379 * script/lua/lobject.h: Likewise.
10380 * script/lua/lopcodes.c: Likewise.
10381 * script/lua/lopcodes.h: Likewise.
10382 * script/lua/loslib.c: Likewise.
10383 * script/lua/lparser.c: Likewise.
10384 * script/lua/lparser.h: Likewise.
10385 * script/lua/lstate.c: Likewise.
10386 * script/lua/lstate.h: Likewise.
10387 * script/lua/lstring.c: Likewise.
10388 * script/lua/lstring.h: Likewise.
10389 * script/lua/lstrlib.c: Likewise.
10390 * script/lua/ltable.c: Likewise.
10391 * script/lua/ltable.h: Likewise.
10392 * script/lua/ltablib.c: Likewise.
10393 * script/lua/ltm.c: Likewise.
10394 * script/lua/ltm.h: Likewise.
10395 * script/lua/lua.h: Likewise.
10396 * script/lua/luaconf.h: Likewise.
10397 * script/lua/lualib.h: Likewise.
10398 * script/lua/lundump.c: Likewise.
10399 * script/lua/lundump.h: Likewise.
10400 * script/lua/lvm.c: Likewise.
10401 * script/lua/lvm.h: Likewise.
10402 * script/lua/lzio.c: Likewise.
10403 * script/lua/lzio.h: Likewise.
10404
5e898c9d 104052009-05-16 Bean <bean123ch@gmail.com>
10406
10407 * include/grub/kernel.h (grub_module_header_types): Add type
10408 OBJ_TYPE_CONFIG.
10409
10410 * kern/main.c (grub_load_config): New function.
10411 (grub_main): Call grub_load_config to read boot config.
10412
10413 * grub-mkimage (generate_image): New parameter config_path.
10414 (options): New option --config.
10415 (main): Parse --config option, and pass it to generate_image.
10416
cf353a47 104172009-05-14 Christian Franke <franke@computer.org>
10418
10419 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
10420 This fixes build on Cygwin.
10421
3834887f 104222009-05-14 Pavel Roskin <proski@gnu.org>
10423
10424 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
10425 jump. This saves two bytes, so the typical case of 2 swapped
10426 drives would fit 32 bytes.
10427
8090fc01 104282009-05-13 Pavel Roskin <proski@gnu.org>
10429
ac963883 10430 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
10431 grub_uint32_t to avoid a warning.
10432
8090fc01 10433 * loader/i386/linux.c (allocate_pages): When assigning
10434 real_mode_mem, cast through grub_size_t to fix a warning. The
10435 code already makes sure that the value would fit a pointer.
10436 (grub_linux_setup_video): Cast render_target->data to
10437 grub_size_t to fix a warning.
10438
18f547ad 104392009-05-13 Javier Martín <lordhabbit@gmail.com>
4246b8a9 10440
10441 * commands/i386/pc/drivemap.c: New file - implement drivemap
10442 command.
10443 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
10444 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
10445
6f6a8b28 104462009-05-13 Pavel Roskin <proski@gnu.org>
10447
10448 * util/i386/pc/grub-setup.c (setup): Remove unused variable
10449 embedding_area_exists.
10450
15fbf4c4 104512009-05-13 Robert Millan <rmh.grub@aybabtu.com>
10452
10453 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
10454 it easier to understand / work with.
59978c8a 10455 Improve warning messages for cases where there's no embedding area,
10456 or when it is too small (or core.img too large).
15fbf4c4 10457
238e871f 104582009-05-13 Pavel Roskin <proski@gnu.org>
10459
0ab3a9a4 10460 * loader/i386/pc/multiboot2.c: Add necessary includes for
10461 grub_multiboot2_real_boot().
10462
a2c8c5f8 10463 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
10464 PX record is always little-endian. We only need the lower 2
10465 bytes of the mode.
10466
faec96af 10467 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
10468 facilitate code reuse.
10469 (grub_cpio_mount): Use "struct head", not a char buffer. This
10470 fixes a warning reported by gcc 4.4.
10471
238e871f 10472 * kernel/disk.c (grub_disk_read): Use void pointer for the
10473 buffer.
10474 (grub_disk_write): Use const void pointer for the buffer.
10475 Adjust all callers. Remove unnecessary casts.
10476
901d2f0c 104772009-05-10 Robert Millan <rmh.grub@aybabtu.com>
10478
10479 * util/i386/pc/grub-install.in: Update copyright year.
10480
18f547ad 104812009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
2eac4c16 10482
10483 gptsync
10484
10485 * commands/gptsync.c: new file
10486 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
10487 (gptsync_mod_SOURCES): new variable
10488 (gptsync_mod_CFLAGS): likewise
10489 (gptsync_mod_LDFLAGS): likewise
18f547ad 10490 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
2eac4c16 10491 new definition
10492 (GRUB_PC_PARTITION_TYPE_HFS): likewise
10493 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
10494 * conf/i386-ieee1275.rmk: likewise
10495 * conf/i386-pc.rmk: likewise
10496 * conf/powerpc-ieee1275.rmk: likewise
10497
b4ba690a 104982009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10499
10500 Fixed grub-emu
10501
10502 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
10503 (grub_dl_ref): likewise
10504
317e1a44 105052009-05-08 Robert Millan <rmh.grub@aybabtu.com>
10506
10507 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
10508 split in two functions (one for msdos and one for gpt).
10509
041b8094 105102009-05-08 Pavel Roskin <proski@gnu.org>
10511
752473c2 10512 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
10513 not modified.
10514
041b8094 10515 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
10516 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
10517 Initialize them with -1. Add sanity check for bad1. Eliminate
10518 nerr variable.
10519
172800ce 105202009-05-08 David S. Miller <davem@davemloft.net>
10521
10522 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
10523
29aa5e81 105242009-05-06 Robert Millan <rmh.grub@aybabtu.com>
10525
10526 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
473d1e45 10527 existence.
29aa5e81 10528
96613b62 105292009-05-05 Felix Zielcke <fzielcke@z-51.de>
10530
10531 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
1905c57b 10532 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
96613b62 10533
eef73c8a 105342009-05-05 David S. Miller <davem@davemloft.net>
10535
10536 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
10537
119494b5 105382009-05-05 Pavel Roskin <proski@gnu.org>
10539
10540 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
10541 of grub_dl_ref() and grub_dl_unref().
10542 * commands/parttool.c: Remove preprocessor conditionals around
10543 grub_dl_ref() and grub_dl_unref().
10544 * fs/affs.c: Likewise.
10545 * fs/afs.c: Likewise.
10546 * fs/cpio.c: Likewise.
10547 * fs/ext2.c: Likewise.
10548 * fs/fat.c: Likewise.
10549 * fs/hfs.c: Likewise.
10550 * fs/hfsplus.c: Likewise.
10551 * fs/iso9660.c: Likewise.
10552 * fs/jfs.c: Likewise.
10553 * fs/minix.c: Likewise.
10554 * fs/ntfs.c: Likewise.
10555 * fs/reiserfs.c: Likewise.
10556 * fs/sfs.c: Likewise.
10557 * fs/udf.c: Likewise.
10558 * fs/ufs.c: Likewise.
10559 * fs/xfs.c: Likewise.
10560 * include/grub/dl.h: Likewise.
10561 * loader/xnu.c: Likewise.
10562
de5fd76e 105632009-05-04 Pavel Roskin <proski@gnu.org>
10564
10565 * commands/acpi.c: Remove unused variable my_mod.
10566 * partmap/amiga.c: Likewise.
10567 * partmap/apple.c: Likewise.
10568 * partmap/gpt.c: Likewise.
10569 * partmap/pc.c: Likewise.
10570 * partmap/sun.c: Likewise.
10571 * term/gfxterm.c: Likewise.
10572 * term/i386/pc/vesafb.c: Likewise.
10573 * term/i386/pc/vga.c: Likewise.
10574
983598ad 105752009-05-04 David S. Miller <davem@davemloft.net>
10576
10577 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
10578 pointer args to grub_ieee1275_get_property().
10579
8aadec43 10580 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
10581
9554b15e 10582 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
10583 devices, and do not traverse down under controller nodes.
10584
67e23c90 10585 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
10586 (grub_ofdisk_open): Use it to un-escape "," characters.
10587 * kern/disk.c (find_part_sep): New.
10588 (grub_disk_open): Use it to find the first non-escaped ','
10589 character in the disk name.
10590 * util/ieee1275/devicemap.c (escape_of_path): New.
10591 (grub_util_emit_devicemap_entry): Use it.
10592 * util/sparc64/ieee1275/grub-install.in: Update script to
10593 strip partition specifiers properly by not triggering on
10594 '\' escaped ',' characters.
10595
74bfdd2f 105962009-05-04 Robert Millan <rmh.grub@aybabtu.com>
10597
10598 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
10599 to 0x300.
10600 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
10601 resolutions.
10602 (linux_vesafb_modes): Add a lot of additional modes to the list (based
10603 on documentation from Wikipedia).
10604
4241d2b1 106052009-05-04 Pavel Roskin <proski@gnu.org>
10606
10607 * disk/ata.c: Spelling fixes.
10608 * disk/raid.c: Likewise.
10609 * disk/usbms.c: Likewise.
10610 * disk/dmraid_nvidia.c: Likewise.
10611 * kern/ieee1275/openfw.c: Likewise.
10612 * kern/ieee1275/init.c: Likewise.
10613 * kern/ieee1275/cmain.c: Likewise.
10614 * boot/i386/pc/cdboot.S: Likewise.
10615 * video/readers/png.c: Likewise.
10616 * video/i386/pc/vbe.c: Likewise.
10617 * fs/udf.c: Likewise.
10618 * fs/hfs.c: Likewise.
10619 * fs/reiserfs.c: Likewise.
10620 * efiemu/runtime/efiemu.c: Likewise.
10621 * efiemu/main.c: Likewise.
10622 * efiemu/mm.c: Likewise.
10623 * include/grub/elf.h: Likewise.
10624 * include/grub/xnu.h: Likewise.
10625 * include/grub/usbdesc.h: Likewise.
10626 * include/grub/usb.h: Likewise.
10627 * include/grub/script_sh.h: Likewise.
10628 * include/grub/lib/LzmaEnc.h: Likewise.
10629 * include/grub/efiemu/efiemu.h: Likewise.
10630 * include/grub/command.h: Likewise.
10631 * normal/menu.c: Likewise.
10632 * normal/main.c: Likewise.
10633 * normal/datetime.c: Likewise.
10634 * bus/usb/uhci.c: Likewise.
10635 * mmap/i386/uppermem.c: Likewise.
10636 * mmap/mmap.c: Likewise.
10637 * commands/acpi.c: Likewise.
10638 * commands/test.c: Likewise.
10639 * partmap/apple.c: Likewise.
10640 * font/font.c: Likewise.
10641 * loader/sparc64/ieee1275/linux.c: Likewise.
10642 * loader/macho.c: Likewise.
10643 * loader/i386/bsd_trampoline.S: Likewise.
10644 * loader/i386/bsd.c: Likewise.
10645 * loader/xnu.c: Likewise.
10646 * term/i386/pc/vesafb.c: Likewise.
10647 * term/usb_keyboard.c: Likewise.
10648 * util/resolve.c: Likewise.
10649 * util/getroot.c: Likewise.
10650
0cfc0083 106512009-05-04 Felix Zielcke <fzielcke@z-51.de>
10652
10653 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
10654
7c1d00cd 106552009-05-04 Robert Millan <rmh.grub@aybabtu.com>
10656
10657 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
10658 build error.
10659
b01f0548 106602009-05-04 Robert Millan <rmh.grub@aybabtu.com>
10661
10662 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
10663 parameter only available on BIOS.
10664
ecc3eb22 106652009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10666
10667 Removed wrong semicolon in declaration
10668
10669 * grub/misc.h (grub_dprintf): remove semicolon
10670
112972a9 106712009-05-04 Robert Millan <rmh.grub@aybabtu.com>
10672
10673 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
10674 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
10675 is done by grub_cmd_linux() now).
10676 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
10677 restore video to text mode.
10678 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
10679 indicates lack of "vga=" parameter. "vga=0" is mapped to
10680 `GRUB_LINUX_VID_MODE_NORMAL'.
10681
afd5c115 106822009-05-04 Felix Zielcke <fzielcke@z-51.de>
10683
10684 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
10685 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
10686 and `normal/script.c'. Add `kern/rescue_reader.c',
18f547ad 10687 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
afd5c115 10688 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
10689 `grub_script.tab.c'.
10690
10691 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
10692 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
10693 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
10694 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
10695 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
10696
faa517ce 10697 * Makefile.in: Remove duplicated 2008 in Copyright line.
10698
ae0c0bdc 106992009-05-04 Robert Millan <rmh.grub@aybabtu.com>
10700
473d1e45 10701 * util/misc.c (grub_util_warn): New function. Emits a warning
ae0c0bdc 10702 unconditionally.
10703 * include/grub/util/misc.h (grub_util_warn): New declaration.
10704
10705 * util/i386/pc/grub-install.in: Understand --force and pass it down
10706 to grub-setup.
10707
10708 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
10709 down to setup().
10710 (setup): Improve error messages and add warnings when requested to
10711 install in odd layouts. Refuse to install using blocklists unless
10712 --force was set.
10713
18f547ad 107142009-05-04 martin f. krafft <madduck@madduck.net>
c149b500 10715
10716 * disk/raid.c (grub_raid_scan_device): Improve debug message.
10717
6d260daa 107182009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10719
10720 Updated copyright year
10721
10722 * fs/hfsplus.c: updated copyright year
18f547ad 10723
69f853f8 107242009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10725
10726 HFS+ UUID
10727
18f547ad 10728 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
69f853f8 10729 in the space previously used by unused3
10730 (grub_hfsplus_uuid): new function
10731 (grub_hfsplus_fs): added uuid field
10732
4c402e73 107332009-05-03 Pavel Roskin <proski@gnu.org>
10734
10735 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
10736 suppress warnings. It's no longer needed.
10737 * disk/host.c: Likewise.
10738 * disk/ata_pthru.c: Likewise.
10739 * disk/loopback.c: Likewise.
10740 * hook/datehook.c: Likewise.
10741 * parttool/pcpart.c: Likewise.
10742 * fs/i386/pc/pxe.c: Likewise.
10743 * fs/ntfscomp.c: Likewise.
10744 * efiemu/main.c: Likewise.
10745 * mmap/mmap.c: Likewise.
10746 * commands/crc.c: Likewise.
10747 * commands/hexdump.c: Likewise.
10748 * commands/hdparm.c: Likewise.
10749 * commands/acpi.c: Likewise.
10750 * commands/echo.c: Likewise.
10751 * commands/minicmd.c: Likewise.
10752 * commands/blocklist.c: Likewise.
10753 * commands/memrw.c: Likewise.
10754 * commands/loadenv.c: Likewise.
10755 * commands/usbtest.c: Likewise.
10756 * commands/lsmmap.c: Likewise.
10757 * commands/boot.c: Likewise.
10758 * commands/parttool.c: Likewise.
10759 * commands/configfile.c: Likewise.
10760 * commands/search.c: Likewise.
10761 * commands/ieee1275/suspend.c: Likewise.
10762 * commands/cat.c: Likewise.
10763 * commands/i386/pc/pxecmd.c: Likewise.
10764 * commands/i386/pc/play.c: Likewise.
10765 * commands/i386/pc/halt.c: Likewise.
10766 * commands/i386/pc/vbeinfo.c: Likewise.
10767 * commands/i386/pc/vbetest.c: Likewise.
10768 * commands/lspci.c: Likewise.
10769 * commands/date.c: Likewise.
10770 * commands/handler.c: Likewise.
10771 * commands/ls.c: Likewise.
10772 * commands/test.c: Likewise.
10773 * commands/cmp.c: Likewise.
10774 * commands/efi/loadbios.c: Likewise.
10775 * commands/efi/fixvideo.c: Likewise.
10776 * commands/halt.c: Likewise.
10777 * commands/help.c: Likewise.
10778 * commands/reboot.c: Likewise.
10779 * hello/hello.c: Likewise.
10780 * script/sh/main.c: Likewise.
10781 * loader/xnu.c: Likewise.
10782 * term/terminfo.c: Likewise.
10783 * term/i386/pc/serial.c: Likewise.
10784 * term/usb_keyboard.c: Likewise.
10785
515b5079 107862009-05-03 David S. Miller <davem@davemloft.net>
10787
10788 * normal/menu.c: Include grub/parser.h
10789
dfc31a22 107902009-05-03 Pavel Roskin <proski@gnu.org>
10791
2fee74f1 10792 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
10793 not char*.
10794 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
10795 Suggested by Javier Martín <lordhabbit@gmail.com>
10796
dfc31a22 10797 * util/i386/pc/grub-mkrescue.in: Allow for the case when
10798 efiemu??.o doesn't exist.
10799 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
10800 copying.
10801
18f547ad 108022009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
cef17233 10803
10804 FreeBSD 64-bit support
10805
18f547ad 10806 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
cef17233 10807 and loader/i386/bsd_trampoline.S
10808 (bsd_mod_ASFLAGS): new variable
10809 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
10810 (FREEBSD_MODTYPE_KERNEL64): likewise
10811 (grub_bsd64_trampoline_start): likewise
10812 (grub_bsd64_trampoline_end): likewise
10813 (grub_bsd64_trampoline_selfjump): likewise
10814 (grub_bsd64_trampoline_gdt): likewise
10815 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
10816 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
10817 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
10818 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
18f547ad 10819 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
cef17233 10820 of "attrib" member
10821 * loader/i386/bsd_pagetable.c: new file
10822 * loader/i386/bsd_trampoline.S: likewise
10823 * loader/i386/bsd.c (ALIGN_QWORD): new macro
10824 (ALIGN_VAR): likewise
10825 (entry_hi): new variable
10826 (kern_end_mdofs): likewise
10827 (is_64bit): likewise
10828 (grub_freebsd_add_meta): use ALIGN_VAR
10829 (grub_e820_mmap): new declaration
10830 (grub_freebsd_add_mmap): new function
10831 (grub_freebsd_add_meta_module): support 64 bit kernels
10832 (grub_freebsd_list_modules): use ALIGN_VAR
10833 (gdt_descriptor): new declaration
10834 (grub_freebsd_boot): support 64 bit kernels
10835 (grub_bsd_elf64_hook): new function
10836 (grub_bsd_load_elf): support elf64
10837
038c5720 108382009-05-03 Bean <bean123ch@gmail.com>
10839
10840 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
10841 after we get the result of if statement.
10842
fc45fb58 108432009-05-03 Bean <bean123ch@gmail.com>
10844
10845 * Makefile.in (enable_efiemu): New variable.
10846
10847 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
10848 set.
10849 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
10850 path.
10851 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
10852 path, add -mno-red-zone option.
10853 (efiemu64_s.o): Likewise.
10854 (efiemu64.o): Use macro $^ for source file.
10855
10856 * configure.ac (--enable-efiemu): New option.
10857
bbee0f2b 108582009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10859
10860 xnu support
10861
10862 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
10863 (pkglib_MODULES): add xnu.mod
10864 (xnu_mod_SOURCES): new variable
10865 (xnu_mod_CFLAGS): likewise
10866 (xnu_mod_LDFLAGS): likewise
10867 (xnu_mod_ASFLAGS): likewise
10868 * conf/i386-pc.rmk: likewise
10869 * conf/x86_64-efi.rmk: likewise
7dd4a573 10870 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
bbee0f2b 10871 new declaration
10872 * include/grub/i386/macho.h: new file
10873 * include/grub/i386/xnu.h: likewise
10874 * include/grub/macho.h: likewise
10875 * include/grub/machoload.h: likewise
10876 * include/grub/x86_64/macho.h: likewise
10877 * include/grub/x86_64/xnu.h: likewise
10878 * include/grub/xnu.h: likewise
10879 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
10880 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
10881 * loader/i386/efi/xnu.c: new file
10882 * loader/i386/pc/xnu.c: likewise
10883 * loader/i386/xnu.c: likewise
10884 * loader/i386/xnu_helper.S: likewise
10885 * loader/macho.c: likewise
10886 * loader/xnu.c: likewise
10887 * loader/xnu_resume.c: likewise
10888 * util/grub-dumpdevtree: likewise
10889 * include/grub/i386/pit.h: include grub/err.h
10890 (grub_pit_wait): export
10891 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
7dd4a573 10892
5caf964d 108932009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10894
10895 Efiemu
7dd4a573 10896
5caf964d 10897 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
7dd4a573 10898 _linux_efi, linux_efi.
10899 new files in grub-emu
5caf964d 10900 new targets efiemu32.o and efiemu64.o
10901 * loader/linux_normal_efiemu.c: likewise
10902 * loader/i386/efi/linux.c: added preliminary efiemu support
7dd4a573 10903 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
5caf964d 10904 files to copy
10905 * include/grub/autoefi.h: new file
7dd4a573 10906 * include/grub/i386/efiemu.h: likewise
5caf964d 10907 * include/grub/i386/pc/efiemu.h: likewise
10908 * include/grub/efi/api.h: add LL suffix when necessary
10909 new definitions relating to tables
10910 * include/grub/efiemu/efiemu.h: new file
10911 * include/grub/efiemu/runtime.h: likewise
10912 * efiemu/prepare.c: likewise
10913 * efiemu/loadcore_common.c: likewise
10914 * efiemu/loadcore64.c: likewise
10915 * efiemu/runtime/efiemu.sh: likewise
10916 * efiemu/runtime/efiemu.S: likewise
10917 * efiemu/runtime/efiemu.c: likewise
10918 * efiemu/runtime/config.h: likewise
10919 * efiemu/prepare32.c: likewise
10920 * efiemu/main.c: likewise
10921 * efiemu/modules/pnvram.c: likewise
10922 * efiemu/modules/i386: likewise
10923 * efiemu/modules/i386/pc: likewise
10924 * efiemu/modules/acpi.c: likewise
10925 * efiemu/i386/pc/cfgtables.c: likewise
10926 * efiemu/i386/loadcore64.c: likewise
10927 * efiemu/i386/loadcore32.c: likewise
10928 * efiemu/prepare64.c: likewise
10929 * efiemu/loadcore.c: likewise
10930 * efiemu/symbols.c: likewise
10931 * efiemu/mm.c: likewise
10932 * efiemu/loadcore32.c: likewise
7dd4a573 10933
109342009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
f8efe3ad 10935
10936 ACPI spoofing
10937
10938 * commands/acpi.c: new file
10939 * commands/i386/pc/acpi.c: likewise
10940 * commands/efi/acpi.c: likewise
10941 * include/grub/acpi.h: likewise
10942 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
10943 (acpi_mod_SOURCES): new variable
10944 (acpi_mod_CFLAGS): likewise
10945 (acpi_mod_LDFLAGS): likewise
10946 * conf/i386-efi.rmk: likewise
10947 * conf/x86_64-efi.rmk: likewise
10948
7dd4a573 109492009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
28a85665 10950
10951 Missing part from mmap patch
10952
10953 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
10954 (grub_mmap_unregister)
10955 (grub_mmap_free_and_unregister): use grub_mmap_register
10956
7dd4a573 109572009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
09d842b9 10958
10959 Mmap services
10960
10961 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
10962 * loader/i386/linux.c (find_mmap_size): likewise
10963 (allocate_pages): likewise
10964 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
10965 (grub_fill_multiboot_mmap): likewise
10966 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
10967 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
10968 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
10969 (OPENBSD_MMAP_RESERVED): likewise
10970 * include/grub/i386/pc/memory.h: include grub/memory.h
10971 (grub_lower_mem): removed
10972 (grub_upper_mem): likewise
10973 (GRUB_MACHINE_MEMORY_ACPI): new definition
10974 (GRUB_MACHINE_MEMORY_NVS): likewise
10975 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
10976 (GRUB_MACHINE_MEMORY_HOLE): likewise
10977 (grub_machine_mmap_register): likewise
10978 (grub_machine_mmap_unregister): likewise
10979 (grub_machine_get_upper): likewise
10980 (grub_machine_get_lower): likewise
10981 (grub_machine_get_post64): likewise
10982 * include/grub/i386/efi/memory.h: new file
10983 * include/grub/x86_64/efi/memory.h: likewise
10984 * include/grub/efi/memory.h: likewise
10985 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
10986 (mmap_mod_SOURCES): new variable
10987 (mmap_mod_LDFLAGS): likewise
10988 (mmap_mod_ASFLAGS): likewise
10989 * conf/i386-coreboot.rmk: likewise
10990 * conf/i386-ieee1275.rmk: likewise
10991 * conf/i386-efi.rmk: likewise
10992 * conf/x86_64-efi.rmk: likewise
10993 * include/grub/types.h (UINT_TO_PTR): new macro
10994 (PTR_TO_UINT32): likewise
10995 (PTR_TO_UINT64): likewise
10996 * include/grub/memory.h: new file
10997 * mmap/i386/pc/mmap.c: likewise
10998 * mmap/i386/pc/mmap_helper.S: likewise
10999 * mmap/i386/uppermem.c: likewise
11000 * mmap/mmap.c: likewise
11001 * mmap/efi/mmap.c: likewise
7dd4a573 11002 * kern/i386/coreboot/init.c (grub_machine_init): don't use
09d842b9 11003 grub_upper_mem
11004 * kern/i386/pc/init.c (grub_lower_mem): removed variable
11005 (grub_upper_mem): likewise
11006 (grub_machine_init): don't use grub_upper_mem,
11007 make grub_lower_mem local
11008 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
11009 grub_mmap_iterate and grub_mmap_get_upper
11010 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
11011
d558e6b5 110122009-05-02 Bean <bean123ch@gmail.com>
11013
11014 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
11015 script/sh/parser.y.
11016 (pkglib_MODULES): Add normal.mod and sh.mod.
11017 (normal_SOURCES): New variable.
11018 (normal_mod_CFLAGS): Likewise.
11019 (normal_mod_LDFLAGS): Likewise.
11020 (sh_mod_SOURCES): Likewise.
11021 (sh_mod_CFLAGS): Likewise.
11022 (sh_mod_LDFLAGS): Likewise.
11023
11024 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
11025 script/sh/lexer.c_DEPENDENCIES.
11026 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
11027 kern/rescue_reader.c and kern/rescue_parser.c.
11028 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
11029 (grub_emu_SOURCES): Change source files.
11030 (pkglib_MODULES): Remove normal.mod.
11031 (normal_SOURCES): Removed.
11032 (normal_mod_CFLAGS): Likewise.
11033 (normal_mod_LDFLAGS): Likewise.
11034 * conf/i386-coreboot.rmk: Likewise.
11035 * conf/i386-efi.rmk: Likewise.
11036 * conf/i386-ieee1276.rmk: Likewise.
11037 * conf/powerpc-ieee1275.rmk: Likewise.
11038 * conf/sparc64-ieee1275.rmk: Likewise.
11039 * conf/x86_64-efi.rmk: Likewise.
11040
11041 * include/grub/command.h (grub_command_execute): New inline function.
11042
11043 * include/grub/menu.h (grub_menu_entry): Removed commands field.
11044
11045 * include/grub/normal.h: Remove <grub/setjmp.h>.
11046 (grub_fs_module_list): Moved to normal/autofs.c.
11047 (grub_exit_env): Removed.
11048 (grub_command_execute): Likewise.
11049 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
11050 parameter script.
11051 (read_command_list): New function declaration.
11052 (read_fs_list): Likewise.
11053
11054 * include/parser.h: Include <grub/reader.h>.
11055 (grub_parser_split_cmdline): Change type of getline parameter.
11056 (grub_parser): New structure.
11057 (grub_parser_class): New variable.
11058 (grub_parser_execute): New function declaration.
11059 (grub_register_rescue_parser): Likewise.
11060 (grub_parser_register): New inline function.
11061 (grub_parser_unregister): Likewise.
11062 (grub_parser_get_current): Likewise.
11063 (grub_parser_set_current): Likewise.
11064
11065 * include/grub/reader.h: New file.
11066 * kern/reader.c: Likewise.
11067 * kern/rescue_parser.c: Likewise.
11068 * kern/rescue_reader.c: Likewise.
11069 * normal/autofs.c: Likewise.
11070 * normal/dyncmd.c: Likewise.
11071
11072 * include/grub/rescue.h: Removed.
11073 * normal/command.h: Likewise.
11074
11075 * include/grub/script.h: Moved to ...
11076 * include/grub/script_sh.h: ... Moved here.
11077 * normal/execute.c: Moved to ...
11078 * script/sh/execute.c: ... Moved here.
11079 * normal/function.c: Moved to ...
11080 * script/sh/function.c: ... Moved here.
11081 * normal/lexer.c: Moved to ...
11082 * script/sh/lexer.c: ... Moved here.
11083 * normal/parser.y: Moved to ...
11084 * script/sh/parser.y: ... Moved here.
11085 * normal/script.c: Moved to ...
11086 * script/sh/script.c: ... Moved here.
11087
11088 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
11089 <grub/reader.h>.
11090 (grub_exit_env): Removed.
11091 (fs_module_list): Moved to normal/autofs.c.
11092 (grub_file_getline): Don't handle comment here.
11093 (free_menu): Skip removed field entry->commands.
11094 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
11095 script parameter.
11096 (read_config_file): Removed nested parameter, change getline function.
11097 (grub_enter_normal_mode): Removed.
11098 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
11099 (read_command_list): Likewise.
11100 (autoload_fs_module): Moved to normal/autofs.c.
11101 (read_fs_list): Likewise.
11102 (reader_nested): New variable.
11103 (grub_normal_execute): Run parser.sh to switch to sh parser.
11104 (grub_cmd_rescue): Removed.
11105 (cmd_normal): Removed.
11106 (grub_cmd_normal): Unregister itself at the beginning. Don't register
11107 rescue command.
11108 (grub_cmdline_run): New function.
11109 (grub_normal_reader_init): Likewise.
11110 (grub_normal_read_line): Likewise.
11111 (grub_env_write_pager): Likewise.
11112 (cmdline): New variable.
11113 (grub_normal_reader): Likewise.
11114 (GRUB_MOD_INIT): Register normal reader and set as current, register
11115 pager hook, register normal command with grub_register_command_prio,
11116 so that it won't show up in command.lst.
11117 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
11118 grub_fs_autoload_hook.
11119
11120 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
11121 (grub_menu_execute_entry): Replace grub_script_execute with
11122 grub_parser_execute, change parameter to grub_command_execute.
11123
11124 * normal/menu_text.c: Remove <grub/script.h>.
11125
11126 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
11127 and <grub/parser.h>.
11128 (run): Change editor_getline to use new parser interface. Change
11129 parameter to grub_command_execute.
11130
11131 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
11132 <grub/reader.h> and <grub/parser.h>.
11133 (grub_load_normal_mode): Execute normal command.
11134 (grub_main): Call grub_register_core_commands,
11135 grub_register_rescue_parser and grub_register_rescue_reader, use
11136 grub_reader_loop to enter input loop.
11137
7dd4a573 11138 * kern/parser.c (grub_parser_split_cmdline): Change type of
11139 getline parameter.
d558e6b5 11140 (grub_parser_class): New variable.
11141 (grub_parser_execute): New function.
11142
11143 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
11144 * loader/multiboot2.c: Likewise.
11145 * loader/sparc64/ieee1275/linux.c: Likewise.
11146
11147 * util/grub-emu.c (read_command_list): New dummy function.
11148
18db813d 111492009-05-02 Robert Millan <rmh.grub@aybabtu.com>
11150
11151 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
11152 count to 16 for CCISS and IDA.
11153
6c67de15 111542009-05-02 Robert Millan <rmh.grub@aybabtu.com>
11155
11156 * normal/menu_text.c (grub_wait_after_message): Print a newline
11157 after waiting for user input.
11158
11159 * loader/i386/linux.c: Include `<grub/normal.h>'.
11160 (grub_cmd_linux): Improve the error message about `ask' mode, by
11161 waiting for user input so it's not missed (we can do this, since
11162 user requested interaction).
11163
d9dc87b0 111642009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
11165
11166 Added missing lst to grub-mkrescue
11167
11168 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
11169 and ${input_dir}/parttool.lst
11170
ac8a2baa 111712009-04-30 David S. Miller <davem@davemloft.net>
11172
ad22a610 11173 * util/hostdisk.c (device_is_wholedisk): New function.
11174 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
11175 zero only if device_is_wholedisk() returns true.
11176
6966215d 11177 * util/hostdisk.c (convert_system_partition_to_system_disk):
11178 Handle virtual disk devices named /dev/vdiskX as found on sparc
11179 and powerpc.
11180
ac8a2baa 11181 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
11182 lettered partition specifier is found, convert to numbered.
11183
979b4fb4 111842009-04-29 David S. Miller <davem@davemloft.net>
11185
e2bf39b2 11186 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
11187 * include/grub/sparc64/ieee1275/memory.h: Likewise.
11188
3c64e104 11189 * normal/command.c: Add missing newline at end of file.
11190
979b4fb4 11191 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
11192 warnings.
11193 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
11194 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
11195 grub_ofdisk_read): Likewise, and deal similarly with the fact that
11196 ihandles have a 32-bit type but need to be stored in a "void *".
11197
136d9f82 111982009-04-28 Pavel Roskin <proski@gnu.org>
11199
9459c306 11200 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
11201 not disk. Adjust all dependencies.
2e08a26a 11202 (grub_fs_uuid_close): Use grub_device_close(), not
9459c306 11203 grub_disk_close().
11204
136d9f82 11205 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
11206 parent's partition, don't copy it by reference, as it gets freed
11207 on close.
11208
7dd4a573 112092009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
75a807cf 11210
11211 Preboot hooks support
11212
11213 * commands/boot.c (struct grub_preboot_t): new declaration
11214 (preboots_head): new variable
11215 (preboots_tail): likewise
11216 (grub_loader_register_preboot_hook): new function
11217 (grub_loader_unregister_preboot_hook): likewise
11218 (grub_loader_set): launch preboot hooks
11219 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
11220 (grub_loader_register_preboot_hook): new declaration
11221 (grub_loader_unregister_preboot_hook): likewise
11222
5af922b5 112232009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
11224
11225 Warning fix
11226
7dd4a573 11227 * disk/scsi.c (grub_scsi_open): added missing cast when
5af922b5 11228 calling grub_dprintf
11229
a5562c30 112302009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
11231
11232 Bug and warning fixes
11233
7dd4a573 11234 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
a5562c30 11235 declaration
11236 * commands/test.c (test_parse): fixed bug with file tests and corrected
11237 declaration of find_file
11238
4006f85c 112392009-04-26 Pavel Roskin <proski@gnu.org>
11240
11241 * Makefile.in: Don't install empty manual pages if help2man is
11242 missing. Use help2man option for output, not shell redirection.
11243
5c77c3de 112442009-04-26 David S. Miller <davem@davemloft.net>
11245
11246 * util/grub-mkdevicemap.c (make_device_map): Add missing
11247 NESTED_FUNC_ATTR to process_device().
11248
033b10a8 112492009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
11250
11251 Test command
11252
11253 * commands/test.c: rewritten to use bash-like test
11254
e4343593 112552009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
11256
11257 Parttool autoloading and improvements
11258
7dd4a573 11259 * Makefile.in (pkglib_DATA): add parttool.lst
e4343593 11260 (parttool.lst): new target
11261 * genmk.rb: generate parttool-*
11262 (CLEANFILES): add #{parttool}
11263 (PARTTOOLFILES): new variable
11264 * genparttoollist.sh: new file
7dd4a573 11265 * parttool/pcpart.c (grub_pcpart_boot): more feedback
e4343593 11266 (grub_pcpart_type): likewise
11267 * commands/parttool.c (helpmsg): new variable
11268 (grub_cmd_parttool): output help if not enough arguments are supplied
11269 autoload modules
11270 (GRUB_MOD_INIT(parttool)): use helpmsg
11271
0d312500 112722009-04-24 David S. Miller <davem@davemloft.net>
11273
7dd4a573 11274 Avoiding opening same device multiple times in device iterator.
0d312500 11275
11276 * kern/device.c: (grub_device_iterate): Define struct part_ent,
7dd4a573 11277 and use it to build a list of partitions in iterate_disk() and
0d312500 11278 iterate_partition().
11279
ac20caff 11280 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
11281 on disk->data.
11282
0dcf7495 11283 * disk/ieee1275/nand.c (grub_nand_iterate): Return
11284 grub_devalias_iterate() result instead of unconditional 0.
11285 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
11286 Also, capture hook return value, either directly or via
11287 grub_children_iterate(), and propagate to caller.
11288 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
11289 grub_children_iterate): Return value is now 'int' instead of
11290 'grub_err_t'.
11291 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
11292 like a proper iterator, stopping when hooks return non-zero.
11293 (grub_devalias_iterate): Likewise.
11294
c8c08833 112952009-04-23 David S. Miller <davem@davemloft.net>
11296
11297 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
11298
f01005a8 112992009-04-22 David S. Miller <davem@davemloft.net>
11300
11301 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
11302 is larger than address_cells, use that value for address_cells too.
11303
4e8269da 11304 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
11305 IEEE1275_MAX_PATH_LEN): Define.
11306 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
11307 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
11308 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
11309 'devtype'. Explicitly NULL terminate devalias expansion.
11310
a1447506 11311 * util/sparc64/ieee1275/misc.c: New file.
11312 * util/sparc64/ieee1275/grub-setup.c: New file.
11313 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
11314 * util/sparc64/ieee1275/grub-mkimage.c: New file.
11315 * util/sparc64/ieee1275/grub-install.in: New file.
11316 * util/ieee1275/ofpath.c: New file.
11317 * util/ieee1275/devicemap.c: New file.
11318 * util/devicemap.c: New file.
11319 * util/deviceiter.c: New file.
11320 * kern/sparc64/ieee1275/init.c: New file.
11321 * include/grub/util/ofpath.h: New file.
11322 * include/grub/util/deviceiter.h: New file.
11323 * util/grub-mkdevicemap.c: Include deviceiter.h.
11324 Implement using grub_util_emit_devicemap_entry and
11325 grub_util_iterate_devices.
11326 * conf/i386-corebook.rmk: Build util/deviceiter.c and
11327 util/devicemap.c into grub-mkdevicemap
11328 * conf/i386-efi.rmk: Likewise.
11329 * conf/i386-ieee1275.rmk: Likewise.
11330 * conf/i386-pc.rmk: Likewise.
11331 * conf/powerpc-ieee1275.rmk: Likewise.
11332 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
11333 images and installation utilities. Build kernel as image
11334 instead of as elf binary. Use common rules as much as possible.
11335
7dd4a573 113362009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
0aefc632 11337
11338 Correct GPT definition
11339
7dd4a573 11340 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
0aefc632 11341 of "attrib" member
11342
c6c5219f 113432009-04-19 Felix Zielcke <fzielcke@z-51.de>
11344
11345 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
11346
0552ff9f 113472009-04-19 David S. Miller <davem@davemloft.net>
11348
11349 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
11350 (grub_rescue_cmd_linux): Rename to...
11351 (grub_cmd_linux): and fix prototype.
11352 (grub_rescue_cmd_initrd): Rename to...
11353 (grub_cmd_initrd): and fix prototype.
11354 (cmd_linux, cmd_initrd): New.
11355 (GRUB_MOD_INIT(linux)): Use grub_register_command().
11356 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
11357
d1a282fc 113582009-04-17 Pavel Roskin <proski@gnu.org>
11359
07c5039f 11360 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
11361 format.
11362 (grub_ohci_transfer): Likewise.
11363
b012002d 11364 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
11365
1bc09c35 11366 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
11367 return without a value. Fix inconsistent indentation.
11368
e0ff9126 11369 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
11370 match struct grub_fs.
11371
d1a282fc 11372 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
11373 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
11374 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
11375 * commands/lspci.c (grub_lspci_iter): Likewise.
11376
a96df3f2 113772009-04-16 Bean <bean123ch@gmail.com>
11378
11379 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
11380 value.
11381
41bb0fe9 113822009-04-15 Pavel Roskin <proski@gnu.org>
11383
11384 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
11385 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
11386 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
11387 definitions.
11388
596c6970 113892009-04-15 Felix Zielcke <fzielcke@z-51.de>
11390
11391 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
7dd4a573 11392 that no multiple data or metadata areas are supported and `Unknown
596c6970 11393 metadata header'.
11394
7dd4a573 113952009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
0d5d5653 11396
11397 Move loader out of the kernel
11398
11399 * kern/loader.c: moved to ...
11400 * commands/boot.c: ... moved here
11401 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
11402 * commands/boot.c (grub_cmd_boot): moved here. All users updated
11403 * include/grub/kernel.h (grub_machine_fini): export
11404 * include/grub/loader.h (grub_loader_is_loaded): update declaration
11405 (grub_loader_set): likewise
11406 (grub_loader_unset): likewise
11407 (grub_loader_boot): likewise
11408 * conf/common.rmk: new module boot.mod
11409 (pkglib_MODULES): add boot.mod
11410 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
11411 (grub_emu_SOURCES): likewise
11412 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
11413 (grub_emu_SOURCES): likewise
11414 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
11415 (grub_emu_SOURCES): likewise
11416 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
11417 (grub_emu_SOURCES): likewise
11418 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
11419 (grub_emu_SOURCES): likewise
7dd4a573 11420 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
11421 (grub_emu_SOURCES): likewise
0d5d5653 11422 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
7dd4a573 11423 (grub_emu_SOURCES): likewise
0d5d5653 11424
7dd4a573 114252009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
5999d619 11426
11427 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
7dd4a573 11428
5999d619 11429 * kern/misc.c (grub_itoa): Removed function
11430 (grub_ltoa): likewise
11431 (grub_vsprintf): use grub_lltoa
11432
7dd4a573 114332009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
13c00781 11434
11435 Restore grub-emu
11436
11437 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
11438 * conf/i386-coreboot.rmk: likewise
11439 * conf/i386-ieee1275.rmk: likewise
11440 * conf/powerpc-ieee1275.rmk: likewise
7dd4a573 11441
20318222 114422009-04-15 Felix Zielcke <fzielcke@z-51.de>
11443
11444 * INSTALL: Add that `./autogen.sh' needs to be run before
11445 `./configure.'.
11446
d05f0df3 114472009-04-14 Bean <bean123ch@gmail.com>
11448
11449 * Makefile.in (pkglib_DATA): Add handler.lst.
11450 (handler.lst): New rule.
11451
11452 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
11453 * conf/i386-coreboot.rmk: Likewise.
11454 * conf/i386-ieee1275.rmk: Likewise.
11455 * conf/i386-efi.rmk: Likewise.
11456 * conf/x86_64-efi.rmk: Likewise.
11457 * conf/powerpc-ieee1275.rmk: Likewise.
11458 * conf/sparc64-ieee1275.rmk: Likewise.
11459
11460 * genhandlerlist.sh: New file.
11461
11462 * genmk.rb: Add rules to generate handler.lst.
11463
11464 * include/grub/normal.h (grub_file_getline): New function definition.
11465 (read_handler_list): Likewise.
11466 (free_handler_list): Likewise.
11467
11468 * include/grub/term.h (grub_term_register_input): Add name parameter
11469 for auto generation of handler.lst.
11470 (grub_term_register_output): Likewise.
11471
11472 * normal/handler.c: New file.
11473
11474 * normal/main.c (get_line): Renamed to grub_file_getline.
11475 (read_config_file): Use the newly renamed grub_file_getline.
11476 (read_command_list): Likewise.
11477 (read_fs_list): Likewise.
11478 (grub_normal_execute): Call read_handler_list to parse handler.lst.
11479 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
11480
11481 * term/efi/console.c (grub_console_init): Add name parameter for auto
11482 generation of handler.lst.
11483 * term/gfxterm.c: Likewise.
11484 * term/i386/pc/at_keyboard.c: Likewise.
11485 * term/i386/pc/console.c: Likewise.
11486 * term/i386/pc/serial.c: Likewise.
11487 * term/i386/pc/vesafb.c: Likewise.
11488 * term/i386/pc/vga.c: Likewise.
11489 * term/i386/pc/vga_text.c: Likewise.
11490 * term/ieee1275/ofconsole.c: Likewise.
11491 * term/usb_keyboard.c: Likewise.
11492
33c846be 114932009-04-14 Bean <bean123ch@gmail.com>
11494
11495 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
11496 properly with null character.
11497
4484e01e 114982009-04-14 Felix Zielcke <fzielcke@z-51.de>
11499
11500 * configure: Remove.
11501 * config.h.in: Likewise.
f93d668e 11502 * stamp-h.in: Likewise.
4484e01e 11503 * DISTLIST: Likewise.
11504 * conf/common.mk: Likewise.
11505 * conf/i386-coreboot.mk: Likewise.
11506 * conf/i386-efi.mk: Likewise.
11507 * conf/i386-ieee1275.mk: Likewise.
11508 * conf/i386.mk: Likewise.
11509 * conf/i386-pc.mk: Likewise.
11510 * conf/powerpc-ieee1275.mk: Likewise.
11511 * conf/sparc64-ieee1275.mk: Likewise.
11512 * conf/x86_64-efi.mk: Likewise.
11513
11514 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
11515 develop on GRUB.
11516
7dd4a573 115172009-04-14 John Stanley <jpsinthemix@verizon.net>
5c5bf96a 11518 David S. Miller <davem@davemloft.net>
11519
11520 * util/hostdisk.c (make_device_name): Fix buffer length
11521 calculations.
11522
e25b5a8c 115232009-04-14 Felix Zielcke <fzielcke@z-51.de>
11524
11525 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
11526 <sys/param.h> and <sys/sysctl.h>.
11527 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
11528 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
11529 opening the device and reset them afterwards.
11530
1f1f580c 115312009-04-13 Pavel Roskin <proski@gnu.org>
11532
11533 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
11534 Reported by John Stanley <jpsinthemix@verizon.net>
11535
7ebc2d6b 115362009-04-13 Robert Millan <rmh@aybabtu.com>
11537
11538 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
7dd4a573 11539 that name for menuentries when appropriate.
7ebc2d6b 11540
d8ba3667 115412009-04-13 Felix Zielcke <fzielcke@z-51.de>
11542
11543 * util/grub.d/10_freebsd.in: Add a missing `fi'.
11544
cba416eb 115452009-04-13 Robert Millan <rmh@aybabtu.com>
11546
11547 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
11548 to Linux, simply abort telling the user it's no longer supported.
11549
a547a745 115502009-04-13 Felix Zielcke <fzielcke@z-51.de>
11551
11552 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
7dd4a573 11553 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
a547a745 11554 `freebsd_loadenv' only when devices.hints exist.
11555
232a769c 115562009-04-13 Pavel Roskin <proski@gnu.org>
11557
11558 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
11559
c3012039 115602009-04-13 Felix Zielcke <fzielcke@z-51.de>
11561
11562 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
11563 partition number.
11564 (grub_drive): Likewise.
11565
234022fe 115662009-04-13 David S. Miller <davem@davemloft.net>
11567
11568 * kern/sparc64/ieee1275/ieee1275.c: New file.
11569 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
11570 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
11571 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
11572 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
11573 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
11574 grub_ieee1275_alloc_physmem): Declare new exported functions.
11575
d8e1836c 11576 * include/grub/sparc64/ieee1275/loader.h: New file.
11577 * include/grub/sparc64/ieee1275/memory.h: Likewise.
11578 * include/grub/sparc64/kernel.h: Likewise.
11579 * loader/sparc64/ieee1275/linux.c: Likewise.
11580
96bd81ec 11581 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
11582 (grub_fstest_SOURCES): Likewise.
11583
6a4737e5 11584 * util/hostdisk.c (make_device_name): Do not make any assumptions
11585 about the length of drive names.
11586
1d7a72fd 11587 * kern/dl.c (grub_dl_load_file): Close file immediately when
11588 we are done using it.
11589
56bc2471 115902009-04-12 David S. Miller <davem@davemloft.net>
11591
11592 * kern/misc.c (grub_ltoa): Fix cast when handling negative
11593 values. Noticed by Pavel Roskin.
11594
df38d0bb 11595 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
11596 target compiler.
7dd4a573 11597
e382e93a 11598 * genmk.rb: Add more flexible image type specification, also
11599 pass --strip-unneeded to objcopy.
11600 * conf/i386-pc.rmk: Use *_FORMAT.
11601 * conf/i386-pc.mk: Rebuilt.
11602
f5dbbca9 11603 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
11604 (OFDISK_HASH_SZ): Define.
11605 (ofdisk_hash): New hash table.
11606 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
11607 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
11608 instead of device phandle which is not unique.
11609
91c88b12 11610 * kern/sparc64/ieee1275/init.c: Delete, replace with...
11611 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
11612 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
11613 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
11614 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
11615 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
11616 GRUB_KERNEL_MACHINE_DATA_END): Define.
11617 (grub_kernel_image_size, grub_total_module_size): Declare.
11618
5b5d4aa5 116192009-04-12 Pavel Roskin <proski@gnu.org>
11620
7dd4a573 11621 * configure.ac: Change the logic when we check for target tools.
11622 Do it when the target is specified and it's different from the
11623 specified value of the host.
5b5d4aa5 11624
c91e1793 116252009-04-11 Felix Zielcke <fzielcke@z-51.de>
11626
11627 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
11628 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
11629 GNU/kFreeBSD. Check if a device is a character device. Use
11630 DIOCGMEDIASIZE to get the size.
11631 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
11632 support for GNU/kFreeBSD.
11633 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
11634 is a character device instead of a block device. Add support for
11635 FreeBSD device names.
11636
11637 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
11638 is a character device instead of a block device.
11639
11640 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
11641 is a character device instead of a block device.
11642
b1ac8644 116432009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
11644
11645 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
11646 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
11647 FreeBSD. Check if a device is a character device. Use
11648 DIOCGMEDIASIZE to get the size.
11649 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
11650 support for FreeBSD.
11651 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
11652 is a character device instead of a block device. Add support for
11653 FreeBSD device names.
11654
11655 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
11656 a character device instead of a block device.
11657 (grub_util_check_char_device): New function.
11658
11659 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
11660 a character device instead of a block device.
11661
11662 * include/grub/util/getroot.h (grub_util_check_char_device): New
11663 prototype.
11664
a3f7515a 116652009-04-11 David S. Miller <davem@davemloft.net>
11666
11667 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
11668 static libgcc.
11669 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
11670 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
11671 function, if present.
11672 (__bswapdi2): Likewise.
11673
0d44993d 11674 * include/grub/sparc64/ieee1275/boot.h: New file.
11675 * boot/sparc64/ieee1275/boot.S: Likewise.
11676 * boot/sparc64/ieee1275/diskboot.S: Likewise.
11677
ed3d2bc2 11678 * kern/misc.c (grub_ltoa): New function.
11679 (grub_vsprintf): Use it to format 'long' integers.
11680
d3bfb59c 116812009-04-10 David S. Miller <davem@davemloft.net>
11682
11683 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
11684 slots are of type grub_ieee1275_cell_t.
11685 (grub_nand_read): Likewise.
11686 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
11687 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
11688 macros are used to compare values in arg/ret block of the call.
11689 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
11690 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
11691 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
11692 grub_ieee1275_instance_to_path, grub_ieee1275_write,
11693 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
11694 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
11695 grub_ieee1275_close, grub_ieee1275_set_property,
11696 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
11697 grub_ieee1275_cell_t.
11698 * kern/ieee1275/openfw.c (grub_map): Likewise.
11699 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
11700 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
11701
450e2238 11702 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
11703 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
11704 (grub_devalias_iterate): Likewise.
11705
7dd4a573 117062009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
6df8cc76 11707
11708 UFS improvements
11709
11710 * fs/ufs.c (INODE_NBLOCKS): new definition
11711 (struct grub_ufs_dirent): added fields for non-BSD dirents
11712 (grub_ufs_get_file_block): fixed double indirect handling
11713 (grub_ufs_lookup_symlink): use more robust way to determine whether
11714 symlink is inline
11715 (grub_ufs_find_file): support for non-BSD dirents
11716 (grub_ufs_dir): support for non-BSD dirents
11717
e7e6862a 117182009-04-10 Bean <bean123ch@gnail.com>
11719
11720 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
11721 attribute, otherwise the size would be wrong for i386 platform.
11722
11723 * include/grub/pci.h (grub_pci_read_word): New inline function.
11724 (grub_pci_read_byte): Likewise.
11725 (grub_pci_write): Likewise.
11726 (grub_pci_write_word): Likewise.
11727 (grub_pci_write_byte): Likewise.
11728
11729 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
11730
11731 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
11732 (find_framebuf): Scan pci to locate the frame buffer address.
11733
11734 * commands/efi/fixvideo.c: New file.
11735
11736 * commands/efi/loadbios.c: Likewise.
11737
11738 * commands/memrw.c: Likewise.
11739
11740 * util/grub-dumpbios.in: Likewise.
11741
11742 * conf/common.rmk (grub-dumpbios): New utility.
11743 (pkglib_MODULES): New module memrw.mod.
11744 (memrw_mod_SOURCE): New macro.
11745 (memrw_mod_CFLAGS): Likewise.
11746 (memrw_mod_LDFLAGS): Likewise.
11747
7dd4a573 11748 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
e7e6862a 11749 fixvideo.mod.
11750 (loadbios_mod_SOURCE): New macro.
11751 (loadbios_mod_CFLAGS): Likewise.
11752 (loadbios_mod_LDFLAGS): Likewise.
11753 (fixvideo_mod_SOURCE): Likewise.
11754 (fixvideo_mod_CFLAGS): Likewise.
11755 (fixvideo_mod_LDFLAGS): Likewise.
11756
7dd4a573 11757 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
e7e6862a 11758 fixvideo.mod.
11759 (loadbios_mod_SOURCE): New macro.
11760 (loadbios_mod_CFLAGS): Likewise.
11761 (loadbios_mod_LDFLAGS): Likewise.
11762 (fixvideo_mod_SOURCE): Likewise.
11763 (fixvideo_mod_CFLAGS): Likewise.
11764 (fixvideo_mod_LDFLAGS): Likewise.
11765
af63ada2 117662009-04-08 Felix Zielcke <fzielcke@z-51.de>
11767
11768 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
11769
c2cdde70 117702009-04-07 David S. Miller <davem@davemloft.net>
11771
11772 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
11773 support for R_SPARC_OLO10 relocations. Fix compile warning for
11774 R_SPARC_WDISP30 case.
ea3f72cf 11775 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
c2cdde70 11776
761319cf 117772009-04-06 Pavel Roskin <proski@gnu.org>
11778
1007d1f5 11779 * include/grub/misc.h (ARRAY_SIZE): New macro.
11780 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
11781 New macro.
11782 * loader/i386/linux.c (allocate_pages): Use free_pages().
11783 (grub_linux_unload): Don't use free_pages().
11784 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
11785 wrong index. Treat all other modes as text modes.
11786 (grub_cmd_linux): Initialize vid_mode unconditionally to
11787 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
11788
761319cf 11789 * commands/help.c (print_command_help): Use cmd->prio, not
11790 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
11791
ea761d40 117922009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
7dd4a573 11793
ea761d40 11794 Parttool
11795
11796 * parttool/pcpart.c: new file
11797 * commands/parttool.c: likewise
11798 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
11799 (parttool_mod_SOURCES): new variable
11800 (parttool_mod_CFLAGS): likewise
11801 (parttool_mod_LDFLAGS): likewise
11802 (pcpart_mod_SOURCES): likewise
11803 (pcpart_mod_CFLAGS): likewise
11804 (pcpart_mod_LDFLAGS): likewise
7dd4a573 11805 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
ea761d40 11806 and parttool/pcpart.c
11807 * conf/i386-efi.rmk: likewise
11808 * conf/i386-ieee1275.rmk: likewise
11809 * conf/i386-pc.rmk: likewise
11810 * conf/powerpc-ieee1275.rmk: likewise
11811 * conf/sparc64-ieee1275.rmk: likewise
11812 * conf/x86_64-ieee1275.rmk: likewise
11813
05aaebfb 118142009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
11815
11816 Support for mtime and further expandability of dir command
11817
11818 * include/grub/lib/datetime.h: moved to ...
7dd4a573 11819 * include/grub/datetime.h: ... moved here and added
05aaebfb 11820 declaration of grub_unixtime2datetime. All users updated
7dd4a573 11821 * include/grub/fs.h: new syntax for dir and mtime functions in
11822 struct grub_fs
05aaebfb 11823 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
11824 and GRUB_FSHELP_FLAGS_MASK
11825 * commands/ls.c (grub_ls_list_files): Write mtime in long format
11826 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
11827 (grub_ext2_mtime): new function
11828 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
11829 (grub_hfsplus_mtime): new function
11830 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
11831 (GRUB_UFS_ATTR_FILE): likewise
11832 (GRUB_UFS_ATTR_LNK): likewise
11833 (struct grub_ufs_sblock): new fields mtime
11834 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
11835 all users updated
11836 (grub_ufs_dir): mtime support
11837 (grub_ufs_mtime): new function
11838 * fs/affs.c (grub_affs_dir): use new dir syntax
11839 * fs/afs.c (grub_afs_dir): likewise
11840 * fs/cpio.c (grub_cpio_dir): likewise
11841 * fs/fat.c (grub_fat_find_dir): likewise
11842 * fs/hfs.c (grub_hfs_dir): likewise
11843 * fs/iso9660.c (grub_iso9660_dir): likewise
11844 * fs/jfs.c (grub_jfs_dir): likewise
11845 * fs/minix.c (grub_minix_dir): likewise
11846 * fs/ntfs.c (grub_ntfs_dir): likewise
11847 * fs/reiserfs.c (grub_reiserfs_dir): likewise
11848 * fs/sfs.c (grub_sfs_dir): likewise
11849 * fs/xfs.c (grub_xfs_dir): likewise
11850 * util/hostfs.c (grub_hostfs_dir): likewise
11851 * lib/datetime.c: moved to ...
11852 * normal/datetime.c: ... moved here
11853 (grub_unixtime2datetime): new function
11854 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
7dd4a573 11855 * normal/completion.c (iterate_dir): use new dir syntax
11856 * normal/misc.c (grub_normal_print_device_info): tell the
05aaebfb 11857 last modification time of a volume
7dd4a573 11858 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
05aaebfb 11859 * conf/common.rmk: added lib/datetime.c to ls.mod
7dd4a573 11860 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
05aaebfb 11861 (normal_mod_SOURCES): likewise
11862 (datetime_mod_SOURCES): Removed lib/datetime.c
11863 * conf/i386-efi.rmk: likewise
7dd4a573 11864 * conf/i386-ieee1275.rmk: likewise
05aaebfb 11865 * conf/i386-pc.rmk: likewise
11866 * conf/powerpc-ieee1275.rmk: likewise
7dd4a573 11867 * conf/sparc64-ieee1275.rmk: likewise
11868 * conf/x86_64-efi.rmk: likewise
05aaebfb 11869
8a7e1a14 118702009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
11871
11872 Trim trailing spaces in FAT label and support mtools-like labels
7dd4a573 11873
11874 * fs/fat.c (grub_fat_iterate_dir): New function based
8a7e1a14 11875 on grub_fat_find_dir
11876 (grub_fat_find_dir): use grub_fat_iterate_dir
11877 (grub_fat_label): likewise
11878
04186a9c 118792009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
11880
7dd4a573 11881 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
04186a9c 11882 and command.h
11883 remove extraneous kernel_elf_HEADERS
11884
da4c0bb6 118852009-04-04 Bean <bean123ch@gnail.com>
11886
11887 * include/grub/util/misc.h: Add dummy function fsync for mingw.
11888
11889 * util/misc.c: Likewise.
11890
54ad9555 118912009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
11892
11893 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
11894 instead of grub_printf.
11895
7a6bf9f2 118962009-04-03 Robert Millan <rmh@aybabtu.com>
11897
11898 * loader/i386/linux.c (grub_linux_setup_video): Fill
11899 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
11900 values from `mode info' structure instead of hardcoded
11901 values.
11902
3fcc2083 119032009-04-01 Pavel Roskin <proski@gnu.org>
11904
11905 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
11906 unused now.
11907 * genmk.rb: Likewise.
11908 * configure.ac: Likewise.
11909
5ec9740b 119102009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
11911
11912 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
11913 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
11914
5270cec8 119152009-04-01 David S. Miller <davem@davemloft.net>
11916
11917 * normal/sparc64/setjmp.S: Fix setjmp implementation.
7dd4a573 11918 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
5270cec8 11919 (grub_setjmp): Mark with 'returns_twice' attribute.
11920 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
11921 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
11922 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
11923
9c3dd854 119242009-04-01 Robert Millan <rmh@aybabtu.com>
11925
11926 Reapply fix from 2008-07-28 which was accidentally reverted; also
11927 perform the same fix to a similar check in same function.
11928
11929 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
11930 with the same number are found, just use issue a warning with
11931 grub_dprintf(), as this error has been reported to be non-fatal.
11932
0d818b7e 119332009-03-31 Pavel Roskin <proski@gnu.org>
11934
11935 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
11936 for cross-compilation.
11937
95646d92 119382009-03-30 Robert Millan <rmh@aybabtu.com>
11939
11940 Fix i386-ieee1275 build.
11941
11942 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
11943 Remove declaration.
11944
6a003ed1 119452009-03-30 Pavel Roskin <proski@gnu.org>
11946
11947 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
11948 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
11949 zero-terminated, rely only on the strlen value. Fix comparison
11950 of strings differing in length.
11951
92f33540 119522009-03-30 Robert Millan <rmh@aybabtu.com>
11953
11954 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
11955 checking for abi version. Improve error messages on BIOS to notify
11956 user about `linux16' command.
11957
a8c48fd5 119582009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
11959
f968172e 11960 Leak fixes
a8c48fd5 11961
f968172e 11962 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
11963 in case of collision
11964 * disk/scsi.c (grub_scsi_open): free scsi in case of error
a8c48fd5 11965
9c323f09 119662009-03-29 Robert Millan <rmh@aybabtu.com>
11967
11968 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
11969 set `vid_mode' accordingly.
11970 (grub_linux_boot): Process `vid_mode' and set video mode.
11971
ae68f423 119722009-03-29 Robert Millan <rmh@aybabtu.com>
11973
11974 * util/grub.d/10_linux.in (linux_entry): New function.
11975 Factorize generation of Linux boot entries.
11976
5709cfc4 119772009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
11978
11979 Make the format of Environment Block plain text. The boot loader
11980 part is not tested well yet.
7dd4a573 11981
5709cfc4 11982 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
11983 (buffer): Removed.
11984 (envblk): Likewise.
11985 (usage): Remove "info" and "clear". Add "unset". Update the
11986 description of "set", as this does not delete variables any
11987 longer.
11988 (create_envblk_file): Complete rewrite.
11989 (open_envblk_file): Likewise.
11990 (cmd_info): Removed.
11991 (cmd_list): Likewise.
11992 (cmd_set): Likewise.
11993 (cmd_clear): Likewise.
11994 (list_variables): New function.
11995 (write_envblk): Likewise.
11996 (set_variables): Likewise.
11997 (unset_variables): Likewise.
11998 (main): Complete rewrite.
11999
12000 * commands/loadenv.c (buffer): Removed.
12001 (envblk): Likewise.
12002 (open_envblk_file): New function.
12003 (read_envblk_file): Complete rewrite.
12004 (grub_cmd_load_env): Likewise.
12005 (grub_cmd_list_env): Likewise.
12006 (struct blocklist): New struct.
12007 (free_blocklists): New function.
12008 (check_blocklists): Likewise.
12009 (write_blocklists): Likewise.
12010 (grub_cmd_save_env): Complete rewrite.
12011
12012 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
12013 a plain text signature.
12014 (GRUB_ENVBLK_MAXLEN): Removed.
12015 (struct grub_envblk): Complete rewrite.
12016 (grub_envblk_find): Removed.
12017 (grub_envblk_insert): Likewise.
12018 (grub_envblk_open): New prototype.
12019 (grub_envblk_set): Likewise.
12020 (grub_envblk_delete): Put const to VALUE.
12021 (grub_envblk_iterate): Put const to NAME and VALUE.
12022 (grub_envblk_close): New prototype.
12023 (grub_envblk_buffer): New inline function.
12024 (grub_envblk_size): Likewise.
12025
12026 * lib/envblk.c: Include grub/mm.h.
12027 (grub_env_find): Removed.
12028 (grub_envblk_open): New function.
12029 (grub_envblk_close): Likewise.
12030 (escaped_value_len): Likewise.
12031 (find_next_line): Likewise.
12032 (grub_envblk_insert): Removed.
12033 (grub_envblk_set): New function.
12034 (grub_envblk_delete): Complete rewrite.
12035 (grub_envblk_iterate): Likewise.
12036
a9368fd3 120372009-03-28 Robert Millan <rmh@aybabtu.com>
12038
12039 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
12040 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
12041 variables. Use 16-bit loader.
12042 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
12043 loader.
12044 * kern/i386/loader.S (grub_linux_boot): Rename to ...
12045 (grub_linux16_boot): ... this. Update all users.
12046 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
12047 (grub_linux_boot): ... this. Update all users.
12048
12049 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
12050 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
12051 commands to `linux16' and `initrd16'.
12052 (GRUB_MOD_FINI(linux)): Rename to ...
12053 (GRUB_MOD_FINI(linux16)): ... this.
12054
e4dd5a7e 120552009-03-24 Pavel Roskin <proski@gnu.org>
12056
12057 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
12058 not just for compilation.
12059
c04d6e05 120602009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
12061
12062 Move multiboot helper out of kernel
12063
12064 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
12065 `loader/i386/multiboot_helper.S'.
12066 * conf/i386-coreboot.rmk: Likewise
12067 * conf/i386-ieee1275.rmk: Likewise
12068
12069 * kern/i386/loader.S: Move multiboot helpers from here...
12070 * loader/i386/multiboot_helper.S: ...moved here
12071 * include/grub/i386/loader.h: Move declarations of multiboot
12072 helpers from here...
12073 * include/grub/i386/multiboot.h: ...moved here
12074 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
12075
42a5b3fc 120762009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
12077
12078 * kern/env.c (grub_env_context_open): Added an argument to specify
12079 whether a new context inherits exported variables from current
12080 one. This is useful when making a sandbox to interpret a config
12081 file.
12082 All callers updated.
12083
12084 * include/grub/env.h (grub_env_context_open): Updated the prototype.
12085
b28bbc4e 120862009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
12087
12088 * kern/env.c (grub_env_context_close): Fix memory leaks.
12089
f04f02e4 120902009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
12091
12092 * normal/main.c (grub_normal_execute): Added an argument
12093 BATCH to specify if an interactive interface should be provided
12094 after reading a config file.
12095 All callers updated.
12096 (read_command_list): Prevent being executed twice.
12097 (read_fs_list): Likewise.
12098
42a5b3fc 12099 * include/grub/normal.h (grub_normal_execute): Updated the
12100 prototype.
f04f02e4 12101
41473ac2 121022009-03-22 Pavel Roskin <proski@gno.org>
12103
fbc00b0c 12104 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
12105 _start.
12106 * kern/i386/pc/startup.S: Likewise.
12107 * kern/i386/efi/startup.S: Likewise.
12108 * kern/i386/ieee1275/startup.S: Likewise.
12109 * kern/i386/coreboot/startup.S: Likewise.
12110 * kern/x86_64/efi/startup.S: Likewise.
12111
41473ac2 12112 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
12113 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
12114 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
12115
2274cc8f 121162009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
12117
12118 Bugfixes in multiboot for bugs uncovered by solaris kernel.
12119
12120 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
12121 limit detection.
12122 Use vaddr of correct segment for entry_point.
12123
b1b797cb 121242009-03-21 Bean <bean123ch@gmail.com>
12125
12126 * commands/blocklist.c: Add include file <grub/command.h>, remove
12127 <grub/normal.h> and <grub/arg.h>.
12128 (grub_cmd_blocklist): Use the new command interface.
12129 (GRUB_MOD_INIT): Likewise.
12130 (GRUB_MOD_FINI): Likewise.
12131 * commands/boot.c: Likewise.
12132 * commands/cat.c: Likewise.
12133 * commands/cmp.c: Likewise.
12134 * commands/configfile.c: Likewise.
12135 * commands/crc.c: Likewise.
12136 * commands/echo.c: Likewise.
12137 * commands/halt.c: Likewise.
12138 * commands/handler.c: Likewise.
12139 * commands/hdparm.c: Likewise.
12140 * commands/help.c: Likewise.
12141 * commands/hexdump.c: Likewise.
12142 * commands/loadenv.c: Likewise.
12143 * commands/ls.c: Likewise.
12144 * commands/lsmmap.c: Likewise.
12145 * commands/lspci.c: Likewise.
12146 * commands/loadenv.c: Likewise.
12147 * commands/read.c: Likewise.
12148 * commands/reboot.c: Likewise.
12149 * commands/search.c: Likewise.
12150 * commands/sleep.c: Likewise.
12151 * commands/test.c: Likewise.
12152 * commands/usbtest.c: Likewise.
12153 * commands/videotest.c: Likewise.
12154 * commands/i386/cpuid.c: Likewise.
12155 * commands/i386/pc/halt.c: Likewise.
12156 * commands/i386/pc/play.c: Likewise.
12157 * commands/i386/pc/pxecmd.c: Likewise.
12158 * commands/i386/pc/vbeinfo.c: Likewise.
12159 * commands/i386/pc/vbetest.c: Likewise.
12160 * commands/ieee1275/suspend.c: Likewise.
12161 * disk/loopback.c: Likewise.
12162 * font/font_cmd.c: Likewise.
12163 * hello/hello.c: Likewise.
12164 * loader/efi/appleloader.c: Likewise.
12165 * loader/efi/chainloader.c: Likewise.
12166 * loader/i386/bsd.c: Likewise.
12167 * loader/i386/efi/linux.c: Likewise.
12168 * loader/i386/ieee1275/linux.c: Likewise.
12169 * loader/i386/linux.c: Likewise.
12170 * loader/i386/pc/chainloader.c: Likewise.
12171 * loader/i386/pc/linux.c: Likewise.
12172 * loader/powerpc/ieee1275/linux.c: Likewise.
12173 * loader/multiboot_loader.c: Likewise.
12174 * term/gfxterm.c: Likewise.
12175 * term/i386/pc/serial.c: Likewise.
12176 * term/terminfo.c: Likewise.
12177
12178 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
12179 * term/i386/pc/vga.c: Likewise.
12180 * video/readers/jpeg.c: Likewise.
12181 * video/readers/png.c: Likewise.
12182 * video/readers/tga.c: Likewise.
12183
12184 * util/grub-fstest (cmd_loopback): Removed.
12185 (cmd_blocklist): Likewise.
12186 (cmd_ls): Likewise.
12187 (grub_register_command): Likewise.
12188 (grub_unregister_command): Likewise.
12189 (execute_command): Use grub_command_find to locate command and execute
12190 it.
12191
12192 * include/grub/efi/chainloader.h: Removed.
12193 * loader/efi/chainloader_normal.c: Likewise.
12194 * loader/i386/bsd_normal.c: Likewise.
12195 * loader/i386/pc/chainloader_normal.c: Likewise.
12196 * loader/i386/pc/multiboot_normal.c: Likewise.
12197 * loader/linux_normal.c: Likewise.
12198 * loader/multiboot_loader_normal.c: Likewise.
12199 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
12200
12201 * gencmdlist.sh: Scan new registration command grub_register_extcmd
12202 and grub_register_command_p1.
12203
12204 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
12205 kern/command.c, lib/arg.c and commands/extcmd.c.
12206 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
12207 (minicmd_mod_SOURCES): New variable.
12208 (minicmd_mod_CFLAGS): Likewise.
12209 (minicmd_mod_LDFLAGS): Likewise.
12210 (extcmd_mod_SOURCES): Likewise.
12211 (extcmd_mod_CFLAGS): Likewise.
12212 (extcmd_mod_LDFLAGS): Likewise.
12213 (boot_mod_SOURCES): Removed.
12214 (boot_mod_CFLAGS): Likewise.
12215 (boot_mod_LDFLAGS): Likewise.
12216
12217 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
12218 kern/corecmd.c.
12219 (kernel_img_HEADERS): Add command.h.
12220 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
12221 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
12222 and lib/arg.c.
12223 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
12224 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
12225 remove the corresponding normal mode command.
12226 (normal_mod_SOURCES): Remove normal/arg.c.
12227 * conf/i386-coreboot.rmk: Likewise.
12228 * conf/i386-efi.rmk: Likewise.
12229 * conf/i386-ieee1275.rmk: Likewise.
12230 * conf/powerpc-ieee1275.rmk: Likewise.
12231 * conf/x86_64-efi.rmk: Likewise.
12232
12233 * include/grub/arg.h: Move from here ...
12234 * include/grub/lib/arg.h: ... to here.
12235
12236 * normal/arg.c: Move from here ...
12237 * lib/arg.c: ... to here.
12238
12239 * commands/extcmd.c: New file.
12240 * commands/minicmd.c: Likewise.
12241 * include/grub/command.h: Likewise.
12242 * include/grub/extcmd.h: Likewise.
12243 * kern/command.c: Likewise.
12244 * kern/corecmd.c: Likewise.
12245
12246 * kern/list.c (grub_list_iterate): Return int instead of void.
12247 (grub_list_insert): New function.
12248 (grub_prio_list_insert): Likewise.
12249
12250 * kern/rescue.c (grub_rescue_command): Removed.
12251 (grub_rescue_command_list): Likewise.
12252 (grub_rescue_register_command): Likewise.
12253 (grub_rescue_unregister_command): Likewise.
12254 (grub_rescue_cmd_boot): Move to minicmd.c
12255 (grub_rescue_cmd_help): Likewise.
12256 (grub_rescue_cmd_info): Likewise.
12257 (grub_rescue_cmd_boot): Likewise.
12258 (grub_rescue_cmd_testload): Likewise.
12259 (grub_rescue_cmd_dump): Likewise.
12260 (grub_rescue_cmd_rmmod): Likewise.
12261 (grub_rescue_cmd_lsmod): Likewise.
12262 (grub_rescue_cmd_exit): Likewise.
12263 (grub_rescue_print_devices): Moved to corecmd.c.
12264 (grub_rescue_print_files): Likewise.
12265 (grub_rescue_cmd_ls): Likewise.
12266 (grub_rescue_cmd_insmod): Likewise.
12267 (grub_rescue_cmd_set): Likewise.
12268 (grub_rescue_cmd_unset): Likewise.
7d074e3c 12269 (attempt_normal_mode): Use grub_command_find to get normal module.
b1b797cb 12270 (grub_enter_rescue_mode): Use grub_register_core_commands to register
7d074e3c 12271 commands, remove grub_rescue_register_command calls.
b1b797cb 12272
7d074e3c 12273 * normal/command.c (grub_register_command): Removed.
b1b797cb 12274 (grub_unregister_command): Likewise.
12275 (grub_command_find): Likewise.
12276 (grub_iterate_commands): Likewise.
12277 (rescue_command): Likewise.
12278 (export_command): Moved to corecmd.c.
12279 (set_command): Removed.
12280 (unset_command): Likewise.
12281 (insmod_command): Likewise.
12282 (rmmod_command): Likewise.
12283 (lsmod_command): Likewise.
12284 (grub_command_init): Likewise.
12285
12286 * normal/completion.c (iterate_command): Use cmd->prio to check for
12287 active command.
12288 (complete_arguments): Use grub_extcmd_t structure to find options.
12289 (grub_normal_do_completion): Change function grub_iterate_commands to
12290 grub_command_iterate.
12291
12292 * normal/execute.c (grub_script_execute_cmd): No need to parse
12293 argument here.
12294
12295 * normal/main.c (grub_dyncmd_dispatcher): New function.
12296 (read_command_list): Register unload commands as dyncmd.
12297 (grub_cmd_normal): Use new command interface, register rescue,
12298 unregister normal at entry, register normal, unregister rescue at exit.
12299
12300 * include/grub/list.h (grub_list_test_t): New type.
12301 (grub_list_iterate): Return int instead of void.
12302 (grub_list_insert): New function.
12303 (GRUB_AS_NAMED_LIST_P): New macro.
12304 (GRUB_AS_PRIO_LIST): Likewise.
12305 (GRUB_AS_PRIO_LIST_P): Likewise.
12306 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
12307 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
12308 (grub_prio_list): New structure.
12309 (grub_prio_list_insert): New function.
12310 (grub_prio_list_remove): New inline function.
12311
12312 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
12313 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
12314 (GRUB_COMMAND_FLAG_MENU): Likewise.
12315 (GRUB_COMMAND_FLAG_BOTH): Likewise.
12316 (GRUB_COMMAND_FLAG_TITLE): Likewise.
12317 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
12318 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
12319 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
12320 (grub_command): Likewise.
12321 (grub_register_command): Likewise.
12322 (grub_command_find): Likewise.
12323 (grub_iterate_commands): Likewise.
12324 (grub_command_init): Likewise.
12325 (grub_arg_parse): Likewise.
12326 (grub_arg_show_help): Likewise.
12327
12328 * include/grub/rescue.h (grub_rescue_register_command): Removed.
12329 (grub_rescue_unregister_command): Likewise.
12330
12331 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
12332 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
12333 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
12334
12335 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
12336 grub_rescue_cmd_initrd.
12337 * include/grub/i386/loader.h: Likewise.
12338 * include/grub/x86_64/loader.h: Likewise.
12339
12340 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
12341
1f4147aa 123422009-03-21 Bean <bean123ch@gmail.com>
12343
12344 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
12345 instead of stat in mingw environment.
12346
12347 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
12348
12349 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
12350
12351 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
12352 AC_CONFIG_LINKS.
12353
2156d5ba 123542009-03-21 Bean <bean123ch@gmail.com>
12355
12356 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
12357 out of range error.
12358
177b82ca 123592009-03-18 Michel Dänzer <michel@daenzer.net>
12360
12361 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
12362 checking inode flags for EXT4_EXTENTS_FLAG.
12363
14aad807 123642009-03-18 Robert Millan <rmh@aybabtu.com>
12365
12366 * loader/i386/linux.c: Include `<grub/video.h>' and
12367 `<grub/i386/pc/vbe.h>'..
12368 (grub_linux_setup_video): New function. Loosely based on the EFI one.
12369 (grub_linux32_boot): Attempt to configure video settings with
12370 grub_linux_setup_video().
12371 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
12372 to avoid grub_console_fini() which would step out of graphical mode
12373 unconditionally.
12374
8cf83a27 123752009-03-14 Robert Millan <rmh@aybabtu.com>
12376
12377 Fix build on powerpc.
12378 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
12379
40164e75 123802009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
12381
12382 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
12383 background image command.
12384
c58bc32a 123852009-03-12 Colin D Bennett <colin@gibibit.com>
12386
12387 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
12388 (grub_gfxterm_putchar): Extract pairs of identical calls to
12389 draw_cursor out of conditional blocks.
12390
5415144a 123912009-03-11 Pavel Roskin <proski@gnu.org>
12392
12393 * fs/hfs.c (grub_hfs_strncasecmp): New function.
12394 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
12395
6394042e 123962009-03-11 Robert Millan <rmh@aybabtu.com>
12397
12398 * loader/i386/multiboot_elfxx.c
12399 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
12400
b7b50e5f 124012009-03-11 Felix Zielcke <fzielcke@z-51.de>
12402
12403 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
12404 `kern/handler.c'.
12405
1ca7fc96 124062009-03-11 Robert Millan <rmh@aybabtu.com>
12407
12408 * loader/i386/multiboot.c (code_size): New variable.
12409 (grub_multiboot): Define offsets by adding to `code_size' rather
7d074e3c 12410 than subtracting from `grub_multiboot_payload_size'. Provide
1ca7fc96 12411 4-byte alignment to MBI and others by increasing
7d074e3c 12412 `boot_loader_name_length' appropriately.
1ca7fc96 12413
12414 * loader/i386/multiboot_elfxx.c
12415 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
12416
a83ea1d2 124172009-03-09 Felix Zielcke <fzielcke@z-51.de>
12418
12419 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
12420 `fs/ext2.c'.
12421
aa9f3bff 124222009-03-08 Robert Millan <rmh@aybabtu.com>
12423
12424 Make loader/i386/linux.c usable on i386-pc again.
12425
12426 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
12427 memory to heap.
12428 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
12429 `#error' stanza.
12430
d8b3b60e 124312009-03-07 Bean <bean123ch@gmail.com>
12432
12433 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
12434 allocation.
12435
b362c9e9 124362009-03-06 Robert Millan <rmh@aybabtu.com>
12437
12438 Fix display issue on terminals with screen size other than 80x25
12439 (e.g. gfxterm with resolution higher than 640x480).
12440
12441 * normal/main.c (grub_normal_init_page): Display title text in a
7d074e3c 12442 position relative to the center of the terminal instead of relying
b362c9e9 12443 on a hardcoded offset.
12444
9304eef1 124452009-03-04 Robert Millan <rmh@aybabtu.com>
12446
12447 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
12448 installed.
12449
12450 * Makefile.in (host_kernel): New variable.
12451 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
12452 scripts instead of just the windows one.
12453 * configure.ac: Initialize and AC_SUBST `host_kernel'.
12454
eabc95fb 124552009-03-04 Felix Zielcke <fzielcke@z-51.de>
2ba60b62 12456
12457 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
12458 `kern/handler.c'.
12459 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
12460 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
12461 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
12462 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
12463 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
12464 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
12465
ceb1223c 124662009-03-04 Felix Zielcke <fzielcke@z-51.de>
12467
12468 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
12469 or if there's no space for the disk label and print the partition number on a
12470 invalid magic.
12471
4910684a 124722009-03-04 Felix Zielcke <fzielcke@z-51.de>
12473
12474 * util/misc.c: Include <time.h>.
12475 (grub_millisleep): New function.
12476
7e9ca17a 124772009-03-04 Bean <bean123ch@gmail.com>
12478
12479 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
12480 another option -mno-red-zone.
12481
12482 * commands/handler.c: Change module description.
12483
12484 * kern/handler.c: Add missing space at the end of description line.
12485
12486 * kern/list.c: Likewise.
12487
f501677c 124882009-03-03 Robert Millan <rmh@aybabtu.com>
12489
12490 Move more components to the relocation area, and fix mbi pointer
12491 handling to use the destination rather than the origin (thanks to
12492 Vladimir Serbinenko for spotting).
12493
12494 * loader/i386/multiboot.c (mbi_dest): New variable.
12495 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
12496 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
12497 relocation area.
12498
9902d047 124992009-03-01 Bean <bean123ch@gmail.com>
12500
50fb7002 12501 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
9902d047 12502 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
12503 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
12504 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
12505
12506 * loader/i386/efi/linux.c (acpi_guid): New variable.
12507 (acpi_guid): Likewise.
12508 (EBDA_SEG_ADDR): New constant.
12509 (LOW_MEM_ADDR): Likewise.
12510 (FAKE_EBDA_SEG): Likewise.
12511 (fake_bios_data): New function.
12512 (grub_linux_boot): Call fake_bios_data.
12513
71b9f361 125142009-03-01 Bean <bean123ch@gmail.com>
12515
12516 * commands/terminal.c: Removed.
12517
12518 * commands/handler.c: New file.
12519
12520 * include/grub/list.h: Likewise.
12521
12522 * include/grub/handler.h: Likewise.
12523
12524 * kern/list.c: Likewise.
12525
12526 * kern/handler.c: Likewise.
12527
12528 * kern/term.h: Include header file <grub/handler.h>.
12529 (grub_term_input): Move next field to the beginning.
12530 (grub_term_output): Likewise.
12531 (grub_term_input_class): New variable.
12532 (grub_term_output_class): Likewise.
12533 (grub_term_register_input): Changed to inline function.
12534 (grub_term_register_output): Likewise.
12535 (grub_term_unregister_input): Likewise.
12536 (grub_term_unregister_output): Likewise.
12537 (grub_term_set_current_input): Likewise.
12538 (grub_term_set_current_output): Likewise.
12539 (grub_term_get_current_input): Likewise.
12540 (grub_term_get_current_output): Likewise.
12541 (grub_term_iterate_input): Removed.
12542 (grub_term_iterate_output): Likewise.
12543
12544 * kern/term.c (grub_term_list_input): Removed.
12545 (grub_term_list_output): Likewise.
12546 (grub_term_input_class): New variable.
12547 (grub_term_output_class): Likewise.
50fb7002 12548 (grub_cur_term_input): Change variable as macro.
71b9f361 12549 (grub_cur_term_output): Likewise.
12550 (grub_term_register_input): Removed.
12551 (grub_term_register_output): Likewise.
12552 (grub_term_unregister_input): Likewise.
12553 (grub_term_unregister_output): Likewise.
12554 (grub_term_set_current_input): Likewise.
12555 (grub_term_set_current_output): Likewise.
12556 (grub_term_iterate_input): Likewise.
12557 (grub_term_iterate_output): Likewise.
12558 (grub_term_get_current_input): Likewise.
12559 (grub_term_get_current_output): Likewise.
12560
12561 * util/grub-editenv.c: Include header file <grub/handler.h>.
12562 (grub_term_get_current_input): Removed.
12563 (grub_term_get_current_output): Likewise.
12564 (grub_term_input_class): New variable.
50fb7002 12565 (grub_term_output_class): Likewise.
71b9f361 12566
12567 * util/grub-fstest.c (grub_term_get_current_input): Removed.
12568 (grub_term_get_current_output): Likewise.
12569 (grub_term_input_class): New variable.
50fb7002 12570 (grub_term_output_class): Likewise.
71b9f361 12571
12572 * util/grub-probe.c (grub_term_get_current_input): Removed.
12573 (grub_term_get_current_output): Likewise.
12574 (grub_term_input_class): New variable.
50fb7002 12575 (grub_term_output_class): Likewise.
71b9f361 12576
12577 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
12578 (grub_term_get_current_output): Likewise.
12579 (grub_term_input_class): New variable.
50fb7002 12580 (grub_term_output_class): Likewise.
71b9f361 12581
12582 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
12583 (terminal_mod_SOURCES): Likewise.
12584 (terminal_mod_CFLAGS): Likewise.
12585 (terminal_mod_LDFLAGS): Likewise.
12586
12587 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
12588 handler.c.
12589 (kernel_img_SOURCES): Add list.c and handler.c.
12590 (kernel_img_HEADERS): Add list.h and handler.h.
12591
12592 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
12593 handler.c.
12594 (kernel_mod_SOURCES): Add list.c and handler.c.
12595 (kernel_mod_HEADERS): Add list.h and handler.h.
12596
12597 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
12598 handler.c.
12599 (kernel_elf_SOURCES): Add list.c and handler.c.
12600 (kernel_elf_HEADERS): Add list.h and handler.h.
12601
12602 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
12603 handler.c.
12604 (kernel_elf_SOURCES): Add list.c and handler.c.
12605 (kernel_elf_HEADERS): Add list.h and handler.h.
12606
12607 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
12608 handler.c.
12609 (kernel_mod_SOURCES): Add list.c and handler.c.
12610 (kernel_mod_HEADERS): Add list.h and handler.h.
12611
12612 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
12613 handler.c.
12614 (kernel_elf_SOURCES): Add list.c and handler.c.
12615 (kernel_elf_HEADERS): Add list.h and handler.h.
12616
8a31787f 126172009-02-27 Robert Millan <rmh@aybabtu.com>
12618
12619 Factorize elf32 / elf64 code in Multiboot loader. This will
12620 prevent it from getting out of sync again.
12621
12622 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
12623 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
12624 grub_multiboot_load_elf64): Move from here ...
12625 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
12626 grub_multiboot_load_elf): ... to here (new file).
12627
51cd3dfc 126282009-02-27 Robert Millan <rmh@aybabtu.com>
12629
12630 * util/grub.d/10_linux.in: Rename "single-user mode" to
12631 "recovery mode".
12632
6e8c9c3a 126332009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12634
12635 Don't leak in SCSI code.
12636 * disk/scsi.c (grub_scsi_close): free `scsi'.
12637
4b6bf4f9 126382009-02-27 Robert Millan <rmh@aybabtu.com>
12639
12640 * loader/i386/pc/multiboot.c: Move from here ...
12641 * loader/i386/multiboot.c: ... to here. Update all users.
12642
b9413424 126432009-02-27 Robert Millan <rmh@aybabtu.com>
12644
12645 Patch from Alexandre Bique <bique.alexandre@gmail.com>
12646 * util/i386/pc/grub-setup.c (setup): Fix directory path.
12647
50fb7002 126482009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
34519c3f 12649
12650 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
12651 b-tree.
12652
8cc50345 126532009-02-27 Robert Millan <rmh@aybabtu.com>
12654
12655 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
12656 `0x' qualifier as 0 when base is specified as parameter).
12657
6e09b8b7 126582009-02-24 Bean <bean123ch@gmail.com>
12659
12660 * configure.ac: Check for -mcmodel=large in x86_64 target.
12661
12662 * include/grub/efi/api.h (efi_call_10): New macro.
12663 (efi_wrap_10): New function.
12664
12665 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
12666 (GRUB_PE32_REL_BASED_HIGH): Likewise.
12667 (GRUB_PE32_REL_BASED_LOW): Likewise.
12668 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
12669 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
12670 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
12671 (GRUB_PE32_REL_BASED_SECTION): Likewise.
12672 (GRUB_PE32_REL_BASED_REL): Likewise.
12673 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
12674 (GRUB_PE32_REL_BASED_DIR64): Likewise.
12675 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
12676
12677 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
12678 issue.
12679
12680 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
12681 (efi_wrap_10): New function.
12682
12683 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
12684
12685 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
12686 MB/MBP model (NV chipset).
12687 (devdata_devs): Add devpath_5 to the list.
12688
12689 * load/i386/efi/linux.c (video_base): Remove variable.
12690 (RGB_MASK): New macro.
12691 (RGB_MAGIC): Likewise.
12692 (LINE_MIN): Likewise.
12693 (LINE_MAX): Likewise.
12694 (FBTEST_STEP): Likewise.
12695 (FBTEST_COUNT): Likewise.
12696 (fb_list): New variable.
12697 (grub_find_video_card): Remove function.
12698 (find_framebuf): New function.
12699 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
12700 line length.
12701
12702 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
12703 problem for x86_64.
12704
74b21bee 127052009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
12706
12707 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
12708
12709 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
12710 coding tool name.
12711
a455f472 127122009-02-22 Robert Millan <rmh@aybabtu.com>
12713
12714 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
12715 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
12716 in our relocation, instead of using it directly from heap. Also
12717 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
12718
6374daf3 127192009-02-21 Robert Millan <rmh@aybabtu.com>
12720
12721 Implement USB keyboard support (based on patch by Marco Gerards)
12722
12723 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
12724 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
12725 (usb_keyboard_mod_LDFLAGS): New variables.
12726
12727 * term/usb_keyboard.c: New file.
12728
8fa4ea70 127292009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
12730
12731 Corrected wrong declaration
12732
12733 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
12734
353976ac 127352009-02-14 Christian Franke <franke@computer.org>
12736
12737 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
12738 (grub_lspci_iter): Print class code and programming interface byte.
12739
6aa1169b 127402009-02-14 Christian Franke <franke@computer.org>
12741
12742 * gendistlist.sh: Ignore `.svn' directories.
12743
265372ca 127442009-02-14 Felix Zielcke <fzielcke@z-51.de>
12745
12746 * fs/fat.c: Add 2009 to Copyright line.
12747
9ff516f3 127482009-02-14 Christian Franke <franke@computer.org>
12749
12750 * commands/hdparm.c: New file. Provides `hdparm' command
12751 which sends ATA commands via grub_disk_ata_pass_through ().
12752
12753 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
12754
12755 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
12756 and <grub/cpu/io.h> to include/grub/ata.h.
12757 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
12758 (GRUB_CDROM_SECTOR_SIZE): Remove.
12759 (GRUB_ATA_*): Move to include/grub/ata.h.
12760 (GRUB_ATAPI_*): Likewise.
12761 (enum grub_ata_commands): Likewise.
12762 (enum grub_ata_timeout_milliseconds): Likewise.
12763 (struct grub_ata_device): Likewise.
12764 (grub_ata_regset): Likewise.
12765 (grub_ata_regget): Likewise.
12766 (grub_ata_regset2): Likewise.
12767 (grub_ata_regget2): Likewise.
12768 (grub_ata_check_ready): Likewise.
12769 (grub_ata_wait_not_busy): Remove static, exported in
12770 include/grub/ata.h.
12771 (grub_ata_wait_drq): Likewise.
12772 (grub_ata_pio_read): Likewise.
12773
12774 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
12775 function for hdparm.mod.
12776
12777 * include/grub/ata.h: New file, contains declarations from
12778 disk/ata.c.
12779 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
12780
12781 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
12782 (grub_disk_ata_pass_through): New exported variable.
12783
12784 * kern/disk.c (grub_disk_ata_pass_through): New variable.
12785
772e23da 127862009-02-13 Colin D Bennett <colin@gibibit.com>
12787
12788 Support multiple fallback entries, and provide an API to support
12789 executing default+fallback menu entries. Renamed the `terminal' menu
12790 viewer to `text'.
12791
12792 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
12793 variable declaration.
12794 (grub_menu_execute_callback): New structure declaration.
12795 (grub_menu_execute_callback_t): New typedef.
12796 (grub_menu_execute_with_fallback): New function declaration.
12797 (grub_menu_get_entry): Likewise.
12798 (grub_menu_get_timeout): Likewise.
12799 (grub_menu_set_timeout): Likewise.
12800
12801 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
12802
12803 * normal/menu.c (grub_wait_after_message): Moved to
12804 `normal/menu_text.c'.
12805 (draw_border): Likewise.
12806 (print_message): Likewise.
12807 (print_entry): Likewise.
12808 (print_entries): Likewise.
12809 (grub_menu_init_page): Likewise.
12810 (get_entry_number): Likewise.
12811 (print_timeout): Likewise.
12812 (run_menu): Likewise.
12813 (grub_menu_execute_entry): Likewise.
12814 (show_text_menu): Likewise.
12815 (get_and_remove_first_entry_number): New function.
12816 (grub_menu_execute_with_fallback): Likewise.
12817 (get_entry): Renamed to ...
12818 (grub_menu_get_entry): .. this and made it global.
12819 (get_timeout): Renamed to ...
12820 (grub_menu_get_timeout): ... this and made it global.
12821 (set_timeout): Renamed to ...
12822 (grub_menu_set_timeout): ... this and made it global.
12823 (grub_normal_terminal_menu_viewer): Renamed to ...
12824 (grub_normal_text_menu_viewer): ... this.
12825
12826 * normal/menu_text.c: New file. Extracted text-menu-specific code
12827 from normal/menu.c.
12828
12829 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
12830 (normal_mod_SOURCES): Likewise.
12831
12832 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
12833 (normal_mod_SOURCES): Likewise.
12834
12835 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
12836 (normal_mod_SOURCES): Likewise.
12837
12838 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
12839 (normal_mod_SOURCES): Likewise.
12840
12841 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
12842 (normal_mod_SOURCES): Likewise.
12843
12844 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
12845 (normal_mod_SOURCES): Likewise.
12846
12847 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
12848 (normal_mod_SOURCES): Likewise.
12849
16ac430e 128502009-02-11 Robert Millan <rmh@aybabtu.com>
12851
12852 * util/grub.d/00_header.in: Update old reference to `font' command.
12853
06ff20fc 128542009-02-10 Felix Zielcke <fzielcke@z-51.de>
12855
12856 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
12857
12858 Based on patch from Javier Martín.
12859
96da9407 128602009-02-09 Felix Zielcke <fzielcke@z-51.de>
12861
12862 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
50fb7002 12863 to avoid false positives with FAT.
96da9407 12864 (grub_fstest_SOURCES): Likewise.
12865 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
12866 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
12867 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
12868 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
12869 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
12870 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
12871
6dca6fe4 128722009-02-09 Felix Zielcke <fzielcke@z-51.de>
12873
06ff20fc 12874 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
6dca6fe4 12875 bpb.version_specific.fat12_or_fat16.fstype and
12876 bpb.version_specific.fat32.fstype.
12877
2550c62f 128782009-02-08 Robert Millan <rmh@aybabtu.com>
12879
be110b30 12880 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
2550c62f 12881
56978920 128822009-02-08 Robert Millan <rmh@aybabtu.com>
12883
12884 * Makefile.in (host_os, host_cpu): New variables.
12885 (target_os): Remove. Update all users.
12886
d64399b5 128872009-02-08 Marco Gerards <marco@gnu.org>
12888
12889 * Makefile.in (enable_grub_emu_usb): New variable.
12890 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
12891 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
12892 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
12893 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
12894 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
12895 `usbtest.mod' and `usbms.mod'.
12896 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
12897 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
12898 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
12899 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
12900 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
12901 variables.
12902
12903 * disk/usbms.c: New file.
12904
12905 * include/grub/usb.h: Likewise.
12906
12907 * include/grub/usbtrans.h: Likewise.
12908
12909 * include/grub/usbdesc.h: Likewise.
12910
12911 * bus/usb/usbtrans.c: Likewise.
12912
12913 * bus/usb/ohci.c: Likewise.
12914
12915 * bus/usb/uhci.c: Likewise.
12916
12917 * bus/usb/usbhub.c: Likewise.
12918
12919 * bus/usb/usb.c: Likewise.
12920
12921 * commands/usbtest.c: Likewise.
12922
12923 * util/usb.c: Likewise.
50fb7002 12924
d64399b5 12925 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
12926
12927 * configure.ac: Test for libusb presence.
50fb7002 12928
d64399b5 12929 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
12930
2b40d6bb 129312009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
12932
12933 * kern/mm.c: Add more comments.
12934
73a4ce81 129352009-02-08 Robert Millan <rmh@aybabtu.com>
12936
12937 Patch from Javier Martín.
12938 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
12939 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
12940
f821ce59 129412009-02-08 Robert Millan <rmh@aybabtu.com>
12942
12943 * fs/cpio.c: Split tar functionality to ...
12944 * fs/tar.c: ... here (new file). Update all users.
12945
aebfc4b0 129462009-02-07 Robert Millan <rmh@aybabtu.com>
12947
12948 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
12949 backward-incompatible features.
12950
12951 Based on patch from Javier Martín, with some adjustments.
12952
50fb7002 129532009-02-07 Michael Scherer <misc@mandriva.org>
cea15bca 12954
12955 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
12956
0bb5115e 129572009-02-07 Robert Millan <rmh@aybabtu.com>
12958
12959 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
12960 position of `disk/lvm.c' to ensure grub_init_all() always picks it
12961 after the RAID stuff.
12962
38a0f8e7 129632009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
12964
50fb7002 12965 Fixes problem when running vbetest command as reported by
38a0f8e7 12966 Vladimir Serbinenko <phcoder@gmail.com>.
12967
12968 * (grub_vbe_set_video_mode): Fixed problem with text modes.
12969
3143cc1c 129702009-02-04 Felix Zielcke <fzielcke@z-51.de>
12971
12972 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
12973 /dev/md/NpN style mdraid devices.
12974
9cba6fce 129752009-02-03 Felix Zielcke <fzielcke@z-51.de>
12976
12977 * util/unifont2pff.rb: Remove.
12978
e507a2c1 129792009-02-03 Felix Zielcke <fzielcke@z-51.de>
12980
12981 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
12982 `#'.
12983
d2c2b4cd 129842009-02-03 Felix Zielcke <fzielcke@z-51.de>
12985
12986 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
12987 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
12988 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
12989 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
12990 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
12991 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
12992 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
12993
b4315fb0 129942009-02-02 Christian Franke <franke@computer.org>
12995
12996 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
12997
de3aa260 129982009-02-01 Felix Zielcke <fzielcke@z-51.de>
12999
7c3ff286 13000 * INSTALL: Note that we now require at least autoconf 2.59 and
13001 that LZO is optional.
de3aa260 13002
825a182b 130032009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
13004
13005 Base on patch on bug #24154 created by Tomas Tintera
13006 <trosos@seznam.cz>.
13007
13008 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
13009
a69ef770 130102009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
13011
7c3ff286 13012 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
a69ef770 13013 <bero@arklinux.org>.
13014
13015 * normal/parser.y (script_init): Add missing semicolon.
13016
6fa42fa6 130172009-01-31 Colin D Bennett <colin@gibibit.com>
13018
7c3ff286 13019 * normal/main.c: Add include to grub/menu_viewer.h.
6fa42fa6 13020 (free_menu_entry_classes): Added.
13021 (grub_normal_menu_addentry): Added class property handling.
13022 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
13023 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
13024
13025 * normal/menu_viewer.c: New file.
13026
13027 * normal/menu.c (run_menu_entry): Renamed to ...
13028 (grub_menu_execute_entry): ... this and made it as global.
13029 (grub_menu_run): Renamed to ...
13030 (show_text_menu): ... this and made it local.
13031 (show_text_menu): Adapt to new function names.
13032 (grub_normal_terminal_menu_viewer): New global variable.
13033
13034 * include/grub/menu.h: New file.
13035
13036 * include/grub/menu_viewer.h: New file.
13037
13038 * include/grub/normal.h: Added include to grub/menu.h.
13039 (grub_menu_entry): Moved to include/grub/menu.h.
13040 (grub_menu_entry_t): Likewise.
13041 (grub_menu): Likewise.
13042 (grub_menu_t): Likewise.
13043 (grub_normal_terminal_menu_viewer): Added.
13044 (grub_menu_execute_entry): Likewise.
13045 (grub_menu_run): Removed.
13046
13047 * DISTLIST: Added include/grub/menu.h.
13048 Added include/grub/menu_viewer.h.
13049 Added normal/menu_viewer.c.
13050
130512009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
13052
13053 * normal/execute.c (grub_script_execute_menuentry): Changed to use
13054 arglist for menutitle arguments.
13055
13056 * normal/main.c (grub_normal_menu_addentry): Likewise.
13057
13058 * normal/parser.y (menuentry): Likewise.
13059
13060 * normal/script.c (grub_script_create_cmdmenu): Likewise.
13061
13062 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
13063 (grub_script_create_cmdmenu): Likewise.
13064
13065 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
13066
13067 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
13068 changes.
13069
13070 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
13071
13072 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
13073
13074 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
13075
13076 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
13077
13078 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
13079
13080 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
13081
56192c23 130822009-01-30 Christian Franke <franke@computer.org>
13083
13084 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
13085 in option help text.
13086
d72521b3 130872009-01-27 Pavel Roskin <proski@gnu.org>
13088
13089 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
13090
994b5e84 130912009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
13092
13093 * commands/lsmmap.c: Add include to grub/machine/memory.h.
13094
13095 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
13096
13097 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
13098 unregister function.
13099
6a7eab2c 131002009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
13101
13102 * disk/scsi.c (grub_scsi_read): Fix sign problem.
13103
13104 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
13105
13106 * util/grub-mkfont.c (usage): Fix typo.
13107
13108 * util/elf/grub-mkimage.c (load_modules): Fix warning.
13109
1806b56e 131102009-01-26 Daniel Mierswa <impulze@impulze.org>
13111
3fb18f09 13112 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
13113
336e1fb9 13114 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
13115
1806b56e 13116 * kern/misc.c (grub_strcasecmp): New function.
13117 (grub_strcasecmp): Use grub_size_t instead of int for length.
13118 Fix return value.
13119 * include/grub/misc.h: Update function prototypes.
13120
580b2a0f 131212009-01-26 Robert Millan <rmh@aybabtu.com>
13122
13123 * configure.ac: Fix cross-compilation check.
ef257b36 13124
d31c24f1 131252009-01-22 Christian Franke <franke@computer.org>
13126
13127 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
13128 (precision) digit string. Allow `.format2' without `format1' (width).
13129 Limit input chars for `%s' output to `format2' if specified. This is
13130 compatible with standard printf ().
13131
3138b44c 131322009-01-22 Christian Franke <franke@computer.org>
13133
13134 * disk/ata.c (grub_ata_wait_status): Replace by ...
13135 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
13136 other status bits may be invalid while BSY is asserted.
13137 (grub_ata_check_ready): New function.
13138 (grub_ata_cmd): Removed.
13139 (grub_ata_wait_drq): New function.
13140 (grub_ata_strncpy): Remove inline.
13141 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
13142 and error check now done by grub_ata_wait_drq ().
13143 (grub_ata_pio_write): Likewise.
13144 (grub_atapi_identify): Set DEV before check for !BSY. Use
13145 grub_ata_wait_drq () to wait for data.
13146 (grub_ata_device_initialize): Add status register check to
13147 detect missing SATA slave devices. Add debug messages.
13148 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
13149 (grub_atapi_packet): Set DEV before check for !BSY. Replace
13150 transfer loop by grub_ata_pio_write ().
13151 (grub_ata_identify): Set DEV before check for !BSY. Use
13152 grub_ata_wait_drq () to wait for data.
ef257b36 13153 (grub_ata_setaddress): Set DEV before check for !BSY.
3138b44c 13154 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
13155 read/write in one loop. Fix invalid command on write. Fix incomplete
13156 command on (size % batch) == 0. Add missing error check after write of
13157 last block. Add debug messages.
13158 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
13159
59a64ef6 131602009-01-19 Christian Franke <franke@computer.org>
13161
13162 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
13163 (GRUB_ATAPI_IREASON_*): Likewise.
13164 (grub_ata_pio_write): Fix timeout error return.
13165 (grub_atapi_identify): Add grub_ata_wait () after cmd.
13166 (grub_atapi_wait_drq): New function.
13167 (grub_atapi_packet): New parameter `size'.
13168 Use grub_atapi_wait_drq () and direct write instead of
13169 grub_ata_pio_write ().
13170 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
13171 reads the number of bytes requested by the device for each DRQ
13172 assertion.
13173 (grub_atapi_write): Remove old implementation, return not
13174 implemented instead.
13175
1cfe20b3 131762009-01-19 Christian Franke <franke@computer.org>
13177
13178 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
13179 of 512 to calculate data size.
13180 (grub_scsi_read12): Likewise.
13181 (grub_scsi_write10): Likewise.
13182 (grub_scsi_write12): Likewise.
13183 (grub_scsi_read): Adjust size according to blocksize.
13184 Add checks for invalid blocksize and unaligned transfer.
13185
bee5fe5d 131862009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
13187
13188 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
13189
ef257b36 13190 * term/gfxterm.c (write_char): Fix background rendering for wide
bee5fe5d 13191 width glyphs.
13192
3e643f8c 131932009-01-19 Robert Millan <rmh@aybabtu.com>
13194
13195 * config.guess: Update to latest version from config git.
13196 * config.sub: Likewise.
13197
4fa80998 131982009-01-17 Felix Zielcke <fzielcke@z-51.de>
13199
13200 * Makefile.in: Change font compilation to use new grub-mkfont instead
13201 of java version.
13202
13203 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
13204 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
13205 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
13206 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
13207 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
13208 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
13209 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
13210 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
13211 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
13212
7086085b 132132009-01-16 Christian Franke <franke@computer.org>
13214
13215 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
13216 (enum grub_ata_timeout_milliseconds): New enum.
13217 (grub_ata_wait_status): Add parameter milliseconds.
13218 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
13219 recovery from timed-out commands.
13220 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
13221 return grub_errno instead of REG_ERROR.
13222 (grub_ata_pio_write): Add parameter milliseconds.
13223 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
13224 Pass milliseconds to grub_ata_wait_status () and
13225 grub_ata_pio_read ().
13226 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
13227 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
13228 grub_ata_wait_status (). Fix IDENTIFY timeout check.
13229 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
13230 It is not suitable for device detection, because DEV bit is ignored,
13231 the command may run too long, and not all devices set the signature
13232 properly.
13233 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
13234 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
13235 Fix device selection, DEV bit must be set first to address the registers
13236 of the correct device.
13237 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
13238 grub_ata_pio_read/write ().
13239 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
13240 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
13241
4a412913 132422009-01-13 Carles Pina i Estany <carles@pina.cat>
13243
13244 * util/grub-editenv.c (main): Use fseeko(), not fseek().
13245
7795c55e 132462009-01-13 Bean <bean123ch@gmail.com>
d913988c 13247
13248 * util/grub-mkfont.c (write_font): forget to remove some debug code.
13249
7795c55e 132502009-01-13 Bean <bean123ch@gmail.com>
e52db1f7 13251
13252 * Makefile.in: (enable_grub_mkfont): New variable.
13253 (freetype_cflags): Likewise.
13254 (freetype_libs): Likewise.
13255
13256 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
13257 (grub_mkfont_SOURCES): New variable.
13258 (grub_mkfont_CFLAGS): Likewise.
13259 (grub_mkfont_LDFLAGS): Likewise.
13260
13261 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
13262 library if `--enable-grub-mkfont' is requested.
13263 (enable_grub_mkfont): New variable.
13264 (freetype_cflags): Likewise.
13265 (freetype_libs): Likewise.
13266
13267 * util/grub-mkfont.c: New file.
13268
093af1fe 132692009-01-12 Christian Franke <franke@computer.org>
13270
13271 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
13272 mode check. Fix setting of compat_use[].
13273
f36cc108 132742009-01-10 Robert Millan <rmh@aybabtu.com>
13275
13276 Update a few copyright years which we forgot to do in 2008 (only for
13277 files whose changes made in 2008 were copyright-significant)
13278
13279 * Makefile.in: Add 2008 to Copyright line.
13280 * disk/ieee1275/ofdisk.c: Likewise.
13281 * disk/efi/efidisk.c: Likewise.
13282 * kern/dl.c: Likewise.
13283 * kern/sparc64/ieee1275/init.c: Likewise.
13284 * kern/mm.c: Likewise.
13285 * kern/efi/mm.c: Likewise.
13286 * boot/i386/pc/boot.S: Likewise.
13287 * genfslist.sh: Likewise.
13288 * fs/iso9660.c: Likewise.
13289 * fs/hfs.c: Likewise.
13290 * fs/jfs.c: Likewise.
13291 * fs/minix.c: Likewise.
13292 * fs/ufs.c: Likewise.
13293 * gensymlist.sh.in: Likewise.
13294 * genkernsyms.sh.in: Likewise.
13295 * include/grub/misc.h: Likewise.
13296 * include/grub/types.h: Likewise.
13297 * include/grub/symbol.h: Likewise.
13298 * include/grub/elf.h: Likewise.
13299 * include/grub/kernel.h: Likewise.
13300 * include/grub/disk.h: Likewise.
13301 * include/grub/dl.h: Likewise.
13302 * include/grub/i386/linux.h: Likewise.
13303 * include/grub/i386/pc/biosdisk.h: Likewise.
13304 * include/grub/efi/api.h: Likewise.
13305 * include/grub/efi/pe32.h: Likewise.
13306 * include/grub/util/misc.h: Likewise.
13307 * normal/execute.c: Likewise.
13308 * normal/arg.c: Likewise.
13309 * normal/completion.c: Likewise.
13310 * normal/lexer.c: Likewise.
13311 * normal/parser.y: Likewise.
13312 * normal/misc.c: Likewise.
13313 * commands/i386/pc/vbeinfo.c: Likewise.
13314 * commands/hexdump.c: Likewise.
13315 * commands/terminal.c: Likewise.
13316 * commands/ls.c: Likewise.
13317 * commands/help.c: Likewise.
13318 * partmap/pc.c: Likewise.
13319 * loader/efi/chainloader.c: Likewise.
13320 * loader/multiboot_loader.c: Likewise.
13321 * loader/i386/pc/multiboot2.c: Likewise.
13322 * term/efi/console.c: Likewise.
13323 * term/i386/pc/serial.c: Likewise.
13324 * util/lvm.c: Likewise.
13325 * util/console.c: Likewise.
13326 * util/i386/efi/grub-mkimage.c: Likewise.
13327 * util/raid.c: Likewise.
13328
7f02114b 133292009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
13330
13331 * commands/videotest.c: Removed include to grub/machine/memory.h.
13332
13333 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
13334 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
13335 (video_mod_SOURCES): Removed.
13336 (video_mod_CFLAGS): Likewise.
13337 (video_mod_LDFLAGS): Likewise.
13338 (gfxterm_mod_SOURCES): Likewise.
13339 (gfxterm_mod_CFLAGS): Likewise.
13340 (gfxterm_mod_LDFLAGS): Likewise.
13341 (videotest_mod_SOURCES): Likewise.
13342 (videotest_mod_CFLAGS): Likewise.
13343 (videotest_mod_LDFLAGS): Likewise.
13344 (bitmap_mod_SOURCES): Likewise.
13345 (bitmap_mod_CFLAGS): Likewise.
13346 (bitmap_mod_LDFLAGS): Likewise.
13347 (tga_mod_SOURCES): Likewise.
13348 (tga_mod_CFLAGS): Likewise.
13349 (tga_mod_LDFLAGS): Likewise.
13350 (jpeg_mod_SOURCES): Likewise.
13351 (jpeg_mod_CFLAGS): Likewise.
13352 (jpeg_mod_LDFLAGS): Likewise.
13353 (png_mod_SOURCES): Likewise.
13354 (png_mod_CFLAGS): Likewise.
13355 (png_mod_LDFLAGS): Likewise.
13356
13357 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
13358 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
13359 (video_mod_SOURCES): Added.
13360 (video_mod_CFLAGS): Likewise.
13361 (video_mod_LDFLAGS): Likewise.
13362 (videotest_mod_SOURCES): Likewise.
13363 (videotest_mod_CFLAGS): Likewise.
13364 (videotest_mod_LDFLAGS): Likewise.
13365 (bitmap_mod_SOURCES): Likewise.
13366 (bitmap_mod_CFLAGS): Likewise.
13367 (bitmap_mod_LDFLAGS): Likewise.
13368 (tga_mod_SOURCES): Likewise.
13369 (tga_mod_CFLAGS): Likewise.
13370 (tga_mod_LDFLAGS): Likewise.
13371 (jpeg_mod_SOURCES): Likewise.
13372 (jpeg_mod_CFLAGS): Likewise.
13373 (jpeg_mod_LDFLAGS): Likewise.
13374 (png_mod_SOURCES): Likewise.
13375 (png_mod_CFLAGS): Likewise.
13376 (png_mod_LDFLAGS): Likewise.
13377 (gfxterm_mod_SOURCES): Likewise.
13378 (gfxterm_mod_CFLAGS): Likewise.
7795c55e 13379 (gfxterm_mod_LDFLAGS): Likewise.
7f02114b 13380
13381 * term/gfxterm.c: Removed include to grub/machine/memory.h,
13382 grub/machine/console.h.
13383
644fff97 133842009-01-04 Jerone Young <jerone@gmail.com>
13385
13386 Make on screen instructions clearer
13387
13388 Based on patch created by Jidanni <jidanni@jidanni.org>
13389
13390 * normal/menu.c: print clearer instructions on the screen
13391
1e901a75 133922009-01-02 Colin D Bennett <colin@gibibit.com>
13393
13394 New font engine.
34c44600 13395
1e901a75 13396 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
13397 build system and fixed gfxterm.c to work with different sized fonts.
13398
13399 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
34c44600 13400
1e901a75 13401 * configure: Re-generated.
34c44600 13402
1e901a75 13403 * DISTLIST: Removed font/manager.c.
13404 Added font/font.c.
13405 Added font/font_cmd.c.
34c44600 13406
1e901a75 13407 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
13408 compilation.
34c44600 13409
1e901a75 13410 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
34c44600 13411
13412 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
1e901a75 13413
13414 * kern/term.c: Changed users of grub_utf8_to_ucs4.
34c44600 13415
1e901a75 13416 * normal/menu.c: Likewise.
34c44600 13417
1e901a75 13418 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
13419 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
34c44600 13420
1e901a75 13421 * include/grub/font.h: Replaced with new file.
34c44600 13422
1e901a75 13423 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
13424 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
13425 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
13426 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
13427 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
34c44600 13428 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
1e901a75 13429 fg_red, fg_green, fg_blue, fg_alpha.
13430 (grub_video_adapter): Removed blit_glyph.
34c44600 13431 (grub_video_blit_glyph): Removed.
13432
1e901a75 13433 * font/manager.c: Removed file.
34c44600 13434
13435 * font/font.c: New file.
13436
1e901a75 13437 * font/font_cmd.c: Likewise.
34c44600 13438
1e901a75 13439 * video/video.c (grub_video_blit_glyph): Removed.
34c44600 13440
1e901a75 13441 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
13442 (grub_video_vbe_map_rgba): Likewise.
13443 (grub_video_vbe_unmap_color_int): Likewise.
13444 (grub_video_vbe_blit_glyph): Removed.
13445 (grub_video_vbe_adapter): Removed blit_glyph.
34c44600 13446
1e901a75 13447 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
13448 (get_pixel): Likewise.
34c44600 13449 (set_pixel): Likewise.
13450
1e901a75 13451 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
34c44600 13452
1e901a75 13453 * term/gfxterm.c: Adapted to new font engine.
34c44600 13454
1e901a75 13455 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
34c44600 13456
1e901a75 13457 * term/i386/pc/vga.c: Likewise.
34c44600 13458
1e901a75 13459 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
34c44600 13460
1e901a75 13461 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
34c44600 13462
1e901a75 13463 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
34c44600 13464
1e901a75 13465 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
34c44600 13466
1e901a75 13467 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
34c44600 13468
1e901a75 13469 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
34c44600 13470
1e901a75 13471 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
34c44600 13472
1e901a75 13473 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
34c44600 13474
1e901a75 13475 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
13476
13477 * util/grub.d/00_header.in: Changed to use new loadfont command.
34c44600 13478
1e901a75 13479 * util/grub-mkconfig_lib.in: Changed font extension.
13480
278922e8 134812008-12-28 Felix Zielcke <fzielcke@z-51.de>
13482
13483 * util/getroot.c (grub_util_get_grub_dev): Add support for
13484 /dev/md/dNNpNN style partitionable mdraid devices.
13485
3ced05cf 134862008-12-12 Alex Smith <alex@alex-smith.me.uk>
13487
13488 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
13489 at a time limit of the PXE TFTP API correctly.
13490 (grub_pxefs_close): Likewise.
13491
7fd0ee30 134922008-11-29 Robert Millan <rmh@aybabtu.com>
13493
34c44600 13494 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
7fd0ee30 13495 grub_ata_device_initialize() calls.
13496
34c44600 134972008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
0c5e79ab 13498
13499 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
13500 iteration failed.
13501 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
13502
89313780 135032008-11-28 Robert Millan <rmh@aybabtu.com>
13504
13505 Fix build on powerpc-ieee1275. Based on patch created by
13506 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
13507 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
13508 `kern/ieee1275/mmap.c'.
13509 * include/grub/powerpc/ieee1275/memory.h: New file.
13510
15257703 13511 Provide grub-install on coreboot.
13512 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
13513 (grub_install_SOURCES): New variable.
13514 * util/i386/pc/grub-install.in: Add a few condition checks to make it
13515 usable on coreboot.
13516
9fc5388a 135172008-11-25 Felix Zielcke <fzielcke@z-51.de>
13518
13519 * util/grub-fstest.c (grub_term_get_current_input): Change return type
13520 to `grub_term_input_t'.
13521 (grub_term_get_current_output): Change return type to
13522 `grub_term_output_t'.
13523
bc3a2f31 135242008-11-22 Robert Millan <rmh@aybabtu.com>
13525
34c44600 13526 Fix breakage on coreboot due to declaration mismatch.
bc3a2f31 13527 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
13528 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
13529 grub_vga_text_cls().
13530
80fc88f2 13531 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
34c44600 13532 comments. Avoid copying one more byte than necessary (just in case).
80fc88f2 13533
cbf36fd3 13534 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
13535 to 0x200000 (avoids trouble with some OFW implementations, and matches
13536 with the one in Yaboot).
13537 Reported by Manoel Abranches
13538
73e8e268 135392008-11-20 Robert Millan <rmh@aybabtu.com>
3cf6ac19 13540
13541 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
13542 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
13543
73e8e268 13544 * util/grub-mkconfig_lib.in (grub_warn): New function.
13545 (convert_system_path_to_grub_path): Use grub_warn() when issuing
13546 warnings, to obtain consistent formatting.
13547 * util/grub.d/00_header.in: Likewise.
13548 * util/update-grub_lib.in: Likewise.
13549
e94045a1 13550 * loader/i386/linux.c (allocate_pages): Fix a warning.
40f9faa4 13551 Move comment text to `#error' stanza.
e94045a1 13552
79d29fd7 13553 Harmonize ieee1275's grub_available_iterate() with the generic
13554 grub_machine_mmap_iterate() interface (fixes a recently-introduced
13555 build problem on i386-ieee1275):
13556 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
13557 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
13558 parameter `type'. Update all users of this function.
13559 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
13560 `kern/ieee1275/mmap.c'.
13561 * kern/ieee1275/init.c
13562 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
13563 with ...
13564 (grub_machine_mmap_iterate): ... this.
13565 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
13566 return type to `grub_err_t'. Update all implementations of this
13567 function prototype.
13568 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
13569 Likewise.
13570
60d6b16e 13571 Add `lsmmap' command (lists firmware-provided memory map):
13572 * commands/lsmmap.c: New file.
13573 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
13574 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
13575 variables.
13576 * conf/powerpc-ieee1275.rmk: Likewise.
13577 * conf/i386-coreboot.rmk: Likewise.
13578 * conf/i386-ieee1275.rmk: Likewise.
13579
ebaaf49b 135802008-11-19 Robert Millan <rmh@aybabtu.com>
13581
13582 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
92907110 13583 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
13584 constraints to initrd allocation (based on code from
13585 loader/i386/pc/linux.c). Without them, initrd was allocated too high
13586 for Linux to find it.
ebaaf49b 13587
dfab719f 135882008-11-14 Robert Millan <rmh@aybabtu.com>
13589
13590 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
13591 order to cope with duplicate slashes.
13592
10fc3eb9 135932008-11-14 Robert Millan <rmh@aybabtu.com>
13594
13595 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
13596 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
13597 don't want to mess with lower memory, because it is used in the Linux
13598 loader.
13599
13600 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
34c44600 13601 an appropriate place in lower memory, between 0x10000 and 0x90000,
10fc3eb9 13602 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
13603 is in our heap (probably as a result of it being corrupted during
2f2a3442 13604 decompression). Add #error instance with comment to explain why this
13605 loader isn't currently usable on PC/BIOS.
10fc3eb9 13606
e2e07847 136072008-11-14 Robert Millan <rmh@aybabtu.com>
13608
13609 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
34c44600 13610 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
e2e07847 13611
fe8e8d69 136122008-11-12 Robert Millan <rmh@aybabtu.com>
13613
13614 Make loader/i386/linux.c buildable on i386-pc (although disabled).
13615
13616 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
13617 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
13618 from here ...
13619 * include/grub/i386/pc/memory.h: ... to here.
13620
976b07d0 136212008-11-12 Robert Millan <rmh@aybabtu.com>
13622
13623 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
13624 split).
13625
13626 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
13627 (grub_console_cur_color, grub_console_real_putchar)
13628 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
13629 (grub_console_setcolorstate, grub_console_setcolor)
13630 (grub_console_getcolor): Move from here ...
13631 * include/grub/i386/vga_common.h: ... to here (new file).
13632
13633 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
13634 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
13635 `<grub/i386/io.h>'.
13636 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
13637 `<grub/i386/vga_common.h>'.
13638
76679cd3 136392008-11-12 Robert Millan <rmh@aybabtu.com>
13640
13641 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
13642 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
13643 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
13644 variables.
13645 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
13646 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
13647
13648 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
13649 grub_console_init() with call to grub_vga_text_init().
13650 (grub_machine_fini): Replace call to
13651 grub_console_fini() with call to grub_vga_text_fini() and
13652 grub_at_keyboard_fini().
13653
13654 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
13655 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
13656 (grub_console_setcolorstate, grub_console_setcolor)
13657 (grub_console_getcolor): New function prototypes.
13658
13659 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
13660 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
13661 (grub_vga_text_setcursor): Static-ize.
13662 (grub_vga_text_term): New structure.
13663 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
13664
13665 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
13666 (grub_console_cur_color, grub_console_standard_color)
13667 (grub_console_normal_color, grub_console_highlight_color)
13668 (map_char, grub_console_putchar, grub_console_getcharwidth)
13669 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
13670 (grub_console_getcolor): Move from here ...
13671 * term/i386/vga_common.c: ... to here (same function names).
13672
95b841d3 136732008-11-12 Robert Millan <rmh@aybabtu.com>
13674
13675 Use newly-added Multiboot support in coreboot.
13676
13677 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
13678 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
13679
13680 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
13681 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
13682 (codestart): Store the MBI in `startup_multiboot_info' when we're
13683 being loaded using Multiboot.
13684
13685 * kern/i386/coreboot/init.c (grub_machine_init): Move
13686 grub_at_keyboard_init() call to beginning of function (useful for
13687 debugging). Call grub_machine_mmap_init() before attempting to use
13688 grub_machine_mmap_iterate().
13689 (grub_lower_mem, grub_upper_mem): Move from here ...
13690 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
13691 here (new file).
13692
13693 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
13694 function prototype.
13695
761ca975 136962008-11-12 Robert Millan <rmh@aybabtu.com>
13697
13698 Fix a regression introduced by the at_keyboard.mod split. Because
13699 some terminals are default on some platforms and non-default on
13700 others, the first terminal being registered determines which is
13701 going to be default.
13702
13703 * kern/term.c (grub_term_register_input): If this is the first
13704 terminal being registered, set it as the current one.
13705 (grub_term_register_output): Likewise.
13706
13707 * term/efi/console.c (grub_console_init): Do not call
13708 grub_term_set_current_output() or grub_term_set_current_input().
13709 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
13710 * term/i386/pc/console.c (grub_console_init): Likewise.
13711 (grub_console_fini): Do not call grub_term_set_current_input()
13712 (but leave grub_term_set_current_output() to restore text mode).
13713
6c529df7 137142008-11-10 Robert Millan <rmh@aybabtu.com>
13715
13716 * util/grub.d/00_header.in: Add backward compatibility check for
13717 versions of terminal.mod that don't understand `terminal_input' or
13718 `terminal_output'.
13719
132e4113 137202008-11-09 Robert Millan <rmh@aybabtu.com>
13721
13722 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
13723 `terminal_input' / `terminal_output', not `terminal'.
13724
ac293d50 137252008-11-08 Robert Millan <rmh@aybabtu.com>
13726
13727 * Makefile.in (include_DATA): Fix srcdir=. assumption.
2a9c5940 13728 (DISTCLEANFILES): Add `build_env.mk'.
ac293d50 13729
0025933a 137302008-11-08 Robert Millan <rmh@aybabtu.com>
13731
13732 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
dba3f844 13733 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
0025933a 13734 members. Update all users.
13735 * util/console.c (grub_ncurses_term): Split in ...
13736 (grub_ncurses_term_input): ... this, and ...
13737 (grub_ncurses_term_output): ... this. Update all users.
dcb6fa0a 13738 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
0025933a 13739
37c86336 137402008-11-08 Robert Millan <rmh@aybabtu.com>
13741
13742 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
13743 (PKGDATA): Add $(pkgdata_SRCDIR).
13744 (pkglib_BUILDDIR): New variable.
13745 (pkgdata_SRCDIR): New variable.
13746 (build_env.mk): New target.
13747 (include_DATA): New variable.
13748 (install-local): Install $(include_DATA) files in $(includedir).
13749
b6c15a2d 137502008-11-07 Pavel Roskin <proski@gnu.org>
13751
d99d46f1 13752 * gendistlist.sh: Use C locale for sorting to ensure consistent
13753 output on all systems.
13754
b6c15a2d 13755 * util/grub.d/00_header.in: Remove incorrect space before
13756 "serial".
13757
c32ee8c9 137582008-11-07 Robert Millan <rmh@aybabtu.com>
13759
13760 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
13761 per specification.
13762 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
13763 * loader/multiboot_loader.c (find_multi_boot2_header): New function
13764 (based on find_multi_boot1_header).
13765 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
13766 using find_multi_boot2_header(), and abort if neither Multiboot or
13767 Multiboot headers were found.
13768
651c29b7 137692008-11-07 Robert Millan <rmh@aybabtu.com>
13770
13771 Modularize at_keyboard.mod:
13772
13773 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
13774 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
13775 (at_keyboard_mod_LDFLAGS): New variables.
13776
13777 Actual terminal split:
13778
13779 * include/grub/term.h (struct grub_term): Split in ...
13780 (struct grub_term_input): ... this, and ...
13781 (struct grub_term_output): ... this. Update all users.
13782 (grub_term_set_current): Split in ...
13783 (grub_term_set_current_input): ... this, and ...
13784 (grub_term_set_current_output): ... this.
13785 (grub_term_get_current): Split in ...
13786 (grub_term_get_current_input): ... this, and ...
13787 (grub_term_get_current_output): ... this.
13788 (grub_term_register): Split in ...
13789 (grub_term_register_input): ... this, and ...
13790 (grub_term_register_output): ... this.
13791 (grub_term_unregister): Split in ...
13792 (grub_term_unregister_input): ... this, and ...
13793 (grub_term_unregister_output): ... this.
13794 (grub_term_iterate): Split in ...
13795 (grub_term_iterate_input): ... this, and ...
13796 (grub_term_iterate_output): ... this.
13797
13798 * kern/term.c (grub_term_list): Split in ...
13799 (grub_term_list_input): ... this, and ...
13800 (grub_term_list_output): ... this. Update all users.
13801 (grub_cur_term): Split in ...
13802 (grub_cur_term_input): ... this, and ...
13803 (grub_cur_term_output): ... this. Update all users.
13804 (grub_term_set_current): Split in ...
13805 (grub_term_set_current_input): ... this, and ...
13806 (grub_term_set_current_output): ... this.
13807 (grub_term_get_current): Split in ...
13808 (grub_term_get_current_input): ... this, and ...
13809 (grub_term_get_current_output): ... this.
13810 (grub_term_register): Split in ...
13811 (grub_term_register_input): ... this, and ...
13812 (grub_term_register_output): ... this.
13813 (grub_term_unregister): Split in ...
13814 (grub_term_unregister_input): ... this, and ...
13815 (grub_term_unregister_output): ... this.
13816 (grub_term_iterate): Split in ...
13817 (grub_term_iterate_input): ... this, and ...
13818 (grub_term_iterate_output): ... this.
13819
13820 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
13821 a check for input and one for output (and only attempt to get keys
13822 from user when input works).
13823
13824 * util/grub-probe.c (grub_term_get_current): Split in ...
13825 (grub_term_get_current_input): ... this, and ...
13826 (grub_term_get_current_output): ... this.
13827 * util/grub-fstest.c: Likewise.
13828 * util/i386/pc/grub-setup.c: Likewise.
13829 * util/grub-editenv.c: Likewise.
13830
13831 Portability adjustments:
13832
13833 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
13834 `term/i386/pc/at_keyboard.c'.
13835 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
13836 grub_keyboard_controller_init() (now handled by terminal .init).
13837 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
13838 grub_at_keyboard_init().
13839 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
13840 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
13841 at_keyboard.mod via input terminal interface).
13842 * include/grub/i386/coreboot/console.h: Convert into a stub for
13843 `<grub/i386/pc/console.h>'.
13844
13845 Migrate full terminals to new API:
13846
13847 * term/efi/console.c (grub_console_term): Split into ...
13848 (grub_console_term_input): ... this, and ...
13849 (grub_console_term_output): ... this. Update all users.
13850 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
13851 (grub_ofconsole_init): Split into ...
13852 (grub_ofconsole_init_input): ... this, and ...
13853 (grub_ofconsole_init_output): ... this.
13854 (grub_ofconsole_term): Split into ...
13855 (grub_ofconsole_term_input): ... this, and ...
13856 (grub_ofconsole_term_output): ... this. Update all users.
13857 * term/i386/pc/serial.c (grub_serial_term): Split into ...
13858 (grub_serial_term_input): ... this, and ...
13859 (grub_serial_term_output): ... this. Update all users.
13860 * term/i386/pc/console.c (grub_console_term): Split into ...
13861 (grub_console_term_input): ... this, and ...
13862 (grub_console_term_output): ... this. Update all users.
13863 (grub_console_term_input): Only enable it on PC/BIOS platform.
13864 (grub_console_init): Remove grub_keyboard_controller_init() call.
13865
13866 Migrate input terminals to new API:
13867
13868 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
13869 `i386' and `i386/pc' to enable build on x86_64 (this driver is
13870 i386-specific anyway).
13871 (grub_console_checkkey): Rename to ...
13872 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
13873 users.
13874 (grub_keyboard_controller_orig): New variable.
13875 (grub_console_getkey): Rename to ...
13876 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
13877 users.
13878 (grub_keyboard_controller_init): Static-ize. Save original
13879 controller value so that it can be restored ...
13880 (grub_keyboard_controller_fini): ... here (new function).
13881 (grub_at_keyboard_term): New structure.
13882 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
13883 functions.
13884
13885 Migrate output terminals to new API:
13886
13887 * term/i386/pc/vga.c (grub_vga_term): Change type to
13888 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
13889 members. Update all users.
13890 * term/gfxterm.c (grub_video_term): Change type to
13891 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
13892 members. Update all users.
13893 * include/grub/i386/pc/console.h (grub_console_checkkey)
13894 (grub_console_getkey): Do not export (no longer needed by gfxterm,
13895 etc).
13896
13897 Migrate `terminal' command and userland tools to new API:
13898
13899 * commands/terminal.c (grub_cmd_terminal): Split into ...
13900 (grub_cmd_terminal_input): ... this, and ...
13901 (grub_cmd_terminal_output): ... this.
13902 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
13903 `terminal_input' and `terminal_output'.
13904 * util/grub.d/00_header.in: Adjust `terminal' calls to new
13905 `terminal_input' / `terminal_output' API.
13906 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
13907 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
13908 provided ${GRUB_TERMINAL}, convert it).
13909
96e5d876 139102008-11-04 Robert Millan <rmh@aybabtu.com>
13911
13912 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
13913 for FreeBSD.
13914 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
13915
556f3775 139162008-11-03 Bean <bean123ch@gmail.com>
13917
13918 * kern/elf.c (grub_elf32_load): Revert to previous code.
13919 (grub_elf64_load): Likewise.
13920
13921 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
13922
926b9823 139232008-11-01 Robert Millan <rmh@aybabtu.com>
13924
13925 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
13926 (TARGET_CPPFLAGS): Likewise.
13927 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
13928
1432e958 139292008-11-01 Carles Pina i Estany <carles@pina.cat>
13930
13931 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
13932
dba3f844 139332008-10-29 Guillem Jover <guillem.jover@nokia.com>
de4fa71c 13934
13935 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
13936 addition of objects until the code is not going to be able to fail.
13937
dba3f844 139382008-10-29 Guillem Jover <guillem.jover@nokia.com>
b7279447 13939
13940 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
13941 (add a missing NULL check, and correct them by moving the pointer
13942 operations after the actual check).
13943
7ab28c21 139442008-10-29 Robert Millan <rmh@aybabtu.com>
13945
13946 * util/i386/pc/grub-install.in: Handle empty string as output from
13947 make_system_path_relative_to_its_root().
13948
1b7748eb 139492008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
13950
13951 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
13952 circular metadata worst case scenario. If the metadata is circular
13953 then copy the wrap in place.
13954 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
13955 project lib/format_text/layout.h
13956 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
13957
c9618ab2 139582008-10-03 Felix Zielcke <fzielcke@z-51.de>
13959
7a36edca 13960 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
c9618ab2 13961
bf981c62 139622008-10-03 Felix Zielcke <fzielcke@z-51.de>
13963
13964 * util/update-grub_lib.in: Mention filename in warning message.
13965
6d994591 139662008-09-29 Felix Zielcke <fzielcke@z-51.de>
13967
13968 * NEWS: Update for rename of update-grub to grub-mkconfig.
13969
18ade780 139702008-09-29 Felix Zielcke <fzielcke@z-51.de>
13971
13972 * util/update-grub_lib.in: Copy to ...
13973 * util/grub-mkconfig_lib.in: ... this. Update all users.
7c3ff286 13974 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
18ade780 13975 * util/update-grub.in: Rename to ...
13976 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
13977 option. Add `--output' option to allow users to specify the generated
13978 configuration file. Default to stdout.
13979 (update_grub_dir): Rename to ...
13980 (grub_mkconfig_dir): ... this.
13981 (grub_cfg): Default to an empty string.
13982 * conf/common.rmk (update-grub): Rename to ...
13983 (grub-mkconfig): ... this.
13984 (update-grub_lib): Copy to ...
13985 (grub-mkconfig_lib): ... this.
13986 (update-grub_SCRIPTS): Copy to ...
13987 (grub-mkconfig_SCRIPTS): ... this. Update all users.
13988 (update-grub_DATA): Rename to ...
13989 (grub-mkconfig_DATA): ... this.
13990
556ce6ac 139912008-09-28 Robert Millan <rmh@aybabtu.com>
13992
13993 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
13994 to `modified'. Add the real `created' field.
13995 (grub_iso9660_uuid): Use `modified' rather than `created' for
13996 constructing the UUID.
13997
139982008-09-28 Felix Zielcke <fzielcke@z-51.de>
eb079ba9 13999
14000 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
14001 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
14002
92274e85 140032008-09-28 Bean <bean123ch@gmail.com>
14004
14005 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
14006 Thanks to Christian Franke for finding this bug.
14007
add6f17a 140082008-09-25 Robert Millan <rmh@aybabtu.com>
14009
14010 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
14011 instances of grub_util_get_disk_name() (see previous commit).
14012
d2a367b8 140132008-09-25 Robert Millan <rmh@aybabtu.com>
14014
14015 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
14016 `util/i386/get_disk_name.c'.
14017 * conf/i386-efi.rmk: Likewise.
14018 * conf/x86_64-efi.rmk: Likewise.
14019 * conf/i386-coreboot.rmk: Likewise.
14020 * conf/i386-ieee1275.rmk: Likewise.
14021 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
14022 `util/ieee1275/get_disk_name.c'.
14023 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
14024 * util/ieee1275/get_disk_name.c: Remove file.
14025 * util/i386/get_disk_name.c: Remove file.
14026 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
14027 "hd%d" for device.map entries, rather than using
14028 grub_util_get_disk_name().
14029
81a06771 140302008-09-24 Carles Pina i Estany <carles@pina.cat>
b0c301f7 14031
14032 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
14033 warning.
14034 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
14035
5a004279 140362008-09-24 Carles Pina i Estany <carles@pina.cat>
14037
14038 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
14039 Changed to 0x5100.
14040 (GRUB_TERM_PPAGE): Changed to 0x4900.
14041
397093d3 140422008-09-24 Robert Millan <rmh@aybabtu.com>
14043
14044 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
14045 macros (they were i386-pc specific).
14046 * include/grub/sparc64/ieee1275/console.h: Likewise.
14047 * include/grub/efi/console.h: Likewise.
14048
a91b6c7c 140492008-09-22 Bean <bean123ch@gmail.com>
14050
14051 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
14052 resident and in attribute list.
14053
14054 * include/grub/ntfs.h (BMP_LEN): Removed.
14055
c40fd116 140562008-09-22 Bean <bean123ch@gmail.com>
14057
81a06771 14058 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
c40fd116 14059 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
14060
14061 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
14062 error occurs, as grub_disk_open will call grub_disk_close, which will
14063 call p->close (scsi).
14064
81a06771 140652008-09-21 Felix Zielcke <fzielcke@z-51.de>
eb73121d 14066
14067 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
14068 (AC_PREREQ): Bumped to 2.59.
14069 (AC_TRY_COMPILE): Replace obsolete macro with ...
14070 (AC_COMPILE_IFELSE): ... this.
14071 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
14072 (AC_LINK_IFELSE): ... this.
14073
5dc43410 140742008-09-21 Felix Zielcke <fzielcke@z-51.de>
14075
14076 * autogen.sh: Add a call to `gendistlist.sh'.
14077
9035dce4 140782008-09-19 Christian Franke <franke@computer.org>
14079
14080 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
14081 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
14082 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
14083 Export __enable_execute_stack() to modules.
14084 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
14085 New function.
14086
7fd75377 140872008-09-09 Felix Zielcke <fzielcke@z-51.de>
14088
040030b3 14089 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
14090 Sort the list.
14091
140922008-09-09 Felix Zielcke <fzielcke@z-51.de>
14093
14094 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
7fd75377 14095 #include <grub/util/hostdisk.h>.
14096
89d5ffcf 140972008-09-08 Robert Millan <rmh@aybabtu.com>
14098
14099 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
14100 segments when their filesz is zero (grub_file_read() interprets
81a06771 14101 zero-size as "read until EOF", which results in memory corruption).
89d5ffcf 14102 Use `lowest_segment' rather than 0 for calculating the current
14103 segment load address.
14104
40da438f 141052008-09-08 Robert Millan <rmh@aybabtu.com>
14106
14107 * util/hostdisk.c (open_device): Replace a grub_util_info() call
14108 with grub_dprintf("hostdisk", ...), as it was so verbose that it
14109 clobbered useful information.
14110
ddbf5556 141112008-09-08 Robert Millan <rmh@aybabtu.com>
14112
14113 * include/grub/util/biosdisk.h: Move to ...
14114 * include/grub/util/hostdisk.h: ... here. Update all users.
14115 * util/biosdisk.c: Move to ...
14116 * util/hostdisk.c: ... here. Update all users.
14117
783d0f48 141182008-09-07 Robert Millan <rmh@aybabtu.com>
14119
14120 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
14121 variables.
14122 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
14123 and length can be stored directly in the `mbi->mmap_addr' and
14124 `mbi->mmap_length' struct fields.
14125
548e2ea5 141262008-09-07 Robert Millan <rmh@aybabtu.com>
14127
14128 * conf/i386.rmk: New file. Provides declaration for building
14129 `cpuid.mod'.
14130 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
14131 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
14132 variables.
14133 Include `conf/i386.mk'.
14134 * conf/i386-efi.rmk: Likewise.
14135 * conf/x86_64-efi.rmk: Likewise.
14136 * conf/i386-coreboot.rmk: Likewise.
14137 * conf/i386-ieee1275.rmk: Likewise.
14138
0ea85a37 141392008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
14140
14141 Based on patch created by Colin D Bennett <colin@gibibit.com>.
14142 Adds optimization support for BGR based modes.
14143
14144 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
14145 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
14146 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
14147 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
14148 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
14149 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
14150 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
14151 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
14152 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
14153 (grub_video_i386_vbeblit_index_index): Likewise.
14154 (grub_video_i386_vbeblit_replace_directN): Added.
14155 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
14156 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
14157 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
14158 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
14159 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
14160 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
81a06771 14161 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
0ea85a37 14162 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
14163 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
14164 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
14165 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
14166 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
14167 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
14168
14169 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
14170 (grub_video_i386_vbefill_R8G8B8): Likewise.
14171 (grub_video_i386_vbefill_index): Likewise.
14172 (grub_video_i386_vbefill_direct32): Added.
14173 (grub_video_i386_vbefill_direct24): Likewise.
14174 (grub_video_i386_vbefill_direct16): Likewise.
14175 (grub_video_i386_vbefill_direct8): Likewise.
14176
81a06771 14177 * include/grub/video.h (grub_video_blit_format): Removed
0ea85a37 14178 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
14179 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
14180 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
14181 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
14182 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
81a06771 14183
0ea85a37 14184 * video/video.c (grub_video_get_blit_format): Updated to use new
14185 blit formats. Added handling for 16 bit color modes.
81a06771 14186
14187 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
0ea85a37 14188 fillers.
14189 (common_blitter): Updated to use new blitters.
14190
14191 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
14192 Removed.
14193 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
14194 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
14195 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
14196 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
14197 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
14198 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
14199 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
14200 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
14201 (grub_video_i386_vbeblit_index_index): Likewise.
14202 (grub_video_i386_vbeblit_replace_directN): Added.
14203 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
14204 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
14205 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
14206 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
14207 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
14208 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
14209 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
14210 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
14211 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
14212 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
14213 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
14214 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
14215 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
81a06771 14216
0ea85a37 14217 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
14218 (grub_video_i386_vbefill_R8G8B8): Likewise.
14219 (grub_video_i386_vbefill_index): Likewise.
14220 (grub_video_i386_vbefill_direct32): Added.
14221 (grub_video_i386_vbefill_direct24): Likewise.
14222 (grub_video_i386_vbefill_direct16): Likewise.
14223 (grub_video_i386_vbefill_direct8): Likewise.
81a06771 14224
0ea85a37 14225 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
14226 types.
81a06771 14227
0ea85a37 14228 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
14229 types.
81a06771 14230
0ea85a37 14231 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
14232 blitter types.
81a06771 14233
0ea85a37 14234 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
14235 types.
14236
e8a83df6 142372008-09-06 Felix Zielcke <fzielcke@z-51.de>
14238
14239 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
14240 RAID level 1.
14241
6bcd8ee5 142422008-09-06 Felix Zielcke <fzielcke@z-51.de>
c375ae58 14243
6bcd8ee5 14244 * fs/iso9660.c (grub_iso9660_date): New structure.
14245 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
14246 (grub_iso9660_uuid): New function.
c375ae58 14247
59261157 142482008-09-05 Bean <bean123ch@gmail.com>
14249
14250 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
14251
14252 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
14253 insensitive bit for names in Win32 and Win32 & DOS namespace.
14254
14255 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
14256
14257 * include/grub/types.h (LONG_MAX): Likewise.
14258
58b6645a 142592008-09-04 Felix Zielcke <fzielcke@z-51.de>
14260
4ee55921 14261 * util/getroot.c: Include <config.h>.
14262 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
14263 add support for /dev/md/N devices and handle LVM double dash escaping.
14264
142652008-09-04 Felix Zielcke <fzielcke@z-51.de>
14266
14267 * config.guess: Update to latest version from config git.
14268 * config.sub: Likewise.
58b6645a 14269
9124f65d 142702008-09-03 Robert Millan <rmh@aybabtu.com>
14271
14272 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
14273 `disk->total_sectors'.
14274
81a06771 142752008-09-01 Colin D Bennett <colin@gibibit.com>
a0224a4e 14276
14277 * include/grub/normal.h: Fixed incorrect comment for
14278 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
14279
81a06771 142802008-09-01 Colin D Bennett <colin@gibibit.com>
f0619958 14281
14282 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
14283 values with defines.
14284
14285 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
14286 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
14287 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
14288 (GRUB_VBE_MODEATTR_COLOR): Likewise.
14289 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
14290 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
14291 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
14292 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
14293 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
14294 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
14295 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
14296 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
14297 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
14298 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
14299 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
14300 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
14301 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
14302 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
14303 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
14304
93d5cbf8 143052008-08-31 Robert Millan <rmh@aybabtu.com>
14306
14307 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
14308 declaration.
14309 (grub_multiboot): Fix a few warnings.
14310
21751d50 143112008-08-31 Robert Millan <rmh@aybabtu.com>
14312
14313 * loader/i386/pc/multiboot.c: Update comment not to say that
14314 boot_device support is unimplemented.
14315
e27a75c5 143162008-08-31 Robert Millan <rmh@aybabtu.com>
14317
14318 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
14319 or memory map support are unimplemented.
14320
81a06771 143212008-08-31 Colin D Bennett <colin@gibibit.com>
64d2d53c 14322
14323 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
14324
81a06771 143252008-08-31 Colin D Bennett <colin@gibibit.com>
c08a6c18 14326
14327 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
14328 total video memory in 'vbeinfo' output; show color format details for
14329 each video mode.
14330
7c5d8d95 143312008-08-30 Pavel Roskin <proski@gnu.org>
14332
14333 * util/genmoddep.c: Remove for real this time.
14334 * DISTLIST: Remove util/genmoddep.c.
14335
4cebd25a 143362008-08-30 Robert Millan <rmh@aybabtu.com>
14337
14338 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
14339 as required by Multiboot spec (it was already 4-byte aligned, but
14340 only by chance).
14341
b497a269 143422008-08-29 Pavel Roskin <proski@gnu.org>
14343
e3925185 14344 * kern/powerpc/ieee1275/crt0.S: Rename to ...
14345 * kern/powerpc/ieee1275/startup.S: ... this.
14346 * conf/powerpc-ieee1275.rmk: Adjust for the above.
14347 * DISTLIST: Likewise.
14348
b497a269 14349 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
14350 grub/cpu/kernel.h. Add start label for consistency with other
14351 platforms. Add grub_prefix immediately after start. Add jump
14352 to the code after grub_prefix.
14353 * include/grub/powerpc/kernel.h: Provide valid values for
14354 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
14355
6e5a42fe 143562008-08-29 Bean <bean123ch@gmail.com>
14357
14358 * configure.ac: Change host_os to cygwin for mingw.
14359 (asprintf): New check for function.
14360
14361 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
14362 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
14363
14364 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
81a06771 14365 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
6e5a42fe 14366 sync, sleep and grub_util_get_disk_size for mingw.
14367
14368 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
14369 to get size in mingw.
14370 (open_device): Use flag O_BINARY if it's defined.
14371 (find_root_device): Add dummy code for mingw.
14372
14373 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
14374 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
14375 (get_scsi_disk_name): Return 0 for mingw.
14376
14377 * util/hostfs.c: #include <grub/util/misc.h>.
14378 (grub_hostfs_open): Use "rb" flag to open file, use
14379 grub_util_get_disk_size to get disk size for mingw.
14380
14381 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
14382 (asprintf): New function if HAVE_ASPRINTF is not set.
14383 (sync): New function for mingw.
14384 (sleep): Likewise.
14385 (grub_util_get_disk_size): Likewise.
14386
ab3f2673 143872008-08-28 Pavel Roskin <proski@gnu.org>
14388
14389 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
14390 kern/time.c.
14391
1c282483 143922008-08-28 Robert Millan <rmh@aybabtu.com>
14393
14394 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
14395
678e849c 143962008-08-28 Robert Millan <rmh@aybabtu.com>
14397
14398 Change find_grub_drive() syntax so it doesn't prevent it from
14399 detecting NULL names as errors.
14400
14401 * util/biosdisk.c (find_grub_drive): Move free slot search code
14402 from here ...
14403 (find_free_slot): ... to here.
14404 (read_device_map): Use find_free_slot() to search for free slots.
14405
965c75ca 144062008-08-27 Marco Gerards <marco@gnu.org>
14407
14408 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
14409 (scsi_mod_SOURCES): New variable.
14410 (scsi_mod_CFLAGS): Likewise
14411 (scsi_mod_LDFLAGS): Likewise.
14412
14413 * disk/scsi.c: New file.
14414
14415 * include/grub/scsi.h: Likewise.
14416
14417 * include/grub/scsicmd.h: Likewise.
14418
14419 * disk/ata.c: Include <grub/scsi.h>.
14420 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
14421 instead.
14422 (grub_ata_iterate): Skip ATAPI devices.
14423 (grub_ata_open): Only handle ATAPI devices.
14424 (struct grub_atapi_read): Removed.
14425 (grub_atapi_readsector): Likewise.
14426 (grub_ata_read): No longer handle ATAPI devices.
14427 (grub_ata_write): Likewise.
14428 (grub_atapi_iterate): New function.
14429 (grub_atapi_read): Likewise.
14430 (grub_atapi_write): Likewise.
14431 (grub_atapi_open): Likewise.
14432 (grub_atapi_close): Likewise.
14433 (grub_atapi_dev): New variable.
14434 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
14435 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
14436
14437 * include/grub/disk.h (enum grub_disk_dev_id): Add
14438 `GRUB_DISK_DEVICE_SCSI_ID'.
14439
c07ae501 144402008-08-26 Robert Millan <rmh@aybabtu.com>
14441
14442 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
14443 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
14444 descriptive.
14445
5ed20adc 144462008-08-23 Bean <bean123ch@gmail.com>
14447
14448 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
14449 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
14450 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
14451 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
14452 dm_nv.mod.
14453 (raid5rec_mod_SOURCES): New macro.
14454 (raid5rec_mod_CFLAGS): Likewise.
14455 (raid5rec_mod_LDFLAGS): Likewise.
14456 (raid6rec_mod_SOURCES): Likewise.
14457 (raid6rec_mod_CFLAGS): Likewise.
14458 (raid6rec_mod_LDFLAGS): Likewise.
14459 (mdraid_mod_SOURCES): Likewise.
14460 (mdraid_mod_CFLAGS): Likewise.
14461 (mdraid_mod_LDFLAGS): Likewise.
14462 (dm_nv_mod_SOURCES): Likewise.
14463 (dm_nv_mod_CFLAGS): Likewise.
14464 (dm_nv_mod_LDFLAGS): Likewise.
14465
14466 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
14467 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
14468 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
14469
14470 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
14471 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
14472
14473 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
14474
14475 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
14476
14477 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14478
14479 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14480
14481 * disk/raid5_recover.c: New file.
14482
14483 * disk/raid6_recover.c: Likewise.
14484
14485 * disk/mdraid_linux.c: Likewise.
14486
14487 * disk/dmraid_nvidia.c: Likewise.
14488
14489 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
14490 ULONG_MAX.
14491
14492 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
14493 calculate the size of raid device.
14494 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
14495 different layout of raid5.
14496 (grub_raid_scan_device): Remove code specific to mdraid.
14497 (grub_raid_list): New variable.
14498 (free_array): New function.
14499 (grub_raid_register): Likewise.
14500 (grub_raid_unregister): Likewise.
14501 (grub_raid_rescan): Likewise.
14502 (GRUB_MOD_INIT): Don't iterate device here.
14503 (GRUB_MOD_FINI): Use free_array to release resource.
14504
14505 * include/grub/raid.h: Remove macro and structure specific to mdraid.
14506 (grub_raid5_recover_func_t): New function variable type.
14507 (grub_raid6_recover_func_t): Likewise.
14508 (grub_raid5_recover_func): New variable.
14509 (grub_raid6_recover_func): Likewise.
14510 (grub_raid_register): New function.
14511 (grub_raid_unregister): Likewise.
14512 (grub_raid_rescan): Likewise.
14513 (grub_raid_block_xor): Likewise.
14514
14515 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
14516 (CMD_CRC): New macro.
14517 (part): Removed.
14518 (read_file): Handle device as well as file.
14519 (cmd_crc): New function.
14520 (fstest): Handle multiple disks.
14521 (options): Remove part, raw and long, add root and diskcount.
14522 (usage): Add crc, remove -p, -r, -l, add -r and -c.
dba3f844 14523 (main): Find the first non option entry and ignore subsequent options,
5ed20adc 14524 add handling for the new options, support multiple disks.
14525
14526 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
14527
29c18915 145282008-08-23 Bean <bean123ch@gmail.com>
14529
14530 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
14531
14532 * genfslist.sh: Ignore kernel.mod.
14533
14534 * genpartmaplist.sh: Likewise.
14535
8415f261 145362008-08-23 Robert Millan <rmh@aybabtu.com>
14537
14538 * util/getroot.c (find_root_device): Skip anything that starts with
14539 a dot, not just directories. This avoids things like /dev/.tmp.md0.
14540
d5a7dc5b 145412008-08-22 Felix Zielcke <fzielcke@z-51.de>
81a06771 14542
d5a7dc5b 14543 * util/update-grub.in (GRUB_GFXMODE): Export variable.
14544 * util/grub.d/00_header.in: Allow the administrator to change default
14545 gfxmode via ${GRUB_GFXMODE}.
14546
380cfbb4 145472008-08-21 Felix Zielcke <fzielcke@z-51.de>
14548
14549 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
14550
c9baafe7 145512008-08-21 Robert Millan <rmh@aybabtu.com>
14552
14553 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
14554 loader.
14555 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
14556 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
14557
e290bef2 145582008-08-20 Carles Pina i Estany <carles@pina.cat>
14559
14560 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
14561 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
14562
f9dbfc96 145632008-08-19 Robert Millan <rmh@aybabtu.com>
14564
14565 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
14566 (struct grub_virtual_screen): Remove `cursor_color'.
14567 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
14568 initialization.
14569 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
14570
dd6bd6ab 145712008-08-18 Robert Millan <rmh@aybabtu.com>
14572
14573 Unify (identical) linux_normal.c files.
14574 * loader/i386/efi/linux_normal.c: Move from here ...
14575 * loader/linux_normal.c: ... to here. Update all users.
14576 * loader/i386/pc/linux_normal.c: Delete. Update all users.
14577 * loader/i386/ieee1275/linux_normal.c: Likewise.
14578
7f42f83e 145792008-08-18 Robert Millan <rmh@aybabtu.com>
14580
14581 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
14582 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
14583 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
14584 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
14585 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
14586 New macros.
14587 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
14588 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
14589 (GRUB_LINUX_CL_END_OFFSET): ... to here.
14590 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
14591 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
14592 (GRUB_EFI_CL_END_OFFSET): Rename to ...
14593 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
14594 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
14595 Initialize `params->video_cursor_x' and `params->video_cursor_y'
14596 portably using grub_getxy().
14597 Replace `-EFI' with `-bzImage' in boot message.
14598
38487ddb 145992008-08-17 Robert Millan <rmh@aybabtu.com>
14600
14601 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
14602
deceb3ec 146032008-08-17 Robert Millan <rmh@aybabtu.com>
14604
14605 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
14606
14607 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
14608 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
14609 (grub_machine_mmap_iterate): New function declaration.
14610 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
14611 structure.
14612 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
14613 macros.
14614
14615 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
14616 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
14617 Move e820 parsing from here ...
14618 * kern/i386/pc/mmap.c: New file.
14619 (grub_machine_mmap_iterate): ... to here.
14620
14621 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
14622 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
14623 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
14624 (grub_available_iterate): Redeclare to return `void', and redeclare
14625 its hook to use grub_uint64_t as addr and size parameters, and rename
14626 to ...
14627 (grub_machine_mmap_iterate): ... this. Update all users.
14628
14629 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
14630 to make it more readable. Rename to ...
14631 (grub_machine_mmap_iterate): ... this.
14632
14633 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
14634 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
14635 (grub_multiboot): Allocate an extra region after the payload, and fill
14636 it with a Multiboot memory map. Adjust a.out loader to calculate size
14637 with the extra space.
14638 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
14639 with the extra space.
14640
f8aa0f43 146412008-08-17 Carles Pina i Estany <carles@pina.cat>
14642
9807deb9 14643 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
f8aa0f43 14644
605f5bb6 146452008-08-17 Felix Zielcke <fzielcke@z-51.de>
14646
14647 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
14648 mdate-sh to the list `find' searches for.
14649 * DISTLIST: Regenerated.
14650
210db6c6 146512008-08-16 Felix Zielcke <fzielcke@z-51.de>
14652
14653 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
14654 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
48cdbfd4 14655 genmoddep.awk, gensymlist.sh.in.
14656 (DISTDIRS): Add bus, docs, hook, lib.
210db6c6 14657 * DISTLIST: Regenerated.
48cdbfd4 14658 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
210db6c6 14659
1082b929 146602008-08-16 Robert Millan <rmh@aybabtu.com>
14661
14662 * disk/raid.c (grub_raid_init): Handle/report errors set by
14663 grub_device_iterate().
14664 * disk/lvm.c (grub_lvm_init): Likewise.
14665
42ce5170 146662008-08-15 Bean <bean123ch@gmail.com>
14667
14668 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
14669 and datehook.mod.
14670 (datetime_mod_SOURCES): New macro.
14671 (datetime_mod_CFLAGS): Likewise.
14672 (datetime_mod_LDFLAGS): Likewise.
14673 (date_mod_SOURCES): Likewise.
14674 (date_mod_CFLAGS): Likewise.
14675 (date_mod_LDFLAGS): Likewise.
14676 (datehook_mod_SOURCES): Likewise.
14677 (datehook_mod_CFLAGS): Likewise.
14678 (datehook_mod_LDFLAGS): Likewise.
14679
14680 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
14681 and datehook.mod.
14682 (datetime_mod_SOURCES): New macro.
14683 (datetime_mod_CFLAGS): Likewise.
14684 (datetime_mod_LDFLAGS): Likewise.
14685 (date_mod_SOURCES): Likewise.
14686 (date_mod_CFLAGS): Likewise.
14687 (date_mod_LDFLAGS): Likewise.
14688 (datehook_mod_SOURCES): Likewise.
14689 (datehook_mod_CFLAGS): Likewise.
14690 (datehook_mod_LDFLAGS): Likewise.
14691
14692 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
14693 and datehook.mod.
14694 (datetime_mod_SOURCES): New macro.
14695 (datetime_mod_CFLAGS): Likewise.
14696 (datetime_mod_LDFLAGS): Likewise.
14697 (date_mod_SOURCES): Likewise.
14698 (date_mod_CFLAGS): Likewise.
14699 (date_mod_LDFLAGS): Likewise.
14700 (datehook_mod_SOURCES): Likewise.
14701 (datehook_mod_CFLAGS): Likewise.
14702 (datehook_mod_LDFLAGS): Likewise.
14703
14704 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
14705 and datehook.mod.
14706 (datetime_mod_SOURCES): New macro.
14707 (datetime_mod_CFLAGS): Likewise.
14708 (datetime_mod_LDFLAGS): Likewise.
14709 (date_mod_SOURCES): Likewise.
14710 (date_mod_CFLAGS): Likewise.
14711 (date_mod_LDFLAGS): Likewise.
14712 (datehook_mod_SOURCES): Likewise.
14713 (datehook_mod_CFLAGS): Likewise.
14714 (datehook_mod_LDFLAGS): Likewise.
14715
14716 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
14717 and datehook.mod.
14718 (datetime_mod_SOURCES): New macro.
14719 (datetime_mod_CFLAGS): Likewise.
14720 (datetime_mod_LDFLAGS): Likewise.
14721 (date_mod_SOURCES): Likewise.
14722 (date_mod_CFLAGS): Likewise.
14723 (date_mod_LDFLAGS): Likewise.
14724 (datehook_mod_SOURCES): Likewise.
14725 (datehook_mod_CFLAGS): Likewise.
14726 (datehook_mod_LDFLAGS): Likewise.
14727
14728 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
14729
14730 * commands/date.c: New file.
14731
14732 * hook/datehook.c: Likewise.
14733
14734 * include/grub/lib/datetime.h: Likewise.
14735
14736 * include/grub/i386/cmos.h: Likewise.
14737
14738 * lib/datetime.c: Likewise.
14739
14740 * lib/i386/datetime.c: Likewise.
14741
14742 * lib/efi/datetime.c: Likewise.
14743
0e9242da 147442008-08-14 Robert Millan <rmh@aybabtu.com>
14745
14746 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
14747 (grub_mkelfimage_SOURCES): New variable.
14748 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
14749
14750 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
14751 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
14752 * conf/powerpc-ieee1275.rmk: Likewise.
14753 * conf/i386-ieee1275.rmk: Likewise.
14754
14755 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
14756 * kern/i386/coreboot/init.c: Likewise.
14757
14758 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
14759 with `<grub/cpu/kernel.h>'.
14760 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
14761 to ...
14762 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
14763 * kern/i386/coreboot/startup.S: Likewise.
14764
14765 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
14766 (GRUB_MOD_GAP): Remove.
14767 * include/grub/powerpc/kernel.h: New file.
14768 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
14769 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
14770 * include/grub/i386/kernel.h: New file.
14771 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
14772 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
14773 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
14774
14775 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
14776 `grub-mkelfimage'.
14777 Use --directory when invoking grub_mkimage.
14778
14779 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
14780 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
14781 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
14782 and GRUB_KERNEL_CPU_PREFIX.
14783
b86408f8 147842008-08-14 Felix Zielcke <fzielcke@z-51.de>
14785
d5e619ca 14786 * include/grub/err.h (grub_err_printf): New function prototype.
14787 * util/misc.c (grub_err_printf): New function.
14788 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
14789 grub_printf.
14790 * kern/err.c (grub_print_error): Use grub_err_printf.
b86408f8 14791
7161f0e0 147922008-08-13 Robert Millan <rmh@aybabtu.com>
14793
14794 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
14795
a1967522 147962008-08-13 Robert Millan <rmh@aybabtu.com>
14797
14798 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
14799 boot entry.
14800
371458b5 148012008-08-12 Robert Millan <rmh@aybabtu.com>
14802
14803 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
14804 of the relocation code from here ...
14805 (grub_multiboot): ... to here.
14806 (forward_relocator, backward_relocator): Move from here ...
14807 * kern/i386/loader.S (grub_multiboot_forward_relocator)
14808 (grub_multiboot_backward_relocator): ... to here.
14809 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
14810 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
14811 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
14812 (grub_multiboot_forward_relocator_end)
14813 (grub_multiboot_backward_relocator)
14814 (grub_multiboot_backward_relocator_end): New variables.
14815
05f9452b 148162008-08-12 Bean <bean123ch@gmail.com>
14817
14818 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
14819
20024ab0 148202008-08-11 Robert Millan <rmh@aybabtu.com>
14821
14822 * kern/i386/linuxbios/startup.S: Move from here ...
14823 * kern/i386/coreboot/startup.S: ... to here.
14824
14825 * kern/i386/linuxbios/init.c: Move from here ...
14826 * kern/i386/coreboot/init.c: ... to here.
14827
14828 * kern/i386/linuxbios/table.c: Move from here ...
14829 * kern/i386/coreboot/mmap.c: ... to here.
14830
14831 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
14832
e352e9cd 148332008-08-11 Robert Millan <rmh@aybabtu.com>
14834
14835 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
14836 errors. Leave it to the upper layer to handle them.
14837
2d05bc6a 148382008-08-09 Christian Franke <franke@computer.org>
14839
14840 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
14841 * conf/common.rmk: Install `grub-pe2elf' only if requested.
14842 Install `grub.d/10_windows' only on Cygwin.
14843 * configure.ac: Add subst of `target_os'.
14844 Check `target_os' also before setting TARGET_OBJ2ELF.
14845 Add `--enable-grub-pe2elf'.
14846
042bd419 148472008-08-08 Robert Millan <rmh@aybabtu.com>
14848
14849 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
14850 (grub_last_time): Change type to grub_uint64_t.
14851 (grub_disk_open): Migrate code from to using grub_get_time_ms().
14852 (grub_disk_close): Likewise.
14853
14854 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
14855 (run_menu): Migrate code from to using grub_get_time_ms().
14856
14857 * util/misc.c (grub_get_time_ms): New function.
14858
7f280db5 148592008-08-08 Marco Gerards <marco@gnu.org>
14860
14861 * disk/ata.c (grub_ata_regget): Change return type to
14862 `grub_uint8_t'.
14863 (grub_ata_regget2): Likewise.
14864 (grub_ata_wait_status): New function.
14865 (grub_ata_wait_busy): Removed function, updated all users to use
14866 `grub_ata_wait_status'.
14867 (grub_ata_wait_drq): Likewise.
14868 (grub_ata_cmd): New function.
14869 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
14870 error handling.
14871 (grub_ata_pio_write): Add error handling.
14872 (grub_atapi_identify): Likewise.
14873 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
14874 handling.
14875 (grub_ata_identify): Use `grub_ata_cmd' and improve error
14876 handling. Actually use the detected registers. Reorder the
14877 detection logic such that it is easier to read.
14878 (grub_ata_pciinit): Do not assign the same ID to each controller.
14879 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
14880 handling.
14881 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
14882
14883 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
14884
1fbc5e66 148852008-08-08 Marco Gerards <marco@gnu.org>
14886
14887 * NEWS: Update.
14888
819ce6c0 148892008-08-07 Bean <bean123ch@gmail.com>
14890
14891 * include/grub/x86_64/pci.h: New file.
14892
5c41d44d 148932008-08-07 Christian Franke <franke@computer.org>
14894
14895 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
14896 (TIMER2_GATE): Likewise.
14897 (grub_pit_wait): Add enable/disable of the timer2 gate
14898 bit of port 0x61. This fixes a possible infinite loop.
14899
5ebc275d 149002008-08-07 Bean <bean123ch@gmail.com>
14901
14902 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
14903 kern/i386/tsc.c and kern/i386/pit.c.
14904
14905 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
14906 x86_64 platform.
14907
14908 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
14909 <grub/i386/tsc.h>.
14910
14911 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
14912
e383b3d0 149132008-08-07 Bean <bean123ch@gmail.com>
14914
14915 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
14916
14917 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
14918
14919 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
14920 multiple inclusion. Add #include <grub/types.h>.
14921
1cbb58ac 149222008-08-06 Christian Franke <franke@computer.org>
14923
14924 * conf/common.rmk: Build and install `10_windows'.
14925 * util/grub.d/10_windows.in: New script.
14926
337f5a1e 149272008-08-06 Pavel Roskin <proski@gnu.org>
14928
14929 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
14930
057bc4ac 149312008-08-06 Robert Millan <rmh@aybabtu.com>
14932
14933 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
14934 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
14935
2b99f123 149362008-08-06 Bean <bean123ch@gmail.com>
14937
14938 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
14939 (grub_pxefs_fs_int): Remove dummy definition.
14940 (grub_pxefs_open): Use data->block_size to store the current block
14941 size setting.
14942 (grub_pxefs_read): Use block size stored in data->block_size. As the
14943 value of grub_pxe_blksize can be changed after the file is opened.
14944
9f0234cb 149452008-08-06 Bean <bean123ch@gmail.com>
14946
14947 * fs/i386/pc/pxe.c (curr_file): new variable.
14948 (grub_pxefs_open): Simply the handling of pxe file system. Don't
14949 require the dummy internal file system anymore.
14950 (grub_pxefs_read): Removed.
14951 (grub_pxefs_close): Likewise.
14952 (grub_pxefs_fs_int): Likewise.
14953 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
14954 connection when we switch file.
14955 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
14956
a55d42e0 149572008-08-06 Robert Millan <rmh@aybabtu.com>
14958
14959 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
14960 `halt.mod'.
14961 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
14962 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
14963
14964 * kern/i386/halt.c: New file.
14965 * kern/i386/reboot.c: Likewise.
14966 * include/grub/i386/reboot.h: Likewise.
14967 * include/grub/i386/halt.h: Likewise.
14968
14969 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
14970 Include `<grub/cpu/halt.h>'.
14971 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
14972 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
14973
14974 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
14975 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
14976 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
14977 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
14978 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
14979 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
14980 from here ...
14981 * include/grub/i386/at_keyboard.h: ... to here.
14982
24371d26 149832008-08-05 Robert Millan <rmh@aybabtu.com>
14984
14985 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
14986 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
14987 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
14988 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
14989 `kern/generic/millisleep.c'.
14990
14991 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
14992 instead of grub_get_rtc().
14993 (grub_tsc_init): Initialize `tsc_boot_time'.
14994
14995 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
14996 (grub_machine_init): Use grub_tsc_init() rather than
14997 installing an RTC-based handler via grub_install_get_time_ms().
14998
14999 * kern/i386/pit.c: New file.
15000 * include/grub/i386/pit.h: Likewise.
15001
9e7007b3 150022008-08-05 Bean <bean123ch@gmail.com>
15003
15004 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
15005
15006 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
15007 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
15008 (pxe_mod_SOURCES): New macro.
15009 (pxe_mod_CFLAGS): Likewise.
15010 (pxe_mod_LDFLAGS): Likewise.
15011 (pxecmd_mod_SOURCES): Likewise.
15012 (pxecmd_mod_CFLAGS): Likewise.
15013 (pxecmd_mod_LDFLAGS): Likewise.
15014
15015 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
15016 (grub_pxe_call): Likewise.
15017
15018 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
15019
15020 * commands/i386/pc/pxecmd.c: New file.
15021
9f0234cb 15022 * fs/i386/pc/pxe.c: Likewise.
9e7007b3 15023
15024 * include/grub/i386/pc/pxe.h: Likewise.
15025
6977d49f 150262008-08-05 Bean <bean123ch@gmail.com>
15027
15028 * util/console.c (grub_console_cur_color): New variable.
15029 (grub_console_standard_color): Likewise.
15030 (grub_console_normal_color): Likewise.
15031 (grub_console_highlight_color): Likewise.
15032 (color_map): Likewise.
15033 (use_color): Likewise.
15034 (NUM_COLORS): New macro.
15035 (grub_ncurses_setcolorstate): Handle color properly.
15036 (grub_ncurses_setcolor): Don't change color here, just remember the
15037 settings, color will be set in grub_ncurses_setcolorstate.
15038 (grub_ncurses_getcolor): New function.
15039 (grub_ncurses_init): Initialize color pairs.
15040 (grub_ncurses_term): New member grub_ncurses_getcolor.
15041
9c2ff3ee 150422008-08-05 Colin D Bennett <colin@gibibit.com>
337f5a1e 15043
9c2ff3ee 15044 High resolution timer support. Implemented for x86 CPUs using TSC.
15045 Extracted generic grub_millisleep() so it's linked in only as needed.
15046 This requires a Pentium compatible CPU; if the RDTSC instruction is
15047 not supported, then it falls back on the generic grub_get_time_ms()
15048 implementation that uses the machine's RTC.
15049
15050 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
15051 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
15052 `kern/generic/millisleep.c'.
15053
15054 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
15055 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
15056
15057 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
15058 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
15059
15060 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
15061
15062 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
15063 `kern/generic/millisleep.c'.
15064
15065 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
15066
15067 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
15068
15069 * kern/generic/rtc_get_time_ms.c: New file.
15070
15071 * kern/generic/millisleep.c: New file.
337f5a1e 15072
9c2ff3ee 15073 * kern/misc.c: Don't include
15074 <kern/time.h> anymore.
15075 (grub_millisleep_generic): Removed.
15076
15077 * commands/sleep.c (grub_interruptible_millisleep): Uses
15078 grub_get_time_ms() instead of grub_get_rtc().
15079
15080 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
15081 function.
15082 (grub_cpu_is_cpuid_supported): New inline function.
15083 (grub_cpu_is_tsc_supported): New inline function.
15084 (grub_tsc_init): New function prototype.
15085 (grub_tsc_get_time_ms): New function prototype.
15086
15087 * kern/i386/tsc.c (grub_get_time_ms): New file.
15088
15089 * include/grub/time.h: Include <grub/types.h.
15090 (grub_millisleep_generic): Removed.
15091 (grub_get_time_ms): New prototype.
15092 (grub_install_get_time_ms): New prototype.
15093 (grub_rtc_get_time_ms): New prototype.
15094
15095 * kern/time.c (grub_get_time_ms): New function.
15096 (grub_install_get_time_ms): New function.
15097
15098 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
15099 <grub/time.h> anymore.
15100 (grub_millisleep): Removed.
15101 (grub_machine_init): Call grub_tsc_init.
15102
15103 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
15104 get_time_ms() implementation.
15105
15106 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
15107 (ieee1275_get_time_ms): New function.
15108 (grub_machine_init): Install get_time_ms() implementation.
15109
15110 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
15111 (grub_machine_init): Call grub_tsc_init().
15112 (grub_millisleep): Removed.
bf06a93f 15113
9c2ff3ee 15114 * kern/ieee1275/init.c (grub_millisleep): Removed.
15115 (grub_machine_init): Install ieee1275_get_time_ms()
15116 implementation.
15117 (ieee1275_get_time_ms): New function.
15118 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
15119 real work.
15120
9ec92aaf 151212008-08-05 Marco Gerards <marco@gnu.org>
15122
15123 * disk/ata.c: Include <grub/pci.h>.
15124 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
15125 (grub_ata_initialize): Rewritten.
15126 (grub_ata_device_initialize): New function.
15127
8d23f507 151282008-08-04 Pavel Roskin <proski@gnu.org>
15129
15130 * kern/main.c: Include grub/mm.h.
15131
5e15ee3d 151322008-08-04 Robert Millan <rmh@aybabtu.com>
15133
15134 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
15135 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
15136 corruption problem).
15137
a9053f8f 151382008-08-04 Robert Millan <rmh@aybabtu.com>
15139
15140 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
15141 warnings introduced in my last commit.
15142
dd19c7d7 151432008-08-03 Robert Millan <rmh@aybabtu.com>
15144
15145 Make PCI available on all i386 architectures.
15146
15147 * include/grub/i386/pc/pci.h: Move from here ...
15148 * include/grub/i386/pci.h: ... to here.
15149
15150 * include/grub/i386/pc/pci.h: Remove.
15151 * include/grub/i386/efi/pci.h: Remove.
15152 * include/grub/x86_64/efi/pci.h: Remove.
15153
15154 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
15155 `<grub/cpu/pci.h>'.
15156
15157 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
15158 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
15159 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
15160
15161 * conf/i386-ieee1275.rmk: Likewise.
15162
e14a6184 151632008-08-03 Robert Millan <rmh@aybabtu.com>
15164
15165 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
15166 (grub_console_setcursor): Make it possible to set cursor off.
15167
52768e37 151682008-08-03 Robert Millan <rmh@aybabtu.com>
15169
15170 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
15171 of modules instead of assuming which platform provides what.
15172 * util/update-grub.in: Likewise.
15173
2d52f57f 151742008-08-03 Robert Millan <rmh@aybabtu.com>
15175
15176 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
15177 instead of `grub_install_dos_part' to determine whether a drive needs
15178 to be prepended to prefix (`grub_install_dos_part' is not reliable,
825aa57a 15179 because it can be overridden when loading GRUB via Multiboot).
2d52f57f 15180
2a5cd121 151812008-08-02 Robert Millan <rmh@aybabtu.com>
15182
15183 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
15184
93808428 151852008-08-02 Robert Millan <rmh@aybabtu.com>
15186
15187 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
15188 of informational grub_dprintf() calls.
15189
3bd0a12a 151902008-08-02 Robert Millan <rmh@aybabtu.com>
15191
15192 * disk/memdisk.c (memdisk_size): Don't initialize.
15193 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
15194
15195 * include/grub/i386/pc/kernel.h
15196 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
15197 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
15198 (grub_memdisk_image_size, grub_arch_memdisk_addr)
15199 (grub_arch_memdisk_size): Remove.
15200
15201 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
15202 field (was only used to transfer a constant). Add `type' field to
15203 support multiple module types.
15204 (grub_module_iterate): New function.
15205
15206 * kern/device.c (grub_device_open): Do not hide error messages
15207 when grub_disk_open() fails. Use grub_print_error() instead.
15208
15209 * kern/i386/pc/init.c (grub_arch_modules_addr)
15210 (grub_arch_memdisk_size): Remove functions.
15211 (grub_arch_modules_addr): Return the module address in high memory
15212 (now that it isn't copied anymore).
15213
15214 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
15215 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
15216 decompression routine (grub_total_module_size already includes that
15217 now). Don't copy modules back to low memory.
15218
15219 * kern/main.c: Include `<grub/mm.h>'.
15220 (grub_load_modules): Split out (and use) ...
15221 (grub_module_iterate): ... this function, which iterates through
15222 module objects and runs a hook.
15223 Comment out grub_mm_init_region() call, as it would cause non-ELF
15224 modules to be overwritten.
15225
15226 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
15227 the memdisk image in its own region, make it part of the module list.
15228 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
15229 (main): Parse --memdisk|-m option, and pass user-provided path as
15230 parameter to generate_image().
15231 (add_segments): Pass `memdisk_path' down to load_modules().
15232 (load_modules): Embed memdisk image in module section when requested.
15233 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
15234 `header.type' instead of `header.offset'.
15235
15236 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
15237 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
15238 (memdisk_mod_LDFLAGS): New variables.
15239 * conf/i386-coreboot.rmk: Likewise.
15240 * conf/i386-ieee1275.rmk: Likewise.
15241
a927cc73 152422008-08-02 Robert Millan <rmh@aybabtu.com>
15243
15244 * loader/i386/pc/multiboot.c (playground, forward_relocator)
15245 (backward_relocator): New variables. Used to allocate and relocate
15246 the payload, respectively.
15247 (grub_multiboot_load_elf32): Load into heap instead of requested
825aa57a 15248 address, install the appropriate relocator code in each bound of
a927cc73 15249 the payload, and set the entry point such that
15250 grub_multiboot_real_boot() will jump to one of them.
15251
15252 * kern/i386/loader.S (grub_multiboot_payload_size)
15253 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
15254 (grub_multiboot_payload_entry_offset): New variables.
15255 (grub_multiboot_real_boot): Set cpu context to what the relocator
15256 expects, and jump to the relocator instead of the payload.
15257
15258 * include/grub/i386/loader.h (grub_multiboot_payload_size)
15259 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
15260 (grub_multiboot_payload_entry_offset): Export.
15261
b15d8a0c 152622008-08-01 Bean <bean123ch@gmail.com>
15263
15264 * normal/menu_entry.c (editor_getline): Don't return the original
15265 string as result, as it will be released by lexer once it has done
15266 using it.
15267
cdfb3d22 152682008-08-01 Robert Millan <rmh@aybabtu.com>
15269
15270 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
15271 within menuentries, not before them.
15272 util/grub.d/10_hurd.in: Likewise.
15273
9175e93d 152742008-08-01 Bean <bean123ch@gmail.com>
15275
15276 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
15277 (bufio_mod_SOURCES): New macro.
15278 (bufio_mod_CFLAGS): Likewise.
15279 (bufio_mod_LDFLAGS): Likewise.
15280
15281 * include/grub/bufio.h: New file.
15282
15283 * io/bufio.c: Likewise.
15284
15285 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
15286 (grub_video_reader_png): Use grub_buffile_open to open file.
15287
15288 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
15289 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
15290
15291 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
15292 (grub_video_reader_tga): Use grub_buffile_open to open file.
15293
15294 * font/manager.c: Include <grub/bufio.h>.
15295 (add_font): Use grub_buffile_open to open file.
15296
3d8383e7 152972008-07-31 Robert Millan <rmh@aybabtu.com>
15298
15299 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
15300 ELF segments, use a macro for arbitrarily accessing any of them instead
15301 of preparing a pointer that allows access to one at a time.
15302 (grub_multiboot_load_elf64): Likewise.
15303
16e641b6 153042008-07-31 Bean <bean123ch@gmail.com>
15305
15306 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
15307 GRUB_KERNEL_MACHINE_DATA_END.
15308
59198b72 153092008-07-30 Robert Millan <rmh@aybabtu.com>
15310
15311 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
15312 Increase from 0x50 to 0x60.
15313 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
15314 use UUIDs to identify the root drive for them. If that's not
15315 possible, abort.
15316 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
15317 check, for cross-disk installs.
15318
ae88bca3 153192008-07-30 Robert Millan <rmh@aybabtu.com>
15320
15321 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
15322 is non-empty, use it to set the `prefix' environment variable instead
15323 of the usual approach.
15324 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
15325 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
15326 environment variable instead of dummy make_install_device().
15327
15328 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
15329 (start): Insert a data section, with `grub_prefix' variable.
825aa57a 15330 * kern/i386/linuxbios/startup.S: Likewise.
ae88bca3 15331
15332 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
15333 New variable reference.
15334 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
15335 New macro. Defines offset of `grub_prefix' within startup.S (relative
15336 to `start').
15337 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
15338 section within startup.S (relative to `start').
15339 * include/grub/i386/coreboot/kernel.h: Likewise.
15340
15341 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
15342 Overwrite grub_prefix with its contents, at the beginning of the
15343 first segment.
15344 (main): Understand -p|--prefix.
15345
14f41dd1 153462008-07-30 Robert Millan <rmh@aybabtu.com>
15347
15348 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
15349
4ca049a3 153502008-07-30 Robert Millan <rmh@aybabtu.com>
15351
15352 * term/i386/pc/vga_text.c (grub_console_cls): Use
15353 grub_console_gotoxy() to go back to beginning of the screen.
15354 Found by Patrick Georgi <patrick.georgi@coresystems.de>
15355
2921d337 153562008-07-29 Christian Franke <franke@computer.org>
15357
15358 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
15359 Add conversion of emulated mount points on Cygwin.
15360
b609876d 153612008-07-29 Christian Franke <franke@computer.org>
15362
15363 * util/update-grub.in: Add a check for admin
15364 group on Cygwin.
15365 Remove old `grub.cfg.new' before creation.
15366 Add `-f' to `mv' to handle the different filesystem
15367 semantics of Windows.
15368
e93e4679 153692008-07-29 Bean <bean123ch@gmail.com>
15370
15371 * normal/main.c (get_line): Fix buffer overflow bug.
15372
41694fd0 153732008-07-28 Robert Millan <rmh@aybabtu.com>
15374
15375 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
15376 (struct grub_apple_header): New struct. Describes the layout of
15377 the partmap header.
15378 (apple_partition_map_iterate): Check the header magic as well as the
15379 partition magic (which was already being checked).
15380
cfd0b4e6 153812008-07-28 Pavel Roskin <proski@gnu.org>
15382
15383 * genmk.rb: Add a warning to the beginning of the output that
15384 it's a generated file and should not be edited.
15385
93cce016 153862008-07-28 Robert Millan <rmh@aybabtu.com>
15387
15388 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
15389 with the same number are found, just use issue a warning with
15390 grub_dprintf(), as this error has been reported to be non-fatal.
c298def0 15391
cd1df915 153922008-07-27 Robert Millan <rmh@aybabtu.com>
15393
15394 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
15395 information.
15396
b70a8427 153972008-07-27 Bean <bean123ch@gmail.com>
15398
15399 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
15400 (grub_fat_find_dir): Ignore case when comparing filename.
15401
8f5e379f 154022008-07-27 Bean <bean123ch@gmail.com>
15403
15404 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
15405 smallino, as it's more descriptive, and i8count can be confused with
15406 the other field count.
15407 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
15408 inode type.
15409
a85cd5a0 154102008-07-27 Bean <bean123ch@gmail.com>
15411
15412 * commands/crc.c: New file.
15413
15414 * lib/crc.c: Likewise.
15415
15416 * include/grub/lib/crc.h: Likewise.
15417
15418 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
15419
15420 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
15421 (hexdump): Move this function to ...
15422
15423 * lib/hexdump.c: ... here.
15424
15425 * include/grub/hexdump.h: Renamed to ...
15426
15427 * include/grub/lib/hexdump.h: ... this.
15428
15429 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
15430
15431 * util/grub-editenv.c: Likewise.
15432
15433 * include/envblk.h: Renamed to ...
15434
15435 * include/lib/envblk.h: ... this.
15436
15437 * util/envblk.c: Renamed to ...
15438
15439 * lib/envblk.c: ... this.
15440
15441 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
15442 lib/hexdump.c.
15443 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
15444 (pkglib_MODULES): Add crc.mod.
15445 (hexdump_mod_SOURCES): Add lib/hexdump.c.
15446 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
15447 (crc_mod_SOURCES): New macro.
15448 (crc_mod_CFLAGS): Likewise.
15449 (crc_mod_LDFLAGS): Likewise.
15450
15451 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
15452
15453 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
15454
15455 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
15456
15457 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
15458
15459 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
15460
c298def0 154612008-07-27 Felix Zielcke <fzielcke@z-51.de>
8749e9e5 15462
15463 * commands/help.c: Include <grub/term.h>.
15464 (TERM_WIDTH): Removed. Updated all users.
15465
cc349fb3 154662008-07-27 Pavel Roskin <proski@gnu.org>
15467
15468 * util/getroot.c (find_root_device): Rephrase a comment to avoid
15469 spurious warnings about a comment within a comment.
15470
9051607e 154712008-07-25 Robert Millan <rmh@aybabtu.com>
15472
15473 * util/getroot.c (find_root_device): Skip devices that match
15474 /dev/dm-[0-9]. This lets the real device be found for any type of
15475 abstraction (LVM, EVMS, RAID..).
15476 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
15477 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
15478 device is found first, find_root_device() will now skip it.
15479
01453bfc 154802008-07-24 Pavel Roskin <proski@gnu.org>
15481
15482 * include/grub/types.h: Use __builtin_bswap32() and
15483 __builtin_bswap64() with gcc 4.3 and newer.
15484
6af9849f 154852008-07-24 Christian Franke <franke@computer.org>
15486
3a0fa256 15487 * util/i386/pc/grub-install.in: If `--debug' is specified,
15488 pass `--verbose' to grub-setup.
15489 Abort script if make_system_path_relative_to_its_root() fails.
15490
7810e747 154912008-07-24 Bean <bean123ch@gmail.com>
15492
15493 * configure.ac: Fixed a bug caused by the previous cygwin patch,
15494 variable `target_platform' should be `platform'.
15495
42290e17 154962008-07-24 Bean <bean123ch@gmail.com>
15497
51cc5193 15498 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
42290e17 15499 (grub_png_init_fixed_block): New function.
15500 (grub_png_decode_image_data): Handle fixed huffman code compression.
15501
2a8a80e4 155022008-07-24 Bean <bean123ch@gmail.com>
15503
15504 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
15505 (grub_pe2elf_SOURCES): New macro.
15506 (CLEANFILES): Add grub-pe2elf.
15507
15508 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
15509 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
15510 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
15511 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
15512 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
15513 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
15514 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
15515 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
15516 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
15517 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
15518 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
15519 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
15520 (GRUB_PE32_DT_FUNCTION): Likewise.
15521 (GRUB_PE32_REL_I386_DIR32): Likewise.
15522 (GRUB_PE32_REL_I386_REL32): Likewise.
15523 (grub_pe32_symbol): New structure.
15524 (grub_pe32_reloc): Likewise.
15525
15526 * util/grub-pe2elf.c: New file.
15527
15528 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
15529 start symbol in non pc platform.
15530
15531 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
15532
15533 The following patches are from Christian Franke.
15534
15535 * include/grub/dl.h: Remove .previous, gas supports this only
15536 for ELF format.
15537
15538 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
15539 Remove .type, gas supports this only for ELF format.
15540
15541 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
15542 nullbytes in symbol table. This fixes an infinite loop if table is
15543 zero filled.
15544
15545 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
15546 TARGET_IMG_LDFLAGS and EXEEXT.
15547
15548 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
15549 TARGET_IMG_LDFLAGS_AC.
15550 (grub_CHECK_STACK_ARG_PROBE): New function.
15551
15552 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
15553
15554 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
15555
15556 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
15557 to set TARGET_IMG_LD* accordingly.
15558 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
15559 Add call to grub_CHECK_STACK_ARG_PROBE.
15560 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
15561
15562 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
15563
15564 * genmk.rb: Add EXEEXT to CLEANFILES.
15565
12ccdb75 155662008-07-23 Robert Millan <rmh@aybabtu.com>
15567
15568 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
15569 define the codes for arrows and lines used for the menu).
15570 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
15571 as well.
15572
15573 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
15574 fonts, because the latter are too slow.
15575
18eeaf04 155762008-07-21 Bean <bean123ch@gmail.com>
15577
15578 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
15579 a20. Run keyboard test last, as it will cause macbook to halt.
15580
b095e2ad 155812008-07-18 Pavel Roskin <proski@gnu.org>
15582
15583 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
15584 load foreign architecture modules correctly anyway. Keep
15585 support for loading host architecture modules, whether we
15586 compile them or not.
15587
737feb35 155882008-07-17 Pavel Roskin <proski@gnu.org>
15589
3f4ce737 15590 * configure.ac: Use -m32 or -m64 regardless of whether we had to
15591 change target_cpu. The compiler default can mismatch target_cpu
15592 in any case.
15593
4ad2d049 15594 * disk/efi/efidisk.c: Fix format warnings on x86_64.
15595 * kern/efi/efi.c: Likewise.
15596
f6130a12 15597 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
15598 target compiler is functional.
15599 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
15600 are set up.
15601
58393a2d 15602 * configure.ac: Default to efi platform for x86_64-apple. Allow
15603 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
15604 adjustments from the rest, only do them if target is not
15605 explicitly given. Merge other adjustments with the final sanity
15606 check. Remove an extraneous check for supported CPU. Be
15607 specific which CPU and which platform is not supported.
15608
737feb35 15609 * configure.ac: Default to pc platform for x86_64.
15610
546f966a 156112008-07-17 Robert Millan <rmh@aybabtu.com>
15612
15613 Partial LinuxBIOS -> Coreboot rename.
15614
15615 * conf/i386-linuxbios.rmk: Renamed to ...
15616 * conf/i386-coreboot.rmk: ... this.
15617 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
15618 * configure.ac: Accept "coreboot" as input platform (but maintain
15619 compatibility with "linuxbios").
15620 * include/grub/i386/linuxbios: Renamed to ...
15621 * include/grub/i386/coreboot: ... this.
15622
20011694 156232008-07-17 Bean <bean123ch@gmail.com>
15624
15625 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
c11f6d16 15626 (appleldr_mod_SOURCE): New variable.
20011694 15627 (appleldr_mod_CFLAGS): Likewise.
15628 (appleldr_mod_LDFLAGS): Likewise.
15629 (pci_mod_SOURCES): Likewise.
15630 (pci_mod_CFLAGS): Likewise.
15631 (pci_mod_LDFLAGS): Likewise.
15632 (lspci_mod_SOURCES): Likewise.
15633 (lspci_mod_CFLAGS): Likewise.
15634 (lspci_mod_LDFLAGS): Likewise.
15635
15636 * conf/x86_64-efi.rmk: New file.
15637
15638 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
15639 macro.
15640 (grub_efidisk_write): Likewise.
15641
15642 * include/efi/api.h (efi_call_0): New macro.
15643 (efi_call_1): Likewise.
15644 (efi_call_2): Likewise.
15645 (efi_call_3): Likewise.
15646 (efi_call_4): Likewise.
15647 (efi_call_5): Likewise.
15648 (efi_call_6): Likewise.
15649
15650 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
15651 grub_rescue_cmd_chainloader.
15652
15653 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
15654 (grub_pe32_optional_header): Change some fields based on i386 or
15655 x86_64 platform.
15656 (GRUB_PE32_PE32_MAGIC): Likewise.
15657
15658 * include/grub/efi/uga_draw.h: New file.
15659
15660 * include/grub/elf.h (STN_ABS): New constant.
15661 (R_X86_64_NONE): Relocation constant for x86_64.
15662 (R_X86_64_64): Likewise.
15663 (R_X86_64_PC32): Likewise.
15664 (R_X86_64_GOT32): Likewise.
15665 (R_X86_64_PLT32): Likewise.
15666 (R_X86_64_COPY): Likewise.
15667 (R_X86_64_GLOB_DAT): Likewise.
15668 (R_X86_64_JUMP_SLOT): Likewise.
15669 (R_X86_64_RELATIVE): Likewise.
15670 (R_X86_64_GOTPCREL): Likewise.
15671 (R_X86_64_32): Likewise.
15672 (R_X86_64_32S): Likewise.
15673 (R_X86_64_16): Likewise.
15674 (R_X86_64_PC16): Likewise.
15675 (R_X86_64_8): Likewise.
15676 (R_X86_64_PC8): Likewise.
15677
15678 * include/grub/i386/efi/pci.h: New file.
15679
15680 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
15681 Change it value based on platform.
15682 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
15683 (GRUB_E820_RAM): Likewise.
15684 (GRUB_E820_RESERVED): Likewise.
15685 (GRUB_E820_ACPI): Likewise.
15686 (GRUB_E820_NVS): Likewise.
15687 (GRUB_E820_EXEC_CODE): Likewise.
15688 (GRUB_E820_MAX_ENTRY): Likewise.
15689 (grub_e820_mmap): New structure.
15690 (linux_kernel_header): Change the efi field according to different
15691 kernel version, also field from linux_kernel_header.
15692
15693 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
15694
15695 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
15696 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
15697 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
15698 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
15699 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
15700 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
15701 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
15702 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
15703 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
15704 (GRUB_PCI_ADDR_IO_MASK): Likewise.
15705
15706 * include/grub/x86_64/efi/kernel.h: New file.
15707
15708 * include/grub/x86_64/efi/loader.h: Likewise.
15709
15710 * include/grub/x86_64/efi/machine.h: Likewise.
15711
15712 * include/grub/x86_64/efi/pci.h: Likewise.
15713
15714 * include/grub/x86_64/efi/time.h: Likewise.
15715
15716 * include/grub/x86_64/linux.h: Likewise.
15717
15718 * include/grub/x86_64/setjmp.h: Likewise.
15719
15720 * include/grub/x86_64/time.h: Likewise.
15721
15722 * include/grub/x86_64/types.h: Likewise.
15723
15724 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
15725 GRUB_TARGET_SIZEOF_VOID_P.
15726
15727 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
15728 (grub_efi_locate_handle): Likewise.
15729 (grub_efi_open_protocol): Likewise.
15730 (grub_efi_set_text_mode): Likewise.
15731 (grub_efi_stall): Likewise.
15732 (grub_exit): Likewise.
15733 (grub_reboot): Likewise.
15734 (grub_halt): Likewise.
15735 (grub_efi_exit_boot_services): Likewise.
15736 (grub_get_rtc): Likewise.
15737
15738 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
15739 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
15740 (grub_efi_allocate_pages): Wrap efi calls.
15741 (grub_efi_free_pages): Wrap efi calls.
15742 (grub_efi_get_memory_map): Wrap efi calls.
15743
15744 * kern/x86_64/dl.c: New file.
15745
15746 * kern/x86_64/efi/callwrap.S: Likewise.
15747
15748 * kern/x86_64/efi/startup.S: Likewise.
15749
15750 * loader/efi/appleloader.c: Likewise.
15751
15752 * loader/efi/chainloader.c (cmdline): New variable.
15753 (grub_chainloader_unload): Wrap efi calls.
15754 (grub_chainloader_boot): Likewise.
15755 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
15756 command line.
15757
15758 * loader/efi/chainloader_normal.c (chainloader_command):
15759 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
15760 command line.
15761
15762 * loader/i386/efi/linux.c (allocate_pages): Change allocation
15763 method.
15764 (grub_e820_add_region): New function.
15765 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
15766 booting.
15767 (grub_find_video_card): New function.
15768 (grub_linux_setup_video): New function.
15769 (grub_rescue_cmd_linux): Probe for video information.
15770
15771 * normal/x86_64/setjmp.S: New file.
15772
15773 * term/efi/console.c (map_char): New function.
15774 (grub_console_putchar): Map unicode char.
15775 (grub_console_checkkey): Wrap efi calls.
15776 (grub_console_getkey): Likewise.
15777 (grub_console_getwh): Likewise.
15778 (grub_console_gotoxy): Likewise.
15779 (grub_console_cls): Likewise.
15780 (grub_console_setcolorstate): Likewise.
15781 (grub_console_setcursor): Likewise.
15782
15783 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
15784
59652a20 157852008-07-16 Pavel Roskin <proski@gnu.org>
15786
ef294055 15787 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
15788 format strings.
15789
59652a20 15790 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
15791 pointer, not an integer. This fixes a warning and prevents
15792 precision loss on 64-bit systems.
15793 (relocate_addresses): Remove unneeded cast.
15794
afc3b5d7 157952008-07-15 Pavel Roskin <proski@gnu.org>
15796
506b2b3e 15797 * kern/i386/ieee1275/init.c: Include grub/cache.h.
15798
62ead89c 15799 * term/ieee1275/ofconsole.c: Disable code unused on i386.
15800
c4cd51d7 15801 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
15802 Fix comparison between signed and unsigned.
15803
0d3d8f28 15804 * include/grub/i386/ieee1275/console.h: Declare
15805 grub_console_init() and grub_console_fini().
15806
8804b286 15807 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
15808 It's empty and unused.
15809
ee01cf35 15810 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
15811 beginning to avoid warnings with some compilers.
15812
afc3b5d7 15813 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
15814 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
15815
e4e8eaa5 158162008-07-14 Pavel Roskin <proski@gnu.org>
15817
407aceb4 15818 * kern/env.c (grub_register_variable_hook): Don't copy empty
15819 string, it leaks memory. Pass "" to grub_env_set(), it should
15820 handle constant strings.
15821
e4e8eaa5 15822 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
15823 * commands/cmp.c (grub_cmd_cmp): Likewise.
15824 * kern/dl.c (grub_dl_flush_cache): Likewise.
15825 (grub_dl_load_core): Likewise.
15826 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
15827 (grub_elf64_load_phdrs): Likewise.
15828
d4e2dad3 158292008-07-13 Pavel Roskin <proski@gnu.org>
15830
15831 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
15832 between signed and unsigned.
15833 (LzmaEnc_Finish): Fix warning about an unused parameter.
15834
aa24b516 158352008-07-13 Bean <bean123ch@gmail.com>
15836
15837 * Makefile.in (enable_lzo): New rule.
15838
15839 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
15840
15841 * configure.ac (ENABLE_LZO): New option --enable-lzo.
15842
15843 * boot/i386/pc/lnxboot.S: #include <config.h>.
15844
15845 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
fe987087 15846 its value according to the compression algorithm used, lzo or lzma.
aa24b516 15847
15848 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
15849 compression algorithm according to configure macro.
15850
15851 * kern/i386/pc/startup.S (codestart): Likewise.
15852
15853 * kern/i386/pc/lzma_decode.S: New file.
15854
15855 * include/grub/lib/LzFind.h: Likewise.
15856
15857 * include/grub/lib/LzHash.h: Likewise.
15858
15859 * include/grub/lib/LzmaDec.h: Likewise.
15860
15861 * include/grub/lib/LzmaEnc.h: Likewise.
15862
15863 * include/grub/lib/LzmaTypes.h: Likewise.
15864
15865 * lib/LzFind.c: Likewise.
15866
15867 * lib/LzmaDec.c: Likewise.
15868
15869 * lib/LzmaEnc.c: Likewise.
15870
4ae821ac 158712008-07-13 Bean <bean123ch@gmail.com>
15872
15873 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
15874 (grub_ext4_extent_header): New structure.
15875 (grub_ext4_extent): Likewise.
15876 (grub_ext4_extent_idx): Likewise.
15877 (grub_ext4_find_leaf): New function.
15878 (grub_ext2_read_block): Handle extents.
15879
9a745147 158802008-07-12 Robert Millan <rmh@aybabtu.com>
15881
15882 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
15883
d49a4cf6 158842008-07-11 Robert Millan <rmh@aybabtu.com>
15885
15886 * util/grub.d/40_custom.in: New file. Example on how to add custom
15887 entries to /etc/grub.d.
15888 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
15889 40_custom (implicitly, by merging all the grub.d rules).
15890
947414b4 158912008-07-11 Pavel Roskin <proski@gnu.org>
15892
0059cf6f 15893 * commands/read.c (grub_getline): Fix invalid memory access.
15894 Don't add newline to the variable value.
15895
947414b4 15896 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
15897 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
15898 (serial_hw_get_port): Check validity of the port number.
15899 (grub_cmd_serial): Check return value of serial_hw_get_port().
15900
62a02d00 159012008-07-07 Pavel Roskin <proski@gnu.org>
15902
15903 * boot/i386/pc/diskboot.S (notification_string): Replace
15904 "Loading kernel" with just "loading". This is shorter, less
15905 confusing and saves a few bytes for possible future changes.
15906
3e5581b0 159072008-07-05 Pavel Roskin <proski@gnu.org>
15908
ea387a48 15909 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
15910 size for ATAPI devices, they are undefined. Output sector
15911 number in decimal form.
15912
3e5581b0 15913 * disk/ata.c: Use named constants for status bits.
15914
fdecb8fd 159152008-07-04 Pavel Roskin <proski@gnu.org>
15916
bcd35b90 15917 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
15918 grub_addr_t before casting it to the void pointer to fix a
15919 warning. Non-addressable regions are discarded earlier.
15920 (grub_arch_modules_addr): Cast _end to grub_addr_t.
15921 * kern/i386/linuxbios/table.c: Include grub/misc.h.
15922 (check_signature): Don't shadow table_header.
15923 (grub_linuxbios_table_iterate): Cast numeric constants to
15924 grub_linuxbios_table_header_t.
15925 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
15926 grub_stop().
15927
af58ab3d 15928 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
15929 prevent warnings.
15930
1759aa57 15931 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
15932 pointer, which can cause warnings. Support 64-bit addresses.
15933
fdecb8fd 15934 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
15935 of sizeof(long). This fixes PowerPC image generation on x86_64.
15936
8516d2a8 159372008-07-04 Robert Millan <rmh@aybabtu.com>
15938
15939 This fixes a performance issue when pc & gpt partmap iterators
15940 didn't abort iteration even after our hook found what it was
fe987087 15941 looking for (often causing expensive probes of non-existent drives).
8516d2a8 15942
15943 Some callers relied on previous buggy behaviour, since they would
34c44600 15944 raise an error when their own hooks caused early abortion of its
8516d2a8 15945 iteration.
15946
15947 * kern/device.c (grub_device_open): Improve error message.
15948 * disk/lvm.c (grub_lvm_open): Likewise.
15949 * disk/raid.c (grub_raid_open): Likewise.
15950
15951 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
15952 when hook requests it, independently of grub_errno.
15953 (pc_partition_map_probe): Do not fail when find_func() caused
15954 early abortion of pc_partition_map_iterate().
15955
15956 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
15957 when hook requests it, independently of grub_errno.
15958 (gpt_partition_map_probe): Do not fail when find_func() caused
15959 early abortion of gpt_partition_map_iterate().
15960
15961 * kern/partition.c (grub_partition_iterate): Abort parent iteration
15962 when hook requests it, independently of grub_errno. Do not fail when
15963 part_map_iterate_hook() caused early abortion of p->iterate().
15964
15965 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
15966 when grub_partition_iterate() returned with non-zero.
15967
277d0de9 159682008-07-03 Pavel Roskin <proski@gnu.org>
15969
15970 * disk/ata.c (grub_ata_pio_write): Check status before writing,
15971 like we do in grub_ata_pio_read().
15972 (grub_ata_readwrite): Always write individual sectors. Fix the
15973 sector count for the remainder.
15974 (grub_ata_write): Enable writing to ATA devices. Correctly
15975 report error for ATAPI devices.
15976
d4c9b428 159772008-07-02 Pavel Roskin <proski@gnu.org>
15978
e43fc690 15979 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
15980 warning.
15981
f707af42 15982 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
15983 for every read sector, we already increment it for the whole
15984 batch. This fixes reading more than 256 sectors at once.
15985
11e16b15 15986 * util/grub-editenv.c (cmd_info): Cast argument to long
15987 explicitly. ptrdiff_t reduces to int on i386.
15988
cbabfdd4 15989 * util/grub-editenv.c (main): Be specific which parameter is
15990 missing.
15991
b8fbce0a 15992 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
15993 (memdisk): Make memdisk_orig_addr a pointer.
15994
c9c8e606 15995 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
15996 for file offsets, use grub_off_t instead. Fix printf format
15997 warnings.
15998
ca62e598 15999 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
16000 there. Real unexpected warnings should not drown in the noise
16001 about known problems.
16002
ce8d1766 16003 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
16004 grub_disk_addr_t for memory addresses.
16005
00c7a56a 16006 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
16007 explicitly to fix a warning.
16008
08d3ef09 16009 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
16010
cb71ba20 16011 * Makefile.in (MODULE_LDFLAGS): New variable.
16012 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
16013 the linker accepts --build-id=none.
16014 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
16015 MODULE_LDFLAGS.
16016 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
16017
d4c9b428 16018 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
16019 those in Linux XFS code. Provide a way to access 64-bit parent
16020 inode.
16021 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
16022 the end of struct grub_xfs_dir_header.
16023
d4156eee 160242008-07-02 Bean <bean123ch@gmail.com>
16025
16026 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
16027 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
16028 and GRUB_IEEE1275_FLAG_NO_ANSI.
16029
16030 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
16031 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
16032 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
16033
16034 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
16035 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
16036
16037 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
16038 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
16039
16040 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
16041 esc sequence on non ANSI terminal.
16042 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
16043
16044 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
16045 beginning of file.
16046
2270f77b 160472008-07-02 Bean <bean123ch@gmail.com>
16048
16049 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
16050 (grub_editenv_SOURCES): New variable.
16051 (pkglib_MODULES): Add loadenv.mod.
16052 (loadenv_mod_SOURCES): New variable.
16053 (loadenv_mod_CFLAGS): Likewise.
16054 (loadenv_mod_LDFLAGS): Likewise.
16055
16056 * include/grub/envblk.h: New file.
16057
16058 * util/envblk.c: New file.
16059
16060 * util/grub-editenv.c: New file.
16061
16062 * commands/loadenv.c: New file.
16063
0e9e51ec 160642008-07-01 Pavel Roskin <proski@gnu.org>
16065
d89b7634 16066 * include/multiboot2.h (struct multiboot_tag_module): Use char,
16067 not unsigned char. This fixes warnings and is consistent with
16068 other tags.
16069
bf1835b1 16070 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
16071
8222a04b 16072 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
16073
6a42d99d 16074 * term/tparm.c (analyze): Always set *popcount.
16075
10b159d1 16076 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
16077 cast to fix a warning.
16078
b8789f6c 16079 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
16080 cast to suppress a warning.
16081
29d7e38a 16082 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
16083 grub_fshelp_read_file() expects.
16084
f341f669 16085 * fs/fat.c: Fix UUID calculation on big-endian systems. We
16086 write uuid as a 32-bit value in CPU byte order, so declare and
16087 use it as such.
16088
0e9e51ec 16089 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
16090 long if the format specifier expects it.
16091 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
16092 * partmap/pc.c (pc_partition_map_iterate): Likewise.
16093 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
16094 long to fix a warning.
16095 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
16096 grub_dprintf() arguments to fix warnings.
16097
3aefa857 160982008-06-30 Pavel Roskin <proski@gnu.org>
16099
56c7668b 16100 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
16101 install_bsd_part immediately before core.img is embedded or
16102 modified on disk. This fixes core.img verification if core.img
16103 cannot be embedded.
16104
3aefa857 16105 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
16106 core_path to calculate the blocklist.
16107 Patch from Javier Martín <lordhabbit@gmail.com>
16108
5444088d 161092008-06-29 Robert Millan <rmh@aybabtu.com>
16110
16111 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
16112 block to disk block.
16113 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
16114 Patch from Niels Böhm <bitbucket@arcor.de>
16115
674835c8 161162008-06-29 Robert Millan <rmh@aybabtu.com>
16117
16118 * util/update-grub_lib.in (font_path): Search for fonts in
16119 /boot/grub first, which is more likely to be readable (we aren't
16120 deciding where fonts live, just looking for them).
16121
f527dbc8 161222008-06-26 Pavel Roskin <proski@gnu.org>
16123
6c2d8df6 16124 * util/biosdisk.c (read_device_map): Don't leave dead map
16125 entries for devices failing stat() check.
16126
f527dbc8 16127 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
16128 core_path_dev for the core.img path on the target device.
16129
aebe3d13 161302008-06-26 Robert Millan <rmh@aybabtu.com>
16131
16132 * disk/fs_uuid.c: New file.
16133 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
16134 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
16135 (fs_uuid_mod_LDFLAGS): New variables.
16136 * include/grub/disk.h (grub_disk_dev_id): Add
16137 `GRUB_DISK_DEVICE_UUID_ID'.
16138 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
16139 implement iterate().
16140
37aaf354 161412008-06-26 Robert Millan <rmh@aybabtu.com>
16142
16143 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
16144 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
16145 Linux image includes no initrd.
16146
25ff262a 161472008-06-21 Javier Martín <lordhabbit@gmail.com>
16148
16149 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
16150 call to resolve the core image location that effectively appended the
16151 name twice.
16152
76a2bd44 161532008-06-21 Robert Millan <rmh@aybabtu.com>
16154
16155 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
16156 call from here ...
16157
16158 * util/grub.d/10_hurd.in: ... to here ...
16159 * util/grub.d/10_linux.in: ... and here.
16160
650e1c79 161612008-06-19 Robert Millan <rmh@aybabtu.com>
16162
fe987087 16163 * kern/main.c (grub_main): Export `prefix' variable immediately
650e1c79 16164 after it has been set by grub_machine_set_prefix().
16165
6ce63911 161662008-06-19 Robert Millan <rmh@aybabtu.com>
16167
16168 * commands/search.c (search_label, search_fs_uuid, search_file): Print
16169 search result when not saving to variable, not the other way around.
16170 When saving to variable, abort iteration as soon as a match is found.
16171
73940cec 161722008-06-19 Robert Millan <rmh@aybabtu.com>
16173
16174 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
16175 check for partition that provides /boot/grub. Its logic is flawed,
16176 as it prevents prepare_grub_to_access_device() from being called
16177 multiple times.
16178
3c62a39d 161792008-06-19 Robert Millan <rmh@aybabtu.com>
16180
16181 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
16182 "insmod" command directly when abstraction modules are needed,
fe987087 16183 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
3c62a39d 16184 since it had already been processed).
16185
47395a42 161862008-06-19 Pavel Roskin <proski@gnu.org>
16187
16188 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
16189 changed. This is needed in case GRUB_LIBDIR changes.
16190 * conf/i386-ieee1275.rmk: Likewise.
16191 * conf/i386-linuxbios.rmk: Likewise.
16192 * conf/i386-pc.rmk: Likewise.
16193 * conf/powerpc-ieee1275.rmk: Likewise.
16194
a145ac2d 161952008-06-18 Pavel Roskin <proski@gnu.org>
16196
16197 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
16198 kernel_elf_symlist.c to symlist.c for consistency with other
16199 architectures. Update all users.
16200 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
16201
7847c51e 162022008-06-18 Robert Millan <rmh@aybabtu.com>
16203
16204 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
16205 it in prefix.
16206
16207 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
16208 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
16209 a RAID device, run setup() for all members independently on whether
16210 LVM abstraction is being used.
16211 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
16212 If grub-mkimage has set `*install_dos_part == -2', don't override this
16213 value.
16214 Perform *install_dos_part adjustments independently on whether
16215 we're embedding or not.
16216 Clarify error message when image is too big for embedding.
16217 Remove duplicate *install_dos_part stanza.
16218
b23e5644 162192008-06-17 Robert Millan <rmh@aybabtu.com>
16220
16221 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
16222 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
16223 variables.
16224 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
16225 values in grub_ofconsole_normal_color and
16226 grub_ofconsole_highlight_color (they're not directly related to
16227 background and foreground).
16228 (grub_ofconsole_setcolorstate): Extract background and foreground
16229 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
16230
0aac2f79 162312008-06-17 Robert Millan <rmh@aybabtu.com>
16232
16233 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
16234 /boot/grub for the check in last commit, not /boot (they could be
16235 different partitions).
16236
3cca7ef3 162372008-06-16 Robert Millan <rmh@aybabtu.com>
16238
16239 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
16240 asked to setup access for the same partition that provides /boot,
16241 don't bother using UUIDs since our root already has the value we
16242 want.
16243
347396d8 162442008-06-16 Robert Millan <rmh@aybabtu.com>
16245
16246 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
16247 I2O devices.
16248 Patch from Sven Mueller <sven@debian.org>.
16249
991477f8 162502008-06-16 Robert Millan <rmh@aybabtu.com>
16251
16252 * util/update-grub.in: Check for $EUID instead of $UID.
16253 Reported by Vincent Zweije.
16254
d31a32a1 162552008-06-16 Bean <bean123ch@gmail.com>
16256
fe987087 16257 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
d31a32a1 16258 (grub_ext2_read_block): Likewise.
16259 (grub_ext2_read_inode): Likewise.
16260 (grub_ext2_mount): Likewise.
16261 (grub_ext2_close): Likewise.
16262 (grub_ext3_get_journal): Removed.
16263
fe987087 16264 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
d31a32a1 16265 (grub_reiserfs_read_symlink): Likewise.
16266 (grub_reiserfs_mount): Likewise.
16267 (grub_reiserfs_open): Likewise.
16268 (grub_reiserfs_read): Likewise.
16269 (grub_reiserfs_close): Likewise.
16270 (grub_reiserfs_get_journal): Removed.
16271
16272 * fs/fshelp.c (grub_fshelp_read): Removed.
16273 (grub_fshelp_map_block): Likewise.
16274
16275 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
16276 (grub_fshelp_journal): Likewise.
16277 (grub_fshelp_read): Likewise.
16278 (grub_fshelp_map_block): Likewise.
16279
3540a760 162802008-06-16 Pavel Roskin <proski@gnu.org>
16281
16282 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
16283 floating point anymore.
16284 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
16285
95614c84 162862008-06-15 Pavel Roskin <proski@gnu.org>
16287
16288 * commands/ls.c (grub_ls_list_files): Use integer calculations
16289 for human readable format, avoid floating point use.
16290 * kern/misc.c (grub_ftoa): Remove.
16291 (grub_vsprintf): Remove floating point support.
16292
50465dd6 162932008-06-15 Robert Millan <rmh@aybabtu.com>
16294
fe6b695a 16295 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
50465dd6 16296 devices.
16297 Reported by Max Vozeler.
16298
a9207284 162992008-06-15 Robert Millan <rmh@aybabtu.com>
16300
16301 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
16302 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
16303 skipped later.
16304 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
16305 the beginning of the prefix.
16306
16307 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
16308 It is assumed that if we have a memdisk, grub-mkimage has set
16309 grub_prefix to include the "(memdisk)" drive in it.
16310
a7cbd45a 163112008-06-15 Robert Millan <rmh@aybabtu.com>
16312
16313 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
16314 Initialize keyboard controller after registering the terminal, so that
16315 grub_printf() can be called from grub_keyboard_controller_init().
16316
21cf716a 163172008-06-15 Robert Millan <rmh@aybabtu.com>
16318
16319 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
16320 extent-btree which is written as big endian on disk.
16321 Reported by Alain Greppin <al@chilibi.org>.
16322
23a64d8e 163232008-06-14 Robert Millan <rmh@aybabtu.com>
16324
16325 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
16326 * util/i386/pc/grub-install.in (modules): Likewise.
16327
d687651c 163282008-06-13 Pavel Roskin <proski@gnu.org>
16329
16330 * commands/ls.c (grub_ls_list_files): Fix format warnings.
16331
dfe9ddd4 163322008-06-13 Bean <bean123ch@gmail.com>
16333
16334 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
16335
16336 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
16337
16338 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
16339 to indicate sparse block.
16340
16ae7781 163412008-06-12 Pavel Roskin <proski@gnu.org>
16342
e6d1a308 16343 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
16344 number, grub_fshelp_read() does it for us.
16345
16ae7781 16346 * fs/fshelp.c (grub_fshelp_read): New function. Implement
16347 linear disk read with journal translation.
16348 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
16349 * include/grub/fshelp.h: Declare grub_fshelp_read().
16350
40fd3a2b 163512008-06-09 Pavel Roskin <proski@gnu.org>
16352
16353 * fs/minix.c (grub_minix_mount): Handle error reading
16354 superblock.
16355
f5679726 163562008-06-08 Robert Millan <rmh@aybabtu.com>
16357
16358 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
16359 don't append the RAID prefix afterwards.
16360 Reported by Clint Adams.
16361
ce525529 163622008-06-08 Robert Millan <rmh@aybabtu.com>
16363
16364 Based on description from Pavel:
16365 * kern/disk.c (grub_disk_check_range): Rename to ...
16366 (grub_disk_adjust_range): ... this. Add a comment explaining the
16367 tasks performed by this function.
16368
ad4936a0 163692008-06-08 Robert Millan <rmh@aybabtu.com>
16370
16371 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
16372 `num_serial' (for consistency with other variables).
16373 (struct grub_ntfs_data): Add `uuid' member.
16374 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
16375 (grub_ntfs_uuid): New function.
16376 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
16377
dc20b0f9 163782008-06-07 Pavel Roskin <proski@gnu.org>
16379
16380 * util/biosdisk.c (open_device): Revert last change to the
16381 function, it broke installation. The sector needs to be
16382 different dependent on which device is opened.
16383
c5e3cfba 163842008-06-06 Robert Millan <rmh@aybabtu.com>
16385
16386 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
16387 rest of GRUB, and breakage doesn't happen if its value were modified.
16388
16389 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
16390 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
16391 a constant (same value).
16392 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
16393 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
16394
26a1f8c4 163952008-06-06 Robert Millan <rmh@aybabtu.com>
16396
16397 * util/biosdisk.c (open_device): Do not modify sector offset when
16398 accessing a partition. kern/disk.c already handles this for us.
16399
25d6b327 164002008-06-06 Robert Millan <rmh@aybabtu.com>
16401
16402 * util/grub-emu.c (grub_machine_init): Move code in this function from
16403 here ...
16404 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
16405 segfault in case grub_printf() is called).
16406
16407 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
16408 grub_probe. Update all users not to explicitly add it again.
16409 (grub_device): New variable; contains corresponding device for grubdir.
16410 (fs_module, partmap_module, devabstraction_module): Pass
16411 `--device ${grub_device}' to grub_probe to avoid traversing /dev
16412 every time.
16413
9ece62fb 164142008-06-05 Robert Millan <rmh@aybabtu.com>
16415
16416 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
16417 is found, print it (same layout as with labels).
16418
1ad36d37 164192008-06-04 Robert Millan <rmh@aybabtu.com>
16420
16421 * util/biosdisk.c (get_drive): Rename to ...
16422 (find_grub_drive): ... this. Update all users.
16423
16424 (get_os_disk): Rename to ...
16425 (convert_system_partition_to_system_disk): ... this. Update all users.
16426
16427 (find_drive): Rename to ...
16428 (find_system_device): ... this. Update all users.
16429
e6a30859 164302008-06-04 Robert Millan <rmh@aybabtu.com>
16431
16432 * util/biosdisk.c (get_os_disk): Handle IDA devices.
16433 * util/grub-mkdevicemap.c (get_mmc_disk_name)
16434 (make_device_map): Likewise.
16435
00c108a4 164362008-06-01 Robert Millan <rmh@aybabtu.com>
16437
16438 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
16439 before dereferencing it.
16440
16441 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
16442 union with fat12/fat16-specific ones. Add some new fields, including
16443 `num_serial' for both versions.
16444 (struct grub_fat_data): Add `uuid' member.
16445 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
16446 names. Initialize `data->uuid' using `num_serial'.
16447 (grub_fat_uuid): New function.
16448 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
16449
16450 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
16451 (grub_reiserfs_uuid): New function.
16452 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
16453 member.
16454
16455 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
16456 (grub_xfs_uuid): New function.
16457 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
16458
1385c5bb 164592008-06-01 Robert Millan <rmh@aybabtu.com>
16460
16461 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
16462 code that is backward compatible with pre-uuid search command.
16463
c682dfd7 164642008-05-31 Robert Millan <rmh@aybabtu.com>
16465
16466 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
16467 floppies after everything else, to ensure floppy drive isn't accessed
16468 unnecessarily (patch from Bean).
16469
b7db5d47 164702008-05-31 Robert Millan <rmh@aybabtu.com>
16471
16472 * commands/search.c (search_label, search_fs_uuid, search_file): Do
16473 not print device names when we were asked to set a variable.
16474
6e037aa9 164752008-05-31 Robert Millan <rmh@aybabtu.com>
16476
16477 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
16478 using "cursor-on" and "cursor-off" commands (understood at least by
16479 the Open Firmware flavour on OLPC).
16480
41305bc8 164812008-05-31 Michael Gorven <michael@gorven.za.net>
16482
16483 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
16484 on and off sequences.
16485
69ba137e 164862008-05-31 Robert Millan <rmh@aybabtu.com>
16487
16488 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
16489 * util/update-grub.in: Likewise.
16490
520ae21b 164912008-05-30 Pavel Roskin <proski@gnu.org>
16492
16493 * util/biosdisk.c (linux_find_partition): Simplify logic and
16494 make the code more universal. Keep special processing for
16495 devfs, but use a simple rule for all other devices. If the
16496 device ends with a number, append 'p' and the partition number.
16497 Otherwise, append only the partition number.
16498
5786569b 164992008-05-30 Robert Millan <rmh@aybabtu.com>
16500
16501 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
16502 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
16503 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
16504 the `root' parameter to Linux.
16505
51500452 165062008-05-30 Robert Millan <rmh@aybabtu.com>
16507
16508 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
16509 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
16510 --fs_uuid with --fs-uuid.
16511 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
16512 all filesystems support them).
16513
811d3878 165142008-05-30 Robert Millan <rmh@aybabtu.com>
16515
16516 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
f19dbdb7 16517 grub_printf() flags, since we're printing in units of 2 bytes.
811d3878 16518
cab63c95 165192008-05-30 Robert Millan <rmh@aybabtu.com>
16520
16521 * util/grub.d/00_header.in: Remove obsolete comment referencing
16522 convert_system_path_to_grub_path().
16523 * util/update-grub.in: Likewise.
16524 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
16525 (convert_system_path_to_grub_path): Add a warning message explaining
16526 that this function is deprecated. Rely on is_path_readable_by_grub()
16527 for the readability checks.
16528 (font_path): Use is_path_readable_by_grub() for the readability
16529 check rather than convert_system_path_to_grub_path().
16530
972e2f7a 165312008-05-30 Robert Millan <rmh@aybabtu.com>
16532
16533 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
16534 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
16535 converting it first.
16536 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
16537 grub.cfg for access to font file, and afterwards call it again to set
16538 the root device.
16539
62191274 165402008-05-30 Robert Millan <rmh@aybabtu.com>
16541
16542 * commands/search.c (options): Add --fs_uuid option.
16543 (search_fs_uuid): New function.
16544 (grub_cmd_search): Fix --set argument passing.
16545 Use search_fs_uuid() when requested via --fs_uuid.
16546 (grub_search_init): Update help message.
16547 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
16548 and redeclare it as an array of 16-bit words.
16549 (grub_ext2_uuid): New function.
16550 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
16551 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
16552 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
16553 (GRUB_DEVICE_BOOT_UUID): New variables.
16554 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
16555 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
16556 whenever possible.
16557 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
16558 just assume `root' variable has the right value.
16559 * util/grub.d/10_linux.in: Likewise.
16560 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
16561 via PRINT_FS_UUID.
16562 (main): Recognise `-t fs_uuid' argument.
16563
01b73ec8 165642008-05-30 Robert Millan <rmh@aybabtu.com>
16565
16566 * util/biosdisk.c (map): Redefine structure to hold information
16567 about GRUB drive name.
fe6b695a 16568 (get_drive): Reimplement without assuming (and verifying) BIOS-like
01b73ec8 16569 drive names.
16570 (call_hook): Remove.
16571 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
16572 member. Assume drive has partitions.
16573 (grub_util_biosdisk_open): Access device names via `.device' struct
16574 member.
16575 (open_device): Likewise.
16576 (find_drive): Likewise.
16577 (read_device_map): Adjust map[] usage to match the new struct
16578 definition. Don't check for duplicates (still possible, but not cheap
16579 anymore).
16580 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
16581 (make_device_name): Remove assumption of BIOS-like drive names.
16582
22f16596 165832008-05-30 Pavel Roskin <proski@gnu.org>
16584
16585 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
16586 compiling execute.c doesn't need grub_script.tab.h anymore.
16587 (normal/command.c_DEPENDENCIES): Likewise.
16588 (normal/function.c_DEPENDENCIES): Likewise.
16589 * conf/i386-ieee1275.rmk: Likewise.
16590 * conf/i386-linuxbios.rmk: Likewise.
16591 * conf/i386-pc.rmk: Likewise.
16592 * conf/powerpc-ieee1275.rmk: Likewise.
16593 * conf/sparc64-ieee1275.rmk: Likewise.
16594
528ad8f2 165952008-05-29 Pavel Roskin <proski@gnu.org>
16596
d1dff95d 16597 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
16598 when scanning metadata for volume group name.
16599
528ad8f2 16600 * include/grub/script.h: Don't include grub_script.tab.h. It's
16601 a generated file, which may only be included from the files with
16602 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
16603 use union YYSTYPE, as the later allows forward declaration.
16604 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
16605
47248e08 166062008-05-29 Robert Millan <rmh@aybabtu.com>
16607
16608 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
16609 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
16610 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
16611 (grub_console_checkkey): Add grub_dprintf() call to report unknown
16612 scan codes.
16613
ee632529 166142008-05-29 Robert Millan <rmh@aybabtu.com>
16615
16616 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
16617 control key combinations.
16618
eee96e08 166192008-05-29 Robert Millan <rmh@aybabtu.com>
16620
16621 * util/powerpc/ieee1275/grub-install.in: Move from here ...
16622 * util/ieee1275/grub-install.in: ... to here.
16623 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
16624 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
16625 (grub_install_SOURCES): Likewise.
16626
da9a6a94 166272008-05-29 Robert Millan <rmh@aybabtu.com>
16628
16629 * fs/affs.c: Update copyright year.
16630 * fs/ext2.c: Likewise.
16631 * fs/fshelp.c: Likewise.
16632 * fs/hfsplus.c: Likewise.
16633 * fs/ntfs.c: Likewise.
16634 * fs/xfs.c: Likewise.
16635 * include/grub/fshelp.h: Likewise.
16636 * util/grub-mkdevicemap.c: Likewise.
16637
12e65f3a 166382008-05-28 Robert Millan <rmh@aybabtu.com>
16639
16640 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
16641 might need to be fatfs to support some firmware implementations
16642 (e.g. OFW or EFI).
16643
23023641 166442008-05-28 Robert Millan <rmh@aybabtu.com>
16645
16646 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
16647 devices.
16648 * util/grub-mkdevicemap.c (get_mmc_disk_name)
16649 (make_device_map): Likewise.
16650
887d2619 166512008-05-20 Bean <bean123ch@gmail.com>
16652
16653 * fs/fshelp.c (grub_fshelp_map_block): New function.
16654 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
16655 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
16656
16657 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
16658 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
16659 (grub_fshelp_journal): New structure.
16660 (grub_fshelp_map_block): New function prototype.
16661 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
16662 (grub_fshelp_map_block): Likewise.
16663
16664 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
16665 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
16666 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
16667 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
16668 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
16669 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
16670 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
16671 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
16672 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
16673 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
16674 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
16675 (grub_ext2_sblock): New members for journal support.
16676 (grub_ext3_journal_header): New structure.
16677 (grub_ext3_journal_revoke_header): Likewise.
16678 (grub_ext3_journal_block_tag): Likewise.
16679 (grub_ext3_journal_sblock): Likewise.
16680 (grub_fshelp_node): New members logfile and journal.
16681 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
16682 grub_fshelp_map_block to get real block number.
16683 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
16684 number.
16685 (grub_ext2_read_inode): Likewise.
16686 (grub_ext3_get_journal): New function.
16687 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
16688 (grub_ext2_close): Release memory used by journal.
16689
16690 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
16691 (REISERFS_MAGIC_DESC_BLOCK): New macro.
16692 (grub_reiserfs_transaction_header): Renamed to
16693 grub_reiserfs_description_block, replace field data with real_blocks.
16694 (grub_reiserfs_commit_block): New structure.
16695 (grub_reiserfs_data): New member journal.
16696 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
16697 number.
16698 (grub_reiserfs_read_symlink): Likewise.
16699 (grub_reiserfs_iterate_dir): Likewise.
16700 (grub_reiserfs_open): Likewise.
16701 (grub_reiserfs_read): Likewise.
16702 (grub_reiserfs_get_journal): New function.
16703 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
16704 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
16705 using grub_reiserfs_get_journal.
16706 (grub_reiserfs_close): Release memory used by journal.
16707
16708 * fs/affs.c (grub_affs_read_block): Change block type to
16709 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
16710
16711 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
16712
16713 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
16714
16715 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
16716
16717 * fs/udf.c (grub_udf_read_block): Change block type to
16718 grub_disk_addr_t. Use type cast to avoid warning.
16719
16720 * fs/xfs.c (grub_xfs_read_block): Likewise.
16721
b7c6bed5 167222008-05-16 Christian Franke <franke@computer.org>
16723
16724 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
16725 to ensure that break with ESC will always work.
16726 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
16727 Remove ESC from keyboard queue.
16728
eedf167f 167292008-05-16 Christian Franke <franke@computer.org>
16730
16731 * util/biosdisk.c: [__CYGWIN__] Add includes.
16732 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
16733 (get_os_disk): Move variable declarations to OS specific
16734 parts to avoid warning.
16735 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
16736 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
16737 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
16738 Cygwin.
16739 * util/getroot.c: [__CYGWIN__] Add includes.
16740 (strip_extra_slashes): Fix "/" case.
16741 [__CYGWIN__] (get_win32_path): New function.
16742 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
16743 [__CYGWIN__] (find_root_device): Disable.
16744 [__CYGWIN__] (get_bootsec_serial): New function.
16745 [__CYGWIN__] (find_cygwin_root_device): Likewise.
16746 [__linux__] (grub_guess_root_device): Add early returns to simplify
16747 structure.
16748 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
16749 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
16750 check for Linux only.
16751
a079699e 167522008-05-15 Bean <bean123ch@gmail.com>
16753
16754 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
16755 keyboard hang problem in apple's intel mac.
16756
1cf4059a 167572008-05-09 Robert Millan <rmh@aybabtu.com>
16758
16759 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
16760 devices.
16761 * util/grub-mkdevicemap.c (get_virtio_disk_name)
16762 (make_device_map): Likewise.
16763 Reported by Aurelien Jarno <aurel32@debian.org>
16764
ed759390 167652008-05-07 Ian Campbell <ijc@hellion.org.uk>
16766
16767 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
16768 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
16769 (make_device_map): Output entries for xvd type disks.
16770
b56c4eaa 167712008-05-07 Robert Millan <rmh@aybabtu.com>
16772
16773 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
16774 devices.
16775 * util/grub-mkdevicemap.c (get_cciss_disk_name)
16776 (make_device_map): Likewise.
16777 Reported by Roland Dreier <rdreier@cisco.com>
16778
7f8866ed 167792008-05-07 Robert Millan <rmh@aybabtu.com>
16780
16781 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
16782 grub_strstr() call. Correct a few mistakes in failure path handling.
16783
b0346e0f 167842008-05-06 Robert Millan <rmh@aybabtu.com>
16785
16786 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
16787 Do not print a trailing slash (therefore, the root directory is an
16788 empty string).
16789 (convert_system_path_to_grub_path): Do not remove trailing slash
16790 from make_system_path_relative_to_its_root() output.
16791
16792 * util/i386/pc/grub-install.in: Add trailing slash to output from
16793 make_system_path_relative_to_its_root().
16794
6cf12cbd 167952008-05-06 Robert Millan <rmh@aybabtu.com>
16796
16797 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
16798 ensures that output lines aren't intermangled with those sent to
16799 stderr (via grub_util_info()).
16800 * util/grub-probe.c (grub_refresh): Likewise.
16801 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
16802
0fbb3117 168032008-05-05 Christian Franke <franke@computer.org>
16804
16805 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
16806 Add Cygwin device names.
16807 (get_ide_disk_name) [__CYGWIN__]: Likewise.
16808 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
16809 (check_device): Return error instead of success on empty name.
16810 (make_device_map): Move label inside linux specific code to
16811 prevent compiler warning.
16812
8124cdb7 168132008-04-30 Robert Millan <rmh@aybabtu.com>
16814
16815 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
16816 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
16817 first boot option.
16818 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
16819
094c01d0 168202008-04-29 Robert Millan <rmh@aybabtu.com>
16821
16822 * docs/grub.cfg: New file (example GRUB configuration).
16823
f4b1fc02 168242008-04-26 Robert Millan <rmh@aybabtu.com>
16825
329ce2a5 16826 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
16827 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
16828 and `disk/ieee1275/nand.c'.
f4b1fc02 16829
25f16ec1 168302008-04-25 Bean <bean123ch@gmail.com>
f19dbdb7 16831
25f16ec1 16832 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
16833 i386-linuxbios.
16834
16835 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
16836 change the buffer size to 4096 for cdrom device.
16837
16838 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
16839 and nand.mod.
16840 (_linux_mod_SOURCES): New variable.
16841 (_linux_mod_CFLAGS): Likewise.
16842 (_linux_mod_LDFLAGS): Likewise.
16843 (linux_mod_SOURCES): Likewise.
16844 (linux_mod_CFLAGS): Likewise.
16845 (linux_mod_LDFLAGS): Likewise.
16846 (nand_mod_SOURCES): Likewise.
16847 (nand_mod_CFLAGS): Likewise.
16848 (nand_mod_LDFLAGS): Likewise.
16849
16850 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
16851 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
16852 type property. (nand device in olpc don't have this property)
16853
16854 * include/grub/disk.h (grub_disk_dev_id): New macro
16855 GRUB_DISK_DEVICE_NAND_ID.
16856
16857 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
16858 function prototype.
16859 (grub_rescue_cmd_initrd): Likewise.
16860
16861 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
16862 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
16863 ofw_cif_handler and ofw_idt, adjust padding number.
f19dbdb7 16864
25f16ec1 16865 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
16866 GRUB_MACHINE_IEEE1275 is defined.
16867
16868 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
16869 Use NESTED_FUNC_ATTR attribute on the hook parameter.
16870
16871 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
16872 on nested function heap_init.
16873 (grub_upper_mem): New variable for i386-ieee1275.
16874 (grub_get_extended_memory): New function for i386-ieee1275.
16875 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
16876
16877 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
16878 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
16879 property.
f19dbdb7 16880
25f16ec1 16881 * loader/i386/ieee1275/linux.c: New file.
16882
16883 * loader/i386/ieee1275/linux_normal.c: New file.
16884
16885 * disk/ieee1275/nand.c: New file.
16886
e89d61e9 168872008-04-18 Thomas Schwinge <tschwinge@gnu.org>
16888
16889 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
16890 value.
16891 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
16892
602566f6 168932008-04-18 Robert Millan <rmh@aybabtu.com>
16894
16895 Restructures early code path on ieee1275 to unify grub_main() as
16896 the first C function that is executed in every platform.
16897
16898 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
16899 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
16900 cmain().
16901 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
16902 * kern/ieee1275/cmain.c (cmain): Rename to ...
16903 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
16904 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
16905 at the beginning.
16906
57490c2b 169072008-04-18 Robert Millan <rmh@aybabtu.com>
16908
16909 * util/update-grub.in: Fix syntax error when setting
16910 `GRUB_PRELOAD_MODULES'.
16911 Reported by Stephane Chazelas <stephane@artesyncp.com>
16912
1977517d 169132008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
16914
16915 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
16916 section into account, newer toolchains generate unique build ids
16917 * configure.ac: remove the test for --build-id=none acceptance,
e0c5dacb 16918 we want build ids to be preserved
1977517d 16919 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
16920 far from other sections don't cause the raw binary images grow
16921 size
16922
bfb1f1a2 169232008-04-15 Robert Millan <rmh@aybabtu.com>
16924
16925 * disk/lvm.c: Update copyright year.
16926 * kern/misc.c: Likewise.
16927
01979850 169282008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
16929
16930 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
f19dbdb7 16931 there is no memory left for physical volume name.
01979850 16932
0a1150e2 169332008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
16934
16935 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
16936 volume name mapping to support bigger than 9 character names properly.
16937
82ead3fe 169382008-04-13 Robert Millan <rmh@aybabtu.com>
16939
16940 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
16941 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
16942
e54a72f5 169432008-04-13 Christian Franke <franke@computer.org>
16944
16945 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
16946 to create a floppy emulation boot CD when non emulation mode
16947 does not work.
16948 Enable Joliet CD filesystem extension.
16949
9fe86034 169502008-04-13 Robert Millan <rmh@aybabtu.com>
16951
16952 * kern/misc.c (grub_strncat): Fix off-by-one error.
16953 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
16954
16955 * kern/env.c (grub_env_context_close): Clear current context, not
16956 previous one.
16957 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
16958
16959 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
16960
7ceeee39 169612008-04-13 Robert Millan <rmh@aybabtu.com>
16962
16963 Improve robustness when handling LVM.
16964
16965 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
f19dbdb7 16966 (and leave `*p' unmodified).
7ceeee39 16967 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
16968 through it.
16969 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
16970 iterating through it.
16971 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
16972 through it.
fe6b695a 16973 (grub_lvm_scan_device): Check the return value (and fail gracefully
7ceeee39 16974 when due) on each grub_lvm_getvalue() or grub_strstr() call.
16975 Don't assume `vg->pvs != NULL' when iterating through it.
16976
58cd3d85 169772008-04-13 Robert Millan <rmh@aybabtu.com>
16978
16979 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
16980 * genmk.rb (partmap): New variable.
16981 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
16982 (#{partmap}): New target rule.
16983 * genpartmaplist.sh: New file.
16984 * Makefile.in (pkglib_DATA): Add partmap.lst.
16985 (partmap.lst): New target rule.
16986 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
16987 modules (including all partition maps), instead of preloading them.
16988
78b51059 169892007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
16990
16991 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
16992 `linux-boot-prober' (if installed) to detect other operating
16993 systems which are installed on the computer and add them to
16994 the boot menu.
16995 * conf/common.rmk: Build and install 30_os-prober.
16996
a91627b4 169972008-04-12 Robert Millan <rmh@aybabtu.com>
16998
16999 * kern/powerpc/ieee1275/init.c: Move from here ...
17000 * kern/ieee1275/init.c: ... to here. Update all users.
17001
17002 * kern/powerpc/ieee1275/cmain.c: Move from here ...
17003 * kern/ieee1275/cmain.c: ... to here. Update all users.
17004
17005 * kern/powerpc/ieee1275/openfw.c: Move from here ...
17006 * kern/ieee1275/openfw.c: ... to here. Update all users.
17007
17008 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
17009 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
17010
322562ea 170112008-04-10 Pavel Roskin <proski@gnu.org>
17012
17013 * configure.ac: Always use "_cv_" in cache variables for
17014 compatibility with Autoconf 2.62.
17015
a02a73c5 170162008-04-07 Robert Millan <rmh@aybabtu.com>
17017
17018 Revert grub/machine/init.h addition by Pavel (since it breaks on
17019 i386-ieee1275 and others):
17020 * util/i386/pc/misc.c: Remove grub/machine/init.h.
17021 * util/powerpc/ieee1275/misc.c: Likewise.
17022
25c024b1 170232008-04-07 Robert Millan <rmh@aybabtu.com>
17024
17025 * util/grub-probe.c (probe): Improve error message.
17026
3cbd2f98 170272008-04-07 Robert Millan <rmh@aybabtu.com>
17028
17029 * util/biosdisk.c (read_device_map): Skip devices that don't exist
17030 (this prevents the presence of a bogus entry from ruining the whole
17031 thing).
17032
87a297bf 170332008-04-06 Pavel Roskin <proski@gnu.org>
17034
36747a62 17035 * util/biosdisk.c: Include grub/util/biosdisk.h.
17036 * util/grub-fstest.c (execute_command): Make static.
17037 * util/grub-mkdevicemap.c (check_device): Likewise.
17038 * util/i386/pc/misc.c: Include grub/machine/init.h.
17039 * util/powerpc/ieee1275/misc.c: Likewise.
17040 * util/lvm.c: Include grub/util/lvm.h.
17041 * util/misc.c: Include grub/kernel.h, grub/misc.h and
17042 grub/cache.h.
17043 * util/raid.c: Include grub/util/raid.h.
17044 (grub_util_getdiskname): Make static.
17045
87a297bf 17046 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
17047 grub_hostfs_fini(), as they are called from grub_init_all() and
17048 grub_fini_all() respectively. This fixes an infinite loop in
17049 grub-fstest due to double registration of hostfs.
17050 Reported by Christian Franke <Christian.Franke@t-online.de>
17051
f6ce7629 170522008-04-05 Pavel Roskin <proski@gnu.org>
17053
17054 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
17055 all 8 functions. Otherwise, probe function 0 only.
17056
070e49e4 170572008-04-04 Pavel Roskin <proski@gnu.org>
17058
8b088a4c 17059 * commands/lspci.c (grub_lspci_iter): Print the bus number
17060 correctly.
17061
4f657021 17062 * commands/lspci.c (grub_pci_classes): Fix typos.
17063 (grub_lspci_iter): Don't print func twice. Print vendor ID
17064 before device ID, as it's normally done.
17065
070e49e4 17066 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
17067 Fix signedness warnings.
17068 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
17069 Likewise.
17070 * util/ieee1275/get_disk_name.c: Include config.h so that
17071 _GNU_SOURCE is defined and getline() is declared. Mark an
17072 unused argument as such. Fix a signedness warning.
17073
ba7328dc 170742008-04-02 Pavel Roskin <proski@gnu.org>
17075
26887f22 17076 * genkernsyms.sh.in: Use more robust assignments for CC and
17077 srcdir. Quote srcdir.
17078 * gensymlist.sh.in: Likewise. Assert at the compile time that
17079 the symbol table is not empty.
17080
ba7328dc 17081 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
17082 * fs/cpio.c (grub_cpio_read): Likewise.
17083
0f582c6b 170842008-04-01 Pavel Roskin <proski@gnu.org>
17085
4b6e1995 17086 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
17087 * disk/host.c (grub_host_open): Likewise.
17088 * disk/loopback.c (grub_loopback_open): Likewise.
17089 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
17090 disk->id as in disk/host.c, not a multi-character constant.
17091
828a2768 17092 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
17093 later is obsolete, potentially dangerous and sets a bad example.
17094 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
17095 * util/misc.c (grub_util_get_image_size): Likewise.
17096
2bb4fb47 17097 * disk/loopback.c (options): Improve help for "--partitions".
17098
0f582c6b 17099 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
17100 options to align them with the short options, e.g. "echo -e".
17101
a33224e0 171022008-03-31 Bean <bean123ch@gmail.com>
17103
17104 * video/reader/png.c (grub_png_data): New member is_16bit and
17105 image_data.
17106 (grub_png_decode_image_header): Detect 16 bit png image.
17107 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
17108 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
17109 (grub_video_reader_png): Release memory occupied by image_data.
17110
17111 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
17112 4096 bytes.
17113 (grub_nfs_mount): Skip the test for sector per cluster.
17114
17115 * include/grub/ntfs.h (MAX_SPC): Removed.
17116
86cb4f54 171172008-03-31 Bean <bean123ch@gmail.com>
17118
17119 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
17120 (grub_probe_SOURCES): Add fs/afs.c.
17121 (grub_fstest_SOURCES): Likewise.
17122 (afs_mod_SOURCES): New variable.
17123 (afs_mod_CFLAGS): Likewise.
17124 (afs_mod_LDFLAGS): Likewise.
17125
17126 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
17127 (grub_emu_SOURCES): Likewise.
17128
17129 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
17130
17131 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
17132
17133 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
17134
17135 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
17136
17137 * fs/afs.c: New file.
17138
17c74c21 171392008-03-30 Pavel Roskin <proski@gnu.org>
17140
4cb68e89 17141 * disk/host.c: Include grub/misc.h to fix a warning.
17142 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
17143 warnings about implicit declarations.
17144
8790bb04 17145 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
17146 variable.
17147 * include/grub/i386/loader.h: Change declaration of
17148 grub_linux_boot() to match what grub_loader_set() expects.
17149 * util/getroot.c (grub_guess_root_device): Return const char* to
17150 fix a warning.
17151 * util/grub-probe.c (probe): Fix a warning about uninitialized
17152 abstraction_name variable.
17153 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
17154 second argument as unused to fix a warning.
17155
9a3f3296 17156 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
17157 missing grub_error() call.
17158
0ecef90d 17159 * util/update-grub_lib.in: Define datarootdir, since Autoconf
17160 2.60 and newer uses it to define datadir.
17161
0bf6d401 17162 * commands/sleep.c: Fix warning about implicit declaration.
17163 * disk/memdisk.c: Likewise.
17164 * loader/aout.c: Likewise.
17165 * loader/i386/bsd_normal.c: Likewise.
17166 * util/grub-probe.c: Likewise.
17167
7cdacf97 17168 * commands/i386/cpuid.c (has_longmode): Make static.
17169 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
17170 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
17171
17c74c21 17172 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
17173 GDT. This is more robust, as %ds can change.
17174 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
17175 calling real_to_prot().
17176 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
17177
80a3e68b 171782008-03-28 Pavel Roskin <proski@gnu.org>
17179
17180 * kern/i386/pc/startup.S: Assert that uncompressed functions
17181 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
17182 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
17183 code, as they push parts of the code (error handlers) beyond
17184 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
17185 code as correctness and size.
17186
77bcd272 171872008-03-28 Pavel Roskin <proski@gnu.org>
17188
17189 * kern/i386/pc/startup.S
17190 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
17191 data block address to the real mode, keep offset minimal. This
17192 works around a bug in AWARD BIOS on old Athlon systems, which
17193 makes CD detection hang.
17194
c5dfd43b 171952008-03-26 Pavel Roskin <proski@gnu.org>
17196
17197 * normal/color.c (grub_parse_color_name_pair): Make `name' a
17198 const.
17199 * include/grub/normal.h: Add grub_parse_color_name_pair()
17200 declaration.
17201
bf962df2 172022008-03-24 Bean <bean123ch@gmail.com>
17203
17204 * disk/i386/pc/biosdisk.c (cd_start): Removed.
17205 (cd_count): Removed.
17206 (cd_drive): New variable.
17207 (grub_biosdisk_get_drive): Don't check for (cdN) device.
17208 (grub_biosdisk_call_hook): Likewise.
17209 (grub_biosdisk_iterate): Change cdrom detection method.
17210 (grub_biosdisk_open): Replace cd_start with cd_drive.
17211 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
17212 detect cdrom device.
17213
17214 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
17215 Removed.
17216 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
17217 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
17218 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
17219 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
17220 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
17221 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
17222 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
17223 (grub_biosdisk_cdrp): New structure.
17224 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
17225
17226 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
17227
17228 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
17229 device.
17230
17231 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
17232 New function.
17233
68e7fc7a 172342008-03-20 Robert Millan <rmh@aybabtu.com>
17235
17236 Remove 2 TiB limit in ata.mod.
17237 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
17238 (grub_ata_dumpinfo): Print sector count with 0x%llx.
17239 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
17240 grub_uint64_t instead of grub_uint32_t.
17241
38ad2cf5 172422008-03-05 Bean <bean123ch@gmail.com>
17243
17244 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
17245 (grub_multiboot): Set boot device.
17246
17247 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
17248
2b89344e 172492008-03-02 Bean <bean123ch@gmail.com>
17250
17251 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
17252 symlink_buffer.
17253
87a95d1f 172542008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
17255
17256 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
17257 texinfo.tex.
17258
17259 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
17260 modified.
17261
17262 * docs/fdl.texi: New file.
f19dbdb7 17263
87a95d1f 17264 * docs/mdate-sh: New file. Copied from gnulib.
17265 * docs/texinfo.tex: Likewise.
17266
17267 * config.guess: Updated from gnulib.
17268 * install-sh: Likewise.
17269
7dc15d8e 172702008-02-28 Robert Millan <rmh@aybabtu.com>
17271
17272 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
17273 (aout_mod_SOURCES): New variable.
17274 (aout_mod_CFLAGS): Likewise.
17275 (aout_mod_LDFLAGS): Likewise.
17276
17277 * conf/i386-ieee1275.rmk: Likewise.
17278
b00ab696 172792008-02-28 Robert Millan <rmh@aybabtu.com>
17280
17281 * util/update-grub.in: Reorganise terminal validity check. Accept
17282 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
17283 Based on suggestion by Franklin PIAT.
17284
79ca2d78 172852008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
17286
17287 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
17288 function.
17289 * util/getroot.c (grub_util_check_block_device): New function that
17290 returns the given argument if it is a block device and returns NULL else.
17291 * util/grub-probe.c (argument_is_device): New variable.
17292 (probe): Promote device_name from a variable to an argument. Receive
17293 device_name from grub_util_check_block_device() if path is NULL and from
17294 grub_guess_root_device() else. Do not free() device_name anymore.
f19dbdb7 17295 (options): Introduce new parameter '-d, --device'.
79ca2d78 17296 (main): Add description of the new parameter to the help screen.
17297 Rename path variable to argument. Set argument_is_device if the '-d'
17298 option is given. Pass argument to probe() depending on
17299 argument_is_device.
17300
0d16e571 173012008-02-24 Bean <bean123ch@gmail.com>
17302
17303 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
17304 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
17305 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
17306 (GRUB_ISO9660_VOLDESC_PART): Likewise.
17307 (GRUB_ISO9660_VOLDESC_END): Likewise.
17308 (grub_iso9660_primary_voldesc): New member escape.
17309 (grub_iso9660_data): New member joliet.
17310 (grub_iso9660_convert_string): New function.
17311 (grub_iso9660_mount): Detect joliet extension.
17312 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
17313 (grub_iso9660_iso9660_label): Likewise.
17314
17315 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
17316 (grub_setup_SOURCES): Add fs/udf.c.
17317 (grub_fstest_SOURCES): Likewise.
17318 (udf_mod_SOURCES): New variable.
17319 (udf_mod_CFLAGS): Likewise.
17320 (udf_mod_LDFLAGS): Likewise.
17321
17322 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
17323 (grub_emu_SOURCES): Likewise.
17324
17325 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
17326
17327 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
17328
17329 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
17330
17331 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
17332
17333 * fs/udf.c: New file.
17334
8a594a17 173352008-02-24 Robert Millan <rmh@aybabtu.com>
17336
17337 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
17338 (normal/lexer.c_DEPENDENCIES): New variables.
17339 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
17340 (normal/lexer.c_DEPENDENCIES): Likewise.
17341 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
17342 (normal/lexer.c_DEPENDENCIES): Likewise.
17343 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
17344 (normal/lexer.c_DEPENDENCIES): Likewise.
17345 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
17346 (normal/lexer.c_DEPENDENCIES): Likewise.
17347 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
17348 (normal/lexer.c_DEPENDENCIES): Likewise.
17349
2dc33c03 173502008-02-23 Robert Millan <rmh@aybabtu.com>
17351
17352 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
17353 since they were intended to be in hex. This didn't break previously
17354 because of a bug in gpt_partition_map_iterate() (see below).
17355
17356 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
17357 when checking the validity of GPT header.
17358 Remove `partno', since it always provides the same information as `i'.
17359
f6f4cfb0 173602008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
17361
17362 * include/grub/efi/time.h: Fix a wrong comment.
17363
79ff665f 173642008-02-19 Pavel Roskin <proski@gnu.org>
17365
17366 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
17367 message.
17368
d38e24c2 173692008-02-19 Bean <bean123ch@gmail.com>
17370
17371 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
17372 (aout_mod_SOURCES): New variable.
17373 (aout_mod_CFLAGS): Likewise.
17374 (aout_mod_LDFLAGS): Likewise.
17375 (_bsd_mod_SOURCES): New variable.
17376 (_bsd_mod_CFLAGS): Likewise.
17377 (_bsd_mod_LDFLAGS): Likewise.
17378 (bsd_mod_SOURCES): New variable.
17379 (bsd_mod_CFLAGS): Likewise.
17380 (bsd_mod_LDFLAGS): Likewise.
17381
17382 * include/grub/aout.h: New file.
17383
17384 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
17385
17386 * include/grub/i386/bsd.h: New file.
17387
17388 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
17389 to make it public.
17390
17391 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
17392 function is called, so that it's possible to change it inside the hook.
17393 (grub_elf64_load): Likewise.
17394 (grub_elf_file): Don't close the file if elf header is not found.
17395 (grub_elf_close): Close the file if grub_elf_file fails (The new
17396 grub_elf_file won't close it).
17397 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
17398 (grub_elf64_size): Likewise.
17399
17400 * kern/i386/loader.S (grub_unix_real_boot): New function.
17401
17402 * loader/aout.c: New file.
17403
17404 * loader/i386/bsd.c: New file.
17405
17406 * loader/i386/bsd_normal.c: New file.
17407
17408 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
17409
17410 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
fe987087 17411 can test other formats.
d38e24c2 17412
b93bdb0f 174132008-02-19 Robert Millan <rmh@aybabtu.com>
17414
17415 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
17416 (grub_gpt_partition_type_empty): Redefine with macro from
17417 `<grub/gpt_partition.h>'.
17418 (gpt_partition_map_iterate): Adjust partition type comparison.
17419
17420 Export `entry' as partmap-specific `part.data' struct.
17421 (grub_gpt_header, grub_gpt_partentry): Move from here ...
17422
17423 * include/grub/gpt_partition.h (grub_gpt_header)
17424 (grub_gpt_partentry): ... to here (new file).
17425
17426 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
17427
17428 (grub_gpt_partition_type_bios_boot): New const variable, defined
17429 with macro from `<grub/gpt_partition.h>'.
17430
17431 (setup): Replace `first_start' with `embed_region', which keeps
17432 track of the embed region (and is partmap-agnostic).
17433
17434 Replace find_first_partition_start() with find_usable_region(),
17435 which finds a usable region for embedding using partmap-specific
17436 knowledge (supports PC/MSDOS and GPT).
17437
17438 Fix all assumptions that the embed region start at sector 1, using
17439 `embed_region.start' from now on. Similarly, use `embed_region.end'
17440 rather than `first_start' to calculate available size.
17441
17442 In grub_util_info() message, replace "into after the MBR" with an
17443 indication of the specific sector our embed region starts at.
17444
66cb40f6 174452008-02-19 Robert Millan <rmh@aybabtu.com>
17446
17447 * DISTLIST: Replace `commands/ieee1275/halt.c' and
17448 `commands/ieee1275/reboot.c' with `commands/halt.c' and
17449 `commands/reboot.c'.
17450 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
17451 (halt_mod_SOURCES): Likewise.
17452 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
17453 (halt_mod_SOURCES): Likewise.
17454
b7202015 174552008-02-17 Christian Franke <franke@computer.org>
17456
17457 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
17458
32b0fc49 174592008-02-17 Robert Millan <rmh@aybabtu.com>
17460
17461 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
17462 set `first_start' to 0 for non-PC/MSDOS partition maps.
17463
aca63502 174642008-02-16 Robert Millan <rmh@aybabtu.com>
17465
17466 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
17467 do not assume partition map is PC/MSDOS before performing checks that
17468 are specific to that layout.
17469
0de8be86 174702008-02-13 Robert Millan <rmh@aybabtu.com>
17471
17472 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
17473 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
17474 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
17475
c3db8364 174762008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
17477
17478 * configure.ac: Only a cosmetic change on the handling of
17479 -fno-stack-protector.
17480
f714229e 174812008-02-12 Alexandre Boeglin <alex@boeglin.org>
17482
c3db8364 17483 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
17484 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
17485 reboot.c.
f714229e 17486 (grub_install_SOURCES): Add halt.mod and reboot.mod.
17487 (halt_mod_SOURCES): New variable.
17488 (halt_mod_CFLAGS): Likewise.
17489 (halt_mod_LDFLAGS): Likewise.
17490 (reboot_mod_SOURCES): Likewise.
17491 (reboot_mod_CFLAGS): Likewise.
17492 (reboot_mod_LDFLAGS): Likewise.
17493
c3db8364 17494 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
17495 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
17496 reboot.c.
f714229e 17497 (halt_mod_SOURCES): Likewise.
17498 (reboot_mod_SOURCES): Likewise.
17499
c3db8364 17500 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
17501 commands/i386/pc/reboot.c by commands/reboot.c.
f714229e 17502 (reboot_mod_SOURCES): Likewise.
17503
17504 * commands/i386/pc/reboot.c: merge this file ...
17505
17506 * commands/ieee1275/reboot.c: ... and this file ...
17507
17508 * commands/reboot.c: ... to this file.
c3db8364 17509 Add some precompiler directive to include the correct header for
17510 each machine.
f714229e 17511
17512 * commands/ieee1275/halt.c: move this file ...
17513
17514 * commands/halt.c: ... to here.
c3db8364 17515 Add some precompiler directive to include the correct header for
17516 each machine.
f714229e 17517
17518 * include/grub/efi/efi.h (grub_reboot): New function declaration.
17519 (grub_halt): Likewise.
17520
17521 * kern/efi/efi.c (grub_reboot): New function.
17522 (grub_halt): Likewise.
17523
c74493e0 175242008-02-12 Robert Millan <rmh@aybabtu.com>
17525
17526 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
17527 /dev (like it is done for /dev/mapper). This doesn't provide support
17528 for EVMS, but at least it is now easy to identify the problem when it
17529 arises.
17530
d0db4b04 175312008-02-11 Robert Millan <rmh@aybabtu.com>
17532
17533 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
17534 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
17535 comparing it with -1, not 0.
17536
bf748642 175372008-02-10 Robert Millan <rmh@aybabtu.com>
17538
17539 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
17540 `disk/lvm.c'.
17541 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
17542 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
17543
17544 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
17545 `disk/lvm.c' to the end of the list.
17546 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
17547 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
17548
b5db202a 175492008-02-10 Robert Millan <rmh@aybabtu.com>
17550
17551 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
17552 grub_print_error() instead. This will let user know why we're entering
17553 rescue mode.
17554 Based on suggestions from Sam Morris.
17555
83abee31 175562008-02-10 Alexandre Boeglin <alex@boeglin.org>
17557
17558 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
17559 on remaining N args, instead of "--" arg N times.
17560
78d5a08b 175612008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
17562
17563 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
17564 (fill_with_default_glyph): Changed to use unknown_glyph for fill
17565 pattern for unknown glyphs.
17566
68807e5f 175672008-02-09 Robert Millan <rmh@aybabtu.com>
17568
17569 * configure.ac: Probe for `help2man'.
17570 * Makefile.in (builddir): New variable.
17571 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
17572 or otherwise add a few flags/options to it.
17573 (install-local): For every executable utility or script that is
17574 installed, invoke $(HELP2MAN) to install a manpage based on --help
17575 output.
17576
17577 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
17578 that it doesn't prevent --help from working in build tree.
17579
17580 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
17581 with `bug-grub@gnu.org'.
17582 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
17583 * util/update-grub.in (usage): New function.
17584 Implement proper argument check, with support for --help and --version
17585 (as well as existing -y).
17586
175872008-02-09 Christian Franke <franke@computer.org>
0d9ff7f0 17588
17589 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
17590 avoid overwriting previous output.
17591 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
17592
c1962162 175932008-02-09 Robert Millan <rmh@aybabtu.com>
17594
17595 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
17596 drawing the menu.
17597
3dac2e3f 175982008-02-09 Robert Millan <rmh@aybabtu.com>
17599
17600 * commands/sleep.c: New file.
17601 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
17602 (sleep_mod_SOURCES): New variable.
17603 (sleep_mod_CFLAGS): Likewise.
17604 (sleep_mod_LDFLAGS): Likewise.
17605
7a634e08 176062008-02-09 Robert Millan <rmh@aybabtu.com>
17607
17608 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
17609 situations in which we can deduce the RAID size and the superblock
17610 doesn't match it.
17611
b92f0c18 176122008-02-09 Robert Millan <rmh@aybabtu.com>
17613
17614 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
17615 and return a grub_diskmemberlist_t composed of LVM physical volumes.
17616 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
17617
17618 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
17619 and return a grub_diskmemberlist_t composed of physical array members.
17620 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
17621
17622 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
17623 prototype.
17624 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
17625 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
17626 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
17627
17628 * util/grub-probe.c (probe): Move partmap probing code from here ...
17629 (probe_partmap): ... to here.
17630 (probe): Use probe_partmap() once for the disk we're probing, and
17631 additionally, when such disk contains a memberlist() struct member,
17632 once for each disk that is contained in the structure returned by
17633 memberlist().
17634
91a4bf68 176352008-02-09 Robert Millan <rmh@aybabtu.com>
17636
17637 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
17638 environment variable to 'all' in order to obtain debug output from
17639 non-util/ code.
17640 * util/i386/pc/grub-setup.c (main): Likewise.
17641
a96f9caa 176422008-02-08 Robert Millan <rmh@aybabtu.com>
17643
17644 * disk/raid.c (grub_raid_scan_device): Check for
17645 `array->device[sb.this_disk.number]' rather than for
17646 `array->device[sb.this_disk.number]->name', since the latter is not
fe6b695a 17647 guaranteed to be accessible.
a96f9caa 17648
b37a9222 176492008-02-08 Robert Millan <rmh@aybabtu.com>
17650
17651 * disk/raid.c: Update copyright.
17652 * fs/cpio.c: Likewise.
17653 * include/grub/raid.h: Likewise.
17654 * loader/i386/pc/multiboot.c: Likewise.
17655 * util/hostfs.c: Likewise.
17656
5626aee1 176572008-02-08 Robert Millan <rmh@aybabtu.com>
17658
17659 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
17660 to a grub_disk_t array.
17661 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
17662 `device[x]'.
17663 (grub_raid_scan_device): Replace `device[x].name' accesses with
17664 `device[x]->name'. Simplify initialization of `array->device[x]'.
17665
554f0187 176662008-02-08 Robert Millan <rmh@aybabtu.com>
17667
17668 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
17669 grub_dprintf() calls.
17670 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
17671 error message.
17672
1ec8425d 176732008-02-07 Christian Franke <franke@computer.org>
17674
17675 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
17676 instead of fseek and ftell to support large files.
17677 (grub_hostfs_read): Likewise.
17678
f2156fda 176792008-02-07 Robert Millan <rmh@aybabtu.com>
17680
17681 Patch from Jeroen Dekkers.
17682 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
fe6b695a 17683 failure, since successfully reading all array members might not be
f2156fda 17684 required.
17685
9216e0e7 176862008-02-06 Robert Millan <rmh@aybabtu.com>
17687
17688 * util/grub-probe.c (probe): Simplify partmap probing (with the
17689 assumption that the first word up to the underscore equals to
17690 the module name).
17691
b0dfd29a 176922008-02-06 Christian Franke <franke@computer.org>
17693
17694 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
17695 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
17696 last block of a cpio or tar stream.
17697 Check for "TRAILER!!!" instead of any empty data
17698 block to detect last block of a cpio stream.
17699 (grub_cpio_dir): Fix constness of variable np.
17700 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
17701 cpio or tar trailer is detected. This fixes a crash
17702 on open of a non existing file.
17703
c32865bf 177042008-02-05 Bean <bean123ch@gmail.com>
17705
17706 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
17707 address of entry.
17708 (grub_multiboot_load_elf64): Likewise.
17709 (grub_multiboot): Initialize mbi structure.
17710
17711 * util/grub-fstest.c: Don't include unused header file script.h.
17712
fe6b695a 17713 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
c32865bf 17714 of file.
17715 (grub_fstest_SOURCES): Likewise.
17716
409480b7 177172008-02-05 Robert Millan <rmh@aybabtu.com>
17718
17719 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
17720 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
17721 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
17722 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
17723
17724 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
17725 (translation_table): Replace hardcoded values with macros
17726 provided by `<grub/term.h>'.
17727
17728 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
17729 (keyboard_map): Correct/add a few values, with macros provided
17730 by `<grub/term.h>'.
17731 (keyboard_map_shift): Zero values that don't differ from their
17732 `keyboard_map' equivalents.
17733 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
17734 Discard the second scan code that is always sent by Caps lock.
17735 Only use `keyboard_map_shift' when it provides a non-zero value,
17736 otherwise fallback to `keyboard_map'.
17737
99fadbaa 177382008-02-04 Bean <bean123ch@gmail.com>
17739
17740 * Makefile.in (enable_grub_fstest): New variable.
17741
17742 * conf/common.rmk (grub_fstest_init.lst): New rule.
17743 (grub_fstest_init.h): Likewise.
17744 (grub_fstest_init.c): Likewise.
17745 (util/grub-fstest.c_DEPENDENCIES): New variable.
17746 (grub_fstest_SOURCES): Likewise.
17747
17748 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
17749
17750 * util/grub-fstest.c: New file.
17751
bf567c50 177522008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
17753
17754 Make grub-setup handle a separate root device.
f19dbdb7 17755
bf567c50 17756 * util/i386/pc/grub-setup.c (setup): Always open the root device,
17757 so that the root device can be compared with the destination
17758 device.
17759 When embedding the core image, if the root and destination devices
17760 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
17761 0xFF.
17762 When not embedding, set ROOT_DRIVE to 0xFF.
f19dbdb7 17763
9be6b98b 177642008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
17765
17766 Add support for having a grub directory in a different drive. This
17767 is still only the data handling part.
f19dbdb7 17768
9be6b98b 17769 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
17770 (codestart): Save %dh in GRUB_ROOT_DRIVE.
17771 (grub_root_drive): New variable.
17772
17773 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
17774 instead of GRUB_BOOT_DRIVE to construct a device name. Set
17775 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
17776 as it was.
17777
17778 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
17779
17780 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
17781 macro.
17782 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
17783
17784 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
17785 is bogus, because PXE booting does not specify any drive
17786 correctly.
17787
17788 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
17789 am not sure if this is really correct.
17790
17791 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
17792 is always identical to the boot drive when booting from a CD.
17793
17794 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
17795 longer.
17796 (root_drive): New variable.
17797 (real_start): Unconditionally set %dh to ROOT_DRIVE.
17798 (setup_sectors): Push %dx right after popping it, because %dh will
17799 be modified later.
17800 (copy_buffer): Restore %dx.
17801
e0ca0677 178022008-02-03 Robert Millan <rmh@aybabtu.com>
17803
17804 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
17805 use `cdboot.img' for cdrom images.
17806
3b3f6629 178072008-02-03 Robert Millan <rmh@aybabtu.com>
17808
17809 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
17810 only setup gfxterm when `font' command has succeeded.
17811
d42b3672 178122008-02-03 Robert Millan <rmh@aybabtu.com>
17813
17814 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
17815 (grub_rescue_cmd_multiboot_loader)
17816 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
17817
fa370ea6 178182008-02-03 Pavel Roskin <proski@gnu.org>
17819
e0c5dacb 17820 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
fa370ea6 17821 %edx and %esi from stack only after grub_gate_a20() is called.
17822 grub_gate_a20() clobbers %edx.
17823
f2a76e1d 178242008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
17825
17826 * configure.ac (AC_INIT): Bumped to 1.96.
17827
17828 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
17829 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
17830 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
17831 video/readers/png.c.
17832
90fd32d1 178332008-02-03 Bean <bean123ch@gmail.com>
9be665dd 17834
17835 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
17836 (cdboot_img_SOURCES): New variable.
17837 (cdboot_img_ASFLAGS): New variable.
17838 (cdboot_img_LDFLAGS): New variable.
17839
17840 * boot/i386/pc/cdboot.S: New file.
17841
17842 * disk/i386/pc/biosdisk.c (cd_start): New variable.
17843 (cd_count): Likewise.
17844 (grub_biosdisk_get_drive): Add support for cd device.
17845 (grub_biosdisk_call_hook): Likewise.
17846 (grub_biosdisk_iterate): Likewise.
17847 (grub_biosdisk_open): Likewise.
17848 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
17849 (grub_biosdisk_rw): Support reading from cd device.
17850 (GRUB_MOD_INIT): Iterate cd devices.
17851
17852 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
17853 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
17854 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
17855
17856 * kern/i386/pc/init.c (make_install_device): Check for cd device.
17857
4020aa53 178582008-02-02 Robert Millan <rmh@aybabtu.com>
17859
17860 * commands/read.c: New file.
17861 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
17862 (read_mod_SOURCES): New variable.
17863 (read_mod_CFLAGS): Likewise.
17864 (read_mod_LDFLAGS): Likewise.
17865
e03a1132 178662008-02-02 Robert Millan <rmh@aybabtu.com>
17867
17868 * normal/main.c (grub_normal_execute): Check for `menu->size' when
17869 determining whether menu has to be displayed.
17870
58c69220 178712008-02-02 Marco Gerards <marco@gnu.org>
17872
17873 * bus/pci.c: New file.
17874
17875 * include/grub/pci.h: Likewise.
17876
17877 * include/grub/i386/pc/pci.h: Likewise.
17878
17879 * commands/lspci.c: Likewise.
17880
17881 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
17882 `lspci.mod'.
17883 (pci_mod_SOURCES): New variable.
17884 (pci_mod_CFLAGS): Likewise.
17885 (pci_mod_LDFLAGS): Likewise.
17886 (lspci_mod_SOURCES): Likewise.
17887 (lspci_mod_CFLAGS): Likewise.
f19dbdb7 17888 (lspci_mod_LDFLAGS): Likewise.
58c69220 17889
c004e1b4 178902008-02-02 Bean <bean123ch@gmail.com>
17891
17892 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
17893 (grub_ufs_get_file_block): Fix indirect block calculation problem.
17894
17895 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
17896 (grub_xfs_btree_node): New structure.
17897 (grub_xfs_btree_root): New structure.
17898 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
17899 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
17900 (GRUB_XFS_EXTENT_BLOCK): Likewise.
17901 (GRUB_XFS_EXTENT_SIZE): Likewise.
17902 (grub_xfs_read_block): Support btree format type.
17903 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
17904 Use directory block as basic unit.
17905
17906 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
17907
17908 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
17909 __attribute__ ((__regparm__ (1))).
17910
f95562bf 179112008-02-01 Robert Millan <rmh@aybabtu.com>
17912
17913 Correct a mistake in previous commit.
17914
17915 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
17916 top.
17917 (normal/command.c_DEPENDENCIES): New variable.
17918
7d31f41f 179192008-02-01 Robert Millan <rmh@aybabtu.com>
17920
17921 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
17922 top.
17923 (normal/command.c_DEPENDENCIES): New variable.
17924 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
17925 * conf/i386-ieee1275.rmk: Likewise.
17926 * conf/i386-linuxbios.rmk: Likewise.
17927 * conf/i386-pc.rmk: Likewise.
17928 * conf/sparc64-ieee1275.rmk: Likewise.
17929 * conf/powerpc-ieee1275.rmk: Likewise.
17930 (grub_emu_SOURCES): Add `fs/fshelp.c'.
17931
17932 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
17933
60b6be74 179342008-02-01 Robert Millan <rmh@aybabtu.com>
17935
17936 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
17937 call at beginning of function.
17938
078522ab 179392008-01-31 Pavel Roskin <proski@gnu.org>
17940
17941 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
d2c11005 17942 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
17943 (grub_mkrescue_SOURCES): Likewise.
078522ab 17944 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
17945
ccaa8a5f 179462008-01-30 Robert Millan <rmh@aybabtu.com>
17947
17948 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
17949 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
17950 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
17951 (grub_probe_SOURCES): ... to here.
17952
17953 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
17954 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
17955 * conf/i386-ieee1275.rmk: Likewise.
17956 * conf/i386-linuxbios.rmk: Likewise.
17957 * conf/powerpc-ieee1275.rmk: Likewise.
17958
ae5a9cd7 179592008-01-30 Tristan Gingold <gingold@free.fr>
17960
17961 * kern/rescue.c: Silently accept empty lines.
17962
70bc2ef2 179632008-01-29 Bean <bean123ch@gmail.com>
17964
17965 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
17966 (real_code_2): Code cleanup and change comment style.
17967 (move_memory): Avoid using 32-bit address mode.
17968
6a4d50ea 179692008-01-29 Bean <bean123ch@gmail.com>
17970
17971 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
17972 (png_mod_SOURCES): New variable.
17973 (png_mod_CFLAGS): Likewise.
17974 (png_mod_LDFLAGS): Likewise.
17975
17976 * video/readers/png.c: New file.
17977
11cc30ac 179782008-01-28 Robert Millan <rmh@aybabtu.com>
17979
17980 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
17981 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
17982 `ifndef GRUB_MOD_GAP' hack.
17983 * util/elf/grub-mkimage.c (add_segments): Likewise.
17984
3abc589f 179852008-01-27 Robert Millan <rmh@aybabtu.com>
17986
17987 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
17988 `GRUB_MOD_GAP' for platforms in which it's not defined.
962ca133 17989 * util/elf/grub-mkimage.c (add_segments): Likewise.
3abc589f 17990
e1907778 179912008-01-27 Robert Millan <rmh@aybabtu.com>
17992
17993 Get grub-emu to build again (including parallel builds).
17994
17995 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
17996 Split into ...
17997 (util/grub-emu.c_DEPENDENCIES): ... this, ...
17998 (normal/execute.c_DEPENDENCIES): ... this, ...
17999 (grub-emu_DEPENDENCIES): ... and this.
18000
18001 * conf/i386-efi.rmk: Likewise.
18002 * conf/i386-linuxbios.rmk: Likewise.
18003 * conf/i386-ieee1275.rmk: Likewise.
18004 * conf/powerpc-ieee1275.rmk: Likewise.
18005 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
18006
2216b101 180072008-01-27 Robert Millan <rmh@aybabtu.com>
18008
18009 * NEWS: Add a few items.
18010
f75172d9 180112008-01-27 Robert Millan <rmh@aybabtu.com>
18012
18013 Fix parallel builds with grub-emu. Based on earlier commit for
18014 grub-probe and grub-setup.
18015
18016 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
18017 (util/grub-emu.c_DEPENDENCIES): ... this.
18018 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
18019 (util/grub-emu.c_DEPENDENCIES): ... this.
18020 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
18021 (util/grub-emu.c_DEPENDENCIES): ... this.
18022 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
18023 (util/grub-emu.c_DEPENDENCIES): ... this.
18024 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
18025 (util/grub-emu.c_DEPENDENCIES): ... this.
18026
3f51de77 180272008-01-27 Pavel Roskin <proski@gnu.org>
18028
18029 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
18030 to create a gap between _end and the modules added to the image
18031 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
18032 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
18033 * util/elf/grub-mkimage.c (add_segments): Likewise.
18034
2033f53e 180352008-01-26 Pavel Roskin <proski@gnu.org>
18036
18037 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
18038 just return an error.
18039
22da1f6f 180402008-01-26 Bean <bean123ch@gmail.com>
18041
18042 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
18043 (grub_reiserfs_get_item): Save offset of the next item.
18044 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
18045
2a9525e6 180462008-01-25 Robert Millan <rmh@aybabtu.com>
18047
18048 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
18049 make all filesystem sources appear together (possibly fixing omissions
18050 while at it).
18051 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
18052 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18053 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
18054 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18055
18056 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
18057 add `kern/file.c'.
18058 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
18059 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
18060 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
18061 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
18062
18063 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
18064 (probe): Add a sanity check to make sure of our ability to read
18065 requested files when probing for filesystem type.
18066
18067 * genmk.rb: Update copyright year (2007).
18068
18069 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
18070 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
18071 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
18072 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
18073 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
18074 : Remove function prototypes.
18075
b95f71b5 180762008-01-25 Robert Millan <rmh@aybabtu.com>
18077
18078 Revert my previous commits (based on wrong assumption of how grub_errno
18079 works).
18080
fe6b695a 18081 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
b95f71b5 18082 * kern/file.c (grub_file_open): Likewise.
18083
d08bbb49 180842008-01-24 Pavel Roskin <proski@gnu.org>
18085
18086 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
18087 that hang if GRUB tries to setup colors.
18088 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
18089 colors for firmwares that don't support it.
18090 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
18091 Recognize Open Hack'Ware, set flags to work around its
18092 limitations.
18093
605e36ed 180942008-01-24 Robert Millan <rmh@aybabtu.com>
18095
18096 * kern/file.c (grub_file_open): Do not account previous failures of
18097 unrelated functions when grub_errno is checked for.
18098 Reported by Oleg Strikov.
18099
bac332a1 181002008-01-24 Bean <bean123ch@gmail.com>
18101
18102 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
18103 (grub_ufs_sblock): New member volume name.
18104 (grub_ufs_find_file): Fix string copy bug.
18105 (grub_ufs_label): Implement this function properly.
18106
18107 * fs/hfs.c (grub_hfs_cnid_type): New enum.
18108 (grub_hfs_iterate_records): Use the correct file number for extents
18109 and catalog file. Fix problem in next index calculation.
18110 (grub_hfs_find_node): Replace recursive function call with loop.
18111 (grub_hfs_iterate_dir): Replace recursive function call with loop.
18112
15c80c09 181132008-01-23 Robert Millan <rmh@aybabtu.com>
18114
18115 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
18116 `<grub/symbol.h>' and `<grub/multiboot.h>'.
18117 (grub_multiboot2_real_boot): New function prototype.
18118
18119 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
18120 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
18121
18122 * kern/i386/ieee1275/init.c (grub_os_area_addr)
18123 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
18124
305338fd 181252008-01-23 Robert Millan <rmh@aybabtu.com>
18126
18127 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
18128 #ifdef'ed out grub_printf().
18129
3ea52685 181302008-01-23 Robert Millan <rmh@aybabtu.com>
18131
18132 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
18133 grub_dprintf calls, since they make "debug=all" mode unusable.
18134 (grub_console_checkkey): Likewise.
18135
5882ae4b 181362008-01-23 Robert Millan <rmh@aybabtu.com>
18137
18138 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
18139 `term/i386/pc/at_keyboard.c'.
18140 (pkglib_MODULES): Add `serial.mod'.
18141 (serial_mod_SOURCES): New variable.
18142 (serial_mod_CFLAGS): Likewise.
18143 (serial_mod_LDFLAGS): Likewise.
18144
18145 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
18146 `<grub/powerpc/ieee1275/console.h>'.
18147 (grub_keyboard_controller_init): New function prototype.
18148 (grub_console_checkkey): Likewise.
18149 (grub_console_getkey): Likewise.
18150
18151 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
18152 keyboard on i386.
18153
18154 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
18155 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
18156
06ab5303 181572008-01-23 Robert Millan <rmh@aybabtu.com>
18158
18159 * kern/i386/pc/init.c (make_install_device): When memdisk image is
18160 present, "(memdisk)/boot/grub" becomes the default prefix.
18161
18162 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
18163 a memdisk tarball with all the modules. Add --overlay=DIR option that
18164 allows users to overlay additional files into the image.
18165
dbb475a4 181662008-01-23 Robert Millan <rmh@aybabtu.com>
18167
18168 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
18169 and `machine/memory.h'.
18170 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
18171 (_multiboot_mod_SOURCES): New variable.
18172 (_multiboot_mod_CFLAGS): Likewise.
18173 (_multiboot_mod_LDFLAGS): Likewise.
18174 (multiboot_mod_SOURCES): Likewise.
18175 (multiboot_mod_CFLAGS): Likewise.
18176 (multiboot_mod_LDFLAGS): Likewise.
18177
18178 * include/grub/i386/ieee1275/loader.h: New file.
18179
18180 * include/grub/i386/ieee1275/machine.h: Likewise.
18181
18182 * include/grub/i386/ieee1275/memory.h: Likewise.
18183
18184 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
18185 variable declaration.
18186 (grub_os_area_size): Likewise.
18187
18188 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
18189 (grub_lower_mem, grub_upper_mem): New variables.
18190 (grub_stop_floppy): New function (just to make
18191 grub_multiboot2_real_boot() happy).
18192
18193 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
18194 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
18195 (grub_stop): New function.
18196 Include `"../realmode.S"' and `"../loader.S"'.
18197
18198 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
18199 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
18200
18201 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
18202 rely on grub_multiboot2_real_boot() for final boot.
18203
25638629 182042008-01-22 Robert Millan <rmh@aybabtu.com>
18205
18206 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
18207 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
18208 device that doesn't look like an SD card.
18209 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
18210 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
18211 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
18212 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
18213 found.
18214
9dad816d 182152008-01-22 Robert Millan <rmh@aybabtu.com>
18216
18217 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
18218 avoid claiming over our own code.
18219
34842f2d 182202008-01-22 Bean <bean123ch@gmail.com>
18221
18222 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
18223 (jpeg_mod_SOURCES): New variable.
18224 (jpeg_mod_CFLAGS): Likewise.
18225 (jpeg_mod_LDFLAGS): Likewise.
18226
18227 * video/readers/jpeg.c : New file.
18228
44023a28 182292008-01-22 Bean <bean123ch@gmail.com>
18230
18231 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
18232 there are no more items.
18233
bc2d8ac6 182342008-01-21 Robert Millan <rmh@aybabtu.com>
18235
18236 * kern/mm.c (grub_mm_init_region): Improve debug message.
18237
261bd4bc 182382008-01-21 Robert Millan <rmh@aybabtu.com>
18239
18240 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
18241 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
18242 address.
18243 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
18244 a C macro.
18245 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
18246 Indicates start of upper memory.
18247 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
18248 (generate_image): Abort when image size is big enough to corrupt
18249 upper memory.
18250
18251 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
18252 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
18253 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
18254 instead of hardcoding 0xA0000.
18255 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
18256 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
18257 instead of hardcoding 0xA0000.
18258
f970b55e 182592008-01-21 Robert Millan <rmh@aybabtu.com>
18260
18261 * disk/memdisk.c (memdisk_size): New variable.
18262 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
18263 `memdisk_size'.
18264 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
18265 image to dynamic memory.
18266 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
18267 `memdisk_size'. Free memdisk block.
18268
1a8b0526 182692008-01-21 Robert Millan <rmh@aybabtu.com>
18270
18271 Fix detection of very small filesystems (like tar).
18272
18273 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
18274 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
18275 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
18276 a problem with this disk).
18277
6e9b4aab 182782008-01-21 Robert Millan <rmh@aybabtu.com>
18279
18280 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
18281 on grub_biosdisk_rw_standard() error.
18282
0d8837b2 182832008-01-21 Robert Millan <rmh@aybabtu.com>
18284
18285 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
18286 recent changes.
18287 * kern/elf.c: Likewise.
18288 * kern/ieee1275/ieee1275.c: Likewise.
18289 * kern/powerpc/ieee1275/openfw.c: Likewise.
18290 * term/ieee1275/ofconsole.c: Likewise.
18291
ffd36e34 182922008-01-21 Robert Millan <rmh@aybabtu.com>
18293
18294 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
18295
3f0093d0 18296 * include/grub/kernel.h (grub_arch_memdisk_addr)
18297 (grub_arch_memdisk_size): Moved from here ...
ffd36e34 18298
3f0093d0 18299 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
18300 (grub_arch_memdisk_size): ... to here.
ffd36e34 18301
6c391b21 183022008-01-21 Robert Millan <rmh@aybabtu.com>
18303
18304 Mostly based on bugfix from Bean.
18305
18306 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
18307 attribute with hook() parameter.
18308 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
18309 declaration.
18310 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
18311 attribute with hook() parameter.
18312 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
18313 declaration.
18314
55a581dc 183152008-01-21 Robert Millan <rmh@aybabtu.com>
18316
18317 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
18318 (pkglib_MODULES): Add `memdisk.mod'.
18319 (memdisk_mod_SOURCES): New variable.
18320 (memdisk_mod_CFLAGS): Likewise.
18321 (memdisk_mod_LDFLAGS): Likewise.
18322
18323 * disk/memdisk.c: New file.
18324
18325 * include/grub/disk.h (grub_disk_dev_id): Add
18326 `GRUB_DISK_DEVICE_MEMDISK_ID'.
18327
18328 * include/grub/i386/pc/kernel.h
18329 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
18330 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
18331 (grub_kernel_image_size): New variable declaration.
18332 (grub_total_module_size): Likewise.
18333 (grub_memdisk_image_size): Likewise.
18334
18335 * include/grub/i386/pc/memory.h
18336 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
18337
18338 * include/grub/kernel.h: Include `<grub/symbol.h>'.
18339 (grub_arch_memdisk_addr): New variable declaration.
18340 (grub_arch_memdisk_size): Likewise.
18341
18342 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
18343 (grub_arch_memdisk_size): Likewise.
18344
18345 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
18346 (codestart): Replace hardcoded `0x100000' with
18347 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
18348
18349 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
18350 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
18351 not NULL, append the contents of the file it refers to, at the end of
18352 the compressed kernel image. Initialize `grub_memdisk_image_size'
18353 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
18354 (options): Add "memdisk"|'m' option.
18355 (main): Parse --memdisk|-m option, and pass user-provided path as
18356 parameter to generate_image().
18357
3d7f54c9 183582008-01-20 Robert Millan <rmh@aybabtu.com>
18359
18360 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
18361 grub_dprintf() calls from here ...
18362 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
18363
0bf74728 183642008-01-20 Robert Millan <rmh@aybabtu.com>
18365
18366 Fix detection of "real mode" when /options/real-mode? doesn't exist.
18367
18368 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
18369 declaration.
18370 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
18371 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
18372 `GRUB_IEEE1275_FLAG_REAL_MODE'.
fe6b695a 18373 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
0bf74728 18374 property).
18375 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
18376 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
18377
33bf70a7 183782008-01-19 Robert Millan <rmh@aybabtu.com>
18379
fe6b695a 18380 Get rid of confusing function (superseded by
33bf70a7 18381 `grub_ieee1275_get_integer_property')
18382 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
18383 prototype.
18384 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
18385 function.
18386 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
18387 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
fe987087 18388 in native endianness from grub_ieee1275_get_integer_property().
33bf70a7 18389
e2da7d26 183902008-01-19 Robert Millan <rmh@aybabtu.com>
18391
18392 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
18393 command after "shut-down", since implementations differ on which
18394 the command for halt is.
18395
59f1fd8d 183962008-01-19 Robert Millan <rmh@aybabtu.com>
18397
18398 * include/grub/i386/linuxbios/console.h: Add header protection.
18399 (grub_keyboard_controller_init): New function prototype.
18400 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
18401 (KEYBOARD_COMMAND_READ): Likewise.
18402 (KEYBOARD_COMMAND_WRITE): Likewise.
18403 (KEYBOARD_SCANCODE_SET1): Likewise.
18404 (grub_keyboard_controller_write): New function.
18405 (grub_keyboard_controller_read): Likewise.
18406 (grub_keyboard_controller_init): Likewise.
18407
18408 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
18409 (grub_console_init): On coreboot/LinuxBIOS, call
18410 grub_keyboard_controller_init().
18411
5f5a7c15 184122008-01-19 Robert Millan <rmh@aybabtu.com>
18413
18414 PowerPC changes provided by Pavel Roskin.
18415
18416 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
18417 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
18418 don't rely on cmain() doing it.
18419 * kern/i386/ieee1275/startup.S (_start): Store %eax in
18420 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
18421
1210e168 184222008-01-16 Robert Millan <rmh@aybabtu.com>
18423
18424 * include/grub/i386/linuxbios/memory.h
18425 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
18426 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
18427 receive `table_header' as argument. Instead, probe for it in the
18428 known memory ranges where it can be present.
18429 (grub_available_iterate): Do not pass a fixed `table_header' address
18430 to grub_linuxbios_table_iterate().
18431
3d04eab8 184322008-01-15 Robert Millan <rmh@aybabtu.com>
18433
18434 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
18435 * conf/i386-ieee1275.rmk: New file.
18436 * include/grub/i386/ieee1275/console.h: Likewise.
18437 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
18438 * include/grub/i386/ieee1275/kernel.h: Likewise.
18439 * include/grub/i386/ieee1275/time.h: Likewise.
18440 * kern/i386/ieee1275/init.c: Likewise.
18441 * kern/i386/ieee1275/startup.S: Likewise.
18442
d1bc1b73 184432008-01-15 Robert Millan <rmh@aybabtu.com>
18444
18445 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
18446 when pointers are 32-bit (but still do set it to one when they are
18447 64-bit).
18448
66a65807 184492008-01-15 Robert Millan <rmh@aybabtu.com>
18450
18451 * include/grub/ieee1275/ieee1275.h
18452 (grub_ieee1275_get_integer_property): New function prototype.
18453
18454 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
18455 (grub_ieee1275_get_integer_property): New function. Wraps around
fe987087 18456 grub_ieee1275_get_property() to handle endianness.
66a65807 18457
18458 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
18459 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
fe6b695a 18460 where appropriate.
66a65807 18461 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
18462 (grub_map): Likewise.
18463 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
18464
a83ccafd 184652008-01-15 Bean <bean123ch@gmail.com>
18466
18467 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
18468 (grub_script_execute_cmdline): Reset grub_errno.
18469
18470 * normal/main.c (read_config_file): Reset grub_errno.
18471
18472 * normal/parse.y (script_init): New.
18473 (script): Move function and menuentry here.
18474 (delimiter): New.
18475 (command): Add delimiter at the end of command.
18476 (commands): Adjust to match the new command.
18477 (commandblock): Remove grub_script_lexer_record_start.
f19dbdb7 18478 (menuentry): Add grub_script_lexer_record_start, use the new commands.
a83ccafd 18479 (if): Use the new commands.
18480
18481 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
18482
df6ecfc6 184832008-01-15 Robert Millan <rmh@aybabtu.com>
18484
18485 * normal/menu.c (run_menu): Move timeout message from here ...
18486 (print_timeout): ... to here.
18487 (run_menu): Use print_timeout() once during initial draw to print
18488 the whole message, and again in every clock tick to update only
18489 the number of seconds.
18490
87ae25eb 184912008-01-15 Robert Millan <rmh@aybabtu.com>
18492
18493 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
18494 actual size of `available' from grub_ieee1275_get_property(), and
18495 restrict parsing to that bound.
18496
47bf09a4 184972008-01-15 Christian Franke <franke@computer.org>
18498
18499 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
18500 (argp_program_version): Remove variable.
18501 (argp_program_bug_address): Likewise.
18502 (options): Convert from struct argp_option to struct option.
18503 (struct arguments): Remove.
18504 (parse_opt): Remove.
18505 (usage): New function.
18506 (main): Replace struct args members by simple variables.
18507 Replace argp_parse() by getopt_long().
18508 Add switch to evaluate options.
18509 Add missing "(...)" around root_dev in prefix string.
18510
c86f1469 185112008-01-14 Robert Millan <rmh@aybabtu.com>
18512
18513 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
18514 for grub_ieee1275_exit(), in order to improve portability.
18515
e622c559 185162008-01-14 Robert Millan <rmh@aybabtu.com>
18517
18518 * util/grub.d/10_linux.in (prefix): Define.
18519 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
18520
44cb1ec8 185212008-01-13 Pavel Roskin <proski@gnu.org>
18522
18523 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
18524 grub_errno if no errors have been detected.
18525
1eb8c802 185262008-01-12 Robert Millan <rmh@aybabtu.com>
18527
18528 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
18529 (grub_util_get_dev_abstraction): New function prototype.
18530
18531 * util/getroot.c: Include `<grub/util/getroot.h>'
18532 (grub_util_get_grub_dev): Move detection of abstraction type to ...
18533 (grub_util_get_dev_abstraction): ... here (new function).
18534
18535 * util/grub-probe.c: Convert PRINT_* to an enum. Add
18536 `PRINT_ABSTRACTION'.
18537 (probe): Probe for abstraction type when requested.
18538 (main): Understand `--target=abstraction'.
18539
18540 * util/i386/efi/grub-install.in: Add abstraction module to core
18541 image when it is found to be necessary.
18542 * util/i386/pc/grub-install.in: Likewise.
18543 * util/powerpc/ieee1275/grub-install.in: Likewise.
18544
18545 * util/update-grub_lib.in (font_path): Return system path without
18546 converting to GRUB path.
18547 * util/update-grub.in: Convert system path returned by font_path()
18548 to a GRUB path. Use `grub-probe -t abstraction' to determine what
18549 abstraction module is needed for loading fonts (if any). Export
18550 that as `GRUB_PRELOAD_MODULES'.
18551 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
18552 insmod commands).
18553
52bd3de9 185542008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
18555
18556 Remove some unused code from reiserfs.
f19dbdb7 18557
52bd3de9 18558 * fs/reiserfs.c (struct grub_reiserfs_key)
18559 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
18560 (struct grub_reiserfs_node_body): Removed.
18561 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
18562 Likewise.
18563 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
18564 Likewise.
18565 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
18566 Likewise.
18567 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
18568 Likewise.
18569 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
18570 Likewise.
18571 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
18572 Likewise.
18573 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
18574 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
18575 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
18576
2f80039d 185772008-01-10 Robert Millan <rmh@aybabtu.com>
18578
18579 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
18580 Determines if a file is garbage left by packaging systems, etc.
18581 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
18582 for processing /etc/grub.d scripts.
18583 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
18584 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
18585 as a condition for processing Linux images.
18586
87888032 185872008-01-10 Pavel Roskin <proski@gnu.org>
18588
18589 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
18590 to compile reiserfs.c on PowerPC.
18591
7e54fced 185922008-01-10 Robert Millan <rmh@aybabtu.com>
de9993e0 18593
18594 * kern/device.c (grub_device_iterate): Do not abort device iteration
18595 when one of the devices cannot be opened.
18596 * kern/disk.c (grub_disk_open): Do not account previous failures of
18597 unrelated functions when grub_errno is checked for.
18598
5aa541e6 185992008-01-08 Robert Millan <rmh@aybabtu.com>
18600
18601 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
18602 `! grub_linux_is_bzimage', change order of address comparison to make
18603 it more intuitive, and improve "too big zImage" error message.
18604
7076340d 186052008-01-08 Robert Millan <rmh@aybabtu.com>
18606
18607 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
18608 `$(update-grub_DATA)'.
18609 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
18610 targets.
18611
9ca70333 186122008-01-07 Robert Millan <rmh@aybabtu.com>
18613
18614 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
18615 which instruction is modified by grub-setup during installation
18616 (since it wasn't obvious by only looking at this file).
18617
38ccf575 186182008-01-07 Robert Millan <rmh@aybabtu.com>
18619
18620 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
18621 listing actual TODO items.
18622
f5db4291 186232008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
18624
868967cf 18625 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
18626 correctly.
18627 (grub_reiserfs_get_key_offset): Likewise.
18628 (grub_reiserfs_set_key_offset): Likewise.
18629 (grub_reiserfs_set_key_type): Likewise.
fe6b695a 18630 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
868967cf 18631
18632 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
18633 better to remove the bitfield version completely.
f19dbdb7 18634
868967cf 186352008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
f19dbdb7 18636
f5db4291 18637 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
18638 allocated from the heap, due to the fshelp implementation.
18639 (grub_reiserfs_dir): Free NODE, due to the same reason.
18640
492e6d9d 186412008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
18642
18643 Mostly from Vincent Pelletier:
f19dbdb7 18644
492e6d9d 18645 * fs/reiserfs.c: New file.
f19dbdb7 18646
492e6d9d 18647 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
18648 (reiserfs_mod_SOURCES): New variable.
18649 (reiserfs_mod_CFLAGS): Likewise.
18650 (reiserfs_mod_LDFLAGS): Likewise.
18651
18652 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
18653 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
18654 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
18655 normal/color.c.
18656
9ce3e7c1 186572008-01-06 Robert Millan <rmh@aybabtu.com>
18658
18659 * normal/color.c: Remove `<grub/env.h>'.
18660
f3b58148 186612008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
18662
18663 * include/grub/normal.h: Include <grub/env.h>.
18664
7ac3bcfa 186652008-01-05 Robert Millan <rmh@aybabtu.com>
18666
18667 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
18668 usage example with `(hd0,1)'.
fb358190 18669 Reported by Samuel Thibault.
7ac3bcfa 18670
c8ee99d7 186712008-01-05 Robert Millan <rmh@aybabtu.com>
18672
18673 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
18674 (grub_linux_boot_zimage): Rename to ...
18675 (grub_linux_boot): ... this.
18676 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
18677 (grub_linux_boot_zimage): Conditionalize zImage copy.
18678
18679 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
18680 (grub_linux_boot_bzimage): Remove prototype.
18681 (grub_linux_boot_zimage): Rename to ...
18682 (grub_linux_boot): ... this.
18683
18684 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
18685 (grub_linux_boot): Remove function.
18686
0ece25b1 186872008-01-05 Robert Millan <rmh@aybabtu.com>
18688
18689 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
18690 (grub_env_write_color_highlight): Likewise.
18691 (grub_wait_after_message): Likewise.
18692
18693 * normal/color.c: New file.
18694
18695 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
18696 (normal_mod_DEPENDENCIES): Likewise.
18697
18698 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
18699 (normal_mod_DEPENDENCIES): Likewise.
18700
18701 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
18702 (normal_mod_DEPENDENCIES): Likewise.
18703
18704 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
18705 (normal_mod_DEPENDENCIES): Likewise.
18706
18707 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
18708 for waiting after a message is printed.
18709 * normal/main.c (read_config_file): Likewise.
18710 (grub_normal_init): Register grub_env_write_color_normal() and
18711 grub_env_write_color_highlight() hooks. Mark `color_normal' and
18712 `color_highlight' variables as global.
18713
18714 * normal/menu.c (grub_wait_after_message): New function.
18715 (grub_color_menu_normal): New variable. Replaces ...
18716 (GRUB_COLOR_MENU_NORMAL): ... this macro.
18717 (grub_color_menu_highlight): New variable. Replaces ...
18718 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
18719 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
18720 `GRUB_TERM_COLOR_STANDARD'.
18721 (print_message): Use `grub_setcolorstate' to reload colors. Rename
18722 `normal_code' and `highlight_code' to `old_color_normal' and
18723 `old_color_highlight', respectively.
18724 (grub_menu_init_page): Update colors when drawing the menu, based on
18725 `menu_color_normal' and `menu_color_highlight' variables.
18726 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
18727 a message is printed.
18728
182dd4e5 187292008-01-05 Robert Millan <rmh@aybabtu.com>
18730
18731 * kern/env.c (grub_env_context_open): Propagate hooks for global
18732 variables to new context.
18733
18734 * kern/main.c (grub_set_root_dev): Export `root' variable.
18735
ddf8f6ad 187362008-01-05 Robert Millan <rmh@aybabtu.com>
18737
18738 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
fe6b695a 18739 discs unconditionally, since udev and others have options to provide
ddf8f6ad 18740 them.
18741
d8b43d9b 187422008-01-05 Robert Millan <rmh@aybabtu.com>
18743
18744 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
18745
2bff2de3 187462008-01-04 Christian Franke <franke@computer.org>
18747
18748 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
18749 of eisa_mmap.
18750
97eab917 187512008-01-03 Pavel Roskin <proski@gnu.org>
18752
18753 * kern/i386/linuxbios/init.c: Put "void" to all function
18754 declarations with no arguments.
18755 * kern/powerpc/ieee1275/init.c: Likewise.
18756 * term/i386/pc/at_keyboard.c: Likewise.
18757 * term/i386/pc/vga_text.c: Likewise.
18758 * util/grub-mkdevicemap.c: Likewise.
18759
b9416d00 187602008-01-02 Robert Millan <rmh@aybabtu.com>
18761
18762 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
18763 message when loaded image is out of bounds.
18764 (grub_multiboot_load_elf64): Likewise.
18765
92695df9 187662008-01-02 Pavel Roskin <proski@gnu.org>
18767
18768 * util/grub.d/10_linux.in: Try version without ".old" when
18769 looking for initrd. It's better to use initrd from the newer
18770 kernel of the same version than no initrd at all.
18771
d98d9cad 187722008-01-01 Robert Millan <rmh@aybabtu.com>
18773
18774 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
18775
dbfdce36 187762008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
18777
f19dbdb7 18778 * include/grub/video.h: Added grub_video_unmap_color and
dbfdce36 18779 grub_video_get_active_render_target.
18780 (grub_video_adapter): Added unmap_color and get_active_render_target.
18781
f19dbdb7 18782 * video/video.c: Added grub_video_unmap_color and
dbfdce36 18783 grub_video_get_active_render_target.
18784 (grub_video_get_info): Changed method to accept NULL pointer as an
18785 argument to allow detection of active video adapter.
18786
18787 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
18788 grub_video_vbe_unmap_color_int.
18789 Added grub_video_vbe_unmap_color and
18790 grub_video_vbe_get_active_render_target.
18791 (grub_video_vbe_adapter): Added unmap_color and
18792 get_active_render_target.
18793
f19dbdb7 18794 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
dbfdce36 18795 with grub_video_vbe_unmap_color_int.
18796
18797 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
18798 (DEFAULT_NORMAL_COLOR): Likewise.
18799 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
18800 (DEFAULT_FG_COLOR): Removed.
18801 (DEFAULT_BG_COLOR): Likewise.
18802 (DEFAULT_CURSOR_COLOR): Changed value.
18803 (grub_virtual_screen): Added standard_color_setting,
18804 normal_color_setting, highlight_color_setting and term_color.
18805 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
18806 (bitmap_width): Added.
18807 (bitmap_height): Likewise.
18808 (bitmap): Likewise.
18809 (set_term_color): Likewise.
18810 (grub_virtual_screen_setup): Changed to use new terminal coloring
18811 settings.
18812 (grub_gfxterm_init): Added init for bitmap.
18813 (grub_gfxterm_fini): Added destroy for bitmap.
18814 (redraw_screen_rect): Updated to use background bitmap and new
18815 terminal coloring.
18816 (scroll_up): Added optimization for case when there is no bitmap.
18817 (grub_gfxterm_cls): Fixed to use correct background color.
18818 (grub_virtual_screen_setcolorstate): Changed to use new terminal
18819 coloring.
18820 (grub_virtual_screen_setcolor): Likewise.
18821 (grub_virtual_screen_getcolor): Added.
18822 (grub_gfxterm_background_image_cmd): Likewise.
18823 (grub_video_term): Added setcolor and getcolor.
18824 (MOD_INIT): Added registration of background_image command.
18825 (MOD_TERM): Added unregistration for background_image command.
18826
c3c20931 188272007-12-30 Pavel Roskin <proski@gnu.org>
18828
18829 * loader/multiboot_loader.c: Fix multiboot command
18830 unregistration. Fix all typos in the word "multiboot".
18831
df266716 188322007-12-29 Pavel Roskin <proski@gnu.org>
94239199 18833
18834 * util/grub.d/10_linux.in: Refactor search for initrd. Add
18835 support for initrd names used in Fedora.
18836
fc6e896c 188372007-12-26 Bean <bean123ch@gmail.com>
18838
18839 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
18840 (cpio_mod_SOURCES): New variable.
18841 (cpio_mod_CFLAGS): Likewise.
18842 (cpio_mod_LDFLAGS): Likewise.
18843
18844 * fs/cpio.c: New file.
18845
18846 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
18847
18848 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
18849
18850 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
18851
18852 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18853
533110ad 188542007-12-25 Robert Millan <rmh@aybabtu.com>
18855
18856 * include/grub/term.h (struct grub_term): Add `getcolor' function.
18857 (grub_getcolor): New function.
18858
18859 * kern/term.c (grub_getcolor): New function.
18860 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
18861 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
18862 (print_entry): Set normal and highlight colors to
18863 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
18864 respectively, before printing and restore them to old
18865 values afterwards.
18866 (grub_menu_init_page): Likewise. Fill an additional colored space
18867 that would otherwise be left blank.
18868
18869 * term/efi/console.c (grub_console_getcolor): New function.
18870 (struct grub_console_term.getcolor): New variable.
18871 * term/i386/pc/console.c (grub_console_getcolor): New function.
18872 (struct grub_console_term.getcolor): New variable.
18873 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
18874 (struct grub_console_term.getcolor): New variable.
18875
18876 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
18877 (struct grub_console_term.setcolor): Remove variable.
18878 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
18879 (struct grub_console_term.setcolor): Remove variable.
18880 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
18881 (struct grub_console_term.setcolor): Remove variable.
18882 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
18883 (struct grub_console_term.setcolor): Remove variable.
18884
4931827f 188852007-12-25 Robert Millan <rmh@aybabtu.com>
18886
18887 * configure.ac: Search for possible unifont.hex locations, and
18888 define UNIFONT_HEX if found.
18889
18890 * Makefile.in (UNIFONT_HEX): Define variable.
18891 (DATA): Rename to ...
18892 (PKGLIB): ... this. Update all users.
18893 (PKGDATA): New variable.
18894 (pkgdata_IMAGES): Rename to ...
18895 (pkglib_IMAGES): ... this. Update all users.
18896 (pkgdata_MODULES): Rename to ...
18897 (pkglib_MODULES): ... this. Update all users.
18898 (pkgdata_PROGRAMS): Rename to ...
18899 (pkglib_PROGRAMS): ... this. Update all users.
18900 (pkgdata_DATA): Rename to ...
18901 (pkglib_DATA): ... this. Update all users.
18902 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
18903 (unicode.pff, ascii.pff): New rules.
18904 (all-local): Add `$(PKGDATA)' dependency.
18905 (install-local): Process `$(PKGDATA)'.
18906
18907 * util/update-grub_lib.in (font_path): Search for *.pff files in
18908 a few more locations, including `${pkgdata}'.
18909
57e57e31 189102007-12-23 Robert Millan <rmh@aybabtu.com>
18911
18912 Patch from Bean <bean123ch@gmail.com>:
18913 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
18914 `size'.
18915
4bc72aa9 189162007-12-21 Bean <bean123ch@gmail.com>
18917
18918 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
18919 (ntfscomp_mod_SOURCES): New variable.
18920 (ntfscomp_mod_CFLAGS): Likewise.
18921 (ntfscomp_mod_LDFLAGS): Likewise.
18922
18923 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
18924 (grub_probe_SOURCES): Likewise.
18925 (grub_emu_SOURCES): Likewise.
18926
18927 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
18928 (grub_emu_SOURCES): Likewise.
18929
18930 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
18931 (grub_emu_SOURCES): Likewise.
18932
18933 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
18934 (grub_emu_SOURCES): Likewise.
18935
18936 * fs/ntfs.c (grub_ntfscomp_func): New variable.
18937 (read_run_list): Renamed to grub_ntfs_read_run_list.
18938 (decomp_nextvcn): Moved to ntfscomp.c.
18939 (decomp_getch): Likewise.
18940 (decomp_get16): Likewise.
18941 (decomp_block): Likewise.
18942 (read_block): Likewise.
18943 (read_data): Partially moved to ntfscomp.c.
18944 (fixup): Change unsigned to grub_uint16_t.
18945 (read_mft): Change unsigned long to grub_uint32_t.
18946 (read_attr): Likewise.
18947 (read_data): Likewise.
18948 (read_run_data): Likewise.
18949 (read_run_list): Likewise.
18950 (read_mft): Likewise.
18951
18952 * fs/ntfscomp.c: New file.
18953
18954 * include/grub/ntfs.h: New file.
18955
af680a87 189562007-12-16 Robert Millan <rmh@aybabtu.com>
18957
18958 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
18959 IDE disk check, since Linux is known to support 20 IDE disks.
18960 Reported by Colin Watson.
18961
84be7599 189622007-12-15 Bean <bean123ch@gmail.com>
18963
18964 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
18965 (lnxboot_img_SOURCES): New variable.
18966 (lnxboot_img_ASFLAGS): Likewise.
18967 (lnxboot_img_LDFLAGS): Likewise.
18968
18969 * boot/i386/pc/lnxboot.S: New file.
18970
6af9db01 189712007-11-24 Pavel Roskin <proski@gnu.org>
18972
18973 * configure.ac: Test if '--build-id=none' is supported by the
18974 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
18975 objcopy to generate incorrect binary files (binutils
18976 2.17.50.0.18-1 as shipped by Fedora 8).
18977 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
18978 linking, so that build ID doesn't break the test.
18979
7361cfe6 189802007-11-24 Pavel Roskin <proski@gnu.org>
18981
18982 * include/grub/i386/time.h: use "void" in the argument list
18983 of grub_cpu_idle().
18984 * include/grub/powerpc/time.h: Likewise.
18985 * include/grub/sparc64/time.h: Likewise.
18986
1593e10c 189872007-11-18 Christian Franke <franke@computer.org>
18988
18989 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
18990 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
18991 This fixes the problem that function keys did not work in grub-emu.
18992
3b8db1a8 189932007-11-18 Christian Franke <franke@computer.org>
18994
18995 * disk/host.c (grub_host_open): Remove attribute unused from
18996 name parameter. Add check for "host". This fixes the problem
18997 that grub-emu does not find partitions.
18998
2e29408d 189992007-11-18 Christian Franke <franke@computer.org>
19000
19001 * util/hostfs.c (is_dir): New function.
19002 (grub_hostfs_dir): Handle missing dirent.d_type case.
19003 (grub_hostfs_read): Add missing fseek().
19004 (grub_hostfs_label): Clear label pointer. This fixes a crash
19005 of grub-emu on "ls (host)".
19006
398cd047 190072007-11-18 Christian Franke <franke@computer.org>
19008
19009 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
19010 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
19011 to 64 bit boundary by default.
19012
c405c391 190132007-11-18 Bean <bean123ch@gmail.com>
19014
19015 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
19016 (hexdump_mod_SOURCES): New variable.
19017 (hexdump_mod_CFLAGS): Likewise.
19018 (hexdump_mod_LDFLAGS): Likewise.
f19dbdb7 19019
c405c391 19020 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
19021
19022 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
19023
19024 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
19025
19026 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
19027
19028 * include/grub/hexdump.h: New file.
19029
19030 * commands/hexdump.c: New file.
19031
5cced7fd 190322007-11-10 Robert Millan <rmh@aybabtu.com>
19033
19034 * commands/i386/pc/play.c (beep_off): Switch order of arguments
19035 in grub_outb() calls.
19036 (beep_on): Likewise.
19037
8b714eb0 190382007-11-10 Christian Franke <franke@computer.org>
19039
19040 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
19041 (grub_menu_run): Likewise.
19042
ce0f1839 190432007-11-10 Robert Millan <rmh@aybabtu.com>
19044
19045 * include/grub/i386/efi/machine.h: New file.
19046 * include/grub/i386/linuxbios/machine.h: Likewise.
19047 * include/grub/i386/pc/machine.h: Likewise.
19048 * include/grub/powerpc/ieee1275/machine.h: Likewise.
19049 * include/grub/sparc64/ieee1275/machine.h: Likewise.
19050
19051 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
19052 (serial_hw_io_addr): New variable.
19053 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
19054 instead of `(unsigned short *) 0x400'.
19055
270c237d 190562007-11-10 Bean <bean123ch@gmail.com>
19057
19058 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
19059
a87783bf 190602007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
19061
19062 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
19063 (vga_mod_SOURCES): Added.
19064 (vga_mod_CFLAGS): Likewise.
19065 (vga_mod_LDFLAGS): Likewise.
19066
19067 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
19068 grub_outb() calls.
19069 (set_map_mask): Likewise.
19070 (set_read_map): Likewise.
19071 (set_read_address): Likewise.
19072 (vga_font): Removed variable.
19073 (get_vga_glyph): Removed function.
19074 (invalidate_char): Likewise.
19075 (write_char): Changed to use grub_font_get_glyph() for font
19076 information.
19077 (grub_vga_putchar): Likewise.
19078 (grub_vga_getcharwidth): Likewise.
19079
6433b448 190802007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
19081
19082 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
19083 flags.
19084 (pxeboot_img_LDFLAGS): Likewise.
19085 (diskboot_img_LDFLAGS): Likewise.
19086 (kernel_img_LDFLAGS): Likewise.
19087
49178511 190882007-11-06 Robert Millan <rmh@aybabtu.com>
19089
19090 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
19091 in grub_outb() calls.
19092 (serial_hw_init): Likewise.
19093
53b052de 190942007-11-05 Robert Millan <rmh@aybabtu.com>
19095
19096 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
19097 spaces. Skip non-regular files.
19098
5ab33bba 190992007-11-05 Robert Millan <rmh@aybabtu.com>
19100
19101 * kern/disk.c (grub_disk_firmware_fini)
19102 (grub_disk_firmware_is_tainted): New variables.
19103
19104 * include/grub/disk.h (grub_disk_firmware_fini)
19105 (grub_disk_firmware_is_tainted): Likewise.
19106
19107 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
19108 (grub_disk_biosdisk_fini): ... to here.
19109 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
19110 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
19111 is set. Register grub_disk_biosdisk_fini() in
19112 `grub_disk_firmware_fini'.
19113
19114 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
19115 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
19116 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
19117 to finish existing firmware disk interface.
19118
19119 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
19120 (ata_mod_SOURCES): New variable.
19121 (ata_mod_CFLAGS): Likewise.
19122 (ata_mod_LDFLAGS): Likewise.
19123
0149ab7c 191242007-11-05 Robert Millan <rmh@aybabtu.com>
19125
19126 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
19127 (grub_ata_wait): Reimplement using grub_millisleep().
19128
19129 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
19130 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
19131
be7ac41e 191322007-11-03 Marco Gerards <marco@gnu.org>
19133
19134 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
19135 (CRTC_ADDR_PORT): New macro.
19136 (CRTC_DATA_PORT): Likewise.
19137 (CRTC_CURSOR): Likewise.
19138 (CRTC_CURSOR_ADDR_HIGH): Likewise.
19139 (CRTC_CURSOR_ADDR_LOW): Likewise.
19140 (update_cursor): New function.
19141 (grub_console_real_putchar): Call `update_cursor'.
19142 (grub_console_gotoxy): Likewise.
19143 (grub_console_cls): Set the default color when clearing the
19144 screen.
19145 (grub_console_setcursor): Implemented.
19146
bb06ab2e 191472007-11-03 Marco Gerards <marco@gnu.org>
19148
19149 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
19150 become activate.
19151 (grub_ata_pio_write): Likewise.
19152
19153 (grub_atapi_identify): Wait after issuing an ATA command.
19154 (grub_atapi_packet): Likewise.
19155 (grub_ata_identify): Likewise.
19156 (grub_ata_readwrite): Likewise.
19157
cf8f780b 191582007-11-03 Marco Gerards <marco@gnu.org>
19159
19160 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
19161 (grub_ata_pio_write): Likewise.
19162 (grub_ata_readwrite): Use `grub_error', instead of
19163 returning `grub_errno'.
19164
ed649e54 191652007-11-03 Marco Gerards <marco@gnu.org>
19166
19167 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
19168 grub_ata_pio_write once for every single sector, instead of for
19169 multiple sectors.
19170
ca25d8f0 191712007-10-31 Robert Millan <rmh@aybabtu.com>
19172
19173 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
19174
19175 * conf/i386-linuxbios.rmk: New file.
19176
19177 * kern/i386/pc/hardware.c: Likewise.
19178 * term/i386/pc/at_keyboard.c: Likewise.
19179 * term/i386/pc/vga_text.c: Likewise.
19180
19181 * include/grub/i386/linuxbios/boot.h: Likewise.
19182 * include/grub/i386/linuxbios/console.h: Likewise.
19183 * include/grub/i386/linuxbios/init.h: Likewise.
19184 * include/grub/i386/linuxbios/kernel.h: Likewise.
19185 * include/grub/i386/linuxbios/loader.h: Likewise.
19186 * include/grub/i386/linuxbios/memory.h: Likewise.
19187 * include/grub/i386/linuxbios/serial.h: Likewise.
19188 * include/grub/i386/linuxbios/time.h: Likewise.
19189
19190 * kern/i386/linuxbios/init.c: Likewise.
19191 * kern/i386/linuxbios/startup.S: Likewise.
19192 * kern/i386/linuxbios/table.c: Likewise.
19193
e911ecc1 191942007-10-31 Marco Gerards <marco@gnu.org>
19195
19196 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
19197 (ata_mod_SOURCES): New variable.
19198 (ata_mod_CFLAGS): Likewise.
19199 (ata_mod_LDFLAGS): Likewise.
19200
19201 * disk/ata.c: New file.
19202
19203 * include/grub/disk.h (grub_disk_dev_id): Add
19204 `GRUB_DISK_DEV_ATA_ID'.
f19dbdb7 19205
7f66d0e0 192062007-10-31 Robert Millan <rmh@aybabtu.com>
19207
19208 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
19209 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
19210
19211 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
19212 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
19213
19214 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
19215 `<grub/types.h>'.
19216
19217 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
19218
5cd7dd46 192192007-10-27 Robert Millan <rmh@aybabtu.com>
19220
3236ca65 19221 * include/grub/types.h (ULONG_MAX): Define macro.
5cd7dd46 19222
2ebfc90f 192232007-10-22 Robert Millan <rmh@aybabtu.com>
19224
19225 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
19226 `"../realmode.S"'.
19227 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
19228
73fcb0f3 192292007-10-22 Robert Millan <rmh@aybabtu.com>
19230
19231 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
19232 (pkgdata_MODULES): Add `biosdisk.mod'.
19233 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
19234 variables.
19235
19236 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
19237 (grub_biosdisk_init): Replace with ...
19238 (GRUB_MOD_INIT(biosdisk)): ... this.
19239 (grub_biosdisk_fini): Replace with ...
19240 (GRUB_MOD_FINI(biosdisk)): ... this.
19241
19242 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
19243 (grub_machine_init): Remove call to grub_biosdisk_init().
19244 (grub_machine_fini): Remove call to grub_machine_fini().
19245
19246 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
19247
3381d274 192482007-10-22 Robert Millan <rmh@aybabtu.com>
19249
19250 * include/grub/time.h: New file.
19251 * include/grub/i386/time.h: Likewise.
19252 * include/grub/powerpc/time.h: Likewise.
19253 * include/grub/sparc64/time.h: Likewise.
19254
19255 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
19256 instances to ...
19257 (KERNEL_MACHINE_TIME_HEADER): ... this.
19258 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
19259 instances to ...
19260 (KERNEL_MACHINE_TIME_HEADER): ... this.
19261 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
19262 instances to ...
19263 (KERNEL_MACHINE_TIME_HEADER): ... this.
19264
19265 * kern/i386/efi/init.c: Include `<grub/time.h>'.
19266 (grub_millisleep): New function.
19267 * kern/i386/pc/init.c: Include `<grub/time.h>'.
19268 (grub_millisleep): New function.
19269 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
19270 Remove `grub/machine/time.h' include.
19271 (grub_millisleep): New function.
19272 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
19273 Remove `grub/machine/time.h' include.
19274 (grub_millisleep): New function.
19275
19276 * include/grub/misc.h (grub_div_roundup): New function.
19277
19278 * kern/misc.c: Include `<grub/time.h>'.
19279 (grub_millisleep_generic): New function.
19280
19281 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
19282 Add `time.h'.
19283 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
19284 Add `time.h'.
19285 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
19286 `machine/time.h'. Add `time.h'.
19287 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
19288
a39a0312 192892007-10-21 Robert Millan <rmh@aybabtu.com>
19290
19291 * include/grub/misc.h (grub_max): New function.
19292
2aad70e2 192932007-10-21 Robert Millan <rmh@aybabtu.com>
19294
19295 * util/misc.c (grub_util_info): Call fflush() before returning.
19296
54b71c4b 192972007-10-20 Robert Millan <rmh@aybabtu.com>
19298
19299 * genmk.rb (Image): Copy `extra_flags' from here ...
19300 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
19301
19302 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
19303 to `argc' and `args' arguments.
19304
a979f513 193052007-10-17 Robert Millan <rmh@aybabtu.com>
19306
19307 * kern/i386/loader.S: New file.
19308
19309 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
19310 * kern/i386/loader.S (grub_linux_prot_size)... to here.
19311 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
19312 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
19313 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
19314 * kern/i386/loader.S (grub_linux_real_addr)... to here.
19315 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
19316 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
19317 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
19318 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
19319 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
19320 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
19321 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
19322 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
19323
19324 * kern/i386/realmode.S: New file.
19325
19326 * kern/i386/pc/startup.S (protstack): Moved from here ...
19327 * kern/i386/realmode.S (protstack)... to here.
19328 * kern/i386/pc/startup.S (gdt): Moved from here ...
19329 * kern/i386/realmode.S (gdt)... to here.
19330 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
19331 * kern/i386/realmode.S (prot_to_real)... to here.
19332
19333 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
19334 `kern/i386/realmode.S'.
19335
825fc8fd 193362007-10-17 Robert Millan <rmh@aybabtu.com>
19337
19338 * include/grub/i386/loader.h: New file.
19339
19340 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
19341 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
19342 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
19343 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
19344 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
19345 * include/grub/i386/loader.h (grub_linux_prot_size)
19346 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
19347 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
19348 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
19349 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
19350
19351 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
19352
e179b2f4 193532007-10-15 Robert Millan <rmh@aybabtu.com>
19354
19355 * normal/misc.c (grub_normal_print_device_info): Do not probe for
19356 filesystem when dev->disk is unset.
19357 Do probe for filesystem even when dev->disk->has_partitions is set.
19358 In case a filesystem is found, always report it.
19359 In case it isn't, if dev->disk->has_partitions is set, report that
19360 a partition table was found instead of reporting that no filesystem
19361 could be identified.
19362
5db82af6 193632007-10-12 Robert Millan <rmh@aybabtu.com>
19364
19365 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
19366 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
19367
68f6ac74 19368 * include/grub/types.h (grub_host_to_target16): New macro.
19369 (grub_host_to_target32): Likewise.
19370 (grub_host_to_target64): Likewise.
19371 (grub_target_to_host16): Likewise.
19372 (grub_target_to_host32): Likewise.
19373 (grub_target_to_host64): Likewise.
5db82af6 19374
19375 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
19376 Renamed from to ...
19377 (GRUB_MOD_ALIGN): ...this. Update all users.
19378
68f6ac74 19379 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
19380 grub_host_to_target32.
19381 Replace grub_be_to_cpu32 with grub_target_to_host32.
19382 (load_modules): Likewise.
19383 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
19384 Replace grub_be_to_cpu32 with grub_target_to_host32.
19385 Replace grub_cpu_to_be16 with grub_host_to_target16.
19386 Replace grub_cpu_to_be32 grub_host_to_target32.
5db82af6 19387
3cf497cc 193882007-10-12 Robert Millan <rmh@aybabtu.com>
19389
19390 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
19391 * util/elf/grub-mkimage.c: ... here.
19392
19393 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
19394 `util/powerpc/ieee1275/grub-mkimage.c'.
19395
c8cc3692 193962007-10-07 Robert Millan <rmh@aybabtu.com>
adbc4c9d 19397
c8cc3692 19398 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
19399 and make it easier to figure out.
19400 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
19401 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
19402 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
19403 leave us with less than HEAP_MIN_SIZE total heap.
19404 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
adbc4c9d 19405
5c58b791 194062007-10-03 Robert Millan <rmh@aybabtu.com>
19407
19408 * include/grub/i386/io.h: New file.
19409 * commands/i386/pc/play.c (inb): Removed.
19410 (outb): Removed.
19411 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
19412 with grub_outb().
afcd2ef8 19413 * term/i386/pc/serial.c (inb): Removed.
19414 (outb): Removed.
19415 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
19416 with grub_outb().
19417 * term/i386/pc/vga.c (inb): Removed.
19418 (outb): Removed.
19419 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
19420 with grub_outb().
5c58b791 19421
1a477ed6 194222007-10-02 Robert Millan <rmh@aybabtu.com>
19423
19424 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
19425 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19426 Reported by Marcin Kurek.
19427
6b5d80fa 194282007-09-07 Robert Millan <rmh@aybabtu.com>
19429
19430 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
19431 SmartFirmware version updates (as released by Sven Luther), and avoid
19432 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
19433 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
19434 known broken.
19435
5618afbf 194362007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
19437
19438 From Hitoshi Ozeki:
19439 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
19440 when merging two regions.
19441
6139dcd9 194422007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
19443
508e39ee 19444 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
19445 * normal/completion.c (grub_normal_do_completion): Likewise.
19446 Reported by Hitoshi Ozeki.
19447
194482007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
f19dbdb7 19449
6139dcd9 19450 Do not use devices at boot in chainloading.
f19dbdb7 19451
6139dcd9 19452 * loader/i386/pc/chainloader.c (boot_drive): New variable.
19453 (boot_part_addr): Likewise.
19454 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
19455 with BOOT_DRIVE and BOOT_PART_ADDR.
19456 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
19457 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
19458
38da6516 194592007-08-29 Robert Millan <rmh@aybabtu.com>
19460
19461 Patch from Simon Peter <dn.tlp@gmx.net>:
19462 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
19463 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
19464 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
19465 util/i386/pc/grub-setup.c_DEPENDENCIES.
19466 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
19467 util/grub-probe.c_DEPENDENCIES.
19468 * conf/powerpc-ieee1275.rmk: Likewise.
19469
29d0928c 194702007-08-28 Robert Millan <rmh@aybabtu.com>
19471
19472 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
19473 to tell grub-mkdevicemap how to name devices.
19474 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
19475 feature).
19476
19477 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
19478 util/i386/get_disk_name.c.
19479 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
19480 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
19481 util/ieee1275/get_disk_name.c.
19482
19483 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
19484
19485 * DISTLIST: Add util/i386/get_disk_name.c and
19486 util/ieee1275/get_disk_name.c.
19487
19488 * util/grub-mkdevicemap.c: Replace device naming logic with
19489 grub_util_get_disk_name() calls.
19490
5a0d3cca 194912007-08-20 Robert Millan <rmh@aybabtu.com>
19492
19493 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
19494 (so that it works for both plural and singular quantities).
19495
8b72db2f 194962007-08-05 Robert Millan <rmh@aybabtu.com>
19497
19498 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
19499 so that [xz] isn't taken into account when determining order.
19500
352466bf 195012007-08-02 Marco Gerards <marco@gnu.org>
19502
19503 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
19504 `include/multiboot2.h', `include/grub/elfload.h',
19505 `include/multiboot.h', `include/grub/multiboot.h',
19506 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
19507 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
19508 `kern/elf.c', `loader/multiboot_loader.c',
19509 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
19510 `loader/i386/pc/multiboot2.c',
19511 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
19512 `util/i386/pc/grub-mkrescue.in'. Remove
19513 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
19514 `include/grub/i386/pc/util/biosdisk.h' and
19515 `include/grub/powerpc/ieee1275/multiboot.h'.
19516
8f096014 195172007-08-02 Bean <bean123ch@gmail.com>
19518
19519 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
19520 (ntfs_mod_SOURCES): New variable.
19521 (ntfs_mod_CFLAGS): Likewise.
19522 (ntfs_mod_LDFLAGS): Likewise.
19523
19524 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
19525 (grub_probe_SOURCES): Likewise.
19526 (grub_emu_SOURCES): Likewise.
19527
19528 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
19529 (grub_emu_SOURCES): Likewise.
19530
19531 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
19532 (grub_emu_SOURCES): Likewise.
f19dbdb7 19533
8f096014 19534 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
19535
19536 * fs/ntfs.c: New file.
19537
9959f7db 195382007-08-02 Bean <bean123ch@gmail.com>
19539
19540 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
19541
19542 * file.h (grub_file): Likewise.
19543
19544 * fshelp.h (grub_fshelp_read_file): Likewise.
19545
19546 * util/i386/pc/grub-setup.c (setup): Likewise.
19547 (save_first_sector): Likewise.
19548 (save_blocklists): Likewise.
f19dbdb7 19549
9959f7db 19550 * fs/affs.c (grub_affs_read_file): Likewise.
19551
19552 * fs/ext2.c (grub_ext2_read_file): Likewise.
19553
19554 * fs/fat.c (grub_fat_read_data): Likewise.
19555
19556 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
19557
19558 * fs/hfs.c (grub_hfs_read_file): Likewise.
19559
19560 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
19561
19562 * fs/jfs.c (grub_jfs_read_file): Likewise.
19563
19564 * fs/minix.c (grub_minix_read_file): Likewise.
19565
19566 * fs/sfs.c (grub_sfs_read_file): Likewise.
19567
19568 * fs/ufs.c (grub_ufs_read_file): Likewise.
f19dbdb7 19569
9959f7db 19570 * fs/xfs.c (grub_xfs_read_file): Likewise.
19571
19572 * command/blocklist.c (read_blocklist): Likewise.
19573 (print_blocklist): Likewise.
19574
0a203f83 195752007-08-02 Marco Gerards <marco@gnu.org>
19576
19577 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
19578 `util/hostfs.c'.
19579
19580 * disk/host.c: New file.
19581
19582 * util/hostfs.c: Likewise.
19583
19584 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
19585 return `GRUB_ERR_BAD_FS'.
19586 * fs/sfs.c (grub_sfs_mount): Likewise.
19587 * fs/xfs.c (grub_xfs_mount): Likewise.
19588
19589 * include/grub/disk.h (enum grub_disk_dev_id): Add
19590 `GRUB_DISK_DEVICE_HOST_ID'.
19591
19592 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
19593
e5dfe777 195942007-07-24 Jerone Young <jerone@gmail.com>
19595
f19dbdb7 19596 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
e5dfe777 19597 modules for compilation.
19598 * conf/powerpc-ieee1275.rmk: Likewise.
19599
19600 * include/multiboot.h: Move multiboot definitions to one file. Rename
19601 many definitions to not get grub specific.
19602 * include/multiboot2.h: Create header with multiboot 2 definitions.
19603 * include/grub/multiboot.h: Header for grub specific function
19604 prototypes and definitions.
19605 * include/grub/multiboot2.h: Likewise.
19606 * include/grub/multiboot_loader.h: Likewise.
19607 * include/grub/i386/pc/multiboot.h: Removed.
19608 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
19609
19610 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
19611 and 2 to allow for one multiboot and module commands.
19612 * loader/multiboot2.c: Add multiboot2 functionality.
19613 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
19614 and definition names.
19615 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
19616 2 functions.
19617 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
19618 ieee1275 specific multiboot2 code.
19619
19620 * kern/i386/pc/startup.S: Change headers and definition names for
19621 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
19622
daf0f0ba 196232007-07-22 Robert Millan <rmh@aybabtu.com>
19624
19625 * geninitheader.sh: Process file specified in first parameter rather
19626 than hardcoding grub_modules_init.lst.
fe6b695a 19627 * geninit.sh: Likewise. Also, construct header name dynamically rather
daf0f0ba 19628 than hardcoding grub_modules_init.h.
19629
19630 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
19631 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
19632 grub_probe_init.[ch] and grub_setup_init.[ch].
19633
19634 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
19635 grub_modules_init.h with grub_emu_init.h.
19636 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
19637 grub_probe_init.[ch] files.
19638 * conf/i386-efi.rmk: Likewise.
19639 * conf/i386-pc.rmk: Likewise.
19640 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
19641 grub_setup_init.[ch] files.
19642
19643 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
19644 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
19645 to initialize modules rather than a list of hardcoded functions.
19646 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
19647 grub_init_all() to initialize modules rather than a list of hardcoded
19648 functions.
19649
54cdc1cc 196502007-07-22 Robert Millan <rmh@aybabtu.com>
19651
19652 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
19653 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
19654
ad0686cc 196552007-07-22 Robert Millan <rmh@aybabtu.com>
19656
19657 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
19658 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
19659 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
19660 flag when running on SmartFirmware.
19661 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
19662 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
19663 was set.
19664
19665 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
19666 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
19667 rather than decreasing it.
19668
19669 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
19670 there's not enough space to do it, fail in the same way as when it
19671 can't be done because there are no partitions.
19672
19673 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
19674 when nvsetenv failed.
19675
969c02ec 196762007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
19677
19678 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
19679 because this rule is automatically generated.
19680 (grub-mkrescue): Removed for the same reason as above.
19681
5a79f472 196822007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
19683
19684 Migrate to GNU General Public License Version 3.
f19dbdb7 19685
5a79f472 19686 * COPYING: Replaced with the plain text version of GPLv3.
19687
19688 * config.guess: Updated from gnulib.
19689 * config.sub: Likewise.
19690
19691 * geninit.sh: Output a GPLv3 copyright notice.
19692 * geninitheader.sh: Likewise.
19693 * genmodsrc.sh: Likewise.
19694 * gensymlist.sh.in: Likewise.
19695
19696 * boot/i386/pc/boot.S: Upgraded to GPLv3.
19697 * boot/i386/pc/diskboot.S: Likewise.
19698 * boot/i386/pc/pxeboot.S: Likewise.
19699 * commands/blocklist.c: Likewise.
19700 * commands/boot.c: Likewise.
19701 * commands/cat.c: Likewise.
19702 * commands/cmp.c: Likewise.
19703 * commands/configfile.c: Likewise.
19704 * commands/echo.c: Likewise.
19705 * commands/help.c: Likewise.
19706 * commands/ls.c: Likewise.
19707 * commands/search.c: Likewise.
19708 * commands/terminal.c: Likewise.
19709 * commands/test.c: Likewise.
19710 * commands/videotest.c: Likewise.
19711 * commands/i386/cpuid.c: Likewise.
19712 * commands/i386/pc/halt.c: Likewise.
19713 * commands/i386/pc/play.c: Likewise.
19714 * commands/i386/pc/reboot.c: Likewise.
19715 * commands/i386/pc/vbeinfo.c: Likewise.
19716 * commands/i386/pc/vbetest.c: Likewise.
19717 * commands/ieee1275/halt.c: Likewise.
19718 * commands/ieee1275/reboot.c: Likewise.
19719 * commands/ieee1275/suspend.c: Likewise.
19720 * disk/loopback.c: Likewise.
19721 * disk/lvm.c: Likewise.
19722 * disk/raid.c: Likewise.
19723 * disk/efi/efidisk.c: Likewise.
19724 * disk/i386/pc/biosdisk.c: Likewise.
19725 * disk/ieee1275/ofdisk.c: Likewise.
19726 * font/manager.c: Likewise.
19727 * fs/affs.c: Likewise.
19728 * fs/ext2.c: Likewise.
19729 * fs/fat.c: Likewise.
19730 * fs/fshelp.c: Likewise.
19731 * fs/hfs.c: Likewise.
19732 * fs/hfsplus.c: Likewise.
19733 * fs/iso9660.c: Likewise.
19734 * fs/jfs.c: Likewise.
19735 * fs/minix.c: Likewise.
19736 * fs/sfs.c: Likewise.
19737 * fs/ufs.c: Likewise.
19738 * fs/xfs.c: Likewise.
19739 * hello/hello.c: Likewise.
19740 * include/grub/acorn_filecore.h: Likewise.
19741 * include/grub/arg.h: Likewise.
19742 * include/grub/bitmap.h: Likewise.
19743 * include/grub/boot.h: Likewise.
19744 * include/grub/cache.h: Likewise.
19745 * include/grub/device.h: Likewise.
19746 * include/grub/disk.h: Likewise.
19747 * include/grub/dl.h: Likewise.
19748 * include/grub/elfload.h: Likewise.
19749 * include/grub/env.h: Likewise.
19750 * include/grub/err.h: Likewise.
19751 * include/grub/file.h: Likewise.
19752 * include/grub/font.h: Likewise.
19753 * include/grub/fs.h: Likewise.
19754 * include/grub/fshelp.h: Likewise.
19755 * include/grub/gzio.h: Likewise.
19756 * include/grub/hfs.h: Likewise.
19757 * include/grub/kernel.h: Likewise.
19758 * include/grub/loader.h: Likewise.
19759 * include/grub/lvm.h: Likewise.
19760 * include/grub/misc.h: Likewise.
19761 * include/grub/mm.h: Likewise.
19762 * include/grub/net.h: Likewise.
19763 * include/grub/normal.h: Likewise.
19764 * include/grub/parser.h: Likewise.
19765 * include/grub/partition.h: Likewise.
19766 * include/grub/pc_partition.h: Likewise.
19767 * include/grub/raid.h: Likewise.
19768 * include/grub/rescue.h: Likewise.
19769 * include/grub/script.h: Likewise.
19770 * include/grub/setjmp.h: Likewise.
19771 * include/grub/symbol.h: Likewise.
19772 * include/grub/term.h: Likewise.
19773 * include/grub/terminfo.h: Likewise.
19774 * include/grub/tparm.h: Likewise.
19775 * include/grub/types.h: Likewise.
19776 * include/grub/video.h: Likewise.
19777 * include/grub/efi/api.h: Likewise.
19778 * include/grub/efi/chainloader.h: Likewise.
19779 * include/grub/efi/console.h: Likewise.
19780 * include/grub/efi/console_control.h: Likewise.
19781 * include/grub/efi/disk.h: Likewise.
19782 * include/grub/efi/efi.h: Likewise.
19783 * include/grub/efi/pe32.h: Likewise.
19784 * include/grub/efi/time.h: Likewise.
19785 * include/grub/i386/linux.h: Likewise.
19786 * include/grub/i386/setjmp.h: Likewise.
19787 * include/grub/i386/types.h: Likewise.
19788 * include/grub/i386/efi/kernel.h: Likewise.
19789 * include/grub/i386/efi/loader.h: Likewise.
19790 * include/grub/i386/efi/time.h: Likewise.
19791 * include/grub/i386/pc/biosdisk.h: Likewise.
19792 * include/grub/i386/pc/boot.h: Likewise.
19793 * include/grub/i386/pc/chainloader.h: Likewise.
19794 * include/grub/i386/pc/console.h: Likewise.
19795 * include/grub/i386/pc/init.h: Likewise.
19796 * include/grub/i386/pc/kernel.h: Likewise.
19797 * include/grub/i386/pc/loader.h: Likewise.
19798 * include/grub/i386/pc/memory.h: Likewise.
19799 * include/grub/i386/pc/multiboot.h: Likewise.
19800 * include/grub/i386/pc/serial.h: Likewise.
19801 * include/grub/i386/pc/time.h: Likewise.
19802 * include/grub/i386/pc/vbe.h: Likewise.
19803 * include/grub/i386/pc/vbeblit.h: Likewise.
19804 * include/grub/i386/pc/vbefill.h: Likewise.
19805 * include/grub/i386/pc/vbeutil.h: Likewise.
19806 * include/grub/i386/pc/vga.h: Likewise.
19807 * include/grub/ieee1275/ieee1275.h: Likewise.
19808 * include/grub/ieee1275/ofdisk.h: Likewise.
19809 * include/grub/powerpc/libgcc.h: Likewise.
19810 * include/grub/powerpc/setjmp.h: Likewise.
19811 * include/grub/powerpc/types.h: Likewise.
19812 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
19813 * include/grub/powerpc/ieee1275/console.h: Likewise.
19814 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
19815 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
19816 * include/grub/powerpc/ieee1275/loader.h: Likewise.
19817 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
19818 * include/grub/powerpc/ieee1275/time.h: Likewise.
19819 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
19820 * include/grub/sparc64/libgcc.h: Likewise.
19821 * include/grub/sparc64/setjmp.h: Likewise.
19822 * include/grub/sparc64/types.h: Likewise.
19823 * include/grub/sparc64/ieee1275/console.h: Likewise.
19824 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
19825 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
19826 * include/grub/sparc64/ieee1275/time.h: Likewise.
19827 * include/grub/util/biosdisk.h: Likewise.
19828 * include/grub/util/getroot.h: Likewise.
19829 * include/grub/util/lvm.h: Likewise.
19830 * include/grub/util/misc.h: Likewise.
19831 * include/grub/util/raid.h: Likewise.
19832 * include/grub/util/resolve.h: Likewise.
19833 * io/gzio.c: Likewise.
19834 * kern/device.c: Likewise.
19835 * kern/disk.c: Likewise.
19836 * kern/dl.c: Likewise.
19837 * kern/elf.c: Likewise.
19838 * kern/env.c: Likewise.
19839 * kern/err.c: Likewise.
19840 * kern/file.c: Likewise.
19841 * kern/fs.c: Likewise.
19842 * kern/loader.c: Likewise.
19843 * kern/main.c: Likewise.
19844 * kern/misc.c: Likewise.
19845 * kern/mm.c: Likewise.
19846 * kern/parser.c: Likewise.
19847 * kern/partition.c: Likewise.
19848 * kern/rescue.c: Likewise.
19849 * kern/term.c: Likewise.
19850 * kern/efi/efi.c: Likewise.
19851 * kern/efi/init.c: Likewise.
19852 * kern/efi/mm.c: Likewise.
19853 * kern/i386/dl.c: Likewise.
19854 * kern/i386/efi/init.c: Likewise.
19855 * kern/i386/efi/startup.S: Likewise.
19856 * kern/i386/pc/init.c: Likewise.
19857 * kern/i386/pc/lzo1x.S: Likewise.
19858 * kern/i386/pc/startup.S: Likewise.
19859 * kern/ieee1275/ieee1275.c: Likewise.
19860 * kern/powerpc/cache.S: Likewise.
19861 * kern/powerpc/dl.c: Likewise.
19862 * kern/powerpc/ieee1275/cmain.c: Likewise.
19863 * kern/powerpc/ieee1275/crt0.S: Likewise.
19864 * kern/powerpc/ieee1275/init.c: Likewise.
19865 * kern/powerpc/ieee1275/openfw.c: Likewise.
19866 * kern/sparc64/cache.S: Likewise.
19867 * kern/sparc64/dl.c: Likewise.
19868 * kern/sparc64/ieee1275/init.c: Likewise.
19869 * kern/sparc64/ieee1275/openfw.c: Likewise.
19870 * loader/efi/chainloader.c: Likewise.
19871 * loader/efi/chainloader_normal.c: Likewise.
19872 * loader/i386/efi/linux.c: Likewise.
19873 * loader/i386/efi/linux_normal.c: Likewise.
19874 * loader/i386/pc/chainloader.c: Likewise.
19875 * loader/i386/pc/chainloader_normal.c: Likewise.
19876 * loader/i386/pc/linux.c: Likewise.
19877 * loader/i386/pc/linux_normal.c: Likewise.
19878 * loader/i386/pc/multiboot.c: Likewise.
19879 * loader/i386/pc/multiboot_normal.c: Likewise.
19880 * loader/powerpc/ieee1275/linux.c: Likewise.
19881 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
19882 * normal/arg.c: Likewise.
19883 * normal/cmdline.c: Likewise.
19884 * normal/command.c: Likewise.
19885 * normal/completion.c: Likewise.
19886 * normal/execute.c: Likewise.
19887 * normal/function.c: Likewise.
19888 * normal/lexer.c: Likewise.
19889 * normal/main.c: Likewise.
19890 * normal/menu.c: Likewise.
19891 * normal/menu_entry.c: Likewise.
19892 * normal/misc.c: Likewise.
19893 * normal/parser.y: Likewise.
19894 * normal/script.c: Likewise.
19895 * normal/i386/setjmp.S: Likewise.
19896 * normal/powerpc/setjmp.S: Likewise.
19897 * normal/sparc64/setjmp.S: Likewise.
19898 * partmap/acorn.c: Likewise.
19899 * partmap/amiga.c: Likewise.
19900 * partmap/apple.c: Likewise.
19901 * partmap/gpt.c: Likewise.
19902 * partmap/pc.c: Likewise.
19903 * partmap/sun.c: Likewise.
19904 * term/gfxterm.c: Likewise.
19905 * term/terminfo.c: Likewise.
19906 * term/efi/console.c: Likewise.
19907 * term/i386/pc/console.c: Likewise.
19908 * term/i386/pc/serial.c: Likewise.
19909 * term/i386/pc/vesafb.c: Likewise.
19910 * term/i386/pc/vga.c: Likewise.
19911 * term/ieee1275/ofconsole.c: Likewise.
19912 * util/biosdisk.c: Likewise.
19913 * util/console.c: Likewise.
19914 * util/genmoddep.c: Likewise.
19915 * util/getroot.c: Likewise.
19916 * util/grub-emu.c: Likewise.
19917 * util/grub-mkdevicemap.c: Likewise.
19918 * util/grub-probe.c: Likewise.
19919 * util/lvm.c: Likewise.
19920 * util/misc.c: Likewise.
19921 * util/raid.c: Likewise.
19922 * util/resolve.c: Likewise.
19923 * util/update-grub.in: Likewise.
19924 * util/update-grub_lib.in: Likewise.
19925 * util/grub.d/00_header.in: Likewise.
19926 * util/grub.d/10_hurd.in: Likewise.
19927 * util/grub.d/10_linux.in: Likewise.
19928 * util/i386/efi/grub-install.in: Likewise.
19929 * util/i386/efi/grub-mkimage.c: Likewise.
19930 * util/i386/pc/grub-install.in: Likewise.
19931 * util/i386/pc/grub-mkimage.c: Likewise.
19932 * util/i386/pc/grub-mkrescue.in: Likewise.
19933 * util/i386/pc/grub-setup.c: Likewise.
19934 * util/i386/pc/misc.c: Likewise.
19935 * util/powerpc/ieee1275/grub-install.in: Likewise.
19936 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
19937 * util/powerpc/ieee1275/misc.c: Likewise.
19938 * video/bitmap.c: Likewise.
19939 * video/video.c: Likewise.
19940 * video/i386/pc/vbe.c: Likewise.
19941 * video/i386/pc/vbeblit.c: Likewise.
19942 * video/i386/pc/vbefill.c: Likewise.
19943 * video/i386/pc/vbeutil.c: Likewise.
19944 * video/readers/tga.c: Likewise.
19945
3572d015 199462007-07-02 Robert Millan <rmh@aybabtu.com>
19947
19948 * conf/i386-efi.rmk: Replace obsolete reference to
19949 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
19950 with util/getroot.c.
19951 * conf/powerpc-ieee1275.rmk: Likewise.
19952 * conf/sparc64-ieee1275.rmk: Likewise.
19953
19954 * util/grub-emu.c (main): Fix unchecked pointer handling.
19955
2c2a681b 199562007-07-02 Robert Millan <rmh@aybabtu.com>
19957
19958 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
19959 invocation to fail, in order to support partition-less media.
19960
19961 * util/i386/pc/grub-install.in: Likewise.
19962
19963 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
19964 which fs or partmap modules are needed (akin to its sister scripts).
19965
19966 Also use grub-probe to get rid of unportable /proc/mounts check.
19967
19968 Print the same informational message that the other scripts do, before
fe6b695a 19969 exiting.
2c2a681b 19970
6193defe 199712007-06-23 Robert Millan <rmh@aybabtu.com>
19972
fe6b695a 19973 * util/update-grub_lib.in (font_path): New function. Determine whether
6193defe 19974 a font file can be found and, if so, echo the GRUB path to it.
19975
19976 * util/update-grub.in: Handle multiple terminals depending on user
19977 input, platform availability and font file presence. Propagate
19978 variables of our findings to /etc/grub.d/ children.
19979
19980 * util/grub.d/00_header.in: Handle multiple terminals, based on
19981 environment setup by update-grub.
19982
eface1dc 199832007-06-23 Robert Millan <rmh@aybabtu.com>
19984
ba50d28f 19985 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
eface1dc 19986
bf697e28 199872007-06-21 Robert Millan <rmh@aybabtu.com>
19988
19989 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
19990 indicate end of data section in kernel image.
19991 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
19992 GRUB_KERNEL_MACHINE_DATA_END.
19993
19994 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
19995 space for it.
19996 * kern/i386/efi/startup.S: Likewise.
19997
19998 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
19999 during image generation. Implement --prefix option to override this
20000 patch.
20001 * util/i386/efi/grub-mkimage.c: Likewise.
20002
20003 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
20004 code to make path relative to its root into a separate function.
20005
20006 * util/i386/pc/grub-install.in: Use newly provided
20007 make_system_path_relative_to_its_root() to convert ${grubdir}, then
20008 pass the result to grub-install --prefix.
20009
baa574b4 200102007-06-13 Robert Millan <rmh@aybabtu.com>
20011
20012 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
20013 DEFAULT_DEVICE_MAP.
20014 * util/grub-emu.c: Use above definitions from misc.h instead of
20015 defining them.
20016 * util/grub-mkdevicemap.c: Likewise.
20017 * util/i386/pc/grub-setup.c: Likewise.
20018 * util/grub-probe.c: Likewise.
20019 (probe): Abort with grub_util_error() when either
20020 grub_guess_root_device or grub_util_get_grub_dev fails.
20021
0215dcbf 200222007-06-12 Robert Millan <rmh@aybabtu.com>
20023
20024 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
20025 "pager" assignment.
20026 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
20027 "pcdata".
20028 * util/grub-probe.c (probe): Likewise for "drive_name".
20029
8af2ab7b 200302007-06-11 Robert Millan <rmh@aybabtu.com>
20031
20032 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
20033 not just the cdrom one.
20034
59d31694 200352007-06-11 Robert Millan <rmh@aybabtu.com>
20036
20037 * util/i386/pc/grub-mkrescue.in: Add "set -e".
20038 Add --pkglibdir=DIR option to override pkglibdir.
20039 Mention --image-type=TYPE in help output.
20040 Fix --grub-mkimage (it was a no-op).
fe6b695a 20041 Abort gracefully when no parameter is given.
59d31694 20042
7ee367e4 200432007-06-11 Robert Millan <rmh@aybabtu.com>
20044
20045 * util/i386/pc/grub-mkrescue.in: New file.
20046 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
20047 * Makefile.in: Handle bin_SCRIPTS.
20048
29b0ed46 200492007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
20050
20051 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
20052 list of video modes.
20053
c0f90770 200542007-06-06 Robert Millan <rmh@aybabtu.com>
20055
20056 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
20057 file doesn't exist, or if it is in a filesystem grub can't read.
20058
20059 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
20060 not abort if GRUB_DRIVE could not be defined. Rearrange generated
20061 header comment to fit in 80 columns when the variables are resolved.
20062
20063 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
20064 could be identified by update-grub. Remove redundant check for
fe6b695a 20065 unifont.pff existence (since convert_system_path_to_grub_path now
c0f90770 20066 handles that).
20067
fb36dc26 200682007-06-04 Robert Millan <rmh@aybabtu.com>
20069
20070 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
20071
20072 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
20073
20074 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
20075
0c68c93e 200762007-06-04 Robert Millan <rmh@aybabtu.com>
20077
20078 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
20079
20080 * include/grub/partition.h: Declare grub_apple_partition_map_init and
20081 grub_apple_partition_map_fini.
20082
20083 * util/biosdisk.c
20084 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
20085 to access >2 TiB disks).
20086
20087 Print disk->total_sectors with %llu instead of %lu, since this
20088 variable is always 64-bit (prevents wrong disk size from being displayed
20089 on either >2 TiB disk or big-endian CPU).
20090
20091 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
20092 into a generic case that supports all (sane) partition maps.
20093
20094 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
20095 breaks big-endian.
20096
20097 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
20098 and grub_apple_partition_map_fini() after that.
20099
0f23eb74 201002007-06-01 Robert Millan <rmh@aybabtu.com>
20101
20102 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
20103
20104 * util/grub.d/00_header.in: Only enable gfxterm when
20105 convert_system_path_to_grub_path() succeeds.
20106
42c71976 201072007-05-20 Robert Millan <rmh@aybabtu.com>
20108
20109 * util/update-grub_lib.in: New file.
20110 * DISTLIST: Add update-grub_lib.in.
20111 * conf/common.rmk: Generate update-grub_lib and install it in
20112 $(lib_DATA).
20113 * Makefile.in: Add install routine for $(lib_DATA).
20114
20115 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
20116 function provided by update-grub_lib to support arbitrary paths of
20117 unifont.pff.
20118 * util/update-grub.in: Use convert_system_path_to_grub_path() to
20119 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
20120
5beb2291 201212007-05-19 Robert Millan <rmh@aybabtu.com>
20122
20123 * commands/i386/cpuid.c: New module.
20124 * DISTLIST: Add it.
20125 * conf/i386-efi.rmk: Enable cpuid.mod.
20126 * conf/i386-pc.rmk: Likewise.
20127
7262eca1 201282007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
20129
20130 * kern/disk.c (grub_disk_read): Check return value of
20131 grub_realloc().
20132
260ba823 201332007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
20134
20135 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
20136 arrays.
20137 * disk/raid.c (grub_raid_open): Likewise.
20138
1ecb6cf2 201392007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
20140
20141 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
20142 stack instead of on the heap.
20143
20144 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
20145 before doing a read on it.
20146
20147 * configure.ac: Only use -fno-stack-protector for the target
20148 environment.
f19dbdb7 20149
21c8cbb1 201502007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
20151
20152 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
20153 __attribute_ ((unused)) to mode_type argument.
20154
20155 * util/getroot.c (grub_guess_root_device): Fix #endif.
f19dbdb7 20156
21c8cbb1 20157 * kern/misc.c (memcmp): Fix prototype.
20158
20159 * include/grub/partition.h [GRUB_UTIL]
20160 (grub_gpt_partition_map_init): Add prototype.
20161 (grub_gpt_partition_map_fini): Likewise.
20162
20163 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
20164 at the right place.
20165
20166 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
20167 (grub_fat_read_data): Likewise.
20168 (grub_fat_find_dir): Likewise.
20169
20170 * font/manager.c (find_glyph): Make table a const.
20171 (grub_font_get_glyph): Remove bitmap from if statement.
f19dbdb7 20172
849d55d3 201732007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
20174
20175 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
20176 code, first search for device in /dev/mapper, then in /dev.
20177 (grub_util_get_grub_dev): New function.
20178 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
20179 prototype.
20180 * util/grub-probe.c (probe): Remove check for RAID, call
20181 grub_util_get_grub_dev() instead of
20182 grub_util_biosdisk_get_grub_dev().
20183 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
20184 grub_util_biosdisk_get_grub_dev().
20185 * util/i386/pc/grub-setup.c (main): Likewise.
20186
8fff7c2f 201872007-05-16 Robert Millan <rmh@aybabtu.com>
20188
20189 * DISTLIST: Update for the latest changes.
20190 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
20191 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
20192 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
20193 grub/util/biosdisk.h.
20194 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
20195 grub/util/biosdisk.h.
20196
48e12b52 201972007-05-16 Robert Millan <rmh@aybabtu.com>
20198
20199 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
20200
46b9d128 202012007-05-16 Robert Millan <rmh@aybabtu.com>
20202
20203 * util/i386/efi/grub-install.in: New.
20204 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
20205 newly added grub-install.
20206 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
20207 include.
20208 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
20209 grub/util/biosdisk.h.
20210 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
20211 grub/util/biosdisk.h.
20212
2d1a40a9 202132007-05-16 Robert Millan <rmh@aybabtu.com>
20214
20215 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
20216 * include/grub/util/biosdisk.h: ... here.
20217 * util/i386/pc/biosdisk.c: Moved to ...
20218 * util/biosdisk.c: ... here.
20219 * util/i386/pc/getroot.c: Moved to ...
20220 * util/getroot.c: ... here.
20221 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
20222 * util/grub-mkdevicemap.c: ... here.
20223 * util/i386/pc/grub-probe.c: Moved to ...
20224 * util/grub-probe.c: ... here.
20225
9e26e3bc 202262007-05-15 Robert Millan <rmh@aybabtu.com>
20227
20228 * util/update-grub.in: Remove duplicated line in grub.cfg header
20229 message.
20230
57f96397 202312007-05-13 Robert Millan <rmh@aybabtu.com>
20232
20233 * util/update-grub.in: Fix a few assumptions about the devices holding
20234 /, /boot and /boot/grub being the same.
20235 * util/grub.d/00_header.in: Likewise.
20236 * util/grub.d/10_hurd.in: Likewise.
20237 * util/grub.d/10_linux.in: Likewise.
20238
20239 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
20240 patterns. Use that to define the `.old' suffix as older than `'.
20241
20242 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
20243
20244 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
20245 the grub.cfg header message.
20246
2e610d62 202472007-05-11 Robert Millan <rmh@aybabtu.com>
20248
20249 * util/update-grub.in: Create device.map if it doesn't already exist,
20250 before attempting to run grub-probe.
20251 Check for grub-probe and grub-mkdevicemap with the same code
20252 grub-install is using.
20253 Remove test mode.
20254
3f6a10ef 202552007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
20256
20257 * Makefile.in: Add the datarootdir autoconf variable.
20258
02e7b75e 202592007-05-09 Robert Millan <rmh@aybabtu.com>
20260
20261 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
f19dbdb7 20262 fail gracefully if dev->disk->partition == NULL.
02e7b75e 20263
75f396cc 202642007-05-07 Robert Millan <rmh@aybabtu.com>
20265
20266 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
20267 determine partition map module.
20268 * util/i386/pc/grub-install.in: Use this feature to decide which
20269 partition module to load, instead of hardcoding pc and gpt.
20270
da65cb36 202712007-05-07 Robert Millan <rmh@aybabtu.com>
20272
20273 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
20274 source directory differs from build directory.
20275
b57d6a91 202762007-05-05 Robert Millan <rmh@aybabtu.com>
20277
20278 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
20279 initialisation.
20280
509d00f1 202812007-05-05 Robert Millan <rmh@aybabtu.com>
20282
20283 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
20284
c48f23ef 202852007-05-05 Robert Millan <rmh@aybabtu.com>
20286
20287 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
20288 command-line arguments via ${GRUB_CMDLINE_LINUX}.
20289
20b97658 202902007-05-05 Robert Millan <rmh@aybabtu.com>
20291
20292 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
20293 (grub_probe_SOURCES): Likewise.
20294 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
20295 GPT and initialize dos_part and bsd_part accordingly.
20296 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
20297 install_bsd_part.
20298 (main): Activate gpt module for use during partition identification,
20299 and deactivate it afterwards.
20300 * util/i386/pc/grub-install.in: Add gpt module to core.img.
20301 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
20302 partition identification, and deactivate it afterwards.
20303
99123174 203042007-05-05 Robert Millan <rmh@aybabtu.com>
20305
20306 * term/i386/pc/console.c (grub_console_fini): Call
20307 grub_term_set_current() before grub_term_unregister().
20308
ebd97f6e 203092007-05-04 Robert Millan <rmh@aybabtu.com>
20310
20311 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
20312 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
20313 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
20314 and update-grub_DATA.
20315 * conf/common.rmk: Build and install update-grub components.
20316 * conf/common.mk: Regenerate.
20317 * util/update-grub.in: New. Core of update-grub.
20318 * util/grub.d/00_header.in: New. Generates grub.cfg header.
20319 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
20320 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
20321 * util/grub.d/README: New. Document grub.d directory layout.
20322
b06a264d 203232007-05-01 Robert Millan <rmh@aybabtu.com>
20324
20325 * util/grub-emu.c: Move initialization functions
20326 grub_util_biosdisk_init() and grub_init_all() before
20327 grub_util_biosdisk_get_grub_dev(), which relies on them.
20328
41f0050e 203292007-04-19 Robert Millan <rmh@aybabtu.com>
20330
20331 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
20332 it is used later.
20333
04582bb3 203342007-04-18 Jerone Young <jerone@gmail.com>
20335
f19dbdb7 20336 * kernel/elf.c: Add missing parenthesis for conditional statement
04582bb3 20337 stanza.
20338
08db4632 203392007-04-10 Jerone Young <jerone@gmail.com>
49892fdf 20340
08db4632 20341 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
20342 continue on and look for device node with real device name.
20343
801b76be 203442007-04-10 Jerone Young <jerone@gmail.com>
f19dbdb7 20345
fe6b695a 20346 * configure.ac: Add argument for autoconf to use transformation
1d543c3e 20347 ability.
20348 * Makefile.in: Add autoconf package transformation code.
20349 * util/i386/pc/grub-install.in: Likewise.
20350 * util/powerpc/ieee1275/grub-install.in: Likewise.
20351
6795c4e1 203522007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
20353
20354 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
20355 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
20356 (EXT2_REVISION): Likewise.
20357 (EXT2_INODE_SIZE): Likewise.
20358 (struct grub_ext2_block_group): Added a missing member
20359 "used_dirs".
20360 (grub_ext2_read_inode): Divide by the inode size in a superblock
20361 instead of 128 to obtain INODES_PER_BLOCK.
20362 Use the macro EXT2_INODE_SIZE instead of directly using
20363 SBLOCK->INODE_SIZE.
20364
d70af616 203652007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
20366
20367 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
20368 superblock instead of the structure size to compute an
20369 offset. This fixes the problem that GRUB could not read a
20370 filesystem when inode size is different from 128-byte.
20371
3b801603 203722007-03-05 Marco Gerards <marco@gnu.org>
20373
20374 * normal/main.c (read_config_file): When "menu" is not set, create
20375 an initial context.
20376
4785bfe4 203772007-02-21 Hollis Blanchard <hollis@penguinppc.org>
20378
20379 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
20380 (HEAP_LIMIT): New macro.
20381 (grub_claim_heap): Claim memory up to `heaplimit'.
20382
a0cbb023 203832007-02-21 Hollis Blanchard <hollis@penguinppc.org>
20384
20385 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
20386 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
20387 (_start): Likewise.
20388 (grub_arch_modules_addr): Return address after `_end'.
20389 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
20390 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
20391 (add_segments): Calculate `_end' from phdr size and location.
20392 (ALIGN_UP): Moved to ...
20393 * include/grub/misc.h: here.
20394 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
20395 New macro.
20396 (GRUB_IEEE1275_MODULE_BASE): Removed.
20397
fd7d8eba 203982007-02-20 Hollis Blanchard <hollis@penguinppc.org>
20399
20400 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
20401 loop boundary.
20402
9b09e6fc 204032007-02-20 Hollis Blanchard <hollis@penguinppc.org>
20404
20405 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
20406 All users updated.
20407 (grub_elf64_load_hook_t): Likewise.
20408 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
20409 debug output.
20410
3ce27299 204112007-02-20 Hollis Blanchard <hollis@penguinppc.org>
20412
20413 * kern/mm.c: Update copyright.
20414 (grub_mm_debug): Correct syntax error.
20415 (grub_mm_dump_free): New function.
20416 (grub_debug_free): Call `grub_free'.
20417 * include/grub/mm.h: Update copyright.
20418 (grub_mm_dump_free): Add declaration.
20419
077d5fee 204202007-02-12 Hollis Blanchard <hollis@penguinppc.org>
20421
20422 * include/grub/ieee1275/ieee1275.h: Update copyright.
20423 * kern/powerpc/ieee1275/init.c: Likewise.
20424 * kern/powerpc/ieee1275/openfw.c: Likewise.
20425
20426 * loader/powerpc/ieee1275/linux.c: Likewise.
20427 * include/grub/elfload.h: Likewise.
20428 * kern/elf.c: Likewise.
20429 (grub_elf32_load): Pass `base' and `size' parameters. Update all
20430 callers.
20431 (grub_elf64_load): Likewise.
20432 (grub_elf32_load_segment): Move to a nested function.
20433 (grub_elf64_load_segment): Likewise.
20434
dc946850 204352007-02-12 Hollis Blanchard <hollis@penguinppc.org>
20436
20437 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
20438 prototype.
20439 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
20440 (grub_heap_len): Likewise.
20441 (HEAP_SIZE): New macro.
20442 (grub_claim_heap): New function.
20443 (grub_machine_init): Don't claim heap directly. Call
20444 `grub_claim_heap'.
20445 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
20446 (grub_available_iterate): New function.
20447
baa2a121 204482007-02-03 Thomas Schwinge <tschwinge@gnu.org>
20449
20450 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
20451 * configure.ac: Use it for testing the HOST and TARGET compilers.
20452
4fe9862e 204532006-12-13 Thomas Schwinge <tschwinge@gnu.org>
20454
20455 * Makefile.in (enable_grub_emu): New variable.
20456 * configure.ac (--enable-grub-emu): New option.
20457 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
20458 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
20459 * conf/i386-pc.rmk: Likewise.
20460 * conf/powerpc-ieee1275.rmk: Likewise.
20461 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
20462
a8aa5762 204632006-12-12 Marco Gerards <marco@gnu.org>
20464
20465 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
20466
20467 * kern/env.c (grub_env_unset): Don't free the member `value' when
20468 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
20469 pointer.
20470
20471 * normal/main.c (current_menu): Removed.
20472 (free_menu): Unset the `menu' environment variable.
20473 (grub_normal_menu_addentry): Make use of the environment variable
20474 `menu', instead of using the global `current_menu'. Allocate
20475 memory for the sourcecode of this entry.
20476 (read_config_file): New argument `nested', changed all callers.
20477 Only in the case of a new context, initialize a new menu. Set the
20478 `menu' environment variable.
20479 (grub_normal_execute): Don't set and unset the environment
20480 variable `menu' here anymore. Only free the menu when leaving the
20481 context.
20482
20483 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
20484 leak.
20485
957b3a3e 204862006-12-11 Marco Gerards <marco@gnu.org>
20487
20488 * normal/menu_entry.c (run): Fix off by one bug so the last line
20489 is executed. Move the loader check to outside the loop.
20490
ef875714 204912006-12-08 Hollis Blanchard <hollis@penguinppc.org>
20492
20493 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
20494
4e739985 204952006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
20496
20497 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
20498 the number of sectors. Reported by Andrey Shuvikov
20499 <mr_hyro@yahoo.com>.
f19dbdb7 20500
790707f2 205012006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
20502
20503 * kern/disk.c (grub_disk_read): When there is a read error, always
20504 try to read only the necessary data.
f19dbdb7 20505
790707f2 20506 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
20507 disk/raid.c.
20508 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
20509 prototype.
20510 [GRUB_UTIL] (grub_raid_fini): Likewise.
20511 [GRUB_UTIL] (grub_lvm_init): Likewise.
f19dbdb7 20512 [GRUB_UTIL] (grub_lvm_fini): Likewise.
790707f2 20513 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
20514 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
20515 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
20516 and grub_raid_fini().
f19dbdb7 20517
03e58196 205182006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
20519
20520 * include/grub/types.h (__unused): Rename to UNUSED.
20521 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
20522 (grub_elf64_size): Likewise.
f19dbdb7 20523
ae4f23bf 205242006-11-03 Hollis Blanchard <hollis@penguinppc.org>
20525
20526 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
20527 grub_error_push and grub_error_pop in the error-handling path.
20528 (grub_elf32_load_segment): Only call grub_file_read with non-zero
20529 length.
20530
2166cc83 205312006-11-03 Hollis Blanchard <hollis@penguinppc.org>
20532
20533 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
20534 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
20535 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
20536 (kernel_elf_SOURCES): Likewise.
20537 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
20538 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
20539 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
20540 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
20541 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
20542 (elf_mod_SOURCES): New variable.
20543 (elf_mod_CFLAGS): Likewise.
20544 (elf_mod_LDFLAGS): Likewise.
20545 * include/grub/types.h (__unused): New macro.
20546 * include/grub/elfload.h: New file.
20547 * kern/elf.c: Likewise.
20548 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
20549 (ELF32_LOADMASK): New macro.
20550 (ELF64_LOADMASK): Likewise.
20551 (vmlinux): Removed.
20552 (grub_linux_load32): New function.
20553 (grub_linux_load64): Likewise.
20554 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
20555 Use grub_elf_t instead of grub_file_t.
20556
a09d5aa5 205572006-11-02 Hollis Blanchard <hollis@penguinppc.org>
20558
20559 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
20560 `catch_result' to struct set_color_args.
20561
d976fc51 205622006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
20563
20564 * normal/menu.c: Include grub/script.h.
20565 * normal/menu_entry.c: Likewise.
20566 * include/grub/normal.h: Do not include grub/script.h.
20567
67507549 205682006-10-27 Hollis Blanchard <hollis@penguinppc.org>
20569
20570 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
20571
69203a99 205722006-10-27 Hollis Blanchard <hollis@penguinppc.org>
20573
20574 * kern/disk.c (grub_disk_open): Print debug messages when opening a
20575 disk.
20576 (grub_disk_close): Print debug messages when closing a disk.
20577 (grub_disk_read): Print debug messages when disk read fails.
20578 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
20579 filesystem type.
20580 * kern/partition.c: Include misc.h.
20581 (grub_partition_iterate): Print debug messages when detecting
20582 partition type.
20583
e2b8278c 205842006-10-27 Hollis Blanchard <hollis@penguinppc.org>
20585
20586 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
20587 is negative.
20588 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
20589
97b2f2ff 205902006-10-26 Hollis Blanchard <hollis@penguinppc.org>
20591
20592 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
20593 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
20594
6555d655 205952006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
20596
20597 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
20598 instead of sizeof(lv). Patch by Michael Guntsche.
20599
4d42b77f 206002006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
20601
20602 * disk/lvm.c: Rename VGS to VG_LIST.
20603 (grub_lvm_iterate): Change VGS->LV to VG-LV.
20604 (grub_lvm_open): Likewise.
20605 Thanks to Michael Guntsche for finding this bug.
20606
5d74d927 206072006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
20608
20609 * configure.ac (AC_INIT): Bumped to 1.95.
20610
a1bb27e4 206112006-10-14 Robert Millan <rmh@aybabtu.com>
20612
20613 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
20614 with "/dev/.static/dev/md".
20615
e0994b8b 206162006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
20617
20618 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
20619 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
20620 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
20621 DRIVE_NAME are always freed.
20622
20623 * util/i386/pc/biosdisk.c (make_device_name): Add one into
20624 DOS_PART, as a DOS partition is counted from one instead of zero
20625 now. Reported by Robert Millan.
20626
ddd5cee9 206272006-10-14 Robert Millan <rmh@aybabtu.com>
20628
20629 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
20630 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
20631 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
20632 string returned by grub_guess_root_device.
20633 * util/i386/pc/grub-setup.c: Likewise.
20634 * util/i386/pc/grub-probefs.c: Likewise.
20635
20636 * util/i386/pc/grub-probefs.c: Rename to ...
20637 * util/i386/pc/grub-probe.c: ... this.
20638 * DISTLIST: Remove grub-probefs, add grub-probe.
20639 * conf/i386-efi.rmk: Likewise.
20640 * conf/i386-pc.rmk: Likewise.
20641 * util/i386/pc/grub-install.in: Likewise.
20642
20643 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
20644 choose which information we want to print.
20645
2b002173 206462006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
20647
20648 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
20649 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
20650 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
20651 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
20652 video/readers/tga.c and video/i386/pc/vbeutil.c.
20653
206542006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
20655
20656 Added support for RAID and LVM.
f19dbdb7 20657
2b002173 20658 * disk/lvm.c: New file.
20659 * disk/raid.c: Likewise.
20660 * include/grub/lvm.h: Likewise.
f19dbdb7 20661 * include/grub/raid.h: Likewise.
2b002173 20662 * include/grub/util/lvm.h: Likewise.
20663 * include/grub/util/raid.h: Likewise.
20664 * util/lvm.c: Likewise.
20665 * util/raid.c: Likewise.
20666
20667 * include/grub/disk.h (grub_disk_dev_id): Add
20668 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
20669 (grub_disk_get_size): New prototype.
20670 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
20671 returns a partition.
20672 (grub_disk_get_size): New function.
f19dbdb7 20673
2b002173 20674 * kern/i386/pc/init.c (make_install_device): Copy the prefix
20675 verbatim if grub_install_dos_part is -2.
20676
20677 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
20678 and LVM devices.
20679
20680 * util/i386/pc/grub-setup.c (setup): New argument
20681 MUST_EMBED. Force embedding of GRUB when the argument is
20682 true. Close FILE before returning.
20683 (main): Add support for RAID and LVM.
f19dbdb7 20684
2b002173 20685 * conf/common.rmk: Add RAID and LVM modules.
20686 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
20687 util/lvm.c.
20688 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
20689
20690 * kern/misc.c (grub_strstr): New function.
20691 * include/grub/misc.h (grub_strstr): New prototype.
20692
050548d0 206932006-10-10 Tristan Gingold <tristan.gingold@bull.net>
20694
20695 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
20696
da849d2d 206972006-10-05 Tristan Gingold <tristan.gingold@bull.net>
20698
20699 * kern/misc.c (grub_strtoull): Guess the base only if not
20700 specified.
20701
97b2f2ff 207022006-10-01 Hollis Blanchard <hollis@penguinppc.org>
4f0acd39 20703
20704 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
20705 PowerMac support.
20706
97b2f2ff 207072006-10-01 Hollis Blanchard <hollis@penguinppc.org>
fba51f48 20708
20709 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
20710
20711 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
20712 Remove `flags' argument. All callers changed.
20713 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
20714 (IEEE1275_IHANDLE_INVALID): New variable.
20715 (IEEE1275_CELL_INVALID): New variable.
20716 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
20717 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
20718 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
20719 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
20720 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
20721 codes from Open Firmware. All callers updated.
20722 (grub_ieee1275_next_property): Directly return Open Firmware return
20723 code.
20724 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
20725 Standardize error checking from `grub_ieee1275_get_property'.
20726 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
20727 `devalias' to `aliases'. Correct comments. Consolidate error paths.
20728
97b2f2ff 207292006-10-01 Hollis Blanchard <hollis@penguinppc.org>
cc6d3df3 20730
20731 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
20732 `instance_to_package_args' to `instance_to_path_args'.
20733
20734 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
20735 `grub_ieee1275_chosen'.
20736
20737 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
20738 `grub_ieee1275_interpret'.
20739
97b2f2ff 207402006-09-25 Hollis Blanchard <hollis@penguinppc.org>
02bb8acc 20741
20742 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
20743
97b2f2ff 207442006-09-25 Hollis Blanchard <hollis@penguinppc.org>
663b72f0 20745
20746 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
20747 (__cmpdi): Likewise.
20748
20749 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
20750 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
20751 `grub_ssize_t'.
20752
02bb8acc 20753 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
663b72f0 20754
20755 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
20756 to type `grub_ssize_t'.
20757 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
20758
7f9a8531 207592006-09-22 Marco Gerards <marco@gnu.org>
20760
20761 * normal/script.c (grub_script_create_cmdmenu): Skip leading
20762 newlines.
20763
b5ef1102 207642006-09-22 Marco Gerards <marco@gnu.org>
20765
20766 * commands/echo.c: New file.
20767
20768 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
20769
20770 * conf/common.rmk (echo_mod_SOURCES): New variable.
20771 (echo_mod_CFLAGS): Likewise.
20772 (echo_mod_LDFLAGS): Likewise.
20773
2cff3677 207742006-09-22 Marco Gerards <marco@gnu.org>
20775
20776 * normal/main.c (get_line): Malloc memory instead of using
20777 preallocated memory. Removed the arguments `cmdline' and
20778 `max_len'. Updated all callers.
20779
6ba4688b 207802006-09-22 Marco Gerards <marco@gnu.org>
20781
20782 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
20783 (normal_mod_DEPENDENCIES): Likewise.
20784
20785 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
20786 (normal_mod_DEPENDENCIES): Likewise.
20787
20788 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
20789
e02ac02c 207902006-09-22 Johan Rydberg <jrydberg@gnu.org>
20791
20792 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
20793 programs.
20794 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
20795 (normal_mod_DEPENDENCIES): Likewise.
20796 * conf/i386-pc.mk: Regenerate.
20797 * conf/i386-efi.mk: Likewise
20798 * conf/common.mk: Likewise.
20799 * conf/powerpc-ieee1275.mk: Likewise.
20800 * conf/sparc64-ieee1275.mk: Likewise.
f19dbdb7 20801
8d252e44 208022006-09-22 Robert Millan <rmh@aybabtu.com>
20803
20804 Sync with i386 version.
20805 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
20806 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
20807
209bf7ac 208082006-09-21 Robert Millan <rmh@aybabtu.com>
20809
20810 Import from GRUB Legacy (lib/device.c):
20811 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
20812 (init_device_map) [__linux__]: Add support for I2O devices.
20813
6b146090 208142006-09-14 Marco Gerards <marco@gnu.org>
20815
20816 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
20817 `-melf_i386'.
20818
e38600a8 208192006-09-14 Robert Millan <rmh@aybabtu.com>
2952da5d 20820
20821 * util/i386/pc/grub-install.in: Skip menu.lst when removing
20822 /boot/grub/*.lst.
78fa1790 20823
2952da5d 20824 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
6b146090 20825
2952da5d 20826 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
20827 before adding it to device.map.
20828
01b82a64 208292006-08-15 Johan Rydberg <jrydberg@gnu.org>
20830
fe6b695a 20831 * genmk.rb: Let GCC generate dependencies the first time it
01b82a64 20832 compiles a file; using the -MD option.
20833 * conf/common.mk: Regenerate.
20834 * conf/i386-pc.mk: Likewise.
20835 * conf/i386-efi.mk: Likewise.
20836 * conf/powerpc-ieee1275.mk: Likewise.
20837 * conf/sparc64-ieee1275.mk: Likewise.
f19dbdb7 20838
1064790d 208392006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
20840
20841 Move the prototypes of grub_setjmp and grub_longjmp to
20842 cpu/setjmp.h, so that each architecture may specify different
20843 attributes.
f19dbdb7 20844
1064790d 20845 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
20846 (grub_longjmp): Likewise.
20847 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
20848 (grub_longjmp): Likewise.
20849 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
20850 (grub_longjmp): Likewise.
20851
20852 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
20853 [!GRUB_UTIL] (grub_longjmp): Removed.
20854
29dda3ed 208552006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
20856
20857 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
20858 "color!" method does not return any value.
20859
ad2a06ed 208602006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
20861
20862 * include/grub/bitmap.h: New file.
20863
20864 * include/grub/i386/pc/vbeutil.h: Likewise.
20865
20866 * video/bitmap.c: Likewise.
20867
20868 * video/readers/tga.c: Likewise.
20869
20870 * video/i386/pc/vbeutil.c: Likewise.
20871
20872 * commands/videotest.c: Code cleanup and updated to reflect to new
20873 video API.
20874
20875 * term/gfxterm.c: Likewise.
20876
20877 * video/video.c: Likewise.
20878
20879 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
20880 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
20881 (bitmap_mod_SOURCES): New entry.
20882 (bitmap_mod_CFLAGS): Likewise.
20883 (bitmap_mod_LDFLAGS): Likewise.
20884 (tga_mod_SOURCES): Likewise.
20885 (tga_mod_CFLAGS): Likewise.
20886 (tga_mod_LDFLAGS): Likewise.
20887
20888 * include/grub/video.h (grub_video_blit_operators): New enum type.
20889 (grub_video_render_target): Changed as forward declaration and moved
20890 actual definition to be video driver specific.
20891 (grub_video_adapter.blit_bitmap): Added blitting operator.
20892 (grub_video_adapter.blit_render_target): Likewise.
20893 (grub_video_blit_bitmap): Likewise.
20894 (grub_video_blit_render_target): Likewise.
20895
20896 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
20897 driver specific render target definition.
20898 (grub_video_vbe_map_rgba): Added driver internal helper.
20899 (grub_video_vbe_unmap_color): Updated to use
20900 grub_video_i386_vbeblit_info.
20901 (grub_video_vbe_get_video_ptr): Likewise.
20902
20903 * include/grub/i386/pc/vbeblit.h
20904 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
20905 grub_video_i386_vbeblit_info.
20906 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
20907 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
20908 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
20909 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
20910 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
20911 (grub_video_i386_vbeblit_index_index): Likewise.
20912 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
20913 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
20914 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
20915 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
20916 operator.
20917 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
20918 operator.
20919
20920 * video/i386/pc/vbeblit.c: Updated to reflect changes on
20921 include/grub/i386/pc/vbeblit.h.
20922
20923 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
20924 Updated to use grub_video_i386_vbeblit_info.
20925 (grub_video_i386_vbefill_R8G8B8): Likewise.
20926 (grub_video_i386_vbefill_index): Likewise.
20927 (grub_video_i386_vbefill): Added generic filler.
20928
20929 * video/i386/pc/vbefill.c: Updated to reflect changes on
20930 include/grub/i386/pc/vbefill.h.
20931
20932 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
20933 grub_video_i386_vbeblit_info.
20934 (grub_video_vbe_unmap_color): Likewise.
20935 (grub_video_vbe_blit_glyph): Likewise.
20936 (grub_video_vbe_scroll): Likewise.
20937 (grub_video_vbe_draw_pixel): Removed function.
20938 (grub_video_vbe_get_pixel): Likewise.
20939 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
20940 updated code to use it.
20941 (common_blitter): Added common blitter for render target and bitmap.
20942 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
20943 (grub_video_vbe_blit_render_target): Likewise.
20944
bc8c036d 209452006-07-30 Johan Rydberg <jrydberg@gnu.org>
20946
20947 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
20948 is in text mode if there is no console control protocol instance
20949 available.
20950
684a8eff 209512006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
20952
20953 * include/grub/video.h: Code cleanup.
20954
20955 * include/grub/i386/pc/vbe.h: Likewise.
20956
20957 * video/i386/pc/vbe.c: Likewise.
20958
20959 * video/i386/pc/vbeblit.c: Likewise.
20960
20961 * video/i386/pc/vbefill.c: Likewise.
20962
20963 * video/video.c: Likewise. Also added more comments.
20964
5915059b 209652006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
20966
20967 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
20968 (struct grub_biosdisk_dap): Likewise.
20969
20970 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
20971 linkage settings for all functions.
20972
90ce5d56 209732006-07-12 Marco Gerards <marco@gnu.org>
20974
20975 * configure.ac (--enable-mm-debug): Fix typo.
20976
20977 * genkernsyms.sh.in: Use proper quoting for `CC'.
20978
43e7f879 209792006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
20980
20981 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
20982 (normal_mod_ASFLAGS): Remove "-m32".
20983
4889bdec 209842006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
20985
20986 * util/misc.c: Include config.h.
20987 [!HAVE_MEMALIGN]: Do not include malloc.h.
20988 (grub_memalign): Use posix_memalign, if present. Then, use
20989 memalign, if present. Otherwise, emit an error.
20990
20991 * util/grub-emu.c: Do not include malloc.h.
20992
20993 * include/grub/util/misc.h: Include unistd.h. This is required for
20994 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
20995 D. Eades III <hde@foobar-qux.org>.
20996
20997 * configure.ac (AC_GNU_SOURCE): Added.
20998 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
20999 type.
21000
fd39d4da 210012006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
21002
21003 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
21004 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
21005
b786f3b5 210062006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
21007
21008 * include/grub/types.h (grub_host_addr_t): Rename to
21009 grub_target_addr_t.
21010 (grub_host_off_t): Rename to grub_target_off_t.
21011 (grub_host_size_t): Rename to grub_target_size_t.
21012 (grub_host_ssize_t): Rename to grub_target_ssize_t.
21013 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
21014
21015 * include/grub/kernel.h (struct grub_module_header): Change type
21016 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
21017 (grub_module_info): Likewise.
f19dbdb7 21018
051988bb 210192006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
21020
21021 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
21022 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
21023 Velazquez <jesus.velazquez@gmail.com>.
21024
deae281b 210252006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
21026
21027 Count partitions from 1 instead of 0 in the string representation
21028 of partitions. Still use 0-based internally.
f19dbdb7 21029
deae281b 21030 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
21031 (sun_partition_map_iterate): Use grub_partition_t instead of
21032 struct grub_partition *. Cast DESC->START_CYLINDER to
21033 grub_uint64_t after converting the endian.
21034 (sun_partition_map_probe): Subtract 1 for PARTNUM.
21035 (sun_partition_map_get_name): Add 1 to P->INDEX.
21036
21037 * partmap/pc.c (grub_partition_parse): Subtract 1 for
21038 PCDATA->DOS_PART.
21039 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
21040
21041 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
21042 zero instead of one.
21043 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
21044 (gpt_partition_map_get_name): Add 1 into P->INDEX.
21045
21046 * partmap/apple.c (apple_partition_map_iterate): Change the type
21047 of POS to unsigned.
21048 (apple_partition_map_probe): Subtract 1 for PARTNUM.
21049 (apple_partition_map_get_name): Add 1 into P->INDEX.
21050
21051 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
21052 of POS to unsigned.
21053 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
21054 calculate the offset of a partition.
21055 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
21056 (amiga_partition_map_get_name): Add 1 into P->INDEX.
21057
21058 * partmap/acorn.c (acorn_partition_map_find): Change the type of
21059 SECTOR to grub_disk_addr_t.
21060 (acorn_partition_map_iterate): Likewise.
21061 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
21062 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
21063 top.
21064 (acorn_partition_map_get_name): Add 1 into P->INDEX.
21065
21066 * kern/i386/pc/init.c (make_install_device): Add 1 into
21067 GRUB_INSTALL_DOS_PART.
21068
21069 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
21070 conditional.
21071
524a1e6a 210722006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
21073
21074 Clean up the code to support 64-bit addressing in disks and
21075 files. This change is not enough for filesystems yet.
f19dbdb7 21076
524a1e6a 21077 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
21078 type of "start" to grub_uint64_t.
21079 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
21080 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
21081 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
21082 convert addresses.
21083
21084 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
21085 to grub_disk_addr_t.
21086
21087 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
21088 string.
21089
21090 * partmap/pc.c (pc_partition_map_iterate): Likewise.
21091
21092 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
21093 to char *.
21094
21095 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
21096
21097 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
21098
21099 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
21100
21101 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
21102 to grub_off_t, to detect an error from grub_file_seek.
21103 (grub_multiboot_load_elf32): Likewise.
21104
21105 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
21106 maximum unsigned long value when an overflow is detected.
21107 (grub_strtoull): New function.
21108 (grub_divmod64): Likewise.
21109 (grub_lltoa): use grub_divmod64.
21110
21111 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
21112 grub_disk_addr_t.
21113 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
21114 the pointer to next character. Use grub_strtoull instead of
21115 grub_strtoul.
21116 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
21117 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
21118 respectively.
21119
fe6b695a 21120 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
524a1e6a 21121 return value is signed.
21122 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
21123 test if OFFSET is less than zero, as OFFSET is unsigned now.
21124
21125 * kern/disk.c (struct grub_disk_cache): Change the type of
21126 "sector" to grub_disk_addr_t.
21127 (grub_disk_cache_get_index): Change the type of SECTOR to
21128 grub_disk_addr_t. Calculate the hash with SECTOR casted to
21129 unsigned after shifting.
21130 (grub_disk_cache_invalidate): Change the type of SECTOR to
21131 grub_disk_addr_t.
21132 (grub_disk_cache_unlock): Likewise.
21133 (grub_disk_cache_store): Likewise.
21134 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
21135 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
21136 grub_disk_addr_t and grub_uint64_t, respectively.
21137 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
21138 body, as the value of OFFSET is tweaked by
21139 grub_disk_check_range. Change the types of START_SECTOR, LEN and
21140 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
21141 respectively.
21142 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
21143 body, as the value of OFFSET is tweaked by
21144 grub_disk_check_range. Change the types of LEN and N to
21145 grub_size_t.
21146
21147 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
21148 and "saved_offset" to grub_off_t.
21149 (test_header): Cast BUF to char *.
21150 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
21151 to char *.
21152 (grub_gzio_read): Change the types of OFFSET and SIZE to
21153 grub_off_t and grub_size_t, respectively.
21154
21155 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
21156 Removed.
21157 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
21158 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
21159 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
21160 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
21161 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
21162
21163 * include/grub/types.h (grub_off_t): Unconditionally set to
21164 grub_uint64_t.
21165 (grub_disk_addr_t): Changed to grub_uint64_t.
21166
21167 * include/grub/partition.h (struct grub_partition): Change the
21168 types of "start", "len" and "offset" to grub_disk_addr_t,
21169 grub_uint64_t and grub_disk_addr_t, respectively.
21170 (grub_partition_get_start): Return grub_disk_addr_t.
21171 (grub_partition_get_len): Return grub_uint64_t.
21172
21173 * include/grub/misc.h (grub_strtoull): New prototype.
21174 (grub_divmod64): Likewise.
21175
21176 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
21177 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
21178 grub_off_t, respectively.
21179 All callers and references changed.
21180
21181 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
21182 grub_size_t in "read".
21183 All callers and references changed.
21184
21185 * include/grub/file.h (struct grub_file): Change the types of
21186 "offset" and "size" to grub_off_t and grub_off_t,
21187 respectively. Change the type of SECTOR to grub_disk_addr_t in
21188 "read_hook".
21189 (grub_file_read): Change the type of LEN to grub_size_t.
21190 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
21191 grub_off_t.
21192 (grub_file_size): Return grub_off_t.
21193 (grub_file_tell): Likewise.
21194 All callers and references changed.
21195
21196 * include/grub/disk.h (struct grub_disk_dev): Change the types of
21197 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
21198 "write".
21199 (struct grub_disk): Change the type of "total_sectors" to
21200 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
f19dbdb7 21201 "read_hook".
524a1e6a 21202 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
21203 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
21204 (grub_disk_write): Likewise.
21205 All callers and references changed.
21206
21207 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
21208 char * for grub_strncmp to silence gcc.
21209 (grub_iso9660_mount): Likewise.
21210 (grub_iso9660_mount): Likewise.
21211 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
21212 return statement.
21213 (grub_iso9660_iterate_dir): Likewise.
21214 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
21215
21216 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
21217 LEN to grub_disk_addr_t and grub_size_t, respectively.
21218
21219 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
21220
21221 * fs/jfs.c (grub_jfs_read_file): Likewise.
21222
21223 * fs/minix.c (grub_jfs_read_file): Likewise.
21224
21225 * fs/sfs.c (grub_jfs_read_file): Likewise.
21226
21227 * fs/ufs.c (grub_jfs_read_file): Likewise.
21228
21229 * fs/xfs.c (grub_jfs_read_file): Likewise.
21230
21231 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
21232 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
21233 respectively.
21234
21235 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
21236 BLKNR to -1 instead of returning GRUB_ERRNO.
21237 (grub_ext2_read_file): Change the types of SECTOR and
21238 LEN to grub_disk_addr_t and grub_size_t, respectively.
21239
21240 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
21241 LEN to grub_disk_addr_t and grub_size_t, respectively.
21242
21243 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
21244 grub_file_read.
21245
21246 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
21247 string. Do not cast SECTOR explicitly.
21248
21249 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
21250 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
21251 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
21252 grub_disk_addr_t and grub_size_t, respectively. If the sector is
21253 over 2TB and LBA mode is not supported, raise an error.
21254 (get_safe_sectors): New function.
21255 (grub_biosdisk_read): Use get_safe_sectors.
21256 (grub_biosdisk_write): Likewise.
21257
21258 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
21259 (grub_efidisk_write): Likewise.
21260
21261 * disk/loopback.c (delete_loopback): Cosmetic changes.
21262 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
21263 correctly.
21264 (grub_loopback_open): Likewise.
21265 (grub_loopback_read): Likewise. Also, change the type of POS to
21266 grub_off_t, and fix the usage of grub_memset.
21267
21268 * commands/i386/pc/play.c: Include grub/machine/time.h.
21269
21270 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
21271 print FILE->SIZE.
21272
21273 * commands/configfile.c: Include grub/env.h.
21274
21275 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
21276 GRUB_ERRNO directly instead. Change the type of POS to
21277 grub_off_t. Follow the coding standard.
21278
21279 * commands/blocklist.c: Include grub/partition.h.
21280 (grub_cmd_blocklist): Return an error if the underlying device is
21281 not a disk. Take the starting sector of a partition into account,
21282 if a partition is used.
21283
21284 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
21285 a length field.
21286 (lba_mode): Support 64-bit addresses.
21287 (chs_mode): Likewise.
21288 (copy_buffer): Adapted to the new offsets of a length field and a
21289 segment field.
21290 (blocklist_default_start): Allocate 64-bit space.
21291
21292 * boot/i386/pc/boot.S (force_lba): Removed.
21293 (boot_drive): Moved to under KERNEL_SECTOR.
fe987087 21294 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
524a1e6a 21295 space.
21296 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
21297 is useless.
21298 (lba_mode): Refactored to support a 64-bit address. More size
21299 optimization.
21300 (setup_sectors): Likewise.
21301
53af98ad 213022006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
21303
21304 * DISTLIST: Added include/grub/i386/linux.h. Removed
21305 include/grub/i386/pc/linux.h
21306
21307 * configure.ac (AC_INIT): Bumped to 1.94.
21308
21309 * config.guess: Updated from gnulib.
21310 * config.sub: Likewise.
21311 * install-sh: Likewise.
21312 * mkinstalldirs: Likewise.
21313
b4c1940a 213142006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
21315
21316 * conf/common.rmk (grub_modules_init.lst): Depended on
21317 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
21318 MODSRCFILES.
21319
21320 * genmk.rb (PModule::rule): Reverted the previous change.
21321
cfca1cfd 213222006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
21323
21324 * conf/common.rmk (grub_modules_init.lst): Depends on
21325 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
21326 that the target does not exist before producing.
21327 (grub_modules_init.h): Remove the target before generating.
21328 (grub_emu_init.c): Likewise.
21329
21330 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
21331
aa6d7826 213322006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
21333
21334 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
21335 for the target-specific tests. Make sure that we also have the
21336 up-to-date target variables for those tests.
21337
26c607b9 213382006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
21339
21340 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
21341 (PModule::rule): Likewise.
21342
0162321a 213432006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
21344
21345 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
21346 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
21347 target-specific flags should be prefixed.
21348 (PModule::rule): Likewise.
21349
6c826348 213502006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
21351
21352 * configure.ac (CMP): Check if cmp is available explicitly.
21353
b977bf01 213542006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
21355
21356 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
21357 (target_cpu): New variable.
21358 (pkglibdir): Use target_cpu instead of host_cpu.
f19dbdb7 21359
b977bf01 21360 * util/i386/pc/grub-install.in (host_cpu): Removed.
21361 (target_cpu): New variable.
21362 (pkglibdir): Use target_cpu instead of host_cpu.
21363
21364 * util/genmoddep.c: Removed.
f19dbdb7 21365
b977bf01 21366 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
21367 instead of GRUB_HOST_SIZEOF_VOID_P.
21368 * kern/dl.c: Likewise.
21369
21370 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
21371 ...
21372 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
21373 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
21374 (GRUB_TARGET_SIZEOF_LONG): ... this.
21375 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
21376 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
21377 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
21378 to ...
21379 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
21380 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
21381 (GRUB_TARGET_SIZEOF_LONG): ... this.
21382 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
21383 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
21384 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
21385 to ...
21386 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
21387 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
21388 (GRUB_TARGET_SIZEOF_LONG): ... this.
21389 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
21390 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
21391
21392 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
21393 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
21394 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
21395 instead of GRUB_HOST_SIZEOF_LONG.
21396 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
21397 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
21398 GRUB_CPU_WORDS_BIGENDIAN.
21399 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
21400 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
21401 grub_host_ssize_t.
21402
21403 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
21404 (genmoddep_SOURCES): Likewise.
21405 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
21406 (genmoddep_SOURCES): Likewise.
21407 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
21408 (genmoddep_SOURCES): Likewise.
21409 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
21410 Likewise.
21411 (genmoddep_SOURCES): Likewise.
21412
21413 * genmoddep.awk: New file.
21414
21415 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
21416 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
21417 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
21418 (PModule::rule): Likewise.
21419 (Program::rule): Likewise.
21420 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
21421 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
21422 respectively.
21423
21424 * configure.ac: Rewritten intensively to use host and target
21425 instead of build and host, respectively.
21426
21427 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
21428 (host_cpu): Removed.
21429 (target_cpu): New variable.
21430 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
21431 (BUILD_CC): Removed.
21432 (BUILD_CFLAGS): Likewise.
21433 (BUILD_CPPFLAGS): Likewise.
21434 (TARGET_CC): New variable.
21435 (TARGET_CFLAGS): Likewise.
21436 (TARGET_CPPFLAGS): Likewise.
21437 (TARGET_LDFLAGS): Likewise.
21438 (AWK): Likewise.
21439 (include): Use target_cpu instead of host_cpu.
21440 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
f19dbdb7 21441
b977bf01 21442 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
21443
f09771a1 214442006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
21445
21446 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
21447 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
21448 field 'false' to 'exec_on_false'.
21449 (grub_script_create_cmdif): Renamed argument names to reflect above
21450 changes.
21451
21452 * normal/execute.c (grub_script_execute_cmdif): Likewise.
21453
21454 * normal/script.c (grub_script_create_cmdif): Likewise.
21455
118f4fb3 214562006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
21457
21458 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
21459 top.
21460 (grub_hfsplus_btree_recptr): Likewise.
21461 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
21462 FILEBLOCK both to pass a block number and store next block
21463 number.
21464 (grub_hfsplus_read_block): Rewritten heavily to support an extent
21465 overflow file correctly. Specify errors appropriately, because
21466 fshelp expects that GRUB_ERRNO is set when fails. Reuse
21467 grub_hfsplus_btree_recptr to get the pointer to a found key.
21468 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
21469 is found.
21470
21471 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
21472 linux.mod.
21473 (_linux_mod_SOURCES): New variable.
21474 (_linux_mod_CFLAGS): Likewise.
21475 (_linux_mod_LDFLAGS): Likewise.
21476 (linux_mod_SOURCES): Likewise.
21477 (linux_mod_CFLAGS): Likewise.
21478 (linux_mod_LDFLAGS): Likewise.
21479
21480 * DISTLIST: Added loader/i386/efi/linux.c,
21481 loader/i386/efi/linux_normal.c and
21482 include/grub/i386/efi/loader.h.
21483
21484 * loader/i386/efi/linux.c: New file.
21485 * loader/i386/efi/linux_normal.c: Likewise.
21486 * include/grub/i386/efi/loader.h: Likewise.
21487
89a7d726 214882006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
21489
21490 * commands/blocklist.c: New file.
21491
21492 * DISTLIST: Added commands/blocklist.c.
21493
21494 * term/efi/console.c (grub_console_highlight_color): Use a lighter
43b553ad 21495 color for the background, and a darker color for the foreground.
89a7d726 21496 (grub_console_checkkey): Return READ_KEY.
21497 (grub_console_cls): Set the background to
21498 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
21499
21500 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
21501
21502 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
21503 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
21504
21505 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
21506 prototype.
21507
21508 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
21509 BG. The spec is wrong again.
21510
21511 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
21512 prototype.
21513 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
21514
21515 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
21516 commands/blocklist.c.
21517 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
f19dbdb7 21518
89a7d726 21519 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
21520 (blocklist_mod_SOURCES): New variable.
21521 (blocklist_mod_CFLAGS): Likewise.
21522 (blocklist_mod_LDFLAGS): Likewise.
21523
75c8f258 215242006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
21525
21526 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
21527 duplication.
21528 (lba_mode): Use %eax more intensively to reduce the code size.
21529
da2eb181 215302006-05-20 Marco Gerards <marco@gnu.org>
21531
21532 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
21533
21534 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
21535 for `menuentry'.
21536 (script): Accept leading newlines.
21537 (newlines): New rule to describe 0 or more newlines.
21538 (commands): Accept `command' with trailing newline. Fixed the
21539 order in which arguments were passed to `grub_script_add_cmd'.
21540 Accept commands separated by newlines.
21541 (function): Changed to accept newlines.
21542 (menuentry) Rewritten.
21543
21544 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
21545 front of the list, instead of to the end.
21546
577b4050 215472006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
21548
21549 * util/i386/pc/grub-install.in (bindir): New variable.
21550 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
21551 Shaver <lbgwjl@gmail.com>.
21552
0d6e1189 215532006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
21554
21555 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
21556 grub/machine/linux.h
21557 * loader/i386/pc/linux.c: Likewise.
21558
21559 * include/grub/i386/pc/linux.h: Moved to ...
21560 * include/grub/i386/linux.h: ... here.
21561
21562 * include/grub/i386/linux.h (struct linux_kernel_params): New
21563 struct.
f19dbdb7 21564
31b86e9f 215652006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
21566
21567 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
21568 checking.
21569 (grub_video_vbe_blit_glyph): Likewise.
21570 (grub_video_vbe_blit_bitmap): Likewise.
21571 (grub_video_vbe_blit_render_target): Likewise.
21572
83b984de 215732006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
21574
21575 * configure.ac (--with-platform): Properly quote the square
21576 brackets.
21577
5f0413bd 215782006-05-08 Marco Gerards <marco@gnu.org>
21579
21580 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
21581 this...
21582 (kernel_elf_HEADERS): ...to this. Updated all users.
21583 (grubof_symlist.c): Renamed from this...
21584 (kernel_elf_symlist.c): ...to this. Updated all users.
21585 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
21586 (grubof_SOURCES): Renamed from this...
21587 (kernel_elf_SOURCES): ...to this.
21588 (grubof_HEADERS): Renamed from this...
21589 (kernel_elf_HEADERS): ...to this.
21590 (grubof_CFLAGS): Renamed from this...
21591 (kernel_elf_CFLAGS): ...to this.
21592 (grubof_ASFLAGS): Renamed from this...
21593 (kernel_elf_ASFLAGS): ...to this.
21594 (grubof_LDFLAGS): Renamed from this...
21595 (kernel_elf_LDFLAGS): ...to this.
21596
21597 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
21598 this...
21599 (kernel_elf_HEADERS): ...to this. Updated all users.
21600 (grubof_symlist.c): Renamed from this...
21601 (kernel_elf_symlist.c): ...to this. Updated all users.
21602 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
21603 (grubof_SOURCES): Renamed from this...
21604 (kernel_elf_SOURCES): ...to this.
21605 (grubof_HEADERS): Renamed from this...
21606 (kernel_elf_HEADERS): ...to this.
21607 (grubof_CFLAGS): Renamed from this...
21608 (kernel_elf_CFLAGS): ...to this.
21609 (grubof_ASFLAGS): Renamed from this...
21610 (kernel_elf_ASFLAGS): ...to this.
21611 (grubof_LDFLAGS): Renamed from this...
21612 (kernel_elf_LDFLAGS): ...to this.
21613
21614 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
21615 `kernel.elf' instead of `grubof'.
21616
05568c2e 216172006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
21618
21619 Add --with-platform to configure. Use pkglibdir instead of
21620 pkgdatadir. This is reported by Roger Leigh.
21621
21622 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
21623 (host_vendor): Likewise.
21624 (host_os): Likewise.
21625 (pkgdatadir): Likewise.
21626 (platform): New variable.
21627 (pkglibdir): Likewise.
21628 Use PKGLIBDIR instead of PKGDATADIR.
f19dbdb7 21629
05568c2e 21630 * util/i386/pc/grub-install.in (datadir): Removed.
21631 (host_vendor): Likewise.
21632 (host_os): Likewise.
21633 (pkgdatadir): Likewise.
21634 (platform): New variable.
21635 (pkglibdir): Likewise.
21636 Use PKGLIBDIR instead of PKGDATADIR.
21637
21638 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
21639 instead of GRUB_DATADIR.
21640 (main): Likewise.
21641 * util/i386/pc/grub-mkimage.c (usage): Likewise.
21642 (main): Likewise.
21643 * util/i386/efi/grub-mkimage.c (usage): Likewise.
21644 (main): Likewise.
21645
21646 * configure.ac (--with-platform): New option.
21647 Use PLATFORM instead of HOST_VENDOR to specify a platform.
21648
21649 * Makefile.in: Include a makefile based on PLATFORM instead of
21650 HOST_VENDOR.
21651 (pkgdatadir): Not appended by the machine type.
21652 (pkglibdir): Appended by the machine type.
21653 (host_vendor): Removed.
21654 (platform): New variable.
21655 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
21656 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
21657 (uninstall): Likewise.
21658
4e93851c 216592006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
21660
21661 Use the environment context in the menu. Remove the commands
21662 "default" and "timeout", and use variables instead.
f19dbdb7 21663
4e93851c 21664 * normal/menu.c: Include grub/env.h.
21665 (print_entry): Cast TITLE to silence gcc.
21666 (get_timeout): New function.
21667 (set_timeout): Likewise.
21668 (get_entry_number): Likewise.
21669 (run_menu): Use a default entry, a fallback entry and a timeout
21670 in the environment variables "default", "fallback" and
21671 "timeout". Also, tweak the default entry if it is not within the
21672 current menu entries.
21673 (grub_menu_run): Use a fallback entry in the environment variable
21674 "fallback".
21675
21676 * normal/main.c (read_config_file): Do not initialize
21677 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
21678 NEWMENU->TIMEOUT.
21679 (grub_normal_execute): Use a data slot to store the menu.
21680
21681 * include/grub/normal.h (struct grub_menu): Removed default_entry,
21682 fallback_entry and timeout.
21683 (struct grub_menu_list): Removed.
21684 (grub_menu_list_t): Likewise.
21685 (struct grub_context): Likewise.
21686 (grub_context_t): Likewise.
21687 (grub_context_get): Likewise.
21688 (grub_context_get_current_menu): Likewise.
21689 (grub_context_push_menu): Likewise.
21690 (grub_context_pop_menu): Likewise.
21691 (grub_default_init): Likewise.
21692 (grub_default_fini): Likewise.
21693 (grub_timeout_init): Likewise.
21694 (grub_timeout_fini): Likewise.
21695
21696 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
21697 and timeout.mod.
21698 (normal_mod_SOURCES): Removed normal/context.c.
21699
21700 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
21701 commands/default.c, commands/timeout.c and normal/context.c.
21702 (normal_mod_SOURCES): Removed normal/context.c.
21703
21704 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
21705 commands/timeout.c and normal/context.c.
21706 (normal_mod_SOURCES): Removed normal/context.c.
21707
21708 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
21709 commands/default.c, commands/timeout.c and normal/context.c.
21710 (normal_mod_SOURCES): Removed normal/context.c.
21711
21712 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
21713 timeout.mod.
21714 (default_mod_SOURCES): Removed.
21715 (default_mod_CFLAGS): Likewise.
21716 (default_mod_LDFLAGS): Likewise.
21717 (timeout_mod_SOURCES): Removed.
21718 (timeout_mod_CFLAGS): Likewise.
21719 (timeout_mod_LDFLAGS): Likewise.
21720
21721 * DISTLIST: Removed commands/default.c, commands/timeout.c and
21722 normal/context.c.
21723
21724 * commands/default.c: Removed.
21725 * commands/timeout.c: Likewise.
21726 * normal/context.c: Likewise.
21727
1eb9cc1d 217282006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
21729
21730 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
21731
385bd9c1 217322006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
21733
21734 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
21735 "next" to "prev" for readability.
21736 (struct grub_env_sorted_var): New struct.
21737 (grub_env_context): Renamed to ...
21738 (initial_context): ... this.
21739 (grub_env_var_context): Renamed to ...
21740 (current_context): ... this.
21741 (grub_env_find): Look only at CURRENT_CONTEXT.
21742 (grub_env_context_open): Rewritten to copy exported variables from
21743 previous context.
21744 (grub_env_context_close): Rewritten according to the new
21745 scheme. Also, add an assertion to prevent the initial context from
21746 removed.
21747 (grub_env_insert): Removed the code for the sorted list.
21748 (grub_env_remove): Likewise.
21749 (grub_env_export): Simply mark the variable with
21750 GRUB_ENV_VAR_GLOBAL.
21751 (grub_env_set): A cosmetic change for naming consistency.
21752 (grub_env_get): Likewise.
21753 (grub_env_unset): Likewise.
21754 (grub_env_iterate): Rewritten to sort variables within this
21755 function.
21756 (grub_register_variable_hook): Fixed for naming consistency. Call
21757 grub_env_find again, only if NAME is not found at the first time.
21758 (mangle_data_slot_name): New function.
21759 (grub_env_set_data_slot): Likewise.
21760 (grub_env_get_data_slot): Likewise.
21761 (grub_env_unset_data_slot): Likewise.
21762
21763 * include/grub/env.h (grub_env_var_type): New enum.
21764 (GRUB_ENV_VAR_LOCAL): New constant.
21765 (GRUB_ENV_VAR_GLOBAL): Likewise.
21766 (GRUB_ENV_VAR_DATA): Likewise.
21767 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
21768 "type".
21769 (grub_env_set): Replace VAR with NAME for consistency.
21770 (grub_register_variable_hook): Likewise.
21771 (grub_env_export): Specify the name of the argument.
21772 (grub_env_set_data_slot): New prototype.
21773 (grub_env_get_data_slot): Likewise.
21774 (grub_env_unset_data_slot): Likewise.
21775
7f362539 217762006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
21777
21778 Extend the loader so that GRUB can accept a loader which comes
21779 back to GRUB when a loaded image exits. Also, this change adds
21780 support for a chainloader on EFI.
f19dbdb7 21781
7f362539 21782 * term/efi/console.c: Include grub/misc.h.
21783 (grub_console_checkkey): Display a scan code on the top for
21784 debugging. This will be removed once the EFI port gets stable.
21785 Correct the scan code mapping.
21786
21787 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
21788 allocate memory from larger regions, in order to reduce the number
21789 of allocated regions. Otherwise, the MacOSX loader panics.
21790 (filter_memory_map): Avoid less than 1MB for compatibility with
21791 other loaders.
21792 (add_memory_regions): Allocate from the tail of a region, if
21793 possible, to avoid allocating a region near to 1MB, for the MacOSX
21794 loader.
21795
21796 * kern/efi/init.c (grub_efi_set_prefix): Specify
21797 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
21798
21799 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
21800 argument IMAGE_HANDLE and specify it to get a loaded image.
21801 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
21802 grub_efi_get_loaded_image.
fe6b695a 21803 (grub_efi_get_filename): Divide the length by the size of
7f362539 21804 grub_efi_char16_t.
21805 (grub_efi_get_device_path): New function.
21806 (grub_efi_print_device_path): Print End Device Path nodes. Divide
21807 the length by the size of grub_efi_char16_t for a file path device
21808 path node.
21809
21810 * kern/loader.c (grub_loader_noreturn): New variable.
21811 (grub_loader_set): Accept a new argument NORETURN. Set
21812 GRUB_LOADER_NORETURN to NORETURN.
21813 All callers changed.
21814 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
21815 grub_machine_fini.
21816
21817 * include/grub/efi/efi.h (grub_efi_get_device_path): New
21818 prototype.
21819 (grub_efi_get_loaded_image): Take an argument to specify an image
21820 handle.
21821
21822 * include/grub/loader.h (grub_loader_set): Added one more argument
21823 NORETURN.
21824
21825 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
21826 instead of grub_efi_open_protocol.
21827 (grub_efidisk_get_device_name): Likewise.
21828 (grub_efidisk_close): Print a newline.
21829 (grub_efidisk_get_device_handle): Fixed to use
21830 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
21831 GRUB_EFI_DEVICE_PATH_TYPE.
21832
21833 * disk/efi/efidisk.c (device_path_guid): Moved to ...
21834 * kern/efi/efi.c (device_path_guid): ... here.
21835
21836 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
21837 chain.mod.
21838 (kernel_mod_HEADERS): Added efi/disk.h.
21839 (_chain_mod_SOURCES): New variable.
21840 (_chain_mod_CFLAGS): Likewise.
21841 (_chain_mod_LDFLAGS): Likewise.
21842 (chain_mod_SOURCES): Likewise.
21843 (chain_mod_CFLAGS): Likewise.
21844 (chain_mod_LDFLAGS): Likewise.
21845
21846 * DISTLIST: Added include/grub/efi/chainloader.h,
21847 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
21848
21849 * include/grub/efi/chainloader.h: New file.
21850 * loader/efi/chainloader.c: Likewise.
21851 * loader/efi/chainloader_normal.c: Likewise.
21852
c0111d6e 218532006-04-30 Marco Gerards <marco@gnu.org>
21854
21855 * commands/configfile.c (grub_cmd_source): New function.
21856 (GRUB_MOD_INIT): Register the commands `source' and `.'.
21857 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
21858
df5341da 218592006-04-30 Marco Gerards <marco@gnu.org>
21860
21861 * normal/execute.c (grub_script_execute_cmd): Change the return
21862 type to `grub_err_t'. Correctly return the error.
21863 (grub_script_execute_cmdline): In case a command line is not a
21864 command or a function, try to interpret it as an assignment.
21865
f85934bd 218662006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
21867
21868 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
21869 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
21870 skip a node whose name is obviously invalid as UTF-16,
21871 i.e. contains a NUL character. Stop the iteration when the last
21872 directory entry is found. Instead of using the return value of
21873 grub_hfsplus_btree_iterate_node, store the value in RET and use
21874 it, because the iterator can be stopped by the last directory
21875 entry.
21876
8f8a2cf8 218772006-04-30 Marco Gerards <marco@gnu.org>
21878
21879 * include/grub/env.h (grub_env_export): New prototype. Reported
21880 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
21881
a27e84ce 218822006-04-30 Marco Gerards <marco@gnu.org>
21883
21884 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
21885 size of the extents in a catalog file record.
21886
eaef0553 218872006-04-29 Marco Gerards <marco@gnu.org>
21888
21889 * commands/configfile.c (grub_cmd_configfile): Execute the
21890 configfile within its own context.
21891
21892 * include/grub/env.h (grub_env_context_open): New prototype.
21893 (grub_env_context_close): Likewise.
21894
21895 * kern/env.c (grub_env): Removed.
21896 (grub_env_sorted): Likewise.
21897 (grub_env_context): New variable.
21898 (grub_env_var_context): Likewise.
21899 (grub_env_find): Search both the active context and the global
21900 context.
21901 (grub_env_context_open): New function.
21902 (grub_env_context_close): Likewise.
21903 (grub_env_insert): Likewise.
21904 (grub_env_remove): Likewise.
21905 (grub_env_export): Likewise.
21906 (grub_env_set): Changed to use helper functions to avoid code
21907 duplication.
21908 (grub_env_iterate): Rewritten so both the current context and the
21909 global context are being used.
21910
21911 * normal/command.c (export_command): New function.
21912 (grub_command_init): Register the `export' function.
21913
7b455f4d 219142006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
21915
21916 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
21917 explicitly to suppress gcc's warnings.
21918 * fs/fat.c (grub_fat_find_dir): Likewise.
21919 (grub_fat_label): Likewise.
21920 * fs/xfs.c (grub_xfs_read_inode): Likewise.
21921 (grub_xfs_mount): Likewise.
21922 (grub_xfs_label): Likewise.
21923 * fs/affs.c (grub_affs_mount): Likewise.
21924 (grub_affs_label): Likewise.
21925 (grub_affs_iterate_dir): Likewise.
21926 * fs/sfs.c (grub_sfs_mount): Likewise.
21927 (grub_sfs_iterate_dir): Likewise.
21928 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
21929 * fs/hfs.c (grub_hfs_mount): Likewise.
21930 (grub_hfs_cmp_catkeys): Likewise.
21931 (grub_hfs_find_dir): Likewise.
21932 (grub_hfs_dir): Likewise.
21933 (grub_hfs_label): Likewise.
21934 * fs/jfs.c (grub_jfs_mount): Likewise.
21935 (grub_jfs_opendir): Likewise.
21936 (grub_jfs_getent): Likewise.
21937 (grub_jfs_lookup_symlink): Likewise.
21938 (grub_jfs_label): Likewise.
21939 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
21940 (grub_hfsplus_iterate_dir): Likewise.
21941 (grub_hfsplus_btree_iterate_node): Made static.
21942
21943 * util/grub-emu.c (prefix): New variable.
21944 (grub_machine_set_prefix): New function.
21945 (main): Do not set the environment variable "prefix" here. Only
21946 set PREFIX, which is used later by grub_machine_set_prefix.
21947
21948 * include/grub/video.h: Do not include grub/symbol.h.
21949 (grub_video_register): Not exported. This symbol is not defined in
21950 the kernel.
21951 (grub_video_unregister): Likewise.
21952 (grub_video_iterate): Likewise.
21953 (grub_video_setup): Likewise.
21954 (grub_video_restore): Likewise.
21955 (grub_video_get_info): Likewise.
21956 (grub_video_get_blit_format): Likewise.
21957 (grub_video_set_palette): Likewise.
21958 (grub_video_get_palette): Likewise.
21959 (grub_video_set_viewport): Likewise.
21960 (grub_video_get_viewport): Likewise.
21961 (grub_video_map_color): Likewise.
21962 (grub_video_map_rgb): Likewise.
21963 (grub_video_map_rgba): Likewise.
21964 (grub_video_fill_rect): Likewise.
21965 (grub_video_blit_glyph): Likewise.
21966 (grub_video_blit_bitmap): Likewise.
21967 (grub_video_blit_render_target): Likewise.
21968 (grub_video_scroll): Likewise.
21969 (grub_video_swap_buffers): Likewise.
21970 (grub_video_create_render_target): Likewise.
21971 (grub_video_delete_render_target): Likewise.
21972 (grub_video_set_active_render_target): Likewise.
21973
21974 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
21975 Undefined.
21976 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
21977
21978 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
21979 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
21980 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
21981 instead of $(srcdir)/genkernsyms.sh.
21982
21983 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
21984 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
21985 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
21986 instead of $(srcdir)/genkernsyms.sh.
21987
21988 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
21989 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
21990 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
21991 instead of $(srcdir)/genkernsyms.sh.
21992
21993 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
21994 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
21995 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
21996 instead of $(srcdir)/genkernsyms.sh.
21997
21998 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
21999 genkernsyms.sh.
22000
22001 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
22002 genkernsyms.sh.
22003 (gensymlist.sh): New target.
22004 (genkernsyms.sh): Likewise.
22005
22006 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
22007 genkernsyms.sh.in and gensymlist.sh.in.
22008
22009 * genkernsyms.sh: Removed.
22010 * gensymlist.sh: Likewise.
f19dbdb7 22011
7b455f4d 22012 * genkernsyms.sh.in: New file.
22013 * gensymlist.sh.in: Likewise.
22014
1885bb27 220152006-04-25 Hollis Blanchard <hollis@penguinppc.org>
22016
22017 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
22018 clobber "prefix", since we may have already set it manually.
22019
71538dff 220202006-04-25 Hollis Blanchard <hollis@penguinppc.org>
22021
22022 * kern/misc.c (abort): New alias for grub_abort.
22023
2965c7cc 220242006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
22025
22026 A new machine-specific function "grub_machine_set_prefix" is
22027 defined. This is called after loading modules, so that a prefix
22028 initialization can use modules. Also, this change adds an
22029 intensive debugging feature for the memory manager via the
22030 configure option "--enable-mm-debug".
f19dbdb7 22031
2965c7cc 22032 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
22033 PART.LEN.
22034
22035 * kern/sparc64/ieee1275/init.c (abort): Removed.
22036 (grub_stop): Likewise.
22037 (grub_exit): New function.
22038 (grub_set_prefix): Renamed to ...
22039 (grub_machine_set_prefix): ... this.
22040 (grub_machine_init): Do not call grub_set_prefix.
22041
22042 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
22043 (grub_machine_set_prefix): ... this.
22044 (grub_machine_init): Do not call grub_set_prefix.
22045
22046 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
22047 (grub_machine_init): Do not set the prefix here.
22048
22049 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
22050
22051 * kern/efi/init.c: Include grub/mm.h.
22052 (grub_efi_set_prefix): New function.
22053
22054 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
22055 (grub_efi_get_filename): New function.
22056 (grub_print_device_path): Renamed to ...
22057 (grub_efi_print_device_path): ... this.
22058
22059 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
22060 [MM_DEBUG] (grub_realloc): Likewise.
22061 [MM_DEBUG] (grub_free): Likewise.
22062 [MM_DEBUG] (grub_memalign): Likewise.
22063 [MM_DEBUG] (grub_mm_debug): New variable.
22064 [MM_DEBUG] (grub_debug_malloc): New function.
22065 [MM_DEBUG] (grub_debug_free): New function.
22066 [MM_DEBUG] (grub_debug_realloc): New function.
22067 [MM_DEBUG] (grub_debug_memalign): New function.
22068
22069 * kern/misc.c (grub_abort): Print a newline to distinguish
22070 the message.
22071
22072 * kern/main.c (grub_main): Call grub_machine_set_prefix and
22073 grub_set_root_dev after loading modules. This is necessary when
22074 setting a prefix depends on modules.
22075
22076 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
22077 (grub_efi_print_device_path): ... this.
22078 (grub_efi_get_filename): New prototype.
22079 (grub_efi_set_prefix): Likewise.
22080
22081 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
22082 and grub/disk.h.
22083 (grub_efidisk_get_device_handle): New prototype.
22084 (grub_efidisk_get_device_name): Likewise.
22085
22086 * include/grub/mm.h: Include config.h.
22087 (MM_DEBUG): Removed.
22088 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
22089 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
22090 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
22091 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
22092 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
22093 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
22094 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
22095 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
22096 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
22097
22098 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
22099
22100 * disk/efi/efidisk.c: Include grub/partition.h.
22101 (iterate_child_devices): New function.
22102 (add_device): First, compare only last device path nodes, so that
22103 devices are sorted by the types.
22104 (grub_efidisk_get_device_handle): New function.
22105 (grub_efidisk_get_device_name): Likewise.
22106
22107 * configure.ac (--enable-mm-debug): New option to enable the
22108 memory manager debugging feature. This makes the binary much
22109 bigger, so is disabled by default.
22110
9cacaa17 221112006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
22112
22113 Use grub_abort instead of grub_stop, and grub_exit must be
22114 define in each architecture now. Also, this change adds support
22115 for EFI disks.
f19dbdb7 22116
9cacaa17 22117 * util/i386/pc/grub-probefs.c: Include grub/term.h.
22118 (grub_getkey): New function.
22119 (grub_term_get_current): Likewise.
22120
22121 * util/i386/pc/grub-setup.c: Include grub/term.h.
22122 (grub_getkey): New function.
22123 (grub_term_get_current): Likewise.
22124
22125 * util/misc.c (grub_stop): Renamed to ...
22126 (grub_exit): ... this.
22127
22128 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
22129 (grub_exit): ... this.
22130 (grub_machine_init): Use grub_abort instead of abort.
22131 (grub_stop): Removed.
22132
22133 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
22134 abort.
22135
22136 * kern/i386/pc/startup.S (grub_exit): New function.
22137 (cold_reboot): New label.
22138
22139 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
22140 (grub_efi_init): Call grub_efidisk_init.
22141 (grub_efi_fini): Call grub_efidisk_fini.
22142
22143 * kern/efi/efi.c: Include grub/mm.h.
22144 (grub_efi_console_control_guid): Renamed to ...
22145 (console_control_guid): ... this.
22146 (grub_efi_loaded_image_guid): Renamed to ...
22147 (loaded_image_guid): ... this.
22148 (grub_efi_locate_handle): New function.
22149 (grub_efi_open_protocol): Likewise.
22150 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
22151 GRUB_EFI_CONSOLE_CONTROL_GUID.
22152 (grub_efi_exit): Removed.
22153 (grub_stop): Likewise.
22154 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
22155 (grub_exit): New function.
22156 (grub_print_device_path): Likewise.
22157
22158 * kern/rescue.c (grub_rescue_cmd_exit): New function.
22159 (grub_enter_rescue_mode): Register "exit".
22160
22161 * kern/misc.c (grub_real_dprintf): A cosmetic change.
22162 (grub_abort): New function.
22163
22164 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
22165
22166 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
22167
22168 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
22169
22170 * include/grub/efi/efi.h (grub_efi_exit): Removed.
22171 (grub_print_device_path): New prototype.
22172 (grub_efi_locate_handle): Likewise.
22173 (grub_efi_open_protocol): Likewise.
22174
22175 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
22176 * disk/efi/efidisk.c: Likewise.
22177
22178 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
22179
22180 * include/grub/efi/console_control.h
22181 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
22182
22183 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
22184 last 8 bytes as an array.
22185 (GRUB_EFI_DISK_IO_GUID): New macro.
22186 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
22187 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
22188 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
22189 grub_uint8_t.
22190 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
22191 (struct grub_efi_device_path): Rename the member "sub_type" to
22192 "subtype".
22193 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
22194 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
22195 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
22196 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
22197 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
22198 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
22199 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
22200 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
22201 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
22202 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
22203 (struct grub_efi_pci_device_path): New structure.
22204 (grub_efi_pci_device_path_t): New type.
22205 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
22206 (struct grub_efi_pccard_device_path): New structure.
22207 (grub_efi_pccard_device_path_t): New type.
22208 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
22209 (struct grub_efi_memory_mapped_device_path): New structure.
22210 (grub_efi_memory_mapped_device_path_t): New type.
22211 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
22212 (struct grub_efi_vendor_device_path): New structure.
22213 (grub_efi_vendor_device_path_t): New type.
22214 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
22215 (struct grub_efi_controller_device_path): New structure.
22216 (grub_efi_controller_device_path_t): New type.
22217 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
22218 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
22219 (struct grub_efi_acpi_device_path): New structure.
22220 (grub_efi_acpi_device_path_t): New type.
22221 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
22222 (struct grub_efi_expanded_acpi_device_path): New structure.
22223 (grub_efi_expanded_acpi_device_path_t): New type.
22224 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
22225 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
22226 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
22227 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
22228 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
22229 (struct grub_efi_atapi_device_path): New structure.
22230 (grub_efi_atapi_device_path_t): New type.
22231 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
22232 (struct grub_efi_fibre_channel_device_path): New structure.
22233 (grub_efi_fibre_channel_device_path_t): New type.
22234 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
22235 (struct grub_efi_1394_device_path): New structure.
22236 (grub_efi_1394_device_path_t): New type.
22237 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
22238 (struct grub_efi_usb_device_path): New structure.
22239 (grub_efi_usb_device_path_t): New type.
22240 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
22241 (struct grub_efi_usb_class_device_path): New structure.
22242 (grub_efi_usb_class_device_path_t): New type.
22243 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
22244 (struct grub_efi_i2o_device_path): New structure.
22245 (grub_efi_i2o_device_path_t): New type.
22246 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
22247 (struct grub_efi_mac_address_device_path): New structure.
22248 (grub_efi_mac_address_device_path_t): New type.
22249 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
22250 (struct grub_efi_ipv4_device_path): New structure.
22251 (grub_efi_ipv4_device_path_t): New type.
22252 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
22253 (struct grub_efi_ipv6_device_path): New structure.
22254 (grub_efi_ipv6_device_path_t): New type.
22255 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
22256 (struct grub_efi_infiniband_device_path): New structure.
22257 (grub_efi_infiniband_device_path_t): New type.
22258 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
22259 (struct grub_efi_uart_device_path): New structure.
22260 (grub_efi_uart_device_path_t): New type.
22261 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
22262 (struct grub_efi_vendor_messaging_device_path): New structure.
22263 (grub_efi_vendor_messaging_device_path_t): New type.
22264 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
22265 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
22266 (struct grub_efi_hard_drive_device_path): New structure.
22267 (grub_efi_hard_drive_device_path_t): New type.
22268 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
22269 (struct grub_efi_cdrom_device_path): New structure.
22270 (grub_efi_cdrom_device_path_t): New type.
22271 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
22272 (struct grub_efi_vendor_media_device_path): New structure.
22273 (grub_efi_vendor_media_device_path_t): New type.
22274 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
22275 (struct grub_efi_file_path_device_path): New structure.
22276 (grub_efi_file_path_device_path_t): New type.
22277 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
22278 (struct grub_efi_protocol_device_path): New structure.
22279 (grub_efi_protocol_device_path_t): New type.
22280 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
22281 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
22282 (struct grub_efi_bios_device_path): New structure.
22283 (grub_efi_bios_device_path_t): New type.
22284 (struct grub_efi_disk_io): New structure.
22285 (grub_efi_disk_io_t): New type.
22286 (struct grub_efi_block_io_media): New structure.
22287 (grub_efi_block_io_media_t): New type.
22288 (struct grub_efi_block_io): New structure.
22289 (grub_efi_block_io_t): New type.
22290
22291 * include/grub/misc.h (grub_stop): Removed.
22292 (grub_exit): New prototype.
22293 (grub_abort): Likewise.
22294
22295 * include/grub/disk.h (enum grub_disk_dev_id): Added
22296 GRUB_DISK_DEVICE_EFIDISK_ID.
22297
22298 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
22299 disk/efi/efidisk.c.
22300 (kernel_syms.lst): Remove the target if an error occurs.
22301
49986a9f 223022006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
22303
22304 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
22305 as it was simply too buggy.
22306
970d3b8a 223072006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
22308
22309 * kern/misc.c (grub_lltoa): New function.
22310 (grub_vsprintf): Added support for the long long suffix,
22311 i.e. "ll".
22312
ff04ec24 223132006-04-20 Hollis Blanchard <hollis@penguinppc.org>
22314
22315 * Makefile.in (LDFLAGS): Add variable.
22316 (LD): Remove variable.
22317 * configure.ac: Add -m32 to LDFLAGS.
22318 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
22319 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
22320 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
22321 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
22322 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
22323 variables.
22324 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
22325 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
22326 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
22327
37e5e1a4 223282006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
22329
22330 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
22331 length for unknown glyph.
22332
c352d8dd 223332006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
22334
2eab1c0d 22335 Add support for pre-loaded modules into the EFI port.
f19dbdb7 22336
2eab1c0d 22337 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
22338 completely. Accept one more argument DIR. The caller has changed.
22339
22340 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
22341
22342 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
22343 (grub_efi_loaded_image_guid): New variable.
22344 (grub_efi_get_loaded_image): New function.
22345 (grub_arch_modules_addr): Likewise.
22346
22347 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
22348 prototype.
22349
22350 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
22351 (struct grub_efi_loaded_image): New structure.
22352 (grub_efi_loaded_image_t): New type.
22353
223542006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
f19dbdb7 22355
c352d8dd 22356 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
22357 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
22358 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
22359
6d01d6b4 223602006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
22361
22362 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
22363
976a4ea0 223642006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
22365
22366 * DISTLIST: Added include/grub/efi/console.h,
22367 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
22368 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
22369
22370 * include/grub/efi/console.h: New file.
22371 * include/grub/efi/time.h: Likewise.
22372 * include/grub/i386/efi/kernel.h: Likewise.
22373 * kern/efi/init.c: Likewise.
22374 * kern/efi/mm.c: Likewise.
22375 * term/efi/console.c: Likewise.
f19dbdb7 22376
976a4ea0 22377 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
22378 (grub_stop): Removed.
22379 (grub_get_rtc): Likewise.
22380 (grub_machine_init): Simply call grub_efi_init.
22381 (grub_machine_fini): Call grub_efi_fini.
22382
22383 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
22384 (grub_efi_output_string): Removed.
22385 (grub_efi_stall): New function.
22386 (grub_stop): Likewise.
22387 (grub_get_rtc): Likewise.
22388
22389 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
22390 (grub_efi_stall): New prototype.
22391 (grub_efi_allocate_pages): Likewise.
22392 (grub_efi_free_pages): Likewise.
22393 (grub_efi_get_memory_map): Likewise.
22394 (grub_efi_mm_init): Likewise.
22395 (grub_efi_mm_fini): Likewise.
22396 (grub_efi_init): Likewise.
22397 (grub_efi_fini): Likewise.
22398
22399 * include/grub/i386/efi/time.h: Do not include
22400 grub/symbol.h. Include grub/efi/time.h.
22401 (GRUB_TICKS_PER_SECOND): Removed.
22402 (grub_get_rtc): Likewise.
22403
22404 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
22405 Added padding. The EFI spec is buggy.
22406 (GRUB_EFI_BLACK): New macro.
22407 (GRUB_EFI_BLUE): Likewise.
22408 (GRUB_EFI_GREEN): Likewise.
22409 (GRUB_EFI_CYAN): Likewise.
22410 (GRUB_EFI_RED): Likewise.
22411 (GRUB_EFI_MAGENTA): Likewise.
22412 (GRUB_EFI_BROWN): Likewise.
22413 (GRUB_EFI_LIGHTGRAY): Likewise.
22414 (GRUB_EFI_BRIGHT): Likewise.
22415 (GRUB_EFI_DARKGRAY): Likewise.
22416 (GRUB_EFI_LIGHTBLUE): Likewise.
22417 (GRUB_EFI_LIGHTGREEN): Likewise.
22418 (GRUB_EFI_LIGHTCYAN): Likewise.
22419 (GRUB_EFI_LIGHTRED): Likewise.
22420 (GRUB_EFI_LIGHTMAGENTA): Likewise.
22421 (GRUB_EFI_YELLOW): Likewise.
22422 (GRUB_EFI_WHITE): Likewise.
22423 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
22424 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
22425 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
22426 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
22427 (GRUB_EFI_BACKGROUND_RED): Likewise.
22428 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
22429 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
22430 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
22431 (GRUB_EFI_TEXT_ATTR): Likewise.
22432
22433 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
22434 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
22435 (kernel_mod_HEADERS): Added efi/time.h.
22436
83709125 224372006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
22438
22439 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
22440 include/grub/efi/api.h, include/grub/efi/console_control.h,
22441 include/grub/efi/efi.h, include/grub/efi/pe32.h,
22442 include/grub/i386/efi/time.h, kern/efi/efi.c,
22443 kern/i386/efi/init.c, kern/i386/efi/startup.S,
22444 and util/i386/efi/grub-mkimage.c.
22445
22446 * Makefile.in (RMKFILES): Added i386-efi.rmk.
22447
22448 * genmk.rb (PModule#rule): Do not export symbols if
22449 #{prefix}_EXPORTS is set to "no".
22450
22451 * conf/i386-efi.mk: New file.
22452 * conf/i386-efi.rmk: Likewise.
22453 * include/grub/efi/api.h: Likewise.
22454 * include/grub/efi/console_control.h: Likewise.
22455 * include/grub/efi/efi.h: Likewise.
22456 * include/grub/efi/pe32.h: Likewise.
22457 * include/grub/i386/efi/time.h: Likewise.
22458 * kern/efi/efi.c: Likewise.
22459 * kern/i386/efi/init.c: Likewise.
22460 * kern/i386/efi/startup.S: Likewise.
22461 * util/i386/efi/grub-mkimage.c: Likewise.
22462
224632006-04-17 Marco Gerards <marco@gnu.org>
bfa2bd9e 22464
22465 * include/grub/script.h: Include <grub/parser.h> and
22466 "grub_script.tab.h".
22467 (struct grub_lexer_param): New struct.
22468 (struct grub_parser_param): Likewise.
22469 (grub_script_create_arglist): Pass the state in an argument.
22470 (grub_script_add_arglist): Likewise.
22471 (grub_script_create_cmdline): Likewise.
22472 (grub_script_create_cmdblock): Likewise.
22473 (grub_script_create_cmdif): Likewise.
22474 (grub_script_create_cmdmenu): Likewise.
22475 (grub_script_add_cmd): Likewise.
22476 (grub_script_arg_add): Likewise.
22477 (grub_script_lexer_ref): Likewise.
22478 (grub_script_lexer_deref): Likewise.
22479 (grub_script_lexer_record_start): Likewise.
22480 (grub_script_lexer_record_stop): Likewise.
22481 (grub_script_mem_record): Likewise.
22482 (grub_script_mem_record_stop): Likewise.
22483 (grub_script_malloc): Likewise.
22484 (grub_script_yylex): Likewise.
22485 (grub_script_yyparse): Likewise.
22486 (grub_script_yyerror): Likewise.
22487 (grub_script_yylex): Likewise.
22488 (grub_script_lexer_init): Return the state.
22489
22490 * normal/lexer.c (grub_script_lexer_state): Removed variable.
22491 (grub_script_lexer_done): Likewise.
22492 (grub_script_lexer_getline): Likewise.
22493 (grub_script_lexer_refs): Likewise.
22494 (script): Likewise.
22495 (newscript): Likewise.
22496 (record): Likewise.
22497 (recording): Likewise.
22498 (recordpos): Likewise.
22499 (recordlen): Likewise.
22500 (grub_script_lexer_init): Return the state instead of setting
22501 global variables.
22502 (grub_script_lexer_ref): Use the newly added argument for state
22503 instead of globals.
22504 (grub_script_lexer_deref): Likewise.
22505 (grub_script_lexer_record_start): Likewise.
22506 (grub_script_lexer_record_stop): Likewise.
22507 (recordchar): Likewise.
22508 (nextchar): Likewise.
22509 (grub_script_yylex2): Likewise.
22510 (grub_script_yylex): Likewise.
22511 (grub_script_yyerror): Likewise.
22512
22513 * normal/parser.y (func_mem): Removed variable.
22514 (menu_entry): Likewise.
22515 (err): Likewise.
22516 (%lex-param): New parser option.
22517 (%parse-param): Likewise.
22518 (script): Always return the AST.
22519 (argument): Pass the state around.
22520 (arguments): Likewise.
22521 (grubcmd): Likewise.
22522 (commands): Likewise.
22523 (function): Likewise.
22524 (menuentry): Likewise.
22525 (if_statement): Likewise.
22526 (if): Likewise.
22527
22528 * normal/script.c (grub_script_memused): Removed variable.
22529 (grub_script_parsed): Likewise.
22530 (grub_script_malloc): Added a state argument. Use that instead of
22531 global variables.
22532 (grub_script_mem_record): Likewise.
22533 (grub_script_mem_record_stop): Likewise.
22534 (grub_script_arg_add): Likewise.
22535 (grub_script_add_arglist): Likewise.
22536 (grub_script_create_cmdline): Likewise.
22537 (grub_script_create_cmdif): Likewise.
22538 (grub_script_create_cmdmenu): Likewise.
22539 (grub_script_add_cmd): Likewise.
22540 (grub_script_parse): Setup the state before calling the parser.
f19dbdb7 22541
e2a8c904 225422006-04-16 Marco Gerards <marco@gnu.org>
6de2ee99 22543
22544 * normal/command.c (grub_command_init): Remove the title command.
22545
22546 * normal/lexer.c (grub_script_yylex): Renamed from this...
22547 (grub_script_yylex2): ... to this.
22548 (grub_script_yylex): New function. Temporary
22549 introduced to filter some tokens.
22550 (grub_script_yyerror): Print a newline.
22551
22552 * normal/main.c (read_config_file): Output information about the
22553 lines that contain errors. Wait for a key after all lines have
22554 been processed. Don't return an empty menu.
22555
22556 * normal/parser.y (func_mem): Don't initialize.
22557 (menu_entry): Likewise.
22558 (err): New variable.
22559 (script): Don't return anything when an error was encountered.
22560 (ws, returns): Removed rules.
22561 (argument): Disabled concatenated variable support.
22562 (arguments): Remove explicit separators.
22563 (grubcmd): Likewise.
22564 (function): Likewise.
22565 (menuentry): Likewise.
22566 (if): Likewise.
22567 (commands): Likewise. Add error handling.
22568
22569 * normal/script.c (grub_script_create_cmdline): If
22570 `grub_script_parsed' is 0, assume the parser encountered an error.
22571
c9a86192 225722006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
22573
22574 * configure.ac: Add support for EFI. Fix the typo
22575 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
22576
70f3b243 225772006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
22578
22579 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
22580 foreign multibyte characters should be shown correctly.
22581
65f201ad 225822006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
22583
22584 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
22585 calculation.
22586 (read_config_file): Made it to close file before returning.
22587
b4b93674 225882006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
22589
22590 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
22591 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
22592 video/i386/pc/vbefill.c.
22593
22594 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
22595 video/i386/pc/vbefill.c.
22596
22597 * include/grub/video.h (grub_video_blit_format): New enum.
22598 (grub_video_mode_info): Added new member blit_format.
22599 (grub_video_get_blit_format): New function prototype.
22600
22601 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
22602 function prototype.
22603 (grub_video_vbe_map_rgb): Likewise.
22604 (grub_video_vbe_unmap_color): Likewise.
22605
22606 * include/grub/i386/pc/vbeblit.h: New file.
22607
22608 * include/grub/i386/pc/vbefill.h: New file.
22609
22610 * video/video.c (grub_video_get_blit_format): New function.
22611 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
22612 (grub_video_vbe_map_rgb): Likewise.
22613 (grub_video_vbe_unmap_color): Likewise.
22614
22615 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
22616 optimized fills.
22617 (grub_video_vbe_blit_render_target): Changed to use more optimized
22618 blits.
22619 (grub_video_vbe_setup): Added detection for optimized settings.
22620 (grub_video_vbe_create_render_target): Likewise.
22621
22622 * video/i386/pc/vbeblit.c: New file.
22623
22624 * video/i386/pc/vbefill.c: New file.
22625
c2379b9c 226262006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
22627
22628 * font/manager.c (grub_font_get_glyph): Removed font fixup from
22629 here...
22630
22631 * util/unifont2pff.rb: ... and moved it to here. Improved argument
22632 parsing to support both hex and dec ranges. If filename was missing
22633 show usage information.
22634
bd0d7896 226352006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
22636
22637 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
22638 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
22639
22640 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
22641 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
22642 (video_mod_SOURCES): Added.
22643 (video_mod_CFLAGS): Likewise.
22644 (video_mod_LDFLAGS): Likewise.
22645 (gfxterm_mod_SOURCES): Likewise.
22646 (gfxterm_mod_CFLAGS): Likewise.
22647 (gfxterm_mod_LDFLAGS): Likewise.
22648 (videotest_mod_SOURCES): Likewise.
22649 (videotest_mod_CFLAGS): Likewise.
22650 (videotest_mod_LDFLAGS): Likewise.
22651 (vesafb_mod_SOURCES): Removed.
22652 (vesafb_mod_CFLAGS): Likewise.
22653 (vesafb_mod_LDFLAGS): Likewise.
22654 (vga_mod_SOURCES): Likewise.
22655 (vga_mod_CFLAGS): Likewise.
22656 (vga_mod_LDFLAGS): Likewise.
22657
22658 * commands/videotest.c: New file.
22659
22660 * font/manager.c (fill_with_default_glyph): Modified to use
22661 grub_font_glyph.
22662 (grub_font_get_glyph): Likewise.
22663 (fontmanager): Renamed from this...
22664 (font_manager): ... to this.
22665
22666 * include/grub/font.h (grub_font_glyph): Added new structure.
22667 (grub_font_get_glyph): Modified to use grub_font_glyph.
22668
22669 * include/grub/misc.h (grub_abs): Added as inline function.
22670
22671 * include/grub/video.h: New file.
22672
22673 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
22674 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
22675 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
22676 (grub_vbe_get_controller_info): Renamed from this...
22677 (grub_vbe_bios_get_controller_info): ... to this.
22678 (grub_vbe_get_mode_info): Renamed from this...
22679 (grub_vbe_bios_get_mode_info): ... to this.
22680 (grub_vbe_set_mode): Renamed from this...
22681 (grub_vbe_bios_set_mode): ... to this.
22682 (grub_vbe_get_mode): Renamed from this...
22683 (grub_vbe_bios_get_mode): ... to this.
22684 (grub_vbe_set_memory_window): Renamed from this...
22685 (grub_vbe_bios_set_memory_window): ... to this.
22686 (grub_vbe_get_memory_window): Renamed from this...
22687 (grub_vbe_bios_get_memory_window): ... to this.
22688 (grub_vbe_set_scanline_length): Renamed from this...
22689 (grub_vbe_set_scanline_length): ... to this.
22690 (grub_vbe_get_scanline_length): Renamed from this...
22691 (grub_vbe_bios_get_scanline_length): ... to this.
22692 (grub_vbe_set_display_start): Renamed from this...
22693 (grub_vbe_bios_set_display_start): ... to this.
22694 (grub_vbe_get_display_start): Renamed from this...
22695 (grub_vbe_bios_get_display_start): ... to this.
22696 (grub_vbe_set_palette_data): Renamed from this...
22697 (grub_vbe_bios_set_palette_data): ... to this.
22698 (grub_vbe_set_pixel_rgb): Removed.
22699 (grub_vbe_set_pixel_index): Likewise.
22700
22701 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
22702 from this...
22703 (grub_vbe_bios_get_controller_info): ... to this.
22704 (grub_vbe_get_mode_info): Renamed from this...
22705 (grub_vbe_bios_get_mode_info): ... to this.
22706 (grub_vbe_set_mode): Renamed from this...
22707 (grub_vbe_bios_set_mode): ... to this.
22708 (grub_vbe_get_mode): Renamed from this...
22709 (grub_vbe_bios_get_mode): ... to this.
22710 (grub_vbe_set_memory_window): Renamed from this...
22711 (grub_vbe_bios_set_memory_window): ... to this.
22712 (grub_vbe_get_memory_window): Renamed from this...
22713 (grub_vbe_bios_get_memory_window): ... to this.
22714 (grub_vbe_set_scanline_length): Renamed from this...
22715 (grub_vbe_set_scanline_length): ... to this.
22716 (grub_vbe_get_scanline_length): Renamed from this...
22717 (grub_vbe_bios_get_scanline_length): ... to this.
22718 (grub_vbe_set_display_start): Renamed from this...
22719 (grub_vbe_bios_set_display_start): ... to this.
22720 (grub_vbe_get_display_start): Renamed from this...
22721 (grub_vbe_bios_get_display_start): ... to this.
22722 (grub_vbe_set_palette_data): Renamed from this...
22723 (grub_vbe_bios_set_palette_data): ... to this.
22724 (grub_vbe_bios_get_controller_info): Fixed problem with registers
22725 getting corrupted after calling it. Added more pushes and pops.
22726 (grub_vbe_bios_set_mode): Likewise.
22727 (grub_vbe_bios_get_mode): Likewise.
22728 (grub_vbe_bios_get_memory_window): Likewise.
22729 (grub_vbe_bios_set_scanline_length): Likewise.
22730 (grub_vbe_bios_get_scanline_length): Likewise.
22731 (grub_vbe_bios_get_display_start): Likewise.
22732 (grub_vbe_bios_set_palette_data): Likewise.
22733
22734 * normal/cmdline.c (cl_set_pos): Refresh the screen.
22735 (cl_insert): Likewise.
22736 (cl_delete): Likewise.
22737
22738 * term/gfxterm.c: New file.
22739
22740 * term/i386/pc/vesafb.c: Removed file.
22741
22742 * video/video.c: New file.
22743
22744 * video/i386/pc/vbe.c (real2pm): Added new function.
22745 (grub_video_vbe_draw_pixel): Likewise.
22746 (grub_video_vbe_get_video_ptr): Likewise.
22747 (grub_video_vbe_get_pixel): Likewise
22748 (grub_video_vbe_init): Likewise.
22749 (grub_video_vbe_fini): Likewise.
22750 (grub_video_vbe_setup): Likewise.
22751 (grub_video_vbe_get_info): Likewise.
22752 (grub_video_vbe_set_palette): Likewise.
22753 (grub_video_vbe_get_palette): Likewise.
22754 (grub_video_vbe_set_viewport): Likewise.
22755 (grub_video_vbe_get_viewport): Likewise.
22756 (grub_video_vbe_map_color): Likewise.
22757 (grub_video_vbe_map_rgb): Likewise.
22758 (grub_video_vbe_map_rgba): Likewise.
22759 (grub_video_vbe_unmap_color): Likewise.
22760 (grub_video_vbe_fill_rect): Likewise.
22761 (grub_video_vbe_blit_glyph): Likewise.
22762 (grub_video_vbe_blit_bitmap): Likewise.
22763 (grub_video_vbe_blit_render_target): Likewise.
22764 (grub_video_vbe_scroll): Likewise.
22765 (grub_video_vbe_swap_buffers): Likewise.
22766 (grub_video_vbe_create_render_target): Likewise.
22767 (grub_video_vbe_delete_render_target): Likewise.
22768 (grub_video_vbe_set_active_render_target): Likewise.
22769 (grub_vbe_set_pixel_rgb): Remove function.
22770 (grub_vbe_set_pixel_index): Likewise.
22771 (index_color_mode): Remove static variable.
22772 (active_mode): Likewise.
22773 (framebuffer): Likewise.
22774 (bytes_per_scan_line): Likewise.
22775 (grub_video_vbe_adapter): Added new static variable.
22776 (framebuffer): Likewise.
22777 (render_target): Likewise.
22778 (initial_mode): Likewise.
22779 (mode_in_use): Likewise.
22780 (mode_list): Likewise.
22781
5f97350b 227822006-03-10 Marco Gerards <marco@gnu.org>
22783
22784 * configure.ac (AC_INIT): Bumped to 1.93.
22785
22786 * DISTLIST: Added `include/grub/hfs.h'.
22787
a3c5c6f8 227882006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
22789
22790 * boot/i386/pc/boot.S (general_error): Before looping, try INT
22791 18H, which might help the BIOS falling back to next boot media.
22792
6de53d26 227932006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
22794
22795 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
22796 Poe Chen <poe.poechen@gmail.com>.
22797
77c4a393 227982006-01-17 Marco Gerards <marco@gnu.org>
22799
22800 * include/grub/normal.h: Include <grub/script.h>.
22801 (grub_command_list): Removed struct.
22802 (grub_command_list_t): Removed type.
22803 (grub_menu_entry): Remove members `num' and `command_list'. Add
22804 members `commands' and `sourcecode'.
22805 * include/grub/script.h: Add inclusion guards.
22806 (grub_script_cmd_menuentry): New struct.
22807 (grub_script_execute_menuentry): New prototype.
22808 (grub_script_lexer_record_start): Likewise.
22809 (grub_script_lexer_record_stop): Likewise.
22810 * normal/execute.c (grub_script_execute_menuentry): New function.
22811 * normal/lexer.c (record, recording, recordpos, recordlen): New
22812 variables.
22813 (grub_script_lexer_record_start): New function.
22814 (grub_script_lexer_record_stop): Likewise.
22815 (recordchar): Likewise.
22816 (nextchar): Likewise.
22817 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
22818 2048 as the buffer size. Add the tokens `menuentry' and `@'.
22819 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
22820 (current_menu): New variable.
22821 (free_menu): Mainly rewritten.
22822 (grub_normal_menu_addentry): New function.
22823 (read_config_file): Rewritten.
22824 * normal/menu.c (run_menu_entry): Mainly rewritten.
fe987087 22825 * normal/menu_entry.c (make_screen): Rewritten the code to insert
77c4a393 22826 the menu entry.
22827 (run): Mainly rewritten.
22828 * normal/parser.y (menu_entry): New variable.
22829 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
22830 (menuentry): New rule.
22831 (command): Add `menuentry'.
22832 (if_statement): Allow additional returns before `fi'.
22833 * normal/script.c (grub_script_create_cmdmenu): New function.
22834
144f1f98 228352006-01-03 Marco Gerards <marco@gnu.org>
22836
22837 * INSTALL: GNU Bison is required.
22838 * configure.ac: Rewritten the test to detect Bison.
22839 * Makefile.in (YACC): New variable. Reported by Xun Sun
22840 <xun.sun.cn@gmail.com>.
22841
af4b2d89 228422006-01-03 Marco Gerards <marco@gnu.org>
22843
22844 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
22845 the HFS+ filesystem to filesystem blocks.
22846 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
22847 GCC warning is silenced.
22848
15643b71 228492006-01-03 Marco Gerards <marco@gnu.org>
22850
22851 * partmap/apple.c (apple_partition_map_iterate): Convert the data
22852 read from disk from big endian to host byte order.
22853
00905879 228542006-01-03 Hollis Blanchard <hollis@penguinppc.org>
22855
22856 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
22857 documentation.
22858 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
22859 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
22860 embedded HFS+ filesystem.
22861 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
22862 (grub_hfs_sblock): Move from here...
22863 * include/grub/hfs.h: To here... New file.
22864 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
22865 documentation.
22866 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
22867 New macros.
22868 (grub_hfsplus_volheader): Change type of member `magic' to
22869 `grub_uint16_t'.
22870 (grub_hfsplus_data): Add new member `embedded_offset'.
22871 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
22872 returned block.
22873 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
22874 Calculate the offset.
22875
8899bc3e 228762005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
22877
22878 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
22879 Removed.
22880 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
22881
ae8c0277 228822005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
22883
22884 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
22885 ENV->NAME is NULL after allocating ENV->VALUE.
22886
07084456 228872005-12-25 Marco Gerards <marco@gnu.org>
22888
22889 * kern/env.c (grub_env_set): Rewritten the error handling code.
22890
4750f5f1 228912005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
22892
22893 * geninit.sh: Made more robust, and more portable.
22894
50214199 228952005-12-25 Marco Gerards <marco@gnu.org>
22896
22897 Add support for Apple HFS+ filesystems.
f19dbdb7 22898
50214199 22899 * fs/hfsplus.c: New file.
22900
22901 * DISTLIST: Added `fs/hfsplus.c'.
22902
22903 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
22904 (hfsplus_mod_SOURCES): New variable.
22905 (hfsplus_mod_CFLAGS): Likewise.
22906 (hfsplus_mod_LDFLAGS): Likewise.
22907 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
22908 (grub_setup_SOURCES): Likewise.
22909 (grub_mkdevicemap_SOURCES): Likewise.
22910 (grub_emu_SOURCES): Likewise.
22911 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
22912
22913 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
22914
22915 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
22916
befaed6c 229172005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
22918
22919 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
22920 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
22921 include/grub/parser.h, include/grub/script.h, kern/parser.c,
22922 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
22923 normal/lexer.c, normal/parser.y, normal/script.c, and
22924 partmap/gpt.c.
22925 Removed kern/sparc64/cache.c.
22926
22927 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
22928 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
22929 grub_emu_init.c.
22930
22931 * configure.ac (AC_INIT): Bumped to 1.92.
22932
6a124103 229332005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
22934
22935 * kern/err.c (grub_error_push): Added new function to support error
22936 stacks.
22937 (grub_error_pop): Likewise.
22938 (grub_error_stack_items): New local variable to support error stacks.
22939 (grub_error_stack_pos): Likewise.
22940 (grub_error_stack_assert): Likewise.
22941 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
22942 stack depth.
22943 (grub_print_error): Added support to print errors from error stack.
22944
22945 * include/grub/err.h (grub_error_push): Added function prototype.
22946 (grub_error_pop): Likewise.
22947
be973c1b 229482005-12-09 Hollis Blanchard <hollis@penguinppc.org>
22949
22950 * configure.ac: Accept `powerpc64' as host_cpu.
22951 (amd64): Rename to `biarch32'.
22952
22953 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
22954 non-cacheline-aligned addresses.
22955
22956 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
22957 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
22958 if `size' is non-zero.
22959
b04216ab 229602005-12-03 Marco Gerards <mgerards@xs4all.nl>
22961
22962 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
22963 and `cd' to make sure the filename is not prefixed with a
22964 directory name.
22965 (pkgdata_MODULES): Add `gpt.mod'.
22966 (gpt_mod_SOURCES): New variable.
22967 (gpt_mod_CFLAGS): Likewise.
22968 (gpt_mod_LDFLAGS): Likewise.
22969
22970 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
22971
22972 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
22973 New macro.
22974
22975 * partmap/gpt.c: New file.
22976
22977 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
22978 GPT partition map is detected.
22979
41730ed9 229802005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
22981
22982 * commands/i386/pc/play.c: New file.
22983 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
22984 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
22985 macros.
f19dbdb7 22986
95dc3643 229872005-11-27 Marco Gerards <mgerards@xs4all.nl>
22988
22989 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
22990 ((unused))' to silence gcc warning.
22991
1569ec51 229922005-11-26 Hollis Blanchard <hollis@penguinppc.org>
22993
22994 * configure.ac: Correct `AC_PROG_YACC' test.
22995
9abde152 229962005-11-22 Hollis Blanchard <hollis@penguinppc.org>
22997
22998 * util/powerpc/ieee1275/grub-install.in: Run the mount point
22999 check before installing files.
23000
44b83271 230012005-11-22 Mike Small <smallm@panix.com>
23002
23003 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
23004 number regex so multidigit numbers are recognized correctly.
23005
230062005-11-22 Mike Small <smallm@panix.com>
23007
23008 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
23009 debugging message before attempting to claim memory.
23010 (grub_rescue_cmd_initrd): Add a claim debugging message and try
23011 multiple addresses in case of failure.
23012
9c12956b 230132005-11-22 Hollis Blanchard <hollis@penguinppc.org>
23014
23015 * term/tparm.c (get_space): Remove empty `if' statement.
23016
23017 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
23018
23019 * kern/parser.c (check_varstate): Rename `state' to 's'.
23020
aeaf81d9 230212005-11-22 Hollis Blanchard <hollis@penguinppc.org>
23022
23023 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
23024 variable definitions to the beginning of each function. Sort stack
23025 variables by size.
23026 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
23027 `buf' argument to `char *'.
23028
79bbb63f 230292005-11-22 Hollis Blanchard <hollis@penguinppc.org>
23030
23031 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
23032 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
fe6b695a 23033 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
79bbb63f 23034 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
23035 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
23036 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
23037 configfile.mod, search.mod, gzio.mod and test.mod.
23038 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
23039 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
23040 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
23041 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
23042 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
23043 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
23044 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
23045 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
23046 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
23047 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
23048 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
23049 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
23050 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
23051 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
23052 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
23053 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
23054 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
23055 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
23056 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
23057 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
23058 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
23059 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
23060 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
23061
23062 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
23063 `grep --include'.
23064 (pkgdata_MODULES): Add test.mod.
23065
233b1628 230662005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
23067
23068 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
23069 appending to variables with "+=".
23070 (PModule): Use full pathname to generate *.lst filenames.
23071
23072 * Makefile.in: Fixed list rules moved from genmk.rb.
23073 (.DELETE_ON_ERROR): New special target.
23074 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
23075
23076 * conf/i386-pc.rmk: Include conf/common.mk.
23077 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
fe6b695a 23078 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
233b1628 23079 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
23080 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
23081 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
23082 configfile.mod, search.mod, gzio.mod and test.mod.
23083 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
23084 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
23085 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
23086 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
23087 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
23088 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
23089 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
23090 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
23091 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
23092 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
23093 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
23094 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
23095 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
23096 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
23097 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
23098 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
23099 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
23100 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
23101 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
23102 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
23103 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
23104 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
23105 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
23106 here...
23107 * conf/common.rmk: ... to here. New file.
23108
23109 * conf/common.mk: New file.
23110
16f820c8 231112005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
23112
23113 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
23114 (grub_script.tab.c): ... here.
23115
23116 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
23117 (grub_script.tab.c): ... here.
23118
23119 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
23120 (grub_script.tab.c): ... here.
23121
23122 * normal/command.c (grub_command_find): Fixed a memory leak of
23123 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
23124
63ba1554 231252005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
23126
23127 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
23128 "@" which marks the start of a comment on ARM.
23129 (VARIABLE): Likewise.
23130
7f67dc13 231312005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
23132
79bbb63f 23133 Add support for Linux/ADFS partition tables.
7f67dc13 23134
23135 * partmap/acorn.c: New file.
23136
23137 * include/grub/acorn_filecore.h: Likewise.
23138
23139 * DISTLIST: Added `partmap/acorn.c' and
23140 `include/grub/acorn_filecore.h'.
f19dbdb7 23141
7f67dc13 23142 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
23143 `partmap/acorn.c'.
23144 (pkgdata_MODULES): Add `acorn.mod'.
23145 (acorn_mod_SOURCES): New variable.
23146 (acorn_mod_CFLAGS): Likewise.
23147
23148 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
23149 `partmap/acorn.c'.
23150 (pkgdata_MODULES): Add `acorn.mod'.
23151 (acorn_mod_SOURCES): New variable.
23152 (acorn_mod_CFLAGS): Likewise.
23153
23154 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
23155 (pkgdata_MODULES): Add `acorn.mod'.
23156 (acorn_mod_SOURCES): New variable.
23157 (acorn_mod_CFLAGS): Likewise.
23158 (acorn_mod_LDFLAGS): Likewise.
23159
23160 * include/types.h (grub_disk_addr_t): New typedef.
23161
6d099807 231622005-11-13 Marco Gerards <mgerards@xs4all.nl>
23163
23164 * geninit.sh: New file.
23165
23166 * geninitheader.sh: Likewise.
23167
23168 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
23169 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
23170 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
23171 * commands/configfile.c (grub_configfile_init)
23172 (grub_configfile_fini): Likewise.
23173 * commands/default.c (grub_default_init, grub_default_fini):
23174 Likewise.
23175 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
23176 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
23177 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
23178 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
23179 Likewise.
23180 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
23181 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
23182 Likewise.
23183 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
fe6b695a 23184 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
6d099807 23185 Likewise.
23186 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
23187 Likewise.
fe6b695a 23188 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
6d099807 23189 Likewise.
23190 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
23191 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
23192 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
23193 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
23194 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
23195 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
23196 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
23197 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
23198 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
23199 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
23200 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
23201 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
23202 * partmap/amiga.c (grub_amiga_partition_map_init)
23203 (grub_amiga_partition_map_fini): Likewise.
23204 * partmap/apple.c (grub_apple_partition_map_init)
23205 (grub_apple_partition_map_fini): Likewise.
23206 * partmap/pc.c (grub_pc_partition_map_init)
23207 (grub_pc_partition_map_fini): Likewise.
23208 * partmap/sun.c (grub_sun_partition_map_init,
23209 grub_sun_partition_map_fini): Likewise.
23210 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
23211 Likewise.
23212
23213 * util/grub-emu.c: Include <grub_modules_init.h>.
23214 (main): Don't initialize and de-initialize any modules directly,
23215 use `grub_init_all' and `grub_fini_all' instead.
23216
23217 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
23218 `grub_vesafb_mod_init'.
23219 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
23220 all users.
23221 * term/i386/pc/vga.c (grub_vga_init): Renamed to
23222 `grub_vga_mod_init'. Updated all users.
23223 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
f19dbdb7 23224
6d099807 23225 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
23226 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
23227 rules.
23228
23229 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
23230 Generate a function to initialize the module in utilities.
23231 Updated all callers.
23232 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
23233 initialize the module in utilities. Updated all callers.
23234
9046bcf0 232352005-11-09 Hollis Blanchard <hollis@penguinppc.org>
23236
23237 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
23238 escape sequence and a literal ^L to clear the screen.
23239
23240 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
23241 when returning from Open Firmware.
23242
d13ea639 232432005-11-09 Hollis Blanchard <hollis@penguinppc.org>
23244
23245 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
23246 (grub_ofconsole_height): Likewise.
23247 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
23248 manually insert a '\n'.
23249 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
23250 `grub_ofconsole_height'. Return early if these are already set.
23251
a8fcf206 232522005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
23253
23254 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
23255 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
23256 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
23257 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
23258 and `normal/script.c'.
23259 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
23260 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
23261 (test_mod_SOURCES): New variable.
23262 (test_mod_CFLAGS): Likewise.
23263 (test_mod_LDFLAGS): Likewise.
23264 (pkgdata_MODULES): Add `test.mod'.
23265 (grub_script.tab.c): New rule.
23266 (grub_script.tab.h): Likewise.
23267
b6b32745 232682005-11-07 Marco Gerards <mgerards@xs4all.nl>
23269
23270 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
23271 `commands/test.c', `normal/execute.c', `normal/lexer.c',
23272 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
23273 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
23274 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
23275 (test_mod_SOURCES): New variable.
23276 (test_mod_CFLAGS): Likewise.
23277 (pkgdata_MODULES): Add `test.mod'.
23278 (grub_script.tab.c): New rule.
23279 (grub_script.tab.h): Likewise.
23280
daac212a 232812005-11-06 Marco Gerards <mgerards@xs4all.nl>
23282
23283 Add initial scripting support.
23284
23285 * commands/test.c: New file.
23286 * include/grub/script.h: Likewise.
23287 * normal/execute.c: Likewise.
23288 * normal/function.c: Likewise.
23289 * normal/lexer.c: Likewise.
23290 * normal/parser.y: Likewise.
23291 * normal/script.c: Likewise.
23292
23293 * configure.ac: Add `AC_PROG_YACC' test.
f19dbdb7 23294
daac212a 23295 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
23296 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
23297 `normal/function.c' and `normal/script.c'.
23298 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
23299 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
b6b32745 23300 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
23301 variables.
daac212a 23302 (pkgdata_MODULES): Add `test.mod'.
23303 (grub_script.tab.c): New rule.
23304 (grub_script.tab.h): Likewise.
23305
23306 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
23307
23308 * include/grub/normal.h (grub_test_init): New prototype.
23309 (grub_test_fini): Likewise.
f19dbdb7 23310
daac212a 23311 * normal/command.c: Include <grub/script.h>.
23312 (grub_command_execute): Rewritten.
f19dbdb7 23313
daac212a 23314 * util/grub-emu.c (main): Call `grub_test_init' and
23315 `grub_test_fini'.
23316
77500b2b 233172005-11-03 Hollis Blanchard <hollis@penguinppc.org>
23318
23319 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
23320 to 0.
23321 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
23322 there are no pending characters.
23323
e45deb9e 233242005-11-03 Hollis Blanchard <hollis@penguinppc.org>
23325
23326 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
23327 `grub_strndup' to drop device arguments. Replace unnecessary
23328 `grub_strndup' with `grub_strdup'.
23329
4ce32619 233302005-11-03 Hollis Blanchard <hollis@penguinppc.org>
23331
23332 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
23333 `debug' environment variable has been set.
23334
233352005-11-02 Hollis Blanchard <hollis@penguinppc.org>
f19dbdb7 23336
4ce32619 23337 * Makefile.in (install-local): Use $(DATA).
23338 (uninstall): Likewise.
23339 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
23340 (sbin_UTILITIES): ... to here.
23341 (sbin_SCRIPTS): New variable.
23342 (grub_install_SOURCES): New variable.
23343 * util/powerpc/ieee1275/grub-install.in: New file.
23344 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
23345 variable.
23346 (add_segments): Call `grub_util_get_path'.
23347
25fe6f03 233482005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
23349
23350 From Timothy Baldwin:
23351 * commands/ls.c (grub_ls_list_files): Close FILE with
23352 grub_file_close.
23353 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
23354
04ccf3ec 233552005-10-24 Marco Gerards <mgerards@xs4all.nl>
23356
23357 * include/grub/parser.h: New file.
23358
23359 * kern/parser.c: Likewise.
23360
23361 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
23362 (grub_setup_SOURCES): Likewise.
23363 (grub_probefs_SOURCES): Likewise.
23364 (grub_emu_SOURCES): Likewise.
23365 (kernel_img_HEADERS): Add `parser.h'.
23366
23367 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
23368 (grub_emu_SOURCES): Add `kern/parser.c'.
23369 (grubof_SOURCES): Likewise.
23370
23371 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
23372 (grubof_SOURCES): Add `kern/parser.c'.
23373
23374 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
23375
23376 * kern/misc.c (grub_split_cmdline): Removed function.
23377
23378 * kern/rescue.c: Include <grub/parser.h>.
23379 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
23380 of `grub_split_cmdline'.
23381
23382 * normal/command.c: Include <grub/parser.h>.
23383 (grub_command_execute): Use `grub_parser_split_cmdline' instead
23384 of `grub_split_cmdline'.
23385
23386 * normal/completion.c: Include <grub/parser.h>.
23387 (cmdline_state): New variable.
23388 (iterate_dir): End the filename with a quote depending on the
23389 command line state.
23390 (get_state): new function.
23391 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
23392 split the arguments and determine the current argument. When the
23393 argument string is not quoted, escape all spaces.
23394
6d8f4b0e 233952005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
23396
23397 * normal/sparc64/setjmp.S: New file.
23398
15cf03ed 233992005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
23400
23401 * include/grub/sparc64/libgcc.h: New file.
23402 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
23403 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
23404 normal/sparc64/setjmp.c.
23405
03e8661a 234062005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
23407
23408 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
23409 * kern/sparc64/cache.S: New file.
23410 * kern/sparc64/cache.c: Removed.
23411 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
23412 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
23413 -mtune=ultrasparc.
23414 (COMMON_LDFLAGS): Add -melf64_sparc.
23415 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
23416 (grubof_SOURCES): Use cache.S instead of cache.c.
23417 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
23418 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
23419 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
23420 commented though.
23421 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
23422 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
23423 (linux_mod_CFLAGS): Commented out.
23424 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
23425 out because module isn't built.
23426 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
23427 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
23428 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
23429 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
23430 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
23431 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
23432 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
23433 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
23434 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
23435 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
23436 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
23437 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
23438 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
23439 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
23440
34eeec8a 234412005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
23442
23443 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
23444 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
23445 longer, because HFS should not be used on PC.
23446
708367a3 234472005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
23448
23449 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
23450 consistently within the loop.
23451
6fa1251a 234522005-10-15 Marco Gerards <mgerards@xs4all.nl>
23453
23454 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
23455 directory can not be read.
23456
4801580b 234572005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
23458
23459 * configure.ac (AC_INIT): Increase the version number to 1.91.
23460
23461 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
23462 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
23463 term/i386/pc/serial.c.
23464
219ad426 234652005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
23466
23467 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
23468 file size must be permitted.
23469
23470 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
23471 between %ah and %al.
23472
688e5699 234732005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
23474
23475 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
23476 grub_uint64_t.
23477 Call the hook with a NUL-terminated filename.
23478 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
23479 grub_cpu_to_be32.
23480
23481 * kern/term.c (cursor_state): New variable.
23482 (grub_term_set_current): Reset the cursor state on a new
23483 terminal.
23484 (grub_setcursor): Rewritten to use CURSOR_STATE.
23485 (grub_getcursor): New function.
23486
23487 * include/grub/term.h (grub_getcursor): New prototype.
23488
23489 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
23490 integers on ARM. Reported by Timothy Baldwin
23491 <T.E.Baldwin99@members.leeds.ac.uk>.
23492
bb34586c 234932005-10-11 Marco Gerards <mgerards@xs4all.nl>
23494
23495 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
23496 allocated.
23497 (grub_sfs_dir): Likewise.
23498
9a909877 234992005-10-09 Marco Gerards <mgerards@xs4all.nl>
23500
23501 Add support for the SFS filesystem.
23502
23503 * fs/sfs.c: New file.
23504
23505 * DISTLIST: Added `fs/sfs.c'.
23506
23507 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
23508 (grub_probefs_SOURCES): Likewise.
23509 (grub_emu_SOURCES): Likewise.
23510 (pkgdata_MODULES): Add `sfs.mod'.
23511 (sfs_mod_SOURCES): New variable.
23512 (sfs_mod_CFLAGS): Likewise.
23513 (sfs_mod_LDFLAGS): Likewise.
23514
23515 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
23516 (pkgdata_MODULES): Add `sfs.mod'.
23517 (sfs_mod_SOURCES): New variable.
23518 (sfs_mod_CFLAGS): Likewise.
23519
23520 * util/grub-emu.c (main): Call `grub_sfs_init' and
23521 `grub_sfs_fini'.
23522
23523 * include/grub/fs.h (grub_sfs_init): New prototype.
23524 (grub_sfs_fini): Likewise.
23525
57bdbde3 235262005-10-07 Marco Gerards <mgerards@xs4all.nl>
23527
23528 Add support for the AFFS filesystem.
23529
23530 * fs/affs.c: New file.
23531
23532 * DISTLIST: Added `fs/affs.c'.
23533
23534 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
23535 (grub_probefs_SOURCES): Likewise.
23536 (grub_emu_SOURCES): Likewise.
23537 (pkgdata_MODULES): Add `affs.mod'.
23538 (affs_mod_SOURCES): New variable.
23539 (affs_mod_CFLAGS): Likewise.
23540 (affs_mod_LDFLAGS): Likewise.
23541
23542 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
23543 (pkgdata_MODULES): Add `affs.mod'.
23544 (affs_mod_SOURCES): New variable.
23545 (affs_mod_CFLAGS): Likewise.
23546
23547 * util/grub-emu.c (main): Call `grub_affs_init' and
23548 `grub_affs_fini'.
23549
23550 * include/grub/fs.h (grub_affs_init): New prototype.
23551 (grub_affs_fini): Likewise.
23552
047b67e0 235532005-10-01 Marco Gerards <mgerards@xs4all.nl>
23554
23555 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
23556
59b8208a 235572005-10-01 Marco Gerards <mgerards@xs4all.nl>
23558
23559 * configure.ac: Accept `x86_64' as host_cpu. In that case add
23560 `-m32' to CFLAGS.
23561
23562 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
23563 linking.
f19dbdb7 23564
59b8208a 23565 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
23566 (COMMON_LDFLAGS): New variable.
23567 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
23568 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
23569 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
23570 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
23571 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
23572 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
23573 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
23574 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
23575 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
23576 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
23577 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
23578 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
23579 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
23580 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
23581 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
23582 variables.
23583 (normal_mod_ASFLAGS): Add `-m32'.
23584
23585 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
23586 (grub_host_size_t, grub_host_ssize_t): New types.
23587 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
fe6b695a 23588 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
59b8208a 23589 `GRUB_HOST_SIZEOF_VOID_P'.
23590
23591 * include/grub/kernel.h (struct grub_module_header): Type of
23592 member offset changed to `grub_host_off_t'. Type of member size
23593 changed to `grub_host_size_t'.
23594 (struct grub_module_info): Type of member offset changed to
23595 `grub_host_off_t'. Type of member size changed to
23596 `grub_host_size_t'.
23597
b4093103 235982005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
23599
23600 Make GRUB's kernel compliant to Multiboot Specification.
f19dbdb7 23601
b4093103 23602 * kern/i386/pc/startup.S (multiboot_header): New label.
23603 (multiboot_entry): Likewise.
23604 (multiboot_trampoline): Likewise.
23605
23606 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
23607 Increased to 0x4A0.
23608
23609 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
23610 put parentheses after a question mark.
23611 [!GRUB_UTIL] (my_mod): New variable.
23612
23613 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
23614
b2499b29 236152005-09-28 Marco Gerards <mgerards@xs4all.nl>
23616
23617 Adds support for the XFS filesystem. Btrees are not supported
23618 yet.
23619
23620 * fs/xfs.c: New file.
23621
23622 * DISTLIST: Added `fs/xfs.c'.
23623
23624 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
23625 (grub_probefs_SOURCES): Likewise.
23626 (grub_emu_SOURCES): Likewise.
23627 (pkgdata_MODULES): Add `xfs.mod'.
23628 (xfs_mod_SOURCES): New variable.
23629 (xfs_mod_CFLAGS): Likewise.
23630
23631 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
23632 (pkgdata_MODULES): Add `xfs.mod'.
23633 (xfs_mod_SOURCES): New variable.
23634 (xfs_mod_CFLAGS): Likewise.
23635
23636 * util/grub-emu.c (main): Call `grub_xfs_init' and
23637 `grub_xfs_fini'.
23638
23639 * include/grub/fs.h (grub_xfs_init): New prototype.
23640 (grub_xfs_fini): Likewise.
23641
f19dbdb7 23642
83d37a62 236432005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
23644
23645 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
23646 color modes, allow greater than 16 colors to be configured as
23647 a default palette.
23648
47d2d65e 236492005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
23650
23651 * normal/completion.c (complete_arguments): Add the qualifier
23652 const into OPTIONS.
23653
23654 From Omniflux <omniflux+lists@omniflux.com>:
23655 * include/grub/terminfo.h: New file.
23656 * include/grub/tparm.h: Likewise.
23657 * include/grub/i386/pc/serial.h: Likewise.
23658 * term/terminfo.c: Likewise.
23659 * term/tparm.c: Likewise.
23660 * term/i386/pc/serial.c: Likewise.
23661 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
23662 serial.mod.
23663 (terminfo_mod_SOURCES): New variable.
23664 (terminfo_mod_CFLAGS): Likewise.
23665 (serial_mod_SOURCES): Likewise.
23666 (serial_mod_CFLAGS): Likewise.
23667
48b671ff 236682005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
23669
23670 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
23671 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
23672 and kern/powerpc/ieee1275/cmain.c, respectively.
23673
23674 * boot/powerpc/ieee1275/crt0.S: Moved to ...
23675 * kern/powerpc/ieee1275/crt0.S: ... here.
23676
23677 * boot/powerpc/ieee1275/cmain.c: Moved to ...
23678 * kern/powerpc/ieee1275/cmain.c: ... here.
f19dbdb7 23679
48b671ff 23680 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
23681 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
23682 instead of boot/powerpc/ieee1275/crt0.S and
23683 boot/powerpc/ieee1275/cmain.c, respectively.
23684
23685 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
23686 sectors. It was not used anyway.
23687
09fc77a7 236882005-08-30 Hollis Blanchard <hollis@penguinppc.org>
23689
23690 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
23691 `unused parameter' warning.
23692
003789c7 236932005-08-30 Hollis Blanchard <hollis@penguinppc.org>
23694
23695 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
23696 function.
23697 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
23698 getcharwidth.
23699
67f44c86 237002005-08-28 Marco Gerards <metgerards@student.han.nl>
23701
23702 * include/grub/normal.h (enum grub_completion_type): Added
23703 `GRUB_COMPLETION_TYPE_ARGUMENT'.
23704
23705 * normal/cmdline.c (print_completion): Handle
23706 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
23707 * normal/menu_entry.c (store_completion): Likewise.
23708
23709 * normal/completion.c (complete_arguments): New function.
23710 (grub_normal_do_completion): Call `complete_arguments' when the
23711 current words start with a dash.
23712
0b5abe02 237132005-08-27 Marco Gerards <metgerards@student.han.nl>
23714
23715 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
23716 `gzio.mod' instead of `io.mod').
23717
d9864ee1 237182005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
23719
23720 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
23721 (DISTDIRS): Added io and video.
23722 Rewrite the search routine to make an output consistently.
23723
23724 * DISTLIST: Added conf/sparc64-ieee1275.mk,
23725 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
23726 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
23727 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
23728 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
23729 util/powerpc/ieee1275/misc.c.
f19dbdb7 23730
d9864ee1 23731 * include/grub/gzio.h: New file.
23732 * io/gzio.c: Likewise.
f19dbdb7 23733
d9864ee1 23734 * kern/file.c (grub_file_close): Call grub_device_close only if
23735 FILE->DEVICE is not NULL.
23736
23737 * include/grub/mm.h [!NULL] (NULL): New macro.
23738
23739 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
23740
23741 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
23742 (pkgdata_MODULES): Added gzio.mod.
23743 (gzio_mod_SOURCES): New variable.
23744 (gzio_mod_CFLAGS): Likewise.
23745
23746 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
23747 (pkgdata_MODULES): Added gzio.mod.
23748 (gzio_mod_SOURCES): New variable.
23749 (gzio_mod_CFLAGS): Likewise.
23750
23751 * commands/cat.c: Include grub/gzio.h.
23752 (grub_cmd_cat): Use grub_gzfile_open instead of
23753 grub_file_open.
f19dbdb7 23754
d9864ee1 23755 * commands/cmp.c: Include grub/gzio.h.
23756 (grub_cmd_cmp): Use grub_gzfile_open instead of
23757 grub_file_open.
23758
23759 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
23760 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
23761 grub_file_open.
23762 (grub_rescue_cmd_module): Likewise.
23763
fa46f4b5 237642005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
23765
23766 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
23767 kern/sparc64/ieee1275/init.c because it contains _start.
23768 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
23769
e9211b5d 237702005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
23771
23772 * configure.ac: Add support for sparc64 host with ieee1275
23773 firmware.
23774 * configure: Generated from configure.ac.
23775 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
23776 instead of int.
23777 (grub_ofdisk_read): Likewise.
23778 (grub_ofdisk_open): Use %p to print pointer values, and cast the
23779 pointers as (void *) to remove a warning.
23780 (grub_ofdisk_close): Likewise.
23781 (grub_ofdisk_read): Likewise.
23782 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
23783 returns, so make it return void to remove a warning.
23784 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
23785 Corresponding prototype change.
23786 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
23787 values, and cast the pointers as (void *) to remove a warning.
23788 (grub_mm_dump): Likewise.
23789 * conf/sparc64-ieee1275.mk: New file.
23790 * conf/sparc64-ieee1275.rmk: Likewise.
23791 * include/grub/sparc64/setjmp.h: Likewise.
23792 * include/grub/sparc64/types.h: Likewise.
23793 * include/grub/sparc64/ieee1275/console.h: Likewise.
23794 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
23795 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
23796 * include/grub/sparc64/ieee1275/time.h: Likewise.
23797 * kern/sparc64/cache.c: Likewise.
23798 * kern/sparc64/dl.c: Likewise.
23799 * kern/sparc64/ieee1275/init.c: Likewise.
23800 * kern/sparc64/ieee1275/openfw.c: Likewise.
23801
385c6a92 238022005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
23803
23804 * util/console.c (grub_ncurses_putchar): If C is greater than
23805 0x7f, set C to a question mark.
23806 (grub_ncurses_getcharwidth): New function.
23807 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
23808 getcharwidth.
23809
23810 * normal/menu.c (print_entry): Made aware of Unicode. First,
23811 convert TITLE to UCS-4, and predict the cursor position by
23812 grub_getcharwidth.
23813
23814 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
23815 const to SRC.
23816 * kern/misc.c (grub_utf16_to_utf8): Likewise.
23817
16ccb8b1 238182005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
23819
23820 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
23821 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
23822 grub_strcat.
23823
23824 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
23825 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
23826 grub_strcpy and grub_strlen. Take it into account that a space
23827 character is inserted as a delimiter.
23828
6a85ce79 238292005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
23830
23831 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
fe6b695a 23832 invalid magic in the error.
6a85ce79 23833
23834 * commands/search.c: New file.
f19dbdb7 23835
6a85ce79 23836 * util/grub-emu.c (main): Call grub_search_init and
23837 grub_search_fini.
23838
23839 * kern/rescue.c (grub_rescue_print_disks): Removed.
23840 (grub_rescue_print_devices): New function.
23841 (grub_rescue_cmd_ls): Use grub_device_iterate with
23842 grub_rescue_print_devices instead of grub_disk_dev_iterate with
23843 grub_rescue_print_disks.
23844
23845 * kern/partition.c (grub_partition_iterate): Return the result of
23846 PARTMAP->ITERATE instead of GRUB_ERRNO.
23847
23848 * kern/device.c: Include grub/partition.h.
23849 (grub_device_iterate): New function.
23850
23851 * include/grub/partition.h (grub_partition_iterate): Return int
23852 instead of grub_err_t.
23853
23854 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
23855 prototype.
23856 [GRUB_UTIL] (grub_search_fini): Likewise.
23857
23858 * include/grub/device.h (grub_device_iterate): New prototype.
23859
23860 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
23861 commands/search.c.
23862 (pkgdata_MODULES): Added search.mod.
23863 (search_mod_SOURCES): New variable.
23864 (search_mod_CFLAGS): Likewise.
23865
23866 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
23867 (pkgdata_MODULES): Added search.mod.
23868 (search_mod_SOURCES): New variable.
23869 (search_mod_CFLAGS): Likewise.
23870
23871 * commands/ls.c (grub_ls_list_disks): Renamed to ...
23872 (grub_ls_list_devices): ... this, and use grub_device_iterate.
23873 All callers changed.
23874
23875 * DISTLIST: Added commands/search.c.
23876
ef095434 238772005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
23878
23879 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
23880 conversion.
23881 (grub_getcharwidth): New function.
23882
23883 * kern/misc.c (grub_utf8_to_ucs4): New function.
23884
23885 * include/grub/term.h (struct grub_term): Added a new member
23886 "getcharwidth".
23887 (grub_getcharwidth): New prototype.
23888
23889 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
23890
23891 * term/i386/pc/console.c (map_char): New function. Segregated from
23892 grub_console_putchar.
23893 (grub_console_putchar): Use map_char.
23894 (grub_console_getcharwidth): New function.
23895 (grub_console_term): Specified grub_console_getcharwidth as
23896 getcharwidth.
23897
23898 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
23899 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
23900
23901 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
23902 GRUB_ERRNO.
23903 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
23904 on grub_strtoul completely.
23905 (write_char): Declare local variables in the beginning of the
23906 function.
23907 (grub_vesafb_getcharwidth): New function.
23908 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
23909 getcharwidth.
23910
1f0a95e4 239112005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
23912
23913 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
23914 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
23915 commands/i386/pc/vbetest.c.
23916
23917 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
23918 call grub_vbe_get_controller_info again, because the returned
23919 information is volatile.
23920 (grub_vbe_set_video_mode): Mostly rewritten.
23921 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
23922 grub_vbe_status_t correctly.
23923 (grub_vbe_get_video_mode_info): Likewise.
23924 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
23925 several if statements.
23926
23927 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
23928 * commands/i386/pc/vbeinfo.c: ... this.
23929
23930 * commands/i386/pc/vbe_test.c: Renamed to ...
23931 * commands/i386/pc/vbetest.c: ... this.
23932
23933 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
23934 ...
23935 (grub_cmd_vbeinfo): ... this. Save video modes before
23936 iterating. Skip a video mode, if it is not available, not enough
23937 information is given or it is monochrome. Show the memory
23938 model. Leave the interpretation of MODEVAR to grub_strtoul
23939 completely.
23940 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
23941 (GRUB_MOD_FINI): Likewise.
23942
23943 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
23944 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
23945 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
23946 duplicated grub_env_get. Leave the interpretation of MODEVAR to
23947 grub_strtoul completely.
23948 (real2pm): Removed.
23949 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
23950 (GRUB_MOD_FINI): Likewise.
23951
23952 * normal/misc.c: Include grub/mm.h.
23953
23954 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
23955 vbe_list_modes with vbetest.mod and vbeinfo.mod.
23956 (vbe_list_modes_mod_SOURCES): Removed.
23957 (vbe_list_modes_mod_CFLAGS): Likewise.
23958 (vbe_test_mod_SOURCES): Likewise.
23959 (vbe_test_mod_CFLAGS): Likewise.
23960 (vbeinfo_mod_SOURCES): New variable.
23961 (vbeinfo_mod_CFLAGS): Likewise.
23962 (vbetest_mod_SOURCES): Likewise.
23963 (vbetest_mod_CFLAGS): Likewise.
23964
992ffbbe 239652005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
23966
23967 * normal/misc.c: New file.
23968
23969 * DISTLIST: Added normal/misc.c.
f19dbdb7 23970
992ffbbe 23971 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
23972 DISK to HOOK. Call HOOK with DISK.
23973 * partmap/apple.c (apple_partition_map_iterate): Likewise.
23974 * partmap/pc.c (pc_partition_map_iterate): Likewise.
23975 * partmap/sun.c (sun_partition_map_iterate): Likewise.
23976
23977 * normal/menu_entry.c (struct screen): Added a new member
23978 "completion_shown".
23979 (completion_buffer): New global variable.
23980 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
23981 (store_completion): New function.
23982 (complete): Likewise.
23983 (clear_completions): Likewise.
23984 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
23985 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
23986 a tab, call complete.
23987
23988 * normal/completion.c (disk_dev): Removed.
23989 (print_simple_completion): Likewise.
23990 (print_partition_completion): Likewise.
23991 (print_func): New global variable.
23992 (add_completion): Do not take the arguments WHAT or PRINT any
23993 longer. Added a new argument TYPE. Instead of printing directly,
23994 call PRINT_FUNC if not NULL.
23995 All callers changed.
23996 (complete_device): Use a local variable DEV instead of
23997 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
23998 (grub_normal_do_completion): Take a new argument HOOK. Do not
23999 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
24000 empty string, return NULL instead.
24001 All callers changed.
24002
24003 * normal/cmdline.c (print_completion): New function.
24004
24005 * kern/partition.c (grub_partition_iterate): Add an argument DISK
24006 to HOOK.
24007 All callers changed.
24008
24009 * kern/disk.c (grub_print_partinfo): Removed.
24010
24011 * include/grub/partition.h (struct grub_partition_map): Add a new
24012 argument DISK into HOOK of ITERATE.
24013 (grub_partition_iterate): Add a new argument DISK to HOOK.
24014
24015 * include/grub/normal.h (enum grub_completion_type): New enum.
24016 (grub_completion_type_t): New type.
24017 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
24018 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
24019 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
24020 (GRUB_COMPLETION_TYPE_FILE): Likewise.
24021 (grub_normal_do_completion): Added a new argument HOOK.
24022 (grub_normal_print_device_info): New prototype.
24023
24024 * include/grub/disk.h (grub_print_partinfo): Removed.
24025
24026 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
24027 (normal_mod_SOURCES): Likewise.
24028 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24029 (normal_mod_SOURCES): Likewise.
24030
24031 * commands/ls.c (grub_ls_list_disks): Use
24032 grub_normal_print_device_info instead of grub_print_partinfo. Free
24033 PNAME.
24034 (grub_ls_list_files): Use grub_normal_print_device_info instead of
24035 duplicating the code.
24036
0bd41162 240372005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
24038
24039 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
f19dbdb7 24040 follow GCS more precisely.
24041 * commands/i386/pc/vbe_test.c: Likewise.
24042 * include/grub/i386/pc/vbe.h: Likewise.
24043 * term/i386/pc/vesafb.c: Likewise.
24044 * video/i386/pc/vbe.c: Likewise.
0bd41162 24045
6323696a 240462005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
24047
24048 * DISTLIST: Added term/i386/pc/vesafb.c
24049 DISTLIST: Added video/i386/pc/vbe.c
24050 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
24051 DISTLIST: Added commands/i386/pc/vbe_test.c.
24052 * commands/i386/pc/vbe_list_modes.c: New file.
24053 * commands/i386/pc/vbe_test.c: Likewise.
24054 * term/i386/pc/vesafb.c: Likewise.
24055 * video/i386/pc/vbe.c: Likewise.
24056 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
24057 (grub_vbe_probe) Added prototype.
24058 (grub_vbe_set_video_mode) Likewise.
24059 (grub_vbe_get_video_mode) Likewise.
24060 (grub_vbe_get_video_mode_info) Likewise.
24061 (grub_vbe_set_pixel_rgb) Likewise.
24062 (grub_vbe_set_pixel_index) Likewise.
24063 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
24064 (pkgdata_MODULES): Added vesafb.mod.
24065 (pkgdata_MODULES): Added vbe_list_modes.mod.
24066 (pkgdata_MODULES): Added vbe_test.mod.
24067 (vbe_mod_SOURCES): Added.
24068 (vbe_mod_CFLAGS): Likewise.
24069 (vesafb_mod_SOURCES): Likewise.
24070 (vesafb_mod_CFLAGS): Likewise.
24071 (vbe_list_modes_mod_SOURCES): Likewise.
24072 (vbe_list_modes_mod_CFLAGS): Likewise.
24073 (vbe_test_mod_SOURCES): Likewise.
24074 (vbe_test_mod_CFLAGS): Likewise.
24075
0a74e62f 240762005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
24077
0a74e62f 24078 * normal/command.c (grub_command_execute): If INTERACTIVE is
24079 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
24080 CMDLINE. Disable the pager if INTERACTIVE is true.
24081 All callers are changed.
24082
24083 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
24084 before reading a config file.
24085 * normal/main.c (read_config_file): Even if a command is not
24086 found, register it if it is within an entry.
24087
24088 * util/grub-emu.c: Include sys/types.h and unistd.h.
24089 (options): Added --hold.
24090 (struct arguments): Added a new member "hold".
24091 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
24092 missing.
24093 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
24094 cleared by a debugger, if it is not zero.
24095
24096 * include/grub/normal.h (grub_command_execute): Add an argument
24097 INTERACTIVE.
24098
e51f85ae 240992005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
24100
24101 * DISTLIST: Added include/grub/i386/pc/vbe.h.
24102
e9c6f39b 241032005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
24104
24105 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
24106 program with another one, because the old one didn't detect a bug
24107 in gcc-3.4. Always use regparm 2, because the new test is still
24108 not enough for gcc-4.0. Someone must investigate a simple test
24109 case which detects a bug in gcc-4.0.
24110
8de3495c 241112005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
24112
24113 * DISTLIST: Added normal/completion.c.
24114
24115 * normal/completion.c: New file.
f19dbdb7 24116
8de3495c 24117 * term/i386/pc/console.c (grub_console_getwh): New function.
24118 (grub_console_term): Assign grub_console_getwh to getwh.
24119
24120 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
24121 function is defined in normal/completion.c as
24122 grub_normal_do_completion.
24123 (grub_cmdline_get): Use grub_normal_do_completion instead of
24124 grub_tab_complete.
24125
24126 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
24127 returns non-zero, otherwise return 0.
24128 (grub_partition_iterate): First, probe the partition map. Then,
24129 call ITERATE only for this partition map.
24130
24131 * kern/misc.c (grub_strncmp): Rewritten.
24132
24133 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
24134 returns non-zero. Otherwise return 0.
24135
24136 * include/grub/partition.h (grub_partition_map_iterate): Return
24137 int instead of void.
24138
24139 * include/grub/normal.h (grub_normal_do_completion): New prototype.
24140
24141 * include/grub/misc.h (grub_strncmp): Change the type of N to
24142 grub_size_t.
24143
24144 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
24145 of void.
24146
24147 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
fe6b695a 24148 unsigned explicitly before comparing it with I.
8de3495c 24149
24150 * kern/main.c (grub_env_write_root): Add the attribute unused into
24151 VAR.
24152
24153 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
24154 normal/completion.c.
24155 (normal_mod_SOURCES): Likewise.
24156 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
24157 (normal_mod_SOURCES): Likewise.
24158
24159 * normal/command.c (grub_iterate_commands): If ITERATE returns
24160 non-zero, return one immediately.
24161
e85e144b 241622005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
24163
24164 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
24165 * kern/i386/pc/startup.S: Updated Global Descriptor table's
24166 descriptions.
24167 (grub_vbe_get_controller_info): New function.
24168 (grub_vbe_get_mode_info): Likewise.
24169 (grub_vbe_set_mode): Likewise.
24170 (grub_vbe_get_mode): Likewise.
24171 (grub_vbe_set_memory_window): Likewise.
24172 (grub_vbe_get_memory_window): Likewise.
24173 (grub_vbe_set_scanline_length): Likewise.
24174 (grub_vbe_get_scanline_length): Likewise.
24175 (grub_vbe_set_display_start): Likewise.
24176 (grub_vbe_get_display_start): Likewise.
24177 (grub_vbe_set_palette_data): Likewise.
24178 * include/grub/i386/pc/vbe.h: New file.
24179
c46153d2 241802005-08-08 Hollis Blanchard <hollis@penguinppc.org>
24181
24182 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
24183 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
24184 * DISTLIST: Likewise.
24185 * kern/ieee1275/of.c: Moved to ...
24186 * kern/ieee1275/ieee1275.c: ... here.
24187
0cb90c45 241882005-08-08 Hollis Blanchard <hollis@penguinppc.org>
24189
24190 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
24191 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
24192 Pass 0 as `end' parameter to grub_strtoul().
24193
a19fb360 241942005-08-08 Hollis Blanchard <hollis@penguinppc.org>
24195
24196 * include/grub/powerpc/ieee1275/console.h: Do not include
24197 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
24198 ifdef.
24199 (grub_console_cur_color): Remove i386-specific prototype.
24200 (grub_console_real_putchar): Likewise.
24201 (grub_console_checkkey): Likewise.
24202 (grub_console_getkey): Likewise.
24203 (grub_console_getxy): Likewise.
24204 (grub_console_gotoxy): Likewise.
24205 (grub_console_cls): Likewise.
24206 (grub_console_setcursor): Likewise.
24207 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
24208 Include <grub/machine/console.h>.
24209 * term/ieee1275/ofconsole.c: Likewise.
24210
4ac9bd04 242112005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
24212
24213 * Makefile.in (LIBLZO): New variable.
24214
24215 * configure.ac: Check for LZO version 2.
24216
24217 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
24218 lzo/lzo1x.h instead of lzo1x.h.
24219
24220 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
24221 of -llzo.
24222
24223 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
24224 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
24225
24226 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
24227 copying the data from PARTITION to P.
24228
f4917dfd 242292005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
24230
24231 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
24232 negative, unload the module.
24233
24234 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
24235 map is "pc_partition_map" but not "pc".
24236 (usage): Fix the description. The options are --boot-image and
24237 --core-image but not --boot-file or --core-file.
24238 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
24239 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
24240 DEFAULT_DIRECTORY.
24241
24242 * util/i386/pc/grub-install.in: Do not specify --boot-file or
24243 --core-file. Specify INSTALL_DEVICE as an argument.
24244
24245 * util/console.c: Include config.h.
24246 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
24247 [HAVE_NCURSES_H]: Include ncurses.h.
24248 [HAVE_CURSES_H]: Include curses.h.
24249 [!A_NORMAL] (A_NORMAL): Defined as zero.
24250 [!A_STANDOUT] (A_STANDOUT): Likewise.
24251
24252 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
24253 -lncurses.
24254 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
24255
24256 * configure.ac: Check for curses libraries and headers.
24257
24258 * Makefile.in (LIBCURSES): New variable.
24259
24260 * genmk.rb (Script::rule): Set the executable bits.
24261
24262 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
24263 name of the PC partition map is "pc_partition_map" but not "pc".
24264
0e143073 242652005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
24266
24267 * util/i386/pc/grub-install.in (grub_probefs): New variable.
24268 (modules): Likewise.
24269 (usage): Added descriptions for --modules and --grub-probefs.
24270 Handle --modules and --grub-probefs. Save the arguments in MODULES
24271 and GRUB_PROBEFS, respectively.
24272 Auto-detect a filesystem module against GRUBDIR. If the result is
24273 empty and modules are not specified explicitly, abort the
24274 installation. Add the result to MODULES.
24275
24276 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
24277 disk/powerpc/ieee1275/ofdisk.c,
24278 include/grub/powerpc/ieee1275/init.h and
24279 term/powerpc/ieee1275/ofconsole.c.
24280 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
24281 term/ieee1275/ofconsole.c.
24282
24283 * include/grub/powerpc/ieee1275/console.h: Resurrected.
24284
24285 * COPYING: Upgraded to the latest version. Only the address of the
24286 FSF office has changed.
f19dbdb7 24287
efd6e6d5 242882005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
24289
24290 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
24291 kern/ieee1275.c with kern/ieee1275/of.c.
24292
24293 * kern/ieee1275.c: Moved to ...
24294 * kern/ieee1275/of.c: ... here.
24295
8ceafda2 242962005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
24297
24298 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
fe6b695a 24299 readability.
8ceafda2 24300
24301 * config.guess: Updated to the latest version from gnulib.
24302 * config.sub: Likewise.
24303 * install.sh: Likewise.
24304 * mkinstalldirs: Likewise.
24305
24306 * include/grub/console.h: Removed. This file is arch-specific. Do
24307 not put this in include/grub.
24308
24309 * include/grub/i386/pc/console.h: Resurrected.
24310
24311 * util/console.c: Include grub/machine/console.h instead of
24312 grub/console.h.
24313 * util/grub-emu.c: Likewise.
24314
267f6cd9 243152005-08-04 Marco Gerards <metgerards@student.han.nl>
24316
24317 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
24318 hardcoded value.
f19dbdb7 24319
267f6cd9 24320 From Vincent Pelletier <subdino2004@yahoo.fr>
24321 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
24322 Redefined to use grub_getwh.
24323 (grub_term): New member named getwh.
24324 (grub_getwh): New prototype.
24325 * kern/term.c (grub_getwh): New function.
24326 * term/i386/pc/console.c (grub_console_getwh): New function.
24327 (grub_console_term): New member `getwh'.
24328 * term/i386/pc/vga.c (grub_vga_getwh): New function.
24329 (grub_vga_term): New member `getwh'.
0b5abe02 24330 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
267f6cd9 24331 grub_ssize_t.
24332 (grub_ofconsole_getw): New function.
24333 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
24334 (grub_ofconsole_term): New field named getwh and new initial
24335 value.
24336
3be7266d 243372005-08-03 Hollis Blanchard <hollis@penguinppc.org>
24338
24339 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
24340 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
24341 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
24342 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
24343 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
24344 of <grub/machine/ieee1275.h>.
24345 * commands/ieee1275/reboot.c: Likewise.
24346 * boot/powerpc/ieee1275/ieee1275.c: Move ...
24347 * kern/ieee1275.c: ... to here. All users updated. Change all
24348 parameter structs to use new type `grub_ieee1275_cell_t'.
24349 * term/powerpc/ieee1275/ofconsole.c: Move ...
24350 * term/ieee1275/ofconsole.c: ... to here. All users updated.
24351 * disk/powerpc/ieee1275/ofdisk.c: Move ...
24352 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
24353 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
24354 to return int.
24355 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
24356 Remove unused prototypes. All users updated.
24357 * include/grub/powerpc/ieee1275/console.h: Removed.
24358 * include/grub/powerpc/ieee1275/ieee1275.h: Define
24359 `grub_ieee1275_cell_t'.
24360 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
24361 Cast comparisons with -1 to the correct type.
24362 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
24363 type to match `grub_ieee1275_entry_fn'.
24364
8b5f3938 243652005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
24366
24367 * DISTLIST: Added util/i386/pc/grub-probefs.c.
24368
24369 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
24370 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
24371 partmap/sun.c.
24372 (grub_probefs_SOURCES): New variable.
24373
24374 * util/i386/pc/grub-probefs.c: New file.
24375
24376 * util/i386/pc/grub-setup.c (main): Call
24377 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
24378 grub_hfs_init and grub_jfs_init to initialize the system. Call
24379 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
24380 grub_pc_partition_map_fini to finish the system.
24381
ea409713 243822005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
24383
24384 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
24385 function.
24386 (grub_multiboot_load_elf32): Likewise.
24387 (grub_multiboot_is_elf64): Likewise.
24388 (grub_multiboot_load_elf64): Likewise.
24389 (grub_multiboot_load_elf): Likewise.
24390 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
24391 an ELF32 or ELF64 file.
24392 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
24393
24394 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
24395 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
24396 NULL before calling FS->LABEL.
24397 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
24398 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
24399 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
24400 before calling FS->LABEL.
24401
141a288b 244022005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
24403
24404 * util/i386/pc/grub-install.in (datadir): New variable.
24405 (libdir): Removed.
24406 (pkgdatadir): New variable.
24407 (pkglibdir): Removed.
24408
0d5f8a54 244092005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
24410
24411 * DISTLIST: Added util/i386/pc/grub-install.in.
24412
24413 * util/i386/pc/grub-install.in: New file.
24414
24415 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
24416 (grub_install_SOURCES): Likewise.
24417
24418 * genmk.rb: Added support for scripts.
24419 (Script): New class.
24420 (scripts): New variable.
24421
24422 * Makefile.in (install-local): Install sbin_SCRIPTS by
24423 INSTALL_SCRIPT.
24424 (uninstall): Remove sbin_SCRIPTS.
24425
24426 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
24427 device, try to get a GRUB device by
24428 grub_util_biosdisk_get_grub_dev.
24429 Free DEST_DEV.
24430
24431 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
24432 description for --device-map.
24433
5f968e1e 244342005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
24435
24436 Change the semantics of variable hooks. They now return strings
24437 instead of error values.
f19dbdb7 24438
5f968e1e 24439 * util/i386/pc/grub-setup.c: Include grub/env.h.
24440 (setup): Use grub_device_set_root instead of grub_env_set.
24441
24442 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
24443 grub_env_get instead of grub_device_set_root and
24444 grub_device_get_root, respectively.
24445
24446 * kern/main.c (grub_env_write_root): New function.
24447 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
24448 grub_env_set instead of grub_device_set_root.
24449
24450 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
24451 many variables.
24452 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
24453 rather than calling ENV->WRITE_HOOK afterwards.
24454 (grub_env_get): Return the result of ENV->READ_HOOK rather than
24455 passing a pointer of a pointer.
24456 (grub_register_variable_hook): Change the types of "read_hook" and
24457 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
24458 respectively.
24459 Allocate the default empty string on the heap, because this string
24460 may be freed later.
24461
24462 * kern/device.c: Include grub/env.h.
24463 (grub_device_set_root): Removed.
24464 (grub_device_get_root): Likewise.
24465 (grub_device_open): Use grub_env_get instead of
24466 grub_device_get_root.
24467
24468 * include/grub/env.h (grub_env_read_hook_t): New type.
24469 (grub_env_write_hook_t): Likewise.
24470 (grub_env_var): Change the types of "read_hook" and "write_hook"
24471 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
24472 (grub_register_variable_hook): Likewise.
24473
24474 * include/grub/device.h (grub_device_set_root): Removed.
24475 (grub_device_set_root): Likewise.
24476
24477 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
24478 make sure that DIRNAME terminates with '/', so that
24479 grub_fat_find_dir will fail if PATH is not a directory.
24480
24481 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
24482 from DIRNAME.
24483 Use the qualifier auto for print_files and print_files_long.
24484 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
24485 as a regular file.
24486 Put a newline only if there is no error.
24487 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
24488 used.
24489
896f0afd 244902005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
24491
24492 * kern/partition.c (grub_partition_probe): Initialize PART to
24493 NULL. Otherwise, when no partition map is registered, this returns
24494 a garbage.
24495
b28b81b2 244962005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
24497
24498 * partmap/apple.c (apple_partition_map_iterate): Check if POS
24499 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
24500 valid.
24501
5f3607e0 245022005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
24503
24504 * commands/ls.c (grub_ls_list_disks): Print the filesystem
24505 information on each device, if it does not have partitions. Print
24506 "Device" instead of "Disk", because this function is not specific
24507 to disk devices.
24508
24509 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
24510 static to ensure that it is put on the memory rather than a
24511 register.
24512
502c87e8 245132005-07-17 Yoshinori Okuji <okuji@enbug.org>
24514
24515 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
24516 (grub_cat_init): Likewise.
24517 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
24518 (options): Likewise.
24519 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
24520 (grub_configfile_init): Likewise.
24521 * font/manager.c (GRUB_MOD_INIT): Likewise.
24522 * commands/help.c (GRUB_MOD_INIT): Likewise.
24523 (grub_help_init): Likewise.
24524 * normal/command.c (grub_command_init): Likewise.
24525 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
24526 * disk/loopback.c (grub_loop_init): Likewise.
24527 (GRUB_MOD_INIT): Likewise.
24528 * commands/ls.c (grub_ls_init): Likewise.
24529 (GRUB_MOD_INIT): Likewise.
24530 (options): Likewise.
24531 * commands/boot.c (grub_boot_init): Likewise.
24532 (GRUB_MOD_INIT): Likewise.
24533 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
24534 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
24535 (GRUB_MOD_INIT): Likewise.
24536 * commands/cmp.c (grub_cmp_init): Likewise.
24537 (GRUB_MOD_INIT): Likewise.
24538
24539 * normal/arg.c: Use <> instead of "" to include header files.
24540 (SHORT_ARG_HELP): New macro.
24541 (SHORT_ARG_USAGE): Likewise.
24542 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
24543 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
24544 descriptions.
24545 (find_short): Check if C is 'h' or 'u' explicitly.
24546 (grub_arg_show_help): Use space characters instead of tabs. Treat
24547 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
24548 are shown with --help and --usage only if they are not used for
24549 the command itself.
24550 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
24551 'h' and 'u'.
24552
24553 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
24554 const into "longarg". Change the type of "shortarg" to int.
24555
f806d18e 245562005-07-17 Yoshinori Okuji <okuji@enbug.org>
24557
24558 * boot/i386/pc/boot.S (boot_drive_check): New label.
24559
24560 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
24561 macro.
24562
24563 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
24564 which do not pass a boot drive correctly. Copied from GRUB Legacy.
24565
e293232b 245662005-07-17 Yoshinori Okuji <okuji@enbug.org>
24567
24568 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
24569 When turning off Gate A20, skip the check and return immediately,
24570 because this is not fatal usually.
24571
ebedfd00 245722005-07-17 Yoshinori Okuji <okuji@enbug.org>
24573
24574 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
24575 be 0x7C00 instead of 0x8000.
24576
24577 * boot/i386/pc/pxeboot.S: Rewritten.
24578
24579 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
24580 EXT_C.
24581 (gate_a20_check_state): Read a byte from 0x108000. Invert the
24582 result.
24583
654fc59f 245842005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
24585
24586 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
24587 robustness. This routine now supports a BIOS call and System
24588 Control Port A to modify the gate A20.
24589
24590 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
24591 Increased to 0x440.
24592
09f9923f 245932005-07-12 Hollis Blanchard <hollis@penguinppc.org>
24594
24595 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
24596 device path and resulting ihandle.
24597 (grub_ofdisk_close): dprintf the ihandle being closed.
24598 (grub_ofdisk_read): dprintf function parameters.
24599 * kern/mm.c (grub_mm_init_region): Likewise.
24600 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
24601 (grub_linux_boot): dprintf the Linux entry point, initrd address and
24602 size, and boot arguments.
24603 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
24604 before loading into memory.
24605 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
24606 before loading into memory.
24607
7ef504d8 246082005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
24609
24610 * kern/mm.c: Added much documentation.
24611 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
24612 8, set to 5 instead of 8.
24613
e0f050c2 246142005-07-10 Yoshinori Okuji <okuji@enbug.org>
24615
24616 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
24617
24618 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
24619 (grub_mkdevicemap_SOURCES): New variable.
24620
24621 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
24622 lib/device.c of GRUB Legacy.
24623
7224189a 246242005-07-10 Yoshinori Okuji <okuji@enbug.org>
24625
24626 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
24627 instead of PATH is NULL.
24628
68c864eb 246292005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
24630
24631 * commands/cmp.c (BUFFER_SIZE): New macro.
24632 (grub_cmd_cmp): Close the right file at the right time. Compare
24633 only data just read. Don't report files of different size as
24634 identical. Dynamically allocate buffers. Move variable
24635 declarations at the beginning of function.
24636
e6f3e614 246372005-07-09 Yoshinori Okuji <okuji@enbug.org>
24638
24639 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
24640 reverse.
24641
f8f1559a 246422004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
24643
24644 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
24645 when backspace is pressed at beginning of line.
24646
39c9d41d 246472005-07-03 Yoshinori Okuji <okuji@enbug.org>
24648
24649 * DISTLIST: Added genfslist.sh.
24650
24651 * normal/main.c (fs_module_list): New variable.
24652 (autoload_fs_module): New function.
24653 (read_fs_list): Likewise.
24654 (grub_normal_execute): Call read_fs_list.
24655
24656 * kern/fs.c (grub_fs_autoload_hook): New variable.
24657 (grub_fs_probe): Added support for auto-loading.
24658
24659 * include/grub/normal.h (struct grub_fs_module_list): New struct.
24660 (grub_fs_module_list_t): New type.
24661
24662 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
24663 (grub_fs_autoload_hook): New prototype.
24664
24665 * genfslist.sh: New file.
f19dbdb7 24666
39c9d41d 24667 * genmk.rb: Added a rule to generate a filesystem list.
24668
121c1d83 246692005-06-30 Marco Gerards <metgerards@student.han.nl>
24670
24671 * configure.ac: Fix the test for cross-compiling.
24672
24673 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
24674 define GRUB_UTIL anymore.
24675
24676 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
24677 so this function works on other systems than just big endian.
24678 (load_modules): Likewise.
24679 (add_segments): Likewise.
24680
e75d76e1 246812005-06-23 Hollis Blanchard <hollis@penguinppc.org>
24682
24683 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
24684 contains `l' modifier, get a long from va_arg().
24685
50b5a0a7 246862005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
24687
24688 * kern/mm.c (grub_free): If the next free block which is being
24689 merged is the first free block, set the first block to the block
24690 being freed.
24691 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
24692
89371b20 246932005-05-08 Hollis Blanchard <hollis@penguinppc.org>
24694
24695 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
24696 `grub_ieee1275_chosen'.
24697
168d6e58 246982005-05-08 Hollis Blanchard <hollis@penguinppc.org>
24699
24700 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
24701 (grub_ieee1275_chosen): New variable.
24702 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
24703 `chosen'.
24704 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
24705 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
24706 Rename first argument to `phandle' for consistency.
24707 (grub_ieee1275_get_property_length): Likewise.
24708 (grub_ieee1275_next_property): Likewise. Change type of first argument
24709 to grub_ieee1275_phandle_t.
24710 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
24711 Move export next to declaration.
24712 (grub_ieee1275_chosen): New variable.
24713 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
24714 Correct cosmetic typo.
24715 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
24716 `grub_ieee1275_chosen'.
24717 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
24718 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
24719 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
24720 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
24721 `grub_ieee1275_chosen'.
24722
ca5baa3f 247232005-05-10 Hollis Blanchard <hollis@penguinppc.org>
24724
24725 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
24726 /chosen/bootargs.
24727 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
24728 /chosen/bootargs as "variable=value" pairs.
24729
708b345f 247302005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
24731
24732 * include/grub/misc.h (grub_dprintf): New macro.
24733 (grub_real_dprintf): New prototype.
24734 (grub_strword): Likewise.
24735 (grub_iswordseparator): Likewise.
24736 * kern/misc.c (grub_real_dprintf): New function.
24737 (grub_strword): Likewise.
24738 (grub_iswordseparator): Likewise.
24739
f4c5e67c 247402005-04-30 Hollis Blanchard <hollis@penguinppc.org>
24741
24742 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
24743 (roundup): Remove macro.
24744 (grub_ieee1275_flags): Make static.
24745 (grub_ieee1275_realmode): Remove.
24746 (grub_ieee1275_test_flag): New function.
24747 (grub_ieee1275_set_flag): Likewise.
24748 (find_options): Rename to `grub_ieee1275_find_options'; update
24749 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
24750 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
24751 (cmain): New prototype.
24752 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
24753 `grub_ieee1275_flags' directly.
24754 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
24755 machine/biosdisk.h.
24756 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
24757 Don't include grub/machine/init.h.
24758 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
24759 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
24760 Remove prototype.
24761 (grub_ieee1275_realmode): Likewise.
24762 (grub_ieee1275_flag): New enum.
24763 (grub_ieee1275_test_flag): New prototype.
24764 (grub_ieee1275_set_flag): New prototype.
24765 * include/grub/powerpc/ieee1275/init.h: Remove file.
24766 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
24767 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
24768 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
24769 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
24770 comment.
24771 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
24772 `grub_ieee1275_test_flag'.
24773 (grub_ieee1275_encode_devname): Likewise.
24774
ed16607e 247752005-04-21 Hollis Blanchard <hollis@penguinppc.org>
24776
24777 * include/grub/powerpc/ieee1275/ieee1275.h
24778 (grub_ieee1275_encode_devname): New prototype.
24779 (grub_ieee1275_get_filename): Likewise.
24780 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
24781 function.
24782 (grub_set_prefix): Likewise.
24783 (grub_machine_init): Call grub_set_prefix.
24784 * kern/powerpc/ieee1275/openfw.c: Fix typos.
24785 (grub_parse_type): New enum.
24786 (grub_ieee1275_get_devargs): New function.
24787 (grub_ieee1275_get_devname): Likewise.
24788 (grub_ieee1275_parse_args): Likewise.
24789 (grub_ieee1275_get_filename): Likewise.
24790 (grub_ieee1275_encode_devname): Likewise.
24791
be369920 247922005-03-30 Marco Gerards <metgerards@student.han.nl>
24793
24794 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
24795 `grub_loader_unset'.
24796
a5ce3a4a 247972005-03-26 Hollis Blanchard <hollis@penguinppc.org>
24798
24799 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
24800 instead of grub_ieee1275_interpret.
24801 (grub_halt_init): New function.
24802 (grub_halt_fini): Likewise.
24803 (GRUB_MOD_INIT): Correct message grammar.
24804 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
24805 instead of grub_ieee1275_interpret.
24806 (grub_reboot_init): New function.
24807 (grub_reboot_fini): Likewise.
24808 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
24809 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
24810 util/i386/pc/misc.c with commands/ieee1275/halt.c,
24811 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
24812 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
24813 function.
24814 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
24815 Add prototype.
24816 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
24817 prototype.
24818 (grub_halt): Likewise.
24819 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
24820 (cmain): Remove __attribute__((unused)).
24821 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
24822 (grub_heap_len): Likewise.
24823 (grub_machine_fini): New function.
24824 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
24825 (grub_halt): Likewise.
24826 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
24827 function.
24828 * util/powerpc/ieee1275/misc.c: New file.
24829
0058f771 248302005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
24831
24832 * DISTLIST: New file.
24833 * gendistlist.sh: Likewise.
f19dbdb7 24834
0058f771 24835 * Makefile.in (COMMON_DISTFILES): Removed.
24836 (BOOT_DISTFILES): Likewise.
24837 (CONF_DISTFILES): Likewise.
24838 (DISK_DISTFILES): Likewise.
24839 (FS_DISTFILES): Likewise.
24840 (INCLUDE_DISTFILES): Likewise.
24841 (KERN_DISTFILES): Likewise.
24842 (LOADER_DISTFILES): Likewise.
24843 (TERM_DISTFILES): Likewise.
24844 (UTIL_DISTFILES): Likewise.
24845 (DISTFILES): Likewise.
24846 (uninstall): Uninstall files in $(pkgdata_DATA).
24847 (DISTLIST): New target.
24848 (distdir): Use the contents of the file DISTLIST to get a list of
24849 distributed files.
24850
46b3b8a5 248512005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
24852
24853 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
24854 descriptor. This is ported from GRUB Legacy.
24855
24856 * gencmdlist.sh: Added an extra semicolon to make it work with
24857 old sed versions. Reported by Robert Bihlmeyer
24858 <robbe@orcus.priv.at>.
24859
5822ff87 248602005-03-08 Yoshinori Okuji <okuji@enbug.org>
24861
24862 Automatic loading of commands is supported.
f19dbdb7 24863
5822ff87 24864 * normal/main.c (read_command_list): New function.
24865 (grub_normal_execute): Call read_command_list.
24866
24867 * normal/command.c (grub_register_command): Return zero or CMD.
24868 Allocate CMD->NAME from the heap.
24869 Initialize CMD->MODULE_NAME to zero.
24870 Find the same name as well. If the same command is found and it is
24871 a dummy command, overwrite members. If it is not a dummy command,
24872 return zero.
24873 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
24874 (grub_command_find): If a dummy command is found, load a module
24875 and retry to find a command only once.
24876
24877 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
24878 make sure that each command is loaded.
24879
24880 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
24881 macro.
24882 (struct grub_command): Remove const from the member `name'.
24883 Add a new member `module_name'.
24884 (grub_register_command): Return grub_command_t.
24885
24886 * commands/help.c (grub_cmd_help): Call grub_command_find to make
24887 sure that each command is loaded.
24888
24889 * genmk.rb (PModule::rule): Specify a module name without the
24890 suffix ".mod" to gencmdlist.sh.
24891
7b1f4b57 248922005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
24893
24894 * gencmdlist.sh: New file.
f19dbdb7 24895
7b1f4b57 24896 * genmk.rb (PModule::rule): Generate a rule for a command list.
24897 Clean command.lst.
24898 Generate command.lst from $(COMMANDFILES).
24899
24900 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
24901 (DATA): Added $(pkgdata_DATA).
24902 (install-local): Install files in $(pkgdata_DATA).
24903
062aaf39 249042005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
24905
24906 * term/i386/pc/vga.c (debug_command): Removed.
24907 (GRUB_MOD_INIT): Do not register the command "debug".
24908
24909 From Hollis Blanchard:
24910 * commands/configfile.c: New file.
24911 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
24912 commands/configfile.c.
24913 (pkgdata_MODULES): Added configfile.mod.
24914 (configfile_mod_SOURCES): New variable.
24915 (configfile_mod_CFLAGS): Likewise.
24916 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
24917 commands/configfile.c.
24918 (pkgdata_MODULES): Added configfile.mod.
24919 (configfile_mod_SOURCES): New variable.
24920 (configfile_mod_CFLAGS): Likewise.
24921 * util/grub-emu.c (main): Call grub_configfile_init and
24922 grub_configfile_fini.
24923 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
24924 prototype.
24925 [GRUB_UTIL] (grub_configfile_fini): Likewise.
f19dbdb7 24926
cee01aa6 249272005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
24928
24929 * normal/arg.c (grub_arg_show_help): Do not show the bug report
24930 address.
24931
24932 * commands/help.c (grub_cmd_help): Do not print newlines after
24933 the last command in print_command_help.
24934
93f3a1d8 249352005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
24936
24937 * commands/default.h: New file.
24938 * commands/timeout.h: Likewise.
24939 * normal/context.c: Likewise.
f19dbdb7 24940
93f3a1d8 24941 * util/misc.c: Do not include sys/times.h.
24942 Include sys/time.h and grub/machine/time.h.
24943 (grub_get_rtc): Rewritten with gettimeofday.
24944
24945 * util/grub-emu.c (main): Call grub_default_init and
24946 grub_timeout_init before grub_normal_init, and call
24947 grub_timeout_fini and grub_default_fini after grub_main.
24948
24949 * util/console.c (grub_ncurses_checkkey): Return the read
24950 character or -1.
24951
24952 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
24953 timeouts.
24954
24955 * normal/main.c (read_config_file): Push MENU. If this fails,
24956 print an error and wait for a user input.
24957 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
24958 If a menu is empty or an error occurs, pop MENU.
24959 (grub_normal_execute): Pop and free MENU after grub_menu_run
24960 returns.
24961
24962 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
24963
24964 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
24965 include time.h.
24966 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
24967 without GRUB_UTIL.
24968 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
24969 time.h.
24970 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
24971 without GRUB_UTIL.
24972
24973 * include/grub/normal.h (struct grub_menu_list): New struct.
24974 (grub_menu_list_t): New type.
24975 (struct grub_context): New struct.
24976 (grub_context_t): New type.
24977 (grub_register_command): Got rid of EXPORT_FUNC.
24978 (grub_unregister_command): Likewise.
24979 (grub_context_get): New prototype.
24980 (grub_context_get_current_menu): Likewise.
24981 (grub_context_push_menu): Likewise.
24982 (grub_context_pop_menu): Likewise.
24983 [GRUB_UTIL] (grub_default_init): Likewise.
24984 [GRUB_UTIL] (grub_default_fini): Likewise.
24985 [GRUB_UTIL] (grub_timeout_init): Likewise.
24986 [GRUB_UTIL] (grub_timeout_fini): Likewise.
24987
24988 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
24989 commands/timeout.c and normal/context.c.
24990 (pkgdata_MODULES): Added default.mod and timeout.mod.
24991 (normal_mod_SOURCES): Added normal/context.c.
24992 (default_mod_SOURCES): New variable.
24993 (default_mod_CFLAGS): Likewise.
24994 (timeout_mod_SOURCES): Likewise.
24995 (timeout_mod_CFLAGS): Likewise.
24996 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
24997 conf/i386-pc.rmk.
24998 (pkgdata_MODULES): Added default.mod and timeout.mod.
24999 (normal_mod_SOURCES): Added normal/context.c.
25000 (default_mod_SOURCES): New variable.
25001 (default_mod_CFLAGS): Likewise.
25002 (timeout_mod_SOURCES): Likewise.
25003 (timeout_mod_CFLAGS): Likewise.
25004
25005 * Makefile.in (all-local): Added $(MKFILES).
25006
4ed2e1dd 250072005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
25008
25009 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
25010 (grub_emu_SOURCES): Likewise.
25011 (pkgdata_MODULES): Add `sun.mod'.
25012 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
25013 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
25014 `partmap/sun.c'.
25015 (pkgdata_MODULES): Add `sun.mod'.
25016 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
25017 * include/grub/partition.h (grub_sun_partition_map_init): New
25018 prototype.
25019 (grub_sun_partition_map_fini): Likewise.
25020 * partmap/sun.c: New file.
25021 * util/grub-emu.c (main): Initialize and de-initialize the sun
25022 partitionmap support.
25023
4d4e372e 250242005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
25025
25026 This implements an Emacs-like menu entry editor.
f19dbdb7 25027
4d4e372e 25028 * normal/menu_entry.c: New file.
f19dbdb7 25029
4d4e372e 25030 * util/console.c (grub_ncurses_putchar): Translate some Unicode
25031 characters to ASCII.
25032 (saved_char): New variable.
25033 (grub_ncurses_checkkey): Rewritten completely.
25034 (grub_ncurses_getkey): Likewise.
25035 (grub_ncurses_init): Call raw instead of cbreak.
25036
25037 * normal/menu.c (print_entry): Do not put a space.
25038 (init_page): Renamed to ...
25039 (grub_menu_init_page): ... this. All callers changed.
25040 (edit_menu_entry): Removed.
25041 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
25042
25043 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
25044
25045 * kern/misc.c (grub_vprintf): Call grub_refresh.
25046
25047 * normal/menu.c (DISP_LEFT): Renamed to ...
25048 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
25049 * normal/menu.c (DISP_UP): Renamed to ...
25050 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
25051 * normal/menu.c (DISP_RIGHT): Renamed to ...
25052 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
25053 * normal/menu.c (DISP_DOWN): Renamed to ...
25054 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
25055 * normal/menu.c (DISP_HLINE): Renamed to ...
25056 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
25057 * normal/menu.c (DISP_VLINE): Renamed to ...
25058 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
25059 * normal/menu.c (DISP_UL): Renamed to ...
25060 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
25061 * normal/menu.c (DISP_UR): Renamed to ...
25062 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
25063 * normal/menu.c (DISP_LL): Renamed to ...
25064 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
25065 * normal/menu.c (DISP_LR): Renamed to ...
25066 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
25067 * normal/menu.c (TERM_WIDTH): Renamed to ...
25068 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
25069 * normal/menu.c (TERM_HEIGHT): Renamed to ...
25070 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
25071 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
25072 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
25073 * normal/menu.c (TERM_MARGIN): Renamed to ...
25074 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
25075 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
25076 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
25077 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
25078 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
25079 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
25080 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
25081 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
25082 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
25083 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
25084 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
25085 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
25086 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
25087 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
25088 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
25089 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
25090 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
25091 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
25092 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
25093 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
25094 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
25095 All callers changed.
25096
25097 * include/grub/normal.h: New prototype.
25098
25099 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
25100 normal/menu_entry.c.
25101 (normal_mod_SOURCES): Likewise.
25102 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
25103 (normal_mod_SOURCES): Likewise.
25104
e6b92c8a 251052005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
25106
25107 * include/grub/normal.h (grub_halt_init): New prototype.
25108 (grub_halt_fini): Likewise.
25109 (grub_reboot_init): Likewise.
25110 (grub_reboot_fini): Likewise.
25111
25112 * util/grub-emu.c: Include signal.h.
25113 (main_env): New global variable.
25114 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
25115 catch C-c.
25116 (grub_machine_fini): New function.
25117 (main): Call grub_halt_init and grub_reboot_init before
25118 grub_main, and grub_reboot_fini and grub_halt_fini after it.
25119 Call setjmp with MAIN_ENV to go back afterwards.
25120 Call grub_machine_fini right before return.
25121
25122 * include/grub/util/misc.h: Include setjmp.h.
25123 (main_env): New prototype.
25124
25125 * include/grub/kernel.h (grub_machine_fini): New prototype.
25126 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
25127 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
25128
25129 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
25130 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
25131 * term/i386/pc/console.c (grub_console_fini): Likewise.
f19dbdb7 25132
e6b92c8a 25133 * util/i386/pc/misc.c: New file.
f19dbdb7 25134
e6b92c8a 25135 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
25136 util/i386/pc/misc.c, commands/i386/pc/halt.c and
25137 commands/i386/pc/reboot.c.
25138
c642636f 251392005-02-14 Guillem Jover <guillem@hadrons.org>
25140
25141 * include/grub/dl.h (grub_dl_check_header): New prototype.
25142 (grub_arch_dl_check_header): Change return type to grub_err_t,
25143 remove size parameter and export function. Update all callers.
25144 * kern/dl.c (grub_dl_check_header): New function.
25145 (grub_dl_load_core): Use `grub_dl_check_header' instead of
25146 `grub_arch_dl_check_header'. Check ELF type. Check if sections
25147 are inside the core.
25148 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
25149 independent ELF header checks.
25150 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
25151 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
25152 `grub_dl_check_header' instead of explicit checks. Check for the
25153 ELF type.
25154 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
25155 `grub_dl_check_header' instead of explicit checks. Remove arch
25156 specific ELF header checks.
25157
e6b92c8a 25158 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
25159 argument SIZE.
25160
5eabe94b 251612005-02-13 Hollis Blanchard <hollis@penguinppc.org>
25162
25163 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
25164 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
25165
1b14a681 251662005-02-12 Hollis Blanchard <hollis@penguinppc.org>
25167
25168 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
f19dbdb7 25169 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
1b14a681 25170 (part_map_iterate): Clear `grub_errno' and return 0 if
f19dbdb7 25171 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
1b14a681 25172 * partmap/amiga.c (amiga_partition_map_iterate): Return
25173 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
25174 * partmap/apple.c (apple_partition_map_iterate): Likewise.
25175
aca108aa 251762005-02-01 Guillem Jover <guillem@hadrons.org>
25177
25178 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
25179 help info.
25180
c9f9c556 251812005-01-31 Marco Gerards <metgerards@student.han.nl>
25182
25183 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
25184 Removed prototype.
25185 (grub_rescue_cmd_linux): New prototype.
25186 (grub_rescue_cmd_initrd): Likewise.
25187 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
25188 `bi_rec'.
25189 (grub_linux_release_mem): Release the memory for the initrd.
25190 (grub_load_linux): Renamed from this...
25191 (grub_rescue_cmd_linux): ...To this. Changed all callers.
25192 Changed `entry' not to be static. Loop over memory regions to
25193 find another one when the default fails.
25194 (grub_rescue_cmd_initrd): New function.
25195 (grub_linux_init): Remove function.
25196 (grub_linux_fini): Likewise.
25197 (GRUB_MOD_INIT): Register `initrd'.
25198 (GRUB_MOD_FINI): Unregister `initrd'.
25199 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
25200 Function removed.
25201 (grub_linux_normal_fini): Likewise.
25202 (GRUB_MOD_INIT): Register `initrd'.
25203 (GRUB_MOD_FINI): Unregister `initrd'.
25204
990cf3aa 252052005-01-31 Marco Gerards <metgerards@student.han.nl>
25206
25207 * commands/help.c: New file.
25208 * normal/arg.c (show_help): Renamed to...
25209 (grub_arg_show_help): ... this.
25210 * commands/i386/pc/halt.c: New file.
25211 * commands/i386/pc/reboot.c: Likewise.
25212 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
25213 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
25214 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
25215 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
25216 variables.
25217 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
25218 `commands/help.c'.
25219 (pkgdata_MODULES): Add `help.mod'.
25220 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
25221 * grub/i386/pc/init.h (grub_reboot): New prototype.
25222 (grub_halt): Likewise.
25223 * include/grub/normal.h (grub_arg_show_help): New prototype.
25224 (grub_help_init): Likewise.
25225 (grub_help_fini): Likewise.
25226 * util/grub-emu.c (main): Initialize and deinitialize the help
25227 command.
25228
25229 * normal/cmdline.c (grub_cmdline_get): Doc fix.
25230
25231 * normal/command.c (grub_command_init): Fixed the description of
25232 the `set' and `unset' commands.
25233
252342005-01-31 Marco Gerards <metgerards@student.han.nl>
0f79cdc1 25235
25236 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
25237 function.
25238 * commands/ieee1275/halt.c: New file.
25239 * commands/ieee1275/reboot.c: Likewise.
25240 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
25241 `__attribute__ ((unused))'. Some GCS related fixed.
25242 (grub_suspend_init) [GRUB_UTIL]: Function removed.
25243 (grub_suspend_fini): Likewise.
25244 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
25245 and `halt.mod'.
25246 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
25247 (halt_mod_CFLAGS): New variables.
25248 * include/grub/powerpc/ieee1275/ieee1275.h
25249 (grub_ieee1275_interpret): New prototype.
25250
1ab09cc7 252512005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
25252
25253 * include/grub/misc.h (memmove): New prototype.
25254 (memcpy): Likewise.
25255
8b8cbdb2 252562005-01-22 Hollis Blanchard <hollis@penguinppc.org>
25257
25258 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
25259 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
25260
e3741a27 252612005-01-22 Marco Gerards <metgerards@student.han.nl>
25262
25263 * kern/misc.c (grub_strndup): Function rewritten.
25264
776bd780 252652005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
25266
25267 * normal/menu.c (TERM_WIDTH): Macro redefined.
25268 (TERM_TOP_BORDER_Y): Likewise.
25269 (draw_border): Replaced while-loop by a for-loop. Make the number
25270 of lines consistent with the number of lines displayed in
25271 print_entries. Added a margin below the rectangle.
25272 (print_entry): Make the entry fit in the rectangle.
25273 (print_entries): Display the scroll arrows next to the right
25274 border.
25275
78026bce 252762005-01-21 Marco Gerards <metgerards@student.han.nl>
25277
25278 * fs/minix.c (grub_minix_find_file): Reserve more space for
25279 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
25280 `grub_strncpy' to copy `path' into it.
25281
67bbaf0f 252822005-01-21 Marco Gerards <metgerards@student.han.nl>
25283
25284 Add the loopback device, a device via which files can be accessed
25285 as devices.
f19dbdb7 25286
67bbaf0f 25287 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
25288 (pkgdata_MODULES): Add loopback.mod.
25289 (loopback_mod_SOURCES): New variable.
25290 (loopback_mod_CFLAGS): Likewise.
25291 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
25292 `disk/loopback.c'.
25293 (pkgdata_MODULES): Add loopback.mod.
25294 (loopback_mod_SOURCES): New variable.
25295 (loopback_mod_CFLAGS): Likewise.
25296 * disk/loopback.c: new file.
25297 * include/grub/normal.h (grub_loop_init): New prototype.
25298 (grub_loop_fini): New prototype.
25299 * util/grub-emu.c (main): Initialize and de-initialize loopback
25300 support.
25301 * include/grub/disk.h (grub_disk_dev_id): Add
25302 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
25303
6f1c18bd 253042005-01-20 Hollis Blanchard <hollis@penguinppc.org>
25305
25306 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
25307 function.
25308 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
25309 (suspend_mod_SOURCES): New variable.
25310 (suspend_mod_CFLAGS): Likewise.
25311 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
25312 New prototype.
25313 * commands/ieee1275/suspend.c: New file.
25314
b38551da 253152005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
25316
25317 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
f19dbdb7 25318 ((unused))' to `__attribute__ ((used))'.
b38551da 25319 (GRUB_MOD_FINI): Likewise.
25320 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
25321 * genmk.rb (PModule): Assign space to common symbols when linking
25322 modules.
25323
777aff39 253242005-01-20 Marco Gerards <metgerards@student.han.nl>
25325
25326 * include/grub/mm.h (grub_mm_init_region): Change the type of the
25327 `unsigned' arguments to `grub_size_t'.
25328 (grub_malloc): Likewise.
25329 (grub_realloc): Likewise.
25330 (grub_memalign): Likewise.
25331 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
25332 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
25333 * util/misc.c (grub_malloc): Likewise.
25334 (grub_realloc): Likewise.
25335 * kern/mm.c (get_header_from_pointer): Change the casts to
25336 `unsigned' into a cast to `grub_size_t'.
25337
25338 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
25339 point to `currnode' when `currnode' is changed.
25340
25341 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
25342 Schottelius <nico-linux@schottelius.org>.
25343
d0ff18e1 253442005-01-09 Hollis Blanchard <hollis@penguinppc.org>
25345
25346 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
25347 (note_path): Remove variable.
25348 (GRUB_IEEE1275_NOTE_NAME): New macro.
25349 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
25350 (grub_ieee1275_note_hdr): New structure.
25351 (grub_ieee1275_note_desc): Likewise.
25352 (grub_ieee1275_note): Likewise.
25353 (load_note): Remove `dir' argument. All callers updated. Remove
25354 `note_img' and `path'. Do not load a file from `note_path'.
25355 Initialize a struct grub_ieee1275_note and write that to `out'.
25356 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
25357
4ca7004c 253582005-01-05 Marco Gerards <metgerards@student.han.nl>
25359
25360 * util/misc.c (grub_util_read_image): Revert last change. It
25361 called `grub_util_read_at', which seeks from the beginning of the
25362 file.
25363
0b412211 253642005-01-04 Hollis Blanchard <hollis@penguinppc.org>
25365
25366 * TODO: Add note about endianness in grub-mkimage.
25367 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
25368 section.
25369 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
25370 (grub_mkimage_SOURCES): New target.
25371 * include/grub/kernel.h (grub_start_addr): Remove variable.
25372 (grub_end_addr): Likewise.
25373 (grub_total_module_size): Likewise.
25374 (grub_kernel_image_size): Likewise.
25375 (GRUB_MODULE_MAGIC): New constant.
25376 (grub_module_info): New structure.
25377 (grub_arch_modules_addr): New prototype.
25378 (grub_get_end_addr): Remove prototype.
25379 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
25380 * include/grub/powerpc/ieee1275/kernel.h: New file.
25381 * include/grub/util/misc.h (grub_util_get_fp_size): New
25382 prototype.
25383 (grub_util_read_at): Likewise.
25384 (grub_util_write_image_at): Likewise.
25385 * kern/main.c (grub_get_end_addr): Remove function.
25386 (grub_load_modules): Call grub_arch_modules_addr instead of using
25387 grub_end_addr. Look for a grub_module_info struct in memory. Use
25388 the grub_module_info fields instead of calling grub_get_end_addr
25389 as loop conditions. Move grub_add_unused_region code here.
25390 (grub_add_unused_region): Remove function.
25391 * kern/i386/pc/init.c: Include grub/cache.h.
25392 (grub_machine_init): Remove call to grub_get_end_addr. Remove
25393 one call to add_mem_region.
25394 (grub_arch_modules_addr): New function.
25395 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
25396 (grub_total_module_size): Likewise.
25397 Include grub/machine/kernel.h.
25398 (grub_arch_modules_addr): New function.
25399 * util/grub-emu.c (grub_end_addr): Remove variable.
25400 (grub_total_module_size): Likewise.
25401 (grub_arch_modules_addr): New function.
25402 * util/misc.c: Include unistd.h.
25403 (grub_util_get_fp_size): New function.
25404 (grub_util_read_at): Likewise.
25405 (grub_util_write_image_at): Likewise.
25406 (grub_util_read_image): Call grub_util_read_at.
25407 (grub_util_write_image): Call grub_util_write_image_at.
25408 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
25409 additional memory in kernel_img for a struct grub_module_info.
25410 Fill in that grub_module_info.
25411 * util/powerpc/ieee1275/grub-mkimage.c: New file.
25412
458786f8 254132005-01-03 Hollis Blanchard <hollis@penguinppc.org>
25414
25415 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
25416 New function.
25417 * include/grub/powerpc/ieee1275/ieee1275.h
25418 (grub_ieee1275_milliseconds): New prototype.
25419 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
25420 Change to 1000.
25421 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
25422 grub_ieee1275_milliseconds.
25423
ac507d1b 254242005-01-03 Hollis Blanchard <hollis@penguinppc.org>
25425
25426 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
25427 variable.
25428 (find_options): New function.
25429 (cmain): Call find_options.
25430 * include/grub/powerpc/ieee1275/ieee1275.h
25431 (grub_ieee1275_realmode): New extern variable.
25432 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
25433 grub_map if grub_ieee1275_realmode is false.
25434
6b8fd1c4 254352004-12-29 Marco Gerards <metgerards@student.han.nl>
25436
25437 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
25438 lines are inserted and make it work like readline. Reported by
25439 Vincent Pelletier <subdino2004@yahoo.fr>.
25440
8514a1e0 254412004-12-28 Marco Gerards <metgerards@student.han.nl>
25442
25443 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
25444
25445 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
25446 `kern/powerpc/cache.S'.
25447
924b6140 254482004-12-27 Marco Gerards <metgerards@student.han.nl>
25449
25450 * genmk.rb: Handle the `Program' class in the main loop. Written
25451 by Johan Rydberg <jrydberg@gnu.org>.
25452 (Program): New class.
25453 (programs): New variable.
25454 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
25455 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
25456 instead of "grub/kernel.h". Include <grub/machine/init.h>.
25457 (help_arch): Function removed.
25458 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
25459 `powerpc/libgcc.h' and `loader.h'.
25460 (pkgdata_PROGRAMS): New variable.
25461 (sbin_UTILITIES): Variable removed.
25462 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
25463 (grubof_SOURCES): Variable re-defined so it only includes the
25464 core functionality.
25465 (grubof_CFLAGS): Remove `-DGRUBOF'.
25466 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
25467 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
25468 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
25469 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
25470 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
25471 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
25472 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
25473 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
25474 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
25475 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
25476 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
25477 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
25478 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
25479 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
25480 (pc_mod_CFLAGS): New variables.
25481 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
25482 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
25483 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
25484 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
25485 Moved from here...
25486 * include/grub/i386/pc/init.h (grub_os_area_addr)
25487 (rub_os_area_size): ... to here.
25488 * include/grub/powerpc/ieee1275/ieee1275.h
25489 (grub_ieee1275_entry_fn): Export symbol.
25490 * include/grub/powerpc/ieee1275/init.h: New file.
25491 * include/grub/powerpc/libgcc.h: Likewise.
25492 * include/grub/cache.h: Likewise.
25493 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
25494 <hollis@penguinppc.org>.
25495 * kern/dl.c: Include <grub/cache.h>.
25496 (grub_dl_flush_cache): New function.
25497 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
25498 for this module.
25499 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
25500 (grub_console_init): Removed prototypes.
25501 (grub_machine_init): Don't initialize the modules anymore.
25502 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
25503 static.
25504 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
25505 Macro undef removed.
25506 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
25507 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
25508 relocation `R_PPC_REL32'. Return an error when the relocation is
25509 unknown.
25510 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
25511 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
25512 * util/misc.c (grub_arch_sync_caches): Likewise.
25513
e4b47e0c 255142004-12-19 Marco Gerards <metgerards@student.han.nl>
25515
25516 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
25517 `symlist.c', add `grubof_symlist.c'.
25518 (symlist.c): Variable removed.
25519 (grubof_HEADERS): Variable added.
25520 (grubof_symlist.c): New target.
25521 (kernel_syms.lst): Use `grubof_HEADERS' instead of
25522 `kernel_img_HEADERS'.
25523 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
25524 * kern/powerpc/dl.c: New file.
25525 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
25526 Function removed.
25527 (grub_arch_dl_relocate_symbols): Likewise.
25528 (grub_register_exported_symbols): Likewise.
25529
4ceb3636 255302004-12-13 Marco Gerards <metgerards@student.han.nl>
25531
25532 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
25533 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
25534 to fail instead. Reported by Vincent Pelletier
25535 <subdino2004@yahoo.fr>.
25536
25537 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
25538 it is not allocated. Reported by Vincent Pelletier
25539 <subdino2004@yahoo.fr>.
25540
25541 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
25542 output so the output looks better.
f19dbdb7 25543
3f1578fe 255442004-12-04 Marco Gerards <metgerards@student.han.nl>
25545
25546 Modulize the partition map support and add support for the amiga
25547 partition map.
f19dbdb7 25548
3f1578fe 25549 * commands/ls.c: Include <grub/partition.h> instead of
25550 <grub/machine/partition.h>.
25551 * kern/disk.c: Likewise.
25552 * kern/rescue.c: Likewise.
25553 * loader/i386/pc/chainloader.c: Likewise.
25554 * normal/cmdline.c: Likewise.
25555 * kern/powerpc/ieee1275/init.c: Likewise.
25556 (grub_machine_init): Call `grub_pc_partition_map_init',
25557 `grub_amiga_partition_map_init' and
25558 `grub_apple_partition_map_init'.
25559 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
25560 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
25561 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
25562 `partition.h' and `pc_partition.h'.
25563 (grub_setup_SOURCES): Remove
25564 `disk/i386/pc/partition.c'. Add `kern/partition.c',
25565 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
25566 (grub_emu_SOURCES): Likewise.
25567 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
25568 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
25569 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
25570 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
25571 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
25572 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
25573 (grubof_SOURCES): Likewise.
25574 * disk/i386/pc/partition.c: File removed.
25575 * disk/powerpc/ieee1275/partition.c: Likewise.
25576 * include/grub/powerpc/ieee1275/partition.h: Likewise.
25577 * include/grub/i386/pc/partition.h: Likewise.
25578 * kern/partition.c: New file.
25579 * partmap/amiga.c: Likewise.
25580 * partmap/apple.c: Likewise.
25581 * partmap/pc.c: Likewise.
25582 * include/grub/partition.h: Likewise..
25583 * include/grub/pc_partition.h: Likewise.
25584 * util/grub-emu.c: Include <grub/partition.h> instead of
25585 <grub/machine/partition.h>.
25586 (main): Call `grub_pc_partition_map_init',
25587 `grub_amiga_partition_map_init' and
25588 `grub_apple_partition_map_init' and deinitialize afterwards.
25589 * util/i386/pc/biosdisk.c: Include `#include
25590 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
25591 `<grub/machine/partition.h>'.
25592 * util/i386/pc/grub-setup.c: Likewise.
25593 * util/i386/pc/biosdisk.c: Likewise.
25594 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
25595 partition information in case of a PC partition.
25596 * util/i386/pc/grub-setup.c: Include `#include
25597 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
25598 `<grub/machine/partition.h>'.
25599 (setup): Only access the PC specific partition information in case
25600 of a PC partition.
25601
0ef4ced9 256022004-11-17 Hollis Blanchard <hollis@penguinppc.org>
f19dbdb7 25603
0ef4ced9 25604 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
25605 (grub_longjmp): Likewise.
25606 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
25607 20.
25608 * normal/powerpc/setjmp.S: New file.
25609 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
25610 `normal/powerpc/setjmp.S'.
25611 (grubof_CFLAGS): Add `-DGRUBOF'.
25612 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
25613 [GRUB_UTIL && !GRUBOF].
f19dbdb7 25614
19950e29 256152004-11-16 Marco Gerards <metgerards@student.han.nl>
25616
25617 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
25618 property named `name'. Correctly handle the error returned by
25619 `grub_ieee1275_finddevice' if a device can not be opened.
25620
a2fea427 256212004-11-02 Hollis Blanchard <hollis@penguinppc.org>
25622
25623 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
25624 `actual' for negativity.
25625 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
25626 kern/fshelp.c.
25627
41ea0ea3 256282004-11-01 Marco Gerards <metgerards@student.han.nl>
25629
25630 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
25631 (PAGE_OFFSET): New macro.
25632 (CRTC_ADDR_PORT): Likewise.
25633 (CRTC_DATA_PORT): Likewise.
25634 (START_ADDR_HIGH_REGISTER): Likewise.
25635 (START_ADDR_LOW_REGISTER): Likewise.
25636 (GRAPHICS_ADDR_PORT): Likewise.
25637 (GRAPHICS_DATA_PORT): Likewise.
25638 (READ_MAP_REGISTER): Likewise.
25639 (INPUT_STATUS1_REGISTER): Likewise.
25640 (INPUT_STATUS1_VERTR_BIT): Likewise.
25641 (page): New variable.
25642 (wait_vretrace): New function.
25643 (set_read_map): Likewise.
25644 (set_start_address): Likewise.
25645 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
25646 the right page.
25647 (check_vga_mem): Take the page into account.
25648 (write_char): Likewise.
25649 (write_cursor): Likewise.
25650 (scroll_up): Likewise. Copy the page to the page that is not
25651 shown and switch between both pages.
25652 (grub_vga_putchar): Fix off by one error.
25653 (grub_vga_cls): Wait for the vertical retrace. Take the page into
25654 account.
25655
ad0bd20b 256562004-11-01 Marco Gerards <metgerards@student.han.nl>
25657
25658 Add support for iso9660 (including rockridge).
f19dbdb7 25659
ad0bd20b 25660 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
25661 (iso9660_mod_SOURCES): New variable.
25662 (iso9660_mod_CFLAGS): Likewise.
25663 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
25664 * include/grub/fs.h (grub_iso9660_init): New prototype.
25665 * util/grub-emu.c (main): Call `grub_iso9660_init'.
25666 * fs/iso9660.c: New file.
25667
25668 * include/grub/misc.h (grub_strncat): New prototype.
25669 * kern/misc.c (grub_strncat): New function.
f19dbdb7 25670
ad0bd20b 25671 * fs/hfs.c (grub_hfs_mount): Translate the error
25672 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
25673 * fs/jfs.c (grub_jfs_mount): Likewise.
25674 * fs/ufs.c (grub_ufs_mount): Likewise.
25675
a5477a59 256762004-10-28 Hollis Blanchard <hollis@penguinppc.org>
25677
25678 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
25679 which initialized BAT registers.
25680 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
25681 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
25682 Move from here...
25683 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
25684 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
25685 ... to here.
25686 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
25687 (grub_mapclaim): Likewise.
25688 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
25689 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
25690 hand.
25691
9304c1f8 256922004-10-19 Hollis Blanchard <hollis@penguinppc.org>
25693
25694 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
25695 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
25696 -ffreestanding and -msoft-float.
25697
86f4ae25 256982004-10-15 Hollis Blanchard <hollis@penguinppc.org>
25699
25700 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
25701 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
25702 set in grub_ieee1275_flags.
25703
38912228 257042004-10-14 Hollis Blanchard <hollis@penguinppc.org>
25705
25706 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
25707 prototype.
25708 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
25709 grub_console_init first.
25710 Change the memory range used for grub_ieee1275_claim and
25711 grub_mm_init_region.
25712 Print an error message if the claim fails.
25713 Include <grub/misc.h>.
25714
d1923dc8 257152004-10-13 Hollis Blanchard <hollis@penguinppc.org>
25716
25717 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
25718 Call grub_children_iterate for device nodes of type `scsi',
25719 `ide', or `ata'.
25720 (grub_ofdisk_open): Remove manual device alias resolution.
25721 Fix memory leak when device cannot be opened.
f19dbdb7 25722 * include/grub/powerpc/ieee1275/ieee1275.h
d1923dc8 25723 (grub_children_iterate): New prototype.
25724 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
25725 New function.
25726 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
25727 Return -1 if args.size was -1.
25728
4512e4f3 257292004-10-11 Hollis Blanchard <hollis@penguinppc.org>
25730
25731 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
25732 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
25733 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
25734 Open Firmware's memory for it; claim memory from _start to _end.
25735 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
25736 (_end): New extern.
25737 (_start): Zero BSS from __bss_start to _end.
25738 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
25739 New extern.
25740 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
25741
4d61feb0 257422004-10-11 Hollis Blanchard <hollis@penguinppc.org>
25743
ad0bd20b 25744 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
25745 -1 if args.base was -1.
4d61feb0 25746
026fa2f9 257472004-10-08 Hollis Blanchard <hollis@penguinppc.org>
25748
25749 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
25750 escape sequence instead of a literal ^L. Also call
25751 grub_ofconsole_gotoxy.
25752
9f2220ef 257532004-10-03 Hollis Blanchard <hollis@penguinppc.org>
25754
25755 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
25756 void * arguments to grub_addr_t. All callers updated. Also make
25757 the `result' argument optional.
25758 (grub_ieee1275_release): change void * arguments to grub_addr_t.
25759 All callers updated.
25760
8a572cd7 257612004-09-22 Hollis Blanchard <hollis@penguinppc.org>
25762
25763 * commands/ls.c (grub_ls_list_files): Use the string following the
25764 initial ')', if present, as the filesystem path.
25765 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
25766
25767 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
25768
18aa81f2 257692004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
25770
25771 Make the source code of the menu interface more readable.
f19dbdb7 25772
18aa81f2 25773 * normal/menu.c: Include grub/mm.h.
25774 (TERM_WIDTH): New macro.
25775 (TERM_HEIGHT): Likewise.
25776 (TERM_INFO_HEIGHT): Likewise.
25777 (TERM_MARGIN): Likewise.
25778 (TERM_SCROLL_WIDTH): Likewise.
25779 (TERM_TOP_BORDER_Y): Likewise.
25780 (TERM_LEFT_BORDER_X): Likewise.
25781 (TERM_BORDER_WIDTH): Likewise.
25782 (TERM_MESSAGE_HEIGHT): Likewise.
25783 (TERM_BORDER_HEIGHT): Likewise.
25784 (TERM_NUM_ENTRIES): Likewise.
25785 (TERM_FIRST_ENTRY_Y): Likewise.
25786 (TERM_ENTRY_WIDTH): Likewise.
25787 (TERM_CURSOR_X): Likewise.
25788 (draw_border): Use macros instead of magic numbers.
25789 (print_entry): Likewise.
25790 (print_entries): Likewise.
25791 (run_menu): Likewise. Also, handle the key 'e'.
25792 (run_menu_entry): Ignore empty command lines.
25793 (print_message): Added a new argument EDIT. If EDIT is true,
25794 print a different message.
25795 (init_page): Likewise.
25796 (edit_menu_entry): New function. Not implemented yet.
25797
b47efe30 257982004-09-17 Marco Gerards <metgerards@student.han.nl>
25799
25800 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
25801 can be loaded from normal mode.
f19dbdb7 25802
b47efe30 25803 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
25804 `multiboot.mod'.
25805 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
25806 (multiboot_mod_CFLAGS): New variables.
25807 * loader/i386/pc/linux_normal.c: New file.
f19dbdb7 25808 * loader/i386/pc/multiboot_normal.c: Likewise.
25809
b47efe30 25810 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
25811 attribute `unused'.
f19dbdb7 25812
b47efe30 25813 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
25814 `fdiro' to read the mode information from instead of `diro'.
25815
25816 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
25817 looking up a symlink.
25818
25819 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
25820 macro.
25821 * normal/command.c (grub_command_execute): Don't parse the
25822 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
25823 flags of the command.
25824
25825 * normal/menu.c (grub_menu_run): Fix typo.
25826
da75ac71 258272004-09-14 Hollis Blanchard <hollis@penguinppc.org>
25828
25829 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
25830
25831 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
25832 `y + 1' instead of `y - 1'.
25833
25834 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
f19dbdb7 25835
062b24c2 258362004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
25837
25838 From Hollis Blanchard <hollis@penguinppc.org>:
25839 * kern/misc.c (memmove): New alias for grub_memmove.
25840 (memcmp): New alias for grub_memcmp.
25841 (memset): New alias for grub_memset.
f19dbdb7 25842 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
062b24c2 25843 Change "int handle" to "grub_ieee1275_phandle_t handle".
f19dbdb7 25844 * include/grub/powerpc/ieee1275/ieee1275.h
062b24c2 25845 (grub_ieee1275_get_property): Likewise.
f19dbdb7 25846
8ddad845 258472004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
25848
25849 Added normal mode command `chainloader' as module chain.mod, which
25850 depends on normal.mod and _chain.mod.
f19dbdb7 25851
8ddad845 25852 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
25853 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
25854 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
25855 Deleted prototype.
25856 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
25857 but arguments parsing moved to ...
25858 (grub_chainloader_cmd): ... here. New function.
25859 * include/grub/i386/pc/chainloader.h: New file.
25860 * loader/i386/pc/chainloader_normal.c: Likewise.
25861
2c1f4ce3 258622004-09-11 Marco Gerards <metgerards@student.han.nl>
25863
25864 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
25865 (grub_mkimage_LDFLAGS): Likewise.
25866 (grub_emu_SOURCES): Likewise.
25867 (kernel_img_HEADERS): Added fshelp.h.
25868 * fs/ext2.c: Include <grub/fshelp.h>.
25869 (FILETYPE_REG): New macro.
25870 (FILETYPE_INO_REG): Likewise.
25871 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
25872 Changed all users.
25873 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
25874 all users.
25875 (grub_fshelp_node): New struct.
25876 (grub_ext2_data): Added member `diropen'. Changed member `inode'
25877 to a pointer.
25878 (grub_ext2_get_file_block): Removed function.
25879 (grub_ext2_read_block): New function.
25880 (grub_ext2_read_file): Replaced parameter `data' by `node'.
25881 This function was written.
25882 (grub_ext2_mount): Read the root inode. Create a diropen struct.
25883 (grub_ext2_find_file): Removed function.
25884 (grub_ext2_read_symlink): New function.
25885 (grub_ext2_iterate_dir): Likewise.
25886 (grub_ext2_open): Rewritten.
25887 (grub_ext2_dir): Rewritten.
25888 * include/grub/fshelp.h: New file.
25889 * fs/fshelp.c: Likewise.
25890
3c52136a 258912004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
25892
25893 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
25894 (print_message): Add a missing newline.
25895 (run_menu): Added timeout support.
25896 (run_menu_entry): New local function.
25897 (grub_menu_run): Added support for booting.
25898
25899 * kern/loader.c (grub_loader_is_loaded): New function.
25900
25901 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
25902 (grub_get_rtc): Exported.
25903
25904 * include/grub/i386/pc/time.h: Include grub/symbol.h.
25905 (grub_get_rtc): Exported.
25906
25907 * include/grub/normal.h (struct grub_command_list): Remove
25908 constant from the member `command'.
25909
25910 * include/grub/loader.h (grub_loader_is_loaded): Declared.
25911
25912 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
25913
25914 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
25915
aa033560 259162004-08-28 Marco Gerards <metgerards@student.han.nl>
25917
25918 Add support for the JFS filesystem.
25919
25920 * fs/jfs.c: New file.
25921 * include/grub/fs.h (grub_jfs_init): New prototype.
25922 (grub_jfs_fini): New prototype.
25923 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
25924 (grub_emu_SOURCES): Likewise.
25925 (pkgdata_MODULES): Add jfs.mod.
25926 (jfs_mod_SOURCES): New variable.
25927 (jfs_mod_CFLAGS): Likewise.
25928 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
25929 (grubof_SOURCES): Likewise.
25930 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
25931
25932 * fs/fat.c (grub_fat_find_dir): Convert the filename little
25933 endian to the host endian.
25934 (grub_fat_utf16_to_utf8): Move function from there...
25935 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
fe987087 25936 the endianness of the source string anymore.
aa033560 25937 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
25938
94bc45af 259392004-08-24 Marco Gerards <metgerards@student.han.nl>
25940
25941 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
25942 (grub_boot_fini) [GRUB_UTIL]: Likewise.
25943 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
25944 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
f19dbdb7 25945
94bc45af 25946 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
25947 (grub_hfs_iterate_dir): Make the function static. Add prototypes
25948 for `node_found' and `it_dir'.
25949 (grub_hfs_dir): Add prototype for `dir_hook'.
25950
25951 * fs/minix.c (grub_minix_get_file_block): Add prototype for
25952 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
25953 and `indir32' to silence a gcc warning.
25954
25955 * include/grub/fs.h (grub_hfs_init): New prototype.
25956 (grub_hfs_fini): Likewise.
f19dbdb7 25957
25958
97543f08 259592004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
25960
25961 Each disk device has its own id now. This is useful to make use
25962 of multiple disk devices.
f19dbdb7 25963
97543f08 25964 * include/grub/disk.h (grub_disk_dev_id): New enum.
25965 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
25966 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
25967
25968 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
25969 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
25970
25971 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
25972 GRUB_DISK_DEVICE_OFDISK_ID as an id.
25973
25974 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
25975 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
25976
25977 * include/grub/disk.h (struct grub_disk_dev): Added a new member
25978 "id" which is used by the cache manager.
25979
25980 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
25981 of just "GRUB".
25982
64372eb4 259832004-08-18 Marco Gerards <metgerards@student.han.nl>
25984
25985 * fs/hfs.c: New file.
25986 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
25987 (grub_emu_SOURCES): Likewise.
25988 (pkgdata_MODULES): Add hfs.mod.
25989 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
25990 (grubof_SOURCES): Likewise.
25991 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
25992
25993 * include/grub/misc.h (grub_strncasecmp): Add prototype.
25994 * kern/misc.c (grub_strncasecmp): Add function.
25995
cc61b58f 259962004-08-14 Marco Gerards <metgerards@student.han.nl>
25997
25998 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
25999 with parentheses.
26000
26001 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
26002 (grub_ext2_dir): In case the directory entry type is unknown, read
26003 it from the inode.
26004
0ef123f6 260052004-08-02 Peter Bruin <pjbruin@dds.nl>
26006
26007 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
26008 grub_load_linux instead of grub_rescue_cmd_linux as second
26009 argument of grub_rescue_register_command.
26010
26011 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
26012
a447c5df 260132004-07-27 Marco Gerards <metgerards@student.han.nl>
26014
26015 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
26016 function.
26017 * commands/boot.c: Remove the check for `GRUB_UTIL'.
26018 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
26019 `loader/powerpc/ieee1275/linux.c',
26020 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
26021 * include/grub/powerpc/ieee1275/ieee1275.h
26022 (grub_ieee1275_release): New prototype.
26023 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
26024 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
26025 normal, boot, linux and linux_normal.
26026 * loader/powerpc/ieee1275/linux.c: New file.
26027 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
26028
5a9e3546 260292004-07-12 Marco Gerards <metgerards@student.han.nl>
26030
26031 * normal/arg.c (grub_arg_parse): Correct error handling after
26032 reallocating the argumentlist (check if `argl' is not null instead
26033 of checking if `args' is not null).
26034 * kern/mm.c (grub_realloc): Return the same pointer when using the
26035 same region, instead of returning the header address.
26036
e15199cb 260372004-07-11 Marco Gerards <metgerards@student.han.nl>
26038
26039 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
26040 one block instead of two when looking for the initial partition.
26041 (grub_partition_probe): Initialize the local variable `p' with 0.
26042 Use base 10 for the grub_strtoul call.
26043 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
26044 need for one local variable.
26045 (grub_strtoul): Don't add the new value to `num', instead of that
26046 just assign it.
26047
020616c2 260482004-07-11 Marco Gerards <metgerards@student.han.nl>
26049
26050 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
26051 (pxeboot_img_SOURCES): New variable.
26052 (pxeboot_img_ASFLAGS): Likewise.
26053 (pxeboot_img_LDFLAGS): Likewise.
26054 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
26055 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
26056 <lode_leroy@hotmail.com>.
26057
6c51eb64 260582004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
26059
26060 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
26061 there was no input.
26062
cfb12aff 260632004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
26064
26065 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
26066 the history buffer logic.
26067
6eabba74 260682004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
26069
26070 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
26071 (FILETYPE_INO_SYMLINK): New macros.
26072 (grub_ext2_find_file): Check if the node is a directory using the
26073 inode stat information instead of using the filetype in the
26074 dirent. Exclude the first character of an absolute symlink.
26075 (grub_ext2_dir): Mask out the filetype part of the mode member of
26076 the inode.
26077
66e19ef8 260782004-05-24 Marco Gerards <metgerards@student.han.nl>
26079
26080 Add support for UFS version 1 and 2. Add support for the minix
26081 filesystem version 1 and 2, both the variants with 14 and 30 long
26082 filenames.
f19dbdb7 26083
66e19ef8 26084 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
26085 fs/minix.c.
26086 (grub_emu_SOURCES): Likewise.
26087 (pkgdata_MODULES): Add ufs.mod and minix.mod.
26088 (ufs_mod_SOURCES): New variable.
26089 (ufs_mod_CFLAGS): Likewise.
26090 (minix_mod_SOURCES): Likewise.
26091 (minix_mod_CFLAGS): Likewise.
26092 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
26093 fs/minix.c.
26094 (grubof_SOURCES): Likewise.
26095 * fs/ufs.c: New file.
26096 * fs/minix.c: New file.
26097 * include/grub/fs.h (grub_ufs_init): New prototype.
26098 (grub_ufs_fini): Likewise.
26099 (grub_minix_init): Likewise.
26100 (grub_minix_fini): Likewise.
26101 * util/grub-emu.c (main): Initialize and deinitialize UFS and
26102 minix fs.
26103
cc2e748a 261042004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
26105
26106 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
26107 commands/ls.c, commands/terminal.c, commands/boot.c,
26108 commands/cmp.c and commands/cat.c.
26109 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
26110
26111 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
26112 "env.h"
26113
4b13b216 261142004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
26115
26116 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
26117 and grub_, respectively. Because the conversion is trivial and
26118 mechanical, I omit the details here. Please refer to the CVS
26119 if you need more information.
26120
6a142551 261212004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
26122
26123 * include/pupa: Renamed to ...
26124 * include/grub: ... this.
26125 * util/i386/pc/pupa-mkimage.c: Renamed to ...
26126 * util/i386/pc/grub-mkimage.c: ... this.
26127 * util/i386/pc/pupa-setup.c: Renamed to ...
26128 * util/i386/pc/grub-setup.c: ... this.
26129 * util/pupa-emu.c: Renamed to ...
26130 * util/grub-emu.c: ... this.
26131
e56cdf21 261322004-03-29 Marco Gerards <metgerards@student.han.nl>
26133
26134 Add support for the newworld apple macintosh (PPC). This has been
26135 tested on the powerbook 2000 only. It only adds support for
26136 generic ieee1275 functions, console and disk support. This should
26137 be easy to port to other architectures with support for Open
26138 Firmware.
f19dbdb7 26139
e56cdf21 26140 * configure.ac: Accept the powerpc as host_cpu. In the case of
26141 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
26142 specific tests are only executed while building for the i386.
26143 Inverse test for crosscompile.
26144 * genmk.rb (Utility): Allow assembler files.
26145 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
26146 * conf/powerpc-ieee1275.rmk: New file.
26147 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
26148 * disk/powerpc/ieee1275/partition.c: Likewise.
26149 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
26150 * include/pupa/powerpc/ieee1275/console.h: Likewise.
26151 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
26152 * include/pupa/powerpc/ieee1275/time.h: Likewise.
26153 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
26154 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
26155 * include/pupa/powerpc/ieee1275/loader.h
26156 * include/pupa/powerpc/setjmp.h: Likewise.
26157 * include/pupa/powerpc/types.h: Likewise.
26158 * kern/powerpc/ieee1275/init.c: Likewise.
26159 * kern/powerpc/ieee1275/openfw.c: Likewise.
26160 * term/powerpc/ieee1275/ofconsole.c: Likewise.
26161
26162 These files were written by Johan Rydberg
26163 (jrydberg@night.trouble.net) and I only modified them slightly.
f19dbdb7 26164
e56cdf21 26165 * boot/powerpc/ieee1275/cmain.c: New file.
26166 * boot/powerpc/ieee1275/crt0.S: Likewise.
26167 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
26168 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
26169
8c8cc205 261702004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
26171
26172 * Makefile.in: Update copyright.
26173 * genmodsrc.sh: Likewise.
26174 * gensymlist.sh: Likewise.
26175 * term/i386/pc/vga.c: Indent correctly.
26176
26177 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
26178 bugreporting address.
26179 * util/i386/pc/pupa-setup.c (usage): Likewise,
26180 (main): Call pupa_ext2_init and pupa_ext2_fini.
26181
f19dbdb7 26182 * fs/fat.c (log2): Renamed to ...
8c8cc205 26183 (fat_log2): ... this.
26184 All callers changed.
26185 * kern/misc.c (memcpy): Alias to pupa_memmove.
26186 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
26187 lvalue cast.
26188 * util/console.c (pupa_ncurses_fini): Return 0.
26189
26190 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
26191 Move fail label here.
26192 [__GNU__]: Don't warn when using stat.
26193 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
26194 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
26195 long int. Use strtol instead of strtoul.
f19dbdb7 26196
db1771cf 261972004-03-14 Marco Gerards <metgerards@student.han.nl>
26198
26199 * commands/boot.c: New file.
26200 * commands/cat.c: Likewise.
26201 * commands/cmp.c: Likewise.
26202 * commands/ls.c: Likewise.
26203 * commands/terminal.c: Likewise.
26204 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
26205 (pupa_register_command): Changed interface to match the new
26206 argument parser.
26207 (pupa_command_execute): Changed (almost rewritten) so it uses
26208 pupa_split_command. Added support for setting variables using the
26209 syntax `foo=bar'.
26210 (rescue_command): Changed to work with the new argument parser.
26211 (terminal_command): Moved from here to commands/terminal.c.
26212 (set_command): New function.
26213 (unset_command): New function.
26214 (insmod_command): New function.
26215 (rmmod_command): New function.
26216 (lsmod_command): New function.
26217 (pupa_command_init): Don't initialize the command terminal
26218 anymore. Initialize the commands set, unset, insmod, rmmod and
26219 lsmod.
26220 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
26221 (kernel_img_HEADERS): Add arg.h and env.h.
26222 (pupa_mkimage_LDFLAGS): Add kern/env.c.
26223 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
26224 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
26225 normal/arg.c.
26226 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
26227 terminal.mod.
26228 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
26229 (boot_mod_SOURCES): New variable.
26230 (terminal_mod_SOURCES): Likewise.
26231 (ls_mod_SOURCES): Likewise.
26232 (cmp_mod_SOURCES): Likewise.
26233 (cat_mod_SOURCES): Likewise.
26234
26235 * normal/arg.c: New file.
26236 * kern/env.c: Likewise.
26237 * include/pupa/arg.h: Likewise.
26238 * include/pupa/env.h: Likewise.
26239 * font/manager.c (font_command): Changed to match argument parsing
26240 interface changes.
26241 (PUPA_MOD_INIT): Likewise.
26242 * hello/hello.c (pupa_cmd_hello): Likewise.
26243 (PUPA_MOD_INIT): Likewise.
26244 * include/pupa/disk.h: Include <pupa/device.h>.
26245 (pupa_print_partinfo): New prototype.
26246 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
26247 (pupa_dl_get_prefix): Likewise.
26248 * include/pupa/misc.h: Include <pupa/err.h>.
26249 (pupa_isgraph): New prototype.
26250 (pupa_isdigit): Likewise.
26251 (pupa_split_cmdline): Likewise.
26252 * include/pupa/normal.h: Include <pupa/arg.h>.
26253 (pupa_command): Changed the prototype of the member `func' to
26254 match the argument parsing interface. Added member `options'.
26255 (pupa_register_command): Updated to match function.
26256 (pupa_arg_parse): New prototype.
26257 (pupa_hello_init) [PUPA_UTIL]: New prototype.
26258 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
26259 (pupa_ls_init) [PUPA_UTIL]: Likewise.
26260 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
26261 (pupa_cat_init) [PUPA_UTIL]: Likewise.
26262 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
26263 (pupa_boot_init) [PUPA_UTIL]: Likewise.
26264 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
26265 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
26266 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
26267 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
26268 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
26269 * kern/disk.c: Include <pupa/file.h>.
26270 (pupa_print_partinfo): New function.
26271 * kern/dl.c: Include <pupa/env.h>.
26272 (pupa_dl_dir): Variable removed.
26273 (pupa_dl_load): Use the environment variable `prefix' instead of
26274 the variable pupa_dl_dir.
26275 (pupa_dl_set_prefix): Function removed.
26276 (pupa_dl_get_prefix): Likewise.
26277 * kern/i386/pc/init.c: Include <pupa/env.h>.
26278 (pupa_machine_init): Use the environment variable `prefix' instead of
26279 using pupa_dl_set_prefix to set the prefix.
26280 * kern/main.c: Include <pupa/env.h>.
26281 (pupa_set_root_dev): Use the environment variable `prefix' instead of
26282 using pupa_dl_get_prefix to get the prefix.
26283 * kern/misc.c: Include <pupa/env.h>.
26284 (pupa_isdigit): New function.
26285 (pupa_isgraph): Likewise.
26286 (pupa_ftoa): Likewise.
26287 (pupa_vsprintf): Added support for printing values of the type
26288 `double'. Make it possible to format variable output when using
26289 formatting like `%1.2%f'.
26290 (pupa_split_cmdline): New function.
26291 * kern/rescue.c: Include <pupa/env.h>.
26292 (next_word): Removed function.
26293 (pupa_rescue_cmd_prefix): Likewise.
26294 (pupa_rescue_cmd_set): New function.
26295 (pupa_rescue_cmd_unset): New function.
26296 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
26297 split the command line instead of splitting it here. Added
26298 support for setting variables using the syntax `foo=bar'. Don't
26299 initialize the prefix command anymore. Initialized the set and
26300 unset commands.
26301 * normal/cmdline.c: Include <pupa/env.h>.
26302 (pupa_tab_complete): Added prototypes for print_simple_completion,
26303 print_partition_completion, add_completion, iterate_commands,
26304 iterate_dev, iterate_part and iterate_dir. Moved code to print
26305 partition information from here to kern/disk.c.
fe6b695a 26306 (pupa_cmdline_run): Don't check if the function exists anymore.
db1771cf 26307 * normal/main.c: Include <pupa/env.h>.
26308 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
26309 instead of using pupa_dl_get_prefix to get the prefix.
26310 * term/i386/pc/vga.c: Include <pupa/arg.h>.
26311 (check_vga_mem): Cast pointers to `void *' to silence a gcc
26312 warning.
26313 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
26314 (pupa_vga_setcolor): Declare unused variables with `__attribute__
26315 ((unused))' to silence a gcc warning.
26316 (pupa_vga_setcolor): Likewise.
26317 (debug_command): Changed to match argument parsing
26318 interface changes.
26319 * util/pupa-emu.c: Include <pupa/env.h>.
26320 (options): Added 0's for unused fields to silence a gcc warning.
26321 (argp): Likewise.
26322 (main): Use the environment variable `prefix' instead of using
26323 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
26324 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
26325 and terminal.
26326
26327 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
26328 * util/misc.c: Include <malloc.h>.
26329 (pupa_malloc): Rewritten so errors are correctly reported.
26330 (pupa_realloc): Likewise.
26331 (pupa_memalign): Likewise.
26332 (pupa_mm_init_region): Declare unused variables with
26333 `__attribute__ ((unused))' to silence a gcc warning.
26334 * normal/i386/setjmp.S: Remove tab at the end of the file to
26335 silence a gcc warning.
26336 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
26337 variables with `__attribute__ ((unused))' to silence a gcc
26338 warning.
26339 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
26340 local variable i unsigned to silence a gcc warning.
26341
26342 * kern/term.c: Include <pupa/misc.h>.
26343 (pupa_more_lines): New variable.
26344 (pupa_more): Likewise.
26345 (pupa_putcode): When the pager is active pause at the end of every
26346 screen.
26347 (pupa_set_more): New function.
26348 * include/pupa/term.h (pupa_set_more): New prototype.
26349
26350
3b1139cb 263512004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
26352
26353 Now this project is GRUB 2 rather than PUPA. The location of
26354 the CVS repository was moved to GRUB's.
f19dbdb7 26355
3b1139cb 26356 * configure.ac: Use bug-grub as the reporting address.
26357 Use GRUB instead of PUPA.
26358 Change the version number to 1.90.
26359
8367695c 263602004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
26361
26362 * genkernsyms.sh: Updated copyright information.
26363 * genmk.rb: Likewise.
26364 * genmodsrc.sh: Likewise.
26365 * gensymlist.sh: Likewise.
26366 * boot/i386/pc/boot.S: Likewise.
26367 * boot/i386/pc/diskboot.S: Likewise.
26368 * disk/i386/pc/biosdisk.c: Likewise.
26369 * disk/i386/pc/partition.c: Likewise.
26370 * font/manager.c: Likewise.
26371 * fs/ext2.c: Likewise.
26372 * fs/fat.c: Likewise.
26373 * include/pupa/boot.h: Likewise.
26374 * include/pupa/device.h: Likewise.
26375 * include/pupa/disk.h: Likewise.
26376 * include/pupa/dl.h: Likewise.
26377 * include/pupa/elf.h: Likewise.
26378 * include/pupa/err.h: Likewise.
26379 * include/pupa/file.h: Likewise.
26380 * include/pupa/font.h: Likewise.
26381 * include/pupa/fs.h: Likewise.
26382 * include/pupa/kernel.h: Likewise.
26383 * include/pupa/loader.h: Likewise.
26384 * include/pupa/misc.h: Likewise.
26385 * include/pupa/mm.h: Likewise.
26386 * include/pupa/net.h: Likewise.
26387 * include/pupa/normal.h: Likewise.
26388 * include/pupa/rescue.h: Likewise.
26389 * include/pupa/setjmp.h: Likewise.
26390 * include/pupa/symbol.h: Likewise.
26391 * include/pupa/term.h: Likewise.
26392 * include/pupa/types.h: Likewise.
26393 * include/pupa/i386/setjmp.h: Likewise.
26394 * include/pupa/i386/types.h: Likewise.
26395 * include/pupa/i386/pc/biosdisk.h: Likewise.
26396 * include/pupa/i386/pc/boot.h: Likewise.
26397 * include/pupa/i386/pc/console.h: Likewise.
26398 * include/pupa/i386/pc/init.h: Likewise.
26399 * include/pupa/i386/pc/kernel.h: Likewise.
26400 * include/pupa/i386/pc/linux.h: Likewise.
26401 * include/pupa/i386/pc/loader.h: Likewise.
26402 * include/pupa/i386/pc/memory.h: Likewise.
26403 * include/pupa/i386/pc/multiboot.h: Likewise.
26404 * include/pupa/i386/pc/partition.h: Likewise.
26405 * include/pupa/i386/pc/time.h: Likewise.
26406 * include/pupa/i386/pc/vga.h: Likewise.
26407 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
26408 * include/pupa/util/getroot.h: Likewise.
26409 * include/pupa/util/misc.h: Likewise.
26410 * include/pupa/util/resolve.h: Likewise.
26411 * kern/device.c: Likewise.
26412 * kern/disk.c: Likewise.
26413 * kern/dl.c: Likewise.
26414 * kern/err.c: Likewise.
26415 * kern/file.c: Likewise.
26416 * kern/fs.c: Likewise.
26417 * kern/loader.c: Likewise.
26418 * kern/main.c: Likewise.
26419 * kern/misc.c: Likewise.
26420 * kern/mm.c: Likewise.
26421 * kern/rescue.c: Likewise.
26422 * kern/term.c: Likewise.
26423 * kern/i386/dl.c: Likewise.
26424 * kern/i386/pc/init.c: Likewise.
26425 * kern/i386/pc/lzo1x.S: Likewise.
26426 * kern/i386/pc/startup.S: Likewise.
26427 * loader/i386/pc/chainloader.c: Likewise.
26428 * loader/i386/pc/linux.c: Likewise.
26429 * loader/i386/pc/multiboot.c: Likewise.
26430 * normal/cmdline.c: Likewise.
26431 * normal/command.c: Likewise.
26432 * normal/main.c: Likewise.
26433 * normal/menu.c: Likewise.
26434 * normal/i386/setjmp.S: Likewise.
26435 * term/i386/pc/console.c: Likewise.
26436 * term/i386/pc/vga.c: Likewise.
26437 * util/console.c: Likewise.
26438 * util/genmoddep.c: Likewise.
26439 * util/misc.c: Likewise.
26440 * util/pupa-emu.c: Likewise.
26441 * util/resolve.c: Likewise.
26442 * util/unifont2pff.rb: Likewise.
26443 * util/i386/pc/biosdisk.c: Likewise.
26444 * util/i386/pc/getroot.c: Likewise.
26445 * util/i386/pc/pupa-mkimage.c: Likewise.
26446 * util/i386/pc/pupa-setup.c: Likewise.
26447
e6eced71 264482004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
26449
26450 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
26451 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
26452 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
26453 reading and reset it after reading.
26454 (pupa_ext2_close): Return PUPA_ERR_NONE.
26455
26456 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
26457 Correct value.
26458 (struct linux_kernel_header): Add kernel_version and
26459 initrd_addr_max.
26460 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
26461 pupa_file_read succeeds.
26462 (pupa_rescue_cmd_initrd): Implement.
26463
5aded270 264642003-12-03 Marco Gerards <metgerards@student.han.nl>
26465
26466 * fs/ext2.c (pupa_ext2_label): New function.
26467 (pupa_ext2_fs): Added label.
26468 * fs/fat.c (pupa_fat_label): New function.
26469 (pupa_fat_fs): Added label.
26470 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
26471
26472 * kern/misc.c (pupa_strndup): New function.
26473 * include/pupa/misc.h (pupa_strndup): New prototype.
26474
26475 * include/pupa/normal.h: Include <pupa/err.h>.
26476 (pupa_set_history): New prototype.
26477 (pupa_iterate_commands): New prototype.
26478 * normal/cmdline.c: Include <pupa/machine/partition.h>,
26479 <pupa/disk.h>, <pupa/file.h>.
26480 (hist_size): New variable.
26481 (hist_lines): Likewise.
26482 (hist_end): Likewise.
26483 (hist_used): Likewise.
26484 (pupa_set_history): New function.
26485 (pupa_history_get): Likewise.
26486 (pupa_history_add): Likewise.
26487 (pupa_history_replace): Likewise.
26488 (pupa_tab_complete): Likewise.
26489 (pupa_cmdline_run): Added tab completion and history buffer. Tab
26490 completion shows partitionnames while completing partitions, this
26491 feature was suggested by Jeff Bailey.
26492 * normal/command.c (pupa_iterate_commands): New function.
26493 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
26494 (pupa_normal_init): Initialize history buffer.
26495 (PUPA_MOD_INIT): Likewise.
26496 (pupa_normal_fini): Free the history buffer.
26497 (PUPA_MOD_FINI): Likewise.
26498
26499 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
26500 key.
26501
26502 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
26503 * configure.ac [i386]: Check for regparam bug.
26504 (NESTED_FUNC_ATTR) [! i386]: Defined.
26505
1f7315a3 265062003-11-17 Marco Gerards <metgerards@student.han.nl>
26507
26508 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
26509 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
26510 (pupa_emu_SOURCES): New variable.
26511 (pupa_emu_LDFLAGS): Likewise.
26512 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
26513 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
26514 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
26515 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
26516 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
26517 (pupa_jmp_buf): New typedef.
26518 (pupa_setjmp) [PUPA_UTIL]: New macro.
26519 (pupa_longjmp) [PUPA_UTIL]: Likewise.
26520 * include/pupa/term.h (struct pupa_term): New member `refresh'.
26521 (pupa_refresh): New prototype.
26522 * include/pupa/util/getroot.h: New file.
26523 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
26524 it.
26525 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
26526 (pupa_rescue_cmd_cat): Likewise.
26527 (pupa_rescue_cmd_ls): Likewise.
26528 (pupa_rescue_cmd_testload): Likewise.
26529 (pupa_rescue_cmd_lsmod): Likewise.
26530 * normal/cmdline.c (pupa_cmdline_get): Likewise.
26531 * normal/menu.c (run_menu): Likewise.
26532 * kern/term.c (pupa_cls): Likewise.
26533 (pupa_refresh): New function.
26534 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
26535 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
26536 * util/console.c: New file.
f19dbdb7 26537
1f7315a3 26538 * util/i386/pc/getroot.c: New file.
26539 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
26540 (pupa_putchar): New function.
26541 (pupa_refresh): Likewise.
26542 (xgetcwd): Function moved to ...
26543 (strip_extra_slashes): Likewise.
26544 (get_prefix): Likewise.
f19dbdb7 26545 * util/i386/pc/getroot.c: ... here.
1f7315a3 26546 (find_root_device): Function moved and renamed to...
26547 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
26548 Changed all callers.
26549 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
26550 and renamed to...
26551 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
26552 Changed all callers.
26553 * util/misc.c (pupa_memalign): New function.
26554 (pupa_mm_init_region): Likewise.
26555 (pupa_register_exported_symbols): Likewise.
26556 (pupa_putchar): Function removed.
26557 * util/pupa-emu.c: New file.
26558
9a5c1ade 265592003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
26560
26561 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
26562 (_multiboot_mod_SOURCES): New variable.
26563 (_multiboot_mod_CFLAGS): Likewise.
26564 * loader/i386/pc/multiboot.c: New file.
26565 * include/pupa/i386/pc/multiboot.h: Likewise.
26566 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
26567 (pupa_multiboot_real_boot): New function.
26568 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
26569 (pupa_multiboot_real_boot): New prototype.
26570 (pupa_rescue_cmd_multiboot): Likewise
26571 (pupa_rescue_cmd_module): Likewise.
26572
26573 * kern/loader.c (pupa_loader_set): Continue when
26574 pupa_loader_unload_func() fails.
26575 (pupa_loader_unset): New function.
26576 * include/pupa/loader.h (pupa_loader_unset): New prototype.
26577
26578 * kern/misc.c (pupa_stpcpy): New function.
26579 * include/pupa/misc.h (pupa_stpcpy): New prototype.
26580
8e72a9c0 265812003-11-12 Marco Gerards <metgerards@student.han.nl>
26582
26583 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
26584 for available extensions.
26585
26586 * include/pupa/i386/pc/time.h: New file.
26587 * kern/disk.c: Include <pupa/machine/time.h>.
26588 (PUPA_CACHE_TIMEOUT): New macro.
26589 (pupa_last_time): New variable.
26590 (pupa_disk_open): Flush the cache when there was a timeout.
26591 (pupa_disk_close): Reset the timer.
26592 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
26593 pupa_currticks.
26594 * util/misc.c: Include <sys/times.h>
26595 (pupa_get_rtc): New function.
26596
c4adbd32 265972003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
26598
26599 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
26600 as blocks.
26601 (pupa_ext2_get_file_block): Use blocks member.
26602
26603 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
26604 first block. Return -1 instead of pupa_errno on error.
26605
bfd30f06 266062003-10-27 Marco Gerards <metgerards@student.han.nl>
26607
26608 * README: In the pupa-mkimage example use _chain instead of chain
26609 and ext2 instead of fat.
26610 * TODO: Replace ext2fs with jfs as an example. Add an item for
26611 adding journal playback for ext2fs.
26612 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
26613 (pkgdata_MODULES): Added ext2.mod.
26614 (ext2_mod_SOURCES): New variable.
26615 (ext2_mod_CFLAGS): Likewise.
26616 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
26617 * include/pupa/misc.h (pupa_strncpy): New prototype.
26618 (pupa_strcat): Likewise.
26619 (pupa_strncmp): Likewise.
26620 * kern/misc.c (pupa_strcat): Enable function.
26621 (pupa_strncpy): New function.
26622 (pupa_strncmp): Likewise.
26623 * fs/ext2.c: New file.
f19dbdb7 26624
bfd30f06 26625 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
26626 when the read failed before retrying.
26627 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
26628 (_FILE_OFFSET_BITS): Likewise.
26629 * configure.ac: Added AC_SYS_LARGEFILE.
26630
98d15063 266312003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
26632
26633 * genmk.rb (PModule#rule): Make sure to get only symbol names
26634 from the output of nm.
59cad637 26635 Reported by Robert Millan <rmh.grub@aybabtu.com>.
98d15063 26636
18d9c7cd 266372003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
26638
26639 I forgot to check in these changes for a long time. This adds
26640 incomplete support for VGA console, and this is still very
26641 buggy. Also, a lot of consideration is required for I18N,
26642 UNICODE, and VGA font issues. Therefore, assume that this is
26643 such that "better than nothing".
f19dbdb7 26644
18d9c7cd 26645 * font/manager.c: New file.
26646 * include/pupa/font.h: Likewise.
26647 * include/pupa/i386/pc/vga.h: Likewise.
26648 * term/i386/pc/vga.c: Likewise.
26649 * util/unifont2pff.rb: Likewise.
26650
26651 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
26652 (pkgdata_MODULES): Added vga.mod and font.mod.
26653 (vga_mod_SOURCES): New variables.
26654 (vga_mod_CFLAGS): Likewise.
26655 (font_mod_SOURCES): Likewise.
26656 (font_mod_CFLAGS): Likewise.
26657
26658 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
26659
26660 * include/pupa/term.h: Include pupa/err.h.
f19dbdb7 26661 (struct pupa_term): Added init and fini.
18d9c7cd 26662 Changed the argument of putchar to pupa_uint32_t.
26663
26664 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
26665 (pupa_console_real_putchar): New prototype.
26666 (pupa_console_putchar): Removed.
26667 (pupa_console_checkkey): Exported.
26668 (pupa_console_getkey): Likewise.
26669
26670 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
26671 characters.
26672
26673 * kern/term.c (pupa_term_set_current): Rewritten.
26674 (pupa_putchar): Likewise.
26675 (pupa_putcode): New function.
26676
26677 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
26678 (pupa_console_real_putchar): ... this.
26679 (pupa_vga_set_mode): New function.
26680 (pupa_vga_get_font): Likewise.
26681
26682 * normal/command.c: Include pupa/term.h.
26683 (terminal_command): New function.
26684 (pupa_command_init): Register the command "terminal".
26685
26686 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
26687 (DISP_UP): Likewise.
26688 (DISP_RIGHT): Likewise.
26689 (DISP_DOWN): Likewise.
26690 (DISP_HLINE): Likewise.
26691 (DISP_VLINE): Likewise.
26692 (DISP_UL): Likewise.
26693 (DISP_UR): Likewise.
26694 (DISP_LL): Likewise.
26695 (DISP_LR): Likewise.
26696
26697 * term/i386/pc/console.c (pupa_console_putchar): New function.
f19dbdb7 26698
977329f5 266992003-02-08 NIIBE Yutaka <gniibe@m17n.org>
26700
26701 * util/resolve.c (pupa_util_resolve_dependencies): BUG
26702 FIX. Reverse the path_list.
26703
26704 * include/pupa/normal.h: Export pupa_register_command and
26705 pupa_unregister_command.
26706
26707 * hello/hello.c (pupa_cmd_hello): New module.
26708 * conf/i386-pc.rmk: Added hello.mod.
26709
1f5ab428 267102003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
26711
26712 * kern/i386/pc/lzo1x.S: New file.
f19dbdb7 26713
1f5ab428 26714 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
26715 (compress_kernel): New variable.
26716 (generate_image): Heavily modified to support compressing a
26717 large part of the core image.
26718
26719 * util/misc.c (pupa_util_read_image): Fix a file descriptor
26720 leak.
26721 (pupa_util_load_image): New function.
26722
26723 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
26724 (pupa_compressed_size): New variable.
26725 (codestart): Enable Gate A20 here.
26726 Decompress the compressed part of the core image.
26727 Rearrange the code to put functions and variables which are
26728 required for initialization in the non-compressed part.
26729 Include lzo1x.S.
26730
26731 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
26732 here.
26733
26734 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
26735
f19dbdb7 26736 * include/pupa/i386/pc/kernel.h
1f5ab428 26737 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
26738 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
26739 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
26740 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
26741 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
26742
26743 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
26744
26745 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
26746 (Utility#rule): Likewise.
26747
26748 * configure.ac: Check if LZO is available.
26749
ce5bf700 267502003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
26751
26752 * include/pupa/normal.h: New file.
26753 * include/pupa/setjmp.h: Likewise.
26754 * include/pupa/i386/setjmp.h: Likewise.
26755 * normal/cmdline.c: Likewise.
26756 * normal/command.c: Likewise.
26757 * normal/main.c: Likewise.
26758 * normal/menu.c: Likewise.
26759 * normal/i386/setjmp.S: Likewise.
f19dbdb7 26760
ce5bf700 26761 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
26762 (pupa_rescue_cmd_initrd): Likewise.
26763
26764 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
26765 Likewise.
26766
26767 * kern/i386/pc/startup.S (translation_table): New variable.
26768 (translate_keycode): New function.
26769 (pupa_console_getkey): Call translate_keycode.
26770
26771 * kern/rescue.c (attempt_normal_mode): New function.
26772 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
26773 it failed, print a message.
26774
26775 * kern/mm.c (pupa_real_malloc): Print more information when a
26776 free magic is broken.
26777 (pupa_free): If the first free header is not free actually, set
26778 it to P.
26779
26780 * kern/main.c (pupa_load_normal_mode): Just load the module
26781 "normal".
26782 (pupa_main): Don't print the message
26783 "Entering into rescue mode..." here.
26784
26785 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
26786 Declared.
26787 (pupa_rescue_cmd_initrd): Likewise.
26788 (pupa_rescue_cmd_initrd): Likewise.
26789
26790 * include/pupa/symbol.h (FUNCTION): Specify the type.
26791 (VARIABLE): Likewise.
26792
26793 * include/pupa/err.h (pupa_err_t): Added
26794 PUPA_ERR_UNKNOWN_COMMAND.
26795
26796 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
26797 (pupa_dl_get_prefix): Likewise.
26798
26799 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
26800 Added _chain.mod and _linux.mod instead of chain.mod and
26801 linux.mod.
26802 (chain_mod_SOURCES): Renamed to ...
26803 (_chain_mod_SOURCES): ... this.
26804 (chain_mod_CFLAGS): Renamed to ...
26805 (_chain_mod_CFLAGS): ... this.
26806 (linux_mod_SOURCES): Renamed to ...
26807 (_linux_mod_SOURCES): ... this.
26808 (linux_mod_CFLAGS): Renamed to ...
26809 (_linux_mod_CFLAGS): ... this.
26810 (normal_mod_SOURCES): New variable.
26811 (normal_mod_CFLAGS): Likewise.
26812 (normal_mod_ASFLAGS): Likewise.
26813
268142003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
26815
26816 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
26817 possible.
26818
fe6b695a 26819 * kern/dl.c (pupa_dl_ref): Refer depending modules
ce5bf700 26820 recursively.
26821 (pupa_dl_unref): Unrefer depending modules recursively.
26822 Don't call pupa_dl_unload implicitly, because PUPA can crash if
26823 a module is unloaded before one depending on that module is
26824 unloaded.
26825 (pupa_dl_unload): Unload depending modules explicitly,
26826 if possible.
26827
c04da074 268282003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
26829
26830 * include/pupa/i386/pc/linux.h: New file.
26831 * loader/i386/pc/linux.c: Likewise.
f19dbdb7 26832
c04da074 26833 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
26834 Removed.
26835 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
26836 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
26837 of PUPA_CHAINLOADER_BOOT_SECTOR.
26838
26839 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
26840 (pupa_linux_prot_size): New variable.
26841 (pupa_linux_tmp_addr): Likewise.
26842 (pupa_linux_real_addr): Likewise.
26843 (pupa_linux_boot_zimage): New function.
26844 (pupa_linux_boot_bzimage): Likewise.
26845
26846 * kern/i386/pc/init.c (struct mem_region): New structure.
26847 (MAX_REGIONS): New macro.
26848 (mem_regions): New variable.
26849 (num_regions): Likewise.
26850 (pupa_os_area_addr): Likewise.
26851 (pupa_os_area_size): Likewise.
26852 (pupa_lower_mem): Likewise.
26853 (pupa_upper_mem): Likewise.
26854 (add_mem_region): New function.
26855 (compact_mem_regions): Likewise.
26856 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
26857 the size of the conventional memory and that of so-called upper
26858 memory (before the first memory hole).
26859 Instead of adding each found region to free memory, use
26860 add_mem_region and add them after removing overlaps.
26861 Also, add only 1/4 of the upper memory to free memory. The rest
26862 is used for loading OS images. Maybe this is ad hoc, but this
26863 makes it much easier to relocate OS images when booting.
26864
26865 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
26866 (pupa_enter_rescue_mode): Don't register initrd and module.
26867
26868 * kern/mm.c: Include pupa/dl.h.
26869
26870 * kern/main.c: Include pupa/file.h and pupa/device.h.
26871
26872 * kern/loader.c (pupa_loader_load_module_func): Removed.
26873 (pupa_loader_load_module): Likewise.
26874
26875 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
26876 ``.o''.
26877
26878 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
26879 (pupa_linux_tmp_addr): Likewise.
26880 (pupa_linux_real_addr): Likewise.
26881 (pupa_linux_boot_zimage): Likewise.
26882 (pupa_linux_boot_bzimage): Likewise.
26883
26884 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
26885 (pupa_upper_mem): Likewise.
26886 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
26887 module is too dangerous.
26888
26889 * include/pupa/loader.h (pupa_os_area_addr): Declared.
26890 (pupa_os_area_size): Likewise.
26891 (pupa_loader_set): Remove the first argument. Loader doesn't
26892 manage modules or initrd any longer.
26893 (pupa_loader_load_module): Removed.
26894
26895 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
26896 (linux_mod_SOURCES): New variable.
26897 (linux_mod_CFLAGS): Likewise.
26898
a13f9237 268992003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
26900
26901 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
26902 the length of a blocklist correctly.
26903
26904 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
26905 Use ioctl only if the OS file is a block device.
26906 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
26907 not very useful for normal files.
26908
26909 * kern/main.c (pupa_set_root_dev): New function.
26910 (pupa_load_normal_mode): Likewise.
26911 (pupa_main): Call those above.
26912
26913 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
26914 pupa_uint16_t.
26915
26916 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
26917
a5ffe966 269182003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
26919
26920 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
26921 (setup): Configure the installed partition information and the
26922 dl prefix.
26923
26924 * loader/i386/pc/chainloader.c (my_mod): New variable.
26925 (pupa_chainloader_unload): New function.
26926 (pupa_rescue_cmd_chainloader): Refer itself.
26927 (PUPA_MOD_INIT): Save its own module in MY_MOD.
26928
26929 * kern/i386/pc/startup.S (install_partition): Removed.
26930 (version_string): Likewise.
26931 (config_file): Likewise.
26932 (pupa_install_dos_part): New variable.
26933 (pupa_install_bsd_part): Likewise.
26934 (pupa_prefix): Likewise.
26935 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
26936
26937 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
26938 and pupa/misc.h.
26939 (make_install_device): New function.
26940 (pupa_machine_init): Set the dl prefix.
26941
26942 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
26943 (buf): Renamed to ...
26944 (linebuf): ... this.
26945 (pupa_rescue_cmd_prefix): New function.
26946 (pupa_rescue_cmd_insmod): Likewise.
26947 (pupa_rescue_cmd_rmmod): Likewise.
26948 (pupa_rescue_cmd_lsmod): Likewise.
26949 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
26950 rmmod and lsmod.
26951
26952 * kern/mm.c (pupa_memalign): If failed even after invalidating
26953 disk caches, unload unneeded modules and retry.
26954
26955 * kern/misc.c (pupa_memmove): New function.
26956 (pupa_memcpy): Removed.
26957 (pupa_strcpy): New function.
26958 (pupa_itoa): Made static.
26959
26960 * kern/dl.c (pupa_dl_iterate): New function.
26961 (pupa_dl_ref): Likewise.
26962 (pupa_dl_unref): Likewise.
26963 (pupa_dl_unload): Return if succeeded or not.
26964 (pupa_dl_unload_unneeded): New function.
26965 (pupa_dl_unload_all): Likewise.
26966 (pupa_dl_init): Renamed to ...
26967 (pupa_dl_set_prefix): ... this.
26968 (pupa_dl_get_prefix): New function.
26969
26970 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
26971 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
26972 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
26973 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
26974 (pupa_install_dos_part): Declared.
26975 (pupa_install_bsd_part): Likewise.
26976 (pupa_prefix): Likewise.
26977 (pupa_boot_drive): Likewise.
26978
26979 * include/pupa/types.h: Fix a typo.
26980
26981 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
26982 pupa_memmove.
26983 (pupa_memmove): Declared.
26984 (pupa_strcpy): Likewise.
26985
26986 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
26987 pupa_mod_init takes one argument, its own module.
26988 (pupa_dl_unload_unneeded): Declared.
26989 (pupa_dl_unload_all): Likewise.
26990 (pupa_dl_ref): Likewise.
26991 (pupa_dl_unref): Likewise.
26992 (pupa_dl_iterate): Likewise.
26993 (pupa_dl_init): Renamed to ...
26994 (pupa_dl_set_prefix): ... this.
26995 (pupa_dl_get_prefix): Declared.
26996
26997 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
f19dbdb7 26998 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
a5ffe966 26999 unloaded.
27000 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
27001 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
27002
27003 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
27004 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
27005
012d7999 270062003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
27007
27008 * util/i386/pc/pupa-setup.c (setup): Define the internal
27009 function find_first_partition_start at the top level, because GCC
27010 3.0.x cannot compile internal functions in deeper scopes
27011 correctly.
27012 (find_root_device): Use lstat instead of stat.
27013 Don't follow symbolic links.
27014 Fix the path-constructing code.
27015
27016 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
27017 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
27018 by a BLKGETSIZE ioctl first, because block devices don't fill
27019 the member st_mode of the structure stat on Linux.
27020 [__linux__] (linux_find_partition): Use a temporary buffer
27021 REAL_DEV for the working space. Copy it to DEV before returning.
27022 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
27023 buffer cache consistent.
27024 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
27025 strncmp. The previous value was merely wrong.
27026 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
27027
27028 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
27029 FAT size is 12. The previous value was merely wrong.
27030
27031 * kern/main.c (pupa_main): Don't split the starting message from
27032 newlines.
27033
27034 * kern/term.c (pupa_putchar): Put CR after LF instead of before
27035 LF, because BIOS goes crazy about character attributes in this
27036 case.
27037
1cc73a62 270382003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
27039
27040 * include/i386/pc/util/biosdisk.h: New file.
27041 * util/i386/pc/biosdisk.c: Likewise.
27042 * util/i386/pc/pupa-setup.c: Likewise.
f19dbdb7 27043
1cc73a62 27044 * Makefile.in (INCLUDE_DISTFILES): Added
27045 include/pupa/i386/pc/util/biosdisk.h.
27046 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
27047 directory util/i386/pc.
27048 (install-local): Added a rule for sbin_UTILITIES.
27049 (uninstall): Likewise.
27050
27051 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
27052
27053 * util/misc.c (xrealloc): New function.
27054 (pupa_malloc): Likewise.
27055 (pupa_free): Likewise.
27056 (pupa_realloc): Likewise.
27057 (pupa_stop): Likewise.
27058 (pupa_putchar): Likewise.
27059
27060 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
27061
27062 * include/pupa/util/misc.h (xrealloc): Declared.
27063
27064 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
27065 macro.
27066 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
27067 (PUPA_BOOT_MACHINE_BPB_END): ... this.
27068
27069 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
27070 [PUPA_UTIL] (pupa_fat_fini): Likewise.
27071
27072 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
27073 way should be implemented.
27074 [PUPA_UTIL] (pupa_fat_fini): Likewise.
27075
27076 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
27077 the size of NAME for safety.
27078 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
27079 0x88.
27080
27081 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
27082 (pupa_setup_SOURCES): Likewise.
27083
27084 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
27085
08b70fe8 270862002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
27087
27088 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
27089 bunch of pushl's from pusha, because this destroys the return
27090 value.
27091
62ddcc8f 270922002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
27093
27094 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
27095 This means that any missing prototypes could be fatal. Also, you
27096 must take care when writing assembly code. See the comments at
27097 the beginning of startup.S, for more details.
f19dbdb7 27098
62ddcc8f 27099 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
27100 compilation mechanism.
27101 (pupa_chainloader_real_boot): Likewise.
27102 (pupa_biosdisk_rw_int13_extensions): Likewise.
27103 (pupa_biosdisk_rw_standard): Likewise.
27104 (pupa_biosdisk_check_int13_extensions): Likewise.
27105 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
27106 (pupa_biosdisk_get_diskinfo_standard): Likewise.
27107 (pupa_get_memsize): Likewise.
27108 (pupa_get_mmap_entry): Likewise.
27109 (pupa_console_putchar): Likewise.
27110 (pupa_console_setcursor): Likewise.
27111 (pupa_getrtsecs): Use pushl instead of push.
27112
27113 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
27114 memory instead of the stack for a mmap entry, because some
27115 BIOSes may ignore the maximum size and overflow.
27116
27117 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
27118
27119 * genmk.rb (PModule#rule): Compile automatically generated
27120 sources with module-specific CFLAGS as well as other sources.
27121
9962ed99 271222002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
27123
27124 * configure.ac: Check ld.
27125 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
27126 respectively, before checking endianness and sizes.
27127
27128 * Makefile.in (LD): New variable.
f19dbdb7 27129
abdfc3c5 271302002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
27131
27132 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
27133
6a161fa9 271342002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
27135
27136 * Changelog: New file.
27137