]> git.proxmox.com Git - grub2.git/blob - ChangeLog
Yeeloong firmware port.
[grub2.git] / ChangeLog
1 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
2
3 Yeeloong firmware port.
4
5 * boot/mips/yeeloong/fwstart.S: New file.
6 * bus/cs5536.c (gpiodump): New const.
7 (set_io_space): New function.
8 (set_iod): Likewise.
9 (set_p2d): Likewise.
10 (grub_cs5536_init_geode): Likewise.
11 * commands/mips/yeeloong/lsspd.c: New file.
12 * conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod.
13 (serial_mod_SOURCES): New variable.
14 (serial_mod_CFLAGS): Likewise.
15 (serial_mod_LDFLAGS): Likewise.
16 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c,
17 term/terminfo.c and term/tparm.c.
18 (pkglib_IMAGES): Add fwstart.img.
19 (fwstart_img_SOURCES): New variable.
20 (fwstart_img_CFLAGS): Likewise.
21 (fwstart_img_ASFLAGS): Likewise.
22 (fwstart_img_LDFLAGS): Likewise.
23 (fwstart_img_FORMAT): Likewise.
24 (pkglib_MODULES): Add lsspd.mod.
25 (lsspd_mod_SOURCES): New variable.
26 (lsspd_mod_CFLAGS): Likewise.
27 (lsspd_mod_LDFLAGS): Likewise.
28 (pkglib_MODULES): Add halt.mod.
29 (halt_mod_SOURCES): New variable.
30 (halt_mod_CFLAGS): Likewise.
31 (halt_mod_LDFLAGS): Likewise.
32 * conf/mips.rmk (pkglib_MODULES): Remove serial.mod.
33 (serial_mod_SOURCES): Removed.
34 (serial_mod_CFLAGS): Likewise.
35 (serial_mod_LDFLAGS): Likewise.
36 * disk/ata.c (check_device): New function.
37 (grub_ata_device_initialize): Use check_device.
38 (grub_ata_iterate): Recheck devices.
39 (grub_ata_open): Likewise.
40 (grub_atapi_iterate): Likewise.
41 (grub_atapi_open): Likewise.
42 * include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro.
43 (GRUB_ATA_CH1_PORT1): Likewise.
44 (GRUB_ATA_CH0_PORT2): Likewise.
45 (GRUB_ATA_CH1_PORT2): Likewise.
46 * include/grub/mips/loongson.h: New file.
47 * include/grub/mips/yeeloong/ec.h: Likewise.
48 * include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition.
49 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise.
50 (GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove.
51 * include/grub/misc.h (grub_halt): Declare as noreturn.
52 * include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ...
53 (UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated.
54 (UART_ENABLE_FIFO_TRIGGER1): New definition.
55 (UART_ENABLE_DTRRTS): Likewise.
56 (UART_ENABLE_MODEM): Removed.
57 (UART_ENABLE_OUT2): New const.
58 * include/grub/term.h (grub_term_register_input_active): New function.
59 (grub_term_register_output_active): Likewise.
60 * kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff
61 argument.
62 * kern/mips/yeeloong/init.c (grub_get_rtc): Macroify.
63 (init_pci): New function.
64 (grub_machine_init): Execute platform init when firmware. Init serial.
65 (grub_halt): Implement.
66 (grub_exit): Likewise.
67 (grub_reboot): Likewise.
68 * term/serial.c (serial_hw_init): Update macros.
69 [GRUB_MACHINE_MIPS_YEELOONG]: Init on startup.
70 * util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH.
71 (image_targets): New target mipsel-yeeloong-flash.
72 (generate_image): Support IMAGE_YEELOONG_FLASH.
73 * video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition.
74 (grub_video_sm712_setup): Init card.
75 (grub_video_sm712_set_palette): Removed.
76 * video/sm712_init.c: New file.
77
78 2010-06-30 Colin Watson <cjwatson@ubuntu.com>
79
80 * Makefile.in (install-local): Temporarily prepend $(builddir) to
81 PATH when running help2man and then run it on the unadorned
82 executable names, rather than passing $(builddir)/* paths to
83 help2man. This avoids the build directory ending up in generated
84 manual pages.
85
86 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
87
88 * util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
89 to avoid accidents when debugging with 'sh -x'.
90 * util/grub-mkrescue.in: Likewise.
91 * util/grub.d/00_header.in: Likewise.
92 * util/grub.d/10_hurd.in: Likewise.
93 * util/grub.d/10_kfreebsd.in: Likewise.
94 * util/grub.d/10_linux.in: Likewise.
95 * util/grub.d/10_netbsd.in: Likewise.
96 * util/grub.d/10_windows.in: Likewise.
97 * util/grub.d/20_linux_xen.in: Likewise.
98 * util/grub.d/30_os-prober.in: Likewise.
99 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
100
101 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
102
103 * commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
104 last character in the buffer.
105 Reported by: Vladimir Serbinenko.
106
107 2010-06-29 Robert Millan <rmh@gnu.org>
108
109 * docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}.
110 (Command-line and menu entry commands): Document `badram' command.
111
112 2010-06-28 Robert Millan <rmh@gnu.org>
113
114 * util/grub-mkconfig.in: Export `GRUB_BADRAM' variable.
115 * util/grub.d/00_header.in: When `GRUB_BADRAM' is set, issue badram
116 command using ${GRUB_BADRAM} as parameter.
117
118 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
119
120 * docs/grub.texi (Device map): New section.
121 (Themes): New section (stub).
122 * Makefile.in (docs/grub.info): The info documentation now builds
123 without errors. Make sure it stays that way.
124
125 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
126
127 Use normal parser for menu entries.
128 Reported by: Thomas Frauendorfer
129
130 * include/grub/parser.h (grub_parser_execute): Don't export.
131 * normal/menu.c (grub_menu_execute_entry_real): New function.
132 (grub_menu_execute_entry): Use grub_menu_execute_entry_real.
133
134 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
135
136 * docs/grub.texi (Embedded configuration): New section (replacing
137 old "Preset Menu" stub).
138 (Images): New section.
139 (configfile): Note that any menu entries defined in `file' are shown
140 immediately.
141
142 2010-06-28 Josh Triplett <josh@joshtriplett.org>
143
144 * mmap/i386/pc/mmap_helper.S: Set CF on return.
145
146 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
147
148 * util/grub-install.in: Add --debug-image= option.
149
150 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
151
152 Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
153 possible on Linux.
154
155 * util/deviceiter.c (check_device): Rename to ...
156 (check_device_readable_unique): ... this. Update all callers.
157 Maintain and check a list of which devices (by canonicalized name)
158 have already been seen.
159 (clear_seen_devices): New function.
160 (compare_file_names) [__linux__]: New function.
161 (grub_util_iterate_devices): Clear the list of seen devices on exit
162 and (just in case) on entry.
163 (grub_util_iterate_devices) [__linux__]: Iterate over non-partition
164 devices in /dev/disk/by-id/, in sorted order. Remove DM-RAID
165 seen-devices list, superseded by general code in check_device.
166
167 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
168
169 * commands/cat.c (options): New variable.
170 (grub_cmd_cat): Parse options. If the --dos option is given, print
171 DOS-style "\r\n" line endings as simple newlines (Debian bug
172 #586358).
173 (GRUB_MOD_INIT): Use extcmd.
174 (GRUB_MOD_FINI): Likewise.
175 * docs/grub.texi (cat): Document --dos.
176
177 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
178
179 XEN with Linux grub-mkconfig support.
180
181 * conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
182 * util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
183 GRUB_CMDLINE_XEN_DEFAULT.
184 * util/grub.d/20_linux_xen.in: New file.
185
186 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
187
188 Initialise VGA video on qemu ourselves.
189
190 * boot/i386/qemu/boot.S: Don't call 0xc000.
191 * conf/i386-qemu.rmk (kern/i386/qemu/init.c_DEPENDENCIES): New variable.
192 (kernel_img_SOURCES): Add kern/i386/qemu/init.c and bus/pci.c.
193 (kernel_img_HEADERS): Add pci.h.
194 * conf/i386.rmk (pkglib_MODULES) [qemu]: Remove pci.mod.
195 * configure.ac: Force unifont on qemu and yeeloong.
196 * include/grub/i386/qemu/kernel.h (grub_qemu_init_cirrus): New proto.
197 (grub_vga_palette_write): Use correct register.
198 * kern/i386/coreboot/init.c (grub_machine_init) [GRUB_MACHINE_QEMU]:
199 Call grub_qemu_init_cirrus.
200 * kern/i386/qemu/init.c: New file.
201 * term/i386/pc/vga_text.c (inc_y): Never read outside the screen.
202
203 * commands/videotest.c (grub_cmd_videotest): Handle double buffering.
204
205 2010-06-26 Pavel Roskin <proski@gnu.org>
206
207 * util/grub.d/10_linux.in: Add support for initrd images on Fedora
208 13.
209
210 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
211
212 * docs/grub.texi (Simple configuration): Explain that
213 GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY must be
214 set to `true' to disable their respective recovery entries, not
215 merely set.
216
217 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
218
219 Make the `source' command slightly faster.
220
221 * normal/main.c (grub_normal_execute): Don't re-read list files when
222 nested.
223
224 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
225
226 * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
227 field position and mask size to red fields from mode_info, not
228 green.
229 * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
230 Remove redundant tag->common.framebuffer_type assignment.
231 Reported by: Seth Goldberg.
232
233 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
234
235 Sync up other versions of the Linux loader with Robert Millan's
236 change of 2010-01-09, "Make loader output a bit more user-friendly".
237
238 * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
239 grub_dprintf().
240 (grub_cmd_linux): Likewise.
241 (grub_cmd_initrd): Likewise.
242 * loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise.
243 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
244
245 2010-06-21 Colin Watson <cjwatson@ubuntu.com>
246
247 * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
248 larger than MEMORY_MAP_SIZE.
249
250 2010-06-21 BVK Chaitanya <bvk.groups@gmail.com>
251
252 Fix parallel build.
253
254 * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
255 dependency.
256 * script/parser.y: #include grub_script.tab.h header.
257
258 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
259
260 Support >3GiB and <16MiB RAM in i386-qemu.
261
262 * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
263 (QEMU_CMOS_MEMSIZE2_LOW): Likewise.
264 (grub_lower_mem): Removed.
265 (grub_upper_mem): Likewise.
266 (mem_size): Made static.
267 (above_4g): New variable.
268 (grub_machine_mmap_init): Detect small mem_size and above_4g.
269 (grub_machine_mmap_iterate): Order in ascending order and add above_4g
270 support.
271
272 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
273
274 Cirrus 5446 and Bochs video cards support.
275
276 * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
277 video_bochs.mod
278 (video_cirrus_mod_SOURCES): New variable.
279 (video_cirrus_mod_CFLAGS): Likewise.
280 (video_cirrus_mod_LDFLAGS): Likewise.
281 (video_bochs_mod_SOURCES): Likewise.
282 (video_bochs_mod_CFLAGS): Likewise.
283 (video_bochs_mod_LDFLAGS): Likewise.
284 * include/grub/vga.h: New file.
285 * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
286 (grub_video_fb_set_page_t): New type.
287 (grub_video_fb_setup): New prototype.
288 (grub_video_fb_swap_buffers): Likewise.
289 (grub_video_fb_get_info_and_fini): Likewise.
290 * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
291 (CRTC_DATA_PORT): Likewise.
292 (CRTC_CURSOR): Likewise.
293 (CRTC_CURSOR_ADDR_HIGH): Likewise.
294 (CRTC_CURSOR_ADDR_LOW): Likewise.
295 (CRTC_CURSOR_DISABLE): Likewise.
296 (update_cursor): Use grub_vga_cr_write.
297 (grub_vga_text_setcursor): Likewise.
298 * video/bochs.c: New file.
299 * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
300 (palette): Likewise.
301 (palette_size): Likewise.
302 (framebuffer): New variable.
303 (grub_video_fb_init): Use 'framebuffer'.
304 (grub_video_fb_fini): Likewise.
305 (grub_video_fb_get_info): Likewise.
306 (grub_video_fb_get_palette): Likewise.
307 (grub_video_fb_set_palette): Likewise.
308 (grub_video_fb_set_viewport): Likewise.
309 (grub_video_fb_get_viewport): Likewise.
310 (grub_video_fb_map_color): Likewise.
311 (grub_video_fb_map_rgb): Likewise.
312 (grub_video_fb_map_rgba): Likewise.
313 (grub_video_fb_unmap_color): Likewise.
314 (grub_video_fb_unmap_color_int): Likewise.
315 (grub_video_fb_fill_rect): Likewise.
316 (grub_video_fb_blit_bitmap): Likewise.
317 (grub_video_fb_blit_render_target): Likewise.
318 (grub_video_fb_scroll): Likewise.
319 (grub_video_fb_create_render_target): Likewise.
320 (grub_video_fb_doublebuf_blit_init): Likewise.
321 (grub_video_fb_set_active_render_target): Handle doublebuffering.
322 (doublebuf_pageflipping_update_screen): New function.
323 (doublebuf_pageflipping_init): Likewise.
324 (grub_video_fb_setup): Likewise.
325 (grub_video_fb_swap_buffers): Likewise.
326 (grub_video_fb_get_info_and_fini): Likewise.
327 * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
328 All users updated.
329 (doublebuf_pageflipping_commit): Restructured into ...
330 (doublebuf_pageflipping_set_page): ... this.
331 (doublebuf_pageflipping_update_screen): Removed.
332 (doublebuf_pageflipping_init): Likewise.
333 (double_buffering_init): Likewise.
334 (grub_video_vbe_setup): Use grub_video_fb_setup.
335 (grub_video_vbe_swap_buffers): Removed.
336 (grub_video_vbe_set_active_render_target): Likewise.
337 (grub_video_vbe_get_active_render_target): Likewise.
338 (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
339 (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
340 grub_video_fb_set_active_render_target and
341 grub_video_fb_get_active_render_target.
342 * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
343 (SEQUENCER_DATA_PORT): Likewise.
344 (MAP_MASK_REGISTER): Likewise.
345 (CRTC_ADDR_PORT): Likewise.
346 (CRTC_DATA_PORT): Likewise.
347 (START_ADDR_HIGH_REGISTER): Likewise.
348 (START_ADDR_LOW_REGISTER): Likewise.
349 (GRAPHICS_ADDR_PORT): Likewise.
350 (GRAPHICS_DATA_PORT): Likewise.
351 (READ_MAP_REGISTER): Likewise.
352 (INPUT_STATUS1_REGISTER): Likewise.
353 (INPUT_STATUS1_VERTR_BIT): Likewise.
354 (get_map_mask): Use grub_vga_sr_read.
355 (set_map_mask): Use grub_vga_sr_write.
356 (set_read_map): Use grub_vga_gr_write.
357 (set_start_address): Use grub_vga_cr_write.
358 * video/sm712.c (framebuffer): Remove leftover fields.
359
360 2010-06-20 Colin Watson <cjwatson@ubuntu.com>
361
362 * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
363 setting GRUB_VIDEO_BACKEND. Make it available as a user override
364 instead. Replace the gfxterm backend check with a check that
365 ${GRUB_PREFIX}/video.lst is non-empty.
366 * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
367 again.
368 (load_video): New generated function. Call it before loading
369 gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
370 * util/grub.d/10_linux.in (linux_entry): Call load_video.
371 * util/grub.d/30_os-prober.in (osx_entry): Likewise.
372 * docs/grub.texi (Simple configuration): Document
373 GRUB_VIDEO_BACKEND.
374
375 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
376
377 Use video functions in linux and xnu loaders.
378
379 * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
380 * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
381 * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
382 * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
383 loader/i386/pc/linux.c.
384 (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
385 (find_line_len): Removed.
386 (find_framebuf): Likewise.
387 (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
388 * loader/i386/efi/xnu.c: Removed.
389 * loader/i386/pc/xnu.c: Moved from here...
390 * loader/i386/xnu.c: ...here.
391
392 Enable priorities in video drivers.
393
394 * include/grub/video.h (grub_video_adapter_prio_t): New type.
395 (grub_video_adapter): New field prio.
396 (grub_video_register): Respect prio when inserting.
397 * video/efi_gop.c (grub_video_gop_adapter): Add prio.
398 * video/efi_uga.c (grub_video_uga_adapter): Likewise.
399 * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
400 * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
401 * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
402 * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
403 * video/sm712.c (grub_video_sm712_adapter): Likewise.
404
405 Fix SDL driver ID.
406
407 * include/grub/video.h (grub_video_driver_id_t): New value
408 GRUB_VIDEO_DRIVER_SDL.
409 * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
410
411 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
412
413 * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
414 argument to printf.
415 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
416
417 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
418
419 * util/i386/pc/grub-setup.c (usage): Fix syntax error.
420 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
421
422 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
423
424 * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
425 directly, and recommend grub-install instead.
426 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
427
428 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
429
430 Fix i386-pc prefix handling with nested partitions (Debian bug
431 #585068). Note that the case where the core image is booted using
432 multiboot and relocated from its original location still requires
433 more work.
434
435 * kern/i386/pc/init.c (make_install_device): If the prefix starts
436 with "(,", fill the boot drive in between those two characters, but
437 expect that a full partition specification including partition map
438 names will follow.
439 * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
440 specified, write a prefix without the drive name but including a
441 full partition specification.
442
443 2010-06-16 Colin Watson <cjwatson@ubuntu.com>
444
445 * util/grub-mkconfig.in: Ignore non-option arguments, for
446 compatibility with older versions (before 2010-06-12) which did the
447 same. In particular, this makes it easier to ship an update-grub
448 wrapper which is compatible with that used with GRUB Legacy (Debian
449 bug #586056).
450
451 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
452
453 * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
454 for manual page generation.
455
456 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
457
458 * po/POTFILES: Remove leftover commands/handler.c.
459
460 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
461
462 * util/grub-mkconfig.in: Remove vestige of old argument parsing that
463 left this script non-functional.
464
465 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
466
467 * docs/man/grub-emu.h2m: New file.
468
469 2010-06-13 Colin Watson <cjwatson@ubuntu.com>
470
471 * docs/grub.texi (Commands): Document reduced command set in rescue
472 mode.
473 (cpuid): New section.
474
475 2010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
476
477 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
478 new partition naming style.
479 * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
480
481 2010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
482
483 Add "-o grub.iso" like cmdline options support.
484
485 * util/grub-install.in: Improve cmdline option parsing.
486 * util/grub-mkconfig.in: Likewise.
487 * util/grub-mkrescue.in: Likewise.
488 * util/grub-reboot.in: Likewise.
489 * util/grub-set-default.in: Likewise.
490 * util/i386/efi/grub-install.in: Likewise.
491 * util/ieee1275/grub-install.in: Likewise.
492 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
493
494 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
495
496 * .bzrignore: Ignore 41_custom.
497
498 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
499
500 * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
501
502 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
503
504 Avoid false positives in fs.lst, partmap.lst, and video.lst due to
505 prototype declarations.
506
507 * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
508 generating fs, partmap, and video lists.
509 * include/grub/fs.h (grub_fs_register): Omit prototype if
510 GRUB_LST_GENERATOR is defined.
511 * include/grub/partition.h (grub_partition_map_register): Likewise.
512 * include/grub/video.h (grub_video_register): Likewise.
513
514 2010-06-12 Javier Martín <lordhabbit@gmail.com>
515
516 * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
517
518 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
519
520 * util/grub-mkrescue.in: Support --xorriso argument.
521
522 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
523
524 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
525 Suggested by: Thomas Schmitt.
526
527 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
528
529 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
530 Suggested by: Thomas Schmitt.
531
532 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
533
534 custom.cfg support.
535
536 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
537 * util/grub.d/41_custom.in: New file.
538
539 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
540
541 * util/grub-mkrescue.in (make_image): Remove sh module, which has
542 been merged back into normal.
543
544 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
545
546 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
547 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
548
549 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
550
551 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
552 when generating manual pages.
553 * docs/man/grub-bin2h.h2m: New file.
554 * docs/man/grub-editenv.h2m: New file.
555 * docs/man/grub-fstest.h2m: New file.
556 * docs/man/grub-install.h2m: New file.
557 * docs/man/grub-macho2img.h2m: New file.
558 * docs/man/grub-mkconfig.h2m: New file.
559 * docs/man/grub-mkdevicemap.h2m: New file.
560 * docs/man/grub-mkfont.h2m: New file.
561 * docs/man/grub-mkimage.h2m: New file.
562 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
563 * docs/man/grub-mkrelpath.h2m: New file.
564 * docs/man/grub-mkrescue.h2m: New file.
565 * docs/man/grub-ofpathname.h2m: New file.
566 * docs/man/grub-pe2elf.h2m: New file.
567 * docs/man/grub-probe.h2m: New file.
568 * docs/man/grub-reboot.h2m: New file.
569 * docs/man/grub-script-check.h2m: New file.
570 * docs/man/grub-set-default.h2m: New file.
571 * docs/man/grub-setup.h2m: New file.
572
573 2010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
574
575 Use FOR_* macros instead of *_iterate whenever possible.
576
577 * commands/handler.c: Removed.
578 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
579 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
580 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
581 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
582 (grub_probe_SOURCES): Remove kern/parser.c.
583 (util/grub-script-check.c_DEPENDENCIES): Removed.
584 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
585 and grub_script_check_init.c.
586 (grub_script_check_init.lst): Removed.
587 (grub_script_check_init.h): Likewise.
588 (grub_script_check_init.c): Likewise.
589 (pkglib_MODULES): Remove handler.mod and sh.mod.
590 (handler_mod_SOURCES): Removed.
591 (handler_mod_CFLAGS): Likewise.
592 (handler_mod_LDFLAGS): Likewise.
593 (normal_mod_SOURCES): Remove normal/handler.c.
594 Add script/main.c, script/script.c, script/execute.c,
595 script/function.c, script/lexer.c, grub_script.tab.c
596 and grub_script.yy.c.
597 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
598 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
599 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
600 (grub_setup_SOURCES): Remove kern/parser.c.
601 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
602 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
603 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
604 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
605 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
606 (grub_setup_SOURCES): Remove kern/parser.c.
607 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
608 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
609 * include/grub/command.h (grub_command_iterate): Removed.
610 (FOR_COMMANDS): New macro.
611 * include/grub/dl.h (grub_dl): New member next.
612 (grub_dl_iterate): Removed.
613 (grub_dl_head): New variable declaration.
614 (FOR_DL_MODULES): New macro.
615 * include/grub/fs.h: Include list.h.
616 (grub_fs): Make next first element.
617 (grub_fs_list): New variable declaration.
618 (grub_fs_register): Make inline.
619 (grub_fs_unregister): Likewise.
620 (grub_fs_iterate): Removed.
621 (FOR_FILESYSTEMS): New macro.
622 * include/grub/handler.h: Removed.
623 * include/grub/list.h (grub_list_hook_t): Removed.
624 (grub_list_test_t): Likewise.
625 (grub_list_pop): Likewise.
626 (grub_list_iterate): Likewise.
627 (grub_list_insert): Likewise.
628 (FOR_LIST_ELEMENTS): New macro.
629 * include/grub/parser.h (grub_parser_class): Removed.
630 (grub_parser_register): Likewise.
631 (grub_parser_unregister): Likewise.
632 (grub_parser_get_current): Likewise.
633 (grub_parser_set_current): Likewise.
634 (grub_register_rescue_parser): Likewise.
635 (grub_rescue_parse_line): New function.
636 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
637 * include/grub/script_sh.h (grub_script_function_list): New variable
638 declaration.
639 (FOR_SCRIPT_FUNCTIONS): New macro.
640 (grub_script_function_iterate): Removed.
641 (grub_normal_parse_line): New prototype.
642 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
643 (FOR_DISABLED_TERM_INPUTS): Likewise.
644 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
645 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
646 * include/grub/video.h (grub_video_adapter): Move 'next' to first
647 element.
648 (grub_video_register): Inline.
649 (grub_video_unregister): Likewise.
650 (grub_video_adapter_list): New variable declaration.
651 (grub_video_iterate): Removed.
652 (FOR_VIDEO_ADAPTERS): New macro.
653 * kern/dl.c (grub_dl_list): Removed. All users updated.
654 (grub_dl_iterate): Removed.
655 * kern/fs.c (grub_fs_list): Make global.
656 (grub_fs_register): Removed.
657 (grub_fs_unregister): Likewise.
658 (grub_fs_iterate): Likewise.
659 * kern/handler.c: Removed.
660 * kern/list.c (grub_list_pop): Removed.
661 (grub_list_iterate): Likewise.
662 (grub_list_insert): Likewise.
663 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
664 (grub_prio_list_insert): Don't use grub_list_insert.
665 * kern/main.c (grub_register_rescue_parser): Don't call
666 grub_register_rescue_parser.
667 * kern/parser.c (grub_parser_class): Removed.
668 (grub_parser_execute): Use grub_rescue_parse_line.
669 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
670 (grub_rescue_parser): Removed.
671 (grub_register_rescue_parser): Likewise.
672 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
673 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
674 (grub_auth_check_authentication): Likewise.
675 * normal/completion.c (iterate_command): Removed.
676 (grub_normal_do_completion): Use FOR_COMMANDS.
677 * normal/handler.c: Removed.
678 * normal/main.c (read_config_file): Remove parser changing.
679 (grub_normal_execute): Don't call read_handler_list.
680 (grub_normal_read_line_real): Statically allocate prompt.
681 (grub_cmdline_run): Use grub_normal_parse_line.
682 (GRUB_MOD_FINI): Don't call free_handler_list.
683 * normal/menu_entry.c (run): Likewise.
684 * script/function.c (grub_script_function_list): Make global.
685 (grub_script_function_iterate): Removed.
686 * script/main.c (grub_normal_parse_line): Make global.
687 (grub_sh_parser): Removed.
688 (GRUB_MOD_INIT): Likewise.
689 (GRUB_MOD_FINI): Likewise.
690 * tests/lib/functional_test.c (grub_functional_test): Use
691 FOR_LIST_ELEMENTS.
692 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
693 (grub_test_run): Use FOR_LIST_ELEMENTS.
694 * tests/lib/unit_test.c (main): Likewise.
695 * util/deviceiter.c (grub_util_iterate_devices): Don't use
696 grub_list_pop.
697 * util/grub-fstest.c (grub_term_input_class): Removed.
698 (grub_term_output_class): Likewise.
699 * util/grub-probe.c: Likewise.
700 * util/i386/pc/grub-setup.c: Likewise.
701 * util/sparc64/ieee1275/grub-setup.c: Likewise.
702 * util/grub-script-check.c (main): Don't call grub_init_all and
703 grub_fini_all.
704 * video/video.c (grub_video_adapter_list): Make global.
705 (grub_video_register): Removed.
706 (grub_video_unregister): Likewise.
707 (grub_video_iterate): Likewise.
708
709 2010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
710
711 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
712 reported by Henrique Ferreiro.
713
714 2010-06-09 Robert Millan <rmh@gnu.org>
715
716 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
717 ones, when both are available.
718
719 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
720
721 Make --version uniform and avoid hard-coded program name.
722
723 * util/grub-mkimage.c (main): Use `program_name' instead of
724 hard-coded string.
725 * util/i386/pc/grub-setup.c (main): Likewise.
726 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
727 * util/grub-install.in: Save the basename of $0 in $self, and use the
728 latter in informational messages. Use the same format for --version
729 as the binary programs.
730 * util/grub-mkconfig.in: Likewise.
731 * util/grub-mkrescue.in: Likewise.
732 * util/grub-reboot.in: Likewise.
733 * util/grub-set-default.in: Likewise.
734 * util/i386/efi/grub-install.in: Likewise.
735 * util/ieee1275/grub-install.in: Likewise.
736 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
737
738 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
739
740 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
741 embedding area. Use <= instead of == when checking for non-emptiness.
742
743 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
744
745 * configure.ac: Add `.' to the directories searched for unifont.
746
747 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
748
749 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
750 grub_script.yy.h.
751
752 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
753
754 * docs/grub.texi (History): Expand to cover GRUB 2.
755 (Serial terminal): Refer to `terminal_input' and `terminal_output'
756 commands, not `terminal'.
757 (serial): Likewise.
758 (terminal_input): New section.
759 (terminal_output): New section.
760 (uppermem): New section (stub).
761 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
762
763 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
764
765 * docs/grub.texi (Security): Menu entries are unrestricted by
766 default, not restricted to superusers as I had previously thought.
767 Reword to account for this.
768
769 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
770
771 * kern/emu/misc.c (device_mapper_null_log): New function.
772 (grub_device_mapper_supported): New function.
773 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
774 prototype.
775 * kern/emu/hostdisk.c (find_partition_start): Check whether
776 device-mapper is supported before trying to use it.
777 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
778
779 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
780
781 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
782 (File name syntax): Likewise.
783 (help): --all is no longer supported in GRUB 2. Be more precise
784 about pattern matching.
785
786 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
787
788 * normal/completion.c (grub_normal_do_completion): When completing
789 arguments to "set" and the current word contains an equals sign,
790 skip to after the equals sign before starting completion.
791
792 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
793
794 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
795
796 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
797
798 * docs/grub.texi (Network): New section.
799 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
800 `(nd)' as in GRUB Legacy.
801 (pxe_unload): New section.
802
803 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
804
805 * docs/grub.texi (Troubleshooting): `echo' is not usually available
806 in the rescue shell, so recommend using `set' instead. Thanks,
807 Jordan Uggla.
808
809 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
810
811 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
812 (password): New section.
813 (password_pbkdf2): New section.
814 (search): New section.
815 (Security): New section.
816 (Troubleshooting): New section, currently very incomplete.
817 (Invoking grub-mkpasswd-pbkdf2): New section.
818 (Internals): New section, currently very incomplete.
819
820 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
821
822 * util/grub.d/00_header.in: Add some more quoting (of
823 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
824 work again.
825 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
826
827 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
828
829 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
830 to `count', fixing variable shadowing that broke the -c option.
831
832 2010-06-05 Colin Watson <cjwatson@ubuntu.com>
833
834 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
835 in case they contain spaces.
836
837 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
838
839 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
840 "part_" to partmap module names, in line with grub-install.
841 Reported by: Jindřich Makovička (Debian bug #584426).
842
843 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
844
845 * util/grub-mkimage.c: Make target-related error messages slightly
846 more helpful; -O talks about "format". Explicitly point to the use
847 of -O if no target is specified.
848 Reported by: Didier Raboud (Debian bug #584415).
849
850 2010-06-03 Colin Watson <cjwatson@ubuntu.com>
851
852 * INSTALL: Document several build requirements for optional features
853 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
854
855 2010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
856
857 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
858 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
859 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
860
861 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
862
863 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
864 Thanks to Jordan Uggla for spotting this.
865
866 2010-06-02 Aleš Nesrsta <starous@volny.cz>
867
868 Finally make USB usable.
869
870 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
871 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
872 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
873 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
874 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
875 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
876 (GRUB_OHCI_FSMPS): Likewise.
877 (GRUB_OHCI_PERIODIC_START): Likewise.
878 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
879 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
880 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
881 (GRUB_OHCI_SET_PORT_RESET): Likewise.
882 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
883 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
884 (grub_ohci_transaction): Likewise.
885 (grub_ohci_transfer): Improve condition detection algorithms.
886 Handle toggle property. Program the transactions correctly.
887 Improve error handling. Various important fixups.
888 (grub_ohci_portstatus): Put register writes in right order.
889 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
890 (grub_uhci_transfer): Don't show "failed" message on success.
891 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
892 array.
893 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
894 determine its size.
895 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
896 before initialization is completed. Use IN direction for empty
897 transfers. Use last_trans and compute toggle.
898 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
899 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
900 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
901 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
902 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
903 (grub_usb_device): Increase toggle to 256.
904 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
905 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
906 GRUB_USBMS_SUBCLASS_SFF8070.
907 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
908 (grub_scsi_inquiry): New member page and alloc_length.
909 (grub_scsi_request_sense): New structure.
910 (grub_scsi_request_sense_data): Likewise.
911 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
912 control.
913 * disk/scsi.c (grub_scsi_request_sense): New function.
914 (grub_scsi_test_unit_ready): Likewise.
915 (grub_scsi_inquiry): Fill new fields.
916 (grub_scsi_read_capacity): Likewise.
917 (grub_scsi_read10): Add request sense at the end.
918 (grub_scsi_read12): Likewise.
919 (grub_scsi_write10): Likewise.
920 (grub_scsi_write12): Likewise.
921 (grub_scsi_open): Add Test Unit Ready.
922 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
923 Support additional subclasses. Con't clear halt yet. Activate the
924 proper config. Calculate LUNs correctly.
925 (grub_usbms_transfer): Various important fixups.
926
927 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
928
929 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
930 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
931 (grub_ohci_fini_hw): New function.
932 (grub_ohci_restore_hw): Likewise.
933 (GRUB_MOD_INIT(ohci)): Register preboot hook.
934 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
935 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
936
937 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
938
939 Dedicated DMA allocations.
940
941 * bus/pci.c (grub_memalign_dma32): New function
942 (grub_dma_free): Likewise.
943 (grub_dma_get_virt): Likewise.
944 (grub_dma_get_phys): Likewise.
945 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
946 (grub_ohci_pci_iter): Use dma32_alloc.
947 (grub_ohci_transfer): Likewise.
948 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
949 (grub_usb_bulk_readwrite): Likewise.
950 * include/grub/pci.h: Add declarations.
951
952 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
953
954 CS5536 support.
955
956 * bus/cs5536.c: New file.
957 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
958 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
959 (cs5536_mod_SOURCES): New variable.
960 (cs5536_mod_CFLAGS): Likewise.
961 (cs5536_mod_LDFLAGS): Likewise.
962 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
963 machine/pci.h.
964 (kernel_img_SOURCES): Add bus/cs5536.c.
965 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
966 usb_keyboard.mod.
967 (usb_mod_SOURCES): New variable.
968 (usb_mod_CFLAGS): New variable.
969 (usb_mod_LDFLAGS): New variable.
970 (usbtest_mod_SOURCES): New variable.
971 (usbtest_mod_CFLAGS): New variable.
972 (usbtest_mod_LDFLAGS): New variable.
973 (ohci_mod_SOURCES): New variable.
974 (ohci_mod_CFLAGS): New variable.
975 (ohci_mod_LDFLAGS): New variable.
976 (usbms_mod_SOURCES): New variable.
977 (usbms_mod_CFLAGS): New variable.
978 (usbms_mod_LDFLAGS): New variable.
979 (usb_keyboard_mod_SOURCES): New variable.
980 (usb_keyboard_mod_CFLAGS): New variable.
981 (usb_keyboard_mod_LDFLAGS): New variable.
982 * include/grub/smbus.h: New file.
983 * include/grub/cs5536.h: New file.
984
985 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
986
987 * util/grub.d/00_header.in: Add safety check to make sure that
988 ${locale_dir} exists before trying to probe it.
989
990 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
991
992 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
993 per the GNU Coding Standards; this is now too obscure to be worth
994 documenting.
995 (QNX): Likewise.
996 (chainloader): Remove cross-reference to `SCO UnixWare'.
997
998 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
999
1000 * docs/grub.texi (Chain-loading): New section.
1001 (DOS/Windows): New section, borrowed from GRUB Legacy with details
1002 adjusted for GRUB 2.
1003 (SCO UnixWare): Likewise.
1004 (QNX): Likewise.
1005 (chainloader): Add reference to `Block list syntax'.
1006 (drivemap): New section.
1007 (parttool): New section.
1008
1009 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
1010
1011 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
1012 the grub shell'.
1013 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
1014 (Installing GRUB using grub-install): Remove reference to the grub
1015 shell; mention `grub-mkimage' and `grub-setup' instead.
1016 (Invoking grub-install): Likewise.
1017 (Interface): Add reference to `Menu entry editor'.
1018 (serial): Remove `--device' option.
1019
1020 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
1021
1022 * docs/grub.texi (Configuration): New section, documenting
1023 configuration file generation using grub-mkconfig. I've left a slot
1024 for documenting the full shell scripting format but have not yet
1025 started on writing that up.
1026 (Invoking grub-mkconfig): New section.
1027
1028 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
1029
1030 * docs/grub.texi (direntry): Remove grub-terminfo reference.
1031 (GNU GRUB manual): Likewise.
1032 (General commands): Update description of `terminfo' for GRUB 2.
1033
1034 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
1035
1036 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
1037 (GRUB_MOD_INIT): Fix capitalisation.
1038 * docs/grub.texi (Command-line and menu entry commands): Document
1039 gettext and gptsync commands.
1040
1041 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
1042
1043 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
1044 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
1045
1046 2010-06-01 Colin Watson <cjwatson@ubuntu.com>
1047
1048 Add btrfs probing support, currently only in the single-device case.
1049
1050 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
1051 function.
1052 (grub_guess_root_device): Call find_root_device_from_mountinfo
1053 before looking in /dev.
1054
1055 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
1056
1057 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
1058 GRUB_DISK_SIZE_UNKNOWN.
1059 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
1060
1061 2010-05-31 Jiro SEKIBA <jir@unicus.jp>
1062
1063 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
1064 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
1065 corrupted or not synced properly.
1066
1067 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
1068
1069 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
1070 Reported by: Seth Goldberg.
1071
1072 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
1073
1074 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
1075 addition of dest.
1076 Reported by: Seth Goldberg.
1077
1078 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
1079
1080 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
1081 Reported by: Seth Goldberg.
1082
1083 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
1084
1085 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
1086 64-bit address as signed on MIPS.
1087
1088 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
1089
1090 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
1091 to the empty string.
1092
1093 2010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
1094
1095 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
1096
1097 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
1098 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
1099 * kern/misc.c (__enable_execute_stack): Disable on
1100 GRUB_MACHINE_EMU.
1101
1102 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
1103
1104 Make grub-probe work with symbolic links under /dev/mapper as well
1105 as with real block devices. The Linux world seems to be (at best)
1106 in transition here, and GRUB shouldn't get caught in the middle.
1107
1108 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
1109 /dev/mapper.
1110
1111 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
1112
1113 * util/grub-script-check.c (main): Ensure defined behaviour on empty
1114 input files (in which case exit zero).
1115
1116 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
1117
1118 * kern/emu/misc.c (canonicalize_file_name): realpath can still
1119 return NULL for various reasons even if it has a maximum-length
1120 buffer: for example, there might be a symlink loop, or the path
1121 might exceed PATH_MAX. If this happens, return NULL.
1122
1123 2010-05-27 Robert Millan <rmh@gnu.org>
1124
1125 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
1126 partmap module to handle cross-partmap setups.
1127 Reported by Orestes Mas. Gràcies!
1128
1129 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
1130
1131 * util/grub-mkrescue.in: Initialise override_dir rather than
1132 assuming that it's unset or empty in the environment.
1133
1134 2010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
1135
1136 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
1137 variable index into p_index to suppress a warning with -Wshadow.
1138
1139 2010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
1140
1141 * INSTALL: Added flex >= 2.5.35 requirement.
1142
1143 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
1144
1145 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
1146
1147 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
1148
1149 cmostest support.
1150
1151 * commands/i386/cmostest.c: New file.
1152 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
1153 (cmostest_mod_SOURCES): New variable.
1154 (cmostest_mod_CFLAGS): Likewise.
1155 (cmostest_mod_LDFLAGS): Likewise.
1156 * conf/i386-pc.rmk: Likewise.
1157 * docs/grub.texi (Vendor power-on keys): New section.
1158 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
1159 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
1160 and GRUB_BUTTON_CMOS_ADDRESS.
1161 * util/grub.d/00_header.in: Handle powering-on by separate button.
1162
1163 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
1164
1165 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
1166 Removed drawing_scrollbar argument. All users updated
1167 Fixes #29792.
1168 Reported by Jo Shields
1169
1170 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
1171
1172 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
1173 buffer since gfxterm handles double repaint.
1174
1175 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
1176
1177 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
1178 * term/gfxterm.c (real_scroll): Likewise.
1179
1180 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
1181
1182 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
1183 before calling BIOS.
1184
1185 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
1186
1187 * include/grub/i18n.h: Always enable grub_gettext.
1188
1189 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
1190
1191 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
1192 partition naming style.
1193
1194 2010-05-21 Colin Watson <cjwatson@ubuntu.com>
1195
1196 * util/grub-mkconfig.in: Fix handling of -o so that it works when
1197 not the first option.
1198
1199 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
1200
1201 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
1202
1203 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
1204
1205 * util/misc.c: Move inclusion of <limits.h> to ...
1206 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
1207
1208 2010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
1209
1210 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
1211 Fix merge error in NetBSD code.
1212 (find_partition_start) [__NetBSD__]: Likewise.
1213
1214 2010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
1215
1216 Fix grub-mkrescue usage unit testing.
1217
1218 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
1219
1220 2010-05-18 Christian Franke <franke@computer.org>
1221
1222 * util/grub.d/10_windows.in: Use path names instead of
1223 drive letters to prevent warning from Cygwin 1.7.
1224 Add drivemap command to menuentry if needed.
1225
1226 2010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
1227
1228 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
1229 gnumach and gnumach.gz.
1230
1231 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
1232
1233 * include/grub/i18n.h (gettext): Inline instead of using #define.
1234 (grub_gettext): Likewise.
1235 (_): Likewise.
1236
1237 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
1238
1239 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
1240 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
1241 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
1242 (main): Add a slash after pkglibdirroot.
1243
1244 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
1245
1246 * util/grub-install.in: Add missing "in" keyword.
1247
1248 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
1249
1250 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
1251 Reported by: Seth Goldberg.
1252
1253 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
1254
1255 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
1256
1257 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
1258
1259 * configure.ac: Check for Linux device-mapper support.
1260
1261 * util/hostdisk.c (device_is_mapped): New function.
1262 (find_partition_start): New function, partly broken out from
1263 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
1264 device-mapper support added.
1265 (linux_find_partition): Use find_partition_start.
1266 (convert_system_partition_to_system_disk): Add `st' argument.
1267 Support Linux /dev/mapper/* devices if device-mapper support is
1268 available; only DM-RAID devices are understood at present.
1269 (find_system_device): Add `st' argument. Pass it to
1270 convert_system_partition_to_system_disk.
1271 (grub_util_biosdisk_get_grub_dev): Pass stat result to
1272 find_system_device and convert_system_partition_to_system_disk. Use
1273 find_partition_start.
1274
1275 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
1276 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
1277 * util/deviceiter.c [__linux__]: Define MINOR.
1278 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
1279 * util/mkdevicemap.c (grub_putchar): New function.
1280 (grub_getkey): New function.
1281 (grub_refresh): New function.
1282 (main): Set debug=all if -v -v is used.
1283
1284 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
1285
1286 Fix build with non-GNU libcs.
1287
1288 * util/misc.c (canonicalize_file_name): Move to ...
1289 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
1290 grub_make_system_path_relative_to_its_root.
1291
1292 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
1293
1294 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
1295 we handle finding grub-mkimage. Default to finding grub-mkimage in
1296 ${bindir} with program_transform_name applied, and provide a
1297 --grub-mkimage option to override this.
1298
1299 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
1300
1301 Remove grub-mkisofs.
1302
1303 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
1304 (grub_mkisofs_SOURCES): Removed.
1305 (grub_mkisofs_CFLAGS): Removed.
1306 * util/mkisofs/defaults.h: Removed.
1307 * util/mkisofs/eltorito.c: Likewise.
1308 * util/mkisofs/exclude.h: Likewise.
1309 * util/mkisofs/hash.c: Likewise.
1310 * util/mkisofs/include/: Likewise.
1311 * util/mkisofs/include/fctldefs.h: Likewise.
1312 * util/mkisofs/include/mconfig.h: Likewise.
1313 * util/mkisofs/include/prototyp.h: Likewise.
1314 * util/mkisofs/include/statdefs.h: Likewise.
1315 * util/mkisofs/iso9660.h: Likewise.
1316 * util/mkisofs/joliet.c: Likewise.
1317 * util/mkisofs/match.c: Likewise.
1318 * util/mkisofs/match.h: Likewise.
1319 * util/mkisofs/mkisofs.c: Likewise.
1320 * util/mkisofs/mkisofs.h: Likewise.
1321 * util/mkisofs/msdos_partition.h: Likewise.
1322 * util/mkisofs/multi.c: Likewise.
1323 * util/mkisofs/name.c: Likewise.
1324 * util/mkisofs/rock.c: Likewise.
1325 * util/mkisofs/tree.c: Likewise.
1326 * util/mkisofs/write.c: Likewise.
1327
1328 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
1329
1330 Unify grub-mkimage accross platforms.
1331
1332 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
1333 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
1334 (grub_mkelfimage_SOURCES): Removed.
1335 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
1336 (util/grub-mkimage.c_DEPENDENCIES): .. this.
1337 (bin_UTILITIES): Add grub-mkimage.
1338 (grub_mkimage_SOURCES): New variable.
1339 (kernel_img_HEADERS): Remove machine/kernel.h.
1340 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
1341 (pkglib_PROGRAMS): Add kernel.img.
1342 (kernel_img_HEADERS): Add machine/kernel.h.
1343 (kernel_img_FORMAT): Removed.
1344 (bin_UTILITIES): Remove grub-mkimage.
1345 (grub_mkimage_SOURCES): Removed.
1346 (grub_mkimage_CFLAGS): Likewise.
1347 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
1348 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
1349 (pkglib_PROGRAMS): Add kernel.img.
1350 (bin_UTILITIES): Remove grub-mkimage.
1351 (grub_mkimage_SOURCES): Removed.
1352 (grub_mkimage_CFLAGS): Likewise.
1353 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
1354 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
1355 (pkglib_PROGRAMS): Add kernel.img.
1356 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
1357 (pkglib_PROGRAMS): Add kernel.img.
1358 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
1359 (grub_mkimage_SOURCES): Removed.
1360 (grub_mkimage_CFLAGS): Likewise.
1361 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
1362 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
1363 (pkglib_PROGRAMS): Add kernel.img.
1364 (bin_UTILITIES): Remove grub-mkimage.
1365 (grub_mkimage_SOURCES): Removed.
1366 (grub_mkimage_CFLAGS): Likewise.
1367 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
1368 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
1369 (grub_mkimage_SOURCES): Removed.
1370 (grub_mkimage_CFLAGS): Likewise.
1371 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
1372 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
1373 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
1374 (grub_pe32_optional_header): ... this.
1375 (grub_pe64_optional_header): ... and this. All users updated.
1376 (GRUB_PE32_PE32_MAGIC): Split into ..
1377 (GRUB_PE32_PE32_MAGIC): .. this.
1378 (GRUB_PE32_PE64_MAGIC): .. and this.
1379 (GRUB_PE32_SIGNATURE_SIZE): New definition.
1380 * include/grub/elf.h (PT_GNU_STACK): New definition.
1381 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
1382 * include/grub/i386/efi/kernel.h: Likewise.
1383 * include/grub/i386/kernel.h: Likewise.
1384 * include/grub/i386/pc/kernel.h: Likewise.
1385 * include/grub/i386/qemu/boot.h: Likewise.
1386 * include/grub/mips/kernel.h: Likewise.
1387 * include/grub/mips/qemu-mips/kernel.h: Likewise.
1388 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
1389 * include/grub/powerpc/kernel.h: Likewise.
1390 * include/grub/sparc64/ieee1275/boot.h: Likewise.
1391 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
1392 * include/grub/sparc64/kernel.h: Likewise.
1393 * include/grub/x86_64/efi/kernel.h: Likewise.
1394 * include/grub/x86_64/kernel.h: Likewise.
1395 * include/grub/offsets.h: New file.
1396 * include/grub/kernel.h (grub_module_info): Split into ...
1397 (grub_module_info32): ... this.
1398 (grub_module_info64): ... and this.
1399 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
1400 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
1401 (grub_boot_blocklist): Moved from here ...
1402 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
1403 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
1404 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
1405 * include/grub/types.h (grub_target_to_host16): Removed.
1406 (grub_target_to_host32): Likewise.
1407 (grub_target_to_host64): Likewise.
1408 (grub_host_to_target16): Likewise.
1409 (grub_host_to_target32): Likewise.
1410 (grub_host_to_target64): Likewise.
1411 (grub_host_to_target_addr): Likewise.
1412
1413 Support grub-mkrescue for efi, coreboot and qemu.
1414
1415 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
1416 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
1417 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
1418 * util/grub-mkrawimage.c: Moved from here ...
1419 * util/grub-mkimage.c: ... here. All users updated.
1420 (ALIGN_ADDR): Use image_target.
1421 (TARGET_NO_FIELD): New const.
1422 (image_target_desc): New type.
1423 (image_targets): New array.
1424 (grub_target_to_host64): Use image_target.
1425 (grub_target_to_host32): Likewise.
1426 (grub_target_to_host16): Likewise.
1427 (grub_host_to_target64): Likewise.
1428 (grub_host_to_target32): Likewise.
1429 (grub_host_to_target16): Likewise.
1430 (grub_host_to_target_addr): Likewise.
1431 (generate_image): Handle multiimage.
1432 (main): Require -O parameter. All users updated.
1433 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
1434 util/efi/grub-mkimage.c
1435 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
1436 New option --rom-directory.
1437 Use xorriso.
1438 * util/i386/efi/grub-mkimage.c: Removed.
1439 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
1440 (grub_target_to_host32): Likewise.
1441 (grub_target_to_host64): Likewise.
1442 (grub_host_to_target16): Likewise.
1443 (grub_host_to_target32): Likewise.
1444 (grub_host_to_target64): Likewise.
1445 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
1446 (grub_target_to_host32): Likewise.
1447 (grub_target_to_host64): Likewise.
1448 (grub_host_to_target16): Likewise.
1449 (grub_host_to_target32): Likewise.
1450 (grub_host_to_target64): Likewise.
1451
1452 2010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
1453
1454 Source tree is reorganized for emu build.
1455
1456 * include/grub/util/console.h: Move from here...
1457 * include/grub/emu/console.h: ...to here.
1458 * include/grub/util/getroot.h: Move from here...
1459 * include/grub/emu/getroot.h: ...to here.
1460 * include/grub/util/hostdisk.h: Move from here...
1461 * include/grub/emu/hostdisk.h: ...to here.
1462 * util/console.c: Move from here...
1463 * kern/emu/console.c: ...to here.
1464 * util/getroot.c: Move from here...
1465 * kern/emu/getroot.c: ...to here.
1466 * util/grub-emu.c: Move from here...
1467 * kern/emu/main.c: ...to here.
1468 * util/hostdisk.c: Move from here...
1469 * kern/emu/hostdisk.c: ...to here.
1470 * util/hostfs.c: Move from here...
1471 * kern/emu/hostfs.c: ...to here.
1472 * util/mm.c: Move from here...
1473 * kern/emu/mm.c: ...to here.
1474 * util/pci.c: Move from here...
1475 * bus/emu/pci.c: ...to here.
1476 * util/sdl.c: Move from here...
1477 * video/emu/sdl.c: ...to here.
1478 * util/time.c: Move from here...
1479 * kern/emu/time.c: ...to here.
1480 * util/usb.c: Move from here...
1481 * bus/usb/emu/usb.c: ...to here.
1482
1483 * include/grub/emu/misc.h: New header for grub-emu functions.
1484 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
1485
1486 * conf/any-emu.rmk: Rule updates for above renames.
1487 * conf/common.rmk: Likewise.
1488 * conf/i386-pc.rmk: Likewise.
1489 * conf/i386-qemu.rmk: Likewise.
1490 * conf/mips.rmk: Likewise.
1491 * conf/sparc64-ieee1275.rmk: Likewise.
1492 * conf/x86-efi.rmk: Likewise.
1493
1494 * disk/lvm.h: #include updates for above renames.
1495 * util/grub-mkrelpath.c: Likewise.
1496 * util/grub-probe.c: Likewise.
1497 * util/i386/pc/grub-setup.c: Likewise.
1498 * util/sparc64/ieee1275/grub-setup.c: Likewise.
1499 * kern/emu/console.c: Likewise.
1500 * kern/emu/getroot.c: Likewise.
1501 * kern/emu/hostdisk.c: Likewise.
1502 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
1503
1504 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
1505 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
1506 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
1507 * util/misc.c: Remove grub-emu functions.
1508
1509 2010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
1510
1511 Fix gfxmenu crash.
1512 Reported by: Thorsten Grützmacher.
1513
1514 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
1515 timeout hook.
1516 (circprog_set_property): Register and unregister timeout hook.
1517 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
1518 (label_destroy): Free template. and unregister hook.
1519 (label_set_state): New function.
1520 (label_set_property): Handle templates and hooks.
1521 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
1522 timeout hook.
1523 (progress_bar_set_property): Register and unregister timeout hook.
1524 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
1525 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
1526 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
1527 (update_timeout_visit): Removed.
1528 (update_timeouts): New function.
1529 (redraw_timeouts): Likewise.
1530 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
1531 (grub_gfxmenu_clear_timeout): Likewise.
1532 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
1533 (grub_gfxmenu_timeout_notify): Likewise.
1534 (grub_gfxmenu_timeout_notifications): New external variable.
1535 (grub_gfxmenu_timeout_register): New function.
1536 (grub_gfxmenu_timeout_unregister): Likewise.
1537
1538 2010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
1539
1540 Transform (broken) vga terminal into (working) vga video driver.
1541
1542 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
1543 video/i386/pc/vga.c.
1544 * include/grub/video.h (grub_video_driver_id):
1545 Add GRUB_VIDEO_DRIVER_VGA.
1546 * term/i386/pc/vga.c: Renamed to ...
1547 * video/i386/pc/vga.c: ...this
1548 (DEBUG_VGA): Removed.
1549 (CHAR_WIDTH): Likewise.
1550 (CHAR_HEIGHT): Likewise.
1551 (TEXT_WIDTH): Likewise.
1552 (TEXT_HEIGHT): Likewise.
1553 (DEFAULT_FG_COLOR): Likewise.
1554 (DEFAULT_BG_COLOR): Likewise.
1555 (colored_char): Likewise.
1556 (xpos): Likewise.
1557 (ypos): Likewise.
1558 (cursor_state): Likewise.
1559 (fg_color): Likewise.
1560 (bg_color): Likewise.
1561 (text_buf): Likewise.
1562 (page): Likewise.
1563 (font): Likewise.
1564 (framebuffer): New variable.
1565 (set_read_map): Disabled.
1566 (setup): New variable.
1567 (is_target): Likewise.
1568 (grub_vga_mod_init): Likewise.
1569 (grub_vga_mod_fini): Likewise.
1570 (check_vga_mem): Likewise.
1571 (write_char): Likewise.
1572 (write_cursor): Likewise.
1573 (scroll_up): Likewise.
1574 (grub_vga_putchar): Likewise.
1575 (grub_vga_getcharwidth): Likewise.
1576 (grub_vga_getwh): Likewise.
1577 (grub_vga_getxy): Likewise.
1578 (grub_vga_gotoxy): Likewise.
1579 (grub_vga_cls): Likewise.
1580 (grub_vga_setcolorstate): Likewise.
1581 (grub_vga_setcursor): Likewise.
1582 (grub_video_vga_init): New function.
1583 (grub_video_vga_setup): Likewise.
1584 (grub_video_vga_fini): Likewise.
1585 (update_target): Likewise.
1586 (grub_video_vga_blit_bitmap): Likewise.
1587 (grub_video_vga_blit_render_target): Likewise.
1588 (grub_video_vga_set_active_render_target): Likewise.
1589 (grub_video_vga_get_active_render_target): Likewise.
1590 (grub_video_vga_swap_buffers): Likewise.
1591 (grub_video_vga_set_palette): Likewise.
1592 (grub_video_vga_get_info_and_fini): Likewise.
1593 (grub_vga_term): Removed.
1594 (grub_video_vga_adapter): New variable.
1595 (GRUB_MOD_INIT): Register a video driver instead of terminal.
1596 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
1597
1598 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
1599
1600 * video/readers/jpeg.c: Indented.
1601
1602 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
1603
1604 Various jpeg cleanups.
1605
1606 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
1607 (grub_jpeg_decode_quan_table): Use sizeof.
1608 (grub_jpeg_decode_du): Use ARRAY_SIZE.
1609
1610 2010-05-05 Peter Hurley <No e-mail available> (tiny change)
1611
1612 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
1613 tables. Ignore non-last ac bit.
1614 (grub_jpeg_decode_quan_table): Likewise.
1615
1616 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
1617
1618 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
1619 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
1620 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
1621 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
1622 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
1623 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
1624
1625 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
1626
1627 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
1628 error.
1629
1630 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
1631
1632 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
1633
1634 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
1635
1636 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
1637 condition.
1638
1639 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
1640
1641 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
1642 part.
1643
1644 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
1645
1646 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
1647 pointers.
1648
1649 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
1650
1651 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
1652
1653 2010-05-01 Christian Franke <franke@computer.org>
1654
1655 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
1656 Remove broken Cygwin path conversion.
1657 * util/misc.c: [__CYGWIN__] Add include and define.
1658 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
1659 for Cygwin 1.7.
1660 (make_system_path_relative_to_its_root): Simplify loop, replace early
1661 return by break.
1662 [__CYGWIN__] Add conversion to win32 path.
1663 Include "/" case in trailing slash removal.
1664
1665 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1666
1667 * kern/main.c (grub_load_config): Fix copy-pasted comment.
1668 Reported by: Seth Goldberg
1669
1670 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1671
1672 * commands/help.c (grub_cmd_help): Fix a typo.
1673 Reported by: Seth Goldberg
1674
1675 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1676
1677 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
1678 name and add N_.
1679 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
1680 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
1681 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
1682 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
1683 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
1684 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
1685 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
1686 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
1687 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
1688 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
1689 * normal/context.c (GRUB_MOD_INIT): Likewise.
1690 * normal/main.c (GRUB_MOD_INIT): Likewise.
1691 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
1692 * term/serial.c (GRUB_MOD_INIT): Likewise.
1693 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
1694
1695 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1696
1697 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
1698 extra == 0.
1699
1700 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1701
1702 * commands/iorw.c: New file.
1703 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
1704 (iorw_mod_SOURCES): New variable.
1705 (iorw_mod_CFLAGS): Likewise.
1706 (iorw_mod_LDFLAGS): Likewise.
1707
1708 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1709
1710 Hotkey support
1711
1712 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
1713 * normal/main.c (hotkey_aliases): New variable.
1714 (grub_normal_add_menu_entry): Parse "--hotkey".
1715 * normal/menu_text.c (run_menu): Handle hotkeys.
1716
1717 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1718
1719 * kern/i386/coreboot/init.c (grub_machine_init): Call
1720 grub_machine_mmap_init on qemu.
1721
1722 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1723
1724 * boot/i386/qemu/boot.S: Add a missing .code16.
1725
1726 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1727
1728 Use LBIO on coreboot.
1729
1730 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
1731 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
1732 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
1733 New declaration.
1734 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
1735 grub_machine_mmap_init on coreboot.
1736 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
1737 GRUB_LINUXBIOS_MEMBER_LINK.
1738 (grub_machine_mmap_iterate): Fix declaration.
1739 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
1740
1741 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1742
1743 Split coreboot and multiboot ports.
1744
1745 * conf/i386-multiboot.rmk: New file.
1746 * configure.ac: Add multiboot port.
1747 * include/grub/i386/multiboot/boot.h: New file.
1748 * include/grub/i386/multiboot/console.h: Likewise.
1749 * include/grub/i386/multiboot/init.h: Likewise.
1750 * include/grub/i386/multiboot/kernel.h: Likewise.
1751 * include/grub/i386/multiboot/loader.h: Likewise.
1752 * include/grub/i386/multiboot/memory.h: Likewise.
1753 * include/grub/i386/multiboot/serial.h: Likewise.
1754 * include/grub/i386/multiboot/time.h: Likewise.
1755 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
1756 * loader/multiboot.c: Likewise.
1757 * loader/multiboot_mbi2.c: Likewise.
1758 * util/grub-mkrescue.in: Generate multiboot rescue.
1759
1760 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1761
1762 * kern/parser.c (grub_parser_execute): Cope with read-only config.
1763
1764 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1765
1766 Merge handling of input and output terminals. Fix a hang.
1767
1768 * commands/terminal.c (abstract_terminal): New struct.
1769 (handle_command): New function. Based on grub_cmd_terminal_input.
1770 (grub_cmd_terminal_input): Use handle_command.
1771 (grub_cmd_terminal_output): Use handle_command.
1772
1773 2010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
1774
1775 Fix comment handling.
1776
1777 * tests/grub_script_comments.in: New testcase.
1778 * conf/tests.rmk: Rules for new testcase.
1779 * script/yylex.l: Updated flex rules.
1780
1781 2010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
1782
1783 * docs/grub.texi (play): Document that zero pitches produce rests.
1784 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
1785 if argc is 1.
1786
1787 2010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
1788
1789 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
1790 autogen issues.
1791
1792 2010-04-26 Christian Franke <franke@computer.org>
1793
1794 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
1795 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
1796 (grub_get_prefix): Remove function.
1797 * util/grub-emu.c (main): Replace grub_get_prefix () call by
1798 make_system_path_relative_to_its_root ().
1799 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
1800
1801 2010-04-24 Christian Franke <franke@computer.org>
1802
1803 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
1804 (kernel_img_LDFLAGS): Remove -static-libgcc.
1805
1806 2010-04-24 Christian Franke <franke@computer.org>
1807
1808 * configure.ac: Do not CHECK_BSS_START_SYMBOL
1809 and CHECK_END_SYMBOL if grub-emu is built.
1810 Unset TARGET_OBJ2ELF if grub-emu is built
1811 without module support.
1812
1813 2010-04-24 Jiro SEKIBA <jir@unicus.jp>
1814
1815 Nilfs2 support.
1816
1817 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
1818 (grub_fstest_SOURCES): Likewise.
1819 (pkglib_MODULES): Add nilfs2.mod.
1820 (nilfs2_mod_SOURCES): New variable.
1821 (nilfs2_mod_CFLAGS): Likewise.
1822 (nilfs2_mod_LDFLAGS): Likewise.
1823 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
1824 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
1825 * fs/nilfs2.c: New file.
1826
1827 2010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
1828
1829 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
1830 is not supported.
1831
1832 2010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
1833
1834 Add grub-mkconfig support for NetBSD.
1835
1836 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
1837 * util/grub-mkconfig.in: export new NetBSD specific variables.
1838 * po/POTFILES-shell: added 10_netbsd.in.
1839 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
1840
1841 2010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
1842
1843 Fix emu build with grub-emu-pci and grub-emu-modules.
1844
1845 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
1846 functions.
1847 * include/grub/libpciaccess.h: New file.
1848 * conf/any-emu.rmk: Update kernel headers for emu build.
1849
1850 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
1851
1852 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
1853
1854 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
1855
1856 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
1857
1858 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
1859
1860 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
1861 Retrieve chosen/bootpath if bootpath isn't hardcoded.
1862 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
1863 util/ieee1275/ofpath.c.
1864 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
1865 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
1866 * include/grub/sparc64/ieee1275/boot.h
1867 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
1868 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
1869 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
1870 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
1871 const char *.
1872 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
1873 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
1874 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
1875 install.
1876
1877 2010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
1878
1879 * util/grub-mkconfig.in: Corrected two == equality tests.
1880 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
1881 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
1882 expect a number appended to it.
1883 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
1884 expects a number appended to it.
1885
1886 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
1887
1888 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
1889
1890 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
1891
1892 * util/hostdisk.c (make_device_name): Change to new partition naming.
1893
1894 2010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
1895
1896 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
1897
1898 2010-04-17 Christian Franke <franke@computer.org>
1899
1900 * Makefile.in: Add missing localedir setting.
1901
1902 2010-04-14 Colin Watson <cjwatson@ubuntu.com>
1903
1904 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
1905 mistake in r2156. Noticed by Anthony Fok.
1906
1907 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
1908 @localedir@.
1909 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
1910
1911 2010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
1912
1913 Fix a spurious, uninitialized variable warning.
1914
1915 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
1916 Initialize variable, shdr.
1917 (grub_freebsd_load_elfmodule): Likewise.
1918 (grub_freebsd_load_elf_meta): Likewise.
1919
1920 2010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
1921
1922 Fix for escaped dollar in double quoted strings.
1923
1924 * script/yylex.l: Updated flex rules.
1925 * conf/tests.rmk: Rule for new testcase.
1926 * tests/grub_script_dollar.in: New testcase.
1927
1928 2010-04-13 Carles Pina i Estany <carles@pina.cat>
1929 2010-04-13 Colin Watson <cjwatson@ubuntu.com>
1930
1931 Enclose all translated strings in grub.cfg in single quotes, and
1932 escape them appropriately (Ubuntu bug #552921).
1933
1934 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
1935 * util/grub.d/10_hurd.in: Use it.
1936 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
1937 * util/grub.d/10_linux.in (linux_entry): Likewise.
1938
1939 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
1940
1941 Fix cygwin compilation.
1942
1943 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
1944 * include/grub/misc.h (__register_frame_info)
1945 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
1946 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
1947 * kern/misc.c (__register_frame_info)
1948 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
1949 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
1950
1951 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
1952
1953 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
1954
1955 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
1956
1957 Unify libgcc processing.
1958
1959 * Makefile.in (kernel_img_LDFLAGS): New variable.
1960 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
1961 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
1962 overwriting.
1963 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
1964 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
1965 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
1966 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
1967 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
1968 overwriting. Remove -lgcc and -static-libgcc
1969 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
1970 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
1971 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
1972 (kernel_img_LDFLAGS): Append instead of overwriting.
1973 Remove -lgcc and -static-libgcc
1974 * conf/sparc64-ieee1275.rmk: Likewise.
1975 * include/grub/powerpc/libgcc.h: Move to ...
1976 * include/grub/libgcc.h: .. this.
1977 * include/grub/libgcc.h: Don't export most of the function on x86.
1978 (__bswapsi2): New export.
1979 (__bswapdi2): Likewise.
1980 * include/grub/mips/libgcc.h: Removed.
1981 * include/grub/sparc64/libgcc.h: Likewise.
1982
1983 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
1984
1985 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
1986 disk_info_msg (conflicts with gettexting into languages with cases).
1987
1988 2010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
1989
1990 Add grub-probe support for NetBSD.
1991
1992 * util/getroot.c (find_root_device): Convert block device to
1993 character device on NetBSD.
1994 * util/probe.c (probe): Require character device on NetBSD.
1995 * util/hostdisk.c: NetBSD specific headers.
1996 (configure_device_driver): new function to tune device driver
1997 parameters (currently only for NetBSD floppy driver).
1998 (grub_util_biosdisk_open): NetBSD specific code (get disk size
1999 via disklabel ioctl).
2000 (open_device): call configure_device_driver on NetBSD.
2001 (convert_system_partition_to_system_disk): NetBSD specific code.
2002 (device_is_wholedisk): Likewise.
2003 (grub_util_biosdisk_get_grub_dev): Likewise.
2004 (make_device_name): Fixed a typo in bsd_part_str.
2005 * configure.ac: check for opendisk() and getrawpartition() on
2006 NetBSD and set LIBUTIL.
2007 * Makefile.in: add LIBUTIL to LIBS.
2008
2009 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
2010
2011 Documentation fix.
2012
2013 * util/grub-script-check.c: Better help message.
2014
2015 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
2016
2017 Fix FreeBSD build.
2018
2019 * configure.ac: Flex version check.
2020 * conf/common.rmk: Add -Wno-error to sh.mod.
2021 * script/yylex.l: Remove all #pragma.
2022
2023 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
2024
2025 * include/grub/util/misc.h (canonicalise_file_name): Add missing
2026 prototype.
2027 Reported by: Seth Goldberg.
2028
2029 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
2030
2031 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
2032 Rename "module" to "module2".
2033 Reported by: Seth Goldberg.
2034
2035 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
2036
2037 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
2038 EXPORT_FUNC.
2039 Reported by: Seth Goldberg.
2040
2041 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
2042
2043 * lib/posix_wrap/locale.h: Add missing file.
2044 Reported by: Seth Goldberg.
2045
2046 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
2047
2048 grub-emu module load support.
2049
2050 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
2051 NO_DYNAMIC_MODULES switched to this.
2052 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
2053 (CFLAGS): Likewise.
2054 * conf/any-emu.rmk: Generate symlist.
2055 (kernel_img_HEADERS): Add util/datetime.h.
2056 (kernel_img_HEADERS) [sdl]: Add sdl.h.
2057 (kernel_img_HEADERS) [libusb]: Add libusb.h.
2058 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
2059 kern/$(target_cpu)/cache.S.
2060 * configure.ac (grub-emu-modules): New option.
2061 * genmk.rb: Handle multiple source lists.
2062 * include/grub/sdl.h: New file.
2063 * include/grub/libusb.h: Likewise.
2064 * util/grub-emu.c (main): Hanle (host) root.
2065 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
2066 GRUB_ERR_UNKNOWN_DEVICE.
2067 * util/misc.c: Move mm functions to ...
2068 * util/mm.c: ... here. All users updated.
2069
2070 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
2071
2072 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
2073 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
2074 missing files.
2075 (maintainer-clean): Remove libgcrypt-grub.
2076
2077 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
2078
2079 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
2080
2081 2010-04-09 EFI Coder <eficoder@hotmail.com>
2082
2083 * normal/menu_text.c (print_message): Clean up the message and show
2084 the Fn information when on EFI
2085 * term/efi/console.c (grub_console_checkkey): Add F4 support.
2086
2087 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
2088
2089 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
2090 All users updated.
2091 * normal/crypto.c (read_crypto_list): Likewise.
2092 * normal/dyncmd.c (read_command_list): Likewise.
2093 * normal/term.c (read_terminal_list): Likewise.
2094 * normal/main.c (read_lists): Use explicit prefix.
2095 (read_lists_hook): Use read_lists.
2096 (grub_normal_execute): Likewise.
2097
2098 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
2099
2100 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
2101 Reported by: Thomas Schmitt.
2102 Add -no-emul-boot to grub-mkisofs parameters.
2103
2104 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
2105
2106 * font/font.c: Indented.
2107
2108 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
2109
2110 Elif support to GRUB script (by Deepak Vankadaru).
2111
2112 * tests/grub_script_if.in: New testcase.
2113 * conf/tests.rmk: Rule for new testcase.
2114 * script/parser.y: Grammar rules for elif.
2115
2116 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
2117
2118 While and until loops support to GRUB script.
2119
2120 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
2121 (grub_script_create_cmdwhile): New function prototype.
2122 (grub_script_execute_cmdwhile): New function prototype.
2123 * script/execute.c (grub_script_execute_cmdwhile): New function.
2124 * script/parser.y (command): New commands.
2125 (whilecmd): New grammar rule.
2126 (untilcmd): New grammar rule.
2127 * script/script.c (grub_script_create_cmdwhile): New function.
2128 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
2129 function.
2130
2131 * tests/grub_script_while1.in: New testcase.
2132 * conf/tests.rmk: Rule for new testcase.
2133
2134 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
2135
2136 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
2137 as *.jpg.
2138
2139 2010-04-09 Mario Vazquez <mariovazq@gmail.com>
2140
2141 GRUB_BACKGROUND support.
2142
2143 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
2144 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
2145
2146 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
2147
2148 Load fonts and modules for gfxmenu in grub-mkconfig.
2149 Idea by: Mario Vazquez
2150
2151 * util/grub.d/00_header.in: Load pf2 and image modules.
2152
2153 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
2154
2155 grub-mkconfig multiple terminal support.
2156
2157 * util/grub-mkconfig.in: Handle multiple terminals correctly.
2158 * util/grub.d/00_header.in: Likewise.
2159
2160 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
2161
2162 * Makefile.in: Specify files explicitly instead of using $< and $@ since
2163 we use cd $(srcdir).
2164
2165 2010-04-08 Colin Watson <cjwatson@ubuntu.com>
2166
2167 * util/grub.d/10_linux.in: Only use the first word of
2168 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
2169 spaces in GRUB_DISTRIBUTOR.
2170 * util/grub.d/10_kfreebsd.in: Likewise.
2171 * util/grub.d/10_hurd.in: Likewise.
2172
2173 2010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
2174
2175 Fix unit testing framework for Qemu 0.12.
2176
2177 * tests/util/grub-shell.in: Remove -serial stdio option.
2178
2179 2010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
2180
2181 POSIX header file wrappers.
2182
2183 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
2184 equivalents.
2185 * lib/posix_wrap/ctype.h: Likewise.
2186 * lib/posix_wrap/errno.h: Likewise.
2187 * lib/posix_wrap/langinfo.h: Likewise.
2188 * lib/posix_wrap/limits.h: Likewise.
2189 * lib/posix_wrap/localcharset.h: Likewise.
2190 * lib/posix_wrap/stdint.h: Likewise.
2191 * lib/posix_wrap/stdio.h: Likewise.
2192 * lib/posix_wrap/stdlib.h: Likewise.
2193 * lib/posix_wrap/string.h: Likewise.
2194 * lib/posix_wrap/sys/types.h: Likewise.
2195 * lib/posix_wrap/unistd.h: Likewise.
2196 * lib/posix_wrap/wchar.h: Likewise.
2197 * lib/posix_wrap/wctype.h: Likewise.
2198 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
2199 (grub_script.yy.h): Likewise.
2200 * script/yylex.l: Remove POSIX emulation #defines.
2201 * Makefile.in (POSIX_CFLAGS): New variable.
2202 (GNULIB_UTIL_CFLAGS): Likewise.
2203
2204 Regexp support.
2205
2206 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
2207 (regexp_mod_SOURCES): New variable.
2208 (regexp_mod_CFLAGS): Likewise.
2209 (regexp_mod_LDFLAGS): Likewise.
2210 * commands/regexp.c: New file.
2211 * gnulib/regcomp.c: New file. Imported from gnulib.
2212 * gnulib/regex.c: Likewise.
2213 * gnulib/regex_internal.c: Likewise.
2214 * gnulib/regex_internal.h: Likewise.
2215 * gnulib/regexec.c: Likewise.
2216 * gnulib/regex.h: Likewise.
2217
2218 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
2219
2220 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
2221 unsupported video mode types.
2222
2223 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
2224
2225 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
2226
2227 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
2228
2229 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
2230 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
2231
2232 2010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
2233
2234 Remove unused grub_vga_get_font.
2235
2236 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
2237 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
2238
2239 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
2240
2241 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
2242 * include/grub/misc.h: Likewise.
2243
2244 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
2245
2246 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
2247 for which failure is fatal.
2248
2249 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
2250
2251 * util/grub-install.in: Use mkdir -p to create grub directory.
2252 * util/i386/efi/grub-install.in: Likewise.
2253 * util/ieee1275/grub-install.in: Likewise.
2254
2255 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
2256
2257 * Makefile.in (LEX): new variable.
2258
2259 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
2260
2261 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
2262 `=' and added double quotes on operands of this equality test.
2263
2264 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
2265
2266 * Makefile.in (uninstall): Remove a leftover debug echo.
2267 Reported by: Grégoire Sutre
2268
2269 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
2270
2271 MIPS multiboot2 support.
2272
2273 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
2274 (multiboot2_mod_SOURCES): New variable.
2275 (multiboot2_mod_CFLAGS): Likewise.
2276 (multiboot2_mod_LDFLAGS): Likewise.
2277 (multiboot2_mod_ASFLAGS): Likewise.
2278 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
2279 definition.
2280 (MULTIBOOT_ENTRY_REGISTER): Likewise.
2281 (MULTIBOOT_MBI_REGISTER): Likewise.
2282 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
2283 (MULTIBOOT_ELF32_MACHINE): Likewise.
2284 (MULTIBOOT_ELF64_MACHINE): Likewise.
2285 * include/grub/mips/multiboot.h: New file.
2286 * include/grub/video.h (grub_video_driver_id): New type
2287 GRUB_VIDEO_DRIVER_SM712.
2288 (grub_video_get_info_and_fini): Export.
2289 (grub_video_get_palette): Likewise.
2290 (grub_video_get_driver_id): Likewise.
2291 * include/multiboot2.h: Resynced with spec.
2292 * loader/i386/multiboot.c: Moved from here ...
2293 * loader/multiboot.c: ... here. All users updated.
2294 (grub_multiboot_boot): Use platform-specific macros.
2295 * loader/i386/multiboot_elfxx.c: Moved from here ...
2296 * loader/multiboot_elfxx.c: ... here. All users updated.
2297 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
2298 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
2299 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
2300
2301 2010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
2302
2303 Import gnulib argp module.
2304
2305 * gnulib/argp-ba.c: New file.
2306 * gnulib/argp-eexst.c: Likewise.
2307 * gnulib/argp-fmtstream.c: Likewise.
2308 * gnulib/argp-fmtstream.h: Likewise.
2309 * gnulib/argp-fs-xinl.c: Likewise.
2310 * gnulib/argp-help.c: Likewise.
2311 * gnulib/argp-namefrob.h: Likewise.
2312 * gnulib/argp-parse.c: Likewise.
2313 * gnulib/argp-pin.c: Likewise.
2314 * gnulib/argp-pv.c: Likewise.
2315 * gnulib/argp-pvh.c: Likewise.
2316 * gnulib/argp-version-etc.c: Likewise.
2317 * gnulib/argp-version-etc.h: Likewise.
2318 * gnulib/argp-xinl.c: Likewise.
2319 * gnulib/argp.h: Likewise.
2320
2321 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
2322
2323 * kern/device.c (grub_device_iterate): Clear errors after failed
2324 opening device.
2325
2326 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
2327
2328 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
2329 returned by firmware.
2330
2331 2010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
2332
2333 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
2334 compilation on coreboot and qemu
2335
2336 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
2337
2338 * include/multiboot2.h: Resync with spec.
2339
2340 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
2341
2342 Multiboot2 tag support
2343
2344 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
2345 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
2346 Remove loader/multiboot_loader.c.
2347 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
2348 (grub_multiboot2_real_boot): Likewise.
2349 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
2350 (grub_get_multiboot_mmap_count): New proto.
2351 (grub_fill_multiboot_mmap): Likewise.
2352 (grub_multiboot_set_video_mode): Likewise.
2353 (grub_multiboot_set_console): Likewise.
2354 (grub_multiboot_load): Likewise.
2355 (grub_multiboot_load_elf): Likewise.
2356 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
2357 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
2358 * include/multiboot.h: Resynced with specification.
2359 * include/multiboot2.h: Resynced with specification.
2360 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
2361 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
2362 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
2363 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
2364 users updated.
2365 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
2366 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
2367 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
2368 Removed.
2369 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
2370 Moved from here...
2371 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
2372 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
2373 Moved from here...
2374 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
2375 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
2376 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
2377 All users updated.
2378 * loader/i386/multiboot_mbi2.c: New file.
2379
2380 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
2381
2382 Resync with gnulib.
2383
2384 * Makefile.in (GNULIB_CFLAGS): New variable.
2385 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
2386 (grub_script_check_CFLAGS): New variable.
2387 * gnulib/alloca.h: Resync with gnulib.
2388 * gnulib/error.c: Likewise.
2389 * gnulib/error.h: Likewise.
2390 * gnulib/fnmatch.c: Likewise.
2391 * gnulib/fnmatch_loop.c: Likewise.
2392 * gnulib/getdelim.c: Likewise.
2393 * gnulib/getline.c: Likewise.
2394 * gnulib/getopt.c: Likewise.
2395 * gnulib/getopt1.c: Likewise.
2396 * gnulib/getopt_int.h: Likewise.
2397 * gnulib/gettext.h: Likewise.
2398 * gnulib/progname.c: Likewise.
2399 * gnulib/progname.h: Likewise.
2400
2401 2010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
2402
2403 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
2404 which is the case with --disabled-nls.
2405
2406 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
2407 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
2408 * util/misc.c: Likewise.
2409 * util/mkisofs/mkisofs.c: Likewise.
2410 * util/mkisofs/mkisofs.h: Likewise.
2411
2412 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
2413
2414 Simplify Apple CC support.
2415
2416 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
2417 Add 0 byte at the end not to have a symbol with empty target.
2418 * mmap/i386/pc/mmap_helper.S: Likewise.
2419 * genmk.rb: Ignore errors 2030 and 2050.
2420 * kern/i386/pc/startup.S: Use LOCAL when possible.
2421
2422 2010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
2423
2424 Testcase and the fix for final semicolon on cmdline.
2425
2426 * tests/grub_script_final_semicolon.in: New testcase.
2427 * conf/tests.rmk: Rules for the new testcase.
2428 * script/parser.y: Grammar fix.
2429
2430 2010-03-26 BVK Chaitanya <bvk@localhost>
2431
2432 Blank lines testcase for GRUB script.
2433
2434 * tests/grub_script_blanklines.in: New testcase.
2435 * conf/tests.rmk: Rules for the new testcase.
2436
2437 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
2438
2439 Don't use __FILE__.
2440
2441 * genmk.rb: Add -DGRUB_FILE to all C targets.
2442 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
2443 * include/grub/list.h: Likewise.
2444 * include/grub/misc.h: Likewise.
2445 * include/grub/mm.h: Likewise.
2446 * include/grub/test.h: Likewise.
2447 * kern/mm.c: Likewise.
2448 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
2449
2450 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
2451
2452 Sunpc partitions support.
2453
2454 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
2455 (grub_fstest_SOURCES): Likewise.
2456 (pkglib_MODULES): Add part_sunpc.mod.
2457 (part_sunpc_mod_SOURCES): New variable.
2458 (part_sunpc_mod_CFLAGS): Likewise.
2459 (part_sunpc_mod_LDFLAGS): Likewise.
2460 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
2461 * partmap/sunpc.c: New file.
2462
2463 2010-03-26 BVK Chaitanya <bvk@localhost>
2464
2465 For loop support to GRUB script.
2466
2467 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
2468 (grub_script_create_cmdfor): New function prototype.
2469 (grub_script_execute_cmdfor): New function prototype.
2470 * script/execute.c (grub_script_execute_cmdfor): New function.
2471 * script/parser.y (command): New for command.
2472 (forcmd): New grammar rule.
2473 * script/script.c (grub_script_create_cmdfor): New function.
2474 * util/grub-script-check.c (grub_script_execute_cmdfor): New
2475 function.
2476 * tests/grub_script_for1.in: New testcase.
2477 * conf/tests.rmk: Rules for new testcase.
2478
2479 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
2480
2481 Nested partitions
2482
2483 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
2484 'partition' is NULL, grub_partition_get_start already does that.
2485 * commands/loadenv.c (check_blocklists): Likewise.
2486 (write_blocklists): Likewise.
2487 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
2488 (grub_fstest_SOURCES): Likewise.
2489 (pkglib_MODULES): Add part_bsd.mod.
2490 (part_bsd_mod_SOURCES): New variable.
2491 (part_bsd_mod_CFLAGS): Likewise.
2492 (part_bsd_mod_LDFLAGS): Likewise.
2493 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
2494 (grub_emu_SOURCES): Likewise.
2495 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
2496 * include/grub/bsdlabel.h: New file.
2497 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
2498 'get_name'.
2499 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
2500 (grub_partition_map_list): New variable.
2501 (grub_partition_map_register): Inline.
2502 (grub_partition_map_unregister): Likewise.
2503 (FOR_PARTITION_MAPS): New macro.
2504 (grub_partition_map_iterate): Removed.
2505 (grub_partition_get_start): Handle nested partitions.
2506 * include/grub/msdos_partition.h: Remove bsd-related entries.
2507 (grub_pc_partition): Remove.
2508 * kern/disk.c (grub_disk_close): Free partition data.
2509 (grub_disk_adjust_range): Handle nested partitions.
2510 * kern/partition.c (grub_partition_map_probe): New function.
2511 (grub_partition_probe): Parse name to number, handle subpartitions.
2512 (get_partmap): New function.
2513 (grub_partition_iterate): Handle subpartitions.
2514 (grub_partition_get_name): Likewise.
2515 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
2516 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
2517 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
2518 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
2519 Set 'number'.
2520 (acorn_partition_map_probe): Remove.
2521 (acorn_partition_map_get_name): Likewise.
2522 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
2523 Set 'number'.
2524 Set 'index' to 0 since there can be only one partition entry per sector.
2525 (amiga_partition_map_probe): Remove.
2526 (amiga_partition_map_get_name): Likewise.
2527 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
2528 Set 'number'.
2529 Set 'offset' and 'index' to real positions of partitions.
2530 (apple_partition_map_probe): Remove.
2531 (apple_partition_map_get_name): Likewise.
2532 * partmap/bsdlabel.c: New file.
2533 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
2534 Set 'number'.
2535 Allocate 'data' so it can be correctly freed.
2536 Set 'index' to offset inside sector.
2537 (gpt_partition_map_probe): Remove.
2538 (gpt_partition_map_get_name): Likewise.
2539 * partmap/msdos.c (grub_partition_parse): Remove.
2540 (pc_partition_map_iterate): Don't force raw access.
2541 Set 'number'.
2542 Make 'ext_offset' a local variable.
2543 (pc_partition_map_probe): Remove.
2544 (pc_partition_map_get_name): Remove.
2545 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
2546 Set 'number'.
2547 (sun_partition_map_probe): Remove.
2548 (sun_partition_map_get_name): Likewise.
2549 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
2550 (grub_pcpart_type): Likewise.
2551 * util/hostdisk.c (open_device): Handle new numbering scheme.
2552 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
2553 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
2554 * util/grub-probe.c (probe_partmap): Handle nested paritions.
2555 * util/grub-install.in: Insert all subpartition modules.
2556 * util/ieee1275/grub-install.in: Likewise.
2557
2558 2010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
2559
2560 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
2561 grammar.
2562
2563 2010-03-24 Colin Watson <cjwatson@ubuntu.com>
2564
2565 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
2566
2567 2010-03-21 Colin Watson <cjwatson@ubuntu.com>
2568
2569 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
2570 match where 'make install' puts them.
2571 * util/i386/efi/grub-install.in: Likewise.
2572
2573 2010-03-19 Colin Watson <cjwatson@ubuntu.com>
2574
2575 * .bzrignore: Add gentrigtables, grub-script-check,
2576 grub_script_check_init.c, grub_script_check_init.h, and
2577 trigtables.c.
2578
2579 2010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
2580
2581 * kern/parser.c: Indented.
2582
2583 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
2584
2585 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
2586
2587 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
2588
2589 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
2590 alpha_mask_size == 0 case.
2591
2592 2010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
2593
2594 GRUB shell lexer and parser improvements.
2595
2596 * conf/any-emu.rmk: Build rule updates.
2597 * conf/common.rmk: Likewise.
2598 * conf/i386-coreboot.rmk: Likewise.
2599 * conf/i386-efi.rmk: Likewise.
2600 * conf/i386-ieee1275.rmk: Likewise.
2601 * conf/i386-pc.rmk: Likewise.
2602 * conf/powerpc-ieee1275.rmk: Likewise.
2603 * conf/x86_64-efi.rmk: Likewise.
2604
2605 * configure.ac: Configure check for flex.
2606
2607 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
2608 types.
2609 (grub_lexer_param): Struct member updates.
2610 (grub_parser_param): Likewise.
2611 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
2612 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
2613 (grub_script_lexer_init): Prototype update.
2614 (grub_script_lexer_record_start): Likewise.
2615 (grub_script_lexer_record_stop): Likewise.
2616 (grub_script_lexer_yywrap): New function prototype.
2617 (grub_script_lexer_fini): Likewise.
2618 (grub_script_execute_argument_to_string): Removed by...
2619 (grub_script_execute_argument_to_argv): ...better version.
2620
2621 * script/execute.c (ROUND_UPTO): New macro.
2622 (grub_script_execute_cmdline): Out of memory fixes.
2623 (grub_script_execute_menuentry): Likewise.
2624 (grub_script_execute_argument_to_string): Removed. Update all
2625 users by...
2626 (grub_script_execute_argument_to_argv): ...better version.
2627 * script/function.c (grub_script_function_create): Use
2628 grub_script_execute_argument_to_argv instead of
2629 grub_script_execute_argument_to_string.
2630
2631 * script/lexer.c (check_varstate): Removed.
2632 (check_textstate): Removed.
2633 (grub_script_lexer_record_start): Likewise.
2634 (grub_script_lexer_record_stop): Likewise.
2635 (recordchar): Replaced with...
2636 (grub_script_lexer_record): ...new function.
2637 (nextchar): Removed.
2638 (grub_script_lexer_init): Rewritten.
2639 (grub_script_yylex): Rewritten.
2640 (append_newline): New function.
2641 (grub_script_lexer_yywrap): New function.
2642 (grub_script_lexer_fini): New function.
2643 (grub_script_yyerror): Sets error flag.
2644
2645 * script/yylex.l: New file.
2646 (grub_lexer_yyfree): Wrapper for flex yyffre.
2647 (grub_lexer_yyalloc): Likewise.
2648 (grub_lexer_yyrealloc): Likewise.
2649 * script/parser.y: Refactored.
2650
2651 * script/script.c (grub_script_arg_add): Out of memory fixes.
2652 (grub_script_add_arglist): Likewise.
2653 (grub_script_create_cmdline): Likewise.
2654 (grub_script_create_cmdmenu): Likewise.
2655 (grub_script_add_cmd): Likewise.
2656 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
2657 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
2658 unnecessary code.
2659
2660 * tests/grub_script_echo1.in: New testcase.
2661 * tests/grub_script_vars1.in: New testcase.
2662 * tests/grub_script_echo_keywords.in: New testcase.
2663
2664 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
2665
2666 Remove some redundancy in build system.
2667
2668 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
2669 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
2670 (TARGET_LDFLAGS): Add -nostdlib.
2671 (TARGET_IMG_LDFLAGS): Likewise.
2672 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
2673 anything since mmap isn't available.
2674 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
2675 Add util/time.c.
2676 (pkglib_MODULES): Remove reboot.mod.
2677 (reboot_mod_SOURCES): Removed.
2678 (reboot_mod_CFLAGS): Likewise.
2679 (reboot_mod_LDFLAGS): Likewise.
2680 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
2681 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
2682 (DEFSYMFILES): Add kernel_syms.lst.
2683 (kernel_img_HEADERS): Add common headers.
2684 (symlist.c): New target.
2685 (kernel_syms.lst): Likewise.
2686 (pkglib_MODULES): Add memdisk.mod.
2687 (memdisk_mod_SOURCES): New variable.
2688 (memdisk_mod_CFLAGS): Likewise.
2689 (memdisk_mod_LDFLAGS): Likewise.
2690 (pkglib_MODULES): Add reboot.mod.
2691 (reboot_mod_SOURCES): New variable.
2692 (reboot_mod_CFLAGS): Likewise.
2693 (reboot_mod_LDFLAGS): Likewise.
2694 (pkglib_MODULES): Add date.mod.
2695 (date_mod_SOURCES): New variable.
2696 (date_mod_CFLAGS): Likewise.
2697 (date_mod_LDFLAGS): Likewise.
2698 (pkglib_MODULES): Add datehook.mod.
2699 (datehook_mod_SOURCES): New variable.
2700 (datehook_mod_CFLAGS): Likewise.
2701 (datehook_mod_LDFLAGS): Likewise.
2702 (pkglib_MODULES): Add lsmmap.mod.
2703 (lsmmap_mod_SOURCES): New variable.
2704 (lsmmap_mod_CFLAGS): Likewise.
2705 (lsmmap_mod_LDFLAGS): Likewise.
2706 (pkglib_MODULES): Add boot.mod.
2707 (boot_mod_SOURCES): New variable.
2708 (boot_mod_CFLAGS): Likewise.
2709 (boot_mod_LDFLAGS): Likewise.
2710 * conf/i386-coreboot.rmk: Removed redundant parts.
2711 * conf/i386-ieee1275.rmk: Likewise.
2712 * conf/i386-pc.rmk: Likewise.
2713 * conf/mips-yeeloong.rmk: Likewise.
2714 * conf/mips.rmk: Likewise.
2715 * conf/powerpc-ieee1275.rmk: Likewise.
2716 * conf/sparc64-ieee1275.rmk: Likewise.
2717 * conf/x86_64-efi.rmk: Likewise.
2718 * conf/i386-coreboot.rmk: Moved qemu parts ..
2719 * conf/i386-qemu.rmk: ... here
2720 * conf/i386-efi.rmk: Moved common parts to...
2721 * conf/x86-efi.rmk: ... here.
2722 * conf/i386.rmk: Added modules common to all x86 variants.
2723 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
2724 * disk/memdisk.c: Remove grub/machine/kernel.h.
2725 * gensymlist.sh.in: Include symbol.h.
2726 * hook/datehook.c: Correct module name.
2727 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
2728 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
2729 * include/grub/i386/efi/serial.h: New file.
2730 * include/grub/x86_64/efi/serial.h: Likewise.
2731 * util/time.c: Likewise.
2732 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
2733
2734 2010-03-14 Colin King <colin.king@ubuntu.com>
2735 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
2736
2737 Shrink the pre-partition-table part of boot.img by eight bytes.
2738
2739 * boot/i386/pc/boot.S (ERR): New macro.
2740 (chs_mode): Use ERR.
2741 (geometry_error): Likewise.
2742 (hd_probe_error): Remove. This is only used once, so we wrwite
2743 it inline instead.
2744 (read_error): Instead of printing read_error_string, just set up
2745 %si and fall through to ...
2746 (error_message): ... this new function, also used by ERR.
2747
2748 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
2749
2750 Speed up consecutive hostdisk operations on the same device.
2751
2752 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
2753 (grub_util_biosdisk_open): Initialise disk->data.
2754 (struct linux_partition_cache): New structure.
2755 (linux_find_partition): Cache partition start positions; these are
2756 expensive to compute on every read and write.
2757 (open_device): Cache open file descriptor in disk->data, so that we
2758 don't have to reopen it and flush the buffer cache for consecutive
2759 operations on the same device.
2760 (grub_util_biosdisk_close): New function.
2761 (grub_util_biosdisk_dev): Set `close' member.
2762
2763 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
2764 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
2765 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
2766 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
2767 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
2768
2769 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
2770
2771 Compile parts of grub-emu as modules.
2772
2773 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
2774 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
2775 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
2776 (all-local): Add $(GRUB_EMU).
2777 (install-local): Install $(GRUB_EMU).
2778 (uninstall): Uninstall $(GRUB_EMU).
2779 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
2780 * kern/dl.c: Likewise.
2781 * commands/sleep.c: Not include machine/time.h.
2782 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
2783 (COMMON_CFLAGS): Likewise.
2784 (sbin_UTILITIES): Remove grub-emu.
2785 (grub_emu_SOURCES): Removed.
2786 (kernel_img_RELOCATABLE): New variable.
2787 (pkglib_PROGRAMS): Add kernel.img.
2788 (kernel_img_SOURCES): New variable
2789 (kernel_img_CFLAGS): Likewise.
2790 (kernel_img_LDFLAGS): Likewise.
2791 (TARGET_NO_STRIP): Likewise.
2792 (TARGET_NO_DYNAMIC_MODULES): Likewise.
2793 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
2794 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
2795 (grub-emu): New target.
2796 (GRUB_EMU): New variable.
2797 * configure.ac: Whitelist -emu as possible x86_64 architecture.
2798 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
2799 * loader/xnu.c: Likewise.
2800 * include/grub/pci.h: Likewise.
2801 * genemuinit.sh: New file.
2802 * genemuinitheader.sh: Likewise.
2803 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
2804 Support TARGET_NO_DYNAMIC_MODULES.
2805 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
2806 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
2807 * disk/loopback.c: Likewise.
2808 * font/font_cmd.c: Likewise.
2809 * partmap/acorn.c: Likewise.
2810 * partmap/amiga.c: Likewise.
2811 * partmap/apple.c: Likewise.
2812 * partmap/gpt.c: Likewise.
2813 * partmap/msdos.c: Likewise.
2814 * partmap/sun.c: Likewise.
2815 * parttool/msdospart.c: Likewise.
2816 * term/gfxterm.c: Likewise.
2817 * video/bitmap.c: Likewise.
2818 * video/readers/jpeg.c: Likewise.
2819 * video/readers/png.c: Likewise.
2820 * video/readers/tga.c: Likewise.
2821 * video/video.c: Likewise.
2822 * util/grub-emu.c (read_command_list): Removed.
2823 (main): Don't call util_init_nls.
2824 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
2825 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
2826
2827 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
2828
2829 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
2830 date.mod, datehook.mod.
2831 (datetime_mod_SOURCES): New variable.
2832 (datetime_mod_CFLAGS): Likewise.
2833 (datetime_mod_LDFLAGS): Likewise.
2834 (date_mod_SOURCES): Likewise.
2835 (date_mod_CFLAGS): Likewise.
2836 (date_mod_LDFLAGS): Likewise.
2837 (datehook_mod_SOURCES): Likewise.
2838 (datehook_mod_CFLAGS): Likewise.
2839 (datehook_mod_LDFLAGS): Likewise.
2840 * conf/sparc64-ieee1275.rmk: Likewise.
2841 * lib/ieee1275/datetime.c: New file.
2842
2843 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
2844
2845 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
2846 (ieee1275_fb_mod_SOURCES): New variable.
2847 (ieee1275_fb_mod_CFLAGS): Likewise.
2848 (ieee1275_fb_mod_LDFLAGS): Likewise.
2849 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
2850 New proto.
2851 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
2852 (HEAP_MAX_ADDR): Likewise.
2853 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
2854 type.
2855 Correct stop condition.
2856 (grub_ieee1275_devices_iterate): New function.
2857 * video/ieee1275.c: New file.
2858
2859 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
2860
2861 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
2862
2863 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
2864 as scratch.
2865 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
2866 SCRATCH_PAD_DISKBOOT as scratch.
2867 (bootit): Pass Openfirmware pointer in %o4.
2868 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
2869 of 0x200000.
2870 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
2871 with util/grub-mkrawimage.c.
2872 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
2873 * include/grub/aout.h (AOUT_MID_SUN): New definition.
2874 (grub_aout_get_type) [GRUB_UTIL]: Removed.
2875 (grub_aout_load) [GRUB_UTIL]: Likewise.
2876 * include/grub/kernel.h (grub_modules_get_end): New proto.
2877 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
2878 (SCRATCH_PAD_BOOT): New definition.
2879 (SCRATCH_PAD_DISKBOOT): Likewise.
2880 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
2881 * include/grub/sparc64/ieee1275/ieee1275.h
2882 (grub_ieee1275_original_stack): New variable
2883 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
2884 New definition
2885 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
2886 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
2887 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
2888 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
2889 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
2890 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
2891 (grub_platform_image_format_t): New type.
2892 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
2893 * kern/main.c (grub_modules_get_end)
2894 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
2895 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
2896 (codestart): Switch stacks.
2897 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
2898 variable.
2899 (grub_heap_init): Use grub_modules_get_end.
2900 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
2901 stack.
2902 * util/grub-mkrawimage.c (generate_image): Support sparc64.
2903 (main): Likewise.
2904 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
2905
2906 2010-03-14 Thorsten Glaser <tg@mirbsd.org>
2907
2908 * util/grub-mkrescue.in: Base ISO UUID on UTC.
2909
2910 2010-03-08 Matt Kraai <kraai@ftbfs.org>
2911
2912 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
2913 bug #559005).
2914
2915 2010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
2916
2917 * genmoddep.awk: Output all missing symbols and not only first.
2918
2919 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
2920
2921 * NEWS: Put the date of 1.98 release.
2922
2923 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
2924
2925 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
2926 ft2build.h.
2927
2928 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
2929
2930 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
2931 completition in the middle of string.
2932
2933 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
2934
2935 * util/grub-mkrescue.in: Use mktemp with explicit template.
2936
2937 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
2938
2939 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
2940
2941 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
2942
2943 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
2944 right pointer.
2945
2946 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
2947
2948 Fix FreeBSD compilation.
2949
2950 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
2951 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
2952
2953 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
2954
2955 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
2956
2957 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
2958
2959 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
2960
2961 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
2962
2963 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
2964
2965 2010-03-04 Robert Millan <rmh.grub@aybabtu.com>
2966
2967 Support relative image path in theme file.
2968
2969 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
2970 (image_set_property): Handle theme_dir and relative path.
2971
2972 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
2973
2974 * configure.ac: Alias amd64 to x86_64.
2975
2976 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
2977
2978 * NEWS: mention multiboot on EFI.
2979
2980 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
2981
2982 * kern/main.c (grub_load_modules): Handle errors from init functions of
2983 embeded modules.
2984
2985 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
2986
2987 * normal/autofs.c (autoload_fs_module): Handle errors.
2988
2989 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
2990
2991 Disable linux.mod on qemu-mips since it's not functional and leads
2992 to compilation failure.
2993
2994 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
2995 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
2996 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
2997 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
2998 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
2999 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
3000 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
3001 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
3002 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
3003 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
3004 Reported by: BVK Chaitanya
3005
3006 2010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
3007
3008 * INSTALL: Add gettext as a dependency and add qemu to a new section
3009 "Prerequisites for make-check".
3010
3011 2010-03-04 Christian Franke <franke@computer.org>
3012
3013 * util/grub-pe2elf.c: Add missing include "progname.h".
3014
3015 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3016
3017 * normal/crypto.c (read_crypto_list): Fix a typo.
3018 Reported by: Seth Goldberg.
3019
3020 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3021
3022 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
3023 Reported by: Seth Goldberg.
3024
3025 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3026
3027 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
3028 ascii.bitmaps.
3029
3030 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3031
3032 * genmk.rb: Remove terminal*.lst in make clean.
3033 Reported by: Seth Goldberg.
3034
3035 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3036
3037 * util/i386/efi/grub-install.in: Copy gettext files.
3038
3039 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
3040
3041 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
3042
3043 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
3044
3045 Wait for user entry basing on presence of output rather than on errors.
3046
3047 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
3048 (grub_install_newline_hook): Likewise.
3049 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
3050 * normal/menu.c (show_menu): Check line_counter to determine presence
3051 of output.
3052 * normal/term.c (grub_normal_line_counter): New variable.
3053 (grub_normal_get_line_counter): New function.
3054 (grub_install_newline_hook): Likewise.
3055
3056 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
3057
3058 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
3059
3060 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
3061
3062 * configure.ac: Update version to 1.98.
3063
3064 2010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
3065
3066 * util/grub.d/10_linux.in (linux_entry): Don't default to
3067 gfxpayload=keep if Linux doesn't support video handover.
3068
3069 2010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
3070
3071 Don't compile video modules on yeeloong since video subsystem is part
3072 of kernel.
3073
3074 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
3075 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
3076 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
3077 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
3078 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
3079 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
3080 * include/grub/bitmap_scale.h: Likewise.
3081 * include/grub/bufio.h: Likewise.
3082 * include/grub/font.h: Likewise.
3083 * include/grub/gfxterm.h: Likewise.
3084 * include/grub/video.h: Likewise.
3085 * include/grub/vbe.h: Don't include video_fb.h.
3086 * video/i386/pc/vbe.c: Include video_fb.h.
3087 * commands/i386/pc/vbetest.c: Include video.h.
3088
3089 2010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
3090
3091 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
3092 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
3093 default entry if GRUB_SAVEDEFAULT=true. This allows using
3094 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
3095 saving a new default on every boot.
3096
3097 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
3098
3099 * normal/crypto.c (read_crypto_list): Fix a memory leak.
3100 * normal/term.c (read_terminal_list): Likewise.
3101 * normal/main.c (grub_normal_init_page): Likewise.
3102 (grub_normal_read_line_real): Likewise.
3103
3104 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
3105
3106 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
3107 memory leak.
3108 Reported by: Seth Goldberg.
3109
3110 2010-02-24 Joey Korkames <joey+lists@kidfixit.com>
3111
3112 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
3113 duplicate declaration of `start'.
3114
3115 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
3116
3117 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
3118 filename.
3119 Reported by: Georgy Buranov
3120
3121 2010-02-20 Carles Pina i Estany <carles@pina.cat>
3122
3123 * util/grub-mkrawimage.c (usage): Change string formatting to
3124 improve gettext.
3125
3126 2010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
3127
3128 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
3129 backspace keys.
3130
3131 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
3132
3133 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
3134 Reported by: Michael Suchanek.
3135
3136 2010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
3137
3138 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
3139 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
3140
3141 2010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
3142
3143 Remove any reference to non-free fonts.
3144
3145 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
3146 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
3147 uses non-free components.
3148 * font/font.c (grub_font_get_name): Remove example name.
3149 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
3150 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
3151 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
3152 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
3153
3154 2010-02-16 Georgy Buranov <gburanov@gmail.com>
3155
3156 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
3157
3158 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
3159
3160 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
3161 Double divisor.
3162 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
3163 features.
3164 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
3165
3166 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
3167
3168 * gensymlist.sh.in: Use TARGET_CC instead of CC.
3169
3170 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
3171
3172 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
3173 * docs/grub.texi (Command-line and menu entry commands): Document play
3174 command.
3175
3176 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
3177
3178 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
3179 parse arguments as inline tempo and notes. Move code for playing notes
3180 to...
3181 (play): ... new function.
3182
3183 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
3184
3185 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
3186 grub_uint16_t instead of short.
3187 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
3188 disk from little endian to cpu endianness.
3189
3190 2010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
3191
3192 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
3193 GRUB_TICKS_PER_SECOND instead of 120.
3194
3195 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
3196
3197 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
3198 escape sequence after \e.
3199
3200 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
3201
3202 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
3203 non-ASCII characters.
3204
3205 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
3206
3207 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
3208 set root in single quotes to prevent \, from being unescaped.
3209
3210 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
3211
3212 Prevent unknown commands from stopping menuentry execution.
3213
3214 * script/execute.c (grub_script_execute_cmdline): Print error after
3215 unknown command.
3216
3217 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
3218
3219 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
3220 Reported by: Pavel Pisa.
3221
3222 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3223
3224 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
3225
3226 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3227
3228 Merge grub_ieee1275_map_physical into grub_map and rename to
3229 grub_ieee1275_map
3230
3231 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
3232 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
3233 Remove.
3234 * kern/ieee1275/openfw.c (grub_map): Rename to ...
3235 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
3236 necessary.
3237 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
3238
3239 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3240
3241 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
3242 opening and not after.
3243
3244 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3245
3246 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
3247 constants.
3248
3249 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3250
3251 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
3252 (alloc_phys): Use ALIGN_UP instead of align_addr.
3253
3254 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3255
3256 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
3257
3258 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3259
3260 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
3261
3262 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3263
3264 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
3265 verbose dprintf.
3266
3267 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3268
3269 Fix over-4GiB seek on sparc64.
3270
3271 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
3272 Replace pos_i and pos_lo with pos. All users updated.
3273 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
3274 New constant.
3275 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
3276 Likewise.
3277 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
3278 and pos_lo.
3279
3280 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3281
3282 * util/grub-mkrawimage.c (main): Call set_program_name.
3283
3284 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3285
3286 Properly align 64-bit targets.
3287
3288 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
3289 (generate_image): Use ALIGN_ADDR.
3290
3291 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3292
3293 Properly create cross-endian images.
3294
3295 * include/grub/types.h (grub_host_to_target_addr): New macro
3296 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
3297
3298 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3299
3300 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
3301
3302 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
3303
3304 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
3305
3306 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
3307 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
3308 (grub_linux_boot): Divide by 64K when on VESA.
3309
3310 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
3311
3312 Support GRUB_GFXPAYLOAD_LINUX.
3313
3314 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
3315 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
3316
3317 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
3318
3319 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
3320 to show messages instead of discarding them.
3321 Process errors after executing command and not before. Keep old method
3322 too as precaution.
3323
3324 2010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
3325
3326 * configure.ac: Check for ft2build.h.
3327
3328 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3329
3330 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
3331
3332 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3333
3334 * genkernsyms.sh.in: Use TARGET_CC.
3335
3336 2010-02-07 Colin Watson <cjwatson@ubuntu.com>
3337
3338 * NEWS: Update.
3339
3340 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3341
3342 * include/grub/multiboot2.h: Remove leftover file.
3343 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
3344 * include/grub/partition.h [GRUB_UTIL]: Likewise.
3345
3346 2010-02-07 Yves Blusseau <blusseau@zetam.org>
3347
3348 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
3349
3350 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3351
3352 Fix warnings in grub-emu when compiling with maximum warning options.
3353
3354 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
3355 (grub_arch_modules_addr): Return 0 and not NULL.
3356 * util/misc.c (ENABLE_RELOCATABLE): New definition.
3357 (xstrdup): Use newstr instead of dup.
3358 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
3359 of disk to dsk to avoid shadowing.
3360 (find_free_slot): Fix prototype.
3361 * util/getroot.c (grub_util_is_dmraid): Make static.
3362 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
3363 Add missing prototype.
3364 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
3365
3366 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3367
3368 * loader/i386/linux.c (grub_linux_setup_video): Handle error
3369 appropriately.
3370
3371 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3372
3373 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
3374 code out.
3375
3376 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3377
3378 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
3379 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
3380 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
3381 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
3382 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
3383 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
3384
3385 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3386
3387 * include/grub/err.h (grub_err_printf): Don't export.
3388
3389 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3390
3391 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
3392
3393 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3394
3395 * include/grub/i18n.h (grub_gettext_dummy): Removed.
3396 * kern/misc.c (grub_gettext_dummy): Make static.
3397
3398 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3399
3400 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
3401 by non-valid ones.
3402 * kern/term.c (grub_putchar): Likewise.
3403
3404 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3405
3406 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
3407 buggy hook call and memory leak.
3408
3409 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3410
3411 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
3412
3413 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3414
3415 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
3416
3417 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3418
3419 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
3420 modevar.
3421 Return grub_errno on allocation error.
3422
3423 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3424
3425 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
3426
3427 2010-02-06 Yves Blusseau <blusseau@zetam.org>
3428
3429 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
3430 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
3431
3432 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3433
3434 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
3435 non-pxe disk.
3436 (grub_pxefs_open): Likewise.
3437
3438 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
3439
3440 * util/grub.d/10_hurd.in: Add --class information to menuentries.
3441 * util/grub.d/10_kfreebsd.in: Likewise.
3442 * util/grub.d/10_linux.in: Likewise.
3443
3444 2010-02-06 Colin D Bennett <colin@gibibit.com>
3445
3446 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
3447 (gfxmenu_mod_SOURCES): New variable.
3448 (gfxmenu_mod_CFLAGS): Likewise.
3449 (gfxmenu_mod_LDFLAGS): Likewise.
3450 * include/grub/term.h (grub_term_set_current_output): Declare
3451 argument as const.
3452 * docs/gfxmenu-theme-example.txt: New file.
3453 * gfxmenu/gfxmenu.c: Likewise.
3454 * gfxmenu/gui_box.c: Likewise.
3455 * gfxmenu/gui_canvas.c: Likewise.
3456 * gfxmenu/gui_circular_progress.c: Likewise.
3457 * gfxmenu/gui_image.c: Likewise.
3458 * gfxmenu/gui_label.c: Likewise.
3459 * gfxmenu/gui_list.c: Likewise.
3460 * gfxmenu/gui_progress_bar.c: Likewise.
3461 * gfxmenu/gui_string_util.c: Likewise.
3462 * gfxmenu/gui_util.c: Likewise.
3463 * gfxmenu/icon_manager.c: Likewise.
3464 * gfxmenu/model.c: Likewise.
3465 * gfxmenu/named_colors.c: Likewise.
3466 * gfxmenu/theme_loader.c: Likewise.
3467 * gfxmenu/view.c: Likewise.
3468 * gfxmenu/widget-box.c: Likewise.
3469 * include/grub/gfxmenu_model.h: Likewise.
3470 * include/grub/gfxmenu_view.h: Likewise.
3471 * include/grub/gfxwidgets.h: Likewise.
3472 * include/grub/gui.h: Likewise.
3473 * include/grub/gui_string_util.h: Likewise.
3474 * include/grub/icon_manager.h: Likewise.
3475
3476 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3477
3478 Agglomerate scrolling in gfxterm.
3479
3480 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
3481 (grub_virtual_screen_setup): Initialise 'total_screen'.
3482 (write_char): Split to ...
3483 (paint_char): ... this ...
3484 (write_char): ... and this.
3485 (paint_char): Handle delayed scrolling.
3486 (draw_cursor): Likewise.
3487 (scroll_up): Split to ...
3488 (real_scroll): ... this ...
3489 (scroll_up): ... and this.
3490 (real_scroll): Handle multi-line scroll and draw below-the-bottom
3491 characters.
3492 (grub_gfxterm_refresh): Call real_scroll.
3493
3494 2010-02-06 Colin D Bennett <colin@gibibit.com>
3495
3496 * include/grub/misc.h (grub_iscntrl): New inline function.
3497 (grub_isalnum): Likewise.
3498 (grub_strtol): Likewise.
3499
3500 2010-02-06 Colin D Bennett <colin@gibibit.com>
3501
3502 * normal/menu_text.c (get_entry_number): Move from here ...
3503 * normal/menu.c (get_entry_number): ... moved here.
3504 * include/grub/menu.h (grub_menu_get_default_entry_index):
3505 New prototype.
3506 * normal/menu.c (grub_menu_get_default_entry_index): New function.
3507 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
3508 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
3509 (grub_menu_viewer_should_return): Likewise.
3510 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
3511 * normal/menu_text.c (run_menu): Enable menu switching.
3512 * normal/menu_viewer.c (should_return): New variable.
3513 (menu_viewer_changed): Likewise.
3514 (grub_menu_viewer_show_menu): Handle menu viewer changes.
3515 (grub_menu_viewer_should_return): New function.
3516 (menuviewer_write_hook): Likewise.
3517 (grub_menu_viewer_init): Likewise.
3518
3519 2010-02-06 Colin D Bennet <colin@gibibit.com>
3520 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3521
3522 Support for gfxterm in a window.
3523
3524 * include/grub/gfxterm.h: New file.
3525 * include/grub/video.h (struct grub_video_rect): New declaration.
3526 (grub_video_rect_t): Likewise.
3527 * term/gfxterm.c (struct grub_gfxterm_window): New type.
3528 (refcount): New variable.
3529 (render_target): Likewise.
3530 (window): Likewise.
3531 (repaint_callback): Likewise.
3532 (grub_virtual_screen_setup): Use 'render_target'.
3533 (init_window): New function.
3534 (grub_gfxterm_init_window): Likewise.
3535 (grub_gfxterm_init): Check reference counter.
3536 Use init_window.
3537 (destroy_window): New function.
3538 (grub_gfxterm_destroy_window): Likewise.
3539 (grub_gfxterm_fini): Check reference counter.
3540 Use destroy_window.
3541 (redraw_screen_rect): Restore viewport.
3542 Use 'render_target' and 'window'.
3543 Call 'repaint_callback'.
3544 (write_char): Use 'render_target'.
3545 (draw_cursor): Likewise.
3546 (scroll_up): Restore viewport.
3547 Use 'render_target' and 'window'.
3548 Call 'repaint_callback'.
3549 (grub_gfxterm_cls): Likewise.
3550 (grub_gfxterm_refresh): Use 'window'.
3551 (grub_gfxterm_set_repaint_callback): New function.
3552 (grub_gfxterm_background_image_cmd): Use 'window'.
3553 (grub_gfxterm_get_term): New function.
3554 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
3555
3556 2010-02-06 Colin D Bennett <colin@gibibit.com>
3557
3558 Bitmap scaling support.
3559
3560 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
3561 (bitmap_scale_mod_SOURCES): New variable.
3562 (bitmap_scale_mod_CFLAGS): Likewise.
3563 (bitmap_scale_mod_LDFLAGS): Likewise.
3564 * include/grub/bitmap_scale.h: New file.
3565 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
3566 (background_image_cmd_options): New variable.
3567 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
3568 (cmd): Rename and change type to ...
3569 (background_image_cmd_handle): ... this. All users updated.
3570 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
3571 * video/bitmap_scale.c: New file.
3572
3573 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3574
3575 SDL support.
3576
3577 * Makefile.in (LIBSDL): New variable.
3578 (enable_grub_emu_sdl): Likewise.
3579 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
3580 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
3581 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
3582 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
3583 * util/sdl.c: New file.
3584
3585 2010-02-06 Colin D Bennett <colin@gibibit.com>
3586 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3587
3588 Double buffering support.
3589
3590 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
3591 * include/grub/video.h: Update comment.
3592 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
3593 New type.
3594 (grub_video_fb_doublebuf_blit_init): New prototype.
3595 * term/gfxterm.c (scroll_up): Support double buffering.
3596 (grub_gfxterm_refresh): Likewise.
3597 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
3598 (grub_video_fb_doublebuf_blit_init): Likewise.
3599 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
3600 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
3601 'displayed_page', 'render_page' and 'update_screen'.
3602 (grub_video_vbe_fini): Free offscreen buffer.
3603 (doublebuf_pageflipping_commit): New function.
3604 (doublebuf_pageflipping_update_screen): Likewise.
3605 (doublebuf_pageflipping_init): Likewise.
3606 (double_buffering_init): Likewise.
3607 (grub_video_vbe_setup): Enable doublebuffering.
3608 (grub_video_vbe_swap_buffers): Implement.
3609 (grub_video_vbe_set_active_render_target): Handle double buffering.
3610 (grub_video_vbe_get_active_render_target): Likewise.
3611 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
3612 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
3613 (grub_video_vbe_enable_double_buffering): Likewise.
3614 (grub_video_vbe_swap_buffers): Use update_screen.
3615 (grub_video_set_mode): Use double buffering.
3616
3617 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
3618
3619 * maintainance/gentrigtables.py: Remove.
3620 * lib/trig.c: Likewise.
3621
3622 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
3623
3624 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
3625 `trigtables.c'.
3626 (trigtables.c): New rule.
3627 (gentrigtables): Likewise.
3628 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
3629
3630 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
3631
3632 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
3633 integer constants.
3634
3635 2010-02-06 Colin D Bennet <colin@gibibit.com>
3636
3637 Trigonometry support.
3638
3639 * include/grub/trig.h: New file.
3640 * lib/trig.c: Likewise.
3641 * maintainance/gentrigtables.py: Likewise.
3642 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
3643 (trig_mod_SOURCES): New variable.
3644 (trig_mod_CFLAGS): Likewise.
3645 (trig_mod_LDFLAGS): Likewise.
3646
3647 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3648
3649 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
3650 disk devices.
3651
3652 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3653
3654 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
3655 error.
3656
3657 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
3658
3659 * util/hostdisk.c (open_device): Don't use partition device when reading
3660 before the partition.
3661 (grub_util_biosdisk_read): Don't read from partition and before the
3662 partition in single operation.
3663 (grub_util_biosdisk_write): Don't write to partition and before the
3664 partition in single operation.
3665
3666 2010-02-03 Torsten Landschoff <torsten@debian.org>
3667
3668 * kern/disk.c (grub_disk_read): Fix offset computation when reading
3669 last sectors.
3670
3671 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
3672
3673 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
3674 CDROM reads.
3675 (grub_biosdisk_write): Refuse to write to CDROM.
3676
3677 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
3678
3679 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
3680
3681 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
3682
3683 * font/font.c (find_glyph): Check that bmp_idx is available before
3684 using it.
3685 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
3686 with (font == NULL).
3687
3688 2010-01-28 Christian Schmitt <chris@ilovelinux.de>
3689
3690 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
3691
3692 2010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
3693
3694 * include/grub/script_sh.h (sourcecode): Add const qualifier.
3695 * util/grub-script-check.c (getline): Fix empty lines case.
3696
3697 2010-01-28 Robert Millan <rmh.grub@aybabtu.com>
3698
3699 * Makefile.in (check): Exit with fail status when one of the tests
3700 fails.
3701 * tests/example_functional_test.c (example_test): Fix reversed assert.
3702 * tests/example_unit_test.c (example_test): Likewise.
3703
3704 2010-01-28 Colin Watson <cjwatson@ubuntu.com>
3705
3706 * util/grub.d/10_linux.in: This script does not use any of the
3707 contents of gettext.sh, only the external command `gettext', so stop
3708 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
3709 the same prefix as GRUB.)
3710 * util/grub.d/10_kfreebsd.in: Likewise.
3711
3712 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
3713
3714 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
3715 of the line.
3716
3717 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
3718
3719 * kern/disk.c (grub_disk_read): Fix offset computation when reading
3720 last sectors.
3721
3722 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
3723
3724 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
3725 having a 4KiB and not 32KiB buffer size.
3726
3727 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
3728
3729 * util/hostfs.c: Include `<errno.h>'.
3730 (grub_hostfs_read): Handle errors from fseeko() and fread().
3731
3732 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
3733
3734 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
3735 loop when using read hooks on files whose size isn't sector-aligned.
3736
3737 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
3738
3739 Remove unused parameter.
3740
3741 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
3742 (grub_iso9660_open): Remove initialization of `data->length'.
3743
3744 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
3745
3746 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
3747 memleak conditions.
3748
3749 2010-01-27 Carles Pina i Estany <carles@pina.cat>
3750
3751 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
3752 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
3753
3754 2010-01-26 Carles Pina i Estany <carles@pina.cat>
3755
3756 * util/bin2h.c (usage): Fix warning (space after backslash).
3757
3758 2010-01-26 Carles Pina i Estany <carles@pina.cat>
3759
3760 * font/font.c: Include `grub/fontformat.h.
3761 Remove font file format constants.
3762 (grub_font_load): Use the new macros.
3763 * include/grub/fontformat.h: New file.
3764 * util/grub-mkfont.c: Include `grub/fontformat.c'.
3765 (write_font_pf2): Use the new macros.
3766
3767 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
3768
3769 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
3770 does.
3771
3772 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
3773
3774 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
3775
3776 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
3777 (_start): Macroify `0x7F'.
3778
3779 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
3780 (make_install_device): Use "(pxe)" as fallback prefix when booting
3781 via PXE.
3782
3783 2010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
3784
3785 * configure.ac: Reset LIBS after check for libgcc symbols.
3786
3787 2010-01-25 Colin Watson <cjwatson@ubuntu.com>
3788
3789 * util/hostdisk.c (open_device): Add trailing newline to debug
3790 message.
3791
3792 2010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
3793
3794 * configure.ac: Check for `limits.h'.
3795 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
3796
3797 2010-01-24 Robert Millan <rmh.grub@aybabtu.com>
3798
3799 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
3800 capitalize error strings.
3801
3802 2010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
3803
3804 * util/grub.d/10_hurd.in: Add a recovery mode.
3805
3806 2010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
3807
3808 * configure.ac: Check for libgcc symbols with -nostdlib.
3809
3810 2010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
3811
3812 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
3813
3814 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
3815
3816 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
3817 stack since heap may be unavailable at that point.
3818 (grub_ofconsole_gotoxy): Likewise.
3819
3820 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
3821
3822 * configure.ac: Check for _restgpr_14_x.
3823 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
3824 and _savegpr_* prototypes.
3825
3826 2010-01-22 Robert Millan <rmh.grub@aybabtu.com>
3827
3828 Use generic grub_reboot() for i386-efi.
3829
3830 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
3831 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
3832 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
3833
3834 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
3835
3836 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
3837 presence of "prefix" variable as it breaks when normal.mod is
3838 embedded.
3839
3840 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
3841
3842 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
3843 stack since heap is unavailable at that point.
3844
3845 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
3846
3847 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
3848 (grub_freebsd_bootinfo): Rewritten.
3849 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
3850
3851 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
3852
3853 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
3854
3855 2010-01-21 Robert Millan <rmh.grub@aybabtu.com>
3856
3857 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
3858 domain now.
3859
3860 2010-01-20 Felix Zielcke <fzielcke@z-51.de>
3861
3862 * util/misc.c (make_system_path_relative_to_its_root): Change the work
3863 around for handling "/" to the correct fix. Fix a memory leak. Use
3864 xstrdup instead of strdup.
3865
3866 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3867
3868 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
3869
3870 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3871
3872 Optimise glyph lookup by Basic Multilingual Plane lookup array.
3873
3874 * font/font.c (struct grub_font): New member 'bmp_idx'.
3875 (font_init): Initialise 'bmp_idx'.
3876 (load_font_index): Fill 'bmp_idx'.
3877 (find_glyph): Make inline. Use bmp_idx for BMP characters.
3878
3879 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3880
3881 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
3882 unnecessary calls.
3883
3884 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3885
3886 Move context handling out of the kernel.
3887
3888 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
3889 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
3890 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
3891 * conf/i386-efi.rmk: Likewise.
3892 * conf/i386-ieee1275.rmk: Likewise.
3893 * conf/i386-pc.rmk: Likewise.
3894 * conf/powerpc-ieee1275.rmk: Likewise.
3895 * conf/sparc64-ieee1275.rmk: Likewise.
3896 * conf/x86_64-efi.rmk: Likewise.
3897 * include/grub/env.h: Include grub/menu.h.
3898 (grub_env_var_type): Removed.
3899 (grub_env_var): Replaced field 'type' with 'global'.
3900 (grub_env_find): New prototype.
3901 (grub_env_context_open): Remove EXPORT_FUNC.
3902 (grub_env_context_close): Likewise.
3903 (grub_env_export): Likewise.
3904 (grub_env_set_data_slot): Removed.
3905 (grub_env_get_data_slot): Likewise.
3906 (grub_env_unset_data_slot): Likewise.
3907 (grub_env_unset_menu): New prototype.
3908 (grub_env_set_menu): Likewise.
3909 (grub_env_get_menu): Likewise.
3910 * include/grub/env_private.h: New file.
3911 * include/grub/normal.h (grub_context_init): New prototype.
3912 (grub_context_fini): Likewise.
3913 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
3914 * normal/context.c (grub_cmd_export): ... to here.
3915 * kern/env.c: Include env_private.h.
3916 (HASHSZ): Moved to include/grub/env_private.h.
3917 (grub_env_context): Likewise.
3918 (grub_env_sorted_var): Likewise.
3919 (current_context): Renamed from this ...
3920 (grub_current_context): ...to this. 'static' removed. All users updated.
3921 (grub_env_find): Removed 'static'.
3922 (grub_env_context_open): Moved to normal/context.c.
3923 (grub_env_context_close): Likewise.
3924 (grub_env_export): Likewise.
3925 (mangle_data_slot_name): Removed.
3926 (grub_env_set_data_slot): Likewise.
3927 (grub_env_get_data_slot): Likewise.
3928 (grub_env_unset_data_slot): Likewise.
3929 * kern/main.c (grub_set_root_dev): Don't export root.
3930 It will be done later.
3931 (grub_main): Don't export prefix.
3932 It will be done later.
3933 * normal/context.c: New file.
3934 * normal/main.c (free_menu): Use grub_env_unset_menu.
3935 (grub_normal_add_menu_entry): Use grub_env_get_menu.
3936 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
3937 (GRUB_MOD_INIT(normal)): Call grub_context_init.
3938 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
3939
3940 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3941
3942 setpci support.
3943
3944 * commands/setpci.c: New file.
3945 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
3946 (setpci_mod_SOURCES): New variable.
3947 (setpci_mod_CFLAGS): Likewise.
3948 (setpci_mod_LDFLAGS): Likewise.
3949
3950 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3951
3952 Byte-addressable PCI configuration space.
3953
3954 * bus/pci.c (grub_pci_make_address): Use byte address instead of
3955 dword address.
3956 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
3957 GRUB_PCI_REG_CACHELINE.
3958 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
3959 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
3960 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
3961 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
3962 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
3963 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
3964 grub_pci_make_address.
3965 (lock_rom_area): Likewise.
3966 * commands/lspci.c (grub_lspci_iter): Use macroses
3967 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
3968 of grub_pci_make_address.
3969 * disk/ata.c (grub_ata_pciinit): Likewise.
3970 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
3971 (GRUB_PCI_REG_VENDOR): Likewise.
3972 (GRUB_PCI_REG_DEVICE): Likewise.
3973 (GRUB_PCI_REG_COMMAND): Likewise.
3974 (GRUB_PCI_REG_STATUS): Likewise.
3975 (GRUB_PCI_REG_REVISION): Likewise.
3976 (GRUB_PCI_REG_CLASS): Likewise.
3977 (GRUB_PCI_REG_CACHELINE): Likewise.
3978 (GRUB_PCI_REG_LAT_TIMER): Likewise.
3979 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
3980 (GRUB_PCI_REG_BIST): Likewise.
3981 (GRUB_PCI_REG_ADDRESSES): Likewise.
3982 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
3983 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
3984 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
3985 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
3986 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
3987 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
3988 (GRUB_PCI_REG_CIS_POINTER): Likewise.
3989 (GRUB_PCI_REG_SUBVENDOR): Likewise.
3990 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
3991 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
3992 (GRUB_PCI_REG_CAP_POINTER): Likewise.
3993 (GRUB_PCI_REG_IRQ_LINE): Likewise.
3994 (GRUB_PCI_REG_IRQ_PIN): Likewise.
3995 (GRUB_PCI_REG_MIN_GNT): Likewise.
3996 (GRUB_PCI_REG_MAX_LAT): Likewise.
3997 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
3998 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
3999 * video/efi_uga.c (find_framebuf): Likewise.
4000 * video/sm712.c (grub_video_sm712_setup): Likewise.
4001 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
4002 space.
4003
4004 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
4005
4006 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
4007 can be reliably determined to be supported.
4008
4009 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
4010
4011 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
4012 that VESA is supported.
4013 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
4014 supported.
4015
4016 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4017
4018 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
4019
4020 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
4021
4022 * util/misc.c (make_system_path_relative_to_its_root): Work around
4023 special-casing of "/", as previous incarnation of this routine did.
4024
4025 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4026
4027 Fix any-emu compilation.
4028
4029 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
4030 * grub_bin2h_SOURCES: New variable.
4031
4032 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
4033
4034 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
4035
4036 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
4037
4038 * util/grub.d/00_header.in: Fix handling of locale_dir.
4039
4040 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4041
4042 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
4043 as possible unifont location (Gentoo).
4044 Reported by: Alexander Brüning
4045
4046 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4047
4048 Don't try to generate lists for kernel.img.
4049
4050 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
4051 (pkglib_MODULES): Remove kernel.img.
4052 (kernel_img_EXPORTS): Removed.
4053 (kernel_img_RELOCATABLE): New variable.
4054 * conf/x86_64-efi.rmk: Likewise.
4055 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
4056
4057 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4058
4059 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
4060 grub_xasprintf or grub_snprintf.
4061 (grub_vsprintf): Likewise.
4062 (grub_snprintf): New proto.
4063 (grub_vsnprintf): Likewise.
4064 (grub_xasprintf): Likewise.
4065 (grub_xvasprintf): Likewise.
4066 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
4067 (grub_sprintf): Removed.
4068 (grub_vsnprintf): New function.
4069 (grub_snprintf): Likewise.
4070 (grub_xvasprintf): Likewise.
4071 (grub_xasprintf): Likewise.
4072 (grub_vsprintf): Renamed to ...
4073 (grub_vsnprintf_real): ...this. New argument max_len.
4074
4075 2010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
4076
4077 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
4078 fix grub-script-check warning.
4079
4080 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4081
4082 * include/grub/font.h (grub_font_load): Fix prototype.
4083
4084 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4085
4086 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
4087
4088 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4089
4090 * include/grub/x86_64/at_keyboard.h: New file.
4091
4092 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4093
4094 * loader/mips/linux.c: Include missing grub/i18n.h.
4095
4096 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
4097
4098 * normal/menu.c (notify_execution_failure): Clarify error message.
4099
4100 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
4101
4102 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
4103 return value (and revert all return statements). Update users.
4104
4105 2010-01-20 Dan Merillat <debian@dan.merillat.org>
4106
4107 * kern/device.c (grub_device_iterate): Allocate new part_ent
4108 structure based on sizeof (*p) rather than sizeof (p->next), to
4109 account for structure padding.
4110
4111 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
4112 disk is NULL, which might happen for LVM physical volumes with no
4113 LVM signature.
4114
4115 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
4116
4117 * loader/mips/linux.c (grub_cmd_initrd)
4118 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
4119
4120 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
4121
4122 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
4123 (grub_video_video_init, grub_video_bitmap_init)
4124 (grub_font_manager_init, grub_term_gfxterm_init)
4125 (grub_at_keyboard_init): New extern declarations.
4126 (grub_machine_init): Initialize gfxterm and at_keyboard.
4127
4128 * kern/main.c (grub_main): Revert grub_printf delay kludge.
4129
4130 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
4131 `gfxterm.mod' into core image.
4132
4133 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
4134 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
4135 (kernel_img_FORMAT): Copy to ...
4136
4137 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
4138 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
4139 (kernel_img_FORMAT): ... here, and ...
4140
4141 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
4142 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
4143 (kernel_img_FORMAT): ... here.
4144
4145 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
4146 and input (at_keyboard) terminals in kernel.
4147 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
4148
4149 (pkglib_MODULES): Remove `pci.mod'.
4150 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
4151 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
4152 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
4153 (at_keyboard_mod_LDFLAGS): Remove variables.
4154
4155 2010-01-11 Felix Zielcke <fzielcke@z-51.de>
4156
4157 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
4158
4159 2009-12-10 Robert Millan <rmh.grub@aybabtu.com>
4160
4161 * include/grub/mips/libgcc.h: Only export symbols for functions
4162 that libgcc provides.
4163
4164 2009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
4165
4166 MIPS support.
4167
4168 * bus/bonito.c: New file.
4169 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
4170 GRUB_PCI_NUM_DEVICES.
4171 * term/i386/pc/serial.c: Move to ...
4172 * term/serial.c: ... here. All users updated.
4173 * util/i386/pc/grub-mkimage.c: Move to ...
4174 * util/grub-mkrawimage.c: ... here. All users updated.
4175 * term/i386/pc/at_keyboard.c: Move to ...
4176 * term/at_keyboard.c: ... here. All users updated.
4177 * conf/mips-qemu-mips.rmk: New file.
4178 * conf/mips-yeeloong.rmk: Likewise.
4179 * conf/mips.rmk: Likewise.
4180 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
4181 mipsel-qemu-mips.
4182 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
4183 to port addresses.
4184 (grub_ata_pciinit): Support CS5536.
4185 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
4186 * font/font_cmd.c (loadfont_command): Open file before passing it to
4187 grub_font_load.
4188 (pseudo_file_read): New function.
4189 (pseudo_file_close): Likewise.
4190 (pseudo_fs): New structure.
4191 (load_font_module): New function.
4192 (GRUB_MOD_INIT(font_manager)): Load embedded font.
4193 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
4194 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
4195 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
4196 * include/grub/i386/at_keyboard.h: Split into ...
4197 * include/grub/at_keyboard.h: ... this ...
4198 * include/grub/i386/at_keyboard.h: ... and this.
4199 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
4200 New prototype.
4201 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
4202 updated.
4203 (grub_elf64_size): Likewise.
4204 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
4205 filename.
4206 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
4207 * include/grub/i386/coreboot/serial.h: Rewritten.
4208 * include/grub/i386/ieee1275/serial.h: Include
4209 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
4210 * include/grub/i386/pc/serial.h: Moved from here ...
4211 * include/grub/serial.h: ... to here. All users updated.
4212 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
4213 (GRUB_PCI_NUM_BUS): Likewise.
4214 (GRUB_PCI_NUM_DEVICES): Likewise.
4215 (grub_pci_device_map_range): Add missing volatile keyword.
4216 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
4217 * include/grub/mips/at_keyboard.h: New file.
4218 * include/grub/mips/cache.h: Likewise.
4219 * include/grub/mips/io.h: Likewise.
4220 * include/grub/mips/kernel.h: Likewise.
4221 * include/grub/mips/libgcc.h: Likewise.
4222 * include/grub/mips/pci.h: Likewise.
4223 * include/grub/mips/qemu-mips/boot.h: Likewise.
4224 * include/grub/mips/qemu-mips/kernel.h: Likewise.
4225 * include/grub/mips/qemu-mips/loader.h: Likewise.
4226 * include/grub/mips/qemu-mips/memory.h: Likewise.
4227 * include/grub/mips/qemu-mips/serial.h: Likewise.
4228 * include/grub/mips/qemu-mips/time.h: Likewise.
4229 * include/grub/mips/relocator.h: Likewise.
4230 * include/grub/mips/time.h: Likewise.
4231 * include/grub/mips/types.h: Likewise.
4232 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
4233 * include/grub/mips/yeeloong/boot.h: Likewise.
4234 * include/grub/mips/yeeloong/kernel.h: Likewise.
4235 * include/grub/mips/yeeloong/loader.h: Likewise.
4236 * include/grub/mips/yeeloong/memory.h: Likewise.
4237 * include/grub/mips/yeeloong/pci.h: Likewise.
4238 * include/grub/mips/yeeloong/serial.h: Likewise.
4239 * include/grub/mips/yeeloong/time.h: Likewise.
4240 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
4241 * kern/elf.c (grub_elf32_size): New parameter. All users
4242 updated.
4243 (grub_elf64_size): Likewise.
4244 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
4245 Load modules before saying "Welcome to GRUB!".
4246 Call grub_refresh after saying "Welcome to GRUB!".
4247 * kern/mips/cache.S: New file.
4248 * kern/mips/cache_flush.S: Likewise.
4249 * kern/mips/dl.c: Likewise.
4250 * kern/mips/init.c: Likewise.
4251 * kern/mips/qemu-mips/init.c: Likewise.
4252 * kern/mips/startup.S: Likewise.
4253 * kern/mips/yeeloong/init.c: Likewise.
4254 * kern/term.c (grub_putcode): Handle NULL terminal.
4255 (grub_getcharwidth): Likewise.
4256 (grub_getkey): Likewise.
4257 (grub_checkkey): Likewise.
4258 (grub_getkeystatus): Likewise.
4259 (grub_getxy): Likewise.
4260 (grub_getwh): Likewise.
4261 (grub_gotoxy): Likewise.
4262 (grub_cls): Likewise.
4263 (grub_setcolorstate): Likewise.
4264 (grub_setcolor): Likewise.
4265 (grub_getcolor): Likewise.
4266 (grub_refresh): Likewise.
4267 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
4268 (write_jump): Add hatch nop.
4269 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
4270 * lib/mips/setjmp.S: New file.
4271 * loader/mips/linux.c: Likewise.
4272 * term/i386/pc/at_keyboard.c: Move from here ...
4273 * term/at_keyboard.c: ... to here.
4274 * term/i386/pc/serial.c: Moved from here ...
4275 * term/serial.c: ... to here. All users updated.
4276 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
4277 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
4278 (serial_translate_key_sequence): Avoid deadlock.
4279 (grub_serial_getkey): Handle backspace.
4280 (grub_serial_putchar): Fix newline handling.
4281 * util/i386/pc/grub-mkimage.c: Move from here ...
4282 * util/grub-mkrawimage.c: ... to here. All users updated.
4283 (generate_image): New parameters 'font_path' and 'format'.
4284 Support embedding font.
4285 Use grub_host_to_target* instead of grub_cpu_to_le*.
4286 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
4287 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
4288 (options): New option "--font".
4289 (usage): Likewise.
4290 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
4291 (main): Handle "--font".
4292 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
4293 (grub_virtual_screen_setup): Set bg_color_display.
4294 (redraw_screen_rect): Use bg_color_display instead of incorrect
4295 bg_color.
4296 (grub_gfxterm_cls): Likewise.
4297 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
4298 Support embedding config file.
4299 (add_segments): Likewise.
4300 (options): New option "--config".
4301 (main): Handle "--config".
4302 * video/sm712.c: New file.
4303
4304 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
4305
4306 Fix parallel builds.
4307
4308 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
4309 font.c depend on ascii.h).
4310
4311 2010-01-12 Carles Pina i Estany <carles@pina.cat>
4312
4313 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
4314
4315 2010-01-11 Carles Pina i Estany <carles@pina.cat>
4316
4317 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
4318 By default: disabled.
4319 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
4320 parameter.
4321
4322 2010-01-10 Carles Pina i Estany <carles@pina.cat>
4323
4324 * font/font.c: Update copyright years.
4325 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
4326
4327 2010-01-10 Carles Pina i Estany <carles@pina.cat>
4328
4329 * font/font.c: Include `ascii.h'.
4330 (ASCII_BITMAP_SIZE): New macro.
4331 (ascii_font_glyph): Define.
4332 (ascii_glyph_lookup): New function.
4333 (grub_font_get_string_width): Change comment. If glyph not found, use
4334 ascii_glyph_lookup.
4335 (grub_font_get_glyph_with_fallback): If glyph not available returns
4336 ascii_glyph_lookup.
4337 * util/grub-mkfont.c (file_formats): New enum.
4338 (options): Add `ascii-bitmaps' new option.
4339 (usage): Add `asii-bitmaps' new option.
4340 (write_font_ascii_bitmap): New function.
4341 (write_font): Rename to ...
4342 (write_font_p2): ... this. Remove print_glyphs call.
4343 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
4344 used. Call print_glyphs.
4345 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
4346
4347 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
4348
4349 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
4350 (grub_bin2h_SOURCES): New variable.
4351 * util/bin2h.c: New file.
4352
4353 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4354
4355 * include/multiboot.h: Resynced with spec.
4356 * include/multiboot2.h: Likewise.
4357 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
4358 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
4359
4360 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
4361
4362 * include/grub/term.h (grub_term_register_input,
4363 grub_term_register_output): Check return of terminal init()
4364 routines, and abort if errors are raised.
4365
4366 * commands/terminal.c: Update copyright year.
4367
4368 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
4369
4370 * commands/terminal.c (grub_cmd_terminal_input)
4371 (grub_cmd_terminal_output): Check return of terminal init()
4372 routines, and abort if errors are raised.
4373
4374 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
4375
4376 * include/grub/i386/bsd.h: Fix include pathes.
4377
4378 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
4379
4380 Add missing *BSD copyright headers.
4381
4382 * include/grub/aout.h: Add BSD licence.
4383 * include/grub/i386/bsd.h: Parts under different licences moved to ...
4384 * include/grub/i386/freebsd_linker.h: ... here,
4385 * include/grub/i386/freebsd_reboot.h: ... here,
4386 * include/grub/i386/netbsd_bootinfo.h: ... here,
4387 * include/grub/i386/netbsd_reboot.h: ... here,
4388 * include/grub/i386/openbsd_bootarg.h: ... here,
4389 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
4390 licence to each file.
4391
4392 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
4393
4394 * acinclude.m4: Remove `nop' assembly instruction; it's not
4395 implemented by all architectures.
4396
4397 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
4398
4399 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
4400 ELILO. This is no longer necessary.
4401
4402 2010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
4403
4404 Added new tool, grub-scrit-check to verify grub.cfg syntax.
4405
4406 * util/grub-script-check.c: grub-script-check tool.
4407 * conf/common.rmk: Make rules for grub-script-check.
4408
4409 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
4410
4411 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
4412 spotting it back in 2008. Shame on me for forgetting he did.
4413
4414 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
4415
4416 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
4417
4418 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
4419 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
4420 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
4421 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
4422 (GRUB_VIDEO_TYPE_EFI): Rename to ...
4423 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
4424
4425 2010-01-17 Robert Millan <rmh.grub@aybabtu.com>
4426
4427 * include/grub/test.h: Add license header.
4428 * tests/example_functional_test.c: Likewise.
4429 * tests/example_unit_test.c: Likewise.
4430 * tests/lib/functional_test.c: Likewise.
4431 * tests/lib/test.c: Likewise.
4432 * tests/lib/unit_test.c: Likewise.
4433
4434 2010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
4435
4436 Use flag-based instead of hook-based video mode selection and "auto"
4437 keyword.
4438
4439 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
4440 (grub_video_set_mode): Changed prototype. All users updated.
4441 (grub_video_check_mode_flag): New inline function.
4442 * video/video.c (parse_modespec): New function.
4443 (grub_video_set_mode): Parse flags and keywords.
4444
4445 2010-01-17 Carles Pina i Estany <carles@pina.cat>
4446
4447 * util/misc.c (grub_util_info): Fix the order of the parameters in a
4448 fprintf call.
4449
4450 2010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
4451
4452 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
4453
4454 2010-01-16 Carles Pina i Estany <carles@pina.cat>
4455
4456 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
4457 string.
4458 * util/grub-emu.c (usage): Likewise.
4459 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
4460 * util/i386/efi/grub-mkimage.c (usage): Likewise.
4461 * util/i386/pc/grub-mkimage.c (usage): Likewise.
4462 * util/i386/pc/grub-setup.c (usage): Likewise.
4463
4464 2010-01-16 Carles Pina i Estany <carles@pina.cat>
4465
4466 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
4467 the message.
4468 (grub_util_info): Likewise.
4469 (grub_util_error): Likewise.
4470 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
4471 and/or new lines in `grub_util_warna', `grub_util_info',
4472 `grub_util_error' calls.
4473 * util/getroot.c: Likewise.
4474 * util/grub-editenv.c: Likewise.
4475 * util/grub-emu.c: Likewise.
4476 * util/grub-fstest.c: Likewise.
4477 * util/grub-mkdevicemap.c: Likewise.
4478 * util/grub-mkfont.c: Likewise.
4479 * util/grub-mkpasswd-pbkdf2.c: Likewise.
4480 * util/grub-mkrelpath.c: Likewise.
4481 * util/grub-pe2elf.c: Likewise.
4482 * util/grub-probe.c: Likewise.
4483 * util/hostdisk.c: Likewise.
4484 * util/i386/efi/grub-mkimage.c: Likewise.
4485 * util/i386/pc/grub-mkimage.c: Likewise.
4486 * util/i386/pc/grub-setup.c: Likewise.
4487 * util/ieee1275/ofpath.c: Likewise.
4488 * util/mkisofs/eltorito.c: Likewise.
4489 * util/mkisofs/rock.c: Likewise.
4490 * util/mkisofs/write.c: Likewise.
4491 * util/raid.c: Likewise.
4492 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
4493 * util/sparc64/ieee1275/grub-setup.c: Likewise.
4494
4495 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
4496
4497 Enable multiboot on non-pc.
4498
4499 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
4500 multiboot.mod and multiboot2.mod to ...
4501 * conf/i386.rmk (pkglib_MODULES): ... here.
4502 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
4503 Moved to ...
4504 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
4505 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
4506 Moved to ...
4507 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
4508 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
4509 Moved to ...
4510 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
4511 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
4512 Moved to ...
4513 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
4514 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
4515 relocator.mod.
4516 (ata_mod_SOURCES): Removed.
4517 (ata_mod_CFLAGS): Likewise.
4518 (ata_mod_LDFLAGS): Likewise.
4519 (relocator_mod_SOURCES): Removed.
4520 (relocator_mod_CFLAGS): Likewise.
4521 (relocator_mod_ASFLAGS): Likewise.
4522 (relocator_mod_LDFLAGS): Likewise.
4523 Include i386.mk.
4524 * include/grub/x86_64/multiboot.h: New file.
4525 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
4526 Terminate EFI.
4527
4528 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
4529
4530 Video multiboot support.
4531
4532 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
4533 New prototype.
4534 * include/multiboot.h: Resynced with multiboot specification.
4535 * include/multiboot2.h: Likewise.
4536 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
4537 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
4538 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
4539 (HAS_VGA_TEXT): Likewise.
4540 (accepts_video): New variable.
4541 (grub_multiboot_set_accepts_video): New function.
4542 (grub_multiboot_get_mbi_size): Account for video structures.
4543 (set_video_mode): New function.
4544 (retrieve_video_parameters): Likewise.
4545 (grub_multiboot_make_mbi): Fill video fields.
4546
4547 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
4548
4549 Video driver ids.
4550
4551 * include/grub/video.h (grub_video_driver_id): New type.
4552 (grub_video_adapter): New member 'id'. All users updated.
4553 (grub_video_get_driver_id): New proto.
4554 * video/video.c (grub_video_get_driver_id): New function.
4555
4556 2010-01-14 Carles Pina i Estany <carles@pina.cat>
4557
4558 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
4559 `var=val'.
4560
4561 2010-01-14 Carles Pina i Estany <carles@pina.cat>
4562
4563 * normal/cmdline.c (print_completion): Gettextizze.
4564
4565 2001-01-14 Carles Pina i Estany <carles@pina.cat>
4566
4567 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
4568
4569 2010-01-14 Carles Pina i Estany <carles@pina.cat>
4570
4571 * gettext/gettext.c (grub_gettext_translate): Push and pop
4572 grub_errno.
4573 (grub_gettext_delete_list): Change comment style.
4574 * kern/err.c (grub_error): Gettextizze.
4575 (grub_fatal): Gettextizze.
4576
4577 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
4578
4579 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
4580 (grub_linux16_real_boot): ... this.
4581 * kern/i386/loader.S: Likewise.
4582 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
4583 (grub_linux16_boot): New function. Switches to text mode and calls
4584 grub_linux16_real_boot().
4585
4586 * loader/i386/bsd.c: Include `<grub/video.h>'.
4587 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
4588 text mode before calling grub_unix_real_boot().
4589
4590 * loader/i386/multiboot.c: Include `<grub/video.h>'.
4591 (grub_multiboot_boot): Switch to text mode before calling
4592 grub_relocator32_boot().
4593
4594 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
4595 (grub_chainloader_boot): Switch to text mode before calling
4596 grub_chainloader_real_boot().
4597
4598 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
4599 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
4600
4601 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
4602 non-empty value.
4603
4604 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
4605 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
4606
4607 * util/grub.d/00_header.in: Define a "savedefault" function for use
4608 in menu entries.
4609 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
4610
4611 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
4612 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
4613
4614 * util/grub-mkconfig_lib.in (save_default_entry): Only set
4615 saved_entry if boot_once is unset.
4616 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
4617 previous saved entry (i.e. grub-reboot).
4618
4619 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
4620
4621 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
4622
4623 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
4624
4625 * util/grub.d/00_header.in: Use `set var=val' rather than plain
4626 `var=val'.
4627 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
4628
4629 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
4630
4631 * util/grub-reboot.in: Fix --version output.
4632 * util/grub-set-default.in: Likewise.
4633
4634 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
4635
4636 * util/grub.d/00_header.in: Silently ignore zero-sized environment
4637 blocks.
4638
4639 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
4640
4641 * util/grub.d/00_header.in: Quote the value assigned to `default',
4642 in case it contains spaces.
4643
4644 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
4645
4646 * util/grub.d/30_os-prober.in: Fix merge error that moved a
4647 `save_default_entry' call from the macosx case to the linux case.
4648
4649 2009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4650 2009-10-25 Colin Watson <cjwatson@ubuntu.com>
4651
4652 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
4653 in `chosen' environment variable.
4654 * normal/menu_text.c (get_entry_number): Check if the variable
4655 matches the title of a menu entry.
4656 (run_menu): Pass menu to get_entry_number.
4657
4658 * util/grub-reboot.in: New file.
4659 * util/grub-set-default.in: New file.
4660 * conf/common.rmk (grub-reboot): New utility.
4661 (grub-set-default): New utility.
4662
4663 * util/grub-mkconfig_lib.in (save_default_entry): New function.
4664 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
4665 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
4666 move it to `saved_entry' for the next boot. Load environment on
4667 initialisation.
4668 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
4669 * util/grub.d/10_hurd.in: Likewise.
4670 * util/grub.d/10_linux.in (linux_entry): Likewise.
4671 * util/grub.d/10_windows.in: Likewise.
4672 * util/grub.d/30_os-prober.in: Likewise.
4673
4674 * util/grub-install.in: Create environment block.
4675 * util/i386/efi/grub-install.in: Likewise.
4676 * util/ieee1275/grub-install.in: Likewise.
4677 * util/sparc64/ieee1275/grub-install.in: Likewise.
4678
4679 2010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
4680
4681 Unit testing framework for GRUB.
4682
4683 * Makefile.in: Test framework build rules for 'make check'.
4684 * conf/tests.rmk: Build rules for individual tests and framework.
4685
4686 * include/grub/test.h: Header file for whitebox tests.
4687 * tests/lib/functional_test.c: Framework support for whitebox
4688 functional tests.
4689 * tests/lib/test.c: Common whitebox testing code for unit and
4690 functional tests.
4691 * tests/lib/unit_test.c: Framework support for whitebox unit
4692 tests.
4693
4694 * tests/util/grub-shell-tester.in: Support utility for grub-script
4695 tests.
4696 * tests/util/grub-shell.in: Utility to execute grub-script
4697 commands in a Qemu instance.
4698
4699 * tests/example_functional_test.c: Example whitebox functional
4700 test.
4701 * tests/example_grub_script_test.in: Example grub-script test.
4702 * tests/example_scripted_test.in: Example scripted test.
4703 * tests/example_unit_test.c: Example whitebox unit test.
4704
4705 2010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
4706
4707 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
4708 Add loader/i386/multiboot_mbi.c.
4709 (multiboot2_mod_SOURCES): Likewise.
4710 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
4711 (multiboot2_mod_SOURCES): Likewise.
4712 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
4713 (grub_multiboot_make_mbi): Likewise.
4714 (grub_multiboot_free_mbi): Likewise.
4715 (grub_multiboot_init_mbi): Likewise.
4716 (grub_multiboot_add_module): Likewise.
4717 (grub_multiboot_set_bootdev): Likewise.
4718 * loader/i386/multiboot.c (mbi): Removed.
4719 (mbi_dest): Likewise.
4720 (alloc_mbi): New variable.
4721 (grub_multiboot_payload_size): Removed. All users updated.
4722 (grub_multiboot_pure_size): New variable.
4723 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
4724 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
4725 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
4726 (grub_fill_multiboot_mmap): Likewise.
4727 (grub_multiboot_get_bootdev): Likewise.
4728 (grub_multiboot): Use multiboot_mbi functions.
4729 * loader/i386/multiboot_mbi.c: New file.
4730
4731 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
4732
4733 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
4734 it would result in module crash.
4735
4736 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
4737
4738 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
4739 (grub_ofconsole_getwh): Split to ...
4740 (grub_ofconsole_getwh): ... this.
4741 (grub_ofconsole_dimensions): ...and this.
4742 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
4743
4744 2010-01-13 Robert Millan <rmh.grub@aybabtu.com>
4745
4746 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
4747
4748 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
4749
4750 * loader/i386/pc/multiboot2.c: Removed stalled file.
4751
4752 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
4753
4754 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
4755 Reported by: Grégoire Sutre
4756
4757 2010-01-11 Robert Millan <rmh.grub@aybabtu.com>
4758
4759 * util/misc.c (canonicalize_file_name): New function.
4760 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
4761 instead of realpath().
4762
4763 2010-01-11 Colin Watson <cjwatson@ubuntu.com>
4764
4765 * util/grub-install.in (usage): Clarify meaning of --root-directory,
4766 and make it clearer that it's optional. Based on confusion
4767 witnessed on IRC.
4768
4769 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
4770
4771 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
4772 in premature implicit newline.
4773
4774 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
4775
4776 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
4777 which resulted in garbled command line at the end of screen.
4778
4779 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
4780
4781 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
4782 initialization with similar approach as with other Linux loaders.
4783
4784 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
4785
4786 Fix i386-ieee1275 build.
4787
4788 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
4789 and grub_term_height() for video_{width,height} initialization.
4790
4791 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
4792
4793 Fix grub-emu build.
4794
4795 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
4796
4797 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
4798 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
4799
4800 Support for multiple terminals.
4801
4802 * Makefile.in (pkglib_DATA): terminal.lst.
4803 (terminal.lst): New target.
4804 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
4805 (GRUB_MOD_INIT(handler)): Likewise.
4806 (GRUB_MOD_FINI(handler)): Likewise.
4807 * commands/help.c (grub_cmd_help): Handle multiple terminals.
4808 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
4809 * commands/sleep.c (do_print): Use grub_term_restore_pos.
4810 (grub_cmd_sleep): Use grub_term_save_pos.
4811 * commands/terminal.c: New file.
4812 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
4813 commands/terminal.c and lib/charset.c.
4814 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
4815 (pkglib_MODULES): Add terminal.mod.
4816 (terminal_mod_SOURCES): New variable.
4817 (terminal_mod_CFLAGS): Likewise.
4818 (terminal_mod_LDFLAGS): Likewise.
4819 * genhandlerlist.sh: Don't handle terminals.
4820 * genmk.rb: Generate terminal-*.lst.
4821 * genterminallist.sh: New file.
4822 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
4823 (grub_is_valid_utf8): Likewise.
4824 (grub_utf8_to_ucs4_alloc): Likewise.
4825 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
4826 (grub_menu_register_viewer): Changed argument.
4827 (grub_menu_try_text): New proto.
4828 (grub_gfxmenu_try_hook): New declaration.
4829 * include/grub/normal.h (grub_normal_exit_level): New declaration.
4830 (grub_menu_init_page): Additional argument term.
4831 (grub_normal_init_page): Likewise.
4832 (grub_cmdline_get): Arguments simplified.
4833 (grub_utf8_to_ucs4_alloc): Removed.
4834 (grub_print_ucs4): Additional argument term.
4835 (grub_getstringwidth): Likewise.
4836 (grub_print_message_indented): Likewise.
4837 (grub_menu_text_register_instances): New proto.
4838 (grub_show_menu): Likewise.
4839 (read_terminal_list): Likewise.
4840 (grub_set_more): Likewise.
4841 * include/grub/parser.h: Include handler.h.
4842 * include/grub/reader.h: Rewritten.
4843 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
4844 (GRUB_TERM_WIDTH): Changed to function.
4845 (GRUB_TERM_HEIGHT): Likewise.
4846 (GRUB_TERM_BORDER_WIDTH): Likewise.
4847 (GRUB_TERM_BORDER_HEIGHT): Likewise.
4848 (GRUB_TERM_NUM_ENTRIES): Likewise.
4849 (GRUB_TERM_ENTRY_WIDTH): Likewise.
4850 (GRUB_TERM_CURSOR_X): Likewise.
4851 (grub_term_input_class): Likewise.
4852 (grub_term_output_class): Likewise.
4853 (grub_term_outputs_disabled): New declaration.
4854 (grub_term_inputs_disabled): Likewise.
4855 (grub_term_outputs): Likewise.
4856 (grub_term_inputs): Likewise.
4857 (grub_term_register_input): Rewritten.
4858 (grub_term_register_output): Likewise.
4859 (grub_term_unregister_input): Likewise.
4860 (grub_term_unregister_output): Likewise.
4861 (FOR_ACTIVE_TERM_INPUTS): New macro.
4862 (FOR_DISABLED_TERM_INPUTS): Likewise.
4863 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
4864 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
4865 * include/grub/terminfo.h: Add oterm argument to all protypes.
4866 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
4867 Use grub_rescue_run.
4868 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
4869 All users updated.
4870 * kern/reader.c: Removed. All users updated.
4871 * kern/rescue_reader.c (grub_rescue_init): Removed.
4872 (grub_rescue_reader): Likewise.
4873 (grub_register_rescue_reader): Likewise.
4874 (grub_rescue_run): New function based on kern/reader.c.
4875 * kern/term.c: Adapted for multiterm.
4876 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
4877 (grub_is_valid_utf8): Likewise.
4878 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
4879 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
4880 right terminal.
4881 * loader/i386/linux.c (grub_linux_boot): Likewise.
4882 * normal/auth.c (grub_username_get): New function.
4883 (grub_auth_check_authentication): Use grub_username_get.
4884 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
4885 * normal/color.c: Adapt for multiterm.
4886 * normal/main.c (read_config_file): Don't use grub_reader_loop.
4887 (grub_normal_init_page): Additional argument term.
4888 (read_lists): Call read_terminal_lists.
4889 (grub_enter_normal_mode): Call grub_cmdline_run.
4890 Handle grub_normal_exit_level.
4891 (grub_cmd_normal): Make reentrant.
4892 (grub_cmd_normal_exit): New function.
4893 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
4894 * normal/menu.c: Adapt for multiterm.
4895 * normal/menu_entry.c: Likewise.
4896 * normal/menu_text.c: Likewise.
4897 * normal/menu_viewer.c: Removed. All users updated.
4898 * normal/term.c: New file.
4899 * util/console.c: Change order of includes to workaround a bug in
4900 ncurses headers.
4901 * term/terminfo.c: New argument oterm on all exported functions.
4902 All users updated.
4903 * util/grub-editenv.c (grub_term_input_class): Removed.
4904 (grub_term_output_class): Likewise.
4905
4906 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
4907
4908 Make loader output a bit more user-friendly.
4909
4910 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
4911 is being loaded. Likewise for the Hurd.
4912
4913 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
4914 that kernel of FreeBSD ${version} is being loaded.
4915
4916 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
4917 grub_dprintf().
4918 (grub_cmd_initrd): Likewise.
4919 * util/grub.d/10_linux.in (linux_entry): Print message indicating
4920 that Linux ${version} is being loaded. Likewise for initrd.
4921
4922 2010-01-09 Carles Pina i Estany <carles@pina.cat>
4923
4924 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
4925
4926 2010-01-08 Carles Pina i Estany <carles@pina.cat>
4927
4928 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
4929 (GRUB_MOD_INIT): Gettextizze.
4930 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
4931 (GRUB_MOD_INIT): Gettextizze.
4932 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
4933 (grub_cmd_linux): Capitalise Linux.
4934 (GRUB_MOD_INIT): Gettextizze.
4935 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
4936 (grub_cmd_linux): Capitalise Linux.
4937 (GRUB_MOD_INIT): Gettextizze.
4938 * loader/i386/linux.c: Include `<grub/i18n.h>'.
4939 (grub_cmd_linux): Capitalise Linux.
4940 (GRUB_MOD_INIT): Gettextizze.
4941 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
4942 (GRUB_MOD_INIT): Gettextizze.
4943 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
4944 (grub_cmd_linux): Capitalise Linux.
4945 (GRUB_MOD_INIT): Gettextizze.
4946 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
4947 (grub_cpu_xnu_init): Gettextizze.
4948 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
4949 (GRUB_MOD_INIT): Gettextizze.
4950 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
4951 (GRUB_MOD_INIT): Gettextizze.
4952 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
4953 (grub_linux_load64): Capitalise Linux.
4954 (GRUB_MOD_INIT): Gettextizze.
4955 * loader/xnu.c: Include `<grub/i18n.h>'.
4956 (GRUB_MOD_INIT): Gettextizze.
4957 * po/POTFILES: Add `loader/efi/appleloader.c',
4958 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
4959 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
4960 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
4961 `loader/i386/xnu.c', `loader/multiboot_loader.c',
4962 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
4963 and `loader/xnu.c'.
4964
4965 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
4966
4967 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
4968
4969 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
4970
4971 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
4972 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
4973 * util/mkisofs/mkisofs.c (main): Readjust --version output.
4974
4975 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
4976
4977 Reset Multiboot 2 support. New loader implements the draft in
4978 /branches/multiboot2 and shares as much code as possible with the
4979 production Multiboot 1 implementation.
4980
4981 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
4982 * loader/multiboot2.c: Likewise.
4983 * loader/i386/multiboot_helper.S: Likewise.
4984 * include/multiboot2.h: Replace with latest version from the draft
4985 in /branches/multiboot2.
4986
4987 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
4988 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
4989 and `loader/multiboot2.c'.
4990 (pkglib_MODULES): Add `multiboot2.mod'.
4991 (multiboot2_mod_SOURCES): New variable.
4992 (multiboot2_mod_LDFLAGS): Likewise.
4993 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
4994
4995 * conf/i386-pc.rmk: Likewise.
4996
4997 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
4998 (multiboot_mod_SOURCES): Remove variable.
4999 (multiboot_mod_LDFLAGS): Likewise.
5000 (multiboot_mod_CFLAGS): Likewise.
5001
5002 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
5003 `<multiboot2.h>' instead of `<multiboot.h>'.
5004 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
5005 (MULTIBOOT_HEADER_MAGIC): New macros.
5006
5007 * loader/multiboot_loader.c (module_version_status): Remove variable.
5008 (find_multi_boot2_header): Remove function.
5009 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
5010 logic. Always check for the Multiboot version we're compiling for.
5011 (grub_cmd_module_loader): Likewise.
5012 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
5013 command instead of `multiboot'.
5014
5015 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
5016
5017 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
5018 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
5019 all users.
5020
5021 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
5022 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
5023
5024 Fix breakage introduced with previous commit.
5025
5026 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
5027 commands.
5028 * normal/handler.c (read_handler_list): Revert part of previous commit
5029 affecting this file.
5030 * normal/main.c (read_lists): Move read_handler_list() call back to ...
5031 (grub_normal_execute): ... here.
5032
5033 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
5034
5035 Merge prefix-redefinition-fix branch.
5036
5037 * normal/autofs.c (read_fs_list): Make function capable of being
5038 run multiple times, gracefuly replacing the previous data
5039 structures.
5040 * normal/dyncmd.c (read_command_list): Likewise.
5041 * normal/handler.c (read_handler_list): Likewise.
5042 * normal/main.c (read_lists): New function. Calls all the
5043 list reading functions.
5044 (grub_normal_execute): Use read_lists() instead of calling all
5045 list reading functions explicitly. Register read_lists() as a
5046 variable hook attached to ${prefix}.
5047
5048 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
5049
5050 Merge crypto branch.
5051
5052 * Makefile.in (pkglib_DATA): Add crypto.lst.
5053 (crypto.lst): New target.
5054 * commands/hashsum.c: New file.
5055 * commands/password.c (check_password): Use grub_crypto_memcmp.
5056 * commands/password_pbkdf2.c: New file.
5057 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
5058 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
5059 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
5060 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
5061 -I$(srcdir)/lib/libgcrypt_wrap.
5062 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
5063 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
5064 password_pbkdf2.mod.
5065 (crypto_mod_SOURCES): New variable.
5066 (crypto_mod_CFLAGS): Likewise.
5067 (crypto_mod_LDFLAGS): Likewise.
5068 (hashsum_mod_SOURCES): New variable.
5069 (hashsum_mod_CFLAGS): Likewise.
5070 (hashsum_mod_LDFLAGS): Likewise.
5071 (pbkdf2_mod_SOURCES): New variable.
5072 (pbkdf2_mod_CFLAGS): Likewise.
5073 (pbkdf2_mod_LDFLAGS): Likewise.
5074 (password_pbkdf2_mod_SOURCES): New variable.
5075 (password_pbkdf2_mod_CFLAGS): Likewise.
5076 (password_pbkdf2_mod_LDFLAGS): Likewise.
5077 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
5078 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
5079 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
5080 Include conf/gcry.rmk.
5081 * include/grub/auth.h: Rewritten.
5082 * include/grub/crypto.h: New file.
5083 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
5084 * include/grub/normal.h (read_crypto_list): New prototype.
5085 * lib/crypto.c: New file.
5086 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
5087 * lib/pbkdf2.c: Likewise.
5088 * normal/auth.c (grub_auth_strcmp): Removed.
5089 (grub_iswordseparator): Likewise.
5090 (grub_auth_strword): Likewise.
5091 (is_authenticated): Use grub_strword.
5092 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
5093 and grub_strword. Pass entered password to authentication callback.
5094 * normal/crypto.c: New file.
5095 * normal/main.c: Call read_crypto_list.
5096 * util/grub-mkpasswd-pbkdf2.c: New file.
5097 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
5098
5099 2010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
5100
5101 Fix descent and ascent calculation.
5102
5103 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
5104 (options): New option "asce".
5105 (usage): Likewise.
5106 (add_char): Ignore invalid glyphs for descent calculation.
5107 Calculate ascent from actual content.
5108 (print_glyphs): Use 'asce'.
5109 (write_font): Likewise. Allow ascent override.
5110 (main): Handle "asce" option.
5111
5112 2010-01-06 Carles Pina i Estany <carles@pina.cat>
5113
5114 * kern/err.c: Include `<grub/i18n.h>'.
5115 (grub_print_error): Add full stop. Gettextizze.
5116 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
5117 (grub_bsd_load_elf): Capitalise ELF.
5118 (grub_cmd_freebsd_loadenv): Add `s' in error string.
5119 (grub_cmd_freebsd_module): Likewise.
5120 (grub_cmd_freebsd_module_elf): Likewise.
5121 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
5122
5123 2010-01-06 Carles Pina i Estany <carles@pina.cat>
5124
5125 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
5126 * commands/search_file.c (HELP_MESSAGE): New macro.
5127 * commands/search_label.c (HELP_MESSAGE): Likewise.
5128 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
5129 * po/POTFILES: Add `commands/search_file.c',
5130 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
5131 `commands/search.c'.
5132
5133 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
5134
5135 * config.rpath: Update from Gnulib.
5136
5137 2010-01-05 Yves Blusseau <blusseau@zetam.org>
5138
5139 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
5140
5141 2010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
5142
5143 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
5144
5145 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
5146
5147 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
5148 arguments to fread so that we get a return value in bytes, rather
5149 than something that will normally be rounded down to 0.
5150 Adjust error handling to avoid producing garbage when size_t is not
5151 the same size as long long.
5152
5153 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
5154
5155 * util/mkisofs/write.c (padblock_write): Check return value of
5156 fread.
5157
5158 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
5159
5160 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
5161 floppy images now.
5162
5163 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
5164
5165 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
5166
5167 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
5168 instead of manual alignment.
5169 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
5170 verbose). Avoid attempts to read past end of the device
5171 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
5172 but GRUB_DISK_CACHE_SIZE may exceed that).
5173
5174 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
5175
5176 * commands/crc.c (grub_cmd_crc): Abort on read errors.
5177 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
5178 it to upper layer.
5179
5180 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
5181
5182 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
5183 New constant.
5184 (grub_efi_piwg_device_path): New structure
5185 (grub_efi_piwg_device_path_t): New type.
5186 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
5187 (devpath_1): Transform to a structure. All users updated.
5188 (devpath_2): Likewise.
5189 (devpath_3): Likewise.
5190 (devpath_4): Likewise.
5191 (devpath_5): Likewise.
5192
5193 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
5194
5195 * loader/efi/appleloader.c: Restored. Update all users.
5196
5197 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
5198
5199 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
5200
5201 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
5202 (struct boot_blocklist): Move from here ...
5203 * include/grub/i386/pc/boot.h [ASM_FILE]
5204 (struct grub_boot_blocklist): ... to here. Update all users.
5205 (setup): Only initialize `start' member of `first_block'
5206 structure. Add assert() calls to verify the other members.
5207
5208 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
5209 (generate_image): Fix broken blocklist length initialization.
5210 Add assert() call to verify blocklist `segment' field.
5211
5212 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
5213
5214 * loader/efi/appleloader.c: Remove. Update all users.
5215
5216 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
5217
5218 * boot/i386/pc/boot.S: Update copyright year.
5219 * boot/i386/pc/cdboot.S: Likewise.
5220 * boot/i386/pc/diskboot.S: Likewise.
5221 * boot/i386/pc/lnxboot.S: Likewise.
5222 * boot/i386/pc/pxeboot.S: Likewise.
5223 * bus/pci.c: Likewise.
5224 * commands/cmp.c: Likewise.
5225 * commands/help.c: Likewise.
5226 * commands/hexdump.c: Likewise.
5227 * commands/i386/pc/halt.c: Likewise.
5228 * commands/i386/pc/play.c: Likewise.
5229 * commands/i386/pc/vbeinfo.c: Likewise.
5230 * commands/ls.c: Likewise.
5231 * commands/test.c: Likewise.
5232 * disk/dmraid_nvidia.c: Likewise.
5233 * disk/i386/pc/biosdisk.c: Likewise.
5234 * disk/ieee1275/nand.c: Likewise.
5235 * disk/ieee1275/ofdisk.c: Likewise.
5236 * disk/lvm.c: Likewise.
5237 * disk/raid.c: Likewise.
5238 * disk/raid6_recover.c: Likewise.
5239 * disk/scsi.c: Likewise.
5240 * fs/affs.c: Likewise.
5241 * fs/cpio.c: Likewise.
5242 * fs/ext2.c: Likewise.
5243 * fs/hfs.c: Likewise.
5244 * fs/iso9660.c: Likewise.
5245 * fs/ntfs.c: Likewise.
5246 * fs/sfs.c: Likewise.
5247 * fs/udf.c: Likewise.
5248 * fs/ufs.c: Likewise.
5249 * fs/xfs.c: Likewise.
5250 * gencmdlist.sh: Likewise.
5251 * genmk.rb: Likewise.
5252 * include/grub/disk.h: Likewise.
5253 * include/grub/efi/api.h: Likewise.
5254 * include/grub/efi/efi.h: Likewise.
5255 * include/grub/efi/pe32.h: Likewise.
5256 * include/grub/elf.h: Likewise.
5257 * include/grub/fs.h: Likewise.
5258 * include/grub/i386/at_keyboard.h: Likewise.
5259 * include/grub/i386/pc/memory.h: Likewise.
5260 * include/grub/i386/pc/vbe.h: Likewise.
5261 * include/grub/i386/pci.h: Likewise.
5262 * include/grub/i386/tsc.h: Likewise.
5263 * include/grub/ieee1275/ieee1275.h: Likewise.
5264 * include/grub/ntfs.h: Likewise.
5265 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
5266 * include/grub/sparc64/libgcc.h: Likewise.
5267 * include/grub/symbol.h: Likewise.
5268 * include/grub/types.h: Likewise.
5269 * include/multiboot2.h: Likewise.
5270 * io/gzio.c: Likewise.
5271 * kern/device.c: Likewise.
5272 * kern/disk.c: Likewise.
5273 * kern/efi/efi.c: Likewise.
5274 * kern/efi/mm.c: Likewise.
5275 * kern/elf.c: Likewise.
5276 * kern/file.c: Likewise.
5277 * kern/i386/dl.c: Likewise.
5278 * kern/i386/pc/init.c: Likewise.
5279 * kern/i386/pc/startup.S: Likewise.
5280 * kern/ieee1275/ieee1275.c: Likewise.
5281 * kern/ieee1275/init.c: Likewise.
5282 * kern/main.c: Likewise.
5283 * kern/mm.c: Likewise.
5284 * kern/powerpc/dl.c: Likewise.
5285 * kern/sparc64/dl.c: Likewise.
5286 * kern/x86_64/dl.c: Likewise.
5287 * lib/hexdump.c: Likewise.
5288 * loader/efi/appleloader.c: Likewise.
5289 * loader/i386/ieee1275/linux.c: Likewise.
5290 * loader/i386/pc/chainloader.c: Likewise.
5291 * loader/i386/pc/linux.c: Likewise.
5292 * loader/i386/pc/multiboot2.c: Likewise.
5293 * loader/ieee1275/multiboot2.c: Likewise.
5294 * loader/multiboot2.c: Likewise.
5295 * loader/multiboot_loader.c: Likewise.
5296 * loader/powerpc/ieee1275/linux.c: Likewise.
5297 * normal/completion.c: Likewise.
5298 * normal/menu_entry.c: Likewise.
5299 * partmap/apple.c: Likewise.
5300 * util/grub.d/10_hurd.in: Likewise.
5301 * util/hostfs.c: Likewise.
5302 * video/readers/png.c: Likewise.
5303
5304 2010-01-03 Colin Watson <cjwatson@ubuntu.com>
5305
5306 * include/grub/misc.h (GNUC_PREREQ): New macro.
5307 (ATTRIBUTE_ERROR): New macro.
5308 * include/grub/list.h (grub_bad_type_cast_real): Use
5309 ATTRIBUTE_ERROR.
5310
5311 2010-01-03 Carles Pina i Estany <carles@pina.cat>
5312
5313 * normal/menu_text.c (print_message): Change messages.
5314
5315 2010-01-03 Carles Pina i Estany <carles@pina.cat>
5316
5317 * normal/menu_entry.c (store_completion): Gettextizze.
5318
5319 2010-01-03 Carles Pina i Estany <carles@pina.cat>
5320
5321 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
5322
5323 2010-01-03 Carles Pina i Estany <carles@pina.cat>
5324
5325 * po/POTFILES: Sort correctly.
5326
5327 2010-01-03 Carles Pina i Estany <carles@pina.cat>
5328
5329 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
5330 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
5331 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
5332 full stop.
5333 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
5334 summary. Gettextizze the strings.
5335 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
5336 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
5337 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
5338 full stop.
5339 (GRUB_MOD_INIT): Remove command name from summary.
5340 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
5341 summary.
5342 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
5343 * term/i386/pc/serial.c (options): Add full stops.
5344 (GRUB_MOD_INIT): Remove command name from the summary.
5345
5346 2010-01-03 Carles Pina i Estany <carles@pina.cat>
5347
5348 * commands/acpi.c: Gettextizze help strings and/or options. Include
5349 `grub/i18n.h' if needed.
5350 * commands/blocklist.c: Likewise.
5351 * commands/boot.c: Likewise.
5352 * commands/cat.c: Likewise.
5353 * commands/cmp.c: Likewise.
5354 * commands/configfile.c: Likewise.
5355 * commands/crc.c: Likewise.
5356 * commands/date.c: Likewise.
5357 * commands/echo.c: Likewise.
5358 * commands/efi/fixvideo.c: Likewise.
5359 * commands/efi/loadbios.c: Likewise.
5360 * commands/gptsync.c: Likewise.
5361 * commands/halt.c: Likewise.
5362 * commands/handler.c: Likewise.
5363 * commands/hdparm.c: Likewise.
5364 * commands/hexdump.c: Likewise.
5365 * commands/i386/cpuid.c: Likewise.
5366 * commands/i386/pc/drivemap.c: Likewise.
5367 * commands/i386/pc/halt.c: Likewise.
5368 * commands/i386/pc/pxecmd.c: Likewise.
5369 * commands/i386/pc/vbeinfo.c: Likewise.
5370 * commands/i386/pc/vbetest.c: Likewise.
5371 * commands/ieee1275/suspend.c: Likewise.
5372 * commands/keystatus.c: Likewise.
5373 * commands/loadenv.c: Likewise.
5374 * commands/ls.c: Likewise.
5375 * commands/lsmmap.c: Likewise.
5376 * commands/lspci.c: Likewise.
5377 * commands/memrw.c: Likewise.
5378 * commands/minicmd.c: Likewise.
5379 * commands/parttool.c: Likewise.
5380 * commands/password.c: Likewise.
5381 * commands/probe.c: Likewise.
5382 * commands/read.c: Likewise.
5383 * commands/reboot.c: Likewise.
5384 * commands/search.c: Likewise.
5385 * commands/sleep.c: Likewise.
5386 * commands/test.c: Likewise.
5387 * commands/true.c: Likewise.
5388 * commands/usbtest.c: Likewise.
5389 * commands/videotest.c: Likewise.
5390 * commands/xnu_uuid.c: Likewise.
5391 * disk/loopback.c: Likewise.
5392 * hello/hello.c: Likewise.
5393 * loader/i386/bsd.c: Likewise.
5394 * term/i386/pc/serial.c: Likewise.
5395 * po/POTFILES: Add new files.
5396
5397 2010-01-02 Colin Watson <cjwatson@ubuntu.com>
5398
5399 * term/i386/pc/at_keyboard.c
5400 (keyboard_controller_wait_untill_ready): Rename to ...
5401 (keyboard_controller_wait_until_ready): ... this. Update all users.
5402
5403 2010-01-01 Carles Pina i Estany <carles@pina.cat>
5404
5405 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
5406 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
5407 string using string width.
5408 * normal/menu_text.c (grub_print_message_indented): Use
5409 grub_print_spaces and not print_spaces.
5410 (print_timeout): Likewise.
5411 (print_spaces): Move to...
5412 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
5413
5414 2010-01-01 Robert Millan <rmh.grub@aybabtu.com>
5415
5416 Import from Gnulib.
5417
5418 * gnulib/getdelim.c: New file.
5419 * gnulib/getline.c: Likewise.
5420
5421 2009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
5422
5423 * include/grub/list.h (grub_assert_fail): Removed.
5424 (grub_bad_type_cast_real): New function.
5425 (grub_bad_type_cast): New macro.
5426 (GRUB_AS_LIST): Use grub_bad_type_cast.
5427 (GRUB_AS_LIST_P): Likewise.
5428 (GRUB_AS_NAMED_LIST): Likewise.
5429 (GRUB_AS_NAMED_LIST_P): Likewise.
5430 (GRUB_AS_PRIO_LIST): Likewise.
5431 (GRUB_AS_PRIO_LIST_P): Likewise.
5432 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
5433
5434 2009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
5435
5436 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
5437 Fix syntax error.
5438
5439 2009-12-29 Robert Millan <rmh.grub@aybabtu.com>
5440
5441 * configure.ac: Check for TARGET_CFLAGS initialization before we
5442 initialize it ourselves (sigh).
5443 Move a few modifications to TARGET_CFLAGS to be unconditional
5444 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
5445 eh_frame)
5446
5447 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
5448 * term/i386/pc/at_keyboard.c
5449 (keyboard_controller_wait_untill_ready): Likewise.
5450 (keyboard_controller_led): Rename `led_status' paramter to avoid
5451 name conflict.
5452
5453 2009-12-28 Carles Pina i Estany <carles@pina.cat>
5454
5455 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
5456 quotes.
5457
5458 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
5459
5460 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
5461
5462 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
5463
5464 * normal/menu_text.c (grub_print_message_indented): Prevent
5465 past-the-end-of-array dereference.
5466
5467 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
5468
5469 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
5470 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
5471
5472 2009-12-27 Carles Pina i Estany <carles@pina.cat>
5473
5474 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
5475 * normal/main.c (grub_normal_read_line): Remove a space from the
5476 default prompt.
5477
5478 2009-12-27 Carles Pina i Estany <carles@pina.cat>
5479
5480 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
5481 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
5482 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
5483 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
5484 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
5485 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
5486 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
5487
5488 2009-12-26 Carles Pina i Estany <carles@pina.cat>
5489
5490 * video/readers/jpeg.c (cmd): Declare.
5491 (grub_cmd_jpegtest): Use `grub_command_t' type.
5492 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
5493 Assign to `cmd'.
5494 (GRUB_MOD_FINI): Use `cmd' to unregister.
5495 * video/readers/png.c (cmd): Declare.
5496 (grub_cmd_pngtest): Use `grub_command_t' type.
5497 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
5498 Assign to `cmd'.
5499 (GRUB_MOD_FINI): Use `cmd' to unregister.
5500 * video/readers/tga.c (cmd): Declare.
5501 (grub_cmd_tgatest): Use `grub_command_t' type.
5502 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
5503 Assign to `cmd'.
5504 (GRUB_MOD_FINI): Use `cmd' to unregister.
5505
5506 2009-12-26 Carles Pina i Estany <carles@pina.cat>
5507
5508 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
5509 stops.
5510 * kern/corecmd.c (grub_register_core_commands): Likewise.
5511 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
5512 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
5513 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
5514 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
5515 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
5516 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
5517 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
5518 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
5519 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
5520 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
5521 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
5522 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
5523 * normal/handler.c (insert_handler): Likewise.
5524 * normal/main.c (GRUB_MOD_INIT): Likewise.
5525 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
5526
5527 2009-12-26 Carles Pina i Estany <carles@pina.cat>
5528
5529 * commands/help.c (grub_cmd_help): Print the command name before the
5530 summary.
5531 (GRUB_MOD_INIT): Remove command name from the summary.
5532 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
5533 string as summary.
5534 * lib/arg.c (find_long): Print the command name before the summary.
5535 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
5536 summary.
5537 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
5538 * commands/cat.c (GRUB_MOD_INIT): Likewise.
5539 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
5540 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
5541 * commands/crc.c (GRUB_MOD_INIT): Likewise.
5542 * commands/date.c (GRUB_MOD_INIT): Likewise.
5543 * commands/echo.c (GRUB_MOD_INIT): Likewise.
5544 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
5545 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
5546 * commands/handler.c (GRUB_MOD_INIT): Likewise.
5547 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
5548 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
5549 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
5550 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
5551 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
5552 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
5553 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
5554 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
5555 * commands/ls.c (GRUB_MOD_INIT): Likewise.
5556 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
5557 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
5558 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
5559 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
5560 * commands/password.c (GRUB_MOD_INIT): Likewise.
5561 * commands/probe.c (GRUB_MOD_INIT): Likewise.
5562 * commands/read.c (GRUB_MOD_INIT): Likewise.
5563 * commands/search.c (GRUB_MOD_INIT): Likewise.
5564 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
5565 * commands/test.c (GRUB_MOD_INIT): Likewise.
5566 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
5567 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
5568 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
5569 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
5570 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
5571 * lib/arg.c (GRUB_MOD_INIT): Likewise.
5572 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
5573 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
5574 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
5575 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
5576 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
5577 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
5578 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
5579 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
5580
5581 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
5582
5583 Use search command for preliminar UUID search.
5584
5585 * commands/search.c: Split into ...
5586 * commands/search_wrap.c: ...this
5587 * commands/search.c: ...and this.
5588 * commands/search_file.c: New file.
5589 * commands/search_label.c: New file.
5590 * commands/search_uuid.c: New file.
5591 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
5592 Add commands/search_wrap.c, commands/search_file.c,
5593 commands/search_label.c and commands/search_uuid.c.
5594 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
5595 (search_mod_SOURCES): Set to commands/search_wrap.c.
5596 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
5597 search_label.mod.
5598 (search_fs_file_mod_SOURCES): New variable.
5599 (search_fs_file_mod_CFLAGS): Likewise.
5600 (search_fs_file_mod_LDFLAGS): Likewise.
5601 (search_label_mod_SOURCES): Likewise.
5602 (search_label_mod_CFLAGS): Likewise.
5603 (search_label_mod_LDFLAGS): Likewise.
5604 (search_fs_uuid_mod_SOURCES): New variable.
5605 (search_fs_uuid_mod_CFLAGS): Likewise.
5606 (search_fs_uuid_mod_LDFLAGS): Likewise.
5607 (fs_file_mod_SOURCES): Removed.
5608 (fs_file_mod_CFLAGS): Likewise.
5609 (fs_file_mod_LDFLAGS): Likewise.
5610 (fs_uuid_mod_SOURCES): Removed.
5611 (fs_uuid_mod_CFLAGS): Likewise.
5612 (fs_uuid_mod_LDFLAGS): Likewise.
5613 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
5614 Set to util/grub-install.in.
5615 * disk/fs_file.c: Removed.
5616 * disk/fs_uuid.c: Likewise.
5617 * include/grub/search.h: New file.
5618 * util/grub-install.in: Handle sparc64.
5619 Create and use load.cfg.
5620 * util/sparc64/ieee1275/grub-install.in: Removed.
5621
5622 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
5623
5624 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
5625 Ignore return status if CF is cleared.
5626 (grub_biosdisk_get_diskinfo_standard): Likewise.
5627
5628 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
5629
5630 * term/i386/pc/at_keyboard.c
5631 (keyboard_controller_wait_untill_ready): New function.
5632 (grub_keyboard_controller_write, grub_keyboard_controller_read)
5633 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
5634 for keyboard polling, rather than duplicate the same loop. This
5635 saves a few bytes in code size.
5636
5637 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
5638
5639 Support for (pxe[:server[:gateway]]) syntax and
5640 use environment variable for PXE.
5641
5642 * commands/i386/pc/pxecmd.c (options): Removed.
5643 (print_ip): Removed.
5644 (grub_cmd_pxe): Removed
5645 (grub_cmd_pxe_unload): New function.
5646 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
5647 (grub_pxe_your_ip): Made static.
5648 (grub_pxe_default_server_ip): Likewise.
5649 (grub_pxe_default_gateway_ip): Likewise.
5650 (grub_pxe_blksize): Likewise.
5651 (parse_ip): New function.
5652 (grub_pxe_open): Support server and gateway specification.
5653 (grub_pxe_close): Free disk->data.
5654 (grub_pxefs_open): Use disk->data.
5655 (grub_pxefs_read): Likewise.
5656 (grub_env_write_readonly): New function.
5657 (set_mac_env): Likewise.
5658 (set_env_limn_ro): Likewise.
5659 (parse_dhcp_vendor): Likewise.
5660 (grub_pxe_detect): Set the environment variables.
5661 (set_ip_env): New function.
5662 (write_ip_env): Likewise.
5663 (grub_env_write_pxe_default_server): Likewise.
5664 (grub_env_write_pxe_default_gateway): Likewise.
5665 (grub_env_write_pxe_blocksize): Likewise.
5666 (GRUB_MOD_INIT(pxe)): Set environment variables.
5667 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
5668 (grub_pxe_mac_addr_t): ... this. All users updated.
5669 (grub_pxe_your_ip): Removed.
5670 (grub_pxe_server_ip): Likewise.
5671 (grub_pxe_gateway_ip): Likewise.
5672 (grub_pxe_blksize): Likewise.
5673
5674 2009-12-25 Carles Pina i Estany <carles@pina.cat>
5675
5676 * commands/help.c: Include `<grub/i18n.h>'.
5677 (grub_cmd_help): Gettextizze.
5678 (GRUB_MOD_INIT): Likewise.
5679 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
5680 (GRUB_MOD_INIT): Gettextizze.
5681 * commands/search.c: Include `<grub/i18n.h>'.
5682 (options): Gettextizze.
5683 (GRUB_MOD_INIT): Gettextizze.
5684 * lib/arg.c: Include `<grub/i18n.h>'.
5685 (help_options): Gettextizze.
5686 (find_long): Likewise.
5687 (grub_arg_show_help): Likewise.
5688 * normal/dyncmd.c: Include `<grub/i18n.h>'.
5689 (read_command_list): Gettextizze.
5690 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
5691 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
5692
5693 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
5694
5695 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
5696 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
5697 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
5698 (led_status): New variable.
5699 (keyboard_controller_led): New function.
5700 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
5701 update led status for caps lock, num lock and scroll lock.
5702
5703 2009-12-25 Felix Zielcke <fzielcke@z-51.de>
5704
5705 * util/hostdisk.c (open_device): Fix a comment.
5706
5707 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
5708
5709 * util/grub-install.in (host_os): New variable.
5710 * util/i386/efi/grub-install.in (host_os): Likewise.
5711
5712 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
5713
5714 * util/mkisofs/write.c (padblock_write): Abort when given an
5715 excedingly large embed image, instead of silently truncating it.
5716
5717 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
5718
5719 * include/multiboot.h: Indentation fixes.
5720
5721 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
5722
5723 * include/multiboot.h (struct multiboot_aout_symbol_table)
5724 (struct multiboot_elf_section_header_table): New structure
5725 declarations (stolen from GRUB Legacy).
5726 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
5727 table information.
5728
5729 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
5730 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
5731 type aliases.
5732
5733 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
5734
5735 * include/multiboot.h: Make comments src2texi-friendly.
5736
5737 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
5738
5739 For consistency with [multiboot]/docs/boot.S.
5740
5741 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
5742 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
5743 (MULTIBOOT_MAGIC2): Rename from this ...
5744 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
5745
5746 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
5747
5748 * include/multiboot.h: Remove `<grub/types.h>'.
5749 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
5750 types. Update all users.
5751
5752 2009-12-25 Carles Pina i Estany <carles@pina.cat>
5753
5754 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
5755 `couldn't' and `can not' by `cannot'.
5756 * commands/i386/pc/drivemap.c: Likewise.
5757 * disk/ata.c: Likewise.
5758 * disk/ieee1275/nand.c: Likewise.
5759 * fs/affs.c: Likewise.
5760 * fs/fat.c: Likewise.
5761 * fs/hfs.c: Likewise.
5762 * fs/hfsplus.c: Likewise.
5763 * fs/iso9660.c: Likewise.
5764 * fs/jfs.c: Likewise.
5765 * fs/minix.c: Likewise.
5766 * fs/reiserfs.c: Likewise.
5767 * fs/sfs.c: Likewise.
5768 * fs/udf.c: Likewise.
5769 * fs/ufs.c: Likewise.
5770 * fs/xfs.c: Likewise.
5771 * loader/powerpc/ieee1275/linux.c: Likewise.
5772 * loader/sparc64/ieee1275/linux.c: Likewise.
5773 * util/grub-probe.c: Likewise.
5774 * util/misc.c: Likewise.
5775
5776 2009-12-24 Carles Pina i Estany <carles@pina.cat>
5777
5778 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
5779 grub_errno calls.
5780 * commands/acpi.c: Likewise.
5781 * commands/blocklist.c: Likewise.
5782 * commands/efi/loadbios.c: Likewise.
5783 * commands/i386/pc/drivemap.c: Likewise.
5784 * commands/loadenv.c: Likewise.
5785 * commands/memrw.c: Likewise.
5786 * commands/password.c: Likewise.
5787 * commands/videotest.c: Likewise.
5788 * disk/ata.c: Likewise.
5789 * disk/ata_pthru.c: Likewise.
5790 * disk/dmraid_nvidia.c: Likewise.
5791 * disk/ieee1275/nand.c: Likewise.
5792 * disk/ieee1275/ofdisk.c: Likewise.
5793 * disk/loopback.c: Likewise.
5794 * disk/lvm.c: Likewise.
5795 * disk/mdraid_linux.c: Likewise.
5796 * disk/raid.c: Likewise.
5797 * disk/raid6_recover.c: Likewise.
5798 * disk/scsi.c: Likewise.
5799 * efiemu/main.c: Likewise.
5800 * efiemu/mm.c: Likewise.
5801 * efiemu/pnvram.c: Likewise.
5802 * efiemu/symbols.c: Likewise.
5803 * font/font.c: Likewise.
5804 * fs/cpio.c: Likewise.
5805 * fs/hfsplus.c: Likewise.
5806 * fs/iso9660.c: Likewise.
5807 * fs/jfs.c: Likewise.
5808 * fs/minix.c: Likewise.
5809 * fs/ntfs.c: Likewise.
5810 * fs/ntfscomp.c: Likewise.
5811 * fs/reiserfs.c: Likewise.
5812 * fs/ufs.c: Likewise.
5813 * fs/xfs.c: Likewise.
5814 * gettext/gettext.c: Likewise.
5815 * include/grub/auth.h: Likewise.
5816 * kern/elf.c: Likewise.
5817 * kern/file.c: Likewise.
5818 * kern/ieee1275/init.c: Likewise.
5819 * kern/ieee1275/mmap.c: Likewise.
5820 * kern/ieee1275/openfw.c: Likewise.
5821 * kern/powerpc/dl.c: Likewise.
5822 * kern/sparc64/dl.c: Likewise.
5823 * lib/arg.c: Likewise.
5824 * loader/i386/bsd.c: Likewise.
5825 * loader/i386/bsdXX.c: Likewise.
5826 * loader/i386/efi/linux.c: Likewise.
5827 * loader/i386/efi/xnu.c: Likewise.
5828 * loader/i386/ieee1275/linux.c: Likewise.
5829 * loader/i386/linux.c: Likewise.
5830 * loader/i386/multiboot.c: Likewise.
5831 * loader/i386/pc/linux.c: Likewise.
5832 * loader/i386/pc/multiboot2.c: Likewise.
5833 * loader/i386/xnu.c: Likewise.
5834 * loader/ieee1275/multiboot2.c: Likewise.
5835 * loader/macho.c: Likewise.
5836 * loader/machoXX.c: Likewise.
5837 * loader/multiboot2.c: Likewise.
5838 * loader/multiboot_loader.c: Likewise.
5839 * loader/powerpc/ieee1275/linux.c: Likewise.
5840 * loader/sparc64/ieee1275/linux.c: Likewise.
5841 * loader/xnu.c: Likewise.
5842 * loader/xnu_resume.c: Likewise.
5843 * mmap/i386/pc/mmap.c: Likewise.
5844 * normal/menu_viewer.c: Likewise.
5845 * partmap/acorn.c: Likewise.
5846 * partmap/amiga.c: Likewise.
5847 * partmap/apple.c: Likewise.
5848 * script/lexer.c: Likewise.
5849 * term/gfxterm.c: Likewise.
5850 * term/i386/pc/serial.c: Likewise.
5851 * term/i386/pc/vga.c: Likewise.
5852 * term/ieee1275/ofconsole.c: Likewise.
5853 * term/terminfo.c: Likewise.
5854 * video/bitmap.c: Likewise.
5855 * video/efi_gop.c: Likewise.
5856 * video/efi_uga.c: Likewise.
5857 * video/fb/video_fb.c: Likewise.
5858 * video/i386/pc/vbe.c: Likewise.
5859 * video/readers/tga.c: Likewise.
5860 * video/video.c: Likewise.
5861
5862 2009-12-23 Felix Zielcke <fzielcke@z-51.de>
5863
5864 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
5865 * commands/lspci.c: Likewise.
5866 * commands/probe.c: Likewise.
5867 * commands/xnu_uuid.c: Likewise.
5868 * conf/i386-coreboot.rmk: Likewise.
5869 * conf/i386-efi.rmk: Likewise.
5870 * conf/i386-ieee1275.rmk: Likewise.
5871 * conf/i386-pc.rmk: Likewise.
5872 * conf/powerpc-ieee1275.rmk: Likewise.
5873 * conf/sparc64-ieee1275.rmk: Likewise.
5874 * conf/x86_64-efi.rmk: Likewise.
5875 * fs/i386/pc/pxe.c: Likewise.
5876 * gettext/gettext.c: Likewise.
5877 * include/grub/efi/graphics_output.h: Likewise.
5878 * include/grub/i386/pc/memory.h: Likewise.
5879 * kern/env.c: Likewise.
5880 * kern/i386/qemu/startup.S: Likewise.
5881 * lib/i386/pc/biosnum.c: Likewise.
5882 * lib/i386/relocator.c: Likewise.
5883 * lib/i386/relocator_asm.S: Likewise.
5884 * lib/relocator.c: Likewise.
5885 * loader/i386/bsd.c: Likewise.
5886 * loader/i386/multiboot.c: Likewise.
5887 * loader/i386/pc/chainloader.c: Likewise.
5888 * loader/i386/xnu.c: Likewise.
5889 * loader/xnu.c: Likewise.
5890 * normal/main.c: Likewise.
5891 * normal/menu_text.c: Likewise.
5892 * util/getroot.c: Likewise.
5893 * util/grub-mkconfig_lib.in: Likewise.
5894 * util/grub.d/00_header.in: Likewise.
5895 * util/i386/pc/grub-mkimage.c: Likewise.
5896 * util/mkisofs/eltorito.c: Likewise.
5897 * util/mkisofs/exclude.h: Likewise.
5898 * util/mkisofs/hash.c: Likewise.
5899 * util/mkisofs/iso9660.h: Likewise.
5900 * util/mkisofs/joliet.c: Likewise.
5901 * util/mkisofs/mkisofs.c: Likewise.
5902 * util/mkisofs/mkisofs.h: Likewise.
5903 * util/mkisofs/multi.c: Likewise.
5904 * util/mkisofs/name.c: Likewise.
5905 * util/mkisofs/rock.c: Likewise.
5906 * util/mkisofs/tree.c: Likewise.
5907 * util/mkisofs/write.c: Likewise.
5908 * video/efi_gop.c: Likewise.
5909
5910 2009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
5911
5912 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
5913 size counting.
5914
5915 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
5916
5917 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
5918 * genmk.rb (class SCRIPT): Modify the target file instead of source.
5919
5920 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
5921
5922 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
5923 (GRUB_MOD_INIT(memrw)): Update help line.
5924
5925 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
5926
5927 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
5928 Use grub_extcmd_t. All users updated.
5929 (options): New variable.
5930 (grub_cmd_read): Restructure for readability. Support "-v" option.
5931 (grub_cmd_write): Restructure for readability.
5932
5933 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
5934
5935 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
5936
5937 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
5938
5939 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
5940 with the actual contents of the correspondending make variable.
5941 * util/grub-mkrescue.in (pkglib_DATA): New variable.
5942 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
5943 specifying `*.lst' and `efiemu??.o'
5944
5945 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
5946
5947 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
5948 after function name.
5949 Noticed by Rene Engelhard <rene@debian.org>.
5950
5951 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
5952
5953 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
5954 (options): New variable.
5955 (iospace): Likewise.
5956 (grub_lspci_iter): List IO spaces if "-i" was given.
5957 (grub_cmd_lspci): Parse options.
5958 (GRUB_MOD_INIT(lspci)): Use extcmd.
5959 (GRUB_MOD_FINI(lspci)): Likewise.
5960
5961 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
5962
5963 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
5964 `function' keyword.
5965 Patch by Tony Mancill <tmancill@debian.org>.
5966
5967 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
5968
5969 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
5970 (grub_uhci_portstatus): Likewise.
5971 (grub_uhci_portstatus): Add necessary delay.
5972 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
5973
5974 2009-12-21 Carles Pina i Estany <carles@pina.cat>
5975
5976 * commands/acpi.c (options): Fix capitalizations and/or full stops.
5977 (GRUB_MOD_INIT): Likewise.
5978 * commands/boot.c (GRUB_MOD_INIT): Likewise.
5979 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
5980 * commands/echo.c (options): Fix capitalizations and/or full stops.
5981 * commands/efi/loadbios.c (enable_rom_area): Likewise.
5982 (enable_rom_area): Likewise.
5983 (GRUB_MOD_INIT): Likewise.
5984 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
5985 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
5986 * commands/handler.c (GRUB_MOD_INIT): Likewise.
5987 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
5988 * commands/hexdump.c (options): Likewise.
5989 * commands/i386/cpuid.c (options): Likewise.
5990 (GRUB_MOD_INIT): Likewise.
5991 * commands/i386/pc/drivemap.c (options): Likewise.
5992 (GRUB_MOD_INIT): Likewise.
5993 * commands/i386/pc/halt (options): Likewise.
5994 (GRUB_MOD_INIT): Likewise.
5995 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
5996 * commands/i386/pc/pxecmd.c (options): Likewise.
5997 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
5998 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
5999 * commands/keystatus.c (options): Likewise.
6000 (GRUB_MOD_INIT): Likewise.
6001 * commands/loadenv.c (options): Likewise.
6002 * commands/ls.c (options): Likewise.
6003 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
6004 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
6005 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
6006 * commands/parttool.c (helpmsg): Likewise.
6007 * commands/probe.c (options): Likewise.
6008 * commands/read.c (GRUB_MOD_INIT): Likewise.
6009 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
6010 * commands/search.c (options): Likewise.
6011 * commands/sleep.c (options): Likewise.
6012 * commands/test.c (GRUB_MOD_INIT): Likewise.
6013 * commands/true.c (GRUB_MOD_INIT): Likewise.
6014 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
6015 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
6016 * lib/arg.c (help_options): Likewise.
6017 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
6018 `$(XGETTEXT)'.
6019 * po/POTFILES: Add `commands/loadenv.c'.
6020
6021 2009-12-21 Felix Zielcke <fzielcke@z-51.de>
6022
6023 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
6024 instead of specifying them explicit.
6025
6026 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
6027
6028 * NEWS: Add grub-probe support for GNU/Hurd.
6029
6030 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
6031
6032 * NEWS: gettext was added after 1.97.
6033
6034 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
6035
6036 * util/mkisofs/msdos_partition.h: New file (based on
6037 include/grub/msdos_partition.h).
6038 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
6039 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
6040 (ld_options, main): Recognize --protective-msdos-label.
6041 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
6042 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
6043 (padblock_write): If `use_protective_msdos_label' is set, patch a
6044 protective DOS-style label in the output image.
6045
6046 * util/grub-mkrescue.in: Use --protective-msdos-label.
6047
6048 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
6049
6050 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
6051 boot.
6052
6053 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
6054
6055 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
6056 variables.
6057 (ld_options, main): Recognize `--embedded-boot'.
6058 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
6059 declarations.
6060 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
6061 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
6062 (padblock_write): Likewise. Rewrite to support embedded boot image.
6063
6064 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
6065 for BIOS-based disk boot instead of only ElTorito.
6066
6067 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
6068
6069 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
6070 build (not needed for bootstrap).
6071
6072 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
6073
6074 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
6075 from i386-pc build (not needed for bootstrap).
6076 Rewrite a pair of strings.
6077
6078 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
6079
6080 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
6081
6082 2009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
6083
6084 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
6085
6086 2009-12-21 Andreas Born <futur.andy@googlemail.com>
6087
6088 * kern/env.c (grub_env_context_open): Mark exported variable for
6089 reexport.
6090
6091 2009-12-21 Andreas Born <futur.andy@googlemail.com>
6092
6093 * kern/env.c (grub_env_export): Create nonexistent variables before
6094 exporting.
6095
6096 2009-12-20 Carles Pina i Estany <carles@pina.cat>
6097
6098 * include/grub/auth.h: Include `<grub/i18n.h>'.
6099 (GRUB_GET_PASSWORD): Gettextizze string.
6100 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
6101 menu_text.c.
6102 (grub_utf8_to_ucs4_alloc): Fix indentation.
6103 (grub_print_ucs4): Likewise.
6104 (grub_getstringwidth): Likewise.
6105 (print_message_indented): New declaration.
6106 * normal/auth.c: Include `<grub/i18n.h>'.
6107 (grub_auth_check_authentication): Gettexttize string.
6108 * normal/cmdline.c: Include `<grub/i18n.h>'.
6109 (grub_cmdline_get): Gettextizze.
6110 * normal/color.c: Include `<grub/i18n.h>'.
6111 (grub_parse_color_name_pair): Gettexttize strings.
6112 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
6113 string (use `print_message_indented').
6114 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
6115 `include/grub/normal.h'.
6116 (print_message_indented): Renamed to ...
6117 (grub_print_message_indented): ... this. Remove `static' qualifer (now
6118 used in normal/main.c).
6119 (print_message): Use `grub_print_message_indented' instead of
6120 `print_message_indented'.
6121 (print_timeout): Likewise.
6122 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
6123 (grub_normal_print_device_info): Gettexttize strings.
6124 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
6125
6126 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
6127
6128 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
6129 of arguments. Return number of tokens and not arguments. All users
6130 updated.
6131
6132 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
6133
6134 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
6135 non-MSDOS paritions.
6136
6137 2009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
6138
6139 * include/grub/types.h (UNUSED): Removed since it conflicts with
6140 NetBSD headers. All users changed to direct __attribute__ ((unused)).
6141 Reported by Grégoire Sutre.
6142
6143 2009-12-19 Carles Pina i Estany <carles@pina.cat>
6144
6145 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
6146 (grub_print_ucs4_alloc): Likewise.
6147 (grub_getstringwidth): Likewise.
6148 * normal/main.c (grub_normal_init_page): Gettextize version string.
6149 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
6150 (getstringwidth): Renamed to ...
6151 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
6152 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
6153 (grub_print_ucs4): Remove `static' qualifer (now used in
6154 normal/main.c).
6155 * po/POTFILES: Add normal/main.c.
6156
6157 2009-12-19 Carles Pina i Estany <carles@pina.cat>
6158
6159 * normal/menu_text.c (STANDARD_MARGIN): New macro.
6160 (print_message_indented): Add `margin_left' and `margin_right'
6161 parameters.
6162 (print_message): Update `print_message_indented' calls. Adds '\n' to the
6163 strings.
6164 (print_timeout): Use `print_message_indented' to print the message.
6165 Deletes `second_stage' parameter.
6166 (run_menu): Update `print_timeout' calls.
6167
6168 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
6169
6170 Fix console palette on OpenFirmware.
6171
6172 * term/ieee1275/ofconsole.c (MAX): Removed.
6173 (colors): Redone based on VGA palette.
6174 (grub_ofconsole_setcolor): Discard brightness bit since only 8
6175 colors are supported.
6176 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
6177
6178 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
6179
6180 Fix potential EfiEmu double prepare.
6181
6182 * efiemu/main.c (prepared): New variable
6183 (grub_efiemu_unload): Set prepare to '0'.
6184 (grub_efiemu_prepare): Return if already prepared. Set prepared.
6185
6186 set_virtual_address_map support.
6187
6188 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
6189 prototype.
6190 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
6191 prototype.
6192 (grub_efiemu_crc32): Likewise.
6193 (grub_efiemu_crc64): Likewise.
6194 (grub_efiemu_set_virtual_address_map): Likewise.
6195 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
6196 New definition.
6197 (grub_autoefi_set_virtual_address_map): Likewise.
6198 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
6199 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
6200 Restructure flow to accomodate it.
6201 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
6202 (grub_efiemu_crc): Recompute CRC32.
6203 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
6204 (efiemu_ptv_relocated): ... this. Made global. All users updated.
6205 * efiemu/symbols.c (relocated_handle): New variable.
6206 (grub_efiemu_free_syms): Free relocated_handle.
6207 (grub_efiemu_alloc_syms): Allocate relocated_handle.
6208 (grub_efiemu_write_sym_markers): New function.
6209 (grub_efiemu_set_virtual_address_map): Likewise.
6210
6211 Newer XNU parameters.
6212
6213 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
6214 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
6215 (grub_xnu_fill_devicetree): New prototype.
6216 (grub_xnu_heap_real_start): New variable.
6217 * loader/xnu.c (get_name_ptr): New function.
6218 (grub_xnu_load_driver): Fill namelen and name.
6219
6220 64-bit xnu support.
6221
6222 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
6223 and 'loader/macho64.c'.
6224 * conf/i386-pc.rmk: Likewise.
6225 * conf/x86_64-efi.rmk: Likewise.
6226 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
6227 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
6228 * include/grub/macho.h (grub_macho_segment64): New structure.
6229 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
6230 (grub_macho_size32): ... to this.
6231 (grub_macho32_get_entry_point): Renamed from ...
6232 (grub_macho_get_entry_point32): ... to this.
6233 (grub_macho_contains_macho64): New prototype.
6234 (grub_macho_size64): Likewise.
6235 (grub_macho_get_entry_point64): Likewise.
6236 (grub_macho32_load): Renamed from ...
6237 (grub_macho_load32): ... to this.
6238 (grub_macho32_filesize): Renamed from ...
6239 (grub_macho_filesize32): ... to this.
6240 (grub_macho32_readfile): Renamed from ...
6241 (grub_macho_readfile32): ... to this.
6242 (grub_macho_filesize64): New prototype.
6243 (grub_macho_readfile64): Likewise.
6244 (grub_macho_parse32): Likewise.
6245 (grub_macho_parse64): Likewise.
6246 * loader/macho.c: Split into ...
6247 * loader/machoXX.c: ... and this. Replace 32 with XX.
6248 * loader/macho32.c: New file.
6249 * loader/macho64.c: Likewise.
6250 * loader/xnu.c (grub_xnu_is_64bit): New variable.
6251 (grub_cmd_xnu_kernel): Make 32-bit only.
6252 (grub_cmd_xnu_kernel64): New function.
6253 (grub_xnu_load_driver): Support Mach-O 64.
6254 (grub_cmd_xnu_mkext): Likewise.
6255 * util/grub.d/30_os-prober.in (osx_entry): New function.
6256 Generate entries for 64-bit boot too.
6257
6258 Eliminate ad-hoc tree format in XNU and EfiEmu.
6259
6260 * efiemu/main.c (grub_efiemu_prepare): Update comment.
6261 * efiemu/pnvram.c: Rewritten to use environment variables.
6262 All users updated.
6263
6264 Inline utf16_to_utf8.
6265
6266 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
6267 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
6268 All users updated.
6269 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
6270
6271 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
6272 * commands/usbtest.c (grub_usb_get_string): ... move here.
6273 (usb_print_str): Fix error handling.
6274 * include/grub/usb.h (grub_usb_get_string): Remove.
6275
6276 UTF-8 to UTF-16 transformation.
6277
6278 * conf/common.rmk (pkglib_MODULES): Add charset.mod
6279 (charset_mod_SOURCES): New variable.
6280 (charset_mod_CFLAGS): Likewise.
6281 (charset_mod_LDFLAGS): Likewise.
6282 * include/grub/utf.h: New file.
6283 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
6284
6285 Support for device properties.
6286
6287 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
6288 (grub_xnu_devprop_device_header): Likewise.
6289 (grub_xnu_devprop_device_descriptor): Likewise.
6290 (grub_xnu_devprop_add_device): New prototype.
6291 (grub_xnu_devprop_remove_device): Likewise.
6292 (grub_xnu_devprop_remove_property): Likewise.
6293 (grub_xnu_devprop_add_property_utf8): Likewise.
6294 (grub_xnu_devprop_add_property_utf16): Likewise.
6295 (grub_cpu_xnu_init): Likewise.
6296 (grub_cpu_xnu_fini): Likewise.
6297 (grub_cpu_xnu_unload): Likewise.
6298 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
6299 (property_descriptor): Likewise.
6300 (devices): New variable.
6301 (grub_xnu_devprop_remove_property): New function.
6302 (grub_xnu_devprop_add_device): Likewise.
6303 (grub_xnu_devprop_remove_device): Likewise.
6304 (grub_xnu_devprop_add_property): Likewise.
6305 (grub_xnu_devprop_add_property_utf8): Likewise.
6306 (grub_xnu_devprop_add_property_utf16): Likewise.
6307 (hextoval): Likewise.
6308 (grub_cpu_xnu_fill_devprop): Likewise.
6309 (grub_cmd_devprop_load): Likewise.
6310 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
6311 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
6312 (cmd_devprop_load): New variable.
6313 (grub_cpu_xnu_init): New function.
6314 (grub_cpu_xnu_fini): Likewise.
6315 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
6316 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
6317 (grub_cmd_xnu_devtree): Likewise.
6318 (hextoval): New function.
6319 (unescape): Likewise.
6320 (grub_xnu_fill_devicetree): Likewise.
6321
6322 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
6323 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
6324
6325 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
6326
6327 Workaround for broken ATI VBE.
6328
6329 * video/i386/pc/vbe.c (last_set_mode): New variable.
6330 (grub_vbe_set_video_mode): Set 'last_set_mode'.
6331 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
6332 (grub_video_vbe_setup): Don't check for reserved flag.
6333
6334 2009-12-17 Felix Zielcke <fzielcke@z-51.de>
6335
6336 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
6337 the `find' command.
6338
6339 2009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
6340
6341 UUID support for HFS.
6342
6343 * fs/hfs.c (grub_hfs_uuid): New function.
6344 (grub_hfs_fs): New value .uuid.
6345 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
6346
6347 2009-12-14 Felix Zielcke <fzielcke@z-51.de>
6348
6349 Fix a segfault with parsing unknown long options.
6350
6351 * util/grub-mkrelpath.c (options): Zero terminate it.
6352
6353 2009-12-13 Carles Pina i Estany <carles@pina.cat>
6354
6355 * include/grub/misc.h (grub_puts): New declaration.
6356 (grub_puts_): Likewise.
6357 * kern/misc.c (grub_puts): New definition.
6358 (grub_puts_): Likewise.
6359
6360 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
6361
6362 * util/grub-probe.c (probe): Improve error message.
6363
6364 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
6365
6366 * loader/i386/multiboot_elfxx.c
6367 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
6368 initialization.
6369
6370 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
6371
6372 Relocator framework
6373
6374 * loader/i386/xnu_helper.S: Removed. All users updated.
6375 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
6376 (relocator_mod_SOURCES): New variable.
6377 (relocator_mod_CFLAGS): Likewise.
6378 (relocator_mod_LDFLAGS): Likewise.
6379 (relocator_mod_ASFLAGS): Likewise.
6380 * conf/x86_64.rmk: Likewise.
6381 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
6382 (grub_multiboot_payload_entry_offset): Likewise.
6383 (grub_multiboot_forward_relocator): Likewise.
6384 (grub_multiboot_forward_relocator_end): Likewise.
6385 (grub_multiboot_backward_relocator): Likewise.
6386 (grub_multiboot_backward_relocator_end): Likewise.
6387 (grub_multiboot_payload_eip): New variable.
6388 (grub_multiboot_payload_orig): Likewise.
6389 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
6390 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
6391 * include/grub/i386/memory.h
6392 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
6393 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
6394 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
6395 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
6396 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
6397 * include/grub/i386/relocator.h: New file.
6398 * include/grub/x86_64/relocator.h: Likewise.
6399 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
6400 (XNU_RELOCATOR): New macro.
6401 (grub_xnu_launcher_start): Remove.
6402 (grub_xnu_launcher_end): Likewise.
6403 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
6404 (grub_xnu_heap_real_start): Remove.
6405 (grub_xnu_heap_start): Change to void *. All users updated.
6406 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
6407 * lib/i386/relocator.c: New file.
6408 * lib/i386/relocator_asm.S: Likewise.
6409 * lib/i386/relocator_backward.S: Likewise.
6410 * lib/mips/relocator.c: Likewise.
6411 * lib/mips/relocator_asm.S: Likewise.
6412 * lib/relocator.c: Likewise.
6413 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
6414 (entry): Removed.
6415 (playground): Likewise.
6416 (grub_multiboot_payload_orig): New variable.
6417 (grub_multiboot_payload_dest): Likewise.
6418 (grub_multiboot_payload_size): Likewise.
6419 (grub_multiboot_payload_eip): Likewise.
6420 (grub_multiboot_payload_esp): Likewise.
6421 (grub_multiboot_boot): Use grub_relocator32_boot.
6422 (grub_multiboot_unload): Free relocators.
6423 (grub_multiboot): Setup stack. Use relocators.
6424 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
6425 (grub_multiboot_load_elfXX): Use relocators.
6426 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
6427 (grub_multiboot_payload_size): Likewise.
6428 (grub_multiboot_payload_dest): Likewise.
6429 (grub_multiboot_payload_entry_offset): Likewise.
6430 (grub_multiboot_forward_relocator): Likewise.
6431 (grub_multiboot_backward_relocator): Likewise.
6432 (grub_multiboot_real_boot): Likewise.
6433 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
6434 (grub_xnu_entry_point): Likewise.
6435 (grub_xnu_arg1): Likewise.
6436 (grub_xnu_stack): Likewise.
6437 (grub_xnu_launch): Removed.
6438 (grub_xnu_boot_resume): New function.
6439 (grub_xnu_boot): Use relocators.
6440 * loader/i386/xnu_helper.S: Removed.
6441 * loader/xnu.c (grub_xnu_heap_start): New variable.
6442 (grub_xnu_heap_size): Likewise.
6443 (grub_xnu_heap_malloc): Use relocators.
6444 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
6445
6446 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
6447
6448 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
6449 anything.
6450
6451 2009-12-13 Carles Pina i Estany <carles@pina.cat>
6452
6453 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
6454 GRUB_ERR_NONE before calling grub_env_set.
6455
6456 2009-12-12 Robert Millan <rmh@aybabtu.com>
6457
6458 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
6459 * genmk.rb (video): New variable.
6460 (CLEANFILES, VIDEOFILES): Add #{video}.
6461 (#{video}): New target rule.
6462 * genvideolist.sh: New file.
6463 * Makefile.in (pkglib_DATA): Add video.lst.
6464 (video.lst): New target rule.
6465 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
6466 `video.lst'.
6467 * util/grub.d/30_os-prober.in: Replace `vbe' with
6468 ${GRUB_VIDEO_BACKEND}.
6469
6470 2009-12-11 Robert Millan <rmh.grub@aybabtu.com>
6471
6472 * THANKS: Add David Miller.
6473
6474 2009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
6475
6476 libpciaccess support.
6477
6478 * Makefile.in (LIBPCIACCESS): New variable.
6479 (enable_grub_emu_pci): Likewise.
6480 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
6481 util/pci.c and commands/lspci.c.
6482 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
6483 * configure.ac (grub-emu-pci): New option.
6484 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
6485 (grub_pci_device_unmap_range): Likewise.
6486 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
6487 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
6488 (grub_pci_address_t) [!GRUB_UTIL]: New type.
6489 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
6490 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
6491 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
6492 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
6493 * include/grub/pciutils.h: New file.
6494 * util/pci.c: Likewise.
6495
6496 2009-12-11 Felix Zielcke <fzielcke@z-51.de>
6497
6498 * util/misc.c: Don't include <errno.h> twice.
6499
6500 2009-12-10 Felix Zielcke <fzielcke@z-51.de>
6501
6502 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
6503 name in an error message.
6504 (grub_biosdisk_rw): Likewise.
6505
6506 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
6507
6508 Eliminate NTFS 4Gib barrier.
6509
6510 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
6511 (read_run_data): Likewise.
6512 (grub_ntfs_read_run_list): Likewise.
6513 (grub_ntfs_read_block): Likewise.
6514 (grub_ntfs_iterate_dir): Likewise.
6515 (read_mft): Likewise.
6516 (read_data): Likewise.
6517 Use COM_LOG_LEN.
6518 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
6519 to avoid 64-bit division
6520 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
6521 (grub_ntfs_rlst): Use grub_disk_addr_t.
6522
6523 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
6524
6525 Eliminate grub-fstest 4Gib barrier.
6526
6527 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
6528 (read_file): Fix error reporting.
6529
6530 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
6531
6532 Eliminate hexdump 4Gib barrier.
6533
6534 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
6535 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
6536
6537 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
6538
6539 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
6540 Fixes amarsh bug.
6541
6542 2009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
6543
6544 Remove miscellaneous files in distclean target.
6545
6546 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
6547
6548 2009-12-09 Colin Watson <cjwatson@ubuntu.com>
6549
6550 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
6551 if they're already set. This resolves the conflict between my
6552 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
6553 fixing the --grub-probe option again.
6554 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
6555 change on 2009-10-06, so that we now once again source
6556 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
6557
6558 2009-12-08 Robert Millan <rmh.grub@aybabtu.com>
6559
6560 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
6561 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
6562 `util/devicemap.c'.
6563
6564 2009-12-08 Carles Pina i Estany <carles@pina.cat>
6565
6566 * include/grub/misc.h (grub_printf_): New declaration.
6567 * kern/misc.c (grub_printf_): New definition.
6568 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
6569 instead of `grub_printf' and `_'.
6570 * normal/menu_entry.c (store_completion): Likewise.
6571 (run): Likewise.
6572 (grub_menu_entry_run): Likewise.
6573 * normal/menu_text.c (grub_wait_after_message): Likewise.
6574 (notify_booting): Likewise.
6575 (notify_fallback): Likewise.
6576 (notify_execution_failure): Likewise.
6577
6578 2009-12-07 Colin Watson <cjwatson@ubuntu.com>
6579
6580 * configure.ac: Check for vasprintf.
6581 * util/misc.c (asprintf): Move allocation from here ...
6582 (vasprintf): ... to here. New function.
6583 (xasprintf): New function.
6584 * include/grub/util/misc.h (vasprintf, xasprintf): Add
6585 prototypes.
6586 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
6587 * util/grub-mkfont.c (write_font): Likewise.
6588 * util/grub-probe.c (probe): Likewise.
6589 * util/hostdisk.c (make_device_name): Likewise.
6590
6591 2009-12-06 David S. Miller <davem@sunset.davemloft.net>
6592
6593 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
6594 anything even prefixed with 'cdrom' as a cdrom.
6595
6596 2009-12-06 Felix Zielcke <fzielcke@z-51.de>
6597
6598 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
6599 mount points.
6600
6601 2009-12-05 Carles Pina i Estany <carles@pina.cat>
6602
6603 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
6604 grub_gettext_msg_list.
6605 (grub_gettext_gettranslation_from_position): Return const char *
6606 and not char *.
6607 (grub_gettext_translate): Add the translated strings into a list,
6608 returns from the list if existing there.
6609 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
6610 (grub_gettext_delete_list): Delete the list.
6611 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
6612 lang environment variable is changed.
6613 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
6614
6615 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
6616
6617 Rename kernel.mod to kernel.img.
6618
6619 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
6620 (kernel_mod_EXPORTS): Rename to ...
6621 (kernel_img_EXPORTS): ... this.
6622 (kernel_mod_SOURCES): Rename to ...
6623 (kernel_img_SOURCES): ... this.
6624 (kernel_mod_HEADERS): Rename to ...
6625 (kernel_img_HEADERS): ... this. All users updated.
6626 (kernel_mod_CFLAGS): Rename to ...
6627 (kernel_img_CFLAGS): ... this.
6628 (kernel_mod_ASFLAGS): Rename to ...
6629 (kernel_img_ASFLAGS): ... this.
6630 (kernel_mod_LDFLAGS): Rename to ...
6631 (kernel_img_LDFLAGS): ... this.
6632 * conf/x86_64-efi.rmk: Likewise.
6633 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
6634 (read_kernel_image): ... this. All users updated.
6635 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
6636
6637 2009-12-05 Carles Pina i Estany <carles@pina.cat>
6638
6639 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
6640 (print_spaces): New function.
6641 (grub_print_ucs4): New function.
6642 (getstringwidth): New function.
6643 (print_message_indented): New function.
6644 (print_message): Gettexttize strings using print_message_indented.
6645 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
6646 width.
6647 (get_entry_number): Gettextize and uses dynamic terminal width.
6648 (notify_booting, notify_fallback, notify_execution_failure):
6649 Gettextize.
6650 * normal/menu_entry.c (store_completion): Cleanup the gettextized
6651 string.
6652 (run): Likewise.
6653 (grub_menu_entry_run): Likewise.
6654 * PO/POTFILES: Add normal/menu_entry.c.
6655
6656 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
6657
6658 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
6659
6660 2009-12-05 Carles Pina i Estany <carles@pina.cat>
6661
6662 * util/grub-install.in: Install gettext .mo files.
6663 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
6664
6665 2009-12-05 Carles Pina i Estany <carles@pina.cat>
6666
6667 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
6668 grub_dprintf.
6669
6670 2009-12-05 Robert Millan <rmh.grub@aybabtu.com>
6671
6672 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
6673 non-firmware-dependant one in realmode.S takes precedence.
6674
6675 2009-12-04 Robert Millan <rmh.grub@aybabtu.com>
6676
6677 * commands/halt.c: Replace misc arch-specific headers with
6678 `<grub/misc.h>'.
6679 * commands/reboot.c: Likewise.
6680 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
6681 `<grub/misc.h>'.
6682 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
6683 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
6684 (kernel_img_SOURCES): ... to here.
6685
6686 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
6687 * include/grub/i386/pc/init.h: Likewise.
6688 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
6689 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
6690
6691 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
6692
6693 * include/grub/i386/halt.h: Remove.
6694 * include/grub/i386/reboot.h: Likewise.
6695
6696 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
6697
6698 2009-12-03 David S. Miller <davem@sunset.davemloft.net>
6699
6700 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
6701 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
6702 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
6703 "progname.h"
6704 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
6705 * util/sparc64/ieee1275/grub-setup.c: Likewise.
6706 (usage): Add missing comma in printf.
6707
6708 2009-12-02 Robert Millan <rmh.grub@aybabtu.com>
6709
6710 Use the same reboot approach on i386 coreboot and qemu as we do on
6711 BIOS.
6712
6713 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
6714 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
6715 * kern/i386/reboot.c: Remove.
6716 * include/grub/i386/reboot.h (grub_reboot): Export function.
6717 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
6718 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
6719 0xf000:0xfff0 instead of 0xffff:0x0000.
6720 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
6721 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
6722
6723 2009-11-30 Robert Millan <rmh.grub@aybabtu.com>
6724
6725 Fix $srcdir != $objdir build.
6726
6727 * Makefile.in (po/%.po): Rewrite as ...
6728 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
6729
6730 2009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
6731
6732 Fix GNU/Hurd grub-install crash.
6733 * util/grub-probe.c (probe): Try to access `path' only when it is not
6734 NULL.
6735
6736 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
6737
6738 Correct module naming.
6739
6740 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
6741 (GRUB_MOD_INIT(efi_uga)): ... to this
6742 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
6743 (GRUB_MOD_FINI(efi_uga)): ... to this
6744 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
6745 (GRUB_MOD_INIT(efi_gop)): ... to this
6746 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
6747 (GRUB_MOD_FINI(efi_gop)): ... to this
6748
6749 2009-11-28 Robert Millan <rmh.grub@aybabtu.com>
6750
6751 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
6752 translatable.
6753 (usage): Translate `arg' strings using gettext().
6754 Thanks to Jordi Mallach for the suggestion.
6755
6756 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
6757
6758 GOP support. Based on patch from Bean
6759 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
6760
6761 * video/efi_gop.c: New file.
6762 * include/grub/efi/graphics_output.h: Likewise.
6763 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
6764 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
6765 variables.
6766 * conf/x86_64-efi.rmk: Likewise.
6767
6768 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
6769
6770 Rename efi_fb to efi_uga.
6771
6772 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
6773 'efi_uga.mod'.
6774 (efi_fb_mod_SOURCES): Rename this ...
6775 (efi_uga_mod_SOURCES): ... to this.
6776 (efi_fb_mod_CFLAGS): Rename this ...
6777 (efi_uga_mod_CFLAGS): ... to this.
6778 (efi_fb_mod_LDFLAGS): Rename this ...
6779 (efi_uga_mod_LDFLAGS): ... to this.
6780 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
6781 'efi_uga.mod'.
6782 (efi_fb_mod_SOURCES): Rename this ...
6783 (efi_uga_mod_SOURCES): ... to this.
6784 (efi_fb_mod_CFLAGS): Rename this ...
6785 (efi_uga_mod_CFLAGS): ... to this.
6786 (efi_fb_mod_LDFLAGS): Rename this ...
6787 (efi_uga_mod_LDFLAGS): ... to this.
6788 * video/efi_fb.c: Move this ...
6789 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
6790
6791 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
6792
6793 * po/README: New file. Explain our PO file workflow.
6794
6795 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
6796
6797 * po/ChangeLog: Remove. Move relevant entries back to ...
6798 * ChangeLog: ... here.
6799 * po/ca.po: Remove (now handled by TLP).
6800 * po/id.po: Likewise.
6801 * po/zh_CN.po: Likewise.
6802 * Makefile.in (LINGUAS): Initialize in a way that supports
6803 empty set.
6804
6805 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
6806
6807 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
6808 reliing on po/LINGUAS.
6809 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
6810 (po/%.po): ... this.
6811
6812 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
6813
6814 * util/i386/efi/grub-mkimage.c: Include "progname.h".
6815 (main): Use `program_name' instead of nonexistent `progname'.
6816
6817 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
6818
6819 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
6820 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
6821
6822 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
6823
6824 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
6825 commit.
6826 * conf/i386-efi.rmk: Likewise.
6827 * conf/i386-ieee1275.rmk: Likewise.
6828 * conf/powerpc-ieee1275.rmk: Likewise.
6829 * conf/sparc64-ieee1275.rmk: Likewise.
6830 * conf/x86_64-efi.rmk: Likewise.
6831
6832 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
6833
6834 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
6835
6836 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
6837
6838 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
6839
6840 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
6841
6842 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
6843 (grub_mkdevicemap_SOURCES): New variable.
6844 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
6845 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
6846 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
6847 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
6848 (grub_mkdevicemap_SOURCES): Remove.
6849 * conf/i386-efi.rmk: Likewise.
6850 * conf/i386-ieee1275.rmk: Likewise.
6851 * conf/i386-pc.rmk: Likewise.
6852 * conf/powerpc-ieee1275.rmk: Likewise.
6853 * conf/sparc64-ieee1275.rmk: Likewise.
6854 * conf/x86_64-efi.rmk: Likewise.
6855 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
6856 (usage): Fix strings to use `program_name'.
6857 (main): Initialize gettext.
6858 * util/grub-editenv.c: Likewise.
6859 * util/grub-emu.c: Likewise.
6860 * util/grub-fstest.c: Likewise.
6861 * util/grub-mkdevicemap.c: Likewise.
6862 * util/grub-mkfont.c: Likewise.
6863 * util/grub-mkrelpath.c: Likewise.
6864 * util/grub-pe2elf.c: Likewise.
6865 * util/grub-probe.c: Likewise.
6866 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
6867 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
6868 * util/sparc64/ieee1275/grub-setup.c: Likewise.
6869
6870 * util/misc.c: Include `"progname.h"'.
6871 (progname): Remove variable.
6872 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
6873
6874 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
6875
6876 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
6877 printf and print a newline after the menuentry header line.
6878 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
6879
6880 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
6881
6882 autoconf >= 2.60 support $(localedir).
6883
6884 * INSTALL: Note that autoconf 2.60 is required.
6885 * configure.ac (AC_PREREQ): Bump to 2.60.
6886 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
6887 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
6888
6889 2009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
6890
6891 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
6892 aclocal is run.
6893
6894 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
6895
6896 * normal/main.c (grub_normal_read_line): Fix off-by-one
6897 buffer overflow.
6898
6899 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
6900
6901 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
6902 "parser.grub" in grub_command_execute() call.
6903
6904 2009-11-24 Carles Pina i Estany <carles@pina.cat>
6905
6906 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
6907 * conf/i386-efi.rmk: Likewise.
6908 * conf/i386-ieee1275.rmk: Likewise.
6909 * conf/i386-pc.rmk: Likewise.
6910 * conf/powerpc-ieee1275.rmk: Likewise.
6911 * conf/sparc64-ieee1275.rmk: Likewise.
6912 * conf/x86_64-efi.rmk: Likewise.
6913 * gettext/gettex.c: Include <grub/i18n.h>.
6914 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
6915 here ...
6916 * include/grub/i18n.h: ... to here
6917 * include/grub/i18n.h: ... to here.
6918 * kern/misc.c: Include <grub/i18n.h>
6919 (grub_gettext_dummy): Move above user.
6920
6921 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
6922
6923 * util/Makefile.in (install-local): Convert a `for' into a normal
6924 shell expansion.
6925
6926 2009-11-24 Robert Millan <rmh.grub@aybabtu.com>
6927
6928 * autogen.sh: Add automake call.
6929 * config.guess: Remove.
6930 * config.sub: Likewise.
6931 * install-sh: Likewise.
6932
6933 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
6934
6935 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
6936
6937 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
6938
6939 * util/Makefile.in (install-local): Convert a make `$(foreach)'
6940 function to a normal shell `for'.
6941
6942 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
6943
6944 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
6945
6946 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
6947
6948 * util/grub-mkrelpath.c: New file.
6949 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
6950 (grub_mkrelpath_SOURCES): New variable.
6951 * include/grub/util/misc.h: New function prototype.
6952 * util/misc.c (make_system_path_relative_to_its_root): New function.
6953
6954 * util/grub-mkconfig_lib.in (bindir): New variable.
6955 (grub_mkrelpath): Likewise.
6956 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
6957
6958 * util/probe.c (probe): Make the file path relative to its root.
6959 Change a info message to use the GRUB path. Enable again the
6960 check if we can read the file with GRUB facilities.
6961
6962 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
6963 to its root.
6964
6965 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
6966
6967 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
6968 platform.
6969
6970 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
6971
6972 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
6973 strncmp().
6974
6975 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
6976
6977 * util/getroot.c (grub_util_is_dmraid): New function.
6978 (grub_util_get_dev_abstraction): Treat dmraid and multipath
6979 devices as normal ones, not as LVM.
6980
6981 2009-11-23 Carles Pina i Estany <carles@pina.cat>
6982
6983 * conf/common.rmk: Add grub-gettext_lib target and updates
6984 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
6985 LDFLAGS.
6986 * gettext/gettext.c: New file. (Reads mo files).
6987 * include/grub/file.h (grub_file_pread): New prototype.
6988 * include/grub/i18n.h (_): New prototype.
6989 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
6990 prototypes.
6991 * kern/misc.c (grub_gettext_dummy): New function.
6992 * normal/menu_text.c: Include <grub/i18n.h>.
6993 * normal/menu_text.c (print_timeout): Gettexttize string.
6994 * normal/menu_text.c (print_message): Gettexttize string.
6995 * po/POTFILES: Add `normal/menu_text.c'.
6996 * po/ca.po: Add new translations.
6997 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
6998 gettext module and defines locale_dir and lang in grub.cfg.
6999 * NEWS: Add gettext support.
7000
7001 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
7002
7003 * util/hostdisk.c: Include `<grub/i18n.h>'.
7004 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
7005 (make_device_name): Rewrite using asprintf.
7006 (convert_system_partition_to_system_disk): Replace 0 with NULL.
7007 (find_system_device): If a device is not found, generate one just
7008 by reusing the OS path name.
7009 (read_device_map): Make it permissible for device.map not to exist.
7010
7011 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
7012
7013 * script/sh/execute.c: Move from here ...
7014 * script/execute.c: ... to here. Update all users.
7015 * script/sh/function.c: Move from here ...
7016 * script/function.c: ... to here. Update all users.
7017 * script/sh/lexer.c: Move from here ...
7018 * script/lexer.c: ... to here. Update all users.
7019 * script/sh/main.c: Move from here ...
7020 * script/main.c: ... to here. Update all users.
7021 * script/sh/parser.y: Move from here ...
7022 * script/parser.y: ... to here. Update all users.
7023 * script/sh/script.c: Move from here ...
7024 * script/script.c: ... to here. Update all users.
7025
7026 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
7027
7028 * configure.ac: Detect all `emu' platforms. Define
7029 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
7030 --enable-grub-emu logic. Disable include/grub/machine
7031 symlink on `emu' platforms.
7032
7033 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
7034 * gensymlist.sh.in: Likewise.
7035
7036 * include/grub/i386/coreboot/machine.h: Remove file.
7037 * include/grub/i386/efi/machine.h: Likewise.
7038 * include/grub/i386/ieee1275/machine.h: Likewise.
7039 * include/grub/i386/pc/machine.h: Likewise.
7040 * include/grub/i386/qemu/machine.h: Likewise.
7041 * include/grub/powerpc/ieee1275/machine.h: Likewise.
7042 * include/grub/sparc64/ieee1275/machine.h: Likewise.
7043 * include/grub/x86_64/efi/machine.h: Likewise.
7044
7045 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
7046 * commands/halt.c: Likewise.
7047 * commands/reboot.c: Likewise.
7048 * include/grub/autoefi.h: Likewise.
7049 * include/grub/i386/at_keyboard.h: Likewise.
7050 * include/grub/i386/kernel.h: Likewise.
7051 * include/grub/i386/loader.h: Likewise.
7052 * include/grub/i386/pc/memory.h: Likewise.
7053 * kern/dl.c: Likewise.
7054 * kern/i386/coreboot/init.c: Likewise.
7055 * loader/i386/bsd.c: Likewise.
7056 * loader/i386/linux.c: Likewise.
7057 * loader/multiboot_loader.c: Likewise.
7058 * term/i386/pc/serial.c: Likewise.
7059 * term/usb_keyboard.c: Likewise.
7060
7061 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
7062 `<grub/machine/machine.h>'
7063 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
7064 * util/misc.c: Remove `<grub/machine/machine.h>' and
7065 `<grub/machine/time.h>'.
7066
7067 * Makefile.in (enable_grub_emu): Remove variable.
7068 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
7069
7070 * conf/any-emu.rmk: New file.
7071 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
7072 (grub_emu_init.c): Move from here ...
7073 * conf/any-emu.rmk: ... to here.
7074
7075 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
7076 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
7077 * conf/any-emu.rmk: ... to here.
7078
7079 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
7080
7081 * include/grub/parser.h (grub_parser_register): Document need
7082 of `name' parameter.
7083 * normal/main.c (grub_normal_read_line): Simplify prompt string.
7084 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
7085 "sh" to "grub".
7086
7087 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
7088
7089 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
7090 `$(XGETTEXT)'.
7091 * include/grub/i18n.h (N_): New macro.
7092 * util/mkisofs/mkisofs.h: Likewise.
7093 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
7094 around N_().
7095 (usage): Use gettext() to translate help strings when printing them.
7096
7097 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
7098
7099 Based on patch from Bean
7100 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
7101
7102 * video/efi_fb.c: New file.
7103 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
7104 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
7105 variables.
7106 * conf/x86_64-efi.rmk: Likewise.
7107
7108 2009-11-22 Robert Millan <rmh.grub@aybabtu.com>
7109
7110 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
7111 * util/i386/pc/grub-setup.c: Likewise.
7112
7113 2009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
7114
7115 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
7116 <hurd/fs.h>
7117 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
7118 file_get_storage_info to implement grub_guess_root_device.
7119
7120 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
7121
7122 * Makefile.in (target): Use make's builtin $(shell) function
7123 instead of calling directly $(SHELL) to create the locale directories,
7124 inside the $(foreach) function.
7125
7126 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
7127
7128 * util/grub-mkrescue.in: Print an error and usage if output option
7129 has not been given.
7130
7131 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
7132
7133 Patch from Loïc Minier <loic.minier@ubuntu.com>.
7134 * util/grub.d/30_os-prober.in: Cope with Linux entries where
7135 root and /boot are on different devices.
7136
7137 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
7138
7139 Fix build for srcdir != objdir.
7140
7141 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
7142 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
7143 $(srcdir).
7144 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
7145 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
7146 reference for input.
7147
7148 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
7149
7150 * util/grub-mkrescue.in: Use source directory direcly (without copiing
7151 or hardlinking it). Remove -J option, Joliet is not compatible with
7152 multiple source directories.
7153
7154 2009-11-21 Carles Pina i Estany <carles@pina.cat>
7155 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
7156
7157 * util/grub-mkrescue.in: Recognize `--override-directory' option.
7158 (process_input_dir): New function. Process an arbitrary input
7159 directory.
7160 Misc adjustments to support both "override mode" and system-wide mode.
7161
7162 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
7163
7164 * configure.ac (UNIFONT_BDF): Rename to ...
7165 (FONT_SOURCE): ... this. Update all users.
7166
7167 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
7168
7169 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
7170 to the list of unifont files to look for.
7171
7172 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
7173
7174 Patch from Joe Auricchio <jauricchio@gmail.com>
7175 * commands/minicmd.c (grub_mini_cmd_clear): New function.
7176 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
7177 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
7178
7179 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
7180
7181 * Makefile.in (install-local): Add a missing backslash.
7182
7183 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
7184
7185 * include/grub/x86_64/io.h: New file.
7186
7187 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
7188
7189 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
7190 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
7191 Include `"progname.h"'.
7192 (main): Initialize gettext.
7193 * util/i386/pc/grub-setup.c: Gettexttize.
7194 * util/i386/pc/grub-mkimage.c: Likewise.
7195
7196 * Makefile.in (po/*.po): Redefine as ...
7197 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
7198
7199 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
7200
7201 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
7202
7203 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
7204 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
7205 (program_name): Remove.
7206 (main): Initialize gettext support.
7207 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
7208 Include `<libintl.h>'.
7209 (_): New macro.
7210
7211 * util/mkisofs/eltorito.c: Gettexttize.
7212 * util/mkisofs/joliet.c: Likewise.
7213 * util/mkisofs/mkisofs.c: Likewise.
7214 * util/mkisofs/multi.c: Likewise.
7215 * util/mkisofs/rock.c: Likewise.
7216 * util/mkisofs/tree.c: Likewise.
7217 * util/mkisofs/write.c: Likewise.
7218
7219 * po/POTFILES: Update with new files.
7220
7221 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
7222
7223 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
7224 * util/mkisofs/iso9660.h: Likewise.
7225 * util/mkisofs/joliet.c: Likewise.
7226 * util/mkisofs/mkisofs.c: Likewise.
7227 * util/mkisofs/mkisofs.h: Likewise.
7228 * util/mkisofs/rock.c: Likewise.
7229 * util/mkisofs/tree.c: Likewise.
7230 * util/mkisofs/write.c: Likewise.
7231
7232 * util/mkisofs/eltorito.c (rcsid): Remove.
7233 * util/mkisofs/hash.c: Likewise.
7234 * util/mkisofs/joliet.c: Likewise.
7235 * util/mkisofs/name.c: Likewise.
7236 * util/mkisofs/rock.c: Likewise.
7237 * util/mkisofs/tree.c: Likewise.
7238 * util/mkisofs/write.c: Likewise.
7239
7240 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
7241
7242 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
7243 instead of static allocation.
7244 * util/mkisofs/match.h: Likewise.
7245
7246 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
7247
7248 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
7249 and `util/grub.d/10_linux.in'.
7250 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
7251 translatable Shell files.
7252
7253 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
7254
7255 * Makefile.in ($(srcdir)/aclocal.m4): New target.
7256
7257 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
7258
7259 * INSTALL: Document Automake is needed for bootstrap.
7260 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
7261 * util/grub.d/10_kfreebsd.in (bindir): New variable.
7262 Add gettext initialization.
7263 (kfreebsd_entry): Make menuentry output translatable.
7264
7265 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
7266
7267 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
7268 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
7269 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
7270 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
7271 (LINGUAS): Auto-generate using `po/LINGUAS'.
7272 * po/LINGUAS: New file.
7273
7274 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
7275
7276 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
7277 other things).
7278 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
7279 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
7280 bindtextdomain() calls for gettext initialization.
7281
7282 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
7283
7284 * gnulib/progname.c: New file (imported from Gnulib).
7285 * gnulib/progname.h: Likewise.
7286 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
7287 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
7288 (usage): Replace `progname' with `program_name'.
7289 (main): Use set_program_name() for program name initialization.
7290
7291 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
7292
7293 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
7294 from here ...
7295 * Makefile.in (CPPFLAGS): ... to here.
7296
7297 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
7298
7299 * aclocal.m4: Move from here ...
7300 * acinclude.m4: ... to here.
7301 * autogen.sh: Add call to `aclocal'.
7302 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
7303
7304 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
7305
7306 * Makefile.in (CLEANFILES): Add `po/*.mo'.
7307 (LINGUAS): New variable.
7308 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
7309 (install-local): Install MO files.
7310 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
7311 * include/grub/i18n.h: New file.
7312 * po/POTFILES: New file.
7313 * po/ca.po: New file.
7314 * util/grub.d/10_linux.in (bindir): New variable.
7315 Add gettext initialization.
7316 (linux_entry): Make menuentry output translatable.
7317 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
7318 (usage): Make --help output translatable.
7319 (main): Initialize gettext.
7320
7321 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
7322
7323 * import_gcry.py: New file (written by Vladimir with minor
7324 adjustments).
7325 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
7326 ciphers.
7327 * INSTALL: Document that Python is required for bootstrap.
7328
7329 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
7330
7331 Import ciphers from libgcrypt 1.4.4.
7332
7333 * lib/libgcrypt/cipher/ChangeLog
7334 * lib/libgcrypt/cipher/ac.c
7335 * lib/libgcrypt/cipher/arcfour.c
7336 * lib/libgcrypt/cipher/bithelp.h
7337 * lib/libgcrypt/cipher/blowfish.c
7338 * lib/libgcrypt/cipher/camellia-glue.c
7339 * lib/libgcrypt/cipher/camellia.c
7340 * lib/libgcrypt/cipher/camellia.h
7341 * lib/libgcrypt/cipher/cast5.c
7342 * lib/libgcrypt/cipher/cipher.c
7343 * lib/libgcrypt/cipher/crc.c
7344 * lib/libgcrypt/cipher/des.c
7345 * lib/libgcrypt/cipher/dsa.c
7346 * lib/libgcrypt/cipher/ecc.c
7347 * lib/libgcrypt/cipher/elgamal.c
7348 * lib/libgcrypt/cipher/hash-common.c
7349 * lib/libgcrypt/cipher/hash-common.h
7350 * lib/libgcrypt/cipher/hmac-tests.c
7351 * lib/libgcrypt/cipher/md.c
7352 * lib/libgcrypt/cipher/md4.c
7353 * lib/libgcrypt/cipher/md5.c
7354 * lib/libgcrypt/cipher/primegen.c
7355 * lib/libgcrypt/cipher/pubkey.c
7356 * lib/libgcrypt/cipher/rfc2268.c
7357 * lib/libgcrypt/cipher/rijndael-tables.h
7358 * lib/libgcrypt/cipher/rijndael.c
7359 * lib/libgcrypt/cipher/rmd.h
7360 * lib/libgcrypt/cipher/rmd160.c
7361 * lib/libgcrypt/cipher/rsa.c
7362 * lib/libgcrypt/cipher/seed.c
7363 * lib/libgcrypt/cipher/serpent.c
7364 * lib/libgcrypt/cipher/sha1.c
7365 * lib/libgcrypt/cipher/sha256.c
7366 * lib/libgcrypt/cipher/sha512.c
7367 * lib/libgcrypt/cipher/tiger.c
7368 * lib/libgcrypt/cipher/twofish.c
7369 * lib/libgcrypt/cipher/whirlpool.c
7370
7371 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
7372
7373 Fix build for systems without error().
7374
7375 * gnulib/error.c: New file (imported from Gnulib).
7376 * gnulib/error.h: Likewise.
7377 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
7378 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
7379 (this variable is now used by error()).
7380
7381 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
7382
7383 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
7384 instead of relying that char is signed.
7385
7386 2009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
7387
7388 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
7389 blocksize different from specified.
7390 (grub_pxefs_read): Likewise.
7391
7392 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
7393
7394 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
7395
7396 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
7397 (grub_ata_readwrite): Likewise. Update 2 format strings.
7398 (grub_atapi_read): Likewise.
7399
7400 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
7401 * conf/i386.rmk (pkglib_MODULES): ... to here ...
7402 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
7403 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
7404 (ata_mod_LDFLAGS): Move from here ...
7405 * conf/i386.rmk: ... to here ...
7406 * conf/x86_64-efi.rmk: ... and here.
7407 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
7408 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
7409
7410 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
7411
7412 Relicense multiboot.h, with RMS' blessing.
7413
7414 * include/multiboot.h: Change to X11 license.
7415
7416 2009-11-15 Robert Millan <rmh.grub@aybabtu.com>
7417
7418 Support --version in grub-mkisofs.
7419
7420 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
7421 (OPTION_VERSION): New macro.
7422 (ld_options): Recognize --version.
7423 (usage): Move `program_name' from here ...
7424 (program_name): ... to here. Add `static' qualifier.
7425 (main): Recognize `OPTION_VERSION'.
7426
7427 2009-11-15 Felix Zielcke <fzielcke@z-51.de>
7428
7429 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
7430 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
7431
7432 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
7433
7434 Fix help2man generation for mkisofs.
7435
7436 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
7437 (usage): Send output to stdout (rather than stderr).
7438
7439 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
7440
7441 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
7442 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
7443 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
7444 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
7445 (bin_SCRIPTS): Add `grub-mkfloppy'.
7446 (grub_mkfloppy_SOURCES): New variable.
7447
7448 * util/grub-mkrescue.in: New file.
7449 * util/i386/pc/grub-mkfloppy.in: New file.
7450
7451 * util/i386/coreboot/grub-mkrescue.in: Remove.
7452 * util/i386/pc/grub-mkrescue.in: Remove.
7453
7454 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
7455
7456 * include/grub/multiboot.h (struct grub_multiboot_header): Move
7457 from here ...
7458 * include/multiboot.h (struct multiboot_header): ... to here. Update
7459 all users.
7460 * include/grub/multiboot.h (struct grub_multiboot_info): Move
7461 from here ...
7462 * include/multiboot.h (struct multiboot_info): ... to here. Update
7463 all users.
7464 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
7465 from here ...
7466 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
7467 Update all users.
7468 * include/grub/multiboot.h (struct grub_mod_list): Move
7469 from here ...
7470 * include/multiboot.h (struct multiboot_mod_list): ... to here.
7471 Update all users.
7472
7473 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
7474
7475 * include/multiboot2.h (multiboot_word): Rename from this ...
7476 (multiboot2_word): ... to this. Update all users.
7477 (multiboot_header): Rename from this ...
7478 (multiboot2_header): ... to this. Update all users.
7479 (multiboot_tag_header): Rename from this ...
7480 (multiboot2_tag_header): ... to this. Update all users.
7481 (multiboot_tag_start): Rename from this ...
7482 (multiboot2_tag_start): ... to this. Update all users.
7483 (multiboot_tag_name): Rename from this ...
7484 (multiboot2_tag_name): ... to this. Update all users.
7485 (multiboot_tag_module): Rename from this ...
7486 (multiboot2_tag_module): ... to this. Update all users.
7487 (multiboot_tag_memory): Rename from this ...
7488 (multiboot2_tag_memory): ... to this. Update all users.
7489 (multiboot_tag_unused): Rename from this ...
7490 (multiboot2_tag_unused): ... to this. Update all users.
7491 (multiboot_tag_end): Rename from this ...
7492 (multiboot2_tag_end): ... to this. Update all users.
7493
7494 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
7495
7496 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
7497 this platform we should support Multiboot1 first.
7498
7499 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
7500 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
7501 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
7502
7503 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
7504
7505 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
7506 of write calls (converting them to fwrite() if they aren't already).
7507 (get_torito_desc): Likewise.
7508 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
7509
7510 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
7511
7512 * util/i386/pc/grub-install.in: Move from here ...
7513 * util/grub-install.in: ... to here. Update all users.
7514
7515 2009-11-11 Colin Watson <cjwatson@ubuntu.com>
7516
7517 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
7518
7519 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
7520
7521 Support for El Torito without floppy emulation.
7522
7523 * util/mkisofs/eltorito.c: Include `<errno.h>'.
7524 (init_boot_catalog): Improve error handling.
7525 (get_torito_desc): Don't use floppy emulation unless requested by
7526 user. Patch boot information table when requested via
7527 `-boot-info-table'.
7528 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
7529 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
7530 (use_boot_info_table): New variables.
7531 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
7532 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
7533 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
7534 `--eltorito-emul-floppy'.
7535 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
7536 and `OPTION_ELTORITO_EMUL_FLOPPY'.
7537 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
7538 (use_boot_info_table, get_731): New prototypes.
7539 * util/mkisofs/write.c (get_731): New function.
7540
7541 2009-11-11 Felix Zielcke <fzielcke@z-51.de>
7542
7543 Fix the generation of the man page.
7544
7545 * util/pc/i386/grub-install.in: Source
7546 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
7547
7548 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
7549
7550 Large file support for grub-mkisofs.
7551
7552 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
7553 * util/mkisofs/mkisofs.c (next_extent, last_extent)
7554 (session_start): Upgrade type to `uint64_t'. Update all users.
7555 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
7556 (struct directory_entry): Upgrade type of `starting_block' and
7557 `size' to `uint64_t'. Update all users.
7558 (struct deferred): Remove unused structure.
7559 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
7560 Update all users.
7561 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
7562 file is larger than `UINT32_MAX'.
7563 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
7564 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
7565 return value.
7566 (struct deferred_write): Upgrade type of `extent' and `size' to
7567 `uint64_t'. Update all users.
7568 (last_extent_written): Upgrade type to `uint64_t'. Update all
7569 users.
7570 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
7571 Update all users. Upgrade type of `remain' to `int64_t' and
7572 `use' to `size_t'. Use error() to handle fread() errors.
7573 (write_files): Rely on write_one_file() rather than calling
7574 xfwrite() directly.
7575
7576 2009-11-09 Felix Zielcke <fzielcke@z-51.de>
7577
7578 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
7579
7580 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
7581
7582 * util/mkisofs/fnmatch.c: Remove.
7583 * util/mkisofs/getopt1.c: Likewise.
7584 * util/mkisofs/getopt.c: Likewise.
7585 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
7586 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
7587 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
7588 `gnulib/getopt1.c' and `gnulib/getopt.c'.
7589 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
7590
7591 * configure.ac: Detect `mingw32msvc' host_os.
7592 Check for lstat(), getuid() and getgid().
7593
7594 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
7595 instances of `u_char' with `uint8_t'.
7596
7597 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
7598 [!HAVE_GETUID] (getuid): New function (stub).
7599 [!HAVE_GETGID] (getgid): Likewise.
7600 [!HAVE_LSTAT] (lstat): Likewise.
7601 [!S_IROTH] (S_IROTH): New macro (dummy).
7602 [!S_IRGRP] (S_IRGRP): Likewise.
7603
7604 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
7605
7606 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
7607 conditional expression).
7608
7609 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
7610
7611 Import from Gnulib.
7612
7613 * gnulib/fnmatch.c: New file.
7614 * gnulib/fnmatch.h: Likewise.
7615 * gnulib/fnmatch_loop.c: Likewise.
7616 * gnulib/getopt.c: Likewise.
7617 * gnulib/getopt.h: Likewise.
7618 * gnulib/getopt1.c: Likewise.
7619 * gnulib/getopt_int.h: Likewise.
7620 * gnulib/gettext.h: Likewise.
7621
7622 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
7623
7624 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
7625 * normal/handler.c (read_handler_list): Likewise.
7626
7627 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
7628
7629 Misc cleanup.
7630
7631 * kern/command.c (grub_register_command_prio): Use
7632 grub_zalloc() instead of explicitly zeroing data.
7633 * kern/list.c: Include `<grub/mm.h>'.
7634 (grub_named_list_find): Replace `0' with `NULL'.
7635 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
7636 (fs_module_list): Change type to `grub_named_list_t'. Update all
7637 users.
7638 * normal/dyncmd.c (read_command_list): Add space between function
7639 call and parenthesis.
7640 * normal/handler.c (read_handler_list): Likewise.
7641
7642 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
7643
7644 * normal/auth.c (punishment_delay): Moved from here ...
7645 (grub_auth_strcmp): ... to here (inside function).
7646
7647 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
7648
7649 * include/grub/list.h (struct grub_named_list): Remove `const'
7650 qualifier from `name'.
7651 (struct grub_prio_list): Likewise.
7652
7653 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
7654
7655 * normal/auth.c: Include `<grub/time.h>'.
7656 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
7657
7658 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
7659
7660 * normal/auth.c (punishment_delay): New variable.
7661 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
7662 (grub_auth_check_authentication): Punish failed login attempts with
7663 an incremental (2^N) delay.
7664
7665 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
7666
7667 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
7668 path with $(srcdir).
7669
7670 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
7671
7672 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
7673
7674 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
7675
7676 * util/i386/coreboot/grub-mkrescue.in: New file.
7677 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
7678 variables.
7679
7680 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
7681 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
7682 * configure.ac: Add header and function checks to satisfy grub-mkisofs
7683 requirements.
7684 * util/mkisofs/defaults.h: New file.
7685 * util/mkisofs/eltorito.c: Likewise.
7686 * util/mkisofs/exclude.h: Likewise.
7687 * util/mkisofs/fnmatch.c: Likewise.
7688 * util/mkisofs/getopt.c: Likewise.
7689 * util/mkisofs/getopt1.c: Likewise.
7690 * util/mkisofs/hash.c: Likewise.
7691 * util/mkisofs/include/fctldefs.h: Likewise.
7692 * util/mkisofs/include/mconfig.h: Likewise.
7693 * util/mkisofs/include/prototyp.h: Likewise.
7694 * util/mkisofs/include/statdefs.h: Likewise.
7695 * util/mkisofs/iso9660.h: Likewise.
7696 * util/mkisofs/joliet.c: Likewise.
7697 * util/mkisofs/match.c: Likewise.
7698 * util/mkisofs/match.h: Likewise.
7699 * util/mkisofs/mkisofs.c: Likewise.
7700 * util/mkisofs/mkisofs.h: Likewise.
7701 * util/mkisofs/multi.c: Likewise.
7702 * util/mkisofs/name.c: Likewise.
7703 * util/mkisofs/rock.c: Likewise.
7704 * util/mkisofs/tree.c: Likewise.
7705 * util/mkisofs/write.c: Likewise.
7706
7707 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
7708
7709 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
7710 being insecure.
7711
7712 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
7713
7714 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
7715 `grub-mkimage' (and use $0 when possible).
7716
7717 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
7718
7719 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
7720 error message for excessively large memory map.
7721
7722 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
7723
7724 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
7725 executable bit.
7726
7727 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
7728
7729 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
7730 message for coreboot users.
7731
7732 2009-11-07 Robert Millan <rmh.grub@aybabtu.com>
7733
7734 Fix build with GNU gold.
7735
7736 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
7737 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
7738 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
7739 link addresses.
7740 * aclocal.m4: Likewise.
7741
7742 2009-11-04 Felix Zielcke <fzielcke@z-51.de>
7743
7744 * configure.ac (AC_PREREQ): Bump to 2.59d.
7745 * INSTALL: Make it more clear when Autoconf and Ruby are
7746 needed and when to run `./autogen.sh'.
7747
7748 2009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
7749
7750 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
7751 OSes.
7752
7753 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
7754
7755 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
7756
7757 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
7758
7759 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
7760 giving it to GNU Mach.
7761
7762 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
7763
7764 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
7765 GNU partition number to get internal GRUB partition number.
7766
7767 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
7768
7769 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
7770 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
7771
7772 2009-11-01 Robert Millan <rmh.grub@aybabtu.com>
7773
7774 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
7775 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
7776 case.
7777
7778 2009-11-01 Felix Zielcke <fzielcke@z-51.de>
7779
7780 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
7781
7782 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
7783
7784 Fix build problem.
7785
7786 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
7787 `-isystem=$(srcdir)/include'.
7788
7789 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
7790
7791 * util/i386/pc/grub-install.in: Remove hint that device.map should be
7792 checked (grub-install doesn't currently rely on it).
7793
7794 2009-10-29 Robert Millan <rmh.grub@aybabtu.com>
7795
7796 Revert SVN r2660.
7797
7798 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
7799 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
7800 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
7801 * conf/i386-ieee1275.rmk: Likewise.
7802 * conf/i386-pc.rmk: Likewise.
7803 * conf/powerpc-ieee1275.rmk: Likewise.
7804 * conf/sparc64-ieee1275.rmk: Likewise.
7805 * conf/x86_64-efi.rmk: Likewise.
7806
7807 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
7808
7809 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
7810
7811 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
7812
7813 * include/grub/misc.h: Stop checking for APPLE_CC.
7814
7815 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
7816
7817 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
7818 doesn't cause an infinite call loop.
7819
7820 2009-10-28 Felix Zielcke <fzielcke@z-51.de>
7821
7822 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
7823 strings.
7824
7825 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
7826
7827 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
7828 variable.
7829 * Makefile.in: Likewise.
7830
7831 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
7832
7833 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
7834
7835 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
7836
7837 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
7838
7839 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
7840
7841 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
7842
7843 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
7844
7845 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
7846 from here ...
7847 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
7848
7849 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
7850
7851 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
7852 in $(MAKEINFO) invocation. This makes it clear in output that
7853 errors are being ignored.
7854
7855 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
7856
7857 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
7858 from here ...
7859 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
7860 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
7861 * conf/i386-ieee1275.rmk: Likewise.
7862 * conf/i386-pc.rmk: Likewise.
7863 * conf/powerpc-ieee1275.rmk: Likewise.
7864 * conf/sparc64-ieee1275.rmk: Likewise.
7865 * conf/x86_64-efi.rmk: Likewise.
7866
7867 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
7868
7869 * util/grub-editenv.c (main): If only a command is given, use
7870 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
7871 (usage): FILENAME is now optional and has a default.
7872
7873 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
7874
7875 Improve grub-mkconfig performance when there are several menu
7876 entries on a single filesystem.
7877
7878 * util/grub.d/10_linux.in (linux_entry): Cache the output of
7879 prepare_grub_to_access_device.
7880 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
7881 * util/grub.d/30_os-prober.in: Likewise.
7882
7883 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
7884
7885 * util/grub.d/10_freebsd.in: Remove.
7886 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
7887 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
7888
7889 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
7890
7891 * docs/grub.cfg: Fix example usage of *BSD loaders.
7892
7893 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
7894
7895 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
7896 grub_util_error() call.
7897
7898 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
7899
7900 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
7901 `reserved_first_sector' member.
7902 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
7903 `reserved_first_sector' to 1.
7904 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
7905 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
7906 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
7907 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
7908 filesystems which begin at first sector.
7909 (options): New option --skip-fs-probe.
7910 (main): Handle --skip-fs-probe and pass it to setup().
7911
7912 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
7913
7914 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
7915 (memset): Fix function prototype.
7916
7917 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
7918 2009-10-25 Vasily Averin <vvs@parallels.com>
7919
7920 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
7921 `dirent.direntlen == 0'.
7922
7923 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
7924
7925 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
7926 `cpio'.
7927 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
7928
7929 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
7930
7931 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
7932 `__trampoline_setup' and `__ucmpdi2'.
7933 * include/grub/powerpc/libgcc.h: Only export symbols for functions
7934 that libgcc provides.
7935
7936 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
7937
7938 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
7939 * include/grub/sparc64/libgcc.h (memset): Likewise.
7940 * include/grub/misc.h (memset, memcmp): New function prototypes.
7941
7942 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
7943
7944 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
7945 `cpio'.
7946 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
7947
7948 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
7949
7950 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
7951 * docs/grub.cfg: Compensate for recent change in multiboot
7952 loader (since 2009-08-14 it won't pass filename to payload).
7953 * util/grub.d/10_hurd.in: Likewise.
7954
7955 2009-10-21 Felix Zielcke <fzielcke@z-51.de>
7956
7957 * config.guess: Update to latest version from config git
7958 repository.
7959 * config.sub: Likewise.
7960
7961 2009-10-20 Robert Millan <rmh.grub@aybabtu.com>
7962
7963 Fix build on sparc64.
7964
7965 * configure.ac: Perform checks for libgcc symbols before
7966 adding `-nostdlib' to LDFLAGS.
7967
7968 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
7969
7970 Let user specify OpenBSD root device.
7971
7972 * loader/i386/bsd.c (openbsd_root): New variable.
7973 (openbsd_opts): New option 'root'.
7974 (OPENBSD_ROOT_ARG): New macro.
7975 (grub_openbsd_boot): Use 'openbsd_root'.
7976 (grub_cmd_openbsd): Fill 'openbsd_root'.
7977
7978 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
7979
7980 * NEWS: Misc adjustments.
7981
7982 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
7983
7984 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
7985
7986 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
7987
7988 * configure.ac: Bump version to 1.97.
7989
7990 2009-10-16 Colin Watson <cjwatson@ubuntu.com>
7991
7992 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
7993 -mno-3dnow on x86 architectures. Some toolchains enable these
7994 features by default, but they rely on registers that aren't enabled
7995 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
7996
7997 2009-10-15 Robert Millan <rmh.grub@aybabtu.com>
7998
7999 Make entry text a bit more readable.
8000
8001 * util/grub.d/10_linux.in: Add `with' before `Linux'.
8002
8003 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
8004
8005 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
8006
8007 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
8008
8009 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
8010 operations.
8011
8012 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
8013
8014 * configure.ac: Add missing dollar.
8015
8016 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
8017
8018 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
8019
8020 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
8021 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
8022 exports.
8023 * include/grub/sparc64/libgcc.h: Likewise. Use
8024 preprocessor conditionals.
8025
8026 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
8027
8028 * conf/common.rmk (grub-dumpbios): Remove rule.
8029 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
8030 * util/grub-dumpbios.in: Remove file.
8031
8032 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
8033
8034 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
8035 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
8036
8037 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
8038 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
8039 users.
8040
8041 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
8042 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
8043 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
8044 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
8045 users.
8046
8047 2009-10-12 Robert Millan <rmh.grub@aybabtu.com>
8048
8049 * term/tparm.c: Switch to GPLv3.
8050
8051 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
8052
8053 * include/grub/i386/cpuid.h: Add header protection.
8054
8055 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
8056
8057 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
8058
8059 * include/grub/i386/cpuid.h: New file.
8060 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
8061 (has_longmode): Rename to ...
8062 (grub_cpuid_has_longmode): ... this. Update all users. Remove
8063 `static' attribute.
8064 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
8065 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
8066 on a CPU that doesn't implement AMD64 instruction set.
8067
8068 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
8069
8070 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
8071 that version.texi is rebuilt on version number changes.
8072
8073 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
8074
8075 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
8076 Fixes bug #27602.
8077
8078 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
8079
8080 * util/i386/pc/grub-install.in: Source
8081 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
8082 that the --grub-probe option will work.
8083 * util/sparc64/ieee1275/grub-install.in: Likewise.
8084
8085 2009-10-05 Robert Millan <rmh.grub@aybabtu.com>
8086
8087 * configure.ac: Bump version to 1.97~beta4.
8088
8089 2009-10-03 Robert Millan <rmh.grub@aybabtu.com>
8090
8091 Resync grub-mkdevicemap in x86_64-efi.
8092
8093 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
8094 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
8095 `util/devicemap.c'.
8096
8097 2009-10-01 Colin Watson <cjwatson@ubuntu.com>
8098
8099 * util/grub-editenv.c (create_envblk_file): Write new block with a
8100 .new suffix and then rename it into place, to ensure atomic
8101 creation.
8102
8103 2009-09-28 Robert Millan <rmh.grub@aybabtu.com>
8104
8105 Do not automatically install headers.
8106
8107 * Makefile.in (include_DATA): Remove. Update all users.
8108
8109 2009-09-26 Robert Millan <rmh.grub@aybabtu.com>
8110
8111 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
8112 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
8113
8114 * util/osdetect.lua: Remove.
8115 * script/lua/lauxlib.c: Likewise.
8116 * script/lua/ldebug.c: Likewise.
8117 * script/lua/grub_main.c: Likewise.
8118 * script/lua/lauxlib.h: Likewise.
8119 * script/lua/ldebug.h: Likewise.
8120 * script/lua/ltablib.c: Likewise.
8121 * script/lua/liolib.c: Likewise.
8122 * script/lua/lstrlib.c: Likewise.
8123 * script/lua/lualib.h: Likewise.
8124 * script/lua/ldo.c: Likewise.
8125 * script/lua/ldump.c: Likewise.
8126 * script/lua/ldo.h: Likewise.
8127 * script/lua/loslib.c: Likewise.
8128 * script/lua/lundump.c: Likewise.
8129 * script/lua/grub_lib.c: Likewise.
8130 * script/lua/ldblib.c: Likewise.
8131 * script/lua/lundump.h: Likewise.
8132 * script/lua/lmem.c: Likewise.
8133 * script/lua/grub_lib.h: Likewise.
8134 * script/lua/lmathlib.c: Likewise.
8135 * script/lua/lstate.c: Likewise.
8136 * script/lua/ltm.c: Likewise.
8137 * script/lua/lvm.c: Likewise.
8138 * script/lua/lmem.h: Likewise.
8139 * script/lua/lstate.h: Likewise.
8140 * script/lua/ltm.h: Likewise.
8141 * script/lua/ltable.c: Likewise.
8142 * script/lua/lvm.h: Likewise.
8143 * script/lua/llex.c: Likewise.
8144 * script/lua/lgc.c: Likewise.
8145 * script/lua/grub_lua.h: Likewise.
8146 * script/lua/loadlib.c: Likewise.
8147 * script/lua/lfunc.c: Likewise.
8148 * script/lua/lopcodes.c: Likewise.
8149 * script/lua/lparser.c: Likewise.
8150 * script/lua/ltable.h: Likewise.
8151 * script/lua/llex.h: Likewise.
8152 * script/lua/lgc.h: Likewise.
8153 * script/lua/lfunc.h: Likewise.
8154 * script/lua/lbaselib.c: Likewise.
8155 * script/lua/lopcodes.h: Likewise.
8156 * script/lua/lparser.h: Likewise.
8157 * script/lua/lzio.c: Likewise.
8158 * script/lua/linit.c: Likewise.
8159 * script/lua/lobject.c: Likewise.
8160 * script/lua/llimits.h: Likewise.
8161 * script/lua/lstring.c: Likewise.
8162 * script/lua/lzio.h: Likewise.
8163 * script/lua/lapi.c: Likewise.
8164 * script/lua/lcode.c: Likewise.
8165 * script/lua/lua.h: Likewise.
8166 * script/lua/lobject.h: Likewise.
8167 * script/lua/lstring.h: Likewise.
8168 * script/lua/lapi.h: Likewise.
8169 * script/lua/lcode.h: Likewise.
8170 * script/lua/luaconf.h: Likewise.
8171
8172 2009-09-26 Colin Watson <cjwatson@ubuntu.com>
8173
8174 * docs/grub.texi (Command-line and menu entry commands): Document
8175 date and echo commands.
8176
8177 2009-09-24 Pavel Roskin <proski@gnu.org>
8178
8179 * include/grub/kernel.h (struct grub_module_header): Remove
8180 `grub_module_header_types'. Make `type' unsigned. Make `size'
8181 32-bit on all platforms.
8182 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
8183 8-bit field. Use grub_host_to_target32() for `size'.
8184 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
8185 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
8186 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
8187
8188 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
8189
8190 Fix "lost keypress" bug in at_keyboard.
8191
8192 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
8193 Checks for readyness of input buffer (without flushing it).
8194 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
8195 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
8196
8197 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
8198
8199 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
8200 size check within GRUB_MACHINE_PCBIOS section.
8201
8202 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
8203
8204 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
8205 return value.
8206 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
8207 KEYBOARD_ISREADY check.
8208 (grub_at_keyboard_checkkey): Rename to ...
8209 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
8210 Remove gratuitous cast.
8211
8212 2009-09-23 Colin Watson <cjwatson@ubuntu.com>
8213
8214 * configure.ac: Call AC_PROG_MKDIR_P.
8215 * Makefile.in (docs/stamp-vti): Create docs directory. Create
8216 version.texi in $(builddir) rather than $(srcdir).
8217 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
8218 to makeinfo's @include search path.
8219
8220 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
8221
8222 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
8223
8224 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
8225
8226 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
8227 for `*.dpkg-new'.
8228
8229 2009-09-21 Colin Watson <cjwatson@ubuntu.com>
8230
8231 Build info documentation. Some code borrowed from Automake.
8232
8233 * configure.ac: Check for makeinfo.
8234 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
8235 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
8236 docs/version.texi.
8237 (MOSTLYCLEANFILES): Add vti.tmp.
8238 (docs/version.texi, docs/stamp-vti): Update automatically.
8239 (docs/grub.info): Build info documentation. Use --force and ignore
8240 errors for now.
8241 (all-local): Add $(INFOS).
8242 (install-local): Install info files.
8243 (uninstall): Uninstall info files.
8244 * docs/version.texi: Remove from revision control. This file is
8245 automatically generated on build now.
8246 * gendistlist.sh: Add `*.info'.
8247
8248 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
8249
8250 * kern/term.c: Fix indentation.
8251
8252 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
8253
8254 * util/hostdisk.c: Fix a comment.
8255
8256 2009-09-20 Robert Millan <rmh.grub@aybabtu.com>
8257
8258 Fix regression introduced in r2539.
8259
8260 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
8261 to 0xA1.
8262
8263 2009-09-19 Colin Watson <cjwatson@ubuntu.com>
8264
8265 * util/grub.d/30_os-prober.in: Don't throw away stderr from
8266 os-prober. Under normal operation, it does not print anything to
8267 stderr; if it does, we need to debug it, and throwing away stderr
8268 makes that excessively difficult.
8269
8270 2009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
8271
8272 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
8273
8274 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
8275
8276 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
8277 AC_LANG_PROGRAM from autoconf.
8278 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
8279 prototypes (fixes warning).
8280
8281 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
8282 `--disable-werror' was used.
8283
8284 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
8285
8286 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
8287 uninitialized `lastaddr'.
8288
8289 2009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
8290
8291 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
8292
8293 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
8294
8295 * commands/test.c (get_fileinfo): Return immediately if
8296 grub_fs_probe fails.
8297
8298 2009-09-14 José Martínez <xosemp@gmail.com>
8299
8300 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
8301
8302 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
8303
8304 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
8305 output.
8306
8307 2009-09-13 Robert Millan <rmh.grub@aybabtu.com>
8308
8309 * configure.ac: Remove --enable-grub-pe2elf. Only build
8310 grub-pe2elf when needed by the build system itself.
8311 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
8312
8313 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
8314
8315 * configure.ac: Bump version to 1.97~beta3.
8316 * docs/version.texi: Likewise.
8317
8318 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
8319
8320 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
8321 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
8322 from here ...
8323 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
8324 (grub_linux_setup_video): ... to here (with some adjustments).
8325
8326 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
8327
8328 Fix memory corruption issue (spotted by Colin Watson).
8329
8330 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
8331 causing returned size to be stored in an incorrect memory location.
8332 Fix use of uninitialized value when storing the returned size.
8333
8334 2009-09-12 Yves Blusseau <blusseau@zetam.org>
8335
8336 Change clean rules to properly remove files
8337
8338 * genmk.rb: add new clean rules
8339 * Makefile.in (clean): add the new targets
8340 (mostlyclean): likewise
8341
8342 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
8343
8344 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
8345 to grub_uint64_t.
8346 * fs/ntfs.c (init_file): Understand 64-bit sizes for
8347 non-resident files.
8348
8349 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
8350
8351 * configure.ac: Don't look for help2man when cross-compiling. Fixes
8352 part of bug #27349.
8353
8354 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
8355
8356 * util/grub-mkconfig.in: Make the created config mode 400 and
8357 print a warning if it fails.
8358
8359 2009-09-10 Robert Millan <rmh.grub@aybabtu.com>
8360
8361 * util/grub.d/40_custom.in: Ask user to type custom entries below
8362 comment, rather than below 'exec tail' line.
8363
8364 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
8365
8366 * util/grub.d/40_custom.in: Make sure that the explanatory text is
8367 visible in grub.cfg.
8368
8369 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
8370
8371 * util/grub.d/40_custom.in: Make it a little clearer how to use this
8372 file.
8373
8374 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
8375
8376 * docs/grub.cfg: Add an example menu entry for memtest86+.
8377
8378 2009-09-09 Felix Zielcke <fzielcke@z-51.de>
8379
8380 * config.guess: Update to latest version from config git.
8381 * config.sub: Likewise.
8382
8383 2009-09-08 Colin Watson <cjwatson@ubuntu.com>
8384
8385 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
8386 unknown-command case. Fixes bug #27320.
8387
8388 2009-09-08 Felix Zielcke <fzielcke@z-51.de>
8389
8390 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
8391 `help' if the command exists.
8392
8393 2009-09-06 Robert Millan <rmh.grub@aybabtu.com>
8394
8395 * INSTALL: Require GCC 4.1.3 or later.
8396
8397 2009-09-06 Yves Blusseau <blusseau@zetam.org>
8398
8399 * Makefile.in (RMKFILES): add i386-qemu.rmk
8400 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
8401 $(srcdir)/stamp-h.in
8402
8403 2009-09-05 Robert Millan <rmh.grub@aybabtu.com>
8404
8405 * util/grub-probe.c (probe): Comment out buggy codepath, which
8406 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
8407 should be re-enabled after 1.97.
8408
8409 2009-09-05 Felix Zielcke <fzielcke@z-51.de>
8410
8411 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
8412 find searches for.
8413
8414 2009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
8415
8416 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
8417 unnecessary calls to grub_error.
8418
8419 2009-09-04 Colin Watson <cjwatson@ubuntu.com>
8420
8421 * NEWS: Mention `keystatus' and Unicode fonts.
8422
8423 2009-09-04 Robert Millan <rmh.grub@aybabtu.com>
8424
8425 * configure.ac: Bump version to 1.97~beta2.
8426 * docs/version.texi: Likewise.
8427
8428 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
8429
8430 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
8431 containing unwind information in some cases where it previously did
8432 not. Use -fno-dwarf2-cfi-asm if available to restore the old
8433 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
8434 discussion.
8435
8436 2009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
8437
8438 Embedding loadenv module into grub-emu
8439
8440 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
8441 commands/loadenv.c
8442 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
8443 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
8444 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
8445 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
8446 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
8447 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
8448
8449 2009-09-03 Magnus Granberg <zorry@ume.nu>
8450
8451 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
8452 include -fPIE in the default specs.
8453 * configure.ac: Check if pie_possible is yes and add -fno-PIE
8454 to TARGET_CFLAGS.
8455
8456 2009-09-03 Felix Zielcke <fzielcke@z-51.de>
8457
8458 * INSTALL: Note that GNU Bison 2.3 or later is required.
8459
8460 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
8461
8462 * kern/i386/pc/startup.S: Fix typo.
8463
8464 2009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
8465
8466 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
8467 according to GCS.
8468
8469 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
8470
8471 * docs/grub.texi (Naming convention): Describe one-based partition
8472 numbering.
8473 (Device syntax): Likewise.
8474 (File name syntax): Likewise.
8475 (Block list syntax): Likewise.
8476 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
8477 menu.lst.
8478 (File name syntax): Likewise.
8479 (Command-line and menu entry commands): Document acpi, blocklist,
8480 crc, export, insmod, keystatus, ls, set, and unset commands.
8481
8482 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
8483
8484 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
8485 to avoid implying that only one of --shift, --ctrl, or --alt may be
8486 used.
8487
8488 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
8489
8490 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
8491 rather than comparing against S_IFREG, which will almost never work.
8492
8493 2009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
8494
8495 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
8496 (write_blocklists): Likewise.
8497
8498 2009-09-01 Colin Watson <cjwatson@ubuntu.com>
8499
8500 * script/lua/grub_lua.h (fputs): Supply a format string as the first
8501 argument to grub_printf.
8502
8503 2009-09-01 Felix Zielcke <fzielcke@z-51.de>
8504
8505 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
8506 non GNU test.
8507
8508 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
8509
8510 * kern/file.c (grub_file_read): Spelling fix
8511
8512 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
8513
8514 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
8515 loading of headers in some cases.
8516
8517 2009-08-30 Robert Millan <rmh.grub@aybabtu.com>
8518
8519 * configure.ac: Bump version to 1.97~beta1.
8520 * docs/version.texi: Likewise.
8521
8522 2009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
8523
8524 * include/grub/i386/xnu.h: Add license header.
8525 include grub/err.h explicitly.
8526
8527 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
8528
8529 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
8530 to `ufs' in the vfs.root.mountfrom kernel parameter.
8531
8532 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
8533
8534 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
8535
8536 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
8537 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
8538
8539 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
8540 `ARRAY_SIZE' macro.
8541
8542 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
8543
8544 * kern/file.c (grub_file_read): Check offset.
8545 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
8546 * fs/jfs.c (grub_jfs_read_file): Likewise.
8547 * fs/ntfs.c (grub_ntfs_read): Likewise.
8548 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
8549 * fs/minix.c (grub_minix_read_file): Correct offset check.
8550 * fs/ufs.c (grub_ufs_read_file): Likewise.
8551
8552 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
8553
8554 * term/i386/pc/console.c (bios_data_area): Cast
8555 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
8556
8557 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
8558
8559 1-bit optimised blitters.
8560
8561 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
8562 prototype.
8563 (grub_video_fbblit_replace_24bit_1bit): Likewise.
8564 (grub_video_fbblit_replace_16bit_1bit): Likewise.
8565 (grub_video_fbblit_replace_8bit_1bit): Likewise.
8566 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
8567 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
8568 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
8569 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
8570 function.
8571 (grub_video_fbblit_replace_24bit_1bit): Likewise.
8572 (grub_video_fbblit_replace_16bit_1bit): Likewise.
8573 (grub_video_fbblit_replace_8bit_1bit): Likewise.
8574 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
8575 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
8576 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
8577 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
8578 when possible.
8579 * video/video.c (grub_video_get_blit_format): Return
8580 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
8581
8582 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
8583
8584 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
8585 the first argument to grub_printf.
8586
8587 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
8588 2009-08-28 Robert Millan <rmh.grub@aybabtu.com>
8589
8590 Add `getkeystatus' terminal method. Add a new `keystatus' command
8591 to query it.
8592
8593 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
8594 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
8595 modifier key bitmasks.
8596 (struct grub_term_input): Add `getkeystatus' member.
8597 (grub_getkeystatus): Add prototype.
8598 * kern/term.c (grub_getkeystatus): New function.
8599
8600 * include/grub/i386/pc/memory.h
8601 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
8602 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
8603 Data Area layout.
8604 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
8605 (grub_console_term_input): Set `getkeystatus' member.
8606 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
8607 constants.
8608 (grub_usb_keyboard_getreport): Likewise.
8609 (grub_usb_keyboard_checkkey): Likewise.
8610 (grub_usb_keyboard_getkeystatus): New function.
8611 (grub_usb_keyboard_term): Set `getkeystatus' member.
8612
8613 * commands/keystatus.c: New file.
8614 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
8615 (keystatus_mod_SOURCES): New variable.
8616 (keystatus_mod_CFLAGS): Likewise.
8617 (keystatus_mod_LDFLAGS): Likewise.
8618 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
8619 commands/keystatus.c.
8620 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
8621 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8622 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
8623 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8624 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8625 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
8626
8627 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
8628
8629 Split befs.mod and afs.mod into *_be.mod and *.mod
8630
8631 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
8632 (grub_fstest_SOURCES): Likewise.
8633 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
8634 (afs_be_mod_SOURCES): New variable.
8635 (afs_be_mod_CFLAGS): Likewise.
8636 (afs_be_mod_LDFLAGS): Likewise.
8637 (befs_be_mod_SOURCES): Likewise.
8638 (befs_be_mod_CFLAGS): Likewise.
8639 (befs_be_mod_LDFLAGS): Likewise.
8640 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
8641 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
8642 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8643 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
8644 (grub_emu_SOURCES): Likewise.
8645 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8646 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8647 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
8648 * fs/afs_be.c: New file.
8649 * fs/befs_be.c: New file.
8650 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
8651 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
8652 (U16): Replaced with ...
8653 (grub_afs_to_cpu16): ...this. All users updated.
8654 (U32): Replaced with ...
8655 (grub_afs_to_cpu32): ...this. All users updated.
8656 (U64): Replaced with ...
8657 (grub_afs_to_cpu64): ...this. All users updated.
8658 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
8659 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
8660 (grub_afs_validate_sblock): Check only one endianness.
8661 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
8662 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
8663 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
8664 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
8665 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
8666 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
8667 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
8668 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
8669
8670 2009-08-26 Bean <bean123ch@gmail.com>
8671
8672 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
8673 64-bit number.
8674 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
8675 (grub_xfs_inode_block): Change return type to grub_uint64_t.
8676 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
8677
8678 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
8679
8680 NetBSD memory map support.
8681
8682 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
8683 (grub_netbsd_btinfo_mmap_header): New structure.
8684 (grub_netbsd_btinfo_mmap_entry): Likewise.
8685 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
8686
8687 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
8688
8689 Enable bsd.mod on coreboot.
8690
8691 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
8692 (bsd_mod_SOURCES): New variable.
8693 (bsd_mod_CFLAGS): Likewise.
8694 (bsd_mod_LDFLAGS): Likewise.
8695 (bsd_mod_ASFLAGS): Likewise.
8696 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
8697 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
8698
8699 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
8700
8701 Cleanup NetBSD root support.
8702
8703 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
8704 grub_bsd_get_device.
8705 Fix typo.
8706
8707 2009-08-25 Felix Zielcke <fzielcke@z-51.de>
8708
8709 * util/grub.d/00_header.in: Move check for the video backend of
8710 gfxterm from here ...
8711 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
8712 a suitable video backend.
8713
8714 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
8715
8716 Fix breakage in grub-setup.
8717
8718 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
8719 "msdos_partition_map".
8720
8721 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
8722
8723 Fix breakage in normal/auth.c.
8724
8725 * normal/auth.c (grub_iswordseparator): New function.
8726
8727 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
8728
8729 Authentication support.
8730
8731 * commands/password.c: New file.
8732 * conf/common.rmk (pkglib_MODULES): Add password.mod.
8733 (password_mod_SOURCES): New variable.
8734 (password_mod_CFLAGS): Likewise.
8735 (password_mod_LDFLAGS): Likewise.
8736 (normal_mod_SOURCES): Add normal/auth.c.
8737 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
8738 normal/auth.c.
8739 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
8740 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8741 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
8742 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8743 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8744 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
8745 * include/grub/auth.h: New file.
8746 * include/grub/err.h (grub_err_t): New enum value
8747 GRUB_ERR_ACCESS_DENIED.
8748 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
8749 'users'.
8750 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
8751 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
8752 users updated.
8753 * normal/auth.c: New file.
8754 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
8755 (grub_cmdline_run): Don't allow to go to command line without
8756 authentication.
8757 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
8758 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
8759 menuentry without superuser rights.
8760 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
8761 user isn't a superuser.
8762
8763 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
8764
8765 Save space by inlining misc.c functions.
8766
8767 * kern/misc.c (grub_iswordseparator): Made static.
8768 * kern/misc.c (grub_strcat): Moved from here ...
8769 * include/grub/misc.h (grub_strcat): ... here. Inlined.
8770 * kern/misc.c (grub_strncat): Moved from here ...
8771 * include/grub/misc.h (grub_strncat): ... here. Inlined.
8772 * kern/misc.c (grub_strcasecmp): Moved from here ...
8773 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
8774 * kern/misc.c (grub_strncasecmp): Moved from here ...
8775 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
8776 * kern/misc.c (grub_isalpha): Moved from here ...
8777 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
8778 * kern/misc.c (grub_isdigit): Moved from here ...
8779 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
8780 * kern/misc.c (grub_isgraph): Moved from here ...
8781 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
8782 * kern/misc.c (grub_tolower): Moved from here ...
8783 * include/grub/misc.h (grub_tolower): ... here. Inlined.
8784
8785 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
8786
8787 * script/sh/function.c (grub_script_function_find): Cut error message
8788 not to flood terminal.
8789 * script/sh/lexer.c (grub_script_yylex): Remove command line length
8790 limit.
8791 * script/sh/script.c (grub_script_arg_add): Duplicate string.
8792
8793 2009-08-24 Colin Watson <cjwatson@ubuntu.com>
8794
8795 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
8796 `report' grub_uint8_t *.
8797 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
8798 Use a 50-millisecond timeout rather than just repeating
8799 grub_usb_keyboard_getreport 50 times.
8800 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
8801
8802 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
8803
8804 Rename *_partition_map to part_*
8805
8806 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
8807 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
8808 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
8809 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
8810 All users updated.
8811 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
8812 All users updated.
8813 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
8814 * util/grub-probe.c (probe_partmap): Don't transform partition name
8815 to get module name.
8816
8817 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
8818
8819 Fix OpenBSD and NetBSD support.
8820
8821 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
8822 memory address conflict.
8823 (OPENBSD_MMAP_ACPI): New definition.
8824 (OPENBSD_MMAP_NVS): Likewise.
8825 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
8826 and OPENBSD_MMAP_NVS.
8827 Add memory map terminator
8828 Explicit cast when calling grub_unix_real_boot.
8829 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
8830
8831 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
8832
8833 Let user specify NetBSD root device.
8834
8835 * loader/i386/bsd.c (netbsd_root): New variable.
8836 (netbsd_opts): New option 'root'.
8837 (NETBSD_ROOT_ARG): New macro.
8838 (grub_netbsd_boot): Use 'netbsd_root'.
8839 (grub_bsd_unload): Free 'netbsd_root'.
8840 (grub_cmd_netbsd): Fill 'netbsd_root'.
8841
8842 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
8843
8844 Support for 64-bit NetBSD.
8845
8846 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
8847 point when booting non-FreeBSD.
8848
8849 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
8850
8851 Support --no-smp and --no-acpi for NetBSD.
8852
8853 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
8854 (NETBSD_AB_NOACPI): Likewise.
8855 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
8856 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
8857
8858 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
8859
8860 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
8861 errors.
8862 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
8863 errors. Call grub_error when needed.
8864
8865 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
8866
8867 * commands/search.c (search_fs): Try searching without autoload first.
8868 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
8869 filesystem module explicitly for faster booting.
8870
8871 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
8872
8873 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
8874
8875 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
8876
8877 * util/grub.d/30_os-prober.in: Disable os-prober if
8878 `GRUB_DISABLE_OS_PROBER' was set to true.
8879
8880 2009-08-23 Robert Millan <rmh.grub@aybabtu.com>
8881
8882 * partmap/pc.c: Rename to ...
8883 * partmap/msdos.c: ... this. Update all users.
8884 (grub_pc_partition_map): Rename to ...
8885 (grub_msdos_partition_map): ... this. Update all users.
8886
8887 * parttool/pcpart.c: Rename to ...
8888 * parttool/msdospart.c: ... this. Update all users.
8889
8890 * include/grub/pc_partition.h: Rename to ...
8891 * include/grub/msdos_partition.h: ... this. Update all users.
8892 (grub_pc_partition_bsd_entry): Rename to ...
8893 (grub_msdos_partition_bsd_entry): ... this. Update all users.
8894 (grub_pc_partition_disk_label): Rename to ...
8895 (grub_msdos_partition_disk_label): ... this. Update all users.
8896 (grub_pc_partition_entry): Rename to ...
8897 (grub_msdos_partition_entry): ... this. Update all users.
8898 (grub_pc_partition_mbr): Rename to ...
8899 (grub_msdos_partition_mbr): ... this. Update all users.
8900 (grub_pc_partition): Rename to ...
8901 (grub_msdos_partition): ... this. Update all users.
8902 (grub_pc_partition_is_empty): Rename to ...
8903 (grub_msdos_partition_is_empty): ... this. Update all users.
8904 (grub_pc_partition_is_extended): Rename to ...
8905 (grub_msdos_partition_is_extended): ... this. Update all users.
8906 (grub_pc_partition_is_bsd): Rename to ...
8907 (grub_msdos_partition_is_bsd): ... this. Update all users.
8908
8909 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
8910 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
8911 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
8912 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
8913 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
8914 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
8915 (gpt_mod_LDFLAGS): Rename to ...
8916 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
8917 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
8918 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
8919 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
8920 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
8921 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
8922 (part_gpt_mod_LDFLAGS): ... this.
8923 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
8924 `pcpart.mod' to `msdospart.mod'.
8925 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
8926 to ...
8927 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
8928 (msdospart_mod_LDFLAGS): ... this.
8929
8930 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
8931
8932 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
8933 (openbsd_opts): Likewise.
8934 (netbsd_opts): Likewise.
8935 (freebsd_flags): Added 0 terminator.
8936 (openbsd_flags): Likewise.
8937 (netbsd_flags): Likewise.
8938 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
8939 (grub_cmd_freebsd): Transformed into extended command.
8940 (grub_cmd_openbsd): Likewise.
8941 (grub_cmd_netbsd): Likewise.
8942 (cmd_freebsd): Changed type to grub_extcmd_t.
8943 (cmd_openbsd): Likewise.
8944 (cmd_netbsd): Likewise.
8945 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
8946 grub_cmd_openbsd as extended commands.
8947 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
8948 cmd_netbsd and cmd_openbsd
8949
8950 2009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
8951
8952 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
8953
8954 2009-08-21 Pavel Roskin <proski@gnu.org>
8955
8956 * Makefile.in (install-local): When checking if a file is in the
8957 build directory, use "test -e" to detect symlinks.
8958
8959 * Makefile.in (install-local): Remove all files in
8960 $(DESTDIR)$(pkglibdir) before installing new files there.
8961
8962 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
8963
8964 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
8965 grub-mkelfimage.
8966
8967 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
8968
8969 * util/grub-mkconfig.in: Don't use gfxterm by default if not
8970 explicitly specified by the user.
8971
8972 2009-08-18 Pavel Roskin <proski@gnu.org>
8973
8974 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
8975 grub_uint8_t pointer for data.
8976 * include/grub/fbutil.h (struct grub_video_fbblit_info):
8977 Likewise.
8978 * video/fb/fbutil.c: Remove unnecessary casts.
8979
8980 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
8981
8982 VBE cleanup.
8983
8984 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
8985 (grub_vbe_set_video_mode): Save active mode info
8986 only after setting the mode.
8987 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
8988 second argument.
8989
8990 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
8991
8992 Rename variables for clarity.
8993
8994 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
8995 (active_vbe_mode_info): ... this. All users updated.
8996 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
8997 All users updated.
8998 (initial_mode): Rename to ...
8999 (initial_vbe_mode): ... this. All users updated.
9000 (mode_in_use): Rename to ..
9001 (vbe_mode_in_use): ... this. All users updated.
9002 (mode_list): Rename to ..
9003 (vbe_mode_list): ... this. All users updated.
9004 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
9005 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
9006 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
9007 'mode_list_size' to 'vbe_mode_list_size'.
9008 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
9009 'best_mode_info' to 'best_vbe_mode_info' and
9010 'best_mode' to 'best_vbe_mode'
9011
9012 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
9013
9014 Remove duplicate grub_video_fb_get_video_ptr.
9015
9016 * include/grub/fbutil.h (get_data_ptr): Rename to ...
9017 (grub_video_fb_get_video_ptr): ... this.
9018 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
9019 * video/fb/fbutil.c: Add comment about addressing.
9020 (get_data_ptr): Rename to ...
9021 (grub_video_fb_get_video_ptr): ... this. All users updated.
9022 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
9023
9024 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
9025
9026 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
9027 grub_dprintf() that was just added.
9028
9029 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
9030
9031 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
9032 (DEFAULT_VIDEO_MODE): Remove macros.
9033 (grub_linux_boot): Remove assumption that Linux has FB support,
9034 and use "text" as default video mode.
9035
9036 2009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
9037
9038 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
9039 grub_dprintf.
9040 * fs/fat.c (grub_fat_read_data): Likewise.
9041
9042 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
9043
9044 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
9045 payload.
9046 (grub_module): Likewise.
9047
9048 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
9049
9050 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
9051 mbi->cmdline but free playground.
9052
9053 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
9054
9055 Handle group offset on UFS1.
9056
9057 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
9058 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
9059
9060 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
9061
9062 Split ufs.mod into ufs1.mod and ufs2.mod.
9063
9064 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
9065 (grub_fstest_SOURCES): Likewise.
9066 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
9067 (ufs_mod_SOURCES): Remove.
9068 (ufs_mod_CFLAGS): Likewise.
9069 (ufs_mod_LDFLAGS): Likewise.
9070 (ufs1_mod_SOURCES): New variable.
9071 (ufs1_mod_CFLAGS): Likewise.
9072 (ufs1_mod_LDFLAGS): Likewise.
9073 (ufs2_mod_SOURCES): New variable.
9074 (ufs2_mod_CFLAGS): Likewise.
9075 (ufs2_mod_LDFLAGS): Likewise.
9076 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
9077 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
9078 Likewise.
9079 (grub_emu_SOURCES): Likewise.
9080 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9081 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
9082 (grub_setup_SOURCES): Likewise.
9083 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9084 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
9085 (grub_setup_SOURCES): Likewise.
9086 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
9087 Likewise.
9088 * fs/ufs2.c: New file.
9089 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
9090
9091 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
9092
9093 Framebuffer split.
9094
9095 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
9096 subsystem at the end.
9097 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
9098 (video_fb_mod_SOURCES): New variable.
9099 (video_fb_mod_CFLAGS): Likewise.
9100 (video_fb_mod_LDFLAGS): Likewise.
9101 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
9102 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
9103 * video/i386/pc/vbeblit.c: Moved from here ...
9104 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
9105 * video/i386/pc/vbefill.c: Moved from here ...
9106 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
9107 * video/i386/pc/vbeutil.c: Moved from here ...
9108 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
9109 * include/grub/i386/pc/vbeblit.h: Moved from here ...
9110 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
9111 * include/grub/i386/pc/vbefill.h: Moved from here ...
9112 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
9113 * include/grub/i386/pc/vbeutil.h: Moved from here ...
9114 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
9115 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
9116 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
9117 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
9118 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
9119 (grub_video_adapter): Added 'get_info_and_fini'.
9120 (grub_video_get_info_and_fini): New prototype.
9121 (grub_video_set_mode): make modestring const char *.
9122 * loader/i386/linux.c (grub_linux_setup_video): Use
9123 grub_video_get_info_and_fini.
9124 (grub_linux_boot): Move modesetting just before booting.
9125 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
9126 grub_video_get_info_and_fini.
9127 * video/i386/pc/vbe.c: Moved framebuffer part ...
9128 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
9129 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
9130 grub_video_fbstd_colors and grub_video_fb_set_palette.
9131 (grub_video_vbe_init): Clear 'framebuffer' variable and use
9132 grub_video_fb_init.
9133 (grub_video_vbe_fini): Use grub_video_fb_fini.
9134 (grub_video_vbe_setup): Use framebuffer.render_target instead of
9135 render_target and use grub_video_fb_set_active_render_target and
9136 grub_video_fb_set_palette.
9137 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
9138 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
9139 (grub_video_vbe_adapter): Use framebuffer.
9140 * video/video.c (grub_video_get_info_and_fini): New function.
9141 (grub_video_set_mode): Make modestring const char *.
9142 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
9143 values are already initialised.
9144
9145 2009-08-14 Pavel Roskin <proski@gnu.org>
9146
9147 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
9148 ABS and APPLE_CC.
9149 * boot/i386/pc/diskboot.S: Likewise.
9150 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
9151 sectors allow compilation on MacOSX.
9152 * conf/i386-pc.rmk: Enable unconditional compilation of
9153 lnxboot.img.
9154
9155 2009-08-13 Colin Watson <cjwatson@ubuntu.com>
9156
9157 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
9158 * util/grub.d/00_header.in: Enter interruptible sleep if
9159 GRUB_HIDDEN_TIMEOUT is set.
9160
9161 2009-08-13 Yves Blusseau <blusseau@zetam.org>
9162
9163 * include/grub/symbol.h: Add the LOCAL macro.
9164 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
9165 starting with "L_".
9166
9167 2009-08-13 Pavel Roskin <proski@gnu.org>
9168
9169 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
9170 any modern compilers we support.
9171
9172 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
9173 Use local labels starting with "L_" so that Apple assembler
9174 knows they are local.
9175
9176 2009-08-10 Robert Millan <rmh.grub@aybabtu.com>
9177
9178 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
9179 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
9180 (bsd_kernel_types): ... this enum.
9181
9182 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
9183 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
9184 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
9185
9186 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
9187 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
9188 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
9189 messages.
9190
9191 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
9192
9193 * util/grub-dumpdevtree: Moved from here ...
9194 * util/i386/efi/grub-dumpdevtree: ... to here.
9195 (hexify): New function. Converts a string to its hex version.
9196 Generate hex versions of "efi" and "device-properties" by calling
9197 hexify() on the ASCII strings rather than by hardcoding numbers.
9198
9199 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
9200
9201 * fs/jfs.c: Update copyright year.
9202
9203 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
9204
9205 * util/grub.d/00_header.in: Fix a comment.
9206 * util/grub.d/10_linux.in: Likewise.
9207 * util/grub.d/10_windows.in: Likewise.
9208 * util/grub.d/10_hurd.in: Likewise.
9209
9210 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
9211
9212 * util/grub-mkconfig.in: Allow the user to specify the used font
9213 with GRUB_FONT.
9214
9215 2009-08-08 Pavel Roskin <proski@gnu.org>
9216
9217 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
9218 available, xfs.mod needs it now.
9219
9220 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
9221 the "g" modifier in sed when the intention is to strip something
9222 once. This fixes comparison of kernels with multiple dashes.
9223
9224 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
9225 on it. Add missing space before closing bracket. Fix
9226 misleading formatting.
9227
9228 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
9229
9230 * docs/grub.texi: Major overhaul. Remove all sections that are
9231 specific to GRUB Legacy, or mostly composed of Legacy-specific
9232 information.
9233
9234 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
9235
9236 * docs/version.texi: New file. Provides version information for
9237 grub.texi.
9238
9239 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
9240
9241 * docs/grub.texi: Update CVS information to SVN.
9242 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
9243
9244 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
9245
9246 * util/grub-mkconfig.in: Remove a wrong `fi'.
9247
9248 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
9249
9250 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
9251 (grub_jfs_uuid): New function.
9252 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
9253
9254 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
9255
9256 * util/grub-mkconfig_lib.in (font_path): Move the functionality
9257 of it to ...
9258 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
9259 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
9260
9261 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
9262
9263 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
9264 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
9265 Update all users.
9266
9267 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
9268 not just "vmlinu[zx]".
9269 Moved from here ...
9270 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
9271 all users.
9272
9273 * util/grub.d/10_linux.in (find_latest): Moved from here ...
9274 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
9275 all users.
9276
9277 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
9278
9279 * util/grub.d/10_freebsd.in: Use an absolute device path for
9280 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
9281
9282 2009-08-06 Felix Zielcke <fzielcke@z-51.de>
9283
9284 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
9285 handling of multiple abstraction modules.
9286
9287 2009-08-04 Robert Millan <rmh.grub@aybabtu.com>
9288
9289 Fix a bug resulting in black screen when loading Linux using a
9290 packed video mode.
9291
9292 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
9293 function.
9294
9295 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
9296 (grub_vbe_bios_getset_dac_palette_width): New function.
9297 (grub_vbe_bios_get_dac_palette_width)
9298 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
9299 grub_vbe_bios_getset_dac_palette_width()).
9300
9301 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
9302 check for return status.
9303 (grub_vbe_get_video_mode_info): When getting information for a packed
9304 mode (<= 8 bpp), obtain DAC palette width using
9305 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
9306 {red,green,blue}_mark_size.
9307
9308 2009-08-04 Felix Zielcke <fzielcke@z-51.de>
9309
9310 * commands/search.c (options): Fix help output to match actual code.
9311
9312 2009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
9313
9314 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
9315 of homegrown code.
9316
9317 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
9318
9319 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
9320 on XFS or ReiserFS.
9321
9322 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
9323
9324 Support Apple partition map with sector size different from 512 bytes.
9325
9326 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
9327 (apple_partition_map_iterate): Respect 'aheader.blocksize'
9328 and 'apart.partmap_size'.
9329
9330 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
9331 2009-08-01 Robert Millan <rmh.grub@aybabtu.com>
9332
9333 Fix cpuid command.
9334
9335 * commands/i386/cpuid.c (options): New variable.
9336 (grub_cmd_cpuid): Return real error.
9337 (GRUB_MOD_INIT(cpuid)): Declare options.
9338
9339 2009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
9340
9341 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
9342 valid.
9343
9344 2009-07-31 Bean <bean123ch@gmail.com>
9345
9346 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
9347 log2_inode.
9348 (grub_fshelp_node): Move inode field to the end.
9349 (grub_xfs_data): Remove inode field.
9350 (grub_xfs_inode_block): Calculate inode size using sblock.
9351 (grub_xfs_inode_offset): Likewise.
9352 (grub_xfs_read_inode): Calculate inode size using sblock.
9353 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
9354 (grub_xfs_iterate_dir): Calculate inode size using sblock.
9355 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
9356 to match inode size.
9357 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
9358 not accessible when data is null.
9359 (grub_xfs_open): Likewise.
9360
9361 2009-07-31 Bean <bean123ch@gmail.com>
9362
9363 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
9364 Don't change pv->disk if it's already set.
9365
9366 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
9367 (grub_raid_register): ... here.
9368 (grub_raid_rescan): Removed.
9369
9370 * include/grub/raid.h (grub_raid_rescan): Removed.
9371
9372 * util/grub-fstest.c: Remove include file <grub/raid.h>.
9373 (fstest): Replace grub_raid_rescan with module fini function followed
9374 by init function.
9375
9376 * util/grub-probe.c: Add include file <grub/raid.h>.
9377 (probe_raid_level): New function.
9378 (probe): Detect abstraction by walking the disk device, support two
9379 level of abstraction (LVM on RAID) when detecting partition map.
9380
9381 2009-07-31 Pavel Roskin <proski@gnu.org>
9382
9383 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
9384 to grub_zalloc(), it was erroneous.
9385 Reported by Bean <bean123ch@gmail.com>
9386
9387 2009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
9388
9389 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
9390 embedding zone, not only the first one.
9391
9392 2009-07-29 Joe Auricchio <jauricchio@gmail.com>
9393
9394 * term/gfxterm.c (clear_char): New function.
9395 (grub_virtual_screen_setup): Use clear_char.
9396 (scroll_up): Likewise.
9397 (grub_virtual_screen_cls): Likewise.
9398
9399 2009-07-29 Felix Zielcke <fzielcke@z-51.de>
9400
9401 * util/deviceiter.c (get_acceleraid_disk_name): New static
9402 function.
9403 (grub_util_iterate_devices): Handle Accelraid devices.
9404 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
9405
9406 2009-07-28 Robert Millan <rmh.grub@aybabtu.com>
9407
9408 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
9409 separator for the suggested gfxpayload string (';' collides with the
9410 parser and needs escaping).
9411
9412 2009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
9413
9414 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
9415 Clear direction flag before jumping to OS.
9416 (grub_multiboot2_real_boot): Likewise.
9417
9418 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
9419
9420 * util/i386/pc/grub-install: Fix parsing of --disk-module
9421 option.
9422
9423 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
9424
9425 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
9426 when embedding.
9427
9428 2009-07-26 Felix Zielcke <fzielcke@z-51.de>
9429
9430 * util/grub-mkconfig.in (package_version): New variable.
9431 Use it do display the version.
9432
9433 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
9434
9435 * kern/file.c (grub_file_open): Revert to previous check with
9436 grub_errno.
9437
9438 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
9439
9440 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
9441 from help line. It's out of sync with code.
9442
9443 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
9444
9445 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
9446 entries on failed boot.
9447
9448 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
9449
9450 * kern/file.c (grub_file_open): Fix an error check.
9451
9452 2009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
9453
9454 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
9455 partition map couldn't be identified.
9456
9457 2009-07-23 Pavel Roskin <proski@gnu.org>
9458
9459 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
9460 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
9461 case of little endian words becomes just an optimization.
9462 Respect const modifier.
9463 (md5_final): Use code that doesn't depend on endianness.
9464
9465 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
9466 to avoid loss of upper bits if align is unsigned and shorter
9467 than addr.
9468
9469 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
9470
9471 UUID support for UFS
9472
9473 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
9474 (grub_ufs_uuid): New function.
9475 (grub_ufs_fs): add .uuid
9476
9477 2009-07-21 Pavel Roskin <proski@gnu.org>
9478
9479 * kern/dl.c (grub_dl_check_header): Make static.
9480
9481 2009-07-21 Felix Zielcke <fzielcke@z-51.de>
9482
9483 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
9484 add drivemap for Vista. It breaks Windows 7.
9485
9486 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
9487
9488 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
9489 128 bytes
9490
9491 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
9492
9493 Add BFS support
9494
9495 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
9496 (grub_fstest_SOURCES): Likewise.
9497 (pkglib_MODULES): Add befs.mod.
9498 (befs_mod_SOURCES): New variable.
9499 (befs_mod_CFLAGS): Likewise.
9500 (befs_mod_LDFLAGS): Likewise.
9501 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
9502 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
9503 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9504 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
9505 (grub_setup_SOURCES): Likewise.
9506 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9507 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9508 (grub_setup_SOURCES): Likewise.
9509 * fs/befs.c: New file.
9510 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
9511 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
9512 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
9513 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
9514 (B_KEY_INDEX_ALIGN): New declaration.
9515 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
9516 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
9517 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
9518 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
9519 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
9520 (grub_afs_mount) [MODE_BFS]: Likewise.
9521 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
9522 (grub_afs_fs): Use GRUB_AFS_FSNAME
9523 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
9524 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
9525 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
9526 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
9527
9528 2009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
9529
9530 * util/getroot.c (find_root_device): Add support for MacOSX.
9531 * util/hostdisk.c: Likewise.
9532
9533 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
9534
9535 * font/font.c (find_glyph): Check whether a font is present to avoid
9536 segmentation fault.
9537
9538 2009-07-20 Joe Auricchio <jauricchio@gmail.com>
9539
9540 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
9541
9542 2009-07-20 Pavel Roskin <proski@gnu.org>
9543
9544 * configure.ac: Trim excessively wordy excuses.
9545
9546 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
9547
9548 Add symlink, mtime and label support to AtheFS.
9549
9550 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
9551 (grub_afs_iterate_dir): Handle symlinks.
9552 (grub_afs_open): Use grub_afs_read_symlink.
9553 (grub_afs_dir): Likewise.
9554 Pass mtime.
9555 (grub_afs_label): New function.
9556 (grub_afs_fs): Add grub_afs_label.
9557 (grub_afs_read_symlink): New function.
9558
9559 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
9560
9561 Fix AtheFS support.
9562
9563 * fs/afs.c: Fix comments style.
9564 (grub_afs_blockrun): Declare as packed.
9565 (grub_afs_datastream): Likewise.
9566 (grub_afs_bnode): Likewise.
9567 (grub_afs_btree): Likewise.
9568 (grub_afs_sblock): Likewise.
9569 Declare `name' as char.
9570 (grub_afs_inode): Declare as packed.
9571 Change void *vnode to grub_uint32_t unused.
9572 (grub_afs_iterate_dir): Check that key_size is positive.
9573 (grub_afs_mount): Don't read superblock twice.
9574 (grub_afs_dir): Don't free node in case of error,
9575 grub_fshelp_find_file already handles this.
9576 (grub_afs_open): Likewise.
9577
9578 2009-07-19 Pavel Roskin <proski@gnu.org>
9579
9580 * Makefile.in: Remove LIBLZO and enable_lzo.
9581 * conf/i386-pc.rmk: Remove lzo support.
9582 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
9583 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
9584 support.
9585 * kern/i386/pc/lzo1x.S: Remove.
9586 * kern/i386/pc/startup.S: Remove lzo support.
9587 * util/i386/pc/grub-mkimage.c: Likewise.
9588
9589 2009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
9590
9591 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
9592 * fs/xfs.c (grub_xfs_dir): Likewise.
9593 * fs/afs.c (grub_afs_dir): Likewise.
9594 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
9595 (grub_iso9660_open): Likewise.
9596 * fs/jfs.c (grub_jfs_open): Likewise.
9597 * fs/ext2.c (grub_ext2_dir): Likewise.
9598 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
9599 * script/sh/lexer.c (grub_script_yylex): Likewise.
9600
9601 2009-07-16 Pavel Roskin <proski@gnu.org>
9602
9603 * configure.ac: Never add "-c" to CFLAGS.
9604
9605 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
9606
9607 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
9608 grub_cv_cc_efiemu should be used.
9609
9610 * configure.ac: Typo fixes.
9611
9612 * kern/mm.c (grub_zalloc): New function.
9613 (grub_debug_zalloc): Likewise.
9614 * include/grub/mm.h: Declare grub_zalloc() and
9615 grub_debug_zalloc().
9616 * util/misc.c (grub_zalloc): New function.
9617 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
9618 instead of grub_malloc(), remove unneeded initializations.
9619 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
9620 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
9621 * commands/parttool.c (grub_cmd_parttool): Likewise.
9622 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
9623 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
9624 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
9625 * disk/usbms.c (grub_usbms_finddevs): Likewise.
9626 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
9627 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
9628 (grub_cmd_efiemu_pnvram): Likewise.
9629 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
9630 * fs/iso9660.c (grub_iso9660_mount): Likewise.
9631 (grub_iso9660_iterate_dir): Likewise.
9632 * fs/jfs.c (grub_jfs_opendir): Likewise.
9633 * fs/ntfs.c (list_file): Likewise.
9634 (grub_ntfs_mount): Likewise.
9635 * kern/disk.c (grub_disk_open): Likewise.
9636 * kern/dl.c (grub_dl_load_core): Likewise.
9637 * kern/elf.c (grub_elf_file): Likewise.
9638 * kern/env.c (grub_env_context_open): Likewise.
9639 (grub_env_set): Likewise.
9640 (grub_env_set_data_slot): Likewise.
9641 * kern/file.c (grub_file_open): Likewise.
9642 * kern/fs.c (grub_fs_blocklist_open): Likewise.
9643 * loader/i386/multiboot.c (grub_module): Likewise.
9644 * loader/xnu.c (grub_xnu_create_key): Likewise.
9645 (grub_xnu_create_value): Likewise.
9646 * normal/main.c (grub_normal_add_menu_entry): Likewise.
9647 (read_config_file): Likewise.
9648 * normal/menu_entry.c (make_screen): Likewise.
9649 * partmap/sun.c (sun_partition_map_iterate): Likewise.
9650 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
9651 * script/sh/script.c (grub_script_parse): Likewise.
9652 * video/bitmap.c (grub_video_bitmap_create): Likewise.
9653 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
9654 * video/readers/png.c (grub_png_output_byte): Likewise.
9655 (grub_video_reader_png): Likewise.
9656
9657 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
9658
9659 Enable all targets that can be built by default
9660
9661 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
9662 grub-mkfont and grub-fstest if they can be built
9663
9664 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
9665
9666 Fix hang and segmentation fault in grub-emu-usb
9667
9668 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
9669 * util/usb.c (grub_libusb_devices): likewise
9670 (grub_libusb_init): rename to ...
9671 (GRUB_MOD_INIT (libusb)):...this
9672 (grub_libusb_fini): rename to ..
9673 (GRUB_MOD_FINI (libusb)):...this
9674 * disk/usbms.c (grub_usbms_transfer): fix retry logic
9675 * include/grub/disk.h (grub_raid_init): removed, it's useless
9676 (grub_raid_fini): likewise
9677 (grub_lvm_init): likewise
9678 (grub_lvm_fini): likewise
9679 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
9680 by grub_init_all
9681
9682 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
9683
9684 Fix libusb
9685
9686 * Makefile.in (LIBUSB): new macro
9687 * genmk.rb (Utility/print_tail): new method
9688 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
9689 (top level): call util.print_tail at the end.
9690
9691 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
9692
9693 Make FreeBSD accept zpool.cache
9694
9695 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
9696 type is /boot/zfs/zpool.cache
9697
9698 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
9699
9700 Fix 64-bit efiemu
9701
9702 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
9703 correct wrong typedef
9704 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
9705
9706 2009-07-15 Pavel Roskin <proski@gnu.org>
9707
9708 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
9709 * kern/disk.c (struct grub_disk_cache): Likewise.
9710
9711 * commands/probe.c (options): Typo fix.
9712
9713 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
9714 Increase to 0x5a to accommodate FAT32. Adjust other offsets
9715 accordingly.
9716 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
9717
9718 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
9719 the end of "Error" to make the message more readable.
9720
9721 * boot/i386/pc/boot.S (kernel_segment): Remove.
9722 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
9723 for destination.
9724
9725 * boot/i386/pc/boot.S (boot_version): Remove.
9726 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
9727 Remove.
9728
9729 * include/grub/i386/pc/boot.h: Sort all offsets.
9730 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
9731 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
9732 * boot/i386/pc/boot.S: Assert location of every offset listed in
9733 include/grub/i386/pc/boot.h.
9734
9735 2009-07-13 Pavel Roskin <proski@gnu.org>
9736
9737 * include/grub/i386/coreboot/machine.h: Rename
9738 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
9739 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
9740 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
9741
9742 * kern/dl.c: Force native word size to suppress warnings when
9743 compiling grub-emu.
9744
9745 * kern/device.c (grub_device_iterate): Change struct part_ent to
9746 hold the name, not a pointer to it. Use one grub_malloc() per
9747 partition, not two. Free partition_name if grub_malloc() fails.
9748 Set ents to NULL only before grub_partition_iterate() is called.
9749
9750 2009-07-11 Bean <bean123ch@gmail.com>
9751
9752 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
9753 childname.
9754
9755 2009-07-10 Bean <bean123ch@gmail.com>
9756 2009-07-10 Robert Millan <rmh.grub@aybabtu.com>
9757
9758 * kern/ieee1275/openfw.c (grub_children_iterate)
9759 (grub_devalias_iterate): Fix size evaluation for property or path
9760 strings, which was broken since r2132.
9761
9762 2009-07-07 Pavel Roskin <proski@gnu.org>
9763
9764 * commands/search.c (search_file): Merge into ...
9765 (search_fs): ... this. Accept search type as argument.
9766 (grub_cmd_search): Pass search type to search_fs().
9767
9768 * include/grub/util/console.h: New file.
9769 * util/console.c: Use it instead of grub/machine/console.h.
9770 * util/grub-emu.c: Likewise.
9771
9772 * lib/arg.c (find_long_option): Remove.
9773 (find_long): Add `len' argument, make `s' const char *.
9774 (grub_arg_parse): Parse long options in place, not in a
9775 temporary buffer.
9776
9777 2009-07-06 Pavel Roskin <proski@gnu.org>
9778
9779 * commands/search.c (search_fs): Fix potential NULL pointer
9780 dereference.
9781
9782 * commands/search.c (search_fs): Replace QUID macro with quid_fn
9783 function pointer.
9784
9785 2009-07-06 Daniel Mierswa <impulze@impulze.org>
9786
9787 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
9788 comparison.
9789
9790 2009-07-05 Pavel Roskin <proski@gnu.org>
9791
9792 * include/grub/i386/linux.h (struct linux_kernel_params):
9793 Restore padding3, it's still needed.
9794
9795 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
9796 FreeBSD.
9797 * util/osdetect.lua: Likewise.
9798
9799 2009-07-05 Bean <bean123ch@gmail.com>
9800
9801 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
9802
9803 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
9804 (grub_lua_getenv): Likewise.
9805 (grub_lua_setenv): Likewise.
9806 (save_errno): New function.
9807 (push_result): Likewise.
9808 (grub_lua_enum_device): Likewise.
9809 (grub_lua_enum_file): Likewise.
9810 (grub_lua_file_open): Likewise.
9811 (grub_lua_file_close): Likewise.
9812 (grub_lua_file_seek): Likewise.
9813 (grub_lua_file_read): Likewise.
9814 (grub_lua_file_getline): Likewise.
9815 (grub_lua_file_getsize): Likewise.
9816 (grub_lua_file_getpos): Likewise.
9817 (grub_lua_file_eof): Likewise.
9818 (grub_lua_file_exist): Likewise.
9819 (grub_lua_add_menu): Likewise.
9820
9821 * script/lua/grub_lua.h (isupper): New inline function.
9822 (islower): Likewise.
9823 (ispunct): Likewise.
9824 (isxdigit): Likewise.
9825 (strcspn): Change to normal function.
9826 (strpbkr): New function declaration.
9827 (memchr): Likewise.
9828
9829 * script/lua/grub_main.c (scan_str): New function.
9830 (strcspn): Likewise.
9831 (strpbrk): Likewise.
9832 (memchr): Likewise.
9833
9834 * script/lua/linit.c (lualibs): Enable the string library.
9835
9836 * util/osdetect.lua: New file.
9837
9838 2009-07-04 Robert Millan <rmh.grub@aybabtu.com>
9839
9840 * include/grub/i386/linux.h (struct linux_kernel_params): Add
9841 `capabilities' member.
9842
9843 2009-07-02 Pavel Roskin <proski@gnu.org>
9844
9845 * genparttoollist.sh: Add missing newline at the end.
9846
9847 2009-07-01 Pavel Roskin <proski@gnu.org>
9848
9849 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
9850
9851 * util/hostdisk.c (open_device): Remove `const' from
9852 `sysctl_size', as sysctlbyname() can change it (in this case it
9853 doesn't actually happen).
9854
9855 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
9856 using signed long int constants.
9857
9858 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
9859 constant to avoid a warning on FreeBSD.
9860
9861 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
9862 where it's needed.
9863
9864 * Makefile.in: Install include/grub/machine symlink.
9865
9866 * Makefile.in: When installing symlinks, use "cp -fR", which
9867 works on FreeBSD and MacOSX.
9868 From Yves Blusseau <cl7m42e02@sneakemail.com>
9869
9870 * kern/dl.c (grub_dl_resolve_symbol): Make static.
9871 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
9872
9873 * util/misc.c: Move grub_reboot() and grub_halt() ...
9874 * util/grub-emu.c: ... here. Make main_env static.
9875 * include/grub/util/misc.h: Remove main_env.
9876
9877 * kern/mm.c: Use correct format to print size_t.
9878
9879 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
9880 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
9881 * kern/powerpc/dl.c: Likewise.
9882 * kern/sparc64/dl.c: Likewise.
9883 * kern/x86_64/dl.c: Likewise.
9884
9885 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
9886
9887 Fix grub-emu build on sparc64-ieee1275.
9888
9889 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
9890 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
9891
9892 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
9893
9894 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
9895 (grub_reboot, grub_halt): New functions.
9896
9897 * util/i386/pc/misc.c: Delete. Update all users.
9898 * util/sparc64/ieee1275/misc.c: Likewise.
9899 * util/powerpc/ieee1275/misc.c: Likewise.
9900
9901 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
9902
9903 * conf/i386.rmk (setjmp_mod_SOURCES)
9904 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
9905 * conf/common.rmk (setjmp_mod_SOURCES)
9906 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
9907 to use $(target_cpu).
9908 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
9909 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
9910 * conf/powerpc-ieee1275.rmk: Likewise.
9911 * conf/sparc64-ieee1275.rmk: Likewise.
9912
9913 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
9914 $(target_cpu) for kern/$(target_cpu)/dl.c.
9915 * conf/i386-efi.rmk: Likewise.
9916 * conf/i386-ieee1275.rmk: Likewise.
9917 * conf/x86_64-efi.rmk: Likewise.
9918 * conf/i386-coreboot.rmk: Likewise.
9919 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
9920 $(target_cpu) for kern/$(target_cpu)/dl.c and for
9921 kern/$(target_cpu)/cache.S.
9922 * conf/sparc64-ieee1275.rmk: Likewise.
9923
9924 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
9925
9926 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
9927 type to `grub_uint8_t', and adjust `padding9' accordingly.
9928
9929 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
9930
9931 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
9932
9933 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
9934 assembly in final jump, using register constraints.
9935
9936 (grub_linux_boot): For text mode, initialize `have_vga' using
9937 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
9938
9939 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
9940 right before the final jump.
9941
9942 Set `video_mode' to 0x3.
9943
9944 Document initialization of `video_page', `video_mode' and
9945 `video_ega_bx'.
9946
9947 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
9948
9949 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
9950 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
9951 and set GRUB_LINUX_FLAG_QUIET appropriately.
9952
9953 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
9954
9955 Fix build on Debian / sparc.
9956
9957 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
9958
9959 2009-06-28 Pavel Roskin <proski@gnu.org>
9960
9961 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
9962 fix a warning.
9963
9964 * util/grub.d/10_linux.in: Match SUSE style initrd names.
9965
9966 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
9967
9968 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
9969 `err'.
9970
9971 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
9972
9973 Revert r2338.
9974
9975 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
9976 file can't be opened. grub_file_open() is already supposed to set
9977 grub_errno / grub_errmsg appropriately.
9978 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
9979
9980 2009-06-27 Pavel Roskin <proski@gnu.org>
9981 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
9982
9983 * include/grub/dl.h: Include grub/elf.h.
9984 (struct grub_dl): Add symtab field.
9985 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
9986 GRUB_MODULES_MACHINE_READONLY.
9987 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
9988 of the header for read-only modules.
9989 (grub_dl_unload): Free mod->symtab for read-only modules.
9990 * kern/i386/dl.c: Use mod->symtab.
9991 * kern/powerpc/dl.c: Likewise.
9992 * kern/sparc64/dl.c: Likewise.
9993 * kern/x86_64/dl.c: Likewise.
9994
9995 * conf/i386-qemu.rmk: New file.
9996 * kern/i386/qemu/startup.S: Likewise.
9997 * kern/i386/qemu/mmap.c: Likewise.
9998 * boot/i386/qemu/boot.S: Likewise.
9999 * include/grub/i386/qemu/time.h: Likewise.
10000 * include/grub/i386/qemu/serial.h: Likewise.
10001 * include/grub/i386/qemu/kernel.h: Likewise.
10002 * include/grub/i386/qemu/console.h: Likewise.
10003 * include/grub/i386/qemu/boot.h: Likewise.
10004 * include/grub/i386/qemu/init.h: Likewise.
10005 * include/grub/i386/qemu/machine.h: Likewise.
10006 * include/grub/i386/qemu/loader.h: Likewise.
10007 * include/grub/i386/qemu/memory.h: Likewise.
10008
10009 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
10010 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
10011 [qemu] (pkglib_IMAGES): Add `boot.img'.
10012 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
10013 [qemu] (boot_img_FORMAT): New variables.
10014 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
10015 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
10016 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
10017 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
10018 [qemu] (kernel_img_FORMAT): New variables.
10019
10020 * configure.ac: Recognise `i386-qemu'.
10021
10022 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
10023 (for no compression).
10024 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
10025 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
10026 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
10027 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
10028 ifdefs).
10029
10030 2009-06-27 Pavel Roskin <proski@gnu.org>
10031
10032 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
10033 read.
10034 * efiemu/prepare32.c: Likewise.
10035 * efiemu/prepare64.c: Likewise.
10036
10037 2009-06-26 Pavel Roskin <proski@gnu.org>
10038
10039 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
10040 * include/grub/elf.h: Define symbols without "32" or "64" based
10041 on GRUB_TARGET_WORDSIZE.
10042 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
10043 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
10044 ELF definitions.
10045 * efiemu/loadcore64.c: Likewise.
10046 * loader/i386/bsd32.c: Likewise.
10047 * loader/i386/bsd64.c: Likewise.
10048 * kern/dl.c: Remove own ELF definitions.
10049 * util/i386/efi/grub-mkimage.c: Likewise.
10050
10051 2009-06-23 Robert Millan <rmh.grub@aybabtu.com>
10052
10053 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
10054 segment 0x0 unconditionally, because the reference generated by
10055 GAS is an absolute address.
10056
10057 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
10058
10059 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
10060 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
10061
10062 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
10063
10064 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
10065 indexes. Check for -f explicitly.
10066 (search_file): Improve error message.
10067 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
10068
10069 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
10070
10071 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
10072 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
10073
10074 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
10075
10076 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
10077 * conf/i386-ieee1275.rmk: Likewise.
10078 * conf/i386-coreboot.rmk: Likewise.
10079
10080 * kern/i386/pc/startup.S (grub_stop): Remove function.
10081 * kern/i386/ieee1275/startup.S: Likewise.
10082 * kern/i386/coreboot/startup.S: Likewise.
10083 * kern/i386/misc.S (grub_stop): New function.
10084
10085 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
10086
10087 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
10088 * kern/i386/realmode.S (real_to_prot): ... to here.
10089
10090 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
10091
10092 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
10093 with `kernel.img'.
10094 (kernel_elf_SOURCES): Rename to ...
10095 (kernel_img_SOURCES): ... this.
10096 (kernel_elf_HEADERS): Rename to ...
10097 (kernel_img_HEADERS): ... this. Update all users.
10098 (kernel_elf_ASFLAGS): Rename to ...
10099 (kernel_img_ASFLAGS): ... this.
10100 (kernel_elf_CFLAGS): Rename to ...
10101 (kernel_img_CFLAGS): ... this.
10102 (kernel_elf_LDFLAGS): Rename to ...
10103 (kernel_img_LDFLAGS): ... this.
10104 * conf/i386-coreboot.rmk: Likewise.
10105 * conf/powerpc-ieee1275.rmk: Likewise.
10106
10107 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
10108 with "kernel.img".
10109
10110 2009-06-21 Pavel Roskin <proski@gnu.org>
10111
10112 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
10113 to match nested functions.
10114 * loader/sparc64/ieee1275/linux.c: Likewise.
10115
10116 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
10117
10118 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
10119
10120 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
10121 all i386 platforms.
10122
10123 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
10124
10125 Fix asm file handling on ELF, and remove workarounds.
10126
10127 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
10128 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
10129 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
10130 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
10131
10132 2009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
10133
10134 Load BSD ELF modules
10135
10136 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
10137 and loader/i386/bsd64.c
10138 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
10139 (FREEBSD_MODTYPE_ELF_MODULE): New definition
10140 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
10141 (grub_freebsd_load_elfmodule32): New declaration
10142 (grub_freebsd_load_elfmoduleobj64): Likewise
10143 (grub_freebsd_load_elf_meta32): Likewise
10144 (grub_freebsd_load_elf_meta64): Likewise
10145 (grub_freebsd_add_meta): Likewise
10146 (grub_freebsd_add_meta_module): Likewise
10147 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
10148 (grub_freebsd_add_meta_module): Likewise and move module-specific
10149 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
10150 (grub_cmd_freebsd): Add elf-kernel specific parts
10151 based on grub_freebsd_add_meta_module
10152 (grub_cmd_freebsd_module): Add type parsing moved from
10153 grub_freebsd_add_meta_module
10154 (grub_cmd_freebsd_module_elf): New function
10155 (cmd_freebsd_module_elf): New variable
10156 (GRUB_MOD_INIT): Register freebsd_module_elf
10157 * loader/i386/bsd32.c: New file
10158 * loader/i386/bsd64.c: Likewise
10159 * loader/i386/bsdXX.c: Likewise
10160 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
10161 (grub_elf64_load): Likewise
10162 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
10163 All users updated
10164 (grub_elf64_load_hook_t): Likewise
10165
10166 2009-06-21 Colin Watson <cjwatson@ubuntu.com>
10167
10168 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
10169 variable.
10170 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
10171 don't write a menu entry for recovery mode.
10172
10173 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
10174
10175 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
10176 after it's no longer needed.
10177
10178 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
10179
10180 * include/grub/i386/loader.h (grub_linux_prot_size)
10181 (grub_linux_tmp_addr, grub_linux_real_addr)
10182 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
10183 GRUB_MACHINE_PCBIOS.
10184 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
10185 common grub_util_info() call to ...
10186 (generate_image): ... here.
10187 Fix use of uninitialized memory, comparison of signed with
10188 unsigned integers and memory leak.
10189 Remove bogus module address message.
10190
10191 2009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
10192
10193 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
10194 grub_raid_register
10195 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
10196
10197 2009-06-19 Pavel Roskin <proski@gnu.org>
10198
10199 * configure.ac: Remove stray AC_MSG_CHECKING.
10200
10201 2009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
10202
10203 * disk/scsi.c (grub_scsi_open): use continue instead of big if
10204
10205 2009-06-18 Pavel Roskin <proski@gnu.org>
10206
10207 * conf/common.rmk: Add fs_file.mod.
10208 * disk/fs_file.c: New file.
10209 * include/grub/disk.h (enum grub_disk_dev_id): Add
10210 GRUB_DISK_DEVICE_FILE_ID.
10211
10212 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
10213
10214 Fix build with Apple's toolchain. Part 2
10215
10216 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
10217 a fake start
10218
10219 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
10220
10221 Fix build with Apple's toolchain. Part 1
10222
10223 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
10224 for long calls
10225 * configure.ac: remove a leftover AC_MSG_RESULT
10226 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
10227 Apple's toolchain
10228
10229 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
10230
10231 Fix warnings
10232
10233 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
10234 (decomp_block): initialize ch
10235 use grub_memcpy instead of memcpy
10236
10237 2009-06-17 Pavel Roskin <proski@gnu.org>
10238
10239 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
10240 version, use declarations needed to use vga_text as the startup
10241 console.
10242
10243 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
10244 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
10245 the kernel.
10246 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
10247 and grub_at_keyboard_fini(), it's done on module load and
10248 unload.
10249
10250 2009-06-17 Felix Zielcke <fzielcke@z-51.de>
10251
10252 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
10253 file can't be found.
10254 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
10255
10256 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
10257
10258 Fix newline handling
10259
10260 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
10261 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
10262 (grub_script_yylex): don't segfault on unterminated script
10263 newline terminates command and variable
10264
10265 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
10266
10267 avoid double grub_adjust_range call. Bug reported by David Simner
10268
10269 * kern/disk.c (grub_disk_write): change to raw disk access before
10270 calling disk_read
10271
10272 2009-06-17 Colin Watson <cjwatson@ubuntu.com>
10273
10274 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
10275 spaces, for the benefit of help2man.
10276 * util/i386/efi/grub-mkimage.c (usage): Likewise.
10277
10278 2009-06-16 Pavel Roskin <proski@gnu.org>
10279
10280 * kern/i386/halt.c: Include grub/machine/init.h.
10281 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
10282
10283 2009-06-16 Felix Zielcke <fzielcke@z-51.de>
10284
10285 * util/grub.d/30_os-prober.in: Use ${root} in the generated
10286 drivemap menuentry.
10287
10288 2009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
10289
10290 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
10291 `echo' command.
10292
10293 2009-06-16 Pavel Roskin <proski@gnu.org>
10294
10295 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
10296 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
10297 save %dx, we only need %dl and we never change it.
10298 * boot/i386/pc/cdboot.S: Don't set the root drive.
10299 * boot/i386/pc/pxeboot.S: Likewise.
10300 * include/grub/i386/pc/boot.h: Remove
10301 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
10302 GRUB_BOOT_MACHINE_DRIVE_CHECK.
10303 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
10304 * kern/i386/pc/init.c (make_install_device): Remove references
10305 to grub_root_drive.
10306 * kern/i386/pc/startup.S: Likewise.
10307 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
10308
10309 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
10310
10311 xnu_uuid command
10312
10313 * commands/xnu_uuid.c: new file
10314 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
10315 (xnu_uuid_mod_SOURCES): new variable
10316 (xnu_uuid_mod_CFLAGS): likewise
10317 (xnu_uuid_mod_LDFLAGS): likewise
10318 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
10319 * conf/i386-ieee1275.rmk: likewise
10320 * conf/i386-pc.rmk: likewise
10321 * conf/powerpc-ieee1275.rmk: likewise
10322 * conf/sparc64-ieee1275.rmk: likewise
10323 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
10324
10325 2009-06-16 Pavel Roskin <proski@gnu.org>
10326
10327 * configure.ac: Avoid '==' in test command, it's not portable.
10328
10329 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
10330
10331 Probe command
10332
10333 * commands/probe.c: new file
10334 * conf/common.rmk (pkglib_MODULES): add probe.mod
10335 (probe_mod_SOURCES): new variable
10336 (probe_mod_CFLAGS): likewise
10337 (probe_mod_LDFLAGS): likewise
10338 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
10339 * conf/i386-ieee1275.rmk: likewise
10340 * conf/i386-pc.rmk: likewise
10341 * conf/powerpc-ieee1275.rmk: likewise
10342 * conf/sparc64-ieee1275.rmk: likewise
10343
10344 2009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
10345
10346 Fix handling of string like \"hello\" and "a
10347 b"
10348
10349 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
10350 (grub_script_yylex): fix parsing of quoting, escaping and newline
10351
10352 2009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
10353
10354 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
10355 handling
10356
10357 2009-06-13 Jun Inoue <jun.lambda@gmail.com>
10358
10359 * util/grub-mkconfig.in: Fix parsing of --output option.
10360
10361 2009-06-12 Pavel Roskin <proski@gnu.org>
10362
10363 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
10364 genmk.rb don't need to be generated or installed.
10365
10366 2009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
10367
10368 * commands/i386/pc/drivemap_int13h.S: add more comments
10369
10370 2009-06-11 Pavel Roskin <proski@gnu.org>
10371
10372 * Makefile.in (uninstall): Uninstall manuals.
10373
10374 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
10375 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
10376 and update-grub_lib in two places.
10377 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
10378
10379 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
10380 a compiler warning.
10381
10382 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
10383 `entry_lo' to fix variable shadowing.
10384
10385 2009-06-11 Christian Franke <franke@computer.org>
10386
10387 * kern/misc.c (__enable_execute_stack): Add missing return type
10388 to prevent gcc warning.
10389
10390 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
10391
10392 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
10393
10394 2009-06-11 Pavel Roskin <proski@gnu.org>
10395
10396 * Makefile.in: Don't rely on any scripts being executable.
10397 Always use $(SHELL) to run shell scripts.
10398
10399 * configure.ac: Always define ___main if using -nostdlib. This
10400 fixes tests on Cygwin.
10401
10402 2009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
10403
10404 UDF fix
10405
10406 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
10407 is in bytes and not in blocks
10408
10409 2009-06-11 Pavel Roskin <proski@gnu.org>
10410
10411 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
10412 warning.
10413
10414 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
10415
10416 * util/grub.d/30_os-prober.in: Fix a comment. Source
10417 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
10418 to set the root device. Place drivemap command in the generated
10419 chain entry.
10420
10421 2009-06-11 Pavel Roskin <proski@gnu.org>
10422
10423 * configure.ac: Remove host_m32. Issues with 64-bit utilities
10424 have long been resolved.
10425
10426 2009-06-11 Colin Watson <cjwatson@ubuntu.com>
10427
10428 * util/grub.d/10_linux.in: Capitalise "Linux".
10429
10430 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
10431
10432 2009-06-11 Pavel Roskin <proski@gnu.org>
10433
10434 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
10435 fix a gcc warning and ensure that the function won't ever exit.
10436
10437 * kern/i386/ieee1275/init.c: Add missing prototype for
10438 grub_stop_floppy().
10439
10440 * loader/ieee1275/multiboot2.c [__i386__]: Include
10441 grub/cpu/multiboot.h.
10442
10443 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
10444 casts to short - they are not portable and cause warnings. Fix
10445 use of uninitialized values in input_buf. Use ARRAY_SIZE.
10446
10447 2009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
10448
10449 Drivemap fixes
10450
10451 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
10452 new function
10453 (grub_get_root_biosnumber_saved): new variable
10454 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
10455 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
10456 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
10457 %dx after the call if necessary
10458 * conf/common.rmk (pkglib_MODULES): remove boot.mod
10459 (boot_mod_SOURCES): remove
10460 (boot_mod_CFLAGS): remove
10461 (boot_mod_LDFLAGS): remove
10462 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
10463 (boot_mod_SOURCES): new variable
10464 (boot_mod_CFLAGS): likewise
10465 (boot_mod_LDFLAGS): likewise
10466 * conf/i386-efi.rmk: likewise
10467 * conf/i386-ieee1275.rmk: likewise
10468 * conf/i386-pc.rmk: likewise
10469 * conf/powerpc-ieee1275.rmk: likewise
10470 * conf/sparc64-ieee1275.rmk: likewise
10471 * conf/x86_64-efi.rmk: likewise
10472 * include/grub/i386/pc/biosnum.h: new file
10473 * lib/i386/pc/biosnum.c: likewise
10474 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
10475 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
10476 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
10477
10478 2009-06-10 Pavel Roskin <proski@gnu.org>
10479
10480 * io/gzio.c (test_header): Don't reuse one buffer for all data.
10481 Use separate variables. Read only the file size at the end, but
10482 not the checksum that we don't use.
10483
10484 * kern/file.c (grub_file_read): Use void pointer for the buffer.
10485 Adjust all callers.
10486
10487 * kern/ieee1275/openfw.c: Remove libc includes.
10488 * kern/ieee1275/cmain.c: Likewise.
10489 * include/grub/ieee1275/ieee1275.h: Likewise.
10490
10491 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
10492 compiler warnings.
10493
10494 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
10495
10496 * Makefile.in: Remove all trailing whitespace.
10497 * conf/i386-pc.rmk: Likewise.
10498 * conf/powerpc-ieee1275.rmk: Likewise.
10499 * conf/sparc64-ieee1275.rmk: Likewise.
10500 * docs/grub.texi: Likewise.
10501 * docs/texinfo.tex: Likewise.
10502 * disk/fs_uuid.c: Likewise.
10503 * disk/lvm.c: Likewise.
10504 * disk/scsi.c: Likewise.
10505 * disk/ata.c: Likewise.
10506 * disk/ieee1275/ofdisk.c: Likewise.
10507 * disk/i386/pc/biosdisk.c: Likewise.
10508 * disk/host.c: Likewise.
10509 * disk/raid.c: Likewise.
10510 * disk/efi/efidisk.c: Likewise.
10511 * disk/usbms.c: Likewise.
10512 * disk/memdisk.c: Likewise.
10513 * disk/loopback.c: Likewise.
10514 * kern/powerpc/dl.c: Likewise.
10515 * kern/device.c: Likewise.
10516 * kern/dl.c: Likewise.
10517 * kern/sparc64/dl.c: Likewise.
10518 * kern/ieee1275/ieee1275.c: Likewise.
10519 * kern/term.c: Likewise.
10520 * kern/fs.c: Likewise.
10521 * kern/i386/dl.c: Likewise.
10522 * kern/i386/pc/startup.S: Likewise.
10523 * kern/i386/pc/init.c: Likewise.
10524 * kern/i386/pc/mmap.c: Likewise.
10525 * kern/i386/pc/lzo1x.S: Likewise.
10526 * kern/i386/ieee1275/init.c: Likewise.
10527 * kern/i386/realmode.S: Likewise.
10528 * kern/i386/tsc.c: Likewise.
10529 * kern/partition.c: Likewise.
10530 * kern/corecmd.c: Likewise.
10531 * kern/file.c: Likewise.
10532 * kern/efi/efi.c: Likewise.
10533 * kern/efi/init.c: Likewise.
10534 * kern/efi/mm.c: Likewise.
10535 * kern/main.c: Likewise.
10536 * kern/err.c: Likewise.
10537 * kern/env.c: Likewise.
10538 * kern/disk.c: Likewise.
10539 * kern/generic/millisleep.c: Likewise.
10540 * kern/generic/rtc_get_time_ms.c: Likewise.
10541 * kern/misc.c: Likewise.
10542 * kern/parser.c: Likewise.
10543 * genmk.rb: Likewise.
10544 * configure.ac: Likewise.
10545 * boot/i386/pc/diskboot.S: Likewise.
10546 * boot/i386/pc/pxeboot.S: Likewise.
10547 * boot/i386/pc/boot.S: Likewise.
10548 * boot/i386/pc/lnxboot.S: Likewise.
10549 * boot/i386/pc/cdboot.S: Likewise.
10550 * parttool/pcpart.c: Likewise.
10551 * video/readers/tga.c: Likewise.
10552 * video/video.c: Likewise.
10553 * video/bitmap.c: Likewise.
10554 * lib/envblk.c: Likewise.
10555 * lib/i386/setjmp.S: Likewise.
10556 * fs/xfs.c: Likewise.
10557 * fs/afs.c: Likewise.
10558 * fs/fat.c: Likewise.
10559 * fs/ntfs.c: Likewise.
10560 * fs/udf.c: Likewise.
10561 * fs/affs.c: Likewise.
10562 * fs/iso9660.c: Likewise.
10563 * fs/hfs.c: Likewise.
10564 * fs/fshelp.c: Likewise.
10565 * fs/ext2.c: Likewise.
10566 * fs/jfs.c: Likewise.
10567 * fs/reiserfs.c: Likewise.
10568 * fs/hfsplus.c: Likewise.
10569 * fs/minix.c: Likewise.
10570 * fs/cpio.c: Likewise.
10571 * fs/sfs.c: Likewise.
10572 * fs/ufs.c: Likewise.
10573 * efiemu/prepare.c: Likewise.
10574 * efiemu/loadcore_common.c: Likewise.
10575 * efiemu/runtime/efiemu.sh: Likewise.
10576 * efiemu/runtime/efiemu.S: Likewise.
10577 * efiemu/runtime/efiemu.c: Likewise.
10578 * efiemu/pnvram.c: Likewise.
10579 * efiemu/main.c: Likewise.
10580 * efiemu/i386/pc/cfgtables.c: Likewise.
10581 * efiemu/i386/loadcore64.c: Likewise.
10582 * efiemu/i386/loadcore32.c: Likewise.
10583 * efiemu/loadcore.c: Likewise.
10584 * efiemu/symbols.c: Likewise.
10585 * efiemu/mm.c: Likewise.
10586 * include/grub/autoefi.h: Likewise.
10587 * include/grub/datetime.h: Likewise.
10588 * include/grub/term.h: Likewise.
10589 * include/grub/hfs.h: Likewise.
10590 * include/grub/lvm.h: Likewise.
10591 * include/grub/i386/tsc.h: Likewise.
10592 * include/grub/i386/linux.h: Likewise.
10593 * include/grub/i386/xnu.h: Likewise.
10594 * include/grub/i386/efiemu.h: Likewise.
10595 * include/grub/i386/pc/biosdisk.h: Likewise.
10596 * include/grub/i386/pc/memory.h: Likewise.
10597 * include/grub/i386/pc/vbe.h: Likewise.
10598 * include/grub/parttool.h: Likewise.
10599 * include/grub/video.h: Likewise.
10600 * include/grub/memory.h: Likewise.
10601 * include/grub/fs.h: Likewise.
10602 * include/grub/partition.h: Likewise.
10603 * include/grub/xnu.h: Likewise.
10604 * include/grub/efi/api.h: Likewise.
10605 * include/grub/efi/pe32.h: Likewise.
10606 * include/grub/efi/memory.h: Likewise.
10607 * include/grub/multiboot.h: Likewise.
10608 * include/grub/usbdesc.h: Likewise.
10609 * include/grub/multiboot2.h: Likewise.
10610 * include/grub/acpi.h: Likewise.
10611 * include/grub/efiemu/efiemu.h: Likewise.
10612 * include/grub/disk.h: Likewise.
10613 * include/grub/ieee1275/ieee1275.h: Likewise.
10614 * include/grub/net.h: Likewise.
10615 * include/grub/machoload.h: Likewise.
10616 * include/grub/macho.h: Likewise.
10617 * include/multiboot.h: Likewise.
10618 * genmoddep.awk: Likewise.
10619 * normal/main.c: Likewise.
10620 * normal/menu_entry.c: Likewise.
10621 * normal/menu_viewer.c: Likewise.
10622 * normal/completion.c: Likewise.
10623 * normal/cmdline.c: Likewise.
10624 * normal/misc.c: Likewise.
10625 * normal/datetime.c: Likewise.
10626 * bus/usb/usbtrans.c: Likewise.
10627 * bus/usb/ohci.c: Likewise.
10628 * bus/usb/uhci.c: Likewise.
10629 * bus/usb/usb.c: Likewise.
10630 * mmap/efi/mmap.c: Likewise.
10631 * mmap/i386/pc/mmap_helper.S: Likewise.
10632 * mmap/i386/pc/mmap.c: Likewise.
10633 * mmap/i386/mmap.c: Likewise.
10634 * mmap/i386/uppermem.c: Likewise.
10635 * mmap/mmap.c: Likewise.
10636 * commands/acpi.c: Likewise.
10637 * commands/echo.c: Likewise.
10638 * commands/blocklist.c: Likewise.
10639 * commands/loadenv.c: Likewise.
10640 * commands/usbtest.c: Likewise.
10641 * commands/boot.c: Likewise.
10642 * commands/parttool.c: Likewise.
10643 * commands/search.c: Likewise.
10644 * commands/cat.c: Likewise.
10645 * commands/i386/pc/play.c: Likewise.
10646 * commands/i386/pc/drivemap.c: Likewise.
10647 * commands/i386/pc/vbeinfo.c: Likewise.
10648 * commands/i386/pc/acpi.c: Likewise.
10649 * commands/i386/pc/vbetest.c: Likewise.
10650 * commands/ls.c: Likewise.
10651 * commands/cmp.c: Likewise.
10652 * commands/test.c: Likewise.
10653 * commands/efi/acpi.c: Likewise.
10654 * commands/gptsync.c: Likewise.
10655 * commands/help.c: Likewise.
10656 * partmap/amiga.c: Likewise.
10657 * partmap/apple.c: Likewise.
10658 * partmap/acorn.c: Likewise.
10659 * partmap/pc.c: Likewise.
10660 * partmap/sun.c: Likewise.
10661 * partmap/gpt.c: Likewise.
10662 * script/sh/lexer.c: Likewise.
10663 * script/sh/function.c: Likewise.
10664 * font/font.c: Likewise.
10665 * font/font_cmd.c: Likewise.
10666 * loader/powerpc/ieee1275/linux.c: Likewise.
10667 * loader/efi/chainloader.c: Likewise.
10668 * loader/multiboot_loader.c: Likewise.
10669 * loader/macho.c: Likewise.
10670 * loader/i386/multiboot.c: Likewise.
10671 * loader/i386/linux.c: Likewise.
10672 * loader/i386/pc/linux.c: Likewise.
10673 * loader/i386/pc/multiboot2.c: Likewise.
10674 * loader/i386/pc/chainloader.c: Likewise.
10675 * loader/i386/pc/xnu.c: Likewise.
10676 * loader/i386/bsd_trampoline.S: Likewise.
10677 * loader/i386/efi/linux.c: Likewise.
10678 * loader/i386/multiboot_elfxx.c: Likewise.
10679 * loader/i386/bsd_helper.S: Likewise.
10680 * loader/i386/bsd.c: Likewise.
10681 * loader/i386/linux_trampoline.S: Likewise.
10682 * loader/i386/xnu_helper.S: Likewise.
10683 * loader/i386/xnu.c: Likewise.
10684 * loader/i386/bsd_pagetable.c: Likewise.
10685 * loader/i386/multiboot_helper.S: Likewise.
10686 * loader/xnu.c: Likewise.
10687 * loader/xnu_resume.c: Likewise.
10688 * io/gzio.c: Likewise.
10689 * term/efi/console.c: Likewise.
10690 * term/terminfo.c: Likewise.
10691 * term/ieee1275/ofconsole.c: Likewise.
10692 * term/i386/pc/serial.c: Likewise.
10693 * term/i386/pc/vesafb.c: Likewise.
10694 * term/i386/pc/vga.c: Likewise.
10695 * term/usb_keyboard.c: Likewise.
10696 * term/gfxterm.c: Likewise.
10697 * aclocal.m4: Likewise.
10698 * util/lvm.c: Likewise.
10699 * util/grub.d/30_os-prober.in: Likewise.
10700 * util/grub.d/10_hurd.in: Likewise.
10701 * util/console.c: Likewise.
10702 * util/grub-macho2img.c: Likewise.
10703 * util/grub-probe.c: Likewise.
10704 * util/hostfs.c: Likewise.
10705 * util/i386/pc/grub-mkimage.c: Likewise.
10706 * util/i386/pc/grub-setup.c: Likewise.
10707 * util/i386/efi/grub-mkimage.c: Likewise.
10708 * util/grub-mkconfig.in: Likewise.
10709 * util/raid.c: Likewise.
10710 * util/resolve.c: Likewise.
10711 * util/grub-mkdevicemap.c: Likewise.
10712 * util/grub-emu.c: Likewise.
10713 * util/getroot.c: Likewise.
10714 * util/hostdisk.c: Likewise.
10715 * util/usb.c: Likewise.
10716 * util/grub-editenv.c: Likewise.
10717 * util/misc.c: Likewise.
10718
10719 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
10720
10721 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
10722 `genparttoollist.sh'.
10723 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
10724 Add `*.sh' to the list find searches for and change `mdate.sh'
10725 to `mdate-sh'.
10726
10727 2009-06-10 Pavel Roskin <proski@gnu.org>
10728
10729 * include/grub/multiboot2.h: Provide compatibility defines for
10730 multiboot2.h.
10731 * include/multiboot2.h: Include stdint.h only if needed, using
10732 angle brackets.
10733 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
10734 grub/multiboot2.h.
10735 * loader/ieee1275/multiboot2.c: Likewise.
10736 * loader/multiboot2.c: Likewise.
10737 * loader/multiboot_loader.c: Likewise.
10738
10739 * configure.ac: Use -nostdlib when probing for the target. It
10740 should not be required to have libc for the target.
10741
10742 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
10743 they fail without libc headers for the target.
10744 * include/grub/powerpc/libgcc.h: Use weak attribute for all
10745 exports.
10746 * include/grub/sparc64/libgcc.h: Likewise. Don't use
10747 preprocessor conditionals.
10748
10749 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
10750 build system doesn't need to be aware of the tar.c internals.
10751
10752 2009-06-09 Michel Hermier <michel.hermier@gmail.com>
10753
10754 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
10755
10756 2009-06-09 Robert Millan <rmh.grub@aybabtu.com>
10757
10758 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
10759 disk limit to 26 for IDE, Virtio, Xen and SCSI.
10760
10761 2009-06-09 Felix Zielcke <fzielcke@z-51.de>
10762
10763 * util/i386/pc/grub-install.in: Change the error message if UUIDs
10764 aren't available if ata.mod gets used.
10765
10766 2009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
10767
10768 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
10769 initialising controller.
10770 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
10771
10772 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
10773
10774 * util/i386/pc/grub-install.in: Add a parameter --disk-module
10775 to choose between ata and biosdisk module on i386-pc.
10776
10777 2009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
10778
10779 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
10780 Subclass and Programming Interface fields in terms of the 3 byte
10781 Class Code register.
10782 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
10783
10784 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
10785 interface is OHCI. Add grub_dprintf for symmetry with
10786 bus/usb/uhci.c.
10787 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
10788 interface is UHCI. Add interf variable for programming
10789 interface. Print interface with class/subclass.
10790
10791 * bus/usb/ohci.c: Set interf with correct field.
10792
10793 * bus/usb/uhci.c: Remove unneeded doubled lines.
10794 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
10795 Remove whitespace inside comment.
10796
10797 2009-06-08 Robert Millan <rmh.grub@aybabtu.com>
10798
10799 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
10800 as fallback an equivalent option without depth.
10801
10802 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
10803
10804 Not fail if unable to retrieve C/H/S on LBA disks
10805
10806 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
10807 if unable to retrieve C/H/S on LBA disks
10808
10809 2009-06-08 Pavel Roskin <proski@gnu.org>
10810
10811 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
10812 about aliasing.
10813
10814 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
10815
10816 * Makefile.in (uninstall): Remove all $lib_DATA files.
10817
10818 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
10819
10820 Bugfix: install on partitionless device
10821
10822 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
10823 is a whole disk
10824
10825 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
10826
10827 * Makefile.in (uninstall): Remove all $include_DATA files.
10828
10829 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
10830
10831 * commands/true.c: New file. Implement the true and false commands.
10832 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
10833 (true_mod_SOURCES): New variable.
10834 (true_mod_CFLAGS): Likewise.
10835 (true_mod_LDFLAGS): Likewise.
10836
10837 2009-06-05 Colin D Bennett <colin@gibibit.com>
10838
10839 Optimized font character lookup using binary search instead of linear
10840 search. Fonts now are required to have the character index ordered by
10841 code point.
10842
10843 * font/font.c (load_font_index): Verify that fonts have ordered
10844 character indices.
10845 (find_glyph): Use binary search instead of linear search to find a
10846 character in a font.
10847
10848 2009-06-05 Michael Scherer <misc@mandriva.org>
10849
10850 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
10851 uses case sensitive btree.
10852 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
10853 only for case insensitive filesystems.
10854
10855 2009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
10856
10857 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
10858 * conf/common.rmk (search_mod_CFLAGS): likewise
10859
10860 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10861
10862 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
10863 compensate a compiler bug
10864
10865 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10866
10867 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
10868 instead of '\b'
10869
10870 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10871
10872 Definitions for creating asm symbols with Apple's CC
10873
10874 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
10875 [APPLE_CC] (VARIABLE): likewise
10876
10877 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10878
10879 Disable lnxboot.img when compiled
10880 with Apple's CC
10881
10882 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
10883 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
10884 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
10885 [! APPLE_CC] (CODE_LENG): skip
10886 [! APPLE_CC] (setup_sects): likewise
10887 [! APPLE_CC]: skip filling
10888
10889 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10890
10891 Address in trampolines based on 32-bit registers when compiled
10892 with Apple's CC
10893
10894 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
10895 for addresses
10896 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
10897
10898 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10899
10900 Avoid aliases when compiling with Apple's CC for PCBIOS machine
10901
10902 * kern/misc.c [APPLE_CC] (memcpy): new function
10903 [APPLE_CC] (memmove): likewise
10904 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
10905 (memcpy): define alias conditionally on !APPLE_CC
10906 (memset): likewise
10907 (abort): likewise
10908 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
10909 APPLE_CC are defined
10910 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
10911 (grub_assert_fail): make prototype conditional
10912
10913 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10914
10915 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
10916
10917 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
10918 grub-macho2img
10919 (CLEANFILES): add grub-macho2img
10920 (grub_macho2img_SOURCES): new variable
10921 * kern/i386/pc/startup.S (bss_start): new variable
10922 (bss_end): likewise
10923 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
10924 * util/grub-macho2img.c: new file
10925
10926 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10927
10928 Use objconv when compiling with Apple's CC
10929
10930 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
10931 (efiemu64.o): likewise
10932 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
10933 when compiling with Apple's CC
10934 (efiemu64_s.o): likewise
10935 * configure.ac: check for objconv when compiling with Apple's CC
10936 * genmk.rb: use objconv for modules when compiled with Apple's CC
10937
10938 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10939
10940 Define segment as well as section when compiling with
10941 Apple's CC
10942
10943 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
10944 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
10945 (efiemu_convert_pointer): likewise
10946 (efiemu_set_virtual_address_map): likewise
10947 (efiemu_convert_pointer): likewise
10948 (efiemu_getcrc32): likewise
10949 (init_crc32_table): likewise
10950 (reflect): likewise
10951 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
10952 (GRUB_MOD_DEP): likewise
10953
10954 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10955
10956 Allow a compilation without -mcmodel=large
10957
10958 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
10959 when compiled without -mcmodel=large
10960 (filter_memory_map): remove memory post 4 GiB when compiled
10961 without -mcmodel=large
10962 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
10963 TARGET_CFLAGS when -mcmodel=large isn't supported
10964
10965 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10966
10967 Remove nested functions in efiemu core
10968
10969 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
10970
10971 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10972
10973 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
10974
10975 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
10976 temporary storage
10977 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
10978 using Apple's CC
10979 (grub_cpu_is_tsc_supported): likewise
10980 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
10981
10982 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10983
10984 Absolute addressing through constant with Apple's cc
10985
10986 * kern/i386/pc/startup.S: Define necessary constants
10987 and address through it when using ABS with Apple's CC
10988 * boot/i386/pc/diskboot.S: likewise
10989 * boot/i386/pc/boot.S: likewise
10990 * boot/i386/pc/lnxboot.S: likewise
10991 * boot/i386/pc/cdboot.S: likewise
10992 * mmap/i386/pc/mmap_helper.S: likewise
10993 * commands/i386/pc/drivemap_int13h.S: likewise
10994
10995 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10996
10997 Check if compiler is apple cc
10998
10999 * Makefile.in (ASFLAGS): new variable
11000 (TARGET_ASFLAGS): likewise
11001 (TARGET_MODULE_FORMAT): likewise
11002 (TARGET_APPLE_CC): likewise
11003 (OBJCONV): likewise
11004 (TARGET_IMG_CFLAGS): likewise
11005 (TARGET_CPPFLAGS): add includedir
11006 * configure.ac: call grub_apple_cc and grub_apple_target_cc
11007 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
11008 Check for linker script only if compiler isn't Apple's CC
11009 (TARGET_MODULE_FORMAT): set
11010 (TARGET_APPLE_CC): likewise
11011 (TARGET_ASFLAGS): likewise
11012 (ASFLAGS): likewise
11013 Check for objcopy only if compiler isn't Apple's CC
11014 Check for BSS symbol only if compiler isn't Apple's CC
11015 * genmk.rb: adapt nm options if we use Apple's utils
11016 * aclocal.m4 (grub_apple_cc): new test
11017 (grub_apple_target_cc): likewise
11018
11019 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11020
11021 Simplify sed expressions and improve awk
11022
11023 * Makefile.in (install-local): simplify sed expression
11024 * gencmdlist.sh: likewise
11025 * genmoddep.awk: avoid adding module as a dependency of itself
11026
11027 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11028
11029 Add missing start symbols
11030
11031 * boot/i386/pc/boot.S: add start
11032 * boot/i386/pc/pxeboot.S: likewise
11033
11034 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11035
11036 Fix wrong assumptions with grub-mkimage on EFI
11037
11038 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
11039 (relocate_addresses): consider both r_addend and value at offset
11040 (make_mods_section): zerofill modinfo and header
11041 (convert_elf): write prefix here
11042
11043 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11044
11045 Use .asciz instead of .string
11046
11047 * i386/pc/diskboot.S: use .asciz instead of .string
11048 * i386/pc/boot.S: likewise
11049 * include/grub/dl.h (GRUB_MOD_DEP): likewise
11050 (GRUB_MOD_NAME): likewise
11051
11052 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11053
11054 gfxpayload support
11055
11056 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
11057 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
11058 (grub_video_setup): remove
11059 (grub_video_set_mode): new prototype
11060 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
11061 (vid_mode): remove
11062 (linux_vesafb_res): compile only on PCBIOS
11063 (grub_linux_boot): support gfxpayload
11064 * loader/i386/pc/xnu.c (video_hook): new function
11065 (grub_xnu_set_video): support gfxpayload
11066 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
11067 (DEFAULT_VIDEO_HEIGHT): likewise
11068 (DEFAULT_VIDEO_FLAGS): likewise
11069 (DEFAULT_VIDEO_MODE): new definition
11070 (video_hook): new function
11071 (grub_gfxterm_init): use grub_video_set_mode
11072 * util/grub.d/30_os-prober.in: remove explicit modesetting before
11073 loading xnu
11074 * video/video.c (grub_video_setup): removed
11075 (grub_video_set_mode): new function based on grub_gfxterm_init and
11076 grub_video_setup
11077
11078 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11079
11080 Avoid calling biosdisk in drivemap
11081
11082 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
11083 (revparse_biosdisk): likewise
11084 (list_mappings): derive name from id directly
11085 (grub_cmd_drivemap): use tryparse_diskstring
11086
11087 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11088
11089 Script fixes
11090
11091 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
11092 (grub_lexer_param): add tokenonhold
11093 (grub_script_create_cmdline): remove cmdline. All callers updated
11094 (grub_script_function_create): make functionname
11095 grub_script_arg. All callers updated
11096 (grub_script_execute_argument_to_string): new prototype
11097 * kern/parser.c (state_transitions): reorder
11098 (grub_parser_cmdline_state): fix a bug and make more compact
11099 * script/sh/execute.c (grub_script_execute_argument_to_string):
11100 make global
11101 (grub_script_execute_cmdline): use new format
11102 * script/sh/function.c (grub_script_function_create): make functionname
11103 grub_script_arg. All callers updated
11104 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
11105 (grub_script_yylex): remove
11106 (grub_script_yylex2): renamed to ...
11107 (grub_script_yylex): ...renamed
11108 parse the expressions like a${b}c
11109 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
11110 (GRUB_PARSER_TOKEN_VAR): remove
11111 (GRUB_PARSER_TOKEN_NAME): likewise
11112 ("if"): declare as typeless
11113 ("while"): likewise
11114 ("function"): likewise
11115 ("else"): likewise
11116 ("then"): likewise
11117 ("fi"): likewise
11118 (text): remove
11119 (argument): likewise
11120 (script): accept empty scripts and make exit on error
11121 (arguments): use GRUB_PARSER_TOKEN_ARG
11122 (function): likewise
11123 (command): move error handling to script
11124 (menuentry): move grub_script_lexer_ref before
11125 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
11126 argument. All callers updated
11127
11128 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
11129
11130 Prevent GRUB from probing floppies during boot.
11131
11132 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
11133 * commands/search.c (options): Add --no-floppy.
11134 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
11135 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
11136 --no-floppy when searching for UUIDs.
11137
11138 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
11139
11140 Simplify the code duplication in commands/search.c.
11141
11142 * commands/search.c (search_label, search_fs_uuid): Merge into ...
11143 (search_fs): ... this. Update all users.
11144
11145 2009-06-03 Felix Zielcke <fzielcke@z-51.de>
11146
11147 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
11148
11149 2009-05-28 Pavel Roskin <proski@gnu.org>
11150
11151 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
11152 Remove the original symlink explicitly.
11153
11154 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
11155 just one slash. That's how grub_fshelp_find_file() does it.
11156
11157 2009-05-26 Pavel Roskin <proski@gnu.org>
11158
11159 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
11160 to `str'.
11161
11162 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
11163 possibly unused.
11164
11165 2009-05-25 Christian Franke <franke@computer.org>
11166
11167 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
11168 register.
11169 (grub_atapi_identify): Add wait after drive select.
11170 (grub_ata_identify): Do more strict status register check before
11171 calling grub_atapi_identify (). Suppress error message if status
11172 register is 0x00 after command failure. Add status register
11173 check after PIO read to avoid bogus identify due to stuck DRQ.
11174 Thanks to Pavel Roskin for testing.
11175 (grub_device_initialize): Remove unsafe status register check.
11176 Thanks to 'phcoder' for problem report and patch.
11177 Prevent sign extension in debug message.
11178
11179 2009-05-23 Colin D Bennett <colin@gibibit.com>
11180
11181 Cleaned up `include/grub/normal.h'. Grouped prototypes by
11182 definition file, and functions defined in `normal/menu.c' have had
11183 their prototypes moved to `include/grub/menu.h' for consistency.
11184
11185 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
11186 from normal.h.
11187 (grub_menu_get_entry): Likewise.
11188 (grub_menu_get_timeout): Likewise.
11189 (grub_menu_set_timeout): Likewise.
11190 (grub_menu_execute_entry): Likewise.
11191 (grub_menu_execute_with_fallback): Likewise.
11192 (grub_menu_entry_run): Likewise.
11193
11194 * include/grub/normal.h: Re-ordered and grouped function
11195 prototypes by file that the function is defined in.
11196 (grub_menu_execute_callback): Removed; moved to menu.h.
11197 (grub_menu_get_entry): Likewise.
11198 (grub_menu_get_timeout): Likewise.
11199 (grub_menu_set_timeout): Likewise.
11200 (grub_menu_execute_entry): Likewise.
11201 (grub_menu_execute_with_fallback): Likewise.
11202 (grub_menu_entry_run): Likewise.
11203 (grub_menu_addentry): Renamed from this ...
11204 (grub_normal_add_menu_entry): ... to this.
11205
11206 * normal/main.c (grub_menu_addentry): Renamed from this ...
11207 (grub_normal_add_menu_entry): ... to this.
11208
11209 * script/sh/execute.c (grub_script_execute_menuentry): Update
11210 reference to renamed grub_menu_addentry function.
11211
11212 2009-05-23 Felix Zielcke <fzielcke@z-51.de>
11213
11214 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
11215
11216 2009-05-22 Pavel Roskin <proski@gnu.org>
11217
11218 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
11219 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
11220 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
11221 compiling for the i386 targets, but not for the utilities.
11222
11223 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
11224 to grub_uint8_t.
11225 (grub_root_drive): Likewise.
11226 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
11227 remove alignment.
11228 (grub_root_drive): Change size to byte.
11229 (grub_start_addr): Remove.
11230 (grub_end_addr): Likewise.
11231 (grub_apm_bios_info): Likewise.
11232
11233 2009-05-21 Felix Zielcke <fzielcke@z-51.de>
11234
11235 * normal/i386: Remove.
11236 * normal/powerpc: Likewise.
11237 * normal/sparc64: Likewise.
11238 * normal/x86_64: Likewise.
11239
11240 2009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
11241
11242 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
11243 * loader/i386/linux_trampoline.S: Fix indentation
11244 * loader/i386/xnu_helper.S: Likewise
11245
11246 2009-05-18 Colin D Bennett <colin@gibibit.com>
11247
11248 Display error messages when parsing a Lua statement fails.
11249 Previously, executing a syntactically invalid statement like
11250 ")foo" or "bar;" would silently fail.
11251
11252 * script/lua/grub_main.c (handle_lua_error): New function.
11253 (grub_lua_parse_line): Improved reporting of Lua parser and
11254 execution errors.
11255
11256 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
11257
11258 Remove -Werror which causes build to fail on some systems
11259
11260 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
11261 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
11262 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
11263
11264 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
11265
11266 trampoline for linux on 64-bit platform
11267
11268 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
11269 loader/i386/efi/linux_trampoline.S
11270 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
11271 declaration
11272 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
11273 here
11274 * loader/i386/linux_trampoline.S: moved here
11275 * loader/i386/efi/linux.c (allocate_pages): reserve space for
11276 trampoline
11277 (jumpvector): removed
11278 (grub_linux_trampoline_start): new declaration
11279 (grub_linux_trampoline_end): likewise
11280 (grub_linux_boot): use trampoline when on 64-bit platform
11281 * loader/i386/linux.c: likewise
11282
11283 2009-05-16 Pavel Roskin <proski@gnu.org>
11284
11285 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
11286 const to avoid a warning.
11287 (grub_lua_setenv): Likewise.
11288 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
11289 lmsg to fix a warning.
11290
11291 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
11292
11293 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
11294 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
11295 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
11296 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
11297 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
11298 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
11299 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
11300 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
11301
11302 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
11303
11304 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
11305
11306 2009-05-16 Bean <bean123ch@gmail.com>
11307
11308 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
11309 (lua_mod_SOURCES): New variable.
11310 (lua_mod_CFLAGS): Likewise.
11311 (lua_mod_LDFLAGS): Likewise.
11312
11313 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
11314 (setjmp_mod_SOURCES): New variable.
11315 (setjmp_mod_CFLAGS): Likewise.
11316 (setjmp_LDFLAGS): Likewise.
11317
11318 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
11319 (setjmp_mod_SOURCES): New variable.
11320 (setjmp_mod_CFLAGS): Likewise.
11321 (setjmp_LDFLAGS): Likewise.
11322
11323 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
11324 (setjmp_mod_SOURCES): New variable.
11325 (setjmp_mod_CFLAGS): Likewise.
11326 (setjmp_LDFLAGS): Likewise.
11327
11328 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
11329 (setjmp_mod_SOURCES): New variable.
11330 (setjmp_mod_CFLAGS): Likewise.
11331 (setjmp_LDFLAGS): Likewise.
11332
11333 * normal/i386/setjmp.S: Moved from here ...
11334 * lib/i386/setjmp.S: ... Moved here
11335 * normal/x86_64/setjmp.S: Moved from here ...
11336 * lib/x86_64/setjmp.S: ... Moved here
11337 * normal/powerpc/setjmp.S: Moved from here ...
11338 * lib/powerpc/setjmp.S: ... Moved here
11339 * normal/sparc64/setjmp.S: Moved from here ...
11340 * lib/sparc64/setjmp.S: ... Moved here
11341
11342 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
11343 returns_twice in mingw.
11344
11345 * script/lua/grub_lib.c: New file.
11346 * script/lua/grub_lib.h: Likewise.
11347 * script/lua/grub_lua.h: Likewise.
11348 * script/lua/grub_main.c: Likewise.
11349 * script/lua/lapi.c: Likewise.
11350 * script/lua/lapi.h: Likewise.
11351 * script/lua/lauxlib.c: Likewise.
11352 * script/lua/lauxlib.h: Likewise.
11353 * script/lua/lbaselib.c: Likewise.
11354 * script/lua/lcode.c: Likewise.
11355 * script/lua/lcode.h: Likewise.
11356 * script/lua/ldblib.c: Likewise.
11357 * script/lua/ldebug.c: Likewise.
11358 * script/lua/ldebug.h: Likewise.
11359 * script/lua/ldo.c: Likewise.
11360 * script/lua/ldo.h: Likewise.
11361 * script/lua/ldump.c: Likewise.
11362 * script/lua/lfunc.c: Likewise.
11363 * script/lua/lfunc.h: Likewise.
11364 * script/lua/lgc.c: Likewise.
11365 * script/lua/lgc.h: Likewise.
11366 * script/lua/linit.c: Likewise.
11367 * script/lua/liolib.c: Likewise.
11368 * script/lua/llex.c: Likewise.
11369 * script/lua/llex.h: Likewise.
11370 * script/lua/llimits.h: Likewise.
11371 * script/lua/lmathlib.c: Likewise.
11372 * script/lua/lmem.c: Likewise.
11373 * script/lua/lmem.h: Likewise.
11374 * script/lua/loadlib.c: Likewise.
11375 * script/lua/lobject.c: Likewise.
11376 * script/lua/lobject.h: Likewise.
11377 * script/lua/lopcodes.c: Likewise.
11378 * script/lua/lopcodes.h: Likewise.
11379 * script/lua/loslib.c: Likewise.
11380 * script/lua/lparser.c: Likewise.
11381 * script/lua/lparser.h: Likewise.
11382 * script/lua/lstate.c: Likewise.
11383 * script/lua/lstate.h: Likewise.
11384 * script/lua/lstring.c: Likewise.
11385 * script/lua/lstring.h: Likewise.
11386 * script/lua/lstrlib.c: Likewise.
11387 * script/lua/ltable.c: Likewise.
11388 * script/lua/ltable.h: Likewise.
11389 * script/lua/ltablib.c: Likewise.
11390 * script/lua/ltm.c: Likewise.
11391 * script/lua/ltm.h: Likewise.
11392 * script/lua/lua.h: Likewise.
11393 * script/lua/luaconf.h: Likewise.
11394 * script/lua/lualib.h: Likewise.
11395 * script/lua/lundump.c: Likewise.
11396 * script/lua/lundump.h: Likewise.
11397 * script/lua/lvm.c: Likewise.
11398 * script/lua/lvm.h: Likewise.
11399 * script/lua/lzio.c: Likewise.
11400 * script/lua/lzio.h: Likewise.
11401
11402 2009-05-16 Bean <bean123ch@gmail.com>
11403
11404 * include/grub/kernel.h (grub_module_header_types): Add type
11405 OBJ_TYPE_CONFIG.
11406
11407 * kern/main.c (grub_load_config): New function.
11408 (grub_main): Call grub_load_config to read boot config.
11409
11410 * grub-mkimage (generate_image): New parameter config_path.
11411 (options): New option --config.
11412 (main): Parse --config option, and pass it to generate_image.
11413
11414 2009-05-14 Christian Franke <franke@computer.org>
11415
11416 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
11417 This fixes build on Cygwin.
11418
11419 2009-05-14 Pavel Roskin <proski@gnu.org>
11420
11421 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
11422 jump. This saves two bytes, so the typical case of 2 swapped
11423 drives would fit 32 bytes.
11424
11425 2009-05-13 Pavel Roskin <proski@gnu.org>
11426
11427 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
11428 grub_uint32_t to avoid a warning.
11429
11430 * loader/i386/linux.c (allocate_pages): When assigning
11431 real_mode_mem, cast through grub_size_t to fix a warning. The
11432 code already makes sure that the value would fit a pointer.
11433 (grub_linux_setup_video): Cast render_target->data to
11434 grub_size_t to fix a warning.
11435
11436 2009-05-13 Javier Martín <lordhabbit@gmail.com>
11437
11438 * commands/i386/pc/drivemap.c: New file - implement drivemap
11439 command.
11440 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
11441 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
11442
11443 2009-05-13 Pavel Roskin <proski@gnu.org>
11444
11445 * util/i386/pc/grub-setup.c (setup): Remove unused variable
11446 embedding_area_exists.
11447
11448 2009-05-13 Robert Millan <rmh.grub@aybabtu.com>
11449
11450 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
11451 it easier to understand / work with.
11452 Improve warning messages for cases where there's no embedding area,
11453 or when it is too small (or core.img too large).
11454
11455 2009-05-13 Pavel Roskin <proski@gnu.org>
11456
11457 * loader/i386/pc/multiboot2.c: Add necessary includes for
11458 grub_multiboot2_real_boot().
11459
11460 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
11461 PX record is always little-endian. We only need the lower 2
11462 bytes of the mode.
11463
11464 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
11465 facilitate code reuse.
11466 (grub_cpio_mount): Use "struct head", not a char buffer. This
11467 fixes a warning reported by gcc 4.4.
11468
11469 * kernel/disk.c (grub_disk_read): Use void pointer for the
11470 buffer.
11471 (grub_disk_write): Use const void pointer for the buffer.
11472 Adjust all callers. Remove unnecessary casts.
11473
11474 2009-05-10 Robert Millan <rmh.grub@aybabtu.com>
11475
11476 * util/i386/pc/grub-install.in: Update copyright year.
11477
11478 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
11479
11480 gptsync
11481
11482 * commands/gptsync.c: new file
11483 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
11484 (gptsync_mod_SOURCES): new variable
11485 (gptsync_mod_CFLAGS): likewise
11486 (gptsync_mod_LDFLAGS): likewise
11487 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
11488 new definition
11489 (GRUB_PC_PARTITION_TYPE_HFS): likewise
11490 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
11491 * conf/i386-ieee1275.rmk: likewise
11492 * conf/i386-pc.rmk: likewise
11493 * conf/powerpc-ieee1275.rmk: likewise
11494
11495 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
11496
11497 Fixed grub-emu
11498
11499 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
11500 (grub_dl_ref): likewise
11501
11502 2009-05-08 Robert Millan <rmh.grub@aybabtu.com>
11503
11504 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
11505 split in two functions (one for msdos and one for gpt).
11506
11507 2009-05-08 Pavel Roskin <proski@gnu.org>
11508
11509 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
11510 not modified.
11511
11512 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
11513 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
11514 Initialize them with -1. Add sanity check for bad1. Eliminate
11515 nerr variable.
11516
11517 2009-05-08 David S. Miller <davem@davemloft.net>
11518
11519 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
11520
11521 2009-05-06 Robert Millan <rmh.grub@aybabtu.com>
11522
11523 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
11524 existence.
11525
11526 2009-05-05 Felix Zielcke <fzielcke@z-51.de>
11527
11528 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
11529 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
11530
11531 2009-05-05 David S. Miller <davem@davemloft.net>
11532
11533 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
11534
11535 2009-05-05 Pavel Roskin <proski@gnu.org>
11536
11537 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
11538 of grub_dl_ref() and grub_dl_unref().
11539 * commands/parttool.c: Remove preprocessor conditionals around
11540 grub_dl_ref() and grub_dl_unref().
11541 * fs/affs.c: Likewise.
11542 * fs/afs.c: Likewise.
11543 * fs/cpio.c: Likewise.
11544 * fs/ext2.c: Likewise.
11545 * fs/fat.c: Likewise.
11546 * fs/hfs.c: Likewise.
11547 * fs/hfsplus.c: Likewise.
11548 * fs/iso9660.c: Likewise.
11549 * fs/jfs.c: Likewise.
11550 * fs/minix.c: Likewise.
11551 * fs/ntfs.c: Likewise.
11552 * fs/reiserfs.c: Likewise.
11553 * fs/sfs.c: Likewise.
11554 * fs/udf.c: Likewise.
11555 * fs/ufs.c: Likewise.
11556 * fs/xfs.c: Likewise.
11557 * include/grub/dl.h: Likewise.
11558 * loader/xnu.c: Likewise.
11559
11560 2009-05-04 Pavel Roskin <proski@gnu.org>
11561
11562 * commands/acpi.c: Remove unused variable my_mod.
11563 * partmap/amiga.c: Likewise.
11564 * partmap/apple.c: Likewise.
11565 * partmap/gpt.c: Likewise.
11566 * partmap/pc.c: Likewise.
11567 * partmap/sun.c: Likewise.
11568 * term/gfxterm.c: Likewise.
11569 * term/i386/pc/vesafb.c: Likewise.
11570 * term/i386/pc/vga.c: Likewise.
11571
11572 2009-05-04 David S. Miller <davem@davemloft.net>
11573
11574 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
11575 pointer args to grub_ieee1275_get_property().
11576
11577 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
11578
11579 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
11580 devices, and do not traverse down under controller nodes.
11581
11582 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
11583 (grub_ofdisk_open): Use it to un-escape "," characters.
11584 * kern/disk.c (find_part_sep): New.
11585 (grub_disk_open): Use it to find the first non-escaped ','
11586 character in the disk name.
11587 * util/ieee1275/devicemap.c (escape_of_path): New.
11588 (grub_util_emit_devicemap_entry): Use it.
11589 * util/sparc64/ieee1275/grub-install.in: Update script to
11590 strip partition specifiers properly by not triggering on
11591 '\' escaped ',' characters.
11592
11593 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
11594
11595 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
11596 to 0x300.
11597 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
11598 resolutions.
11599 (linux_vesafb_modes): Add a lot of additional modes to the list (based
11600 on documentation from Wikipedia).
11601
11602 2009-05-04 Pavel Roskin <proski@gnu.org>
11603
11604 * disk/ata.c: Spelling fixes.
11605 * disk/raid.c: Likewise.
11606 * disk/usbms.c: Likewise.
11607 * disk/dmraid_nvidia.c: Likewise.
11608 * kern/ieee1275/openfw.c: Likewise.
11609 * kern/ieee1275/init.c: Likewise.
11610 * kern/ieee1275/cmain.c: Likewise.
11611 * boot/i386/pc/cdboot.S: Likewise.
11612 * video/readers/png.c: Likewise.
11613 * video/i386/pc/vbe.c: Likewise.
11614 * fs/udf.c: Likewise.
11615 * fs/hfs.c: Likewise.
11616 * fs/reiserfs.c: Likewise.
11617 * efiemu/runtime/efiemu.c: Likewise.
11618 * efiemu/main.c: Likewise.
11619 * efiemu/mm.c: Likewise.
11620 * include/grub/elf.h: Likewise.
11621 * include/grub/xnu.h: Likewise.
11622 * include/grub/usbdesc.h: Likewise.
11623 * include/grub/usb.h: Likewise.
11624 * include/grub/script_sh.h: Likewise.
11625 * include/grub/lib/LzmaEnc.h: Likewise.
11626 * include/grub/efiemu/efiemu.h: Likewise.
11627 * include/grub/command.h: Likewise.
11628 * normal/menu.c: Likewise.
11629 * normal/main.c: Likewise.
11630 * normal/datetime.c: Likewise.
11631 * bus/usb/uhci.c: Likewise.
11632 * mmap/i386/uppermem.c: Likewise.
11633 * mmap/mmap.c: Likewise.
11634 * commands/acpi.c: Likewise.
11635 * commands/test.c: Likewise.
11636 * partmap/apple.c: Likewise.
11637 * font/font.c: Likewise.
11638 * loader/sparc64/ieee1275/linux.c: Likewise.
11639 * loader/macho.c: Likewise.
11640 * loader/i386/bsd_trampoline.S: Likewise.
11641 * loader/i386/bsd.c: Likewise.
11642 * loader/xnu.c: Likewise.
11643 * term/i386/pc/vesafb.c: Likewise.
11644 * term/usb_keyboard.c: Likewise.
11645 * util/resolve.c: Likewise.
11646 * util/getroot.c: Likewise.
11647
11648 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
11649
11650 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
11651
11652 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
11653
11654 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
11655 build error.
11656
11657 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
11658
11659 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
11660 parameter only available on BIOS.
11661
11662 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
11663
11664 Removed wrong semicolon in declaration
11665
11666 * grub/misc.h (grub_dprintf): remove semicolon
11667
11668 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
11669
11670 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
11671 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
11672 is done by grub_cmd_linux() now).
11673 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
11674 restore video to text mode.
11675 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
11676 indicates lack of "vga=" parameter. "vga=0" is mapped to
11677 `GRUB_LINUX_VID_MODE_NORMAL'.
11678
11679 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
11680
11681 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
11682 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
11683 and `normal/script.c'. Add `kern/rescue_reader.c',
11684 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
11685 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
11686 `grub_script.tab.c'.
11687
11688 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
11689 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
11690 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
11691 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
11692 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
11693
11694 * Makefile.in: Remove duplicated 2008 in Copyright line.
11695
11696 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
11697
11698 * util/misc.c (grub_util_warn): New function. Emits a warning
11699 unconditionally.
11700 * include/grub/util/misc.h (grub_util_warn): New declaration.
11701
11702 * util/i386/pc/grub-install.in: Understand --force and pass it down
11703 to grub-setup.
11704
11705 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
11706 down to setup().
11707 (setup): Improve error messages and add warnings when requested to
11708 install in odd layouts. Refuse to install using blocklists unless
11709 --force was set.
11710
11711 2009-05-04 martin f. krafft <madduck@madduck.net>
11712
11713 * disk/raid.c (grub_raid_scan_device): Improve debug message.
11714
11715 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
11716
11717 Updated copyright year
11718
11719 * fs/hfsplus.c: updated copyright year
11720
11721 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
11722
11723 HFS+ UUID
11724
11725 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
11726 in the space previously used by unused3
11727 (grub_hfsplus_uuid): new function
11728 (grub_hfsplus_fs): added uuid field
11729
11730 2009-05-03 Pavel Roskin <proski@gnu.org>
11731
11732 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
11733 suppress warnings. It's no longer needed.
11734 * disk/host.c: Likewise.
11735 * disk/ata_pthru.c: Likewise.
11736 * disk/loopback.c: Likewise.
11737 * hook/datehook.c: Likewise.
11738 * parttool/pcpart.c: Likewise.
11739 * fs/i386/pc/pxe.c: Likewise.
11740 * fs/ntfscomp.c: Likewise.
11741 * efiemu/main.c: Likewise.
11742 * mmap/mmap.c: Likewise.
11743 * commands/crc.c: Likewise.
11744 * commands/hexdump.c: Likewise.
11745 * commands/hdparm.c: Likewise.
11746 * commands/acpi.c: Likewise.
11747 * commands/echo.c: Likewise.
11748 * commands/minicmd.c: Likewise.
11749 * commands/blocklist.c: Likewise.
11750 * commands/memrw.c: Likewise.
11751 * commands/loadenv.c: Likewise.
11752 * commands/usbtest.c: Likewise.
11753 * commands/lsmmap.c: Likewise.
11754 * commands/boot.c: Likewise.
11755 * commands/parttool.c: Likewise.
11756 * commands/configfile.c: Likewise.
11757 * commands/search.c: Likewise.
11758 * commands/ieee1275/suspend.c: Likewise.
11759 * commands/cat.c: Likewise.
11760 * commands/i386/pc/pxecmd.c: Likewise.
11761 * commands/i386/pc/play.c: Likewise.
11762 * commands/i386/pc/halt.c: Likewise.
11763 * commands/i386/pc/vbeinfo.c: Likewise.
11764 * commands/i386/pc/vbetest.c: Likewise.
11765 * commands/lspci.c: Likewise.
11766 * commands/date.c: Likewise.
11767 * commands/handler.c: Likewise.
11768 * commands/ls.c: Likewise.
11769 * commands/test.c: Likewise.
11770 * commands/cmp.c: Likewise.
11771 * commands/efi/loadbios.c: Likewise.
11772 * commands/efi/fixvideo.c: Likewise.
11773 * commands/halt.c: Likewise.
11774 * commands/help.c: Likewise.
11775 * commands/reboot.c: Likewise.
11776 * hello/hello.c: Likewise.
11777 * script/sh/main.c: Likewise.
11778 * loader/xnu.c: Likewise.
11779 * term/terminfo.c: Likewise.
11780 * term/i386/pc/serial.c: Likewise.
11781 * term/usb_keyboard.c: Likewise.
11782
11783 2009-05-03 David S. Miller <davem@davemloft.net>
11784
11785 * normal/menu.c: Include grub/parser.h
11786
11787 2009-05-03 Pavel Roskin <proski@gnu.org>
11788
11789 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
11790 not char*.
11791 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
11792 Suggested by Javier Martín <lordhabbit@gmail.com>
11793
11794 * util/i386/pc/grub-mkrescue.in: Allow for the case when
11795 efiemu??.o doesn't exist.
11796 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
11797 copying.
11798
11799 2009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
11800
11801 FreeBSD 64-bit support
11802
11803 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
11804 and loader/i386/bsd_trampoline.S
11805 (bsd_mod_ASFLAGS): new variable
11806 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
11807 (FREEBSD_MODTYPE_KERNEL64): likewise
11808 (grub_bsd64_trampoline_start): likewise
11809 (grub_bsd64_trampoline_end): likewise
11810 (grub_bsd64_trampoline_selfjump): likewise
11811 (grub_bsd64_trampoline_gdt): likewise
11812 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
11813 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
11814 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
11815 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
11816 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
11817 of "attrib" member
11818 * loader/i386/bsd_pagetable.c: new file
11819 * loader/i386/bsd_trampoline.S: likewise
11820 * loader/i386/bsd.c (ALIGN_QWORD): new macro
11821 (ALIGN_VAR): likewise
11822 (entry_hi): new variable
11823 (kern_end_mdofs): likewise
11824 (is_64bit): likewise
11825 (grub_freebsd_add_meta): use ALIGN_VAR
11826 (grub_e820_mmap): new declaration
11827 (grub_freebsd_add_mmap): new function
11828 (grub_freebsd_add_meta_module): support 64 bit kernels
11829 (grub_freebsd_list_modules): use ALIGN_VAR
11830 (gdt_descriptor): new declaration
11831 (grub_freebsd_boot): support 64 bit kernels
11832 (grub_bsd_elf64_hook): new function
11833 (grub_bsd_load_elf): support elf64
11834
11835 2009-05-03 Bean <bean123ch@gmail.com>
11836
11837 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
11838 after we get the result of if statement.
11839
11840 2009-05-03 Bean <bean123ch@gmail.com>
11841
11842 * Makefile.in (enable_efiemu): New variable.
11843
11844 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
11845 set.
11846 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
11847 path.
11848 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
11849 path, add -mno-red-zone option.
11850 (efiemu64_s.o): Likewise.
11851 (efiemu64.o): Use macro $^ for source file.
11852
11853 * configure.ac (--enable-efiemu): New option.
11854
11855 2009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
11856
11857 xnu support
11858
11859 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
11860 (pkglib_MODULES): add xnu.mod
11861 (xnu_mod_SOURCES): new variable
11862 (xnu_mod_CFLAGS): likewise
11863 (xnu_mod_LDFLAGS): likewise
11864 (xnu_mod_ASFLAGS): likewise
11865 * conf/i386-pc.rmk: likewise
11866 * conf/x86_64-efi.rmk: likewise
11867 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
11868 new declaration
11869 * include/grub/i386/macho.h: new file
11870 * include/grub/i386/xnu.h: likewise
11871 * include/grub/macho.h: likewise
11872 * include/grub/machoload.h: likewise
11873 * include/grub/x86_64/macho.h: likewise
11874 * include/grub/x86_64/xnu.h: likewise
11875 * include/grub/xnu.h: likewise
11876 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
11877 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
11878 * loader/i386/efi/xnu.c: new file
11879 * loader/i386/pc/xnu.c: likewise
11880 * loader/i386/xnu.c: likewise
11881 * loader/i386/xnu_helper.S: likewise
11882 * loader/macho.c: likewise
11883 * loader/xnu.c: likewise
11884 * loader/xnu_resume.c: likewise
11885 * util/grub-dumpdevtree: likewise
11886 * include/grub/i386/pit.h: include grub/err.h
11887 (grub_pit_wait): export
11888 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
11889
11890 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
11891
11892 Efiemu
11893
11894 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
11895 _linux_efi, linux_efi.
11896 new files in grub-emu
11897 new targets efiemu32.o and efiemu64.o
11898 * loader/linux_normal_efiemu.c: likewise
11899 * loader/i386/efi/linux.c: added preliminary efiemu support
11900 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
11901 files to copy
11902 * include/grub/autoefi.h: new file
11903 * include/grub/i386/efiemu.h: likewise
11904 * include/grub/i386/pc/efiemu.h: likewise
11905 * include/grub/efi/api.h: add LL suffix when necessary
11906 new definitions relating to tables
11907 * include/grub/efiemu/efiemu.h: new file
11908 * include/grub/efiemu/runtime.h: likewise
11909 * efiemu/prepare.c: likewise
11910 * efiemu/loadcore_common.c: likewise
11911 * efiemu/loadcore64.c: likewise
11912 * efiemu/runtime/efiemu.sh: likewise
11913 * efiemu/runtime/efiemu.S: likewise
11914 * efiemu/runtime/efiemu.c: likewise
11915 * efiemu/runtime/config.h: likewise
11916 * efiemu/prepare32.c: likewise
11917 * efiemu/main.c: likewise
11918 * efiemu/modules/pnvram.c: likewise
11919 * efiemu/modules/i386: likewise
11920 * efiemu/modules/i386/pc: likewise
11921 * efiemu/modules/acpi.c: likewise
11922 * efiemu/i386/pc/cfgtables.c: likewise
11923 * efiemu/i386/loadcore64.c: likewise
11924 * efiemu/i386/loadcore32.c: likewise
11925 * efiemu/prepare64.c: likewise
11926 * efiemu/loadcore.c: likewise
11927 * efiemu/symbols.c: likewise
11928 * efiemu/mm.c: likewise
11929 * efiemu/loadcore32.c: likewise
11930
11931 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
11932
11933 ACPI spoofing
11934
11935 * commands/acpi.c: new file
11936 * commands/i386/pc/acpi.c: likewise
11937 * commands/efi/acpi.c: likewise
11938 * include/grub/acpi.h: likewise
11939 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
11940 (acpi_mod_SOURCES): new variable
11941 (acpi_mod_CFLAGS): likewise
11942 (acpi_mod_LDFLAGS): likewise
11943 * conf/i386-efi.rmk: likewise
11944 * conf/x86_64-efi.rmk: likewise
11945
11946 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
11947
11948 Missing part from mmap patch
11949
11950 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
11951 (grub_mmap_unregister)
11952 (grub_mmap_free_and_unregister): use grub_mmap_register
11953
11954 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
11955
11956 Mmap services
11957
11958 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
11959 * loader/i386/linux.c (find_mmap_size): likewise
11960 (allocate_pages): likewise
11961 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
11962 (grub_fill_multiboot_mmap): likewise
11963 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
11964 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
11965 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
11966 (OPENBSD_MMAP_RESERVED): likewise
11967 * include/grub/i386/pc/memory.h: include grub/memory.h
11968 (grub_lower_mem): removed
11969 (grub_upper_mem): likewise
11970 (GRUB_MACHINE_MEMORY_ACPI): new definition
11971 (GRUB_MACHINE_MEMORY_NVS): likewise
11972 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
11973 (GRUB_MACHINE_MEMORY_HOLE): likewise
11974 (grub_machine_mmap_register): likewise
11975 (grub_machine_mmap_unregister): likewise
11976 (grub_machine_get_upper): likewise
11977 (grub_machine_get_lower): likewise
11978 (grub_machine_get_post64): likewise
11979 * include/grub/i386/efi/memory.h: new file
11980 * include/grub/x86_64/efi/memory.h: likewise
11981 * include/grub/efi/memory.h: likewise
11982 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
11983 (mmap_mod_SOURCES): new variable
11984 (mmap_mod_LDFLAGS): likewise
11985 (mmap_mod_ASFLAGS): likewise
11986 * conf/i386-coreboot.rmk: likewise
11987 * conf/i386-ieee1275.rmk: likewise
11988 * conf/i386-efi.rmk: likewise
11989 * conf/x86_64-efi.rmk: likewise
11990 * include/grub/types.h (UINT_TO_PTR): new macro
11991 (PTR_TO_UINT32): likewise
11992 (PTR_TO_UINT64): likewise
11993 * include/grub/memory.h: new file
11994 * mmap/i386/pc/mmap.c: likewise
11995 * mmap/i386/pc/mmap_helper.S: likewise
11996 * mmap/i386/uppermem.c: likewise
11997 * mmap/mmap.c: likewise
11998 * mmap/efi/mmap.c: likewise
11999 * kern/i386/coreboot/init.c (grub_machine_init): don't use
12000 grub_upper_mem
12001 * kern/i386/pc/init.c (grub_lower_mem): removed variable
12002 (grub_upper_mem): likewise
12003 (grub_machine_init): don't use grub_upper_mem,
12004 make grub_lower_mem local
12005 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
12006 grub_mmap_iterate and grub_mmap_get_upper
12007 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
12008
12009 2009-05-02 Bean <bean123ch@gmail.com>
12010
12011 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
12012 script/sh/parser.y.
12013 (pkglib_MODULES): Add normal.mod and sh.mod.
12014 (normal_SOURCES): New variable.
12015 (normal_mod_CFLAGS): Likewise.
12016 (normal_mod_LDFLAGS): Likewise.
12017 (sh_mod_SOURCES): Likewise.
12018 (sh_mod_CFLAGS): Likewise.
12019 (sh_mod_LDFLAGS): Likewise.
12020
12021 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
12022 script/sh/lexer.c_DEPENDENCIES.
12023 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
12024 kern/rescue_reader.c and kern/rescue_parser.c.
12025 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
12026 (grub_emu_SOURCES): Change source files.
12027 (pkglib_MODULES): Remove normal.mod.
12028 (normal_SOURCES): Removed.
12029 (normal_mod_CFLAGS): Likewise.
12030 (normal_mod_LDFLAGS): Likewise.
12031 * conf/i386-coreboot.rmk: Likewise.
12032 * conf/i386-efi.rmk: Likewise.
12033 * conf/i386-ieee1276.rmk: Likewise.
12034 * conf/powerpc-ieee1275.rmk: Likewise.
12035 * conf/sparc64-ieee1275.rmk: Likewise.
12036 * conf/x86_64-efi.rmk: Likewise.
12037
12038 * include/grub/command.h (grub_command_execute): New inline function.
12039
12040 * include/grub/menu.h (grub_menu_entry): Removed commands field.
12041
12042 * include/grub/normal.h: Remove <grub/setjmp.h>.
12043 (grub_fs_module_list): Moved to normal/autofs.c.
12044 (grub_exit_env): Removed.
12045 (grub_command_execute): Likewise.
12046 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
12047 parameter script.
12048 (read_command_list): New function declaration.
12049 (read_fs_list): Likewise.
12050
12051 * include/parser.h: Include <grub/reader.h>.
12052 (grub_parser_split_cmdline): Change type of getline parameter.
12053 (grub_parser): New structure.
12054 (grub_parser_class): New variable.
12055 (grub_parser_execute): New function declaration.
12056 (grub_register_rescue_parser): Likewise.
12057 (grub_parser_register): New inline function.
12058 (grub_parser_unregister): Likewise.
12059 (grub_parser_get_current): Likewise.
12060 (grub_parser_set_current): Likewise.
12061
12062 * include/grub/reader.h: New file.
12063 * kern/reader.c: Likewise.
12064 * kern/rescue_parser.c: Likewise.
12065 * kern/rescue_reader.c: Likewise.
12066 * normal/autofs.c: Likewise.
12067 * normal/dyncmd.c: Likewise.
12068
12069 * include/grub/rescue.h: Removed.
12070 * normal/command.h: Likewise.
12071
12072 * include/grub/script.h: Moved to ...
12073 * include/grub/script_sh.h: ... Moved here.
12074 * normal/execute.c: Moved to ...
12075 * script/sh/execute.c: ... Moved here.
12076 * normal/function.c: Moved to ...
12077 * script/sh/function.c: ... Moved here.
12078 * normal/lexer.c: Moved to ...
12079 * script/sh/lexer.c: ... Moved here.
12080 * normal/parser.y: Moved to ...
12081 * script/sh/parser.y: ... Moved here.
12082 * normal/script.c: Moved to ...
12083 * script/sh/script.c: ... Moved here.
12084
12085 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
12086 <grub/reader.h>.
12087 (grub_exit_env): Removed.
12088 (fs_module_list): Moved to normal/autofs.c.
12089 (grub_file_getline): Don't handle comment here.
12090 (free_menu): Skip removed field entry->commands.
12091 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
12092 script parameter.
12093 (read_config_file): Removed nested parameter, change getline function.
12094 (grub_enter_normal_mode): Removed.
12095 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
12096 (read_command_list): Likewise.
12097 (autoload_fs_module): Moved to normal/autofs.c.
12098 (read_fs_list): Likewise.
12099 (reader_nested): New variable.
12100 (grub_normal_execute): Run parser.sh to switch to sh parser.
12101 (grub_cmd_rescue): Removed.
12102 (cmd_normal): Removed.
12103 (grub_cmd_normal): Unregister itself at the beginning. Don't register
12104 rescue command.
12105 (grub_cmdline_run): New function.
12106 (grub_normal_reader_init): Likewise.
12107 (grub_normal_read_line): Likewise.
12108 (grub_env_write_pager): Likewise.
12109 (cmdline): New variable.
12110 (grub_normal_reader): Likewise.
12111 (GRUB_MOD_INIT): Register normal reader and set as current, register
12112 pager hook, register normal command with grub_register_command_prio,
12113 so that it won't show up in command.lst.
12114 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
12115 grub_fs_autoload_hook.
12116
12117 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
12118 (grub_menu_execute_entry): Replace grub_script_execute with
12119 grub_parser_execute, change parameter to grub_command_execute.
12120
12121 * normal/menu_text.c: Remove <grub/script.h>.
12122
12123 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
12124 and <grub/parser.h>.
12125 (run): Change editor_getline to use new parser interface. Change
12126 parameter to grub_command_execute.
12127
12128 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
12129 <grub/reader.h> and <grub/parser.h>.
12130 (grub_load_normal_mode): Execute normal command.
12131 (grub_main): Call grub_register_core_commands,
12132 grub_register_rescue_parser and grub_register_rescue_reader, use
12133 grub_reader_loop to enter input loop.
12134
12135 * kern/parser.c (grub_parser_split_cmdline): Change type of
12136 getline parameter.
12137 (grub_parser_class): New variable.
12138 (grub_parser_execute): New function.
12139
12140 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
12141 * loader/multiboot2.c: Likewise.
12142 * loader/sparc64/ieee1275/linux.c: Likewise.
12143
12144 * util/grub-emu.c (read_command_list): New dummy function.
12145
12146 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
12147
12148 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
12149 count to 16 for CCISS and IDA.
12150
12151 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
12152
12153 * normal/menu_text.c (grub_wait_after_message): Print a newline
12154 after waiting for user input.
12155
12156 * loader/i386/linux.c: Include `<grub/normal.h>'.
12157 (grub_cmd_linux): Improve the error message about `ask' mode, by
12158 waiting for user input so it's not missed (we can do this, since
12159 user requested interaction).
12160
12161 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
12162
12163 Added missing lst to grub-mkrescue
12164
12165 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
12166 and ${input_dir}/parttool.lst
12167
12168 2009-04-30 David S. Miller <davem@davemloft.net>
12169
12170 * util/hostdisk.c (device_is_wholedisk): New function.
12171 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
12172 zero only if device_is_wholedisk() returns true.
12173
12174 * util/hostdisk.c (convert_system_partition_to_system_disk):
12175 Handle virtual disk devices named /dev/vdiskX as found on sparc
12176 and powerpc.
12177
12178 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
12179 lettered partition specifier is found, convert to numbered.
12180
12181 2009-04-29 David S. Miller <davem@davemloft.net>
12182
12183 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
12184 * include/grub/sparc64/ieee1275/memory.h: Likewise.
12185
12186 * normal/command.c: Add missing newline at end of file.
12187
12188 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
12189 warnings.
12190 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
12191 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
12192 grub_ofdisk_read): Likewise, and deal similarly with the fact that
12193 ihandles have a 32-bit type but need to be stored in a "void *".
12194
12195 2009-04-28 Pavel Roskin <proski@gnu.org>
12196
12197 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
12198 not disk. Adjust all dependencies.
12199 (grub_fs_uuid_close): Use grub_device_close(), not
12200 grub_disk_close().
12201
12202 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
12203 parent's partition, don't copy it by reference, as it gets freed
12204 on close.
12205
12206 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
12207
12208 Preboot hooks support
12209
12210 * commands/boot.c (struct grub_preboot_t): new declaration
12211 (preboots_head): new variable
12212 (preboots_tail): likewise
12213 (grub_loader_register_preboot_hook): new function
12214 (grub_loader_unregister_preboot_hook): likewise
12215 (grub_loader_set): launch preboot hooks
12216 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
12217 (grub_loader_register_preboot_hook): new declaration
12218 (grub_loader_unregister_preboot_hook): likewise
12219
12220 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
12221
12222 Warning fix
12223
12224 * disk/scsi.c (grub_scsi_open): added missing cast when
12225 calling grub_dprintf
12226
12227 2009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
12228
12229 Bug and warning fixes
12230
12231 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
12232 declaration
12233 * commands/test.c (test_parse): fixed bug with file tests and corrected
12234 declaration of find_file
12235
12236 2009-04-26 Pavel Roskin <proski@gnu.org>
12237
12238 * Makefile.in: Don't install empty manual pages if help2man is
12239 missing. Use help2man option for output, not shell redirection.
12240
12241 2009-04-26 David S. Miller <davem@davemloft.net>
12242
12243 * util/grub-mkdevicemap.c (make_device_map): Add missing
12244 NESTED_FUNC_ATTR to process_device().
12245
12246 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
12247
12248 Test command
12249
12250 * commands/test.c: rewritten to use bash-like test
12251
12252 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
12253
12254 Parttool autoloading and improvements
12255
12256 * Makefile.in (pkglib_DATA): add parttool.lst
12257 (parttool.lst): new target
12258 * genmk.rb: generate parttool-*
12259 (CLEANFILES): add #{parttool}
12260 (PARTTOOLFILES): new variable
12261 * genparttoollist.sh: new file
12262 * parttool/pcpart.c (grub_pcpart_boot): more feedback
12263 (grub_pcpart_type): likewise
12264 * commands/parttool.c (helpmsg): new variable
12265 (grub_cmd_parttool): output help if not enough arguments are supplied
12266 autoload modules
12267 (GRUB_MOD_INIT(parttool)): use helpmsg
12268
12269 2009-04-24 David S. Miller <davem@davemloft.net>
12270
12271 Avoiding opening same device multiple times in device iterator.
12272
12273 * kern/device.c: (grub_device_iterate): Define struct part_ent,
12274 and use it to build a list of partitions in iterate_disk() and
12275 iterate_partition().
12276
12277 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
12278 on disk->data.
12279
12280 * disk/ieee1275/nand.c (grub_nand_iterate): Return
12281 grub_devalias_iterate() result instead of unconditional 0.
12282 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
12283 Also, capture hook return value, either directly or via
12284 grub_children_iterate(), and propagate to caller.
12285 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
12286 grub_children_iterate): Return value is now 'int' instead of
12287 'grub_err_t'.
12288 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
12289 like a proper iterator, stopping when hooks return non-zero.
12290 (grub_devalias_iterate): Likewise.
12291
12292 2009-04-23 David S. Miller <davem@davemloft.net>
12293
12294 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
12295
12296 2009-04-22 David S. Miller <davem@davemloft.net>
12297
12298 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
12299 is larger than address_cells, use that value for address_cells too.
12300
12301 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
12302 IEEE1275_MAX_PATH_LEN): Define.
12303 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
12304 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
12305 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
12306 'devtype'. Explicitly NULL terminate devalias expansion.
12307
12308 * util/sparc64/ieee1275/misc.c: New file.
12309 * util/sparc64/ieee1275/grub-setup.c: New file.
12310 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
12311 * util/sparc64/ieee1275/grub-mkimage.c: New file.
12312 * util/sparc64/ieee1275/grub-install.in: New file.
12313 * util/ieee1275/ofpath.c: New file.
12314 * util/ieee1275/devicemap.c: New file.
12315 * util/devicemap.c: New file.
12316 * util/deviceiter.c: New file.
12317 * kern/sparc64/ieee1275/init.c: New file.
12318 * include/grub/util/ofpath.h: New file.
12319 * include/grub/util/deviceiter.h: New file.
12320 * util/grub-mkdevicemap.c: Include deviceiter.h.
12321 Implement using grub_util_emit_devicemap_entry and
12322 grub_util_iterate_devices.
12323 * conf/i386-corebook.rmk: Build util/deviceiter.c and
12324 util/devicemap.c into grub-mkdevicemap
12325 * conf/i386-efi.rmk: Likewise.
12326 * conf/i386-ieee1275.rmk: Likewise.
12327 * conf/i386-pc.rmk: Likewise.
12328 * conf/powerpc-ieee1275.rmk: Likewise.
12329 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
12330 images and installation utilities. Build kernel as image
12331 instead of as elf binary. Use common rules as much as possible.
12332
12333 2009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
12334
12335 Correct GPT definition
12336
12337 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
12338 of "attrib" member
12339
12340 2009-04-19 Felix Zielcke <fzielcke@z-51.de>
12341
12342 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
12343
12344 2009-04-19 David S. Miller <davem@davemloft.net>
12345
12346 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
12347 (grub_rescue_cmd_linux): Rename to...
12348 (grub_cmd_linux): and fix prototype.
12349 (grub_rescue_cmd_initrd): Rename to...
12350 (grub_cmd_initrd): and fix prototype.
12351 (cmd_linux, cmd_initrd): New.
12352 (GRUB_MOD_INIT(linux)): Use grub_register_command().
12353 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
12354
12355 2009-04-17 Pavel Roskin <proski@gnu.org>
12356
12357 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
12358 format.
12359 (grub_ohci_transfer): Likewise.
12360
12361 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
12362
12363 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
12364 return without a value. Fix inconsistent indentation.
12365
12366 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
12367 match struct grub_fs.
12368
12369 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
12370 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
12371 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
12372 * commands/lspci.c (grub_lspci_iter): Likewise.
12373
12374 2009-04-16 Bean <bean123ch@gmail.com>
12375
12376 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
12377 value.
12378
12379 2009-04-15 Pavel Roskin <proski@gnu.org>
12380
12381 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
12382 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
12383 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
12384 definitions.
12385
12386 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
12387
12388 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
12389 that no multiple data or metadata areas are supported and `Unknown
12390 metadata header'.
12391
12392 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
12393
12394 Move loader out of the kernel
12395
12396 * kern/loader.c: moved to ...
12397 * commands/boot.c: ... moved here
12398 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
12399 * commands/boot.c (grub_cmd_boot): moved here. All users updated
12400 * include/grub/kernel.h (grub_machine_fini): export
12401 * include/grub/loader.h (grub_loader_is_loaded): update declaration
12402 (grub_loader_set): likewise
12403 (grub_loader_unset): likewise
12404 (grub_loader_boot): likewise
12405 * conf/common.rmk: new module boot.mod
12406 (pkglib_MODULES): add boot.mod
12407 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
12408 (grub_emu_SOURCES): likewise
12409 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
12410 (grub_emu_SOURCES): likewise
12411 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
12412 (grub_emu_SOURCES): likewise
12413 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
12414 (grub_emu_SOURCES): likewise
12415 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
12416 (grub_emu_SOURCES): likewise
12417 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
12418 (grub_emu_SOURCES): likewise
12419 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
12420 (grub_emu_SOURCES): likewise
12421
12422 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
12423
12424 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
12425
12426 * kern/misc.c (grub_itoa): Removed function
12427 (grub_ltoa): likewise
12428 (grub_vsprintf): use grub_lltoa
12429
12430 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
12431
12432 Restore grub-emu
12433
12434 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
12435 * conf/i386-coreboot.rmk: likewise
12436 * conf/i386-ieee1275.rmk: likewise
12437 * conf/powerpc-ieee1275.rmk: likewise
12438
12439 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
12440
12441 * INSTALL: Add that `./autogen.sh' needs to be run before
12442 `./configure.'.
12443
12444 2009-04-14 Bean <bean123ch@gmail.com>
12445
12446 * Makefile.in (pkglib_DATA): Add handler.lst.
12447 (handler.lst): New rule.
12448
12449 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
12450 * conf/i386-coreboot.rmk: Likewise.
12451 * conf/i386-ieee1275.rmk: Likewise.
12452 * conf/i386-efi.rmk: Likewise.
12453 * conf/x86_64-efi.rmk: Likewise.
12454 * conf/powerpc-ieee1275.rmk: Likewise.
12455 * conf/sparc64-ieee1275.rmk: Likewise.
12456
12457 * genhandlerlist.sh: New file.
12458
12459 * genmk.rb: Add rules to generate handler.lst.
12460
12461 * include/grub/normal.h (grub_file_getline): New function definition.
12462 (read_handler_list): Likewise.
12463 (free_handler_list): Likewise.
12464
12465 * include/grub/term.h (grub_term_register_input): Add name parameter
12466 for auto generation of handler.lst.
12467 (grub_term_register_output): Likewise.
12468
12469 * normal/handler.c: New file.
12470
12471 * normal/main.c (get_line): Renamed to grub_file_getline.
12472 (read_config_file): Use the newly renamed grub_file_getline.
12473 (read_command_list): Likewise.
12474 (read_fs_list): Likewise.
12475 (grub_normal_execute): Call read_handler_list to parse handler.lst.
12476 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
12477
12478 * term/efi/console.c (grub_console_init): Add name parameter for auto
12479 generation of handler.lst.
12480 * term/gfxterm.c: Likewise.
12481 * term/i386/pc/at_keyboard.c: Likewise.
12482 * term/i386/pc/console.c: Likewise.
12483 * term/i386/pc/serial.c: Likewise.
12484 * term/i386/pc/vesafb.c: Likewise.
12485 * term/i386/pc/vga.c: Likewise.
12486 * term/i386/pc/vga_text.c: Likewise.
12487 * term/ieee1275/ofconsole.c: Likewise.
12488 * term/usb_keyboard.c: Likewise.
12489
12490 2009-04-14 Bean <bean123ch@gmail.com>
12491
12492 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
12493 properly with null character.
12494
12495 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
12496
12497 * configure: Remove.
12498 * config.h.in: Likewise.
12499 * stamp-h.in: Likewise.
12500 * DISTLIST: Likewise.
12501 * conf/common.mk: Likewise.
12502 * conf/i386-coreboot.mk: Likewise.
12503 * conf/i386-efi.mk: Likewise.
12504 * conf/i386-ieee1275.mk: Likewise.
12505 * conf/i386.mk: Likewise.
12506 * conf/i386-pc.mk: Likewise.
12507 * conf/powerpc-ieee1275.mk: Likewise.
12508 * conf/sparc64-ieee1275.mk: Likewise.
12509 * conf/x86_64-efi.mk: Likewise.
12510
12511 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
12512 develop on GRUB.
12513
12514 2009-04-14 John Stanley <jpsinthemix@verizon.net>
12515 David S. Miller <davem@davemloft.net>
12516
12517 * util/hostdisk.c (make_device_name): Fix buffer length
12518 calculations.
12519
12520 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
12521
12522 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
12523 <sys/param.h> and <sys/sysctl.h>.
12524 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
12525 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
12526 opening the device and reset them afterwards.
12527
12528 2009-04-13 Pavel Roskin <proski@gnu.org>
12529
12530 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
12531 Reported by John Stanley <jpsinthemix@verizon.net>
12532
12533 2009-04-13 Robert Millan <rmh@aybabtu.com>
12534
12535 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
12536 that name for menuentries when appropriate.
12537
12538 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
12539
12540 * util/grub.d/10_freebsd.in: Add a missing `fi'.
12541
12542 2009-04-13 Robert Millan <rmh@aybabtu.com>
12543
12544 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
12545 to Linux, simply abort telling the user it's no longer supported.
12546
12547 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
12548
12549 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
12550 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
12551 `freebsd_loadenv' only when devices.hints exist.
12552
12553 2009-04-13 Pavel Roskin <proski@gnu.org>
12554
12555 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
12556
12557 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
12558
12559 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
12560 partition number.
12561 (grub_drive): Likewise.
12562
12563 2009-04-13 David S. Miller <davem@davemloft.net>
12564
12565 * kern/sparc64/ieee1275/ieee1275.c: New file.
12566 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
12567 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
12568 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
12569 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
12570 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
12571 grub_ieee1275_alloc_physmem): Declare new exported functions.
12572
12573 * include/grub/sparc64/ieee1275/loader.h: New file.
12574 * include/grub/sparc64/ieee1275/memory.h: Likewise.
12575 * include/grub/sparc64/kernel.h: Likewise.
12576 * loader/sparc64/ieee1275/linux.c: Likewise.
12577
12578 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
12579 (grub_fstest_SOURCES): Likewise.
12580
12581 * util/hostdisk.c (make_device_name): Do not make any assumptions
12582 about the length of drive names.
12583
12584 * kern/dl.c (grub_dl_load_file): Close file immediately when
12585 we are done using it.
12586
12587 2009-04-12 David S. Miller <davem@davemloft.net>
12588
12589 * kern/misc.c (grub_ltoa): Fix cast when handling negative
12590 values. Noticed by Pavel Roskin.
12591
12592 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
12593 target compiler.
12594
12595 * genmk.rb: Add more flexible image type specification, also
12596 pass --strip-unneeded to objcopy.
12597 * conf/i386-pc.rmk: Use *_FORMAT.
12598 * conf/i386-pc.mk: Rebuilt.
12599
12600 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
12601 (OFDISK_HASH_SZ): Define.
12602 (ofdisk_hash): New hash table.
12603 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
12604 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
12605 instead of device phandle which is not unique.
12606
12607 * kern/sparc64/ieee1275/init.c: Delete, replace with...
12608 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
12609 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
12610 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
12611 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
12612 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
12613 GRUB_KERNEL_MACHINE_DATA_END): Define.
12614 (grub_kernel_image_size, grub_total_module_size): Declare.
12615
12616 2009-04-12 Pavel Roskin <proski@gnu.org>
12617
12618 * configure.ac: Change the logic when we check for target tools.
12619 Do it when the target is specified and it's different from the
12620 specified value of the host.
12621
12622 2009-04-11 Felix Zielcke <fzielcke@z-51.de>
12623
12624 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
12625 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
12626 GNU/kFreeBSD. Check if a device is a character device. Use
12627 DIOCGMEDIASIZE to get the size.
12628 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
12629 support for GNU/kFreeBSD.
12630 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
12631 is a character device instead of a block device. Add support for
12632 FreeBSD device names.
12633
12634 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
12635 is a character device instead of a block device.
12636
12637 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
12638 is a character device instead of a block device.
12639
12640 2009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
12641
12642 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
12643 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
12644 FreeBSD. Check if a device is a character device. Use
12645 DIOCGMEDIASIZE to get the size.
12646 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
12647 support for FreeBSD.
12648 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
12649 is a character device instead of a block device. Add support for
12650 FreeBSD device names.
12651
12652 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
12653 a character device instead of a block device.
12654 (grub_util_check_char_device): New function.
12655
12656 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
12657 a character device instead of a block device.
12658
12659 * include/grub/util/getroot.h (grub_util_check_char_device): New
12660 prototype.
12661
12662 2009-04-11 David S. Miller <davem@davemloft.net>
12663
12664 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
12665 static libgcc.
12666 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
12667 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
12668 function, if present.
12669 (__bswapdi2): Likewise.
12670
12671 * include/grub/sparc64/ieee1275/boot.h: New file.
12672 * boot/sparc64/ieee1275/boot.S: Likewise.
12673 * boot/sparc64/ieee1275/diskboot.S: Likewise.
12674
12675 * kern/misc.c (grub_ltoa): New function.
12676 (grub_vsprintf): Use it to format 'long' integers.
12677
12678 2009-04-10 David S. Miller <davem@davemloft.net>
12679
12680 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
12681 slots are of type grub_ieee1275_cell_t.
12682 (grub_nand_read): Likewise.
12683 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
12684 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
12685 macros are used to compare values in arg/ret block of the call.
12686 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
12687 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
12688 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
12689 grub_ieee1275_instance_to_path, grub_ieee1275_write,
12690 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
12691 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
12692 grub_ieee1275_close, grub_ieee1275_set_property,
12693 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
12694 grub_ieee1275_cell_t.
12695 * kern/ieee1275/openfw.c (grub_map): Likewise.
12696 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
12697 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
12698
12699 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
12700 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
12701 (grub_devalias_iterate): Likewise.
12702
12703 2009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
12704
12705 UFS improvements
12706
12707 * fs/ufs.c (INODE_NBLOCKS): new definition
12708 (struct grub_ufs_dirent): added fields for non-BSD dirents
12709 (grub_ufs_get_file_block): fixed double indirect handling
12710 (grub_ufs_lookup_symlink): use more robust way to determine whether
12711 symlink is inline
12712 (grub_ufs_find_file): support for non-BSD dirents
12713 (grub_ufs_dir): support for non-BSD dirents
12714
12715 2009-04-10 Bean <bean123ch@gnail.com>
12716
12717 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
12718 attribute, otherwise the size would be wrong for i386 platform.
12719
12720 * include/grub/pci.h (grub_pci_read_word): New inline function.
12721 (grub_pci_read_byte): Likewise.
12722 (grub_pci_write): Likewise.
12723 (grub_pci_write_word): Likewise.
12724 (grub_pci_write_byte): Likewise.
12725
12726 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
12727
12728 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
12729 (find_framebuf): Scan pci to locate the frame buffer address.
12730
12731 * commands/efi/fixvideo.c: New file.
12732
12733 * commands/efi/loadbios.c: Likewise.
12734
12735 * commands/memrw.c: Likewise.
12736
12737 * util/grub-dumpbios.in: Likewise.
12738
12739 * conf/common.rmk (grub-dumpbios): New utility.
12740 (pkglib_MODULES): New module memrw.mod.
12741 (memrw_mod_SOURCE): New macro.
12742 (memrw_mod_CFLAGS): Likewise.
12743 (memrw_mod_LDFLAGS): Likewise.
12744
12745 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
12746 fixvideo.mod.
12747 (loadbios_mod_SOURCE): New macro.
12748 (loadbios_mod_CFLAGS): Likewise.
12749 (loadbios_mod_LDFLAGS): Likewise.
12750 (fixvideo_mod_SOURCE): Likewise.
12751 (fixvideo_mod_CFLAGS): Likewise.
12752 (fixvideo_mod_LDFLAGS): Likewise.
12753
12754 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
12755 fixvideo.mod.
12756 (loadbios_mod_SOURCE): New macro.
12757 (loadbios_mod_CFLAGS): Likewise.
12758 (loadbios_mod_LDFLAGS): Likewise.
12759 (fixvideo_mod_SOURCE): Likewise.
12760 (fixvideo_mod_CFLAGS): Likewise.
12761 (fixvideo_mod_LDFLAGS): Likewise.
12762
12763 2009-04-08 Felix Zielcke <fzielcke@z-51.de>
12764
12765 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
12766
12767 2009-04-07 David S. Miller <davem@davemloft.net>
12768
12769 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
12770 support for R_SPARC_OLO10 relocations. Fix compile warning for
12771 R_SPARC_WDISP30 case.
12772 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
12773
12774 2009-04-06 Pavel Roskin <proski@gnu.org>
12775
12776 * include/grub/misc.h (ARRAY_SIZE): New macro.
12777 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
12778 New macro.
12779 * loader/i386/linux.c (allocate_pages): Use free_pages().
12780 (grub_linux_unload): Don't use free_pages().
12781 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
12782 wrong index. Treat all other modes as text modes.
12783 (grub_cmd_linux): Initialize vid_mode unconditionally to
12784 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
12785
12786 * commands/help.c (print_command_help): Use cmd->prio, not
12787 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
12788
12789 2009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
12790
12791 Parttool
12792
12793 * parttool/pcpart.c: new file
12794 * commands/parttool.c: likewise
12795 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
12796 (parttool_mod_SOURCES): new variable
12797 (parttool_mod_CFLAGS): likewise
12798 (parttool_mod_LDFLAGS): likewise
12799 (pcpart_mod_SOURCES): likewise
12800 (pcpart_mod_CFLAGS): likewise
12801 (pcpart_mod_LDFLAGS): likewise
12802 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
12803 and parttool/pcpart.c
12804 * conf/i386-efi.rmk: likewise
12805 * conf/i386-ieee1275.rmk: likewise
12806 * conf/i386-pc.rmk: likewise
12807 * conf/powerpc-ieee1275.rmk: likewise
12808 * conf/sparc64-ieee1275.rmk: likewise
12809 * conf/x86_64-ieee1275.rmk: likewise
12810
12811 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
12812
12813 Support for mtime and further expandability of dir command
12814
12815 * include/grub/lib/datetime.h: moved to ...
12816 * include/grub/datetime.h: ... moved here and added
12817 declaration of grub_unixtime2datetime. All users updated
12818 * include/grub/fs.h: new syntax for dir and mtime functions in
12819 struct grub_fs
12820 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
12821 and GRUB_FSHELP_FLAGS_MASK
12822 * commands/ls.c (grub_ls_list_files): Write mtime in long format
12823 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
12824 (grub_ext2_mtime): new function
12825 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
12826 (grub_hfsplus_mtime): new function
12827 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
12828 (GRUB_UFS_ATTR_FILE): likewise
12829 (GRUB_UFS_ATTR_LNK): likewise
12830 (struct grub_ufs_sblock): new fields mtime
12831 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
12832 all users updated
12833 (grub_ufs_dir): mtime support
12834 (grub_ufs_mtime): new function
12835 * fs/affs.c (grub_affs_dir): use new dir syntax
12836 * fs/afs.c (grub_afs_dir): likewise
12837 * fs/cpio.c (grub_cpio_dir): likewise
12838 * fs/fat.c (grub_fat_find_dir): likewise
12839 * fs/hfs.c (grub_hfs_dir): likewise
12840 * fs/iso9660.c (grub_iso9660_dir): likewise
12841 * fs/jfs.c (grub_jfs_dir): likewise
12842 * fs/minix.c (grub_minix_dir): likewise
12843 * fs/ntfs.c (grub_ntfs_dir): likewise
12844 * fs/reiserfs.c (grub_reiserfs_dir): likewise
12845 * fs/sfs.c (grub_sfs_dir): likewise
12846 * fs/xfs.c (grub_xfs_dir): likewise
12847 * util/hostfs.c (grub_hostfs_dir): likewise
12848 * lib/datetime.c: moved to ...
12849 * normal/datetime.c: ... moved here
12850 (grub_unixtime2datetime): new function
12851 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
12852 * normal/completion.c (iterate_dir): use new dir syntax
12853 * normal/misc.c (grub_normal_print_device_info): tell the
12854 last modification time of a volume
12855 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
12856 * conf/common.rmk: added lib/datetime.c to ls.mod
12857 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
12858 (normal_mod_SOURCES): likewise
12859 (datetime_mod_SOURCES): Removed lib/datetime.c
12860 * conf/i386-efi.rmk: likewise
12861 * conf/i386-ieee1275.rmk: likewise
12862 * conf/i386-pc.rmk: likewise
12863 * conf/powerpc-ieee1275.rmk: likewise
12864 * conf/sparc64-ieee1275.rmk: likewise
12865 * conf/x86_64-efi.rmk: likewise
12866
12867 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
12868
12869 Trim trailing spaces in FAT label and support mtools-like labels
12870
12871 * fs/fat.c (grub_fat_iterate_dir): New function based
12872 on grub_fat_find_dir
12873 (grub_fat_find_dir): use grub_fat_iterate_dir
12874 (grub_fat_label): likewise
12875
12876 2009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
12877
12878 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
12879 and command.h
12880 remove extraneous kernel_elf_HEADERS
12881
12882 2009-04-04 Bean <bean123ch@gnail.com>
12883
12884 * include/grub/util/misc.h: Add dummy function fsync for mingw.
12885
12886 * util/misc.c: Likewise.
12887
12888 2009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
12889
12890 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
12891 instead of grub_printf.
12892
12893 2009-04-03 Robert Millan <rmh@aybabtu.com>
12894
12895 * loader/i386/linux.c (grub_linux_setup_video): Fill
12896 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
12897 values from `mode info' structure instead of hardcoded
12898 values.
12899
12900 2009-04-01 Pavel Roskin <proski@gnu.org>
12901
12902 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
12903 unused now.
12904 * genmk.rb: Likewise.
12905 * configure.ac: Likewise.
12906
12907 2009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
12908
12909 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
12910 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
12911
12912 2009-04-01 David S. Miller <davem@davemloft.net>
12913
12914 * normal/sparc64/setjmp.S: Fix setjmp implementation.
12915 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
12916 (grub_setjmp): Mark with 'returns_twice' attribute.
12917 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
12918 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
12919 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
12920
12921 2009-04-01 Robert Millan <rmh@aybabtu.com>
12922
12923 Reapply fix from 2008-07-28 which was accidentally reverted; also
12924 perform the same fix to a similar check in same function.
12925
12926 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
12927 with the same number are found, just use issue a warning with
12928 grub_dprintf(), as this error has been reported to be non-fatal.
12929
12930 2009-03-31 Pavel Roskin <proski@gnu.org>
12931
12932 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
12933 for cross-compilation.
12934
12935 2009-03-30 Robert Millan <rmh@aybabtu.com>
12936
12937 Fix i386-ieee1275 build.
12938
12939 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
12940 Remove declaration.
12941
12942 2009-03-30 Pavel Roskin <proski@gnu.org>
12943
12944 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
12945 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
12946 zero-terminated, rely only on the strlen value. Fix comparison
12947 of strings differing in length.
12948
12949 2009-03-30 Robert Millan <rmh@aybabtu.com>
12950
12951 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
12952 checking for abi version. Improve error messages on BIOS to notify
12953 user about `linux16' command.
12954
12955 2009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
12956
12957 Leak fixes
12958
12959 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
12960 in case of collision
12961 * disk/scsi.c (grub_scsi_open): free scsi in case of error
12962
12963 2009-03-29 Robert Millan <rmh@aybabtu.com>
12964
12965 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
12966 set `vid_mode' accordingly.
12967 (grub_linux_boot): Process `vid_mode' and set video mode.
12968
12969 2009-03-29 Robert Millan <rmh@aybabtu.com>
12970
12971 * util/grub.d/10_linux.in (linux_entry): New function.
12972 Factorize generation of Linux boot entries.
12973
12974 2009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
12975
12976 Make the format of Environment Block plain text. The boot loader
12977 part is not tested well yet.
12978
12979 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
12980 (buffer): Removed.
12981 (envblk): Likewise.
12982 (usage): Remove "info" and "clear". Add "unset". Update the
12983 description of "set", as this does not delete variables any
12984 longer.
12985 (create_envblk_file): Complete rewrite.
12986 (open_envblk_file): Likewise.
12987 (cmd_info): Removed.
12988 (cmd_list): Likewise.
12989 (cmd_set): Likewise.
12990 (cmd_clear): Likewise.
12991 (list_variables): New function.
12992 (write_envblk): Likewise.
12993 (set_variables): Likewise.
12994 (unset_variables): Likewise.
12995 (main): Complete rewrite.
12996
12997 * commands/loadenv.c (buffer): Removed.
12998 (envblk): Likewise.
12999 (open_envblk_file): New function.
13000 (read_envblk_file): Complete rewrite.
13001 (grub_cmd_load_env): Likewise.
13002 (grub_cmd_list_env): Likewise.
13003 (struct blocklist): New struct.
13004 (free_blocklists): New function.
13005 (check_blocklists): Likewise.
13006 (write_blocklists): Likewise.
13007 (grub_cmd_save_env): Complete rewrite.
13008
13009 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
13010 a plain text signature.
13011 (GRUB_ENVBLK_MAXLEN): Removed.
13012 (struct grub_envblk): Complete rewrite.
13013 (grub_envblk_find): Removed.
13014 (grub_envblk_insert): Likewise.
13015 (grub_envblk_open): New prototype.
13016 (grub_envblk_set): Likewise.
13017 (grub_envblk_delete): Put const to VALUE.
13018 (grub_envblk_iterate): Put const to NAME and VALUE.
13019 (grub_envblk_close): New prototype.
13020 (grub_envblk_buffer): New inline function.
13021 (grub_envblk_size): Likewise.
13022
13023 * lib/envblk.c: Include grub/mm.h.
13024 (grub_env_find): Removed.
13025 (grub_envblk_open): New function.
13026 (grub_envblk_close): Likewise.
13027 (escaped_value_len): Likewise.
13028 (find_next_line): Likewise.
13029 (grub_envblk_insert): Removed.
13030 (grub_envblk_set): New function.
13031 (grub_envblk_delete): Complete rewrite.
13032 (grub_envblk_iterate): Likewise.
13033
13034 2009-03-28 Robert Millan <rmh@aybabtu.com>
13035
13036 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
13037 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
13038 variables. Use 16-bit loader.
13039 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
13040 loader.
13041 * kern/i386/loader.S (grub_linux_boot): Rename to ...
13042 (grub_linux16_boot): ... this. Update all users.
13043 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
13044 (grub_linux_boot): ... this. Update all users.
13045
13046 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
13047 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
13048 commands to `linux16' and `initrd16'.
13049 (GRUB_MOD_FINI(linux)): Rename to ...
13050 (GRUB_MOD_FINI(linux16)): ... this.
13051
13052 2009-03-24 Pavel Roskin <proski@gnu.org>
13053
13054 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
13055 not just for compilation.
13056
13057 2009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
13058
13059 Move multiboot helper out of kernel
13060
13061 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
13062 `loader/i386/multiboot_helper.S'.
13063 * conf/i386-coreboot.rmk: Likewise
13064 * conf/i386-ieee1275.rmk: Likewise
13065
13066 * kern/i386/loader.S: Move multiboot helpers from here...
13067 * loader/i386/multiboot_helper.S: ...moved here
13068 * include/grub/i386/loader.h: Move declarations of multiboot
13069 helpers from here...
13070 * include/grub/i386/multiboot.h: ...moved here
13071 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
13072
13073 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
13074
13075 * kern/env.c (grub_env_context_open): Added an argument to specify
13076 whether a new context inherits exported variables from current
13077 one. This is useful when making a sandbox to interpret a config
13078 file.
13079 All callers updated.
13080
13081 * include/grub/env.h (grub_env_context_open): Updated the prototype.
13082
13083 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
13084
13085 * kern/env.c (grub_env_context_close): Fix memory leaks.
13086
13087 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
13088
13089 * normal/main.c (grub_normal_execute): Added an argument
13090 BATCH to specify if an interactive interface should be provided
13091 after reading a config file.
13092 All callers updated.
13093 (read_command_list): Prevent being executed twice.
13094 (read_fs_list): Likewise.
13095
13096 * include/grub/normal.h (grub_normal_execute): Updated the
13097 prototype.
13098
13099 2009-03-22 Pavel Roskin <proski@gno.org>
13100
13101 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
13102 _start.
13103 * kern/i386/pc/startup.S: Likewise.
13104 * kern/i386/efi/startup.S: Likewise.
13105 * kern/i386/ieee1275/startup.S: Likewise.
13106 * kern/i386/coreboot/startup.S: Likewise.
13107 * kern/x86_64/efi/startup.S: Likewise.
13108
13109 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
13110 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
13111 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
13112
13113 2009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
13114
13115 Bugfixes in multiboot for bugs uncovered by solaris kernel.
13116
13117 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
13118 limit detection.
13119 Use vaddr of correct segment for entry_point.
13120
13121 2009-03-21 Bean <bean123ch@gmail.com>
13122
13123 * commands/blocklist.c: Add include file <grub/command.h>, remove
13124 <grub/normal.h> and <grub/arg.h>.
13125 (grub_cmd_blocklist): Use the new command interface.
13126 (GRUB_MOD_INIT): Likewise.
13127 (GRUB_MOD_FINI): Likewise.
13128 * commands/boot.c: Likewise.
13129 * commands/cat.c: Likewise.
13130 * commands/cmp.c: Likewise.
13131 * commands/configfile.c: Likewise.
13132 * commands/crc.c: Likewise.
13133 * commands/echo.c: Likewise.
13134 * commands/halt.c: Likewise.
13135 * commands/handler.c: Likewise.
13136 * commands/hdparm.c: Likewise.
13137 * commands/help.c: Likewise.
13138 * commands/hexdump.c: Likewise.
13139 * commands/loadenv.c: Likewise.
13140 * commands/ls.c: Likewise.
13141 * commands/lsmmap.c: Likewise.
13142 * commands/lspci.c: Likewise.
13143 * commands/loadenv.c: Likewise.
13144 * commands/read.c: Likewise.
13145 * commands/reboot.c: Likewise.
13146 * commands/search.c: Likewise.
13147 * commands/sleep.c: Likewise.
13148 * commands/test.c: Likewise.
13149 * commands/usbtest.c: Likewise.
13150 * commands/videotest.c: Likewise.
13151 * commands/i386/cpuid.c: Likewise.
13152 * commands/i386/pc/halt.c: Likewise.
13153 * commands/i386/pc/play.c: Likewise.
13154 * commands/i386/pc/pxecmd.c: Likewise.
13155 * commands/i386/pc/vbeinfo.c: Likewise.
13156 * commands/i386/pc/vbetest.c: Likewise.
13157 * commands/ieee1275/suspend.c: Likewise.
13158 * disk/loopback.c: Likewise.
13159 * font/font_cmd.c: Likewise.
13160 * hello/hello.c: Likewise.
13161 * loader/efi/appleloader.c: Likewise.
13162 * loader/efi/chainloader.c: Likewise.
13163 * loader/i386/bsd.c: Likewise.
13164 * loader/i386/efi/linux.c: Likewise.
13165 * loader/i386/ieee1275/linux.c: Likewise.
13166 * loader/i386/linux.c: Likewise.
13167 * loader/i386/pc/chainloader.c: Likewise.
13168 * loader/i386/pc/linux.c: Likewise.
13169 * loader/powerpc/ieee1275/linux.c: Likewise.
13170 * loader/multiboot_loader.c: Likewise.
13171 * term/gfxterm.c: Likewise.
13172 * term/i386/pc/serial.c: Likewise.
13173 * term/terminfo.c: Likewise.
13174
13175 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
13176 * term/i386/pc/vga.c: Likewise.
13177 * video/readers/jpeg.c: Likewise.
13178 * video/readers/png.c: Likewise.
13179 * video/readers/tga.c: Likewise.
13180
13181 * util/grub-fstest (cmd_loopback): Removed.
13182 (cmd_blocklist): Likewise.
13183 (cmd_ls): Likewise.
13184 (grub_register_command): Likewise.
13185 (grub_unregister_command): Likewise.
13186 (execute_command): Use grub_command_find to locate command and execute
13187 it.
13188
13189 * include/grub/efi/chainloader.h: Removed.
13190 * loader/efi/chainloader_normal.c: Likewise.
13191 * loader/i386/bsd_normal.c: Likewise.
13192 * loader/i386/pc/chainloader_normal.c: Likewise.
13193 * loader/i386/pc/multiboot_normal.c: Likewise.
13194 * loader/linux_normal.c: Likewise.
13195 * loader/multiboot_loader_normal.c: Likewise.
13196 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
13197
13198 * gencmdlist.sh: Scan new registration command grub_register_extcmd
13199 and grub_register_command_p1.
13200
13201 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
13202 kern/command.c, lib/arg.c and commands/extcmd.c.
13203 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
13204 (minicmd_mod_SOURCES): New variable.
13205 (minicmd_mod_CFLAGS): Likewise.
13206 (minicmd_mod_LDFLAGS): Likewise.
13207 (extcmd_mod_SOURCES): Likewise.
13208 (extcmd_mod_CFLAGS): Likewise.
13209 (extcmd_mod_LDFLAGS): Likewise.
13210 (boot_mod_SOURCES): Removed.
13211 (boot_mod_CFLAGS): Likewise.
13212 (boot_mod_LDFLAGS): Likewise.
13213
13214 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
13215 kern/corecmd.c.
13216 (kernel_img_HEADERS): Add command.h.
13217 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
13218 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
13219 and lib/arg.c.
13220 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
13221 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
13222 remove the corresponding normal mode command.
13223 (normal_mod_SOURCES): Remove normal/arg.c.
13224 * conf/i386-coreboot.rmk: Likewise.
13225 * conf/i386-efi.rmk: Likewise.
13226 * conf/i386-ieee1275.rmk: Likewise.
13227 * conf/powerpc-ieee1275.rmk: Likewise.
13228 * conf/x86_64-efi.rmk: Likewise.
13229
13230 * include/grub/arg.h: Move from here ...
13231 * include/grub/lib/arg.h: ... to here.
13232
13233 * normal/arg.c: Move from here ...
13234 * lib/arg.c: ... to here.
13235
13236 * commands/extcmd.c: New file.
13237 * commands/minicmd.c: Likewise.
13238 * include/grub/command.h: Likewise.
13239 * include/grub/extcmd.h: Likewise.
13240 * kern/command.c: Likewise.
13241 * kern/corecmd.c: Likewise.
13242
13243 * kern/list.c (grub_list_iterate): Return int instead of void.
13244 (grub_list_insert): New function.
13245 (grub_prio_list_insert): Likewise.
13246
13247 * kern/rescue.c (grub_rescue_command): Removed.
13248 (grub_rescue_command_list): Likewise.
13249 (grub_rescue_register_command): Likewise.
13250 (grub_rescue_unregister_command): Likewise.
13251 (grub_rescue_cmd_boot): Move to minicmd.c
13252 (grub_rescue_cmd_help): Likewise.
13253 (grub_rescue_cmd_info): Likewise.
13254 (grub_rescue_cmd_boot): Likewise.
13255 (grub_rescue_cmd_testload): Likewise.
13256 (grub_rescue_cmd_dump): Likewise.
13257 (grub_rescue_cmd_rmmod): Likewise.
13258 (grub_rescue_cmd_lsmod): Likewise.
13259 (grub_rescue_cmd_exit): Likewise.
13260 (grub_rescue_print_devices): Moved to corecmd.c.
13261 (grub_rescue_print_files): Likewise.
13262 (grub_rescue_cmd_ls): Likewise.
13263 (grub_rescue_cmd_insmod): Likewise.
13264 (grub_rescue_cmd_set): Likewise.
13265 (grub_rescue_cmd_unset): Likewise.
13266 (attempt_normal_mode): Use grub_command_find to get normal module.
13267 (grub_enter_rescue_mode): Use grub_register_core_commands to register
13268 commands, remove grub_rescue_register_command calls.
13269
13270 * normal/command.c (grub_register_command): Removed.
13271 (grub_unregister_command): Likewise.
13272 (grub_command_find): Likewise.
13273 (grub_iterate_commands): Likewise.
13274 (rescue_command): Likewise.
13275 (export_command): Moved to corecmd.c.
13276 (set_command): Removed.
13277 (unset_command): Likewise.
13278 (insmod_command): Likewise.
13279 (rmmod_command): Likewise.
13280 (lsmod_command): Likewise.
13281 (grub_command_init): Likewise.
13282
13283 * normal/completion.c (iterate_command): Use cmd->prio to check for
13284 active command.
13285 (complete_arguments): Use grub_extcmd_t structure to find options.
13286 (grub_normal_do_completion): Change function grub_iterate_commands to
13287 grub_command_iterate.
13288
13289 * normal/execute.c (grub_script_execute_cmd): No need to parse
13290 argument here.
13291
13292 * normal/main.c (grub_dyncmd_dispatcher): New function.
13293 (read_command_list): Register unload commands as dyncmd.
13294 (grub_cmd_normal): Use new command interface, register rescue,
13295 unregister normal at entry, register normal, unregister rescue at exit.
13296
13297 * include/grub/list.h (grub_list_test_t): New type.
13298 (grub_list_iterate): Return int instead of void.
13299 (grub_list_insert): New function.
13300 (GRUB_AS_NAMED_LIST_P): New macro.
13301 (GRUB_AS_PRIO_LIST): Likewise.
13302 (GRUB_AS_PRIO_LIST_P): Likewise.
13303 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
13304 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
13305 (grub_prio_list): New structure.
13306 (grub_prio_list_insert): New function.
13307 (grub_prio_list_remove): New inline function.
13308
13309 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
13310 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
13311 (GRUB_COMMAND_FLAG_MENU): Likewise.
13312 (GRUB_COMMAND_FLAG_BOTH): Likewise.
13313 (GRUB_COMMAND_FLAG_TITLE): Likewise.
13314 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
13315 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
13316 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
13317 (grub_command): Likewise.
13318 (grub_register_command): Likewise.
13319 (grub_command_find): Likewise.
13320 (grub_iterate_commands): Likewise.
13321 (grub_command_init): Likewise.
13322 (grub_arg_parse): Likewise.
13323 (grub_arg_show_help): Likewise.
13324
13325 * include/grub/rescue.h (grub_rescue_register_command): Removed.
13326 (grub_rescue_unregister_command): Likewise.
13327
13328 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
13329 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
13330 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
13331
13332 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
13333 grub_rescue_cmd_initrd.
13334 * include/grub/i386/loader.h: Likewise.
13335 * include/grub/x86_64/loader.h: Likewise.
13336
13337 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
13338
13339 2009-03-21 Bean <bean123ch@gmail.com>
13340
13341 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
13342 instead of stat in mingw environment.
13343
13344 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
13345
13346 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
13347
13348 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
13349 AC_CONFIG_LINKS.
13350
13351 2009-03-21 Bean <bean123ch@gmail.com>
13352
13353 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
13354 out of range error.
13355
13356 2009-03-18 Michel Dänzer <michel@daenzer.net>
13357
13358 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
13359 checking inode flags for EXT4_EXTENTS_FLAG.
13360
13361 2009-03-18 Robert Millan <rmh@aybabtu.com>
13362
13363 * loader/i386/linux.c: Include `<grub/video.h>' and
13364 `<grub/i386/pc/vbe.h>'..
13365 (grub_linux_setup_video): New function. Loosely based on the EFI one.
13366 (grub_linux32_boot): Attempt to configure video settings with
13367 grub_linux_setup_video().
13368 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
13369 to avoid grub_console_fini() which would step out of graphical mode
13370 unconditionally.
13371
13372 2009-03-14 Robert Millan <rmh@aybabtu.com>
13373
13374 Fix build on powerpc.
13375 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
13376
13377 2009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
13378
13379 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
13380 background image command.
13381
13382 2009-03-12 Colin D Bennett <colin@gibibit.com>
13383
13384 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
13385 (grub_gfxterm_putchar): Extract pairs of identical calls to
13386 draw_cursor out of conditional blocks.
13387
13388 2009-03-11 Pavel Roskin <proski@gnu.org>
13389
13390 * fs/hfs.c (grub_hfs_strncasecmp): New function.
13391 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
13392
13393 2009-03-11 Robert Millan <rmh@aybabtu.com>
13394
13395 * loader/i386/multiboot_elfxx.c
13396 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
13397
13398 2009-03-11 Felix Zielcke <fzielcke@z-51.de>
13399
13400 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
13401 `kern/handler.c'.
13402
13403 2009-03-11 Robert Millan <rmh@aybabtu.com>
13404
13405 * loader/i386/multiboot.c (code_size): New variable.
13406 (grub_multiboot): Define offsets by adding to `code_size' rather
13407 than subtracting from `grub_multiboot_payload_size'. Provide
13408 4-byte alignment to MBI and others by increasing
13409 `boot_loader_name_length' appropriately.
13410
13411 * loader/i386/multiboot_elfxx.c
13412 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
13413
13414 2009-03-09 Felix Zielcke <fzielcke@z-51.de>
13415
13416 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
13417 `fs/ext2.c'.
13418
13419 2009-03-08 Robert Millan <rmh@aybabtu.com>
13420
13421 Make loader/i386/linux.c usable on i386-pc again.
13422
13423 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
13424 memory to heap.
13425 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
13426 `#error' stanza.
13427
13428 2009-03-07 Bean <bean123ch@gmail.com>
13429
13430 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
13431 allocation.
13432
13433 2009-03-06 Robert Millan <rmh@aybabtu.com>
13434
13435 Fix display issue on terminals with screen size other than 80x25
13436 (e.g. gfxterm with resolution higher than 640x480).
13437
13438 * normal/main.c (grub_normal_init_page): Display title text in a
13439 position relative to the center of the terminal instead of relying
13440 on a hardcoded offset.
13441
13442 2009-03-04 Robert Millan <rmh@aybabtu.com>
13443
13444 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
13445 installed.
13446
13447 * Makefile.in (host_kernel): New variable.
13448 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
13449 scripts instead of just the windows one.
13450 * configure.ac: Initialize and AC_SUBST `host_kernel'.
13451
13452 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
13453
13454 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
13455 `kern/handler.c'.
13456 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
13457 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
13458 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
13459 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13460 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13461 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13462
13463 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
13464
13465 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
13466 or if there's no space for the disk label and print the partition number on a
13467 invalid magic.
13468
13469 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
13470
13471 * util/misc.c: Include <time.h>.
13472 (grub_millisleep): New function.
13473
13474 2009-03-04 Bean <bean123ch@gmail.com>
13475
13476 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
13477 another option -mno-red-zone.
13478
13479 * commands/handler.c: Change module description.
13480
13481 * kern/handler.c: Add missing space at the end of description line.
13482
13483 * kern/list.c: Likewise.
13484
13485 2009-03-03 Robert Millan <rmh@aybabtu.com>
13486
13487 Move more components to the relocation area, and fix mbi pointer
13488 handling to use the destination rather than the origin (thanks to
13489 Vladimir Serbinenko for spotting).
13490
13491 * loader/i386/multiboot.c (mbi_dest): New variable.
13492 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
13493 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
13494 relocation area.
13495
13496 2009-03-01 Bean <bean123ch@gmail.com>
13497
13498 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
13499 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
13500 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
13501 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
13502
13503 * loader/i386/efi/linux.c (acpi_guid): New variable.
13504 (acpi_guid): Likewise.
13505 (EBDA_SEG_ADDR): New constant.
13506 (LOW_MEM_ADDR): Likewise.
13507 (FAKE_EBDA_SEG): Likewise.
13508 (fake_bios_data): New function.
13509 (grub_linux_boot): Call fake_bios_data.
13510
13511 2009-03-01 Bean <bean123ch@gmail.com>
13512
13513 * commands/terminal.c: Removed.
13514
13515 * commands/handler.c: New file.
13516
13517 * include/grub/list.h: Likewise.
13518
13519 * include/grub/handler.h: Likewise.
13520
13521 * kern/list.c: Likewise.
13522
13523 * kern/handler.c: Likewise.
13524
13525 * kern/term.h: Include header file <grub/handler.h>.
13526 (grub_term_input): Move next field to the beginning.
13527 (grub_term_output): Likewise.
13528 (grub_term_input_class): New variable.
13529 (grub_term_output_class): Likewise.
13530 (grub_term_register_input): Changed to inline function.
13531 (grub_term_register_output): Likewise.
13532 (grub_term_unregister_input): Likewise.
13533 (grub_term_unregister_output): Likewise.
13534 (grub_term_set_current_input): Likewise.
13535 (grub_term_set_current_output): Likewise.
13536 (grub_term_get_current_input): Likewise.
13537 (grub_term_get_current_output): Likewise.
13538 (grub_term_iterate_input): Removed.
13539 (grub_term_iterate_output): Likewise.
13540
13541 * kern/term.c (grub_term_list_input): Removed.
13542 (grub_term_list_output): Likewise.
13543 (grub_term_input_class): New variable.
13544 (grub_term_output_class): Likewise.
13545 (grub_cur_term_input): Change variable as macro.
13546 (grub_cur_term_output): Likewise.
13547 (grub_term_register_input): Removed.
13548 (grub_term_register_output): Likewise.
13549 (grub_term_unregister_input): Likewise.
13550 (grub_term_unregister_output): Likewise.
13551 (grub_term_set_current_input): Likewise.
13552 (grub_term_set_current_output): Likewise.
13553 (grub_term_iterate_input): Likewise.
13554 (grub_term_iterate_output): Likewise.
13555 (grub_term_get_current_input): Likewise.
13556 (grub_term_get_current_output): Likewise.
13557
13558 * util/grub-editenv.c: Include header file <grub/handler.h>.
13559 (grub_term_get_current_input): Removed.
13560 (grub_term_get_current_output): Likewise.
13561 (grub_term_input_class): New variable.
13562 (grub_term_output_class): Likewise.
13563
13564 * util/grub-fstest.c (grub_term_get_current_input): Removed.
13565 (grub_term_get_current_output): Likewise.
13566 (grub_term_input_class): New variable.
13567 (grub_term_output_class): Likewise.
13568
13569 * util/grub-probe.c (grub_term_get_current_input): Removed.
13570 (grub_term_get_current_output): Likewise.
13571 (grub_term_input_class): New variable.
13572 (grub_term_output_class): Likewise.
13573
13574 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
13575 (grub_term_get_current_output): Likewise.
13576 (grub_term_input_class): New variable.
13577 (grub_term_output_class): Likewise.
13578
13579 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
13580 (terminal_mod_SOURCES): Likewise.
13581 (terminal_mod_CFLAGS): Likewise.
13582 (terminal_mod_LDFLAGS): Likewise.
13583
13584 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
13585 handler.c.
13586 (kernel_img_SOURCES): Add list.c and handler.c.
13587 (kernel_img_HEADERS): Add list.h and handler.h.
13588
13589 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
13590 handler.c.
13591 (kernel_mod_SOURCES): Add list.c and handler.c.
13592 (kernel_mod_HEADERS): Add list.h and handler.h.
13593
13594 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
13595 handler.c.
13596 (kernel_elf_SOURCES): Add list.c and handler.c.
13597 (kernel_elf_HEADERS): Add list.h and handler.h.
13598
13599 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
13600 handler.c.
13601 (kernel_elf_SOURCES): Add list.c and handler.c.
13602 (kernel_elf_HEADERS): Add list.h and handler.h.
13603
13604 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
13605 handler.c.
13606 (kernel_mod_SOURCES): Add list.c and handler.c.
13607 (kernel_mod_HEADERS): Add list.h and handler.h.
13608
13609 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
13610 handler.c.
13611 (kernel_elf_SOURCES): Add list.c and handler.c.
13612 (kernel_elf_HEADERS): Add list.h and handler.h.
13613
13614 2009-02-27 Robert Millan <rmh@aybabtu.com>
13615
13616 Factorize elf32 / elf64 code in Multiboot loader. This will
13617 prevent it from getting out of sync again.
13618
13619 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
13620 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
13621 grub_multiboot_load_elf64): Move from here ...
13622 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
13623 grub_multiboot_load_elf): ... to here (new file).
13624
13625 2009-02-27 Robert Millan <rmh@aybabtu.com>
13626
13627 * util/grub.d/10_linux.in: Rename "single-user mode" to
13628 "recovery mode".
13629
13630 2009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
13631
13632 Don't leak in SCSI code.
13633 * disk/scsi.c (grub_scsi_close): free `scsi'.
13634
13635 2009-02-27 Robert Millan <rmh@aybabtu.com>
13636
13637 * loader/i386/pc/multiboot.c: Move from here ...
13638 * loader/i386/multiboot.c: ... to here. Update all users.
13639
13640 2009-02-27 Robert Millan <rmh@aybabtu.com>
13641
13642 Patch from Alexandre Bique <bique.alexandre@gmail.com>
13643 * util/i386/pc/grub-setup.c (setup): Fix directory path.
13644
13645 2009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
13646
13647 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
13648 b-tree.
13649
13650 2009-02-27 Robert Millan <rmh@aybabtu.com>
13651
13652 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
13653 `0x' qualifier as 0 when base is specified as parameter).
13654
13655 2009-02-24 Bean <bean123ch@gmail.com>
13656
13657 * configure.ac: Check for -mcmodel=large in x86_64 target.
13658
13659 * include/grub/efi/api.h (efi_call_10): New macro.
13660 (efi_wrap_10): New function.
13661
13662 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
13663 (GRUB_PE32_REL_BASED_HIGH): Likewise.
13664 (GRUB_PE32_REL_BASED_LOW): Likewise.
13665 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
13666 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
13667 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
13668 (GRUB_PE32_REL_BASED_SECTION): Likewise.
13669 (GRUB_PE32_REL_BASED_REL): Likewise.
13670 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
13671 (GRUB_PE32_REL_BASED_DIR64): Likewise.
13672 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
13673
13674 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
13675 issue.
13676
13677 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
13678 (efi_wrap_10): New function.
13679
13680 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
13681
13682 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
13683 MB/MBP model (NV chipset).
13684 (devdata_devs): Add devpath_5 to the list.
13685
13686 * load/i386/efi/linux.c (video_base): Remove variable.
13687 (RGB_MASK): New macro.
13688 (RGB_MAGIC): Likewise.
13689 (LINE_MIN): Likewise.
13690 (LINE_MAX): Likewise.
13691 (FBTEST_STEP): Likewise.
13692 (FBTEST_COUNT): Likewise.
13693 (fb_list): New variable.
13694 (grub_find_video_card): Remove function.
13695 (find_framebuf): New function.
13696 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
13697 line length.
13698
13699 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
13700 problem for x86_64.
13701
13702 2009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
13703
13704 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
13705
13706 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
13707 coding tool name.
13708
13709 2009-02-22 Robert Millan <rmh@aybabtu.com>
13710
13711 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
13712 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
13713 in our relocation, instead of using it directly from heap. Also
13714 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
13715
13716 2009-02-21 Robert Millan <rmh@aybabtu.com>
13717
13718 Implement USB keyboard support (based on patch by Marco Gerards)
13719
13720 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
13721 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
13722 (usb_keyboard_mod_LDFLAGS): New variables.
13723
13724 * term/usb_keyboard.c: New file.
13725
13726 2009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
13727
13728 Corrected wrong declaration
13729
13730 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
13731
13732 2009-02-14 Christian Franke <franke@computer.org>
13733
13734 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
13735 (grub_lspci_iter): Print class code and programming interface byte.
13736
13737 2009-02-14 Christian Franke <franke@computer.org>
13738
13739 * gendistlist.sh: Ignore `.svn' directories.
13740
13741 2009-02-14 Felix Zielcke <fzielcke@z-51.de>
13742
13743 * fs/fat.c: Add 2009 to Copyright line.
13744
13745 2009-02-14 Christian Franke <franke@computer.org>
13746
13747 * commands/hdparm.c: New file. Provides `hdparm' command
13748 which sends ATA commands via grub_disk_ata_pass_through ().
13749
13750 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
13751
13752 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
13753 and <grub/cpu/io.h> to include/grub/ata.h.
13754 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
13755 (GRUB_CDROM_SECTOR_SIZE): Remove.
13756 (GRUB_ATA_*): Move to include/grub/ata.h.
13757 (GRUB_ATAPI_*): Likewise.
13758 (enum grub_ata_commands): Likewise.
13759 (enum grub_ata_timeout_milliseconds): Likewise.
13760 (struct grub_ata_device): Likewise.
13761 (grub_ata_regset): Likewise.
13762 (grub_ata_regget): Likewise.
13763 (grub_ata_regset2): Likewise.
13764 (grub_ata_regget2): Likewise.
13765 (grub_ata_check_ready): Likewise.
13766 (grub_ata_wait_not_busy): Remove static, exported in
13767 include/grub/ata.h.
13768 (grub_ata_wait_drq): Likewise.
13769 (grub_ata_pio_read): Likewise.
13770
13771 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
13772 function for hdparm.mod.
13773
13774 * include/grub/ata.h: New file, contains declarations from
13775 disk/ata.c.
13776 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
13777
13778 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
13779 (grub_disk_ata_pass_through): New exported variable.
13780
13781 * kern/disk.c (grub_disk_ata_pass_through): New variable.
13782
13783 2009-02-13 Colin D Bennett <colin@gibibit.com>
13784
13785 Support multiple fallback entries, and provide an API to support
13786 executing default+fallback menu entries. Renamed the `terminal' menu
13787 viewer to `text'.
13788
13789 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
13790 variable declaration.
13791 (grub_menu_execute_callback): New structure declaration.
13792 (grub_menu_execute_callback_t): New typedef.
13793 (grub_menu_execute_with_fallback): New function declaration.
13794 (grub_menu_get_entry): Likewise.
13795 (grub_menu_get_timeout): Likewise.
13796 (grub_menu_set_timeout): Likewise.
13797
13798 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
13799
13800 * normal/menu.c (grub_wait_after_message): Moved to
13801 `normal/menu_text.c'.
13802 (draw_border): Likewise.
13803 (print_message): Likewise.
13804 (print_entry): Likewise.
13805 (print_entries): Likewise.
13806 (grub_menu_init_page): Likewise.
13807 (get_entry_number): Likewise.
13808 (print_timeout): Likewise.
13809 (run_menu): Likewise.
13810 (grub_menu_execute_entry): Likewise.
13811 (show_text_menu): Likewise.
13812 (get_and_remove_first_entry_number): New function.
13813 (grub_menu_execute_with_fallback): Likewise.
13814 (get_entry): Renamed to ...
13815 (grub_menu_get_entry): .. this and made it global.
13816 (get_timeout): Renamed to ...
13817 (grub_menu_get_timeout): ... this and made it global.
13818 (set_timeout): Renamed to ...
13819 (grub_menu_set_timeout): ... this and made it global.
13820 (grub_normal_terminal_menu_viewer): Renamed to ...
13821 (grub_normal_text_menu_viewer): ... this.
13822
13823 * normal/menu_text.c: New file. Extracted text-menu-specific code
13824 from normal/menu.c.
13825
13826 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
13827 (normal_mod_SOURCES): Likewise.
13828
13829 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
13830 (normal_mod_SOURCES): Likewise.
13831
13832 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13833 (normal_mod_SOURCES): Likewise.
13834
13835 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
13836 (normal_mod_SOURCES): Likewise.
13837
13838 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13839 (normal_mod_SOURCES): Likewise.
13840
13841 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13842 (normal_mod_SOURCES): Likewise.
13843
13844 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
13845 (normal_mod_SOURCES): Likewise.
13846
13847 2009-02-11 Robert Millan <rmh@aybabtu.com>
13848
13849 * util/grub.d/00_header.in: Update old reference to `font' command.
13850
13851 2009-02-10 Felix Zielcke <fzielcke@z-51.de>
13852
13853 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
13854
13855 Based on patch from Javier Martín.
13856
13857 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
13858
13859 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
13860 to avoid false positives with FAT.
13861 (grub_fstest_SOURCES): Likewise.
13862 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
13863 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
13864 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13865 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
13866 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13867 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13868
13869 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
13870
13871 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
13872 bpb.version_specific.fat12_or_fat16.fstype and
13873 bpb.version_specific.fat32.fstype.
13874
13875 2009-02-08 Robert Millan <rmh@aybabtu.com>
13876
13877 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
13878
13879 2009-02-08 Robert Millan <rmh@aybabtu.com>
13880
13881 * Makefile.in (host_os, host_cpu): New variables.
13882 (target_os): Remove. Update all users.
13883
13884 2009-02-08 Marco Gerards <marco@gnu.org>
13885
13886 * Makefile.in (enable_grub_emu_usb): New variable.
13887 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
13888 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
13889 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
13890 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
13891 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
13892 `usbtest.mod' and `usbms.mod'.
13893 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
13894 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
13895 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
13896 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
13897 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
13898 variables.
13899
13900 * disk/usbms.c: New file.
13901
13902 * include/grub/usb.h: Likewise.
13903
13904 * include/grub/usbtrans.h: Likewise.
13905
13906 * include/grub/usbdesc.h: Likewise.
13907
13908 * bus/usb/usbtrans.c: Likewise.
13909
13910 * bus/usb/ohci.c: Likewise.
13911
13912 * bus/usb/uhci.c: Likewise.
13913
13914 * bus/usb/usbhub.c: Likewise.
13915
13916 * bus/usb/usb.c: Likewise.
13917
13918 * commands/usbtest.c: Likewise.
13919
13920 * util/usb.c: Likewise.
13921
13922 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
13923
13924 * configure.ac: Test for libusb presence.
13925
13926 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
13927
13928 2009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
13929
13930 * kern/mm.c: Add more comments.
13931
13932 2009-02-08 Robert Millan <rmh@aybabtu.com>
13933
13934 Patch from Javier Martín.
13935 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
13936 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
13937
13938 2009-02-08 Robert Millan <rmh@aybabtu.com>
13939
13940 * fs/cpio.c: Split tar functionality to ...
13941 * fs/tar.c: ... here (new file). Update all users.
13942
13943 2009-02-07 Robert Millan <rmh@aybabtu.com>
13944
13945 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
13946 backward-incompatible features.
13947
13948 Based on patch from Javier Martín, with some adjustments.
13949
13950 2009-02-07 Michael Scherer <misc@mandriva.org>
13951
13952 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
13953
13954 2009-02-07 Robert Millan <rmh@aybabtu.com>
13955
13956 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
13957 position of `disk/lvm.c' to ensure grub_init_all() always picks it
13958 after the RAID stuff.
13959
13960 2009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
13961
13962 Fixes problem when running vbetest command as reported by
13963 Vladimir Serbinenko <phcoder@gmail.com>.
13964
13965 * (grub_vbe_set_video_mode): Fixed problem with text modes.
13966
13967 2009-02-04 Felix Zielcke <fzielcke@z-51.de>
13968
13969 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
13970 /dev/md/NpN style mdraid devices.
13971
13972 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
13973
13974 * util/unifont2pff.rb: Remove.
13975
13976 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
13977
13978 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
13979 `#'.
13980
13981 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
13982
13983 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
13984 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
13985 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
13986 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
13987 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13988 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13989 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13990
13991 2009-02-02 Christian Franke <franke@computer.org>
13992
13993 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
13994
13995 2009-02-01 Felix Zielcke <fzielcke@z-51.de>
13996
13997 * INSTALL: Note that we now require at least autoconf 2.59 and
13998 that LZO is optional.
13999
14000 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
14001
14002 Base on patch on bug #24154 created by Tomas Tintera
14003 <trosos@seznam.cz>.
14004
14005 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
14006
14007 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
14008
14009 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
14010 <bero@arklinux.org>.
14011
14012 * normal/parser.y (script_init): Add missing semicolon.
14013
14014 2009-01-31 Colin D Bennett <colin@gibibit.com>
14015
14016 * normal/main.c: Add include to grub/menu_viewer.h.
14017 (free_menu_entry_classes): Added.
14018 (grub_normal_menu_addentry): Added class property handling.
14019 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
14020 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
14021
14022 * normal/menu_viewer.c: New file.
14023
14024 * normal/menu.c (run_menu_entry): Renamed to ...
14025 (grub_menu_execute_entry): ... this and made it as global.
14026 (grub_menu_run): Renamed to ...
14027 (show_text_menu): ... this and made it local.
14028 (show_text_menu): Adapt to new function names.
14029 (grub_normal_terminal_menu_viewer): New global variable.
14030
14031 * include/grub/menu.h: New file.
14032
14033 * include/grub/menu_viewer.h: New file.
14034
14035 * include/grub/normal.h: Added include to grub/menu.h.
14036 (grub_menu_entry): Moved to include/grub/menu.h.
14037 (grub_menu_entry_t): Likewise.
14038 (grub_menu): Likewise.
14039 (grub_menu_t): Likewise.
14040 (grub_normal_terminal_menu_viewer): Added.
14041 (grub_menu_execute_entry): Likewise.
14042 (grub_menu_run): Removed.
14043
14044 * DISTLIST: Added include/grub/menu.h.
14045 Added include/grub/menu_viewer.h.
14046 Added normal/menu_viewer.c.
14047
14048 2009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
14049
14050 * normal/execute.c (grub_script_execute_menuentry): Changed to use
14051 arglist for menutitle arguments.
14052
14053 * normal/main.c (grub_normal_menu_addentry): Likewise.
14054
14055 * normal/parser.y (menuentry): Likewise.
14056
14057 * normal/script.c (grub_script_create_cmdmenu): Likewise.
14058
14059 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
14060 (grub_script_create_cmdmenu): Likewise.
14061
14062 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
14063
14064 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
14065 changes.
14066
14067 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
14068
14069 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
14070
14071 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
14072
14073 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
14074
14075 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
14076
14077 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
14078
14079 2009-01-30 Christian Franke <franke@computer.org>
14080
14081 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
14082 in option help text.
14083
14084 2009-01-27 Pavel Roskin <proski@gnu.org>
14085
14086 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
14087
14088 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
14089
14090 * commands/lsmmap.c: Add include to grub/machine/memory.h.
14091
14092 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
14093
14094 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
14095 unregister function.
14096
14097 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
14098
14099 * disk/scsi.c (grub_scsi_read): Fix sign problem.
14100
14101 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
14102
14103 * util/grub-mkfont.c (usage): Fix typo.
14104
14105 * util/elf/grub-mkimage.c (load_modules): Fix warning.
14106
14107 2009-01-26 Daniel Mierswa <impulze@impulze.org>
14108
14109 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
14110
14111 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
14112
14113 * kern/misc.c (grub_strcasecmp): New function.
14114 (grub_strcasecmp): Use grub_size_t instead of int for length.
14115 Fix return value.
14116 * include/grub/misc.h: Update function prototypes.
14117
14118 2009-01-26 Robert Millan <rmh@aybabtu.com>
14119
14120 * configure.ac: Fix cross-compilation check.
14121
14122 2009-01-22 Christian Franke <franke@computer.org>
14123
14124 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
14125 (precision) digit string. Allow `.format2' without `format1' (width).
14126 Limit input chars for `%s' output to `format2' if specified. This is
14127 compatible with standard printf ().
14128
14129 2009-01-22 Christian Franke <franke@computer.org>
14130
14131 * disk/ata.c (grub_ata_wait_status): Replace by ...
14132 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
14133 other status bits may be invalid while BSY is asserted.
14134 (grub_ata_check_ready): New function.
14135 (grub_ata_cmd): Removed.
14136 (grub_ata_wait_drq): New function.
14137 (grub_ata_strncpy): Remove inline.
14138 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
14139 and error check now done by grub_ata_wait_drq ().
14140 (grub_ata_pio_write): Likewise.
14141 (grub_atapi_identify): Set DEV before check for !BSY. Use
14142 grub_ata_wait_drq () to wait for data.
14143 (grub_ata_device_initialize): Add status register check to
14144 detect missing SATA slave devices. Add debug messages.
14145 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
14146 (grub_atapi_packet): Set DEV before check for !BSY. Replace
14147 transfer loop by grub_ata_pio_write ().
14148 (grub_ata_identify): Set DEV before check for !BSY. Use
14149 grub_ata_wait_drq () to wait for data.
14150 (grub_ata_setaddress): Set DEV before check for !BSY.
14151 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
14152 read/write in one loop. Fix invalid command on write. Fix incomplete
14153 command on (size % batch) == 0. Add missing error check after write of
14154 last block. Add debug messages.
14155 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
14156
14157 2009-01-19 Christian Franke <franke@computer.org>
14158
14159 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
14160 (GRUB_ATAPI_IREASON_*): Likewise.
14161 (grub_ata_pio_write): Fix timeout error return.
14162 (grub_atapi_identify): Add grub_ata_wait () after cmd.
14163 (grub_atapi_wait_drq): New function.
14164 (grub_atapi_packet): New parameter `size'.
14165 Use grub_atapi_wait_drq () and direct write instead of
14166 grub_ata_pio_write ().
14167 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
14168 reads the number of bytes requested by the device for each DRQ
14169 assertion.
14170 (grub_atapi_write): Remove old implementation, return not
14171 implemented instead.
14172
14173 2009-01-19 Christian Franke <franke@computer.org>
14174
14175 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
14176 of 512 to calculate data size.
14177 (grub_scsi_read12): Likewise.
14178 (grub_scsi_write10): Likewise.
14179 (grub_scsi_write12): Likewise.
14180 (grub_scsi_read): Adjust size according to blocksize.
14181 Add checks for invalid blocksize and unaligned transfer.
14182
14183 2009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
14184
14185 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
14186
14187 * term/gfxterm.c (write_char): Fix background rendering for wide
14188 width glyphs.
14189
14190 2009-01-19 Robert Millan <rmh@aybabtu.com>
14191
14192 * config.guess: Update to latest version from config git.
14193 * config.sub: Likewise.
14194
14195 2009-01-17 Felix Zielcke <fzielcke@z-51.de>
14196
14197 * Makefile.in: Change font compilation to use new grub-mkfont instead
14198 of java version.
14199
14200 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
14201 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
14202 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
14203 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
14204 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
14205 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
14206 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
14207 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
14208 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
14209
14210 2009-01-16 Christian Franke <franke@computer.org>
14211
14212 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
14213 (enum grub_ata_timeout_milliseconds): New enum.
14214 (grub_ata_wait_status): Add parameter milliseconds.
14215 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
14216 recovery from timed-out commands.
14217 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
14218 return grub_errno instead of REG_ERROR.
14219 (grub_ata_pio_write): Add parameter milliseconds.
14220 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
14221 Pass milliseconds to grub_ata_wait_status () and
14222 grub_ata_pio_read ().
14223 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
14224 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
14225 grub_ata_wait_status (). Fix IDENTIFY timeout check.
14226 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
14227 It is not suitable for device detection, because DEV bit is ignored,
14228 the command may run too long, and not all devices set the signature
14229 properly.
14230 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
14231 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
14232 Fix device selection, DEV bit must be set first to address the registers
14233 of the correct device.
14234 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
14235 grub_ata_pio_read/write ().
14236 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
14237 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
14238
14239 2009-01-13 Carles Pina i Estany <carles@pina.cat>
14240
14241 * util/grub-editenv.c (main): Use fseeko(), not fseek().
14242
14243 2009-01-13 Bean <bean123ch@gmail.com>
14244
14245 * util/grub-mkfont.c (write_font): forget to remove some debug code.
14246
14247 2009-01-13 Bean <bean123ch@gmail.com>
14248
14249 * Makefile.in: (enable_grub_mkfont): New variable.
14250 (freetype_cflags): Likewise.
14251 (freetype_libs): Likewise.
14252
14253 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
14254 (grub_mkfont_SOURCES): New variable.
14255 (grub_mkfont_CFLAGS): Likewise.
14256 (grub_mkfont_LDFLAGS): Likewise.
14257
14258 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
14259 library if `--enable-grub-mkfont' is requested.
14260 (enable_grub_mkfont): New variable.
14261 (freetype_cflags): Likewise.
14262 (freetype_libs): Likewise.
14263
14264 * util/grub-mkfont.c: New file.
14265
14266 2009-01-12 Christian Franke <franke@computer.org>
14267
14268 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
14269 mode check. Fix setting of compat_use[].
14270
14271 2009-01-10 Robert Millan <rmh@aybabtu.com>
14272
14273 Update a few copyright years which we forgot to do in 2008 (only for
14274 files whose changes made in 2008 were copyright-significant)
14275
14276 * Makefile.in: Add 2008 to Copyright line.
14277 * disk/ieee1275/ofdisk.c: Likewise.
14278 * disk/efi/efidisk.c: Likewise.
14279 * kern/dl.c: Likewise.
14280 * kern/sparc64/ieee1275/init.c: Likewise.
14281 * kern/mm.c: Likewise.
14282 * kern/efi/mm.c: Likewise.
14283 * boot/i386/pc/boot.S: Likewise.
14284 * genfslist.sh: Likewise.
14285 * fs/iso9660.c: Likewise.
14286 * fs/hfs.c: Likewise.
14287 * fs/jfs.c: Likewise.
14288 * fs/minix.c: Likewise.
14289 * fs/ufs.c: Likewise.
14290 * gensymlist.sh.in: Likewise.
14291 * genkernsyms.sh.in: Likewise.
14292 * include/grub/misc.h: Likewise.
14293 * include/grub/types.h: Likewise.
14294 * include/grub/symbol.h: Likewise.
14295 * include/grub/elf.h: Likewise.
14296 * include/grub/kernel.h: Likewise.
14297 * include/grub/disk.h: Likewise.
14298 * include/grub/dl.h: Likewise.
14299 * include/grub/i386/linux.h: Likewise.
14300 * include/grub/i386/pc/biosdisk.h: Likewise.
14301 * include/grub/efi/api.h: Likewise.
14302 * include/grub/efi/pe32.h: Likewise.
14303 * include/grub/util/misc.h: Likewise.
14304 * normal/execute.c: Likewise.
14305 * normal/arg.c: Likewise.
14306 * normal/completion.c: Likewise.
14307 * normal/lexer.c: Likewise.
14308 * normal/parser.y: Likewise.
14309 * normal/misc.c: Likewise.
14310 * commands/i386/pc/vbeinfo.c: Likewise.
14311 * commands/hexdump.c: Likewise.
14312 * commands/terminal.c: Likewise.
14313 * commands/ls.c: Likewise.
14314 * commands/help.c: Likewise.
14315 * partmap/pc.c: Likewise.
14316 * loader/efi/chainloader.c: Likewise.
14317 * loader/multiboot_loader.c: Likewise.
14318 * loader/i386/pc/multiboot2.c: Likewise.
14319 * term/efi/console.c: Likewise.
14320 * term/i386/pc/serial.c: Likewise.
14321 * util/lvm.c: Likewise.
14322 * util/console.c: Likewise.
14323 * util/i386/efi/grub-mkimage.c: Likewise.
14324 * util/raid.c: Likewise.
14325
14326 2009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
14327
14328 * commands/videotest.c: Removed include to grub/machine/memory.h.
14329
14330 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
14331 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
14332 (video_mod_SOURCES): Removed.
14333 (video_mod_CFLAGS): Likewise.
14334 (video_mod_LDFLAGS): Likewise.
14335 (gfxterm_mod_SOURCES): Likewise.
14336 (gfxterm_mod_CFLAGS): Likewise.
14337 (gfxterm_mod_LDFLAGS): Likewise.
14338 (videotest_mod_SOURCES): Likewise.
14339 (videotest_mod_CFLAGS): Likewise.
14340 (videotest_mod_LDFLAGS): Likewise.
14341 (bitmap_mod_SOURCES): Likewise.
14342 (bitmap_mod_CFLAGS): Likewise.
14343 (bitmap_mod_LDFLAGS): Likewise.
14344 (tga_mod_SOURCES): Likewise.
14345 (tga_mod_CFLAGS): Likewise.
14346 (tga_mod_LDFLAGS): Likewise.
14347 (jpeg_mod_SOURCES): Likewise.
14348 (jpeg_mod_CFLAGS): Likewise.
14349 (jpeg_mod_LDFLAGS): Likewise.
14350 (png_mod_SOURCES): Likewise.
14351 (png_mod_CFLAGS): Likewise.
14352 (png_mod_LDFLAGS): Likewise.
14353
14354 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
14355 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
14356 (video_mod_SOURCES): Added.
14357 (video_mod_CFLAGS): Likewise.
14358 (video_mod_LDFLAGS): Likewise.
14359 (videotest_mod_SOURCES): Likewise.
14360 (videotest_mod_CFLAGS): Likewise.
14361 (videotest_mod_LDFLAGS): Likewise.
14362 (bitmap_mod_SOURCES): Likewise.
14363 (bitmap_mod_CFLAGS): Likewise.
14364 (bitmap_mod_LDFLAGS): Likewise.
14365 (tga_mod_SOURCES): Likewise.
14366 (tga_mod_CFLAGS): Likewise.
14367 (tga_mod_LDFLAGS): Likewise.
14368 (jpeg_mod_SOURCES): Likewise.
14369 (jpeg_mod_CFLAGS): Likewise.
14370 (jpeg_mod_LDFLAGS): Likewise.
14371 (png_mod_SOURCES): Likewise.
14372 (png_mod_CFLAGS): Likewise.
14373 (png_mod_LDFLAGS): Likewise.
14374 (gfxterm_mod_SOURCES): Likewise.
14375 (gfxterm_mod_CFLAGS): Likewise.
14376 (gfxterm_mod_LDFLAGS): Likewise.
14377
14378 * term/gfxterm.c: Removed include to grub/machine/memory.h,
14379 grub/machine/console.h.
14380
14381 2009-01-04 Jerone Young <jerone@gmail.com>
14382
14383 Make on screen instructions clearer
14384
14385 Based on patch created by Jidanni <jidanni@jidanni.org>
14386
14387 * normal/menu.c: print clearer instructions on the screen
14388
14389 2009-01-02 Colin D Bennett <colin@gibibit.com>
14390
14391 New font engine.
14392
14393 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
14394 build system and fixed gfxterm.c to work with different sized fonts.
14395
14396 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
14397
14398 * configure: Re-generated.
14399
14400 * DISTLIST: Removed font/manager.c.
14401 Added font/font.c.
14402 Added font/font_cmd.c.
14403
14404 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
14405 compilation.
14406
14407 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
14408
14409 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
14410
14411 * kern/term.c: Changed users of grub_utf8_to_ucs4.
14412
14413 * normal/menu.c: Likewise.
14414
14415 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
14416 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
14417
14418 * include/grub/font.h: Replaced with new file.
14419
14420 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
14421 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
14422 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
14423 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
14424 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
14425 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
14426 fg_red, fg_green, fg_blue, fg_alpha.
14427 (grub_video_adapter): Removed blit_glyph.
14428 (grub_video_blit_glyph): Removed.
14429
14430 * font/manager.c: Removed file.
14431
14432 * font/font.c: New file.
14433
14434 * font/font_cmd.c: Likewise.
14435
14436 * video/video.c (grub_video_blit_glyph): Removed.
14437
14438 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
14439 (grub_video_vbe_map_rgba): Likewise.
14440 (grub_video_vbe_unmap_color_int): Likewise.
14441 (grub_video_vbe_blit_glyph): Removed.
14442 (grub_video_vbe_adapter): Removed blit_glyph.
14443
14444 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
14445 (get_pixel): Likewise.
14446 (set_pixel): Likewise.
14447
14448 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
14449
14450 * term/gfxterm.c: Adapted to new font engine.
14451
14452 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
14453
14454 * term/i386/pc/vga.c: Likewise.
14455
14456 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
14457
14458 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
14459
14460 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
14461
14462 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
14463
14464 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
14465
14466 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
14467
14468 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
14469
14470 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
14471
14472 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
14473
14474 * util/grub.d/00_header.in: Changed to use new loadfont command.
14475
14476 * util/grub-mkconfig_lib.in: Changed font extension.
14477
14478 2008-12-28 Felix Zielcke <fzielcke@z-51.de>
14479
14480 * util/getroot.c (grub_util_get_grub_dev): Add support for
14481 /dev/md/dNNpNN style partitionable mdraid devices.
14482
14483 2008-12-12 Alex Smith <alex@alex-smith.me.uk>
14484
14485 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
14486 at a time limit of the PXE TFTP API correctly.
14487 (grub_pxefs_close): Likewise.
14488
14489 2008-11-29 Robert Millan <rmh@aybabtu.com>
14490
14491 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
14492 grub_ata_device_initialize() calls.
14493
14494 2008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
14495
14496 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
14497 iteration failed.
14498 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
14499
14500 2008-11-28 Robert Millan <rmh@aybabtu.com>
14501
14502 Fix build on powerpc-ieee1275. Based on patch created by
14503 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
14504 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
14505 `kern/ieee1275/mmap.c'.
14506 * include/grub/powerpc/ieee1275/memory.h: New file.
14507
14508 Provide grub-install on coreboot.
14509 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
14510 (grub_install_SOURCES): New variable.
14511 * util/i386/pc/grub-install.in: Add a few condition checks to make it
14512 usable on coreboot.
14513
14514 2008-11-25 Felix Zielcke <fzielcke@z-51.de>
14515
14516 * util/grub-fstest.c (grub_term_get_current_input): Change return type
14517 to `grub_term_input_t'.
14518 (grub_term_get_current_output): Change return type to
14519 `grub_term_output_t'.
14520
14521 2008-11-22 Robert Millan <rmh@aybabtu.com>
14522
14523 Fix breakage on coreboot due to declaration mismatch.
14524 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
14525 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
14526 grub_vga_text_cls().
14527
14528 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
14529 comments. Avoid copying one more byte than necessary (just in case).
14530
14531 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
14532 to 0x200000 (avoids trouble with some OFW implementations, and matches
14533 with the one in Yaboot).
14534 Reported by Manoel Abranches
14535
14536 2008-11-20 Robert Millan <rmh@aybabtu.com>
14537
14538 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
14539 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
14540
14541 * util/grub-mkconfig_lib.in (grub_warn): New function.
14542 (convert_system_path_to_grub_path): Use grub_warn() when issuing
14543 warnings, to obtain consistent formatting.
14544 * util/grub.d/00_header.in: Likewise.
14545 * util/update-grub_lib.in: Likewise.
14546
14547 * loader/i386/linux.c (allocate_pages): Fix a warning.
14548 Move comment text to `#error' stanza.
14549
14550 Harmonize ieee1275's grub_available_iterate() with the generic
14551 grub_machine_mmap_iterate() interface (fixes a recently-introduced
14552 build problem on i386-ieee1275):
14553 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
14554 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
14555 parameter `type'. Update all users of this function.
14556 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
14557 `kern/ieee1275/mmap.c'.
14558 * kern/ieee1275/init.c
14559 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
14560 with ...
14561 (grub_machine_mmap_iterate): ... this.
14562 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
14563 return type to `grub_err_t'. Update all implementations of this
14564 function prototype.
14565 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
14566 Likewise.
14567
14568 Add `lsmmap' command (lists firmware-provided memory map):
14569 * commands/lsmmap.c: New file.
14570 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
14571 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
14572 variables.
14573 * conf/powerpc-ieee1275.rmk: Likewise.
14574 * conf/i386-coreboot.rmk: Likewise.
14575 * conf/i386-ieee1275.rmk: Likewise.
14576
14577 2008-11-19 Robert Millan <rmh@aybabtu.com>
14578
14579 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
14580 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
14581 constraints to initrd allocation (based on code from
14582 loader/i386/pc/linux.c). Without them, initrd was allocated too high
14583 for Linux to find it.
14584
14585 2008-11-14 Robert Millan <rmh@aybabtu.com>
14586
14587 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
14588 order to cope with duplicate slashes.
14589
14590 2008-11-14 Robert Millan <rmh@aybabtu.com>
14591
14592 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
14593 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
14594 don't want to mess with lower memory, because it is used in the Linux
14595 loader.
14596
14597 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
14598 an appropriate place in lower memory, between 0x10000 and 0x90000,
14599 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
14600 is in our heap (probably as a result of it being corrupted during
14601 decompression). Add #error instance with comment to explain why this
14602 loader isn't currently usable on PC/BIOS.
14603
14604 2008-11-14 Robert Millan <rmh@aybabtu.com>
14605
14606 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
14607 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
14608
14609 2008-11-12 Robert Millan <rmh@aybabtu.com>
14610
14611 Make loader/i386/linux.c buildable on i386-pc (although disabled).
14612
14613 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
14614 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
14615 from here ...
14616 * include/grub/i386/pc/memory.h: ... to here.
14617
14618 2008-11-12 Robert Millan <rmh@aybabtu.com>
14619
14620 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
14621 split).
14622
14623 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
14624 (grub_console_cur_color, grub_console_real_putchar)
14625 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
14626 (grub_console_setcolorstate, grub_console_setcolor)
14627 (grub_console_getcolor): Move from here ...
14628 * include/grub/i386/vga_common.h: ... to here (new file).
14629
14630 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
14631 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
14632 `<grub/i386/io.h>'.
14633 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
14634 `<grub/i386/vga_common.h>'.
14635
14636 2008-11-12 Robert Millan <rmh@aybabtu.com>
14637
14638 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
14639 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
14640 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
14641 variables.
14642 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
14643 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
14644
14645 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
14646 grub_console_init() with call to grub_vga_text_init().
14647 (grub_machine_fini): Replace call to
14648 grub_console_fini() with call to grub_vga_text_fini() and
14649 grub_at_keyboard_fini().
14650
14651 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
14652 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
14653 (grub_console_setcolorstate, grub_console_setcolor)
14654 (grub_console_getcolor): New function prototypes.
14655
14656 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
14657 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
14658 (grub_vga_text_setcursor): Static-ize.
14659 (grub_vga_text_term): New structure.
14660 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
14661
14662 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
14663 (grub_console_cur_color, grub_console_standard_color)
14664 (grub_console_normal_color, grub_console_highlight_color)
14665 (map_char, grub_console_putchar, grub_console_getcharwidth)
14666 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
14667 (grub_console_getcolor): Move from here ...
14668 * term/i386/vga_common.c: ... to here (same function names).
14669
14670 2008-11-12 Robert Millan <rmh@aybabtu.com>
14671
14672 Use newly-added Multiboot support in coreboot.
14673
14674 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
14675 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
14676
14677 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
14678 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
14679 (codestart): Store the MBI in `startup_multiboot_info' when we're
14680 being loaded using Multiboot.
14681
14682 * kern/i386/coreboot/init.c (grub_machine_init): Move
14683 grub_at_keyboard_init() call to beginning of function (useful for
14684 debugging). Call grub_machine_mmap_init() before attempting to use
14685 grub_machine_mmap_iterate().
14686 (grub_lower_mem, grub_upper_mem): Move from here ...
14687 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
14688 here (new file).
14689
14690 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
14691 function prototype.
14692
14693 2008-11-12 Robert Millan <rmh@aybabtu.com>
14694
14695 Fix a regression introduced by the at_keyboard.mod split. Because
14696 some terminals are default on some platforms and non-default on
14697 others, the first terminal being registered determines which is
14698 going to be default.
14699
14700 * kern/term.c (grub_term_register_input): If this is the first
14701 terminal being registered, set it as the current one.
14702 (grub_term_register_output): Likewise.
14703
14704 * term/efi/console.c (grub_console_init): Do not call
14705 grub_term_set_current_output() or grub_term_set_current_input().
14706 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
14707 * term/i386/pc/console.c (grub_console_init): Likewise.
14708 (grub_console_fini): Do not call grub_term_set_current_input()
14709 (but leave grub_term_set_current_output() to restore text mode).
14710
14711 2008-11-10 Robert Millan <rmh@aybabtu.com>
14712
14713 * util/grub.d/00_header.in: Add backward compatibility check for
14714 versions of terminal.mod that don't understand `terminal_input' or
14715 `terminal_output'.
14716
14717 2008-11-09 Robert Millan <rmh@aybabtu.com>
14718
14719 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
14720 `terminal_input' / `terminal_output', not `terminal'.
14721
14722 2008-11-08 Robert Millan <rmh@aybabtu.com>
14723
14724 * Makefile.in (include_DATA): Fix srcdir=. assumption.
14725 (DISTCLEANFILES): Add `build_env.mk'.
14726
14727 2008-11-08 Robert Millan <rmh@aybabtu.com>
14728
14729 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
14730 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
14731 members. Update all users.
14732 * util/console.c (grub_ncurses_term): Split in ...
14733 (grub_ncurses_term_input): ... this, and ...
14734 (grub_ncurses_term_output): ... this. Update all users.
14735 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
14736
14737 2008-11-08 Robert Millan <rmh@aybabtu.com>
14738
14739 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
14740 (PKGDATA): Add $(pkgdata_SRCDIR).
14741 (pkglib_BUILDDIR): New variable.
14742 (pkgdata_SRCDIR): New variable.
14743 (build_env.mk): New target.
14744 (include_DATA): New variable.
14745 (install-local): Install $(include_DATA) files in $(includedir).
14746
14747 2008-11-07 Pavel Roskin <proski@gnu.org>
14748
14749 * gendistlist.sh: Use C locale for sorting to ensure consistent
14750 output on all systems.
14751
14752 * util/grub.d/00_header.in: Remove incorrect space before
14753 "serial".
14754
14755 2008-11-07 Robert Millan <rmh@aybabtu.com>
14756
14757 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
14758 per specification.
14759 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
14760 * loader/multiboot_loader.c (find_multi_boot2_header): New function
14761 (based on find_multi_boot1_header).
14762 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
14763 using find_multi_boot2_header(), and abort if neither Multiboot or
14764 Multiboot headers were found.
14765
14766 2008-11-07 Robert Millan <rmh@aybabtu.com>
14767
14768 Modularize at_keyboard.mod:
14769
14770 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
14771 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
14772 (at_keyboard_mod_LDFLAGS): New variables.
14773
14774 Actual terminal split:
14775
14776 * include/grub/term.h (struct grub_term): Split in ...
14777 (struct grub_term_input): ... this, and ...
14778 (struct grub_term_output): ... this. Update all users.
14779 (grub_term_set_current): Split in ...
14780 (grub_term_set_current_input): ... this, and ...
14781 (grub_term_set_current_output): ... this.
14782 (grub_term_get_current): Split in ...
14783 (grub_term_get_current_input): ... this, and ...
14784 (grub_term_get_current_output): ... this.
14785 (grub_term_register): Split in ...
14786 (grub_term_register_input): ... this, and ...
14787 (grub_term_register_output): ... this.
14788 (grub_term_unregister): Split in ...
14789 (grub_term_unregister_input): ... this, and ...
14790 (grub_term_unregister_output): ... this.
14791 (grub_term_iterate): Split in ...
14792 (grub_term_iterate_input): ... this, and ...
14793 (grub_term_iterate_output): ... this.
14794
14795 * kern/term.c (grub_term_list): Split in ...
14796 (grub_term_list_input): ... this, and ...
14797 (grub_term_list_output): ... this. Update all users.
14798 (grub_cur_term): Split in ...
14799 (grub_cur_term_input): ... this, and ...
14800 (grub_cur_term_output): ... this. Update all users.
14801 (grub_term_set_current): Split in ...
14802 (grub_term_set_current_input): ... this, and ...
14803 (grub_term_set_current_output): ... this.
14804 (grub_term_get_current): Split in ...
14805 (grub_term_get_current_input): ... this, and ...
14806 (grub_term_get_current_output): ... this.
14807 (grub_term_register): Split in ...
14808 (grub_term_register_input): ... this, and ...
14809 (grub_term_register_output): ... this.
14810 (grub_term_unregister): Split in ...
14811 (grub_term_unregister_input): ... this, and ...
14812 (grub_term_unregister_output): ... this.
14813 (grub_term_iterate): Split in ...
14814 (grub_term_iterate_input): ... this, and ...
14815 (grub_term_iterate_output): ... this.
14816
14817 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
14818 a check for input and one for output (and only attempt to get keys
14819 from user when input works).
14820
14821 * util/grub-probe.c (grub_term_get_current): Split in ...
14822 (grub_term_get_current_input): ... this, and ...
14823 (grub_term_get_current_output): ... this.
14824 * util/grub-fstest.c: Likewise.
14825 * util/i386/pc/grub-setup.c: Likewise.
14826 * util/grub-editenv.c: Likewise.
14827
14828 Portability adjustments:
14829
14830 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
14831 `term/i386/pc/at_keyboard.c'.
14832 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
14833 grub_keyboard_controller_init() (now handled by terminal .init).
14834 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
14835 grub_at_keyboard_init().
14836 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
14837 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
14838 at_keyboard.mod via input terminal interface).
14839 * include/grub/i386/coreboot/console.h: Convert into a stub for
14840 `<grub/i386/pc/console.h>'.
14841
14842 Migrate full terminals to new API:
14843
14844 * term/efi/console.c (grub_console_term): Split into ...
14845 (grub_console_term_input): ... this, and ...
14846 (grub_console_term_output): ... this. Update all users.
14847 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
14848 (grub_ofconsole_init): Split into ...
14849 (grub_ofconsole_init_input): ... this, and ...
14850 (grub_ofconsole_init_output): ... this.
14851 (grub_ofconsole_term): Split into ...
14852 (grub_ofconsole_term_input): ... this, and ...
14853 (grub_ofconsole_term_output): ... this. Update all users.
14854 * term/i386/pc/serial.c (grub_serial_term): Split into ...
14855 (grub_serial_term_input): ... this, and ...
14856 (grub_serial_term_output): ... this. Update all users.
14857 * term/i386/pc/console.c (grub_console_term): Split into ...
14858 (grub_console_term_input): ... this, and ...
14859 (grub_console_term_output): ... this. Update all users.
14860 (grub_console_term_input): Only enable it on PC/BIOS platform.
14861 (grub_console_init): Remove grub_keyboard_controller_init() call.
14862
14863 Migrate input terminals to new API:
14864
14865 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
14866 `i386' and `i386/pc' to enable build on x86_64 (this driver is
14867 i386-specific anyway).
14868 (grub_console_checkkey): Rename to ...
14869 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
14870 users.
14871 (grub_keyboard_controller_orig): New variable.
14872 (grub_console_getkey): Rename to ...
14873 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
14874 users.
14875 (grub_keyboard_controller_init): Static-ize. Save original
14876 controller value so that it can be restored ...
14877 (grub_keyboard_controller_fini): ... here (new function).
14878 (grub_at_keyboard_term): New structure.
14879 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
14880 functions.
14881
14882 Migrate output terminals to new API:
14883
14884 * term/i386/pc/vga.c (grub_vga_term): Change type to
14885 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
14886 members. Update all users.
14887 * term/gfxterm.c (grub_video_term): Change type to
14888 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
14889 members. Update all users.
14890 * include/grub/i386/pc/console.h (grub_console_checkkey)
14891 (grub_console_getkey): Do not export (no longer needed by gfxterm,
14892 etc).
14893
14894 Migrate `terminal' command and userland tools to new API:
14895
14896 * commands/terminal.c (grub_cmd_terminal): Split into ...
14897 (grub_cmd_terminal_input): ... this, and ...
14898 (grub_cmd_terminal_output): ... this.
14899 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
14900 `terminal_input' and `terminal_output'.
14901 * util/grub.d/00_header.in: Adjust `terminal' calls to new
14902 `terminal_input' / `terminal_output' API.
14903 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
14904 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
14905 provided ${GRUB_TERMINAL}, convert it).
14906
14907 2008-11-04 Robert Millan <rmh@aybabtu.com>
14908
14909 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
14910 for FreeBSD.
14911 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
14912
14913 2008-11-03 Bean <bean123ch@gmail.com>
14914
14915 * kern/elf.c (grub_elf32_load): Revert to previous code.
14916 (grub_elf64_load): Likewise.
14917
14918 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
14919
14920 2008-11-01 Robert Millan <rmh@aybabtu.com>
14921
14922 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
14923 (TARGET_CPPFLAGS): Likewise.
14924 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
14925
14926 2008-11-01 Carles Pina i Estany <carles@pina.cat>
14927
14928 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
14929
14930 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
14931
14932 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
14933 addition of objects until the code is not going to be able to fail.
14934
14935 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
14936
14937 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
14938 (add a missing NULL check, and correct them by moving the pointer
14939 operations after the actual check).
14940
14941 2008-10-29 Robert Millan <rmh@aybabtu.com>
14942
14943 * util/i386/pc/grub-install.in: Handle empty string as output from
14944 make_system_path_relative_to_its_root().
14945
14946 2008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
14947
14948 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
14949 circular metadata worst case scenario. If the metadata is circular
14950 then copy the wrap in place.
14951 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
14952 project lib/format_text/layout.h
14953 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
14954
14955 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
14956
14957 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
14958
14959 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
14960
14961 * util/update-grub_lib.in: Mention filename in warning message.
14962
14963 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
14964
14965 * NEWS: Update for rename of update-grub to grub-mkconfig.
14966
14967 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
14968
14969 * util/update-grub_lib.in: Copy to ...
14970 * util/grub-mkconfig_lib.in: ... this. Update all users.
14971 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
14972 * util/update-grub.in: Rename to ...
14973 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
14974 option. Add `--output' option to allow users to specify the generated
14975 configuration file. Default to stdout.
14976 (update_grub_dir): Rename to ...
14977 (grub_mkconfig_dir): ... this.
14978 (grub_cfg): Default to an empty string.
14979 * conf/common.rmk (update-grub): Rename to ...
14980 (grub-mkconfig): ... this.
14981 (update-grub_lib): Copy to ...
14982 (grub-mkconfig_lib): ... this.
14983 (update-grub_SCRIPTS): Copy to ...
14984 (grub-mkconfig_SCRIPTS): ... this. Update all users.
14985 (update-grub_DATA): Rename to ...
14986 (grub-mkconfig_DATA): ... this.
14987
14988 2008-09-28 Robert Millan <rmh@aybabtu.com>
14989
14990 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
14991 to `modified'. Add the real `created' field.
14992 (grub_iso9660_uuid): Use `modified' rather than `created' for
14993 constructing the UUID.
14994
14995 2008-09-28 Felix Zielcke <fzielcke@z-51.de>
14996
14997 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
14998 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
14999
15000 2008-09-28 Bean <bean123ch@gmail.com>
15001
15002 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
15003 Thanks to Christian Franke for finding this bug.
15004
15005 2008-09-25 Robert Millan <rmh@aybabtu.com>
15006
15007 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
15008 instances of grub_util_get_disk_name() (see previous commit).
15009
15010 2008-09-25 Robert Millan <rmh@aybabtu.com>
15011
15012 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
15013 `util/i386/get_disk_name.c'.
15014 * conf/i386-efi.rmk: Likewise.
15015 * conf/x86_64-efi.rmk: Likewise.
15016 * conf/i386-coreboot.rmk: Likewise.
15017 * conf/i386-ieee1275.rmk: Likewise.
15018 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
15019 `util/ieee1275/get_disk_name.c'.
15020 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
15021 * util/ieee1275/get_disk_name.c: Remove file.
15022 * util/i386/get_disk_name.c: Remove file.
15023 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
15024 "hd%d" for device.map entries, rather than using
15025 grub_util_get_disk_name().
15026
15027 2008-09-24 Carles Pina i Estany <carles@pina.cat>
15028
15029 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
15030 warning.
15031 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
15032
15033 2008-09-24 Carles Pina i Estany <carles@pina.cat>
15034
15035 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
15036 Changed to 0x5100.
15037 (GRUB_TERM_PPAGE): Changed to 0x4900.
15038
15039 2008-09-24 Robert Millan <rmh@aybabtu.com>
15040
15041 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
15042 macros (they were i386-pc specific).
15043 * include/grub/sparc64/ieee1275/console.h: Likewise.
15044 * include/grub/efi/console.h: Likewise.
15045
15046 2008-09-22 Bean <bean123ch@gmail.com>
15047
15048 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
15049 resident and in attribute list.
15050
15051 * include/grub/ntfs.h (BMP_LEN): Removed.
15052
15053 2008-09-22 Bean <bean123ch@gmail.com>
15054
15055 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
15056 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
15057
15058 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
15059 error occurs, as grub_disk_open will call grub_disk_close, which will
15060 call p->close (scsi).
15061
15062 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
15063
15064 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
15065 (AC_PREREQ): Bumped to 2.59.
15066 (AC_TRY_COMPILE): Replace obsolete macro with ...
15067 (AC_COMPILE_IFELSE): ... this.
15068 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
15069 (AC_LINK_IFELSE): ... this.
15070
15071 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
15072
15073 * autogen.sh: Add a call to `gendistlist.sh'.
15074
15075 2008-09-19 Christian Franke <franke@computer.org>
15076
15077 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
15078 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
15079 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
15080 Export __enable_execute_stack() to modules.
15081 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
15082 New function.
15083
15084 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
15085
15086 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
15087 Sort the list.
15088
15089 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
15090
15091 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
15092 #include <grub/util/hostdisk.h>.
15093
15094 2008-09-08 Robert Millan <rmh@aybabtu.com>
15095
15096 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
15097 segments when their filesz is zero (grub_file_read() interprets
15098 zero-size as "read until EOF", which results in memory corruption).
15099 Use `lowest_segment' rather than 0 for calculating the current
15100 segment load address.
15101
15102 2008-09-08 Robert Millan <rmh@aybabtu.com>
15103
15104 * util/hostdisk.c (open_device): Replace a grub_util_info() call
15105 with grub_dprintf("hostdisk", ...), as it was so verbose that it
15106 clobbered useful information.
15107
15108 2008-09-08 Robert Millan <rmh@aybabtu.com>
15109
15110 * include/grub/util/biosdisk.h: Move to ...
15111 * include/grub/util/hostdisk.h: ... here. Update all users.
15112 * util/biosdisk.c: Move to ...
15113 * util/hostdisk.c: ... here. Update all users.
15114
15115 2008-09-07 Robert Millan <rmh@aybabtu.com>
15116
15117 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
15118 variables.
15119 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
15120 and length can be stored directly in the `mbi->mmap_addr' and
15121 `mbi->mmap_length' struct fields.
15122
15123 2008-09-07 Robert Millan <rmh@aybabtu.com>
15124
15125 * conf/i386.rmk: New file. Provides declaration for building
15126 `cpuid.mod'.
15127 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
15128 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
15129 variables.
15130 Include `conf/i386.mk'.
15131 * conf/i386-efi.rmk: Likewise.
15132 * conf/x86_64-efi.rmk: Likewise.
15133 * conf/i386-coreboot.rmk: Likewise.
15134 * conf/i386-ieee1275.rmk: Likewise.
15135
15136 2008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
15137
15138 Based on patch created by Colin D Bennett <colin@gibibit.com>.
15139 Adds optimization support for BGR based modes.
15140
15141 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
15142 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
15143 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
15144 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
15145 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
15146 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
15147 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
15148 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
15149 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
15150 (grub_video_i386_vbeblit_index_index): Likewise.
15151 (grub_video_i386_vbeblit_replace_directN): Added.
15152 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
15153 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
15154 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
15155 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
15156 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
15157 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
15158 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
15159 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
15160 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
15161 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
15162 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
15163 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
15164 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
15165
15166 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
15167 (grub_video_i386_vbefill_R8G8B8): Likewise.
15168 (grub_video_i386_vbefill_index): Likewise.
15169 (grub_video_i386_vbefill_direct32): Added.
15170 (grub_video_i386_vbefill_direct24): Likewise.
15171 (grub_video_i386_vbefill_direct16): Likewise.
15172 (grub_video_i386_vbefill_direct8): Likewise.
15173
15174 * include/grub/video.h (grub_video_blit_format): Removed
15175 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
15176 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
15177 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
15178 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
15179 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
15180
15181 * video/video.c (grub_video_get_blit_format): Updated to use new
15182 blit formats. Added handling for 16 bit color modes.
15183
15184 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
15185 fillers.
15186 (common_blitter): Updated to use new blitters.
15187
15188 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
15189 Removed.
15190 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
15191 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
15192 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
15193 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
15194 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
15195 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
15196 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
15197 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
15198 (grub_video_i386_vbeblit_index_index): Likewise.
15199 (grub_video_i386_vbeblit_replace_directN): Added.
15200 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
15201 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
15202 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
15203 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
15204 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
15205 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
15206 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
15207 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
15208 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
15209 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
15210 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
15211 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
15212 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
15213
15214 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
15215 (grub_video_i386_vbefill_R8G8B8): Likewise.
15216 (grub_video_i386_vbefill_index): Likewise.
15217 (grub_video_i386_vbefill_direct32): Added.
15218 (grub_video_i386_vbefill_direct24): Likewise.
15219 (grub_video_i386_vbefill_direct16): Likewise.
15220 (grub_video_i386_vbefill_direct8): Likewise.
15221
15222 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
15223 types.
15224
15225 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
15226 types.
15227
15228 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
15229 blitter types.
15230
15231 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
15232 types.
15233
15234 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
15235
15236 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
15237 RAID level 1.
15238
15239 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
15240
15241 * fs/iso9660.c (grub_iso9660_date): New structure.
15242 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
15243 (grub_iso9660_uuid): New function.
15244
15245 2008-09-05 Bean <bean123ch@gmail.com>
15246
15247 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
15248
15249 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
15250 insensitive bit for names in Win32 and Win32 & DOS namespace.
15251
15252 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
15253
15254 * include/grub/types.h (LONG_MAX): Likewise.
15255
15256 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
15257
15258 * util/getroot.c: Include <config.h>.
15259 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
15260 add support for /dev/md/N devices and handle LVM double dash escaping.
15261
15262 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
15263
15264 * config.guess: Update to latest version from config git.
15265 * config.sub: Likewise.
15266
15267 2008-09-03 Robert Millan <rmh@aybabtu.com>
15268
15269 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
15270 `disk->total_sectors'.
15271
15272 2008-09-01 Colin D Bennett <colin@gibibit.com>
15273
15274 * include/grub/normal.h: Fixed incorrect comment for
15275 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
15276
15277 2008-09-01 Colin D Bennett <colin@gibibit.com>
15278
15279 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
15280 values with defines.
15281
15282 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
15283 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
15284 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
15285 (GRUB_VBE_MODEATTR_COLOR): Likewise.
15286 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
15287 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
15288 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
15289 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
15290 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
15291 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
15292 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
15293 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
15294 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
15295 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
15296 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
15297 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
15298 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
15299 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
15300 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
15301
15302 2008-08-31 Robert Millan <rmh@aybabtu.com>
15303
15304 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
15305 declaration.
15306 (grub_multiboot): Fix a few warnings.
15307
15308 2008-08-31 Robert Millan <rmh@aybabtu.com>
15309
15310 * loader/i386/pc/multiboot.c: Update comment not to say that
15311 boot_device support is unimplemented.
15312
15313 2008-08-31 Robert Millan <rmh@aybabtu.com>
15314
15315 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
15316 or memory map support are unimplemented.
15317
15318 2008-08-31 Colin D Bennett <colin@gibibit.com>
15319
15320 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
15321
15322 2008-08-31 Colin D Bennett <colin@gibibit.com>
15323
15324 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
15325 total video memory in 'vbeinfo' output; show color format details for
15326 each video mode.
15327
15328 2008-08-30 Pavel Roskin <proski@gnu.org>
15329
15330 * util/genmoddep.c: Remove for real this time.
15331 * DISTLIST: Remove util/genmoddep.c.
15332
15333 2008-08-30 Robert Millan <rmh@aybabtu.com>
15334
15335 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
15336 as required by Multiboot spec (it was already 4-byte aligned, but
15337 only by chance).
15338
15339 2008-08-29 Pavel Roskin <proski@gnu.org>
15340
15341 * kern/powerpc/ieee1275/crt0.S: Rename to ...
15342 * kern/powerpc/ieee1275/startup.S: ... this.
15343 * conf/powerpc-ieee1275.rmk: Adjust for the above.
15344 * DISTLIST: Likewise.
15345
15346 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
15347 grub/cpu/kernel.h. Add start label for consistency with other
15348 platforms. Add grub_prefix immediately after start. Add jump
15349 to the code after grub_prefix.
15350 * include/grub/powerpc/kernel.h: Provide valid values for
15351 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
15352
15353 2008-08-29 Bean <bean123ch@gmail.com>
15354
15355 * configure.ac: Change host_os to cygwin for mingw.
15356 (asprintf): New check for function.
15357
15358 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
15359 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
15360
15361 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
15362 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
15363 sync, sleep and grub_util_get_disk_size for mingw.
15364
15365 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
15366 to get size in mingw.
15367 (open_device): Use flag O_BINARY if it's defined.
15368 (find_root_device): Add dummy code for mingw.
15369
15370 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
15371 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
15372 (get_scsi_disk_name): Return 0 for mingw.
15373
15374 * util/hostfs.c: #include <grub/util/misc.h>.
15375 (grub_hostfs_open): Use "rb" flag to open file, use
15376 grub_util_get_disk_size to get disk size for mingw.
15377
15378 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
15379 (asprintf): New function if HAVE_ASPRINTF is not set.
15380 (sync): New function for mingw.
15381 (sleep): Likewise.
15382 (grub_util_get_disk_size): Likewise.
15383
15384 2008-08-28 Pavel Roskin <proski@gnu.org>
15385
15386 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
15387 kern/time.c.
15388
15389 2008-08-28 Robert Millan <rmh@aybabtu.com>
15390
15391 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
15392
15393 2008-08-28 Robert Millan <rmh@aybabtu.com>
15394
15395 Change find_grub_drive() syntax so it doesn't prevent it from
15396 detecting NULL names as errors.
15397
15398 * util/biosdisk.c (find_grub_drive): Move free slot search code
15399 from here ...
15400 (find_free_slot): ... to here.
15401 (read_device_map): Use find_free_slot() to search for free slots.
15402
15403 2008-08-27 Marco Gerards <marco@gnu.org>
15404
15405 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
15406 (scsi_mod_SOURCES): New variable.
15407 (scsi_mod_CFLAGS): Likewise
15408 (scsi_mod_LDFLAGS): Likewise.
15409
15410 * disk/scsi.c: New file.
15411
15412 * include/grub/scsi.h: Likewise.
15413
15414 * include/grub/scsicmd.h: Likewise.
15415
15416 * disk/ata.c: Include <grub/scsi.h>.
15417 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
15418 instead.
15419 (grub_ata_iterate): Skip ATAPI devices.
15420 (grub_ata_open): Only handle ATAPI devices.
15421 (struct grub_atapi_read): Removed.
15422 (grub_atapi_readsector): Likewise.
15423 (grub_ata_read): No longer handle ATAPI devices.
15424 (grub_ata_write): Likewise.
15425 (grub_atapi_iterate): New function.
15426 (grub_atapi_read): Likewise.
15427 (grub_atapi_write): Likewise.
15428 (grub_atapi_open): Likewise.
15429 (grub_atapi_close): Likewise.
15430 (grub_atapi_dev): New variable.
15431 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
15432 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
15433
15434 * include/grub/disk.h (enum grub_disk_dev_id): Add
15435 `GRUB_DISK_DEVICE_SCSI_ID'.
15436
15437 2008-08-26 Robert Millan <rmh@aybabtu.com>
15438
15439 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
15440 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
15441 descriptive.
15442
15443 2008-08-23 Bean <bean123ch@gmail.com>
15444
15445 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
15446 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
15447 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
15448 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
15449 dm_nv.mod.
15450 (raid5rec_mod_SOURCES): New macro.
15451 (raid5rec_mod_CFLAGS): Likewise.
15452 (raid5rec_mod_LDFLAGS): Likewise.
15453 (raid6rec_mod_SOURCES): Likewise.
15454 (raid6rec_mod_CFLAGS): Likewise.
15455 (raid6rec_mod_LDFLAGS): Likewise.
15456 (mdraid_mod_SOURCES): Likewise.
15457 (mdraid_mod_CFLAGS): Likewise.
15458 (mdraid_mod_LDFLAGS): Likewise.
15459 (dm_nv_mod_SOURCES): Likewise.
15460 (dm_nv_mod_CFLAGS): Likewise.
15461 (dm_nv_mod_LDFLAGS): Likewise.
15462
15463 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
15464 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
15465 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
15466
15467 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
15468 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
15469
15470 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
15471
15472 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
15473
15474 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
15475
15476 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
15477
15478 * disk/raid5_recover.c: New file.
15479
15480 * disk/raid6_recover.c: Likewise.
15481
15482 * disk/mdraid_linux.c: Likewise.
15483
15484 * disk/dmraid_nvidia.c: Likewise.
15485
15486 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
15487 ULONG_MAX.
15488
15489 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
15490 calculate the size of raid device.
15491 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
15492 different layout of raid5.
15493 (grub_raid_scan_device): Remove code specific to mdraid.
15494 (grub_raid_list): New variable.
15495 (free_array): New function.
15496 (grub_raid_register): Likewise.
15497 (grub_raid_unregister): Likewise.
15498 (grub_raid_rescan): Likewise.
15499 (GRUB_MOD_INIT): Don't iterate device here.
15500 (GRUB_MOD_FINI): Use free_array to release resource.
15501
15502 * include/grub/raid.h: Remove macro and structure specific to mdraid.
15503 (grub_raid5_recover_func_t): New function variable type.
15504 (grub_raid6_recover_func_t): Likewise.
15505 (grub_raid5_recover_func): New variable.
15506 (grub_raid6_recover_func): Likewise.
15507 (grub_raid_register): New function.
15508 (grub_raid_unregister): Likewise.
15509 (grub_raid_rescan): Likewise.
15510 (grub_raid_block_xor): Likewise.
15511
15512 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
15513 (CMD_CRC): New macro.
15514 (part): Removed.
15515 (read_file): Handle device as well as file.
15516 (cmd_crc): New function.
15517 (fstest): Handle multiple disks.
15518 (options): Remove part, raw and long, add root and diskcount.
15519 (usage): Add crc, remove -p, -r, -l, add -r and -c.
15520 (main): Find the first non option entry and ignore subsequent options,
15521 add handling for the new options, support multiple disks.
15522
15523 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
15524
15525 2008-08-23 Bean <bean123ch@gmail.com>
15526
15527 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
15528
15529 * genfslist.sh: Ignore kernel.mod.
15530
15531 * genpartmaplist.sh: Likewise.
15532
15533 2008-08-23 Robert Millan <rmh@aybabtu.com>
15534
15535 * util/getroot.c (find_root_device): Skip anything that starts with
15536 a dot, not just directories. This avoids things like /dev/.tmp.md0.
15537
15538 2008-08-22 Felix Zielcke <fzielcke@z-51.de>
15539
15540 * util/update-grub.in (GRUB_GFXMODE): Export variable.
15541 * util/grub.d/00_header.in: Allow the administrator to change default
15542 gfxmode via ${GRUB_GFXMODE}.
15543
15544 2008-08-21 Felix Zielcke <fzielcke@z-51.de>
15545
15546 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
15547
15548 2008-08-21 Robert Millan <rmh@aybabtu.com>
15549
15550 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
15551 loader.
15552 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
15553 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
15554
15555 2008-08-20 Carles Pina i Estany <carles@pina.cat>
15556
15557 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
15558 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
15559
15560 2008-08-19 Robert Millan <rmh@aybabtu.com>
15561
15562 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
15563 (struct grub_virtual_screen): Remove `cursor_color'.
15564 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
15565 initialization.
15566 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
15567
15568 2008-08-18 Robert Millan <rmh@aybabtu.com>
15569
15570 Unify (identical) linux_normal.c files.
15571 * loader/i386/efi/linux_normal.c: Move from here ...
15572 * loader/linux_normal.c: ... to here. Update all users.
15573 * loader/i386/pc/linux_normal.c: Delete. Update all users.
15574 * loader/i386/ieee1275/linux_normal.c: Likewise.
15575
15576 2008-08-18 Robert Millan <rmh@aybabtu.com>
15577
15578 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
15579 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
15580 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
15581 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
15582 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
15583 New macros.
15584 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
15585 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
15586 (GRUB_LINUX_CL_END_OFFSET): ... to here.
15587 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
15588 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
15589 (GRUB_EFI_CL_END_OFFSET): Rename to ...
15590 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
15591 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
15592 Initialize `params->video_cursor_x' and `params->video_cursor_y'
15593 portably using grub_getxy().
15594 Replace `-EFI' with `-bzImage' in boot message.
15595
15596 2008-08-17 Robert Millan <rmh@aybabtu.com>
15597
15598 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
15599
15600 2008-08-17 Robert Millan <rmh@aybabtu.com>
15601
15602 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
15603
15604 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
15605 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
15606 (grub_machine_mmap_iterate): New function declaration.
15607 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
15608 structure.
15609 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
15610 macros.
15611
15612 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
15613 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
15614 Move e820 parsing from here ...
15615 * kern/i386/pc/mmap.c: New file.
15616 (grub_machine_mmap_iterate): ... to here.
15617
15618 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
15619 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
15620 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
15621 (grub_available_iterate): Redeclare to return `void', and redeclare
15622 its hook to use grub_uint64_t as addr and size parameters, and rename
15623 to ...
15624 (grub_machine_mmap_iterate): ... this. Update all users.
15625
15626 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
15627 to make it more readable. Rename to ...
15628 (grub_machine_mmap_iterate): ... this.
15629
15630 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
15631 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
15632 (grub_multiboot): Allocate an extra region after the payload, and fill
15633 it with a Multiboot memory map. Adjust a.out loader to calculate size
15634 with the extra space.
15635 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
15636 with the extra space.
15637
15638 2008-08-17 Carles Pina i Estany <carles@pina.cat>
15639
15640 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
15641
15642 2008-08-17 Felix Zielcke <fzielcke@z-51.de>
15643
15644 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
15645 mdate-sh to the list `find' searches for.
15646 * DISTLIST: Regenerated.
15647
15648 2008-08-16 Felix Zielcke <fzielcke@z-51.de>
15649
15650 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
15651 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
15652 genmoddep.awk, gensymlist.sh.in.
15653 (DISTDIRS): Add bus, docs, hook, lib.
15654 * DISTLIST: Regenerated.
15655 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
15656
15657 2008-08-16 Robert Millan <rmh@aybabtu.com>
15658
15659 * disk/raid.c (grub_raid_init): Handle/report errors set by
15660 grub_device_iterate().
15661 * disk/lvm.c (grub_lvm_init): Likewise.
15662
15663 2008-08-15 Bean <bean123ch@gmail.com>
15664
15665 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
15666 and datehook.mod.
15667 (datetime_mod_SOURCES): New macro.
15668 (datetime_mod_CFLAGS): Likewise.
15669 (datetime_mod_LDFLAGS): Likewise.
15670 (date_mod_SOURCES): Likewise.
15671 (date_mod_CFLAGS): Likewise.
15672 (date_mod_LDFLAGS): Likewise.
15673 (datehook_mod_SOURCES): Likewise.
15674 (datehook_mod_CFLAGS): Likewise.
15675 (datehook_mod_LDFLAGS): Likewise.
15676
15677 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
15678 and datehook.mod.
15679 (datetime_mod_SOURCES): New macro.
15680 (datetime_mod_CFLAGS): Likewise.
15681 (datetime_mod_LDFLAGS): Likewise.
15682 (date_mod_SOURCES): Likewise.
15683 (date_mod_CFLAGS): Likewise.
15684 (date_mod_LDFLAGS): Likewise.
15685 (datehook_mod_SOURCES): Likewise.
15686 (datehook_mod_CFLAGS): Likewise.
15687 (datehook_mod_LDFLAGS): Likewise.
15688
15689 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
15690 and datehook.mod.
15691 (datetime_mod_SOURCES): New macro.
15692 (datetime_mod_CFLAGS): Likewise.
15693 (datetime_mod_LDFLAGS): Likewise.
15694 (date_mod_SOURCES): Likewise.
15695 (date_mod_CFLAGS): Likewise.
15696 (date_mod_LDFLAGS): Likewise.
15697 (datehook_mod_SOURCES): Likewise.
15698 (datehook_mod_CFLAGS): Likewise.
15699 (datehook_mod_LDFLAGS): Likewise.
15700
15701 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
15702 and datehook.mod.
15703 (datetime_mod_SOURCES): New macro.
15704 (datetime_mod_CFLAGS): Likewise.
15705 (datetime_mod_LDFLAGS): Likewise.
15706 (date_mod_SOURCES): Likewise.
15707 (date_mod_CFLAGS): Likewise.
15708 (date_mod_LDFLAGS): Likewise.
15709 (datehook_mod_SOURCES): Likewise.
15710 (datehook_mod_CFLAGS): Likewise.
15711 (datehook_mod_LDFLAGS): Likewise.
15712
15713 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
15714 and datehook.mod.
15715 (datetime_mod_SOURCES): New macro.
15716 (datetime_mod_CFLAGS): Likewise.
15717 (datetime_mod_LDFLAGS): Likewise.
15718 (date_mod_SOURCES): Likewise.
15719 (date_mod_CFLAGS): Likewise.
15720 (date_mod_LDFLAGS): Likewise.
15721 (datehook_mod_SOURCES): Likewise.
15722 (datehook_mod_CFLAGS): Likewise.
15723 (datehook_mod_LDFLAGS): Likewise.
15724
15725 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
15726
15727 * commands/date.c: New file.
15728
15729 * hook/datehook.c: Likewise.
15730
15731 * include/grub/lib/datetime.h: Likewise.
15732
15733 * include/grub/i386/cmos.h: Likewise.
15734
15735 * lib/datetime.c: Likewise.
15736
15737 * lib/i386/datetime.c: Likewise.
15738
15739 * lib/efi/datetime.c: Likewise.
15740
15741 2008-08-14 Robert Millan <rmh@aybabtu.com>
15742
15743 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
15744 (grub_mkelfimage_SOURCES): New variable.
15745 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
15746
15747 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
15748 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
15749 * conf/powerpc-ieee1275.rmk: Likewise.
15750 * conf/i386-ieee1275.rmk: Likewise.
15751
15752 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
15753 * kern/i386/coreboot/init.c: Likewise.
15754
15755 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
15756 with `<grub/cpu/kernel.h>'.
15757 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
15758 to ...
15759 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
15760 * kern/i386/coreboot/startup.S: Likewise.
15761
15762 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
15763 (GRUB_MOD_GAP): Remove.
15764 * include/grub/powerpc/kernel.h: New file.
15765 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
15766 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
15767 * include/grub/i386/kernel.h: New file.
15768 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
15769 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
15770 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
15771
15772 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
15773 `grub-mkelfimage'.
15774 Use --directory when invoking grub_mkimage.
15775
15776 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
15777 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
15778 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
15779 and GRUB_KERNEL_CPU_PREFIX.
15780
15781 2008-08-14 Felix Zielcke <fzielcke@z-51.de>
15782
15783 * include/grub/err.h (grub_err_printf): New function prototype.
15784 * util/misc.c (grub_err_printf): New function.
15785 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
15786 grub_printf.
15787 * kern/err.c (grub_print_error): Use grub_err_printf.
15788
15789 2008-08-13 Robert Millan <rmh@aybabtu.com>
15790
15791 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
15792
15793 2008-08-13 Robert Millan <rmh@aybabtu.com>
15794
15795 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
15796 boot entry.
15797
15798 2008-08-12 Robert Millan <rmh@aybabtu.com>
15799
15800 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
15801 of the relocation code from here ...
15802 (grub_multiboot): ... to here.
15803 (forward_relocator, backward_relocator): Move from here ...
15804 * kern/i386/loader.S (grub_multiboot_forward_relocator)
15805 (grub_multiboot_backward_relocator): ... to here.
15806 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
15807 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
15808 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
15809 (grub_multiboot_forward_relocator_end)
15810 (grub_multiboot_backward_relocator)
15811 (grub_multiboot_backward_relocator_end): New variables.
15812
15813 2008-08-12 Bean <bean123ch@gmail.com>
15814
15815 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
15816
15817 2008-08-11 Robert Millan <rmh@aybabtu.com>
15818
15819 * kern/i386/linuxbios/startup.S: Move from here ...
15820 * kern/i386/coreboot/startup.S: ... to here.
15821
15822 * kern/i386/linuxbios/init.c: Move from here ...
15823 * kern/i386/coreboot/init.c: ... to here.
15824
15825 * kern/i386/linuxbios/table.c: Move from here ...
15826 * kern/i386/coreboot/mmap.c: ... to here.
15827
15828 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
15829
15830 2008-08-11 Robert Millan <rmh@aybabtu.com>
15831
15832 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
15833 errors. Leave it to the upper layer to handle them.
15834
15835 2008-08-09 Christian Franke <franke@computer.org>
15836
15837 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
15838 * conf/common.rmk: Install `grub-pe2elf' only if requested.
15839 Install `grub.d/10_windows' only on Cygwin.
15840 * configure.ac: Add subst of `target_os'.
15841 Check `target_os' also before setting TARGET_OBJ2ELF.
15842 Add `--enable-grub-pe2elf'.
15843
15844 2008-08-08 Robert Millan <rmh@aybabtu.com>
15845
15846 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
15847 (grub_last_time): Change type to grub_uint64_t.
15848 (grub_disk_open): Migrate code from to using grub_get_time_ms().
15849 (grub_disk_close): Likewise.
15850
15851 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
15852 (run_menu): Migrate code from to using grub_get_time_ms().
15853
15854 * util/misc.c (grub_get_time_ms): New function.
15855
15856 2008-08-08 Marco Gerards <marco@gnu.org>
15857
15858 * disk/ata.c (grub_ata_regget): Change return type to
15859 `grub_uint8_t'.
15860 (grub_ata_regget2): Likewise.
15861 (grub_ata_wait_status): New function.
15862 (grub_ata_wait_busy): Removed function, updated all users to use
15863 `grub_ata_wait_status'.
15864 (grub_ata_wait_drq): Likewise.
15865 (grub_ata_cmd): New function.
15866 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
15867 error handling.
15868 (grub_ata_pio_write): Add error handling.
15869 (grub_atapi_identify): Likewise.
15870 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
15871 handling.
15872 (grub_ata_identify): Use `grub_ata_cmd' and improve error
15873 handling. Actually use the detected registers. Reorder the
15874 detection logic such that it is easier to read.
15875 (grub_ata_pciinit): Do not assign the same ID to each controller.
15876 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
15877 handling.
15878 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
15879
15880 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
15881
15882 2008-08-08 Marco Gerards <marco@gnu.org>
15883
15884 * NEWS: Update.
15885
15886 2008-08-07 Bean <bean123ch@gmail.com>
15887
15888 * include/grub/x86_64/pci.h: New file.
15889
15890 2008-08-07 Christian Franke <franke@computer.org>
15891
15892 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
15893 (TIMER2_GATE): Likewise.
15894 (grub_pit_wait): Add enable/disable of the timer2 gate
15895 bit of port 0x61. This fixes a possible infinite loop.
15896
15897 2008-08-07 Bean <bean123ch@gmail.com>
15898
15899 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
15900 kern/i386/tsc.c and kern/i386/pit.c.
15901
15902 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
15903 x86_64 platform.
15904
15905 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
15906 <grub/i386/tsc.h>.
15907
15908 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
15909
15910 2008-08-07 Bean <bean123ch@gmail.com>
15911
15912 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
15913
15914 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
15915
15916 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
15917 multiple inclusion. Add #include <grub/types.h>.
15918
15919 2008-08-06 Christian Franke <franke@computer.org>
15920
15921 * conf/common.rmk: Build and install `10_windows'.
15922 * util/grub.d/10_windows.in: New script.
15923
15924 2008-08-06 Pavel Roskin <proski@gnu.org>
15925
15926 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
15927
15928 2008-08-06 Robert Millan <rmh@aybabtu.com>
15929
15930 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
15931 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
15932
15933 2008-08-06 Bean <bean123ch@gmail.com>
15934
15935 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
15936 (grub_pxefs_fs_int): Remove dummy definition.
15937 (grub_pxefs_open): Use data->block_size to store the current block
15938 size setting.
15939 (grub_pxefs_read): Use block size stored in data->block_size. As the
15940 value of grub_pxe_blksize can be changed after the file is opened.
15941
15942 2008-08-06 Bean <bean123ch@gmail.com>
15943
15944 * fs/i386/pc/pxe.c (curr_file): new variable.
15945 (grub_pxefs_open): Simply the handling of pxe file system. Don't
15946 require the dummy internal file system anymore.
15947 (grub_pxefs_read): Removed.
15948 (grub_pxefs_close): Likewise.
15949 (grub_pxefs_fs_int): Likewise.
15950 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
15951 connection when we switch file.
15952 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
15953
15954 2008-08-06 Robert Millan <rmh@aybabtu.com>
15955
15956 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
15957 `halt.mod'.
15958 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
15959 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
15960
15961 * kern/i386/halt.c: New file.
15962 * kern/i386/reboot.c: Likewise.
15963 * include/grub/i386/reboot.h: Likewise.
15964 * include/grub/i386/halt.h: Likewise.
15965
15966 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
15967 Include `<grub/cpu/halt.h>'.
15968 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
15969 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
15970
15971 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
15972 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
15973 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
15974 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
15975 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
15976 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
15977 from here ...
15978 * include/grub/i386/at_keyboard.h: ... to here.
15979
15980 2008-08-05 Robert Millan <rmh@aybabtu.com>
15981
15982 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
15983 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
15984 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
15985 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
15986 `kern/generic/millisleep.c'.
15987
15988 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
15989 instead of grub_get_rtc().
15990 (grub_tsc_init): Initialize `tsc_boot_time'.
15991
15992 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
15993 (grub_machine_init): Use grub_tsc_init() rather than
15994 installing an RTC-based handler via grub_install_get_time_ms().
15995
15996 * kern/i386/pit.c: New file.
15997 * include/grub/i386/pit.h: Likewise.
15998
15999 2008-08-05 Bean <bean123ch@gmail.com>
16000
16001 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
16002
16003 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
16004 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
16005 (pxe_mod_SOURCES): New macro.
16006 (pxe_mod_CFLAGS): Likewise.
16007 (pxe_mod_LDFLAGS): Likewise.
16008 (pxecmd_mod_SOURCES): Likewise.
16009 (pxecmd_mod_CFLAGS): Likewise.
16010 (pxecmd_mod_LDFLAGS): Likewise.
16011
16012 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
16013 (grub_pxe_call): Likewise.
16014
16015 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
16016
16017 * commands/i386/pc/pxecmd.c: New file.
16018
16019 * fs/i386/pc/pxe.c: Likewise.
16020
16021 * include/grub/i386/pc/pxe.h: Likewise.
16022
16023 2008-08-05 Bean <bean123ch@gmail.com>
16024
16025 * util/console.c (grub_console_cur_color): New variable.
16026 (grub_console_standard_color): Likewise.
16027 (grub_console_normal_color): Likewise.
16028 (grub_console_highlight_color): Likewise.
16029 (color_map): Likewise.
16030 (use_color): Likewise.
16031 (NUM_COLORS): New macro.
16032 (grub_ncurses_setcolorstate): Handle color properly.
16033 (grub_ncurses_setcolor): Don't change color here, just remember the
16034 settings, color will be set in grub_ncurses_setcolorstate.
16035 (grub_ncurses_getcolor): New function.
16036 (grub_ncurses_init): Initialize color pairs.
16037 (grub_ncurses_term): New member grub_ncurses_getcolor.
16038
16039 2008-08-05 Colin D Bennett <colin@gibibit.com>
16040
16041 High resolution timer support. Implemented for x86 CPUs using TSC.
16042 Extracted generic grub_millisleep() so it's linked in only as needed.
16043 This requires a Pentium compatible CPU; if the RDTSC instruction is
16044 not supported, then it falls back on the generic grub_get_time_ms()
16045 implementation that uses the machine's RTC.
16046
16047 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
16048 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
16049 `kern/generic/millisleep.c'.
16050
16051 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
16052 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
16053
16054 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
16055 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
16056
16057 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
16058
16059 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
16060 `kern/generic/millisleep.c'.
16061
16062 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
16063
16064 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
16065
16066 * kern/generic/rtc_get_time_ms.c: New file.
16067
16068 * kern/generic/millisleep.c: New file.
16069
16070 * kern/misc.c: Don't include
16071 <kern/time.h> anymore.
16072 (grub_millisleep_generic): Removed.
16073
16074 * commands/sleep.c (grub_interruptible_millisleep): Uses
16075 grub_get_time_ms() instead of grub_get_rtc().
16076
16077 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
16078 function.
16079 (grub_cpu_is_cpuid_supported): New inline function.
16080 (grub_cpu_is_tsc_supported): New inline function.
16081 (grub_tsc_init): New function prototype.
16082 (grub_tsc_get_time_ms): New function prototype.
16083
16084 * kern/i386/tsc.c (grub_get_time_ms): New file.
16085
16086 * include/grub/time.h: Include <grub/types.h.
16087 (grub_millisleep_generic): Removed.
16088 (grub_get_time_ms): New prototype.
16089 (grub_install_get_time_ms): New prototype.
16090 (grub_rtc_get_time_ms): New prototype.
16091
16092 * kern/time.c (grub_get_time_ms): New function.
16093 (grub_install_get_time_ms): New function.
16094
16095 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
16096 <grub/time.h> anymore.
16097 (grub_millisleep): Removed.
16098 (grub_machine_init): Call grub_tsc_init.
16099
16100 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
16101 get_time_ms() implementation.
16102
16103 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
16104 (ieee1275_get_time_ms): New function.
16105 (grub_machine_init): Install get_time_ms() implementation.
16106
16107 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
16108 (grub_machine_init): Call grub_tsc_init().
16109 (grub_millisleep): Removed.
16110
16111 * kern/ieee1275/init.c (grub_millisleep): Removed.
16112 (grub_machine_init): Install ieee1275_get_time_ms()
16113 implementation.
16114 (ieee1275_get_time_ms): New function.
16115 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
16116 real work.
16117
16118 2008-08-05 Marco Gerards <marco@gnu.org>
16119
16120 * disk/ata.c: Include <grub/pci.h>.
16121 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
16122 (grub_ata_initialize): Rewritten.
16123 (grub_ata_device_initialize): New function.
16124
16125 2008-08-04 Pavel Roskin <proski@gnu.org>
16126
16127 * kern/main.c: Include grub/mm.h.
16128
16129 2008-08-04 Robert Millan <rmh@aybabtu.com>
16130
16131 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
16132 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
16133 corruption problem).
16134
16135 2008-08-04 Robert Millan <rmh@aybabtu.com>
16136
16137 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
16138 warnings introduced in my last commit.
16139
16140 2008-08-03 Robert Millan <rmh@aybabtu.com>
16141
16142 Make PCI available on all i386 architectures.
16143
16144 * include/grub/i386/pc/pci.h: Move from here ...
16145 * include/grub/i386/pci.h: ... to here.
16146
16147 * include/grub/i386/pc/pci.h: Remove.
16148 * include/grub/i386/efi/pci.h: Remove.
16149 * include/grub/x86_64/efi/pci.h: Remove.
16150
16151 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
16152 `<grub/cpu/pci.h>'.
16153
16154 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
16155 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
16156 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
16157
16158 * conf/i386-ieee1275.rmk: Likewise.
16159
16160 2008-08-03 Robert Millan <rmh@aybabtu.com>
16161
16162 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
16163 (grub_console_setcursor): Make it possible to set cursor off.
16164
16165 2008-08-03 Robert Millan <rmh@aybabtu.com>
16166
16167 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
16168 of modules instead of assuming which platform provides what.
16169 * util/update-grub.in: Likewise.
16170
16171 2008-08-03 Robert Millan <rmh@aybabtu.com>
16172
16173 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
16174 instead of `grub_install_dos_part' to determine whether a drive needs
16175 to be prepended to prefix (`grub_install_dos_part' is not reliable,
16176 because it can be overridden when loading GRUB via Multiboot).
16177
16178 2008-08-02 Robert Millan <rmh@aybabtu.com>
16179
16180 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
16181
16182 2008-08-02 Robert Millan <rmh@aybabtu.com>
16183
16184 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
16185 of informational grub_dprintf() calls.
16186
16187 2008-08-02 Robert Millan <rmh@aybabtu.com>
16188
16189 * disk/memdisk.c (memdisk_size): Don't initialize.
16190 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
16191
16192 * include/grub/i386/pc/kernel.h
16193 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
16194 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
16195 (grub_memdisk_image_size, grub_arch_memdisk_addr)
16196 (grub_arch_memdisk_size): Remove.
16197
16198 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
16199 field (was only used to transfer a constant). Add `type' field to
16200 support multiple module types.
16201 (grub_module_iterate): New function.
16202
16203 * kern/device.c (grub_device_open): Do not hide error messages
16204 when grub_disk_open() fails. Use grub_print_error() instead.
16205
16206 * kern/i386/pc/init.c (grub_arch_modules_addr)
16207 (grub_arch_memdisk_size): Remove functions.
16208 (grub_arch_modules_addr): Return the module address in high memory
16209 (now that it isn't copied anymore).
16210
16211 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
16212 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
16213 decompression routine (grub_total_module_size already includes that
16214 now). Don't copy modules back to low memory.
16215
16216 * kern/main.c: Include `<grub/mm.h>'.
16217 (grub_load_modules): Split out (and use) ...
16218 (grub_module_iterate): ... this function, which iterates through
16219 module objects and runs a hook.
16220 Comment out grub_mm_init_region() call, as it would cause non-ELF
16221 modules to be overwritten.
16222
16223 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
16224 the memdisk image in its own region, make it part of the module list.
16225 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
16226 (main): Parse --memdisk|-m option, and pass user-provided path as
16227 parameter to generate_image().
16228 (add_segments): Pass `memdisk_path' down to load_modules().
16229 (load_modules): Embed memdisk image in module section when requested.
16230 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
16231 `header.type' instead of `header.offset'.
16232
16233 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
16234 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
16235 (memdisk_mod_LDFLAGS): New variables.
16236 * conf/i386-coreboot.rmk: Likewise.
16237 * conf/i386-ieee1275.rmk: Likewise.
16238
16239 2008-08-02 Robert Millan <rmh@aybabtu.com>
16240
16241 * loader/i386/pc/multiboot.c (playground, forward_relocator)
16242 (backward_relocator): New variables. Used to allocate and relocate
16243 the payload, respectively.
16244 (grub_multiboot_load_elf32): Load into heap instead of requested
16245 address, install the appropriate relocator code in each bound of
16246 the payload, and set the entry point such that
16247 grub_multiboot_real_boot() will jump to one of them.
16248
16249 * kern/i386/loader.S (grub_multiboot_payload_size)
16250 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
16251 (grub_multiboot_payload_entry_offset): New variables.
16252 (grub_multiboot_real_boot): Set cpu context to what the relocator
16253 expects, and jump to the relocator instead of the payload.
16254
16255 * include/grub/i386/loader.h (grub_multiboot_payload_size)
16256 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
16257 (grub_multiboot_payload_entry_offset): Export.
16258
16259 2008-08-01 Bean <bean123ch@gmail.com>
16260
16261 * normal/menu_entry.c (editor_getline): Don't return the original
16262 string as result, as it will be released by lexer once it has done
16263 using it.
16264
16265 2008-08-01 Robert Millan <rmh@aybabtu.com>
16266
16267 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
16268 within menuentries, not before them.
16269 util/grub.d/10_hurd.in: Likewise.
16270
16271 2008-08-01 Bean <bean123ch@gmail.com>
16272
16273 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
16274 (bufio_mod_SOURCES): New macro.
16275 (bufio_mod_CFLAGS): Likewise.
16276 (bufio_mod_LDFLAGS): Likewise.
16277
16278 * include/grub/bufio.h: New file.
16279
16280 * io/bufio.c: Likewise.
16281
16282 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
16283 (grub_video_reader_png): Use grub_buffile_open to open file.
16284
16285 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
16286 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
16287
16288 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
16289 (grub_video_reader_tga): Use grub_buffile_open to open file.
16290
16291 * font/manager.c: Include <grub/bufio.h>.
16292 (add_font): Use grub_buffile_open to open file.
16293
16294 2008-07-31 Robert Millan <rmh@aybabtu.com>
16295
16296 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
16297 ELF segments, use a macro for arbitrarily accessing any of them instead
16298 of preparing a pointer that allows access to one at a time.
16299 (grub_multiboot_load_elf64): Likewise.
16300
16301 2008-07-31 Bean <bean123ch@gmail.com>
16302
16303 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
16304 GRUB_KERNEL_MACHINE_DATA_END.
16305
16306 2008-07-30 Robert Millan <rmh@aybabtu.com>
16307
16308 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
16309 Increase from 0x50 to 0x60.
16310 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
16311 use UUIDs to identify the root drive for them. If that's not
16312 possible, abort.
16313 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
16314 check, for cross-disk installs.
16315
16316 2008-07-30 Robert Millan <rmh@aybabtu.com>
16317
16318 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
16319 is non-empty, use it to set the `prefix' environment variable instead
16320 of the usual approach.
16321 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
16322 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
16323 environment variable instead of dummy make_install_device().
16324
16325 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
16326 (start): Insert a data section, with `grub_prefix' variable.
16327 * kern/i386/linuxbios/startup.S: Likewise.
16328
16329 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
16330 New variable reference.
16331 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
16332 New macro. Defines offset of `grub_prefix' within startup.S (relative
16333 to `start').
16334 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
16335 section within startup.S (relative to `start').
16336 * include/grub/i386/coreboot/kernel.h: Likewise.
16337
16338 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
16339 Overwrite grub_prefix with its contents, at the beginning of the
16340 first segment.
16341 (main): Understand -p|--prefix.
16342
16343 2008-07-30 Robert Millan <rmh@aybabtu.com>
16344
16345 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
16346
16347 2008-07-30 Robert Millan <rmh@aybabtu.com>
16348
16349 * term/i386/pc/vga_text.c (grub_console_cls): Use
16350 grub_console_gotoxy() to go back to beginning of the screen.
16351 Found by Patrick Georgi <patrick.georgi@coresystems.de>
16352
16353 2008-07-29 Christian Franke <franke@computer.org>
16354
16355 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
16356 Add conversion of emulated mount points on Cygwin.
16357
16358 2008-07-29 Christian Franke <franke@computer.org>
16359
16360 * util/update-grub.in: Add a check for admin
16361 group on Cygwin.
16362 Remove old `grub.cfg.new' before creation.
16363 Add `-f' to `mv' to handle the different filesystem
16364 semantics of Windows.
16365
16366 2008-07-29 Bean <bean123ch@gmail.com>
16367
16368 * normal/main.c (get_line): Fix buffer overflow bug.
16369
16370 2008-07-28 Robert Millan <rmh@aybabtu.com>
16371
16372 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
16373 (struct grub_apple_header): New struct. Describes the layout of
16374 the partmap header.
16375 (apple_partition_map_iterate): Check the header magic as well as the
16376 partition magic (which was already being checked).
16377
16378 2008-07-28 Pavel Roskin <proski@gnu.org>
16379
16380 * genmk.rb: Add a warning to the beginning of the output that
16381 it's a generated file and should not be edited.
16382
16383 2008-07-28 Robert Millan <rmh@aybabtu.com>
16384
16385 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
16386 with the same number are found, just use issue a warning with
16387 grub_dprintf(), as this error has been reported to be non-fatal.
16388
16389 2008-07-27 Robert Millan <rmh@aybabtu.com>
16390
16391 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
16392 information.
16393
16394 2008-07-27 Bean <bean123ch@gmail.com>
16395
16396 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
16397 (grub_fat_find_dir): Ignore case when comparing filename.
16398
16399 2008-07-27 Bean <bean123ch@gmail.com>
16400
16401 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
16402 smallino, as it's more descriptive, and i8count can be confused with
16403 the other field count.
16404 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
16405 inode type.
16406
16407 2008-07-27 Bean <bean123ch@gmail.com>
16408
16409 * commands/crc.c: New file.
16410
16411 * lib/crc.c: Likewise.
16412
16413 * include/grub/lib/crc.h: Likewise.
16414
16415 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
16416
16417 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
16418 (hexdump): Move this function to ...
16419
16420 * lib/hexdump.c: ... here.
16421
16422 * include/grub/hexdump.h: Renamed to ...
16423
16424 * include/grub/lib/hexdump.h: ... this.
16425
16426 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
16427
16428 * util/grub-editenv.c: Likewise.
16429
16430 * include/envblk.h: Renamed to ...
16431
16432 * include/lib/envblk.h: ... this.
16433
16434 * util/envblk.c: Renamed to ...
16435
16436 * lib/envblk.c: ... this.
16437
16438 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
16439 lib/hexdump.c.
16440 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
16441 (pkglib_MODULES): Add crc.mod.
16442 (hexdump_mod_SOURCES): Add lib/hexdump.c.
16443 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
16444 (crc_mod_SOURCES): New macro.
16445 (crc_mod_CFLAGS): Likewise.
16446 (crc_mod_LDFLAGS): Likewise.
16447
16448 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
16449
16450 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
16451
16452 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
16453
16454 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
16455
16456 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
16457
16458 2008-07-27 Felix Zielcke <fzielcke@z-51.de>
16459
16460 * commands/help.c: Include <grub/term.h>.
16461 (TERM_WIDTH): Removed. Updated all users.
16462
16463 2008-07-27 Pavel Roskin <proski@gnu.org>
16464
16465 * util/getroot.c (find_root_device): Rephrase a comment to avoid
16466 spurious warnings about a comment within a comment.
16467
16468 2008-07-25 Robert Millan <rmh@aybabtu.com>
16469
16470 * util/getroot.c (find_root_device): Skip devices that match
16471 /dev/dm-[0-9]. This lets the real device be found for any type of
16472 abstraction (LVM, EVMS, RAID..).
16473 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
16474 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
16475 device is found first, find_root_device() will now skip it.
16476
16477 2008-07-24 Pavel Roskin <proski@gnu.org>
16478
16479 * include/grub/types.h: Use __builtin_bswap32() and
16480 __builtin_bswap64() with gcc 4.3 and newer.
16481
16482 2008-07-24 Christian Franke <franke@computer.org>
16483
16484 * util/i386/pc/grub-install.in: If `--debug' is specified,
16485 pass `--verbose' to grub-setup.
16486 Abort script if make_system_path_relative_to_its_root() fails.
16487
16488 2008-07-24 Bean <bean123ch@gmail.com>
16489
16490 * configure.ac: Fixed a bug caused by the previous cygwin patch,
16491 variable `target_platform' should be `platform'.
16492
16493 2008-07-24 Bean <bean123ch@gmail.com>
16494
16495 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
16496 (grub_png_init_fixed_block): New function.
16497 (grub_png_decode_image_data): Handle fixed huffman code compression.
16498
16499 2008-07-24 Bean <bean123ch@gmail.com>
16500
16501 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
16502 (grub_pe2elf_SOURCES): New macro.
16503 (CLEANFILES): Add grub-pe2elf.
16504
16505 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
16506 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
16507 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
16508 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
16509 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
16510 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
16511 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
16512 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
16513 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
16514 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
16515 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
16516 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
16517 (GRUB_PE32_DT_FUNCTION): Likewise.
16518 (GRUB_PE32_REL_I386_DIR32): Likewise.
16519 (GRUB_PE32_REL_I386_REL32): Likewise.
16520 (grub_pe32_symbol): New structure.
16521 (grub_pe32_reloc): Likewise.
16522
16523 * util/grub-pe2elf.c: New file.
16524
16525 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
16526 start symbol in non pc platform.
16527
16528 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
16529
16530 The following patches are from Christian Franke.
16531
16532 * include/grub/dl.h: Remove .previous, gas supports this only
16533 for ELF format.
16534
16535 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
16536 Remove .type, gas supports this only for ELF format.
16537
16538 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
16539 nullbytes in symbol table. This fixes an infinite loop if table is
16540 zero filled.
16541
16542 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
16543 TARGET_IMG_LDFLAGS and EXEEXT.
16544
16545 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
16546 TARGET_IMG_LDFLAGS_AC.
16547 (grub_CHECK_STACK_ARG_PROBE): New function.
16548
16549 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
16550
16551 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
16552
16553 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
16554 to set TARGET_IMG_LD* accordingly.
16555 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
16556 Add call to grub_CHECK_STACK_ARG_PROBE.
16557 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
16558
16559 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
16560
16561 * genmk.rb: Add EXEEXT to CLEANFILES.
16562
16563 2008-07-23 Robert Millan <rmh@aybabtu.com>
16564
16565 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
16566 define the codes for arrows and lines used for the menu).
16567 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
16568 as well.
16569
16570 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
16571 fonts, because the latter are too slow.
16572
16573 2008-07-21 Bean <bean123ch@gmail.com>
16574
16575 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
16576 a20. Run keyboard test last, as it will cause macbook to halt.
16577
16578 2008-07-18 Pavel Roskin <proski@gnu.org>
16579
16580 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
16581 load foreign architecture modules correctly anyway. Keep
16582 support for loading host architecture modules, whether we
16583 compile them or not.
16584
16585 2008-07-17 Pavel Roskin <proski@gnu.org>
16586
16587 * configure.ac: Use -m32 or -m64 regardless of whether we had to
16588 change target_cpu. The compiler default can mismatch target_cpu
16589 in any case.
16590
16591 * disk/efi/efidisk.c: Fix format warnings on x86_64.
16592 * kern/efi/efi.c: Likewise.
16593
16594 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
16595 target compiler is functional.
16596 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
16597 are set up.
16598
16599 * configure.ac: Default to efi platform for x86_64-apple. Allow
16600 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
16601 adjustments from the rest, only do them if target is not
16602 explicitly given. Merge other adjustments with the final sanity
16603 check. Remove an extraneous check for supported CPU. Be
16604 specific which CPU and which platform is not supported.
16605
16606 * configure.ac: Default to pc platform for x86_64.
16607
16608 2008-07-17 Robert Millan <rmh@aybabtu.com>
16609
16610 Partial LinuxBIOS -> Coreboot rename.
16611
16612 * conf/i386-linuxbios.rmk: Renamed to ...
16613 * conf/i386-coreboot.rmk: ... this.
16614 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
16615 * configure.ac: Accept "coreboot" as input platform (but maintain
16616 compatibility with "linuxbios").
16617 * include/grub/i386/linuxbios: Renamed to ...
16618 * include/grub/i386/coreboot: ... this.
16619
16620 2008-07-17 Bean <bean123ch@gmail.com>
16621
16622 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
16623 (appleldr_mod_SOURCE): New variable.
16624 (appleldr_mod_CFLAGS): Likewise.
16625 (appleldr_mod_LDFLAGS): Likewise.
16626 (pci_mod_SOURCES): Likewise.
16627 (pci_mod_CFLAGS): Likewise.
16628 (pci_mod_LDFLAGS): Likewise.
16629 (lspci_mod_SOURCES): Likewise.
16630 (lspci_mod_CFLAGS): Likewise.
16631 (lspci_mod_LDFLAGS): Likewise.
16632
16633 * conf/x86_64-efi.rmk: New file.
16634
16635 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
16636 macro.
16637 (grub_efidisk_write): Likewise.
16638
16639 * include/efi/api.h (efi_call_0): New macro.
16640 (efi_call_1): Likewise.
16641 (efi_call_2): Likewise.
16642 (efi_call_3): Likewise.
16643 (efi_call_4): Likewise.
16644 (efi_call_5): Likewise.
16645 (efi_call_6): Likewise.
16646
16647 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
16648 grub_rescue_cmd_chainloader.
16649
16650 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
16651 (grub_pe32_optional_header): Change some fields based on i386 or
16652 x86_64 platform.
16653 (GRUB_PE32_PE32_MAGIC): Likewise.
16654
16655 * include/grub/efi/uga_draw.h: New file.
16656
16657 * include/grub/elf.h (STN_ABS): New constant.
16658 (R_X86_64_NONE): Relocation constant for x86_64.
16659 (R_X86_64_64): Likewise.
16660 (R_X86_64_PC32): Likewise.
16661 (R_X86_64_GOT32): Likewise.
16662 (R_X86_64_PLT32): Likewise.
16663 (R_X86_64_COPY): Likewise.
16664 (R_X86_64_GLOB_DAT): Likewise.
16665 (R_X86_64_JUMP_SLOT): Likewise.
16666 (R_X86_64_RELATIVE): Likewise.
16667 (R_X86_64_GOTPCREL): Likewise.
16668 (R_X86_64_32): Likewise.
16669 (R_X86_64_32S): Likewise.
16670 (R_X86_64_16): Likewise.
16671 (R_X86_64_PC16): Likewise.
16672 (R_X86_64_8): Likewise.
16673 (R_X86_64_PC8): Likewise.
16674
16675 * include/grub/i386/efi/pci.h: New file.
16676
16677 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
16678 Change it value based on platform.
16679 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
16680 (GRUB_E820_RAM): Likewise.
16681 (GRUB_E820_RESERVED): Likewise.
16682 (GRUB_E820_ACPI): Likewise.
16683 (GRUB_E820_NVS): Likewise.
16684 (GRUB_E820_EXEC_CODE): Likewise.
16685 (GRUB_E820_MAX_ENTRY): Likewise.
16686 (grub_e820_mmap): New structure.
16687 (linux_kernel_header): Change the efi field according to different
16688 kernel version, also field from linux_kernel_header.
16689
16690 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
16691
16692 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
16693 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
16694 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
16695 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
16696 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
16697 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
16698 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
16699 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
16700 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
16701 (GRUB_PCI_ADDR_IO_MASK): Likewise.
16702
16703 * include/grub/x86_64/efi/kernel.h: New file.
16704
16705 * include/grub/x86_64/efi/loader.h: Likewise.
16706
16707 * include/grub/x86_64/efi/machine.h: Likewise.
16708
16709 * include/grub/x86_64/efi/pci.h: Likewise.
16710
16711 * include/grub/x86_64/efi/time.h: Likewise.
16712
16713 * include/grub/x86_64/linux.h: Likewise.
16714
16715 * include/grub/x86_64/setjmp.h: Likewise.
16716
16717 * include/grub/x86_64/time.h: Likewise.
16718
16719 * include/grub/x86_64/types.h: Likewise.
16720
16721 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
16722 GRUB_TARGET_SIZEOF_VOID_P.
16723
16724 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
16725 (grub_efi_locate_handle): Likewise.
16726 (grub_efi_open_protocol): Likewise.
16727 (grub_efi_set_text_mode): Likewise.
16728 (grub_efi_stall): Likewise.
16729 (grub_exit): Likewise.
16730 (grub_reboot): Likewise.
16731 (grub_halt): Likewise.
16732 (grub_efi_exit_boot_services): Likewise.
16733 (grub_get_rtc): Likewise.
16734
16735 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
16736 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
16737 (grub_efi_allocate_pages): Wrap efi calls.
16738 (grub_efi_free_pages): Wrap efi calls.
16739 (grub_efi_get_memory_map): Wrap efi calls.
16740
16741 * kern/x86_64/dl.c: New file.
16742
16743 * kern/x86_64/efi/callwrap.S: Likewise.
16744
16745 * kern/x86_64/efi/startup.S: Likewise.
16746
16747 * loader/efi/appleloader.c: Likewise.
16748
16749 * loader/efi/chainloader.c (cmdline): New variable.
16750 (grub_chainloader_unload): Wrap efi calls.
16751 (grub_chainloader_boot): Likewise.
16752 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
16753 command line.
16754
16755 * loader/efi/chainloader_normal.c (chainloader_command):
16756 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
16757 command line.
16758
16759 * loader/i386/efi/linux.c (allocate_pages): Change allocation
16760 method.
16761 (grub_e820_add_region): New function.
16762 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
16763 booting.
16764 (grub_find_video_card): New function.
16765 (grub_linux_setup_video): New function.
16766 (grub_rescue_cmd_linux): Probe for video information.
16767
16768 * normal/x86_64/setjmp.S: New file.
16769
16770 * term/efi/console.c (map_char): New function.
16771 (grub_console_putchar): Map unicode char.
16772 (grub_console_checkkey): Wrap efi calls.
16773 (grub_console_getkey): Likewise.
16774 (grub_console_getwh): Likewise.
16775 (grub_console_gotoxy): Likewise.
16776 (grub_console_cls): Likewise.
16777 (grub_console_setcolorstate): Likewise.
16778 (grub_console_setcursor): Likewise.
16779
16780 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
16781
16782 2008-07-16 Pavel Roskin <proski@gnu.org>
16783
16784 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
16785 format strings.
16786
16787 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
16788 pointer, not an integer. This fixes a warning and prevents
16789 precision loss on 64-bit systems.
16790 (relocate_addresses): Remove unneeded cast.
16791
16792 2008-07-15 Pavel Roskin <proski@gnu.org>
16793
16794 * kern/i386/ieee1275/init.c: Include grub/cache.h.
16795
16796 * term/ieee1275/ofconsole.c: Disable code unused on i386.
16797
16798 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
16799 Fix comparison between signed and unsigned.
16800
16801 * include/grub/i386/ieee1275/console.h: Declare
16802 grub_console_init() and grub_console_fini().
16803
16804 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
16805 It's empty and unused.
16806
16807 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
16808 beginning to avoid warnings with some compilers.
16809
16810 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
16811 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
16812
16813 2008-07-14 Pavel Roskin <proski@gnu.org>
16814
16815 * kern/env.c (grub_register_variable_hook): Don't copy empty
16816 string, it leaks memory. Pass "" to grub_env_set(), it should
16817 handle constant strings.
16818
16819 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
16820 * commands/cmp.c (grub_cmd_cmp): Likewise.
16821 * kern/dl.c (grub_dl_flush_cache): Likewise.
16822 (grub_dl_load_core): Likewise.
16823 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
16824 (grub_elf64_load_phdrs): Likewise.
16825
16826 2008-07-13 Pavel Roskin <proski@gnu.org>
16827
16828 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
16829 between signed and unsigned.
16830 (LzmaEnc_Finish): Fix warning about an unused parameter.
16831
16832 2008-07-13 Bean <bean123ch@gmail.com>
16833
16834 * Makefile.in (enable_lzo): New rule.
16835
16836 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
16837
16838 * configure.ac (ENABLE_LZO): New option --enable-lzo.
16839
16840 * boot/i386/pc/lnxboot.S: #include <config.h>.
16841
16842 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
16843 its value according to the compression algorithm used, lzo or lzma.
16844
16845 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
16846 compression algorithm according to configure macro.
16847
16848 * kern/i386/pc/startup.S (codestart): Likewise.
16849
16850 * kern/i386/pc/lzma_decode.S: New file.
16851
16852 * include/grub/lib/LzFind.h: Likewise.
16853
16854 * include/grub/lib/LzHash.h: Likewise.
16855
16856 * include/grub/lib/LzmaDec.h: Likewise.
16857
16858 * include/grub/lib/LzmaEnc.h: Likewise.
16859
16860 * include/grub/lib/LzmaTypes.h: Likewise.
16861
16862 * lib/LzFind.c: Likewise.
16863
16864 * lib/LzmaDec.c: Likewise.
16865
16866 * lib/LzmaEnc.c: Likewise.
16867
16868 2008-07-13 Bean <bean123ch@gmail.com>
16869
16870 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
16871 (grub_ext4_extent_header): New structure.
16872 (grub_ext4_extent): Likewise.
16873 (grub_ext4_extent_idx): Likewise.
16874 (grub_ext4_find_leaf): New function.
16875 (grub_ext2_read_block): Handle extents.
16876
16877 2008-07-12 Robert Millan <rmh@aybabtu.com>
16878
16879 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
16880
16881 2008-07-11 Robert Millan <rmh@aybabtu.com>
16882
16883 * util/grub.d/40_custom.in: New file. Example on how to add custom
16884 entries to /etc/grub.d.
16885 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
16886 40_custom (implicitly, by merging all the grub.d rules).
16887
16888 2008-07-11 Pavel Roskin <proski@gnu.org>
16889
16890 * commands/read.c (grub_getline): Fix invalid memory access.
16891 Don't add newline to the variable value.
16892
16893 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
16894 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
16895 (serial_hw_get_port): Check validity of the port number.
16896 (grub_cmd_serial): Check return value of serial_hw_get_port().
16897
16898 2008-07-07 Pavel Roskin <proski@gnu.org>
16899
16900 * boot/i386/pc/diskboot.S (notification_string): Replace
16901 "Loading kernel" with just "loading". This is shorter, less
16902 confusing and saves a few bytes for possible future changes.
16903
16904 2008-07-05 Pavel Roskin <proski@gnu.org>
16905
16906 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
16907 size for ATAPI devices, they are undefined. Output sector
16908 number in decimal form.
16909
16910 * disk/ata.c: Use named constants for status bits.
16911
16912 2008-07-04 Pavel Roskin <proski@gnu.org>
16913
16914 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
16915 grub_addr_t before casting it to the void pointer to fix a
16916 warning. Non-addressable regions are discarded earlier.
16917 (grub_arch_modules_addr): Cast _end to grub_addr_t.
16918 * kern/i386/linuxbios/table.c: Include grub/misc.h.
16919 (check_signature): Don't shadow table_header.
16920 (grub_linuxbios_table_iterate): Cast numeric constants to
16921 grub_linuxbios_table_header_t.
16922 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
16923 grub_stop().
16924
16925 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
16926 prevent warnings.
16927
16928 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
16929 pointer, which can cause warnings. Support 64-bit addresses.
16930
16931 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
16932 of sizeof(long). This fixes PowerPC image generation on x86_64.
16933
16934 2008-07-04 Robert Millan <rmh@aybabtu.com>
16935
16936 This fixes a performance issue when pc & gpt partmap iterators
16937 didn't abort iteration even after our hook found what it was
16938 looking for (often causing expensive probes of non-existent drives).
16939
16940 Some callers relied on previous buggy behaviour, since they would
16941 raise an error when their own hooks caused early abortion of its
16942 iteration.
16943
16944 * kern/device.c (grub_device_open): Improve error message.
16945 * disk/lvm.c (grub_lvm_open): Likewise.
16946 * disk/raid.c (grub_raid_open): Likewise.
16947
16948 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
16949 when hook requests it, independently of grub_errno.
16950 (pc_partition_map_probe): Do not fail when find_func() caused
16951 early abortion of pc_partition_map_iterate().
16952
16953 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
16954 when hook requests it, independently of grub_errno.
16955 (gpt_partition_map_probe): Do not fail when find_func() caused
16956 early abortion of gpt_partition_map_iterate().
16957
16958 * kern/partition.c (grub_partition_iterate): Abort parent iteration
16959 when hook requests it, independently of grub_errno. Do not fail when
16960 part_map_iterate_hook() caused early abortion of p->iterate().
16961
16962 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
16963 when grub_partition_iterate() returned with non-zero.
16964
16965 2008-07-03 Pavel Roskin <proski@gnu.org>
16966
16967 * disk/ata.c (grub_ata_pio_write): Check status before writing,
16968 like we do in grub_ata_pio_read().
16969 (grub_ata_readwrite): Always write individual sectors. Fix the
16970 sector count for the remainder.
16971 (grub_ata_write): Enable writing to ATA devices. Correctly
16972 report error for ATAPI devices.
16973
16974 2008-07-02 Pavel Roskin <proski@gnu.org>
16975
16976 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
16977 warning.
16978
16979 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
16980 for every read sector, we already increment it for the whole
16981 batch. This fixes reading more than 256 sectors at once.
16982
16983 * util/grub-editenv.c (cmd_info): Cast argument to long
16984 explicitly. ptrdiff_t reduces to int on i386.
16985
16986 * util/grub-editenv.c (main): Be specific which parameter is
16987 missing.
16988
16989 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
16990 (memdisk): Make memdisk_orig_addr a pointer.
16991
16992 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
16993 for file offsets, use grub_off_t instead. Fix printf format
16994 warnings.
16995
16996 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
16997 there. Real unexpected warnings should not drown in the noise
16998 about known problems.
16999
17000 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
17001 grub_disk_addr_t for memory addresses.
17002
17003 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
17004 explicitly to fix a warning.
17005
17006 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
17007
17008 * Makefile.in (MODULE_LDFLAGS): New variable.
17009 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
17010 the linker accepts --build-id=none.
17011 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
17012 MODULE_LDFLAGS.
17013 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
17014
17015 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
17016 those in Linux XFS code. Provide a way to access 64-bit parent
17017 inode.
17018 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
17019 the end of struct grub_xfs_dir_header.
17020
17021 2008-07-02 Bean <bean123ch@gmail.com>
17022
17023 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
17024 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
17025 and GRUB_IEEE1275_FLAG_NO_ANSI.
17026
17027 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
17028 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
17029 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
17030
17031 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
17032 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
17033
17034 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
17035 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
17036
17037 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
17038 esc sequence on non ANSI terminal.
17039 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
17040
17041 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
17042 beginning of file.
17043
17044 2008-07-02 Bean <bean123ch@gmail.com>
17045
17046 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
17047 (grub_editenv_SOURCES): New variable.
17048 (pkglib_MODULES): Add loadenv.mod.
17049 (loadenv_mod_SOURCES): New variable.
17050 (loadenv_mod_CFLAGS): Likewise.
17051 (loadenv_mod_LDFLAGS): Likewise.
17052
17053 * include/grub/envblk.h: New file.
17054
17055 * util/envblk.c: New file.
17056
17057 * util/grub-editenv.c: New file.
17058
17059 * commands/loadenv.c: New file.
17060
17061 2008-07-01 Pavel Roskin <proski@gnu.org>
17062
17063 * include/multiboot2.h (struct multiboot_tag_module): Use char,
17064 not unsigned char. This fixes warnings and is consistent with
17065 other tags.
17066
17067 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
17068
17069 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
17070
17071 * term/tparm.c (analyze): Always set *popcount.
17072
17073 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
17074 cast to fix a warning.
17075
17076 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
17077 cast to suppress a warning.
17078
17079 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
17080 grub_fshelp_read_file() expects.
17081
17082 * fs/fat.c: Fix UUID calculation on big-endian systems. We
17083 write uuid as a 32-bit value in CPU byte order, so declare and
17084 use it as such.
17085
17086 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
17087 long if the format specifier expects it.
17088 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
17089 * partmap/pc.c (pc_partition_map_iterate): Likewise.
17090 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
17091 long to fix a warning.
17092 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
17093 grub_dprintf() arguments to fix warnings.
17094
17095 2008-06-30 Pavel Roskin <proski@gnu.org>
17096
17097 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
17098 install_bsd_part immediately before core.img is embedded or
17099 modified on disk. This fixes core.img verification if core.img
17100 cannot be embedded.
17101
17102 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
17103 core_path to calculate the blocklist.
17104 Patch from Javier Martín <lordhabbit@gmail.com>
17105
17106 2008-06-29 Robert Millan <rmh@aybabtu.com>
17107
17108 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
17109 block to disk block.
17110 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
17111 Patch from Niels Böhm <bitbucket@arcor.de>
17112
17113 2008-06-29 Robert Millan <rmh@aybabtu.com>
17114
17115 * util/update-grub_lib.in (font_path): Search for fonts in
17116 /boot/grub first, which is more likely to be readable (we aren't
17117 deciding where fonts live, just looking for them).
17118
17119 2008-06-26 Pavel Roskin <proski@gnu.org>
17120
17121 * util/biosdisk.c (read_device_map): Don't leave dead map
17122 entries for devices failing stat() check.
17123
17124 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
17125 core_path_dev for the core.img path on the target device.
17126
17127 2008-06-26 Robert Millan <rmh@aybabtu.com>
17128
17129 * disk/fs_uuid.c: New file.
17130 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
17131 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
17132 (fs_uuid_mod_LDFLAGS): New variables.
17133 * include/grub/disk.h (grub_disk_dev_id): Add
17134 `GRUB_DISK_DEVICE_UUID_ID'.
17135 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
17136 implement iterate().
17137
17138 2008-06-26 Robert Millan <rmh@aybabtu.com>
17139
17140 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
17141 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
17142 Linux image includes no initrd.
17143
17144 2008-06-21 Javier Martín <lordhabbit@gmail.com>
17145
17146 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
17147 call to resolve the core image location that effectively appended the
17148 name twice.
17149
17150 2008-06-21 Robert Millan <rmh@aybabtu.com>
17151
17152 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
17153 call from here ...
17154
17155 * util/grub.d/10_hurd.in: ... to here ...
17156 * util/grub.d/10_linux.in: ... and here.
17157
17158 2008-06-19 Robert Millan <rmh@aybabtu.com>
17159
17160 * kern/main.c (grub_main): Export `prefix' variable immediately
17161 after it has been set by grub_machine_set_prefix().
17162
17163 2008-06-19 Robert Millan <rmh@aybabtu.com>
17164
17165 * commands/search.c (search_label, search_fs_uuid, search_file): Print
17166 search result when not saving to variable, not the other way around.
17167 When saving to variable, abort iteration as soon as a match is found.
17168
17169 2008-06-19 Robert Millan <rmh@aybabtu.com>
17170
17171 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
17172 check for partition that provides /boot/grub. Its logic is flawed,
17173 as it prevents prepare_grub_to_access_device() from being called
17174 multiple times.
17175
17176 2008-06-19 Robert Millan <rmh@aybabtu.com>
17177
17178 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
17179 "insmod" command directly when abstraction modules are needed,
17180 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
17181 since it had already been processed).
17182
17183 2008-06-19 Pavel Roskin <proski@gnu.org>
17184
17185 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
17186 changed. This is needed in case GRUB_LIBDIR changes.
17187 * conf/i386-ieee1275.rmk: Likewise.
17188 * conf/i386-linuxbios.rmk: Likewise.
17189 * conf/i386-pc.rmk: Likewise.
17190 * conf/powerpc-ieee1275.rmk: Likewise.
17191
17192 2008-06-18 Pavel Roskin <proski@gnu.org>
17193
17194 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
17195 kernel_elf_symlist.c to symlist.c for consistency with other
17196 architectures. Update all users.
17197 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
17198
17199 2008-06-18 Robert Millan <rmh@aybabtu.com>
17200
17201 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
17202 it in prefix.
17203
17204 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
17205 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
17206 a RAID device, run setup() for all members independently on whether
17207 LVM abstraction is being used.
17208 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
17209 If grub-mkimage has set `*install_dos_part == -2', don't override this
17210 value.
17211 Perform *install_dos_part adjustments independently on whether
17212 we're embedding or not.
17213 Clarify error message when image is too big for embedding.
17214 Remove duplicate *install_dos_part stanza.
17215
17216 2008-06-17 Robert Millan <rmh@aybabtu.com>
17217
17218 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
17219 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
17220 variables.
17221 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
17222 values in grub_ofconsole_normal_color and
17223 grub_ofconsole_highlight_color (they're not directly related to
17224 background and foreground).
17225 (grub_ofconsole_setcolorstate): Extract background and foreground
17226 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
17227
17228 2008-06-17 Robert Millan <rmh@aybabtu.com>
17229
17230 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
17231 /boot/grub for the check in last commit, not /boot (they could be
17232 different partitions).
17233
17234 2008-06-16 Robert Millan <rmh@aybabtu.com>
17235
17236 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
17237 asked to setup access for the same partition that provides /boot,
17238 don't bother using UUIDs since our root already has the value we
17239 want.
17240
17241 2008-06-16 Robert Millan <rmh@aybabtu.com>
17242
17243 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
17244 I2O devices.
17245 Patch from Sven Mueller <sven@debian.org>.
17246
17247 2008-06-16 Robert Millan <rmh@aybabtu.com>
17248
17249 * util/update-grub.in: Check for $EUID instead of $UID.
17250 Reported by Vincent Zweije.
17251
17252 2008-06-16 Bean <bean123ch@gmail.com>
17253
17254 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
17255 (grub_ext2_read_block): Likewise.
17256 (grub_ext2_read_inode): Likewise.
17257 (grub_ext2_mount): Likewise.
17258 (grub_ext2_close): Likewise.
17259 (grub_ext3_get_journal): Removed.
17260
17261 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
17262 (grub_reiserfs_read_symlink): Likewise.
17263 (grub_reiserfs_mount): Likewise.
17264 (grub_reiserfs_open): Likewise.
17265 (grub_reiserfs_read): Likewise.
17266 (grub_reiserfs_close): Likewise.
17267 (grub_reiserfs_get_journal): Removed.
17268
17269 * fs/fshelp.c (grub_fshelp_read): Removed.
17270 (grub_fshelp_map_block): Likewise.
17271
17272 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
17273 (grub_fshelp_journal): Likewise.
17274 (grub_fshelp_read): Likewise.
17275 (grub_fshelp_map_block): Likewise.
17276
17277 2008-06-16 Pavel Roskin <proski@gnu.org>
17278
17279 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
17280 floating point anymore.
17281 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
17282
17283 2008-06-15 Pavel Roskin <proski@gnu.org>
17284
17285 * commands/ls.c (grub_ls_list_files): Use integer calculations
17286 for human readable format, avoid floating point use.
17287 * kern/misc.c (grub_ftoa): Remove.
17288 (grub_vsprintf): Remove floating point support.
17289
17290 2008-06-15 Robert Millan <rmh@aybabtu.com>
17291
17292 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
17293 devices.
17294 Reported by Max Vozeler.
17295
17296 2008-06-15 Robert Millan <rmh@aybabtu.com>
17297
17298 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
17299 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
17300 skipped later.
17301 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
17302 the beginning of the prefix.
17303
17304 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
17305 It is assumed that if we have a memdisk, grub-mkimage has set
17306 grub_prefix to include the "(memdisk)" drive in it.
17307
17308 2008-06-15 Robert Millan <rmh@aybabtu.com>
17309
17310 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
17311 Initialize keyboard controller after registering the terminal, so that
17312 grub_printf() can be called from grub_keyboard_controller_init().
17313
17314 2008-06-15 Robert Millan <rmh@aybabtu.com>
17315
17316 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
17317 extent-btree which is written as big endian on disk.
17318 Reported by Alain Greppin <al@chilibi.org>.
17319
17320 2008-06-14 Robert Millan <rmh@aybabtu.com>
17321
17322 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
17323 * util/i386/pc/grub-install.in (modules): Likewise.
17324
17325 2008-06-13 Pavel Roskin <proski@gnu.org>
17326
17327 * commands/ls.c (grub_ls_list_files): Fix format warnings.
17328
17329 2008-06-13 Bean <bean123ch@gmail.com>
17330
17331 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
17332
17333 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
17334
17335 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
17336 to indicate sparse block.
17337
17338 2008-06-12 Pavel Roskin <proski@gnu.org>
17339
17340 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
17341 number, grub_fshelp_read() does it for us.
17342
17343 * fs/fshelp.c (grub_fshelp_read): New function. Implement
17344 linear disk read with journal translation.
17345 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
17346 * include/grub/fshelp.h: Declare grub_fshelp_read().
17347
17348 2008-06-09 Pavel Roskin <proski@gnu.org>
17349
17350 * fs/minix.c (grub_minix_mount): Handle error reading
17351 superblock.
17352
17353 2008-06-08 Robert Millan <rmh@aybabtu.com>
17354
17355 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
17356 don't append the RAID prefix afterwards.
17357 Reported by Clint Adams.
17358
17359 2008-06-08 Robert Millan <rmh@aybabtu.com>
17360
17361 Based on description from Pavel:
17362 * kern/disk.c (grub_disk_check_range): Rename to ...
17363 (grub_disk_adjust_range): ... this. Add a comment explaining the
17364 tasks performed by this function.
17365
17366 2008-06-08 Robert Millan <rmh@aybabtu.com>
17367
17368 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
17369 `num_serial' (for consistency with other variables).
17370 (struct grub_ntfs_data): Add `uuid' member.
17371 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
17372 (grub_ntfs_uuid): New function.
17373 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
17374
17375 2008-06-07 Pavel Roskin <proski@gnu.org>
17376
17377 * util/biosdisk.c (open_device): Revert last change to the
17378 function, it broke installation. The sector needs to be
17379 different dependent on which device is opened.
17380
17381 2008-06-06 Robert Millan <rmh@aybabtu.com>
17382
17383 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
17384 rest of GRUB, and breakage doesn't happen if its value were modified.
17385
17386 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
17387 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
17388 a constant (same value).
17389 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
17390 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
17391
17392 2008-06-06 Robert Millan <rmh@aybabtu.com>
17393
17394 * util/biosdisk.c (open_device): Do not modify sector offset when
17395 accessing a partition. kern/disk.c already handles this for us.
17396
17397 2008-06-06 Robert Millan <rmh@aybabtu.com>
17398
17399 * util/grub-emu.c (grub_machine_init): Move code in this function from
17400 here ...
17401 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
17402 segfault in case grub_printf() is called).
17403
17404 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
17405 grub_probe. Update all users not to explicitly add it again.
17406 (grub_device): New variable; contains corresponding device for grubdir.
17407 (fs_module, partmap_module, devabstraction_module): Pass
17408 `--device ${grub_device}' to grub_probe to avoid traversing /dev
17409 every time.
17410
17411 2008-06-05 Robert Millan <rmh@aybabtu.com>
17412
17413 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
17414 is found, print it (same layout as with labels).
17415
17416 2008-06-04 Robert Millan <rmh@aybabtu.com>
17417
17418 * util/biosdisk.c (get_drive): Rename to ...
17419 (find_grub_drive): ... this. Update all users.
17420
17421 (get_os_disk): Rename to ...
17422 (convert_system_partition_to_system_disk): ... this. Update all users.
17423
17424 (find_drive): Rename to ...
17425 (find_system_device): ... this. Update all users.
17426
17427 2008-06-04 Robert Millan <rmh@aybabtu.com>
17428
17429 * util/biosdisk.c (get_os_disk): Handle IDA devices.
17430 * util/grub-mkdevicemap.c (get_mmc_disk_name)
17431 (make_device_map): Likewise.
17432
17433 2008-06-01 Robert Millan <rmh@aybabtu.com>
17434
17435 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
17436 before dereferencing it.
17437
17438 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
17439 union with fat12/fat16-specific ones. Add some new fields, including
17440 `num_serial' for both versions.
17441 (struct grub_fat_data): Add `uuid' member.
17442 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
17443 names. Initialize `data->uuid' using `num_serial'.
17444 (grub_fat_uuid): New function.
17445 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
17446
17447 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
17448 (grub_reiserfs_uuid): New function.
17449 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
17450 member.
17451
17452 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
17453 (grub_xfs_uuid): New function.
17454 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
17455
17456 2008-06-01 Robert Millan <rmh@aybabtu.com>
17457
17458 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
17459 code that is backward compatible with pre-uuid search command.
17460
17461 2008-05-31 Robert Millan <rmh@aybabtu.com>
17462
17463 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
17464 floppies after everything else, to ensure floppy drive isn't accessed
17465 unnecessarily (patch from Bean).
17466
17467 2008-05-31 Robert Millan <rmh@aybabtu.com>
17468
17469 * commands/search.c (search_label, search_fs_uuid, search_file): Do
17470 not print device names when we were asked to set a variable.
17471
17472 2008-05-31 Robert Millan <rmh@aybabtu.com>
17473
17474 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
17475 using "cursor-on" and "cursor-off" commands (understood at least by
17476 the Open Firmware flavour on OLPC).
17477
17478 2008-05-31 Michael Gorven <michael@gorven.za.net>
17479
17480 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
17481 on and off sequences.
17482
17483 2008-05-31 Robert Millan <rmh@aybabtu.com>
17484
17485 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
17486 * util/update-grub.in: Likewise.
17487
17488 2008-05-30 Pavel Roskin <proski@gnu.org>
17489
17490 * util/biosdisk.c (linux_find_partition): Simplify logic and
17491 make the code more universal. Keep special processing for
17492 devfs, but use a simple rule for all other devices. If the
17493 device ends with a number, append 'p' and the partition number.
17494 Otherwise, append only the partition number.
17495
17496 2008-05-30 Robert Millan <rmh@aybabtu.com>
17497
17498 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
17499 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
17500 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
17501 the `root' parameter to Linux.
17502
17503 2008-05-30 Robert Millan <rmh@aybabtu.com>
17504
17505 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
17506 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
17507 --fs_uuid with --fs-uuid.
17508 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
17509 all filesystems support them).
17510
17511 2008-05-30 Robert Millan <rmh@aybabtu.com>
17512
17513 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
17514 grub_printf() flags, since we're printing in units of 2 bytes.
17515
17516 2008-05-30 Robert Millan <rmh@aybabtu.com>
17517
17518 * util/grub.d/00_header.in: Remove obsolete comment referencing
17519 convert_system_path_to_grub_path().
17520 * util/update-grub.in: Likewise.
17521 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
17522 (convert_system_path_to_grub_path): Add a warning message explaining
17523 that this function is deprecated. Rely on is_path_readable_by_grub()
17524 for the readability checks.
17525 (font_path): Use is_path_readable_by_grub() for the readability
17526 check rather than convert_system_path_to_grub_path().
17527
17528 2008-05-30 Robert Millan <rmh@aybabtu.com>
17529
17530 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
17531 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
17532 converting it first.
17533 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
17534 grub.cfg for access to font file, and afterwards call it again to set
17535 the root device.
17536
17537 2008-05-30 Robert Millan <rmh@aybabtu.com>
17538
17539 * commands/search.c (options): Add --fs_uuid option.
17540 (search_fs_uuid): New function.
17541 (grub_cmd_search): Fix --set argument passing.
17542 Use search_fs_uuid() when requested via --fs_uuid.
17543 (grub_search_init): Update help message.
17544 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
17545 and redeclare it as an array of 16-bit words.
17546 (grub_ext2_uuid): New function.
17547 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
17548 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
17549 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
17550 (GRUB_DEVICE_BOOT_UUID): New variables.
17551 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
17552 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
17553 whenever possible.
17554 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
17555 just assume `root' variable has the right value.
17556 * util/grub.d/10_linux.in: Likewise.
17557 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
17558 via PRINT_FS_UUID.
17559 (main): Recognise `-t fs_uuid' argument.
17560
17561 2008-05-30 Robert Millan <rmh@aybabtu.com>
17562
17563 * util/biosdisk.c (map): Redefine structure to hold information
17564 about GRUB drive name.
17565 (get_drive): Reimplement without assuming (and verifying) BIOS-like
17566 drive names.
17567 (call_hook): Remove.
17568 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
17569 member. Assume drive has partitions.
17570 (grub_util_biosdisk_open): Access device names via `.device' struct
17571 member.
17572 (open_device): Likewise.
17573 (find_drive): Likewise.
17574 (read_device_map): Adjust map[] usage to match the new struct
17575 definition. Don't check for duplicates (still possible, but not cheap
17576 anymore).
17577 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
17578 (make_device_name): Remove assumption of BIOS-like drive names.
17579
17580 2008-05-30 Pavel Roskin <proski@gnu.org>
17581
17582 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
17583 compiling execute.c doesn't need grub_script.tab.h anymore.
17584 (normal/command.c_DEPENDENCIES): Likewise.
17585 (normal/function.c_DEPENDENCIES): Likewise.
17586 * conf/i386-ieee1275.rmk: Likewise.
17587 * conf/i386-linuxbios.rmk: Likewise.
17588 * conf/i386-pc.rmk: Likewise.
17589 * conf/powerpc-ieee1275.rmk: Likewise.
17590 * conf/sparc64-ieee1275.rmk: Likewise.
17591
17592 2008-05-29 Pavel Roskin <proski@gnu.org>
17593
17594 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
17595 when scanning metadata for volume group name.
17596
17597 * include/grub/script.h: Don't include grub_script.tab.h. It's
17598 a generated file, which may only be included from the files with
17599 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
17600 use union YYSTYPE, as the later allows forward declaration.
17601 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
17602
17603 2008-05-29 Robert Millan <rmh@aybabtu.com>
17604
17605 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
17606 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
17607 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
17608 (grub_console_checkkey): Add grub_dprintf() call to report unknown
17609 scan codes.
17610
17611 2008-05-29 Robert Millan <rmh@aybabtu.com>
17612
17613 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
17614 control key combinations.
17615
17616 2008-05-29 Robert Millan <rmh@aybabtu.com>
17617
17618 * util/powerpc/ieee1275/grub-install.in: Move from here ...
17619 * util/ieee1275/grub-install.in: ... to here.
17620 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
17621 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
17622 (grub_install_SOURCES): Likewise.
17623
17624 2008-05-29 Robert Millan <rmh@aybabtu.com>
17625
17626 * fs/affs.c: Update copyright year.
17627 * fs/ext2.c: Likewise.
17628 * fs/fshelp.c: Likewise.
17629 * fs/hfsplus.c: Likewise.
17630 * fs/ntfs.c: Likewise.
17631 * fs/xfs.c: Likewise.
17632 * include/grub/fshelp.h: Likewise.
17633 * util/grub-mkdevicemap.c: Likewise.
17634
17635 2008-05-28 Robert Millan <rmh@aybabtu.com>
17636
17637 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
17638 might need to be fatfs to support some firmware implementations
17639 (e.g. OFW or EFI).
17640
17641 2008-05-28 Robert Millan <rmh@aybabtu.com>
17642
17643 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
17644 devices.
17645 * util/grub-mkdevicemap.c (get_mmc_disk_name)
17646 (make_device_map): Likewise.
17647
17648 2008-05-20 Bean <bean123ch@gmail.com>
17649
17650 * fs/fshelp.c (grub_fshelp_map_block): New function.
17651 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
17652 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
17653
17654 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
17655 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
17656 (grub_fshelp_journal): New structure.
17657 (grub_fshelp_map_block): New function prototype.
17658 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
17659 (grub_fshelp_map_block): Likewise.
17660
17661 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
17662 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
17663 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
17664 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
17665 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
17666 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
17667 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
17668 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
17669 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
17670 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
17671 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
17672 (grub_ext2_sblock): New members for journal support.
17673 (grub_ext3_journal_header): New structure.
17674 (grub_ext3_journal_revoke_header): Likewise.
17675 (grub_ext3_journal_block_tag): Likewise.
17676 (grub_ext3_journal_sblock): Likewise.
17677 (grub_fshelp_node): New members logfile and journal.
17678 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
17679 grub_fshelp_map_block to get real block number.
17680 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
17681 number.
17682 (grub_ext2_read_inode): Likewise.
17683 (grub_ext3_get_journal): New function.
17684 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
17685 (grub_ext2_close): Release memory used by journal.
17686
17687 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
17688 (REISERFS_MAGIC_DESC_BLOCK): New macro.
17689 (grub_reiserfs_transaction_header): Renamed to
17690 grub_reiserfs_description_block, replace field data with real_blocks.
17691 (grub_reiserfs_commit_block): New structure.
17692 (grub_reiserfs_data): New member journal.
17693 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
17694 number.
17695 (grub_reiserfs_read_symlink): Likewise.
17696 (grub_reiserfs_iterate_dir): Likewise.
17697 (grub_reiserfs_open): Likewise.
17698 (grub_reiserfs_read): Likewise.
17699 (grub_reiserfs_get_journal): New function.
17700 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
17701 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
17702 using grub_reiserfs_get_journal.
17703 (grub_reiserfs_close): Release memory used by journal.
17704
17705 * fs/affs.c (grub_affs_read_block): Change block type to
17706 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
17707
17708 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
17709
17710 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
17711
17712 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
17713
17714 * fs/udf.c (grub_udf_read_block): Change block type to
17715 grub_disk_addr_t. Use type cast to avoid warning.
17716
17717 * fs/xfs.c (grub_xfs_read_block): Likewise.
17718
17719 2008-05-16 Christian Franke <franke@computer.org>
17720
17721 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
17722 to ensure that break with ESC will always work.
17723 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
17724 Remove ESC from keyboard queue.
17725
17726 2008-05-16 Christian Franke <franke@computer.org>
17727
17728 * util/biosdisk.c: [__CYGWIN__] Add includes.
17729 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
17730 (get_os_disk): Move variable declarations to OS specific
17731 parts to avoid warning.
17732 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
17733 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
17734 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
17735 Cygwin.
17736 * util/getroot.c: [__CYGWIN__] Add includes.
17737 (strip_extra_slashes): Fix "/" case.
17738 [__CYGWIN__] (get_win32_path): New function.
17739 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
17740 [__CYGWIN__] (find_root_device): Disable.
17741 [__CYGWIN__] (get_bootsec_serial): New function.
17742 [__CYGWIN__] (find_cygwin_root_device): Likewise.
17743 [__linux__] (grub_guess_root_device): Add early returns to simplify
17744 structure.
17745 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
17746 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
17747 check for Linux only.
17748
17749 2008-05-15 Bean <bean123ch@gmail.com>
17750
17751 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
17752 keyboard hang problem in apple's intel mac.
17753
17754 2008-05-09 Robert Millan <rmh@aybabtu.com>
17755
17756 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
17757 devices.
17758 * util/grub-mkdevicemap.c (get_virtio_disk_name)
17759 (make_device_map): Likewise.
17760 Reported by Aurelien Jarno <aurel32@debian.org>
17761
17762 2008-05-07 Ian Campbell <ijc@hellion.org.uk>
17763
17764 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
17765 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
17766 (make_device_map): Output entries for xvd type disks.
17767
17768 2008-05-07 Robert Millan <rmh@aybabtu.com>
17769
17770 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
17771 devices.
17772 * util/grub-mkdevicemap.c (get_cciss_disk_name)
17773 (make_device_map): Likewise.
17774 Reported by Roland Dreier <rdreier@cisco.com>
17775
17776 2008-05-07 Robert Millan <rmh@aybabtu.com>
17777
17778 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
17779 grub_strstr() call. Correct a few mistakes in failure path handling.
17780
17781 2008-05-06 Robert Millan <rmh@aybabtu.com>
17782
17783 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
17784 Do not print a trailing slash (therefore, the root directory is an
17785 empty string).
17786 (convert_system_path_to_grub_path): Do not remove trailing slash
17787 from make_system_path_relative_to_its_root() output.
17788
17789 * util/i386/pc/grub-install.in: Add trailing slash to output from
17790 make_system_path_relative_to_its_root().
17791
17792 2008-05-06 Robert Millan <rmh@aybabtu.com>
17793
17794 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
17795 ensures that output lines aren't intermangled with those sent to
17796 stderr (via grub_util_info()).
17797 * util/grub-probe.c (grub_refresh): Likewise.
17798 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
17799
17800 2008-05-05 Christian Franke <franke@computer.org>
17801
17802 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
17803 Add Cygwin device names.
17804 (get_ide_disk_name) [__CYGWIN__]: Likewise.
17805 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
17806 (check_device): Return error instead of success on empty name.
17807 (make_device_map): Move label inside linux specific code to
17808 prevent compiler warning.
17809
17810 2008-04-30 Robert Millan <rmh@aybabtu.com>
17811
17812 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
17813 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
17814 first boot option.
17815 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
17816
17817 2008-04-29 Robert Millan <rmh@aybabtu.com>
17818
17819 * docs/grub.cfg: New file (example GRUB configuration).
17820
17821 2008-04-26 Robert Millan <rmh@aybabtu.com>
17822
17823 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
17824 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
17825 and `disk/ieee1275/nand.c'.
17826
17827 2008-04-25 Bean <bean123ch@gmail.com>
17828
17829 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
17830 i386-linuxbios.
17831
17832 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
17833 change the buffer size to 4096 for cdrom device.
17834
17835 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
17836 and nand.mod.
17837 (_linux_mod_SOURCES): New variable.
17838 (_linux_mod_CFLAGS): Likewise.
17839 (_linux_mod_LDFLAGS): Likewise.
17840 (linux_mod_SOURCES): Likewise.
17841 (linux_mod_CFLAGS): Likewise.
17842 (linux_mod_LDFLAGS): Likewise.
17843 (nand_mod_SOURCES): Likewise.
17844 (nand_mod_CFLAGS): Likewise.
17845 (nand_mod_LDFLAGS): Likewise.
17846
17847 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
17848 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
17849 type property. (nand device in olpc don't have this property)
17850
17851 * include/grub/disk.h (grub_disk_dev_id): New macro
17852 GRUB_DISK_DEVICE_NAND_ID.
17853
17854 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
17855 function prototype.
17856 (grub_rescue_cmd_initrd): Likewise.
17857
17858 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
17859 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
17860 ofw_cif_handler and ofw_idt, adjust padding number.
17861
17862 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
17863 GRUB_MACHINE_IEEE1275 is defined.
17864
17865 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
17866 Use NESTED_FUNC_ATTR attribute on the hook parameter.
17867
17868 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
17869 on nested function heap_init.
17870 (grub_upper_mem): New variable for i386-ieee1275.
17871 (grub_get_extended_memory): New function for i386-ieee1275.
17872 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
17873
17874 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
17875 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
17876 property.
17877
17878 * loader/i386/ieee1275/linux.c: New file.
17879
17880 * loader/i386/ieee1275/linux_normal.c: New file.
17881
17882 * disk/ieee1275/nand.c: New file.
17883
17884 2008-04-18 Thomas Schwinge <tschwinge@gnu.org>
17885
17886 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
17887 value.
17888 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
17889
17890 2008-04-18 Robert Millan <rmh@aybabtu.com>
17891
17892 Restructures early code path on ieee1275 to unify grub_main() as
17893 the first C function that is executed in every platform.
17894
17895 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
17896 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
17897 cmain().
17898 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
17899 * kern/ieee1275/cmain.c (cmain): Rename to ...
17900 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
17901 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
17902 at the beginning.
17903
17904 2008-04-18 Robert Millan <rmh@aybabtu.com>
17905
17906 * util/update-grub.in: Fix syntax error when setting
17907 `GRUB_PRELOAD_MODULES'.
17908 Reported by Stephane Chazelas <stephane@artesyncp.com>
17909
17910 2008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
17911
17912 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
17913 section into account, newer toolchains generate unique build ids
17914 * configure.ac: remove the test for --build-id=none acceptance,
17915 we want build ids to be preserved
17916 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
17917 far from other sections don't cause the raw binary images grow
17918 size
17919
17920 2008-04-15 Robert Millan <rmh@aybabtu.com>
17921
17922 * disk/lvm.c: Update copyright year.
17923 * kern/misc.c: Likewise.
17924
17925 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
17926
17927 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
17928 there is no memory left for physical volume name.
17929
17930 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
17931
17932 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
17933 volume name mapping to support bigger than 9 character names properly.
17934
17935 2008-04-13 Robert Millan <rmh@aybabtu.com>
17936
17937 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
17938 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
17939
17940 2008-04-13 Christian Franke <franke@computer.org>
17941
17942 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
17943 to create a floppy emulation boot CD when non emulation mode
17944 does not work.
17945 Enable Joliet CD filesystem extension.
17946
17947 2008-04-13 Robert Millan <rmh@aybabtu.com>
17948
17949 * kern/misc.c (grub_strncat): Fix off-by-one error.
17950 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
17951
17952 * kern/env.c (grub_env_context_close): Clear current context, not
17953 previous one.
17954 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
17955
17956 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
17957
17958 2008-04-13 Robert Millan <rmh@aybabtu.com>
17959
17960 Improve robustness when handling LVM.
17961
17962 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
17963 (and leave `*p' unmodified).
17964 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
17965 through it.
17966 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
17967 iterating through it.
17968 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
17969 through it.
17970 (grub_lvm_scan_device): Check the return value (and fail gracefully
17971 when due) on each grub_lvm_getvalue() or grub_strstr() call.
17972 Don't assume `vg->pvs != NULL' when iterating through it.
17973
17974 2008-04-13 Robert Millan <rmh@aybabtu.com>
17975
17976 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
17977 * genmk.rb (partmap): New variable.
17978 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
17979 (#{partmap}): New target rule.
17980 * genpartmaplist.sh: New file.
17981 * Makefile.in (pkglib_DATA): Add partmap.lst.
17982 (partmap.lst): New target rule.
17983 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
17984 modules (including all partition maps), instead of preloading them.
17985
17986 2007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
17987
17988 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
17989 `linux-boot-prober' (if installed) to detect other operating
17990 systems which are installed on the computer and add them to
17991 the boot menu.
17992 * conf/common.rmk: Build and install 30_os-prober.
17993
17994 2008-04-12 Robert Millan <rmh@aybabtu.com>
17995
17996 * kern/powerpc/ieee1275/init.c: Move from here ...
17997 * kern/ieee1275/init.c: ... to here. Update all users.
17998
17999 * kern/powerpc/ieee1275/cmain.c: Move from here ...
18000 * kern/ieee1275/cmain.c: ... to here. Update all users.
18001
18002 * kern/powerpc/ieee1275/openfw.c: Move from here ...
18003 * kern/ieee1275/openfw.c: ... to here. Update all users.
18004
18005 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
18006 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
18007
18008 2008-04-10 Pavel Roskin <proski@gnu.org>
18009
18010 * configure.ac: Always use "_cv_" in cache variables for
18011 compatibility with Autoconf 2.62.
18012
18013 2008-04-07 Robert Millan <rmh@aybabtu.com>
18014
18015 Revert grub/machine/init.h addition by Pavel (since it breaks on
18016 i386-ieee1275 and others):
18017 * util/i386/pc/misc.c: Remove grub/machine/init.h.
18018 * util/powerpc/ieee1275/misc.c: Likewise.
18019
18020 2008-04-07 Robert Millan <rmh@aybabtu.com>
18021
18022 * util/grub-probe.c (probe): Improve error message.
18023
18024 2008-04-07 Robert Millan <rmh@aybabtu.com>
18025
18026 * util/biosdisk.c (read_device_map): Skip devices that don't exist
18027 (this prevents the presence of a bogus entry from ruining the whole
18028 thing).
18029
18030 2008-04-06 Pavel Roskin <proski@gnu.org>
18031
18032 * util/biosdisk.c: Include grub/util/biosdisk.h.
18033 * util/grub-fstest.c (execute_command): Make static.
18034 * util/grub-mkdevicemap.c (check_device): Likewise.
18035 * util/i386/pc/misc.c: Include grub/machine/init.h.
18036 * util/powerpc/ieee1275/misc.c: Likewise.
18037 * util/lvm.c: Include grub/util/lvm.h.
18038 * util/misc.c: Include grub/kernel.h, grub/misc.h and
18039 grub/cache.h.
18040 * util/raid.c: Include grub/util/raid.h.
18041 (grub_util_getdiskname): Make static.
18042
18043 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
18044 grub_hostfs_fini(), as they are called from grub_init_all() and
18045 grub_fini_all() respectively. This fixes an infinite loop in
18046 grub-fstest due to double registration of hostfs.
18047 Reported by Christian Franke <Christian.Franke@t-online.de>
18048
18049 2008-04-05 Pavel Roskin <proski@gnu.org>
18050
18051 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
18052 all 8 functions. Otherwise, probe function 0 only.
18053
18054 2008-04-04 Pavel Roskin <proski@gnu.org>
18055
18056 * commands/lspci.c (grub_lspci_iter): Print the bus number
18057 correctly.
18058
18059 * commands/lspci.c (grub_pci_classes): Fix typos.
18060 (grub_lspci_iter): Don't print func twice. Print vendor ID
18061 before device ID, as it's normally done.
18062
18063 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
18064 Fix signedness warnings.
18065 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
18066 Likewise.
18067 * util/ieee1275/get_disk_name.c: Include config.h so that
18068 _GNU_SOURCE is defined and getline() is declared. Mark an
18069 unused argument as such. Fix a signedness warning.
18070
18071 2008-04-02 Pavel Roskin <proski@gnu.org>
18072
18073 * genkernsyms.sh.in: Use more robust assignments for CC and
18074 srcdir. Quote srcdir.
18075 * gensymlist.sh.in: Likewise. Assert at the compile time that
18076 the symbol table is not empty.
18077
18078 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
18079 * fs/cpio.c (grub_cpio_read): Likewise.
18080
18081 2008-04-01 Pavel Roskin <proski@gnu.org>
18082
18083 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
18084 * disk/host.c (grub_host_open): Likewise.
18085 * disk/loopback.c (grub_loopback_open): Likewise.
18086 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
18087 disk->id as in disk/host.c, not a multi-character constant.
18088
18089 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
18090 later is obsolete, potentially dangerous and sets a bad example.
18091 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
18092 * util/misc.c (grub_util_get_image_size): Likewise.
18093
18094 * disk/loopback.c (options): Improve help for "--partitions".
18095
18096 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
18097 options to align them with the short options, e.g. "echo -e".
18098
18099 2008-03-31 Bean <bean123ch@gmail.com>
18100
18101 * video/reader/png.c (grub_png_data): New member is_16bit and
18102 image_data.
18103 (grub_png_decode_image_header): Detect 16 bit png image.
18104 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
18105 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
18106 (grub_video_reader_png): Release memory occupied by image_data.
18107
18108 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
18109 4096 bytes.
18110 (grub_nfs_mount): Skip the test for sector per cluster.
18111
18112 * include/grub/ntfs.h (MAX_SPC): Removed.
18113
18114 2008-03-31 Bean <bean123ch@gmail.com>
18115
18116 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
18117 (grub_probe_SOURCES): Add fs/afs.c.
18118 (grub_fstest_SOURCES): Likewise.
18119 (afs_mod_SOURCES): New variable.
18120 (afs_mod_CFLAGS): Likewise.
18121 (afs_mod_LDFLAGS): Likewise.
18122
18123 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
18124 (grub_emu_SOURCES): Likewise.
18125
18126 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
18127
18128 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18129
18130 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
18131
18132 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18133
18134 * fs/afs.c: New file.
18135
18136 2008-03-30 Pavel Roskin <proski@gnu.org>
18137
18138 * disk/host.c: Include grub/misc.h to fix a warning.
18139 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
18140 warnings about implicit declarations.
18141
18142 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
18143 variable.
18144 * include/grub/i386/loader.h: Change declaration of
18145 grub_linux_boot() to match what grub_loader_set() expects.
18146 * util/getroot.c (grub_guess_root_device): Return const char* to
18147 fix a warning.
18148 * util/grub-probe.c (probe): Fix a warning about uninitialized
18149 abstraction_name variable.
18150 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
18151 second argument as unused to fix a warning.
18152
18153 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
18154 missing grub_error() call.
18155
18156 * util/update-grub_lib.in: Define datarootdir, since Autoconf
18157 2.60 and newer uses it to define datadir.
18158
18159 * commands/sleep.c: Fix warning about implicit declaration.
18160 * disk/memdisk.c: Likewise.
18161 * loader/aout.c: Likewise.
18162 * loader/i386/bsd_normal.c: Likewise.
18163 * util/grub-probe.c: Likewise.
18164
18165 * commands/i386/cpuid.c (has_longmode): Make static.
18166 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
18167 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
18168
18169 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
18170 GDT. This is more robust, as %ds can change.
18171 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
18172 calling real_to_prot().
18173 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
18174
18175 2008-03-28 Pavel Roskin <proski@gnu.org>
18176
18177 * kern/i386/pc/startup.S: Assert that uncompressed functions
18178 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
18179 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
18180 code, as they push parts of the code (error handlers) beyond
18181 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
18182 code as correctness and size.
18183
18184 2008-03-28 Pavel Roskin <proski@gnu.org>
18185
18186 * kern/i386/pc/startup.S
18187 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
18188 data block address to the real mode, keep offset minimal. This
18189 works around a bug in AWARD BIOS on old Athlon systems, which
18190 makes CD detection hang.
18191
18192 2008-03-26 Pavel Roskin <proski@gnu.org>
18193
18194 * normal/color.c (grub_parse_color_name_pair): Make `name' a
18195 const.
18196 * include/grub/normal.h: Add grub_parse_color_name_pair()
18197 declaration.
18198
18199 2008-03-24 Bean <bean123ch@gmail.com>
18200
18201 * disk/i386/pc/biosdisk.c (cd_start): Removed.
18202 (cd_count): Removed.
18203 (cd_drive): New variable.
18204 (grub_biosdisk_get_drive): Don't check for (cdN) device.
18205 (grub_biosdisk_call_hook): Likewise.
18206 (grub_biosdisk_iterate): Change cdrom detection method.
18207 (grub_biosdisk_open): Replace cd_start with cd_drive.
18208 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
18209 detect cdrom device.
18210
18211 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
18212 Removed.
18213 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
18214 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
18215 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
18216 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
18217 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
18218 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
18219 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
18220 (grub_biosdisk_cdrp): New structure.
18221 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
18222
18223 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
18224
18225 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
18226 device.
18227
18228 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
18229 New function.
18230
18231 2008-03-20 Robert Millan <rmh@aybabtu.com>
18232
18233 Remove 2 TiB limit in ata.mod.
18234 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
18235 (grub_ata_dumpinfo): Print sector count with 0x%llx.
18236 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
18237 grub_uint64_t instead of grub_uint32_t.
18238
18239 2008-03-05 Bean <bean123ch@gmail.com>
18240
18241 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
18242 (grub_multiboot): Set boot device.
18243
18244 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
18245
18246 2008-03-02 Bean <bean123ch@gmail.com>
18247
18248 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
18249 symlink_buffer.
18250
18251 2008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
18252
18253 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
18254 texinfo.tex.
18255
18256 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
18257 modified.
18258
18259 * docs/fdl.texi: New file.
18260
18261 * docs/mdate-sh: New file. Copied from gnulib.
18262 * docs/texinfo.tex: Likewise.
18263
18264 * config.guess: Updated from gnulib.
18265 * install-sh: Likewise.
18266
18267 2008-02-28 Robert Millan <rmh@aybabtu.com>
18268
18269 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
18270 (aout_mod_SOURCES): New variable.
18271 (aout_mod_CFLAGS): Likewise.
18272 (aout_mod_LDFLAGS): Likewise.
18273
18274 * conf/i386-ieee1275.rmk: Likewise.
18275
18276 2008-02-28 Robert Millan <rmh@aybabtu.com>
18277
18278 * util/update-grub.in: Reorganise terminal validity check. Accept
18279 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
18280 Based on suggestion by Franklin PIAT.
18281
18282 2008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
18283
18284 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
18285 function.
18286 * util/getroot.c (grub_util_check_block_device): New function that
18287 returns the given argument if it is a block device and returns NULL else.
18288 * util/grub-probe.c (argument_is_device): New variable.
18289 (probe): Promote device_name from a variable to an argument. Receive
18290 device_name from grub_util_check_block_device() if path is NULL and from
18291 grub_guess_root_device() else. Do not free() device_name anymore.
18292 (options): Introduce new parameter '-d, --device'.
18293 (main): Add description of the new parameter to the help screen.
18294 Rename path variable to argument. Set argument_is_device if the '-d'
18295 option is given. Pass argument to probe() depending on
18296 argument_is_device.
18297
18298 2008-02-24 Bean <bean123ch@gmail.com>
18299
18300 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
18301 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
18302 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
18303 (GRUB_ISO9660_VOLDESC_PART): Likewise.
18304 (GRUB_ISO9660_VOLDESC_END): Likewise.
18305 (grub_iso9660_primary_voldesc): New member escape.
18306 (grub_iso9660_data): New member joliet.
18307 (grub_iso9660_convert_string): New function.
18308 (grub_iso9660_mount): Detect joliet extension.
18309 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
18310 (grub_iso9660_iso9660_label): Likewise.
18311
18312 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
18313 (grub_setup_SOURCES): Add fs/udf.c.
18314 (grub_fstest_SOURCES): Likewise.
18315 (udf_mod_SOURCES): New variable.
18316 (udf_mod_CFLAGS): Likewise.
18317 (udf_mod_LDFLAGS): Likewise.
18318
18319 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
18320 (grub_emu_SOURCES): Likewise.
18321
18322 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
18323
18324 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18325
18326 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
18327
18328 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18329
18330 * fs/udf.c: New file.
18331
18332 2008-02-24 Robert Millan <rmh@aybabtu.com>
18333
18334 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
18335 (normal/lexer.c_DEPENDENCIES): New variables.
18336 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
18337 (normal/lexer.c_DEPENDENCIES): Likewise.
18338 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
18339 (normal/lexer.c_DEPENDENCIES): Likewise.
18340 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
18341 (normal/lexer.c_DEPENDENCIES): Likewise.
18342 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
18343 (normal/lexer.c_DEPENDENCIES): Likewise.
18344 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
18345 (normal/lexer.c_DEPENDENCIES): Likewise.
18346
18347 2008-02-23 Robert Millan <rmh@aybabtu.com>
18348
18349 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
18350 since they were intended to be in hex. This didn't break previously
18351 because of a bug in gpt_partition_map_iterate() (see below).
18352
18353 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
18354 when checking the validity of GPT header.
18355 Remove `partno', since it always provides the same information as `i'.
18356
18357 2008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
18358
18359 * include/grub/efi/time.h: Fix a wrong comment.
18360
18361 2008-02-19 Pavel Roskin <proski@gnu.org>
18362
18363 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
18364 message.
18365
18366 2008-02-19 Bean <bean123ch@gmail.com>
18367
18368 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
18369 (aout_mod_SOURCES): New variable.
18370 (aout_mod_CFLAGS): Likewise.
18371 (aout_mod_LDFLAGS): Likewise.
18372 (_bsd_mod_SOURCES): New variable.
18373 (_bsd_mod_CFLAGS): Likewise.
18374 (_bsd_mod_LDFLAGS): Likewise.
18375 (bsd_mod_SOURCES): New variable.
18376 (bsd_mod_CFLAGS): Likewise.
18377 (bsd_mod_LDFLAGS): Likewise.
18378
18379 * include/grub/aout.h: New file.
18380
18381 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
18382
18383 * include/grub/i386/bsd.h: New file.
18384
18385 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
18386 to make it public.
18387
18388 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
18389 function is called, so that it's possible to change it inside the hook.
18390 (grub_elf64_load): Likewise.
18391 (grub_elf_file): Don't close the file if elf header is not found.
18392 (grub_elf_close): Close the file if grub_elf_file fails (The new
18393 grub_elf_file won't close it).
18394 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
18395 (grub_elf64_size): Likewise.
18396
18397 * kern/i386/loader.S (grub_unix_real_boot): New function.
18398
18399 * loader/aout.c: New file.
18400
18401 * loader/i386/bsd.c: New file.
18402
18403 * loader/i386/bsd_normal.c: New file.
18404
18405 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
18406
18407 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
18408 can test other formats.
18409
18410 2008-02-19 Robert Millan <rmh@aybabtu.com>
18411
18412 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
18413 (grub_gpt_partition_type_empty): Redefine with macro from
18414 `<grub/gpt_partition.h>'.
18415 (gpt_partition_map_iterate): Adjust partition type comparison.
18416
18417 Export `entry' as partmap-specific `part.data' struct.
18418 (grub_gpt_header, grub_gpt_partentry): Move from here ...
18419
18420 * include/grub/gpt_partition.h (grub_gpt_header)
18421 (grub_gpt_partentry): ... to here (new file).
18422
18423 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
18424
18425 (grub_gpt_partition_type_bios_boot): New const variable, defined
18426 with macro from `<grub/gpt_partition.h>'.
18427
18428 (setup): Replace `first_start' with `embed_region', which keeps
18429 track of the embed region (and is partmap-agnostic).
18430
18431 Replace find_first_partition_start() with find_usable_region(),
18432 which finds a usable region for embedding using partmap-specific
18433 knowledge (supports PC/MSDOS and GPT).
18434
18435 Fix all assumptions that the embed region start at sector 1, using
18436 `embed_region.start' from now on. Similarly, use `embed_region.end'
18437 rather than `first_start' to calculate available size.
18438
18439 In grub_util_info() message, replace "into after the MBR" with an
18440 indication of the specific sector our embed region starts at.
18441
18442 2008-02-19 Robert Millan <rmh@aybabtu.com>
18443
18444 * DISTLIST: Replace `commands/ieee1275/halt.c' and
18445 `commands/ieee1275/reboot.c' with `commands/halt.c' and
18446 `commands/reboot.c'.
18447 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
18448 (halt_mod_SOURCES): Likewise.
18449 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
18450 (halt_mod_SOURCES): Likewise.
18451
18452 2008-02-17 Christian Franke <franke@computer.org>
18453
18454 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
18455
18456 2008-02-17 Robert Millan <rmh@aybabtu.com>
18457
18458 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
18459 set `first_start' to 0 for non-PC/MSDOS partition maps.
18460
18461 2008-02-16 Robert Millan <rmh@aybabtu.com>
18462
18463 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
18464 do not assume partition map is PC/MSDOS before performing checks that
18465 are specific to that layout.
18466
18467 2008-02-13 Robert Millan <rmh@aybabtu.com>
18468
18469 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
18470 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
18471 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
18472
18473 2008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
18474
18475 * configure.ac: Only a cosmetic change on the handling of
18476 -fno-stack-protector.
18477
18478 2008-02-12 Alexandre Boeglin <alex@boeglin.org>
18479
18480 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
18481 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
18482 reboot.c.
18483 (grub_install_SOURCES): Add halt.mod and reboot.mod.
18484 (halt_mod_SOURCES): New variable.
18485 (halt_mod_CFLAGS): Likewise.
18486 (halt_mod_LDFLAGS): Likewise.
18487 (reboot_mod_SOURCES): Likewise.
18488 (reboot_mod_CFLAGS): Likewise.
18489 (reboot_mod_LDFLAGS): Likewise.
18490
18491 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
18492 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
18493 reboot.c.
18494 (halt_mod_SOURCES): Likewise.
18495 (reboot_mod_SOURCES): Likewise.
18496
18497 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
18498 commands/i386/pc/reboot.c by commands/reboot.c.
18499 (reboot_mod_SOURCES): Likewise.
18500
18501 * commands/i386/pc/reboot.c: merge this file ...
18502
18503 * commands/ieee1275/reboot.c: ... and this file ...
18504
18505 * commands/reboot.c: ... to this file.
18506 Add some precompiler directive to include the correct header for
18507 each machine.
18508
18509 * commands/ieee1275/halt.c: move this file ...
18510
18511 * commands/halt.c: ... to here.
18512 Add some precompiler directive to include the correct header for
18513 each machine.
18514
18515 * include/grub/efi/efi.h (grub_reboot): New function declaration.
18516 (grub_halt): Likewise.
18517
18518 * kern/efi/efi.c (grub_reboot): New function.
18519 (grub_halt): Likewise.
18520
18521 2008-02-12 Robert Millan <rmh@aybabtu.com>
18522
18523 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
18524 /dev (like it is done for /dev/mapper). This doesn't provide support
18525 for EVMS, but at least it is now easy to identify the problem when it
18526 arises.
18527
18528 2008-02-11 Robert Millan <rmh@aybabtu.com>
18529
18530 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
18531 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
18532 comparing it with -1, not 0.
18533
18534 2008-02-10 Robert Millan <rmh@aybabtu.com>
18535
18536 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
18537 `disk/lvm.c'.
18538 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18539 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
18540
18541 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
18542 `disk/lvm.c' to the end of the list.
18543 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
18544 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
18545
18546 2008-02-10 Robert Millan <rmh@aybabtu.com>
18547
18548 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
18549 grub_print_error() instead. This will let user know why we're entering
18550 rescue mode.
18551 Based on suggestions from Sam Morris.
18552
18553 2008-02-10 Alexandre Boeglin <alex@boeglin.org>
18554
18555 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
18556 on remaining N args, instead of "--" arg N times.
18557
18558 2008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
18559
18560 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
18561 (fill_with_default_glyph): Changed to use unknown_glyph for fill
18562 pattern for unknown glyphs.
18563
18564 2008-02-09 Robert Millan <rmh@aybabtu.com>
18565
18566 * configure.ac: Probe for `help2man'.
18567 * Makefile.in (builddir): New variable.
18568 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
18569 or otherwise add a few flags/options to it.
18570 (install-local): For every executable utility or script that is
18571 installed, invoke $(HELP2MAN) to install a manpage based on --help
18572 output.
18573
18574 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
18575 that it doesn't prevent --help from working in build tree.
18576
18577 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
18578 with `bug-grub@gnu.org'.
18579 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
18580 * util/update-grub.in (usage): New function.
18581 Implement proper argument check, with support for --help and --version
18582 (as well as existing -y).
18583
18584 2008-02-09 Christian Franke <franke@computer.org>
18585
18586 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
18587 avoid overwriting previous output.
18588 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
18589
18590 2008-02-09 Robert Millan <rmh@aybabtu.com>
18591
18592 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
18593 drawing the menu.
18594
18595 2008-02-09 Robert Millan <rmh@aybabtu.com>
18596
18597 * commands/sleep.c: New file.
18598 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
18599 (sleep_mod_SOURCES): New variable.
18600 (sleep_mod_CFLAGS): Likewise.
18601 (sleep_mod_LDFLAGS): Likewise.
18602
18603 2008-02-09 Robert Millan <rmh@aybabtu.com>
18604
18605 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
18606 situations in which we can deduce the RAID size and the superblock
18607 doesn't match it.
18608
18609 2008-02-09 Robert Millan <rmh@aybabtu.com>
18610
18611 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
18612 and return a grub_diskmemberlist_t composed of LVM physical volumes.
18613 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
18614
18615 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
18616 and return a grub_diskmemberlist_t composed of physical array members.
18617 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
18618
18619 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
18620 prototype.
18621 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
18622 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
18623 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
18624
18625 * util/grub-probe.c (probe): Move partmap probing code from here ...
18626 (probe_partmap): ... to here.
18627 (probe): Use probe_partmap() once for the disk we're probing, and
18628 additionally, when such disk contains a memberlist() struct member,
18629 once for each disk that is contained in the structure returned by
18630 memberlist().
18631
18632 2008-02-09 Robert Millan <rmh@aybabtu.com>
18633
18634 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
18635 environment variable to 'all' in order to obtain debug output from
18636 non-util/ code.
18637 * util/i386/pc/grub-setup.c (main): Likewise.
18638
18639 2008-02-08 Robert Millan <rmh@aybabtu.com>
18640
18641 * disk/raid.c (grub_raid_scan_device): Check for
18642 `array->device[sb.this_disk.number]' rather than for
18643 `array->device[sb.this_disk.number]->name', since the latter is not
18644 guaranteed to be accessible.
18645
18646 2008-02-08 Robert Millan <rmh@aybabtu.com>
18647
18648 * disk/raid.c: Update copyright.
18649 * fs/cpio.c: Likewise.
18650 * include/grub/raid.h: Likewise.
18651 * loader/i386/pc/multiboot.c: Likewise.
18652 * util/hostfs.c: Likewise.
18653
18654 2008-02-08 Robert Millan <rmh@aybabtu.com>
18655
18656 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
18657 to a grub_disk_t array.
18658 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
18659 `device[x]'.
18660 (grub_raid_scan_device): Replace `device[x].name' accesses with
18661 `device[x]->name'. Simplify initialization of `array->device[x]'.
18662
18663 2008-02-08 Robert Millan <rmh@aybabtu.com>
18664
18665 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
18666 grub_dprintf() calls.
18667 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
18668 error message.
18669
18670 2008-02-07 Christian Franke <franke@computer.org>
18671
18672 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
18673 instead of fseek and ftell to support large files.
18674 (grub_hostfs_read): Likewise.
18675
18676 2008-02-07 Robert Millan <rmh@aybabtu.com>
18677
18678 Patch from Jeroen Dekkers.
18679 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
18680 failure, since successfully reading all array members might not be
18681 required.
18682
18683 2008-02-06 Robert Millan <rmh@aybabtu.com>
18684
18685 * util/grub-probe.c (probe): Simplify partmap probing (with the
18686 assumption that the first word up to the underscore equals to
18687 the module name).
18688
18689 2008-02-06 Christian Franke <franke@computer.org>
18690
18691 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
18692 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
18693 last block of a cpio or tar stream.
18694 Check for "TRAILER!!!" instead of any empty data
18695 block to detect last block of a cpio stream.
18696 (grub_cpio_dir): Fix constness of variable np.
18697 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
18698 cpio or tar trailer is detected. This fixes a crash
18699 on open of a non existing file.
18700
18701 2008-02-05 Bean <bean123ch@gmail.com>
18702
18703 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
18704 address of entry.
18705 (grub_multiboot_load_elf64): Likewise.
18706 (grub_multiboot): Initialize mbi structure.
18707
18708 * util/grub-fstest.c: Don't include unused header file script.h.
18709
18710 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
18711 of file.
18712 (grub_fstest_SOURCES): Likewise.
18713
18714 2008-02-05 Robert Millan <rmh@aybabtu.com>
18715
18716 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
18717 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
18718 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
18719 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
18720
18721 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
18722 (translation_table): Replace hardcoded values with macros
18723 provided by `<grub/term.h>'.
18724
18725 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
18726 (keyboard_map): Correct/add a few values, with macros provided
18727 by `<grub/term.h>'.
18728 (keyboard_map_shift): Zero values that don't differ from their
18729 `keyboard_map' equivalents.
18730 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
18731 Discard the second scan code that is always sent by Caps lock.
18732 Only use `keyboard_map_shift' when it provides a non-zero value,
18733 otherwise fallback to `keyboard_map'.
18734
18735 2008-02-04 Bean <bean123ch@gmail.com>
18736
18737 * Makefile.in (enable_grub_fstest): New variable.
18738
18739 * conf/common.rmk (grub_fstest_init.lst): New rule.
18740 (grub_fstest_init.h): Likewise.
18741 (grub_fstest_init.c): Likewise.
18742 (util/grub-fstest.c_DEPENDENCIES): New variable.
18743 (grub_fstest_SOURCES): Likewise.
18744
18745 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
18746
18747 * util/grub-fstest.c: New file.
18748
18749 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
18750
18751 Make grub-setup handle a separate root device.
18752
18753 * util/i386/pc/grub-setup.c (setup): Always open the root device,
18754 so that the root device can be compared with the destination
18755 device.
18756 When embedding the core image, if the root and destination devices
18757 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
18758 0xFF.
18759 When not embedding, set ROOT_DRIVE to 0xFF.
18760
18761 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
18762
18763 Add support for having a grub directory in a different drive. This
18764 is still only the data handling part.
18765
18766 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
18767 (codestart): Save %dh in GRUB_ROOT_DRIVE.
18768 (grub_root_drive): New variable.
18769
18770 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
18771 instead of GRUB_BOOT_DRIVE to construct a device name. Set
18772 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
18773 as it was.
18774
18775 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
18776
18777 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
18778 macro.
18779 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
18780
18781 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
18782 is bogus, because PXE booting does not specify any drive
18783 correctly.
18784
18785 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
18786 am not sure if this is really correct.
18787
18788 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
18789 is always identical to the boot drive when booting from a CD.
18790
18791 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
18792 longer.
18793 (root_drive): New variable.
18794 (real_start): Unconditionally set %dh to ROOT_DRIVE.
18795 (setup_sectors): Push %dx right after popping it, because %dh will
18796 be modified later.
18797 (copy_buffer): Restore %dx.
18798
18799 2008-02-03 Robert Millan <rmh@aybabtu.com>
18800
18801 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
18802 use `cdboot.img' for cdrom images.
18803
18804 2008-02-03 Robert Millan <rmh@aybabtu.com>
18805
18806 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
18807 only setup gfxterm when `font' command has succeeded.
18808
18809 2008-02-03 Robert Millan <rmh@aybabtu.com>
18810
18811 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
18812 (grub_rescue_cmd_multiboot_loader)
18813 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
18814
18815 2008-02-03 Pavel Roskin <proski@gnu.org>
18816
18817 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
18818 %edx and %esi from stack only after grub_gate_a20() is called.
18819 grub_gate_a20() clobbers %edx.
18820
18821 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
18822
18823 * configure.ac (AC_INIT): Bumped to 1.96.
18824
18825 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
18826 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
18827 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
18828 video/readers/png.c.
18829
18830 2008-02-03 Bean <bean123ch@gmail.com>
18831
18832 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
18833 (cdboot_img_SOURCES): New variable.
18834 (cdboot_img_ASFLAGS): New variable.
18835 (cdboot_img_LDFLAGS): New variable.
18836
18837 * boot/i386/pc/cdboot.S: New file.
18838
18839 * disk/i386/pc/biosdisk.c (cd_start): New variable.
18840 (cd_count): Likewise.
18841 (grub_biosdisk_get_drive): Add support for cd device.
18842 (grub_biosdisk_call_hook): Likewise.
18843 (grub_biosdisk_iterate): Likewise.
18844 (grub_biosdisk_open): Likewise.
18845 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
18846 (grub_biosdisk_rw): Support reading from cd device.
18847 (GRUB_MOD_INIT): Iterate cd devices.
18848
18849 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
18850 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
18851 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
18852
18853 * kern/i386/pc/init.c (make_install_device): Check for cd device.
18854
18855 2008-02-02 Robert Millan <rmh@aybabtu.com>
18856
18857 * commands/read.c: New file.
18858 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
18859 (read_mod_SOURCES): New variable.
18860 (read_mod_CFLAGS): Likewise.
18861 (read_mod_LDFLAGS): Likewise.
18862
18863 2008-02-02 Robert Millan <rmh@aybabtu.com>
18864
18865 * normal/main.c (grub_normal_execute): Check for `menu->size' when
18866 determining whether menu has to be displayed.
18867
18868 2008-02-02 Marco Gerards <marco@gnu.org>
18869
18870 * bus/pci.c: New file.
18871
18872 * include/grub/pci.h: Likewise.
18873
18874 * include/grub/i386/pc/pci.h: Likewise.
18875
18876 * commands/lspci.c: Likewise.
18877
18878 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
18879 `lspci.mod'.
18880 (pci_mod_SOURCES): New variable.
18881 (pci_mod_CFLAGS): Likewise.
18882 (pci_mod_LDFLAGS): Likewise.
18883 (lspci_mod_SOURCES): Likewise.
18884 (lspci_mod_CFLAGS): Likewise.
18885 (lspci_mod_LDFLAGS): Likewise.
18886
18887 2008-02-02 Bean <bean123ch@gmail.com>
18888
18889 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
18890 (grub_ufs_get_file_block): Fix indirect block calculation problem.
18891
18892 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
18893 (grub_xfs_btree_node): New structure.
18894 (grub_xfs_btree_root): New structure.
18895 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
18896 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
18897 (GRUB_XFS_EXTENT_BLOCK): Likewise.
18898 (GRUB_XFS_EXTENT_SIZE): Likewise.
18899 (grub_xfs_read_block): Support btree format type.
18900 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
18901 Use directory block as basic unit.
18902
18903 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
18904
18905 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
18906 __attribute__ ((__regparm__ (1))).
18907
18908 2008-02-01 Robert Millan <rmh@aybabtu.com>
18909
18910 Correct a mistake in previous commit.
18911
18912 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
18913 top.
18914 (normal/command.c_DEPENDENCIES): New variable.
18915
18916 2008-02-01 Robert Millan <rmh@aybabtu.com>
18917
18918 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
18919 top.
18920 (normal/command.c_DEPENDENCIES): New variable.
18921 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
18922 * conf/i386-ieee1275.rmk: Likewise.
18923 * conf/i386-linuxbios.rmk: Likewise.
18924 * conf/i386-pc.rmk: Likewise.
18925 * conf/sparc64-ieee1275.rmk: Likewise.
18926 * conf/powerpc-ieee1275.rmk: Likewise.
18927 (grub_emu_SOURCES): Add `fs/fshelp.c'.
18928
18929 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
18930
18931 2008-02-01 Robert Millan <rmh@aybabtu.com>
18932
18933 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
18934 call at beginning of function.
18935
18936 2008-01-31 Pavel Roskin <proski@gnu.org>
18937
18938 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
18939 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
18940 (grub_mkrescue_SOURCES): Likewise.
18941 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
18942
18943 2008-01-30 Robert Millan <rmh@aybabtu.com>
18944
18945 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
18946 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
18947 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
18948 (grub_probe_SOURCES): ... to here.
18949
18950 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
18951 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
18952 * conf/i386-ieee1275.rmk: Likewise.
18953 * conf/i386-linuxbios.rmk: Likewise.
18954 * conf/powerpc-ieee1275.rmk: Likewise.
18955
18956 2008-01-30 Tristan Gingold <gingold@free.fr>
18957
18958 * kern/rescue.c: Silently accept empty lines.
18959
18960 2008-01-29 Bean <bean123ch@gmail.com>
18961
18962 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
18963 (real_code_2): Code cleanup and change comment style.
18964 (move_memory): Avoid using 32-bit address mode.
18965
18966 2008-01-29 Bean <bean123ch@gmail.com>
18967
18968 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
18969 (png_mod_SOURCES): New variable.
18970 (png_mod_CFLAGS): Likewise.
18971 (png_mod_LDFLAGS): Likewise.
18972
18973 * video/readers/png.c: New file.
18974
18975 2008-01-28 Robert Millan <rmh@aybabtu.com>
18976
18977 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
18978 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
18979 `ifndef GRUB_MOD_GAP' hack.
18980 * util/elf/grub-mkimage.c (add_segments): Likewise.
18981
18982 2008-01-27 Robert Millan <rmh@aybabtu.com>
18983
18984 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
18985 `GRUB_MOD_GAP' for platforms in which it's not defined.
18986 * util/elf/grub-mkimage.c (add_segments): Likewise.
18987
18988 2008-01-27 Robert Millan <rmh@aybabtu.com>
18989
18990 Get grub-emu to build again (including parallel builds).
18991
18992 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
18993 Split into ...
18994 (util/grub-emu.c_DEPENDENCIES): ... this, ...
18995 (normal/execute.c_DEPENDENCIES): ... this, ...
18996 (grub-emu_DEPENDENCIES): ... and this.
18997
18998 * conf/i386-efi.rmk: Likewise.
18999 * conf/i386-linuxbios.rmk: Likewise.
19000 * conf/i386-ieee1275.rmk: Likewise.
19001 * conf/powerpc-ieee1275.rmk: Likewise.
19002 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
19003
19004 2008-01-27 Robert Millan <rmh@aybabtu.com>
19005
19006 * NEWS: Add a few items.
19007
19008 2008-01-27 Robert Millan <rmh@aybabtu.com>
19009
19010 Fix parallel builds with grub-emu. Based on earlier commit for
19011 grub-probe and grub-setup.
19012
19013 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
19014 (util/grub-emu.c_DEPENDENCIES): ... this.
19015 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
19016 (util/grub-emu.c_DEPENDENCIES): ... this.
19017 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
19018 (util/grub-emu.c_DEPENDENCIES): ... this.
19019 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
19020 (util/grub-emu.c_DEPENDENCIES): ... this.
19021 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
19022 (util/grub-emu.c_DEPENDENCIES): ... this.
19023
19024 2008-01-27 Pavel Roskin <proski@gnu.org>
19025
19026 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
19027 to create a gap between _end and the modules added to the image
19028 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
19029 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
19030 * util/elf/grub-mkimage.c (add_segments): Likewise.
19031
19032 2008-01-26 Pavel Roskin <proski@gnu.org>
19033
19034 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
19035 just return an error.
19036
19037 2008-01-26 Bean <bean123ch@gmail.com>
19038
19039 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
19040 (grub_reiserfs_get_item): Save offset of the next item.
19041 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
19042
19043 2008-01-25 Robert Millan <rmh@aybabtu.com>
19044
19045 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
19046 make all filesystem sources appear together (possibly fixing omissions
19047 while at it).
19048 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
19049 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19050 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
19051 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19052
19053 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
19054 add `kern/file.c'.
19055 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
19056 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
19057 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
19058 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
19059
19060 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
19061 (probe): Add a sanity check to make sure of our ability to read
19062 requested files when probing for filesystem type.
19063
19064 * genmk.rb: Update copyright year (2007).
19065
19066 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
19067 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
19068 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
19069 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
19070 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
19071 : Remove function prototypes.
19072
19073 2008-01-25 Robert Millan <rmh@aybabtu.com>
19074
19075 Revert my previous commits (based on wrong assumption of how grub_errno
19076 works).
19077
19078 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
19079 * kern/file.c (grub_file_open): Likewise.
19080
19081 2008-01-24 Pavel Roskin <proski@gnu.org>
19082
19083 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
19084 that hang if GRUB tries to setup colors.
19085 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
19086 colors for firmwares that don't support it.
19087 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
19088 Recognize Open Hack'Ware, set flags to work around its
19089 limitations.
19090
19091 2008-01-24 Robert Millan <rmh@aybabtu.com>
19092
19093 * kern/file.c (grub_file_open): Do not account previous failures of
19094 unrelated functions when grub_errno is checked for.
19095 Reported by Oleg Strikov.
19096
19097 2008-01-24 Bean <bean123ch@gmail.com>
19098
19099 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
19100 (grub_ufs_sblock): New member volume name.
19101 (grub_ufs_find_file): Fix string copy bug.
19102 (grub_ufs_label): Implement this function properly.
19103
19104 * fs/hfs.c (grub_hfs_cnid_type): New enum.
19105 (grub_hfs_iterate_records): Use the correct file number for extents
19106 and catalog file. Fix problem in next index calculation.
19107 (grub_hfs_find_node): Replace recursive function call with loop.
19108 (grub_hfs_iterate_dir): Replace recursive function call with loop.
19109
19110 2008-01-23 Robert Millan <rmh@aybabtu.com>
19111
19112 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
19113 `<grub/symbol.h>' and `<grub/multiboot.h>'.
19114 (grub_multiboot2_real_boot): New function prototype.
19115
19116 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
19117 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
19118
19119 * kern/i386/ieee1275/init.c (grub_os_area_addr)
19120 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
19121
19122 2008-01-23 Robert Millan <rmh@aybabtu.com>
19123
19124 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
19125 #ifdef'ed out grub_printf().
19126
19127 2008-01-23 Robert Millan <rmh@aybabtu.com>
19128
19129 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
19130 grub_dprintf calls, since they make "debug=all" mode unusable.
19131 (grub_console_checkkey): Likewise.
19132
19133 2008-01-23 Robert Millan <rmh@aybabtu.com>
19134
19135 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
19136 `term/i386/pc/at_keyboard.c'.
19137 (pkglib_MODULES): Add `serial.mod'.
19138 (serial_mod_SOURCES): New variable.
19139 (serial_mod_CFLAGS): Likewise.
19140 (serial_mod_LDFLAGS): Likewise.
19141
19142 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
19143 `<grub/powerpc/ieee1275/console.h>'.
19144 (grub_keyboard_controller_init): New function prototype.
19145 (grub_console_checkkey): Likewise.
19146 (grub_console_getkey): Likewise.
19147
19148 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
19149 keyboard on i386.
19150
19151 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
19152 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
19153
19154 2008-01-23 Robert Millan <rmh@aybabtu.com>
19155
19156 * kern/i386/pc/init.c (make_install_device): When memdisk image is
19157 present, "(memdisk)/boot/grub" becomes the default prefix.
19158
19159 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
19160 a memdisk tarball with all the modules. Add --overlay=DIR option that
19161 allows users to overlay additional files into the image.
19162
19163 2008-01-23 Robert Millan <rmh@aybabtu.com>
19164
19165 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
19166 and `machine/memory.h'.
19167 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
19168 (_multiboot_mod_SOURCES): New variable.
19169 (_multiboot_mod_CFLAGS): Likewise.
19170 (_multiboot_mod_LDFLAGS): Likewise.
19171 (multiboot_mod_SOURCES): Likewise.
19172 (multiboot_mod_CFLAGS): Likewise.
19173 (multiboot_mod_LDFLAGS): Likewise.
19174
19175 * include/grub/i386/ieee1275/loader.h: New file.
19176
19177 * include/grub/i386/ieee1275/machine.h: Likewise.
19178
19179 * include/grub/i386/ieee1275/memory.h: Likewise.
19180
19181 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
19182 variable declaration.
19183 (grub_os_area_size): Likewise.
19184
19185 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
19186 (grub_lower_mem, grub_upper_mem): New variables.
19187 (grub_stop_floppy): New function (just to make
19188 grub_multiboot2_real_boot() happy).
19189
19190 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
19191 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
19192 (grub_stop): New function.
19193 Include `"../realmode.S"' and `"../loader.S"'.
19194
19195 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
19196 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
19197
19198 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
19199 rely on grub_multiboot2_real_boot() for final boot.
19200
19201 2008-01-22 Robert Millan <rmh@aybabtu.com>
19202
19203 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
19204 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
19205 device that doesn't look like an SD card.
19206 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
19207 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
19208 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
19209 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
19210 found.
19211
19212 2008-01-22 Robert Millan <rmh@aybabtu.com>
19213
19214 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
19215 avoid claiming over our own code.
19216
19217 2008-01-22 Bean <bean123ch@gmail.com>
19218
19219 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
19220 (jpeg_mod_SOURCES): New variable.
19221 (jpeg_mod_CFLAGS): Likewise.
19222 (jpeg_mod_LDFLAGS): Likewise.
19223
19224 * video/readers/jpeg.c : New file.
19225
19226 2008-01-22 Bean <bean123ch@gmail.com>
19227
19228 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
19229 there are no more items.
19230
19231 2008-01-21 Robert Millan <rmh@aybabtu.com>
19232
19233 * kern/mm.c (grub_mm_init_region): Improve debug message.
19234
19235 2008-01-21 Robert Millan <rmh@aybabtu.com>
19236
19237 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
19238 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
19239 address.
19240 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
19241 a C macro.
19242 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
19243 Indicates start of upper memory.
19244 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
19245 (generate_image): Abort when image size is big enough to corrupt
19246 upper memory.
19247
19248 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
19249 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
19250 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
19251 instead of hardcoding 0xA0000.
19252 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
19253 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
19254 instead of hardcoding 0xA0000.
19255
19256 2008-01-21 Robert Millan <rmh@aybabtu.com>
19257
19258 * disk/memdisk.c (memdisk_size): New variable.
19259 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
19260 `memdisk_size'.
19261 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
19262 image to dynamic memory.
19263 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
19264 `memdisk_size'. Free memdisk block.
19265
19266 2008-01-21 Robert Millan <rmh@aybabtu.com>
19267
19268 Fix detection of very small filesystems (like tar).
19269
19270 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
19271 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
19272 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
19273 a problem with this disk).
19274
19275 2008-01-21 Robert Millan <rmh@aybabtu.com>
19276
19277 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
19278 on grub_biosdisk_rw_standard() error.
19279
19280 2008-01-21 Robert Millan <rmh@aybabtu.com>
19281
19282 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
19283 recent changes.
19284 * kern/elf.c: Likewise.
19285 * kern/ieee1275/ieee1275.c: Likewise.
19286 * kern/powerpc/ieee1275/openfw.c: Likewise.
19287 * term/ieee1275/ofconsole.c: Likewise.
19288
19289 2008-01-21 Robert Millan <rmh@aybabtu.com>
19290
19291 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
19292
19293 * include/grub/kernel.h (grub_arch_memdisk_addr)
19294 (grub_arch_memdisk_size): Moved from here ...
19295
19296 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
19297 (grub_arch_memdisk_size): ... to here.
19298
19299 2008-01-21 Robert Millan <rmh@aybabtu.com>
19300
19301 Mostly based on bugfix from Bean.
19302
19303 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
19304 attribute with hook() parameter.
19305 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
19306 declaration.
19307 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
19308 attribute with hook() parameter.
19309 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
19310 declaration.
19311
19312 2008-01-21 Robert Millan <rmh@aybabtu.com>
19313
19314 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
19315 (pkglib_MODULES): Add `memdisk.mod'.
19316 (memdisk_mod_SOURCES): New variable.
19317 (memdisk_mod_CFLAGS): Likewise.
19318 (memdisk_mod_LDFLAGS): Likewise.
19319
19320 * disk/memdisk.c: New file.
19321
19322 * include/grub/disk.h (grub_disk_dev_id): Add
19323 `GRUB_DISK_DEVICE_MEMDISK_ID'.
19324
19325 * include/grub/i386/pc/kernel.h
19326 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
19327 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
19328 (grub_kernel_image_size): New variable declaration.
19329 (grub_total_module_size): Likewise.
19330 (grub_memdisk_image_size): Likewise.
19331
19332 * include/grub/i386/pc/memory.h
19333 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
19334
19335 * include/grub/kernel.h: Include `<grub/symbol.h>'.
19336 (grub_arch_memdisk_addr): New variable declaration.
19337 (grub_arch_memdisk_size): Likewise.
19338
19339 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
19340 (grub_arch_memdisk_size): Likewise.
19341
19342 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
19343 (codestart): Replace hardcoded `0x100000' with
19344 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
19345
19346 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
19347 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
19348 not NULL, append the contents of the file it refers to, at the end of
19349 the compressed kernel image. Initialize `grub_memdisk_image_size'
19350 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
19351 (options): Add "memdisk"|'m' option.
19352 (main): Parse --memdisk|-m option, and pass user-provided path as
19353 parameter to generate_image().
19354
19355 2008-01-20 Robert Millan <rmh@aybabtu.com>
19356
19357 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
19358 grub_dprintf() calls from here ...
19359 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
19360
19361 2008-01-20 Robert Millan <rmh@aybabtu.com>
19362
19363 Fix detection of "real mode" when /options/real-mode? doesn't exist.
19364
19365 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
19366 declaration.
19367 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
19368 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
19369 `GRUB_IEEE1275_FLAG_REAL_MODE'.
19370 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
19371 property).
19372 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
19373 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
19374
19375 2008-01-19 Robert Millan <rmh@aybabtu.com>
19376
19377 Get rid of confusing function (superseded by
19378 `grub_ieee1275_get_integer_property')
19379 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
19380 prototype.
19381 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
19382 function.
19383 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
19384 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
19385 in native endianness from grub_ieee1275_get_integer_property().
19386
19387 2008-01-19 Robert Millan <rmh@aybabtu.com>
19388
19389 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
19390 command after "shut-down", since implementations differ on which
19391 the command for halt is.
19392
19393 2008-01-19 Robert Millan <rmh@aybabtu.com>
19394
19395 * include/grub/i386/linuxbios/console.h: Add header protection.
19396 (grub_keyboard_controller_init): New function prototype.
19397 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
19398 (KEYBOARD_COMMAND_READ): Likewise.
19399 (KEYBOARD_COMMAND_WRITE): Likewise.
19400 (KEYBOARD_SCANCODE_SET1): Likewise.
19401 (grub_keyboard_controller_write): New function.
19402 (grub_keyboard_controller_read): Likewise.
19403 (grub_keyboard_controller_init): Likewise.
19404
19405 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
19406 (grub_console_init): On coreboot/LinuxBIOS, call
19407 grub_keyboard_controller_init().
19408
19409 2008-01-19 Robert Millan <rmh@aybabtu.com>
19410
19411 PowerPC changes provided by Pavel Roskin.
19412
19413 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
19414 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
19415 don't rely on cmain() doing it.
19416 * kern/i386/ieee1275/startup.S (_start): Store %eax in
19417 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
19418
19419 2008-01-16 Robert Millan <rmh@aybabtu.com>
19420
19421 * include/grub/i386/linuxbios/memory.h
19422 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
19423 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
19424 receive `table_header' as argument. Instead, probe for it in the
19425 known memory ranges where it can be present.
19426 (grub_available_iterate): Do not pass a fixed `table_header' address
19427 to grub_linuxbios_table_iterate().
19428
19429 2008-01-15 Robert Millan <rmh@aybabtu.com>
19430
19431 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
19432 * conf/i386-ieee1275.rmk: New file.
19433 * include/grub/i386/ieee1275/console.h: Likewise.
19434 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
19435 * include/grub/i386/ieee1275/kernel.h: Likewise.
19436 * include/grub/i386/ieee1275/time.h: Likewise.
19437 * kern/i386/ieee1275/init.c: Likewise.
19438 * kern/i386/ieee1275/startup.S: Likewise.
19439
19440 2008-01-15 Robert Millan <rmh@aybabtu.com>
19441
19442 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
19443 when pointers are 32-bit (but still do set it to one when they are
19444 64-bit).
19445
19446 2008-01-15 Robert Millan <rmh@aybabtu.com>
19447
19448 * include/grub/ieee1275/ieee1275.h
19449 (grub_ieee1275_get_integer_property): New function prototype.
19450
19451 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
19452 (grub_ieee1275_get_integer_property): New function. Wraps around
19453 grub_ieee1275_get_property() to handle endianness.
19454
19455 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
19456 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
19457 where appropriate.
19458 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
19459 (grub_map): Likewise.
19460 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
19461
19462 2008-01-15 Bean <bean123ch@gmail.com>
19463
19464 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
19465 (grub_script_execute_cmdline): Reset grub_errno.
19466
19467 * normal/main.c (read_config_file): Reset grub_errno.
19468
19469 * normal/parse.y (script_init): New.
19470 (script): Move function and menuentry here.
19471 (delimiter): New.
19472 (command): Add delimiter at the end of command.
19473 (commands): Adjust to match the new command.
19474 (commandblock): Remove grub_script_lexer_record_start.
19475 (menuentry): Add grub_script_lexer_record_start, use the new commands.
19476 (if): Use the new commands.
19477
19478 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
19479
19480 2008-01-15 Robert Millan <rmh@aybabtu.com>
19481
19482 * normal/menu.c (run_menu): Move timeout message from here ...
19483 (print_timeout): ... to here.
19484 (run_menu): Use print_timeout() once during initial draw to print
19485 the whole message, and again in every clock tick to update only
19486 the number of seconds.
19487
19488 2008-01-15 Robert Millan <rmh@aybabtu.com>
19489
19490 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
19491 actual size of `available' from grub_ieee1275_get_property(), and
19492 restrict parsing to that bound.
19493
19494 2008-01-15 Christian Franke <franke@computer.org>
19495
19496 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
19497 (argp_program_version): Remove variable.
19498 (argp_program_bug_address): Likewise.
19499 (options): Convert from struct argp_option to struct option.
19500 (struct arguments): Remove.
19501 (parse_opt): Remove.
19502 (usage): New function.
19503 (main): Replace struct args members by simple variables.
19504 Replace argp_parse() by getopt_long().
19505 Add switch to evaluate options.
19506 Add missing "(...)" around root_dev in prefix string.
19507
19508 2008-01-14 Robert Millan <rmh@aybabtu.com>
19509
19510 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
19511 for grub_ieee1275_exit(), in order to improve portability.
19512
19513 2008-01-14 Robert Millan <rmh@aybabtu.com>
19514
19515 * util/grub.d/10_linux.in (prefix): Define.
19516 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
19517
19518 2008-01-13 Pavel Roskin <proski@gnu.org>
19519
19520 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
19521 grub_errno if no errors have been detected.
19522
19523 2008-01-12 Robert Millan <rmh@aybabtu.com>
19524
19525 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
19526 (grub_util_get_dev_abstraction): New function prototype.
19527
19528 * util/getroot.c: Include `<grub/util/getroot.h>'
19529 (grub_util_get_grub_dev): Move detection of abstraction type to ...
19530 (grub_util_get_dev_abstraction): ... here (new function).
19531
19532 * util/grub-probe.c: Convert PRINT_* to an enum. Add
19533 `PRINT_ABSTRACTION'.
19534 (probe): Probe for abstraction type when requested.
19535 (main): Understand `--target=abstraction'.
19536
19537 * util/i386/efi/grub-install.in: Add abstraction module to core
19538 image when it is found to be necessary.
19539 * util/i386/pc/grub-install.in: Likewise.
19540 * util/powerpc/ieee1275/grub-install.in: Likewise.
19541
19542 * util/update-grub_lib.in (font_path): Return system path without
19543 converting to GRUB path.
19544 * util/update-grub.in: Convert system path returned by font_path()
19545 to a GRUB path. Use `grub-probe -t abstraction' to determine what
19546 abstraction module is needed for loading fonts (if any). Export
19547 that as `GRUB_PRELOAD_MODULES'.
19548 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
19549 insmod commands).
19550
19551 2008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
19552
19553 Remove some unused code from reiserfs.
19554
19555 * fs/reiserfs.c (struct grub_reiserfs_key)
19556 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
19557 (struct grub_reiserfs_node_body): Removed.
19558 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
19559 Likewise.
19560 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
19561 Likewise.
19562 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
19563 Likewise.
19564 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
19565 Likewise.
19566 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
19567 Likewise.
19568 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
19569 Likewise.
19570 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
19571 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
19572 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
19573
19574 2008-01-10 Robert Millan <rmh@aybabtu.com>
19575
19576 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
19577 Determines if a file is garbage left by packaging systems, etc.
19578 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
19579 for processing /etc/grub.d scripts.
19580 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
19581 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
19582 as a condition for processing Linux images.
19583
19584 2008-01-10 Pavel Roskin <proski@gnu.org>
19585
19586 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
19587 to compile reiserfs.c on PowerPC.
19588
19589 2008-01-10 Robert Millan <rmh@aybabtu.com>
19590
19591 * kern/device.c (grub_device_iterate): Do not abort device iteration
19592 when one of the devices cannot be opened.
19593 * kern/disk.c (grub_disk_open): Do not account previous failures of
19594 unrelated functions when grub_errno is checked for.
19595
19596 2008-01-08 Robert Millan <rmh@aybabtu.com>
19597
19598 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
19599 `! grub_linux_is_bzimage', change order of address comparison to make
19600 it more intuitive, and improve "too big zImage" error message.
19601
19602 2008-01-08 Robert Millan <rmh@aybabtu.com>
19603
19604 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
19605 `$(update-grub_DATA)'.
19606 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
19607 targets.
19608
19609 2008-01-07 Robert Millan <rmh@aybabtu.com>
19610
19611 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
19612 which instruction is modified by grub-setup during installation
19613 (since it wasn't obvious by only looking at this file).
19614
19615 2008-01-07 Robert Millan <rmh@aybabtu.com>
19616
19617 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
19618 listing actual TODO items.
19619
19620 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
19621
19622 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
19623 correctly.
19624 (grub_reiserfs_get_key_offset): Likewise.
19625 (grub_reiserfs_set_key_offset): Likewise.
19626 (grub_reiserfs_set_key_type): Likewise.
19627 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
19628
19629 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
19630 better to remove the bitfield version completely.
19631
19632 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
19633
19634 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
19635 allocated from the heap, due to the fshelp implementation.
19636 (grub_reiserfs_dir): Free NODE, due to the same reason.
19637
19638 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
19639
19640 Mostly from Vincent Pelletier:
19641
19642 * fs/reiserfs.c: New file.
19643
19644 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
19645 (reiserfs_mod_SOURCES): New variable.
19646 (reiserfs_mod_CFLAGS): Likewise.
19647 (reiserfs_mod_LDFLAGS): Likewise.
19648
19649 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
19650 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
19651 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
19652 normal/color.c.
19653
19654 2008-01-06 Robert Millan <rmh@aybabtu.com>
19655
19656 * normal/color.c: Remove `<grub/env.h>'.
19657
19658 2008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
19659
19660 * include/grub/normal.h: Include <grub/env.h>.
19661
19662 2008-01-05 Robert Millan <rmh@aybabtu.com>
19663
19664 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
19665 usage example with `(hd0,1)'.
19666 Reported by Samuel Thibault.
19667
19668 2008-01-05 Robert Millan <rmh@aybabtu.com>
19669
19670 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
19671 (grub_linux_boot_zimage): Rename to ...
19672 (grub_linux_boot): ... this.
19673 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
19674 (grub_linux_boot_zimage): Conditionalize zImage copy.
19675
19676 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
19677 (grub_linux_boot_bzimage): Remove prototype.
19678 (grub_linux_boot_zimage): Rename to ...
19679 (grub_linux_boot): ... this.
19680
19681 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
19682 (grub_linux_boot): Remove function.
19683
19684 2008-01-05 Robert Millan <rmh@aybabtu.com>
19685
19686 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
19687 (grub_env_write_color_highlight): Likewise.
19688 (grub_wait_after_message): Likewise.
19689
19690 * normal/color.c: New file.
19691
19692 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
19693 (normal_mod_DEPENDENCIES): Likewise.
19694
19695 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
19696 (normal_mod_DEPENDENCIES): Likewise.
19697
19698 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
19699 (normal_mod_DEPENDENCIES): Likewise.
19700
19701 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
19702 (normal_mod_DEPENDENCIES): Likewise.
19703
19704 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
19705 for waiting after a message is printed.
19706 * normal/main.c (read_config_file): Likewise.
19707 (grub_normal_init): Register grub_env_write_color_normal() and
19708 grub_env_write_color_highlight() hooks. Mark `color_normal' and
19709 `color_highlight' variables as global.
19710
19711 * normal/menu.c (grub_wait_after_message): New function.
19712 (grub_color_menu_normal): New variable. Replaces ...
19713 (GRUB_COLOR_MENU_NORMAL): ... this macro.
19714 (grub_color_menu_highlight): New variable. Replaces ...
19715 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
19716 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
19717 `GRUB_TERM_COLOR_STANDARD'.
19718 (print_message): Use `grub_setcolorstate' to reload colors. Rename
19719 `normal_code' and `highlight_code' to `old_color_normal' and
19720 `old_color_highlight', respectively.
19721 (grub_menu_init_page): Update colors when drawing the menu, based on
19722 `menu_color_normal' and `menu_color_highlight' variables.
19723 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
19724 a message is printed.
19725
19726 2008-01-05 Robert Millan <rmh@aybabtu.com>
19727
19728 * kern/env.c (grub_env_context_open): Propagate hooks for global
19729 variables to new context.
19730
19731 * kern/main.c (grub_set_root_dev): Export `root' variable.
19732
19733 2008-01-05 Robert Millan <rmh@aybabtu.com>
19734
19735 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
19736 discs unconditionally, since udev and others have options to provide
19737 them.
19738
19739 2008-01-05 Robert Millan <rmh@aybabtu.com>
19740
19741 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
19742
19743 2008-01-04 Christian Franke <franke@computer.org>
19744
19745 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
19746 of eisa_mmap.
19747
19748 2008-01-03 Pavel Roskin <proski@gnu.org>
19749
19750 * kern/i386/linuxbios/init.c: Put "void" to all function
19751 declarations with no arguments.
19752 * kern/powerpc/ieee1275/init.c: Likewise.
19753 * term/i386/pc/at_keyboard.c: Likewise.
19754 * term/i386/pc/vga_text.c: Likewise.
19755 * util/grub-mkdevicemap.c: Likewise.
19756
19757 2008-01-02 Robert Millan <rmh@aybabtu.com>
19758
19759 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
19760 message when loaded image is out of bounds.
19761 (grub_multiboot_load_elf64): Likewise.
19762
19763 2008-01-02 Pavel Roskin <proski@gnu.org>
19764
19765 * util/grub.d/10_linux.in: Try version without ".old" when
19766 looking for initrd. It's better to use initrd from the newer
19767 kernel of the same version than no initrd at all.
19768
19769 2008-01-01 Robert Millan <rmh@aybabtu.com>
19770
19771 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
19772
19773 2008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
19774
19775 * include/grub/video.h: Added grub_video_unmap_color and
19776 grub_video_get_active_render_target.
19777 (grub_video_adapter): Added unmap_color and get_active_render_target.
19778
19779 * video/video.c: Added grub_video_unmap_color and
19780 grub_video_get_active_render_target.
19781 (grub_video_get_info): Changed method to accept NULL pointer as an
19782 argument to allow detection of active video adapter.
19783
19784 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
19785 grub_video_vbe_unmap_color_int.
19786 Added grub_video_vbe_unmap_color and
19787 grub_video_vbe_get_active_render_target.
19788 (grub_video_vbe_adapter): Added unmap_color and
19789 get_active_render_target.
19790
19791 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
19792 with grub_video_vbe_unmap_color_int.
19793
19794 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
19795 (DEFAULT_NORMAL_COLOR): Likewise.
19796 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
19797 (DEFAULT_FG_COLOR): Removed.
19798 (DEFAULT_BG_COLOR): Likewise.
19799 (DEFAULT_CURSOR_COLOR): Changed value.
19800 (grub_virtual_screen): Added standard_color_setting,
19801 normal_color_setting, highlight_color_setting and term_color.
19802 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
19803 (bitmap_width): Added.
19804 (bitmap_height): Likewise.
19805 (bitmap): Likewise.
19806 (set_term_color): Likewise.
19807 (grub_virtual_screen_setup): Changed to use new terminal coloring
19808 settings.
19809 (grub_gfxterm_init): Added init for bitmap.
19810 (grub_gfxterm_fini): Added destroy for bitmap.
19811 (redraw_screen_rect): Updated to use background bitmap and new
19812 terminal coloring.
19813 (scroll_up): Added optimization for case when there is no bitmap.
19814 (grub_gfxterm_cls): Fixed to use correct background color.
19815 (grub_virtual_screen_setcolorstate): Changed to use new terminal
19816 coloring.
19817 (grub_virtual_screen_setcolor): Likewise.
19818 (grub_virtual_screen_getcolor): Added.
19819 (grub_gfxterm_background_image_cmd): Likewise.
19820 (grub_video_term): Added setcolor and getcolor.
19821 (MOD_INIT): Added registration of background_image command.
19822 (MOD_TERM): Added unregistration for background_image command.
19823
19824 2007-12-30 Pavel Roskin <proski@gnu.org>
19825
19826 * loader/multiboot_loader.c: Fix multiboot command
19827 unregistration. Fix all typos in the word "multiboot".
19828
19829 2007-12-29 Pavel Roskin <proski@gnu.org>
19830
19831 * util/grub.d/10_linux.in: Refactor search for initrd. Add
19832 support for initrd names used in Fedora.
19833
19834 2007-12-26 Bean <bean123ch@gmail.com>
19835
19836 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
19837 (cpio_mod_SOURCES): New variable.
19838 (cpio_mod_CFLAGS): Likewise.
19839 (cpio_mod_LDFLAGS): Likewise.
19840
19841 * fs/cpio.c: New file.
19842
19843 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
19844
19845 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
19846
19847 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
19848
19849 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19850
19851 2007-12-25 Robert Millan <rmh@aybabtu.com>
19852
19853 * include/grub/term.h (struct grub_term): Add `getcolor' function.
19854 (grub_getcolor): New function.
19855
19856 * kern/term.c (grub_getcolor): New function.
19857 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
19858 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
19859 (print_entry): Set normal and highlight colors to
19860 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
19861 respectively, before printing and restore them to old
19862 values afterwards.
19863 (grub_menu_init_page): Likewise. Fill an additional colored space
19864 that would otherwise be left blank.
19865
19866 * term/efi/console.c (grub_console_getcolor): New function.
19867 (struct grub_console_term.getcolor): New variable.
19868 * term/i386/pc/console.c (grub_console_getcolor): New function.
19869 (struct grub_console_term.getcolor): New variable.
19870 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
19871 (struct grub_console_term.getcolor): New variable.
19872
19873 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
19874 (struct grub_console_term.setcolor): Remove variable.
19875 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
19876 (struct grub_console_term.setcolor): Remove variable.
19877 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
19878 (struct grub_console_term.setcolor): Remove variable.
19879 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
19880 (struct grub_console_term.setcolor): Remove variable.
19881
19882 2007-12-25 Robert Millan <rmh@aybabtu.com>
19883
19884 * configure.ac: Search for possible unifont.hex locations, and
19885 define UNIFONT_HEX if found.
19886
19887 * Makefile.in (UNIFONT_HEX): Define variable.
19888 (DATA): Rename to ...
19889 (PKGLIB): ... this. Update all users.
19890 (PKGDATA): New variable.
19891 (pkgdata_IMAGES): Rename to ...
19892 (pkglib_IMAGES): ... this. Update all users.
19893 (pkgdata_MODULES): Rename to ...
19894 (pkglib_MODULES): ... this. Update all users.
19895 (pkgdata_PROGRAMS): Rename to ...
19896 (pkglib_PROGRAMS): ... this. Update all users.
19897 (pkgdata_DATA): Rename to ...
19898 (pkglib_DATA): ... this. Update all users.
19899 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
19900 (unicode.pff, ascii.pff): New rules.
19901 (all-local): Add `$(PKGDATA)' dependency.
19902 (install-local): Process `$(PKGDATA)'.
19903
19904 * util/update-grub_lib.in (font_path): Search for *.pff files in
19905 a few more locations, including `${pkgdata}'.
19906
19907 2007-12-23 Robert Millan <rmh@aybabtu.com>
19908
19909 Patch from Bean <bean123ch@gmail.com>:
19910 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
19911 `size'.
19912
19913 2007-12-21 Bean <bean123ch@gmail.com>
19914
19915 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
19916 (ntfscomp_mod_SOURCES): New variable.
19917 (ntfscomp_mod_CFLAGS): Likewise.
19918 (ntfscomp_mod_LDFLAGS): Likewise.
19919
19920 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
19921 (grub_probe_SOURCES): Likewise.
19922 (grub_emu_SOURCES): Likewise.
19923
19924 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
19925 (grub_emu_SOURCES): Likewise.
19926
19927 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
19928 (grub_emu_SOURCES): Likewise.
19929
19930 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
19931 (grub_emu_SOURCES): Likewise.
19932
19933 * fs/ntfs.c (grub_ntfscomp_func): New variable.
19934 (read_run_list): Renamed to grub_ntfs_read_run_list.
19935 (decomp_nextvcn): Moved to ntfscomp.c.
19936 (decomp_getch): Likewise.
19937 (decomp_get16): Likewise.
19938 (decomp_block): Likewise.
19939 (read_block): Likewise.
19940 (read_data): Partially moved to ntfscomp.c.
19941 (fixup): Change unsigned to grub_uint16_t.
19942 (read_mft): Change unsigned long to grub_uint32_t.
19943 (read_attr): Likewise.
19944 (read_data): Likewise.
19945 (read_run_data): Likewise.
19946 (read_run_list): Likewise.
19947 (read_mft): Likewise.
19948
19949 * fs/ntfscomp.c: New file.
19950
19951 * include/grub/ntfs.h: New file.
19952
19953 2007-12-16 Robert Millan <rmh@aybabtu.com>
19954
19955 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
19956 IDE disk check, since Linux is known to support 20 IDE disks.
19957 Reported by Colin Watson.
19958
19959 2007-12-15 Bean <bean123ch@gmail.com>
19960
19961 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
19962 (lnxboot_img_SOURCES): New variable.
19963 (lnxboot_img_ASFLAGS): Likewise.
19964 (lnxboot_img_LDFLAGS): Likewise.
19965
19966 * boot/i386/pc/lnxboot.S: New file.
19967
19968 2007-11-24 Pavel Roskin <proski@gnu.org>
19969
19970 * configure.ac: Test if '--build-id=none' is supported by the
19971 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
19972 objcopy to generate incorrect binary files (binutils
19973 2.17.50.0.18-1 as shipped by Fedora 8).
19974 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
19975 linking, so that build ID doesn't break the test.
19976
19977 2007-11-24 Pavel Roskin <proski@gnu.org>
19978
19979 * include/grub/i386/time.h: use "void" in the argument list
19980 of grub_cpu_idle().
19981 * include/grub/powerpc/time.h: Likewise.
19982 * include/grub/sparc64/time.h: Likewise.
19983
19984 2007-11-18 Christian Franke <franke@computer.org>
19985
19986 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
19987 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
19988 This fixes the problem that function keys did not work in grub-emu.
19989
19990 2007-11-18 Christian Franke <franke@computer.org>
19991
19992 * disk/host.c (grub_host_open): Remove attribute unused from
19993 name parameter. Add check for "host". This fixes the problem
19994 that grub-emu does not find partitions.
19995
19996 2007-11-18 Christian Franke <franke@computer.org>
19997
19998 * util/hostfs.c (is_dir): New function.
19999 (grub_hostfs_dir): Handle missing dirent.d_type case.
20000 (grub_hostfs_read): Add missing fseek().
20001 (grub_hostfs_label): Clear label pointer. This fixes a crash
20002 of grub-emu on "ls (host)".
20003
20004 2007-11-18 Christian Franke <franke@computer.org>
20005
20006 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
20007 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
20008 to 64 bit boundary by default.
20009
20010 2007-11-18 Bean <bean123ch@gmail.com>
20011
20012 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
20013 (hexdump_mod_SOURCES): New variable.
20014 (hexdump_mod_CFLAGS): Likewise.
20015 (hexdump_mod_LDFLAGS): Likewise.
20016
20017 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
20018
20019 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
20020
20021 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
20022
20023 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
20024
20025 * include/grub/hexdump.h: New file.
20026
20027 * commands/hexdump.c: New file.
20028
20029 2007-11-10 Robert Millan <rmh@aybabtu.com>
20030
20031 * commands/i386/pc/play.c (beep_off): Switch order of arguments
20032 in grub_outb() calls.
20033 (beep_on): Likewise.
20034
20035 2007-11-10 Christian Franke <franke@computer.org>
20036
20037 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
20038 (grub_menu_run): Likewise.
20039
20040 2007-11-10 Robert Millan <rmh@aybabtu.com>
20041
20042 * include/grub/i386/efi/machine.h: New file.
20043 * include/grub/i386/linuxbios/machine.h: Likewise.
20044 * include/grub/i386/pc/machine.h: Likewise.
20045 * include/grub/powerpc/ieee1275/machine.h: Likewise.
20046 * include/grub/sparc64/ieee1275/machine.h: Likewise.
20047
20048 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
20049 (serial_hw_io_addr): New variable.
20050 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
20051 instead of `(unsigned short *) 0x400'.
20052
20053 2007-11-10 Bean <bean123ch@gmail.com>
20054
20055 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
20056
20057 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
20058
20059 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
20060 (vga_mod_SOURCES): Added.
20061 (vga_mod_CFLAGS): Likewise.
20062 (vga_mod_LDFLAGS): Likewise.
20063
20064 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
20065 grub_outb() calls.
20066 (set_map_mask): Likewise.
20067 (set_read_map): Likewise.
20068 (set_read_address): Likewise.
20069 (vga_font): Removed variable.
20070 (get_vga_glyph): Removed function.
20071 (invalidate_char): Likewise.
20072 (write_char): Changed to use grub_font_get_glyph() for font
20073 information.
20074 (grub_vga_putchar): Likewise.
20075 (grub_vga_getcharwidth): Likewise.
20076
20077 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
20078
20079 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
20080 flags.
20081 (pxeboot_img_LDFLAGS): Likewise.
20082 (diskboot_img_LDFLAGS): Likewise.
20083 (kernel_img_LDFLAGS): Likewise.
20084
20085 2007-11-06 Robert Millan <rmh@aybabtu.com>
20086
20087 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
20088 in grub_outb() calls.
20089 (serial_hw_init): Likewise.
20090
20091 2007-11-05 Robert Millan <rmh@aybabtu.com>
20092
20093 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
20094 spaces. Skip non-regular files.
20095
20096 2007-11-05 Robert Millan <rmh@aybabtu.com>
20097
20098 * kern/disk.c (grub_disk_firmware_fini)
20099 (grub_disk_firmware_is_tainted): New variables.
20100
20101 * include/grub/disk.h (grub_disk_firmware_fini)
20102 (grub_disk_firmware_is_tainted): Likewise.
20103
20104 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
20105 (grub_disk_biosdisk_fini): ... to here.
20106 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
20107 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
20108 is set. Register grub_disk_biosdisk_fini() in
20109 `grub_disk_firmware_fini'.
20110
20111 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
20112 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
20113 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
20114 to finish existing firmware disk interface.
20115
20116 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
20117 (ata_mod_SOURCES): New variable.
20118 (ata_mod_CFLAGS): Likewise.
20119 (ata_mod_LDFLAGS): Likewise.
20120
20121 2007-11-05 Robert Millan <rmh@aybabtu.com>
20122
20123 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
20124 (grub_ata_wait): Reimplement using grub_millisleep().
20125
20126 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
20127 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
20128
20129 2007-11-03 Marco Gerards <marco@gnu.org>
20130
20131 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
20132 (CRTC_ADDR_PORT): New macro.
20133 (CRTC_DATA_PORT): Likewise.
20134 (CRTC_CURSOR): Likewise.
20135 (CRTC_CURSOR_ADDR_HIGH): Likewise.
20136 (CRTC_CURSOR_ADDR_LOW): Likewise.
20137 (update_cursor): New function.
20138 (grub_console_real_putchar): Call `update_cursor'.
20139 (grub_console_gotoxy): Likewise.
20140 (grub_console_cls): Set the default color when clearing the
20141 screen.
20142 (grub_console_setcursor): Implemented.
20143
20144 2007-11-03 Marco Gerards <marco@gnu.org>
20145
20146 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
20147 become activate.
20148 (grub_ata_pio_write): Likewise.
20149
20150 (grub_atapi_identify): Wait after issuing an ATA command.
20151 (grub_atapi_packet): Likewise.
20152 (grub_ata_identify): Likewise.
20153 (grub_ata_readwrite): Likewise.
20154
20155 2007-11-03 Marco Gerards <marco@gnu.org>
20156
20157 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
20158 (grub_ata_pio_write): Likewise.
20159 (grub_ata_readwrite): Use `grub_error', instead of
20160 returning `grub_errno'.
20161
20162 2007-11-03 Marco Gerards <marco@gnu.org>
20163
20164 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
20165 grub_ata_pio_write once for every single sector, instead of for
20166 multiple sectors.
20167
20168 2007-10-31 Robert Millan <rmh@aybabtu.com>
20169
20170 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
20171
20172 * conf/i386-linuxbios.rmk: New file.
20173
20174 * kern/i386/pc/hardware.c: Likewise.
20175 * term/i386/pc/at_keyboard.c: Likewise.
20176 * term/i386/pc/vga_text.c: Likewise.
20177
20178 * include/grub/i386/linuxbios/boot.h: Likewise.
20179 * include/grub/i386/linuxbios/console.h: Likewise.
20180 * include/grub/i386/linuxbios/init.h: Likewise.
20181 * include/grub/i386/linuxbios/kernel.h: Likewise.
20182 * include/grub/i386/linuxbios/loader.h: Likewise.
20183 * include/grub/i386/linuxbios/memory.h: Likewise.
20184 * include/grub/i386/linuxbios/serial.h: Likewise.
20185 * include/grub/i386/linuxbios/time.h: Likewise.
20186
20187 * kern/i386/linuxbios/init.c: Likewise.
20188 * kern/i386/linuxbios/startup.S: Likewise.
20189 * kern/i386/linuxbios/table.c: Likewise.
20190
20191 2007-10-31 Marco Gerards <marco@gnu.org>
20192
20193 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
20194 (ata_mod_SOURCES): New variable.
20195 (ata_mod_CFLAGS): Likewise.
20196 (ata_mod_LDFLAGS): Likewise.
20197
20198 * disk/ata.c: New file.
20199
20200 * include/grub/disk.h (grub_disk_dev_id): Add
20201 `GRUB_DISK_DEV_ATA_ID'.
20202
20203 2007-10-31 Robert Millan <rmh@aybabtu.com>
20204
20205 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
20206 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
20207
20208 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
20209 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
20210
20211 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
20212 `<grub/types.h>'.
20213
20214 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
20215
20216 2007-10-27 Robert Millan <rmh@aybabtu.com>
20217
20218 * include/grub/types.h (ULONG_MAX): Define macro.
20219
20220 2007-10-22 Robert Millan <rmh@aybabtu.com>
20221
20222 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
20223 `"../realmode.S"'.
20224 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
20225
20226 2007-10-22 Robert Millan <rmh@aybabtu.com>
20227
20228 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
20229 (pkgdata_MODULES): Add `biosdisk.mod'.
20230 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
20231 variables.
20232
20233 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
20234 (grub_biosdisk_init): Replace with ...
20235 (GRUB_MOD_INIT(biosdisk)): ... this.
20236 (grub_biosdisk_fini): Replace with ...
20237 (GRUB_MOD_FINI(biosdisk)): ... this.
20238
20239 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
20240 (grub_machine_init): Remove call to grub_biosdisk_init().
20241 (grub_machine_fini): Remove call to grub_machine_fini().
20242
20243 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
20244
20245 2007-10-22 Robert Millan <rmh@aybabtu.com>
20246
20247 * include/grub/time.h: New file.
20248 * include/grub/i386/time.h: Likewise.
20249 * include/grub/powerpc/time.h: Likewise.
20250 * include/grub/sparc64/time.h: Likewise.
20251
20252 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
20253 instances to ...
20254 (KERNEL_MACHINE_TIME_HEADER): ... this.
20255 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
20256 instances to ...
20257 (KERNEL_MACHINE_TIME_HEADER): ... this.
20258 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
20259 instances to ...
20260 (KERNEL_MACHINE_TIME_HEADER): ... this.
20261
20262 * kern/i386/efi/init.c: Include `<grub/time.h>'.
20263 (grub_millisleep): New function.
20264 * kern/i386/pc/init.c: Include `<grub/time.h>'.
20265 (grub_millisleep): New function.
20266 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
20267 Remove `grub/machine/time.h' include.
20268 (grub_millisleep): New function.
20269 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
20270 Remove `grub/machine/time.h' include.
20271 (grub_millisleep): New function.
20272
20273 * include/grub/misc.h (grub_div_roundup): New function.
20274
20275 * kern/misc.c: Include `<grub/time.h>'.
20276 (grub_millisleep_generic): New function.
20277
20278 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
20279 Add `time.h'.
20280 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
20281 Add `time.h'.
20282 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
20283 `machine/time.h'. Add `time.h'.
20284 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
20285
20286 2007-10-21 Robert Millan <rmh@aybabtu.com>
20287
20288 * include/grub/misc.h (grub_max): New function.
20289
20290 2007-10-21 Robert Millan <rmh@aybabtu.com>
20291
20292 * util/misc.c (grub_util_info): Call fflush() before returning.
20293
20294 2007-10-20 Robert Millan <rmh@aybabtu.com>
20295
20296 * genmk.rb (Image): Copy `extra_flags' from here ...
20297 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
20298
20299 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
20300 to `argc' and `args' arguments.
20301
20302 2007-10-17 Robert Millan <rmh@aybabtu.com>
20303
20304 * kern/i386/loader.S: New file.
20305
20306 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
20307 * kern/i386/loader.S (grub_linux_prot_size)... to here.
20308 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
20309 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
20310 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
20311 * kern/i386/loader.S (grub_linux_real_addr)... to here.
20312 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
20313 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
20314 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
20315 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
20316 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
20317 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
20318 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
20319 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
20320
20321 * kern/i386/realmode.S: New file.
20322
20323 * kern/i386/pc/startup.S (protstack): Moved from here ...
20324 * kern/i386/realmode.S (protstack)... to here.
20325 * kern/i386/pc/startup.S (gdt): Moved from here ...
20326 * kern/i386/realmode.S (gdt)... to here.
20327 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
20328 * kern/i386/realmode.S (prot_to_real)... to here.
20329
20330 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
20331 `kern/i386/realmode.S'.
20332
20333 2007-10-17 Robert Millan <rmh@aybabtu.com>
20334
20335 * include/grub/i386/loader.h: New file.
20336
20337 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
20338 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
20339 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
20340 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
20341 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
20342 * include/grub/i386/loader.h (grub_linux_prot_size)
20343 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
20344 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
20345 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
20346 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
20347
20348 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
20349
20350 2007-10-15 Robert Millan <rmh@aybabtu.com>
20351
20352 * normal/misc.c (grub_normal_print_device_info): Do not probe for
20353 filesystem when dev->disk is unset.
20354 Do probe for filesystem even when dev->disk->has_partitions is set.
20355 In case a filesystem is found, always report it.
20356 In case it isn't, if dev->disk->has_partitions is set, report that
20357 a partition table was found instead of reporting that no filesystem
20358 could be identified.
20359
20360 2007-10-12 Robert Millan <rmh@aybabtu.com>
20361
20362 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
20363 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
20364
20365 * include/grub/types.h (grub_host_to_target16): New macro.
20366 (grub_host_to_target32): Likewise.
20367 (grub_host_to_target64): Likewise.
20368 (grub_target_to_host16): Likewise.
20369 (grub_target_to_host32): Likewise.
20370 (grub_target_to_host64): Likewise.
20371
20372 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
20373 Renamed from to ...
20374 (GRUB_MOD_ALIGN): ...this. Update all users.
20375
20376 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
20377 grub_host_to_target32.
20378 Replace grub_be_to_cpu32 with grub_target_to_host32.
20379 (load_modules): Likewise.
20380 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
20381 Replace grub_be_to_cpu32 with grub_target_to_host32.
20382 Replace grub_cpu_to_be16 with grub_host_to_target16.
20383 Replace grub_cpu_to_be32 grub_host_to_target32.
20384
20385 2007-10-12 Robert Millan <rmh@aybabtu.com>
20386
20387 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
20388 * util/elf/grub-mkimage.c: ... here.
20389
20390 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
20391 `util/powerpc/ieee1275/grub-mkimage.c'.
20392
20393 2007-10-07 Robert Millan <rmh@aybabtu.com>
20394
20395 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
20396 and make it easier to figure out.
20397 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
20398 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
20399 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
20400 leave us with less than HEAP_MIN_SIZE total heap.
20401 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
20402
20403 2007-10-03 Robert Millan <rmh@aybabtu.com>
20404
20405 * include/grub/i386/io.h: New file.
20406 * commands/i386/pc/play.c (inb): Removed.
20407 (outb): Removed.
20408 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
20409 with grub_outb().
20410 * term/i386/pc/serial.c (inb): Removed.
20411 (outb): Removed.
20412 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
20413 with grub_outb().
20414 * term/i386/pc/vga.c (inb): Removed.
20415 (outb): Removed.
20416 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
20417 with grub_outb().
20418
20419 2007-10-02 Robert Millan <rmh@aybabtu.com>
20420
20421 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
20422 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
20423 Reported by Marcin Kurek.
20424
20425 2007-09-07 Robert Millan <rmh@aybabtu.com>
20426
20427 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
20428 SmartFirmware version updates (as released by Sven Luther), and avoid
20429 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
20430 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
20431 known broken.
20432
20433 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
20434
20435 From Hitoshi Ozeki:
20436 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
20437 when merging two regions.
20438
20439 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
20440
20441 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
20442 * normal/completion.c (grub_normal_do_completion): Likewise.
20443 Reported by Hitoshi Ozeki.
20444
20445 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
20446
20447 Do not use devices at boot in chainloading.
20448
20449 * loader/i386/pc/chainloader.c (boot_drive): New variable.
20450 (boot_part_addr): Likewise.
20451 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
20452 with BOOT_DRIVE and BOOT_PART_ADDR.
20453 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
20454 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
20455
20456 2007-08-29 Robert Millan <rmh@aybabtu.com>
20457
20458 Patch from Simon Peter <dn.tlp@gmx.net>:
20459 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
20460 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
20461 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
20462 util/i386/pc/grub-setup.c_DEPENDENCIES.
20463 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
20464 util/grub-probe.c_DEPENDENCIES.
20465 * conf/powerpc-ieee1275.rmk: Likewise.
20466
20467 2007-08-28 Robert Millan <rmh@aybabtu.com>
20468
20469 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
20470 to tell grub-mkdevicemap how to name devices.
20471 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
20472 feature).
20473
20474 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
20475 util/i386/get_disk_name.c.
20476 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
20477 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
20478 util/ieee1275/get_disk_name.c.
20479
20480 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
20481
20482 * DISTLIST: Add util/i386/get_disk_name.c and
20483 util/ieee1275/get_disk_name.c.
20484
20485 * util/grub-mkdevicemap.c: Replace device naming logic with
20486 grub_util_get_disk_name() calls.
20487
20488 2007-08-20 Robert Millan <rmh@aybabtu.com>
20489
20490 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
20491 (so that it works for both plural and singular quantities).
20492
20493 2007-08-05 Robert Millan <rmh@aybabtu.com>
20494
20495 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
20496 so that [xz] isn't taken into account when determining order.
20497
20498 2007-08-02 Marco Gerards <marco@gnu.org>
20499
20500 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
20501 `include/multiboot2.h', `include/grub/elfload.h',
20502 `include/multiboot.h', `include/grub/multiboot.h',
20503 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
20504 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
20505 `kern/elf.c', `loader/multiboot_loader.c',
20506 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
20507 `loader/i386/pc/multiboot2.c',
20508 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
20509 `util/i386/pc/grub-mkrescue.in'. Remove
20510 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
20511 `include/grub/i386/pc/util/biosdisk.h' and
20512 `include/grub/powerpc/ieee1275/multiboot.h'.
20513
20514 2007-08-02 Bean <bean123ch@gmail.com>
20515
20516 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
20517 (ntfs_mod_SOURCES): New variable.
20518 (ntfs_mod_CFLAGS): Likewise.
20519 (ntfs_mod_LDFLAGS): Likewise.
20520
20521 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
20522 (grub_probe_SOURCES): Likewise.
20523 (grub_emu_SOURCES): Likewise.
20524
20525 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
20526 (grub_emu_SOURCES): Likewise.
20527
20528 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
20529 (grub_emu_SOURCES): Likewise.
20530
20531 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
20532
20533 * fs/ntfs.c: New file.
20534
20535 2007-08-02 Bean <bean123ch@gmail.com>
20536
20537 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
20538
20539 * file.h (grub_file): Likewise.
20540
20541 * fshelp.h (grub_fshelp_read_file): Likewise.
20542
20543 * util/i386/pc/grub-setup.c (setup): Likewise.
20544 (save_first_sector): Likewise.
20545 (save_blocklists): Likewise.
20546
20547 * fs/affs.c (grub_affs_read_file): Likewise.
20548
20549 * fs/ext2.c (grub_ext2_read_file): Likewise.
20550
20551 * fs/fat.c (grub_fat_read_data): Likewise.
20552
20553 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
20554
20555 * fs/hfs.c (grub_hfs_read_file): Likewise.
20556
20557 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
20558
20559 * fs/jfs.c (grub_jfs_read_file): Likewise.
20560
20561 * fs/minix.c (grub_minix_read_file): Likewise.
20562
20563 * fs/sfs.c (grub_sfs_read_file): Likewise.
20564
20565 * fs/ufs.c (grub_ufs_read_file): Likewise.
20566
20567 * fs/xfs.c (grub_xfs_read_file): Likewise.
20568
20569 * command/blocklist.c (read_blocklist): Likewise.
20570 (print_blocklist): Likewise.
20571
20572 2007-08-02 Marco Gerards <marco@gnu.org>
20573
20574 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
20575 `util/hostfs.c'.
20576
20577 * disk/host.c: New file.
20578
20579 * util/hostfs.c: Likewise.
20580
20581 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
20582 return `GRUB_ERR_BAD_FS'.
20583 * fs/sfs.c (grub_sfs_mount): Likewise.
20584 * fs/xfs.c (grub_xfs_mount): Likewise.
20585
20586 * include/grub/disk.h (enum grub_disk_dev_id): Add
20587 `GRUB_DISK_DEVICE_HOST_ID'.
20588
20589 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
20590
20591 2007-07-24 Jerone Young <jerone@gmail.com>
20592
20593 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
20594 modules for compilation.
20595 * conf/powerpc-ieee1275.rmk: Likewise.
20596
20597 * include/multiboot.h: Move multiboot definitions to one file. Rename
20598 many definitions to not get grub specific.
20599 * include/multiboot2.h: Create header with multiboot 2 definitions.
20600 * include/grub/multiboot.h: Header for grub specific function
20601 prototypes and definitions.
20602 * include/grub/multiboot2.h: Likewise.
20603 * include/grub/multiboot_loader.h: Likewise.
20604 * include/grub/i386/pc/multiboot.h: Removed.
20605 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
20606
20607 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
20608 and 2 to allow for one multiboot and module commands.
20609 * loader/multiboot2.c: Add multiboot2 functionality.
20610 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
20611 and definition names.
20612 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
20613 2 functions.
20614 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
20615 ieee1275 specific multiboot2 code.
20616
20617 * kern/i386/pc/startup.S: Change headers and definition names for
20618 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
20619
20620 2007-07-22 Robert Millan <rmh@aybabtu.com>
20621
20622 * geninitheader.sh: Process file specified in first parameter rather
20623 than hardcoding grub_modules_init.lst.
20624 * geninit.sh: Likewise. Also, construct header name dynamically rather
20625 than hardcoding grub_modules_init.h.
20626
20627 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
20628 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
20629 grub_probe_init.[ch] and grub_setup_init.[ch].
20630
20631 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
20632 grub_modules_init.h with grub_emu_init.h.
20633 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
20634 grub_probe_init.[ch] files.
20635 * conf/i386-efi.rmk: Likewise.
20636 * conf/i386-pc.rmk: Likewise.
20637 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
20638 grub_setup_init.[ch] files.
20639
20640 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
20641 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
20642 to initialize modules rather than a list of hardcoded functions.
20643 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
20644 grub_init_all() to initialize modules rather than a list of hardcoded
20645 functions.
20646
20647 2007-07-22 Robert Millan <rmh@aybabtu.com>
20648
20649 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
20650 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
20651
20652 2007-07-22 Robert Millan <rmh@aybabtu.com>
20653
20654 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
20655 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
20656 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
20657 flag when running on SmartFirmware.
20658 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
20659 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
20660 was set.
20661
20662 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
20663 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
20664 rather than decreasing it.
20665
20666 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
20667 there's not enough space to do it, fail in the same way as when it
20668 can't be done because there are no partitions.
20669
20670 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
20671 when nvsetenv failed.
20672
20673 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
20674
20675 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
20676 because this rule is automatically generated.
20677 (grub-mkrescue): Removed for the same reason as above.
20678
20679 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
20680
20681 Migrate to GNU General Public License Version 3.
20682
20683 * COPYING: Replaced with the plain text version of GPLv3.
20684
20685 * config.guess: Updated from gnulib.
20686 * config.sub: Likewise.
20687
20688 * geninit.sh: Output a GPLv3 copyright notice.
20689 * geninitheader.sh: Likewise.
20690 * genmodsrc.sh: Likewise.
20691 * gensymlist.sh.in: Likewise.
20692
20693 * boot/i386/pc/boot.S: Upgraded to GPLv3.
20694 * boot/i386/pc/diskboot.S: Likewise.
20695 * boot/i386/pc/pxeboot.S: Likewise.
20696 * commands/blocklist.c: Likewise.
20697 * commands/boot.c: Likewise.
20698 * commands/cat.c: Likewise.
20699 * commands/cmp.c: Likewise.
20700 * commands/configfile.c: Likewise.
20701 * commands/echo.c: Likewise.
20702 * commands/help.c: Likewise.
20703 * commands/ls.c: Likewise.
20704 * commands/search.c: Likewise.
20705 * commands/terminal.c: Likewise.
20706 * commands/test.c: Likewise.
20707 * commands/videotest.c: Likewise.
20708 * commands/i386/cpuid.c: Likewise.
20709 * commands/i386/pc/halt.c: Likewise.
20710 * commands/i386/pc/play.c: Likewise.
20711 * commands/i386/pc/reboot.c: Likewise.
20712 * commands/i386/pc/vbeinfo.c: Likewise.
20713 * commands/i386/pc/vbetest.c: Likewise.
20714 * commands/ieee1275/halt.c: Likewise.
20715 * commands/ieee1275/reboot.c: Likewise.
20716 * commands/ieee1275/suspend.c: Likewise.
20717 * disk/loopback.c: Likewise.
20718 * disk/lvm.c: Likewise.
20719 * disk/raid.c: Likewise.
20720 * disk/efi/efidisk.c: Likewise.
20721 * disk/i386/pc/biosdisk.c: Likewise.
20722 * disk/ieee1275/ofdisk.c: Likewise.
20723 * font/manager.c: Likewise.
20724 * fs/affs.c: Likewise.
20725 * fs/ext2.c: Likewise.
20726 * fs/fat.c: Likewise.
20727 * fs/fshelp.c: Likewise.
20728 * fs/hfs.c: Likewise.
20729 * fs/hfsplus.c: Likewise.
20730 * fs/iso9660.c: Likewise.
20731 * fs/jfs.c: Likewise.
20732 * fs/minix.c: Likewise.
20733 * fs/sfs.c: Likewise.
20734 * fs/ufs.c: Likewise.
20735 * fs/xfs.c: Likewise.
20736 * hello/hello.c: Likewise.
20737 * include/grub/acorn_filecore.h: Likewise.
20738 * include/grub/arg.h: Likewise.
20739 * include/grub/bitmap.h: Likewise.
20740 * include/grub/boot.h: Likewise.
20741 * include/grub/cache.h: Likewise.
20742 * include/grub/device.h: Likewise.
20743 * include/grub/disk.h: Likewise.
20744 * include/grub/dl.h: Likewise.
20745 * include/grub/elfload.h: Likewise.
20746 * include/grub/env.h: Likewise.
20747 * include/grub/err.h: Likewise.
20748 * include/grub/file.h: Likewise.
20749 * include/grub/font.h: Likewise.
20750 * include/grub/fs.h: Likewise.
20751 * include/grub/fshelp.h: Likewise.
20752 * include/grub/gzio.h: Likewise.
20753 * include/grub/hfs.h: Likewise.
20754 * include/grub/kernel.h: Likewise.
20755 * include/grub/loader.h: Likewise.
20756 * include/grub/lvm.h: Likewise.
20757 * include/grub/misc.h: Likewise.
20758 * include/grub/mm.h: Likewise.
20759 * include/grub/net.h: Likewise.
20760 * include/grub/normal.h: Likewise.
20761 * include/grub/parser.h: Likewise.
20762 * include/grub/partition.h: Likewise.
20763 * include/grub/pc_partition.h: Likewise.
20764 * include/grub/raid.h: Likewise.
20765 * include/grub/rescue.h: Likewise.
20766 * include/grub/script.h: Likewise.
20767 * include/grub/setjmp.h: Likewise.
20768 * include/grub/symbol.h: Likewise.
20769 * include/grub/term.h: Likewise.
20770 * include/grub/terminfo.h: Likewise.
20771 * include/grub/tparm.h: Likewise.
20772 * include/grub/types.h: Likewise.
20773 * include/grub/video.h: Likewise.
20774 * include/grub/efi/api.h: Likewise.
20775 * include/grub/efi/chainloader.h: Likewise.
20776 * include/grub/efi/console.h: Likewise.
20777 * include/grub/efi/console_control.h: Likewise.
20778 * include/grub/efi/disk.h: Likewise.
20779 * include/grub/efi/efi.h: Likewise.
20780 * include/grub/efi/pe32.h: Likewise.
20781 * include/grub/efi/time.h: Likewise.
20782 * include/grub/i386/linux.h: Likewise.
20783 * include/grub/i386/setjmp.h: Likewise.
20784 * include/grub/i386/types.h: Likewise.
20785 * include/grub/i386/efi/kernel.h: Likewise.
20786 * include/grub/i386/efi/loader.h: Likewise.
20787 * include/grub/i386/efi/time.h: Likewise.
20788 * include/grub/i386/pc/biosdisk.h: Likewise.
20789 * include/grub/i386/pc/boot.h: Likewise.
20790 * include/grub/i386/pc/chainloader.h: Likewise.
20791 * include/grub/i386/pc/console.h: Likewise.
20792 * include/grub/i386/pc/init.h: Likewise.
20793 * include/grub/i386/pc/kernel.h: Likewise.
20794 * include/grub/i386/pc/loader.h: Likewise.
20795 * include/grub/i386/pc/memory.h: Likewise.
20796 * include/grub/i386/pc/multiboot.h: Likewise.
20797 * include/grub/i386/pc/serial.h: Likewise.
20798 * include/grub/i386/pc/time.h: Likewise.
20799 * include/grub/i386/pc/vbe.h: Likewise.
20800 * include/grub/i386/pc/vbeblit.h: Likewise.
20801 * include/grub/i386/pc/vbefill.h: Likewise.
20802 * include/grub/i386/pc/vbeutil.h: Likewise.
20803 * include/grub/i386/pc/vga.h: Likewise.
20804 * include/grub/ieee1275/ieee1275.h: Likewise.
20805 * include/grub/ieee1275/ofdisk.h: Likewise.
20806 * include/grub/powerpc/libgcc.h: Likewise.
20807 * include/grub/powerpc/setjmp.h: Likewise.
20808 * include/grub/powerpc/types.h: Likewise.
20809 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
20810 * include/grub/powerpc/ieee1275/console.h: Likewise.
20811 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
20812 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
20813 * include/grub/powerpc/ieee1275/loader.h: Likewise.
20814 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
20815 * include/grub/powerpc/ieee1275/time.h: Likewise.
20816 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
20817 * include/grub/sparc64/libgcc.h: Likewise.
20818 * include/grub/sparc64/setjmp.h: Likewise.
20819 * include/grub/sparc64/types.h: Likewise.
20820 * include/grub/sparc64/ieee1275/console.h: Likewise.
20821 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
20822 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
20823 * include/grub/sparc64/ieee1275/time.h: Likewise.
20824 * include/grub/util/biosdisk.h: Likewise.
20825 * include/grub/util/getroot.h: Likewise.
20826 * include/grub/util/lvm.h: Likewise.
20827 * include/grub/util/misc.h: Likewise.
20828 * include/grub/util/raid.h: Likewise.
20829 * include/grub/util/resolve.h: Likewise.
20830 * io/gzio.c: Likewise.
20831 * kern/device.c: Likewise.
20832 * kern/disk.c: Likewise.
20833 * kern/dl.c: Likewise.
20834 * kern/elf.c: Likewise.
20835 * kern/env.c: Likewise.
20836 * kern/err.c: Likewise.
20837 * kern/file.c: Likewise.
20838 * kern/fs.c: Likewise.
20839 * kern/loader.c: Likewise.
20840 * kern/main.c: Likewise.
20841 * kern/misc.c: Likewise.
20842 * kern/mm.c: Likewise.
20843 * kern/parser.c: Likewise.
20844 * kern/partition.c: Likewise.
20845 * kern/rescue.c: Likewise.
20846 * kern/term.c: Likewise.
20847 * kern/efi/efi.c: Likewise.
20848 * kern/efi/init.c: Likewise.
20849 * kern/efi/mm.c: Likewise.
20850 * kern/i386/dl.c: Likewise.
20851 * kern/i386/efi/init.c: Likewise.
20852 * kern/i386/efi/startup.S: Likewise.
20853 * kern/i386/pc/init.c: Likewise.
20854 * kern/i386/pc/lzo1x.S: Likewise.
20855 * kern/i386/pc/startup.S: Likewise.
20856 * kern/ieee1275/ieee1275.c: Likewise.
20857 * kern/powerpc/cache.S: Likewise.
20858 * kern/powerpc/dl.c: Likewise.
20859 * kern/powerpc/ieee1275/cmain.c: Likewise.
20860 * kern/powerpc/ieee1275/crt0.S: Likewise.
20861 * kern/powerpc/ieee1275/init.c: Likewise.
20862 * kern/powerpc/ieee1275/openfw.c: Likewise.
20863 * kern/sparc64/cache.S: Likewise.
20864 * kern/sparc64/dl.c: Likewise.
20865 * kern/sparc64/ieee1275/init.c: Likewise.
20866 * kern/sparc64/ieee1275/openfw.c: Likewise.
20867 * loader/efi/chainloader.c: Likewise.
20868 * loader/efi/chainloader_normal.c: Likewise.
20869 * loader/i386/efi/linux.c: Likewise.
20870 * loader/i386/efi/linux_normal.c: Likewise.
20871 * loader/i386/pc/chainloader.c: Likewise.
20872 * loader/i386/pc/chainloader_normal.c: Likewise.
20873 * loader/i386/pc/linux.c: Likewise.
20874 * loader/i386/pc/linux_normal.c: Likewise.
20875 * loader/i386/pc/multiboot.c: Likewise.
20876 * loader/i386/pc/multiboot_normal.c: Likewise.
20877 * loader/powerpc/ieee1275/linux.c: Likewise.
20878 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
20879 * normal/arg.c: Likewise.
20880 * normal/cmdline.c: Likewise.
20881 * normal/command.c: Likewise.
20882 * normal/completion.c: Likewise.
20883 * normal/execute.c: Likewise.
20884 * normal/function.c: Likewise.
20885 * normal/lexer.c: Likewise.
20886 * normal/main.c: Likewise.
20887 * normal/menu.c: Likewise.
20888 * normal/menu_entry.c: Likewise.
20889 * normal/misc.c: Likewise.
20890 * normal/parser.y: Likewise.
20891 * normal/script.c: Likewise.
20892 * normal/i386/setjmp.S: Likewise.
20893 * normal/powerpc/setjmp.S: Likewise.
20894 * normal/sparc64/setjmp.S: Likewise.
20895 * partmap/acorn.c: Likewise.
20896 * partmap/amiga.c: Likewise.
20897 * partmap/apple.c: Likewise.
20898 * partmap/gpt.c: Likewise.
20899 * partmap/pc.c: Likewise.
20900 * partmap/sun.c: Likewise.
20901 * term/gfxterm.c: Likewise.
20902 * term/terminfo.c: Likewise.
20903 * term/efi/console.c: Likewise.
20904 * term/i386/pc/console.c: Likewise.
20905 * term/i386/pc/serial.c: Likewise.
20906 * term/i386/pc/vesafb.c: Likewise.
20907 * term/i386/pc/vga.c: Likewise.
20908 * term/ieee1275/ofconsole.c: Likewise.
20909 * util/biosdisk.c: Likewise.
20910 * util/console.c: Likewise.
20911 * util/genmoddep.c: Likewise.
20912 * util/getroot.c: Likewise.
20913 * util/grub-emu.c: Likewise.
20914 * util/grub-mkdevicemap.c: Likewise.
20915 * util/grub-probe.c: Likewise.
20916 * util/lvm.c: Likewise.
20917 * util/misc.c: Likewise.
20918 * util/raid.c: Likewise.
20919 * util/resolve.c: Likewise.
20920 * util/update-grub.in: Likewise.
20921 * util/update-grub_lib.in: Likewise.
20922 * util/grub.d/00_header.in: Likewise.
20923 * util/grub.d/10_hurd.in: Likewise.
20924 * util/grub.d/10_linux.in: Likewise.
20925 * util/i386/efi/grub-install.in: Likewise.
20926 * util/i386/efi/grub-mkimage.c: Likewise.
20927 * util/i386/pc/grub-install.in: Likewise.
20928 * util/i386/pc/grub-mkimage.c: Likewise.
20929 * util/i386/pc/grub-mkrescue.in: Likewise.
20930 * util/i386/pc/grub-setup.c: Likewise.
20931 * util/i386/pc/misc.c: Likewise.
20932 * util/powerpc/ieee1275/grub-install.in: Likewise.
20933 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
20934 * util/powerpc/ieee1275/misc.c: Likewise.
20935 * video/bitmap.c: Likewise.
20936 * video/video.c: Likewise.
20937 * video/i386/pc/vbe.c: Likewise.
20938 * video/i386/pc/vbeblit.c: Likewise.
20939 * video/i386/pc/vbefill.c: Likewise.
20940 * video/i386/pc/vbeutil.c: Likewise.
20941 * video/readers/tga.c: Likewise.
20942
20943 2007-07-02 Robert Millan <rmh@aybabtu.com>
20944
20945 * conf/i386-efi.rmk: Replace obsolete reference to
20946 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
20947 with util/getroot.c.
20948 * conf/powerpc-ieee1275.rmk: Likewise.
20949 * conf/sparc64-ieee1275.rmk: Likewise.
20950
20951 * util/grub-emu.c (main): Fix unchecked pointer handling.
20952
20953 2007-07-02 Robert Millan <rmh@aybabtu.com>
20954
20955 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
20956 invocation to fail, in order to support partition-less media.
20957
20958 * util/i386/pc/grub-install.in: Likewise.
20959
20960 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
20961 which fs or partmap modules are needed (akin to its sister scripts).
20962
20963 Also use grub-probe to get rid of unportable /proc/mounts check.
20964
20965 Print the same informational message that the other scripts do, before
20966 exiting.
20967
20968 2007-06-23 Robert Millan <rmh@aybabtu.com>
20969
20970 * util/update-grub_lib.in (font_path): New function. Determine whether
20971 a font file can be found and, if so, echo the GRUB path to it.
20972
20973 * util/update-grub.in: Handle multiple terminals depending on user
20974 input, platform availability and font file presence. Propagate
20975 variables of our findings to /etc/grub.d/ children.
20976
20977 * util/grub.d/00_header.in: Handle multiple terminals, based on
20978 environment setup by update-grub.
20979
20980 2007-06-23 Robert Millan <rmh@aybabtu.com>
20981
20982 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
20983
20984 2007-06-21 Robert Millan <rmh@aybabtu.com>
20985
20986 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
20987 indicate end of data section in kernel image.
20988 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
20989 GRUB_KERNEL_MACHINE_DATA_END.
20990
20991 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
20992 space for it.
20993 * kern/i386/efi/startup.S: Likewise.
20994
20995 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
20996 during image generation. Implement --prefix option to override this
20997 patch.
20998 * util/i386/efi/grub-mkimage.c: Likewise.
20999
21000 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
21001 code to make path relative to its root into a separate function.
21002
21003 * util/i386/pc/grub-install.in: Use newly provided
21004 make_system_path_relative_to_its_root() to convert ${grubdir}, then
21005 pass the result to grub-install --prefix.
21006
21007 2007-06-13 Robert Millan <rmh@aybabtu.com>
21008
21009 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
21010 DEFAULT_DEVICE_MAP.
21011 * util/grub-emu.c: Use above definitions from misc.h instead of
21012 defining them.
21013 * util/grub-mkdevicemap.c: Likewise.
21014 * util/i386/pc/grub-setup.c: Likewise.
21015 * util/grub-probe.c: Likewise.
21016 (probe): Abort with grub_util_error() when either
21017 grub_guess_root_device or grub_util_get_grub_dev fails.
21018
21019 2007-06-12 Robert Millan <rmh@aybabtu.com>
21020
21021 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
21022 "pager" assignment.
21023 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
21024 "pcdata".
21025 * util/grub-probe.c (probe): Likewise for "drive_name".
21026
21027 2007-06-11 Robert Millan <rmh@aybabtu.com>
21028
21029 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
21030 not just the cdrom one.
21031
21032 2007-06-11 Robert Millan <rmh@aybabtu.com>
21033
21034 * util/i386/pc/grub-mkrescue.in: Add "set -e".
21035 Add --pkglibdir=DIR option to override pkglibdir.
21036 Mention --image-type=TYPE in help output.
21037 Fix --grub-mkimage (it was a no-op).
21038 Abort gracefully when no parameter is given.
21039
21040 2007-06-11 Robert Millan <rmh@aybabtu.com>
21041
21042 * util/i386/pc/grub-mkrescue.in: New file.
21043 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
21044 * Makefile.in: Handle bin_SCRIPTS.
21045
21046 2007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
21047
21048 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
21049 list of video modes.
21050
21051 2007-06-06 Robert Millan <rmh@aybabtu.com>
21052
21053 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
21054 file doesn't exist, or if it is in a filesystem grub can't read.
21055
21056 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
21057 not abort if GRUB_DRIVE could not be defined. Rearrange generated
21058 header comment to fit in 80 columns when the variables are resolved.
21059
21060 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
21061 could be identified by update-grub. Remove redundant check for
21062 unifont.pff existence (since convert_system_path_to_grub_path now
21063 handles that).
21064
21065 2007-06-04 Robert Millan <rmh@aybabtu.com>
21066
21067 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
21068
21069 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
21070
21071 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
21072
21073 2007-06-04 Robert Millan <rmh@aybabtu.com>
21074
21075 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
21076
21077 * include/grub/partition.h: Declare grub_apple_partition_map_init and
21078 grub_apple_partition_map_fini.
21079
21080 * util/biosdisk.c
21081 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
21082 to access >2 TiB disks).
21083
21084 Print disk->total_sectors with %llu instead of %lu, since this
21085 variable is always 64-bit (prevents wrong disk size from being displayed
21086 on either >2 TiB disk or big-endian CPU).
21087
21088 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
21089 into a generic case that supports all (sane) partition maps.
21090
21091 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
21092 breaks big-endian.
21093
21094 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
21095 and grub_apple_partition_map_fini() after that.
21096
21097 2007-06-01 Robert Millan <rmh@aybabtu.com>
21098
21099 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
21100
21101 * util/grub.d/00_header.in: Only enable gfxterm when
21102 convert_system_path_to_grub_path() succeeds.
21103
21104 2007-05-20 Robert Millan <rmh@aybabtu.com>
21105
21106 * util/update-grub_lib.in: New file.
21107 * DISTLIST: Add update-grub_lib.in.
21108 * conf/common.rmk: Generate update-grub_lib and install it in
21109 $(lib_DATA).
21110 * Makefile.in: Add install routine for $(lib_DATA).
21111
21112 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
21113 function provided by update-grub_lib to support arbitrary paths of
21114 unifont.pff.
21115 * util/update-grub.in: Use convert_system_path_to_grub_path() to
21116 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
21117
21118 2007-05-19 Robert Millan <rmh@aybabtu.com>
21119
21120 * commands/i386/cpuid.c: New module.
21121 * DISTLIST: Add it.
21122 * conf/i386-efi.rmk: Enable cpuid.mod.
21123 * conf/i386-pc.rmk: Likewise.
21124
21125 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
21126
21127 * kern/disk.c (grub_disk_read): Check return value of
21128 grub_realloc().
21129
21130 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
21131
21132 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
21133 arrays.
21134 * disk/raid.c (grub_raid_open): Likewise.
21135
21136 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
21137
21138 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
21139 stack instead of on the heap.
21140
21141 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
21142 before doing a read on it.
21143
21144 * configure.ac: Only use -fno-stack-protector for the target
21145 environment.
21146
21147 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
21148
21149 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
21150 __attribute_ ((unused)) to mode_type argument.
21151
21152 * util/getroot.c (grub_guess_root_device): Fix #endif.
21153
21154 * kern/misc.c (memcmp): Fix prototype.
21155
21156 * include/grub/partition.h [GRUB_UTIL]
21157 (grub_gpt_partition_map_init): Add prototype.
21158 (grub_gpt_partition_map_fini): Likewise.
21159
21160 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
21161 at the right place.
21162
21163 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
21164 (grub_fat_read_data): Likewise.
21165 (grub_fat_find_dir): Likewise.
21166
21167 * font/manager.c (find_glyph): Make table a const.
21168 (grub_font_get_glyph): Remove bitmap from if statement.
21169
21170 2007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
21171
21172 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
21173 code, first search for device in /dev/mapper, then in /dev.
21174 (grub_util_get_grub_dev): New function.
21175 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
21176 prototype.
21177 * util/grub-probe.c (probe): Remove check for RAID, call
21178 grub_util_get_grub_dev() instead of
21179 grub_util_biosdisk_get_grub_dev().
21180 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
21181 grub_util_biosdisk_get_grub_dev().
21182 * util/i386/pc/grub-setup.c (main): Likewise.
21183
21184 2007-05-16 Robert Millan <rmh@aybabtu.com>
21185
21186 * DISTLIST: Update for the latest changes.
21187 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
21188 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
21189 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
21190 grub/util/biosdisk.h.
21191 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
21192 grub/util/biosdisk.h.
21193
21194 2007-05-16 Robert Millan <rmh@aybabtu.com>
21195
21196 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
21197
21198 2007-05-16 Robert Millan <rmh@aybabtu.com>
21199
21200 * util/i386/efi/grub-install.in: New.
21201 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
21202 newly added grub-install.
21203 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
21204 include.
21205 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
21206 grub/util/biosdisk.h.
21207 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
21208 grub/util/biosdisk.h.
21209
21210 2007-05-16 Robert Millan <rmh@aybabtu.com>
21211
21212 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
21213 * include/grub/util/biosdisk.h: ... here.
21214 * util/i386/pc/biosdisk.c: Moved to ...
21215 * util/biosdisk.c: ... here.
21216 * util/i386/pc/getroot.c: Moved to ...
21217 * util/getroot.c: ... here.
21218 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
21219 * util/grub-mkdevicemap.c: ... here.
21220 * util/i386/pc/grub-probe.c: Moved to ...
21221 * util/grub-probe.c: ... here.
21222
21223 2007-05-15 Robert Millan <rmh@aybabtu.com>
21224
21225 * util/update-grub.in: Remove duplicated line in grub.cfg header
21226 message.
21227
21228 2007-05-13 Robert Millan <rmh@aybabtu.com>
21229
21230 * util/update-grub.in: Fix a few assumptions about the devices holding
21231 /, /boot and /boot/grub being the same.
21232 * util/grub.d/00_header.in: Likewise.
21233 * util/grub.d/10_hurd.in: Likewise.
21234 * util/grub.d/10_linux.in: Likewise.
21235
21236 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
21237 patterns. Use that to define the `.old' suffix as older than `'.
21238
21239 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
21240
21241 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
21242 the grub.cfg header message.
21243
21244 2007-05-11 Robert Millan <rmh@aybabtu.com>
21245
21246 * util/update-grub.in: Create device.map if it doesn't already exist,
21247 before attempting to run grub-probe.
21248 Check for grub-probe and grub-mkdevicemap with the same code
21249 grub-install is using.
21250 Remove test mode.
21251
21252 2007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
21253
21254 * Makefile.in: Add the datarootdir autoconf variable.
21255
21256 2007-05-09 Robert Millan <rmh@aybabtu.com>
21257
21258 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
21259 fail gracefully if dev->disk->partition == NULL.
21260
21261 2007-05-07 Robert Millan <rmh@aybabtu.com>
21262
21263 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
21264 determine partition map module.
21265 * util/i386/pc/grub-install.in: Use this feature to decide which
21266 partition module to load, instead of hardcoding pc and gpt.
21267
21268 2007-05-07 Robert Millan <rmh@aybabtu.com>
21269
21270 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
21271 source directory differs from build directory.
21272
21273 2007-05-05 Robert Millan <rmh@aybabtu.com>
21274
21275 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
21276 initialisation.
21277
21278 2007-05-05 Robert Millan <rmh@aybabtu.com>
21279
21280 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
21281
21282 2007-05-05 Robert Millan <rmh@aybabtu.com>
21283
21284 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
21285 command-line arguments via ${GRUB_CMDLINE_LINUX}.
21286
21287 2007-05-05 Robert Millan <rmh@aybabtu.com>
21288
21289 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
21290 (grub_probe_SOURCES): Likewise.
21291 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
21292 GPT and initialize dos_part and bsd_part accordingly.
21293 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
21294 install_bsd_part.
21295 (main): Activate gpt module for use during partition identification,
21296 and deactivate it afterwards.
21297 * util/i386/pc/grub-install.in: Add gpt module to core.img.
21298 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
21299 partition identification, and deactivate it afterwards.
21300
21301 2007-05-05 Robert Millan <rmh@aybabtu.com>
21302
21303 * term/i386/pc/console.c (grub_console_fini): Call
21304 grub_term_set_current() before grub_term_unregister().
21305
21306 2007-05-04 Robert Millan <rmh@aybabtu.com>
21307
21308 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
21309 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
21310 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
21311 and update-grub_DATA.
21312 * conf/common.rmk: Build and install update-grub components.
21313 * conf/common.mk: Regenerate.
21314 * util/update-grub.in: New. Core of update-grub.
21315 * util/grub.d/00_header.in: New. Generates grub.cfg header.
21316 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
21317 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
21318 * util/grub.d/README: New. Document grub.d directory layout.
21319
21320 2007-05-01 Robert Millan <rmh@aybabtu.com>
21321
21322 * util/grub-emu.c: Move initialization functions
21323 grub_util_biosdisk_init() and grub_init_all() before
21324 grub_util_biosdisk_get_grub_dev(), which relies on them.
21325
21326 2007-04-19 Robert Millan <rmh@aybabtu.com>
21327
21328 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
21329 it is used later.
21330
21331 2007-04-18 Jerone Young <jerone@gmail.com>
21332
21333 * kernel/elf.c: Add missing parenthesis for conditional statement
21334 stanza.
21335
21336 2007-04-10 Jerone Young <jerone@gmail.com>
21337
21338 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
21339 continue on and look for device node with real device name.
21340
21341 2007-04-10 Jerone Young <jerone@gmail.com>
21342
21343 * configure.ac: Add argument for autoconf to use transformation
21344 ability.
21345 * Makefile.in: Add autoconf package transformation code.
21346 * util/i386/pc/grub-install.in: Likewise.
21347 * util/powerpc/ieee1275/grub-install.in: Likewise.
21348
21349 2007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
21350
21351 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
21352 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
21353 (EXT2_REVISION): Likewise.
21354 (EXT2_INODE_SIZE): Likewise.
21355 (struct grub_ext2_block_group): Added a missing member
21356 "used_dirs".
21357 (grub_ext2_read_inode): Divide by the inode size in a superblock
21358 instead of 128 to obtain INODES_PER_BLOCK.
21359 Use the macro EXT2_INODE_SIZE instead of directly using
21360 SBLOCK->INODE_SIZE.
21361
21362 2007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
21363
21364 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
21365 superblock instead of the structure size to compute an
21366 offset. This fixes the problem that GRUB could not read a
21367 filesystem when inode size is different from 128-byte.
21368
21369 2007-03-05 Marco Gerards <marco@gnu.org>
21370
21371 * normal/main.c (read_config_file): When "menu" is not set, create
21372 an initial context.
21373
21374 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
21375
21376 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
21377 (HEAP_LIMIT): New macro.
21378 (grub_claim_heap): Claim memory up to `heaplimit'.
21379
21380 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
21381
21382 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
21383 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
21384 (_start): Likewise.
21385 (grub_arch_modules_addr): Return address after `_end'.
21386 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
21387 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
21388 (add_segments): Calculate `_end' from phdr size and location.
21389 (ALIGN_UP): Moved to ...
21390 * include/grub/misc.h: here.
21391 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
21392 New macro.
21393 (GRUB_IEEE1275_MODULE_BASE): Removed.
21394
21395 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
21396
21397 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
21398 loop boundary.
21399
21400 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
21401
21402 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
21403 All users updated.
21404 (grub_elf64_load_hook_t): Likewise.
21405 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
21406 debug output.
21407
21408 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
21409
21410 * kern/mm.c: Update copyright.
21411 (grub_mm_debug): Correct syntax error.
21412 (grub_mm_dump_free): New function.
21413 (grub_debug_free): Call `grub_free'.
21414 * include/grub/mm.h: Update copyright.
21415 (grub_mm_dump_free): Add declaration.
21416
21417 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
21418
21419 * include/grub/ieee1275/ieee1275.h: Update copyright.
21420 * kern/powerpc/ieee1275/init.c: Likewise.
21421 * kern/powerpc/ieee1275/openfw.c: Likewise.
21422
21423 * loader/powerpc/ieee1275/linux.c: Likewise.
21424 * include/grub/elfload.h: Likewise.
21425 * kern/elf.c: Likewise.
21426 (grub_elf32_load): Pass `base' and `size' parameters. Update all
21427 callers.
21428 (grub_elf64_load): Likewise.
21429 (grub_elf32_load_segment): Move to a nested function.
21430 (grub_elf64_load_segment): Likewise.
21431
21432 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
21433
21434 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
21435 prototype.
21436 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
21437 (grub_heap_len): Likewise.
21438 (HEAP_SIZE): New macro.
21439 (grub_claim_heap): New function.
21440 (grub_machine_init): Don't claim heap directly. Call
21441 `grub_claim_heap'.
21442 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
21443 (grub_available_iterate): New function.
21444
21445 2007-02-03 Thomas Schwinge <tschwinge@gnu.org>
21446
21447 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
21448 * configure.ac: Use it for testing the HOST and TARGET compilers.
21449
21450 2006-12-13 Thomas Schwinge <tschwinge@gnu.org>
21451
21452 * Makefile.in (enable_grub_emu): New variable.
21453 * configure.ac (--enable-grub-emu): New option.
21454 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
21455 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
21456 * conf/i386-pc.rmk: Likewise.
21457 * conf/powerpc-ieee1275.rmk: Likewise.
21458 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
21459
21460 2006-12-12 Marco Gerards <marco@gnu.org>
21461
21462 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
21463
21464 * kern/env.c (grub_env_unset): Don't free the member `value' when
21465 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
21466 pointer.
21467
21468 * normal/main.c (current_menu): Removed.
21469 (free_menu): Unset the `menu' environment variable.
21470 (grub_normal_menu_addentry): Make use of the environment variable
21471 `menu', instead of using the global `current_menu'. Allocate
21472 memory for the sourcecode of this entry.
21473 (read_config_file): New argument `nested', changed all callers.
21474 Only in the case of a new context, initialize a new menu. Set the
21475 `menu' environment variable.
21476 (grub_normal_execute): Don't set and unset the environment
21477 variable `menu' here anymore. Only free the menu when leaving the
21478 context.
21479
21480 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
21481 leak.
21482
21483 2006-12-11 Marco Gerards <marco@gnu.org>
21484
21485 * normal/menu_entry.c (run): Fix off by one bug so the last line
21486 is executed. Move the loader check to outside the loop.
21487
21488 2006-12-08 Hollis Blanchard <hollis@penguinppc.org>
21489
21490 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
21491
21492 2006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
21493
21494 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
21495 the number of sectors. Reported by Andrey Shuvikov
21496 <mr_hyro@yahoo.com>.
21497
21498 2006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
21499
21500 * kern/disk.c (grub_disk_read): When there is a read error, always
21501 try to read only the necessary data.
21502
21503 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
21504 disk/raid.c.
21505 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
21506 prototype.
21507 [GRUB_UTIL] (grub_raid_fini): Likewise.
21508 [GRUB_UTIL] (grub_lvm_init): Likewise.
21509 [GRUB_UTIL] (grub_lvm_fini): Likewise.
21510 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
21511 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
21512 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
21513 and grub_raid_fini().
21514
21515 2006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
21516
21517 * include/grub/types.h (__unused): Rename to UNUSED.
21518 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
21519 (grub_elf64_size): Likewise.
21520
21521 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
21522
21523 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
21524 grub_error_push and grub_error_pop in the error-handling path.
21525 (grub_elf32_load_segment): Only call grub_file_read with non-zero
21526 length.
21527
21528 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
21529
21530 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
21531 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
21532 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21533 (kernel_elf_SOURCES): Likewise.
21534 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
21535 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
21536 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
21537 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
21538 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
21539 (elf_mod_SOURCES): New variable.
21540 (elf_mod_CFLAGS): Likewise.
21541 (elf_mod_LDFLAGS): Likewise.
21542 * include/grub/types.h (__unused): New macro.
21543 * include/grub/elfload.h: New file.
21544 * kern/elf.c: Likewise.
21545 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
21546 (ELF32_LOADMASK): New macro.
21547 (ELF64_LOADMASK): Likewise.
21548 (vmlinux): Removed.
21549 (grub_linux_load32): New function.
21550 (grub_linux_load64): Likewise.
21551 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
21552 Use grub_elf_t instead of grub_file_t.
21553
21554 2006-11-02 Hollis Blanchard <hollis@penguinppc.org>
21555
21556 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
21557 `catch_result' to struct set_color_args.
21558
21559 2006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
21560
21561 * normal/menu.c: Include grub/script.h.
21562 * normal/menu_entry.c: Likewise.
21563 * include/grub/normal.h: Do not include grub/script.h.
21564
21565 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
21566
21567 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
21568
21569 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
21570
21571 * kern/disk.c (grub_disk_open): Print debug messages when opening a
21572 disk.
21573 (grub_disk_close): Print debug messages when closing a disk.
21574 (grub_disk_read): Print debug messages when disk read fails.
21575 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
21576 filesystem type.
21577 * kern/partition.c: Include misc.h.
21578 (grub_partition_iterate): Print debug messages when detecting
21579 partition type.
21580
21581 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
21582
21583 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
21584 is negative.
21585 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
21586
21587 2006-10-26 Hollis Blanchard <hollis@penguinppc.org>
21588
21589 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
21590 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
21591
21592 2006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
21593
21594 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
21595 instead of sizeof(lv). Patch by Michael Guntsche.
21596
21597 2006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
21598
21599 * disk/lvm.c: Rename VGS to VG_LIST.
21600 (grub_lvm_iterate): Change VGS->LV to VG-LV.
21601 (grub_lvm_open): Likewise.
21602 Thanks to Michael Guntsche for finding this bug.
21603
21604 2006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
21605
21606 * configure.ac (AC_INIT): Bumped to 1.95.
21607
21608 2006-10-14 Robert Millan <rmh@aybabtu.com>
21609
21610 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
21611 with "/dev/.static/dev/md".
21612
21613 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
21614
21615 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
21616 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
21617 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
21618 DRIVE_NAME are always freed.
21619
21620 * util/i386/pc/biosdisk.c (make_device_name): Add one into
21621 DOS_PART, as a DOS partition is counted from one instead of zero
21622 now. Reported by Robert Millan.
21623
21624 2006-10-14 Robert Millan <rmh@aybabtu.com>
21625
21626 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
21627 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
21628 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
21629 string returned by grub_guess_root_device.
21630 * util/i386/pc/grub-setup.c: Likewise.
21631 * util/i386/pc/grub-probefs.c: Likewise.
21632
21633 * util/i386/pc/grub-probefs.c: Rename to ...
21634 * util/i386/pc/grub-probe.c: ... this.
21635 * DISTLIST: Remove grub-probefs, add grub-probe.
21636 * conf/i386-efi.rmk: Likewise.
21637 * conf/i386-pc.rmk: Likewise.
21638 * util/i386/pc/grub-install.in: Likewise.
21639
21640 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
21641 choose which information we want to print.
21642
21643 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
21644
21645 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
21646 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
21647 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
21648 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
21649 video/readers/tga.c and video/i386/pc/vbeutil.c.
21650
21651 2006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
21652
21653 Added support for RAID and LVM.
21654
21655 * disk/lvm.c: New file.
21656 * disk/raid.c: Likewise.
21657 * include/grub/lvm.h: Likewise.
21658 * include/grub/raid.h: Likewise.
21659 * include/grub/util/lvm.h: Likewise.
21660 * include/grub/util/raid.h: Likewise.
21661 * util/lvm.c: Likewise.
21662 * util/raid.c: Likewise.
21663
21664 * include/grub/disk.h (grub_disk_dev_id): Add
21665 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
21666 (grub_disk_get_size): New prototype.
21667 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
21668 returns a partition.
21669 (grub_disk_get_size): New function.
21670
21671 * kern/i386/pc/init.c (make_install_device): Copy the prefix
21672 verbatim if grub_install_dos_part is -2.
21673
21674 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
21675 and LVM devices.
21676
21677 * util/i386/pc/grub-setup.c (setup): New argument
21678 MUST_EMBED. Force embedding of GRUB when the argument is
21679 true. Close FILE before returning.
21680 (main): Add support for RAID and LVM.
21681
21682 * conf/common.rmk: Add RAID and LVM modules.
21683 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
21684 util/lvm.c.
21685 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
21686
21687 * kern/misc.c (grub_strstr): New function.
21688 * include/grub/misc.h (grub_strstr): New prototype.
21689
21690 2006-10-10 Tristan Gingold <tristan.gingold@bull.net>
21691
21692 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
21693
21694 2006-10-05 Tristan Gingold <tristan.gingold@bull.net>
21695
21696 * kern/misc.c (grub_strtoull): Guess the base only if not
21697 specified.
21698
21699 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
21700
21701 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
21702 PowerMac support.
21703
21704 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
21705
21706 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
21707
21708 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
21709 Remove `flags' argument. All callers changed.
21710 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
21711 (IEEE1275_IHANDLE_INVALID): New variable.
21712 (IEEE1275_CELL_INVALID): New variable.
21713 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
21714 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
21715 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
21716 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
21717 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
21718 codes from Open Firmware. All callers updated.
21719 (grub_ieee1275_next_property): Directly return Open Firmware return
21720 code.
21721 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
21722 Standardize error checking from `grub_ieee1275_get_property'.
21723 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
21724 `devalias' to `aliases'. Correct comments. Consolidate error paths.
21725
21726 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
21727
21728 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
21729 `instance_to_package_args' to `instance_to_path_args'.
21730
21731 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
21732 `grub_ieee1275_chosen'.
21733
21734 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
21735 `grub_ieee1275_interpret'.
21736
21737 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
21738
21739 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
21740
21741 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
21742
21743 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
21744 (__cmpdi): Likewise.
21745
21746 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
21747 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
21748 `grub_ssize_t'.
21749
21750 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
21751
21752 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
21753 to type `grub_ssize_t'.
21754 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
21755
21756 2006-09-22 Marco Gerards <marco@gnu.org>
21757
21758 * normal/script.c (grub_script_create_cmdmenu): Skip leading
21759 newlines.
21760
21761 2006-09-22 Marco Gerards <marco@gnu.org>
21762
21763 * commands/echo.c: New file.
21764
21765 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
21766
21767 * conf/common.rmk (echo_mod_SOURCES): New variable.
21768 (echo_mod_CFLAGS): Likewise.
21769 (echo_mod_LDFLAGS): Likewise.
21770
21771 2006-09-22 Marco Gerards <marco@gnu.org>
21772
21773 * normal/main.c (get_line): Malloc memory instead of using
21774 preallocated memory. Removed the arguments `cmdline' and
21775 `max_len'. Updated all callers.
21776
21777 2006-09-22 Marco Gerards <marco@gnu.org>
21778
21779 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
21780 (normal_mod_DEPENDENCIES): Likewise.
21781
21782 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
21783 (normal_mod_DEPENDENCIES): Likewise.
21784
21785 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
21786
21787 2006-09-22 Johan Rydberg <jrydberg@gnu.org>
21788
21789 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
21790 programs.
21791 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
21792 (normal_mod_DEPENDENCIES): Likewise.
21793 * conf/i386-pc.mk: Regenerate.
21794 * conf/i386-efi.mk: Likewise
21795 * conf/common.mk: Likewise.
21796 * conf/powerpc-ieee1275.mk: Likewise.
21797 * conf/sparc64-ieee1275.mk: Likewise.
21798
21799 2006-09-22 Robert Millan <rmh@aybabtu.com>
21800
21801 Sync with i386 version.
21802 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
21803 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
21804
21805 2006-09-21 Robert Millan <rmh@aybabtu.com>
21806
21807 Import from GRUB Legacy (lib/device.c):
21808 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
21809 (init_device_map) [__linux__]: Add support for I2O devices.
21810
21811 2006-09-14 Marco Gerards <marco@gnu.org>
21812
21813 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
21814 `-melf_i386'.
21815
21816 2006-09-14 Robert Millan <rmh@aybabtu.com>
21817
21818 * util/i386/pc/grub-install.in: Skip menu.lst when removing
21819 /boot/grub/*.lst.
21820
21821 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
21822
21823 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
21824 before adding it to device.map.
21825
21826 2006-08-15 Johan Rydberg <jrydberg@gnu.org>
21827
21828 * genmk.rb: Let GCC generate dependencies the first time it
21829 compiles a file; using the -MD option.
21830 * conf/common.mk: Regenerate.
21831 * conf/i386-pc.mk: Likewise.
21832 * conf/i386-efi.mk: Likewise.
21833 * conf/powerpc-ieee1275.mk: Likewise.
21834 * conf/sparc64-ieee1275.mk: Likewise.
21835
21836 2006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
21837
21838 Move the prototypes of grub_setjmp and grub_longjmp to
21839 cpu/setjmp.h, so that each architecture may specify different
21840 attributes.
21841
21842 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
21843 (grub_longjmp): Likewise.
21844 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
21845 (grub_longjmp): Likewise.
21846 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
21847 (grub_longjmp): Likewise.
21848
21849 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
21850 [!GRUB_UTIL] (grub_longjmp): Removed.
21851
21852 2006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
21853
21854 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
21855 "color!" method does not return any value.
21856
21857 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
21858
21859 * include/grub/bitmap.h: New file.
21860
21861 * include/grub/i386/pc/vbeutil.h: Likewise.
21862
21863 * video/bitmap.c: Likewise.
21864
21865 * video/readers/tga.c: Likewise.
21866
21867 * video/i386/pc/vbeutil.c: Likewise.
21868
21869 * commands/videotest.c: Code cleanup and updated to reflect to new
21870 video API.
21871
21872 * term/gfxterm.c: Likewise.
21873
21874 * video/video.c: Likewise.
21875
21876 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
21877 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
21878 (bitmap_mod_SOURCES): New entry.
21879 (bitmap_mod_CFLAGS): Likewise.
21880 (bitmap_mod_LDFLAGS): Likewise.
21881 (tga_mod_SOURCES): Likewise.
21882 (tga_mod_CFLAGS): Likewise.
21883 (tga_mod_LDFLAGS): Likewise.
21884
21885 * include/grub/video.h (grub_video_blit_operators): New enum type.
21886 (grub_video_render_target): Changed as forward declaration and moved
21887 actual definition to be video driver specific.
21888 (grub_video_adapter.blit_bitmap): Added blitting operator.
21889 (grub_video_adapter.blit_render_target): Likewise.
21890 (grub_video_blit_bitmap): Likewise.
21891 (grub_video_blit_render_target): Likewise.
21892
21893 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
21894 driver specific render target definition.
21895 (grub_video_vbe_map_rgba): Added driver internal helper.
21896 (grub_video_vbe_unmap_color): Updated to use
21897 grub_video_i386_vbeblit_info.
21898 (grub_video_vbe_get_video_ptr): Likewise.
21899
21900 * include/grub/i386/pc/vbeblit.h
21901 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
21902 grub_video_i386_vbeblit_info.
21903 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
21904 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
21905 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
21906 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
21907 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
21908 (grub_video_i386_vbeblit_index_index): Likewise.
21909 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
21910 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
21911 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
21912 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
21913 operator.
21914 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
21915 operator.
21916
21917 * video/i386/pc/vbeblit.c: Updated to reflect changes on
21918 include/grub/i386/pc/vbeblit.h.
21919
21920 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
21921 Updated to use grub_video_i386_vbeblit_info.
21922 (grub_video_i386_vbefill_R8G8B8): Likewise.
21923 (grub_video_i386_vbefill_index): Likewise.
21924 (grub_video_i386_vbefill): Added generic filler.
21925
21926 * video/i386/pc/vbefill.c: Updated to reflect changes on
21927 include/grub/i386/pc/vbefill.h.
21928
21929 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
21930 grub_video_i386_vbeblit_info.
21931 (grub_video_vbe_unmap_color): Likewise.
21932 (grub_video_vbe_blit_glyph): Likewise.
21933 (grub_video_vbe_scroll): Likewise.
21934 (grub_video_vbe_draw_pixel): Removed function.
21935 (grub_video_vbe_get_pixel): Likewise.
21936 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
21937 updated code to use it.
21938 (common_blitter): Added common blitter for render target and bitmap.
21939 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
21940 (grub_video_vbe_blit_render_target): Likewise.
21941
21942 2006-07-30 Johan Rydberg <jrydberg@gnu.org>
21943
21944 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
21945 is in text mode if there is no console control protocol instance
21946 available.
21947
21948 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
21949
21950 * include/grub/video.h: Code cleanup.
21951
21952 * include/grub/i386/pc/vbe.h: Likewise.
21953
21954 * video/i386/pc/vbe.c: Likewise.
21955
21956 * video/i386/pc/vbeblit.c: Likewise.
21957
21958 * video/i386/pc/vbefill.c: Likewise.
21959
21960 * video/video.c: Likewise. Also added more comments.
21961
21962 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
21963
21964 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
21965 (struct grub_biosdisk_dap): Likewise.
21966
21967 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
21968 linkage settings for all functions.
21969
21970 2006-07-12 Marco Gerards <marco@gnu.org>
21971
21972 * configure.ac (--enable-mm-debug): Fix typo.
21973
21974 * genkernsyms.sh.in: Use proper quoting for `CC'.
21975
21976 2006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
21977
21978 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
21979 (normal_mod_ASFLAGS): Remove "-m32".
21980
21981 2006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
21982
21983 * util/misc.c: Include config.h.
21984 [!HAVE_MEMALIGN]: Do not include malloc.h.
21985 (grub_memalign): Use posix_memalign, if present. Then, use
21986 memalign, if present. Otherwise, emit an error.
21987
21988 * util/grub-emu.c: Do not include malloc.h.
21989
21990 * include/grub/util/misc.h: Include unistd.h. This is required for
21991 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
21992 D. Eades III <hde@foobar-qux.org>.
21993
21994 * configure.ac (AC_GNU_SOURCE): Added.
21995 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
21996 type.
21997
21998 2006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
21999
22000 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
22001 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
22002
22003 2006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
22004
22005 * include/grub/types.h (grub_host_addr_t): Rename to
22006 grub_target_addr_t.
22007 (grub_host_off_t): Rename to grub_target_off_t.
22008 (grub_host_size_t): Rename to grub_target_size_t.
22009 (grub_host_ssize_t): Rename to grub_target_ssize_t.
22010 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
22011
22012 * include/grub/kernel.h (struct grub_module_header): Change type
22013 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
22014 (grub_module_info): Likewise.
22015
22016 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
22017
22018 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
22019 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
22020 Velazquez <jesus.velazquez@gmail.com>.
22021
22022 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
22023
22024 Count partitions from 1 instead of 0 in the string representation
22025 of partitions. Still use 0-based internally.
22026
22027 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
22028 (sun_partition_map_iterate): Use grub_partition_t instead of
22029 struct grub_partition *. Cast DESC->START_CYLINDER to
22030 grub_uint64_t after converting the endian.
22031 (sun_partition_map_probe): Subtract 1 for PARTNUM.
22032 (sun_partition_map_get_name): Add 1 to P->INDEX.
22033
22034 * partmap/pc.c (grub_partition_parse): Subtract 1 for
22035 PCDATA->DOS_PART.
22036 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
22037
22038 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
22039 zero instead of one.
22040 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
22041 (gpt_partition_map_get_name): Add 1 into P->INDEX.
22042
22043 * partmap/apple.c (apple_partition_map_iterate): Change the type
22044 of POS to unsigned.
22045 (apple_partition_map_probe): Subtract 1 for PARTNUM.
22046 (apple_partition_map_get_name): Add 1 into P->INDEX.
22047
22048 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
22049 of POS to unsigned.
22050 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
22051 calculate the offset of a partition.
22052 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
22053 (amiga_partition_map_get_name): Add 1 into P->INDEX.
22054
22055 * partmap/acorn.c (acorn_partition_map_find): Change the type of
22056 SECTOR to grub_disk_addr_t.
22057 (acorn_partition_map_iterate): Likewise.
22058 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
22059 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
22060 top.
22061 (acorn_partition_map_get_name): Add 1 into P->INDEX.
22062
22063 * kern/i386/pc/init.c (make_install_device): Add 1 into
22064 GRUB_INSTALL_DOS_PART.
22065
22066 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
22067 conditional.
22068
22069 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
22070
22071 Clean up the code to support 64-bit addressing in disks and
22072 files. This change is not enough for filesystems yet.
22073
22074 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
22075 type of "start" to grub_uint64_t.
22076 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
22077 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
22078 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
22079 convert addresses.
22080
22081 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
22082 to grub_disk_addr_t.
22083
22084 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
22085 string.
22086
22087 * partmap/pc.c (pc_partition_map_iterate): Likewise.
22088
22089 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
22090 to char *.
22091
22092 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
22093
22094 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
22095
22096 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
22097
22098 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
22099 to grub_off_t, to detect an error from grub_file_seek.
22100 (grub_multiboot_load_elf32): Likewise.
22101
22102 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
22103 maximum unsigned long value when an overflow is detected.
22104 (grub_strtoull): New function.
22105 (grub_divmod64): Likewise.
22106 (grub_lltoa): use grub_divmod64.
22107
22108 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
22109 grub_disk_addr_t.
22110 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
22111 the pointer to next character. Use grub_strtoull instead of
22112 grub_strtoul.
22113 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
22114 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
22115 respectively.
22116
22117 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
22118 return value is signed.
22119 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
22120 test if OFFSET is less than zero, as OFFSET is unsigned now.
22121
22122 * kern/disk.c (struct grub_disk_cache): Change the type of
22123 "sector" to grub_disk_addr_t.
22124 (grub_disk_cache_get_index): Change the type of SECTOR to
22125 grub_disk_addr_t. Calculate the hash with SECTOR casted to
22126 unsigned after shifting.
22127 (grub_disk_cache_invalidate): Change the type of SECTOR to
22128 grub_disk_addr_t.
22129 (grub_disk_cache_unlock): Likewise.
22130 (grub_disk_cache_store): Likewise.
22131 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
22132 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
22133 grub_disk_addr_t and grub_uint64_t, respectively.
22134 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
22135 body, as the value of OFFSET is tweaked by
22136 grub_disk_check_range. Change the types of START_SECTOR, LEN and
22137 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
22138 respectively.
22139 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
22140 body, as the value of OFFSET is tweaked by
22141 grub_disk_check_range. Change the types of LEN and N to
22142 grub_size_t.
22143
22144 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
22145 and "saved_offset" to grub_off_t.
22146 (test_header): Cast BUF to char *.
22147 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
22148 to char *.
22149 (grub_gzio_read): Change the types of OFFSET and SIZE to
22150 grub_off_t and grub_size_t, respectively.
22151
22152 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
22153 Removed.
22154 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
22155 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
22156 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
22157 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
22158 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
22159
22160 * include/grub/types.h (grub_off_t): Unconditionally set to
22161 grub_uint64_t.
22162 (grub_disk_addr_t): Changed to grub_uint64_t.
22163
22164 * include/grub/partition.h (struct grub_partition): Change the
22165 types of "start", "len" and "offset" to grub_disk_addr_t,
22166 grub_uint64_t and grub_disk_addr_t, respectively.
22167 (grub_partition_get_start): Return grub_disk_addr_t.
22168 (grub_partition_get_len): Return grub_uint64_t.
22169
22170 * include/grub/misc.h (grub_strtoull): New prototype.
22171 (grub_divmod64): Likewise.
22172
22173 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
22174 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
22175 grub_off_t, respectively.
22176 All callers and references changed.
22177
22178 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
22179 grub_size_t in "read".
22180 All callers and references changed.
22181
22182 * include/grub/file.h (struct grub_file): Change the types of
22183 "offset" and "size" to grub_off_t and grub_off_t,
22184 respectively. Change the type of SECTOR to grub_disk_addr_t in
22185 "read_hook".
22186 (grub_file_read): Change the type of LEN to grub_size_t.
22187 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
22188 grub_off_t.
22189 (grub_file_size): Return grub_off_t.
22190 (grub_file_tell): Likewise.
22191 All callers and references changed.
22192
22193 * include/grub/disk.h (struct grub_disk_dev): Change the types of
22194 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
22195 "write".
22196 (struct grub_disk): Change the type of "total_sectors" to
22197 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
22198 "read_hook".
22199 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
22200 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
22201 (grub_disk_write): Likewise.
22202 All callers and references changed.
22203
22204 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
22205 char * for grub_strncmp to silence gcc.
22206 (grub_iso9660_mount): Likewise.
22207 (grub_iso9660_mount): Likewise.
22208 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
22209 return statement.
22210 (grub_iso9660_iterate_dir): Likewise.
22211 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
22212
22213 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
22214 LEN to grub_disk_addr_t and grub_size_t, respectively.
22215
22216 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
22217
22218 * fs/jfs.c (grub_jfs_read_file): Likewise.
22219
22220 * fs/minix.c (grub_jfs_read_file): Likewise.
22221
22222 * fs/sfs.c (grub_jfs_read_file): Likewise.
22223
22224 * fs/ufs.c (grub_jfs_read_file): Likewise.
22225
22226 * fs/xfs.c (grub_jfs_read_file): Likewise.
22227
22228 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
22229 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
22230 respectively.
22231
22232 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
22233 BLKNR to -1 instead of returning GRUB_ERRNO.
22234 (grub_ext2_read_file): Change the types of SECTOR and
22235 LEN to grub_disk_addr_t and grub_size_t, respectively.
22236
22237 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
22238 LEN to grub_disk_addr_t and grub_size_t, respectively.
22239
22240 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
22241 grub_file_read.
22242
22243 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
22244 string. Do not cast SECTOR explicitly.
22245
22246 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
22247 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
22248 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
22249 grub_disk_addr_t and grub_size_t, respectively. If the sector is
22250 over 2TB and LBA mode is not supported, raise an error.
22251 (get_safe_sectors): New function.
22252 (grub_biosdisk_read): Use get_safe_sectors.
22253 (grub_biosdisk_write): Likewise.
22254
22255 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
22256 (grub_efidisk_write): Likewise.
22257
22258 * disk/loopback.c (delete_loopback): Cosmetic changes.
22259 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
22260 correctly.
22261 (grub_loopback_open): Likewise.
22262 (grub_loopback_read): Likewise. Also, change the type of POS to
22263 grub_off_t, and fix the usage of grub_memset.
22264
22265 * commands/i386/pc/play.c: Include grub/machine/time.h.
22266
22267 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
22268 print FILE->SIZE.
22269
22270 * commands/configfile.c: Include grub/env.h.
22271
22272 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
22273 GRUB_ERRNO directly instead. Change the type of POS to
22274 grub_off_t. Follow the coding standard.
22275
22276 * commands/blocklist.c: Include grub/partition.h.
22277 (grub_cmd_blocklist): Return an error if the underlying device is
22278 not a disk. Take the starting sector of a partition into account,
22279 if a partition is used.
22280
22281 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
22282 a length field.
22283 (lba_mode): Support 64-bit addresses.
22284 (chs_mode): Likewise.
22285 (copy_buffer): Adapted to the new offsets of a length field and a
22286 segment field.
22287 (blocklist_default_start): Allocate 64-bit space.
22288
22289 * boot/i386/pc/boot.S (force_lba): Removed.
22290 (boot_drive): Moved to under KERNEL_SECTOR.
22291 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
22292 space.
22293 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
22294 is useless.
22295 (lba_mode): Refactored to support a 64-bit address. More size
22296 optimization.
22297 (setup_sectors): Likewise.
22298
22299 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
22300
22301 * DISTLIST: Added include/grub/i386/linux.h. Removed
22302 include/grub/i386/pc/linux.h
22303
22304 * configure.ac (AC_INIT): Bumped to 1.94.
22305
22306 * config.guess: Updated from gnulib.
22307 * config.sub: Likewise.
22308 * install-sh: Likewise.
22309 * mkinstalldirs: Likewise.
22310
22311 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
22312
22313 * conf/common.rmk (grub_modules_init.lst): Depended on
22314 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
22315 MODSRCFILES.
22316
22317 * genmk.rb (PModule::rule): Reverted the previous change.
22318
22319 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
22320
22321 * conf/common.rmk (grub_modules_init.lst): Depends on
22322 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
22323 that the target does not exist before producing.
22324 (grub_modules_init.h): Remove the target before generating.
22325 (grub_emu_init.c): Likewise.
22326
22327 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
22328
22329 2006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
22330
22331 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
22332 for the target-specific tests. Make sure that we also have the
22333 up-to-date target variables for those tests.
22334
22335 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
22336
22337 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
22338 (PModule::rule): Likewise.
22339
22340 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
22341
22342 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
22343 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
22344 target-specific flags should be prefixed.
22345 (PModule::rule): Likewise.
22346
22347 2006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
22348
22349 * configure.ac (CMP): Check if cmp is available explicitly.
22350
22351 2006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
22352
22353 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
22354 (target_cpu): New variable.
22355 (pkglibdir): Use target_cpu instead of host_cpu.
22356
22357 * util/i386/pc/grub-install.in (host_cpu): Removed.
22358 (target_cpu): New variable.
22359 (pkglibdir): Use target_cpu instead of host_cpu.
22360
22361 * util/genmoddep.c: Removed.
22362
22363 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
22364 instead of GRUB_HOST_SIZEOF_VOID_P.
22365 * kern/dl.c: Likewise.
22366
22367 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
22368 ...
22369 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
22370 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
22371 (GRUB_TARGET_SIZEOF_LONG): ... this.
22372 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
22373 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
22374 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
22375 to ...
22376 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
22377 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
22378 (GRUB_TARGET_SIZEOF_LONG): ... this.
22379 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
22380 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
22381 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
22382 to ...
22383 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
22384 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
22385 (GRUB_TARGET_SIZEOF_LONG): ... this.
22386 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
22387 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
22388
22389 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
22390 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
22391 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
22392 instead of GRUB_HOST_SIZEOF_LONG.
22393 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
22394 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
22395 GRUB_CPU_WORDS_BIGENDIAN.
22396 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
22397 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
22398 grub_host_ssize_t.
22399
22400 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
22401 (genmoddep_SOURCES): Likewise.
22402 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
22403 (genmoddep_SOURCES): Likewise.
22404 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
22405 (genmoddep_SOURCES): Likewise.
22406 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
22407 Likewise.
22408 (genmoddep_SOURCES): Likewise.
22409
22410 * genmoddep.awk: New file.
22411
22412 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
22413 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
22414 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
22415 (PModule::rule): Likewise.
22416 (Program::rule): Likewise.
22417 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
22418 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
22419 respectively.
22420
22421 * configure.ac: Rewritten intensively to use host and target
22422 instead of build and host, respectively.
22423
22424 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
22425 (host_cpu): Removed.
22426 (target_cpu): New variable.
22427 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
22428 (BUILD_CC): Removed.
22429 (BUILD_CFLAGS): Likewise.
22430 (BUILD_CPPFLAGS): Likewise.
22431 (TARGET_CC): New variable.
22432 (TARGET_CFLAGS): Likewise.
22433 (TARGET_CPPFLAGS): Likewise.
22434 (TARGET_LDFLAGS): Likewise.
22435 (AWK): Likewise.
22436 (include): Use target_cpu instead of host_cpu.
22437 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
22438
22439 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
22440
22441 2006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
22442
22443 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
22444 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
22445 field 'false' to 'exec_on_false'.
22446 (grub_script_create_cmdif): Renamed argument names to reflect above
22447 changes.
22448
22449 * normal/execute.c (grub_script_execute_cmdif): Likewise.
22450
22451 * normal/script.c (grub_script_create_cmdif): Likewise.
22452
22453 2006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
22454
22455 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
22456 top.
22457 (grub_hfsplus_btree_recptr): Likewise.
22458 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
22459 FILEBLOCK both to pass a block number and store next block
22460 number.
22461 (grub_hfsplus_read_block): Rewritten heavily to support an extent
22462 overflow file correctly. Specify errors appropriately, because
22463 fshelp expects that GRUB_ERRNO is set when fails. Reuse
22464 grub_hfsplus_btree_recptr to get the pointer to a found key.
22465 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
22466 is found.
22467
22468 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
22469 linux.mod.
22470 (_linux_mod_SOURCES): New variable.
22471 (_linux_mod_CFLAGS): Likewise.
22472 (_linux_mod_LDFLAGS): Likewise.
22473 (linux_mod_SOURCES): Likewise.
22474 (linux_mod_CFLAGS): Likewise.
22475 (linux_mod_LDFLAGS): Likewise.
22476
22477 * DISTLIST: Added loader/i386/efi/linux.c,
22478 loader/i386/efi/linux_normal.c and
22479 include/grub/i386/efi/loader.h.
22480
22481 * loader/i386/efi/linux.c: New file.
22482 * loader/i386/efi/linux_normal.c: Likewise.
22483 * include/grub/i386/efi/loader.h: Likewise.
22484
22485 2006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
22486
22487 * commands/blocklist.c: New file.
22488
22489 * DISTLIST: Added commands/blocklist.c.
22490
22491 * term/efi/console.c (grub_console_highlight_color): Use a lighter
22492 color for the background, and a darker color for the foreground.
22493 (grub_console_checkkey): Return READ_KEY.
22494 (grub_console_cls): Set the background to
22495 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
22496
22497 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
22498
22499 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
22500 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
22501
22502 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
22503 prototype.
22504
22505 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
22506 BG. The spec is wrong again.
22507
22508 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
22509 prototype.
22510 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
22511
22512 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
22513 commands/blocklist.c.
22514 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
22515
22516 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
22517 (blocklist_mod_SOURCES): New variable.
22518 (blocklist_mod_CFLAGS): Likewise.
22519 (blocklist_mod_LDFLAGS): Likewise.
22520
22521 2006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
22522
22523 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
22524 duplication.
22525 (lba_mode): Use %eax more intensively to reduce the code size.
22526
22527 2006-05-20 Marco Gerards <marco@gnu.org>
22528
22529 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
22530
22531 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
22532 for `menuentry'.
22533 (script): Accept leading newlines.
22534 (newlines): New rule to describe 0 or more newlines.
22535 (commands): Accept `command' with trailing newline. Fixed the
22536 order in which arguments were passed to `grub_script_add_cmd'.
22537 Accept commands separated by newlines.
22538 (function): Changed to accept newlines.
22539 (menuentry) Rewritten.
22540
22541 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
22542 front of the list, instead of to the end.
22543
22544 2006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
22545
22546 * util/i386/pc/grub-install.in (bindir): New variable.
22547 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
22548 Shaver <lbgwjl@gmail.com>.
22549
22550 2006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
22551
22552 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
22553 grub/machine/linux.h
22554 * loader/i386/pc/linux.c: Likewise.
22555
22556 * include/grub/i386/pc/linux.h: Moved to ...
22557 * include/grub/i386/linux.h: ... here.
22558
22559 * include/grub/i386/linux.h (struct linux_kernel_params): New
22560 struct.
22561
22562 2006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
22563
22564 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
22565 checking.
22566 (grub_video_vbe_blit_glyph): Likewise.
22567 (grub_video_vbe_blit_bitmap): Likewise.
22568 (grub_video_vbe_blit_render_target): Likewise.
22569
22570 2006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
22571
22572 * configure.ac (--with-platform): Properly quote the square
22573 brackets.
22574
22575 2006-05-08 Marco Gerards <marco@gnu.org>
22576
22577 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
22578 this...
22579 (kernel_elf_HEADERS): ...to this. Updated all users.
22580 (grubof_symlist.c): Renamed from this...
22581 (kernel_elf_symlist.c): ...to this. Updated all users.
22582 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
22583 (grubof_SOURCES): Renamed from this...
22584 (kernel_elf_SOURCES): ...to this.
22585 (grubof_HEADERS): Renamed from this...
22586 (kernel_elf_HEADERS): ...to this.
22587 (grubof_CFLAGS): Renamed from this...
22588 (kernel_elf_CFLAGS): ...to this.
22589 (grubof_ASFLAGS): Renamed from this...
22590 (kernel_elf_ASFLAGS): ...to this.
22591 (grubof_LDFLAGS): Renamed from this...
22592 (kernel_elf_LDFLAGS): ...to this.
22593
22594 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
22595 this...
22596 (kernel_elf_HEADERS): ...to this. Updated all users.
22597 (grubof_symlist.c): Renamed from this...
22598 (kernel_elf_symlist.c): ...to this. Updated all users.
22599 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
22600 (grubof_SOURCES): Renamed from this...
22601 (kernel_elf_SOURCES): ...to this.
22602 (grubof_HEADERS): Renamed from this...
22603 (kernel_elf_HEADERS): ...to this.
22604 (grubof_CFLAGS): Renamed from this...
22605 (kernel_elf_CFLAGS): ...to this.
22606 (grubof_ASFLAGS): Renamed from this...
22607 (kernel_elf_ASFLAGS): ...to this.
22608 (grubof_LDFLAGS): Renamed from this...
22609 (kernel_elf_LDFLAGS): ...to this.
22610
22611 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
22612 `kernel.elf' instead of `grubof'.
22613
22614 2006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
22615
22616 Add --with-platform to configure. Use pkglibdir instead of
22617 pkgdatadir. This is reported by Roger Leigh.
22618
22619 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
22620 (host_vendor): Likewise.
22621 (host_os): Likewise.
22622 (pkgdatadir): Likewise.
22623 (platform): New variable.
22624 (pkglibdir): Likewise.
22625 Use PKGLIBDIR instead of PKGDATADIR.
22626
22627 * util/i386/pc/grub-install.in (datadir): Removed.
22628 (host_vendor): Likewise.
22629 (host_os): Likewise.
22630 (pkgdatadir): Likewise.
22631 (platform): New variable.
22632 (pkglibdir): Likewise.
22633 Use PKGLIBDIR instead of PKGDATADIR.
22634
22635 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
22636 instead of GRUB_DATADIR.
22637 (main): Likewise.
22638 * util/i386/pc/grub-mkimage.c (usage): Likewise.
22639 (main): Likewise.
22640 * util/i386/efi/grub-mkimage.c (usage): Likewise.
22641 (main): Likewise.
22642
22643 * configure.ac (--with-platform): New option.
22644 Use PLATFORM instead of HOST_VENDOR to specify a platform.
22645
22646 * Makefile.in: Include a makefile based on PLATFORM instead of
22647 HOST_VENDOR.
22648 (pkgdatadir): Not appended by the machine type.
22649 (pkglibdir): Appended by the machine type.
22650 (host_vendor): Removed.
22651 (platform): New variable.
22652 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
22653 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
22654 (uninstall): Likewise.
22655
22656 2006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
22657
22658 Use the environment context in the menu. Remove the commands
22659 "default" and "timeout", and use variables instead.
22660
22661 * normal/menu.c: Include grub/env.h.
22662 (print_entry): Cast TITLE to silence gcc.
22663 (get_timeout): New function.
22664 (set_timeout): Likewise.
22665 (get_entry_number): Likewise.
22666 (run_menu): Use a default entry, a fallback entry and a timeout
22667 in the environment variables "default", "fallback" and
22668 "timeout". Also, tweak the default entry if it is not within the
22669 current menu entries.
22670 (grub_menu_run): Use a fallback entry in the environment variable
22671 "fallback".
22672
22673 * normal/main.c (read_config_file): Do not initialize
22674 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
22675 NEWMENU->TIMEOUT.
22676 (grub_normal_execute): Use a data slot to store the menu.
22677
22678 * include/grub/normal.h (struct grub_menu): Removed default_entry,
22679 fallback_entry and timeout.
22680 (struct grub_menu_list): Removed.
22681 (grub_menu_list_t): Likewise.
22682 (struct grub_context): Likewise.
22683 (grub_context_t): Likewise.
22684 (grub_context_get): Likewise.
22685 (grub_context_get_current_menu): Likewise.
22686 (grub_context_push_menu): Likewise.
22687 (grub_context_pop_menu): Likewise.
22688 (grub_default_init): Likewise.
22689 (grub_default_fini): Likewise.
22690 (grub_timeout_init): Likewise.
22691 (grub_timeout_fini): Likewise.
22692
22693 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
22694 and timeout.mod.
22695 (normal_mod_SOURCES): Removed normal/context.c.
22696
22697 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
22698 commands/default.c, commands/timeout.c and normal/context.c.
22699 (normal_mod_SOURCES): Removed normal/context.c.
22700
22701 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
22702 commands/timeout.c and normal/context.c.
22703 (normal_mod_SOURCES): Removed normal/context.c.
22704
22705 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
22706 commands/default.c, commands/timeout.c and normal/context.c.
22707 (normal_mod_SOURCES): Removed normal/context.c.
22708
22709 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
22710 timeout.mod.
22711 (default_mod_SOURCES): Removed.
22712 (default_mod_CFLAGS): Likewise.
22713 (default_mod_LDFLAGS): Likewise.
22714 (timeout_mod_SOURCES): Removed.
22715 (timeout_mod_CFLAGS): Likewise.
22716 (timeout_mod_LDFLAGS): Likewise.
22717
22718 * DISTLIST: Removed commands/default.c, commands/timeout.c and
22719 normal/context.c.
22720
22721 * commands/default.c: Removed.
22722 * commands/timeout.c: Likewise.
22723 * normal/context.c: Likewise.
22724
22725 2006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
22726
22727 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
22728
22729 2006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
22730
22731 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
22732 "next" to "prev" for readability.
22733 (struct grub_env_sorted_var): New struct.
22734 (grub_env_context): Renamed to ...
22735 (initial_context): ... this.
22736 (grub_env_var_context): Renamed to ...
22737 (current_context): ... this.
22738 (grub_env_find): Look only at CURRENT_CONTEXT.
22739 (grub_env_context_open): Rewritten to copy exported variables from
22740 previous context.
22741 (grub_env_context_close): Rewritten according to the new
22742 scheme. Also, add an assertion to prevent the initial context from
22743 removed.
22744 (grub_env_insert): Removed the code for the sorted list.
22745 (grub_env_remove): Likewise.
22746 (grub_env_export): Simply mark the variable with
22747 GRUB_ENV_VAR_GLOBAL.
22748 (grub_env_set): A cosmetic change for naming consistency.
22749 (grub_env_get): Likewise.
22750 (grub_env_unset): Likewise.
22751 (grub_env_iterate): Rewritten to sort variables within this
22752 function.
22753 (grub_register_variable_hook): Fixed for naming consistency. Call
22754 grub_env_find again, only if NAME is not found at the first time.
22755 (mangle_data_slot_name): New function.
22756 (grub_env_set_data_slot): Likewise.
22757 (grub_env_get_data_slot): Likewise.
22758 (grub_env_unset_data_slot): Likewise.
22759
22760 * include/grub/env.h (grub_env_var_type): New enum.
22761 (GRUB_ENV_VAR_LOCAL): New constant.
22762 (GRUB_ENV_VAR_GLOBAL): Likewise.
22763 (GRUB_ENV_VAR_DATA): Likewise.
22764 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
22765 "type".
22766 (grub_env_set): Replace VAR with NAME for consistency.
22767 (grub_register_variable_hook): Likewise.
22768 (grub_env_export): Specify the name of the argument.
22769 (grub_env_set_data_slot): New prototype.
22770 (grub_env_get_data_slot): Likewise.
22771 (grub_env_unset_data_slot): Likewise.
22772
22773 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
22774
22775 Extend the loader so that GRUB can accept a loader which comes
22776 back to GRUB when a loaded image exits. Also, this change adds
22777 support for a chainloader on EFI.
22778
22779 * term/efi/console.c: Include grub/misc.h.
22780 (grub_console_checkkey): Display a scan code on the top for
22781 debugging. This will be removed once the EFI port gets stable.
22782 Correct the scan code mapping.
22783
22784 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
22785 allocate memory from larger regions, in order to reduce the number
22786 of allocated regions. Otherwise, the MacOSX loader panics.
22787 (filter_memory_map): Avoid less than 1MB for compatibility with
22788 other loaders.
22789 (add_memory_regions): Allocate from the tail of a region, if
22790 possible, to avoid allocating a region near to 1MB, for the MacOSX
22791 loader.
22792
22793 * kern/efi/init.c (grub_efi_set_prefix): Specify
22794 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
22795
22796 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
22797 argument IMAGE_HANDLE and specify it to get a loaded image.
22798 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
22799 grub_efi_get_loaded_image.
22800 (grub_efi_get_filename): Divide the length by the size of
22801 grub_efi_char16_t.
22802 (grub_efi_get_device_path): New function.
22803 (grub_efi_print_device_path): Print End Device Path nodes. Divide
22804 the length by the size of grub_efi_char16_t for a file path device
22805 path node.
22806
22807 * kern/loader.c (grub_loader_noreturn): New variable.
22808 (grub_loader_set): Accept a new argument NORETURN. Set
22809 GRUB_LOADER_NORETURN to NORETURN.
22810 All callers changed.
22811 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
22812 grub_machine_fini.
22813
22814 * include/grub/efi/efi.h (grub_efi_get_device_path): New
22815 prototype.
22816 (grub_efi_get_loaded_image): Take an argument to specify an image
22817 handle.
22818
22819 * include/grub/loader.h (grub_loader_set): Added one more argument
22820 NORETURN.
22821
22822 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
22823 instead of grub_efi_open_protocol.
22824 (grub_efidisk_get_device_name): Likewise.
22825 (grub_efidisk_close): Print a newline.
22826 (grub_efidisk_get_device_handle): Fixed to use
22827 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
22828 GRUB_EFI_DEVICE_PATH_TYPE.
22829
22830 * disk/efi/efidisk.c (device_path_guid): Moved to ...
22831 * kern/efi/efi.c (device_path_guid): ... here.
22832
22833 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
22834 chain.mod.
22835 (kernel_mod_HEADERS): Added efi/disk.h.
22836 (_chain_mod_SOURCES): New variable.
22837 (_chain_mod_CFLAGS): Likewise.
22838 (_chain_mod_LDFLAGS): Likewise.
22839 (chain_mod_SOURCES): Likewise.
22840 (chain_mod_CFLAGS): Likewise.
22841 (chain_mod_LDFLAGS): Likewise.
22842
22843 * DISTLIST: Added include/grub/efi/chainloader.h,
22844 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
22845
22846 * include/grub/efi/chainloader.h: New file.
22847 * loader/efi/chainloader.c: Likewise.
22848 * loader/efi/chainloader_normal.c: Likewise.
22849
22850 2006-04-30 Marco Gerards <marco@gnu.org>
22851
22852 * commands/configfile.c (grub_cmd_source): New function.
22853 (GRUB_MOD_INIT): Register the commands `source' and `.'.
22854 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
22855
22856 2006-04-30 Marco Gerards <marco@gnu.org>
22857
22858 * normal/execute.c (grub_script_execute_cmd): Change the return
22859 type to `grub_err_t'. Correctly return the error.
22860 (grub_script_execute_cmdline): In case a command line is not a
22861 command or a function, try to interpret it as an assignment.
22862
22863 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
22864
22865 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
22866 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
22867 skip a node whose name is obviously invalid as UTF-16,
22868 i.e. contains a NUL character. Stop the iteration when the last
22869 directory entry is found. Instead of using the return value of
22870 grub_hfsplus_btree_iterate_node, store the value in RET and use
22871 it, because the iterator can be stopped by the last directory
22872 entry.
22873
22874 2006-04-30 Marco Gerards <marco@gnu.org>
22875
22876 * include/grub/env.h (grub_env_export): New prototype. Reported
22877 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
22878
22879 2006-04-30 Marco Gerards <marco@gnu.org>
22880
22881 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
22882 size of the extents in a catalog file record.
22883
22884 2006-04-29 Marco Gerards <marco@gnu.org>
22885
22886 * commands/configfile.c (grub_cmd_configfile): Execute the
22887 configfile within its own context.
22888
22889 * include/grub/env.h (grub_env_context_open): New prototype.
22890 (grub_env_context_close): Likewise.
22891
22892 * kern/env.c (grub_env): Removed.
22893 (grub_env_sorted): Likewise.
22894 (grub_env_context): New variable.
22895 (grub_env_var_context): Likewise.
22896 (grub_env_find): Search both the active context and the global
22897 context.
22898 (grub_env_context_open): New function.
22899 (grub_env_context_close): Likewise.
22900 (grub_env_insert): Likewise.
22901 (grub_env_remove): Likewise.
22902 (grub_env_export): Likewise.
22903 (grub_env_set): Changed to use helper functions to avoid code
22904 duplication.
22905 (grub_env_iterate): Rewritten so both the current context and the
22906 global context are being used.
22907
22908 * normal/command.c (export_command): New function.
22909 (grub_command_init): Register the `export' function.
22910
22911 2006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
22912
22913 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
22914 explicitly to suppress gcc's warnings.
22915 * fs/fat.c (grub_fat_find_dir): Likewise.
22916 (grub_fat_label): Likewise.
22917 * fs/xfs.c (grub_xfs_read_inode): Likewise.
22918 (grub_xfs_mount): Likewise.
22919 (grub_xfs_label): Likewise.
22920 * fs/affs.c (grub_affs_mount): Likewise.
22921 (grub_affs_label): Likewise.
22922 (grub_affs_iterate_dir): Likewise.
22923 * fs/sfs.c (grub_sfs_mount): Likewise.
22924 (grub_sfs_iterate_dir): Likewise.
22925 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
22926 * fs/hfs.c (grub_hfs_mount): Likewise.
22927 (grub_hfs_cmp_catkeys): Likewise.
22928 (grub_hfs_find_dir): Likewise.
22929 (grub_hfs_dir): Likewise.
22930 (grub_hfs_label): Likewise.
22931 * fs/jfs.c (grub_jfs_mount): Likewise.
22932 (grub_jfs_opendir): Likewise.
22933 (grub_jfs_getent): Likewise.
22934 (grub_jfs_lookup_symlink): Likewise.
22935 (grub_jfs_label): Likewise.
22936 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
22937 (grub_hfsplus_iterate_dir): Likewise.
22938 (grub_hfsplus_btree_iterate_node): Made static.
22939
22940 * util/grub-emu.c (prefix): New variable.
22941 (grub_machine_set_prefix): New function.
22942 (main): Do not set the environment variable "prefix" here. Only
22943 set PREFIX, which is used later by grub_machine_set_prefix.
22944
22945 * include/grub/video.h: Do not include grub/symbol.h.
22946 (grub_video_register): Not exported. This symbol is not defined in
22947 the kernel.
22948 (grub_video_unregister): Likewise.
22949 (grub_video_iterate): Likewise.
22950 (grub_video_setup): Likewise.
22951 (grub_video_restore): Likewise.
22952 (grub_video_get_info): Likewise.
22953 (grub_video_get_blit_format): Likewise.
22954 (grub_video_set_palette): Likewise.
22955 (grub_video_get_palette): Likewise.
22956 (grub_video_set_viewport): Likewise.
22957 (grub_video_get_viewport): Likewise.
22958 (grub_video_map_color): Likewise.
22959 (grub_video_map_rgb): Likewise.
22960 (grub_video_map_rgba): Likewise.
22961 (grub_video_fill_rect): Likewise.
22962 (grub_video_blit_glyph): Likewise.
22963 (grub_video_blit_bitmap): Likewise.
22964 (grub_video_blit_render_target): Likewise.
22965 (grub_video_scroll): Likewise.
22966 (grub_video_swap_buffers): Likewise.
22967 (grub_video_create_render_target): Likewise.
22968 (grub_video_delete_render_target): Likewise.
22969 (grub_video_set_active_render_target): Likewise.
22970
22971 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
22972 Undefined.
22973 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
22974
22975 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
22976 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
22977 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
22978 instead of $(srcdir)/genkernsyms.sh.
22979
22980 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
22981 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
22982 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
22983 instead of $(srcdir)/genkernsyms.sh.
22984
22985 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
22986 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
22987 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
22988 instead of $(srcdir)/genkernsyms.sh.
22989
22990 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
22991 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
22992 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
22993 instead of $(srcdir)/genkernsyms.sh.
22994
22995 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
22996 genkernsyms.sh.
22997
22998 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
22999 genkernsyms.sh.
23000 (gensymlist.sh): New target.
23001 (genkernsyms.sh): Likewise.
23002
23003 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
23004 genkernsyms.sh.in and gensymlist.sh.in.
23005
23006 * genkernsyms.sh: Removed.
23007 * gensymlist.sh: Likewise.
23008
23009 * genkernsyms.sh.in: New file.
23010 * gensymlist.sh.in: Likewise.
23011
23012 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
23013
23014 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
23015 clobber "prefix", since we may have already set it manually.
23016
23017 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
23018
23019 * kern/misc.c (abort): New alias for grub_abort.
23020
23021 2006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
23022
23023 A new machine-specific function "grub_machine_set_prefix" is
23024 defined. This is called after loading modules, so that a prefix
23025 initialization can use modules. Also, this change adds an
23026 intensive debugging feature for the memory manager via the
23027 configure option "--enable-mm-debug".
23028
23029 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
23030 PART.LEN.
23031
23032 * kern/sparc64/ieee1275/init.c (abort): Removed.
23033 (grub_stop): Likewise.
23034 (grub_exit): New function.
23035 (grub_set_prefix): Renamed to ...
23036 (grub_machine_set_prefix): ... this.
23037 (grub_machine_init): Do not call grub_set_prefix.
23038
23039 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
23040 (grub_machine_set_prefix): ... this.
23041 (grub_machine_init): Do not call grub_set_prefix.
23042
23043 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
23044 (grub_machine_init): Do not set the prefix here.
23045
23046 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
23047
23048 * kern/efi/init.c: Include grub/mm.h.
23049 (grub_efi_set_prefix): New function.
23050
23051 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
23052 (grub_efi_get_filename): New function.
23053 (grub_print_device_path): Renamed to ...
23054 (grub_efi_print_device_path): ... this.
23055
23056 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
23057 [MM_DEBUG] (grub_realloc): Likewise.
23058 [MM_DEBUG] (grub_free): Likewise.
23059 [MM_DEBUG] (grub_memalign): Likewise.
23060 [MM_DEBUG] (grub_mm_debug): New variable.
23061 [MM_DEBUG] (grub_debug_malloc): New function.
23062 [MM_DEBUG] (grub_debug_free): New function.
23063 [MM_DEBUG] (grub_debug_realloc): New function.
23064 [MM_DEBUG] (grub_debug_memalign): New function.
23065
23066 * kern/misc.c (grub_abort): Print a newline to distinguish
23067 the message.
23068
23069 * kern/main.c (grub_main): Call grub_machine_set_prefix and
23070 grub_set_root_dev after loading modules. This is necessary when
23071 setting a prefix depends on modules.
23072
23073 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
23074 (grub_efi_print_device_path): ... this.
23075 (grub_efi_get_filename): New prototype.
23076 (grub_efi_set_prefix): Likewise.
23077
23078 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
23079 and grub/disk.h.
23080 (grub_efidisk_get_device_handle): New prototype.
23081 (grub_efidisk_get_device_name): Likewise.
23082
23083 * include/grub/mm.h: Include config.h.
23084 (MM_DEBUG): Removed.
23085 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
23086 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
23087 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
23088 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
23089 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
23090 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
23091 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
23092 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
23093 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
23094
23095 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
23096
23097 * disk/efi/efidisk.c: Include grub/partition.h.
23098 (iterate_child_devices): New function.
23099 (add_device): First, compare only last device path nodes, so that
23100 devices are sorted by the types.
23101 (grub_efidisk_get_device_handle): New function.
23102 (grub_efidisk_get_device_name): Likewise.
23103
23104 * configure.ac (--enable-mm-debug): New option to enable the
23105 memory manager debugging feature. This makes the binary much
23106 bigger, so is disabled by default.
23107
23108 2006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
23109
23110 Use grub_abort instead of grub_stop, and grub_exit must be
23111 define in each architecture now. Also, this change adds support
23112 for EFI disks.
23113
23114 * util/i386/pc/grub-probefs.c: Include grub/term.h.
23115 (grub_getkey): New function.
23116 (grub_term_get_current): Likewise.
23117
23118 * util/i386/pc/grub-setup.c: Include grub/term.h.
23119 (grub_getkey): New function.
23120 (grub_term_get_current): Likewise.
23121
23122 * util/misc.c (grub_stop): Renamed to ...
23123 (grub_exit): ... this.
23124
23125 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
23126 (grub_exit): ... this.
23127 (grub_machine_init): Use grub_abort instead of abort.
23128 (grub_stop): Removed.
23129
23130 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
23131 abort.
23132
23133 * kern/i386/pc/startup.S (grub_exit): New function.
23134 (cold_reboot): New label.
23135
23136 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
23137 (grub_efi_init): Call grub_efidisk_init.
23138 (grub_efi_fini): Call grub_efidisk_fini.
23139
23140 * kern/efi/efi.c: Include grub/mm.h.
23141 (grub_efi_console_control_guid): Renamed to ...
23142 (console_control_guid): ... this.
23143 (grub_efi_loaded_image_guid): Renamed to ...
23144 (loaded_image_guid): ... this.
23145 (grub_efi_locate_handle): New function.
23146 (grub_efi_open_protocol): Likewise.
23147 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
23148 GRUB_EFI_CONSOLE_CONTROL_GUID.
23149 (grub_efi_exit): Removed.
23150 (grub_stop): Likewise.
23151 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
23152 (grub_exit): New function.
23153 (grub_print_device_path): Likewise.
23154
23155 * kern/rescue.c (grub_rescue_cmd_exit): New function.
23156 (grub_enter_rescue_mode): Register "exit".
23157
23158 * kern/misc.c (grub_real_dprintf): A cosmetic change.
23159 (grub_abort): New function.
23160
23161 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
23162
23163 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
23164
23165 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
23166
23167 * include/grub/efi/efi.h (grub_efi_exit): Removed.
23168 (grub_print_device_path): New prototype.
23169 (grub_efi_locate_handle): Likewise.
23170 (grub_efi_open_protocol): Likewise.
23171
23172 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
23173 * disk/efi/efidisk.c: Likewise.
23174
23175 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
23176
23177 * include/grub/efi/console_control.h
23178 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
23179
23180 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
23181 last 8 bytes as an array.
23182 (GRUB_EFI_DISK_IO_GUID): New macro.
23183 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
23184 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
23185 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
23186 grub_uint8_t.
23187 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
23188 (struct grub_efi_device_path): Rename the member "sub_type" to
23189 "subtype".
23190 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
23191 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
23192 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
23193 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
23194 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
23195 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
23196 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
23197 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
23198 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
23199 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
23200 (struct grub_efi_pci_device_path): New structure.
23201 (grub_efi_pci_device_path_t): New type.
23202 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
23203 (struct grub_efi_pccard_device_path): New structure.
23204 (grub_efi_pccard_device_path_t): New type.
23205 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
23206 (struct grub_efi_memory_mapped_device_path): New structure.
23207 (grub_efi_memory_mapped_device_path_t): New type.
23208 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
23209 (struct grub_efi_vendor_device_path): New structure.
23210 (grub_efi_vendor_device_path_t): New type.
23211 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
23212 (struct grub_efi_controller_device_path): New structure.
23213 (grub_efi_controller_device_path_t): New type.
23214 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
23215 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
23216 (struct grub_efi_acpi_device_path): New structure.
23217 (grub_efi_acpi_device_path_t): New type.
23218 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
23219 (struct grub_efi_expanded_acpi_device_path): New structure.
23220 (grub_efi_expanded_acpi_device_path_t): New type.
23221 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
23222 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
23223 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
23224 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
23225 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
23226 (struct grub_efi_atapi_device_path): New structure.
23227 (grub_efi_atapi_device_path_t): New type.
23228 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
23229 (struct grub_efi_fibre_channel_device_path): New structure.
23230 (grub_efi_fibre_channel_device_path_t): New type.
23231 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
23232 (struct grub_efi_1394_device_path): New structure.
23233 (grub_efi_1394_device_path_t): New type.
23234 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
23235 (struct grub_efi_usb_device_path): New structure.
23236 (grub_efi_usb_device_path_t): New type.
23237 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
23238 (struct grub_efi_usb_class_device_path): New structure.
23239 (grub_efi_usb_class_device_path_t): New type.
23240 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
23241 (struct grub_efi_i2o_device_path): New structure.
23242 (grub_efi_i2o_device_path_t): New type.
23243 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
23244 (struct grub_efi_mac_address_device_path): New structure.
23245 (grub_efi_mac_address_device_path_t): New type.
23246 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
23247 (struct grub_efi_ipv4_device_path): New structure.
23248 (grub_efi_ipv4_device_path_t): New type.
23249 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
23250 (struct grub_efi_ipv6_device_path): New structure.
23251 (grub_efi_ipv6_device_path_t): New type.
23252 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
23253 (struct grub_efi_infiniband_device_path): New structure.
23254 (grub_efi_infiniband_device_path_t): New type.
23255 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
23256 (struct grub_efi_uart_device_path): New structure.
23257 (grub_efi_uart_device_path_t): New type.
23258 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
23259 (struct grub_efi_vendor_messaging_device_path): New structure.
23260 (grub_efi_vendor_messaging_device_path_t): New type.
23261 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
23262 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
23263 (struct grub_efi_hard_drive_device_path): New structure.
23264 (grub_efi_hard_drive_device_path_t): New type.
23265 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
23266 (struct grub_efi_cdrom_device_path): New structure.
23267 (grub_efi_cdrom_device_path_t): New type.
23268 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
23269 (struct grub_efi_vendor_media_device_path): New structure.
23270 (grub_efi_vendor_media_device_path_t): New type.
23271 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
23272 (struct grub_efi_file_path_device_path): New structure.
23273 (grub_efi_file_path_device_path_t): New type.
23274 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
23275 (struct grub_efi_protocol_device_path): New structure.
23276 (grub_efi_protocol_device_path_t): New type.
23277 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
23278 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
23279 (struct grub_efi_bios_device_path): New structure.
23280 (grub_efi_bios_device_path_t): New type.
23281 (struct grub_efi_disk_io): New structure.
23282 (grub_efi_disk_io_t): New type.
23283 (struct grub_efi_block_io_media): New structure.
23284 (grub_efi_block_io_media_t): New type.
23285 (struct grub_efi_block_io): New structure.
23286 (grub_efi_block_io_t): New type.
23287
23288 * include/grub/misc.h (grub_stop): Removed.
23289 (grub_exit): New prototype.
23290 (grub_abort): Likewise.
23291
23292 * include/grub/disk.h (enum grub_disk_dev_id): Added
23293 GRUB_DISK_DEVICE_EFIDISK_ID.
23294
23295 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
23296 disk/efi/efidisk.c.
23297 (kernel_syms.lst): Remove the target if an error occurs.
23298
23299 2006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
23300
23301 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
23302 as it was simply too buggy.
23303
23304 2006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
23305
23306 * kern/misc.c (grub_lltoa): New function.
23307 (grub_vsprintf): Added support for the long long suffix,
23308 i.e. "ll".
23309
23310 2006-04-20 Hollis Blanchard <hollis@penguinppc.org>
23311
23312 * Makefile.in (LDFLAGS): Add variable.
23313 (LD): Remove variable.
23314 * configure.ac: Add -m32 to LDFLAGS.
23315 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
23316 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
23317 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
23318 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
23319 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
23320 variables.
23321 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
23322 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
23323 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
23324
23325 2006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
23326
23327 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
23328 length for unknown glyph.
23329
23330 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
23331
23332 Add support for pre-loaded modules into the EFI port.
23333
23334 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
23335 completely. Accept one more argument DIR. The caller has changed.
23336
23337 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
23338
23339 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
23340 (grub_efi_loaded_image_guid): New variable.
23341 (grub_efi_get_loaded_image): New function.
23342 (grub_arch_modules_addr): Likewise.
23343
23344 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
23345 prototype.
23346
23347 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
23348 (struct grub_efi_loaded_image): New structure.
23349 (grub_efi_loaded_image_t): New type.
23350
23351 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
23352
23353 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
23354 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
23355 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
23356
23357 2006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
23358
23359 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
23360
23361 2006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
23362
23363 * DISTLIST: Added include/grub/efi/console.h,
23364 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
23365 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
23366
23367 * include/grub/efi/console.h: New file.
23368 * include/grub/efi/time.h: Likewise.
23369 * include/grub/i386/efi/kernel.h: Likewise.
23370 * kern/efi/init.c: Likewise.
23371 * kern/efi/mm.c: Likewise.
23372 * term/efi/console.c: Likewise.
23373
23374 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
23375 (grub_stop): Removed.
23376 (grub_get_rtc): Likewise.
23377 (grub_machine_init): Simply call grub_efi_init.
23378 (grub_machine_fini): Call grub_efi_fini.
23379
23380 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
23381 (grub_efi_output_string): Removed.
23382 (grub_efi_stall): New function.
23383 (grub_stop): Likewise.
23384 (grub_get_rtc): Likewise.
23385
23386 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
23387 (grub_efi_stall): New prototype.
23388 (grub_efi_allocate_pages): Likewise.
23389 (grub_efi_free_pages): Likewise.
23390 (grub_efi_get_memory_map): Likewise.
23391 (grub_efi_mm_init): Likewise.
23392 (grub_efi_mm_fini): Likewise.
23393 (grub_efi_init): Likewise.
23394 (grub_efi_fini): Likewise.
23395
23396 * include/grub/i386/efi/time.h: Do not include
23397 grub/symbol.h. Include grub/efi/time.h.
23398 (GRUB_TICKS_PER_SECOND): Removed.
23399 (grub_get_rtc): Likewise.
23400
23401 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
23402 Added padding. The EFI spec is buggy.
23403 (GRUB_EFI_BLACK): New macro.
23404 (GRUB_EFI_BLUE): Likewise.
23405 (GRUB_EFI_GREEN): Likewise.
23406 (GRUB_EFI_CYAN): Likewise.
23407 (GRUB_EFI_RED): Likewise.
23408 (GRUB_EFI_MAGENTA): Likewise.
23409 (GRUB_EFI_BROWN): Likewise.
23410 (GRUB_EFI_LIGHTGRAY): Likewise.
23411 (GRUB_EFI_BRIGHT): Likewise.
23412 (GRUB_EFI_DARKGRAY): Likewise.
23413 (GRUB_EFI_LIGHTBLUE): Likewise.
23414 (GRUB_EFI_LIGHTGREEN): Likewise.
23415 (GRUB_EFI_LIGHTCYAN): Likewise.
23416 (GRUB_EFI_LIGHTRED): Likewise.
23417 (GRUB_EFI_LIGHTMAGENTA): Likewise.
23418 (GRUB_EFI_YELLOW): Likewise.
23419 (GRUB_EFI_WHITE): Likewise.
23420 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
23421 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
23422 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
23423 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
23424 (GRUB_EFI_BACKGROUND_RED): Likewise.
23425 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
23426 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
23427 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
23428 (GRUB_EFI_TEXT_ATTR): Likewise.
23429
23430 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
23431 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
23432 (kernel_mod_HEADERS): Added efi/time.h.
23433
23434 2006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
23435
23436 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
23437 include/grub/efi/api.h, include/grub/efi/console_control.h,
23438 include/grub/efi/efi.h, include/grub/efi/pe32.h,
23439 include/grub/i386/efi/time.h, kern/efi/efi.c,
23440 kern/i386/efi/init.c, kern/i386/efi/startup.S,
23441 and util/i386/efi/grub-mkimage.c.
23442
23443 * Makefile.in (RMKFILES): Added i386-efi.rmk.
23444
23445 * genmk.rb (PModule#rule): Do not export symbols if
23446 #{prefix}_EXPORTS is set to "no".
23447
23448 * conf/i386-efi.mk: New file.
23449 * conf/i386-efi.rmk: Likewise.
23450 * include/grub/efi/api.h: Likewise.
23451 * include/grub/efi/console_control.h: Likewise.
23452 * include/grub/efi/efi.h: Likewise.
23453 * include/grub/efi/pe32.h: Likewise.
23454 * include/grub/i386/efi/time.h: Likewise.
23455 * kern/efi/efi.c: Likewise.
23456 * kern/i386/efi/init.c: Likewise.
23457 * kern/i386/efi/startup.S: Likewise.
23458 * util/i386/efi/grub-mkimage.c: Likewise.
23459
23460 2006-04-17 Marco Gerards <marco@gnu.org>
23461
23462 * include/grub/script.h: Include <grub/parser.h> and
23463 "grub_script.tab.h".
23464 (struct grub_lexer_param): New struct.
23465 (struct grub_parser_param): Likewise.
23466 (grub_script_create_arglist): Pass the state in an argument.
23467 (grub_script_add_arglist): Likewise.
23468 (grub_script_create_cmdline): Likewise.
23469 (grub_script_create_cmdblock): Likewise.
23470 (grub_script_create_cmdif): Likewise.
23471 (grub_script_create_cmdmenu): Likewise.
23472 (grub_script_add_cmd): Likewise.
23473 (grub_script_arg_add): Likewise.
23474 (grub_script_lexer_ref): Likewise.
23475 (grub_script_lexer_deref): Likewise.
23476 (grub_script_lexer_record_start): Likewise.
23477 (grub_script_lexer_record_stop): Likewise.
23478 (grub_script_mem_record): Likewise.
23479 (grub_script_mem_record_stop): Likewise.
23480 (grub_script_malloc): Likewise.
23481 (grub_script_yylex): Likewise.
23482 (grub_script_yyparse): Likewise.
23483 (grub_script_yyerror): Likewise.
23484 (grub_script_yylex): Likewise.
23485 (grub_script_lexer_init): Return the state.
23486
23487 * normal/lexer.c (grub_script_lexer_state): Removed variable.
23488 (grub_script_lexer_done): Likewise.
23489 (grub_script_lexer_getline): Likewise.
23490 (grub_script_lexer_refs): Likewise.
23491 (script): Likewise.
23492 (newscript): Likewise.
23493 (record): Likewise.
23494 (recording): Likewise.
23495 (recordpos): Likewise.
23496 (recordlen): Likewise.
23497 (grub_script_lexer_init): Return the state instead of setting
23498 global variables.
23499 (grub_script_lexer_ref): Use the newly added argument for state
23500 instead of globals.
23501 (grub_script_lexer_deref): Likewise.
23502 (grub_script_lexer_record_start): Likewise.
23503 (grub_script_lexer_record_stop): Likewise.
23504 (recordchar): Likewise.
23505 (nextchar): Likewise.
23506 (grub_script_yylex2): Likewise.
23507 (grub_script_yylex): Likewise.
23508 (grub_script_yyerror): Likewise.
23509
23510 * normal/parser.y (func_mem): Removed variable.
23511 (menu_entry): Likewise.
23512 (err): Likewise.
23513 (%lex-param): New parser option.
23514 (%parse-param): Likewise.
23515 (script): Always return the AST.
23516 (argument): Pass the state around.
23517 (arguments): Likewise.
23518 (grubcmd): Likewise.
23519 (commands): Likewise.
23520 (function): Likewise.
23521 (menuentry): Likewise.
23522 (if_statement): Likewise.
23523 (if): Likewise.
23524
23525 * normal/script.c (grub_script_memused): Removed variable.
23526 (grub_script_parsed): Likewise.
23527 (grub_script_malloc): Added a state argument. Use that instead of
23528 global variables.
23529 (grub_script_mem_record): Likewise.
23530 (grub_script_mem_record_stop): Likewise.
23531 (grub_script_arg_add): Likewise.
23532 (grub_script_add_arglist): Likewise.
23533 (grub_script_create_cmdline): Likewise.
23534 (grub_script_create_cmdif): Likewise.
23535 (grub_script_create_cmdmenu): Likewise.
23536 (grub_script_add_cmd): Likewise.
23537 (grub_script_parse): Setup the state before calling the parser.
23538
23539 2006-04-16 Marco Gerards <marco@gnu.org>
23540
23541 * normal/command.c (grub_command_init): Remove the title command.
23542
23543 * normal/lexer.c (grub_script_yylex): Renamed from this...
23544 (grub_script_yylex2): ... to this.
23545 (grub_script_yylex): New function. Temporary
23546 introduced to filter some tokens.
23547 (grub_script_yyerror): Print a newline.
23548
23549 * normal/main.c (read_config_file): Output information about the
23550 lines that contain errors. Wait for a key after all lines have
23551 been processed. Don't return an empty menu.
23552
23553 * normal/parser.y (func_mem): Don't initialize.
23554 (menu_entry): Likewise.
23555 (err): New variable.
23556 (script): Don't return anything when an error was encountered.
23557 (ws, returns): Removed rules.
23558 (argument): Disabled concatenated variable support.
23559 (arguments): Remove explicit separators.
23560 (grubcmd): Likewise.
23561 (function): Likewise.
23562 (menuentry): Likewise.
23563 (if): Likewise.
23564 (commands): Likewise. Add error handling.
23565
23566 * normal/script.c (grub_script_create_cmdline): If
23567 `grub_script_parsed' is 0, assume the parser encountered an error.
23568
23569 2006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
23570
23571 * configure.ac: Add support for EFI. Fix the typo
23572 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
23573
23574 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
23575
23576 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
23577 foreign multibyte characters should be shown correctly.
23578
23579 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
23580
23581 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
23582 calculation.
23583 (read_config_file): Made it to close file before returning.
23584
23585 2006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
23586
23587 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
23588 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
23589 video/i386/pc/vbefill.c.
23590
23591 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
23592 video/i386/pc/vbefill.c.
23593
23594 * include/grub/video.h (grub_video_blit_format): New enum.
23595 (grub_video_mode_info): Added new member blit_format.
23596 (grub_video_get_blit_format): New function prototype.
23597
23598 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
23599 function prototype.
23600 (grub_video_vbe_map_rgb): Likewise.
23601 (grub_video_vbe_unmap_color): Likewise.
23602
23603 * include/grub/i386/pc/vbeblit.h: New file.
23604
23605 * include/grub/i386/pc/vbefill.h: New file.
23606
23607 * video/video.c (grub_video_get_blit_format): New function.
23608 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
23609 (grub_video_vbe_map_rgb): Likewise.
23610 (grub_video_vbe_unmap_color): Likewise.
23611
23612 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
23613 optimized fills.
23614 (grub_video_vbe_blit_render_target): Changed to use more optimized
23615 blits.
23616 (grub_video_vbe_setup): Added detection for optimized settings.
23617 (grub_video_vbe_create_render_target): Likewise.
23618
23619 * video/i386/pc/vbeblit.c: New file.
23620
23621 * video/i386/pc/vbefill.c: New file.
23622
23623 2006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
23624
23625 * font/manager.c (grub_font_get_glyph): Removed font fixup from
23626 here...
23627
23628 * util/unifont2pff.rb: ... and moved it to here. Improved argument
23629 parsing to support both hex and dec ranges. If filename was missing
23630 show usage information.
23631
23632 2006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
23633
23634 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
23635 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
23636
23637 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
23638 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
23639 (video_mod_SOURCES): Added.
23640 (video_mod_CFLAGS): Likewise.
23641 (video_mod_LDFLAGS): Likewise.
23642 (gfxterm_mod_SOURCES): Likewise.
23643 (gfxterm_mod_CFLAGS): Likewise.
23644 (gfxterm_mod_LDFLAGS): Likewise.
23645 (videotest_mod_SOURCES): Likewise.
23646 (videotest_mod_CFLAGS): Likewise.
23647 (videotest_mod_LDFLAGS): Likewise.
23648 (vesafb_mod_SOURCES): Removed.
23649 (vesafb_mod_CFLAGS): Likewise.
23650 (vesafb_mod_LDFLAGS): Likewise.
23651 (vga_mod_SOURCES): Likewise.
23652 (vga_mod_CFLAGS): Likewise.
23653 (vga_mod_LDFLAGS): Likewise.
23654
23655 * commands/videotest.c: New file.
23656
23657 * font/manager.c (fill_with_default_glyph): Modified to use
23658 grub_font_glyph.
23659 (grub_font_get_glyph): Likewise.
23660 (fontmanager): Renamed from this...
23661 (font_manager): ... to this.
23662
23663 * include/grub/font.h (grub_font_glyph): Added new structure.
23664 (grub_font_get_glyph): Modified to use grub_font_glyph.
23665
23666 * include/grub/misc.h (grub_abs): Added as inline function.
23667
23668 * include/grub/video.h: New file.
23669
23670 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
23671 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
23672 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
23673 (grub_vbe_get_controller_info): Renamed from this...
23674 (grub_vbe_bios_get_controller_info): ... to this.
23675 (grub_vbe_get_mode_info): Renamed from this...
23676 (grub_vbe_bios_get_mode_info): ... to this.
23677 (grub_vbe_set_mode): Renamed from this...
23678 (grub_vbe_bios_set_mode): ... to this.
23679 (grub_vbe_get_mode): Renamed from this...
23680 (grub_vbe_bios_get_mode): ... to this.
23681 (grub_vbe_set_memory_window): Renamed from this...
23682 (grub_vbe_bios_set_memory_window): ... to this.
23683 (grub_vbe_get_memory_window): Renamed from this...
23684 (grub_vbe_bios_get_memory_window): ... to this.
23685 (grub_vbe_set_scanline_length): Renamed from this...
23686 (grub_vbe_set_scanline_length): ... to this.
23687 (grub_vbe_get_scanline_length): Renamed from this...
23688 (grub_vbe_bios_get_scanline_length): ... to this.
23689 (grub_vbe_set_display_start): Renamed from this...
23690 (grub_vbe_bios_set_display_start): ... to this.
23691 (grub_vbe_get_display_start): Renamed from this...
23692 (grub_vbe_bios_get_display_start): ... to this.
23693 (grub_vbe_set_palette_data): Renamed from this...
23694 (grub_vbe_bios_set_palette_data): ... to this.
23695 (grub_vbe_set_pixel_rgb): Removed.
23696 (grub_vbe_set_pixel_index): Likewise.
23697
23698 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
23699 from this...
23700 (grub_vbe_bios_get_controller_info): ... to this.
23701 (grub_vbe_get_mode_info): Renamed from this...
23702 (grub_vbe_bios_get_mode_info): ... to this.
23703 (grub_vbe_set_mode): Renamed from this...
23704 (grub_vbe_bios_set_mode): ... to this.
23705 (grub_vbe_get_mode): Renamed from this...
23706 (grub_vbe_bios_get_mode): ... to this.
23707 (grub_vbe_set_memory_window): Renamed from this...
23708 (grub_vbe_bios_set_memory_window): ... to this.
23709 (grub_vbe_get_memory_window): Renamed from this...
23710 (grub_vbe_bios_get_memory_window): ... to this.
23711 (grub_vbe_set_scanline_length): Renamed from this...
23712 (grub_vbe_set_scanline_length): ... to this.
23713 (grub_vbe_get_scanline_length): Renamed from this...
23714 (grub_vbe_bios_get_scanline_length): ... to this.
23715 (grub_vbe_set_display_start): Renamed from this...
23716 (grub_vbe_bios_set_display_start): ... to this.
23717 (grub_vbe_get_display_start): Renamed from this...
23718 (grub_vbe_bios_get_display_start): ... to this.
23719 (grub_vbe_set_palette_data): Renamed from this...
23720 (grub_vbe_bios_set_palette_data): ... to this.
23721 (grub_vbe_bios_get_controller_info): Fixed problem with registers
23722 getting corrupted after calling it. Added more pushes and pops.
23723 (grub_vbe_bios_set_mode): Likewise.
23724 (grub_vbe_bios_get_mode): Likewise.
23725 (grub_vbe_bios_get_memory_window): Likewise.
23726 (grub_vbe_bios_set_scanline_length): Likewise.
23727 (grub_vbe_bios_get_scanline_length): Likewise.
23728 (grub_vbe_bios_get_display_start): Likewise.
23729 (grub_vbe_bios_set_palette_data): Likewise.
23730
23731 * normal/cmdline.c (cl_set_pos): Refresh the screen.
23732 (cl_insert): Likewise.
23733 (cl_delete): Likewise.
23734
23735 * term/gfxterm.c: New file.
23736
23737 * term/i386/pc/vesafb.c: Removed file.
23738
23739 * video/video.c: New file.
23740
23741 * video/i386/pc/vbe.c (real2pm): Added new function.
23742 (grub_video_vbe_draw_pixel): Likewise.
23743 (grub_video_vbe_get_video_ptr): Likewise.
23744 (grub_video_vbe_get_pixel): Likewise
23745 (grub_video_vbe_init): Likewise.
23746 (grub_video_vbe_fini): Likewise.
23747 (grub_video_vbe_setup): Likewise.
23748 (grub_video_vbe_get_info): Likewise.
23749 (grub_video_vbe_set_palette): Likewise.
23750 (grub_video_vbe_get_palette): Likewise.
23751 (grub_video_vbe_set_viewport): Likewise.
23752 (grub_video_vbe_get_viewport): Likewise.
23753 (grub_video_vbe_map_color): Likewise.
23754 (grub_video_vbe_map_rgb): Likewise.
23755 (grub_video_vbe_map_rgba): Likewise.
23756 (grub_video_vbe_unmap_color): Likewise.
23757 (grub_video_vbe_fill_rect): Likewise.
23758 (grub_video_vbe_blit_glyph): Likewise.
23759 (grub_video_vbe_blit_bitmap): Likewise.
23760 (grub_video_vbe_blit_render_target): Likewise.
23761 (grub_video_vbe_scroll): Likewise.
23762 (grub_video_vbe_swap_buffers): Likewise.
23763 (grub_video_vbe_create_render_target): Likewise.
23764 (grub_video_vbe_delete_render_target): Likewise.
23765 (grub_video_vbe_set_active_render_target): Likewise.
23766 (grub_vbe_set_pixel_rgb): Remove function.
23767 (grub_vbe_set_pixel_index): Likewise.
23768 (index_color_mode): Remove static variable.
23769 (active_mode): Likewise.
23770 (framebuffer): Likewise.
23771 (bytes_per_scan_line): Likewise.
23772 (grub_video_vbe_adapter): Added new static variable.
23773 (framebuffer): Likewise.
23774 (render_target): Likewise.
23775 (initial_mode): Likewise.
23776 (mode_in_use): Likewise.
23777 (mode_list): Likewise.
23778
23779 2006-03-10 Marco Gerards <marco@gnu.org>
23780
23781 * configure.ac (AC_INIT): Bumped to 1.93.
23782
23783 * DISTLIST: Added `include/grub/hfs.h'.
23784
23785 2006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
23786
23787 * boot/i386/pc/boot.S (general_error): Before looping, try INT
23788 18H, which might help the BIOS falling back to next boot media.
23789
23790 2006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
23791
23792 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
23793 Poe Chen <poe.poechen@gmail.com>.
23794
23795 2006-01-17 Marco Gerards <marco@gnu.org>
23796
23797 * include/grub/normal.h: Include <grub/script.h>.
23798 (grub_command_list): Removed struct.
23799 (grub_command_list_t): Removed type.
23800 (grub_menu_entry): Remove members `num' and `command_list'. Add
23801 members `commands' and `sourcecode'.
23802 * include/grub/script.h: Add inclusion guards.
23803 (grub_script_cmd_menuentry): New struct.
23804 (grub_script_execute_menuentry): New prototype.
23805 (grub_script_lexer_record_start): Likewise.
23806 (grub_script_lexer_record_stop): Likewise.
23807 * normal/execute.c (grub_script_execute_menuentry): New function.
23808 * normal/lexer.c (record, recording, recordpos, recordlen): New
23809 variables.
23810 (grub_script_lexer_record_start): New function.
23811 (grub_script_lexer_record_stop): Likewise.
23812 (recordchar): Likewise.
23813 (nextchar): Likewise.
23814 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
23815 2048 as the buffer size. Add the tokens `menuentry' and `@'.
23816 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
23817 (current_menu): New variable.
23818 (free_menu): Mainly rewritten.
23819 (grub_normal_menu_addentry): New function.
23820 (read_config_file): Rewritten.
23821 * normal/menu.c (run_menu_entry): Mainly rewritten.
23822 * normal/menu_entry.c (make_screen): Rewritten the code to insert
23823 the menu entry.
23824 (run): Mainly rewritten.
23825 * normal/parser.y (menu_entry): New variable.
23826 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
23827 (menuentry): New rule.
23828 (command): Add `menuentry'.
23829 (if_statement): Allow additional returns before `fi'.
23830 * normal/script.c (grub_script_create_cmdmenu): New function.
23831
23832 2006-01-03 Marco Gerards <marco@gnu.org>
23833
23834 * INSTALL: GNU Bison is required.
23835 * configure.ac: Rewritten the test to detect Bison.
23836 * Makefile.in (YACC): New variable. Reported by Xun Sun
23837 <xun.sun.cn@gmail.com>.
23838
23839 2006-01-03 Marco Gerards <marco@gnu.org>
23840
23841 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
23842 the HFS+ filesystem to filesystem blocks.
23843 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
23844 GCC warning is silenced.
23845
23846 2006-01-03 Marco Gerards <marco@gnu.org>
23847
23848 * partmap/apple.c (apple_partition_map_iterate): Convert the data
23849 read from disk from big endian to host byte order.
23850
23851 2006-01-03 Hollis Blanchard <hollis@penguinppc.org>
23852
23853 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
23854 documentation.
23855 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
23856 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
23857 embedded HFS+ filesystem.
23858 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
23859 (grub_hfs_sblock): Move from here...
23860 * include/grub/hfs.h: To here... New file.
23861 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
23862 documentation.
23863 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
23864 New macros.
23865 (grub_hfsplus_volheader): Change type of member `magic' to
23866 `grub_uint16_t'.
23867 (grub_hfsplus_data): Add new member `embedded_offset'.
23868 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
23869 returned block.
23870 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
23871 Calculate the offset.
23872
23873 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
23874
23875 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
23876 Removed.
23877 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
23878
23879 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
23880
23881 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
23882 ENV->NAME is NULL after allocating ENV->VALUE.
23883
23884 2005-12-25 Marco Gerards <marco@gnu.org>
23885
23886 * kern/env.c (grub_env_set): Rewritten the error handling code.
23887
23888 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
23889
23890 * geninit.sh: Made more robust, and more portable.
23891
23892 2005-12-25 Marco Gerards <marco@gnu.org>
23893
23894 Add support for Apple HFS+ filesystems.
23895
23896 * fs/hfsplus.c: New file.
23897
23898 * DISTLIST: Added `fs/hfsplus.c'.
23899
23900 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
23901 (hfsplus_mod_SOURCES): New variable.
23902 (hfsplus_mod_CFLAGS): Likewise.
23903 (hfsplus_mod_LDFLAGS): Likewise.
23904 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
23905 (grub_setup_SOURCES): Likewise.
23906 (grub_mkdevicemap_SOURCES): Likewise.
23907 (grub_emu_SOURCES): Likewise.
23908 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
23909
23910 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
23911
23912 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
23913
23914 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
23915
23916 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
23917 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
23918 include/grub/parser.h, include/grub/script.h, kern/parser.c,
23919 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
23920 normal/lexer.c, normal/parser.y, normal/script.c, and
23921 partmap/gpt.c.
23922 Removed kern/sparc64/cache.c.
23923
23924 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
23925 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
23926 grub_emu_init.c.
23927
23928 * configure.ac (AC_INIT): Bumped to 1.92.
23929
23930 2005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
23931
23932 * kern/err.c (grub_error_push): Added new function to support error
23933 stacks.
23934 (grub_error_pop): Likewise.
23935 (grub_error_stack_items): New local variable to support error stacks.
23936 (grub_error_stack_pos): Likewise.
23937 (grub_error_stack_assert): Likewise.
23938 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
23939 stack depth.
23940 (grub_print_error): Added support to print errors from error stack.
23941
23942 * include/grub/err.h (grub_error_push): Added function prototype.
23943 (grub_error_pop): Likewise.
23944
23945 2005-12-09 Hollis Blanchard <hollis@penguinppc.org>
23946
23947 * configure.ac: Accept `powerpc64' as host_cpu.
23948 (amd64): Rename to `biarch32'.
23949
23950 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
23951 non-cacheline-aligned addresses.
23952
23953 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
23954 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
23955 if `size' is non-zero.
23956
23957 2005-12-03 Marco Gerards <mgerards@xs4all.nl>
23958
23959 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
23960 and `cd' to make sure the filename is not prefixed with a
23961 directory name.
23962 (pkgdata_MODULES): Add `gpt.mod'.
23963 (gpt_mod_SOURCES): New variable.
23964 (gpt_mod_CFLAGS): Likewise.
23965 (gpt_mod_LDFLAGS): Likewise.
23966
23967 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
23968
23969 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
23970 New macro.
23971
23972 * partmap/gpt.c: New file.
23973
23974 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
23975 GPT partition map is detected.
23976
23977 2005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
23978
23979 * commands/i386/pc/play.c: New file.
23980 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
23981 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
23982 macros.
23983
23984 2005-11-27 Marco Gerards <mgerards@xs4all.nl>
23985
23986 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
23987 ((unused))' to silence gcc warning.
23988
23989 2005-11-26 Hollis Blanchard <hollis@penguinppc.org>
23990
23991 * configure.ac: Correct `AC_PROG_YACC' test.
23992
23993 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
23994
23995 * util/powerpc/ieee1275/grub-install.in: Run the mount point
23996 check before installing files.
23997
23998 2005-11-22 Mike Small <smallm@panix.com>
23999
24000 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
24001 number regex so multidigit numbers are recognized correctly.
24002
24003 2005-11-22 Mike Small <smallm@panix.com>
24004
24005 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
24006 debugging message before attempting to claim memory.
24007 (grub_rescue_cmd_initrd): Add a claim debugging message and try
24008 multiple addresses in case of failure.
24009
24010 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
24011
24012 * term/tparm.c (get_space): Remove empty `if' statement.
24013
24014 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
24015
24016 * kern/parser.c (check_varstate): Rename `state' to 's'.
24017
24018 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
24019
24020 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
24021 variable definitions to the beginning of each function. Sort stack
24022 variables by size.
24023 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
24024 `buf' argument to `char *'.
24025
24026 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
24027
24028 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
24029 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
24030 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
24031 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
24032 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
24033 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
24034 configfile.mod, search.mod, gzio.mod and test.mod.
24035 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
24036 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
24037 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
24038 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
24039 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
24040 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
24041 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
24042 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
24043 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
24044 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
24045 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
24046 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
24047 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
24048 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
24049 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
24050 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
24051 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
24052 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
24053 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
24054 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
24055 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
24056 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
24057 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
24058
24059 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
24060 `grep --include'.
24061 (pkgdata_MODULES): Add test.mod.
24062
24063 2005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
24064
24065 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
24066 appending to variables with "+=".
24067 (PModule): Use full pathname to generate *.lst filenames.
24068
24069 * Makefile.in: Fixed list rules moved from genmk.rb.
24070 (.DELETE_ON_ERROR): New special target.
24071 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
24072
24073 * conf/i386-pc.rmk: Include conf/common.mk.
24074 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
24075 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
24076 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
24077 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
24078 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
24079 configfile.mod, search.mod, gzio.mod and test.mod.
24080 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
24081 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
24082 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
24083 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
24084 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
24085 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
24086 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
24087 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
24088 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
24089 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
24090 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
24091 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
24092 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
24093 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
24094 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
24095 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
24096 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
24097 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
24098 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
24099 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
24100 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
24101 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
24102 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
24103 here...
24104 * conf/common.rmk: ... to here. New file.
24105
24106 * conf/common.mk: New file.
24107
24108 2005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
24109
24110 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
24111 (grub_script.tab.c): ... here.
24112
24113 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
24114 (grub_script.tab.c): ... here.
24115
24116 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
24117 (grub_script.tab.c): ... here.
24118
24119 * normal/command.c (grub_command_find): Fixed a memory leak of
24120 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
24121
24122 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
24123
24124 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
24125 "@" which marks the start of a comment on ARM.
24126 (VARIABLE): Likewise.
24127
24128 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
24129
24130 Add support for Linux/ADFS partition tables.
24131
24132 * partmap/acorn.c: New file.
24133
24134 * include/grub/acorn_filecore.h: Likewise.
24135
24136 * DISTLIST: Added `partmap/acorn.c' and
24137 `include/grub/acorn_filecore.h'.
24138
24139 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
24140 `partmap/acorn.c'.
24141 (pkgdata_MODULES): Add `acorn.mod'.
24142 (acorn_mod_SOURCES): New variable.
24143 (acorn_mod_CFLAGS): Likewise.
24144
24145 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
24146 `partmap/acorn.c'.
24147 (pkgdata_MODULES): Add `acorn.mod'.
24148 (acorn_mod_SOURCES): New variable.
24149 (acorn_mod_CFLAGS): Likewise.
24150
24151 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
24152 (pkgdata_MODULES): Add `acorn.mod'.
24153 (acorn_mod_SOURCES): New variable.
24154 (acorn_mod_CFLAGS): Likewise.
24155 (acorn_mod_LDFLAGS): Likewise.
24156
24157 * include/types.h (grub_disk_addr_t): New typedef.
24158
24159 2005-11-13 Marco Gerards <mgerards@xs4all.nl>
24160
24161 * geninit.sh: New file.
24162
24163 * geninitheader.sh: Likewise.
24164
24165 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
24166 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
24167 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
24168 * commands/configfile.c (grub_configfile_init)
24169 (grub_configfile_fini): Likewise.
24170 * commands/default.c (grub_default_init, grub_default_fini):
24171 Likewise.
24172 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
24173 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
24174 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
24175 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
24176 Likewise.
24177 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
24178 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
24179 Likewise.
24180 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
24181 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
24182 Likewise.
24183 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
24184 Likewise.
24185 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
24186 Likewise.
24187 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
24188 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
24189 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
24190 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
24191 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
24192 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
24193 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
24194 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
24195 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
24196 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
24197 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
24198 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
24199 * partmap/amiga.c (grub_amiga_partition_map_init)
24200 (grub_amiga_partition_map_fini): Likewise.
24201 * partmap/apple.c (grub_apple_partition_map_init)
24202 (grub_apple_partition_map_fini): Likewise.
24203 * partmap/pc.c (grub_pc_partition_map_init)
24204 (grub_pc_partition_map_fini): Likewise.
24205 * partmap/sun.c (grub_sun_partition_map_init,
24206 grub_sun_partition_map_fini): Likewise.
24207 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
24208 Likewise.
24209
24210 * util/grub-emu.c: Include <grub_modules_init.h>.
24211 (main): Don't initialize and de-initialize any modules directly,
24212 use `grub_init_all' and `grub_fini_all' instead.
24213
24214 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
24215 `grub_vesafb_mod_init'.
24216 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
24217 all users.
24218 * term/i386/pc/vga.c (grub_vga_init): Renamed to
24219 `grub_vga_mod_init'. Updated all users.
24220 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
24221
24222 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
24223 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
24224 rules.
24225
24226 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
24227 Generate a function to initialize the module in utilities.
24228 Updated all callers.
24229 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
24230 initialize the module in utilities. Updated all callers.
24231
24232 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
24233
24234 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
24235 escape sequence and a literal ^L to clear the screen.
24236
24237 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
24238 when returning from Open Firmware.
24239
24240 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
24241
24242 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
24243 (grub_ofconsole_height): Likewise.
24244 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
24245 manually insert a '\n'.
24246 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
24247 `grub_ofconsole_height'. Return early if these are already set.
24248
24249 2005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
24250
24251 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
24252 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
24253 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
24254 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
24255 and `normal/script.c'.
24256 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
24257 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
24258 (test_mod_SOURCES): New variable.
24259 (test_mod_CFLAGS): Likewise.
24260 (test_mod_LDFLAGS): Likewise.
24261 (pkgdata_MODULES): Add `test.mod'.
24262 (grub_script.tab.c): New rule.
24263 (grub_script.tab.h): Likewise.
24264
24265 2005-11-07 Marco Gerards <mgerards@xs4all.nl>
24266
24267 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
24268 `commands/test.c', `normal/execute.c', `normal/lexer.c',
24269 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
24270 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
24271 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
24272 (test_mod_SOURCES): New variable.
24273 (test_mod_CFLAGS): Likewise.
24274 (pkgdata_MODULES): Add `test.mod'.
24275 (grub_script.tab.c): New rule.
24276 (grub_script.tab.h): Likewise.
24277
24278 2005-11-06 Marco Gerards <mgerards@xs4all.nl>
24279
24280 Add initial scripting support.
24281
24282 * commands/test.c: New file.
24283 * include/grub/script.h: Likewise.
24284 * normal/execute.c: Likewise.
24285 * normal/function.c: Likewise.
24286 * normal/lexer.c: Likewise.
24287 * normal/parser.y: Likewise.
24288 * normal/script.c: Likewise.
24289
24290 * configure.ac: Add `AC_PROG_YACC' test.
24291
24292 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
24293 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
24294 `normal/function.c' and `normal/script.c'.
24295 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
24296 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
24297 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
24298 variables.
24299 (pkgdata_MODULES): Add `test.mod'.
24300 (grub_script.tab.c): New rule.
24301 (grub_script.tab.h): Likewise.
24302
24303 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
24304
24305 * include/grub/normal.h (grub_test_init): New prototype.
24306 (grub_test_fini): Likewise.
24307
24308 * normal/command.c: Include <grub/script.h>.
24309 (grub_command_execute): Rewritten.
24310
24311 * util/grub-emu.c (main): Call `grub_test_init' and
24312 `grub_test_fini'.
24313
24314 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
24315
24316 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
24317 to 0.
24318 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
24319 there are no pending characters.
24320
24321 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
24322
24323 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
24324 `grub_strndup' to drop device arguments. Replace unnecessary
24325 `grub_strndup' with `grub_strdup'.
24326
24327 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
24328
24329 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
24330 `debug' environment variable has been set.
24331
24332 2005-11-02 Hollis Blanchard <hollis@penguinppc.org>
24333
24334 * Makefile.in (install-local): Use $(DATA).
24335 (uninstall): Likewise.
24336 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
24337 (sbin_UTILITIES): ... to here.
24338 (sbin_SCRIPTS): New variable.
24339 (grub_install_SOURCES): New variable.
24340 * util/powerpc/ieee1275/grub-install.in: New file.
24341 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
24342 variable.
24343 (add_segments): Call `grub_util_get_path'.
24344
24345 2005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
24346
24347 From Timothy Baldwin:
24348 * commands/ls.c (grub_ls_list_files): Close FILE with
24349 grub_file_close.
24350 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
24351
24352 2005-10-24 Marco Gerards <mgerards@xs4all.nl>
24353
24354 * include/grub/parser.h: New file.
24355
24356 * kern/parser.c: Likewise.
24357
24358 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
24359 (grub_setup_SOURCES): Likewise.
24360 (grub_probefs_SOURCES): Likewise.
24361 (grub_emu_SOURCES): Likewise.
24362 (kernel_img_HEADERS): Add `parser.h'.
24363
24364 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
24365 (grub_emu_SOURCES): Add `kern/parser.c'.
24366 (grubof_SOURCES): Likewise.
24367
24368 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
24369 (grubof_SOURCES): Add `kern/parser.c'.
24370
24371 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
24372
24373 * kern/misc.c (grub_split_cmdline): Removed function.
24374
24375 * kern/rescue.c: Include <grub/parser.h>.
24376 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
24377 of `grub_split_cmdline'.
24378
24379 * normal/command.c: Include <grub/parser.h>.
24380 (grub_command_execute): Use `grub_parser_split_cmdline' instead
24381 of `grub_split_cmdline'.
24382
24383 * normal/completion.c: Include <grub/parser.h>.
24384 (cmdline_state): New variable.
24385 (iterate_dir): End the filename with a quote depending on the
24386 command line state.
24387 (get_state): new function.
24388 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
24389 split the arguments and determine the current argument. When the
24390 argument string is not quoted, escape all spaces.
24391
24392 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
24393
24394 * normal/sparc64/setjmp.S: New file.
24395
24396 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
24397
24398 * include/grub/sparc64/libgcc.h: New file.
24399 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
24400 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
24401 normal/sparc64/setjmp.c.
24402
24403 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
24404
24405 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
24406 * kern/sparc64/cache.S: New file.
24407 * kern/sparc64/cache.c: Removed.
24408 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
24409 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
24410 -mtune=ultrasparc.
24411 (COMMON_LDFLAGS): Add -melf64_sparc.
24412 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
24413 (grubof_SOURCES): Use cache.S instead of cache.c.
24414 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
24415 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
24416 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
24417 commented though.
24418 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
24419 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
24420 (linux_mod_CFLAGS): Commented out.
24421 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
24422 out because module isn't built.
24423 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
24424 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
24425 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
24426 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
24427 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
24428 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
24429 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
24430 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
24431 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
24432 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
24433 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
24434 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
24435 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
24436 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
24437
24438 2005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
24439
24440 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
24441 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
24442 longer, because HFS should not be used on PC.
24443
24444 2005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
24445
24446 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
24447 consistently within the loop.
24448
24449 2005-10-15 Marco Gerards <mgerards@xs4all.nl>
24450
24451 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
24452 directory can not be read.
24453
24454 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
24455
24456 * configure.ac (AC_INIT): Increase the version number to 1.91.
24457
24458 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
24459 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
24460 term/i386/pc/serial.c.
24461
24462 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
24463
24464 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
24465 file size must be permitted.
24466
24467 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
24468 between %ah and %al.
24469
24470 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
24471
24472 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
24473 grub_uint64_t.
24474 Call the hook with a NUL-terminated filename.
24475 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
24476 grub_cpu_to_be32.
24477
24478 * kern/term.c (cursor_state): New variable.
24479 (grub_term_set_current): Reset the cursor state on a new
24480 terminal.
24481 (grub_setcursor): Rewritten to use CURSOR_STATE.
24482 (grub_getcursor): New function.
24483
24484 * include/grub/term.h (grub_getcursor): New prototype.
24485
24486 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
24487 integers on ARM. Reported by Timothy Baldwin
24488 <T.E.Baldwin99@members.leeds.ac.uk>.
24489
24490 2005-10-11 Marco Gerards <mgerards@xs4all.nl>
24491
24492 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
24493 allocated.
24494 (grub_sfs_dir): Likewise.
24495
24496 2005-10-09 Marco Gerards <mgerards@xs4all.nl>
24497
24498 Add support for the SFS filesystem.
24499
24500 * fs/sfs.c: New file.
24501
24502 * DISTLIST: Added `fs/sfs.c'.
24503
24504 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
24505 (grub_probefs_SOURCES): Likewise.
24506 (grub_emu_SOURCES): Likewise.
24507 (pkgdata_MODULES): Add `sfs.mod'.
24508 (sfs_mod_SOURCES): New variable.
24509 (sfs_mod_CFLAGS): Likewise.
24510 (sfs_mod_LDFLAGS): Likewise.
24511
24512 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
24513 (pkgdata_MODULES): Add `sfs.mod'.
24514 (sfs_mod_SOURCES): New variable.
24515 (sfs_mod_CFLAGS): Likewise.
24516
24517 * util/grub-emu.c (main): Call `grub_sfs_init' and
24518 `grub_sfs_fini'.
24519
24520 * include/grub/fs.h (grub_sfs_init): New prototype.
24521 (grub_sfs_fini): Likewise.
24522
24523 2005-10-07 Marco Gerards <mgerards@xs4all.nl>
24524
24525 Add support for the AFFS filesystem.
24526
24527 * fs/affs.c: New file.
24528
24529 * DISTLIST: Added `fs/affs.c'.
24530
24531 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
24532 (grub_probefs_SOURCES): Likewise.
24533 (grub_emu_SOURCES): Likewise.
24534 (pkgdata_MODULES): Add `affs.mod'.
24535 (affs_mod_SOURCES): New variable.
24536 (affs_mod_CFLAGS): Likewise.
24537 (affs_mod_LDFLAGS): Likewise.
24538
24539 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
24540 (pkgdata_MODULES): Add `affs.mod'.
24541 (affs_mod_SOURCES): New variable.
24542 (affs_mod_CFLAGS): Likewise.
24543
24544 * util/grub-emu.c (main): Call `grub_affs_init' and
24545 `grub_affs_fini'.
24546
24547 * include/grub/fs.h (grub_affs_init): New prototype.
24548 (grub_affs_fini): Likewise.
24549
24550 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
24551
24552 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
24553
24554 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
24555
24556 * configure.ac: Accept `x86_64' as host_cpu. In that case add
24557 `-m32' to CFLAGS.
24558
24559 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
24560 linking.
24561
24562 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
24563 (COMMON_LDFLAGS): New variable.
24564 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
24565 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
24566 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
24567 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
24568 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
24569 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
24570 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
24571 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
24572 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
24573 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
24574 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
24575 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
24576 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
24577 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
24578 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
24579 variables.
24580 (normal_mod_ASFLAGS): Add `-m32'.
24581
24582 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
24583 (grub_host_size_t, grub_host_ssize_t): New types.
24584 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
24585 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
24586 `GRUB_HOST_SIZEOF_VOID_P'.
24587
24588 * include/grub/kernel.h (struct grub_module_header): Type of
24589 member offset changed to `grub_host_off_t'. Type of member size
24590 changed to `grub_host_size_t'.
24591 (struct grub_module_info): Type of member offset changed to
24592 `grub_host_off_t'. Type of member size changed to
24593 `grub_host_size_t'.
24594
24595 2005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
24596
24597 Make GRUB's kernel compliant to Multiboot Specification.
24598
24599 * kern/i386/pc/startup.S (multiboot_header): New label.
24600 (multiboot_entry): Likewise.
24601 (multiboot_trampoline): Likewise.
24602
24603 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
24604 Increased to 0x4A0.
24605
24606 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
24607 put parentheses after a question mark.
24608 [!GRUB_UTIL] (my_mod): New variable.
24609
24610 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
24611
24612 2005-09-28 Marco Gerards <mgerards@xs4all.nl>
24613
24614 Adds support for the XFS filesystem. Btrees are not supported
24615 yet.
24616
24617 * fs/xfs.c: New file.
24618
24619 * DISTLIST: Added `fs/xfs.c'.
24620
24621 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
24622 (grub_probefs_SOURCES): Likewise.
24623 (grub_emu_SOURCES): Likewise.
24624 (pkgdata_MODULES): Add `xfs.mod'.
24625 (xfs_mod_SOURCES): New variable.
24626 (xfs_mod_CFLAGS): Likewise.
24627
24628 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
24629 (pkgdata_MODULES): Add `xfs.mod'.
24630 (xfs_mod_SOURCES): New variable.
24631 (xfs_mod_CFLAGS): Likewise.
24632
24633 * util/grub-emu.c (main): Call `grub_xfs_init' and
24634 `grub_xfs_fini'.
24635
24636 * include/grub/fs.h (grub_xfs_init): New prototype.
24637 (grub_xfs_fini): Likewise.
24638
24639
24640 2005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
24641
24642 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
24643 color modes, allow greater than 16 colors to be configured as
24644 a default palette.
24645
24646 2005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
24647
24648 * normal/completion.c (complete_arguments): Add the qualifier
24649 const into OPTIONS.
24650
24651 From Omniflux <omniflux+lists@omniflux.com>:
24652 * include/grub/terminfo.h: New file.
24653 * include/grub/tparm.h: Likewise.
24654 * include/grub/i386/pc/serial.h: Likewise.
24655 * term/terminfo.c: Likewise.
24656 * term/tparm.c: Likewise.
24657 * term/i386/pc/serial.c: Likewise.
24658 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
24659 serial.mod.
24660 (terminfo_mod_SOURCES): New variable.
24661 (terminfo_mod_CFLAGS): Likewise.
24662 (serial_mod_SOURCES): Likewise.
24663 (serial_mod_CFLAGS): Likewise.
24664
24665 2005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
24666
24667 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
24668 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
24669 and kern/powerpc/ieee1275/cmain.c, respectively.
24670
24671 * boot/powerpc/ieee1275/crt0.S: Moved to ...
24672 * kern/powerpc/ieee1275/crt0.S: ... here.
24673
24674 * boot/powerpc/ieee1275/cmain.c: Moved to ...
24675 * kern/powerpc/ieee1275/cmain.c: ... here.
24676
24677 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
24678 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
24679 instead of boot/powerpc/ieee1275/crt0.S and
24680 boot/powerpc/ieee1275/cmain.c, respectively.
24681
24682 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
24683 sectors. It was not used anyway.
24684
24685 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
24686
24687 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
24688 `unused parameter' warning.
24689
24690 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
24691
24692 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
24693 function.
24694 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
24695 getcharwidth.
24696
24697 2005-08-28 Marco Gerards <metgerards@student.han.nl>
24698
24699 * include/grub/normal.h (enum grub_completion_type): Added
24700 `GRUB_COMPLETION_TYPE_ARGUMENT'.
24701
24702 * normal/cmdline.c (print_completion): Handle
24703 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
24704 * normal/menu_entry.c (store_completion): Likewise.
24705
24706 * normal/completion.c (complete_arguments): New function.
24707 (grub_normal_do_completion): Call `complete_arguments' when the
24708 current words start with a dash.
24709
24710 2005-08-27 Marco Gerards <metgerards@student.han.nl>
24711
24712 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
24713 `gzio.mod' instead of `io.mod').
24714
24715 2005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
24716
24717 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
24718 (DISTDIRS): Added io and video.
24719 Rewrite the search routine to make an output consistently.
24720
24721 * DISTLIST: Added conf/sparc64-ieee1275.mk,
24722 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
24723 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
24724 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
24725 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
24726 util/powerpc/ieee1275/misc.c.
24727
24728 * include/grub/gzio.h: New file.
24729 * io/gzio.c: Likewise.
24730
24731 * kern/file.c (grub_file_close): Call grub_device_close only if
24732 FILE->DEVICE is not NULL.
24733
24734 * include/grub/mm.h [!NULL] (NULL): New macro.
24735
24736 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
24737
24738 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
24739 (pkgdata_MODULES): Added gzio.mod.
24740 (gzio_mod_SOURCES): New variable.
24741 (gzio_mod_CFLAGS): Likewise.
24742
24743 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
24744 (pkgdata_MODULES): Added gzio.mod.
24745 (gzio_mod_SOURCES): New variable.
24746 (gzio_mod_CFLAGS): Likewise.
24747
24748 * commands/cat.c: Include grub/gzio.h.
24749 (grub_cmd_cat): Use grub_gzfile_open instead of
24750 grub_file_open.
24751
24752 * commands/cmp.c: Include grub/gzio.h.
24753 (grub_cmd_cmp): Use grub_gzfile_open instead of
24754 grub_file_open.
24755
24756 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
24757 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
24758 grub_file_open.
24759 (grub_rescue_cmd_module): Likewise.
24760
24761 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
24762
24763 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
24764 kern/sparc64/ieee1275/init.c because it contains _start.
24765 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
24766
24767 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
24768
24769 * configure.ac: Add support for sparc64 host with ieee1275
24770 firmware.
24771 * configure: Generated from configure.ac.
24772 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
24773 instead of int.
24774 (grub_ofdisk_read): Likewise.
24775 (grub_ofdisk_open): Use %p to print pointer values, and cast the
24776 pointers as (void *) to remove a warning.
24777 (grub_ofdisk_close): Likewise.
24778 (grub_ofdisk_read): Likewise.
24779 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
24780 returns, so make it return void to remove a warning.
24781 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
24782 Corresponding prototype change.
24783 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
24784 values, and cast the pointers as (void *) to remove a warning.
24785 (grub_mm_dump): Likewise.
24786 * conf/sparc64-ieee1275.mk: New file.
24787 * conf/sparc64-ieee1275.rmk: Likewise.
24788 * include/grub/sparc64/setjmp.h: Likewise.
24789 * include/grub/sparc64/types.h: Likewise.
24790 * include/grub/sparc64/ieee1275/console.h: Likewise.
24791 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
24792 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
24793 * include/grub/sparc64/ieee1275/time.h: Likewise.
24794 * kern/sparc64/cache.c: Likewise.
24795 * kern/sparc64/dl.c: Likewise.
24796 * kern/sparc64/ieee1275/init.c: Likewise.
24797 * kern/sparc64/ieee1275/openfw.c: Likewise.
24798
24799 2005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
24800
24801 * util/console.c (grub_ncurses_putchar): If C is greater than
24802 0x7f, set C to a question mark.
24803 (grub_ncurses_getcharwidth): New function.
24804 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
24805 getcharwidth.
24806
24807 * normal/menu.c (print_entry): Made aware of Unicode. First,
24808 convert TITLE to UCS-4, and predict the cursor position by
24809 grub_getcharwidth.
24810
24811 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
24812 const to SRC.
24813 * kern/misc.c (grub_utf16_to_utf8): Likewise.
24814
24815 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
24816
24817 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
24818 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
24819 grub_strcat.
24820
24821 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
24822 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
24823 grub_strcpy and grub_strlen. Take it into account that a space
24824 character is inserted as a delimiter.
24825
24826 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
24827
24828 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
24829 invalid magic in the error.
24830
24831 * commands/search.c: New file.
24832
24833 * util/grub-emu.c (main): Call grub_search_init and
24834 grub_search_fini.
24835
24836 * kern/rescue.c (grub_rescue_print_disks): Removed.
24837 (grub_rescue_print_devices): New function.
24838 (grub_rescue_cmd_ls): Use grub_device_iterate with
24839 grub_rescue_print_devices instead of grub_disk_dev_iterate with
24840 grub_rescue_print_disks.
24841
24842 * kern/partition.c (grub_partition_iterate): Return the result of
24843 PARTMAP->ITERATE instead of GRUB_ERRNO.
24844
24845 * kern/device.c: Include grub/partition.h.
24846 (grub_device_iterate): New function.
24847
24848 * include/grub/partition.h (grub_partition_iterate): Return int
24849 instead of grub_err_t.
24850
24851 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
24852 prototype.
24853 [GRUB_UTIL] (grub_search_fini): Likewise.
24854
24855 * include/grub/device.h (grub_device_iterate): New prototype.
24856
24857 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
24858 commands/search.c.
24859 (pkgdata_MODULES): Added search.mod.
24860 (search_mod_SOURCES): New variable.
24861 (search_mod_CFLAGS): Likewise.
24862
24863 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
24864 (pkgdata_MODULES): Added search.mod.
24865 (search_mod_SOURCES): New variable.
24866 (search_mod_CFLAGS): Likewise.
24867
24868 * commands/ls.c (grub_ls_list_disks): Renamed to ...
24869 (grub_ls_list_devices): ... this, and use grub_device_iterate.
24870 All callers changed.
24871
24872 * DISTLIST: Added commands/search.c.
24873
24874 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
24875
24876 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
24877 conversion.
24878 (grub_getcharwidth): New function.
24879
24880 * kern/misc.c (grub_utf8_to_ucs4): New function.
24881
24882 * include/grub/term.h (struct grub_term): Added a new member
24883 "getcharwidth".
24884 (grub_getcharwidth): New prototype.
24885
24886 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
24887
24888 * term/i386/pc/console.c (map_char): New function. Segregated from
24889 grub_console_putchar.
24890 (grub_console_putchar): Use map_char.
24891 (grub_console_getcharwidth): New function.
24892 (grub_console_term): Specified grub_console_getcharwidth as
24893 getcharwidth.
24894
24895 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
24896 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
24897
24898 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
24899 GRUB_ERRNO.
24900 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
24901 on grub_strtoul completely.
24902 (write_char): Declare local variables in the beginning of the
24903 function.
24904 (grub_vesafb_getcharwidth): New function.
24905 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
24906 getcharwidth.
24907
24908 2005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
24909
24910 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
24911 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
24912 commands/i386/pc/vbetest.c.
24913
24914 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
24915 call grub_vbe_get_controller_info again, because the returned
24916 information is volatile.
24917 (grub_vbe_set_video_mode): Mostly rewritten.
24918 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
24919 grub_vbe_status_t correctly.
24920 (grub_vbe_get_video_mode_info): Likewise.
24921 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
24922 several if statements.
24923
24924 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
24925 * commands/i386/pc/vbeinfo.c: ... this.
24926
24927 * commands/i386/pc/vbe_test.c: Renamed to ...
24928 * commands/i386/pc/vbetest.c: ... this.
24929
24930 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
24931 ...
24932 (grub_cmd_vbeinfo): ... this. Save video modes before
24933 iterating. Skip a video mode, if it is not available, not enough
24934 information is given or it is monochrome. Show the memory
24935 model. Leave the interpretation of MODEVAR to grub_strtoul
24936 completely.
24937 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
24938 (GRUB_MOD_FINI): Likewise.
24939
24940 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
24941 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
24942 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
24943 duplicated grub_env_get. Leave the interpretation of MODEVAR to
24944 grub_strtoul completely.
24945 (real2pm): Removed.
24946 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
24947 (GRUB_MOD_FINI): Likewise.
24948
24949 * normal/misc.c: Include grub/mm.h.
24950
24951 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
24952 vbe_list_modes with vbetest.mod and vbeinfo.mod.
24953 (vbe_list_modes_mod_SOURCES): Removed.
24954 (vbe_list_modes_mod_CFLAGS): Likewise.
24955 (vbe_test_mod_SOURCES): Likewise.
24956 (vbe_test_mod_CFLAGS): Likewise.
24957 (vbeinfo_mod_SOURCES): New variable.
24958 (vbeinfo_mod_CFLAGS): Likewise.
24959 (vbetest_mod_SOURCES): Likewise.
24960 (vbetest_mod_CFLAGS): Likewise.
24961
24962 2005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
24963
24964 * normal/misc.c: New file.
24965
24966 * DISTLIST: Added normal/misc.c.
24967
24968 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
24969 DISK to HOOK. Call HOOK with DISK.
24970 * partmap/apple.c (apple_partition_map_iterate): Likewise.
24971 * partmap/pc.c (pc_partition_map_iterate): Likewise.
24972 * partmap/sun.c (sun_partition_map_iterate): Likewise.
24973
24974 * normal/menu_entry.c (struct screen): Added a new member
24975 "completion_shown".
24976 (completion_buffer): New global variable.
24977 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
24978 (store_completion): New function.
24979 (complete): Likewise.
24980 (clear_completions): Likewise.
24981 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
24982 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
24983 a tab, call complete.
24984
24985 * normal/completion.c (disk_dev): Removed.
24986 (print_simple_completion): Likewise.
24987 (print_partition_completion): Likewise.
24988 (print_func): New global variable.
24989 (add_completion): Do not take the arguments WHAT or PRINT any
24990 longer. Added a new argument TYPE. Instead of printing directly,
24991 call PRINT_FUNC if not NULL.
24992 All callers changed.
24993 (complete_device): Use a local variable DEV instead of
24994 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
24995 (grub_normal_do_completion): Take a new argument HOOK. Do not
24996 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
24997 empty string, return NULL instead.
24998 All callers changed.
24999
25000 * normal/cmdline.c (print_completion): New function.
25001
25002 * kern/partition.c (grub_partition_iterate): Add an argument DISK
25003 to HOOK.
25004 All callers changed.
25005
25006 * kern/disk.c (grub_print_partinfo): Removed.
25007
25008 * include/grub/partition.h (struct grub_partition_map): Add a new
25009 argument DISK into HOOK of ITERATE.
25010 (grub_partition_iterate): Add a new argument DISK to HOOK.
25011
25012 * include/grub/normal.h (enum grub_completion_type): New enum.
25013 (grub_completion_type_t): New type.
25014 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
25015 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
25016 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
25017 (GRUB_COMPLETION_TYPE_FILE): Likewise.
25018 (grub_normal_do_completion): Added a new argument HOOK.
25019 (grub_normal_print_device_info): New prototype.
25020
25021 * include/grub/disk.h (grub_print_partinfo): Removed.
25022
25023 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
25024 (normal_mod_SOURCES): Likewise.
25025 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
25026 (normal_mod_SOURCES): Likewise.
25027
25028 * commands/ls.c (grub_ls_list_disks): Use
25029 grub_normal_print_device_info instead of grub_print_partinfo. Free
25030 PNAME.
25031 (grub_ls_list_files): Use grub_normal_print_device_info instead of
25032 duplicating the code.
25033
25034 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
25035
25036 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
25037 follow GCS more precisely.
25038 * commands/i386/pc/vbe_test.c: Likewise.
25039 * include/grub/i386/pc/vbe.h: Likewise.
25040 * term/i386/pc/vesafb.c: Likewise.
25041 * video/i386/pc/vbe.c: Likewise.
25042
25043 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
25044
25045 * DISTLIST: Added term/i386/pc/vesafb.c
25046 DISTLIST: Added video/i386/pc/vbe.c
25047 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
25048 DISTLIST: Added commands/i386/pc/vbe_test.c.
25049 * commands/i386/pc/vbe_list_modes.c: New file.
25050 * commands/i386/pc/vbe_test.c: Likewise.
25051 * term/i386/pc/vesafb.c: Likewise.
25052 * video/i386/pc/vbe.c: Likewise.
25053 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
25054 (grub_vbe_probe) Added prototype.
25055 (grub_vbe_set_video_mode) Likewise.
25056 (grub_vbe_get_video_mode) Likewise.
25057 (grub_vbe_get_video_mode_info) Likewise.
25058 (grub_vbe_set_pixel_rgb) Likewise.
25059 (grub_vbe_set_pixel_index) Likewise.
25060 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
25061 (pkgdata_MODULES): Added vesafb.mod.
25062 (pkgdata_MODULES): Added vbe_list_modes.mod.
25063 (pkgdata_MODULES): Added vbe_test.mod.
25064 (vbe_mod_SOURCES): Added.
25065 (vbe_mod_CFLAGS): Likewise.
25066 (vesafb_mod_SOURCES): Likewise.
25067 (vesafb_mod_CFLAGS): Likewise.
25068 (vbe_list_modes_mod_SOURCES): Likewise.
25069 (vbe_list_modes_mod_CFLAGS): Likewise.
25070 (vbe_test_mod_SOURCES): Likewise.
25071 (vbe_test_mod_CFLAGS): Likewise.
25072
25073 2005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
25074
25075 * normal/command.c (grub_command_execute): If INTERACTIVE is
25076 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
25077 CMDLINE. Disable the pager if INTERACTIVE is true.
25078 All callers are changed.
25079
25080 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
25081 before reading a config file.
25082 * normal/main.c (read_config_file): Even if a command is not
25083 found, register it if it is within an entry.
25084
25085 * util/grub-emu.c: Include sys/types.h and unistd.h.
25086 (options): Added --hold.
25087 (struct arguments): Added a new member "hold".
25088 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
25089 missing.
25090 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
25091 cleared by a debugger, if it is not zero.
25092
25093 * include/grub/normal.h (grub_command_execute): Add an argument
25094 INTERACTIVE.
25095
25096 2005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
25097
25098 * DISTLIST: Added include/grub/i386/pc/vbe.h.
25099
25100 2005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
25101
25102 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
25103 program with another one, because the old one didn't detect a bug
25104 in gcc-3.4. Always use regparm 2, because the new test is still
25105 not enough for gcc-4.0. Someone must investigate a simple test
25106 case which detects a bug in gcc-4.0.
25107
25108 2005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
25109
25110 * DISTLIST: Added normal/completion.c.
25111
25112 * normal/completion.c: New file.
25113
25114 * term/i386/pc/console.c (grub_console_getwh): New function.
25115 (grub_console_term): Assign grub_console_getwh to getwh.
25116
25117 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
25118 function is defined in normal/completion.c as
25119 grub_normal_do_completion.
25120 (grub_cmdline_get): Use grub_normal_do_completion instead of
25121 grub_tab_complete.
25122
25123 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
25124 returns non-zero, otherwise return 0.
25125 (grub_partition_iterate): First, probe the partition map. Then,
25126 call ITERATE only for this partition map.
25127
25128 * kern/misc.c (grub_strncmp): Rewritten.
25129
25130 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
25131 returns non-zero. Otherwise return 0.
25132
25133 * include/grub/partition.h (grub_partition_map_iterate): Return
25134 int instead of void.
25135
25136 * include/grub/normal.h (grub_normal_do_completion): New prototype.
25137
25138 * include/grub/misc.h (grub_strncmp): Change the type of N to
25139 grub_size_t.
25140
25141 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
25142 of void.
25143
25144 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
25145 unsigned explicitly before comparing it with I.
25146
25147 * kern/main.c (grub_env_write_root): Add the attribute unused into
25148 VAR.
25149
25150 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
25151 normal/completion.c.
25152 (normal_mod_SOURCES): Likewise.
25153 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
25154 (normal_mod_SOURCES): Likewise.
25155
25156 * normal/command.c (grub_iterate_commands): If ITERATE returns
25157 non-zero, return one immediately.
25158
25159 2005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
25160
25161 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
25162 * kern/i386/pc/startup.S: Updated Global Descriptor table's
25163 descriptions.
25164 (grub_vbe_get_controller_info): New function.
25165 (grub_vbe_get_mode_info): Likewise.
25166 (grub_vbe_set_mode): Likewise.
25167 (grub_vbe_get_mode): Likewise.
25168 (grub_vbe_set_memory_window): Likewise.
25169 (grub_vbe_get_memory_window): Likewise.
25170 (grub_vbe_set_scanline_length): Likewise.
25171 (grub_vbe_get_scanline_length): Likewise.
25172 (grub_vbe_set_display_start): Likewise.
25173 (grub_vbe_get_display_start): Likewise.
25174 (grub_vbe_set_palette_data): Likewise.
25175 * include/grub/i386/pc/vbe.h: New file.
25176
25177 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
25178
25179 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
25180 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
25181 * DISTLIST: Likewise.
25182 * kern/ieee1275/of.c: Moved to ...
25183 * kern/ieee1275/ieee1275.c: ... here.
25184
25185 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
25186
25187 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
25188 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
25189 Pass 0 as `end' parameter to grub_strtoul().
25190
25191 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
25192
25193 * include/grub/powerpc/ieee1275/console.h: Do not include
25194 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
25195 ifdef.
25196 (grub_console_cur_color): Remove i386-specific prototype.
25197 (grub_console_real_putchar): Likewise.
25198 (grub_console_checkkey): Likewise.
25199 (grub_console_getkey): Likewise.
25200 (grub_console_getxy): Likewise.
25201 (grub_console_gotoxy): Likewise.
25202 (grub_console_cls): Likewise.
25203 (grub_console_setcursor): Likewise.
25204 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
25205 Include <grub/machine/console.h>.
25206 * term/ieee1275/ofconsole.c: Likewise.
25207
25208 2005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
25209
25210 * Makefile.in (LIBLZO): New variable.
25211
25212 * configure.ac: Check for LZO version 2.
25213
25214 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
25215 lzo/lzo1x.h instead of lzo1x.h.
25216
25217 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
25218 of -llzo.
25219
25220 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
25221 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
25222
25223 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
25224 copying the data from PARTITION to P.
25225
25226 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
25227
25228 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
25229 negative, unload the module.
25230
25231 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
25232 map is "pc_partition_map" but not "pc".
25233 (usage): Fix the description. The options are --boot-image and
25234 --core-image but not --boot-file or --core-file.
25235 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
25236 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
25237 DEFAULT_DIRECTORY.
25238
25239 * util/i386/pc/grub-install.in: Do not specify --boot-file or
25240 --core-file. Specify INSTALL_DEVICE as an argument.
25241
25242 * util/console.c: Include config.h.
25243 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
25244 [HAVE_NCURSES_H]: Include ncurses.h.
25245 [HAVE_CURSES_H]: Include curses.h.
25246 [!A_NORMAL] (A_NORMAL): Defined as zero.
25247 [!A_STANDOUT] (A_STANDOUT): Likewise.
25248
25249 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
25250 -lncurses.
25251 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
25252
25253 * configure.ac: Check for curses libraries and headers.
25254
25255 * Makefile.in (LIBCURSES): New variable.
25256
25257 * genmk.rb (Script::rule): Set the executable bits.
25258
25259 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
25260 name of the PC partition map is "pc_partition_map" but not "pc".
25261
25262 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
25263
25264 * util/i386/pc/grub-install.in (grub_probefs): New variable.
25265 (modules): Likewise.
25266 (usage): Added descriptions for --modules and --grub-probefs.
25267 Handle --modules and --grub-probefs. Save the arguments in MODULES
25268 and GRUB_PROBEFS, respectively.
25269 Auto-detect a filesystem module against GRUBDIR. If the result is
25270 empty and modules are not specified explicitly, abort the
25271 installation. Add the result to MODULES.
25272
25273 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
25274 disk/powerpc/ieee1275/ofdisk.c,
25275 include/grub/powerpc/ieee1275/init.h and
25276 term/powerpc/ieee1275/ofconsole.c.
25277 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
25278 term/ieee1275/ofconsole.c.
25279
25280 * include/grub/powerpc/ieee1275/console.h: Resurrected.
25281
25282 * COPYING: Upgraded to the latest version. Only the address of the
25283 FSF office has changed.
25284
25285 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
25286
25287 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
25288 kern/ieee1275.c with kern/ieee1275/of.c.
25289
25290 * kern/ieee1275.c: Moved to ...
25291 * kern/ieee1275/of.c: ... here.
25292
25293 2005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
25294
25295 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
25296 readability.
25297
25298 * config.guess: Updated to the latest version from gnulib.
25299 * config.sub: Likewise.
25300 * install.sh: Likewise.
25301 * mkinstalldirs: Likewise.
25302
25303 * include/grub/console.h: Removed. This file is arch-specific. Do
25304 not put this in include/grub.
25305
25306 * include/grub/i386/pc/console.h: Resurrected.
25307
25308 * util/console.c: Include grub/machine/console.h instead of
25309 grub/console.h.
25310 * util/grub-emu.c: Likewise.
25311
25312 2005-08-04 Marco Gerards <metgerards@student.han.nl>
25313
25314 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
25315 hardcoded value.
25316
25317 From Vincent Pelletier <subdino2004@yahoo.fr>
25318 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
25319 Redefined to use grub_getwh.
25320 (grub_term): New member named getwh.
25321 (grub_getwh): New prototype.
25322 * kern/term.c (grub_getwh): New function.
25323 * term/i386/pc/console.c (grub_console_getwh): New function.
25324 (grub_console_term): New member `getwh'.
25325 * term/i386/pc/vga.c (grub_vga_getwh): New function.
25326 (grub_vga_term): New member `getwh'.
25327 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
25328 grub_ssize_t.
25329 (grub_ofconsole_getw): New function.
25330 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
25331 (grub_ofconsole_term): New field named getwh and new initial
25332 value.
25333
25334 2005-08-03 Hollis Blanchard <hollis@penguinppc.org>
25335
25336 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
25337 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
25338 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
25339 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
25340 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
25341 of <grub/machine/ieee1275.h>.
25342 * commands/ieee1275/reboot.c: Likewise.
25343 * boot/powerpc/ieee1275/ieee1275.c: Move ...
25344 * kern/ieee1275.c: ... to here. All users updated. Change all
25345 parameter structs to use new type `grub_ieee1275_cell_t'.
25346 * term/powerpc/ieee1275/ofconsole.c: Move ...
25347 * term/ieee1275/ofconsole.c: ... to here. All users updated.
25348 * disk/powerpc/ieee1275/ofdisk.c: Move ...
25349 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
25350 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
25351 to return int.
25352 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
25353 Remove unused prototypes. All users updated.
25354 * include/grub/powerpc/ieee1275/console.h: Removed.
25355 * include/grub/powerpc/ieee1275/ieee1275.h: Define
25356 `grub_ieee1275_cell_t'.
25357 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
25358 Cast comparisons with -1 to the correct type.
25359 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
25360 type to match `grub_ieee1275_entry_fn'.
25361
25362 2005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
25363
25364 * DISTLIST: Added util/i386/pc/grub-probefs.c.
25365
25366 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
25367 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
25368 partmap/sun.c.
25369 (grub_probefs_SOURCES): New variable.
25370
25371 * util/i386/pc/grub-probefs.c: New file.
25372
25373 * util/i386/pc/grub-setup.c (main): Call
25374 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
25375 grub_hfs_init and grub_jfs_init to initialize the system. Call
25376 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
25377 grub_pc_partition_map_fini to finish the system.
25378
25379 2005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
25380
25381 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
25382 function.
25383 (grub_multiboot_load_elf32): Likewise.
25384 (grub_multiboot_is_elf64): Likewise.
25385 (grub_multiboot_load_elf64): Likewise.
25386 (grub_multiboot_load_elf): Likewise.
25387 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
25388 an ELF32 or ELF64 file.
25389 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
25390
25391 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
25392 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
25393 NULL before calling FS->LABEL.
25394 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
25395 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
25396 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
25397 before calling FS->LABEL.
25398
25399 2005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
25400
25401 * util/i386/pc/grub-install.in (datadir): New variable.
25402 (libdir): Removed.
25403 (pkgdatadir): New variable.
25404 (pkglibdir): Removed.
25405
25406 2005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
25407
25408 * DISTLIST: Added util/i386/pc/grub-install.in.
25409
25410 * util/i386/pc/grub-install.in: New file.
25411
25412 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
25413 (grub_install_SOURCES): Likewise.
25414
25415 * genmk.rb: Added support for scripts.
25416 (Script): New class.
25417 (scripts): New variable.
25418
25419 * Makefile.in (install-local): Install sbin_SCRIPTS by
25420 INSTALL_SCRIPT.
25421 (uninstall): Remove sbin_SCRIPTS.
25422
25423 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
25424 device, try to get a GRUB device by
25425 grub_util_biosdisk_get_grub_dev.
25426 Free DEST_DEV.
25427
25428 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
25429 description for --device-map.
25430
25431 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
25432
25433 Change the semantics of variable hooks. They now return strings
25434 instead of error values.
25435
25436 * util/i386/pc/grub-setup.c: Include grub/env.h.
25437 (setup): Use grub_device_set_root instead of grub_env_set.
25438
25439 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
25440 grub_env_get instead of grub_device_set_root and
25441 grub_device_get_root, respectively.
25442
25443 * kern/main.c (grub_env_write_root): New function.
25444 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
25445 grub_env_set instead of grub_device_set_root.
25446
25447 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
25448 many variables.
25449 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
25450 rather than calling ENV->WRITE_HOOK afterwards.
25451 (grub_env_get): Return the result of ENV->READ_HOOK rather than
25452 passing a pointer of a pointer.
25453 (grub_register_variable_hook): Change the types of "read_hook" and
25454 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
25455 respectively.
25456 Allocate the default empty string on the heap, because this string
25457 may be freed later.
25458
25459 * kern/device.c: Include grub/env.h.
25460 (grub_device_set_root): Removed.
25461 (grub_device_get_root): Likewise.
25462 (grub_device_open): Use grub_env_get instead of
25463 grub_device_get_root.
25464
25465 * include/grub/env.h (grub_env_read_hook_t): New type.
25466 (grub_env_write_hook_t): Likewise.
25467 (grub_env_var): Change the types of "read_hook" and "write_hook"
25468 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
25469 (grub_register_variable_hook): Likewise.
25470
25471 * include/grub/device.h (grub_device_set_root): Removed.
25472 (grub_device_set_root): Likewise.
25473
25474 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
25475 make sure that DIRNAME terminates with '/', so that
25476 grub_fat_find_dir will fail if PATH is not a directory.
25477
25478 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
25479 from DIRNAME.
25480 Use the qualifier auto for print_files and print_files_long.
25481 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
25482 as a regular file.
25483 Put a newline only if there is no error.
25484 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
25485 used.
25486
25487 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
25488
25489 * kern/partition.c (grub_partition_probe): Initialize PART to
25490 NULL. Otherwise, when no partition map is registered, this returns
25491 a garbage.
25492
25493 2005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
25494
25495 * partmap/apple.c (apple_partition_map_iterate): Check if POS
25496 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
25497 valid.
25498
25499 2005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
25500
25501 * commands/ls.c (grub_ls_list_disks): Print the filesystem
25502 information on each device, if it does not have partitions. Print
25503 "Device" instead of "Disk", because this function is not specific
25504 to disk devices.
25505
25506 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
25507 static to ensure that it is put on the memory rather than a
25508 register.
25509
25510 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
25511
25512 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
25513 (grub_cat_init): Likewise.
25514 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
25515 (options): Likewise.
25516 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
25517 (grub_configfile_init): Likewise.
25518 * font/manager.c (GRUB_MOD_INIT): Likewise.
25519 * commands/help.c (GRUB_MOD_INIT): Likewise.
25520 (grub_help_init): Likewise.
25521 * normal/command.c (grub_command_init): Likewise.
25522 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
25523 * disk/loopback.c (grub_loop_init): Likewise.
25524 (GRUB_MOD_INIT): Likewise.
25525 * commands/ls.c (grub_ls_init): Likewise.
25526 (GRUB_MOD_INIT): Likewise.
25527 (options): Likewise.
25528 * commands/boot.c (grub_boot_init): Likewise.
25529 (GRUB_MOD_INIT): Likewise.
25530 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
25531 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
25532 (GRUB_MOD_INIT): Likewise.
25533 * commands/cmp.c (grub_cmp_init): Likewise.
25534 (GRUB_MOD_INIT): Likewise.
25535
25536 * normal/arg.c: Use <> instead of "" to include header files.
25537 (SHORT_ARG_HELP): New macro.
25538 (SHORT_ARG_USAGE): Likewise.
25539 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
25540 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
25541 descriptions.
25542 (find_short): Check if C is 'h' or 'u' explicitly.
25543 (grub_arg_show_help): Use space characters instead of tabs. Treat
25544 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
25545 are shown with --help and --usage only if they are not used for
25546 the command itself.
25547 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
25548 'h' and 'u'.
25549
25550 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
25551 const into "longarg". Change the type of "shortarg" to int.
25552
25553 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
25554
25555 * boot/i386/pc/boot.S (boot_drive_check): New label.
25556
25557 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
25558 macro.
25559
25560 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
25561 which do not pass a boot drive correctly. Copied from GRUB Legacy.
25562
25563 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
25564
25565 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
25566 When turning off Gate A20, skip the check and return immediately,
25567 because this is not fatal usually.
25568
25569 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
25570
25571 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
25572 be 0x7C00 instead of 0x8000.
25573
25574 * boot/i386/pc/pxeboot.S: Rewritten.
25575
25576 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
25577 EXT_C.
25578 (gate_a20_check_state): Read a byte from 0x108000. Invert the
25579 result.
25580
25581 2005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
25582
25583 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
25584 robustness. This routine now supports a BIOS call and System
25585 Control Port A to modify the gate A20.
25586
25587 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
25588 Increased to 0x440.
25589
25590 2005-07-12 Hollis Blanchard <hollis@penguinppc.org>
25591
25592 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
25593 device path and resulting ihandle.
25594 (grub_ofdisk_close): dprintf the ihandle being closed.
25595 (grub_ofdisk_read): dprintf function parameters.
25596 * kern/mm.c (grub_mm_init_region): Likewise.
25597 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
25598 (grub_linux_boot): dprintf the Linux entry point, initrd address and
25599 size, and boot arguments.
25600 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
25601 before loading into memory.
25602 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
25603 before loading into memory.
25604
25605 2005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
25606
25607 * kern/mm.c: Added much documentation.
25608 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
25609 8, set to 5 instead of 8.
25610
25611 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
25612
25613 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
25614
25615 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
25616 (grub_mkdevicemap_SOURCES): New variable.
25617
25618 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
25619 lib/device.c of GRUB Legacy.
25620
25621 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
25622
25623 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
25624 instead of PATH is NULL.
25625
25626 2005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
25627
25628 * commands/cmp.c (BUFFER_SIZE): New macro.
25629 (grub_cmd_cmp): Close the right file at the right time. Compare
25630 only data just read. Don't report files of different size as
25631 identical. Dynamically allocate buffers. Move variable
25632 declarations at the beginning of function.
25633
25634 2005-07-09 Yoshinori Okuji <okuji@enbug.org>
25635
25636 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
25637 reverse.
25638
25639 2004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
25640
25641 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
25642 when backspace is pressed at beginning of line.
25643
25644 2005-07-03 Yoshinori Okuji <okuji@enbug.org>
25645
25646 * DISTLIST: Added genfslist.sh.
25647
25648 * normal/main.c (fs_module_list): New variable.
25649 (autoload_fs_module): New function.
25650 (read_fs_list): Likewise.
25651 (grub_normal_execute): Call read_fs_list.
25652
25653 * kern/fs.c (grub_fs_autoload_hook): New variable.
25654 (grub_fs_probe): Added support for auto-loading.
25655
25656 * include/grub/normal.h (struct grub_fs_module_list): New struct.
25657 (grub_fs_module_list_t): New type.
25658
25659 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
25660 (grub_fs_autoload_hook): New prototype.
25661
25662 * genfslist.sh: New file.
25663
25664 * genmk.rb: Added a rule to generate a filesystem list.
25665
25666 2005-06-30 Marco Gerards <metgerards@student.han.nl>
25667
25668 * configure.ac: Fix the test for cross-compiling.
25669
25670 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
25671 define GRUB_UTIL anymore.
25672
25673 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
25674 so this function works on other systems than just big endian.
25675 (load_modules): Likewise.
25676 (add_segments): Likewise.
25677
25678 2005-06-23 Hollis Blanchard <hollis@penguinppc.org>
25679
25680 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
25681 contains `l' modifier, get a long from va_arg().
25682
25683 2005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
25684
25685 * kern/mm.c (grub_free): If the next free block which is being
25686 merged is the first free block, set the first block to the block
25687 being freed.
25688 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
25689
25690 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
25691
25692 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
25693 `grub_ieee1275_chosen'.
25694
25695 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
25696
25697 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
25698 (grub_ieee1275_chosen): New variable.
25699 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
25700 `chosen'.
25701 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
25702 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
25703 Rename first argument to `phandle' for consistency.
25704 (grub_ieee1275_get_property_length): Likewise.
25705 (grub_ieee1275_next_property): Likewise. Change type of first argument
25706 to grub_ieee1275_phandle_t.
25707 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
25708 Move export next to declaration.
25709 (grub_ieee1275_chosen): New variable.
25710 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
25711 Correct cosmetic typo.
25712 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
25713 `grub_ieee1275_chosen'.
25714 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
25715 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
25716 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
25717 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
25718 `grub_ieee1275_chosen'.
25719
25720 2005-05-10 Hollis Blanchard <hollis@penguinppc.org>
25721
25722 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
25723 /chosen/bootargs.
25724 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
25725 /chosen/bootargs as "variable=value" pairs.
25726
25727 2005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
25728
25729 * include/grub/misc.h (grub_dprintf): New macro.
25730 (grub_real_dprintf): New prototype.
25731 (grub_strword): Likewise.
25732 (grub_iswordseparator): Likewise.
25733 * kern/misc.c (grub_real_dprintf): New function.
25734 (grub_strword): Likewise.
25735 (grub_iswordseparator): Likewise.
25736
25737 2005-04-30 Hollis Blanchard <hollis@penguinppc.org>
25738
25739 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
25740 (roundup): Remove macro.
25741 (grub_ieee1275_flags): Make static.
25742 (grub_ieee1275_realmode): Remove.
25743 (grub_ieee1275_test_flag): New function.
25744 (grub_ieee1275_set_flag): Likewise.
25745 (find_options): Rename to `grub_ieee1275_find_options'; update
25746 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
25747 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
25748 (cmain): New prototype.
25749 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
25750 `grub_ieee1275_flags' directly.
25751 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
25752 machine/biosdisk.h.
25753 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
25754 Don't include grub/machine/init.h.
25755 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
25756 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
25757 Remove prototype.
25758 (grub_ieee1275_realmode): Likewise.
25759 (grub_ieee1275_flag): New enum.
25760 (grub_ieee1275_test_flag): New prototype.
25761 (grub_ieee1275_set_flag): New prototype.
25762 * include/grub/powerpc/ieee1275/init.h: Remove file.
25763 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
25764 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
25765 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
25766 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
25767 comment.
25768 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
25769 `grub_ieee1275_test_flag'.
25770 (grub_ieee1275_encode_devname): Likewise.
25771
25772 2005-04-21 Hollis Blanchard <hollis@penguinppc.org>
25773
25774 * include/grub/powerpc/ieee1275/ieee1275.h
25775 (grub_ieee1275_encode_devname): New prototype.
25776 (grub_ieee1275_get_filename): Likewise.
25777 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
25778 function.
25779 (grub_set_prefix): Likewise.
25780 (grub_machine_init): Call grub_set_prefix.
25781 * kern/powerpc/ieee1275/openfw.c: Fix typos.
25782 (grub_parse_type): New enum.
25783 (grub_ieee1275_get_devargs): New function.
25784 (grub_ieee1275_get_devname): Likewise.
25785 (grub_ieee1275_parse_args): Likewise.
25786 (grub_ieee1275_get_filename): Likewise.
25787 (grub_ieee1275_encode_devname): Likewise.
25788
25789 2005-03-30 Marco Gerards <metgerards@student.han.nl>
25790
25791 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
25792 `grub_loader_unset'.
25793
25794 2005-03-26 Hollis Blanchard <hollis@penguinppc.org>
25795
25796 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
25797 instead of grub_ieee1275_interpret.
25798 (grub_halt_init): New function.
25799 (grub_halt_fini): Likewise.
25800 (GRUB_MOD_INIT): Correct message grammar.
25801 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
25802 instead of grub_ieee1275_interpret.
25803 (grub_reboot_init): New function.
25804 (grub_reboot_fini): Likewise.
25805 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
25806 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
25807 util/i386/pc/misc.c with commands/ieee1275/halt.c,
25808 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
25809 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
25810 function.
25811 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
25812 Add prototype.
25813 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
25814 prototype.
25815 (grub_halt): Likewise.
25816 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
25817 (cmain): Remove __attribute__((unused)).
25818 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
25819 (grub_heap_len): Likewise.
25820 (grub_machine_fini): New function.
25821 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
25822 (grub_halt): Likewise.
25823 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
25824 function.
25825 * util/powerpc/ieee1275/misc.c: New file.
25826
25827 2005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
25828
25829 * DISTLIST: New file.
25830 * gendistlist.sh: Likewise.
25831
25832 * Makefile.in (COMMON_DISTFILES): Removed.
25833 (BOOT_DISTFILES): Likewise.
25834 (CONF_DISTFILES): Likewise.
25835 (DISK_DISTFILES): Likewise.
25836 (FS_DISTFILES): Likewise.
25837 (INCLUDE_DISTFILES): Likewise.
25838 (KERN_DISTFILES): Likewise.
25839 (LOADER_DISTFILES): Likewise.
25840 (TERM_DISTFILES): Likewise.
25841 (UTIL_DISTFILES): Likewise.
25842 (DISTFILES): Likewise.
25843 (uninstall): Uninstall files in $(pkgdata_DATA).
25844 (DISTLIST): New target.
25845 (distdir): Use the contents of the file DISTLIST to get a list of
25846 distributed files.
25847
25848 2005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
25849
25850 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
25851 descriptor. This is ported from GRUB Legacy.
25852
25853 * gencmdlist.sh: Added an extra semicolon to make it work with
25854 old sed versions. Reported by Robert Bihlmeyer
25855 <robbe@orcus.priv.at>.
25856
25857 2005-03-08 Yoshinori Okuji <okuji@enbug.org>
25858
25859 Automatic loading of commands is supported.
25860
25861 * normal/main.c (read_command_list): New function.
25862 (grub_normal_execute): Call read_command_list.
25863
25864 * normal/command.c (grub_register_command): Return zero or CMD.
25865 Allocate CMD->NAME from the heap.
25866 Initialize CMD->MODULE_NAME to zero.
25867 Find the same name as well. If the same command is found and it is
25868 a dummy command, overwrite members. If it is not a dummy command,
25869 return zero.
25870 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
25871 (grub_command_find): If a dummy command is found, load a module
25872 and retry to find a command only once.
25873
25874 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
25875 make sure that each command is loaded.
25876
25877 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
25878 macro.
25879 (struct grub_command): Remove const from the member `name'.
25880 Add a new member `module_name'.
25881 (grub_register_command): Return grub_command_t.
25882
25883 * commands/help.c (grub_cmd_help): Call grub_command_find to make
25884 sure that each command is loaded.
25885
25886 * genmk.rb (PModule::rule): Specify a module name without the
25887 suffix ".mod" to gencmdlist.sh.
25888
25889 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
25890
25891 * gencmdlist.sh: New file.
25892
25893 * genmk.rb (PModule::rule): Generate a rule for a command list.
25894 Clean command.lst.
25895 Generate command.lst from $(COMMANDFILES).
25896
25897 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
25898 (DATA): Added $(pkgdata_DATA).
25899 (install-local): Install files in $(pkgdata_DATA).
25900
25901 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
25902
25903 * term/i386/pc/vga.c (debug_command): Removed.
25904 (GRUB_MOD_INIT): Do not register the command "debug".
25905
25906 From Hollis Blanchard:
25907 * commands/configfile.c: New file.
25908 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
25909 commands/configfile.c.
25910 (pkgdata_MODULES): Added configfile.mod.
25911 (configfile_mod_SOURCES): New variable.
25912 (configfile_mod_CFLAGS): Likewise.
25913 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
25914 commands/configfile.c.
25915 (pkgdata_MODULES): Added configfile.mod.
25916 (configfile_mod_SOURCES): New variable.
25917 (configfile_mod_CFLAGS): Likewise.
25918 * util/grub-emu.c (main): Call grub_configfile_init and
25919 grub_configfile_fini.
25920 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
25921 prototype.
25922 [GRUB_UTIL] (grub_configfile_fini): Likewise.
25923
25924 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
25925
25926 * normal/arg.c (grub_arg_show_help): Do not show the bug report
25927 address.
25928
25929 * commands/help.c (grub_cmd_help): Do not print newlines after
25930 the last command in print_command_help.
25931
25932 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
25933
25934 * commands/default.h: New file.
25935 * commands/timeout.h: Likewise.
25936 * normal/context.c: Likewise.
25937
25938 * util/misc.c: Do not include sys/times.h.
25939 Include sys/time.h and grub/machine/time.h.
25940 (grub_get_rtc): Rewritten with gettimeofday.
25941
25942 * util/grub-emu.c (main): Call grub_default_init and
25943 grub_timeout_init before grub_normal_init, and call
25944 grub_timeout_fini and grub_default_fini after grub_main.
25945
25946 * util/console.c (grub_ncurses_checkkey): Return the read
25947 character or -1.
25948
25949 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
25950 timeouts.
25951
25952 * normal/main.c (read_config_file): Push MENU. If this fails,
25953 print an error and wait for a user input.
25954 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
25955 If a menu is empty or an error occurs, pop MENU.
25956 (grub_normal_execute): Pop and free MENU after grub_menu_run
25957 returns.
25958
25959 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
25960
25961 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
25962 include time.h.
25963 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
25964 without GRUB_UTIL.
25965 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
25966 time.h.
25967 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
25968 without GRUB_UTIL.
25969
25970 * include/grub/normal.h (struct grub_menu_list): New struct.
25971 (grub_menu_list_t): New type.
25972 (struct grub_context): New struct.
25973 (grub_context_t): New type.
25974 (grub_register_command): Got rid of EXPORT_FUNC.
25975 (grub_unregister_command): Likewise.
25976 (grub_context_get): New prototype.
25977 (grub_context_get_current_menu): Likewise.
25978 (grub_context_push_menu): Likewise.
25979 (grub_context_pop_menu): Likewise.
25980 [GRUB_UTIL] (grub_default_init): Likewise.
25981 [GRUB_UTIL] (grub_default_fini): Likewise.
25982 [GRUB_UTIL] (grub_timeout_init): Likewise.
25983 [GRUB_UTIL] (grub_timeout_fini): Likewise.
25984
25985 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
25986 commands/timeout.c and normal/context.c.
25987 (pkgdata_MODULES): Added default.mod and timeout.mod.
25988 (normal_mod_SOURCES): Added normal/context.c.
25989 (default_mod_SOURCES): New variable.
25990 (default_mod_CFLAGS): Likewise.
25991 (timeout_mod_SOURCES): Likewise.
25992 (timeout_mod_CFLAGS): Likewise.
25993 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
25994 conf/i386-pc.rmk.
25995 (pkgdata_MODULES): Added default.mod and timeout.mod.
25996 (normal_mod_SOURCES): Added normal/context.c.
25997 (default_mod_SOURCES): New variable.
25998 (default_mod_CFLAGS): Likewise.
25999 (timeout_mod_SOURCES): Likewise.
26000 (timeout_mod_CFLAGS): Likewise.
26001
26002 * Makefile.in (all-local): Added $(MKFILES).
26003
26004 2005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
26005
26006 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
26007 (grub_emu_SOURCES): Likewise.
26008 (pkgdata_MODULES): Add `sun.mod'.
26009 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
26010 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
26011 `partmap/sun.c'.
26012 (pkgdata_MODULES): Add `sun.mod'.
26013 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
26014 * include/grub/partition.h (grub_sun_partition_map_init): New
26015 prototype.
26016 (grub_sun_partition_map_fini): Likewise.
26017 * partmap/sun.c: New file.
26018 * util/grub-emu.c (main): Initialize and de-initialize the sun
26019 partitionmap support.
26020
26021 2005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
26022
26023 This implements an Emacs-like menu entry editor.
26024
26025 * normal/menu_entry.c: New file.
26026
26027 * util/console.c (grub_ncurses_putchar): Translate some Unicode
26028 characters to ASCII.
26029 (saved_char): New variable.
26030 (grub_ncurses_checkkey): Rewritten completely.
26031 (grub_ncurses_getkey): Likewise.
26032 (grub_ncurses_init): Call raw instead of cbreak.
26033
26034 * normal/menu.c (print_entry): Do not put a space.
26035 (init_page): Renamed to ...
26036 (grub_menu_init_page): ... this. All callers changed.
26037 (edit_menu_entry): Removed.
26038 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
26039
26040 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
26041
26042 * kern/misc.c (grub_vprintf): Call grub_refresh.
26043
26044 * normal/menu.c (DISP_LEFT): Renamed to ...
26045 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
26046 * normal/menu.c (DISP_UP): Renamed to ...
26047 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
26048 * normal/menu.c (DISP_RIGHT): Renamed to ...
26049 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
26050 * normal/menu.c (DISP_DOWN): Renamed to ...
26051 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
26052 * normal/menu.c (DISP_HLINE): Renamed to ...
26053 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
26054 * normal/menu.c (DISP_VLINE): Renamed to ...
26055 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
26056 * normal/menu.c (DISP_UL): Renamed to ...
26057 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
26058 * normal/menu.c (DISP_UR): Renamed to ...
26059 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
26060 * normal/menu.c (DISP_LL): Renamed to ...
26061 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
26062 * normal/menu.c (DISP_LR): Renamed to ...
26063 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
26064 * normal/menu.c (TERM_WIDTH): Renamed to ...
26065 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
26066 * normal/menu.c (TERM_HEIGHT): Renamed to ...
26067 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
26068 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
26069 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
26070 * normal/menu.c (TERM_MARGIN): Renamed to ...
26071 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
26072 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
26073 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
26074 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
26075 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
26076 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
26077 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
26078 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
26079 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
26080 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
26081 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
26082 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
26083 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
26084 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
26085 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
26086 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
26087 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
26088 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
26089 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
26090 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
26091 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
26092 All callers changed.
26093
26094 * include/grub/normal.h: New prototype.
26095
26096 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
26097 normal/menu_entry.c.
26098 (normal_mod_SOURCES): Likewise.
26099 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26100 (normal_mod_SOURCES): Likewise.
26101
26102 2005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
26103
26104 * include/grub/normal.h (grub_halt_init): New prototype.
26105 (grub_halt_fini): Likewise.
26106 (grub_reboot_init): Likewise.
26107 (grub_reboot_fini): Likewise.
26108
26109 * util/grub-emu.c: Include signal.h.
26110 (main_env): New global variable.
26111 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
26112 catch C-c.
26113 (grub_machine_fini): New function.
26114 (main): Call grub_halt_init and grub_reboot_init before
26115 grub_main, and grub_reboot_fini and grub_halt_fini after it.
26116 Call setjmp with MAIN_ENV to go back afterwards.
26117 Call grub_machine_fini right before return.
26118
26119 * include/grub/util/misc.h: Include setjmp.h.
26120 (main_env): New prototype.
26121
26122 * include/grub/kernel.h (grub_machine_fini): New prototype.
26123 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
26124 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
26125
26126 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
26127 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
26128 * term/i386/pc/console.c (grub_console_fini): Likewise.
26129
26130 * util/i386/pc/misc.c: New file.
26131
26132 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
26133 util/i386/pc/misc.c, commands/i386/pc/halt.c and
26134 commands/i386/pc/reboot.c.
26135
26136 2005-02-14 Guillem Jover <guillem@hadrons.org>
26137
26138 * include/grub/dl.h (grub_dl_check_header): New prototype.
26139 (grub_arch_dl_check_header): Change return type to grub_err_t,
26140 remove size parameter and export function. Update all callers.
26141 * kern/dl.c (grub_dl_check_header): New function.
26142 (grub_dl_load_core): Use `grub_dl_check_header' instead of
26143 `grub_arch_dl_check_header'. Check ELF type. Check if sections
26144 are inside the core.
26145 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
26146 independent ELF header checks.
26147 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
26148 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
26149 `grub_dl_check_header' instead of explicit checks. Check for the
26150 ELF type.
26151 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
26152 `grub_dl_check_header' instead of explicit checks. Remove arch
26153 specific ELF header checks.
26154
26155 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
26156 argument SIZE.
26157
26158 2005-02-13 Hollis Blanchard <hollis@penguinppc.org>
26159
26160 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
26161 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
26162
26163 2005-02-12 Hollis Blanchard <hollis@penguinppc.org>
26164
26165 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
26166 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
26167 (part_map_iterate): Clear `grub_errno' and return 0 if
26168 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
26169 * partmap/amiga.c (amiga_partition_map_iterate): Return
26170 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
26171 * partmap/apple.c (apple_partition_map_iterate): Likewise.
26172
26173 2005-02-01 Guillem Jover <guillem@hadrons.org>
26174
26175 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
26176 help info.
26177
26178 2005-01-31 Marco Gerards <metgerards@student.han.nl>
26179
26180 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
26181 Removed prototype.
26182 (grub_rescue_cmd_linux): New prototype.
26183 (grub_rescue_cmd_initrd): Likewise.
26184 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
26185 `bi_rec'.
26186 (grub_linux_release_mem): Release the memory for the initrd.
26187 (grub_load_linux): Renamed from this...
26188 (grub_rescue_cmd_linux): ...To this. Changed all callers.
26189 Changed `entry' not to be static. Loop over memory regions to
26190 find another one when the default fails.
26191 (grub_rescue_cmd_initrd): New function.
26192 (grub_linux_init): Remove function.
26193 (grub_linux_fini): Likewise.
26194 (GRUB_MOD_INIT): Register `initrd'.
26195 (GRUB_MOD_FINI): Unregister `initrd'.
26196 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
26197 Function removed.
26198 (grub_linux_normal_fini): Likewise.
26199 (GRUB_MOD_INIT): Register `initrd'.
26200 (GRUB_MOD_FINI): Unregister `initrd'.
26201
26202 2005-01-31 Marco Gerards <metgerards@student.han.nl>
26203
26204 * commands/help.c: New file.
26205 * normal/arg.c (show_help): Renamed to...
26206 (grub_arg_show_help): ... this.
26207 * commands/i386/pc/halt.c: New file.
26208 * commands/i386/pc/reboot.c: Likewise.
26209 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
26210 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
26211 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
26212 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
26213 variables.
26214 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
26215 `commands/help.c'.
26216 (pkgdata_MODULES): Add `help.mod'.
26217 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
26218 * grub/i386/pc/init.h (grub_reboot): New prototype.
26219 (grub_halt): Likewise.
26220 * include/grub/normal.h (grub_arg_show_help): New prototype.
26221 (grub_help_init): Likewise.
26222 (grub_help_fini): Likewise.
26223 * util/grub-emu.c (main): Initialize and deinitialize the help
26224 command.
26225
26226 * normal/cmdline.c (grub_cmdline_get): Doc fix.
26227
26228 * normal/command.c (grub_command_init): Fixed the description of
26229 the `set' and `unset' commands.
26230
26231 2005-01-31 Marco Gerards <metgerards@student.han.nl>
26232
26233 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
26234 function.
26235 * commands/ieee1275/halt.c: New file.
26236 * commands/ieee1275/reboot.c: Likewise.
26237 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
26238 `__attribute__ ((unused))'. Some GCS related fixed.
26239 (grub_suspend_init) [GRUB_UTIL]: Function removed.
26240 (grub_suspend_fini): Likewise.
26241 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
26242 and `halt.mod'.
26243 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
26244 (halt_mod_CFLAGS): New variables.
26245 * include/grub/powerpc/ieee1275/ieee1275.h
26246 (grub_ieee1275_interpret): New prototype.
26247
26248 2005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
26249
26250 * include/grub/misc.h (memmove): New prototype.
26251 (memcpy): Likewise.
26252
26253 2005-01-22 Hollis Blanchard <hollis@penguinppc.org>
26254
26255 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
26256 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
26257
26258 2005-01-22 Marco Gerards <metgerards@student.han.nl>
26259
26260 * kern/misc.c (grub_strndup): Function rewritten.
26261
26262 2005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
26263
26264 * normal/menu.c (TERM_WIDTH): Macro redefined.
26265 (TERM_TOP_BORDER_Y): Likewise.
26266 (draw_border): Replaced while-loop by a for-loop. Make the number
26267 of lines consistent with the number of lines displayed in
26268 print_entries. Added a margin below the rectangle.
26269 (print_entry): Make the entry fit in the rectangle.
26270 (print_entries): Display the scroll arrows next to the right
26271 border.
26272
26273 2005-01-21 Marco Gerards <metgerards@student.han.nl>
26274
26275 * fs/minix.c (grub_minix_find_file): Reserve more space for
26276 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
26277 `grub_strncpy' to copy `path' into it.
26278
26279 2005-01-21 Marco Gerards <metgerards@student.han.nl>
26280
26281 Add the loopback device, a device via which files can be accessed
26282 as devices.
26283
26284 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
26285 (pkgdata_MODULES): Add loopback.mod.
26286 (loopback_mod_SOURCES): New variable.
26287 (loopback_mod_CFLAGS): Likewise.
26288 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
26289 `disk/loopback.c'.
26290 (pkgdata_MODULES): Add loopback.mod.
26291 (loopback_mod_SOURCES): New variable.
26292 (loopback_mod_CFLAGS): Likewise.
26293 * disk/loopback.c: new file.
26294 * include/grub/normal.h (grub_loop_init): New prototype.
26295 (grub_loop_fini): New prototype.
26296 * util/grub-emu.c (main): Initialize and de-initialize loopback
26297 support.
26298 * include/grub/disk.h (grub_disk_dev_id): Add
26299 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
26300
26301 2005-01-20 Hollis Blanchard <hollis@penguinppc.org>
26302
26303 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
26304 function.
26305 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
26306 (suspend_mod_SOURCES): New variable.
26307 (suspend_mod_CFLAGS): Likewise.
26308 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
26309 New prototype.
26310 * commands/ieee1275/suspend.c: New file.
26311
26312 2005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
26313
26314 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
26315 ((unused))' to `__attribute__ ((used))'.
26316 (GRUB_MOD_FINI): Likewise.
26317 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
26318 * genmk.rb (PModule): Assign space to common symbols when linking
26319 modules.
26320
26321 2005-01-20 Marco Gerards <metgerards@student.han.nl>
26322
26323 * include/grub/mm.h (grub_mm_init_region): Change the type of the
26324 `unsigned' arguments to `grub_size_t'.
26325 (grub_malloc): Likewise.
26326 (grub_realloc): Likewise.
26327 (grub_memalign): Likewise.
26328 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
26329 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
26330 * util/misc.c (grub_malloc): Likewise.
26331 (grub_realloc): Likewise.
26332 * kern/mm.c (get_header_from_pointer): Change the casts to
26333 `unsigned' into a cast to `grub_size_t'.
26334
26335 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
26336 point to `currnode' when `currnode' is changed.
26337
26338 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
26339 Schottelius <nico-linux@schottelius.org>.
26340
26341 2005-01-09 Hollis Blanchard <hollis@penguinppc.org>
26342
26343 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
26344 (note_path): Remove variable.
26345 (GRUB_IEEE1275_NOTE_NAME): New macro.
26346 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
26347 (grub_ieee1275_note_hdr): New structure.
26348 (grub_ieee1275_note_desc): Likewise.
26349 (grub_ieee1275_note): Likewise.
26350 (load_note): Remove `dir' argument. All callers updated. Remove
26351 `note_img' and `path'. Do not load a file from `note_path'.
26352 Initialize a struct grub_ieee1275_note and write that to `out'.
26353 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
26354
26355 2005-01-05 Marco Gerards <metgerards@student.han.nl>
26356
26357 * util/misc.c (grub_util_read_image): Revert last change. It
26358 called `grub_util_read_at', which seeks from the beginning of the
26359 file.
26360
26361 2005-01-04 Hollis Blanchard <hollis@penguinppc.org>
26362
26363 * TODO: Add note about endianness in grub-mkimage.
26364 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
26365 section.
26366 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
26367 (grub_mkimage_SOURCES): New target.
26368 * include/grub/kernel.h (grub_start_addr): Remove variable.
26369 (grub_end_addr): Likewise.
26370 (grub_total_module_size): Likewise.
26371 (grub_kernel_image_size): Likewise.
26372 (GRUB_MODULE_MAGIC): New constant.
26373 (grub_module_info): New structure.
26374 (grub_arch_modules_addr): New prototype.
26375 (grub_get_end_addr): Remove prototype.
26376 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
26377 * include/grub/powerpc/ieee1275/kernel.h: New file.
26378 * include/grub/util/misc.h (grub_util_get_fp_size): New
26379 prototype.
26380 (grub_util_read_at): Likewise.
26381 (grub_util_write_image_at): Likewise.
26382 * kern/main.c (grub_get_end_addr): Remove function.
26383 (grub_load_modules): Call grub_arch_modules_addr instead of using
26384 grub_end_addr. Look for a grub_module_info struct in memory. Use
26385 the grub_module_info fields instead of calling grub_get_end_addr
26386 as loop conditions. Move grub_add_unused_region code here.
26387 (grub_add_unused_region): Remove function.
26388 * kern/i386/pc/init.c: Include grub/cache.h.
26389 (grub_machine_init): Remove call to grub_get_end_addr. Remove
26390 one call to add_mem_region.
26391 (grub_arch_modules_addr): New function.
26392 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
26393 (grub_total_module_size): Likewise.
26394 Include grub/machine/kernel.h.
26395 (grub_arch_modules_addr): New function.
26396 * util/grub-emu.c (grub_end_addr): Remove variable.
26397 (grub_total_module_size): Likewise.
26398 (grub_arch_modules_addr): New function.
26399 * util/misc.c: Include unistd.h.
26400 (grub_util_get_fp_size): New function.
26401 (grub_util_read_at): Likewise.
26402 (grub_util_write_image_at): Likewise.
26403 (grub_util_read_image): Call grub_util_read_at.
26404 (grub_util_write_image): Call grub_util_write_image_at.
26405 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
26406 additional memory in kernel_img for a struct grub_module_info.
26407 Fill in that grub_module_info.
26408 * util/powerpc/ieee1275/grub-mkimage.c: New file.
26409
26410 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
26411
26412 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
26413 New function.
26414 * include/grub/powerpc/ieee1275/ieee1275.h
26415 (grub_ieee1275_milliseconds): New prototype.
26416 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
26417 Change to 1000.
26418 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
26419 grub_ieee1275_milliseconds.
26420
26421 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
26422
26423 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
26424 variable.
26425 (find_options): New function.
26426 (cmain): Call find_options.
26427 * include/grub/powerpc/ieee1275/ieee1275.h
26428 (grub_ieee1275_realmode): New extern variable.
26429 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
26430 grub_map if grub_ieee1275_realmode is false.
26431
26432 2004-12-29 Marco Gerards <metgerards@student.han.nl>
26433
26434 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
26435 lines are inserted and make it work like readline. Reported by
26436 Vincent Pelletier <subdino2004@yahoo.fr>.
26437
26438 2004-12-28 Marco Gerards <metgerards@student.han.nl>
26439
26440 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
26441
26442 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
26443 `kern/powerpc/cache.S'.
26444
26445 2004-12-27 Marco Gerards <metgerards@student.han.nl>
26446
26447 * genmk.rb: Handle the `Program' class in the main loop. Written
26448 by Johan Rydberg <jrydberg@gnu.org>.
26449 (Program): New class.
26450 (programs): New variable.
26451 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
26452 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
26453 instead of "grub/kernel.h". Include <grub/machine/init.h>.
26454 (help_arch): Function removed.
26455 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
26456 `powerpc/libgcc.h' and `loader.h'.
26457 (pkgdata_PROGRAMS): New variable.
26458 (sbin_UTILITIES): Variable removed.
26459 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
26460 (grubof_SOURCES): Variable re-defined so it only includes the
26461 core functionality.
26462 (grubof_CFLAGS): Remove `-DGRUBOF'.
26463 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
26464 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
26465 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
26466 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
26467 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
26468 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
26469 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
26470 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
26471 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
26472 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
26473 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
26474 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
26475 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
26476 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
26477 (pc_mod_CFLAGS): New variables.
26478 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
26479 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
26480 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
26481 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
26482 Moved from here...
26483 * include/grub/i386/pc/init.h (grub_os_area_addr)
26484 (rub_os_area_size): ... to here.
26485 * include/grub/powerpc/ieee1275/ieee1275.h
26486 (grub_ieee1275_entry_fn): Export symbol.
26487 * include/grub/powerpc/ieee1275/init.h: New file.
26488 * include/grub/powerpc/libgcc.h: Likewise.
26489 * include/grub/cache.h: Likewise.
26490 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
26491 <hollis@penguinppc.org>.
26492 * kern/dl.c: Include <grub/cache.h>.
26493 (grub_dl_flush_cache): New function.
26494 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
26495 for this module.
26496 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
26497 (grub_console_init): Removed prototypes.
26498 (grub_machine_init): Don't initialize the modules anymore.
26499 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
26500 static.
26501 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
26502 Macro undef removed.
26503 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
26504 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
26505 relocation `R_PPC_REL32'. Return an error when the relocation is
26506 unknown.
26507 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
26508 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
26509 * util/misc.c (grub_arch_sync_caches): Likewise.
26510
26511 2004-12-19 Marco Gerards <metgerards@student.han.nl>
26512
26513 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
26514 `symlist.c', add `grubof_symlist.c'.
26515 (symlist.c): Variable removed.
26516 (grubof_HEADERS): Variable added.
26517 (grubof_symlist.c): New target.
26518 (kernel_syms.lst): Use `grubof_HEADERS' instead of
26519 `kernel_img_HEADERS'.
26520 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
26521 * kern/powerpc/dl.c: New file.
26522 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
26523 Function removed.
26524 (grub_arch_dl_relocate_symbols): Likewise.
26525 (grub_register_exported_symbols): Likewise.
26526
26527 2004-12-13 Marco Gerards <metgerards@student.han.nl>
26528
26529 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
26530 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
26531 to fail instead. Reported by Vincent Pelletier
26532 <subdino2004@yahoo.fr>.
26533
26534 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
26535 it is not allocated. Reported by Vincent Pelletier
26536 <subdino2004@yahoo.fr>.
26537
26538 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
26539 output so the output looks better.
26540
26541 2004-12-04 Marco Gerards <metgerards@student.han.nl>
26542
26543 Modulize the partition map support and add support for the amiga
26544 partition map.
26545
26546 * commands/ls.c: Include <grub/partition.h> instead of
26547 <grub/machine/partition.h>.
26548 * kern/disk.c: Likewise.
26549 * kern/rescue.c: Likewise.
26550 * loader/i386/pc/chainloader.c: Likewise.
26551 * normal/cmdline.c: Likewise.
26552 * kern/powerpc/ieee1275/init.c: Likewise.
26553 (grub_machine_init): Call `grub_pc_partition_map_init',
26554 `grub_amiga_partition_map_init' and
26555 `grub_apple_partition_map_init'.
26556 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
26557 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
26558 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
26559 `partition.h' and `pc_partition.h'.
26560 (grub_setup_SOURCES): Remove
26561 `disk/i386/pc/partition.c'. Add `kern/partition.c',
26562 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
26563 (grub_emu_SOURCES): Likewise.
26564 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
26565 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
26566 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
26567 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
26568 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
26569 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
26570 (grubof_SOURCES): Likewise.
26571 * disk/i386/pc/partition.c: File removed.
26572 * disk/powerpc/ieee1275/partition.c: Likewise.
26573 * include/grub/powerpc/ieee1275/partition.h: Likewise.
26574 * include/grub/i386/pc/partition.h: Likewise.
26575 * kern/partition.c: New file.
26576 * partmap/amiga.c: Likewise.
26577 * partmap/apple.c: Likewise.
26578 * partmap/pc.c: Likewise.
26579 * include/grub/partition.h: Likewise..
26580 * include/grub/pc_partition.h: Likewise.
26581 * util/grub-emu.c: Include <grub/partition.h> instead of
26582 <grub/machine/partition.h>.
26583 (main): Call `grub_pc_partition_map_init',
26584 `grub_amiga_partition_map_init' and
26585 `grub_apple_partition_map_init' and deinitialize afterwards.
26586 * util/i386/pc/biosdisk.c: Include `#include
26587 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
26588 `<grub/machine/partition.h>'.
26589 * util/i386/pc/grub-setup.c: Likewise.
26590 * util/i386/pc/biosdisk.c: Likewise.
26591 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
26592 partition information in case of a PC partition.
26593 * util/i386/pc/grub-setup.c: Include `#include
26594 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
26595 `<grub/machine/partition.h>'.
26596 (setup): Only access the PC specific partition information in case
26597 of a PC partition.
26598
26599 2004-11-17 Hollis Blanchard <hollis@penguinppc.org>
26600
26601 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
26602 (grub_longjmp): Likewise.
26603 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
26604 20.
26605 * normal/powerpc/setjmp.S: New file.
26606 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
26607 `normal/powerpc/setjmp.S'.
26608 (grubof_CFLAGS): Add `-DGRUBOF'.
26609 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
26610 [GRUB_UTIL && !GRUBOF].
26611
26612 2004-11-16 Marco Gerards <metgerards@student.han.nl>
26613
26614 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
26615 property named `name'. Correctly handle the error returned by
26616 `grub_ieee1275_finddevice' if a device can not be opened.
26617
26618 2004-11-02 Hollis Blanchard <hollis@penguinppc.org>
26619
26620 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
26621 `actual' for negativity.
26622 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
26623 kern/fshelp.c.
26624
26625 2004-11-01 Marco Gerards <metgerards@student.han.nl>
26626
26627 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
26628 (PAGE_OFFSET): New macro.
26629 (CRTC_ADDR_PORT): Likewise.
26630 (CRTC_DATA_PORT): Likewise.
26631 (START_ADDR_HIGH_REGISTER): Likewise.
26632 (START_ADDR_LOW_REGISTER): Likewise.
26633 (GRAPHICS_ADDR_PORT): Likewise.
26634 (GRAPHICS_DATA_PORT): Likewise.
26635 (READ_MAP_REGISTER): Likewise.
26636 (INPUT_STATUS1_REGISTER): Likewise.
26637 (INPUT_STATUS1_VERTR_BIT): Likewise.
26638 (page): New variable.
26639 (wait_vretrace): New function.
26640 (set_read_map): Likewise.
26641 (set_start_address): Likewise.
26642 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
26643 the right page.
26644 (check_vga_mem): Take the page into account.
26645 (write_char): Likewise.
26646 (write_cursor): Likewise.
26647 (scroll_up): Likewise. Copy the page to the page that is not
26648 shown and switch between both pages.
26649 (grub_vga_putchar): Fix off by one error.
26650 (grub_vga_cls): Wait for the vertical retrace. Take the page into
26651 account.
26652
26653 2004-11-01 Marco Gerards <metgerards@student.han.nl>
26654
26655 Add support for iso9660 (including rockridge).
26656
26657 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
26658 (iso9660_mod_SOURCES): New variable.
26659 (iso9660_mod_CFLAGS): Likewise.
26660 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
26661 * include/grub/fs.h (grub_iso9660_init): New prototype.
26662 * util/grub-emu.c (main): Call `grub_iso9660_init'.
26663 * fs/iso9660.c: New file.
26664
26665 * include/grub/misc.h (grub_strncat): New prototype.
26666 * kern/misc.c (grub_strncat): New function.
26667
26668 * fs/hfs.c (grub_hfs_mount): Translate the error
26669 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
26670 * fs/jfs.c (grub_jfs_mount): Likewise.
26671 * fs/ufs.c (grub_ufs_mount): Likewise.
26672
26673 2004-10-28 Hollis Blanchard <hollis@penguinppc.org>
26674
26675 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
26676 which initialized BAT registers.
26677 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
26678 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
26679 Move from here...
26680 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
26681 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
26682 ... to here.
26683 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
26684 (grub_mapclaim): Likewise.
26685 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
26686 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
26687 hand.
26688
26689 2004-10-19 Hollis Blanchard <hollis@penguinppc.org>
26690
26691 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
26692 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
26693 -ffreestanding and -msoft-float.
26694
26695 2004-10-15 Hollis Blanchard <hollis@penguinppc.org>
26696
26697 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
26698 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
26699 set in grub_ieee1275_flags.
26700
26701 2004-10-14 Hollis Blanchard <hollis@penguinppc.org>
26702
26703 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
26704 prototype.
26705 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
26706 grub_console_init first.
26707 Change the memory range used for grub_ieee1275_claim and
26708 grub_mm_init_region.
26709 Print an error message if the claim fails.
26710 Include <grub/misc.h>.
26711
26712 2004-10-13 Hollis Blanchard <hollis@penguinppc.org>
26713
26714 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
26715 Call grub_children_iterate for device nodes of type `scsi',
26716 `ide', or `ata'.
26717 (grub_ofdisk_open): Remove manual device alias resolution.
26718 Fix memory leak when device cannot be opened.
26719 * include/grub/powerpc/ieee1275/ieee1275.h
26720 (grub_children_iterate): New prototype.
26721 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
26722 New function.
26723 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
26724 Return -1 if args.size was -1.
26725
26726 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
26727
26728 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
26729 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
26730 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
26731 Open Firmware's memory for it; claim memory from _start to _end.
26732 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
26733 (_end): New extern.
26734 (_start): Zero BSS from __bss_start to _end.
26735 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
26736 New extern.
26737 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
26738
26739 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
26740
26741 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
26742 -1 if args.base was -1.
26743
26744 2004-10-08 Hollis Blanchard <hollis@penguinppc.org>
26745
26746 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
26747 escape sequence instead of a literal ^L. Also call
26748 grub_ofconsole_gotoxy.
26749
26750 2004-10-03 Hollis Blanchard <hollis@penguinppc.org>
26751
26752 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
26753 void * arguments to grub_addr_t. All callers updated. Also make
26754 the `result' argument optional.
26755 (grub_ieee1275_release): change void * arguments to grub_addr_t.
26756 All callers updated.
26757
26758 2004-09-22 Hollis Blanchard <hollis@penguinppc.org>
26759
26760 * commands/ls.c (grub_ls_list_files): Use the string following the
26761 initial ')', if present, as the filesystem path.
26762 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
26763
26764 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
26765
26766 2004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
26767
26768 Make the source code of the menu interface more readable.
26769
26770 * normal/menu.c: Include grub/mm.h.
26771 (TERM_WIDTH): New macro.
26772 (TERM_HEIGHT): Likewise.
26773 (TERM_INFO_HEIGHT): Likewise.
26774 (TERM_MARGIN): Likewise.
26775 (TERM_SCROLL_WIDTH): Likewise.
26776 (TERM_TOP_BORDER_Y): Likewise.
26777 (TERM_LEFT_BORDER_X): Likewise.
26778 (TERM_BORDER_WIDTH): Likewise.
26779 (TERM_MESSAGE_HEIGHT): Likewise.
26780 (TERM_BORDER_HEIGHT): Likewise.
26781 (TERM_NUM_ENTRIES): Likewise.
26782 (TERM_FIRST_ENTRY_Y): Likewise.
26783 (TERM_ENTRY_WIDTH): Likewise.
26784 (TERM_CURSOR_X): Likewise.
26785 (draw_border): Use macros instead of magic numbers.
26786 (print_entry): Likewise.
26787 (print_entries): Likewise.
26788 (run_menu): Likewise. Also, handle the key 'e'.
26789 (run_menu_entry): Ignore empty command lines.
26790 (print_message): Added a new argument EDIT. If EDIT is true,
26791 print a different message.
26792 (init_page): Likewise.
26793 (edit_menu_entry): New function. Not implemented yet.
26794
26795 2004-09-17 Marco Gerards <metgerards@student.han.nl>
26796
26797 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
26798 can be loaded from normal mode.
26799
26800 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
26801 `multiboot.mod'.
26802 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
26803 (multiboot_mod_CFLAGS): New variables.
26804 * loader/i386/pc/linux_normal.c: New file.
26805 * loader/i386/pc/multiboot_normal.c: Likewise.
26806
26807 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
26808 attribute `unused'.
26809
26810 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
26811 `fdiro' to read the mode information from instead of `diro'.
26812
26813 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
26814 looking up a symlink.
26815
26816 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
26817 macro.
26818 * normal/command.c (grub_command_execute): Don't parse the
26819 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
26820 flags of the command.
26821
26822 * normal/menu.c (grub_menu_run): Fix typo.
26823
26824 2004-09-14 Hollis Blanchard <hollis@penguinppc.org>
26825
26826 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
26827
26828 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
26829 `y + 1' instead of `y - 1'.
26830
26831 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
26832
26833 2004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
26834
26835 From Hollis Blanchard <hollis@penguinppc.org>:
26836 * kern/misc.c (memmove): New alias for grub_memmove.
26837 (memcmp): New alias for grub_memcmp.
26838 (memset): New alias for grub_memset.
26839 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
26840 Change "int handle" to "grub_ieee1275_phandle_t handle".
26841 * include/grub/powerpc/ieee1275/ieee1275.h
26842 (grub_ieee1275_get_property): Likewise.
26843
26844 2004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
26845
26846 Added normal mode command `chainloader' as module chain.mod, which
26847 depends on normal.mod and _chain.mod.
26848
26849 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
26850 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
26851 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
26852 Deleted prototype.
26853 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
26854 but arguments parsing moved to ...
26855 (grub_chainloader_cmd): ... here. New function.
26856 * include/grub/i386/pc/chainloader.h: New file.
26857 * loader/i386/pc/chainloader_normal.c: Likewise.
26858
26859 2004-09-11 Marco Gerards <metgerards@student.han.nl>
26860
26861 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
26862 (grub_mkimage_LDFLAGS): Likewise.
26863 (grub_emu_SOURCES): Likewise.
26864 (kernel_img_HEADERS): Added fshelp.h.
26865 * fs/ext2.c: Include <grub/fshelp.h>.
26866 (FILETYPE_REG): New macro.
26867 (FILETYPE_INO_REG): Likewise.
26868 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
26869 Changed all users.
26870 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
26871 all users.
26872 (grub_fshelp_node): New struct.
26873 (grub_ext2_data): Added member `diropen'. Changed member `inode'
26874 to a pointer.
26875 (grub_ext2_get_file_block): Removed function.
26876 (grub_ext2_read_block): New function.
26877 (grub_ext2_read_file): Replaced parameter `data' by `node'.
26878 This function was written.
26879 (grub_ext2_mount): Read the root inode. Create a diropen struct.
26880 (grub_ext2_find_file): Removed function.
26881 (grub_ext2_read_symlink): New function.
26882 (grub_ext2_iterate_dir): Likewise.
26883 (grub_ext2_open): Rewritten.
26884 (grub_ext2_dir): Rewritten.
26885 * include/grub/fshelp.h: New file.
26886 * fs/fshelp.c: Likewise.
26887
26888 2004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
26889
26890 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
26891 (print_message): Add a missing newline.
26892 (run_menu): Added timeout support.
26893 (run_menu_entry): New local function.
26894 (grub_menu_run): Added support for booting.
26895
26896 * kern/loader.c (grub_loader_is_loaded): New function.
26897
26898 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
26899 (grub_get_rtc): Exported.
26900
26901 * include/grub/i386/pc/time.h: Include grub/symbol.h.
26902 (grub_get_rtc): Exported.
26903
26904 * include/grub/normal.h (struct grub_command_list): Remove
26905 constant from the member `command'.
26906
26907 * include/grub/loader.h (grub_loader_is_loaded): Declared.
26908
26909 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
26910
26911 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
26912
26913 2004-08-28 Marco Gerards <metgerards@student.han.nl>
26914
26915 Add support for the JFS filesystem.
26916
26917 * fs/jfs.c: New file.
26918 * include/grub/fs.h (grub_jfs_init): New prototype.
26919 (grub_jfs_fini): New prototype.
26920 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
26921 (grub_emu_SOURCES): Likewise.
26922 (pkgdata_MODULES): Add jfs.mod.
26923 (jfs_mod_SOURCES): New variable.
26924 (jfs_mod_CFLAGS): Likewise.
26925 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
26926 (grubof_SOURCES): Likewise.
26927 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
26928
26929 * fs/fat.c (grub_fat_find_dir): Convert the filename little
26930 endian to the host endian.
26931 (grub_fat_utf16_to_utf8): Move function from there...
26932 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
26933 the endianness of the source string anymore.
26934 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
26935
26936 2004-08-24 Marco Gerards <metgerards@student.han.nl>
26937
26938 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
26939 (grub_boot_fini) [GRUB_UTIL]: Likewise.
26940 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
26941 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
26942
26943 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
26944 (grub_hfs_iterate_dir): Make the function static. Add prototypes
26945 for `node_found' and `it_dir'.
26946 (grub_hfs_dir): Add prototype for `dir_hook'.
26947
26948 * fs/minix.c (grub_minix_get_file_block): Add prototype for
26949 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
26950 and `indir32' to silence a gcc warning.
26951
26952 * include/grub/fs.h (grub_hfs_init): New prototype.
26953 (grub_hfs_fini): Likewise.
26954
26955
26956 2004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
26957
26958 Each disk device has its own id now. This is useful to make use
26959 of multiple disk devices.
26960
26961 * include/grub/disk.h (grub_disk_dev_id): New enum.
26962 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
26963 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
26964
26965 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
26966 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
26967
26968 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
26969 GRUB_DISK_DEVICE_OFDISK_ID as an id.
26970
26971 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
26972 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
26973
26974 * include/grub/disk.h (struct grub_disk_dev): Added a new member
26975 "id" which is used by the cache manager.
26976
26977 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
26978 of just "GRUB".
26979
26980 2004-08-18 Marco Gerards <metgerards@student.han.nl>
26981
26982 * fs/hfs.c: New file.
26983 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
26984 (grub_emu_SOURCES): Likewise.
26985 (pkgdata_MODULES): Add hfs.mod.
26986 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
26987 (grubof_SOURCES): Likewise.
26988 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
26989
26990 * include/grub/misc.h (grub_strncasecmp): Add prototype.
26991 * kern/misc.c (grub_strncasecmp): Add function.
26992
26993 2004-08-14 Marco Gerards <metgerards@student.han.nl>
26994
26995 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
26996 with parentheses.
26997
26998 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
26999 (grub_ext2_dir): In case the directory entry type is unknown, read
27000 it from the inode.
27001
27002 2004-08-02 Peter Bruin <pjbruin@dds.nl>
27003
27004 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
27005 grub_load_linux instead of grub_rescue_cmd_linux as second
27006 argument of grub_rescue_register_command.
27007
27008 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
27009
27010 2004-07-27 Marco Gerards <metgerards@student.han.nl>
27011
27012 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
27013 function.
27014 * commands/boot.c: Remove the check for `GRUB_UTIL'.
27015 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
27016 `loader/powerpc/ieee1275/linux.c',
27017 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
27018 * include/grub/powerpc/ieee1275/ieee1275.h
27019 (grub_ieee1275_release): New prototype.
27020 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
27021 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
27022 normal, boot, linux and linux_normal.
27023 * loader/powerpc/ieee1275/linux.c: New file.
27024 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
27025
27026 2004-07-12 Marco Gerards <metgerards@student.han.nl>
27027
27028 * normal/arg.c (grub_arg_parse): Correct error handling after
27029 reallocating the argumentlist (check if `argl' is not null instead
27030 of checking if `args' is not null).
27031 * kern/mm.c (grub_realloc): Return the same pointer when using the
27032 same region, instead of returning the header address.
27033
27034 2004-07-11 Marco Gerards <metgerards@student.han.nl>
27035
27036 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
27037 one block instead of two when looking for the initial partition.
27038 (grub_partition_probe): Initialize the local variable `p' with 0.
27039 Use base 10 for the grub_strtoul call.
27040 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
27041 need for one local variable.
27042 (grub_strtoul): Don't add the new value to `num', instead of that
27043 just assign it.
27044
27045 2004-07-11 Marco Gerards <metgerards@student.han.nl>
27046
27047 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
27048 (pxeboot_img_SOURCES): New variable.
27049 (pxeboot_img_ASFLAGS): Likewise.
27050 (pxeboot_img_LDFLAGS): Likewise.
27051 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
27052 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
27053 <lode_leroy@hotmail.com>.
27054
27055 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
27056
27057 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
27058 there was no input.
27059
27060 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
27061
27062 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
27063 the history buffer logic.
27064
27065 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
27066
27067 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
27068 (FILETYPE_INO_SYMLINK): New macros.
27069 (grub_ext2_find_file): Check if the node is a directory using the
27070 inode stat information instead of using the filetype in the
27071 dirent. Exclude the first character of an absolute symlink.
27072 (grub_ext2_dir): Mask out the filetype part of the mode member of
27073 the inode.
27074
27075 2004-05-24 Marco Gerards <metgerards@student.han.nl>
27076
27077 Add support for UFS version 1 and 2. Add support for the minix
27078 filesystem version 1 and 2, both the variants with 14 and 30 long
27079 filenames.
27080
27081 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
27082 fs/minix.c.
27083 (grub_emu_SOURCES): Likewise.
27084 (pkgdata_MODULES): Add ufs.mod and minix.mod.
27085 (ufs_mod_SOURCES): New variable.
27086 (ufs_mod_CFLAGS): Likewise.
27087 (minix_mod_SOURCES): Likewise.
27088 (minix_mod_CFLAGS): Likewise.
27089 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
27090 fs/minix.c.
27091 (grubof_SOURCES): Likewise.
27092 * fs/ufs.c: New file.
27093 * fs/minix.c: New file.
27094 * include/grub/fs.h (grub_ufs_init): New prototype.
27095 (grub_ufs_fini): Likewise.
27096 (grub_minix_init): Likewise.
27097 (grub_minix_fini): Likewise.
27098 * util/grub-emu.c (main): Initialize and deinitialize UFS and
27099 minix fs.
27100
27101 2004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
27102
27103 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
27104 commands/ls.c, commands/terminal.c, commands/boot.c,
27105 commands/cmp.c and commands/cat.c.
27106 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
27107
27108 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
27109 "env.h"
27110
27111 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
27112
27113 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
27114 and grub_, respectively. Because the conversion is trivial and
27115 mechanical, I omit the details here. Please refer to the CVS
27116 if you need more information.
27117
27118 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
27119
27120 * include/pupa: Renamed to ...
27121 * include/grub: ... this.
27122 * util/i386/pc/pupa-mkimage.c: Renamed to ...
27123 * util/i386/pc/grub-mkimage.c: ... this.
27124 * util/i386/pc/pupa-setup.c: Renamed to ...
27125 * util/i386/pc/grub-setup.c: ... this.
27126 * util/pupa-emu.c: Renamed to ...
27127 * util/grub-emu.c: ... this.
27128
27129 2004-03-29 Marco Gerards <metgerards@student.han.nl>
27130
27131 Add support for the newworld apple macintosh (PPC). This has been
27132 tested on the powerbook 2000 only. It only adds support for
27133 generic ieee1275 functions, console and disk support. This should
27134 be easy to port to other architectures with support for Open
27135 Firmware.
27136
27137 * configure.ac: Accept the powerpc as host_cpu. In the case of
27138 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
27139 specific tests are only executed while building for the i386.
27140 Inverse test for crosscompile.
27141 * genmk.rb (Utility): Allow assembler files.
27142 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
27143 * conf/powerpc-ieee1275.rmk: New file.
27144 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
27145 * disk/powerpc/ieee1275/partition.c: Likewise.
27146 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
27147 * include/pupa/powerpc/ieee1275/console.h: Likewise.
27148 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
27149 * include/pupa/powerpc/ieee1275/time.h: Likewise.
27150 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
27151 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
27152 * include/pupa/powerpc/ieee1275/loader.h
27153 * include/pupa/powerpc/setjmp.h: Likewise.
27154 * include/pupa/powerpc/types.h: Likewise.
27155 * kern/powerpc/ieee1275/init.c: Likewise.
27156 * kern/powerpc/ieee1275/openfw.c: Likewise.
27157 * term/powerpc/ieee1275/ofconsole.c: Likewise.
27158
27159 These files were written by Johan Rydberg
27160 (jrydberg@night.trouble.net) and I only modified them slightly.
27161
27162 * boot/powerpc/ieee1275/cmain.c: New file.
27163 * boot/powerpc/ieee1275/crt0.S: Likewise.
27164 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
27165 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
27166
27167 2004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
27168
27169 * Makefile.in: Update copyright.
27170 * genmodsrc.sh: Likewise.
27171 * gensymlist.sh: Likewise.
27172 * term/i386/pc/vga.c: Indent correctly.
27173
27174 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
27175 bugreporting address.
27176 * util/i386/pc/pupa-setup.c (usage): Likewise,
27177 (main): Call pupa_ext2_init and pupa_ext2_fini.
27178
27179 * fs/fat.c (log2): Renamed to ...
27180 (fat_log2): ... this.
27181 All callers changed.
27182 * kern/misc.c (memcpy): Alias to pupa_memmove.
27183 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
27184 lvalue cast.
27185 * util/console.c (pupa_ncurses_fini): Return 0.
27186
27187 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
27188 Move fail label here.
27189 [__GNU__]: Don't warn when using stat.
27190 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
27191 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
27192 long int. Use strtol instead of strtoul.
27193
27194 2004-03-14 Marco Gerards <metgerards@student.han.nl>
27195
27196 * commands/boot.c: New file.
27197 * commands/cat.c: Likewise.
27198 * commands/cmp.c: Likewise.
27199 * commands/ls.c: Likewise.
27200 * commands/terminal.c: Likewise.
27201 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
27202 (pupa_register_command): Changed interface to match the new
27203 argument parser.
27204 (pupa_command_execute): Changed (almost rewritten) so it uses
27205 pupa_split_command. Added support for setting variables using the
27206 syntax `foo=bar'.
27207 (rescue_command): Changed to work with the new argument parser.
27208 (terminal_command): Moved from here to commands/terminal.c.
27209 (set_command): New function.
27210 (unset_command): New function.
27211 (insmod_command): New function.
27212 (rmmod_command): New function.
27213 (lsmod_command): New function.
27214 (pupa_command_init): Don't initialize the command terminal
27215 anymore. Initialize the commands set, unset, insmod, rmmod and
27216 lsmod.
27217 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
27218 (kernel_img_HEADERS): Add arg.h and env.h.
27219 (pupa_mkimage_LDFLAGS): Add kern/env.c.
27220 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
27221 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
27222 normal/arg.c.
27223 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
27224 terminal.mod.
27225 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
27226 (boot_mod_SOURCES): New variable.
27227 (terminal_mod_SOURCES): Likewise.
27228 (ls_mod_SOURCES): Likewise.
27229 (cmp_mod_SOURCES): Likewise.
27230 (cat_mod_SOURCES): Likewise.
27231
27232 * normal/arg.c: New file.
27233 * kern/env.c: Likewise.
27234 * include/pupa/arg.h: Likewise.
27235 * include/pupa/env.h: Likewise.
27236 * font/manager.c (font_command): Changed to match argument parsing
27237 interface changes.
27238 (PUPA_MOD_INIT): Likewise.
27239 * hello/hello.c (pupa_cmd_hello): Likewise.
27240 (PUPA_MOD_INIT): Likewise.
27241 * include/pupa/disk.h: Include <pupa/device.h>.
27242 (pupa_print_partinfo): New prototype.
27243 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
27244 (pupa_dl_get_prefix): Likewise.
27245 * include/pupa/misc.h: Include <pupa/err.h>.
27246 (pupa_isgraph): New prototype.
27247 (pupa_isdigit): Likewise.
27248 (pupa_split_cmdline): Likewise.
27249 * include/pupa/normal.h: Include <pupa/arg.h>.
27250 (pupa_command): Changed the prototype of the member `func' to
27251 match the argument parsing interface. Added member `options'.
27252 (pupa_register_command): Updated to match function.
27253 (pupa_arg_parse): New prototype.
27254 (pupa_hello_init) [PUPA_UTIL]: New prototype.
27255 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
27256 (pupa_ls_init) [PUPA_UTIL]: Likewise.
27257 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
27258 (pupa_cat_init) [PUPA_UTIL]: Likewise.
27259 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
27260 (pupa_boot_init) [PUPA_UTIL]: Likewise.
27261 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
27262 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
27263 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
27264 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
27265 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
27266 * kern/disk.c: Include <pupa/file.h>.
27267 (pupa_print_partinfo): New function.
27268 * kern/dl.c: Include <pupa/env.h>.
27269 (pupa_dl_dir): Variable removed.
27270 (pupa_dl_load): Use the environment variable `prefix' instead of
27271 the variable pupa_dl_dir.
27272 (pupa_dl_set_prefix): Function removed.
27273 (pupa_dl_get_prefix): Likewise.
27274 * kern/i386/pc/init.c: Include <pupa/env.h>.
27275 (pupa_machine_init): Use the environment variable `prefix' instead of
27276 using pupa_dl_set_prefix to set the prefix.
27277 * kern/main.c: Include <pupa/env.h>.
27278 (pupa_set_root_dev): Use the environment variable `prefix' instead of
27279 using pupa_dl_get_prefix to get the prefix.
27280 * kern/misc.c: Include <pupa/env.h>.
27281 (pupa_isdigit): New function.
27282 (pupa_isgraph): Likewise.
27283 (pupa_ftoa): Likewise.
27284 (pupa_vsprintf): Added support for printing values of the type
27285 `double'. Make it possible to format variable output when using
27286 formatting like `%1.2%f'.
27287 (pupa_split_cmdline): New function.
27288 * kern/rescue.c: Include <pupa/env.h>.
27289 (next_word): Removed function.
27290 (pupa_rescue_cmd_prefix): Likewise.
27291 (pupa_rescue_cmd_set): New function.
27292 (pupa_rescue_cmd_unset): New function.
27293 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
27294 split the command line instead of splitting it here. Added
27295 support for setting variables using the syntax `foo=bar'. Don't
27296 initialize the prefix command anymore. Initialized the set and
27297 unset commands.
27298 * normal/cmdline.c: Include <pupa/env.h>.
27299 (pupa_tab_complete): Added prototypes for print_simple_completion,
27300 print_partition_completion, add_completion, iterate_commands,
27301 iterate_dev, iterate_part and iterate_dir. Moved code to print
27302 partition information from here to kern/disk.c.
27303 (pupa_cmdline_run): Don't check if the function exists anymore.
27304 * normal/main.c: Include <pupa/env.h>.
27305 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
27306 instead of using pupa_dl_get_prefix to get the prefix.
27307 * term/i386/pc/vga.c: Include <pupa/arg.h>.
27308 (check_vga_mem): Cast pointers to `void *' to silence a gcc
27309 warning.
27310 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
27311 (pupa_vga_setcolor): Declare unused variables with `__attribute__
27312 ((unused))' to silence a gcc warning.
27313 (pupa_vga_setcolor): Likewise.
27314 (debug_command): Changed to match argument parsing
27315 interface changes.
27316 * util/pupa-emu.c: Include <pupa/env.h>.
27317 (options): Added 0's for unused fields to silence a gcc warning.
27318 (argp): Likewise.
27319 (main): Use the environment variable `prefix' instead of using
27320 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
27321 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
27322 and terminal.
27323
27324 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
27325 * util/misc.c: Include <malloc.h>.
27326 (pupa_malloc): Rewritten so errors are correctly reported.
27327 (pupa_realloc): Likewise.
27328 (pupa_memalign): Likewise.
27329 (pupa_mm_init_region): Declare unused variables with
27330 `__attribute__ ((unused))' to silence a gcc warning.
27331 * normal/i386/setjmp.S: Remove tab at the end of the file to
27332 silence a gcc warning.
27333 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
27334 variables with `__attribute__ ((unused))' to silence a gcc
27335 warning.
27336 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
27337 local variable i unsigned to silence a gcc warning.
27338
27339 * kern/term.c: Include <pupa/misc.h>.
27340 (pupa_more_lines): New variable.
27341 (pupa_more): Likewise.
27342 (pupa_putcode): When the pager is active pause at the end of every
27343 screen.
27344 (pupa_set_more): New function.
27345 * include/pupa/term.h (pupa_set_more): New prototype.
27346
27347
27348 2004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
27349
27350 Now this project is GRUB 2 rather than PUPA. The location of
27351 the CVS repository was moved to GRUB's.
27352
27353 * configure.ac: Use bug-grub as the reporting address.
27354 Use GRUB instead of PUPA.
27355 Change the version number to 1.90.
27356
27357 2004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
27358
27359 * genkernsyms.sh: Updated copyright information.
27360 * genmk.rb: Likewise.
27361 * genmodsrc.sh: Likewise.
27362 * gensymlist.sh: Likewise.
27363 * boot/i386/pc/boot.S: Likewise.
27364 * boot/i386/pc/diskboot.S: Likewise.
27365 * disk/i386/pc/biosdisk.c: Likewise.
27366 * disk/i386/pc/partition.c: Likewise.
27367 * font/manager.c: Likewise.
27368 * fs/ext2.c: Likewise.
27369 * fs/fat.c: Likewise.
27370 * include/pupa/boot.h: Likewise.
27371 * include/pupa/device.h: Likewise.
27372 * include/pupa/disk.h: Likewise.
27373 * include/pupa/dl.h: Likewise.
27374 * include/pupa/elf.h: Likewise.
27375 * include/pupa/err.h: Likewise.
27376 * include/pupa/file.h: Likewise.
27377 * include/pupa/font.h: Likewise.
27378 * include/pupa/fs.h: Likewise.
27379 * include/pupa/kernel.h: Likewise.
27380 * include/pupa/loader.h: Likewise.
27381 * include/pupa/misc.h: Likewise.
27382 * include/pupa/mm.h: Likewise.
27383 * include/pupa/net.h: Likewise.
27384 * include/pupa/normal.h: Likewise.
27385 * include/pupa/rescue.h: Likewise.
27386 * include/pupa/setjmp.h: Likewise.
27387 * include/pupa/symbol.h: Likewise.
27388 * include/pupa/term.h: Likewise.
27389 * include/pupa/types.h: Likewise.
27390 * include/pupa/i386/setjmp.h: Likewise.
27391 * include/pupa/i386/types.h: Likewise.
27392 * include/pupa/i386/pc/biosdisk.h: Likewise.
27393 * include/pupa/i386/pc/boot.h: Likewise.
27394 * include/pupa/i386/pc/console.h: Likewise.
27395 * include/pupa/i386/pc/init.h: Likewise.
27396 * include/pupa/i386/pc/kernel.h: Likewise.
27397 * include/pupa/i386/pc/linux.h: Likewise.
27398 * include/pupa/i386/pc/loader.h: Likewise.
27399 * include/pupa/i386/pc/memory.h: Likewise.
27400 * include/pupa/i386/pc/multiboot.h: Likewise.
27401 * include/pupa/i386/pc/partition.h: Likewise.
27402 * include/pupa/i386/pc/time.h: Likewise.
27403 * include/pupa/i386/pc/vga.h: Likewise.
27404 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
27405 * include/pupa/util/getroot.h: Likewise.
27406 * include/pupa/util/misc.h: Likewise.
27407 * include/pupa/util/resolve.h: Likewise.
27408 * kern/device.c: Likewise.
27409 * kern/disk.c: Likewise.
27410 * kern/dl.c: Likewise.
27411 * kern/err.c: Likewise.
27412 * kern/file.c: Likewise.
27413 * kern/fs.c: Likewise.
27414 * kern/loader.c: Likewise.
27415 * kern/main.c: Likewise.
27416 * kern/misc.c: Likewise.
27417 * kern/mm.c: Likewise.
27418 * kern/rescue.c: Likewise.
27419 * kern/term.c: Likewise.
27420 * kern/i386/dl.c: Likewise.
27421 * kern/i386/pc/init.c: Likewise.
27422 * kern/i386/pc/lzo1x.S: Likewise.
27423 * kern/i386/pc/startup.S: Likewise.
27424 * loader/i386/pc/chainloader.c: Likewise.
27425 * loader/i386/pc/linux.c: Likewise.
27426 * loader/i386/pc/multiboot.c: Likewise.
27427 * normal/cmdline.c: Likewise.
27428 * normal/command.c: Likewise.
27429 * normal/main.c: Likewise.
27430 * normal/menu.c: Likewise.
27431 * normal/i386/setjmp.S: Likewise.
27432 * term/i386/pc/console.c: Likewise.
27433 * term/i386/pc/vga.c: Likewise.
27434 * util/console.c: Likewise.
27435 * util/genmoddep.c: Likewise.
27436 * util/misc.c: Likewise.
27437 * util/pupa-emu.c: Likewise.
27438 * util/resolve.c: Likewise.
27439 * util/unifont2pff.rb: Likewise.
27440 * util/i386/pc/biosdisk.c: Likewise.
27441 * util/i386/pc/getroot.c: Likewise.
27442 * util/i386/pc/pupa-mkimage.c: Likewise.
27443 * util/i386/pc/pupa-setup.c: Likewise.
27444
27445 2004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
27446
27447 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
27448 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
27449 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
27450 reading and reset it after reading.
27451 (pupa_ext2_close): Return PUPA_ERR_NONE.
27452
27453 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
27454 Correct value.
27455 (struct linux_kernel_header): Add kernel_version and
27456 initrd_addr_max.
27457 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
27458 pupa_file_read succeeds.
27459 (pupa_rescue_cmd_initrd): Implement.
27460
27461 2003-12-03 Marco Gerards <metgerards@student.han.nl>
27462
27463 * fs/ext2.c (pupa_ext2_label): New function.
27464 (pupa_ext2_fs): Added label.
27465 * fs/fat.c (pupa_fat_label): New function.
27466 (pupa_fat_fs): Added label.
27467 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
27468
27469 * kern/misc.c (pupa_strndup): New function.
27470 * include/pupa/misc.h (pupa_strndup): New prototype.
27471
27472 * include/pupa/normal.h: Include <pupa/err.h>.
27473 (pupa_set_history): New prototype.
27474 (pupa_iterate_commands): New prototype.
27475 * normal/cmdline.c: Include <pupa/machine/partition.h>,
27476 <pupa/disk.h>, <pupa/file.h>.
27477 (hist_size): New variable.
27478 (hist_lines): Likewise.
27479 (hist_end): Likewise.
27480 (hist_used): Likewise.
27481 (pupa_set_history): New function.
27482 (pupa_history_get): Likewise.
27483 (pupa_history_add): Likewise.
27484 (pupa_history_replace): Likewise.
27485 (pupa_tab_complete): Likewise.
27486 (pupa_cmdline_run): Added tab completion and history buffer. Tab
27487 completion shows partitionnames while completing partitions, this
27488 feature was suggested by Jeff Bailey.
27489 * normal/command.c (pupa_iterate_commands): New function.
27490 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
27491 (pupa_normal_init): Initialize history buffer.
27492 (PUPA_MOD_INIT): Likewise.
27493 (pupa_normal_fini): Free the history buffer.
27494 (PUPA_MOD_FINI): Likewise.
27495
27496 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
27497 key.
27498
27499 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
27500 * configure.ac [i386]: Check for regparam bug.
27501 (NESTED_FUNC_ATTR) [! i386]: Defined.
27502
27503 2003-11-17 Marco Gerards <metgerards@student.han.nl>
27504
27505 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
27506 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
27507 (pupa_emu_SOURCES): New variable.
27508 (pupa_emu_LDFLAGS): Likewise.
27509 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
27510 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
27511 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
27512 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
27513 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
27514 (pupa_jmp_buf): New typedef.
27515 (pupa_setjmp) [PUPA_UTIL]: New macro.
27516 (pupa_longjmp) [PUPA_UTIL]: Likewise.
27517 * include/pupa/term.h (struct pupa_term): New member `refresh'.
27518 (pupa_refresh): New prototype.
27519 * include/pupa/util/getroot.h: New file.
27520 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
27521 it.
27522 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
27523 (pupa_rescue_cmd_cat): Likewise.
27524 (pupa_rescue_cmd_ls): Likewise.
27525 (pupa_rescue_cmd_testload): Likewise.
27526 (pupa_rescue_cmd_lsmod): Likewise.
27527 * normal/cmdline.c (pupa_cmdline_get): Likewise.
27528 * normal/menu.c (run_menu): Likewise.
27529 * kern/term.c (pupa_cls): Likewise.
27530 (pupa_refresh): New function.
27531 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
27532 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
27533 * util/console.c: New file.
27534
27535 * util/i386/pc/getroot.c: New file.
27536 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
27537 (pupa_putchar): New function.
27538 (pupa_refresh): Likewise.
27539 (xgetcwd): Function moved to ...
27540 (strip_extra_slashes): Likewise.
27541 (get_prefix): Likewise.
27542 * util/i386/pc/getroot.c: ... here.
27543 (find_root_device): Function moved and renamed to...
27544 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
27545 Changed all callers.
27546 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
27547 and renamed to...
27548 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
27549 Changed all callers.
27550 * util/misc.c (pupa_memalign): New function.
27551 (pupa_mm_init_region): Likewise.
27552 (pupa_register_exported_symbols): Likewise.
27553 (pupa_putchar): Function removed.
27554 * util/pupa-emu.c: New file.
27555
27556 2003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
27557
27558 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
27559 (_multiboot_mod_SOURCES): New variable.
27560 (_multiboot_mod_CFLAGS): Likewise.
27561 * loader/i386/pc/multiboot.c: New file.
27562 * include/pupa/i386/pc/multiboot.h: Likewise.
27563 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
27564 (pupa_multiboot_real_boot): New function.
27565 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
27566 (pupa_multiboot_real_boot): New prototype.
27567 (pupa_rescue_cmd_multiboot): Likewise
27568 (pupa_rescue_cmd_module): Likewise.
27569
27570 * kern/loader.c (pupa_loader_set): Continue when
27571 pupa_loader_unload_func() fails.
27572 (pupa_loader_unset): New function.
27573 * include/pupa/loader.h (pupa_loader_unset): New prototype.
27574
27575 * kern/misc.c (pupa_stpcpy): New function.
27576 * include/pupa/misc.h (pupa_stpcpy): New prototype.
27577
27578 2003-11-12 Marco Gerards <metgerards@student.han.nl>
27579
27580 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
27581 for available extensions.
27582
27583 * include/pupa/i386/pc/time.h: New file.
27584 * kern/disk.c: Include <pupa/machine/time.h>.
27585 (PUPA_CACHE_TIMEOUT): New macro.
27586 (pupa_last_time): New variable.
27587 (pupa_disk_open): Flush the cache when there was a timeout.
27588 (pupa_disk_close): Reset the timer.
27589 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
27590 pupa_currticks.
27591 * util/misc.c: Include <sys/times.h>
27592 (pupa_get_rtc): New function.
27593
27594 2003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
27595
27596 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
27597 as blocks.
27598 (pupa_ext2_get_file_block): Use blocks member.
27599
27600 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
27601 first block. Return -1 instead of pupa_errno on error.
27602
27603 2003-10-27 Marco Gerards <metgerards@student.han.nl>
27604
27605 * README: In the pupa-mkimage example use _chain instead of chain
27606 and ext2 instead of fat.
27607 * TODO: Replace ext2fs with jfs as an example. Add an item for
27608 adding journal playback for ext2fs.
27609 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
27610 (pkgdata_MODULES): Added ext2.mod.
27611 (ext2_mod_SOURCES): New variable.
27612 (ext2_mod_CFLAGS): Likewise.
27613 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
27614 * include/pupa/misc.h (pupa_strncpy): New prototype.
27615 (pupa_strcat): Likewise.
27616 (pupa_strncmp): Likewise.
27617 * kern/misc.c (pupa_strcat): Enable function.
27618 (pupa_strncpy): New function.
27619 (pupa_strncmp): Likewise.
27620 * fs/ext2.c: New file.
27621
27622 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
27623 when the read failed before retrying.
27624 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
27625 (_FILE_OFFSET_BITS): Likewise.
27626 * configure.ac: Added AC_SYS_LARGEFILE.
27627
27628 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
27629
27630 * genmk.rb (PModule#rule): Make sure to get only symbol names
27631 from the output of nm.
27632 Reported by Robert Millan <rmh.grub@aybabtu.com>.
27633
27634 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
27635
27636 I forgot to check in these changes for a long time. This adds
27637 incomplete support for VGA console, and this is still very
27638 buggy. Also, a lot of consideration is required for I18N,
27639 UNICODE, and VGA font issues. Therefore, assume that this is
27640 such that "better than nothing".
27641
27642 * font/manager.c: New file.
27643 * include/pupa/font.h: Likewise.
27644 * include/pupa/i386/pc/vga.h: Likewise.
27645 * term/i386/pc/vga.c: Likewise.
27646 * util/unifont2pff.rb: Likewise.
27647
27648 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
27649 (pkgdata_MODULES): Added vga.mod and font.mod.
27650 (vga_mod_SOURCES): New variables.
27651 (vga_mod_CFLAGS): Likewise.
27652 (font_mod_SOURCES): Likewise.
27653 (font_mod_CFLAGS): Likewise.
27654
27655 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
27656
27657 * include/pupa/term.h: Include pupa/err.h.
27658 (struct pupa_term): Added init and fini.
27659 Changed the argument of putchar to pupa_uint32_t.
27660
27661 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
27662 (pupa_console_real_putchar): New prototype.
27663 (pupa_console_putchar): Removed.
27664 (pupa_console_checkkey): Exported.
27665 (pupa_console_getkey): Likewise.
27666
27667 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
27668 characters.
27669
27670 * kern/term.c (pupa_term_set_current): Rewritten.
27671 (pupa_putchar): Likewise.
27672 (pupa_putcode): New function.
27673
27674 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
27675 (pupa_console_real_putchar): ... this.
27676 (pupa_vga_set_mode): New function.
27677 (pupa_vga_get_font): Likewise.
27678
27679 * normal/command.c: Include pupa/term.h.
27680 (terminal_command): New function.
27681 (pupa_command_init): Register the command "terminal".
27682
27683 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
27684 (DISP_UP): Likewise.
27685 (DISP_RIGHT): Likewise.
27686 (DISP_DOWN): Likewise.
27687 (DISP_HLINE): Likewise.
27688 (DISP_VLINE): Likewise.
27689 (DISP_UL): Likewise.
27690 (DISP_UR): Likewise.
27691 (DISP_LL): Likewise.
27692 (DISP_LR): Likewise.
27693
27694 * term/i386/pc/console.c (pupa_console_putchar): New function.
27695
27696 2003-02-08 NIIBE Yutaka <gniibe@m17n.org>
27697
27698 * util/resolve.c (pupa_util_resolve_dependencies): BUG
27699 FIX. Reverse the path_list.
27700
27701 * include/pupa/normal.h: Export pupa_register_command and
27702 pupa_unregister_command.
27703
27704 * hello/hello.c (pupa_cmd_hello): New module.
27705 * conf/i386-pc.rmk: Added hello.mod.
27706
27707 2003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
27708
27709 * kern/i386/pc/lzo1x.S: New file.
27710
27711 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
27712 (compress_kernel): New variable.
27713 (generate_image): Heavily modified to support compressing a
27714 large part of the core image.
27715
27716 * util/misc.c (pupa_util_read_image): Fix a file descriptor
27717 leak.
27718 (pupa_util_load_image): New function.
27719
27720 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
27721 (pupa_compressed_size): New variable.
27722 (codestart): Enable Gate A20 here.
27723 Decompress the compressed part of the core image.
27724 Rearrange the code to put functions and variables which are
27725 required for initialization in the non-compressed part.
27726 Include lzo1x.S.
27727
27728 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
27729 here.
27730
27731 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
27732
27733 * include/pupa/i386/pc/kernel.h
27734 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
27735 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
27736 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
27737 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
27738 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
27739
27740 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
27741
27742 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
27743 (Utility#rule): Likewise.
27744
27745 * configure.ac: Check if LZO is available.
27746
27747 2003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
27748
27749 * include/pupa/normal.h: New file.
27750 * include/pupa/setjmp.h: Likewise.
27751 * include/pupa/i386/setjmp.h: Likewise.
27752 * normal/cmdline.c: Likewise.
27753 * normal/command.c: Likewise.
27754 * normal/main.c: Likewise.
27755 * normal/menu.c: Likewise.
27756 * normal/i386/setjmp.S: Likewise.
27757
27758 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
27759 (pupa_rescue_cmd_initrd): Likewise.
27760
27761 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
27762 Likewise.
27763
27764 * kern/i386/pc/startup.S (translation_table): New variable.
27765 (translate_keycode): New function.
27766 (pupa_console_getkey): Call translate_keycode.
27767
27768 * kern/rescue.c (attempt_normal_mode): New function.
27769 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
27770 it failed, print a message.
27771
27772 * kern/mm.c (pupa_real_malloc): Print more information when a
27773 free magic is broken.
27774 (pupa_free): If the first free header is not free actually, set
27775 it to P.
27776
27777 * kern/main.c (pupa_load_normal_mode): Just load the module
27778 "normal".
27779 (pupa_main): Don't print the message
27780 "Entering into rescue mode..." here.
27781
27782 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
27783 Declared.
27784 (pupa_rescue_cmd_initrd): Likewise.
27785 (pupa_rescue_cmd_initrd): Likewise.
27786
27787 * include/pupa/symbol.h (FUNCTION): Specify the type.
27788 (VARIABLE): Likewise.
27789
27790 * include/pupa/err.h (pupa_err_t): Added
27791 PUPA_ERR_UNKNOWN_COMMAND.
27792
27793 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
27794 (pupa_dl_get_prefix): Likewise.
27795
27796 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
27797 Added _chain.mod and _linux.mod instead of chain.mod and
27798 linux.mod.
27799 (chain_mod_SOURCES): Renamed to ...
27800 (_chain_mod_SOURCES): ... this.
27801 (chain_mod_CFLAGS): Renamed to ...
27802 (_chain_mod_CFLAGS): ... this.
27803 (linux_mod_SOURCES): Renamed to ...
27804 (_linux_mod_SOURCES): ... this.
27805 (linux_mod_CFLAGS): Renamed to ...
27806 (_linux_mod_CFLAGS): ... this.
27807 (normal_mod_SOURCES): New variable.
27808 (normal_mod_CFLAGS): Likewise.
27809 (normal_mod_ASFLAGS): Likewise.
27810
27811 2003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
27812
27813 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
27814 possible.
27815
27816 * kern/dl.c (pupa_dl_ref): Refer depending modules
27817 recursively.
27818 (pupa_dl_unref): Unrefer depending modules recursively.
27819 Don't call pupa_dl_unload implicitly, because PUPA can crash if
27820 a module is unloaded before one depending on that module is
27821 unloaded.
27822 (pupa_dl_unload): Unload depending modules explicitly,
27823 if possible.
27824
27825 2003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
27826
27827 * include/pupa/i386/pc/linux.h: New file.
27828 * loader/i386/pc/linux.c: Likewise.
27829
27830 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
27831 Removed.
27832 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
27833 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
27834 of PUPA_CHAINLOADER_BOOT_SECTOR.
27835
27836 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
27837 (pupa_linux_prot_size): New variable.
27838 (pupa_linux_tmp_addr): Likewise.
27839 (pupa_linux_real_addr): Likewise.
27840 (pupa_linux_boot_zimage): New function.
27841 (pupa_linux_boot_bzimage): Likewise.
27842
27843 * kern/i386/pc/init.c (struct mem_region): New structure.
27844 (MAX_REGIONS): New macro.
27845 (mem_regions): New variable.
27846 (num_regions): Likewise.
27847 (pupa_os_area_addr): Likewise.
27848 (pupa_os_area_size): Likewise.
27849 (pupa_lower_mem): Likewise.
27850 (pupa_upper_mem): Likewise.
27851 (add_mem_region): New function.
27852 (compact_mem_regions): Likewise.
27853 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
27854 the size of the conventional memory and that of so-called upper
27855 memory (before the first memory hole).
27856 Instead of adding each found region to free memory, use
27857 add_mem_region and add them after removing overlaps.
27858 Also, add only 1/4 of the upper memory to free memory. The rest
27859 is used for loading OS images. Maybe this is ad hoc, but this
27860 makes it much easier to relocate OS images when booting.
27861
27862 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
27863 (pupa_enter_rescue_mode): Don't register initrd and module.
27864
27865 * kern/mm.c: Include pupa/dl.h.
27866
27867 * kern/main.c: Include pupa/file.h and pupa/device.h.
27868
27869 * kern/loader.c (pupa_loader_load_module_func): Removed.
27870 (pupa_loader_load_module): Likewise.
27871
27872 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
27873 ``.o''.
27874
27875 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
27876 (pupa_linux_tmp_addr): Likewise.
27877 (pupa_linux_real_addr): Likewise.
27878 (pupa_linux_boot_zimage): Likewise.
27879 (pupa_linux_boot_bzimage): Likewise.
27880
27881 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
27882 (pupa_upper_mem): Likewise.
27883 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
27884 module is too dangerous.
27885
27886 * include/pupa/loader.h (pupa_os_area_addr): Declared.
27887 (pupa_os_area_size): Likewise.
27888 (pupa_loader_set): Remove the first argument. Loader doesn't
27889 manage modules or initrd any longer.
27890 (pupa_loader_load_module): Removed.
27891
27892 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
27893 (linux_mod_SOURCES): New variable.
27894 (linux_mod_CFLAGS): Likewise.
27895
27896 2003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
27897
27898 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
27899 the length of a blocklist correctly.
27900
27901 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
27902 Use ioctl only if the OS file is a block device.
27903 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
27904 not very useful for normal files.
27905
27906 * kern/main.c (pupa_set_root_dev): New function.
27907 (pupa_load_normal_mode): Likewise.
27908 (pupa_main): Call those above.
27909
27910 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
27911 pupa_uint16_t.
27912
27913 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
27914
27915 2003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
27916
27917 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
27918 (setup): Configure the installed partition information and the
27919 dl prefix.
27920
27921 * loader/i386/pc/chainloader.c (my_mod): New variable.
27922 (pupa_chainloader_unload): New function.
27923 (pupa_rescue_cmd_chainloader): Refer itself.
27924 (PUPA_MOD_INIT): Save its own module in MY_MOD.
27925
27926 * kern/i386/pc/startup.S (install_partition): Removed.
27927 (version_string): Likewise.
27928 (config_file): Likewise.
27929 (pupa_install_dos_part): New variable.
27930 (pupa_install_bsd_part): Likewise.
27931 (pupa_prefix): Likewise.
27932 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
27933
27934 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
27935 and pupa/misc.h.
27936 (make_install_device): New function.
27937 (pupa_machine_init): Set the dl prefix.
27938
27939 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
27940 (buf): Renamed to ...
27941 (linebuf): ... this.
27942 (pupa_rescue_cmd_prefix): New function.
27943 (pupa_rescue_cmd_insmod): Likewise.
27944 (pupa_rescue_cmd_rmmod): Likewise.
27945 (pupa_rescue_cmd_lsmod): Likewise.
27946 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
27947 rmmod and lsmod.
27948
27949 * kern/mm.c (pupa_memalign): If failed even after invalidating
27950 disk caches, unload unneeded modules and retry.
27951
27952 * kern/misc.c (pupa_memmove): New function.
27953 (pupa_memcpy): Removed.
27954 (pupa_strcpy): New function.
27955 (pupa_itoa): Made static.
27956
27957 * kern/dl.c (pupa_dl_iterate): New function.
27958 (pupa_dl_ref): Likewise.
27959 (pupa_dl_unref): Likewise.
27960 (pupa_dl_unload): Return if succeeded or not.
27961 (pupa_dl_unload_unneeded): New function.
27962 (pupa_dl_unload_all): Likewise.
27963 (pupa_dl_init): Renamed to ...
27964 (pupa_dl_set_prefix): ... this.
27965 (pupa_dl_get_prefix): New function.
27966
27967 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
27968 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
27969 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
27970 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
27971 (pupa_install_dos_part): Declared.
27972 (pupa_install_bsd_part): Likewise.
27973 (pupa_prefix): Likewise.
27974 (pupa_boot_drive): Likewise.
27975
27976 * include/pupa/types.h: Fix a typo.
27977
27978 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
27979 pupa_memmove.
27980 (pupa_memmove): Declared.
27981 (pupa_strcpy): Likewise.
27982
27983 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
27984 pupa_mod_init takes one argument, its own module.
27985 (pupa_dl_unload_unneeded): Declared.
27986 (pupa_dl_unload_all): Likewise.
27987 (pupa_dl_ref): Likewise.
27988 (pupa_dl_unref): Likewise.
27989 (pupa_dl_iterate): Likewise.
27990 (pupa_dl_init): Renamed to ...
27991 (pupa_dl_set_prefix): ... this.
27992 (pupa_dl_get_prefix): Declared.
27993
27994 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
27995 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
27996 unloaded.
27997 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
27998 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
27999
28000 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
28001 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
28002
28003 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
28004
28005 * util/i386/pc/pupa-setup.c (setup): Define the internal
28006 function find_first_partition_start at the top level, because GCC
28007 3.0.x cannot compile internal functions in deeper scopes
28008 correctly.
28009 (find_root_device): Use lstat instead of stat.
28010 Don't follow symbolic links.
28011 Fix the path-constructing code.
28012
28013 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
28014 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
28015 by a BLKGETSIZE ioctl first, because block devices don't fill
28016 the member st_mode of the structure stat on Linux.
28017 [__linux__] (linux_find_partition): Use a temporary buffer
28018 REAL_DEV for the working space. Copy it to DEV before returning.
28019 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
28020 buffer cache consistent.
28021 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
28022 strncmp. The previous value was merely wrong.
28023 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
28024
28025 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
28026 FAT size is 12. The previous value was merely wrong.
28027
28028 * kern/main.c (pupa_main): Don't split the starting message from
28029 newlines.
28030
28031 * kern/term.c (pupa_putchar): Put CR after LF instead of before
28032 LF, because BIOS goes crazy about character attributes in this
28033 case.
28034
28035 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
28036
28037 * include/i386/pc/util/biosdisk.h: New file.
28038 * util/i386/pc/biosdisk.c: Likewise.
28039 * util/i386/pc/pupa-setup.c: Likewise.
28040
28041 * Makefile.in (INCLUDE_DISTFILES): Added
28042 include/pupa/i386/pc/util/biosdisk.h.
28043 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
28044 directory util/i386/pc.
28045 (install-local): Added a rule for sbin_UTILITIES.
28046 (uninstall): Likewise.
28047
28048 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
28049
28050 * util/misc.c (xrealloc): New function.
28051 (pupa_malloc): Likewise.
28052 (pupa_free): Likewise.
28053 (pupa_realloc): Likewise.
28054 (pupa_stop): Likewise.
28055 (pupa_putchar): Likewise.
28056
28057 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
28058
28059 * include/pupa/util/misc.h (xrealloc): Declared.
28060
28061 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
28062 macro.
28063 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
28064 (PUPA_BOOT_MACHINE_BPB_END): ... this.
28065
28066 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
28067 [PUPA_UTIL] (pupa_fat_fini): Likewise.
28068
28069 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
28070 way should be implemented.
28071 [PUPA_UTIL] (pupa_fat_fini): Likewise.
28072
28073 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
28074 the size of NAME for safety.
28075 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
28076 0x88.
28077
28078 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
28079 (pupa_setup_SOURCES): Likewise.
28080
28081 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
28082
28083 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
28084
28085 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
28086 bunch of pushl's from pusha, because this destroys the return
28087 value.
28088
28089 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
28090
28091 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
28092 This means that any missing prototypes could be fatal. Also, you
28093 must take care when writing assembly code. See the comments at
28094 the beginning of startup.S, for more details.
28095
28096 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
28097 compilation mechanism.
28098 (pupa_chainloader_real_boot): Likewise.
28099 (pupa_biosdisk_rw_int13_extensions): Likewise.
28100 (pupa_biosdisk_rw_standard): Likewise.
28101 (pupa_biosdisk_check_int13_extensions): Likewise.
28102 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
28103 (pupa_biosdisk_get_diskinfo_standard): Likewise.
28104 (pupa_get_memsize): Likewise.
28105 (pupa_get_mmap_entry): Likewise.
28106 (pupa_console_putchar): Likewise.
28107 (pupa_console_setcursor): Likewise.
28108 (pupa_getrtsecs): Use pushl instead of push.
28109
28110 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
28111 memory instead of the stack for a mmap entry, because some
28112 BIOSes may ignore the maximum size and overflow.
28113
28114 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
28115
28116 * genmk.rb (PModule#rule): Compile automatically generated
28117 sources with module-specific CFLAGS as well as other sources.
28118
28119 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
28120
28121 * configure.ac: Check ld.
28122 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
28123 respectively, before checking endianness and sizes.
28124
28125 * Makefile.in (LD): New variable.
28126
28127 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
28128
28129 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
28130
28131 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
28132
28133 * Changelog: New file.
28134