]> git.proxmox.com Git - grub2.git/blame - ChangeLog
Fix -Wshadow warning with emu build on NetBSD.
[grub2.git] / ChangeLog
CommitLineData
95ac3c73
GS
12010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
2
3 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
4 variable index into p_index to suppress a warning with -Wshadow.
5
7d8c0213
BC
62010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
7
8 * INSTALL: Added flex >= 2.5.35 requirement.
9
db4d5813
VS
102010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
11
12 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
13
f24f4300
VS
142010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
15
16 cmostest support.
17
18 * commands/i386/cmostest.c: New file.
19 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
20 (cmostest_mod_SOURCES): New variable.
21 (cmostest_mod_CFLAGS): Likewise.
22 (cmostest_mod_LDFLAGS): Likewise.
23 * conf/i386-pc.rmk: Likewise.
24 * docs/grub.texi (Vendor power-on keys): New section.
25 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
26 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
27 and GRUB_BUTTON_CMOS_ADDRESS.
28 * util/grub.d/00_header.in: Handle powering-on by separate button.
29
ad603f61
VS
302010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
31
32 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
33 Removed drawing_scrollbar argument. All users updated
34 Fixes #29792.
35 Reported by Jo Shields
36
3ecb080a
VS
372010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
38
39 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
40 buffer since gfxterm handles double repaint.
41
5f2316c1
VS
422010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
43
44 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
45 * term/gfxterm.c (real_scroll): Likewise.
46
9a25f885
VS
472010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
48
49 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
50 before calling BIOS.
51
39fbb79a
VS
522010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
53
54 * include/grub/i18n.h: Always enable grub_gettext.
55
228cfa97
VS
562010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
57
58 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
59 partition naming style.
60
21717c8f
CW
612010-05-21 Colin Watson <cjwatson@ubuntu.com>
62
63 * util/grub-mkconfig.in: Fix handling of -o so that it works when
64 not the first option.
65
c0f48e65
CW
662010-05-20 Colin Watson <cjwatson@ubuntu.com>
67
68 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
69
96779aec
CW
702010-05-20 Colin Watson <cjwatson@ubuntu.com>
71
72 * util/misc.c: Move inclusion of <limits.h> to ...
73 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
74
fa9d256e
GS
752010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
76
77 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
78 Fix merge error in NetBSD code.
79 (find_partition_start) [__NetBSD__]: Likewise.
80
123b7a85
BC
812010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
82
83 Fix grub-mkrescue usage unit testing.
84
85 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
86
74276c0d
CF
872010-05-18 Christian Franke <franke@computer.org>
88
89 * util/grub.d/10_windows.in: Use path names instead of
90 drive letters to prevent warning from Cygwin 1.7.
91 Add drivemap command to menuentry if needed.
92
c4f7b523
ST
932010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
94
95 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
96 gnumach and gnumach.gz.
97
95b97950
VS
982010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
99
100 * include/grub/i18n.h (gettext): Inline instead of using #define.
101 (grub_gettext): Likewise.
102 (_): Likewise.
103
01b8d2d7
VS
1042010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
105
106 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
107 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
108 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
109 (main): Add a slash after pkglibdirroot.
110
654e1d1e
VS
1112010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
112
113 * util/grub-install.in: Add missing "in" keyword.
114
26966aeb
VS
1152010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
116
117 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
118 Reported by: Seth Goldberg.
119
75006747
VS
1202010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
121
122 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
123
74cbf5bd
CW
1242010-05-18 Colin Watson <cjwatson@ubuntu.com>
125
126 * configure.ac: Check for Linux device-mapper support.
127
128 * util/hostdisk.c (device_is_mapped): New function.
129 (find_partition_start): New function, partly broken out from
130 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
131 device-mapper support added.
132 (linux_find_partition): Use find_partition_start.
133 (convert_system_partition_to_system_disk): Add `st' argument.
134 Support Linux /dev/mapper/* devices if device-mapper support is
135 available; only DM-RAID devices are understood at present.
136 (find_system_device): Add `st' argument. Pass it to
137 convert_system_partition_to_system_disk.
138 (grub_util_biosdisk_get_grub_dev): Pass stat result to
139 find_system_device and convert_system_partition_to_system_disk. Use
140 find_partition_start.
141
142 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
143 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
144 * util/deviceiter.c [__linux__]: Define MINOR.
145 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
146 * util/mkdevicemap.c (grub_putchar): New function.
147 (grub_getkey): New function.
148 (grub_refresh): New function.
149 (main): Set debug=all if -v -v is used.
150
355b51e9
CW
1512010-05-18 Colin Watson <cjwatson@ubuntu.com>
152
153 Fix build with non-GNU libcs.
154
155 * util/misc.c (canonicalize_file_name): Move to ...
156 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
157 grub_make_system_path_relative_to_its_root.
158
7fb5c25f
CW
1592010-05-18 Colin Watson <cjwatson@ubuntu.com>
160
161 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
162 we handle finding grub-mkimage. Default to finding grub-mkimage in
163 ${bindir} with program_transform_name applied, and provide a
164 --grub-mkimage option to override this.
165
1d3293d6
VS
1662010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
167
168 Remove grub-mkisofs.
169
170 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
171 (grub_mkisofs_SOURCES): Removed.
172 (grub_mkisofs_CFLAGS): Removed.
173 * util/mkisofs/defaults.h: Removed.
174 * util/mkisofs/eltorito.c: Likewise.
175 * util/mkisofs/exclude.h: Likewise.
176 * util/mkisofs/hash.c: Likewise.
177 * util/mkisofs/include/: Likewise.
178 * util/mkisofs/include/fctldefs.h: Likewise.
179 * util/mkisofs/include/mconfig.h: Likewise.
180 * util/mkisofs/include/prototyp.h: Likewise.
181 * util/mkisofs/include/statdefs.h: Likewise.
182 * util/mkisofs/iso9660.h: Likewise.
183 * util/mkisofs/joliet.c: Likewise.
184 * util/mkisofs/match.c: Likewise.
185 * util/mkisofs/match.h: Likewise.
186 * util/mkisofs/mkisofs.c: Likewise.
187 * util/mkisofs/mkisofs.h: Likewise.
188 * util/mkisofs/msdos_partition.h: Likewise.
189 * util/mkisofs/multi.c: Likewise.
190 * util/mkisofs/name.c: Likewise.
191 * util/mkisofs/rock.c: Likewise.
192 * util/mkisofs/tree.c: Likewise.
193 * util/mkisofs/write.c: Likewise.
194
5dde9afe
VS
1952010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
196
197 Unify grub-mkimage accross platforms.
198
199 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
200 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
201 (grub_mkelfimage_SOURCES): Removed.
202 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
203 (util/grub-mkimage.c_DEPENDENCIES): .. this.
204 (bin_UTILITIES): Add grub-mkimage.
205 (grub_mkimage_SOURCES): New variable.
206 (kernel_img_HEADERS): Remove machine/kernel.h.
207 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
208 (pkglib_PROGRAMS): Add kernel.img.
209 (kernel_img_HEADERS): Add machine/kernel.h.
210 (kernel_img_FORMAT): Removed.
211 (bin_UTILITIES): Remove grub-mkimage.
212 (grub_mkimage_SOURCES): Removed.
213 (grub_mkimage_CFLAGS): Likewise.
214 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
215 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
216 (pkglib_PROGRAMS): Add kernel.img.
217 (bin_UTILITIES): Remove grub-mkimage.
218 (grub_mkimage_SOURCES): Removed.
219 (grub_mkimage_CFLAGS): Likewise.
220 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
221 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
222 (pkglib_PROGRAMS): Add kernel.img.
223 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
224 (pkglib_PROGRAMS): Add kernel.img.
225 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
226 (grub_mkimage_SOURCES): Removed.
227 (grub_mkimage_CFLAGS): Likewise.
228 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
229 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
230 (pkglib_PROGRAMS): Add kernel.img.
231 (bin_UTILITIES): Remove grub-mkimage.
232 (grub_mkimage_SOURCES): Removed.
233 (grub_mkimage_CFLAGS): Likewise.
234 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
235 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
236 (grub_mkimage_SOURCES): Removed.
237 (grub_mkimage_CFLAGS): Likewise.
238 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
239 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
240 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
241 (grub_pe32_optional_header): ... this.
242 (grub_pe64_optional_header): ... and this. All users updated.
243 (GRUB_PE32_PE32_MAGIC): Split into ..
244 (GRUB_PE32_PE32_MAGIC): .. this.
245 (GRUB_PE32_PE64_MAGIC): .. and this.
246 (GRUB_PE32_SIGNATURE_SIZE): New definition.
247 * include/grub/elf.h (PT_GNU_STACK): New definition.
248 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
249 * include/grub/i386/efi/kernel.h: Likewise.
250 * include/grub/i386/kernel.h: Likewise.
251 * include/grub/i386/pc/kernel.h: Likewise.
252 * include/grub/i386/qemu/boot.h: Likewise.
253 * include/grub/mips/kernel.h: Likewise.
254 * include/grub/mips/qemu-mips/kernel.h: Likewise.
255 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
256 * include/grub/powerpc/kernel.h: Likewise.
257 * include/grub/sparc64/ieee1275/boot.h: Likewise.
258 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
259 * include/grub/sparc64/kernel.h: Likewise.
260 * include/grub/x86_64/efi/kernel.h: Likewise.
261 * include/grub/x86_64/kernel.h: Likewise.
262 * include/grub/offsets.h: New file.
263 * include/grub/kernel.h (grub_module_info): Split into ...
264 (grub_module_info32): ... this.
265 (grub_module_info64): ... and this.
266 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
267 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
268 (grub_boot_blocklist): Moved from here ...
269 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
270 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
271 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
272 * include/grub/types.h (grub_target_to_host16): Removed.
273 (grub_target_to_host32): Likewise.
274 (grub_target_to_host64): Likewise.
275 (grub_host_to_target16): Likewise.
276 (grub_host_to_target32): Likewise.
277 (grub_host_to_target64): Likewise.
278 (grub_host_to_target_addr): Likewise.
279
280 Support grub-mkrescue for efi, coreboot and qemu.
281
282 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
283 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
284 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
285 * util/grub-mkrawimage.c: Moved from here ...
286 * util/grub-mkimage.c: ... here. All users updated.
287 (ALIGN_ADDR): Use image_target.
288 (TARGET_NO_FIELD): New const.
289 (image_target_desc): New type.
290 (image_targets): New array.
291 (grub_target_to_host64): Use image_target.
292 (grub_target_to_host32): Likewise.
293 (grub_target_to_host16): Likewise.
294 (grub_host_to_target64): Likewise.
295 (grub_host_to_target32): Likewise.
296 (grub_host_to_target16): Likewise.
297 (grub_host_to_target_addr): Likewise.
298 (generate_image): Handle multiimage.
299 (main): Require -O parameter. All users updated.
300 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
301 util/efi/grub-mkimage.c
302 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
303 New option --rom-directory.
304 Use xorriso.
305 * util/i386/efi/grub-mkimage.c: Removed.
306 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
307 (grub_target_to_host32): Likewise.
308 (grub_target_to_host64): Likewise.
309 (grub_host_to_target16): Likewise.
310 (grub_host_to_target32): Likewise.
311 (grub_host_to_target64): Likewise.
312 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
313 (grub_target_to_host32): Likewise.
314 (grub_target_to_host64): Likewise.
315 (grub_host_to_target16): Likewise.
316 (grub_host_to_target32): Likewise.
317 (grub_host_to_target64): Likewise.
318
f4fc97d0
BC
3192010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
320
321 Source tree is reorganized for emu build.
322
323 * include/grub/util/console.h: Move from here...
324 * include/grub/emu/console.h: ...to here.
325 * include/grub/util/getroot.h: Move from here...
326 * include/grub/emu/getroot.h: ...to here.
327 * include/grub/util/hostdisk.h: Move from here...
328 * include/grub/emu/hostdisk.h: ...to here.
329 * util/console.c: Move from here...
330 * kern/emu/console.c: ...to here.
331 * util/getroot.c: Move from here...
332 * kern/emu/getroot.c: ...to here.
333 * util/grub-emu.c: Move from here...
334 * kern/emu/main.c: ...to here.
335 * util/hostdisk.c: Move from here...
336 * kern/emu/hostdisk.c: ...to here.
337 * util/hostfs.c: Move from here...
338 * kern/emu/hostfs.c: ...to here.
339 * util/mm.c: Move from here...
340 * kern/emu/mm.c: ...to here.
341 * util/pci.c: Move from here...
342 * bus/emu/pci.c: ...to here.
343 * util/sdl.c: Move from here...
344 * video/emu/sdl.c: ...to here.
345 * util/time.c: Move from here...
346 * kern/emu/time.c: ...to here.
347 * util/usb.c: Move from here...
348 * bus/usb/emu/usb.c: ...to here.
349
350 * include/grub/emu/misc.h: New header for grub-emu functions.
351 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
352
353 * conf/any-emu.rmk: Rule updates for above renames.
354 * conf/common.rmk: Likewise.
355 * conf/i386-pc.rmk: Likewise.
356 * conf/i386-qemu.rmk: Likewise.
357 * conf/mips.rmk: Likewise.
358 * conf/sparc64-ieee1275.rmk: Likewise.
359 * conf/x86-efi.rmk: Likewise.
360
361 * disk/lvm.h: #include updates for above renames.
362 * util/grub-mkrelpath.c: Likewise.
363 * util/grub-probe.c: Likewise.
364 * util/i386/pc/grub-setup.c: Likewise.
365 * util/sparc64/ieee1275/grub-setup.c: Likewise.
366 * kern/emu/console.c: Likewise.
367 * kern/emu/getroot.c: Likewise.
368 * kern/emu/hostdisk.c: Likewise.
369 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
370
371 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
372 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
373 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
374 * util/misc.c: Remove grub-emu functions.
375
cced9145
VS
3762010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
377
378 Fix gfxmenu crash.
379 Reported by: Thorsten Grützmacher.
380
381 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
382 timeout hook.
383 (circprog_set_property): Register and unregister timeout hook.
384 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
385 (label_destroy): Free template. and unregister hook.
386 (label_set_state): New function.
387 (label_set_property): Handle templates and hooks.
388 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
389 timeout hook.
390 (progress_bar_set_property): Register and unregister timeout hook.
391 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
392 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
393 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
394 (update_timeout_visit): Removed.
395 (update_timeouts): New function.
396 (redraw_timeouts): Likewise.
397 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
398 (grub_gfxmenu_clear_timeout): Likewise.
399 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
400 (grub_gfxmenu_timeout_notify): Likewise.
401 (grub_gfxmenu_timeout_notifications): New external variable.
402 (grub_gfxmenu_timeout_register): New function.
403 (grub_gfxmenu_timeout_unregister): Likewise.
404
c6e5caab
VS
4052010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
406
407 Transform (broken) vga terminal into (working) vga video driver.
408
409 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
410 video/i386/pc/vga.c.
411 * include/grub/video.h (grub_video_driver_id):
412 Add GRUB_VIDEO_DRIVER_VGA.
413 * term/i386/pc/vga.c: Renamed to ...
414 * video/i386/pc/vga.c: ...this
415 (DEBUG_VGA): Removed.
416 (CHAR_WIDTH): Likewise.
417 (CHAR_HEIGHT): Likewise.
418 (TEXT_WIDTH): Likewise.
419 (TEXT_HEIGHT): Likewise.
420 (DEFAULT_FG_COLOR): Likewise.
421 (DEFAULT_BG_COLOR): Likewise.
422 (colored_char): Likewise.
423 (xpos): Likewise.
424 (ypos): Likewise.
425 (cursor_state): Likewise.
426 (fg_color): Likewise.
427 (bg_color): Likewise.
428 (text_buf): Likewise.
429 (page): Likewise.
430 (font): Likewise.
431 (framebuffer): New variable.
432 (set_read_map): Disabled.
433 (setup): New variable.
434 (is_target): Likewise.
435 (grub_vga_mod_init): Likewise.
436 (grub_vga_mod_fini): Likewise.
437 (check_vga_mem): Likewise.
438 (write_char): Likewise.
439 (write_cursor): Likewise.
440 (scroll_up): Likewise.
441 (grub_vga_putchar): Likewise.
442 (grub_vga_getcharwidth): Likewise.
443 (grub_vga_getwh): Likewise.
444 (grub_vga_getxy): Likewise.
445 (grub_vga_gotoxy): Likewise.
446 (grub_vga_cls): Likewise.
447 (grub_vga_setcolorstate): Likewise.
448 (grub_vga_setcursor): Likewise.
449 (grub_video_vga_init): New function.
450 (grub_video_vga_setup): Likewise.
451 (grub_video_vga_fini): Likewise.
452 (update_target): Likewise.
453 (grub_video_vga_blit_bitmap): Likewise.
454 (grub_video_vga_blit_render_target): Likewise.
455 (grub_video_vga_set_active_render_target): Likewise.
456 (grub_video_vga_get_active_render_target): Likewise.
457 (grub_video_vga_swap_buffers): Likewise.
458 (grub_video_vga_set_palette): Likewise.
459 (grub_video_vga_get_info_and_fini): Likewise.
460 (grub_vga_term): Removed.
461 (grub_video_vga_adapter): New variable.
462 (GRUB_MOD_INIT): Register a video driver instead of terminal.
463 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
464
2bf61a98
VS
4652010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
466
467 * video/readers/jpeg.c: Indented.
468
09ddcd11
VS
4692010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
470
471 Various jpeg cleanups.
472
473 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
474 (grub_jpeg_decode_quan_table): Use sizeof.
475 (grub_jpeg_decode_du): Use ARRAY_SIZE.
476
e5507505
PH
4772010-05-05 Peter Hurley <No e-mail available> (tiny change)
478
479 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
480 tables. Ignore non-last ac bit.
481 (grub_jpeg_decode_quan_table): Likewise.
482
7e720a9b
VS
4832010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
484
485 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
486 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
487 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
488 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
489 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
490 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
491
a7fc080b
VS
4922010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
493
494 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
495 error.
496
2bf6012d
VS
4972010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
498
499 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
500
265d68cd
VS
5012010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
502
503 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
504 condition.
505
5062010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7dd5a111
VS
507
508 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
509 part.
510
265d68cd 5112010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9b058d52
VS
512
513 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
514 pointers.
515
265d68cd 5162010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
25893831
VS
517
518 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
519
d1b61374
CF
5202010-05-01 Christian Franke <franke@computer.org>
521
522 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
523 Remove broken Cygwin path conversion.
524 * util/misc.c: [__CYGWIN__] Add include and define.
525 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
526 for Cygwin 1.7.
527 (make_system_path_relative_to_its_root): Simplify loop, replace early
528 return by break.
529 [__CYGWIN__] Add conversion to win32 path.
530 Include "/" case in trailing slash removal.
531
3558c6e9
VS
5322010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
533
534 * kern/main.c (grub_load_config): Fix copy-pasted comment.
535 Reported by: Seth Goldberg
536
f5f3ff93
VS
5372010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
538
539 * commands/help.c (grub_cmd_help): Fix a typo.
540 Reported by: Seth Goldberg
541
d8b5cd40
VS
5422010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
543
544 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
545 name and add N_.
546 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
547 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
548 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
549 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
550 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
551 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
552 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
553 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
554 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
555 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
556 * normal/context.c (GRUB_MOD_INIT): Likewise.
557 * normal/main.c (GRUB_MOD_INIT): Likewise.
558 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
559 * term/serial.c (GRUB_MOD_INIT): Likewise.
560 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
561
88c14915
VS
5622010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
563
564 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
565 extra == 0.
566
165134bc
VS
5672010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
568
569 * commands/iorw.c: New file.
570 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
571 (iorw_mod_SOURCES): New variable.
572 (iorw_mod_CFLAGS): Likewise.
573 (iorw_mod_LDFLAGS): Likewise.
574
c5ac9b32
VS
5752010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
576
577 Hotkey support
578
579 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
580 * normal/main.c (hotkey_aliases): New variable.
581 (grub_normal_add_menu_entry): Parse "--hotkey".
582 * normal/menu_text.c (run_menu): Handle hotkeys.
583
ce60689c
VS
5842010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
585
586 * kern/i386/coreboot/init.c (grub_machine_init): Call
587 grub_machine_mmap_init on qemu.
588
0359d006
VS
5892010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
590
591 * boot/i386/qemu/boot.S: Add a missing .code16.
592
7819a456
VS
5932010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
594
595 Use LBIO on coreboot.
596
597 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
598 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
599 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
600 New declaration.
601 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
602 grub_machine_mmap_init on coreboot.
603 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
604 GRUB_LINUXBIOS_MEMBER_LINK.
605 (grub_machine_mmap_iterate): Fix declaration.
606 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
607
7210dca9
VS
6082010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
609
610 Split coreboot and multiboot ports.
611
612 * conf/i386-multiboot.rmk: New file.
613 * configure.ac: Add multiboot port.
614 * include/grub/i386/multiboot/boot.h: New file.
615 * include/grub/i386/multiboot/console.h: Likewise.
616 * include/grub/i386/multiboot/init.h: Likewise.
617 * include/grub/i386/multiboot/kernel.h: Likewise.
618 * include/grub/i386/multiboot/loader.h: Likewise.
619 * include/grub/i386/multiboot/memory.h: Likewise.
620 * include/grub/i386/multiboot/serial.h: Likewise.
621 * include/grub/i386/multiboot/time.h: Likewise.
622 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
623 * loader/multiboot.c: Likewise.
624 * loader/multiboot_mbi2.c: Likewise.
625 * util/grub-mkrescue.in: Generate multiboot rescue.
626
6f8aaf68
VS
6272010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
628
3080f7a7
VS
629 * kern/parser.c (grub_parser_execute): Cope with read-only config.
630
6312010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
632
633 Merge handling of input and output terminals. Fix a hang.
6f8aaf68
VS
634
635 * commands/terminal.c (abstract_terminal): New struct.
636 (handle_command): New function. Based on grub_cmd_terminal_input.
637 (grub_cmd_terminal_input): Use handle_command.
638 (grub_cmd_terminal_output): Use handle_command.
639
a8ebb841
BC
6402010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
641
642 Fix comment handling.
643
644 * tests/grub_script_comments.in: New testcase.
645 * conf/tests.rmk: Rules for new testcase.
646 * script/yylex.l: Updated flex rules.
647
bb06ba08
ST
6482010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
649
650 * docs/grub.texi (play): Document that zero pitches produce rests.
c76a1838
ST
651 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
652 if argc is 1.
bb06ba08 653
cc9d2425
VS
6542010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
655
656 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
657 autogen issues.
658
460d8402
CF
6592010-04-26 Christian Franke <franke@computer.org>
660
661 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
662 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
663 (grub_get_prefix): Remove function.
664 * util/grub-emu.c (main): Replace grub_get_prefix () call by
665 make_system_path_relative_to_its_root ().
666 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
667
553c01f9
CF
6682010-04-24 Christian Franke <franke@computer.org>
669
670 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
671 (kernel_img_LDFLAGS): Remove -static-libgcc.
672
2aec1692
CF
6732010-04-24 Christian Franke <franke@computer.org>
674
675 * configure.ac: Do not CHECK_BSS_START_SYMBOL
676 and CHECK_END_SYMBOL if grub-emu is built.
677 Unset TARGET_OBJ2ELF if grub-emu is built
678 without module support.
679
f67dc308
JS
6802010-04-24 Jiro SEKIBA <jir@unicus.jp>
681
682 Nilfs2 support.
683
684 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
685 (grub_fstest_SOURCES): Likewise.
686 (pkglib_MODULES): Add nilfs2.mod.
687 (nilfs2_mod_SOURCES): New variable.
688 (nilfs2_mod_CFLAGS): Likewise.
689 (nilfs2_mod_LDFLAGS): Likewise.
690 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
691 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
692 * fs/nilfs2.c: New file.
693
4ba8d354
VS
6942010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
695
696 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
697 is not supported.
698
0d2c20c6
GS
6992010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
700
701 Add grub-mkconfig support for NetBSD.
702
703 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
704 * util/grub-mkconfig.in: export new NetBSD specific variables.
705 * po/POTFILES-shell: added 10_netbsd.in.
706 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
707
bc4a2d83
BC
7082010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
709
710 Fix emu build with grub-emu-pci and grub-emu-modules.
711
712 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
713 functions.
714 * include/grub/libpciaccess.h: New file.
715 * conf/any-emu.rmk: Update kernel headers for emu build.
716
f48c87aa
VS
7172010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
718
719 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
720
18959385
VS
7212010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
722
723 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
724
0037de3f
VS
7252010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
726
727 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
728 Retrieve chosen/bootpath if bootpath isn't hardcoded.
729 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
730 util/ieee1275/ofpath.c.
731 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
732 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
733 * include/grub/sparc64/ieee1275/boot.h
734 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
735 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
736 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
737 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
738 const char *.
739 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
740 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
741 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
742 install.
743
38e55e90
GS
7442010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
745
746 * util/grub-mkconfig.in: Corrected two == equality tests.
747 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
748 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
749 expect a number appended to it.
750 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
751 expects a number appended to it.
752
a9e6ff28
VS
7532010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
754
755 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
756
0b830b8f
VS
7572010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
758
759 * util/hostdisk.c (make_device_name): Change to new partition naming.
760
0973daeb
VS
7612010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
762
763 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
764
460d8402 7652010-04-17 Christian Franke <franke@computer.org>
ebfe7eb4
CF
766
767 * Makefile.in: Add missing localedir setting.
768
0b456309
CW
7692010-04-14 Colin Watson <cjwatson@ubuntu.com>
770
771 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
772 mistake in r2156. Noticed by Anthony Fok.
773
774 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
775 @localedir@.
776 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
777
08f46d62
BC
7782010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
779
780 Fix a spurious, uninitialized variable warning.
781
782 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
783 Initialize variable, shdr.
784 (grub_freebsd_load_elfmodule): Likewise.
785 (grub_freebsd_load_elf_meta): Likewise.
786
8c4a72d4
BC
7872010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
788
789 Fix for escaped dollar in double quoted strings.
790
791 * script/yylex.l: Updated flex rules.
792 * conf/tests.rmk: Rule for new testcase.
793 * tests/grub_script_dollar.in: New testcase.
794
ce44826e
CPE
7952010-04-13 Carles Pina i Estany <carles@pina.cat>
7962010-04-13 Colin Watson <cjwatson@ubuntu.com>
797
798 Enclose all translated strings in grub.cfg in single quotes, and
799 escape them appropriately (Ubuntu bug #552921).
800
801 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
802 * util/grub.d/10_hurd.in: Use it.
803 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
804 * util/grub.d/10_linux.in (linux_entry): Likewise.
805
4b0cd8f8
VS
8062010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
807
808 Fix cygwin compilation.
809
810 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
811 * include/grub/misc.h (__register_frame_info)
812 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
813 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
814 * kern/misc.c (__register_frame_info)
815 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
816 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
817
01fcf061
VS
8182010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
819
820 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
821
5d04b11e
VS
8222010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
823
824 Unify libgcc processing.
825
826 * Makefile.in (kernel_img_LDFLAGS): New variable.
827 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
828 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
829 overwriting.
830 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
831 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
832 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
833 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
834 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
835 overwriting. Remove -lgcc and -static-libgcc
836 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
837 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
838 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
839 (kernel_img_LDFLAGS): Append instead of overwriting.
840 Remove -lgcc and -static-libgcc
841 * conf/sparc64-ieee1275.rmk: Likewise.
842 * include/grub/powerpc/libgcc.h: Move to ...
843 * include/grub/libgcc.h: .. this.
844 * include/grub/libgcc.h: Don't export most of the function on x86.
845 (__bswapsi2): New export.
846 (__bswapdi2): Likewise.
847 * include/grub/mips/libgcc.h: Removed.
848 * include/grub/sparc64/libgcc.h: Likewise.
849
b7f3ac29
VS
8502010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
851
852 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
853 disk_info_msg (conflicts with gettexting into languages with cases).
854
2c7031b1
GS
8552010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
856
857 Add grub-probe support for NetBSD.
858
859 * util/getroot.c (find_root_device): Convert block device to
860 character device on NetBSD.
861 * util/probe.c (probe): Require character device on NetBSD.
862 * util/hostdisk.c: NetBSD specific headers.
863 (configure_device_driver): new function to tune device driver
864 parameters (currently only for NetBSD floppy driver).
865 (grub_util_biosdisk_open): NetBSD specific code (get disk size
866 via disklabel ioctl).
867 (open_device): call configure_device_driver on NetBSD.
868 (convert_system_partition_to_system_disk): NetBSD specific code.
869 (device_is_wholedisk): Likewise.
870 (grub_util_biosdisk_get_grub_dev): Likewise.
871 (make_device_name): Fixed a typo in bsd_part_str.
872 * configure.ac: check for opendisk() and getrawpartition() on
873 NetBSD and set LIBUTIL.
874 * Makefile.in: add LIBUTIL to LIBS.
875
f516290c
BC
8762010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
877
878 Documentation fix.
879
880 * util/grub-script-check.c: Better help message.
881
d8dcc0df
BC
8822010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
883
884 Fix FreeBSD build.
885
886 * configure.ac: Flex version check.
887 * conf/common.rmk: Add -Wno-error to sh.mod.
888 * script/yylex.l: Remove all #pragma.
889
6734334a
VS
8902010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
891
892 * include/grub/util/misc.h (canonicalise_file_name): Add missing
893 prototype.
894 Reported by: Seth Goldberg.
895
daea6abd
VS
8962010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
897
898 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
899 Rename "module" to "module2".
900 Reported by: Seth Goldberg.
901
f2fd9d2b
VS
9022010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
903
904 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
905 EXPORT_FUNC.
906 Reported by: Seth Goldberg.
907
be124579
VS
9082010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
909
910 * lib/posix_wrap/locale.h: Add missing file.
911 Reported by: Seth Goldberg.
912
ef5da797
VS
9132010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
914
915 grub-emu module load support.
916
917 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
918 NO_DYNAMIC_MODULES switched to this.
919 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
920 (CFLAGS): Likewise.
921 * conf/any-emu.rmk: Generate symlist.
922 (kernel_img_HEADERS): Add util/datetime.h.
923 (kernel_img_HEADERS) [sdl]: Add sdl.h.
924 (kernel_img_HEADERS) [libusb]: Add libusb.h.
925 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
926 kern/$(target_cpu)/cache.S.
927 * configure.ac (grub-emu-modules): New option.
928 * genmk.rb: Handle multiple source lists.
929 * include/grub/sdl.h: New file.
930 * include/grub/libusb.h: Likewise.
931 * util/grub-emu.c (main): Hanle (host) root.
932 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
933 GRUB_ERR_UNKNOWN_DEVICE.
934 * util/misc.c: Move mm functions to ...
935 * util/mm.c: ... here. All users updated.
936
47822096
VS
9372010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
938
939 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
940 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
941 missing files.
942 (maintainer-clean): Remove libgcrypt-grub.
943
5d7e7445
VS
9442010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
945
946 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
947
25f4e252
EC
9482010-04-09 EFI Coder <eficoder@hotmail.com>
949
950 * normal/menu_text.c (print_message): Clean up the message and show
951 the Fn information when on EFI
952 * term/efi/console.c (grub_console_checkkey): Add F4 support.
953
027de555
VS
9542010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
955
956 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
957 All users updated.
958 * normal/crypto.c (read_crypto_list): Likewise.
959 * normal/dyncmd.c (read_command_list): Likewise.
960 * normal/term.c (read_terminal_list): Likewise.
961 * normal/main.c (read_lists): Use explicit prefix.
962 (read_lists_hook): Use read_lists.
963 (grub_normal_execute): Likewise.
964
47779711
VS
9652010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
966
967 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
968 Reported by: Thomas Schmitt.
969 Add -no-emul-boot to grub-mkisofs parameters.
970
1118c32e
VS
9712010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
972
973 * font/font.c: Indented.
974
7d652447
BC
9752010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
976
977 Elif support to GRUB script (by Deepak Vankadaru).
978
979 * tests/grub_script_if.in: New testcase.
980 * conf/tests.rmk: Rule for new testcase.
981 * script/parser.y: Grammar rules for elif.
982
34bb22df
BC
9832010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
984
985 While and until loops support to GRUB script.
986
987 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
988 (grub_script_create_cmdwhile): New function prototype.
989 (grub_script_execute_cmdwhile): New function prototype.
990 * script/execute.c (grub_script_execute_cmdwhile): New function.
991 * script/parser.y (command): New commands.
992 (whilecmd): New grammar rule.
993 (untilcmd): New grammar rule.
994 * script/script.c (grub_script_create_cmdwhile): New function.
995 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
996 function.
997
998 * tests/grub_script_while1.in: New testcase.
999 * conf/tests.rmk: Rule for new testcase.
1000
e215d8e0
VS
10012010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
1002
1003 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
1004 as *.jpg.
1005
d7c43ba1
MV
10062010-04-09 Mario Vazquez <mariovazq@gmail.com>
1007
1008 GRUB_BACKGROUND support.
1009
1010 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
1011 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
1012
d64795c0
VS
10132010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
1014
1015 Load fonts and modules for gfxmenu in grub-mkconfig.
d7c43ba1 1016 Idea by: Mario Vazquez
d64795c0
VS
1017
1018 * util/grub.d/00_header.in: Load pf2 and image modules.
1019
f267f83a
VS
10202010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
1021
1022 grub-mkconfig multiple terminal support.
1023
1024 * util/grub-mkconfig.in: Handle multiple terminals correctly.
1025 * util/grub.d/00_header.in: Likewise.
1026
b7841ceb
VS
10272010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
1028
1029 * Makefile.in: Specify files explicitly instead of using $< and $@ since
1030 we use cd $(srcdir).
1031
df60998c
CW
10322010-04-08 Colin Watson <cjwatson@ubuntu.com>
1033
1034 * util/grub.d/10_linux.in: Only use the first word of
1035 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
1036 spaces in GRUB_DISTRIBUTOR.
1037 * util/grub.d/10_kfreebsd.in: Likewise.
1038 * util/grub.d/10_hurd.in: Likewise.
1039
fa09c82e
BC
10402010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
1041
14e18ae3 1042 Fix unit testing framework for Qemu 0.12.
fa09c82e
BC
1043
1044 * tests/util/grub-shell.in: Remove -serial stdio option.
1045
daf892b3
BC
10462010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
1047
1048 POSIX header file wrappers.
1049
1050 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
1051 equivalents.
1052 * lib/posix_wrap/ctype.h: Likewise.
1053 * lib/posix_wrap/errno.h: Likewise.
1054 * lib/posix_wrap/langinfo.h: Likewise.
1055 * lib/posix_wrap/limits.h: Likewise.
1056 * lib/posix_wrap/localcharset.h: Likewise.
1057 * lib/posix_wrap/stdint.h: Likewise.
1058 * lib/posix_wrap/stdio.h: Likewise.
1059 * lib/posix_wrap/stdlib.h: Likewise.
1060 * lib/posix_wrap/string.h: Likewise.
1061 * lib/posix_wrap/sys/types.h: Likewise.
1062 * lib/posix_wrap/unistd.h: Likewise.
1063 * lib/posix_wrap/wchar.h: Likewise.
1064 * lib/posix_wrap/wctype.h: Likewise.
1065 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
1066 (grub_script.yy.h): Likewise.
1067 * script/yylex.l: Remove POSIX emulation #defines.
1068 * Makefile.in (POSIX_CFLAGS): New variable.
1069 (GNULIB_UTIL_CFLAGS): Likewise.
1070
1071 Regexp support.
1072
1073 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
1074 (regexp_mod_SOURCES): New variable.
1075 (regexp_mod_CFLAGS): Likewise.
1076 (regexp_mod_LDFLAGS): Likewise.
1077 * commands/regexp.c: New file.
1078 * gnulib/regcomp.c: New file. Imported from gnulib.
1079 * gnulib/regex.c: Likewise.
1080 * gnulib/regex_internal.c: Likewise.
1081 * gnulib/regex_internal.h: Likewise.
1082 * gnulib/regexec.c: Likewise.
1083 * gnulib/regex.h: Likewise.
1084
974ac4f7
VS
10852010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
1086
1087 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
1088 unsupported video mode types.
1089
2622c3ff
VS
10902010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
1091
1092 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
1093
064cb524
VS
10942010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
1095
1096 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
1097 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
1098
a8c3b552
VS
10992010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
1100
1101 Remove unused grub_vga_get_font.
1102
1103 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
1104 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
1105
187bbe3d
GS
11062010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
1107
1108 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
1109 * include/grub/misc.h: Likewise.
1110
b9396631
GS
11112010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
1112
1113 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
1114 for which failure is fatal.
1115
50479feb
GS
11162010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
1117
1118 * util/grub-install.in: Use mkdir -p to create grub directory.
1119 * util/i386/efi/grub-install.in: Likewise.
1120 * util/ieee1275/grub-install.in: Likewise.
1121
b1654fdf
GS
11222010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
1123
1124 * Makefile.in (LEX): new variable.
1125
bd5a6415
GS
11262010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
1127
1128 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
1129 `=' and added double quotes on operands of this equality test.
1130
3db3a82b
VS
11312010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
1132
1133 * Makefile.in (uninstall): Remove a leftover debug echo.
1134 Reported by: Grégoire Sutre
1135
38023412
VS
11362010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
1137
1138 MIPS multiboot2 support.
1139
1140 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
1141 (multiboot2_mod_SOURCES): New variable.
1142 (multiboot2_mod_CFLAGS): Likewise.
1143 (multiboot2_mod_LDFLAGS): Likewise.
1144 (multiboot2_mod_ASFLAGS): Likewise.
1145 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
1146 definition.
1147 (MULTIBOOT_ENTRY_REGISTER): Likewise.
1148 (MULTIBOOT_MBI_REGISTER): Likewise.
1149 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
1150 (MULTIBOOT_ELF32_MACHINE): Likewise.
1151 (MULTIBOOT_ELF64_MACHINE): Likewise.
1152 * include/grub/mips/multiboot.h: New file.
1153 * include/grub/video.h (grub_video_driver_id): New type
1154 GRUB_VIDEO_DRIVER_SM712.
1155 (grub_video_get_info_and_fini): Export.
1156 (grub_video_get_palette): Likewise.
1157 (grub_video_get_driver_id): Likewise.
1158 * include/multiboot2.h: Resynced with spec.
1159 * loader/i386/multiboot.c: Moved from here ...
1160 * loader/multiboot.c: ... here. All users updated.
1161 (grub_multiboot_boot): Use platform-specific macros.
1162 * loader/i386/multiboot_elfxx.c: Moved from here ...
1163 * loader/multiboot_elfxx.c: ... here. All users updated.
1164 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
1165 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
1166 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
1167
47674667
VS
11682010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
1169
1170 Import gnulib argp module.
1171
1172 * gnulib/argp-ba.c: New file.
1173 * gnulib/argp-eexst.c: Likewise.
1174 * gnulib/argp-fmtstream.c: Likewise.
1175 * gnulib/argp-fmtstream.h: Likewise.
1176 * gnulib/argp-fs-xinl.c: Likewise.
1177 * gnulib/argp-help.c: Likewise.
1178 * gnulib/argp-namefrob.h: Likewise.
1179 * gnulib/argp-parse.c: Likewise.
1180 * gnulib/argp-pin.c: Likewise.
1181 * gnulib/argp-pv.c: Likewise.
1182 * gnulib/argp-pvh.c: Likewise.
1183 * gnulib/argp-version-etc.c: Likewise.
1184 * gnulib/argp-version-etc.h: Likewise.
1185 * gnulib/argp-xinl.c: Likewise.
1186 * gnulib/argp.h: Likewise.
1187
495442ed
VS
11882010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
1189
1190 * kern/device.c (grub_device_iterate): Clear errors after failed
1191 opening device.
1192
f9fd65df
VS
11932010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
1194
1195 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
1196 returned by firmware.
1197
af09641e
VS
11982010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
1199
1200 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
1201 compilation on coreboot and qemu
1202
016883a5
VS
12032010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
1204
1205 * include/multiboot2.h: Resync with spec.
1206
f97e1f7d
VS
12072010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
1208
1209 Multiboot2 tag support
1210
1211 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
1212 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
1213 Remove loader/multiboot_loader.c.
1214 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
1215 (grub_multiboot2_real_boot): Likewise.
1216 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
1217 (grub_get_multiboot_mmap_count): New proto.
1218 (grub_fill_multiboot_mmap): Likewise.
1219 (grub_multiboot_set_video_mode): Likewise.
1220 (grub_multiboot_set_console): Likewise.
1221 (grub_multiboot_load): Likewise.
1222 (grub_multiboot_load_elf): Likewise.
1223 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
1224 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
1225 * include/multiboot.h: Resynced with specification.
1226 * include/multiboot2.h: Resynced with specification.
1227 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
1228 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
1229 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
1230 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
1231 users updated.
1232 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
1233 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
1234 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
1235 Removed.
1236 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
1237 Moved from here...
1238 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
1239 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
1240 Moved from here...
1241 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
1242 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
1243 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
1244 All users updated.
1245 * loader/i386/multiboot_mbi2.c: New file.
1246
3506b90b
VS
12472010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
1248
1249 Resync with gnulib.
1250
1251 * Makefile.in (GNULIB_CFLAGS): New variable.
1252 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
1253 (grub_script_check_CFLAGS): New variable.
1254 * gnulib/alloca.h: Resync with gnulib.
1255 * gnulib/error.c: Likewise.
1256 * gnulib/error.h: Likewise.
1257 * gnulib/fnmatch.c: Likewise.
1258 * gnulib/fnmatch_loop.c: Likewise.
1259 * gnulib/getdelim.c: Likewise.
1260 * gnulib/getline.c: Likewise.
1261 * gnulib/getopt.c: Likewise.
1262 * gnulib/getopt1.c: Likewise.
1263 * gnulib/getopt_int.h: Likewise.
1264 * gnulib/gettext.h: Likewise.
1265 * gnulib/progname.c: Likewise.
1266 * gnulib/progname.h: Likewise.
1267
394a3120
GS
12682010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
1269
1270 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
1271 which is the case with --disabled-nls.
1272
1273 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
1274 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
1275 * util/misc.c: Likewise.
1276 * util/mkisofs/mkisofs.c: Likewise.
1277 * util/mkisofs/mkisofs.h: Likewise.
1278
969d1c78
VS
12792010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
1280
1281 Simplify Apple CC support.
1282
1283 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
1284 Add 0 byte at the end not to have a symbol with empty target.
1285 * mmap/i386/pc/mmap_helper.S: Likewise.
1286 * genmk.rb: Ignore errors 2030 and 2050.
1287 * kern/i386/pc/startup.S: Use LOCAL when possible.
1288
8d2977bb
BC
12892010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
1290
1291 Testcase and the fix for final semicolon on cmdline.
1292
1293 * tests/grub_script_final_semicolon.in: New testcase.
1294 * conf/tests.rmk: Rules for the new testcase.
1295 * script/parser.y: Grammar fix.
1296
a7bd6915
BC
12972010-03-26 BVK Chaitanya <bvk@localhost>
1298
1299 Blank lines testcase for GRUB script.
1300
1301 * tests/grub_script_blanklines.in: New testcase.
1302 * conf/tests.rmk: Rules for the new testcase.
1303
e4ff6628
VS
13042010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
1305
1306 Don't use __FILE__.
1307
1308 * genmk.rb: Add -DGRUB_FILE to all C targets.
1309 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
1310 * include/grub/list.h: Likewise.
1311 * include/grub/misc.h: Likewise.
1312 * include/grub/mm.h: Likewise.
1313 * include/grub/test.h: Likewise.
1314 * kern/mm.c: Likewise.
1315 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
1316
6a5cf6b6
VS
13172010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
1318
1319 Sunpc partitions support.
1320
1321 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
1322 (grub_fstest_SOURCES): Likewise.
1323 (pkglib_MODULES): Add part_sunpc.mod.
1324 (part_sunpc_mod_SOURCES): New variable.
1325 (part_sunpc_mod_CFLAGS): Likewise.
1326 (part_sunpc_mod_LDFLAGS): Likewise.
1327 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
1328 * partmap/sunpc.c: New file.
1329
746d9045
BC
13302010-03-26 BVK Chaitanya <bvk@localhost>
1331
1332 For loop support to GRUB script.
1333
1334 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
1335 (grub_script_create_cmdfor): New function prototype.
1336 (grub_script_execute_cmdfor): New function prototype.
1337 * script/execute.c (grub_script_execute_cmdfor): New function.
1338 * script/parser.y (command): New for command.
1339 (forcmd): New grammar rule.
1340 * script/script.c (grub_script_create_cmdfor): New function.
1341 * util/grub-script-check.c (grub_script_execute_cmdfor): New
1342 function.
1343 * tests/grub_script_for1.in: New testcase.
1344 * conf/tests.rmk: Rules for new testcase.
1345
18486b18
VS
13462010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
1347
1348 Nested partitions
1349
1350 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
1351 'partition' is NULL, grub_partition_get_start already does that.
1352 * commands/loadenv.c (check_blocklists): Likewise.
1353 (write_blocklists): Likewise.
1354 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
1355 (grub_fstest_SOURCES): Likewise.
1356 (pkglib_MODULES): Add part_bsd.mod.
1357 (part_bsd_mod_SOURCES): New variable.
1358 (part_bsd_mod_CFLAGS): Likewise.
1359 (part_bsd_mod_LDFLAGS): Likewise.
1360 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
1361 (grub_emu_SOURCES): Likewise.
1362 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
1363 * include/grub/bsdlabel.h: New file.
1364 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
1365 'get_name'.
1366 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
1367 (grub_partition_map_list): New variable.
1368 (grub_partition_map_register): Inline.
1369 (grub_partition_map_unregister): Likewise.
1370 (FOR_PARTITION_MAPS): New macro.
1371 (grub_partition_map_iterate): Removed.
1372 (grub_partition_get_start): Handle nested partitions.
1373 * include/grub/msdos_partition.h: Remove bsd-related entries.
1374 (grub_pc_partition): Remove.
1375 * kern/disk.c (grub_disk_close): Free partition data.
1376 (grub_disk_adjust_range): Handle nested partitions.
1377 * kern/partition.c (grub_partition_map_probe): New function.
1378 (grub_partition_probe): Parse name to number, handle subpartitions.
1379 (get_partmap): New function.
1380 (grub_partition_iterate): Handle subpartitions.
1381 (grub_partition_get_name): Likewise.
1382 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
1383 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
1384 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
1385 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
1386 Set 'number'.
1387 (acorn_partition_map_probe): Remove.
1388 (acorn_partition_map_get_name): Likewise.
1389 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
1390 Set 'number'.
1391 Set 'index' to 0 since there can be only one partition entry per sector.
1392 (amiga_partition_map_probe): Remove.
1393 (amiga_partition_map_get_name): Likewise.
1394 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
1395 Set 'number'.
1396 Set 'offset' and 'index' to real positions of partitions.
1397 (apple_partition_map_probe): Remove.
1398 (apple_partition_map_get_name): Likewise.
1399 * partmap/bsdlabel.c: New file.
1400 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
1401 Set 'number'.
1402 Allocate 'data' so it can be correctly freed.
1403 Set 'index' to offset inside sector.
1404 (gpt_partition_map_probe): Remove.
1405 (gpt_partition_map_get_name): Likewise.
1406 * partmap/msdos.c (grub_partition_parse): Remove.
1407 (pc_partition_map_iterate): Don't force raw access.
1408 Set 'number'.
1409 Make 'ext_offset' a local variable.
1410 (pc_partition_map_probe): Remove.
1411 (pc_partition_map_get_name): Remove.
1412 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
1413 Set 'number'.
1414 (sun_partition_map_probe): Remove.
1415 (sun_partition_map_get_name): Likewise.
1416 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
1417 (grub_pcpart_type): Likewise.
1418 * util/hostdisk.c (open_device): Handle new numbering scheme.
1419 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
1420 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
1421 * util/grub-probe.c (probe_partmap): Handle nested paritions.
1422 * util/grub-install.in: Insert all subpartition modules.
1423 * util/ieee1275/grub-install.in: Likewise.
1424
a3940f88
AG
14252010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
1426
1427 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
1428 grammar.
1429
21b99926 14302010-03-24 Colin Watson <cjwatson@ubuntu.com>
1431
1432 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
1433
bed1d352
CW
14342010-03-21 Colin Watson <cjwatson@ubuntu.com>
1435
1436 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
1437 match where 'make install' puts them.
1438 * util/i386/efi/grub-install.in: Likewise.
1439
c9f58427
CW
14402010-03-19 Colin Watson <cjwatson@ubuntu.com>
1441
1442 * .bzrignore: Add gentrigtables, grub-script-check,
1443 grub_script_check_init.c, grub_script_check_init.h, and
1444 trigtables.c.
1445
f84afb27
VS
14462010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
1447
1448 * kern/parser.c: Indented.
1449
ed0e3d30
VS
14502010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
1451
1452 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
1453
0ea81d98
VS
14542010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
1455
1456 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
1457 alpha_mask_size == 0 case.
1458
0cdc2a09
BC
14592010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
1460
1461 GRUB shell lexer and parser improvements.
1462
1463 * conf/any-emu.rmk: Build rule updates.
1464 * conf/common.rmk: Likewise.
1465 * conf/i386-coreboot.rmk: Likewise.
1466 * conf/i386-efi.rmk: Likewise.
1467 * conf/i386-ieee1275.rmk: Likewise.
1468 * conf/i386-pc.rmk: Likewise.
1469 * conf/powerpc-ieee1275.rmk: Likewise.
1470 * conf/x86_64-efi.rmk: Likewise.
1471
1472 * configure.ac: Configure check for flex.
1473
1474 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
1475 types.
1476 (grub_lexer_param): Struct member updates.
1477 (grub_parser_param): Likewise.
1478 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
1479 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
1480 (grub_script_lexer_init): Prototype update.
1481 (grub_script_lexer_record_start): Likewise.
1482 (grub_script_lexer_record_stop): Likewise.
1483 (grub_script_lexer_yywrap): New function prototype.
1484 (grub_script_lexer_fini): Likewise.
1485 (grub_script_execute_argument_to_string): Removed by...
1486 (grub_script_execute_argument_to_argv): ...better version.
1487
1488 * script/execute.c (ROUND_UPTO): New macro.
1489 (grub_script_execute_cmdline): Out of memory fixes.
1490 (grub_script_execute_menuentry): Likewise.
1491 (grub_script_execute_argument_to_string): Removed. Update all
1492 users by...
1493 (grub_script_execute_argument_to_argv): ...better version.
1494 * script/function.c (grub_script_function_create): Use
1495 grub_script_execute_argument_to_argv instead of
1496 grub_script_execute_argument_to_string.
1497
1498 * script/lexer.c (check_varstate): Removed.
1499 (check_textstate): Removed.
1500 (grub_script_lexer_record_start): Likewise.
1501 (grub_script_lexer_record_stop): Likewise.
1502 (recordchar): Replaced with...
1503 (grub_script_lexer_record): ...new function.
1504 (nextchar): Removed.
1505 (grub_script_lexer_init): Rewritten.
1506 (grub_script_yylex): Rewritten.
1507 (append_newline): New function.
1508 (grub_script_lexer_yywrap): New function.
1509 (grub_script_lexer_fini): New function.
1510 (grub_script_yyerror): Sets error flag.
1511
1512 * script/yylex.l: New file.
1513 (grub_lexer_yyfree): Wrapper for flex yyffre.
1514 (grub_lexer_yyalloc): Likewise.
1515 (grub_lexer_yyrealloc): Likewise.
1516 * script/parser.y: Refactored.
1517
1518 * script/script.c (grub_script_arg_add): Out of memory fixes.
1519 (grub_script_add_arglist): Likewise.
1520 (grub_script_create_cmdline): Likewise.
1521 (grub_script_create_cmdmenu): Likewise.
1522 (grub_script_add_cmd): Likewise.
1523 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
1524 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
1525 unnecessary code.
1526
1527 * tests/grub_script_echo1.in: New testcase.
1528 * tests/grub_script_vars1.in: New testcase.
1529 * tests/grub_script_echo_keywords.in: New testcase.
1530
1d63a066
VS
15312010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
1532
1533 Remove some redundancy in build system.
1534
1535 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
1536 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
1537 (TARGET_LDFLAGS): Add -nostdlib.
1538 (TARGET_IMG_LDFLAGS): Likewise.
1539 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
1540 anything since mmap isn't available.
1541 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
1542 Add util/time.c.
1543 (pkglib_MODULES): Remove reboot.mod.
1544 (reboot_mod_SOURCES): Removed.
1545 (reboot_mod_CFLAGS): Likewise.
1546 (reboot_mod_LDFLAGS): Likewise.
1547 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
1548 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
1549 (DEFSYMFILES): Add kernel_syms.lst.
1550 (kernel_img_HEADERS): Add common headers.
1551 (symlist.c): New target.
1552 (kernel_syms.lst): Likewise.
1553 (pkglib_MODULES): Add memdisk.mod.
1554 (memdisk_mod_SOURCES): New variable.
1555 (memdisk_mod_CFLAGS): Likewise.
1556 (memdisk_mod_LDFLAGS): Likewise.
1557 (pkglib_MODULES): Add reboot.mod.
1558 (reboot_mod_SOURCES): New variable.
1559 (reboot_mod_CFLAGS): Likewise.
1560 (reboot_mod_LDFLAGS): Likewise.
1561 (pkglib_MODULES): Add date.mod.
1562 (date_mod_SOURCES): New variable.
1563 (date_mod_CFLAGS): Likewise.
1564 (date_mod_LDFLAGS): Likewise.
1565 (pkglib_MODULES): Add datehook.mod.
1566 (datehook_mod_SOURCES): New variable.
1567 (datehook_mod_CFLAGS): Likewise.
1568 (datehook_mod_LDFLAGS): Likewise.
1569 (pkglib_MODULES): Add lsmmap.mod.
1570 (lsmmap_mod_SOURCES): New variable.
1571 (lsmmap_mod_CFLAGS): Likewise.
1572 (lsmmap_mod_LDFLAGS): Likewise.
1573 (pkglib_MODULES): Add boot.mod.
1574 (boot_mod_SOURCES): New variable.
1575 (boot_mod_CFLAGS): Likewise.
1576 (boot_mod_LDFLAGS): Likewise.
1577 * conf/i386-coreboot.rmk: Removed redundant parts.
1578 * conf/i386-ieee1275.rmk: Likewise.
1579 * conf/i386-pc.rmk: Likewise.
1580 * conf/mips-yeeloong.rmk: Likewise.
1581 * conf/mips.rmk: Likewise.
1582 * conf/powerpc-ieee1275.rmk: Likewise.
1583 * conf/sparc64-ieee1275.rmk: Likewise.
1584 * conf/x86_64-efi.rmk: Likewise.
1585 * conf/i386-coreboot.rmk: Moved qemu parts ..
1586 * conf/i386-qemu.rmk: ... here
1587 * conf/i386-efi.rmk: Moved common parts to...
1588 * conf/x86-efi.rmk: ... here.
1589 * conf/i386.rmk: Added modules common to all x86 variants.
1590 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
1591 * disk/memdisk.c: Remove grub/machine/kernel.h.
1592 * gensymlist.sh.in: Include symbol.h.
1593 * hook/datehook.c: Correct module name.
1594 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
1595 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
1596 * include/grub/i386/efi/serial.h: New file.
1597 * include/grub/x86_64/efi/serial.h: Likewise.
1598 * util/time.c: Likewise.
1599 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
1600
463ac55f
CK
16012010-03-14 Colin King <colin.king@ubuntu.com>
16022010-03-14 Colin Watson <cjwatson@ubuntu.com>
1603
1604 Shrink the pre-partition-table part of boot.img by eight bytes.
1605
1606 * boot/i386/pc/boot.S (ERR): New macro.
1607 (chs_mode): Use ERR.
1608 (geometry_error): Likewise.
1609 (hd_probe_error): Remove. This is only used once, so we wrwite
1610 it inline instead.
1611 (read_error): Instead of printing read_error_string, just set up
1612 %si and fall through to ...
1613 (error_message): ... this new function, also used by ERR.
1614
08e46ede
CW
16152010-03-14 Colin Watson <cjwatson@ubuntu.com>
1616
1617 Speed up consecutive hostdisk operations on the same device.
1618
1619 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
1620 (grub_util_biosdisk_open): Initialise disk->data.
1621 (struct linux_partition_cache): New structure.
1622 (linux_find_partition): Cache partition start positions; these are
1623 expensive to compute on every read and write.
1624 (open_device): Cache open file descriptor in disk->data, so that we
1625 don't have to reopen it and flush the buffer cache for consecutive
1626 operations on the same device.
1627 (grub_util_biosdisk_close): New function.
1628 (grub_util_biosdisk_dev): Set `close' member.
1629
1630 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
1631 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
1632 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
1633 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
1634 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
1635
4a6d2d06
VS
16362010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
1637
1638 Compile parts of grub-emu as modules.
1639
1640 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
1641 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
1642 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
1643 (all-local): Add $(GRUB_EMU).
1644 (install-local): Install $(GRUB_EMU).
1645 (uninstall): Uninstall $(GRUB_EMU).
1646 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
1647 * kern/dl.c: Likewise.
1648 * commands/sleep.c: Not include machine/time.h.
1649 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
1650 (COMMON_CFLAGS): Likewise.
1651 (sbin_UTILITIES): Remove grub-emu.
1652 (grub_emu_SOURCES): Removed.
1653 (kernel_img_RELOCATABLE): New variable.
1654 (pkglib_PROGRAMS): Add kernel.img.
1655 (kernel_img_SOURCES): New variable
1656 (kernel_img_CFLAGS): Likewise.
1657 (kernel_img_LDFLAGS): Likewise.
1658 (TARGET_NO_STRIP): Likewise.
1659 (TARGET_NO_DYNAMIC_MODULES): Likewise.
1660 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
1661 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
1662 (grub-emu): New target.
1663 (GRUB_EMU): New variable.
1664 * configure.ac: Whitelist -emu as possible x86_64 architecture.
1665 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
1666 * loader/xnu.c: Likewise.
1667 * include/grub/pci.h: Likewise.
1668 * genemuinit.sh: New file.
1669 * genemuinitheader.sh: Likewise.
1670 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
1671 Support TARGET_NO_DYNAMIC_MODULES.
1672 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
1673 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
1674 * disk/loopback.c: Likewise.
1675 * font/font_cmd.c: Likewise.
1676 * partmap/acorn.c: Likewise.
1677 * partmap/amiga.c: Likewise.
1678 * partmap/apple.c: Likewise.
1679 * partmap/gpt.c: Likewise.
1680 * partmap/msdos.c: Likewise.
1681 * partmap/sun.c: Likewise.
1682 * parttool/msdospart.c: Likewise.
1683 * term/gfxterm.c: Likewise.
1684 * video/bitmap.c: Likewise.
1685 * video/readers/jpeg.c: Likewise.
1686 * video/readers/png.c: Likewise.
1687 * video/readers/tga.c: Likewise.
1688 * video/video.c: Likewise.
1689 * util/grub-emu.c (read_command_list): Removed.
1690 (main): Don't call util_init_nls.
1691 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
1692 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
1693
91fdd2ed
VS
16942010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
1695
1696 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
1697 date.mod, datehook.mod.
1698 (datetime_mod_SOURCES): New variable.
1699 (datetime_mod_CFLAGS): Likewise.
1700 (datetime_mod_LDFLAGS): Likewise.
1701 (date_mod_SOURCES): Likewise.
1702 (date_mod_CFLAGS): Likewise.
1703 (date_mod_LDFLAGS): Likewise.
1704 (datehook_mod_SOURCES): Likewise.
1705 (datehook_mod_CFLAGS): Likewise.
1706 (datehook_mod_LDFLAGS): Likewise.
1707 * conf/sparc64-ieee1275.rmk: Likewise.
1708 * lib/ieee1275/datetime.c: New file.
1709
873ccae6
VS
17102010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
1711
1712 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
1713 (ieee1275_fb_mod_SOURCES): New variable.
1714 (ieee1275_fb_mod_CFLAGS): Likewise.
1715 (ieee1275_fb_mod_LDFLAGS): Likewise.
1716 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
1717 New proto.
1718 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
1719 (HEAP_MAX_ADDR): Likewise.
1720 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
1721 type.
1722 Correct stop condition.
1723 (grub_ieee1275_devices_iterate): New function.
1724 * video/ieee1275.c: New file.
1725
601c97c0
VS
17262010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
1727
1728 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
1729
1730 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
1731 as scratch.
1732 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
1733 SCRATCH_PAD_DISKBOOT as scratch.
1734 (bootit): Pass Openfirmware pointer in %o4.
1735 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
1736 of 0x200000.
1737 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
1738 with util/grub-mkrawimage.c.
1739 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
1740 * include/grub/aout.h (AOUT_MID_SUN): New definition.
1741 (grub_aout_get_type) [GRUB_UTIL]: Removed.
1742 (grub_aout_load) [GRUB_UTIL]: Likewise.
1743 * include/grub/kernel.h (grub_modules_get_end): New proto.
1744 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
1745 (SCRATCH_PAD_BOOT): New definition.
1746 (SCRATCH_PAD_DISKBOOT): Likewise.
1747 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
1748 * include/grub/sparc64/ieee1275/ieee1275.h
1749 (grub_ieee1275_original_stack): New variable
1750 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
1751 New definition
1752 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
1753 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
1754 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
1755 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
1756 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
1757 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
1758 (grub_platform_image_format_t): New type.
1759 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
1760 * kern/main.c (grub_modules_get_end)
1761 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
1762 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
1763 (codestart): Switch stacks.
1764 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
1765 variable.
1766 (grub_heap_init): Use grub_modules_get_end.
1767 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
1768 stack.
1769 * util/grub-mkrawimage.c (generate_image): Support sparc64.
1770 (main): Likewise.
1771 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
1772
d68b491e
TG
17732010-03-14 Thorsten Glaser <tg@mirbsd.org>
1774
1775 * util/grub-mkrescue.in: Base ISO UUID on UTC.
1776
4e02ed50
MK
17772010-03-08 Matt Kraai <kraai@ftbfs.org>
1778
1779 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
1780 bug #559005).
1781
1f15fc1e
VS
17822010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
1783
1784 * genmoddep.awk: Output all missing symbols and not only first.
1785
fce5d8ff
VS
17862010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
1787
1788 * NEWS: Put the date of 1.98 release.
1789
d1e8a02f
VS
17902010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
1791
1792 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
1793 ft2build.h.
1794
696fd607
VS
17952010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
1796
1797 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
1798 completition in the middle of string.
1799
33e2e6f3
VS
18002010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
1801
1802 * util/grub-mkrescue.in: Use mktemp with explicit template.
1803
b1f6d291
VS
18042010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
1805
1806 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
1807
2ac227c7
VS
18082010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
1809
1810 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
1811 right pointer.
1812
8f9a632b
VS
18132010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
1814
1815 Fix FreeBSD compilation.
1816
1817 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
1818 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
1819
60b03859
VS
18202010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
1821
1822 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
1823
48a5a769
VS
18242010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
1825
1826 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
1827
3ab4bd77
VS
18282010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
1829
1830 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
1831
d116e0d8
RM
18322010-03-04 Robert Millan <rmh.grub@aybabtu.com>
1833
1834 Support relative image path in theme file.
1835
1836 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
1837 (image_set_property): Handle theme_dir and relative path.
1838
c7ef54aa
VS
18392010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
1840
1841 * configure.ac: Alias amd64 to x86_64.
1842
fcee14ed
VS
18432010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
1844
1845 * NEWS: mention multiboot on EFI.
1846
d0780363
VS
18472010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
1848
1849 * kern/main.c (grub_load_modules): Handle errors from init functions of
1850 embeded modules.
1851
41168ea4
VS
18522010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
1853
1854 * normal/autofs.c (autoload_fs_module): Handle errors.
1855
b54d93ac
VS
18562010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
1857
1858 Disable linux.mod on qemu-mips since it's not functional and leads
1859 to compilation failure.
1860
1861 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
1862 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
1863 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
1864 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
1865 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
1866 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
1867 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
1868 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
1869 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
1870 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
1871 Reported by: BVK Chaitanya
1872
fc8345da
JU
18732010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
1874
1875 * INSTALL: Add gettext as a dependency and add qemu to a new section
1876 "Prerequisites for make-check".
1877
4760f979
CF
18782010-03-04 Christian Franke <franke@computer.org>
1879
1880 * util/grub-pe2elf.c: Add missing include "progname.h".
1881
f209b5b2
VS
18822010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
1883
1884 * normal/crypto.c (read_crypto_list): Fix a typo.
1885 Reported by: Seth Goldberg.
1886
b4b7be98
VS
18872010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
1888
1889 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
f209b5b2 1890 Reported by: Seth Goldberg.
b4b7be98 1891
c0ee0385
VS
18922010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
1893
1894 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
1895 ascii.bitmaps.
1896
a8efbf64
VS
18972010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
1898
1899 * genmk.rb: Remove terminal*.lst in make clean.
f209b5b2 1900 Reported by: Seth Goldberg.
a8efbf64 1901
08dcd913
VS
19022010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
1903
1904 * util/i386/efi/grub-install.in: Copy gettext files.
1905
c4d0b332
VS
19062010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
1907
1908 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
1909
c6f2fe52
VS
19102010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
1911
1912 Wait for user entry basing on presence of output rather than on errors.
1913
1914 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
1915 (grub_install_newline_hook): Likewise.
1916 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
1917 * normal/menu.c (show_menu): Check line_counter to determine presence
1918 of output.
1919 * normal/term.c (grub_normal_line_counter): New variable.
1920 (grub_normal_get_line_counter): New function.
1921 (grub_install_newline_hook): Likewise.
1922
5382b1e4
VS
19232010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
1924
1925 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
1926
5519963b
VS
19272010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
1928
1929 * configure.ac: Update version to 1.98.
1930
72b28631
VS
19312010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
1932
1933 * util/grub.d/10_linux.in (linux_entry): Don't default to
1934 gfxpayload=keep if Linux doesn't support video handover.
1935
c140a180
VS
19362010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
1937
1938 Don't compile video modules on yeeloong since video subsystem is part
1939 of kernel.
1940
1941 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
1942 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
1943 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
1944 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
1945 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
1946 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
1947 * include/grub/bitmap_scale.h: Likewise.
1948 * include/grub/bufio.h: Likewise.
1949 * include/grub/font.h: Likewise.
1950 * include/grub/gfxterm.h: Likewise.
1951 * include/grub/video.h: Likewise.
1952 * include/grub/vbe.h: Don't include video_fb.h.
1953 * video/i386/pc/vbe.c: Include video_fb.h.
1954 * commands/i386/pc/vbetest.c: Include video.h.
1955
a0ca21c2
CW
19562010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
1957
1958 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
1959 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
1960 default entry if GRUB_SAVEDEFAULT=true. This allows using
1961 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
1962 saving a new default on every boot.
1963
4a8a763c
VS
19642010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
1965
1966 * normal/crypto.c (read_crypto_list): Fix a memory leak.
1967 * normal/term.c (read_terminal_list): Likewise.
1968 * normal/main.c (grub_normal_init_page): Likewise.
1969 (grub_normal_read_line_real): Likewise.
1970
607ffde2
VS
19712010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
1972
1973 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
1974 memory leak.
1975 Reported by: Seth Goldberg.
1976
2b8fa975
CW
19772010-02-24 Joey Korkames <joey+lists@kidfixit.com>
1978
1979 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
1980 duplicate declaration of `start'.
1981
618307dd
VS
19822010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
1983
1984 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
1985 filename.
1986 Reported by: Georgy Buranov
1987
7dd05b96 19882010-02-20 Carles Pina i Estany <carles@pina.cat>
1989
1990 * util/grub-mkrawimage.c (usage): Change string formatting to
1991 improve gettext.
1992
d1484a42
MRA
19932010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
1994
1995 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
1996 backspace keys.
1997
42b1d186
VS
19982010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
1999
2000 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
2001 Reported by: Michael Suchanek.
2002
20032010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
0a39de87
ST
2004
2005 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
2006 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
2007
d9f31a41
VS
20082010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
2009
2010 Remove any reference to non-free fonts.
2011
2012 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
2013 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
2014 uses non-free components.
2015 * font/font.c (grub_font_get_name): Remove example name.
2016 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
2017 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
2018 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
2019 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
2020
2793c71e
GB
20212010-02-16 Georgy Buranov <gburanov@gmail.com>
2022
2023 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
2024
402e3779
VS
20252010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
2026
2027 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
2028 Double divisor.
2029 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
2030 features.
2031 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
2032
0dd1e0dd
VS
20332010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
2034
2035 * gensymlist.sh.in: Use TARGET_CC instead of CC.
2036
6fa7cfce
ST
20372010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
2038
2039 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
2040 * docs/grub.texi (Command-line and menu entry commands): Document play
2041 command.
2042
37c8483b
ST
20432010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
2044
2045 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
2046 parse arguments as inline tempo and notes. Move code for playing notes
2047 to...
2048 (play): ... new function.
2049
14da0fb7
ST
20502010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
2051
2052 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
2053 grub_uint16_t instead of short.
2054 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
2055 disk from little endian to cpu endianness.
2056
04459e70
ST
20572010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
2058
2059 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
2060 GRUB_TICKS_PER_SECOND instead of 120.
2061
a0876943
VS
20622010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
2063
2064 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
2065 escape sequence after \e.
2066
e29f95dc
VS
20672010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
2068
2069 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
2070 non-ASCII characters.
2071
d27859b2
VS
20722010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
2073
2074 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
2075 set root in single quotes to prevent \, from being unescaped.
2076
bc028f2f
VS
20772010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
2078
2079 Prevent unknown commands from stopping menuentry execution.
2080
2081 * script/execute.c (grub_script_execute_cmdline): Print error after
2082 unknown command.
2083
095f5f82
VS
20842010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
2085
2086 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
2087 Reported by: Pavel Pisa.
2088
8c717950
VS
20892010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
2090
2091 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
2092
904935c3
VS
20932010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
2094
2095 Merge grub_ieee1275_map_physical into grub_map and rename to
2096 grub_ieee1275_map
2097
2098 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
2099 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
2100 Remove.
2101 * kern/ieee1275/openfw.c (grub_map): Rename to ...
2102 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
2103 necessary.
2104 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
2105
5b59a4e3
VS
21062010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
2107
2108 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
2109 opening and not after.
2110
69e137e8
VS
21112010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
2112
2113 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
2114 constants.
2115
2c0fcc36
VS
21162010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
2117
2118 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
2119 (alloc_phys): Use ALIGN_UP instead of align_addr.
2120
8c6052ce
VS
21212010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
2122
2123 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
2124
17cec782
VS
21252010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
2126
2127 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
2128
e0128bbd
VS
21292010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
2130
2131 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
2132 verbose dprintf.
2133
ca62070b
VS
21342010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
2135
2136 Fix over-4GiB seek on sparc64.
2137
2138 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
2139 Replace pos_i and pos_lo with pos. All users updated.
2140 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
2141 New constant.
2142 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
2143 Likewise.
2144 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
2145 and pos_lo.
2146
bdca2607
VS
21472010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
2148
2149 * util/grub-mkrawimage.c (main): Call set_program_name.
2150
da278c4d
VS
21512010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
2152
2153 Properly align 64-bit targets.
2154
2155 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
2156 (generate_image): Use ALIGN_ADDR.
2157
b274d734
VS
21582010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
2159
2160 Properly create cross-endian images.
2161
2162 * include/grub/types.h (grub_host_to_target_addr): New macro
2163 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
2164
82da2062
VS
21652010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
2166
2167 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
2168
7cae4377
VS
21692010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
2170
2171 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
2172
2173 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
2174 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
2175 (grub_linux_boot): Divide by 64K when on VESA.
2176
65a533e7
VS
21772010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
2178
2179 Support GRUB_GFXPAYLOAD_LINUX.
2180
2181 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
2182 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
2183
dd01d397
VS
21842010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
2185
2186 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
2187 to show messages instead of discarding them.
2188 Process errors after executing command and not before. Keep old method
2189 too as precaution.
2190
660960d6
VS
21912010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
2192
2193 * configure.ac: Check for ft2build.h.
2194
62509f04
VS
21952010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
2196
2197 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
2198
473df63d
VS
21992010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
2200
2201 * genkernsyms.sh.in: Use TARGET_CC.
2202
c98d2a13
CW
22032010-02-07 Colin Watson <cjwatson@ubuntu.com>
2204
2205 * NEWS: Update.
2206
6e14234c
VS
22072010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
2208
2209 * include/grub/multiboot2.h: Remove leftover file.
e28e32ae
VS
2210 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
2211 * include/grub/partition.h [GRUB_UTIL]: Likewise.
6e14234c 2212
b255e9cf
YB
22132010-02-07 Yves Blusseau <blusseau@zetam.org>
2214
6e14234c 2215 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
b255e9cf 2216
98e6959d
VS
22172010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
2218
2219 Fix warnings in grub-emu when compiling with maximum warning options.
2220
2221 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
2222 (grub_arch_modules_addr): Return 0 and not NULL.
2223 * util/misc.c (ENABLE_RELOCATABLE): New definition.
74e4934e 2224 (xstrdup): Use newstr instead of dup.
f88d801b
VS
2225 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
2226 of disk to dsk to avoid shadowing.
74e4934e
VS
2227 (find_free_slot): Fix prototype.
2228 * util/getroot.c (grub_util_is_dmraid): Make static.
2229 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
2230 Add missing prototype.
2231 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
98e6959d 2232
74e31b5c
VS
22332010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
2234
2235 * loader/i386/linux.c (grub_linux_setup_video): Handle error
2236 appropriately.
2237
6b2ad14b
VS
22382010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
2239
2240 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
2241 code out.
2242
8f891adc
VS
22432010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
2244
2245 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
2246 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
2247 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
2248 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
2249 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
2250 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
2251
74b45184
VS
22522010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
2253
2254 * include/grub/err.h (grub_err_printf): Don't export.
2255
a4bced77
VS
22562010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
2257
2258 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
2259
007d0695
VS
22602010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
2261
2262 * include/grub/i18n.h (grub_gettext_dummy): Removed.
2263 * kern/misc.c (grub_gettext_dummy): Make static.
2264
b6c0d9c2
VS
22652010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
2266
2267 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
2268 by non-valid ones.
2269 * kern/term.c (grub_putchar): Likewise.
2270
f51a90d0
VS
22712010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
2272
2273 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
2274 buggy hook call and memory leak.
2275
6846cec5
VS
22762010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
2277
2278 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
2279
468d69fe
VS
22802010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
2281
2282 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
2283
51906b8c
VS
22842010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
2285
2286 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
2287 modevar.
2288 Return grub_errno on allocation error.
2289
09706ce5
VS
22902010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
2291
2292 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
2293
911df80c
YB
22942010-02-06 Yves Blusseau <blusseau@zetam.org>
2295
2296 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
2297 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
2298
3746a6bc
VS
22992010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
2300
2301 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
2302 non-pxe disk.
2303 (grub_pxefs_open): Likewise.
2304
09706ce5
VS
23052010-02-06 Robert Millan <rmh.grub@aybabtu.com>
2306
2307 * util/grub.d/10_hurd.in: Add --class information to menuentries.
2308 * util/grub.d/10_kfreebsd.in: Likewise.
2309 * util/grub.d/10_linux.in: Likewise.
2310
7cc192d9
VS
23112010-02-06 Colin D Bennett <colin@gibibit.com>
2312
2313 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
2314 (gfxmenu_mod_SOURCES): New variable.
2315 (gfxmenu_mod_CFLAGS): Likewise.
2316 (gfxmenu_mod_LDFLAGS): Likewise.
2317 * include/grub/term.h (grub_term_set_current_output): Declare
2318 argument as const.
2319 * docs/gfxmenu-theme-example.txt: New file.
2320 * gfxmenu/gfxmenu.c: Likewise.
2321 * gfxmenu/gui_box.c: Likewise.
2322 * gfxmenu/gui_canvas.c: Likewise.
2323 * gfxmenu/gui_circular_progress.c: Likewise.
2324 * gfxmenu/gui_image.c: Likewise.
2325 * gfxmenu/gui_label.c: Likewise.
2326 * gfxmenu/gui_list.c: Likewise.
2327 * gfxmenu/gui_progress_bar.c: Likewise.
2328 * gfxmenu/gui_string_util.c: Likewise.
2329 * gfxmenu/gui_util.c: Likewise.
2330 * gfxmenu/icon_manager.c: Likewise.
2331 * gfxmenu/model.c: Likewise.
2332 * gfxmenu/named_colors.c: Likewise.
2333 * gfxmenu/theme_loader.c: Likewise.
2334 * gfxmenu/view.c: Likewise.
2335 * gfxmenu/widget-box.c: Likewise.
2336 * include/grub/gfxmenu_model.h: Likewise.
2337 * include/grub/gfxmenu_view.h: Likewise.
2338 * include/grub/gfxwidgets.h: Likewise.
2339 * include/grub/gui.h: Likewise.
2340 * include/grub/gui_string_util.h: Likewise.
2341 * include/grub/icon_manager.h: Likewise.
2342
23432010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
2344
2345 Agglomerate scrolling in gfxterm.
2346
2347 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
2348 (grub_virtual_screen_setup): Initialise 'total_screen'.
2349 (write_char): Split to ...
2350 (paint_char): ... this ...
2351 (write_char): ... and this.
2352 (paint_char): Handle delayed scrolling.
2353 (draw_cursor): Likewise.
2354 (scroll_up): Split to ...
2355 (real_scroll): ... this ...
2356 (scroll_up): ... and this.
2357 (real_scroll): Handle multi-line scroll and draw below-the-bottom
2358 characters.
2359 (grub_gfxterm_refresh): Call real_scroll.
2360
23612010-02-06 Colin D Bennett <colin@gibibit.com>
2362
2363 * include/grub/misc.h (grub_iscntrl): New inline function.
2364 (grub_isalnum): Likewise.
2365 (grub_strtol): Likewise.
2366
23672010-02-06 Colin D Bennett <colin@gibibit.com>
2368
2369 * normal/menu_text.c (get_entry_number): Move from here ...
2370 * normal/menu.c (get_entry_number): ... moved here.
2371 * include/grub/menu.h (grub_menu_get_default_entry_index):
2372 New prototype.
2373 * normal/menu.c (grub_menu_get_default_entry_index): New function.
2374 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
2375 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
2376 (grub_menu_viewer_should_return): Likewise.
2377 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
2378 * normal/menu_text.c (run_menu): Enable menu switching.
2379 * normal/menu_viewer.c (should_return): New variable.
2380 (menu_viewer_changed): Likewise.
2381 (grub_menu_viewer_show_menu): Handle menu viewer changes.
2382 (grub_menu_viewer_should_return): New function.
2383 (menuviewer_write_hook): Likewise.
2384 (grub_menu_viewer_init): Likewise.
2385
23862010-02-06 Colin D Bennet <colin@gibibit.com>
23872010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
2388
2389 Support for gfxterm in a window.
2390
2391 * include/grub/gfxterm.h: New file.
2392 * include/grub/video.h (struct grub_video_rect): New declaration.
2393 (grub_video_rect_t): Likewise.
2394 * term/gfxterm.c (struct grub_gfxterm_window): New type.
2395 (refcount): New variable.
2396 (render_target): Likewise.
2397 (window): Likewise.
2398 (repaint_callback): Likewise.
2399 (grub_virtual_screen_setup): Use 'render_target'.
2400 (init_window): New function.
2401 (grub_gfxterm_init_window): Likewise.
2402 (grub_gfxterm_init): Check reference counter.
2403 Use init_window.
2404 (destroy_window): New function.
2405 (grub_gfxterm_destroy_window): Likewise.
2406 (grub_gfxterm_fini): Check reference counter.
2407 Use destroy_window.
2408 (redraw_screen_rect): Restore viewport.
2409 Use 'render_target' and 'window'.
2410 Call 'repaint_callback'.
2411 (write_char): Use 'render_target'.
2412 (draw_cursor): Likewise.
2413 (scroll_up): Restore viewport.
2414 Use 'render_target' and 'window'.
2415 Call 'repaint_callback'.
2416 (grub_gfxterm_cls): Likewise.
2417 (grub_gfxterm_refresh): Use 'window'.
2418 (grub_gfxterm_set_repaint_callback): New function.
2419 (grub_gfxterm_background_image_cmd): Use 'window'.
2420 (grub_gfxterm_get_term): New function.
2421 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
2422
24232010-02-06 Colin D Bennett <colin@gibibit.com>
2424
2425 Bitmap scaling support.
2426
2427 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
2428 (bitmap_scale_mod_SOURCES): New variable.
2429 (bitmap_scale_mod_CFLAGS): Likewise.
2430 (bitmap_scale_mod_LDFLAGS): Likewise.
2431 * include/grub/bitmap_scale.h: New file.
2432 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
2433 (background_image_cmd_options): New variable.
2434 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
2435 (cmd): Rename and change type to ...
2436 (background_image_cmd_handle): ... this. All users updated.
2437 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
2438 * video/bitmap_scale.c: New file.
2439
24402010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
2441
2442 SDL support.
2443
2444 * Makefile.in (LIBSDL): New variable.
2445 (enable_grub_emu_sdl): Likewise.
2446 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
2447 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
2448 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
2449 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
2450 * util/sdl.c: New file.
2451
24522010-02-06 Colin D Bennett <colin@gibibit.com>
24532010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
2454
2455 Double buffering support.
2456
2457 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
2458 * include/grub/video.h: Update comment.
2459 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
2460 New type.
2461 (grub_video_fb_doublebuf_blit_init): New prototype.
2462 * term/gfxterm.c (scroll_up): Support double buffering.
2463 (grub_gfxterm_refresh): Likewise.
2464 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
2465 (grub_video_fb_doublebuf_blit_init): Likewise.
2466 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
2467 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
2468 'displayed_page', 'render_page' and 'update_screen'.
2469 (grub_video_vbe_fini): Free offscreen buffer.
2470 (doublebuf_pageflipping_commit): New function.
2471 (doublebuf_pageflipping_update_screen): Likewise.
2472 (doublebuf_pageflipping_init): Likewise.
2473 (double_buffering_init): Likewise.
2474 (grub_video_vbe_setup): Enable doublebuffering.
2475 (grub_video_vbe_swap_buffers): Implement.
2476 (grub_video_vbe_set_active_render_target): Handle double buffering.
2477 (grub_video_vbe_get_active_render_target): Likewise.
2478 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
2479 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
2480 (grub_video_vbe_enable_double_buffering): Likewise.
2481 (grub_video_vbe_swap_buffers): Use update_screen.
2482 (grub_video_set_mode): Use double buffering.
2483
24842010-02-06 Robert Millan <rmh.grub@aybabtu.com>
2485
2486 * maintainance/gentrigtables.py: Remove.
2487 * lib/trig.c: Likewise.
2488
2489 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
2490
2491 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
2492 `trigtables.c'.
2493 (trigtables.c): New rule.
2494 (gentrigtables): Likewise.
2495 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
2496
24972010-02-06 Robert Millan <rmh.grub@aybabtu.com>
2498
2499 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
2500 integer constants.
2501
25022010-02-06 Colin D Bennet <colin@gibibit.com>
2503
2504 Trigonometry support.
2505
2506 * include/grub/trig.h: New file.
2507 * lib/trig.c: Likewise.
2508 * maintainance/gentrigtables.py: Likewise.
2509 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
2510 (trig_mod_SOURCES): New variable.
2511 (trig_mod_CFLAGS): Likewise.
2512 (trig_mod_LDFLAGS): Likewise.
2513
5562834e
VS
25142010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
2515
2516 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
2517 disk devices.
2518
4f8528fc
VS
25192010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
2520
2521 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
2522 error.
2523
2b4068e9
VS
25242010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
2525
2526 * util/hostdisk.c (open_device): Don't use partition device when reading
2527 before the partition.
2528 (grub_util_biosdisk_read): Don't read from partition and before the
2529 partition in single operation.
2530 (grub_util_biosdisk_write): Don't write to partition and before the
2531 partition in single operation.
2532
399f6e4d
TL
25332010-02-03 Torsten Landschoff <torsten@debian.org>
2534
2535 * kern/disk.c (grub_disk_read): Fix offset computation when reading
2536 last sectors.
2537
996649b0
VS
25382010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
2539
2540 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
2541 CDROM reads.
2542 (grub_biosdisk_write): Refuse to write to CDROM.
2543
3b205d4d
VS
25442010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
2545
2546 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
2547
61e89d9d
VS
25482010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
2549
2550 * font/font.c (find_glyph): Check that bmp_idx is available before
2551 using it.
2552 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
2553 with (font == NULL).
2554
bf7fcba2
CS
25552010-01-28 Christian Schmitt <chris@ilovelinux.de>
2556
2557 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
2558
f45d2663
BC
25592010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
2560
2561 * include/grub/script_sh.h (sourcecode): Add const qualifier.
2562 * util/grub-script-check.c (getline): Fix empty lines case.
2563
ec1444e6
RM
25642010-01-28 Robert Millan <rmh.grub@aybabtu.com>
2565
2566 * Makefile.in (check): Exit with fail status when one of the tests
2567 fails.
2568 * tests/example_functional_test.c (example_test): Fix reversed assert.
2569 * tests/example_unit_test.c (example_test): Likewise.
2570
2e1cb9bb
CW
25712010-01-28 Colin Watson <cjwatson@ubuntu.com>
2572
2573 * util/grub.d/10_linux.in: This script does not use any of the
2574 contents of gettext.sh, only the external command `gettext', so stop
2575 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
2576 the same prefix as GRUB.)
2577 * util/grub.d/10_kfreebsd.in: Likewise.
2578
63533ab0
VS
25792010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
2580
2581 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
2582 of the line.
2583
989e1f93
VS
25842010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
2585
2586 * kern/disk.c (grub_disk_read): Fix offset computation when reading
2587 last sectors.
2588
e709ebe2
VS
25892010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
2590
2591 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
2592 having a 4KiB and not 32KiB buffer size.
2593
27dea7ed
RM
25942010-01-27 Robert Millan <rmh.grub@aybabtu.com>
2595
2596 * util/hostfs.c: Include `<errno.h>'.
2597 (grub_hostfs_read): Handle errors from fseeko() and fread().
2598
67667b9c
RM
25992010-01-27 Robert Millan <rmh.grub@aybabtu.com>
2600
2601 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
2602 loop when using read hooks on files whose size isn't sector-aligned.
2603
c294d9d8
RM
26042010-01-27 Robert Millan <rmh.grub@aybabtu.com>
2605
2606 Remove unused parameter.
2607
2608 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
2609 (grub_iso9660_open): Remove initialization of `data->length'.
2610
af75a9f1
RM
26112010-01-27 Robert Millan <rmh.grub@aybabtu.com>
2612
2613 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
2614 memleak conditions.
2615
254e2ce5 26162010-01-27 Carles Pina i Estany <carles@pina.cat>
2617
2618 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
2619 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
2620
b510928c 26212010-01-26 Carles Pina i Estany <carles@pina.cat>
2622
2623 * util/bin2h.c (usage): Fix warning (space after backslash).
2624
aa2f9dd2 26252010-01-26 Carles Pina i Estany <carles@pina.cat>
de0b7a4e 2626
2627 * font/font.c: Include `grub/fontformat.h.
2628 Remove font file format constants.
2629 (grub_font_load): Use the new macros.
2630 * include/grub/fontformat.h: New file.
2631 * util/grub-mkfont.c: Include `grub/fontformat.c'.
2632 (write_font_pf2): Use the new macros.
2633
94e7e712
RM
26342010-01-26 Robert Millan <rmh.grub@aybabtu.com>
2635
2636 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
2637 does.
2638
3973a59a
RM
26392010-01-26 Robert Millan <rmh.grub@aybabtu.com>
2640
2641 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
2642
2643 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
2644 (_start): Macroify `0x7F'.
2645
2646 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
2647 (make_install_device): Use "(pxe)" as fallback prefix when booting
2648 via PXE.
2649
42e0cba3
GS
26502010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
2651
2652 * configure.ac: Reset LIBS after check for libgcc symbols.
2653
847effd8
CW
26542010-01-25 Colin Watson <cjwatson@ubuntu.com>
2655
2656 * util/hostdisk.c (open_device): Add trailing newline to debug
2657 message.
2658
ea4a7e35
GS
26592010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
2660
2661 * configure.ac: Check for `limits.h'.
2662 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
2663
67951a53
RM
26642010-01-24 Robert Millan <rmh.grub@aybabtu.com>
2665
2666 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
2667 capitalize error strings.
2668
c273d4ce
ST
26692010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
2670
2671 * util/grub.d/10_hurd.in: Add a recovery mode.
2672
69be5b74
VS
26732010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
2674
2675 * configure.ac: Check for libgcc symbols with -nostdlib.
2676
fc9e5810
BC
26772010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
2678
2679 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
2680
4b358c0a
VS
26812010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
2682
2683 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
2684 stack since heap may be unavailable at that point.
2685 (grub_ofconsole_gotoxy): Likewise.
2686
454fcd1c
VS
26872010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
2688
2689 * configure.ac: Check for _restgpr_14_x.
2690 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
2691 and _savegpr_* prototypes.
2692
566863ca
RM
26932010-01-22 Robert Millan <rmh.grub@aybabtu.com>
2694
2695 Use generic grub_reboot() for i386-efi.
2696
2697 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
2698 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
2699 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
2700
bf86e59a
VS
27012010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
2702
2703 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
2704 presence of "prefix" variable as it breaks when normal.mod is
2705 embedded.
2706
d645e0f8
VS
27072010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
2708
2709 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
2710 stack since heap is unavailable at that point.
2711
f9ab2e25
VS
27122010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
2713
2714 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
2715 (grub_freebsd_bootinfo): Rewritten.
2716 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
2717
01fc7054
VS
27182010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
2719
2720 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
2721
caab4fd6
RM
27222010-01-21 Robert Millan <rmh.grub@aybabtu.com>
2723
2724 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
2725 domain now.
2726
67eb1427
FZ
27272010-01-20 Felix Zielcke <fzielcke@z-51.de>
2728
2729 * util/misc.c (make_system_path_relative_to_its_root): Change the work
2730 around for handling "/" to the correct fix. Fix a memory leak. Use
2731 xstrdup instead of strdup.
2732
a9ed4ff3
VS
27332010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
2734
2735 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
2736
27372010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
bed35bda
VS
2738
2739 Optimise glyph lookup by Basic Multilingual Plane lookup array.
2740
2741 * font/font.c (struct grub_font): New member 'bmp_idx'.
2742 (font_init): Initialise 'bmp_idx'.
2743 (load_font_index): Fill 'bmp_idx'.
2744 (find_glyph): Make inline. Use bmp_idx for BMP characters.
2745
48209f4f
VS
27462010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
2747
2748 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
2749 unnecessary calls.
2750
9f0a4bb7
VS
27512010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
2752
2753 Move context handling out of the kernel.
2754
2755 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
2756 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
2757 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
2758 * conf/i386-efi.rmk: Likewise.
2759 * conf/i386-ieee1275.rmk: Likewise.
2760 * conf/i386-pc.rmk: Likewise.
2761 * conf/powerpc-ieee1275.rmk: Likewise.
2762 * conf/sparc64-ieee1275.rmk: Likewise.
2763 * conf/x86_64-efi.rmk: Likewise.
2764 * include/grub/env.h: Include grub/menu.h.
2765 (grub_env_var_type): Removed.
2766 (grub_env_var): Replaced field 'type' with 'global'.
2767 (grub_env_find): New prototype.
2768 (grub_env_context_open): Remove EXPORT_FUNC.
2769 (grub_env_context_close): Likewise.
2770 (grub_env_export): Likewise.
2771 (grub_env_set_data_slot): Removed.
2772 (grub_env_get_data_slot): Likewise.
2773 (grub_env_unset_data_slot): Likewise.
2774 (grub_env_unset_menu): New prototype.
2775 (grub_env_set_menu): Likewise.
2776 (grub_env_get_menu): Likewise.
2777 * include/grub/env_private.h: New file.
2778 * include/grub/normal.h (grub_context_init): New prototype.
2779 (grub_context_fini): Likewise.
2780 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
2781 * normal/context.c (grub_cmd_export): ... to here.
2782 * kern/env.c: Include env_private.h.
2783 (HASHSZ): Moved to include/grub/env_private.h.
2784 (grub_env_context): Likewise.
2785 (grub_env_sorted_var): Likewise.
2786 (current_context): Renamed from this ...
2787 (grub_current_context): ...to this. 'static' removed. All users updated.
2788 (grub_env_find): Removed 'static'.
2789 (grub_env_context_open): Moved to normal/context.c.
2790 (grub_env_context_close): Likewise.
2791 (grub_env_export): Likewise.
2792 (mangle_data_slot_name): Removed.
2793 (grub_env_set_data_slot): Likewise.
2794 (grub_env_get_data_slot): Likewise.
2795 (grub_env_unset_data_slot): Likewise.
2796 * kern/main.c (grub_set_root_dev): Don't export root.
2797 It will be done later.
2798 (grub_main): Don't export prefix.
2799 It will be done later.
2800 * normal/context.c: New file.
2801 * normal/main.c (free_menu): Use grub_env_unset_menu.
2802 (grub_normal_add_menu_entry): Use grub_env_get_menu.
2803 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
2804 (GRUB_MOD_INIT(normal)): Call grub_context_init.
2805 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
2806
8dd35b8c
VS
28072010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
2808
2809 setpci support.
2810
2811 * commands/setpci.c: New file.
2812 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
2813 (setpci_mod_SOURCES): New variable.
2814 (setpci_mod_CFLAGS): Likewise.
2815 (setpci_mod_LDFLAGS): Likewise.
2816
449193d5
VS
28172010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
2818
2819 Byte-addressable PCI configuration space.
2820
2821 * bus/pci.c (grub_pci_make_address): Use byte address instead of
2822 dword address.
2823 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
2824 GRUB_PCI_REG_CACHELINE.
2825 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
2826 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
2827 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
2828 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
2829 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
2830 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
2831 grub_pci_make_address.
2832 (lock_rom_area): Likewise.
2833 * commands/lspci.c (grub_lspci_iter): Use macroses
2834 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
2835 of grub_pci_make_address.
2836 * disk/ata.c (grub_ata_pciinit): Likewise.
2837 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
2838 (GRUB_PCI_REG_VENDOR): Likewise.
2839 (GRUB_PCI_REG_DEVICE): Likewise.
2840 (GRUB_PCI_REG_COMMAND): Likewise.
2841 (GRUB_PCI_REG_STATUS): Likewise.
2842 (GRUB_PCI_REG_REVISION): Likewise.
2843 (GRUB_PCI_REG_CLASS): Likewise.
2844 (GRUB_PCI_REG_CACHELINE): Likewise.
2845 (GRUB_PCI_REG_LAT_TIMER): Likewise.
2846 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
2847 (GRUB_PCI_REG_BIST): Likewise.
2848 (GRUB_PCI_REG_ADDRESSES): Likewise.
2849 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
2850 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
2851 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
2852 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
2853 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
2854 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
2855 (GRUB_PCI_REG_CIS_POINTER): Likewise.
2856 (GRUB_PCI_REG_SUBVENDOR): Likewise.
2857 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
2858 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
2859 (GRUB_PCI_REG_CAP_POINTER): Likewise.
2860 (GRUB_PCI_REG_IRQ_LINE): Likewise.
2861 (GRUB_PCI_REG_IRQ_PIN): Likewise.
2862 (GRUB_PCI_REG_MIN_GNT): Likewise.
2863 (GRUB_PCI_REG_MAX_LAT): Likewise.
2864 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
2865 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
2866 * video/efi_uga.c (find_framebuf): Likewise.
fdb1b2ea 2867 * video/sm712.c (grub_video_sm712_setup): Likewise.
449193d5
VS
2868 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
2869 space.
2870
96d73208
RM
28712010-01-20 Robert Millan <rmh.grub@aybabtu.com>
2872
2873 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
2874 can be reliably determined to be supported.
2875
d4484482
RM
28762010-01-20 Robert Millan <rmh.grub@aybabtu.com>
2877
2878 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
2879 that VESA is supported.
2880 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
2881 supported.
2882
00308ecf
VS
28832010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
2884
2885 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
2886
f66924a4
RM
28872010-01-20 Robert Millan <rmh.grub@aybabtu.com>
2888
2889 * util/misc.c (make_system_path_relative_to_its_root): Work around
2890 special-casing of "/", as previous incarnation of this routine did.
2891
cbca0ada
VS
28922010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
2893
2894 Fix any-emu compilation.
2895
2896 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
2897 * grub_bin2h_SOURCES: New variable.
2898
34a66d99
RM
28992010-01-20 Robert Millan <rmh.grub@aybabtu.com>
2900
2901 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
2902
94fabf58
RM
29032010-01-20 Robert Millan <rmh.grub@aybabtu.com>
2904
2905 * util/grub.d/00_header.in: Fix handling of locale_dir.
2906
02cf98ca
VS
29072010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
2908
2909 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
2910 as possible unifont location (Gentoo).
2911 Reported by: Alexander Brüning
2912
327dbcd7
VS
29132010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
2914
2915 Don't try to generate lists for kernel.img.
2916
2917 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
2918 (pkglib_MODULES): Remove kernel.img.
2919 (kernel_img_EXPORTS): Removed.
2920 (kernel_img_RELOCATABLE): New variable.
2921 * conf/x86_64-efi.rmk: Likewise.
2922 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
2923
ca467290
VS
29242010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
2925
2926 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
2927 grub_xasprintf or grub_snprintf.
2928 (grub_vsprintf): Likewise.
2929 (grub_snprintf): New proto.
2930 (grub_vsnprintf): Likewise.
2931 (grub_xasprintf): Likewise.
2932 (grub_xvasprintf): Likewise.
2933 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
2934 (grub_sprintf): Removed.
2935 (grub_vsnprintf): New function.
2936 (grub_snprintf): Likewise.
2937 (grub_xvasprintf): Likewise.
2938 (grub_xasprintf): Likewise.
2939 (grub_vsprintf): Renamed to ...
2940 (grub_vsnprintf_real): ...this. New argument max_len.
2941
aca655fd
BC
29422010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
2943
2944 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
2945 fix grub-script-check warning.
2946
7ee92c32
VS
29472010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
2948
2949 * include/grub/font.h (grub_font_load): Fix prototype.
2950
f80927ca
VS
29512010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
2952
2953 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
2954
119c50ea
VS
29552010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
2956
2957 * include/grub/x86_64/at_keyboard.h: New file.
2958
47d5f3c1
VS
29592010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
2960
2961 * loader/mips/linux.c: Include missing grub/i18n.h.
2962
55ff5266
RM
29632009-12-20 Robert Millan <rmh.grub@aybabtu.com>
2964
2965 * normal/menu.c (notify_execution_failure): Clarify error message.
2966
c893cc87
RM
29672009-12-20 Robert Millan <rmh.grub@aybabtu.com>
2968
2969 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
2970 return value (and revert all return statements). Update users.
2971
917dd370
CW
29722010-01-20 Dan Merillat <debian@dan.merillat.org>
2973
2974 * kern/device.c (grub_device_iterate): Allocate new part_ent
2975 structure based on sizeof (*p) rather than sizeof (p->next), to
2976 account for structure padding.
2977
2978 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
2979 disk is NULL, which might happen for LVM physical volumes with no
2980 LVM signature.
2981
d4a4ee57
RM
29822009-12-20 Robert Millan <rmh.grub@aybabtu.com>
2983
2984 * loader/mips/linux.c (grub_cmd_initrd)
2985 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
2986
29872009-12-20 Robert Millan <rmh.grub@aybabtu.com>
2988
2989 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
2990 (grub_video_video_init, grub_video_bitmap_init)
2991 (grub_font_manager_init, grub_term_gfxterm_init)
2992 (grub_at_keyboard_init): New extern declarations.
2993 (grub_machine_init): Initialize gfxterm and at_keyboard.
2994
2995 * kern/main.c (grub_main): Revert grub_printf delay kludge.
2996
2997 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
2998 `gfxterm.mod' into core image.
2999
3000 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
3001 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
3002 (kernel_img_FORMAT): Copy to ...
3003
3004 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
3005 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
3006 (kernel_img_FORMAT): ... here, and ...
3007
3008 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
3009 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
3010 (kernel_img_FORMAT): ... here.
3011
3012 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
3013 and input (at_keyboard) terminals in kernel.
3014 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
3015
3016 (pkglib_MODULES): Remove `pci.mod'.
3017 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
3018 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
3019 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
3020 (at_keyboard_mod_LDFLAGS): Remove variables.
3021
30222010-01-11 Felix Zielcke <fzielcke@z-51.de>
3023
3024 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
3025
30262009-12-10 Robert Millan <rmh.grub@aybabtu.com>
3027
3028 * include/grub/mips/libgcc.h: Only export symbols for functions
3029 that libgcc provides.
3030
30312009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
3032
3033 MIPS support.
3034
3035 * bus/bonito.c: New file.
3036 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
3037 GRUB_PCI_NUM_DEVICES.
3038 * term/i386/pc/serial.c: Move to ...
3039 * term/serial.c: ... here. All users updated.
3040 * util/i386/pc/grub-mkimage.c: Move to ...
3041 * util/grub-mkrawimage.c: ... here. All users updated.
3042 * term/i386/pc/at_keyboard.c: Move to ...
3043 * term/at_keyboard.c: ... here. All users updated.
3044 * conf/mips-qemu-mips.rmk: New file.
3045 * conf/mips-yeeloong.rmk: Likewise.
3046 * conf/mips.rmk: Likewise.
3047 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
3048 mipsel-qemu-mips.
3049 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
3050 to port addresses.
3051 (grub_ata_pciinit): Support CS5536.
3052 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
3053 * font/font_cmd.c (loadfont_command): Open file before passing it to
3054 grub_font_load.
3055 (pseudo_file_read): New function.
3056 (pseudo_file_close): Likewise.
3057 (pseudo_fs): New structure.
3058 (load_font_module): New function.
3059 (GRUB_MOD_INIT(font_manager)): Load embedded font.
3060 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
3061 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
3062 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
3063 * include/grub/i386/at_keyboard.h: Split into ...
3064 * include/grub/at_keyboard.h: ... this ...
3065 * include/grub/i386/at_keyboard.h: ... and this.
3066 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
3067 New prototype.
3068 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
3069 updated.
3070 (grub_elf64_size): Likewise.
3071 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
3072 filename.
3073 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
3074 * include/grub/i386/coreboot/serial.h: Rewritten.
3075 * include/grub/i386/ieee1275/serial.h: Include
3076 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
3077 * include/grub/i386/pc/serial.h: Moved from here ...
3078 * include/grub/serial.h: ... to here. All users updated.
3079 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
3080 (GRUB_PCI_NUM_BUS): Likewise.
3081 (GRUB_PCI_NUM_DEVICES): Likewise.
3082 (grub_pci_device_map_range): Add missing volatile keyword.
3083 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
3084 * include/grub/mips/at_keyboard.h: New file.
3085 * include/grub/mips/cache.h: Likewise.
3086 * include/grub/mips/io.h: Likewise.
3087 * include/grub/mips/kernel.h: Likewise.
3088 * include/grub/mips/libgcc.h: Likewise.
3089 * include/grub/mips/pci.h: Likewise.
3090 * include/grub/mips/qemu-mips/boot.h: Likewise.
3091 * include/grub/mips/qemu-mips/kernel.h: Likewise.
3092 * include/grub/mips/qemu-mips/loader.h: Likewise.
3093 * include/grub/mips/qemu-mips/memory.h: Likewise.
3094 * include/grub/mips/qemu-mips/serial.h: Likewise.
3095 * include/grub/mips/qemu-mips/time.h: Likewise.
3096 * include/grub/mips/relocator.h: Likewise.
3097 * include/grub/mips/time.h: Likewise.
3098 * include/grub/mips/types.h: Likewise.
3099 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
3100 * include/grub/mips/yeeloong/boot.h: Likewise.
3101 * include/grub/mips/yeeloong/kernel.h: Likewise.
3102 * include/grub/mips/yeeloong/loader.h: Likewise.
3103 * include/grub/mips/yeeloong/memory.h: Likewise.
3104 * include/grub/mips/yeeloong/pci.h: Likewise.
3105 * include/grub/mips/yeeloong/serial.h: Likewise.
3106 * include/grub/mips/yeeloong/time.h: Likewise.
3107 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
3108 * kern/elf.c (grub_elf32_size): New parameter. All users
3109 updated.
3110 (grub_elf64_size): Likewise.
3111 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
3112 Load modules before saying "Welcome to GRUB!".
3113 Call grub_refresh after saying "Welcome to GRUB!".
3114 * kern/mips/cache.S: New file.
3115 * kern/mips/cache_flush.S: Likewise.
3116 * kern/mips/dl.c: Likewise.
3117 * kern/mips/init.c: Likewise.
3118 * kern/mips/qemu-mips/init.c: Likewise.
3119 * kern/mips/startup.S: Likewise.
3120 * kern/mips/yeeloong/init.c: Likewise.
3121 * kern/term.c (grub_putcode): Handle NULL terminal.
3122 (grub_getcharwidth): Likewise.
3123 (grub_getkey): Likewise.
3124 (grub_checkkey): Likewise.
3125 (grub_getkeystatus): Likewise.
3126 (grub_getxy): Likewise.
3127 (grub_getwh): Likewise.
3128 (grub_gotoxy): Likewise.
3129 (grub_cls): Likewise.
3130 (grub_setcolorstate): Likewise.
3131 (grub_setcolor): Likewise.
3132 (grub_getcolor): Likewise.
3133 (grub_refresh): Likewise.
3134 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
3135 (write_jump): Add hatch nop.
3136 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
3137 * lib/mips/setjmp.S: New file.
3138 * loader/mips/linux.c: Likewise.
3139 * term/i386/pc/at_keyboard.c: Move from here ...
3140 * term/at_keyboard.c: ... to here.
3141 * term/i386/pc/serial.c: Moved from here ...
3142 * term/serial.c: ... to here. All users updated.
3143 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
3144 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
3145 (serial_translate_key_sequence): Avoid deadlock.
3146 (grub_serial_getkey): Handle backspace.
3147 (grub_serial_putchar): Fix newline handling.
3148 * util/i386/pc/grub-mkimage.c: Move from here ...
3149 * util/grub-mkrawimage.c: ... to here. All users updated.
3150 (generate_image): New parameters 'font_path' and 'format'.
3151 Support embedding font.
3152 Use grub_host_to_target* instead of grub_cpu_to_le*.
3153 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
3154 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
3155 (options): New option "--font".
3156 (usage): Likewise.
3157 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
3158 (main): Handle "--font".
3159 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
3160 (grub_virtual_screen_setup): Set bg_color_display.
3161 (redraw_screen_rect): Use bg_color_display instead of incorrect
3162 bg_color.
3163 (grub_gfxterm_cls): Likewise.
3164 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
3165 Support embedding config file.
3166 (add_segments): Likewise.
3167 (options): New option "--config".
3168 (main): Handle "--config".
3169 * video/sm712.c: New file.
3170
25c2b5b3
RM
31712010-01-18 Robert Millan <rmh.grub@aybabtu.com>
3172
3173 Fix parallel builds.
3174
3175 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
3176 font.c depend on ascii.h).
3177
31782010-01-12 Carles Pina i Estany <carles@pina.cat>
3179
3180 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
3181
31822010-01-11 Carles Pina i Estany <carles@pina.cat>
3183
3184 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
3185 By default: disabled.
3186 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
3187 parameter.
3188
31892010-01-10 Carles Pina i Estany <carles@pina.cat>
3190
3191 * font/font.c: Update copyright years.
3192 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
3193
31942010-01-10 Carles Pina i Estany <carles@pina.cat>
3195
3196 * font/font.c: Include `ascii.h'.
3197 (ASCII_BITMAP_SIZE): New macro.
3198 (ascii_font_glyph): Define.
3199 (ascii_glyph_lookup): New function.
3200 (grub_font_get_string_width): Change comment. If glyph not found, use
3201 ascii_glyph_lookup.
3202 (grub_font_get_glyph_with_fallback): If glyph not available returns
3203 ascii_glyph_lookup.
3204 * util/grub-mkfont.c (file_formats): New enum.
3205 (options): Add `ascii-bitmaps' new option.
3206 (usage): Add `asii-bitmaps' new option.
3207 (write_font_ascii_bitmap): New function.
3208 (write_font): Rename to ...
3209 (write_font_p2): ... this. Remove print_glyphs call.
3210 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
3211 used. Call print_glyphs.
3212 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
3213
32142010-01-14 Robert Millan <rmh.grub@aybabtu.com>
3215
3216 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
3217 (grub_bin2h_SOURCES): New variable.
3218 * util/bin2h.c: New file.
3219
915fc1b8
VS
32202010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3221
3222 * include/multiboot.h: Resynced with spec.
3223 * include/multiboot2.h: Likewise.
3224 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
3225 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
3226
9444b678
RM
32272010-01-18 Robert Millan <rmh.grub@aybabtu.com>
3228
3229 * include/grub/term.h (grub_term_register_input,
3230 grub_term_register_output): Check return of terminal init()
3231 routines, and abort if errors are raised.
3232
3233 * commands/terminal.c: Update copyright year.
3234
cba98e8d
RM
32352010-01-18 Robert Millan <rmh.grub@aybabtu.com>
3236
3237 * commands/terminal.c (grub_cmd_terminal_input)
3238 (grub_cmd_terminal_output): Check return of terminal init()
3239 routines, and abort if errors are raised.
3240
6f7db5d6
VS
32412010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
3242
3243 * include/grub/i386/bsd.h: Fix include pathes.
3244
262bff8d
VS
32452010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
3246
3247 Add missing *BSD copyright headers.
3248
3249 * include/grub/aout.h: Add BSD licence.
3250 * include/grub/i386/bsd.h: Parts under different licences moved to ...
3251 * include/grub/i386/freebsd_linker.h: ... here,
3252 * include/grub/i386/freebsd_reboot.h: ... here,
3253 * include/grub/i386/netbsd_bootinfo.h: ... here,
3254 * include/grub/i386/netbsd_reboot.h: ... here,
3255 * include/grub/i386/openbsd_bootarg.h: ... here,
3256 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
3257 licence to each file.
3258
b2cab848
RM
32592010-01-18 Robert Millan <rmh.grub@aybabtu.com>
3260
3261 * acinclude.m4: Remove `nop' assembly instruction; it's not
3262 implemented by all architectures.
3263
2cb6be4b
RM
32642010-01-18 Robert Millan <rmh.grub@aybabtu.com>
3265
3266 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
3267 ELILO. This is no longer necessary.
3268
a2eaee15
BC
32692010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
3270
3271 Added new tool, grub-scrit-check to verify grub.cfg syntax.
3272
3273 * util/grub-script-check.c: grub-script-check tool.
3274 * conf/common.rmk: Make rules for grub-script-check.
3275
88d17012
RM
32762010-01-18 Robert Millan <rmh.grub@aybabtu.com>
3277
3278 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
3279 spotting it back in 2008. Shame on me for forgetting he did.
3280
3281 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
3282
8040619d
RM
32832010-01-18 Robert Millan <rmh.grub@aybabtu.com>
3284
3285 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
3286 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
3287 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
3288 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
3289 (GRUB_VIDEO_TYPE_EFI): Rename to ...
3290 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
3291
a0c2a0f6
RM
32922010-01-17 Robert Millan <rmh.grub@aybabtu.com>
3293
3294 * include/grub/test.h: Add license header.
3295 * tests/example_functional_test.c: Likewise.
3296 * tests/example_unit_test.c: Likewise.
3297 * tests/lib/functional_test.c: Likewise.
3298 * tests/lib/test.c: Likewise.
3299 * tests/lib/unit_test.c: Likewise.
3300
b0b13907
VS
33012010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
3302
3303 Use flag-based instead of hook-based video mode selection and "auto"
3304 keyword.
3305
3306 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
3307 (grub_video_set_mode): Changed prototype. All users updated.
3308 (grub_video_check_mode_flag): New inline function.
3309 * video/video.c (parse_modespec): New function.
3310 (grub_video_set_mode): Parse flags and keywords.
3311
ea379330 33122010-01-17 Carles Pina i Estany <carles@pina.cat>
3313
3314 * util/misc.c (grub_util_info): Fix the order of the parameters in a
3315 fprintf call.
3316
e15c215e
FZ
33172010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
3318
3319 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
3320
409ae1c9 33212010-01-16 Carles Pina i Estany <carles@pina.cat>
3322
3323 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
3324 string.
3325 * util/grub-emu.c (usage): Likewise.
3326 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
3327 * util/i386/efi/grub-mkimage.c (usage): Likewise.
3328 * util/i386/pc/grub-mkimage.c (usage): Likewise.
3329 * util/i386/pc/grub-setup.c (usage): Likewise.
3330
70a14d3d 33312010-01-16 Carles Pina i Estany <carles@pina.cat>
3332
3333 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
3334 the message.
3335 (grub_util_info): Likewise.
3336 (grub_util_error): Likewise.
3337 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
3338 and/or new lines in `grub_util_warna', `grub_util_info',
3339 `grub_util_error' calls.
3340 * util/getroot.c: Likewise.
3341 * util/grub-editenv.c: Likewise.
3342 * util/grub-emu.c: Likewise.
3343 * util/grub-fstest.c: Likewise.
3344 * util/grub-mkdevicemap.c: Likewise.
3345 * util/grub-mkfont.c: Likewise.
3346 * util/grub-mkpasswd-pbkdf2.c: Likewise.
3347 * util/grub-mkrelpath.c: Likewise.
3348 * util/grub-pe2elf.c: Likewise.
3349 * util/grub-probe.c: Likewise.
3350 * util/hostdisk.c: Likewise.
3351 * util/i386/efi/grub-mkimage.c: Likewise.
3352 * util/i386/pc/grub-mkimage.c: Likewise.
3353 * util/i386/pc/grub-setup.c: Likewise.
3354 * util/ieee1275/ofpath.c: Likewise.
3355 * util/mkisofs/eltorito.c: Likewise.
3356 * util/mkisofs/rock.c: Likewise.
3357 * util/mkisofs/write.c: Likewise.
3358 * util/raid.c: Likewise.
3359 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
3360 * util/sparc64/ieee1275/grub-setup.c: Likewise.
3361
a0b766fc
VS
33622010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
3363
3364 Enable multiboot on non-pc.
3365
3366 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
3367 multiboot.mod and multiboot2.mod to ...
3368 * conf/i386.rmk (pkglib_MODULES): ... here.
3369 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
3370 Moved to ...
3371 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
3372 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
3373 Moved to ...
3374 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
3375 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
3376 Moved to ...
3377 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
3378 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
3379 Moved to ...
3380 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
3381 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
3382 relocator.mod.
3383 (ata_mod_SOURCES): Removed.
3384 (ata_mod_CFLAGS): Likewise.
3385 (ata_mod_LDFLAGS): Likewise.
3386 (relocator_mod_SOURCES): Removed.
3387 (relocator_mod_CFLAGS): Likewise.
3388 (relocator_mod_ASFLAGS): Likewise.
3389 (relocator_mod_LDFLAGS): Likewise.
3390 Include i386.mk.
3391 * include/grub/x86_64/multiboot.h: New file.
3392 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
3393 Terminate EFI.
3394
884ade56
VS
33952010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
3396
3397 Video multiboot support.
3398
3399 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
3400 New prototype.
3401 * include/multiboot.h: Resynced with multiboot specification.
3402 * include/multiboot2.h: Likewise.
3403 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
3404 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
3405 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
3406 (HAS_VGA_TEXT): Likewise.
3407 (accepts_video): New variable.
3408 (grub_multiboot_set_accepts_video): New function.
3409 (grub_multiboot_get_mbi_size): Account for video structures.
3410 (set_video_mode): New function.
3411 (retrieve_video_parameters): Likewise.
3412 (grub_multiboot_make_mbi): Fill video fields.
3413
0d90e8a6
VS
34142010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
3415
3416 Video driver ids.
3417
3418 * include/grub/video.h (grub_video_driver_id): New type.
3419 (grub_video_adapter): New member 'id'. All users updated.
3420 (grub_video_get_driver_id): New proto.
3421 * video/video.c (grub_video_get_driver_id): New function.
3422
5c71db1b 34232010-01-14 Carles Pina i Estany <carles@pina.cat>
3424
3425 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
3426 `var=val'.
3427
cca15b52 34282010-01-14 Carles Pina i Estany <carles@pina.cat>
3429
3430 * normal/cmdline.c (print_completion): Gettextizze.
3431
c586fbb2 34322001-01-14 Carles Pina i Estany <carles@pina.cat>
3433
3434 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
3435
ba2f6848 34362010-01-14 Carles Pina i Estany <carles@pina.cat>
3437
3438 * gettext/gettext.c (grub_gettext_translate): Push and pop
3439 grub_errno.
3440 (grub_gettext_delete_list): Change comment style.
3441 * kern/err.c (grub_error): Gettextizze.
3442 (grub_fatal): Gettextizze.
3443
0a46429a
RM
34442010-01-14 Robert Millan <rmh.grub@aybabtu.com>
3445
3446 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
3447 (grub_linux16_real_boot): ... this.
3448 * kern/i386/loader.S: Likewise.
3449 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
3450 (grub_linux16_boot): New function. Switches to text mode and calls
3451 grub_linux16_real_boot().
3452
3453 * loader/i386/bsd.c: Include `<grub/video.h>'.
3454 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
3455 text mode before calling grub_unix_real_boot().
3456
3457 * loader/i386/multiboot.c: Include `<grub/video.h>'.
3458 (grub_multiboot_boot): Switch to text mode before calling
3459 grub_relocator32_boot().
3460
3461 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
3462 (grub_chainloader_boot): Switch to text mode before calling
3463 grub_chainloader_real_boot().
3464
d6f93a66
RM
34652010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
34662010-01-05 Colin Watson <cjwatson@ubuntu.com>
3467
3468 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
3469 non-empty value.
3470
34712010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
34722010-01-05 Colin Watson <cjwatson@ubuntu.com>
3473
3474 * util/grub.d/00_header.in: Define a "savedefault" function for use
3475 in menu entries.
3476 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
3477
34782010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
34792010-01-05 Colin Watson <cjwatson@ubuntu.com>
3480
3481 * util/grub-mkconfig_lib.in (save_default_entry): Only set
3482 saved_entry if boot_once is unset.
3483 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
3484 previous saved entry (i.e. grub-reboot).
3485
34862009-12-08 Colin Watson <cjwatson@ubuntu.com>
3487
3488 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
3489
34902009-12-08 Colin Watson <cjwatson@ubuntu.com>
3491
3492 * util/grub.d/00_header.in: Use `set var=val' rather than plain
3493 `var=val'.
3494 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
3495
34962009-12-08 Colin Watson <cjwatson@ubuntu.com>
3497
3498 * util/grub-reboot.in: Fix --version output.
3499 * util/grub-set-default.in: Likewise.
3500
35012009-12-08 Colin Watson <cjwatson@ubuntu.com>
3502
3503 * util/grub.d/00_header.in: Silently ignore zero-sized environment
3504 blocks.
3505
35062009-12-08 Colin Watson <cjwatson@ubuntu.com>
3507
3508 * util/grub.d/00_header.in: Quote the value assigned to `default',
3509 in case it contains spaces.
3510
35112009-12-08 Colin Watson <cjwatson@ubuntu.com>
3512
3513 * util/grub.d/30_os-prober.in: Fix merge error that moved a
3514 `save_default_entry' call from the macosx case to the linux case.
3515
35162009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
35172009-10-25 Colin Watson <cjwatson@ubuntu.com>
3518
3519 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
3520 in `chosen' environment variable.
3521 * normal/menu_text.c (get_entry_number): Check if the variable
3522 matches the title of a menu entry.
3523 (run_menu): Pass menu to get_entry_number.
3524
3525 * util/grub-reboot.in: New file.
3526 * util/grub-set-default.in: New file.
3527 * conf/common.rmk (grub-reboot): New utility.
3528 (grub-set-default): New utility.
3529
3530 * util/grub-mkconfig_lib.in (save_default_entry): New function.
3531 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
3532 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
3533 move it to `saved_entry' for the next boot. Load environment on
3534 initialisation.
3535 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
3536 * util/grub.d/10_hurd.in: Likewise.
3537 * util/grub.d/10_linux.in (linux_entry): Likewise.
3538 * util/grub.d/10_windows.in: Likewise.
3539 * util/grub.d/30_os-prober.in: Likewise.
3540
3541 * util/grub-install.in: Create environment block.
3542 * util/i386/efi/grub-install.in: Likewise.
3543 * util/ieee1275/grub-install.in: Likewise.
3544 * util/sparc64/ieee1275/grub-install.in: Likewise.
3545
0934d184
BC
35462010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
3547
3548 Unit testing framework for GRUB.
3549
3550 * Makefile.in: Test framework build rules for 'make check'.
3551 * conf/tests.rmk: Build rules for individual tests and framework.
3552
3553 * include/grub/test.h: Header file for whitebox tests.
3554 * tests/lib/functional_test.c: Framework support for whitebox
3555 functional tests.
3556 * tests/lib/test.c: Common whitebox testing code for unit and
3557 functional tests.
3558 * tests/lib/unit_test.c: Framework support for whitebox unit
3559 tests.
3560
3561 * tests/util/grub-shell-tester.in: Support utility for grub-script
3562 tests.
3563 * tests/util/grub-shell.in: Utility to execute grub-script
3564 commands in a Qemu instance.
3565
3566 * tests/example_functional_test.c: Example whitebox functional
3567 test.
3568 * tests/example_grub_script_test.in: Example grub-script test.
3569 * tests/example_scripted_test.in: Example scripted test.
3570 * tests/example_unit_test.c: Example whitebox unit test.
3571
9c4ffeeb
VS
35722010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
3573
3574 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
3575 Add loader/i386/multiboot_mbi.c.
3576 (multiboot2_mod_SOURCES): Likewise.
3577 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
3578 (multiboot2_mod_SOURCES): Likewise.
3579 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
3580 (grub_multiboot_make_mbi): Likewise.
3581 (grub_multiboot_free_mbi): Likewise.
3582 (grub_multiboot_init_mbi): Likewise.
3583 (grub_multiboot_add_module): Likewise.
3584 (grub_multiboot_set_bootdev): Likewise.
3585 * loader/i386/multiboot.c (mbi): Removed.
3586 (mbi_dest): Likewise.
3587 (alloc_mbi): New variable.
3588 (grub_multiboot_payload_size): Removed. All users updated.
3589 (grub_multiboot_pure_size): New variable.
3590 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
3591 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
3592 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
3593 (grub_fill_multiboot_mmap): Likewise.
3594 (grub_multiboot_get_bootdev): Likewise.
3595 (grub_multiboot): Use multiboot_mbi functions.
3596 * loader/i386/multiboot_mbi.c: New file.
3597
17383dfe
VS
35982010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
3599
3600 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
3601 it would result in module crash.
3602
c1f28820
VS
36032010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
3604
3605 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
3606 (grub_ofconsole_getwh): Split to ...
3607 (grub_ofconsole_getwh): ... this.
3608 (grub_ofconsole_dimensions): ...and this.
3609 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
3610
58655a16
RM
36112010-01-13 Robert Millan <rmh.grub@aybabtu.com>
3612
3613 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
3614
10891398
VS
36152010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
3616
3617 * loader/i386/pc/multiboot2.c: Removed stalled file.
3618
0b8a223c
VS
36192010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
3620
3621 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
3622 Reported by: Grégoire Sutre
3623
92ab12b0
RM
36242010-01-11 Robert Millan <rmh.grub@aybabtu.com>
3625
3626 * util/misc.c (canonicalize_file_name): New function.
3627 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
3628 instead of realpath().
3629
a788afb6
CW
36302010-01-11 Colin Watson <cjwatson@ubuntu.com>
3631
3632 * util/grub-install.in (usage): Clarify meaning of --root-directory,
3633 and make it clearer that it's optional. Based on confusion
3634 witnessed on IRC.
3635
ffa8e3d2
VS
36362010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
3637
3638 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
3639 in premature implicit newline.
3640
e9060a9d
VS
36412010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
3642
3643 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
3644 which resulted in garbled command line at the end of screen.
3645
f0d0c0b7
RM
36462010-01-10 Robert Millan <rmh.grub@aybabtu.com>
3647
3648 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
3649 initialization with similar approach as with other Linux loaders.
3650
0e60bae7
RM
36512010-01-10 Robert Millan <rmh.grub@aybabtu.com>
3652
3653 Fix i386-ieee1275 build.
3654
3655 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
3656 and grub_term_height() for video_{width,height} initialization.
3657
36582010-01-10 Robert Millan <rmh.grub@aybabtu.com>
cdec4d31
RM
3659
3660 Fix grub-emu build.
3661
3662 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
3663
cdb3f378
RM
36642010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
36652010-01-09 Robert Millan <rmh.grub@aybabtu.com>
3666
3667 Support for multiple terminals.
3668
3669 * Makefile.in (pkglib_DATA): terminal.lst.
3670 (terminal.lst): New target.
3671 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
3672 (GRUB_MOD_INIT(handler)): Likewise.
3673 (GRUB_MOD_FINI(handler)): Likewise.
3674 * commands/help.c (grub_cmd_help): Handle multiple terminals.
3675 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
3676 * commands/sleep.c (do_print): Use grub_term_restore_pos.
3677 (grub_cmd_sleep): Use grub_term_save_pos.
3678 * commands/terminal.c: New file.
3679 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
3680 commands/terminal.c and lib/charset.c.
3681 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
3682 (pkglib_MODULES): Add terminal.mod.
3683 (terminal_mod_SOURCES): New variable.
3684 (terminal_mod_CFLAGS): Likewise.
3685 (terminal_mod_LDFLAGS): Likewise.
3686 * genhandlerlist.sh: Don't handle terminals.
3687 * genmk.rb: Generate terminal-*.lst.
3688 * genterminallist.sh: New file.
3689 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
3690 (grub_is_valid_utf8): Likewise.
3691 (grub_utf8_to_ucs4_alloc): Likewise.
3692 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
3693 (grub_menu_register_viewer): Changed argument.
3694 (grub_menu_try_text): New proto.
3695 (grub_gfxmenu_try_hook): New declaration.
3696 * include/grub/normal.h (grub_normal_exit_level): New declaration.
3697 (grub_menu_init_page): Additional argument term.
3698 (grub_normal_init_page): Likewise.
3699 (grub_cmdline_get): Arguments simplified.
3700 (grub_utf8_to_ucs4_alloc): Removed.
3701 (grub_print_ucs4): Additional argument term.
3702 (grub_getstringwidth): Likewise.
3703 (grub_print_message_indented): Likewise.
3704 (grub_menu_text_register_instances): New proto.
3705 (grub_show_menu): Likewise.
3706 (read_terminal_list): Likewise.
3707 (grub_set_more): Likewise.
3708 * include/grub/parser.h: Include handler.h.
3709 * include/grub/reader.h: Rewritten.
3710 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
3711 (GRUB_TERM_WIDTH): Changed to function.
3712 (GRUB_TERM_HEIGHT): Likewise.
3713 (GRUB_TERM_BORDER_WIDTH): Likewise.
3714 (GRUB_TERM_BORDER_HEIGHT): Likewise.
3715 (GRUB_TERM_NUM_ENTRIES): Likewise.
3716 (GRUB_TERM_ENTRY_WIDTH): Likewise.
3717 (GRUB_TERM_CURSOR_X): Likewise.
3718 (grub_term_input_class): Likewise.
3719 (grub_term_output_class): Likewise.
3720 (grub_term_outputs_disabled): New declaration.
3721 (grub_term_inputs_disabled): Likewise.
3722 (grub_term_outputs): Likewise.
3723 (grub_term_inputs): Likewise.
3724 (grub_term_register_input): Rewritten.
3725 (grub_term_register_output): Likewise.
3726 (grub_term_unregister_input): Likewise.
3727 (grub_term_unregister_output): Likewise.
3728 (FOR_ACTIVE_TERM_INPUTS): New macro.
3729 (FOR_DISABLED_TERM_INPUTS): Likewise.
3730 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
3731 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
3732 * include/grub/terminfo.h: Add oterm argument to all protypes.
3733 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
3734 Use grub_rescue_run.
3735 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
3736 All users updated.
3737 * kern/reader.c: Removed. All users updated.
3738 * kern/rescue_reader.c (grub_rescue_init): Removed.
3739 (grub_rescue_reader): Likewise.
3740 (grub_register_rescue_reader): Likewise.
3741 (grub_rescue_run): New function based on kern/reader.c.
3742 * kern/term.c: Adapted for multiterm.
3743 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
3744 (grub_is_valid_utf8): Likewise.
3745 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
3746 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
3747 right terminal.
3748 * loader/i386/linux.c (grub_linux_boot): Likewise.
3749 * normal/auth.c (grub_username_get): New function.
3750 (grub_auth_check_authentication): Use grub_username_get.
3751 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
3752 * normal/color.c: Adapt for multiterm.
3753 * normal/main.c (read_config_file): Don't use grub_reader_loop.
3754 (grub_normal_init_page): Additional argument term.
3755 (read_lists): Call read_terminal_lists.
3756 (grub_enter_normal_mode): Call grub_cmdline_run.
3757 Handle grub_normal_exit_level.
3758 (grub_cmd_normal): Make reentrant.
3759 (grub_cmd_normal_exit): New function.
3760 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
3761 * normal/menu.c: Adapt for multiterm.
3762 * normal/menu_entry.c: Likewise.
3763 * normal/menu_text.c: Likewise.
3764 * normal/menu_viewer.c: Removed. All users updated.
3765 * normal/term.c: New file.
3766 * util/console.c: Change order of includes to workaround a bug in
3767 ncurses headers.
3768 * term/terminfo.c: New argument oterm on all exported functions.
3769 All users updated.
3770 * util/grub-editenv.c (grub_term_input_class): Removed.
3771 (grub_term_output_class): Likewise.
3772
1a064917
RM
37732010-01-09 Robert Millan <rmh.grub@aybabtu.com>
3774
3775 Make loader output a bit more user-friendly.
3776
3777 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
3778 is being loaded. Likewise for the Hurd.
3779
3780 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
3781 that kernel of FreeBSD ${version} is being loaded.
3782
3783 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
3784 grub_dprintf().
3785 (grub_cmd_initrd): Likewise.
3786 * util/grub.d/10_linux.in (linux_entry): Print message indicating
3787 that Linux ${version} is being loaded. Likewise for initrd.
3788
5ce0a83a 37892010-01-09 Carles Pina i Estany <carles@pina.cat>
3790
3791 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
3792
809bbfeb 37932010-01-08 Carles Pina i Estany <carles@pina.cat>
3794
3795 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
3796 (GRUB_MOD_INIT): Gettextizze.
3797 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
3798 (GRUB_MOD_INIT): Gettextizze.
3799 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
3800 (grub_cmd_linux): Capitalise Linux.
3801 (GRUB_MOD_INIT): Gettextizze.
3802 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
3803 (grub_cmd_linux): Capitalise Linux.
3804 (GRUB_MOD_INIT): Gettextizze.
3805 * loader/i386/linux.c: Include `<grub/i18n.h>'.
3806 (grub_cmd_linux): Capitalise Linux.
3807 (GRUB_MOD_INIT): Gettextizze.
3808 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
3809 (GRUB_MOD_INIT): Gettextizze.
3810 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
3811 (grub_cmd_linux): Capitalise Linux.
3812 (GRUB_MOD_INIT): Gettextizze.
3813 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
3814 (grub_cpu_xnu_init): Gettextizze.
3815 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
3816 (GRUB_MOD_INIT): Gettextizze.
3817 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
3818 (GRUB_MOD_INIT): Gettextizze.
3819 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
3820 (grub_linux_load64): Capitalise Linux.
3821 (GRUB_MOD_INIT): Gettextizze.
3822 * loader/xnu.c: Include `<grub/i18n.h>'.
3823 (GRUB_MOD_INIT): Gettextizze.
3824 * po/POTFILES: Add `loader/efi/appleloader.c',
3825 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
3826 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
3827 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
3828 `loader/i386/xnu.c', `loader/multiboot_loader.c',
3829 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
3830 and `loader/xnu.c'.
3831
b394b2ca
RM
38322010-01-08 Robert Millan <rmh.grub@aybabtu.com>
3833
3834 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
3835
38362010-01-08 Robert Millan <rmh.grub@aybabtu.com>
cd943b75
RM
3837
3838 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
3839 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
3840 * util/mkisofs/mkisofs.c (main): Readjust --version output.
3841
bc8b32b3
RM
38422010-01-07 Robert Millan <rmh.grub@aybabtu.com>
3843
3844 Reset Multiboot 2 support. New loader implements the draft in
3845 /branches/multiboot2 and shares as much code as possible with the
3846 production Multiboot 1 implementation.
3847
3848 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
3849 * loader/multiboot2.c: Likewise.
3850 * loader/i386/multiboot_helper.S: Likewise.
3851 * include/multiboot2.h: Replace with latest version from the draft
3852 in /branches/multiboot2.
3853
3854 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
3855 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
3856 and `loader/multiboot2.c'.
3857 (pkglib_MODULES): Add `multiboot2.mod'.
3858 (multiboot2_mod_SOURCES): New variable.
3859 (multiboot2_mod_LDFLAGS): Likewise.
3860 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
3861
3862 * conf/i386-pc.rmk: Likewise.
3863
3864 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
3865 (multiboot_mod_SOURCES): Remove variable.
3866 (multiboot_mod_LDFLAGS): Likewise.
3867 (multiboot_mod_CFLAGS): Likewise.
3868
3869 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
3870 `<multiboot2.h>' instead of `<multiboot.h>'.
3871 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
3872 (MULTIBOOT_HEADER_MAGIC): New macros.
3873
3874 * loader/multiboot_loader.c (module_version_status): Remove variable.
3875 (find_multi_boot2_header): Remove function.
3876 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
3877 logic. Always check for the Multiboot version we're compiling for.
3878 (grub_cmd_module_loader): Likewise.
3879 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
3880 command instead of `multiboot'.
3881
5d2c52b8
RM
38822010-01-07 Robert Millan <rmh.grub@aybabtu.com>
3883
3884 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
3885 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
3886 all users.
3887
53108d92
RM
38882010-01-07 Robert Millan <rmh.grub@aybabtu.com>
38892010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
3890
3891 Fix breakage introduced with previous commit.
3892
3893 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
3894 commands.
3895 * normal/handler.c (read_handler_list): Revert part of previous commit
3896 affecting this file.
3897 * normal/main.c (read_lists): Move read_handler_list() call back to ...
3898 (grub_normal_execute): ... here.
3899
e2e936b2
RM
39002010-01-07 Robert Millan <rmh.grub@aybabtu.com>
3901
3902 Merge prefix-redefinition-fix branch.
3903
3904 * normal/autofs.c (read_fs_list): Make function capable of being
3905 run multiple times, gracefuly replacing the previous data
3906 structures.
3907 * normal/dyncmd.c (read_command_list): Likewise.
3908 * normal/handler.c (read_handler_list): Likewise.
3909 * normal/main.c (read_lists): New function. Calls all the
3910 list reading functions.
3911 (grub_normal_execute): Use read_lists() instead of calling all
3912 list reading functions explicitly. Register read_lists() as a
3913 variable hook attached to ${prefix}.
3914
607a3701
VS
39152010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
3916
3917 Merge crypto branch.
3918
3919 * Makefile.in (pkglib_DATA): Add crypto.lst.
3920 (crypto.lst): New target.
3921 * commands/hashsum.c: New file.
3922 * commands/password.c (check_password): Use grub_crypto_memcmp.
3923 * commands/password_pbkdf2.c: New file.
3924 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
3925 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
3926 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
3927 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
3928 -I$(srcdir)/lib/libgcrypt_wrap.
3929 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
3930 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
3931 password_pbkdf2.mod.
3932 (crypto_mod_SOURCES): New variable.
3933 (crypto_mod_CFLAGS): Likewise.
3934 (crypto_mod_LDFLAGS): Likewise.
3935 (hashsum_mod_SOURCES): New variable.
3936 (hashsum_mod_CFLAGS): Likewise.
3937 (hashsum_mod_LDFLAGS): Likewise.
3938 (pbkdf2_mod_SOURCES): New variable.
3939 (pbkdf2_mod_CFLAGS): Likewise.
3940 (pbkdf2_mod_LDFLAGS): Likewise.
3941 (password_pbkdf2_mod_SOURCES): New variable.
3942 (password_pbkdf2_mod_CFLAGS): Likewise.
3943 (password_pbkdf2_mod_LDFLAGS): Likewise.
3944 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
3945 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
3946 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
3947 Include conf/gcry.rmk.
3948 * include/grub/auth.h: Rewritten.
3949 * include/grub/crypto.h: New file.
3950 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
3951 * include/grub/normal.h (read_crypto_list): New prototype.
3952 * lib/crypto.c: New file.
3953 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
3954 * lib/pbkdf2.c: Likewise.
3955 * normal/auth.c (grub_auth_strcmp): Removed.
3956 (grub_iswordseparator): Likewise.
3957 (grub_auth_strword): Likewise.
3958 (is_authenticated): Use grub_strword.
3959 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
3960 and grub_strword. Pass entered password to authentication callback.
3961 * normal/crypto.c: New file.
3962 * normal/main.c: Call read_crypto_list.
3963 * util/grub-mkpasswd-pbkdf2.c: New file.
3964 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
3965
42841caa
VS
39662010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
3967
3968 Fix descent and ascent calculation.
3969
3970 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
3971 (options): New option "asce".
3972 (usage): Likewise.
3973 (add_char): Ignore invalid glyphs for descent calculation.
3974 Calculate ascent from actual content.
3975 (print_glyphs): Use 'asce'.
3976 (write_font): Likewise. Allow ascent override.
3977 (main): Handle "asce" option.
3978
e7730de7 39792010-01-06 Carles Pina i Estany <carles@pina.cat>
3980
3981 * kern/err.c: Include `<grub/i18n.h>'.
3982 (grub_print_error): Add full stop. Gettextizze.
3983 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
3984 (grub_bsd_load_elf): Capitalise ELF.
3985 (grub_cmd_freebsd_loadenv): Add `s' in error string.
3986 (grub_cmd_freebsd_module): Likewise.
3987 (grub_cmd_freebsd_module_elf): Likewise.
3988 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
3989
40e3a41f 39902010-01-06 Carles Pina i Estany <carles@pina.cat>
3991
3992 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
3993 * commands/search_file.c (HELP_MESSAGE): New macro.
3994 * commands/search_label.c (HELP_MESSAGE): Likewise.
3995 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
3996 * po/POTFILES: Add `commands/search_file.c',
3997 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
3998 `commands/search.c'.
3999
83507e68
RM
40002010-01-05 Robert Millan <rmh.grub@aybabtu.com>
4001
4002 * config.rpath: Update from Gnulib.
4003
465c787b
YB
40042010-01-05 Yves Blusseau <blusseau@zetam.org>
4005
4006 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
4007
6581dd3a
YB
40082010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
4009
4010 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
4011
3bff18c5
CW
40122010-01-05 Colin Watson <cjwatson@ubuntu.com>
4013
4014 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
4015 arguments to fread so that we get a return value in bytes, rather
4016 than something that will normally be rounded down to 0.
4017 Adjust error handling to avoid producing garbage when size_t is not
4018 the same size as long long.
4019
a1368118
CW
40202010-01-05 Colin Watson <cjwatson@ubuntu.com>
4021
4022 * util/mkisofs/write.c (padblock_write): Check return value of
4023 fread.
4024
7c302978
RM
40252010-01-05 Robert Millan <rmh.grub@aybabtu.com>
4026
4027 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
4028 floppy images now.
4029
4030 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
4031
e33ace06
RM
40322010-01-04 Robert Millan <rmh.grub@aybabtu.com>
4033
4034 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
4035 instead of manual alignment.
4036 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
4037 verbose). Avoid attempts to read past end of the device
4038 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
4039 but GRUB_DISK_CACHE_SIZE may exceed that).
4040
4b856776
RM
40412010-01-04 Robert Millan <rmh.grub@aybabtu.com>
4042
4043 * commands/crc.c (grub_cmd_crc): Abort on read errors.
4044 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
4045 it to upper layer.
4046
52c2d97f
VS
40472010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
4048
4049 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
4050 New constant.
4051 (grub_efi_piwg_device_path): New structure
4052 (grub_efi_piwg_device_path_t): New type.
4053 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
4054 (devpath_1): Transform to a structure. All users updated.
4055 (devpath_2): Likewise.
4056 (devpath_3): Likewise.
4057 (devpath_4): Likewise.
4058 (devpath_5): Likewise.
4059
98ff6a54
VS
40602010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
4061
4062 * loader/efi/appleloader.c: Restored. Update all users.
4063
3a73dcb6
RM
40642010-01-03 Robert Millan <rmh.grub@aybabtu.com>
4065
4066 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
4067
4068 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
4069 (struct boot_blocklist): Move from here ...
4070 * include/grub/i386/pc/boot.h [ASM_FILE]
4071 (struct grub_boot_blocklist): ... to here. Update all users.
4072 (setup): Only initialize `start' member of `first_block'
4073 structure. Add assert() calls to verify the other members.
4074
4075 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
4076 (generate_image): Fix broken blocklist length initialization.
4077 Add assert() call to verify blocklist `segment' field.
4078
ab0eeb0c
RM
40792010-01-03 Robert Millan <rmh.grub@aybabtu.com>
4080
4081 * loader/efi/appleloader.c: Remove. Update all users.
4082
58bc8bd5
RM
40832010-01-03 Robert Millan <rmh.grub@aybabtu.com>
4084
4085 * boot/i386/pc/boot.S: Update copyright year.
4086 * boot/i386/pc/cdboot.S: Likewise.
4087 * boot/i386/pc/diskboot.S: Likewise.
4088 * boot/i386/pc/lnxboot.S: Likewise.
4089 * boot/i386/pc/pxeboot.S: Likewise.
4090 * bus/pci.c: Likewise.
4091 * commands/cmp.c: Likewise.
4092 * commands/help.c: Likewise.
4093 * commands/hexdump.c: Likewise.
4094 * commands/i386/pc/halt.c: Likewise.
4095 * commands/i386/pc/play.c: Likewise.
4096 * commands/i386/pc/vbeinfo.c: Likewise.
4097 * commands/ls.c: Likewise.
4098 * commands/test.c: Likewise.
4099 * disk/dmraid_nvidia.c: Likewise.
4100 * disk/i386/pc/biosdisk.c: Likewise.
4101 * disk/ieee1275/nand.c: Likewise.
4102 * disk/ieee1275/ofdisk.c: Likewise.
4103 * disk/lvm.c: Likewise.
4104 * disk/raid.c: Likewise.
4105 * disk/raid6_recover.c: Likewise.
4106 * disk/scsi.c: Likewise.
4107 * fs/affs.c: Likewise.
4108 * fs/cpio.c: Likewise.
4109 * fs/ext2.c: Likewise.
4110 * fs/hfs.c: Likewise.
4111 * fs/iso9660.c: Likewise.
4112 * fs/ntfs.c: Likewise.
4113 * fs/sfs.c: Likewise.
4114 * fs/udf.c: Likewise.
4115 * fs/ufs.c: Likewise.
4116 * fs/xfs.c: Likewise.
4117 * gencmdlist.sh: Likewise.
4118 * genmk.rb: Likewise.
4119 * include/grub/disk.h: Likewise.
4120 * include/grub/efi/api.h: Likewise.
4121 * include/grub/efi/efi.h: Likewise.
4122 * include/grub/efi/pe32.h: Likewise.
4123 * include/grub/elf.h: Likewise.
4124 * include/grub/fs.h: Likewise.
4125 * include/grub/i386/at_keyboard.h: Likewise.
4126 * include/grub/i386/pc/memory.h: Likewise.
4127 * include/grub/i386/pc/vbe.h: Likewise.
4128 * include/grub/i386/pci.h: Likewise.
4129 * include/grub/i386/tsc.h: Likewise.
4130 * include/grub/ieee1275/ieee1275.h: Likewise.
4131 * include/grub/ntfs.h: Likewise.
4132 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
4133 * include/grub/sparc64/libgcc.h: Likewise.
4134 * include/grub/symbol.h: Likewise.
4135 * include/grub/types.h: Likewise.
4136 * include/multiboot2.h: Likewise.
4137 * io/gzio.c: Likewise.
4138 * kern/device.c: Likewise.
4139 * kern/disk.c: Likewise.
4140 * kern/efi/efi.c: Likewise.
4141 * kern/efi/mm.c: Likewise.
4142 * kern/elf.c: Likewise.
4143 * kern/file.c: Likewise.
4144 * kern/i386/dl.c: Likewise.
4145 * kern/i386/pc/init.c: Likewise.
4146 * kern/i386/pc/startup.S: Likewise.
4147 * kern/ieee1275/ieee1275.c: Likewise.
4148 * kern/ieee1275/init.c: Likewise.
4149 * kern/main.c: Likewise.
4150 * kern/mm.c: Likewise.
4151 * kern/powerpc/dl.c: Likewise.
4152 * kern/sparc64/dl.c: Likewise.
4153 * kern/x86_64/dl.c: Likewise.
4154 * lib/hexdump.c: Likewise.
4155 * loader/efi/appleloader.c: Likewise.
4156 * loader/i386/ieee1275/linux.c: Likewise.
4157 * loader/i386/pc/chainloader.c: Likewise.
4158 * loader/i386/pc/linux.c: Likewise.
4159 * loader/i386/pc/multiboot2.c: Likewise.
4160 * loader/ieee1275/multiboot2.c: Likewise.
4161 * loader/multiboot2.c: Likewise.
4162 * loader/multiboot_loader.c: Likewise.
4163 * loader/powerpc/ieee1275/linux.c: Likewise.
4164 * normal/completion.c: Likewise.
4165 * normal/menu_entry.c: Likewise.
4166 * partmap/apple.c: Likewise.
4167 * util/grub.d/10_hurd.in: Likewise.
4168 * util/hostfs.c: Likewise.
4169 * video/readers/png.c: Likewise.
4170
e2d70b5c
CW
41712010-01-03 Colin Watson <cjwatson@ubuntu.com>
4172
4173 * include/grub/misc.h (GNUC_PREREQ): New macro.
4174 (ATTRIBUTE_ERROR): New macro.
4175 * include/grub/list.h (grub_bad_type_cast_real): Use
4176 ATTRIBUTE_ERROR.
4177
a173283f 41782010-01-03 Carles Pina i Estany <carles@pina.cat>
4179
4180 * normal/menu_text.c (print_message): Change messages.
4181
7fa7ff74 41822010-01-03 Carles Pina i Estany <carles@pina.cat>
4183
4184 * normal/menu_entry.c (store_completion): Gettextizze.
4185
136d24f6 41862010-01-03 Carles Pina i Estany <carles@pina.cat>
4187
4188 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
4189
f936862e 41902010-01-03 Carles Pina i Estany <carles@pina.cat>
4191
4192 * po/POTFILES: Sort correctly.
4193
29c44ad1 41942010-01-03 Carles Pina i Estany <carles@pina.cat>
4195
4196 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
4197 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
4198 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
4199 full stop.
4200 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
4201 summary. Gettextizze the strings.
4202 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
4203 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
4204 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
4205 full stop.
4206 (GRUB_MOD_INIT): Remove command name from summary.
4207 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
4208 summary.
4209 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
4210 * term/i386/pc/serial.c (options): Add full stops.
4211 (GRUB_MOD_INIT): Remove command name from the summary.
4212
77a79592 42132010-01-03 Carles Pina i Estany <carles@pina.cat>
4214
4215 * commands/acpi.c: Gettextizze help strings and/or options. Include
4216 `grub/i18n.h' if needed.
4217 * commands/blocklist.c: Likewise.
4218 * commands/boot.c: Likewise.
4219 * commands/cat.c: Likewise.
4220 * commands/cmp.c: Likewise.
4221 * commands/configfile.c: Likewise.
4222 * commands/crc.c: Likewise.
4223 * commands/date.c: Likewise.
4224 * commands/echo.c: Likewise.
4225 * commands/efi/fixvideo.c: Likewise.
4226 * commands/efi/loadbios.c: Likewise.
4227 * commands/gptsync.c: Likewise.
4228 * commands/halt.c: Likewise.
4229 * commands/handler.c: Likewise.
4230 * commands/hdparm.c: Likewise.
4231 * commands/hexdump.c: Likewise.
4232 * commands/i386/cpuid.c: Likewise.
4233 * commands/i386/pc/drivemap.c: Likewise.
4234 * commands/i386/pc/halt.c: Likewise.
4235 * commands/i386/pc/pxecmd.c: Likewise.
4236 * commands/i386/pc/vbeinfo.c: Likewise.
4237 * commands/i386/pc/vbetest.c: Likewise.
4238 * commands/ieee1275/suspend.c: Likewise.
4239 * commands/keystatus.c: Likewise.
4240 * commands/loadenv.c: Likewise.
4241 * commands/ls.c: Likewise.
4242 * commands/lsmmap.c: Likewise.
4243 * commands/lspci.c: Likewise.
4244 * commands/memrw.c: Likewise.
4245 * commands/minicmd.c: Likewise.
4246 * commands/parttool.c: Likewise.
4247 * commands/password.c: Likewise.
4248 * commands/probe.c: Likewise.
4249 * commands/read.c: Likewise.
4250 * commands/reboot.c: Likewise.
4251 * commands/search.c: Likewise.
4252 * commands/sleep.c: Likewise.
4253 * commands/test.c: Likewise.
4254 * commands/true.c: Likewise.
4255 * commands/usbtest.c: Likewise.
4256 * commands/videotest.c: Likewise.
4257 * commands/xnu_uuid.c: Likewise.
4258 * disk/loopback.c: Likewise.
4259 * hello/hello.c: Likewise.
4260 * loader/i386/bsd.c: Likewise.
4261 * term/i386/pc/serial.c: Likewise.
4262 * po/POTFILES: Add new files.
4263
da8d5c53
CW
42642010-01-02 Colin Watson <cjwatson@ubuntu.com>
4265
4266 * term/i386/pc/at_keyboard.c
4267 (keyboard_controller_wait_untill_ready): Rename to ...
4268 (keyboard_controller_wait_until_ready): ... this. Update all users.
4269
33937904 42702010-01-01 Carles Pina i Estany <carles@pina.cat>
4271
4272 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
4273 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
4274 string using string width.
4275 * normal/menu_text.c (grub_print_message_indented): Use
4276 grub_print_spaces and not print_spaces.
4277 (print_timeout): Likewise.
4278 (print_spaces): Move to...
4279 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
4280
3fd3b8d8
RM
42812010-01-01 Robert Millan <rmh.grub@aybabtu.com>
4282
4283 Import from Gnulib.
4284
4285 * gnulib/getdelim.c: New file.
4286 * gnulib/getline.c: Likewise.
4287
33433555
VS
42882009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
4289
4290 * include/grub/list.h (grub_assert_fail): Removed.
4291 (grub_bad_type_cast_real): New function.
4292 (grub_bad_type_cast): New macro.
4293 (GRUB_AS_LIST): Use grub_bad_type_cast.
4294 (GRUB_AS_LIST_P): Likewise.
e44721e8 4295 (GRUB_AS_NAMED_LIST): Likewise.
33433555 4296 (GRUB_AS_NAMED_LIST_P): Likewise.
e44721e8 4297 (GRUB_AS_PRIO_LIST): Likewise.
33433555 4298 (GRUB_AS_PRIO_LIST_P): Likewise.
e44721e8 4299 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
33433555 4300
f5a51306
VS
43012009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
4302
4303 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
4304 Fix syntax error.
4305
90d1e879
RM
43062009-12-29 Robert Millan <rmh.grub@aybabtu.com>
4307
4308 * configure.ac: Check for TARGET_CFLAGS initialization before we
4309 initialize it ourselves (sigh).
4310 Move a few modifications to TARGET_CFLAGS to be unconditional
4311 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
4312 eh_frame)
4313
4314 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
4315 * term/i386/pc/at_keyboard.c
4316 (keyboard_controller_wait_untill_ready): Likewise.
4317 (keyboard_controller_led): Rename `led_status' paramter to avoid
4318 name conflict.
4319
465b5a81 43202009-12-28 Carles Pina i Estany <carles@pina.cat>
4321
4322 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
4323 quotes.
4324
c181849b
VS
43252009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
4326
4327 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
4328
9c8739a4
VS
43292009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
4330
4331 * normal/menu_text.c (grub_print_message_indented): Prevent
4332 past-the-end-of-array dereference.
4333
3e74249c
VS
43342009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
4335
4336 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
4337 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
4338
64fd18ed 43392009-12-27 Carles Pina i Estany <carles@pina.cat>
4340
4341 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
4342 * normal/main.c (grub_normal_read_line): Remove a space from the
4343 default prompt.
4344
714af9b9 43452009-12-27 Carles Pina i Estany <carles@pina.cat>
4346
4347 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
4348 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
4349 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
4350 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
4351 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
4352 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
4353 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
4354
82f3e412 43552009-12-26 Carles Pina i Estany <carles@pina.cat>
c541b01a 4356
4357 * video/readers/jpeg.c (cmd): Declare.
4358 (grub_cmd_jpegtest): Use `grub_command_t' type.
4359 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
4360 Assign to `cmd'.
4361 (GRUB_MOD_FINI): Use `cmd' to unregister.
4362 * video/readers/png.c (cmd): Declare.
4363 (grub_cmd_pngtest): Use `grub_command_t' type.
4364 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
4365 Assign to `cmd'.
4366 (GRUB_MOD_FINI): Use `cmd' to unregister.
4367 * video/readers/tga.c (cmd): Declare.
4368 (grub_cmd_tgatest): Use `grub_command_t' type.
4369 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
4370 Assign to `cmd'.
4371 (GRUB_MOD_FINI): Use `cmd' to unregister.
4372
82f3e412 43732009-12-26 Carles Pina i Estany <carles@pina.cat>
864ba2bb 4374
4375 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
4376 stops.
4377 * kern/corecmd.c (grub_register_core_commands): Likewise.
4378 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
4379 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
4380 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
4381 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
4382 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
4383 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
4384 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
4385 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
4386 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
4387 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
4388 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
4389 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
4390 * normal/handler.c (insert_handler): Likewise.
4391 * normal/main.c (GRUB_MOD_INIT): Likewise.
4392 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
4393
fdcdbb66 43942009-12-26 Carles Pina i Estany <carles@pina.cat>
4395
4396 * commands/help.c (grub_cmd_help): Print the command name before the
4397 summary.
4398 (GRUB_MOD_INIT): Remove command name from the summary.
4399 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
82f3e412 4400 string as summary.
fdcdbb66 4401 * lib/arg.c (find_long): Print the command name before the summary.
4402 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
4403 summary.
4404 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
4405 * commands/cat.c (GRUB_MOD_INIT): Likewise.
4406 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
4407 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
4408 * commands/crc.c (GRUB_MOD_INIT): Likewise.
4409 * commands/date.c (GRUB_MOD_INIT): Likewise.
4410 * commands/echo.c (GRUB_MOD_INIT): Likewise.
4411 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
4412 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
4413 * commands/handler.c (GRUB_MOD_INIT): Likewise.
4414 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
4415 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
4416 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
4417 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
4418 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
4419 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
4420 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
4421 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
4422 * commands/ls.c (GRUB_MOD_INIT): Likewise.
4423 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
4424 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
4425 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
4426 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
4427 * commands/password.c (GRUB_MOD_INIT): Likewise.
4428 * commands/probe.c (GRUB_MOD_INIT): Likewise.
4429 * commands/read.c (GRUB_MOD_INIT): Likewise.
4430 * commands/search.c (GRUB_MOD_INIT): Likewise.
4431 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
4432 * commands/test.c (GRUB_MOD_INIT): Likewise.
4433 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
4434 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
4435 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
4436 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
4437 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
4438 * lib/arg.c (GRUB_MOD_INIT): Likewise.
4439 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
4440 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
4441 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
4442 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
4443 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
4444 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
4445 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
4446 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
4447
9c288be2
VS
44482009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
4449
4450 Use search command for preliminar UUID search.
4451
4452 * commands/search.c: Split into ...
4453 * commands/search_wrap.c: ...this
4454 * commands/search.c: ...and this.
4455 * commands/search_file.c: New file.
4456 * commands/search_label.c: New file.
4457 * commands/search_uuid.c: New file.
4458 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
4459 Add commands/search_wrap.c, commands/search_file.c,
4460 commands/search_label.c and commands/search_uuid.c.
4461 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
4462 (search_mod_SOURCES): Set to commands/search_wrap.c.
4463 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
4464 search_label.mod.
4465 (search_fs_file_mod_SOURCES): New variable.
4466 (search_fs_file_mod_CFLAGS): Likewise.
4467 (search_fs_file_mod_LDFLAGS): Likewise.
4468 (search_label_mod_SOURCES): Likewise.
4469 (search_label_mod_CFLAGS): Likewise.
4470 (search_label_mod_LDFLAGS): Likewise.
4471 (search_fs_uuid_mod_SOURCES): New variable.
4472 (search_fs_uuid_mod_CFLAGS): Likewise.
4473 (search_fs_uuid_mod_LDFLAGS): Likewise.
4474 (fs_file_mod_SOURCES): Removed.
4475 (fs_file_mod_CFLAGS): Likewise.
4476 (fs_file_mod_LDFLAGS): Likewise.
4477 (fs_uuid_mod_SOURCES): Removed.
4478 (fs_uuid_mod_CFLAGS): Likewise.
4479 (fs_uuid_mod_LDFLAGS): Likewise.
4480 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
4481 Set to util/grub-install.in.
4482 * disk/fs_file.c: Removed.
4483 * disk/fs_uuid.c: Likewise.
4484 * include/grub/search.h: New file.
4485 * util/grub-install.in: Handle sparc64.
4486 Create and use load.cfg.
4487 * util/sparc64/ieee1275/grub-install.in: Removed.
4488
db943399
VS
44892009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
4490
4491 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
4492 Ignore return status if CF is cleared.
4493 (grub_biosdisk_get_diskinfo_standard): Likewise.
4494
3fdae612
RM
44952009-12-25 Robert Millan <rmh.grub@aybabtu.com>
4496
4497 * term/i386/pc/at_keyboard.c
4498 (keyboard_controller_wait_untill_ready): New function.
4499 (grub_keyboard_controller_write, grub_keyboard_controller_read)
4500 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
4501 for keyboard polling, rather than duplicate the same loop. This
4502 saves a few bytes in code size.
4503
7ebaa2b4
VS
45042009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
4505
4506 Support for (pxe[:server[:gateway]]) syntax and
4507 use environment variable for PXE.
4508
4509 * commands/i386/pc/pxecmd.c (options): Removed.
4510 (print_ip): Removed.
4511 (grub_cmd_pxe): Removed
4512 (grub_cmd_pxe_unload): New function.
4513 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
4514 (grub_pxe_your_ip): Made static.
4515 (grub_pxe_default_server_ip): Likewise.
4516 (grub_pxe_default_gateway_ip): Likewise.
4517 (grub_pxe_blksize): Likewise.
4518 (parse_ip): New function.
4519 (grub_pxe_open): Support server and gateway specification.
4520 (grub_pxe_close): Free disk->data.
4521 (grub_pxefs_open): Use disk->data.
4522 (grub_pxefs_read): Likewise.
4523 (grub_env_write_readonly): New function.
4524 (set_mac_env): Likewise.
4525 (set_env_limn_ro): Likewise.
4526 (parse_dhcp_vendor): Likewise.
4527 (grub_pxe_detect): Set the environment variables.
4528 (set_ip_env): New function.
4529 (write_ip_env): Likewise.
4530 (grub_env_write_pxe_default_server): Likewise.
4531 (grub_env_write_pxe_default_gateway): Likewise.
4532 (grub_env_write_pxe_blocksize): Likewise.
4533 (GRUB_MOD_INIT(pxe)): Set environment variables.
4534 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
4535 (grub_pxe_mac_addr_t): ... this. All users updated.
4536 (grub_pxe_your_ip): Removed.
4537 (grub_pxe_server_ip): Likewise.
4538 (grub_pxe_gateway_ip): Likewise.
4539 (grub_pxe_blksize): Likewise.
4540
ec5f98ab 45412009-12-25 Carles Pina i Estany <carles@pina.cat>
4542
4543 * commands/help.c: Include `<grub/i18n.h>'.
4544 (grub_cmd_help): Gettextizze.
4545 (GRUB_MOD_INIT): Likewise.
4546 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
4547 (GRUB_MOD_INIT): Gettextizze.
4548 * commands/search.c: Include `<grub/i18n.h>'.
4549 (options): Gettextizze.
4550 (GRUB_MOD_INIT): Gettextizze.
4551 * lib/arg.c: Include `<grub/i18n.h>'.
4552 (help_options): Gettextizze.
4553 (find_long): Likewise.
4554 (grub_arg_show_help): Likewise.
4555 * normal/dyncmd.c: Include `<grub/i18n.h>'.
4556 (read_command_list): Gettextizze.
4557 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
7ebaa2b4 4558 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
ec5f98ab 4559
22815526
RM
45602009-12-25 Robert Millan <rmh.grub@aybabtu.com>
4561
4562 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
4563 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
4564 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
4565 (led_status): New variable.
4566 (keyboard_controller_led): New function.
4567 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
4568 update led status for caps lock, num lock and scroll lock.
4569
0ad46fd7
FZ
45702009-12-25 Felix Zielcke <fzielcke@z-51.de>
4571
4572 * util/hostdisk.c (open_device): Fix a comment.
4573
d0e158c2
RM
45742009-12-24 Robert Millan <rmh.grub@aybabtu.com>
4575
4576 * util/grub-install.in (host_os): New variable.
4577 * util/i386/efi/grub-install.in (host_os): Likewise.
4578
401c0ad6
RM
45792009-12-24 Robert Millan <rmh.grub@aybabtu.com>
4580
4581 * util/mkisofs/write.c (padblock_write): Abort when given an
4582 excedingly large embed image, instead of silently truncating it.
4583
d14d3370
RM
45842009-12-24 Robert Millan <rmh.grub@aybabtu.com>
4585
4586 * include/multiboot.h: Indentation fixes.
4587
eeed10b4
RM
45882009-12-24 Robert Millan <rmh.grub@aybabtu.com>
4589
4590 * include/multiboot.h (struct multiboot_aout_symbol_table)
4591 (struct multiboot_elf_section_header_table): New structure
4592 declarations (stolen from GRUB Legacy).
4593 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
4594 table information.
4595
4596 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
4597 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
4598 type aliases.
4599
681c70ab
RM
46002009-12-24 Robert Millan <rmh.grub@aybabtu.com>
4601
4602 * include/multiboot.h: Make comments src2texi-friendly.
4603
e4d47d8d
RM
46042009-12-24 Robert Millan <rmh.grub@aybabtu.com>
4605
4606 For consistency with [multiboot]/docs/boot.S.
4607
4608 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
4609 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
4610 (MULTIBOOT_MAGIC2): Rename from this ...
4611 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
4612
a0b70bda
RM
46132009-12-24 Robert Millan <rmh.grub@aybabtu.com>
4614
4615 * include/multiboot.h: Remove `<grub/types.h>'.
4616 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
4617 types. Update all users.
4618
61ba42be 46192009-12-25 Carles Pina i Estany <carles@pina.cat>
4620
4621 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
4622 `couldn't' and `can not' by `cannot'.
4623 * commands/i386/pc/drivemap.c: Likewise.
4624 * disk/ata.c: Likewise.
4625 * disk/ieee1275/nand.c: Likewise.
4626 * fs/affs.c: Likewise.
4627 * fs/fat.c: Likewise.
4628 * fs/hfs.c: Likewise.
4629 * fs/hfsplus.c: Likewise.
4630 * fs/iso9660.c: Likewise.
4631 * fs/jfs.c: Likewise.
4632 * fs/minix.c: Likewise.
4633 * fs/reiserfs.c: Likewise.
4634 * fs/sfs.c: Likewise.
4635 * fs/udf.c: Likewise.
4636 * fs/ufs.c: Likewise.
4637 * fs/xfs.c: Likewise.
4638 * loader/powerpc/ieee1275/linux.c: Likewise.
4639 * loader/sparc64/ieee1275/linux.c: Likewise.
4640 * util/grub-probe.c: Likewise.
4641 * util/misc.c: Likewise.
4642
7fd0baee 46432009-12-24 Carles Pina i Estany <carles@pina.cat>
4644
4645 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
4646 grub_errno calls.
4647 * commands/acpi.c: Likewise.
4648 * commands/blocklist.c: Likewise.
4649 * commands/efi/loadbios.c: Likewise.
4650 * commands/i386/pc/drivemap.c: Likewise.
4651 * commands/loadenv.c: Likewise.
4652 * commands/memrw.c: Likewise.
4653 * commands/password.c: Likewise.
4654 * commands/videotest.c: Likewise.
4655 * disk/ata.c: Likewise.
4656 * disk/ata_pthru.c: Likewise.
4657 * disk/dmraid_nvidia.c: Likewise.
4658 * disk/ieee1275/nand.c: Likewise.
4659 * disk/ieee1275/ofdisk.c: Likewise.
4660 * disk/loopback.c: Likewise.
4661 * disk/lvm.c: Likewise.
4662 * disk/mdraid_linux.c: Likewise.
4663 * disk/raid.c: Likewise.
4664 * disk/raid6_recover.c: Likewise.
4665 * disk/scsi.c: Likewise.
4666 * efiemu/main.c: Likewise.
4667 * efiemu/mm.c: Likewise.
4668 * efiemu/pnvram.c: Likewise.
4669 * efiemu/symbols.c: Likewise.
4670 * font/font.c: Likewise.
4671 * fs/cpio.c: Likewise.
4672 * fs/hfsplus.c: Likewise.
4673 * fs/iso9660.c: Likewise.
4674 * fs/jfs.c: Likewise.
4675 * fs/minix.c: Likewise.
4676 * fs/ntfs.c: Likewise.
4677 * fs/ntfscomp.c: Likewise.
4678 * fs/reiserfs.c: Likewise.
4679 * fs/ufs.c: Likewise.
4680 * fs/xfs.c: Likewise.
4681 * gettext/gettext.c: Likewise.
4682 * include/grub/auth.h: Likewise.
4683 * kern/elf.c: Likewise.
4684 * kern/file.c: Likewise.
4685 * kern/ieee1275/init.c: Likewise.
4686 * kern/ieee1275/mmap.c: Likewise.
4687 * kern/ieee1275/openfw.c: Likewise.
4688 * kern/powerpc/dl.c: Likewise.
4689 * kern/sparc64/dl.c: Likewise.
4690 * lib/arg.c: Likewise.
4691 * loader/i386/bsd.c: Likewise.
4692 * loader/i386/bsdXX.c: Likewise.
4693 * loader/i386/efi/linux.c: Likewise.
4694 * loader/i386/efi/xnu.c: Likewise.
4695 * loader/i386/ieee1275/linux.c: Likewise.
4696 * loader/i386/linux.c: Likewise.
4697 * loader/i386/multiboot.c: Likewise.
4698 * loader/i386/pc/linux.c: Likewise.
4699 * loader/i386/pc/multiboot2.c: Likewise.
4700 * loader/i386/xnu.c: Likewise.
4701 * loader/ieee1275/multiboot2.c: Likewise.
4702 * loader/macho.c: Likewise.
4703 * loader/machoXX.c: Likewise.
4704 * loader/multiboot2.c: Likewise.
4705 * loader/multiboot_loader.c: Likewise.
4706 * loader/powerpc/ieee1275/linux.c: Likewise.
4707 * loader/sparc64/ieee1275/linux.c: Likewise.
4708 * loader/xnu.c: Likewise.
4709 * loader/xnu_resume.c: Likewise.
4710 * mmap/i386/pc/mmap.c: Likewise.
4711 * normal/menu_viewer.c: Likewise.
4712 * partmap/acorn.c: Likewise.
4713 * partmap/amiga.c: Likewise.
4714 * partmap/apple.c: Likewise.
4715 * script/lexer.c: Likewise.
4716 * term/gfxterm.c: Likewise.
4717 * term/i386/pc/serial.c: Likewise.
4718 * term/i386/pc/vga.c: Likewise.
4719 * term/ieee1275/ofconsole.c: Likewise.
4720 * term/terminfo.c: Likewise.
4721 * video/bitmap.c: Likewise.
4722 * video/efi_gop.c: Likewise.
4723 * video/efi_uga.c: Likewise.
4724 * video/fb/video_fb.c: Likewise.
4725 * video/i386/pc/vbe.c: Likewise.
4726 * video/readers/tga.c: Likewise.
4727 * video/video.c: Likewise.
4728
0ad46fd7 47292009-12-23 Felix Zielcke <fzielcke@z-51.de>
a2c1332b
FZ
4730
4731 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
4732 * commands/lspci.c: Likewise.
4733 * commands/probe.c: Likewise.
4734 * commands/xnu_uuid.c: Likewise.
4735 * conf/i386-coreboot.rmk: Likewise.
4736 * conf/i386-efi.rmk: Likewise.
4737 * conf/i386-ieee1275.rmk: Likewise.
4738 * conf/i386-pc.rmk: Likewise.
4739 * conf/powerpc-ieee1275.rmk: Likewise.
4740 * conf/sparc64-ieee1275.rmk: Likewise.
4741 * conf/x86_64-efi.rmk: Likewise.
4742 * fs/i386/pc/pxe.c: Likewise.
4743 * gettext/gettext.c: Likewise.
4744 * include/grub/efi/graphics_output.h: Likewise.
4745 * include/grub/i386/pc/memory.h: Likewise.
4746 * kern/env.c: Likewise.
4747 * kern/i386/qemu/startup.S: Likewise.
4748 * lib/i386/pc/biosnum.c: Likewise.
4749 * lib/i386/relocator.c: Likewise.
4750 * lib/i386/relocator_asm.S: Likewise.
4751 * lib/relocator.c: Likewise.
4752 * loader/i386/bsd.c: Likewise.
4753 * loader/i386/multiboot.c: Likewise.
4754 * loader/i386/pc/chainloader.c: Likewise.
4755 * loader/i386/xnu.c: Likewise.
4756 * loader/xnu.c: Likewise.
4757 * normal/main.c: Likewise.
4758 * normal/menu_text.c: Likewise.
4759 * util/getroot.c: Likewise.
4760 * util/grub-mkconfig_lib.in: Likewise.
4761 * util/grub.d/00_header.in: Likewise.
4762 * util/i386/pc/grub-mkimage.c: Likewise.
4763 * util/mkisofs/eltorito.c: Likewise.
4764 * util/mkisofs/exclude.h: Likewise.
4765 * util/mkisofs/hash.c: Likewise.
4766 * util/mkisofs/iso9660.h: Likewise.
4767 * util/mkisofs/joliet.c: Likewise.
4768 * util/mkisofs/mkisofs.c: Likewise.
4769 * util/mkisofs/mkisofs.h: Likewise.
4770 * util/mkisofs/multi.c: Likewise.
4771 * util/mkisofs/name.c: Likewise.
4772 * util/mkisofs/rock.c: Likewise.
4773 * util/mkisofs/tree.c: Likewise.
4774 * util/mkisofs/write.c: Likewise.
4775 * video/efi_gop.c: Likewise.
4776
009ec743
VS
47772009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
4778
4779 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
4780 size counting.
4781
0ad46fd7 47822009-12-22 Felix Zielcke <fzielcke@z-51.de>
990f3548
FZ
4783
4784 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
4785 * genmk.rb (class SCRIPT): Modify the target file instead of source.
4786
d3d30ea0
VS
47872009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
4788
4789 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
4790 (GRUB_MOD_INIT(memrw)): Update help line.
4791
a34f5c70
VS
47922009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
4793
4794 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
4795 Use grub_extcmd_t. All users updated.
4796 (options): New variable.
4797 (grub_cmd_read): Restructure for readability. Support "-v" option.
4798 (grub_cmd_write): Restructure for readability.
4799
0ad46fd7 48002009-12-22 Felix Zielcke <fzielcke@z-51.de>
67618ea6
FZ
4801
4802 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
4803
0ad46fd7 48042009-12-22 Felix Zielcke <fzielcke@z-51.de>
10a88797
FZ
4805
4806 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
4807 with the actual contents of the correspondending make variable.
4808 * util/grub-mkrescue.in (pkglib_DATA): New variable.
4809 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
4810 specifying `*.lst' and `efiemu??.o'
4811
0ad46fd7 48122009-12-22 Felix Zielcke <fzielcke@z-51.de>
7e70dfff
FZ
4813
4814 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
4815 after function name.
4816 Noticed by Rene Engelhard <rene@debian.org>.
4817
dc77a799
VS
48182009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
4819
4820 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
4821 (options): New variable.
4822 (iospace): Likewise.
4823 (grub_lspci_iter): List IO spaces if "-i" was given.
4824 (grub_cmd_lspci): Parse options.
4825 (GRUB_MOD_INIT(lspci)): Use extcmd.
4826 (GRUB_MOD_FINI(lspci)): Likewise.
4827
0ad46fd7 48282009-12-22 Felix Zielcke <fzielcke@z-51.de>
82000aa2
FZ
4829
4830 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
4831 `function' keyword.
4832 Patch by Tony Mancill <tmancill@debian.org>.
4833
b5d5993b
VS
48342009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
4835
4836 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
4837 (grub_uhci_portstatus): Likewise.
4838 (grub_uhci_portstatus): Add necessary delay.
11d18281 4839 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
b5d5993b 4840
941903f2 48412009-12-21 Carles Pina i Estany <carles@pina.cat>
b5d5993b 4842
941903f2 4843 * commands/acpi.c (options): Fix capitalizations and/or full stops.
4844 (GRUB_MOD_INIT): Likewise.
4845 * commands/boot.c (GRUB_MOD_INIT): Likewise.
cb04503e 4846 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
4847 * commands/echo.c (options): Fix capitalizations and/or full stops.
941903f2 4848 * commands/efi/loadbios.c (enable_rom_area): Likewise.
4849 (enable_rom_area): Likewise.
4850 (GRUB_MOD_INIT): Likewise.
4851 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
4852 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
4853 * commands/handler.c (GRUB_MOD_INIT): Likewise.
4854 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
4855 * commands/hexdump.c (options): Likewise.
4856 * commands/i386/cpuid.c (options): Likewise.
4857 (GRUB_MOD_INIT): Likewise.
4858 * commands/i386/pc/drivemap.c (options): Likewise.
4859 (GRUB_MOD_INIT): Likewise.
4860 * commands/i386/pc/halt (options): Likewise.
4861 (GRUB_MOD_INIT): Likewise.
4862 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
4863 * commands/i386/pc/pxecmd.c (options): Likewise.
4864 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
4865 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
4866 * commands/keystatus.c (options): Likewise.
4867 (GRUB_MOD_INIT): Likewise.
4868 * commands/loadenv.c (options): Likewise.
4869 * commands/ls.c (options): Likewise.
4870 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
4871 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
4872 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
4873 * commands/parttool.c (helpmsg): Likewise.
4874 * commands/probe.c (options): Likewise.
4875 * commands/read.c (GRUB_MOD_INIT): Likewise.
4876 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
4877 * commands/search.c (options): Likewise.
4878 * commands/sleep.c (options): Likewise.
4879 * commands/test.c (GRUB_MOD_INIT): Likewise.
4880 * commands/true.c (GRUB_MOD_INIT): Likewise.
4881 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
4882 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
4883 * lib/arg.c (help_options): Likewise.
e9bbb4e7 4884 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
4885 `$(XGETTEXT)'.
98a50553 4886 * po/POTFILES: Add `commands/loadenv.c'.
941903f2 4887
0ad46fd7 48882009-12-21 Felix Zielcke <fzielcke@z-51.de>
4dd13225 4889
ef3c2c3a 4890 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
4dd13225
FZ
4891 instead of specifying them explicit.
4892
7922f68b
RM
48932009-12-21 Robert Millan <rmh.grub@aybabtu.com>
4894
4895 * NEWS: Add grub-probe support for GNU/Hurd.
4896
537ce47f
RM
48972009-12-21 Robert Millan <rmh.grub@aybabtu.com>
4898
4899 * NEWS: gettext was added after 1.97.
4900
9b214e3a
RM
49012009-12-21 Robert Millan <rmh.grub@aybabtu.com>
4902
4903 * util/mkisofs/msdos_partition.h: New file (based on
4904 include/grub/msdos_partition.h).
4905 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
4906 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
4907 (ld_options, main): Recognize --protective-msdos-label.
4908 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
4909 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
4910 (padblock_write): If `use_protective_msdos_label' is set, patch a
4911 protective DOS-style label in the output image.
4912
4913 * util/grub-mkrescue.in: Use --protective-msdos-label.
4914
e9309813
RM
49152009-12-21 Robert Millan <rmh.grub@aybabtu.com>
4916
4917 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
4918 boot.
4919
0ae56929
RM
49202009-12-21 Robert Millan <rmh.grub@aybabtu.com>
4921
4922 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
4923 variables.
4924 (ld_options, main): Recognize `--embedded-boot'.
4925 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
4926 declarations.
4927 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
4928 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
4929 (padblock_write): Likewise. Rewrite to support embedded boot image.
4930
4931 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
4932 for BIOS-based disk boot instead of only ElTorito.
4933
b15937b1
RM
49342009-12-21 Robert Millan <rmh.grub@aybabtu.com>
4935
4936 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
4937 build (not needed for bootstrap).
4938
52cc3ce0
RM
49392009-12-21 Robert Millan <rmh.grub@aybabtu.com>
4940
4941 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
4942 from i386-pc build (not needed for bootstrap).
4943 Rewrite a pair of strings.
4944
36f5ff04
RM
49452009-12-21 Robert Millan <rmh.grub@aybabtu.com>
4946
4947 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
4948
973c6c85 49492009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
b07e53f0
VS
4950
4951 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
4952
05d21547
AB
49532009-12-21 Andreas Born <futur.andy@googlemail.com>
4954
4955 * kern/env.c (grub_env_context_open): Mark exported variable for
4956 reexport.
4957
0175d51f
AB
49582009-12-21 Andreas Born <futur.andy@googlemail.com>
4959
4960 * kern/env.c (grub_env_export): Create nonexistent variables before
4961 exporting.
4962
7f39d92f 49632009-12-20 Carles Pina i Estany <carles@pina.cat>
0175d51f 4964
7f39d92f 4965 * include/grub/auth.h: Include `<grub/i18n.h>'.
4966 (GRUB_GET_PASSWORD): Gettextizze string.
4967 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
4968 menu_text.c.
4969 (grub_utf8_to_ucs4_alloc): Fix indentation.
4970 (grub_print_ucs4): Likewise.
4971 (grub_getstringwidth): Likewise.
4972 (print_message_indented): New declaration.
4973 * normal/auth.c: Include `<grub/i18n.h>'.
4974 (grub_auth_check_authentication): Gettexttize string.
4975 * normal/cmdline.c: Include `<grub/i18n.h>'.
4976 (grub_cmdline_get): Gettextizze.
4977 * normal/color.c: Include `<grub/i18n.h>'.
4978 (grub_parse_color_name_pair): Gettexttize strings.
4979 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
4980 string (use `print_message_indented').
4981 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
4982 `include/grub/normal.h'.
4983 (print_message_indented): Renamed to ...
4984 (grub_print_message_indented): ... this. Remove `static' qualifer (now
4985 used in normal/main.c).
4986 (print_message): Use `grub_print_message_indented' instead of
4987 `print_message_indented'.
4988 (print_timeout): Likewise.
4989 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
4990 (grub_normal_print_device_info): Gettexttize strings.
4991 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
4992
3041d898
VS
49932009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
4994
4995 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
4996 of arguments. Return number of tokens and not arguments. All users
4997 updated.
4998
de15bf8e
VS
49992009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
5000
5001 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
5002 non-MSDOS paritions.
5003
e0a6ca52
VS
50042009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
5005
5006 * include/grub/types.h (UNUSED): Removed since it conflicts with
5007 NetBSD headers. All users changed to direct __attribute__ ((unused)).
5008 Reported by Grégoire Sutre.
5009
b99518d1 50102009-12-19 Carles Pina i Estany <carles@pina.cat>
5011
5012 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
5013 (grub_print_ucs4_alloc): Likewise.
5014 (grub_getstringwidth): Likewise.
5015 * normal/main.c (grub_normal_init_page): Gettextize version string.
5016 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
5017 (getstringwidth): Renamed to ...
5018 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
5019 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
5020 (grub_print_ucs4): Remove `static' qualifer (now used in
5021 normal/main.c).
5022 * po/POTFILES: Add normal/main.c.
5023
bfd5e52b 50242009-12-19 Carles Pina i Estany <carles@pina.cat>
5025
5026 * normal/menu_text.c (STANDARD_MARGIN): New macro.
5027 (print_message_indented): Add `margin_left' and `margin_right'
5028 parameters.
5029 (print_message): Update `print_message_indented' calls. Adds '\n' to the
5030 strings.
5031 (print_timeout): Use `print_message_indented' to print the message.
5032 Deletes `second_stage' parameter.
5033 (run_menu): Update `print_timeout' calls.
5034
5a1ad2b9
VS
50352009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
5036
5037 Fix console palette on OpenFirmware.
5038
5039 * term/ieee1275/ofconsole.c (MAX): Removed.
5040 (colors): Redone based on VGA palette.
5041 (grub_ofconsole_setcolor): Discard brightness bit since only 8
5042 colors are supported.
5043 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
5044
b045f00a
VS
50452009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
5046
5047 Fix potential EfiEmu double prepare.
5048
5049 * efiemu/main.c (prepared): New variable
5050 (grub_efiemu_unload): Set prepare to '0'.
5051 (grub_efiemu_prepare): Return if already prepared. Set prepared.
5052
5053 set_virtual_address_map support.
5054
5055 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
5056 prototype.
5057 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
5058 prototype.
5059 (grub_efiemu_crc32): Likewise.
5060 (grub_efiemu_crc64): Likewise.
5061 (grub_efiemu_set_virtual_address_map): Likewise.
5062 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
5063 New definition.
5064 (grub_autoefi_set_virtual_address_map): Likewise.
5065 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
5066 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
5067 Restructure flow to accomodate it.
5068 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
5069 (grub_efiemu_crc): Recompute CRC32.
5070 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
5071 (efiemu_ptv_relocated): ... this. Made global. All users updated.
5072 * efiemu/symbols.c (relocated_handle): New variable.
5073 (grub_efiemu_free_syms): Free relocated_handle.
5074 (grub_efiemu_alloc_syms): Allocate relocated_handle.
5075 (grub_efiemu_write_sym_markers): New function.
5076 (grub_efiemu_set_virtual_address_map): Likewise.
5077
5078 Newer XNU parameters.
5079
5080 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
5081 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
5082 (grub_xnu_fill_devicetree): New prototype.
5083 (grub_xnu_heap_real_start): New variable.
5084 * loader/xnu.c (get_name_ptr): New function.
5085 (grub_xnu_load_driver): Fill namelen and name.
5086
5087 64-bit xnu support.
5088
5089 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
5090 and 'loader/macho64.c'.
5091 * conf/i386-pc.rmk: Likewise.
5092 * conf/x86_64-efi.rmk: Likewise.
5093 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
5094 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
5095 * include/grub/macho.h (grub_macho_segment64): New structure.
5096 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
5097 (grub_macho_size32): ... to this.
5098 (grub_macho32_get_entry_point): Renamed from ...
5099 (grub_macho_get_entry_point32): ... to this.
5100 (grub_macho_contains_macho64): New prototype.
5101 (grub_macho_size64): Likewise.
5102 (grub_macho_get_entry_point64): Likewise.
5103 (grub_macho32_load): Renamed from ...
5104 (grub_macho_load32): ... to this.
5105 (grub_macho32_filesize): Renamed from ...
5106 (grub_macho_filesize32): ... to this.
5107 (grub_macho32_readfile): Renamed from ...
5108 (grub_macho_readfile32): ... to this.
5109 (grub_macho_filesize64): New prototype.
5110 (grub_macho_readfile64): Likewise.
5111 (grub_macho_parse32): Likewise.
5112 (grub_macho_parse64): Likewise.
5113 * loader/macho.c: Split into ...
5114 * loader/machoXX.c: ... and this. Replace 32 with XX.
5115 * loader/macho32.c: New file.
5116 * loader/macho64.c: Likewise.
5117 * loader/xnu.c (grub_xnu_is_64bit): New variable.
5118 (grub_cmd_xnu_kernel): Make 32-bit only.
5119 (grub_cmd_xnu_kernel64): New function.
5120 (grub_xnu_load_driver): Support Mach-O 64.
5121 (grub_cmd_xnu_mkext): Likewise.
5122 * util/grub.d/30_os-prober.in (osx_entry): New function.
5123 Generate entries for 64-bit boot too.
5124
5125 Eliminate ad-hoc tree format in XNU and EfiEmu.
5126
5127 * efiemu/main.c (grub_efiemu_prepare): Update comment.
5128 * efiemu/pnvram.c: Rewritten to use environment variables.
5129 All users updated.
5130
5131 Inline utf16_to_utf8.
5132
5133 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
5134 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
5135 All users updated.
5136 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
5137
5138 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
5139 * commands/usbtest.c (grub_usb_get_string): ... move here.
5140 (usb_print_str): Fix error handling.
5141 * include/grub/usb.h (grub_usb_get_string): Remove.
5142
5143 UTF-8 to UTF-16 transformation.
5144
5145 * conf/common.rmk (pkglib_MODULES): Add charset.mod
5146 (charset_mod_SOURCES): New variable.
5147 (charset_mod_CFLAGS): Likewise.
5148 (charset_mod_LDFLAGS): Likewise.
5149 * include/grub/utf.h: New file.
5150 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
5151
5152 Support for device properties.
5153
5154 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
5155 (grub_xnu_devprop_device_header): Likewise.
5156 (grub_xnu_devprop_device_descriptor): Likewise.
5157 (grub_xnu_devprop_add_device): New prototype.
5158 (grub_xnu_devprop_remove_device): Likewise.
5159 (grub_xnu_devprop_remove_property): Likewise.
5160 (grub_xnu_devprop_add_property_utf8): Likewise.
5161 (grub_xnu_devprop_add_property_utf16): Likewise.
5162 (grub_cpu_xnu_init): Likewise.
5163 (grub_cpu_xnu_fini): Likewise.
5164 (grub_cpu_xnu_unload): Likewise.
5165 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
5166 (property_descriptor): Likewise.
5167 (devices): New variable.
5168 (grub_xnu_devprop_remove_property): New function.
5169 (grub_xnu_devprop_add_device): Likewise.
5170 (grub_xnu_devprop_remove_device): Likewise.
5171 (grub_xnu_devprop_add_property): Likewise.
5172 (grub_xnu_devprop_add_property_utf8): Likewise.
5173 (grub_xnu_devprop_add_property_utf16): Likewise.
5174 (hextoval): Likewise.
5175 (grub_cpu_xnu_fill_devprop): Likewise.
5176 (grub_cmd_devprop_load): Likewise.
5177 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
5178 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
5179 (cmd_devprop_load): New variable.
5180 (grub_cpu_xnu_init): New function.
5181 (grub_cpu_xnu_fini): Likewise.
5182 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
5183 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
5184 (grub_cmd_xnu_devtree): Likewise.
5185 (hextoval): New function.
5186 (unescape): Likewise.
5187 (grub_xnu_fill_devicetree): Likewise.
5188
5189 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
5190 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
5191
0945f181
VS
51922009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
5193
5194 Workaround for broken ATI VBE.
5195
5196 * video/i386/pc/vbe.c (last_set_mode): New variable.
5197 (grub_vbe_set_video_mode): Set 'last_set_mode'.
5198 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
5199 (grub_video_vbe_setup): Don't check for reserved flag.
5200
0ad46fd7 52012009-12-17 Felix Zielcke <fzielcke@z-51.de>
0297aafb
FZ
5202
5203 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
5204 the `find' command.
5205
c179ebe4
VS
52062009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
5207
5208 UUID support for HFS.
5209
5210 * fs/hfs.c (grub_hfs_uuid): New function.
5211 (grub_hfs_fs): New value .uuid.
5212 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
5213
0ad46fd7 52142009-12-14 Felix Zielcke <fzielcke@z-51.de>
574cce0c
FZ
5215
5216 Fix a segfault with parsing unknown long options.
5217
5218 * util/grub-mkrelpath.c (options): Zero terminate it.
5219
c4a3e41a
CPE
52202009-12-13 Carles Pina i Estany <carles@pina.cat>
5221
5222 * include/grub/misc.h (grub_puts): New declaration.
5223 (grub_puts_): Likewise.
a22008a6 5224 * kern/misc.c (grub_puts): New definition.
c4a3e41a
CPE
5225 (grub_puts_): Likewise.
5226
2e8a7602
RM
52272009-12-13 Robert Millan <rmh.grub@aybabtu.com>
5228
5229 * util/grub-probe.c (probe): Improve error message.
5230
b50b77b9
RM
52312009-12-13 Robert Millan <rmh.grub@aybabtu.com>
5232
5233 * loader/i386/multiboot_elfxx.c
5234 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
5235 initialization.
5236
52372009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
5238
5239 Relocator framework
5240
5241 * loader/i386/xnu_helper.S: Removed. All users updated.
5242 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
5243 (relocator_mod_SOURCES): New variable.
5244 (relocator_mod_CFLAGS): Likewise.
5245 (relocator_mod_LDFLAGS): Likewise.
5246 (relocator_mod_ASFLAGS): Likewise.
5247 * conf/x86_64.rmk: Likewise.
5248 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
5249 (grub_multiboot_payload_entry_offset): Likewise.
5250 (grub_multiboot_forward_relocator): Likewise.
5251 (grub_multiboot_forward_relocator_end): Likewise.
5252 (grub_multiboot_backward_relocator): Likewise.
5253 (grub_multiboot_backward_relocator_end): Likewise.
5254 (grub_multiboot_payload_eip): New variable.
5255 (grub_multiboot_payload_orig): Likewise.
5256 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
5257 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
5258 * include/grub/i386/memory.h
5259 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
5260 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
5261 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
5262 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
5263 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
5264 * include/grub/i386/relocator.h: New file.
5265 * include/grub/x86_64/relocator.h: Likewise.
5266 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
5267 (XNU_RELOCATOR): New macro.
5268 (grub_xnu_launcher_start): Remove.
5269 (grub_xnu_launcher_end): Likewise.
5270 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
5271 (grub_xnu_heap_real_start): Remove.
5272 (grub_xnu_heap_start): Change to void *. All users updated.
5273 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
5274 * lib/i386/relocator.c: New file.
5275 * lib/i386/relocator_asm.S: Likewise.
5276 * lib/i386/relocator_backward.S: Likewise.
5277 * lib/mips/relocator.c: Likewise.
5278 * lib/mips/relocator_asm.S: Likewise.
5279 * lib/relocator.c: Likewise.
5280 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
5281 (entry): Removed.
5282 (playground): Likewise.
5283 (grub_multiboot_payload_orig): New variable.
5284 (grub_multiboot_payload_dest): Likewise.
5285 (grub_multiboot_payload_size): Likewise.
5286 (grub_multiboot_payload_eip): Likewise.
5287 (grub_multiboot_payload_esp): Likewise.
5288 (grub_multiboot_boot): Use grub_relocator32_boot.
5289 (grub_multiboot_unload): Free relocators.
5290 (grub_multiboot): Setup stack. Use relocators.
5291 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
5292 (grub_multiboot_load_elfXX): Use relocators.
5293 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
5294 (grub_multiboot_payload_size): Likewise.
5295 (grub_multiboot_payload_dest): Likewise.
5296 (grub_multiboot_payload_entry_offset): Likewise.
5297 (grub_multiboot_forward_relocator): Likewise.
5298 (grub_multiboot_backward_relocator): Likewise.
5299 (grub_multiboot_real_boot): Likewise.
5300 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
5301 (grub_xnu_entry_point): Likewise.
5302 (grub_xnu_arg1): Likewise.
5303 (grub_xnu_stack): Likewise.
5304 (grub_xnu_launch): Removed.
5305 (grub_xnu_boot_resume): New function.
5306 (grub_xnu_boot): Use relocators.
5307 * loader/i386/xnu_helper.S: Removed.
5308 * loader/xnu.c (grub_xnu_heap_start): New variable.
5309 (grub_xnu_heap_size): Likewise.
5310 (grub_xnu_heap_malloc): Use relocators.
5311 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
5312
29eb90c6
VS
53132009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
5314
5315 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
5316 anything.
5317
31027430
CPE
53182009-12-13 Carles Pina i Estany <carles@pina.cat>
5319
5320 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
5321 GRUB_ERR_NONE before calling grub_env_set.
5322
dc0c71d9
RM
53232009-12-12 Robert Millan <rmh@aybabtu.com>
5324
5325 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
5326 * genmk.rb (video): New variable.
5327 (CLEANFILES, VIDEOFILES): Add #{video}.
5328 (#{video}): New target rule.
5329 * genvideolist.sh: New file.
5330 * Makefile.in (pkglib_DATA): Add video.lst.
5331 (video.lst): New target rule.
5332 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
5333 `video.lst'.
5334 * util/grub.d/30_os-prober.in: Replace `vbe' with
5335 ${GRUB_VIDEO_BACKEND}.
5336
2a4bfcf0
RM
53372009-12-11 Robert Millan <rmh.grub@aybabtu.com>
5338
5339 * THANKS: Add David Miller.
5340
2a3aa4d5
RM
53412009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
5342
5343 libpciaccess support.
5344
5345 * Makefile.in (LIBPCIACCESS): New variable.
5346 (enable_grub_emu_pci): Likewise.
5347 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
5348 util/pci.c and commands/lspci.c.
5349 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
5350 * configure.ac (grub-emu-pci): New option.
5351 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
5352 (grub_pci_device_unmap_range): Likewise.
5353 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
5354 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
5355 (grub_pci_address_t) [!GRUB_UTIL]: New type.
5356 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
5357 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
5358 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
5359 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
5360 * include/grub/pciutils.h: New file.
5361 * util/pci.c: Likewise.
5362
0ad46fd7 53632009-12-11 Felix Zielcke <fzielcke@z-51.de>
8d0502d9
FZ
5364
5365 * util/misc.c: Don't include <errno.h> twice.
5366
0ad46fd7 53672009-12-10 Felix Zielcke <fzielcke@z-51.de>
0d56ed64
FZ
5368
5369 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
5370 name in an error message.
5371 (grub_biosdisk_rw): Likewise.
5372
2e59983c
VS
53732009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
5374
5375 Eliminate NTFS 4Gib barrier.
5376
5377 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
5378 (read_run_data): Likewise.
5379 (grub_ntfs_read_run_list): Likewise.
5380 (grub_ntfs_read_block): Likewise.
5381 (grub_ntfs_iterate_dir): Likewise.
5382 (read_mft): Likewise.
5383 (read_data): Likewise.
5384 Use COM_LOG_LEN.
5385 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
5386 to avoid 64-bit division
5387 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
5388 (grub_ntfs_rlst): Use grub_disk_addr_t.
5389
71ee178a
VS
53902009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
5391
5392 Eliminate grub-fstest 4Gib barrier.
5393
5394 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
5395 (read_file): Fix error reporting.
5396
2520d4b8
VS
53972009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
5398
5399 Eliminate hexdump 4Gib barrier.
5400
5401 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
5402 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
5403
e1f27065
VS
54042009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
5405
5406 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
5407 Fixes amarsh bug.
5408
1a0f7f45
RM
54092009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
5410
5411 Remove miscellaneous files in distclean target.
5412
5413 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
5414
c631d9fb
CW
54152009-12-09 Colin Watson <cjwatson@ubuntu.com>
5416
5417 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
5418 if they're already set. This resolves the conflict between my
5419 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
5420 fixing the --grub-probe option again.
5421 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
5422 change on 2009-10-06, so that we now once again source
5423 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
5424
7c7b6106
RM
54252009-12-08 Robert Millan <rmh.grub@aybabtu.com>
5426
5427 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
5428 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
5429 `util/devicemap.c'.
5430
e3069ec1
CPE
54312009-12-08 Carles Pina i Estany <carles@pina.cat>
5432
5433 * include/grub/misc.h (grub_printf_): New declaration.
5434 * kern/misc.c (grub_printf_): New definition.
5435 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
5436 instead of `grub_printf' and `_'.
5437 * normal/menu_entry.c (store_completion): Likewise.
5438 (run): Likewise.
5439 (grub_menu_entry_run): Likewise.
5440 * normal/menu_text.c (grub_wait_after_message): Likewise.
5441 (notify_booting): Likewise.
5442 (notify_fallback): Likewise.
5443 (notify_execution_failure): Likewise.
5444
d6ceebf1
CW
54452009-12-07 Colin Watson <cjwatson@ubuntu.com>
5446
5447 * configure.ac: Check for vasprintf.
5448 * util/misc.c (asprintf): Move allocation from here ...
5449 (vasprintf): ... to here. New function.
5450 (xasprintf): New function.
5451 * include/grub/util/misc.h (vasprintf, xasprintf): Add
5452 prototypes.
5453 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
5454 * util/grub-mkfont.c (write_font): Likewise.
5455 * util/grub-probe.c (probe): Likewise.
5456 * util/hostdisk.c (make_device_name): Likewise.
5457
de6daa8b
DM
54582009-12-06 David S. Miller <davem@sunset.davemloft.net>
5459
5460 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
5461 anything even prefixed with 'cdrom' as a cdrom.
5462
0ad46fd7 54632009-12-06 Felix Zielcke <fzielcke@z-51.de>
df91e679
FZ
5464
5465 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
5466 mount points.
5467
98d3dc02
CPE
54682009-12-05 Carles Pina i Estany <carles@pina.cat>
5469
5470 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
5471 grub_gettext_msg_list.
5472 (grub_gettext_gettranslation_from_position): Return const char *
5473 and not char *.
a2c1332b 5474 (grub_gettext_translate): Add the translated strings into a list,
98d3dc02
CPE
5475 returns from the list if existing there.
5476 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
5477 (grub_gettext_delete_list): Delete the list.
5478 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
5479 lang environment variable is changed.
5480 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
5481
b283f108
VS
54822009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
5483
5484 Rename kernel.mod to kernel.img.
5485
5486 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
5487 (kernel_mod_EXPORTS): Rename to ...
5488 (kernel_img_EXPORTS): ... this.
5489 (kernel_mod_SOURCES): Rename to ...
5490 (kernel_img_SOURCES): ... this.
5491 (kernel_mod_HEADERS): Rename to ...
5492 (kernel_img_HEADERS): ... this. All users updated.
5493 (kernel_mod_CFLAGS): Rename to ...
5494 (kernel_img_CFLAGS): ... this.
5495 (kernel_mod_ASFLAGS): Rename to ...
5496 (kernel_img_ASFLAGS): ... this.
5497 (kernel_mod_LDFLAGS): Rename to ...
5498 (kernel_img_LDFLAGS): ... this.
5499 * conf/x86_64-efi.rmk: Likewise.
5500 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
5501 (read_kernel_image): ... this. All users updated.
5502 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
5503
69055f8a
CPE
55042009-12-05 Carles Pina i Estany <carles@pina.cat>
5505
5506 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
5507 (print_spaces): New function.
5508 (grub_print_ucs4): New function.
5509 (getstringwidth): New function.
5510 (print_message_indented): New function.
5511 (print_message): Gettexttize strings using print_message_indented.
5512 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
5513 width.
5514 (get_entry_number): Gettextize and uses dynamic terminal width.
a2c1332b 5515 (notify_booting, notify_fallback, notify_execution_failure):
69055f8a
CPE
5516 Gettextize.
5517 * normal/menu_entry.c (store_completion): Cleanup the gettextized
5518 string.
5519 (run): Likewise.
5520 (grub_menu_entry_run): Likewise.
5521 * PO/POTFILES: Add normal/menu_entry.c.
5522
f616f51c
VS
55232009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
5524
5525 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
5526
57bbe3be
CPE
55272009-12-05 Carles Pina i Estany <carles@pina.cat>
5528
5529 * util/grub-install.in: Install gettext .mo files.
5530 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
5531
013d67a1
CPE
55322009-12-05 Carles Pina i Estany <carles@pina.cat>
5533
5534 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
5535 grub_dprintf.
5536
fb954db0
RM
55372009-12-05 Robert Millan <rmh.grub@aybabtu.com>
5538
5539 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
5540 non-firmware-dependant one in realmode.S takes precedence.
5541
6b8474f8
RM
55422009-12-04 Robert Millan <rmh.grub@aybabtu.com>
5543
5544 * commands/halt.c: Replace misc arch-specific headers with
5545 `<grub/misc.h>'.
5546 * commands/reboot.c: Likewise.
5547 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
5548 `<grub/misc.h>'.
5549 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
5550 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
5551 (kernel_img_SOURCES): ... to here.
5552
5553 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
5554 * include/grub/i386/pc/init.h: Likewise.
5555 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
5556 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
5557
5558 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
5559
5560 * include/grub/i386/halt.h: Remove.
5561 * include/grub/i386/reboot.h: Likewise.
5562
5563 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
5564
4b2e6ca2
DM
55652009-12-03 David S. Miller <davem@sunset.davemloft.net>
5566
5567 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
5568 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
5569 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
5570 "progname.h"
5571 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
5572 * util/sparc64/ieee1275/grub-setup.c: Likewise.
5573 (usage): Add missing comma in printf.
5574
5239348f
RM
55752009-12-02 Robert Millan <rmh.grub@aybabtu.com>
5576
5577 Use the same reboot approach on i386 coreboot and qemu as we do on
5578 BIOS.
5579
5580 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
5581 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
5582 * kern/i386/reboot.c: Remove.
5583 * include/grub/i386/reboot.h (grub_reboot): Export function.
5584 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
5585 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
5586 0xf000:0xfff0 instead of 0xffff:0x0000.
5587 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
5588 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
5589
ef34cbd4
RM
55902009-11-30 Robert Millan <rmh.grub@aybabtu.com>
5591
5592 Fix $srcdir != $objdir build.
5593
5594 * Makefile.in (po/%.po): Rewrite as ...
5595 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
5596
dc9837ea
ST
55972009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
5598
5599 Fix GNU/Hurd grub-install crash.
5600 * util/grub-probe.c (probe): Try to access `path' only when it is not
5601 NULL.
5602
2f857f98
VS
56032009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
5604
5605 Correct module naming.
5606
5607 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
5608 (GRUB_MOD_INIT(efi_uga)): ... to this
5609 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
5610 (GRUB_MOD_FINI(efi_uga)): ... to this
5611 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
5612 (GRUB_MOD_INIT(efi_gop)): ... to this
5613 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
5614 (GRUB_MOD_FINI(efi_gop)): ... to this
5615
c5448046
RM
56162009-11-28 Robert Millan <rmh.grub@aybabtu.com>
5617
5618 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
5619 translatable.
5620 (usage): Translate `arg' strings using gettext().
5621 Thanks to Jordi Mallach for the suggestion.
5622
c85184ad
VS
56232009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
5624
5625 GOP support. Based on patch from Bean
5626 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
5627
5628 * video/efi_gop.c: New file.
5629 * include/grub/efi/graphics_output.h: Likewise.
5630 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
5631 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
5632 variables.
5633 * conf/x86_64-efi.rmk: Likewise.
5634
8a4c48d8
VS
56352009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
5636
5637 Rename efi_fb to efi_uga.
5638
5639 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
5640 'efi_uga.mod'.
5641 (efi_fb_mod_SOURCES): Rename this ...
5642 (efi_uga_mod_SOURCES): ... to this.
5643 (efi_fb_mod_CFLAGS): Rename this ...
5644 (efi_uga_mod_CFLAGS): ... to this.
5645 (efi_fb_mod_LDFLAGS): Rename this ...
5646 (efi_uga_mod_LDFLAGS): ... to this.
5647 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
5648 'efi_uga.mod'.
5649 (efi_fb_mod_SOURCES): Rename this ...
5650 (efi_uga_mod_SOURCES): ... to this.
5651 (efi_fb_mod_CFLAGS): Rename this ...
5652 (efi_uga_mod_CFLAGS): ... to this.
5653 (efi_fb_mod_LDFLAGS): Rename this ...
5654 (efi_uga_mod_LDFLAGS): ... to this.
5655 * video/efi_fb.c: Move this ...
5656 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
5657
fb6c1a7b
RM
56582009-11-27 Robert Millan <rmh.grub@aybabtu.com>
5659
5660 * po/README: New file. Explain our PO file workflow.
5661
3bc7896c
RM
56622009-11-27 Robert Millan <rmh.grub@aybabtu.com>
5663
5664 * po/ChangeLog: Remove. Move relevant entries back to ...
5665 * ChangeLog: ... here.
5666 * po/ca.po: Remove (now handled by TLP).
5667 * po/id.po: Likewise.
5668 * po/zh_CN.po: Likewise.
5669 * Makefile.in (LINGUAS): Initialize in a way that supports
5670 empty set.
5671
9ed4841d
RM
56722009-11-27 Robert Millan <rmh.grub@aybabtu.com>
5673
5674 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
5675 reliing on po/LINGUAS.
5676 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
5677 (po/%.po): ... this.
5678
0ad46fd7 56792009-11-26 Felix Zielcke <fzielcke@z-51.de>
242668a2
FZ
5680
5681 * util/i386/efi/grub-mkimage.c: Include "progname.h".
5682 (main): Use `program_name' instead of nonexistent `progname'.
5683
e30dd392
FZ
56842009-11-26 Felix Zielcke <fzielcke@z-51.de>
5685
5686 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
5687 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
5688
7656de4f
RM
56892009-11-26 Robert Millan <rmh.grub@aybabtu.com>
5690
5691 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
5692 commit.
5693 * conf/i386-efi.rmk: Likewise.
5694 * conf/i386-ieee1275.rmk: Likewise.
5695 * conf/powerpc-ieee1275.rmk: Likewise.
5696 * conf/sparc64-ieee1275.rmk: Likewise.
5697 * conf/x86_64-efi.rmk: Likewise.
5698
db77c4d4
FZ
56992009-11-26 Felix Zielcke <fzielcke@z-51.de>
5700
5701 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
5702
a755bb04
FZ
57032009-11-26 Felix Zielcke <fzielcke@z-51.de>
5704
5705 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
5706
8a4c07fd
RM
57072009-11-26 Robert Millan <rmh.grub@aybabtu.com>
5708
5709 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
5710 (grub_mkdevicemap_SOURCES): New variable.
5711 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
5712 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
5713 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
5714 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
5715 (grub_mkdevicemap_SOURCES): Remove.
5716 * conf/i386-efi.rmk: Likewise.
5717 * conf/i386-ieee1275.rmk: Likewise.
5718 * conf/i386-pc.rmk: Likewise.
5719 * conf/powerpc-ieee1275.rmk: Likewise.
5720 * conf/sparc64-ieee1275.rmk: Likewise.
5721 * conf/x86_64-efi.rmk: Likewise.
5722 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
5723 (usage): Fix strings to use `program_name'.
5724 (main): Initialize gettext.
5725 * util/grub-editenv.c: Likewise.
5726 * util/grub-emu.c: Likewise.
5727 * util/grub-fstest.c: Likewise.
5728 * util/grub-mkdevicemap.c: Likewise.
5729 * util/grub-mkfont.c: Likewise.
5730 * util/grub-mkrelpath.c: Likewise.
5731 * util/grub-pe2elf.c: Likewise.
5732 * util/grub-probe.c: Likewise.
5733 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
5734 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
5735 * util/sparc64/ieee1275/grub-setup.c: Likewise.
5736
5737 * util/misc.c: Include `"progname.h"'.
5738 (progname): Remove variable.
5739 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
5740
6f61ed55
FZ
57412009-11-25 Felix Zielcke <fzielcke@z-51.de>
5742
5743 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
5744 printf and print a newline after the menuentry header line.
5745 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
5746
f022876b
FZ
57472009-11-25 Felix Zielcke <fzielcke@z-51.de>
5748
5749 autoconf >= 2.60 support $(localedir).
5750
5751 * INSTALL: Note that autoconf 2.60 is required.
5752 * configure.ac (AC_PREREQ): Bump to 2.60.
5753 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
5754 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
5755
6717926e
YB
57562009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
5757
5758 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
5759 aclocal is run.
5760
08806a54
RM
57612009-11-25 Robert Millan <rmh.grub@aybabtu.com>
5762
5763 * normal/main.c (grub_normal_read_line): Fix off-by-one
5764 buffer overflow.
5765
13b33fba
RM
57662009-11-25 Robert Millan <rmh.grub@aybabtu.com>
5767
5768 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
5769 "parser.grub" in grub_command_execute() call.
5770
4a8572e9
CPE
57712009-11-24 Carles Pina i Estany <carles@pina.cat>
5772
5773 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
5774 * conf/i386-efi.rmk: Likewise.
5775 * conf/i386-ieee1275.rmk: Likewise.
5776 * conf/i386-pc.rmk: Likewise.
5777 * conf/powerpc-ieee1275.rmk: Likewise.
5778 * conf/sparc64-ieee1275.rmk: Likewise.
5779 * conf/x86_64-efi.rmk: Likewise.
5780 * gettext/gettex.c: Include <grub/i18n.h>.
5781 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
5782 here ...
5783 * include/grub/i18n.h: ... to here
5784 * include/grub/i18n.h: ... to here.
5785 * kern/misc.c: Include <grub/i18n.h>
a2c1332b 5786 (grub_gettext_dummy): Move above user.
4a8572e9 5787
bee48093
FZ
57882009-11-24 Felix Zielcke <fzielcke@z-51.de>
5789
5790 * util/Makefile.in (install-local): Convert a `for' into a normal
5791 shell expansion.
5792
a031e91c
RM
57932009-11-24 Robert Millan <rmh.grub@aybabtu.com>
5794
5795 * autogen.sh: Add automake call.
5796 * config.guess: Remove.
5797 * config.sub: Likewise.
5798 * install-sh: Likewise.
5799
26bec39d
FZ
58002009-11-24 Felix Zielcke <fzielcke@z-51.de>
5801
5802 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
5803
8e2532fd
FZ
58042009-11-24 Felix Zielcke <fzielcke@z-51.de>
5805
5806 * util/Makefile.in (install-local): Convert a make `$(foreach)'
5807 function to a normal shell `for'.
5808
fefa1b7d
FZ
58092009-11-24 Felix Zielcke <fzielcke@z-51.de>
5810
5811 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
5812
4501250b
FZ
58132009-11-24 Felix Zielcke <fzielcke@z-51.de>
5814
5815 * util/grub-mkrelpath.c: New file.
5816 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
5817 (grub_mkrelpath_SOURCES): New variable.
5818 * include/grub/util/misc.h: New function prototype.
5819 * util/misc.c (make_system_path_relative_to_its_root): New function.
5820
5821 * util/grub-mkconfig_lib.in (bindir): New variable.
5822 (grub_mkrelpath): Likewise.
5823 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
5824
5825 * util/probe.c (probe): Make the file path relative to its root.
5826 Change a info message to use the GRUB path. Enable again the
5827 check if we can read the file with GRUB facilities.
5828
5829 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
5830 to its root.
5831
11d9778b
FZ
58322009-11-24 Felix Zielcke <fzielcke@z-51.de>
5833
5834 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
5835 platform.
5836
4465287d
FZ
58372009-11-24 Felix Zielcke <fzielcke@z-51.de>
5838
5839 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
5840 strncmp().
5841
62b47f22
FZ
58422009-11-24 Felix Zielcke <fzielcke@z-51.de>
5843
5844 * util/getroot.c (grub_util_is_dmraid): New function.
5845 (grub_util_get_dev_abstraction): Treat dmraid and multipath
5846 devices as normal ones, not as LVM.
5847
1eafb9b9 58482009-11-23 Carles Pina i Estany <carles@pina.cat>
c3ea6bd4
CPE
5849
5850 * conf/common.rmk: Add grub-gettext_lib target and updates
5851 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
5852 LDFLAGS.
5853 * gettext/gettext.c: New file. (Reads mo files).
5854 * include/grub/file.h (grub_file_pread): New prototype.
5855 * include/grub/i18n.h (_): New prototype.
5856 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
5857 prototypes.
5858 * kern/misc.c (grub_gettext_dummy): New function.
5859 * normal/menu_text.c: Include <grub/i18n.h>.
5860 * normal/menu_text.c (print_timeout): Gettexttize string.
5861 * normal/menu_text.c (print_message): Gettexttize string.
3bc7896c
RM
5862 * po/POTFILES: Add `normal/menu_text.c'.
5863 * po/ca.po: Add new translations.
c3ea6bd4
CPE
5864 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
5865 gettext module and defines locale_dir and lang in grub.cfg.
5866 * NEWS: Add gettext support.
5867
0fdb2568
RM
58682009-11-23 Robert Millan <rmh.grub@aybabtu.com>
5869
5870 * util/hostdisk.c: Include `<grub/i18n.h>'.
5871 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
5872 (make_device_name): Rewrite using asprintf.
5873 (convert_system_partition_to_system_disk): Replace 0 with NULL.
5874 (find_system_device): If a device is not found, generate one just
5875 by reusing the OS path name.
5876 (read_device_map): Make it permissible for device.map not to exist.
5877
f515aa62
RM
58782009-11-23 Robert Millan <rmh.grub@aybabtu.com>
5879
5880 * script/sh/execute.c: Move from here ...
5881 * script/execute.c: ... to here. Update all users.
5882 * script/sh/function.c: Move from here ...
5883 * script/function.c: ... to here. Update all users.
5884 * script/sh/lexer.c: Move from here ...
5885 * script/lexer.c: ... to here. Update all users.
5886 * script/sh/main.c: Move from here ...
5887 * script/main.c: ... to here. Update all users.
5888 * script/sh/parser.y: Move from here ...
5889 * script/parser.y: ... to here. Update all users.
5890 * script/sh/script.c: Move from here ...
5891 * script/script.c: ... to here. Update all users.
5892
f84b481b
RM
58932009-11-23 Robert Millan <rmh.grub@aybabtu.com>
5894
5895 * configure.ac: Detect all `emu' platforms. Define
5896 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
5897 --enable-grub-emu logic. Disable include/grub/machine
5898 symlink on `emu' platforms.
5899
5900 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
5901 * gensymlist.sh.in: Likewise.
5902
5903 * include/grub/i386/coreboot/machine.h: Remove file.
5904 * include/grub/i386/efi/machine.h: Likewise.
5905 * include/grub/i386/ieee1275/machine.h: Likewise.
5906 * include/grub/i386/pc/machine.h: Likewise.
5907 * include/grub/i386/qemu/machine.h: Likewise.
5908 * include/grub/powerpc/ieee1275/machine.h: Likewise.
5909 * include/grub/sparc64/ieee1275/machine.h: Likewise.
5910 * include/grub/x86_64/efi/machine.h: Likewise.
5911
5912 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
5913 * commands/halt.c: Likewise.
5914 * commands/reboot.c: Likewise.
5915 * include/grub/autoefi.h: Likewise.
5916 * include/grub/i386/at_keyboard.h: Likewise.
5917 * include/grub/i386/kernel.h: Likewise.
5918 * include/grub/i386/loader.h: Likewise.
5919 * include/grub/i386/pc/memory.h: Likewise.
5920 * kern/dl.c: Likewise.
5921 * kern/i386/coreboot/init.c: Likewise.
5922 * loader/i386/bsd.c: Likewise.
5923 * loader/i386/linux.c: Likewise.
5924 * loader/multiboot_loader.c: Likewise.
5925 * term/i386/pc/serial.c: Likewise.
5926 * term/usb_keyboard.c: Likewise.
5927
5928 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
5929 `<grub/machine/machine.h>'
5930 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
5931 * util/misc.c: Remove `<grub/machine/machine.h>' and
5932 `<grub/machine/time.h>'.
5933
5934 * Makefile.in (enable_grub_emu): Remove variable.
5935 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
5936
5937 * conf/any-emu.rmk: New file.
5938 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
5939 (grub_emu_init.c): Move from here ...
5940 * conf/any-emu.rmk: ... to here.
5941
5942 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
5943 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
5944 * conf/any-emu.rmk: ... to here.
5945
4efeab03
RM
59462009-11-23 Robert Millan <rmh.grub@aybabtu.com>
5947
5948 * include/grub/parser.h (grub_parser_register): Document need
5949 of `name' parameter.
5950 * normal/main.c (grub_normal_read_line): Simplify prompt string.
5951 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
5952 "sh" to "grub".
5953
ea1dd8bf
RM
59542009-11-23 Robert Millan <rmh.grub@aybabtu.com>
5955
5956 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
5957 `$(XGETTEXT)'.
5958 * include/grub/i18n.h (N_): New macro.
5959 * util/mkisofs/mkisofs.h: Likewise.
5960 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
5961 around N_().
5962 (usage): Use gettext() to translate help strings when printing them.
5963
0c140626
RM
59642009-11-23 Robert Millan <rmh.grub@aybabtu.com>
5965
5966 Based on patch from Bean
5967 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
5968
5969 * video/efi_fb.c: New file.
5970 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
5971 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
5972 variables.
5973 * conf/x86_64-efi.rmk: Likewise.
5974
87d58298
RM
59752009-11-22 Robert Millan <rmh.grub@aybabtu.com>
5976
5977 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
5978 * util/i386/pc/grub-setup.c: Likewise.
5979
994cc3a3
ST
59802009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
5981
5982 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
5983 <hurd/fs.h>
5984 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
5985 file_get_storage_info to implement grub_guess_root_device.
5986
26a61d6a
FZ
59872009-11-21 Felix Zielcke <fzielcke@z-51.de>
5988
5989 * Makefile.in (target): Use make's builtin $(shell) function
5990 instead of calling directly $(SHELL) to create the locale directories,
5991 inside the $(foreach) function.
5992
74ff1dd5
FZ
59932009-11-21 Felix Zielcke <fzielcke@z-51.de>
5994
5995 * util/grub-mkrescue.in: Print an error and usage if output option
5996 has not been given.
5997
0b787d0e
FZ
59982009-11-21 Felix Zielcke <fzielcke@z-51.de>
5999
6000 Patch from Loïc Minier <loic.minier@ubuntu.com>.
6001 * util/grub.d/30_os-prober.in: Cope with Linux entries where
6002 root and /boot are on different devices.
6003
1164b270
RM
60042009-11-21 Robert Millan <rmh.grub@aybabtu.com>
6005
6006 Fix build for srcdir != objdir.
6007
6008 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
6009 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
6010 $(srcdir).
6011 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
6012 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
6013 reference for input.
6014
13774a2f
RM
60152009-11-21 Robert Millan <rmh.grub@aybabtu.com>
6016
6017 * util/grub-mkrescue.in: Use source directory direcly (without copiing
6018 or hardlinking it). Remove -J option, Joliet is not compatible with
6019 multiple source directories.
6020
efda854e
RM
60212009-11-21 Carles Pina i Estany <carles@pina.cat>
60222009-11-21 Robert Millan <rmh.grub@aybabtu.com>
6023
6024 * util/grub-mkrescue.in: Recognize `--override-directory' option.
6025 (process_input_dir): New function. Process an arbitrary input
6026 directory.
6027 Misc adjustments to support both "override mode" and system-wide mode.
6028
6c09890c
FZ
60292009-11-20 Felix Zielcke <fzielcke@z-51.de>
6030
6031 * configure.ac (UNIFONT_BDF): Rename to ...
6032 (FONT_SOURCE): ... this. Update all users.
6033
a797824f
FZ
60342009-11-20 Felix Zielcke <fzielcke@z-51.de>
6035
6036 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
6037 to the list of unifont files to look for.
6038
cd4f42b0
RM
60392009-11-19 Robert Millan <rmh.grub@aybabtu.com>
6040
6041 Patch from Joe Auricchio <jauricchio@gmail.com>
6042 * commands/minicmd.c (grub_mini_cmd_clear): New function.
6043 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
6044 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
6045
393c783d
FZ
60462009-11-19 Felix Zielcke <fzielcke@z-51.de>
6047
6048 * Makefile.in (install-local): Add a missing backslash.
6049
b2f1e327
FZ
60502009-11-19 Felix Zielcke <fzielcke@z-51.de>
6051
6052 * include/grub/x86_64/io.h: New file.
6053
f577f7a0
RM
60542009-11-19 Robert Millan <rmh.grub@aybabtu.com>
6055
6056 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
6057 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
6058 Include `"progname.h"'.
6059 (main): Initialize gettext.
6060 * util/i386/pc/grub-setup.c: Gettexttize.
6061 * util/i386/pc/grub-mkimage.c: Likewise.
6062
6063 * Makefile.in (po/*.po): Redefine as ...
6064 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
6065
3bc7896c
RM
6066 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
6067
c37943b6
RM
60682009-11-19 Robert Millan <rmh.grub@aybabtu.com>
6069
6070 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
6071 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
6072 (program_name): Remove.
6073 (main): Initialize gettext support.
6323f705
RM
6074 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
6075 Include `<libintl.h>'.
6076 (_): New macro.
c37943b6
RM
6077
6078 * util/mkisofs/eltorito.c: Gettexttize.
6079 * util/mkisofs/joliet.c: Likewise.
6080 * util/mkisofs/mkisofs.c: Likewise.
c37943b6
RM
6081 * util/mkisofs/multi.c: Likewise.
6082 * util/mkisofs/rock.c: Likewise.
6083 * util/mkisofs/tree.c: Likewise.
6084 * util/mkisofs/write.c: Likewise.
6085
3bc7896c
RM
6086 * po/POTFILES: Update with new files.
6087
5ce77c6e
RM
60882009-11-18 Robert Millan <rmh.grub@aybabtu.com>
6089
6090 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
6091 * util/mkisofs/iso9660.h: Likewise.
6092 * util/mkisofs/joliet.c: Likewise.
6093 * util/mkisofs/mkisofs.c: Likewise.
6094 * util/mkisofs/mkisofs.h: Likewise.
6095 * util/mkisofs/rock.c: Likewise.
6096 * util/mkisofs/tree.c: Likewise.
6097 * util/mkisofs/write.c: Likewise.
6098
6099 * util/mkisofs/eltorito.c (rcsid): Remove.
6100 * util/mkisofs/hash.c: Likewise.
6101 * util/mkisofs/joliet.c: Likewise.
6102 * util/mkisofs/name.c: Likewise.
6103 * util/mkisofs/rock.c: Likewise.
6104 * util/mkisofs/tree.c: Likewise.
6105 * util/mkisofs/write.c: Likewise.
6106
1dabbc77
RM
61072009-11-18 Robert Millan <rmh.grub@aybabtu.com>
6108
6109 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
6110 instead of static allocation.
6111 * util/mkisofs/match.h: Likewise.
6112
633877cb
RM
61132009-11-18 Robert Millan <rmh.grub@aybabtu.com>
6114
3bc7896c
RM
6115 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
6116 and `util/grub.d/10_linux.in'.
633877cb
RM
6117 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
6118 translatable Shell files.
6119
af1c0c85
RM
61202009-11-18 Robert Millan <rmh.grub@aybabtu.com>
6121
6122 * Makefile.in ($(srcdir)/aclocal.m4): New target.
6123
769ae37b
RM
61242009-11-17 Robert Millan <rmh.grub@aybabtu.com>
6125
6126 * INSTALL: Document Automake is needed for bootstrap.
3bc7896c 6127 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
769ae37b
RM
6128 * util/grub.d/10_kfreebsd.in (bindir): New variable.
6129 Add gettext initialization.
6130 (kfreebsd_entry): Make menuentry output translatable.
6131
61322009-11-17 Robert Millan <rmh.grub@aybabtu.com>
6133
6134 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
6135 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
6136 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
6137 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
6138 (LINGUAS): Auto-generate using `po/LINGUAS'.
3bc7896c 6139 * po/LINGUAS: New file.
769ae37b
RM
6140
61412009-11-17 Robert Millan <rmh.grub@aybabtu.com>
6142
6143 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
6144 other things).
6145 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
6146 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
6147 bindtextdomain() calls for gettext initialization.
6148
61492009-11-17 Robert Millan <rmh.grub@aybabtu.com>
6150
6151 * gnulib/progname.c: New file (imported from Gnulib).
6152 * gnulib/progname.h: Likewise.
6153 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
6154 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
6155 (usage): Replace `progname' with `program_name'.
6156 (main): Use set_program_name() for program name initialization.
6157
61582009-11-17 Robert Millan <rmh.grub@aybabtu.com>
6159
6160 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
6161 from here ...
6162 * Makefile.in (CPPFLAGS): ... to here.
6163
61642009-11-16 Robert Millan <rmh.grub@aybabtu.com>
6165
6166 * aclocal.m4: Move from here ...
6167 * acinclude.m4: ... to here.
6168 * autogen.sh: Add call to `aclocal'.
6169 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
6170
61712009-11-16 Robert Millan <rmh.grub@aybabtu.com>
6172
6173 * Makefile.in (CLEANFILES): Add `po/*.mo'.
6174 (LINGUAS): New variable.
6175 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
6176 (install-local): Install MO files.
6177 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
6178 * include/grub/i18n.h: New file.
3bc7896c
RM
6179 * po/POTFILES: New file.
6180 * po/ca.po: New file.
769ae37b
RM
6181 * util/grub.d/10_linux.in (bindir): New variable.
6182 Add gettext initialization.
6183 (linux_entry): Make menuentry output translatable.
6184 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
6185 (usage): Make --help output translatable.
6186 (main): Initialize gettext.
6187
02c0a6ad
RM
61882009-11-17 Robert Millan <rmh.grub@aybabtu.com>
6189
6190 * import_gcry.py: New file (written by Vladimir with minor
6191 adjustments).
6192 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
6193 ciphers.
6194 * INSTALL: Document that Python is required for bootstrap.
6195
61962009-11-17 Robert Millan <rmh.grub@aybabtu.com>
6197
6198 Import ciphers from libgcrypt 1.4.4.
6199
6200 * lib/libgcrypt/cipher/ChangeLog
6201 * lib/libgcrypt/cipher/ac.c
6202 * lib/libgcrypt/cipher/arcfour.c
6203 * lib/libgcrypt/cipher/bithelp.h
6204 * lib/libgcrypt/cipher/blowfish.c
6205 * lib/libgcrypt/cipher/camellia-glue.c
6206 * lib/libgcrypt/cipher/camellia.c
6207 * lib/libgcrypt/cipher/camellia.h
6208 * lib/libgcrypt/cipher/cast5.c
6209 * lib/libgcrypt/cipher/cipher.c
6210 * lib/libgcrypt/cipher/crc.c
6211 * lib/libgcrypt/cipher/des.c
6212 * lib/libgcrypt/cipher/dsa.c
6213 * lib/libgcrypt/cipher/ecc.c
6214 * lib/libgcrypt/cipher/elgamal.c
6215 * lib/libgcrypt/cipher/hash-common.c
6216 * lib/libgcrypt/cipher/hash-common.h
6217 * lib/libgcrypt/cipher/hmac-tests.c
6218 * lib/libgcrypt/cipher/md.c
6219 * lib/libgcrypt/cipher/md4.c
6220 * lib/libgcrypt/cipher/md5.c
6221 * lib/libgcrypt/cipher/primegen.c
6222 * lib/libgcrypt/cipher/pubkey.c
6223 * lib/libgcrypt/cipher/rfc2268.c
6224 * lib/libgcrypt/cipher/rijndael-tables.h
6225 * lib/libgcrypt/cipher/rijndael.c
6226 * lib/libgcrypt/cipher/rmd.h
6227 * lib/libgcrypt/cipher/rmd160.c
6228 * lib/libgcrypt/cipher/rsa.c
6229 * lib/libgcrypt/cipher/seed.c
6230 * lib/libgcrypt/cipher/serpent.c
6231 * lib/libgcrypt/cipher/sha1.c
6232 * lib/libgcrypt/cipher/sha256.c
6233 * lib/libgcrypt/cipher/sha512.c
6234 * lib/libgcrypt/cipher/tiger.c
6235 * lib/libgcrypt/cipher/twofish.c
6236 * lib/libgcrypt/cipher/whirlpool.c
6237
af2f93ac
RM
62382009-11-16 Robert Millan <rmh.grub@aybabtu.com>
6239
6240 Fix build for systems without error().
6241
6242 * gnulib/error.c: New file (imported from Gnulib).
6243 * gnulib/error.h: Likewise.
6244 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
6245 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
6246 (this variable is now used by error()).
6247
73fb3dd5
FZ
62482009-11-16 Felix Zielcke <fzielcke@z-51.de>
6249
814f5e96
FZ
6250 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
6251 instead of relying that char is signed.
73fb3dd5 6252
a691ca33
VS
62532009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
6254
6255 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
6256 blocksize different from specified.
6257 (grub_pxefs_read): Likewise.
6258
2af8f0f4
FZ
62592009-11-16 Felix Zielcke <fzielcke@z-51.de>
6260
6261 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
6262
6263 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
6264 (grub_ata_readwrite): Likewise. Update 2 format strings.
6265 (grub_atapi_read): Likewise.
6266
6267 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
6268 * conf/i386.rmk (pkglib_MODULES): ... to here ...
6269 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
6270 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
6271 (ata_mod_LDFLAGS): Move from here ...
6272 * conf/i386.rmk: ... to here ...
6273 * conf/x86_64-efi.rmk: ... and here.
6274 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
6275 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
6276
83bdecaf
RM
62772009-11-16 Robert Millan <rmh.grub@aybabtu.com>
6278
6279 Relicense multiboot.h, with RMS' blessing.
6280
6281 * include/multiboot.h: Change to X11 license.
6282
fd6fd3d7
RM
62832009-11-15 Robert Millan <rmh.grub@aybabtu.com>
6284
6285 Support --version in grub-mkisofs.
6286
6287 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
6288 (OPTION_VERSION): New macro.
6289 (ld_options): Recognize --version.
6290 (usage): Move `program_name' from here ...
6291 (program_name): ... to here. Add `static' qualifier.
6292 (main): Recognize `OPTION_VERSION'.
6293
16a88c49
FZ
62942009-11-15 Felix Zielcke <fzielcke@z-51.de>
6295
6296 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
6297 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
6298
a4158476
RM
62992009-11-14 Robert Millan <rmh.grub@aybabtu.com>
6300
6301 Fix help2man generation for mkisofs.
6302
6303 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
6304 (usage): Send output to stdout (rather than stderr).
6305
fc2208b0
RM
63062009-11-14 Robert Millan <rmh.grub@aybabtu.com>
6307
6308 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
6309 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
6310 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
6311 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
6312 (bin_SCRIPTS): Add `grub-mkfloppy'.
6313 (grub_mkfloppy_SOURCES): New variable.
6314
6315 * util/grub-mkrescue.in: New file.
6316 * util/i386/pc/grub-mkfloppy.in: New file.
6317
6318 * util/i386/coreboot/grub-mkrescue.in: Remove.
6319 * util/i386/pc/grub-mkrescue.in: Remove.
6320
8d0edf4a
RM
63212009-11-13 Robert Millan <rmh.grub@aybabtu.com>
6322
6323 * include/grub/multiboot.h (struct grub_multiboot_header): Move
6324 from here ...
6325 * include/multiboot.h (struct multiboot_header): ... to here. Update
6326 all users.
6327 * include/grub/multiboot.h (struct grub_multiboot_info): Move
6328 from here ...
6329 * include/multiboot.h (struct multiboot_info): ... to here. Update
6330 all users.
6331 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
6332 from here ...
6333 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
6334 Update all users.
6335 * include/grub/multiboot.h (struct grub_mod_list): Move
6336 from here ...
6337 * include/multiboot.h (struct multiboot_mod_list): ... to here.
6338 Update all users.
6339
a73f5969
RM
63402009-11-13 Robert Millan <rmh.grub@aybabtu.com>
6341
6342 * include/multiboot2.h (multiboot_word): Rename from this ...
6343 (multiboot2_word): ... to this. Update all users.
6344 (multiboot_header): Rename from this ...
6345 (multiboot2_header): ... to this. Update all users.
6346 (multiboot_tag_header): Rename from this ...
6347 (multiboot2_tag_header): ... to this. Update all users.
6348 (multiboot_tag_start): Rename from this ...
6349 (multiboot2_tag_start): ... to this. Update all users.
6350 (multiboot_tag_name): Rename from this ...
6351 (multiboot2_tag_name): ... to this. Update all users.
6352 (multiboot_tag_module): Rename from this ...
6353 (multiboot2_tag_module): ... to this. Update all users.
6354 (multiboot_tag_memory): Rename from this ...
6355 (multiboot2_tag_memory): ... to this. Update all users.
6356 (multiboot_tag_unused): Rename from this ...
6357 (multiboot2_tag_unused): ... to this. Update all users.
6358 (multiboot_tag_end): Rename from this ...
6359 (multiboot2_tag_end): ... to this. Update all users.
6360
1c8927f0
RM
63612009-11-13 Robert Millan <rmh.grub@aybabtu.com>
6362
6363 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
6364 this platform we should support Multiboot1 first.
6365
6366 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
6367 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
6368 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
6369
6e1e0d89
RM
63702009-11-12 Robert Millan <rmh.grub@aybabtu.com>
6371
6372 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
6373 of write calls (converting them to fwrite() if they aren't already).
6374 (get_torito_desc): Likewise.
6375 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
6376
7f2b34d8
RM
63772009-11-12 Robert Millan <rmh.grub@aybabtu.com>
6378
6379 * util/i386/pc/grub-install.in: Move from here ...
6380 * util/grub-install.in: ... to here. Update all users.
6381
c0ef3311
CW
63822009-11-11 Colin Watson <cjwatson@ubuntu.com>
6383
6384 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
6385
e1f240ff
RM
63862009-11-11 Robert Millan <rmh.grub@aybabtu.com>
6387
6388 Support for El Torito without floppy emulation.
6389
6390 * util/mkisofs/eltorito.c: Include `<errno.h>'.
6391 (init_boot_catalog): Improve error handling.
6392 (get_torito_desc): Don't use floppy emulation unless requested by
6393 user. Patch boot information table when requested via
6394 `-boot-info-table'.
6395 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
6396 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
6397 (use_boot_info_table): New variables.
6398 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
6399 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
6400 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
6401 `--eltorito-emul-floppy'.
6402 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
6403 and `OPTION_ELTORITO_EMUL_FLOPPY'.
6404 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
6405 (use_boot_info_table, get_731): New prototypes.
6406 * util/mkisofs/write.c (get_731): New function.
6407
af7d4de5
FZ
64082009-11-11 Felix Zielcke <fzielcke@z-51.de>
6409
6410 Fix the generation of the man page.
6411
6412 * util/pc/i386/grub-install.in: Source
6413 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
6414
2c55dbc0
RM
64152009-11-11 Robert Millan <rmh.grub@aybabtu.com>
6416
6417 Large file support for grub-mkisofs.
6418
6419 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
6420 * util/mkisofs/mkisofs.c (next_extent, last_extent)
6421 (session_start): Upgrade type to `uint64_t'. Update all users.
6422 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
6423 (struct directory_entry): Upgrade type of `starting_block' and
6424 `size' to `uint64_t'. Update all users.
6425 (struct deferred): Remove unused structure.
6426 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
6427 Update all users.
6428 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
6429 file is larger than `UINT32_MAX'.
6430 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
6431 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
6432 return value.
6433 (struct deferred_write): Upgrade type of `extent' and `size' to
6434 `uint64_t'. Update all users.
6435 (last_extent_written): Upgrade type to `uint64_t'. Update all
6436 users.
6437 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
6438 Update all users. Upgrade type of `remain' to `int64_t' and
6439 `use' to `size_t'. Use error() to handle fread() errors.
6440 (write_files): Rely on write_one_file() rather than calling
6441 xfwrite() directly.
6442
6a9cead5
FZ
64432009-11-09 Felix Zielcke <fzielcke@z-51.de>
6444
6445 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
6446
4825d790
RM
64472009-11-09 Robert Millan <rmh.grub@aybabtu.com>
6448
6449 * util/mkisofs/fnmatch.c: Remove.
6450 * util/mkisofs/getopt1.c: Likewise.
6451 * util/mkisofs/getopt.c: Likewise.
6452 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
6453 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
6454 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
6455 `gnulib/getopt1.c' and `gnulib/getopt.c'.
6456 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
6457
6458 * configure.ac: Detect `mingw32msvc' host_os.
6459 Check for lstat(), getuid() and getgid().
6460
6461 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
6462 instances of `u_char' with `uint8_t'.
6463
6464 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
6465 [!HAVE_GETUID] (getuid): New function (stub).
6466 [!HAVE_GETGID] (getgid): Likewise.
6467 [!HAVE_LSTAT] (lstat): Likewise.
6468 [!S_IROTH] (S_IROTH): New macro (dummy).
6469 [!S_IRGRP] (S_IRGRP): Likewise.
6470
84b860d8
RM
64712009-11-09 Robert Millan <rmh.grub@aybabtu.com>
6472
6473 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
6474 conditional expression).
6475
66e9b712
RM
64762009-11-09 Robert Millan <rmh.grub@aybabtu.com>
6477
6478 Import from Gnulib.
6479
6480 * gnulib/fnmatch.c: New file.
6481 * gnulib/fnmatch.h: Likewise.
6482 * gnulib/fnmatch_loop.c: Likewise.
6483 * gnulib/getopt.c: Likewise.
6484 * gnulib/getopt.h: Likewise.
6485 * gnulib/getopt1.c: Likewise.
6486 * gnulib/getopt_int.h: Likewise.
6487 * gnulib/gettext.h: Likewise.
6488
34f4a5b0
RM
64892009-11-09 Robert Millan <rmh.grub@aybabtu.com>
6490
6491 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
6492 * normal/handler.c (read_handler_list): Likewise.
6493
ac451143
RM
64942009-11-09 Robert Millan <rmh.grub@aybabtu.com>
6495
6496 Misc cleanup.
6497
6498 * kern/command.c (grub_register_command_prio): Use
6499 grub_zalloc() instead of explicitly zeroing data.
6500 * kern/list.c: Include `<grub/mm.h>'.
6501 (grub_named_list_find): Replace `0' with `NULL'.
6502 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
6503 (fs_module_list): Change type to `grub_named_list_t'. Update all
6504 users.
6505 * normal/dyncmd.c (read_command_list): Add space between function
6506 call and parenthesis.
6507 * normal/handler.c (read_handler_list): Likewise.
6508
4089b167
RM
65092009-11-09 Robert Millan <rmh.grub@aybabtu.com>
6510
6511 * normal/auth.c (punishment_delay): Moved from here ...
6512 (grub_auth_strcmp): ... to here (inside function).
6513
325f5037
RM
65142009-11-09 Robert Millan <rmh.grub@aybabtu.com>
6515
6516 * include/grub/list.h (struct grub_named_list): Remove `const'
6517 qualifier from `name'.
6518 (struct grub_prio_list): Likewise.
6519
7aea29a3
RM
65202009-11-09 Robert Millan <rmh.grub@aybabtu.com>
6521
6522 * normal/auth.c: Include `<grub/time.h>'.
6523 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
6524
3fd6f044
RM
65252009-11-09 Robert Millan <rmh.grub@aybabtu.com>
6526
6527 * normal/auth.c (punishment_delay): New variable.
6528 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
6529 (grub_auth_check_authentication): Punish failed login attempts with
6530 an incremental (2^N) delay.
6531
a4cd68e4
RM
65322009-11-09 Robert Millan <rmh.grub@aybabtu.com>
6533
6534 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
6535 path with $(srcdir).
6536
7ad12f43
VS
65372009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
6538
6539 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
6540
c1129f03
RM
65412009-11-09 Robert Millan <rmh.grub@aybabtu.com>
6542
6543 * util/i386/coreboot/grub-mkrescue.in: New file.
6544 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
6545 variables.
6546
6547 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
6548 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
6549 * configure.ac: Add header and function checks to satisfy grub-mkisofs
6550 requirements.
6551 * util/mkisofs/defaults.h: New file.
6552 * util/mkisofs/eltorito.c: Likewise.
6553 * util/mkisofs/exclude.h: Likewise.
6554 * util/mkisofs/fnmatch.c: Likewise.
6555 * util/mkisofs/getopt.c: Likewise.
6556 * util/mkisofs/getopt1.c: Likewise.
6557 * util/mkisofs/hash.c: Likewise.
6558 * util/mkisofs/include/fctldefs.h: Likewise.
6559 * util/mkisofs/include/mconfig.h: Likewise.
6560 * util/mkisofs/include/prototyp.h: Likewise.
6561 * util/mkisofs/include/statdefs.h: Likewise.
6562 * util/mkisofs/iso9660.h: Likewise.
6563 * util/mkisofs/joliet.c: Likewise.
6564 * util/mkisofs/match.c: Likewise.
6565 * util/mkisofs/match.h: Likewise.
6566 * util/mkisofs/mkisofs.c: Likewise.
6567 * util/mkisofs/mkisofs.h: Likewise.
6568 * util/mkisofs/multi.c: Likewise.
6569 * util/mkisofs/name.c: Likewise.
6570 * util/mkisofs/rock.c: Likewise.
6571 * util/mkisofs/tree.c: Likewise.
6572 * util/mkisofs/write.c: Likewise.
6573
ec8bb77d
VS
65742009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
6575
6576 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
6577 being insecure.
6578
3716b12c
RM
65792009-11-08 Robert Millan <rmh.grub@aybabtu.com>
6580
6581 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
6582 `grub-mkimage' (and use $0 when possible).
6583
b97b7b91
RM
65842009-11-08 Robert Millan <rmh.grub@aybabtu.com>
6585
6586 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
6587 error message for excessively large memory map.
6588
04114812
RM
65892009-11-08 Robert Millan <rmh.grub@aybabtu.com>
6590
6591 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
6592 executable bit.
6593
e4eb2373
RM
65942009-11-08 Robert Millan <rmh.grub@aybabtu.com>
6595
6596 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
6597 message for coreboot users.
6598
c926e1d5 65992009-11-07 Robert Millan <rmh.grub@aybabtu.com>
6600
6601 Fix build with GNU gold.
6602
6603 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
6604 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
6605 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
6606 link addresses.
6607 * aclocal.m4: Likewise.
6608
86e5b1db 66092009-11-04 Felix Zielcke <fzielcke@z-51.de>
6610
6611 * configure.ac (AC_PREREQ): Bump to 2.59d.
6612 * INSTALL: Make it more clear when Autoconf and Ruby are
6613 needed and when to run `./autogen.sh'.
6614
246cd78f 66152009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
6616
6617 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
6618 OSes.
6619
4f9dfb37 66202009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
6621
6622 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
6623
b82bd5e1 66242009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
6625
6626 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
6627 giving it to GNU Mach.
6628
ff1a9bca 66292009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
6630
6631 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
6632 GNU partition number to get internal GRUB partition number.
6633
61697d9c 66342009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
6635
6636 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
6637 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
6638
a50569e1 66392009-11-01 Robert Millan <rmh.grub@aybabtu.com>
6640
6641 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
6642 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
6643 case.
6644
5b153867 66452009-11-01 Felix Zielcke <fzielcke@z-51.de>
6646
6647 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
6648
d9e2cd70 66492009-10-30 Robert Millan <rmh.grub@aybabtu.com>
6650
6651 Fix build problem.
6652
6653 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
6654 `-isystem=$(srcdir)/include'.
6655
805111a4 66562009-10-30 Robert Millan <rmh.grub@aybabtu.com>
6657
6658 * util/i386/pc/grub-install.in: Remove hint that device.map should be
6659 checked (grub-install doesn't currently rely on it).
6660
fa6e945f 66612009-10-29 Robert Millan <rmh.grub@aybabtu.com>
6662
6663 Revert SVN r2660.
6664
6665 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
6666 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
6667 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
6668 * conf/i386-ieee1275.rmk: Likewise.
6669 * conf/i386-pc.rmk: Likewise.
6670 * conf/powerpc-ieee1275.rmk: Likewise.
6671 * conf/sparc64-ieee1275.rmk: Likewise.
6672 * conf/x86_64-efi.rmk: Likewise.
6673
cee15086 66742009-10-28 Robert Millan <rmh.grub@aybabtu.com>
6675
6676 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
6677
95b9239e 66782009-10-28 Robert Millan <rmh.grub@aybabtu.com>
6679
6680 * include/grub/misc.h: Stop checking for APPLE_CC.
6681
2ed19dfd 66822009-10-28 Robert Millan <rmh.grub@aybabtu.com>
6683
6684 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
6685 doesn't cause an infinite call loop.
6686
fdcdde19 66872009-10-28 Felix Zielcke <fzielcke@z-51.de>
6688
6689 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
6690 strings.
6691
cefabfe1 66922009-10-26 Robert Millan <rmh.grub@aybabtu.com>
6693
6694 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
6695 variable.
6696 * Makefile.in: Likewise.
6697
ed96ab6d 66982009-10-26 Robert Millan <rmh.grub@aybabtu.com>
6699
6700 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
6701
0579b753 67022009-10-26 Robert Millan <rmh.grub@aybabtu.com>
6703
6704 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
6705
478df409 67062009-10-26 Robert Millan <rmh.grub@aybabtu.com>
6707
6708 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
6709
083d1679 67102009-10-26 Robert Millan <rmh.grub@aybabtu.com>
6711
6712 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
6713 from here ...
6714 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
6715
5947ae32 67162009-10-26 Robert Millan <rmh.grub@aybabtu.com>
6717
6718 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
6719 in $(MAKEINFO) invocation. This makes it clear in output that
6720 errors are being ignored.
6721
94180ff6 67222009-10-26 Robert Millan <rmh.grub@aybabtu.com>
6723
6724 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
6725 from here ...
6726 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
6727 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
6728 * conf/i386-ieee1275.rmk: Likewise.
6729 * conf/i386-pc.rmk: Likewise.
6730 * conf/powerpc-ieee1275.rmk: Likewise.
6731 * conf/sparc64-ieee1275.rmk: Likewise.
6732 * conf/x86_64-efi.rmk: Likewise.
6733
9031b03a 67342009-10-26 Colin Watson <cjwatson@ubuntu.com>
6735
6736 * util/grub-editenv.c (main): If only a command is given, use
6737 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
6738 (usage): FILENAME is now optional and has a default.
6739
e4f6809b 67402009-10-26 Colin Watson <cjwatson@ubuntu.com>
6741
6742 Improve grub-mkconfig performance when there are several menu
6743 entries on a single filesystem.
6744
6745 * util/grub.d/10_linux.in (linux_entry): Cache the output of
6746 prepare_grub_to_access_device.
6747 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
6748 * util/grub.d/30_os-prober.in: Likewise.
6749
67937d4d 67502009-10-26 Robert Millan <rmh.grub@aybabtu.com>
6751
6752 * util/grub.d/10_freebsd.in: Remove.
6753 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
6754 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
6755
ee3756cc 67562009-10-26 Robert Millan <rmh.grub@aybabtu.com>
6757
5c35048e 6758 * docs/grub.cfg: Fix example usage of *BSD loaders.
ee3756cc 6759
4dea1c6f 67602009-10-25 Robert Millan <rmh.grub@aybabtu.com>
6761
6762 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
6763 grub_util_error() call.
6764
042484d7 67652009-10-25 Robert Millan <rmh.grub@aybabtu.com>
6766
6767 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
6768 `reserved_first_sector' member.
6769 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
6770 `reserved_first_sector' to 1.
6771 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
6772 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
6773 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
6774 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
6775 filesystems which begin at first sector.
6776 (options): New option --skip-fs-probe.
6777 (main): Handle --skip-fs-probe and pass it to setup().
6778
d64448a7 67792009-10-25 Robert Millan <rmh.grub@aybabtu.com>
6780
6781 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
6782 (memset): Fix function prototype.
6783
508d42ec 67842009-10-25 Robert Millan <rmh.grub@aybabtu.com>
67852009-10-25 Vasily Averin <vvs@parallels.com>
6786
6787 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
6788 `dirent.direntlen == 0'.
6789
b240e30c 67902009-10-25 Robert Millan <rmh.grub@aybabtu.com>
6791
6792 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
6793 `cpio'.
6794 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
6795
346e7fbe 67962009-10-25 Robert Millan <rmh.grub@aybabtu.com>
6797
6798 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
6799 `__trampoline_setup' and `__ucmpdi2'.
6800 * include/grub/powerpc/libgcc.h: Only export symbols for functions
6801 that libgcc provides.
6802
cdb308b0 68032009-10-25 Robert Millan <rmh.grub@aybabtu.com>
6804
6805 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
6806 * include/grub/sparc64/libgcc.h (memset): Likewise.
6807 * include/grub/misc.h (memset, memcmp): New function prototypes.
6808
fb26abc2 68092009-10-25 Robert Millan <rmh.grub@aybabtu.com>
6810
6811 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
6812 `cpio'.
6813 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
6814
f6693890 68152009-10-25 Robert Millan <rmh.grub@aybabtu.com>
6816
6817 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
6818 * docs/grub.cfg: Compensate for recent change in multiboot
6819 loader (since 2009-08-14 it won't pass filename to payload).
6820 * util/grub.d/10_hurd.in: Likewise.
6821
0933cdc0 68222009-10-21 Felix Zielcke <fzielcke@z-51.de>
6823
6824 * config.guess: Update to latest version from config git
6825 repository.
6826 * config.sub: Likewise.
6827
3b2fe8c2 68282009-10-20 Robert Millan <rmh.grub@aybabtu.com>
6829
6830 Fix build on sparc64.
6831
6832 * configure.ac: Perform checks for libgcc symbols before
6833 adding `-nostdlib' to LDFLAGS.
6834
46695a62 68352009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
6836
6837 Let user specify OpenBSD root device.
6838
6839 * loader/i386/bsd.c (openbsd_root): New variable.
6840 (openbsd_opts): New option 'root'.
6841 (OPENBSD_ROOT_ARG): New macro.
6842 (grub_openbsd_boot): Use 'openbsd_root'.
6843 (grub_cmd_openbsd): Fill 'openbsd_root'.
6844
d2b6b7fc 68452009-10-16 Robert Millan <rmh.grub@aybabtu.com>
6846
6847 * NEWS: Misc adjustments.
6848
421bd7ac 68492009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
6850
6851 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
6852
f1d29d87 68532009-10-16 Robert Millan <rmh.grub@aybabtu.com>
6854
6855 * configure.ac: Bump version to 1.97.
6856
6f3cd880 68572009-10-16 Colin Watson <cjwatson@ubuntu.com>
6858
6859 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
6860 -mno-3dnow on x86 architectures. Some toolchains enable these
6861 features by default, but they rely on registers that aren't enabled
6862 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
6863
035f7122 68642009-10-15 Robert Millan <rmh.grub@aybabtu.com>
6865
6866 Make entry text a bit more readable.
6867
6868 * util/grub.d/10_linux.in: Add `with' before `Linux'.
6869
44998e58 68702009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
6871
6872 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
6873
cd2851b3 68742009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
6875
6876 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
6877 operations.
6878
c6f3b249 68792009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
6880
6881 * configure.ac: Add missing dollar.
6882
6b5886ba 68832009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
6884
6885 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
6886
6887 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
6888 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
6889 exports.
6890 * include/grub/sparc64/libgcc.h: Likewise. Use
6891 preprocessor conditionals.
6892
e9d66f6d 68932009-10-14 Robert Millan <rmh.grub@aybabtu.com>
6894
6895 * conf/common.rmk (grub-dumpbios): Remove rule.
6896 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
6897 * util/grub-dumpbios.in: Remove file.
6898
9155bc17 68992009-10-14 Robert Millan <rmh.grub@aybabtu.com>
6900
6901 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
6902 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
6903
6904 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
6905 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
6906 users.
6907
6908 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
6909 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
6910 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
6911 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
6912 users.
6913
bf7f7a18 69142009-10-12 Robert Millan <rmh.grub@aybabtu.com>
6915
6916 * term/tparm.c: Switch to GPLv3.
6917
86564c26 69182009-10-09 Robert Millan <rmh.grub@aybabtu.com>
6919
6920 * include/grub/i386/cpuid.h: Add header protection.
6921
5c936493 69222009-10-09 Robert Millan <rmh.grub@aybabtu.com>
6923
6924 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
6925
6926 * include/grub/i386/cpuid.h: New file.
6927 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
6928 (has_longmode): Rename to ...
6929 (grub_cpuid_has_longmode): ... this. Update all users. Remove
6930 `static' attribute.
6931 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
6932 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
6933 on a CPU that doesn't implement AMD64 instruction set.
6934
186e7cf2 69352009-10-06 Colin Watson <cjwatson@ubuntu.com>
6936
6937 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
6938 that version.texi is rebuilt on version number changes.
6939
83b65c4a 69402009-10-06 Colin Watson <cjwatson@ubuntu.com>
6941
6942 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
6943 Fixes bug #27602.
6944
d244281c 69452009-10-06 Colin Watson <cjwatson@ubuntu.com>
6946
6947 * util/i386/pc/grub-install.in: Source
6948 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
6949 that the --grub-probe option will work.
6950 * util/sparc64/ieee1275/grub-install.in: Likewise.
6951
da25306d 69522009-10-05 Robert Millan <rmh.grub@aybabtu.com>
6953
6954 * configure.ac: Bump version to 1.97~beta4.
6955
e8ee83c0 69562009-10-03 Robert Millan <rmh.grub@aybabtu.com>
6957
6958 Resync grub-mkdevicemap in x86_64-efi.
6959
6960 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
6961 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
6962 `util/devicemap.c'.
6963
50dcabcf 69642009-10-01 Colin Watson <cjwatson@ubuntu.com>
6965
6966 * util/grub-editenv.c (create_envblk_file): Write new block with a
6967 .new suffix and then rename it into place, to ensure atomic
6968 creation.
6969
0e51c3a7 69702009-09-28 Robert Millan <rmh.grub@aybabtu.com>
6971
6972 Do not automatically install headers.
6973
6974 * Makefile.in (include_DATA): Remove. Update all users.
6975
31299a95 69762009-09-26 Robert Millan <rmh.grub@aybabtu.com>
6977
6978 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
6979 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
6980
6981 * util/osdetect.lua: Remove.
6982 * script/lua/lauxlib.c: Likewise.
6983 * script/lua/ldebug.c: Likewise.
6984 * script/lua/grub_main.c: Likewise.
6985 * script/lua/lauxlib.h: Likewise.
6986 * script/lua/ldebug.h: Likewise.
6987 * script/lua/ltablib.c: Likewise.
6988 * script/lua/liolib.c: Likewise.
6989 * script/lua/lstrlib.c: Likewise.
6990 * script/lua/lualib.h: Likewise.
6991 * script/lua/ldo.c: Likewise.
6992 * script/lua/ldump.c: Likewise.
6993 * script/lua/ldo.h: Likewise.
6994 * script/lua/loslib.c: Likewise.
6995 * script/lua/lundump.c: Likewise.
6996 * script/lua/grub_lib.c: Likewise.
6997 * script/lua/ldblib.c: Likewise.
6998 * script/lua/lundump.h: Likewise.
6999 * script/lua/lmem.c: Likewise.
7000 * script/lua/grub_lib.h: Likewise.
7001 * script/lua/lmathlib.c: Likewise.
7002 * script/lua/lstate.c: Likewise.
7003 * script/lua/ltm.c: Likewise.
7004 * script/lua/lvm.c: Likewise.
7005 * script/lua/lmem.h: Likewise.
7006 * script/lua/lstate.h: Likewise.
7007 * script/lua/ltm.h: Likewise.
7008 * script/lua/ltable.c: Likewise.
7009 * script/lua/lvm.h: Likewise.
7010 * script/lua/llex.c: Likewise.
7011 * script/lua/lgc.c: Likewise.
7012 * script/lua/grub_lua.h: Likewise.
7013 * script/lua/loadlib.c: Likewise.
7014 * script/lua/lfunc.c: Likewise.
7015 * script/lua/lopcodes.c: Likewise.
7016 * script/lua/lparser.c: Likewise.
7017 * script/lua/ltable.h: Likewise.
7018 * script/lua/llex.h: Likewise.
7019 * script/lua/lgc.h: Likewise.
7020 * script/lua/lfunc.h: Likewise.
7021 * script/lua/lbaselib.c: Likewise.
7022 * script/lua/lopcodes.h: Likewise.
7023 * script/lua/lparser.h: Likewise.
7024 * script/lua/lzio.c: Likewise.
7025 * script/lua/linit.c: Likewise.
7026 * script/lua/lobject.c: Likewise.
7027 * script/lua/llimits.h: Likewise.
7028 * script/lua/lstring.c: Likewise.
7029 * script/lua/lzio.h: Likewise.
7030 * script/lua/lapi.c: Likewise.
7031 * script/lua/lcode.c: Likewise.
7032 * script/lua/lua.h: Likewise.
7033 * script/lua/lobject.h: Likewise.
7034 * script/lua/lstring.h: Likewise.
7035 * script/lua/lapi.h: Likewise.
7036 * script/lua/lcode.h: Likewise.
7037 * script/lua/luaconf.h: Likewise.
7038
cb8a2c38 70392009-09-26 Colin Watson <cjwatson@ubuntu.com>
7040
7041 * docs/grub.texi (Command-line and menu entry commands): Document
7042 date and echo commands.
7043
6b9b6276 70442009-09-24 Pavel Roskin <proski@gnu.org>
7045
7046 * include/grub/kernel.h (struct grub_module_header): Remove
7047 `grub_module_header_types'. Make `type' unsigned. Make `size'
7048 32-bit on all platforms.
7049 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
7050 8-bit field. Use grub_host_to_target32() for `size'.
7051 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
7052 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
7053 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
7054
4e5a02a7 70552009-09-24 Robert Millan <rmh.grub@aybabtu.com>
7056
7057 Fix "lost keypress" bug in at_keyboard.
7058
7059 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
7060 Checks for readyness of input buffer (without flushing it).
7061 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
7062 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
7063
c6dcedf6 70642009-09-24 Robert Millan <rmh.grub@aybabtu.com>
7065
7066 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
7067 size check within GRUB_MACHINE_PCBIOS section.
7068
74c958b1 70692009-09-24 Robert Millan <rmh.grub@aybabtu.com>
7070
7071 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
7072 return value.
7073 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
7074 KEYBOARD_ISREADY check.
7075 (grub_at_keyboard_checkkey): Rename to ...
7076 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
7077 Remove gratuitous cast.
7078
ff420223 70792009-09-23 Colin Watson <cjwatson@ubuntu.com>
7080
7081 * configure.ac: Call AC_PROG_MKDIR_P.
7082 * Makefile.in (docs/stamp-vti): Create docs directory. Create
7083 version.texi in $(builddir) rather than $(srcdir).
7084 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
7085 to makeinfo's @include search path.
7086
d96875df 70872009-09-23 Felix Zielcke <fzielcke@z-51.de>
7088
7089 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
7090
9b3f8365 70912009-09-23 Felix Zielcke <fzielcke@z-51.de>
7092
7093 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
7094 for `*.dpkg-new'.
7095
c44c90db 70962009-09-21 Colin Watson <cjwatson@ubuntu.com>
7097
7098 Build info documentation. Some code borrowed from Automake.
7099
7100 * configure.ac: Check for makeinfo.
7101 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
7102 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
7103 docs/version.texi.
7104 (MOSTLYCLEANFILES): Add vti.tmp.
7105 (docs/version.texi, docs/stamp-vti): Update automatically.
7106 (docs/grub.info): Build info documentation. Use --force and ignore
7107 errors for now.
7108 (all-local): Add $(INFOS).
7109 (install-local): Install info files.
7110 (uninstall): Uninstall info files.
7111 * docs/version.texi: Remove from revision control. This file is
7112 automatically generated on build now.
7113 * gendistlist.sh: Add `*.info'.
7114
e0b37bb5 71152009-09-21 Felix Zielcke <fzielcke@z-51.de>
7116
7117 * kern/term.c: Fix indentation.
7118
5a78865b 71192009-09-21 Felix Zielcke <fzielcke@z-51.de>
7120
7121 * util/hostdisk.c: Fix a comment.
7122
dace7e8a 71232009-09-20 Robert Millan <rmh.grub@aybabtu.com>
7124
7125 Fix regression introduced in r2539.
7126
7127 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
7128 to 0xA1.
7129
a83d079b 71302009-09-19 Colin Watson <cjwatson@ubuntu.com>
7131
7132 * util/grub.d/30_os-prober.in: Don't throw away stderr from
4cbbccec 7133 os-prober. Under normal operation, it does not print anything to
7134 stderr; if it does, we need to debug it, and throwing away stderr
7135 makes that excessively difficult.
a83d079b 7136
be94a509 71372009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
7138
7139 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
7140
63f745e8 71412009-09-16 Robert Millan <rmh.grub@aybabtu.com>
7142
7143 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
7144 AC_LANG_PROGRAM from autoconf.
7145 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
7146 prototypes (fixes warning).
7147
7148 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
7149 `--disable-werror' was used.
7150
bbb2a70f 71512009-09-16 Robert Millan <rmh.grub@aybabtu.com>
7152
7153 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
7154 uninitialized `lastaddr'.
7155
77c24f1d 71562009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
7157
0f0b8c87 7158 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
77c24f1d 7159
07197f23 71602009-09-14 Colin Watson <cjwatson@ubuntu.com>
7161
7162 * commands/test.c (get_fileinfo): Return immediately if
7163 grub_fs_probe fails.
7164
dabf1798 71652009-09-14 José Martínez <xosemp@gmail.com>
7166
7167 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
7168
d52109a7 71692009-09-14 Colin Watson <cjwatson@ubuntu.com>
7170
7171 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
7172 output.
7173
56532179 71742009-09-13 Robert Millan <rmh.grub@aybabtu.com>
7175
7176 * configure.ac: Remove --enable-grub-pe2elf. Only build
7177 grub-pe2elf when needed by the build system itself.
7178 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
7179
8ef070f5 71802009-09-12 Robert Millan <rmh.grub@aybabtu.com>
7181
7182 * configure.ac: Bump version to 1.97~beta3.
7183 * docs/version.texi: Likewise.
7184
61229557 71852009-09-12 Robert Millan <rmh.grub@aybabtu.com>
7186
7187 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
7188 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
7189 from here ...
7190 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
7191 (grub_linux_setup_video): ... to here (with some adjustments).
7192
5c9f8d84 71932009-09-12 Robert Millan <rmh.grub@aybabtu.com>
7194
7195 Fix memory corruption issue (spotted by Colin Watson).
7196
7197 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
7198 causing returned size to be stored in an incorrect memory location.
7199 Fix use of uninitialized value when storing the returned size.
7200
e8f5d6e9 72012009-09-12 Yves Blusseau <blusseau@zetam.org>
7202
7203 Change clean rules to properly remove files
7204
7205 * genmk.rb: add new clean rules
7206 * Makefile.in (clean): add the new targets
7207 (mostlyclean): likewise
7208
cda2a409 72092009-09-11 Colin Watson <cjwatson@ubuntu.com>
7210
7211 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
7212 to grub_uint64_t.
7213 * fs/ntfs.c (init_file): Understand 64-bit sizes for
7214 non-resident files.
7215
86695375 72162009-09-11 Colin Watson <cjwatson@ubuntu.com>
7217
7218 * configure.ac: Don't look for help2man when cross-compiling. Fixes
7219 part of bug #27349.
7220
8aa1541a 72212009-09-10 Felix Zielcke <fzielcke@z-51.de>
7222
7223 * util/grub-mkconfig.in: Make the created config mode 400 and
7224 print a warning if it fails.
7225
48d9bb0a 72262009-09-10 Robert Millan <rmh.grub@aybabtu.com>
7227
7228 * util/grub.d/40_custom.in: Ask user to type custom entries below
7229 comment, rather than below 'exec tail' line.
7230
3b0521be 72312009-09-10 Colin Watson <cjwatson@ubuntu.com>
7232
7233 * util/grub.d/40_custom.in: Make sure that the explanatory text is
7234 visible in grub.cfg.
7235
50051d55 72362009-09-10 Colin Watson <cjwatson@ubuntu.com>
7237
7238 * util/grub.d/40_custom.in: Make it a little clearer how to use this
7239 file.
7240
c0d34387 72412009-09-10 Felix Zielcke <fzielcke@z-51.de>
7242
7243 * docs/grub.cfg: Add an example menu entry for memtest86+.
7244
80a608f3 72452009-09-09 Felix Zielcke <fzielcke@z-51.de>
7246
a2094832 7247 * config.guess: Update to latest version from config git.
80a608f3 7248 * config.sub: Likewise.
7249
99423078 72502009-09-08 Colin Watson <cjwatson@ubuntu.com>
7251
7252 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
7253 unknown-command case. Fixes bug #27320.
7254
44454e4c 72552009-09-08 Felix Zielcke <fzielcke@z-51.de>
7256
7257 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
7258 `help' if the command exists.
7259
e30d87ad 72602009-09-06 Robert Millan <rmh.grub@aybabtu.com>
7261
7262 * INSTALL: Require GCC 4.1.3 or later.
7263
9a86f1ec 72642009-09-06 Yves Blusseau <blusseau@zetam.org>
7265
7266 * Makefile.in (RMKFILES): add i386-qemu.rmk
7267 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
7268 $(srcdir)/stamp-h.in
7269
7f26d466 72702009-09-05 Robert Millan <rmh.grub@aybabtu.com>
7271
7272 * util/grub-probe.c (probe): Comment out buggy codepath, which
7273 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
7274 should be re-enabled after 1.97.
7275
3a613259 72762009-09-05 Felix Zielcke <fzielcke@z-51.de>
7277
7278 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
7279 find searches for.
7280
197f76c7 72812009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
7282
7283 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
7284 unnecessary calls to grub_error.
7285
70ba68ce 72862009-09-04 Colin Watson <cjwatson@ubuntu.com>
7287
7288 * NEWS: Mention `keystatus' and Unicode fonts.
7289
4ff0d7a4 72902009-09-04 Robert Millan <rmh.grub@aybabtu.com>
7291
7292 * configure.ac: Bump version to 1.97~beta2.
7293 * docs/version.texi: Likewise.
7294
77c55a87 72952009-09-03 Colin Watson <cjwatson@ubuntu.com>
7296
7297 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
7298 containing unwind information in some cases where it previously did
7299 not. Use -fno-dwarf2-cfi-asm if available to restore the old
7300 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
7301 discussion.
7302
f79572cd 73032009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
7304
7305 Embedding loadenv module into grub-emu
7306
7307 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
7308 commands/loadenv.c
7309 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
7310 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
7311 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
7312 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
7313 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
7314 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
7315
93a81088 73162009-09-03 Magnus Granberg <zorry@ume.nu>
7317
7318 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
7319 include -fPIE in the default specs.
7320 * configure.ac: Check if pie_possible is yes and add -fno-PIE
7321 to TARGET_CFLAGS.
7322
160034b2 73232009-09-03 Felix Zielcke <fzielcke@z-51.de>
7324
7325 * INSTALL: Note that GNU Bison 2.3 or later is required.
7326
087c07c4 73272009-09-03 Colin Watson <cjwatson@ubuntu.com>
7328
7329 * kern/i386/pc/startup.S: Fix typo.
7330
cbf978c0 73312009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
7332
7333 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
7334 according to GCS.
7335
73362009-09-02 Colin Watson <cjwatson@ubuntu.com>
f0910644 7337
7338 * docs/grub.texi (Naming convention): Describe one-based partition
7339 numbering.
7340 (Device syntax): Likewise.
7341 (File name syntax): Likewise.
7342 (Block list syntax): Likewise.
7343 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
7344 menu.lst.
7345 (File name syntax): Likewise.
7346 (Command-line and menu entry commands): Document acpi, blocklist,
7347 crc, export, insmod, keystatus, ls, set, and unset commands.
7348
f3e8cdfd 73492009-09-02 Colin Watson <cjwatson@ubuntu.com>
7350
7351 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
7352 to avoid implying that only one of --shift, --ctrl, or --alt may be
7353 used.
7354
c0bc232b 73552009-09-02 Colin Watson <cjwatson@ubuntu.com>
7356
7357 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
7358 rather than comparing against S_IFREG, which will almost never work.
7359
aa0f752d 73602009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
7361
7362 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
7363 (write_blocklists): Likewise.
7364
ecb3166a 73652009-09-01 Colin Watson <cjwatson@ubuntu.com>
7366
7367 * script/lua/grub_lua.h (fputs): Supply a format string as the first
7368 argument to grub_printf.
7369
c403a125 73702009-09-01 Felix Zielcke <fzielcke@z-51.de>
31aba781 7371
7372 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
c403a125 7373 non GNU test.
31aba781 7374
b5e7312c 73752009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
7376
7377 * kern/file.c (grub_file_read): Spelling fix
7378
fe00f472 73792009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
7380
7381 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
7382 loading of headers in some cases.
7383
cc55302e 73842009-08-30 Robert Millan <rmh.grub@aybabtu.com>
7385
7386 * configure.ac: Bump version to 1.97~beta1.
7387 * docs/version.texi: Likewise.
7388
5c90cdd2 73892009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
64bf71d0 7390
7391 * include/grub/i386/xnu.h: Add license header.
7392 include grub/err.h explicitly.
7393
c90edae4 73942009-08-29 Robert Millan <rmh.grub@aybabtu.com>
7395
7396 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
7397 to `ufs' in the vfs.root.mountfrom kernel parameter.
7398
d8888b5c 73992009-08-29 Robert Millan <rmh.grub@aybabtu.com>
7400
7401 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
7402
7403 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
7404 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
7405
7406 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
7407 `ARRAY_SIZE' macro.
7408
6f07b921 74092009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
7410
7411 * kern/file.c (grub_file_read): Check offset.
7412 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
7413 * fs/jfs.c (grub_jfs_read_file): Likewise.
7414 * fs/ntfs.c (grub_ntfs_read): Likewise.
7415 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
7416 * fs/minix.c (grub_minix_read_file): Correct offset check.
7417 * fs/ufs.c (grub_ufs_read_file): Likewise.
7418
b4f34077 74192009-08-28 Colin Watson <cjwatson@ubuntu.com>
7420
7421 * term/i386/pc/console.c (bios_data_area): Cast
7422 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
7423
e7c69859 74242009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
7425
7426 1-bit optimised blitters.
7427
7428 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
7429 prototype.
7430 (grub_video_fbblit_replace_24bit_1bit): Likewise.
7431 (grub_video_fbblit_replace_16bit_1bit): Likewise.
7432 (grub_video_fbblit_replace_8bit_1bit): Likewise.
7433 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
7434 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
7435 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
7436 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
7437 function.
7438 (grub_video_fbblit_replace_24bit_1bit): Likewise.
7439 (grub_video_fbblit_replace_16bit_1bit): Likewise.
7440 (grub_video_fbblit_replace_8bit_1bit): Likewise.
7441 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
7442 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
7443 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
7444 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
7445 when possible.
7446 * video/video.c (grub_video_get_blit_format): Return
7447 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
7448
a57da43f 74492009-08-28 Colin Watson <cjwatson@ubuntu.com>
7450
7451 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
7452 the first argument to grub_printf.
7453
4cbe67e5 74542009-08-28 Colin Watson <cjwatson@ubuntu.com>
74552009-08-28 Robert Millan <rmh.grub@aybabtu.com>
7456
7457 Add `getkeystatus' terminal method. Add a new `keystatus' command
7458 to query it.
7459
7460 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
7461 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
7462 modifier key bitmasks.
7463 (struct grub_term_input): Add `getkeystatus' member.
7464 (grub_getkeystatus): Add prototype.
7465 * kern/term.c (grub_getkeystatus): New function.
7466
7467 * include/grub/i386/pc/memory.h
7468 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
7469 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
7470 Data Area layout.
7471 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
7472 (grub_console_term_input): Set `getkeystatus' member.
7473 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
7474 constants.
7475 (grub_usb_keyboard_getreport): Likewise.
7476 (grub_usb_keyboard_checkkey): Likewise.
7477 (grub_usb_keyboard_getkeystatus): New function.
7478 (grub_usb_keyboard_term): Set `getkeystatus' member.
7479
7480 * commands/keystatus.c: New file.
7481 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
7482 (keystatus_mod_SOURCES): New variable.
7483 (keystatus_mod_CFLAGS): Likewise.
7484 (keystatus_mod_LDFLAGS): Likewise.
7485 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
7486 commands/keystatus.c.
7487 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
7488 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
7489 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
7490 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
7491 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
7492 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
4cbe67e5 7493
6e2a9085 74942009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
7495
7496 Split befs.mod and afs.mod into *_be.mod and *.mod
7497
7498 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
7499 (grub_fstest_SOURCES): Likewise.
7500 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
7501 (afs_be_mod_SOURCES): New variable.
7502 (afs_be_mod_CFLAGS): Likewise.
7503 (afs_be_mod_LDFLAGS): Likewise.
7504 (befs_be_mod_SOURCES): Likewise.
7505 (befs_be_mod_CFLAGS): Likewise.
7506 (befs_be_mod_LDFLAGS): Likewise.
7507 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
7508 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
7509 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
7510 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
7511 (grub_emu_SOURCES): Likewise.
7512 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
7513 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
7514 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
7515 * fs/afs_be.c: New file.
7516 * fs/befs_be.c: New file.
7517 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
7518 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
7519 (U16): Replaced with ...
7520 (grub_afs_to_cpu16): ...this. All users updated.
7521 (U32): Replaced with ...
7522 (grub_afs_to_cpu32): ...this. All users updated.
7523 (U64): Replaced with ...
7524 (grub_afs_to_cpu64): ...this. All users updated.
7525 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
7526 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
ad8ea1f4 7527 (grub_afs_validate_sblock): Check only one endianness.
6e2a9085 7528 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
7529 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
7530 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
7531 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
7532 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
7533 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
7534 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
7535 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
7536
32a71655 75372009-08-26 Bean <bean123ch@gmail.com>
7538
7539 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
7540 64-bit number.
7541 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
7542 (grub_xfs_inode_block): Change return type to grub_uint64_t.
7543 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
7544
552bf6c5 75452009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
7546
7547 NetBSD memory map support.
7548
7549 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
7550 (grub_netbsd_btinfo_mmap_header): New structure.
7551 (grub_netbsd_btinfo_mmap_entry): Likewise.
7552 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
7553
1ae2078c 75542009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
7555
7556 Enable bsd.mod on coreboot.
7557
7558 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
7559 (bsd_mod_SOURCES): New variable.
7560 (bsd_mod_CFLAGS): Likewise.
7561 (bsd_mod_LDFLAGS): Likewise.
7562 (bsd_mod_ASFLAGS): Likewise.
7563 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
7564 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
7565
beefc598 75662009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
7567
7568 Cleanup NetBSD root support.
7569
7570 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
7571 grub_bsd_get_device.
7572 Fix typo.
7573
3b76e68b 75742009-08-25 Felix Zielcke <fzielcke@z-51.de>
7575
7576 * util/grub.d/00_header.in: Move check for the video backend of
7577 gfxterm from here ...
7578 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
7579 a suitable video backend.
7580
aea664ea 75812009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
7582
7583 Fix breakage in grub-setup.
7584
7585 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
7586 "msdos_partition_map".
7587
ff747d50 75882009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
7589
7590 Fix breakage in normal/auth.c.
7591
7592 * normal/auth.c (grub_iswordseparator): New function.
7593
e7e1f93f 75942009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
7595
7596 Authentication support.
7597
7598 * commands/password.c: New file.
7599 * conf/common.rmk (pkglib_MODULES): Add password.mod.
7600 (password_mod_SOURCES): New variable.
7601 (password_mod_CFLAGS): Likewise.
7602 (password_mod_LDFLAGS): Likewise.
7603 (normal_mod_SOURCES): Add normal/auth.c.
7604 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
7605 normal/auth.c.
7606 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
7607 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
7608 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
7609 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
7610 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
7611 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
7612 * include/grub/auth.h: New file.
7613 * include/grub/err.h (grub_err_t): New enum value
7614 GRUB_ERR_ACCESS_DENIED.
7615 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
7616 'users'.
7617 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
7618 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
7619 users updated.
7620 * normal/auth.c: New file.
7621 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
7622 (grub_cmdline_run): Don't allow to go to command line without
7623 authentication.
7624 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
7625 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
7626 menuentry without superuser rights.
7627 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
7628 user isn't a superuser.
7629
70f1161d 76302009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
7631
7632 Save space by inlining misc.c functions.
7633
7634 * kern/misc.c (grub_iswordseparator): Made static.
7635 * kern/misc.c (grub_strcat): Moved from here ...
7636 * include/grub/misc.h (grub_strcat): ... here. Inlined.
7637 * kern/misc.c (grub_strncat): Moved from here ...
7638 * include/grub/misc.h (grub_strncat): ... here. Inlined.
7639 * kern/misc.c (grub_strcasecmp): Moved from here ...
7640 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
7641 * kern/misc.c (grub_strncasecmp): Moved from here ...
7642 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
7643 * kern/misc.c (grub_isalpha): Moved from here ...
7644 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
7645 * kern/misc.c (grub_isdigit): Moved from here ...
7646 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
7647 * kern/misc.c (grub_isgraph): Moved from here ...
7648 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
7649 * kern/misc.c (grub_tolower): Moved from here ...
7650 * include/grub/misc.h (grub_tolower): ... here. Inlined.
7651
48e40bff 76522009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
7653
7654 * script/sh/function.c (grub_script_function_find): Cut error message
7655 not to flood terminal.
7656 * script/sh/lexer.c (grub_script_yylex): Remove command line length
7657 limit.
7658 * script/sh/script.c (grub_script_arg_add): Duplicate string.
7659
c385bfc3 76602009-08-24 Colin Watson <cjwatson@ubuntu.com>
7661
7662 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
7663 `report' grub_uint8_t *.
7664 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
7665 Use a 50-millisecond timeout rather than just repeating
7666 grub_usb_keyboard_getreport 50 times.
7667 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
7668
2d21e3e8 76692009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
7670
7671 Rename *_partition_map to part_*
7672
7673 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
7674 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
7675 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
7676 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
7677 All users updated.
7678 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
7679 All users updated.
7680 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
7681 * util/grub-probe.c (probe_partmap): Don't transform partition name
7682 to get module name.
7683
dd103c4e 76842009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
7685
7686 Fix OpenBSD and NetBSD support.
7687
7688 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
7689 memory address conflict.
7690 (OPENBSD_MMAP_ACPI): New definition.
7691 (OPENBSD_MMAP_NVS): Likewise.
7692 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
7693 and OPENBSD_MMAP_NVS.
7694 Add memory map terminator
7695 Explicit cast when calling grub_unix_real_boot.
ad8ea1f4 7696 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
dd103c4e 7697
16c84d74 76982009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
7699
7700 Let user specify NetBSD root device.
7701
7702 * loader/i386/bsd.c (netbsd_root): New variable.
7703 (netbsd_opts): New option 'root'.
7704 (NETBSD_ROOT_ARG): New macro.
7705 (grub_netbsd_boot): Use 'netbsd_root'.
7706 (grub_bsd_unload): Free 'netbsd_root'.
7707 (grub_cmd_netbsd): Fill 'netbsd_root'.
7708
adb29902 77092009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
7710
7711 Support for 64-bit NetBSD.
7712
7713 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
7714 point when booting non-FreeBSD.
7715
f5ae9f74 77162009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
7717
7718 Support --no-smp and --no-acpi for NetBSD.
7719
7720 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
7721 (NETBSD_AB_NOACPI): Likewise.
7722 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
7723 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
7724
de74f136 77252009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
7726
7727 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
7728 errors.
7729 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
7730 errors. Call grub_error when needed.
7731
e9a925da 77322009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
7733
7734 * commands/search.c (search_fs): Try searching without autoload first.
7735 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
7736 filesystem module explicitly for faster booting.
7737
5174302b 77382009-08-23 Colin Watson <cjwatson@ubuntu.com>
7739
7740 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
7741
c8c80635 77422009-08-23 Colin Watson <cjwatson@ubuntu.com>
7743
7744 * util/grub.d/30_os-prober.in: Disable os-prober if
7745 `GRUB_DISABLE_OS_PROBER' was set to true.
7746
71acf5e5 77472009-08-23 Robert Millan <rmh.grub@aybabtu.com>
7748
7749 * partmap/pc.c: Rename to ...
7750 * partmap/msdos.c: ... this. Update all users.
7751 (grub_pc_partition_map): Rename to ...
7752 (grub_msdos_partition_map): ... this. Update all users.
7753
7754 * parttool/pcpart.c: Rename to ...
7755 * parttool/msdospart.c: ... this. Update all users.
7756
7757 * include/grub/pc_partition.h: Rename to ...
7758 * include/grub/msdos_partition.h: ... this. Update all users.
7759 (grub_pc_partition_bsd_entry): Rename to ...
7760 (grub_msdos_partition_bsd_entry): ... this. Update all users.
7761 (grub_pc_partition_disk_label): Rename to ...
7762 (grub_msdos_partition_disk_label): ... this. Update all users.
7763 (grub_pc_partition_entry): Rename to ...
7764 (grub_msdos_partition_entry): ... this. Update all users.
7765 (grub_pc_partition_mbr): Rename to ...
7766 (grub_msdos_partition_mbr): ... this. Update all users.
7767 (grub_pc_partition): Rename to ...
7768 (grub_msdos_partition): ... this. Update all users.
7769 (grub_pc_partition_is_empty): Rename to ...
7770 (grub_msdos_partition_is_empty): ... this. Update all users.
7771 (grub_pc_partition_is_extended): Rename to ...
7772 (grub_msdos_partition_is_extended): ... this. Update all users.
7773 (grub_pc_partition_is_bsd): Rename to ...
7774 (grub_msdos_partition_is_bsd): ... this. Update all users.
7775
7776 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
7777 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
7778 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
7779 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
7780 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
7781 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
7782 (gpt_mod_LDFLAGS): Rename to ...
7783 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
7784 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
7785 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
7786 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
7787 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
7788 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
7789 (part_gpt_mod_LDFLAGS): ... this.
7790 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
7791 `pcpart.mod' to `msdospart.mod'.
7792 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
7793 to ...
7794 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
7795 (msdospart_mod_LDFLAGS): ... this.
7796
c11fded5 77972009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
7798
7799 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
7800 (openbsd_opts): Likewise.
7801 (netbsd_opts): Likewise.
7802 (freebsd_flags): Added 0 terminator.
7803 (openbsd_flags): Likewise.
7804 (netbsd_flags): Likewise.
7805 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
7806 (grub_cmd_freebsd): Transformed into extended command.
7807 (grub_cmd_openbsd): Likewise.
7808 (grub_cmd_netbsd): Likewise.
7809 (cmd_freebsd): Changed type to grub_extcmd_t.
7810 (cmd_openbsd): Likewise.
7811 (cmd_netbsd): Likewise.
7812 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
7813 grub_cmd_openbsd as extended commands.
7814 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
7815 cmd_netbsd and cmd_openbsd
7816
11d1c769 78172009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
7818
7819 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
7820
7a9094e5 78212009-08-21 Pavel Roskin <proski@gnu.org>
7822
5496c37e 7823 * Makefile.in (install-local): When checking if a file is in the
7824 build directory, use "test -e" to detect symlinks.
7825
7a9094e5 7826 * Makefile.in (install-local): Remove all files in
7827 $(DESTDIR)$(pkglibdir) before installing new files there.
7828
e53cea11 78292009-08-18 Felix Zielcke <fzielcke@z-51.de>
7830
7831 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
7832 grub-mkelfimage.
7833
9aced544 78342009-08-18 Felix Zielcke <fzielcke@z-51.de>
7835
7836 * util/grub-mkconfig.in: Don't use gfxterm by default if not
7837 explicitly specified by the user.
7838
b7da6bab 78392009-08-18 Pavel Roskin <proski@gnu.org>
7840
7841 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
7842 grub_uint8_t pointer for data.
7843 * include/grub/fbutil.h (struct grub_video_fbblit_info):
7844 Likewise.
7845 * video/fb/fbutil.c: Remove unnecessary casts.
7846
19f1b335 78472009-08-17 Michal Suchanek <hramrach@centrum.cz>
7848
7849 VBE cleanup.
7850
7851 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
7852 (grub_vbe_set_video_mode): Save active mode info
7853 only after setting the mode.
7854 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
7855 second argument.
7856
2f467aa9 78572009-08-17 Michal Suchanek <hramrach@centrum.cz>
7858
7859 Rename variables for clarity.
7860
7861 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
7862 (active_vbe_mode_info): ... this. All users updated.
7863 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
7864 All users updated.
7865 (initial_mode): Rename to ...
7866 (initial_vbe_mode): ... this. All users updated.
7867 (mode_in_use): Rename to ..
7868 (vbe_mode_in_use): ... this. All users updated.
7869 (mode_list): Rename to ..
7870 (vbe_mode_list): ... this. All users updated.
7871 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
7872 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
7873 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
7874 'mode_list_size' to 'vbe_mode_list_size'.
7875 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
7876 'best_mode_info' to 'best_vbe_mode_info' and
7877 'best_mode' to 'best_vbe_mode'
7878
6025fcd7 78792009-08-17 Michal Suchanek <hramrach@centrum.cz>
7880
7881 Remove duplicate grub_video_fb_get_video_ptr.
7882
7883 * include/grub/fbutil.h (get_data_ptr): Rename to ...
7884 (grub_video_fb_get_video_ptr): ... this.
7885 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
7886 * video/fb/fbutil.c: Add comment about addressing.
7887 (get_data_ptr): Rename to ...
7888 (grub_video_fb_get_video_ptr): ... this. All users updated.
7889 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
7890
cc8c6faf 78912009-08-17 Robert Millan <rmh.grub@aybabtu.com>
7892
7893 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
7894 grub_dprintf() that was just added.
7895
08aa61f0 78962009-08-17 Robert Millan <rmh.grub@aybabtu.com>
7897
7898 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
7899 (DEFAULT_VIDEO_MODE): Remove macros.
7900 (grub_linux_boot): Remove assumption that Linux has FB support,
7901 and use "text" as default video mode.
7902
7cef4f75 79032009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
7904
7905 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
7906 grub_dprintf.
7907 * fs/fat.c (grub_fat_read_data): Likewise.
7908
e1f39873 79092009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
7910
7911 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
7912 payload.
7913 (grub_module): Likewise.
7914
c166d79e 79152009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
7916
7917 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
7918 mbi->cmdline but free playground.
7919
c60cee8e 79202009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
7921
7922 Handle group offset on UFS1.
7923
7924 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
7925 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
7926
c0d8b5d4 79272009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
7928
7929 Split ufs.mod into ufs1.mod and ufs2.mod.
7930
7931 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
7932 (grub_fstest_SOURCES): Likewise.
7933 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
7934 (ufs_mod_SOURCES): Remove.
7935 (ufs_mod_CFLAGS): Likewise.
7936 (ufs_mod_LDFLAGS): Likewise.
7937 (ufs1_mod_SOURCES): New variable.
7938 (ufs1_mod_CFLAGS): Likewise.
7939 (ufs1_mod_LDFLAGS): Likewise.
25fbd77a 7940 (ufs2_mod_SOURCES): New variable.
7941 (ufs2_mod_CFLAGS): Likewise.
7942 (ufs2_mod_LDFLAGS): Likewise.
c0d8b5d4 7943 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
7944 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
7945 Likewise.
7946 (grub_emu_SOURCES): Likewise.
7947 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
7948 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
7949 (grub_setup_SOURCES): Likewise.
7950 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
7951 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
7952 (grub_setup_SOURCES): Likewise.
7953 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
7954 Likewise.
7955 * fs/ufs2.c: New file.
7956 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
7957
d3539132 79582009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
7959
7960 Framebuffer split.
7961
7962 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
7963 subsystem at the end.
7964 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
7965 (video_fb_mod_SOURCES): New variable.
7966 (video_fb_mod_CFLAGS): Likewise.
7967 (video_fb_mod_LDFLAGS): Likewise.
7968 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
7969 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
7970 * video/i386/pc/vbeblit.c: Moved from here ...
7971 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
7972 * video/i386/pc/vbefill.c: Moved from here ...
7973 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
7974 * video/i386/pc/vbeutil.c: Moved from here ...
7975 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
7976 * include/grub/i386/pc/vbeblit.h: Moved from here ...
7977 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
7978 * include/grub/i386/pc/vbefill.h: Moved from here ...
7979 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
7980 * include/grub/i386/pc/vbeutil.h: Moved from here ...
7981 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
7982 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
7983 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
7984 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
7985 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
7986 (grub_video_adapter): Added 'get_info_and_fini'.
7987 (grub_video_get_info_and_fini): New prototype.
7988 (grub_video_set_mode): make modestring const char *.
7989 * loader/i386/linux.c (grub_linux_setup_video): Use
7990 grub_video_get_info_and_fini.
7991 (grub_linux_boot): Move modesetting just before booting.
7992 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
7993 grub_video_get_info_and_fini.
7994 * video/i386/pc/vbe.c: Moved framebuffer part ...
7995 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
7996 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
7997 grub_video_fbstd_colors and grub_video_fb_set_palette.
7998 (grub_video_vbe_init): Clear 'framebuffer' variable and use
7999 grub_video_fb_init.
8000 (grub_video_vbe_fini): Use grub_video_fb_fini.
8001 (grub_video_vbe_setup): Use framebuffer.render_target instead of
8002 render_target and use grub_video_fb_set_active_render_target and
8003 grub_video_fb_set_palette.
8004 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
8005 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
8006 (grub_video_vbe_adapter): Use framebuffer.
8007 * video/video.c (grub_video_get_info_and_fini): New function.
8008 (grub_video_set_mode): Make modestring const char *.
8009 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
8010 values are already initialised.
8011
d404ee56 80122009-08-14 Pavel Roskin <proski@gnu.org>
8013
8014 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
8015 ABS and APPLE_CC.
8016 * boot/i386/pc/diskboot.S: Likewise.
8017 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
8018 sectors allow compilation on MacOSX.
8019 * conf/i386-pc.rmk: Enable unconditional compilation of
8020 lnxboot.img.
8021
9a10df16 80222009-08-13 Colin Watson <cjwatson@ubuntu.com>
8023
8024 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
8025 * util/grub.d/00_header.in: Enter interruptible sleep if
8026 GRUB_HIDDEN_TIMEOUT is set.
8027
be3c9ca7 80282009-08-13 Yves Blusseau <blusseau@zetam.org>
8029
8030 * include/grub/symbol.h: Add the LOCAL macro.
8031 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
8032 starting with "L_".
8033
1f9e557e 80342009-08-13 Pavel Roskin <proski@gnu.org>
8035
9ca62843 8036 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
8037 any modern compilers we support.
8038
1f9e557e 8039 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
8040 Use local labels starting with "L_" so that Apple assembler
8041 knows they are local.
8042
81623db6 80432009-08-10 Robert Millan <rmh.grub@aybabtu.com>
8044
8045 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
8046 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
8047 (bsd_kernel_types): ... this enum.
8048
8049 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
8050 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
8051 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
8052
8053 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
8054 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
8055 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
8056 messages.
8057
f5d35e7a 80582009-08-08 Robert Millan <rmh.grub@aybabtu.com>
8059
8060 * util/grub-dumpdevtree: Moved from here ...
8061 * util/i386/efi/grub-dumpdevtree: ... to here.
8062 (hexify): New function. Converts a string to its hex version.
8063 Generate hex versions of "efi" and "device-properties" by calling
8064 hexify() on the ASCII strings rather than by hardcoding numbers.
8065
d1e1d527 80662009-08-08 Robert Millan <rmh.grub@aybabtu.com>
8067
8068 * fs/jfs.c: Update copyright year.
8069
1ebbe064 80702009-08-08 Felix Zielcke <fzielcke@z-51.de>
8071
8072 * util/grub.d/00_header.in: Fix a comment.
8073 * util/grub.d/10_linux.in: Likewise.
8074 * util/grub.d/10_windows.in: Likewise.
8075 * util/grub.d/10_hurd.in: Likewise.
8076
a78c8d24 80772009-08-08 Felix Zielcke <fzielcke@z-51.de>
8078
8079 * util/grub-mkconfig.in: Allow the user to specify the used font
8080 with GRUB_FONT.
8081
29a6b9e8 80822009-08-08 Pavel Roskin <proski@gnu.org>
8083
b5f16cc4 8084 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
8085 available, xfs.mod needs it now.
8086
2f5cb827 8087 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
8088 the "g" modifier in sed when the intention is to strip something
8089 once. This fixes comparison of kernels with multiple dashes.
8090
29a6b9e8 8091 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
8092 on it. Add missing space before closing bracket. Fix
8093 misleading formatting.
8094
892a3d98 80952009-08-07 Robert Millan <rmh.grub@aybabtu.com>
8096
8097 * docs/grub.texi: Major overhaul. Remove all sections that are
8098 specific to GRUB Legacy, or mostly composed of Legacy-specific
8099 information.
8100
ed94253f 81012009-08-07 Robert Millan <rmh.grub@aybabtu.com>
8102
8103 * docs/version.texi: New file. Provides version information for
8104 grub.texi.
8105
126d6628 81062009-08-07 Robert Millan <rmh.grub@aybabtu.com>
8107
8108 * docs/grub.texi: Update CVS information to SVN.
8109 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
8110
998b5aa9 81112009-08-07 Felix Zielcke <fzielcke@z-51.de>
8112
8113 * util/grub-mkconfig.in: Remove a wrong `fi'.
8114
818e094a 81152009-08-07 Felix Zielcke <fzielcke@z-51.de>
8116
8117 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
8118 (grub_jfs_uuid): New function.
8119 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
8120
b969c52f 81212009-08-07 Felix Zielcke <fzielcke@z-51.de>
8122
8123 * util/grub-mkconfig_lib.in (font_path): Move the functionality
8124 of it to ...
8125 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
8126 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
8127
7a4894cc 81282009-08-07 Robert Millan <rmh.grub@aybabtu.com>
8129
8130 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
8131 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
8132 Update all users.
8133
8134 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
8135 not just "vmlinu[zx]".
8136 Moved from here ...
8137 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
8138 all users.
8139
8140 * util/grub.d/10_linux.in (find_latest): Moved from here ...
8141 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
8142 all users.
8143
4e2171f8 81442009-08-07 Robert Millan <rmh.grub@aybabtu.com>
8145
8146 * util/grub.d/10_freebsd.in: Use an absolute device path for
8147 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
8148
6dcfcb32 81492009-08-06 Felix Zielcke <fzielcke@z-51.de>
8150
8151 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
8152 handling of multiple abstraction modules.
8153
f56a8756 81542009-08-04 Robert Millan <rmh.grub@aybabtu.com>
8155
8156 Fix a bug resulting in black screen when loading Linux using a
8157 packed video mode.
8158
8159 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
8160 function.
8161
8162 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
8163 (grub_vbe_bios_getset_dac_palette_width): New function.
8164 (grub_vbe_bios_get_dac_palette_width)
8165 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
8166 grub_vbe_bios_getset_dac_palette_width()).
8167
8168 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
8169 check for return status.
8170 (grub_vbe_get_video_mode_info): When getting information for a packed
8171 mode (<= 8 bpp), obtain DAC palette width using
8172 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
8173 {red,green,blue}_mark_size.
8174
222671b2 81752009-08-04 Felix Zielcke <fzielcke@z-51.de>
8176
ecb1a6d9 8177 * commands/search.c (options): Fix help output to match actual code.
222671b2 8178
f84114f5 81792009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
8180
8181 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
8182 of homegrown code.
8183
bd288a20 81842009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
e768b770 8185
8186 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
8187 on XFS or ReiserFS.
8188
8aab5e25 81892009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
8190
8191 Support Apple partition map with sector size different from 512 bytes.
8192
8193 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
8194 (apple_partition_map_iterate): Respect 'aheader.blocksize'
8195 and 'apart.partmap_size'.
8196
6ad6258a 81972009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
81982009-08-01 Robert Millan <rmh.grub@aybabtu.com>
8199
8200 Fix cpuid command.
8201
8202 * commands/i386/cpuid.c (options): New variable.
8203 (grub_cmd_cpuid): Return real error.
8204 (GRUB_MOD_INIT(cpuid)): Declare options.
8205
67459bc6 82062009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
8207
8208 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
8209 valid.
8210
fbc6ab54 82112009-07-31 Bean <bean123ch@gmail.com>
8212
8213 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
8214 log2_inode.
8215 (grub_fshelp_node): Move inode field to the end.
8216 (grub_xfs_data): Remove inode field.
8217 (grub_xfs_inode_block): Calculate inode size using sblock.
8218 (grub_xfs_inode_offset): Likewise.
8219 (grub_xfs_read_inode): Calculate inode size using sblock.
8220 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
8221 (grub_xfs_iterate_dir): Calculate inode size using sblock.
8222 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
8223 to match inode size.
8224 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
8225 not accessible when data is null.
8226 (grub_xfs_open): Likewise.
8227
f45d6cfc 82282009-07-31 Bean <bean123ch@gmail.com>
8229
8230 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
8231 Don't change pv->disk if it's already set.
8232
8233 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
8234 (grub_raid_register): ... here.
8235 (grub_raid_rescan): Removed.
8236
8237 * include/grub/raid.h (grub_raid_rescan): Removed.
8238
8239 * util/grub-fstest.c: Remove include file <grub/raid.h>.
8240 (fstest): Replace grub_raid_rescan with module fini function followed
8241 by init function.
8242
8243 * util/grub-probe.c: Add include file <grub/raid.h>.
8244 (probe_raid_level): New function.
8245 (probe): Detect abstraction by walking the disk device, support two
8246 level of abstraction (LVM on RAID) when detecting partition map.
8247
24443b5a 82482009-07-31 Pavel Roskin <proski@gnu.org>
8249
8250 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
8251 to grub_zalloc(), it was erroneous.
8252 Reported by Bean <bean123ch@gmail.com>
8253
a275d9e7 82542009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
8255
8256 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
ad8ea1f4 8257 embedding zone, not only the first one.
a275d9e7 8258
56c5a47f 82592009-07-29 Joe Auricchio <jauricchio@gmail.com>
8260
8261 * term/gfxterm.c (clear_char): New function.
8262 (grub_virtual_screen_setup): Use clear_char.
8263 (scroll_up): Likewise.
8264 (grub_virtual_screen_cls): Likewise.
8265
67bb323a 82662009-07-29 Felix Zielcke <fzielcke@z-51.de>
8267
8268 * util/deviceiter.c (get_acceleraid_disk_name): New static
8269 function.
8270 (grub_util_iterate_devices): Handle Accelraid devices.
8271 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
8272
388a7c75 82732009-07-28 Robert Millan <rmh.grub@aybabtu.com>
8274
8275 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
8276 separator for the suggested gfxpayload string (';' collides with the
8277 parser and needs escaping).
8278
3bb7abcf 82792009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
8280
8281 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
8282 Clear direction flag before jumping to OS.
8283 (grub_multiboot2_real_boot): Likewise.
8284
2ddd36d7 82852009-07-28 Felix Zielcke <fzielcke@z-51.de>
8286
8287 * util/i386/pc/grub-install: Fix parsing of --disk-module
8288 option.
8289
c521b62b 82902009-07-28 Felix Zielcke <fzielcke@z-51.de>
8291
8292 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
8293 when embedding.
8294
880e0a0c 82952009-07-26 Felix Zielcke <fzielcke@z-51.de>
8296
8297 * util/grub-mkconfig.in (package_version): New variable.
8298 Use it do display the version.
8299
2366e356 83002009-07-25 Felix Zielcke <fzielcke@z-51.de>
8301
8302 * kern/file.c (grub_file_open): Revert to previous check with
8303 grub_errno.
8304
7ad8c80e 83052009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
8306
8307 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
8308 from help line. It's out of sync with code.
8309
72b9658b 83102009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
8311
8312 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
8313 entries on failed boot.
8314
77435277 83152009-07-25 Felix Zielcke <fzielcke@z-51.de>
8316
8317 * kern/file.c (grub_file_open): Fix an error check.
8318
fcaa8b21 83192009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
8320
35d16c74 8321 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
8322 partition map couldn't be identified.
fcaa8b21 8323
48904cd1 83242009-07-23 Pavel Roskin <proski@gnu.org>
8325
ef3c317f 8326 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
8327 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
8328 case of little endian words becomes just an optimization.
8329 Respect const modifier.
ad8ea1f4 8330 (md5_final): Use code that doesn't depend on endianness.
ef3c317f 8331
48904cd1 8332 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
8333 to avoid loss of upper bits if align is unsigned and shorter
8334 than addr.
8335
260c9a89 83362009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
8337
8338 UUID support for UFS
8339
8340 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
8341 (grub_ufs_uuid): New function.
8342 (grub_ufs_fs): add .uuid
8343
f76ce889 83442009-07-21 Pavel Roskin <proski@gnu.org>
8345
8346 * kern/dl.c (grub_dl_check_header): Make static.
8347
6a6cbcaf 83482009-07-21 Felix Zielcke <fzielcke@z-51.de>
8349
8350 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
8351 add drivemap for Vista. It breaks Windows 7.
8352
cffcddb2 83532009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
8354
8355 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
8356 128 bytes
8357
1ef44b80 83582009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
8359
8360 Add BFS support
8361
8362 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
8363 (grub_fstest_SOURCES): Likewise.
8364 (pkglib_MODULES): Add befs.mod.
8365 (befs_mod_SOURCES): New variable.
8366 (befs_mod_CFLAGS): Likewise.
8367 (befs_mod_LDFLAGS): Likewise.
8368 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
8369 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
8370 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8371 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
8372 (grub_setup_SOURCES): Likewise.
8373 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8374 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8375 (grub_setup_SOURCES): Likewise.
8376 * fs/befs.c: New file.
8377 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
8378 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
8379 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
8380 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
8381 (B_KEY_INDEX_ALIGN): New declaration.
8382 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
8383 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
8384 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
8385 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
8386 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
8387 (grub_afs_mount) [MODE_BFS]: Likewise.
8388 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
8389 (grub_afs_fs): Use GRUB_AFS_FSNAME
8390 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
8391 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
8392 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
8393 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
8394
4f253044 83952009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
8396
8397 * util/getroot.c (find_root_device): Add support for MacOSX.
8398 * util/hostdisk.c: Likewise.
8399
57a55913 84002009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
8401
8402 * font/font.c (find_glyph): Check whether a font is present to avoid
8403 segmentation fault.
75421ca9 8404
84052009-07-20 Joe Auricchio <jauricchio@gmail.com>
04c7c429 8406
8407 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
8408
e98cd0c2 84092009-07-20 Pavel Roskin <proski@gnu.org>
8410
8411 * configure.ac: Trim excessively wordy excuses.
8412
1d2d169a 84132009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
8414
8415 Add symlink, mtime and label support to AtheFS.
8416
8417 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
8418 (grub_afs_iterate_dir): Handle symlinks.
8419 (grub_afs_open): Use grub_afs_read_symlink.
8420 (grub_afs_dir): Likewise.
8421 Pass mtime.
8422 (grub_afs_label): New function.
8423 (grub_afs_fs): Add grub_afs_label.
8424 (grub_afs_read_symlink): New function.
8425
186f3189 84262009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
8427
8428 Fix AtheFS support.
8429
8430 * fs/afs.c: Fix comments style.
8431 (grub_afs_blockrun): Declare as packed.
8432 (grub_afs_datastream): Likewise.
8433 (grub_afs_bnode): Likewise.
8434 (grub_afs_btree): Likewise.
8435 (grub_afs_sblock): Likewise.
8436 Declare `name' as char.
8437 (grub_afs_inode): Declare as packed.
8438 Change void *vnode to grub_uint32_t unused.
8439 (grub_afs_iterate_dir): Check that key_size is positive.
8440 (grub_afs_mount): Don't read superblock twice.
75421ca9 8441 (grub_afs_dir): Don't free node in case of error,
186f3189 8442 grub_fshelp_find_file already handles this.
8443 (grub_afs_open): Likewise.
8444
5680109e 84452009-07-19 Pavel Roskin <proski@gnu.org>
8446
8447 * Makefile.in: Remove LIBLZO and enable_lzo.
8448 * conf/i386-pc.rmk: Remove lzo support.
8449 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
8450 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
8451 support.
8452 * kern/i386/pc/lzo1x.S: Remove.
8453 * kern/i386/pc/startup.S: Remove lzo support.
8454 * util/i386/pc/grub-mkimage.c: Likewise.
8455
ac70fa32 84562009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
8457
8458 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
8459 * fs/xfs.c (grub_xfs_dir): Likewise.
8460 * fs/afs.c (grub_afs_dir): Likewise.
8461 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
8462 (grub_iso9660_open): Likewise.
8463 * fs/jfs.c (grub_jfs_open): Likewise.
8464 * fs/ext2.c (grub_ext2_dir): Likewise.
8465 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
8466 * script/sh/lexer.c (grub_script_yylex): Likewise.
75421ca9 8467
eab58da2 84682009-07-16 Pavel Roskin <proski@gnu.org>
8469
d2838156 8470 * configure.ac: Never add "-c" to CFLAGS.
8471
55c70904 8472 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
8473
43e6200c 8474 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
8475 grub_cv_cc_efiemu should be used.
8476
ce7a733d 8477 * configure.ac: Typo fixes.
8478
eab58da2 8479 * kern/mm.c (grub_zalloc): New function.
8480 (grub_debug_zalloc): Likewise.
8481 * include/grub/mm.h: Declare grub_zalloc() and
8482 grub_debug_zalloc().
8483 * util/misc.c (grub_zalloc): New function.
8484 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
8485 instead of grub_malloc(), remove unneeded initializations.
8486 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
8487 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
8488 * commands/parttool.c (grub_cmd_parttool): Likewise.
8489 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
8490 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
8491 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
8492 * disk/usbms.c (grub_usbms_finddevs): Likewise.
8493 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
8494 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
8495 (grub_cmd_efiemu_pnvram): Likewise.
8496 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
8497 * fs/iso9660.c (grub_iso9660_mount): Likewise.
8498 (grub_iso9660_iterate_dir): Likewise.
8499 * fs/jfs.c (grub_jfs_opendir): Likewise.
8500 * fs/ntfs.c (list_file): Likewise.
8501 (grub_ntfs_mount): Likewise.
8502 * kern/disk.c (grub_disk_open): Likewise.
8503 * kern/dl.c (grub_dl_load_core): Likewise.
8504 * kern/elf.c (grub_elf_file): Likewise.
8505 * kern/env.c (grub_env_context_open): Likewise.
8506 (grub_env_set): Likewise.
8507 (grub_env_set_data_slot): Likewise.
8508 * kern/file.c (grub_file_open): Likewise.
8509 * kern/fs.c (grub_fs_blocklist_open): Likewise.
8510 * loader/i386/multiboot.c (grub_module): Likewise.
8511 * loader/xnu.c (grub_xnu_create_key): Likewise.
8512 (grub_xnu_create_value): Likewise.
8513 * normal/main.c (grub_normal_add_menu_entry): Likewise.
8514 (read_config_file): Likewise.
8515 * normal/menu_entry.c (make_screen): Likewise.
8516 * partmap/sun.c (sun_partition_map_iterate): Likewise.
8517 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
8518 * script/sh/script.c (grub_script_parse): Likewise.
8519 * video/bitmap.c (grub_video_bitmap_create): Likewise.
8520 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
8521 * video/readers/png.c (grub_png_output_byte): Likewise.
8522 (grub_video_reader_png): Likewise.
8523
830afef7 85242009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
5ce5507f 8525
8526 Enable all targets that can be built by default
8527
830afef7 8528 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
5ce5507f 8529 grub-mkfont and grub-fstest if they can be built
8530
ee293aee 85312009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
8532
8533 Fix hang and segmentation fault in grub-emu-usb
8534
8535 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
8536 * util/usb.c (grub_libusb_devices): likewise
8537 (grub_libusb_init): rename to ...
8538 (GRUB_MOD_INIT (libusb)):...this
8539 (grub_libusb_fini): rename to ..
8540 (GRUB_MOD_FINI (libusb)):...this
8541 * disk/usbms.c (grub_usbms_transfer): fix retry logic
8542 * include/grub/disk.h (grub_raid_init): removed, it's useless
8543 (grub_raid_fini): likewise
8544 (grub_lvm_init): likewise
8545 (grub_lvm_fini): likewise
8546 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
8547 by grub_init_all
8548
94414221 85492009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
8550
8551 Fix libusb
8552
8553 * Makefile.in (LIBUSB): new macro
8554 * genmk.rb (Utility/print_tail): new method
8555 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
8556 (top level): call util.print_tail at the end.
8557
59ade63d 85582009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
8559
8560 Make FreeBSD accept zpool.cache
8561
8562 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
8563 type is /boot/zfs/zpool.cache
8564
a58da8c7 85652009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
8566
8567 Fix 64-bit efiemu
8568
8569 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
8570 correct wrong typedef
8571 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
8572
20591577 85732009-07-15 Pavel Roskin <proski@gnu.org>
8574
560ca572 8575 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
8576 * kern/disk.c (struct grub_disk_cache): Likewise.
8577
e8e8e4fd 8578 * commands/probe.c (options): Typo fix.
8579
fde24e10 8580 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
8581 Increase to 0x5a to accommodate FAT32. Adjust other offsets
8582 accordingly.
8583 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
8584
379c54c1 8585 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
8586 the end of "Error" to make the message more readable.
8587
7bd8f5bf 8588 * boot/i386/pc/boot.S (kernel_segment): Remove.
8589 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
8590 for destination.
8591
40b132c5 8592 * boot/i386/pc/boot.S (boot_version): Remove.
8593 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
8594 Remove.
8595
20591577 8596 * include/grub/i386/pc/boot.h: Sort all offsets.
8597 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
8598 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
8599 * boot/i386/pc/boot.S: Assert location of every offset listed in
8600 include/grub/i386/pc/boot.h.
8601
2df32b2c 86022009-07-13 Pavel Roskin <proski@gnu.org>
8603
44b5d879 8604 * include/grub/i386/coreboot/machine.h: Rename
8605 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
8606 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
8607 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
8608
17dc3751 8609 * kern/dl.c: Force native word size to suppress warnings when
8610 compiling grub-emu.
8611
2df32b2c 8612 * kern/device.c (grub_device_iterate): Change struct part_ent to
8613 hold the name, not a pointer to it. Use one grub_malloc() per
8614 partition, not two. Free partition_name if grub_malloc() fails.
8615 Set ents to NULL only before grub_partition_iterate() is called.
8616
75c59f59 86172009-07-11 Bean <bean123ch@gmail.com>
8618
8619 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
8620 childname.
8621
0ae1bf88 86222009-07-10 Bean <bean123ch@gmail.com>
86232009-07-10 Robert Millan <rmh.grub@aybabtu.com>
8624
8625 * kern/ieee1275/openfw.c (grub_children_iterate)
8626 (grub_devalias_iterate): Fix size evaluation for property or path
8627 strings, which was broken since r2132.
8628
8279cade 86292009-07-07 Pavel Roskin <proski@gnu.org>
8630
7d8a52d3 8631 * commands/search.c (search_file): Merge into ...
8632 (search_fs): ... this. Accept search type as argument.
8633 (grub_cmd_search): Pass search type to search_fs().
8634
25f9a05a 8635 * include/grub/util/console.h: New file.
8636 * util/console.c: Use it instead of grub/machine/console.h.
8637 * util/grub-emu.c: Likewise.
8638
8279cade 8639 * lib/arg.c (find_long_option): Remove.
8640 (find_long): Add `len' argument, make `s' const char *.
8641 (grub_arg_parse): Parse long options in place, not in a
8642 temporary buffer.
8643
4a11b60f 86442009-07-06 Pavel Roskin <proski@gnu.org>
8645
99f68041 8646 * commands/search.c (search_fs): Fix potential NULL pointer
8647 dereference.
8648
4a11b60f 8649 * commands/search.c (search_fs): Replace QUID macro with quid_fn
8650 function pointer.
8651
e110f4de 86522009-07-06 Daniel Mierswa <impulze@impulze.org>
8653
8654 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
8655 comparison.
8656
46eeb6a2 86572009-07-05 Pavel Roskin <proski@gnu.org>
8658
bab74958 8659 * include/grub/i386/linux.h (struct linux_kernel_params):
8660 Restore padding3, it's still needed.
8661
46eeb6a2 8662 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
8663 FreeBSD.
8664 * util/osdetect.lua: Likewise.
8665
b4a1dc79 86662009-07-05 Bean <bean123ch@gmail.com>
8667
8668 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
8669
8670 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
8671 (grub_lua_getenv): Likewise.
8672 (grub_lua_setenv): Likewise.
8673 (save_errno): New function.
8674 (push_result): Likewise.
8675 (grub_lua_enum_device): Likewise.
8676 (grub_lua_enum_file): Likewise.
8677 (grub_lua_file_open): Likewise.
8678 (grub_lua_file_close): Likewise.
8679 (grub_lua_file_seek): Likewise.
8680 (grub_lua_file_read): Likewise.
8681 (grub_lua_file_getline): Likewise.
8682 (grub_lua_file_getsize): Likewise.
8683 (grub_lua_file_getpos): Likewise.
8684 (grub_lua_file_eof): Likewise.
8685 (grub_lua_file_exist): Likewise.
8686 (grub_lua_add_menu): Likewise.
8687
8688 * script/lua/grub_lua.h (isupper): New inline function.
8689 (islower): Likewise.
8690 (ispunct): Likewise.
8691 (isxdigit): Likewise.
8692 (strcspn): Change to normal function.
8693 (strpbkr): New function declaration.
8694 (memchr): Likewise.
8695
8696 * script/lua/grub_main.c (scan_str): New function.
8697 (strcspn): Likewise.
8698 (strpbrk): Likewise.
8699 (memchr): Likewise.
8700
8701 * script/lua/linit.c (lualibs): Enable the string library.
8702
8703 * util/osdetect.lua: New file.
8704
2da92295 87052009-07-04 Robert Millan <rmh.grub@aybabtu.com>
8706
8707 * include/grub/i386/linux.h (struct linux_kernel_params): Add
8708 `capabilities' member.
8709
b2582ec9 87102009-07-02 Pavel Roskin <proski@gnu.org>
8711
8712 * genparttoollist.sh: Add missing newline at the end.
8713
32622956 87142009-07-01 Pavel Roskin <proski@gnu.org>
8715
87a7339e 8716 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
8717
d23af54e 8718 * util/hostdisk.c (open_device): Remove `const' from
8719 `sysctl_size', as sysctlbyname() can change it (in this case it
8720 doesn't actually happen).
8721
c94b18a9 8722 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
8723 using signed long int constants.
8724
c6cd3ef0 8725 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
8726 constant to avoid a warning on FreeBSD.
8727
0df63420 8728 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
8729 where it's needed.
8730
999577f1 8731 * Makefile.in: Install include/grub/machine symlink.
8732
6f41557f 8733 * Makefile.in: When installing symlinks, use "cp -fR", which
8734 works on FreeBSD and MacOSX.
8735 From Yves Blusseau <cl7m42e02@sneakemail.com>
8736
c8d22988 8737 * kern/dl.c (grub_dl_resolve_symbol): Make static.
8738 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
8739
1b96e952 8740 * util/misc.c: Move grub_reboot() and grub_halt() ...
8741 * util/grub-emu.c: ... here. Make main_env static.
8742 * include/grub/util/misc.h: Remove main_env.
8743
2ef0084d 8744 * kern/mm.c: Use correct format to print size_t.
8745
32622956 8746 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
8747 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
8748 * kern/powerpc/dl.c: Likewise.
8749 * kern/sparc64/dl.c: Likewise.
8750 * kern/x86_64/dl.c: Likewise.
8751
3f7f0cd0 87522009-07-01 Robert Millan <rmh.grub@aybabtu.com>
8753
8754 Fix grub-emu build on sparc64-ieee1275.
8755
75421ca9 8756 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
3f7f0cd0 8757 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
8758
211d06b5 87592009-07-01 Robert Millan <rmh.grub@aybabtu.com>
8760
8761 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
8762 (grub_reboot, grub_halt): New functions.
8763
8764 * util/i386/pc/misc.c: Delete. Update all users.
8765 * util/sparc64/ieee1275/misc.c: Likewise.
8766 * util/powerpc/ieee1275/misc.c: Likewise.
8767
aaf53e3c 87682009-07-01 Robert Millan <rmh.grub@aybabtu.com>
8769
8770 * conf/i386.rmk (setjmp_mod_SOURCES)
8771 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
8772 * conf/common.rmk (setjmp_mod_SOURCES)
8773 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
8774 to use $(target_cpu).
8775 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
8776 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
8777 * conf/powerpc-ieee1275.rmk: Likewise.
8778 * conf/sparc64-ieee1275.rmk: Likewise.
8779
8780 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
8781 $(target_cpu) for kern/$(target_cpu)/dl.c.
8782 * conf/i386-efi.rmk: Likewise.
8783 * conf/i386-ieee1275.rmk: Likewise.
8784 * conf/x86_64-efi.rmk: Likewise.
8785 * conf/i386-coreboot.rmk: Likewise.
8786 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
8787 $(target_cpu) for kern/$(target_cpu)/dl.c and for
8788 kern/$(target_cpu)/cache.S.
8789 * conf/sparc64-ieee1275.rmk: Likewise.
8790
a337130b 87912009-07-01 Robert Millan <rmh.grub@aybabtu.com>
8792
8793 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
8794 type to `grub_uint8_t', and adjust `padding9' accordingly.
8795
c6fe4d53 87962009-06-29 Robert Millan <rmh.grub@aybabtu.com>
8797
b09db61d 8798 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
8799
c6fe4d53 8800 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
8801 assembly in final jump, using register constraints.
8802
b09db61d 8803 (grub_linux_boot): For text mode, initialize `have_vga' using
8804 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
8805
8806 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
8807 right before the final jump.
8808
8809 Set `video_mode' to 0x3.
8810
8811 Document initialization of `video_page', `video_mode' and
8812 `video_ega_bx'.
8813
28333ad0 88142009-06-29 Robert Millan <rmh.grub@aybabtu.com>
8815
8816 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
8817 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
75421ca9 8818 and set GRUB_LINUX_FLAG_QUIET appropriately.
28333ad0 8819
02164e1b 88202009-06-29 Robert Millan <rmh.grub@aybabtu.com>
8821
8822 Fix build on Debian / sparc.
8823
8824 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
8825
18b6c557 88262009-06-28 Pavel Roskin <proski@gnu.org>
8827
85f2aab6 8828 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
8829 fix a warning.
8830
18b6c557 8831 * util/grub.d/10_linux.in: Match SUSE style initrd names.
8832
ad760f81 88332009-06-27 Robert Millan <rmh.grub@aybabtu.com>
8834
8835 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
8836 `err'.
8837
87a4623b 88382009-06-27 Robert Millan <rmh.grub@aybabtu.com>
8839
8840 Revert r2338.
8841
8842 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
8843 file can't be opened. grub_file_open() is already supposed to set
75421ca9 8844 grub_errno / grub_errmsg appropriately.
87a4623b 8845 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
8846
8231fb77 88472009-06-27 Pavel Roskin <proski@gnu.org>
88482009-06-27 Robert Millan <rmh.grub@aybabtu.com>
8849
8850 * include/grub/dl.h: Include grub/elf.h.
8851 (struct grub_dl): Add symtab field.
8852 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
8853 GRUB_MODULES_MACHINE_READONLY.
8854 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
8855 of the header for read-only modules.
8856 (grub_dl_unload): Free mod->symtab for read-only modules.
8857 * kern/i386/dl.c: Use mod->symtab.
8858 * kern/powerpc/dl.c: Likewise.
8859 * kern/sparc64/dl.c: Likewise.
8860 * kern/x86_64/dl.c: Likewise.
8861
8862 * conf/i386-qemu.rmk: New file.
8863 * kern/i386/qemu/startup.S: Likewise.
8864 * kern/i386/qemu/mmap.c: Likewise.
8865 * boot/i386/qemu/boot.S: Likewise.
8866 * include/grub/i386/qemu/time.h: Likewise.
8867 * include/grub/i386/qemu/serial.h: Likewise.
8868 * include/grub/i386/qemu/kernel.h: Likewise.
8869 * include/grub/i386/qemu/console.h: Likewise.
8870 * include/grub/i386/qemu/boot.h: Likewise.
8871 * include/grub/i386/qemu/init.h: Likewise.
8872 * include/grub/i386/qemu/machine.h: Likewise.
8873 * include/grub/i386/qemu/loader.h: Likewise.
8874 * include/grub/i386/qemu/memory.h: Likewise.
8875
8876 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
8877 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
8878 [qemu] (pkglib_IMAGES): Add `boot.img'.
8879 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
8880 [qemu] (boot_img_FORMAT): New variables.
8881 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
8882 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
8883 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
8884 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
8885 [qemu] (kernel_img_FORMAT): New variables.
8886
8887 * configure.ac: Recognise `i386-qemu'.
8888
8889 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
8890 (for no compression).
8891 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
8892 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
8893 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
8894 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
8895 ifdefs).
8896
97fe384e 88972009-06-27 Pavel Roskin <proski@gnu.org>
8898
8899 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
8900 read.
8901 * efiemu/prepare32.c: Likewise.
8902 * efiemu/prepare64.c: Likewise.
8903
c402ab17 89042009-06-26 Pavel Roskin <proski@gnu.org>
8905
8906 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
8907 * include/grub/elf.h: Define symbols without "32" or "64" based
8908 on GRUB_TARGET_WORDSIZE.
8909 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
8910 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
8911 ELF definitions.
8912 * efiemu/loadcore64.c: Likewise.
8913 * loader/i386/bsd32.c: Likewise.
8914 * loader/i386/bsd64.c: Likewise.
8915 * kern/dl.c: Remove own ELF definitions.
8916 * util/i386/efi/grub-mkimage.c: Likewise.
8917
9bbdfd4d 89182009-06-23 Robert Millan <rmh.grub@aybabtu.com>
8919
8920 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
8921 segment 0x0 unconditionally, because the reference generated by
8922 GAS is an absolute address.
8923
a42ce6e9 89242009-06-22 Robert Millan <rmh.grub@aybabtu.com>
8925
8926 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
8927 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
8928
c952cf92 89292009-06-22 Robert Millan <rmh.grub@aybabtu.com>
8930
8931 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
8932 indexes. Check for -f explicitly.
cc3752ad 8933 (search_file): Improve error message.
8934 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
c952cf92 8935
132a0a59 89362009-06-22 Robert Millan <rmh.grub@aybabtu.com>
8937
8938 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
8939 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
8940
387a140c 89412009-06-22 Robert Millan <rmh.grub@aybabtu.com>
8942
8943 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
8944 * conf/i386-ieee1275.rmk: Likewise.
8945 * conf/i386-coreboot.rmk: Likewise.
8946
8947 * kern/i386/pc/startup.S (grub_stop): Remove function.
8948 * kern/i386/ieee1275/startup.S: Likewise.
8949 * kern/i386/coreboot/startup.S: Likewise.
8950 * kern/i386/misc.S (grub_stop): New function.
8951
41da9665 89522009-06-22 Robert Millan <rmh.grub@aybabtu.com>
8953
8954 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
8955 * kern/i386/realmode.S (real_to_prot): ... to here.
8956
bf337234 89572009-06-22 Robert Millan <rmh.grub@aybabtu.com>
8958
8959 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
8960 with `kernel.img'.
8961 (kernel_elf_SOURCES): Rename to ...
8962 (kernel_img_SOURCES): ... this.
8963 (kernel_elf_HEADERS): Rename to ...
8964 (kernel_img_HEADERS): ... this. Update all users.
8965 (kernel_elf_ASFLAGS): Rename to ...
8966 (kernel_img_ASFLAGS): ... this.
8967 (kernel_elf_CFLAGS): Rename to ...
8968 (kernel_img_CFLAGS): ... this.
8969 (kernel_elf_LDFLAGS): Rename to ...
8970 (kernel_img_LDFLAGS): ... this.
8971 * conf/i386-coreboot.rmk: Likewise.
8972 * conf/powerpc-ieee1275.rmk: Likewise.
8973
8974 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
8975 with "kernel.img".
8976
f52196ff 89772009-06-21 Pavel Roskin <proski@gnu.org>
8978
c3cee413 8979 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
8980 to match nested functions.
8981 * loader/sparc64/ieee1275/linux.c: Likewise.
8982
f52196ff 8983 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
8984
58750afc 89852009-06-21 Robert Millan <rmh.grub@aybabtu.com>
8986
8987 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
8988 all i386 platforms.
8989
15355c7d 89902009-06-21 Robert Millan <rmh.grub@aybabtu.com>
8991
8992 Fix asm file handling on ELF, and remove workarounds.
8993
8994 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
75421ca9 8995 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
15355c7d 8996 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
8997 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
8998
3f3ec72b 89992009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9000
9001 Load BSD ELF modules
9002
9003 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
9004 and loader/i386/bsd64.c
9005 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
9006 (FREEBSD_MODTYPE_ELF_MODULE): New definition
9007 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
9008 (grub_freebsd_load_elfmodule32): New declaration
9009 (grub_freebsd_load_elfmoduleobj64): Likewise
9010 (grub_freebsd_load_elf_meta32): Likewise
9011 (grub_freebsd_load_elf_meta64): Likewise
9012 (grub_freebsd_add_meta): Likewise
9013 (grub_freebsd_add_meta_module): Likewise
9014 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
9015 (grub_freebsd_add_meta_module): Likewise and move module-specific
9016 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
9017 (grub_cmd_freebsd): Add elf-kernel specific parts
9018 based on grub_freebsd_add_meta_module
9019 (grub_cmd_freebsd_module): Add type parsing moved from
9020 grub_freebsd_add_meta_module
9021 (grub_cmd_freebsd_module_elf): New function
9022 (cmd_freebsd_module_elf): New variable
9023 (GRUB_MOD_INIT): Register freebsd_module_elf
9024 * loader/i386/bsd32.c: New file
9025 * loader/i386/bsd64.c: Likewise
9026 * loader/i386/bsdXX.c: Likewise
9027 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
9028 (grub_elf64_load): Likewise
9029 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
9030 All users updated
9031 (grub_elf64_load_hook_t): Likewise
9032
0db15301 90332009-06-21 Colin Watson <cjwatson@ubuntu.com>
9034
9035 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
9036 variable.
9037 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
9038 don't write a menu entry for recovery mode.
9039
546796c1 90402009-06-20 Robert Millan <rmh.grub@aybabtu.com>
9041
9042 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
9043 after it's no longer needed.
9044
cd7310d5 90452009-06-20 Robert Millan <rmh.grub@aybabtu.com>
9046
9047 * include/grub/i386/loader.h (grub_linux_prot_size)
9048 (grub_linux_tmp_addr, grub_linux_real_addr)
9049 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
9050 GRUB_MACHINE_PCBIOS.
9051 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
9052 common grub_util_info() call to ...
9053 (generate_image): ... here.
9054 Fix use of uninitialized memory, comparison of signed with
9055 unsigned integers and memory leak.
9056 Remove bogus module address message.
9057
ab32d3b5 90582009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9059
9060 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
9061 grub_raid_register
9062 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
9063
024ef597 90642009-06-19 Pavel Roskin <proski@gnu.org>
9065
9066 * configure.ac: Remove stray AC_MSG_CHECKING.
9067
3ac72b51 90682009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9069
9070 * disk/scsi.c (grub_scsi_open): use continue instead of big if
dd74360c 9071
e14cd814 90722009-06-18 Pavel Roskin <proski@gnu.org>
9073
9074 * conf/common.rmk: Add fs_file.mod.
9075 * disk/fs_file.c: New file.
9076 * include/grub/disk.h (enum grub_disk_dev_id): Add
9077 GRUB_DISK_DEVICE_FILE_ID.
9078
26586d98 90792009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
9080
9081 Fix build with Apple's toolchain. Part 2
9082
9083 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
9084 a fake start
9085
26de2bcd 90862009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
9087
9088 Fix build with Apple's toolchain. Part 1
9089
9090 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
9091 for long calls
9092 * configure.ac: remove a leftover AC_MSG_RESULT
dd74360c 9093 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
26de2bcd 9094 Apple's toolchain
9095
09b3490b 90962009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
9097
9098 Fix warnings
9099
9100 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
9101 (decomp_block): initialize ch
9102 use grub_memcpy instead of memcpy
9103
c22a006a 91042009-06-17 Pavel Roskin <proski@gnu.org>
9105
d3638678 9106 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
9107 version, use declarations needed to use vga_text as the startup
9108 console.
9109
c22a006a 9110 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
9111 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
9112 the kernel.
9113 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
9114 and grub_at_keyboard_fini(), it's done on module load and
9115 unload.
9116
05b129e0 91172009-06-17 Felix Zielcke <fzielcke@z-51.de>
9118
9119 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
9120 file can't be found.
9121 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
9122
cf24ed9e 91232009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
9124
9125 Fix newline handling
9126
9127 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
dd74360c 9128 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
cf24ed9e 9129 (grub_script_yylex): don't segfault on unterminated script
9130 newline terminates command and variable
9131
74aa8e4b 91322009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
9133
9134 avoid double grub_adjust_range call. Bug reported by David Simner
9135
9136 * kern/disk.c (grub_disk_write): change to raw disk access before
9137 calling disk_read
9138
1bd265f3 91392009-06-17 Colin Watson <cjwatson@ubuntu.com>
9140
9141 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
9142 spaces, for the benefit of help2man.
9143 * util/i386/efi/grub-mkimage.c (usage): Likewise.
9144
a2d08c06 91452009-06-16 Pavel Roskin <proski@gnu.org>
9146
9147 * kern/i386/halt.c: Include grub/machine/init.h.
9148 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
9149
b97bcb19 91502009-06-16 Felix Zielcke <fzielcke@z-51.de>
9151
9152 * util/grub.d/30_os-prober.in: Use ${root} in the generated
9153 drivemap menuentry.
9154
0644f96c 91552009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
9156
9157 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
9158 `echo' command.
9159
3ef17a2e 91602009-06-16 Pavel Roskin <proski@gnu.org>
9161
9162 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
9163 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
9164 save %dx, we only need %dl and we never change it.
9165 * boot/i386/pc/cdboot.S: Don't set the root drive.
9166 * boot/i386/pc/pxeboot.S: Likewise.
9167 * include/grub/i386/pc/boot.h: Remove
9168 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
9169 GRUB_BOOT_MACHINE_DRIVE_CHECK.
9170 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
9171 * kern/i386/pc/init.c (make_install_device): Remove references
9172 to grub_root_drive.
9173 * kern/i386/pc/startup.S: Likewise.
9174 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
9175
693fe637 91762009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
9177
9178 xnu_uuid command
9179
9180 * commands/xnu_uuid.c: new file
9181 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
9182 (xnu_uuid_mod_SOURCES): new variable
9183 (xnu_uuid_mod_CFLAGS): likewise
9184 (xnu_uuid_mod_LDFLAGS): likewise
9185 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
9186 * conf/i386-ieee1275.rmk: likewise
9187 * conf/i386-pc.rmk: likewise
9188 * conf/powerpc-ieee1275.rmk: likewise
9189 * conf/sparc64-ieee1275.rmk: likewise
9190 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
9191
c9da87d0 91922009-06-16 Pavel Roskin <proski@gnu.org>
9193
9194 * configure.ac: Avoid '==' in test command, it's not portable.
9195
9c6f4596 91962009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
9197
9198 Probe command
9199
9200 * commands/probe.c: new file
9201 * conf/common.rmk (pkglib_MODULES): add probe.mod
9202 (probe_mod_SOURCES): new variable
9203 (probe_mod_CFLAGS): likewise
9204 (probe_mod_LDFLAGS): likewise
9205 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
9206 * conf/i386-ieee1275.rmk: likewise
9207 * conf/i386-pc.rmk: likewise
9208 * conf/powerpc-ieee1275.rmk: likewise
9209 * conf/sparc64-ieee1275.rmk: likewise
9210
70b7f9fd 92112009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9212
9213 Fix handling of string like \"hello\" and "a
9214 b"
9215
9216 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
9217 (grub_script_yylex): fix parsing of quoting, escaping and newline
9218
71c79a6b 92192009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9220
dd74360c 9221 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
71c79a6b 9222 handling
dd74360c 9223
0644f96c 92242009-06-13 Jun Inoue <jun.lambda@gmail.com>
880fc3c4 9225
9226 * util/grub-mkconfig.in: Fix parsing of --output option.
9227
e40893c3 92282009-06-12 Pavel Roskin <proski@gnu.org>
9229
9230 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
9231 genmk.rb don't need to be generated or installed.
9232
3a1acfe2 92332009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
9234
9235 * commands/i386/pc/drivemap_int13h.S: add more comments
9236
3a4575d4 92372009-06-11 Pavel Roskin <proski@gnu.org>
9238
0658e928 9239 * Makefile.in (uninstall): Uninstall manuals.
9240
ca0388f0 9241 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
9242 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
9243 and update-grub_lib in two places.
9244 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
9245
e3b27c39 9246 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
9247 a compiler warning.
9248
3a4575d4 9249 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
9250 `entry_lo' to fix variable shadowing.
9251
af1f4f55 92522009-06-11 Christian Franke <franke@computer.org>
9253
9254 * kern/misc.c (__enable_execute_stack): Add missing return type
9255 to prevent gcc warning.
9256
5225e649 92572009-06-11 Felix Zielcke <fzielcke@z-51.de>
9258
9259 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
9260
7d83bd47 92612009-06-11 Pavel Roskin <proski@gnu.org>
9262
c1cb63ba 9263 * Makefile.in: Don't rely on any scripts being executable.
9264 Always use $(SHELL) to run shell scripts.
9265
7d83bd47 9266 * configure.ac: Always define ___main if using -nostdlib. This
9267 fixes tests on Cygwin.
9268
948f48e7 92692009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
9270
9271 UDF fix
9272
7d83bd47 9273 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
948f48e7 9274 is in bytes and not in blocks
7d83bd47 9275
8ada9bc1 92762009-06-11 Pavel Roskin <proski@gnu.org>
9277
9278 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
9279 warning.
9280
25ad2323 92812009-06-11 Felix Zielcke <fzielcke@z-51.de>
9282
9283 * util/grub.d/30_os-prober.in: Fix a comment. Source
9284 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
9285 to set the root device. Place drivemap command in the generated
9286 chain entry.
9287
e65acb0c 92882009-06-11 Pavel Roskin <proski@gnu.org>
9289
9290 * configure.ac: Remove host_m32. Issues with 64-bit utilities
9291 have long been resolved.
9292
f285fe2d 92932009-06-11 Colin Watson <cjwatson@ubuntu.com>
9294
bd47b0b5 9295 * util/grub.d/10_linux.in: Capitalise "Linux".
9296
f285fe2d 9297 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
9298
a0c62e4e 92992009-06-11 Pavel Roskin <proski@gnu.org>
9300
b6783cb2 9301 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
9302 fix a gcc warning and ensure that the function won't ever exit.
9303
dde032e8 9304 * kern/i386/ieee1275/init.c: Add missing prototype for
9305 grub_stop_floppy().
9306
22cd079d 9307 * loader/ieee1275/multiboot2.c [__i386__]: Include
9308 grub/cpu/multiboot.h.
9309
a0c62e4e 9310 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
9311 casts to short - they are not portable and cause warnings. Fix
9312 use of uninitialized values in input_buf. Use ARRAY_SIZE.
9313
63963d17 93142009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
9315
9316 Drivemap fixes
9317
9318 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
9319 new function
9320 (grub_get_root_biosnumber_saved): new variable
9321 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
9322 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
775dbc4d 9323 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
63963d17 9324 %dx after the call if necessary
9325 * conf/common.rmk (pkglib_MODULES): remove boot.mod
9326 (boot_mod_SOURCES): remove
9327 (boot_mod_CFLAGS): remove
9328 (boot_mod_LDFLAGS): remove
9329 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
9330 (boot_mod_SOURCES): new variable
9331 (boot_mod_CFLAGS): likewise
9332 (boot_mod_LDFLAGS): likewise
9333 * conf/i386-efi.rmk: likewise
9334 * conf/i386-ieee1275.rmk: likewise
9335 * conf/i386-pc.rmk: likewise
9336 * conf/powerpc-ieee1275.rmk: likewise
9337 * conf/sparc64-ieee1275.rmk: likewise
9338 * conf/x86_64-efi.rmk: likewise
9339 * include/grub/i386/pc/biosnum.h: new file
9340 * lib/i386/pc/biosnum.c: likewise
9341 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
9342 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
9343 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
775dbc4d 9344
33abf7ae 93452009-06-10 Pavel Roskin <proski@gnu.org>
9346
5ac35b35 9347 * io/gzio.c (test_header): Don't reuse one buffer for all data.
9348 Use separate variables. Read only the file size at the end, but
9349 not the checksum that we don't use.
9350
5c5215d5 9351 * kern/file.c (grub_file_read): Use void pointer for the buffer.
9352 Adjust all callers.
9353
27d5fef7 9354 * kern/ieee1275/openfw.c: Remove libc includes.
9355 * kern/ieee1275/cmain.c: Likewise.
9356 * include/grub/ieee1275/ieee1275.h: Likewise.
9357
33abf7ae 9358 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
9359 compiler warnings.
9360
19d50c2b 93612009-06-10 Felix Zielcke <fzielcke@z-51.de>
9362
9363 * Makefile.in: Remove all trailing whitespace.
9364 * conf/i386-pc.rmk: Likewise.
9365 * conf/powerpc-ieee1275.rmk: Likewise.
9366 * conf/sparc64-ieee1275.rmk: Likewise.
9367 * docs/grub.texi: Likewise.
9368 * docs/texinfo.tex: Likewise.
9369 * disk/fs_uuid.c: Likewise.
9370 * disk/lvm.c: Likewise.
9371 * disk/scsi.c: Likewise.
9372 * disk/ata.c: Likewise.
9373 * disk/ieee1275/ofdisk.c: Likewise.
9374 * disk/i386/pc/biosdisk.c: Likewise.
9375 * disk/host.c: Likewise.
9376 * disk/raid.c: Likewise.
9377 * disk/efi/efidisk.c: Likewise.
9378 * disk/usbms.c: Likewise.
9379 * disk/memdisk.c: Likewise.
9380 * disk/loopback.c: Likewise.
9381 * kern/powerpc/dl.c: Likewise.
9382 * kern/device.c: Likewise.
9383 * kern/dl.c: Likewise.
9384 * kern/sparc64/dl.c: Likewise.
9385 * kern/ieee1275/ieee1275.c: Likewise.
9386 * kern/term.c: Likewise.
9387 * kern/fs.c: Likewise.
9388 * kern/i386/dl.c: Likewise.
9389 * kern/i386/pc/startup.S: Likewise.
9390 * kern/i386/pc/init.c: Likewise.
9391 * kern/i386/pc/mmap.c: Likewise.
9392 * kern/i386/pc/lzo1x.S: Likewise.
9393 * kern/i386/ieee1275/init.c: Likewise.
9394 * kern/i386/realmode.S: Likewise.
9395 * kern/i386/tsc.c: Likewise.
9396 * kern/partition.c: Likewise.
9397 * kern/corecmd.c: Likewise.
9398 * kern/file.c: Likewise.
9399 * kern/efi/efi.c: Likewise.
9400 * kern/efi/init.c: Likewise.
9401 * kern/efi/mm.c: Likewise.
9402 * kern/main.c: Likewise.
9403 * kern/err.c: Likewise.
9404 * kern/env.c: Likewise.
9405 * kern/disk.c: Likewise.
9406 * kern/generic/millisleep.c: Likewise.
9407 * kern/generic/rtc_get_time_ms.c: Likewise.
9408 * kern/misc.c: Likewise.
9409 * kern/parser.c: Likewise.
9410 * genmk.rb: Likewise.
9411 * configure.ac: Likewise.
9412 * boot/i386/pc/diskboot.S: Likewise.
9413 * boot/i386/pc/pxeboot.S: Likewise.
9414 * boot/i386/pc/boot.S: Likewise.
9415 * boot/i386/pc/lnxboot.S: Likewise.
9416 * boot/i386/pc/cdboot.S: Likewise.
9417 * parttool/pcpart.c: Likewise.
9418 * video/readers/tga.c: Likewise.
9419 * video/video.c: Likewise.
9420 * video/bitmap.c: Likewise.
9421 * lib/envblk.c: Likewise.
9422 * lib/i386/setjmp.S: Likewise.
9423 * fs/xfs.c: Likewise.
9424 * fs/afs.c: Likewise.
9425 * fs/fat.c: Likewise.
9426 * fs/ntfs.c: Likewise.
9427 * fs/udf.c: Likewise.
9428 * fs/affs.c: Likewise.
9429 * fs/iso9660.c: Likewise.
9430 * fs/hfs.c: Likewise.
9431 * fs/fshelp.c: Likewise.
9432 * fs/ext2.c: Likewise.
9433 * fs/jfs.c: Likewise.
9434 * fs/reiserfs.c: Likewise.
9435 * fs/hfsplus.c: Likewise.
9436 * fs/minix.c: Likewise.
9437 * fs/cpio.c: Likewise.
9438 * fs/sfs.c: Likewise.
9439 * fs/ufs.c: Likewise.
9440 * efiemu/prepare.c: Likewise.
9441 * efiemu/loadcore_common.c: Likewise.
9442 * efiemu/runtime/efiemu.sh: Likewise.
9443 * efiemu/runtime/efiemu.S: Likewise.
9444 * efiemu/runtime/efiemu.c: Likewise.
9445 * efiemu/pnvram.c: Likewise.
9446 * efiemu/main.c: Likewise.
9447 * efiemu/i386/pc/cfgtables.c: Likewise.
9448 * efiemu/i386/loadcore64.c: Likewise.
9449 * efiemu/i386/loadcore32.c: Likewise.
9450 * efiemu/loadcore.c: Likewise.
9451 * efiemu/symbols.c: Likewise.
9452 * efiemu/mm.c: Likewise.
9453 * include/grub/autoefi.h: Likewise.
9454 * include/grub/datetime.h: Likewise.
9455 * include/grub/term.h: Likewise.
9456 * include/grub/hfs.h: Likewise.
9457 * include/grub/lvm.h: Likewise.
9458 * include/grub/i386/tsc.h: Likewise.
9459 * include/grub/i386/linux.h: Likewise.
9460 * include/grub/i386/xnu.h: Likewise.
9461 * include/grub/i386/efiemu.h: Likewise.
9462 * include/grub/i386/pc/biosdisk.h: Likewise.
9463 * include/grub/i386/pc/memory.h: Likewise.
9464 * include/grub/i386/pc/vbe.h: Likewise.
9465 * include/grub/parttool.h: Likewise.
9466 * include/grub/video.h: Likewise.
9467 * include/grub/memory.h: Likewise.
9468 * include/grub/fs.h: Likewise.
9469 * include/grub/partition.h: Likewise.
9470 * include/grub/xnu.h: Likewise.
9471 * include/grub/efi/api.h: Likewise.
9472 * include/grub/efi/pe32.h: Likewise.
9473 * include/grub/efi/memory.h: Likewise.
9474 * include/grub/multiboot.h: Likewise.
9475 * include/grub/usbdesc.h: Likewise.
9476 * include/grub/multiboot2.h: Likewise.
9477 * include/grub/acpi.h: Likewise.
9478 * include/grub/efiemu/efiemu.h: Likewise.
9479 * include/grub/disk.h: Likewise.
9480 * include/grub/ieee1275/ieee1275.h: Likewise.
9481 * include/grub/net.h: Likewise.
9482 * include/grub/machoload.h: Likewise.
9483 * include/grub/macho.h: Likewise.
9484 * include/multiboot.h: Likewise.
9485 * genmoddep.awk: Likewise.
9486 * normal/main.c: Likewise.
9487 * normal/menu_entry.c: Likewise.
9488 * normal/menu_viewer.c: Likewise.
9489 * normal/completion.c: Likewise.
9490 * normal/cmdline.c: Likewise.
9491 * normal/misc.c: Likewise.
9492 * normal/datetime.c: Likewise.
9493 * bus/usb/usbtrans.c: Likewise.
9494 * bus/usb/ohci.c: Likewise.
9495 * bus/usb/uhci.c: Likewise.
9496 * bus/usb/usb.c: Likewise.
9497 * mmap/efi/mmap.c: Likewise.
9498 * mmap/i386/pc/mmap_helper.S: Likewise.
9499 * mmap/i386/pc/mmap.c: Likewise.
9500 * mmap/i386/mmap.c: Likewise.
9501 * mmap/i386/uppermem.c: Likewise.
9502 * mmap/mmap.c: Likewise.
9503 * commands/acpi.c: Likewise.
9504 * commands/echo.c: Likewise.
9505 * commands/blocklist.c: Likewise.
9506 * commands/loadenv.c: Likewise.
9507 * commands/usbtest.c: Likewise.
9508 * commands/boot.c: Likewise.
9509 * commands/parttool.c: Likewise.
9510 * commands/search.c: Likewise.
9511 * commands/cat.c: Likewise.
9512 * commands/i386/pc/play.c: Likewise.
9513 * commands/i386/pc/drivemap.c: Likewise.
9514 * commands/i386/pc/vbeinfo.c: Likewise.
9515 * commands/i386/pc/acpi.c: Likewise.
9516 * commands/i386/pc/vbetest.c: Likewise.
9517 * commands/ls.c: Likewise.
9518 * commands/cmp.c: Likewise.
9519 * commands/test.c: Likewise.
9520 * commands/efi/acpi.c: Likewise.
9521 * commands/gptsync.c: Likewise.
9522 * commands/help.c: Likewise.
9523 * partmap/amiga.c: Likewise.
9524 * partmap/apple.c: Likewise.
9525 * partmap/acorn.c: Likewise.
9526 * partmap/pc.c: Likewise.
9527 * partmap/sun.c: Likewise.
9528 * partmap/gpt.c: Likewise.
9529 * script/sh/lexer.c: Likewise.
9530 * script/sh/function.c: Likewise.
9531 * font/font.c: Likewise.
9532 * font/font_cmd.c: Likewise.
9533 * loader/powerpc/ieee1275/linux.c: Likewise.
9534 * loader/efi/chainloader.c: Likewise.
9535 * loader/multiboot_loader.c: Likewise.
9536 * loader/macho.c: Likewise.
9537 * loader/i386/multiboot.c: Likewise.
9538 * loader/i386/linux.c: Likewise.
9539 * loader/i386/pc/linux.c: Likewise.
9540 * loader/i386/pc/multiboot2.c: Likewise.
9541 * loader/i386/pc/chainloader.c: Likewise.
9542 * loader/i386/pc/xnu.c: Likewise.
9543 * loader/i386/bsd_trampoline.S: Likewise.
9544 * loader/i386/efi/linux.c: Likewise.
9545 * loader/i386/multiboot_elfxx.c: Likewise.
9546 * loader/i386/bsd_helper.S: Likewise.
9547 * loader/i386/bsd.c: Likewise.
9548 * loader/i386/linux_trampoline.S: Likewise.
9549 * loader/i386/xnu_helper.S: Likewise.
9550 * loader/i386/xnu.c: Likewise.
9551 * loader/i386/bsd_pagetable.c: Likewise.
9552 * loader/i386/multiboot_helper.S: Likewise.
9553 * loader/xnu.c: Likewise.
9554 * loader/xnu_resume.c: Likewise.
9555 * io/gzio.c: Likewise.
9556 * term/efi/console.c: Likewise.
9557 * term/terminfo.c: Likewise.
9558 * term/ieee1275/ofconsole.c: Likewise.
9559 * term/i386/pc/serial.c: Likewise.
9560 * term/i386/pc/vesafb.c: Likewise.
9561 * term/i386/pc/vga.c: Likewise.
9562 * term/usb_keyboard.c: Likewise.
9563 * term/gfxterm.c: Likewise.
9564 * aclocal.m4: Likewise.
9565 * util/lvm.c: Likewise.
9566 * util/grub.d/30_os-prober.in: Likewise.
9567 * util/grub.d/10_hurd.in: Likewise.
9568 * util/console.c: Likewise.
9569 * util/grub-macho2img.c: Likewise.
9570 * util/grub-probe.c: Likewise.
9571 * util/hostfs.c: Likewise.
9572 * util/i386/pc/grub-mkimage.c: Likewise.
9573 * util/i386/pc/grub-setup.c: Likewise.
9574 * util/i386/efi/grub-mkimage.c: Likewise.
9575 * util/grub-mkconfig.in: Likewise.
9576 * util/raid.c: Likewise.
9577 * util/resolve.c: Likewise.
9578 * util/grub-mkdevicemap.c: Likewise.
9579 * util/grub-emu.c: Likewise.
9580 * util/getroot.c: Likewise.
9581 * util/hostdisk.c: Likewise.
9582 * util/usb.c: Likewise.
9583 * util/grub-editenv.c: Likewise.
9584 * util/misc.c: Likewise.
9585
d2d49665 95862009-06-10 Felix Zielcke <fzielcke@z-51.de>
9587
9588 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
9589 `genparttoollist.sh'.
9590 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
9591 Add `*.sh' to the list find searches for and change `mdate.sh'
9592 to `mdate-sh'.
9593
fe052e37 95942009-06-10 Pavel Roskin <proski@gnu.org>
9595
2763ac18 9596 * include/grub/multiboot2.h: Provide compatibility defines for
9597 multiboot2.h.
9598 * include/multiboot2.h: Include stdint.h only if needed, using
9599 angle brackets.
9600 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
9601 grub/multiboot2.h.
9602 * loader/ieee1275/multiboot2.c: Likewise.
9603 * loader/multiboot2.c: Likewise.
9604 * loader/multiboot_loader.c: Likewise.
9605
437e6adc 9606 * configure.ac: Use -nostdlib when probing for the target. It
9607 should not be required to have libc for the target.
9608
06a6836c 9609 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
9610 they fail without libc headers for the target.
9611 * include/grub/powerpc/libgcc.h: Use weak attribute for all
9612 exports.
9613 * include/grub/sparc64/libgcc.h: Likewise. Don't use
9614 preprocessor conditionals.
9615
fe052e37 9616 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
9617 build system doesn't need to be aware of the tar.c internals.
9618
afd22553 96192009-06-09 Michel Hermier <michel.hermier@gmail.com>
87b8f28c 9620
afd22553 9621 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
8ec4a6d0 9622
6b787c4f 96232009-06-09 Robert Millan <rmh.grub@aybabtu.com>
9624
9625 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
9626 disk limit to 26 for IDE, Virtio, Xen and SCSI.
9627
96282009-06-09 Felix Zielcke <fzielcke@z-51.de>
9629
9630 * util/i386/pc/grub-install.in: Change the error message if UUIDs
473d1e45 9631 aren't available if ata.mod gets used.
6b787c4f 9632
473d1e45 96332009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
e23721e8 9634
473d1e45 9635 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
e23721e8 9636 initialising controller.
473d1e45 9637 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
e23721e8 9638
255a27d4 96392009-06-08 Felix Zielcke <fzielcke@z-51.de>
9640
9641 * util/i386/pc/grub-install.in: Add a parameter --disk-module
9642 to choose between ata and biosdisk module on i386-pc.
9643
473d1e45 96442009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
69da8877 9645
d55842d8 9646 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
9647 Subclass and Programming Interface fields in terms of the 3 byte
9648 Class Code register.
9649 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
9650
fa5db0b1 9651 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
9652 interface is OHCI. Add grub_dprintf for symmetry with
9653 bus/usb/uhci.c.
9654 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
9655 interface is UHCI. Add interf variable for programming
9656 interface. Print interface with class/subclass.
9657
c0947beb 9658 * bus/usb/ohci.c: Set interf with correct field.
9659
69da8877 9660 * bus/usb/uhci.c: Remove unneeded doubled lines.
9661 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
9662 Remove whitespace inside comment.
9663
9e172e30 96642009-06-08 Robert Millan <rmh.grub@aybabtu.com>
9665
9666 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
9667 as fallback an equivalent option without depth.
9668
de65ee2b 96692009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9670
9671 Not fail if unable to retrieve C/H/S on LBA disks
9672
473d1e45 9673 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
de65ee2b 9674 if unable to retrieve C/H/S on LBA disks
9675
b57ea2c9 96762009-06-08 Pavel Roskin <proski@gnu.org>
9677
9678 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
9679 about aliasing.
9680
af361263 96812009-06-08 Felix Zielcke <fzielcke@z-51.de>
9682
9683 * Makefile.in (uninstall): Remove all $lib_DATA files.
9684
4c9ec6b3 96852009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9686
9687 Bugfix: install on partitionless device
9688
9689 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
9690 is a whole disk
9691
e76fc924 96922009-06-08 Felix Zielcke <fzielcke@z-51.de>
9693
9694 * Makefile.in (uninstall): Remove all $include_DATA files.
9695
ba5a0d05 96962009-06-08 Felix Zielcke <fzielcke@z-51.de>
9697
9698 * commands/true.c: New file. Implement the true and false commands.
9699 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
9700 (true_mod_SOURCES): New variable.
9701 (true_mod_CFLAGS): Likewise.
9702 (true_mod_LDFLAGS): Likewise.
9703
c8048e32 97042009-06-05 Colin D Bennett <colin@gibibit.com>
9705
9706 Optimized font character lookup using binary search instead of linear
9707 search. Fonts now are required to have the character index ordered by
9708 code point.
9709
9710 * font/font.c (load_font_index): Verify that fonts have ordered
9711 character indices.
9712 (find_glyph): Use binary search instead of linear search to find a
9713 character in a font.
9714
408305be 97152009-06-05 Michael Scherer <misc@mandriva.org>
9716
9717 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
9718 uses case sensitive btree.
9719 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
9720 only for case insensitive filesystems.
9721
8ee1e0d9 97222009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9723
9724 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
9725 * conf/common.rmk (search_mod_CFLAGS): likewise
9726
a9966eb1 97272009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
9728
473d1e45 9729 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
a9966eb1 9730 compensate a compiler bug
9731
9e7100fb 97322009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
9733
473d1e45 9734 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
9e7100fb 9735 instead of '\b'
473d1e45 9736
ede21d71 97372009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
9738
9739 Definitions for creating asm symbols with Apple's CC
9740
9741 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
9742 [APPLE_CC] (VARIABLE): likewise
9743
9dbf7653 97442009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
9745
9746 Disable lnxboot.img when compiled
9747 with Apple's CC
9748
9749 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
9750 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
9751 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
9752 [! APPLE_CC] (CODE_LENG): skip
9753 [! APPLE_CC] (setup_sects): likewise
9754 [! APPLE_CC]: skip filling
473d1e45 9755
e93cdc3d 97562009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
9757
9758 Address in trampolines based on 32-bit registers when compiled
9759 with Apple's CC
9760
473d1e45 9761 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
e93cdc3d 9762 for addresses
9763 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
9764
6c688477 97652009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
9766
9767 Avoid aliases when compiling with Apple's CC for PCBIOS machine
9768
9769 * kern/misc.c [APPLE_CC] (memcpy): new function
9770 [APPLE_CC] (memmove): likewise
9771 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
473d1e45 9772 (memcpy): define alias conditionally on !APPLE_CC
6c688477 9773 (memset): likewise
9774 (abort): likewise
9775 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
9776 APPLE_CC are defined
9777 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
9778 (grub_assert_fail): make prototype conditional
9779
e37ffc5c 97802009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
9781
9782 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
9783
473d1e45 9784 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
9785 grub-macho2img
e37ffc5c 9786 (CLEANFILES): add grub-macho2img
9787 (grub_macho2img_SOURCES): new variable
9788 * kern/i386/pc/startup.S (bss_start): new variable
9789 (bss_end): likewise
9790 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
9791 * util/grub-macho2img.c: new file
9792
cf00df31 97932009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
9794
9795 Use objconv when compiling with Apple's CC
9796
9797 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
9798 (efiemu64.o): likewise
9799 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
9800 when compiling with Apple's CC
9801 (efiemu64_s.o): likewise
9802 * configure.ac: check for objconv when compiling with Apple's CC
9803 * genmk.rb: use objconv for modules when compiled with Apple's CC
473d1e45 9804
d119a20c 98052009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
9806
9807 Define segment as well as section when compiling with
9808 Apple's CC
9809
9810 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
9811 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
9812 (efiemu_convert_pointer): likewise
9813 (efiemu_set_virtual_address_map): likewise
9814 (efiemu_convert_pointer): likewise
9815 (efiemu_getcrc32): likewise
9816 (init_crc32_table): likewise
9817 (reflect): likewise
9818 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
9819 (GRUB_MOD_DEP): likewise
473d1e45 9820
c8600122 98212009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
9822
9823 Allow a compilation without -mcmodel=large
9824
9825 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
9826 when compiled without -mcmodel=large
473d1e45 9827 (filter_memory_map): remove memory post 4 GiB when compiled
c8600122 9828 without -mcmodel=large
473d1e45 9829 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
c8600122 9830 TARGET_CFLAGS when -mcmodel=large isn't supported
473d1e45 9831
e8df1d4e 98322009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
9833
9834 Remove nested functions in efiemu core
9835
9836 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
473d1e45 9837
cc6c3ac1 98382009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
9839
9840 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
9841
9842 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
9843 temporary storage
473d1e45 9844 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
9845 using Apple's CC
cc6c3ac1 9846 (grub_cpu_is_tsc_supported): likewise
9847 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
473d1e45 9848
3e325901 98492009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
9850
9851 Absolute addressing through constant with Apple's cc
9852
9853 * kern/i386/pc/startup.S: Define necessary constants
9854 and address through it when using ABS with Apple's CC
9855 * boot/i386/pc/diskboot.S: likewise
9856 * boot/i386/pc/boot.S: likewise
9857 * boot/i386/pc/lnxboot.S: likewise
9858 * boot/i386/pc/cdboot.S: likewise
9859 * mmap/i386/pc/mmap_helper.S: likewise
9860 * commands/i386/pc/drivemap_int13h.S: likewise
9861
2b167a72 98622009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
9863
9864 Check if compiler is apple cc
9865
9866 * Makefile.in (ASFLAGS): new variable
9867 (TARGET_ASFLAGS): likewise
9868 (TARGET_MODULE_FORMAT): likewise
9869 (TARGET_APPLE_CC): likewise
9870 (OBJCONV): likewise
9871 (TARGET_IMG_CFLAGS): likewise
9872 (TARGET_CPPFLAGS): add includedir
9873 * configure.ac: call grub_apple_cc and grub_apple_target_cc
9874 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
9875 Check for linker script only if compiler isn't Apple's CC
9876 (TARGET_MODULE_FORMAT): set
9877 (TARGET_APPLE_CC): likewise
9878 (TARGET_ASFLAGS): likewise
9879 (ASFLAGS): likewise
9880 Check for objcopy only if compiler isn't Apple's CC
9881 Check for BSS symbol only if compiler isn't Apple's CC
9882 * genmk.rb: adapt nm options if we use Apple's utils
9883 * aclocal.m4 (grub_apple_cc): new test
9884 (grub_apple_target_cc): likewise
473d1e45 9885
fb14123e 98862009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
9887
9888 Simplify sed expressions and improve awk
9889
9890 * Makefile.in (install-local): simplify sed expression
9891 * gencmdlist.sh: likewise
9892 * genmoddep.awk: avoid adding module as a dependency of itself
9893
5b889789 98942009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
9895
9896 Add missing start symbols
9897
9898 * boot/i386/pc/boot.S: add start
fb14123e 9899 * boot/i386/pc/pxeboot.S: likewise
473d1e45 9900
fd2bf2e3 99012009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
9902
9903 Fix wrong assumptions with grub-mkimage on EFI
473d1e45 9904
9905 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
fd2bf2e3 9906 (relocate_addresses): consider both r_addend and value at offset
9907 (make_mods_section): zerofill modinfo and header
9908 (convert_elf): write prefix here
473d1e45 9909
5389763d 99102009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
9911
9912 Use .asciz instead of .string
9913
9914 * i386/pc/diskboot.S: use .asciz instead of .string
9915 * i386/pc/boot.S: likewise
9916 * include/grub/dl.h (GRUB_MOD_DEP): likewise
9917 (GRUB_MOD_NAME): likewise
473d1e45 9918
3eb5ed4e 99192009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
9920
9921 gfxpayload support
9922
9923 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
9924 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
9925 (grub_video_setup): remove
9926 (grub_video_set_mode): new prototype
9927 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
9928 (vid_mode): remove
9929 (linux_vesafb_res): compile only on PCBIOS
9930 (grub_linux_boot): support gfxpayload
9931 * loader/i386/pc/xnu.c (video_hook): new function
9932 (grub_xnu_set_video): support gfxpayload
9933 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
9934 (DEFAULT_VIDEO_HEIGHT): likewise
9935 (DEFAULT_VIDEO_FLAGS): likewise
9936 (DEFAULT_VIDEO_MODE): new definition
9937 (video_hook): new function
9938 (grub_gfxterm_init): use grub_video_set_mode
473d1e45 9939 * util/grub.d/30_os-prober.in: remove explicit modesetting before
3eb5ed4e 9940 loading xnu
9941 * video/video.c (grub_video_setup): removed
473d1e45 9942 (grub_video_set_mode): new function based on grub_gfxterm_init and
3eb5ed4e 9943 grub_video_setup
9944
4b0e1143 99452009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
9946
9947 Avoid calling biosdisk in drivemap
9948
9949 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
9950 (revparse_biosdisk): likewise
9951 (list_mappings): derive name from id directly
9952 (grub_cmd_drivemap): use tryparse_diskstring
473d1e45 9953
fda6cb98 99542009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
9955
9956 Script fixes
9957
9958 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
9959 (grub_lexer_param): add tokenonhold
9960 (grub_script_create_cmdline): remove cmdline. All callers updated
9961 (grub_script_function_create): make functionname
9962 grub_script_arg. All callers updated
9963 (grub_script_execute_argument_to_string): new prototype
9964 * kern/parser.c (state_transitions): reorder
9965 (grub_parser_cmdline_state): fix a bug and make more compact
473d1e45 9966 * script/sh/execute.c (grub_script_execute_argument_to_string):
fda6cb98 9967 make global
9968 (grub_script_execute_cmdline): use new format
9969 * script/sh/function.c (grub_script_function_create): make functionname
9970 grub_script_arg. All callers updated
473d1e45 9971 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
fda6cb98 9972 (grub_script_yylex): remove
9973 (grub_script_yylex2): renamed to ...
9974 (grub_script_yylex): ...renamed
9975 parse the expressions like a${b}c
9976 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
9977 (GRUB_PARSER_TOKEN_VAR): remove
9978 (GRUB_PARSER_TOKEN_NAME): likewise
9979 ("if"): declare as typeless
9980 ("while"): likewise
9981 ("function"): likewise
9982 ("else"): likewise
9983 ("then"): likewise
9984 ("fi"): likewise
9985 (text): remove
9986 (argument): likewise
9987 (script): accept empty scripts and make exit on error
9988 (arguments): use GRUB_PARSER_TOKEN_ARG
9989 (function): likewise
9990 (command): move error handling to script
9991 (menuentry): move grub_script_lexer_ref before
473d1e45 9992 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
fda6cb98 9993 argument. All callers updated
9994
f4448a07 99952009-06-04 Robert Millan <rmh.grub@aybabtu.com>
9996
9997 Prevent GRUB from probing floppies during boot.
9998
9999 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
10000 * commands/search.c (options): Add --no-floppy.
10001 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
10002 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
10003 --no-floppy when searching for UUIDs.
10004
2bf5885a 100052009-06-04 Robert Millan <rmh.grub@aybabtu.com>
10006
10007 Simplify the code duplication in commands/search.c.
10008
10009 * commands/search.c (search_label, search_fs_uuid): Merge into ...
10010 (search_fs): ... this. Update all users.
10011
f6fd460a 100122009-06-03 Felix Zielcke <fzielcke@z-51.de>
10013
10014 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
10015
cbb3c83e 100162009-05-28 Pavel Roskin <proski@gnu.org>
10017
57788cfd 10018 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
10019 Remove the original symlink explicitly.
10020
cbb3c83e 10021 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
10022 just one slash. That's how grub_fshelp_find_file() does it.
10023
cd0d5e30 100242009-05-26 Pavel Roskin <proski@gnu.org>
10025
f0f8bbe2 10026 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
10027 to `str'.
10028
cd0d5e30 10029 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
10030 possibly unused.
10031
8c2cab51 100322009-05-25 Christian Franke <franke@computer.org>
10033
10034 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
10035 register.
10036 (grub_atapi_identify): Add wait after drive select.
10037 (grub_ata_identify): Do more strict status register check before
10038 calling grub_atapi_identify (). Suppress error message if status
10039 register is 0x00 after command failure. Add status register
10040 check after PIO read to avoid bogus identify due to stuck DRQ.
10041 Thanks to Pavel Roskin for testing.
10042 (grub_device_initialize): Remove unsafe status register check.
10043 Thanks to 'phcoder' for problem report and patch.
10044 Prevent sign extension in debug message.
10045
230c0ad6 100462009-05-23 Colin D Bennett <colin@gibibit.com>
10047
10048 Cleaned up `include/grub/normal.h'. Grouped prototypes by
10049 definition file, and functions defined in `normal/menu.c' have had
10050 their prototypes moved to `include/grub/menu.h' for consistency.
10051
10052 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
10053 from normal.h.
10054 (grub_menu_get_entry): Likewise.
10055 (grub_menu_get_timeout): Likewise.
10056 (grub_menu_set_timeout): Likewise.
10057 (grub_menu_execute_entry): Likewise.
10058 (grub_menu_execute_with_fallback): Likewise.
10059 (grub_menu_entry_run): Likewise.
10060
10061 * include/grub/normal.h: Re-ordered and grouped function
10062 prototypes by file that the function is defined in.
10063 (grub_menu_execute_callback): Removed; moved to menu.h.
10064 (grub_menu_get_entry): Likewise.
10065 (grub_menu_get_timeout): Likewise.
10066 (grub_menu_set_timeout): Likewise.
10067 (grub_menu_execute_entry): Likewise.
10068 (grub_menu_execute_with_fallback): Likewise.
10069 (grub_menu_entry_run): Likewise.
10070 (grub_menu_addentry): Renamed from this ...
10071 (grub_normal_add_menu_entry): ... to this.
10072
10073 * normal/main.c (grub_menu_addentry): Renamed from this ...
10074 (grub_normal_add_menu_entry): ... to this.
10075
10076 * script/sh/execute.c (grub_script_execute_menuentry): Update
10077 reference to renamed grub_menu_addentry function.
10078
861f03a5 100792009-05-23 Felix Zielcke <fzielcke@z-51.de>
10080
10081 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
10082
96b1619a 100832009-05-22 Pavel Roskin <proski@gnu.org>
10084
bf6a5fb2 10085 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
10086 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
10087 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
10088 compiling for the i386 targets, but not for the utilities.
10089
96b1619a 10090 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
10091 to grub_uint8_t.
10092 (grub_root_drive): Likewise.
10093 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
10094 remove alignment.
10095 (grub_root_drive): Change size to byte.
10096 (grub_start_addr): Remove.
10097 (grub_end_addr): Likewise.
10098 (grub_apm_bios_info): Likewise.
10099
b729776b 101002009-05-21 Felix Zielcke <fzielcke@z-51.de>
10101
10102 * normal/i386: Remove.
10103 * normal/powerpc: Likewise.
10104 * normal/sparc64: Likewise.
10105 * normal/x86_64: Likewise.
10106
0a15ce80 101072009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
10108
10109 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
473d1e45 10110 * loader/i386/linux_trampoline.S: Fix indentation
0a15ce80 10111 * loader/i386/xnu_helper.S: Likewise
d6da58e6 10112
33db9015 101132009-05-18 Colin D Bennett <colin@gibibit.com>
10114
d6da58e6 10115 Display error messages when parsing a Lua statement fails.
10116 Previously, executing a syntactically invalid statement like
10117 ")foo" or "bar;" would silently fail.
33db9015 10118
10119 * script/lua/grub_main.c (handle_lua_error): New function.
d6da58e6 10120 (grub_lua_parse_line): Improved reporting of Lua parser and
10121 execution errors.
33db9015 10122
46422c89 101232009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
10124
10125 Remove -Werror which causes build to fail on some systems
10126
10127 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
10128 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
10129 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
18f547ad 10130
22f53a96 101312009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
10132
10133 trampoline for linux on 64-bit platform
10134
18f547ad 10135 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
10136 loader/i386/efi/linux_trampoline.S
10137 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
473d1e45 10138 declaration
d6da58e6 10139 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
10140 here
22f53a96 10141 * loader/i386/linux_trampoline.S: moved here
d6da58e6 10142 * loader/i386/efi/linux.c (allocate_pages): reserve space for
10143 trampoline
22f53a96 10144 (jumpvector): removed
10145 (grub_linux_trampoline_start): new declaration
10146 (grub_linux_trampoline_end): likewise
10147 (grub_linux_boot): use trampoline when on 64-bit platform
10148 * loader/i386/linux.c: likewise
10149
cb5a0f40 101502009-05-16 Pavel Roskin <proski@gnu.org>
10151
10152 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
10153 const to avoid a warning.
10154 (grub_lua_setenv): Likewise.
10155 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
10156 lmsg to fix a warning.
10157
334f2c28 101582009-05-16 Felix Zielcke <fzielcke@z-51.de>
10159
10160 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
7dd10fce 10161 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
10162 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
10163 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
10164 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
10165 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
10166 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
10167 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
334f2c28 10168
59e5d3ec 101692009-05-16 Felix Zielcke <fzielcke@z-51.de>
10170
10171 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
10172
9d87a1ba 101732009-05-16 Bean <bean123ch@gmail.com>
10174
10175 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
10176 (lua_mod_SOURCES): New variable.
10177 (lua_mod_CFLAGS): Likewise.
10178 (lua_mod_LDFLAGS): Likewise.
10179
10180 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
10181 (setjmp_mod_SOURCES): New variable.
10182 (setjmp_mod_CFLAGS): Likewise.
10183 (setjmp_LDFLAGS): Likewise.
10184
10185 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
10186 (setjmp_mod_SOURCES): New variable.
10187 (setjmp_mod_CFLAGS): Likewise.
10188 (setjmp_LDFLAGS): Likewise.
10189
10190 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
10191 (setjmp_mod_SOURCES): New variable.
10192 (setjmp_mod_CFLAGS): Likewise.
10193 (setjmp_LDFLAGS): Likewise.
10194
10195 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
10196 (setjmp_mod_SOURCES): New variable.
10197 (setjmp_mod_CFLAGS): Likewise.
10198 (setjmp_LDFLAGS): Likewise.
10199
10200 * normal/i386/setjmp.S: Moved from here ...
10201 * lib/i386/setjmp.S: ... Moved here
10202 * normal/x86_64/setjmp.S: Moved from here ...
10203 * lib/x86_64/setjmp.S: ... Moved here
10204 * normal/powerpc/setjmp.S: Moved from here ...
10205 * lib/powerpc/setjmp.S: ... Moved here
10206 * normal/sparc64/setjmp.S: Moved from here ...
10207 * lib/sparc64/setjmp.S: ... Moved here
10208
10209 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
10210 returns_twice in mingw.
10211
10212 * script/lua/grub_lib.c: New file.
10213 * script/lua/grub_lib.h: Likewise.
10214 * script/lua/grub_lua.h: Likewise.
10215 * script/lua/grub_main.c: Likewise.
10216 * script/lua/lapi.c: Likewise.
10217 * script/lua/lapi.h: Likewise.
10218 * script/lua/lauxlib.c: Likewise.
10219 * script/lua/lauxlib.h: Likewise.
10220 * script/lua/lbaselib.c: Likewise.
10221 * script/lua/lcode.c: Likewise.
10222 * script/lua/lcode.h: Likewise.
10223 * script/lua/ldblib.c: Likewise.
10224 * script/lua/ldebug.c: Likewise.
10225 * script/lua/ldebug.h: Likewise.
10226 * script/lua/ldo.c: Likewise.
10227 * script/lua/ldo.h: Likewise.
10228 * script/lua/ldump.c: Likewise.
10229 * script/lua/lfunc.c: Likewise.
10230 * script/lua/lfunc.h: Likewise.
10231 * script/lua/lgc.c: Likewise.
10232 * script/lua/lgc.h: Likewise.
10233 * script/lua/linit.c: Likewise.
10234 * script/lua/liolib.c: Likewise.
10235 * script/lua/llex.c: Likewise.
10236 * script/lua/llex.h: Likewise.
10237 * script/lua/llimits.h: Likewise.
10238 * script/lua/lmathlib.c: Likewise.
10239 * script/lua/lmem.c: Likewise.
10240 * script/lua/lmem.h: Likewise.
10241 * script/lua/loadlib.c: Likewise.
10242 * script/lua/lobject.c: Likewise.
10243 * script/lua/lobject.h: Likewise.
10244 * script/lua/lopcodes.c: Likewise.
10245 * script/lua/lopcodes.h: Likewise.
10246 * script/lua/loslib.c: Likewise.
10247 * script/lua/lparser.c: Likewise.
10248 * script/lua/lparser.h: Likewise.
10249 * script/lua/lstate.c: Likewise.
10250 * script/lua/lstate.h: Likewise.
10251 * script/lua/lstring.c: Likewise.
10252 * script/lua/lstring.h: Likewise.
10253 * script/lua/lstrlib.c: Likewise.
10254 * script/lua/ltable.c: Likewise.
10255 * script/lua/ltable.h: Likewise.
10256 * script/lua/ltablib.c: Likewise.
10257 * script/lua/ltm.c: Likewise.
10258 * script/lua/ltm.h: Likewise.
10259 * script/lua/lua.h: Likewise.
10260 * script/lua/luaconf.h: Likewise.
10261 * script/lua/lualib.h: Likewise.
10262 * script/lua/lundump.c: Likewise.
10263 * script/lua/lundump.h: Likewise.
10264 * script/lua/lvm.c: Likewise.
10265 * script/lua/lvm.h: Likewise.
10266 * script/lua/lzio.c: Likewise.
10267 * script/lua/lzio.h: Likewise.
10268
5e898c9d 102692009-05-16 Bean <bean123ch@gmail.com>
10270
10271 * include/grub/kernel.h (grub_module_header_types): Add type
10272 OBJ_TYPE_CONFIG.
10273
10274 * kern/main.c (grub_load_config): New function.
10275 (grub_main): Call grub_load_config to read boot config.
10276
10277 * grub-mkimage (generate_image): New parameter config_path.
10278 (options): New option --config.
10279 (main): Parse --config option, and pass it to generate_image.
10280
cf353a47 102812009-05-14 Christian Franke <franke@computer.org>
10282
10283 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
10284 This fixes build on Cygwin.
10285
3834887f 102862009-05-14 Pavel Roskin <proski@gnu.org>
10287
10288 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
10289 jump. This saves two bytes, so the typical case of 2 swapped
10290 drives would fit 32 bytes.
10291
8090fc01 102922009-05-13 Pavel Roskin <proski@gnu.org>
10293
ac963883 10294 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
10295 grub_uint32_t to avoid a warning.
10296
8090fc01 10297 * loader/i386/linux.c (allocate_pages): When assigning
10298 real_mode_mem, cast through grub_size_t to fix a warning. The
10299 code already makes sure that the value would fit a pointer.
10300 (grub_linux_setup_video): Cast render_target->data to
10301 grub_size_t to fix a warning.
10302
18f547ad 103032009-05-13 Javier Martín <lordhabbit@gmail.com>
4246b8a9 10304
10305 * commands/i386/pc/drivemap.c: New file - implement drivemap
10306 command.
10307 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
10308 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
10309
6f6a8b28 103102009-05-13 Pavel Roskin <proski@gnu.org>
10311
10312 * util/i386/pc/grub-setup.c (setup): Remove unused variable
10313 embedding_area_exists.
10314
15fbf4c4 103152009-05-13 Robert Millan <rmh.grub@aybabtu.com>
10316
10317 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
10318 it easier to understand / work with.
59978c8a 10319 Improve warning messages for cases where there's no embedding area,
10320 or when it is too small (or core.img too large).
15fbf4c4 10321
238e871f 103222009-05-13 Pavel Roskin <proski@gnu.org>
10323
0ab3a9a4 10324 * loader/i386/pc/multiboot2.c: Add necessary includes for
10325 grub_multiboot2_real_boot().
10326
a2c8c5f8 10327 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
10328 PX record is always little-endian. We only need the lower 2
10329 bytes of the mode.
10330
faec96af 10331 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
10332 facilitate code reuse.
10333 (grub_cpio_mount): Use "struct head", not a char buffer. This
10334 fixes a warning reported by gcc 4.4.
10335
238e871f 10336 * kernel/disk.c (grub_disk_read): Use void pointer for the
10337 buffer.
10338 (grub_disk_write): Use const void pointer for the buffer.
10339 Adjust all callers. Remove unnecessary casts.
10340
901d2f0c 103412009-05-10 Robert Millan <rmh.grub@aybabtu.com>
10342
10343 * util/i386/pc/grub-install.in: Update copyright year.
10344
18f547ad 103452009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
2eac4c16 10346
10347 gptsync
10348
10349 * commands/gptsync.c: new file
10350 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
10351 (gptsync_mod_SOURCES): new variable
10352 (gptsync_mod_CFLAGS): likewise
10353 (gptsync_mod_LDFLAGS): likewise
18f547ad 10354 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
2eac4c16 10355 new definition
10356 (GRUB_PC_PARTITION_TYPE_HFS): likewise
10357 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
10358 * conf/i386-ieee1275.rmk: likewise
10359 * conf/i386-pc.rmk: likewise
10360 * conf/powerpc-ieee1275.rmk: likewise
10361
b4ba690a 103622009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10363
10364 Fixed grub-emu
10365
10366 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
10367 (grub_dl_ref): likewise
10368
317e1a44 103692009-05-08 Robert Millan <rmh.grub@aybabtu.com>
10370
10371 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
10372 split in two functions (one for msdos and one for gpt).
10373
041b8094 103742009-05-08 Pavel Roskin <proski@gnu.org>
10375
752473c2 10376 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
10377 not modified.
10378
041b8094 10379 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
10380 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
10381 Initialize them with -1. Add sanity check for bad1. Eliminate
10382 nerr variable.
10383
172800ce 103842009-05-08 David S. Miller <davem@davemloft.net>
10385
10386 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
10387
29aa5e81 103882009-05-06 Robert Millan <rmh.grub@aybabtu.com>
10389
10390 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
473d1e45 10391 existence.
29aa5e81 10392
96613b62 103932009-05-05 Felix Zielcke <fzielcke@z-51.de>
10394
10395 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
1905c57b 10396 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
96613b62 10397
eef73c8a 103982009-05-05 David S. Miller <davem@davemloft.net>
10399
10400 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
10401
119494b5 104022009-05-05 Pavel Roskin <proski@gnu.org>
10403
10404 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
10405 of grub_dl_ref() and grub_dl_unref().
10406 * commands/parttool.c: Remove preprocessor conditionals around
10407 grub_dl_ref() and grub_dl_unref().
10408 * fs/affs.c: Likewise.
10409 * fs/afs.c: Likewise.
10410 * fs/cpio.c: Likewise.
10411 * fs/ext2.c: Likewise.
10412 * fs/fat.c: Likewise.
10413 * fs/hfs.c: Likewise.
10414 * fs/hfsplus.c: Likewise.
10415 * fs/iso9660.c: Likewise.
10416 * fs/jfs.c: Likewise.
10417 * fs/minix.c: Likewise.
10418 * fs/ntfs.c: Likewise.
10419 * fs/reiserfs.c: Likewise.
10420 * fs/sfs.c: Likewise.
10421 * fs/udf.c: Likewise.
10422 * fs/ufs.c: Likewise.
10423 * fs/xfs.c: Likewise.
10424 * include/grub/dl.h: Likewise.
10425 * loader/xnu.c: Likewise.
10426
de5fd76e 104272009-05-04 Pavel Roskin <proski@gnu.org>
10428
10429 * commands/acpi.c: Remove unused variable my_mod.
10430 * partmap/amiga.c: Likewise.
10431 * partmap/apple.c: Likewise.
10432 * partmap/gpt.c: Likewise.
10433 * partmap/pc.c: Likewise.
10434 * partmap/sun.c: Likewise.
10435 * term/gfxterm.c: Likewise.
10436 * term/i386/pc/vesafb.c: Likewise.
10437 * term/i386/pc/vga.c: Likewise.
10438
983598ad 104392009-05-04 David S. Miller <davem@davemloft.net>
10440
10441 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
10442 pointer args to grub_ieee1275_get_property().
10443
8aadec43 10444 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
10445
9554b15e 10446 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
10447 devices, and do not traverse down under controller nodes.
10448
67e23c90 10449 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
10450 (grub_ofdisk_open): Use it to un-escape "," characters.
10451 * kern/disk.c (find_part_sep): New.
10452 (grub_disk_open): Use it to find the first non-escaped ','
10453 character in the disk name.
10454 * util/ieee1275/devicemap.c (escape_of_path): New.
10455 (grub_util_emit_devicemap_entry): Use it.
10456 * util/sparc64/ieee1275/grub-install.in: Update script to
10457 strip partition specifiers properly by not triggering on
10458 '\' escaped ',' characters.
10459
74bfdd2f 104602009-05-04 Robert Millan <rmh.grub@aybabtu.com>
10461
10462 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
10463 to 0x300.
10464 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
10465 resolutions.
10466 (linux_vesafb_modes): Add a lot of additional modes to the list (based
10467 on documentation from Wikipedia).
10468
4241d2b1 104692009-05-04 Pavel Roskin <proski@gnu.org>
10470
10471 * disk/ata.c: Spelling fixes.
10472 * disk/raid.c: Likewise.
10473 * disk/usbms.c: Likewise.
10474 * disk/dmraid_nvidia.c: Likewise.
10475 * kern/ieee1275/openfw.c: Likewise.
10476 * kern/ieee1275/init.c: Likewise.
10477 * kern/ieee1275/cmain.c: Likewise.
10478 * boot/i386/pc/cdboot.S: Likewise.
10479 * video/readers/png.c: Likewise.
10480 * video/i386/pc/vbe.c: Likewise.
10481 * fs/udf.c: Likewise.
10482 * fs/hfs.c: Likewise.
10483 * fs/reiserfs.c: Likewise.
10484 * efiemu/runtime/efiemu.c: Likewise.
10485 * efiemu/main.c: Likewise.
10486 * efiemu/mm.c: Likewise.
10487 * include/grub/elf.h: Likewise.
10488 * include/grub/xnu.h: Likewise.
10489 * include/grub/usbdesc.h: Likewise.
10490 * include/grub/usb.h: Likewise.
10491 * include/grub/script_sh.h: Likewise.
10492 * include/grub/lib/LzmaEnc.h: Likewise.
10493 * include/grub/efiemu/efiemu.h: Likewise.
10494 * include/grub/command.h: Likewise.
10495 * normal/menu.c: Likewise.
10496 * normal/main.c: Likewise.
10497 * normal/datetime.c: Likewise.
10498 * bus/usb/uhci.c: Likewise.
10499 * mmap/i386/uppermem.c: Likewise.
10500 * mmap/mmap.c: Likewise.
10501 * commands/acpi.c: Likewise.
10502 * commands/test.c: Likewise.
10503 * partmap/apple.c: Likewise.
10504 * font/font.c: Likewise.
10505 * loader/sparc64/ieee1275/linux.c: Likewise.
10506 * loader/macho.c: Likewise.
10507 * loader/i386/bsd_trampoline.S: Likewise.
10508 * loader/i386/bsd.c: Likewise.
10509 * loader/xnu.c: Likewise.
10510 * term/i386/pc/vesafb.c: Likewise.
10511 * term/usb_keyboard.c: Likewise.
10512 * util/resolve.c: Likewise.
10513 * util/getroot.c: Likewise.
10514
0cfc0083 105152009-05-04 Felix Zielcke <fzielcke@z-51.de>
10516
10517 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
10518
7c1d00cd 105192009-05-04 Robert Millan <rmh.grub@aybabtu.com>
10520
10521 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
10522 build error.
10523
b01f0548 105242009-05-04 Robert Millan <rmh.grub@aybabtu.com>
10525
10526 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
10527 parameter only available on BIOS.
10528
ecc3eb22 105292009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10530
10531 Removed wrong semicolon in declaration
10532
10533 * grub/misc.h (grub_dprintf): remove semicolon
10534
112972a9 105352009-05-04 Robert Millan <rmh.grub@aybabtu.com>
10536
10537 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
10538 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
10539 is done by grub_cmd_linux() now).
10540 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
10541 restore video to text mode.
10542 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
10543 indicates lack of "vga=" parameter. "vga=0" is mapped to
10544 `GRUB_LINUX_VID_MODE_NORMAL'.
10545
afd5c115 105462009-05-04 Felix Zielcke <fzielcke@z-51.de>
10547
10548 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
10549 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
10550 and `normal/script.c'. Add `kern/rescue_reader.c',
18f547ad 10551 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
afd5c115 10552 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
10553 `grub_script.tab.c'.
10554
10555 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
10556 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
10557 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
10558 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
10559 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
10560
faa517ce 10561 * Makefile.in: Remove duplicated 2008 in Copyright line.
10562
ae0c0bdc 105632009-05-04 Robert Millan <rmh.grub@aybabtu.com>
10564
473d1e45 10565 * util/misc.c (grub_util_warn): New function. Emits a warning
ae0c0bdc 10566 unconditionally.
10567 * include/grub/util/misc.h (grub_util_warn): New declaration.
10568
10569 * util/i386/pc/grub-install.in: Understand --force and pass it down
10570 to grub-setup.
10571
10572 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
10573 down to setup().
10574 (setup): Improve error messages and add warnings when requested to
10575 install in odd layouts. Refuse to install using blocklists unless
10576 --force was set.
10577
18f547ad 105782009-05-04 martin f. krafft <madduck@madduck.net>
c149b500 10579
10580 * disk/raid.c (grub_raid_scan_device): Improve debug message.
10581
6d260daa 105822009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10583
10584 Updated copyright year
10585
10586 * fs/hfsplus.c: updated copyright year
18f547ad 10587
69f853f8 105882009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10589
10590 HFS+ UUID
10591
18f547ad 10592 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
69f853f8 10593 in the space previously used by unused3
10594 (grub_hfsplus_uuid): new function
10595 (grub_hfsplus_fs): added uuid field
10596
4c402e73 105972009-05-03 Pavel Roskin <proski@gnu.org>
10598
10599 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
10600 suppress warnings. It's no longer needed.
10601 * disk/host.c: Likewise.
10602 * disk/ata_pthru.c: Likewise.
10603 * disk/loopback.c: Likewise.
10604 * hook/datehook.c: Likewise.
10605 * parttool/pcpart.c: Likewise.
10606 * fs/i386/pc/pxe.c: Likewise.
10607 * fs/ntfscomp.c: Likewise.
10608 * efiemu/main.c: Likewise.
10609 * mmap/mmap.c: Likewise.
10610 * commands/crc.c: Likewise.
10611 * commands/hexdump.c: Likewise.
10612 * commands/hdparm.c: Likewise.
10613 * commands/acpi.c: Likewise.
10614 * commands/echo.c: Likewise.
10615 * commands/minicmd.c: Likewise.
10616 * commands/blocklist.c: Likewise.
10617 * commands/memrw.c: Likewise.
10618 * commands/loadenv.c: Likewise.
10619 * commands/usbtest.c: Likewise.
10620 * commands/lsmmap.c: Likewise.
10621 * commands/boot.c: Likewise.
10622 * commands/parttool.c: Likewise.
10623 * commands/configfile.c: Likewise.
10624 * commands/search.c: Likewise.
10625 * commands/ieee1275/suspend.c: Likewise.
10626 * commands/cat.c: Likewise.
10627 * commands/i386/pc/pxecmd.c: Likewise.
10628 * commands/i386/pc/play.c: Likewise.
10629 * commands/i386/pc/halt.c: Likewise.
10630 * commands/i386/pc/vbeinfo.c: Likewise.
10631 * commands/i386/pc/vbetest.c: Likewise.
10632 * commands/lspci.c: Likewise.
10633 * commands/date.c: Likewise.
10634 * commands/handler.c: Likewise.
10635 * commands/ls.c: Likewise.
10636 * commands/test.c: Likewise.
10637 * commands/cmp.c: Likewise.
10638 * commands/efi/loadbios.c: Likewise.
10639 * commands/efi/fixvideo.c: Likewise.
10640 * commands/halt.c: Likewise.
10641 * commands/help.c: Likewise.
10642 * commands/reboot.c: Likewise.
10643 * hello/hello.c: Likewise.
10644 * script/sh/main.c: Likewise.
10645 * loader/xnu.c: Likewise.
10646 * term/terminfo.c: Likewise.
10647 * term/i386/pc/serial.c: Likewise.
10648 * term/usb_keyboard.c: Likewise.
10649
515b5079 106502009-05-03 David S. Miller <davem@davemloft.net>
10651
10652 * normal/menu.c: Include grub/parser.h
10653
dfc31a22 106542009-05-03 Pavel Roskin <proski@gnu.org>
10655
2fee74f1 10656 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
10657 not char*.
10658 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
10659 Suggested by Javier Martín <lordhabbit@gmail.com>
10660
dfc31a22 10661 * util/i386/pc/grub-mkrescue.in: Allow for the case when
10662 efiemu??.o doesn't exist.
10663 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
10664 copying.
10665
18f547ad 106662009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
cef17233 10667
10668 FreeBSD 64-bit support
10669
18f547ad 10670 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
cef17233 10671 and loader/i386/bsd_trampoline.S
10672 (bsd_mod_ASFLAGS): new variable
10673 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
10674 (FREEBSD_MODTYPE_KERNEL64): likewise
10675 (grub_bsd64_trampoline_start): likewise
10676 (grub_bsd64_trampoline_end): likewise
10677 (grub_bsd64_trampoline_selfjump): likewise
10678 (grub_bsd64_trampoline_gdt): likewise
10679 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
10680 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
10681 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
10682 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
18f547ad 10683 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
cef17233 10684 of "attrib" member
10685 * loader/i386/bsd_pagetable.c: new file
10686 * loader/i386/bsd_trampoline.S: likewise
10687 * loader/i386/bsd.c (ALIGN_QWORD): new macro
10688 (ALIGN_VAR): likewise
10689 (entry_hi): new variable
10690 (kern_end_mdofs): likewise
10691 (is_64bit): likewise
10692 (grub_freebsd_add_meta): use ALIGN_VAR
10693 (grub_e820_mmap): new declaration
10694 (grub_freebsd_add_mmap): new function
10695 (grub_freebsd_add_meta_module): support 64 bit kernels
10696 (grub_freebsd_list_modules): use ALIGN_VAR
10697 (gdt_descriptor): new declaration
10698 (grub_freebsd_boot): support 64 bit kernels
10699 (grub_bsd_elf64_hook): new function
10700 (grub_bsd_load_elf): support elf64
10701
038c5720 107022009-05-03 Bean <bean123ch@gmail.com>
10703
10704 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
10705 after we get the result of if statement.
10706
fc45fb58 107072009-05-03 Bean <bean123ch@gmail.com>
10708
10709 * Makefile.in (enable_efiemu): New variable.
10710
10711 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
10712 set.
10713 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
10714 path.
10715 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
10716 path, add -mno-red-zone option.
10717 (efiemu64_s.o): Likewise.
10718 (efiemu64.o): Use macro $^ for source file.
10719
10720 * configure.ac (--enable-efiemu): New option.
10721
bbee0f2b 107222009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10723
10724 xnu support
10725
10726 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
10727 (pkglib_MODULES): add xnu.mod
10728 (xnu_mod_SOURCES): new variable
10729 (xnu_mod_CFLAGS): likewise
10730 (xnu_mod_LDFLAGS): likewise
10731 (xnu_mod_ASFLAGS): likewise
10732 * conf/i386-pc.rmk: likewise
10733 * conf/x86_64-efi.rmk: likewise
7dd4a573 10734 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
bbee0f2b 10735 new declaration
10736 * include/grub/i386/macho.h: new file
10737 * include/grub/i386/xnu.h: likewise
10738 * include/grub/macho.h: likewise
10739 * include/grub/machoload.h: likewise
10740 * include/grub/x86_64/macho.h: likewise
10741 * include/grub/x86_64/xnu.h: likewise
10742 * include/grub/xnu.h: likewise
10743 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
10744 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
10745 * loader/i386/efi/xnu.c: new file
10746 * loader/i386/pc/xnu.c: likewise
10747 * loader/i386/xnu.c: likewise
10748 * loader/i386/xnu_helper.S: likewise
10749 * loader/macho.c: likewise
10750 * loader/xnu.c: likewise
10751 * loader/xnu_resume.c: likewise
10752 * util/grub-dumpdevtree: likewise
10753 * include/grub/i386/pit.h: include grub/err.h
10754 (grub_pit_wait): export
10755 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
7dd4a573 10756
5caf964d 107572009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10758
10759 Efiemu
7dd4a573 10760
5caf964d 10761 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
7dd4a573 10762 _linux_efi, linux_efi.
10763 new files in grub-emu
5caf964d 10764 new targets efiemu32.o and efiemu64.o
10765 * loader/linux_normal_efiemu.c: likewise
10766 * loader/i386/efi/linux.c: added preliminary efiemu support
7dd4a573 10767 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
5caf964d 10768 files to copy
10769 * include/grub/autoefi.h: new file
7dd4a573 10770 * include/grub/i386/efiemu.h: likewise
5caf964d 10771 * include/grub/i386/pc/efiemu.h: likewise
10772 * include/grub/efi/api.h: add LL suffix when necessary
10773 new definitions relating to tables
10774 * include/grub/efiemu/efiemu.h: new file
10775 * include/grub/efiemu/runtime.h: likewise
10776 * efiemu/prepare.c: likewise
10777 * efiemu/loadcore_common.c: likewise
10778 * efiemu/loadcore64.c: likewise
10779 * efiemu/runtime/efiemu.sh: likewise
10780 * efiemu/runtime/efiemu.S: likewise
10781 * efiemu/runtime/efiemu.c: likewise
10782 * efiemu/runtime/config.h: likewise
10783 * efiemu/prepare32.c: likewise
10784 * efiemu/main.c: likewise
10785 * efiemu/modules/pnvram.c: likewise
10786 * efiemu/modules/i386: likewise
10787 * efiemu/modules/i386/pc: likewise
10788 * efiemu/modules/acpi.c: likewise
10789 * efiemu/i386/pc/cfgtables.c: likewise
10790 * efiemu/i386/loadcore64.c: likewise
10791 * efiemu/i386/loadcore32.c: likewise
10792 * efiemu/prepare64.c: likewise
10793 * efiemu/loadcore.c: likewise
10794 * efiemu/symbols.c: likewise
10795 * efiemu/mm.c: likewise
10796 * efiemu/loadcore32.c: likewise
7dd4a573 10797
107982009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
f8efe3ad 10799
10800 ACPI spoofing
10801
10802 * commands/acpi.c: new file
10803 * commands/i386/pc/acpi.c: likewise
10804 * commands/efi/acpi.c: likewise
10805 * include/grub/acpi.h: likewise
10806 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
10807 (acpi_mod_SOURCES): new variable
10808 (acpi_mod_CFLAGS): likewise
10809 (acpi_mod_LDFLAGS): likewise
10810 * conf/i386-efi.rmk: likewise
10811 * conf/x86_64-efi.rmk: likewise
10812
7dd4a573 108132009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
28a85665 10814
10815 Missing part from mmap patch
10816
10817 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
10818 (grub_mmap_unregister)
10819 (grub_mmap_free_and_unregister): use grub_mmap_register
10820
7dd4a573 108212009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
09d842b9 10822
10823 Mmap services
10824
10825 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
10826 * loader/i386/linux.c (find_mmap_size): likewise
10827 (allocate_pages): likewise
10828 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
10829 (grub_fill_multiboot_mmap): likewise
10830 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
10831 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
10832 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
10833 (OPENBSD_MMAP_RESERVED): likewise
10834 * include/grub/i386/pc/memory.h: include grub/memory.h
10835 (grub_lower_mem): removed
10836 (grub_upper_mem): likewise
10837 (GRUB_MACHINE_MEMORY_ACPI): new definition
10838 (GRUB_MACHINE_MEMORY_NVS): likewise
10839 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
10840 (GRUB_MACHINE_MEMORY_HOLE): likewise
10841 (grub_machine_mmap_register): likewise
10842 (grub_machine_mmap_unregister): likewise
10843 (grub_machine_get_upper): likewise
10844 (grub_machine_get_lower): likewise
10845 (grub_machine_get_post64): likewise
10846 * include/grub/i386/efi/memory.h: new file
10847 * include/grub/x86_64/efi/memory.h: likewise
10848 * include/grub/efi/memory.h: likewise
10849 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
10850 (mmap_mod_SOURCES): new variable
10851 (mmap_mod_LDFLAGS): likewise
10852 (mmap_mod_ASFLAGS): likewise
10853 * conf/i386-coreboot.rmk: likewise
10854 * conf/i386-ieee1275.rmk: likewise
10855 * conf/i386-efi.rmk: likewise
10856 * conf/x86_64-efi.rmk: likewise
10857 * include/grub/types.h (UINT_TO_PTR): new macro
10858 (PTR_TO_UINT32): likewise
10859 (PTR_TO_UINT64): likewise
10860 * include/grub/memory.h: new file
10861 * mmap/i386/pc/mmap.c: likewise
10862 * mmap/i386/pc/mmap_helper.S: likewise
10863 * mmap/i386/uppermem.c: likewise
10864 * mmap/mmap.c: likewise
10865 * mmap/efi/mmap.c: likewise
7dd4a573 10866 * kern/i386/coreboot/init.c (grub_machine_init): don't use
09d842b9 10867 grub_upper_mem
10868 * kern/i386/pc/init.c (grub_lower_mem): removed variable
10869 (grub_upper_mem): likewise
10870 (grub_machine_init): don't use grub_upper_mem,
10871 make grub_lower_mem local
10872 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
10873 grub_mmap_iterate and grub_mmap_get_upper
10874 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
10875
d558e6b5 108762009-05-02 Bean <bean123ch@gmail.com>
10877
10878 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
10879 script/sh/parser.y.
10880 (pkglib_MODULES): Add normal.mod and sh.mod.
10881 (normal_SOURCES): New variable.
10882 (normal_mod_CFLAGS): Likewise.
10883 (normal_mod_LDFLAGS): Likewise.
10884 (sh_mod_SOURCES): Likewise.
10885 (sh_mod_CFLAGS): Likewise.
10886 (sh_mod_LDFLAGS): Likewise.
10887
10888 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
10889 script/sh/lexer.c_DEPENDENCIES.
10890 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
10891 kern/rescue_reader.c and kern/rescue_parser.c.
10892 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
10893 (grub_emu_SOURCES): Change source files.
10894 (pkglib_MODULES): Remove normal.mod.
10895 (normal_SOURCES): Removed.
10896 (normal_mod_CFLAGS): Likewise.
10897 (normal_mod_LDFLAGS): Likewise.
10898 * conf/i386-coreboot.rmk: Likewise.
10899 * conf/i386-efi.rmk: Likewise.
10900 * conf/i386-ieee1276.rmk: Likewise.
10901 * conf/powerpc-ieee1275.rmk: Likewise.
10902 * conf/sparc64-ieee1275.rmk: Likewise.
10903 * conf/x86_64-efi.rmk: Likewise.
10904
10905 * include/grub/command.h (grub_command_execute): New inline function.
10906
10907 * include/grub/menu.h (grub_menu_entry): Removed commands field.
10908
10909 * include/grub/normal.h: Remove <grub/setjmp.h>.
10910 (grub_fs_module_list): Moved to normal/autofs.c.
10911 (grub_exit_env): Removed.
10912 (grub_command_execute): Likewise.
10913 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
10914 parameter script.
10915 (read_command_list): New function declaration.
10916 (read_fs_list): Likewise.
10917
10918 * include/parser.h: Include <grub/reader.h>.
10919 (grub_parser_split_cmdline): Change type of getline parameter.
10920 (grub_parser): New structure.
10921 (grub_parser_class): New variable.
10922 (grub_parser_execute): New function declaration.
10923 (grub_register_rescue_parser): Likewise.
10924 (grub_parser_register): New inline function.
10925 (grub_parser_unregister): Likewise.
10926 (grub_parser_get_current): Likewise.
10927 (grub_parser_set_current): Likewise.
10928
10929 * include/grub/reader.h: New file.
10930 * kern/reader.c: Likewise.
10931 * kern/rescue_parser.c: Likewise.
10932 * kern/rescue_reader.c: Likewise.
10933 * normal/autofs.c: Likewise.
10934 * normal/dyncmd.c: Likewise.
10935
10936 * include/grub/rescue.h: Removed.
10937 * normal/command.h: Likewise.
10938
10939 * include/grub/script.h: Moved to ...
10940 * include/grub/script_sh.h: ... Moved here.
10941 * normal/execute.c: Moved to ...
10942 * script/sh/execute.c: ... Moved here.
10943 * normal/function.c: Moved to ...
10944 * script/sh/function.c: ... Moved here.
10945 * normal/lexer.c: Moved to ...
10946 * script/sh/lexer.c: ... Moved here.
10947 * normal/parser.y: Moved to ...
10948 * script/sh/parser.y: ... Moved here.
10949 * normal/script.c: Moved to ...
10950 * script/sh/script.c: ... Moved here.
10951
10952 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
10953 <grub/reader.h>.
10954 (grub_exit_env): Removed.
10955 (fs_module_list): Moved to normal/autofs.c.
10956 (grub_file_getline): Don't handle comment here.
10957 (free_menu): Skip removed field entry->commands.
10958 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
10959 script parameter.
10960 (read_config_file): Removed nested parameter, change getline function.
10961 (grub_enter_normal_mode): Removed.
10962 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
10963 (read_command_list): Likewise.
10964 (autoload_fs_module): Moved to normal/autofs.c.
10965 (read_fs_list): Likewise.
10966 (reader_nested): New variable.
10967 (grub_normal_execute): Run parser.sh to switch to sh parser.
10968 (grub_cmd_rescue): Removed.
10969 (cmd_normal): Removed.
10970 (grub_cmd_normal): Unregister itself at the beginning. Don't register
10971 rescue command.
10972 (grub_cmdline_run): New function.
10973 (grub_normal_reader_init): Likewise.
10974 (grub_normal_read_line): Likewise.
10975 (grub_env_write_pager): Likewise.
10976 (cmdline): New variable.
10977 (grub_normal_reader): Likewise.
10978 (GRUB_MOD_INIT): Register normal reader and set as current, register
10979 pager hook, register normal command with grub_register_command_prio,
10980 so that it won't show up in command.lst.
10981 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
10982 grub_fs_autoload_hook.
10983
10984 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
10985 (grub_menu_execute_entry): Replace grub_script_execute with
10986 grub_parser_execute, change parameter to grub_command_execute.
10987
10988 * normal/menu_text.c: Remove <grub/script.h>.
10989
10990 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
10991 and <grub/parser.h>.
10992 (run): Change editor_getline to use new parser interface. Change
10993 parameter to grub_command_execute.
10994
10995 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
10996 <grub/reader.h> and <grub/parser.h>.
10997 (grub_load_normal_mode): Execute normal command.
10998 (grub_main): Call grub_register_core_commands,
10999 grub_register_rescue_parser and grub_register_rescue_reader, use
11000 grub_reader_loop to enter input loop.
11001
7dd4a573 11002 * kern/parser.c (grub_parser_split_cmdline): Change type of
11003 getline parameter.
d558e6b5 11004 (grub_parser_class): New variable.
11005 (grub_parser_execute): New function.
11006
11007 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
11008 * loader/multiboot2.c: Likewise.
11009 * loader/sparc64/ieee1275/linux.c: Likewise.
11010
11011 * util/grub-emu.c (read_command_list): New dummy function.
11012
18db813d 110132009-05-02 Robert Millan <rmh.grub@aybabtu.com>
11014
11015 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
11016 count to 16 for CCISS and IDA.
11017
6c67de15 110182009-05-02 Robert Millan <rmh.grub@aybabtu.com>
11019
11020 * normal/menu_text.c (grub_wait_after_message): Print a newline
11021 after waiting for user input.
11022
11023 * loader/i386/linux.c: Include `<grub/normal.h>'.
11024 (grub_cmd_linux): Improve the error message about `ask' mode, by
11025 waiting for user input so it's not missed (we can do this, since
11026 user requested interaction).
11027
d9dc87b0 110282009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
11029
11030 Added missing lst to grub-mkrescue
11031
11032 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
11033 and ${input_dir}/parttool.lst
11034
ac8a2baa 110352009-04-30 David S. Miller <davem@davemloft.net>
11036
ad22a610 11037 * util/hostdisk.c (device_is_wholedisk): New function.
11038 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
11039 zero only if device_is_wholedisk() returns true.
11040
6966215d 11041 * util/hostdisk.c (convert_system_partition_to_system_disk):
11042 Handle virtual disk devices named /dev/vdiskX as found on sparc
11043 and powerpc.
11044
ac8a2baa 11045 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
11046 lettered partition specifier is found, convert to numbered.
11047
979b4fb4 110482009-04-29 David S. Miller <davem@davemloft.net>
11049
e2bf39b2 11050 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
11051 * include/grub/sparc64/ieee1275/memory.h: Likewise.
11052
3c64e104 11053 * normal/command.c: Add missing newline at end of file.
11054
979b4fb4 11055 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
11056 warnings.
11057 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
11058 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
11059 grub_ofdisk_read): Likewise, and deal similarly with the fact that
11060 ihandles have a 32-bit type but need to be stored in a "void *".
11061
136d9f82 110622009-04-28 Pavel Roskin <proski@gnu.org>
11063
9459c306 11064 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
11065 not disk. Adjust all dependencies.
2e08a26a 11066 (grub_fs_uuid_close): Use grub_device_close(), not
9459c306 11067 grub_disk_close().
11068
136d9f82 11069 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
11070 parent's partition, don't copy it by reference, as it gets freed
11071 on close.
11072
7dd4a573 110732009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
75a807cf 11074
11075 Preboot hooks support
11076
11077 * commands/boot.c (struct grub_preboot_t): new declaration
11078 (preboots_head): new variable
11079 (preboots_tail): likewise
11080 (grub_loader_register_preboot_hook): new function
11081 (grub_loader_unregister_preboot_hook): likewise
11082 (grub_loader_set): launch preboot hooks
11083 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
11084 (grub_loader_register_preboot_hook): new declaration
11085 (grub_loader_unregister_preboot_hook): likewise
11086
5af922b5 110872009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
11088
11089 Warning fix
11090
7dd4a573 11091 * disk/scsi.c (grub_scsi_open): added missing cast when
5af922b5 11092 calling grub_dprintf
11093
a5562c30 110942009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
11095
11096 Bug and warning fixes
11097
7dd4a573 11098 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
a5562c30 11099 declaration
11100 * commands/test.c (test_parse): fixed bug with file tests and corrected
11101 declaration of find_file
11102
4006f85c 111032009-04-26 Pavel Roskin <proski@gnu.org>
11104
11105 * Makefile.in: Don't install empty manual pages if help2man is
11106 missing. Use help2man option for output, not shell redirection.
11107
5c77c3de 111082009-04-26 David S. Miller <davem@davemloft.net>
11109
11110 * util/grub-mkdevicemap.c (make_device_map): Add missing
11111 NESTED_FUNC_ATTR to process_device().
11112
033b10a8 111132009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
11114
11115 Test command
11116
11117 * commands/test.c: rewritten to use bash-like test
11118
e4343593 111192009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
11120
11121 Parttool autoloading and improvements
11122
7dd4a573 11123 * Makefile.in (pkglib_DATA): add parttool.lst
e4343593 11124 (parttool.lst): new target
11125 * genmk.rb: generate parttool-*
11126 (CLEANFILES): add #{parttool}
11127 (PARTTOOLFILES): new variable
11128 * genparttoollist.sh: new file
7dd4a573 11129 * parttool/pcpart.c (grub_pcpart_boot): more feedback
e4343593 11130 (grub_pcpart_type): likewise
11131 * commands/parttool.c (helpmsg): new variable
11132 (grub_cmd_parttool): output help if not enough arguments are supplied
11133 autoload modules
11134 (GRUB_MOD_INIT(parttool)): use helpmsg
11135
0d312500 111362009-04-24 David S. Miller <davem@davemloft.net>
11137
7dd4a573 11138 Avoiding opening same device multiple times in device iterator.
0d312500 11139
11140 * kern/device.c: (grub_device_iterate): Define struct part_ent,
7dd4a573 11141 and use it to build a list of partitions in iterate_disk() and
0d312500 11142 iterate_partition().
11143
ac20caff 11144 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
11145 on disk->data.
11146
0dcf7495 11147 * disk/ieee1275/nand.c (grub_nand_iterate): Return
11148 grub_devalias_iterate() result instead of unconditional 0.
11149 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
11150 Also, capture hook return value, either directly or via
11151 grub_children_iterate(), and propagate to caller.
11152 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
11153 grub_children_iterate): Return value is now 'int' instead of
11154 'grub_err_t'.
11155 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
11156 like a proper iterator, stopping when hooks return non-zero.
11157 (grub_devalias_iterate): Likewise.
11158
c8c08833 111592009-04-23 David S. Miller <davem@davemloft.net>
11160
11161 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
11162
f01005a8 111632009-04-22 David S. Miller <davem@davemloft.net>
11164
11165 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
11166 is larger than address_cells, use that value for address_cells too.
11167
4e8269da 11168 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
11169 IEEE1275_MAX_PATH_LEN): Define.
11170 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
11171 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
11172 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
11173 'devtype'. Explicitly NULL terminate devalias expansion.
11174
a1447506 11175 * util/sparc64/ieee1275/misc.c: New file.
11176 * util/sparc64/ieee1275/grub-setup.c: New file.
11177 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
11178 * util/sparc64/ieee1275/grub-mkimage.c: New file.
11179 * util/sparc64/ieee1275/grub-install.in: New file.
11180 * util/ieee1275/ofpath.c: New file.
11181 * util/ieee1275/devicemap.c: New file.
11182 * util/devicemap.c: New file.
11183 * util/deviceiter.c: New file.
11184 * kern/sparc64/ieee1275/init.c: New file.
11185 * include/grub/util/ofpath.h: New file.
11186 * include/grub/util/deviceiter.h: New file.
11187 * util/grub-mkdevicemap.c: Include deviceiter.h.
11188 Implement using grub_util_emit_devicemap_entry and
11189 grub_util_iterate_devices.
11190 * conf/i386-corebook.rmk: Build util/deviceiter.c and
11191 util/devicemap.c into grub-mkdevicemap
11192 * conf/i386-efi.rmk: Likewise.
11193 * conf/i386-ieee1275.rmk: Likewise.
11194 * conf/i386-pc.rmk: Likewise.
11195 * conf/powerpc-ieee1275.rmk: Likewise.
11196 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
11197 images and installation utilities. Build kernel as image
11198 instead of as elf binary. Use common rules as much as possible.
11199
7dd4a573 112002009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
0aefc632 11201
11202 Correct GPT definition
11203
7dd4a573 11204 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
0aefc632 11205 of "attrib" member
11206
c6c5219f 112072009-04-19 Felix Zielcke <fzielcke@z-51.de>
11208
11209 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
11210
0552ff9f 112112009-04-19 David S. Miller <davem@davemloft.net>
11212
11213 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
11214 (grub_rescue_cmd_linux): Rename to...
11215 (grub_cmd_linux): and fix prototype.
11216 (grub_rescue_cmd_initrd): Rename to...
11217 (grub_cmd_initrd): and fix prototype.
11218 (cmd_linux, cmd_initrd): New.
11219 (GRUB_MOD_INIT(linux)): Use grub_register_command().
11220 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
11221
d1a282fc 112222009-04-17 Pavel Roskin <proski@gnu.org>
11223
07c5039f 11224 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
11225 format.
11226 (grub_ohci_transfer): Likewise.
11227
b012002d 11228 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
11229
1bc09c35 11230 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
11231 return without a value. Fix inconsistent indentation.
11232
e0ff9126 11233 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
11234 match struct grub_fs.
11235
d1a282fc 11236 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
11237 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
11238 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
11239 * commands/lspci.c (grub_lspci_iter): Likewise.
11240
a96df3f2 112412009-04-16 Bean <bean123ch@gmail.com>
11242
11243 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
11244 value.
11245
41bb0fe9 112462009-04-15 Pavel Roskin <proski@gnu.org>
11247
11248 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
11249 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
11250 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
11251 definitions.
11252
596c6970 112532009-04-15 Felix Zielcke <fzielcke@z-51.de>
11254
11255 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
7dd4a573 11256 that no multiple data or metadata areas are supported and `Unknown
596c6970 11257 metadata header'.
11258
7dd4a573 112592009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
0d5d5653 11260
11261 Move loader out of the kernel
11262
11263 * kern/loader.c: moved to ...
11264 * commands/boot.c: ... moved here
11265 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
11266 * commands/boot.c (grub_cmd_boot): moved here. All users updated
11267 * include/grub/kernel.h (grub_machine_fini): export
11268 * include/grub/loader.h (grub_loader_is_loaded): update declaration
11269 (grub_loader_set): likewise
11270 (grub_loader_unset): likewise
11271 (grub_loader_boot): likewise
11272 * conf/common.rmk: new module boot.mod
11273 (pkglib_MODULES): add boot.mod
11274 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
11275 (grub_emu_SOURCES): likewise
11276 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
11277 (grub_emu_SOURCES): likewise
11278 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
11279 (grub_emu_SOURCES): likewise
11280 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
11281 (grub_emu_SOURCES): likewise
11282 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
11283 (grub_emu_SOURCES): likewise
7dd4a573 11284 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
11285 (grub_emu_SOURCES): likewise
0d5d5653 11286 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
7dd4a573 11287 (grub_emu_SOURCES): likewise
0d5d5653 11288
7dd4a573 112892009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
5999d619 11290
11291 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
7dd4a573 11292
5999d619 11293 * kern/misc.c (grub_itoa): Removed function
11294 (grub_ltoa): likewise
11295 (grub_vsprintf): use grub_lltoa
11296
7dd4a573 112972009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
13c00781 11298
11299 Restore grub-emu
11300
11301 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
11302 * conf/i386-coreboot.rmk: likewise
11303 * conf/i386-ieee1275.rmk: likewise
11304 * conf/powerpc-ieee1275.rmk: likewise
7dd4a573 11305
20318222 113062009-04-15 Felix Zielcke <fzielcke@z-51.de>
11307
11308 * INSTALL: Add that `./autogen.sh' needs to be run before
11309 `./configure.'.
11310
d05f0df3 113112009-04-14 Bean <bean123ch@gmail.com>
11312
11313 * Makefile.in (pkglib_DATA): Add handler.lst.
11314 (handler.lst): New rule.
11315
11316 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
11317 * conf/i386-coreboot.rmk: Likewise.
11318 * conf/i386-ieee1275.rmk: Likewise.
11319 * conf/i386-efi.rmk: Likewise.
11320 * conf/x86_64-efi.rmk: Likewise.
11321 * conf/powerpc-ieee1275.rmk: Likewise.
11322 * conf/sparc64-ieee1275.rmk: Likewise.
11323
11324 * genhandlerlist.sh: New file.
11325
11326 * genmk.rb: Add rules to generate handler.lst.
11327
11328 * include/grub/normal.h (grub_file_getline): New function definition.
11329 (read_handler_list): Likewise.
11330 (free_handler_list): Likewise.
11331
11332 * include/grub/term.h (grub_term_register_input): Add name parameter
11333 for auto generation of handler.lst.
11334 (grub_term_register_output): Likewise.
11335
11336 * normal/handler.c: New file.
11337
11338 * normal/main.c (get_line): Renamed to grub_file_getline.
11339 (read_config_file): Use the newly renamed grub_file_getline.
11340 (read_command_list): Likewise.
11341 (read_fs_list): Likewise.
11342 (grub_normal_execute): Call read_handler_list to parse handler.lst.
11343 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
11344
11345 * term/efi/console.c (grub_console_init): Add name parameter for auto
11346 generation of handler.lst.
11347 * term/gfxterm.c: Likewise.
11348 * term/i386/pc/at_keyboard.c: Likewise.
11349 * term/i386/pc/console.c: Likewise.
11350 * term/i386/pc/serial.c: Likewise.
11351 * term/i386/pc/vesafb.c: Likewise.
11352 * term/i386/pc/vga.c: Likewise.
11353 * term/i386/pc/vga_text.c: Likewise.
11354 * term/ieee1275/ofconsole.c: Likewise.
11355 * term/usb_keyboard.c: Likewise.
11356
33c846be 113572009-04-14 Bean <bean123ch@gmail.com>
11358
11359 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
11360 properly with null character.
11361
4484e01e 113622009-04-14 Felix Zielcke <fzielcke@z-51.de>
11363
11364 * configure: Remove.
11365 * config.h.in: Likewise.
f93d668e 11366 * stamp-h.in: Likewise.
4484e01e 11367 * DISTLIST: Likewise.
11368 * conf/common.mk: Likewise.
11369 * conf/i386-coreboot.mk: Likewise.
11370 * conf/i386-efi.mk: Likewise.
11371 * conf/i386-ieee1275.mk: Likewise.
11372 * conf/i386.mk: Likewise.
11373 * conf/i386-pc.mk: Likewise.
11374 * conf/powerpc-ieee1275.mk: Likewise.
11375 * conf/sparc64-ieee1275.mk: Likewise.
11376 * conf/x86_64-efi.mk: Likewise.
11377
11378 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
11379 develop on GRUB.
11380
7dd4a573 113812009-04-14 John Stanley <jpsinthemix@verizon.net>
5c5bf96a 11382 David S. Miller <davem@davemloft.net>
11383
11384 * util/hostdisk.c (make_device_name): Fix buffer length
11385 calculations.
11386
e25b5a8c 113872009-04-14 Felix Zielcke <fzielcke@z-51.de>
11388
11389 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
11390 <sys/param.h> and <sys/sysctl.h>.
11391 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
11392 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
11393 opening the device and reset them afterwards.
11394
1f1f580c 113952009-04-13 Pavel Roskin <proski@gnu.org>
11396
11397 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
11398 Reported by John Stanley <jpsinthemix@verizon.net>
11399
7ebc2d6b 114002009-04-13 Robert Millan <rmh@aybabtu.com>
11401
11402 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
7dd4a573 11403 that name for menuentries when appropriate.
7ebc2d6b 11404
d8ba3667 114052009-04-13 Felix Zielcke <fzielcke@z-51.de>
11406
11407 * util/grub.d/10_freebsd.in: Add a missing `fi'.
11408
cba416eb 114092009-04-13 Robert Millan <rmh@aybabtu.com>
11410
11411 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
11412 to Linux, simply abort telling the user it's no longer supported.
11413
a547a745 114142009-04-13 Felix Zielcke <fzielcke@z-51.de>
11415
11416 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
7dd4a573 11417 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
a547a745 11418 `freebsd_loadenv' only when devices.hints exist.
11419
232a769c 114202009-04-13 Pavel Roskin <proski@gnu.org>
11421
11422 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
11423
c3012039 114242009-04-13 Felix Zielcke <fzielcke@z-51.de>
11425
11426 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
11427 partition number.
11428 (grub_drive): Likewise.
11429
234022fe 114302009-04-13 David S. Miller <davem@davemloft.net>
11431
11432 * kern/sparc64/ieee1275/ieee1275.c: New file.
11433 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
11434 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
11435 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
11436 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
11437 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
11438 grub_ieee1275_alloc_physmem): Declare new exported functions.
11439
d8e1836c 11440 * include/grub/sparc64/ieee1275/loader.h: New file.
11441 * include/grub/sparc64/ieee1275/memory.h: Likewise.
11442 * include/grub/sparc64/kernel.h: Likewise.
11443 * loader/sparc64/ieee1275/linux.c: Likewise.
11444
96bd81ec 11445 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
11446 (grub_fstest_SOURCES): Likewise.
11447
6a4737e5 11448 * util/hostdisk.c (make_device_name): Do not make any assumptions
11449 about the length of drive names.
11450
1d7a72fd 11451 * kern/dl.c (grub_dl_load_file): Close file immediately when
11452 we are done using it.
11453
56bc2471 114542009-04-12 David S. Miller <davem@davemloft.net>
11455
11456 * kern/misc.c (grub_ltoa): Fix cast when handling negative
11457 values. Noticed by Pavel Roskin.
11458
df38d0bb 11459 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
11460 target compiler.
7dd4a573 11461
e382e93a 11462 * genmk.rb: Add more flexible image type specification, also
11463 pass --strip-unneeded to objcopy.
11464 * conf/i386-pc.rmk: Use *_FORMAT.
11465 * conf/i386-pc.mk: Rebuilt.
11466
f5dbbca9 11467 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
11468 (OFDISK_HASH_SZ): Define.
11469 (ofdisk_hash): New hash table.
11470 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
11471 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
11472 instead of device phandle which is not unique.
11473
91c88b12 11474 * kern/sparc64/ieee1275/init.c: Delete, replace with...
11475 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
11476 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
11477 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
11478 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
11479 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
11480 GRUB_KERNEL_MACHINE_DATA_END): Define.
11481 (grub_kernel_image_size, grub_total_module_size): Declare.
11482
5b5d4aa5 114832009-04-12 Pavel Roskin <proski@gnu.org>
11484
7dd4a573 11485 * configure.ac: Change the logic when we check for target tools.
11486 Do it when the target is specified and it's different from the
11487 specified value of the host.
5b5d4aa5 11488
c91e1793 114892009-04-11 Felix Zielcke <fzielcke@z-51.de>
11490
11491 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
11492 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
11493 GNU/kFreeBSD. Check if a device is a character device. Use
11494 DIOCGMEDIASIZE to get the size.
11495 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
11496 support for GNU/kFreeBSD.
11497 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
11498 is a character device instead of a block device. Add support for
11499 FreeBSD device names.
11500
11501 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
11502 is a character device instead of a block device.
11503
11504 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
11505 is a character device instead of a block device.
11506
b1ac8644 115072009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
11508
11509 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
11510 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
11511 FreeBSD. Check if a device is a character device. Use
11512 DIOCGMEDIASIZE to get the size.
11513 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
11514 support for FreeBSD.
11515 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
11516 is a character device instead of a block device. Add support for
11517 FreeBSD device names.
11518
11519 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
11520 a character device instead of a block device.
11521 (grub_util_check_char_device): New function.
11522
11523 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
11524 a character device instead of a block device.
11525
11526 * include/grub/util/getroot.h (grub_util_check_char_device): New
11527 prototype.
11528
a3f7515a 115292009-04-11 David S. Miller <davem@davemloft.net>
11530
11531 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
11532 static libgcc.
11533 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
11534 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
11535 function, if present.
11536 (__bswapdi2): Likewise.
11537
0d44993d 11538 * include/grub/sparc64/ieee1275/boot.h: New file.
11539 * boot/sparc64/ieee1275/boot.S: Likewise.
11540 * boot/sparc64/ieee1275/diskboot.S: Likewise.
11541
ed3d2bc2 11542 * kern/misc.c (grub_ltoa): New function.
11543 (grub_vsprintf): Use it to format 'long' integers.
11544
d3bfb59c 115452009-04-10 David S. Miller <davem@davemloft.net>
11546
11547 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
11548 slots are of type grub_ieee1275_cell_t.
11549 (grub_nand_read): Likewise.
11550 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
11551 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
11552 macros are used to compare values in arg/ret block of the call.
11553 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
11554 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
11555 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
11556 grub_ieee1275_instance_to_path, grub_ieee1275_write,
11557 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
11558 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
11559 grub_ieee1275_close, grub_ieee1275_set_property,
11560 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
11561 grub_ieee1275_cell_t.
11562 * kern/ieee1275/openfw.c (grub_map): Likewise.
11563 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
11564 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
11565
450e2238 11566 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
11567 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
11568 (grub_devalias_iterate): Likewise.
11569
7dd4a573 115702009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
6df8cc76 11571
11572 UFS improvements
11573
11574 * fs/ufs.c (INODE_NBLOCKS): new definition
11575 (struct grub_ufs_dirent): added fields for non-BSD dirents
11576 (grub_ufs_get_file_block): fixed double indirect handling
11577 (grub_ufs_lookup_symlink): use more robust way to determine whether
11578 symlink is inline
11579 (grub_ufs_find_file): support for non-BSD dirents
11580 (grub_ufs_dir): support for non-BSD dirents
11581
e7e6862a 115822009-04-10 Bean <bean123ch@gnail.com>
11583
11584 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
11585 attribute, otherwise the size would be wrong for i386 platform.
11586
11587 * include/grub/pci.h (grub_pci_read_word): New inline function.
11588 (grub_pci_read_byte): Likewise.
11589 (grub_pci_write): Likewise.
11590 (grub_pci_write_word): Likewise.
11591 (grub_pci_write_byte): Likewise.
11592
11593 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
11594
11595 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
11596 (find_framebuf): Scan pci to locate the frame buffer address.
11597
11598 * commands/efi/fixvideo.c: New file.
11599
11600 * commands/efi/loadbios.c: Likewise.
11601
11602 * commands/memrw.c: Likewise.
11603
11604 * util/grub-dumpbios.in: Likewise.
11605
11606 * conf/common.rmk (grub-dumpbios): New utility.
11607 (pkglib_MODULES): New module memrw.mod.
11608 (memrw_mod_SOURCE): New macro.
11609 (memrw_mod_CFLAGS): Likewise.
11610 (memrw_mod_LDFLAGS): Likewise.
11611
7dd4a573 11612 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
e7e6862a 11613 fixvideo.mod.
11614 (loadbios_mod_SOURCE): New macro.
11615 (loadbios_mod_CFLAGS): Likewise.
11616 (loadbios_mod_LDFLAGS): Likewise.
11617 (fixvideo_mod_SOURCE): Likewise.
11618 (fixvideo_mod_CFLAGS): Likewise.
11619 (fixvideo_mod_LDFLAGS): Likewise.
11620
7dd4a573 11621 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
e7e6862a 11622 fixvideo.mod.
11623 (loadbios_mod_SOURCE): New macro.
11624 (loadbios_mod_CFLAGS): Likewise.
11625 (loadbios_mod_LDFLAGS): Likewise.
11626 (fixvideo_mod_SOURCE): Likewise.
11627 (fixvideo_mod_CFLAGS): Likewise.
11628 (fixvideo_mod_LDFLAGS): Likewise.
11629
af63ada2 116302009-04-08 Felix Zielcke <fzielcke@z-51.de>
11631
11632 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
11633
c2cdde70 116342009-04-07 David S. Miller <davem@davemloft.net>
11635
11636 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
11637 support for R_SPARC_OLO10 relocations. Fix compile warning for
11638 R_SPARC_WDISP30 case.
ea3f72cf 11639 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
c2cdde70 11640
761319cf 116412009-04-06 Pavel Roskin <proski@gnu.org>
11642
1007d1f5 11643 * include/grub/misc.h (ARRAY_SIZE): New macro.
11644 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
11645 New macro.
11646 * loader/i386/linux.c (allocate_pages): Use free_pages().
11647 (grub_linux_unload): Don't use free_pages().
11648 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
11649 wrong index. Treat all other modes as text modes.
11650 (grub_cmd_linux): Initialize vid_mode unconditionally to
11651 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
11652
761319cf 11653 * commands/help.c (print_command_help): Use cmd->prio, not
11654 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
11655
ea761d40 116562009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
7dd4a573 11657
ea761d40 11658 Parttool
11659
11660 * parttool/pcpart.c: new file
11661 * commands/parttool.c: likewise
11662 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
11663 (parttool_mod_SOURCES): new variable
11664 (parttool_mod_CFLAGS): likewise
11665 (parttool_mod_LDFLAGS): likewise
11666 (pcpart_mod_SOURCES): likewise
11667 (pcpart_mod_CFLAGS): likewise
11668 (pcpart_mod_LDFLAGS): likewise
7dd4a573 11669 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
ea761d40 11670 and parttool/pcpart.c
11671 * conf/i386-efi.rmk: likewise
11672 * conf/i386-ieee1275.rmk: likewise
11673 * conf/i386-pc.rmk: likewise
11674 * conf/powerpc-ieee1275.rmk: likewise
11675 * conf/sparc64-ieee1275.rmk: likewise
11676 * conf/x86_64-ieee1275.rmk: likewise
11677
05aaebfb 116782009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
11679
11680 Support for mtime and further expandability of dir command
11681
11682 * include/grub/lib/datetime.h: moved to ...
7dd4a573 11683 * include/grub/datetime.h: ... moved here and added
05aaebfb 11684 declaration of grub_unixtime2datetime. All users updated
7dd4a573 11685 * include/grub/fs.h: new syntax for dir and mtime functions in
11686 struct grub_fs
05aaebfb 11687 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
11688 and GRUB_FSHELP_FLAGS_MASK
11689 * commands/ls.c (grub_ls_list_files): Write mtime in long format
11690 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
11691 (grub_ext2_mtime): new function
11692 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
11693 (grub_hfsplus_mtime): new function
11694 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
11695 (GRUB_UFS_ATTR_FILE): likewise
11696 (GRUB_UFS_ATTR_LNK): likewise
11697 (struct grub_ufs_sblock): new fields mtime
11698 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
11699 all users updated
11700 (grub_ufs_dir): mtime support
11701 (grub_ufs_mtime): new function
11702 * fs/affs.c (grub_affs_dir): use new dir syntax
11703 * fs/afs.c (grub_afs_dir): likewise
11704 * fs/cpio.c (grub_cpio_dir): likewise
11705 * fs/fat.c (grub_fat_find_dir): likewise
11706 * fs/hfs.c (grub_hfs_dir): likewise
11707 * fs/iso9660.c (grub_iso9660_dir): likewise
11708 * fs/jfs.c (grub_jfs_dir): likewise
11709 * fs/minix.c (grub_minix_dir): likewise
11710 * fs/ntfs.c (grub_ntfs_dir): likewise
11711 * fs/reiserfs.c (grub_reiserfs_dir): likewise
11712 * fs/sfs.c (grub_sfs_dir): likewise
11713 * fs/xfs.c (grub_xfs_dir): likewise
11714 * util/hostfs.c (grub_hostfs_dir): likewise
11715 * lib/datetime.c: moved to ...
11716 * normal/datetime.c: ... moved here
11717 (grub_unixtime2datetime): new function
11718 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
7dd4a573 11719 * normal/completion.c (iterate_dir): use new dir syntax
11720 * normal/misc.c (grub_normal_print_device_info): tell the
05aaebfb 11721 last modification time of a volume
7dd4a573 11722 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
05aaebfb 11723 * conf/common.rmk: added lib/datetime.c to ls.mod
7dd4a573 11724 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
05aaebfb 11725 (normal_mod_SOURCES): likewise
11726 (datetime_mod_SOURCES): Removed lib/datetime.c
11727 * conf/i386-efi.rmk: likewise
7dd4a573 11728 * conf/i386-ieee1275.rmk: likewise
05aaebfb 11729 * conf/i386-pc.rmk: likewise
11730 * conf/powerpc-ieee1275.rmk: likewise
7dd4a573 11731 * conf/sparc64-ieee1275.rmk: likewise
11732 * conf/x86_64-efi.rmk: likewise
05aaebfb 11733
8a7e1a14 117342009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
11735
11736 Trim trailing spaces in FAT label and support mtools-like labels
7dd4a573 11737
11738 * fs/fat.c (grub_fat_iterate_dir): New function based
8a7e1a14 11739 on grub_fat_find_dir
11740 (grub_fat_find_dir): use grub_fat_iterate_dir
11741 (grub_fat_label): likewise
11742
04186a9c 117432009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
11744
7dd4a573 11745 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
04186a9c 11746 and command.h
11747 remove extraneous kernel_elf_HEADERS
11748
da4c0bb6 117492009-04-04 Bean <bean123ch@gnail.com>
11750
11751 * include/grub/util/misc.h: Add dummy function fsync for mingw.
11752
11753 * util/misc.c: Likewise.
11754
54ad9555 117552009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
11756
11757 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
11758 instead of grub_printf.
11759
7a6bf9f2 117602009-04-03 Robert Millan <rmh@aybabtu.com>
11761
11762 * loader/i386/linux.c (grub_linux_setup_video): Fill
11763 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
11764 values from `mode info' structure instead of hardcoded
11765 values.
11766
3fcc2083 117672009-04-01 Pavel Roskin <proski@gnu.org>
11768
11769 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
11770 unused now.
11771 * genmk.rb: Likewise.
11772 * configure.ac: Likewise.
11773
5ec9740b 117742009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
11775
11776 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
11777 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
11778
5270cec8 117792009-04-01 David S. Miller <davem@davemloft.net>
11780
11781 * normal/sparc64/setjmp.S: Fix setjmp implementation.
7dd4a573 11782 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
5270cec8 11783 (grub_setjmp): Mark with 'returns_twice' attribute.
11784 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
11785 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
11786 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
11787
9c3dd854 117882009-04-01 Robert Millan <rmh@aybabtu.com>
11789
11790 Reapply fix from 2008-07-28 which was accidentally reverted; also
11791 perform the same fix to a similar check in same function.
11792
11793 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
11794 with the same number are found, just use issue a warning with
11795 grub_dprintf(), as this error has been reported to be non-fatal.
11796
0d818b7e 117972009-03-31 Pavel Roskin <proski@gnu.org>
11798
11799 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
11800 for cross-compilation.
11801
95646d92 118022009-03-30 Robert Millan <rmh@aybabtu.com>
11803
11804 Fix i386-ieee1275 build.
11805
11806 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
11807 Remove declaration.
11808
6a003ed1 118092009-03-30 Pavel Roskin <proski@gnu.org>
11810
11811 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
11812 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
11813 zero-terminated, rely only on the strlen value. Fix comparison
11814 of strings differing in length.
11815
92f33540 118162009-03-30 Robert Millan <rmh@aybabtu.com>
11817
11818 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
11819 checking for abi version. Improve error messages on BIOS to notify
11820 user about `linux16' command.
11821
a8c48fd5 118222009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
11823
f968172e 11824 Leak fixes
a8c48fd5 11825
f968172e 11826 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
11827 in case of collision
11828 * disk/scsi.c (grub_scsi_open): free scsi in case of error
a8c48fd5 11829
9c323f09 118302009-03-29 Robert Millan <rmh@aybabtu.com>
11831
11832 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
11833 set `vid_mode' accordingly.
11834 (grub_linux_boot): Process `vid_mode' and set video mode.
11835
ae68f423 118362009-03-29 Robert Millan <rmh@aybabtu.com>
11837
11838 * util/grub.d/10_linux.in (linux_entry): New function.
11839 Factorize generation of Linux boot entries.
11840
5709cfc4 118412009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
11842
11843 Make the format of Environment Block plain text. The boot loader
11844 part is not tested well yet.
7dd4a573 11845
5709cfc4 11846 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
11847 (buffer): Removed.
11848 (envblk): Likewise.
11849 (usage): Remove "info" and "clear". Add "unset". Update the
11850 description of "set", as this does not delete variables any
11851 longer.
11852 (create_envblk_file): Complete rewrite.
11853 (open_envblk_file): Likewise.
11854 (cmd_info): Removed.
11855 (cmd_list): Likewise.
11856 (cmd_set): Likewise.
11857 (cmd_clear): Likewise.
11858 (list_variables): New function.
11859 (write_envblk): Likewise.
11860 (set_variables): Likewise.
11861 (unset_variables): Likewise.
11862 (main): Complete rewrite.
11863
11864 * commands/loadenv.c (buffer): Removed.
11865 (envblk): Likewise.
11866 (open_envblk_file): New function.
11867 (read_envblk_file): Complete rewrite.
11868 (grub_cmd_load_env): Likewise.
11869 (grub_cmd_list_env): Likewise.
11870 (struct blocklist): New struct.
11871 (free_blocklists): New function.
11872 (check_blocklists): Likewise.
11873 (write_blocklists): Likewise.
11874 (grub_cmd_save_env): Complete rewrite.
11875
11876 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
11877 a plain text signature.
11878 (GRUB_ENVBLK_MAXLEN): Removed.
11879 (struct grub_envblk): Complete rewrite.
11880 (grub_envblk_find): Removed.
11881 (grub_envblk_insert): Likewise.
11882 (grub_envblk_open): New prototype.
11883 (grub_envblk_set): Likewise.
11884 (grub_envblk_delete): Put const to VALUE.
11885 (grub_envblk_iterate): Put const to NAME and VALUE.
11886 (grub_envblk_close): New prototype.
11887 (grub_envblk_buffer): New inline function.
11888 (grub_envblk_size): Likewise.
11889
11890 * lib/envblk.c: Include grub/mm.h.
11891 (grub_env_find): Removed.
11892 (grub_envblk_open): New function.
11893 (grub_envblk_close): Likewise.
11894 (escaped_value_len): Likewise.
11895 (find_next_line): Likewise.
11896 (grub_envblk_insert): Removed.
11897 (grub_envblk_set): New function.
11898 (grub_envblk_delete): Complete rewrite.
11899 (grub_envblk_iterate): Likewise.
11900
a9368fd3 119012009-03-28 Robert Millan <rmh@aybabtu.com>
11902
11903 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
11904 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
11905 variables. Use 16-bit loader.
11906 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
11907 loader.
11908 * kern/i386/loader.S (grub_linux_boot): Rename to ...
11909 (grub_linux16_boot): ... this. Update all users.
11910 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
11911 (grub_linux_boot): ... this. Update all users.
11912
11913 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
11914 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
11915 commands to `linux16' and `initrd16'.
11916 (GRUB_MOD_FINI(linux)): Rename to ...
11917 (GRUB_MOD_FINI(linux16)): ... this.
11918
e4dd5a7e 119192009-03-24 Pavel Roskin <proski@gnu.org>
11920
11921 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
11922 not just for compilation.
11923
c04d6e05 119242009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
11925
11926 Move multiboot helper out of kernel
11927
11928 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
11929 `loader/i386/multiboot_helper.S'.
11930 * conf/i386-coreboot.rmk: Likewise
11931 * conf/i386-ieee1275.rmk: Likewise
11932
11933 * kern/i386/loader.S: Move multiboot helpers from here...
11934 * loader/i386/multiboot_helper.S: ...moved here
11935 * include/grub/i386/loader.h: Move declarations of multiboot
11936 helpers from here...
11937 * include/grub/i386/multiboot.h: ...moved here
11938 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
11939
42a5b3fc 119402009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
11941
11942 * kern/env.c (grub_env_context_open): Added an argument to specify
11943 whether a new context inherits exported variables from current
11944 one. This is useful when making a sandbox to interpret a config
11945 file.
11946 All callers updated.
11947
11948 * include/grub/env.h (grub_env_context_open): Updated the prototype.
11949
b28bbc4e 119502009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
11951
11952 * kern/env.c (grub_env_context_close): Fix memory leaks.
11953
f04f02e4 119542009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
11955
11956 * normal/main.c (grub_normal_execute): Added an argument
11957 BATCH to specify if an interactive interface should be provided
11958 after reading a config file.
11959 All callers updated.
11960 (read_command_list): Prevent being executed twice.
11961 (read_fs_list): Likewise.
11962
42a5b3fc 11963 * include/grub/normal.h (grub_normal_execute): Updated the
11964 prototype.
f04f02e4 11965
41473ac2 119662009-03-22 Pavel Roskin <proski@gno.org>
11967
fbc00b0c 11968 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
11969 _start.
11970 * kern/i386/pc/startup.S: Likewise.
11971 * kern/i386/efi/startup.S: Likewise.
11972 * kern/i386/ieee1275/startup.S: Likewise.
11973 * kern/i386/coreboot/startup.S: Likewise.
11974 * kern/x86_64/efi/startup.S: Likewise.
11975
41473ac2 11976 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
11977 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
11978 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
11979
2274cc8f 119802009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
11981
11982 Bugfixes in multiboot for bugs uncovered by solaris kernel.
11983
11984 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
11985 limit detection.
11986 Use vaddr of correct segment for entry_point.
11987
b1b797cb 119882009-03-21 Bean <bean123ch@gmail.com>
11989
11990 * commands/blocklist.c: Add include file <grub/command.h>, remove
11991 <grub/normal.h> and <grub/arg.h>.
11992 (grub_cmd_blocklist): Use the new command interface.
11993 (GRUB_MOD_INIT): Likewise.
11994 (GRUB_MOD_FINI): Likewise.
11995 * commands/boot.c: Likewise.
11996 * commands/cat.c: Likewise.
11997 * commands/cmp.c: Likewise.
11998 * commands/configfile.c: Likewise.
11999 * commands/crc.c: Likewise.
12000 * commands/echo.c: Likewise.
12001 * commands/halt.c: Likewise.
12002 * commands/handler.c: Likewise.
12003 * commands/hdparm.c: Likewise.
12004 * commands/help.c: Likewise.
12005 * commands/hexdump.c: Likewise.
12006 * commands/loadenv.c: Likewise.
12007 * commands/ls.c: Likewise.
12008 * commands/lsmmap.c: Likewise.
12009 * commands/lspci.c: Likewise.
12010 * commands/loadenv.c: Likewise.
12011 * commands/read.c: Likewise.
12012 * commands/reboot.c: Likewise.
12013 * commands/search.c: Likewise.
12014 * commands/sleep.c: Likewise.
12015 * commands/test.c: Likewise.
12016 * commands/usbtest.c: Likewise.
12017 * commands/videotest.c: Likewise.
12018 * commands/i386/cpuid.c: Likewise.
12019 * commands/i386/pc/halt.c: Likewise.
12020 * commands/i386/pc/play.c: Likewise.
12021 * commands/i386/pc/pxecmd.c: Likewise.
12022 * commands/i386/pc/vbeinfo.c: Likewise.
12023 * commands/i386/pc/vbetest.c: Likewise.
12024 * commands/ieee1275/suspend.c: Likewise.
12025 * disk/loopback.c: Likewise.
12026 * font/font_cmd.c: Likewise.
12027 * hello/hello.c: Likewise.
12028 * loader/efi/appleloader.c: Likewise.
12029 * loader/efi/chainloader.c: Likewise.
12030 * loader/i386/bsd.c: Likewise.
12031 * loader/i386/efi/linux.c: Likewise.
12032 * loader/i386/ieee1275/linux.c: Likewise.
12033 * loader/i386/linux.c: Likewise.
12034 * loader/i386/pc/chainloader.c: Likewise.
12035 * loader/i386/pc/linux.c: Likewise.
12036 * loader/powerpc/ieee1275/linux.c: Likewise.
12037 * loader/multiboot_loader.c: Likewise.
12038 * term/gfxterm.c: Likewise.
12039 * term/i386/pc/serial.c: Likewise.
12040 * term/terminfo.c: Likewise.
12041
12042 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
12043 * term/i386/pc/vga.c: Likewise.
12044 * video/readers/jpeg.c: Likewise.
12045 * video/readers/png.c: Likewise.
12046 * video/readers/tga.c: Likewise.
12047
12048 * util/grub-fstest (cmd_loopback): Removed.
12049 (cmd_blocklist): Likewise.
12050 (cmd_ls): Likewise.
12051 (grub_register_command): Likewise.
12052 (grub_unregister_command): Likewise.
12053 (execute_command): Use grub_command_find to locate command and execute
12054 it.
12055
12056 * include/grub/efi/chainloader.h: Removed.
12057 * loader/efi/chainloader_normal.c: Likewise.
12058 * loader/i386/bsd_normal.c: Likewise.
12059 * loader/i386/pc/chainloader_normal.c: Likewise.
12060 * loader/i386/pc/multiboot_normal.c: Likewise.
12061 * loader/linux_normal.c: Likewise.
12062 * loader/multiboot_loader_normal.c: Likewise.
12063 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
12064
12065 * gencmdlist.sh: Scan new registration command grub_register_extcmd
12066 and grub_register_command_p1.
12067
12068 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
12069 kern/command.c, lib/arg.c and commands/extcmd.c.
12070 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
12071 (minicmd_mod_SOURCES): New variable.
12072 (minicmd_mod_CFLAGS): Likewise.
12073 (minicmd_mod_LDFLAGS): Likewise.
12074 (extcmd_mod_SOURCES): Likewise.
12075 (extcmd_mod_CFLAGS): Likewise.
12076 (extcmd_mod_LDFLAGS): Likewise.
12077 (boot_mod_SOURCES): Removed.
12078 (boot_mod_CFLAGS): Likewise.
12079 (boot_mod_LDFLAGS): Likewise.
12080
12081 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
12082 kern/corecmd.c.
12083 (kernel_img_HEADERS): Add command.h.
12084 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
12085 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
12086 and lib/arg.c.
12087 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
12088 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
12089 remove the corresponding normal mode command.
12090 (normal_mod_SOURCES): Remove normal/arg.c.
12091 * conf/i386-coreboot.rmk: Likewise.
12092 * conf/i386-efi.rmk: Likewise.
12093 * conf/i386-ieee1275.rmk: Likewise.
12094 * conf/powerpc-ieee1275.rmk: Likewise.
12095 * conf/x86_64-efi.rmk: Likewise.
12096
12097 * include/grub/arg.h: Move from here ...
12098 * include/grub/lib/arg.h: ... to here.
12099
12100 * normal/arg.c: Move from here ...
12101 * lib/arg.c: ... to here.
12102
12103 * commands/extcmd.c: New file.
12104 * commands/minicmd.c: Likewise.
12105 * include/grub/command.h: Likewise.
12106 * include/grub/extcmd.h: Likewise.
12107 * kern/command.c: Likewise.
12108 * kern/corecmd.c: Likewise.
12109
12110 * kern/list.c (grub_list_iterate): Return int instead of void.
12111 (grub_list_insert): New function.
12112 (grub_prio_list_insert): Likewise.
12113
12114 * kern/rescue.c (grub_rescue_command): Removed.
12115 (grub_rescue_command_list): Likewise.
12116 (grub_rescue_register_command): Likewise.
12117 (grub_rescue_unregister_command): Likewise.
12118 (grub_rescue_cmd_boot): Move to minicmd.c
12119 (grub_rescue_cmd_help): Likewise.
12120 (grub_rescue_cmd_info): Likewise.
12121 (grub_rescue_cmd_boot): Likewise.
12122 (grub_rescue_cmd_testload): Likewise.
12123 (grub_rescue_cmd_dump): Likewise.
12124 (grub_rescue_cmd_rmmod): Likewise.
12125 (grub_rescue_cmd_lsmod): Likewise.
12126 (grub_rescue_cmd_exit): Likewise.
12127 (grub_rescue_print_devices): Moved to corecmd.c.
12128 (grub_rescue_print_files): Likewise.
12129 (grub_rescue_cmd_ls): Likewise.
12130 (grub_rescue_cmd_insmod): Likewise.
12131 (grub_rescue_cmd_set): Likewise.
12132 (grub_rescue_cmd_unset): Likewise.
7d074e3c 12133 (attempt_normal_mode): Use grub_command_find to get normal module.
b1b797cb 12134 (grub_enter_rescue_mode): Use grub_register_core_commands to register
7d074e3c 12135 commands, remove grub_rescue_register_command calls.
b1b797cb 12136
7d074e3c 12137 * normal/command.c (grub_register_command): Removed.
b1b797cb 12138 (grub_unregister_command): Likewise.
12139 (grub_command_find): Likewise.
12140 (grub_iterate_commands): Likewise.
12141 (rescue_command): Likewise.
12142 (export_command): Moved to corecmd.c.
12143 (set_command): Removed.
12144 (unset_command): Likewise.
12145 (insmod_command): Likewise.
12146 (rmmod_command): Likewise.
12147 (lsmod_command): Likewise.
12148 (grub_command_init): Likewise.
12149
12150 * normal/completion.c (iterate_command): Use cmd->prio to check for
12151 active command.
12152 (complete_arguments): Use grub_extcmd_t structure to find options.
12153 (grub_normal_do_completion): Change function grub_iterate_commands to
12154 grub_command_iterate.
12155
12156 * normal/execute.c (grub_script_execute_cmd): No need to parse
12157 argument here.
12158
12159 * normal/main.c (grub_dyncmd_dispatcher): New function.
12160 (read_command_list): Register unload commands as dyncmd.
12161 (grub_cmd_normal): Use new command interface, register rescue,
12162 unregister normal at entry, register normal, unregister rescue at exit.
12163
12164 * include/grub/list.h (grub_list_test_t): New type.
12165 (grub_list_iterate): Return int instead of void.
12166 (grub_list_insert): New function.
12167 (GRUB_AS_NAMED_LIST_P): New macro.
12168 (GRUB_AS_PRIO_LIST): Likewise.
12169 (GRUB_AS_PRIO_LIST_P): Likewise.
12170 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
12171 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
12172 (grub_prio_list): New structure.
12173 (grub_prio_list_insert): New function.
12174 (grub_prio_list_remove): New inline function.
12175
12176 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
12177 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
12178 (GRUB_COMMAND_FLAG_MENU): Likewise.
12179 (GRUB_COMMAND_FLAG_BOTH): Likewise.
12180 (GRUB_COMMAND_FLAG_TITLE): Likewise.
12181 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
12182 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
12183 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
12184 (grub_command): Likewise.
12185 (grub_register_command): Likewise.
12186 (grub_command_find): Likewise.
12187 (grub_iterate_commands): Likewise.
12188 (grub_command_init): Likewise.
12189 (grub_arg_parse): Likewise.
12190 (grub_arg_show_help): Likewise.
12191
12192 * include/grub/rescue.h (grub_rescue_register_command): Removed.
12193 (grub_rescue_unregister_command): Likewise.
12194
12195 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
12196 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
12197 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
12198
12199 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
12200 grub_rescue_cmd_initrd.
12201 * include/grub/i386/loader.h: Likewise.
12202 * include/grub/x86_64/loader.h: Likewise.
12203
12204 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
12205
1f4147aa 122062009-03-21 Bean <bean123ch@gmail.com>
12207
12208 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
12209 instead of stat in mingw environment.
12210
12211 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
12212
12213 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
12214
12215 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
12216 AC_CONFIG_LINKS.
12217
2156d5ba 122182009-03-21 Bean <bean123ch@gmail.com>
12219
12220 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
12221 out of range error.
12222
177b82ca 122232009-03-18 Michel Dänzer <michel@daenzer.net>
12224
12225 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
12226 checking inode flags for EXT4_EXTENTS_FLAG.
12227
14aad807 122282009-03-18 Robert Millan <rmh@aybabtu.com>
12229
12230 * loader/i386/linux.c: Include `<grub/video.h>' and
12231 `<grub/i386/pc/vbe.h>'..
12232 (grub_linux_setup_video): New function. Loosely based on the EFI one.
12233 (grub_linux32_boot): Attempt to configure video settings with
12234 grub_linux_setup_video().
12235 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
12236 to avoid grub_console_fini() which would step out of graphical mode
12237 unconditionally.
12238
8cf83a27 122392009-03-14 Robert Millan <rmh@aybabtu.com>
12240
12241 Fix build on powerpc.
12242 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
12243
40164e75 122442009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
12245
12246 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
12247 background image command.
12248
c58bc32a 122492009-03-12 Colin D Bennett <colin@gibibit.com>
12250
12251 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
12252 (grub_gfxterm_putchar): Extract pairs of identical calls to
12253 draw_cursor out of conditional blocks.
12254
5415144a 122552009-03-11 Pavel Roskin <proski@gnu.org>
12256
12257 * fs/hfs.c (grub_hfs_strncasecmp): New function.
12258 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
12259
6394042e 122602009-03-11 Robert Millan <rmh@aybabtu.com>
12261
12262 * loader/i386/multiboot_elfxx.c
12263 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
12264
b7b50e5f 122652009-03-11 Felix Zielcke <fzielcke@z-51.de>
12266
12267 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
12268 `kern/handler.c'.
12269
1ca7fc96 122702009-03-11 Robert Millan <rmh@aybabtu.com>
12271
12272 * loader/i386/multiboot.c (code_size): New variable.
12273 (grub_multiboot): Define offsets by adding to `code_size' rather
7d074e3c 12274 than subtracting from `grub_multiboot_payload_size'. Provide
1ca7fc96 12275 4-byte alignment to MBI and others by increasing
7d074e3c 12276 `boot_loader_name_length' appropriately.
1ca7fc96 12277
12278 * loader/i386/multiboot_elfxx.c
12279 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
12280
a83ea1d2 122812009-03-09 Felix Zielcke <fzielcke@z-51.de>
12282
12283 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
12284 `fs/ext2.c'.
12285
aa9f3bff 122862009-03-08 Robert Millan <rmh@aybabtu.com>
12287
12288 Make loader/i386/linux.c usable on i386-pc again.
12289
12290 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
12291 memory to heap.
12292 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
12293 `#error' stanza.
12294
d8b3b60e 122952009-03-07 Bean <bean123ch@gmail.com>
12296
12297 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
12298 allocation.
12299
b362c9e9 123002009-03-06 Robert Millan <rmh@aybabtu.com>
12301
12302 Fix display issue on terminals with screen size other than 80x25
12303 (e.g. gfxterm with resolution higher than 640x480).
12304
12305 * normal/main.c (grub_normal_init_page): Display title text in a
7d074e3c 12306 position relative to the center of the terminal instead of relying
b362c9e9 12307 on a hardcoded offset.
12308
9304eef1 123092009-03-04 Robert Millan <rmh@aybabtu.com>
12310
12311 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
12312 installed.
12313
12314 * Makefile.in (host_kernel): New variable.
12315 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
12316 scripts instead of just the windows one.
12317 * configure.ac: Initialize and AC_SUBST `host_kernel'.
12318
eabc95fb 123192009-03-04 Felix Zielcke <fzielcke@z-51.de>
2ba60b62 12320
12321 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
12322 `kern/handler.c'.
12323 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
12324 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
12325 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
12326 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
12327 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
12328 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
12329
ceb1223c 123302009-03-04 Felix Zielcke <fzielcke@z-51.de>
12331
12332 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
12333 or if there's no space for the disk label and print the partition number on a
12334 invalid magic.
12335
4910684a 123362009-03-04 Felix Zielcke <fzielcke@z-51.de>
12337
12338 * util/misc.c: Include <time.h>.
12339 (grub_millisleep): New function.
12340
7e9ca17a 123412009-03-04 Bean <bean123ch@gmail.com>
12342
12343 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
12344 another option -mno-red-zone.
12345
12346 * commands/handler.c: Change module description.
12347
12348 * kern/handler.c: Add missing space at the end of description line.
12349
12350 * kern/list.c: Likewise.
12351
f501677c 123522009-03-03 Robert Millan <rmh@aybabtu.com>
12353
12354 Move more components to the relocation area, and fix mbi pointer
12355 handling to use the destination rather than the origin (thanks to
12356 Vladimir Serbinenko for spotting).
12357
12358 * loader/i386/multiboot.c (mbi_dest): New variable.
12359 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
12360 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
12361 relocation area.
12362
9902d047 123632009-03-01 Bean <bean123ch@gmail.com>
12364
50fb7002 12365 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
9902d047 12366 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
12367 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
12368 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
12369
12370 * loader/i386/efi/linux.c (acpi_guid): New variable.
12371 (acpi_guid): Likewise.
12372 (EBDA_SEG_ADDR): New constant.
12373 (LOW_MEM_ADDR): Likewise.
12374 (FAKE_EBDA_SEG): Likewise.
12375 (fake_bios_data): New function.
12376 (grub_linux_boot): Call fake_bios_data.
12377
71b9f361 123782009-03-01 Bean <bean123ch@gmail.com>
12379
12380 * commands/terminal.c: Removed.
12381
12382 * commands/handler.c: New file.
12383
12384 * include/grub/list.h: Likewise.
12385
12386 * include/grub/handler.h: Likewise.
12387
12388 * kern/list.c: Likewise.
12389
12390 * kern/handler.c: Likewise.
12391
12392 * kern/term.h: Include header file <grub/handler.h>.
12393 (grub_term_input): Move next field to the beginning.
12394 (grub_term_output): Likewise.
12395 (grub_term_input_class): New variable.
12396 (grub_term_output_class): Likewise.
12397 (grub_term_register_input): Changed to inline function.
12398 (grub_term_register_output): Likewise.
12399 (grub_term_unregister_input): Likewise.
12400 (grub_term_unregister_output): Likewise.
12401 (grub_term_set_current_input): Likewise.
12402 (grub_term_set_current_output): Likewise.
12403 (grub_term_get_current_input): Likewise.
12404 (grub_term_get_current_output): Likewise.
12405 (grub_term_iterate_input): Removed.
12406 (grub_term_iterate_output): Likewise.
12407
12408 * kern/term.c (grub_term_list_input): Removed.
12409 (grub_term_list_output): Likewise.
12410 (grub_term_input_class): New variable.
12411 (grub_term_output_class): Likewise.
50fb7002 12412 (grub_cur_term_input): Change variable as macro.
71b9f361 12413 (grub_cur_term_output): Likewise.
12414 (grub_term_register_input): Removed.
12415 (grub_term_register_output): Likewise.
12416 (grub_term_unregister_input): Likewise.
12417 (grub_term_unregister_output): Likewise.
12418 (grub_term_set_current_input): Likewise.
12419 (grub_term_set_current_output): Likewise.
12420 (grub_term_iterate_input): Likewise.
12421 (grub_term_iterate_output): Likewise.
12422 (grub_term_get_current_input): Likewise.
12423 (grub_term_get_current_output): Likewise.
12424
12425 * util/grub-editenv.c: Include header file <grub/handler.h>.
12426 (grub_term_get_current_input): Removed.
12427 (grub_term_get_current_output): Likewise.
12428 (grub_term_input_class): New variable.
50fb7002 12429 (grub_term_output_class): Likewise.
71b9f361 12430
12431 * util/grub-fstest.c (grub_term_get_current_input): Removed.
12432 (grub_term_get_current_output): Likewise.
12433 (grub_term_input_class): New variable.
50fb7002 12434 (grub_term_output_class): Likewise.
71b9f361 12435
12436 * util/grub-probe.c (grub_term_get_current_input): Removed.
12437 (grub_term_get_current_output): Likewise.
12438 (grub_term_input_class): New variable.
50fb7002 12439 (grub_term_output_class): Likewise.
71b9f361 12440
12441 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
12442 (grub_term_get_current_output): Likewise.
12443 (grub_term_input_class): New variable.
50fb7002 12444 (grub_term_output_class): Likewise.
71b9f361 12445
12446 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
12447 (terminal_mod_SOURCES): Likewise.
12448 (terminal_mod_CFLAGS): Likewise.
12449 (terminal_mod_LDFLAGS): Likewise.
12450
12451 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
12452 handler.c.
12453 (kernel_img_SOURCES): Add list.c and handler.c.
12454 (kernel_img_HEADERS): Add list.h and handler.h.
12455
12456 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
12457 handler.c.
12458 (kernel_mod_SOURCES): Add list.c and handler.c.
12459 (kernel_mod_HEADERS): Add list.h and handler.h.
12460
12461 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
12462 handler.c.
12463 (kernel_elf_SOURCES): Add list.c and handler.c.
12464 (kernel_elf_HEADERS): Add list.h and handler.h.
12465
12466 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
12467 handler.c.
12468 (kernel_elf_SOURCES): Add list.c and handler.c.
12469 (kernel_elf_HEADERS): Add list.h and handler.h.
12470
12471 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
12472 handler.c.
12473 (kernel_mod_SOURCES): Add list.c and handler.c.
12474 (kernel_mod_HEADERS): Add list.h and handler.h.
12475
12476 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
12477 handler.c.
12478 (kernel_elf_SOURCES): Add list.c and handler.c.
12479 (kernel_elf_HEADERS): Add list.h and handler.h.
12480
8a31787f 124812009-02-27 Robert Millan <rmh@aybabtu.com>
12482
12483 Factorize elf32 / elf64 code in Multiboot loader. This will
12484 prevent it from getting out of sync again.
12485
12486 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
12487 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
12488 grub_multiboot_load_elf64): Move from here ...
12489 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
12490 grub_multiboot_load_elf): ... to here (new file).
12491
51cd3dfc 124922009-02-27 Robert Millan <rmh@aybabtu.com>
12493
12494 * util/grub.d/10_linux.in: Rename "single-user mode" to
12495 "recovery mode".
12496
6e8c9c3a 124972009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12498
12499 Don't leak in SCSI code.
12500 * disk/scsi.c (grub_scsi_close): free `scsi'.
12501
4b6bf4f9 125022009-02-27 Robert Millan <rmh@aybabtu.com>
12503
12504 * loader/i386/pc/multiboot.c: Move from here ...
12505 * loader/i386/multiboot.c: ... to here. Update all users.
12506
b9413424 125072009-02-27 Robert Millan <rmh@aybabtu.com>
12508
12509 Patch from Alexandre Bique <bique.alexandre@gmail.com>
12510 * util/i386/pc/grub-setup.c (setup): Fix directory path.
12511
50fb7002 125122009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
34519c3f 12513
12514 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
12515 b-tree.
12516
8cc50345 125172009-02-27 Robert Millan <rmh@aybabtu.com>
12518
12519 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
12520 `0x' qualifier as 0 when base is specified as parameter).
12521
6e09b8b7 125222009-02-24 Bean <bean123ch@gmail.com>
12523
12524 * configure.ac: Check for -mcmodel=large in x86_64 target.
12525
12526 * include/grub/efi/api.h (efi_call_10): New macro.
12527 (efi_wrap_10): New function.
12528
12529 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
12530 (GRUB_PE32_REL_BASED_HIGH): Likewise.
12531 (GRUB_PE32_REL_BASED_LOW): Likewise.
12532 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
12533 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
12534 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
12535 (GRUB_PE32_REL_BASED_SECTION): Likewise.
12536 (GRUB_PE32_REL_BASED_REL): Likewise.
12537 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
12538 (GRUB_PE32_REL_BASED_DIR64): Likewise.
12539 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
12540
12541 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
12542 issue.
12543
12544 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
12545 (efi_wrap_10): New function.
12546
12547 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
12548
12549 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
12550 MB/MBP model (NV chipset).
12551 (devdata_devs): Add devpath_5 to the list.
12552
12553 * load/i386/efi/linux.c (video_base): Remove variable.
12554 (RGB_MASK): New macro.
12555 (RGB_MAGIC): Likewise.
12556 (LINE_MIN): Likewise.
12557 (LINE_MAX): Likewise.
12558 (FBTEST_STEP): Likewise.
12559 (FBTEST_COUNT): Likewise.
12560 (fb_list): New variable.
12561 (grub_find_video_card): Remove function.
12562 (find_framebuf): New function.
12563 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
12564 line length.
12565
12566 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
12567 problem for x86_64.
12568
74b21bee 125692009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
12570
12571 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
12572
12573 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
12574 coding tool name.
12575
a455f472 125762009-02-22 Robert Millan <rmh@aybabtu.com>
12577
12578 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
12579 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
12580 in our relocation, instead of using it directly from heap. Also
12581 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
12582
6374daf3 125832009-02-21 Robert Millan <rmh@aybabtu.com>
12584
12585 Implement USB keyboard support (based on patch by Marco Gerards)
12586
12587 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
12588 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
12589 (usb_keyboard_mod_LDFLAGS): New variables.
12590
12591 * term/usb_keyboard.c: New file.
12592
8fa4ea70 125932009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
12594
12595 Corrected wrong declaration
12596
12597 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
12598
353976ac 125992009-02-14 Christian Franke <franke@computer.org>
12600
12601 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
12602 (grub_lspci_iter): Print class code and programming interface byte.
12603
6aa1169b 126042009-02-14 Christian Franke <franke@computer.org>
12605
12606 * gendistlist.sh: Ignore `.svn' directories.
12607
265372ca 126082009-02-14 Felix Zielcke <fzielcke@z-51.de>
12609
12610 * fs/fat.c: Add 2009 to Copyright line.
12611
9ff516f3 126122009-02-14 Christian Franke <franke@computer.org>
12613
12614 * commands/hdparm.c: New file. Provides `hdparm' command
12615 which sends ATA commands via grub_disk_ata_pass_through ().
12616
12617 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
12618
12619 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
12620 and <grub/cpu/io.h> to include/grub/ata.h.
12621 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
12622 (GRUB_CDROM_SECTOR_SIZE): Remove.
12623 (GRUB_ATA_*): Move to include/grub/ata.h.
12624 (GRUB_ATAPI_*): Likewise.
12625 (enum grub_ata_commands): Likewise.
12626 (enum grub_ata_timeout_milliseconds): Likewise.
12627 (struct grub_ata_device): Likewise.
12628 (grub_ata_regset): Likewise.
12629 (grub_ata_regget): Likewise.
12630 (grub_ata_regset2): Likewise.
12631 (grub_ata_regget2): Likewise.
12632 (grub_ata_check_ready): Likewise.
12633 (grub_ata_wait_not_busy): Remove static, exported in
12634 include/grub/ata.h.
12635 (grub_ata_wait_drq): Likewise.
12636 (grub_ata_pio_read): Likewise.
12637
12638 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
12639 function for hdparm.mod.
12640
12641 * include/grub/ata.h: New file, contains declarations from
12642 disk/ata.c.
12643 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
12644
12645 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
12646 (grub_disk_ata_pass_through): New exported variable.
12647
12648 * kern/disk.c (grub_disk_ata_pass_through): New variable.
12649
772e23da 126502009-02-13 Colin D Bennett <colin@gibibit.com>
12651
12652 Support multiple fallback entries, and provide an API to support
12653 executing default+fallback menu entries. Renamed the `terminal' menu
12654 viewer to `text'.
12655
12656 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
12657 variable declaration.
12658 (grub_menu_execute_callback): New structure declaration.
12659 (grub_menu_execute_callback_t): New typedef.
12660 (grub_menu_execute_with_fallback): New function declaration.
12661 (grub_menu_get_entry): Likewise.
12662 (grub_menu_get_timeout): Likewise.
12663 (grub_menu_set_timeout): Likewise.
12664
12665 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
12666
12667 * normal/menu.c (grub_wait_after_message): Moved to
12668 `normal/menu_text.c'.
12669 (draw_border): Likewise.
12670 (print_message): Likewise.
12671 (print_entry): Likewise.
12672 (print_entries): Likewise.
12673 (grub_menu_init_page): Likewise.
12674 (get_entry_number): Likewise.
12675 (print_timeout): Likewise.
12676 (run_menu): Likewise.
12677 (grub_menu_execute_entry): Likewise.
12678 (show_text_menu): Likewise.
12679 (get_and_remove_first_entry_number): New function.
12680 (grub_menu_execute_with_fallback): Likewise.
12681 (get_entry): Renamed to ...
12682 (grub_menu_get_entry): .. this and made it global.
12683 (get_timeout): Renamed to ...
12684 (grub_menu_get_timeout): ... this and made it global.
12685 (set_timeout): Renamed to ...
12686 (grub_menu_set_timeout): ... this and made it global.
12687 (grub_normal_terminal_menu_viewer): Renamed to ...
12688 (grub_normal_text_menu_viewer): ... this.
12689
12690 * normal/menu_text.c: New file. Extracted text-menu-specific code
12691 from normal/menu.c.
12692
12693 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
12694 (normal_mod_SOURCES): Likewise.
12695
12696 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
12697 (normal_mod_SOURCES): Likewise.
12698
12699 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
12700 (normal_mod_SOURCES): Likewise.
12701
12702 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
12703 (normal_mod_SOURCES): Likewise.
12704
12705 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
12706 (normal_mod_SOURCES): Likewise.
12707
12708 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
12709 (normal_mod_SOURCES): Likewise.
12710
12711 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
12712 (normal_mod_SOURCES): Likewise.
12713
16ac430e 127142009-02-11 Robert Millan <rmh@aybabtu.com>
12715
12716 * util/grub.d/00_header.in: Update old reference to `font' command.
12717
06ff20fc 127182009-02-10 Felix Zielcke <fzielcke@z-51.de>
12719
12720 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
12721
12722 Based on patch from Javier Martín.
12723
96da9407 127242009-02-09 Felix Zielcke <fzielcke@z-51.de>
12725
12726 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
50fb7002 12727 to avoid false positives with FAT.
96da9407 12728 (grub_fstest_SOURCES): Likewise.
12729 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
12730 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
12731 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
12732 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
12733 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
12734 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
12735
6dca6fe4 127362009-02-09 Felix Zielcke <fzielcke@z-51.de>
12737
06ff20fc 12738 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
6dca6fe4 12739 bpb.version_specific.fat12_or_fat16.fstype and
12740 bpb.version_specific.fat32.fstype.
12741
2550c62f 127422009-02-08 Robert Millan <rmh@aybabtu.com>
12743
be110b30 12744 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
2550c62f 12745
56978920 127462009-02-08 Robert Millan <rmh@aybabtu.com>
12747
12748 * Makefile.in (host_os, host_cpu): New variables.
12749 (target_os): Remove. Update all users.
12750
d64399b5 127512009-02-08 Marco Gerards <marco@gnu.org>
12752
12753 * Makefile.in (enable_grub_emu_usb): New variable.
12754 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
12755 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
12756 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
12757 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
12758 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
12759 `usbtest.mod' and `usbms.mod'.
12760 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
12761 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
12762 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
12763 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
12764 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
12765 variables.
12766
12767 * disk/usbms.c: New file.
12768
12769 * include/grub/usb.h: Likewise.
12770
12771 * include/grub/usbtrans.h: Likewise.
12772
12773 * include/grub/usbdesc.h: Likewise.
12774
12775 * bus/usb/usbtrans.c: Likewise.
12776
12777 * bus/usb/ohci.c: Likewise.
12778
12779 * bus/usb/uhci.c: Likewise.
12780
12781 * bus/usb/usbhub.c: Likewise.
12782
12783 * bus/usb/usb.c: Likewise.
12784
12785 * commands/usbtest.c: Likewise.
12786
12787 * util/usb.c: Likewise.
50fb7002 12788
d64399b5 12789 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
12790
12791 * configure.ac: Test for libusb presence.
50fb7002 12792
d64399b5 12793 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
12794
2b40d6bb 127952009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
12796
12797 * kern/mm.c: Add more comments.
12798
73a4ce81 127992009-02-08 Robert Millan <rmh@aybabtu.com>
12800
12801 Patch from Javier Martín.
12802 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
12803 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
12804
f821ce59 128052009-02-08 Robert Millan <rmh@aybabtu.com>
12806
12807 * fs/cpio.c: Split tar functionality to ...
12808 * fs/tar.c: ... here (new file). Update all users.
12809
aebfc4b0 128102009-02-07 Robert Millan <rmh@aybabtu.com>
12811
12812 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
12813 backward-incompatible features.
12814
12815 Based on patch from Javier Martín, with some adjustments.
12816
50fb7002 128172009-02-07 Michael Scherer <misc@mandriva.org>
cea15bca 12818
12819 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
12820
0bb5115e 128212009-02-07 Robert Millan <rmh@aybabtu.com>
12822
12823 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
12824 position of `disk/lvm.c' to ensure grub_init_all() always picks it
12825 after the RAID stuff.
12826
38a0f8e7 128272009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
12828
50fb7002 12829 Fixes problem when running vbetest command as reported by
38a0f8e7 12830 Vladimir Serbinenko <phcoder@gmail.com>.
12831
12832 * (grub_vbe_set_video_mode): Fixed problem with text modes.
12833
3143cc1c 128342009-02-04 Felix Zielcke <fzielcke@z-51.de>
12835
12836 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
12837 /dev/md/NpN style mdraid devices.
12838
9cba6fce 128392009-02-03 Felix Zielcke <fzielcke@z-51.de>
12840
12841 * util/unifont2pff.rb: Remove.
12842
e507a2c1 128432009-02-03 Felix Zielcke <fzielcke@z-51.de>
12844
12845 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
12846 `#'.
12847
d2c2b4cd 128482009-02-03 Felix Zielcke <fzielcke@z-51.de>
12849
12850 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
12851 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
12852 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
12853 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
12854 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
12855 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
12856 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
12857
b4315fb0 128582009-02-02 Christian Franke <franke@computer.org>
12859
12860 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
12861
de3aa260 128622009-02-01 Felix Zielcke <fzielcke@z-51.de>
12863
7c3ff286 12864 * INSTALL: Note that we now require at least autoconf 2.59 and
12865 that LZO is optional.
de3aa260 12866
825a182b 128672009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
12868
12869 Base on patch on bug #24154 created by Tomas Tintera
12870 <trosos@seznam.cz>.
12871
12872 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
12873
a69ef770 128742009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
12875
7c3ff286 12876 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
a69ef770 12877 <bero@arklinux.org>.
12878
12879 * normal/parser.y (script_init): Add missing semicolon.
12880
6fa42fa6 128812009-01-31 Colin D Bennett <colin@gibibit.com>
12882
7c3ff286 12883 * normal/main.c: Add include to grub/menu_viewer.h.
6fa42fa6 12884 (free_menu_entry_classes): Added.
12885 (grub_normal_menu_addentry): Added class property handling.
12886 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
12887 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
12888
12889 * normal/menu_viewer.c: New file.
12890
12891 * normal/menu.c (run_menu_entry): Renamed to ...
12892 (grub_menu_execute_entry): ... this and made it as global.
12893 (grub_menu_run): Renamed to ...
12894 (show_text_menu): ... this and made it local.
12895 (show_text_menu): Adapt to new function names.
12896 (grub_normal_terminal_menu_viewer): New global variable.
12897
12898 * include/grub/menu.h: New file.
12899
12900 * include/grub/menu_viewer.h: New file.
12901
12902 * include/grub/normal.h: Added include to grub/menu.h.
12903 (grub_menu_entry): Moved to include/grub/menu.h.
12904 (grub_menu_entry_t): Likewise.
12905 (grub_menu): Likewise.
12906 (grub_menu_t): Likewise.
12907 (grub_normal_terminal_menu_viewer): Added.
12908 (grub_menu_execute_entry): Likewise.
12909 (grub_menu_run): Removed.
12910
12911 * DISTLIST: Added include/grub/menu.h.
12912 Added include/grub/menu_viewer.h.
12913 Added normal/menu_viewer.c.
12914
129152009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
12916
12917 * normal/execute.c (grub_script_execute_menuentry): Changed to use
12918 arglist for menutitle arguments.
12919
12920 * normal/main.c (grub_normal_menu_addentry): Likewise.
12921
12922 * normal/parser.y (menuentry): Likewise.
12923
12924 * normal/script.c (grub_script_create_cmdmenu): Likewise.
12925
12926 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
12927 (grub_script_create_cmdmenu): Likewise.
12928
12929 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
12930
12931 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
12932 changes.
12933
12934 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
12935
12936 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
12937
12938 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
12939
12940 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
12941
12942 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
12943
12944 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
12945
56192c23 129462009-01-30 Christian Franke <franke@computer.org>
12947
12948 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
12949 in option help text.
12950
d72521b3 129512009-01-27 Pavel Roskin <proski@gnu.org>
12952
12953 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
12954
994b5e84 129552009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
12956
12957 * commands/lsmmap.c: Add include to grub/machine/memory.h.
12958
12959 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
12960
12961 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
12962 unregister function.
12963
6a7eab2c 129642009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
12965
12966 * disk/scsi.c (grub_scsi_read): Fix sign problem.
12967
12968 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
12969
12970 * util/grub-mkfont.c (usage): Fix typo.
12971
12972 * util/elf/grub-mkimage.c (load_modules): Fix warning.
12973
1806b56e 129742009-01-26 Daniel Mierswa <impulze@impulze.org>
12975
3fb18f09 12976 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
12977
336e1fb9 12978 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
12979
1806b56e 12980 * kern/misc.c (grub_strcasecmp): New function.
12981 (grub_strcasecmp): Use grub_size_t instead of int for length.
12982 Fix return value.
12983 * include/grub/misc.h: Update function prototypes.
12984
580b2a0f 129852009-01-26 Robert Millan <rmh@aybabtu.com>
12986
12987 * configure.ac: Fix cross-compilation check.
ef257b36 12988
d31c24f1 129892009-01-22 Christian Franke <franke@computer.org>
12990
12991 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
12992 (precision) digit string. Allow `.format2' without `format1' (width).
12993 Limit input chars for `%s' output to `format2' if specified. This is
12994 compatible with standard printf ().
12995
3138b44c 129962009-01-22 Christian Franke <franke@computer.org>
12997
12998 * disk/ata.c (grub_ata_wait_status): Replace by ...
12999 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
13000 other status bits may be invalid while BSY is asserted.
13001 (grub_ata_check_ready): New function.
13002 (grub_ata_cmd): Removed.
13003 (grub_ata_wait_drq): New function.
13004 (grub_ata_strncpy): Remove inline.
13005 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
13006 and error check now done by grub_ata_wait_drq ().
13007 (grub_ata_pio_write): Likewise.
13008 (grub_atapi_identify): Set DEV before check for !BSY. Use
13009 grub_ata_wait_drq () to wait for data.
13010 (grub_ata_device_initialize): Add status register check to
13011 detect missing SATA slave devices. Add debug messages.
13012 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
13013 (grub_atapi_packet): Set DEV before check for !BSY. Replace
13014 transfer loop by grub_ata_pio_write ().
13015 (grub_ata_identify): Set DEV before check for !BSY. Use
13016 grub_ata_wait_drq () to wait for data.
ef257b36 13017 (grub_ata_setaddress): Set DEV before check for !BSY.
3138b44c 13018 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
13019 read/write in one loop. Fix invalid command on write. Fix incomplete
13020 command on (size % batch) == 0. Add missing error check after write of
13021 last block. Add debug messages.
13022 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
13023
59a64ef6 130242009-01-19 Christian Franke <franke@computer.org>
13025
13026 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
13027 (GRUB_ATAPI_IREASON_*): Likewise.
13028 (grub_ata_pio_write): Fix timeout error return.
13029 (grub_atapi_identify): Add grub_ata_wait () after cmd.
13030 (grub_atapi_wait_drq): New function.
13031 (grub_atapi_packet): New parameter `size'.
13032 Use grub_atapi_wait_drq () and direct write instead of
13033 grub_ata_pio_write ().
13034 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
13035 reads the number of bytes requested by the device for each DRQ
13036 assertion.
13037 (grub_atapi_write): Remove old implementation, return not
13038 implemented instead.
13039
1cfe20b3 130402009-01-19 Christian Franke <franke@computer.org>
13041
13042 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
13043 of 512 to calculate data size.
13044 (grub_scsi_read12): Likewise.
13045 (grub_scsi_write10): Likewise.
13046 (grub_scsi_write12): Likewise.
13047 (grub_scsi_read): Adjust size according to blocksize.
13048 Add checks for invalid blocksize and unaligned transfer.
13049
bee5fe5d 130502009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
13051
13052 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
13053
ef257b36 13054 * term/gfxterm.c (write_char): Fix background rendering for wide
bee5fe5d 13055 width glyphs.
13056
3e643f8c 130572009-01-19 Robert Millan <rmh@aybabtu.com>
13058
13059 * config.guess: Update to latest version from config git.
13060 * config.sub: Likewise.
13061
4fa80998 130622009-01-17 Felix Zielcke <fzielcke@z-51.de>
13063
13064 * Makefile.in: Change font compilation to use new grub-mkfont instead
13065 of java version.
13066
13067 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
13068 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
13069 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
13070 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
13071 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
13072 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
13073 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
13074 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
13075 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
13076
7086085b 130772009-01-16 Christian Franke <franke@computer.org>
13078
13079 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
13080 (enum grub_ata_timeout_milliseconds): New enum.
13081 (grub_ata_wait_status): Add parameter milliseconds.
13082 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
13083 recovery from timed-out commands.
13084 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
13085 return grub_errno instead of REG_ERROR.
13086 (grub_ata_pio_write): Add parameter milliseconds.
13087 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
13088 Pass milliseconds to grub_ata_wait_status () and
13089 grub_ata_pio_read ().
13090 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
13091 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
13092 grub_ata_wait_status (). Fix IDENTIFY timeout check.
13093 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
13094 It is not suitable for device detection, because DEV bit is ignored,
13095 the command may run too long, and not all devices set the signature
13096 properly.
13097 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
13098 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
13099 Fix device selection, DEV bit must be set first to address the registers
13100 of the correct device.
13101 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
13102 grub_ata_pio_read/write ().
13103 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
13104 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
13105
4a412913 131062009-01-13 Carles Pina i Estany <carles@pina.cat>
13107
13108 * util/grub-editenv.c (main): Use fseeko(), not fseek().
13109
7795c55e 131102009-01-13 Bean <bean123ch@gmail.com>
d913988c 13111
13112 * util/grub-mkfont.c (write_font): forget to remove some debug code.
13113
7795c55e 131142009-01-13 Bean <bean123ch@gmail.com>
e52db1f7 13115
13116 * Makefile.in: (enable_grub_mkfont): New variable.
13117 (freetype_cflags): Likewise.
13118 (freetype_libs): Likewise.
13119
13120 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
13121 (grub_mkfont_SOURCES): New variable.
13122 (grub_mkfont_CFLAGS): Likewise.
13123 (grub_mkfont_LDFLAGS): Likewise.
13124
13125 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
13126 library if `--enable-grub-mkfont' is requested.
13127 (enable_grub_mkfont): New variable.
13128 (freetype_cflags): Likewise.
13129 (freetype_libs): Likewise.
13130
13131 * util/grub-mkfont.c: New file.
13132
093af1fe 131332009-01-12 Christian Franke <franke@computer.org>
13134
13135 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
13136 mode check. Fix setting of compat_use[].
13137
f36cc108 131382009-01-10 Robert Millan <rmh@aybabtu.com>
13139
13140 Update a few copyright years which we forgot to do in 2008 (only for
13141 files whose changes made in 2008 were copyright-significant)
13142
13143 * Makefile.in: Add 2008 to Copyright line.
13144 * disk/ieee1275/ofdisk.c: Likewise.
13145 * disk/efi/efidisk.c: Likewise.
13146 * kern/dl.c: Likewise.
13147 * kern/sparc64/ieee1275/init.c: Likewise.
13148 * kern/mm.c: Likewise.
13149 * kern/efi/mm.c: Likewise.
13150 * boot/i386/pc/boot.S: Likewise.
13151 * genfslist.sh: Likewise.
13152 * fs/iso9660.c: Likewise.
13153 * fs/hfs.c: Likewise.
13154 * fs/jfs.c: Likewise.
13155 * fs/minix.c: Likewise.
13156 * fs/ufs.c: Likewise.
13157 * gensymlist.sh.in: Likewise.
13158 * genkernsyms.sh.in: Likewise.
13159 * include/grub/misc.h: Likewise.
13160 * include/grub/types.h: Likewise.
13161 * include/grub/symbol.h: Likewise.
13162 * include/grub/elf.h: Likewise.
13163 * include/grub/kernel.h: Likewise.
13164 * include/grub/disk.h: Likewise.
13165 * include/grub/dl.h: Likewise.
13166 * include/grub/i386/linux.h: Likewise.
13167 * include/grub/i386/pc/biosdisk.h: Likewise.
13168 * include/grub/efi/api.h: Likewise.
13169 * include/grub/efi/pe32.h: Likewise.
13170 * include/grub/util/misc.h: Likewise.
13171 * normal/execute.c: Likewise.
13172 * normal/arg.c: Likewise.
13173 * normal/completion.c: Likewise.
13174 * normal/lexer.c: Likewise.
13175 * normal/parser.y: Likewise.
13176 * normal/misc.c: Likewise.
13177 * commands/i386/pc/vbeinfo.c: Likewise.
13178 * commands/hexdump.c: Likewise.
13179 * commands/terminal.c: Likewise.
13180 * commands/ls.c: Likewise.
13181 * commands/help.c: Likewise.
13182 * partmap/pc.c: Likewise.
13183 * loader/efi/chainloader.c: Likewise.
13184 * loader/multiboot_loader.c: Likewise.
13185 * loader/i386/pc/multiboot2.c: Likewise.
13186 * term/efi/console.c: Likewise.
13187 * term/i386/pc/serial.c: Likewise.
13188 * util/lvm.c: Likewise.
13189 * util/console.c: Likewise.
13190 * util/i386/efi/grub-mkimage.c: Likewise.
13191 * util/raid.c: Likewise.
13192
7f02114b 131932009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
13194
13195 * commands/videotest.c: Removed include to grub/machine/memory.h.
13196
13197 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
13198 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
13199 (video_mod_SOURCES): Removed.
13200 (video_mod_CFLAGS): Likewise.
13201 (video_mod_LDFLAGS): Likewise.
13202 (gfxterm_mod_SOURCES): Likewise.
13203 (gfxterm_mod_CFLAGS): Likewise.
13204 (gfxterm_mod_LDFLAGS): Likewise.
13205 (videotest_mod_SOURCES): Likewise.
13206 (videotest_mod_CFLAGS): Likewise.
13207 (videotest_mod_LDFLAGS): Likewise.
13208 (bitmap_mod_SOURCES): Likewise.
13209 (bitmap_mod_CFLAGS): Likewise.
13210 (bitmap_mod_LDFLAGS): Likewise.
13211 (tga_mod_SOURCES): Likewise.
13212 (tga_mod_CFLAGS): Likewise.
13213 (tga_mod_LDFLAGS): Likewise.
13214 (jpeg_mod_SOURCES): Likewise.
13215 (jpeg_mod_CFLAGS): Likewise.
13216 (jpeg_mod_LDFLAGS): Likewise.
13217 (png_mod_SOURCES): Likewise.
13218 (png_mod_CFLAGS): Likewise.
13219 (png_mod_LDFLAGS): Likewise.
13220
13221 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
13222 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
13223 (video_mod_SOURCES): Added.
13224 (video_mod_CFLAGS): Likewise.
13225 (video_mod_LDFLAGS): Likewise.
13226 (videotest_mod_SOURCES): Likewise.
13227 (videotest_mod_CFLAGS): Likewise.
13228 (videotest_mod_LDFLAGS): Likewise.
13229 (bitmap_mod_SOURCES): Likewise.
13230 (bitmap_mod_CFLAGS): Likewise.
13231 (bitmap_mod_LDFLAGS): Likewise.
13232 (tga_mod_SOURCES): Likewise.
13233 (tga_mod_CFLAGS): Likewise.
13234 (tga_mod_LDFLAGS): Likewise.
13235 (jpeg_mod_SOURCES): Likewise.
13236 (jpeg_mod_CFLAGS): Likewise.
13237 (jpeg_mod_LDFLAGS): Likewise.
13238 (png_mod_SOURCES): Likewise.
13239 (png_mod_CFLAGS): Likewise.
13240 (png_mod_LDFLAGS): Likewise.
13241 (gfxterm_mod_SOURCES): Likewise.
13242 (gfxterm_mod_CFLAGS): Likewise.
7795c55e 13243 (gfxterm_mod_LDFLAGS): Likewise.
7f02114b 13244
13245 * term/gfxterm.c: Removed include to grub/machine/memory.h,
13246 grub/machine/console.h.
13247
644fff97 132482009-01-04 Jerone Young <jerone@gmail.com>
13249
13250 Make on screen instructions clearer
13251
13252 Based on patch created by Jidanni <jidanni@jidanni.org>
13253
13254 * normal/menu.c: print clearer instructions on the screen
13255
1e901a75 132562009-01-02 Colin D Bennett <colin@gibibit.com>
13257
13258 New font engine.
34c44600 13259
1e901a75 13260 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
13261 build system and fixed gfxterm.c to work with different sized fonts.
13262
13263 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
34c44600 13264
1e901a75 13265 * configure: Re-generated.
34c44600 13266
1e901a75 13267 * DISTLIST: Removed font/manager.c.
13268 Added font/font.c.
13269 Added font/font_cmd.c.
34c44600 13270
1e901a75 13271 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
13272 compilation.
34c44600 13273
1e901a75 13274 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
34c44600 13275
13276 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
1e901a75 13277
13278 * kern/term.c: Changed users of grub_utf8_to_ucs4.
34c44600 13279
1e901a75 13280 * normal/menu.c: Likewise.
34c44600 13281
1e901a75 13282 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
13283 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
34c44600 13284
1e901a75 13285 * include/grub/font.h: Replaced with new file.
34c44600 13286
1e901a75 13287 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
13288 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
13289 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
13290 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
13291 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
34c44600 13292 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
1e901a75 13293 fg_red, fg_green, fg_blue, fg_alpha.
13294 (grub_video_adapter): Removed blit_glyph.
34c44600 13295 (grub_video_blit_glyph): Removed.
13296
1e901a75 13297 * font/manager.c: Removed file.
34c44600 13298
13299 * font/font.c: New file.
13300
1e901a75 13301 * font/font_cmd.c: Likewise.
34c44600 13302
1e901a75 13303 * video/video.c (grub_video_blit_glyph): Removed.
34c44600 13304
1e901a75 13305 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
13306 (grub_video_vbe_map_rgba): Likewise.
13307 (grub_video_vbe_unmap_color_int): Likewise.
13308 (grub_video_vbe_blit_glyph): Removed.
13309 (grub_video_vbe_adapter): Removed blit_glyph.
34c44600 13310
1e901a75 13311 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
13312 (get_pixel): Likewise.
34c44600 13313 (set_pixel): Likewise.
13314
1e901a75 13315 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
34c44600 13316
1e901a75 13317 * term/gfxterm.c: Adapted to new font engine.
34c44600 13318
1e901a75 13319 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
34c44600 13320
1e901a75 13321 * term/i386/pc/vga.c: Likewise.
34c44600 13322
1e901a75 13323 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
34c44600 13324
1e901a75 13325 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
34c44600 13326
1e901a75 13327 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
34c44600 13328
1e901a75 13329 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
34c44600 13330
1e901a75 13331 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
34c44600 13332
1e901a75 13333 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
34c44600 13334
1e901a75 13335 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
34c44600 13336
1e901a75 13337 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
34c44600 13338
1e901a75 13339 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
13340
13341 * util/grub.d/00_header.in: Changed to use new loadfont command.
34c44600 13342
1e901a75 13343 * util/grub-mkconfig_lib.in: Changed font extension.
13344
278922e8 133452008-12-28 Felix Zielcke <fzielcke@z-51.de>
13346
13347 * util/getroot.c (grub_util_get_grub_dev): Add support for
13348 /dev/md/dNNpNN style partitionable mdraid devices.
13349
3ced05cf 133502008-12-12 Alex Smith <alex@alex-smith.me.uk>
13351
13352 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
13353 at a time limit of the PXE TFTP API correctly.
13354 (grub_pxefs_close): Likewise.
13355
7fd0ee30 133562008-11-29 Robert Millan <rmh@aybabtu.com>
13357
34c44600 13358 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
7fd0ee30 13359 grub_ata_device_initialize() calls.
13360
34c44600 133612008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
0c5e79ab 13362
13363 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
13364 iteration failed.
13365 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
13366
89313780 133672008-11-28 Robert Millan <rmh@aybabtu.com>
13368
13369 Fix build on powerpc-ieee1275. Based on patch created by
13370 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
13371 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
13372 `kern/ieee1275/mmap.c'.
13373 * include/grub/powerpc/ieee1275/memory.h: New file.
13374
15257703 13375 Provide grub-install on coreboot.
13376 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
13377 (grub_install_SOURCES): New variable.
13378 * util/i386/pc/grub-install.in: Add a few condition checks to make it
13379 usable on coreboot.
13380
9fc5388a 133812008-11-25 Felix Zielcke <fzielcke@z-51.de>
13382
13383 * util/grub-fstest.c (grub_term_get_current_input): Change return type
13384 to `grub_term_input_t'.
13385 (grub_term_get_current_output): Change return type to
13386 `grub_term_output_t'.
13387
bc3a2f31 133882008-11-22 Robert Millan <rmh@aybabtu.com>
13389
34c44600 13390 Fix breakage on coreboot due to declaration mismatch.
bc3a2f31 13391 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
13392 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
13393 grub_vga_text_cls().
13394
80fc88f2 13395 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
34c44600 13396 comments. Avoid copying one more byte than necessary (just in case).
80fc88f2 13397
cbf36fd3 13398 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
13399 to 0x200000 (avoids trouble with some OFW implementations, and matches
13400 with the one in Yaboot).
13401 Reported by Manoel Abranches
13402
73e8e268 134032008-11-20 Robert Millan <rmh@aybabtu.com>
3cf6ac19 13404
13405 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
13406 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
13407
73e8e268 13408 * util/grub-mkconfig_lib.in (grub_warn): New function.
13409 (convert_system_path_to_grub_path): Use grub_warn() when issuing
13410 warnings, to obtain consistent formatting.
13411 * util/grub.d/00_header.in: Likewise.
13412 * util/update-grub_lib.in: Likewise.
13413
e94045a1 13414 * loader/i386/linux.c (allocate_pages): Fix a warning.
40f9faa4 13415 Move comment text to `#error' stanza.
e94045a1 13416
79d29fd7 13417 Harmonize ieee1275's grub_available_iterate() with the generic
13418 grub_machine_mmap_iterate() interface (fixes a recently-introduced
13419 build problem on i386-ieee1275):
13420 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
13421 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
13422 parameter `type'. Update all users of this function.
13423 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
13424 `kern/ieee1275/mmap.c'.
13425 * kern/ieee1275/init.c
13426 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
13427 with ...
13428 (grub_machine_mmap_iterate): ... this.
13429 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
13430 return type to `grub_err_t'. Update all implementations of this
13431 function prototype.
13432 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
13433 Likewise.
13434
60d6b16e 13435 Add `lsmmap' command (lists firmware-provided memory map):
13436 * commands/lsmmap.c: New file.
13437 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
13438 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
13439 variables.
13440 * conf/powerpc-ieee1275.rmk: Likewise.
13441 * conf/i386-coreboot.rmk: Likewise.
13442 * conf/i386-ieee1275.rmk: Likewise.
13443
ebaaf49b 134442008-11-19 Robert Millan <rmh@aybabtu.com>
13445
13446 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
92907110 13447 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
13448 constraints to initrd allocation (based on code from
13449 loader/i386/pc/linux.c). Without them, initrd was allocated too high
13450 for Linux to find it.
ebaaf49b 13451
dfab719f 134522008-11-14 Robert Millan <rmh@aybabtu.com>
13453
13454 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
13455 order to cope with duplicate slashes.
13456
10fc3eb9 134572008-11-14 Robert Millan <rmh@aybabtu.com>
13458
13459 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
13460 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
13461 don't want to mess with lower memory, because it is used in the Linux
13462 loader.
13463
13464 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
34c44600 13465 an appropriate place in lower memory, between 0x10000 and 0x90000,
10fc3eb9 13466 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
13467 is in our heap (probably as a result of it being corrupted during
2f2a3442 13468 decompression). Add #error instance with comment to explain why this
13469 loader isn't currently usable on PC/BIOS.
10fc3eb9 13470
e2e07847 134712008-11-14 Robert Millan <rmh@aybabtu.com>
13472
13473 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
34c44600 13474 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
e2e07847 13475
fe8e8d69 134762008-11-12 Robert Millan <rmh@aybabtu.com>
13477
13478 Make loader/i386/linux.c buildable on i386-pc (although disabled).
13479
13480 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
13481 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
13482 from here ...
13483 * include/grub/i386/pc/memory.h: ... to here.
13484
976b07d0 134852008-11-12 Robert Millan <rmh@aybabtu.com>
13486
13487 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
13488 split).
13489
13490 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
13491 (grub_console_cur_color, grub_console_real_putchar)
13492 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
13493 (grub_console_setcolorstate, grub_console_setcolor)
13494 (grub_console_getcolor): Move from here ...
13495 * include/grub/i386/vga_common.h: ... to here (new file).
13496
13497 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
13498 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
13499 `<grub/i386/io.h>'.
13500 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
13501 `<grub/i386/vga_common.h>'.
13502
76679cd3 135032008-11-12 Robert Millan <rmh@aybabtu.com>
13504
13505 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
13506 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
13507 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
13508 variables.
13509 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
13510 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
13511
13512 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
13513 grub_console_init() with call to grub_vga_text_init().
13514 (grub_machine_fini): Replace call to
13515 grub_console_fini() with call to grub_vga_text_fini() and
13516 grub_at_keyboard_fini().
13517
13518 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
13519 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
13520 (grub_console_setcolorstate, grub_console_setcolor)
13521 (grub_console_getcolor): New function prototypes.
13522
13523 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
13524 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
13525 (grub_vga_text_setcursor): Static-ize.
13526 (grub_vga_text_term): New structure.
13527 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
13528
13529 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
13530 (grub_console_cur_color, grub_console_standard_color)
13531 (grub_console_normal_color, grub_console_highlight_color)
13532 (map_char, grub_console_putchar, grub_console_getcharwidth)
13533 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
13534 (grub_console_getcolor): Move from here ...
13535 * term/i386/vga_common.c: ... to here (same function names).
13536
95b841d3 135372008-11-12 Robert Millan <rmh@aybabtu.com>
13538
13539 Use newly-added Multiboot support in coreboot.
13540
13541 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
13542 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
13543
13544 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
13545 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
13546 (codestart): Store the MBI in `startup_multiboot_info' when we're
13547 being loaded using Multiboot.
13548
13549 * kern/i386/coreboot/init.c (grub_machine_init): Move
13550 grub_at_keyboard_init() call to beginning of function (useful for
13551 debugging). Call grub_machine_mmap_init() before attempting to use
13552 grub_machine_mmap_iterate().
13553 (grub_lower_mem, grub_upper_mem): Move from here ...
13554 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
13555 here (new file).
13556
13557 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
13558 function prototype.
13559
761ca975 135602008-11-12 Robert Millan <rmh@aybabtu.com>
13561
13562 Fix a regression introduced by the at_keyboard.mod split. Because
13563 some terminals are default on some platforms and non-default on
13564 others, the first terminal being registered determines which is
13565 going to be default.
13566
13567 * kern/term.c (grub_term_register_input): If this is the first
13568 terminal being registered, set it as the current one.
13569 (grub_term_register_output): Likewise.
13570
13571 * term/efi/console.c (grub_console_init): Do not call
13572 grub_term_set_current_output() or grub_term_set_current_input().
13573 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
13574 * term/i386/pc/console.c (grub_console_init): Likewise.
13575 (grub_console_fini): Do not call grub_term_set_current_input()
13576 (but leave grub_term_set_current_output() to restore text mode).
13577
6c529df7 135782008-11-10 Robert Millan <rmh@aybabtu.com>
13579
13580 * util/grub.d/00_header.in: Add backward compatibility check for
13581 versions of terminal.mod that don't understand `terminal_input' or
13582 `terminal_output'.
13583
132e4113 135842008-11-09 Robert Millan <rmh@aybabtu.com>
13585
13586 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
13587 `terminal_input' / `terminal_output', not `terminal'.
13588
ac293d50 135892008-11-08 Robert Millan <rmh@aybabtu.com>
13590
13591 * Makefile.in (include_DATA): Fix srcdir=. assumption.
2a9c5940 13592 (DISTCLEANFILES): Add `build_env.mk'.
ac293d50 13593
0025933a 135942008-11-08 Robert Millan <rmh@aybabtu.com>
13595
13596 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
dba3f844 13597 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
0025933a 13598 members. Update all users.
13599 * util/console.c (grub_ncurses_term): Split in ...
13600 (grub_ncurses_term_input): ... this, and ...
13601 (grub_ncurses_term_output): ... this. Update all users.
dcb6fa0a 13602 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
0025933a 13603
37c86336 136042008-11-08 Robert Millan <rmh@aybabtu.com>
13605
13606 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
13607 (PKGDATA): Add $(pkgdata_SRCDIR).
13608 (pkglib_BUILDDIR): New variable.
13609 (pkgdata_SRCDIR): New variable.
13610 (build_env.mk): New target.
13611 (include_DATA): New variable.
13612 (install-local): Install $(include_DATA) files in $(includedir).
13613
b6c15a2d 136142008-11-07 Pavel Roskin <proski@gnu.org>
13615
d99d46f1 13616 * gendistlist.sh: Use C locale for sorting to ensure consistent
13617 output on all systems.
13618
b6c15a2d 13619 * util/grub.d/00_header.in: Remove incorrect space before
13620 "serial".
13621
c32ee8c9 136222008-11-07 Robert Millan <rmh@aybabtu.com>
13623
13624 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
13625 per specification.
13626 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
13627 * loader/multiboot_loader.c (find_multi_boot2_header): New function
13628 (based on find_multi_boot1_header).
13629 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
13630 using find_multi_boot2_header(), and abort if neither Multiboot or
13631 Multiboot headers were found.
13632
651c29b7 136332008-11-07 Robert Millan <rmh@aybabtu.com>
13634
13635 Modularize at_keyboard.mod:
13636
13637 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
13638 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
13639 (at_keyboard_mod_LDFLAGS): New variables.
13640
13641 Actual terminal split:
13642
13643 * include/grub/term.h (struct grub_term): Split in ...
13644 (struct grub_term_input): ... this, and ...
13645 (struct grub_term_output): ... this. Update all users.
13646 (grub_term_set_current): Split in ...
13647 (grub_term_set_current_input): ... this, and ...
13648 (grub_term_set_current_output): ... this.
13649 (grub_term_get_current): Split in ...
13650 (grub_term_get_current_input): ... this, and ...
13651 (grub_term_get_current_output): ... this.
13652 (grub_term_register): Split in ...
13653 (grub_term_register_input): ... this, and ...
13654 (grub_term_register_output): ... this.
13655 (grub_term_unregister): Split in ...
13656 (grub_term_unregister_input): ... this, and ...
13657 (grub_term_unregister_output): ... this.
13658 (grub_term_iterate): Split in ...
13659 (grub_term_iterate_input): ... this, and ...
13660 (grub_term_iterate_output): ... this.
13661
13662 * kern/term.c (grub_term_list): Split in ...
13663 (grub_term_list_input): ... this, and ...
13664 (grub_term_list_output): ... this. Update all users.
13665 (grub_cur_term): Split in ...
13666 (grub_cur_term_input): ... this, and ...
13667 (grub_cur_term_output): ... this. Update all users.
13668 (grub_term_set_current): Split in ...
13669 (grub_term_set_current_input): ... this, and ...
13670 (grub_term_set_current_output): ... this.
13671 (grub_term_get_current): Split in ...
13672 (grub_term_get_current_input): ... this, and ...
13673 (grub_term_get_current_output): ... this.
13674 (grub_term_register): Split in ...
13675 (grub_term_register_input): ... this, and ...
13676 (grub_term_register_output): ... this.
13677 (grub_term_unregister): Split in ...
13678 (grub_term_unregister_input): ... this, and ...
13679 (grub_term_unregister_output): ... this.
13680 (grub_term_iterate): Split in ...
13681 (grub_term_iterate_input): ... this, and ...
13682 (grub_term_iterate_output): ... this.
13683
13684 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
13685 a check for input and one for output (and only attempt to get keys
13686 from user when input works).
13687
13688 * util/grub-probe.c (grub_term_get_current): Split in ...
13689 (grub_term_get_current_input): ... this, and ...
13690 (grub_term_get_current_output): ... this.
13691 * util/grub-fstest.c: Likewise.
13692 * util/i386/pc/grub-setup.c: Likewise.
13693 * util/grub-editenv.c: Likewise.
13694
13695 Portability adjustments:
13696
13697 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
13698 `term/i386/pc/at_keyboard.c'.
13699 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
13700 grub_keyboard_controller_init() (now handled by terminal .init).
13701 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
13702 grub_at_keyboard_init().
13703 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
13704 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
13705 at_keyboard.mod via input terminal interface).
13706 * include/grub/i386/coreboot/console.h: Convert into a stub for
13707 `<grub/i386/pc/console.h>'.
13708
13709 Migrate full terminals to new API:
13710
13711 * term/efi/console.c (grub_console_term): Split into ...
13712 (grub_console_term_input): ... this, and ...
13713 (grub_console_term_output): ... this. Update all users.
13714 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
13715 (grub_ofconsole_init): Split into ...
13716 (grub_ofconsole_init_input): ... this, and ...
13717 (grub_ofconsole_init_output): ... this.
13718 (grub_ofconsole_term): Split into ...
13719 (grub_ofconsole_term_input): ... this, and ...
13720 (grub_ofconsole_term_output): ... this. Update all users.
13721 * term/i386/pc/serial.c (grub_serial_term): Split into ...
13722 (grub_serial_term_input): ... this, and ...
13723 (grub_serial_term_output): ... this. Update all users.
13724 * term/i386/pc/console.c (grub_console_term): Split into ...
13725 (grub_console_term_input): ... this, and ...
13726 (grub_console_term_output): ... this. Update all users.
13727 (grub_console_term_input): Only enable it on PC/BIOS platform.
13728 (grub_console_init): Remove grub_keyboard_controller_init() call.
13729
13730 Migrate input terminals to new API:
13731
13732 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
13733 `i386' and `i386/pc' to enable build on x86_64 (this driver is
13734 i386-specific anyway).
13735 (grub_console_checkkey): Rename to ...
13736 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
13737 users.
13738 (grub_keyboard_controller_orig): New variable.
13739 (grub_console_getkey): Rename to ...
13740 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
13741 users.
13742 (grub_keyboard_controller_init): Static-ize. Save original
13743 controller value so that it can be restored ...
13744 (grub_keyboard_controller_fini): ... here (new function).
13745 (grub_at_keyboard_term): New structure.
13746 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
13747 functions.
13748
13749 Migrate output terminals to new API:
13750
13751 * term/i386/pc/vga.c (grub_vga_term): Change type to
13752 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
13753 members. Update all users.
13754 * term/gfxterm.c (grub_video_term): Change type to
13755 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
13756 members. Update all users.
13757 * include/grub/i386/pc/console.h (grub_console_checkkey)
13758 (grub_console_getkey): Do not export (no longer needed by gfxterm,
13759 etc).
13760
13761 Migrate `terminal' command and userland tools to new API:
13762
13763 * commands/terminal.c (grub_cmd_terminal): Split into ...
13764 (grub_cmd_terminal_input): ... this, and ...
13765 (grub_cmd_terminal_output): ... this.
13766 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
13767 `terminal_input' and `terminal_output'.
13768 * util/grub.d/00_header.in: Adjust `terminal' calls to new
13769 `terminal_input' / `terminal_output' API.
13770 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
13771 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
13772 provided ${GRUB_TERMINAL}, convert it).
13773
96e5d876 137742008-11-04 Robert Millan <rmh@aybabtu.com>
13775
13776 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
13777 for FreeBSD.
13778 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
13779
556f3775 137802008-11-03 Bean <bean123ch@gmail.com>
13781
13782 * kern/elf.c (grub_elf32_load): Revert to previous code.
13783 (grub_elf64_load): Likewise.
13784
13785 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
13786
926b9823 137872008-11-01 Robert Millan <rmh@aybabtu.com>
13788
13789 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
13790 (TARGET_CPPFLAGS): Likewise.
13791 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
13792
1432e958 137932008-11-01 Carles Pina i Estany <carles@pina.cat>
13794
13795 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
13796
dba3f844 137972008-10-29 Guillem Jover <guillem.jover@nokia.com>
de4fa71c 13798
13799 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
13800 addition of objects until the code is not going to be able to fail.
13801
dba3f844 138022008-10-29 Guillem Jover <guillem.jover@nokia.com>
b7279447 13803
13804 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
13805 (add a missing NULL check, and correct them by moving the pointer
13806 operations after the actual check).
13807
7ab28c21 138082008-10-29 Robert Millan <rmh@aybabtu.com>
13809
13810 * util/i386/pc/grub-install.in: Handle empty string as output from
13811 make_system_path_relative_to_its_root().
13812
1b7748eb 138132008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
13814
13815 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
13816 circular metadata worst case scenario. If the metadata is circular
13817 then copy the wrap in place.
13818 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
13819 project lib/format_text/layout.h
13820 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
13821
c9618ab2 138222008-10-03 Felix Zielcke <fzielcke@z-51.de>
13823
7a36edca 13824 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
c9618ab2 13825
bf981c62 138262008-10-03 Felix Zielcke <fzielcke@z-51.de>
13827
13828 * util/update-grub_lib.in: Mention filename in warning message.
13829
6d994591 138302008-09-29 Felix Zielcke <fzielcke@z-51.de>
13831
13832 * NEWS: Update for rename of update-grub to grub-mkconfig.
13833
18ade780 138342008-09-29 Felix Zielcke <fzielcke@z-51.de>
13835
13836 * util/update-grub_lib.in: Copy to ...
13837 * util/grub-mkconfig_lib.in: ... this. Update all users.
7c3ff286 13838 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
18ade780 13839 * util/update-grub.in: Rename to ...
13840 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
13841 option. Add `--output' option to allow users to specify the generated
13842 configuration file. Default to stdout.
13843 (update_grub_dir): Rename to ...
13844 (grub_mkconfig_dir): ... this.
13845 (grub_cfg): Default to an empty string.
13846 * conf/common.rmk (update-grub): Rename to ...
13847 (grub-mkconfig): ... this.
13848 (update-grub_lib): Copy to ...
13849 (grub-mkconfig_lib): ... this.
13850 (update-grub_SCRIPTS): Copy to ...
13851 (grub-mkconfig_SCRIPTS): ... this. Update all users.
13852 (update-grub_DATA): Rename to ...
13853 (grub-mkconfig_DATA): ... this.
13854
556ce6ac 138552008-09-28 Robert Millan <rmh@aybabtu.com>
13856
13857 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
13858 to `modified'. Add the real `created' field.
13859 (grub_iso9660_uuid): Use `modified' rather than `created' for
13860 constructing the UUID.
13861
138622008-09-28 Felix Zielcke <fzielcke@z-51.de>
eb079ba9 13863
13864 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
13865 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
13866
92274e85 138672008-09-28 Bean <bean123ch@gmail.com>
13868
13869 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
13870 Thanks to Christian Franke for finding this bug.
13871
add6f17a 138722008-09-25 Robert Millan <rmh@aybabtu.com>
13873
13874 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
13875 instances of grub_util_get_disk_name() (see previous commit).
13876
d2a367b8 138772008-09-25 Robert Millan <rmh@aybabtu.com>
13878
13879 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
13880 `util/i386/get_disk_name.c'.
13881 * conf/i386-efi.rmk: Likewise.
13882 * conf/x86_64-efi.rmk: Likewise.
13883 * conf/i386-coreboot.rmk: Likewise.
13884 * conf/i386-ieee1275.rmk: Likewise.
13885 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
13886 `util/ieee1275/get_disk_name.c'.
13887 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
13888 * util/ieee1275/get_disk_name.c: Remove file.
13889 * util/i386/get_disk_name.c: Remove file.
13890 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
13891 "hd%d" for device.map entries, rather than using
13892 grub_util_get_disk_name().
13893
81a06771 138942008-09-24 Carles Pina i Estany <carles@pina.cat>
b0c301f7 13895
13896 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
13897 warning.
13898 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
13899
5a004279 139002008-09-24 Carles Pina i Estany <carles@pina.cat>
13901
13902 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
13903 Changed to 0x5100.
13904 (GRUB_TERM_PPAGE): Changed to 0x4900.
13905
397093d3 139062008-09-24 Robert Millan <rmh@aybabtu.com>
13907
13908 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
13909 macros (they were i386-pc specific).
13910 * include/grub/sparc64/ieee1275/console.h: Likewise.
13911 * include/grub/efi/console.h: Likewise.
13912
a91b6c7c 139132008-09-22 Bean <bean123ch@gmail.com>
13914
13915 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
13916 resident and in attribute list.
13917
13918 * include/grub/ntfs.h (BMP_LEN): Removed.
13919
c40fd116 139202008-09-22 Bean <bean123ch@gmail.com>
13921
81a06771 13922 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
c40fd116 13923 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
13924
13925 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
13926 error occurs, as grub_disk_open will call grub_disk_close, which will
13927 call p->close (scsi).
13928
81a06771 139292008-09-21 Felix Zielcke <fzielcke@z-51.de>
eb73121d 13930
13931 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
13932 (AC_PREREQ): Bumped to 2.59.
13933 (AC_TRY_COMPILE): Replace obsolete macro with ...
13934 (AC_COMPILE_IFELSE): ... this.
13935 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
13936 (AC_LINK_IFELSE): ... this.
13937
5dc43410 139382008-09-21 Felix Zielcke <fzielcke@z-51.de>
13939
13940 * autogen.sh: Add a call to `gendistlist.sh'.
13941
9035dce4 139422008-09-19 Christian Franke <franke@computer.org>
13943
13944 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
13945 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
13946 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
13947 Export __enable_execute_stack() to modules.
13948 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
13949 New function.
13950
7fd75377 139512008-09-09 Felix Zielcke <fzielcke@z-51.de>
13952
040030b3 13953 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
13954 Sort the list.
13955
139562008-09-09 Felix Zielcke <fzielcke@z-51.de>
13957
13958 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
7fd75377 13959 #include <grub/util/hostdisk.h>.
13960
89d5ffcf 139612008-09-08 Robert Millan <rmh@aybabtu.com>
13962
13963 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
13964 segments when their filesz is zero (grub_file_read() interprets
81a06771 13965 zero-size as "read until EOF", which results in memory corruption).
89d5ffcf 13966 Use `lowest_segment' rather than 0 for calculating the current
13967 segment load address.
13968
40da438f 139692008-09-08 Robert Millan <rmh@aybabtu.com>
13970
13971 * util/hostdisk.c (open_device): Replace a grub_util_info() call
13972 with grub_dprintf("hostdisk", ...), as it was so verbose that it
13973 clobbered useful information.
13974
ddbf5556 139752008-09-08 Robert Millan <rmh@aybabtu.com>
13976
13977 * include/grub/util/biosdisk.h: Move to ...
13978 * include/grub/util/hostdisk.h: ... here. Update all users.
13979 * util/biosdisk.c: Move to ...
13980 * util/hostdisk.c: ... here. Update all users.
13981
783d0f48 139822008-09-07 Robert Millan <rmh@aybabtu.com>
13983
13984 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
13985 variables.
13986 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
13987 and length can be stored directly in the `mbi->mmap_addr' and
13988 `mbi->mmap_length' struct fields.
13989
548e2ea5 139902008-09-07 Robert Millan <rmh@aybabtu.com>
13991
13992 * conf/i386.rmk: New file. Provides declaration for building
13993 `cpuid.mod'.
13994 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
13995 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
13996 variables.
13997 Include `conf/i386.mk'.
13998 * conf/i386-efi.rmk: Likewise.
13999 * conf/x86_64-efi.rmk: Likewise.
14000 * conf/i386-coreboot.rmk: Likewise.
14001 * conf/i386-ieee1275.rmk: Likewise.
14002
0ea85a37 140032008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
14004
14005 Based on patch created by Colin D Bennett <colin@gibibit.com>.
14006 Adds optimization support for BGR based modes.
14007
14008 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
14009 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
14010 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
14011 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
14012 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
14013 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
14014 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
14015 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
14016 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
14017 (grub_video_i386_vbeblit_index_index): Likewise.
14018 (grub_video_i386_vbeblit_replace_directN): Added.
14019 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
14020 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
14021 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
14022 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
14023 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
14024 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
81a06771 14025 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
0ea85a37 14026 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
14027 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
14028 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
14029 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
14030 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
14031 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
14032
14033 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
14034 (grub_video_i386_vbefill_R8G8B8): Likewise.
14035 (grub_video_i386_vbefill_index): Likewise.
14036 (grub_video_i386_vbefill_direct32): Added.
14037 (grub_video_i386_vbefill_direct24): Likewise.
14038 (grub_video_i386_vbefill_direct16): Likewise.
14039 (grub_video_i386_vbefill_direct8): Likewise.
14040
81a06771 14041 * include/grub/video.h (grub_video_blit_format): Removed
0ea85a37 14042 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
14043 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
14044 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
14045 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
14046 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
81a06771 14047
0ea85a37 14048 * video/video.c (grub_video_get_blit_format): Updated to use new
14049 blit formats. Added handling for 16 bit color modes.
81a06771 14050
14051 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
0ea85a37 14052 fillers.
14053 (common_blitter): Updated to use new blitters.
14054
14055 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
14056 Removed.
14057 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
14058 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
14059 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
14060 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
14061 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
14062 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
14063 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
14064 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
14065 (grub_video_i386_vbeblit_index_index): Likewise.
14066 (grub_video_i386_vbeblit_replace_directN): Added.
14067 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
14068 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
14069 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
14070 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
14071 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
14072 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
14073 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
14074 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
14075 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
14076 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
14077 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
14078 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
14079 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
81a06771 14080
0ea85a37 14081 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
14082 (grub_video_i386_vbefill_R8G8B8): Likewise.
14083 (grub_video_i386_vbefill_index): Likewise.
14084 (grub_video_i386_vbefill_direct32): Added.
14085 (grub_video_i386_vbefill_direct24): Likewise.
14086 (grub_video_i386_vbefill_direct16): Likewise.
14087 (grub_video_i386_vbefill_direct8): Likewise.
81a06771 14088
0ea85a37 14089 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
14090 types.
81a06771 14091
0ea85a37 14092 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
14093 types.
81a06771 14094
0ea85a37 14095 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
14096 blitter types.
81a06771 14097
0ea85a37 14098 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
14099 types.
14100
e8a83df6 141012008-09-06 Felix Zielcke <fzielcke@z-51.de>
14102
14103 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
14104 RAID level 1.
14105
6bcd8ee5 141062008-09-06 Felix Zielcke <fzielcke@z-51.de>
c375ae58 14107
6bcd8ee5 14108 * fs/iso9660.c (grub_iso9660_date): New structure.
14109 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
14110 (grub_iso9660_uuid): New function.
c375ae58 14111
59261157 141122008-09-05 Bean <bean123ch@gmail.com>
14113
14114 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
14115
14116 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
14117 insensitive bit for names in Win32 and Win32 & DOS namespace.
14118
14119 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
14120
14121 * include/grub/types.h (LONG_MAX): Likewise.
14122
58b6645a 141232008-09-04 Felix Zielcke <fzielcke@z-51.de>
14124
4ee55921 14125 * util/getroot.c: Include <config.h>.
14126 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
14127 add support for /dev/md/N devices and handle LVM double dash escaping.
14128
141292008-09-04 Felix Zielcke <fzielcke@z-51.de>
14130
14131 * config.guess: Update to latest version from config git.
14132 * config.sub: Likewise.
58b6645a 14133
9124f65d 141342008-09-03 Robert Millan <rmh@aybabtu.com>
14135
14136 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
14137 `disk->total_sectors'.
14138
81a06771 141392008-09-01 Colin D Bennett <colin@gibibit.com>
a0224a4e 14140
14141 * include/grub/normal.h: Fixed incorrect comment for
14142 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
14143
81a06771 141442008-09-01 Colin D Bennett <colin@gibibit.com>
f0619958 14145
14146 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
14147 values with defines.
14148
14149 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
14150 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
14151 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
14152 (GRUB_VBE_MODEATTR_COLOR): Likewise.
14153 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
14154 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
14155 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
14156 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
14157 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
14158 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
14159 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
14160 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
14161 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
14162 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
14163 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
14164 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
14165 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
14166 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
14167 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
14168
93d5cbf8 141692008-08-31 Robert Millan <rmh@aybabtu.com>
14170
14171 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
14172 declaration.
14173 (grub_multiboot): Fix a few warnings.
14174
21751d50 141752008-08-31 Robert Millan <rmh@aybabtu.com>
14176
14177 * loader/i386/pc/multiboot.c: Update comment not to say that
14178 boot_device support is unimplemented.
14179
e27a75c5 141802008-08-31 Robert Millan <rmh@aybabtu.com>
14181
14182 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
14183 or memory map support are unimplemented.
14184
81a06771 141852008-08-31 Colin D Bennett <colin@gibibit.com>
64d2d53c 14186
14187 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
14188
81a06771 141892008-08-31 Colin D Bennett <colin@gibibit.com>
c08a6c18 14190
14191 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
14192 total video memory in 'vbeinfo' output; show color format details for
14193 each video mode.
14194
7c5d8d95 141952008-08-30 Pavel Roskin <proski@gnu.org>
14196
14197 * util/genmoddep.c: Remove for real this time.
14198 * DISTLIST: Remove util/genmoddep.c.
14199
4cebd25a 142002008-08-30 Robert Millan <rmh@aybabtu.com>
14201
14202 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
14203 as required by Multiboot spec (it was already 4-byte aligned, but
14204 only by chance).
14205
b497a269 142062008-08-29 Pavel Roskin <proski@gnu.org>
14207
e3925185 14208 * kern/powerpc/ieee1275/crt0.S: Rename to ...
14209 * kern/powerpc/ieee1275/startup.S: ... this.
14210 * conf/powerpc-ieee1275.rmk: Adjust for the above.
14211 * DISTLIST: Likewise.
14212
b497a269 14213 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
14214 grub/cpu/kernel.h. Add start label for consistency with other
14215 platforms. Add grub_prefix immediately after start. Add jump
14216 to the code after grub_prefix.
14217 * include/grub/powerpc/kernel.h: Provide valid values for
14218 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
14219
6e5a42fe 142202008-08-29 Bean <bean123ch@gmail.com>
14221
14222 * configure.ac: Change host_os to cygwin for mingw.
14223 (asprintf): New check for function.
14224
14225 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
14226 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
14227
14228 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
81a06771 14229 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
6e5a42fe 14230 sync, sleep and grub_util_get_disk_size for mingw.
14231
14232 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
14233 to get size in mingw.
14234 (open_device): Use flag O_BINARY if it's defined.
14235 (find_root_device): Add dummy code for mingw.
14236
14237 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
14238 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
14239 (get_scsi_disk_name): Return 0 for mingw.
14240
14241 * util/hostfs.c: #include <grub/util/misc.h>.
14242 (grub_hostfs_open): Use "rb" flag to open file, use
14243 grub_util_get_disk_size to get disk size for mingw.
14244
14245 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
14246 (asprintf): New function if HAVE_ASPRINTF is not set.
14247 (sync): New function for mingw.
14248 (sleep): Likewise.
14249 (grub_util_get_disk_size): Likewise.
14250
ab3f2673 142512008-08-28 Pavel Roskin <proski@gnu.org>
14252
14253 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
14254 kern/time.c.
14255
1c282483 142562008-08-28 Robert Millan <rmh@aybabtu.com>
14257
14258 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
14259
678e849c 142602008-08-28 Robert Millan <rmh@aybabtu.com>
14261
14262 Change find_grub_drive() syntax so it doesn't prevent it from
14263 detecting NULL names as errors.
14264
14265 * util/biosdisk.c (find_grub_drive): Move free slot search code
14266 from here ...
14267 (find_free_slot): ... to here.
14268 (read_device_map): Use find_free_slot() to search for free slots.
14269
965c75ca 142702008-08-27 Marco Gerards <marco@gnu.org>
14271
14272 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
14273 (scsi_mod_SOURCES): New variable.
14274 (scsi_mod_CFLAGS): Likewise
14275 (scsi_mod_LDFLAGS): Likewise.
14276
14277 * disk/scsi.c: New file.
14278
14279 * include/grub/scsi.h: Likewise.
14280
14281 * include/grub/scsicmd.h: Likewise.
14282
14283 * disk/ata.c: Include <grub/scsi.h>.
14284 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
14285 instead.
14286 (grub_ata_iterate): Skip ATAPI devices.
14287 (grub_ata_open): Only handle ATAPI devices.
14288 (struct grub_atapi_read): Removed.
14289 (grub_atapi_readsector): Likewise.
14290 (grub_ata_read): No longer handle ATAPI devices.
14291 (grub_ata_write): Likewise.
14292 (grub_atapi_iterate): New function.
14293 (grub_atapi_read): Likewise.
14294 (grub_atapi_write): Likewise.
14295 (grub_atapi_open): Likewise.
14296 (grub_atapi_close): Likewise.
14297 (grub_atapi_dev): New variable.
14298 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
14299 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
14300
14301 * include/grub/disk.h (enum grub_disk_dev_id): Add
14302 `GRUB_DISK_DEVICE_SCSI_ID'.
14303
c07ae501 143042008-08-26 Robert Millan <rmh@aybabtu.com>
14305
14306 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
14307 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
14308 descriptive.
14309
5ed20adc 143102008-08-23 Bean <bean123ch@gmail.com>
14311
14312 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
14313 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
14314 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
14315 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
14316 dm_nv.mod.
14317 (raid5rec_mod_SOURCES): New macro.
14318 (raid5rec_mod_CFLAGS): Likewise.
14319 (raid5rec_mod_LDFLAGS): Likewise.
14320 (raid6rec_mod_SOURCES): Likewise.
14321 (raid6rec_mod_CFLAGS): Likewise.
14322 (raid6rec_mod_LDFLAGS): Likewise.
14323 (mdraid_mod_SOURCES): Likewise.
14324 (mdraid_mod_CFLAGS): Likewise.
14325 (mdraid_mod_LDFLAGS): Likewise.
14326 (dm_nv_mod_SOURCES): Likewise.
14327 (dm_nv_mod_CFLAGS): Likewise.
14328 (dm_nv_mod_LDFLAGS): Likewise.
14329
14330 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
14331 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
14332 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
14333
14334 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
14335 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
14336
14337 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
14338
14339 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
14340
14341 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14342
14343 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14344
14345 * disk/raid5_recover.c: New file.
14346
14347 * disk/raid6_recover.c: Likewise.
14348
14349 * disk/mdraid_linux.c: Likewise.
14350
14351 * disk/dmraid_nvidia.c: Likewise.
14352
14353 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
14354 ULONG_MAX.
14355
14356 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
14357 calculate the size of raid device.
14358 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
14359 different layout of raid5.
14360 (grub_raid_scan_device): Remove code specific to mdraid.
14361 (grub_raid_list): New variable.
14362 (free_array): New function.
14363 (grub_raid_register): Likewise.
14364 (grub_raid_unregister): Likewise.
14365 (grub_raid_rescan): Likewise.
14366 (GRUB_MOD_INIT): Don't iterate device here.
14367 (GRUB_MOD_FINI): Use free_array to release resource.
14368
14369 * include/grub/raid.h: Remove macro and structure specific to mdraid.
14370 (grub_raid5_recover_func_t): New function variable type.
14371 (grub_raid6_recover_func_t): Likewise.
14372 (grub_raid5_recover_func): New variable.
14373 (grub_raid6_recover_func): Likewise.
14374 (grub_raid_register): New function.
14375 (grub_raid_unregister): Likewise.
14376 (grub_raid_rescan): Likewise.
14377 (grub_raid_block_xor): Likewise.
14378
14379 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
14380 (CMD_CRC): New macro.
14381 (part): Removed.
14382 (read_file): Handle device as well as file.
14383 (cmd_crc): New function.
14384 (fstest): Handle multiple disks.
14385 (options): Remove part, raw and long, add root and diskcount.
14386 (usage): Add crc, remove -p, -r, -l, add -r and -c.
dba3f844 14387 (main): Find the first non option entry and ignore subsequent options,
5ed20adc 14388 add handling for the new options, support multiple disks.
14389
14390 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
14391
29c18915 143922008-08-23 Bean <bean123ch@gmail.com>
14393
14394 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
14395
14396 * genfslist.sh: Ignore kernel.mod.
14397
14398 * genpartmaplist.sh: Likewise.
14399
8415f261 144002008-08-23 Robert Millan <rmh@aybabtu.com>
14401
14402 * util/getroot.c (find_root_device): Skip anything that starts with
14403 a dot, not just directories. This avoids things like /dev/.tmp.md0.
14404
d5a7dc5b 144052008-08-22 Felix Zielcke <fzielcke@z-51.de>
81a06771 14406
d5a7dc5b 14407 * util/update-grub.in (GRUB_GFXMODE): Export variable.
14408 * util/grub.d/00_header.in: Allow the administrator to change default
14409 gfxmode via ${GRUB_GFXMODE}.
14410
380cfbb4 144112008-08-21 Felix Zielcke <fzielcke@z-51.de>
14412
14413 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
14414
c9baafe7 144152008-08-21 Robert Millan <rmh@aybabtu.com>
14416
14417 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
14418 loader.
14419 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
14420 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
14421
e290bef2 144222008-08-20 Carles Pina i Estany <carles@pina.cat>
14423
14424 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
14425 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
14426
f9dbfc96 144272008-08-19 Robert Millan <rmh@aybabtu.com>
14428
14429 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
14430 (struct grub_virtual_screen): Remove `cursor_color'.
14431 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
14432 initialization.
14433 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
14434
dd6bd6ab 144352008-08-18 Robert Millan <rmh@aybabtu.com>
14436
14437 Unify (identical) linux_normal.c files.
14438 * loader/i386/efi/linux_normal.c: Move from here ...
14439 * loader/linux_normal.c: ... to here. Update all users.
14440 * loader/i386/pc/linux_normal.c: Delete. Update all users.
14441 * loader/i386/ieee1275/linux_normal.c: Likewise.
14442
7f42f83e 144432008-08-18 Robert Millan <rmh@aybabtu.com>
14444
14445 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
14446 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
14447 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
14448 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
14449 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
14450 New macros.
14451 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
14452 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
14453 (GRUB_LINUX_CL_END_OFFSET): ... to here.
14454 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
14455 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
14456 (GRUB_EFI_CL_END_OFFSET): Rename to ...
14457 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
14458 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
14459 Initialize `params->video_cursor_x' and `params->video_cursor_y'
14460 portably using grub_getxy().
14461 Replace `-EFI' with `-bzImage' in boot message.
14462
38487ddb 144632008-08-17 Robert Millan <rmh@aybabtu.com>
14464
14465 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
14466
deceb3ec 144672008-08-17 Robert Millan <rmh@aybabtu.com>
14468
14469 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
14470
14471 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
14472 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
14473 (grub_machine_mmap_iterate): New function declaration.
14474 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
14475 structure.
14476 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
14477 macros.
14478
14479 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
14480 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
14481 Move e820 parsing from here ...
14482 * kern/i386/pc/mmap.c: New file.
14483 (grub_machine_mmap_iterate): ... to here.
14484
14485 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
14486 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
14487 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
14488 (grub_available_iterate): Redeclare to return `void', and redeclare
14489 its hook to use grub_uint64_t as addr and size parameters, and rename
14490 to ...
14491 (grub_machine_mmap_iterate): ... this. Update all users.
14492
14493 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
14494 to make it more readable. Rename to ...
14495 (grub_machine_mmap_iterate): ... this.
14496
14497 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
14498 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
14499 (grub_multiboot): Allocate an extra region after the payload, and fill
14500 it with a Multiboot memory map. Adjust a.out loader to calculate size
14501 with the extra space.
14502 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
14503 with the extra space.
14504
f8aa0f43 145052008-08-17 Carles Pina i Estany <carles@pina.cat>
14506
9807deb9 14507 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
f8aa0f43 14508
605f5bb6 145092008-08-17 Felix Zielcke <fzielcke@z-51.de>
14510
14511 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
14512 mdate-sh to the list `find' searches for.
14513 * DISTLIST: Regenerated.
14514
210db6c6 145152008-08-16 Felix Zielcke <fzielcke@z-51.de>
14516
14517 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
14518 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
48cdbfd4 14519 genmoddep.awk, gensymlist.sh.in.
14520 (DISTDIRS): Add bus, docs, hook, lib.
210db6c6 14521 * DISTLIST: Regenerated.
48cdbfd4 14522 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
210db6c6 14523
1082b929 145242008-08-16 Robert Millan <rmh@aybabtu.com>
14525
14526 * disk/raid.c (grub_raid_init): Handle/report errors set by
14527 grub_device_iterate().
14528 * disk/lvm.c (grub_lvm_init): Likewise.
14529
42ce5170 145302008-08-15 Bean <bean123ch@gmail.com>
14531
14532 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
14533 and datehook.mod.
14534 (datetime_mod_SOURCES): New macro.
14535 (datetime_mod_CFLAGS): Likewise.
14536 (datetime_mod_LDFLAGS): Likewise.
14537 (date_mod_SOURCES): Likewise.
14538 (date_mod_CFLAGS): Likewise.
14539 (date_mod_LDFLAGS): Likewise.
14540 (datehook_mod_SOURCES): Likewise.
14541 (datehook_mod_CFLAGS): Likewise.
14542 (datehook_mod_LDFLAGS): Likewise.
14543
14544 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
14545 and datehook.mod.
14546 (datetime_mod_SOURCES): New macro.
14547 (datetime_mod_CFLAGS): Likewise.
14548 (datetime_mod_LDFLAGS): Likewise.
14549 (date_mod_SOURCES): Likewise.
14550 (date_mod_CFLAGS): Likewise.
14551 (date_mod_LDFLAGS): Likewise.
14552 (datehook_mod_SOURCES): Likewise.
14553 (datehook_mod_CFLAGS): Likewise.
14554 (datehook_mod_LDFLAGS): Likewise.
14555
14556 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
14557 and datehook.mod.
14558 (datetime_mod_SOURCES): New macro.
14559 (datetime_mod_CFLAGS): Likewise.
14560 (datetime_mod_LDFLAGS): Likewise.
14561 (date_mod_SOURCES): Likewise.
14562 (date_mod_CFLAGS): Likewise.
14563 (date_mod_LDFLAGS): Likewise.
14564 (datehook_mod_SOURCES): Likewise.
14565 (datehook_mod_CFLAGS): Likewise.
14566 (datehook_mod_LDFLAGS): Likewise.
14567
14568 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
14569 and datehook.mod.
14570 (datetime_mod_SOURCES): New macro.
14571 (datetime_mod_CFLAGS): Likewise.
14572 (datetime_mod_LDFLAGS): Likewise.
14573 (date_mod_SOURCES): Likewise.
14574 (date_mod_CFLAGS): Likewise.
14575 (date_mod_LDFLAGS): Likewise.
14576 (datehook_mod_SOURCES): Likewise.
14577 (datehook_mod_CFLAGS): Likewise.
14578 (datehook_mod_LDFLAGS): Likewise.
14579
14580 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
14581 and datehook.mod.
14582 (datetime_mod_SOURCES): New macro.
14583 (datetime_mod_CFLAGS): Likewise.
14584 (datetime_mod_LDFLAGS): Likewise.
14585 (date_mod_SOURCES): Likewise.
14586 (date_mod_CFLAGS): Likewise.
14587 (date_mod_LDFLAGS): Likewise.
14588 (datehook_mod_SOURCES): Likewise.
14589 (datehook_mod_CFLAGS): Likewise.
14590 (datehook_mod_LDFLAGS): Likewise.
14591
14592 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
14593
14594 * commands/date.c: New file.
14595
14596 * hook/datehook.c: Likewise.
14597
14598 * include/grub/lib/datetime.h: Likewise.
14599
14600 * include/grub/i386/cmos.h: Likewise.
14601
14602 * lib/datetime.c: Likewise.
14603
14604 * lib/i386/datetime.c: Likewise.
14605
14606 * lib/efi/datetime.c: Likewise.
14607
0e9242da 146082008-08-14 Robert Millan <rmh@aybabtu.com>
14609
14610 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
14611 (grub_mkelfimage_SOURCES): New variable.
14612 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
14613
14614 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
14615 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
14616 * conf/powerpc-ieee1275.rmk: Likewise.
14617 * conf/i386-ieee1275.rmk: Likewise.
14618
14619 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
14620 * kern/i386/coreboot/init.c: Likewise.
14621
14622 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
14623 with `<grub/cpu/kernel.h>'.
14624 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
14625 to ...
14626 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
14627 * kern/i386/coreboot/startup.S: Likewise.
14628
14629 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
14630 (GRUB_MOD_GAP): Remove.
14631 * include/grub/powerpc/kernel.h: New file.
14632 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
14633 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
14634 * include/grub/i386/kernel.h: New file.
14635 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
14636 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
14637 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
14638
14639 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
14640 `grub-mkelfimage'.
14641 Use --directory when invoking grub_mkimage.
14642
14643 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
14644 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
14645 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
14646 and GRUB_KERNEL_CPU_PREFIX.
14647
b86408f8 146482008-08-14 Felix Zielcke <fzielcke@z-51.de>
14649
d5e619ca 14650 * include/grub/err.h (grub_err_printf): New function prototype.
14651 * util/misc.c (grub_err_printf): New function.
14652 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
14653 grub_printf.
14654 * kern/err.c (grub_print_error): Use grub_err_printf.
b86408f8 14655
7161f0e0 146562008-08-13 Robert Millan <rmh@aybabtu.com>
14657
14658 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
14659
a1967522 146602008-08-13 Robert Millan <rmh@aybabtu.com>
14661
14662 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
14663 boot entry.
14664
371458b5 146652008-08-12 Robert Millan <rmh@aybabtu.com>
14666
14667 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
14668 of the relocation code from here ...
14669 (grub_multiboot): ... to here.
14670 (forward_relocator, backward_relocator): Move from here ...
14671 * kern/i386/loader.S (grub_multiboot_forward_relocator)
14672 (grub_multiboot_backward_relocator): ... to here.
14673 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
14674 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
14675 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
14676 (grub_multiboot_forward_relocator_end)
14677 (grub_multiboot_backward_relocator)
14678 (grub_multiboot_backward_relocator_end): New variables.
14679
05f9452b 146802008-08-12 Bean <bean123ch@gmail.com>
14681
14682 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
14683
20024ab0 146842008-08-11 Robert Millan <rmh@aybabtu.com>
14685
14686 * kern/i386/linuxbios/startup.S: Move from here ...
14687 * kern/i386/coreboot/startup.S: ... to here.
14688
14689 * kern/i386/linuxbios/init.c: Move from here ...
14690 * kern/i386/coreboot/init.c: ... to here.
14691
14692 * kern/i386/linuxbios/table.c: Move from here ...
14693 * kern/i386/coreboot/mmap.c: ... to here.
14694
14695 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
14696
e352e9cd 146972008-08-11 Robert Millan <rmh@aybabtu.com>
14698
14699 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
14700 errors. Leave it to the upper layer to handle them.
14701
2d05bc6a 147022008-08-09 Christian Franke <franke@computer.org>
14703
14704 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
14705 * conf/common.rmk: Install `grub-pe2elf' only if requested.
14706 Install `grub.d/10_windows' only on Cygwin.
14707 * configure.ac: Add subst of `target_os'.
14708 Check `target_os' also before setting TARGET_OBJ2ELF.
14709 Add `--enable-grub-pe2elf'.
14710
042bd419 147112008-08-08 Robert Millan <rmh@aybabtu.com>
14712
14713 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
14714 (grub_last_time): Change type to grub_uint64_t.
14715 (grub_disk_open): Migrate code from to using grub_get_time_ms().
14716 (grub_disk_close): Likewise.
14717
14718 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
14719 (run_menu): Migrate code from to using grub_get_time_ms().
14720
14721 * util/misc.c (grub_get_time_ms): New function.
14722
7f280db5 147232008-08-08 Marco Gerards <marco@gnu.org>
14724
14725 * disk/ata.c (grub_ata_regget): Change return type to
14726 `grub_uint8_t'.
14727 (grub_ata_regget2): Likewise.
14728 (grub_ata_wait_status): New function.
14729 (grub_ata_wait_busy): Removed function, updated all users to use
14730 `grub_ata_wait_status'.
14731 (grub_ata_wait_drq): Likewise.
14732 (grub_ata_cmd): New function.
14733 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
14734 error handling.
14735 (grub_ata_pio_write): Add error handling.
14736 (grub_atapi_identify): Likewise.
14737 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
14738 handling.
14739 (grub_ata_identify): Use `grub_ata_cmd' and improve error
14740 handling. Actually use the detected registers. Reorder the
14741 detection logic such that it is easier to read.
14742 (grub_ata_pciinit): Do not assign the same ID to each controller.
14743 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
14744 handling.
14745 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
14746
14747 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
14748
1fbc5e66 147492008-08-08 Marco Gerards <marco@gnu.org>
14750
14751 * NEWS: Update.
14752
819ce6c0 147532008-08-07 Bean <bean123ch@gmail.com>
14754
14755 * include/grub/x86_64/pci.h: New file.
14756
5c41d44d 147572008-08-07 Christian Franke <franke@computer.org>
14758
14759 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
14760 (TIMER2_GATE): Likewise.
14761 (grub_pit_wait): Add enable/disable of the timer2 gate
14762 bit of port 0x61. This fixes a possible infinite loop.
14763
5ebc275d 147642008-08-07 Bean <bean123ch@gmail.com>
14765
14766 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
14767 kern/i386/tsc.c and kern/i386/pit.c.
14768
14769 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
14770 x86_64 platform.
14771
14772 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
14773 <grub/i386/tsc.h>.
14774
14775 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
14776
e383b3d0 147772008-08-07 Bean <bean123ch@gmail.com>
14778
14779 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
14780
14781 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
14782
14783 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
14784 multiple inclusion. Add #include <grub/types.h>.
14785
1cbb58ac 147862008-08-06 Christian Franke <franke@computer.org>
14787
14788 * conf/common.rmk: Build and install `10_windows'.
14789 * util/grub.d/10_windows.in: New script.
14790
337f5a1e 147912008-08-06 Pavel Roskin <proski@gnu.org>
14792
14793 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
14794
057bc4ac 147952008-08-06 Robert Millan <rmh@aybabtu.com>
14796
14797 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
14798 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
14799
2b99f123 148002008-08-06 Bean <bean123ch@gmail.com>
14801
14802 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
14803 (grub_pxefs_fs_int): Remove dummy definition.
14804 (grub_pxefs_open): Use data->block_size to store the current block
14805 size setting.
14806 (grub_pxefs_read): Use block size stored in data->block_size. As the
14807 value of grub_pxe_blksize can be changed after the file is opened.
14808
9f0234cb 148092008-08-06 Bean <bean123ch@gmail.com>
14810
14811 * fs/i386/pc/pxe.c (curr_file): new variable.
14812 (grub_pxefs_open): Simply the handling of pxe file system. Don't
14813 require the dummy internal file system anymore.
14814 (grub_pxefs_read): Removed.
14815 (grub_pxefs_close): Likewise.
14816 (grub_pxefs_fs_int): Likewise.
14817 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
14818 connection when we switch file.
14819 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
14820
a55d42e0 148212008-08-06 Robert Millan <rmh@aybabtu.com>
14822
14823 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
14824 `halt.mod'.
14825 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
14826 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
14827
14828 * kern/i386/halt.c: New file.
14829 * kern/i386/reboot.c: Likewise.
14830 * include/grub/i386/reboot.h: Likewise.
14831 * include/grub/i386/halt.h: Likewise.
14832
14833 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
14834 Include `<grub/cpu/halt.h>'.
14835 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
14836 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
14837
14838 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
14839 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
14840 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
14841 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
14842 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
14843 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
14844 from here ...
14845 * include/grub/i386/at_keyboard.h: ... to here.
14846
24371d26 148472008-08-05 Robert Millan <rmh@aybabtu.com>
14848
14849 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
14850 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
14851 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
14852 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
14853 `kern/generic/millisleep.c'.
14854
14855 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
14856 instead of grub_get_rtc().
14857 (grub_tsc_init): Initialize `tsc_boot_time'.
14858
14859 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
14860 (grub_machine_init): Use grub_tsc_init() rather than
14861 installing an RTC-based handler via grub_install_get_time_ms().
14862
14863 * kern/i386/pit.c: New file.
14864 * include/grub/i386/pit.h: Likewise.
14865
9e7007b3 148662008-08-05 Bean <bean123ch@gmail.com>
14867
14868 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
14869
14870 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
14871 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
14872 (pxe_mod_SOURCES): New macro.
14873 (pxe_mod_CFLAGS): Likewise.
14874 (pxe_mod_LDFLAGS): Likewise.
14875 (pxecmd_mod_SOURCES): Likewise.
14876 (pxecmd_mod_CFLAGS): Likewise.
14877 (pxecmd_mod_LDFLAGS): Likewise.
14878
14879 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
14880 (grub_pxe_call): Likewise.
14881
14882 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
14883
14884 * commands/i386/pc/pxecmd.c: New file.
14885
9f0234cb 14886 * fs/i386/pc/pxe.c: Likewise.
9e7007b3 14887
14888 * include/grub/i386/pc/pxe.h: Likewise.
14889
6977d49f 148902008-08-05 Bean <bean123ch@gmail.com>
14891
14892 * util/console.c (grub_console_cur_color): New variable.
14893 (grub_console_standard_color): Likewise.
14894 (grub_console_normal_color): Likewise.
14895 (grub_console_highlight_color): Likewise.
14896 (color_map): Likewise.
14897 (use_color): Likewise.
14898 (NUM_COLORS): New macro.
14899 (grub_ncurses_setcolorstate): Handle color properly.
14900 (grub_ncurses_setcolor): Don't change color here, just remember the
14901 settings, color will be set in grub_ncurses_setcolorstate.
14902 (grub_ncurses_getcolor): New function.
14903 (grub_ncurses_init): Initialize color pairs.
14904 (grub_ncurses_term): New member grub_ncurses_getcolor.
14905
9c2ff3ee 149062008-08-05 Colin D Bennett <colin@gibibit.com>
337f5a1e 14907
9c2ff3ee 14908 High resolution timer support. Implemented for x86 CPUs using TSC.
14909 Extracted generic grub_millisleep() so it's linked in only as needed.
14910 This requires a Pentium compatible CPU; if the RDTSC instruction is
14911 not supported, then it falls back on the generic grub_get_time_ms()
14912 implementation that uses the machine's RTC.
14913
14914 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
14915 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
14916 `kern/generic/millisleep.c'.
14917
14918 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
14919 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
14920
14921 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
14922 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
14923
14924 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
14925
14926 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
14927 `kern/generic/millisleep.c'.
14928
14929 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
14930
14931 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
14932
14933 * kern/generic/rtc_get_time_ms.c: New file.
14934
14935 * kern/generic/millisleep.c: New file.
337f5a1e 14936
9c2ff3ee 14937 * kern/misc.c: Don't include
14938 <kern/time.h> anymore.
14939 (grub_millisleep_generic): Removed.
14940
14941 * commands/sleep.c (grub_interruptible_millisleep): Uses
14942 grub_get_time_ms() instead of grub_get_rtc().
14943
14944 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
14945 function.
14946 (grub_cpu_is_cpuid_supported): New inline function.
14947 (grub_cpu_is_tsc_supported): New inline function.
14948 (grub_tsc_init): New function prototype.
14949 (grub_tsc_get_time_ms): New function prototype.
14950
14951 * kern/i386/tsc.c (grub_get_time_ms): New file.
14952
14953 * include/grub/time.h: Include <grub/types.h.
14954 (grub_millisleep_generic): Removed.
14955 (grub_get_time_ms): New prototype.
14956 (grub_install_get_time_ms): New prototype.
14957 (grub_rtc_get_time_ms): New prototype.
14958
14959 * kern/time.c (grub_get_time_ms): New function.
14960 (grub_install_get_time_ms): New function.
14961
14962 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
14963 <grub/time.h> anymore.
14964 (grub_millisleep): Removed.
14965 (grub_machine_init): Call grub_tsc_init.
14966
14967 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
14968 get_time_ms() implementation.
14969
14970 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
14971 (ieee1275_get_time_ms): New function.
14972 (grub_machine_init): Install get_time_ms() implementation.
14973
14974 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
14975 (grub_machine_init): Call grub_tsc_init().
14976 (grub_millisleep): Removed.
bf06a93f 14977
9c2ff3ee 14978 * kern/ieee1275/init.c (grub_millisleep): Removed.
14979 (grub_machine_init): Install ieee1275_get_time_ms()
14980 implementation.
14981 (ieee1275_get_time_ms): New function.
14982 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
14983 real work.
14984
9ec92aaf 149852008-08-05 Marco Gerards <marco@gnu.org>
14986
14987 * disk/ata.c: Include <grub/pci.h>.
14988 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
14989 (grub_ata_initialize): Rewritten.
14990 (grub_ata_device_initialize): New function.
14991
8d23f507 149922008-08-04 Pavel Roskin <proski@gnu.org>
14993
14994 * kern/main.c: Include grub/mm.h.
14995
5e15ee3d 149962008-08-04 Robert Millan <rmh@aybabtu.com>
14997
14998 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
14999 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
15000 corruption problem).
15001
a9053f8f 150022008-08-04 Robert Millan <rmh@aybabtu.com>
15003
15004 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
15005 warnings introduced in my last commit.
15006
dd19c7d7 150072008-08-03 Robert Millan <rmh@aybabtu.com>
15008
15009 Make PCI available on all i386 architectures.
15010
15011 * include/grub/i386/pc/pci.h: Move from here ...
15012 * include/grub/i386/pci.h: ... to here.
15013
15014 * include/grub/i386/pc/pci.h: Remove.
15015 * include/grub/i386/efi/pci.h: Remove.
15016 * include/grub/x86_64/efi/pci.h: Remove.
15017
15018 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
15019 `<grub/cpu/pci.h>'.
15020
15021 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
15022 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
15023 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
15024
15025 * conf/i386-ieee1275.rmk: Likewise.
15026
e14a6184 150272008-08-03 Robert Millan <rmh@aybabtu.com>
15028
15029 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
15030 (grub_console_setcursor): Make it possible to set cursor off.
15031
52768e37 150322008-08-03 Robert Millan <rmh@aybabtu.com>
15033
15034 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
15035 of modules instead of assuming which platform provides what.
15036 * util/update-grub.in: Likewise.
15037
2d52f57f 150382008-08-03 Robert Millan <rmh@aybabtu.com>
15039
15040 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
15041 instead of `grub_install_dos_part' to determine whether a drive needs
15042 to be prepended to prefix (`grub_install_dos_part' is not reliable,
825aa57a 15043 because it can be overridden when loading GRUB via Multiboot).
2d52f57f 15044
2a5cd121 150452008-08-02 Robert Millan <rmh@aybabtu.com>
15046
15047 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
15048
93808428 150492008-08-02 Robert Millan <rmh@aybabtu.com>
15050
15051 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
15052 of informational grub_dprintf() calls.
15053
3bd0a12a 150542008-08-02 Robert Millan <rmh@aybabtu.com>
15055
15056 * disk/memdisk.c (memdisk_size): Don't initialize.
15057 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
15058
15059 * include/grub/i386/pc/kernel.h
15060 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
15061 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
15062 (grub_memdisk_image_size, grub_arch_memdisk_addr)
15063 (grub_arch_memdisk_size): Remove.
15064
15065 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
15066 field (was only used to transfer a constant). Add `type' field to
15067 support multiple module types.
15068 (grub_module_iterate): New function.
15069
15070 * kern/device.c (grub_device_open): Do not hide error messages
15071 when grub_disk_open() fails. Use grub_print_error() instead.
15072
15073 * kern/i386/pc/init.c (grub_arch_modules_addr)
15074 (grub_arch_memdisk_size): Remove functions.
15075 (grub_arch_modules_addr): Return the module address in high memory
15076 (now that it isn't copied anymore).
15077
15078 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
15079 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
15080 decompression routine (grub_total_module_size already includes that
15081 now). Don't copy modules back to low memory.
15082
15083 * kern/main.c: Include `<grub/mm.h>'.
15084 (grub_load_modules): Split out (and use) ...
15085 (grub_module_iterate): ... this function, which iterates through
15086 module objects and runs a hook.
15087 Comment out grub_mm_init_region() call, as it would cause non-ELF
15088 modules to be overwritten.
15089
15090 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
15091 the memdisk image in its own region, make it part of the module list.
15092 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
15093 (main): Parse --memdisk|-m option, and pass user-provided path as
15094 parameter to generate_image().
15095 (add_segments): Pass `memdisk_path' down to load_modules().
15096 (load_modules): Embed memdisk image in module section when requested.
15097 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
15098 `header.type' instead of `header.offset'.
15099
15100 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
15101 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
15102 (memdisk_mod_LDFLAGS): New variables.
15103 * conf/i386-coreboot.rmk: Likewise.
15104 * conf/i386-ieee1275.rmk: Likewise.
15105
a927cc73 151062008-08-02 Robert Millan <rmh@aybabtu.com>
15107
15108 * loader/i386/pc/multiboot.c (playground, forward_relocator)
15109 (backward_relocator): New variables. Used to allocate and relocate
15110 the payload, respectively.
15111 (grub_multiboot_load_elf32): Load into heap instead of requested
825aa57a 15112 address, install the appropriate relocator code in each bound of
a927cc73 15113 the payload, and set the entry point such that
15114 grub_multiboot_real_boot() will jump to one of them.
15115
15116 * kern/i386/loader.S (grub_multiboot_payload_size)
15117 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
15118 (grub_multiboot_payload_entry_offset): New variables.
15119 (grub_multiboot_real_boot): Set cpu context to what the relocator
15120 expects, and jump to the relocator instead of the payload.
15121
15122 * include/grub/i386/loader.h (grub_multiboot_payload_size)
15123 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
15124 (grub_multiboot_payload_entry_offset): Export.
15125
b15d8a0c 151262008-08-01 Bean <bean123ch@gmail.com>
15127
15128 * normal/menu_entry.c (editor_getline): Don't return the original
15129 string as result, as it will be released by lexer once it has done
15130 using it.
15131
cdfb3d22 151322008-08-01 Robert Millan <rmh@aybabtu.com>
15133
15134 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
15135 within menuentries, not before them.
15136 util/grub.d/10_hurd.in: Likewise.
15137
9175e93d 151382008-08-01 Bean <bean123ch@gmail.com>
15139
15140 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
15141 (bufio_mod_SOURCES): New macro.
15142 (bufio_mod_CFLAGS): Likewise.
15143 (bufio_mod_LDFLAGS): Likewise.
15144
15145 * include/grub/bufio.h: New file.
15146
15147 * io/bufio.c: Likewise.
15148
15149 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
15150 (grub_video_reader_png): Use grub_buffile_open to open file.
15151
15152 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
15153 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
15154
15155 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
15156 (grub_video_reader_tga): Use grub_buffile_open to open file.
15157
15158 * font/manager.c: Include <grub/bufio.h>.
15159 (add_font): Use grub_buffile_open to open file.
15160
3d8383e7 151612008-07-31 Robert Millan <rmh@aybabtu.com>
15162
15163 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
15164 ELF segments, use a macro for arbitrarily accessing any of them instead
15165 of preparing a pointer that allows access to one at a time.
15166 (grub_multiboot_load_elf64): Likewise.
15167
16e641b6 151682008-07-31 Bean <bean123ch@gmail.com>
15169
15170 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
15171 GRUB_KERNEL_MACHINE_DATA_END.
15172
59198b72 151732008-07-30 Robert Millan <rmh@aybabtu.com>
15174
15175 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
15176 Increase from 0x50 to 0x60.
15177 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
15178 use UUIDs to identify the root drive for them. If that's not
15179 possible, abort.
15180 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
15181 check, for cross-disk installs.
15182
ae88bca3 151832008-07-30 Robert Millan <rmh@aybabtu.com>
15184
15185 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
15186 is non-empty, use it to set the `prefix' environment variable instead
15187 of the usual approach.
15188 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
15189 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
15190 environment variable instead of dummy make_install_device().
15191
15192 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
15193 (start): Insert a data section, with `grub_prefix' variable.
825aa57a 15194 * kern/i386/linuxbios/startup.S: Likewise.
ae88bca3 15195
15196 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
15197 New variable reference.
15198 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
15199 New macro. Defines offset of `grub_prefix' within startup.S (relative
15200 to `start').
15201 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
15202 section within startup.S (relative to `start').
15203 * include/grub/i386/coreboot/kernel.h: Likewise.
15204
15205 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
15206 Overwrite grub_prefix with its contents, at the beginning of the
15207 first segment.
15208 (main): Understand -p|--prefix.
15209
14f41dd1 152102008-07-30 Robert Millan <rmh@aybabtu.com>
15211
15212 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
15213
4ca049a3 152142008-07-30 Robert Millan <rmh@aybabtu.com>
15215
15216 * term/i386/pc/vga_text.c (grub_console_cls): Use
15217 grub_console_gotoxy() to go back to beginning of the screen.
15218 Found by Patrick Georgi <patrick.georgi@coresystems.de>
15219
2921d337 152202008-07-29 Christian Franke <franke@computer.org>
15221
15222 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
15223 Add conversion of emulated mount points on Cygwin.
15224
b609876d 152252008-07-29 Christian Franke <franke@computer.org>
15226
15227 * util/update-grub.in: Add a check for admin
15228 group on Cygwin.
15229 Remove old `grub.cfg.new' before creation.
15230 Add `-f' to `mv' to handle the different filesystem
15231 semantics of Windows.
15232
e93e4679 152332008-07-29 Bean <bean123ch@gmail.com>
15234
15235 * normal/main.c (get_line): Fix buffer overflow bug.
15236
41694fd0 152372008-07-28 Robert Millan <rmh@aybabtu.com>
15238
15239 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
15240 (struct grub_apple_header): New struct. Describes the layout of
15241 the partmap header.
15242 (apple_partition_map_iterate): Check the header magic as well as the
15243 partition magic (which was already being checked).
15244
cfd0b4e6 152452008-07-28 Pavel Roskin <proski@gnu.org>
15246
15247 * genmk.rb: Add a warning to the beginning of the output that
15248 it's a generated file and should not be edited.
15249
93cce016 152502008-07-28 Robert Millan <rmh@aybabtu.com>
15251
15252 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
15253 with the same number are found, just use issue a warning with
15254 grub_dprintf(), as this error has been reported to be non-fatal.
c298def0 15255
cd1df915 152562008-07-27 Robert Millan <rmh@aybabtu.com>
15257
15258 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
15259 information.
15260
b70a8427 152612008-07-27 Bean <bean123ch@gmail.com>
15262
15263 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
15264 (grub_fat_find_dir): Ignore case when comparing filename.
15265
8f5e379f 152662008-07-27 Bean <bean123ch@gmail.com>
15267
15268 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
15269 smallino, as it's more descriptive, and i8count can be confused with
15270 the other field count.
15271 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
15272 inode type.
15273
a85cd5a0 152742008-07-27 Bean <bean123ch@gmail.com>
15275
15276 * commands/crc.c: New file.
15277
15278 * lib/crc.c: Likewise.
15279
15280 * include/grub/lib/crc.h: Likewise.
15281
15282 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
15283
15284 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
15285 (hexdump): Move this function to ...
15286
15287 * lib/hexdump.c: ... here.
15288
15289 * include/grub/hexdump.h: Renamed to ...
15290
15291 * include/grub/lib/hexdump.h: ... this.
15292
15293 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
15294
15295 * util/grub-editenv.c: Likewise.
15296
15297 * include/envblk.h: Renamed to ...
15298
15299 * include/lib/envblk.h: ... this.
15300
15301 * util/envblk.c: Renamed to ...
15302
15303 * lib/envblk.c: ... this.
15304
15305 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
15306 lib/hexdump.c.
15307 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
15308 (pkglib_MODULES): Add crc.mod.
15309 (hexdump_mod_SOURCES): Add lib/hexdump.c.
15310 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
15311 (crc_mod_SOURCES): New macro.
15312 (crc_mod_CFLAGS): Likewise.
15313 (crc_mod_LDFLAGS): Likewise.
15314
15315 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
15316
15317 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
15318
15319 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
15320
15321 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
15322
15323 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
15324
c298def0 153252008-07-27 Felix Zielcke <fzielcke@z-51.de>
8749e9e5 15326
15327 * commands/help.c: Include <grub/term.h>.
15328 (TERM_WIDTH): Removed. Updated all users.
15329
cc349fb3 153302008-07-27 Pavel Roskin <proski@gnu.org>
15331
15332 * util/getroot.c (find_root_device): Rephrase a comment to avoid
15333 spurious warnings about a comment within a comment.
15334
9051607e 153352008-07-25 Robert Millan <rmh@aybabtu.com>
15336
15337 * util/getroot.c (find_root_device): Skip devices that match
15338 /dev/dm-[0-9]. This lets the real device be found for any type of
15339 abstraction (LVM, EVMS, RAID..).
15340 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
15341 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
15342 device is found first, find_root_device() will now skip it.
15343
01453bfc 153442008-07-24 Pavel Roskin <proski@gnu.org>
15345
15346 * include/grub/types.h: Use __builtin_bswap32() and
15347 __builtin_bswap64() with gcc 4.3 and newer.
15348
6af9849f 153492008-07-24 Christian Franke <franke@computer.org>
15350
3a0fa256 15351 * util/i386/pc/grub-install.in: If `--debug' is specified,
15352 pass `--verbose' to grub-setup.
15353 Abort script if make_system_path_relative_to_its_root() fails.
15354
7810e747 153552008-07-24 Bean <bean123ch@gmail.com>
15356
15357 * configure.ac: Fixed a bug caused by the previous cygwin patch,
15358 variable `target_platform' should be `platform'.
15359
42290e17 153602008-07-24 Bean <bean123ch@gmail.com>
15361
51cc5193 15362 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
42290e17 15363 (grub_png_init_fixed_block): New function.
15364 (grub_png_decode_image_data): Handle fixed huffman code compression.
15365
2a8a80e4 153662008-07-24 Bean <bean123ch@gmail.com>
15367
15368 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
15369 (grub_pe2elf_SOURCES): New macro.
15370 (CLEANFILES): Add grub-pe2elf.
15371
15372 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
15373 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
15374 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
15375 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
15376 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
15377 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
15378 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
15379 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
15380 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
15381 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
15382 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
15383 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
15384 (GRUB_PE32_DT_FUNCTION): Likewise.
15385 (GRUB_PE32_REL_I386_DIR32): Likewise.
15386 (GRUB_PE32_REL_I386_REL32): Likewise.
15387 (grub_pe32_symbol): New structure.
15388 (grub_pe32_reloc): Likewise.
15389
15390 * util/grub-pe2elf.c: New file.
15391
15392 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
15393 start symbol in non pc platform.
15394
15395 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
15396
15397 The following patches are from Christian Franke.
15398
15399 * include/grub/dl.h: Remove .previous, gas supports this only
15400 for ELF format.
15401
15402 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
15403 Remove .type, gas supports this only for ELF format.
15404
15405 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
15406 nullbytes in symbol table. This fixes an infinite loop if table is
15407 zero filled.
15408
15409 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
15410 TARGET_IMG_LDFLAGS and EXEEXT.
15411
15412 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
15413 TARGET_IMG_LDFLAGS_AC.
15414 (grub_CHECK_STACK_ARG_PROBE): New function.
15415
15416 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
15417
15418 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
15419
15420 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
15421 to set TARGET_IMG_LD* accordingly.
15422 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
15423 Add call to grub_CHECK_STACK_ARG_PROBE.
15424 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
15425
15426 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
15427
15428 * genmk.rb: Add EXEEXT to CLEANFILES.
15429
12ccdb75 154302008-07-23 Robert Millan <rmh@aybabtu.com>
15431
15432 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
15433 define the codes for arrows and lines used for the menu).
15434 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
15435 as well.
15436
15437 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
15438 fonts, because the latter are too slow.
15439
18eeaf04 154402008-07-21 Bean <bean123ch@gmail.com>
15441
15442 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
15443 a20. Run keyboard test last, as it will cause macbook to halt.
15444
b095e2ad 154452008-07-18 Pavel Roskin <proski@gnu.org>
15446
15447 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
15448 load foreign architecture modules correctly anyway. Keep
15449 support for loading host architecture modules, whether we
15450 compile them or not.
15451
737feb35 154522008-07-17 Pavel Roskin <proski@gnu.org>
15453
3f4ce737 15454 * configure.ac: Use -m32 or -m64 regardless of whether we had to
15455 change target_cpu. The compiler default can mismatch target_cpu
15456 in any case.
15457
4ad2d049 15458 * disk/efi/efidisk.c: Fix format warnings on x86_64.
15459 * kern/efi/efi.c: Likewise.
15460
f6130a12 15461 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
15462 target compiler is functional.
15463 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
15464 are set up.
15465
58393a2d 15466 * configure.ac: Default to efi platform for x86_64-apple. Allow
15467 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
15468 adjustments from the rest, only do them if target is not
15469 explicitly given. Merge other adjustments with the final sanity
15470 check. Remove an extraneous check for supported CPU. Be
15471 specific which CPU and which platform is not supported.
15472
737feb35 15473 * configure.ac: Default to pc platform for x86_64.
15474
546f966a 154752008-07-17 Robert Millan <rmh@aybabtu.com>
15476
15477 Partial LinuxBIOS -> Coreboot rename.
15478
15479 * conf/i386-linuxbios.rmk: Renamed to ...
15480 * conf/i386-coreboot.rmk: ... this.
15481 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
15482 * configure.ac: Accept "coreboot" as input platform (but maintain
15483 compatibility with "linuxbios").
15484 * include/grub/i386/linuxbios: Renamed to ...
15485 * include/grub/i386/coreboot: ... this.
15486
20011694 154872008-07-17 Bean <bean123ch@gmail.com>
15488
15489 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
c11f6d16 15490 (appleldr_mod_SOURCE): New variable.
20011694 15491 (appleldr_mod_CFLAGS): Likewise.
15492 (appleldr_mod_LDFLAGS): Likewise.
15493 (pci_mod_SOURCES): Likewise.
15494 (pci_mod_CFLAGS): Likewise.
15495 (pci_mod_LDFLAGS): Likewise.
15496 (lspci_mod_SOURCES): Likewise.
15497 (lspci_mod_CFLAGS): Likewise.
15498 (lspci_mod_LDFLAGS): Likewise.
15499
15500 * conf/x86_64-efi.rmk: New file.
15501
15502 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
15503 macro.
15504 (grub_efidisk_write): Likewise.
15505
15506 * include/efi/api.h (efi_call_0): New macro.
15507 (efi_call_1): Likewise.
15508 (efi_call_2): Likewise.
15509 (efi_call_3): Likewise.
15510 (efi_call_4): Likewise.
15511 (efi_call_5): Likewise.
15512 (efi_call_6): Likewise.
15513
15514 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
15515 grub_rescue_cmd_chainloader.
15516
15517 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
15518 (grub_pe32_optional_header): Change some fields based on i386 or
15519 x86_64 platform.
15520 (GRUB_PE32_PE32_MAGIC): Likewise.
15521
15522 * include/grub/efi/uga_draw.h: New file.
15523
15524 * include/grub/elf.h (STN_ABS): New constant.
15525 (R_X86_64_NONE): Relocation constant for x86_64.
15526 (R_X86_64_64): Likewise.
15527 (R_X86_64_PC32): Likewise.
15528 (R_X86_64_GOT32): Likewise.
15529 (R_X86_64_PLT32): Likewise.
15530 (R_X86_64_COPY): Likewise.
15531 (R_X86_64_GLOB_DAT): Likewise.
15532 (R_X86_64_JUMP_SLOT): Likewise.
15533 (R_X86_64_RELATIVE): Likewise.
15534 (R_X86_64_GOTPCREL): Likewise.
15535 (R_X86_64_32): Likewise.
15536 (R_X86_64_32S): Likewise.
15537 (R_X86_64_16): Likewise.
15538 (R_X86_64_PC16): Likewise.
15539 (R_X86_64_8): Likewise.
15540 (R_X86_64_PC8): Likewise.
15541
15542 * include/grub/i386/efi/pci.h: New file.
15543
15544 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
15545 Change it value based on platform.
15546 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
15547 (GRUB_E820_RAM): Likewise.
15548 (GRUB_E820_RESERVED): Likewise.
15549 (GRUB_E820_ACPI): Likewise.
15550 (GRUB_E820_NVS): Likewise.
15551 (GRUB_E820_EXEC_CODE): Likewise.
15552 (GRUB_E820_MAX_ENTRY): Likewise.
15553 (grub_e820_mmap): New structure.
15554 (linux_kernel_header): Change the efi field according to different
15555 kernel version, also field from linux_kernel_header.
15556
15557 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
15558
15559 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
15560 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
15561 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
15562 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
15563 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
15564 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
15565 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
15566 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
15567 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
15568 (GRUB_PCI_ADDR_IO_MASK): Likewise.
15569
15570 * include/grub/x86_64/efi/kernel.h: New file.
15571
15572 * include/grub/x86_64/efi/loader.h: Likewise.
15573
15574 * include/grub/x86_64/efi/machine.h: Likewise.
15575
15576 * include/grub/x86_64/efi/pci.h: Likewise.
15577
15578 * include/grub/x86_64/efi/time.h: Likewise.
15579
15580 * include/grub/x86_64/linux.h: Likewise.
15581
15582 * include/grub/x86_64/setjmp.h: Likewise.
15583
15584 * include/grub/x86_64/time.h: Likewise.
15585
15586 * include/grub/x86_64/types.h: Likewise.
15587
15588 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
15589 GRUB_TARGET_SIZEOF_VOID_P.
15590
15591 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
15592 (grub_efi_locate_handle): Likewise.
15593 (grub_efi_open_protocol): Likewise.
15594 (grub_efi_set_text_mode): Likewise.
15595 (grub_efi_stall): Likewise.
15596 (grub_exit): Likewise.
15597 (grub_reboot): Likewise.
15598 (grub_halt): Likewise.
15599 (grub_efi_exit_boot_services): Likewise.
15600 (grub_get_rtc): Likewise.
15601
15602 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
15603 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
15604 (grub_efi_allocate_pages): Wrap efi calls.
15605 (grub_efi_free_pages): Wrap efi calls.
15606 (grub_efi_get_memory_map): Wrap efi calls.
15607
15608 * kern/x86_64/dl.c: New file.
15609
15610 * kern/x86_64/efi/callwrap.S: Likewise.
15611
15612 * kern/x86_64/efi/startup.S: Likewise.
15613
15614 * loader/efi/appleloader.c: Likewise.
15615
15616 * loader/efi/chainloader.c (cmdline): New variable.
15617 (grub_chainloader_unload): Wrap efi calls.
15618 (grub_chainloader_boot): Likewise.
15619 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
15620 command line.
15621
15622 * loader/efi/chainloader_normal.c (chainloader_command):
15623 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
15624 command line.
15625
15626 * loader/i386/efi/linux.c (allocate_pages): Change allocation
15627 method.
15628 (grub_e820_add_region): New function.
15629 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
15630 booting.
15631 (grub_find_video_card): New function.
15632 (grub_linux_setup_video): New function.
15633 (grub_rescue_cmd_linux): Probe for video information.
15634
15635 * normal/x86_64/setjmp.S: New file.
15636
15637 * term/efi/console.c (map_char): New function.
15638 (grub_console_putchar): Map unicode char.
15639 (grub_console_checkkey): Wrap efi calls.
15640 (grub_console_getkey): Likewise.
15641 (grub_console_getwh): Likewise.
15642 (grub_console_gotoxy): Likewise.
15643 (grub_console_cls): Likewise.
15644 (grub_console_setcolorstate): Likewise.
15645 (grub_console_setcursor): Likewise.
15646
15647 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
15648
59652a20 156492008-07-16 Pavel Roskin <proski@gnu.org>
15650
ef294055 15651 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
15652 format strings.
15653
59652a20 15654 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
15655 pointer, not an integer. This fixes a warning and prevents
15656 precision loss on 64-bit systems.
15657 (relocate_addresses): Remove unneeded cast.
15658
afc3b5d7 156592008-07-15 Pavel Roskin <proski@gnu.org>
15660
506b2b3e 15661 * kern/i386/ieee1275/init.c: Include grub/cache.h.
15662
62ead89c 15663 * term/ieee1275/ofconsole.c: Disable code unused on i386.
15664
c4cd51d7 15665 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
15666 Fix comparison between signed and unsigned.
15667
0d3d8f28 15668 * include/grub/i386/ieee1275/console.h: Declare
15669 grub_console_init() and grub_console_fini().
15670
8804b286 15671 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
15672 It's empty and unused.
15673
ee01cf35 15674 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
15675 beginning to avoid warnings with some compilers.
15676
afc3b5d7 15677 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
15678 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
15679
e4e8eaa5 156802008-07-14 Pavel Roskin <proski@gnu.org>
15681
407aceb4 15682 * kern/env.c (grub_register_variable_hook): Don't copy empty
15683 string, it leaks memory. Pass "" to grub_env_set(), it should
15684 handle constant strings.
15685
e4e8eaa5 15686 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
15687 * commands/cmp.c (grub_cmd_cmp): Likewise.
15688 * kern/dl.c (grub_dl_flush_cache): Likewise.
15689 (grub_dl_load_core): Likewise.
15690 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
15691 (grub_elf64_load_phdrs): Likewise.
15692
d4e2dad3 156932008-07-13 Pavel Roskin <proski@gnu.org>
15694
15695 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
15696 between signed and unsigned.
15697 (LzmaEnc_Finish): Fix warning about an unused parameter.
15698
aa24b516 156992008-07-13 Bean <bean123ch@gmail.com>
15700
15701 * Makefile.in (enable_lzo): New rule.
15702
15703 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
15704
15705 * configure.ac (ENABLE_LZO): New option --enable-lzo.
15706
15707 * boot/i386/pc/lnxboot.S: #include <config.h>.
15708
15709 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
fe987087 15710 its value according to the compression algorithm used, lzo or lzma.
aa24b516 15711
15712 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
15713 compression algorithm according to configure macro.
15714
15715 * kern/i386/pc/startup.S (codestart): Likewise.
15716
15717 * kern/i386/pc/lzma_decode.S: New file.
15718
15719 * include/grub/lib/LzFind.h: Likewise.
15720
15721 * include/grub/lib/LzHash.h: Likewise.
15722
15723 * include/grub/lib/LzmaDec.h: Likewise.
15724
15725 * include/grub/lib/LzmaEnc.h: Likewise.
15726
15727 * include/grub/lib/LzmaTypes.h: Likewise.
15728
15729 * lib/LzFind.c: Likewise.
15730
15731 * lib/LzmaDec.c: Likewise.
15732
15733 * lib/LzmaEnc.c: Likewise.
15734
4ae821ac 157352008-07-13 Bean <bean123ch@gmail.com>
15736
15737 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
15738 (grub_ext4_extent_header): New structure.
15739 (grub_ext4_extent): Likewise.
15740 (grub_ext4_extent_idx): Likewise.
15741 (grub_ext4_find_leaf): New function.
15742 (grub_ext2_read_block): Handle extents.
15743
9a745147 157442008-07-12 Robert Millan <rmh@aybabtu.com>
15745
15746 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
15747
d49a4cf6 157482008-07-11 Robert Millan <rmh@aybabtu.com>
15749
15750 * util/grub.d/40_custom.in: New file. Example on how to add custom
15751 entries to /etc/grub.d.
15752 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
15753 40_custom (implicitly, by merging all the grub.d rules).
15754
947414b4 157552008-07-11 Pavel Roskin <proski@gnu.org>
15756
0059cf6f 15757 * commands/read.c (grub_getline): Fix invalid memory access.
15758 Don't add newline to the variable value.
15759
947414b4 15760 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
15761 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
15762 (serial_hw_get_port): Check validity of the port number.
15763 (grub_cmd_serial): Check return value of serial_hw_get_port().
15764
62a02d00 157652008-07-07 Pavel Roskin <proski@gnu.org>
15766
15767 * boot/i386/pc/diskboot.S (notification_string): Replace
15768 "Loading kernel" with just "loading". This is shorter, less
15769 confusing and saves a few bytes for possible future changes.
15770
3e5581b0 157712008-07-05 Pavel Roskin <proski@gnu.org>
15772
ea387a48 15773 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
15774 size for ATAPI devices, they are undefined. Output sector
15775 number in decimal form.
15776
3e5581b0 15777 * disk/ata.c: Use named constants for status bits.
15778
fdecb8fd 157792008-07-04 Pavel Roskin <proski@gnu.org>
15780
bcd35b90 15781 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
15782 grub_addr_t before casting it to the void pointer to fix a
15783 warning. Non-addressable regions are discarded earlier.
15784 (grub_arch_modules_addr): Cast _end to grub_addr_t.
15785 * kern/i386/linuxbios/table.c: Include grub/misc.h.
15786 (check_signature): Don't shadow table_header.
15787 (grub_linuxbios_table_iterate): Cast numeric constants to
15788 grub_linuxbios_table_header_t.
15789 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
15790 grub_stop().
15791
af58ab3d 15792 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
15793 prevent warnings.
15794
1759aa57 15795 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
15796 pointer, which can cause warnings. Support 64-bit addresses.
15797
fdecb8fd 15798 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
15799 of sizeof(long). This fixes PowerPC image generation on x86_64.
15800
8516d2a8 158012008-07-04 Robert Millan <rmh@aybabtu.com>
15802
15803 This fixes a performance issue when pc & gpt partmap iterators
15804 didn't abort iteration even after our hook found what it was
fe987087 15805 looking for (often causing expensive probes of non-existent drives).
8516d2a8 15806
15807 Some callers relied on previous buggy behaviour, since they would
34c44600 15808 raise an error when their own hooks caused early abortion of its
8516d2a8 15809 iteration.
15810
15811 * kern/device.c (grub_device_open): Improve error message.
15812 * disk/lvm.c (grub_lvm_open): Likewise.
15813 * disk/raid.c (grub_raid_open): Likewise.
15814
15815 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
15816 when hook requests it, independently of grub_errno.
15817 (pc_partition_map_probe): Do not fail when find_func() caused
15818 early abortion of pc_partition_map_iterate().
15819
15820 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
15821 when hook requests it, independently of grub_errno.
15822 (gpt_partition_map_probe): Do not fail when find_func() caused
15823 early abortion of gpt_partition_map_iterate().
15824
15825 * kern/partition.c (grub_partition_iterate): Abort parent iteration
15826 when hook requests it, independently of grub_errno. Do not fail when
15827 part_map_iterate_hook() caused early abortion of p->iterate().
15828
15829 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
15830 when grub_partition_iterate() returned with non-zero.
15831
277d0de9 158322008-07-03 Pavel Roskin <proski@gnu.org>
15833
15834 * disk/ata.c (grub_ata_pio_write): Check status before writing,
15835 like we do in grub_ata_pio_read().
15836 (grub_ata_readwrite): Always write individual sectors. Fix the
15837 sector count for the remainder.
15838 (grub_ata_write): Enable writing to ATA devices. Correctly
15839 report error for ATAPI devices.
15840
d4c9b428 158412008-07-02 Pavel Roskin <proski@gnu.org>
15842
e43fc690 15843 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
15844 warning.
15845
f707af42 15846 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
15847 for every read sector, we already increment it for the whole
15848 batch. This fixes reading more than 256 sectors at once.
15849
11e16b15 15850 * util/grub-editenv.c (cmd_info): Cast argument to long
15851 explicitly. ptrdiff_t reduces to int on i386.
15852
cbabfdd4 15853 * util/grub-editenv.c (main): Be specific which parameter is
15854 missing.
15855
b8fbce0a 15856 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
15857 (memdisk): Make memdisk_orig_addr a pointer.
15858
c9c8e606 15859 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
15860 for file offsets, use grub_off_t instead. Fix printf format
15861 warnings.
15862
ca62e598 15863 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
15864 there. Real unexpected warnings should not drown in the noise
15865 about known problems.
15866
ce8d1766 15867 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
15868 grub_disk_addr_t for memory addresses.
15869
00c7a56a 15870 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
15871 explicitly to fix a warning.
15872
08d3ef09 15873 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
15874
cb71ba20 15875 * Makefile.in (MODULE_LDFLAGS): New variable.
15876 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
15877 the linker accepts --build-id=none.
15878 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
15879 MODULE_LDFLAGS.
15880 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
15881
d4c9b428 15882 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
15883 those in Linux XFS code. Provide a way to access 64-bit parent
15884 inode.
15885 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
15886 the end of struct grub_xfs_dir_header.
15887
d4156eee 158882008-07-02 Bean <bean123ch@gmail.com>
15889
15890 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
15891 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
15892 and GRUB_IEEE1275_FLAG_NO_ANSI.
15893
15894 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
15895 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
15896 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
15897
15898 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
15899 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
15900
15901 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
15902 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
15903
15904 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
15905 esc sequence on non ANSI terminal.
15906 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
15907
15908 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
15909 beginning of file.
15910
2270f77b 159112008-07-02 Bean <bean123ch@gmail.com>
15912
15913 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
15914 (grub_editenv_SOURCES): New variable.
15915 (pkglib_MODULES): Add loadenv.mod.
15916 (loadenv_mod_SOURCES): New variable.
15917 (loadenv_mod_CFLAGS): Likewise.
15918 (loadenv_mod_LDFLAGS): Likewise.
15919
15920 * include/grub/envblk.h: New file.
15921
15922 * util/envblk.c: New file.
15923
15924 * util/grub-editenv.c: New file.
15925
15926 * commands/loadenv.c: New file.
15927
0e9e51ec 159282008-07-01 Pavel Roskin <proski@gnu.org>
15929
d89b7634 15930 * include/multiboot2.h (struct multiboot_tag_module): Use char,
15931 not unsigned char. This fixes warnings and is consistent with
15932 other tags.
15933
bf1835b1 15934 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
15935
8222a04b 15936 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
15937
6a42d99d 15938 * term/tparm.c (analyze): Always set *popcount.
15939
10b159d1 15940 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
15941 cast to fix a warning.
15942
b8789f6c 15943 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
15944 cast to suppress a warning.
15945
29d7e38a 15946 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
15947 grub_fshelp_read_file() expects.
15948
f341f669 15949 * fs/fat.c: Fix UUID calculation on big-endian systems. We
15950 write uuid as a 32-bit value in CPU byte order, so declare and
15951 use it as such.
15952
0e9e51ec 15953 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
15954 long if the format specifier expects it.
15955 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
15956 * partmap/pc.c (pc_partition_map_iterate): Likewise.
15957 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
15958 long to fix a warning.
15959 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
15960 grub_dprintf() arguments to fix warnings.
15961
3aefa857 159622008-06-30 Pavel Roskin <proski@gnu.org>
15963
56c7668b 15964 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
15965 install_bsd_part immediately before core.img is embedded or
15966 modified on disk. This fixes core.img verification if core.img
15967 cannot be embedded.
15968
3aefa857 15969 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
15970 core_path to calculate the blocklist.
15971 Patch from Javier Martín <lordhabbit@gmail.com>
15972
5444088d 159732008-06-29 Robert Millan <rmh@aybabtu.com>
15974
15975 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
15976 block to disk block.
15977 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
15978 Patch from Niels Böhm <bitbucket@arcor.de>
15979
674835c8 159802008-06-29 Robert Millan <rmh@aybabtu.com>
15981
15982 * util/update-grub_lib.in (font_path): Search for fonts in
15983 /boot/grub first, which is more likely to be readable (we aren't
15984 deciding where fonts live, just looking for them).
15985
f527dbc8 159862008-06-26 Pavel Roskin <proski@gnu.org>
15987
6c2d8df6 15988 * util/biosdisk.c (read_device_map): Don't leave dead map
15989 entries for devices failing stat() check.
15990
f527dbc8 15991 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
15992 core_path_dev for the core.img path on the target device.
15993
aebe3d13 159942008-06-26 Robert Millan <rmh@aybabtu.com>
15995
15996 * disk/fs_uuid.c: New file.
15997 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
15998 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
15999 (fs_uuid_mod_LDFLAGS): New variables.
16000 * include/grub/disk.h (grub_disk_dev_id): Add
16001 `GRUB_DISK_DEVICE_UUID_ID'.
16002 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
16003 implement iterate().
16004
37aaf354 160052008-06-26 Robert Millan <rmh@aybabtu.com>
16006
16007 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
16008 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
16009 Linux image includes no initrd.
16010
25ff262a 160112008-06-21 Javier Martín <lordhabbit@gmail.com>
16012
16013 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
16014 call to resolve the core image location that effectively appended the
16015 name twice.
16016
76a2bd44 160172008-06-21 Robert Millan <rmh@aybabtu.com>
16018
16019 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
16020 call from here ...
16021
16022 * util/grub.d/10_hurd.in: ... to here ...
16023 * util/grub.d/10_linux.in: ... and here.
16024
650e1c79 160252008-06-19 Robert Millan <rmh@aybabtu.com>
16026
fe987087 16027 * kern/main.c (grub_main): Export `prefix' variable immediately
650e1c79 16028 after it has been set by grub_machine_set_prefix().
16029
6ce63911 160302008-06-19 Robert Millan <rmh@aybabtu.com>
16031
16032 * commands/search.c (search_label, search_fs_uuid, search_file): Print
16033 search result when not saving to variable, not the other way around.
16034 When saving to variable, abort iteration as soon as a match is found.
16035
73940cec 160362008-06-19 Robert Millan <rmh@aybabtu.com>
16037
16038 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
16039 check for partition that provides /boot/grub. Its logic is flawed,
16040 as it prevents prepare_grub_to_access_device() from being called
16041 multiple times.
16042
3c62a39d 160432008-06-19 Robert Millan <rmh@aybabtu.com>
16044
16045 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
16046 "insmod" command directly when abstraction modules are needed,
fe987087 16047 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
3c62a39d 16048 since it had already been processed).
16049
47395a42 160502008-06-19 Pavel Roskin <proski@gnu.org>
16051
16052 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
16053 changed. This is needed in case GRUB_LIBDIR changes.
16054 * conf/i386-ieee1275.rmk: Likewise.
16055 * conf/i386-linuxbios.rmk: Likewise.
16056 * conf/i386-pc.rmk: Likewise.
16057 * conf/powerpc-ieee1275.rmk: Likewise.
16058
a145ac2d 160592008-06-18 Pavel Roskin <proski@gnu.org>
16060
16061 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
16062 kernel_elf_symlist.c to symlist.c for consistency with other
16063 architectures. Update all users.
16064 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
16065
7847c51e 160662008-06-18 Robert Millan <rmh@aybabtu.com>
16067
16068 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
16069 it in prefix.
16070
16071 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
16072 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
16073 a RAID device, run setup() for all members independently on whether
16074 LVM abstraction is being used.
16075 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
16076 If grub-mkimage has set `*install_dos_part == -2', don't override this
16077 value.
16078 Perform *install_dos_part adjustments independently on whether
16079 we're embedding or not.
16080 Clarify error message when image is too big for embedding.
16081 Remove duplicate *install_dos_part stanza.
16082
b23e5644 160832008-06-17 Robert Millan <rmh@aybabtu.com>
16084
16085 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
16086 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
16087 variables.
16088 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
16089 values in grub_ofconsole_normal_color and
16090 grub_ofconsole_highlight_color (they're not directly related to
16091 background and foreground).
16092 (grub_ofconsole_setcolorstate): Extract background and foreground
16093 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
16094
0aac2f79 160952008-06-17 Robert Millan <rmh@aybabtu.com>
16096
16097 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
16098 /boot/grub for the check in last commit, not /boot (they could be
16099 different partitions).
16100
3cca7ef3 161012008-06-16 Robert Millan <rmh@aybabtu.com>
16102
16103 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
16104 asked to setup access for the same partition that provides /boot,
16105 don't bother using UUIDs since our root already has the value we
16106 want.
16107
347396d8 161082008-06-16 Robert Millan <rmh@aybabtu.com>
16109
16110 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
16111 I2O devices.
16112 Patch from Sven Mueller <sven@debian.org>.
16113
991477f8 161142008-06-16 Robert Millan <rmh@aybabtu.com>
16115
16116 * util/update-grub.in: Check for $EUID instead of $UID.
16117 Reported by Vincent Zweije.
16118
d31a32a1 161192008-06-16 Bean <bean123ch@gmail.com>
16120
fe987087 16121 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
d31a32a1 16122 (grub_ext2_read_block): Likewise.
16123 (grub_ext2_read_inode): Likewise.
16124 (grub_ext2_mount): Likewise.
16125 (grub_ext2_close): Likewise.
16126 (grub_ext3_get_journal): Removed.
16127
fe987087 16128 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
d31a32a1 16129 (grub_reiserfs_read_symlink): Likewise.
16130 (grub_reiserfs_mount): Likewise.
16131 (grub_reiserfs_open): Likewise.
16132 (grub_reiserfs_read): Likewise.
16133 (grub_reiserfs_close): Likewise.
16134 (grub_reiserfs_get_journal): Removed.
16135
16136 * fs/fshelp.c (grub_fshelp_read): Removed.
16137 (grub_fshelp_map_block): Likewise.
16138
16139 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
16140 (grub_fshelp_journal): Likewise.
16141 (grub_fshelp_read): Likewise.
16142 (grub_fshelp_map_block): Likewise.
16143
3540a760 161442008-06-16 Pavel Roskin <proski@gnu.org>
16145
16146 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
16147 floating point anymore.
16148 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
16149
95614c84 161502008-06-15 Pavel Roskin <proski@gnu.org>
16151
16152 * commands/ls.c (grub_ls_list_files): Use integer calculations
16153 for human readable format, avoid floating point use.
16154 * kern/misc.c (grub_ftoa): Remove.
16155 (grub_vsprintf): Remove floating point support.
16156
50465dd6 161572008-06-15 Robert Millan <rmh@aybabtu.com>
16158
fe6b695a 16159 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
50465dd6 16160 devices.
16161 Reported by Max Vozeler.
16162
a9207284 161632008-06-15 Robert Millan <rmh@aybabtu.com>
16164
16165 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
16166 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
16167 skipped later.
16168 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
16169 the beginning of the prefix.
16170
16171 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
16172 It is assumed that if we have a memdisk, grub-mkimage has set
16173 grub_prefix to include the "(memdisk)" drive in it.
16174
a7cbd45a 161752008-06-15 Robert Millan <rmh@aybabtu.com>
16176
16177 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
16178 Initialize keyboard controller after registering the terminal, so that
16179 grub_printf() can be called from grub_keyboard_controller_init().
16180
21cf716a 161812008-06-15 Robert Millan <rmh@aybabtu.com>
16182
16183 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
16184 extent-btree which is written as big endian on disk.
16185 Reported by Alain Greppin <al@chilibi.org>.
16186
23a64d8e 161872008-06-14 Robert Millan <rmh@aybabtu.com>
16188
16189 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
16190 * util/i386/pc/grub-install.in (modules): Likewise.
16191
d687651c 161922008-06-13 Pavel Roskin <proski@gnu.org>
16193
16194 * commands/ls.c (grub_ls_list_files): Fix format warnings.
16195
dfe9ddd4 161962008-06-13 Bean <bean123ch@gmail.com>
16197
16198 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
16199
16200 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
16201
16202 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
16203 to indicate sparse block.
16204
16ae7781 162052008-06-12 Pavel Roskin <proski@gnu.org>
16206
e6d1a308 16207 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
16208 number, grub_fshelp_read() does it for us.
16209
16ae7781 16210 * fs/fshelp.c (grub_fshelp_read): New function. Implement
16211 linear disk read with journal translation.
16212 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
16213 * include/grub/fshelp.h: Declare grub_fshelp_read().
16214
40fd3a2b 162152008-06-09 Pavel Roskin <proski@gnu.org>
16216
16217 * fs/minix.c (grub_minix_mount): Handle error reading
16218 superblock.
16219
f5679726 162202008-06-08 Robert Millan <rmh@aybabtu.com>
16221
16222 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
16223 don't append the RAID prefix afterwards.
16224 Reported by Clint Adams.
16225
ce525529 162262008-06-08 Robert Millan <rmh@aybabtu.com>
16227
16228 Based on description from Pavel:
16229 * kern/disk.c (grub_disk_check_range): Rename to ...
16230 (grub_disk_adjust_range): ... this. Add a comment explaining the
16231 tasks performed by this function.
16232
ad4936a0 162332008-06-08 Robert Millan <rmh@aybabtu.com>
16234
16235 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
16236 `num_serial' (for consistency with other variables).
16237 (struct grub_ntfs_data): Add `uuid' member.
16238 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
16239 (grub_ntfs_uuid): New function.
16240 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
16241
dc20b0f9 162422008-06-07 Pavel Roskin <proski@gnu.org>
16243
16244 * util/biosdisk.c (open_device): Revert last change to the
16245 function, it broke installation. The sector needs to be
16246 different dependent on which device is opened.
16247
c5e3cfba 162482008-06-06 Robert Millan <rmh@aybabtu.com>
16249
16250 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
16251 rest of GRUB, and breakage doesn't happen if its value were modified.
16252
16253 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
16254 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
16255 a constant (same value).
16256 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
16257 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
16258
26a1f8c4 162592008-06-06 Robert Millan <rmh@aybabtu.com>
16260
16261 * util/biosdisk.c (open_device): Do not modify sector offset when
16262 accessing a partition. kern/disk.c already handles this for us.
16263
25d6b327 162642008-06-06 Robert Millan <rmh@aybabtu.com>
16265
16266 * util/grub-emu.c (grub_machine_init): Move code in this function from
16267 here ...
16268 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
16269 segfault in case grub_printf() is called).
16270
16271 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
16272 grub_probe. Update all users not to explicitly add it again.
16273 (grub_device): New variable; contains corresponding device for grubdir.
16274 (fs_module, partmap_module, devabstraction_module): Pass
16275 `--device ${grub_device}' to grub_probe to avoid traversing /dev
16276 every time.
16277
9ece62fb 162782008-06-05 Robert Millan <rmh@aybabtu.com>
16279
16280 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
16281 is found, print it (same layout as with labels).
16282
1ad36d37 162832008-06-04 Robert Millan <rmh@aybabtu.com>
16284
16285 * util/biosdisk.c (get_drive): Rename to ...
16286 (find_grub_drive): ... this. Update all users.
16287
16288 (get_os_disk): Rename to ...
16289 (convert_system_partition_to_system_disk): ... this. Update all users.
16290
16291 (find_drive): Rename to ...
16292 (find_system_device): ... this. Update all users.
16293
e6a30859 162942008-06-04 Robert Millan <rmh@aybabtu.com>
16295
16296 * util/biosdisk.c (get_os_disk): Handle IDA devices.
16297 * util/grub-mkdevicemap.c (get_mmc_disk_name)
16298 (make_device_map): Likewise.
16299
00c108a4 163002008-06-01 Robert Millan <rmh@aybabtu.com>
16301
16302 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
16303 before dereferencing it.
16304
16305 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
16306 union with fat12/fat16-specific ones. Add some new fields, including
16307 `num_serial' for both versions.
16308 (struct grub_fat_data): Add `uuid' member.
16309 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
16310 names. Initialize `data->uuid' using `num_serial'.
16311 (grub_fat_uuid): New function.
16312 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
16313
16314 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
16315 (grub_reiserfs_uuid): New function.
16316 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
16317 member.
16318
16319 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
16320 (grub_xfs_uuid): New function.
16321 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
16322
1385c5bb 163232008-06-01 Robert Millan <rmh@aybabtu.com>
16324
16325 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
16326 code that is backward compatible with pre-uuid search command.
16327
c682dfd7 163282008-05-31 Robert Millan <rmh@aybabtu.com>
16329
16330 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
16331 floppies after everything else, to ensure floppy drive isn't accessed
16332 unnecessarily (patch from Bean).
16333
b7db5d47 163342008-05-31 Robert Millan <rmh@aybabtu.com>
16335
16336 * commands/search.c (search_label, search_fs_uuid, search_file): Do
16337 not print device names when we were asked to set a variable.
16338
6e037aa9 163392008-05-31 Robert Millan <rmh@aybabtu.com>
16340
16341 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
16342 using "cursor-on" and "cursor-off" commands (understood at least by
16343 the Open Firmware flavour on OLPC).
16344
41305bc8 163452008-05-31 Michael Gorven <michael@gorven.za.net>
16346
16347 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
16348 on and off sequences.
16349
69ba137e 163502008-05-31 Robert Millan <rmh@aybabtu.com>
16351
16352 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
16353 * util/update-grub.in: Likewise.
16354
520ae21b 163552008-05-30 Pavel Roskin <proski@gnu.org>
16356
16357 * util/biosdisk.c (linux_find_partition): Simplify logic and
16358 make the code more universal. Keep special processing for
16359 devfs, but use a simple rule for all other devices. If the
16360 device ends with a number, append 'p' and the partition number.
16361 Otherwise, append only the partition number.
16362
5786569b 163632008-05-30 Robert Millan <rmh@aybabtu.com>
16364
16365 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
16366 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
16367 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
16368 the `root' parameter to Linux.
16369
51500452 163702008-05-30 Robert Millan <rmh@aybabtu.com>
16371
16372 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
16373 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
16374 --fs_uuid with --fs-uuid.
16375 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
16376 all filesystems support them).
16377
811d3878 163782008-05-30 Robert Millan <rmh@aybabtu.com>
16379
16380 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
f19dbdb7 16381 grub_printf() flags, since we're printing in units of 2 bytes.
811d3878 16382
cab63c95 163832008-05-30 Robert Millan <rmh@aybabtu.com>
16384
16385 * util/grub.d/00_header.in: Remove obsolete comment referencing
16386 convert_system_path_to_grub_path().
16387 * util/update-grub.in: Likewise.
16388 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
16389 (convert_system_path_to_grub_path): Add a warning message explaining
16390 that this function is deprecated. Rely on is_path_readable_by_grub()
16391 for the readability checks.
16392 (font_path): Use is_path_readable_by_grub() for the readability
16393 check rather than convert_system_path_to_grub_path().
16394
972e2f7a 163952008-05-30 Robert Millan <rmh@aybabtu.com>
16396
16397 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
16398 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
16399 converting it first.
16400 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
16401 grub.cfg for access to font file, and afterwards call it again to set
16402 the root device.
16403
62191274 164042008-05-30 Robert Millan <rmh@aybabtu.com>
16405
16406 * commands/search.c (options): Add --fs_uuid option.
16407 (search_fs_uuid): New function.
16408 (grub_cmd_search): Fix --set argument passing.
16409 Use search_fs_uuid() when requested via --fs_uuid.
16410 (grub_search_init): Update help message.
16411 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
16412 and redeclare it as an array of 16-bit words.
16413 (grub_ext2_uuid): New function.
16414 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
16415 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
16416 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
16417 (GRUB_DEVICE_BOOT_UUID): New variables.
16418 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
16419 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
16420 whenever possible.
16421 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
16422 just assume `root' variable has the right value.
16423 * util/grub.d/10_linux.in: Likewise.
16424 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
16425 via PRINT_FS_UUID.
16426 (main): Recognise `-t fs_uuid' argument.
16427
01b73ec8 164282008-05-30 Robert Millan <rmh@aybabtu.com>
16429
16430 * util/biosdisk.c (map): Redefine structure to hold information
16431 about GRUB drive name.
fe6b695a 16432 (get_drive): Reimplement without assuming (and verifying) BIOS-like
01b73ec8 16433 drive names.
16434 (call_hook): Remove.
16435 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
16436 member. Assume drive has partitions.
16437 (grub_util_biosdisk_open): Access device names via `.device' struct
16438 member.
16439 (open_device): Likewise.
16440 (find_drive): Likewise.
16441 (read_device_map): Adjust map[] usage to match the new struct
16442 definition. Don't check for duplicates (still possible, but not cheap
16443 anymore).
16444 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
16445 (make_device_name): Remove assumption of BIOS-like drive names.
16446
22f16596 164472008-05-30 Pavel Roskin <proski@gnu.org>
16448
16449 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
16450 compiling execute.c doesn't need grub_script.tab.h anymore.
16451 (normal/command.c_DEPENDENCIES): Likewise.
16452 (normal/function.c_DEPENDENCIES): Likewise.
16453 * conf/i386-ieee1275.rmk: Likewise.
16454 * conf/i386-linuxbios.rmk: Likewise.
16455 * conf/i386-pc.rmk: Likewise.
16456 * conf/powerpc-ieee1275.rmk: Likewise.
16457 * conf/sparc64-ieee1275.rmk: Likewise.
16458
528ad8f2 164592008-05-29 Pavel Roskin <proski@gnu.org>
16460
d1dff95d 16461 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
16462 when scanning metadata for volume group name.
16463
528ad8f2 16464 * include/grub/script.h: Don't include grub_script.tab.h. It's
16465 a generated file, which may only be included from the files with
16466 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
16467 use union YYSTYPE, as the later allows forward declaration.
16468 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
16469
47248e08 164702008-05-29 Robert Millan <rmh@aybabtu.com>
16471
16472 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
16473 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
16474 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
16475 (grub_console_checkkey): Add grub_dprintf() call to report unknown
16476 scan codes.
16477
ee632529 164782008-05-29 Robert Millan <rmh@aybabtu.com>
16479
16480 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
16481 control key combinations.
16482
eee96e08 164832008-05-29 Robert Millan <rmh@aybabtu.com>
16484
16485 * util/powerpc/ieee1275/grub-install.in: Move from here ...
16486 * util/ieee1275/grub-install.in: ... to here.
16487 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
16488 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
16489 (grub_install_SOURCES): Likewise.
16490
da9a6a94 164912008-05-29 Robert Millan <rmh@aybabtu.com>
16492
16493 * fs/affs.c: Update copyright year.
16494 * fs/ext2.c: Likewise.
16495 * fs/fshelp.c: Likewise.
16496 * fs/hfsplus.c: Likewise.
16497 * fs/ntfs.c: Likewise.
16498 * fs/xfs.c: Likewise.
16499 * include/grub/fshelp.h: Likewise.
16500 * util/grub-mkdevicemap.c: Likewise.
16501
12e65f3a 165022008-05-28 Robert Millan <rmh@aybabtu.com>
16503
16504 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
16505 might need to be fatfs to support some firmware implementations
16506 (e.g. OFW or EFI).
16507
23023641 165082008-05-28 Robert Millan <rmh@aybabtu.com>
16509
16510 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
16511 devices.
16512 * util/grub-mkdevicemap.c (get_mmc_disk_name)
16513 (make_device_map): Likewise.
16514
887d2619 165152008-05-20 Bean <bean123ch@gmail.com>
16516
16517 * fs/fshelp.c (grub_fshelp_map_block): New function.
16518 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
16519 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
16520
16521 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
16522 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
16523 (grub_fshelp_journal): New structure.
16524 (grub_fshelp_map_block): New function prototype.
16525 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
16526 (grub_fshelp_map_block): Likewise.
16527
16528 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
16529 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
16530 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
16531 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
16532 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
16533 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
16534 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
16535 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
16536 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
16537 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
16538 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
16539 (grub_ext2_sblock): New members for journal support.
16540 (grub_ext3_journal_header): New structure.
16541 (grub_ext3_journal_revoke_header): Likewise.
16542 (grub_ext3_journal_block_tag): Likewise.
16543 (grub_ext3_journal_sblock): Likewise.
16544 (grub_fshelp_node): New members logfile and journal.
16545 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
16546 grub_fshelp_map_block to get real block number.
16547 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
16548 number.
16549 (grub_ext2_read_inode): Likewise.
16550 (grub_ext3_get_journal): New function.
16551 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
16552 (grub_ext2_close): Release memory used by journal.
16553
16554 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
16555 (REISERFS_MAGIC_DESC_BLOCK): New macro.
16556 (grub_reiserfs_transaction_header): Renamed to
16557 grub_reiserfs_description_block, replace field data with real_blocks.
16558 (grub_reiserfs_commit_block): New structure.
16559 (grub_reiserfs_data): New member journal.
16560 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
16561 number.
16562 (grub_reiserfs_read_symlink): Likewise.
16563 (grub_reiserfs_iterate_dir): Likewise.
16564 (grub_reiserfs_open): Likewise.
16565 (grub_reiserfs_read): Likewise.
16566 (grub_reiserfs_get_journal): New function.
16567 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
16568 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
16569 using grub_reiserfs_get_journal.
16570 (grub_reiserfs_close): Release memory used by journal.
16571
16572 * fs/affs.c (grub_affs_read_block): Change block type to
16573 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
16574
16575 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
16576
16577 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
16578
16579 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
16580
16581 * fs/udf.c (grub_udf_read_block): Change block type to
16582 grub_disk_addr_t. Use type cast to avoid warning.
16583
16584 * fs/xfs.c (grub_xfs_read_block): Likewise.
16585
b7c6bed5 165862008-05-16 Christian Franke <franke@computer.org>
16587
16588 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
16589 to ensure that break with ESC will always work.
16590 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
16591 Remove ESC from keyboard queue.
16592
eedf167f 165932008-05-16 Christian Franke <franke@computer.org>
16594
16595 * util/biosdisk.c: [__CYGWIN__] Add includes.
16596 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
16597 (get_os_disk): Move variable declarations to OS specific
16598 parts to avoid warning.
16599 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
16600 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
16601 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
16602 Cygwin.
16603 * util/getroot.c: [__CYGWIN__] Add includes.
16604 (strip_extra_slashes): Fix "/" case.
16605 [__CYGWIN__] (get_win32_path): New function.
16606 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
16607 [__CYGWIN__] (find_root_device): Disable.
16608 [__CYGWIN__] (get_bootsec_serial): New function.
16609 [__CYGWIN__] (find_cygwin_root_device): Likewise.
16610 [__linux__] (grub_guess_root_device): Add early returns to simplify
16611 structure.
16612 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
16613 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
16614 check for Linux only.
16615
a079699e 166162008-05-15 Bean <bean123ch@gmail.com>
16617
16618 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
16619 keyboard hang problem in apple's intel mac.
16620
1cf4059a 166212008-05-09 Robert Millan <rmh@aybabtu.com>
16622
16623 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
16624 devices.
16625 * util/grub-mkdevicemap.c (get_virtio_disk_name)
16626 (make_device_map): Likewise.
16627 Reported by Aurelien Jarno <aurel32@debian.org>
16628
ed759390 166292008-05-07 Ian Campbell <ijc@hellion.org.uk>
16630
16631 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
16632 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
16633 (make_device_map): Output entries for xvd type disks.
16634
b56c4eaa 166352008-05-07 Robert Millan <rmh@aybabtu.com>
16636
16637 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
16638 devices.
16639 * util/grub-mkdevicemap.c (get_cciss_disk_name)
16640 (make_device_map): Likewise.
16641 Reported by Roland Dreier <rdreier@cisco.com>
16642
7f8866ed 166432008-05-07 Robert Millan <rmh@aybabtu.com>
16644
16645 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
16646 grub_strstr() call. Correct a few mistakes in failure path handling.
16647
b0346e0f 166482008-05-06 Robert Millan <rmh@aybabtu.com>
16649
16650 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
16651 Do not print a trailing slash (therefore, the root directory is an
16652 empty string).
16653 (convert_system_path_to_grub_path): Do not remove trailing slash
16654 from make_system_path_relative_to_its_root() output.
16655
16656 * util/i386/pc/grub-install.in: Add trailing slash to output from
16657 make_system_path_relative_to_its_root().
16658
6cf12cbd 166592008-05-06 Robert Millan <rmh@aybabtu.com>
16660
16661 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
16662 ensures that output lines aren't intermangled with those sent to
16663 stderr (via grub_util_info()).
16664 * util/grub-probe.c (grub_refresh): Likewise.
16665 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
16666
0fbb3117 166672008-05-05 Christian Franke <franke@computer.org>
16668
16669 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
16670 Add Cygwin device names.
16671 (get_ide_disk_name) [__CYGWIN__]: Likewise.
16672 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
16673 (check_device): Return error instead of success on empty name.
16674 (make_device_map): Move label inside linux specific code to
16675 prevent compiler warning.
16676
8124cdb7 166772008-04-30 Robert Millan <rmh@aybabtu.com>
16678
16679 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
16680 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
16681 first boot option.
16682 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
16683
094c01d0 166842008-04-29 Robert Millan <rmh@aybabtu.com>
16685
16686 * docs/grub.cfg: New file (example GRUB configuration).
16687
f4b1fc02 166882008-04-26 Robert Millan <rmh@aybabtu.com>
16689
329ce2a5 16690 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
16691 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
16692 and `disk/ieee1275/nand.c'.
f4b1fc02 16693
25f16ec1 166942008-04-25 Bean <bean123ch@gmail.com>
f19dbdb7 16695
25f16ec1 16696 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
16697 i386-linuxbios.
16698
16699 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
16700 change the buffer size to 4096 for cdrom device.
16701
16702 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
16703 and nand.mod.
16704 (_linux_mod_SOURCES): New variable.
16705 (_linux_mod_CFLAGS): Likewise.
16706 (_linux_mod_LDFLAGS): Likewise.
16707 (linux_mod_SOURCES): Likewise.
16708 (linux_mod_CFLAGS): Likewise.
16709 (linux_mod_LDFLAGS): Likewise.
16710 (nand_mod_SOURCES): Likewise.
16711 (nand_mod_CFLAGS): Likewise.
16712 (nand_mod_LDFLAGS): Likewise.
16713
16714 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
16715 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
16716 type property. (nand device in olpc don't have this property)
16717
16718 * include/grub/disk.h (grub_disk_dev_id): New macro
16719 GRUB_DISK_DEVICE_NAND_ID.
16720
16721 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
16722 function prototype.
16723 (grub_rescue_cmd_initrd): Likewise.
16724
16725 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
16726 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
16727 ofw_cif_handler and ofw_idt, adjust padding number.
f19dbdb7 16728
25f16ec1 16729 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
16730 GRUB_MACHINE_IEEE1275 is defined.
16731
16732 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
16733 Use NESTED_FUNC_ATTR attribute on the hook parameter.
16734
16735 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
16736 on nested function heap_init.
16737 (grub_upper_mem): New variable for i386-ieee1275.
16738 (grub_get_extended_memory): New function for i386-ieee1275.
16739 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
16740
16741 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
16742 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
16743 property.
f19dbdb7 16744
25f16ec1 16745 * loader/i386/ieee1275/linux.c: New file.
16746
16747 * loader/i386/ieee1275/linux_normal.c: New file.
16748
16749 * disk/ieee1275/nand.c: New file.
16750
e89d61e9 167512008-04-18 Thomas Schwinge <tschwinge@gnu.org>
16752
16753 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
16754 value.
16755 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
16756
602566f6 167572008-04-18 Robert Millan <rmh@aybabtu.com>
16758
16759 Restructures early code path on ieee1275 to unify grub_main() as
16760 the first C function that is executed in every platform.
16761
16762 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
16763 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
16764 cmain().
16765 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
16766 * kern/ieee1275/cmain.c (cmain): Rename to ...
16767 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
16768 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
16769 at the beginning.
16770
57490c2b 167712008-04-18 Robert Millan <rmh@aybabtu.com>
16772
16773 * util/update-grub.in: Fix syntax error when setting
16774 `GRUB_PRELOAD_MODULES'.
16775 Reported by Stephane Chazelas <stephane@artesyncp.com>
16776
1977517d 167772008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
16778
16779 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
16780 section into account, newer toolchains generate unique build ids
16781 * configure.ac: remove the test for --build-id=none acceptance,
e0c5dacb 16782 we want build ids to be preserved
1977517d 16783 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
16784 far from other sections don't cause the raw binary images grow
16785 size
16786
bfb1f1a2 167872008-04-15 Robert Millan <rmh@aybabtu.com>
16788
16789 * disk/lvm.c: Update copyright year.
16790 * kern/misc.c: Likewise.
16791
01979850 167922008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
16793
16794 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
f19dbdb7 16795 there is no memory left for physical volume name.
01979850 16796
0a1150e2 167972008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
16798
16799 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
16800 volume name mapping to support bigger than 9 character names properly.
16801
82ead3fe 168022008-04-13 Robert Millan <rmh@aybabtu.com>
16803
16804 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
16805 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
16806
e54a72f5 168072008-04-13 Christian Franke <franke@computer.org>
16808
16809 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
16810 to create a floppy emulation boot CD when non emulation mode
16811 does not work.
16812 Enable Joliet CD filesystem extension.
16813
9fe86034 168142008-04-13 Robert Millan <rmh@aybabtu.com>
16815
16816 * kern/misc.c (grub_strncat): Fix off-by-one error.
16817 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
16818
16819 * kern/env.c (grub_env_context_close): Clear current context, not
16820 previous one.
16821 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
16822
16823 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
16824
7ceeee39 168252008-04-13 Robert Millan <rmh@aybabtu.com>
16826
16827 Improve robustness when handling LVM.
16828
16829 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
f19dbdb7 16830 (and leave `*p' unmodified).
7ceeee39 16831 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
16832 through it.
16833 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
16834 iterating through it.
16835 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
16836 through it.
fe6b695a 16837 (grub_lvm_scan_device): Check the return value (and fail gracefully
7ceeee39 16838 when due) on each grub_lvm_getvalue() or grub_strstr() call.
16839 Don't assume `vg->pvs != NULL' when iterating through it.
16840
58cd3d85 168412008-04-13 Robert Millan <rmh@aybabtu.com>
16842
16843 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
16844 * genmk.rb (partmap): New variable.
16845 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
16846 (#{partmap}): New target rule.
16847 * genpartmaplist.sh: New file.
16848 * Makefile.in (pkglib_DATA): Add partmap.lst.
16849 (partmap.lst): New target rule.
16850 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
16851 modules (including all partition maps), instead of preloading them.
16852
78b51059 168532007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
16854
16855 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
16856 `linux-boot-prober' (if installed) to detect other operating
16857 systems which are installed on the computer and add them to
16858 the boot menu.
16859 * conf/common.rmk: Build and install 30_os-prober.
16860
a91627b4 168612008-04-12 Robert Millan <rmh@aybabtu.com>
16862
16863 * kern/powerpc/ieee1275/init.c: Move from here ...
16864 * kern/ieee1275/init.c: ... to here. Update all users.
16865
16866 * kern/powerpc/ieee1275/cmain.c: Move from here ...
16867 * kern/ieee1275/cmain.c: ... to here. Update all users.
16868
16869 * kern/powerpc/ieee1275/openfw.c: Move from here ...
16870 * kern/ieee1275/openfw.c: ... to here. Update all users.
16871
16872 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
16873 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
16874
322562ea 168752008-04-10 Pavel Roskin <proski@gnu.org>
16876
16877 * configure.ac: Always use "_cv_" in cache variables for
16878 compatibility with Autoconf 2.62.
16879
a02a73c5 168802008-04-07 Robert Millan <rmh@aybabtu.com>
16881
16882 Revert grub/machine/init.h addition by Pavel (since it breaks on
16883 i386-ieee1275 and others):
16884 * util/i386/pc/misc.c: Remove grub/machine/init.h.
16885 * util/powerpc/ieee1275/misc.c: Likewise.
16886
25c024b1 168872008-04-07 Robert Millan <rmh@aybabtu.com>
16888
16889 * util/grub-probe.c (probe): Improve error message.
16890
3cbd2f98 168912008-04-07 Robert Millan <rmh@aybabtu.com>
16892
16893 * util/biosdisk.c (read_device_map): Skip devices that don't exist
16894 (this prevents the presence of a bogus entry from ruining the whole
16895 thing).
16896
87a297bf 168972008-04-06 Pavel Roskin <proski@gnu.org>
16898
36747a62 16899 * util/biosdisk.c: Include grub/util/biosdisk.h.
16900 * util/grub-fstest.c (execute_command): Make static.
16901 * util/grub-mkdevicemap.c (check_device): Likewise.
16902 * util/i386/pc/misc.c: Include grub/machine/init.h.
16903 * util/powerpc/ieee1275/misc.c: Likewise.
16904 * util/lvm.c: Include grub/util/lvm.h.
16905 * util/misc.c: Include grub/kernel.h, grub/misc.h and
16906 grub/cache.h.
16907 * util/raid.c: Include grub/util/raid.h.
16908 (grub_util_getdiskname): Make static.
16909
87a297bf 16910 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
16911 grub_hostfs_fini(), as they are called from grub_init_all() and
16912 grub_fini_all() respectively. This fixes an infinite loop in
16913 grub-fstest due to double registration of hostfs.
16914 Reported by Christian Franke <Christian.Franke@t-online.de>
16915
f6ce7629 169162008-04-05 Pavel Roskin <proski@gnu.org>
16917
16918 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
16919 all 8 functions. Otherwise, probe function 0 only.
16920
070e49e4 169212008-04-04 Pavel Roskin <proski@gnu.org>
16922
8b088a4c 16923 * commands/lspci.c (grub_lspci_iter): Print the bus number
16924 correctly.
16925
4f657021 16926 * commands/lspci.c (grub_pci_classes): Fix typos.
16927 (grub_lspci_iter): Don't print func twice. Print vendor ID
16928 before device ID, as it's normally done.
16929
070e49e4 16930 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
16931 Fix signedness warnings.
16932 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
16933 Likewise.
16934 * util/ieee1275/get_disk_name.c: Include config.h so that
16935 _GNU_SOURCE is defined and getline() is declared. Mark an
16936 unused argument as such. Fix a signedness warning.
16937
ba7328dc 169382008-04-02 Pavel Roskin <proski@gnu.org>
16939
26887f22 16940 * genkernsyms.sh.in: Use more robust assignments for CC and
16941 srcdir. Quote srcdir.
16942 * gensymlist.sh.in: Likewise. Assert at the compile time that
16943 the symbol table is not empty.
16944
ba7328dc 16945 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
16946 * fs/cpio.c (grub_cpio_read): Likewise.
16947
0f582c6b 169482008-04-01 Pavel Roskin <proski@gnu.org>
16949
4b6e1995 16950 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
16951 * disk/host.c (grub_host_open): Likewise.
16952 * disk/loopback.c (grub_loopback_open): Likewise.
16953 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
16954 disk->id as in disk/host.c, not a multi-character constant.
16955
828a2768 16956 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
16957 later is obsolete, potentially dangerous and sets a bad example.
16958 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
16959 * util/misc.c (grub_util_get_image_size): Likewise.
16960
2bb4fb47 16961 * disk/loopback.c (options): Improve help for "--partitions".
16962
0f582c6b 16963 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
16964 options to align them with the short options, e.g. "echo -e".
16965
a33224e0 169662008-03-31 Bean <bean123ch@gmail.com>
16967
16968 * video/reader/png.c (grub_png_data): New member is_16bit and
16969 image_data.
16970 (grub_png_decode_image_header): Detect 16 bit png image.
16971 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
16972 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
16973 (grub_video_reader_png): Release memory occupied by image_data.
16974
16975 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
16976 4096 bytes.
16977 (grub_nfs_mount): Skip the test for sector per cluster.
16978
16979 * include/grub/ntfs.h (MAX_SPC): Removed.
16980
86cb4f54 169812008-03-31 Bean <bean123ch@gmail.com>
16982
16983 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
16984 (grub_probe_SOURCES): Add fs/afs.c.
16985 (grub_fstest_SOURCES): Likewise.
16986 (afs_mod_SOURCES): New variable.
16987 (afs_mod_CFLAGS): Likewise.
16988 (afs_mod_LDFLAGS): Likewise.
16989
16990 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
16991 (grub_emu_SOURCES): Likewise.
16992
16993 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
16994
16995 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
16996
16997 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
16998
16999 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
17000
17001 * fs/afs.c: New file.
17002
17c74c21 170032008-03-30 Pavel Roskin <proski@gnu.org>
17004
4cb68e89 17005 * disk/host.c: Include grub/misc.h to fix a warning.
17006 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
17007 warnings about implicit declarations.
17008
8790bb04 17009 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
17010 variable.
17011 * include/grub/i386/loader.h: Change declaration of
17012 grub_linux_boot() to match what grub_loader_set() expects.
17013 * util/getroot.c (grub_guess_root_device): Return const char* to
17014 fix a warning.
17015 * util/grub-probe.c (probe): Fix a warning about uninitialized
17016 abstraction_name variable.
17017 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
17018 second argument as unused to fix a warning.
17019
9a3f3296 17020 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
17021 missing grub_error() call.
17022
0ecef90d 17023 * util/update-grub_lib.in: Define datarootdir, since Autoconf
17024 2.60 and newer uses it to define datadir.
17025
0bf6d401 17026 * commands/sleep.c: Fix warning about implicit declaration.
17027 * disk/memdisk.c: Likewise.
17028 * loader/aout.c: Likewise.
17029 * loader/i386/bsd_normal.c: Likewise.
17030 * util/grub-probe.c: Likewise.
17031
7cdacf97 17032 * commands/i386/cpuid.c (has_longmode): Make static.
17033 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
17034 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
17035
17c74c21 17036 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
17037 GDT. This is more robust, as %ds can change.
17038 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
17039 calling real_to_prot().
17040 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
17041
80a3e68b 170422008-03-28 Pavel Roskin <proski@gnu.org>
17043
17044 * kern/i386/pc/startup.S: Assert that uncompressed functions
17045 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
17046 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
17047 code, as they push parts of the code (error handlers) beyond
17048 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
17049 code as correctness and size.
17050
77bcd272 170512008-03-28 Pavel Roskin <proski@gnu.org>
17052
17053 * kern/i386/pc/startup.S
17054 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
17055 data block address to the real mode, keep offset minimal. This
17056 works around a bug in AWARD BIOS on old Athlon systems, which
17057 makes CD detection hang.
17058
c5dfd43b 170592008-03-26 Pavel Roskin <proski@gnu.org>
17060
17061 * normal/color.c (grub_parse_color_name_pair): Make `name' a
17062 const.
17063 * include/grub/normal.h: Add grub_parse_color_name_pair()
17064 declaration.
17065
bf962df2 170662008-03-24 Bean <bean123ch@gmail.com>
17067
17068 * disk/i386/pc/biosdisk.c (cd_start): Removed.
17069 (cd_count): Removed.
17070 (cd_drive): New variable.
17071 (grub_biosdisk_get_drive): Don't check for (cdN) device.
17072 (grub_biosdisk_call_hook): Likewise.
17073 (grub_biosdisk_iterate): Change cdrom detection method.
17074 (grub_biosdisk_open): Replace cd_start with cd_drive.
17075 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
17076 detect cdrom device.
17077
17078 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
17079 Removed.
17080 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
17081 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
17082 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
17083 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
17084 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
17085 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
17086 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
17087 (grub_biosdisk_cdrp): New structure.
17088 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
17089
17090 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
17091
17092 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
17093 device.
17094
17095 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
17096 New function.
17097
68e7fc7a 170982008-03-20 Robert Millan <rmh@aybabtu.com>
17099
17100 Remove 2 TiB limit in ata.mod.
17101 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
17102 (grub_ata_dumpinfo): Print sector count with 0x%llx.
17103 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
17104 grub_uint64_t instead of grub_uint32_t.
17105
38ad2cf5 171062008-03-05 Bean <bean123ch@gmail.com>
17107
17108 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
17109 (grub_multiboot): Set boot device.
17110
17111 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
17112
2b89344e 171132008-03-02 Bean <bean123ch@gmail.com>
17114
17115 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
17116 symlink_buffer.
17117
87a95d1f 171182008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
17119
17120 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
17121 texinfo.tex.
17122
17123 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
17124 modified.
17125
17126 * docs/fdl.texi: New file.
f19dbdb7 17127
87a95d1f 17128 * docs/mdate-sh: New file. Copied from gnulib.
17129 * docs/texinfo.tex: Likewise.
17130
17131 * config.guess: Updated from gnulib.
17132 * install-sh: Likewise.
17133
7dc15d8e 171342008-02-28 Robert Millan <rmh@aybabtu.com>
17135
17136 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
17137 (aout_mod_SOURCES): New variable.
17138 (aout_mod_CFLAGS): Likewise.
17139 (aout_mod_LDFLAGS): Likewise.
17140
17141 * conf/i386-ieee1275.rmk: Likewise.
17142
b00ab696 171432008-02-28 Robert Millan <rmh@aybabtu.com>
17144
17145 * util/update-grub.in: Reorganise terminal validity check. Accept
17146 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
17147 Based on suggestion by Franklin PIAT.
17148
79ca2d78 171492008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
17150
17151 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
17152 function.
17153 * util/getroot.c (grub_util_check_block_device): New function that
17154 returns the given argument if it is a block device and returns NULL else.
17155 * util/grub-probe.c (argument_is_device): New variable.
17156 (probe): Promote device_name from a variable to an argument. Receive
17157 device_name from grub_util_check_block_device() if path is NULL and from
17158 grub_guess_root_device() else. Do not free() device_name anymore.
f19dbdb7 17159 (options): Introduce new parameter '-d, --device'.
79ca2d78 17160 (main): Add description of the new parameter to the help screen.
17161 Rename path variable to argument. Set argument_is_device if the '-d'
17162 option is given. Pass argument to probe() depending on
17163 argument_is_device.
17164
0d16e571 171652008-02-24 Bean <bean123ch@gmail.com>
17166
17167 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
17168 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
17169 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
17170 (GRUB_ISO9660_VOLDESC_PART): Likewise.
17171 (GRUB_ISO9660_VOLDESC_END): Likewise.
17172 (grub_iso9660_primary_voldesc): New member escape.
17173 (grub_iso9660_data): New member joliet.
17174 (grub_iso9660_convert_string): New function.
17175 (grub_iso9660_mount): Detect joliet extension.
17176 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
17177 (grub_iso9660_iso9660_label): Likewise.
17178
17179 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
17180 (grub_setup_SOURCES): Add fs/udf.c.
17181 (grub_fstest_SOURCES): Likewise.
17182 (udf_mod_SOURCES): New variable.
17183 (udf_mod_CFLAGS): Likewise.
17184 (udf_mod_LDFLAGS): Likewise.
17185
17186 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
17187 (grub_emu_SOURCES): Likewise.
17188
17189 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
17190
17191 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
17192
17193 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
17194
17195 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
17196
17197 * fs/udf.c: New file.
17198
8a594a17 171992008-02-24 Robert Millan <rmh@aybabtu.com>
17200
17201 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
17202 (normal/lexer.c_DEPENDENCIES): New variables.
17203 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
17204 (normal/lexer.c_DEPENDENCIES): Likewise.
17205 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
17206 (normal/lexer.c_DEPENDENCIES): Likewise.
17207 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
17208 (normal/lexer.c_DEPENDENCIES): Likewise.
17209 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
17210 (normal/lexer.c_DEPENDENCIES): Likewise.
17211 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
17212 (normal/lexer.c_DEPENDENCIES): Likewise.
17213
2dc33c03 172142008-02-23 Robert Millan <rmh@aybabtu.com>
17215
17216 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
17217 since they were intended to be in hex. This didn't break previously
17218 because of a bug in gpt_partition_map_iterate() (see below).
17219
17220 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
17221 when checking the validity of GPT header.
17222 Remove `partno', since it always provides the same information as `i'.
17223
f6f4cfb0 172242008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
17225
17226 * include/grub/efi/time.h: Fix a wrong comment.
17227
79ff665f 172282008-02-19 Pavel Roskin <proski@gnu.org>
17229
17230 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
17231 message.
17232
d38e24c2 172332008-02-19 Bean <bean123ch@gmail.com>
17234
17235 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
17236 (aout_mod_SOURCES): New variable.
17237 (aout_mod_CFLAGS): Likewise.
17238 (aout_mod_LDFLAGS): Likewise.
17239 (_bsd_mod_SOURCES): New variable.
17240 (_bsd_mod_CFLAGS): Likewise.
17241 (_bsd_mod_LDFLAGS): Likewise.
17242 (bsd_mod_SOURCES): New variable.
17243 (bsd_mod_CFLAGS): Likewise.
17244 (bsd_mod_LDFLAGS): Likewise.
17245
17246 * include/grub/aout.h: New file.
17247
17248 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
17249
17250 * include/grub/i386/bsd.h: New file.
17251
17252 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
17253 to make it public.
17254
17255 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
17256 function is called, so that it's possible to change it inside the hook.
17257 (grub_elf64_load): Likewise.
17258 (grub_elf_file): Don't close the file if elf header is not found.
17259 (grub_elf_close): Close the file if grub_elf_file fails (The new
17260 grub_elf_file won't close it).
17261 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
17262 (grub_elf64_size): Likewise.
17263
17264 * kern/i386/loader.S (grub_unix_real_boot): New function.
17265
17266 * loader/aout.c: New file.
17267
17268 * loader/i386/bsd.c: New file.
17269
17270 * loader/i386/bsd_normal.c: New file.
17271
17272 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
17273
17274 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
fe987087 17275 can test other formats.
d38e24c2 17276
b93bdb0f 172772008-02-19 Robert Millan <rmh@aybabtu.com>
17278
17279 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
17280 (grub_gpt_partition_type_empty): Redefine with macro from
17281 `<grub/gpt_partition.h>'.
17282 (gpt_partition_map_iterate): Adjust partition type comparison.
17283
17284 Export `entry' as partmap-specific `part.data' struct.
17285 (grub_gpt_header, grub_gpt_partentry): Move from here ...
17286
17287 * include/grub/gpt_partition.h (grub_gpt_header)
17288 (grub_gpt_partentry): ... to here (new file).
17289
17290 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
17291
17292 (grub_gpt_partition_type_bios_boot): New const variable, defined
17293 with macro from `<grub/gpt_partition.h>'.
17294
17295 (setup): Replace `first_start' with `embed_region', which keeps
17296 track of the embed region (and is partmap-agnostic).
17297
17298 Replace find_first_partition_start() with find_usable_region(),
17299 which finds a usable region for embedding using partmap-specific
17300 knowledge (supports PC/MSDOS and GPT).
17301
17302 Fix all assumptions that the embed region start at sector 1, using
17303 `embed_region.start' from now on. Similarly, use `embed_region.end'
17304 rather than `first_start' to calculate available size.
17305
17306 In grub_util_info() message, replace "into after the MBR" with an
17307 indication of the specific sector our embed region starts at.
17308
66cb40f6 173092008-02-19 Robert Millan <rmh@aybabtu.com>
17310
17311 * DISTLIST: Replace `commands/ieee1275/halt.c' and
17312 `commands/ieee1275/reboot.c' with `commands/halt.c' and
17313 `commands/reboot.c'.
17314 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
17315 (halt_mod_SOURCES): Likewise.
17316 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
17317 (halt_mod_SOURCES): Likewise.
17318
b7202015 173192008-02-17 Christian Franke <franke@computer.org>
17320
17321 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
17322
32b0fc49 173232008-02-17 Robert Millan <rmh@aybabtu.com>
17324
17325 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
17326 set `first_start' to 0 for non-PC/MSDOS partition maps.
17327
aca63502 173282008-02-16 Robert Millan <rmh@aybabtu.com>
17329
17330 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
17331 do not assume partition map is PC/MSDOS before performing checks that
17332 are specific to that layout.
17333
0de8be86 173342008-02-13 Robert Millan <rmh@aybabtu.com>
17335
17336 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
17337 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
17338 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
17339
c3db8364 173402008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
17341
17342 * configure.ac: Only a cosmetic change on the handling of
17343 -fno-stack-protector.
17344
f714229e 173452008-02-12 Alexandre Boeglin <alex@boeglin.org>
17346
c3db8364 17347 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
17348 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
17349 reboot.c.
f714229e 17350 (grub_install_SOURCES): Add halt.mod and reboot.mod.
17351 (halt_mod_SOURCES): New variable.
17352 (halt_mod_CFLAGS): Likewise.
17353 (halt_mod_LDFLAGS): Likewise.
17354 (reboot_mod_SOURCES): Likewise.
17355 (reboot_mod_CFLAGS): Likewise.
17356 (reboot_mod_LDFLAGS): Likewise.
17357
c3db8364 17358 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
17359 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
17360 reboot.c.
f714229e 17361 (halt_mod_SOURCES): Likewise.
17362 (reboot_mod_SOURCES): Likewise.
17363
c3db8364 17364 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
17365 commands/i386/pc/reboot.c by commands/reboot.c.
f714229e 17366 (reboot_mod_SOURCES): Likewise.
17367
17368 * commands/i386/pc/reboot.c: merge this file ...
17369
17370 * commands/ieee1275/reboot.c: ... and this file ...
17371
17372 * commands/reboot.c: ... to this file.
c3db8364 17373 Add some precompiler directive to include the correct header for
17374 each machine.
f714229e 17375
17376 * commands/ieee1275/halt.c: move this file ...
17377
17378 * commands/halt.c: ... to here.
c3db8364 17379 Add some precompiler directive to include the correct header for
17380 each machine.
f714229e 17381
17382 * include/grub/efi/efi.h (grub_reboot): New function declaration.
17383 (grub_halt): Likewise.
17384
17385 * kern/efi/efi.c (grub_reboot): New function.
17386 (grub_halt): Likewise.
17387
c74493e0 173882008-02-12 Robert Millan <rmh@aybabtu.com>
17389
17390 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
17391 /dev (like it is done for /dev/mapper). This doesn't provide support
17392 for EVMS, but at least it is now easy to identify the problem when it
17393 arises.
17394
d0db4b04 173952008-02-11 Robert Millan <rmh@aybabtu.com>
17396
17397 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
17398 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
17399 comparing it with -1, not 0.
17400
bf748642 174012008-02-10 Robert Millan <rmh@aybabtu.com>
17402
17403 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
17404 `disk/lvm.c'.
17405 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
17406 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
17407
17408 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
17409 `disk/lvm.c' to the end of the list.
17410 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
17411 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
17412
b5db202a 174132008-02-10 Robert Millan <rmh@aybabtu.com>
17414
17415 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
17416 grub_print_error() instead. This will let user know why we're entering
17417 rescue mode.
17418 Based on suggestions from Sam Morris.
17419
83abee31 174202008-02-10 Alexandre Boeglin <alex@boeglin.org>
17421
17422 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
17423 on remaining N args, instead of "--" arg N times.
17424
78d5a08b 174252008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
17426
17427 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
17428 (fill_with_default_glyph): Changed to use unknown_glyph for fill
17429 pattern for unknown glyphs.
17430
68807e5f 174312008-02-09 Robert Millan <rmh@aybabtu.com>
17432
17433 * configure.ac: Probe for `help2man'.
17434 * Makefile.in (builddir): New variable.
17435 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
17436 or otherwise add a few flags/options to it.
17437 (install-local): For every executable utility or script that is
17438 installed, invoke $(HELP2MAN) to install a manpage based on --help
17439 output.
17440
17441 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
17442 that it doesn't prevent --help from working in build tree.
17443
17444 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
17445 with `bug-grub@gnu.org'.
17446 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
17447 * util/update-grub.in (usage): New function.
17448 Implement proper argument check, with support for --help and --version
17449 (as well as existing -y).
17450
174512008-02-09 Christian Franke <franke@computer.org>
0d9ff7f0 17452
17453 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
17454 avoid overwriting previous output.
17455 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
17456
c1962162 174572008-02-09 Robert Millan <rmh@aybabtu.com>
17458
17459 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
17460 drawing the menu.
17461
3dac2e3f 174622008-02-09 Robert Millan <rmh@aybabtu.com>
17463
17464 * commands/sleep.c: New file.
17465 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
17466 (sleep_mod_SOURCES): New variable.
17467 (sleep_mod_CFLAGS): Likewise.
17468 (sleep_mod_LDFLAGS): Likewise.
17469
7a634e08 174702008-02-09 Robert Millan <rmh@aybabtu.com>
17471
17472 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
17473 situations in which we can deduce the RAID size and the superblock
17474 doesn't match it.
17475
b92f0c18 174762008-02-09 Robert Millan <rmh@aybabtu.com>
17477
17478 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
17479 and return a grub_diskmemberlist_t composed of LVM physical volumes.
17480 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
17481
17482 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
17483 and return a grub_diskmemberlist_t composed of physical array members.
17484 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
17485
17486 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
17487 prototype.
17488 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
17489 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
17490 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
17491
17492 * util/grub-probe.c (probe): Move partmap probing code from here ...
17493 (probe_partmap): ... to here.
17494 (probe): Use probe_partmap() once for the disk we're probing, and
17495 additionally, when such disk contains a memberlist() struct member,
17496 once for each disk that is contained in the structure returned by
17497 memberlist().
17498
91a4bf68 174992008-02-09 Robert Millan <rmh@aybabtu.com>
17500
17501 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
17502 environment variable to 'all' in order to obtain debug output from
17503 non-util/ code.
17504 * util/i386/pc/grub-setup.c (main): Likewise.
17505
a96f9caa 175062008-02-08 Robert Millan <rmh@aybabtu.com>
17507
17508 * disk/raid.c (grub_raid_scan_device): Check for
17509 `array->device[sb.this_disk.number]' rather than for
17510 `array->device[sb.this_disk.number]->name', since the latter is not
fe6b695a 17511 guaranteed to be accessible.
a96f9caa 17512
b37a9222 175132008-02-08 Robert Millan <rmh@aybabtu.com>
17514
17515 * disk/raid.c: Update copyright.
17516 * fs/cpio.c: Likewise.
17517 * include/grub/raid.h: Likewise.
17518 * loader/i386/pc/multiboot.c: Likewise.
17519 * util/hostfs.c: Likewise.
17520
5626aee1 175212008-02-08 Robert Millan <rmh@aybabtu.com>
17522
17523 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
17524 to a grub_disk_t array.
17525 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
17526 `device[x]'.
17527 (grub_raid_scan_device): Replace `device[x].name' accesses with
17528 `device[x]->name'. Simplify initialization of `array->device[x]'.
17529
554f0187 175302008-02-08 Robert Millan <rmh@aybabtu.com>
17531
17532 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
17533 grub_dprintf() calls.
17534 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
17535 error message.
17536
1ec8425d 175372008-02-07 Christian Franke <franke@computer.org>
17538
17539 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
17540 instead of fseek and ftell to support large files.
17541 (grub_hostfs_read): Likewise.
17542
f2156fda 175432008-02-07 Robert Millan <rmh@aybabtu.com>
17544
17545 Patch from Jeroen Dekkers.
17546 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
fe6b695a 17547 failure, since successfully reading all array members might not be
f2156fda 17548 required.
17549
9216e0e7 175502008-02-06 Robert Millan <rmh@aybabtu.com>
17551
17552 * util/grub-probe.c (probe): Simplify partmap probing (with the
17553 assumption that the first word up to the underscore equals to
17554 the module name).
17555
b0dfd29a 175562008-02-06 Christian Franke <franke@computer.org>
17557
17558 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
17559 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
17560 last block of a cpio or tar stream.
17561 Check for "TRAILER!!!" instead of any empty data
17562 block to detect last block of a cpio stream.
17563 (grub_cpio_dir): Fix constness of variable np.
17564 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
17565 cpio or tar trailer is detected. This fixes a crash
17566 on open of a non existing file.
17567
c32865bf 175682008-02-05 Bean <bean123ch@gmail.com>
17569
17570 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
17571 address of entry.
17572 (grub_multiboot_load_elf64): Likewise.
17573 (grub_multiboot): Initialize mbi structure.
17574
17575 * util/grub-fstest.c: Don't include unused header file script.h.
17576
fe6b695a 17577 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
c32865bf 17578 of file.
17579 (grub_fstest_SOURCES): Likewise.
17580
409480b7 175812008-02-05 Robert Millan <rmh@aybabtu.com>
17582
17583 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
17584 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
17585 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
17586 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
17587
17588 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
17589 (translation_table): Replace hardcoded values with macros
17590 provided by `<grub/term.h>'.
17591
17592 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
17593 (keyboard_map): Correct/add a few values, with macros provided
17594 by `<grub/term.h>'.
17595 (keyboard_map_shift): Zero values that don't differ from their
17596 `keyboard_map' equivalents.
17597 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
17598 Discard the second scan code that is always sent by Caps lock.
17599 Only use `keyboard_map_shift' when it provides a non-zero value,
17600 otherwise fallback to `keyboard_map'.
17601
99fadbaa 176022008-02-04 Bean <bean123ch@gmail.com>
17603
17604 * Makefile.in (enable_grub_fstest): New variable.
17605
17606 * conf/common.rmk (grub_fstest_init.lst): New rule.
17607 (grub_fstest_init.h): Likewise.
17608 (grub_fstest_init.c): Likewise.
17609 (util/grub-fstest.c_DEPENDENCIES): New variable.
17610 (grub_fstest_SOURCES): Likewise.
17611
17612 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
17613
17614 * util/grub-fstest.c: New file.
17615
bf567c50 176162008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
17617
17618 Make grub-setup handle a separate root device.
f19dbdb7 17619
bf567c50 17620 * util/i386/pc/grub-setup.c (setup): Always open the root device,
17621 so that the root device can be compared with the destination
17622 device.
17623 When embedding the core image, if the root and destination devices
17624 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
17625 0xFF.
17626 When not embedding, set ROOT_DRIVE to 0xFF.
f19dbdb7 17627
9be6b98b 176282008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
17629
17630 Add support for having a grub directory in a different drive. This
17631 is still only the data handling part.
f19dbdb7 17632
9be6b98b 17633 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
17634 (codestart): Save %dh in GRUB_ROOT_DRIVE.
17635 (grub_root_drive): New variable.
17636
17637 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
17638 instead of GRUB_BOOT_DRIVE to construct a device name. Set
17639 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
17640 as it was.
17641
17642 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
17643
17644 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
17645 macro.
17646 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
17647
17648 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
17649 is bogus, because PXE booting does not specify any drive
17650 correctly.
17651
17652 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
17653 am not sure if this is really correct.
17654
17655 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
17656 is always identical to the boot drive when booting from a CD.
17657
17658 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
17659 longer.
17660 (root_drive): New variable.
17661 (real_start): Unconditionally set %dh to ROOT_DRIVE.
17662 (setup_sectors): Push %dx right after popping it, because %dh will
17663 be modified later.
17664 (copy_buffer): Restore %dx.
17665
e0ca0677 176662008-02-03 Robert Millan <rmh@aybabtu.com>
17667
17668 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
17669 use `cdboot.img' for cdrom images.
17670
3b3f6629 176712008-02-03 Robert Millan <rmh@aybabtu.com>
17672
17673 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
17674 only setup gfxterm when `font' command has succeeded.
17675
d42b3672 176762008-02-03 Robert Millan <rmh@aybabtu.com>
17677
17678 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
17679 (grub_rescue_cmd_multiboot_loader)
17680 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
17681
fa370ea6 176822008-02-03 Pavel Roskin <proski@gnu.org>
17683
e0c5dacb 17684 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
fa370ea6 17685 %edx and %esi from stack only after grub_gate_a20() is called.
17686 grub_gate_a20() clobbers %edx.
17687
f2a76e1d 176882008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
17689
17690 * configure.ac (AC_INIT): Bumped to 1.96.
17691
17692 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
17693 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
17694 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
17695 video/readers/png.c.
17696
90fd32d1 176972008-02-03 Bean <bean123ch@gmail.com>
9be665dd 17698
17699 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
17700 (cdboot_img_SOURCES): New variable.
17701 (cdboot_img_ASFLAGS): New variable.
17702 (cdboot_img_LDFLAGS): New variable.
17703
17704 * boot/i386/pc/cdboot.S: New file.
17705
17706 * disk/i386/pc/biosdisk.c (cd_start): New variable.
17707 (cd_count): Likewise.
17708 (grub_biosdisk_get_drive): Add support for cd device.
17709 (grub_biosdisk_call_hook): Likewise.
17710 (grub_biosdisk_iterate): Likewise.
17711 (grub_biosdisk_open): Likewise.
17712 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
17713 (grub_biosdisk_rw): Support reading from cd device.
17714 (GRUB_MOD_INIT): Iterate cd devices.
17715
17716 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
17717 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
17718 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
17719
17720 * kern/i386/pc/init.c (make_install_device): Check for cd device.
17721
4020aa53 177222008-02-02 Robert Millan <rmh@aybabtu.com>
17723
17724 * commands/read.c: New file.
17725 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
17726 (read_mod_SOURCES): New variable.
17727 (read_mod_CFLAGS): Likewise.
17728 (read_mod_LDFLAGS): Likewise.
17729
e03a1132 177302008-02-02 Robert Millan <rmh@aybabtu.com>
17731
17732 * normal/main.c (grub_normal_execute): Check for `menu->size' when
17733 determining whether menu has to be displayed.
17734
58c69220 177352008-02-02 Marco Gerards <marco@gnu.org>
17736
17737 * bus/pci.c: New file.
17738
17739 * include/grub/pci.h: Likewise.
17740
17741 * include/grub/i386/pc/pci.h: Likewise.
17742
17743 * commands/lspci.c: Likewise.
17744
17745 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
17746 `lspci.mod'.
17747 (pci_mod_SOURCES): New variable.
17748 (pci_mod_CFLAGS): Likewise.
17749 (pci_mod_LDFLAGS): Likewise.
17750 (lspci_mod_SOURCES): Likewise.
17751 (lspci_mod_CFLAGS): Likewise.
f19dbdb7 17752 (lspci_mod_LDFLAGS): Likewise.
58c69220 17753
c004e1b4 177542008-02-02 Bean <bean123ch@gmail.com>
17755
17756 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
17757 (grub_ufs_get_file_block): Fix indirect block calculation problem.
17758
17759 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
17760 (grub_xfs_btree_node): New structure.
17761 (grub_xfs_btree_root): New structure.
17762 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
17763 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
17764 (GRUB_XFS_EXTENT_BLOCK): Likewise.
17765 (GRUB_XFS_EXTENT_SIZE): Likewise.
17766 (grub_xfs_read_block): Support btree format type.
17767 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
17768 Use directory block as basic unit.
17769
17770 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
17771
17772 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
17773 __attribute__ ((__regparm__ (1))).
17774
f95562bf 177752008-02-01 Robert Millan <rmh@aybabtu.com>
17776
17777 Correct a mistake in previous commit.
17778
17779 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
17780 top.
17781 (normal/command.c_DEPENDENCIES): New variable.
17782
7d31f41f 177832008-02-01 Robert Millan <rmh@aybabtu.com>
17784
17785 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
17786 top.
17787 (normal/command.c_DEPENDENCIES): New variable.
17788 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
17789 * conf/i386-ieee1275.rmk: Likewise.
17790 * conf/i386-linuxbios.rmk: Likewise.
17791 * conf/i386-pc.rmk: Likewise.
17792 * conf/sparc64-ieee1275.rmk: Likewise.
17793 * conf/powerpc-ieee1275.rmk: Likewise.
17794 (grub_emu_SOURCES): Add `fs/fshelp.c'.
17795
17796 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
17797
60b6be74 177982008-02-01 Robert Millan <rmh@aybabtu.com>
17799
17800 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
17801 call at beginning of function.
17802
078522ab 178032008-01-31 Pavel Roskin <proski@gnu.org>
17804
17805 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
d2c11005 17806 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
17807 (grub_mkrescue_SOURCES): Likewise.
078522ab 17808 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
17809
ccaa8a5f 178102008-01-30 Robert Millan <rmh@aybabtu.com>
17811
17812 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
17813 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
17814 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
17815 (grub_probe_SOURCES): ... to here.
17816
17817 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
17818 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
17819 * conf/i386-ieee1275.rmk: Likewise.
17820 * conf/i386-linuxbios.rmk: Likewise.
17821 * conf/powerpc-ieee1275.rmk: Likewise.
17822
ae5a9cd7 178232008-01-30 Tristan Gingold <gingold@free.fr>
17824
17825 * kern/rescue.c: Silently accept empty lines.
17826
70bc2ef2 178272008-01-29 Bean <bean123ch@gmail.com>
17828
17829 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
17830 (real_code_2): Code cleanup and change comment style.
17831 (move_memory): Avoid using 32-bit address mode.
17832
6a4d50ea 178332008-01-29 Bean <bean123ch@gmail.com>
17834
17835 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
17836 (png_mod_SOURCES): New variable.
17837 (png_mod_CFLAGS): Likewise.
17838 (png_mod_LDFLAGS): Likewise.
17839
17840 * video/readers/png.c: New file.
17841
11cc30ac 178422008-01-28 Robert Millan <rmh@aybabtu.com>
17843
17844 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
17845 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
17846 `ifndef GRUB_MOD_GAP' hack.
17847 * util/elf/grub-mkimage.c (add_segments): Likewise.
17848
3abc589f 178492008-01-27 Robert Millan <rmh@aybabtu.com>
17850
17851 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
17852 `GRUB_MOD_GAP' for platforms in which it's not defined.
962ca133 17853 * util/elf/grub-mkimage.c (add_segments): Likewise.
3abc589f 17854
e1907778 178552008-01-27 Robert Millan <rmh@aybabtu.com>
17856
17857 Get grub-emu to build again (including parallel builds).
17858
17859 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
17860 Split into ...
17861 (util/grub-emu.c_DEPENDENCIES): ... this, ...
17862 (normal/execute.c_DEPENDENCIES): ... this, ...
17863 (grub-emu_DEPENDENCIES): ... and this.
17864
17865 * conf/i386-efi.rmk: Likewise.
17866 * conf/i386-linuxbios.rmk: Likewise.
17867 * conf/i386-ieee1275.rmk: Likewise.
17868 * conf/powerpc-ieee1275.rmk: Likewise.
17869 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
17870
2216b101 178712008-01-27 Robert Millan <rmh@aybabtu.com>
17872
17873 * NEWS: Add a few items.
17874
f75172d9 178752008-01-27 Robert Millan <rmh@aybabtu.com>
17876
17877 Fix parallel builds with grub-emu. Based on earlier commit for
17878 grub-probe and grub-setup.
17879
17880 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
17881 (util/grub-emu.c_DEPENDENCIES): ... this.
17882 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
17883 (util/grub-emu.c_DEPENDENCIES): ... this.
17884 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
17885 (util/grub-emu.c_DEPENDENCIES): ... this.
17886 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
17887 (util/grub-emu.c_DEPENDENCIES): ... this.
17888 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
17889 (util/grub-emu.c_DEPENDENCIES): ... this.
17890
3f51de77 178912008-01-27 Pavel Roskin <proski@gnu.org>
17892
17893 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
17894 to create a gap between _end and the modules added to the image
17895 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
17896 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
17897 * util/elf/grub-mkimage.c (add_segments): Likewise.
17898
2033f53e 178992008-01-26 Pavel Roskin <proski@gnu.org>
17900
17901 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
17902 just return an error.
17903
22da1f6f 179042008-01-26 Bean <bean123ch@gmail.com>
17905
17906 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
17907 (grub_reiserfs_get_item): Save offset of the next item.
17908 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
17909
2a9525e6 179102008-01-25 Robert Millan <rmh@aybabtu.com>
17911
17912 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
17913 make all filesystem sources appear together (possibly fixing omissions
17914 while at it).
17915 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
17916 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
17917 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
17918 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
17919
17920 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
17921 add `kern/file.c'.
17922 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
17923 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
17924 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
17925 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
17926
17927 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
17928 (probe): Add a sanity check to make sure of our ability to read
17929 requested files when probing for filesystem type.
17930
17931 * genmk.rb: Update copyright year (2007).
17932
17933 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
17934 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
17935 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
17936 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
17937 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
17938 : Remove function prototypes.
17939
b95f71b5 179402008-01-25 Robert Millan <rmh@aybabtu.com>
17941
17942 Revert my previous commits (based on wrong assumption of how grub_errno
17943 works).
17944
fe6b695a 17945 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
b95f71b5 17946 * kern/file.c (grub_file_open): Likewise.
17947
d08bbb49 179482008-01-24 Pavel Roskin <proski@gnu.org>
17949
17950 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
17951 that hang if GRUB tries to setup colors.
17952 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
17953 colors for firmwares that don't support it.
17954 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
17955 Recognize Open Hack'Ware, set flags to work around its
17956 limitations.
17957
605e36ed 179582008-01-24 Robert Millan <rmh@aybabtu.com>
17959
17960 * kern/file.c (grub_file_open): Do not account previous failures of
17961 unrelated functions when grub_errno is checked for.
17962 Reported by Oleg Strikov.
17963
bac332a1 179642008-01-24 Bean <bean123ch@gmail.com>
17965
17966 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
17967 (grub_ufs_sblock): New member volume name.
17968 (grub_ufs_find_file): Fix string copy bug.
17969 (grub_ufs_label): Implement this function properly.
17970
17971 * fs/hfs.c (grub_hfs_cnid_type): New enum.
17972 (grub_hfs_iterate_records): Use the correct file number for extents
17973 and catalog file. Fix problem in next index calculation.
17974 (grub_hfs_find_node): Replace recursive function call with loop.
17975 (grub_hfs_iterate_dir): Replace recursive function call with loop.
17976
15c80c09 179772008-01-23 Robert Millan <rmh@aybabtu.com>
17978
17979 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
17980 `<grub/symbol.h>' and `<grub/multiboot.h>'.
17981 (grub_multiboot2_real_boot): New function prototype.
17982
17983 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
17984 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
17985
17986 * kern/i386/ieee1275/init.c (grub_os_area_addr)
17987 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
17988
305338fd 179892008-01-23 Robert Millan <rmh@aybabtu.com>
17990
17991 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
17992 #ifdef'ed out grub_printf().
17993
3ea52685 179942008-01-23 Robert Millan <rmh@aybabtu.com>
17995
17996 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
17997 grub_dprintf calls, since they make "debug=all" mode unusable.
17998 (grub_console_checkkey): Likewise.
17999
5882ae4b 180002008-01-23 Robert Millan <rmh@aybabtu.com>
18001
18002 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
18003 `term/i386/pc/at_keyboard.c'.
18004 (pkglib_MODULES): Add `serial.mod'.
18005 (serial_mod_SOURCES): New variable.
18006 (serial_mod_CFLAGS): Likewise.
18007 (serial_mod_LDFLAGS): Likewise.
18008
18009 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
18010 `<grub/powerpc/ieee1275/console.h>'.
18011 (grub_keyboard_controller_init): New function prototype.
18012 (grub_console_checkkey): Likewise.
18013 (grub_console_getkey): Likewise.
18014
18015 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
18016 keyboard on i386.
18017
18018 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
18019 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
18020
06ab5303 180212008-01-23 Robert Millan <rmh@aybabtu.com>
18022
18023 * kern/i386/pc/init.c (make_install_device): When memdisk image is
18024 present, "(memdisk)/boot/grub" becomes the default prefix.
18025
18026 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
18027 a memdisk tarball with all the modules. Add --overlay=DIR option that
18028 allows users to overlay additional files into the image.
18029
dbb475a4 180302008-01-23 Robert Millan <rmh@aybabtu.com>
18031
18032 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
18033 and `machine/memory.h'.
18034 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
18035 (_multiboot_mod_SOURCES): New variable.
18036 (_multiboot_mod_CFLAGS): Likewise.
18037 (_multiboot_mod_LDFLAGS): Likewise.
18038 (multiboot_mod_SOURCES): Likewise.
18039 (multiboot_mod_CFLAGS): Likewise.
18040 (multiboot_mod_LDFLAGS): Likewise.
18041
18042 * include/grub/i386/ieee1275/loader.h: New file.
18043
18044 * include/grub/i386/ieee1275/machine.h: Likewise.
18045
18046 * include/grub/i386/ieee1275/memory.h: Likewise.
18047
18048 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
18049 variable declaration.
18050 (grub_os_area_size): Likewise.
18051
18052 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
18053 (grub_lower_mem, grub_upper_mem): New variables.
18054 (grub_stop_floppy): New function (just to make
18055 grub_multiboot2_real_boot() happy).
18056
18057 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
18058 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
18059 (grub_stop): New function.
18060 Include `"../realmode.S"' and `"../loader.S"'.
18061
18062 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
18063 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
18064
18065 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
18066 rely on grub_multiboot2_real_boot() for final boot.
18067
25638629 180682008-01-22 Robert Millan <rmh@aybabtu.com>
18069
18070 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
18071 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
18072 device that doesn't look like an SD card.
18073 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
18074 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
18075 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
18076 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
18077 found.
18078
9dad816d 180792008-01-22 Robert Millan <rmh@aybabtu.com>
18080
18081 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
18082 avoid claiming over our own code.
18083
34842f2d 180842008-01-22 Bean <bean123ch@gmail.com>
18085
18086 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
18087 (jpeg_mod_SOURCES): New variable.
18088 (jpeg_mod_CFLAGS): Likewise.
18089 (jpeg_mod_LDFLAGS): Likewise.
18090
18091 * video/readers/jpeg.c : New file.
18092
44023a28 180932008-01-22 Bean <bean123ch@gmail.com>
18094
18095 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
18096 there are no more items.
18097
bc2d8ac6 180982008-01-21 Robert Millan <rmh@aybabtu.com>
18099
18100 * kern/mm.c (grub_mm_init_region): Improve debug message.
18101
261bd4bc 181022008-01-21 Robert Millan <rmh@aybabtu.com>
18103
18104 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
18105 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
18106 address.
18107 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
18108 a C macro.
18109 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
18110 Indicates start of upper memory.
18111 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
18112 (generate_image): Abort when image size is big enough to corrupt
18113 upper memory.
18114
18115 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
18116 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
18117 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
18118 instead of hardcoding 0xA0000.
18119 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
18120 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
18121 instead of hardcoding 0xA0000.
18122
f970b55e 181232008-01-21 Robert Millan <rmh@aybabtu.com>
18124
18125 * disk/memdisk.c (memdisk_size): New variable.
18126 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
18127 `memdisk_size'.
18128 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
18129 image to dynamic memory.
18130 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
18131 `memdisk_size'. Free memdisk block.
18132
1a8b0526 181332008-01-21 Robert Millan <rmh@aybabtu.com>
18134
18135 Fix detection of very small filesystems (like tar).
18136
18137 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
18138 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
18139 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
18140 a problem with this disk).
18141
6e9b4aab 181422008-01-21 Robert Millan <rmh@aybabtu.com>
18143
18144 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
18145 on grub_biosdisk_rw_standard() error.
18146
0d8837b2 181472008-01-21 Robert Millan <rmh@aybabtu.com>
18148
18149 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
18150 recent changes.
18151 * kern/elf.c: Likewise.
18152 * kern/ieee1275/ieee1275.c: Likewise.
18153 * kern/powerpc/ieee1275/openfw.c: Likewise.
18154 * term/ieee1275/ofconsole.c: Likewise.
18155
ffd36e34 181562008-01-21 Robert Millan <rmh@aybabtu.com>
18157
18158 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
18159
3f0093d0 18160 * include/grub/kernel.h (grub_arch_memdisk_addr)
18161 (grub_arch_memdisk_size): Moved from here ...
ffd36e34 18162
3f0093d0 18163 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
18164 (grub_arch_memdisk_size): ... to here.
ffd36e34 18165
6c391b21 181662008-01-21 Robert Millan <rmh@aybabtu.com>
18167
18168 Mostly based on bugfix from Bean.
18169
18170 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
18171 attribute with hook() parameter.
18172 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
18173 declaration.
18174 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
18175 attribute with hook() parameter.
18176 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
18177 declaration.
18178
55a581dc 181792008-01-21 Robert Millan <rmh@aybabtu.com>
18180
18181 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
18182 (pkglib_MODULES): Add `memdisk.mod'.
18183 (memdisk_mod_SOURCES): New variable.
18184 (memdisk_mod_CFLAGS): Likewise.
18185 (memdisk_mod_LDFLAGS): Likewise.
18186
18187 * disk/memdisk.c: New file.
18188
18189 * include/grub/disk.h (grub_disk_dev_id): Add
18190 `GRUB_DISK_DEVICE_MEMDISK_ID'.
18191
18192 * include/grub/i386/pc/kernel.h
18193 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
18194 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
18195 (grub_kernel_image_size): New variable declaration.
18196 (grub_total_module_size): Likewise.
18197 (grub_memdisk_image_size): Likewise.
18198
18199 * include/grub/i386/pc/memory.h
18200 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
18201
18202 * include/grub/kernel.h: Include `<grub/symbol.h>'.
18203 (grub_arch_memdisk_addr): New variable declaration.
18204 (grub_arch_memdisk_size): Likewise.
18205
18206 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
18207 (grub_arch_memdisk_size): Likewise.
18208
18209 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
18210 (codestart): Replace hardcoded `0x100000' with
18211 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
18212
18213 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
18214 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
18215 not NULL, append the contents of the file it refers to, at the end of
18216 the compressed kernel image. Initialize `grub_memdisk_image_size'
18217 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
18218 (options): Add "memdisk"|'m' option.
18219 (main): Parse --memdisk|-m option, and pass user-provided path as
18220 parameter to generate_image().
18221
3d7f54c9 182222008-01-20 Robert Millan <rmh@aybabtu.com>
18223
18224 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
18225 grub_dprintf() calls from here ...
18226 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
18227
0bf74728 182282008-01-20 Robert Millan <rmh@aybabtu.com>
18229
18230 Fix detection of "real mode" when /options/real-mode? doesn't exist.
18231
18232 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
18233 declaration.
18234 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
18235 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
18236 `GRUB_IEEE1275_FLAG_REAL_MODE'.
fe6b695a 18237 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
0bf74728 18238 property).
18239 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
18240 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
18241
33bf70a7 182422008-01-19 Robert Millan <rmh@aybabtu.com>
18243
fe6b695a 18244 Get rid of confusing function (superseded by
33bf70a7 18245 `grub_ieee1275_get_integer_property')
18246 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
18247 prototype.
18248 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
18249 function.
18250 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
18251 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
fe987087 18252 in native endianness from grub_ieee1275_get_integer_property().
33bf70a7 18253
e2da7d26 182542008-01-19 Robert Millan <rmh@aybabtu.com>
18255
18256 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
18257 command after "shut-down", since implementations differ on which
18258 the command for halt is.
18259
59f1fd8d 182602008-01-19 Robert Millan <rmh@aybabtu.com>
18261
18262 * include/grub/i386/linuxbios/console.h: Add header protection.
18263 (grub_keyboard_controller_init): New function prototype.
18264 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
18265 (KEYBOARD_COMMAND_READ): Likewise.
18266 (KEYBOARD_COMMAND_WRITE): Likewise.
18267 (KEYBOARD_SCANCODE_SET1): Likewise.
18268 (grub_keyboard_controller_write): New function.
18269 (grub_keyboard_controller_read): Likewise.
18270 (grub_keyboard_controller_init): Likewise.
18271
18272 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
18273 (grub_console_init): On coreboot/LinuxBIOS, call
18274 grub_keyboard_controller_init().
18275
5f5a7c15 182762008-01-19 Robert Millan <rmh@aybabtu.com>
18277
18278 PowerPC changes provided by Pavel Roskin.
18279
18280 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
18281 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
18282 don't rely on cmain() doing it.
18283 * kern/i386/ieee1275/startup.S (_start): Store %eax in
18284 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
18285
1210e168 182862008-01-16 Robert Millan <rmh@aybabtu.com>
18287
18288 * include/grub/i386/linuxbios/memory.h
18289 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
18290 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
18291 receive `table_header' as argument. Instead, probe for it in the
18292 known memory ranges where it can be present.
18293 (grub_available_iterate): Do not pass a fixed `table_header' address
18294 to grub_linuxbios_table_iterate().
18295
3d04eab8 182962008-01-15 Robert Millan <rmh@aybabtu.com>
18297
18298 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
18299 * conf/i386-ieee1275.rmk: New file.
18300 * include/grub/i386/ieee1275/console.h: Likewise.
18301 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
18302 * include/grub/i386/ieee1275/kernel.h: Likewise.
18303 * include/grub/i386/ieee1275/time.h: Likewise.
18304 * kern/i386/ieee1275/init.c: Likewise.
18305 * kern/i386/ieee1275/startup.S: Likewise.
18306
d1bc1b73 183072008-01-15 Robert Millan <rmh@aybabtu.com>
18308
18309 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
18310 when pointers are 32-bit (but still do set it to one when they are
18311 64-bit).
18312
66a65807 183132008-01-15 Robert Millan <rmh@aybabtu.com>
18314
18315 * include/grub/ieee1275/ieee1275.h
18316 (grub_ieee1275_get_integer_property): New function prototype.
18317
18318 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
18319 (grub_ieee1275_get_integer_property): New function. Wraps around
fe987087 18320 grub_ieee1275_get_property() to handle endianness.
66a65807 18321
18322 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
18323 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
fe6b695a 18324 where appropriate.
66a65807 18325 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
18326 (grub_map): Likewise.
18327 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
18328
a83ccafd 183292008-01-15 Bean <bean123ch@gmail.com>
18330
18331 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
18332 (grub_script_execute_cmdline): Reset grub_errno.
18333
18334 * normal/main.c (read_config_file): Reset grub_errno.
18335
18336 * normal/parse.y (script_init): New.
18337 (script): Move function and menuentry here.
18338 (delimiter): New.
18339 (command): Add delimiter at the end of command.
18340 (commands): Adjust to match the new command.
18341 (commandblock): Remove grub_script_lexer_record_start.
f19dbdb7 18342 (menuentry): Add grub_script_lexer_record_start, use the new commands.
a83ccafd 18343 (if): Use the new commands.
18344
18345 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
18346
df6ecfc6 183472008-01-15 Robert Millan <rmh@aybabtu.com>
18348
18349 * normal/menu.c (run_menu): Move timeout message from here ...
18350 (print_timeout): ... to here.
18351 (run_menu): Use print_timeout() once during initial draw to print
18352 the whole message, and again in every clock tick to update only
18353 the number of seconds.
18354
87ae25eb 183552008-01-15 Robert Millan <rmh@aybabtu.com>
18356
18357 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
18358 actual size of `available' from grub_ieee1275_get_property(), and
18359 restrict parsing to that bound.
18360
47bf09a4 183612008-01-15 Christian Franke <franke@computer.org>
18362
18363 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
18364 (argp_program_version): Remove variable.
18365 (argp_program_bug_address): Likewise.
18366 (options): Convert from struct argp_option to struct option.
18367 (struct arguments): Remove.
18368 (parse_opt): Remove.
18369 (usage): New function.
18370 (main): Replace struct args members by simple variables.
18371 Replace argp_parse() by getopt_long().
18372 Add switch to evaluate options.
18373 Add missing "(...)" around root_dev in prefix string.
18374
c86f1469 183752008-01-14 Robert Millan <rmh@aybabtu.com>
18376
18377 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
18378 for grub_ieee1275_exit(), in order to improve portability.
18379
e622c559 183802008-01-14 Robert Millan <rmh@aybabtu.com>
18381
18382 * util/grub.d/10_linux.in (prefix): Define.
18383 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
18384
44cb1ec8 183852008-01-13 Pavel Roskin <proski@gnu.org>
18386
18387 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
18388 grub_errno if no errors have been detected.
18389
1eb8c802 183902008-01-12 Robert Millan <rmh@aybabtu.com>
18391
18392 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
18393 (grub_util_get_dev_abstraction): New function prototype.
18394
18395 * util/getroot.c: Include `<grub/util/getroot.h>'
18396 (grub_util_get_grub_dev): Move detection of abstraction type to ...
18397 (grub_util_get_dev_abstraction): ... here (new function).
18398
18399 * util/grub-probe.c: Convert PRINT_* to an enum. Add
18400 `PRINT_ABSTRACTION'.
18401 (probe): Probe for abstraction type when requested.
18402 (main): Understand `--target=abstraction'.
18403
18404 * util/i386/efi/grub-install.in: Add abstraction module to core
18405 image when it is found to be necessary.
18406 * util/i386/pc/grub-install.in: Likewise.
18407 * util/powerpc/ieee1275/grub-install.in: Likewise.
18408
18409 * util/update-grub_lib.in (font_path): Return system path without
18410 converting to GRUB path.
18411 * util/update-grub.in: Convert system path returned by font_path()
18412 to a GRUB path. Use `grub-probe -t abstraction' to determine what
18413 abstraction module is needed for loading fonts (if any). Export
18414 that as `GRUB_PRELOAD_MODULES'.
18415 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
18416 insmod commands).
18417
52bd3de9 184182008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
18419
18420 Remove some unused code from reiserfs.
f19dbdb7 18421
52bd3de9 18422 * fs/reiserfs.c (struct grub_reiserfs_key)
18423 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
18424 (struct grub_reiserfs_node_body): Removed.
18425 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
18426 Likewise.
18427 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
18428 Likewise.
18429 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
18430 Likewise.
18431 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
18432 Likewise.
18433 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
18434 Likewise.
18435 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
18436 Likewise.
18437 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
18438 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
18439 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
18440
2f80039d 184412008-01-10 Robert Millan <rmh@aybabtu.com>
18442
18443 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
18444 Determines if a file is garbage left by packaging systems, etc.
18445 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
18446 for processing /etc/grub.d scripts.
18447 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
18448 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
18449 as a condition for processing Linux images.
18450
87888032 184512008-01-10 Pavel Roskin <proski@gnu.org>
18452
18453 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
18454 to compile reiserfs.c on PowerPC.
18455
7e54fced 184562008-01-10 Robert Millan <rmh@aybabtu.com>
de9993e0 18457
18458 * kern/device.c (grub_device_iterate): Do not abort device iteration
18459 when one of the devices cannot be opened.
18460 * kern/disk.c (grub_disk_open): Do not account previous failures of
18461 unrelated functions when grub_errno is checked for.
18462
5aa541e6 184632008-01-08 Robert Millan <rmh@aybabtu.com>
18464
18465 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
18466 `! grub_linux_is_bzimage', change order of address comparison to make
18467 it more intuitive, and improve "too big zImage" error message.
18468
7076340d 184692008-01-08 Robert Millan <rmh@aybabtu.com>
18470
18471 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
18472 `$(update-grub_DATA)'.
18473 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
18474 targets.
18475
9ca70333 184762008-01-07 Robert Millan <rmh@aybabtu.com>
18477
18478 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
18479 which instruction is modified by grub-setup during installation
18480 (since it wasn't obvious by only looking at this file).
18481
38ccf575 184822008-01-07 Robert Millan <rmh@aybabtu.com>
18483
18484 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
18485 listing actual TODO items.
18486
f5db4291 184872008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
18488
868967cf 18489 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
18490 correctly.
18491 (grub_reiserfs_get_key_offset): Likewise.
18492 (grub_reiserfs_set_key_offset): Likewise.
18493 (grub_reiserfs_set_key_type): Likewise.
fe6b695a 18494 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
868967cf 18495
18496 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
18497 better to remove the bitfield version completely.
f19dbdb7 18498
868967cf 184992008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
f19dbdb7 18500
f5db4291 18501 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
18502 allocated from the heap, due to the fshelp implementation.
18503 (grub_reiserfs_dir): Free NODE, due to the same reason.
18504
492e6d9d 185052008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
18506
18507 Mostly from Vincent Pelletier:
f19dbdb7 18508
492e6d9d 18509 * fs/reiserfs.c: New file.
f19dbdb7 18510
492e6d9d 18511 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
18512 (reiserfs_mod_SOURCES): New variable.
18513 (reiserfs_mod_CFLAGS): Likewise.
18514 (reiserfs_mod_LDFLAGS): Likewise.
18515
18516 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
18517 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
18518 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
18519 normal/color.c.
18520
9ce3e7c1 185212008-01-06 Robert Millan <rmh@aybabtu.com>
18522
18523 * normal/color.c: Remove `<grub/env.h>'.
18524
f3b58148 185252008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
18526
18527 * include/grub/normal.h: Include <grub/env.h>.
18528
7ac3bcfa 185292008-01-05 Robert Millan <rmh@aybabtu.com>
18530
18531 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
18532 usage example with `(hd0,1)'.
fb358190 18533 Reported by Samuel Thibault.
7ac3bcfa 18534
c8ee99d7 185352008-01-05 Robert Millan <rmh@aybabtu.com>
18536
18537 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
18538 (grub_linux_boot_zimage): Rename to ...
18539 (grub_linux_boot): ... this.
18540 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
18541 (grub_linux_boot_zimage): Conditionalize zImage copy.
18542
18543 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
18544 (grub_linux_boot_bzimage): Remove prototype.
18545 (grub_linux_boot_zimage): Rename to ...
18546 (grub_linux_boot): ... this.
18547
18548 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
18549 (grub_linux_boot): Remove function.
18550
0ece25b1 185512008-01-05 Robert Millan <rmh@aybabtu.com>
18552
18553 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
18554 (grub_env_write_color_highlight): Likewise.
18555 (grub_wait_after_message): Likewise.
18556
18557 * normal/color.c: New file.
18558
18559 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
18560 (normal_mod_DEPENDENCIES): Likewise.
18561
18562 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
18563 (normal_mod_DEPENDENCIES): Likewise.
18564
18565 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
18566 (normal_mod_DEPENDENCIES): Likewise.
18567
18568 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
18569 (normal_mod_DEPENDENCIES): Likewise.
18570
18571 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
18572 for waiting after a message is printed.
18573 * normal/main.c (read_config_file): Likewise.
18574 (grub_normal_init): Register grub_env_write_color_normal() and
18575 grub_env_write_color_highlight() hooks. Mark `color_normal' and
18576 `color_highlight' variables as global.
18577
18578 * normal/menu.c (grub_wait_after_message): New function.
18579 (grub_color_menu_normal): New variable. Replaces ...
18580 (GRUB_COLOR_MENU_NORMAL): ... this macro.
18581 (grub_color_menu_highlight): New variable. Replaces ...
18582 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
18583 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
18584 `GRUB_TERM_COLOR_STANDARD'.
18585 (print_message): Use `grub_setcolorstate' to reload colors. Rename
18586 `normal_code' and `highlight_code' to `old_color_normal' and
18587 `old_color_highlight', respectively.
18588 (grub_menu_init_page): Update colors when drawing the menu, based on
18589 `menu_color_normal' and `menu_color_highlight' variables.
18590 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
18591 a message is printed.
18592
182dd4e5 185932008-01-05 Robert Millan <rmh@aybabtu.com>
18594
18595 * kern/env.c (grub_env_context_open): Propagate hooks for global
18596 variables to new context.
18597
18598 * kern/main.c (grub_set_root_dev): Export `root' variable.
18599
ddf8f6ad 186002008-01-05 Robert Millan <rmh@aybabtu.com>
18601
18602 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
fe6b695a 18603 discs unconditionally, since udev and others have options to provide
ddf8f6ad 18604 them.
18605
d8b43d9b 186062008-01-05 Robert Millan <rmh@aybabtu.com>
18607
18608 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
18609
2bff2de3 186102008-01-04 Christian Franke <franke@computer.org>
18611
18612 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
18613 of eisa_mmap.
18614
97eab917 186152008-01-03 Pavel Roskin <proski@gnu.org>
18616
18617 * kern/i386/linuxbios/init.c: Put "void" to all function
18618 declarations with no arguments.
18619 * kern/powerpc/ieee1275/init.c: Likewise.
18620 * term/i386/pc/at_keyboard.c: Likewise.
18621 * term/i386/pc/vga_text.c: Likewise.
18622 * util/grub-mkdevicemap.c: Likewise.
18623
b9416d00 186242008-01-02 Robert Millan <rmh@aybabtu.com>
18625
18626 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
18627 message when loaded image is out of bounds.
18628 (grub_multiboot_load_elf64): Likewise.
18629
92695df9 186302008-01-02 Pavel Roskin <proski@gnu.org>
18631
18632 * util/grub.d/10_linux.in: Try version without ".old" when
18633 looking for initrd. It's better to use initrd from the newer
18634 kernel of the same version than no initrd at all.
18635
d98d9cad 186362008-01-01 Robert Millan <rmh@aybabtu.com>
18637
18638 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
18639
dbfdce36 186402008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
18641
f19dbdb7 18642 * include/grub/video.h: Added grub_video_unmap_color and
dbfdce36 18643 grub_video_get_active_render_target.
18644 (grub_video_adapter): Added unmap_color and get_active_render_target.
18645
f19dbdb7 18646 * video/video.c: Added grub_video_unmap_color and
dbfdce36 18647 grub_video_get_active_render_target.
18648 (grub_video_get_info): Changed method to accept NULL pointer as an
18649 argument to allow detection of active video adapter.
18650
18651 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
18652 grub_video_vbe_unmap_color_int.
18653 Added grub_video_vbe_unmap_color and
18654 grub_video_vbe_get_active_render_target.
18655 (grub_video_vbe_adapter): Added unmap_color and
18656 get_active_render_target.
18657
f19dbdb7 18658 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
dbfdce36 18659 with grub_video_vbe_unmap_color_int.
18660
18661 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
18662 (DEFAULT_NORMAL_COLOR): Likewise.
18663 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
18664 (DEFAULT_FG_COLOR): Removed.
18665 (DEFAULT_BG_COLOR): Likewise.
18666 (DEFAULT_CURSOR_COLOR): Changed value.
18667 (grub_virtual_screen): Added standard_color_setting,
18668 normal_color_setting, highlight_color_setting and term_color.
18669 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
18670 (bitmap_width): Added.
18671 (bitmap_height): Likewise.
18672 (bitmap): Likewise.
18673 (set_term_color): Likewise.
18674 (grub_virtual_screen_setup): Changed to use new terminal coloring
18675 settings.
18676 (grub_gfxterm_init): Added init for bitmap.
18677 (grub_gfxterm_fini): Added destroy for bitmap.
18678 (redraw_screen_rect): Updated to use background bitmap and new
18679 terminal coloring.
18680 (scroll_up): Added optimization for case when there is no bitmap.
18681 (grub_gfxterm_cls): Fixed to use correct background color.
18682 (grub_virtual_screen_setcolorstate): Changed to use new terminal
18683 coloring.
18684 (grub_virtual_screen_setcolor): Likewise.
18685 (grub_virtual_screen_getcolor): Added.
18686 (grub_gfxterm_background_image_cmd): Likewise.
18687 (grub_video_term): Added setcolor and getcolor.
18688 (MOD_INIT): Added registration of background_image command.
18689 (MOD_TERM): Added unregistration for background_image command.
18690
c3c20931 186912007-12-30 Pavel Roskin <proski@gnu.org>
18692
18693 * loader/multiboot_loader.c: Fix multiboot command
18694 unregistration. Fix all typos in the word "multiboot".
18695
df266716 186962007-12-29 Pavel Roskin <proski@gnu.org>
94239199 18697
18698 * util/grub.d/10_linux.in: Refactor search for initrd. Add
18699 support for initrd names used in Fedora.
18700
fc6e896c 187012007-12-26 Bean <bean123ch@gmail.com>
18702
18703 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
18704 (cpio_mod_SOURCES): New variable.
18705 (cpio_mod_CFLAGS): Likewise.
18706 (cpio_mod_LDFLAGS): Likewise.
18707
18708 * fs/cpio.c: New file.
18709
18710 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
18711
18712 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
18713
18714 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
18715
18716 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18717
533110ad 187182007-12-25 Robert Millan <rmh@aybabtu.com>
18719
18720 * include/grub/term.h (struct grub_term): Add `getcolor' function.
18721 (grub_getcolor): New function.
18722
18723 * kern/term.c (grub_getcolor): New function.
18724 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
18725 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
18726 (print_entry): Set normal and highlight colors to
18727 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
18728 respectively, before printing and restore them to old
18729 values afterwards.
18730 (grub_menu_init_page): Likewise. Fill an additional colored space
18731 that would otherwise be left blank.
18732
18733 * term/efi/console.c (grub_console_getcolor): New function.
18734 (struct grub_console_term.getcolor): New variable.
18735 * term/i386/pc/console.c (grub_console_getcolor): New function.
18736 (struct grub_console_term.getcolor): New variable.
18737 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
18738 (struct grub_console_term.getcolor): New variable.
18739
18740 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
18741 (struct grub_console_term.setcolor): Remove variable.
18742 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
18743 (struct grub_console_term.setcolor): Remove variable.
18744 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
18745 (struct grub_console_term.setcolor): Remove variable.
18746 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
18747 (struct grub_console_term.setcolor): Remove variable.
18748
4931827f 187492007-12-25 Robert Millan <rmh@aybabtu.com>
18750
18751 * configure.ac: Search for possible unifont.hex locations, and
18752 define UNIFONT_HEX if found.
18753
18754 * Makefile.in (UNIFONT_HEX): Define variable.
18755 (DATA): Rename to ...
18756 (PKGLIB): ... this. Update all users.
18757 (PKGDATA): New variable.
18758 (pkgdata_IMAGES): Rename to ...
18759 (pkglib_IMAGES): ... this. Update all users.
18760 (pkgdata_MODULES): Rename to ...
18761 (pkglib_MODULES): ... this. Update all users.
18762 (pkgdata_PROGRAMS): Rename to ...
18763 (pkglib_PROGRAMS): ... this. Update all users.
18764 (pkgdata_DATA): Rename to ...
18765 (pkglib_DATA): ... this. Update all users.
18766 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
18767 (unicode.pff, ascii.pff): New rules.
18768 (all-local): Add `$(PKGDATA)' dependency.
18769 (install-local): Process `$(PKGDATA)'.
18770
18771 * util/update-grub_lib.in (font_path): Search for *.pff files in
18772 a few more locations, including `${pkgdata}'.
18773
57e57e31 187742007-12-23 Robert Millan <rmh@aybabtu.com>
18775
18776 Patch from Bean <bean123ch@gmail.com>:
18777 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
18778 `size'.
18779
4bc72aa9 187802007-12-21 Bean <bean123ch@gmail.com>
18781
18782 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
18783 (ntfscomp_mod_SOURCES): New variable.
18784 (ntfscomp_mod_CFLAGS): Likewise.
18785 (ntfscomp_mod_LDFLAGS): Likewise.
18786
18787 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
18788 (grub_probe_SOURCES): Likewise.
18789 (grub_emu_SOURCES): Likewise.
18790
18791 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
18792 (grub_emu_SOURCES): Likewise.
18793
18794 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
18795 (grub_emu_SOURCES): Likewise.
18796
18797 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
18798 (grub_emu_SOURCES): Likewise.
18799
18800 * fs/ntfs.c (grub_ntfscomp_func): New variable.
18801 (read_run_list): Renamed to grub_ntfs_read_run_list.
18802 (decomp_nextvcn): Moved to ntfscomp.c.
18803 (decomp_getch): Likewise.
18804 (decomp_get16): Likewise.
18805 (decomp_block): Likewise.
18806 (read_block): Likewise.
18807 (read_data): Partially moved to ntfscomp.c.
18808 (fixup): Change unsigned to grub_uint16_t.
18809 (read_mft): Change unsigned long to grub_uint32_t.
18810 (read_attr): Likewise.
18811 (read_data): Likewise.
18812 (read_run_data): Likewise.
18813 (read_run_list): Likewise.
18814 (read_mft): Likewise.
18815
18816 * fs/ntfscomp.c: New file.
18817
18818 * include/grub/ntfs.h: New file.
18819
af680a87 188202007-12-16 Robert Millan <rmh@aybabtu.com>
18821
18822 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
18823 IDE disk check, since Linux is known to support 20 IDE disks.
18824 Reported by Colin Watson.
18825
84be7599 188262007-12-15 Bean <bean123ch@gmail.com>
18827
18828 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
18829 (lnxboot_img_SOURCES): New variable.
18830 (lnxboot_img_ASFLAGS): Likewise.
18831 (lnxboot_img_LDFLAGS): Likewise.
18832
18833 * boot/i386/pc/lnxboot.S: New file.
18834
6af9db01 188352007-11-24 Pavel Roskin <proski@gnu.org>
18836
18837 * configure.ac: Test if '--build-id=none' is supported by the
18838 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
18839 objcopy to generate incorrect binary files (binutils
18840 2.17.50.0.18-1 as shipped by Fedora 8).
18841 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
18842 linking, so that build ID doesn't break the test.
18843
7361cfe6 188442007-11-24 Pavel Roskin <proski@gnu.org>
18845
18846 * include/grub/i386/time.h: use "void" in the argument list
18847 of grub_cpu_idle().
18848 * include/grub/powerpc/time.h: Likewise.
18849 * include/grub/sparc64/time.h: Likewise.
18850
1593e10c 188512007-11-18 Christian Franke <franke@computer.org>
18852
18853 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
18854 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
18855 This fixes the problem that function keys did not work in grub-emu.
18856
3b8db1a8 188572007-11-18 Christian Franke <franke@computer.org>
18858
18859 * disk/host.c (grub_host_open): Remove attribute unused from
18860 name parameter. Add check for "host". This fixes the problem
18861 that grub-emu does not find partitions.
18862
2e29408d 188632007-11-18 Christian Franke <franke@computer.org>
18864
18865 * util/hostfs.c (is_dir): New function.
18866 (grub_hostfs_dir): Handle missing dirent.d_type case.
18867 (grub_hostfs_read): Add missing fseek().
18868 (grub_hostfs_label): Clear label pointer. This fixes a crash
18869 of grub-emu on "ls (host)".
18870
398cd047 188712007-11-18 Christian Franke <franke@computer.org>
18872
18873 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
18874 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
18875 to 64 bit boundary by default.
18876
c405c391 188772007-11-18 Bean <bean123ch@gmail.com>
18878
18879 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
18880 (hexdump_mod_SOURCES): New variable.
18881 (hexdump_mod_CFLAGS): Likewise.
18882 (hexdump_mod_LDFLAGS): Likewise.
f19dbdb7 18883
c405c391 18884 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
18885
18886 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
18887
18888 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
18889
18890 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
18891
18892 * include/grub/hexdump.h: New file.
18893
18894 * commands/hexdump.c: New file.
18895
5cced7fd 188962007-11-10 Robert Millan <rmh@aybabtu.com>
18897
18898 * commands/i386/pc/play.c (beep_off): Switch order of arguments
18899 in grub_outb() calls.
18900 (beep_on): Likewise.
18901
8b714eb0 189022007-11-10 Christian Franke <franke@computer.org>
18903
18904 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
18905 (grub_menu_run): Likewise.
18906
ce0f1839 189072007-11-10 Robert Millan <rmh@aybabtu.com>
18908
18909 * include/grub/i386/efi/machine.h: New file.
18910 * include/grub/i386/linuxbios/machine.h: Likewise.
18911 * include/grub/i386/pc/machine.h: Likewise.
18912 * include/grub/powerpc/ieee1275/machine.h: Likewise.
18913 * include/grub/sparc64/ieee1275/machine.h: Likewise.
18914
18915 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
18916 (serial_hw_io_addr): New variable.
18917 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
18918 instead of `(unsigned short *) 0x400'.
18919
270c237d 189202007-11-10 Bean <bean123ch@gmail.com>
18921
18922 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
18923
a87783bf 189242007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
18925
18926 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
18927 (vga_mod_SOURCES): Added.
18928 (vga_mod_CFLAGS): Likewise.
18929 (vga_mod_LDFLAGS): Likewise.
18930
18931 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
18932 grub_outb() calls.
18933 (set_map_mask): Likewise.
18934 (set_read_map): Likewise.
18935 (set_read_address): Likewise.
18936 (vga_font): Removed variable.
18937 (get_vga_glyph): Removed function.
18938 (invalidate_char): Likewise.
18939 (write_char): Changed to use grub_font_get_glyph() for font
18940 information.
18941 (grub_vga_putchar): Likewise.
18942 (grub_vga_getcharwidth): Likewise.
18943
6433b448 189442007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
18945
18946 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
18947 flags.
18948 (pxeboot_img_LDFLAGS): Likewise.
18949 (diskboot_img_LDFLAGS): Likewise.
18950 (kernel_img_LDFLAGS): Likewise.
18951
49178511 189522007-11-06 Robert Millan <rmh@aybabtu.com>
18953
18954 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
18955 in grub_outb() calls.
18956 (serial_hw_init): Likewise.
18957
53b052de 189582007-11-05 Robert Millan <rmh@aybabtu.com>
18959
18960 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
18961 spaces. Skip non-regular files.
18962
5ab33bba 189632007-11-05 Robert Millan <rmh@aybabtu.com>
18964
18965 * kern/disk.c (grub_disk_firmware_fini)
18966 (grub_disk_firmware_is_tainted): New variables.
18967
18968 * include/grub/disk.h (grub_disk_firmware_fini)
18969 (grub_disk_firmware_is_tainted): Likewise.
18970
18971 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
18972 (grub_disk_biosdisk_fini): ... to here.
18973 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
18974 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
18975 is set. Register grub_disk_biosdisk_fini() in
18976 `grub_disk_firmware_fini'.
18977
18978 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
18979 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
18980 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
18981 to finish existing firmware disk interface.
18982
18983 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
18984 (ata_mod_SOURCES): New variable.
18985 (ata_mod_CFLAGS): Likewise.
18986 (ata_mod_LDFLAGS): Likewise.
18987
0149ab7c 189882007-11-05 Robert Millan <rmh@aybabtu.com>
18989
18990 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
18991 (grub_ata_wait): Reimplement using grub_millisleep().
18992
18993 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
18994 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
18995
be7ac41e 189962007-11-03 Marco Gerards <marco@gnu.org>
18997
18998 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
18999 (CRTC_ADDR_PORT): New macro.
19000 (CRTC_DATA_PORT): Likewise.
19001 (CRTC_CURSOR): Likewise.
19002 (CRTC_CURSOR_ADDR_HIGH): Likewise.
19003 (CRTC_CURSOR_ADDR_LOW): Likewise.
19004 (update_cursor): New function.
19005 (grub_console_real_putchar): Call `update_cursor'.
19006 (grub_console_gotoxy): Likewise.
19007 (grub_console_cls): Set the default color when clearing the
19008 screen.
19009 (grub_console_setcursor): Implemented.
19010
bb06ab2e 190112007-11-03 Marco Gerards <marco@gnu.org>
19012
19013 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
19014 become activate.
19015 (grub_ata_pio_write): Likewise.
19016
19017 (grub_atapi_identify): Wait after issuing an ATA command.
19018 (grub_atapi_packet): Likewise.
19019 (grub_ata_identify): Likewise.
19020 (grub_ata_readwrite): Likewise.
19021
cf8f780b 190222007-11-03 Marco Gerards <marco@gnu.org>
19023
19024 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
19025 (grub_ata_pio_write): Likewise.
19026 (grub_ata_readwrite): Use `grub_error', instead of
19027 returning `grub_errno'.
19028
ed649e54 190292007-11-03 Marco Gerards <marco@gnu.org>
19030
19031 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
19032 grub_ata_pio_write once for every single sector, instead of for
19033 multiple sectors.
19034
ca25d8f0 190352007-10-31 Robert Millan <rmh@aybabtu.com>
19036
19037 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
19038
19039 * conf/i386-linuxbios.rmk: New file.
19040
19041 * kern/i386/pc/hardware.c: Likewise.
19042 * term/i386/pc/at_keyboard.c: Likewise.
19043 * term/i386/pc/vga_text.c: Likewise.
19044
19045 * include/grub/i386/linuxbios/boot.h: Likewise.
19046 * include/grub/i386/linuxbios/console.h: Likewise.
19047 * include/grub/i386/linuxbios/init.h: Likewise.
19048 * include/grub/i386/linuxbios/kernel.h: Likewise.
19049 * include/grub/i386/linuxbios/loader.h: Likewise.
19050 * include/grub/i386/linuxbios/memory.h: Likewise.
19051 * include/grub/i386/linuxbios/serial.h: Likewise.
19052 * include/grub/i386/linuxbios/time.h: Likewise.
19053
19054 * kern/i386/linuxbios/init.c: Likewise.
19055 * kern/i386/linuxbios/startup.S: Likewise.
19056 * kern/i386/linuxbios/table.c: Likewise.
19057
e911ecc1 190582007-10-31 Marco Gerards <marco@gnu.org>
19059
19060 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
19061 (ata_mod_SOURCES): New variable.
19062 (ata_mod_CFLAGS): Likewise.
19063 (ata_mod_LDFLAGS): Likewise.
19064
19065 * disk/ata.c: New file.
19066
19067 * include/grub/disk.h (grub_disk_dev_id): Add
19068 `GRUB_DISK_DEV_ATA_ID'.
f19dbdb7 19069
7f66d0e0 190702007-10-31 Robert Millan <rmh@aybabtu.com>
19071
19072 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
19073 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
19074
19075 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
19076 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
19077
19078 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
19079 `<grub/types.h>'.
19080
19081 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
19082
5cd7dd46 190832007-10-27 Robert Millan <rmh@aybabtu.com>
19084
3236ca65 19085 * include/grub/types.h (ULONG_MAX): Define macro.
5cd7dd46 19086
2ebfc90f 190872007-10-22 Robert Millan <rmh@aybabtu.com>
19088
19089 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
19090 `"../realmode.S"'.
19091 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
19092
73fcb0f3 190932007-10-22 Robert Millan <rmh@aybabtu.com>
19094
19095 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
19096 (pkgdata_MODULES): Add `biosdisk.mod'.
19097 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
19098 variables.
19099
19100 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
19101 (grub_biosdisk_init): Replace with ...
19102 (GRUB_MOD_INIT(biosdisk)): ... this.
19103 (grub_biosdisk_fini): Replace with ...
19104 (GRUB_MOD_FINI(biosdisk)): ... this.
19105
19106 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
19107 (grub_machine_init): Remove call to grub_biosdisk_init().
19108 (grub_machine_fini): Remove call to grub_machine_fini().
19109
19110 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
19111
3381d274 191122007-10-22 Robert Millan <rmh@aybabtu.com>
19113
19114 * include/grub/time.h: New file.
19115 * include/grub/i386/time.h: Likewise.
19116 * include/grub/powerpc/time.h: Likewise.
19117 * include/grub/sparc64/time.h: Likewise.
19118
19119 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
19120 instances to ...
19121 (KERNEL_MACHINE_TIME_HEADER): ... this.
19122 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
19123 instances to ...
19124 (KERNEL_MACHINE_TIME_HEADER): ... this.
19125 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
19126 instances to ...
19127 (KERNEL_MACHINE_TIME_HEADER): ... this.
19128
19129 * kern/i386/efi/init.c: Include `<grub/time.h>'.
19130 (grub_millisleep): New function.
19131 * kern/i386/pc/init.c: Include `<grub/time.h>'.
19132 (grub_millisleep): New function.
19133 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
19134 Remove `grub/machine/time.h' include.
19135 (grub_millisleep): New function.
19136 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
19137 Remove `grub/machine/time.h' include.
19138 (grub_millisleep): New function.
19139
19140 * include/grub/misc.h (grub_div_roundup): New function.
19141
19142 * kern/misc.c: Include `<grub/time.h>'.
19143 (grub_millisleep_generic): New function.
19144
19145 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
19146 Add `time.h'.
19147 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
19148 Add `time.h'.
19149 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
19150 `machine/time.h'. Add `time.h'.
19151 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
19152
a39a0312 191532007-10-21 Robert Millan <rmh@aybabtu.com>
19154
19155 * include/grub/misc.h (grub_max): New function.
19156
2aad70e2 191572007-10-21 Robert Millan <rmh@aybabtu.com>
19158
19159 * util/misc.c (grub_util_info): Call fflush() before returning.
19160
54b71c4b 191612007-10-20 Robert Millan <rmh@aybabtu.com>
19162
19163 * genmk.rb (Image): Copy `extra_flags' from here ...
19164 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
19165
19166 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
19167 to `argc' and `args' arguments.
19168
a979f513 191692007-10-17 Robert Millan <rmh@aybabtu.com>
19170
19171 * kern/i386/loader.S: New file.
19172
19173 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
19174 * kern/i386/loader.S (grub_linux_prot_size)... to here.
19175 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
19176 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
19177 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
19178 * kern/i386/loader.S (grub_linux_real_addr)... to here.
19179 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
19180 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
19181 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
19182 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
19183 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
19184 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
19185 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
19186 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
19187
19188 * kern/i386/realmode.S: New file.
19189
19190 * kern/i386/pc/startup.S (protstack): Moved from here ...
19191 * kern/i386/realmode.S (protstack)... to here.
19192 * kern/i386/pc/startup.S (gdt): Moved from here ...
19193 * kern/i386/realmode.S (gdt)... to here.
19194 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
19195 * kern/i386/realmode.S (prot_to_real)... to here.
19196
19197 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
19198 `kern/i386/realmode.S'.
19199
825fc8fd 192002007-10-17 Robert Millan <rmh@aybabtu.com>
19201
19202 * include/grub/i386/loader.h: New file.
19203
19204 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
19205 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
19206 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
19207 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
19208 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
19209 * include/grub/i386/loader.h (grub_linux_prot_size)
19210 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
19211 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
19212 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
19213 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
19214
19215 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
19216
e179b2f4 192172007-10-15 Robert Millan <rmh@aybabtu.com>
19218
19219 * normal/misc.c (grub_normal_print_device_info): Do not probe for
19220 filesystem when dev->disk is unset.
19221 Do probe for filesystem even when dev->disk->has_partitions is set.
19222 In case a filesystem is found, always report it.
19223 In case it isn't, if dev->disk->has_partitions is set, report that
19224 a partition table was found instead of reporting that no filesystem
19225 could be identified.
19226
5db82af6 192272007-10-12 Robert Millan <rmh@aybabtu.com>
19228
19229 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
19230 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
19231
68f6ac74 19232 * include/grub/types.h (grub_host_to_target16): New macro.
19233 (grub_host_to_target32): Likewise.
19234 (grub_host_to_target64): Likewise.
19235 (grub_target_to_host16): Likewise.
19236 (grub_target_to_host32): Likewise.
19237 (grub_target_to_host64): Likewise.
5db82af6 19238
19239 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
19240 Renamed from to ...
19241 (GRUB_MOD_ALIGN): ...this. Update all users.
19242
68f6ac74 19243 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
19244 grub_host_to_target32.
19245 Replace grub_be_to_cpu32 with grub_target_to_host32.
19246 (load_modules): Likewise.
19247 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
19248 Replace grub_be_to_cpu32 with grub_target_to_host32.
19249 Replace grub_cpu_to_be16 with grub_host_to_target16.
19250 Replace grub_cpu_to_be32 grub_host_to_target32.
5db82af6 19251
3cf497cc 192522007-10-12 Robert Millan <rmh@aybabtu.com>
19253
19254 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
19255 * util/elf/grub-mkimage.c: ... here.
19256
19257 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
19258 `util/powerpc/ieee1275/grub-mkimage.c'.
19259
c8cc3692 192602007-10-07 Robert Millan <rmh@aybabtu.com>
adbc4c9d 19261
c8cc3692 19262 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
19263 and make it easier to figure out.
19264 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
19265 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
19266 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
19267 leave us with less than HEAP_MIN_SIZE total heap.
19268 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
adbc4c9d 19269
5c58b791 192702007-10-03 Robert Millan <rmh@aybabtu.com>
19271
19272 * include/grub/i386/io.h: New file.
19273 * commands/i386/pc/play.c (inb): Removed.
19274 (outb): Removed.
19275 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
19276 with grub_outb().
afcd2ef8 19277 * term/i386/pc/serial.c (inb): Removed.
19278 (outb): Removed.
19279 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
19280 with grub_outb().
19281 * term/i386/pc/vga.c (inb): Removed.
19282 (outb): Removed.
19283 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
19284 with grub_outb().
5c58b791 19285
1a477ed6 192862007-10-02 Robert Millan <rmh@aybabtu.com>
19287
19288 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
19289 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19290 Reported by Marcin Kurek.
19291
6b5d80fa 192922007-09-07 Robert Millan <rmh@aybabtu.com>
19293
19294 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
19295 SmartFirmware version updates (as released by Sven Luther), and avoid
19296 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
19297 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
19298 known broken.
19299
5618afbf 193002007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
19301
19302 From Hitoshi Ozeki:
19303 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
19304 when merging two regions.
19305
6139dcd9 193062007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
19307
508e39ee 19308 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
19309 * normal/completion.c (grub_normal_do_completion): Likewise.
19310 Reported by Hitoshi Ozeki.
19311
193122007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
f19dbdb7 19313
6139dcd9 19314 Do not use devices at boot in chainloading.
f19dbdb7 19315
6139dcd9 19316 * loader/i386/pc/chainloader.c (boot_drive): New variable.
19317 (boot_part_addr): Likewise.
19318 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
19319 with BOOT_DRIVE and BOOT_PART_ADDR.
19320 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
19321 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
19322
38da6516 193232007-08-29 Robert Millan <rmh@aybabtu.com>
19324
19325 Patch from Simon Peter <dn.tlp@gmx.net>:
19326 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
19327 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
19328 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
19329 util/i386/pc/grub-setup.c_DEPENDENCIES.
19330 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
19331 util/grub-probe.c_DEPENDENCIES.
19332 * conf/powerpc-ieee1275.rmk: Likewise.
19333
29d0928c 193342007-08-28 Robert Millan <rmh@aybabtu.com>
19335
19336 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
19337 to tell grub-mkdevicemap how to name devices.
19338 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
19339 feature).
19340
19341 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
19342 util/i386/get_disk_name.c.
19343 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
19344 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
19345 util/ieee1275/get_disk_name.c.
19346
19347 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
19348
19349 * DISTLIST: Add util/i386/get_disk_name.c and
19350 util/ieee1275/get_disk_name.c.
19351
19352 * util/grub-mkdevicemap.c: Replace device naming logic with
19353 grub_util_get_disk_name() calls.
19354
5a0d3cca 193552007-08-20 Robert Millan <rmh@aybabtu.com>
19356
19357 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
19358 (so that it works for both plural and singular quantities).
19359
8b72db2f 193602007-08-05 Robert Millan <rmh@aybabtu.com>
19361
19362 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
19363 so that [xz] isn't taken into account when determining order.
19364
352466bf 193652007-08-02 Marco Gerards <marco@gnu.org>
19366
19367 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
19368 `include/multiboot2.h', `include/grub/elfload.h',
19369 `include/multiboot.h', `include/grub/multiboot.h',
19370 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
19371 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
19372 `kern/elf.c', `loader/multiboot_loader.c',
19373 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
19374 `loader/i386/pc/multiboot2.c',
19375 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
19376 `util/i386/pc/grub-mkrescue.in'. Remove
19377 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
19378 `include/grub/i386/pc/util/biosdisk.h' and
19379 `include/grub/powerpc/ieee1275/multiboot.h'.
19380
8f096014 193812007-08-02 Bean <bean123ch@gmail.com>
19382
19383 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
19384 (ntfs_mod_SOURCES): New variable.
19385 (ntfs_mod_CFLAGS): Likewise.
19386 (ntfs_mod_LDFLAGS): Likewise.
19387
19388 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
19389 (grub_probe_SOURCES): Likewise.
19390 (grub_emu_SOURCES): Likewise.
19391
19392 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
19393 (grub_emu_SOURCES): Likewise.
19394
19395 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
19396 (grub_emu_SOURCES): Likewise.
f19dbdb7 19397
8f096014 19398 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
19399
19400 * fs/ntfs.c: New file.
19401
9959f7db 194022007-08-02 Bean <bean123ch@gmail.com>
19403
19404 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
19405
19406 * file.h (grub_file): Likewise.
19407
19408 * fshelp.h (grub_fshelp_read_file): Likewise.
19409
19410 * util/i386/pc/grub-setup.c (setup): Likewise.
19411 (save_first_sector): Likewise.
19412 (save_blocklists): Likewise.
f19dbdb7 19413
9959f7db 19414 * fs/affs.c (grub_affs_read_file): Likewise.
19415
19416 * fs/ext2.c (grub_ext2_read_file): Likewise.
19417
19418 * fs/fat.c (grub_fat_read_data): Likewise.
19419
19420 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
19421
19422 * fs/hfs.c (grub_hfs_read_file): Likewise.
19423
19424 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
19425
19426 * fs/jfs.c (grub_jfs_read_file): Likewise.
19427
19428 * fs/minix.c (grub_minix_read_file): Likewise.
19429
19430 * fs/sfs.c (grub_sfs_read_file): Likewise.
19431
19432 * fs/ufs.c (grub_ufs_read_file): Likewise.
f19dbdb7 19433
9959f7db 19434 * fs/xfs.c (grub_xfs_read_file): Likewise.
19435
19436 * command/blocklist.c (read_blocklist): Likewise.
19437 (print_blocklist): Likewise.
19438
0a203f83 194392007-08-02 Marco Gerards <marco@gnu.org>
19440
19441 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
19442 `util/hostfs.c'.
19443
19444 * disk/host.c: New file.
19445
19446 * util/hostfs.c: Likewise.
19447
19448 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
19449 return `GRUB_ERR_BAD_FS'.
19450 * fs/sfs.c (grub_sfs_mount): Likewise.
19451 * fs/xfs.c (grub_xfs_mount): Likewise.
19452
19453 * include/grub/disk.h (enum grub_disk_dev_id): Add
19454 `GRUB_DISK_DEVICE_HOST_ID'.
19455
19456 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
19457
e5dfe777 194582007-07-24 Jerone Young <jerone@gmail.com>
19459
f19dbdb7 19460 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
e5dfe777 19461 modules for compilation.
19462 * conf/powerpc-ieee1275.rmk: Likewise.
19463
19464 * include/multiboot.h: Move multiboot definitions to one file. Rename
19465 many definitions to not get grub specific.
19466 * include/multiboot2.h: Create header with multiboot 2 definitions.
19467 * include/grub/multiboot.h: Header for grub specific function
19468 prototypes and definitions.
19469 * include/grub/multiboot2.h: Likewise.
19470 * include/grub/multiboot_loader.h: Likewise.
19471 * include/grub/i386/pc/multiboot.h: Removed.
19472 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
19473
19474 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
19475 and 2 to allow for one multiboot and module commands.
19476 * loader/multiboot2.c: Add multiboot2 functionality.
19477 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
19478 and definition names.
19479 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
19480 2 functions.
19481 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
19482 ieee1275 specific multiboot2 code.
19483
19484 * kern/i386/pc/startup.S: Change headers and definition names for
19485 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
19486
daf0f0ba 194872007-07-22 Robert Millan <rmh@aybabtu.com>
19488
19489 * geninitheader.sh: Process file specified in first parameter rather
19490 than hardcoding grub_modules_init.lst.
fe6b695a 19491 * geninit.sh: Likewise. Also, construct header name dynamically rather
daf0f0ba 19492 than hardcoding grub_modules_init.h.
19493
19494 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
19495 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
19496 grub_probe_init.[ch] and grub_setup_init.[ch].
19497
19498 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
19499 grub_modules_init.h with grub_emu_init.h.
19500 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
19501 grub_probe_init.[ch] files.
19502 * conf/i386-efi.rmk: Likewise.
19503 * conf/i386-pc.rmk: Likewise.
19504 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
19505 grub_setup_init.[ch] files.
19506
19507 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
19508 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
19509 to initialize modules rather than a list of hardcoded functions.
19510 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
19511 grub_init_all() to initialize modules rather than a list of hardcoded
19512 functions.
19513
54cdc1cc 195142007-07-22 Robert Millan <rmh@aybabtu.com>
19515
19516 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
19517 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
19518
ad0686cc 195192007-07-22 Robert Millan <rmh@aybabtu.com>
19520
19521 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
19522 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
19523 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
19524 flag when running on SmartFirmware.
19525 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
19526 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
19527 was set.
19528
19529 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
19530 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
19531 rather than decreasing it.
19532
19533 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
19534 there's not enough space to do it, fail in the same way as when it
19535 can't be done because there are no partitions.
19536
19537 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
19538 when nvsetenv failed.
19539
969c02ec 195402007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
19541
19542 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
19543 because this rule is automatically generated.
19544 (grub-mkrescue): Removed for the same reason as above.
19545
5a79f472 195462007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
19547
19548 Migrate to GNU General Public License Version 3.
f19dbdb7 19549
5a79f472 19550 * COPYING: Replaced with the plain text version of GPLv3.
19551
19552 * config.guess: Updated from gnulib.
19553 * config.sub: Likewise.
19554
19555 * geninit.sh: Output a GPLv3 copyright notice.
19556 * geninitheader.sh: Likewise.
19557 * genmodsrc.sh: Likewise.
19558 * gensymlist.sh.in: Likewise.
19559
19560 * boot/i386/pc/boot.S: Upgraded to GPLv3.
19561 * boot/i386/pc/diskboot.S: Likewise.
19562 * boot/i386/pc/pxeboot.S: Likewise.
19563 * commands/blocklist.c: Likewise.
19564 * commands/boot.c: Likewise.
19565 * commands/cat.c: Likewise.
19566 * commands/cmp.c: Likewise.
19567 * commands/configfile.c: Likewise.
19568 * commands/echo.c: Likewise.
19569 * commands/help.c: Likewise.
19570 * commands/ls.c: Likewise.
19571 * commands/search.c: Likewise.
19572 * commands/terminal.c: Likewise.
19573 * commands/test.c: Likewise.
19574 * commands/videotest.c: Likewise.
19575 * commands/i386/cpuid.c: Likewise.
19576 * commands/i386/pc/halt.c: Likewise.
19577 * commands/i386/pc/play.c: Likewise.
19578 * commands/i386/pc/reboot.c: Likewise.
19579 * commands/i386/pc/vbeinfo.c: Likewise.
19580 * commands/i386/pc/vbetest.c: Likewise.
19581 * commands/ieee1275/halt.c: Likewise.
19582 * commands/ieee1275/reboot.c: Likewise.
19583 * commands/ieee1275/suspend.c: Likewise.
19584 * disk/loopback.c: Likewise.
19585 * disk/lvm.c: Likewise.
19586 * disk/raid.c: Likewise.
19587 * disk/efi/efidisk.c: Likewise.
19588 * disk/i386/pc/biosdisk.c: Likewise.
19589 * disk/ieee1275/ofdisk.c: Likewise.
19590 * font/manager.c: Likewise.
19591 * fs/affs.c: Likewise.
19592 * fs/ext2.c: Likewise.
19593 * fs/fat.c: Likewise.
19594 * fs/fshelp.c: Likewise.
19595 * fs/hfs.c: Likewise.
19596 * fs/hfsplus.c: Likewise.
19597 * fs/iso9660.c: Likewise.
19598 * fs/jfs.c: Likewise.
19599 * fs/minix.c: Likewise.
19600 * fs/sfs.c: Likewise.
19601 * fs/ufs.c: Likewise.
19602 * fs/xfs.c: Likewise.
19603 * hello/hello.c: Likewise.
19604 * include/grub/acorn_filecore.h: Likewise.
19605 * include/grub/arg.h: Likewise.
19606 * include/grub/bitmap.h: Likewise.
19607 * include/grub/boot.h: Likewise.
19608 * include/grub/cache.h: Likewise.
19609 * include/grub/device.h: Likewise.
19610 * include/grub/disk.h: Likewise.
19611 * include/grub/dl.h: Likewise.
19612 * include/grub/elfload.h: Likewise.
19613 * include/grub/env.h: Likewise.
19614 * include/grub/err.h: Likewise.
19615 * include/grub/file.h: Likewise.
19616 * include/grub/font.h: Likewise.
19617 * include/grub/fs.h: Likewise.
19618 * include/grub/fshelp.h: Likewise.
19619 * include/grub/gzio.h: Likewise.
19620 * include/grub/hfs.h: Likewise.
19621 * include/grub/kernel.h: Likewise.
19622 * include/grub/loader.h: Likewise.
19623 * include/grub/lvm.h: Likewise.
19624 * include/grub/misc.h: Likewise.
19625 * include/grub/mm.h: Likewise.
19626 * include/grub/net.h: Likewise.
19627 * include/grub/normal.h: Likewise.
19628 * include/grub/parser.h: Likewise.
19629 * include/grub/partition.h: Likewise.
19630 * include/grub/pc_partition.h: Likewise.
19631 * include/grub/raid.h: Likewise.
19632 * include/grub/rescue.h: Likewise.
19633 * include/grub/script.h: Likewise.
19634 * include/grub/setjmp.h: Likewise.
19635 * include/grub/symbol.h: Likewise.
19636 * include/grub/term.h: Likewise.
19637 * include/grub/terminfo.h: Likewise.
19638 * include/grub/tparm.h: Likewise.
19639 * include/grub/types.h: Likewise.
19640 * include/grub/video.h: Likewise.
19641 * include/grub/efi/api.h: Likewise.
19642 * include/grub/efi/chainloader.h: Likewise.
19643 * include/grub/efi/console.h: Likewise.
19644 * include/grub/efi/console_control.h: Likewise.
19645 * include/grub/efi/disk.h: Likewise.
19646 * include/grub/efi/efi.h: Likewise.
19647 * include/grub/efi/pe32.h: Likewise.
19648 * include/grub/efi/time.h: Likewise.
19649 * include/grub/i386/linux.h: Likewise.
19650 * include/grub/i386/setjmp.h: Likewise.
19651 * include/grub/i386/types.h: Likewise.
19652 * include/grub/i386/efi/kernel.h: Likewise.
19653 * include/grub/i386/efi/loader.h: Likewise.
19654 * include/grub/i386/efi/time.h: Likewise.
19655 * include/grub/i386/pc/biosdisk.h: Likewise.
19656 * include/grub/i386/pc/boot.h: Likewise.
19657 * include/grub/i386/pc/chainloader.h: Likewise.
19658 * include/grub/i386/pc/console.h: Likewise.
19659 * include/grub/i386/pc/init.h: Likewise.
19660 * include/grub/i386/pc/kernel.h: Likewise.
19661 * include/grub/i386/pc/loader.h: Likewise.
19662 * include/grub/i386/pc/memory.h: Likewise.
19663 * include/grub/i386/pc/multiboot.h: Likewise.
19664 * include/grub/i386/pc/serial.h: Likewise.
19665 * include/grub/i386/pc/time.h: Likewise.
19666 * include/grub/i386/pc/vbe.h: Likewise.
19667 * include/grub/i386/pc/vbeblit.h: Likewise.
19668 * include/grub/i386/pc/vbefill.h: Likewise.
19669 * include/grub/i386/pc/vbeutil.h: Likewise.
19670 * include/grub/i386/pc/vga.h: Likewise.
19671 * include/grub/ieee1275/ieee1275.h: Likewise.
19672 * include/grub/ieee1275/ofdisk.h: Likewise.
19673 * include/grub/powerpc/libgcc.h: Likewise.
19674 * include/grub/powerpc/setjmp.h: Likewise.
19675 * include/grub/powerpc/types.h: Likewise.
19676 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
19677 * include/grub/powerpc/ieee1275/console.h: Likewise.
19678 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
19679 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
19680 * include/grub/powerpc/ieee1275/loader.h: Likewise.
19681 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
19682 * include/grub/powerpc/ieee1275/time.h: Likewise.
19683 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
19684 * include/grub/sparc64/libgcc.h: Likewise.
19685 * include/grub/sparc64/setjmp.h: Likewise.
19686 * include/grub/sparc64/types.h: Likewise.
19687 * include/grub/sparc64/ieee1275/console.h: Likewise.
19688 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
19689 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
19690 * include/grub/sparc64/ieee1275/time.h: Likewise.
19691 * include/grub/util/biosdisk.h: Likewise.
19692 * include/grub/util/getroot.h: Likewise.
19693 * include/grub/util/lvm.h: Likewise.
19694 * include/grub/util/misc.h: Likewise.
19695 * include/grub/util/raid.h: Likewise.
19696 * include/grub/util/resolve.h: Likewise.
19697 * io/gzio.c: Likewise.
19698 * kern/device.c: Likewise.
19699 * kern/disk.c: Likewise.
19700 * kern/dl.c: Likewise.
19701 * kern/elf.c: Likewise.
19702 * kern/env.c: Likewise.
19703 * kern/err.c: Likewise.
19704 * kern/file.c: Likewise.
19705 * kern/fs.c: Likewise.
19706 * kern/loader.c: Likewise.
19707 * kern/main.c: Likewise.
19708 * kern/misc.c: Likewise.
19709 * kern/mm.c: Likewise.
19710 * kern/parser.c: Likewise.
19711 * kern/partition.c: Likewise.
19712 * kern/rescue.c: Likewise.
19713 * kern/term.c: Likewise.
19714 * kern/efi/efi.c: Likewise.
19715 * kern/efi/init.c: Likewise.
19716 * kern/efi/mm.c: Likewise.
19717 * kern/i386/dl.c: Likewise.
19718 * kern/i386/efi/init.c: Likewise.
19719 * kern/i386/efi/startup.S: Likewise.
19720 * kern/i386/pc/init.c: Likewise.
19721 * kern/i386/pc/lzo1x.S: Likewise.
19722 * kern/i386/pc/startup.S: Likewise.
19723 * kern/ieee1275/ieee1275.c: Likewise.
19724 * kern/powerpc/cache.S: Likewise.
19725 * kern/powerpc/dl.c: Likewise.
19726 * kern/powerpc/ieee1275/cmain.c: Likewise.
19727 * kern/powerpc/ieee1275/crt0.S: Likewise.
19728 * kern/powerpc/ieee1275/init.c: Likewise.
19729 * kern/powerpc/ieee1275/openfw.c: Likewise.
19730 * kern/sparc64/cache.S: Likewise.
19731 * kern/sparc64/dl.c: Likewise.
19732 * kern/sparc64/ieee1275/init.c: Likewise.
19733 * kern/sparc64/ieee1275/openfw.c: Likewise.
19734 * loader/efi/chainloader.c: Likewise.
19735 * loader/efi/chainloader_normal.c: Likewise.
19736 * loader/i386/efi/linux.c: Likewise.
19737 * loader/i386/efi/linux_normal.c: Likewise.
19738 * loader/i386/pc/chainloader.c: Likewise.
19739 * loader/i386/pc/chainloader_normal.c: Likewise.
19740 * loader/i386/pc/linux.c: Likewise.
19741 * loader/i386/pc/linux_normal.c: Likewise.
19742 * loader/i386/pc/multiboot.c: Likewise.
19743 * loader/i386/pc/multiboot_normal.c: Likewise.
19744 * loader/powerpc/ieee1275/linux.c: Likewise.
19745 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
19746 * normal/arg.c: Likewise.
19747 * normal/cmdline.c: Likewise.
19748 * normal/command.c: Likewise.
19749 * normal/completion.c: Likewise.
19750 * normal/execute.c: Likewise.
19751 * normal/function.c: Likewise.
19752 * normal/lexer.c: Likewise.
19753 * normal/main.c: Likewise.
19754 * normal/menu.c: Likewise.
19755 * normal/menu_entry.c: Likewise.
19756 * normal/misc.c: Likewise.
19757 * normal/parser.y: Likewise.
19758 * normal/script.c: Likewise.
19759 * normal/i386/setjmp.S: Likewise.
19760 * normal/powerpc/setjmp.S: Likewise.
19761 * normal/sparc64/setjmp.S: Likewise.
19762 * partmap/acorn.c: Likewise.
19763 * partmap/amiga.c: Likewise.
19764 * partmap/apple.c: Likewise.
19765 * partmap/gpt.c: Likewise.
19766 * partmap/pc.c: Likewise.
19767 * partmap/sun.c: Likewise.
19768 * term/gfxterm.c: Likewise.
19769 * term/terminfo.c: Likewise.
19770 * term/efi/console.c: Likewise.
19771 * term/i386/pc/console.c: Likewise.
19772 * term/i386/pc/serial.c: Likewise.
19773 * term/i386/pc/vesafb.c: Likewise.
19774 * term/i386/pc/vga.c: Likewise.
19775 * term/ieee1275/ofconsole.c: Likewise.
19776 * util/biosdisk.c: Likewise.
19777 * util/console.c: Likewise.
19778 * util/genmoddep.c: Likewise.
19779 * util/getroot.c: Likewise.
19780 * util/grub-emu.c: Likewise.
19781 * util/grub-mkdevicemap.c: Likewise.
19782 * util/grub-probe.c: Likewise.
19783 * util/lvm.c: Likewise.
19784 * util/misc.c: Likewise.
19785 * util/raid.c: Likewise.
19786 * util/resolve.c: Likewise.
19787 * util/update-grub.in: Likewise.
19788 * util/update-grub_lib.in: Likewise.
19789 * util/grub.d/00_header.in: Likewise.
19790 * util/grub.d/10_hurd.in: Likewise.
19791 * util/grub.d/10_linux.in: Likewise.
19792 * util/i386/efi/grub-install.in: Likewise.
19793 * util/i386/efi/grub-mkimage.c: Likewise.
19794 * util/i386/pc/grub-install.in: Likewise.
19795 * util/i386/pc/grub-mkimage.c: Likewise.
19796 * util/i386/pc/grub-mkrescue.in: Likewise.
19797 * util/i386/pc/grub-setup.c: Likewise.
19798 * util/i386/pc/misc.c: Likewise.
19799 * util/powerpc/ieee1275/grub-install.in: Likewise.
19800 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
19801 * util/powerpc/ieee1275/misc.c: Likewise.
19802 * video/bitmap.c: Likewise.
19803 * video/video.c: Likewise.
19804 * video/i386/pc/vbe.c: Likewise.
19805 * video/i386/pc/vbeblit.c: Likewise.
19806 * video/i386/pc/vbefill.c: Likewise.
19807 * video/i386/pc/vbeutil.c: Likewise.
19808 * video/readers/tga.c: Likewise.
19809
3572d015 198102007-07-02 Robert Millan <rmh@aybabtu.com>
19811
19812 * conf/i386-efi.rmk: Replace obsolete reference to
19813 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
19814 with util/getroot.c.
19815 * conf/powerpc-ieee1275.rmk: Likewise.
19816 * conf/sparc64-ieee1275.rmk: Likewise.
19817
19818 * util/grub-emu.c (main): Fix unchecked pointer handling.
19819
2c2a681b 198202007-07-02 Robert Millan <rmh@aybabtu.com>
19821
19822 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
19823 invocation to fail, in order to support partition-less media.
19824
19825 * util/i386/pc/grub-install.in: Likewise.
19826
19827 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
19828 which fs or partmap modules are needed (akin to its sister scripts).
19829
19830 Also use grub-probe to get rid of unportable /proc/mounts check.
19831
19832 Print the same informational message that the other scripts do, before
fe6b695a 19833 exiting.
2c2a681b 19834
6193defe 198352007-06-23 Robert Millan <rmh@aybabtu.com>
19836
fe6b695a 19837 * util/update-grub_lib.in (font_path): New function. Determine whether
6193defe 19838 a font file can be found and, if so, echo the GRUB path to it.
19839
19840 * util/update-grub.in: Handle multiple terminals depending on user
19841 input, platform availability and font file presence. Propagate
19842 variables of our findings to /etc/grub.d/ children.
19843
19844 * util/grub.d/00_header.in: Handle multiple terminals, based on
19845 environment setup by update-grub.
19846
eface1dc 198472007-06-23 Robert Millan <rmh@aybabtu.com>
19848
ba50d28f 19849 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
eface1dc 19850
bf697e28 198512007-06-21 Robert Millan <rmh@aybabtu.com>
19852
19853 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
19854 indicate end of data section in kernel image.
19855 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
19856 GRUB_KERNEL_MACHINE_DATA_END.
19857
19858 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
19859 space for it.
19860 * kern/i386/efi/startup.S: Likewise.
19861
19862 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
19863 during image generation. Implement --prefix option to override this
19864 patch.
19865 * util/i386/efi/grub-mkimage.c: Likewise.
19866
19867 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
19868 code to make path relative to its root into a separate function.
19869
19870 * util/i386/pc/grub-install.in: Use newly provided
19871 make_system_path_relative_to_its_root() to convert ${grubdir}, then
19872 pass the result to grub-install --prefix.
19873
baa574b4 198742007-06-13 Robert Millan <rmh@aybabtu.com>
19875
19876 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
19877 DEFAULT_DEVICE_MAP.
19878 * util/grub-emu.c: Use above definitions from misc.h instead of
19879 defining them.
19880 * util/grub-mkdevicemap.c: Likewise.
19881 * util/i386/pc/grub-setup.c: Likewise.
19882 * util/grub-probe.c: Likewise.
19883 (probe): Abort with grub_util_error() when either
19884 grub_guess_root_device or grub_util_get_grub_dev fails.
19885
0215dcbf 198862007-06-12 Robert Millan <rmh@aybabtu.com>
19887
19888 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
19889 "pager" assignment.
19890 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
19891 "pcdata".
19892 * util/grub-probe.c (probe): Likewise for "drive_name".
19893
8af2ab7b 198942007-06-11 Robert Millan <rmh@aybabtu.com>
19895
19896 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
19897 not just the cdrom one.
19898
59d31694 198992007-06-11 Robert Millan <rmh@aybabtu.com>
19900
19901 * util/i386/pc/grub-mkrescue.in: Add "set -e".
19902 Add --pkglibdir=DIR option to override pkglibdir.
19903 Mention --image-type=TYPE in help output.
19904 Fix --grub-mkimage (it was a no-op).
fe6b695a 19905 Abort gracefully when no parameter is given.
59d31694 19906
7ee367e4 199072007-06-11 Robert Millan <rmh@aybabtu.com>
19908
19909 * util/i386/pc/grub-mkrescue.in: New file.
19910 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
19911 * Makefile.in: Handle bin_SCRIPTS.
19912
29b0ed46 199132007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
19914
19915 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
19916 list of video modes.
19917
c0f90770 199182007-06-06 Robert Millan <rmh@aybabtu.com>
19919
19920 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
19921 file doesn't exist, or if it is in a filesystem grub can't read.
19922
19923 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
19924 not abort if GRUB_DRIVE could not be defined. Rearrange generated
19925 header comment to fit in 80 columns when the variables are resolved.
19926
19927 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
19928 could be identified by update-grub. Remove redundant check for
fe6b695a 19929 unifont.pff existence (since convert_system_path_to_grub_path now
c0f90770 19930 handles that).
19931
fb36dc26 199322007-06-04 Robert Millan <rmh@aybabtu.com>
19933
19934 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
19935
19936 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
19937
19938 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
19939
0c68c93e 199402007-06-04 Robert Millan <rmh@aybabtu.com>
19941
19942 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
19943
19944 * include/grub/partition.h: Declare grub_apple_partition_map_init and
19945 grub_apple_partition_map_fini.
19946
19947 * util/biosdisk.c
19948 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
19949 to access >2 TiB disks).
19950
19951 Print disk->total_sectors with %llu instead of %lu, since this
19952 variable is always 64-bit (prevents wrong disk size from being displayed
19953 on either >2 TiB disk or big-endian CPU).
19954
19955 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
19956 into a generic case that supports all (sane) partition maps.
19957
19958 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
19959 breaks big-endian.
19960
19961 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
19962 and grub_apple_partition_map_fini() after that.
19963
0f23eb74 199642007-06-01 Robert Millan <rmh@aybabtu.com>
19965
19966 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
19967
19968 * util/grub.d/00_header.in: Only enable gfxterm when
19969 convert_system_path_to_grub_path() succeeds.
19970
42c71976 199712007-05-20 Robert Millan <rmh@aybabtu.com>
19972
19973 * util/update-grub_lib.in: New file.
19974 * DISTLIST: Add update-grub_lib.in.
19975 * conf/common.rmk: Generate update-grub_lib and install it in
19976 $(lib_DATA).
19977 * Makefile.in: Add install routine for $(lib_DATA).
19978
19979 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
19980 function provided by update-grub_lib to support arbitrary paths of
19981 unifont.pff.
19982 * util/update-grub.in: Use convert_system_path_to_grub_path() to
19983 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
19984
5beb2291 199852007-05-19 Robert Millan <rmh@aybabtu.com>
19986
19987 * commands/i386/cpuid.c: New module.
19988 * DISTLIST: Add it.
19989 * conf/i386-efi.rmk: Enable cpuid.mod.
19990 * conf/i386-pc.rmk: Likewise.
19991
7262eca1 199922007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
19993
19994 * kern/disk.c (grub_disk_read): Check return value of
19995 grub_realloc().
19996
260ba823 199972007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
19998
19999 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
20000 arrays.
20001 * disk/raid.c (grub_raid_open): Likewise.
20002
1ecb6cf2 200032007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
20004
20005 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
20006 stack instead of on the heap.
20007
20008 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
20009 before doing a read on it.
20010
20011 * configure.ac: Only use -fno-stack-protector for the target
20012 environment.
f19dbdb7 20013
21c8cbb1 200142007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
20015
20016 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
20017 __attribute_ ((unused)) to mode_type argument.
20018
20019 * util/getroot.c (grub_guess_root_device): Fix #endif.
f19dbdb7 20020
21c8cbb1 20021 * kern/misc.c (memcmp): Fix prototype.
20022
20023 * include/grub/partition.h [GRUB_UTIL]
20024 (grub_gpt_partition_map_init): Add prototype.
20025 (grub_gpt_partition_map_fini): Likewise.
20026
20027 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
20028 at the right place.
20029
20030 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
20031 (grub_fat_read_data): Likewise.
20032 (grub_fat_find_dir): Likewise.
20033
20034 * font/manager.c (find_glyph): Make table a const.
20035 (grub_font_get_glyph): Remove bitmap from if statement.
f19dbdb7 20036
849d55d3 200372007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
20038
20039 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
20040 code, first search for device in /dev/mapper, then in /dev.
20041 (grub_util_get_grub_dev): New function.
20042 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
20043 prototype.
20044 * util/grub-probe.c (probe): Remove check for RAID, call
20045 grub_util_get_grub_dev() instead of
20046 grub_util_biosdisk_get_grub_dev().
20047 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
20048 grub_util_biosdisk_get_grub_dev().
20049 * util/i386/pc/grub-setup.c (main): Likewise.
20050
8fff7c2f 200512007-05-16 Robert Millan <rmh@aybabtu.com>
20052
20053 * DISTLIST: Update for the latest changes.
20054 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
20055 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
20056 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
20057 grub/util/biosdisk.h.
20058 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
20059 grub/util/biosdisk.h.
20060
48e12b52 200612007-05-16 Robert Millan <rmh@aybabtu.com>
20062
20063 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
20064
46b9d128 200652007-05-16 Robert Millan <rmh@aybabtu.com>
20066
20067 * util/i386/efi/grub-install.in: New.
20068 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
20069 newly added grub-install.
20070 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
20071 include.
20072 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
20073 grub/util/biosdisk.h.
20074 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
20075 grub/util/biosdisk.h.
20076
2d1a40a9 200772007-05-16 Robert Millan <rmh@aybabtu.com>
20078
20079 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
20080 * include/grub/util/biosdisk.h: ... here.
20081 * util/i386/pc/biosdisk.c: Moved to ...
20082 * util/biosdisk.c: ... here.
20083 * util/i386/pc/getroot.c: Moved to ...
20084 * util/getroot.c: ... here.
20085 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
20086 * util/grub-mkdevicemap.c: ... here.
20087 * util/i386/pc/grub-probe.c: Moved to ...
20088 * util/grub-probe.c: ... here.
20089
9e26e3bc 200902007-05-15 Robert Millan <rmh@aybabtu.com>
20091
20092 * util/update-grub.in: Remove duplicated line in grub.cfg header
20093 message.
20094
57f96397 200952007-05-13 Robert Millan <rmh@aybabtu.com>
20096
20097 * util/update-grub.in: Fix a few assumptions about the devices holding
20098 /, /boot and /boot/grub being the same.
20099 * util/grub.d/00_header.in: Likewise.
20100 * util/grub.d/10_hurd.in: Likewise.
20101 * util/grub.d/10_linux.in: Likewise.
20102
20103 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
20104 patterns. Use that to define the `.old' suffix as older than `'.
20105
20106 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
20107
20108 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
20109 the grub.cfg header message.
20110
2e610d62 201112007-05-11 Robert Millan <rmh@aybabtu.com>
20112
20113 * util/update-grub.in: Create device.map if it doesn't already exist,
20114 before attempting to run grub-probe.
20115 Check for grub-probe and grub-mkdevicemap with the same code
20116 grub-install is using.
20117 Remove test mode.
20118
3f6a10ef 201192007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
20120
20121 * Makefile.in: Add the datarootdir autoconf variable.
20122
02e7b75e 201232007-05-09 Robert Millan <rmh@aybabtu.com>
20124
20125 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
f19dbdb7 20126 fail gracefully if dev->disk->partition == NULL.
02e7b75e 20127
75f396cc 201282007-05-07 Robert Millan <rmh@aybabtu.com>
20129
20130 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
20131 determine partition map module.
20132 * util/i386/pc/grub-install.in: Use this feature to decide which
20133 partition module to load, instead of hardcoding pc and gpt.
20134
da65cb36 201352007-05-07 Robert Millan <rmh@aybabtu.com>
20136
20137 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
20138 source directory differs from build directory.
20139
b57d6a91 201402007-05-05 Robert Millan <rmh@aybabtu.com>
20141
20142 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
20143 initialisation.
20144
509d00f1 201452007-05-05 Robert Millan <rmh@aybabtu.com>
20146
20147 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
20148
c48f23ef 201492007-05-05 Robert Millan <rmh@aybabtu.com>
20150
20151 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
20152 command-line arguments via ${GRUB_CMDLINE_LINUX}.
20153
20b97658 201542007-05-05 Robert Millan <rmh@aybabtu.com>
20155
20156 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
20157 (grub_probe_SOURCES): Likewise.
20158 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
20159 GPT and initialize dos_part and bsd_part accordingly.
20160 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
20161 install_bsd_part.
20162 (main): Activate gpt module for use during partition identification,
20163 and deactivate it afterwards.
20164 * util/i386/pc/grub-install.in: Add gpt module to core.img.
20165 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
20166 partition identification, and deactivate it afterwards.
20167
99123174 201682007-05-05 Robert Millan <rmh@aybabtu.com>
20169
20170 * term/i386/pc/console.c (grub_console_fini): Call
20171 grub_term_set_current() before grub_term_unregister().
20172
ebd97f6e 201732007-05-04 Robert Millan <rmh@aybabtu.com>
20174
20175 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
20176 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
20177 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
20178 and update-grub_DATA.
20179 * conf/common.rmk: Build and install update-grub components.
20180 * conf/common.mk: Regenerate.
20181 * util/update-grub.in: New. Core of update-grub.
20182 * util/grub.d/00_header.in: New. Generates grub.cfg header.
20183 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
20184 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
20185 * util/grub.d/README: New. Document grub.d directory layout.
20186
b06a264d 201872007-05-01 Robert Millan <rmh@aybabtu.com>
20188
20189 * util/grub-emu.c: Move initialization functions
20190 grub_util_biosdisk_init() and grub_init_all() before
20191 grub_util_biosdisk_get_grub_dev(), which relies on them.
20192
41f0050e 201932007-04-19 Robert Millan <rmh@aybabtu.com>
20194
20195 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
20196 it is used later.
20197
04582bb3 201982007-04-18 Jerone Young <jerone@gmail.com>
20199
f19dbdb7 20200 * kernel/elf.c: Add missing parenthesis for conditional statement
04582bb3 20201 stanza.
20202
08db4632 202032007-04-10 Jerone Young <jerone@gmail.com>
49892fdf 20204
08db4632 20205 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
20206 continue on and look for device node with real device name.
20207
801b76be 202082007-04-10 Jerone Young <jerone@gmail.com>
f19dbdb7 20209
fe6b695a 20210 * configure.ac: Add argument for autoconf to use transformation
1d543c3e 20211 ability.
20212 * Makefile.in: Add autoconf package transformation code.
20213 * util/i386/pc/grub-install.in: Likewise.
20214 * util/powerpc/ieee1275/grub-install.in: Likewise.
20215
6795c4e1 202162007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
20217
20218 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
20219 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
20220 (EXT2_REVISION): Likewise.
20221 (EXT2_INODE_SIZE): Likewise.
20222 (struct grub_ext2_block_group): Added a missing member
20223 "used_dirs".
20224 (grub_ext2_read_inode): Divide by the inode size in a superblock
20225 instead of 128 to obtain INODES_PER_BLOCK.
20226 Use the macro EXT2_INODE_SIZE instead of directly using
20227 SBLOCK->INODE_SIZE.
20228
d70af616 202292007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
20230
20231 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
20232 superblock instead of the structure size to compute an
20233 offset. This fixes the problem that GRUB could not read a
20234 filesystem when inode size is different from 128-byte.
20235
3b801603 202362007-03-05 Marco Gerards <marco@gnu.org>
20237
20238 * normal/main.c (read_config_file): When "menu" is not set, create
20239 an initial context.
20240
4785bfe4 202412007-02-21 Hollis Blanchard <hollis@penguinppc.org>
20242
20243 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
20244 (HEAP_LIMIT): New macro.
20245 (grub_claim_heap): Claim memory up to `heaplimit'.
20246
a0cbb023 202472007-02-21 Hollis Blanchard <hollis@penguinppc.org>
20248
20249 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
20250 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
20251 (_start): Likewise.
20252 (grub_arch_modules_addr): Return address after `_end'.
20253 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
20254 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
20255 (add_segments): Calculate `_end' from phdr size and location.
20256 (ALIGN_UP): Moved to ...
20257 * include/grub/misc.h: here.
20258 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
20259 New macro.
20260 (GRUB_IEEE1275_MODULE_BASE): Removed.
20261
fd7d8eba 202622007-02-20 Hollis Blanchard <hollis@penguinppc.org>
20263
20264 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
20265 loop boundary.
20266
9b09e6fc 202672007-02-20 Hollis Blanchard <hollis@penguinppc.org>
20268
20269 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
20270 All users updated.
20271 (grub_elf64_load_hook_t): Likewise.
20272 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
20273 debug output.
20274
3ce27299 202752007-02-20 Hollis Blanchard <hollis@penguinppc.org>
20276
20277 * kern/mm.c: Update copyright.
20278 (grub_mm_debug): Correct syntax error.
20279 (grub_mm_dump_free): New function.
20280 (grub_debug_free): Call `grub_free'.
20281 * include/grub/mm.h: Update copyright.
20282 (grub_mm_dump_free): Add declaration.
20283
077d5fee 202842007-02-12 Hollis Blanchard <hollis@penguinppc.org>
20285
20286 * include/grub/ieee1275/ieee1275.h: Update copyright.
20287 * kern/powerpc/ieee1275/init.c: Likewise.
20288 * kern/powerpc/ieee1275/openfw.c: Likewise.
20289
20290 * loader/powerpc/ieee1275/linux.c: Likewise.
20291 * include/grub/elfload.h: Likewise.
20292 * kern/elf.c: Likewise.
20293 (grub_elf32_load): Pass `base' and `size' parameters. Update all
20294 callers.
20295 (grub_elf64_load): Likewise.
20296 (grub_elf32_load_segment): Move to a nested function.
20297 (grub_elf64_load_segment): Likewise.
20298
dc946850 202992007-02-12 Hollis Blanchard <hollis@penguinppc.org>
20300
20301 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
20302 prototype.
20303 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
20304 (grub_heap_len): Likewise.
20305 (HEAP_SIZE): New macro.
20306 (grub_claim_heap): New function.
20307 (grub_machine_init): Don't claim heap directly. Call
20308 `grub_claim_heap'.
20309 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
20310 (grub_available_iterate): New function.
20311
baa2a121 203122007-02-03 Thomas Schwinge <tschwinge@gnu.org>
20313
20314 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
20315 * configure.ac: Use it for testing the HOST and TARGET compilers.
20316
4fe9862e 203172006-12-13 Thomas Schwinge <tschwinge@gnu.org>
20318
20319 * Makefile.in (enable_grub_emu): New variable.
20320 * configure.ac (--enable-grub-emu): New option.
20321 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
20322 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
20323 * conf/i386-pc.rmk: Likewise.
20324 * conf/powerpc-ieee1275.rmk: Likewise.
20325 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
20326
a8aa5762 203272006-12-12 Marco Gerards <marco@gnu.org>
20328
20329 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
20330
20331 * kern/env.c (grub_env_unset): Don't free the member `value' when
20332 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
20333 pointer.
20334
20335 * normal/main.c (current_menu): Removed.
20336 (free_menu): Unset the `menu' environment variable.
20337 (grub_normal_menu_addentry): Make use of the environment variable
20338 `menu', instead of using the global `current_menu'. Allocate
20339 memory for the sourcecode of this entry.
20340 (read_config_file): New argument `nested', changed all callers.
20341 Only in the case of a new context, initialize a new menu. Set the
20342 `menu' environment variable.
20343 (grub_normal_execute): Don't set and unset the environment
20344 variable `menu' here anymore. Only free the menu when leaving the
20345 context.
20346
20347 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
20348 leak.
20349
957b3a3e 203502006-12-11 Marco Gerards <marco@gnu.org>
20351
20352 * normal/menu_entry.c (run): Fix off by one bug so the last line
20353 is executed. Move the loader check to outside the loop.
20354
ef875714 203552006-12-08 Hollis Blanchard <hollis@penguinppc.org>
20356
20357 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
20358
4e739985 203592006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
20360
20361 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
20362 the number of sectors. Reported by Andrey Shuvikov
20363 <mr_hyro@yahoo.com>.
f19dbdb7 20364
790707f2 203652006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
20366
20367 * kern/disk.c (grub_disk_read): When there is a read error, always
20368 try to read only the necessary data.
f19dbdb7 20369
790707f2 20370 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
20371 disk/raid.c.
20372 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
20373 prototype.
20374 [GRUB_UTIL] (grub_raid_fini): Likewise.
20375 [GRUB_UTIL] (grub_lvm_init): Likewise.
f19dbdb7 20376 [GRUB_UTIL] (grub_lvm_fini): Likewise.
790707f2 20377 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
20378 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
20379 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
20380 and grub_raid_fini().
f19dbdb7 20381
03e58196 203822006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
20383
20384 * include/grub/types.h (__unused): Rename to UNUSED.
20385 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
20386 (grub_elf64_size): Likewise.
f19dbdb7 20387
ae4f23bf 203882006-11-03 Hollis Blanchard <hollis@penguinppc.org>
20389
20390 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
20391 grub_error_push and grub_error_pop in the error-handling path.
20392 (grub_elf32_load_segment): Only call grub_file_read with non-zero
20393 length.
20394
2166cc83 203952006-11-03 Hollis Blanchard <hollis@penguinppc.org>
20396
20397 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
20398 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
20399 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
20400 (kernel_elf_SOURCES): Likewise.
20401 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
20402 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
20403 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
20404 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
20405 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
20406 (elf_mod_SOURCES): New variable.
20407 (elf_mod_CFLAGS): Likewise.
20408 (elf_mod_LDFLAGS): Likewise.
20409 * include/grub/types.h (__unused): New macro.
20410 * include/grub/elfload.h: New file.
20411 * kern/elf.c: Likewise.
20412 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
20413 (ELF32_LOADMASK): New macro.
20414 (ELF64_LOADMASK): Likewise.
20415 (vmlinux): Removed.
20416 (grub_linux_load32): New function.
20417 (grub_linux_load64): Likewise.
20418 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
20419 Use grub_elf_t instead of grub_file_t.
20420
a09d5aa5 204212006-11-02 Hollis Blanchard <hollis@penguinppc.org>
20422
20423 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
20424 `catch_result' to struct set_color_args.
20425
d976fc51 204262006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
20427
20428 * normal/menu.c: Include grub/script.h.
20429 * normal/menu_entry.c: Likewise.
20430 * include/grub/normal.h: Do not include grub/script.h.
20431
67507549 204322006-10-27 Hollis Blanchard <hollis@penguinppc.org>
20433
20434 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
20435
69203a99 204362006-10-27 Hollis Blanchard <hollis@penguinppc.org>
20437
20438 * kern/disk.c (grub_disk_open): Print debug messages when opening a
20439 disk.
20440 (grub_disk_close): Print debug messages when closing a disk.
20441 (grub_disk_read): Print debug messages when disk read fails.
20442 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
20443 filesystem type.
20444 * kern/partition.c: Include misc.h.
20445 (grub_partition_iterate): Print debug messages when detecting
20446 partition type.
20447
e2b8278c 204482006-10-27 Hollis Blanchard <hollis@penguinppc.org>
20449
20450 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
20451 is negative.
20452 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
20453
97b2f2ff 204542006-10-26 Hollis Blanchard <hollis@penguinppc.org>
20455
20456 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
20457 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
20458
6555d655 204592006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
20460
20461 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
20462 instead of sizeof(lv). Patch by Michael Guntsche.
20463
4d42b77f 204642006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
20465
20466 * disk/lvm.c: Rename VGS to VG_LIST.
20467 (grub_lvm_iterate): Change VGS->LV to VG-LV.
20468 (grub_lvm_open): Likewise.
20469 Thanks to Michael Guntsche for finding this bug.
20470
5d74d927 204712006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
20472
20473 * configure.ac (AC_INIT): Bumped to 1.95.
20474
a1bb27e4 204752006-10-14 Robert Millan <rmh@aybabtu.com>
20476
20477 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
20478 with "/dev/.static/dev/md".
20479
e0994b8b 204802006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
20481
20482 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
20483 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
20484 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
20485 DRIVE_NAME are always freed.
20486
20487 * util/i386/pc/biosdisk.c (make_device_name): Add one into
20488 DOS_PART, as a DOS partition is counted from one instead of zero
20489 now. Reported by Robert Millan.
20490
ddd5cee9 204912006-10-14 Robert Millan <rmh@aybabtu.com>
20492
20493 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
20494 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
20495 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
20496 string returned by grub_guess_root_device.
20497 * util/i386/pc/grub-setup.c: Likewise.
20498 * util/i386/pc/grub-probefs.c: Likewise.
20499
20500 * util/i386/pc/grub-probefs.c: Rename to ...
20501 * util/i386/pc/grub-probe.c: ... this.
20502 * DISTLIST: Remove grub-probefs, add grub-probe.
20503 * conf/i386-efi.rmk: Likewise.
20504 * conf/i386-pc.rmk: Likewise.
20505 * util/i386/pc/grub-install.in: Likewise.
20506
20507 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
20508 choose which information we want to print.
20509
2b002173 205102006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
20511
20512 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
20513 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
20514 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
20515 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
20516 video/readers/tga.c and video/i386/pc/vbeutil.c.
20517
205182006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
20519
20520 Added support for RAID and LVM.
f19dbdb7 20521
2b002173 20522 * disk/lvm.c: New file.
20523 * disk/raid.c: Likewise.
20524 * include/grub/lvm.h: Likewise.
f19dbdb7 20525 * include/grub/raid.h: Likewise.
2b002173 20526 * include/grub/util/lvm.h: Likewise.
20527 * include/grub/util/raid.h: Likewise.
20528 * util/lvm.c: Likewise.
20529 * util/raid.c: Likewise.
20530
20531 * include/grub/disk.h (grub_disk_dev_id): Add
20532 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
20533 (grub_disk_get_size): New prototype.
20534 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
20535 returns a partition.
20536 (grub_disk_get_size): New function.
f19dbdb7 20537
2b002173 20538 * kern/i386/pc/init.c (make_install_device): Copy the prefix
20539 verbatim if grub_install_dos_part is -2.
20540
20541 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
20542 and LVM devices.
20543
20544 * util/i386/pc/grub-setup.c (setup): New argument
20545 MUST_EMBED. Force embedding of GRUB when the argument is
20546 true. Close FILE before returning.
20547 (main): Add support for RAID and LVM.
f19dbdb7 20548
2b002173 20549 * conf/common.rmk: Add RAID and LVM modules.
20550 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
20551 util/lvm.c.
20552 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
20553
20554 * kern/misc.c (grub_strstr): New function.
20555 * include/grub/misc.h (grub_strstr): New prototype.
20556
050548d0 205572006-10-10 Tristan Gingold <tristan.gingold@bull.net>
20558
20559 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
20560
da849d2d 205612006-10-05 Tristan Gingold <tristan.gingold@bull.net>
20562
20563 * kern/misc.c (grub_strtoull): Guess the base only if not
20564 specified.
20565
97b2f2ff 205662006-10-01 Hollis Blanchard <hollis@penguinppc.org>
4f0acd39 20567
20568 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
20569 PowerMac support.
20570
97b2f2ff 205712006-10-01 Hollis Blanchard <hollis@penguinppc.org>
fba51f48 20572
20573 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
20574
20575 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
20576 Remove `flags' argument. All callers changed.
20577 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
20578 (IEEE1275_IHANDLE_INVALID): New variable.
20579 (IEEE1275_CELL_INVALID): New variable.
20580 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
20581 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
20582 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
20583 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
20584 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
20585 codes from Open Firmware. All callers updated.
20586 (grub_ieee1275_next_property): Directly return Open Firmware return
20587 code.
20588 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
20589 Standardize error checking from `grub_ieee1275_get_property'.
20590 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
20591 `devalias' to `aliases'. Correct comments. Consolidate error paths.
20592
97b2f2ff 205932006-10-01 Hollis Blanchard <hollis@penguinppc.org>
cc6d3df3 20594
20595 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
20596 `instance_to_package_args' to `instance_to_path_args'.
20597
20598 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
20599 `grub_ieee1275_chosen'.
20600
20601 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
20602 `grub_ieee1275_interpret'.
20603
97b2f2ff 206042006-09-25 Hollis Blanchard <hollis@penguinppc.org>
02bb8acc 20605
20606 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
20607
97b2f2ff 206082006-09-25 Hollis Blanchard <hollis@penguinppc.org>
663b72f0 20609
20610 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
20611 (__cmpdi): Likewise.
20612
20613 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
20614 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
20615 `grub_ssize_t'.
20616
02bb8acc 20617 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
663b72f0 20618
20619 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
20620 to type `grub_ssize_t'.
20621 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
20622
7f9a8531 206232006-09-22 Marco Gerards <marco@gnu.org>
20624
20625 * normal/script.c (grub_script_create_cmdmenu): Skip leading
20626 newlines.
20627
b5ef1102 206282006-09-22 Marco Gerards <marco@gnu.org>
20629
20630 * commands/echo.c: New file.
20631
20632 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
20633
20634 * conf/common.rmk (echo_mod_SOURCES): New variable.
20635 (echo_mod_CFLAGS): Likewise.
20636 (echo_mod_LDFLAGS): Likewise.
20637
2cff3677 206382006-09-22 Marco Gerards <marco@gnu.org>
20639
20640 * normal/main.c (get_line): Malloc memory instead of using
20641 preallocated memory. Removed the arguments `cmdline' and
20642 `max_len'. Updated all callers.
20643
6ba4688b 206442006-09-22 Marco Gerards <marco@gnu.org>
20645
20646 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
20647 (normal_mod_DEPENDENCIES): Likewise.
20648
20649 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
20650 (normal_mod_DEPENDENCIES): Likewise.
20651
20652 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
20653
e02ac02c 206542006-09-22 Johan Rydberg <jrydberg@gnu.org>
20655
20656 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
20657 programs.
20658 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
20659 (normal_mod_DEPENDENCIES): Likewise.
20660 * conf/i386-pc.mk: Regenerate.
20661 * conf/i386-efi.mk: Likewise
20662 * conf/common.mk: Likewise.
20663 * conf/powerpc-ieee1275.mk: Likewise.
20664 * conf/sparc64-ieee1275.mk: Likewise.
f19dbdb7 20665
8d252e44 206662006-09-22 Robert Millan <rmh@aybabtu.com>
20667
20668 Sync with i386 version.
20669 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
20670 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
20671
209bf7ac 206722006-09-21 Robert Millan <rmh@aybabtu.com>
20673
20674 Import from GRUB Legacy (lib/device.c):
20675 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
20676 (init_device_map) [__linux__]: Add support for I2O devices.
20677
6b146090 206782006-09-14 Marco Gerards <marco@gnu.org>
20679
20680 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
20681 `-melf_i386'.
20682
e38600a8 206832006-09-14 Robert Millan <rmh@aybabtu.com>
2952da5d 20684
20685 * util/i386/pc/grub-install.in: Skip menu.lst when removing
20686 /boot/grub/*.lst.
78fa1790 20687
2952da5d 20688 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
6b146090 20689
2952da5d 20690 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
20691 before adding it to device.map.
20692
01b82a64 206932006-08-15 Johan Rydberg <jrydberg@gnu.org>
20694
fe6b695a 20695 * genmk.rb: Let GCC generate dependencies the first time it
01b82a64 20696 compiles a file; using the -MD option.
20697 * conf/common.mk: Regenerate.
20698 * conf/i386-pc.mk: Likewise.
20699 * conf/i386-efi.mk: Likewise.
20700 * conf/powerpc-ieee1275.mk: Likewise.
20701 * conf/sparc64-ieee1275.mk: Likewise.
f19dbdb7 20702
1064790d 207032006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
20704
20705 Move the prototypes of grub_setjmp and grub_longjmp to
20706 cpu/setjmp.h, so that each architecture may specify different
20707 attributes.
f19dbdb7 20708
1064790d 20709 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
20710 (grub_longjmp): Likewise.
20711 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
20712 (grub_longjmp): Likewise.
20713 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
20714 (grub_longjmp): Likewise.
20715
20716 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
20717 [!GRUB_UTIL] (grub_longjmp): Removed.
20718
29dda3ed 207192006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
20720
20721 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
20722 "color!" method does not return any value.
20723
ad2a06ed 207242006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
20725
20726 * include/grub/bitmap.h: New file.
20727
20728 * include/grub/i386/pc/vbeutil.h: Likewise.
20729
20730 * video/bitmap.c: Likewise.
20731
20732 * video/readers/tga.c: Likewise.
20733
20734 * video/i386/pc/vbeutil.c: Likewise.
20735
20736 * commands/videotest.c: Code cleanup and updated to reflect to new
20737 video API.
20738
20739 * term/gfxterm.c: Likewise.
20740
20741 * video/video.c: Likewise.
20742
20743 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
20744 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
20745 (bitmap_mod_SOURCES): New entry.
20746 (bitmap_mod_CFLAGS): Likewise.
20747 (bitmap_mod_LDFLAGS): Likewise.
20748 (tga_mod_SOURCES): Likewise.
20749 (tga_mod_CFLAGS): Likewise.
20750 (tga_mod_LDFLAGS): Likewise.
20751
20752 * include/grub/video.h (grub_video_blit_operators): New enum type.
20753 (grub_video_render_target): Changed as forward declaration and moved
20754 actual definition to be video driver specific.
20755 (grub_video_adapter.blit_bitmap): Added blitting operator.
20756 (grub_video_adapter.blit_render_target): Likewise.
20757 (grub_video_blit_bitmap): Likewise.
20758 (grub_video_blit_render_target): Likewise.
20759
20760 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
20761 driver specific render target definition.
20762 (grub_video_vbe_map_rgba): Added driver internal helper.
20763 (grub_video_vbe_unmap_color): Updated to use
20764 grub_video_i386_vbeblit_info.
20765 (grub_video_vbe_get_video_ptr): Likewise.
20766
20767 * include/grub/i386/pc/vbeblit.h
20768 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
20769 grub_video_i386_vbeblit_info.
20770 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
20771 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
20772 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
20773 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
20774 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
20775 (grub_video_i386_vbeblit_index_index): Likewise.
20776 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
20777 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
20778 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
20779 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
20780 operator.
20781 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
20782 operator.
20783
20784 * video/i386/pc/vbeblit.c: Updated to reflect changes on
20785 include/grub/i386/pc/vbeblit.h.
20786
20787 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
20788 Updated to use grub_video_i386_vbeblit_info.
20789 (grub_video_i386_vbefill_R8G8B8): Likewise.
20790 (grub_video_i386_vbefill_index): Likewise.
20791 (grub_video_i386_vbefill): Added generic filler.
20792
20793 * video/i386/pc/vbefill.c: Updated to reflect changes on
20794 include/grub/i386/pc/vbefill.h.
20795
20796 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
20797 grub_video_i386_vbeblit_info.
20798 (grub_video_vbe_unmap_color): Likewise.
20799 (grub_video_vbe_blit_glyph): Likewise.
20800 (grub_video_vbe_scroll): Likewise.
20801 (grub_video_vbe_draw_pixel): Removed function.
20802 (grub_video_vbe_get_pixel): Likewise.
20803 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
20804 updated code to use it.
20805 (common_blitter): Added common blitter for render target and bitmap.
20806 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
20807 (grub_video_vbe_blit_render_target): Likewise.
20808
bc8c036d 208092006-07-30 Johan Rydberg <jrydberg@gnu.org>
20810
20811 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
20812 is in text mode if there is no console control protocol instance
20813 available.
20814
684a8eff 208152006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
20816
20817 * include/grub/video.h: Code cleanup.
20818
20819 * include/grub/i386/pc/vbe.h: Likewise.
20820
20821 * video/i386/pc/vbe.c: Likewise.
20822
20823 * video/i386/pc/vbeblit.c: Likewise.
20824
20825 * video/i386/pc/vbefill.c: Likewise.
20826
20827 * video/video.c: Likewise. Also added more comments.
20828
5915059b 208292006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
20830
20831 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
20832 (struct grub_biosdisk_dap): Likewise.
20833
20834 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
20835 linkage settings for all functions.
20836
90ce5d56 208372006-07-12 Marco Gerards <marco@gnu.org>
20838
20839 * configure.ac (--enable-mm-debug): Fix typo.
20840
20841 * genkernsyms.sh.in: Use proper quoting for `CC'.
20842
43e7f879 208432006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
20844
20845 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
20846 (normal_mod_ASFLAGS): Remove "-m32".
20847
4889bdec 208482006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
20849
20850 * util/misc.c: Include config.h.
20851 [!HAVE_MEMALIGN]: Do not include malloc.h.
20852 (grub_memalign): Use posix_memalign, if present. Then, use
20853 memalign, if present. Otherwise, emit an error.
20854
20855 * util/grub-emu.c: Do not include malloc.h.
20856
20857 * include/grub/util/misc.h: Include unistd.h. This is required for
20858 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
20859 D. Eades III <hde@foobar-qux.org>.
20860
20861 * configure.ac (AC_GNU_SOURCE): Added.
20862 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
20863 type.
20864
fd39d4da 208652006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
20866
20867 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
20868 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
20869
b786f3b5 208702006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
20871
20872 * include/grub/types.h (grub_host_addr_t): Rename to
20873 grub_target_addr_t.
20874 (grub_host_off_t): Rename to grub_target_off_t.
20875 (grub_host_size_t): Rename to grub_target_size_t.
20876 (grub_host_ssize_t): Rename to grub_target_ssize_t.
20877 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
20878
20879 * include/grub/kernel.h (struct grub_module_header): Change type
20880 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
20881 (grub_module_info): Likewise.
f19dbdb7 20882
051988bb 208832006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
20884
20885 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
20886 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
20887 Velazquez <jesus.velazquez@gmail.com>.
20888
deae281b 208892006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
20890
20891 Count partitions from 1 instead of 0 in the string representation
20892 of partitions. Still use 0-based internally.
f19dbdb7 20893
deae281b 20894 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
20895 (sun_partition_map_iterate): Use grub_partition_t instead of
20896 struct grub_partition *. Cast DESC->START_CYLINDER to
20897 grub_uint64_t after converting the endian.
20898 (sun_partition_map_probe): Subtract 1 for PARTNUM.
20899 (sun_partition_map_get_name): Add 1 to P->INDEX.
20900
20901 * partmap/pc.c (grub_partition_parse): Subtract 1 for
20902 PCDATA->DOS_PART.
20903 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
20904
20905 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
20906 zero instead of one.
20907 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
20908 (gpt_partition_map_get_name): Add 1 into P->INDEX.
20909
20910 * partmap/apple.c (apple_partition_map_iterate): Change the type
20911 of POS to unsigned.
20912 (apple_partition_map_probe): Subtract 1 for PARTNUM.
20913 (apple_partition_map_get_name): Add 1 into P->INDEX.
20914
20915 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
20916 of POS to unsigned.
20917 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
20918 calculate the offset of a partition.
20919 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
20920 (amiga_partition_map_get_name): Add 1 into P->INDEX.
20921
20922 * partmap/acorn.c (acorn_partition_map_find): Change the type of
20923 SECTOR to grub_disk_addr_t.
20924 (acorn_partition_map_iterate): Likewise.
20925 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
20926 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
20927 top.
20928 (acorn_partition_map_get_name): Add 1 into P->INDEX.
20929
20930 * kern/i386/pc/init.c (make_install_device): Add 1 into
20931 GRUB_INSTALL_DOS_PART.
20932
20933 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
20934 conditional.
20935
524a1e6a 209362006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
20937
20938 Clean up the code to support 64-bit addressing in disks and
20939 files. This change is not enough for filesystems yet.
f19dbdb7 20940
524a1e6a 20941 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
20942 type of "start" to grub_uint64_t.
20943 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
20944 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
20945 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
20946 convert addresses.
20947
20948 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
20949 to grub_disk_addr_t.
20950
20951 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
20952 string.
20953
20954 * partmap/pc.c (pc_partition_map_iterate): Likewise.
20955
20956 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
20957 to char *.
20958
20959 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
20960
20961 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
20962
20963 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
20964
20965 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
20966 to grub_off_t, to detect an error from grub_file_seek.
20967 (grub_multiboot_load_elf32): Likewise.
20968
20969 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
20970 maximum unsigned long value when an overflow is detected.
20971 (grub_strtoull): New function.
20972 (grub_divmod64): Likewise.
20973 (grub_lltoa): use grub_divmod64.
20974
20975 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
20976 grub_disk_addr_t.
20977 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
20978 the pointer to next character. Use grub_strtoull instead of
20979 grub_strtoul.
20980 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
20981 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
20982 respectively.
20983
fe6b695a 20984 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
524a1e6a 20985 return value is signed.
20986 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
20987 test if OFFSET is less than zero, as OFFSET is unsigned now.
20988
20989 * kern/disk.c (struct grub_disk_cache): Change the type of
20990 "sector" to grub_disk_addr_t.
20991 (grub_disk_cache_get_index): Change the type of SECTOR to
20992 grub_disk_addr_t. Calculate the hash with SECTOR casted to
20993 unsigned after shifting.
20994 (grub_disk_cache_invalidate): Change the type of SECTOR to
20995 grub_disk_addr_t.
20996 (grub_disk_cache_unlock): Likewise.
20997 (grub_disk_cache_store): Likewise.
20998 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
20999 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
21000 grub_disk_addr_t and grub_uint64_t, respectively.
21001 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
21002 body, as the value of OFFSET is tweaked by
21003 grub_disk_check_range. Change the types of START_SECTOR, LEN and
21004 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
21005 respectively.
21006 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
21007 body, as the value of OFFSET is tweaked by
21008 grub_disk_check_range. Change the types of LEN and N to
21009 grub_size_t.
21010
21011 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
21012 and "saved_offset" to grub_off_t.
21013 (test_header): Cast BUF to char *.
21014 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
21015 to char *.
21016 (grub_gzio_read): Change the types of OFFSET and SIZE to
21017 grub_off_t and grub_size_t, respectively.
21018
21019 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
21020 Removed.
21021 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
21022 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
21023 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
21024 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
21025 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
21026
21027 * include/grub/types.h (grub_off_t): Unconditionally set to
21028 grub_uint64_t.
21029 (grub_disk_addr_t): Changed to grub_uint64_t.
21030
21031 * include/grub/partition.h (struct grub_partition): Change the
21032 types of "start", "len" and "offset" to grub_disk_addr_t,
21033 grub_uint64_t and grub_disk_addr_t, respectively.
21034 (grub_partition_get_start): Return grub_disk_addr_t.
21035 (grub_partition_get_len): Return grub_uint64_t.
21036
21037 * include/grub/misc.h (grub_strtoull): New prototype.
21038 (grub_divmod64): Likewise.
21039
21040 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
21041 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
21042 grub_off_t, respectively.
21043 All callers and references changed.
21044
21045 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
21046 grub_size_t in "read".
21047 All callers and references changed.
21048
21049 * include/grub/file.h (struct grub_file): Change the types of
21050 "offset" and "size" to grub_off_t and grub_off_t,
21051 respectively. Change the type of SECTOR to grub_disk_addr_t in
21052 "read_hook".
21053 (grub_file_read): Change the type of LEN to grub_size_t.
21054 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
21055 grub_off_t.
21056 (grub_file_size): Return grub_off_t.
21057 (grub_file_tell): Likewise.
21058 All callers and references changed.
21059
21060 * include/grub/disk.h (struct grub_disk_dev): Change the types of
21061 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
21062 "write".
21063 (struct grub_disk): Change the type of "total_sectors" to
21064 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
f19dbdb7 21065 "read_hook".
524a1e6a 21066 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
21067 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
21068 (grub_disk_write): Likewise.
21069 All callers and references changed.
21070
21071 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
21072 char * for grub_strncmp to silence gcc.
21073 (grub_iso9660_mount): Likewise.
21074 (grub_iso9660_mount): Likewise.
21075 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
21076 return statement.
21077 (grub_iso9660_iterate_dir): Likewise.
21078 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
21079
21080 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
21081 LEN to grub_disk_addr_t and grub_size_t, respectively.
21082
21083 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
21084
21085 * fs/jfs.c (grub_jfs_read_file): Likewise.
21086
21087 * fs/minix.c (grub_jfs_read_file): Likewise.
21088
21089 * fs/sfs.c (grub_jfs_read_file): Likewise.
21090
21091 * fs/ufs.c (grub_jfs_read_file): Likewise.
21092
21093 * fs/xfs.c (grub_jfs_read_file): Likewise.
21094
21095 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
21096 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
21097 respectively.
21098
21099 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
21100 BLKNR to -1 instead of returning GRUB_ERRNO.
21101 (grub_ext2_read_file): Change the types of SECTOR and
21102 LEN to grub_disk_addr_t and grub_size_t, respectively.
21103
21104 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
21105 LEN to grub_disk_addr_t and grub_size_t, respectively.
21106
21107 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
21108 grub_file_read.
21109
21110 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
21111 string. Do not cast SECTOR explicitly.
21112
21113 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
21114 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
21115 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
21116 grub_disk_addr_t and grub_size_t, respectively. If the sector is
21117 over 2TB and LBA mode is not supported, raise an error.
21118 (get_safe_sectors): New function.
21119 (grub_biosdisk_read): Use get_safe_sectors.
21120 (grub_biosdisk_write): Likewise.
21121
21122 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
21123 (grub_efidisk_write): Likewise.
21124
21125 * disk/loopback.c (delete_loopback): Cosmetic changes.
21126 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
21127 correctly.
21128 (grub_loopback_open): Likewise.
21129 (grub_loopback_read): Likewise. Also, change the type of POS to
21130 grub_off_t, and fix the usage of grub_memset.
21131
21132 * commands/i386/pc/play.c: Include grub/machine/time.h.
21133
21134 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
21135 print FILE->SIZE.
21136
21137 * commands/configfile.c: Include grub/env.h.
21138
21139 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
21140 GRUB_ERRNO directly instead. Change the type of POS to
21141 grub_off_t. Follow the coding standard.
21142
21143 * commands/blocklist.c: Include grub/partition.h.
21144 (grub_cmd_blocklist): Return an error if the underlying device is
21145 not a disk. Take the starting sector of a partition into account,
21146 if a partition is used.
21147
21148 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
21149 a length field.
21150 (lba_mode): Support 64-bit addresses.
21151 (chs_mode): Likewise.
21152 (copy_buffer): Adapted to the new offsets of a length field and a
21153 segment field.
21154 (blocklist_default_start): Allocate 64-bit space.
21155
21156 * boot/i386/pc/boot.S (force_lba): Removed.
21157 (boot_drive): Moved to under KERNEL_SECTOR.
fe987087 21158 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
524a1e6a 21159 space.
21160 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
21161 is useless.
21162 (lba_mode): Refactored to support a 64-bit address. More size
21163 optimization.
21164 (setup_sectors): Likewise.
21165
53af98ad 211662006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
21167
21168 * DISTLIST: Added include/grub/i386/linux.h. Removed
21169 include/grub/i386/pc/linux.h
21170
21171 * configure.ac (AC_INIT): Bumped to 1.94.
21172
21173 * config.guess: Updated from gnulib.
21174 * config.sub: Likewise.
21175 * install-sh: Likewise.
21176 * mkinstalldirs: Likewise.
21177
b4c1940a 211782006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
21179
21180 * conf/common.rmk (grub_modules_init.lst): Depended on
21181 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
21182 MODSRCFILES.
21183
21184 * genmk.rb (PModule::rule): Reverted the previous change.
21185
cfca1cfd 211862006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
21187
21188 * conf/common.rmk (grub_modules_init.lst): Depends on
21189 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
21190 that the target does not exist before producing.
21191 (grub_modules_init.h): Remove the target before generating.
21192 (grub_emu_init.c): Likewise.
21193
21194 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
21195
aa6d7826 211962006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
21197
21198 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
21199 for the target-specific tests. Make sure that we also have the
21200 up-to-date target variables for those tests.
21201
26c607b9 212022006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
21203
21204 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
21205 (PModule::rule): Likewise.
21206
0162321a 212072006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
21208
21209 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
21210 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
21211 target-specific flags should be prefixed.
21212 (PModule::rule): Likewise.
21213
6c826348 212142006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
21215
21216 * configure.ac (CMP): Check if cmp is available explicitly.
21217
b977bf01 212182006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
21219
21220 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
21221 (target_cpu): New variable.
21222 (pkglibdir): Use target_cpu instead of host_cpu.
f19dbdb7 21223
b977bf01 21224 * util/i386/pc/grub-install.in (host_cpu): Removed.
21225 (target_cpu): New variable.
21226 (pkglibdir): Use target_cpu instead of host_cpu.
21227
21228 * util/genmoddep.c: Removed.
f19dbdb7 21229
b977bf01 21230 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
21231 instead of GRUB_HOST_SIZEOF_VOID_P.
21232 * kern/dl.c: Likewise.
21233
21234 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
21235 ...
21236 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
21237 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
21238 (GRUB_TARGET_SIZEOF_LONG): ... this.
21239 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
21240 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
21241 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
21242 to ...
21243 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
21244 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
21245 (GRUB_TARGET_SIZEOF_LONG): ... this.
21246 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
21247 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
21248 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
21249 to ...
21250 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
21251 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
21252 (GRUB_TARGET_SIZEOF_LONG): ... this.
21253 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
21254 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
21255
21256 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
21257 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
21258 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
21259 instead of GRUB_HOST_SIZEOF_LONG.
21260 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
21261 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
21262 GRUB_CPU_WORDS_BIGENDIAN.
21263 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
21264 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
21265 grub_host_ssize_t.
21266
21267 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
21268 (genmoddep_SOURCES): Likewise.
21269 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
21270 (genmoddep_SOURCES): Likewise.
21271 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
21272 (genmoddep_SOURCES): Likewise.
21273 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
21274 Likewise.
21275 (genmoddep_SOURCES): Likewise.
21276
21277 * genmoddep.awk: New file.
21278
21279 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
21280 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
21281 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
21282 (PModule::rule): Likewise.
21283 (Program::rule): Likewise.
21284 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
21285 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
21286 respectively.
21287
21288 * configure.ac: Rewritten intensively to use host and target
21289 instead of build and host, respectively.
21290
21291 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
21292 (host_cpu): Removed.
21293 (target_cpu): New variable.
21294 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
21295 (BUILD_CC): Removed.
21296 (BUILD_CFLAGS): Likewise.
21297 (BUILD_CPPFLAGS): Likewise.
21298 (TARGET_CC): New variable.
21299 (TARGET_CFLAGS): Likewise.
21300 (TARGET_CPPFLAGS): Likewise.
21301 (TARGET_LDFLAGS): Likewise.
21302 (AWK): Likewise.
21303 (include): Use target_cpu instead of host_cpu.
21304 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
f19dbdb7 21305
b977bf01 21306 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
21307
f09771a1 213082006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
21309
21310 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
21311 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
21312 field 'false' to 'exec_on_false'.
21313 (grub_script_create_cmdif): Renamed argument names to reflect above
21314 changes.
21315
21316 * normal/execute.c (grub_script_execute_cmdif): Likewise.
21317
21318 * normal/script.c (grub_script_create_cmdif): Likewise.
21319
118f4fb3 213202006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
21321
21322 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
21323 top.
21324 (grub_hfsplus_btree_recptr): Likewise.
21325 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
21326 FILEBLOCK both to pass a block number and store next block
21327 number.
21328 (grub_hfsplus_read_block): Rewritten heavily to support an extent
21329 overflow file correctly. Specify errors appropriately, because
21330 fshelp expects that GRUB_ERRNO is set when fails. Reuse
21331 grub_hfsplus_btree_recptr to get the pointer to a found key.
21332 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
21333 is found.
21334
21335 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
21336 linux.mod.
21337 (_linux_mod_SOURCES): New variable.
21338 (_linux_mod_CFLAGS): Likewise.
21339 (_linux_mod_LDFLAGS): Likewise.
21340 (linux_mod_SOURCES): Likewise.
21341 (linux_mod_CFLAGS): Likewise.
21342 (linux_mod_LDFLAGS): Likewise.
21343
21344 * DISTLIST: Added loader/i386/efi/linux.c,
21345 loader/i386/efi/linux_normal.c and
21346 include/grub/i386/efi/loader.h.
21347
21348 * loader/i386/efi/linux.c: New file.
21349 * loader/i386/efi/linux_normal.c: Likewise.
21350 * include/grub/i386/efi/loader.h: Likewise.
21351
89a7d726 213522006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
21353
21354 * commands/blocklist.c: New file.
21355
21356 * DISTLIST: Added commands/blocklist.c.
21357
21358 * term/efi/console.c (grub_console_highlight_color): Use a lighter
43b553ad 21359 color for the background, and a darker color for the foreground.
89a7d726 21360 (grub_console_checkkey): Return READ_KEY.
21361 (grub_console_cls): Set the background to
21362 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
21363
21364 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
21365
21366 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
21367 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
21368
21369 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
21370 prototype.
21371
21372 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
21373 BG. The spec is wrong again.
21374
21375 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
21376 prototype.
21377 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
21378
21379 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
21380 commands/blocklist.c.
21381 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
f19dbdb7 21382
89a7d726 21383 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
21384 (blocklist_mod_SOURCES): New variable.
21385 (blocklist_mod_CFLAGS): Likewise.
21386 (blocklist_mod_LDFLAGS): Likewise.
21387
75c8f258 213882006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
21389
21390 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
21391 duplication.
21392 (lba_mode): Use %eax more intensively to reduce the code size.
21393
da2eb181 213942006-05-20 Marco Gerards <marco@gnu.org>
21395
21396 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
21397
21398 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
21399 for `menuentry'.
21400 (script): Accept leading newlines.
21401 (newlines): New rule to describe 0 or more newlines.
21402 (commands): Accept `command' with trailing newline. Fixed the
21403 order in which arguments were passed to `grub_script_add_cmd'.
21404 Accept commands separated by newlines.
21405 (function): Changed to accept newlines.
21406 (menuentry) Rewritten.
21407
21408 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
21409 front of the list, instead of to the end.
21410
577b4050 214112006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
21412
21413 * util/i386/pc/grub-install.in (bindir): New variable.
21414 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
21415 Shaver <lbgwjl@gmail.com>.
21416
0d6e1189 214172006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
21418
21419 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
21420 grub/machine/linux.h
21421 * loader/i386/pc/linux.c: Likewise.
21422
21423 * include/grub/i386/pc/linux.h: Moved to ...
21424 * include/grub/i386/linux.h: ... here.
21425
21426 * include/grub/i386/linux.h (struct linux_kernel_params): New
21427 struct.
f19dbdb7 21428
31b86e9f 214292006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
21430
21431 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
21432 checking.
21433 (grub_video_vbe_blit_glyph): Likewise.
21434 (grub_video_vbe_blit_bitmap): Likewise.
21435 (grub_video_vbe_blit_render_target): Likewise.
21436
83b984de 214372006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
21438
21439 * configure.ac (--with-platform): Properly quote the square
21440 brackets.
21441
5f0413bd 214422006-05-08 Marco Gerards <marco@gnu.org>
21443
21444 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
21445 this...
21446 (kernel_elf_HEADERS): ...to this. Updated all users.
21447 (grubof_symlist.c): Renamed from this...
21448 (kernel_elf_symlist.c): ...to this. Updated all users.
21449 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
21450 (grubof_SOURCES): Renamed from this...
21451 (kernel_elf_SOURCES): ...to this.
21452 (grubof_HEADERS): Renamed from this...
21453 (kernel_elf_HEADERS): ...to this.
21454 (grubof_CFLAGS): Renamed from this...
21455 (kernel_elf_CFLAGS): ...to this.
21456 (grubof_ASFLAGS): Renamed from this...
21457 (kernel_elf_ASFLAGS): ...to this.
21458 (grubof_LDFLAGS): Renamed from this...
21459 (kernel_elf_LDFLAGS): ...to this.
21460
21461 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
21462 this...
21463 (kernel_elf_HEADERS): ...to this. Updated all users.
21464 (grubof_symlist.c): Renamed from this...
21465 (kernel_elf_symlist.c): ...to this. Updated all users.
21466 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
21467 (grubof_SOURCES): Renamed from this...
21468 (kernel_elf_SOURCES): ...to this.
21469 (grubof_HEADERS): Renamed from this...
21470 (kernel_elf_HEADERS): ...to this.
21471 (grubof_CFLAGS): Renamed from this...
21472 (kernel_elf_CFLAGS): ...to this.
21473 (grubof_ASFLAGS): Renamed from this...
21474 (kernel_elf_ASFLAGS): ...to this.
21475 (grubof_LDFLAGS): Renamed from this...
21476 (kernel_elf_LDFLAGS): ...to this.
21477
21478 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
21479 `kernel.elf' instead of `grubof'.
21480
05568c2e 214812006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
21482
21483 Add --with-platform to configure. Use pkglibdir instead of
21484 pkgdatadir. This is reported by Roger Leigh.
21485
21486 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
21487 (host_vendor): Likewise.
21488 (host_os): Likewise.
21489 (pkgdatadir): Likewise.
21490 (platform): New variable.
21491 (pkglibdir): Likewise.
21492 Use PKGLIBDIR instead of PKGDATADIR.
f19dbdb7 21493
05568c2e 21494 * util/i386/pc/grub-install.in (datadir): Removed.
21495 (host_vendor): Likewise.
21496 (host_os): Likewise.
21497 (pkgdatadir): Likewise.
21498 (platform): New variable.
21499 (pkglibdir): Likewise.
21500 Use PKGLIBDIR instead of PKGDATADIR.
21501
21502 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
21503 instead of GRUB_DATADIR.
21504 (main): Likewise.
21505 * util/i386/pc/grub-mkimage.c (usage): Likewise.
21506 (main): Likewise.
21507 * util/i386/efi/grub-mkimage.c (usage): Likewise.
21508 (main): Likewise.
21509
21510 * configure.ac (--with-platform): New option.
21511 Use PLATFORM instead of HOST_VENDOR to specify a platform.
21512
21513 * Makefile.in: Include a makefile based on PLATFORM instead of
21514 HOST_VENDOR.
21515 (pkgdatadir): Not appended by the machine type.
21516 (pkglibdir): Appended by the machine type.
21517 (host_vendor): Removed.
21518 (platform): New variable.
21519 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
21520 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
21521 (uninstall): Likewise.
21522
4e93851c 215232006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
21524
21525 Use the environment context in the menu. Remove the commands
21526 "default" and "timeout", and use variables instead.
f19dbdb7 21527
4e93851c 21528 * normal/menu.c: Include grub/env.h.
21529 (print_entry): Cast TITLE to silence gcc.
21530 (get_timeout): New function.
21531 (set_timeout): Likewise.
21532 (get_entry_number): Likewise.
21533 (run_menu): Use a default entry, a fallback entry and a timeout
21534 in the environment variables "default", "fallback" and
21535 "timeout". Also, tweak the default entry if it is not within the
21536 current menu entries.
21537 (grub_menu_run): Use a fallback entry in the environment variable
21538 "fallback".
21539
21540 * normal/main.c (read_config_file): Do not initialize
21541 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
21542 NEWMENU->TIMEOUT.
21543 (grub_normal_execute): Use a data slot to store the menu.
21544
21545 * include/grub/normal.h (struct grub_menu): Removed default_entry,
21546 fallback_entry and timeout.
21547 (struct grub_menu_list): Removed.
21548 (grub_menu_list_t): Likewise.
21549 (struct grub_context): Likewise.
21550 (grub_context_t): Likewise.
21551 (grub_context_get): Likewise.
21552 (grub_context_get_current_menu): Likewise.
21553 (grub_context_push_menu): Likewise.
21554 (grub_context_pop_menu): Likewise.
21555 (grub_default_init): Likewise.
21556 (grub_default_fini): Likewise.
21557 (grub_timeout_init): Likewise.
21558 (grub_timeout_fini): Likewise.
21559
21560 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
21561 and timeout.mod.
21562 (normal_mod_SOURCES): Removed normal/context.c.
21563
21564 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
21565 commands/default.c, commands/timeout.c and normal/context.c.
21566 (normal_mod_SOURCES): Removed normal/context.c.
21567
21568 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
21569 commands/timeout.c and normal/context.c.
21570 (normal_mod_SOURCES): Removed normal/context.c.
21571
21572 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
21573 commands/default.c, commands/timeout.c and normal/context.c.
21574 (normal_mod_SOURCES): Removed normal/context.c.
21575
21576 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
21577 timeout.mod.
21578 (default_mod_SOURCES): Removed.
21579 (default_mod_CFLAGS): Likewise.
21580 (default_mod_LDFLAGS): Likewise.
21581 (timeout_mod_SOURCES): Removed.
21582 (timeout_mod_CFLAGS): Likewise.
21583 (timeout_mod_LDFLAGS): Likewise.
21584
21585 * DISTLIST: Removed commands/default.c, commands/timeout.c and
21586 normal/context.c.
21587
21588 * commands/default.c: Removed.
21589 * commands/timeout.c: Likewise.
21590 * normal/context.c: Likewise.
21591
1eb9cc1d 215922006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
21593
21594 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
21595
385bd9c1 215962006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
21597
21598 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
21599 "next" to "prev" for readability.
21600 (struct grub_env_sorted_var): New struct.
21601 (grub_env_context): Renamed to ...
21602 (initial_context): ... this.
21603 (grub_env_var_context): Renamed to ...
21604 (current_context): ... this.
21605 (grub_env_find): Look only at CURRENT_CONTEXT.
21606 (grub_env_context_open): Rewritten to copy exported variables from
21607 previous context.
21608 (grub_env_context_close): Rewritten according to the new
21609 scheme. Also, add an assertion to prevent the initial context from
21610 removed.
21611 (grub_env_insert): Removed the code for the sorted list.
21612 (grub_env_remove): Likewise.
21613 (grub_env_export): Simply mark the variable with
21614 GRUB_ENV_VAR_GLOBAL.
21615 (grub_env_set): A cosmetic change for naming consistency.
21616 (grub_env_get): Likewise.
21617 (grub_env_unset): Likewise.
21618 (grub_env_iterate): Rewritten to sort variables within this
21619 function.
21620 (grub_register_variable_hook): Fixed for naming consistency. Call
21621 grub_env_find again, only if NAME is not found at the first time.
21622 (mangle_data_slot_name): New function.
21623 (grub_env_set_data_slot): Likewise.
21624 (grub_env_get_data_slot): Likewise.
21625 (grub_env_unset_data_slot): Likewise.
21626
21627 * include/grub/env.h (grub_env_var_type): New enum.
21628 (GRUB_ENV_VAR_LOCAL): New constant.
21629 (GRUB_ENV_VAR_GLOBAL): Likewise.
21630 (GRUB_ENV_VAR_DATA): Likewise.
21631 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
21632 "type".
21633 (grub_env_set): Replace VAR with NAME for consistency.
21634 (grub_register_variable_hook): Likewise.
21635 (grub_env_export): Specify the name of the argument.
21636 (grub_env_set_data_slot): New prototype.
21637 (grub_env_get_data_slot): Likewise.
21638 (grub_env_unset_data_slot): Likewise.
21639
7f362539 216402006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
21641
21642 Extend the loader so that GRUB can accept a loader which comes
21643 back to GRUB when a loaded image exits. Also, this change adds
21644 support for a chainloader on EFI.
f19dbdb7 21645
7f362539 21646 * term/efi/console.c: Include grub/misc.h.
21647 (grub_console_checkkey): Display a scan code on the top for
21648 debugging. This will be removed once the EFI port gets stable.
21649 Correct the scan code mapping.
21650
21651 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
21652 allocate memory from larger regions, in order to reduce the number
21653 of allocated regions. Otherwise, the MacOSX loader panics.
21654 (filter_memory_map): Avoid less than 1MB for compatibility with
21655 other loaders.
21656 (add_memory_regions): Allocate from the tail of a region, if
21657 possible, to avoid allocating a region near to 1MB, for the MacOSX
21658 loader.
21659
21660 * kern/efi/init.c (grub_efi_set_prefix): Specify
21661 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
21662
21663 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
21664 argument IMAGE_HANDLE and specify it to get a loaded image.
21665 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
21666 grub_efi_get_loaded_image.
fe6b695a 21667 (grub_efi_get_filename): Divide the length by the size of
7f362539 21668 grub_efi_char16_t.
21669 (grub_efi_get_device_path): New function.
21670 (grub_efi_print_device_path): Print End Device Path nodes. Divide
21671 the length by the size of grub_efi_char16_t for a file path device
21672 path node.
21673
21674 * kern/loader.c (grub_loader_noreturn): New variable.
21675 (grub_loader_set): Accept a new argument NORETURN. Set
21676 GRUB_LOADER_NORETURN to NORETURN.
21677 All callers changed.
21678 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
21679 grub_machine_fini.
21680
21681 * include/grub/efi/efi.h (grub_efi_get_device_path): New
21682 prototype.
21683 (grub_efi_get_loaded_image): Take an argument to specify an image
21684 handle.
21685
21686 * include/grub/loader.h (grub_loader_set): Added one more argument
21687 NORETURN.
21688
21689 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
21690 instead of grub_efi_open_protocol.
21691 (grub_efidisk_get_device_name): Likewise.
21692 (grub_efidisk_close): Print a newline.
21693 (grub_efidisk_get_device_handle): Fixed to use
21694 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
21695 GRUB_EFI_DEVICE_PATH_TYPE.
21696
21697 * disk/efi/efidisk.c (device_path_guid): Moved to ...
21698 * kern/efi/efi.c (device_path_guid): ... here.
21699
21700 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
21701 chain.mod.
21702 (kernel_mod_HEADERS): Added efi/disk.h.
21703 (_chain_mod_SOURCES): New variable.
21704 (_chain_mod_CFLAGS): Likewise.
21705 (_chain_mod_LDFLAGS): Likewise.
21706 (chain_mod_SOURCES): Likewise.
21707 (chain_mod_CFLAGS): Likewise.
21708 (chain_mod_LDFLAGS): Likewise.
21709
21710 * DISTLIST: Added include/grub/efi/chainloader.h,
21711 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
21712
21713 * include/grub/efi/chainloader.h: New file.
21714 * loader/efi/chainloader.c: Likewise.
21715 * loader/efi/chainloader_normal.c: Likewise.
21716
c0111d6e 217172006-04-30 Marco Gerards <marco@gnu.org>
21718
21719 * commands/configfile.c (grub_cmd_source): New function.
21720 (GRUB_MOD_INIT): Register the commands `source' and `.'.
21721 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
21722
df5341da 217232006-04-30 Marco Gerards <marco@gnu.org>
21724
21725 * normal/execute.c (grub_script_execute_cmd): Change the return
21726 type to `grub_err_t'. Correctly return the error.
21727 (grub_script_execute_cmdline): In case a command line is not a
21728 command or a function, try to interpret it as an assignment.
21729
f85934bd 217302006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
21731
21732 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
21733 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
21734 skip a node whose name is obviously invalid as UTF-16,
21735 i.e. contains a NUL character. Stop the iteration when the last
21736 directory entry is found. Instead of using the return value of
21737 grub_hfsplus_btree_iterate_node, store the value in RET and use
21738 it, because the iterator can be stopped by the last directory
21739 entry.
21740
8f8a2cf8 217412006-04-30 Marco Gerards <marco@gnu.org>
21742
21743 * include/grub/env.h (grub_env_export): New prototype. Reported
21744 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
21745
a27e84ce 217462006-04-30 Marco Gerards <marco@gnu.org>
21747
21748 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
21749 size of the extents in a catalog file record.
21750
eaef0553 217512006-04-29 Marco Gerards <marco@gnu.org>
21752
21753 * commands/configfile.c (grub_cmd_configfile): Execute the
21754 configfile within its own context.
21755
21756 * include/grub/env.h (grub_env_context_open): New prototype.
21757 (grub_env_context_close): Likewise.
21758
21759 * kern/env.c (grub_env): Removed.
21760 (grub_env_sorted): Likewise.
21761 (grub_env_context): New variable.
21762 (grub_env_var_context): Likewise.
21763 (grub_env_find): Search both the active context and the global
21764 context.
21765 (grub_env_context_open): New function.
21766 (grub_env_context_close): Likewise.
21767 (grub_env_insert): Likewise.
21768 (grub_env_remove): Likewise.
21769 (grub_env_export): Likewise.
21770 (grub_env_set): Changed to use helper functions to avoid code
21771 duplication.
21772 (grub_env_iterate): Rewritten so both the current context and the
21773 global context are being used.
21774
21775 * normal/command.c (export_command): New function.
21776 (grub_command_init): Register the `export' function.
21777
7b455f4d 217782006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
21779
21780 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
21781 explicitly to suppress gcc's warnings.
21782 * fs/fat.c (grub_fat_find_dir): Likewise.
21783 (grub_fat_label): Likewise.
21784 * fs/xfs.c (grub_xfs_read_inode): Likewise.
21785 (grub_xfs_mount): Likewise.
21786 (grub_xfs_label): Likewise.
21787 * fs/affs.c (grub_affs_mount): Likewise.
21788 (grub_affs_label): Likewise.
21789 (grub_affs_iterate_dir): Likewise.
21790 * fs/sfs.c (grub_sfs_mount): Likewise.
21791 (grub_sfs_iterate_dir): Likewise.
21792 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
21793 * fs/hfs.c (grub_hfs_mount): Likewise.
21794 (grub_hfs_cmp_catkeys): Likewise.
21795 (grub_hfs_find_dir): Likewise.
21796 (grub_hfs_dir): Likewise.
21797 (grub_hfs_label): Likewise.
21798 * fs/jfs.c (grub_jfs_mount): Likewise.
21799 (grub_jfs_opendir): Likewise.
21800 (grub_jfs_getent): Likewise.
21801 (grub_jfs_lookup_symlink): Likewise.
21802 (grub_jfs_label): Likewise.
21803 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
21804 (grub_hfsplus_iterate_dir): Likewise.
21805 (grub_hfsplus_btree_iterate_node): Made static.
21806
21807 * util/grub-emu.c (prefix): New variable.
21808 (grub_machine_set_prefix): New function.
21809 (main): Do not set the environment variable "prefix" here. Only
21810 set PREFIX, which is used later by grub_machine_set_prefix.
21811
21812 * include/grub/video.h: Do not include grub/symbol.h.
21813 (grub_video_register): Not exported. This symbol is not defined in
21814 the kernel.
21815 (grub_video_unregister): Likewise.
21816 (grub_video_iterate): Likewise.
21817 (grub_video_setup): Likewise.
21818 (grub_video_restore): Likewise.
21819 (grub_video_get_info): Likewise.
21820 (grub_video_get_blit_format): Likewise.
21821 (grub_video_set_palette): Likewise.
21822 (grub_video_get_palette): Likewise.
21823 (grub_video_set_viewport): Likewise.
21824 (grub_video_get_viewport): Likewise.
21825 (grub_video_map_color): Likewise.
21826 (grub_video_map_rgb): Likewise.
21827 (grub_video_map_rgba): Likewise.
21828 (grub_video_fill_rect): Likewise.
21829 (grub_video_blit_glyph): Likewise.
21830 (grub_video_blit_bitmap): Likewise.
21831 (grub_video_blit_render_target): Likewise.
21832 (grub_video_scroll): Likewise.
21833 (grub_video_swap_buffers): Likewise.
21834 (grub_video_create_render_target): Likewise.
21835 (grub_video_delete_render_target): Likewise.
21836 (grub_video_set_active_render_target): Likewise.
21837
21838 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
21839 Undefined.
21840 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
21841
21842 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
21843 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
21844 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
21845 instead of $(srcdir)/genkernsyms.sh.
21846
21847 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
21848 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
21849 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
21850 instead of $(srcdir)/genkernsyms.sh.
21851
21852 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
21853 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
21854 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
21855 instead of $(srcdir)/genkernsyms.sh.
21856
21857 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
21858 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
21859 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
21860 instead of $(srcdir)/genkernsyms.sh.
21861
21862 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
21863 genkernsyms.sh.
21864
21865 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
21866 genkernsyms.sh.
21867 (gensymlist.sh): New target.
21868 (genkernsyms.sh): Likewise.
21869
21870 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
21871 genkernsyms.sh.in and gensymlist.sh.in.
21872
21873 * genkernsyms.sh: Removed.
21874 * gensymlist.sh: Likewise.
f19dbdb7 21875
7b455f4d 21876 * genkernsyms.sh.in: New file.
21877 * gensymlist.sh.in: Likewise.
21878
1885bb27 218792006-04-25 Hollis Blanchard <hollis@penguinppc.org>
21880
21881 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
21882 clobber "prefix", since we may have already set it manually.
21883
71538dff 218842006-04-25 Hollis Blanchard <hollis@penguinppc.org>
21885
21886 * kern/misc.c (abort): New alias for grub_abort.
21887
2965c7cc 218882006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
21889
21890 A new machine-specific function "grub_machine_set_prefix" is
21891 defined. This is called after loading modules, so that a prefix
21892 initialization can use modules. Also, this change adds an
21893 intensive debugging feature for the memory manager via the
21894 configure option "--enable-mm-debug".
f19dbdb7 21895
2965c7cc 21896 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
21897 PART.LEN.
21898
21899 * kern/sparc64/ieee1275/init.c (abort): Removed.
21900 (grub_stop): Likewise.
21901 (grub_exit): New function.
21902 (grub_set_prefix): Renamed to ...
21903 (grub_machine_set_prefix): ... this.
21904 (grub_machine_init): Do not call grub_set_prefix.
21905
21906 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
21907 (grub_machine_set_prefix): ... this.
21908 (grub_machine_init): Do not call grub_set_prefix.
21909
21910 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
21911 (grub_machine_init): Do not set the prefix here.
21912
21913 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
21914
21915 * kern/efi/init.c: Include grub/mm.h.
21916 (grub_efi_set_prefix): New function.
21917
21918 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
21919 (grub_efi_get_filename): New function.
21920 (grub_print_device_path): Renamed to ...
21921 (grub_efi_print_device_path): ... this.
21922
21923 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
21924 [MM_DEBUG] (grub_realloc): Likewise.
21925 [MM_DEBUG] (grub_free): Likewise.
21926 [MM_DEBUG] (grub_memalign): Likewise.
21927 [MM_DEBUG] (grub_mm_debug): New variable.
21928 [MM_DEBUG] (grub_debug_malloc): New function.
21929 [MM_DEBUG] (grub_debug_free): New function.
21930 [MM_DEBUG] (grub_debug_realloc): New function.
21931 [MM_DEBUG] (grub_debug_memalign): New function.
21932
21933 * kern/misc.c (grub_abort): Print a newline to distinguish
21934 the message.
21935
21936 * kern/main.c (grub_main): Call grub_machine_set_prefix and
21937 grub_set_root_dev after loading modules. This is necessary when
21938 setting a prefix depends on modules.
21939
21940 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
21941 (grub_efi_print_device_path): ... this.
21942 (grub_efi_get_filename): New prototype.
21943 (grub_efi_set_prefix): Likewise.
21944
21945 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
21946 and grub/disk.h.
21947 (grub_efidisk_get_device_handle): New prototype.
21948 (grub_efidisk_get_device_name): Likewise.
21949
21950 * include/grub/mm.h: Include config.h.
21951 (MM_DEBUG): Removed.
21952 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
21953 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
21954 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
21955 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
21956 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
21957 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
21958 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
21959 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
21960 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
21961
21962 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
21963
21964 * disk/efi/efidisk.c: Include grub/partition.h.
21965 (iterate_child_devices): New function.
21966 (add_device): First, compare only last device path nodes, so that
21967 devices are sorted by the types.
21968 (grub_efidisk_get_device_handle): New function.
21969 (grub_efidisk_get_device_name): Likewise.
21970
21971 * configure.ac (--enable-mm-debug): New option to enable the
21972 memory manager debugging feature. This makes the binary much
21973 bigger, so is disabled by default.
21974
9cacaa17 219752006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
21976
21977 Use grub_abort instead of grub_stop, and grub_exit must be
21978 define in each architecture now. Also, this change adds support
21979 for EFI disks.
f19dbdb7 21980
9cacaa17 21981 * util/i386/pc/grub-probefs.c: Include grub/term.h.
21982 (grub_getkey): New function.
21983 (grub_term_get_current): Likewise.
21984
21985 * util/i386/pc/grub-setup.c: Include grub/term.h.
21986 (grub_getkey): New function.
21987 (grub_term_get_current): Likewise.
21988
21989 * util/misc.c (grub_stop): Renamed to ...
21990 (grub_exit): ... this.
21991
21992 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
21993 (grub_exit): ... this.
21994 (grub_machine_init): Use grub_abort instead of abort.
21995 (grub_stop): Removed.
21996
21997 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
21998 abort.
21999
22000 * kern/i386/pc/startup.S (grub_exit): New function.
22001 (cold_reboot): New label.
22002
22003 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
22004 (grub_efi_init): Call grub_efidisk_init.
22005 (grub_efi_fini): Call grub_efidisk_fini.
22006
22007 * kern/efi/efi.c: Include grub/mm.h.
22008 (grub_efi_console_control_guid): Renamed to ...
22009 (console_control_guid): ... this.
22010 (grub_efi_loaded_image_guid): Renamed to ...
22011 (loaded_image_guid): ... this.
22012 (grub_efi_locate_handle): New function.
22013 (grub_efi_open_protocol): Likewise.
22014 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
22015 GRUB_EFI_CONSOLE_CONTROL_GUID.
22016 (grub_efi_exit): Removed.
22017 (grub_stop): Likewise.
22018 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
22019 (grub_exit): New function.
22020 (grub_print_device_path): Likewise.
22021
22022 * kern/rescue.c (grub_rescue_cmd_exit): New function.
22023 (grub_enter_rescue_mode): Register "exit".
22024
22025 * kern/misc.c (grub_real_dprintf): A cosmetic change.
22026 (grub_abort): New function.
22027
22028 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
22029
22030 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
22031
22032 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
22033
22034 * include/grub/efi/efi.h (grub_efi_exit): Removed.
22035 (grub_print_device_path): New prototype.
22036 (grub_efi_locate_handle): Likewise.
22037 (grub_efi_open_protocol): Likewise.
22038
22039 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
22040 * disk/efi/efidisk.c: Likewise.
22041
22042 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
22043
22044 * include/grub/efi/console_control.h
22045 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
22046
22047 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
22048 last 8 bytes as an array.
22049 (GRUB_EFI_DISK_IO_GUID): New macro.
22050 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
22051 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
22052 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
22053 grub_uint8_t.
22054 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
22055 (struct grub_efi_device_path): Rename the member "sub_type" to
22056 "subtype".
22057 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
22058 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
22059 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
22060 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
22061 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
22062 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
22063 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
22064 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
22065 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
22066 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
22067 (struct grub_efi_pci_device_path): New structure.
22068 (grub_efi_pci_device_path_t): New type.
22069 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
22070 (struct grub_efi_pccard_device_path): New structure.
22071 (grub_efi_pccard_device_path_t): New type.
22072 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
22073 (struct grub_efi_memory_mapped_device_path): New structure.
22074 (grub_efi_memory_mapped_device_path_t): New type.
22075 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
22076 (struct grub_efi_vendor_device_path): New structure.
22077 (grub_efi_vendor_device_path_t): New type.
22078 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
22079 (struct grub_efi_controller_device_path): New structure.
22080 (grub_efi_controller_device_path_t): New type.
22081 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
22082 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
22083 (struct grub_efi_acpi_device_path): New structure.
22084 (grub_efi_acpi_device_path_t): New type.
22085 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
22086 (struct grub_efi_expanded_acpi_device_path): New structure.
22087 (grub_efi_expanded_acpi_device_path_t): New type.
22088 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
22089 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
22090 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
22091 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
22092 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
22093 (struct grub_efi_atapi_device_path): New structure.
22094 (grub_efi_atapi_device_path_t): New type.
22095 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
22096 (struct grub_efi_fibre_channel_device_path): New structure.
22097 (grub_efi_fibre_channel_device_path_t): New type.
22098 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
22099 (struct grub_efi_1394_device_path): New structure.
22100 (grub_efi_1394_device_path_t): New type.
22101 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
22102 (struct grub_efi_usb_device_path): New structure.
22103 (grub_efi_usb_device_path_t): New type.
22104 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
22105 (struct grub_efi_usb_class_device_path): New structure.
22106 (grub_efi_usb_class_device_path_t): New type.
22107 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
22108 (struct grub_efi_i2o_device_path): New structure.
22109 (grub_efi_i2o_device_path_t): New type.
22110 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
22111 (struct grub_efi_mac_address_device_path): New structure.
22112 (grub_efi_mac_address_device_path_t): New type.
22113 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
22114 (struct grub_efi_ipv4_device_path): New structure.
22115 (grub_efi_ipv4_device_path_t): New type.
22116 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
22117 (struct grub_efi_ipv6_device_path): New structure.
22118 (grub_efi_ipv6_device_path_t): New type.
22119 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
22120 (struct grub_efi_infiniband_device_path): New structure.
22121 (grub_efi_infiniband_device_path_t): New type.
22122 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
22123 (struct grub_efi_uart_device_path): New structure.
22124 (grub_efi_uart_device_path_t): New type.
22125 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
22126 (struct grub_efi_vendor_messaging_device_path): New structure.
22127 (grub_efi_vendor_messaging_device_path_t): New type.
22128 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
22129 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
22130 (struct grub_efi_hard_drive_device_path): New structure.
22131 (grub_efi_hard_drive_device_path_t): New type.
22132 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
22133 (struct grub_efi_cdrom_device_path): New structure.
22134 (grub_efi_cdrom_device_path_t): New type.
22135 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
22136 (struct grub_efi_vendor_media_device_path): New structure.
22137 (grub_efi_vendor_media_device_path_t): New type.
22138 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
22139 (struct grub_efi_file_path_device_path): New structure.
22140 (grub_efi_file_path_device_path_t): New type.
22141 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
22142 (struct grub_efi_protocol_device_path): New structure.
22143 (grub_efi_protocol_device_path_t): New type.
22144 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
22145 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
22146 (struct grub_efi_bios_device_path): New structure.
22147 (grub_efi_bios_device_path_t): New type.
22148 (struct grub_efi_disk_io): New structure.
22149 (grub_efi_disk_io_t): New type.
22150 (struct grub_efi_block_io_media): New structure.
22151 (grub_efi_block_io_media_t): New type.
22152 (struct grub_efi_block_io): New structure.
22153 (grub_efi_block_io_t): New type.
22154
22155 * include/grub/misc.h (grub_stop): Removed.
22156 (grub_exit): New prototype.
22157 (grub_abort): Likewise.
22158
22159 * include/grub/disk.h (enum grub_disk_dev_id): Added
22160 GRUB_DISK_DEVICE_EFIDISK_ID.
22161
22162 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
22163 disk/efi/efidisk.c.
22164 (kernel_syms.lst): Remove the target if an error occurs.
22165
49986a9f 221662006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
22167
22168 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
22169 as it was simply too buggy.
22170
970d3b8a 221712006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
22172
22173 * kern/misc.c (grub_lltoa): New function.
22174 (grub_vsprintf): Added support for the long long suffix,
22175 i.e. "ll".
22176
ff04ec24 221772006-04-20 Hollis Blanchard <hollis@penguinppc.org>
22178
22179 * Makefile.in (LDFLAGS): Add variable.
22180 (LD): Remove variable.
22181 * configure.ac: Add -m32 to LDFLAGS.
22182 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
22183 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
22184 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
22185 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
22186 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
22187 variables.
22188 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
22189 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
22190 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
22191
37e5e1a4 221922006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
22193
22194 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
22195 length for unknown glyph.
22196
c352d8dd 221972006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
22198
2eab1c0d 22199 Add support for pre-loaded modules into the EFI port.
f19dbdb7 22200
2eab1c0d 22201 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
22202 completely. Accept one more argument DIR. The caller has changed.
22203
22204 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
22205
22206 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
22207 (grub_efi_loaded_image_guid): New variable.
22208 (grub_efi_get_loaded_image): New function.
22209 (grub_arch_modules_addr): Likewise.
22210
22211 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
22212 prototype.
22213
22214 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
22215 (struct grub_efi_loaded_image): New structure.
22216 (grub_efi_loaded_image_t): New type.
22217
222182006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
f19dbdb7 22219
c352d8dd 22220 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
22221 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
22222 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
22223
6d01d6b4 222242006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
22225
22226 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
22227
976a4ea0 222282006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
22229
22230 * DISTLIST: Added include/grub/efi/console.h,
22231 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
22232 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
22233
22234 * include/grub/efi/console.h: New file.
22235 * include/grub/efi/time.h: Likewise.
22236 * include/grub/i386/efi/kernel.h: Likewise.
22237 * kern/efi/init.c: Likewise.
22238 * kern/efi/mm.c: Likewise.
22239 * term/efi/console.c: Likewise.
f19dbdb7 22240
976a4ea0 22241 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
22242 (grub_stop): Removed.
22243 (grub_get_rtc): Likewise.
22244 (grub_machine_init): Simply call grub_efi_init.
22245 (grub_machine_fini): Call grub_efi_fini.
22246
22247 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
22248 (grub_efi_output_string): Removed.
22249 (grub_efi_stall): New function.
22250 (grub_stop): Likewise.
22251 (grub_get_rtc): Likewise.
22252
22253 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
22254 (grub_efi_stall): New prototype.
22255 (grub_efi_allocate_pages): Likewise.
22256 (grub_efi_free_pages): Likewise.
22257 (grub_efi_get_memory_map): Likewise.
22258 (grub_efi_mm_init): Likewise.
22259 (grub_efi_mm_fini): Likewise.
22260 (grub_efi_init): Likewise.
22261 (grub_efi_fini): Likewise.
22262
22263 * include/grub/i386/efi/time.h: Do not include
22264 grub/symbol.h. Include grub/efi/time.h.
22265 (GRUB_TICKS_PER_SECOND): Removed.
22266 (grub_get_rtc): Likewise.
22267
22268 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
22269 Added padding. The EFI spec is buggy.
22270 (GRUB_EFI_BLACK): New macro.
22271 (GRUB_EFI_BLUE): Likewise.
22272 (GRUB_EFI_GREEN): Likewise.
22273 (GRUB_EFI_CYAN): Likewise.
22274 (GRUB_EFI_RED): Likewise.
22275 (GRUB_EFI_MAGENTA): Likewise.
22276 (GRUB_EFI_BROWN): Likewise.
22277 (GRUB_EFI_LIGHTGRAY): Likewise.
22278 (GRUB_EFI_BRIGHT): Likewise.
22279 (GRUB_EFI_DARKGRAY): Likewise.
22280 (GRUB_EFI_LIGHTBLUE): Likewise.
22281 (GRUB_EFI_LIGHTGREEN): Likewise.
22282 (GRUB_EFI_LIGHTCYAN): Likewise.
22283 (GRUB_EFI_LIGHTRED): Likewise.
22284 (GRUB_EFI_LIGHTMAGENTA): Likewise.
22285 (GRUB_EFI_YELLOW): Likewise.
22286 (GRUB_EFI_WHITE): Likewise.
22287 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
22288 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
22289 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
22290 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
22291 (GRUB_EFI_BACKGROUND_RED): Likewise.
22292 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
22293 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
22294 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
22295 (GRUB_EFI_TEXT_ATTR): Likewise.
22296
22297 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
22298 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
22299 (kernel_mod_HEADERS): Added efi/time.h.
22300
83709125 223012006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
22302
22303 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
22304 include/grub/efi/api.h, include/grub/efi/console_control.h,
22305 include/grub/efi/efi.h, include/grub/efi/pe32.h,
22306 include/grub/i386/efi/time.h, kern/efi/efi.c,
22307 kern/i386/efi/init.c, kern/i386/efi/startup.S,
22308 and util/i386/efi/grub-mkimage.c.
22309
22310 * Makefile.in (RMKFILES): Added i386-efi.rmk.
22311
22312 * genmk.rb (PModule#rule): Do not export symbols if
22313 #{prefix}_EXPORTS is set to "no".
22314
22315 * conf/i386-efi.mk: New file.
22316 * conf/i386-efi.rmk: Likewise.
22317 * include/grub/efi/api.h: Likewise.
22318 * include/grub/efi/console_control.h: Likewise.
22319 * include/grub/efi/efi.h: Likewise.
22320 * include/grub/efi/pe32.h: Likewise.
22321 * include/grub/i386/efi/time.h: Likewise.
22322 * kern/efi/efi.c: Likewise.
22323 * kern/i386/efi/init.c: Likewise.
22324 * kern/i386/efi/startup.S: Likewise.
22325 * util/i386/efi/grub-mkimage.c: Likewise.
22326
223272006-04-17 Marco Gerards <marco@gnu.org>
bfa2bd9e 22328
22329 * include/grub/script.h: Include <grub/parser.h> and
22330 "grub_script.tab.h".
22331 (struct grub_lexer_param): New struct.
22332 (struct grub_parser_param): Likewise.
22333 (grub_script_create_arglist): Pass the state in an argument.
22334 (grub_script_add_arglist): Likewise.
22335 (grub_script_create_cmdline): Likewise.
22336 (grub_script_create_cmdblock): Likewise.
22337 (grub_script_create_cmdif): Likewise.
22338 (grub_script_create_cmdmenu): Likewise.
22339 (grub_script_add_cmd): Likewise.
22340 (grub_script_arg_add): Likewise.
22341 (grub_script_lexer_ref): Likewise.
22342 (grub_script_lexer_deref): Likewise.
22343 (grub_script_lexer_record_start): Likewise.
22344 (grub_script_lexer_record_stop): Likewise.
22345 (grub_script_mem_record): Likewise.
22346 (grub_script_mem_record_stop): Likewise.
22347 (grub_script_malloc): Likewise.
22348 (grub_script_yylex): Likewise.
22349 (grub_script_yyparse): Likewise.
22350 (grub_script_yyerror): Likewise.
22351 (grub_script_yylex): Likewise.
22352 (grub_script_lexer_init): Return the state.
22353
22354 * normal/lexer.c (grub_script_lexer_state): Removed variable.
22355 (grub_script_lexer_done): Likewise.
22356 (grub_script_lexer_getline): Likewise.
22357 (grub_script_lexer_refs): Likewise.
22358 (script): Likewise.
22359 (newscript): Likewise.
22360 (record): Likewise.
22361 (recording): Likewise.
22362 (recordpos): Likewise.
22363 (recordlen): Likewise.
22364 (grub_script_lexer_init): Return the state instead of setting
22365 global variables.
22366 (grub_script_lexer_ref): Use the newly added argument for state
22367 instead of globals.
22368 (grub_script_lexer_deref): Likewise.
22369 (grub_script_lexer_record_start): Likewise.
22370 (grub_script_lexer_record_stop): Likewise.
22371 (recordchar): Likewise.
22372 (nextchar): Likewise.
22373 (grub_script_yylex2): Likewise.
22374 (grub_script_yylex): Likewise.
22375 (grub_script_yyerror): Likewise.
22376
22377 * normal/parser.y (func_mem): Removed variable.
22378 (menu_entry): Likewise.
22379 (err): Likewise.
22380 (%lex-param): New parser option.
22381 (%parse-param): Likewise.
22382 (script): Always return the AST.
22383 (argument): Pass the state around.
22384 (arguments): Likewise.
22385 (grubcmd): Likewise.
22386 (commands): Likewise.
22387 (function): Likewise.
22388 (menuentry): Likewise.
22389 (if_statement): Likewise.
22390 (if): Likewise.
22391
22392 * normal/script.c (grub_script_memused): Removed variable.
22393 (grub_script_parsed): Likewise.
22394 (grub_script_malloc): Added a state argument. Use that instead of
22395 global variables.
22396 (grub_script_mem_record): Likewise.
22397 (grub_script_mem_record_stop): Likewise.
22398 (grub_script_arg_add): Likewise.
22399 (grub_script_add_arglist): Likewise.
22400 (grub_script_create_cmdline): Likewise.
22401 (grub_script_create_cmdif): Likewise.
22402 (grub_script_create_cmdmenu): Likewise.
22403 (grub_script_add_cmd): Likewise.
22404 (grub_script_parse): Setup the state before calling the parser.
f19dbdb7 22405
e2a8c904 224062006-04-16 Marco Gerards <marco@gnu.org>
6de2ee99 22407
22408 * normal/command.c (grub_command_init): Remove the title command.
22409
22410 * normal/lexer.c (grub_script_yylex): Renamed from this...
22411 (grub_script_yylex2): ... to this.
22412 (grub_script_yylex): New function. Temporary
22413 introduced to filter some tokens.
22414 (grub_script_yyerror): Print a newline.
22415
22416 * normal/main.c (read_config_file): Output information about the
22417 lines that contain errors. Wait for a key after all lines have
22418 been processed. Don't return an empty menu.
22419
22420 * normal/parser.y (func_mem): Don't initialize.
22421 (menu_entry): Likewise.
22422 (err): New variable.
22423 (script): Don't return anything when an error was encountered.
22424 (ws, returns): Removed rules.
22425 (argument): Disabled concatenated variable support.
22426 (arguments): Remove explicit separators.
22427 (grubcmd): Likewise.
22428 (function): Likewise.
22429 (menuentry): Likewise.
22430 (if): Likewise.
22431 (commands): Likewise. Add error handling.
22432
22433 * normal/script.c (grub_script_create_cmdline): If
22434 `grub_script_parsed' is 0, assume the parser encountered an error.
22435
c9a86192 224362006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
22437
22438 * configure.ac: Add support for EFI. Fix the typo
22439 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
22440
70f3b243 224412006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
22442
22443 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
22444 foreign multibyte characters should be shown correctly.
22445
65f201ad 224462006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
22447
22448 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
22449 calculation.
22450 (read_config_file): Made it to close file before returning.
22451
b4b93674 224522006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
22453
22454 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
22455 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
22456 video/i386/pc/vbefill.c.
22457
22458 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
22459 video/i386/pc/vbefill.c.
22460
22461 * include/grub/video.h (grub_video_blit_format): New enum.
22462 (grub_video_mode_info): Added new member blit_format.
22463 (grub_video_get_blit_format): New function prototype.
22464
22465 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
22466 function prototype.
22467 (grub_video_vbe_map_rgb): Likewise.
22468 (grub_video_vbe_unmap_color): Likewise.
22469
22470 * include/grub/i386/pc/vbeblit.h: New file.
22471
22472 * include/grub/i386/pc/vbefill.h: New file.
22473
22474 * video/video.c (grub_video_get_blit_format): New function.
22475 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
22476 (grub_video_vbe_map_rgb): Likewise.
22477 (grub_video_vbe_unmap_color): Likewise.
22478
22479 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
22480 optimized fills.
22481 (grub_video_vbe_blit_render_target): Changed to use more optimized
22482 blits.
22483 (grub_video_vbe_setup): Added detection for optimized settings.
22484 (grub_video_vbe_create_render_target): Likewise.
22485
22486 * video/i386/pc/vbeblit.c: New file.
22487
22488 * video/i386/pc/vbefill.c: New file.
22489
c2379b9c 224902006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
22491
22492 * font/manager.c (grub_font_get_glyph): Removed font fixup from
22493 here...
22494
22495 * util/unifont2pff.rb: ... and moved it to here. Improved argument
22496 parsing to support both hex and dec ranges. If filename was missing
22497 show usage information.
22498
bd0d7896 224992006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
22500
22501 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
22502 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
22503
22504 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
22505 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
22506 (video_mod_SOURCES): Added.
22507 (video_mod_CFLAGS): Likewise.
22508 (video_mod_LDFLAGS): Likewise.
22509 (gfxterm_mod_SOURCES): Likewise.
22510 (gfxterm_mod_CFLAGS): Likewise.
22511 (gfxterm_mod_LDFLAGS): Likewise.
22512 (videotest_mod_SOURCES): Likewise.
22513 (videotest_mod_CFLAGS): Likewise.
22514 (videotest_mod_LDFLAGS): Likewise.
22515 (vesafb_mod_SOURCES): Removed.
22516 (vesafb_mod_CFLAGS): Likewise.
22517 (vesafb_mod_LDFLAGS): Likewise.
22518 (vga_mod_SOURCES): Likewise.
22519 (vga_mod_CFLAGS): Likewise.
22520 (vga_mod_LDFLAGS): Likewise.
22521
22522 * commands/videotest.c: New file.
22523
22524 * font/manager.c (fill_with_default_glyph): Modified to use
22525 grub_font_glyph.
22526 (grub_font_get_glyph): Likewise.
22527 (fontmanager): Renamed from this...
22528 (font_manager): ... to this.
22529
22530 * include/grub/font.h (grub_font_glyph): Added new structure.
22531 (grub_font_get_glyph): Modified to use grub_font_glyph.
22532
22533 * include/grub/misc.h (grub_abs): Added as inline function.
22534
22535 * include/grub/video.h: New file.
22536
22537 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
22538 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
22539 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
22540 (grub_vbe_get_controller_info): Renamed from this...
22541 (grub_vbe_bios_get_controller_info): ... to this.
22542 (grub_vbe_get_mode_info): Renamed from this...
22543 (grub_vbe_bios_get_mode_info): ... to this.
22544 (grub_vbe_set_mode): Renamed from this...
22545 (grub_vbe_bios_set_mode): ... to this.
22546 (grub_vbe_get_mode): Renamed from this...
22547 (grub_vbe_bios_get_mode): ... to this.
22548 (grub_vbe_set_memory_window): Renamed from this...
22549 (grub_vbe_bios_set_memory_window): ... to this.
22550 (grub_vbe_get_memory_window): Renamed from this...
22551 (grub_vbe_bios_get_memory_window): ... to this.
22552 (grub_vbe_set_scanline_length): Renamed from this...
22553 (grub_vbe_set_scanline_length): ... to this.
22554 (grub_vbe_get_scanline_length): Renamed from this...
22555 (grub_vbe_bios_get_scanline_length): ... to this.
22556 (grub_vbe_set_display_start): Renamed from this...
22557 (grub_vbe_bios_set_display_start): ... to this.
22558 (grub_vbe_get_display_start): Renamed from this...
22559 (grub_vbe_bios_get_display_start): ... to this.
22560 (grub_vbe_set_palette_data): Renamed from this...
22561 (grub_vbe_bios_set_palette_data): ... to this.
22562 (grub_vbe_set_pixel_rgb): Removed.
22563 (grub_vbe_set_pixel_index): Likewise.
22564
22565 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
22566 from this...
22567 (grub_vbe_bios_get_controller_info): ... to this.
22568 (grub_vbe_get_mode_info): Renamed from this...
22569 (grub_vbe_bios_get_mode_info): ... to this.
22570 (grub_vbe_set_mode): Renamed from this...
22571 (grub_vbe_bios_set_mode): ... to this.
22572 (grub_vbe_get_mode): Renamed from this...
22573 (grub_vbe_bios_get_mode): ... to this.
22574 (grub_vbe_set_memory_window): Renamed from this...
22575 (grub_vbe_bios_set_memory_window): ... to this.
22576 (grub_vbe_get_memory_window): Renamed from this...
22577 (grub_vbe_bios_get_memory_window): ... to this.
22578 (grub_vbe_set_scanline_length): Renamed from this...
22579 (grub_vbe_set_scanline_length): ... to this.
22580 (grub_vbe_get_scanline_length): Renamed from this...
22581 (grub_vbe_bios_get_scanline_length): ... to this.
22582 (grub_vbe_set_display_start): Renamed from this...
22583 (grub_vbe_bios_set_display_start): ... to this.
22584 (grub_vbe_get_display_start): Renamed from this...
22585 (grub_vbe_bios_get_display_start): ... to this.
22586 (grub_vbe_set_palette_data): Renamed from this...
22587 (grub_vbe_bios_set_palette_data): ... to this.
22588 (grub_vbe_bios_get_controller_info): Fixed problem with registers
22589 getting corrupted after calling it. Added more pushes and pops.
22590 (grub_vbe_bios_set_mode): Likewise.
22591 (grub_vbe_bios_get_mode): Likewise.
22592 (grub_vbe_bios_get_memory_window): Likewise.
22593 (grub_vbe_bios_set_scanline_length): Likewise.
22594 (grub_vbe_bios_get_scanline_length): Likewise.
22595 (grub_vbe_bios_get_display_start): Likewise.
22596 (grub_vbe_bios_set_palette_data): Likewise.
22597
22598 * normal/cmdline.c (cl_set_pos): Refresh the screen.
22599 (cl_insert): Likewise.
22600 (cl_delete): Likewise.
22601
22602 * term/gfxterm.c: New file.
22603
22604 * term/i386/pc/vesafb.c: Removed file.
22605
22606 * video/video.c: New file.
22607
22608 * video/i386/pc/vbe.c (real2pm): Added new function.
22609 (grub_video_vbe_draw_pixel): Likewise.
22610 (grub_video_vbe_get_video_ptr): Likewise.
22611 (grub_video_vbe_get_pixel): Likewise
22612 (grub_video_vbe_init): Likewise.
22613 (grub_video_vbe_fini): Likewise.
22614 (grub_video_vbe_setup): Likewise.
22615 (grub_video_vbe_get_info): Likewise.
22616 (grub_video_vbe_set_palette): Likewise.
22617 (grub_video_vbe_get_palette): Likewise.
22618 (grub_video_vbe_set_viewport): Likewise.
22619 (grub_video_vbe_get_viewport): Likewise.
22620 (grub_video_vbe_map_color): Likewise.
22621 (grub_video_vbe_map_rgb): Likewise.
22622 (grub_video_vbe_map_rgba): Likewise.
22623 (grub_video_vbe_unmap_color): Likewise.
22624 (grub_video_vbe_fill_rect): Likewise.
22625 (grub_video_vbe_blit_glyph): Likewise.
22626 (grub_video_vbe_blit_bitmap): Likewise.
22627 (grub_video_vbe_blit_render_target): Likewise.
22628 (grub_video_vbe_scroll): Likewise.
22629 (grub_video_vbe_swap_buffers): Likewise.
22630 (grub_video_vbe_create_render_target): Likewise.
22631 (grub_video_vbe_delete_render_target): Likewise.
22632 (grub_video_vbe_set_active_render_target): Likewise.
22633 (grub_vbe_set_pixel_rgb): Remove function.
22634 (grub_vbe_set_pixel_index): Likewise.
22635 (index_color_mode): Remove static variable.
22636 (active_mode): Likewise.
22637 (framebuffer): Likewise.
22638 (bytes_per_scan_line): Likewise.
22639 (grub_video_vbe_adapter): Added new static variable.
22640 (framebuffer): Likewise.
22641 (render_target): Likewise.
22642 (initial_mode): Likewise.
22643 (mode_in_use): Likewise.
22644 (mode_list): Likewise.
22645
5f97350b 226462006-03-10 Marco Gerards <marco@gnu.org>
22647
22648 * configure.ac (AC_INIT): Bumped to 1.93.
22649
22650 * DISTLIST: Added `include/grub/hfs.h'.
22651
a3c5c6f8 226522006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
22653
22654 * boot/i386/pc/boot.S (general_error): Before looping, try INT
22655 18H, which might help the BIOS falling back to next boot media.
22656
6de53d26 226572006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
22658
22659 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
22660 Poe Chen <poe.poechen@gmail.com>.
22661
77c4a393 226622006-01-17 Marco Gerards <marco@gnu.org>
22663
22664 * include/grub/normal.h: Include <grub/script.h>.
22665 (grub_command_list): Removed struct.
22666 (grub_command_list_t): Removed type.
22667 (grub_menu_entry): Remove members `num' and `command_list'. Add
22668 members `commands' and `sourcecode'.
22669 * include/grub/script.h: Add inclusion guards.
22670 (grub_script_cmd_menuentry): New struct.
22671 (grub_script_execute_menuentry): New prototype.
22672 (grub_script_lexer_record_start): Likewise.
22673 (grub_script_lexer_record_stop): Likewise.
22674 * normal/execute.c (grub_script_execute_menuentry): New function.
22675 * normal/lexer.c (record, recording, recordpos, recordlen): New
22676 variables.
22677 (grub_script_lexer_record_start): New function.
22678 (grub_script_lexer_record_stop): Likewise.
22679 (recordchar): Likewise.
22680 (nextchar): Likewise.
22681 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
22682 2048 as the buffer size. Add the tokens `menuentry' and `@'.
22683 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
22684 (current_menu): New variable.
22685 (free_menu): Mainly rewritten.
22686 (grub_normal_menu_addentry): New function.
22687 (read_config_file): Rewritten.
22688 * normal/menu.c (run_menu_entry): Mainly rewritten.
fe987087 22689 * normal/menu_entry.c (make_screen): Rewritten the code to insert
77c4a393 22690 the menu entry.
22691 (run): Mainly rewritten.
22692 * normal/parser.y (menu_entry): New variable.
22693 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
22694 (menuentry): New rule.
22695 (command): Add `menuentry'.
22696 (if_statement): Allow additional returns before `fi'.
22697 * normal/script.c (grub_script_create_cmdmenu): New function.
22698
144f1f98 226992006-01-03 Marco Gerards <marco@gnu.org>
22700
22701 * INSTALL: GNU Bison is required.
22702 * configure.ac: Rewritten the test to detect Bison.
22703 * Makefile.in (YACC): New variable. Reported by Xun Sun
22704 <xun.sun.cn@gmail.com>.
22705
af4b2d89 227062006-01-03 Marco Gerards <marco@gnu.org>
22707
22708 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
22709 the HFS+ filesystem to filesystem blocks.
22710 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
22711 GCC warning is silenced.
22712
15643b71 227132006-01-03 Marco Gerards <marco@gnu.org>
22714
22715 * partmap/apple.c (apple_partition_map_iterate): Convert the data
22716 read from disk from big endian to host byte order.
22717
00905879 227182006-01-03 Hollis Blanchard <hollis@penguinppc.org>
22719
22720 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
22721 documentation.
22722 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
22723 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
22724 embedded HFS+ filesystem.
22725 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
22726 (grub_hfs_sblock): Move from here...
22727 * include/grub/hfs.h: To here... New file.
22728 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
22729 documentation.
22730 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
22731 New macros.
22732 (grub_hfsplus_volheader): Change type of member `magic' to
22733 `grub_uint16_t'.
22734 (grub_hfsplus_data): Add new member `embedded_offset'.
22735 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
22736 returned block.
22737 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
22738 Calculate the offset.
22739
8899bc3e 227402005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
22741
22742 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
22743 Removed.
22744 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
22745
ae8c0277 227462005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
22747
22748 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
22749 ENV->NAME is NULL after allocating ENV->VALUE.
22750
07084456 227512005-12-25 Marco Gerards <marco@gnu.org>
22752
22753 * kern/env.c (grub_env_set): Rewritten the error handling code.
22754
4750f5f1 227552005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
22756
22757 * geninit.sh: Made more robust, and more portable.
22758
50214199 227592005-12-25 Marco Gerards <marco@gnu.org>
22760
22761 Add support for Apple HFS+ filesystems.
f19dbdb7 22762
50214199 22763 * fs/hfsplus.c: New file.
22764
22765 * DISTLIST: Added `fs/hfsplus.c'.
22766
22767 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
22768 (hfsplus_mod_SOURCES): New variable.
22769 (hfsplus_mod_CFLAGS): Likewise.
22770 (hfsplus_mod_LDFLAGS): Likewise.
22771 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
22772 (grub_setup_SOURCES): Likewise.
22773 (grub_mkdevicemap_SOURCES): Likewise.
22774 (grub_emu_SOURCES): Likewise.
22775 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
22776
22777 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
22778
22779 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
22780
befaed6c 227812005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
22782
22783 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
22784 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
22785 include/grub/parser.h, include/grub/script.h, kern/parser.c,
22786 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
22787 normal/lexer.c, normal/parser.y, normal/script.c, and
22788 partmap/gpt.c.
22789 Removed kern/sparc64/cache.c.
22790
22791 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
22792 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
22793 grub_emu_init.c.
22794
22795 * configure.ac (AC_INIT): Bumped to 1.92.
22796
6a124103 227972005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
22798
22799 * kern/err.c (grub_error_push): Added new function to support error
22800 stacks.
22801 (grub_error_pop): Likewise.
22802 (grub_error_stack_items): New local variable to support error stacks.
22803 (grub_error_stack_pos): Likewise.
22804 (grub_error_stack_assert): Likewise.
22805 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
22806 stack depth.
22807 (grub_print_error): Added support to print errors from error stack.
22808
22809 * include/grub/err.h (grub_error_push): Added function prototype.
22810 (grub_error_pop): Likewise.
22811
be973c1b 228122005-12-09 Hollis Blanchard <hollis@penguinppc.org>
22813
22814 * configure.ac: Accept `powerpc64' as host_cpu.
22815 (amd64): Rename to `biarch32'.
22816
22817 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
22818 non-cacheline-aligned addresses.
22819
22820 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
22821 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
22822 if `size' is non-zero.
22823
b04216ab 228242005-12-03 Marco Gerards <mgerards@xs4all.nl>
22825
22826 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
22827 and `cd' to make sure the filename is not prefixed with a
22828 directory name.
22829 (pkgdata_MODULES): Add `gpt.mod'.
22830 (gpt_mod_SOURCES): New variable.
22831 (gpt_mod_CFLAGS): Likewise.
22832 (gpt_mod_LDFLAGS): Likewise.
22833
22834 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
22835
22836 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
22837 New macro.
22838
22839 * partmap/gpt.c: New file.
22840
22841 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
22842 GPT partition map is detected.
22843
41730ed9 228442005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
22845
22846 * commands/i386/pc/play.c: New file.
22847 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
22848 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
22849 macros.
f19dbdb7 22850
95dc3643 228512005-11-27 Marco Gerards <mgerards@xs4all.nl>
22852
22853 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
22854 ((unused))' to silence gcc warning.
22855
1569ec51 228562005-11-26 Hollis Blanchard <hollis@penguinppc.org>
22857
22858 * configure.ac: Correct `AC_PROG_YACC' test.
22859
9abde152 228602005-11-22 Hollis Blanchard <hollis@penguinppc.org>
22861
22862 * util/powerpc/ieee1275/grub-install.in: Run the mount point
22863 check before installing files.
22864
44b83271 228652005-11-22 Mike Small <smallm@panix.com>
22866
22867 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
22868 number regex so multidigit numbers are recognized correctly.
22869
228702005-11-22 Mike Small <smallm@panix.com>
22871
22872 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
22873 debugging message before attempting to claim memory.
22874 (grub_rescue_cmd_initrd): Add a claim debugging message and try
22875 multiple addresses in case of failure.
22876
9c12956b 228772005-11-22 Hollis Blanchard <hollis@penguinppc.org>
22878
22879 * term/tparm.c (get_space): Remove empty `if' statement.
22880
22881 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
22882
22883 * kern/parser.c (check_varstate): Rename `state' to 's'.
22884
aeaf81d9 228852005-11-22 Hollis Blanchard <hollis@penguinppc.org>
22886
22887 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
22888 variable definitions to the beginning of each function. Sort stack
22889 variables by size.
22890 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
22891 `buf' argument to `char *'.
22892
79bbb63f 228932005-11-22 Hollis Blanchard <hollis@penguinppc.org>
22894
22895 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
22896 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
fe6b695a 22897 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
79bbb63f 22898 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
22899 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
22900 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
22901 configfile.mod, search.mod, gzio.mod and test.mod.
22902 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
22903 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
22904 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
22905 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
22906 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
22907 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
22908 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
22909 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
22910 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
22911 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
22912 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
22913 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
22914 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
22915 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
22916 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
22917 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
22918 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
22919 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
22920 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
22921 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
22922 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
22923 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
22924 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
22925
22926 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
22927 `grep --include'.
22928 (pkgdata_MODULES): Add test.mod.
22929
233b1628 229302005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
22931
22932 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
22933 appending to variables with "+=".
22934 (PModule): Use full pathname to generate *.lst filenames.
22935
22936 * Makefile.in: Fixed list rules moved from genmk.rb.
22937 (.DELETE_ON_ERROR): New special target.
22938 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
22939
22940 * conf/i386-pc.rmk: Include conf/common.mk.
22941 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
fe6b695a 22942 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
233b1628 22943 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
22944 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
22945 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
22946 configfile.mod, search.mod, gzio.mod and test.mod.
22947 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
22948 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
22949 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
22950 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
22951 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
22952 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
22953 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
22954 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
22955 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
22956 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
22957 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
22958 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
22959 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
22960 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
22961 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
22962 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
22963 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
22964 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
22965 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
22966 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
22967 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
22968 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
22969 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
22970 here...
22971 * conf/common.rmk: ... to here. New file.
22972
22973 * conf/common.mk: New file.
22974
16f820c8 229752005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
22976
22977 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
22978 (grub_script.tab.c): ... here.
22979
22980 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
22981 (grub_script.tab.c): ... here.
22982
22983 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
22984 (grub_script.tab.c): ... here.
22985
22986 * normal/command.c (grub_command_find): Fixed a memory leak of
22987 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
22988
63ba1554 229892005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
22990
22991 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
22992 "@" which marks the start of a comment on ARM.
22993 (VARIABLE): Likewise.
22994
7f67dc13 229952005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
22996
79bbb63f 22997 Add support for Linux/ADFS partition tables.
7f67dc13 22998
22999 * partmap/acorn.c: New file.
23000
23001 * include/grub/acorn_filecore.h: Likewise.
23002
23003 * DISTLIST: Added `partmap/acorn.c' and
23004 `include/grub/acorn_filecore.h'.
f19dbdb7 23005
7f67dc13 23006 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
23007 `partmap/acorn.c'.
23008 (pkgdata_MODULES): Add `acorn.mod'.
23009 (acorn_mod_SOURCES): New variable.
23010 (acorn_mod_CFLAGS): Likewise.
23011
23012 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
23013 `partmap/acorn.c'.
23014 (pkgdata_MODULES): Add `acorn.mod'.
23015 (acorn_mod_SOURCES): New variable.
23016 (acorn_mod_CFLAGS): Likewise.
23017
23018 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
23019 (pkgdata_MODULES): Add `acorn.mod'.
23020 (acorn_mod_SOURCES): New variable.
23021 (acorn_mod_CFLAGS): Likewise.
23022 (acorn_mod_LDFLAGS): Likewise.
23023
23024 * include/types.h (grub_disk_addr_t): New typedef.
23025
6d099807 230262005-11-13 Marco Gerards <mgerards@xs4all.nl>
23027
23028 * geninit.sh: New file.
23029
23030 * geninitheader.sh: Likewise.
23031
23032 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
23033 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
23034 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
23035 * commands/configfile.c (grub_configfile_init)
23036 (grub_configfile_fini): Likewise.
23037 * commands/default.c (grub_default_init, grub_default_fini):
23038 Likewise.
23039 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
23040 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
23041 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
23042 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
23043 Likewise.
23044 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
23045 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
23046 Likewise.
23047 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
fe6b695a 23048 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
6d099807 23049 Likewise.
23050 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
23051 Likewise.
fe6b695a 23052 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
6d099807 23053 Likewise.
23054 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
23055 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
23056 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
23057 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
23058 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
23059 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
23060 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
23061 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
23062 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
23063 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
23064 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
23065 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
23066 * partmap/amiga.c (grub_amiga_partition_map_init)
23067 (grub_amiga_partition_map_fini): Likewise.
23068 * partmap/apple.c (grub_apple_partition_map_init)
23069 (grub_apple_partition_map_fini): Likewise.
23070 * partmap/pc.c (grub_pc_partition_map_init)
23071 (grub_pc_partition_map_fini): Likewise.
23072 * partmap/sun.c (grub_sun_partition_map_init,
23073 grub_sun_partition_map_fini): Likewise.
23074 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
23075 Likewise.
23076
23077 * util/grub-emu.c: Include <grub_modules_init.h>.
23078 (main): Don't initialize and de-initialize any modules directly,
23079 use `grub_init_all' and `grub_fini_all' instead.
23080
23081 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
23082 `grub_vesafb_mod_init'.
23083 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
23084 all users.
23085 * term/i386/pc/vga.c (grub_vga_init): Renamed to
23086 `grub_vga_mod_init'. Updated all users.
23087 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
f19dbdb7 23088
6d099807 23089 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
23090 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
23091 rules.
23092
23093 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
23094 Generate a function to initialize the module in utilities.
23095 Updated all callers.
23096 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
23097 initialize the module in utilities. Updated all callers.
23098
9046bcf0 230992005-11-09 Hollis Blanchard <hollis@penguinppc.org>
23100
23101 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
23102 escape sequence and a literal ^L to clear the screen.
23103
23104 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
23105 when returning from Open Firmware.
23106
d13ea639 231072005-11-09 Hollis Blanchard <hollis@penguinppc.org>
23108
23109 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
23110 (grub_ofconsole_height): Likewise.
23111 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
23112 manually insert a '\n'.
23113 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
23114 `grub_ofconsole_height'. Return early if these are already set.
23115
a8fcf206 231162005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
23117
23118 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
23119 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
23120 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
23121 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
23122 and `normal/script.c'.
23123 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
23124 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
23125 (test_mod_SOURCES): New variable.
23126 (test_mod_CFLAGS): Likewise.
23127 (test_mod_LDFLAGS): Likewise.
23128 (pkgdata_MODULES): Add `test.mod'.
23129 (grub_script.tab.c): New rule.
23130 (grub_script.tab.h): Likewise.
23131
b6b32745 231322005-11-07 Marco Gerards <mgerards@xs4all.nl>
23133
23134 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
23135 `commands/test.c', `normal/execute.c', `normal/lexer.c',
23136 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
23137 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
23138 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
23139 (test_mod_SOURCES): New variable.
23140 (test_mod_CFLAGS): Likewise.
23141 (pkgdata_MODULES): Add `test.mod'.
23142 (grub_script.tab.c): New rule.
23143 (grub_script.tab.h): Likewise.
23144
daac212a 231452005-11-06 Marco Gerards <mgerards@xs4all.nl>
23146
23147 Add initial scripting support.
23148
23149 * commands/test.c: New file.
23150 * include/grub/script.h: Likewise.
23151 * normal/execute.c: Likewise.
23152 * normal/function.c: Likewise.
23153 * normal/lexer.c: Likewise.
23154 * normal/parser.y: Likewise.
23155 * normal/script.c: Likewise.
23156
23157 * configure.ac: Add `AC_PROG_YACC' test.
f19dbdb7 23158
daac212a 23159 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
23160 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
23161 `normal/function.c' and `normal/script.c'.
23162 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
23163 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
b6b32745 23164 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
23165 variables.
daac212a 23166 (pkgdata_MODULES): Add `test.mod'.
23167 (grub_script.tab.c): New rule.
23168 (grub_script.tab.h): Likewise.
23169
23170 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
23171
23172 * include/grub/normal.h (grub_test_init): New prototype.
23173 (grub_test_fini): Likewise.
f19dbdb7 23174
daac212a 23175 * normal/command.c: Include <grub/script.h>.
23176 (grub_command_execute): Rewritten.
f19dbdb7 23177
daac212a 23178 * util/grub-emu.c (main): Call `grub_test_init' and
23179 `grub_test_fini'.
23180
77500b2b 231812005-11-03 Hollis Blanchard <hollis@penguinppc.org>
23182
23183 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
23184 to 0.
23185 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
23186 there are no pending characters.
23187
e45deb9e 231882005-11-03 Hollis Blanchard <hollis@penguinppc.org>
23189
23190 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
23191 `grub_strndup' to drop device arguments. Replace unnecessary
23192 `grub_strndup' with `grub_strdup'.
23193
4ce32619 231942005-11-03 Hollis Blanchard <hollis@penguinppc.org>
23195
23196 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
23197 `debug' environment variable has been set.
23198
231992005-11-02 Hollis Blanchard <hollis@penguinppc.org>
f19dbdb7 23200
4ce32619 23201 * Makefile.in (install-local): Use $(DATA).
23202 (uninstall): Likewise.
23203 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
23204 (sbin_UTILITIES): ... to here.
23205 (sbin_SCRIPTS): New variable.
23206 (grub_install_SOURCES): New variable.
23207 * util/powerpc/ieee1275/grub-install.in: New file.
23208 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
23209 variable.
23210 (add_segments): Call `grub_util_get_path'.
23211
25fe6f03 232122005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
23213
23214 From Timothy Baldwin:
23215 * commands/ls.c (grub_ls_list_files): Close FILE with
23216 grub_file_close.
23217 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
23218
04ccf3ec 232192005-10-24 Marco Gerards <mgerards@xs4all.nl>
23220
23221 * include/grub/parser.h: New file.
23222
23223 * kern/parser.c: Likewise.
23224
23225 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
23226 (grub_setup_SOURCES): Likewise.
23227 (grub_probefs_SOURCES): Likewise.
23228 (grub_emu_SOURCES): Likewise.
23229 (kernel_img_HEADERS): Add `parser.h'.
23230
23231 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
23232 (grub_emu_SOURCES): Add `kern/parser.c'.
23233 (grubof_SOURCES): Likewise.
23234
23235 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
23236 (grubof_SOURCES): Add `kern/parser.c'.
23237
23238 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
23239
23240 * kern/misc.c (grub_split_cmdline): Removed function.
23241
23242 * kern/rescue.c: Include <grub/parser.h>.
23243 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
23244 of `grub_split_cmdline'.
23245
23246 * normal/command.c: Include <grub/parser.h>.
23247 (grub_command_execute): Use `grub_parser_split_cmdline' instead
23248 of `grub_split_cmdline'.
23249
23250 * normal/completion.c: Include <grub/parser.h>.
23251 (cmdline_state): New variable.
23252 (iterate_dir): End the filename with a quote depending on the
23253 command line state.
23254 (get_state): new function.
23255 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
23256 split the arguments and determine the current argument. When the
23257 argument string is not quoted, escape all spaces.
23258
6d8f4b0e 232592005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
23260
23261 * normal/sparc64/setjmp.S: New file.
23262
15cf03ed 232632005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
23264
23265 * include/grub/sparc64/libgcc.h: New file.
23266 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
23267 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
23268 normal/sparc64/setjmp.c.
23269
03e8661a 232702005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
23271
23272 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
23273 * kern/sparc64/cache.S: New file.
23274 * kern/sparc64/cache.c: Removed.
23275 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
23276 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
23277 -mtune=ultrasparc.
23278 (COMMON_LDFLAGS): Add -melf64_sparc.
23279 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
23280 (grubof_SOURCES): Use cache.S instead of cache.c.
23281 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
23282 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
23283 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
23284 commented though.
23285 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
23286 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
23287 (linux_mod_CFLAGS): Commented out.
23288 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
23289 out because module isn't built.
23290 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
23291 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
23292 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
23293 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
23294 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
23295 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
23296 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
23297 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
23298 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
23299 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
23300 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
23301 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
23302 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
23303 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
23304
34eeec8a 233052005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
23306
23307 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
23308 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
23309 longer, because HFS should not be used on PC.
23310
708367a3 233112005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
23312
23313 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
23314 consistently within the loop.
23315
6fa1251a 233162005-10-15 Marco Gerards <mgerards@xs4all.nl>
23317
23318 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
23319 directory can not be read.
23320
4801580b 233212005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
23322
23323 * configure.ac (AC_INIT): Increase the version number to 1.91.
23324
23325 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
23326 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
23327 term/i386/pc/serial.c.
23328
219ad426 233292005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
23330
23331 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
23332 file size must be permitted.
23333
23334 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
23335 between %ah and %al.
23336
688e5699 233372005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
23338
23339 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
23340 grub_uint64_t.
23341 Call the hook with a NUL-terminated filename.
23342 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
23343 grub_cpu_to_be32.
23344
23345 * kern/term.c (cursor_state): New variable.
23346 (grub_term_set_current): Reset the cursor state on a new
23347 terminal.
23348 (grub_setcursor): Rewritten to use CURSOR_STATE.
23349 (grub_getcursor): New function.
23350
23351 * include/grub/term.h (grub_getcursor): New prototype.
23352
23353 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
23354 integers on ARM. Reported by Timothy Baldwin
23355 <T.E.Baldwin99@members.leeds.ac.uk>.
23356
bb34586c 233572005-10-11 Marco Gerards <mgerards@xs4all.nl>
23358
23359 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
23360 allocated.
23361 (grub_sfs_dir): Likewise.
23362
9a909877 233632005-10-09 Marco Gerards <mgerards@xs4all.nl>
23364
23365 Add support for the SFS filesystem.
23366
23367 * fs/sfs.c: New file.
23368
23369 * DISTLIST: Added `fs/sfs.c'.
23370
23371 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
23372 (grub_probefs_SOURCES): Likewise.
23373 (grub_emu_SOURCES): Likewise.
23374 (pkgdata_MODULES): Add `sfs.mod'.
23375 (sfs_mod_SOURCES): New variable.
23376 (sfs_mod_CFLAGS): Likewise.
23377 (sfs_mod_LDFLAGS): Likewise.
23378
23379 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
23380 (pkgdata_MODULES): Add `sfs.mod'.
23381 (sfs_mod_SOURCES): New variable.
23382 (sfs_mod_CFLAGS): Likewise.
23383
23384 * util/grub-emu.c (main): Call `grub_sfs_init' and
23385 `grub_sfs_fini'.
23386
23387 * include/grub/fs.h (grub_sfs_init): New prototype.
23388 (grub_sfs_fini): Likewise.
23389
57bdbde3 233902005-10-07 Marco Gerards <mgerards@xs4all.nl>
23391
23392 Add support for the AFFS filesystem.
23393
23394 * fs/affs.c: New file.
23395
23396 * DISTLIST: Added `fs/affs.c'.
23397
23398 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
23399 (grub_probefs_SOURCES): Likewise.
23400 (grub_emu_SOURCES): Likewise.
23401 (pkgdata_MODULES): Add `affs.mod'.
23402 (affs_mod_SOURCES): New variable.
23403 (affs_mod_CFLAGS): Likewise.
23404 (affs_mod_LDFLAGS): Likewise.
23405
23406 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
23407 (pkgdata_MODULES): Add `affs.mod'.
23408 (affs_mod_SOURCES): New variable.
23409 (affs_mod_CFLAGS): Likewise.
23410
23411 * util/grub-emu.c (main): Call `grub_affs_init' and
23412 `grub_affs_fini'.
23413
23414 * include/grub/fs.h (grub_affs_init): New prototype.
23415 (grub_affs_fini): Likewise.
23416
047b67e0 234172005-10-01 Marco Gerards <mgerards@xs4all.nl>
23418
23419 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
23420
59b8208a 234212005-10-01 Marco Gerards <mgerards@xs4all.nl>
23422
23423 * configure.ac: Accept `x86_64' as host_cpu. In that case add
23424 `-m32' to CFLAGS.
23425
23426 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
23427 linking.
f19dbdb7 23428
59b8208a 23429 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
23430 (COMMON_LDFLAGS): New variable.
23431 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
23432 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
23433 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
23434 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
23435 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
23436 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
23437 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
23438 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
23439 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
23440 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
23441 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
23442 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
23443 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
23444 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
23445 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
23446 variables.
23447 (normal_mod_ASFLAGS): Add `-m32'.
23448
23449 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
23450 (grub_host_size_t, grub_host_ssize_t): New types.
23451 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
fe6b695a 23452 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
59b8208a 23453 `GRUB_HOST_SIZEOF_VOID_P'.
23454
23455 * include/grub/kernel.h (struct grub_module_header): Type of
23456 member offset changed to `grub_host_off_t'. Type of member size
23457 changed to `grub_host_size_t'.
23458 (struct grub_module_info): Type of member offset changed to
23459 `grub_host_off_t'. Type of member size changed to
23460 `grub_host_size_t'.
23461
b4093103 234622005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
23463
23464 Make GRUB's kernel compliant to Multiboot Specification.
f19dbdb7 23465
b4093103 23466 * kern/i386/pc/startup.S (multiboot_header): New label.
23467 (multiboot_entry): Likewise.
23468 (multiboot_trampoline): Likewise.
23469
23470 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
23471 Increased to 0x4A0.
23472
23473 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
23474 put parentheses after a question mark.
23475 [!GRUB_UTIL] (my_mod): New variable.
23476
23477 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
23478
b2499b29 234792005-09-28 Marco Gerards <mgerards@xs4all.nl>
23480
23481 Adds support for the XFS filesystem. Btrees are not supported
23482 yet.
23483
23484 * fs/xfs.c: New file.
23485
23486 * DISTLIST: Added `fs/xfs.c'.
23487
23488 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
23489 (grub_probefs_SOURCES): Likewise.
23490 (grub_emu_SOURCES): Likewise.
23491 (pkgdata_MODULES): Add `xfs.mod'.
23492 (xfs_mod_SOURCES): New variable.
23493 (xfs_mod_CFLAGS): Likewise.
23494
23495 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
23496 (pkgdata_MODULES): Add `xfs.mod'.
23497 (xfs_mod_SOURCES): New variable.
23498 (xfs_mod_CFLAGS): Likewise.
23499
23500 * util/grub-emu.c (main): Call `grub_xfs_init' and
23501 `grub_xfs_fini'.
23502
23503 * include/grub/fs.h (grub_xfs_init): New prototype.
23504 (grub_xfs_fini): Likewise.
23505
f19dbdb7 23506
83d37a62 235072005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
23508
23509 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
23510 color modes, allow greater than 16 colors to be configured as
23511 a default palette.
23512
47d2d65e 235132005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
23514
23515 * normal/completion.c (complete_arguments): Add the qualifier
23516 const into OPTIONS.
23517
23518 From Omniflux <omniflux+lists@omniflux.com>:
23519 * include/grub/terminfo.h: New file.
23520 * include/grub/tparm.h: Likewise.
23521 * include/grub/i386/pc/serial.h: Likewise.
23522 * term/terminfo.c: Likewise.
23523 * term/tparm.c: Likewise.
23524 * term/i386/pc/serial.c: Likewise.
23525 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
23526 serial.mod.
23527 (terminfo_mod_SOURCES): New variable.
23528 (terminfo_mod_CFLAGS): Likewise.
23529 (serial_mod_SOURCES): Likewise.
23530 (serial_mod_CFLAGS): Likewise.
23531
48b671ff 235322005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
23533
23534 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
23535 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
23536 and kern/powerpc/ieee1275/cmain.c, respectively.
23537
23538 * boot/powerpc/ieee1275/crt0.S: Moved to ...
23539 * kern/powerpc/ieee1275/crt0.S: ... here.
23540
23541 * boot/powerpc/ieee1275/cmain.c: Moved to ...
23542 * kern/powerpc/ieee1275/cmain.c: ... here.
f19dbdb7 23543
48b671ff 23544 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
23545 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
23546 instead of boot/powerpc/ieee1275/crt0.S and
23547 boot/powerpc/ieee1275/cmain.c, respectively.
23548
23549 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
23550 sectors. It was not used anyway.
23551
09fc77a7 235522005-08-30 Hollis Blanchard <hollis@penguinppc.org>
23553
23554 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
23555 `unused parameter' warning.
23556
003789c7 235572005-08-30 Hollis Blanchard <hollis@penguinppc.org>
23558
23559 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
23560 function.
23561 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
23562 getcharwidth.
23563
67f44c86 235642005-08-28 Marco Gerards <metgerards@student.han.nl>
23565
23566 * include/grub/normal.h (enum grub_completion_type): Added
23567 `GRUB_COMPLETION_TYPE_ARGUMENT'.
23568
23569 * normal/cmdline.c (print_completion): Handle
23570 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
23571 * normal/menu_entry.c (store_completion): Likewise.
23572
23573 * normal/completion.c (complete_arguments): New function.
23574 (grub_normal_do_completion): Call `complete_arguments' when the
23575 current words start with a dash.
23576
0b5abe02 235772005-08-27 Marco Gerards <metgerards@student.han.nl>
23578
23579 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
23580 `gzio.mod' instead of `io.mod').
23581
d9864ee1 235822005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
23583
23584 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
23585 (DISTDIRS): Added io and video.
23586 Rewrite the search routine to make an output consistently.
23587
23588 * DISTLIST: Added conf/sparc64-ieee1275.mk,
23589 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
23590 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
23591 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
23592 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
23593 util/powerpc/ieee1275/misc.c.
f19dbdb7 23594
d9864ee1 23595 * include/grub/gzio.h: New file.
23596 * io/gzio.c: Likewise.
f19dbdb7 23597
d9864ee1 23598 * kern/file.c (grub_file_close): Call grub_device_close only if
23599 FILE->DEVICE is not NULL.
23600
23601 * include/grub/mm.h [!NULL] (NULL): New macro.
23602
23603 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
23604
23605 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
23606 (pkgdata_MODULES): Added gzio.mod.
23607 (gzio_mod_SOURCES): New variable.
23608 (gzio_mod_CFLAGS): Likewise.
23609
23610 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
23611 (pkgdata_MODULES): Added gzio.mod.
23612 (gzio_mod_SOURCES): New variable.
23613 (gzio_mod_CFLAGS): Likewise.
23614
23615 * commands/cat.c: Include grub/gzio.h.
23616 (grub_cmd_cat): Use grub_gzfile_open instead of
23617 grub_file_open.
f19dbdb7 23618
d9864ee1 23619 * commands/cmp.c: Include grub/gzio.h.
23620 (grub_cmd_cmp): Use grub_gzfile_open instead of
23621 grub_file_open.
23622
23623 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
23624 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
23625 grub_file_open.
23626 (grub_rescue_cmd_module): Likewise.
23627
fa46f4b5 236282005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
23629
23630 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
23631 kern/sparc64/ieee1275/init.c because it contains _start.
23632 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
23633
e9211b5d 236342005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
23635
23636 * configure.ac: Add support for sparc64 host with ieee1275
23637 firmware.
23638 * configure: Generated from configure.ac.
23639 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
23640 instead of int.
23641 (grub_ofdisk_read): Likewise.
23642 (grub_ofdisk_open): Use %p to print pointer values, and cast the
23643 pointers as (void *) to remove a warning.
23644 (grub_ofdisk_close): Likewise.
23645 (grub_ofdisk_read): Likewise.
23646 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
23647 returns, so make it return void to remove a warning.
23648 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
23649 Corresponding prototype change.
23650 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
23651 values, and cast the pointers as (void *) to remove a warning.
23652 (grub_mm_dump): Likewise.
23653 * conf/sparc64-ieee1275.mk: New file.
23654 * conf/sparc64-ieee1275.rmk: Likewise.
23655 * include/grub/sparc64/setjmp.h: Likewise.
23656 * include/grub/sparc64/types.h: Likewise.
23657 * include/grub/sparc64/ieee1275/console.h: Likewise.
23658 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
23659 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
23660 * include/grub/sparc64/ieee1275/time.h: Likewise.
23661 * kern/sparc64/cache.c: Likewise.
23662 * kern/sparc64/dl.c: Likewise.
23663 * kern/sparc64/ieee1275/init.c: Likewise.
23664 * kern/sparc64/ieee1275/openfw.c: Likewise.
23665
385c6a92 236662005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
23667
23668 * util/console.c (grub_ncurses_putchar): If C is greater than
23669 0x7f, set C to a question mark.
23670 (grub_ncurses_getcharwidth): New function.
23671 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
23672 getcharwidth.
23673
23674 * normal/menu.c (print_entry): Made aware of Unicode. First,
23675 convert TITLE to UCS-4, and predict the cursor position by
23676 grub_getcharwidth.
23677
23678 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
23679 const to SRC.
23680 * kern/misc.c (grub_utf16_to_utf8): Likewise.
23681
16ccb8b1 236822005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
23683
23684 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
23685 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
23686 grub_strcat.
23687
23688 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
23689 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
23690 grub_strcpy and grub_strlen. Take it into account that a space
23691 character is inserted as a delimiter.
23692
6a85ce79 236932005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
23694
23695 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
fe6b695a 23696 invalid magic in the error.
6a85ce79 23697
23698 * commands/search.c: New file.
f19dbdb7 23699
6a85ce79 23700 * util/grub-emu.c (main): Call grub_search_init and
23701 grub_search_fini.
23702
23703 * kern/rescue.c (grub_rescue_print_disks): Removed.
23704 (grub_rescue_print_devices): New function.
23705 (grub_rescue_cmd_ls): Use grub_device_iterate with
23706 grub_rescue_print_devices instead of grub_disk_dev_iterate with
23707 grub_rescue_print_disks.
23708
23709 * kern/partition.c (grub_partition_iterate): Return the result of
23710 PARTMAP->ITERATE instead of GRUB_ERRNO.
23711
23712 * kern/device.c: Include grub/partition.h.
23713 (grub_device_iterate): New function.
23714
23715 * include/grub/partition.h (grub_partition_iterate): Return int
23716 instead of grub_err_t.
23717
23718 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
23719 prototype.
23720 [GRUB_UTIL] (grub_search_fini): Likewise.
23721
23722 * include/grub/device.h (grub_device_iterate): New prototype.
23723
23724 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
23725 commands/search.c.
23726 (pkgdata_MODULES): Added search.mod.
23727 (search_mod_SOURCES): New variable.
23728 (search_mod_CFLAGS): Likewise.
23729
23730 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
23731 (pkgdata_MODULES): Added search.mod.
23732 (search_mod_SOURCES): New variable.
23733 (search_mod_CFLAGS): Likewise.
23734
23735 * commands/ls.c (grub_ls_list_disks): Renamed to ...
23736 (grub_ls_list_devices): ... this, and use grub_device_iterate.
23737 All callers changed.
23738
23739 * DISTLIST: Added commands/search.c.
23740
ef095434 237412005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
23742
23743 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
23744 conversion.
23745 (grub_getcharwidth): New function.
23746
23747 * kern/misc.c (grub_utf8_to_ucs4): New function.
23748
23749 * include/grub/term.h (struct grub_term): Added a new member
23750 "getcharwidth".
23751 (grub_getcharwidth): New prototype.
23752
23753 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
23754
23755 * term/i386/pc/console.c (map_char): New function. Segregated from
23756 grub_console_putchar.
23757 (grub_console_putchar): Use map_char.
23758 (grub_console_getcharwidth): New function.
23759 (grub_console_term): Specified grub_console_getcharwidth as
23760 getcharwidth.
23761
23762 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
23763 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
23764
23765 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
23766 GRUB_ERRNO.
23767 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
23768 on grub_strtoul completely.
23769 (write_char): Declare local variables in the beginning of the
23770 function.
23771 (grub_vesafb_getcharwidth): New function.
23772 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
23773 getcharwidth.
23774
1f0a95e4 237752005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
23776
23777 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
23778 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
23779 commands/i386/pc/vbetest.c.
23780
23781 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
23782 call grub_vbe_get_controller_info again, because the returned
23783 information is volatile.
23784 (grub_vbe_set_video_mode): Mostly rewritten.
23785 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
23786 grub_vbe_status_t correctly.
23787 (grub_vbe_get_video_mode_info): Likewise.
23788 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
23789 several if statements.
23790
23791 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
23792 * commands/i386/pc/vbeinfo.c: ... this.
23793
23794 * commands/i386/pc/vbe_test.c: Renamed to ...
23795 * commands/i386/pc/vbetest.c: ... this.
23796
23797 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
23798 ...
23799 (grub_cmd_vbeinfo): ... this. Save video modes before
23800 iterating. Skip a video mode, if it is not available, not enough
23801 information is given or it is monochrome. Show the memory
23802 model. Leave the interpretation of MODEVAR to grub_strtoul
23803 completely.
23804 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
23805 (GRUB_MOD_FINI): Likewise.
23806
23807 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
23808 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
23809 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
23810 duplicated grub_env_get. Leave the interpretation of MODEVAR to
23811 grub_strtoul completely.
23812 (real2pm): Removed.
23813 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
23814 (GRUB_MOD_FINI): Likewise.
23815
23816 * normal/misc.c: Include grub/mm.h.
23817
23818 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
23819 vbe_list_modes with vbetest.mod and vbeinfo.mod.
23820 (vbe_list_modes_mod_SOURCES): Removed.
23821 (vbe_list_modes_mod_CFLAGS): Likewise.
23822 (vbe_test_mod_SOURCES): Likewise.
23823 (vbe_test_mod_CFLAGS): Likewise.
23824 (vbeinfo_mod_SOURCES): New variable.
23825 (vbeinfo_mod_CFLAGS): Likewise.
23826 (vbetest_mod_SOURCES): Likewise.
23827 (vbetest_mod_CFLAGS): Likewise.
23828
992ffbbe 238292005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
23830
23831 * normal/misc.c: New file.
23832
23833 * DISTLIST: Added normal/misc.c.
f19dbdb7 23834
992ffbbe 23835 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
23836 DISK to HOOK. Call HOOK with DISK.
23837 * partmap/apple.c (apple_partition_map_iterate): Likewise.
23838 * partmap/pc.c (pc_partition_map_iterate): Likewise.
23839 * partmap/sun.c (sun_partition_map_iterate): Likewise.
23840
23841 * normal/menu_entry.c (struct screen): Added a new member
23842 "completion_shown".
23843 (completion_buffer): New global variable.
23844 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
23845 (store_completion): New function.
23846 (complete): Likewise.
23847 (clear_completions): Likewise.
23848 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
23849 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
23850 a tab, call complete.
23851
23852 * normal/completion.c (disk_dev): Removed.
23853 (print_simple_completion): Likewise.
23854 (print_partition_completion): Likewise.
23855 (print_func): New global variable.
23856 (add_completion): Do not take the arguments WHAT or PRINT any
23857 longer. Added a new argument TYPE. Instead of printing directly,
23858 call PRINT_FUNC if not NULL.
23859 All callers changed.
23860 (complete_device): Use a local variable DEV instead of
23861 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
23862 (grub_normal_do_completion): Take a new argument HOOK. Do not
23863 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
23864 empty string, return NULL instead.
23865 All callers changed.
23866
23867 * normal/cmdline.c (print_completion): New function.
23868
23869 * kern/partition.c (grub_partition_iterate): Add an argument DISK
23870 to HOOK.
23871 All callers changed.
23872
23873 * kern/disk.c (grub_print_partinfo): Removed.
23874
23875 * include/grub/partition.h (struct grub_partition_map): Add a new
23876 argument DISK into HOOK of ITERATE.
23877 (grub_partition_iterate): Add a new argument DISK to HOOK.
23878
23879 * include/grub/normal.h (enum grub_completion_type): New enum.
23880 (grub_completion_type_t): New type.
23881 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
23882 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
23883 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
23884 (GRUB_COMPLETION_TYPE_FILE): Likewise.
23885 (grub_normal_do_completion): Added a new argument HOOK.
23886 (grub_normal_print_device_info): New prototype.
23887
23888 * include/grub/disk.h (grub_print_partinfo): Removed.
23889
23890 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
23891 (normal_mod_SOURCES): Likewise.
23892 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
23893 (normal_mod_SOURCES): Likewise.
23894
23895 * commands/ls.c (grub_ls_list_disks): Use
23896 grub_normal_print_device_info instead of grub_print_partinfo. Free
23897 PNAME.
23898 (grub_ls_list_files): Use grub_normal_print_device_info instead of
23899 duplicating the code.
23900
0bd41162 239012005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
23902
23903 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
f19dbdb7 23904 follow GCS more precisely.
23905 * commands/i386/pc/vbe_test.c: Likewise.
23906 * include/grub/i386/pc/vbe.h: Likewise.
23907 * term/i386/pc/vesafb.c: Likewise.
23908 * video/i386/pc/vbe.c: Likewise.
0bd41162 23909
6323696a 239102005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
23911
23912 * DISTLIST: Added term/i386/pc/vesafb.c
23913 DISTLIST: Added video/i386/pc/vbe.c
23914 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
23915 DISTLIST: Added commands/i386/pc/vbe_test.c.
23916 * commands/i386/pc/vbe_list_modes.c: New file.
23917 * commands/i386/pc/vbe_test.c: Likewise.
23918 * term/i386/pc/vesafb.c: Likewise.
23919 * video/i386/pc/vbe.c: Likewise.
23920 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
23921 (grub_vbe_probe) Added prototype.
23922 (grub_vbe_set_video_mode) Likewise.
23923 (grub_vbe_get_video_mode) Likewise.
23924 (grub_vbe_get_video_mode_info) Likewise.
23925 (grub_vbe_set_pixel_rgb) Likewise.
23926 (grub_vbe_set_pixel_index) Likewise.
23927 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
23928 (pkgdata_MODULES): Added vesafb.mod.
23929 (pkgdata_MODULES): Added vbe_list_modes.mod.
23930 (pkgdata_MODULES): Added vbe_test.mod.
23931 (vbe_mod_SOURCES): Added.
23932 (vbe_mod_CFLAGS): Likewise.
23933 (vesafb_mod_SOURCES): Likewise.
23934 (vesafb_mod_CFLAGS): Likewise.
23935 (vbe_list_modes_mod_SOURCES): Likewise.
23936 (vbe_list_modes_mod_CFLAGS): Likewise.
23937 (vbe_test_mod_SOURCES): Likewise.
23938 (vbe_test_mod_CFLAGS): Likewise.
23939
0a74e62f 239402005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
23941
0a74e62f 23942 * normal/command.c (grub_command_execute): If INTERACTIVE is
23943 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
23944 CMDLINE. Disable the pager if INTERACTIVE is true.
23945 All callers are changed.
23946
23947 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
23948 before reading a config file.
23949 * normal/main.c (read_config_file): Even if a command is not
23950 found, register it if it is within an entry.
23951
23952 * util/grub-emu.c: Include sys/types.h and unistd.h.
23953 (options): Added --hold.
23954 (struct arguments): Added a new member "hold".
23955 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
23956 missing.
23957 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
23958 cleared by a debugger, if it is not zero.
23959
23960 * include/grub/normal.h (grub_command_execute): Add an argument
23961 INTERACTIVE.
23962
e51f85ae 239632005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
23964
23965 * DISTLIST: Added include/grub/i386/pc/vbe.h.
23966
e9c6f39b 239672005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
23968
23969 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
23970 program with another one, because the old one didn't detect a bug
23971 in gcc-3.4. Always use regparm 2, because the new test is still
23972 not enough for gcc-4.0. Someone must investigate a simple test
23973 case which detects a bug in gcc-4.0.
23974
8de3495c 239752005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
23976
23977 * DISTLIST: Added normal/completion.c.
23978
23979 * normal/completion.c: New file.
f19dbdb7 23980
8de3495c 23981 * term/i386/pc/console.c (grub_console_getwh): New function.
23982 (grub_console_term): Assign grub_console_getwh to getwh.
23983
23984 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
23985 function is defined in normal/completion.c as
23986 grub_normal_do_completion.
23987 (grub_cmdline_get): Use grub_normal_do_completion instead of
23988 grub_tab_complete.
23989
23990 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
23991 returns non-zero, otherwise return 0.
23992 (grub_partition_iterate): First, probe the partition map. Then,
23993 call ITERATE only for this partition map.
23994
23995 * kern/misc.c (grub_strncmp): Rewritten.
23996
23997 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
23998 returns non-zero. Otherwise return 0.
23999
24000 * include/grub/partition.h (grub_partition_map_iterate): Return
24001 int instead of void.
24002
24003 * include/grub/normal.h (grub_normal_do_completion): New prototype.
24004
24005 * include/grub/misc.h (grub_strncmp): Change the type of N to
24006 grub_size_t.
24007
24008 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
24009 of void.
24010
24011 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
fe6b695a 24012 unsigned explicitly before comparing it with I.
8de3495c 24013
24014 * kern/main.c (grub_env_write_root): Add the attribute unused into
24015 VAR.
24016
24017 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
24018 normal/completion.c.
24019 (normal_mod_SOURCES): Likewise.
24020 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
24021 (normal_mod_SOURCES): Likewise.
24022
24023 * normal/command.c (grub_iterate_commands): If ITERATE returns
24024 non-zero, return one immediately.
24025
e85e144b 240262005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
24027
24028 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
24029 * kern/i386/pc/startup.S: Updated Global Descriptor table's
24030 descriptions.
24031 (grub_vbe_get_controller_info): New function.
24032 (grub_vbe_get_mode_info): Likewise.
24033 (grub_vbe_set_mode): Likewise.
24034 (grub_vbe_get_mode): Likewise.
24035 (grub_vbe_set_memory_window): Likewise.
24036 (grub_vbe_get_memory_window): Likewise.
24037 (grub_vbe_set_scanline_length): Likewise.
24038 (grub_vbe_get_scanline_length): Likewise.
24039 (grub_vbe_set_display_start): Likewise.
24040 (grub_vbe_get_display_start): Likewise.
24041 (grub_vbe_set_palette_data): Likewise.
24042 * include/grub/i386/pc/vbe.h: New file.
24043
c46153d2 240442005-08-08 Hollis Blanchard <hollis@penguinppc.org>
24045
24046 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
24047 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
24048 * DISTLIST: Likewise.
24049 * kern/ieee1275/of.c: Moved to ...
24050 * kern/ieee1275/ieee1275.c: ... here.
24051
0cb90c45 240522005-08-08 Hollis Blanchard <hollis@penguinppc.org>
24053
24054 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
24055 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
24056 Pass 0 as `end' parameter to grub_strtoul().
24057
a19fb360 240582005-08-08 Hollis Blanchard <hollis@penguinppc.org>
24059
24060 * include/grub/powerpc/ieee1275/console.h: Do not include
24061 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
24062 ifdef.
24063 (grub_console_cur_color): Remove i386-specific prototype.
24064 (grub_console_real_putchar): Likewise.
24065 (grub_console_checkkey): Likewise.
24066 (grub_console_getkey): Likewise.
24067 (grub_console_getxy): Likewise.
24068 (grub_console_gotoxy): Likewise.
24069 (grub_console_cls): Likewise.
24070 (grub_console_setcursor): Likewise.
24071 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
24072 Include <grub/machine/console.h>.
24073 * term/ieee1275/ofconsole.c: Likewise.
24074
4ac9bd04 240752005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
24076
24077 * Makefile.in (LIBLZO): New variable.
24078
24079 * configure.ac: Check for LZO version 2.
24080
24081 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
24082 lzo/lzo1x.h instead of lzo1x.h.
24083
24084 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
24085 of -llzo.
24086
24087 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
24088 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
24089
24090 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
24091 copying the data from PARTITION to P.
24092
f4917dfd 240932005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
24094
24095 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
24096 negative, unload the module.
24097
24098 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
24099 map is "pc_partition_map" but not "pc".
24100 (usage): Fix the description. The options are --boot-image and
24101 --core-image but not --boot-file or --core-file.
24102 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
24103 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
24104 DEFAULT_DIRECTORY.
24105
24106 * util/i386/pc/grub-install.in: Do not specify --boot-file or
24107 --core-file. Specify INSTALL_DEVICE as an argument.
24108
24109 * util/console.c: Include config.h.
24110 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
24111 [HAVE_NCURSES_H]: Include ncurses.h.
24112 [HAVE_CURSES_H]: Include curses.h.
24113 [!A_NORMAL] (A_NORMAL): Defined as zero.
24114 [!A_STANDOUT] (A_STANDOUT): Likewise.
24115
24116 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
24117 -lncurses.
24118 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
24119
24120 * configure.ac: Check for curses libraries and headers.
24121
24122 * Makefile.in (LIBCURSES): New variable.
24123
24124 * genmk.rb (Script::rule): Set the executable bits.
24125
24126 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
24127 name of the PC partition map is "pc_partition_map" but not "pc".
24128
0e143073 241292005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
24130
24131 * util/i386/pc/grub-install.in (grub_probefs): New variable.
24132 (modules): Likewise.
24133 (usage): Added descriptions for --modules and --grub-probefs.
24134 Handle --modules and --grub-probefs. Save the arguments in MODULES
24135 and GRUB_PROBEFS, respectively.
24136 Auto-detect a filesystem module against GRUBDIR. If the result is
24137 empty and modules are not specified explicitly, abort the
24138 installation. Add the result to MODULES.
24139
24140 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
24141 disk/powerpc/ieee1275/ofdisk.c,
24142 include/grub/powerpc/ieee1275/init.h and
24143 term/powerpc/ieee1275/ofconsole.c.
24144 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
24145 term/ieee1275/ofconsole.c.
24146
24147 * include/grub/powerpc/ieee1275/console.h: Resurrected.
24148
24149 * COPYING: Upgraded to the latest version. Only the address of the
24150 FSF office has changed.
f19dbdb7 24151
efd6e6d5 241522005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
24153
24154 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
24155 kern/ieee1275.c with kern/ieee1275/of.c.
24156
24157 * kern/ieee1275.c: Moved to ...
24158 * kern/ieee1275/of.c: ... here.
24159
8ceafda2 241602005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
24161
24162 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
fe6b695a 24163 readability.
8ceafda2 24164
24165 * config.guess: Updated to the latest version from gnulib.
24166 * config.sub: Likewise.
24167 * install.sh: Likewise.
24168 * mkinstalldirs: Likewise.
24169
24170 * include/grub/console.h: Removed. This file is arch-specific. Do
24171 not put this in include/grub.
24172
24173 * include/grub/i386/pc/console.h: Resurrected.
24174
24175 * util/console.c: Include grub/machine/console.h instead of
24176 grub/console.h.
24177 * util/grub-emu.c: Likewise.
24178
267f6cd9 241792005-08-04 Marco Gerards <metgerards@student.han.nl>
24180
24181 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
24182 hardcoded value.
f19dbdb7 24183
267f6cd9 24184 From Vincent Pelletier <subdino2004@yahoo.fr>
24185 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
24186 Redefined to use grub_getwh.
24187 (grub_term): New member named getwh.
24188 (grub_getwh): New prototype.
24189 * kern/term.c (grub_getwh): New function.
24190 * term/i386/pc/console.c (grub_console_getwh): New function.
24191 (grub_console_term): New member `getwh'.
24192 * term/i386/pc/vga.c (grub_vga_getwh): New function.
24193 (grub_vga_term): New member `getwh'.
0b5abe02 24194 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
267f6cd9 24195 grub_ssize_t.
24196 (grub_ofconsole_getw): New function.
24197 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
24198 (grub_ofconsole_term): New field named getwh and new initial
24199 value.
24200
3be7266d 242012005-08-03 Hollis Blanchard <hollis@penguinppc.org>
24202
24203 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
24204 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
24205 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
24206 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
24207 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
24208 of <grub/machine/ieee1275.h>.
24209 * commands/ieee1275/reboot.c: Likewise.
24210 * boot/powerpc/ieee1275/ieee1275.c: Move ...
24211 * kern/ieee1275.c: ... to here. All users updated. Change all
24212 parameter structs to use new type `grub_ieee1275_cell_t'.
24213 * term/powerpc/ieee1275/ofconsole.c: Move ...
24214 * term/ieee1275/ofconsole.c: ... to here. All users updated.
24215 * disk/powerpc/ieee1275/ofdisk.c: Move ...
24216 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
24217 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
24218 to return int.
24219 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
24220 Remove unused prototypes. All users updated.
24221 * include/grub/powerpc/ieee1275/console.h: Removed.
24222 * include/grub/powerpc/ieee1275/ieee1275.h: Define
24223 `grub_ieee1275_cell_t'.
24224 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
24225 Cast comparisons with -1 to the correct type.
24226 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
24227 type to match `grub_ieee1275_entry_fn'.
24228
8b5f3938 242292005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
24230
24231 * DISTLIST: Added util/i386/pc/grub-probefs.c.
24232
24233 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
24234 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
24235 partmap/sun.c.
24236 (grub_probefs_SOURCES): New variable.
24237
24238 * util/i386/pc/grub-probefs.c: New file.
24239
24240 * util/i386/pc/grub-setup.c (main): Call
24241 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
24242 grub_hfs_init and grub_jfs_init to initialize the system. Call
24243 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
24244 grub_pc_partition_map_fini to finish the system.
24245
ea409713 242462005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
24247
24248 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
24249 function.
24250 (grub_multiboot_load_elf32): Likewise.
24251 (grub_multiboot_is_elf64): Likewise.
24252 (grub_multiboot_load_elf64): Likewise.
24253 (grub_multiboot_load_elf): Likewise.
24254 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
24255 an ELF32 or ELF64 file.
24256 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
24257
24258 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
24259 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
24260 NULL before calling FS->LABEL.
24261 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
24262 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
24263 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
24264 before calling FS->LABEL.
24265
141a288b 242662005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
24267
24268 * util/i386/pc/grub-install.in (datadir): New variable.
24269 (libdir): Removed.
24270 (pkgdatadir): New variable.
24271 (pkglibdir): Removed.
24272
0d5f8a54 242732005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
24274
24275 * DISTLIST: Added util/i386/pc/grub-install.in.
24276
24277 * util/i386/pc/grub-install.in: New file.
24278
24279 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
24280 (grub_install_SOURCES): Likewise.
24281
24282 * genmk.rb: Added support for scripts.
24283 (Script): New class.
24284 (scripts): New variable.
24285
24286 * Makefile.in (install-local): Install sbin_SCRIPTS by
24287 INSTALL_SCRIPT.
24288 (uninstall): Remove sbin_SCRIPTS.
24289
24290 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
24291 device, try to get a GRUB device by
24292 grub_util_biosdisk_get_grub_dev.
24293 Free DEST_DEV.
24294
24295 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
24296 description for --device-map.
24297
5f968e1e 242982005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
24299
24300 Change the semantics of variable hooks. They now return strings
24301 instead of error values.
f19dbdb7 24302
5f968e1e 24303 * util/i386/pc/grub-setup.c: Include grub/env.h.
24304 (setup): Use grub_device_set_root instead of grub_env_set.
24305
24306 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
24307 grub_env_get instead of grub_device_set_root and
24308 grub_device_get_root, respectively.
24309
24310 * kern/main.c (grub_env_write_root): New function.
24311 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
24312 grub_env_set instead of grub_device_set_root.
24313
24314 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
24315 many variables.
24316 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
24317 rather than calling ENV->WRITE_HOOK afterwards.
24318 (grub_env_get): Return the result of ENV->READ_HOOK rather than
24319 passing a pointer of a pointer.
24320 (grub_register_variable_hook): Change the types of "read_hook" and
24321 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
24322 respectively.
24323 Allocate the default empty string on the heap, because this string
24324 may be freed later.
24325
24326 * kern/device.c: Include grub/env.h.
24327 (grub_device_set_root): Removed.
24328 (grub_device_get_root): Likewise.
24329 (grub_device_open): Use grub_env_get instead of
24330 grub_device_get_root.
24331
24332 * include/grub/env.h (grub_env_read_hook_t): New type.
24333 (grub_env_write_hook_t): Likewise.
24334 (grub_env_var): Change the types of "read_hook" and "write_hook"
24335 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
24336 (grub_register_variable_hook): Likewise.
24337
24338 * include/grub/device.h (grub_device_set_root): Removed.
24339 (grub_device_set_root): Likewise.
24340
24341 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
24342 make sure that DIRNAME terminates with '/', so that
24343 grub_fat_find_dir will fail if PATH is not a directory.
24344
24345 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
24346 from DIRNAME.
24347 Use the qualifier auto for print_files and print_files_long.
24348 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
24349 as a regular file.
24350 Put a newline only if there is no error.
24351 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
24352 used.
24353
896f0afd 243542005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
24355
24356 * kern/partition.c (grub_partition_probe): Initialize PART to
24357 NULL. Otherwise, when no partition map is registered, this returns
24358 a garbage.
24359
b28b81b2 243602005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
24361
24362 * partmap/apple.c (apple_partition_map_iterate): Check if POS
24363 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
24364 valid.
24365
5f3607e0 243662005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
24367
24368 * commands/ls.c (grub_ls_list_disks): Print the filesystem
24369 information on each device, if it does not have partitions. Print
24370 "Device" instead of "Disk", because this function is not specific
24371 to disk devices.
24372
24373 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
24374 static to ensure that it is put on the memory rather than a
24375 register.
24376
502c87e8 243772005-07-17 Yoshinori Okuji <okuji@enbug.org>
24378
24379 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
24380 (grub_cat_init): Likewise.
24381 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
24382 (options): Likewise.
24383 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
24384 (grub_configfile_init): Likewise.
24385 * font/manager.c (GRUB_MOD_INIT): Likewise.
24386 * commands/help.c (GRUB_MOD_INIT): Likewise.
24387 (grub_help_init): Likewise.
24388 * normal/command.c (grub_command_init): Likewise.
24389 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
24390 * disk/loopback.c (grub_loop_init): Likewise.
24391 (GRUB_MOD_INIT): Likewise.
24392 * commands/ls.c (grub_ls_init): Likewise.
24393 (GRUB_MOD_INIT): Likewise.
24394 (options): Likewise.
24395 * commands/boot.c (grub_boot_init): Likewise.
24396 (GRUB_MOD_INIT): Likewise.
24397 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
24398 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
24399 (GRUB_MOD_INIT): Likewise.
24400 * commands/cmp.c (grub_cmp_init): Likewise.
24401 (GRUB_MOD_INIT): Likewise.
24402
24403 * normal/arg.c: Use <> instead of "" to include header files.
24404 (SHORT_ARG_HELP): New macro.
24405 (SHORT_ARG_USAGE): Likewise.
24406 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
24407 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
24408 descriptions.
24409 (find_short): Check if C is 'h' or 'u' explicitly.
24410 (grub_arg_show_help): Use space characters instead of tabs. Treat
24411 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
24412 are shown with --help and --usage only if they are not used for
24413 the command itself.
24414 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
24415 'h' and 'u'.
24416
24417 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
24418 const into "longarg". Change the type of "shortarg" to int.
24419
f806d18e 244202005-07-17 Yoshinori Okuji <okuji@enbug.org>
24421
24422 * boot/i386/pc/boot.S (boot_drive_check): New label.
24423
24424 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
24425 macro.
24426
24427 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
24428 which do not pass a boot drive correctly. Copied from GRUB Legacy.
24429
e293232b 244302005-07-17 Yoshinori Okuji <okuji@enbug.org>
24431
24432 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
24433 When turning off Gate A20, skip the check and return immediately,
24434 because this is not fatal usually.
24435
ebedfd00 244362005-07-17 Yoshinori Okuji <okuji@enbug.org>
24437
24438 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
24439 be 0x7C00 instead of 0x8000.
24440
24441 * boot/i386/pc/pxeboot.S: Rewritten.
24442
24443 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
24444 EXT_C.
24445 (gate_a20_check_state): Read a byte from 0x108000. Invert the
24446 result.
24447
654fc59f 244482005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
24449
24450 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
24451 robustness. This routine now supports a BIOS call and System
24452 Control Port A to modify the gate A20.
24453
24454 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
24455 Increased to 0x440.
24456
09f9923f 244572005-07-12 Hollis Blanchard <hollis@penguinppc.org>
24458
24459 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
24460 device path and resulting ihandle.
24461 (grub_ofdisk_close): dprintf the ihandle being closed.
24462 (grub_ofdisk_read): dprintf function parameters.
24463 * kern/mm.c (grub_mm_init_region): Likewise.
24464 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
24465 (grub_linux_boot): dprintf the Linux entry point, initrd address and
24466 size, and boot arguments.
24467 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
24468 before loading into memory.
24469 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
24470 before loading into memory.
24471
7ef504d8 244722005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
24473
24474 * kern/mm.c: Added much documentation.
24475 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
24476 8, set to 5 instead of 8.
24477
e0f050c2 244782005-07-10 Yoshinori Okuji <okuji@enbug.org>
24479
24480 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
24481
24482 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
24483 (grub_mkdevicemap_SOURCES): New variable.
24484
24485 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
24486 lib/device.c of GRUB Legacy.
24487
7224189a 244882005-07-10 Yoshinori Okuji <okuji@enbug.org>
24489
24490 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
24491 instead of PATH is NULL.
24492
68c864eb 244932005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
24494
24495 * commands/cmp.c (BUFFER_SIZE): New macro.
24496 (grub_cmd_cmp): Close the right file at the right time. Compare
24497 only data just read. Don't report files of different size as
24498 identical. Dynamically allocate buffers. Move variable
24499 declarations at the beginning of function.
24500
e6f3e614 245012005-07-09 Yoshinori Okuji <okuji@enbug.org>
24502
24503 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
24504 reverse.
24505
f8f1559a 245062004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
24507
24508 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
24509 when backspace is pressed at beginning of line.
24510
39c9d41d 245112005-07-03 Yoshinori Okuji <okuji@enbug.org>
24512
24513 * DISTLIST: Added genfslist.sh.
24514
24515 * normal/main.c (fs_module_list): New variable.
24516 (autoload_fs_module): New function.
24517 (read_fs_list): Likewise.
24518 (grub_normal_execute): Call read_fs_list.
24519
24520 * kern/fs.c (grub_fs_autoload_hook): New variable.
24521 (grub_fs_probe): Added support for auto-loading.
24522
24523 * include/grub/normal.h (struct grub_fs_module_list): New struct.
24524 (grub_fs_module_list_t): New type.
24525
24526 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
24527 (grub_fs_autoload_hook): New prototype.
24528
24529 * genfslist.sh: New file.
f19dbdb7 24530
39c9d41d 24531 * genmk.rb: Added a rule to generate a filesystem list.
24532
121c1d83 245332005-06-30 Marco Gerards <metgerards@student.han.nl>
24534
24535 * configure.ac: Fix the test for cross-compiling.
24536
24537 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
24538 define GRUB_UTIL anymore.
24539
24540 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
24541 so this function works on other systems than just big endian.
24542 (load_modules): Likewise.
24543 (add_segments): Likewise.
24544
e75d76e1 245452005-06-23 Hollis Blanchard <hollis@penguinppc.org>
24546
24547 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
24548 contains `l' modifier, get a long from va_arg().
24549
50b5a0a7 245502005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
24551
24552 * kern/mm.c (grub_free): If the next free block which is being
24553 merged is the first free block, set the first block to the block
24554 being freed.
24555 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
24556
89371b20 245572005-05-08 Hollis Blanchard <hollis@penguinppc.org>
24558
24559 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
24560 `grub_ieee1275_chosen'.
24561
168d6e58 245622005-05-08 Hollis Blanchard <hollis@penguinppc.org>
24563
24564 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
24565 (grub_ieee1275_chosen): New variable.
24566 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
24567 `chosen'.
24568 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
24569 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
24570 Rename first argument to `phandle' for consistency.
24571 (grub_ieee1275_get_property_length): Likewise.
24572 (grub_ieee1275_next_property): Likewise. Change type of first argument
24573 to grub_ieee1275_phandle_t.
24574 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
24575 Move export next to declaration.
24576 (grub_ieee1275_chosen): New variable.
24577 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
24578 Correct cosmetic typo.
24579 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
24580 `grub_ieee1275_chosen'.
24581 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
24582 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
24583 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
24584 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
24585 `grub_ieee1275_chosen'.
24586
ca5baa3f 245872005-05-10 Hollis Blanchard <hollis@penguinppc.org>
24588
24589 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
24590 /chosen/bootargs.
24591 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
24592 /chosen/bootargs as "variable=value" pairs.
24593
708b345f 245942005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
24595
24596 * include/grub/misc.h (grub_dprintf): New macro.
24597 (grub_real_dprintf): New prototype.
24598 (grub_strword): Likewise.
24599 (grub_iswordseparator): Likewise.
24600 * kern/misc.c (grub_real_dprintf): New function.
24601 (grub_strword): Likewise.
24602 (grub_iswordseparator): Likewise.
24603
f4c5e67c 246042005-04-30 Hollis Blanchard <hollis@penguinppc.org>
24605
24606 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
24607 (roundup): Remove macro.
24608 (grub_ieee1275_flags): Make static.
24609 (grub_ieee1275_realmode): Remove.
24610 (grub_ieee1275_test_flag): New function.
24611 (grub_ieee1275_set_flag): Likewise.
24612 (find_options): Rename to `grub_ieee1275_find_options'; update
24613 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
24614 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
24615 (cmain): New prototype.
24616 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
24617 `grub_ieee1275_flags' directly.
24618 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
24619 machine/biosdisk.h.
24620 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
24621 Don't include grub/machine/init.h.
24622 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
24623 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
24624 Remove prototype.
24625 (grub_ieee1275_realmode): Likewise.
24626 (grub_ieee1275_flag): New enum.
24627 (grub_ieee1275_test_flag): New prototype.
24628 (grub_ieee1275_set_flag): New prototype.
24629 * include/grub/powerpc/ieee1275/init.h: Remove file.
24630 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
24631 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
24632 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
24633 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
24634 comment.
24635 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
24636 `grub_ieee1275_test_flag'.
24637 (grub_ieee1275_encode_devname): Likewise.
24638
ed16607e 246392005-04-21 Hollis Blanchard <hollis@penguinppc.org>
24640
24641 * include/grub/powerpc/ieee1275/ieee1275.h
24642 (grub_ieee1275_encode_devname): New prototype.
24643 (grub_ieee1275_get_filename): Likewise.
24644 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
24645 function.
24646 (grub_set_prefix): Likewise.
24647 (grub_machine_init): Call grub_set_prefix.
24648 * kern/powerpc/ieee1275/openfw.c: Fix typos.
24649 (grub_parse_type): New enum.
24650 (grub_ieee1275_get_devargs): New function.
24651 (grub_ieee1275_get_devname): Likewise.
24652 (grub_ieee1275_parse_args): Likewise.
24653 (grub_ieee1275_get_filename): Likewise.
24654 (grub_ieee1275_encode_devname): Likewise.
24655
be369920 246562005-03-30 Marco Gerards <metgerards@student.han.nl>
24657
24658 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
24659 `grub_loader_unset'.
24660
a5ce3a4a 246612005-03-26 Hollis Blanchard <hollis@penguinppc.org>
24662
24663 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
24664 instead of grub_ieee1275_interpret.
24665 (grub_halt_init): New function.
24666 (grub_halt_fini): Likewise.
24667 (GRUB_MOD_INIT): Correct message grammar.
24668 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
24669 instead of grub_ieee1275_interpret.
24670 (grub_reboot_init): New function.
24671 (grub_reboot_fini): Likewise.
24672 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
24673 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
24674 util/i386/pc/misc.c with commands/ieee1275/halt.c,
24675 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
24676 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
24677 function.
24678 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
24679 Add prototype.
24680 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
24681 prototype.
24682 (grub_halt): Likewise.
24683 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
24684 (cmain): Remove __attribute__((unused)).
24685 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
24686 (grub_heap_len): Likewise.
24687 (grub_machine_fini): New function.
24688 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
24689 (grub_halt): Likewise.
24690 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
24691 function.
24692 * util/powerpc/ieee1275/misc.c: New file.
24693
0058f771 246942005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
24695
24696 * DISTLIST: New file.
24697 * gendistlist.sh: Likewise.
f19dbdb7 24698
0058f771 24699 * Makefile.in (COMMON_DISTFILES): Removed.
24700 (BOOT_DISTFILES): Likewise.
24701 (CONF_DISTFILES): Likewise.
24702 (DISK_DISTFILES): Likewise.
24703 (FS_DISTFILES): Likewise.
24704 (INCLUDE_DISTFILES): Likewise.
24705 (KERN_DISTFILES): Likewise.
24706 (LOADER_DISTFILES): Likewise.
24707 (TERM_DISTFILES): Likewise.
24708 (UTIL_DISTFILES): Likewise.
24709 (DISTFILES): Likewise.
24710 (uninstall): Uninstall files in $(pkgdata_DATA).
24711 (DISTLIST): New target.
24712 (distdir): Use the contents of the file DISTLIST to get a list of
24713 distributed files.
24714
46b3b8a5 247152005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
24716
24717 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
24718 descriptor. This is ported from GRUB Legacy.
24719
24720 * gencmdlist.sh: Added an extra semicolon to make it work with
24721 old sed versions. Reported by Robert Bihlmeyer
24722 <robbe@orcus.priv.at>.
24723
5822ff87 247242005-03-08 Yoshinori Okuji <okuji@enbug.org>
24725
24726 Automatic loading of commands is supported.
f19dbdb7 24727
5822ff87 24728 * normal/main.c (read_command_list): New function.
24729 (grub_normal_execute): Call read_command_list.
24730
24731 * normal/command.c (grub_register_command): Return zero or CMD.
24732 Allocate CMD->NAME from the heap.
24733 Initialize CMD->MODULE_NAME to zero.
24734 Find the same name as well. If the same command is found and it is
24735 a dummy command, overwrite members. If it is not a dummy command,
24736 return zero.
24737 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
24738 (grub_command_find): If a dummy command is found, load a module
24739 and retry to find a command only once.
24740
24741 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
24742 make sure that each command is loaded.
24743
24744 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
24745 macro.
24746 (struct grub_command): Remove const from the member `name'.
24747 Add a new member `module_name'.
24748 (grub_register_command): Return grub_command_t.
24749
24750 * commands/help.c (grub_cmd_help): Call grub_command_find to make
24751 sure that each command is loaded.
24752
24753 * genmk.rb (PModule::rule): Specify a module name without the
24754 suffix ".mod" to gencmdlist.sh.
24755
7b1f4b57 247562005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
24757
24758 * gencmdlist.sh: New file.
f19dbdb7 24759
7b1f4b57 24760 * genmk.rb (PModule::rule): Generate a rule for a command list.
24761 Clean command.lst.
24762 Generate command.lst from $(COMMANDFILES).
24763
24764 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
24765 (DATA): Added $(pkgdata_DATA).
24766 (install-local): Install files in $(pkgdata_DATA).
24767
062aaf39 247682005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
24769
24770 * term/i386/pc/vga.c (debug_command): Removed.
24771 (GRUB_MOD_INIT): Do not register the command "debug".
24772
24773 From Hollis Blanchard:
24774 * commands/configfile.c: New file.
24775 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
24776 commands/configfile.c.
24777 (pkgdata_MODULES): Added configfile.mod.
24778 (configfile_mod_SOURCES): New variable.
24779 (configfile_mod_CFLAGS): Likewise.
24780 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
24781 commands/configfile.c.
24782 (pkgdata_MODULES): Added configfile.mod.
24783 (configfile_mod_SOURCES): New variable.
24784 (configfile_mod_CFLAGS): Likewise.
24785 * util/grub-emu.c (main): Call grub_configfile_init and
24786 grub_configfile_fini.
24787 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
24788 prototype.
24789 [GRUB_UTIL] (grub_configfile_fini): Likewise.
f19dbdb7 24790
cee01aa6 247912005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
24792
24793 * normal/arg.c (grub_arg_show_help): Do not show the bug report
24794 address.
24795
24796 * commands/help.c (grub_cmd_help): Do not print newlines after
24797 the last command in print_command_help.
24798
93f3a1d8 247992005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
24800
24801 * commands/default.h: New file.
24802 * commands/timeout.h: Likewise.
24803 * normal/context.c: Likewise.
f19dbdb7 24804
93f3a1d8 24805 * util/misc.c: Do not include sys/times.h.
24806 Include sys/time.h and grub/machine/time.h.
24807 (grub_get_rtc): Rewritten with gettimeofday.
24808
24809 * util/grub-emu.c (main): Call grub_default_init and
24810 grub_timeout_init before grub_normal_init, and call
24811 grub_timeout_fini and grub_default_fini after grub_main.
24812
24813 * util/console.c (grub_ncurses_checkkey): Return the read
24814 character or -1.
24815
24816 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
24817 timeouts.
24818
24819 * normal/main.c (read_config_file): Push MENU. If this fails,
24820 print an error and wait for a user input.
24821 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
24822 If a menu is empty or an error occurs, pop MENU.
24823 (grub_normal_execute): Pop and free MENU after grub_menu_run
24824 returns.
24825
24826 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
24827
24828 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
24829 include time.h.
24830 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
24831 without GRUB_UTIL.
24832 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
24833 time.h.
24834 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
24835 without GRUB_UTIL.
24836
24837 * include/grub/normal.h (struct grub_menu_list): New struct.
24838 (grub_menu_list_t): New type.
24839 (struct grub_context): New struct.
24840 (grub_context_t): New type.
24841 (grub_register_command): Got rid of EXPORT_FUNC.
24842 (grub_unregister_command): Likewise.
24843 (grub_context_get): New prototype.
24844 (grub_context_get_current_menu): Likewise.
24845 (grub_context_push_menu): Likewise.
24846 (grub_context_pop_menu): Likewise.
24847 [GRUB_UTIL] (grub_default_init): Likewise.
24848 [GRUB_UTIL] (grub_default_fini): Likewise.
24849 [GRUB_UTIL] (grub_timeout_init): Likewise.
24850 [GRUB_UTIL] (grub_timeout_fini): Likewise.
24851
24852 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
24853 commands/timeout.c and normal/context.c.
24854 (pkgdata_MODULES): Added default.mod and timeout.mod.
24855 (normal_mod_SOURCES): Added normal/context.c.
24856 (default_mod_SOURCES): New variable.
24857 (default_mod_CFLAGS): Likewise.
24858 (timeout_mod_SOURCES): Likewise.
24859 (timeout_mod_CFLAGS): Likewise.
24860 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
24861 conf/i386-pc.rmk.
24862 (pkgdata_MODULES): Added default.mod and timeout.mod.
24863 (normal_mod_SOURCES): Added normal/context.c.
24864 (default_mod_SOURCES): New variable.
24865 (default_mod_CFLAGS): Likewise.
24866 (timeout_mod_SOURCES): Likewise.
24867 (timeout_mod_CFLAGS): Likewise.
24868
24869 * Makefile.in (all-local): Added $(MKFILES).
24870
4ed2e1dd 248712005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
24872
24873 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
24874 (grub_emu_SOURCES): Likewise.
24875 (pkgdata_MODULES): Add `sun.mod'.
24876 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
24877 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
24878 `partmap/sun.c'.
24879 (pkgdata_MODULES): Add `sun.mod'.
24880 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
24881 * include/grub/partition.h (grub_sun_partition_map_init): New
24882 prototype.
24883 (grub_sun_partition_map_fini): Likewise.
24884 * partmap/sun.c: New file.
24885 * util/grub-emu.c (main): Initialize and de-initialize the sun
24886 partitionmap support.
24887
4d4e372e 248882005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
24889
24890 This implements an Emacs-like menu entry editor.
f19dbdb7 24891
4d4e372e 24892 * normal/menu_entry.c: New file.
f19dbdb7 24893
4d4e372e 24894 * util/console.c (grub_ncurses_putchar): Translate some Unicode
24895 characters to ASCII.
24896 (saved_char): New variable.
24897 (grub_ncurses_checkkey): Rewritten completely.
24898 (grub_ncurses_getkey): Likewise.
24899 (grub_ncurses_init): Call raw instead of cbreak.
24900
24901 * normal/menu.c (print_entry): Do not put a space.
24902 (init_page): Renamed to ...
24903 (grub_menu_init_page): ... this. All callers changed.
24904 (edit_menu_entry): Removed.
24905 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
24906
24907 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
24908
24909 * kern/misc.c (grub_vprintf): Call grub_refresh.
24910
24911 * normal/menu.c (DISP_LEFT): Renamed to ...
24912 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
24913 * normal/menu.c (DISP_UP): Renamed to ...
24914 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
24915 * normal/menu.c (DISP_RIGHT): Renamed to ...
24916 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
24917 * normal/menu.c (DISP_DOWN): Renamed to ...
24918 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
24919 * normal/menu.c (DISP_HLINE): Renamed to ...
24920 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
24921 * normal/menu.c (DISP_VLINE): Renamed to ...
24922 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
24923 * normal/menu.c (DISP_UL): Renamed to ...
24924 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
24925 * normal/menu.c (DISP_UR): Renamed to ...
24926 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
24927 * normal/menu.c (DISP_LL): Renamed to ...
24928 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
24929 * normal/menu.c (DISP_LR): Renamed to ...
24930 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
24931 * normal/menu.c (TERM_WIDTH): Renamed to ...
24932 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
24933 * normal/menu.c (TERM_HEIGHT): Renamed to ...
24934 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
24935 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
24936 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
24937 * normal/menu.c (TERM_MARGIN): Renamed to ...
24938 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
24939 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
24940 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
24941 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
24942 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
24943 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
24944 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
24945 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
24946 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
24947 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
24948 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
24949 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
24950 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
24951 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
24952 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
24953 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
24954 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
24955 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
24956 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
24957 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
24958 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
24959 All callers changed.
24960
24961 * include/grub/normal.h: New prototype.
24962
24963 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
24964 normal/menu_entry.c.
24965 (normal_mod_SOURCES): Likewise.
24966 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24967 (normal_mod_SOURCES): Likewise.
24968
e6b92c8a 249692005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
24970
24971 * include/grub/normal.h (grub_halt_init): New prototype.
24972 (grub_halt_fini): Likewise.
24973 (grub_reboot_init): Likewise.
24974 (grub_reboot_fini): Likewise.
24975
24976 * util/grub-emu.c: Include signal.h.
24977 (main_env): New global variable.
24978 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
24979 catch C-c.
24980 (grub_machine_fini): New function.
24981 (main): Call grub_halt_init and grub_reboot_init before
24982 grub_main, and grub_reboot_fini and grub_halt_fini after it.
24983 Call setjmp with MAIN_ENV to go back afterwards.
24984 Call grub_machine_fini right before return.
24985
24986 * include/grub/util/misc.h: Include setjmp.h.
24987 (main_env): New prototype.
24988
24989 * include/grub/kernel.h (grub_machine_fini): New prototype.
24990 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
24991 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
24992
24993 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
24994 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
24995 * term/i386/pc/console.c (grub_console_fini): Likewise.
f19dbdb7 24996
e6b92c8a 24997 * util/i386/pc/misc.c: New file.
f19dbdb7 24998
e6b92c8a 24999 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
25000 util/i386/pc/misc.c, commands/i386/pc/halt.c and
25001 commands/i386/pc/reboot.c.
25002
c642636f 250032005-02-14 Guillem Jover <guillem@hadrons.org>
25004
25005 * include/grub/dl.h (grub_dl_check_header): New prototype.
25006 (grub_arch_dl_check_header): Change return type to grub_err_t,
25007 remove size parameter and export function. Update all callers.
25008 * kern/dl.c (grub_dl_check_header): New function.
25009 (grub_dl_load_core): Use `grub_dl_check_header' instead of
25010 `grub_arch_dl_check_header'. Check ELF type. Check if sections
25011 are inside the core.
25012 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
25013 independent ELF header checks.
25014 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
25015 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
25016 `grub_dl_check_header' instead of explicit checks. Check for the
25017 ELF type.
25018 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
25019 `grub_dl_check_header' instead of explicit checks. Remove arch
25020 specific ELF header checks.
25021
e6b92c8a 25022 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
25023 argument SIZE.
25024
5eabe94b 250252005-02-13 Hollis Blanchard <hollis@penguinppc.org>
25026
25027 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
25028 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
25029
1b14a681 250302005-02-12 Hollis Blanchard <hollis@penguinppc.org>
25031
25032 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
f19dbdb7 25033 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
1b14a681 25034 (part_map_iterate): Clear `grub_errno' and return 0 if
f19dbdb7 25035 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
1b14a681 25036 * partmap/amiga.c (amiga_partition_map_iterate): Return
25037 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
25038 * partmap/apple.c (apple_partition_map_iterate): Likewise.
25039
aca108aa 250402005-02-01 Guillem Jover <guillem@hadrons.org>
25041
25042 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
25043 help info.
25044
c9f9c556 250452005-01-31 Marco Gerards <metgerards@student.han.nl>
25046
25047 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
25048 Removed prototype.
25049 (grub_rescue_cmd_linux): New prototype.
25050 (grub_rescue_cmd_initrd): Likewise.
25051 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
25052 `bi_rec'.
25053 (grub_linux_release_mem): Release the memory for the initrd.
25054 (grub_load_linux): Renamed from this...
25055 (grub_rescue_cmd_linux): ...To this. Changed all callers.
25056 Changed `entry' not to be static. Loop over memory regions to
25057 find another one when the default fails.
25058 (grub_rescue_cmd_initrd): New function.
25059 (grub_linux_init): Remove function.
25060 (grub_linux_fini): Likewise.
25061 (GRUB_MOD_INIT): Register `initrd'.
25062 (GRUB_MOD_FINI): Unregister `initrd'.
25063 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
25064 Function removed.
25065 (grub_linux_normal_fini): Likewise.
25066 (GRUB_MOD_INIT): Register `initrd'.
25067 (GRUB_MOD_FINI): Unregister `initrd'.
25068
990cf3aa 250692005-01-31 Marco Gerards <metgerards@student.han.nl>
25070
25071 * commands/help.c: New file.
25072 * normal/arg.c (show_help): Renamed to...
25073 (grub_arg_show_help): ... this.
25074 * commands/i386/pc/halt.c: New file.
25075 * commands/i386/pc/reboot.c: Likewise.
25076 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
25077 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
25078 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
25079 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
25080 variables.
25081 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
25082 `commands/help.c'.
25083 (pkgdata_MODULES): Add `help.mod'.
25084 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
25085 * grub/i386/pc/init.h (grub_reboot): New prototype.
25086 (grub_halt): Likewise.
25087 * include/grub/normal.h (grub_arg_show_help): New prototype.
25088 (grub_help_init): Likewise.
25089 (grub_help_fini): Likewise.
25090 * util/grub-emu.c (main): Initialize and deinitialize the help
25091 command.
25092
25093 * normal/cmdline.c (grub_cmdline_get): Doc fix.
25094
25095 * normal/command.c (grub_command_init): Fixed the description of
25096 the `set' and `unset' commands.
25097
250982005-01-31 Marco Gerards <metgerards@student.han.nl>
0f79cdc1 25099
25100 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
25101 function.
25102 * commands/ieee1275/halt.c: New file.
25103 * commands/ieee1275/reboot.c: Likewise.
25104 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
25105 `__attribute__ ((unused))'. Some GCS related fixed.
25106 (grub_suspend_init) [GRUB_UTIL]: Function removed.
25107 (grub_suspend_fini): Likewise.
25108 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
25109 and `halt.mod'.
25110 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
25111 (halt_mod_CFLAGS): New variables.
25112 * include/grub/powerpc/ieee1275/ieee1275.h
25113 (grub_ieee1275_interpret): New prototype.
25114
1ab09cc7 251152005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
25116
25117 * include/grub/misc.h (memmove): New prototype.
25118 (memcpy): Likewise.
25119
8b8cbdb2 251202005-01-22 Hollis Blanchard <hollis@penguinppc.org>
25121
25122 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
25123 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
25124
e3741a27 251252005-01-22 Marco Gerards <metgerards@student.han.nl>
25126
25127 * kern/misc.c (grub_strndup): Function rewritten.
25128
776bd780 251292005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
25130
25131 * normal/menu.c (TERM_WIDTH): Macro redefined.
25132 (TERM_TOP_BORDER_Y): Likewise.
25133 (draw_border): Replaced while-loop by a for-loop. Make the number
25134 of lines consistent with the number of lines displayed in
25135 print_entries. Added a margin below the rectangle.
25136 (print_entry): Make the entry fit in the rectangle.
25137 (print_entries): Display the scroll arrows next to the right
25138 border.
25139
78026bce 251402005-01-21 Marco Gerards <metgerards@student.han.nl>
25141
25142 * fs/minix.c (grub_minix_find_file): Reserve more space for
25143 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
25144 `grub_strncpy' to copy `path' into it.
25145
67bbaf0f 251462005-01-21 Marco Gerards <metgerards@student.han.nl>
25147
25148 Add the loopback device, a device via which files can be accessed
25149 as devices.
f19dbdb7 25150
67bbaf0f 25151 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
25152 (pkgdata_MODULES): Add loopback.mod.
25153 (loopback_mod_SOURCES): New variable.
25154 (loopback_mod_CFLAGS): Likewise.
25155 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
25156 `disk/loopback.c'.
25157 (pkgdata_MODULES): Add loopback.mod.
25158 (loopback_mod_SOURCES): New variable.
25159 (loopback_mod_CFLAGS): Likewise.
25160 * disk/loopback.c: new file.
25161 * include/grub/normal.h (grub_loop_init): New prototype.
25162 (grub_loop_fini): New prototype.
25163 * util/grub-emu.c (main): Initialize and de-initialize loopback
25164 support.
25165 * include/grub/disk.h (grub_disk_dev_id): Add
25166 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
25167
6f1c18bd 251682005-01-20 Hollis Blanchard <hollis@penguinppc.org>
25169
25170 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
25171 function.
25172 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
25173 (suspend_mod_SOURCES): New variable.
25174 (suspend_mod_CFLAGS): Likewise.
25175 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
25176 New prototype.
25177 * commands/ieee1275/suspend.c: New file.
25178
b38551da 251792005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
25180
25181 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
f19dbdb7 25182 ((unused))' to `__attribute__ ((used))'.
b38551da 25183 (GRUB_MOD_FINI): Likewise.
25184 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
25185 * genmk.rb (PModule): Assign space to common symbols when linking
25186 modules.
25187
777aff39 251882005-01-20 Marco Gerards <metgerards@student.han.nl>
25189
25190 * include/grub/mm.h (grub_mm_init_region): Change the type of the
25191 `unsigned' arguments to `grub_size_t'.
25192 (grub_malloc): Likewise.
25193 (grub_realloc): Likewise.
25194 (grub_memalign): Likewise.
25195 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
25196 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
25197 * util/misc.c (grub_malloc): Likewise.
25198 (grub_realloc): Likewise.
25199 * kern/mm.c (get_header_from_pointer): Change the casts to
25200 `unsigned' into a cast to `grub_size_t'.
25201
25202 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
25203 point to `currnode' when `currnode' is changed.
25204
25205 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
25206 Schottelius <nico-linux@schottelius.org>.
25207
d0ff18e1 252082005-01-09 Hollis Blanchard <hollis@penguinppc.org>
25209
25210 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
25211 (note_path): Remove variable.
25212 (GRUB_IEEE1275_NOTE_NAME): New macro.
25213 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
25214 (grub_ieee1275_note_hdr): New structure.
25215 (grub_ieee1275_note_desc): Likewise.
25216 (grub_ieee1275_note): Likewise.
25217 (load_note): Remove `dir' argument. All callers updated. Remove
25218 `note_img' and `path'. Do not load a file from `note_path'.
25219 Initialize a struct grub_ieee1275_note and write that to `out'.
25220 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
25221
4ca7004c 252222005-01-05 Marco Gerards <metgerards@student.han.nl>
25223
25224 * util/misc.c (grub_util_read_image): Revert last change. It
25225 called `grub_util_read_at', which seeks from the beginning of the
25226 file.
25227
0b412211 252282005-01-04 Hollis Blanchard <hollis@penguinppc.org>
25229
25230 * TODO: Add note about endianness in grub-mkimage.
25231 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
25232 section.
25233 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
25234 (grub_mkimage_SOURCES): New target.
25235 * include/grub/kernel.h (grub_start_addr): Remove variable.
25236 (grub_end_addr): Likewise.
25237 (grub_total_module_size): Likewise.
25238 (grub_kernel_image_size): Likewise.
25239 (GRUB_MODULE_MAGIC): New constant.
25240 (grub_module_info): New structure.
25241 (grub_arch_modules_addr): New prototype.
25242 (grub_get_end_addr): Remove prototype.
25243 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
25244 * include/grub/powerpc/ieee1275/kernel.h: New file.
25245 * include/grub/util/misc.h (grub_util_get_fp_size): New
25246 prototype.
25247 (grub_util_read_at): Likewise.
25248 (grub_util_write_image_at): Likewise.
25249 * kern/main.c (grub_get_end_addr): Remove function.
25250 (grub_load_modules): Call grub_arch_modules_addr instead of using
25251 grub_end_addr. Look for a grub_module_info struct in memory. Use
25252 the grub_module_info fields instead of calling grub_get_end_addr
25253 as loop conditions. Move grub_add_unused_region code here.
25254 (grub_add_unused_region): Remove function.
25255 * kern/i386/pc/init.c: Include grub/cache.h.
25256 (grub_machine_init): Remove call to grub_get_end_addr. Remove
25257 one call to add_mem_region.
25258 (grub_arch_modules_addr): New function.
25259 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
25260 (grub_total_module_size): Likewise.
25261 Include grub/machine/kernel.h.
25262 (grub_arch_modules_addr): New function.
25263 * util/grub-emu.c (grub_end_addr): Remove variable.
25264 (grub_total_module_size): Likewise.
25265 (grub_arch_modules_addr): New function.
25266 * util/misc.c: Include unistd.h.
25267 (grub_util_get_fp_size): New function.
25268 (grub_util_read_at): Likewise.
25269 (grub_util_write_image_at): Likewise.
25270 (grub_util_read_image): Call grub_util_read_at.
25271 (grub_util_write_image): Call grub_util_write_image_at.
25272 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
25273 additional memory in kernel_img for a struct grub_module_info.
25274 Fill in that grub_module_info.
25275 * util/powerpc/ieee1275/grub-mkimage.c: New file.
25276
458786f8 252772005-01-03 Hollis Blanchard <hollis@penguinppc.org>
25278
25279 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
25280 New function.
25281 * include/grub/powerpc/ieee1275/ieee1275.h
25282 (grub_ieee1275_milliseconds): New prototype.
25283 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
25284 Change to 1000.
25285 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
25286 grub_ieee1275_milliseconds.
25287
ac507d1b 252882005-01-03 Hollis Blanchard <hollis@penguinppc.org>
25289
25290 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
25291 variable.
25292 (find_options): New function.
25293 (cmain): Call find_options.
25294 * include/grub/powerpc/ieee1275/ieee1275.h
25295 (grub_ieee1275_realmode): New extern variable.
25296 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
25297 grub_map if grub_ieee1275_realmode is false.
25298
6b8fd1c4 252992004-12-29 Marco Gerards <metgerards@student.han.nl>
25300
25301 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
25302 lines are inserted and make it work like readline. Reported by
25303 Vincent Pelletier <subdino2004@yahoo.fr>.
25304
8514a1e0 253052004-12-28 Marco Gerards <metgerards@student.han.nl>
25306
25307 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
25308
25309 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
25310 `kern/powerpc/cache.S'.
25311
924b6140 253122004-12-27 Marco Gerards <metgerards@student.han.nl>
25313
25314 * genmk.rb: Handle the `Program' class in the main loop. Written
25315 by Johan Rydberg <jrydberg@gnu.org>.
25316 (Program): New class.
25317 (programs): New variable.
25318 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
25319 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
25320 instead of "grub/kernel.h". Include <grub/machine/init.h>.
25321 (help_arch): Function removed.
25322 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
25323 `powerpc/libgcc.h' and `loader.h'.
25324 (pkgdata_PROGRAMS): New variable.
25325 (sbin_UTILITIES): Variable removed.
25326 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
25327 (grubof_SOURCES): Variable re-defined so it only includes the
25328 core functionality.
25329 (grubof_CFLAGS): Remove `-DGRUBOF'.
25330 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
25331 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
25332 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
25333 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
25334 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
25335 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
25336 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
25337 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
25338 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
25339 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
25340 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
25341 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
25342 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
25343 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
25344 (pc_mod_CFLAGS): New variables.
25345 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
25346 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
25347 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
25348 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
25349 Moved from here...
25350 * include/grub/i386/pc/init.h (grub_os_area_addr)
25351 (rub_os_area_size): ... to here.
25352 * include/grub/powerpc/ieee1275/ieee1275.h
25353 (grub_ieee1275_entry_fn): Export symbol.
25354 * include/grub/powerpc/ieee1275/init.h: New file.
25355 * include/grub/powerpc/libgcc.h: Likewise.
25356 * include/grub/cache.h: Likewise.
25357 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
25358 <hollis@penguinppc.org>.
25359 * kern/dl.c: Include <grub/cache.h>.
25360 (grub_dl_flush_cache): New function.
25361 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
25362 for this module.
25363 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
25364 (grub_console_init): Removed prototypes.
25365 (grub_machine_init): Don't initialize the modules anymore.
25366 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
25367 static.
25368 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
25369 Macro undef removed.
25370 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
25371 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
25372 relocation `R_PPC_REL32'. Return an error when the relocation is
25373 unknown.
25374 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
25375 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
25376 * util/misc.c (grub_arch_sync_caches): Likewise.
25377
e4b47e0c 253782004-12-19 Marco Gerards <metgerards@student.han.nl>
25379
25380 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
25381 `symlist.c', add `grubof_symlist.c'.
25382 (symlist.c): Variable removed.
25383 (grubof_HEADERS): Variable added.
25384 (grubof_symlist.c): New target.
25385 (kernel_syms.lst): Use `grubof_HEADERS' instead of
25386 `kernel_img_HEADERS'.
25387 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
25388 * kern/powerpc/dl.c: New file.
25389 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
25390 Function removed.
25391 (grub_arch_dl_relocate_symbols): Likewise.
25392 (grub_register_exported_symbols): Likewise.
25393
4ceb3636 253942004-12-13 Marco Gerards <metgerards@student.han.nl>
25395
25396 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
25397 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
25398 to fail instead. Reported by Vincent Pelletier
25399 <subdino2004@yahoo.fr>.
25400
25401 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
25402 it is not allocated. Reported by Vincent Pelletier
25403 <subdino2004@yahoo.fr>.
25404
25405 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
25406 output so the output looks better.
f19dbdb7 25407
3f1578fe 254082004-12-04 Marco Gerards <metgerards@student.han.nl>
25409
25410 Modulize the partition map support and add support for the amiga
25411 partition map.
f19dbdb7 25412
3f1578fe 25413 * commands/ls.c: Include <grub/partition.h> instead of
25414 <grub/machine/partition.h>.
25415 * kern/disk.c: Likewise.
25416 * kern/rescue.c: Likewise.
25417 * loader/i386/pc/chainloader.c: Likewise.
25418 * normal/cmdline.c: Likewise.
25419 * kern/powerpc/ieee1275/init.c: Likewise.
25420 (grub_machine_init): Call `grub_pc_partition_map_init',
25421 `grub_amiga_partition_map_init' and
25422 `grub_apple_partition_map_init'.
25423 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
25424 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
25425 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
25426 `partition.h' and `pc_partition.h'.
25427 (grub_setup_SOURCES): Remove
25428 `disk/i386/pc/partition.c'. Add `kern/partition.c',
25429 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
25430 (grub_emu_SOURCES): Likewise.
25431 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
25432 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
25433 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
25434 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
25435 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
25436 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
25437 (grubof_SOURCES): Likewise.
25438 * disk/i386/pc/partition.c: File removed.
25439 * disk/powerpc/ieee1275/partition.c: Likewise.
25440 * include/grub/powerpc/ieee1275/partition.h: Likewise.
25441 * include/grub/i386/pc/partition.h: Likewise.
25442 * kern/partition.c: New file.
25443 * partmap/amiga.c: Likewise.
25444 * partmap/apple.c: Likewise.
25445 * partmap/pc.c: Likewise.
25446 * include/grub/partition.h: Likewise..
25447 * include/grub/pc_partition.h: Likewise.
25448 * util/grub-emu.c: Include <grub/partition.h> instead of
25449 <grub/machine/partition.h>.
25450 (main): Call `grub_pc_partition_map_init',
25451 `grub_amiga_partition_map_init' and
25452 `grub_apple_partition_map_init' and deinitialize afterwards.
25453 * util/i386/pc/biosdisk.c: Include `#include
25454 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
25455 `<grub/machine/partition.h>'.
25456 * util/i386/pc/grub-setup.c: Likewise.
25457 * util/i386/pc/biosdisk.c: Likewise.
25458 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
25459 partition information in case of a PC partition.
25460 * util/i386/pc/grub-setup.c: Include `#include
25461 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
25462 `<grub/machine/partition.h>'.
25463 (setup): Only access the PC specific partition information in case
25464 of a PC partition.
25465
0ef4ced9 254662004-11-17 Hollis Blanchard <hollis@penguinppc.org>
f19dbdb7 25467
0ef4ced9 25468 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
25469 (grub_longjmp): Likewise.
25470 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
25471 20.
25472 * normal/powerpc/setjmp.S: New file.
25473 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
25474 `normal/powerpc/setjmp.S'.
25475 (grubof_CFLAGS): Add `-DGRUBOF'.
25476 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
25477 [GRUB_UTIL && !GRUBOF].
f19dbdb7 25478
19950e29 254792004-11-16 Marco Gerards <metgerards@student.han.nl>
25480
25481 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
25482 property named `name'. Correctly handle the error returned by
25483 `grub_ieee1275_finddevice' if a device can not be opened.
25484
a2fea427 254852004-11-02 Hollis Blanchard <hollis@penguinppc.org>
25486
25487 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
25488 `actual' for negativity.
25489 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
25490 kern/fshelp.c.
25491
41ea0ea3 254922004-11-01 Marco Gerards <metgerards@student.han.nl>
25493
25494 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
25495 (PAGE_OFFSET): New macro.
25496 (CRTC_ADDR_PORT): Likewise.
25497 (CRTC_DATA_PORT): Likewise.
25498 (START_ADDR_HIGH_REGISTER): Likewise.
25499 (START_ADDR_LOW_REGISTER): Likewise.
25500 (GRAPHICS_ADDR_PORT): Likewise.
25501 (GRAPHICS_DATA_PORT): Likewise.
25502 (READ_MAP_REGISTER): Likewise.
25503 (INPUT_STATUS1_REGISTER): Likewise.
25504 (INPUT_STATUS1_VERTR_BIT): Likewise.
25505 (page): New variable.
25506 (wait_vretrace): New function.
25507 (set_read_map): Likewise.
25508 (set_start_address): Likewise.
25509 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
25510 the right page.
25511 (check_vga_mem): Take the page into account.
25512 (write_char): Likewise.
25513 (write_cursor): Likewise.
25514 (scroll_up): Likewise. Copy the page to the page that is not
25515 shown and switch between both pages.
25516 (grub_vga_putchar): Fix off by one error.
25517 (grub_vga_cls): Wait for the vertical retrace. Take the page into
25518 account.
25519
ad0bd20b 255202004-11-01 Marco Gerards <metgerards@student.han.nl>
25521
25522 Add support for iso9660 (including rockridge).
f19dbdb7 25523
ad0bd20b 25524 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
25525 (iso9660_mod_SOURCES): New variable.
25526 (iso9660_mod_CFLAGS): Likewise.
25527 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
25528 * include/grub/fs.h (grub_iso9660_init): New prototype.
25529 * util/grub-emu.c (main): Call `grub_iso9660_init'.
25530 * fs/iso9660.c: New file.
25531
25532 * include/grub/misc.h (grub_strncat): New prototype.
25533 * kern/misc.c (grub_strncat): New function.
f19dbdb7 25534
ad0bd20b 25535 * fs/hfs.c (grub_hfs_mount): Translate the error
25536 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
25537 * fs/jfs.c (grub_jfs_mount): Likewise.
25538 * fs/ufs.c (grub_ufs_mount): Likewise.
25539
a5477a59 255402004-10-28 Hollis Blanchard <hollis@penguinppc.org>
25541
25542 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
25543 which initialized BAT registers.
25544 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
25545 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
25546 Move from here...
25547 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
25548 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
25549 ... to here.
25550 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
25551 (grub_mapclaim): Likewise.
25552 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
25553 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
25554 hand.
25555
9304c1f8 255562004-10-19 Hollis Blanchard <hollis@penguinppc.org>
25557
25558 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
25559 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
25560 -ffreestanding and -msoft-float.
25561
86f4ae25 255622004-10-15 Hollis Blanchard <hollis@penguinppc.org>
25563
25564 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
25565 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
25566 set in grub_ieee1275_flags.
25567
38912228 255682004-10-14 Hollis Blanchard <hollis@penguinppc.org>
25569
25570 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
25571 prototype.
25572 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
25573 grub_console_init first.
25574 Change the memory range used for grub_ieee1275_claim and
25575 grub_mm_init_region.
25576 Print an error message if the claim fails.
25577 Include <grub/misc.h>.
25578
d1923dc8 255792004-10-13 Hollis Blanchard <hollis@penguinppc.org>
25580
25581 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
25582 Call grub_children_iterate for device nodes of type `scsi',
25583 `ide', or `ata'.
25584 (grub_ofdisk_open): Remove manual device alias resolution.
25585 Fix memory leak when device cannot be opened.
f19dbdb7 25586 * include/grub/powerpc/ieee1275/ieee1275.h
d1923dc8 25587 (grub_children_iterate): New prototype.
25588 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
25589 New function.
25590 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
25591 Return -1 if args.size was -1.
25592
4512e4f3 255932004-10-11 Hollis Blanchard <hollis@penguinppc.org>
25594
25595 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
25596 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
25597 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
25598 Open Firmware's memory for it; claim memory from _start to _end.
25599 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
25600 (_end): New extern.
25601 (_start): Zero BSS from __bss_start to _end.
25602 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
25603 New extern.
25604 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
25605
4d61feb0 256062004-10-11 Hollis Blanchard <hollis@penguinppc.org>
25607
ad0bd20b 25608 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
25609 -1 if args.base was -1.
4d61feb0 25610
026fa2f9 256112004-10-08 Hollis Blanchard <hollis@penguinppc.org>
25612
25613 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
25614 escape sequence instead of a literal ^L. Also call
25615 grub_ofconsole_gotoxy.
25616
9f2220ef 256172004-10-03 Hollis Blanchard <hollis@penguinppc.org>
25618
25619 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
25620 void * arguments to grub_addr_t. All callers updated. Also make
25621 the `result' argument optional.
25622 (grub_ieee1275_release): change void * arguments to grub_addr_t.
25623 All callers updated.
25624
8a572cd7 256252004-09-22 Hollis Blanchard <hollis@penguinppc.org>
25626
25627 * commands/ls.c (grub_ls_list_files): Use the string following the
25628 initial ')', if present, as the filesystem path.
25629 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
25630
25631 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
25632
18aa81f2 256332004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
25634
25635 Make the source code of the menu interface more readable.
f19dbdb7 25636
18aa81f2 25637 * normal/menu.c: Include grub/mm.h.
25638 (TERM_WIDTH): New macro.
25639 (TERM_HEIGHT): Likewise.
25640 (TERM_INFO_HEIGHT): Likewise.
25641 (TERM_MARGIN): Likewise.
25642 (TERM_SCROLL_WIDTH): Likewise.
25643 (TERM_TOP_BORDER_Y): Likewise.
25644 (TERM_LEFT_BORDER_X): Likewise.
25645 (TERM_BORDER_WIDTH): Likewise.
25646 (TERM_MESSAGE_HEIGHT): Likewise.
25647 (TERM_BORDER_HEIGHT): Likewise.
25648 (TERM_NUM_ENTRIES): Likewise.
25649 (TERM_FIRST_ENTRY_Y): Likewise.
25650 (TERM_ENTRY_WIDTH): Likewise.
25651 (TERM_CURSOR_X): Likewise.
25652 (draw_border): Use macros instead of magic numbers.
25653 (print_entry): Likewise.
25654 (print_entries): Likewise.
25655 (run_menu): Likewise. Also, handle the key 'e'.
25656 (run_menu_entry): Ignore empty command lines.
25657 (print_message): Added a new argument EDIT. If EDIT is true,
25658 print a different message.
25659 (init_page): Likewise.
25660 (edit_menu_entry): New function. Not implemented yet.
25661
b47efe30 256622004-09-17 Marco Gerards <metgerards@student.han.nl>
25663
25664 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
25665 can be loaded from normal mode.
f19dbdb7 25666
b47efe30 25667 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
25668 `multiboot.mod'.
25669 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
25670 (multiboot_mod_CFLAGS): New variables.
25671 * loader/i386/pc/linux_normal.c: New file.
f19dbdb7 25672 * loader/i386/pc/multiboot_normal.c: Likewise.
25673
b47efe30 25674 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
25675 attribute `unused'.
f19dbdb7 25676
b47efe30 25677 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
25678 `fdiro' to read the mode information from instead of `diro'.
25679
25680 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
25681 looking up a symlink.
25682
25683 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
25684 macro.
25685 * normal/command.c (grub_command_execute): Don't parse the
25686 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
25687 flags of the command.
25688
25689 * normal/menu.c (grub_menu_run): Fix typo.
25690
da75ac71 256912004-09-14 Hollis Blanchard <hollis@penguinppc.org>
25692
25693 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
25694
25695 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
25696 `y + 1' instead of `y - 1'.
25697
25698 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
f19dbdb7 25699
062b24c2 257002004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
25701
25702 From Hollis Blanchard <hollis@penguinppc.org>:
25703 * kern/misc.c (memmove): New alias for grub_memmove.
25704 (memcmp): New alias for grub_memcmp.
25705 (memset): New alias for grub_memset.
f19dbdb7 25706 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
062b24c2 25707 Change "int handle" to "grub_ieee1275_phandle_t handle".
f19dbdb7 25708 * include/grub/powerpc/ieee1275/ieee1275.h
062b24c2 25709 (grub_ieee1275_get_property): Likewise.
f19dbdb7 25710
8ddad845 257112004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
25712
25713 Added normal mode command `chainloader' as module chain.mod, which
25714 depends on normal.mod and _chain.mod.
f19dbdb7 25715
8ddad845 25716 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
25717 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
25718 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
25719 Deleted prototype.
25720 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
25721 but arguments parsing moved to ...
25722 (grub_chainloader_cmd): ... here. New function.
25723 * include/grub/i386/pc/chainloader.h: New file.
25724 * loader/i386/pc/chainloader_normal.c: Likewise.
25725
2c1f4ce3 257262004-09-11 Marco Gerards <metgerards@student.han.nl>
25727
25728 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
25729 (grub_mkimage_LDFLAGS): Likewise.
25730 (grub_emu_SOURCES): Likewise.
25731 (kernel_img_HEADERS): Added fshelp.h.
25732 * fs/ext2.c: Include <grub/fshelp.h>.
25733 (FILETYPE_REG): New macro.
25734 (FILETYPE_INO_REG): Likewise.
25735 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
25736 Changed all users.
25737 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
25738 all users.
25739 (grub_fshelp_node): New struct.
25740 (grub_ext2_data): Added member `diropen'. Changed member `inode'
25741 to a pointer.
25742 (grub_ext2_get_file_block): Removed function.
25743 (grub_ext2_read_block): New function.
25744 (grub_ext2_read_file): Replaced parameter `data' by `node'.
25745 This function was written.
25746 (grub_ext2_mount): Read the root inode. Create a diropen struct.
25747 (grub_ext2_find_file): Removed function.
25748 (grub_ext2_read_symlink): New function.
25749 (grub_ext2_iterate_dir): Likewise.
25750 (grub_ext2_open): Rewritten.
25751 (grub_ext2_dir): Rewritten.
25752 * include/grub/fshelp.h: New file.
25753 * fs/fshelp.c: Likewise.
25754
3c52136a 257552004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
25756
25757 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
25758 (print_message): Add a missing newline.
25759 (run_menu): Added timeout support.
25760 (run_menu_entry): New local function.
25761 (grub_menu_run): Added support for booting.
25762
25763 * kern/loader.c (grub_loader_is_loaded): New function.
25764
25765 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
25766 (grub_get_rtc): Exported.
25767
25768 * include/grub/i386/pc/time.h: Include grub/symbol.h.
25769 (grub_get_rtc): Exported.
25770
25771 * include/grub/normal.h (struct grub_command_list): Remove
25772 constant from the member `command'.
25773
25774 * include/grub/loader.h (grub_loader_is_loaded): Declared.
25775
25776 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
25777
25778 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
25779
aa033560 257802004-08-28 Marco Gerards <metgerards@student.han.nl>
25781
25782 Add support for the JFS filesystem.
25783
25784 * fs/jfs.c: New file.
25785 * include/grub/fs.h (grub_jfs_init): New prototype.
25786 (grub_jfs_fini): New prototype.
25787 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
25788 (grub_emu_SOURCES): Likewise.
25789 (pkgdata_MODULES): Add jfs.mod.
25790 (jfs_mod_SOURCES): New variable.
25791 (jfs_mod_CFLAGS): Likewise.
25792 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
25793 (grubof_SOURCES): Likewise.
25794 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
25795
25796 * fs/fat.c (grub_fat_find_dir): Convert the filename little
25797 endian to the host endian.
25798 (grub_fat_utf16_to_utf8): Move function from there...
25799 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
fe987087 25800 the endianness of the source string anymore.
aa033560 25801 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
25802
94bc45af 258032004-08-24 Marco Gerards <metgerards@student.han.nl>
25804
25805 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
25806 (grub_boot_fini) [GRUB_UTIL]: Likewise.
25807 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
25808 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
f19dbdb7 25809
94bc45af 25810 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
25811 (grub_hfs_iterate_dir): Make the function static. Add prototypes
25812 for `node_found' and `it_dir'.
25813 (grub_hfs_dir): Add prototype for `dir_hook'.
25814
25815 * fs/minix.c (grub_minix_get_file_block): Add prototype for
25816 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
25817 and `indir32' to silence a gcc warning.
25818
25819 * include/grub/fs.h (grub_hfs_init): New prototype.
25820 (grub_hfs_fini): Likewise.
f19dbdb7 25821
25822
97543f08 258232004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
25824
25825 Each disk device has its own id now. This is useful to make use
25826 of multiple disk devices.
f19dbdb7 25827
97543f08 25828 * include/grub/disk.h (grub_disk_dev_id): New enum.
25829 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
25830 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
25831
25832 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
25833 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
25834
25835 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
25836 GRUB_DISK_DEVICE_OFDISK_ID as an id.
25837
25838 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
25839 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
25840
25841 * include/grub/disk.h (struct grub_disk_dev): Added a new member
25842 "id" which is used by the cache manager.
25843
25844 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
25845 of just "GRUB".
25846
64372eb4 258472004-08-18 Marco Gerards <metgerards@student.han.nl>
25848
25849 * fs/hfs.c: New file.
25850 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
25851 (grub_emu_SOURCES): Likewise.
25852 (pkgdata_MODULES): Add hfs.mod.
25853 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
25854 (grubof_SOURCES): Likewise.
25855 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
25856
25857 * include/grub/misc.h (grub_strncasecmp): Add prototype.
25858 * kern/misc.c (grub_strncasecmp): Add function.
25859
cc61b58f 258602004-08-14 Marco Gerards <metgerards@student.han.nl>
25861
25862 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
25863 with parentheses.
25864
25865 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
25866 (grub_ext2_dir): In case the directory entry type is unknown, read
25867 it from the inode.
25868
0ef123f6 258692004-08-02 Peter Bruin <pjbruin@dds.nl>
25870
25871 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
25872 grub_load_linux instead of grub_rescue_cmd_linux as second
25873 argument of grub_rescue_register_command.
25874
25875 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
25876
a447c5df 258772004-07-27 Marco Gerards <metgerards@student.han.nl>
25878
25879 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
25880 function.
25881 * commands/boot.c: Remove the check for `GRUB_UTIL'.
25882 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
25883 `loader/powerpc/ieee1275/linux.c',
25884 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
25885 * include/grub/powerpc/ieee1275/ieee1275.h
25886 (grub_ieee1275_release): New prototype.
25887 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
25888 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
25889 normal, boot, linux and linux_normal.
25890 * loader/powerpc/ieee1275/linux.c: New file.
25891 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
25892
5a9e3546 258932004-07-12 Marco Gerards <metgerards@student.han.nl>
25894
25895 * normal/arg.c (grub_arg_parse): Correct error handling after
25896 reallocating the argumentlist (check if `argl' is not null instead
25897 of checking if `args' is not null).
25898 * kern/mm.c (grub_realloc): Return the same pointer when using the
25899 same region, instead of returning the header address.
25900
e15199cb 259012004-07-11 Marco Gerards <metgerards@student.han.nl>
25902
25903 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
25904 one block instead of two when looking for the initial partition.
25905 (grub_partition_probe): Initialize the local variable `p' with 0.
25906 Use base 10 for the grub_strtoul call.
25907 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
25908 need for one local variable.
25909 (grub_strtoul): Don't add the new value to `num', instead of that
25910 just assign it.
25911
020616c2 259122004-07-11 Marco Gerards <metgerards@student.han.nl>
25913
25914 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
25915 (pxeboot_img_SOURCES): New variable.
25916 (pxeboot_img_ASFLAGS): Likewise.
25917 (pxeboot_img_LDFLAGS): Likewise.
25918 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
25919 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
25920 <lode_leroy@hotmail.com>.
25921
6c51eb64 259222004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
25923
25924 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
25925 there was no input.
25926
cfb12aff 259272004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
25928
25929 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
25930 the history buffer logic.
25931
6eabba74 259322004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
25933
25934 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
25935 (FILETYPE_INO_SYMLINK): New macros.
25936 (grub_ext2_find_file): Check if the node is a directory using the
25937 inode stat information instead of using the filetype in the
25938 dirent. Exclude the first character of an absolute symlink.
25939 (grub_ext2_dir): Mask out the filetype part of the mode member of
25940 the inode.
25941
66e19ef8 259422004-05-24 Marco Gerards <metgerards@student.han.nl>
25943
25944 Add support for UFS version 1 and 2. Add support for the minix
25945 filesystem version 1 and 2, both the variants with 14 and 30 long
25946 filenames.
f19dbdb7 25947
66e19ef8 25948 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
25949 fs/minix.c.
25950 (grub_emu_SOURCES): Likewise.
25951 (pkgdata_MODULES): Add ufs.mod and minix.mod.
25952 (ufs_mod_SOURCES): New variable.
25953 (ufs_mod_CFLAGS): Likewise.
25954 (minix_mod_SOURCES): Likewise.
25955 (minix_mod_CFLAGS): Likewise.
25956 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
25957 fs/minix.c.
25958 (grubof_SOURCES): Likewise.
25959 * fs/ufs.c: New file.
25960 * fs/minix.c: New file.
25961 * include/grub/fs.h (grub_ufs_init): New prototype.
25962 (grub_ufs_fini): Likewise.
25963 (grub_minix_init): Likewise.
25964 (grub_minix_fini): Likewise.
25965 * util/grub-emu.c (main): Initialize and deinitialize UFS and
25966 minix fs.
25967
cc2e748a 259682004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
25969
25970 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
25971 commands/ls.c, commands/terminal.c, commands/boot.c,
25972 commands/cmp.c and commands/cat.c.
25973 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
25974
25975 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
25976 "env.h"
25977
4b13b216 259782004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
25979
25980 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
25981 and grub_, respectively. Because the conversion is trivial and
25982 mechanical, I omit the details here. Please refer to the CVS
25983 if you need more information.
25984
6a142551 259852004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
25986
25987 * include/pupa: Renamed to ...
25988 * include/grub: ... this.
25989 * util/i386/pc/pupa-mkimage.c: Renamed to ...
25990 * util/i386/pc/grub-mkimage.c: ... this.
25991 * util/i386/pc/pupa-setup.c: Renamed to ...
25992 * util/i386/pc/grub-setup.c: ... this.
25993 * util/pupa-emu.c: Renamed to ...
25994 * util/grub-emu.c: ... this.
25995
e56cdf21 259962004-03-29 Marco Gerards <metgerards@student.han.nl>
25997
25998 Add support for the newworld apple macintosh (PPC). This has been
25999 tested on the powerbook 2000 only. It only adds support for
26000 generic ieee1275 functions, console and disk support. This should
26001 be easy to port to other architectures with support for Open
26002 Firmware.
f19dbdb7 26003
e56cdf21 26004 * configure.ac: Accept the powerpc as host_cpu. In the case of
26005 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
26006 specific tests are only executed while building for the i386.
26007 Inverse test for crosscompile.
26008 * genmk.rb (Utility): Allow assembler files.
26009 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
26010 * conf/powerpc-ieee1275.rmk: New file.
26011 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
26012 * disk/powerpc/ieee1275/partition.c: Likewise.
26013 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
26014 * include/pupa/powerpc/ieee1275/console.h: Likewise.
26015 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
26016 * include/pupa/powerpc/ieee1275/time.h: Likewise.
26017 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
26018 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
26019 * include/pupa/powerpc/ieee1275/loader.h
26020 * include/pupa/powerpc/setjmp.h: Likewise.
26021 * include/pupa/powerpc/types.h: Likewise.
26022 * kern/powerpc/ieee1275/init.c: Likewise.
26023 * kern/powerpc/ieee1275/openfw.c: Likewise.
26024 * term/powerpc/ieee1275/ofconsole.c: Likewise.
26025
26026 These files were written by Johan Rydberg
26027 (jrydberg@night.trouble.net) and I only modified them slightly.
f19dbdb7 26028
e56cdf21 26029 * boot/powerpc/ieee1275/cmain.c: New file.
26030 * boot/powerpc/ieee1275/crt0.S: Likewise.
26031 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
26032 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
26033
8c8cc205 260342004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
26035
26036 * Makefile.in: Update copyright.
26037 * genmodsrc.sh: Likewise.
26038 * gensymlist.sh: Likewise.
26039 * term/i386/pc/vga.c: Indent correctly.
26040
26041 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
26042 bugreporting address.
26043 * util/i386/pc/pupa-setup.c (usage): Likewise,
26044 (main): Call pupa_ext2_init and pupa_ext2_fini.
26045
f19dbdb7 26046 * fs/fat.c (log2): Renamed to ...
8c8cc205 26047 (fat_log2): ... this.
26048 All callers changed.
26049 * kern/misc.c (memcpy): Alias to pupa_memmove.
26050 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
26051 lvalue cast.
26052 * util/console.c (pupa_ncurses_fini): Return 0.
26053
26054 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
26055 Move fail label here.
26056 [__GNU__]: Don't warn when using stat.
26057 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
26058 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
26059 long int. Use strtol instead of strtoul.
f19dbdb7 26060
db1771cf 260612004-03-14 Marco Gerards <metgerards@student.han.nl>
26062
26063 * commands/boot.c: New file.
26064 * commands/cat.c: Likewise.
26065 * commands/cmp.c: Likewise.
26066 * commands/ls.c: Likewise.
26067 * commands/terminal.c: Likewise.
26068 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
26069 (pupa_register_command): Changed interface to match the new
26070 argument parser.
26071 (pupa_command_execute): Changed (almost rewritten) so it uses
26072 pupa_split_command. Added support for setting variables using the
26073 syntax `foo=bar'.
26074 (rescue_command): Changed to work with the new argument parser.
26075 (terminal_command): Moved from here to commands/terminal.c.
26076 (set_command): New function.
26077 (unset_command): New function.
26078 (insmod_command): New function.
26079 (rmmod_command): New function.
26080 (lsmod_command): New function.
26081 (pupa_command_init): Don't initialize the command terminal
26082 anymore. Initialize the commands set, unset, insmod, rmmod and
26083 lsmod.
26084 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
26085 (kernel_img_HEADERS): Add arg.h and env.h.
26086 (pupa_mkimage_LDFLAGS): Add kern/env.c.
26087 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
26088 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
26089 normal/arg.c.
26090 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
26091 terminal.mod.
26092 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
26093 (boot_mod_SOURCES): New variable.
26094 (terminal_mod_SOURCES): Likewise.
26095 (ls_mod_SOURCES): Likewise.
26096 (cmp_mod_SOURCES): Likewise.
26097 (cat_mod_SOURCES): Likewise.
26098
26099 * normal/arg.c: New file.
26100 * kern/env.c: Likewise.
26101 * include/pupa/arg.h: Likewise.
26102 * include/pupa/env.h: Likewise.
26103 * font/manager.c (font_command): Changed to match argument parsing
26104 interface changes.
26105 (PUPA_MOD_INIT): Likewise.
26106 * hello/hello.c (pupa_cmd_hello): Likewise.
26107 (PUPA_MOD_INIT): Likewise.
26108 * include/pupa/disk.h: Include <pupa/device.h>.
26109 (pupa_print_partinfo): New prototype.
26110 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
26111 (pupa_dl_get_prefix): Likewise.
26112 * include/pupa/misc.h: Include <pupa/err.h>.
26113 (pupa_isgraph): New prototype.
26114 (pupa_isdigit): Likewise.
26115 (pupa_split_cmdline): Likewise.
26116 * include/pupa/normal.h: Include <pupa/arg.h>.
26117 (pupa_command): Changed the prototype of the member `func' to
26118 match the argument parsing interface. Added member `options'.
26119 (pupa_register_command): Updated to match function.
26120 (pupa_arg_parse): New prototype.
26121 (pupa_hello_init) [PUPA_UTIL]: New prototype.
26122 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
26123 (pupa_ls_init) [PUPA_UTIL]: Likewise.
26124 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
26125 (pupa_cat_init) [PUPA_UTIL]: Likewise.
26126 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
26127 (pupa_boot_init) [PUPA_UTIL]: Likewise.
26128 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
26129 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
26130 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
26131 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
26132 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
26133 * kern/disk.c: Include <pupa/file.h>.
26134 (pupa_print_partinfo): New function.
26135 * kern/dl.c: Include <pupa/env.h>.
26136 (pupa_dl_dir): Variable removed.
26137 (pupa_dl_load): Use the environment variable `prefix' instead of
26138 the variable pupa_dl_dir.
26139 (pupa_dl_set_prefix): Function removed.
26140 (pupa_dl_get_prefix): Likewise.
26141 * kern/i386/pc/init.c: Include <pupa/env.h>.
26142 (pupa_machine_init): Use the environment variable `prefix' instead of
26143 using pupa_dl_set_prefix to set the prefix.
26144 * kern/main.c: Include <pupa/env.h>.
26145 (pupa_set_root_dev): Use the environment variable `prefix' instead of
26146 using pupa_dl_get_prefix to get the prefix.
26147 * kern/misc.c: Include <pupa/env.h>.
26148 (pupa_isdigit): New function.
26149 (pupa_isgraph): Likewise.
26150 (pupa_ftoa): Likewise.
26151 (pupa_vsprintf): Added support for printing values of the type
26152 `double'. Make it possible to format variable output when using
26153 formatting like `%1.2%f'.
26154 (pupa_split_cmdline): New function.
26155 * kern/rescue.c: Include <pupa/env.h>.
26156 (next_word): Removed function.
26157 (pupa_rescue_cmd_prefix): Likewise.
26158 (pupa_rescue_cmd_set): New function.
26159 (pupa_rescue_cmd_unset): New function.
26160 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
26161 split the command line instead of splitting it here. Added
26162 support for setting variables using the syntax `foo=bar'. Don't
26163 initialize the prefix command anymore. Initialized the set and
26164 unset commands.
26165 * normal/cmdline.c: Include <pupa/env.h>.
26166 (pupa_tab_complete): Added prototypes for print_simple_completion,
26167 print_partition_completion, add_completion, iterate_commands,
26168 iterate_dev, iterate_part and iterate_dir. Moved code to print
26169 partition information from here to kern/disk.c.
fe6b695a 26170 (pupa_cmdline_run): Don't check if the function exists anymore.
db1771cf 26171 * normal/main.c: Include <pupa/env.h>.
26172 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
26173 instead of using pupa_dl_get_prefix to get the prefix.
26174 * term/i386/pc/vga.c: Include <pupa/arg.h>.
26175 (check_vga_mem): Cast pointers to `void *' to silence a gcc
26176 warning.
26177 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
26178 (pupa_vga_setcolor): Declare unused variables with `__attribute__
26179 ((unused))' to silence a gcc warning.
26180 (pupa_vga_setcolor): Likewise.
26181 (debug_command): Changed to match argument parsing
26182 interface changes.
26183 * util/pupa-emu.c: Include <pupa/env.h>.
26184 (options): Added 0's for unused fields to silence a gcc warning.
26185 (argp): Likewise.
26186 (main): Use the environment variable `prefix' instead of using
26187 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
26188 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
26189 and terminal.
26190
26191 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
26192 * util/misc.c: Include <malloc.h>.
26193 (pupa_malloc): Rewritten so errors are correctly reported.
26194 (pupa_realloc): Likewise.
26195 (pupa_memalign): Likewise.
26196 (pupa_mm_init_region): Declare unused variables with
26197 `__attribute__ ((unused))' to silence a gcc warning.
26198 * normal/i386/setjmp.S: Remove tab at the end of the file to
26199 silence a gcc warning.
26200 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
26201 variables with `__attribute__ ((unused))' to silence a gcc
26202 warning.
26203 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
26204 local variable i unsigned to silence a gcc warning.
26205
26206 * kern/term.c: Include <pupa/misc.h>.
26207 (pupa_more_lines): New variable.
26208 (pupa_more): Likewise.
26209 (pupa_putcode): When the pager is active pause at the end of every
26210 screen.
26211 (pupa_set_more): New function.
26212 * include/pupa/term.h (pupa_set_more): New prototype.
26213
26214
3b1139cb 262152004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
26216
26217 Now this project is GRUB 2 rather than PUPA. The location of
26218 the CVS repository was moved to GRUB's.
f19dbdb7 26219
3b1139cb 26220 * configure.ac: Use bug-grub as the reporting address.
26221 Use GRUB instead of PUPA.
26222 Change the version number to 1.90.
26223
8367695c 262242004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
26225
26226 * genkernsyms.sh: Updated copyright information.
26227 * genmk.rb: Likewise.
26228 * genmodsrc.sh: Likewise.
26229 * gensymlist.sh: Likewise.
26230 * boot/i386/pc/boot.S: Likewise.
26231 * boot/i386/pc/diskboot.S: Likewise.
26232 * disk/i386/pc/biosdisk.c: Likewise.
26233 * disk/i386/pc/partition.c: Likewise.
26234 * font/manager.c: Likewise.
26235 * fs/ext2.c: Likewise.
26236 * fs/fat.c: Likewise.
26237 * include/pupa/boot.h: Likewise.
26238 * include/pupa/device.h: Likewise.
26239 * include/pupa/disk.h: Likewise.
26240 * include/pupa/dl.h: Likewise.
26241 * include/pupa/elf.h: Likewise.
26242 * include/pupa/err.h: Likewise.
26243 * include/pupa/file.h: Likewise.
26244 * include/pupa/font.h: Likewise.
26245 * include/pupa/fs.h: Likewise.
26246 * include/pupa/kernel.h: Likewise.
26247 * include/pupa/loader.h: Likewise.
26248 * include/pupa/misc.h: Likewise.
26249 * include/pupa/mm.h: Likewise.
26250 * include/pupa/net.h: Likewise.
26251 * include/pupa/normal.h: Likewise.
26252 * include/pupa/rescue.h: Likewise.
26253 * include/pupa/setjmp.h: Likewise.
26254 * include/pupa/symbol.h: Likewise.
26255 * include/pupa/term.h: Likewise.
26256 * include/pupa/types.h: Likewise.
26257 * include/pupa/i386/setjmp.h: Likewise.
26258 * include/pupa/i386/types.h: Likewise.
26259 * include/pupa/i386/pc/biosdisk.h: Likewise.
26260 * include/pupa/i386/pc/boot.h: Likewise.
26261 * include/pupa/i386/pc/console.h: Likewise.
26262 * include/pupa/i386/pc/init.h: Likewise.
26263 * include/pupa/i386/pc/kernel.h: Likewise.
26264 * include/pupa/i386/pc/linux.h: Likewise.
26265 * include/pupa/i386/pc/loader.h: Likewise.
26266 * include/pupa/i386/pc/memory.h: Likewise.
26267 * include/pupa/i386/pc/multiboot.h: Likewise.
26268 * include/pupa/i386/pc/partition.h: Likewise.
26269 * include/pupa/i386/pc/time.h: Likewise.
26270 * include/pupa/i386/pc/vga.h: Likewise.
26271 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
26272 * include/pupa/util/getroot.h: Likewise.
26273 * include/pupa/util/misc.h: Likewise.
26274 * include/pupa/util/resolve.h: Likewise.
26275 * kern/device.c: Likewise.
26276 * kern/disk.c: Likewise.
26277 * kern/dl.c: Likewise.
26278 * kern/err.c: Likewise.
26279 * kern/file.c: Likewise.
26280 * kern/fs.c: Likewise.
26281 * kern/loader.c: Likewise.
26282 * kern/main.c: Likewise.
26283 * kern/misc.c: Likewise.
26284 * kern/mm.c: Likewise.
26285 * kern/rescue.c: Likewise.
26286 * kern/term.c: Likewise.
26287 * kern/i386/dl.c: Likewise.
26288 * kern/i386/pc/init.c: Likewise.
26289 * kern/i386/pc/lzo1x.S: Likewise.
26290 * kern/i386/pc/startup.S: Likewise.
26291 * loader/i386/pc/chainloader.c: Likewise.
26292 * loader/i386/pc/linux.c: Likewise.
26293 * loader/i386/pc/multiboot.c: Likewise.
26294 * normal/cmdline.c: Likewise.
26295 * normal/command.c: Likewise.
26296 * normal/main.c: Likewise.
26297 * normal/menu.c: Likewise.
26298 * normal/i386/setjmp.S: Likewise.
26299 * term/i386/pc/console.c: Likewise.
26300 * term/i386/pc/vga.c: Likewise.
26301 * util/console.c: Likewise.
26302 * util/genmoddep.c: Likewise.
26303 * util/misc.c: Likewise.
26304 * util/pupa-emu.c: Likewise.
26305 * util/resolve.c: Likewise.
26306 * util/unifont2pff.rb: Likewise.
26307 * util/i386/pc/biosdisk.c: Likewise.
26308 * util/i386/pc/getroot.c: Likewise.
26309 * util/i386/pc/pupa-mkimage.c: Likewise.
26310 * util/i386/pc/pupa-setup.c: Likewise.
26311
e6eced71 263122004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
26313
26314 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
26315 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
26316 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
26317 reading and reset it after reading.
26318 (pupa_ext2_close): Return PUPA_ERR_NONE.
26319
26320 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
26321 Correct value.
26322 (struct linux_kernel_header): Add kernel_version and
26323 initrd_addr_max.
26324 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
26325 pupa_file_read succeeds.
26326 (pupa_rescue_cmd_initrd): Implement.
26327
5aded270 263282003-12-03 Marco Gerards <metgerards@student.han.nl>
26329
26330 * fs/ext2.c (pupa_ext2_label): New function.
26331 (pupa_ext2_fs): Added label.
26332 * fs/fat.c (pupa_fat_label): New function.
26333 (pupa_fat_fs): Added label.
26334 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
26335
26336 * kern/misc.c (pupa_strndup): New function.
26337 * include/pupa/misc.h (pupa_strndup): New prototype.
26338
26339 * include/pupa/normal.h: Include <pupa/err.h>.
26340 (pupa_set_history): New prototype.
26341 (pupa_iterate_commands): New prototype.
26342 * normal/cmdline.c: Include <pupa/machine/partition.h>,
26343 <pupa/disk.h>, <pupa/file.h>.
26344 (hist_size): New variable.
26345 (hist_lines): Likewise.
26346 (hist_end): Likewise.
26347 (hist_used): Likewise.
26348 (pupa_set_history): New function.
26349 (pupa_history_get): Likewise.
26350 (pupa_history_add): Likewise.
26351 (pupa_history_replace): Likewise.
26352 (pupa_tab_complete): Likewise.
26353 (pupa_cmdline_run): Added tab completion and history buffer. Tab
26354 completion shows partitionnames while completing partitions, this
26355 feature was suggested by Jeff Bailey.
26356 * normal/command.c (pupa_iterate_commands): New function.
26357 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
26358 (pupa_normal_init): Initialize history buffer.
26359 (PUPA_MOD_INIT): Likewise.
26360 (pupa_normal_fini): Free the history buffer.
26361 (PUPA_MOD_FINI): Likewise.
26362
26363 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
26364 key.
26365
26366 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
26367 * configure.ac [i386]: Check for regparam bug.
26368 (NESTED_FUNC_ATTR) [! i386]: Defined.
26369
1f7315a3 263702003-11-17 Marco Gerards <metgerards@student.han.nl>
26371
26372 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
26373 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
26374 (pupa_emu_SOURCES): New variable.
26375 (pupa_emu_LDFLAGS): Likewise.
26376 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
26377 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
26378 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
26379 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
26380 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
26381 (pupa_jmp_buf): New typedef.
26382 (pupa_setjmp) [PUPA_UTIL]: New macro.
26383 (pupa_longjmp) [PUPA_UTIL]: Likewise.
26384 * include/pupa/term.h (struct pupa_term): New member `refresh'.
26385 (pupa_refresh): New prototype.
26386 * include/pupa/util/getroot.h: New file.
26387 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
26388 it.
26389 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
26390 (pupa_rescue_cmd_cat): Likewise.
26391 (pupa_rescue_cmd_ls): Likewise.
26392 (pupa_rescue_cmd_testload): Likewise.
26393 (pupa_rescue_cmd_lsmod): Likewise.
26394 * normal/cmdline.c (pupa_cmdline_get): Likewise.
26395 * normal/menu.c (run_menu): Likewise.
26396 * kern/term.c (pupa_cls): Likewise.
26397 (pupa_refresh): New function.
26398 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
26399 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
26400 * util/console.c: New file.
f19dbdb7 26401
1f7315a3 26402 * util/i386/pc/getroot.c: New file.
26403 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
26404 (pupa_putchar): New function.
26405 (pupa_refresh): Likewise.
26406 (xgetcwd): Function moved to ...
26407 (strip_extra_slashes): Likewise.
26408 (get_prefix): Likewise.
f19dbdb7 26409 * util/i386/pc/getroot.c: ... here.
1f7315a3 26410 (find_root_device): Function moved and renamed to...
26411 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
26412 Changed all callers.
26413 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
26414 and renamed to...
26415 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
26416 Changed all callers.
26417 * util/misc.c (pupa_memalign): New function.
26418 (pupa_mm_init_region): Likewise.
26419 (pupa_register_exported_symbols): Likewise.
26420 (pupa_putchar): Function removed.
26421 * util/pupa-emu.c: New file.
26422
9a5c1ade 264232003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
26424
26425 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
26426 (_multiboot_mod_SOURCES): New variable.
26427 (_multiboot_mod_CFLAGS): Likewise.
26428 * loader/i386/pc/multiboot.c: New file.
26429 * include/pupa/i386/pc/multiboot.h: Likewise.
26430 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
26431 (pupa_multiboot_real_boot): New function.
26432 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
26433 (pupa_multiboot_real_boot): New prototype.
26434 (pupa_rescue_cmd_multiboot): Likewise
26435 (pupa_rescue_cmd_module): Likewise.
26436
26437 * kern/loader.c (pupa_loader_set): Continue when
26438 pupa_loader_unload_func() fails.
26439 (pupa_loader_unset): New function.
26440 * include/pupa/loader.h (pupa_loader_unset): New prototype.
26441
26442 * kern/misc.c (pupa_stpcpy): New function.
26443 * include/pupa/misc.h (pupa_stpcpy): New prototype.
26444
8e72a9c0 264452003-11-12 Marco Gerards <metgerards@student.han.nl>
26446
26447 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
26448 for available extensions.
26449
26450 * include/pupa/i386/pc/time.h: New file.
26451 * kern/disk.c: Include <pupa/machine/time.h>.
26452 (PUPA_CACHE_TIMEOUT): New macro.
26453 (pupa_last_time): New variable.
26454 (pupa_disk_open): Flush the cache when there was a timeout.
26455 (pupa_disk_close): Reset the timer.
26456 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
26457 pupa_currticks.
26458 * util/misc.c: Include <sys/times.h>
26459 (pupa_get_rtc): New function.
26460
c4adbd32 264612003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
26462
26463 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
26464 as blocks.
26465 (pupa_ext2_get_file_block): Use blocks member.
26466
26467 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
26468 first block. Return -1 instead of pupa_errno on error.
26469
bfd30f06 264702003-10-27 Marco Gerards <metgerards@student.han.nl>
26471
26472 * README: In the pupa-mkimage example use _chain instead of chain
26473 and ext2 instead of fat.
26474 * TODO: Replace ext2fs with jfs as an example. Add an item for
26475 adding journal playback for ext2fs.
26476 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
26477 (pkgdata_MODULES): Added ext2.mod.
26478 (ext2_mod_SOURCES): New variable.
26479 (ext2_mod_CFLAGS): Likewise.
26480 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
26481 * include/pupa/misc.h (pupa_strncpy): New prototype.
26482 (pupa_strcat): Likewise.
26483 (pupa_strncmp): Likewise.
26484 * kern/misc.c (pupa_strcat): Enable function.
26485 (pupa_strncpy): New function.
26486 (pupa_strncmp): Likewise.
26487 * fs/ext2.c: New file.
f19dbdb7 26488
bfd30f06 26489 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
26490 when the read failed before retrying.
26491 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
26492 (_FILE_OFFSET_BITS): Likewise.
26493 * configure.ac: Added AC_SYS_LARGEFILE.
26494
98d15063 264952003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
26496
26497 * genmk.rb (PModule#rule): Make sure to get only symbol names
26498 from the output of nm.
59cad637 26499 Reported by Robert Millan <rmh.grub@aybabtu.com>.
98d15063 26500
18d9c7cd 265012003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
26502
26503 I forgot to check in these changes for a long time. This adds
26504 incomplete support for VGA console, and this is still very
26505 buggy. Also, a lot of consideration is required for I18N,
26506 UNICODE, and VGA font issues. Therefore, assume that this is
26507 such that "better than nothing".
f19dbdb7 26508
18d9c7cd 26509 * font/manager.c: New file.
26510 * include/pupa/font.h: Likewise.
26511 * include/pupa/i386/pc/vga.h: Likewise.
26512 * term/i386/pc/vga.c: Likewise.
26513 * util/unifont2pff.rb: Likewise.
26514
26515 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
26516 (pkgdata_MODULES): Added vga.mod and font.mod.
26517 (vga_mod_SOURCES): New variables.
26518 (vga_mod_CFLAGS): Likewise.
26519 (font_mod_SOURCES): Likewise.
26520 (font_mod_CFLAGS): Likewise.
26521
26522 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
26523
26524 * include/pupa/term.h: Include pupa/err.h.
f19dbdb7 26525 (struct pupa_term): Added init and fini.
18d9c7cd 26526 Changed the argument of putchar to pupa_uint32_t.
26527
26528 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
26529 (pupa_console_real_putchar): New prototype.
26530 (pupa_console_putchar): Removed.
26531 (pupa_console_checkkey): Exported.
26532 (pupa_console_getkey): Likewise.
26533
26534 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
26535 characters.
26536
26537 * kern/term.c (pupa_term_set_current): Rewritten.
26538 (pupa_putchar): Likewise.
26539 (pupa_putcode): New function.
26540
26541 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
26542 (pupa_console_real_putchar): ... this.
26543 (pupa_vga_set_mode): New function.
26544 (pupa_vga_get_font): Likewise.
26545
26546 * normal/command.c: Include pupa/term.h.
26547 (terminal_command): New function.
26548 (pupa_command_init): Register the command "terminal".
26549
26550 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
26551 (DISP_UP): Likewise.
26552 (DISP_RIGHT): Likewise.
26553 (DISP_DOWN): Likewise.
26554 (DISP_HLINE): Likewise.
26555 (DISP_VLINE): Likewise.
26556 (DISP_UL): Likewise.
26557 (DISP_UR): Likewise.
26558 (DISP_LL): Likewise.
26559 (DISP_LR): Likewise.
26560
26561 * term/i386/pc/console.c (pupa_console_putchar): New function.
f19dbdb7 26562
977329f5 265632003-02-08 NIIBE Yutaka <gniibe@m17n.org>
26564
26565 * util/resolve.c (pupa_util_resolve_dependencies): BUG
26566 FIX. Reverse the path_list.
26567
26568 * include/pupa/normal.h: Export pupa_register_command and
26569 pupa_unregister_command.
26570
26571 * hello/hello.c (pupa_cmd_hello): New module.
26572 * conf/i386-pc.rmk: Added hello.mod.
26573
1f5ab428 265742003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
26575
26576 * kern/i386/pc/lzo1x.S: New file.
f19dbdb7 26577
1f5ab428 26578 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
26579 (compress_kernel): New variable.
26580 (generate_image): Heavily modified to support compressing a
26581 large part of the core image.
26582
26583 * util/misc.c (pupa_util_read_image): Fix a file descriptor
26584 leak.
26585 (pupa_util_load_image): New function.
26586
26587 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
26588 (pupa_compressed_size): New variable.
26589 (codestart): Enable Gate A20 here.
26590 Decompress the compressed part of the core image.
26591 Rearrange the code to put functions and variables which are
26592 required for initialization in the non-compressed part.
26593 Include lzo1x.S.
26594
26595 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
26596 here.
26597
26598 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
26599
f19dbdb7 26600 * include/pupa/i386/pc/kernel.h
1f5ab428 26601 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
26602 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
26603 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
26604 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
26605 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
26606
26607 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
26608
26609 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
26610 (Utility#rule): Likewise.
26611
26612 * configure.ac: Check if LZO is available.
26613
ce5bf700 266142003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
26615
26616 * include/pupa/normal.h: New file.
26617 * include/pupa/setjmp.h: Likewise.
26618 * include/pupa/i386/setjmp.h: Likewise.
26619 * normal/cmdline.c: Likewise.
26620 * normal/command.c: Likewise.
26621 * normal/main.c: Likewise.
26622 * normal/menu.c: Likewise.
26623 * normal/i386/setjmp.S: Likewise.
f19dbdb7 26624
ce5bf700 26625 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
26626 (pupa_rescue_cmd_initrd): Likewise.
26627
26628 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
26629 Likewise.
26630
26631 * kern/i386/pc/startup.S (translation_table): New variable.
26632 (translate_keycode): New function.
26633 (pupa_console_getkey): Call translate_keycode.
26634
26635 * kern/rescue.c (attempt_normal_mode): New function.
26636 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
26637 it failed, print a message.
26638
26639 * kern/mm.c (pupa_real_malloc): Print more information when a
26640 free magic is broken.
26641 (pupa_free): If the first free header is not free actually, set
26642 it to P.
26643
26644 * kern/main.c (pupa_load_normal_mode): Just load the module
26645 "normal".
26646 (pupa_main): Don't print the message
26647 "Entering into rescue mode..." here.
26648
26649 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
26650 Declared.
26651 (pupa_rescue_cmd_initrd): Likewise.
26652 (pupa_rescue_cmd_initrd): Likewise.
26653
26654 * include/pupa/symbol.h (FUNCTION): Specify the type.
26655 (VARIABLE): Likewise.
26656
26657 * include/pupa/err.h (pupa_err_t): Added
26658 PUPA_ERR_UNKNOWN_COMMAND.
26659
26660 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
26661 (pupa_dl_get_prefix): Likewise.
26662
26663 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
26664 Added _chain.mod and _linux.mod instead of chain.mod and
26665 linux.mod.
26666 (chain_mod_SOURCES): Renamed to ...
26667 (_chain_mod_SOURCES): ... this.
26668 (chain_mod_CFLAGS): Renamed to ...
26669 (_chain_mod_CFLAGS): ... this.
26670 (linux_mod_SOURCES): Renamed to ...
26671 (_linux_mod_SOURCES): ... this.
26672 (linux_mod_CFLAGS): Renamed to ...
26673 (_linux_mod_CFLAGS): ... this.
26674 (normal_mod_SOURCES): New variable.
26675 (normal_mod_CFLAGS): Likewise.
26676 (normal_mod_ASFLAGS): Likewise.
26677
266782003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
26679
26680 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
26681 possible.
26682
fe6b695a 26683 * kern/dl.c (pupa_dl_ref): Refer depending modules
ce5bf700 26684 recursively.
26685 (pupa_dl_unref): Unrefer depending modules recursively.
26686 Don't call pupa_dl_unload implicitly, because PUPA can crash if
26687 a module is unloaded before one depending on that module is
26688 unloaded.
26689 (pupa_dl_unload): Unload depending modules explicitly,
26690 if possible.
26691
c04da074 266922003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
26693
26694 * include/pupa/i386/pc/linux.h: New file.
26695 * loader/i386/pc/linux.c: Likewise.
f19dbdb7 26696
c04da074 26697 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
26698 Removed.
26699 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
26700 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
26701 of PUPA_CHAINLOADER_BOOT_SECTOR.
26702
26703 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
26704 (pupa_linux_prot_size): New variable.
26705 (pupa_linux_tmp_addr): Likewise.
26706 (pupa_linux_real_addr): Likewise.
26707 (pupa_linux_boot_zimage): New function.
26708 (pupa_linux_boot_bzimage): Likewise.
26709
26710 * kern/i386/pc/init.c (struct mem_region): New structure.
26711 (MAX_REGIONS): New macro.
26712 (mem_regions): New variable.
26713 (num_regions): Likewise.
26714 (pupa_os_area_addr): Likewise.
26715 (pupa_os_area_size): Likewise.
26716 (pupa_lower_mem): Likewise.
26717 (pupa_upper_mem): Likewise.
26718 (add_mem_region): New function.
26719 (compact_mem_regions): Likewise.
26720 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
26721 the size of the conventional memory and that of so-called upper
26722 memory (before the first memory hole).
26723 Instead of adding each found region to free memory, use
26724 add_mem_region and add them after removing overlaps.
26725 Also, add only 1/4 of the upper memory to free memory. The rest
26726 is used for loading OS images. Maybe this is ad hoc, but this
26727 makes it much easier to relocate OS images when booting.
26728
26729 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
26730 (pupa_enter_rescue_mode): Don't register initrd and module.
26731
26732 * kern/mm.c: Include pupa/dl.h.
26733
26734 * kern/main.c: Include pupa/file.h and pupa/device.h.
26735
26736 * kern/loader.c (pupa_loader_load_module_func): Removed.
26737 (pupa_loader_load_module): Likewise.
26738
26739 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
26740 ``.o''.
26741
26742 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
26743 (pupa_linux_tmp_addr): Likewise.
26744 (pupa_linux_real_addr): Likewise.
26745 (pupa_linux_boot_zimage): Likewise.
26746 (pupa_linux_boot_bzimage): Likewise.
26747
26748 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
26749 (pupa_upper_mem): Likewise.
26750 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
26751 module is too dangerous.
26752
26753 * include/pupa/loader.h (pupa_os_area_addr): Declared.
26754 (pupa_os_area_size): Likewise.
26755 (pupa_loader_set): Remove the first argument. Loader doesn't
26756 manage modules or initrd any longer.
26757 (pupa_loader_load_module): Removed.
26758
26759 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
26760 (linux_mod_SOURCES): New variable.
26761 (linux_mod_CFLAGS): Likewise.
26762
a13f9237 267632003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
26764
26765 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
26766 the length of a blocklist correctly.
26767
26768 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
26769 Use ioctl only if the OS file is a block device.
26770 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
26771 not very useful for normal files.
26772
26773 * kern/main.c (pupa_set_root_dev): New function.
26774 (pupa_load_normal_mode): Likewise.
26775 (pupa_main): Call those above.
26776
26777 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
26778 pupa_uint16_t.
26779
26780 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
26781
a5ffe966 267822003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
26783
26784 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
26785 (setup): Configure the installed partition information and the
26786 dl prefix.
26787
26788 * loader/i386/pc/chainloader.c (my_mod): New variable.
26789 (pupa_chainloader_unload): New function.
26790 (pupa_rescue_cmd_chainloader): Refer itself.
26791 (PUPA_MOD_INIT): Save its own module in MY_MOD.
26792
26793 * kern/i386/pc/startup.S (install_partition): Removed.
26794 (version_string): Likewise.
26795 (config_file): Likewise.
26796 (pupa_install_dos_part): New variable.
26797 (pupa_install_bsd_part): Likewise.
26798 (pupa_prefix): Likewise.
26799 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
26800
26801 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
26802 and pupa/misc.h.
26803 (make_install_device): New function.
26804 (pupa_machine_init): Set the dl prefix.
26805
26806 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
26807 (buf): Renamed to ...
26808 (linebuf): ... this.
26809 (pupa_rescue_cmd_prefix): New function.
26810 (pupa_rescue_cmd_insmod): Likewise.
26811 (pupa_rescue_cmd_rmmod): Likewise.
26812 (pupa_rescue_cmd_lsmod): Likewise.
26813 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
26814 rmmod and lsmod.
26815
26816 * kern/mm.c (pupa_memalign): If failed even after invalidating
26817 disk caches, unload unneeded modules and retry.
26818
26819 * kern/misc.c (pupa_memmove): New function.
26820 (pupa_memcpy): Removed.
26821 (pupa_strcpy): New function.
26822 (pupa_itoa): Made static.
26823
26824 * kern/dl.c (pupa_dl_iterate): New function.
26825 (pupa_dl_ref): Likewise.
26826 (pupa_dl_unref): Likewise.
26827 (pupa_dl_unload): Return if succeeded or not.
26828 (pupa_dl_unload_unneeded): New function.
26829 (pupa_dl_unload_all): Likewise.
26830 (pupa_dl_init): Renamed to ...
26831 (pupa_dl_set_prefix): ... this.
26832 (pupa_dl_get_prefix): New function.
26833
26834 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
26835 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
26836 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
26837 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
26838 (pupa_install_dos_part): Declared.
26839 (pupa_install_bsd_part): Likewise.
26840 (pupa_prefix): Likewise.
26841 (pupa_boot_drive): Likewise.
26842
26843 * include/pupa/types.h: Fix a typo.
26844
26845 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
26846 pupa_memmove.
26847 (pupa_memmove): Declared.
26848 (pupa_strcpy): Likewise.
26849
26850 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
26851 pupa_mod_init takes one argument, its own module.
26852 (pupa_dl_unload_unneeded): Declared.
26853 (pupa_dl_unload_all): Likewise.
26854 (pupa_dl_ref): Likewise.
26855 (pupa_dl_unref): Likewise.
26856 (pupa_dl_iterate): Likewise.
26857 (pupa_dl_init): Renamed to ...
26858 (pupa_dl_set_prefix): ... this.
26859 (pupa_dl_get_prefix): Declared.
26860
26861 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
f19dbdb7 26862 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
a5ffe966 26863 unloaded.
26864 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
26865 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
26866
26867 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
26868 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
26869
012d7999 268702003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
26871
26872 * util/i386/pc/pupa-setup.c (setup): Define the internal
26873 function find_first_partition_start at the top level, because GCC
26874 3.0.x cannot compile internal functions in deeper scopes
26875 correctly.
26876 (find_root_device): Use lstat instead of stat.
26877 Don't follow symbolic links.
26878 Fix the path-constructing code.
26879
26880 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
26881 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
26882 by a BLKGETSIZE ioctl first, because block devices don't fill
26883 the member st_mode of the structure stat on Linux.
26884 [__linux__] (linux_find_partition): Use a temporary buffer
26885 REAL_DEV for the working space. Copy it to DEV before returning.
26886 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
26887 buffer cache consistent.
26888 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
26889 strncmp. The previous value was merely wrong.
26890 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
26891
26892 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
26893 FAT size is 12. The previous value was merely wrong.
26894
26895 * kern/main.c (pupa_main): Don't split the starting message from
26896 newlines.
26897
26898 * kern/term.c (pupa_putchar): Put CR after LF instead of before
26899 LF, because BIOS goes crazy about character attributes in this
26900 case.
26901
1cc73a62 269022003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
26903
26904 * include/i386/pc/util/biosdisk.h: New file.
26905 * util/i386/pc/biosdisk.c: Likewise.
26906 * util/i386/pc/pupa-setup.c: Likewise.
f19dbdb7 26907
1cc73a62 26908 * Makefile.in (INCLUDE_DISTFILES): Added
26909 include/pupa/i386/pc/util/biosdisk.h.
26910 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
26911 directory util/i386/pc.
26912 (install-local): Added a rule for sbin_UTILITIES.
26913 (uninstall): Likewise.
26914
26915 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
26916
26917 * util/misc.c (xrealloc): New function.
26918 (pupa_malloc): Likewise.
26919 (pupa_free): Likewise.
26920 (pupa_realloc): Likewise.
26921 (pupa_stop): Likewise.
26922 (pupa_putchar): Likewise.
26923
26924 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
26925
26926 * include/pupa/util/misc.h (xrealloc): Declared.
26927
26928 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
26929 macro.
26930 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
26931 (PUPA_BOOT_MACHINE_BPB_END): ... this.
26932
26933 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
26934 [PUPA_UTIL] (pupa_fat_fini): Likewise.
26935
26936 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
26937 way should be implemented.
26938 [PUPA_UTIL] (pupa_fat_fini): Likewise.
26939
26940 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
26941 the size of NAME for safety.
26942 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
26943 0x88.
26944
26945 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
26946 (pupa_setup_SOURCES): Likewise.
26947
26948 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
26949
08b70fe8 269502002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
26951
26952 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
26953 bunch of pushl's from pusha, because this destroys the return
26954 value.
26955
62ddcc8f 269562002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
26957
26958 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
26959 This means that any missing prototypes could be fatal. Also, you
26960 must take care when writing assembly code. See the comments at
26961 the beginning of startup.S, for more details.
f19dbdb7 26962
62ddcc8f 26963 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
26964 compilation mechanism.
26965 (pupa_chainloader_real_boot): Likewise.
26966 (pupa_biosdisk_rw_int13_extensions): Likewise.
26967 (pupa_biosdisk_rw_standard): Likewise.
26968 (pupa_biosdisk_check_int13_extensions): Likewise.
26969 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
26970 (pupa_biosdisk_get_diskinfo_standard): Likewise.
26971 (pupa_get_memsize): Likewise.
26972 (pupa_get_mmap_entry): Likewise.
26973 (pupa_console_putchar): Likewise.
26974 (pupa_console_setcursor): Likewise.
26975 (pupa_getrtsecs): Use pushl instead of push.
26976
26977 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
26978 memory instead of the stack for a mmap entry, because some
26979 BIOSes may ignore the maximum size and overflow.
26980
26981 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
26982
26983 * genmk.rb (PModule#rule): Compile automatically generated
26984 sources with module-specific CFLAGS as well as other sources.
26985
9962ed99 269862002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
26987
26988 * configure.ac: Check ld.
26989 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
26990 respectively, before checking endianness and sizes.
26991
26992 * Makefile.in (LD): New variable.
f19dbdb7 26993
abdfc3c5 269942002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
26995
26996 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
26997
6a161fa9 269982002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
26999
27000 * Changelog: New file.
27001