]> git.proxmox.com Git - grub2.git/blame - ChangeLog
* include/grub/misc.h (grub_reboot): Declare as noreturn.
[grub2.git] / ChangeLog
CommitLineData
e03ed6c1
CW
12010-07-02 Colin Watson <cjwatson@ubuntu.com>
2
3 * include/grub/misc.h (grub_reboot): Declare as noreturn.
4 * kern/efi/efi.c (grub_reboot): Don't return, even if reset_system
5 fails.
6 (grub_halt): Likewise.
7 * kern/ieee1275/openfw.c (grub_reboot): Don't return, even if
8 reset-all fails.
9 (grub_halt): Don't return, even if all of shut-down, power-off, and
10 poweroff fail.
11
47695765
CW
122010-07-02 Colin Watson <cjwatson@ubuntu.com>
13
14 * kern/efi/init.c (grub_efi_init): set_watchdog_timer takes four
15 arguments, not three.
16
507736c8
CW
172010-07-02 Colin Watson <cjwatson@ubuntu.com>
18
19 * util/grub-mkconfig_lib.in (uses_abstraction): New function.
20 * util/grub.d/10_linux.in: Use it to check for LVM, so that
21 LVM-on-RAID is handled correctly.
22
e3c8cd37
CW
232010-07-02 Colin Watson <cjwatson@ubuntu.com>
24
25 * docs/grub.texi (Changes from GRUB Legacy): New section.
26 (Future): Fix typo.
27
8d4a2fec
CW
282010-07-02 Colin Watson <cjwatson@ubuntu.com>
29
30 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
31 grub.d/README accidentally ends up executable for one reason or
32 another. Ignore it.
33
1c4827be
VS
342010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
35
36 * partmap/gpt.c (MAX_SECTOR_LOG): New definition.
37 (gpt_partition_map_iterate): Support non-512B sectors.
38
d9a0c941
VS
392010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
40
41 * kern/efi/init.c (grub_efi_init): Disable watchdog.
42 Tested by: Seth Goldberg.
43
48f27e87
VS
442010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
45
46 * loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
47 Properly align mbi.
48 Reported by: Seth Goldberg.
49
b0c4f956
VS
502010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
51
52 * util/grub-mkrescue.in: Avoid module duplication.
53
105a2e8c
SF
542010-07-01 Sean Finney <seanius@seanius.net>
55
56 * util/grub.d/10_linux.in: Don't use UUID for LVM root.
57
5944958c
SF
582010-07-01 Sean Finney <seanius@seanius.net>
59
60 * disk/lvm.c (grub_lvm_scan_device): Skip snapshots.
61
622010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
63
64 * disk/lvm.c (grub_lvm_checkvalue): New function.
65 (grub_lvm_check_flag): Likewise.
66
b79889ba
RM
672010-07-01 Robert Millan <rmh@gnu.org>
68
69 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk):
70 Support 'p' as partition separator on kernel of FreeBSD (used
71 with GPT labels).
72 (grub_util_biosdisk_get_grub_dev): Likewise.
73
ec1d04f1
VS
742010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
75
76 Yeeloong firmware port.
77
78 * boot/mips/yeeloong/fwstart.S: New file.
79 * bus/cs5536.c (gpiodump): New const.
80 (set_io_space): New function.
81 (set_iod): Likewise.
82 (set_p2d): Likewise.
83 (grub_cs5536_init_geode): Likewise.
84 * commands/mips/yeeloong/lsspd.c: New file.
85 * conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod.
86 (serial_mod_SOURCES): New variable.
87 (serial_mod_CFLAGS): Likewise.
88 (serial_mod_LDFLAGS): Likewise.
89 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c,
90 term/terminfo.c and term/tparm.c.
91 (pkglib_IMAGES): Add fwstart.img.
92 (fwstart_img_SOURCES): New variable.
93 (fwstart_img_CFLAGS): Likewise.
94 (fwstart_img_ASFLAGS): Likewise.
95 (fwstart_img_LDFLAGS): Likewise.
96 (fwstart_img_FORMAT): Likewise.
97 (pkglib_MODULES): Add lsspd.mod.
98 (lsspd_mod_SOURCES): New variable.
99 (lsspd_mod_CFLAGS): Likewise.
100 (lsspd_mod_LDFLAGS): Likewise.
101 (pkglib_MODULES): Add halt.mod.
102 (halt_mod_SOURCES): New variable.
103 (halt_mod_CFLAGS): Likewise.
104 (halt_mod_LDFLAGS): Likewise.
105 * conf/mips.rmk (pkglib_MODULES): Remove serial.mod.
106 (serial_mod_SOURCES): Removed.
107 (serial_mod_CFLAGS): Likewise.
108 (serial_mod_LDFLAGS): Likewise.
109 * disk/ata.c (check_device): New function.
110 (grub_ata_device_initialize): Use check_device.
111 (grub_ata_iterate): Recheck devices.
112 (grub_ata_open): Likewise.
113 (grub_atapi_iterate): Likewise.
114 (grub_atapi_open): Likewise.
115 * include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro.
116 (GRUB_ATA_CH1_PORT1): Likewise.
117 (GRUB_ATA_CH0_PORT2): Likewise.
118 (GRUB_ATA_CH1_PORT2): Likewise.
119 * include/grub/mips/loongson.h: New file.
120 * include/grub/mips/yeeloong/ec.h: Likewise.
121 * include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition.
122 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise.
123 (GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove.
124 * include/grub/misc.h (grub_halt): Declare as noreturn.
125 * include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ...
126 (UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated.
127 (UART_ENABLE_FIFO_TRIGGER1): New definition.
128 (UART_ENABLE_DTRRTS): Likewise.
129 (UART_ENABLE_MODEM): Removed.
130 (UART_ENABLE_OUT2): New const.
131 * include/grub/term.h (grub_term_register_input_active): New function.
132 (grub_term_register_output_active): Likewise.
133 * kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff
134 argument.
135 * kern/mips/yeeloong/init.c (grub_get_rtc): Macroify.
136 (init_pci): New function.
137 (grub_machine_init): Execute platform init when firmware. Init serial.
138 (grub_halt): Implement.
139 (grub_exit): Likewise.
140 (grub_reboot): Likewise.
141 * term/serial.c (serial_hw_init): Update macros.
142 [GRUB_MACHINE_MIPS_YEELOONG]: Init on startup.
143 * util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH.
144 (image_targets): New target mipsel-yeeloong-flash.
145 (generate_image): Support IMAGE_YEELOONG_FLASH.
146 * video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition.
147 (grub_video_sm712_setup): Init card.
148 (grub_video_sm712_set_palette): Removed.
149 * video/sm712_init.c: New file.
150
ff4a70d2
CW
1512010-06-30 Colin Watson <cjwatson@ubuntu.com>
152
153 * Makefile.in (install-local): Temporarily prepend $(builddir) to
154 PATH when running help2man and then run it on the unadorned
155 executable names, rather than passing $(builddir)/* paths to
156 help2man. This avoids the build directory ending up in generated
157 manual pages.
158
1246efeb
CW
1592010-06-29 Colin Watson <cjwatson@ubuntu.com>
160
161 * util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
162 to avoid accidents when debugging with 'sh -x'.
163 * util/grub-mkrescue.in: Likewise.
164 * util/grub.d/00_header.in: Likewise.
165 * util/grub.d/10_hurd.in: Likewise.
166 * util/grub.d/10_kfreebsd.in: Likewise.
167 * util/grub.d/10_linux.in: Likewise.
168 * util/grub.d/10_netbsd.in: Likewise.
169 * util/grub.d/10_windows.in: Likewise.
170 * util/grub.d/20_linux_xen.in: Likewise.
171 * util/grub.d/30_os-prober.in: Likewise.
172 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
173
1ba9b889
CW
1742010-06-29 Colin Watson <cjwatson@ubuntu.com>
175
176 * commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
177 last character in the buffer.
178 Reported by: Vladimir Serbinenko.
179
dccaf99d
RM
1802010-06-29 Robert Millan <rmh@gnu.org>
181
182 * docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}.
183 (Command-line and menu entry commands): Document `badram' command.
184
d500ed12
RM
1852010-06-28 Robert Millan <rmh@gnu.org>
186
187 * util/grub-mkconfig.in: Export `GRUB_BADRAM' variable.
188 * util/grub.d/00_header.in: When `GRUB_BADRAM' is set, issue badram
189 command using ${GRUB_BADRAM} as parameter.
190
20bc84a6
CW
1912010-06-28 Colin Watson <cjwatson@ubuntu.com>
192
193 * docs/grub.texi (Device map): New section.
194 (Themes): New section (stub).
195 * Makefile.in (docs/grub.info): The info documentation now builds
196 without errors. Make sure it stays that way.
197
4045dee1
VS
1982010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
199
200 Use normal parser for menu entries.
201 Reported by: Thomas Frauendorfer
202
203 * include/grub/parser.h (grub_parser_execute): Don't export.
204 * normal/menu.c (grub_menu_execute_entry_real): New function.
205 (grub_menu_execute_entry): Use grub_menu_execute_entry_real.
206
bca58c7b
CW
2072010-06-28 Colin Watson <cjwatson@ubuntu.com>
208
209 * docs/grub.texi (Embedded configuration): New section (replacing
210 old "Preset Menu" stub).
211 (Images): New section.
212 (configfile): Note that any menu entries defined in `file' are shown
213 immediately.
214
dec53e63
JT
2152010-06-28 Josh Triplett <josh@joshtriplett.org>
216
217 * mmap/i386/pc/mmap_helper.S: Set CF on return.
218
c06e40f7
CW
2192010-06-28 Colin Watson <cjwatson@ubuntu.com>
220
221 * util/grub-install.in: Add --debug-image= option.
222
cb88052b
CW
2232010-06-28 Colin Watson <cjwatson@ubuntu.com>
224
225 Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
226 possible on Linux.
227
228 * util/deviceiter.c (check_device): Rename to ...
229 (check_device_readable_unique): ... this. Update all callers.
230 Maintain and check a list of which devices (by canonicalized name)
231 have already been seen.
232 (clear_seen_devices): New function.
233 (compare_file_names) [__linux__]: New function.
234 (grub_util_iterate_devices): Clear the list of seen devices on exit
235 and (just in case) on entry.
236 (grub_util_iterate_devices) [__linux__]: Iterate over non-partition
237 devices in /dev/disk/by-id/, in sorted order. Remove DM-RAID
238 seen-devices list, superseded by general code in check_device.
239
bbe34652
CW
2402010-06-28 Colin Watson <cjwatson@ubuntu.com>
241
242 * commands/cat.c (options): New variable.
243 (grub_cmd_cat): Parse options. If the --dos option is given, print
244 DOS-style "\r\n" line endings as simple newlines (Debian bug
245 #586358).
246 (GRUB_MOD_INIT): Use extcmd.
247 (GRUB_MOD_FINI): Likewise.
248 * docs/grub.texi (cat): Document --dos.
249
412e09f3
VS
2502010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
251
252 XEN with Linux grub-mkconfig support.
253
254 * conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
255 * util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
256 GRUB_CMDLINE_XEN_DEFAULT.
257 * util/grub.d/20_linux_xen.in: New file.
258
53f3ef38 2592010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
994b0c27
VS
260
261 Initialise VGA video on qemu ourselves.
262
263 * boot/i386/qemu/boot.S: Don't call 0xc000.
264 * conf/i386-qemu.rmk (kern/i386/qemu/init.c_DEPENDENCIES): New variable.
265 (kernel_img_SOURCES): Add kern/i386/qemu/init.c and bus/pci.c.
266 (kernel_img_HEADERS): Add pci.h.
267 * conf/i386.rmk (pkglib_MODULES) [qemu]: Remove pci.mod.
268 * configure.ac: Force unifont on qemu and yeeloong.
269 * include/grub/i386/qemu/kernel.h (grub_qemu_init_cirrus): New proto.
270 (grub_vga_palette_write): Use correct register.
271 * kern/i386/coreboot/init.c (grub_machine_init) [GRUB_MACHINE_QEMU]:
272 Call grub_qemu_init_cirrus.
273 * kern/i386/qemu/init.c: New file.
274 * term/i386/pc/vga_text.c (inc_y): Never read outside the screen.
275
276 * commands/videotest.c (grub_cmd_videotest): Handle double buffering.
277
c75be4fb
PR
2782010-06-26 Pavel Roskin <proski@gnu.org>
279
280 * util/grub.d/10_linux.in: Add support for initrd images on Fedora
281 13.
282
d8034603
CW
2832010-06-26 Colin Watson <cjwatson@ubuntu.com>
284
285 * docs/grub.texi (Simple configuration): Explain that
286 GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY must be
287 set to `true' to disable their respective recovery entries, not
288 merely set.
289
3fa06487
CW
2902010-06-26 Colin Watson <cjwatson@ubuntu.com>
291
292 Make the `source' command slightly faster.
293
294 * normal/main.c (grub_normal_execute): Don't re-read list files when
295 nested.
296
e9b29642
CW
2972010-06-23 Colin Watson <cjwatson@ubuntu.com>
298
299 * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
300 field position and mask size to red fields from mode_info, not
301 green.
302 * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
303 Remove redundant tag->common.framebuffer_type assignment.
304 Reported by: Seth Goldberg.
305
e726542f
CW
3062010-06-23 Colin Watson <cjwatson@ubuntu.com>
307
308 Sync up other versions of the Linux loader with Robert Millan's
309 change of 2010-01-09, "Make loader output a bit more user-friendly".
310
311 * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
312 grub_dprintf().
313 (grub_cmd_linux): Likewise.
314 (grub_cmd_initrd): Likewise.
315 * loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise.
316 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
317
d6e98a17
CW
3182010-06-21 Colin Watson <cjwatson@ubuntu.com>
319
320 * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
321 larger than MEMORY_MAP_SIZE.
322
14d3f08e
BC
3232010-06-21 BVK Chaitanya <bvk.groups@gmail.com>
324
325 Fix parallel build.
326
327 * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
328 dependency.
329 * script/parser.y: #include grub_script.tab.h header.
330
4f9613a3
VS
3312010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
332
333 Support >3GiB and <16MiB RAM in i386-qemu.
334
335 * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
336 (QEMU_CMOS_MEMSIZE2_LOW): Likewise.
337 (grub_lower_mem): Removed.
338 (grub_upper_mem): Likewise.
339 (mem_size): Made static.
340 (above_4g): New variable.
341 (grub_machine_mmap_init): Detect small mem_size and above_4g.
342 (grub_machine_mmap_iterate): Order in ascending order and add above_4g
343 support.
344
05e51879
VS
3452010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
346
347 Cirrus 5446 and Bochs video cards support.
348
349 * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
350 video_bochs.mod
351 (video_cirrus_mod_SOURCES): New variable.
352 (video_cirrus_mod_CFLAGS): Likewise.
353 (video_cirrus_mod_LDFLAGS): Likewise.
354 (video_bochs_mod_SOURCES): Likewise.
355 (video_bochs_mod_CFLAGS): Likewise.
356 (video_bochs_mod_LDFLAGS): Likewise.
357 * include/grub/vga.h: New file.
358 * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
359 (grub_video_fb_set_page_t): New type.
360 (grub_video_fb_setup): New prototype.
361 (grub_video_fb_swap_buffers): Likewise.
362 (grub_video_fb_get_info_and_fini): Likewise.
363 * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
364 (CRTC_DATA_PORT): Likewise.
365 (CRTC_CURSOR): Likewise.
366 (CRTC_CURSOR_ADDR_HIGH): Likewise.
367 (CRTC_CURSOR_ADDR_LOW): Likewise.
368 (CRTC_CURSOR_DISABLE): Likewise.
369 (update_cursor): Use grub_vga_cr_write.
370 (grub_vga_text_setcursor): Likewise.
371 * video/bochs.c: New file.
372 * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
373 (palette): Likewise.
374 (palette_size): Likewise.
375 (framebuffer): New variable.
376 (grub_video_fb_init): Use 'framebuffer'.
377 (grub_video_fb_fini): Likewise.
378 (grub_video_fb_get_info): Likewise.
379 (grub_video_fb_get_palette): Likewise.
380 (grub_video_fb_set_palette): Likewise.
381 (grub_video_fb_set_viewport): Likewise.
382 (grub_video_fb_get_viewport): Likewise.
383 (grub_video_fb_map_color): Likewise.
384 (grub_video_fb_map_rgb): Likewise.
385 (grub_video_fb_map_rgba): Likewise.
386 (grub_video_fb_unmap_color): Likewise.
387 (grub_video_fb_unmap_color_int): Likewise.
388 (grub_video_fb_fill_rect): Likewise.
389 (grub_video_fb_blit_bitmap): Likewise.
390 (grub_video_fb_blit_render_target): Likewise.
391 (grub_video_fb_scroll): Likewise.
392 (grub_video_fb_create_render_target): Likewise.
393 (grub_video_fb_doublebuf_blit_init): Likewise.
394 (grub_video_fb_set_active_render_target): Handle doublebuffering.
395 (doublebuf_pageflipping_update_screen): New function.
396 (doublebuf_pageflipping_init): Likewise.
397 (grub_video_fb_setup): Likewise.
398 (grub_video_fb_swap_buffers): Likewise.
399 (grub_video_fb_get_info_and_fini): Likewise.
400 * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
401 All users updated.
402 (doublebuf_pageflipping_commit): Restructured into ...
403 (doublebuf_pageflipping_set_page): ... this.
404 (doublebuf_pageflipping_update_screen): Removed.
405 (doublebuf_pageflipping_init): Likewise.
406 (double_buffering_init): Likewise.
407 (grub_video_vbe_setup): Use grub_video_fb_setup.
408 (grub_video_vbe_swap_buffers): Removed.
409 (grub_video_vbe_set_active_render_target): Likewise.
410 (grub_video_vbe_get_active_render_target): Likewise.
411 (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
412 (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
413 grub_video_fb_set_active_render_target and
414 grub_video_fb_get_active_render_target.
415 * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
416 (SEQUENCER_DATA_PORT): Likewise.
417 (MAP_MASK_REGISTER): Likewise.
418 (CRTC_ADDR_PORT): Likewise.
419 (CRTC_DATA_PORT): Likewise.
420 (START_ADDR_HIGH_REGISTER): Likewise.
421 (START_ADDR_LOW_REGISTER): Likewise.
422 (GRAPHICS_ADDR_PORT): Likewise.
423 (GRAPHICS_DATA_PORT): Likewise.
424 (READ_MAP_REGISTER): Likewise.
425 (INPUT_STATUS1_REGISTER): Likewise.
426 (INPUT_STATUS1_VERTR_BIT): Likewise.
427 (get_map_mask): Use grub_vga_sr_read.
428 (set_map_mask): Use grub_vga_sr_write.
429 (set_read_map): Use grub_vga_gr_write.
430 (set_start_address): Use grub_vga_cr_write.
431 * video/sm712.c (framebuffer): Remove leftover fields.
432
4321c64a
CW
4332010-06-20 Colin Watson <cjwatson@ubuntu.com>
434
435 * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
436 setting GRUB_VIDEO_BACKEND. Make it available as a user override
437 instead. Replace the gfxterm backend check with a check that
438 ${GRUB_PREFIX}/video.lst is non-empty.
439 * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
440 again.
441 (load_video): New generated function. Call it before loading
442 gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
443 * util/grub.d/10_linux.in (linux_entry): Call load_video.
444 * util/grub.d/30_os-prober.in (osx_entry): Likewise.
445 * docs/grub.texi (Simple configuration): Document
446 GRUB_VIDEO_BACKEND.
447
4482010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
449
450 Use video functions in linux and xnu loaders.
451
452 * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
453 * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
454 * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
455 * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
456 loader/i386/pc/linux.c.
457 (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
458 (find_line_len): Removed.
459 (find_framebuf): Likewise.
460 (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
461 * loader/i386/efi/xnu.c: Removed.
462 * loader/i386/pc/xnu.c: Moved from here...
463 * loader/i386/xnu.c: ...here.
464
465 Enable priorities in video drivers.
466
467 * include/grub/video.h (grub_video_adapter_prio_t): New type.
468 (grub_video_adapter): New field prio.
469 (grub_video_register): Respect prio when inserting.
470 * video/efi_gop.c (grub_video_gop_adapter): Add prio.
471 * video/efi_uga.c (grub_video_uga_adapter): Likewise.
472 * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
473 * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
474 * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
475 * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
476 * video/sm712.c (grub_video_sm712_adapter): Likewise.
477
478 Fix SDL driver ID.
479
480 * include/grub/video.h (grub_video_driver_id_t): New value
481 GRUB_VIDEO_DRIVER_SDL.
482 * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
483
7d24e434
CW
4842010-06-17 Colin Watson <cjwatson@ubuntu.com>
485
486 * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
487 argument to printf.
488 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
489
c88a83f6
CW
4902010-06-17 Colin Watson <cjwatson@ubuntu.com>
491
492 * util/i386/pc/grub-setup.c (usage): Fix syntax error.
493 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
494
094dfb69
CW
4952010-06-17 Colin Watson <cjwatson@ubuntu.com>
496
497 * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
498 directly, and recommend grub-install instead.
499 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
500
2164da6b
CW
5012010-06-17 Colin Watson <cjwatson@ubuntu.com>
502
503 Fix i386-pc prefix handling with nested partitions (Debian bug
504 #585068). Note that the case where the core image is booted using
505 multiboot and relocated from its original location still requires
506 more work.
507
508 * kern/i386/pc/init.c (make_install_device): If the prefix starts
509 with "(,", fill the boot drive in between those two characters, but
510 expect that a full partition specification including partition map
511 names will follow.
512 * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
513 specified, write a prefix without the drive name but including a
514 full partition specification.
515
044e2e60
CW
5162010-06-16 Colin Watson <cjwatson@ubuntu.com>
517
518 * util/grub-mkconfig.in: Ignore non-option arguments, for
519 compatibility with older versions (before 2010-06-12) which did the
520 same. In particular, this makes it easier to ship an update-grub
521 wrapper which is compatible with that used with GRUB Legacy (Debian
522 bug #586056).
523
5591324f
GS
5242010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
525
526 * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
527 for manual page generation.
528
662e24d5
GS
5292010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
530
531 * po/POTFILES: Remove leftover commands/handler.c.
532
8d70754e
CW
5332010-06-14 Colin Watson <cjwatson@ubuntu.com>
534
535 * util/grub-mkconfig.in: Remove vestige of old argument parsing that
536 left this script non-functional.
537
41160e2e
CW
5382010-06-14 Colin Watson <cjwatson@ubuntu.com>
539
540 * docs/man/grub-emu.h2m: New file.
541
b5309cc1
CW
5422010-06-13 Colin Watson <cjwatson@ubuntu.com>
543
544 * docs/grub.texi (Commands): Document reduced command set in rescue
545 mode.
546 (cpuid): New section.
547
fcb2d090
GS
5482010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
549
550 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
551 new partition naming style.
552 * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
553
96e5c556
BC
5542010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
555
556 Add "-o grub.iso" like cmdline options support.
557
558 * util/grub-install.in: Improve cmdline option parsing.
559 * util/grub-mkconfig.in: Likewise.
560 * util/grub-mkrescue.in: Likewise.
561 * util/grub-reboot.in: Likewise.
562 * util/grub-set-default.in: Likewise.
563 * util/i386/efi/grub-install.in: Likewise.
564 * util/ieee1275/grub-install.in: Likewise.
565 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
566
c16be99b
CW
5672010-06-12 Colin Watson <cjwatson@ubuntu.com>
568
569 * .bzrignore: Ignore 41_custom.
570
ce08a9fb
TS
5712010-06-12 Thomas Schmitt <scdbackup@gmx.net>
572
573 * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
574
7beac90c
CW
5752010-06-12 Colin Watson <cjwatson@ubuntu.com>
576
577 Avoid false positives in fs.lst, partmap.lst, and video.lst due to
578 prototype declarations.
579
580 * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
581 generating fs, partmap, and video lists.
582 * include/grub/fs.h (grub_fs_register): Omit prototype if
583 GRUB_LST_GENERATOR is defined.
584 * include/grub/partition.h (grub_partition_map_register): Likewise.
585 * include/grub/video.h (grub_video_register): Likewise.
586
1c8f0f8d
JM
5872010-06-12 Javier Martín <lordhabbit@gmail.com>
588
589 * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
590
a6085973
TS
5912010-06-12 Thomas Schmitt <scdbackup@gmx.net>
592
593 * util/grub-mkrescue.in: Support --xorriso argument.
594
25c56d29
VS
5952010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
596
597 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
598 Suggested by: Thomas Schmitt.
599
e03e4b24
VS
6002010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
601
602 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
603 Suggested by: Thomas Schmitt.
604
57711df6
VS
6052010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
606
607 custom.cfg support.
608
609 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
610 * util/grub.d/41_custom.in: New file.
611
ee62c427
CW
6122010-06-12 Colin Watson <cjwatson@ubuntu.com>
613
614 * util/grub-mkrescue.in (make_image): Remove sh module, which has
615 been merged back into normal.
616
283af07a
CW
6172010-06-11 Colin Watson <cjwatson@ubuntu.com>
618
619 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
620 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
621
56a0d956
CW
6222010-06-11 Colin Watson <cjwatson@ubuntu.com>
623
624 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
625 when generating manual pages.
626 * docs/man/grub-bin2h.h2m: New file.
627 * docs/man/grub-editenv.h2m: New file.
628 * docs/man/grub-fstest.h2m: New file.
629 * docs/man/grub-install.h2m: New file.
630 * docs/man/grub-macho2img.h2m: New file.
631 * docs/man/grub-mkconfig.h2m: New file.
632 * docs/man/grub-mkdevicemap.h2m: New file.
633 * docs/man/grub-mkfont.h2m: New file.
634 * docs/man/grub-mkimage.h2m: New file.
635 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
636 * docs/man/grub-mkrelpath.h2m: New file.
637 * docs/man/grub-mkrescue.h2m: New file.
638 * docs/man/grub-ofpathname.h2m: New file.
639 * docs/man/grub-pe2elf.h2m: New file.
640 * docs/man/grub-probe.h2m: New file.
641 * docs/man/grub-reboot.h2m: New file.
642 * docs/man/grub-script-check.h2m: New file.
643 * docs/man/grub-set-default.h2m: New file.
644 * docs/man/grub-setup.h2m: New file.
645
3a37e322
VS
6462010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
647
648 Use FOR_* macros instead of *_iterate whenever possible.
649
650 * commands/handler.c: Removed.
651 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
652 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
653 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
654 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
655 (grub_probe_SOURCES): Remove kern/parser.c.
656 (util/grub-script-check.c_DEPENDENCIES): Removed.
657 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
658 and grub_script_check_init.c.
659 (grub_script_check_init.lst): Removed.
660 (grub_script_check_init.h): Likewise.
661 (grub_script_check_init.c): Likewise.
662 (pkglib_MODULES): Remove handler.mod and sh.mod.
663 (handler_mod_SOURCES): Removed.
664 (handler_mod_CFLAGS): Likewise.
665 (handler_mod_LDFLAGS): Likewise.
666 (normal_mod_SOURCES): Remove normal/handler.c.
667 Add script/main.c, script/script.c, script/execute.c,
668 script/function.c, script/lexer.c, grub_script.tab.c
669 and grub_script.yy.c.
670 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
671 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
672 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
673 (grub_setup_SOURCES): Remove kern/parser.c.
674 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
675 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
676 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
677 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
678 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
679 (grub_setup_SOURCES): Remove kern/parser.c.
680 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
681 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
682 * include/grub/command.h (grub_command_iterate): Removed.
683 (FOR_COMMANDS): New macro.
684 * include/grub/dl.h (grub_dl): New member next.
685 (grub_dl_iterate): Removed.
686 (grub_dl_head): New variable declaration.
687 (FOR_DL_MODULES): New macro.
688 * include/grub/fs.h: Include list.h.
689 (grub_fs): Make next first element.
690 (grub_fs_list): New variable declaration.
691 (grub_fs_register): Make inline.
692 (grub_fs_unregister): Likewise.
693 (grub_fs_iterate): Removed.
694 (FOR_FILESYSTEMS): New macro.
695 * include/grub/handler.h: Removed.
696 * include/grub/list.h (grub_list_hook_t): Removed.
697 (grub_list_test_t): Likewise.
698 (grub_list_pop): Likewise.
699 (grub_list_iterate): Likewise.
700 (grub_list_insert): Likewise.
701 (FOR_LIST_ELEMENTS): New macro.
702 * include/grub/parser.h (grub_parser_class): Removed.
703 (grub_parser_register): Likewise.
704 (grub_parser_unregister): Likewise.
705 (grub_parser_get_current): Likewise.
706 (grub_parser_set_current): Likewise.
707 (grub_register_rescue_parser): Likewise.
708 (grub_rescue_parse_line): New function.
709 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
710 * include/grub/script_sh.h (grub_script_function_list): New variable
711 declaration.
712 (FOR_SCRIPT_FUNCTIONS): New macro.
713 (grub_script_function_iterate): Removed.
714 (grub_normal_parse_line): New prototype.
715 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
716 (FOR_DISABLED_TERM_INPUTS): Likewise.
717 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
718 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
719 * include/grub/video.h (grub_video_adapter): Move 'next' to first
720 element.
721 (grub_video_register): Inline.
722 (grub_video_unregister): Likewise.
723 (grub_video_adapter_list): New variable declaration.
724 (grub_video_iterate): Removed.
725 (FOR_VIDEO_ADAPTERS): New macro.
726 * kern/dl.c (grub_dl_list): Removed. All users updated.
727 (grub_dl_iterate): Removed.
728 * kern/fs.c (grub_fs_list): Make global.
729 (grub_fs_register): Removed.
730 (grub_fs_unregister): Likewise.
731 (grub_fs_iterate): Likewise.
732 * kern/handler.c: Removed.
733 * kern/list.c (grub_list_pop): Removed.
734 (grub_list_iterate): Likewise.
735 (grub_list_insert): Likewise.
736 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
737 (grub_prio_list_insert): Don't use grub_list_insert.
738 * kern/main.c (grub_register_rescue_parser): Don't call
739 grub_register_rescue_parser.
740 * kern/parser.c (grub_parser_class): Removed.
741 (grub_parser_execute): Use grub_rescue_parse_line.
742 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
743 (grub_rescue_parser): Removed.
744 (grub_register_rescue_parser): Likewise.
745 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
746 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
747 (grub_auth_check_authentication): Likewise.
748 * normal/completion.c (iterate_command): Removed.
749 (grub_normal_do_completion): Use FOR_COMMANDS.
750 * normal/handler.c: Removed.
751 * normal/main.c (read_config_file): Remove parser changing.
752 (grub_normal_execute): Don't call read_handler_list.
753 (grub_normal_read_line_real): Statically allocate prompt.
754 (grub_cmdline_run): Use grub_normal_parse_line.
755 (GRUB_MOD_FINI): Don't call free_handler_list.
756 * normal/menu_entry.c (run): Likewise.
757 * script/function.c (grub_script_function_list): Make global.
758 (grub_script_function_iterate): Removed.
759 * script/main.c (grub_normal_parse_line): Make global.
760 (grub_sh_parser): Removed.
761 (GRUB_MOD_INIT): Likewise.
762 (GRUB_MOD_FINI): Likewise.
763 * tests/lib/functional_test.c (grub_functional_test): Use
764 FOR_LIST_ELEMENTS.
765 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
766 (grub_test_run): Use FOR_LIST_ELEMENTS.
767 * tests/lib/unit_test.c (main): Likewise.
768 * util/deviceiter.c (grub_util_iterate_devices): Don't use
769 grub_list_pop.
770 * util/grub-fstest.c (grub_term_input_class): Removed.
771 (grub_term_output_class): Likewise.
772 * util/grub-probe.c: Likewise.
773 * util/i386/pc/grub-setup.c: Likewise.
774 * util/sparc64/ieee1275/grub-setup.c: Likewise.
775 * util/grub-script-check.c (main): Don't call grub_init_all and
776 grub_fini_all.
777 * video/video.c (grub_video_adapter_list): Make global.
778 (grub_video_register): Removed.
779 (grub_video_unregister): Likewise.
780 (grub_video_iterate): Likewise.
781
6289c3a7
VS
7822010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
783
784 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
785 reported by Henrique Ferreiro.
786
91460247
RM
7872010-06-09 Robert Millan <rmh@gnu.org>
788
789 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
790 ones, when both are available.
791
0ea7c4f9
GS
7922010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
793
794 Make --version uniform and avoid hard-coded program name.
795
796 * util/grub-mkimage.c (main): Use `program_name' instead of
797 hard-coded string.
798 * util/i386/pc/grub-setup.c (main): Likewise.
799 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
800 * util/grub-install.in: Save the basename of $0 in $self, and use the
801 latter in informational messages. Use the same format for --version
802 as the binary programs.
803 * util/grub-mkconfig.in: Likewise.
804 * util/grub-mkrescue.in: Likewise.
805 * util/grub-reboot.in: Likewise.
806 * util/grub-set-default.in: Likewise.
807 * util/i386/efi/grub-install.in: Likewise.
808 * util/ieee1275/grub-install.in: Likewise.
809 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
810
e8a6f3b6
GS
8112010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
812
813 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
814 embedding area. Use <= instead of == when checking for non-emptiness.
815
f4d095d7
GS
8162010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
817
818 * configure.ac: Add `.' to the directories searched for unifont.
819
50e532ca
CW
8202010-06-08 Colin Watson <cjwatson@ubuntu.com>
821
822 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
823 grub_script.yy.h.
824
d39f3dec
CW
8252010-06-08 Colin Watson <cjwatson@ubuntu.com>
826
827 * docs/grub.texi (History): Expand to cover GRUB 2.
828 (Serial terminal): Refer to `terminal_input' and `terminal_output'
829 commands, not `terminal'.
830 (serial): Likewise.
831 (terminal_input): New section.
832 (terminal_output): New section.
833 (uppermem): New section (stub).
834 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
835
6ef0ddb4
CW
8362010-06-08 Colin Watson <cjwatson@ubuntu.com>
837
838 * docs/grub.texi (Security): Menu entries are unrestricted by
839 default, not restricted to superusers as I had previously thought.
840 Reword to account for this.
841
e0f4c438
CW
8422010-06-07 Colin Watson <cjwatson@ubuntu.com>
843
844 * kern/emu/misc.c (device_mapper_null_log): New function.
845 (grub_device_mapper_supported): New function.
846 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
847 prototype.
848 * kern/emu/hostdisk.c (find_partition_start): Check whether
849 device-mapper is supported before trying to use it.
850 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
851
da908200
CW
8522010-06-07 Colin Watson <cjwatson@ubuntu.com>
853
854 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
855 (File name syntax): Likewise.
856 (help): --all is no longer supported in GRUB 2. Be more precise
857 about pattern matching.
858
fb55c3ac
CW
8592010-06-07 Colin Watson <cjwatson@ubuntu.com>
860
861 * normal/completion.c (grub_normal_do_completion): When completing
862 arguments to "set" and the current word contains an equals sign,
863 skip to after the equals sign before starting completion.
864
258c2573
CW
8652010-06-07 Colin Watson <cjwatson@ubuntu.com>
866
867 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
868
ee75515e
CW
8692010-06-07 Colin Watson <cjwatson@ubuntu.com>
870
871 * docs/grub.texi (Network): New section.
872 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
873 `(nd)' as in GRUB Legacy.
874 (pxe_unload): New section.
875
a6a700aa
CW
8762010-06-07 Colin Watson <cjwatson@ubuntu.com>
877
878 * docs/grub.texi (Troubleshooting): `echo' is not usually available
879 in the rescue shell, so recommend using `set' instead. Thanks,
880 Jordan Uggla.
881
4003dd38
CW
8822010-06-07 Colin Watson <cjwatson@ubuntu.com>
883
884 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
885 (password): New section.
886 (password_pbkdf2): New section.
887 (search): New section.
888 (Security): New section.
889 (Troubleshooting): New section, currently very incomplete.
890 (Invoking grub-mkpasswd-pbkdf2): New section.
891 (Internals): New section, currently very incomplete.
892
e1cbcc40
CW
8932010-06-07 Colin Watson <cjwatson@ubuntu.com>
894
895 * util/grub.d/00_header.in: Add some more quoting (of
896 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
897 work again.
898 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
899
db8fa1ad
CW
9002010-06-07 Colin Watson <cjwatson@ubuntu.com>
901
902 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
903 to `count', fixing variable shadowing that broke the -c option.
904
9052010-06-05 Colin Watson <cjwatson@ubuntu.com>
71c38098
CW
906
907 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
908 in case they contain spaces.
909
f28a9212
CW
9102010-06-04 Colin Watson <cjwatson@ubuntu.com>
911
912 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
913 "part_" to partmap module names, in line with grub-install.
914 Reported by: Jindřich Makovička (Debian bug #584426).
915
9cdfe32f
CW
9162010-06-04 Colin Watson <cjwatson@ubuntu.com>
917
918 * util/grub-mkimage.c: Make target-related error messages slightly
919 more helpful; -O talks about "format". Explicitly point to the use
920 of -O if no target is specified.
921 Reported by: Didier Raboud (Debian bug #584415).
922
795b593a
CW
9232010-06-03 Colin Watson <cjwatson@ubuntu.com>
924
925 * INSTALL: Document several build requirements for optional features
926 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
927
9d9b5833
GS
9282010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
929
930 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
931 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
932 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
933
0819fec8
CW
9342010-06-02 Colin Watson <cjwatson@ubuntu.com>
935
936 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
937 Thanks to Jordan Uggla for spotting this.
938
49396b4f
VS
9392010-06-02 Aleš Nesrsta <starous@volny.cz>
940
941 Finally make USB usable.
942
943 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
944 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
945 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
946 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
947 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
948 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
949 (GRUB_OHCI_FSMPS): Likewise.
950 (GRUB_OHCI_PERIODIC_START): Likewise.
951 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
952 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
953 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
954 (GRUB_OHCI_SET_PORT_RESET): Likewise.
955 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
956 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
957 (grub_ohci_transaction): Likewise.
958 (grub_ohci_transfer): Improve condition detection algorithms.
959 Handle toggle property. Program the transactions correctly.
960 Improve error handling. Various important fixups.
961 (grub_ohci_portstatus): Put register writes in right order.
962 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
963 (grub_uhci_transfer): Don't show "failed" message on success.
964 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
965 array.
966 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
967 determine its size.
968 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
969 before initialization is completed. Use IN direction for empty
970 transfers. Use last_trans and compute toggle.
971 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
972 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
973 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
974 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
975 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
976 (grub_usb_device): Increase toggle to 256.
977 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
978 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
979 GRUB_USBMS_SUBCLASS_SFF8070.
980 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
981 (grub_scsi_inquiry): New member page and alloc_length.
982 (grub_scsi_request_sense): New structure.
983 (grub_scsi_request_sense_data): Likewise.
984 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
985 control.
986 * disk/scsi.c (grub_scsi_request_sense): New function.
987 (grub_scsi_test_unit_ready): Likewise.
988 (grub_scsi_inquiry): Fill new fields.
989 (grub_scsi_read_capacity): Likewise.
990 (grub_scsi_read10): Add request sense at the end.
991 (grub_scsi_read12): Likewise.
992 (grub_scsi_write10): Likewise.
993 (grub_scsi_write12): Likewise.
994 (grub_scsi_open): Add Test Unit Ready.
995 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
996 Support additional subclasses. Con't clear halt yet. Activate the
997 proper config. Calculate LUNs correctly.
998 (grub_usbms_transfer): Various important fixups.
999
10002010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
1001
1002 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
1003 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
1004 (grub_ohci_fini_hw): New function.
1005 (grub_ohci_restore_hw): Likewise.
1006 (GRUB_MOD_INIT(ohci)): Register preboot hook.
1007 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
1008 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
1009
10102010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
1011
1012 Dedicated DMA allocations.
1013
1014 * bus/pci.c (grub_memalign_dma32): New function
1015 (grub_dma_free): Likewise.
1016 (grub_dma_get_virt): Likewise.
1017 (grub_dma_get_phys): Likewise.
1018 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
1019 (grub_ohci_pci_iter): Use dma32_alloc.
1020 (grub_ohci_transfer): Likewise.
1021 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
1022 (grub_usb_bulk_readwrite): Likewise.
1023 * include/grub/pci.h: Add declarations.
1024
10252010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
1026
1027 CS5536 support.
1028
1029 * bus/cs5536.c: New file.
1030 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
1031 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
1032 (cs5536_mod_SOURCES): New variable.
1033 (cs5536_mod_CFLAGS): Likewise.
1034 (cs5536_mod_LDFLAGS): Likewise.
1035 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
1036 machine/pci.h.
1037 (kernel_img_SOURCES): Add bus/cs5536.c.
1038 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
1039 usb_keyboard.mod.
1040 (usb_mod_SOURCES): New variable.
1041 (usb_mod_CFLAGS): New variable.
1042 (usb_mod_LDFLAGS): New variable.
1043 (usbtest_mod_SOURCES): New variable.
1044 (usbtest_mod_CFLAGS): New variable.
1045 (usbtest_mod_LDFLAGS): New variable.
1046 (ohci_mod_SOURCES): New variable.
1047 (ohci_mod_CFLAGS): New variable.
1048 (ohci_mod_LDFLAGS): New variable.
1049 (usbms_mod_SOURCES): New variable.
1050 (usbms_mod_CFLAGS): New variable.
1051 (usbms_mod_LDFLAGS): New variable.
1052 (usb_keyboard_mod_SOURCES): New variable.
1053 (usb_keyboard_mod_CFLAGS): New variable.
1054 (usb_keyboard_mod_LDFLAGS): New variable.
1055 * include/grub/smbus.h: New file.
1056 * include/grub/cs5536.h: New file.
1057
0b35b2a9
CW
10582010-06-02 Colin Watson <cjwatson@ubuntu.com>
1059
1060 * util/grub.d/00_header.in: Add safety check to make sure that
1061 ${locale_dir} exists before trying to probe it.
1062
ca0afd5b
CW
10632010-06-02 Colin Watson <cjwatson@ubuntu.com>
1064
1065 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
1066 per the GNU Coding Standards; this is now too obscure to be worth
1067 documenting.
1068 (QNX): Likewise.
1069 (chainloader): Remove cross-reference to `SCO UnixWare'.
1070
1c41aa78
CW
10712010-06-02 Colin Watson <cjwatson@ubuntu.com>
1072
1073 * docs/grub.texi (Chain-loading): New section.
1074 (DOS/Windows): New section, borrowed from GRUB Legacy with details
1075 adjusted for GRUB 2.
1076 (SCO UnixWare): Likewise.
1077 (QNX): Likewise.
1078 (chainloader): Add reference to `Block list syntax'.
1079 (drivemap): New section.
1080 (parttool): New section.
1081
bb8ea0f5
CW
10822010-06-02 Colin Watson <cjwatson@ubuntu.com>
1083
1084 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
1085 the grub shell'.
1086 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
1087 (Installing GRUB using grub-install): Remove reference to the grub
1088 shell; mention `grub-mkimage' and `grub-setup' instead.
1089 (Invoking grub-install): Likewise.
1090 (Interface): Add reference to `Menu entry editor'.
1091 (serial): Remove `--device' option.
1092
288dd6ed
CW
10932010-06-02 Colin Watson <cjwatson@ubuntu.com>
1094
1095 * docs/grub.texi (Configuration): New section, documenting
1096 configuration file generation using grub-mkconfig. I've left a slot
1097 for documenting the full shell scripting format but have not yet
1098 started on writing that up.
1099 (Invoking grub-mkconfig): New section.
1100
34c9f0e9
CW
11012010-06-02 Colin Watson <cjwatson@ubuntu.com>
1102
1103 * docs/grub.texi (direntry): Remove grub-terminfo reference.
1104 (GNU GRUB manual): Likewise.
1105 (General commands): Update description of `terminfo' for GRUB 2.
1106
9121567e
CW
11072010-06-02 Colin Watson <cjwatson@ubuntu.com>
1108
1109 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
1110 (GRUB_MOD_INIT): Fix capitalisation.
1111 * docs/grub.texi (Command-line and menu entry commands): Document
1112 gettext and gptsync commands.
1113
ab631611
CW
11142010-06-02 Colin Watson <cjwatson@ubuntu.com>
1115
1116 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
1117 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
1118
bde4a9ac
CW
11192010-06-01 Colin Watson <cjwatson@ubuntu.com>
1120
1121 Add btrfs probing support, currently only in the single-device case.
1122
1123 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
1124 function.
1125 (grub_guess_root_device): Call find_root_device_from_mountinfo
1126 before looking in /dev.
1127
b1d17e10
VS
11282010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
1129
1130 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
1131 GRUB_DISK_SIZE_UNKNOWN.
1132 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
1133
dfbfe004
JS
11342010-05-31 Jiro SEKIBA <jir@unicus.jp>
1135
1136 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
1137 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
1138 corrupted or not synced properly.
1139
c2ffc8e9
VS
11402010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
1141
1142 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
1143 Reported by: Seth Goldberg.
1144
56293166
VS
11452010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
1146
1147 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
1148 addition of dest.
1149 Reported by: Seth Goldberg.
1150
7620e7de
VS
11512010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
1152
1153 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
1154 Reported by: Seth Goldberg.
1155
c837af3f
VS
11562010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
1157
1158 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
1159 64-bit address as signed on MIPS.
1160
c7c75cf4
CW
11612010-05-28 Colin Watson <cjwatson@ubuntu.com>
1162
1163 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
1164 to the empty string.
1165
fa4b8490
BC
11662010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
1167
1168 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
1169
1170 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
1171 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
1172 * kern/misc.c (__enable_execute_stack): Disable on
1173 GRUB_MACHINE_EMU.
1174
a33075b9
CW
11752010-05-28 Colin Watson <cjwatson@ubuntu.com>
1176
1177 Make grub-probe work with symbolic links under /dev/mapper as well
1178 as with real block devices. The Linux world seems to be (at best)
1179 in transition here, and GRUB shouldn't get caught in the middle.
1180
1181 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
1182 /dev/mapper.
1183
d8708134
CW
11842010-05-27 Colin Watson <cjwatson@ubuntu.com>
1185
1186 * util/grub-script-check.c (main): Ensure defined behaviour on empty
1187 input files (in which case exit zero).
1188
db2102a0
CW
11892010-05-27 Colin Watson <cjwatson@ubuntu.com>
1190
1191 * kern/emu/misc.c (canonicalize_file_name): realpath can still
1192 return NULL for various reasons even if it has a maximum-length
1193 buffer: for example, there might be a symlink loop, or the path
1194 might exceed PATH_MAX. If this happens, return NULL.
1195
5fdba519
RM
11962010-05-27 Robert Millan <rmh@gnu.org>
1197
1198 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
1199 partmap module to handle cross-partmap setups.
1200 Reported by Orestes Mas. Gràcies!
1201
d1d368e4
CW
12022010-05-27 Colin Watson <cjwatson@ubuntu.com>
1203
1204 * util/grub-mkrescue.in: Initialise override_dir rather than
1205 assuming that it's unset or empty in the environment.
1206
95ac3c73
GS
12072010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
1208
1209 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
1210 variable index into p_index to suppress a warning with -Wshadow.
1211
7d8c0213
BC
12122010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
1213
1214 * INSTALL: Added flex >= 2.5.35 requirement.
1215
db4d5813
VS
12162010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
1217
1218 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
1219
f24f4300
VS
12202010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
1221
1222 cmostest support.
1223
1224 * commands/i386/cmostest.c: New file.
1225 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
1226 (cmostest_mod_SOURCES): New variable.
1227 (cmostest_mod_CFLAGS): Likewise.
1228 (cmostest_mod_LDFLAGS): Likewise.
1229 * conf/i386-pc.rmk: Likewise.
1230 * docs/grub.texi (Vendor power-on keys): New section.
1231 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
1232 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
1233 and GRUB_BUTTON_CMOS_ADDRESS.
1234 * util/grub.d/00_header.in: Handle powering-on by separate button.
1235
ad603f61
VS
12362010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
1237
1238 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
1239 Removed drawing_scrollbar argument. All users updated
1240 Fixes #29792.
1241 Reported by Jo Shields
1242
3ecb080a
VS
12432010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
1244
1245 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
1246 buffer since gfxterm handles double repaint.
1247
5f2316c1
VS
12482010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
1249
1250 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
1251 * term/gfxterm.c (real_scroll): Likewise.
1252
9a25f885
VS
12532010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
1254
1255 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
1256 before calling BIOS.
1257
39fbb79a
VS
12582010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
1259
1260 * include/grub/i18n.h: Always enable grub_gettext.
1261
228cfa97
VS
12622010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
1263
1264 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
1265 partition naming style.
1266
21717c8f
CW
12672010-05-21 Colin Watson <cjwatson@ubuntu.com>
1268
1269 * util/grub-mkconfig.in: Fix handling of -o so that it works when
1270 not the first option.
1271
c0f48e65
CW
12722010-05-20 Colin Watson <cjwatson@ubuntu.com>
1273
1274 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
1275
96779aec
CW
12762010-05-20 Colin Watson <cjwatson@ubuntu.com>
1277
1278 * util/misc.c: Move inclusion of <limits.h> to ...
1279 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
1280
fa9d256e
GS
12812010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
1282
1283 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
1284 Fix merge error in NetBSD code.
1285 (find_partition_start) [__NetBSD__]: Likewise.
1286
123b7a85
BC
12872010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
1288
1289 Fix grub-mkrescue usage unit testing.
1290
1291 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
1292
74276c0d
CF
12932010-05-18 Christian Franke <franke@computer.org>
1294
1295 * util/grub.d/10_windows.in: Use path names instead of
1296 drive letters to prevent warning from Cygwin 1.7.
1297 Add drivemap command to menuentry if needed.
1298
c4f7b523
ST
12992010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
1300
1301 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
1302 gnumach and gnumach.gz.
1303
95b97950
VS
13042010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
1305
1306 * include/grub/i18n.h (gettext): Inline instead of using #define.
1307 (grub_gettext): Likewise.
1308 (_): Likewise.
1309
01b8d2d7
VS
13102010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
1311
1312 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
1313 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
1314 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
1315 (main): Add a slash after pkglibdirroot.
1316
654e1d1e
VS
13172010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
1318
1319 * util/grub-install.in: Add missing "in" keyword.
1320
26966aeb
VS
13212010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
1322
1323 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
1324 Reported by: Seth Goldberg.
1325
75006747
VS
13262010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
1327
1328 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
1329
74cbf5bd
CW
13302010-05-18 Colin Watson <cjwatson@ubuntu.com>
1331
1332 * configure.ac: Check for Linux device-mapper support.
1333
1334 * util/hostdisk.c (device_is_mapped): New function.
1335 (find_partition_start): New function, partly broken out from
1336 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
1337 device-mapper support added.
1338 (linux_find_partition): Use find_partition_start.
1339 (convert_system_partition_to_system_disk): Add `st' argument.
1340 Support Linux /dev/mapper/* devices if device-mapper support is
1341 available; only DM-RAID devices are understood at present.
1342 (find_system_device): Add `st' argument. Pass it to
1343 convert_system_partition_to_system_disk.
1344 (grub_util_biosdisk_get_grub_dev): Pass stat result to
1345 find_system_device and convert_system_partition_to_system_disk. Use
1346 find_partition_start.
1347
1348 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
1349 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
1350 * util/deviceiter.c [__linux__]: Define MINOR.
1351 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
1352 * util/mkdevicemap.c (grub_putchar): New function.
1353 (grub_getkey): New function.
1354 (grub_refresh): New function.
1355 (main): Set debug=all if -v -v is used.
1356
355b51e9
CW
13572010-05-18 Colin Watson <cjwatson@ubuntu.com>
1358
1359 Fix build with non-GNU libcs.
1360
1361 * util/misc.c (canonicalize_file_name): Move to ...
1362 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
1363 grub_make_system_path_relative_to_its_root.
1364
7fb5c25f
CW
13652010-05-18 Colin Watson <cjwatson@ubuntu.com>
1366
1367 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
1368 we handle finding grub-mkimage. Default to finding grub-mkimage in
1369 ${bindir} with program_transform_name applied, and provide a
1370 --grub-mkimage option to override this.
1371
1d3293d6
VS
13722010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
1373
1374 Remove grub-mkisofs.
1375
1376 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
1377 (grub_mkisofs_SOURCES): Removed.
1378 (grub_mkisofs_CFLAGS): Removed.
1379 * util/mkisofs/defaults.h: Removed.
1380 * util/mkisofs/eltorito.c: Likewise.
1381 * util/mkisofs/exclude.h: Likewise.
1382 * util/mkisofs/hash.c: Likewise.
1383 * util/mkisofs/include/: Likewise.
1384 * util/mkisofs/include/fctldefs.h: Likewise.
1385 * util/mkisofs/include/mconfig.h: Likewise.
1386 * util/mkisofs/include/prototyp.h: Likewise.
1387 * util/mkisofs/include/statdefs.h: Likewise.
1388 * util/mkisofs/iso9660.h: Likewise.
1389 * util/mkisofs/joliet.c: Likewise.
1390 * util/mkisofs/match.c: Likewise.
1391 * util/mkisofs/match.h: Likewise.
1392 * util/mkisofs/mkisofs.c: Likewise.
1393 * util/mkisofs/mkisofs.h: Likewise.
1394 * util/mkisofs/msdos_partition.h: Likewise.
1395 * util/mkisofs/multi.c: Likewise.
1396 * util/mkisofs/name.c: Likewise.
1397 * util/mkisofs/rock.c: Likewise.
1398 * util/mkisofs/tree.c: Likewise.
1399 * util/mkisofs/write.c: Likewise.
1400
5dde9afe
VS
14012010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
1402
1403 Unify grub-mkimage accross platforms.
1404
1405 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
1406 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
1407 (grub_mkelfimage_SOURCES): Removed.
1408 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
1409 (util/grub-mkimage.c_DEPENDENCIES): .. this.
1410 (bin_UTILITIES): Add grub-mkimage.
1411 (grub_mkimage_SOURCES): New variable.
1412 (kernel_img_HEADERS): Remove machine/kernel.h.
1413 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
1414 (pkglib_PROGRAMS): Add kernel.img.
1415 (kernel_img_HEADERS): Add machine/kernel.h.
1416 (kernel_img_FORMAT): Removed.
1417 (bin_UTILITIES): Remove grub-mkimage.
1418 (grub_mkimage_SOURCES): Removed.
1419 (grub_mkimage_CFLAGS): Likewise.
1420 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
1421 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
1422 (pkglib_PROGRAMS): Add kernel.img.
1423 (bin_UTILITIES): Remove grub-mkimage.
1424 (grub_mkimage_SOURCES): Removed.
1425 (grub_mkimage_CFLAGS): Likewise.
1426 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
1427 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
1428 (pkglib_PROGRAMS): Add kernel.img.
1429 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
1430 (pkglib_PROGRAMS): Add kernel.img.
1431 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
1432 (grub_mkimage_SOURCES): Removed.
1433 (grub_mkimage_CFLAGS): Likewise.
1434 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
1435 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
1436 (pkglib_PROGRAMS): Add kernel.img.
1437 (bin_UTILITIES): Remove grub-mkimage.
1438 (grub_mkimage_SOURCES): Removed.
1439 (grub_mkimage_CFLAGS): Likewise.
1440 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
1441 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
1442 (grub_mkimage_SOURCES): Removed.
1443 (grub_mkimage_CFLAGS): Likewise.
1444 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
1445 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
1446 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
1447 (grub_pe32_optional_header): ... this.
1448 (grub_pe64_optional_header): ... and this. All users updated.
1449 (GRUB_PE32_PE32_MAGIC): Split into ..
1450 (GRUB_PE32_PE32_MAGIC): .. this.
1451 (GRUB_PE32_PE64_MAGIC): .. and this.
1452 (GRUB_PE32_SIGNATURE_SIZE): New definition.
1453 * include/grub/elf.h (PT_GNU_STACK): New definition.
1454 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
1455 * include/grub/i386/efi/kernel.h: Likewise.
1456 * include/grub/i386/kernel.h: Likewise.
1457 * include/grub/i386/pc/kernel.h: Likewise.
1458 * include/grub/i386/qemu/boot.h: Likewise.
1459 * include/grub/mips/kernel.h: Likewise.
1460 * include/grub/mips/qemu-mips/kernel.h: Likewise.
1461 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
1462 * include/grub/powerpc/kernel.h: Likewise.
1463 * include/grub/sparc64/ieee1275/boot.h: Likewise.
1464 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
1465 * include/grub/sparc64/kernel.h: Likewise.
1466 * include/grub/x86_64/efi/kernel.h: Likewise.
1467 * include/grub/x86_64/kernel.h: Likewise.
1468 * include/grub/offsets.h: New file.
1469 * include/grub/kernel.h (grub_module_info): Split into ...
1470 (grub_module_info32): ... this.
1471 (grub_module_info64): ... and this.
1472 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
1473 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
1474 (grub_boot_blocklist): Moved from here ...
1475 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
1476 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
1477 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
1478 * include/grub/types.h (grub_target_to_host16): Removed.
1479 (grub_target_to_host32): Likewise.
1480 (grub_target_to_host64): Likewise.
1481 (grub_host_to_target16): Likewise.
1482 (grub_host_to_target32): Likewise.
1483 (grub_host_to_target64): Likewise.
1484 (grub_host_to_target_addr): Likewise.
1485
1486 Support grub-mkrescue for efi, coreboot and qemu.
1487
1488 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
1489 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
1490 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
1491 * util/grub-mkrawimage.c: Moved from here ...
1492 * util/grub-mkimage.c: ... here. All users updated.
1493 (ALIGN_ADDR): Use image_target.
1494 (TARGET_NO_FIELD): New const.
1495 (image_target_desc): New type.
1496 (image_targets): New array.
1497 (grub_target_to_host64): Use image_target.
1498 (grub_target_to_host32): Likewise.
1499 (grub_target_to_host16): Likewise.
1500 (grub_host_to_target64): Likewise.
1501 (grub_host_to_target32): Likewise.
1502 (grub_host_to_target16): Likewise.
1503 (grub_host_to_target_addr): Likewise.
1504 (generate_image): Handle multiimage.
1505 (main): Require -O parameter. All users updated.
1506 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
1507 util/efi/grub-mkimage.c
1508 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
1509 New option --rom-directory.
1510 Use xorriso.
1511 * util/i386/efi/grub-mkimage.c: Removed.
1512 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
1513 (grub_target_to_host32): Likewise.
1514 (grub_target_to_host64): Likewise.
1515 (grub_host_to_target16): Likewise.
1516 (grub_host_to_target32): Likewise.
1517 (grub_host_to_target64): Likewise.
1518 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
1519 (grub_target_to_host32): Likewise.
1520 (grub_target_to_host64): Likewise.
1521 (grub_host_to_target16): Likewise.
1522 (grub_host_to_target32): Likewise.
1523 (grub_host_to_target64): Likewise.
1524
f4fc97d0
BC
15252010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
1526
1527 Source tree is reorganized for emu build.
1528
1529 * include/grub/util/console.h: Move from here...
1530 * include/grub/emu/console.h: ...to here.
1531 * include/grub/util/getroot.h: Move from here...
1532 * include/grub/emu/getroot.h: ...to here.
1533 * include/grub/util/hostdisk.h: Move from here...
1534 * include/grub/emu/hostdisk.h: ...to here.
1535 * util/console.c: Move from here...
1536 * kern/emu/console.c: ...to here.
1537 * util/getroot.c: Move from here...
1538 * kern/emu/getroot.c: ...to here.
1539 * util/grub-emu.c: Move from here...
1540 * kern/emu/main.c: ...to here.
1541 * util/hostdisk.c: Move from here...
1542 * kern/emu/hostdisk.c: ...to here.
1543 * util/hostfs.c: Move from here...
1544 * kern/emu/hostfs.c: ...to here.
1545 * util/mm.c: Move from here...
1546 * kern/emu/mm.c: ...to here.
1547 * util/pci.c: Move from here...
1548 * bus/emu/pci.c: ...to here.
1549 * util/sdl.c: Move from here...
1550 * video/emu/sdl.c: ...to here.
1551 * util/time.c: Move from here...
1552 * kern/emu/time.c: ...to here.
1553 * util/usb.c: Move from here...
1554 * bus/usb/emu/usb.c: ...to here.
1555
1556 * include/grub/emu/misc.h: New header for grub-emu functions.
1557 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
1558
1559 * conf/any-emu.rmk: Rule updates for above renames.
1560 * conf/common.rmk: Likewise.
1561 * conf/i386-pc.rmk: Likewise.
1562 * conf/i386-qemu.rmk: Likewise.
1563 * conf/mips.rmk: Likewise.
1564 * conf/sparc64-ieee1275.rmk: Likewise.
1565 * conf/x86-efi.rmk: Likewise.
1566
1567 * disk/lvm.h: #include updates for above renames.
1568 * util/grub-mkrelpath.c: Likewise.
1569 * util/grub-probe.c: Likewise.
1570 * util/i386/pc/grub-setup.c: Likewise.
1571 * util/sparc64/ieee1275/grub-setup.c: Likewise.
1572 * kern/emu/console.c: Likewise.
1573 * kern/emu/getroot.c: Likewise.
1574 * kern/emu/hostdisk.c: Likewise.
1575 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
1576
1577 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
1578 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
1579 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
1580 * util/misc.c: Remove grub-emu functions.
1581
cced9145
VS
15822010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
1583
1584 Fix gfxmenu crash.
1585 Reported by: Thorsten Grützmacher.
1586
1587 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
1588 timeout hook.
1589 (circprog_set_property): Register and unregister timeout hook.
1590 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
1591 (label_destroy): Free template. and unregister hook.
1592 (label_set_state): New function.
1593 (label_set_property): Handle templates and hooks.
1594 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
1595 timeout hook.
1596 (progress_bar_set_property): Register and unregister timeout hook.
1597 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
1598 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
1599 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
1600 (update_timeout_visit): Removed.
1601 (update_timeouts): New function.
1602 (redraw_timeouts): Likewise.
1603 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
1604 (grub_gfxmenu_clear_timeout): Likewise.
1605 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
1606 (grub_gfxmenu_timeout_notify): Likewise.
1607 (grub_gfxmenu_timeout_notifications): New external variable.
1608 (grub_gfxmenu_timeout_register): New function.
1609 (grub_gfxmenu_timeout_unregister): Likewise.
1610
c6e5caab
VS
16112010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
1612
1613 Transform (broken) vga terminal into (working) vga video driver.
1614
1615 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
1616 video/i386/pc/vga.c.
1617 * include/grub/video.h (grub_video_driver_id):
1618 Add GRUB_VIDEO_DRIVER_VGA.
1619 * term/i386/pc/vga.c: Renamed to ...
1620 * video/i386/pc/vga.c: ...this
1621 (DEBUG_VGA): Removed.
1622 (CHAR_WIDTH): Likewise.
1623 (CHAR_HEIGHT): Likewise.
1624 (TEXT_WIDTH): Likewise.
1625 (TEXT_HEIGHT): Likewise.
1626 (DEFAULT_FG_COLOR): Likewise.
1627 (DEFAULT_BG_COLOR): Likewise.
1628 (colored_char): Likewise.
1629 (xpos): Likewise.
1630 (ypos): Likewise.
1631 (cursor_state): Likewise.
1632 (fg_color): Likewise.
1633 (bg_color): Likewise.
1634 (text_buf): Likewise.
1635 (page): Likewise.
1636 (font): Likewise.
1637 (framebuffer): New variable.
1638 (set_read_map): Disabled.
1639 (setup): New variable.
1640 (is_target): Likewise.
1641 (grub_vga_mod_init): Likewise.
1642 (grub_vga_mod_fini): Likewise.
1643 (check_vga_mem): Likewise.
1644 (write_char): Likewise.
1645 (write_cursor): Likewise.
1646 (scroll_up): Likewise.
1647 (grub_vga_putchar): Likewise.
1648 (grub_vga_getcharwidth): Likewise.
1649 (grub_vga_getwh): Likewise.
1650 (grub_vga_getxy): Likewise.
1651 (grub_vga_gotoxy): Likewise.
1652 (grub_vga_cls): Likewise.
1653 (grub_vga_setcolorstate): Likewise.
1654 (grub_vga_setcursor): Likewise.
1655 (grub_video_vga_init): New function.
1656 (grub_video_vga_setup): Likewise.
1657 (grub_video_vga_fini): Likewise.
1658 (update_target): Likewise.
1659 (grub_video_vga_blit_bitmap): Likewise.
1660 (grub_video_vga_blit_render_target): Likewise.
1661 (grub_video_vga_set_active_render_target): Likewise.
1662 (grub_video_vga_get_active_render_target): Likewise.
1663 (grub_video_vga_swap_buffers): Likewise.
1664 (grub_video_vga_set_palette): Likewise.
1665 (grub_video_vga_get_info_and_fini): Likewise.
1666 (grub_vga_term): Removed.
1667 (grub_video_vga_adapter): New variable.
1668 (GRUB_MOD_INIT): Register a video driver instead of terminal.
1669 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
1670
2bf61a98
VS
16712010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
1672
1673 * video/readers/jpeg.c: Indented.
1674
09ddcd11
VS
16752010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
1676
1677 Various jpeg cleanups.
1678
1679 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
1680 (grub_jpeg_decode_quan_table): Use sizeof.
1681 (grub_jpeg_decode_du): Use ARRAY_SIZE.
1682
e5507505
PH
16832010-05-05 Peter Hurley <No e-mail available> (tiny change)
1684
1685 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
1686 tables. Ignore non-last ac bit.
1687 (grub_jpeg_decode_quan_table): Likewise.
1688
7e720a9b
VS
16892010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
1690
1691 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
1692 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
1693 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
1694 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
1695 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
1696 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
1697
a7fc080b
VS
16982010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
1699
1700 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
1701 error.
1702
2bf6012d
VS
17032010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
1704
1705 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
1706
265d68cd
VS
17072010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
1708
1709 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
1710 condition.
1711
17122010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7dd5a111
VS
1713
1714 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
1715 part.
1716
265d68cd 17172010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9b058d52
VS
1718
1719 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
1720 pointers.
1721
265d68cd 17222010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
25893831
VS
1723
1724 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
1725
d1b61374
CF
17262010-05-01 Christian Franke <franke@computer.org>
1727
1728 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
1729 Remove broken Cygwin path conversion.
1730 * util/misc.c: [__CYGWIN__] Add include and define.
1731 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
1732 for Cygwin 1.7.
1733 (make_system_path_relative_to_its_root): Simplify loop, replace early
1734 return by break.
1735 [__CYGWIN__] Add conversion to win32 path.
1736 Include "/" case in trailing slash removal.
1737
3558c6e9
VS
17382010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1739
1740 * kern/main.c (grub_load_config): Fix copy-pasted comment.
1741 Reported by: Seth Goldberg
1742
f5f3ff93
VS
17432010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1744
1745 * commands/help.c (grub_cmd_help): Fix a typo.
1746 Reported by: Seth Goldberg
1747
d8b5cd40
VS
17482010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1749
1750 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
1751 name and add N_.
1752 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
1753 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
1754 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
1755 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
1756 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
1757 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
1758 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
1759 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
1760 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
1761 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
1762 * normal/context.c (GRUB_MOD_INIT): Likewise.
1763 * normal/main.c (GRUB_MOD_INIT): Likewise.
1764 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
1765 * term/serial.c (GRUB_MOD_INIT): Likewise.
1766 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
1767
88c14915
VS
17682010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1769
1770 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
1771 extra == 0.
1772
165134bc
VS
17732010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1774
1775 * commands/iorw.c: New file.
1776 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
1777 (iorw_mod_SOURCES): New variable.
1778 (iorw_mod_CFLAGS): Likewise.
1779 (iorw_mod_LDFLAGS): Likewise.
1780
c5ac9b32
VS
17812010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1782
1783 Hotkey support
1784
1785 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
1786 * normal/main.c (hotkey_aliases): New variable.
1787 (grub_normal_add_menu_entry): Parse "--hotkey".
1788 * normal/menu_text.c (run_menu): Handle hotkeys.
1789
ce60689c
VS
17902010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1791
1792 * kern/i386/coreboot/init.c (grub_machine_init): Call
1793 grub_machine_mmap_init on qemu.
1794
0359d006
VS
17952010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1796
1797 * boot/i386/qemu/boot.S: Add a missing .code16.
1798
7819a456
VS
17992010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1800
1801 Use LBIO on coreboot.
1802
1803 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
1804 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
1805 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
1806 New declaration.
1807 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
1808 grub_machine_mmap_init on coreboot.
1809 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
1810 GRUB_LINUXBIOS_MEMBER_LINK.
1811 (grub_machine_mmap_iterate): Fix declaration.
1812 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
1813
7210dca9
VS
18142010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1815
1816 Split coreboot and multiboot ports.
1817
1818 * conf/i386-multiboot.rmk: New file.
1819 * configure.ac: Add multiboot port.
1820 * include/grub/i386/multiboot/boot.h: New file.
1821 * include/grub/i386/multiboot/console.h: Likewise.
1822 * include/grub/i386/multiboot/init.h: Likewise.
1823 * include/grub/i386/multiboot/kernel.h: Likewise.
1824 * include/grub/i386/multiboot/loader.h: Likewise.
1825 * include/grub/i386/multiboot/memory.h: Likewise.
1826 * include/grub/i386/multiboot/serial.h: Likewise.
1827 * include/grub/i386/multiboot/time.h: Likewise.
1828 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
1829 * loader/multiboot.c: Likewise.
1830 * loader/multiboot_mbi2.c: Likewise.
1831 * util/grub-mkrescue.in: Generate multiboot rescue.
1832
6f8aaf68
VS
18332010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1834
3080f7a7
VS
1835 * kern/parser.c (grub_parser_execute): Cope with read-only config.
1836
18372010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1838
1839 Merge handling of input and output terminals. Fix a hang.
6f8aaf68
VS
1840
1841 * commands/terminal.c (abstract_terminal): New struct.
1842 (handle_command): New function. Based on grub_cmd_terminal_input.
1843 (grub_cmd_terminal_input): Use handle_command.
1844 (grub_cmd_terminal_output): Use handle_command.
1845
a8ebb841
BC
18462010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
1847
1848 Fix comment handling.
1849
1850 * tests/grub_script_comments.in: New testcase.
1851 * conf/tests.rmk: Rules for new testcase.
1852 * script/yylex.l: Updated flex rules.
1853
bb06ba08
ST
18542010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
1855
1856 * docs/grub.texi (play): Document that zero pitches produce rests.
c76a1838
ST
1857 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
1858 if argc is 1.
bb06ba08 1859
cc9d2425
VS
18602010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
1861
1862 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
1863 autogen issues.
1864
460d8402
CF
18652010-04-26 Christian Franke <franke@computer.org>
1866
1867 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
1868 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
1869 (grub_get_prefix): Remove function.
1870 * util/grub-emu.c (main): Replace grub_get_prefix () call by
1871 make_system_path_relative_to_its_root ().
1872 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
1873
553c01f9
CF
18742010-04-24 Christian Franke <franke@computer.org>
1875
1876 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
1877 (kernel_img_LDFLAGS): Remove -static-libgcc.
1878
2aec1692
CF
18792010-04-24 Christian Franke <franke@computer.org>
1880
1881 * configure.ac: Do not CHECK_BSS_START_SYMBOL
1882 and CHECK_END_SYMBOL if grub-emu is built.
1883 Unset TARGET_OBJ2ELF if grub-emu is built
1884 without module support.
1885
f67dc308
JS
18862010-04-24 Jiro SEKIBA <jir@unicus.jp>
1887
1888 Nilfs2 support.
1889
1890 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
1891 (grub_fstest_SOURCES): Likewise.
1892 (pkglib_MODULES): Add nilfs2.mod.
1893 (nilfs2_mod_SOURCES): New variable.
1894 (nilfs2_mod_CFLAGS): Likewise.
1895 (nilfs2_mod_LDFLAGS): Likewise.
1896 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
1897 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
1898 * fs/nilfs2.c: New file.
1899
4ba8d354
VS
19002010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
1901
1902 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
1903 is not supported.
1904
0d2c20c6
GS
19052010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
1906
1907 Add grub-mkconfig support for NetBSD.
1908
1909 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
1910 * util/grub-mkconfig.in: export new NetBSD specific variables.
1911 * po/POTFILES-shell: added 10_netbsd.in.
1912 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
1913
bc4a2d83
BC
19142010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
1915
1916 Fix emu build with grub-emu-pci and grub-emu-modules.
1917
1918 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
1919 functions.
1920 * include/grub/libpciaccess.h: New file.
1921 * conf/any-emu.rmk: Update kernel headers for emu build.
1922
f48c87aa
VS
19232010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
1924
1925 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
1926
18959385
VS
19272010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
1928
1929 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
1930
0037de3f
VS
19312010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
1932
1933 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
1934 Retrieve chosen/bootpath if bootpath isn't hardcoded.
1935 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
1936 util/ieee1275/ofpath.c.
1937 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
1938 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
1939 * include/grub/sparc64/ieee1275/boot.h
1940 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
1941 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
1942 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
1943 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
1944 const char *.
1945 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
1946 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
1947 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
1948 install.
1949
38e55e90
GS
19502010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
1951
1952 * util/grub-mkconfig.in: Corrected two == equality tests.
1953 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
1954 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
1955 expect a number appended to it.
1956 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
1957 expects a number appended to it.
1958
a9e6ff28
VS
19592010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
1960
1961 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
1962
0b830b8f
VS
19632010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
1964
1965 * util/hostdisk.c (make_device_name): Change to new partition naming.
1966
0973daeb
VS
19672010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
1968
1969 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
1970
460d8402 19712010-04-17 Christian Franke <franke@computer.org>
ebfe7eb4
CF
1972
1973 * Makefile.in: Add missing localedir setting.
1974
0b456309
CW
19752010-04-14 Colin Watson <cjwatson@ubuntu.com>
1976
1977 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
1978 mistake in r2156. Noticed by Anthony Fok.
1979
1980 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
1981 @localedir@.
1982 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
1983
08f46d62
BC
19842010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
1985
1986 Fix a spurious, uninitialized variable warning.
1987
1988 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
1989 Initialize variable, shdr.
1990 (grub_freebsd_load_elfmodule): Likewise.
1991 (grub_freebsd_load_elf_meta): Likewise.
1992
8c4a72d4
BC
19932010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
1994
1995 Fix for escaped dollar in double quoted strings.
1996
1997 * script/yylex.l: Updated flex rules.
1998 * conf/tests.rmk: Rule for new testcase.
1999 * tests/grub_script_dollar.in: New testcase.
2000
ce44826e
CPE
20012010-04-13 Carles Pina i Estany <carles@pina.cat>
20022010-04-13 Colin Watson <cjwatson@ubuntu.com>
2003
2004 Enclose all translated strings in grub.cfg in single quotes, and
2005 escape them appropriately (Ubuntu bug #552921).
2006
2007 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
2008 * util/grub.d/10_hurd.in: Use it.
2009 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
2010 * util/grub.d/10_linux.in (linux_entry): Likewise.
2011
4b0cd8f8
VS
20122010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
2013
2014 Fix cygwin compilation.
2015
2016 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
2017 * include/grub/misc.h (__register_frame_info)
2018 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
2019 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
2020 * kern/misc.c (__register_frame_info)
2021 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
2022 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
2023
01fcf061
VS
20242010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
2025
2026 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
2027
5d04b11e
VS
20282010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
2029
2030 Unify libgcc processing.
2031
2032 * Makefile.in (kernel_img_LDFLAGS): New variable.
2033 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
2034 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
2035 overwriting.
2036 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
2037 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
2038 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
2039 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
2040 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
2041 overwriting. Remove -lgcc and -static-libgcc
2042 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
2043 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
2044 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
2045 (kernel_img_LDFLAGS): Append instead of overwriting.
2046 Remove -lgcc and -static-libgcc
2047 * conf/sparc64-ieee1275.rmk: Likewise.
2048 * include/grub/powerpc/libgcc.h: Move to ...
2049 * include/grub/libgcc.h: .. this.
2050 * include/grub/libgcc.h: Don't export most of the function on x86.
2051 (__bswapsi2): New export.
2052 (__bswapdi2): Likewise.
2053 * include/grub/mips/libgcc.h: Removed.
2054 * include/grub/sparc64/libgcc.h: Likewise.
2055
b7f3ac29
VS
20562010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
2057
2058 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
2059 disk_info_msg (conflicts with gettexting into languages with cases).
2060
2c7031b1
GS
20612010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
2062
2063 Add grub-probe support for NetBSD.
2064
2065 * util/getroot.c (find_root_device): Convert block device to
2066 character device on NetBSD.
2067 * util/probe.c (probe): Require character device on NetBSD.
2068 * util/hostdisk.c: NetBSD specific headers.
2069 (configure_device_driver): new function to tune device driver
2070 parameters (currently only for NetBSD floppy driver).
2071 (grub_util_biosdisk_open): NetBSD specific code (get disk size
2072 via disklabel ioctl).
2073 (open_device): call configure_device_driver on NetBSD.
2074 (convert_system_partition_to_system_disk): NetBSD specific code.
2075 (device_is_wholedisk): Likewise.
2076 (grub_util_biosdisk_get_grub_dev): Likewise.
2077 (make_device_name): Fixed a typo in bsd_part_str.
2078 * configure.ac: check for opendisk() and getrawpartition() on
2079 NetBSD and set LIBUTIL.
2080 * Makefile.in: add LIBUTIL to LIBS.
2081
f516290c
BC
20822010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
2083
2084 Documentation fix.
2085
2086 * util/grub-script-check.c: Better help message.
2087
d8dcc0df
BC
20882010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
2089
2090 Fix FreeBSD build.
2091
2092 * configure.ac: Flex version check.
2093 * conf/common.rmk: Add -Wno-error to sh.mod.
2094 * script/yylex.l: Remove all #pragma.
2095
6734334a
VS
20962010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
2097
2098 * include/grub/util/misc.h (canonicalise_file_name): Add missing
2099 prototype.
2100 Reported by: Seth Goldberg.
2101
daea6abd
VS
21022010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
2103
2104 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
2105 Rename "module" to "module2".
2106 Reported by: Seth Goldberg.
2107
f2fd9d2b
VS
21082010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
2109
2110 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
2111 EXPORT_FUNC.
2112 Reported by: Seth Goldberg.
2113
be124579
VS
21142010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
2115
2116 * lib/posix_wrap/locale.h: Add missing file.
2117 Reported by: Seth Goldberg.
2118
ef5da797
VS
21192010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
2120
2121 grub-emu module load support.
2122
2123 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
2124 NO_DYNAMIC_MODULES switched to this.
2125 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
2126 (CFLAGS): Likewise.
2127 * conf/any-emu.rmk: Generate symlist.
2128 (kernel_img_HEADERS): Add util/datetime.h.
2129 (kernel_img_HEADERS) [sdl]: Add sdl.h.
2130 (kernel_img_HEADERS) [libusb]: Add libusb.h.
2131 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
2132 kern/$(target_cpu)/cache.S.
2133 * configure.ac (grub-emu-modules): New option.
2134 * genmk.rb: Handle multiple source lists.
2135 * include/grub/sdl.h: New file.
2136 * include/grub/libusb.h: Likewise.
2137 * util/grub-emu.c (main): Hanle (host) root.
2138 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
2139 GRUB_ERR_UNKNOWN_DEVICE.
2140 * util/misc.c: Move mm functions to ...
2141 * util/mm.c: ... here. All users updated.
2142
47822096
VS
21432010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
2144
2145 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
2146 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
2147 missing files.
2148 (maintainer-clean): Remove libgcrypt-grub.
2149
5d7e7445
VS
21502010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
2151
2152 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
2153
25f4e252
EC
21542010-04-09 EFI Coder <eficoder@hotmail.com>
2155
2156 * normal/menu_text.c (print_message): Clean up the message and show
2157 the Fn information when on EFI
2158 * term/efi/console.c (grub_console_checkkey): Add F4 support.
2159
027de555
VS
21602010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
2161
2162 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
2163 All users updated.
2164 * normal/crypto.c (read_crypto_list): Likewise.
2165 * normal/dyncmd.c (read_command_list): Likewise.
2166 * normal/term.c (read_terminal_list): Likewise.
2167 * normal/main.c (read_lists): Use explicit prefix.
2168 (read_lists_hook): Use read_lists.
2169 (grub_normal_execute): Likewise.
2170
47779711
VS
21712010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
2172
2173 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
2174 Reported by: Thomas Schmitt.
2175 Add -no-emul-boot to grub-mkisofs parameters.
2176
1118c32e
VS
21772010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
2178
2179 * font/font.c: Indented.
2180
7d652447
BC
21812010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
2182
2183 Elif support to GRUB script (by Deepak Vankadaru).
2184
2185 * tests/grub_script_if.in: New testcase.
2186 * conf/tests.rmk: Rule for new testcase.
2187 * script/parser.y: Grammar rules for elif.
2188
34bb22df
BC
21892010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
2190
2191 While and until loops support to GRUB script.
2192
2193 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
2194 (grub_script_create_cmdwhile): New function prototype.
2195 (grub_script_execute_cmdwhile): New function prototype.
2196 * script/execute.c (grub_script_execute_cmdwhile): New function.
2197 * script/parser.y (command): New commands.
2198 (whilecmd): New grammar rule.
2199 (untilcmd): New grammar rule.
2200 * script/script.c (grub_script_create_cmdwhile): New function.
2201 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
2202 function.
2203
2204 * tests/grub_script_while1.in: New testcase.
2205 * conf/tests.rmk: Rule for new testcase.
2206
e215d8e0
VS
22072010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
2208
2209 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
2210 as *.jpg.
2211
d7c43ba1
MV
22122010-04-09 Mario Vazquez <mariovazq@gmail.com>
2213
2214 GRUB_BACKGROUND support.
2215
2216 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
2217 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
2218
d64795c0
VS
22192010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
2220
2221 Load fonts and modules for gfxmenu in grub-mkconfig.
d7c43ba1 2222 Idea by: Mario Vazquez
d64795c0
VS
2223
2224 * util/grub.d/00_header.in: Load pf2 and image modules.
2225
f267f83a
VS
22262010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
2227
2228 grub-mkconfig multiple terminal support.
2229
2230 * util/grub-mkconfig.in: Handle multiple terminals correctly.
2231 * util/grub.d/00_header.in: Likewise.
2232
b7841ceb
VS
22332010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
2234
2235 * Makefile.in: Specify files explicitly instead of using $< and $@ since
2236 we use cd $(srcdir).
2237
df60998c
CW
22382010-04-08 Colin Watson <cjwatson@ubuntu.com>
2239
2240 * util/grub.d/10_linux.in: Only use the first word of
2241 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
2242 spaces in GRUB_DISTRIBUTOR.
2243 * util/grub.d/10_kfreebsd.in: Likewise.
2244 * util/grub.d/10_hurd.in: Likewise.
2245
fa09c82e
BC
22462010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
2247
14e18ae3 2248 Fix unit testing framework for Qemu 0.12.
fa09c82e
BC
2249
2250 * tests/util/grub-shell.in: Remove -serial stdio option.
2251
daf892b3
BC
22522010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
2253
2254 POSIX header file wrappers.
2255
2256 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
2257 equivalents.
2258 * lib/posix_wrap/ctype.h: Likewise.
2259 * lib/posix_wrap/errno.h: Likewise.
2260 * lib/posix_wrap/langinfo.h: Likewise.
2261 * lib/posix_wrap/limits.h: Likewise.
2262 * lib/posix_wrap/localcharset.h: Likewise.
2263 * lib/posix_wrap/stdint.h: Likewise.
2264 * lib/posix_wrap/stdio.h: Likewise.
2265 * lib/posix_wrap/stdlib.h: Likewise.
2266 * lib/posix_wrap/string.h: Likewise.
2267 * lib/posix_wrap/sys/types.h: Likewise.
2268 * lib/posix_wrap/unistd.h: Likewise.
2269 * lib/posix_wrap/wchar.h: Likewise.
2270 * lib/posix_wrap/wctype.h: Likewise.
2271 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
2272 (grub_script.yy.h): Likewise.
2273 * script/yylex.l: Remove POSIX emulation #defines.
2274 * Makefile.in (POSIX_CFLAGS): New variable.
2275 (GNULIB_UTIL_CFLAGS): Likewise.
2276
2277 Regexp support.
2278
2279 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
2280 (regexp_mod_SOURCES): New variable.
2281 (regexp_mod_CFLAGS): Likewise.
2282 (regexp_mod_LDFLAGS): Likewise.
2283 * commands/regexp.c: New file.
2284 * gnulib/regcomp.c: New file. Imported from gnulib.
2285 * gnulib/regex.c: Likewise.
2286 * gnulib/regex_internal.c: Likewise.
2287 * gnulib/regex_internal.h: Likewise.
2288 * gnulib/regexec.c: Likewise.
2289 * gnulib/regex.h: Likewise.
2290
974ac4f7
VS
22912010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
2292
2293 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
2294 unsupported video mode types.
2295
2622c3ff
VS
22962010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
2297
2298 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
2299
064cb524
VS
23002010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
2301
2302 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
2303 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
2304
a8c3b552
VS
23052010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
2306
2307 Remove unused grub_vga_get_font.
2308
2309 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
2310 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
2311
187bbe3d
GS
23122010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
2313
2314 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
2315 * include/grub/misc.h: Likewise.
2316
b9396631
GS
23172010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
2318
2319 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
2320 for which failure is fatal.
2321
50479feb
GS
23222010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
2323
2324 * util/grub-install.in: Use mkdir -p to create grub directory.
2325 * util/i386/efi/grub-install.in: Likewise.
2326 * util/ieee1275/grub-install.in: Likewise.
2327
b1654fdf
GS
23282010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
2329
2330 * Makefile.in (LEX): new variable.
2331
bd5a6415
GS
23322010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
2333
2334 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
2335 `=' and added double quotes on operands of this equality test.
2336
3db3a82b
VS
23372010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
2338
2339 * Makefile.in (uninstall): Remove a leftover debug echo.
2340 Reported by: Grégoire Sutre
2341
38023412
VS
23422010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
2343
2344 MIPS multiboot2 support.
2345
2346 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
2347 (multiboot2_mod_SOURCES): New variable.
2348 (multiboot2_mod_CFLAGS): Likewise.
2349 (multiboot2_mod_LDFLAGS): Likewise.
2350 (multiboot2_mod_ASFLAGS): Likewise.
2351 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
2352 definition.
2353 (MULTIBOOT_ENTRY_REGISTER): Likewise.
2354 (MULTIBOOT_MBI_REGISTER): Likewise.
2355 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
2356 (MULTIBOOT_ELF32_MACHINE): Likewise.
2357 (MULTIBOOT_ELF64_MACHINE): Likewise.
2358 * include/grub/mips/multiboot.h: New file.
2359 * include/grub/video.h (grub_video_driver_id): New type
2360 GRUB_VIDEO_DRIVER_SM712.
2361 (grub_video_get_info_and_fini): Export.
2362 (grub_video_get_palette): Likewise.
2363 (grub_video_get_driver_id): Likewise.
2364 * include/multiboot2.h: Resynced with spec.
2365 * loader/i386/multiboot.c: Moved from here ...
2366 * loader/multiboot.c: ... here. All users updated.
2367 (grub_multiboot_boot): Use platform-specific macros.
2368 * loader/i386/multiboot_elfxx.c: Moved from here ...
2369 * loader/multiboot_elfxx.c: ... here. All users updated.
2370 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
2371 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
2372 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
2373
47674667
VS
23742010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
2375
2376 Import gnulib argp module.
2377
2378 * gnulib/argp-ba.c: New file.
2379 * gnulib/argp-eexst.c: Likewise.
2380 * gnulib/argp-fmtstream.c: Likewise.
2381 * gnulib/argp-fmtstream.h: Likewise.
2382 * gnulib/argp-fs-xinl.c: Likewise.
2383 * gnulib/argp-help.c: Likewise.
2384 * gnulib/argp-namefrob.h: Likewise.
2385 * gnulib/argp-parse.c: Likewise.
2386 * gnulib/argp-pin.c: Likewise.
2387 * gnulib/argp-pv.c: Likewise.
2388 * gnulib/argp-pvh.c: Likewise.
2389 * gnulib/argp-version-etc.c: Likewise.
2390 * gnulib/argp-version-etc.h: Likewise.
2391 * gnulib/argp-xinl.c: Likewise.
2392 * gnulib/argp.h: Likewise.
2393
495442ed
VS
23942010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
2395
2396 * kern/device.c (grub_device_iterate): Clear errors after failed
2397 opening device.
2398
f9fd65df
VS
23992010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
2400
2401 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
2402 returned by firmware.
2403
af09641e
VS
24042010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
2405
2406 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
2407 compilation on coreboot and qemu
2408
016883a5
VS
24092010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
2410
2411 * include/multiboot2.h: Resync with spec.
2412
f97e1f7d
VS
24132010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
2414
2415 Multiboot2 tag support
2416
2417 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
2418 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
2419 Remove loader/multiboot_loader.c.
2420 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
2421 (grub_multiboot2_real_boot): Likewise.
2422 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
2423 (grub_get_multiboot_mmap_count): New proto.
2424 (grub_fill_multiboot_mmap): Likewise.
2425 (grub_multiboot_set_video_mode): Likewise.
2426 (grub_multiboot_set_console): Likewise.
2427 (grub_multiboot_load): Likewise.
2428 (grub_multiboot_load_elf): Likewise.
2429 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
2430 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
2431 * include/multiboot.h: Resynced with specification.
2432 * include/multiboot2.h: Resynced with specification.
2433 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
2434 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
2435 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
2436 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
2437 users updated.
2438 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
2439 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
2440 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
2441 Removed.
2442 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
2443 Moved from here...
2444 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
2445 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
2446 Moved from here...
2447 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
2448 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
2449 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
2450 All users updated.
2451 * loader/i386/multiboot_mbi2.c: New file.
2452
3506b90b
VS
24532010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
2454
2455 Resync with gnulib.
2456
2457 * Makefile.in (GNULIB_CFLAGS): New variable.
2458 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
2459 (grub_script_check_CFLAGS): New variable.
2460 * gnulib/alloca.h: Resync with gnulib.
2461 * gnulib/error.c: Likewise.
2462 * gnulib/error.h: Likewise.
2463 * gnulib/fnmatch.c: Likewise.
2464 * gnulib/fnmatch_loop.c: Likewise.
2465 * gnulib/getdelim.c: Likewise.
2466 * gnulib/getline.c: Likewise.
2467 * gnulib/getopt.c: Likewise.
2468 * gnulib/getopt1.c: Likewise.
2469 * gnulib/getopt_int.h: Likewise.
2470 * gnulib/gettext.h: Likewise.
2471 * gnulib/progname.c: Likewise.
2472 * gnulib/progname.h: Likewise.
2473
394a3120
GS
24742010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
2475
2476 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
2477 which is the case with --disabled-nls.
2478
2479 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
2480 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
2481 * util/misc.c: Likewise.
2482 * util/mkisofs/mkisofs.c: Likewise.
2483 * util/mkisofs/mkisofs.h: Likewise.
2484
969d1c78
VS
24852010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
2486
2487 Simplify Apple CC support.
2488
2489 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
2490 Add 0 byte at the end not to have a symbol with empty target.
2491 * mmap/i386/pc/mmap_helper.S: Likewise.
2492 * genmk.rb: Ignore errors 2030 and 2050.
2493 * kern/i386/pc/startup.S: Use LOCAL when possible.
2494
8d2977bb
BC
24952010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
2496
2497 Testcase and the fix for final semicolon on cmdline.
2498
2499 * tests/grub_script_final_semicolon.in: New testcase.
2500 * conf/tests.rmk: Rules for the new testcase.
2501 * script/parser.y: Grammar fix.
2502
a7bd6915
BC
25032010-03-26 BVK Chaitanya <bvk@localhost>
2504
2505 Blank lines testcase for GRUB script.
2506
2507 * tests/grub_script_blanklines.in: New testcase.
2508 * conf/tests.rmk: Rules for the new testcase.
2509
e4ff6628
VS
25102010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
2511
2512 Don't use __FILE__.
2513
2514 * genmk.rb: Add -DGRUB_FILE to all C targets.
2515 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
2516 * include/grub/list.h: Likewise.
2517 * include/grub/misc.h: Likewise.
2518 * include/grub/mm.h: Likewise.
2519 * include/grub/test.h: Likewise.
2520 * kern/mm.c: Likewise.
2521 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
2522
6a5cf6b6
VS
25232010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
2524
2525 Sunpc partitions support.
2526
2527 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
2528 (grub_fstest_SOURCES): Likewise.
2529 (pkglib_MODULES): Add part_sunpc.mod.
2530 (part_sunpc_mod_SOURCES): New variable.
2531 (part_sunpc_mod_CFLAGS): Likewise.
2532 (part_sunpc_mod_LDFLAGS): Likewise.
2533 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
2534 * partmap/sunpc.c: New file.
2535
746d9045
BC
25362010-03-26 BVK Chaitanya <bvk@localhost>
2537
2538 For loop support to GRUB script.
2539
2540 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
2541 (grub_script_create_cmdfor): New function prototype.
2542 (grub_script_execute_cmdfor): New function prototype.
2543 * script/execute.c (grub_script_execute_cmdfor): New function.
2544 * script/parser.y (command): New for command.
2545 (forcmd): New grammar rule.
2546 * script/script.c (grub_script_create_cmdfor): New function.
2547 * util/grub-script-check.c (grub_script_execute_cmdfor): New
2548 function.
2549 * tests/grub_script_for1.in: New testcase.
2550 * conf/tests.rmk: Rules for new testcase.
2551
18486b18
VS
25522010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
2553
2554 Nested partitions
2555
2556 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
2557 'partition' is NULL, grub_partition_get_start already does that.
2558 * commands/loadenv.c (check_blocklists): Likewise.
2559 (write_blocklists): Likewise.
2560 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
2561 (grub_fstest_SOURCES): Likewise.
2562 (pkglib_MODULES): Add part_bsd.mod.
2563 (part_bsd_mod_SOURCES): New variable.
2564 (part_bsd_mod_CFLAGS): Likewise.
2565 (part_bsd_mod_LDFLAGS): Likewise.
2566 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
2567 (grub_emu_SOURCES): Likewise.
2568 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
2569 * include/grub/bsdlabel.h: New file.
2570 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
2571 'get_name'.
2572 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
2573 (grub_partition_map_list): New variable.
2574 (grub_partition_map_register): Inline.
2575 (grub_partition_map_unregister): Likewise.
2576 (FOR_PARTITION_MAPS): New macro.
2577 (grub_partition_map_iterate): Removed.
2578 (grub_partition_get_start): Handle nested partitions.
2579 * include/grub/msdos_partition.h: Remove bsd-related entries.
2580 (grub_pc_partition): Remove.
2581 * kern/disk.c (grub_disk_close): Free partition data.
2582 (grub_disk_adjust_range): Handle nested partitions.
2583 * kern/partition.c (grub_partition_map_probe): New function.
2584 (grub_partition_probe): Parse name to number, handle subpartitions.
2585 (get_partmap): New function.
2586 (grub_partition_iterate): Handle subpartitions.
2587 (grub_partition_get_name): Likewise.
2588 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
2589 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
2590 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
2591 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
2592 Set 'number'.
2593 (acorn_partition_map_probe): Remove.
2594 (acorn_partition_map_get_name): Likewise.
2595 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
2596 Set 'number'.
2597 Set 'index' to 0 since there can be only one partition entry per sector.
2598 (amiga_partition_map_probe): Remove.
2599 (amiga_partition_map_get_name): Likewise.
2600 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
2601 Set 'number'.
2602 Set 'offset' and 'index' to real positions of partitions.
2603 (apple_partition_map_probe): Remove.
2604 (apple_partition_map_get_name): Likewise.
2605 * partmap/bsdlabel.c: New file.
2606 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
2607 Set 'number'.
2608 Allocate 'data' so it can be correctly freed.
2609 Set 'index' to offset inside sector.
2610 (gpt_partition_map_probe): Remove.
2611 (gpt_partition_map_get_name): Likewise.
2612 * partmap/msdos.c (grub_partition_parse): Remove.
2613 (pc_partition_map_iterate): Don't force raw access.
2614 Set 'number'.
2615 Make 'ext_offset' a local variable.
2616 (pc_partition_map_probe): Remove.
2617 (pc_partition_map_get_name): Remove.
2618 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
2619 Set 'number'.
2620 (sun_partition_map_probe): Remove.
2621 (sun_partition_map_get_name): Likewise.
2622 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
2623 (grub_pcpart_type): Likewise.
2624 * util/hostdisk.c (open_device): Handle new numbering scheme.
2625 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
2626 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
2627 * util/grub-probe.c (probe_partmap): Handle nested paritions.
2628 * util/grub-install.in: Insert all subpartition modules.
2629 * util/ieee1275/grub-install.in: Likewise.
2630
a3940f88
AG
26312010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
2632
2633 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
2634 grammar.
2635
21b99926 26362010-03-24 Colin Watson <cjwatson@ubuntu.com>
2637
2638 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
2639
bed1d352
CW
26402010-03-21 Colin Watson <cjwatson@ubuntu.com>
2641
2642 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
2643 match where 'make install' puts them.
2644 * util/i386/efi/grub-install.in: Likewise.
2645
c9f58427
CW
26462010-03-19 Colin Watson <cjwatson@ubuntu.com>
2647
2648 * .bzrignore: Add gentrigtables, grub-script-check,
2649 grub_script_check_init.c, grub_script_check_init.h, and
2650 trigtables.c.
2651
f84afb27
VS
26522010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
2653
2654 * kern/parser.c: Indented.
2655
ed0e3d30
VS
26562010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
2657
2658 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
2659
0ea81d98
VS
26602010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
2661
2662 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
2663 alpha_mask_size == 0 case.
2664
0cdc2a09
BC
26652010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
2666
2667 GRUB shell lexer and parser improvements.
2668
2669 * conf/any-emu.rmk: Build rule updates.
2670 * conf/common.rmk: Likewise.
2671 * conf/i386-coreboot.rmk: Likewise.
2672 * conf/i386-efi.rmk: Likewise.
2673 * conf/i386-ieee1275.rmk: Likewise.
2674 * conf/i386-pc.rmk: Likewise.
2675 * conf/powerpc-ieee1275.rmk: Likewise.
2676 * conf/x86_64-efi.rmk: Likewise.
2677
2678 * configure.ac: Configure check for flex.
2679
2680 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
2681 types.
2682 (grub_lexer_param): Struct member updates.
2683 (grub_parser_param): Likewise.
2684 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
2685 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
2686 (grub_script_lexer_init): Prototype update.
2687 (grub_script_lexer_record_start): Likewise.
2688 (grub_script_lexer_record_stop): Likewise.
2689 (grub_script_lexer_yywrap): New function prototype.
2690 (grub_script_lexer_fini): Likewise.
2691 (grub_script_execute_argument_to_string): Removed by...
2692 (grub_script_execute_argument_to_argv): ...better version.
2693
2694 * script/execute.c (ROUND_UPTO): New macro.
2695 (grub_script_execute_cmdline): Out of memory fixes.
2696 (grub_script_execute_menuentry): Likewise.
2697 (grub_script_execute_argument_to_string): Removed. Update all
2698 users by...
2699 (grub_script_execute_argument_to_argv): ...better version.
2700 * script/function.c (grub_script_function_create): Use
2701 grub_script_execute_argument_to_argv instead of
2702 grub_script_execute_argument_to_string.
2703
2704 * script/lexer.c (check_varstate): Removed.
2705 (check_textstate): Removed.
2706 (grub_script_lexer_record_start): Likewise.
2707 (grub_script_lexer_record_stop): Likewise.
2708 (recordchar): Replaced with...
2709 (grub_script_lexer_record): ...new function.
2710 (nextchar): Removed.
2711 (grub_script_lexer_init): Rewritten.
2712 (grub_script_yylex): Rewritten.
2713 (append_newline): New function.
2714 (grub_script_lexer_yywrap): New function.
2715 (grub_script_lexer_fini): New function.
2716 (grub_script_yyerror): Sets error flag.
2717
2718 * script/yylex.l: New file.
2719 (grub_lexer_yyfree): Wrapper for flex yyffre.
2720 (grub_lexer_yyalloc): Likewise.
2721 (grub_lexer_yyrealloc): Likewise.
2722 * script/parser.y: Refactored.
2723
2724 * script/script.c (grub_script_arg_add): Out of memory fixes.
2725 (grub_script_add_arglist): Likewise.
2726 (grub_script_create_cmdline): Likewise.
2727 (grub_script_create_cmdmenu): Likewise.
2728 (grub_script_add_cmd): Likewise.
2729 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
2730 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
2731 unnecessary code.
2732
2733 * tests/grub_script_echo1.in: New testcase.
2734 * tests/grub_script_vars1.in: New testcase.
2735 * tests/grub_script_echo_keywords.in: New testcase.
2736
1d63a066
VS
27372010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
2738
2739 Remove some redundancy in build system.
2740
2741 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
2742 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
2743 (TARGET_LDFLAGS): Add -nostdlib.
2744 (TARGET_IMG_LDFLAGS): Likewise.
2745 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
2746 anything since mmap isn't available.
2747 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
2748 Add util/time.c.
2749 (pkglib_MODULES): Remove reboot.mod.
2750 (reboot_mod_SOURCES): Removed.
2751 (reboot_mod_CFLAGS): Likewise.
2752 (reboot_mod_LDFLAGS): Likewise.
2753 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
2754 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
2755 (DEFSYMFILES): Add kernel_syms.lst.
2756 (kernel_img_HEADERS): Add common headers.
2757 (symlist.c): New target.
2758 (kernel_syms.lst): Likewise.
2759 (pkglib_MODULES): Add memdisk.mod.
2760 (memdisk_mod_SOURCES): New variable.
2761 (memdisk_mod_CFLAGS): Likewise.
2762 (memdisk_mod_LDFLAGS): Likewise.
2763 (pkglib_MODULES): Add reboot.mod.
2764 (reboot_mod_SOURCES): New variable.
2765 (reboot_mod_CFLAGS): Likewise.
2766 (reboot_mod_LDFLAGS): Likewise.
2767 (pkglib_MODULES): Add date.mod.
2768 (date_mod_SOURCES): New variable.
2769 (date_mod_CFLAGS): Likewise.
2770 (date_mod_LDFLAGS): Likewise.
2771 (pkglib_MODULES): Add datehook.mod.
2772 (datehook_mod_SOURCES): New variable.
2773 (datehook_mod_CFLAGS): Likewise.
2774 (datehook_mod_LDFLAGS): Likewise.
2775 (pkglib_MODULES): Add lsmmap.mod.
2776 (lsmmap_mod_SOURCES): New variable.
2777 (lsmmap_mod_CFLAGS): Likewise.
2778 (lsmmap_mod_LDFLAGS): Likewise.
2779 (pkglib_MODULES): Add boot.mod.
2780 (boot_mod_SOURCES): New variable.
2781 (boot_mod_CFLAGS): Likewise.
2782 (boot_mod_LDFLAGS): Likewise.
2783 * conf/i386-coreboot.rmk: Removed redundant parts.
2784 * conf/i386-ieee1275.rmk: Likewise.
2785 * conf/i386-pc.rmk: Likewise.
2786 * conf/mips-yeeloong.rmk: Likewise.
2787 * conf/mips.rmk: Likewise.
2788 * conf/powerpc-ieee1275.rmk: Likewise.
2789 * conf/sparc64-ieee1275.rmk: Likewise.
2790 * conf/x86_64-efi.rmk: Likewise.
2791 * conf/i386-coreboot.rmk: Moved qemu parts ..
2792 * conf/i386-qemu.rmk: ... here
2793 * conf/i386-efi.rmk: Moved common parts to...
2794 * conf/x86-efi.rmk: ... here.
2795 * conf/i386.rmk: Added modules common to all x86 variants.
2796 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
2797 * disk/memdisk.c: Remove grub/machine/kernel.h.
2798 * gensymlist.sh.in: Include symbol.h.
2799 * hook/datehook.c: Correct module name.
2800 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
2801 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
2802 * include/grub/i386/efi/serial.h: New file.
2803 * include/grub/x86_64/efi/serial.h: Likewise.
2804 * util/time.c: Likewise.
2805 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
2806
463ac55f
CK
28072010-03-14 Colin King <colin.king@ubuntu.com>
28082010-03-14 Colin Watson <cjwatson@ubuntu.com>
2809
2810 Shrink the pre-partition-table part of boot.img by eight bytes.
2811
2812 * boot/i386/pc/boot.S (ERR): New macro.
2813 (chs_mode): Use ERR.
2814 (geometry_error): Likewise.
2815 (hd_probe_error): Remove. This is only used once, so we wrwite
2816 it inline instead.
2817 (read_error): Instead of printing read_error_string, just set up
2818 %si and fall through to ...
2819 (error_message): ... this new function, also used by ERR.
2820
08e46ede
CW
28212010-03-14 Colin Watson <cjwatson@ubuntu.com>
2822
2823 Speed up consecutive hostdisk operations on the same device.
2824
2825 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
2826 (grub_util_biosdisk_open): Initialise disk->data.
2827 (struct linux_partition_cache): New structure.
2828 (linux_find_partition): Cache partition start positions; these are
2829 expensive to compute on every read and write.
2830 (open_device): Cache open file descriptor in disk->data, so that we
2831 don't have to reopen it and flush the buffer cache for consecutive
2832 operations on the same device.
2833 (grub_util_biosdisk_close): New function.
2834 (grub_util_biosdisk_dev): Set `close' member.
2835
2836 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
2837 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
2838 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
2839 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
2840 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
2841
4a6d2d06
VS
28422010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
2843
2844 Compile parts of grub-emu as modules.
2845
2846 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
2847 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
2848 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
2849 (all-local): Add $(GRUB_EMU).
2850 (install-local): Install $(GRUB_EMU).
2851 (uninstall): Uninstall $(GRUB_EMU).
2852 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
2853 * kern/dl.c: Likewise.
2854 * commands/sleep.c: Not include machine/time.h.
2855 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
2856 (COMMON_CFLAGS): Likewise.
2857 (sbin_UTILITIES): Remove grub-emu.
2858 (grub_emu_SOURCES): Removed.
2859 (kernel_img_RELOCATABLE): New variable.
2860 (pkglib_PROGRAMS): Add kernel.img.
2861 (kernel_img_SOURCES): New variable
2862 (kernel_img_CFLAGS): Likewise.
2863 (kernel_img_LDFLAGS): Likewise.
2864 (TARGET_NO_STRIP): Likewise.
2865 (TARGET_NO_DYNAMIC_MODULES): Likewise.
2866 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
2867 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
2868 (grub-emu): New target.
2869 (GRUB_EMU): New variable.
2870 * configure.ac: Whitelist -emu as possible x86_64 architecture.
2871 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
2872 * loader/xnu.c: Likewise.
2873 * include/grub/pci.h: Likewise.
2874 * genemuinit.sh: New file.
2875 * genemuinitheader.sh: Likewise.
2876 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
2877 Support TARGET_NO_DYNAMIC_MODULES.
2878 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
2879 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
2880 * disk/loopback.c: Likewise.
2881 * font/font_cmd.c: Likewise.
2882 * partmap/acorn.c: Likewise.
2883 * partmap/amiga.c: Likewise.
2884 * partmap/apple.c: Likewise.
2885 * partmap/gpt.c: Likewise.
2886 * partmap/msdos.c: Likewise.
2887 * partmap/sun.c: Likewise.
2888 * parttool/msdospart.c: Likewise.
2889 * term/gfxterm.c: Likewise.
2890 * video/bitmap.c: Likewise.
2891 * video/readers/jpeg.c: Likewise.
2892 * video/readers/png.c: Likewise.
2893 * video/readers/tga.c: Likewise.
2894 * video/video.c: Likewise.
2895 * util/grub-emu.c (read_command_list): Removed.
2896 (main): Don't call util_init_nls.
2897 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
2898 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
2899
91fdd2ed
VS
29002010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
2901
2902 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
2903 date.mod, datehook.mod.
2904 (datetime_mod_SOURCES): New variable.
2905 (datetime_mod_CFLAGS): Likewise.
2906 (datetime_mod_LDFLAGS): Likewise.
2907 (date_mod_SOURCES): Likewise.
2908 (date_mod_CFLAGS): Likewise.
2909 (date_mod_LDFLAGS): Likewise.
2910 (datehook_mod_SOURCES): Likewise.
2911 (datehook_mod_CFLAGS): Likewise.
2912 (datehook_mod_LDFLAGS): Likewise.
2913 * conf/sparc64-ieee1275.rmk: Likewise.
2914 * lib/ieee1275/datetime.c: New file.
2915
873ccae6
VS
29162010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
2917
2918 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
2919 (ieee1275_fb_mod_SOURCES): New variable.
2920 (ieee1275_fb_mod_CFLAGS): Likewise.
2921 (ieee1275_fb_mod_LDFLAGS): Likewise.
2922 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
2923 New proto.
2924 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
2925 (HEAP_MAX_ADDR): Likewise.
2926 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
2927 type.
2928 Correct stop condition.
2929 (grub_ieee1275_devices_iterate): New function.
2930 * video/ieee1275.c: New file.
2931
601c97c0
VS
29322010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
2933
2934 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
2935
2936 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
2937 as scratch.
2938 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
2939 SCRATCH_PAD_DISKBOOT as scratch.
2940 (bootit): Pass Openfirmware pointer in %o4.
2941 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
2942 of 0x200000.
2943 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
2944 with util/grub-mkrawimage.c.
2945 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
2946 * include/grub/aout.h (AOUT_MID_SUN): New definition.
2947 (grub_aout_get_type) [GRUB_UTIL]: Removed.
2948 (grub_aout_load) [GRUB_UTIL]: Likewise.
2949 * include/grub/kernel.h (grub_modules_get_end): New proto.
2950 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
2951 (SCRATCH_PAD_BOOT): New definition.
2952 (SCRATCH_PAD_DISKBOOT): Likewise.
2953 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
2954 * include/grub/sparc64/ieee1275/ieee1275.h
2955 (grub_ieee1275_original_stack): New variable
2956 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
2957 New definition
2958 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
2959 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
2960 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
2961 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
2962 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
2963 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
2964 (grub_platform_image_format_t): New type.
2965 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
2966 * kern/main.c (grub_modules_get_end)
2967 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
2968 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
2969 (codestart): Switch stacks.
2970 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
2971 variable.
2972 (grub_heap_init): Use grub_modules_get_end.
2973 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
2974 stack.
2975 * util/grub-mkrawimage.c (generate_image): Support sparc64.
2976 (main): Likewise.
2977 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
2978
d68b491e
TG
29792010-03-14 Thorsten Glaser <tg@mirbsd.org>
2980
2981 * util/grub-mkrescue.in: Base ISO UUID on UTC.
2982
4e02ed50
MK
29832010-03-08 Matt Kraai <kraai@ftbfs.org>
2984
2985 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
2986 bug #559005).
2987
1f15fc1e
VS
29882010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
2989
2990 * genmoddep.awk: Output all missing symbols and not only first.
2991
fce5d8ff
VS
29922010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
2993
2994 * NEWS: Put the date of 1.98 release.
2995
d1e8a02f
VS
29962010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
2997
2998 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
2999 ft2build.h.
3000
696fd607
VS
30012010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
3002
3003 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
3004 completition in the middle of string.
3005
33e2e6f3
VS
30062010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
3007
3008 * util/grub-mkrescue.in: Use mktemp with explicit template.
3009
b1f6d291
VS
30102010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
3011
3012 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
3013
2ac227c7
VS
30142010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
3015
3016 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
3017 right pointer.
3018
8f9a632b
VS
30192010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
3020
3021 Fix FreeBSD compilation.
3022
3023 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
3024 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
3025
60b03859
VS
30262010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
3027
3028 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
3029
48a5a769
VS
30302010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3031
3032 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
3033
3ab4bd77
VS
30342010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3035
3036 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
3037
d116e0d8
RM
30382010-03-04 Robert Millan <rmh.grub@aybabtu.com>
3039
3040 Support relative image path in theme file.
3041
3042 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
3043 (image_set_property): Handle theme_dir and relative path.
3044
c7ef54aa
VS
30452010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3046
3047 * configure.ac: Alias amd64 to x86_64.
3048
fcee14ed
VS
30492010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3050
3051 * NEWS: mention multiboot on EFI.
3052
d0780363
VS
30532010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3054
3055 * kern/main.c (grub_load_modules): Handle errors from init functions of
3056 embeded modules.
3057
41168ea4
VS
30582010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3059
3060 * normal/autofs.c (autoload_fs_module): Handle errors.
3061
b54d93ac
VS
30622010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3063
3064 Disable linux.mod on qemu-mips since it's not functional and leads
3065 to compilation failure.
3066
3067 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
3068 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
3069 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
3070 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
3071 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
3072 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
3073 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
3074 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
3075 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
3076 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
3077 Reported by: BVK Chaitanya
3078
fc8345da
JU
30792010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
3080
3081 * INSTALL: Add gettext as a dependency and add qemu to a new section
3082 "Prerequisites for make-check".
3083
4760f979
CF
30842010-03-04 Christian Franke <franke@computer.org>
3085
3086 * util/grub-pe2elf.c: Add missing include "progname.h".
3087
f209b5b2
VS
30882010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3089
3090 * normal/crypto.c (read_crypto_list): Fix a typo.
3091 Reported by: Seth Goldberg.
3092
b4b7be98
VS
30932010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3094
3095 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
f209b5b2 3096 Reported by: Seth Goldberg.
b4b7be98 3097
c0ee0385
VS
30982010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3099
3100 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
3101 ascii.bitmaps.
3102
a8efbf64
VS
31032010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3104
3105 * genmk.rb: Remove terminal*.lst in make clean.
f209b5b2 3106 Reported by: Seth Goldberg.
a8efbf64 3107
08dcd913
VS
31082010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3109
3110 * util/i386/efi/grub-install.in: Copy gettext files.
3111
c4d0b332
VS
31122010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
3113
3114 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
3115
c6f2fe52
VS
31162010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
3117
3118 Wait for user entry basing on presence of output rather than on errors.
3119
3120 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
3121 (grub_install_newline_hook): Likewise.
3122 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
3123 * normal/menu.c (show_menu): Check line_counter to determine presence
3124 of output.
3125 * normal/term.c (grub_normal_line_counter): New variable.
3126 (grub_normal_get_line_counter): New function.
3127 (grub_install_newline_hook): Likewise.
3128
5382b1e4
VS
31292010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
3130
3131 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
3132
5519963b
VS
31332010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
3134
3135 * configure.ac: Update version to 1.98.
3136
72b28631
VS
31372010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
3138
3139 * util/grub.d/10_linux.in (linux_entry): Don't default to
3140 gfxpayload=keep if Linux doesn't support video handover.
3141
c140a180
VS
31422010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
3143
3144 Don't compile video modules on yeeloong since video subsystem is part
3145 of kernel.
3146
3147 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
3148 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
3149 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
3150 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
3151 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
3152 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
3153 * include/grub/bitmap_scale.h: Likewise.
3154 * include/grub/bufio.h: Likewise.
3155 * include/grub/font.h: Likewise.
3156 * include/grub/gfxterm.h: Likewise.
3157 * include/grub/video.h: Likewise.
3158 * include/grub/vbe.h: Don't include video_fb.h.
3159 * video/i386/pc/vbe.c: Include video_fb.h.
3160 * commands/i386/pc/vbetest.c: Include video.h.
3161
a0ca21c2
CW
31622010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
3163
3164 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
3165 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
3166 default entry if GRUB_SAVEDEFAULT=true. This allows using
3167 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
3168 saving a new default on every boot.
3169
4a8a763c
VS
31702010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
3171
3172 * normal/crypto.c (read_crypto_list): Fix a memory leak.
3173 * normal/term.c (read_terminal_list): Likewise.
3174 * normal/main.c (grub_normal_init_page): Likewise.
3175 (grub_normal_read_line_real): Likewise.
3176
607ffde2
VS
31772010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
3178
3179 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
3180 memory leak.
3181 Reported by: Seth Goldberg.
3182
2b8fa975
CW
31832010-02-24 Joey Korkames <joey+lists@kidfixit.com>
3184
3185 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
3186 duplicate declaration of `start'.
3187
618307dd
VS
31882010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
3189
3190 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
3191 filename.
3192 Reported by: Georgy Buranov
3193
7dd05b96 31942010-02-20 Carles Pina i Estany <carles@pina.cat>
3195
3196 * util/grub-mkrawimage.c (usage): Change string formatting to
3197 improve gettext.
3198
d1484a42
MRA
31992010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
3200
3201 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
3202 backspace keys.
3203
42b1d186
VS
32042010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
3205
3206 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
3207 Reported by: Michael Suchanek.
3208
32092010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
0a39de87
ST
3210
3211 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
3212 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
3213
d9f31a41
VS
32142010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
3215
3216 Remove any reference to non-free fonts.
3217
3218 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
3219 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
3220 uses non-free components.
3221 * font/font.c (grub_font_get_name): Remove example name.
3222 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
3223 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
3224 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
3225 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
3226
2793c71e
GB
32272010-02-16 Georgy Buranov <gburanov@gmail.com>
3228
3229 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
3230
402e3779
VS
32312010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
3232
3233 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
3234 Double divisor.
3235 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
3236 features.
3237 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
3238
0dd1e0dd
VS
32392010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
3240
3241 * gensymlist.sh.in: Use TARGET_CC instead of CC.
3242
6fa7cfce
ST
32432010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
3244
3245 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
3246 * docs/grub.texi (Command-line and menu entry commands): Document play
3247 command.
3248
37c8483b
ST
32492010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
3250
3251 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
3252 parse arguments as inline tempo and notes. Move code for playing notes
3253 to...
3254 (play): ... new function.
3255
14da0fb7
ST
32562010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
3257
3258 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
3259 grub_uint16_t instead of short.
3260 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
3261 disk from little endian to cpu endianness.
3262
04459e70
ST
32632010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
3264
3265 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
3266 GRUB_TICKS_PER_SECOND instead of 120.
3267
a0876943
VS
32682010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
3269
3270 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
3271 escape sequence after \e.
3272
e29f95dc
VS
32732010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
3274
3275 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
3276 non-ASCII characters.
3277
d27859b2
VS
32782010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
3279
3280 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
3281 set root in single quotes to prevent \, from being unescaped.
3282
bc028f2f
VS
32832010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
3284
3285 Prevent unknown commands from stopping menuentry execution.
3286
3287 * script/execute.c (grub_script_execute_cmdline): Print error after
3288 unknown command.
3289
095f5f82
VS
32902010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
3291
3292 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
3293 Reported by: Pavel Pisa.
3294
8c717950
VS
32952010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3296
3297 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
3298
904935c3
VS
32992010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3300
3301 Merge grub_ieee1275_map_physical into grub_map and rename to
3302 grub_ieee1275_map
3303
3304 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
3305 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
3306 Remove.
3307 * kern/ieee1275/openfw.c (grub_map): Rename to ...
3308 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
3309 necessary.
3310 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
3311
5b59a4e3
VS
33122010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3313
3314 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
3315 opening and not after.
3316
69e137e8
VS
33172010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3318
3319 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
3320 constants.
3321
2c0fcc36
VS
33222010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3323
3324 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
3325 (alloc_phys): Use ALIGN_UP instead of align_addr.
3326
8c6052ce
VS
33272010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3328
3329 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
3330
17cec782
VS
33312010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3332
3333 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
3334
e0128bbd
VS
33352010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3336
3337 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
3338 verbose dprintf.
3339
ca62070b
VS
33402010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3341
3342 Fix over-4GiB seek on sparc64.
3343
3344 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
3345 Replace pos_i and pos_lo with pos. All users updated.
3346 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
3347 New constant.
3348 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
3349 Likewise.
3350 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
3351 and pos_lo.
3352
bdca2607
VS
33532010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3354
3355 * util/grub-mkrawimage.c (main): Call set_program_name.
3356
da278c4d
VS
33572010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3358
3359 Properly align 64-bit targets.
3360
3361 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
3362 (generate_image): Use ALIGN_ADDR.
3363
b274d734
VS
33642010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3365
3366 Properly create cross-endian images.
3367
3368 * include/grub/types.h (grub_host_to_target_addr): New macro
3369 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
3370
82da2062
VS
33712010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
3372
3373 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
3374
7cae4377
VS
33752010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
3376
3377 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
3378
3379 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
3380 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
3381 (grub_linux_boot): Divide by 64K when on VESA.
3382
65a533e7
VS
33832010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
3384
3385 Support GRUB_GFXPAYLOAD_LINUX.
3386
3387 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
3388 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
3389
dd01d397
VS
33902010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
3391
3392 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
3393 to show messages instead of discarding them.
3394 Process errors after executing command and not before. Keep old method
3395 too as precaution.
3396
660960d6
VS
33972010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
3398
3399 * configure.ac: Check for ft2build.h.
3400
62509f04
VS
34012010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3402
3403 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
3404
473df63d
VS
34052010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3406
3407 * genkernsyms.sh.in: Use TARGET_CC.
3408
c98d2a13
CW
34092010-02-07 Colin Watson <cjwatson@ubuntu.com>
3410
3411 * NEWS: Update.
3412
6e14234c
VS
34132010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3414
3415 * include/grub/multiboot2.h: Remove leftover file.
e28e32ae
VS
3416 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
3417 * include/grub/partition.h [GRUB_UTIL]: Likewise.
6e14234c 3418
b255e9cf
YB
34192010-02-07 Yves Blusseau <blusseau@zetam.org>
3420
6e14234c 3421 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
b255e9cf 3422
98e6959d
VS
34232010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3424
3425 Fix warnings in grub-emu when compiling with maximum warning options.
3426
3427 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
3428 (grub_arch_modules_addr): Return 0 and not NULL.
3429 * util/misc.c (ENABLE_RELOCATABLE): New definition.
74e4934e 3430 (xstrdup): Use newstr instead of dup.
f88d801b
VS
3431 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
3432 of disk to dsk to avoid shadowing.
74e4934e
VS
3433 (find_free_slot): Fix prototype.
3434 * util/getroot.c (grub_util_is_dmraid): Make static.
3435 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
3436 Add missing prototype.
3437 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
98e6959d 3438
74e31b5c
VS
34392010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3440
3441 * loader/i386/linux.c (grub_linux_setup_video): Handle error
3442 appropriately.
3443
6b2ad14b
VS
34442010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3445
3446 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
3447 code out.
3448
8f891adc
VS
34492010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3450
3451 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
3452 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
3453 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
3454 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
3455 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
3456 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
3457
74b45184
VS
34582010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3459
3460 * include/grub/err.h (grub_err_printf): Don't export.
3461
a4bced77
VS
34622010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3463
3464 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
3465
007d0695
VS
34662010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
3467
3468 * include/grub/i18n.h (grub_gettext_dummy): Removed.
3469 * kern/misc.c (grub_gettext_dummy): Make static.
3470
b6c0d9c2
VS
34712010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3472
3473 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
3474 by non-valid ones.
3475 * kern/term.c (grub_putchar): Likewise.
3476
f51a90d0
VS
34772010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3478
3479 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
3480 buggy hook call and memory leak.
3481
6846cec5
VS
34822010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3483
3484 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
3485
468d69fe
VS
34862010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3487
3488 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
3489
51906b8c
VS
34902010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3491
3492 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
3493 modevar.
3494 Return grub_errno on allocation error.
3495
09706ce5
VS
34962010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3497
3498 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
3499
911df80c
YB
35002010-02-06 Yves Blusseau <blusseau@zetam.org>
3501
3502 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
3503 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
3504
3746a6bc
VS
35052010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3506
3507 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
3508 non-pxe disk.
3509 (grub_pxefs_open): Likewise.
3510
09706ce5
VS
35112010-02-06 Robert Millan <rmh.grub@aybabtu.com>
3512
3513 * util/grub.d/10_hurd.in: Add --class information to menuentries.
3514 * util/grub.d/10_kfreebsd.in: Likewise.
3515 * util/grub.d/10_linux.in: Likewise.
3516
7cc192d9
VS
35172010-02-06 Colin D Bennett <colin@gibibit.com>
3518
3519 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
3520 (gfxmenu_mod_SOURCES): New variable.
3521 (gfxmenu_mod_CFLAGS): Likewise.
3522 (gfxmenu_mod_LDFLAGS): Likewise.
3523 * include/grub/term.h (grub_term_set_current_output): Declare
3524 argument as const.
3525 * docs/gfxmenu-theme-example.txt: New file.
3526 * gfxmenu/gfxmenu.c: Likewise.
3527 * gfxmenu/gui_box.c: Likewise.
3528 * gfxmenu/gui_canvas.c: Likewise.
3529 * gfxmenu/gui_circular_progress.c: Likewise.
3530 * gfxmenu/gui_image.c: Likewise.
3531 * gfxmenu/gui_label.c: Likewise.
3532 * gfxmenu/gui_list.c: Likewise.
3533 * gfxmenu/gui_progress_bar.c: Likewise.
3534 * gfxmenu/gui_string_util.c: Likewise.
3535 * gfxmenu/gui_util.c: Likewise.
3536 * gfxmenu/icon_manager.c: Likewise.
3537 * gfxmenu/model.c: Likewise.
3538 * gfxmenu/named_colors.c: Likewise.
3539 * gfxmenu/theme_loader.c: Likewise.
3540 * gfxmenu/view.c: Likewise.
3541 * gfxmenu/widget-box.c: Likewise.
3542 * include/grub/gfxmenu_model.h: Likewise.
3543 * include/grub/gfxmenu_view.h: Likewise.
3544 * include/grub/gfxwidgets.h: Likewise.
3545 * include/grub/gui.h: Likewise.
3546 * include/grub/gui_string_util.h: Likewise.
3547 * include/grub/icon_manager.h: Likewise.
3548
35492010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3550
3551 Agglomerate scrolling in gfxterm.
3552
3553 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
3554 (grub_virtual_screen_setup): Initialise 'total_screen'.
3555 (write_char): Split to ...
3556 (paint_char): ... this ...
3557 (write_char): ... and this.
3558 (paint_char): Handle delayed scrolling.
3559 (draw_cursor): Likewise.
3560 (scroll_up): Split to ...
3561 (real_scroll): ... this ...
3562 (scroll_up): ... and this.
3563 (real_scroll): Handle multi-line scroll and draw below-the-bottom
3564 characters.
3565 (grub_gfxterm_refresh): Call real_scroll.
3566
35672010-02-06 Colin D Bennett <colin@gibibit.com>
3568
3569 * include/grub/misc.h (grub_iscntrl): New inline function.
3570 (grub_isalnum): Likewise.
3571 (grub_strtol): Likewise.
3572
35732010-02-06 Colin D Bennett <colin@gibibit.com>
3574
3575 * normal/menu_text.c (get_entry_number): Move from here ...
3576 * normal/menu.c (get_entry_number): ... moved here.
3577 * include/grub/menu.h (grub_menu_get_default_entry_index):
3578 New prototype.
3579 * normal/menu.c (grub_menu_get_default_entry_index): New function.
3580 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
3581 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
3582 (grub_menu_viewer_should_return): Likewise.
3583 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
3584 * normal/menu_text.c (run_menu): Enable menu switching.
3585 * normal/menu_viewer.c (should_return): New variable.
3586 (menu_viewer_changed): Likewise.
3587 (grub_menu_viewer_show_menu): Handle menu viewer changes.
3588 (grub_menu_viewer_should_return): New function.
3589 (menuviewer_write_hook): Likewise.
3590 (grub_menu_viewer_init): Likewise.
3591
35922010-02-06 Colin D Bennet <colin@gibibit.com>
35932010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3594
3595 Support for gfxterm in a window.
3596
3597 * include/grub/gfxterm.h: New file.
3598 * include/grub/video.h (struct grub_video_rect): New declaration.
3599 (grub_video_rect_t): Likewise.
3600 * term/gfxterm.c (struct grub_gfxterm_window): New type.
3601 (refcount): New variable.
3602 (render_target): Likewise.
3603 (window): Likewise.
3604 (repaint_callback): Likewise.
3605 (grub_virtual_screen_setup): Use 'render_target'.
3606 (init_window): New function.
3607 (grub_gfxterm_init_window): Likewise.
3608 (grub_gfxterm_init): Check reference counter.
3609 Use init_window.
3610 (destroy_window): New function.
3611 (grub_gfxterm_destroy_window): Likewise.
3612 (grub_gfxterm_fini): Check reference counter.
3613 Use destroy_window.
3614 (redraw_screen_rect): Restore viewport.
3615 Use 'render_target' and 'window'.
3616 Call 'repaint_callback'.
3617 (write_char): Use 'render_target'.
3618 (draw_cursor): Likewise.
3619 (scroll_up): Restore viewport.
3620 Use 'render_target' and 'window'.
3621 Call 'repaint_callback'.
3622 (grub_gfxterm_cls): Likewise.
3623 (grub_gfxterm_refresh): Use 'window'.
3624 (grub_gfxterm_set_repaint_callback): New function.
3625 (grub_gfxterm_background_image_cmd): Use 'window'.
3626 (grub_gfxterm_get_term): New function.
3627 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
3628
36292010-02-06 Colin D Bennett <colin@gibibit.com>
3630
3631 Bitmap scaling support.
3632
3633 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
3634 (bitmap_scale_mod_SOURCES): New variable.
3635 (bitmap_scale_mod_CFLAGS): Likewise.
3636 (bitmap_scale_mod_LDFLAGS): Likewise.
3637 * include/grub/bitmap_scale.h: New file.
3638 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
3639 (background_image_cmd_options): New variable.
3640 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
3641 (cmd): Rename and change type to ...
3642 (background_image_cmd_handle): ... this. All users updated.
3643 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
3644 * video/bitmap_scale.c: New file.
3645
36462010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3647
3648 SDL support.
3649
3650 * Makefile.in (LIBSDL): New variable.
3651 (enable_grub_emu_sdl): Likewise.
3652 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
3653 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
3654 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
3655 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
3656 * util/sdl.c: New file.
3657
36582010-02-06 Colin D Bennett <colin@gibibit.com>
36592010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3660
3661 Double buffering support.
3662
3663 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
3664 * include/grub/video.h: Update comment.
3665 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
3666 New type.
3667 (grub_video_fb_doublebuf_blit_init): New prototype.
3668 * term/gfxterm.c (scroll_up): Support double buffering.
3669 (grub_gfxterm_refresh): Likewise.
3670 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
3671 (grub_video_fb_doublebuf_blit_init): Likewise.
3672 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
3673 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
3674 'displayed_page', 'render_page' and 'update_screen'.
3675 (grub_video_vbe_fini): Free offscreen buffer.
3676 (doublebuf_pageflipping_commit): New function.
3677 (doublebuf_pageflipping_update_screen): Likewise.
3678 (doublebuf_pageflipping_init): Likewise.
3679 (double_buffering_init): Likewise.
3680 (grub_video_vbe_setup): Enable doublebuffering.
3681 (grub_video_vbe_swap_buffers): Implement.
3682 (grub_video_vbe_set_active_render_target): Handle double buffering.
3683 (grub_video_vbe_get_active_render_target): Likewise.
3684 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
3685 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
3686 (grub_video_vbe_enable_double_buffering): Likewise.
3687 (grub_video_vbe_swap_buffers): Use update_screen.
3688 (grub_video_set_mode): Use double buffering.
3689
36902010-02-06 Robert Millan <rmh.grub@aybabtu.com>
3691
3692 * maintainance/gentrigtables.py: Remove.
3693 * lib/trig.c: Likewise.
3694
3695 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
3696
3697 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
3698 `trigtables.c'.
3699 (trigtables.c): New rule.
3700 (gentrigtables): Likewise.
3701 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
3702
37032010-02-06 Robert Millan <rmh.grub@aybabtu.com>
3704
3705 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
3706 integer constants.
3707
37082010-02-06 Colin D Bennet <colin@gibibit.com>
3709
3710 Trigonometry support.
3711
3712 * include/grub/trig.h: New file.
3713 * lib/trig.c: Likewise.
3714 * maintainance/gentrigtables.py: Likewise.
3715 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
3716 (trig_mod_SOURCES): New variable.
3717 (trig_mod_CFLAGS): Likewise.
3718 (trig_mod_LDFLAGS): Likewise.
3719
5562834e
VS
37202010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3721
3722 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
3723 disk devices.
3724
4f8528fc
VS
37252010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3726
3727 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
3728 error.
3729
2b4068e9
VS
37302010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
3731
3732 * util/hostdisk.c (open_device): Don't use partition device when reading
3733 before the partition.
3734 (grub_util_biosdisk_read): Don't read from partition and before the
3735 partition in single operation.
3736 (grub_util_biosdisk_write): Don't write to partition and before the
3737 partition in single operation.
3738
399f6e4d
TL
37392010-02-03 Torsten Landschoff <torsten@debian.org>
3740
3741 * kern/disk.c (grub_disk_read): Fix offset computation when reading
3742 last sectors.
3743
996649b0
VS
37442010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
3745
3746 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
3747 CDROM reads.
3748 (grub_biosdisk_write): Refuse to write to CDROM.
3749
3b205d4d
VS
37502010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
3751
3752 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
3753
61e89d9d
VS
37542010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
3755
3756 * font/font.c (find_glyph): Check that bmp_idx is available before
3757 using it.
3758 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
3759 with (font == NULL).
3760
bf7fcba2
CS
37612010-01-28 Christian Schmitt <chris@ilovelinux.de>
3762
3763 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
3764
f45d2663
BC
37652010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
3766
3767 * include/grub/script_sh.h (sourcecode): Add const qualifier.
3768 * util/grub-script-check.c (getline): Fix empty lines case.
3769
ec1444e6
RM
37702010-01-28 Robert Millan <rmh.grub@aybabtu.com>
3771
3772 * Makefile.in (check): Exit with fail status when one of the tests
3773 fails.
3774 * tests/example_functional_test.c (example_test): Fix reversed assert.
3775 * tests/example_unit_test.c (example_test): Likewise.
3776
2e1cb9bb
CW
37772010-01-28 Colin Watson <cjwatson@ubuntu.com>
3778
3779 * util/grub.d/10_linux.in: This script does not use any of the
3780 contents of gettext.sh, only the external command `gettext', so stop
3781 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
3782 the same prefix as GRUB.)
3783 * util/grub.d/10_kfreebsd.in: Likewise.
3784
63533ab0
VS
37852010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
3786
3787 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
3788 of the line.
3789
989e1f93
VS
37902010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
3791
3792 * kern/disk.c (grub_disk_read): Fix offset computation when reading
3793 last sectors.
3794
e709ebe2
VS
37952010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
3796
3797 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
3798 having a 4KiB and not 32KiB buffer size.
3799
27dea7ed
RM
38002010-01-27 Robert Millan <rmh.grub@aybabtu.com>
3801
3802 * util/hostfs.c: Include `<errno.h>'.
3803 (grub_hostfs_read): Handle errors from fseeko() and fread().
3804
67667b9c
RM
38052010-01-27 Robert Millan <rmh.grub@aybabtu.com>
3806
3807 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
3808 loop when using read hooks on files whose size isn't sector-aligned.
3809
c294d9d8
RM
38102010-01-27 Robert Millan <rmh.grub@aybabtu.com>
3811
3812 Remove unused parameter.
3813
3814 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
3815 (grub_iso9660_open): Remove initialization of `data->length'.
3816
af75a9f1
RM
38172010-01-27 Robert Millan <rmh.grub@aybabtu.com>
3818
3819 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
3820 memleak conditions.
3821
254e2ce5 38222010-01-27 Carles Pina i Estany <carles@pina.cat>
3823
3824 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
3825 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
3826
b510928c 38272010-01-26 Carles Pina i Estany <carles@pina.cat>
3828
3829 * util/bin2h.c (usage): Fix warning (space after backslash).
3830
aa2f9dd2 38312010-01-26 Carles Pina i Estany <carles@pina.cat>
de0b7a4e 3832
3833 * font/font.c: Include `grub/fontformat.h.
3834 Remove font file format constants.
3835 (grub_font_load): Use the new macros.
3836 * include/grub/fontformat.h: New file.
3837 * util/grub-mkfont.c: Include `grub/fontformat.c'.
3838 (write_font_pf2): Use the new macros.
3839
94e7e712
RM
38402010-01-26 Robert Millan <rmh.grub@aybabtu.com>
3841
3842 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
3843 does.
3844
3973a59a
RM
38452010-01-26 Robert Millan <rmh.grub@aybabtu.com>
3846
3847 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
3848
3849 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
3850 (_start): Macroify `0x7F'.
3851
3852 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
3853 (make_install_device): Use "(pxe)" as fallback prefix when booting
3854 via PXE.
3855
42e0cba3
GS
38562010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
3857
3858 * configure.ac: Reset LIBS after check for libgcc symbols.
3859
847effd8
CW
38602010-01-25 Colin Watson <cjwatson@ubuntu.com>
3861
3862 * util/hostdisk.c (open_device): Add trailing newline to debug
3863 message.
3864
ea4a7e35
GS
38652010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
3866
3867 * configure.ac: Check for `limits.h'.
3868 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
3869
67951a53
RM
38702010-01-24 Robert Millan <rmh.grub@aybabtu.com>
3871
3872 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
3873 capitalize error strings.
3874
c273d4ce
ST
38752010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
3876
3877 * util/grub.d/10_hurd.in: Add a recovery mode.
3878
69be5b74
VS
38792010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
3880
3881 * configure.ac: Check for libgcc symbols with -nostdlib.
3882
fc9e5810
BC
38832010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
3884
3885 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
3886
4b358c0a
VS
38872010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
3888
3889 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
3890 stack since heap may be unavailable at that point.
3891 (grub_ofconsole_gotoxy): Likewise.
3892
454fcd1c
VS
38932010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
3894
3895 * configure.ac: Check for _restgpr_14_x.
3896 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
3897 and _savegpr_* prototypes.
3898
566863ca
RM
38992010-01-22 Robert Millan <rmh.grub@aybabtu.com>
3900
3901 Use generic grub_reboot() for i386-efi.
3902
3903 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
3904 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
3905 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
3906
bf86e59a
VS
39072010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
3908
3909 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
3910 presence of "prefix" variable as it breaks when normal.mod is
3911 embedded.
3912
d645e0f8
VS
39132010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
3914
3915 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
3916 stack since heap is unavailable at that point.
3917
f9ab2e25
VS
39182010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
3919
3920 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
3921 (grub_freebsd_bootinfo): Rewritten.
3922 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
3923
01fc7054
VS
39242010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
3925
3926 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
3927
caab4fd6
RM
39282010-01-21 Robert Millan <rmh.grub@aybabtu.com>
3929
3930 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
3931 domain now.
3932
67eb1427
FZ
39332010-01-20 Felix Zielcke <fzielcke@z-51.de>
3934
3935 * util/misc.c (make_system_path_relative_to_its_root): Change the work
3936 around for handling "/" to the correct fix. Fix a memory leak. Use
3937 xstrdup instead of strdup.
3938
a9ed4ff3
VS
39392010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3940
3941 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
3942
39432010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
bed35bda
VS
3944
3945 Optimise glyph lookup by Basic Multilingual Plane lookup array.
3946
3947 * font/font.c (struct grub_font): New member 'bmp_idx'.
3948 (font_init): Initialise 'bmp_idx'.
3949 (load_font_index): Fill 'bmp_idx'.
3950 (find_glyph): Make inline. Use bmp_idx for BMP characters.
3951
48209f4f
VS
39522010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3953
3954 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
3955 unnecessary calls.
3956
9f0a4bb7
VS
39572010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3958
3959 Move context handling out of the kernel.
3960
3961 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
3962 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
3963 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
3964 * conf/i386-efi.rmk: Likewise.
3965 * conf/i386-ieee1275.rmk: Likewise.
3966 * conf/i386-pc.rmk: Likewise.
3967 * conf/powerpc-ieee1275.rmk: Likewise.
3968 * conf/sparc64-ieee1275.rmk: Likewise.
3969 * conf/x86_64-efi.rmk: Likewise.
3970 * include/grub/env.h: Include grub/menu.h.
3971 (grub_env_var_type): Removed.
3972 (grub_env_var): Replaced field 'type' with 'global'.
3973 (grub_env_find): New prototype.
3974 (grub_env_context_open): Remove EXPORT_FUNC.
3975 (grub_env_context_close): Likewise.
3976 (grub_env_export): Likewise.
3977 (grub_env_set_data_slot): Removed.
3978 (grub_env_get_data_slot): Likewise.
3979 (grub_env_unset_data_slot): Likewise.
3980 (grub_env_unset_menu): New prototype.
3981 (grub_env_set_menu): Likewise.
3982 (grub_env_get_menu): Likewise.
3983 * include/grub/env_private.h: New file.
3984 * include/grub/normal.h (grub_context_init): New prototype.
3985 (grub_context_fini): Likewise.
3986 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
3987 * normal/context.c (grub_cmd_export): ... to here.
3988 * kern/env.c: Include env_private.h.
3989 (HASHSZ): Moved to include/grub/env_private.h.
3990 (grub_env_context): Likewise.
3991 (grub_env_sorted_var): Likewise.
3992 (current_context): Renamed from this ...
3993 (grub_current_context): ...to this. 'static' removed. All users updated.
3994 (grub_env_find): Removed 'static'.
3995 (grub_env_context_open): Moved to normal/context.c.
3996 (grub_env_context_close): Likewise.
3997 (grub_env_export): Likewise.
3998 (mangle_data_slot_name): Removed.
3999 (grub_env_set_data_slot): Likewise.
4000 (grub_env_get_data_slot): Likewise.
4001 (grub_env_unset_data_slot): Likewise.
4002 * kern/main.c (grub_set_root_dev): Don't export root.
4003 It will be done later.
4004 (grub_main): Don't export prefix.
4005 It will be done later.
4006 * normal/context.c: New file.
4007 * normal/main.c (free_menu): Use grub_env_unset_menu.
4008 (grub_normal_add_menu_entry): Use grub_env_get_menu.
4009 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
4010 (GRUB_MOD_INIT(normal)): Call grub_context_init.
4011 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
4012
8dd35b8c
VS
40132010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4014
4015 setpci support.
4016
4017 * commands/setpci.c: New file.
4018 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
4019 (setpci_mod_SOURCES): New variable.
4020 (setpci_mod_CFLAGS): Likewise.
4021 (setpci_mod_LDFLAGS): Likewise.
4022
449193d5
VS
40232010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4024
4025 Byte-addressable PCI configuration space.
4026
4027 * bus/pci.c (grub_pci_make_address): Use byte address instead of
4028 dword address.
4029 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
4030 GRUB_PCI_REG_CACHELINE.
4031 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
4032 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
4033 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
4034 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
4035 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
4036 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
4037 grub_pci_make_address.
4038 (lock_rom_area): Likewise.
4039 * commands/lspci.c (grub_lspci_iter): Use macroses
4040 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
4041 of grub_pci_make_address.
4042 * disk/ata.c (grub_ata_pciinit): Likewise.
4043 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
4044 (GRUB_PCI_REG_VENDOR): Likewise.
4045 (GRUB_PCI_REG_DEVICE): Likewise.
4046 (GRUB_PCI_REG_COMMAND): Likewise.
4047 (GRUB_PCI_REG_STATUS): Likewise.
4048 (GRUB_PCI_REG_REVISION): Likewise.
4049 (GRUB_PCI_REG_CLASS): Likewise.
4050 (GRUB_PCI_REG_CACHELINE): Likewise.
4051 (GRUB_PCI_REG_LAT_TIMER): Likewise.
4052 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
4053 (GRUB_PCI_REG_BIST): Likewise.
4054 (GRUB_PCI_REG_ADDRESSES): Likewise.
4055 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
4056 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
4057 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
4058 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
4059 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
4060 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
4061 (GRUB_PCI_REG_CIS_POINTER): Likewise.
4062 (GRUB_PCI_REG_SUBVENDOR): Likewise.
4063 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
4064 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
4065 (GRUB_PCI_REG_CAP_POINTER): Likewise.
4066 (GRUB_PCI_REG_IRQ_LINE): Likewise.
4067 (GRUB_PCI_REG_IRQ_PIN): Likewise.
4068 (GRUB_PCI_REG_MIN_GNT): Likewise.
4069 (GRUB_PCI_REG_MAX_LAT): Likewise.
4070 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
4071 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
4072 * video/efi_uga.c (find_framebuf): Likewise.
fdb1b2ea 4073 * video/sm712.c (grub_video_sm712_setup): Likewise.
449193d5
VS
4074 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
4075 space.
4076
96d73208
RM
40772010-01-20 Robert Millan <rmh.grub@aybabtu.com>
4078
4079 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
4080 can be reliably determined to be supported.
4081
d4484482
RM
40822010-01-20 Robert Millan <rmh.grub@aybabtu.com>
4083
4084 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
4085 that VESA is supported.
4086 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
4087 supported.
4088
00308ecf
VS
40892010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4090
4091 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
4092
f66924a4
RM
40932010-01-20 Robert Millan <rmh.grub@aybabtu.com>
4094
4095 * util/misc.c (make_system_path_relative_to_its_root): Work around
4096 special-casing of "/", as previous incarnation of this routine did.
4097
cbca0ada
VS
40982010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4099
4100 Fix any-emu compilation.
4101
4102 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
4103 * grub_bin2h_SOURCES: New variable.
4104
34a66d99
RM
41052010-01-20 Robert Millan <rmh.grub@aybabtu.com>
4106
4107 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
4108
94fabf58
RM
41092010-01-20 Robert Millan <rmh.grub@aybabtu.com>
4110
4111 * util/grub.d/00_header.in: Fix handling of locale_dir.
4112
02cf98ca
VS
41132010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4114
4115 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
4116 as possible unifont location (Gentoo).
4117 Reported by: Alexander Brüning
4118
327dbcd7
VS
41192010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4120
4121 Don't try to generate lists for kernel.img.
4122
4123 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
4124 (pkglib_MODULES): Remove kernel.img.
4125 (kernel_img_EXPORTS): Removed.
4126 (kernel_img_RELOCATABLE): New variable.
4127 * conf/x86_64-efi.rmk: Likewise.
4128 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
4129
ca467290
VS
41302010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4131
4132 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
4133 grub_xasprintf or grub_snprintf.
4134 (grub_vsprintf): Likewise.
4135 (grub_snprintf): New proto.
4136 (grub_vsnprintf): Likewise.
4137 (grub_xasprintf): Likewise.
4138 (grub_xvasprintf): Likewise.
4139 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
4140 (grub_sprintf): Removed.
4141 (grub_vsnprintf): New function.
4142 (grub_snprintf): Likewise.
4143 (grub_xvasprintf): Likewise.
4144 (grub_xasprintf): Likewise.
4145 (grub_vsprintf): Renamed to ...
4146 (grub_vsnprintf_real): ...this. New argument max_len.
4147
aca655fd
BC
41482010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
4149
4150 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
4151 fix grub-script-check warning.
4152
7ee92c32
VS
41532010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4154
4155 * include/grub/font.h (grub_font_load): Fix prototype.
4156
f80927ca
VS
41572010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4158
4159 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
4160
119c50ea
VS
41612010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4162
4163 * include/grub/x86_64/at_keyboard.h: New file.
4164
47d5f3c1
VS
41652010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4166
4167 * loader/mips/linux.c: Include missing grub/i18n.h.
4168
55ff5266
RM
41692009-12-20 Robert Millan <rmh.grub@aybabtu.com>
4170
4171 * normal/menu.c (notify_execution_failure): Clarify error message.
4172
c893cc87
RM
41732009-12-20 Robert Millan <rmh.grub@aybabtu.com>
4174
4175 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
4176 return value (and revert all return statements). Update users.
4177
917dd370
CW
41782010-01-20 Dan Merillat <debian@dan.merillat.org>
4179
4180 * kern/device.c (grub_device_iterate): Allocate new part_ent
4181 structure based on sizeof (*p) rather than sizeof (p->next), to
4182 account for structure padding.
4183
4184 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
4185 disk is NULL, which might happen for LVM physical volumes with no
4186 LVM signature.
4187
d4a4ee57
RM
41882009-12-20 Robert Millan <rmh.grub@aybabtu.com>
4189
4190 * loader/mips/linux.c (grub_cmd_initrd)
4191 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
4192
41932009-12-20 Robert Millan <rmh.grub@aybabtu.com>
4194
4195 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
4196 (grub_video_video_init, grub_video_bitmap_init)
4197 (grub_font_manager_init, grub_term_gfxterm_init)
4198 (grub_at_keyboard_init): New extern declarations.
4199 (grub_machine_init): Initialize gfxterm and at_keyboard.
4200
4201 * kern/main.c (grub_main): Revert grub_printf delay kludge.
4202
4203 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
4204 `gfxterm.mod' into core image.
4205
4206 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
4207 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
4208 (kernel_img_FORMAT): Copy to ...
4209
4210 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
4211 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
4212 (kernel_img_FORMAT): ... here, and ...
4213
4214 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
4215 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
4216 (kernel_img_FORMAT): ... here.
4217
4218 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
4219 and input (at_keyboard) terminals in kernel.
4220 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
4221
4222 (pkglib_MODULES): Remove `pci.mod'.
4223 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
4224 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
4225 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
4226 (at_keyboard_mod_LDFLAGS): Remove variables.
4227
42282010-01-11 Felix Zielcke <fzielcke@z-51.de>
4229
4230 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
4231
42322009-12-10 Robert Millan <rmh.grub@aybabtu.com>
4233
4234 * include/grub/mips/libgcc.h: Only export symbols for functions
4235 that libgcc provides.
4236
42372009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
4238
4239 MIPS support.
4240
4241 * bus/bonito.c: New file.
4242 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
4243 GRUB_PCI_NUM_DEVICES.
4244 * term/i386/pc/serial.c: Move to ...
4245 * term/serial.c: ... here. All users updated.
4246 * util/i386/pc/grub-mkimage.c: Move to ...
4247 * util/grub-mkrawimage.c: ... here. All users updated.
4248 * term/i386/pc/at_keyboard.c: Move to ...
4249 * term/at_keyboard.c: ... here. All users updated.
4250 * conf/mips-qemu-mips.rmk: New file.
4251 * conf/mips-yeeloong.rmk: Likewise.
4252 * conf/mips.rmk: Likewise.
4253 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
4254 mipsel-qemu-mips.
4255 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
4256 to port addresses.
4257 (grub_ata_pciinit): Support CS5536.
4258 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
4259 * font/font_cmd.c (loadfont_command): Open file before passing it to
4260 grub_font_load.
4261 (pseudo_file_read): New function.
4262 (pseudo_file_close): Likewise.
4263 (pseudo_fs): New structure.
4264 (load_font_module): New function.
4265 (GRUB_MOD_INIT(font_manager)): Load embedded font.
4266 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
4267 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
4268 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
4269 * include/grub/i386/at_keyboard.h: Split into ...
4270 * include/grub/at_keyboard.h: ... this ...
4271 * include/grub/i386/at_keyboard.h: ... and this.
4272 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
4273 New prototype.
4274 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
4275 updated.
4276 (grub_elf64_size): Likewise.
4277 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
4278 filename.
4279 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
4280 * include/grub/i386/coreboot/serial.h: Rewritten.
4281 * include/grub/i386/ieee1275/serial.h: Include
4282 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
4283 * include/grub/i386/pc/serial.h: Moved from here ...
4284 * include/grub/serial.h: ... to here. All users updated.
4285 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
4286 (GRUB_PCI_NUM_BUS): Likewise.
4287 (GRUB_PCI_NUM_DEVICES): Likewise.
4288 (grub_pci_device_map_range): Add missing volatile keyword.
4289 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
4290 * include/grub/mips/at_keyboard.h: New file.
4291 * include/grub/mips/cache.h: Likewise.
4292 * include/grub/mips/io.h: Likewise.
4293 * include/grub/mips/kernel.h: Likewise.
4294 * include/grub/mips/libgcc.h: Likewise.
4295 * include/grub/mips/pci.h: Likewise.
4296 * include/grub/mips/qemu-mips/boot.h: Likewise.
4297 * include/grub/mips/qemu-mips/kernel.h: Likewise.
4298 * include/grub/mips/qemu-mips/loader.h: Likewise.
4299 * include/grub/mips/qemu-mips/memory.h: Likewise.
4300 * include/grub/mips/qemu-mips/serial.h: Likewise.
4301 * include/grub/mips/qemu-mips/time.h: Likewise.
4302 * include/grub/mips/relocator.h: Likewise.
4303 * include/grub/mips/time.h: Likewise.
4304 * include/grub/mips/types.h: Likewise.
4305 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
4306 * include/grub/mips/yeeloong/boot.h: Likewise.
4307 * include/grub/mips/yeeloong/kernel.h: Likewise.
4308 * include/grub/mips/yeeloong/loader.h: Likewise.
4309 * include/grub/mips/yeeloong/memory.h: Likewise.
4310 * include/grub/mips/yeeloong/pci.h: Likewise.
4311 * include/grub/mips/yeeloong/serial.h: Likewise.
4312 * include/grub/mips/yeeloong/time.h: Likewise.
4313 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
4314 * kern/elf.c (grub_elf32_size): New parameter. All users
4315 updated.
4316 (grub_elf64_size): Likewise.
4317 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
4318 Load modules before saying "Welcome to GRUB!".
4319 Call grub_refresh after saying "Welcome to GRUB!".
4320 * kern/mips/cache.S: New file.
4321 * kern/mips/cache_flush.S: Likewise.
4322 * kern/mips/dl.c: Likewise.
4323 * kern/mips/init.c: Likewise.
4324 * kern/mips/qemu-mips/init.c: Likewise.
4325 * kern/mips/startup.S: Likewise.
4326 * kern/mips/yeeloong/init.c: Likewise.
4327 * kern/term.c (grub_putcode): Handle NULL terminal.
4328 (grub_getcharwidth): Likewise.
4329 (grub_getkey): Likewise.
4330 (grub_checkkey): Likewise.
4331 (grub_getkeystatus): Likewise.
4332 (grub_getxy): Likewise.
4333 (grub_getwh): Likewise.
4334 (grub_gotoxy): Likewise.
4335 (grub_cls): Likewise.
4336 (grub_setcolorstate): Likewise.
4337 (grub_setcolor): Likewise.
4338 (grub_getcolor): Likewise.
4339 (grub_refresh): Likewise.
4340 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
4341 (write_jump): Add hatch nop.
4342 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
4343 * lib/mips/setjmp.S: New file.
4344 * loader/mips/linux.c: Likewise.
4345 * term/i386/pc/at_keyboard.c: Move from here ...
4346 * term/at_keyboard.c: ... to here.
4347 * term/i386/pc/serial.c: Moved from here ...
4348 * term/serial.c: ... to here. All users updated.
4349 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
4350 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
4351 (serial_translate_key_sequence): Avoid deadlock.
4352 (grub_serial_getkey): Handle backspace.
4353 (grub_serial_putchar): Fix newline handling.
4354 * util/i386/pc/grub-mkimage.c: Move from here ...
4355 * util/grub-mkrawimage.c: ... to here. All users updated.
4356 (generate_image): New parameters 'font_path' and 'format'.
4357 Support embedding font.
4358 Use grub_host_to_target* instead of grub_cpu_to_le*.
4359 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
4360 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
4361 (options): New option "--font".
4362 (usage): Likewise.
4363 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
4364 (main): Handle "--font".
4365 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
4366 (grub_virtual_screen_setup): Set bg_color_display.
4367 (redraw_screen_rect): Use bg_color_display instead of incorrect
4368 bg_color.
4369 (grub_gfxterm_cls): Likewise.
4370 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
4371 Support embedding config file.
4372 (add_segments): Likewise.
4373 (options): New option "--config".
4374 (main): Handle "--config".
4375 * video/sm712.c: New file.
4376
25c2b5b3
RM
43772010-01-18 Robert Millan <rmh.grub@aybabtu.com>
4378
4379 Fix parallel builds.
4380
4381 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
4382 font.c depend on ascii.h).
4383
43842010-01-12 Carles Pina i Estany <carles@pina.cat>
4385
4386 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
4387
43882010-01-11 Carles Pina i Estany <carles@pina.cat>
4389
4390 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
4391 By default: disabled.
4392 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
4393 parameter.
4394
43952010-01-10 Carles Pina i Estany <carles@pina.cat>
4396
4397 * font/font.c: Update copyright years.
4398 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
4399
44002010-01-10 Carles Pina i Estany <carles@pina.cat>
4401
4402 * font/font.c: Include `ascii.h'.
4403 (ASCII_BITMAP_SIZE): New macro.
4404 (ascii_font_glyph): Define.
4405 (ascii_glyph_lookup): New function.
4406 (grub_font_get_string_width): Change comment. If glyph not found, use
4407 ascii_glyph_lookup.
4408 (grub_font_get_glyph_with_fallback): If glyph not available returns
4409 ascii_glyph_lookup.
4410 * util/grub-mkfont.c (file_formats): New enum.
4411 (options): Add `ascii-bitmaps' new option.
4412 (usage): Add `asii-bitmaps' new option.
4413 (write_font_ascii_bitmap): New function.
4414 (write_font): Rename to ...
4415 (write_font_p2): ... this. Remove print_glyphs call.
4416 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
4417 used. Call print_glyphs.
4418 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
4419
44202010-01-14 Robert Millan <rmh.grub@aybabtu.com>
4421
4422 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
4423 (grub_bin2h_SOURCES): New variable.
4424 * util/bin2h.c: New file.
4425
915fc1b8
VS
44262010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4427
4428 * include/multiboot.h: Resynced with spec.
4429 * include/multiboot2.h: Likewise.
4430 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
4431 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
4432
9444b678
RM
44332010-01-18 Robert Millan <rmh.grub@aybabtu.com>
4434
4435 * include/grub/term.h (grub_term_register_input,
4436 grub_term_register_output): Check return of terminal init()
4437 routines, and abort if errors are raised.
4438
4439 * commands/terminal.c: Update copyright year.
4440
cba98e8d
RM
44412010-01-18 Robert Millan <rmh.grub@aybabtu.com>
4442
4443 * commands/terminal.c (grub_cmd_terminal_input)
4444 (grub_cmd_terminal_output): Check return of terminal init()
4445 routines, and abort if errors are raised.
4446
6f7db5d6
VS
44472010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
4448
4449 * include/grub/i386/bsd.h: Fix include pathes.
4450
262bff8d
VS
44512010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
4452
4453 Add missing *BSD copyright headers.
4454
4455 * include/grub/aout.h: Add BSD licence.
4456 * include/grub/i386/bsd.h: Parts under different licences moved to ...
4457 * include/grub/i386/freebsd_linker.h: ... here,
4458 * include/grub/i386/freebsd_reboot.h: ... here,
4459 * include/grub/i386/netbsd_bootinfo.h: ... here,
4460 * include/grub/i386/netbsd_reboot.h: ... here,
4461 * include/grub/i386/openbsd_bootarg.h: ... here,
4462 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
4463 licence to each file.
4464
b2cab848
RM
44652010-01-18 Robert Millan <rmh.grub@aybabtu.com>
4466
4467 * acinclude.m4: Remove `nop' assembly instruction; it's not
4468 implemented by all architectures.
4469
2cb6be4b
RM
44702010-01-18 Robert Millan <rmh.grub@aybabtu.com>
4471
4472 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
4473 ELILO. This is no longer necessary.
4474
a2eaee15
BC
44752010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
4476
4477 Added new tool, grub-scrit-check to verify grub.cfg syntax.
4478
4479 * util/grub-script-check.c: grub-script-check tool.
4480 * conf/common.rmk: Make rules for grub-script-check.
4481
88d17012
RM
44822010-01-18 Robert Millan <rmh.grub@aybabtu.com>
4483
4484 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
4485 spotting it back in 2008. Shame on me for forgetting he did.
4486
4487 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
4488
8040619d
RM
44892010-01-18 Robert Millan <rmh.grub@aybabtu.com>
4490
4491 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
4492 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
4493 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
4494 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
4495 (GRUB_VIDEO_TYPE_EFI): Rename to ...
4496 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
4497
a0c2a0f6
RM
44982010-01-17 Robert Millan <rmh.grub@aybabtu.com>
4499
4500 * include/grub/test.h: Add license header.
4501 * tests/example_functional_test.c: Likewise.
4502 * tests/example_unit_test.c: Likewise.
4503 * tests/lib/functional_test.c: Likewise.
4504 * tests/lib/test.c: Likewise.
4505 * tests/lib/unit_test.c: Likewise.
4506
b0b13907
VS
45072010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
4508
4509 Use flag-based instead of hook-based video mode selection and "auto"
4510 keyword.
4511
4512 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
4513 (grub_video_set_mode): Changed prototype. All users updated.
4514 (grub_video_check_mode_flag): New inline function.
4515 * video/video.c (parse_modespec): New function.
4516 (grub_video_set_mode): Parse flags and keywords.
4517
ea379330 45182010-01-17 Carles Pina i Estany <carles@pina.cat>
4519
4520 * util/misc.c (grub_util_info): Fix the order of the parameters in a
4521 fprintf call.
4522
e15c215e
FZ
45232010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
4524
4525 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
4526
409ae1c9 45272010-01-16 Carles Pina i Estany <carles@pina.cat>
4528
4529 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
4530 string.
4531 * util/grub-emu.c (usage): Likewise.
4532 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
4533 * util/i386/efi/grub-mkimage.c (usage): Likewise.
4534 * util/i386/pc/grub-mkimage.c (usage): Likewise.
4535 * util/i386/pc/grub-setup.c (usage): Likewise.
4536
70a14d3d 45372010-01-16 Carles Pina i Estany <carles@pina.cat>
4538
4539 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
4540 the message.
4541 (grub_util_info): Likewise.
4542 (grub_util_error): Likewise.
4543 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
4544 and/or new lines in `grub_util_warna', `grub_util_info',
4545 `grub_util_error' calls.
4546 * util/getroot.c: Likewise.
4547 * util/grub-editenv.c: Likewise.
4548 * util/grub-emu.c: Likewise.
4549 * util/grub-fstest.c: Likewise.
4550 * util/grub-mkdevicemap.c: Likewise.
4551 * util/grub-mkfont.c: Likewise.
4552 * util/grub-mkpasswd-pbkdf2.c: Likewise.
4553 * util/grub-mkrelpath.c: Likewise.
4554 * util/grub-pe2elf.c: Likewise.
4555 * util/grub-probe.c: Likewise.
4556 * util/hostdisk.c: Likewise.
4557 * util/i386/efi/grub-mkimage.c: Likewise.
4558 * util/i386/pc/grub-mkimage.c: Likewise.
4559 * util/i386/pc/grub-setup.c: Likewise.
4560 * util/ieee1275/ofpath.c: Likewise.
4561 * util/mkisofs/eltorito.c: Likewise.
4562 * util/mkisofs/rock.c: Likewise.
4563 * util/mkisofs/write.c: Likewise.
4564 * util/raid.c: Likewise.
4565 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
4566 * util/sparc64/ieee1275/grub-setup.c: Likewise.
4567
a0b766fc
VS
45682010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
4569
4570 Enable multiboot on non-pc.
4571
4572 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
4573 multiboot.mod and multiboot2.mod to ...
4574 * conf/i386.rmk (pkglib_MODULES): ... here.
4575 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
4576 Moved to ...
4577 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
4578 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
4579 Moved to ...
4580 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
4581 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
4582 Moved to ...
4583 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
4584 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
4585 Moved to ...
4586 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
4587 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
4588 relocator.mod.
4589 (ata_mod_SOURCES): Removed.
4590 (ata_mod_CFLAGS): Likewise.
4591 (ata_mod_LDFLAGS): Likewise.
4592 (relocator_mod_SOURCES): Removed.
4593 (relocator_mod_CFLAGS): Likewise.
4594 (relocator_mod_ASFLAGS): Likewise.
4595 (relocator_mod_LDFLAGS): Likewise.
4596 Include i386.mk.
4597 * include/grub/x86_64/multiboot.h: New file.
4598 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
4599 Terminate EFI.
4600
884ade56
VS
46012010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
4602
4603 Video multiboot support.
4604
4605 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
4606 New prototype.
4607 * include/multiboot.h: Resynced with multiboot specification.
4608 * include/multiboot2.h: Likewise.
4609 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
4610 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
4611 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
4612 (HAS_VGA_TEXT): Likewise.
4613 (accepts_video): New variable.
4614 (grub_multiboot_set_accepts_video): New function.
4615 (grub_multiboot_get_mbi_size): Account for video structures.
4616 (set_video_mode): New function.
4617 (retrieve_video_parameters): Likewise.
4618 (grub_multiboot_make_mbi): Fill video fields.
4619
0d90e8a6
VS
46202010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
4621
4622 Video driver ids.
4623
4624 * include/grub/video.h (grub_video_driver_id): New type.
4625 (grub_video_adapter): New member 'id'. All users updated.
4626 (grub_video_get_driver_id): New proto.
4627 * video/video.c (grub_video_get_driver_id): New function.
4628
5c71db1b 46292010-01-14 Carles Pina i Estany <carles@pina.cat>
4630
4631 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
4632 `var=val'.
4633
cca15b52 46342010-01-14 Carles Pina i Estany <carles@pina.cat>
4635
4636 * normal/cmdline.c (print_completion): Gettextizze.
4637
c586fbb2 46382001-01-14 Carles Pina i Estany <carles@pina.cat>
4639
4640 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
4641
ba2f6848 46422010-01-14 Carles Pina i Estany <carles@pina.cat>
4643
4644 * gettext/gettext.c (grub_gettext_translate): Push and pop
4645 grub_errno.
4646 (grub_gettext_delete_list): Change comment style.
4647 * kern/err.c (grub_error): Gettextizze.
4648 (grub_fatal): Gettextizze.
4649
0a46429a
RM
46502010-01-14 Robert Millan <rmh.grub@aybabtu.com>
4651
4652 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
4653 (grub_linux16_real_boot): ... this.
4654 * kern/i386/loader.S: Likewise.
4655 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
4656 (grub_linux16_boot): New function. Switches to text mode and calls
4657 grub_linux16_real_boot().
4658
4659 * loader/i386/bsd.c: Include `<grub/video.h>'.
4660 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
4661 text mode before calling grub_unix_real_boot().
4662
4663 * loader/i386/multiboot.c: Include `<grub/video.h>'.
4664 (grub_multiboot_boot): Switch to text mode before calling
4665 grub_relocator32_boot().
4666
4667 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
4668 (grub_chainloader_boot): Switch to text mode before calling
4669 grub_chainloader_real_boot().
4670
d6f93a66
RM
46712010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
46722010-01-05 Colin Watson <cjwatson@ubuntu.com>
4673
4674 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
4675 non-empty value.
4676
46772010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
46782010-01-05 Colin Watson <cjwatson@ubuntu.com>
4679
4680 * util/grub.d/00_header.in: Define a "savedefault" function for use
4681 in menu entries.
4682 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
4683
46842010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
46852010-01-05 Colin Watson <cjwatson@ubuntu.com>
4686
4687 * util/grub-mkconfig_lib.in (save_default_entry): Only set
4688 saved_entry if boot_once is unset.
4689 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
4690 previous saved entry (i.e. grub-reboot).
4691
46922009-12-08 Colin Watson <cjwatson@ubuntu.com>
4693
4694 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
4695
46962009-12-08 Colin Watson <cjwatson@ubuntu.com>
4697
4698 * util/grub.d/00_header.in: Use `set var=val' rather than plain
4699 `var=val'.
4700 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
4701
47022009-12-08 Colin Watson <cjwatson@ubuntu.com>
4703
4704 * util/grub-reboot.in: Fix --version output.
4705 * util/grub-set-default.in: Likewise.
4706
47072009-12-08 Colin Watson <cjwatson@ubuntu.com>
4708
4709 * util/grub.d/00_header.in: Silently ignore zero-sized environment
4710 blocks.
4711
47122009-12-08 Colin Watson <cjwatson@ubuntu.com>
4713
4714 * util/grub.d/00_header.in: Quote the value assigned to `default',
4715 in case it contains spaces.
4716
47172009-12-08 Colin Watson <cjwatson@ubuntu.com>
4718
4719 * util/grub.d/30_os-prober.in: Fix merge error that moved a
4720 `save_default_entry' call from the macosx case to the linux case.
4721
47222009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
47232009-10-25 Colin Watson <cjwatson@ubuntu.com>
4724
4725 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
4726 in `chosen' environment variable.
4727 * normal/menu_text.c (get_entry_number): Check if the variable
4728 matches the title of a menu entry.
4729 (run_menu): Pass menu to get_entry_number.
4730
4731 * util/grub-reboot.in: New file.
4732 * util/grub-set-default.in: New file.
4733 * conf/common.rmk (grub-reboot): New utility.
4734 (grub-set-default): New utility.
4735
4736 * util/grub-mkconfig_lib.in (save_default_entry): New function.
4737 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
4738 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
4739 move it to `saved_entry' for the next boot. Load environment on
4740 initialisation.
4741 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
4742 * util/grub.d/10_hurd.in: Likewise.
4743 * util/grub.d/10_linux.in (linux_entry): Likewise.
4744 * util/grub.d/10_windows.in: Likewise.
4745 * util/grub.d/30_os-prober.in: Likewise.
4746
4747 * util/grub-install.in: Create environment block.
4748 * util/i386/efi/grub-install.in: Likewise.
4749 * util/ieee1275/grub-install.in: Likewise.
4750 * util/sparc64/ieee1275/grub-install.in: Likewise.
4751
0934d184
BC
47522010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
4753
4754 Unit testing framework for GRUB.
4755
4756 * Makefile.in: Test framework build rules for 'make check'.
4757 * conf/tests.rmk: Build rules for individual tests and framework.
4758
4759 * include/grub/test.h: Header file for whitebox tests.
4760 * tests/lib/functional_test.c: Framework support for whitebox
4761 functional tests.
4762 * tests/lib/test.c: Common whitebox testing code for unit and
4763 functional tests.
4764 * tests/lib/unit_test.c: Framework support for whitebox unit
4765 tests.
4766
4767 * tests/util/grub-shell-tester.in: Support utility for grub-script
4768 tests.
4769 * tests/util/grub-shell.in: Utility to execute grub-script
4770 commands in a Qemu instance.
4771
4772 * tests/example_functional_test.c: Example whitebox functional
4773 test.
4774 * tests/example_grub_script_test.in: Example grub-script test.
4775 * tests/example_scripted_test.in: Example scripted test.
4776 * tests/example_unit_test.c: Example whitebox unit test.
4777
9c4ffeeb
VS
47782010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
4779
4780 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
4781 Add loader/i386/multiboot_mbi.c.
4782 (multiboot2_mod_SOURCES): Likewise.
4783 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
4784 (multiboot2_mod_SOURCES): Likewise.
4785 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
4786 (grub_multiboot_make_mbi): Likewise.
4787 (grub_multiboot_free_mbi): Likewise.
4788 (grub_multiboot_init_mbi): Likewise.
4789 (grub_multiboot_add_module): Likewise.
4790 (grub_multiboot_set_bootdev): Likewise.
4791 * loader/i386/multiboot.c (mbi): Removed.
4792 (mbi_dest): Likewise.
4793 (alloc_mbi): New variable.
4794 (grub_multiboot_payload_size): Removed. All users updated.
4795 (grub_multiboot_pure_size): New variable.
4796 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
4797 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
4798 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
4799 (grub_fill_multiboot_mmap): Likewise.
4800 (grub_multiboot_get_bootdev): Likewise.
4801 (grub_multiboot): Use multiboot_mbi functions.
4802 * loader/i386/multiboot_mbi.c: New file.
4803
17383dfe
VS
48042010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
4805
4806 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
4807 it would result in module crash.
4808
c1f28820
VS
48092010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
4810
4811 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
4812 (grub_ofconsole_getwh): Split to ...
4813 (grub_ofconsole_getwh): ... this.
4814 (grub_ofconsole_dimensions): ...and this.
4815 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
4816
58655a16
RM
48172010-01-13 Robert Millan <rmh.grub@aybabtu.com>
4818
4819 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
4820
10891398
VS
48212010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
4822
4823 * loader/i386/pc/multiboot2.c: Removed stalled file.
4824
0b8a223c
VS
48252010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
4826
4827 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
4828 Reported by: Grégoire Sutre
4829
92ab12b0
RM
48302010-01-11 Robert Millan <rmh.grub@aybabtu.com>
4831
4832 * util/misc.c (canonicalize_file_name): New function.
4833 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
4834 instead of realpath().
4835
a788afb6
CW
48362010-01-11 Colin Watson <cjwatson@ubuntu.com>
4837
4838 * util/grub-install.in (usage): Clarify meaning of --root-directory,
4839 and make it clearer that it's optional. Based on confusion
4840 witnessed on IRC.
4841
ffa8e3d2
VS
48422010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
4843
4844 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
4845 in premature implicit newline.
4846
e9060a9d
VS
48472010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
4848
4849 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
4850 which resulted in garbled command line at the end of screen.
4851
f0d0c0b7
RM
48522010-01-10 Robert Millan <rmh.grub@aybabtu.com>
4853
4854 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
4855 initialization with similar approach as with other Linux loaders.
4856
0e60bae7
RM
48572010-01-10 Robert Millan <rmh.grub@aybabtu.com>
4858
4859 Fix i386-ieee1275 build.
4860
4861 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
4862 and grub_term_height() for video_{width,height} initialization.
4863
48642010-01-10 Robert Millan <rmh.grub@aybabtu.com>
cdec4d31
RM
4865
4866 Fix grub-emu build.
4867
4868 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
4869
cdb3f378
RM
48702010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
48712010-01-09 Robert Millan <rmh.grub@aybabtu.com>
4872
4873 Support for multiple terminals.
4874
4875 * Makefile.in (pkglib_DATA): terminal.lst.
4876 (terminal.lst): New target.
4877 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
4878 (GRUB_MOD_INIT(handler)): Likewise.
4879 (GRUB_MOD_FINI(handler)): Likewise.
4880 * commands/help.c (grub_cmd_help): Handle multiple terminals.
4881 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
4882 * commands/sleep.c (do_print): Use grub_term_restore_pos.
4883 (grub_cmd_sleep): Use grub_term_save_pos.
4884 * commands/terminal.c: New file.
4885 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
4886 commands/terminal.c and lib/charset.c.
4887 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
4888 (pkglib_MODULES): Add terminal.mod.
4889 (terminal_mod_SOURCES): New variable.
4890 (terminal_mod_CFLAGS): Likewise.
4891 (terminal_mod_LDFLAGS): Likewise.
4892 * genhandlerlist.sh: Don't handle terminals.
4893 * genmk.rb: Generate terminal-*.lst.
4894 * genterminallist.sh: New file.
4895 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
4896 (grub_is_valid_utf8): Likewise.
4897 (grub_utf8_to_ucs4_alloc): Likewise.
4898 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
4899 (grub_menu_register_viewer): Changed argument.
4900 (grub_menu_try_text): New proto.
4901 (grub_gfxmenu_try_hook): New declaration.
4902 * include/grub/normal.h (grub_normal_exit_level): New declaration.
4903 (grub_menu_init_page): Additional argument term.
4904 (grub_normal_init_page): Likewise.
4905 (grub_cmdline_get): Arguments simplified.
4906 (grub_utf8_to_ucs4_alloc): Removed.
4907 (grub_print_ucs4): Additional argument term.
4908 (grub_getstringwidth): Likewise.
4909 (grub_print_message_indented): Likewise.
4910 (grub_menu_text_register_instances): New proto.
4911 (grub_show_menu): Likewise.
4912 (read_terminal_list): Likewise.
4913 (grub_set_more): Likewise.
4914 * include/grub/parser.h: Include handler.h.
4915 * include/grub/reader.h: Rewritten.
4916 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
4917 (GRUB_TERM_WIDTH): Changed to function.
4918 (GRUB_TERM_HEIGHT): Likewise.
4919 (GRUB_TERM_BORDER_WIDTH): Likewise.
4920 (GRUB_TERM_BORDER_HEIGHT): Likewise.
4921 (GRUB_TERM_NUM_ENTRIES): Likewise.
4922 (GRUB_TERM_ENTRY_WIDTH): Likewise.
4923 (GRUB_TERM_CURSOR_X): Likewise.
4924 (grub_term_input_class): Likewise.
4925 (grub_term_output_class): Likewise.
4926 (grub_term_outputs_disabled): New declaration.
4927 (grub_term_inputs_disabled): Likewise.
4928 (grub_term_outputs): Likewise.
4929 (grub_term_inputs): Likewise.
4930 (grub_term_register_input): Rewritten.
4931 (grub_term_register_output): Likewise.
4932 (grub_term_unregister_input): Likewise.
4933 (grub_term_unregister_output): Likewise.
4934 (FOR_ACTIVE_TERM_INPUTS): New macro.
4935 (FOR_DISABLED_TERM_INPUTS): Likewise.
4936 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
4937 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
4938 * include/grub/terminfo.h: Add oterm argument to all protypes.
4939 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
4940 Use grub_rescue_run.
4941 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
4942 All users updated.
4943 * kern/reader.c: Removed. All users updated.
4944 * kern/rescue_reader.c (grub_rescue_init): Removed.
4945 (grub_rescue_reader): Likewise.
4946 (grub_register_rescue_reader): Likewise.
4947 (grub_rescue_run): New function based on kern/reader.c.
4948 * kern/term.c: Adapted for multiterm.
4949 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
4950 (grub_is_valid_utf8): Likewise.
4951 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
4952 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
4953 right terminal.
4954 * loader/i386/linux.c (grub_linux_boot): Likewise.
4955 * normal/auth.c (grub_username_get): New function.
4956 (grub_auth_check_authentication): Use grub_username_get.
4957 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
4958 * normal/color.c: Adapt for multiterm.
4959 * normal/main.c (read_config_file): Don't use grub_reader_loop.
4960 (grub_normal_init_page): Additional argument term.
4961 (read_lists): Call read_terminal_lists.
4962 (grub_enter_normal_mode): Call grub_cmdline_run.
4963 Handle grub_normal_exit_level.
4964 (grub_cmd_normal): Make reentrant.
4965 (grub_cmd_normal_exit): New function.
4966 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
4967 * normal/menu.c: Adapt for multiterm.
4968 * normal/menu_entry.c: Likewise.
4969 * normal/menu_text.c: Likewise.
4970 * normal/menu_viewer.c: Removed. All users updated.
4971 * normal/term.c: New file.
4972 * util/console.c: Change order of includes to workaround a bug in
4973 ncurses headers.
4974 * term/terminfo.c: New argument oterm on all exported functions.
4975 All users updated.
4976 * util/grub-editenv.c (grub_term_input_class): Removed.
4977 (grub_term_output_class): Likewise.
4978
1a064917
RM
49792010-01-09 Robert Millan <rmh.grub@aybabtu.com>
4980
4981 Make loader output a bit more user-friendly.
4982
4983 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
4984 is being loaded. Likewise for the Hurd.
4985
4986 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
4987 that kernel of FreeBSD ${version} is being loaded.
4988
4989 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
4990 grub_dprintf().
4991 (grub_cmd_initrd): Likewise.
4992 * util/grub.d/10_linux.in (linux_entry): Print message indicating
4993 that Linux ${version} is being loaded. Likewise for initrd.
4994
5ce0a83a 49952010-01-09 Carles Pina i Estany <carles@pina.cat>
4996
4997 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
4998
809bbfeb 49992010-01-08 Carles Pina i Estany <carles@pina.cat>
5000
5001 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
5002 (GRUB_MOD_INIT): Gettextizze.
5003 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
5004 (GRUB_MOD_INIT): Gettextizze.
5005 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
5006 (grub_cmd_linux): Capitalise Linux.
5007 (GRUB_MOD_INIT): Gettextizze.
5008 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
5009 (grub_cmd_linux): Capitalise Linux.
5010 (GRUB_MOD_INIT): Gettextizze.
5011 * loader/i386/linux.c: Include `<grub/i18n.h>'.
5012 (grub_cmd_linux): Capitalise Linux.
5013 (GRUB_MOD_INIT): Gettextizze.
5014 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
5015 (GRUB_MOD_INIT): Gettextizze.
5016 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
5017 (grub_cmd_linux): Capitalise Linux.
5018 (GRUB_MOD_INIT): Gettextizze.
5019 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
5020 (grub_cpu_xnu_init): Gettextizze.
5021 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
5022 (GRUB_MOD_INIT): Gettextizze.
5023 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
5024 (GRUB_MOD_INIT): Gettextizze.
5025 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
5026 (grub_linux_load64): Capitalise Linux.
5027 (GRUB_MOD_INIT): Gettextizze.
5028 * loader/xnu.c: Include `<grub/i18n.h>'.
5029 (GRUB_MOD_INIT): Gettextizze.
5030 * po/POTFILES: Add `loader/efi/appleloader.c',
5031 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
5032 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
5033 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
5034 `loader/i386/xnu.c', `loader/multiboot_loader.c',
5035 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
5036 and `loader/xnu.c'.
5037
b394b2ca
RM
50382010-01-08 Robert Millan <rmh.grub@aybabtu.com>
5039
5040 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
5041
50422010-01-08 Robert Millan <rmh.grub@aybabtu.com>
cd943b75
RM
5043
5044 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
5045 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
5046 * util/mkisofs/mkisofs.c (main): Readjust --version output.
5047
bc8b32b3
RM
50482010-01-07 Robert Millan <rmh.grub@aybabtu.com>
5049
5050 Reset Multiboot 2 support. New loader implements the draft in
5051 /branches/multiboot2 and shares as much code as possible with the
5052 production Multiboot 1 implementation.
5053
5054 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
5055 * loader/multiboot2.c: Likewise.
5056 * loader/i386/multiboot_helper.S: Likewise.
5057 * include/multiboot2.h: Replace with latest version from the draft
5058 in /branches/multiboot2.
5059
5060 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
5061 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
5062 and `loader/multiboot2.c'.
5063 (pkglib_MODULES): Add `multiboot2.mod'.
5064 (multiboot2_mod_SOURCES): New variable.
5065 (multiboot2_mod_LDFLAGS): Likewise.
5066 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
5067
5068 * conf/i386-pc.rmk: Likewise.
5069
5070 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
5071 (multiboot_mod_SOURCES): Remove variable.
5072 (multiboot_mod_LDFLAGS): Likewise.
5073 (multiboot_mod_CFLAGS): Likewise.
5074
5075 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
5076 `<multiboot2.h>' instead of `<multiboot.h>'.
5077 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
5078 (MULTIBOOT_HEADER_MAGIC): New macros.
5079
5080 * loader/multiboot_loader.c (module_version_status): Remove variable.
5081 (find_multi_boot2_header): Remove function.
5082 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
5083 logic. Always check for the Multiboot version we're compiling for.
5084 (grub_cmd_module_loader): Likewise.
5085 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
5086 command instead of `multiboot'.
5087
5d2c52b8
RM
50882010-01-07 Robert Millan <rmh.grub@aybabtu.com>
5089
5090 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
5091 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
5092 all users.
5093
53108d92
RM
50942010-01-07 Robert Millan <rmh.grub@aybabtu.com>
50952010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
5096
5097 Fix breakage introduced with previous commit.
5098
5099 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
5100 commands.
5101 * normal/handler.c (read_handler_list): Revert part of previous commit
5102 affecting this file.
5103 * normal/main.c (read_lists): Move read_handler_list() call back to ...
5104 (grub_normal_execute): ... here.
5105
e2e936b2
RM
51062010-01-07 Robert Millan <rmh.grub@aybabtu.com>
5107
5108 Merge prefix-redefinition-fix branch.
5109
5110 * normal/autofs.c (read_fs_list): Make function capable of being
5111 run multiple times, gracefuly replacing the previous data
5112 structures.
5113 * normal/dyncmd.c (read_command_list): Likewise.
5114 * normal/handler.c (read_handler_list): Likewise.
5115 * normal/main.c (read_lists): New function. Calls all the
5116 list reading functions.
5117 (grub_normal_execute): Use read_lists() instead of calling all
5118 list reading functions explicitly. Register read_lists() as a
5119 variable hook attached to ${prefix}.
5120
607a3701
VS
51212010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
5122
5123 Merge crypto branch.
5124
5125 * Makefile.in (pkglib_DATA): Add crypto.lst.
5126 (crypto.lst): New target.
5127 * commands/hashsum.c: New file.
5128 * commands/password.c (check_password): Use grub_crypto_memcmp.
5129 * commands/password_pbkdf2.c: New file.
5130 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
5131 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
5132 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
5133 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
5134 -I$(srcdir)/lib/libgcrypt_wrap.
5135 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
5136 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
5137 password_pbkdf2.mod.
5138 (crypto_mod_SOURCES): New variable.
5139 (crypto_mod_CFLAGS): Likewise.
5140 (crypto_mod_LDFLAGS): Likewise.
5141 (hashsum_mod_SOURCES): New variable.
5142 (hashsum_mod_CFLAGS): Likewise.
5143 (hashsum_mod_LDFLAGS): Likewise.
5144 (pbkdf2_mod_SOURCES): New variable.
5145 (pbkdf2_mod_CFLAGS): Likewise.
5146 (pbkdf2_mod_LDFLAGS): Likewise.
5147 (password_pbkdf2_mod_SOURCES): New variable.
5148 (password_pbkdf2_mod_CFLAGS): Likewise.
5149 (password_pbkdf2_mod_LDFLAGS): Likewise.
5150 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
5151 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
5152 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
5153 Include conf/gcry.rmk.
5154 * include/grub/auth.h: Rewritten.
5155 * include/grub/crypto.h: New file.
5156 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
5157 * include/grub/normal.h (read_crypto_list): New prototype.
5158 * lib/crypto.c: New file.
5159 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
5160 * lib/pbkdf2.c: Likewise.
5161 * normal/auth.c (grub_auth_strcmp): Removed.
5162 (grub_iswordseparator): Likewise.
5163 (grub_auth_strword): Likewise.
5164 (is_authenticated): Use grub_strword.
5165 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
5166 and grub_strword. Pass entered password to authentication callback.
5167 * normal/crypto.c: New file.
5168 * normal/main.c: Call read_crypto_list.
5169 * util/grub-mkpasswd-pbkdf2.c: New file.
5170 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
5171
42841caa
VS
51722010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
5173
5174 Fix descent and ascent calculation.
5175
5176 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
5177 (options): New option "asce".
5178 (usage): Likewise.
5179 (add_char): Ignore invalid glyphs for descent calculation.
5180 Calculate ascent from actual content.
5181 (print_glyphs): Use 'asce'.
5182 (write_font): Likewise. Allow ascent override.
5183 (main): Handle "asce" option.
5184
e7730de7 51852010-01-06 Carles Pina i Estany <carles@pina.cat>
5186
5187 * kern/err.c: Include `<grub/i18n.h>'.
5188 (grub_print_error): Add full stop. Gettextizze.
5189 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
5190 (grub_bsd_load_elf): Capitalise ELF.
5191 (grub_cmd_freebsd_loadenv): Add `s' in error string.
5192 (grub_cmd_freebsd_module): Likewise.
5193 (grub_cmd_freebsd_module_elf): Likewise.
5194 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
5195
40e3a41f 51962010-01-06 Carles Pina i Estany <carles@pina.cat>
5197
5198 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
5199 * commands/search_file.c (HELP_MESSAGE): New macro.
5200 * commands/search_label.c (HELP_MESSAGE): Likewise.
5201 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
5202 * po/POTFILES: Add `commands/search_file.c',
5203 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
5204 `commands/search.c'.
5205
83507e68
RM
52062010-01-05 Robert Millan <rmh.grub@aybabtu.com>
5207
5208 * config.rpath: Update from Gnulib.
5209
465c787b
YB
52102010-01-05 Yves Blusseau <blusseau@zetam.org>
5211
5212 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
5213
6581dd3a
YB
52142010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
5215
5216 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
5217
3bff18c5
CW
52182010-01-05 Colin Watson <cjwatson@ubuntu.com>
5219
5220 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
5221 arguments to fread so that we get a return value in bytes, rather
5222 than something that will normally be rounded down to 0.
5223 Adjust error handling to avoid producing garbage when size_t is not
5224 the same size as long long.
5225
a1368118
CW
52262010-01-05 Colin Watson <cjwatson@ubuntu.com>
5227
5228 * util/mkisofs/write.c (padblock_write): Check return value of
5229 fread.
5230
7c302978
RM
52312010-01-05 Robert Millan <rmh.grub@aybabtu.com>
5232
5233 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
5234 floppy images now.
5235
5236 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
5237
e33ace06
RM
52382010-01-04 Robert Millan <rmh.grub@aybabtu.com>
5239
5240 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
5241 instead of manual alignment.
5242 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
5243 verbose). Avoid attempts to read past end of the device
5244 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
5245 but GRUB_DISK_CACHE_SIZE may exceed that).
5246
4b856776
RM
52472010-01-04 Robert Millan <rmh.grub@aybabtu.com>
5248
5249 * commands/crc.c (grub_cmd_crc): Abort on read errors.
5250 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
5251 it to upper layer.
5252
52c2d97f
VS
52532010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
5254
5255 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
5256 New constant.
5257 (grub_efi_piwg_device_path): New structure
5258 (grub_efi_piwg_device_path_t): New type.
5259 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
5260 (devpath_1): Transform to a structure. All users updated.
5261 (devpath_2): Likewise.
5262 (devpath_3): Likewise.
5263 (devpath_4): Likewise.
5264 (devpath_5): Likewise.
5265
98ff6a54
VS
52662010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
5267
5268 * loader/efi/appleloader.c: Restored. Update all users.
5269
3a73dcb6
RM
52702010-01-03 Robert Millan <rmh.grub@aybabtu.com>
5271
5272 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
5273
5274 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
5275 (struct boot_blocklist): Move from here ...
5276 * include/grub/i386/pc/boot.h [ASM_FILE]
5277 (struct grub_boot_blocklist): ... to here. Update all users.
5278 (setup): Only initialize `start' member of `first_block'
5279 structure. Add assert() calls to verify the other members.
5280
5281 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
5282 (generate_image): Fix broken blocklist length initialization.
5283 Add assert() call to verify blocklist `segment' field.
5284
ab0eeb0c
RM
52852010-01-03 Robert Millan <rmh.grub@aybabtu.com>
5286
5287 * loader/efi/appleloader.c: Remove. Update all users.
5288
58bc8bd5
RM
52892010-01-03 Robert Millan <rmh.grub@aybabtu.com>
5290
5291 * boot/i386/pc/boot.S: Update copyright year.
5292 * boot/i386/pc/cdboot.S: Likewise.
5293 * boot/i386/pc/diskboot.S: Likewise.
5294 * boot/i386/pc/lnxboot.S: Likewise.
5295 * boot/i386/pc/pxeboot.S: Likewise.
5296 * bus/pci.c: Likewise.
5297 * commands/cmp.c: Likewise.
5298 * commands/help.c: Likewise.
5299 * commands/hexdump.c: Likewise.
5300 * commands/i386/pc/halt.c: Likewise.
5301 * commands/i386/pc/play.c: Likewise.
5302 * commands/i386/pc/vbeinfo.c: Likewise.
5303 * commands/ls.c: Likewise.
5304 * commands/test.c: Likewise.
5305 * disk/dmraid_nvidia.c: Likewise.
5306 * disk/i386/pc/biosdisk.c: Likewise.
5307 * disk/ieee1275/nand.c: Likewise.
5308 * disk/ieee1275/ofdisk.c: Likewise.
5309 * disk/lvm.c: Likewise.
5310 * disk/raid.c: Likewise.
5311 * disk/raid6_recover.c: Likewise.
5312 * disk/scsi.c: Likewise.
5313 * fs/affs.c: Likewise.
5314 * fs/cpio.c: Likewise.
5315 * fs/ext2.c: Likewise.
5316 * fs/hfs.c: Likewise.
5317 * fs/iso9660.c: Likewise.
5318 * fs/ntfs.c: Likewise.
5319 * fs/sfs.c: Likewise.
5320 * fs/udf.c: Likewise.
5321 * fs/ufs.c: Likewise.
5322 * fs/xfs.c: Likewise.
5323 * gencmdlist.sh: Likewise.
5324 * genmk.rb: Likewise.
5325 * include/grub/disk.h: Likewise.
5326 * include/grub/efi/api.h: Likewise.
5327 * include/grub/efi/efi.h: Likewise.
5328 * include/grub/efi/pe32.h: Likewise.
5329 * include/grub/elf.h: Likewise.
5330 * include/grub/fs.h: Likewise.
5331 * include/grub/i386/at_keyboard.h: Likewise.
5332 * include/grub/i386/pc/memory.h: Likewise.
5333 * include/grub/i386/pc/vbe.h: Likewise.
5334 * include/grub/i386/pci.h: Likewise.
5335 * include/grub/i386/tsc.h: Likewise.
5336 * include/grub/ieee1275/ieee1275.h: Likewise.
5337 * include/grub/ntfs.h: Likewise.
5338 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
5339 * include/grub/sparc64/libgcc.h: Likewise.
5340 * include/grub/symbol.h: Likewise.
5341 * include/grub/types.h: Likewise.
5342 * include/multiboot2.h: Likewise.
5343 * io/gzio.c: Likewise.
5344 * kern/device.c: Likewise.
5345 * kern/disk.c: Likewise.
5346 * kern/efi/efi.c: Likewise.
5347 * kern/efi/mm.c: Likewise.
5348 * kern/elf.c: Likewise.
5349 * kern/file.c: Likewise.
5350 * kern/i386/dl.c: Likewise.
5351 * kern/i386/pc/init.c: Likewise.
5352 * kern/i386/pc/startup.S: Likewise.
5353 * kern/ieee1275/ieee1275.c: Likewise.
5354 * kern/ieee1275/init.c: Likewise.
5355 * kern/main.c: Likewise.
5356 * kern/mm.c: Likewise.
5357 * kern/powerpc/dl.c: Likewise.
5358 * kern/sparc64/dl.c: Likewise.
5359 * kern/x86_64/dl.c: Likewise.
5360 * lib/hexdump.c: Likewise.
5361 * loader/efi/appleloader.c: Likewise.
5362 * loader/i386/ieee1275/linux.c: Likewise.
5363 * loader/i386/pc/chainloader.c: Likewise.
5364 * loader/i386/pc/linux.c: Likewise.
5365 * loader/i386/pc/multiboot2.c: Likewise.
5366 * loader/ieee1275/multiboot2.c: Likewise.
5367 * loader/multiboot2.c: Likewise.
5368 * loader/multiboot_loader.c: Likewise.
5369 * loader/powerpc/ieee1275/linux.c: Likewise.
5370 * normal/completion.c: Likewise.
5371 * normal/menu_entry.c: Likewise.
5372 * partmap/apple.c: Likewise.
5373 * util/grub.d/10_hurd.in: Likewise.
5374 * util/hostfs.c: Likewise.
5375 * video/readers/png.c: Likewise.
5376
e2d70b5c
CW
53772010-01-03 Colin Watson <cjwatson@ubuntu.com>
5378
5379 * include/grub/misc.h (GNUC_PREREQ): New macro.
5380 (ATTRIBUTE_ERROR): New macro.
5381 * include/grub/list.h (grub_bad_type_cast_real): Use
5382 ATTRIBUTE_ERROR.
5383
a173283f 53842010-01-03 Carles Pina i Estany <carles@pina.cat>
5385
5386 * normal/menu_text.c (print_message): Change messages.
5387
7fa7ff74 53882010-01-03 Carles Pina i Estany <carles@pina.cat>
5389
5390 * normal/menu_entry.c (store_completion): Gettextizze.
5391
136d24f6 53922010-01-03 Carles Pina i Estany <carles@pina.cat>
5393
5394 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
5395
f936862e 53962010-01-03 Carles Pina i Estany <carles@pina.cat>
5397
5398 * po/POTFILES: Sort correctly.
5399
29c44ad1 54002010-01-03 Carles Pina i Estany <carles@pina.cat>
5401
5402 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
5403 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
5404 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
5405 full stop.
5406 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
5407 summary. Gettextizze the strings.
5408 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
5409 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
5410 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
5411 full stop.
5412 (GRUB_MOD_INIT): Remove command name from summary.
5413 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
5414 summary.
5415 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
5416 * term/i386/pc/serial.c (options): Add full stops.
5417 (GRUB_MOD_INIT): Remove command name from the summary.
5418
77a79592 54192010-01-03 Carles Pina i Estany <carles@pina.cat>
5420
5421 * commands/acpi.c: Gettextizze help strings and/or options. Include
5422 `grub/i18n.h' if needed.
5423 * commands/blocklist.c: Likewise.
5424 * commands/boot.c: Likewise.
5425 * commands/cat.c: Likewise.
5426 * commands/cmp.c: Likewise.
5427 * commands/configfile.c: Likewise.
5428 * commands/crc.c: Likewise.
5429 * commands/date.c: Likewise.
5430 * commands/echo.c: Likewise.
5431 * commands/efi/fixvideo.c: Likewise.
5432 * commands/efi/loadbios.c: Likewise.
5433 * commands/gptsync.c: Likewise.
5434 * commands/halt.c: Likewise.
5435 * commands/handler.c: Likewise.
5436 * commands/hdparm.c: Likewise.
5437 * commands/hexdump.c: Likewise.
5438 * commands/i386/cpuid.c: Likewise.
5439 * commands/i386/pc/drivemap.c: Likewise.
5440 * commands/i386/pc/halt.c: Likewise.
5441 * commands/i386/pc/pxecmd.c: Likewise.
5442 * commands/i386/pc/vbeinfo.c: Likewise.
5443 * commands/i386/pc/vbetest.c: Likewise.
5444 * commands/ieee1275/suspend.c: Likewise.
5445 * commands/keystatus.c: Likewise.
5446 * commands/loadenv.c: Likewise.
5447 * commands/ls.c: Likewise.
5448 * commands/lsmmap.c: Likewise.
5449 * commands/lspci.c: Likewise.
5450 * commands/memrw.c: Likewise.
5451 * commands/minicmd.c: Likewise.
5452 * commands/parttool.c: Likewise.
5453 * commands/password.c: Likewise.
5454 * commands/probe.c: Likewise.
5455 * commands/read.c: Likewise.
5456 * commands/reboot.c: Likewise.
5457 * commands/search.c: Likewise.
5458 * commands/sleep.c: Likewise.
5459 * commands/test.c: Likewise.
5460 * commands/true.c: Likewise.
5461 * commands/usbtest.c: Likewise.
5462 * commands/videotest.c: Likewise.
5463 * commands/xnu_uuid.c: Likewise.
5464 * disk/loopback.c: Likewise.
5465 * hello/hello.c: Likewise.
5466 * loader/i386/bsd.c: Likewise.
5467 * term/i386/pc/serial.c: Likewise.
5468 * po/POTFILES: Add new files.
5469
da8d5c53
CW
54702010-01-02 Colin Watson <cjwatson@ubuntu.com>
5471
5472 * term/i386/pc/at_keyboard.c
5473 (keyboard_controller_wait_untill_ready): Rename to ...
5474 (keyboard_controller_wait_until_ready): ... this. Update all users.
5475
33937904 54762010-01-01 Carles Pina i Estany <carles@pina.cat>
5477
5478 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
5479 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
5480 string using string width.
5481 * normal/menu_text.c (grub_print_message_indented): Use
5482 grub_print_spaces and not print_spaces.
5483 (print_timeout): Likewise.
5484 (print_spaces): Move to...
5485 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
5486
3fd3b8d8
RM
54872010-01-01 Robert Millan <rmh.grub@aybabtu.com>
5488
5489 Import from Gnulib.
5490
5491 * gnulib/getdelim.c: New file.
5492 * gnulib/getline.c: Likewise.
5493
33433555
VS
54942009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
5495
5496 * include/grub/list.h (grub_assert_fail): Removed.
5497 (grub_bad_type_cast_real): New function.
5498 (grub_bad_type_cast): New macro.
5499 (GRUB_AS_LIST): Use grub_bad_type_cast.
5500 (GRUB_AS_LIST_P): Likewise.
e44721e8 5501 (GRUB_AS_NAMED_LIST): Likewise.
33433555 5502 (GRUB_AS_NAMED_LIST_P): Likewise.
e44721e8 5503 (GRUB_AS_PRIO_LIST): Likewise.
33433555 5504 (GRUB_AS_PRIO_LIST_P): Likewise.
e44721e8 5505 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
33433555 5506
f5a51306
VS
55072009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
5508
5509 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
5510 Fix syntax error.
5511
90d1e879
RM
55122009-12-29 Robert Millan <rmh.grub@aybabtu.com>
5513
5514 * configure.ac: Check for TARGET_CFLAGS initialization before we
5515 initialize it ourselves (sigh).
5516 Move a few modifications to TARGET_CFLAGS to be unconditional
5517 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
5518 eh_frame)
5519
5520 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
5521 * term/i386/pc/at_keyboard.c
5522 (keyboard_controller_wait_untill_ready): Likewise.
5523 (keyboard_controller_led): Rename `led_status' paramter to avoid
5524 name conflict.
5525
465b5a81 55262009-12-28 Carles Pina i Estany <carles@pina.cat>
5527
5528 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
5529 quotes.
5530
c181849b
VS
55312009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
5532
5533 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
5534
9c8739a4
VS
55352009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
5536
5537 * normal/menu_text.c (grub_print_message_indented): Prevent
5538 past-the-end-of-array dereference.
5539
3e74249c
VS
55402009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
5541
5542 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
5543 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
5544
64fd18ed 55452009-12-27 Carles Pina i Estany <carles@pina.cat>
5546
5547 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
5548 * normal/main.c (grub_normal_read_line): Remove a space from the
5549 default prompt.
5550
714af9b9 55512009-12-27 Carles Pina i Estany <carles@pina.cat>
5552
5553 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
5554 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
5555 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
5556 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
5557 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
5558 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
5559 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
5560
82f3e412 55612009-12-26 Carles Pina i Estany <carles@pina.cat>
c541b01a 5562
5563 * video/readers/jpeg.c (cmd): Declare.
5564 (grub_cmd_jpegtest): Use `grub_command_t' type.
5565 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
5566 Assign to `cmd'.
5567 (GRUB_MOD_FINI): Use `cmd' to unregister.
5568 * video/readers/png.c (cmd): Declare.
5569 (grub_cmd_pngtest): Use `grub_command_t' type.
5570 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
5571 Assign to `cmd'.
5572 (GRUB_MOD_FINI): Use `cmd' to unregister.
5573 * video/readers/tga.c (cmd): Declare.
5574 (grub_cmd_tgatest): Use `grub_command_t' type.
5575 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
5576 Assign to `cmd'.
5577 (GRUB_MOD_FINI): Use `cmd' to unregister.
5578
82f3e412 55792009-12-26 Carles Pina i Estany <carles@pina.cat>
864ba2bb 5580
5581 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
5582 stops.
5583 * kern/corecmd.c (grub_register_core_commands): Likewise.
5584 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
5585 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
5586 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
5587 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
5588 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
5589 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
5590 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
5591 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
5592 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
5593 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
5594 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
5595 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
5596 * normal/handler.c (insert_handler): Likewise.
5597 * normal/main.c (GRUB_MOD_INIT): Likewise.
5598 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
5599
fdcdbb66 56002009-12-26 Carles Pina i Estany <carles@pina.cat>
5601
5602 * commands/help.c (grub_cmd_help): Print the command name before the
5603 summary.
5604 (GRUB_MOD_INIT): Remove command name from the summary.
5605 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
82f3e412 5606 string as summary.
fdcdbb66 5607 * lib/arg.c (find_long): Print the command name before the summary.
5608 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
5609 summary.
5610 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
5611 * commands/cat.c (GRUB_MOD_INIT): Likewise.
5612 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
5613 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
5614 * commands/crc.c (GRUB_MOD_INIT): Likewise.
5615 * commands/date.c (GRUB_MOD_INIT): Likewise.
5616 * commands/echo.c (GRUB_MOD_INIT): Likewise.
5617 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
5618 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
5619 * commands/handler.c (GRUB_MOD_INIT): Likewise.
5620 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
5621 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
5622 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
5623 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
5624 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
5625 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
5626 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
5627 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
5628 * commands/ls.c (GRUB_MOD_INIT): Likewise.
5629 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
5630 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
5631 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
5632 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
5633 * commands/password.c (GRUB_MOD_INIT): Likewise.
5634 * commands/probe.c (GRUB_MOD_INIT): Likewise.
5635 * commands/read.c (GRUB_MOD_INIT): Likewise.
5636 * commands/search.c (GRUB_MOD_INIT): Likewise.
5637 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
5638 * commands/test.c (GRUB_MOD_INIT): Likewise.
5639 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
5640 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
5641 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
5642 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
5643 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
5644 * lib/arg.c (GRUB_MOD_INIT): Likewise.
5645 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
5646 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
5647 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
5648 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
5649 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
5650 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
5651 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
5652 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
5653
9c288be2
VS
56542009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
5655
5656 Use search command for preliminar UUID search.
5657
5658 * commands/search.c: Split into ...
5659 * commands/search_wrap.c: ...this
5660 * commands/search.c: ...and this.
5661 * commands/search_file.c: New file.
5662 * commands/search_label.c: New file.
5663 * commands/search_uuid.c: New file.
5664 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
5665 Add commands/search_wrap.c, commands/search_file.c,
5666 commands/search_label.c and commands/search_uuid.c.
5667 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
5668 (search_mod_SOURCES): Set to commands/search_wrap.c.
5669 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
5670 search_label.mod.
5671 (search_fs_file_mod_SOURCES): New variable.
5672 (search_fs_file_mod_CFLAGS): Likewise.
5673 (search_fs_file_mod_LDFLAGS): Likewise.
5674 (search_label_mod_SOURCES): Likewise.
5675 (search_label_mod_CFLAGS): Likewise.
5676 (search_label_mod_LDFLAGS): Likewise.
5677 (search_fs_uuid_mod_SOURCES): New variable.
5678 (search_fs_uuid_mod_CFLAGS): Likewise.
5679 (search_fs_uuid_mod_LDFLAGS): Likewise.
5680 (fs_file_mod_SOURCES): Removed.
5681 (fs_file_mod_CFLAGS): Likewise.
5682 (fs_file_mod_LDFLAGS): Likewise.
5683 (fs_uuid_mod_SOURCES): Removed.
5684 (fs_uuid_mod_CFLAGS): Likewise.
5685 (fs_uuid_mod_LDFLAGS): Likewise.
5686 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
5687 Set to util/grub-install.in.
5688 * disk/fs_file.c: Removed.
5689 * disk/fs_uuid.c: Likewise.
5690 * include/grub/search.h: New file.
5691 * util/grub-install.in: Handle sparc64.
5692 Create and use load.cfg.
5693 * util/sparc64/ieee1275/grub-install.in: Removed.
5694
db943399
VS
56952009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
5696
5697 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
5698 Ignore return status if CF is cleared.
5699 (grub_biosdisk_get_diskinfo_standard): Likewise.
5700
3fdae612
RM
57012009-12-25 Robert Millan <rmh.grub@aybabtu.com>
5702
5703 * term/i386/pc/at_keyboard.c
5704 (keyboard_controller_wait_untill_ready): New function.
5705 (grub_keyboard_controller_write, grub_keyboard_controller_read)
5706 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
5707 for keyboard polling, rather than duplicate the same loop. This
5708 saves a few bytes in code size.
5709
7ebaa2b4
VS
57102009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
5711
5712 Support for (pxe[:server[:gateway]]) syntax and
5713 use environment variable for PXE.
5714
5715 * commands/i386/pc/pxecmd.c (options): Removed.
5716 (print_ip): Removed.
5717 (grub_cmd_pxe): Removed
5718 (grub_cmd_pxe_unload): New function.
5719 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
5720 (grub_pxe_your_ip): Made static.
5721 (grub_pxe_default_server_ip): Likewise.
5722 (grub_pxe_default_gateway_ip): Likewise.
5723 (grub_pxe_blksize): Likewise.
5724 (parse_ip): New function.
5725 (grub_pxe_open): Support server and gateway specification.
5726 (grub_pxe_close): Free disk->data.
5727 (grub_pxefs_open): Use disk->data.
5728 (grub_pxefs_read): Likewise.
5729 (grub_env_write_readonly): New function.
5730 (set_mac_env): Likewise.
5731 (set_env_limn_ro): Likewise.
5732 (parse_dhcp_vendor): Likewise.
5733 (grub_pxe_detect): Set the environment variables.
5734 (set_ip_env): New function.
5735 (write_ip_env): Likewise.
5736 (grub_env_write_pxe_default_server): Likewise.
5737 (grub_env_write_pxe_default_gateway): Likewise.
5738 (grub_env_write_pxe_blocksize): Likewise.
5739 (GRUB_MOD_INIT(pxe)): Set environment variables.
5740 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
5741 (grub_pxe_mac_addr_t): ... this. All users updated.
5742 (grub_pxe_your_ip): Removed.
5743 (grub_pxe_server_ip): Likewise.
5744 (grub_pxe_gateway_ip): Likewise.
5745 (grub_pxe_blksize): Likewise.
5746
ec5f98ab 57472009-12-25 Carles Pina i Estany <carles@pina.cat>
5748
5749 * commands/help.c: Include `<grub/i18n.h>'.
5750 (grub_cmd_help): Gettextizze.
5751 (GRUB_MOD_INIT): Likewise.
5752 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
5753 (GRUB_MOD_INIT): Gettextizze.
5754 * commands/search.c: Include `<grub/i18n.h>'.
5755 (options): Gettextizze.
5756 (GRUB_MOD_INIT): Gettextizze.
5757 * lib/arg.c: Include `<grub/i18n.h>'.
5758 (help_options): Gettextizze.
5759 (find_long): Likewise.
5760 (grub_arg_show_help): Likewise.
5761 * normal/dyncmd.c: Include `<grub/i18n.h>'.
5762 (read_command_list): Gettextizze.
5763 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
7ebaa2b4 5764 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
ec5f98ab 5765
22815526
RM
57662009-12-25 Robert Millan <rmh.grub@aybabtu.com>
5767
5768 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
5769 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
5770 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
5771 (led_status): New variable.
5772 (keyboard_controller_led): New function.
5773 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
5774 update led status for caps lock, num lock and scroll lock.
5775
0ad46fd7
FZ
57762009-12-25 Felix Zielcke <fzielcke@z-51.de>
5777
5778 * util/hostdisk.c (open_device): Fix a comment.
5779
d0e158c2
RM
57802009-12-24 Robert Millan <rmh.grub@aybabtu.com>
5781
5782 * util/grub-install.in (host_os): New variable.
5783 * util/i386/efi/grub-install.in (host_os): Likewise.
5784
401c0ad6
RM
57852009-12-24 Robert Millan <rmh.grub@aybabtu.com>
5786
5787 * util/mkisofs/write.c (padblock_write): Abort when given an
5788 excedingly large embed image, instead of silently truncating it.
5789
d14d3370
RM
57902009-12-24 Robert Millan <rmh.grub@aybabtu.com>
5791
5792 * include/multiboot.h: Indentation fixes.
5793
eeed10b4
RM
57942009-12-24 Robert Millan <rmh.grub@aybabtu.com>
5795
5796 * include/multiboot.h (struct multiboot_aout_symbol_table)
5797 (struct multiboot_elf_section_header_table): New structure
5798 declarations (stolen from GRUB Legacy).
5799 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
5800 table information.
5801
5802 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
5803 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
5804 type aliases.
5805
681c70ab
RM
58062009-12-24 Robert Millan <rmh.grub@aybabtu.com>
5807
5808 * include/multiboot.h: Make comments src2texi-friendly.
5809
e4d47d8d
RM
58102009-12-24 Robert Millan <rmh.grub@aybabtu.com>
5811
5812 For consistency with [multiboot]/docs/boot.S.
5813
5814 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
5815 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
5816 (MULTIBOOT_MAGIC2): Rename from this ...
5817 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
5818
a0b70bda
RM
58192009-12-24 Robert Millan <rmh.grub@aybabtu.com>
5820
5821 * include/multiboot.h: Remove `<grub/types.h>'.
5822 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
5823 types. Update all users.
5824
61ba42be 58252009-12-25 Carles Pina i Estany <carles@pina.cat>
5826
5827 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
5828 `couldn't' and `can not' by `cannot'.
5829 * commands/i386/pc/drivemap.c: Likewise.
5830 * disk/ata.c: Likewise.
5831 * disk/ieee1275/nand.c: Likewise.
5832 * fs/affs.c: Likewise.
5833 * fs/fat.c: Likewise.
5834 * fs/hfs.c: Likewise.
5835 * fs/hfsplus.c: Likewise.
5836 * fs/iso9660.c: Likewise.
5837 * fs/jfs.c: Likewise.
5838 * fs/minix.c: Likewise.
5839 * fs/reiserfs.c: Likewise.
5840 * fs/sfs.c: Likewise.
5841 * fs/udf.c: Likewise.
5842 * fs/ufs.c: Likewise.
5843 * fs/xfs.c: Likewise.
5844 * loader/powerpc/ieee1275/linux.c: Likewise.
5845 * loader/sparc64/ieee1275/linux.c: Likewise.
5846 * util/grub-probe.c: Likewise.
5847 * util/misc.c: Likewise.
5848
7fd0baee 58492009-12-24 Carles Pina i Estany <carles@pina.cat>
5850
5851 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
5852 grub_errno calls.
5853 * commands/acpi.c: Likewise.
5854 * commands/blocklist.c: Likewise.
5855 * commands/efi/loadbios.c: Likewise.
5856 * commands/i386/pc/drivemap.c: Likewise.
5857 * commands/loadenv.c: Likewise.
5858 * commands/memrw.c: Likewise.
5859 * commands/password.c: Likewise.
5860 * commands/videotest.c: Likewise.
5861 * disk/ata.c: Likewise.
5862 * disk/ata_pthru.c: Likewise.
5863 * disk/dmraid_nvidia.c: Likewise.
5864 * disk/ieee1275/nand.c: Likewise.
5865 * disk/ieee1275/ofdisk.c: Likewise.
5866 * disk/loopback.c: Likewise.
5867 * disk/lvm.c: Likewise.
5868 * disk/mdraid_linux.c: Likewise.
5869 * disk/raid.c: Likewise.
5870 * disk/raid6_recover.c: Likewise.
5871 * disk/scsi.c: Likewise.
5872 * efiemu/main.c: Likewise.
5873 * efiemu/mm.c: Likewise.
5874 * efiemu/pnvram.c: Likewise.
5875 * efiemu/symbols.c: Likewise.
5876 * font/font.c: Likewise.
5877 * fs/cpio.c: Likewise.
5878 * fs/hfsplus.c: Likewise.
5879 * fs/iso9660.c: Likewise.
5880 * fs/jfs.c: Likewise.
5881 * fs/minix.c: Likewise.
5882 * fs/ntfs.c: Likewise.
5883 * fs/ntfscomp.c: Likewise.
5884 * fs/reiserfs.c: Likewise.
5885 * fs/ufs.c: Likewise.
5886 * fs/xfs.c: Likewise.
5887 * gettext/gettext.c: Likewise.
5888 * include/grub/auth.h: Likewise.
5889 * kern/elf.c: Likewise.
5890 * kern/file.c: Likewise.
5891 * kern/ieee1275/init.c: Likewise.
5892 * kern/ieee1275/mmap.c: Likewise.
5893 * kern/ieee1275/openfw.c: Likewise.
5894 * kern/powerpc/dl.c: Likewise.
5895 * kern/sparc64/dl.c: Likewise.
5896 * lib/arg.c: Likewise.
5897 * loader/i386/bsd.c: Likewise.
5898 * loader/i386/bsdXX.c: Likewise.
5899 * loader/i386/efi/linux.c: Likewise.
5900 * loader/i386/efi/xnu.c: Likewise.
5901 * loader/i386/ieee1275/linux.c: Likewise.
5902 * loader/i386/linux.c: Likewise.
5903 * loader/i386/multiboot.c: Likewise.
5904 * loader/i386/pc/linux.c: Likewise.
5905 * loader/i386/pc/multiboot2.c: Likewise.
5906 * loader/i386/xnu.c: Likewise.
5907 * loader/ieee1275/multiboot2.c: Likewise.
5908 * loader/macho.c: Likewise.
5909 * loader/machoXX.c: Likewise.
5910 * loader/multiboot2.c: Likewise.
5911 * loader/multiboot_loader.c: Likewise.
5912 * loader/powerpc/ieee1275/linux.c: Likewise.
5913 * loader/sparc64/ieee1275/linux.c: Likewise.
5914 * loader/xnu.c: Likewise.
5915 * loader/xnu_resume.c: Likewise.
5916 * mmap/i386/pc/mmap.c: Likewise.
5917 * normal/menu_viewer.c: Likewise.
5918 * partmap/acorn.c: Likewise.
5919 * partmap/amiga.c: Likewise.
5920 * partmap/apple.c: Likewise.
5921 * script/lexer.c: Likewise.
5922 * term/gfxterm.c: Likewise.
5923 * term/i386/pc/serial.c: Likewise.
5924 * term/i386/pc/vga.c: Likewise.
5925 * term/ieee1275/ofconsole.c: Likewise.
5926 * term/terminfo.c: Likewise.
5927 * video/bitmap.c: Likewise.
5928 * video/efi_gop.c: Likewise.
5929 * video/efi_uga.c: Likewise.
5930 * video/fb/video_fb.c: Likewise.
5931 * video/i386/pc/vbe.c: Likewise.
5932 * video/readers/tga.c: Likewise.
5933 * video/video.c: Likewise.
5934
0ad46fd7 59352009-12-23 Felix Zielcke <fzielcke@z-51.de>
a2c1332b
FZ
5936
5937 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
5938 * commands/lspci.c: Likewise.
5939 * commands/probe.c: Likewise.
5940 * commands/xnu_uuid.c: Likewise.
5941 * conf/i386-coreboot.rmk: Likewise.
5942 * conf/i386-efi.rmk: Likewise.
5943 * conf/i386-ieee1275.rmk: Likewise.
5944 * conf/i386-pc.rmk: Likewise.
5945 * conf/powerpc-ieee1275.rmk: Likewise.
5946 * conf/sparc64-ieee1275.rmk: Likewise.
5947 * conf/x86_64-efi.rmk: Likewise.
5948 * fs/i386/pc/pxe.c: Likewise.
5949 * gettext/gettext.c: Likewise.
5950 * include/grub/efi/graphics_output.h: Likewise.
5951 * include/grub/i386/pc/memory.h: Likewise.
5952 * kern/env.c: Likewise.
5953 * kern/i386/qemu/startup.S: Likewise.
5954 * lib/i386/pc/biosnum.c: Likewise.
5955 * lib/i386/relocator.c: Likewise.
5956 * lib/i386/relocator_asm.S: Likewise.
5957 * lib/relocator.c: Likewise.
5958 * loader/i386/bsd.c: Likewise.
5959 * loader/i386/multiboot.c: Likewise.
5960 * loader/i386/pc/chainloader.c: Likewise.
5961 * loader/i386/xnu.c: Likewise.
5962 * loader/xnu.c: Likewise.
5963 * normal/main.c: Likewise.
5964 * normal/menu_text.c: Likewise.
5965 * util/getroot.c: Likewise.
5966 * util/grub-mkconfig_lib.in: Likewise.
5967 * util/grub.d/00_header.in: Likewise.
5968 * util/i386/pc/grub-mkimage.c: Likewise.
5969 * util/mkisofs/eltorito.c: Likewise.
5970 * util/mkisofs/exclude.h: Likewise.
5971 * util/mkisofs/hash.c: Likewise.
5972 * util/mkisofs/iso9660.h: Likewise.
5973 * util/mkisofs/joliet.c: Likewise.
5974 * util/mkisofs/mkisofs.c: Likewise.
5975 * util/mkisofs/mkisofs.h: Likewise.
5976 * util/mkisofs/multi.c: Likewise.
5977 * util/mkisofs/name.c: Likewise.
5978 * util/mkisofs/rock.c: Likewise.
5979 * util/mkisofs/tree.c: Likewise.
5980 * util/mkisofs/write.c: Likewise.
5981 * video/efi_gop.c: Likewise.
5982
009ec743
VS
59832009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
5984
5985 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
5986 size counting.
5987
0ad46fd7 59882009-12-22 Felix Zielcke <fzielcke@z-51.de>
990f3548
FZ
5989
5990 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
5991 * genmk.rb (class SCRIPT): Modify the target file instead of source.
5992
d3d30ea0
VS
59932009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
5994
5995 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
5996 (GRUB_MOD_INIT(memrw)): Update help line.
5997
a34f5c70
VS
59982009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
5999
6000 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
6001 Use grub_extcmd_t. All users updated.
6002 (options): New variable.
6003 (grub_cmd_read): Restructure for readability. Support "-v" option.
6004 (grub_cmd_write): Restructure for readability.
6005
0ad46fd7 60062009-12-22 Felix Zielcke <fzielcke@z-51.de>
67618ea6
FZ
6007
6008 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
6009
0ad46fd7 60102009-12-22 Felix Zielcke <fzielcke@z-51.de>
10a88797
FZ
6011
6012 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
6013 with the actual contents of the correspondending make variable.
6014 * util/grub-mkrescue.in (pkglib_DATA): New variable.
6015 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
6016 specifying `*.lst' and `efiemu??.o'
6017
0ad46fd7 60182009-12-22 Felix Zielcke <fzielcke@z-51.de>
7e70dfff
FZ
6019
6020 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
6021 after function name.
6022 Noticed by Rene Engelhard <rene@debian.org>.
6023
dc77a799
VS
60242009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
6025
6026 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
6027 (options): New variable.
6028 (iospace): Likewise.
6029 (grub_lspci_iter): List IO spaces if "-i" was given.
6030 (grub_cmd_lspci): Parse options.
6031 (GRUB_MOD_INIT(lspci)): Use extcmd.
6032 (GRUB_MOD_FINI(lspci)): Likewise.
6033
0ad46fd7 60342009-12-22 Felix Zielcke <fzielcke@z-51.de>
82000aa2
FZ
6035
6036 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
6037 `function' keyword.
6038 Patch by Tony Mancill <tmancill@debian.org>.
6039
b5d5993b
VS
60402009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
6041
6042 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
6043 (grub_uhci_portstatus): Likewise.
6044 (grub_uhci_portstatus): Add necessary delay.
11d18281 6045 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
b5d5993b 6046
941903f2 60472009-12-21 Carles Pina i Estany <carles@pina.cat>
b5d5993b 6048
941903f2 6049 * commands/acpi.c (options): Fix capitalizations and/or full stops.
6050 (GRUB_MOD_INIT): Likewise.
6051 * commands/boot.c (GRUB_MOD_INIT): Likewise.
cb04503e 6052 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
6053 * commands/echo.c (options): Fix capitalizations and/or full stops.
941903f2 6054 * commands/efi/loadbios.c (enable_rom_area): Likewise.
6055 (enable_rom_area): Likewise.
6056 (GRUB_MOD_INIT): Likewise.
6057 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
6058 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
6059 * commands/handler.c (GRUB_MOD_INIT): Likewise.
6060 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
6061 * commands/hexdump.c (options): Likewise.
6062 * commands/i386/cpuid.c (options): Likewise.
6063 (GRUB_MOD_INIT): Likewise.
6064 * commands/i386/pc/drivemap.c (options): Likewise.
6065 (GRUB_MOD_INIT): Likewise.
6066 * commands/i386/pc/halt (options): Likewise.
6067 (GRUB_MOD_INIT): Likewise.
6068 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
6069 * commands/i386/pc/pxecmd.c (options): Likewise.
6070 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
6071 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
6072 * commands/keystatus.c (options): Likewise.
6073 (GRUB_MOD_INIT): Likewise.
6074 * commands/loadenv.c (options): Likewise.
6075 * commands/ls.c (options): Likewise.
6076 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
6077 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
6078 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
6079 * commands/parttool.c (helpmsg): Likewise.
6080 * commands/probe.c (options): Likewise.
6081 * commands/read.c (GRUB_MOD_INIT): Likewise.
6082 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
6083 * commands/search.c (options): Likewise.
6084 * commands/sleep.c (options): Likewise.
6085 * commands/test.c (GRUB_MOD_INIT): Likewise.
6086 * commands/true.c (GRUB_MOD_INIT): Likewise.
6087 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
6088 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
6089 * lib/arg.c (help_options): Likewise.
e9bbb4e7 6090 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
6091 `$(XGETTEXT)'.
98a50553 6092 * po/POTFILES: Add `commands/loadenv.c'.
941903f2 6093
0ad46fd7 60942009-12-21 Felix Zielcke <fzielcke@z-51.de>
4dd13225 6095
ef3c2c3a 6096 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
4dd13225
FZ
6097 instead of specifying them explicit.
6098
7922f68b
RM
60992009-12-21 Robert Millan <rmh.grub@aybabtu.com>
6100
6101 * NEWS: Add grub-probe support for GNU/Hurd.
6102
537ce47f
RM
61032009-12-21 Robert Millan <rmh.grub@aybabtu.com>
6104
6105 * NEWS: gettext was added after 1.97.
6106
9b214e3a
RM
61072009-12-21 Robert Millan <rmh.grub@aybabtu.com>
6108
6109 * util/mkisofs/msdos_partition.h: New file (based on
6110 include/grub/msdos_partition.h).
6111 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
6112 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
6113 (ld_options, main): Recognize --protective-msdos-label.
6114 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
6115 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
6116 (padblock_write): If `use_protective_msdos_label' is set, patch a
6117 protective DOS-style label in the output image.
6118
6119 * util/grub-mkrescue.in: Use --protective-msdos-label.
6120
e9309813
RM
61212009-12-21 Robert Millan <rmh.grub@aybabtu.com>
6122
6123 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
6124 boot.
6125
0ae56929
RM
61262009-12-21 Robert Millan <rmh.grub@aybabtu.com>
6127
6128 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
6129 variables.
6130 (ld_options, main): Recognize `--embedded-boot'.
6131 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
6132 declarations.
6133 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
6134 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
6135 (padblock_write): Likewise. Rewrite to support embedded boot image.
6136
6137 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
6138 for BIOS-based disk boot instead of only ElTorito.
6139
b15937b1
RM
61402009-12-21 Robert Millan <rmh.grub@aybabtu.com>
6141
6142 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
6143 build (not needed for bootstrap).
6144
52cc3ce0
RM
61452009-12-21 Robert Millan <rmh.grub@aybabtu.com>
6146
6147 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
6148 from i386-pc build (not needed for bootstrap).
6149 Rewrite a pair of strings.
6150
36f5ff04
RM
61512009-12-21 Robert Millan <rmh.grub@aybabtu.com>
6152
6153 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
6154
973c6c85 61552009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
b07e53f0
VS
6156
6157 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
6158
05d21547
AB
61592009-12-21 Andreas Born <futur.andy@googlemail.com>
6160
6161 * kern/env.c (grub_env_context_open): Mark exported variable for
6162 reexport.
6163
0175d51f
AB
61642009-12-21 Andreas Born <futur.andy@googlemail.com>
6165
6166 * kern/env.c (grub_env_export): Create nonexistent variables before
6167 exporting.
6168
7f39d92f 61692009-12-20 Carles Pina i Estany <carles@pina.cat>
0175d51f 6170
7f39d92f 6171 * include/grub/auth.h: Include `<grub/i18n.h>'.
6172 (GRUB_GET_PASSWORD): Gettextizze string.
6173 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
6174 menu_text.c.
6175 (grub_utf8_to_ucs4_alloc): Fix indentation.
6176 (grub_print_ucs4): Likewise.
6177 (grub_getstringwidth): Likewise.
6178 (print_message_indented): New declaration.
6179 * normal/auth.c: Include `<grub/i18n.h>'.
6180 (grub_auth_check_authentication): Gettexttize string.
6181 * normal/cmdline.c: Include `<grub/i18n.h>'.
6182 (grub_cmdline_get): Gettextizze.
6183 * normal/color.c: Include `<grub/i18n.h>'.
6184 (grub_parse_color_name_pair): Gettexttize strings.
6185 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
6186 string (use `print_message_indented').
6187 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
6188 `include/grub/normal.h'.
6189 (print_message_indented): Renamed to ...
6190 (grub_print_message_indented): ... this. Remove `static' qualifer (now
6191 used in normal/main.c).
6192 (print_message): Use `grub_print_message_indented' instead of
6193 `print_message_indented'.
6194 (print_timeout): Likewise.
6195 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
6196 (grub_normal_print_device_info): Gettexttize strings.
6197 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
6198
3041d898
VS
61992009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
6200
6201 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
6202 of arguments. Return number of tokens and not arguments. All users
6203 updated.
6204
de15bf8e
VS
62052009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
6206
6207 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
6208 non-MSDOS paritions.
6209
e0a6ca52
VS
62102009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
6211
6212 * include/grub/types.h (UNUSED): Removed since it conflicts with
6213 NetBSD headers. All users changed to direct __attribute__ ((unused)).
6214 Reported by Grégoire Sutre.
6215
b99518d1 62162009-12-19 Carles Pina i Estany <carles@pina.cat>
6217
6218 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
6219 (grub_print_ucs4_alloc): Likewise.
6220 (grub_getstringwidth): Likewise.
6221 * normal/main.c (grub_normal_init_page): Gettextize version string.
6222 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
6223 (getstringwidth): Renamed to ...
6224 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
6225 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
6226 (grub_print_ucs4): Remove `static' qualifer (now used in
6227 normal/main.c).
6228 * po/POTFILES: Add normal/main.c.
6229
bfd5e52b 62302009-12-19 Carles Pina i Estany <carles@pina.cat>
6231
6232 * normal/menu_text.c (STANDARD_MARGIN): New macro.
6233 (print_message_indented): Add `margin_left' and `margin_right'
6234 parameters.
6235 (print_message): Update `print_message_indented' calls. Adds '\n' to the
6236 strings.
6237 (print_timeout): Use `print_message_indented' to print the message.
6238 Deletes `second_stage' parameter.
6239 (run_menu): Update `print_timeout' calls.
6240
5a1ad2b9
VS
62412009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
6242
6243 Fix console palette on OpenFirmware.
6244
6245 * term/ieee1275/ofconsole.c (MAX): Removed.
6246 (colors): Redone based on VGA palette.
6247 (grub_ofconsole_setcolor): Discard brightness bit since only 8
6248 colors are supported.
6249 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
6250
b045f00a
VS
62512009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
6252
6253 Fix potential EfiEmu double prepare.
6254
6255 * efiemu/main.c (prepared): New variable
6256 (grub_efiemu_unload): Set prepare to '0'.
6257 (grub_efiemu_prepare): Return if already prepared. Set prepared.
6258
6259 set_virtual_address_map support.
6260
6261 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
6262 prototype.
6263 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
6264 prototype.
6265 (grub_efiemu_crc32): Likewise.
6266 (grub_efiemu_crc64): Likewise.
6267 (grub_efiemu_set_virtual_address_map): Likewise.
6268 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
6269 New definition.
6270 (grub_autoefi_set_virtual_address_map): Likewise.
6271 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
6272 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
6273 Restructure flow to accomodate it.
6274 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
6275 (grub_efiemu_crc): Recompute CRC32.
6276 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
6277 (efiemu_ptv_relocated): ... this. Made global. All users updated.
6278 * efiemu/symbols.c (relocated_handle): New variable.
6279 (grub_efiemu_free_syms): Free relocated_handle.
6280 (grub_efiemu_alloc_syms): Allocate relocated_handle.
6281 (grub_efiemu_write_sym_markers): New function.
6282 (grub_efiemu_set_virtual_address_map): Likewise.
6283
6284 Newer XNU parameters.
6285
6286 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
6287 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
6288 (grub_xnu_fill_devicetree): New prototype.
6289 (grub_xnu_heap_real_start): New variable.
6290 * loader/xnu.c (get_name_ptr): New function.
6291 (grub_xnu_load_driver): Fill namelen and name.
6292
6293 64-bit xnu support.
6294
6295 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
6296 and 'loader/macho64.c'.
6297 * conf/i386-pc.rmk: Likewise.
6298 * conf/x86_64-efi.rmk: Likewise.
6299 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
6300 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
6301 * include/grub/macho.h (grub_macho_segment64): New structure.
6302 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
6303 (grub_macho_size32): ... to this.
6304 (grub_macho32_get_entry_point): Renamed from ...
6305 (grub_macho_get_entry_point32): ... to this.
6306 (grub_macho_contains_macho64): New prototype.
6307 (grub_macho_size64): Likewise.
6308 (grub_macho_get_entry_point64): Likewise.
6309 (grub_macho32_load): Renamed from ...
6310 (grub_macho_load32): ... to this.
6311 (grub_macho32_filesize): Renamed from ...
6312 (grub_macho_filesize32): ... to this.
6313 (grub_macho32_readfile): Renamed from ...
6314 (grub_macho_readfile32): ... to this.
6315 (grub_macho_filesize64): New prototype.
6316 (grub_macho_readfile64): Likewise.
6317 (grub_macho_parse32): Likewise.
6318 (grub_macho_parse64): Likewise.
6319 * loader/macho.c: Split into ...
6320 * loader/machoXX.c: ... and this. Replace 32 with XX.
6321 * loader/macho32.c: New file.
6322 * loader/macho64.c: Likewise.
6323 * loader/xnu.c (grub_xnu_is_64bit): New variable.
6324 (grub_cmd_xnu_kernel): Make 32-bit only.
6325 (grub_cmd_xnu_kernel64): New function.
6326 (grub_xnu_load_driver): Support Mach-O 64.
6327 (grub_cmd_xnu_mkext): Likewise.
6328 * util/grub.d/30_os-prober.in (osx_entry): New function.
6329 Generate entries for 64-bit boot too.
6330
6331 Eliminate ad-hoc tree format in XNU and EfiEmu.
6332
6333 * efiemu/main.c (grub_efiemu_prepare): Update comment.
6334 * efiemu/pnvram.c: Rewritten to use environment variables.
6335 All users updated.
6336
6337 Inline utf16_to_utf8.
6338
6339 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
6340 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
6341 All users updated.
6342 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
6343
6344 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
6345 * commands/usbtest.c (grub_usb_get_string): ... move here.
6346 (usb_print_str): Fix error handling.
6347 * include/grub/usb.h (grub_usb_get_string): Remove.
6348
6349 UTF-8 to UTF-16 transformation.
6350
6351 * conf/common.rmk (pkglib_MODULES): Add charset.mod
6352 (charset_mod_SOURCES): New variable.
6353 (charset_mod_CFLAGS): Likewise.
6354 (charset_mod_LDFLAGS): Likewise.
6355 * include/grub/utf.h: New file.
6356 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
6357
6358 Support for device properties.
6359
6360 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
6361 (grub_xnu_devprop_device_header): Likewise.
6362 (grub_xnu_devprop_device_descriptor): Likewise.
6363 (grub_xnu_devprop_add_device): New prototype.
6364 (grub_xnu_devprop_remove_device): Likewise.
6365 (grub_xnu_devprop_remove_property): Likewise.
6366 (grub_xnu_devprop_add_property_utf8): Likewise.
6367 (grub_xnu_devprop_add_property_utf16): Likewise.
6368 (grub_cpu_xnu_init): Likewise.
6369 (grub_cpu_xnu_fini): Likewise.
6370 (grub_cpu_xnu_unload): Likewise.
6371 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
6372 (property_descriptor): Likewise.
6373 (devices): New variable.
6374 (grub_xnu_devprop_remove_property): New function.
6375 (grub_xnu_devprop_add_device): Likewise.
6376 (grub_xnu_devprop_remove_device): Likewise.
6377 (grub_xnu_devprop_add_property): Likewise.
6378 (grub_xnu_devprop_add_property_utf8): Likewise.
6379 (grub_xnu_devprop_add_property_utf16): Likewise.
6380 (hextoval): Likewise.
6381 (grub_cpu_xnu_fill_devprop): Likewise.
6382 (grub_cmd_devprop_load): Likewise.
6383 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
6384 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
6385 (cmd_devprop_load): New variable.
6386 (grub_cpu_xnu_init): New function.
6387 (grub_cpu_xnu_fini): Likewise.
6388 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
6389 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
6390 (grub_cmd_xnu_devtree): Likewise.
6391 (hextoval): New function.
6392 (unescape): Likewise.
6393 (grub_xnu_fill_devicetree): Likewise.
6394
6395 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
6396 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
6397
0945f181
VS
63982009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
6399
6400 Workaround for broken ATI VBE.
6401
6402 * video/i386/pc/vbe.c (last_set_mode): New variable.
6403 (grub_vbe_set_video_mode): Set 'last_set_mode'.
6404 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
6405 (grub_video_vbe_setup): Don't check for reserved flag.
6406
0ad46fd7 64072009-12-17 Felix Zielcke <fzielcke@z-51.de>
0297aafb
FZ
6408
6409 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
6410 the `find' command.
6411
c179ebe4
VS
64122009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
6413
6414 UUID support for HFS.
6415
6416 * fs/hfs.c (grub_hfs_uuid): New function.
6417 (grub_hfs_fs): New value .uuid.
6418 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
6419
0ad46fd7 64202009-12-14 Felix Zielcke <fzielcke@z-51.de>
574cce0c
FZ
6421
6422 Fix a segfault with parsing unknown long options.
6423
6424 * util/grub-mkrelpath.c (options): Zero terminate it.
6425
c4a3e41a
CPE
64262009-12-13 Carles Pina i Estany <carles@pina.cat>
6427
6428 * include/grub/misc.h (grub_puts): New declaration.
6429 (grub_puts_): Likewise.
a22008a6 6430 * kern/misc.c (grub_puts): New definition.
c4a3e41a
CPE
6431 (grub_puts_): Likewise.
6432
2e8a7602
RM
64332009-12-13 Robert Millan <rmh.grub@aybabtu.com>
6434
6435 * util/grub-probe.c (probe): Improve error message.
6436
b50b77b9
RM
64372009-12-13 Robert Millan <rmh.grub@aybabtu.com>
6438
6439 * loader/i386/multiboot_elfxx.c
6440 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
6441 initialization.
6442
64432009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
6444
6445 Relocator framework
6446
6447 * loader/i386/xnu_helper.S: Removed. All users updated.
6448 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
6449 (relocator_mod_SOURCES): New variable.
6450 (relocator_mod_CFLAGS): Likewise.
6451 (relocator_mod_LDFLAGS): Likewise.
6452 (relocator_mod_ASFLAGS): Likewise.
6453 * conf/x86_64.rmk: Likewise.
6454 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
6455 (grub_multiboot_payload_entry_offset): Likewise.
6456 (grub_multiboot_forward_relocator): Likewise.
6457 (grub_multiboot_forward_relocator_end): Likewise.
6458 (grub_multiboot_backward_relocator): Likewise.
6459 (grub_multiboot_backward_relocator_end): Likewise.
6460 (grub_multiboot_payload_eip): New variable.
6461 (grub_multiboot_payload_orig): Likewise.
6462 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
6463 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
6464 * include/grub/i386/memory.h
6465 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
6466 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
6467 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
6468 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
6469 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
6470 * include/grub/i386/relocator.h: New file.
6471 * include/grub/x86_64/relocator.h: Likewise.
6472 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
6473 (XNU_RELOCATOR): New macro.
6474 (grub_xnu_launcher_start): Remove.
6475 (grub_xnu_launcher_end): Likewise.
6476 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
6477 (grub_xnu_heap_real_start): Remove.
6478 (grub_xnu_heap_start): Change to void *. All users updated.
6479 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
6480 * lib/i386/relocator.c: New file.
6481 * lib/i386/relocator_asm.S: Likewise.
6482 * lib/i386/relocator_backward.S: Likewise.
6483 * lib/mips/relocator.c: Likewise.
6484 * lib/mips/relocator_asm.S: Likewise.
6485 * lib/relocator.c: Likewise.
6486 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
6487 (entry): Removed.
6488 (playground): Likewise.
6489 (grub_multiboot_payload_orig): New variable.
6490 (grub_multiboot_payload_dest): Likewise.
6491 (grub_multiboot_payload_size): Likewise.
6492 (grub_multiboot_payload_eip): Likewise.
6493 (grub_multiboot_payload_esp): Likewise.
6494 (grub_multiboot_boot): Use grub_relocator32_boot.
6495 (grub_multiboot_unload): Free relocators.
6496 (grub_multiboot): Setup stack. Use relocators.
6497 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
6498 (grub_multiboot_load_elfXX): Use relocators.
6499 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
6500 (grub_multiboot_payload_size): Likewise.
6501 (grub_multiboot_payload_dest): Likewise.
6502 (grub_multiboot_payload_entry_offset): Likewise.
6503 (grub_multiboot_forward_relocator): Likewise.
6504 (grub_multiboot_backward_relocator): Likewise.
6505 (grub_multiboot_real_boot): Likewise.
6506 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
6507 (grub_xnu_entry_point): Likewise.
6508 (grub_xnu_arg1): Likewise.
6509 (grub_xnu_stack): Likewise.
6510 (grub_xnu_launch): Removed.
6511 (grub_xnu_boot_resume): New function.
6512 (grub_xnu_boot): Use relocators.
6513 * loader/i386/xnu_helper.S: Removed.
6514 * loader/xnu.c (grub_xnu_heap_start): New variable.
6515 (grub_xnu_heap_size): Likewise.
6516 (grub_xnu_heap_malloc): Use relocators.
6517 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
6518
29eb90c6
VS
65192009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
6520
6521 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
6522 anything.
6523
31027430
CPE
65242009-12-13 Carles Pina i Estany <carles@pina.cat>
6525
6526 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
6527 GRUB_ERR_NONE before calling grub_env_set.
6528
dc0c71d9
RM
65292009-12-12 Robert Millan <rmh@aybabtu.com>
6530
6531 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
6532 * genmk.rb (video): New variable.
6533 (CLEANFILES, VIDEOFILES): Add #{video}.
6534 (#{video}): New target rule.
6535 * genvideolist.sh: New file.
6536 * Makefile.in (pkglib_DATA): Add video.lst.
6537 (video.lst): New target rule.
6538 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
6539 `video.lst'.
6540 * util/grub.d/30_os-prober.in: Replace `vbe' with
6541 ${GRUB_VIDEO_BACKEND}.
6542
2a4bfcf0
RM
65432009-12-11 Robert Millan <rmh.grub@aybabtu.com>
6544
6545 * THANKS: Add David Miller.
6546
2a3aa4d5
RM
65472009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
6548
6549 libpciaccess support.
6550
6551 * Makefile.in (LIBPCIACCESS): New variable.
6552 (enable_grub_emu_pci): Likewise.
6553 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
6554 util/pci.c and commands/lspci.c.
6555 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
6556 * configure.ac (grub-emu-pci): New option.
6557 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
6558 (grub_pci_device_unmap_range): Likewise.
6559 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
6560 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
6561 (grub_pci_address_t) [!GRUB_UTIL]: New type.
6562 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
6563 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
6564 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
6565 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
6566 * include/grub/pciutils.h: New file.
6567 * util/pci.c: Likewise.
6568
0ad46fd7 65692009-12-11 Felix Zielcke <fzielcke@z-51.de>
8d0502d9
FZ
6570
6571 * util/misc.c: Don't include <errno.h> twice.
6572
0ad46fd7 65732009-12-10 Felix Zielcke <fzielcke@z-51.de>
0d56ed64
FZ
6574
6575 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
6576 name in an error message.
6577 (grub_biosdisk_rw): Likewise.
6578
2e59983c
VS
65792009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
6580
6581 Eliminate NTFS 4Gib barrier.
6582
6583 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
6584 (read_run_data): Likewise.
6585 (grub_ntfs_read_run_list): Likewise.
6586 (grub_ntfs_read_block): Likewise.
6587 (grub_ntfs_iterate_dir): Likewise.
6588 (read_mft): Likewise.
6589 (read_data): Likewise.
6590 Use COM_LOG_LEN.
6591 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
6592 to avoid 64-bit division
6593 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
6594 (grub_ntfs_rlst): Use grub_disk_addr_t.
6595
71ee178a
VS
65962009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
6597
6598 Eliminate grub-fstest 4Gib barrier.
6599
6600 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
6601 (read_file): Fix error reporting.
6602
2520d4b8
VS
66032009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
6604
6605 Eliminate hexdump 4Gib barrier.
6606
6607 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
6608 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
6609
e1f27065
VS
66102009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
6611
6612 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
6613 Fixes amarsh bug.
6614
1a0f7f45
RM
66152009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
6616
6617 Remove miscellaneous files in distclean target.
6618
6619 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
6620
c631d9fb
CW
66212009-12-09 Colin Watson <cjwatson@ubuntu.com>
6622
6623 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
6624 if they're already set. This resolves the conflict between my
6625 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
6626 fixing the --grub-probe option again.
6627 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
6628 change on 2009-10-06, so that we now once again source
6629 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
6630
7c7b6106
RM
66312009-12-08 Robert Millan <rmh.grub@aybabtu.com>
6632
6633 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
6634 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
6635 `util/devicemap.c'.
6636
e3069ec1
CPE
66372009-12-08 Carles Pina i Estany <carles@pina.cat>
6638
6639 * include/grub/misc.h (grub_printf_): New declaration.
6640 * kern/misc.c (grub_printf_): New definition.
6641 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
6642 instead of `grub_printf' and `_'.
6643 * normal/menu_entry.c (store_completion): Likewise.
6644 (run): Likewise.
6645 (grub_menu_entry_run): Likewise.
6646 * normal/menu_text.c (grub_wait_after_message): Likewise.
6647 (notify_booting): Likewise.
6648 (notify_fallback): Likewise.
6649 (notify_execution_failure): Likewise.
6650
d6ceebf1
CW
66512009-12-07 Colin Watson <cjwatson@ubuntu.com>
6652
6653 * configure.ac: Check for vasprintf.
6654 * util/misc.c (asprintf): Move allocation from here ...
6655 (vasprintf): ... to here. New function.
6656 (xasprintf): New function.
6657 * include/grub/util/misc.h (vasprintf, xasprintf): Add
6658 prototypes.
6659 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
6660 * util/grub-mkfont.c (write_font): Likewise.
6661 * util/grub-probe.c (probe): Likewise.
6662 * util/hostdisk.c (make_device_name): Likewise.
6663
de6daa8b
DM
66642009-12-06 David S. Miller <davem@sunset.davemloft.net>
6665
6666 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
6667 anything even prefixed with 'cdrom' as a cdrom.
6668
0ad46fd7 66692009-12-06 Felix Zielcke <fzielcke@z-51.de>
df91e679
FZ
6670
6671 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
6672 mount points.
6673
98d3dc02
CPE
66742009-12-05 Carles Pina i Estany <carles@pina.cat>
6675
6676 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
6677 grub_gettext_msg_list.
6678 (grub_gettext_gettranslation_from_position): Return const char *
6679 and not char *.
a2c1332b 6680 (grub_gettext_translate): Add the translated strings into a list,
98d3dc02
CPE
6681 returns from the list if existing there.
6682 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
6683 (grub_gettext_delete_list): Delete the list.
6684 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
6685 lang environment variable is changed.
6686 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
6687
b283f108
VS
66882009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
6689
6690 Rename kernel.mod to kernel.img.
6691
6692 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
6693 (kernel_mod_EXPORTS): Rename to ...
6694 (kernel_img_EXPORTS): ... this.
6695 (kernel_mod_SOURCES): Rename to ...
6696 (kernel_img_SOURCES): ... this.
6697 (kernel_mod_HEADERS): Rename to ...
6698 (kernel_img_HEADERS): ... this. All users updated.
6699 (kernel_mod_CFLAGS): Rename to ...
6700 (kernel_img_CFLAGS): ... this.
6701 (kernel_mod_ASFLAGS): Rename to ...
6702 (kernel_img_ASFLAGS): ... this.
6703 (kernel_mod_LDFLAGS): Rename to ...
6704 (kernel_img_LDFLAGS): ... this.
6705 * conf/x86_64-efi.rmk: Likewise.
6706 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
6707 (read_kernel_image): ... this. All users updated.
6708 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
6709
69055f8a
CPE
67102009-12-05 Carles Pina i Estany <carles@pina.cat>
6711
6712 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
6713 (print_spaces): New function.
6714 (grub_print_ucs4): New function.
6715 (getstringwidth): New function.
6716 (print_message_indented): New function.
6717 (print_message): Gettexttize strings using print_message_indented.
6718 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
6719 width.
6720 (get_entry_number): Gettextize and uses dynamic terminal width.
a2c1332b 6721 (notify_booting, notify_fallback, notify_execution_failure):
69055f8a
CPE
6722 Gettextize.
6723 * normal/menu_entry.c (store_completion): Cleanup the gettextized
6724 string.
6725 (run): Likewise.
6726 (grub_menu_entry_run): Likewise.
6727 * PO/POTFILES: Add normal/menu_entry.c.
6728
f616f51c
VS
67292009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
6730
6731 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
6732
57bbe3be
CPE
67332009-12-05 Carles Pina i Estany <carles@pina.cat>
6734
6735 * util/grub-install.in: Install gettext .mo files.
6736 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
6737
013d67a1
CPE
67382009-12-05 Carles Pina i Estany <carles@pina.cat>
6739
6740 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
6741 grub_dprintf.
6742
fb954db0
RM
67432009-12-05 Robert Millan <rmh.grub@aybabtu.com>
6744
6745 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
6746 non-firmware-dependant one in realmode.S takes precedence.
6747
6b8474f8
RM
67482009-12-04 Robert Millan <rmh.grub@aybabtu.com>
6749
6750 * commands/halt.c: Replace misc arch-specific headers with
6751 `<grub/misc.h>'.
6752 * commands/reboot.c: Likewise.
6753 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
6754 `<grub/misc.h>'.
6755 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
6756 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
6757 (kernel_img_SOURCES): ... to here.
6758
6759 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
6760 * include/grub/i386/pc/init.h: Likewise.
6761 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
6762 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
6763
6764 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
6765
6766 * include/grub/i386/halt.h: Remove.
6767 * include/grub/i386/reboot.h: Likewise.
6768
6769 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
6770
4b2e6ca2
DM
67712009-12-03 David S. Miller <davem@sunset.davemloft.net>
6772
6773 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
6774 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
6775 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
6776 "progname.h"
6777 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
6778 * util/sparc64/ieee1275/grub-setup.c: Likewise.
6779 (usage): Add missing comma in printf.
6780
5239348f
RM
67812009-12-02 Robert Millan <rmh.grub@aybabtu.com>
6782
6783 Use the same reboot approach on i386 coreboot and qemu as we do on
6784 BIOS.
6785
6786 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
6787 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
6788 * kern/i386/reboot.c: Remove.
6789 * include/grub/i386/reboot.h (grub_reboot): Export function.
6790 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
6791 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
6792 0xf000:0xfff0 instead of 0xffff:0x0000.
6793 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
6794 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
6795
ef34cbd4
RM
67962009-11-30 Robert Millan <rmh.grub@aybabtu.com>
6797
6798 Fix $srcdir != $objdir build.
6799
6800 * Makefile.in (po/%.po): Rewrite as ...
6801 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
6802
dc9837ea
ST
68032009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
6804
6805 Fix GNU/Hurd grub-install crash.
6806 * util/grub-probe.c (probe): Try to access `path' only when it is not
6807 NULL.
6808
2f857f98
VS
68092009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
6810
6811 Correct module naming.
6812
6813 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
6814 (GRUB_MOD_INIT(efi_uga)): ... to this
6815 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
6816 (GRUB_MOD_FINI(efi_uga)): ... to this
6817 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
6818 (GRUB_MOD_INIT(efi_gop)): ... to this
6819 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
6820 (GRUB_MOD_FINI(efi_gop)): ... to this
6821
c5448046
RM
68222009-11-28 Robert Millan <rmh.grub@aybabtu.com>
6823
6824 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
6825 translatable.
6826 (usage): Translate `arg' strings using gettext().
6827 Thanks to Jordi Mallach for the suggestion.
6828
c85184ad
VS
68292009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
6830
6831 GOP support. Based on patch from Bean
6832 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
6833
6834 * video/efi_gop.c: New file.
6835 * include/grub/efi/graphics_output.h: Likewise.
6836 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
6837 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
6838 variables.
6839 * conf/x86_64-efi.rmk: Likewise.
6840
8a4c48d8
VS
68412009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
6842
6843 Rename efi_fb to efi_uga.
6844
6845 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
6846 'efi_uga.mod'.
6847 (efi_fb_mod_SOURCES): Rename this ...
6848 (efi_uga_mod_SOURCES): ... to this.
6849 (efi_fb_mod_CFLAGS): Rename this ...
6850 (efi_uga_mod_CFLAGS): ... to this.
6851 (efi_fb_mod_LDFLAGS): Rename this ...
6852 (efi_uga_mod_LDFLAGS): ... to this.
6853 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
6854 'efi_uga.mod'.
6855 (efi_fb_mod_SOURCES): Rename this ...
6856 (efi_uga_mod_SOURCES): ... to this.
6857 (efi_fb_mod_CFLAGS): Rename this ...
6858 (efi_uga_mod_CFLAGS): ... to this.
6859 (efi_fb_mod_LDFLAGS): Rename this ...
6860 (efi_uga_mod_LDFLAGS): ... to this.
6861 * video/efi_fb.c: Move this ...
6862 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
6863
fb6c1a7b
RM
68642009-11-27 Robert Millan <rmh.grub@aybabtu.com>
6865
6866 * po/README: New file. Explain our PO file workflow.
6867
3bc7896c
RM
68682009-11-27 Robert Millan <rmh.grub@aybabtu.com>
6869
6870 * po/ChangeLog: Remove. Move relevant entries back to ...
6871 * ChangeLog: ... here.
6872 * po/ca.po: Remove (now handled by TLP).
6873 * po/id.po: Likewise.
6874 * po/zh_CN.po: Likewise.
6875 * Makefile.in (LINGUAS): Initialize in a way that supports
6876 empty set.
6877
9ed4841d
RM
68782009-11-27 Robert Millan <rmh.grub@aybabtu.com>
6879
6880 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
6881 reliing on po/LINGUAS.
6882 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
6883 (po/%.po): ... this.
6884
0ad46fd7 68852009-11-26 Felix Zielcke <fzielcke@z-51.de>
242668a2
FZ
6886
6887 * util/i386/efi/grub-mkimage.c: Include "progname.h".
6888 (main): Use `program_name' instead of nonexistent `progname'.
6889
e30dd392
FZ
68902009-11-26 Felix Zielcke <fzielcke@z-51.de>
6891
6892 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
6893 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
6894
7656de4f
RM
68952009-11-26 Robert Millan <rmh.grub@aybabtu.com>
6896
6897 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
6898 commit.
6899 * conf/i386-efi.rmk: Likewise.
6900 * conf/i386-ieee1275.rmk: Likewise.
6901 * conf/powerpc-ieee1275.rmk: Likewise.
6902 * conf/sparc64-ieee1275.rmk: Likewise.
6903 * conf/x86_64-efi.rmk: Likewise.
6904
db77c4d4
FZ
69052009-11-26 Felix Zielcke <fzielcke@z-51.de>
6906
6907 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
6908
a755bb04
FZ
69092009-11-26 Felix Zielcke <fzielcke@z-51.de>
6910
6911 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
6912
8a4c07fd
RM
69132009-11-26 Robert Millan <rmh.grub@aybabtu.com>
6914
6915 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
6916 (grub_mkdevicemap_SOURCES): New variable.
6917 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
6918 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
6919 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
6920 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
6921 (grub_mkdevicemap_SOURCES): Remove.
6922 * conf/i386-efi.rmk: Likewise.
6923 * conf/i386-ieee1275.rmk: Likewise.
6924 * conf/i386-pc.rmk: Likewise.
6925 * conf/powerpc-ieee1275.rmk: Likewise.
6926 * conf/sparc64-ieee1275.rmk: Likewise.
6927 * conf/x86_64-efi.rmk: Likewise.
6928 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
6929 (usage): Fix strings to use `program_name'.
6930 (main): Initialize gettext.
6931 * util/grub-editenv.c: Likewise.
6932 * util/grub-emu.c: Likewise.
6933 * util/grub-fstest.c: Likewise.
6934 * util/grub-mkdevicemap.c: Likewise.
6935 * util/grub-mkfont.c: Likewise.
6936 * util/grub-mkrelpath.c: Likewise.
6937 * util/grub-pe2elf.c: Likewise.
6938 * util/grub-probe.c: Likewise.
6939 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
6940 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
6941 * util/sparc64/ieee1275/grub-setup.c: Likewise.
6942
6943 * util/misc.c: Include `"progname.h"'.
6944 (progname): Remove variable.
6945 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
6946
6f61ed55
FZ
69472009-11-25 Felix Zielcke <fzielcke@z-51.de>
6948
6949 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
6950 printf and print a newline after the menuentry header line.
6951 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
6952
f022876b
FZ
69532009-11-25 Felix Zielcke <fzielcke@z-51.de>
6954
6955 autoconf >= 2.60 support $(localedir).
6956
6957 * INSTALL: Note that autoconf 2.60 is required.
6958 * configure.ac (AC_PREREQ): Bump to 2.60.
6959 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
6960 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
6961
6717926e
YB
69622009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
6963
6964 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
6965 aclocal is run.
6966
08806a54
RM
69672009-11-25 Robert Millan <rmh.grub@aybabtu.com>
6968
6969 * normal/main.c (grub_normal_read_line): Fix off-by-one
6970 buffer overflow.
6971
13b33fba
RM
69722009-11-25 Robert Millan <rmh.grub@aybabtu.com>
6973
6974 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
6975 "parser.grub" in grub_command_execute() call.
6976
4a8572e9
CPE
69772009-11-24 Carles Pina i Estany <carles@pina.cat>
6978
6979 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
6980 * conf/i386-efi.rmk: Likewise.
6981 * conf/i386-ieee1275.rmk: Likewise.
6982 * conf/i386-pc.rmk: Likewise.
6983 * conf/powerpc-ieee1275.rmk: Likewise.
6984 * conf/sparc64-ieee1275.rmk: Likewise.
6985 * conf/x86_64-efi.rmk: Likewise.
6986 * gettext/gettex.c: Include <grub/i18n.h>.
6987 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
6988 here ...
6989 * include/grub/i18n.h: ... to here
6990 * include/grub/i18n.h: ... to here.
6991 * kern/misc.c: Include <grub/i18n.h>
a2c1332b 6992 (grub_gettext_dummy): Move above user.
4a8572e9 6993
bee48093
FZ
69942009-11-24 Felix Zielcke <fzielcke@z-51.de>
6995
6996 * util/Makefile.in (install-local): Convert a `for' into a normal
6997 shell expansion.
6998
a031e91c
RM
69992009-11-24 Robert Millan <rmh.grub@aybabtu.com>
7000
7001 * autogen.sh: Add automake call.
7002 * config.guess: Remove.
7003 * config.sub: Likewise.
7004 * install-sh: Likewise.
7005
26bec39d
FZ
70062009-11-24 Felix Zielcke <fzielcke@z-51.de>
7007
7008 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
7009
8e2532fd
FZ
70102009-11-24 Felix Zielcke <fzielcke@z-51.de>
7011
7012 * util/Makefile.in (install-local): Convert a make `$(foreach)'
7013 function to a normal shell `for'.
7014
fefa1b7d
FZ
70152009-11-24 Felix Zielcke <fzielcke@z-51.de>
7016
7017 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
7018
4501250b
FZ
70192009-11-24 Felix Zielcke <fzielcke@z-51.de>
7020
7021 * util/grub-mkrelpath.c: New file.
7022 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
7023 (grub_mkrelpath_SOURCES): New variable.
7024 * include/grub/util/misc.h: New function prototype.
7025 * util/misc.c (make_system_path_relative_to_its_root): New function.
7026
7027 * util/grub-mkconfig_lib.in (bindir): New variable.
7028 (grub_mkrelpath): Likewise.
7029 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
7030
7031 * util/probe.c (probe): Make the file path relative to its root.
7032 Change a info message to use the GRUB path. Enable again the
7033 check if we can read the file with GRUB facilities.
7034
7035 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
7036 to its root.
7037
11d9778b
FZ
70382009-11-24 Felix Zielcke <fzielcke@z-51.de>
7039
7040 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
7041 platform.
7042
4465287d
FZ
70432009-11-24 Felix Zielcke <fzielcke@z-51.de>
7044
7045 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
7046 strncmp().
7047
62b47f22
FZ
70482009-11-24 Felix Zielcke <fzielcke@z-51.de>
7049
7050 * util/getroot.c (grub_util_is_dmraid): New function.
7051 (grub_util_get_dev_abstraction): Treat dmraid and multipath
7052 devices as normal ones, not as LVM.
7053
1eafb9b9 70542009-11-23 Carles Pina i Estany <carles@pina.cat>
c3ea6bd4
CPE
7055
7056 * conf/common.rmk: Add grub-gettext_lib target and updates
7057 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
7058 LDFLAGS.
7059 * gettext/gettext.c: New file. (Reads mo files).
7060 * include/grub/file.h (grub_file_pread): New prototype.
7061 * include/grub/i18n.h (_): New prototype.
7062 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
7063 prototypes.
7064 * kern/misc.c (grub_gettext_dummy): New function.
7065 * normal/menu_text.c: Include <grub/i18n.h>.
7066 * normal/menu_text.c (print_timeout): Gettexttize string.
7067 * normal/menu_text.c (print_message): Gettexttize string.
3bc7896c
RM
7068 * po/POTFILES: Add `normal/menu_text.c'.
7069 * po/ca.po: Add new translations.
c3ea6bd4
CPE
7070 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
7071 gettext module and defines locale_dir and lang in grub.cfg.
7072 * NEWS: Add gettext support.
7073
0fdb2568
RM
70742009-11-23 Robert Millan <rmh.grub@aybabtu.com>
7075
7076 * util/hostdisk.c: Include `<grub/i18n.h>'.
7077 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
7078 (make_device_name): Rewrite using asprintf.
7079 (convert_system_partition_to_system_disk): Replace 0 with NULL.
7080 (find_system_device): If a device is not found, generate one just
7081 by reusing the OS path name.
7082 (read_device_map): Make it permissible for device.map not to exist.
7083
f515aa62
RM
70842009-11-23 Robert Millan <rmh.grub@aybabtu.com>
7085
7086 * script/sh/execute.c: Move from here ...
7087 * script/execute.c: ... to here. Update all users.
7088 * script/sh/function.c: Move from here ...
7089 * script/function.c: ... to here. Update all users.
7090 * script/sh/lexer.c: Move from here ...
7091 * script/lexer.c: ... to here. Update all users.
7092 * script/sh/main.c: Move from here ...
7093 * script/main.c: ... to here. Update all users.
7094 * script/sh/parser.y: Move from here ...
7095 * script/parser.y: ... to here. Update all users.
7096 * script/sh/script.c: Move from here ...
7097 * script/script.c: ... to here. Update all users.
7098
f84b481b
RM
70992009-11-23 Robert Millan <rmh.grub@aybabtu.com>
7100
7101 * configure.ac: Detect all `emu' platforms. Define
7102 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
7103 --enable-grub-emu logic. Disable include/grub/machine
7104 symlink on `emu' platforms.
7105
7106 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
7107 * gensymlist.sh.in: Likewise.
7108
7109 * include/grub/i386/coreboot/machine.h: Remove file.
7110 * include/grub/i386/efi/machine.h: Likewise.
7111 * include/grub/i386/ieee1275/machine.h: Likewise.
7112 * include/grub/i386/pc/machine.h: Likewise.
7113 * include/grub/i386/qemu/machine.h: Likewise.
7114 * include/grub/powerpc/ieee1275/machine.h: Likewise.
7115 * include/grub/sparc64/ieee1275/machine.h: Likewise.
7116 * include/grub/x86_64/efi/machine.h: Likewise.
7117
7118 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
7119 * commands/halt.c: Likewise.
7120 * commands/reboot.c: Likewise.
7121 * include/grub/autoefi.h: Likewise.
7122 * include/grub/i386/at_keyboard.h: Likewise.
7123 * include/grub/i386/kernel.h: Likewise.
7124 * include/grub/i386/loader.h: Likewise.
7125 * include/grub/i386/pc/memory.h: Likewise.
7126 * kern/dl.c: Likewise.
7127 * kern/i386/coreboot/init.c: Likewise.
7128 * loader/i386/bsd.c: Likewise.
7129 * loader/i386/linux.c: Likewise.
7130 * loader/multiboot_loader.c: Likewise.
7131 * term/i386/pc/serial.c: Likewise.
7132 * term/usb_keyboard.c: Likewise.
7133
7134 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
7135 `<grub/machine/machine.h>'
7136 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
7137 * util/misc.c: Remove `<grub/machine/machine.h>' and
7138 `<grub/machine/time.h>'.
7139
7140 * Makefile.in (enable_grub_emu): Remove variable.
7141 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
7142
7143 * conf/any-emu.rmk: New file.
7144 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
7145 (grub_emu_init.c): Move from here ...
7146 * conf/any-emu.rmk: ... to here.
7147
7148 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
7149 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
7150 * conf/any-emu.rmk: ... to here.
7151
4efeab03
RM
71522009-11-23 Robert Millan <rmh.grub@aybabtu.com>
7153
7154 * include/grub/parser.h (grub_parser_register): Document need
7155 of `name' parameter.
7156 * normal/main.c (grub_normal_read_line): Simplify prompt string.
7157 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
7158 "sh" to "grub".
7159
ea1dd8bf
RM
71602009-11-23 Robert Millan <rmh.grub@aybabtu.com>
7161
7162 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
7163 `$(XGETTEXT)'.
7164 * include/grub/i18n.h (N_): New macro.
7165 * util/mkisofs/mkisofs.h: Likewise.
7166 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
7167 around N_().
7168 (usage): Use gettext() to translate help strings when printing them.
7169
0c140626
RM
71702009-11-23 Robert Millan <rmh.grub@aybabtu.com>
7171
7172 Based on patch from Bean
7173 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
7174
7175 * video/efi_fb.c: New file.
7176 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
7177 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
7178 variables.
7179 * conf/x86_64-efi.rmk: Likewise.
7180
87d58298
RM
71812009-11-22 Robert Millan <rmh.grub@aybabtu.com>
7182
7183 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
7184 * util/i386/pc/grub-setup.c: Likewise.
7185
994cc3a3
ST
71862009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
7187
7188 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
7189 <hurd/fs.h>
7190 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
7191 file_get_storage_info to implement grub_guess_root_device.
7192
26a61d6a
FZ
71932009-11-21 Felix Zielcke <fzielcke@z-51.de>
7194
7195 * Makefile.in (target): Use make's builtin $(shell) function
7196 instead of calling directly $(SHELL) to create the locale directories,
7197 inside the $(foreach) function.
7198
74ff1dd5
FZ
71992009-11-21 Felix Zielcke <fzielcke@z-51.de>
7200
7201 * util/grub-mkrescue.in: Print an error and usage if output option
7202 has not been given.
7203
0b787d0e
FZ
72042009-11-21 Felix Zielcke <fzielcke@z-51.de>
7205
7206 Patch from Loïc Minier <loic.minier@ubuntu.com>.
7207 * util/grub.d/30_os-prober.in: Cope with Linux entries where
7208 root and /boot are on different devices.
7209
1164b270
RM
72102009-11-21 Robert Millan <rmh.grub@aybabtu.com>
7211
7212 Fix build for srcdir != objdir.
7213
7214 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
7215 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
7216 $(srcdir).
7217 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
7218 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
7219 reference for input.
7220
13774a2f
RM
72212009-11-21 Robert Millan <rmh.grub@aybabtu.com>
7222
7223 * util/grub-mkrescue.in: Use source directory direcly (without copiing
7224 or hardlinking it). Remove -J option, Joliet is not compatible with
7225 multiple source directories.
7226
efda854e
RM
72272009-11-21 Carles Pina i Estany <carles@pina.cat>
72282009-11-21 Robert Millan <rmh.grub@aybabtu.com>
7229
7230 * util/grub-mkrescue.in: Recognize `--override-directory' option.
7231 (process_input_dir): New function. Process an arbitrary input
7232 directory.
7233 Misc adjustments to support both "override mode" and system-wide mode.
7234
6c09890c
FZ
72352009-11-20 Felix Zielcke <fzielcke@z-51.de>
7236
7237 * configure.ac (UNIFONT_BDF): Rename to ...
7238 (FONT_SOURCE): ... this. Update all users.
7239
a797824f
FZ
72402009-11-20 Felix Zielcke <fzielcke@z-51.de>
7241
7242 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
7243 to the list of unifont files to look for.
7244
cd4f42b0
RM
72452009-11-19 Robert Millan <rmh.grub@aybabtu.com>
7246
7247 Patch from Joe Auricchio <jauricchio@gmail.com>
7248 * commands/minicmd.c (grub_mini_cmd_clear): New function.
7249 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
7250 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
7251
393c783d
FZ
72522009-11-19 Felix Zielcke <fzielcke@z-51.de>
7253
7254 * Makefile.in (install-local): Add a missing backslash.
7255
b2f1e327
FZ
72562009-11-19 Felix Zielcke <fzielcke@z-51.de>
7257
7258 * include/grub/x86_64/io.h: New file.
7259
f577f7a0
RM
72602009-11-19 Robert Millan <rmh.grub@aybabtu.com>
7261
7262 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
7263 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
7264 Include `"progname.h"'.
7265 (main): Initialize gettext.
7266 * util/i386/pc/grub-setup.c: Gettexttize.
7267 * util/i386/pc/grub-mkimage.c: Likewise.
7268
7269 * Makefile.in (po/*.po): Redefine as ...
7270 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
7271
3bc7896c
RM
7272 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
7273
c37943b6
RM
72742009-11-19 Robert Millan <rmh.grub@aybabtu.com>
7275
7276 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
7277 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
7278 (program_name): Remove.
7279 (main): Initialize gettext support.
6323f705
RM
7280 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
7281 Include `<libintl.h>'.
7282 (_): New macro.
c37943b6
RM
7283
7284 * util/mkisofs/eltorito.c: Gettexttize.
7285 * util/mkisofs/joliet.c: Likewise.
7286 * util/mkisofs/mkisofs.c: Likewise.
c37943b6
RM
7287 * util/mkisofs/multi.c: Likewise.
7288 * util/mkisofs/rock.c: Likewise.
7289 * util/mkisofs/tree.c: Likewise.
7290 * util/mkisofs/write.c: Likewise.
7291
3bc7896c
RM
7292 * po/POTFILES: Update with new files.
7293
5ce77c6e
RM
72942009-11-18 Robert Millan <rmh.grub@aybabtu.com>
7295
7296 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
7297 * util/mkisofs/iso9660.h: Likewise.
7298 * util/mkisofs/joliet.c: Likewise.
7299 * util/mkisofs/mkisofs.c: Likewise.
7300 * util/mkisofs/mkisofs.h: Likewise.
7301 * util/mkisofs/rock.c: Likewise.
7302 * util/mkisofs/tree.c: Likewise.
7303 * util/mkisofs/write.c: Likewise.
7304
7305 * util/mkisofs/eltorito.c (rcsid): Remove.
7306 * util/mkisofs/hash.c: Likewise.
7307 * util/mkisofs/joliet.c: Likewise.
7308 * util/mkisofs/name.c: Likewise.
7309 * util/mkisofs/rock.c: Likewise.
7310 * util/mkisofs/tree.c: Likewise.
7311 * util/mkisofs/write.c: Likewise.
7312
1dabbc77
RM
73132009-11-18 Robert Millan <rmh.grub@aybabtu.com>
7314
7315 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
7316 instead of static allocation.
7317 * util/mkisofs/match.h: Likewise.
7318
633877cb
RM
73192009-11-18 Robert Millan <rmh.grub@aybabtu.com>
7320
3bc7896c
RM
7321 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
7322 and `util/grub.d/10_linux.in'.
633877cb
RM
7323 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
7324 translatable Shell files.
7325
af1c0c85
RM
73262009-11-18 Robert Millan <rmh.grub@aybabtu.com>
7327
7328 * Makefile.in ($(srcdir)/aclocal.m4): New target.
7329
769ae37b
RM
73302009-11-17 Robert Millan <rmh.grub@aybabtu.com>
7331
7332 * INSTALL: Document Automake is needed for bootstrap.
3bc7896c 7333 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
769ae37b
RM
7334 * util/grub.d/10_kfreebsd.in (bindir): New variable.
7335 Add gettext initialization.
7336 (kfreebsd_entry): Make menuentry output translatable.
7337
73382009-11-17 Robert Millan <rmh.grub@aybabtu.com>
7339
7340 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
7341 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
7342 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
7343 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
7344 (LINGUAS): Auto-generate using `po/LINGUAS'.
3bc7896c 7345 * po/LINGUAS: New file.
769ae37b
RM
7346
73472009-11-17 Robert Millan <rmh.grub@aybabtu.com>
7348
7349 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
7350 other things).
7351 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
7352 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
7353 bindtextdomain() calls for gettext initialization.
7354
73552009-11-17 Robert Millan <rmh.grub@aybabtu.com>
7356
7357 * gnulib/progname.c: New file (imported from Gnulib).
7358 * gnulib/progname.h: Likewise.
7359 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
7360 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
7361 (usage): Replace `progname' with `program_name'.
7362 (main): Use set_program_name() for program name initialization.
7363
73642009-11-17 Robert Millan <rmh.grub@aybabtu.com>
7365
7366 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
7367 from here ...
7368 * Makefile.in (CPPFLAGS): ... to here.
7369
73702009-11-16 Robert Millan <rmh.grub@aybabtu.com>
7371
7372 * aclocal.m4: Move from here ...
7373 * acinclude.m4: ... to here.
7374 * autogen.sh: Add call to `aclocal'.
7375 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
7376
73772009-11-16 Robert Millan <rmh.grub@aybabtu.com>
7378
7379 * Makefile.in (CLEANFILES): Add `po/*.mo'.
7380 (LINGUAS): New variable.
7381 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
7382 (install-local): Install MO files.
7383 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
7384 * include/grub/i18n.h: New file.
3bc7896c
RM
7385 * po/POTFILES: New file.
7386 * po/ca.po: New file.
769ae37b
RM
7387 * util/grub.d/10_linux.in (bindir): New variable.
7388 Add gettext initialization.
7389 (linux_entry): Make menuentry output translatable.
7390 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
7391 (usage): Make --help output translatable.
7392 (main): Initialize gettext.
7393
02c0a6ad
RM
73942009-11-17 Robert Millan <rmh.grub@aybabtu.com>
7395
7396 * import_gcry.py: New file (written by Vladimir with minor
7397 adjustments).
7398 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
7399 ciphers.
7400 * INSTALL: Document that Python is required for bootstrap.
7401
74022009-11-17 Robert Millan <rmh.grub@aybabtu.com>
7403
7404 Import ciphers from libgcrypt 1.4.4.
7405
7406 * lib/libgcrypt/cipher/ChangeLog
7407 * lib/libgcrypt/cipher/ac.c
7408 * lib/libgcrypt/cipher/arcfour.c
7409 * lib/libgcrypt/cipher/bithelp.h
7410 * lib/libgcrypt/cipher/blowfish.c
7411 * lib/libgcrypt/cipher/camellia-glue.c
7412 * lib/libgcrypt/cipher/camellia.c
7413 * lib/libgcrypt/cipher/camellia.h
7414 * lib/libgcrypt/cipher/cast5.c
7415 * lib/libgcrypt/cipher/cipher.c
7416 * lib/libgcrypt/cipher/crc.c
7417 * lib/libgcrypt/cipher/des.c
7418 * lib/libgcrypt/cipher/dsa.c
7419 * lib/libgcrypt/cipher/ecc.c
7420 * lib/libgcrypt/cipher/elgamal.c
7421 * lib/libgcrypt/cipher/hash-common.c
7422 * lib/libgcrypt/cipher/hash-common.h
7423 * lib/libgcrypt/cipher/hmac-tests.c
7424 * lib/libgcrypt/cipher/md.c
7425 * lib/libgcrypt/cipher/md4.c
7426 * lib/libgcrypt/cipher/md5.c
7427 * lib/libgcrypt/cipher/primegen.c
7428 * lib/libgcrypt/cipher/pubkey.c
7429 * lib/libgcrypt/cipher/rfc2268.c
7430 * lib/libgcrypt/cipher/rijndael-tables.h
7431 * lib/libgcrypt/cipher/rijndael.c
7432 * lib/libgcrypt/cipher/rmd.h
7433 * lib/libgcrypt/cipher/rmd160.c
7434 * lib/libgcrypt/cipher/rsa.c
7435 * lib/libgcrypt/cipher/seed.c
7436 * lib/libgcrypt/cipher/serpent.c
7437 * lib/libgcrypt/cipher/sha1.c
7438 * lib/libgcrypt/cipher/sha256.c
7439 * lib/libgcrypt/cipher/sha512.c
7440 * lib/libgcrypt/cipher/tiger.c
7441 * lib/libgcrypt/cipher/twofish.c
7442 * lib/libgcrypt/cipher/whirlpool.c
7443
af2f93ac
RM
74442009-11-16 Robert Millan <rmh.grub@aybabtu.com>
7445
7446 Fix build for systems without error().
7447
7448 * gnulib/error.c: New file (imported from Gnulib).
7449 * gnulib/error.h: Likewise.
7450 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
7451 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
7452 (this variable is now used by error()).
7453
73fb3dd5
FZ
74542009-11-16 Felix Zielcke <fzielcke@z-51.de>
7455
814f5e96
FZ
7456 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
7457 instead of relying that char is signed.
73fb3dd5 7458
a691ca33
VS
74592009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
7460
7461 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
7462 blocksize different from specified.
7463 (grub_pxefs_read): Likewise.
7464
2af8f0f4
FZ
74652009-11-16 Felix Zielcke <fzielcke@z-51.de>
7466
7467 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
7468
7469 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
7470 (grub_ata_readwrite): Likewise. Update 2 format strings.
7471 (grub_atapi_read): Likewise.
7472
7473 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
7474 * conf/i386.rmk (pkglib_MODULES): ... to here ...
7475 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
7476 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
7477 (ata_mod_LDFLAGS): Move from here ...
7478 * conf/i386.rmk: ... to here ...
7479 * conf/x86_64-efi.rmk: ... and here.
7480 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
7481 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
7482
83bdecaf
RM
74832009-11-16 Robert Millan <rmh.grub@aybabtu.com>
7484
7485 Relicense multiboot.h, with RMS' blessing.
7486
7487 * include/multiboot.h: Change to X11 license.
7488
fd6fd3d7
RM
74892009-11-15 Robert Millan <rmh.grub@aybabtu.com>
7490
7491 Support --version in grub-mkisofs.
7492
7493 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
7494 (OPTION_VERSION): New macro.
7495 (ld_options): Recognize --version.
7496 (usage): Move `program_name' from here ...
7497 (program_name): ... to here. Add `static' qualifier.
7498 (main): Recognize `OPTION_VERSION'.
7499
16a88c49
FZ
75002009-11-15 Felix Zielcke <fzielcke@z-51.de>
7501
7502 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
7503 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
7504
a4158476
RM
75052009-11-14 Robert Millan <rmh.grub@aybabtu.com>
7506
7507 Fix help2man generation for mkisofs.
7508
7509 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
7510 (usage): Send output to stdout (rather than stderr).
7511
fc2208b0
RM
75122009-11-14 Robert Millan <rmh.grub@aybabtu.com>
7513
7514 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
7515 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
7516 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
7517 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
7518 (bin_SCRIPTS): Add `grub-mkfloppy'.
7519 (grub_mkfloppy_SOURCES): New variable.
7520
7521 * util/grub-mkrescue.in: New file.
7522 * util/i386/pc/grub-mkfloppy.in: New file.
7523
7524 * util/i386/coreboot/grub-mkrescue.in: Remove.
7525 * util/i386/pc/grub-mkrescue.in: Remove.
7526
8d0edf4a
RM
75272009-11-13 Robert Millan <rmh.grub@aybabtu.com>
7528
7529 * include/grub/multiboot.h (struct grub_multiboot_header): Move
7530 from here ...
7531 * include/multiboot.h (struct multiboot_header): ... to here. Update
7532 all users.
7533 * include/grub/multiboot.h (struct grub_multiboot_info): Move
7534 from here ...
7535 * include/multiboot.h (struct multiboot_info): ... to here. Update
7536 all users.
7537 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
7538 from here ...
7539 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
7540 Update all users.
7541 * include/grub/multiboot.h (struct grub_mod_list): Move
7542 from here ...
7543 * include/multiboot.h (struct multiboot_mod_list): ... to here.
7544 Update all users.
7545
a73f5969
RM
75462009-11-13 Robert Millan <rmh.grub@aybabtu.com>
7547
7548 * include/multiboot2.h (multiboot_word): Rename from this ...
7549 (multiboot2_word): ... to this. Update all users.
7550 (multiboot_header): Rename from this ...
7551 (multiboot2_header): ... to this. Update all users.
7552 (multiboot_tag_header): Rename from this ...
7553 (multiboot2_tag_header): ... to this. Update all users.
7554 (multiboot_tag_start): Rename from this ...
7555 (multiboot2_tag_start): ... to this. Update all users.
7556 (multiboot_tag_name): Rename from this ...
7557 (multiboot2_tag_name): ... to this. Update all users.
7558 (multiboot_tag_module): Rename from this ...
7559 (multiboot2_tag_module): ... to this. Update all users.
7560 (multiboot_tag_memory): Rename from this ...
7561 (multiboot2_tag_memory): ... to this. Update all users.
7562 (multiboot_tag_unused): Rename from this ...
7563 (multiboot2_tag_unused): ... to this. Update all users.
7564 (multiboot_tag_end): Rename from this ...
7565 (multiboot2_tag_end): ... to this. Update all users.
7566
1c8927f0
RM
75672009-11-13 Robert Millan <rmh.grub@aybabtu.com>
7568
7569 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
7570 this platform we should support Multiboot1 first.
7571
7572 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
7573 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
7574 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
7575
6e1e0d89
RM
75762009-11-12 Robert Millan <rmh.grub@aybabtu.com>
7577
7578 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
7579 of write calls (converting them to fwrite() if they aren't already).
7580 (get_torito_desc): Likewise.
7581 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
7582
7f2b34d8
RM
75832009-11-12 Robert Millan <rmh.grub@aybabtu.com>
7584
7585 * util/i386/pc/grub-install.in: Move from here ...
7586 * util/grub-install.in: ... to here. Update all users.
7587
c0ef3311
CW
75882009-11-11 Colin Watson <cjwatson@ubuntu.com>
7589
7590 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
7591
e1f240ff
RM
75922009-11-11 Robert Millan <rmh.grub@aybabtu.com>
7593
7594 Support for El Torito without floppy emulation.
7595
7596 * util/mkisofs/eltorito.c: Include `<errno.h>'.
7597 (init_boot_catalog): Improve error handling.
7598 (get_torito_desc): Don't use floppy emulation unless requested by
7599 user. Patch boot information table when requested via
7600 `-boot-info-table'.
7601 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
7602 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
7603 (use_boot_info_table): New variables.
7604 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
7605 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
7606 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
7607 `--eltorito-emul-floppy'.
7608 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
7609 and `OPTION_ELTORITO_EMUL_FLOPPY'.
7610 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
7611 (use_boot_info_table, get_731): New prototypes.
7612 * util/mkisofs/write.c (get_731): New function.
7613
af7d4de5
FZ
76142009-11-11 Felix Zielcke <fzielcke@z-51.de>
7615
7616 Fix the generation of the man page.
7617
7618 * util/pc/i386/grub-install.in: Source
7619 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
7620
2c55dbc0
RM
76212009-11-11 Robert Millan <rmh.grub@aybabtu.com>
7622
7623 Large file support for grub-mkisofs.
7624
7625 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
7626 * util/mkisofs/mkisofs.c (next_extent, last_extent)
7627 (session_start): Upgrade type to `uint64_t'. Update all users.
7628 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
7629 (struct directory_entry): Upgrade type of `starting_block' and
7630 `size' to `uint64_t'. Update all users.
7631 (struct deferred): Remove unused structure.
7632 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
7633 Update all users.
7634 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
7635 file is larger than `UINT32_MAX'.
7636 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
7637 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
7638 return value.
7639 (struct deferred_write): Upgrade type of `extent' and `size' to
7640 `uint64_t'. Update all users.
7641 (last_extent_written): Upgrade type to `uint64_t'. Update all
7642 users.
7643 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
7644 Update all users. Upgrade type of `remain' to `int64_t' and
7645 `use' to `size_t'. Use error() to handle fread() errors.
7646 (write_files): Rely on write_one_file() rather than calling
7647 xfwrite() directly.
7648
6a9cead5
FZ
76492009-11-09 Felix Zielcke <fzielcke@z-51.de>
7650
7651 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
7652
4825d790
RM
76532009-11-09 Robert Millan <rmh.grub@aybabtu.com>
7654
7655 * util/mkisofs/fnmatch.c: Remove.
7656 * util/mkisofs/getopt1.c: Likewise.
7657 * util/mkisofs/getopt.c: Likewise.
7658 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
7659 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
7660 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
7661 `gnulib/getopt1.c' and `gnulib/getopt.c'.
7662 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
7663
7664 * configure.ac: Detect `mingw32msvc' host_os.
7665 Check for lstat(), getuid() and getgid().
7666
7667 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
7668 instances of `u_char' with `uint8_t'.
7669
7670 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
7671 [!HAVE_GETUID] (getuid): New function (stub).
7672 [!HAVE_GETGID] (getgid): Likewise.
7673 [!HAVE_LSTAT] (lstat): Likewise.
7674 [!S_IROTH] (S_IROTH): New macro (dummy).
7675 [!S_IRGRP] (S_IRGRP): Likewise.
7676
84b860d8
RM
76772009-11-09 Robert Millan <rmh.grub@aybabtu.com>
7678
7679 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
7680 conditional expression).
7681
66e9b712
RM
76822009-11-09 Robert Millan <rmh.grub@aybabtu.com>
7683
7684 Import from Gnulib.
7685
7686 * gnulib/fnmatch.c: New file.
7687 * gnulib/fnmatch.h: Likewise.
7688 * gnulib/fnmatch_loop.c: Likewise.
7689 * gnulib/getopt.c: Likewise.
7690 * gnulib/getopt.h: Likewise.
7691 * gnulib/getopt1.c: Likewise.
7692 * gnulib/getopt_int.h: Likewise.
7693 * gnulib/gettext.h: Likewise.
7694
34f4a5b0
RM
76952009-11-09 Robert Millan <rmh.grub@aybabtu.com>
7696
7697 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
7698 * normal/handler.c (read_handler_list): Likewise.
7699
ac451143
RM
77002009-11-09 Robert Millan <rmh.grub@aybabtu.com>
7701
7702 Misc cleanup.
7703
7704 * kern/command.c (grub_register_command_prio): Use
7705 grub_zalloc() instead of explicitly zeroing data.
7706 * kern/list.c: Include `<grub/mm.h>'.
7707 (grub_named_list_find): Replace `0' with `NULL'.
7708 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
7709 (fs_module_list): Change type to `grub_named_list_t'. Update all
7710 users.
7711 * normal/dyncmd.c (read_command_list): Add space between function
7712 call and parenthesis.
7713 * normal/handler.c (read_handler_list): Likewise.
7714
4089b167
RM
77152009-11-09 Robert Millan <rmh.grub@aybabtu.com>
7716
7717 * normal/auth.c (punishment_delay): Moved from here ...
7718 (grub_auth_strcmp): ... to here (inside function).
7719
325f5037
RM
77202009-11-09 Robert Millan <rmh.grub@aybabtu.com>
7721
7722 * include/grub/list.h (struct grub_named_list): Remove `const'
7723 qualifier from `name'.
7724 (struct grub_prio_list): Likewise.
7725
7aea29a3
RM
77262009-11-09 Robert Millan <rmh.grub@aybabtu.com>
7727
7728 * normal/auth.c: Include `<grub/time.h>'.
7729 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
7730
3fd6f044
RM
77312009-11-09 Robert Millan <rmh.grub@aybabtu.com>
7732
7733 * normal/auth.c (punishment_delay): New variable.
7734 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
7735 (grub_auth_check_authentication): Punish failed login attempts with
7736 an incremental (2^N) delay.
7737
a4cd68e4
RM
77382009-11-09 Robert Millan <rmh.grub@aybabtu.com>
7739
7740 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
7741 path with $(srcdir).
7742
7ad12f43
VS
77432009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
7744
7745 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
7746
c1129f03
RM
77472009-11-09 Robert Millan <rmh.grub@aybabtu.com>
7748
7749 * util/i386/coreboot/grub-mkrescue.in: New file.
7750 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
7751 variables.
7752
7753 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
7754 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
7755 * configure.ac: Add header and function checks to satisfy grub-mkisofs
7756 requirements.
7757 * util/mkisofs/defaults.h: New file.
7758 * util/mkisofs/eltorito.c: Likewise.
7759 * util/mkisofs/exclude.h: Likewise.
7760 * util/mkisofs/fnmatch.c: Likewise.
7761 * util/mkisofs/getopt.c: Likewise.
7762 * util/mkisofs/getopt1.c: Likewise.
7763 * util/mkisofs/hash.c: Likewise.
7764 * util/mkisofs/include/fctldefs.h: Likewise.
7765 * util/mkisofs/include/mconfig.h: Likewise.
7766 * util/mkisofs/include/prototyp.h: Likewise.
7767 * util/mkisofs/include/statdefs.h: Likewise.
7768 * util/mkisofs/iso9660.h: Likewise.
7769 * util/mkisofs/joliet.c: Likewise.
7770 * util/mkisofs/match.c: Likewise.
7771 * util/mkisofs/match.h: Likewise.
7772 * util/mkisofs/mkisofs.c: Likewise.
7773 * util/mkisofs/mkisofs.h: Likewise.
7774 * util/mkisofs/multi.c: Likewise.
7775 * util/mkisofs/name.c: Likewise.
7776 * util/mkisofs/rock.c: Likewise.
7777 * util/mkisofs/tree.c: Likewise.
7778 * util/mkisofs/write.c: Likewise.
7779
ec8bb77d
VS
77802009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
7781
7782 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
7783 being insecure.
7784
3716b12c
RM
77852009-11-08 Robert Millan <rmh.grub@aybabtu.com>
7786
7787 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
7788 `grub-mkimage' (and use $0 when possible).
7789
b97b7b91
RM
77902009-11-08 Robert Millan <rmh.grub@aybabtu.com>
7791
7792 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
7793 error message for excessively large memory map.
7794
04114812
RM
77952009-11-08 Robert Millan <rmh.grub@aybabtu.com>
7796
7797 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
7798 executable bit.
7799
e4eb2373
RM
78002009-11-08 Robert Millan <rmh.grub@aybabtu.com>
7801
7802 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
7803 message for coreboot users.
7804
c926e1d5 78052009-11-07 Robert Millan <rmh.grub@aybabtu.com>
7806
7807 Fix build with GNU gold.
7808
7809 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
7810 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
7811 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
7812 link addresses.
7813 * aclocal.m4: Likewise.
7814
86e5b1db 78152009-11-04 Felix Zielcke <fzielcke@z-51.de>
7816
7817 * configure.ac (AC_PREREQ): Bump to 2.59d.
7818 * INSTALL: Make it more clear when Autoconf and Ruby are
7819 needed and when to run `./autogen.sh'.
7820
246cd78f 78212009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
7822
7823 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
7824 OSes.
7825
4f9dfb37 78262009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
7827
7828 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
7829
b82bd5e1 78302009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
7831
7832 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
7833 giving it to GNU Mach.
7834
ff1a9bca 78352009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
7836
7837 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
7838 GNU partition number to get internal GRUB partition number.
7839
61697d9c 78402009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
7841
7842 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
7843 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
7844
a50569e1 78452009-11-01 Robert Millan <rmh.grub@aybabtu.com>
7846
7847 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
7848 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
7849 case.
7850
5b153867 78512009-11-01 Felix Zielcke <fzielcke@z-51.de>
7852
7853 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
7854
d9e2cd70 78552009-10-30 Robert Millan <rmh.grub@aybabtu.com>
7856
7857 Fix build problem.
7858
7859 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
7860 `-isystem=$(srcdir)/include'.
7861
805111a4 78622009-10-30 Robert Millan <rmh.grub@aybabtu.com>
7863
7864 * util/i386/pc/grub-install.in: Remove hint that device.map should be
7865 checked (grub-install doesn't currently rely on it).
7866
fa6e945f 78672009-10-29 Robert Millan <rmh.grub@aybabtu.com>
7868
7869 Revert SVN r2660.
7870
7871 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
7872 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
7873 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
7874 * conf/i386-ieee1275.rmk: Likewise.
7875 * conf/i386-pc.rmk: Likewise.
7876 * conf/powerpc-ieee1275.rmk: Likewise.
7877 * conf/sparc64-ieee1275.rmk: Likewise.
7878 * conf/x86_64-efi.rmk: Likewise.
7879
cee15086 78802009-10-28 Robert Millan <rmh.grub@aybabtu.com>
7881
7882 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
7883
95b9239e 78842009-10-28 Robert Millan <rmh.grub@aybabtu.com>
7885
7886 * include/grub/misc.h: Stop checking for APPLE_CC.
7887
2ed19dfd 78882009-10-28 Robert Millan <rmh.grub@aybabtu.com>
7889
7890 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
7891 doesn't cause an infinite call loop.
7892
fdcdde19 78932009-10-28 Felix Zielcke <fzielcke@z-51.de>
7894
7895 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
7896 strings.
7897
cefabfe1 78982009-10-26 Robert Millan <rmh.grub@aybabtu.com>
7899
7900 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
7901 variable.
7902 * Makefile.in: Likewise.
7903
ed96ab6d 79042009-10-26 Robert Millan <rmh.grub@aybabtu.com>
7905
7906 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
7907
0579b753 79082009-10-26 Robert Millan <rmh.grub@aybabtu.com>
7909
7910 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
7911
478df409 79122009-10-26 Robert Millan <rmh.grub@aybabtu.com>
7913
7914 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
7915
083d1679 79162009-10-26 Robert Millan <rmh.grub@aybabtu.com>
7917
7918 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
7919 from here ...
7920 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
7921
5947ae32 79222009-10-26 Robert Millan <rmh.grub@aybabtu.com>
7923
7924 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
7925 in $(MAKEINFO) invocation. This makes it clear in output that
7926 errors are being ignored.
7927
94180ff6 79282009-10-26 Robert Millan <rmh.grub@aybabtu.com>
7929
7930 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
7931 from here ...
7932 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
7933 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
7934 * conf/i386-ieee1275.rmk: Likewise.
7935 * conf/i386-pc.rmk: Likewise.
7936 * conf/powerpc-ieee1275.rmk: Likewise.
7937 * conf/sparc64-ieee1275.rmk: Likewise.
7938 * conf/x86_64-efi.rmk: Likewise.
7939
9031b03a 79402009-10-26 Colin Watson <cjwatson@ubuntu.com>
7941
7942 * util/grub-editenv.c (main): If only a command is given, use
7943 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
7944 (usage): FILENAME is now optional and has a default.
7945
e4f6809b 79462009-10-26 Colin Watson <cjwatson@ubuntu.com>
7947
7948 Improve grub-mkconfig performance when there are several menu
7949 entries on a single filesystem.
7950
7951 * util/grub.d/10_linux.in (linux_entry): Cache the output of
7952 prepare_grub_to_access_device.
7953 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
7954 * util/grub.d/30_os-prober.in: Likewise.
7955
67937d4d 79562009-10-26 Robert Millan <rmh.grub@aybabtu.com>
7957
7958 * util/grub.d/10_freebsd.in: Remove.
7959 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
7960 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
7961
ee3756cc 79622009-10-26 Robert Millan <rmh.grub@aybabtu.com>
7963
5c35048e 7964 * docs/grub.cfg: Fix example usage of *BSD loaders.
ee3756cc 7965
4dea1c6f 79662009-10-25 Robert Millan <rmh.grub@aybabtu.com>
7967
7968 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
7969 grub_util_error() call.
7970
042484d7 79712009-10-25 Robert Millan <rmh.grub@aybabtu.com>
7972
7973 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
7974 `reserved_first_sector' member.
7975 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
7976 `reserved_first_sector' to 1.
7977 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
7978 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
7979 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
7980 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
7981 filesystems which begin at first sector.
7982 (options): New option --skip-fs-probe.
7983 (main): Handle --skip-fs-probe and pass it to setup().
7984
d64448a7 79852009-10-25 Robert Millan <rmh.grub@aybabtu.com>
7986
7987 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
7988 (memset): Fix function prototype.
7989
508d42ec 79902009-10-25 Robert Millan <rmh.grub@aybabtu.com>
79912009-10-25 Vasily Averin <vvs@parallels.com>
7992
7993 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
7994 `dirent.direntlen == 0'.
7995
b240e30c 79962009-10-25 Robert Millan <rmh.grub@aybabtu.com>
7997
7998 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
7999 `cpio'.
8000 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
8001
346e7fbe 80022009-10-25 Robert Millan <rmh.grub@aybabtu.com>
8003
8004 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
8005 `__trampoline_setup' and `__ucmpdi2'.
8006 * include/grub/powerpc/libgcc.h: Only export symbols for functions
8007 that libgcc provides.
8008
cdb308b0 80092009-10-25 Robert Millan <rmh.grub@aybabtu.com>
8010
8011 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
8012 * include/grub/sparc64/libgcc.h (memset): Likewise.
8013 * include/grub/misc.h (memset, memcmp): New function prototypes.
8014
fb26abc2 80152009-10-25 Robert Millan <rmh.grub@aybabtu.com>
8016
8017 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
8018 `cpio'.
8019 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
8020
f6693890 80212009-10-25 Robert Millan <rmh.grub@aybabtu.com>
8022
8023 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
8024 * docs/grub.cfg: Compensate for recent change in multiboot
8025 loader (since 2009-08-14 it won't pass filename to payload).
8026 * util/grub.d/10_hurd.in: Likewise.
8027
0933cdc0 80282009-10-21 Felix Zielcke <fzielcke@z-51.de>
8029
8030 * config.guess: Update to latest version from config git
8031 repository.
8032 * config.sub: Likewise.
8033
3b2fe8c2 80342009-10-20 Robert Millan <rmh.grub@aybabtu.com>
8035
8036 Fix build on sparc64.
8037
8038 * configure.ac: Perform checks for libgcc symbols before
8039 adding `-nostdlib' to LDFLAGS.
8040
46695a62 80412009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
8042
8043 Let user specify OpenBSD root device.
8044
8045 * loader/i386/bsd.c (openbsd_root): New variable.
8046 (openbsd_opts): New option 'root'.
8047 (OPENBSD_ROOT_ARG): New macro.
8048 (grub_openbsd_boot): Use 'openbsd_root'.
8049 (grub_cmd_openbsd): Fill 'openbsd_root'.
8050
d2b6b7fc 80512009-10-16 Robert Millan <rmh.grub@aybabtu.com>
8052
8053 * NEWS: Misc adjustments.
8054
421bd7ac 80552009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
8056
8057 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
8058
f1d29d87 80592009-10-16 Robert Millan <rmh.grub@aybabtu.com>
8060
8061 * configure.ac: Bump version to 1.97.
8062
6f3cd880 80632009-10-16 Colin Watson <cjwatson@ubuntu.com>
8064
8065 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
8066 -mno-3dnow on x86 architectures. Some toolchains enable these
8067 features by default, but they rely on registers that aren't enabled
8068 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
8069
035f7122 80702009-10-15 Robert Millan <rmh.grub@aybabtu.com>
8071
8072 Make entry text a bit more readable.
8073
8074 * util/grub.d/10_linux.in: Add `with' before `Linux'.
8075
44998e58 80762009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
8077
8078 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
8079
cd2851b3 80802009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
8081
8082 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
8083 operations.
8084
c6f3b249 80852009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
8086
8087 * configure.ac: Add missing dollar.
8088
6b5886ba 80892009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
8090
8091 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
8092
8093 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
8094 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
8095 exports.
8096 * include/grub/sparc64/libgcc.h: Likewise. Use
8097 preprocessor conditionals.
8098
e9d66f6d 80992009-10-14 Robert Millan <rmh.grub@aybabtu.com>
8100
8101 * conf/common.rmk (grub-dumpbios): Remove rule.
8102 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
8103 * util/grub-dumpbios.in: Remove file.
8104
9155bc17 81052009-10-14 Robert Millan <rmh.grub@aybabtu.com>
8106
8107 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
8108 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
8109
8110 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
8111 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
8112 users.
8113
8114 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
8115 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
8116 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
8117 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
8118 users.
8119
bf7f7a18 81202009-10-12 Robert Millan <rmh.grub@aybabtu.com>
8121
8122 * term/tparm.c: Switch to GPLv3.
8123
86564c26 81242009-10-09 Robert Millan <rmh.grub@aybabtu.com>
8125
8126 * include/grub/i386/cpuid.h: Add header protection.
8127
5c936493 81282009-10-09 Robert Millan <rmh.grub@aybabtu.com>
8129
8130 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
8131
8132 * include/grub/i386/cpuid.h: New file.
8133 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
8134 (has_longmode): Rename to ...
8135 (grub_cpuid_has_longmode): ... this. Update all users. Remove
8136 `static' attribute.
8137 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
8138 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
8139 on a CPU that doesn't implement AMD64 instruction set.
8140
186e7cf2 81412009-10-06 Colin Watson <cjwatson@ubuntu.com>
8142
8143 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
8144 that version.texi is rebuilt on version number changes.
8145
83b65c4a 81462009-10-06 Colin Watson <cjwatson@ubuntu.com>
8147
8148 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
8149 Fixes bug #27602.
8150
d244281c 81512009-10-06 Colin Watson <cjwatson@ubuntu.com>
8152
8153 * util/i386/pc/grub-install.in: Source
8154 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
8155 that the --grub-probe option will work.
8156 * util/sparc64/ieee1275/grub-install.in: Likewise.
8157
da25306d 81582009-10-05 Robert Millan <rmh.grub@aybabtu.com>
8159
8160 * configure.ac: Bump version to 1.97~beta4.
8161
e8ee83c0 81622009-10-03 Robert Millan <rmh.grub@aybabtu.com>
8163
8164 Resync grub-mkdevicemap in x86_64-efi.
8165
8166 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
8167 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
8168 `util/devicemap.c'.
8169
50dcabcf 81702009-10-01 Colin Watson <cjwatson@ubuntu.com>
8171
8172 * util/grub-editenv.c (create_envblk_file): Write new block with a
8173 .new suffix and then rename it into place, to ensure atomic
8174 creation.
8175
0e51c3a7 81762009-09-28 Robert Millan <rmh.grub@aybabtu.com>
8177
8178 Do not automatically install headers.
8179
8180 * Makefile.in (include_DATA): Remove. Update all users.
8181
31299a95 81822009-09-26 Robert Millan <rmh.grub@aybabtu.com>
8183
8184 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
8185 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
8186
8187 * util/osdetect.lua: Remove.
8188 * script/lua/lauxlib.c: Likewise.
8189 * script/lua/ldebug.c: Likewise.
8190 * script/lua/grub_main.c: Likewise.
8191 * script/lua/lauxlib.h: Likewise.
8192 * script/lua/ldebug.h: Likewise.
8193 * script/lua/ltablib.c: Likewise.
8194 * script/lua/liolib.c: Likewise.
8195 * script/lua/lstrlib.c: Likewise.
8196 * script/lua/lualib.h: Likewise.
8197 * script/lua/ldo.c: Likewise.
8198 * script/lua/ldump.c: Likewise.
8199 * script/lua/ldo.h: Likewise.
8200 * script/lua/loslib.c: Likewise.
8201 * script/lua/lundump.c: Likewise.
8202 * script/lua/grub_lib.c: Likewise.
8203 * script/lua/ldblib.c: Likewise.
8204 * script/lua/lundump.h: Likewise.
8205 * script/lua/lmem.c: Likewise.
8206 * script/lua/grub_lib.h: Likewise.
8207 * script/lua/lmathlib.c: Likewise.
8208 * script/lua/lstate.c: Likewise.
8209 * script/lua/ltm.c: Likewise.
8210 * script/lua/lvm.c: Likewise.
8211 * script/lua/lmem.h: Likewise.
8212 * script/lua/lstate.h: Likewise.
8213 * script/lua/ltm.h: Likewise.
8214 * script/lua/ltable.c: Likewise.
8215 * script/lua/lvm.h: Likewise.
8216 * script/lua/llex.c: Likewise.
8217 * script/lua/lgc.c: Likewise.
8218 * script/lua/grub_lua.h: Likewise.
8219 * script/lua/loadlib.c: Likewise.
8220 * script/lua/lfunc.c: Likewise.
8221 * script/lua/lopcodes.c: Likewise.
8222 * script/lua/lparser.c: Likewise.
8223 * script/lua/ltable.h: Likewise.
8224 * script/lua/llex.h: Likewise.
8225 * script/lua/lgc.h: Likewise.
8226 * script/lua/lfunc.h: Likewise.
8227 * script/lua/lbaselib.c: Likewise.
8228 * script/lua/lopcodes.h: Likewise.
8229 * script/lua/lparser.h: Likewise.
8230 * script/lua/lzio.c: Likewise.
8231 * script/lua/linit.c: Likewise.
8232 * script/lua/lobject.c: Likewise.
8233 * script/lua/llimits.h: Likewise.
8234 * script/lua/lstring.c: Likewise.
8235 * script/lua/lzio.h: Likewise.
8236 * script/lua/lapi.c: Likewise.
8237 * script/lua/lcode.c: Likewise.
8238 * script/lua/lua.h: Likewise.
8239 * script/lua/lobject.h: Likewise.
8240 * script/lua/lstring.h: Likewise.
8241 * script/lua/lapi.h: Likewise.
8242 * script/lua/lcode.h: Likewise.
8243 * script/lua/luaconf.h: Likewise.
8244
cb8a2c38 82452009-09-26 Colin Watson <cjwatson@ubuntu.com>
8246
8247 * docs/grub.texi (Command-line and menu entry commands): Document
8248 date and echo commands.
8249
6b9b6276 82502009-09-24 Pavel Roskin <proski@gnu.org>
8251
8252 * include/grub/kernel.h (struct grub_module_header): Remove
8253 `grub_module_header_types'. Make `type' unsigned. Make `size'
8254 32-bit on all platforms.
8255 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
8256 8-bit field. Use grub_host_to_target32() for `size'.
8257 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
8258 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
8259 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
8260
4e5a02a7 82612009-09-24 Robert Millan <rmh.grub@aybabtu.com>
8262
8263 Fix "lost keypress" bug in at_keyboard.
8264
8265 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
8266 Checks for readyness of input buffer (without flushing it).
8267 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
8268 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
8269
c6dcedf6 82702009-09-24 Robert Millan <rmh.grub@aybabtu.com>
8271
8272 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
8273 size check within GRUB_MACHINE_PCBIOS section.
8274
74c958b1 82752009-09-24 Robert Millan <rmh.grub@aybabtu.com>
8276
8277 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
8278 return value.
8279 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
8280 KEYBOARD_ISREADY check.
8281 (grub_at_keyboard_checkkey): Rename to ...
8282 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
8283 Remove gratuitous cast.
8284
ff420223 82852009-09-23 Colin Watson <cjwatson@ubuntu.com>
8286
8287 * configure.ac: Call AC_PROG_MKDIR_P.
8288 * Makefile.in (docs/stamp-vti): Create docs directory. Create
8289 version.texi in $(builddir) rather than $(srcdir).
8290 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
8291 to makeinfo's @include search path.
8292
d96875df 82932009-09-23 Felix Zielcke <fzielcke@z-51.de>
8294
8295 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
8296
9b3f8365 82972009-09-23 Felix Zielcke <fzielcke@z-51.de>
8298
8299 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
8300 for `*.dpkg-new'.
8301
c44c90db 83022009-09-21 Colin Watson <cjwatson@ubuntu.com>
8303
8304 Build info documentation. Some code borrowed from Automake.
8305
8306 * configure.ac: Check for makeinfo.
8307 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
8308 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
8309 docs/version.texi.
8310 (MOSTLYCLEANFILES): Add vti.tmp.
8311 (docs/version.texi, docs/stamp-vti): Update automatically.
8312 (docs/grub.info): Build info documentation. Use --force and ignore
8313 errors for now.
8314 (all-local): Add $(INFOS).
8315 (install-local): Install info files.
8316 (uninstall): Uninstall info files.
8317 * docs/version.texi: Remove from revision control. This file is
8318 automatically generated on build now.
8319 * gendistlist.sh: Add `*.info'.
8320
e0b37bb5 83212009-09-21 Felix Zielcke <fzielcke@z-51.de>
8322
8323 * kern/term.c: Fix indentation.
8324
5a78865b 83252009-09-21 Felix Zielcke <fzielcke@z-51.de>
8326
8327 * util/hostdisk.c: Fix a comment.
8328
dace7e8a 83292009-09-20 Robert Millan <rmh.grub@aybabtu.com>
8330
8331 Fix regression introduced in r2539.
8332
8333 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
8334 to 0xA1.
8335
a83d079b 83362009-09-19 Colin Watson <cjwatson@ubuntu.com>
8337
8338 * util/grub.d/30_os-prober.in: Don't throw away stderr from
4cbbccec 8339 os-prober. Under normal operation, it does not print anything to
8340 stderr; if it does, we need to debug it, and throwing away stderr
8341 makes that excessively difficult.
a83d079b 8342
be94a509 83432009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
8344
8345 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
8346
63f745e8 83472009-09-16 Robert Millan <rmh.grub@aybabtu.com>
8348
8349 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
8350 AC_LANG_PROGRAM from autoconf.
8351 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
8352 prototypes (fixes warning).
8353
8354 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
8355 `--disable-werror' was used.
8356
bbb2a70f 83572009-09-16 Robert Millan <rmh.grub@aybabtu.com>
8358
8359 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
8360 uninitialized `lastaddr'.
8361
77c24f1d 83622009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
8363
0f0b8c87 8364 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
77c24f1d 8365
07197f23 83662009-09-14 Colin Watson <cjwatson@ubuntu.com>
8367
8368 * commands/test.c (get_fileinfo): Return immediately if
8369 grub_fs_probe fails.
8370
dabf1798 83712009-09-14 José Martínez <xosemp@gmail.com>
8372
8373 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
8374
d52109a7 83752009-09-14 Colin Watson <cjwatson@ubuntu.com>
8376
8377 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
8378 output.
8379
56532179 83802009-09-13 Robert Millan <rmh.grub@aybabtu.com>
8381
8382 * configure.ac: Remove --enable-grub-pe2elf. Only build
8383 grub-pe2elf when needed by the build system itself.
8384 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
8385
8ef070f5 83862009-09-12 Robert Millan <rmh.grub@aybabtu.com>
8387
8388 * configure.ac: Bump version to 1.97~beta3.
8389 * docs/version.texi: Likewise.
8390
61229557 83912009-09-12 Robert Millan <rmh.grub@aybabtu.com>
8392
8393 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
8394 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
8395 from here ...
8396 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
8397 (grub_linux_setup_video): ... to here (with some adjustments).
8398
5c9f8d84 83992009-09-12 Robert Millan <rmh.grub@aybabtu.com>
8400
8401 Fix memory corruption issue (spotted by Colin Watson).
8402
8403 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
8404 causing returned size to be stored in an incorrect memory location.
8405 Fix use of uninitialized value when storing the returned size.
8406
e8f5d6e9 84072009-09-12 Yves Blusseau <blusseau@zetam.org>
8408
8409 Change clean rules to properly remove files
8410
8411 * genmk.rb: add new clean rules
8412 * Makefile.in (clean): add the new targets
8413 (mostlyclean): likewise
8414
cda2a409 84152009-09-11 Colin Watson <cjwatson@ubuntu.com>
8416
8417 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
8418 to grub_uint64_t.
8419 * fs/ntfs.c (init_file): Understand 64-bit sizes for
8420 non-resident files.
8421
86695375 84222009-09-11 Colin Watson <cjwatson@ubuntu.com>
8423
8424 * configure.ac: Don't look for help2man when cross-compiling. Fixes
8425 part of bug #27349.
8426
8aa1541a 84272009-09-10 Felix Zielcke <fzielcke@z-51.de>
8428
8429 * util/grub-mkconfig.in: Make the created config mode 400 and
8430 print a warning if it fails.
8431
48d9bb0a 84322009-09-10 Robert Millan <rmh.grub@aybabtu.com>
8433
8434 * util/grub.d/40_custom.in: Ask user to type custom entries below
8435 comment, rather than below 'exec tail' line.
8436
3b0521be 84372009-09-10 Colin Watson <cjwatson@ubuntu.com>
8438
8439 * util/grub.d/40_custom.in: Make sure that the explanatory text is
8440 visible in grub.cfg.
8441
50051d55 84422009-09-10 Colin Watson <cjwatson@ubuntu.com>
8443
8444 * util/grub.d/40_custom.in: Make it a little clearer how to use this
8445 file.
8446
c0d34387 84472009-09-10 Felix Zielcke <fzielcke@z-51.de>
8448
8449 * docs/grub.cfg: Add an example menu entry for memtest86+.
8450
80a608f3 84512009-09-09 Felix Zielcke <fzielcke@z-51.de>
8452
a2094832 8453 * config.guess: Update to latest version from config git.
80a608f3 8454 * config.sub: Likewise.
8455
99423078 84562009-09-08 Colin Watson <cjwatson@ubuntu.com>
8457
8458 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
8459 unknown-command case. Fixes bug #27320.
8460
44454e4c 84612009-09-08 Felix Zielcke <fzielcke@z-51.de>
8462
8463 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
8464 `help' if the command exists.
8465
e30d87ad 84662009-09-06 Robert Millan <rmh.grub@aybabtu.com>
8467
8468 * INSTALL: Require GCC 4.1.3 or later.
8469
9a86f1ec 84702009-09-06 Yves Blusseau <blusseau@zetam.org>
8471
8472 * Makefile.in (RMKFILES): add i386-qemu.rmk
8473 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
8474 $(srcdir)/stamp-h.in
8475
7f26d466 84762009-09-05 Robert Millan <rmh.grub@aybabtu.com>
8477
8478 * util/grub-probe.c (probe): Comment out buggy codepath, which
8479 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
8480 should be re-enabled after 1.97.
8481
3a613259 84822009-09-05 Felix Zielcke <fzielcke@z-51.de>
8483
8484 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
8485 find searches for.
8486
197f76c7 84872009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
8488
8489 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
8490 unnecessary calls to grub_error.
8491
70ba68ce 84922009-09-04 Colin Watson <cjwatson@ubuntu.com>
8493
8494 * NEWS: Mention `keystatus' and Unicode fonts.
8495
4ff0d7a4 84962009-09-04 Robert Millan <rmh.grub@aybabtu.com>
8497
8498 * configure.ac: Bump version to 1.97~beta2.
8499 * docs/version.texi: Likewise.
8500
77c55a87 85012009-09-03 Colin Watson <cjwatson@ubuntu.com>
8502
8503 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
8504 containing unwind information in some cases where it previously did
8505 not. Use -fno-dwarf2-cfi-asm if available to restore the old
8506 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
8507 discussion.
8508
f79572cd 85092009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
8510
8511 Embedding loadenv module into grub-emu
8512
8513 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
8514 commands/loadenv.c
8515 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
8516 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
8517 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
8518 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
8519 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
8520 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
8521
93a81088 85222009-09-03 Magnus Granberg <zorry@ume.nu>
8523
8524 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
8525 include -fPIE in the default specs.
8526 * configure.ac: Check if pie_possible is yes and add -fno-PIE
8527 to TARGET_CFLAGS.
8528
160034b2 85292009-09-03 Felix Zielcke <fzielcke@z-51.de>
8530
8531 * INSTALL: Note that GNU Bison 2.3 or later is required.
8532
087c07c4 85332009-09-03 Colin Watson <cjwatson@ubuntu.com>
8534
8535 * kern/i386/pc/startup.S: Fix typo.
8536
cbf978c0 85372009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
8538
8539 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
8540 according to GCS.
8541
85422009-09-02 Colin Watson <cjwatson@ubuntu.com>
f0910644 8543
8544 * docs/grub.texi (Naming convention): Describe one-based partition
8545 numbering.
8546 (Device syntax): Likewise.
8547 (File name syntax): Likewise.
8548 (Block list syntax): Likewise.
8549 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
8550 menu.lst.
8551 (File name syntax): Likewise.
8552 (Command-line and menu entry commands): Document acpi, blocklist,
8553 crc, export, insmod, keystatus, ls, set, and unset commands.
8554
f3e8cdfd 85552009-09-02 Colin Watson <cjwatson@ubuntu.com>
8556
8557 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
8558 to avoid implying that only one of --shift, --ctrl, or --alt may be
8559 used.
8560
c0bc232b 85612009-09-02 Colin Watson <cjwatson@ubuntu.com>
8562
8563 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
8564 rather than comparing against S_IFREG, which will almost never work.
8565
aa0f752d 85662009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
8567
8568 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
8569 (write_blocklists): Likewise.
8570
ecb3166a 85712009-09-01 Colin Watson <cjwatson@ubuntu.com>
8572
8573 * script/lua/grub_lua.h (fputs): Supply a format string as the first
8574 argument to grub_printf.
8575
c403a125 85762009-09-01 Felix Zielcke <fzielcke@z-51.de>
31aba781 8577
8578 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
c403a125 8579 non GNU test.
31aba781 8580
b5e7312c 85812009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
8582
8583 * kern/file.c (grub_file_read): Spelling fix
8584
fe00f472 85852009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
8586
8587 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
8588 loading of headers in some cases.
8589
cc55302e 85902009-08-30 Robert Millan <rmh.grub@aybabtu.com>
8591
8592 * configure.ac: Bump version to 1.97~beta1.
8593 * docs/version.texi: Likewise.
8594
5c90cdd2 85952009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
64bf71d0 8596
8597 * include/grub/i386/xnu.h: Add license header.
8598 include grub/err.h explicitly.
8599
c90edae4 86002009-08-29 Robert Millan <rmh.grub@aybabtu.com>
8601
8602 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
8603 to `ufs' in the vfs.root.mountfrom kernel parameter.
8604
d8888b5c 86052009-08-29 Robert Millan <rmh.grub@aybabtu.com>
8606
8607 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
8608
8609 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
8610 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
8611
8612 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
8613 `ARRAY_SIZE' macro.
8614
6f07b921 86152009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
8616
8617 * kern/file.c (grub_file_read): Check offset.
8618 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
8619 * fs/jfs.c (grub_jfs_read_file): Likewise.
8620 * fs/ntfs.c (grub_ntfs_read): Likewise.
8621 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
8622 * fs/minix.c (grub_minix_read_file): Correct offset check.
8623 * fs/ufs.c (grub_ufs_read_file): Likewise.
8624
b4f34077 86252009-08-28 Colin Watson <cjwatson@ubuntu.com>
8626
8627 * term/i386/pc/console.c (bios_data_area): Cast
8628 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
8629
e7c69859 86302009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
8631
8632 1-bit optimised blitters.
8633
8634 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
8635 prototype.
8636 (grub_video_fbblit_replace_24bit_1bit): Likewise.
8637 (grub_video_fbblit_replace_16bit_1bit): Likewise.
8638 (grub_video_fbblit_replace_8bit_1bit): Likewise.
8639 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
8640 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
8641 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
8642 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
8643 function.
8644 (grub_video_fbblit_replace_24bit_1bit): Likewise.
8645 (grub_video_fbblit_replace_16bit_1bit): Likewise.
8646 (grub_video_fbblit_replace_8bit_1bit): Likewise.
8647 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
8648 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
8649 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
8650 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
8651 when possible.
8652 * video/video.c (grub_video_get_blit_format): Return
8653 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
8654
a57da43f 86552009-08-28 Colin Watson <cjwatson@ubuntu.com>
8656
8657 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
8658 the first argument to grub_printf.
8659
4cbe67e5 86602009-08-28 Colin Watson <cjwatson@ubuntu.com>
86612009-08-28 Robert Millan <rmh.grub@aybabtu.com>
8662
8663 Add `getkeystatus' terminal method. Add a new `keystatus' command
8664 to query it.
8665
8666 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
8667 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
8668 modifier key bitmasks.
8669 (struct grub_term_input): Add `getkeystatus' member.
8670 (grub_getkeystatus): Add prototype.
8671 * kern/term.c (grub_getkeystatus): New function.
8672
8673 * include/grub/i386/pc/memory.h
8674 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
8675 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
8676 Data Area layout.
8677 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
8678 (grub_console_term_input): Set `getkeystatus' member.
8679 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
8680 constants.
8681 (grub_usb_keyboard_getreport): Likewise.
8682 (grub_usb_keyboard_checkkey): Likewise.
8683 (grub_usb_keyboard_getkeystatus): New function.
8684 (grub_usb_keyboard_term): Set `getkeystatus' member.
8685
8686 * commands/keystatus.c: New file.
8687 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
8688 (keystatus_mod_SOURCES): New variable.
8689 (keystatus_mod_CFLAGS): Likewise.
8690 (keystatus_mod_LDFLAGS): Likewise.
8691 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
8692 commands/keystatus.c.
8693 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
8694 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8695 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
8696 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8697 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8698 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
4cbe67e5 8699
6e2a9085 87002009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
8701
8702 Split befs.mod and afs.mod into *_be.mod and *.mod
8703
8704 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
8705 (grub_fstest_SOURCES): Likewise.
8706 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
8707 (afs_be_mod_SOURCES): New variable.
8708 (afs_be_mod_CFLAGS): Likewise.
8709 (afs_be_mod_LDFLAGS): Likewise.
8710 (befs_be_mod_SOURCES): Likewise.
8711 (befs_be_mod_CFLAGS): Likewise.
8712 (befs_be_mod_LDFLAGS): Likewise.
8713 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
8714 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
8715 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8716 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
8717 (grub_emu_SOURCES): Likewise.
8718 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8719 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8720 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
8721 * fs/afs_be.c: New file.
8722 * fs/befs_be.c: New file.
8723 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
8724 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
8725 (U16): Replaced with ...
8726 (grub_afs_to_cpu16): ...this. All users updated.
8727 (U32): Replaced with ...
8728 (grub_afs_to_cpu32): ...this. All users updated.
8729 (U64): Replaced with ...
8730 (grub_afs_to_cpu64): ...this. All users updated.
8731 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
8732 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
ad8ea1f4 8733 (grub_afs_validate_sblock): Check only one endianness.
6e2a9085 8734 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
8735 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
8736 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
8737 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
8738 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
8739 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
8740 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
8741 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
8742
32a71655 87432009-08-26 Bean <bean123ch@gmail.com>
8744
8745 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
8746 64-bit number.
8747 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
8748 (grub_xfs_inode_block): Change return type to grub_uint64_t.
8749 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
8750
552bf6c5 87512009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
8752
8753 NetBSD memory map support.
8754
8755 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
8756 (grub_netbsd_btinfo_mmap_header): New structure.
8757 (grub_netbsd_btinfo_mmap_entry): Likewise.
8758 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
8759
1ae2078c 87602009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
8761
8762 Enable bsd.mod on coreboot.
8763
8764 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
8765 (bsd_mod_SOURCES): New variable.
8766 (bsd_mod_CFLAGS): Likewise.
8767 (bsd_mod_LDFLAGS): Likewise.
8768 (bsd_mod_ASFLAGS): Likewise.
8769 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
8770 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
8771
beefc598 87722009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
8773
8774 Cleanup NetBSD root support.
8775
8776 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
8777 grub_bsd_get_device.
8778 Fix typo.
8779
3b76e68b 87802009-08-25 Felix Zielcke <fzielcke@z-51.de>
8781
8782 * util/grub.d/00_header.in: Move check for the video backend of
8783 gfxterm from here ...
8784 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
8785 a suitable video backend.
8786
aea664ea 87872009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
8788
8789 Fix breakage in grub-setup.
8790
8791 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
8792 "msdos_partition_map".
8793
ff747d50 87942009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
8795
8796 Fix breakage in normal/auth.c.
8797
8798 * normal/auth.c (grub_iswordseparator): New function.
8799
e7e1f93f 88002009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
8801
8802 Authentication support.
8803
8804 * commands/password.c: New file.
8805 * conf/common.rmk (pkglib_MODULES): Add password.mod.
8806 (password_mod_SOURCES): New variable.
8807 (password_mod_CFLAGS): Likewise.
8808 (password_mod_LDFLAGS): Likewise.
8809 (normal_mod_SOURCES): Add normal/auth.c.
8810 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
8811 normal/auth.c.
8812 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
8813 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8814 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
8815 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8816 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8817 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
8818 * include/grub/auth.h: New file.
8819 * include/grub/err.h (grub_err_t): New enum value
8820 GRUB_ERR_ACCESS_DENIED.
8821 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
8822 'users'.
8823 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
8824 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
8825 users updated.
8826 * normal/auth.c: New file.
8827 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
8828 (grub_cmdline_run): Don't allow to go to command line without
8829 authentication.
8830 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
8831 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
8832 menuentry without superuser rights.
8833 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
8834 user isn't a superuser.
8835
70f1161d 88362009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
8837
8838 Save space by inlining misc.c functions.
8839
8840 * kern/misc.c (grub_iswordseparator): Made static.
8841 * kern/misc.c (grub_strcat): Moved from here ...
8842 * include/grub/misc.h (grub_strcat): ... here. Inlined.
8843 * kern/misc.c (grub_strncat): Moved from here ...
8844 * include/grub/misc.h (grub_strncat): ... here. Inlined.
8845 * kern/misc.c (grub_strcasecmp): Moved from here ...
8846 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
8847 * kern/misc.c (grub_strncasecmp): Moved from here ...
8848 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
8849 * kern/misc.c (grub_isalpha): Moved from here ...
8850 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
8851 * kern/misc.c (grub_isdigit): Moved from here ...
8852 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
8853 * kern/misc.c (grub_isgraph): Moved from here ...
8854 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
8855 * kern/misc.c (grub_tolower): Moved from here ...
8856 * include/grub/misc.h (grub_tolower): ... here. Inlined.
8857
48e40bff 88582009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
8859
8860 * script/sh/function.c (grub_script_function_find): Cut error message
8861 not to flood terminal.
8862 * script/sh/lexer.c (grub_script_yylex): Remove command line length
8863 limit.
8864 * script/sh/script.c (grub_script_arg_add): Duplicate string.
8865
c385bfc3 88662009-08-24 Colin Watson <cjwatson@ubuntu.com>
8867
8868 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
8869 `report' grub_uint8_t *.
8870 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
8871 Use a 50-millisecond timeout rather than just repeating
8872 grub_usb_keyboard_getreport 50 times.
8873 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
8874
2d21e3e8 88752009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
8876
8877 Rename *_partition_map to part_*
8878
8879 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
8880 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
8881 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
8882 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
8883 All users updated.
8884 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
8885 All users updated.
8886 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
8887 * util/grub-probe.c (probe_partmap): Don't transform partition name
8888 to get module name.
8889
dd103c4e 88902009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
8891
8892 Fix OpenBSD and NetBSD support.
8893
8894 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
8895 memory address conflict.
8896 (OPENBSD_MMAP_ACPI): New definition.
8897 (OPENBSD_MMAP_NVS): Likewise.
8898 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
8899 and OPENBSD_MMAP_NVS.
8900 Add memory map terminator
8901 Explicit cast when calling grub_unix_real_boot.
ad8ea1f4 8902 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
dd103c4e 8903
16c84d74 89042009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
8905
8906 Let user specify NetBSD root device.
8907
8908 * loader/i386/bsd.c (netbsd_root): New variable.
8909 (netbsd_opts): New option 'root'.
8910 (NETBSD_ROOT_ARG): New macro.
8911 (grub_netbsd_boot): Use 'netbsd_root'.
8912 (grub_bsd_unload): Free 'netbsd_root'.
8913 (grub_cmd_netbsd): Fill 'netbsd_root'.
8914
adb29902 89152009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
8916
8917 Support for 64-bit NetBSD.
8918
8919 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
8920 point when booting non-FreeBSD.
8921
f5ae9f74 89222009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
8923
8924 Support --no-smp and --no-acpi for NetBSD.
8925
8926 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
8927 (NETBSD_AB_NOACPI): Likewise.
8928 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
8929 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
8930
de74f136 89312009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
8932
8933 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
8934 errors.
8935 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
8936 errors. Call grub_error when needed.
8937
e9a925da 89382009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
8939
8940 * commands/search.c (search_fs): Try searching without autoload first.
8941 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
8942 filesystem module explicitly for faster booting.
8943
5174302b 89442009-08-23 Colin Watson <cjwatson@ubuntu.com>
8945
8946 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
8947
c8c80635 89482009-08-23 Colin Watson <cjwatson@ubuntu.com>
8949
8950 * util/grub.d/30_os-prober.in: Disable os-prober if
8951 `GRUB_DISABLE_OS_PROBER' was set to true.
8952
71acf5e5 89532009-08-23 Robert Millan <rmh.grub@aybabtu.com>
8954
8955 * partmap/pc.c: Rename to ...
8956 * partmap/msdos.c: ... this. Update all users.
8957 (grub_pc_partition_map): Rename to ...
8958 (grub_msdos_partition_map): ... this. Update all users.
8959
8960 * parttool/pcpart.c: Rename to ...
8961 * parttool/msdospart.c: ... this. Update all users.
8962
8963 * include/grub/pc_partition.h: Rename to ...
8964 * include/grub/msdos_partition.h: ... this. Update all users.
8965 (grub_pc_partition_bsd_entry): Rename to ...
8966 (grub_msdos_partition_bsd_entry): ... this. Update all users.
8967 (grub_pc_partition_disk_label): Rename to ...
8968 (grub_msdos_partition_disk_label): ... this. Update all users.
8969 (grub_pc_partition_entry): Rename to ...
8970 (grub_msdos_partition_entry): ... this. Update all users.
8971 (grub_pc_partition_mbr): Rename to ...
8972 (grub_msdos_partition_mbr): ... this. Update all users.
8973 (grub_pc_partition): Rename to ...
8974 (grub_msdos_partition): ... this. Update all users.
8975 (grub_pc_partition_is_empty): Rename to ...
8976 (grub_msdos_partition_is_empty): ... this. Update all users.
8977 (grub_pc_partition_is_extended): Rename to ...
8978 (grub_msdos_partition_is_extended): ... this. Update all users.
8979 (grub_pc_partition_is_bsd): Rename to ...
8980 (grub_msdos_partition_is_bsd): ... this. Update all users.
8981
8982 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
8983 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
8984 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
8985 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
8986 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
8987 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
8988 (gpt_mod_LDFLAGS): Rename to ...
8989 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
8990 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
8991 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
8992 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
8993 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
8994 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
8995 (part_gpt_mod_LDFLAGS): ... this.
8996 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
8997 `pcpart.mod' to `msdospart.mod'.
8998 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
8999 to ...
9000 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
9001 (msdospart_mod_LDFLAGS): ... this.
9002
c11fded5 90032009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
9004
9005 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
9006 (openbsd_opts): Likewise.
9007 (netbsd_opts): Likewise.
9008 (freebsd_flags): Added 0 terminator.
9009 (openbsd_flags): Likewise.
9010 (netbsd_flags): Likewise.
9011 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
9012 (grub_cmd_freebsd): Transformed into extended command.
9013 (grub_cmd_openbsd): Likewise.
9014 (grub_cmd_netbsd): Likewise.
9015 (cmd_freebsd): Changed type to grub_extcmd_t.
9016 (cmd_openbsd): Likewise.
9017 (cmd_netbsd): Likewise.
9018 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
9019 grub_cmd_openbsd as extended commands.
9020 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
9021 cmd_netbsd and cmd_openbsd
9022
11d1c769 90232009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
9024
9025 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
9026
7a9094e5 90272009-08-21 Pavel Roskin <proski@gnu.org>
9028
5496c37e 9029 * Makefile.in (install-local): When checking if a file is in the
9030 build directory, use "test -e" to detect symlinks.
9031
7a9094e5 9032 * Makefile.in (install-local): Remove all files in
9033 $(DESTDIR)$(pkglibdir) before installing new files there.
9034
e53cea11 90352009-08-18 Felix Zielcke <fzielcke@z-51.de>
9036
9037 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
9038 grub-mkelfimage.
9039
9aced544 90402009-08-18 Felix Zielcke <fzielcke@z-51.de>
9041
9042 * util/grub-mkconfig.in: Don't use gfxterm by default if not
9043 explicitly specified by the user.
9044
b7da6bab 90452009-08-18 Pavel Roskin <proski@gnu.org>
9046
9047 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
9048 grub_uint8_t pointer for data.
9049 * include/grub/fbutil.h (struct grub_video_fbblit_info):
9050 Likewise.
9051 * video/fb/fbutil.c: Remove unnecessary casts.
9052
19f1b335 90532009-08-17 Michal Suchanek <hramrach@centrum.cz>
9054
9055 VBE cleanup.
9056
9057 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
9058 (grub_vbe_set_video_mode): Save active mode info
9059 only after setting the mode.
9060 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
9061 second argument.
9062
2f467aa9 90632009-08-17 Michal Suchanek <hramrach@centrum.cz>
9064
9065 Rename variables for clarity.
9066
9067 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
9068 (active_vbe_mode_info): ... this. All users updated.
9069 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
9070 All users updated.
9071 (initial_mode): Rename to ...
9072 (initial_vbe_mode): ... this. All users updated.
9073 (mode_in_use): Rename to ..
9074 (vbe_mode_in_use): ... this. All users updated.
9075 (mode_list): Rename to ..
9076 (vbe_mode_list): ... this. All users updated.
9077 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
9078 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
9079 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
9080 'mode_list_size' to 'vbe_mode_list_size'.
9081 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
9082 'best_mode_info' to 'best_vbe_mode_info' and
9083 'best_mode' to 'best_vbe_mode'
9084
6025fcd7 90852009-08-17 Michal Suchanek <hramrach@centrum.cz>
9086
9087 Remove duplicate grub_video_fb_get_video_ptr.
9088
9089 * include/grub/fbutil.h (get_data_ptr): Rename to ...
9090 (grub_video_fb_get_video_ptr): ... this.
9091 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
9092 * video/fb/fbutil.c: Add comment about addressing.
9093 (get_data_ptr): Rename to ...
9094 (grub_video_fb_get_video_ptr): ... this. All users updated.
9095 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
9096
cc8c6faf 90972009-08-17 Robert Millan <rmh.grub@aybabtu.com>
9098
9099 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
9100 grub_dprintf() that was just added.
9101
08aa61f0 91022009-08-17 Robert Millan <rmh.grub@aybabtu.com>
9103
9104 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
9105 (DEFAULT_VIDEO_MODE): Remove macros.
9106 (grub_linux_boot): Remove assumption that Linux has FB support,
9107 and use "text" as default video mode.
9108
7cef4f75 91092009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
9110
9111 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
9112 grub_dprintf.
9113 * fs/fat.c (grub_fat_read_data): Likewise.
9114
e1f39873 91152009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
9116
9117 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
9118 payload.
9119 (grub_module): Likewise.
9120
c166d79e 91212009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
9122
9123 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
9124 mbi->cmdline but free playground.
9125
c60cee8e 91262009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
9127
9128 Handle group offset on UFS1.
9129
9130 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
9131 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
9132
c0d8b5d4 91332009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
9134
9135 Split ufs.mod into ufs1.mod and ufs2.mod.
9136
9137 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
9138 (grub_fstest_SOURCES): Likewise.
9139 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
9140 (ufs_mod_SOURCES): Remove.
9141 (ufs_mod_CFLAGS): Likewise.
9142 (ufs_mod_LDFLAGS): Likewise.
9143 (ufs1_mod_SOURCES): New variable.
9144 (ufs1_mod_CFLAGS): Likewise.
9145 (ufs1_mod_LDFLAGS): Likewise.
25fbd77a 9146 (ufs2_mod_SOURCES): New variable.
9147 (ufs2_mod_CFLAGS): Likewise.
9148 (ufs2_mod_LDFLAGS): Likewise.
c0d8b5d4 9149 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
9150 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
9151 Likewise.
9152 (grub_emu_SOURCES): Likewise.
9153 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9154 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
9155 (grub_setup_SOURCES): Likewise.
9156 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9157 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
9158 (grub_setup_SOURCES): Likewise.
9159 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
9160 Likewise.
9161 * fs/ufs2.c: New file.
9162 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
9163
d3539132 91642009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
9165
9166 Framebuffer split.
9167
9168 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
9169 subsystem at the end.
9170 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
9171 (video_fb_mod_SOURCES): New variable.
9172 (video_fb_mod_CFLAGS): Likewise.
9173 (video_fb_mod_LDFLAGS): Likewise.
9174 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
9175 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
9176 * video/i386/pc/vbeblit.c: Moved from here ...
9177 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
9178 * video/i386/pc/vbefill.c: Moved from here ...
9179 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
9180 * video/i386/pc/vbeutil.c: Moved from here ...
9181 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
9182 * include/grub/i386/pc/vbeblit.h: Moved from here ...
9183 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
9184 * include/grub/i386/pc/vbefill.h: Moved from here ...
9185 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
9186 * include/grub/i386/pc/vbeutil.h: Moved from here ...
9187 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
9188 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
9189 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
9190 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
9191 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
9192 (grub_video_adapter): Added 'get_info_and_fini'.
9193 (grub_video_get_info_and_fini): New prototype.
9194 (grub_video_set_mode): make modestring const char *.
9195 * loader/i386/linux.c (grub_linux_setup_video): Use
9196 grub_video_get_info_and_fini.
9197 (grub_linux_boot): Move modesetting just before booting.
9198 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
9199 grub_video_get_info_and_fini.
9200 * video/i386/pc/vbe.c: Moved framebuffer part ...
9201 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
9202 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
9203 grub_video_fbstd_colors and grub_video_fb_set_palette.
9204 (grub_video_vbe_init): Clear 'framebuffer' variable and use
9205 grub_video_fb_init.
9206 (grub_video_vbe_fini): Use grub_video_fb_fini.
9207 (grub_video_vbe_setup): Use framebuffer.render_target instead of
9208 render_target and use grub_video_fb_set_active_render_target and
9209 grub_video_fb_set_palette.
9210 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
9211 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
9212 (grub_video_vbe_adapter): Use framebuffer.
9213 * video/video.c (grub_video_get_info_and_fini): New function.
9214 (grub_video_set_mode): Make modestring const char *.
9215 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
9216 values are already initialised.
9217
d404ee56 92182009-08-14 Pavel Roskin <proski@gnu.org>
9219
9220 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
9221 ABS and APPLE_CC.
9222 * boot/i386/pc/diskboot.S: Likewise.
9223 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
9224 sectors allow compilation on MacOSX.
9225 * conf/i386-pc.rmk: Enable unconditional compilation of
9226 lnxboot.img.
9227
9a10df16 92282009-08-13 Colin Watson <cjwatson@ubuntu.com>
9229
9230 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
9231 * util/grub.d/00_header.in: Enter interruptible sleep if
9232 GRUB_HIDDEN_TIMEOUT is set.
9233
be3c9ca7 92342009-08-13 Yves Blusseau <blusseau@zetam.org>
9235
9236 * include/grub/symbol.h: Add the LOCAL macro.
9237 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
9238 starting with "L_".
9239
1f9e557e 92402009-08-13 Pavel Roskin <proski@gnu.org>
9241
9ca62843 9242 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
9243 any modern compilers we support.
9244
1f9e557e 9245 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
9246 Use local labels starting with "L_" so that Apple assembler
9247 knows they are local.
9248
81623db6 92492009-08-10 Robert Millan <rmh.grub@aybabtu.com>
9250
9251 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
9252 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
9253 (bsd_kernel_types): ... this enum.
9254
9255 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
9256 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
9257 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
9258
9259 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
9260 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
9261 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
9262 messages.
9263
f5d35e7a 92642009-08-08 Robert Millan <rmh.grub@aybabtu.com>
9265
9266 * util/grub-dumpdevtree: Moved from here ...
9267 * util/i386/efi/grub-dumpdevtree: ... to here.
9268 (hexify): New function. Converts a string to its hex version.
9269 Generate hex versions of "efi" and "device-properties" by calling
9270 hexify() on the ASCII strings rather than by hardcoding numbers.
9271
d1e1d527 92722009-08-08 Robert Millan <rmh.grub@aybabtu.com>
9273
9274 * fs/jfs.c: Update copyright year.
9275
1ebbe064 92762009-08-08 Felix Zielcke <fzielcke@z-51.de>
9277
9278 * util/grub.d/00_header.in: Fix a comment.
9279 * util/grub.d/10_linux.in: Likewise.
9280 * util/grub.d/10_windows.in: Likewise.
9281 * util/grub.d/10_hurd.in: Likewise.
9282
a78c8d24 92832009-08-08 Felix Zielcke <fzielcke@z-51.de>
9284
9285 * util/grub-mkconfig.in: Allow the user to specify the used font
9286 with GRUB_FONT.
9287
29a6b9e8 92882009-08-08 Pavel Roskin <proski@gnu.org>
9289
b5f16cc4 9290 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
9291 available, xfs.mod needs it now.
9292
2f5cb827 9293 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
9294 the "g" modifier in sed when the intention is to strip something
9295 once. This fixes comparison of kernels with multiple dashes.
9296
29a6b9e8 9297 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
9298 on it. Add missing space before closing bracket. Fix
9299 misleading formatting.
9300
892a3d98 93012009-08-07 Robert Millan <rmh.grub@aybabtu.com>
9302
9303 * docs/grub.texi: Major overhaul. Remove all sections that are
9304 specific to GRUB Legacy, or mostly composed of Legacy-specific
9305 information.
9306
ed94253f 93072009-08-07 Robert Millan <rmh.grub@aybabtu.com>
9308
9309 * docs/version.texi: New file. Provides version information for
9310 grub.texi.
9311
126d6628 93122009-08-07 Robert Millan <rmh.grub@aybabtu.com>
9313
9314 * docs/grub.texi: Update CVS information to SVN.
9315 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
9316
998b5aa9 93172009-08-07 Felix Zielcke <fzielcke@z-51.de>
9318
9319 * util/grub-mkconfig.in: Remove a wrong `fi'.
9320
818e094a 93212009-08-07 Felix Zielcke <fzielcke@z-51.de>
9322
9323 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
9324 (grub_jfs_uuid): New function.
9325 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
9326
b969c52f 93272009-08-07 Felix Zielcke <fzielcke@z-51.de>
9328
9329 * util/grub-mkconfig_lib.in (font_path): Move the functionality
9330 of it to ...
9331 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
9332 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
9333
7a4894cc 93342009-08-07 Robert Millan <rmh.grub@aybabtu.com>
9335
9336 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
9337 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
9338 Update all users.
9339
9340 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
9341 not just "vmlinu[zx]".
9342 Moved from here ...
9343 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
9344 all users.
9345
9346 * util/grub.d/10_linux.in (find_latest): Moved from here ...
9347 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
9348 all users.
9349
4e2171f8 93502009-08-07 Robert Millan <rmh.grub@aybabtu.com>
9351
9352 * util/grub.d/10_freebsd.in: Use an absolute device path for
9353 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
9354
6dcfcb32 93552009-08-06 Felix Zielcke <fzielcke@z-51.de>
9356
9357 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
9358 handling of multiple abstraction modules.
9359
f56a8756 93602009-08-04 Robert Millan <rmh.grub@aybabtu.com>
9361
9362 Fix a bug resulting in black screen when loading Linux using a
9363 packed video mode.
9364
9365 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
9366 function.
9367
9368 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
9369 (grub_vbe_bios_getset_dac_palette_width): New function.
9370 (grub_vbe_bios_get_dac_palette_width)
9371 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
9372 grub_vbe_bios_getset_dac_palette_width()).
9373
9374 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
9375 check for return status.
9376 (grub_vbe_get_video_mode_info): When getting information for a packed
9377 mode (<= 8 bpp), obtain DAC palette width using
9378 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
9379 {red,green,blue}_mark_size.
9380
222671b2 93812009-08-04 Felix Zielcke <fzielcke@z-51.de>
9382
ecb1a6d9 9383 * commands/search.c (options): Fix help output to match actual code.
222671b2 9384
f84114f5 93852009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
9386
9387 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
9388 of homegrown code.
9389
bd288a20 93902009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
e768b770 9391
9392 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
9393 on XFS or ReiserFS.
9394
8aab5e25 93952009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
9396
9397 Support Apple partition map with sector size different from 512 bytes.
9398
9399 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
9400 (apple_partition_map_iterate): Respect 'aheader.blocksize'
9401 and 'apart.partmap_size'.
9402
6ad6258a 94032009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
94042009-08-01 Robert Millan <rmh.grub@aybabtu.com>
9405
9406 Fix cpuid command.
9407
9408 * commands/i386/cpuid.c (options): New variable.
9409 (grub_cmd_cpuid): Return real error.
9410 (GRUB_MOD_INIT(cpuid)): Declare options.
9411
67459bc6 94122009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
9413
9414 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
9415 valid.
9416
fbc6ab54 94172009-07-31 Bean <bean123ch@gmail.com>
9418
9419 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
9420 log2_inode.
9421 (grub_fshelp_node): Move inode field to the end.
9422 (grub_xfs_data): Remove inode field.
9423 (grub_xfs_inode_block): Calculate inode size using sblock.
9424 (grub_xfs_inode_offset): Likewise.
9425 (grub_xfs_read_inode): Calculate inode size using sblock.
9426 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
9427 (grub_xfs_iterate_dir): Calculate inode size using sblock.
9428 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
9429 to match inode size.
9430 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
9431 not accessible when data is null.
9432 (grub_xfs_open): Likewise.
9433
f45d6cfc 94342009-07-31 Bean <bean123ch@gmail.com>
9435
9436 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
9437 Don't change pv->disk if it's already set.
9438
9439 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
9440 (grub_raid_register): ... here.
9441 (grub_raid_rescan): Removed.
9442
9443 * include/grub/raid.h (grub_raid_rescan): Removed.
9444
9445 * util/grub-fstest.c: Remove include file <grub/raid.h>.
9446 (fstest): Replace grub_raid_rescan with module fini function followed
9447 by init function.
9448
9449 * util/grub-probe.c: Add include file <grub/raid.h>.
9450 (probe_raid_level): New function.
9451 (probe): Detect abstraction by walking the disk device, support two
9452 level of abstraction (LVM on RAID) when detecting partition map.
9453
24443b5a 94542009-07-31 Pavel Roskin <proski@gnu.org>
9455
9456 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
9457 to grub_zalloc(), it was erroneous.
9458 Reported by Bean <bean123ch@gmail.com>
9459
a275d9e7 94602009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
9461
9462 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
ad8ea1f4 9463 embedding zone, not only the first one.
a275d9e7 9464
56c5a47f 94652009-07-29 Joe Auricchio <jauricchio@gmail.com>
9466
9467 * term/gfxterm.c (clear_char): New function.
9468 (grub_virtual_screen_setup): Use clear_char.
9469 (scroll_up): Likewise.
9470 (grub_virtual_screen_cls): Likewise.
9471
67bb323a 94722009-07-29 Felix Zielcke <fzielcke@z-51.de>
9473
9474 * util/deviceiter.c (get_acceleraid_disk_name): New static
9475 function.
9476 (grub_util_iterate_devices): Handle Accelraid devices.
9477 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
9478
388a7c75 94792009-07-28 Robert Millan <rmh.grub@aybabtu.com>
9480
9481 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
9482 separator for the suggested gfxpayload string (';' collides with the
9483 parser and needs escaping).
9484
3bb7abcf 94852009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
9486
9487 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
9488 Clear direction flag before jumping to OS.
9489 (grub_multiboot2_real_boot): Likewise.
9490
2ddd36d7 94912009-07-28 Felix Zielcke <fzielcke@z-51.de>
9492
9493 * util/i386/pc/grub-install: Fix parsing of --disk-module
9494 option.
9495
c521b62b 94962009-07-28 Felix Zielcke <fzielcke@z-51.de>
9497
9498 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
9499 when embedding.
9500
880e0a0c 95012009-07-26 Felix Zielcke <fzielcke@z-51.de>
9502
9503 * util/grub-mkconfig.in (package_version): New variable.
9504 Use it do display the version.
9505
2366e356 95062009-07-25 Felix Zielcke <fzielcke@z-51.de>
9507
9508 * kern/file.c (grub_file_open): Revert to previous check with
9509 grub_errno.
9510
7ad8c80e 95112009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
9512
9513 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
9514 from help line. It's out of sync with code.
9515
72b9658b 95162009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
9517
9518 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
9519 entries on failed boot.
9520
77435277 95212009-07-25 Felix Zielcke <fzielcke@z-51.de>
9522
9523 * kern/file.c (grub_file_open): Fix an error check.
9524
fcaa8b21 95252009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
9526
35d16c74 9527 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
9528 partition map couldn't be identified.
fcaa8b21 9529
48904cd1 95302009-07-23 Pavel Roskin <proski@gnu.org>
9531
ef3c317f 9532 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
9533 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
9534 case of little endian words becomes just an optimization.
9535 Respect const modifier.
ad8ea1f4 9536 (md5_final): Use code that doesn't depend on endianness.
ef3c317f 9537
48904cd1 9538 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
9539 to avoid loss of upper bits if align is unsigned and shorter
9540 than addr.
9541
260c9a89 95422009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
9543
9544 UUID support for UFS
9545
9546 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
9547 (grub_ufs_uuid): New function.
9548 (grub_ufs_fs): add .uuid
9549
f76ce889 95502009-07-21 Pavel Roskin <proski@gnu.org>
9551
9552 * kern/dl.c (grub_dl_check_header): Make static.
9553
6a6cbcaf 95542009-07-21 Felix Zielcke <fzielcke@z-51.de>
9555
9556 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
9557 add drivemap for Vista. It breaks Windows 7.
9558
cffcddb2 95592009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
9560
9561 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
9562 128 bytes
9563
1ef44b80 95642009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
9565
9566 Add BFS support
9567
9568 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
9569 (grub_fstest_SOURCES): Likewise.
9570 (pkglib_MODULES): Add befs.mod.
9571 (befs_mod_SOURCES): New variable.
9572 (befs_mod_CFLAGS): Likewise.
9573 (befs_mod_LDFLAGS): Likewise.
9574 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
9575 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
9576 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9577 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
9578 (grub_setup_SOURCES): Likewise.
9579 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9580 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9581 (grub_setup_SOURCES): Likewise.
9582 * fs/befs.c: New file.
9583 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
9584 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
9585 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
9586 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
9587 (B_KEY_INDEX_ALIGN): New declaration.
9588 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
9589 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
9590 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
9591 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
9592 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
9593 (grub_afs_mount) [MODE_BFS]: Likewise.
9594 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
9595 (grub_afs_fs): Use GRUB_AFS_FSNAME
9596 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
9597 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
9598 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
9599 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
9600
4f253044 96012009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
9602
9603 * util/getroot.c (find_root_device): Add support for MacOSX.
9604 * util/hostdisk.c: Likewise.
9605
57a55913 96062009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
9607
9608 * font/font.c (find_glyph): Check whether a font is present to avoid
9609 segmentation fault.
75421ca9 9610
96112009-07-20 Joe Auricchio <jauricchio@gmail.com>
04c7c429 9612
9613 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
9614
e98cd0c2 96152009-07-20 Pavel Roskin <proski@gnu.org>
9616
9617 * configure.ac: Trim excessively wordy excuses.
9618
1d2d169a 96192009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
9620
9621 Add symlink, mtime and label support to AtheFS.
9622
9623 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
9624 (grub_afs_iterate_dir): Handle symlinks.
9625 (grub_afs_open): Use grub_afs_read_symlink.
9626 (grub_afs_dir): Likewise.
9627 Pass mtime.
9628 (grub_afs_label): New function.
9629 (grub_afs_fs): Add grub_afs_label.
9630 (grub_afs_read_symlink): New function.
9631
186f3189 96322009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
9633
9634 Fix AtheFS support.
9635
9636 * fs/afs.c: Fix comments style.
9637 (grub_afs_blockrun): Declare as packed.
9638 (grub_afs_datastream): Likewise.
9639 (grub_afs_bnode): Likewise.
9640 (grub_afs_btree): Likewise.
9641 (grub_afs_sblock): Likewise.
9642 Declare `name' as char.
9643 (grub_afs_inode): Declare as packed.
9644 Change void *vnode to grub_uint32_t unused.
9645 (grub_afs_iterate_dir): Check that key_size is positive.
9646 (grub_afs_mount): Don't read superblock twice.
75421ca9 9647 (grub_afs_dir): Don't free node in case of error,
186f3189 9648 grub_fshelp_find_file already handles this.
9649 (grub_afs_open): Likewise.
9650
5680109e 96512009-07-19 Pavel Roskin <proski@gnu.org>
9652
9653 * Makefile.in: Remove LIBLZO and enable_lzo.
9654 * conf/i386-pc.rmk: Remove lzo support.
9655 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
9656 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
9657 support.
9658 * kern/i386/pc/lzo1x.S: Remove.
9659 * kern/i386/pc/startup.S: Remove lzo support.
9660 * util/i386/pc/grub-mkimage.c: Likewise.
9661
ac70fa32 96622009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
9663
9664 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
9665 * fs/xfs.c (grub_xfs_dir): Likewise.
9666 * fs/afs.c (grub_afs_dir): Likewise.
9667 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
9668 (grub_iso9660_open): Likewise.
9669 * fs/jfs.c (grub_jfs_open): Likewise.
9670 * fs/ext2.c (grub_ext2_dir): Likewise.
9671 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
9672 * script/sh/lexer.c (grub_script_yylex): Likewise.
75421ca9 9673
eab58da2 96742009-07-16 Pavel Roskin <proski@gnu.org>
9675
d2838156 9676 * configure.ac: Never add "-c" to CFLAGS.
9677
55c70904 9678 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
9679
43e6200c 9680 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
9681 grub_cv_cc_efiemu should be used.
9682
ce7a733d 9683 * configure.ac: Typo fixes.
9684
eab58da2 9685 * kern/mm.c (grub_zalloc): New function.
9686 (grub_debug_zalloc): Likewise.
9687 * include/grub/mm.h: Declare grub_zalloc() and
9688 grub_debug_zalloc().
9689 * util/misc.c (grub_zalloc): New function.
9690 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
9691 instead of grub_malloc(), remove unneeded initializations.
9692 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
9693 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
9694 * commands/parttool.c (grub_cmd_parttool): Likewise.
9695 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
9696 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
9697 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
9698 * disk/usbms.c (grub_usbms_finddevs): Likewise.
9699 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
9700 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
9701 (grub_cmd_efiemu_pnvram): Likewise.
9702 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
9703 * fs/iso9660.c (grub_iso9660_mount): Likewise.
9704 (grub_iso9660_iterate_dir): Likewise.
9705 * fs/jfs.c (grub_jfs_opendir): Likewise.
9706 * fs/ntfs.c (list_file): Likewise.
9707 (grub_ntfs_mount): Likewise.
9708 * kern/disk.c (grub_disk_open): Likewise.
9709 * kern/dl.c (grub_dl_load_core): Likewise.
9710 * kern/elf.c (grub_elf_file): Likewise.
9711 * kern/env.c (grub_env_context_open): Likewise.
9712 (grub_env_set): Likewise.
9713 (grub_env_set_data_slot): Likewise.
9714 * kern/file.c (grub_file_open): Likewise.
9715 * kern/fs.c (grub_fs_blocklist_open): Likewise.
9716 * loader/i386/multiboot.c (grub_module): Likewise.
9717 * loader/xnu.c (grub_xnu_create_key): Likewise.
9718 (grub_xnu_create_value): Likewise.
9719 * normal/main.c (grub_normal_add_menu_entry): Likewise.
9720 (read_config_file): Likewise.
9721 * normal/menu_entry.c (make_screen): Likewise.
9722 * partmap/sun.c (sun_partition_map_iterate): Likewise.
9723 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
9724 * script/sh/script.c (grub_script_parse): Likewise.
9725 * video/bitmap.c (grub_video_bitmap_create): Likewise.
9726 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
9727 * video/readers/png.c (grub_png_output_byte): Likewise.
9728 (grub_video_reader_png): Likewise.
9729
830afef7 97302009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
5ce5507f 9731
9732 Enable all targets that can be built by default
9733
830afef7 9734 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
5ce5507f 9735 grub-mkfont and grub-fstest if they can be built
9736
ee293aee 97372009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
9738
9739 Fix hang and segmentation fault in grub-emu-usb
9740
9741 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
9742 * util/usb.c (grub_libusb_devices): likewise
9743 (grub_libusb_init): rename to ...
9744 (GRUB_MOD_INIT (libusb)):...this
9745 (grub_libusb_fini): rename to ..
9746 (GRUB_MOD_FINI (libusb)):...this
9747 * disk/usbms.c (grub_usbms_transfer): fix retry logic
9748 * include/grub/disk.h (grub_raid_init): removed, it's useless
9749 (grub_raid_fini): likewise
9750 (grub_lvm_init): likewise
9751 (grub_lvm_fini): likewise
9752 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
9753 by grub_init_all
9754
94414221 97552009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
9756
9757 Fix libusb
9758
9759 * Makefile.in (LIBUSB): new macro
9760 * genmk.rb (Utility/print_tail): new method
9761 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
9762 (top level): call util.print_tail at the end.
9763
59ade63d 97642009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
9765
9766 Make FreeBSD accept zpool.cache
9767
9768 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
9769 type is /boot/zfs/zpool.cache
9770
a58da8c7 97712009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
9772
9773 Fix 64-bit efiemu
9774
9775 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
9776 correct wrong typedef
9777 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
9778
20591577 97792009-07-15 Pavel Roskin <proski@gnu.org>
9780
560ca572 9781 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
9782 * kern/disk.c (struct grub_disk_cache): Likewise.
9783
e8e8e4fd 9784 * commands/probe.c (options): Typo fix.
9785
fde24e10 9786 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
9787 Increase to 0x5a to accommodate FAT32. Adjust other offsets
9788 accordingly.
9789 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
9790
379c54c1 9791 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
9792 the end of "Error" to make the message more readable.
9793
7bd8f5bf 9794 * boot/i386/pc/boot.S (kernel_segment): Remove.
9795 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
9796 for destination.
9797
40b132c5 9798 * boot/i386/pc/boot.S (boot_version): Remove.
9799 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
9800 Remove.
9801
20591577 9802 * include/grub/i386/pc/boot.h: Sort all offsets.
9803 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
9804 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
9805 * boot/i386/pc/boot.S: Assert location of every offset listed in
9806 include/grub/i386/pc/boot.h.
9807
2df32b2c 98082009-07-13 Pavel Roskin <proski@gnu.org>
9809
44b5d879 9810 * include/grub/i386/coreboot/machine.h: Rename
9811 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
9812 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
9813 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
9814
17dc3751 9815 * kern/dl.c: Force native word size to suppress warnings when
9816 compiling grub-emu.
9817
2df32b2c 9818 * kern/device.c (grub_device_iterate): Change struct part_ent to
9819 hold the name, not a pointer to it. Use one grub_malloc() per
9820 partition, not two. Free partition_name if grub_malloc() fails.
9821 Set ents to NULL only before grub_partition_iterate() is called.
9822
75c59f59 98232009-07-11 Bean <bean123ch@gmail.com>
9824
9825 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
9826 childname.
9827
0ae1bf88 98282009-07-10 Bean <bean123ch@gmail.com>
98292009-07-10 Robert Millan <rmh.grub@aybabtu.com>
9830
9831 * kern/ieee1275/openfw.c (grub_children_iterate)
9832 (grub_devalias_iterate): Fix size evaluation for property or path
9833 strings, which was broken since r2132.
9834
8279cade 98352009-07-07 Pavel Roskin <proski@gnu.org>
9836
7d8a52d3 9837 * commands/search.c (search_file): Merge into ...
9838 (search_fs): ... this. Accept search type as argument.
9839 (grub_cmd_search): Pass search type to search_fs().
9840
25f9a05a 9841 * include/grub/util/console.h: New file.
9842 * util/console.c: Use it instead of grub/machine/console.h.
9843 * util/grub-emu.c: Likewise.
9844
8279cade 9845 * lib/arg.c (find_long_option): Remove.
9846 (find_long): Add `len' argument, make `s' const char *.
9847 (grub_arg_parse): Parse long options in place, not in a
9848 temporary buffer.
9849
4a11b60f 98502009-07-06 Pavel Roskin <proski@gnu.org>
9851
99f68041 9852 * commands/search.c (search_fs): Fix potential NULL pointer
9853 dereference.
9854
4a11b60f 9855 * commands/search.c (search_fs): Replace QUID macro with quid_fn
9856 function pointer.
9857
e110f4de 98582009-07-06 Daniel Mierswa <impulze@impulze.org>
9859
9860 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
9861 comparison.
9862
46eeb6a2 98632009-07-05 Pavel Roskin <proski@gnu.org>
9864
bab74958 9865 * include/grub/i386/linux.h (struct linux_kernel_params):
9866 Restore padding3, it's still needed.
9867
46eeb6a2 9868 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
9869 FreeBSD.
9870 * util/osdetect.lua: Likewise.
9871
b4a1dc79 98722009-07-05 Bean <bean123ch@gmail.com>
9873
9874 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
9875
9876 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
9877 (grub_lua_getenv): Likewise.
9878 (grub_lua_setenv): Likewise.
9879 (save_errno): New function.
9880 (push_result): Likewise.
9881 (grub_lua_enum_device): Likewise.
9882 (grub_lua_enum_file): Likewise.
9883 (grub_lua_file_open): Likewise.
9884 (grub_lua_file_close): Likewise.
9885 (grub_lua_file_seek): Likewise.
9886 (grub_lua_file_read): Likewise.
9887 (grub_lua_file_getline): Likewise.
9888 (grub_lua_file_getsize): Likewise.
9889 (grub_lua_file_getpos): Likewise.
9890 (grub_lua_file_eof): Likewise.
9891 (grub_lua_file_exist): Likewise.
9892 (grub_lua_add_menu): Likewise.
9893
9894 * script/lua/grub_lua.h (isupper): New inline function.
9895 (islower): Likewise.
9896 (ispunct): Likewise.
9897 (isxdigit): Likewise.
9898 (strcspn): Change to normal function.
9899 (strpbkr): New function declaration.
9900 (memchr): Likewise.
9901
9902 * script/lua/grub_main.c (scan_str): New function.
9903 (strcspn): Likewise.
9904 (strpbrk): Likewise.
9905 (memchr): Likewise.
9906
9907 * script/lua/linit.c (lualibs): Enable the string library.
9908
9909 * util/osdetect.lua: New file.
9910
2da92295 99112009-07-04 Robert Millan <rmh.grub@aybabtu.com>
9912
9913 * include/grub/i386/linux.h (struct linux_kernel_params): Add
9914 `capabilities' member.
9915
b2582ec9 99162009-07-02 Pavel Roskin <proski@gnu.org>
9917
9918 * genparttoollist.sh: Add missing newline at the end.
9919
32622956 99202009-07-01 Pavel Roskin <proski@gnu.org>
9921
87a7339e 9922 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
9923
d23af54e 9924 * util/hostdisk.c (open_device): Remove `const' from
9925 `sysctl_size', as sysctlbyname() can change it (in this case it
9926 doesn't actually happen).
9927
c94b18a9 9928 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
9929 using signed long int constants.
9930
c6cd3ef0 9931 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
9932 constant to avoid a warning on FreeBSD.
9933
0df63420 9934 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
9935 where it's needed.
9936
999577f1 9937 * Makefile.in: Install include/grub/machine symlink.
9938
6f41557f 9939 * Makefile.in: When installing symlinks, use "cp -fR", which
9940 works on FreeBSD and MacOSX.
9941 From Yves Blusseau <cl7m42e02@sneakemail.com>
9942
c8d22988 9943 * kern/dl.c (grub_dl_resolve_symbol): Make static.
9944 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
9945
1b96e952 9946 * util/misc.c: Move grub_reboot() and grub_halt() ...
9947 * util/grub-emu.c: ... here. Make main_env static.
9948 * include/grub/util/misc.h: Remove main_env.
9949
2ef0084d 9950 * kern/mm.c: Use correct format to print size_t.
9951
32622956 9952 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
9953 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
9954 * kern/powerpc/dl.c: Likewise.
9955 * kern/sparc64/dl.c: Likewise.
9956 * kern/x86_64/dl.c: Likewise.
9957
3f7f0cd0 99582009-07-01 Robert Millan <rmh.grub@aybabtu.com>
9959
9960 Fix grub-emu build on sparc64-ieee1275.
9961
75421ca9 9962 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
3f7f0cd0 9963 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
9964
211d06b5 99652009-07-01 Robert Millan <rmh.grub@aybabtu.com>
9966
9967 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
9968 (grub_reboot, grub_halt): New functions.
9969
9970 * util/i386/pc/misc.c: Delete. Update all users.
9971 * util/sparc64/ieee1275/misc.c: Likewise.
9972 * util/powerpc/ieee1275/misc.c: Likewise.
9973
aaf53e3c 99742009-07-01 Robert Millan <rmh.grub@aybabtu.com>
9975
9976 * conf/i386.rmk (setjmp_mod_SOURCES)
9977 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
9978 * conf/common.rmk (setjmp_mod_SOURCES)
9979 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
9980 to use $(target_cpu).
9981 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
9982 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
9983 * conf/powerpc-ieee1275.rmk: Likewise.
9984 * conf/sparc64-ieee1275.rmk: Likewise.
9985
9986 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
9987 $(target_cpu) for kern/$(target_cpu)/dl.c.
9988 * conf/i386-efi.rmk: Likewise.
9989 * conf/i386-ieee1275.rmk: Likewise.
9990 * conf/x86_64-efi.rmk: Likewise.
9991 * conf/i386-coreboot.rmk: Likewise.
9992 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
9993 $(target_cpu) for kern/$(target_cpu)/dl.c and for
9994 kern/$(target_cpu)/cache.S.
9995 * conf/sparc64-ieee1275.rmk: Likewise.
9996
a337130b 99972009-07-01 Robert Millan <rmh.grub@aybabtu.com>
9998
9999 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
10000 type to `grub_uint8_t', and adjust `padding9' accordingly.
10001
c6fe4d53 100022009-06-29 Robert Millan <rmh.grub@aybabtu.com>
10003
b09db61d 10004 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
10005
c6fe4d53 10006 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
10007 assembly in final jump, using register constraints.
10008
b09db61d 10009 (grub_linux_boot): For text mode, initialize `have_vga' using
10010 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
10011
10012 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
10013 right before the final jump.
10014
10015 Set `video_mode' to 0x3.
10016
10017 Document initialization of `video_page', `video_mode' and
10018 `video_ega_bx'.
10019
28333ad0 100202009-06-29 Robert Millan <rmh.grub@aybabtu.com>
10021
10022 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
10023 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
75421ca9 10024 and set GRUB_LINUX_FLAG_QUIET appropriately.
28333ad0 10025
02164e1b 100262009-06-29 Robert Millan <rmh.grub@aybabtu.com>
10027
10028 Fix build on Debian / sparc.
10029
10030 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
10031
18b6c557 100322009-06-28 Pavel Roskin <proski@gnu.org>
10033
85f2aab6 10034 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
10035 fix a warning.
10036
18b6c557 10037 * util/grub.d/10_linux.in: Match SUSE style initrd names.
10038
ad760f81 100392009-06-27 Robert Millan <rmh.grub@aybabtu.com>
10040
10041 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
10042 `err'.
10043
87a4623b 100442009-06-27 Robert Millan <rmh.grub@aybabtu.com>
10045
10046 Revert r2338.
10047
10048 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
10049 file can't be opened. grub_file_open() is already supposed to set
75421ca9 10050 grub_errno / grub_errmsg appropriately.
87a4623b 10051 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
10052
8231fb77 100532009-06-27 Pavel Roskin <proski@gnu.org>
100542009-06-27 Robert Millan <rmh.grub@aybabtu.com>
10055
10056 * include/grub/dl.h: Include grub/elf.h.
10057 (struct grub_dl): Add symtab field.
10058 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
10059 GRUB_MODULES_MACHINE_READONLY.
10060 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
10061 of the header for read-only modules.
10062 (grub_dl_unload): Free mod->symtab for read-only modules.
10063 * kern/i386/dl.c: Use mod->symtab.
10064 * kern/powerpc/dl.c: Likewise.
10065 * kern/sparc64/dl.c: Likewise.
10066 * kern/x86_64/dl.c: Likewise.
10067
10068 * conf/i386-qemu.rmk: New file.
10069 * kern/i386/qemu/startup.S: Likewise.
10070 * kern/i386/qemu/mmap.c: Likewise.
10071 * boot/i386/qemu/boot.S: Likewise.
10072 * include/grub/i386/qemu/time.h: Likewise.
10073 * include/grub/i386/qemu/serial.h: Likewise.
10074 * include/grub/i386/qemu/kernel.h: Likewise.
10075 * include/grub/i386/qemu/console.h: Likewise.
10076 * include/grub/i386/qemu/boot.h: Likewise.
10077 * include/grub/i386/qemu/init.h: Likewise.
10078 * include/grub/i386/qemu/machine.h: Likewise.
10079 * include/grub/i386/qemu/loader.h: Likewise.
10080 * include/grub/i386/qemu/memory.h: Likewise.
10081
10082 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
10083 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
10084 [qemu] (pkglib_IMAGES): Add `boot.img'.
10085 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
10086 [qemu] (boot_img_FORMAT): New variables.
10087 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
10088 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
10089 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
10090 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
10091 [qemu] (kernel_img_FORMAT): New variables.
10092
10093 * configure.ac: Recognise `i386-qemu'.
10094
10095 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
10096 (for no compression).
10097 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
10098 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
10099 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
10100 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
10101 ifdefs).
10102
97fe384e 101032009-06-27 Pavel Roskin <proski@gnu.org>
10104
10105 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
10106 read.
10107 * efiemu/prepare32.c: Likewise.
10108 * efiemu/prepare64.c: Likewise.
10109
c402ab17 101102009-06-26 Pavel Roskin <proski@gnu.org>
10111
10112 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
10113 * include/grub/elf.h: Define symbols without "32" or "64" based
10114 on GRUB_TARGET_WORDSIZE.
10115 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
10116 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
10117 ELF definitions.
10118 * efiemu/loadcore64.c: Likewise.
10119 * loader/i386/bsd32.c: Likewise.
10120 * loader/i386/bsd64.c: Likewise.
10121 * kern/dl.c: Remove own ELF definitions.
10122 * util/i386/efi/grub-mkimage.c: Likewise.
10123
9bbdfd4d 101242009-06-23 Robert Millan <rmh.grub@aybabtu.com>
10125
10126 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
10127 segment 0x0 unconditionally, because the reference generated by
10128 GAS is an absolute address.
10129
a42ce6e9 101302009-06-22 Robert Millan <rmh.grub@aybabtu.com>
10131
10132 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
10133 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
10134
c952cf92 101352009-06-22 Robert Millan <rmh.grub@aybabtu.com>
10136
10137 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
10138 indexes. Check for -f explicitly.
cc3752ad 10139 (search_file): Improve error message.
10140 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
c952cf92 10141
132a0a59 101422009-06-22 Robert Millan <rmh.grub@aybabtu.com>
10143
10144 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
10145 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
10146
387a140c 101472009-06-22 Robert Millan <rmh.grub@aybabtu.com>
10148
10149 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
10150 * conf/i386-ieee1275.rmk: Likewise.
10151 * conf/i386-coreboot.rmk: Likewise.
10152
10153 * kern/i386/pc/startup.S (grub_stop): Remove function.
10154 * kern/i386/ieee1275/startup.S: Likewise.
10155 * kern/i386/coreboot/startup.S: Likewise.
10156 * kern/i386/misc.S (grub_stop): New function.
10157
41da9665 101582009-06-22 Robert Millan <rmh.grub@aybabtu.com>
10159
10160 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
10161 * kern/i386/realmode.S (real_to_prot): ... to here.
10162
bf337234 101632009-06-22 Robert Millan <rmh.grub@aybabtu.com>
10164
10165 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
10166 with `kernel.img'.
10167 (kernel_elf_SOURCES): Rename to ...
10168 (kernel_img_SOURCES): ... this.
10169 (kernel_elf_HEADERS): Rename to ...
10170 (kernel_img_HEADERS): ... this. Update all users.
10171 (kernel_elf_ASFLAGS): Rename to ...
10172 (kernel_img_ASFLAGS): ... this.
10173 (kernel_elf_CFLAGS): Rename to ...
10174 (kernel_img_CFLAGS): ... this.
10175 (kernel_elf_LDFLAGS): Rename to ...
10176 (kernel_img_LDFLAGS): ... this.
10177 * conf/i386-coreboot.rmk: Likewise.
10178 * conf/powerpc-ieee1275.rmk: Likewise.
10179
10180 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
10181 with "kernel.img".
10182
f52196ff 101832009-06-21 Pavel Roskin <proski@gnu.org>
10184
c3cee413 10185 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
10186 to match nested functions.
10187 * loader/sparc64/ieee1275/linux.c: Likewise.
10188
f52196ff 10189 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
10190
58750afc 101912009-06-21 Robert Millan <rmh.grub@aybabtu.com>
10192
10193 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
10194 all i386 platforms.
10195
15355c7d 101962009-06-21 Robert Millan <rmh.grub@aybabtu.com>
10197
10198 Fix asm file handling on ELF, and remove workarounds.
10199
10200 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
75421ca9 10201 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
15355c7d 10202 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
10203 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
10204
3f3ec72b 102052009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
10206
10207 Load BSD ELF modules
10208
10209 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
10210 and loader/i386/bsd64.c
10211 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
10212 (FREEBSD_MODTYPE_ELF_MODULE): New definition
10213 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
10214 (grub_freebsd_load_elfmodule32): New declaration
10215 (grub_freebsd_load_elfmoduleobj64): Likewise
10216 (grub_freebsd_load_elf_meta32): Likewise
10217 (grub_freebsd_load_elf_meta64): Likewise
10218 (grub_freebsd_add_meta): Likewise
10219 (grub_freebsd_add_meta_module): Likewise
10220 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
10221 (grub_freebsd_add_meta_module): Likewise and move module-specific
10222 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
10223 (grub_cmd_freebsd): Add elf-kernel specific parts
10224 based on grub_freebsd_add_meta_module
10225 (grub_cmd_freebsd_module): Add type parsing moved from
10226 grub_freebsd_add_meta_module
10227 (grub_cmd_freebsd_module_elf): New function
10228 (cmd_freebsd_module_elf): New variable
10229 (GRUB_MOD_INIT): Register freebsd_module_elf
10230 * loader/i386/bsd32.c: New file
10231 * loader/i386/bsd64.c: Likewise
10232 * loader/i386/bsdXX.c: Likewise
10233 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
10234 (grub_elf64_load): Likewise
10235 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
10236 All users updated
10237 (grub_elf64_load_hook_t): Likewise
10238
0db15301 102392009-06-21 Colin Watson <cjwatson@ubuntu.com>
10240
10241 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
10242 variable.
10243 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
10244 don't write a menu entry for recovery mode.
10245
546796c1 102462009-06-20 Robert Millan <rmh.grub@aybabtu.com>
10247
10248 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
10249 after it's no longer needed.
10250
cd7310d5 102512009-06-20 Robert Millan <rmh.grub@aybabtu.com>
10252
10253 * include/grub/i386/loader.h (grub_linux_prot_size)
10254 (grub_linux_tmp_addr, grub_linux_real_addr)
10255 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
10256 GRUB_MACHINE_PCBIOS.
10257 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
10258 common grub_util_info() call to ...
10259 (generate_image): ... here.
10260 Fix use of uninitialized memory, comparison of signed with
10261 unsigned integers and memory leak.
10262 Remove bogus module address message.
10263
ab32d3b5 102642009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
10265
10266 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
10267 grub_raid_register
10268 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
10269
024ef597 102702009-06-19 Pavel Roskin <proski@gnu.org>
10271
10272 * configure.ac: Remove stray AC_MSG_CHECKING.
10273
3ac72b51 102742009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
10275
10276 * disk/scsi.c (grub_scsi_open): use continue instead of big if
dd74360c 10277
e14cd814 102782009-06-18 Pavel Roskin <proski@gnu.org>
10279
10280 * conf/common.rmk: Add fs_file.mod.
10281 * disk/fs_file.c: New file.
10282 * include/grub/disk.h (enum grub_disk_dev_id): Add
10283 GRUB_DISK_DEVICE_FILE_ID.
10284
26586d98 102852009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
10286
10287 Fix build with Apple's toolchain. Part 2
10288
10289 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
10290 a fake start
10291
26de2bcd 102922009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
10293
10294 Fix build with Apple's toolchain. Part 1
10295
10296 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
10297 for long calls
10298 * configure.ac: remove a leftover AC_MSG_RESULT
dd74360c 10299 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
26de2bcd 10300 Apple's toolchain
10301
09b3490b 103022009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
10303
10304 Fix warnings
10305
10306 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
10307 (decomp_block): initialize ch
10308 use grub_memcpy instead of memcpy
10309
c22a006a 103102009-06-17 Pavel Roskin <proski@gnu.org>
10311
d3638678 10312 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
10313 version, use declarations needed to use vga_text as the startup
10314 console.
10315
c22a006a 10316 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
10317 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
10318 the kernel.
10319 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
10320 and grub_at_keyboard_fini(), it's done on module load and
10321 unload.
10322
05b129e0 103232009-06-17 Felix Zielcke <fzielcke@z-51.de>
10324
10325 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
10326 file can't be found.
10327 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
10328
cf24ed9e 103292009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
10330
10331 Fix newline handling
10332
10333 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
dd74360c 10334 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
cf24ed9e 10335 (grub_script_yylex): don't segfault on unterminated script
10336 newline terminates command and variable
10337
74aa8e4b 103382009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
10339
10340 avoid double grub_adjust_range call. Bug reported by David Simner
10341
10342 * kern/disk.c (grub_disk_write): change to raw disk access before
10343 calling disk_read
10344
1bd265f3 103452009-06-17 Colin Watson <cjwatson@ubuntu.com>
10346
10347 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
10348 spaces, for the benefit of help2man.
10349 * util/i386/efi/grub-mkimage.c (usage): Likewise.
10350
a2d08c06 103512009-06-16 Pavel Roskin <proski@gnu.org>
10352
10353 * kern/i386/halt.c: Include grub/machine/init.h.
10354 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
10355
b97bcb19 103562009-06-16 Felix Zielcke <fzielcke@z-51.de>
10357
10358 * util/grub.d/30_os-prober.in: Use ${root} in the generated
10359 drivemap menuentry.
10360
0644f96c 103612009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
10362
10363 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
10364 `echo' command.
10365
3ef17a2e 103662009-06-16 Pavel Roskin <proski@gnu.org>
10367
10368 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
10369 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
10370 save %dx, we only need %dl and we never change it.
10371 * boot/i386/pc/cdboot.S: Don't set the root drive.
10372 * boot/i386/pc/pxeboot.S: Likewise.
10373 * include/grub/i386/pc/boot.h: Remove
10374 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
10375 GRUB_BOOT_MACHINE_DRIVE_CHECK.
10376 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
10377 * kern/i386/pc/init.c (make_install_device): Remove references
10378 to grub_root_drive.
10379 * kern/i386/pc/startup.S: Likewise.
10380 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
10381
693fe637 103822009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
10383
10384 xnu_uuid command
10385
10386 * commands/xnu_uuid.c: new file
10387 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
10388 (xnu_uuid_mod_SOURCES): new variable
10389 (xnu_uuid_mod_CFLAGS): likewise
10390 (xnu_uuid_mod_LDFLAGS): likewise
10391 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
10392 * conf/i386-ieee1275.rmk: likewise
10393 * conf/i386-pc.rmk: likewise
10394 * conf/powerpc-ieee1275.rmk: likewise
10395 * conf/sparc64-ieee1275.rmk: likewise
10396 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
10397
c9da87d0 103982009-06-16 Pavel Roskin <proski@gnu.org>
10399
10400 * configure.ac: Avoid '==' in test command, it's not portable.
10401
9c6f4596 104022009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
10403
10404 Probe command
10405
10406 * commands/probe.c: new file
10407 * conf/common.rmk (pkglib_MODULES): add probe.mod
10408 (probe_mod_SOURCES): new variable
10409 (probe_mod_CFLAGS): likewise
10410 (probe_mod_LDFLAGS): likewise
10411 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
10412 * conf/i386-ieee1275.rmk: likewise
10413 * conf/i386-pc.rmk: likewise
10414 * conf/powerpc-ieee1275.rmk: likewise
10415 * conf/sparc64-ieee1275.rmk: likewise
10416
70b7f9fd 104172009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
10418
10419 Fix handling of string like \"hello\" and "a
10420 b"
10421
10422 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
10423 (grub_script_yylex): fix parsing of quoting, escaping and newline
10424
71c79a6b 104252009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
10426
dd74360c 10427 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
71c79a6b 10428 handling
dd74360c 10429
0644f96c 104302009-06-13 Jun Inoue <jun.lambda@gmail.com>
880fc3c4 10431
10432 * util/grub-mkconfig.in: Fix parsing of --output option.
10433
e40893c3 104342009-06-12 Pavel Roskin <proski@gnu.org>
10435
10436 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
10437 genmk.rb don't need to be generated or installed.
10438
3a1acfe2 104392009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
10440
10441 * commands/i386/pc/drivemap_int13h.S: add more comments
10442
3a4575d4 104432009-06-11 Pavel Roskin <proski@gnu.org>
10444
0658e928 10445 * Makefile.in (uninstall): Uninstall manuals.
10446
ca0388f0 10447 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
10448 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
10449 and update-grub_lib in two places.
10450 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
10451
e3b27c39 10452 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
10453 a compiler warning.
10454
3a4575d4 10455 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
10456 `entry_lo' to fix variable shadowing.
10457
af1f4f55 104582009-06-11 Christian Franke <franke@computer.org>
10459
10460 * kern/misc.c (__enable_execute_stack): Add missing return type
10461 to prevent gcc warning.
10462
5225e649 104632009-06-11 Felix Zielcke <fzielcke@z-51.de>
10464
10465 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
10466
7d83bd47 104672009-06-11 Pavel Roskin <proski@gnu.org>
10468
c1cb63ba 10469 * Makefile.in: Don't rely on any scripts being executable.
10470 Always use $(SHELL) to run shell scripts.
10471
7d83bd47 10472 * configure.ac: Always define ___main if using -nostdlib. This
10473 fixes tests on Cygwin.
10474
948f48e7 104752009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
10476
10477 UDF fix
10478
7d83bd47 10479 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
948f48e7 10480 is in bytes and not in blocks
7d83bd47 10481
8ada9bc1 104822009-06-11 Pavel Roskin <proski@gnu.org>
10483
10484 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
10485 warning.
10486
25ad2323 104872009-06-11 Felix Zielcke <fzielcke@z-51.de>
10488
10489 * util/grub.d/30_os-prober.in: Fix a comment. Source
10490 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
10491 to set the root device. Place drivemap command in the generated
10492 chain entry.
10493
e65acb0c 104942009-06-11 Pavel Roskin <proski@gnu.org>
10495
10496 * configure.ac: Remove host_m32. Issues with 64-bit utilities
10497 have long been resolved.
10498
f285fe2d 104992009-06-11 Colin Watson <cjwatson@ubuntu.com>
10500
bd47b0b5 10501 * util/grub.d/10_linux.in: Capitalise "Linux".
10502
f285fe2d 10503 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
10504
a0c62e4e 105052009-06-11 Pavel Roskin <proski@gnu.org>
10506
b6783cb2 10507 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
10508 fix a gcc warning and ensure that the function won't ever exit.
10509
dde032e8 10510 * kern/i386/ieee1275/init.c: Add missing prototype for
10511 grub_stop_floppy().
10512
22cd079d 10513 * loader/ieee1275/multiboot2.c [__i386__]: Include
10514 grub/cpu/multiboot.h.
10515
a0c62e4e 10516 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
10517 casts to short - they are not portable and cause warnings. Fix
10518 use of uninitialized values in input_buf. Use ARRAY_SIZE.
10519
63963d17 105202009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
10521
10522 Drivemap fixes
10523
10524 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
10525 new function
10526 (grub_get_root_biosnumber_saved): new variable
10527 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
10528 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
775dbc4d 10529 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
63963d17 10530 %dx after the call if necessary
10531 * conf/common.rmk (pkglib_MODULES): remove boot.mod
10532 (boot_mod_SOURCES): remove
10533 (boot_mod_CFLAGS): remove
10534 (boot_mod_LDFLAGS): remove
10535 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
10536 (boot_mod_SOURCES): new variable
10537 (boot_mod_CFLAGS): likewise
10538 (boot_mod_LDFLAGS): likewise
10539 * conf/i386-efi.rmk: likewise
10540 * conf/i386-ieee1275.rmk: likewise
10541 * conf/i386-pc.rmk: likewise
10542 * conf/powerpc-ieee1275.rmk: likewise
10543 * conf/sparc64-ieee1275.rmk: likewise
10544 * conf/x86_64-efi.rmk: likewise
10545 * include/grub/i386/pc/biosnum.h: new file
10546 * lib/i386/pc/biosnum.c: likewise
10547 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
10548 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
10549 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
775dbc4d 10550
33abf7ae 105512009-06-10 Pavel Roskin <proski@gnu.org>
10552
5ac35b35 10553 * io/gzio.c (test_header): Don't reuse one buffer for all data.
10554 Use separate variables. Read only the file size at the end, but
10555 not the checksum that we don't use.
10556
5c5215d5 10557 * kern/file.c (grub_file_read): Use void pointer for the buffer.
10558 Adjust all callers.
10559
27d5fef7 10560 * kern/ieee1275/openfw.c: Remove libc includes.
10561 * kern/ieee1275/cmain.c: Likewise.
10562 * include/grub/ieee1275/ieee1275.h: Likewise.
10563
33abf7ae 10564 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
10565 compiler warnings.
10566
19d50c2b 105672009-06-10 Felix Zielcke <fzielcke@z-51.de>
10568
10569 * Makefile.in: Remove all trailing whitespace.
10570 * conf/i386-pc.rmk: Likewise.
10571 * conf/powerpc-ieee1275.rmk: Likewise.
10572 * conf/sparc64-ieee1275.rmk: Likewise.
10573 * docs/grub.texi: Likewise.
10574 * docs/texinfo.tex: Likewise.
10575 * disk/fs_uuid.c: Likewise.
10576 * disk/lvm.c: Likewise.
10577 * disk/scsi.c: Likewise.
10578 * disk/ata.c: Likewise.
10579 * disk/ieee1275/ofdisk.c: Likewise.
10580 * disk/i386/pc/biosdisk.c: Likewise.
10581 * disk/host.c: Likewise.
10582 * disk/raid.c: Likewise.
10583 * disk/efi/efidisk.c: Likewise.
10584 * disk/usbms.c: Likewise.
10585 * disk/memdisk.c: Likewise.
10586 * disk/loopback.c: Likewise.
10587 * kern/powerpc/dl.c: Likewise.
10588 * kern/device.c: Likewise.
10589 * kern/dl.c: Likewise.
10590 * kern/sparc64/dl.c: Likewise.
10591 * kern/ieee1275/ieee1275.c: Likewise.
10592 * kern/term.c: Likewise.
10593 * kern/fs.c: Likewise.
10594 * kern/i386/dl.c: Likewise.
10595 * kern/i386/pc/startup.S: Likewise.
10596 * kern/i386/pc/init.c: Likewise.
10597 * kern/i386/pc/mmap.c: Likewise.
10598 * kern/i386/pc/lzo1x.S: Likewise.
10599 * kern/i386/ieee1275/init.c: Likewise.
10600 * kern/i386/realmode.S: Likewise.
10601 * kern/i386/tsc.c: Likewise.
10602 * kern/partition.c: Likewise.
10603 * kern/corecmd.c: Likewise.
10604 * kern/file.c: Likewise.
10605 * kern/efi/efi.c: Likewise.
10606 * kern/efi/init.c: Likewise.
10607 * kern/efi/mm.c: Likewise.
10608 * kern/main.c: Likewise.
10609 * kern/err.c: Likewise.
10610 * kern/env.c: Likewise.
10611 * kern/disk.c: Likewise.
10612 * kern/generic/millisleep.c: Likewise.
10613 * kern/generic/rtc_get_time_ms.c: Likewise.
10614 * kern/misc.c: Likewise.
10615 * kern/parser.c: Likewise.
10616 * genmk.rb: Likewise.
10617 * configure.ac: Likewise.
10618 * boot/i386/pc/diskboot.S: Likewise.
10619 * boot/i386/pc/pxeboot.S: Likewise.
10620 * boot/i386/pc/boot.S: Likewise.
10621 * boot/i386/pc/lnxboot.S: Likewise.
10622 * boot/i386/pc/cdboot.S: Likewise.
10623 * parttool/pcpart.c: Likewise.
10624 * video/readers/tga.c: Likewise.
10625 * video/video.c: Likewise.
10626 * video/bitmap.c: Likewise.
10627 * lib/envblk.c: Likewise.
10628 * lib/i386/setjmp.S: Likewise.
10629 * fs/xfs.c: Likewise.
10630 * fs/afs.c: Likewise.
10631 * fs/fat.c: Likewise.
10632 * fs/ntfs.c: Likewise.
10633 * fs/udf.c: Likewise.
10634 * fs/affs.c: Likewise.
10635 * fs/iso9660.c: Likewise.
10636 * fs/hfs.c: Likewise.
10637 * fs/fshelp.c: Likewise.
10638 * fs/ext2.c: Likewise.
10639 * fs/jfs.c: Likewise.
10640 * fs/reiserfs.c: Likewise.
10641 * fs/hfsplus.c: Likewise.
10642 * fs/minix.c: Likewise.
10643 * fs/cpio.c: Likewise.
10644 * fs/sfs.c: Likewise.
10645 * fs/ufs.c: Likewise.
10646 * efiemu/prepare.c: Likewise.
10647 * efiemu/loadcore_common.c: Likewise.
10648 * efiemu/runtime/efiemu.sh: Likewise.
10649 * efiemu/runtime/efiemu.S: Likewise.
10650 * efiemu/runtime/efiemu.c: Likewise.
10651 * efiemu/pnvram.c: Likewise.
10652 * efiemu/main.c: Likewise.
10653 * efiemu/i386/pc/cfgtables.c: Likewise.
10654 * efiemu/i386/loadcore64.c: Likewise.
10655 * efiemu/i386/loadcore32.c: Likewise.
10656 * efiemu/loadcore.c: Likewise.
10657 * efiemu/symbols.c: Likewise.
10658 * efiemu/mm.c: Likewise.
10659 * include/grub/autoefi.h: Likewise.
10660 * include/grub/datetime.h: Likewise.
10661 * include/grub/term.h: Likewise.
10662 * include/grub/hfs.h: Likewise.
10663 * include/grub/lvm.h: Likewise.
10664 * include/grub/i386/tsc.h: Likewise.
10665 * include/grub/i386/linux.h: Likewise.
10666 * include/grub/i386/xnu.h: Likewise.
10667 * include/grub/i386/efiemu.h: Likewise.
10668 * include/grub/i386/pc/biosdisk.h: Likewise.
10669 * include/grub/i386/pc/memory.h: Likewise.
10670 * include/grub/i386/pc/vbe.h: Likewise.
10671 * include/grub/parttool.h: Likewise.
10672 * include/grub/video.h: Likewise.
10673 * include/grub/memory.h: Likewise.
10674 * include/grub/fs.h: Likewise.
10675 * include/grub/partition.h: Likewise.
10676 * include/grub/xnu.h: Likewise.
10677 * include/grub/efi/api.h: Likewise.
10678 * include/grub/efi/pe32.h: Likewise.
10679 * include/grub/efi/memory.h: Likewise.
10680 * include/grub/multiboot.h: Likewise.
10681 * include/grub/usbdesc.h: Likewise.
10682 * include/grub/multiboot2.h: Likewise.
10683 * include/grub/acpi.h: Likewise.
10684 * include/grub/efiemu/efiemu.h: Likewise.
10685 * include/grub/disk.h: Likewise.
10686 * include/grub/ieee1275/ieee1275.h: Likewise.
10687 * include/grub/net.h: Likewise.
10688 * include/grub/machoload.h: Likewise.
10689 * include/grub/macho.h: Likewise.
10690 * include/multiboot.h: Likewise.
10691 * genmoddep.awk: Likewise.
10692 * normal/main.c: Likewise.
10693 * normal/menu_entry.c: Likewise.
10694 * normal/menu_viewer.c: Likewise.
10695 * normal/completion.c: Likewise.
10696 * normal/cmdline.c: Likewise.
10697 * normal/misc.c: Likewise.
10698 * normal/datetime.c: Likewise.
10699 * bus/usb/usbtrans.c: Likewise.
10700 * bus/usb/ohci.c: Likewise.
10701 * bus/usb/uhci.c: Likewise.
10702 * bus/usb/usb.c: Likewise.
10703 * mmap/efi/mmap.c: Likewise.
10704 * mmap/i386/pc/mmap_helper.S: Likewise.
10705 * mmap/i386/pc/mmap.c: Likewise.
10706 * mmap/i386/mmap.c: Likewise.
10707 * mmap/i386/uppermem.c: Likewise.
10708 * mmap/mmap.c: Likewise.
10709 * commands/acpi.c: Likewise.
10710 * commands/echo.c: Likewise.
10711 * commands/blocklist.c: Likewise.
10712 * commands/loadenv.c: Likewise.
10713 * commands/usbtest.c: Likewise.
10714 * commands/boot.c: Likewise.
10715 * commands/parttool.c: Likewise.
10716 * commands/search.c: Likewise.
10717 * commands/cat.c: Likewise.
10718 * commands/i386/pc/play.c: Likewise.
10719 * commands/i386/pc/drivemap.c: Likewise.
10720 * commands/i386/pc/vbeinfo.c: Likewise.
10721 * commands/i386/pc/acpi.c: Likewise.
10722 * commands/i386/pc/vbetest.c: Likewise.
10723 * commands/ls.c: Likewise.
10724 * commands/cmp.c: Likewise.
10725 * commands/test.c: Likewise.
10726 * commands/efi/acpi.c: Likewise.
10727 * commands/gptsync.c: Likewise.
10728 * commands/help.c: Likewise.
10729 * partmap/amiga.c: Likewise.
10730 * partmap/apple.c: Likewise.
10731 * partmap/acorn.c: Likewise.
10732 * partmap/pc.c: Likewise.
10733 * partmap/sun.c: Likewise.
10734 * partmap/gpt.c: Likewise.
10735 * script/sh/lexer.c: Likewise.
10736 * script/sh/function.c: Likewise.
10737 * font/font.c: Likewise.
10738 * font/font_cmd.c: Likewise.
10739 * loader/powerpc/ieee1275/linux.c: Likewise.
10740 * loader/efi/chainloader.c: Likewise.
10741 * loader/multiboot_loader.c: Likewise.
10742 * loader/macho.c: Likewise.
10743 * loader/i386/multiboot.c: Likewise.
10744 * loader/i386/linux.c: Likewise.
10745 * loader/i386/pc/linux.c: Likewise.
10746 * loader/i386/pc/multiboot2.c: Likewise.
10747 * loader/i386/pc/chainloader.c: Likewise.
10748 * loader/i386/pc/xnu.c: Likewise.
10749 * loader/i386/bsd_trampoline.S: Likewise.
10750 * loader/i386/efi/linux.c: Likewise.
10751 * loader/i386/multiboot_elfxx.c: Likewise.
10752 * loader/i386/bsd_helper.S: Likewise.
10753 * loader/i386/bsd.c: Likewise.
10754 * loader/i386/linux_trampoline.S: Likewise.
10755 * loader/i386/xnu_helper.S: Likewise.
10756 * loader/i386/xnu.c: Likewise.
10757 * loader/i386/bsd_pagetable.c: Likewise.
10758 * loader/i386/multiboot_helper.S: Likewise.
10759 * loader/xnu.c: Likewise.
10760 * loader/xnu_resume.c: Likewise.
10761 * io/gzio.c: Likewise.
10762 * term/efi/console.c: Likewise.
10763 * term/terminfo.c: Likewise.
10764 * term/ieee1275/ofconsole.c: Likewise.
10765 * term/i386/pc/serial.c: Likewise.
10766 * term/i386/pc/vesafb.c: Likewise.
10767 * term/i386/pc/vga.c: Likewise.
10768 * term/usb_keyboard.c: Likewise.
10769 * term/gfxterm.c: Likewise.
10770 * aclocal.m4: Likewise.
10771 * util/lvm.c: Likewise.
10772 * util/grub.d/30_os-prober.in: Likewise.
10773 * util/grub.d/10_hurd.in: Likewise.
10774 * util/console.c: Likewise.
10775 * util/grub-macho2img.c: Likewise.
10776 * util/grub-probe.c: Likewise.
10777 * util/hostfs.c: Likewise.
10778 * util/i386/pc/grub-mkimage.c: Likewise.
10779 * util/i386/pc/grub-setup.c: Likewise.
10780 * util/i386/efi/grub-mkimage.c: Likewise.
10781 * util/grub-mkconfig.in: Likewise.
10782 * util/raid.c: Likewise.
10783 * util/resolve.c: Likewise.
10784 * util/grub-mkdevicemap.c: Likewise.
10785 * util/grub-emu.c: Likewise.
10786 * util/getroot.c: Likewise.
10787 * util/hostdisk.c: Likewise.
10788 * util/usb.c: Likewise.
10789 * util/grub-editenv.c: Likewise.
10790 * util/misc.c: Likewise.
10791
d2d49665 107922009-06-10 Felix Zielcke <fzielcke@z-51.de>
10793
10794 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
10795 `genparttoollist.sh'.
10796 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
10797 Add `*.sh' to the list find searches for and change `mdate.sh'
10798 to `mdate-sh'.
10799
fe052e37 108002009-06-10 Pavel Roskin <proski@gnu.org>
10801
2763ac18 10802 * include/grub/multiboot2.h: Provide compatibility defines for
10803 multiboot2.h.
10804 * include/multiboot2.h: Include stdint.h only if needed, using
10805 angle brackets.
10806 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
10807 grub/multiboot2.h.
10808 * loader/ieee1275/multiboot2.c: Likewise.
10809 * loader/multiboot2.c: Likewise.
10810 * loader/multiboot_loader.c: Likewise.
10811
437e6adc 10812 * configure.ac: Use -nostdlib when probing for the target. It
10813 should not be required to have libc for the target.
10814
06a6836c 10815 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
10816 they fail without libc headers for the target.
10817 * include/grub/powerpc/libgcc.h: Use weak attribute for all
10818 exports.
10819 * include/grub/sparc64/libgcc.h: Likewise. Don't use
10820 preprocessor conditionals.
10821
fe052e37 10822 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
10823 build system doesn't need to be aware of the tar.c internals.
10824
afd22553 108252009-06-09 Michel Hermier <michel.hermier@gmail.com>
87b8f28c 10826
afd22553 10827 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
8ec4a6d0 10828
6b787c4f 108292009-06-09 Robert Millan <rmh.grub@aybabtu.com>
10830
10831 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
10832 disk limit to 26 for IDE, Virtio, Xen and SCSI.
10833
108342009-06-09 Felix Zielcke <fzielcke@z-51.de>
10835
10836 * util/i386/pc/grub-install.in: Change the error message if UUIDs
473d1e45 10837 aren't available if ata.mod gets used.
6b787c4f 10838
473d1e45 108392009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
e23721e8 10840
473d1e45 10841 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
e23721e8 10842 initialising controller.
473d1e45 10843 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
e23721e8 10844
255a27d4 108452009-06-08 Felix Zielcke <fzielcke@z-51.de>
10846
10847 * util/i386/pc/grub-install.in: Add a parameter --disk-module
10848 to choose between ata and biosdisk module on i386-pc.
10849
473d1e45 108502009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
69da8877 10851
d55842d8 10852 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
10853 Subclass and Programming Interface fields in terms of the 3 byte
10854 Class Code register.
10855 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
10856
fa5db0b1 10857 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
10858 interface is OHCI. Add grub_dprintf for symmetry with
10859 bus/usb/uhci.c.
10860 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
10861 interface is UHCI. Add interf variable for programming
10862 interface. Print interface with class/subclass.
10863
c0947beb 10864 * bus/usb/ohci.c: Set interf with correct field.
10865
69da8877 10866 * bus/usb/uhci.c: Remove unneeded doubled lines.
10867 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
10868 Remove whitespace inside comment.
10869
9e172e30 108702009-06-08 Robert Millan <rmh.grub@aybabtu.com>
10871
10872 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
10873 as fallback an equivalent option without depth.
10874
de65ee2b 108752009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
10876
10877 Not fail if unable to retrieve C/H/S on LBA disks
10878
473d1e45 10879 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
de65ee2b 10880 if unable to retrieve C/H/S on LBA disks
10881
b57ea2c9 108822009-06-08 Pavel Roskin <proski@gnu.org>
10883
10884 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
10885 about aliasing.
10886
af361263 108872009-06-08 Felix Zielcke <fzielcke@z-51.de>
10888
10889 * Makefile.in (uninstall): Remove all $lib_DATA files.
10890
4c9ec6b3 108912009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
10892
10893 Bugfix: install on partitionless device
10894
10895 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
10896 is a whole disk
10897
e76fc924 108982009-06-08 Felix Zielcke <fzielcke@z-51.de>
10899
10900 * Makefile.in (uninstall): Remove all $include_DATA files.
10901
ba5a0d05 109022009-06-08 Felix Zielcke <fzielcke@z-51.de>
10903
10904 * commands/true.c: New file. Implement the true and false commands.
10905 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
10906 (true_mod_SOURCES): New variable.
10907 (true_mod_CFLAGS): Likewise.
10908 (true_mod_LDFLAGS): Likewise.
10909
c8048e32 109102009-06-05 Colin D Bennett <colin@gibibit.com>
10911
10912 Optimized font character lookup using binary search instead of linear
10913 search. Fonts now are required to have the character index ordered by
10914 code point.
10915
10916 * font/font.c (load_font_index): Verify that fonts have ordered
10917 character indices.
10918 (find_glyph): Use binary search instead of linear search to find a
10919 character in a font.
10920
408305be 109212009-06-05 Michael Scherer <misc@mandriva.org>
10922
10923 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
10924 uses case sensitive btree.
10925 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
10926 only for case insensitive filesystems.
10927
8ee1e0d9 109282009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
10929
10930 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
10931 * conf/common.rmk (search_mod_CFLAGS): likewise
10932
a9966eb1 109332009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10934
473d1e45 10935 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
a9966eb1 10936 compensate a compiler bug
10937
9e7100fb 109382009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10939
473d1e45 10940 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
9e7100fb 10941 instead of '\b'
473d1e45 10942
ede21d71 109432009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10944
10945 Definitions for creating asm symbols with Apple's CC
10946
10947 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
10948 [APPLE_CC] (VARIABLE): likewise
10949
9dbf7653 109502009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10951
10952 Disable lnxboot.img when compiled
10953 with Apple's CC
10954
10955 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
10956 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
10957 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
10958 [! APPLE_CC] (CODE_LENG): skip
10959 [! APPLE_CC] (setup_sects): likewise
10960 [! APPLE_CC]: skip filling
473d1e45 10961
e93cdc3d 109622009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10963
10964 Address in trampolines based on 32-bit registers when compiled
10965 with Apple's CC
10966
473d1e45 10967 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
e93cdc3d 10968 for addresses
10969 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
10970
6c688477 109712009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10972
10973 Avoid aliases when compiling with Apple's CC for PCBIOS machine
10974
10975 * kern/misc.c [APPLE_CC] (memcpy): new function
10976 [APPLE_CC] (memmove): likewise
10977 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
473d1e45 10978 (memcpy): define alias conditionally on !APPLE_CC
6c688477 10979 (memset): likewise
10980 (abort): likewise
10981 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
10982 APPLE_CC are defined
10983 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
10984 (grub_assert_fail): make prototype conditional
10985
e37ffc5c 109862009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10987
10988 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
10989
473d1e45 10990 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
10991 grub-macho2img
e37ffc5c 10992 (CLEANFILES): add grub-macho2img
10993 (grub_macho2img_SOURCES): new variable
10994 * kern/i386/pc/startup.S (bss_start): new variable
10995 (bss_end): likewise
10996 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
10997 * util/grub-macho2img.c: new file
10998
cf00df31 109992009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11000
11001 Use objconv when compiling with Apple's CC
11002
11003 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
11004 (efiemu64.o): likewise
11005 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
11006 when compiling with Apple's CC
11007 (efiemu64_s.o): likewise
11008 * configure.ac: check for objconv when compiling with Apple's CC
11009 * genmk.rb: use objconv for modules when compiled with Apple's CC
473d1e45 11010
d119a20c 110112009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11012
11013 Define segment as well as section when compiling with
11014 Apple's CC
11015
11016 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
11017 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
11018 (efiemu_convert_pointer): likewise
11019 (efiemu_set_virtual_address_map): likewise
11020 (efiemu_convert_pointer): likewise
11021 (efiemu_getcrc32): likewise
11022 (init_crc32_table): likewise
11023 (reflect): likewise
11024 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
11025 (GRUB_MOD_DEP): likewise
473d1e45 11026
c8600122 110272009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11028
11029 Allow a compilation without -mcmodel=large
11030
11031 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
11032 when compiled without -mcmodel=large
473d1e45 11033 (filter_memory_map): remove memory post 4 GiB when compiled
c8600122 11034 without -mcmodel=large
473d1e45 11035 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
c8600122 11036 TARGET_CFLAGS when -mcmodel=large isn't supported
473d1e45 11037
e8df1d4e 110382009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11039
11040 Remove nested functions in efiemu core
11041
11042 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
473d1e45 11043
cc6c3ac1 110442009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11045
11046 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
11047
11048 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
11049 temporary storage
473d1e45 11050 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
11051 using Apple's CC
cc6c3ac1 11052 (grub_cpu_is_tsc_supported): likewise
11053 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
473d1e45 11054
3e325901 110552009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11056
11057 Absolute addressing through constant with Apple's cc
11058
11059 * kern/i386/pc/startup.S: Define necessary constants
11060 and address through it when using ABS with Apple's CC
11061 * boot/i386/pc/diskboot.S: likewise
11062 * boot/i386/pc/boot.S: likewise
11063 * boot/i386/pc/lnxboot.S: likewise
11064 * boot/i386/pc/cdboot.S: likewise
11065 * mmap/i386/pc/mmap_helper.S: likewise
11066 * commands/i386/pc/drivemap_int13h.S: likewise
11067
2b167a72 110682009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11069
11070 Check if compiler is apple cc
11071
11072 * Makefile.in (ASFLAGS): new variable
11073 (TARGET_ASFLAGS): likewise
11074 (TARGET_MODULE_FORMAT): likewise
11075 (TARGET_APPLE_CC): likewise
11076 (OBJCONV): likewise
11077 (TARGET_IMG_CFLAGS): likewise
11078 (TARGET_CPPFLAGS): add includedir
11079 * configure.ac: call grub_apple_cc and grub_apple_target_cc
11080 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
11081 Check for linker script only if compiler isn't Apple's CC
11082 (TARGET_MODULE_FORMAT): set
11083 (TARGET_APPLE_CC): likewise
11084 (TARGET_ASFLAGS): likewise
11085 (ASFLAGS): likewise
11086 Check for objcopy only if compiler isn't Apple's CC
11087 Check for BSS symbol only if compiler isn't Apple's CC
11088 * genmk.rb: adapt nm options if we use Apple's utils
11089 * aclocal.m4 (grub_apple_cc): new test
11090 (grub_apple_target_cc): likewise
473d1e45 11091
fb14123e 110922009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11093
11094 Simplify sed expressions and improve awk
11095
11096 * Makefile.in (install-local): simplify sed expression
11097 * gencmdlist.sh: likewise
11098 * genmoddep.awk: avoid adding module as a dependency of itself
11099
5b889789 111002009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11101
11102 Add missing start symbols
11103
11104 * boot/i386/pc/boot.S: add start
fb14123e 11105 * boot/i386/pc/pxeboot.S: likewise
473d1e45 11106
fd2bf2e3 111072009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11108
11109 Fix wrong assumptions with grub-mkimage on EFI
473d1e45 11110
11111 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
fd2bf2e3 11112 (relocate_addresses): consider both r_addend and value at offset
11113 (make_mods_section): zerofill modinfo and header
11114 (convert_elf): write prefix here
473d1e45 11115
5389763d 111162009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11117
11118 Use .asciz instead of .string
11119
11120 * i386/pc/diskboot.S: use .asciz instead of .string
11121 * i386/pc/boot.S: likewise
11122 * include/grub/dl.h (GRUB_MOD_DEP): likewise
11123 (GRUB_MOD_NAME): likewise
473d1e45 11124
3eb5ed4e 111252009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11126
11127 gfxpayload support
11128
11129 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
11130 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
11131 (grub_video_setup): remove
11132 (grub_video_set_mode): new prototype
11133 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
11134 (vid_mode): remove
11135 (linux_vesafb_res): compile only on PCBIOS
11136 (grub_linux_boot): support gfxpayload
11137 * loader/i386/pc/xnu.c (video_hook): new function
11138 (grub_xnu_set_video): support gfxpayload
11139 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
11140 (DEFAULT_VIDEO_HEIGHT): likewise
11141 (DEFAULT_VIDEO_FLAGS): likewise
11142 (DEFAULT_VIDEO_MODE): new definition
11143 (video_hook): new function
11144 (grub_gfxterm_init): use grub_video_set_mode
473d1e45 11145 * util/grub.d/30_os-prober.in: remove explicit modesetting before
3eb5ed4e 11146 loading xnu
11147 * video/video.c (grub_video_setup): removed
473d1e45 11148 (grub_video_set_mode): new function based on grub_gfxterm_init and
3eb5ed4e 11149 grub_video_setup
11150
4b0e1143 111512009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11152
11153 Avoid calling biosdisk in drivemap
11154
11155 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
11156 (revparse_biosdisk): likewise
11157 (list_mappings): derive name from id directly
11158 (grub_cmd_drivemap): use tryparse_diskstring
473d1e45 11159
fda6cb98 111602009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11161
11162 Script fixes
11163
11164 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
11165 (grub_lexer_param): add tokenonhold
11166 (grub_script_create_cmdline): remove cmdline. All callers updated
11167 (grub_script_function_create): make functionname
11168 grub_script_arg. All callers updated
11169 (grub_script_execute_argument_to_string): new prototype
11170 * kern/parser.c (state_transitions): reorder
11171 (grub_parser_cmdline_state): fix a bug and make more compact
473d1e45 11172 * script/sh/execute.c (grub_script_execute_argument_to_string):
fda6cb98 11173 make global
11174 (grub_script_execute_cmdline): use new format
11175 * script/sh/function.c (grub_script_function_create): make functionname
11176 grub_script_arg. All callers updated
473d1e45 11177 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
fda6cb98 11178 (grub_script_yylex): remove
11179 (grub_script_yylex2): renamed to ...
11180 (grub_script_yylex): ...renamed
11181 parse the expressions like a${b}c
11182 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
11183 (GRUB_PARSER_TOKEN_VAR): remove
11184 (GRUB_PARSER_TOKEN_NAME): likewise
11185 ("if"): declare as typeless
11186 ("while"): likewise
11187 ("function"): likewise
11188 ("else"): likewise
11189 ("then"): likewise
11190 ("fi"): likewise
11191 (text): remove
11192 (argument): likewise
11193 (script): accept empty scripts and make exit on error
11194 (arguments): use GRUB_PARSER_TOKEN_ARG
11195 (function): likewise
11196 (command): move error handling to script
11197 (menuentry): move grub_script_lexer_ref before
473d1e45 11198 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
fda6cb98 11199 argument. All callers updated
11200
f4448a07 112012009-06-04 Robert Millan <rmh.grub@aybabtu.com>
11202
11203 Prevent GRUB from probing floppies during boot.
11204
11205 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
11206 * commands/search.c (options): Add --no-floppy.
11207 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
11208 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
11209 --no-floppy when searching for UUIDs.
11210
2bf5885a 112112009-06-04 Robert Millan <rmh.grub@aybabtu.com>
11212
11213 Simplify the code duplication in commands/search.c.
11214
11215 * commands/search.c (search_label, search_fs_uuid): Merge into ...
11216 (search_fs): ... this. Update all users.
11217
f6fd460a 112182009-06-03 Felix Zielcke <fzielcke@z-51.de>
11219
11220 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
11221
cbb3c83e 112222009-05-28 Pavel Roskin <proski@gnu.org>
11223
57788cfd 11224 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
11225 Remove the original symlink explicitly.
11226
cbb3c83e 11227 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
11228 just one slash. That's how grub_fshelp_find_file() does it.
11229
cd0d5e30 112302009-05-26 Pavel Roskin <proski@gnu.org>
11231
f0f8bbe2 11232 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
11233 to `str'.
11234
cd0d5e30 11235 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
11236 possibly unused.
11237
8c2cab51 112382009-05-25 Christian Franke <franke@computer.org>
11239
11240 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
11241 register.
11242 (grub_atapi_identify): Add wait after drive select.
11243 (grub_ata_identify): Do more strict status register check before
11244 calling grub_atapi_identify (). Suppress error message if status
11245 register is 0x00 after command failure. Add status register
11246 check after PIO read to avoid bogus identify due to stuck DRQ.
11247 Thanks to Pavel Roskin for testing.
11248 (grub_device_initialize): Remove unsafe status register check.
11249 Thanks to 'phcoder' for problem report and patch.
11250 Prevent sign extension in debug message.
11251
230c0ad6 112522009-05-23 Colin D Bennett <colin@gibibit.com>
11253
11254 Cleaned up `include/grub/normal.h'. Grouped prototypes by
11255 definition file, and functions defined in `normal/menu.c' have had
11256 their prototypes moved to `include/grub/menu.h' for consistency.
11257
11258 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
11259 from normal.h.
11260 (grub_menu_get_entry): Likewise.
11261 (grub_menu_get_timeout): Likewise.
11262 (grub_menu_set_timeout): Likewise.
11263 (grub_menu_execute_entry): Likewise.
11264 (grub_menu_execute_with_fallback): Likewise.
11265 (grub_menu_entry_run): Likewise.
11266
11267 * include/grub/normal.h: Re-ordered and grouped function
11268 prototypes by file that the function is defined in.
11269 (grub_menu_execute_callback): Removed; moved to menu.h.
11270 (grub_menu_get_entry): Likewise.
11271 (grub_menu_get_timeout): Likewise.
11272 (grub_menu_set_timeout): Likewise.
11273 (grub_menu_execute_entry): Likewise.
11274 (grub_menu_execute_with_fallback): Likewise.
11275 (grub_menu_entry_run): Likewise.
11276 (grub_menu_addentry): Renamed from this ...
11277 (grub_normal_add_menu_entry): ... to this.
11278
11279 * normal/main.c (grub_menu_addentry): Renamed from this ...
11280 (grub_normal_add_menu_entry): ... to this.
11281
11282 * script/sh/execute.c (grub_script_execute_menuentry): Update
11283 reference to renamed grub_menu_addentry function.
11284
861f03a5 112852009-05-23 Felix Zielcke <fzielcke@z-51.de>
11286
11287 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
11288
96b1619a 112892009-05-22 Pavel Roskin <proski@gnu.org>
11290
bf6a5fb2 11291 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
11292 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
11293 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
11294 compiling for the i386 targets, but not for the utilities.
11295
96b1619a 11296 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
11297 to grub_uint8_t.
11298 (grub_root_drive): Likewise.
11299 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
11300 remove alignment.
11301 (grub_root_drive): Change size to byte.
11302 (grub_start_addr): Remove.
11303 (grub_end_addr): Likewise.
11304 (grub_apm_bios_info): Likewise.
11305
b729776b 113062009-05-21 Felix Zielcke <fzielcke@z-51.de>
11307
11308 * normal/i386: Remove.
11309 * normal/powerpc: Likewise.
11310 * normal/sparc64: Likewise.
11311 * normal/x86_64: Likewise.
11312
0a15ce80 113132009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
11314
11315 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
473d1e45 11316 * loader/i386/linux_trampoline.S: Fix indentation
0a15ce80 11317 * loader/i386/xnu_helper.S: Likewise
d6da58e6 11318
33db9015 113192009-05-18 Colin D Bennett <colin@gibibit.com>
11320
d6da58e6 11321 Display error messages when parsing a Lua statement fails.
11322 Previously, executing a syntactically invalid statement like
11323 ")foo" or "bar;" would silently fail.
33db9015 11324
11325 * script/lua/grub_main.c (handle_lua_error): New function.
d6da58e6 11326 (grub_lua_parse_line): Improved reporting of Lua parser and
11327 execution errors.
33db9015 11328
46422c89 113292009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
11330
11331 Remove -Werror which causes build to fail on some systems
11332
11333 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
11334 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
11335 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
18f547ad 11336
22f53a96 113372009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
11338
11339 trampoline for linux on 64-bit platform
11340
18f547ad 11341 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
11342 loader/i386/efi/linux_trampoline.S
11343 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
473d1e45 11344 declaration
d6da58e6 11345 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
11346 here
22f53a96 11347 * loader/i386/linux_trampoline.S: moved here
d6da58e6 11348 * loader/i386/efi/linux.c (allocate_pages): reserve space for
11349 trampoline
22f53a96 11350 (jumpvector): removed
11351 (grub_linux_trampoline_start): new declaration
11352 (grub_linux_trampoline_end): likewise
11353 (grub_linux_boot): use trampoline when on 64-bit platform
11354 * loader/i386/linux.c: likewise
11355
cb5a0f40 113562009-05-16 Pavel Roskin <proski@gnu.org>
11357
11358 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
11359 const to avoid a warning.
11360 (grub_lua_setenv): Likewise.
11361 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
11362 lmsg to fix a warning.
11363
334f2c28 113642009-05-16 Felix Zielcke <fzielcke@z-51.de>
11365
11366 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
7dd10fce 11367 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
11368 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
11369 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
11370 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
11371 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
11372 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
11373 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
334f2c28 11374
59e5d3ec 113752009-05-16 Felix Zielcke <fzielcke@z-51.de>
11376
11377 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
11378
9d87a1ba 113792009-05-16 Bean <bean123ch@gmail.com>
11380
11381 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
11382 (lua_mod_SOURCES): New variable.
11383 (lua_mod_CFLAGS): Likewise.
11384 (lua_mod_LDFLAGS): Likewise.
11385
11386 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
11387 (setjmp_mod_SOURCES): New variable.
11388 (setjmp_mod_CFLAGS): Likewise.
11389 (setjmp_LDFLAGS): Likewise.
11390
11391 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
11392 (setjmp_mod_SOURCES): New variable.
11393 (setjmp_mod_CFLAGS): Likewise.
11394 (setjmp_LDFLAGS): Likewise.
11395
11396 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
11397 (setjmp_mod_SOURCES): New variable.
11398 (setjmp_mod_CFLAGS): Likewise.
11399 (setjmp_LDFLAGS): Likewise.
11400
11401 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
11402 (setjmp_mod_SOURCES): New variable.
11403 (setjmp_mod_CFLAGS): Likewise.
11404 (setjmp_LDFLAGS): Likewise.
11405
11406 * normal/i386/setjmp.S: Moved from here ...
11407 * lib/i386/setjmp.S: ... Moved here
11408 * normal/x86_64/setjmp.S: Moved from here ...
11409 * lib/x86_64/setjmp.S: ... Moved here
11410 * normal/powerpc/setjmp.S: Moved from here ...
11411 * lib/powerpc/setjmp.S: ... Moved here
11412 * normal/sparc64/setjmp.S: Moved from here ...
11413 * lib/sparc64/setjmp.S: ... Moved here
11414
11415 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
11416 returns_twice in mingw.
11417
11418 * script/lua/grub_lib.c: New file.
11419 * script/lua/grub_lib.h: Likewise.
11420 * script/lua/grub_lua.h: Likewise.
11421 * script/lua/grub_main.c: Likewise.
11422 * script/lua/lapi.c: Likewise.
11423 * script/lua/lapi.h: Likewise.
11424 * script/lua/lauxlib.c: Likewise.
11425 * script/lua/lauxlib.h: Likewise.
11426 * script/lua/lbaselib.c: Likewise.
11427 * script/lua/lcode.c: Likewise.
11428 * script/lua/lcode.h: Likewise.
11429 * script/lua/ldblib.c: Likewise.
11430 * script/lua/ldebug.c: Likewise.
11431 * script/lua/ldebug.h: Likewise.
11432 * script/lua/ldo.c: Likewise.
11433 * script/lua/ldo.h: Likewise.
11434 * script/lua/ldump.c: Likewise.
11435 * script/lua/lfunc.c: Likewise.
11436 * script/lua/lfunc.h: Likewise.
11437 * script/lua/lgc.c: Likewise.
11438 * script/lua/lgc.h: Likewise.
11439 * script/lua/linit.c: Likewise.
11440 * script/lua/liolib.c: Likewise.
11441 * script/lua/llex.c: Likewise.
11442 * script/lua/llex.h: Likewise.
11443 * script/lua/llimits.h: Likewise.
11444 * script/lua/lmathlib.c: Likewise.
11445 * script/lua/lmem.c: Likewise.
11446 * script/lua/lmem.h: Likewise.
11447 * script/lua/loadlib.c: Likewise.
11448 * script/lua/lobject.c: Likewise.
11449 * script/lua/lobject.h: Likewise.
11450 * script/lua/lopcodes.c: Likewise.
11451 * script/lua/lopcodes.h: Likewise.
11452 * script/lua/loslib.c: Likewise.
11453 * script/lua/lparser.c: Likewise.
11454 * script/lua/lparser.h: Likewise.
11455 * script/lua/lstate.c: Likewise.
11456 * script/lua/lstate.h: Likewise.
11457 * script/lua/lstring.c: Likewise.
11458 * script/lua/lstring.h: Likewise.
11459 * script/lua/lstrlib.c: Likewise.
11460 * script/lua/ltable.c: Likewise.
11461 * script/lua/ltable.h: Likewise.
11462 * script/lua/ltablib.c: Likewise.
11463 * script/lua/ltm.c: Likewise.
11464 * script/lua/ltm.h: Likewise.
11465 * script/lua/lua.h: Likewise.
11466 * script/lua/luaconf.h: Likewise.
11467 * script/lua/lualib.h: Likewise.
11468 * script/lua/lundump.c: Likewise.
11469 * script/lua/lundump.h: Likewise.
11470 * script/lua/lvm.c: Likewise.
11471 * script/lua/lvm.h: Likewise.
11472 * script/lua/lzio.c: Likewise.
11473 * script/lua/lzio.h: Likewise.
11474
5e898c9d 114752009-05-16 Bean <bean123ch@gmail.com>
11476
11477 * include/grub/kernel.h (grub_module_header_types): Add type
11478 OBJ_TYPE_CONFIG.
11479
11480 * kern/main.c (grub_load_config): New function.
11481 (grub_main): Call grub_load_config to read boot config.
11482
11483 * grub-mkimage (generate_image): New parameter config_path.
11484 (options): New option --config.
11485 (main): Parse --config option, and pass it to generate_image.
11486
cf353a47 114872009-05-14 Christian Franke <franke@computer.org>
11488
11489 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
11490 This fixes build on Cygwin.
11491
3834887f 114922009-05-14 Pavel Roskin <proski@gnu.org>
11493
11494 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
11495 jump. This saves two bytes, so the typical case of 2 swapped
11496 drives would fit 32 bytes.
11497
8090fc01 114982009-05-13 Pavel Roskin <proski@gnu.org>
11499
ac963883 11500 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
11501 grub_uint32_t to avoid a warning.
11502
8090fc01 11503 * loader/i386/linux.c (allocate_pages): When assigning
11504 real_mode_mem, cast through grub_size_t to fix a warning. The
11505 code already makes sure that the value would fit a pointer.
11506 (grub_linux_setup_video): Cast render_target->data to
11507 grub_size_t to fix a warning.
11508
18f547ad 115092009-05-13 Javier Martín <lordhabbit@gmail.com>
4246b8a9 11510
11511 * commands/i386/pc/drivemap.c: New file - implement drivemap
11512 command.
11513 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
11514 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
11515
6f6a8b28 115162009-05-13 Pavel Roskin <proski@gnu.org>
11517
11518 * util/i386/pc/grub-setup.c (setup): Remove unused variable
11519 embedding_area_exists.
11520
15fbf4c4 115212009-05-13 Robert Millan <rmh.grub@aybabtu.com>
11522
11523 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
11524 it easier to understand / work with.
59978c8a 11525 Improve warning messages for cases where there's no embedding area,
11526 or when it is too small (or core.img too large).
15fbf4c4 11527
238e871f 115282009-05-13 Pavel Roskin <proski@gnu.org>
11529
0ab3a9a4 11530 * loader/i386/pc/multiboot2.c: Add necessary includes for
11531 grub_multiboot2_real_boot().
11532
a2c8c5f8 11533 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
11534 PX record is always little-endian. We only need the lower 2
11535 bytes of the mode.
11536
faec96af 11537 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
11538 facilitate code reuse.
11539 (grub_cpio_mount): Use "struct head", not a char buffer. This
11540 fixes a warning reported by gcc 4.4.
11541
238e871f 11542 * kernel/disk.c (grub_disk_read): Use void pointer for the
11543 buffer.
11544 (grub_disk_write): Use const void pointer for the buffer.
11545 Adjust all callers. Remove unnecessary casts.
11546
901d2f0c 115472009-05-10 Robert Millan <rmh.grub@aybabtu.com>
11548
11549 * util/i386/pc/grub-install.in: Update copyright year.
11550
18f547ad 115512009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
2eac4c16 11552
11553 gptsync
11554
11555 * commands/gptsync.c: new file
11556 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
11557 (gptsync_mod_SOURCES): new variable
11558 (gptsync_mod_CFLAGS): likewise
11559 (gptsync_mod_LDFLAGS): likewise
18f547ad 11560 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
2eac4c16 11561 new definition
11562 (GRUB_PC_PARTITION_TYPE_HFS): likewise
11563 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
11564 * conf/i386-ieee1275.rmk: likewise
11565 * conf/i386-pc.rmk: likewise
11566 * conf/powerpc-ieee1275.rmk: likewise
11567
b4ba690a 115682009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
11569
11570 Fixed grub-emu
11571
11572 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
11573 (grub_dl_ref): likewise
11574
317e1a44 115752009-05-08 Robert Millan <rmh.grub@aybabtu.com>
11576
11577 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
11578 split in two functions (one for msdos and one for gpt).
11579
041b8094 115802009-05-08 Pavel Roskin <proski@gnu.org>
11581
752473c2 11582 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
11583 not modified.
11584
041b8094 11585 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
11586 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
11587 Initialize them with -1. Add sanity check for bad1. Eliminate
11588 nerr variable.
11589
172800ce 115902009-05-08 David S. Miller <davem@davemloft.net>
11591
11592 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
11593
29aa5e81 115942009-05-06 Robert Millan <rmh.grub@aybabtu.com>
11595
11596 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
473d1e45 11597 existence.
29aa5e81 11598
96613b62 115992009-05-05 Felix Zielcke <fzielcke@z-51.de>
11600
11601 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
1905c57b 11602 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
96613b62 11603
eef73c8a 116042009-05-05 David S. Miller <davem@davemloft.net>
11605
11606 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
11607
119494b5 116082009-05-05 Pavel Roskin <proski@gnu.org>
11609
11610 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
11611 of grub_dl_ref() and grub_dl_unref().
11612 * commands/parttool.c: Remove preprocessor conditionals around
11613 grub_dl_ref() and grub_dl_unref().
11614 * fs/affs.c: Likewise.
11615 * fs/afs.c: Likewise.
11616 * fs/cpio.c: Likewise.
11617 * fs/ext2.c: Likewise.
11618 * fs/fat.c: Likewise.
11619 * fs/hfs.c: Likewise.
11620 * fs/hfsplus.c: Likewise.
11621 * fs/iso9660.c: Likewise.
11622 * fs/jfs.c: Likewise.
11623 * fs/minix.c: Likewise.
11624 * fs/ntfs.c: Likewise.
11625 * fs/reiserfs.c: Likewise.
11626 * fs/sfs.c: Likewise.
11627 * fs/udf.c: Likewise.
11628 * fs/ufs.c: Likewise.
11629 * fs/xfs.c: Likewise.
11630 * include/grub/dl.h: Likewise.
11631 * loader/xnu.c: Likewise.
11632
de5fd76e 116332009-05-04 Pavel Roskin <proski@gnu.org>
11634
11635 * commands/acpi.c: Remove unused variable my_mod.
11636 * partmap/amiga.c: Likewise.
11637 * partmap/apple.c: Likewise.
11638 * partmap/gpt.c: Likewise.
11639 * partmap/pc.c: Likewise.
11640 * partmap/sun.c: Likewise.
11641 * term/gfxterm.c: Likewise.
11642 * term/i386/pc/vesafb.c: Likewise.
11643 * term/i386/pc/vga.c: Likewise.
11644
983598ad 116452009-05-04 David S. Miller <davem@davemloft.net>
11646
11647 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
11648 pointer args to grub_ieee1275_get_property().
11649
8aadec43 11650 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
11651
9554b15e 11652 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
11653 devices, and do not traverse down under controller nodes.
11654
67e23c90 11655 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
11656 (grub_ofdisk_open): Use it to un-escape "," characters.
11657 * kern/disk.c (find_part_sep): New.
11658 (grub_disk_open): Use it to find the first non-escaped ','
11659 character in the disk name.
11660 * util/ieee1275/devicemap.c (escape_of_path): New.
11661 (grub_util_emit_devicemap_entry): Use it.
11662 * util/sparc64/ieee1275/grub-install.in: Update script to
11663 strip partition specifiers properly by not triggering on
11664 '\' escaped ',' characters.
11665
74bfdd2f 116662009-05-04 Robert Millan <rmh.grub@aybabtu.com>
11667
11668 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
11669 to 0x300.
11670 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
11671 resolutions.
11672 (linux_vesafb_modes): Add a lot of additional modes to the list (based
11673 on documentation from Wikipedia).
11674
4241d2b1 116752009-05-04 Pavel Roskin <proski@gnu.org>
11676
11677 * disk/ata.c: Spelling fixes.
11678 * disk/raid.c: Likewise.
11679 * disk/usbms.c: Likewise.
11680 * disk/dmraid_nvidia.c: Likewise.
11681 * kern/ieee1275/openfw.c: Likewise.
11682 * kern/ieee1275/init.c: Likewise.
11683 * kern/ieee1275/cmain.c: Likewise.
11684 * boot/i386/pc/cdboot.S: Likewise.
11685 * video/readers/png.c: Likewise.
11686 * video/i386/pc/vbe.c: Likewise.
11687 * fs/udf.c: Likewise.
11688 * fs/hfs.c: Likewise.
11689 * fs/reiserfs.c: Likewise.
11690 * efiemu/runtime/efiemu.c: Likewise.
11691 * efiemu/main.c: Likewise.
11692 * efiemu/mm.c: Likewise.
11693 * include/grub/elf.h: Likewise.
11694 * include/grub/xnu.h: Likewise.
11695 * include/grub/usbdesc.h: Likewise.
11696 * include/grub/usb.h: Likewise.
11697 * include/grub/script_sh.h: Likewise.
11698 * include/grub/lib/LzmaEnc.h: Likewise.
11699 * include/grub/efiemu/efiemu.h: Likewise.
11700 * include/grub/command.h: Likewise.
11701 * normal/menu.c: Likewise.
11702 * normal/main.c: Likewise.
11703 * normal/datetime.c: Likewise.
11704 * bus/usb/uhci.c: Likewise.
11705 * mmap/i386/uppermem.c: Likewise.
11706 * mmap/mmap.c: Likewise.
11707 * commands/acpi.c: Likewise.
11708 * commands/test.c: Likewise.
11709 * partmap/apple.c: Likewise.
11710 * font/font.c: Likewise.
11711 * loader/sparc64/ieee1275/linux.c: Likewise.
11712 * loader/macho.c: Likewise.
11713 * loader/i386/bsd_trampoline.S: Likewise.
11714 * loader/i386/bsd.c: Likewise.
11715 * loader/xnu.c: Likewise.
11716 * term/i386/pc/vesafb.c: Likewise.
11717 * term/usb_keyboard.c: Likewise.
11718 * util/resolve.c: Likewise.
11719 * util/getroot.c: Likewise.
11720
0cfc0083 117212009-05-04 Felix Zielcke <fzielcke@z-51.de>
11722
11723 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
11724
7c1d00cd 117252009-05-04 Robert Millan <rmh.grub@aybabtu.com>
11726
11727 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
11728 build error.
11729
b01f0548 117302009-05-04 Robert Millan <rmh.grub@aybabtu.com>
11731
11732 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
11733 parameter only available on BIOS.
11734
ecc3eb22 117352009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
11736
11737 Removed wrong semicolon in declaration
11738
11739 * grub/misc.h (grub_dprintf): remove semicolon
11740
112972a9 117412009-05-04 Robert Millan <rmh.grub@aybabtu.com>
11742
11743 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
11744 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
11745 is done by grub_cmd_linux() now).
11746 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
11747 restore video to text mode.
11748 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
11749 indicates lack of "vga=" parameter. "vga=0" is mapped to
11750 `GRUB_LINUX_VID_MODE_NORMAL'.
11751
afd5c115 117522009-05-04 Felix Zielcke <fzielcke@z-51.de>
11753
11754 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
11755 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
11756 and `normal/script.c'. Add `kern/rescue_reader.c',
18f547ad 11757 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
afd5c115 11758 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
11759 `grub_script.tab.c'.
11760
11761 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
11762 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
11763 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
11764 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
11765 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
11766
faa517ce 11767 * Makefile.in: Remove duplicated 2008 in Copyright line.
11768
ae0c0bdc 117692009-05-04 Robert Millan <rmh.grub@aybabtu.com>
11770
473d1e45 11771 * util/misc.c (grub_util_warn): New function. Emits a warning
ae0c0bdc 11772 unconditionally.
11773 * include/grub/util/misc.h (grub_util_warn): New declaration.
11774
11775 * util/i386/pc/grub-install.in: Understand --force and pass it down
11776 to grub-setup.
11777
11778 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
11779 down to setup().
11780 (setup): Improve error messages and add warnings when requested to
11781 install in odd layouts. Refuse to install using blocklists unless
11782 --force was set.
11783
18f547ad 117842009-05-04 martin f. krafft <madduck@madduck.net>
c149b500 11785
11786 * disk/raid.c (grub_raid_scan_device): Improve debug message.
11787
6d260daa 117882009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
11789
11790 Updated copyright year
11791
11792 * fs/hfsplus.c: updated copyright year
18f547ad 11793
69f853f8 117942009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
11795
11796 HFS+ UUID
11797
18f547ad 11798 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
69f853f8 11799 in the space previously used by unused3
11800 (grub_hfsplus_uuid): new function
11801 (grub_hfsplus_fs): added uuid field
11802
4c402e73 118032009-05-03 Pavel Roskin <proski@gnu.org>
11804
11805 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
11806 suppress warnings. It's no longer needed.
11807 * disk/host.c: Likewise.
11808 * disk/ata_pthru.c: Likewise.
11809 * disk/loopback.c: Likewise.
11810 * hook/datehook.c: Likewise.
11811 * parttool/pcpart.c: Likewise.
11812 * fs/i386/pc/pxe.c: Likewise.
11813 * fs/ntfscomp.c: Likewise.
11814 * efiemu/main.c: Likewise.
11815 * mmap/mmap.c: Likewise.
11816 * commands/crc.c: Likewise.
11817 * commands/hexdump.c: Likewise.
11818 * commands/hdparm.c: Likewise.
11819 * commands/acpi.c: Likewise.
11820 * commands/echo.c: Likewise.
11821 * commands/minicmd.c: Likewise.
11822 * commands/blocklist.c: Likewise.
11823 * commands/memrw.c: Likewise.
11824 * commands/loadenv.c: Likewise.
11825 * commands/usbtest.c: Likewise.
11826 * commands/lsmmap.c: Likewise.
11827 * commands/boot.c: Likewise.
11828 * commands/parttool.c: Likewise.
11829 * commands/configfile.c: Likewise.
11830 * commands/search.c: Likewise.
11831 * commands/ieee1275/suspend.c: Likewise.
11832 * commands/cat.c: Likewise.
11833 * commands/i386/pc/pxecmd.c: Likewise.
11834 * commands/i386/pc/play.c: Likewise.
11835 * commands/i386/pc/halt.c: Likewise.
11836 * commands/i386/pc/vbeinfo.c: Likewise.
11837 * commands/i386/pc/vbetest.c: Likewise.
11838 * commands/lspci.c: Likewise.
11839 * commands/date.c: Likewise.
11840 * commands/handler.c: Likewise.
11841 * commands/ls.c: Likewise.
11842 * commands/test.c: Likewise.
11843 * commands/cmp.c: Likewise.
11844 * commands/efi/loadbios.c: Likewise.
11845 * commands/efi/fixvideo.c: Likewise.
11846 * commands/halt.c: Likewise.
11847 * commands/help.c: Likewise.
11848 * commands/reboot.c: Likewise.
11849 * hello/hello.c: Likewise.
11850 * script/sh/main.c: Likewise.
11851 * loader/xnu.c: Likewise.
11852 * term/terminfo.c: Likewise.
11853 * term/i386/pc/serial.c: Likewise.
11854 * term/usb_keyboard.c: Likewise.
11855
515b5079 118562009-05-03 David S. Miller <davem@davemloft.net>
11857
11858 * normal/menu.c: Include grub/parser.h
11859
dfc31a22 118602009-05-03 Pavel Roskin <proski@gnu.org>
11861
2fee74f1 11862 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
11863 not char*.
11864 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
11865 Suggested by Javier Martín <lordhabbit@gmail.com>
11866
dfc31a22 11867 * util/i386/pc/grub-mkrescue.in: Allow for the case when
11868 efiemu??.o doesn't exist.
11869 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
11870 copying.
11871
18f547ad 118722009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
cef17233 11873
11874 FreeBSD 64-bit support
11875
18f547ad 11876 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
cef17233 11877 and loader/i386/bsd_trampoline.S
11878 (bsd_mod_ASFLAGS): new variable
11879 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
11880 (FREEBSD_MODTYPE_KERNEL64): likewise
11881 (grub_bsd64_trampoline_start): likewise
11882 (grub_bsd64_trampoline_end): likewise
11883 (grub_bsd64_trampoline_selfjump): likewise
11884 (grub_bsd64_trampoline_gdt): likewise
11885 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
11886 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
11887 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
11888 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
18f547ad 11889 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
cef17233 11890 of "attrib" member
11891 * loader/i386/bsd_pagetable.c: new file
11892 * loader/i386/bsd_trampoline.S: likewise
11893 * loader/i386/bsd.c (ALIGN_QWORD): new macro
11894 (ALIGN_VAR): likewise
11895 (entry_hi): new variable
11896 (kern_end_mdofs): likewise
11897 (is_64bit): likewise
11898 (grub_freebsd_add_meta): use ALIGN_VAR
11899 (grub_e820_mmap): new declaration
11900 (grub_freebsd_add_mmap): new function
11901 (grub_freebsd_add_meta_module): support 64 bit kernels
11902 (grub_freebsd_list_modules): use ALIGN_VAR
11903 (gdt_descriptor): new declaration
11904 (grub_freebsd_boot): support 64 bit kernels
11905 (grub_bsd_elf64_hook): new function
11906 (grub_bsd_load_elf): support elf64
11907
038c5720 119082009-05-03 Bean <bean123ch@gmail.com>
11909
11910 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
11911 after we get the result of if statement.
11912
fc45fb58 119132009-05-03 Bean <bean123ch@gmail.com>
11914
11915 * Makefile.in (enable_efiemu): New variable.
11916
11917 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
11918 set.
11919 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
11920 path.
11921 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
11922 path, add -mno-red-zone option.
11923 (efiemu64_s.o): Likewise.
11924 (efiemu64.o): Use macro $^ for source file.
11925
11926 * configure.ac (--enable-efiemu): New option.
11927
bbee0f2b 119282009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
11929
11930 xnu support
11931
11932 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
11933 (pkglib_MODULES): add xnu.mod
11934 (xnu_mod_SOURCES): new variable
11935 (xnu_mod_CFLAGS): likewise
11936 (xnu_mod_LDFLAGS): likewise
11937 (xnu_mod_ASFLAGS): likewise
11938 * conf/i386-pc.rmk: likewise
11939 * conf/x86_64-efi.rmk: likewise
7dd4a573 11940 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
bbee0f2b 11941 new declaration
11942 * include/grub/i386/macho.h: new file
11943 * include/grub/i386/xnu.h: likewise
11944 * include/grub/macho.h: likewise
11945 * include/grub/machoload.h: likewise
11946 * include/grub/x86_64/macho.h: likewise
11947 * include/grub/x86_64/xnu.h: likewise
11948 * include/grub/xnu.h: likewise
11949 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
11950 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
11951 * loader/i386/efi/xnu.c: new file
11952 * loader/i386/pc/xnu.c: likewise
11953 * loader/i386/xnu.c: likewise
11954 * loader/i386/xnu_helper.S: likewise
11955 * loader/macho.c: likewise
11956 * loader/xnu.c: likewise
11957 * loader/xnu_resume.c: likewise
11958 * util/grub-dumpdevtree: likewise
11959 * include/grub/i386/pit.h: include grub/err.h
11960 (grub_pit_wait): export
11961 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
7dd4a573 11962
5caf964d 119632009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
11964
11965 Efiemu
7dd4a573 11966
5caf964d 11967 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
7dd4a573 11968 _linux_efi, linux_efi.
11969 new files in grub-emu
5caf964d 11970 new targets efiemu32.o and efiemu64.o
11971 * loader/linux_normal_efiemu.c: likewise
11972 * loader/i386/efi/linux.c: added preliminary efiemu support
7dd4a573 11973 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
5caf964d 11974 files to copy
11975 * include/grub/autoefi.h: new file
7dd4a573 11976 * include/grub/i386/efiemu.h: likewise
5caf964d 11977 * include/grub/i386/pc/efiemu.h: likewise
11978 * include/grub/efi/api.h: add LL suffix when necessary
11979 new definitions relating to tables
11980 * include/grub/efiemu/efiemu.h: new file
11981 * include/grub/efiemu/runtime.h: likewise
11982 * efiemu/prepare.c: likewise
11983 * efiemu/loadcore_common.c: likewise
11984 * efiemu/loadcore64.c: likewise
11985 * efiemu/runtime/efiemu.sh: likewise
11986 * efiemu/runtime/efiemu.S: likewise
11987 * efiemu/runtime/efiemu.c: likewise
11988 * efiemu/runtime/config.h: likewise
11989 * efiemu/prepare32.c: likewise
11990 * efiemu/main.c: likewise
11991 * efiemu/modules/pnvram.c: likewise
11992 * efiemu/modules/i386: likewise
11993 * efiemu/modules/i386/pc: likewise
11994 * efiemu/modules/acpi.c: likewise
11995 * efiemu/i386/pc/cfgtables.c: likewise
11996 * efiemu/i386/loadcore64.c: likewise
11997 * efiemu/i386/loadcore32.c: likewise
11998 * efiemu/prepare64.c: likewise
11999 * efiemu/loadcore.c: likewise
12000 * efiemu/symbols.c: likewise
12001 * efiemu/mm.c: likewise
12002 * efiemu/loadcore32.c: likewise
7dd4a573 12003
120042009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
f8efe3ad 12005
12006 ACPI spoofing
12007
12008 * commands/acpi.c: new file
12009 * commands/i386/pc/acpi.c: likewise
12010 * commands/efi/acpi.c: likewise
12011 * include/grub/acpi.h: likewise
12012 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
12013 (acpi_mod_SOURCES): new variable
12014 (acpi_mod_CFLAGS): likewise
12015 (acpi_mod_LDFLAGS): likewise
12016 * conf/i386-efi.rmk: likewise
12017 * conf/x86_64-efi.rmk: likewise
12018
7dd4a573 120192009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
28a85665 12020
12021 Missing part from mmap patch
12022
12023 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
12024 (grub_mmap_unregister)
12025 (grub_mmap_free_and_unregister): use grub_mmap_register
12026
7dd4a573 120272009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
09d842b9 12028
12029 Mmap services
12030
12031 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
12032 * loader/i386/linux.c (find_mmap_size): likewise
12033 (allocate_pages): likewise
12034 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
12035 (grub_fill_multiboot_mmap): likewise
12036 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
12037 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
12038 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
12039 (OPENBSD_MMAP_RESERVED): likewise
12040 * include/grub/i386/pc/memory.h: include grub/memory.h
12041 (grub_lower_mem): removed
12042 (grub_upper_mem): likewise
12043 (GRUB_MACHINE_MEMORY_ACPI): new definition
12044 (GRUB_MACHINE_MEMORY_NVS): likewise
12045 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
12046 (GRUB_MACHINE_MEMORY_HOLE): likewise
12047 (grub_machine_mmap_register): likewise
12048 (grub_machine_mmap_unregister): likewise
12049 (grub_machine_get_upper): likewise
12050 (grub_machine_get_lower): likewise
12051 (grub_machine_get_post64): likewise
12052 * include/grub/i386/efi/memory.h: new file
12053 * include/grub/x86_64/efi/memory.h: likewise
12054 * include/grub/efi/memory.h: likewise
12055 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
12056 (mmap_mod_SOURCES): new variable
12057 (mmap_mod_LDFLAGS): likewise
12058 (mmap_mod_ASFLAGS): likewise
12059 * conf/i386-coreboot.rmk: likewise
12060 * conf/i386-ieee1275.rmk: likewise
12061 * conf/i386-efi.rmk: likewise
12062 * conf/x86_64-efi.rmk: likewise
12063 * include/grub/types.h (UINT_TO_PTR): new macro
12064 (PTR_TO_UINT32): likewise
12065 (PTR_TO_UINT64): likewise
12066 * include/grub/memory.h: new file
12067 * mmap/i386/pc/mmap.c: likewise
12068 * mmap/i386/pc/mmap_helper.S: likewise
12069 * mmap/i386/uppermem.c: likewise
12070 * mmap/mmap.c: likewise
12071 * mmap/efi/mmap.c: likewise
7dd4a573 12072 * kern/i386/coreboot/init.c (grub_machine_init): don't use
09d842b9 12073 grub_upper_mem
12074 * kern/i386/pc/init.c (grub_lower_mem): removed variable
12075 (grub_upper_mem): likewise
12076 (grub_machine_init): don't use grub_upper_mem,
12077 make grub_lower_mem local
12078 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
12079 grub_mmap_iterate and grub_mmap_get_upper
12080 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
12081
d558e6b5 120822009-05-02 Bean <bean123ch@gmail.com>
12083
12084 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
12085 script/sh/parser.y.
12086 (pkglib_MODULES): Add normal.mod and sh.mod.
12087 (normal_SOURCES): New variable.
12088 (normal_mod_CFLAGS): Likewise.
12089 (normal_mod_LDFLAGS): Likewise.
12090 (sh_mod_SOURCES): Likewise.
12091 (sh_mod_CFLAGS): Likewise.
12092 (sh_mod_LDFLAGS): Likewise.
12093
12094 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
12095 script/sh/lexer.c_DEPENDENCIES.
12096 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
12097 kern/rescue_reader.c and kern/rescue_parser.c.
12098 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
12099 (grub_emu_SOURCES): Change source files.
12100 (pkglib_MODULES): Remove normal.mod.
12101 (normal_SOURCES): Removed.
12102 (normal_mod_CFLAGS): Likewise.
12103 (normal_mod_LDFLAGS): Likewise.
12104 * conf/i386-coreboot.rmk: Likewise.
12105 * conf/i386-efi.rmk: Likewise.
12106 * conf/i386-ieee1276.rmk: Likewise.
12107 * conf/powerpc-ieee1275.rmk: Likewise.
12108 * conf/sparc64-ieee1275.rmk: Likewise.
12109 * conf/x86_64-efi.rmk: Likewise.
12110
12111 * include/grub/command.h (grub_command_execute): New inline function.
12112
12113 * include/grub/menu.h (grub_menu_entry): Removed commands field.
12114
12115 * include/grub/normal.h: Remove <grub/setjmp.h>.
12116 (grub_fs_module_list): Moved to normal/autofs.c.
12117 (grub_exit_env): Removed.
12118 (grub_command_execute): Likewise.
12119 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
12120 parameter script.
12121 (read_command_list): New function declaration.
12122 (read_fs_list): Likewise.
12123
12124 * include/parser.h: Include <grub/reader.h>.
12125 (grub_parser_split_cmdline): Change type of getline parameter.
12126 (grub_parser): New structure.
12127 (grub_parser_class): New variable.
12128 (grub_parser_execute): New function declaration.
12129 (grub_register_rescue_parser): Likewise.
12130 (grub_parser_register): New inline function.
12131 (grub_parser_unregister): Likewise.
12132 (grub_parser_get_current): Likewise.
12133 (grub_parser_set_current): Likewise.
12134
12135 * include/grub/reader.h: New file.
12136 * kern/reader.c: Likewise.
12137 * kern/rescue_parser.c: Likewise.
12138 * kern/rescue_reader.c: Likewise.
12139 * normal/autofs.c: Likewise.
12140 * normal/dyncmd.c: Likewise.
12141
12142 * include/grub/rescue.h: Removed.
12143 * normal/command.h: Likewise.
12144
12145 * include/grub/script.h: Moved to ...
12146 * include/grub/script_sh.h: ... Moved here.
12147 * normal/execute.c: Moved to ...
12148 * script/sh/execute.c: ... Moved here.
12149 * normal/function.c: Moved to ...
12150 * script/sh/function.c: ... Moved here.
12151 * normal/lexer.c: Moved to ...
12152 * script/sh/lexer.c: ... Moved here.
12153 * normal/parser.y: Moved to ...
12154 * script/sh/parser.y: ... Moved here.
12155 * normal/script.c: Moved to ...
12156 * script/sh/script.c: ... Moved here.
12157
12158 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
12159 <grub/reader.h>.
12160 (grub_exit_env): Removed.
12161 (fs_module_list): Moved to normal/autofs.c.
12162 (grub_file_getline): Don't handle comment here.
12163 (free_menu): Skip removed field entry->commands.
12164 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
12165 script parameter.
12166 (read_config_file): Removed nested parameter, change getline function.
12167 (grub_enter_normal_mode): Removed.
12168 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
12169 (read_command_list): Likewise.
12170 (autoload_fs_module): Moved to normal/autofs.c.
12171 (read_fs_list): Likewise.
12172 (reader_nested): New variable.
12173 (grub_normal_execute): Run parser.sh to switch to sh parser.
12174 (grub_cmd_rescue): Removed.
12175 (cmd_normal): Removed.
12176 (grub_cmd_normal): Unregister itself at the beginning. Don't register
12177 rescue command.
12178 (grub_cmdline_run): New function.
12179 (grub_normal_reader_init): Likewise.
12180 (grub_normal_read_line): Likewise.
12181 (grub_env_write_pager): Likewise.
12182 (cmdline): New variable.
12183 (grub_normal_reader): Likewise.
12184 (GRUB_MOD_INIT): Register normal reader and set as current, register
12185 pager hook, register normal command with grub_register_command_prio,
12186 so that it won't show up in command.lst.
12187 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
12188 grub_fs_autoload_hook.
12189
12190 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
12191 (grub_menu_execute_entry): Replace grub_script_execute with
12192 grub_parser_execute, change parameter to grub_command_execute.
12193
12194 * normal/menu_text.c: Remove <grub/script.h>.
12195
12196 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
12197 and <grub/parser.h>.
12198 (run): Change editor_getline to use new parser interface. Change
12199 parameter to grub_command_execute.
12200
12201 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
12202 <grub/reader.h> and <grub/parser.h>.
12203 (grub_load_normal_mode): Execute normal command.
12204 (grub_main): Call grub_register_core_commands,
12205 grub_register_rescue_parser and grub_register_rescue_reader, use
12206 grub_reader_loop to enter input loop.
12207
7dd4a573 12208 * kern/parser.c (grub_parser_split_cmdline): Change type of
12209 getline parameter.
d558e6b5 12210 (grub_parser_class): New variable.
12211 (grub_parser_execute): New function.
12212
12213 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
12214 * loader/multiboot2.c: Likewise.
12215 * loader/sparc64/ieee1275/linux.c: Likewise.
12216
12217 * util/grub-emu.c (read_command_list): New dummy function.
12218
18db813d 122192009-05-02 Robert Millan <rmh.grub@aybabtu.com>
12220
12221 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
12222 count to 16 for CCISS and IDA.
12223
6c67de15 122242009-05-02 Robert Millan <rmh.grub@aybabtu.com>
12225
12226 * normal/menu_text.c (grub_wait_after_message): Print a newline
12227 after waiting for user input.
12228
12229 * loader/i386/linux.c: Include `<grub/normal.h>'.
12230 (grub_cmd_linux): Improve the error message about `ask' mode, by
12231 waiting for user input so it's not missed (we can do this, since
12232 user requested interaction).
12233
d9dc87b0 122342009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
12235
12236 Added missing lst to grub-mkrescue
12237
12238 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
12239 and ${input_dir}/parttool.lst
12240
ac8a2baa 122412009-04-30 David S. Miller <davem@davemloft.net>
12242
ad22a610 12243 * util/hostdisk.c (device_is_wholedisk): New function.
12244 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
12245 zero only if device_is_wholedisk() returns true.
12246
6966215d 12247 * util/hostdisk.c (convert_system_partition_to_system_disk):
12248 Handle virtual disk devices named /dev/vdiskX as found on sparc
12249 and powerpc.
12250
ac8a2baa 12251 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
12252 lettered partition specifier is found, convert to numbered.
12253
979b4fb4 122542009-04-29 David S. Miller <davem@davemloft.net>
12255
e2bf39b2 12256 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
12257 * include/grub/sparc64/ieee1275/memory.h: Likewise.
12258
3c64e104 12259 * normal/command.c: Add missing newline at end of file.
12260
979b4fb4 12261 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
12262 warnings.
12263 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
12264 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
12265 grub_ofdisk_read): Likewise, and deal similarly with the fact that
12266 ihandles have a 32-bit type but need to be stored in a "void *".
12267
136d9f82 122682009-04-28 Pavel Roskin <proski@gnu.org>
12269
9459c306 12270 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
12271 not disk. Adjust all dependencies.
2e08a26a 12272 (grub_fs_uuid_close): Use grub_device_close(), not
9459c306 12273 grub_disk_close().
12274
136d9f82 12275 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
12276 parent's partition, don't copy it by reference, as it gets freed
12277 on close.
12278
7dd4a573 122792009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
75a807cf 12280
12281 Preboot hooks support
12282
12283 * commands/boot.c (struct grub_preboot_t): new declaration
12284 (preboots_head): new variable
12285 (preboots_tail): likewise
12286 (grub_loader_register_preboot_hook): new function
12287 (grub_loader_unregister_preboot_hook): likewise
12288 (grub_loader_set): launch preboot hooks
12289 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
12290 (grub_loader_register_preboot_hook): new declaration
12291 (grub_loader_unregister_preboot_hook): likewise
12292
5af922b5 122932009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
12294
12295 Warning fix
12296
7dd4a573 12297 * disk/scsi.c (grub_scsi_open): added missing cast when
5af922b5 12298 calling grub_dprintf
12299
a5562c30 123002009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
12301
12302 Bug and warning fixes
12303
7dd4a573 12304 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
a5562c30 12305 declaration
12306 * commands/test.c (test_parse): fixed bug with file tests and corrected
12307 declaration of find_file
12308
4006f85c 123092009-04-26 Pavel Roskin <proski@gnu.org>
12310
12311 * Makefile.in: Don't install empty manual pages if help2man is
12312 missing. Use help2man option for output, not shell redirection.
12313
5c77c3de 123142009-04-26 David S. Miller <davem@davemloft.net>
12315
12316 * util/grub-mkdevicemap.c (make_device_map): Add missing
12317 NESTED_FUNC_ATTR to process_device().
12318
033b10a8 123192009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
12320
12321 Test command
12322
12323 * commands/test.c: rewritten to use bash-like test
12324
e4343593 123252009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
12326
12327 Parttool autoloading and improvements
12328
7dd4a573 12329 * Makefile.in (pkglib_DATA): add parttool.lst
e4343593 12330 (parttool.lst): new target
12331 * genmk.rb: generate parttool-*
12332 (CLEANFILES): add #{parttool}
12333 (PARTTOOLFILES): new variable
12334 * genparttoollist.sh: new file
7dd4a573 12335 * parttool/pcpart.c (grub_pcpart_boot): more feedback
e4343593 12336 (grub_pcpart_type): likewise
12337 * commands/parttool.c (helpmsg): new variable
12338 (grub_cmd_parttool): output help if not enough arguments are supplied
12339 autoload modules
12340 (GRUB_MOD_INIT(parttool)): use helpmsg
12341
0d312500 123422009-04-24 David S. Miller <davem@davemloft.net>
12343
7dd4a573 12344 Avoiding opening same device multiple times in device iterator.
0d312500 12345
12346 * kern/device.c: (grub_device_iterate): Define struct part_ent,
7dd4a573 12347 and use it to build a list of partitions in iterate_disk() and
0d312500 12348 iterate_partition().
12349
ac20caff 12350 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
12351 on disk->data.
12352
0dcf7495 12353 * disk/ieee1275/nand.c (grub_nand_iterate): Return
12354 grub_devalias_iterate() result instead of unconditional 0.
12355 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
12356 Also, capture hook return value, either directly or via
12357 grub_children_iterate(), and propagate to caller.
12358 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
12359 grub_children_iterate): Return value is now 'int' instead of
12360 'grub_err_t'.
12361 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
12362 like a proper iterator, stopping when hooks return non-zero.
12363 (grub_devalias_iterate): Likewise.
12364
c8c08833 123652009-04-23 David S. Miller <davem@davemloft.net>
12366
12367 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
12368
f01005a8 123692009-04-22 David S. Miller <davem@davemloft.net>
12370
12371 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
12372 is larger than address_cells, use that value for address_cells too.
12373
4e8269da 12374 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
12375 IEEE1275_MAX_PATH_LEN): Define.
12376 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
12377 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
12378 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
12379 'devtype'. Explicitly NULL terminate devalias expansion.
12380
a1447506 12381 * util/sparc64/ieee1275/misc.c: New file.
12382 * util/sparc64/ieee1275/grub-setup.c: New file.
12383 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
12384 * util/sparc64/ieee1275/grub-mkimage.c: New file.
12385 * util/sparc64/ieee1275/grub-install.in: New file.
12386 * util/ieee1275/ofpath.c: New file.
12387 * util/ieee1275/devicemap.c: New file.
12388 * util/devicemap.c: New file.
12389 * util/deviceiter.c: New file.
12390 * kern/sparc64/ieee1275/init.c: New file.
12391 * include/grub/util/ofpath.h: New file.
12392 * include/grub/util/deviceiter.h: New file.
12393 * util/grub-mkdevicemap.c: Include deviceiter.h.
12394 Implement using grub_util_emit_devicemap_entry and
12395 grub_util_iterate_devices.
12396 * conf/i386-corebook.rmk: Build util/deviceiter.c and
12397 util/devicemap.c into grub-mkdevicemap
12398 * conf/i386-efi.rmk: Likewise.
12399 * conf/i386-ieee1275.rmk: Likewise.
12400 * conf/i386-pc.rmk: Likewise.
12401 * conf/powerpc-ieee1275.rmk: Likewise.
12402 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
12403 images and installation utilities. Build kernel as image
12404 instead of as elf binary. Use common rules as much as possible.
12405
7dd4a573 124062009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
0aefc632 12407
12408 Correct GPT definition
12409
7dd4a573 12410 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
0aefc632 12411 of "attrib" member
12412
c6c5219f 124132009-04-19 Felix Zielcke <fzielcke@z-51.de>
12414
12415 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
12416
0552ff9f 124172009-04-19 David S. Miller <davem@davemloft.net>
12418
12419 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
12420 (grub_rescue_cmd_linux): Rename to...
12421 (grub_cmd_linux): and fix prototype.
12422 (grub_rescue_cmd_initrd): Rename to...
12423 (grub_cmd_initrd): and fix prototype.
12424 (cmd_linux, cmd_initrd): New.
12425 (GRUB_MOD_INIT(linux)): Use grub_register_command().
12426 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
12427
d1a282fc 124282009-04-17 Pavel Roskin <proski@gnu.org>
12429
07c5039f 12430 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
12431 format.
12432 (grub_ohci_transfer): Likewise.
12433
b012002d 12434 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
12435
1bc09c35 12436 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
12437 return without a value. Fix inconsistent indentation.
12438
e0ff9126 12439 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
12440 match struct grub_fs.
12441
d1a282fc 12442 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
12443 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
12444 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
12445 * commands/lspci.c (grub_lspci_iter): Likewise.
12446
a96df3f2 124472009-04-16 Bean <bean123ch@gmail.com>
12448
12449 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
12450 value.
12451
41bb0fe9 124522009-04-15 Pavel Roskin <proski@gnu.org>
12453
12454 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
12455 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
12456 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
12457 definitions.
12458
596c6970 124592009-04-15 Felix Zielcke <fzielcke@z-51.de>
12460
12461 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
7dd4a573 12462 that no multiple data or metadata areas are supported and `Unknown
596c6970 12463 metadata header'.
12464
7dd4a573 124652009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
0d5d5653 12466
12467 Move loader out of the kernel
12468
12469 * kern/loader.c: moved to ...
12470 * commands/boot.c: ... moved here
12471 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
12472 * commands/boot.c (grub_cmd_boot): moved here. All users updated
12473 * include/grub/kernel.h (grub_machine_fini): export
12474 * include/grub/loader.h (grub_loader_is_loaded): update declaration
12475 (grub_loader_set): likewise
12476 (grub_loader_unset): likewise
12477 (grub_loader_boot): likewise
12478 * conf/common.rmk: new module boot.mod
12479 (pkglib_MODULES): add boot.mod
12480 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
12481 (grub_emu_SOURCES): likewise
12482 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
12483 (grub_emu_SOURCES): likewise
12484 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
12485 (grub_emu_SOURCES): likewise
12486 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
12487 (grub_emu_SOURCES): likewise
12488 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
12489 (grub_emu_SOURCES): likewise
7dd4a573 12490 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
12491 (grub_emu_SOURCES): likewise
0d5d5653 12492 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
7dd4a573 12493 (grub_emu_SOURCES): likewise
0d5d5653 12494
7dd4a573 124952009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
5999d619 12496
12497 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
7dd4a573 12498
5999d619 12499 * kern/misc.c (grub_itoa): Removed function
12500 (grub_ltoa): likewise
12501 (grub_vsprintf): use grub_lltoa
12502
7dd4a573 125032009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
13c00781 12504
12505 Restore grub-emu
12506
12507 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
12508 * conf/i386-coreboot.rmk: likewise
12509 * conf/i386-ieee1275.rmk: likewise
12510 * conf/powerpc-ieee1275.rmk: likewise
7dd4a573 12511
20318222 125122009-04-15 Felix Zielcke <fzielcke@z-51.de>
12513
12514 * INSTALL: Add that `./autogen.sh' needs to be run before
12515 `./configure.'.
12516
d05f0df3 125172009-04-14 Bean <bean123ch@gmail.com>
12518
12519 * Makefile.in (pkglib_DATA): Add handler.lst.
12520 (handler.lst): New rule.
12521
12522 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
12523 * conf/i386-coreboot.rmk: Likewise.
12524 * conf/i386-ieee1275.rmk: Likewise.
12525 * conf/i386-efi.rmk: Likewise.
12526 * conf/x86_64-efi.rmk: Likewise.
12527 * conf/powerpc-ieee1275.rmk: Likewise.
12528 * conf/sparc64-ieee1275.rmk: Likewise.
12529
12530 * genhandlerlist.sh: New file.
12531
12532 * genmk.rb: Add rules to generate handler.lst.
12533
12534 * include/grub/normal.h (grub_file_getline): New function definition.
12535 (read_handler_list): Likewise.
12536 (free_handler_list): Likewise.
12537
12538 * include/grub/term.h (grub_term_register_input): Add name parameter
12539 for auto generation of handler.lst.
12540 (grub_term_register_output): Likewise.
12541
12542 * normal/handler.c: New file.
12543
12544 * normal/main.c (get_line): Renamed to grub_file_getline.
12545 (read_config_file): Use the newly renamed grub_file_getline.
12546 (read_command_list): Likewise.
12547 (read_fs_list): Likewise.
12548 (grub_normal_execute): Call read_handler_list to parse handler.lst.
12549 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
12550
12551 * term/efi/console.c (grub_console_init): Add name parameter for auto
12552 generation of handler.lst.
12553 * term/gfxterm.c: Likewise.
12554 * term/i386/pc/at_keyboard.c: Likewise.
12555 * term/i386/pc/console.c: Likewise.
12556 * term/i386/pc/serial.c: Likewise.
12557 * term/i386/pc/vesafb.c: Likewise.
12558 * term/i386/pc/vga.c: Likewise.
12559 * term/i386/pc/vga_text.c: Likewise.
12560 * term/ieee1275/ofconsole.c: Likewise.
12561 * term/usb_keyboard.c: Likewise.
12562
33c846be 125632009-04-14 Bean <bean123ch@gmail.com>
12564
12565 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
12566 properly with null character.
12567
4484e01e 125682009-04-14 Felix Zielcke <fzielcke@z-51.de>
12569
12570 * configure: Remove.
12571 * config.h.in: Likewise.
f93d668e 12572 * stamp-h.in: Likewise.
4484e01e 12573 * DISTLIST: Likewise.
12574 * conf/common.mk: Likewise.
12575 * conf/i386-coreboot.mk: Likewise.
12576 * conf/i386-efi.mk: Likewise.
12577 * conf/i386-ieee1275.mk: Likewise.
12578 * conf/i386.mk: Likewise.
12579 * conf/i386-pc.mk: Likewise.
12580 * conf/powerpc-ieee1275.mk: Likewise.
12581 * conf/sparc64-ieee1275.mk: Likewise.
12582 * conf/x86_64-efi.mk: Likewise.
12583
12584 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
12585 develop on GRUB.
12586
7dd4a573 125872009-04-14 John Stanley <jpsinthemix@verizon.net>
5c5bf96a 12588 David S. Miller <davem@davemloft.net>
12589
12590 * util/hostdisk.c (make_device_name): Fix buffer length
12591 calculations.
12592
e25b5a8c 125932009-04-14 Felix Zielcke <fzielcke@z-51.de>
12594
12595 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
12596 <sys/param.h> and <sys/sysctl.h>.
12597 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
12598 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
12599 opening the device and reset them afterwards.
12600
1f1f580c 126012009-04-13 Pavel Roskin <proski@gnu.org>
12602
12603 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
12604 Reported by John Stanley <jpsinthemix@verizon.net>
12605
7ebc2d6b 126062009-04-13 Robert Millan <rmh@aybabtu.com>
12607
12608 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
7dd4a573 12609 that name for menuentries when appropriate.
7ebc2d6b 12610
d8ba3667 126112009-04-13 Felix Zielcke <fzielcke@z-51.de>
12612
12613 * util/grub.d/10_freebsd.in: Add a missing `fi'.
12614
cba416eb 126152009-04-13 Robert Millan <rmh@aybabtu.com>
12616
12617 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
12618 to Linux, simply abort telling the user it's no longer supported.
12619
a547a745 126202009-04-13 Felix Zielcke <fzielcke@z-51.de>
12621
12622 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
7dd4a573 12623 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
a547a745 12624 `freebsd_loadenv' only when devices.hints exist.
12625
232a769c 126262009-04-13 Pavel Roskin <proski@gnu.org>
12627
12628 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
12629
c3012039 126302009-04-13 Felix Zielcke <fzielcke@z-51.de>
12631
12632 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
12633 partition number.
12634 (grub_drive): Likewise.
12635
234022fe 126362009-04-13 David S. Miller <davem@davemloft.net>
12637
12638 * kern/sparc64/ieee1275/ieee1275.c: New file.
12639 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
12640 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
12641 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
12642 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
12643 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
12644 grub_ieee1275_alloc_physmem): Declare new exported functions.
12645
d8e1836c 12646 * include/grub/sparc64/ieee1275/loader.h: New file.
12647 * include/grub/sparc64/ieee1275/memory.h: Likewise.
12648 * include/grub/sparc64/kernel.h: Likewise.
12649 * loader/sparc64/ieee1275/linux.c: Likewise.
12650
96bd81ec 12651 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
12652 (grub_fstest_SOURCES): Likewise.
12653
6a4737e5 12654 * util/hostdisk.c (make_device_name): Do not make any assumptions
12655 about the length of drive names.
12656
1d7a72fd 12657 * kern/dl.c (grub_dl_load_file): Close file immediately when
12658 we are done using it.
12659
56bc2471 126602009-04-12 David S. Miller <davem@davemloft.net>
12661
12662 * kern/misc.c (grub_ltoa): Fix cast when handling negative
12663 values. Noticed by Pavel Roskin.
12664
df38d0bb 12665 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
12666 target compiler.
7dd4a573 12667
e382e93a 12668 * genmk.rb: Add more flexible image type specification, also
12669 pass --strip-unneeded to objcopy.
12670 * conf/i386-pc.rmk: Use *_FORMAT.
12671 * conf/i386-pc.mk: Rebuilt.
12672
f5dbbca9 12673 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
12674 (OFDISK_HASH_SZ): Define.
12675 (ofdisk_hash): New hash table.
12676 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
12677 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
12678 instead of device phandle which is not unique.
12679
91c88b12 12680 * kern/sparc64/ieee1275/init.c: Delete, replace with...
12681 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
12682 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
12683 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
12684 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
12685 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
12686 GRUB_KERNEL_MACHINE_DATA_END): Define.
12687 (grub_kernel_image_size, grub_total_module_size): Declare.
12688
5b5d4aa5 126892009-04-12 Pavel Roskin <proski@gnu.org>
12690
7dd4a573 12691 * configure.ac: Change the logic when we check for target tools.
12692 Do it when the target is specified and it's different from the
12693 specified value of the host.
5b5d4aa5 12694
c91e1793 126952009-04-11 Felix Zielcke <fzielcke@z-51.de>
12696
12697 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
12698 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
12699 GNU/kFreeBSD. Check if a device is a character device. Use
12700 DIOCGMEDIASIZE to get the size.
12701 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
12702 support for GNU/kFreeBSD.
12703 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
12704 is a character device instead of a block device. Add support for
12705 FreeBSD device names.
12706
12707 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
12708 is a character device instead of a block device.
12709
12710 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
12711 is a character device instead of a block device.
12712
b1ac8644 127132009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
12714
12715 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
12716 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
12717 FreeBSD. Check if a device is a character device. Use
12718 DIOCGMEDIASIZE to get the size.
12719 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
12720 support for FreeBSD.
12721 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
12722 is a character device instead of a block device. Add support for
12723 FreeBSD device names.
12724
12725 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
12726 a character device instead of a block device.
12727 (grub_util_check_char_device): New function.
12728
12729 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
12730 a character device instead of a block device.
12731
12732 * include/grub/util/getroot.h (grub_util_check_char_device): New
12733 prototype.
12734
a3f7515a 127352009-04-11 David S. Miller <davem@davemloft.net>
12736
12737 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
12738 static libgcc.
12739 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
12740 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
12741 function, if present.
12742 (__bswapdi2): Likewise.
12743
0d44993d 12744 * include/grub/sparc64/ieee1275/boot.h: New file.
12745 * boot/sparc64/ieee1275/boot.S: Likewise.
12746 * boot/sparc64/ieee1275/diskboot.S: Likewise.
12747
ed3d2bc2 12748 * kern/misc.c (grub_ltoa): New function.
12749 (grub_vsprintf): Use it to format 'long' integers.
12750
d3bfb59c 127512009-04-10 David S. Miller <davem@davemloft.net>
12752
12753 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
12754 slots are of type grub_ieee1275_cell_t.
12755 (grub_nand_read): Likewise.
12756 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
12757 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
12758 macros are used to compare values in arg/ret block of the call.
12759 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
12760 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
12761 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
12762 grub_ieee1275_instance_to_path, grub_ieee1275_write,
12763 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
12764 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
12765 grub_ieee1275_close, grub_ieee1275_set_property,
12766 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
12767 grub_ieee1275_cell_t.
12768 * kern/ieee1275/openfw.c (grub_map): Likewise.
12769 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
12770 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
12771
450e2238 12772 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
12773 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
12774 (grub_devalias_iterate): Likewise.
12775
7dd4a573 127762009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
6df8cc76 12777
12778 UFS improvements
12779
12780 * fs/ufs.c (INODE_NBLOCKS): new definition
12781 (struct grub_ufs_dirent): added fields for non-BSD dirents
12782 (grub_ufs_get_file_block): fixed double indirect handling
12783 (grub_ufs_lookup_symlink): use more robust way to determine whether
12784 symlink is inline
12785 (grub_ufs_find_file): support for non-BSD dirents
12786 (grub_ufs_dir): support for non-BSD dirents
12787
e7e6862a 127882009-04-10 Bean <bean123ch@gnail.com>
12789
12790 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
12791 attribute, otherwise the size would be wrong for i386 platform.
12792
12793 * include/grub/pci.h (grub_pci_read_word): New inline function.
12794 (grub_pci_read_byte): Likewise.
12795 (grub_pci_write): Likewise.
12796 (grub_pci_write_word): Likewise.
12797 (grub_pci_write_byte): Likewise.
12798
12799 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
12800
12801 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
12802 (find_framebuf): Scan pci to locate the frame buffer address.
12803
12804 * commands/efi/fixvideo.c: New file.
12805
12806 * commands/efi/loadbios.c: Likewise.
12807
12808 * commands/memrw.c: Likewise.
12809
12810 * util/grub-dumpbios.in: Likewise.
12811
12812 * conf/common.rmk (grub-dumpbios): New utility.
12813 (pkglib_MODULES): New module memrw.mod.
12814 (memrw_mod_SOURCE): New macro.
12815 (memrw_mod_CFLAGS): Likewise.
12816 (memrw_mod_LDFLAGS): Likewise.
12817
7dd4a573 12818 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
e7e6862a 12819 fixvideo.mod.
12820 (loadbios_mod_SOURCE): New macro.
12821 (loadbios_mod_CFLAGS): Likewise.
12822 (loadbios_mod_LDFLAGS): Likewise.
12823 (fixvideo_mod_SOURCE): Likewise.
12824 (fixvideo_mod_CFLAGS): Likewise.
12825 (fixvideo_mod_LDFLAGS): Likewise.
12826
7dd4a573 12827 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
e7e6862a 12828 fixvideo.mod.
12829 (loadbios_mod_SOURCE): New macro.
12830 (loadbios_mod_CFLAGS): Likewise.
12831 (loadbios_mod_LDFLAGS): Likewise.
12832 (fixvideo_mod_SOURCE): Likewise.
12833 (fixvideo_mod_CFLAGS): Likewise.
12834 (fixvideo_mod_LDFLAGS): Likewise.
12835
af63ada2 128362009-04-08 Felix Zielcke <fzielcke@z-51.de>
12837
12838 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
12839
c2cdde70 128402009-04-07 David S. Miller <davem@davemloft.net>
12841
12842 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
12843 support for R_SPARC_OLO10 relocations. Fix compile warning for
12844 R_SPARC_WDISP30 case.
ea3f72cf 12845 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
c2cdde70 12846
761319cf 128472009-04-06 Pavel Roskin <proski@gnu.org>
12848
1007d1f5 12849 * include/grub/misc.h (ARRAY_SIZE): New macro.
12850 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
12851 New macro.
12852 * loader/i386/linux.c (allocate_pages): Use free_pages().
12853 (grub_linux_unload): Don't use free_pages().
12854 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
12855 wrong index. Treat all other modes as text modes.
12856 (grub_cmd_linux): Initialize vid_mode unconditionally to
12857 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
12858
761319cf 12859 * commands/help.c (print_command_help): Use cmd->prio, not
12860 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
12861
ea761d40 128622009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
7dd4a573 12863
ea761d40 12864 Parttool
12865
12866 * parttool/pcpart.c: new file
12867 * commands/parttool.c: likewise
12868 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
12869 (parttool_mod_SOURCES): new variable
12870 (parttool_mod_CFLAGS): likewise
12871 (parttool_mod_LDFLAGS): likewise
12872 (pcpart_mod_SOURCES): likewise
12873 (pcpart_mod_CFLAGS): likewise
12874 (pcpart_mod_LDFLAGS): likewise
7dd4a573 12875 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
ea761d40 12876 and parttool/pcpart.c
12877 * conf/i386-efi.rmk: likewise
12878 * conf/i386-ieee1275.rmk: likewise
12879 * conf/i386-pc.rmk: likewise
12880 * conf/powerpc-ieee1275.rmk: likewise
12881 * conf/sparc64-ieee1275.rmk: likewise
12882 * conf/x86_64-ieee1275.rmk: likewise
12883
05aaebfb 128842009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
12885
12886 Support for mtime and further expandability of dir command
12887
12888 * include/grub/lib/datetime.h: moved to ...
7dd4a573 12889 * include/grub/datetime.h: ... moved here and added
05aaebfb 12890 declaration of grub_unixtime2datetime. All users updated
7dd4a573 12891 * include/grub/fs.h: new syntax for dir and mtime functions in
12892 struct grub_fs
05aaebfb 12893 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
12894 and GRUB_FSHELP_FLAGS_MASK
12895 * commands/ls.c (grub_ls_list_files): Write mtime in long format
12896 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
12897 (grub_ext2_mtime): new function
12898 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
12899 (grub_hfsplus_mtime): new function
12900 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
12901 (GRUB_UFS_ATTR_FILE): likewise
12902 (GRUB_UFS_ATTR_LNK): likewise
12903 (struct grub_ufs_sblock): new fields mtime
12904 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
12905 all users updated
12906 (grub_ufs_dir): mtime support
12907 (grub_ufs_mtime): new function
12908 * fs/affs.c (grub_affs_dir): use new dir syntax
12909 * fs/afs.c (grub_afs_dir): likewise
12910 * fs/cpio.c (grub_cpio_dir): likewise
12911 * fs/fat.c (grub_fat_find_dir): likewise
12912 * fs/hfs.c (grub_hfs_dir): likewise
12913 * fs/iso9660.c (grub_iso9660_dir): likewise
12914 * fs/jfs.c (grub_jfs_dir): likewise
12915 * fs/minix.c (grub_minix_dir): likewise
12916 * fs/ntfs.c (grub_ntfs_dir): likewise
12917 * fs/reiserfs.c (grub_reiserfs_dir): likewise
12918 * fs/sfs.c (grub_sfs_dir): likewise
12919 * fs/xfs.c (grub_xfs_dir): likewise
12920 * util/hostfs.c (grub_hostfs_dir): likewise
12921 * lib/datetime.c: moved to ...
12922 * normal/datetime.c: ... moved here
12923 (grub_unixtime2datetime): new function
12924 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
7dd4a573 12925 * normal/completion.c (iterate_dir): use new dir syntax
12926 * normal/misc.c (grub_normal_print_device_info): tell the
05aaebfb 12927 last modification time of a volume
7dd4a573 12928 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
05aaebfb 12929 * conf/common.rmk: added lib/datetime.c to ls.mod
7dd4a573 12930 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
05aaebfb 12931 (normal_mod_SOURCES): likewise
12932 (datetime_mod_SOURCES): Removed lib/datetime.c
12933 * conf/i386-efi.rmk: likewise
7dd4a573 12934 * conf/i386-ieee1275.rmk: likewise
05aaebfb 12935 * conf/i386-pc.rmk: likewise
12936 * conf/powerpc-ieee1275.rmk: likewise
7dd4a573 12937 * conf/sparc64-ieee1275.rmk: likewise
12938 * conf/x86_64-efi.rmk: likewise
05aaebfb 12939
8a7e1a14 129402009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
12941
12942 Trim trailing spaces in FAT label and support mtools-like labels
7dd4a573 12943
12944 * fs/fat.c (grub_fat_iterate_dir): New function based
8a7e1a14 12945 on grub_fat_find_dir
12946 (grub_fat_find_dir): use grub_fat_iterate_dir
12947 (grub_fat_label): likewise
12948
04186a9c 129492009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
12950
7dd4a573 12951 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
04186a9c 12952 and command.h
12953 remove extraneous kernel_elf_HEADERS
12954
da4c0bb6 129552009-04-04 Bean <bean123ch@gnail.com>
12956
12957 * include/grub/util/misc.h: Add dummy function fsync for mingw.
12958
12959 * util/misc.c: Likewise.
12960
54ad9555 129612009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
12962
12963 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
12964 instead of grub_printf.
12965
7a6bf9f2 129662009-04-03 Robert Millan <rmh@aybabtu.com>
12967
12968 * loader/i386/linux.c (grub_linux_setup_video): Fill
12969 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
12970 values from `mode info' structure instead of hardcoded
12971 values.
12972
3fcc2083 129732009-04-01 Pavel Roskin <proski@gnu.org>
12974
12975 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
12976 unused now.
12977 * genmk.rb: Likewise.
12978 * configure.ac: Likewise.
12979
5ec9740b 129802009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
12981
12982 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
12983 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
12984
5270cec8 129852009-04-01 David S. Miller <davem@davemloft.net>
12986
12987 * normal/sparc64/setjmp.S: Fix setjmp implementation.
7dd4a573 12988 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
5270cec8 12989 (grub_setjmp): Mark with 'returns_twice' attribute.
12990 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
12991 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
12992 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
12993
9c3dd854 129942009-04-01 Robert Millan <rmh@aybabtu.com>
12995
12996 Reapply fix from 2008-07-28 which was accidentally reverted; also
12997 perform the same fix to a similar check in same function.
12998
12999 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
13000 with the same number are found, just use issue a warning with
13001 grub_dprintf(), as this error has been reported to be non-fatal.
13002
0d818b7e 130032009-03-31 Pavel Roskin <proski@gnu.org>
13004
13005 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
13006 for cross-compilation.
13007
95646d92 130082009-03-30 Robert Millan <rmh@aybabtu.com>
13009
13010 Fix i386-ieee1275 build.
13011
13012 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
13013 Remove declaration.
13014
6a003ed1 130152009-03-30 Pavel Roskin <proski@gnu.org>
13016
13017 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
13018 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
13019 zero-terminated, rely only on the strlen value. Fix comparison
13020 of strings differing in length.
13021
92f33540 130222009-03-30 Robert Millan <rmh@aybabtu.com>
13023
13024 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
13025 checking for abi version. Improve error messages on BIOS to notify
13026 user about `linux16' command.
13027
a8c48fd5 130282009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13029
f968172e 13030 Leak fixes
a8c48fd5 13031
f968172e 13032 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
13033 in case of collision
13034 * disk/scsi.c (grub_scsi_open): free scsi in case of error
a8c48fd5 13035
9c323f09 130362009-03-29 Robert Millan <rmh@aybabtu.com>
13037
13038 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
13039 set `vid_mode' accordingly.
13040 (grub_linux_boot): Process `vid_mode' and set video mode.
13041
ae68f423 130422009-03-29 Robert Millan <rmh@aybabtu.com>
13043
13044 * util/grub.d/10_linux.in (linux_entry): New function.
13045 Factorize generation of Linux boot entries.
13046
5709cfc4 130472009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
13048
13049 Make the format of Environment Block plain text. The boot loader
13050 part is not tested well yet.
7dd4a573 13051
5709cfc4 13052 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
13053 (buffer): Removed.
13054 (envblk): Likewise.
13055 (usage): Remove "info" and "clear". Add "unset". Update the
13056 description of "set", as this does not delete variables any
13057 longer.
13058 (create_envblk_file): Complete rewrite.
13059 (open_envblk_file): Likewise.
13060 (cmd_info): Removed.
13061 (cmd_list): Likewise.
13062 (cmd_set): Likewise.
13063 (cmd_clear): Likewise.
13064 (list_variables): New function.
13065 (write_envblk): Likewise.
13066 (set_variables): Likewise.
13067 (unset_variables): Likewise.
13068 (main): Complete rewrite.
13069
13070 * commands/loadenv.c (buffer): Removed.
13071 (envblk): Likewise.
13072 (open_envblk_file): New function.
13073 (read_envblk_file): Complete rewrite.
13074 (grub_cmd_load_env): Likewise.
13075 (grub_cmd_list_env): Likewise.
13076 (struct blocklist): New struct.
13077 (free_blocklists): New function.
13078 (check_blocklists): Likewise.
13079 (write_blocklists): Likewise.
13080 (grub_cmd_save_env): Complete rewrite.
13081
13082 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
13083 a plain text signature.
13084 (GRUB_ENVBLK_MAXLEN): Removed.
13085 (struct grub_envblk): Complete rewrite.
13086 (grub_envblk_find): Removed.
13087 (grub_envblk_insert): Likewise.
13088 (grub_envblk_open): New prototype.
13089 (grub_envblk_set): Likewise.
13090 (grub_envblk_delete): Put const to VALUE.
13091 (grub_envblk_iterate): Put const to NAME and VALUE.
13092 (grub_envblk_close): New prototype.
13093 (grub_envblk_buffer): New inline function.
13094 (grub_envblk_size): Likewise.
13095
13096 * lib/envblk.c: Include grub/mm.h.
13097 (grub_env_find): Removed.
13098 (grub_envblk_open): New function.
13099 (grub_envblk_close): Likewise.
13100 (escaped_value_len): Likewise.
13101 (find_next_line): Likewise.
13102 (grub_envblk_insert): Removed.
13103 (grub_envblk_set): New function.
13104 (grub_envblk_delete): Complete rewrite.
13105 (grub_envblk_iterate): Likewise.
13106
a9368fd3 131072009-03-28 Robert Millan <rmh@aybabtu.com>
13108
13109 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
13110 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
13111 variables. Use 16-bit loader.
13112 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
13113 loader.
13114 * kern/i386/loader.S (grub_linux_boot): Rename to ...
13115 (grub_linux16_boot): ... this. Update all users.
13116 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
13117 (grub_linux_boot): ... this. Update all users.
13118
13119 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
13120 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
13121 commands to `linux16' and `initrd16'.
13122 (GRUB_MOD_FINI(linux)): Rename to ...
13123 (GRUB_MOD_FINI(linux16)): ... this.
13124
e4dd5a7e 131252009-03-24 Pavel Roskin <proski@gnu.org>
13126
13127 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
13128 not just for compilation.
13129
c04d6e05 131302009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
13131
13132 Move multiboot helper out of kernel
13133
13134 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
13135 `loader/i386/multiboot_helper.S'.
13136 * conf/i386-coreboot.rmk: Likewise
13137 * conf/i386-ieee1275.rmk: Likewise
13138
13139 * kern/i386/loader.S: Move multiboot helpers from here...
13140 * loader/i386/multiboot_helper.S: ...moved here
13141 * include/grub/i386/loader.h: Move declarations of multiboot
13142 helpers from here...
13143 * include/grub/i386/multiboot.h: ...moved here
13144 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
13145
42a5b3fc 131462009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
13147
13148 * kern/env.c (grub_env_context_open): Added an argument to specify
13149 whether a new context inherits exported variables from current
13150 one. This is useful when making a sandbox to interpret a config
13151 file.
13152 All callers updated.
13153
13154 * include/grub/env.h (grub_env_context_open): Updated the prototype.
13155
b28bbc4e 131562009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
13157
13158 * kern/env.c (grub_env_context_close): Fix memory leaks.
13159
f04f02e4 131602009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
13161
13162 * normal/main.c (grub_normal_execute): Added an argument
13163 BATCH to specify if an interactive interface should be provided
13164 after reading a config file.
13165 All callers updated.
13166 (read_command_list): Prevent being executed twice.
13167 (read_fs_list): Likewise.
13168
42a5b3fc 13169 * include/grub/normal.h (grub_normal_execute): Updated the
13170 prototype.
f04f02e4 13171
41473ac2 131722009-03-22 Pavel Roskin <proski@gno.org>
13173
fbc00b0c 13174 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
13175 _start.
13176 * kern/i386/pc/startup.S: Likewise.
13177 * kern/i386/efi/startup.S: Likewise.
13178 * kern/i386/ieee1275/startup.S: Likewise.
13179 * kern/i386/coreboot/startup.S: Likewise.
13180 * kern/x86_64/efi/startup.S: Likewise.
13181
41473ac2 13182 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
13183 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
13184 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
13185
2274cc8f 131862009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
13187
13188 Bugfixes in multiboot for bugs uncovered by solaris kernel.
13189
13190 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
13191 limit detection.
13192 Use vaddr of correct segment for entry_point.
13193
b1b797cb 131942009-03-21 Bean <bean123ch@gmail.com>
13195
13196 * commands/blocklist.c: Add include file <grub/command.h>, remove
13197 <grub/normal.h> and <grub/arg.h>.
13198 (grub_cmd_blocklist): Use the new command interface.
13199 (GRUB_MOD_INIT): Likewise.
13200 (GRUB_MOD_FINI): Likewise.
13201 * commands/boot.c: Likewise.
13202 * commands/cat.c: Likewise.
13203 * commands/cmp.c: Likewise.
13204 * commands/configfile.c: Likewise.
13205 * commands/crc.c: Likewise.
13206 * commands/echo.c: Likewise.
13207 * commands/halt.c: Likewise.
13208 * commands/handler.c: Likewise.
13209 * commands/hdparm.c: Likewise.
13210 * commands/help.c: Likewise.
13211 * commands/hexdump.c: Likewise.
13212 * commands/loadenv.c: Likewise.
13213 * commands/ls.c: Likewise.
13214 * commands/lsmmap.c: Likewise.
13215 * commands/lspci.c: Likewise.
13216 * commands/loadenv.c: Likewise.
13217 * commands/read.c: Likewise.
13218 * commands/reboot.c: Likewise.
13219 * commands/search.c: Likewise.
13220 * commands/sleep.c: Likewise.
13221 * commands/test.c: Likewise.
13222 * commands/usbtest.c: Likewise.
13223 * commands/videotest.c: Likewise.
13224 * commands/i386/cpuid.c: Likewise.
13225 * commands/i386/pc/halt.c: Likewise.
13226 * commands/i386/pc/play.c: Likewise.
13227 * commands/i386/pc/pxecmd.c: Likewise.
13228 * commands/i386/pc/vbeinfo.c: Likewise.
13229 * commands/i386/pc/vbetest.c: Likewise.
13230 * commands/ieee1275/suspend.c: Likewise.
13231 * disk/loopback.c: Likewise.
13232 * font/font_cmd.c: Likewise.
13233 * hello/hello.c: Likewise.
13234 * loader/efi/appleloader.c: Likewise.
13235 * loader/efi/chainloader.c: Likewise.
13236 * loader/i386/bsd.c: Likewise.
13237 * loader/i386/efi/linux.c: Likewise.
13238 * loader/i386/ieee1275/linux.c: Likewise.
13239 * loader/i386/linux.c: Likewise.
13240 * loader/i386/pc/chainloader.c: Likewise.
13241 * loader/i386/pc/linux.c: Likewise.
13242 * loader/powerpc/ieee1275/linux.c: Likewise.
13243 * loader/multiboot_loader.c: Likewise.
13244 * term/gfxterm.c: Likewise.
13245 * term/i386/pc/serial.c: Likewise.
13246 * term/terminfo.c: Likewise.
13247
13248 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
13249 * term/i386/pc/vga.c: Likewise.
13250 * video/readers/jpeg.c: Likewise.
13251 * video/readers/png.c: Likewise.
13252 * video/readers/tga.c: Likewise.
13253
13254 * util/grub-fstest (cmd_loopback): Removed.
13255 (cmd_blocklist): Likewise.
13256 (cmd_ls): Likewise.
13257 (grub_register_command): Likewise.
13258 (grub_unregister_command): Likewise.
13259 (execute_command): Use grub_command_find to locate command and execute
13260 it.
13261
13262 * include/grub/efi/chainloader.h: Removed.
13263 * loader/efi/chainloader_normal.c: Likewise.
13264 * loader/i386/bsd_normal.c: Likewise.
13265 * loader/i386/pc/chainloader_normal.c: Likewise.
13266 * loader/i386/pc/multiboot_normal.c: Likewise.
13267 * loader/linux_normal.c: Likewise.
13268 * loader/multiboot_loader_normal.c: Likewise.
13269 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
13270
13271 * gencmdlist.sh: Scan new registration command grub_register_extcmd
13272 and grub_register_command_p1.
13273
13274 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
13275 kern/command.c, lib/arg.c and commands/extcmd.c.
13276 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
13277 (minicmd_mod_SOURCES): New variable.
13278 (minicmd_mod_CFLAGS): Likewise.
13279 (minicmd_mod_LDFLAGS): Likewise.
13280 (extcmd_mod_SOURCES): Likewise.
13281 (extcmd_mod_CFLAGS): Likewise.
13282 (extcmd_mod_LDFLAGS): Likewise.
13283 (boot_mod_SOURCES): Removed.
13284 (boot_mod_CFLAGS): Likewise.
13285 (boot_mod_LDFLAGS): Likewise.
13286
13287 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
13288 kern/corecmd.c.
13289 (kernel_img_HEADERS): Add command.h.
13290 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
13291 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
13292 and lib/arg.c.
13293 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
13294 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
13295 remove the corresponding normal mode command.
13296 (normal_mod_SOURCES): Remove normal/arg.c.
13297 * conf/i386-coreboot.rmk: Likewise.
13298 * conf/i386-efi.rmk: Likewise.
13299 * conf/i386-ieee1275.rmk: Likewise.
13300 * conf/powerpc-ieee1275.rmk: Likewise.
13301 * conf/x86_64-efi.rmk: Likewise.
13302
13303 * include/grub/arg.h: Move from here ...
13304 * include/grub/lib/arg.h: ... to here.
13305
13306 * normal/arg.c: Move from here ...
13307 * lib/arg.c: ... to here.
13308
13309 * commands/extcmd.c: New file.
13310 * commands/minicmd.c: Likewise.
13311 * include/grub/command.h: Likewise.
13312 * include/grub/extcmd.h: Likewise.
13313 * kern/command.c: Likewise.
13314 * kern/corecmd.c: Likewise.
13315
13316 * kern/list.c (grub_list_iterate): Return int instead of void.
13317 (grub_list_insert): New function.
13318 (grub_prio_list_insert): Likewise.
13319
13320 * kern/rescue.c (grub_rescue_command): Removed.
13321 (grub_rescue_command_list): Likewise.
13322 (grub_rescue_register_command): Likewise.
13323 (grub_rescue_unregister_command): Likewise.
13324 (grub_rescue_cmd_boot): Move to minicmd.c
13325 (grub_rescue_cmd_help): Likewise.
13326 (grub_rescue_cmd_info): Likewise.
13327 (grub_rescue_cmd_boot): Likewise.
13328 (grub_rescue_cmd_testload): Likewise.
13329 (grub_rescue_cmd_dump): Likewise.
13330 (grub_rescue_cmd_rmmod): Likewise.
13331 (grub_rescue_cmd_lsmod): Likewise.
13332 (grub_rescue_cmd_exit): Likewise.
13333 (grub_rescue_print_devices): Moved to corecmd.c.
13334 (grub_rescue_print_files): Likewise.
13335 (grub_rescue_cmd_ls): Likewise.
13336 (grub_rescue_cmd_insmod): Likewise.
13337 (grub_rescue_cmd_set): Likewise.
13338 (grub_rescue_cmd_unset): Likewise.
7d074e3c 13339 (attempt_normal_mode): Use grub_command_find to get normal module.
b1b797cb 13340 (grub_enter_rescue_mode): Use grub_register_core_commands to register
7d074e3c 13341 commands, remove grub_rescue_register_command calls.
b1b797cb 13342
7d074e3c 13343 * normal/command.c (grub_register_command): Removed.
b1b797cb 13344 (grub_unregister_command): Likewise.
13345 (grub_command_find): Likewise.
13346 (grub_iterate_commands): Likewise.
13347 (rescue_command): Likewise.
13348 (export_command): Moved to corecmd.c.
13349 (set_command): Removed.
13350 (unset_command): Likewise.
13351 (insmod_command): Likewise.
13352 (rmmod_command): Likewise.
13353 (lsmod_command): Likewise.
13354 (grub_command_init): Likewise.
13355
13356 * normal/completion.c (iterate_command): Use cmd->prio to check for
13357 active command.
13358 (complete_arguments): Use grub_extcmd_t structure to find options.
13359 (grub_normal_do_completion): Change function grub_iterate_commands to
13360 grub_command_iterate.
13361
13362 * normal/execute.c (grub_script_execute_cmd): No need to parse
13363 argument here.
13364
13365 * normal/main.c (grub_dyncmd_dispatcher): New function.
13366 (read_command_list): Register unload commands as dyncmd.
13367 (grub_cmd_normal): Use new command interface, register rescue,
13368 unregister normal at entry, register normal, unregister rescue at exit.
13369
13370 * include/grub/list.h (grub_list_test_t): New type.
13371 (grub_list_iterate): Return int instead of void.
13372 (grub_list_insert): New function.
13373 (GRUB_AS_NAMED_LIST_P): New macro.
13374 (GRUB_AS_PRIO_LIST): Likewise.
13375 (GRUB_AS_PRIO_LIST_P): Likewise.
13376 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
13377 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
13378 (grub_prio_list): New structure.
13379 (grub_prio_list_insert): New function.
13380 (grub_prio_list_remove): New inline function.
13381
13382 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
13383 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
13384 (GRUB_COMMAND_FLAG_MENU): Likewise.
13385 (GRUB_COMMAND_FLAG_BOTH): Likewise.
13386 (GRUB_COMMAND_FLAG_TITLE): Likewise.
13387 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
13388 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
13389 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
13390 (grub_command): Likewise.
13391 (grub_register_command): Likewise.
13392 (grub_command_find): Likewise.
13393 (grub_iterate_commands): Likewise.
13394 (grub_command_init): Likewise.
13395 (grub_arg_parse): Likewise.
13396 (grub_arg_show_help): Likewise.
13397
13398 * include/grub/rescue.h (grub_rescue_register_command): Removed.
13399 (grub_rescue_unregister_command): Likewise.
13400
13401 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
13402 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
13403 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
13404
13405 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
13406 grub_rescue_cmd_initrd.
13407 * include/grub/i386/loader.h: Likewise.
13408 * include/grub/x86_64/loader.h: Likewise.
13409
13410 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
13411
1f4147aa 134122009-03-21 Bean <bean123ch@gmail.com>
13413
13414 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
13415 instead of stat in mingw environment.
13416
13417 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
13418
13419 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
13420
13421 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
13422 AC_CONFIG_LINKS.
13423
2156d5ba 134242009-03-21 Bean <bean123ch@gmail.com>
13425
13426 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
13427 out of range error.
13428
177b82ca 134292009-03-18 Michel Dänzer <michel@daenzer.net>
13430
13431 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
13432 checking inode flags for EXT4_EXTENTS_FLAG.
13433
14aad807 134342009-03-18 Robert Millan <rmh@aybabtu.com>
13435
13436 * loader/i386/linux.c: Include `<grub/video.h>' and
13437 `<grub/i386/pc/vbe.h>'..
13438 (grub_linux_setup_video): New function. Loosely based on the EFI one.
13439 (grub_linux32_boot): Attempt to configure video settings with
13440 grub_linux_setup_video().
13441 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
13442 to avoid grub_console_fini() which would step out of graphical mode
13443 unconditionally.
13444
8cf83a27 134452009-03-14 Robert Millan <rmh@aybabtu.com>
13446
13447 Fix build on powerpc.
13448 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
13449
40164e75 134502009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
13451
13452 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
13453 background image command.
13454
c58bc32a 134552009-03-12 Colin D Bennett <colin@gibibit.com>
13456
13457 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
13458 (grub_gfxterm_putchar): Extract pairs of identical calls to
13459 draw_cursor out of conditional blocks.
13460
5415144a 134612009-03-11 Pavel Roskin <proski@gnu.org>
13462
13463 * fs/hfs.c (grub_hfs_strncasecmp): New function.
13464 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
13465
6394042e 134662009-03-11 Robert Millan <rmh@aybabtu.com>
13467
13468 * loader/i386/multiboot_elfxx.c
13469 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
13470
b7b50e5f 134712009-03-11 Felix Zielcke <fzielcke@z-51.de>
13472
13473 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
13474 `kern/handler.c'.
13475
1ca7fc96 134762009-03-11 Robert Millan <rmh@aybabtu.com>
13477
13478 * loader/i386/multiboot.c (code_size): New variable.
13479 (grub_multiboot): Define offsets by adding to `code_size' rather
7d074e3c 13480 than subtracting from `grub_multiboot_payload_size'. Provide
1ca7fc96 13481 4-byte alignment to MBI and others by increasing
7d074e3c 13482 `boot_loader_name_length' appropriately.
1ca7fc96 13483
13484 * loader/i386/multiboot_elfxx.c
13485 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
13486
a83ea1d2 134872009-03-09 Felix Zielcke <fzielcke@z-51.de>
13488
13489 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
13490 `fs/ext2.c'.
13491
aa9f3bff 134922009-03-08 Robert Millan <rmh@aybabtu.com>
13493
13494 Make loader/i386/linux.c usable on i386-pc again.
13495
13496 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
13497 memory to heap.
13498 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
13499 `#error' stanza.
13500
d8b3b60e 135012009-03-07 Bean <bean123ch@gmail.com>
13502
13503 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
13504 allocation.
13505
b362c9e9 135062009-03-06 Robert Millan <rmh@aybabtu.com>
13507
13508 Fix display issue on terminals with screen size other than 80x25
13509 (e.g. gfxterm with resolution higher than 640x480).
13510
13511 * normal/main.c (grub_normal_init_page): Display title text in a
7d074e3c 13512 position relative to the center of the terminal instead of relying
b362c9e9 13513 on a hardcoded offset.
13514
9304eef1 135152009-03-04 Robert Millan <rmh@aybabtu.com>
13516
13517 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
13518 installed.
13519
13520 * Makefile.in (host_kernel): New variable.
13521 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
13522 scripts instead of just the windows one.
13523 * configure.ac: Initialize and AC_SUBST `host_kernel'.
13524
eabc95fb 135252009-03-04 Felix Zielcke <fzielcke@z-51.de>
2ba60b62 13526
13527 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
13528 `kern/handler.c'.
13529 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
13530 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
13531 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
13532 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13533 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13534 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13535
ceb1223c 135362009-03-04 Felix Zielcke <fzielcke@z-51.de>
13537
13538 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
13539 or if there's no space for the disk label and print the partition number on a
13540 invalid magic.
13541
4910684a 135422009-03-04 Felix Zielcke <fzielcke@z-51.de>
13543
13544 * util/misc.c: Include <time.h>.
13545 (grub_millisleep): New function.
13546
7e9ca17a 135472009-03-04 Bean <bean123ch@gmail.com>
13548
13549 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
13550 another option -mno-red-zone.
13551
13552 * commands/handler.c: Change module description.
13553
13554 * kern/handler.c: Add missing space at the end of description line.
13555
13556 * kern/list.c: Likewise.
13557
f501677c 135582009-03-03 Robert Millan <rmh@aybabtu.com>
13559
13560 Move more components to the relocation area, and fix mbi pointer
13561 handling to use the destination rather than the origin (thanks to
13562 Vladimir Serbinenko for spotting).
13563
13564 * loader/i386/multiboot.c (mbi_dest): New variable.
13565 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
13566 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
13567 relocation area.
13568
9902d047 135692009-03-01 Bean <bean123ch@gmail.com>
13570
50fb7002 13571 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
9902d047 13572 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
13573 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
13574 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
13575
13576 * loader/i386/efi/linux.c (acpi_guid): New variable.
13577 (acpi_guid): Likewise.
13578 (EBDA_SEG_ADDR): New constant.
13579 (LOW_MEM_ADDR): Likewise.
13580 (FAKE_EBDA_SEG): Likewise.
13581 (fake_bios_data): New function.
13582 (grub_linux_boot): Call fake_bios_data.
13583
71b9f361 135842009-03-01 Bean <bean123ch@gmail.com>
13585
13586 * commands/terminal.c: Removed.
13587
13588 * commands/handler.c: New file.
13589
13590 * include/grub/list.h: Likewise.
13591
13592 * include/grub/handler.h: Likewise.
13593
13594 * kern/list.c: Likewise.
13595
13596 * kern/handler.c: Likewise.
13597
13598 * kern/term.h: Include header file <grub/handler.h>.
13599 (grub_term_input): Move next field to the beginning.
13600 (grub_term_output): Likewise.
13601 (grub_term_input_class): New variable.
13602 (grub_term_output_class): Likewise.
13603 (grub_term_register_input): Changed to inline function.
13604 (grub_term_register_output): Likewise.
13605 (grub_term_unregister_input): Likewise.
13606 (grub_term_unregister_output): Likewise.
13607 (grub_term_set_current_input): Likewise.
13608 (grub_term_set_current_output): Likewise.
13609 (grub_term_get_current_input): Likewise.
13610 (grub_term_get_current_output): Likewise.
13611 (grub_term_iterate_input): Removed.
13612 (grub_term_iterate_output): Likewise.
13613
13614 * kern/term.c (grub_term_list_input): Removed.
13615 (grub_term_list_output): Likewise.
13616 (grub_term_input_class): New variable.
13617 (grub_term_output_class): Likewise.
50fb7002 13618 (grub_cur_term_input): Change variable as macro.
71b9f361 13619 (grub_cur_term_output): Likewise.
13620 (grub_term_register_input): Removed.
13621 (grub_term_register_output): Likewise.
13622 (grub_term_unregister_input): Likewise.
13623 (grub_term_unregister_output): Likewise.
13624 (grub_term_set_current_input): Likewise.
13625 (grub_term_set_current_output): Likewise.
13626 (grub_term_iterate_input): Likewise.
13627 (grub_term_iterate_output): Likewise.
13628 (grub_term_get_current_input): Likewise.
13629 (grub_term_get_current_output): Likewise.
13630
13631 * util/grub-editenv.c: Include header file <grub/handler.h>.
13632 (grub_term_get_current_input): Removed.
13633 (grub_term_get_current_output): Likewise.
13634 (grub_term_input_class): New variable.
50fb7002 13635 (grub_term_output_class): Likewise.
71b9f361 13636
13637 * util/grub-fstest.c (grub_term_get_current_input): Removed.
13638 (grub_term_get_current_output): Likewise.
13639 (grub_term_input_class): New variable.
50fb7002 13640 (grub_term_output_class): Likewise.
71b9f361 13641
13642 * util/grub-probe.c (grub_term_get_current_input): Removed.
13643 (grub_term_get_current_output): Likewise.
13644 (grub_term_input_class): New variable.
50fb7002 13645 (grub_term_output_class): Likewise.
71b9f361 13646
13647 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
13648 (grub_term_get_current_output): Likewise.
13649 (grub_term_input_class): New variable.
50fb7002 13650 (grub_term_output_class): Likewise.
71b9f361 13651
13652 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
13653 (terminal_mod_SOURCES): Likewise.
13654 (terminal_mod_CFLAGS): Likewise.
13655 (terminal_mod_LDFLAGS): Likewise.
13656
13657 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
13658 handler.c.
13659 (kernel_img_SOURCES): Add list.c and handler.c.
13660 (kernel_img_HEADERS): Add list.h and handler.h.
13661
13662 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
13663 handler.c.
13664 (kernel_mod_SOURCES): Add list.c and handler.c.
13665 (kernel_mod_HEADERS): Add list.h and handler.h.
13666
13667 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
13668 handler.c.
13669 (kernel_elf_SOURCES): Add list.c and handler.c.
13670 (kernel_elf_HEADERS): Add list.h and handler.h.
13671
13672 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
13673 handler.c.
13674 (kernel_elf_SOURCES): Add list.c and handler.c.
13675 (kernel_elf_HEADERS): Add list.h and handler.h.
13676
13677 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
13678 handler.c.
13679 (kernel_mod_SOURCES): Add list.c and handler.c.
13680 (kernel_mod_HEADERS): Add list.h and handler.h.
13681
13682 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
13683 handler.c.
13684 (kernel_elf_SOURCES): Add list.c and handler.c.
13685 (kernel_elf_HEADERS): Add list.h and handler.h.
13686
8a31787f 136872009-02-27 Robert Millan <rmh@aybabtu.com>
13688
13689 Factorize elf32 / elf64 code in Multiboot loader. This will
13690 prevent it from getting out of sync again.
13691
13692 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
13693 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
13694 grub_multiboot_load_elf64): Move from here ...
13695 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
13696 grub_multiboot_load_elf): ... to here (new file).
13697
51cd3dfc 136982009-02-27 Robert Millan <rmh@aybabtu.com>
13699
13700 * util/grub.d/10_linux.in: Rename "single-user mode" to
13701 "recovery mode".
13702
6e8c9c3a 137032009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
13704
13705 Don't leak in SCSI code.
13706 * disk/scsi.c (grub_scsi_close): free `scsi'.
13707
4b6bf4f9 137082009-02-27 Robert Millan <rmh@aybabtu.com>
13709
13710 * loader/i386/pc/multiboot.c: Move from here ...
13711 * loader/i386/multiboot.c: ... to here. Update all users.
13712
b9413424 137132009-02-27 Robert Millan <rmh@aybabtu.com>
13714
13715 Patch from Alexandre Bique <bique.alexandre@gmail.com>
13716 * util/i386/pc/grub-setup.c (setup): Fix directory path.
13717
50fb7002 137182009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
34519c3f 13719
13720 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
13721 b-tree.
13722
8cc50345 137232009-02-27 Robert Millan <rmh@aybabtu.com>
13724
13725 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
13726 `0x' qualifier as 0 when base is specified as parameter).
13727
6e09b8b7 137282009-02-24 Bean <bean123ch@gmail.com>
13729
13730 * configure.ac: Check for -mcmodel=large in x86_64 target.
13731
13732 * include/grub/efi/api.h (efi_call_10): New macro.
13733 (efi_wrap_10): New function.
13734
13735 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
13736 (GRUB_PE32_REL_BASED_HIGH): Likewise.
13737 (GRUB_PE32_REL_BASED_LOW): Likewise.
13738 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
13739 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
13740 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
13741 (GRUB_PE32_REL_BASED_SECTION): Likewise.
13742 (GRUB_PE32_REL_BASED_REL): Likewise.
13743 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
13744 (GRUB_PE32_REL_BASED_DIR64): Likewise.
13745 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
13746
13747 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
13748 issue.
13749
13750 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
13751 (efi_wrap_10): New function.
13752
13753 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
13754
13755 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
13756 MB/MBP model (NV chipset).
13757 (devdata_devs): Add devpath_5 to the list.
13758
13759 * load/i386/efi/linux.c (video_base): Remove variable.
13760 (RGB_MASK): New macro.
13761 (RGB_MAGIC): Likewise.
13762 (LINE_MIN): Likewise.
13763 (LINE_MAX): Likewise.
13764 (FBTEST_STEP): Likewise.
13765 (FBTEST_COUNT): Likewise.
13766 (fb_list): New variable.
13767 (grub_find_video_card): Remove function.
13768 (find_framebuf): New function.
13769 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
13770 line length.
13771
13772 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
13773 problem for x86_64.
13774
74b21bee 137752009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
13776
13777 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
13778
13779 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
13780 coding tool name.
13781
a455f472 137822009-02-22 Robert Millan <rmh@aybabtu.com>
13783
13784 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
13785 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
13786 in our relocation, instead of using it directly from heap. Also
13787 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
13788
6374daf3 137892009-02-21 Robert Millan <rmh@aybabtu.com>
13790
13791 Implement USB keyboard support (based on patch by Marco Gerards)
13792
13793 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
13794 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
13795 (usb_keyboard_mod_LDFLAGS): New variables.
13796
13797 * term/usb_keyboard.c: New file.
13798
8fa4ea70 137992009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
13800
13801 Corrected wrong declaration
13802
13803 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
13804
353976ac 138052009-02-14 Christian Franke <franke@computer.org>
13806
13807 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
13808 (grub_lspci_iter): Print class code and programming interface byte.
13809
6aa1169b 138102009-02-14 Christian Franke <franke@computer.org>
13811
13812 * gendistlist.sh: Ignore `.svn' directories.
13813
265372ca 138142009-02-14 Felix Zielcke <fzielcke@z-51.de>
13815
13816 * fs/fat.c: Add 2009 to Copyright line.
13817
9ff516f3 138182009-02-14 Christian Franke <franke@computer.org>
13819
13820 * commands/hdparm.c: New file. Provides `hdparm' command
13821 which sends ATA commands via grub_disk_ata_pass_through ().
13822
13823 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
13824
13825 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
13826 and <grub/cpu/io.h> to include/grub/ata.h.
13827 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
13828 (GRUB_CDROM_SECTOR_SIZE): Remove.
13829 (GRUB_ATA_*): Move to include/grub/ata.h.
13830 (GRUB_ATAPI_*): Likewise.
13831 (enum grub_ata_commands): Likewise.
13832 (enum grub_ata_timeout_milliseconds): Likewise.
13833 (struct grub_ata_device): Likewise.
13834 (grub_ata_regset): Likewise.
13835 (grub_ata_regget): Likewise.
13836 (grub_ata_regset2): Likewise.
13837 (grub_ata_regget2): Likewise.
13838 (grub_ata_check_ready): Likewise.
13839 (grub_ata_wait_not_busy): Remove static, exported in
13840 include/grub/ata.h.
13841 (grub_ata_wait_drq): Likewise.
13842 (grub_ata_pio_read): Likewise.
13843
13844 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
13845 function for hdparm.mod.
13846
13847 * include/grub/ata.h: New file, contains declarations from
13848 disk/ata.c.
13849 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
13850
13851 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
13852 (grub_disk_ata_pass_through): New exported variable.
13853
13854 * kern/disk.c (grub_disk_ata_pass_through): New variable.
13855
772e23da 138562009-02-13 Colin D Bennett <colin@gibibit.com>
13857
13858 Support multiple fallback entries, and provide an API to support
13859 executing default+fallback menu entries. Renamed the `terminal' menu
13860 viewer to `text'.
13861
13862 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
13863 variable declaration.
13864 (grub_menu_execute_callback): New structure declaration.
13865 (grub_menu_execute_callback_t): New typedef.
13866 (grub_menu_execute_with_fallback): New function declaration.
13867 (grub_menu_get_entry): Likewise.
13868 (grub_menu_get_timeout): Likewise.
13869 (grub_menu_set_timeout): Likewise.
13870
13871 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
13872
13873 * normal/menu.c (grub_wait_after_message): Moved to
13874 `normal/menu_text.c'.
13875 (draw_border): Likewise.
13876 (print_message): Likewise.
13877 (print_entry): Likewise.
13878 (print_entries): Likewise.
13879 (grub_menu_init_page): Likewise.
13880 (get_entry_number): Likewise.
13881 (print_timeout): Likewise.
13882 (run_menu): Likewise.
13883 (grub_menu_execute_entry): Likewise.
13884 (show_text_menu): Likewise.
13885 (get_and_remove_first_entry_number): New function.
13886 (grub_menu_execute_with_fallback): Likewise.
13887 (get_entry): Renamed to ...
13888 (grub_menu_get_entry): .. this and made it global.
13889 (get_timeout): Renamed to ...
13890 (grub_menu_get_timeout): ... this and made it global.
13891 (set_timeout): Renamed to ...
13892 (grub_menu_set_timeout): ... this and made it global.
13893 (grub_normal_terminal_menu_viewer): Renamed to ...
13894 (grub_normal_text_menu_viewer): ... this.
13895
13896 * normal/menu_text.c: New file. Extracted text-menu-specific code
13897 from normal/menu.c.
13898
13899 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
13900 (normal_mod_SOURCES): Likewise.
13901
13902 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
13903 (normal_mod_SOURCES): Likewise.
13904
13905 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13906 (normal_mod_SOURCES): Likewise.
13907
13908 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
13909 (normal_mod_SOURCES): Likewise.
13910
13911 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13912 (normal_mod_SOURCES): Likewise.
13913
13914 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13915 (normal_mod_SOURCES): Likewise.
13916
13917 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
13918 (normal_mod_SOURCES): Likewise.
13919
16ac430e 139202009-02-11 Robert Millan <rmh@aybabtu.com>
13921
13922 * util/grub.d/00_header.in: Update old reference to `font' command.
13923
06ff20fc 139242009-02-10 Felix Zielcke <fzielcke@z-51.de>
13925
13926 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
13927
13928 Based on patch from Javier Martín.
13929
96da9407 139302009-02-09 Felix Zielcke <fzielcke@z-51.de>
13931
13932 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
50fb7002 13933 to avoid false positives with FAT.
96da9407 13934 (grub_fstest_SOURCES): Likewise.
13935 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
13936 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
13937 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13938 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
13939 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13940 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13941
6dca6fe4 139422009-02-09 Felix Zielcke <fzielcke@z-51.de>
13943
06ff20fc 13944 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
6dca6fe4 13945 bpb.version_specific.fat12_or_fat16.fstype and
13946 bpb.version_specific.fat32.fstype.
13947
2550c62f 139482009-02-08 Robert Millan <rmh@aybabtu.com>
13949
be110b30 13950 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
2550c62f 13951
56978920 139522009-02-08 Robert Millan <rmh@aybabtu.com>
13953
13954 * Makefile.in (host_os, host_cpu): New variables.
13955 (target_os): Remove. Update all users.
13956
d64399b5 139572009-02-08 Marco Gerards <marco@gnu.org>
13958
13959 * Makefile.in (enable_grub_emu_usb): New variable.
13960 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
13961 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
13962 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
13963 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
13964 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
13965 `usbtest.mod' and `usbms.mod'.
13966 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
13967 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
13968 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
13969 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
13970 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
13971 variables.
13972
13973 * disk/usbms.c: New file.
13974
13975 * include/grub/usb.h: Likewise.
13976
13977 * include/grub/usbtrans.h: Likewise.
13978
13979 * include/grub/usbdesc.h: Likewise.
13980
13981 * bus/usb/usbtrans.c: Likewise.
13982
13983 * bus/usb/ohci.c: Likewise.
13984
13985 * bus/usb/uhci.c: Likewise.
13986
13987 * bus/usb/usbhub.c: Likewise.
13988
13989 * bus/usb/usb.c: Likewise.
13990
13991 * commands/usbtest.c: Likewise.
13992
13993 * util/usb.c: Likewise.
50fb7002 13994
d64399b5 13995 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
13996
13997 * configure.ac: Test for libusb presence.
50fb7002 13998
d64399b5 13999 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
14000
2b40d6bb 140012009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
14002
14003 * kern/mm.c: Add more comments.
14004
73a4ce81 140052009-02-08 Robert Millan <rmh@aybabtu.com>
14006
14007 Patch from Javier Martín.
14008 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
14009 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
14010
f821ce59 140112009-02-08 Robert Millan <rmh@aybabtu.com>
14012
14013 * fs/cpio.c: Split tar functionality to ...
14014 * fs/tar.c: ... here (new file). Update all users.
14015
aebfc4b0 140162009-02-07 Robert Millan <rmh@aybabtu.com>
14017
14018 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
14019 backward-incompatible features.
14020
14021 Based on patch from Javier Martín, with some adjustments.
14022
50fb7002 140232009-02-07 Michael Scherer <misc@mandriva.org>
cea15bca 14024
14025 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
14026
0bb5115e 140272009-02-07 Robert Millan <rmh@aybabtu.com>
14028
14029 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
14030 position of `disk/lvm.c' to ensure grub_init_all() always picks it
14031 after the RAID stuff.
14032
38a0f8e7 140332009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
14034
50fb7002 14035 Fixes problem when running vbetest command as reported by
38a0f8e7 14036 Vladimir Serbinenko <phcoder@gmail.com>.
14037
14038 * (grub_vbe_set_video_mode): Fixed problem with text modes.
14039
3143cc1c 140402009-02-04 Felix Zielcke <fzielcke@z-51.de>
14041
14042 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
14043 /dev/md/NpN style mdraid devices.
14044
9cba6fce 140452009-02-03 Felix Zielcke <fzielcke@z-51.de>
14046
14047 * util/unifont2pff.rb: Remove.
14048
e507a2c1 140492009-02-03 Felix Zielcke <fzielcke@z-51.de>
14050
14051 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
14052 `#'.
14053
d2c2b4cd 140542009-02-03 Felix Zielcke <fzielcke@z-51.de>
14055
14056 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
14057 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
14058 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
14059 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
14060 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14061 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14062 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14063
b4315fb0 140642009-02-02 Christian Franke <franke@computer.org>
14065
14066 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
14067
de3aa260 140682009-02-01 Felix Zielcke <fzielcke@z-51.de>
14069
7c3ff286 14070 * INSTALL: Note that we now require at least autoconf 2.59 and
14071 that LZO is optional.
de3aa260 14072
825a182b 140732009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
14074
14075 Base on patch on bug #24154 created by Tomas Tintera
14076 <trosos@seznam.cz>.
14077
14078 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
14079
a69ef770 140802009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
14081
7c3ff286 14082 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
a69ef770 14083 <bero@arklinux.org>.
14084
14085 * normal/parser.y (script_init): Add missing semicolon.
14086
6fa42fa6 140872009-01-31 Colin D Bennett <colin@gibibit.com>
14088
7c3ff286 14089 * normal/main.c: Add include to grub/menu_viewer.h.
6fa42fa6 14090 (free_menu_entry_classes): Added.
14091 (grub_normal_menu_addentry): Added class property handling.
14092 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
14093 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
14094
14095 * normal/menu_viewer.c: New file.
14096
14097 * normal/menu.c (run_menu_entry): Renamed to ...
14098 (grub_menu_execute_entry): ... this and made it as global.
14099 (grub_menu_run): Renamed to ...
14100 (show_text_menu): ... this and made it local.
14101 (show_text_menu): Adapt to new function names.
14102 (grub_normal_terminal_menu_viewer): New global variable.
14103
14104 * include/grub/menu.h: New file.
14105
14106 * include/grub/menu_viewer.h: New file.
14107
14108 * include/grub/normal.h: Added include to grub/menu.h.
14109 (grub_menu_entry): Moved to include/grub/menu.h.
14110 (grub_menu_entry_t): Likewise.
14111 (grub_menu): Likewise.
14112 (grub_menu_t): Likewise.
14113 (grub_normal_terminal_menu_viewer): Added.
14114 (grub_menu_execute_entry): Likewise.
14115 (grub_menu_run): Removed.
14116
14117 * DISTLIST: Added include/grub/menu.h.
14118 Added include/grub/menu_viewer.h.
14119 Added normal/menu_viewer.c.
14120
141212009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
14122
14123 * normal/execute.c (grub_script_execute_menuentry): Changed to use
14124 arglist for menutitle arguments.
14125
14126 * normal/main.c (grub_normal_menu_addentry): Likewise.
14127
14128 * normal/parser.y (menuentry): Likewise.
14129
14130 * normal/script.c (grub_script_create_cmdmenu): Likewise.
14131
14132 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
14133 (grub_script_create_cmdmenu): Likewise.
14134
14135 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
14136
14137 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
14138 changes.
14139
14140 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
14141
14142 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
14143
14144 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
14145
14146 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
14147
14148 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
14149
14150 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
14151
56192c23 141522009-01-30 Christian Franke <franke@computer.org>
14153
14154 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
14155 in option help text.
14156
d72521b3 141572009-01-27 Pavel Roskin <proski@gnu.org>
14158
14159 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
14160
994b5e84 141612009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
14162
14163 * commands/lsmmap.c: Add include to grub/machine/memory.h.
14164
14165 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
14166
14167 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
14168 unregister function.
14169
6a7eab2c 141702009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
14171
14172 * disk/scsi.c (grub_scsi_read): Fix sign problem.
14173
14174 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
14175
14176 * util/grub-mkfont.c (usage): Fix typo.
14177
14178 * util/elf/grub-mkimage.c (load_modules): Fix warning.
14179
1806b56e 141802009-01-26 Daniel Mierswa <impulze@impulze.org>
14181
3fb18f09 14182 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
14183
336e1fb9 14184 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
14185
1806b56e 14186 * kern/misc.c (grub_strcasecmp): New function.
14187 (grub_strcasecmp): Use grub_size_t instead of int for length.
14188 Fix return value.
14189 * include/grub/misc.h: Update function prototypes.
14190
580b2a0f 141912009-01-26 Robert Millan <rmh@aybabtu.com>
14192
14193 * configure.ac: Fix cross-compilation check.
ef257b36 14194
d31c24f1 141952009-01-22 Christian Franke <franke@computer.org>
14196
14197 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
14198 (precision) digit string. Allow `.format2' without `format1' (width).
14199 Limit input chars for `%s' output to `format2' if specified. This is
14200 compatible with standard printf ().
14201
3138b44c 142022009-01-22 Christian Franke <franke@computer.org>
14203
14204 * disk/ata.c (grub_ata_wait_status): Replace by ...
14205 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
14206 other status bits may be invalid while BSY is asserted.
14207 (grub_ata_check_ready): New function.
14208 (grub_ata_cmd): Removed.
14209 (grub_ata_wait_drq): New function.
14210 (grub_ata_strncpy): Remove inline.
14211 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
14212 and error check now done by grub_ata_wait_drq ().
14213 (grub_ata_pio_write): Likewise.
14214 (grub_atapi_identify): Set DEV before check for !BSY. Use
14215 grub_ata_wait_drq () to wait for data.
14216 (grub_ata_device_initialize): Add status register check to
14217 detect missing SATA slave devices. Add debug messages.
14218 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
14219 (grub_atapi_packet): Set DEV before check for !BSY. Replace
14220 transfer loop by grub_ata_pio_write ().
14221 (grub_ata_identify): Set DEV before check for !BSY. Use
14222 grub_ata_wait_drq () to wait for data.
ef257b36 14223 (grub_ata_setaddress): Set DEV before check for !BSY.
3138b44c 14224 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
14225 read/write in one loop. Fix invalid command on write. Fix incomplete
14226 command on (size % batch) == 0. Add missing error check after write of
14227 last block. Add debug messages.
14228 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
14229
59a64ef6 142302009-01-19 Christian Franke <franke@computer.org>
14231
14232 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
14233 (GRUB_ATAPI_IREASON_*): Likewise.
14234 (grub_ata_pio_write): Fix timeout error return.
14235 (grub_atapi_identify): Add grub_ata_wait () after cmd.
14236 (grub_atapi_wait_drq): New function.
14237 (grub_atapi_packet): New parameter `size'.
14238 Use grub_atapi_wait_drq () and direct write instead of
14239 grub_ata_pio_write ().
14240 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
14241 reads the number of bytes requested by the device for each DRQ
14242 assertion.
14243 (grub_atapi_write): Remove old implementation, return not
14244 implemented instead.
14245
1cfe20b3 142462009-01-19 Christian Franke <franke@computer.org>
14247
14248 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
14249 of 512 to calculate data size.
14250 (grub_scsi_read12): Likewise.
14251 (grub_scsi_write10): Likewise.
14252 (grub_scsi_write12): Likewise.
14253 (grub_scsi_read): Adjust size according to blocksize.
14254 Add checks for invalid blocksize and unaligned transfer.
14255
bee5fe5d 142562009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
14257
14258 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
14259
ef257b36 14260 * term/gfxterm.c (write_char): Fix background rendering for wide
bee5fe5d 14261 width glyphs.
14262
3e643f8c 142632009-01-19 Robert Millan <rmh@aybabtu.com>
14264
14265 * config.guess: Update to latest version from config git.
14266 * config.sub: Likewise.
14267
4fa80998 142682009-01-17 Felix Zielcke <fzielcke@z-51.de>
14269
14270 * Makefile.in: Change font compilation to use new grub-mkfont instead
14271 of java version.
14272
14273 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
14274 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
14275 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
14276 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
14277 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
14278 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
14279 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
14280 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
14281 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
14282
7086085b 142832009-01-16 Christian Franke <franke@computer.org>
14284
14285 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
14286 (enum grub_ata_timeout_milliseconds): New enum.
14287 (grub_ata_wait_status): Add parameter milliseconds.
14288 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
14289 recovery from timed-out commands.
14290 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
14291 return grub_errno instead of REG_ERROR.
14292 (grub_ata_pio_write): Add parameter milliseconds.
14293 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
14294 Pass milliseconds to grub_ata_wait_status () and
14295 grub_ata_pio_read ().
14296 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
14297 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
14298 grub_ata_wait_status (). Fix IDENTIFY timeout check.
14299 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
14300 It is not suitable for device detection, because DEV bit is ignored,
14301 the command may run too long, and not all devices set the signature
14302 properly.
14303 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
14304 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
14305 Fix device selection, DEV bit must be set first to address the registers
14306 of the correct device.
14307 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
14308 grub_ata_pio_read/write ().
14309 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
14310 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
14311
4a412913 143122009-01-13 Carles Pina i Estany <carles@pina.cat>
14313
14314 * util/grub-editenv.c (main): Use fseeko(), not fseek().
14315
7795c55e 143162009-01-13 Bean <bean123ch@gmail.com>
d913988c 14317
14318 * util/grub-mkfont.c (write_font): forget to remove some debug code.
14319
7795c55e 143202009-01-13 Bean <bean123ch@gmail.com>
e52db1f7 14321
14322 * Makefile.in: (enable_grub_mkfont): New variable.
14323 (freetype_cflags): Likewise.
14324 (freetype_libs): Likewise.
14325
14326 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
14327 (grub_mkfont_SOURCES): New variable.
14328 (grub_mkfont_CFLAGS): Likewise.
14329 (grub_mkfont_LDFLAGS): Likewise.
14330
14331 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
14332 library if `--enable-grub-mkfont' is requested.
14333 (enable_grub_mkfont): New variable.
14334 (freetype_cflags): Likewise.
14335 (freetype_libs): Likewise.
14336
14337 * util/grub-mkfont.c: New file.
14338
093af1fe 143392009-01-12 Christian Franke <franke@computer.org>
14340
14341 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
14342 mode check. Fix setting of compat_use[].
14343
f36cc108 143442009-01-10 Robert Millan <rmh@aybabtu.com>
14345
14346 Update a few copyright years which we forgot to do in 2008 (only for
14347 files whose changes made in 2008 were copyright-significant)
14348
14349 * Makefile.in: Add 2008 to Copyright line.
14350 * disk/ieee1275/ofdisk.c: Likewise.
14351 * disk/efi/efidisk.c: Likewise.
14352 * kern/dl.c: Likewise.
14353 * kern/sparc64/ieee1275/init.c: Likewise.
14354 * kern/mm.c: Likewise.
14355 * kern/efi/mm.c: Likewise.
14356 * boot/i386/pc/boot.S: Likewise.
14357 * genfslist.sh: Likewise.
14358 * fs/iso9660.c: Likewise.
14359 * fs/hfs.c: Likewise.
14360 * fs/jfs.c: Likewise.
14361 * fs/minix.c: Likewise.
14362 * fs/ufs.c: Likewise.
14363 * gensymlist.sh.in: Likewise.
14364 * genkernsyms.sh.in: Likewise.
14365 * include/grub/misc.h: Likewise.
14366 * include/grub/types.h: Likewise.
14367 * include/grub/symbol.h: Likewise.
14368 * include/grub/elf.h: Likewise.
14369 * include/grub/kernel.h: Likewise.
14370 * include/grub/disk.h: Likewise.
14371 * include/grub/dl.h: Likewise.
14372 * include/grub/i386/linux.h: Likewise.
14373 * include/grub/i386/pc/biosdisk.h: Likewise.
14374 * include/grub/efi/api.h: Likewise.
14375 * include/grub/efi/pe32.h: Likewise.
14376 * include/grub/util/misc.h: Likewise.
14377 * normal/execute.c: Likewise.
14378 * normal/arg.c: Likewise.
14379 * normal/completion.c: Likewise.
14380 * normal/lexer.c: Likewise.
14381 * normal/parser.y: Likewise.
14382 * normal/misc.c: Likewise.
14383 * commands/i386/pc/vbeinfo.c: Likewise.
14384 * commands/hexdump.c: Likewise.
14385 * commands/terminal.c: Likewise.
14386 * commands/ls.c: Likewise.
14387 * commands/help.c: Likewise.
14388 * partmap/pc.c: Likewise.
14389 * loader/efi/chainloader.c: Likewise.
14390 * loader/multiboot_loader.c: Likewise.
14391 * loader/i386/pc/multiboot2.c: Likewise.
14392 * term/efi/console.c: Likewise.
14393 * term/i386/pc/serial.c: Likewise.
14394 * util/lvm.c: Likewise.
14395 * util/console.c: Likewise.
14396 * util/i386/efi/grub-mkimage.c: Likewise.
14397 * util/raid.c: Likewise.
14398
7f02114b 143992009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
14400
14401 * commands/videotest.c: Removed include to grub/machine/memory.h.
14402
14403 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
14404 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
14405 (video_mod_SOURCES): Removed.
14406 (video_mod_CFLAGS): Likewise.
14407 (video_mod_LDFLAGS): Likewise.
14408 (gfxterm_mod_SOURCES): Likewise.
14409 (gfxterm_mod_CFLAGS): Likewise.
14410 (gfxterm_mod_LDFLAGS): Likewise.
14411 (videotest_mod_SOURCES): Likewise.
14412 (videotest_mod_CFLAGS): Likewise.
14413 (videotest_mod_LDFLAGS): Likewise.
14414 (bitmap_mod_SOURCES): Likewise.
14415 (bitmap_mod_CFLAGS): Likewise.
14416 (bitmap_mod_LDFLAGS): Likewise.
14417 (tga_mod_SOURCES): Likewise.
14418 (tga_mod_CFLAGS): Likewise.
14419 (tga_mod_LDFLAGS): Likewise.
14420 (jpeg_mod_SOURCES): Likewise.
14421 (jpeg_mod_CFLAGS): Likewise.
14422 (jpeg_mod_LDFLAGS): Likewise.
14423 (png_mod_SOURCES): Likewise.
14424 (png_mod_CFLAGS): Likewise.
14425 (png_mod_LDFLAGS): Likewise.
14426
14427 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
14428 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
14429 (video_mod_SOURCES): Added.
14430 (video_mod_CFLAGS): Likewise.
14431 (video_mod_LDFLAGS): Likewise.
14432 (videotest_mod_SOURCES): Likewise.
14433 (videotest_mod_CFLAGS): Likewise.
14434 (videotest_mod_LDFLAGS): Likewise.
14435 (bitmap_mod_SOURCES): Likewise.
14436 (bitmap_mod_CFLAGS): Likewise.
14437 (bitmap_mod_LDFLAGS): Likewise.
14438 (tga_mod_SOURCES): Likewise.
14439 (tga_mod_CFLAGS): Likewise.
14440 (tga_mod_LDFLAGS): Likewise.
14441 (jpeg_mod_SOURCES): Likewise.
14442 (jpeg_mod_CFLAGS): Likewise.
14443 (jpeg_mod_LDFLAGS): Likewise.
14444 (png_mod_SOURCES): Likewise.
14445 (png_mod_CFLAGS): Likewise.
14446 (png_mod_LDFLAGS): Likewise.
14447 (gfxterm_mod_SOURCES): Likewise.
14448 (gfxterm_mod_CFLAGS): Likewise.
7795c55e 14449 (gfxterm_mod_LDFLAGS): Likewise.
7f02114b 14450
14451 * term/gfxterm.c: Removed include to grub/machine/memory.h,
14452 grub/machine/console.h.
14453
644fff97 144542009-01-04 Jerone Young <jerone@gmail.com>
14455
14456 Make on screen instructions clearer
14457
14458 Based on patch created by Jidanni <jidanni@jidanni.org>
14459
14460 * normal/menu.c: print clearer instructions on the screen
14461
1e901a75 144622009-01-02 Colin D Bennett <colin@gibibit.com>
14463
14464 New font engine.
34c44600 14465
1e901a75 14466 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
14467 build system and fixed gfxterm.c to work with different sized fonts.
14468
14469 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
34c44600 14470
1e901a75 14471 * configure: Re-generated.
34c44600 14472
1e901a75 14473 * DISTLIST: Removed font/manager.c.
14474 Added font/font.c.
14475 Added font/font_cmd.c.
34c44600 14476
1e901a75 14477 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
14478 compilation.
34c44600 14479
1e901a75 14480 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
34c44600 14481
14482 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
1e901a75 14483
14484 * kern/term.c: Changed users of grub_utf8_to_ucs4.
34c44600 14485
1e901a75 14486 * normal/menu.c: Likewise.
34c44600 14487
1e901a75 14488 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
14489 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
34c44600 14490
1e901a75 14491 * include/grub/font.h: Replaced with new file.
34c44600 14492
1e901a75 14493 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
14494 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
14495 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
14496 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
14497 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
34c44600 14498 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
1e901a75 14499 fg_red, fg_green, fg_blue, fg_alpha.
14500 (grub_video_adapter): Removed blit_glyph.
34c44600 14501 (grub_video_blit_glyph): Removed.
14502
1e901a75 14503 * font/manager.c: Removed file.
34c44600 14504
14505 * font/font.c: New file.
14506
1e901a75 14507 * font/font_cmd.c: Likewise.
34c44600 14508
1e901a75 14509 * video/video.c (grub_video_blit_glyph): Removed.
34c44600 14510
1e901a75 14511 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
14512 (grub_video_vbe_map_rgba): Likewise.
14513 (grub_video_vbe_unmap_color_int): Likewise.
14514 (grub_video_vbe_blit_glyph): Removed.
14515 (grub_video_vbe_adapter): Removed blit_glyph.
34c44600 14516
1e901a75 14517 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
14518 (get_pixel): Likewise.
34c44600 14519 (set_pixel): Likewise.
14520
1e901a75 14521 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
34c44600 14522
1e901a75 14523 * term/gfxterm.c: Adapted to new font engine.
34c44600 14524
1e901a75 14525 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
34c44600 14526
1e901a75 14527 * term/i386/pc/vga.c: Likewise.
34c44600 14528
1e901a75 14529 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
34c44600 14530
1e901a75 14531 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
34c44600 14532
1e901a75 14533 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
34c44600 14534
1e901a75 14535 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
34c44600 14536
1e901a75 14537 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
34c44600 14538
1e901a75 14539 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
34c44600 14540
1e901a75 14541 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
34c44600 14542
1e901a75 14543 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
34c44600 14544
1e901a75 14545 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
14546
14547 * util/grub.d/00_header.in: Changed to use new loadfont command.
34c44600 14548
1e901a75 14549 * util/grub-mkconfig_lib.in: Changed font extension.
14550
278922e8 145512008-12-28 Felix Zielcke <fzielcke@z-51.de>
14552
14553 * util/getroot.c (grub_util_get_grub_dev): Add support for
14554 /dev/md/dNNpNN style partitionable mdraid devices.
14555
3ced05cf 145562008-12-12 Alex Smith <alex@alex-smith.me.uk>
14557
14558 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
14559 at a time limit of the PXE TFTP API correctly.
14560 (grub_pxefs_close): Likewise.
14561
7fd0ee30 145622008-11-29 Robert Millan <rmh@aybabtu.com>
14563
34c44600 14564 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
7fd0ee30 14565 grub_ata_device_initialize() calls.
14566
34c44600 145672008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
0c5e79ab 14568
14569 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
14570 iteration failed.
14571 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
14572
89313780 145732008-11-28 Robert Millan <rmh@aybabtu.com>
14574
14575 Fix build on powerpc-ieee1275. Based on patch created by
14576 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
14577 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
14578 `kern/ieee1275/mmap.c'.
14579 * include/grub/powerpc/ieee1275/memory.h: New file.
14580
15257703 14581 Provide grub-install on coreboot.
14582 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
14583 (grub_install_SOURCES): New variable.
14584 * util/i386/pc/grub-install.in: Add a few condition checks to make it
14585 usable on coreboot.
14586
9fc5388a 145872008-11-25 Felix Zielcke <fzielcke@z-51.de>
14588
14589 * util/grub-fstest.c (grub_term_get_current_input): Change return type
14590 to `grub_term_input_t'.
14591 (grub_term_get_current_output): Change return type to
14592 `grub_term_output_t'.
14593
bc3a2f31 145942008-11-22 Robert Millan <rmh@aybabtu.com>
14595
34c44600 14596 Fix breakage on coreboot due to declaration mismatch.
bc3a2f31 14597 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
14598 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
14599 grub_vga_text_cls().
14600
80fc88f2 14601 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
34c44600 14602 comments. Avoid copying one more byte than necessary (just in case).
80fc88f2 14603
cbf36fd3 14604 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
14605 to 0x200000 (avoids trouble with some OFW implementations, and matches
14606 with the one in Yaboot).
14607 Reported by Manoel Abranches
14608
73e8e268 146092008-11-20 Robert Millan <rmh@aybabtu.com>
3cf6ac19 14610
14611 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
14612 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
14613
73e8e268 14614 * util/grub-mkconfig_lib.in (grub_warn): New function.
14615 (convert_system_path_to_grub_path): Use grub_warn() when issuing
14616 warnings, to obtain consistent formatting.
14617 * util/grub.d/00_header.in: Likewise.
14618 * util/update-grub_lib.in: Likewise.
14619
e94045a1 14620 * loader/i386/linux.c (allocate_pages): Fix a warning.
40f9faa4 14621 Move comment text to `#error' stanza.
e94045a1 14622
79d29fd7 14623 Harmonize ieee1275's grub_available_iterate() with the generic
14624 grub_machine_mmap_iterate() interface (fixes a recently-introduced
14625 build problem on i386-ieee1275):
14626 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
14627 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
14628 parameter `type'. Update all users of this function.
14629 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
14630 `kern/ieee1275/mmap.c'.
14631 * kern/ieee1275/init.c
14632 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
14633 with ...
14634 (grub_machine_mmap_iterate): ... this.
14635 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
14636 return type to `grub_err_t'. Update all implementations of this
14637 function prototype.
14638 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
14639 Likewise.
14640
60d6b16e 14641 Add `lsmmap' command (lists firmware-provided memory map):
14642 * commands/lsmmap.c: New file.
14643 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
14644 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
14645 variables.
14646 * conf/powerpc-ieee1275.rmk: Likewise.
14647 * conf/i386-coreboot.rmk: Likewise.
14648 * conf/i386-ieee1275.rmk: Likewise.
14649
ebaaf49b 146502008-11-19 Robert Millan <rmh@aybabtu.com>
14651
14652 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
92907110 14653 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
14654 constraints to initrd allocation (based on code from
14655 loader/i386/pc/linux.c). Without them, initrd was allocated too high
14656 for Linux to find it.
ebaaf49b 14657
dfab719f 146582008-11-14 Robert Millan <rmh@aybabtu.com>
14659
14660 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
14661 order to cope with duplicate slashes.
14662
10fc3eb9 146632008-11-14 Robert Millan <rmh@aybabtu.com>
14664
14665 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
14666 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
14667 don't want to mess with lower memory, because it is used in the Linux
14668 loader.
14669
14670 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
34c44600 14671 an appropriate place in lower memory, between 0x10000 and 0x90000,
10fc3eb9 14672 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
14673 is in our heap (probably as a result of it being corrupted during
2f2a3442 14674 decompression). Add #error instance with comment to explain why this
14675 loader isn't currently usable on PC/BIOS.
10fc3eb9 14676
e2e07847 146772008-11-14 Robert Millan <rmh@aybabtu.com>
14678
14679 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
34c44600 14680 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
e2e07847 14681
fe8e8d69 146822008-11-12 Robert Millan <rmh@aybabtu.com>
14683
14684 Make loader/i386/linux.c buildable on i386-pc (although disabled).
14685
14686 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
14687 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
14688 from here ...
14689 * include/grub/i386/pc/memory.h: ... to here.
14690
976b07d0 146912008-11-12 Robert Millan <rmh@aybabtu.com>
14692
14693 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
14694 split).
14695
14696 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
14697 (grub_console_cur_color, grub_console_real_putchar)
14698 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
14699 (grub_console_setcolorstate, grub_console_setcolor)
14700 (grub_console_getcolor): Move from here ...
14701 * include/grub/i386/vga_common.h: ... to here (new file).
14702
14703 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
14704 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
14705 `<grub/i386/io.h>'.
14706 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
14707 `<grub/i386/vga_common.h>'.
14708
76679cd3 147092008-11-12 Robert Millan <rmh@aybabtu.com>
14710
14711 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
14712 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
14713 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
14714 variables.
14715 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
14716 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
14717
14718 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
14719 grub_console_init() with call to grub_vga_text_init().
14720 (grub_machine_fini): Replace call to
14721 grub_console_fini() with call to grub_vga_text_fini() and
14722 grub_at_keyboard_fini().
14723
14724 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
14725 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
14726 (grub_console_setcolorstate, grub_console_setcolor)
14727 (grub_console_getcolor): New function prototypes.
14728
14729 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
14730 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
14731 (grub_vga_text_setcursor): Static-ize.
14732 (grub_vga_text_term): New structure.
14733 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
14734
14735 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
14736 (grub_console_cur_color, grub_console_standard_color)
14737 (grub_console_normal_color, grub_console_highlight_color)
14738 (map_char, grub_console_putchar, grub_console_getcharwidth)
14739 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
14740 (grub_console_getcolor): Move from here ...
14741 * term/i386/vga_common.c: ... to here (same function names).
14742
95b841d3 147432008-11-12 Robert Millan <rmh@aybabtu.com>
14744
14745 Use newly-added Multiboot support in coreboot.
14746
14747 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
14748 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
14749
14750 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
14751 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
14752 (codestart): Store the MBI in `startup_multiboot_info' when we're
14753 being loaded using Multiboot.
14754
14755 * kern/i386/coreboot/init.c (grub_machine_init): Move
14756 grub_at_keyboard_init() call to beginning of function (useful for
14757 debugging). Call grub_machine_mmap_init() before attempting to use
14758 grub_machine_mmap_iterate().
14759 (grub_lower_mem, grub_upper_mem): Move from here ...
14760 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
14761 here (new file).
14762
14763 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
14764 function prototype.
14765
761ca975 147662008-11-12 Robert Millan <rmh@aybabtu.com>
14767
14768 Fix a regression introduced by the at_keyboard.mod split. Because
14769 some terminals are default on some platforms and non-default on
14770 others, the first terminal being registered determines which is
14771 going to be default.
14772
14773 * kern/term.c (grub_term_register_input): If this is the first
14774 terminal being registered, set it as the current one.
14775 (grub_term_register_output): Likewise.
14776
14777 * term/efi/console.c (grub_console_init): Do not call
14778 grub_term_set_current_output() or grub_term_set_current_input().
14779 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
14780 * term/i386/pc/console.c (grub_console_init): Likewise.
14781 (grub_console_fini): Do not call grub_term_set_current_input()
14782 (but leave grub_term_set_current_output() to restore text mode).
14783
6c529df7 147842008-11-10 Robert Millan <rmh@aybabtu.com>
14785
14786 * util/grub.d/00_header.in: Add backward compatibility check for
14787 versions of terminal.mod that don't understand `terminal_input' or
14788 `terminal_output'.
14789
132e4113 147902008-11-09 Robert Millan <rmh@aybabtu.com>
14791
14792 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
14793 `terminal_input' / `terminal_output', not `terminal'.
14794
ac293d50 147952008-11-08 Robert Millan <rmh@aybabtu.com>
14796
14797 * Makefile.in (include_DATA): Fix srcdir=. assumption.
2a9c5940 14798 (DISTCLEANFILES): Add `build_env.mk'.
ac293d50 14799
0025933a 148002008-11-08 Robert Millan <rmh@aybabtu.com>
14801
14802 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
dba3f844 14803 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
0025933a 14804 members. Update all users.
14805 * util/console.c (grub_ncurses_term): Split in ...
14806 (grub_ncurses_term_input): ... this, and ...
14807 (grub_ncurses_term_output): ... this. Update all users.
dcb6fa0a 14808 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
0025933a 14809
37c86336 148102008-11-08 Robert Millan <rmh@aybabtu.com>
14811
14812 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
14813 (PKGDATA): Add $(pkgdata_SRCDIR).
14814 (pkglib_BUILDDIR): New variable.
14815 (pkgdata_SRCDIR): New variable.
14816 (build_env.mk): New target.
14817 (include_DATA): New variable.
14818 (install-local): Install $(include_DATA) files in $(includedir).
14819
b6c15a2d 148202008-11-07 Pavel Roskin <proski@gnu.org>
14821
d99d46f1 14822 * gendistlist.sh: Use C locale for sorting to ensure consistent
14823 output on all systems.
14824
b6c15a2d 14825 * util/grub.d/00_header.in: Remove incorrect space before
14826 "serial".
14827
c32ee8c9 148282008-11-07 Robert Millan <rmh@aybabtu.com>
14829
14830 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
14831 per specification.
14832 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
14833 * loader/multiboot_loader.c (find_multi_boot2_header): New function
14834 (based on find_multi_boot1_header).
14835 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
14836 using find_multi_boot2_header(), and abort if neither Multiboot or
14837 Multiboot headers were found.
14838
651c29b7 148392008-11-07 Robert Millan <rmh@aybabtu.com>
14840
14841 Modularize at_keyboard.mod:
14842
14843 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
14844 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
14845 (at_keyboard_mod_LDFLAGS): New variables.
14846
14847 Actual terminal split:
14848
14849 * include/grub/term.h (struct grub_term): Split in ...
14850 (struct grub_term_input): ... this, and ...
14851 (struct grub_term_output): ... this. Update all users.
14852 (grub_term_set_current): Split in ...
14853 (grub_term_set_current_input): ... this, and ...
14854 (grub_term_set_current_output): ... this.
14855 (grub_term_get_current): Split in ...
14856 (grub_term_get_current_input): ... this, and ...
14857 (grub_term_get_current_output): ... this.
14858 (grub_term_register): Split in ...
14859 (grub_term_register_input): ... this, and ...
14860 (grub_term_register_output): ... this.
14861 (grub_term_unregister): Split in ...
14862 (grub_term_unregister_input): ... this, and ...
14863 (grub_term_unregister_output): ... this.
14864 (grub_term_iterate): Split in ...
14865 (grub_term_iterate_input): ... this, and ...
14866 (grub_term_iterate_output): ... this.
14867
14868 * kern/term.c (grub_term_list): Split in ...
14869 (grub_term_list_input): ... this, and ...
14870 (grub_term_list_output): ... this. Update all users.
14871 (grub_cur_term): Split in ...
14872 (grub_cur_term_input): ... this, and ...
14873 (grub_cur_term_output): ... this. Update all users.
14874 (grub_term_set_current): Split in ...
14875 (grub_term_set_current_input): ... this, and ...
14876 (grub_term_set_current_output): ... this.
14877 (grub_term_get_current): Split in ...
14878 (grub_term_get_current_input): ... this, and ...
14879 (grub_term_get_current_output): ... this.
14880 (grub_term_register): Split in ...
14881 (grub_term_register_input): ... this, and ...
14882 (grub_term_register_output): ... this.
14883 (grub_term_unregister): Split in ...
14884 (grub_term_unregister_input): ... this, and ...
14885 (grub_term_unregister_output): ... this.
14886 (grub_term_iterate): Split in ...
14887 (grub_term_iterate_input): ... this, and ...
14888 (grub_term_iterate_output): ... this.
14889
14890 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
14891 a check for input and one for output (and only attempt to get keys
14892 from user when input works).
14893
14894 * util/grub-probe.c (grub_term_get_current): Split in ...
14895 (grub_term_get_current_input): ... this, and ...
14896 (grub_term_get_current_output): ... this.
14897 * util/grub-fstest.c: Likewise.
14898 * util/i386/pc/grub-setup.c: Likewise.
14899 * util/grub-editenv.c: Likewise.
14900
14901 Portability adjustments:
14902
14903 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
14904 `term/i386/pc/at_keyboard.c'.
14905 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
14906 grub_keyboard_controller_init() (now handled by terminal .init).
14907 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
14908 grub_at_keyboard_init().
14909 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
14910 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
14911 at_keyboard.mod via input terminal interface).
14912 * include/grub/i386/coreboot/console.h: Convert into a stub for
14913 `<grub/i386/pc/console.h>'.
14914
14915 Migrate full terminals to new API:
14916
14917 * term/efi/console.c (grub_console_term): Split into ...
14918 (grub_console_term_input): ... this, and ...
14919 (grub_console_term_output): ... this. Update all users.
14920 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
14921 (grub_ofconsole_init): Split into ...
14922 (grub_ofconsole_init_input): ... this, and ...
14923 (grub_ofconsole_init_output): ... this.
14924 (grub_ofconsole_term): Split into ...
14925 (grub_ofconsole_term_input): ... this, and ...
14926 (grub_ofconsole_term_output): ... this. Update all users.
14927 * term/i386/pc/serial.c (grub_serial_term): Split into ...
14928 (grub_serial_term_input): ... this, and ...
14929 (grub_serial_term_output): ... this. Update all users.
14930 * term/i386/pc/console.c (grub_console_term): Split into ...
14931 (grub_console_term_input): ... this, and ...
14932 (grub_console_term_output): ... this. Update all users.
14933 (grub_console_term_input): Only enable it on PC/BIOS platform.
14934 (grub_console_init): Remove grub_keyboard_controller_init() call.
14935
14936 Migrate input terminals to new API:
14937
14938 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
14939 `i386' and `i386/pc' to enable build on x86_64 (this driver is
14940 i386-specific anyway).
14941 (grub_console_checkkey): Rename to ...
14942 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
14943 users.
14944 (grub_keyboard_controller_orig): New variable.
14945 (grub_console_getkey): Rename to ...
14946 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
14947 users.
14948 (grub_keyboard_controller_init): Static-ize. Save original
14949 controller value so that it can be restored ...
14950 (grub_keyboard_controller_fini): ... here (new function).
14951 (grub_at_keyboard_term): New structure.
14952 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
14953 functions.
14954
14955 Migrate output terminals to new API:
14956
14957 * term/i386/pc/vga.c (grub_vga_term): Change type to
14958 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
14959 members. Update all users.
14960 * term/gfxterm.c (grub_video_term): Change type to
14961 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
14962 members. Update all users.
14963 * include/grub/i386/pc/console.h (grub_console_checkkey)
14964 (grub_console_getkey): Do not export (no longer needed by gfxterm,
14965 etc).
14966
14967 Migrate `terminal' command and userland tools to new API:
14968
14969 * commands/terminal.c (grub_cmd_terminal): Split into ...
14970 (grub_cmd_terminal_input): ... this, and ...
14971 (grub_cmd_terminal_output): ... this.
14972 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
14973 `terminal_input' and `terminal_output'.
14974 * util/grub.d/00_header.in: Adjust `terminal' calls to new
14975 `terminal_input' / `terminal_output' API.
14976 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
14977 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
14978 provided ${GRUB_TERMINAL}, convert it).
14979
96e5d876 149802008-11-04 Robert Millan <rmh@aybabtu.com>
14981
14982 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
14983 for FreeBSD.
14984 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
14985
556f3775 149862008-11-03 Bean <bean123ch@gmail.com>
14987
14988 * kern/elf.c (grub_elf32_load): Revert to previous code.
14989 (grub_elf64_load): Likewise.
14990
14991 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
14992
926b9823 149932008-11-01 Robert Millan <rmh@aybabtu.com>
14994
14995 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
14996 (TARGET_CPPFLAGS): Likewise.
14997 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
14998
1432e958 149992008-11-01 Carles Pina i Estany <carles@pina.cat>
15000
15001 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
15002
dba3f844 150032008-10-29 Guillem Jover <guillem.jover@nokia.com>
de4fa71c 15004
15005 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
15006 addition of objects until the code is not going to be able to fail.
15007
dba3f844 150082008-10-29 Guillem Jover <guillem.jover@nokia.com>
b7279447 15009
15010 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
15011 (add a missing NULL check, and correct them by moving the pointer
15012 operations after the actual check).
15013
7ab28c21 150142008-10-29 Robert Millan <rmh@aybabtu.com>
15015
15016 * util/i386/pc/grub-install.in: Handle empty string as output from
15017 make_system_path_relative_to_its_root().
15018
1b7748eb 150192008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
15020
15021 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
15022 circular metadata worst case scenario. If the metadata is circular
15023 then copy the wrap in place.
15024 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
15025 project lib/format_text/layout.h
15026 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
15027
c9618ab2 150282008-10-03 Felix Zielcke <fzielcke@z-51.de>
15029
7a36edca 15030 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
c9618ab2 15031
bf981c62 150322008-10-03 Felix Zielcke <fzielcke@z-51.de>
15033
15034 * util/update-grub_lib.in: Mention filename in warning message.
15035
6d994591 150362008-09-29 Felix Zielcke <fzielcke@z-51.de>
15037
15038 * NEWS: Update for rename of update-grub to grub-mkconfig.
15039
18ade780 150402008-09-29 Felix Zielcke <fzielcke@z-51.de>
15041
15042 * util/update-grub_lib.in: Copy to ...
15043 * util/grub-mkconfig_lib.in: ... this. Update all users.
7c3ff286 15044 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
18ade780 15045 * util/update-grub.in: Rename to ...
15046 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
15047 option. Add `--output' option to allow users to specify the generated
15048 configuration file. Default to stdout.
15049 (update_grub_dir): Rename to ...
15050 (grub_mkconfig_dir): ... this.
15051 (grub_cfg): Default to an empty string.
15052 * conf/common.rmk (update-grub): Rename to ...
15053 (grub-mkconfig): ... this.
15054 (update-grub_lib): Copy to ...
15055 (grub-mkconfig_lib): ... this.
15056 (update-grub_SCRIPTS): Copy to ...
15057 (grub-mkconfig_SCRIPTS): ... this. Update all users.
15058 (update-grub_DATA): Rename to ...
15059 (grub-mkconfig_DATA): ... this.
15060
556ce6ac 150612008-09-28 Robert Millan <rmh@aybabtu.com>
15062
15063 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
15064 to `modified'. Add the real `created' field.
15065 (grub_iso9660_uuid): Use `modified' rather than `created' for
15066 constructing the UUID.
15067
150682008-09-28 Felix Zielcke <fzielcke@z-51.de>
eb079ba9 15069
15070 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
15071 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
15072
92274e85 150732008-09-28 Bean <bean123ch@gmail.com>
15074
15075 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
15076 Thanks to Christian Franke for finding this bug.
15077
add6f17a 150782008-09-25 Robert Millan <rmh@aybabtu.com>
15079
15080 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
15081 instances of grub_util_get_disk_name() (see previous commit).
15082
d2a367b8 150832008-09-25 Robert Millan <rmh@aybabtu.com>
15084
15085 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
15086 `util/i386/get_disk_name.c'.
15087 * conf/i386-efi.rmk: Likewise.
15088 * conf/x86_64-efi.rmk: Likewise.
15089 * conf/i386-coreboot.rmk: Likewise.
15090 * conf/i386-ieee1275.rmk: Likewise.
15091 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
15092 `util/ieee1275/get_disk_name.c'.
15093 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
15094 * util/ieee1275/get_disk_name.c: Remove file.
15095 * util/i386/get_disk_name.c: Remove file.
15096 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
15097 "hd%d" for device.map entries, rather than using
15098 grub_util_get_disk_name().
15099
81a06771 151002008-09-24 Carles Pina i Estany <carles@pina.cat>
b0c301f7 15101
15102 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
15103 warning.
15104 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
15105
5a004279 151062008-09-24 Carles Pina i Estany <carles@pina.cat>
15107
15108 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
15109 Changed to 0x5100.
15110 (GRUB_TERM_PPAGE): Changed to 0x4900.
15111
397093d3 151122008-09-24 Robert Millan <rmh@aybabtu.com>
15113
15114 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
15115 macros (they were i386-pc specific).
15116 * include/grub/sparc64/ieee1275/console.h: Likewise.
15117 * include/grub/efi/console.h: Likewise.
15118
a91b6c7c 151192008-09-22 Bean <bean123ch@gmail.com>
15120
15121 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
15122 resident and in attribute list.
15123
15124 * include/grub/ntfs.h (BMP_LEN): Removed.
15125
c40fd116 151262008-09-22 Bean <bean123ch@gmail.com>
15127
81a06771 15128 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
c40fd116 15129 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
15130
15131 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
15132 error occurs, as grub_disk_open will call grub_disk_close, which will
15133 call p->close (scsi).
15134
81a06771 151352008-09-21 Felix Zielcke <fzielcke@z-51.de>
eb73121d 15136
15137 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
15138 (AC_PREREQ): Bumped to 2.59.
15139 (AC_TRY_COMPILE): Replace obsolete macro with ...
15140 (AC_COMPILE_IFELSE): ... this.
15141 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
15142 (AC_LINK_IFELSE): ... this.
15143
5dc43410 151442008-09-21 Felix Zielcke <fzielcke@z-51.de>
15145
15146 * autogen.sh: Add a call to `gendistlist.sh'.
15147
9035dce4 151482008-09-19 Christian Franke <franke@computer.org>
15149
15150 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
15151 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
15152 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
15153 Export __enable_execute_stack() to modules.
15154 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
15155 New function.
15156
7fd75377 151572008-09-09 Felix Zielcke <fzielcke@z-51.de>
15158
040030b3 15159 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
15160 Sort the list.
15161
151622008-09-09 Felix Zielcke <fzielcke@z-51.de>
15163
15164 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
7fd75377 15165 #include <grub/util/hostdisk.h>.
15166
89d5ffcf 151672008-09-08 Robert Millan <rmh@aybabtu.com>
15168
15169 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
15170 segments when their filesz is zero (grub_file_read() interprets
81a06771 15171 zero-size as "read until EOF", which results in memory corruption).
89d5ffcf 15172 Use `lowest_segment' rather than 0 for calculating the current
15173 segment load address.
15174
40da438f 151752008-09-08 Robert Millan <rmh@aybabtu.com>
15176
15177 * util/hostdisk.c (open_device): Replace a grub_util_info() call
15178 with grub_dprintf("hostdisk", ...), as it was so verbose that it
15179 clobbered useful information.
15180
ddbf5556 151812008-09-08 Robert Millan <rmh@aybabtu.com>
15182
15183 * include/grub/util/biosdisk.h: Move to ...
15184 * include/grub/util/hostdisk.h: ... here. Update all users.
15185 * util/biosdisk.c: Move to ...
15186 * util/hostdisk.c: ... here. Update all users.
15187
783d0f48 151882008-09-07 Robert Millan <rmh@aybabtu.com>
15189
15190 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
15191 variables.
15192 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
15193 and length can be stored directly in the `mbi->mmap_addr' and
15194 `mbi->mmap_length' struct fields.
15195
548e2ea5 151962008-09-07 Robert Millan <rmh@aybabtu.com>
15197
15198 * conf/i386.rmk: New file. Provides declaration for building
15199 `cpuid.mod'.
15200 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
15201 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
15202 variables.
15203 Include `conf/i386.mk'.
15204 * conf/i386-efi.rmk: Likewise.
15205 * conf/x86_64-efi.rmk: Likewise.
15206 * conf/i386-coreboot.rmk: Likewise.
15207 * conf/i386-ieee1275.rmk: Likewise.
15208
0ea85a37 152092008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
15210
15211 Based on patch created by Colin D Bennett <colin@gibibit.com>.
15212 Adds optimization support for BGR based modes.
15213
15214 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
15215 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
15216 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
15217 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
15218 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
15219 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
15220 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
15221 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
15222 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
15223 (grub_video_i386_vbeblit_index_index): Likewise.
15224 (grub_video_i386_vbeblit_replace_directN): Added.
15225 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
15226 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
15227 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
15228 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
15229 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
15230 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
81a06771 15231 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
0ea85a37 15232 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
15233 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
15234 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
15235 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
15236 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
15237 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
15238
15239 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
15240 (grub_video_i386_vbefill_R8G8B8): Likewise.
15241 (grub_video_i386_vbefill_index): Likewise.
15242 (grub_video_i386_vbefill_direct32): Added.
15243 (grub_video_i386_vbefill_direct24): Likewise.
15244 (grub_video_i386_vbefill_direct16): Likewise.
15245 (grub_video_i386_vbefill_direct8): Likewise.
15246
81a06771 15247 * include/grub/video.h (grub_video_blit_format): Removed
0ea85a37 15248 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
15249 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
15250 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
15251 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
15252 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
81a06771 15253
0ea85a37 15254 * video/video.c (grub_video_get_blit_format): Updated to use new
15255 blit formats. Added handling for 16 bit color modes.
81a06771 15256
15257 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
0ea85a37 15258 fillers.
15259 (common_blitter): Updated to use new blitters.
15260
15261 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
15262 Removed.
15263 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
15264 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
15265 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
15266 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
15267 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
15268 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
15269 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
15270 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
15271 (grub_video_i386_vbeblit_index_index): Likewise.
15272 (grub_video_i386_vbeblit_replace_directN): Added.
15273 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
15274 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
15275 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
15276 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
15277 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
15278 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
15279 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
15280 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
15281 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
15282 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
15283 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
15284 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
15285 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
81a06771 15286
0ea85a37 15287 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
15288 (grub_video_i386_vbefill_R8G8B8): Likewise.
15289 (grub_video_i386_vbefill_index): Likewise.
15290 (grub_video_i386_vbefill_direct32): Added.
15291 (grub_video_i386_vbefill_direct24): Likewise.
15292 (grub_video_i386_vbefill_direct16): Likewise.
15293 (grub_video_i386_vbefill_direct8): Likewise.
81a06771 15294
0ea85a37 15295 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
15296 types.
81a06771 15297
0ea85a37 15298 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
15299 types.
81a06771 15300
0ea85a37 15301 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
15302 blitter types.
81a06771 15303
0ea85a37 15304 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
15305 types.
15306
e8a83df6 153072008-09-06 Felix Zielcke <fzielcke@z-51.de>
15308
15309 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
15310 RAID level 1.
15311
6bcd8ee5 153122008-09-06 Felix Zielcke <fzielcke@z-51.de>
c375ae58 15313
6bcd8ee5 15314 * fs/iso9660.c (grub_iso9660_date): New structure.
15315 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
15316 (grub_iso9660_uuid): New function.
c375ae58 15317
59261157 153182008-09-05 Bean <bean123ch@gmail.com>
15319
15320 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
15321
15322 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
15323 insensitive bit for names in Win32 and Win32 & DOS namespace.
15324
15325 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
15326
15327 * include/grub/types.h (LONG_MAX): Likewise.
15328
58b6645a 153292008-09-04 Felix Zielcke <fzielcke@z-51.de>
15330
4ee55921 15331 * util/getroot.c: Include <config.h>.
15332 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
15333 add support for /dev/md/N devices and handle LVM double dash escaping.
15334
153352008-09-04 Felix Zielcke <fzielcke@z-51.de>
15336
15337 * config.guess: Update to latest version from config git.
15338 * config.sub: Likewise.
58b6645a 15339
9124f65d 153402008-09-03 Robert Millan <rmh@aybabtu.com>
15341
15342 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
15343 `disk->total_sectors'.
15344
81a06771 153452008-09-01 Colin D Bennett <colin@gibibit.com>
a0224a4e 15346
15347 * include/grub/normal.h: Fixed incorrect comment for
15348 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
15349
81a06771 153502008-09-01 Colin D Bennett <colin@gibibit.com>
f0619958 15351
15352 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
15353 values with defines.
15354
15355 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
15356 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
15357 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
15358 (GRUB_VBE_MODEATTR_COLOR): Likewise.
15359 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
15360 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
15361 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
15362 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
15363 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
15364 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
15365 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
15366 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
15367 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
15368 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
15369 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
15370 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
15371 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
15372 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
15373 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
15374
93d5cbf8 153752008-08-31 Robert Millan <rmh@aybabtu.com>
15376
15377 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
15378 declaration.
15379 (grub_multiboot): Fix a few warnings.
15380
21751d50 153812008-08-31 Robert Millan <rmh@aybabtu.com>
15382
15383 * loader/i386/pc/multiboot.c: Update comment not to say that
15384 boot_device support is unimplemented.
15385
e27a75c5 153862008-08-31 Robert Millan <rmh@aybabtu.com>
15387
15388 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
15389 or memory map support are unimplemented.
15390
81a06771 153912008-08-31 Colin D Bennett <colin@gibibit.com>
64d2d53c 15392
15393 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
15394
81a06771 153952008-08-31 Colin D Bennett <colin@gibibit.com>
c08a6c18 15396
15397 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
15398 total video memory in 'vbeinfo' output; show color format details for
15399 each video mode.
15400
7c5d8d95 154012008-08-30 Pavel Roskin <proski@gnu.org>
15402
15403 * util/genmoddep.c: Remove for real this time.
15404 * DISTLIST: Remove util/genmoddep.c.
15405
4cebd25a 154062008-08-30 Robert Millan <rmh@aybabtu.com>
15407
15408 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
15409 as required by Multiboot spec (it was already 4-byte aligned, but
15410 only by chance).
15411
b497a269 154122008-08-29 Pavel Roskin <proski@gnu.org>
15413
e3925185 15414 * kern/powerpc/ieee1275/crt0.S: Rename to ...
15415 * kern/powerpc/ieee1275/startup.S: ... this.
15416 * conf/powerpc-ieee1275.rmk: Adjust for the above.
15417 * DISTLIST: Likewise.
15418
b497a269 15419 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
15420 grub/cpu/kernel.h. Add start label for consistency with other
15421 platforms. Add grub_prefix immediately after start. Add jump
15422 to the code after grub_prefix.
15423 * include/grub/powerpc/kernel.h: Provide valid values for
15424 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
15425
6e5a42fe 154262008-08-29 Bean <bean123ch@gmail.com>
15427
15428 * configure.ac: Change host_os to cygwin for mingw.
15429 (asprintf): New check for function.
15430
15431 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
15432 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
15433
15434 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
81a06771 15435 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
6e5a42fe 15436 sync, sleep and grub_util_get_disk_size for mingw.
15437
15438 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
15439 to get size in mingw.
15440 (open_device): Use flag O_BINARY if it's defined.
15441 (find_root_device): Add dummy code for mingw.
15442
15443 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
15444 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
15445 (get_scsi_disk_name): Return 0 for mingw.
15446
15447 * util/hostfs.c: #include <grub/util/misc.h>.
15448 (grub_hostfs_open): Use "rb" flag to open file, use
15449 grub_util_get_disk_size to get disk size for mingw.
15450
15451 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
15452 (asprintf): New function if HAVE_ASPRINTF is not set.
15453 (sync): New function for mingw.
15454 (sleep): Likewise.
15455 (grub_util_get_disk_size): Likewise.
15456
ab3f2673 154572008-08-28 Pavel Roskin <proski@gnu.org>
15458
15459 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
15460 kern/time.c.
15461
1c282483 154622008-08-28 Robert Millan <rmh@aybabtu.com>
15463
15464 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
15465
678e849c 154662008-08-28 Robert Millan <rmh@aybabtu.com>
15467
15468 Change find_grub_drive() syntax so it doesn't prevent it from
15469 detecting NULL names as errors.
15470
15471 * util/biosdisk.c (find_grub_drive): Move free slot search code
15472 from here ...
15473 (find_free_slot): ... to here.
15474 (read_device_map): Use find_free_slot() to search for free slots.
15475
965c75ca 154762008-08-27 Marco Gerards <marco@gnu.org>
15477
15478 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
15479 (scsi_mod_SOURCES): New variable.
15480 (scsi_mod_CFLAGS): Likewise
15481 (scsi_mod_LDFLAGS): Likewise.
15482
15483 * disk/scsi.c: New file.
15484
15485 * include/grub/scsi.h: Likewise.
15486
15487 * include/grub/scsicmd.h: Likewise.
15488
15489 * disk/ata.c: Include <grub/scsi.h>.
15490 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
15491 instead.
15492 (grub_ata_iterate): Skip ATAPI devices.
15493 (grub_ata_open): Only handle ATAPI devices.
15494 (struct grub_atapi_read): Removed.
15495 (grub_atapi_readsector): Likewise.
15496 (grub_ata_read): No longer handle ATAPI devices.
15497 (grub_ata_write): Likewise.
15498 (grub_atapi_iterate): New function.
15499 (grub_atapi_read): Likewise.
15500 (grub_atapi_write): Likewise.
15501 (grub_atapi_open): Likewise.
15502 (grub_atapi_close): Likewise.
15503 (grub_atapi_dev): New variable.
15504 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
15505 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
15506
15507 * include/grub/disk.h (enum grub_disk_dev_id): Add
15508 `GRUB_DISK_DEVICE_SCSI_ID'.
15509
c07ae501 155102008-08-26 Robert Millan <rmh@aybabtu.com>
15511
15512 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
15513 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
15514 descriptive.
15515
5ed20adc 155162008-08-23 Bean <bean123ch@gmail.com>
15517
15518 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
15519 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
15520 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
15521 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
15522 dm_nv.mod.
15523 (raid5rec_mod_SOURCES): New macro.
15524 (raid5rec_mod_CFLAGS): Likewise.
15525 (raid5rec_mod_LDFLAGS): Likewise.
15526 (raid6rec_mod_SOURCES): Likewise.
15527 (raid6rec_mod_CFLAGS): Likewise.
15528 (raid6rec_mod_LDFLAGS): Likewise.
15529 (mdraid_mod_SOURCES): Likewise.
15530 (mdraid_mod_CFLAGS): Likewise.
15531 (mdraid_mod_LDFLAGS): Likewise.
15532 (dm_nv_mod_SOURCES): Likewise.
15533 (dm_nv_mod_CFLAGS): Likewise.
15534 (dm_nv_mod_LDFLAGS): Likewise.
15535
15536 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
15537 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
15538 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
15539
15540 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
15541 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
15542
15543 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
15544
15545 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
15546
15547 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
15548
15549 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
15550
15551 * disk/raid5_recover.c: New file.
15552
15553 * disk/raid6_recover.c: Likewise.
15554
15555 * disk/mdraid_linux.c: Likewise.
15556
15557 * disk/dmraid_nvidia.c: Likewise.
15558
15559 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
15560 ULONG_MAX.
15561
15562 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
15563 calculate the size of raid device.
15564 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
15565 different layout of raid5.
15566 (grub_raid_scan_device): Remove code specific to mdraid.
15567 (grub_raid_list): New variable.
15568 (free_array): New function.
15569 (grub_raid_register): Likewise.
15570 (grub_raid_unregister): Likewise.
15571 (grub_raid_rescan): Likewise.
15572 (GRUB_MOD_INIT): Don't iterate device here.
15573 (GRUB_MOD_FINI): Use free_array to release resource.
15574
15575 * include/grub/raid.h: Remove macro and structure specific to mdraid.
15576 (grub_raid5_recover_func_t): New function variable type.
15577 (grub_raid6_recover_func_t): Likewise.
15578 (grub_raid5_recover_func): New variable.
15579 (grub_raid6_recover_func): Likewise.
15580 (grub_raid_register): New function.
15581 (grub_raid_unregister): Likewise.
15582 (grub_raid_rescan): Likewise.
15583 (grub_raid_block_xor): Likewise.
15584
15585 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
15586 (CMD_CRC): New macro.
15587 (part): Removed.
15588 (read_file): Handle device as well as file.
15589 (cmd_crc): New function.
15590 (fstest): Handle multiple disks.
15591 (options): Remove part, raw and long, add root and diskcount.
15592 (usage): Add crc, remove -p, -r, -l, add -r and -c.
dba3f844 15593 (main): Find the first non option entry and ignore subsequent options,
5ed20adc 15594 add handling for the new options, support multiple disks.
15595
15596 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
15597
29c18915 155982008-08-23 Bean <bean123ch@gmail.com>
15599
15600 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
15601
15602 * genfslist.sh: Ignore kernel.mod.
15603
15604 * genpartmaplist.sh: Likewise.
15605
8415f261 156062008-08-23 Robert Millan <rmh@aybabtu.com>
15607
15608 * util/getroot.c (find_root_device): Skip anything that starts with
15609 a dot, not just directories. This avoids things like /dev/.tmp.md0.
15610
d5a7dc5b 156112008-08-22 Felix Zielcke <fzielcke@z-51.de>
81a06771 15612
d5a7dc5b 15613 * util/update-grub.in (GRUB_GFXMODE): Export variable.
15614 * util/grub.d/00_header.in: Allow the administrator to change default
15615 gfxmode via ${GRUB_GFXMODE}.
15616
380cfbb4 156172008-08-21 Felix Zielcke <fzielcke@z-51.de>
15618
15619 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
15620
c9baafe7 156212008-08-21 Robert Millan <rmh@aybabtu.com>
15622
15623 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
15624 loader.
15625 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
15626 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
15627
e290bef2 156282008-08-20 Carles Pina i Estany <carles@pina.cat>
15629
15630 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
15631 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
15632
f9dbfc96 156332008-08-19 Robert Millan <rmh@aybabtu.com>
15634
15635 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
15636 (struct grub_virtual_screen): Remove `cursor_color'.
15637 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
15638 initialization.
15639 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
15640
dd6bd6ab 156412008-08-18 Robert Millan <rmh@aybabtu.com>
15642
15643 Unify (identical) linux_normal.c files.
15644 * loader/i386/efi/linux_normal.c: Move from here ...
15645 * loader/linux_normal.c: ... to here. Update all users.
15646 * loader/i386/pc/linux_normal.c: Delete. Update all users.
15647 * loader/i386/ieee1275/linux_normal.c: Likewise.
15648
7f42f83e 156492008-08-18 Robert Millan <rmh@aybabtu.com>
15650
15651 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
15652 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
15653 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
15654 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
15655 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
15656 New macros.
15657 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
15658 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
15659 (GRUB_LINUX_CL_END_OFFSET): ... to here.
15660 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
15661 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
15662 (GRUB_EFI_CL_END_OFFSET): Rename to ...
15663 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
15664 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
15665 Initialize `params->video_cursor_x' and `params->video_cursor_y'
15666 portably using grub_getxy().
15667 Replace `-EFI' with `-bzImage' in boot message.
15668
38487ddb 156692008-08-17 Robert Millan <rmh@aybabtu.com>
15670
15671 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
15672
deceb3ec 156732008-08-17 Robert Millan <rmh@aybabtu.com>
15674
15675 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
15676
15677 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
15678 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
15679 (grub_machine_mmap_iterate): New function declaration.
15680 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
15681 structure.
15682 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
15683 macros.
15684
15685 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
15686 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
15687 Move e820 parsing from here ...
15688 * kern/i386/pc/mmap.c: New file.
15689 (grub_machine_mmap_iterate): ... to here.
15690
15691 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
15692 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
15693 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
15694 (grub_available_iterate): Redeclare to return `void', and redeclare
15695 its hook to use grub_uint64_t as addr and size parameters, and rename
15696 to ...
15697 (grub_machine_mmap_iterate): ... this. Update all users.
15698
15699 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
15700 to make it more readable. Rename to ...
15701 (grub_machine_mmap_iterate): ... this.
15702
15703 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
15704 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
15705 (grub_multiboot): Allocate an extra region after the payload, and fill
15706 it with a Multiboot memory map. Adjust a.out loader to calculate size
15707 with the extra space.
15708 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
15709 with the extra space.
15710
f8aa0f43 157112008-08-17 Carles Pina i Estany <carles@pina.cat>
15712
9807deb9 15713 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
f8aa0f43 15714
605f5bb6 157152008-08-17 Felix Zielcke <fzielcke@z-51.de>
15716
15717 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
15718 mdate-sh to the list `find' searches for.
15719 * DISTLIST: Regenerated.
15720
210db6c6 157212008-08-16 Felix Zielcke <fzielcke@z-51.de>
15722
15723 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
15724 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
48cdbfd4 15725 genmoddep.awk, gensymlist.sh.in.
15726 (DISTDIRS): Add bus, docs, hook, lib.
210db6c6 15727 * DISTLIST: Regenerated.
48cdbfd4 15728 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
210db6c6 15729
1082b929 157302008-08-16 Robert Millan <rmh@aybabtu.com>
15731
15732 * disk/raid.c (grub_raid_init): Handle/report errors set by
15733 grub_device_iterate().
15734 * disk/lvm.c (grub_lvm_init): Likewise.
15735
42ce5170 157362008-08-15 Bean <bean123ch@gmail.com>
15737
15738 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
15739 and datehook.mod.
15740 (datetime_mod_SOURCES): New macro.
15741 (datetime_mod_CFLAGS): Likewise.
15742 (datetime_mod_LDFLAGS): Likewise.
15743 (date_mod_SOURCES): Likewise.
15744 (date_mod_CFLAGS): Likewise.
15745 (date_mod_LDFLAGS): Likewise.
15746 (datehook_mod_SOURCES): Likewise.
15747 (datehook_mod_CFLAGS): Likewise.
15748 (datehook_mod_LDFLAGS): Likewise.
15749
15750 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
15751 and datehook.mod.
15752 (datetime_mod_SOURCES): New macro.
15753 (datetime_mod_CFLAGS): Likewise.
15754 (datetime_mod_LDFLAGS): Likewise.
15755 (date_mod_SOURCES): Likewise.
15756 (date_mod_CFLAGS): Likewise.
15757 (date_mod_LDFLAGS): Likewise.
15758 (datehook_mod_SOURCES): Likewise.
15759 (datehook_mod_CFLAGS): Likewise.
15760 (datehook_mod_LDFLAGS): Likewise.
15761
15762 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
15763 and datehook.mod.
15764 (datetime_mod_SOURCES): New macro.
15765 (datetime_mod_CFLAGS): Likewise.
15766 (datetime_mod_LDFLAGS): Likewise.
15767 (date_mod_SOURCES): Likewise.
15768 (date_mod_CFLAGS): Likewise.
15769 (date_mod_LDFLAGS): Likewise.
15770 (datehook_mod_SOURCES): Likewise.
15771 (datehook_mod_CFLAGS): Likewise.
15772 (datehook_mod_LDFLAGS): Likewise.
15773
15774 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
15775 and datehook.mod.
15776 (datetime_mod_SOURCES): New macro.
15777 (datetime_mod_CFLAGS): Likewise.
15778 (datetime_mod_LDFLAGS): Likewise.
15779 (date_mod_SOURCES): Likewise.
15780 (date_mod_CFLAGS): Likewise.
15781 (date_mod_LDFLAGS): Likewise.
15782 (datehook_mod_SOURCES): Likewise.
15783 (datehook_mod_CFLAGS): Likewise.
15784 (datehook_mod_LDFLAGS): Likewise.
15785
15786 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
15787 and datehook.mod.
15788 (datetime_mod_SOURCES): New macro.
15789 (datetime_mod_CFLAGS): Likewise.
15790 (datetime_mod_LDFLAGS): Likewise.
15791 (date_mod_SOURCES): Likewise.
15792 (date_mod_CFLAGS): Likewise.
15793 (date_mod_LDFLAGS): Likewise.
15794 (datehook_mod_SOURCES): Likewise.
15795 (datehook_mod_CFLAGS): Likewise.
15796 (datehook_mod_LDFLAGS): Likewise.
15797
15798 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
15799
15800 * commands/date.c: New file.
15801
15802 * hook/datehook.c: Likewise.
15803
15804 * include/grub/lib/datetime.h: Likewise.
15805
15806 * include/grub/i386/cmos.h: Likewise.
15807
15808 * lib/datetime.c: Likewise.
15809
15810 * lib/i386/datetime.c: Likewise.
15811
15812 * lib/efi/datetime.c: Likewise.
15813
0e9242da 158142008-08-14 Robert Millan <rmh@aybabtu.com>
15815
15816 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
15817 (grub_mkelfimage_SOURCES): New variable.
15818 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
15819
15820 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
15821 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
15822 * conf/powerpc-ieee1275.rmk: Likewise.
15823 * conf/i386-ieee1275.rmk: Likewise.
15824
15825 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
15826 * kern/i386/coreboot/init.c: Likewise.
15827
15828 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
15829 with `<grub/cpu/kernel.h>'.
15830 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
15831 to ...
15832 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
15833 * kern/i386/coreboot/startup.S: Likewise.
15834
15835 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
15836 (GRUB_MOD_GAP): Remove.
15837 * include/grub/powerpc/kernel.h: New file.
15838 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
15839 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
15840 * include/grub/i386/kernel.h: New file.
15841 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
15842 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
15843 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
15844
15845 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
15846 `grub-mkelfimage'.
15847 Use --directory when invoking grub_mkimage.
15848
15849 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
15850 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
15851 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
15852 and GRUB_KERNEL_CPU_PREFIX.
15853
b86408f8 158542008-08-14 Felix Zielcke <fzielcke@z-51.de>
15855
d5e619ca 15856 * include/grub/err.h (grub_err_printf): New function prototype.
15857 * util/misc.c (grub_err_printf): New function.
15858 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
15859 grub_printf.
15860 * kern/err.c (grub_print_error): Use grub_err_printf.
b86408f8 15861
7161f0e0 158622008-08-13 Robert Millan <rmh@aybabtu.com>
15863
15864 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
15865
a1967522 158662008-08-13 Robert Millan <rmh@aybabtu.com>
15867
15868 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
15869 boot entry.
15870
371458b5 158712008-08-12 Robert Millan <rmh@aybabtu.com>
15872
15873 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
15874 of the relocation code from here ...
15875 (grub_multiboot): ... to here.
15876 (forward_relocator, backward_relocator): Move from here ...
15877 * kern/i386/loader.S (grub_multiboot_forward_relocator)
15878 (grub_multiboot_backward_relocator): ... to here.
15879 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
15880 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
15881 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
15882 (grub_multiboot_forward_relocator_end)
15883 (grub_multiboot_backward_relocator)
15884 (grub_multiboot_backward_relocator_end): New variables.
15885
05f9452b 158862008-08-12 Bean <bean123ch@gmail.com>
15887
15888 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
15889
20024ab0 158902008-08-11 Robert Millan <rmh@aybabtu.com>
15891
15892 * kern/i386/linuxbios/startup.S: Move from here ...
15893 * kern/i386/coreboot/startup.S: ... to here.
15894
15895 * kern/i386/linuxbios/init.c: Move from here ...
15896 * kern/i386/coreboot/init.c: ... to here.
15897
15898 * kern/i386/linuxbios/table.c: Move from here ...
15899 * kern/i386/coreboot/mmap.c: ... to here.
15900
15901 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
15902
e352e9cd 159032008-08-11 Robert Millan <rmh@aybabtu.com>
15904
15905 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
15906 errors. Leave it to the upper layer to handle them.
15907
2d05bc6a 159082008-08-09 Christian Franke <franke@computer.org>
15909
15910 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
15911 * conf/common.rmk: Install `grub-pe2elf' only if requested.
15912 Install `grub.d/10_windows' only on Cygwin.
15913 * configure.ac: Add subst of `target_os'.
15914 Check `target_os' also before setting TARGET_OBJ2ELF.
15915 Add `--enable-grub-pe2elf'.
15916
042bd419 159172008-08-08 Robert Millan <rmh@aybabtu.com>
15918
15919 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
15920 (grub_last_time): Change type to grub_uint64_t.
15921 (grub_disk_open): Migrate code from to using grub_get_time_ms().
15922 (grub_disk_close): Likewise.
15923
15924 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
15925 (run_menu): Migrate code from to using grub_get_time_ms().
15926
15927 * util/misc.c (grub_get_time_ms): New function.
15928
7f280db5 159292008-08-08 Marco Gerards <marco@gnu.org>
15930
15931 * disk/ata.c (grub_ata_regget): Change return type to
15932 `grub_uint8_t'.
15933 (grub_ata_regget2): Likewise.
15934 (grub_ata_wait_status): New function.
15935 (grub_ata_wait_busy): Removed function, updated all users to use
15936 `grub_ata_wait_status'.
15937 (grub_ata_wait_drq): Likewise.
15938 (grub_ata_cmd): New function.
15939 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
15940 error handling.
15941 (grub_ata_pio_write): Add error handling.
15942 (grub_atapi_identify): Likewise.
15943 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
15944 handling.
15945 (grub_ata_identify): Use `grub_ata_cmd' and improve error
15946 handling. Actually use the detected registers. Reorder the
15947 detection logic such that it is easier to read.
15948 (grub_ata_pciinit): Do not assign the same ID to each controller.
15949 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
15950 handling.
15951 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
15952
15953 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
15954
1fbc5e66 159552008-08-08 Marco Gerards <marco@gnu.org>
15956
15957 * NEWS: Update.
15958
819ce6c0 159592008-08-07 Bean <bean123ch@gmail.com>
15960
15961 * include/grub/x86_64/pci.h: New file.
15962
5c41d44d 159632008-08-07 Christian Franke <franke@computer.org>
15964
15965 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
15966 (TIMER2_GATE): Likewise.
15967 (grub_pit_wait): Add enable/disable of the timer2 gate
15968 bit of port 0x61. This fixes a possible infinite loop.
15969
5ebc275d 159702008-08-07 Bean <bean123ch@gmail.com>
15971
15972 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
15973 kern/i386/tsc.c and kern/i386/pit.c.
15974
15975 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
15976 x86_64 platform.
15977
15978 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
15979 <grub/i386/tsc.h>.
15980
15981 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
15982
e383b3d0 159832008-08-07 Bean <bean123ch@gmail.com>
15984
15985 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
15986
15987 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
15988
15989 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
15990 multiple inclusion. Add #include <grub/types.h>.
15991
1cbb58ac 159922008-08-06 Christian Franke <franke@computer.org>
15993
15994 * conf/common.rmk: Build and install `10_windows'.
15995 * util/grub.d/10_windows.in: New script.
15996
337f5a1e 159972008-08-06 Pavel Roskin <proski@gnu.org>
15998
15999 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
16000
057bc4ac 160012008-08-06 Robert Millan <rmh@aybabtu.com>
16002
16003 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
16004 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
16005
2b99f123 160062008-08-06 Bean <bean123ch@gmail.com>
16007
16008 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
16009 (grub_pxefs_fs_int): Remove dummy definition.
16010 (grub_pxefs_open): Use data->block_size to store the current block
16011 size setting.
16012 (grub_pxefs_read): Use block size stored in data->block_size. As the
16013 value of grub_pxe_blksize can be changed after the file is opened.
16014
9f0234cb 160152008-08-06 Bean <bean123ch@gmail.com>
16016
16017 * fs/i386/pc/pxe.c (curr_file): new variable.
16018 (grub_pxefs_open): Simply the handling of pxe file system. Don't
16019 require the dummy internal file system anymore.
16020 (grub_pxefs_read): Removed.
16021 (grub_pxefs_close): Likewise.
16022 (grub_pxefs_fs_int): Likewise.
16023 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
16024 connection when we switch file.
16025 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
16026
a55d42e0 160272008-08-06 Robert Millan <rmh@aybabtu.com>
16028
16029 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
16030 `halt.mod'.
16031 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
16032 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
16033
16034 * kern/i386/halt.c: New file.
16035 * kern/i386/reboot.c: Likewise.
16036 * include/grub/i386/reboot.h: Likewise.
16037 * include/grub/i386/halt.h: Likewise.
16038
16039 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
16040 Include `<grub/cpu/halt.h>'.
16041 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
16042 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
16043
16044 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
16045 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
16046 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
16047 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
16048 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
16049 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
16050 from here ...
16051 * include/grub/i386/at_keyboard.h: ... to here.
16052
24371d26 160532008-08-05 Robert Millan <rmh@aybabtu.com>
16054
16055 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
16056 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
16057 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
16058 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
16059 `kern/generic/millisleep.c'.
16060
16061 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
16062 instead of grub_get_rtc().
16063 (grub_tsc_init): Initialize `tsc_boot_time'.
16064
16065 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
16066 (grub_machine_init): Use grub_tsc_init() rather than
16067 installing an RTC-based handler via grub_install_get_time_ms().
16068
16069 * kern/i386/pit.c: New file.
16070 * include/grub/i386/pit.h: Likewise.
16071
9e7007b3 160722008-08-05 Bean <bean123ch@gmail.com>
16073
16074 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
16075
16076 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
16077 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
16078 (pxe_mod_SOURCES): New macro.
16079 (pxe_mod_CFLAGS): Likewise.
16080 (pxe_mod_LDFLAGS): Likewise.
16081 (pxecmd_mod_SOURCES): Likewise.
16082 (pxecmd_mod_CFLAGS): Likewise.
16083 (pxecmd_mod_LDFLAGS): Likewise.
16084
16085 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
16086 (grub_pxe_call): Likewise.
16087
16088 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
16089
16090 * commands/i386/pc/pxecmd.c: New file.
16091
9f0234cb 16092 * fs/i386/pc/pxe.c: Likewise.
9e7007b3 16093
16094 * include/grub/i386/pc/pxe.h: Likewise.
16095
6977d49f 160962008-08-05 Bean <bean123ch@gmail.com>
16097
16098 * util/console.c (grub_console_cur_color): New variable.
16099 (grub_console_standard_color): Likewise.
16100 (grub_console_normal_color): Likewise.
16101 (grub_console_highlight_color): Likewise.
16102 (color_map): Likewise.
16103 (use_color): Likewise.
16104 (NUM_COLORS): New macro.
16105 (grub_ncurses_setcolorstate): Handle color properly.
16106 (grub_ncurses_setcolor): Don't change color here, just remember the
16107 settings, color will be set in grub_ncurses_setcolorstate.
16108 (grub_ncurses_getcolor): New function.
16109 (grub_ncurses_init): Initialize color pairs.
16110 (grub_ncurses_term): New member grub_ncurses_getcolor.
16111
9c2ff3ee 161122008-08-05 Colin D Bennett <colin@gibibit.com>
337f5a1e 16113
9c2ff3ee 16114 High resolution timer support. Implemented for x86 CPUs using TSC.
16115 Extracted generic grub_millisleep() so it's linked in only as needed.
16116 This requires a Pentium compatible CPU; if the RDTSC instruction is
16117 not supported, then it falls back on the generic grub_get_time_ms()
16118 implementation that uses the machine's RTC.
16119
16120 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
16121 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
16122 `kern/generic/millisleep.c'.
16123
16124 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
16125 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
16126
16127 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
16128 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
16129
16130 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
16131
16132 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
16133 `kern/generic/millisleep.c'.
16134
16135 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
16136
16137 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
16138
16139 * kern/generic/rtc_get_time_ms.c: New file.
16140
16141 * kern/generic/millisleep.c: New file.
337f5a1e 16142
9c2ff3ee 16143 * kern/misc.c: Don't include
16144 <kern/time.h> anymore.
16145 (grub_millisleep_generic): Removed.
16146
16147 * commands/sleep.c (grub_interruptible_millisleep): Uses
16148 grub_get_time_ms() instead of grub_get_rtc().
16149
16150 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
16151 function.
16152 (grub_cpu_is_cpuid_supported): New inline function.
16153 (grub_cpu_is_tsc_supported): New inline function.
16154 (grub_tsc_init): New function prototype.
16155 (grub_tsc_get_time_ms): New function prototype.
16156
16157 * kern/i386/tsc.c (grub_get_time_ms): New file.
16158
16159 * include/grub/time.h: Include <grub/types.h.
16160 (grub_millisleep_generic): Removed.
16161 (grub_get_time_ms): New prototype.
16162 (grub_install_get_time_ms): New prototype.
16163 (grub_rtc_get_time_ms): New prototype.
16164
16165 * kern/time.c (grub_get_time_ms): New function.
16166 (grub_install_get_time_ms): New function.
16167
16168 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
16169 <grub/time.h> anymore.
16170 (grub_millisleep): Removed.
16171 (grub_machine_init): Call grub_tsc_init.
16172
16173 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
16174 get_time_ms() implementation.
16175
16176 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
16177 (ieee1275_get_time_ms): New function.
16178 (grub_machine_init): Install get_time_ms() implementation.
16179
16180 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
16181 (grub_machine_init): Call grub_tsc_init().
16182 (grub_millisleep): Removed.
bf06a93f 16183
9c2ff3ee 16184 * kern/ieee1275/init.c (grub_millisleep): Removed.
16185 (grub_machine_init): Install ieee1275_get_time_ms()
16186 implementation.
16187 (ieee1275_get_time_ms): New function.
16188 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
16189 real work.
16190
9ec92aaf 161912008-08-05 Marco Gerards <marco@gnu.org>
16192
16193 * disk/ata.c: Include <grub/pci.h>.
16194 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
16195 (grub_ata_initialize): Rewritten.
16196 (grub_ata_device_initialize): New function.
16197
8d23f507 161982008-08-04 Pavel Roskin <proski@gnu.org>
16199
16200 * kern/main.c: Include grub/mm.h.
16201
5e15ee3d 162022008-08-04 Robert Millan <rmh@aybabtu.com>
16203
16204 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
16205 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
16206 corruption problem).
16207
a9053f8f 162082008-08-04 Robert Millan <rmh@aybabtu.com>
16209
16210 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
16211 warnings introduced in my last commit.
16212
dd19c7d7 162132008-08-03 Robert Millan <rmh@aybabtu.com>
16214
16215 Make PCI available on all i386 architectures.
16216
16217 * include/grub/i386/pc/pci.h: Move from here ...
16218 * include/grub/i386/pci.h: ... to here.
16219
16220 * include/grub/i386/pc/pci.h: Remove.
16221 * include/grub/i386/efi/pci.h: Remove.
16222 * include/grub/x86_64/efi/pci.h: Remove.
16223
16224 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
16225 `<grub/cpu/pci.h>'.
16226
16227 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
16228 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
16229 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
16230
16231 * conf/i386-ieee1275.rmk: Likewise.
16232
e14a6184 162332008-08-03 Robert Millan <rmh@aybabtu.com>
16234
16235 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
16236 (grub_console_setcursor): Make it possible to set cursor off.
16237
52768e37 162382008-08-03 Robert Millan <rmh@aybabtu.com>
16239
16240 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
16241 of modules instead of assuming which platform provides what.
16242 * util/update-grub.in: Likewise.
16243
2d52f57f 162442008-08-03 Robert Millan <rmh@aybabtu.com>
16245
16246 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
16247 instead of `grub_install_dos_part' to determine whether a drive needs
16248 to be prepended to prefix (`grub_install_dos_part' is not reliable,
825aa57a 16249 because it can be overridden when loading GRUB via Multiboot).
2d52f57f 16250
2a5cd121 162512008-08-02 Robert Millan <rmh@aybabtu.com>
16252
16253 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
16254
93808428 162552008-08-02 Robert Millan <rmh@aybabtu.com>
16256
16257 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
16258 of informational grub_dprintf() calls.
16259
3bd0a12a 162602008-08-02 Robert Millan <rmh@aybabtu.com>
16261
16262 * disk/memdisk.c (memdisk_size): Don't initialize.
16263 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
16264
16265 * include/grub/i386/pc/kernel.h
16266 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
16267 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
16268 (grub_memdisk_image_size, grub_arch_memdisk_addr)
16269 (grub_arch_memdisk_size): Remove.
16270
16271 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
16272 field (was only used to transfer a constant). Add `type' field to
16273 support multiple module types.
16274 (grub_module_iterate): New function.
16275
16276 * kern/device.c (grub_device_open): Do not hide error messages
16277 when grub_disk_open() fails. Use grub_print_error() instead.
16278
16279 * kern/i386/pc/init.c (grub_arch_modules_addr)
16280 (grub_arch_memdisk_size): Remove functions.
16281 (grub_arch_modules_addr): Return the module address in high memory
16282 (now that it isn't copied anymore).
16283
16284 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
16285 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
16286 decompression routine (grub_total_module_size already includes that
16287 now). Don't copy modules back to low memory.
16288
16289 * kern/main.c: Include `<grub/mm.h>'.
16290 (grub_load_modules): Split out (and use) ...
16291 (grub_module_iterate): ... this function, which iterates through
16292 module objects and runs a hook.
16293 Comment out grub_mm_init_region() call, as it would cause non-ELF
16294 modules to be overwritten.
16295
16296 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
16297 the memdisk image in its own region, make it part of the module list.
16298 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
16299 (main): Parse --memdisk|-m option, and pass user-provided path as
16300 parameter to generate_image().
16301 (add_segments): Pass `memdisk_path' down to load_modules().
16302 (load_modules): Embed memdisk image in module section when requested.
16303 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
16304 `header.type' instead of `header.offset'.
16305
16306 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
16307 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
16308 (memdisk_mod_LDFLAGS): New variables.
16309 * conf/i386-coreboot.rmk: Likewise.
16310 * conf/i386-ieee1275.rmk: Likewise.
16311
a927cc73 163122008-08-02 Robert Millan <rmh@aybabtu.com>
16313
16314 * loader/i386/pc/multiboot.c (playground, forward_relocator)
16315 (backward_relocator): New variables. Used to allocate and relocate
16316 the payload, respectively.
16317 (grub_multiboot_load_elf32): Load into heap instead of requested
825aa57a 16318 address, install the appropriate relocator code in each bound of
a927cc73 16319 the payload, and set the entry point such that
16320 grub_multiboot_real_boot() will jump to one of them.
16321
16322 * kern/i386/loader.S (grub_multiboot_payload_size)
16323 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
16324 (grub_multiboot_payload_entry_offset): New variables.
16325 (grub_multiboot_real_boot): Set cpu context to what the relocator
16326 expects, and jump to the relocator instead of the payload.
16327
16328 * include/grub/i386/loader.h (grub_multiboot_payload_size)
16329 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
16330 (grub_multiboot_payload_entry_offset): Export.
16331
b15d8a0c 163322008-08-01 Bean <bean123ch@gmail.com>
16333
16334 * normal/menu_entry.c (editor_getline): Don't return the original
16335 string as result, as it will be released by lexer once it has done
16336 using it.
16337
cdfb3d22 163382008-08-01 Robert Millan <rmh@aybabtu.com>
16339
16340 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
16341 within menuentries, not before them.
16342 util/grub.d/10_hurd.in: Likewise.
16343
9175e93d 163442008-08-01 Bean <bean123ch@gmail.com>
16345
16346 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
16347 (bufio_mod_SOURCES): New macro.
16348 (bufio_mod_CFLAGS): Likewise.
16349 (bufio_mod_LDFLAGS): Likewise.
16350
16351 * include/grub/bufio.h: New file.
16352
16353 * io/bufio.c: Likewise.
16354
16355 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
16356 (grub_video_reader_png): Use grub_buffile_open to open file.
16357
16358 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
16359 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
16360
16361 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
16362 (grub_video_reader_tga): Use grub_buffile_open to open file.
16363
16364 * font/manager.c: Include <grub/bufio.h>.
16365 (add_font): Use grub_buffile_open to open file.
16366
3d8383e7 163672008-07-31 Robert Millan <rmh@aybabtu.com>
16368
16369 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
16370 ELF segments, use a macro for arbitrarily accessing any of them instead
16371 of preparing a pointer that allows access to one at a time.
16372 (grub_multiboot_load_elf64): Likewise.
16373
16e641b6 163742008-07-31 Bean <bean123ch@gmail.com>
16375
16376 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
16377 GRUB_KERNEL_MACHINE_DATA_END.
16378
59198b72 163792008-07-30 Robert Millan <rmh@aybabtu.com>
16380
16381 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
16382 Increase from 0x50 to 0x60.
16383 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
16384 use UUIDs to identify the root drive for them. If that's not
16385 possible, abort.
16386 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
16387 check, for cross-disk installs.
16388
ae88bca3 163892008-07-30 Robert Millan <rmh@aybabtu.com>
16390
16391 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
16392 is non-empty, use it to set the `prefix' environment variable instead
16393 of the usual approach.
16394 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
16395 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
16396 environment variable instead of dummy make_install_device().
16397
16398 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
16399 (start): Insert a data section, with `grub_prefix' variable.
825aa57a 16400 * kern/i386/linuxbios/startup.S: Likewise.
ae88bca3 16401
16402 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
16403 New variable reference.
16404 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
16405 New macro. Defines offset of `grub_prefix' within startup.S (relative
16406 to `start').
16407 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
16408 section within startup.S (relative to `start').
16409 * include/grub/i386/coreboot/kernel.h: Likewise.
16410
16411 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
16412 Overwrite grub_prefix with its contents, at the beginning of the
16413 first segment.
16414 (main): Understand -p|--prefix.
16415
14f41dd1 164162008-07-30 Robert Millan <rmh@aybabtu.com>
16417
16418 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
16419
4ca049a3 164202008-07-30 Robert Millan <rmh@aybabtu.com>
16421
16422 * term/i386/pc/vga_text.c (grub_console_cls): Use
16423 grub_console_gotoxy() to go back to beginning of the screen.
16424 Found by Patrick Georgi <patrick.georgi@coresystems.de>
16425
2921d337 164262008-07-29 Christian Franke <franke@computer.org>
16427
16428 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
16429 Add conversion of emulated mount points on Cygwin.
16430
b609876d 164312008-07-29 Christian Franke <franke@computer.org>
16432
16433 * util/update-grub.in: Add a check for admin
16434 group on Cygwin.
16435 Remove old `grub.cfg.new' before creation.
16436 Add `-f' to `mv' to handle the different filesystem
16437 semantics of Windows.
16438
e93e4679 164392008-07-29 Bean <bean123ch@gmail.com>
16440
16441 * normal/main.c (get_line): Fix buffer overflow bug.
16442
41694fd0 164432008-07-28 Robert Millan <rmh@aybabtu.com>
16444
16445 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
16446 (struct grub_apple_header): New struct. Describes the layout of
16447 the partmap header.
16448 (apple_partition_map_iterate): Check the header magic as well as the
16449 partition magic (which was already being checked).
16450
cfd0b4e6 164512008-07-28 Pavel Roskin <proski@gnu.org>
16452
16453 * genmk.rb: Add a warning to the beginning of the output that
16454 it's a generated file and should not be edited.
16455
93cce016 164562008-07-28 Robert Millan <rmh@aybabtu.com>
16457
16458 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
16459 with the same number are found, just use issue a warning with
16460 grub_dprintf(), as this error has been reported to be non-fatal.
c298def0 16461
cd1df915 164622008-07-27 Robert Millan <rmh@aybabtu.com>
16463
16464 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
16465 information.
16466
b70a8427 164672008-07-27 Bean <bean123ch@gmail.com>
16468
16469 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
16470 (grub_fat_find_dir): Ignore case when comparing filename.
16471
8f5e379f 164722008-07-27 Bean <bean123ch@gmail.com>
16473
16474 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
16475 smallino, as it's more descriptive, and i8count can be confused with
16476 the other field count.
16477 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
16478 inode type.
16479
a85cd5a0 164802008-07-27 Bean <bean123ch@gmail.com>
16481
16482 * commands/crc.c: New file.
16483
16484 * lib/crc.c: Likewise.
16485
16486 * include/grub/lib/crc.h: Likewise.
16487
16488 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
16489
16490 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
16491 (hexdump): Move this function to ...
16492
16493 * lib/hexdump.c: ... here.
16494
16495 * include/grub/hexdump.h: Renamed to ...
16496
16497 * include/grub/lib/hexdump.h: ... this.
16498
16499 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
16500
16501 * util/grub-editenv.c: Likewise.
16502
16503 * include/envblk.h: Renamed to ...
16504
16505 * include/lib/envblk.h: ... this.
16506
16507 * util/envblk.c: Renamed to ...
16508
16509 * lib/envblk.c: ... this.
16510
16511 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
16512 lib/hexdump.c.
16513 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
16514 (pkglib_MODULES): Add crc.mod.
16515 (hexdump_mod_SOURCES): Add lib/hexdump.c.
16516 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
16517 (crc_mod_SOURCES): New macro.
16518 (crc_mod_CFLAGS): Likewise.
16519 (crc_mod_LDFLAGS): Likewise.
16520
16521 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
16522
16523 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
16524
16525 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
16526
16527 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
16528
16529 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
16530
c298def0 165312008-07-27 Felix Zielcke <fzielcke@z-51.de>
8749e9e5 16532
16533 * commands/help.c: Include <grub/term.h>.
16534 (TERM_WIDTH): Removed. Updated all users.
16535
cc349fb3 165362008-07-27 Pavel Roskin <proski@gnu.org>
16537
16538 * util/getroot.c (find_root_device): Rephrase a comment to avoid
16539 spurious warnings about a comment within a comment.
16540
9051607e 165412008-07-25 Robert Millan <rmh@aybabtu.com>
16542
16543 * util/getroot.c (find_root_device): Skip devices that match
16544 /dev/dm-[0-9]. This lets the real device be found for any type of
16545 abstraction (LVM, EVMS, RAID..).
16546 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
16547 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
16548 device is found first, find_root_device() will now skip it.
16549
01453bfc 165502008-07-24 Pavel Roskin <proski@gnu.org>
16551
16552 * include/grub/types.h: Use __builtin_bswap32() and
16553 __builtin_bswap64() with gcc 4.3 and newer.
16554
6af9849f 165552008-07-24 Christian Franke <franke@computer.org>
16556
3a0fa256 16557 * util/i386/pc/grub-install.in: If `--debug' is specified,
16558 pass `--verbose' to grub-setup.
16559 Abort script if make_system_path_relative_to_its_root() fails.
16560
7810e747 165612008-07-24 Bean <bean123ch@gmail.com>
16562
16563 * configure.ac: Fixed a bug caused by the previous cygwin patch,
16564 variable `target_platform' should be `platform'.
16565
42290e17 165662008-07-24 Bean <bean123ch@gmail.com>
16567
51cc5193 16568 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
42290e17 16569 (grub_png_init_fixed_block): New function.
16570 (grub_png_decode_image_data): Handle fixed huffman code compression.
16571
2a8a80e4 165722008-07-24 Bean <bean123ch@gmail.com>
16573
16574 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
16575 (grub_pe2elf_SOURCES): New macro.
16576 (CLEANFILES): Add grub-pe2elf.
16577
16578 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
16579 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
16580 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
16581 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
16582 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
16583 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
16584 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
16585 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
16586 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
16587 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
16588 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
16589 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
16590 (GRUB_PE32_DT_FUNCTION): Likewise.
16591 (GRUB_PE32_REL_I386_DIR32): Likewise.
16592 (GRUB_PE32_REL_I386_REL32): Likewise.
16593 (grub_pe32_symbol): New structure.
16594 (grub_pe32_reloc): Likewise.
16595
16596 * util/grub-pe2elf.c: New file.
16597
16598 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
16599 start symbol in non pc platform.
16600
16601 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
16602
16603 The following patches are from Christian Franke.
16604
16605 * include/grub/dl.h: Remove .previous, gas supports this only
16606 for ELF format.
16607
16608 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
16609 Remove .type, gas supports this only for ELF format.
16610
16611 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
16612 nullbytes in symbol table. This fixes an infinite loop if table is
16613 zero filled.
16614
16615 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
16616 TARGET_IMG_LDFLAGS and EXEEXT.
16617
16618 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
16619 TARGET_IMG_LDFLAGS_AC.
16620 (grub_CHECK_STACK_ARG_PROBE): New function.
16621
16622 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
16623
16624 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
16625
16626 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
16627 to set TARGET_IMG_LD* accordingly.
16628 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
16629 Add call to grub_CHECK_STACK_ARG_PROBE.
16630 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
16631
16632 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
16633
16634 * genmk.rb: Add EXEEXT to CLEANFILES.
16635
12ccdb75 166362008-07-23 Robert Millan <rmh@aybabtu.com>
16637
16638 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
16639 define the codes for arrows and lines used for the menu).
16640 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
16641 as well.
16642
16643 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
16644 fonts, because the latter are too slow.
16645
18eeaf04 166462008-07-21 Bean <bean123ch@gmail.com>
16647
16648 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
16649 a20. Run keyboard test last, as it will cause macbook to halt.
16650
b095e2ad 166512008-07-18 Pavel Roskin <proski@gnu.org>
16652
16653 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
16654 load foreign architecture modules correctly anyway. Keep
16655 support for loading host architecture modules, whether we
16656 compile them or not.
16657
737feb35 166582008-07-17 Pavel Roskin <proski@gnu.org>
16659
3f4ce737 16660 * configure.ac: Use -m32 or -m64 regardless of whether we had to
16661 change target_cpu. The compiler default can mismatch target_cpu
16662 in any case.
16663
4ad2d049 16664 * disk/efi/efidisk.c: Fix format warnings on x86_64.
16665 * kern/efi/efi.c: Likewise.
16666
f6130a12 16667 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
16668 target compiler is functional.
16669 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
16670 are set up.
16671
58393a2d 16672 * configure.ac: Default to efi platform for x86_64-apple. Allow
16673 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
16674 adjustments from the rest, only do them if target is not
16675 explicitly given. Merge other adjustments with the final sanity
16676 check. Remove an extraneous check for supported CPU. Be
16677 specific which CPU and which platform is not supported.
16678
737feb35 16679 * configure.ac: Default to pc platform for x86_64.
16680
546f966a 166812008-07-17 Robert Millan <rmh@aybabtu.com>
16682
16683 Partial LinuxBIOS -> Coreboot rename.
16684
16685 * conf/i386-linuxbios.rmk: Renamed to ...
16686 * conf/i386-coreboot.rmk: ... this.
16687 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
16688 * configure.ac: Accept "coreboot" as input platform (but maintain
16689 compatibility with "linuxbios").
16690 * include/grub/i386/linuxbios: Renamed to ...
16691 * include/grub/i386/coreboot: ... this.
16692
20011694 166932008-07-17 Bean <bean123ch@gmail.com>
16694
16695 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
c11f6d16 16696 (appleldr_mod_SOURCE): New variable.
20011694 16697 (appleldr_mod_CFLAGS): Likewise.
16698 (appleldr_mod_LDFLAGS): Likewise.
16699 (pci_mod_SOURCES): Likewise.
16700 (pci_mod_CFLAGS): Likewise.
16701 (pci_mod_LDFLAGS): Likewise.
16702 (lspci_mod_SOURCES): Likewise.
16703 (lspci_mod_CFLAGS): Likewise.
16704 (lspci_mod_LDFLAGS): Likewise.
16705
16706 * conf/x86_64-efi.rmk: New file.
16707
16708 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
16709 macro.
16710 (grub_efidisk_write): Likewise.
16711
16712 * include/efi/api.h (efi_call_0): New macro.
16713 (efi_call_1): Likewise.
16714 (efi_call_2): Likewise.
16715 (efi_call_3): Likewise.
16716 (efi_call_4): Likewise.
16717 (efi_call_5): Likewise.
16718 (efi_call_6): Likewise.
16719
16720 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
16721 grub_rescue_cmd_chainloader.
16722
16723 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
16724 (grub_pe32_optional_header): Change some fields based on i386 or
16725 x86_64 platform.
16726 (GRUB_PE32_PE32_MAGIC): Likewise.
16727
16728 * include/grub/efi/uga_draw.h: New file.
16729
16730 * include/grub/elf.h (STN_ABS): New constant.
16731 (R_X86_64_NONE): Relocation constant for x86_64.
16732 (R_X86_64_64): Likewise.
16733 (R_X86_64_PC32): Likewise.
16734 (R_X86_64_GOT32): Likewise.
16735 (R_X86_64_PLT32): Likewise.
16736 (R_X86_64_COPY): Likewise.
16737 (R_X86_64_GLOB_DAT): Likewise.
16738 (R_X86_64_JUMP_SLOT): Likewise.
16739 (R_X86_64_RELATIVE): Likewise.
16740 (R_X86_64_GOTPCREL): Likewise.
16741 (R_X86_64_32): Likewise.
16742 (R_X86_64_32S): Likewise.
16743 (R_X86_64_16): Likewise.
16744 (R_X86_64_PC16): Likewise.
16745 (R_X86_64_8): Likewise.
16746 (R_X86_64_PC8): Likewise.
16747
16748 * include/grub/i386/efi/pci.h: New file.
16749
16750 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
16751 Change it value based on platform.
16752 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
16753 (GRUB_E820_RAM): Likewise.
16754 (GRUB_E820_RESERVED): Likewise.
16755 (GRUB_E820_ACPI): Likewise.
16756 (GRUB_E820_NVS): Likewise.
16757 (GRUB_E820_EXEC_CODE): Likewise.
16758 (GRUB_E820_MAX_ENTRY): Likewise.
16759 (grub_e820_mmap): New structure.
16760 (linux_kernel_header): Change the efi field according to different
16761 kernel version, also field from linux_kernel_header.
16762
16763 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
16764
16765 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
16766 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
16767 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
16768 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
16769 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
16770 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
16771 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
16772 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
16773 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
16774 (GRUB_PCI_ADDR_IO_MASK): Likewise.
16775
16776 * include/grub/x86_64/efi/kernel.h: New file.
16777
16778 * include/grub/x86_64/efi/loader.h: Likewise.
16779
16780 * include/grub/x86_64/efi/machine.h: Likewise.
16781
16782 * include/grub/x86_64/efi/pci.h: Likewise.
16783
16784 * include/grub/x86_64/efi/time.h: Likewise.
16785
16786 * include/grub/x86_64/linux.h: Likewise.
16787
16788 * include/grub/x86_64/setjmp.h: Likewise.
16789
16790 * include/grub/x86_64/time.h: Likewise.
16791
16792 * include/grub/x86_64/types.h: Likewise.
16793
16794 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
16795 GRUB_TARGET_SIZEOF_VOID_P.
16796
16797 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
16798 (grub_efi_locate_handle): Likewise.
16799 (grub_efi_open_protocol): Likewise.
16800 (grub_efi_set_text_mode): Likewise.
16801 (grub_efi_stall): Likewise.
16802 (grub_exit): Likewise.
16803 (grub_reboot): Likewise.
16804 (grub_halt): Likewise.
16805 (grub_efi_exit_boot_services): Likewise.
16806 (grub_get_rtc): Likewise.
16807
16808 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
16809 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
16810 (grub_efi_allocate_pages): Wrap efi calls.
16811 (grub_efi_free_pages): Wrap efi calls.
16812 (grub_efi_get_memory_map): Wrap efi calls.
16813
16814 * kern/x86_64/dl.c: New file.
16815
16816 * kern/x86_64/efi/callwrap.S: Likewise.
16817
16818 * kern/x86_64/efi/startup.S: Likewise.
16819
16820 * loader/efi/appleloader.c: Likewise.
16821
16822 * loader/efi/chainloader.c (cmdline): New variable.
16823 (grub_chainloader_unload): Wrap efi calls.
16824 (grub_chainloader_boot): Likewise.
16825 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
16826 command line.
16827
16828 * loader/efi/chainloader_normal.c (chainloader_command):
16829 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
16830 command line.
16831
16832 * loader/i386/efi/linux.c (allocate_pages): Change allocation
16833 method.
16834 (grub_e820_add_region): New function.
16835 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
16836 booting.
16837 (grub_find_video_card): New function.
16838 (grub_linux_setup_video): New function.
16839 (grub_rescue_cmd_linux): Probe for video information.
16840
16841 * normal/x86_64/setjmp.S: New file.
16842
16843 * term/efi/console.c (map_char): New function.
16844 (grub_console_putchar): Map unicode char.
16845 (grub_console_checkkey): Wrap efi calls.
16846 (grub_console_getkey): Likewise.
16847 (grub_console_getwh): Likewise.
16848 (grub_console_gotoxy): Likewise.
16849 (grub_console_cls): Likewise.
16850 (grub_console_setcolorstate): Likewise.
16851 (grub_console_setcursor): Likewise.
16852
16853 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
16854
59652a20 168552008-07-16 Pavel Roskin <proski@gnu.org>
16856
ef294055 16857 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
16858 format strings.
16859
59652a20 16860 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
16861 pointer, not an integer. This fixes a warning and prevents
16862 precision loss on 64-bit systems.
16863 (relocate_addresses): Remove unneeded cast.
16864
afc3b5d7 168652008-07-15 Pavel Roskin <proski@gnu.org>
16866
506b2b3e 16867 * kern/i386/ieee1275/init.c: Include grub/cache.h.
16868
62ead89c 16869 * term/ieee1275/ofconsole.c: Disable code unused on i386.
16870
c4cd51d7 16871 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
16872 Fix comparison between signed and unsigned.
16873
0d3d8f28 16874 * include/grub/i386/ieee1275/console.h: Declare
16875 grub_console_init() and grub_console_fini().
16876
8804b286 16877 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
16878 It's empty and unused.
16879
ee01cf35 16880 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
16881 beginning to avoid warnings with some compilers.
16882
afc3b5d7 16883 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
16884 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
16885
e4e8eaa5 168862008-07-14 Pavel Roskin <proski@gnu.org>
16887
407aceb4 16888 * kern/env.c (grub_register_variable_hook): Don't copy empty
16889 string, it leaks memory. Pass "" to grub_env_set(), it should
16890 handle constant strings.
16891
e4e8eaa5 16892 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
16893 * commands/cmp.c (grub_cmd_cmp): Likewise.
16894 * kern/dl.c (grub_dl_flush_cache): Likewise.
16895 (grub_dl_load_core): Likewise.
16896 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
16897 (grub_elf64_load_phdrs): Likewise.
16898
d4e2dad3 168992008-07-13 Pavel Roskin <proski@gnu.org>
16900
16901 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
16902 between signed and unsigned.
16903 (LzmaEnc_Finish): Fix warning about an unused parameter.
16904
aa24b516 169052008-07-13 Bean <bean123ch@gmail.com>
16906
16907 * Makefile.in (enable_lzo): New rule.
16908
16909 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
16910
16911 * configure.ac (ENABLE_LZO): New option --enable-lzo.
16912
16913 * boot/i386/pc/lnxboot.S: #include <config.h>.
16914
16915 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
fe987087 16916 its value according to the compression algorithm used, lzo or lzma.
aa24b516 16917
16918 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
16919 compression algorithm according to configure macro.
16920
16921 * kern/i386/pc/startup.S (codestart): Likewise.
16922
16923 * kern/i386/pc/lzma_decode.S: New file.
16924
16925 * include/grub/lib/LzFind.h: Likewise.
16926
16927 * include/grub/lib/LzHash.h: Likewise.
16928
16929 * include/grub/lib/LzmaDec.h: Likewise.
16930
16931 * include/grub/lib/LzmaEnc.h: Likewise.
16932
16933 * include/grub/lib/LzmaTypes.h: Likewise.
16934
16935 * lib/LzFind.c: Likewise.
16936
16937 * lib/LzmaDec.c: Likewise.
16938
16939 * lib/LzmaEnc.c: Likewise.
16940
4ae821ac 169412008-07-13 Bean <bean123ch@gmail.com>
16942
16943 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
16944 (grub_ext4_extent_header): New structure.
16945 (grub_ext4_extent): Likewise.
16946 (grub_ext4_extent_idx): Likewise.
16947 (grub_ext4_find_leaf): New function.
16948 (grub_ext2_read_block): Handle extents.
16949
9a745147 169502008-07-12 Robert Millan <rmh@aybabtu.com>
16951
16952 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
16953
d49a4cf6 169542008-07-11 Robert Millan <rmh@aybabtu.com>
16955
16956 * util/grub.d/40_custom.in: New file. Example on how to add custom
16957 entries to /etc/grub.d.
16958 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
16959 40_custom (implicitly, by merging all the grub.d rules).
16960
947414b4 169612008-07-11 Pavel Roskin <proski@gnu.org>
16962
0059cf6f 16963 * commands/read.c (grub_getline): Fix invalid memory access.
16964 Don't add newline to the variable value.
16965
947414b4 16966 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
16967 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
16968 (serial_hw_get_port): Check validity of the port number.
16969 (grub_cmd_serial): Check return value of serial_hw_get_port().
16970
62a02d00 169712008-07-07 Pavel Roskin <proski@gnu.org>
16972
16973 * boot/i386/pc/diskboot.S (notification_string): Replace
16974 "Loading kernel" with just "loading". This is shorter, less
16975 confusing and saves a few bytes for possible future changes.
16976
3e5581b0 169772008-07-05 Pavel Roskin <proski@gnu.org>
16978
ea387a48 16979 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
16980 size for ATAPI devices, they are undefined. Output sector
16981 number in decimal form.
16982
3e5581b0 16983 * disk/ata.c: Use named constants for status bits.
16984
fdecb8fd 169852008-07-04 Pavel Roskin <proski@gnu.org>
16986
bcd35b90 16987 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
16988 grub_addr_t before casting it to the void pointer to fix a
16989 warning. Non-addressable regions are discarded earlier.
16990 (grub_arch_modules_addr): Cast _end to grub_addr_t.
16991 * kern/i386/linuxbios/table.c: Include grub/misc.h.
16992 (check_signature): Don't shadow table_header.
16993 (grub_linuxbios_table_iterate): Cast numeric constants to
16994 grub_linuxbios_table_header_t.
16995 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
16996 grub_stop().
16997
af58ab3d 16998 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
16999 prevent warnings.
17000
1759aa57 17001 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
17002 pointer, which can cause warnings. Support 64-bit addresses.
17003
fdecb8fd 17004 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
17005 of sizeof(long). This fixes PowerPC image generation on x86_64.
17006
8516d2a8 170072008-07-04 Robert Millan <rmh@aybabtu.com>
17008
17009 This fixes a performance issue when pc & gpt partmap iterators
17010 didn't abort iteration even after our hook found what it was
fe987087 17011 looking for (often causing expensive probes of non-existent drives).
8516d2a8 17012
17013 Some callers relied on previous buggy behaviour, since they would
34c44600 17014 raise an error when their own hooks caused early abortion of its
8516d2a8 17015 iteration.
17016
17017 * kern/device.c (grub_device_open): Improve error message.
17018 * disk/lvm.c (grub_lvm_open): Likewise.
17019 * disk/raid.c (grub_raid_open): Likewise.
17020
17021 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
17022 when hook requests it, independently of grub_errno.
17023 (pc_partition_map_probe): Do not fail when find_func() caused
17024 early abortion of pc_partition_map_iterate().
17025
17026 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
17027 when hook requests it, independently of grub_errno.
17028 (gpt_partition_map_probe): Do not fail when find_func() caused
17029 early abortion of gpt_partition_map_iterate().
17030
17031 * kern/partition.c (grub_partition_iterate): Abort parent iteration
17032 when hook requests it, independently of grub_errno. Do not fail when
17033 part_map_iterate_hook() caused early abortion of p->iterate().
17034
17035 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
17036 when grub_partition_iterate() returned with non-zero.
17037
277d0de9 170382008-07-03 Pavel Roskin <proski@gnu.org>
17039
17040 * disk/ata.c (grub_ata_pio_write): Check status before writing,
17041 like we do in grub_ata_pio_read().
17042 (grub_ata_readwrite): Always write individual sectors. Fix the
17043 sector count for the remainder.
17044 (grub_ata_write): Enable writing to ATA devices. Correctly
17045 report error for ATAPI devices.
17046
d4c9b428 170472008-07-02 Pavel Roskin <proski@gnu.org>
17048
e43fc690 17049 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
17050 warning.
17051
f707af42 17052 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
17053 for every read sector, we already increment it for the whole
17054 batch. This fixes reading more than 256 sectors at once.
17055
11e16b15 17056 * util/grub-editenv.c (cmd_info): Cast argument to long
17057 explicitly. ptrdiff_t reduces to int on i386.
17058
cbabfdd4 17059 * util/grub-editenv.c (main): Be specific which parameter is
17060 missing.
17061
b8fbce0a 17062 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
17063 (memdisk): Make memdisk_orig_addr a pointer.
17064
c9c8e606 17065 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
17066 for file offsets, use grub_off_t instead. Fix printf format
17067 warnings.
17068
ca62e598 17069 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
17070 there. Real unexpected warnings should not drown in the noise
17071 about known problems.
17072
ce8d1766 17073 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
17074 grub_disk_addr_t for memory addresses.
17075
00c7a56a 17076 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
17077 explicitly to fix a warning.
17078
08d3ef09 17079 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
17080
cb71ba20 17081 * Makefile.in (MODULE_LDFLAGS): New variable.
17082 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
17083 the linker accepts --build-id=none.
17084 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
17085 MODULE_LDFLAGS.
17086 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
17087
d4c9b428 17088 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
17089 those in Linux XFS code. Provide a way to access 64-bit parent
17090 inode.
17091 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
17092 the end of struct grub_xfs_dir_header.
17093
d4156eee 170942008-07-02 Bean <bean123ch@gmail.com>
17095
17096 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
17097 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
17098 and GRUB_IEEE1275_FLAG_NO_ANSI.
17099
17100 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
17101 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
17102 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
17103
17104 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
17105 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
17106
17107 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
17108 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
17109
17110 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
17111 esc sequence on non ANSI terminal.
17112 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
17113
17114 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
17115 beginning of file.
17116
2270f77b 171172008-07-02 Bean <bean123ch@gmail.com>
17118
17119 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
17120 (grub_editenv_SOURCES): New variable.
17121 (pkglib_MODULES): Add loadenv.mod.
17122 (loadenv_mod_SOURCES): New variable.
17123 (loadenv_mod_CFLAGS): Likewise.
17124 (loadenv_mod_LDFLAGS): Likewise.
17125
17126 * include/grub/envblk.h: New file.
17127
17128 * util/envblk.c: New file.
17129
17130 * util/grub-editenv.c: New file.
17131
17132 * commands/loadenv.c: New file.
17133
0e9e51ec 171342008-07-01 Pavel Roskin <proski@gnu.org>
17135
d89b7634 17136 * include/multiboot2.h (struct multiboot_tag_module): Use char,
17137 not unsigned char. This fixes warnings and is consistent with
17138 other tags.
17139
bf1835b1 17140 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
17141
8222a04b 17142 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
17143
6a42d99d 17144 * term/tparm.c (analyze): Always set *popcount.
17145
10b159d1 17146 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
17147 cast to fix a warning.
17148
b8789f6c 17149 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
17150 cast to suppress a warning.
17151
29d7e38a 17152 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
17153 grub_fshelp_read_file() expects.
17154
f341f669 17155 * fs/fat.c: Fix UUID calculation on big-endian systems. We
17156 write uuid as a 32-bit value in CPU byte order, so declare and
17157 use it as such.
17158
0e9e51ec 17159 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
17160 long if the format specifier expects it.
17161 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
17162 * partmap/pc.c (pc_partition_map_iterate): Likewise.
17163 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
17164 long to fix a warning.
17165 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
17166 grub_dprintf() arguments to fix warnings.
17167
3aefa857 171682008-06-30 Pavel Roskin <proski@gnu.org>
17169
56c7668b 17170 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
17171 install_bsd_part immediately before core.img is embedded or
17172 modified on disk. This fixes core.img verification if core.img
17173 cannot be embedded.
17174
3aefa857 17175 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
17176 core_path to calculate the blocklist.
17177 Patch from Javier Martín <lordhabbit@gmail.com>
17178
5444088d 171792008-06-29 Robert Millan <rmh@aybabtu.com>
17180
17181 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
17182 block to disk block.
17183 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
17184 Patch from Niels Böhm <bitbucket@arcor.de>
17185
674835c8 171862008-06-29 Robert Millan <rmh@aybabtu.com>
17187
17188 * util/update-grub_lib.in (font_path): Search for fonts in
17189 /boot/grub first, which is more likely to be readable (we aren't
17190 deciding where fonts live, just looking for them).
17191
f527dbc8 171922008-06-26 Pavel Roskin <proski@gnu.org>
17193
6c2d8df6 17194 * util/biosdisk.c (read_device_map): Don't leave dead map
17195 entries for devices failing stat() check.
17196
f527dbc8 17197 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
17198 core_path_dev for the core.img path on the target device.
17199
aebe3d13 172002008-06-26 Robert Millan <rmh@aybabtu.com>
17201
17202 * disk/fs_uuid.c: New file.
17203 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
17204 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
17205 (fs_uuid_mod_LDFLAGS): New variables.
17206 * include/grub/disk.h (grub_disk_dev_id): Add
17207 `GRUB_DISK_DEVICE_UUID_ID'.
17208 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
17209 implement iterate().
17210
37aaf354 172112008-06-26 Robert Millan <rmh@aybabtu.com>
17212
17213 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
17214 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
17215 Linux image includes no initrd.
17216
25ff262a 172172008-06-21 Javier Martín <lordhabbit@gmail.com>
17218
17219 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
17220 call to resolve the core image location that effectively appended the
17221 name twice.
17222
76a2bd44 172232008-06-21 Robert Millan <rmh@aybabtu.com>
17224
17225 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
17226 call from here ...
17227
17228 * util/grub.d/10_hurd.in: ... to here ...
17229 * util/grub.d/10_linux.in: ... and here.
17230
650e1c79 172312008-06-19 Robert Millan <rmh@aybabtu.com>
17232
fe987087 17233 * kern/main.c (grub_main): Export `prefix' variable immediately
650e1c79 17234 after it has been set by grub_machine_set_prefix().
17235
6ce63911 172362008-06-19 Robert Millan <rmh@aybabtu.com>
17237
17238 * commands/search.c (search_label, search_fs_uuid, search_file): Print
17239 search result when not saving to variable, not the other way around.
17240 When saving to variable, abort iteration as soon as a match is found.
17241
73940cec 172422008-06-19 Robert Millan <rmh@aybabtu.com>
17243
17244 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
17245 check for partition that provides /boot/grub. Its logic is flawed,
17246 as it prevents prepare_grub_to_access_device() from being called
17247 multiple times.
17248
3c62a39d 172492008-06-19 Robert Millan <rmh@aybabtu.com>
17250
17251 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
17252 "insmod" command directly when abstraction modules are needed,
fe987087 17253 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
3c62a39d 17254 since it had already been processed).
17255
47395a42 172562008-06-19 Pavel Roskin <proski@gnu.org>
17257
17258 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
17259 changed. This is needed in case GRUB_LIBDIR changes.
17260 * conf/i386-ieee1275.rmk: Likewise.
17261 * conf/i386-linuxbios.rmk: Likewise.
17262 * conf/i386-pc.rmk: Likewise.
17263 * conf/powerpc-ieee1275.rmk: Likewise.
17264
a145ac2d 172652008-06-18 Pavel Roskin <proski@gnu.org>
17266
17267 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
17268 kernel_elf_symlist.c to symlist.c for consistency with other
17269 architectures. Update all users.
17270 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
17271
7847c51e 172722008-06-18 Robert Millan <rmh@aybabtu.com>
17273
17274 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
17275 it in prefix.
17276
17277 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
17278 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
17279 a RAID device, run setup() for all members independently on whether
17280 LVM abstraction is being used.
17281 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
17282 If grub-mkimage has set `*install_dos_part == -2', don't override this
17283 value.
17284 Perform *install_dos_part adjustments independently on whether
17285 we're embedding or not.
17286 Clarify error message when image is too big for embedding.
17287 Remove duplicate *install_dos_part stanza.
17288
b23e5644 172892008-06-17 Robert Millan <rmh@aybabtu.com>
17290
17291 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
17292 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
17293 variables.
17294 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
17295 values in grub_ofconsole_normal_color and
17296 grub_ofconsole_highlight_color (they're not directly related to
17297 background and foreground).
17298 (grub_ofconsole_setcolorstate): Extract background and foreground
17299 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
17300
0aac2f79 173012008-06-17 Robert Millan <rmh@aybabtu.com>
17302
17303 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
17304 /boot/grub for the check in last commit, not /boot (they could be
17305 different partitions).
17306
3cca7ef3 173072008-06-16 Robert Millan <rmh@aybabtu.com>
17308
17309 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
17310 asked to setup access for the same partition that provides /boot,
17311 don't bother using UUIDs since our root already has the value we
17312 want.
17313
347396d8 173142008-06-16 Robert Millan <rmh@aybabtu.com>
17315
17316 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
17317 I2O devices.
17318 Patch from Sven Mueller <sven@debian.org>.
17319
991477f8 173202008-06-16 Robert Millan <rmh@aybabtu.com>
17321
17322 * util/update-grub.in: Check for $EUID instead of $UID.
17323 Reported by Vincent Zweije.
17324
d31a32a1 173252008-06-16 Bean <bean123ch@gmail.com>
17326
fe987087 17327 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
d31a32a1 17328 (grub_ext2_read_block): Likewise.
17329 (grub_ext2_read_inode): Likewise.
17330 (grub_ext2_mount): Likewise.
17331 (grub_ext2_close): Likewise.
17332 (grub_ext3_get_journal): Removed.
17333
fe987087 17334 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
d31a32a1 17335 (grub_reiserfs_read_symlink): Likewise.
17336 (grub_reiserfs_mount): Likewise.
17337 (grub_reiserfs_open): Likewise.
17338 (grub_reiserfs_read): Likewise.
17339 (grub_reiserfs_close): Likewise.
17340 (grub_reiserfs_get_journal): Removed.
17341
17342 * fs/fshelp.c (grub_fshelp_read): Removed.
17343 (grub_fshelp_map_block): Likewise.
17344
17345 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
17346 (grub_fshelp_journal): Likewise.
17347 (grub_fshelp_read): Likewise.
17348 (grub_fshelp_map_block): Likewise.
17349
3540a760 173502008-06-16 Pavel Roskin <proski@gnu.org>
17351
17352 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
17353 floating point anymore.
17354 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
17355
95614c84 173562008-06-15 Pavel Roskin <proski@gnu.org>
17357
17358 * commands/ls.c (grub_ls_list_files): Use integer calculations
17359 for human readable format, avoid floating point use.
17360 * kern/misc.c (grub_ftoa): Remove.
17361 (grub_vsprintf): Remove floating point support.
17362
50465dd6 173632008-06-15 Robert Millan <rmh@aybabtu.com>
17364
fe6b695a 17365 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
50465dd6 17366 devices.
17367 Reported by Max Vozeler.
17368
a9207284 173692008-06-15 Robert Millan <rmh@aybabtu.com>
17370
17371 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
17372 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
17373 skipped later.
17374 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
17375 the beginning of the prefix.
17376
17377 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
17378 It is assumed that if we have a memdisk, grub-mkimage has set
17379 grub_prefix to include the "(memdisk)" drive in it.
17380
a7cbd45a 173812008-06-15 Robert Millan <rmh@aybabtu.com>
17382
17383 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
17384 Initialize keyboard controller after registering the terminal, so that
17385 grub_printf() can be called from grub_keyboard_controller_init().
17386
21cf716a 173872008-06-15 Robert Millan <rmh@aybabtu.com>
17388
17389 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
17390 extent-btree which is written as big endian on disk.
17391 Reported by Alain Greppin <al@chilibi.org>.
17392
23a64d8e 173932008-06-14 Robert Millan <rmh@aybabtu.com>
17394
17395 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
17396 * util/i386/pc/grub-install.in (modules): Likewise.
17397
d687651c 173982008-06-13 Pavel Roskin <proski@gnu.org>
17399
17400 * commands/ls.c (grub_ls_list_files): Fix format warnings.
17401
dfe9ddd4 174022008-06-13 Bean <bean123ch@gmail.com>
17403
17404 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
17405
17406 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
17407
17408 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
17409 to indicate sparse block.
17410
16ae7781 174112008-06-12 Pavel Roskin <proski@gnu.org>
17412
e6d1a308 17413 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
17414 number, grub_fshelp_read() does it for us.
17415
16ae7781 17416 * fs/fshelp.c (grub_fshelp_read): New function. Implement
17417 linear disk read with journal translation.
17418 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
17419 * include/grub/fshelp.h: Declare grub_fshelp_read().
17420
40fd3a2b 174212008-06-09 Pavel Roskin <proski@gnu.org>
17422
17423 * fs/minix.c (grub_minix_mount): Handle error reading
17424 superblock.
17425
f5679726 174262008-06-08 Robert Millan <rmh@aybabtu.com>
17427
17428 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
17429 don't append the RAID prefix afterwards.
17430 Reported by Clint Adams.
17431
ce525529 174322008-06-08 Robert Millan <rmh@aybabtu.com>
17433
17434 Based on description from Pavel:
17435 * kern/disk.c (grub_disk_check_range): Rename to ...
17436 (grub_disk_adjust_range): ... this. Add a comment explaining the
17437 tasks performed by this function.
17438
ad4936a0 174392008-06-08 Robert Millan <rmh@aybabtu.com>
17440
17441 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
17442 `num_serial' (for consistency with other variables).
17443 (struct grub_ntfs_data): Add `uuid' member.
17444 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
17445 (grub_ntfs_uuid): New function.
17446 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
17447
dc20b0f9 174482008-06-07 Pavel Roskin <proski@gnu.org>
17449
17450 * util/biosdisk.c (open_device): Revert last change to the
17451 function, it broke installation. The sector needs to be
17452 different dependent on which device is opened.
17453
c5e3cfba 174542008-06-06 Robert Millan <rmh@aybabtu.com>
17455
17456 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
17457 rest of GRUB, and breakage doesn't happen if its value were modified.
17458
17459 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
17460 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
17461 a constant (same value).
17462 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
17463 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
17464
26a1f8c4 174652008-06-06 Robert Millan <rmh@aybabtu.com>
17466
17467 * util/biosdisk.c (open_device): Do not modify sector offset when
17468 accessing a partition. kern/disk.c already handles this for us.
17469
25d6b327 174702008-06-06 Robert Millan <rmh@aybabtu.com>
17471
17472 * util/grub-emu.c (grub_machine_init): Move code in this function from
17473 here ...
17474 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
17475 segfault in case grub_printf() is called).
17476
17477 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
17478 grub_probe. Update all users not to explicitly add it again.
17479 (grub_device): New variable; contains corresponding device for grubdir.
17480 (fs_module, partmap_module, devabstraction_module): Pass
17481 `--device ${grub_device}' to grub_probe to avoid traversing /dev
17482 every time.
17483
9ece62fb 174842008-06-05 Robert Millan <rmh@aybabtu.com>
17485
17486 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
17487 is found, print it (same layout as with labels).
17488
1ad36d37 174892008-06-04 Robert Millan <rmh@aybabtu.com>
17490
17491 * util/biosdisk.c (get_drive): Rename to ...
17492 (find_grub_drive): ... this. Update all users.
17493
17494 (get_os_disk): Rename to ...
17495 (convert_system_partition_to_system_disk): ... this. Update all users.
17496
17497 (find_drive): Rename to ...
17498 (find_system_device): ... this. Update all users.
17499
e6a30859 175002008-06-04 Robert Millan <rmh@aybabtu.com>
17501
17502 * util/biosdisk.c (get_os_disk): Handle IDA devices.
17503 * util/grub-mkdevicemap.c (get_mmc_disk_name)
17504 (make_device_map): Likewise.
17505
00c108a4 175062008-06-01 Robert Millan <rmh@aybabtu.com>
17507
17508 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
17509 before dereferencing it.
17510
17511 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
17512 union with fat12/fat16-specific ones. Add some new fields, including
17513 `num_serial' for both versions.
17514 (struct grub_fat_data): Add `uuid' member.
17515 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
17516 names. Initialize `data->uuid' using `num_serial'.
17517 (grub_fat_uuid): New function.
17518 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
17519
17520 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
17521 (grub_reiserfs_uuid): New function.
17522 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
17523 member.
17524
17525 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
17526 (grub_xfs_uuid): New function.
17527 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
17528
1385c5bb 175292008-06-01 Robert Millan <rmh@aybabtu.com>
17530
17531 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
17532 code that is backward compatible with pre-uuid search command.
17533
c682dfd7 175342008-05-31 Robert Millan <rmh@aybabtu.com>
17535
17536 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
17537 floppies after everything else, to ensure floppy drive isn't accessed
17538 unnecessarily (patch from Bean).
17539
b7db5d47 175402008-05-31 Robert Millan <rmh@aybabtu.com>
17541
17542 * commands/search.c (search_label, search_fs_uuid, search_file): Do
17543 not print device names when we were asked to set a variable.
17544
6e037aa9 175452008-05-31 Robert Millan <rmh@aybabtu.com>
17546
17547 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
17548 using "cursor-on" and "cursor-off" commands (understood at least by
17549 the Open Firmware flavour on OLPC).
17550
41305bc8 175512008-05-31 Michael Gorven <michael@gorven.za.net>
17552
17553 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
17554 on and off sequences.
17555
69ba137e 175562008-05-31 Robert Millan <rmh@aybabtu.com>
17557
17558 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
17559 * util/update-grub.in: Likewise.
17560
520ae21b 175612008-05-30 Pavel Roskin <proski@gnu.org>
17562
17563 * util/biosdisk.c (linux_find_partition): Simplify logic and
17564 make the code more universal. Keep special processing for
17565 devfs, but use a simple rule for all other devices. If the
17566 device ends with a number, append 'p' and the partition number.
17567 Otherwise, append only the partition number.
17568
5786569b 175692008-05-30 Robert Millan <rmh@aybabtu.com>
17570
17571 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
17572 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
17573 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
17574 the `root' parameter to Linux.
17575
51500452 175762008-05-30 Robert Millan <rmh@aybabtu.com>
17577
17578 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
17579 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
17580 --fs_uuid with --fs-uuid.
17581 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
17582 all filesystems support them).
17583
811d3878 175842008-05-30 Robert Millan <rmh@aybabtu.com>
17585
17586 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
f19dbdb7 17587 grub_printf() flags, since we're printing in units of 2 bytes.
811d3878 17588
cab63c95 175892008-05-30 Robert Millan <rmh@aybabtu.com>
17590
17591 * util/grub.d/00_header.in: Remove obsolete comment referencing
17592 convert_system_path_to_grub_path().
17593 * util/update-grub.in: Likewise.
17594 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
17595 (convert_system_path_to_grub_path): Add a warning message explaining
17596 that this function is deprecated. Rely on is_path_readable_by_grub()
17597 for the readability checks.
17598 (font_path): Use is_path_readable_by_grub() for the readability
17599 check rather than convert_system_path_to_grub_path().
17600
972e2f7a 176012008-05-30 Robert Millan <rmh@aybabtu.com>
17602
17603 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
17604 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
17605 converting it first.
17606 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
17607 grub.cfg for access to font file, and afterwards call it again to set
17608 the root device.
17609
62191274 176102008-05-30 Robert Millan <rmh@aybabtu.com>
17611
17612 * commands/search.c (options): Add --fs_uuid option.
17613 (search_fs_uuid): New function.
17614 (grub_cmd_search): Fix --set argument passing.
17615 Use search_fs_uuid() when requested via --fs_uuid.
17616 (grub_search_init): Update help message.
17617 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
17618 and redeclare it as an array of 16-bit words.
17619 (grub_ext2_uuid): New function.
17620 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
17621 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
17622 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
17623 (GRUB_DEVICE_BOOT_UUID): New variables.
17624 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
17625 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
17626 whenever possible.
17627 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
17628 just assume `root' variable has the right value.
17629 * util/grub.d/10_linux.in: Likewise.
17630 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
17631 via PRINT_FS_UUID.
17632 (main): Recognise `-t fs_uuid' argument.
17633
01b73ec8 176342008-05-30 Robert Millan <rmh@aybabtu.com>
17635
17636 * util/biosdisk.c (map): Redefine structure to hold information
17637 about GRUB drive name.
fe6b695a 17638 (get_drive): Reimplement without assuming (and verifying) BIOS-like
01b73ec8 17639 drive names.
17640 (call_hook): Remove.
17641 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
17642 member. Assume drive has partitions.
17643 (grub_util_biosdisk_open): Access device names via `.device' struct
17644 member.
17645 (open_device): Likewise.
17646 (find_drive): Likewise.
17647 (read_device_map): Adjust map[] usage to match the new struct
17648 definition. Don't check for duplicates (still possible, but not cheap
17649 anymore).
17650 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
17651 (make_device_name): Remove assumption of BIOS-like drive names.
17652
22f16596 176532008-05-30 Pavel Roskin <proski@gnu.org>
17654
17655 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
17656 compiling execute.c doesn't need grub_script.tab.h anymore.
17657 (normal/command.c_DEPENDENCIES): Likewise.
17658 (normal/function.c_DEPENDENCIES): Likewise.
17659 * conf/i386-ieee1275.rmk: Likewise.
17660 * conf/i386-linuxbios.rmk: Likewise.
17661 * conf/i386-pc.rmk: Likewise.
17662 * conf/powerpc-ieee1275.rmk: Likewise.
17663 * conf/sparc64-ieee1275.rmk: Likewise.
17664
528ad8f2 176652008-05-29 Pavel Roskin <proski@gnu.org>
17666
d1dff95d 17667 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
17668 when scanning metadata for volume group name.
17669
528ad8f2 17670 * include/grub/script.h: Don't include grub_script.tab.h. It's
17671 a generated file, which may only be included from the files with
17672 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
17673 use union YYSTYPE, as the later allows forward declaration.
17674 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
17675
47248e08 176762008-05-29 Robert Millan <rmh@aybabtu.com>
17677
17678 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
17679 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
17680 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
17681 (grub_console_checkkey): Add grub_dprintf() call to report unknown
17682 scan codes.
17683
ee632529 176842008-05-29 Robert Millan <rmh@aybabtu.com>
17685
17686 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
17687 control key combinations.
17688
eee96e08 176892008-05-29 Robert Millan <rmh@aybabtu.com>
17690
17691 * util/powerpc/ieee1275/grub-install.in: Move from here ...
17692 * util/ieee1275/grub-install.in: ... to here.
17693 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
17694 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
17695 (grub_install_SOURCES): Likewise.
17696
da9a6a94 176972008-05-29 Robert Millan <rmh@aybabtu.com>
17698
17699 * fs/affs.c: Update copyright year.
17700 * fs/ext2.c: Likewise.
17701 * fs/fshelp.c: Likewise.
17702 * fs/hfsplus.c: Likewise.
17703 * fs/ntfs.c: Likewise.
17704 * fs/xfs.c: Likewise.
17705 * include/grub/fshelp.h: Likewise.
17706 * util/grub-mkdevicemap.c: Likewise.
17707
12e65f3a 177082008-05-28 Robert Millan <rmh@aybabtu.com>
17709
17710 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
17711 might need to be fatfs to support some firmware implementations
17712 (e.g. OFW or EFI).
17713
23023641 177142008-05-28 Robert Millan <rmh@aybabtu.com>
17715
17716 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
17717 devices.
17718 * util/grub-mkdevicemap.c (get_mmc_disk_name)
17719 (make_device_map): Likewise.
17720
887d2619 177212008-05-20 Bean <bean123ch@gmail.com>
17722
17723 * fs/fshelp.c (grub_fshelp_map_block): New function.
17724 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
17725 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
17726
17727 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
17728 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
17729 (grub_fshelp_journal): New structure.
17730 (grub_fshelp_map_block): New function prototype.
17731 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
17732 (grub_fshelp_map_block): Likewise.
17733
17734 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
17735 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
17736 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
17737 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
17738 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
17739 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
17740 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
17741 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
17742 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
17743 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
17744 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
17745 (grub_ext2_sblock): New members for journal support.
17746 (grub_ext3_journal_header): New structure.
17747 (grub_ext3_journal_revoke_header): Likewise.
17748 (grub_ext3_journal_block_tag): Likewise.
17749 (grub_ext3_journal_sblock): Likewise.
17750 (grub_fshelp_node): New members logfile and journal.
17751 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
17752 grub_fshelp_map_block to get real block number.
17753 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
17754 number.
17755 (grub_ext2_read_inode): Likewise.
17756 (grub_ext3_get_journal): New function.
17757 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
17758 (grub_ext2_close): Release memory used by journal.
17759
17760 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
17761 (REISERFS_MAGIC_DESC_BLOCK): New macro.
17762 (grub_reiserfs_transaction_header): Renamed to
17763 grub_reiserfs_description_block, replace field data with real_blocks.
17764 (grub_reiserfs_commit_block): New structure.
17765 (grub_reiserfs_data): New member journal.
17766 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
17767 number.
17768 (grub_reiserfs_read_symlink): Likewise.
17769 (grub_reiserfs_iterate_dir): Likewise.
17770 (grub_reiserfs_open): Likewise.
17771 (grub_reiserfs_read): Likewise.
17772 (grub_reiserfs_get_journal): New function.
17773 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
17774 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
17775 using grub_reiserfs_get_journal.
17776 (grub_reiserfs_close): Release memory used by journal.
17777
17778 * fs/affs.c (grub_affs_read_block): Change block type to
17779 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
17780
17781 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
17782
17783 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
17784
17785 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
17786
17787 * fs/udf.c (grub_udf_read_block): Change block type to
17788 grub_disk_addr_t. Use type cast to avoid warning.
17789
17790 * fs/xfs.c (grub_xfs_read_block): Likewise.
17791
b7c6bed5 177922008-05-16 Christian Franke <franke@computer.org>
17793
17794 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
17795 to ensure that break with ESC will always work.
17796 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
17797 Remove ESC from keyboard queue.
17798
eedf167f 177992008-05-16 Christian Franke <franke@computer.org>
17800
17801 * util/biosdisk.c: [__CYGWIN__] Add includes.
17802 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
17803 (get_os_disk): Move variable declarations to OS specific
17804 parts to avoid warning.
17805 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
17806 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
17807 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
17808 Cygwin.
17809 * util/getroot.c: [__CYGWIN__] Add includes.
17810 (strip_extra_slashes): Fix "/" case.
17811 [__CYGWIN__] (get_win32_path): New function.
17812 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
17813 [__CYGWIN__] (find_root_device): Disable.
17814 [__CYGWIN__] (get_bootsec_serial): New function.
17815 [__CYGWIN__] (find_cygwin_root_device): Likewise.
17816 [__linux__] (grub_guess_root_device): Add early returns to simplify
17817 structure.
17818 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
17819 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
17820 check for Linux only.
17821
a079699e 178222008-05-15 Bean <bean123ch@gmail.com>
17823
17824 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
17825 keyboard hang problem in apple's intel mac.
17826
1cf4059a 178272008-05-09 Robert Millan <rmh@aybabtu.com>
17828
17829 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
17830 devices.
17831 * util/grub-mkdevicemap.c (get_virtio_disk_name)
17832 (make_device_map): Likewise.
17833 Reported by Aurelien Jarno <aurel32@debian.org>
17834
ed759390 178352008-05-07 Ian Campbell <ijc@hellion.org.uk>
17836
17837 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
17838 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
17839 (make_device_map): Output entries for xvd type disks.
17840
b56c4eaa 178412008-05-07 Robert Millan <rmh@aybabtu.com>
17842
17843 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
17844 devices.
17845 * util/grub-mkdevicemap.c (get_cciss_disk_name)
17846 (make_device_map): Likewise.
17847 Reported by Roland Dreier <rdreier@cisco.com>
17848
7f8866ed 178492008-05-07 Robert Millan <rmh@aybabtu.com>
17850
17851 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
17852 grub_strstr() call. Correct a few mistakes in failure path handling.
17853
b0346e0f 178542008-05-06 Robert Millan <rmh@aybabtu.com>
17855
17856 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
17857 Do not print a trailing slash (therefore, the root directory is an
17858 empty string).
17859 (convert_system_path_to_grub_path): Do not remove trailing slash
17860 from make_system_path_relative_to_its_root() output.
17861
17862 * util/i386/pc/grub-install.in: Add trailing slash to output from
17863 make_system_path_relative_to_its_root().
17864
6cf12cbd 178652008-05-06 Robert Millan <rmh@aybabtu.com>
17866
17867 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
17868 ensures that output lines aren't intermangled with those sent to
17869 stderr (via grub_util_info()).
17870 * util/grub-probe.c (grub_refresh): Likewise.
17871 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
17872
0fbb3117 178732008-05-05 Christian Franke <franke@computer.org>
17874
17875 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
17876 Add Cygwin device names.
17877 (get_ide_disk_name) [__CYGWIN__]: Likewise.
17878 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
17879 (check_device): Return error instead of success on empty name.
17880 (make_device_map): Move label inside linux specific code to
17881 prevent compiler warning.
17882
8124cdb7 178832008-04-30 Robert Millan <rmh@aybabtu.com>
17884
17885 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
17886 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
17887 first boot option.
17888 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
17889
094c01d0 178902008-04-29 Robert Millan <rmh@aybabtu.com>
17891
17892 * docs/grub.cfg: New file (example GRUB configuration).
17893
f4b1fc02 178942008-04-26 Robert Millan <rmh@aybabtu.com>
17895
329ce2a5 17896 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
17897 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
17898 and `disk/ieee1275/nand.c'.
f4b1fc02 17899
25f16ec1 179002008-04-25 Bean <bean123ch@gmail.com>
f19dbdb7 17901
25f16ec1 17902 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
17903 i386-linuxbios.
17904
17905 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
17906 change the buffer size to 4096 for cdrom device.
17907
17908 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
17909 and nand.mod.
17910 (_linux_mod_SOURCES): New variable.
17911 (_linux_mod_CFLAGS): Likewise.
17912 (_linux_mod_LDFLAGS): Likewise.
17913 (linux_mod_SOURCES): Likewise.
17914 (linux_mod_CFLAGS): Likewise.
17915 (linux_mod_LDFLAGS): Likewise.
17916 (nand_mod_SOURCES): Likewise.
17917 (nand_mod_CFLAGS): Likewise.
17918 (nand_mod_LDFLAGS): Likewise.
17919
17920 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
17921 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
17922 type property. (nand device in olpc don't have this property)
17923
17924 * include/grub/disk.h (grub_disk_dev_id): New macro
17925 GRUB_DISK_DEVICE_NAND_ID.
17926
17927 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
17928 function prototype.
17929 (grub_rescue_cmd_initrd): Likewise.
17930
17931 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
17932 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
17933 ofw_cif_handler and ofw_idt, adjust padding number.
f19dbdb7 17934
25f16ec1 17935 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
17936 GRUB_MACHINE_IEEE1275 is defined.
17937
17938 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
17939 Use NESTED_FUNC_ATTR attribute on the hook parameter.
17940
17941 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
17942 on nested function heap_init.
17943 (grub_upper_mem): New variable for i386-ieee1275.
17944 (grub_get_extended_memory): New function for i386-ieee1275.
17945 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
17946
17947 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
17948 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
17949 property.
f19dbdb7 17950
25f16ec1 17951 * loader/i386/ieee1275/linux.c: New file.
17952
17953 * loader/i386/ieee1275/linux_normal.c: New file.
17954
17955 * disk/ieee1275/nand.c: New file.
17956
e89d61e9 179572008-04-18 Thomas Schwinge <tschwinge@gnu.org>
17958
17959 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
17960 value.
17961 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
17962
602566f6 179632008-04-18 Robert Millan <rmh@aybabtu.com>
17964
17965 Restructures early code path on ieee1275 to unify grub_main() as
17966 the first C function that is executed in every platform.
17967
17968 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
17969 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
17970 cmain().
17971 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
17972 * kern/ieee1275/cmain.c (cmain): Rename to ...
17973 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
17974 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
17975 at the beginning.
17976
57490c2b 179772008-04-18 Robert Millan <rmh@aybabtu.com>
17978
17979 * util/update-grub.in: Fix syntax error when setting
17980 `GRUB_PRELOAD_MODULES'.
17981 Reported by Stephane Chazelas <stephane@artesyncp.com>
17982
1977517d 179832008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
17984
17985 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
17986 section into account, newer toolchains generate unique build ids
17987 * configure.ac: remove the test for --build-id=none acceptance,
e0c5dacb 17988 we want build ids to be preserved
1977517d 17989 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
17990 far from other sections don't cause the raw binary images grow
17991 size
17992
bfb1f1a2 179932008-04-15 Robert Millan <rmh@aybabtu.com>
17994
17995 * disk/lvm.c: Update copyright year.
17996 * kern/misc.c: Likewise.
17997
01979850 179982008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
17999
18000 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
f19dbdb7 18001 there is no memory left for physical volume name.
01979850 18002
0a1150e2 180032008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
18004
18005 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
18006 volume name mapping to support bigger than 9 character names properly.
18007
82ead3fe 180082008-04-13 Robert Millan <rmh@aybabtu.com>
18009
18010 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
18011 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
18012
e54a72f5 180132008-04-13 Christian Franke <franke@computer.org>
18014
18015 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
18016 to create a floppy emulation boot CD when non emulation mode
18017 does not work.
18018 Enable Joliet CD filesystem extension.
18019
9fe86034 180202008-04-13 Robert Millan <rmh@aybabtu.com>
18021
18022 * kern/misc.c (grub_strncat): Fix off-by-one error.
18023 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
18024
18025 * kern/env.c (grub_env_context_close): Clear current context, not
18026 previous one.
18027 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
18028
18029 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
18030
7ceeee39 180312008-04-13 Robert Millan <rmh@aybabtu.com>
18032
18033 Improve robustness when handling LVM.
18034
18035 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
f19dbdb7 18036 (and leave `*p' unmodified).
7ceeee39 18037 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
18038 through it.
18039 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
18040 iterating through it.
18041 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
18042 through it.
fe6b695a 18043 (grub_lvm_scan_device): Check the return value (and fail gracefully
7ceeee39 18044 when due) on each grub_lvm_getvalue() or grub_strstr() call.
18045 Don't assume `vg->pvs != NULL' when iterating through it.
18046
58cd3d85 180472008-04-13 Robert Millan <rmh@aybabtu.com>
18048
18049 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
18050 * genmk.rb (partmap): New variable.
18051 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
18052 (#{partmap}): New target rule.
18053 * genpartmaplist.sh: New file.
18054 * Makefile.in (pkglib_DATA): Add partmap.lst.
18055 (partmap.lst): New target rule.
18056 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
18057 modules (including all partition maps), instead of preloading them.
18058
78b51059 180592007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
18060
18061 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
18062 `linux-boot-prober' (if installed) to detect other operating
18063 systems which are installed on the computer and add them to
18064 the boot menu.
18065 * conf/common.rmk: Build and install 30_os-prober.
18066
a91627b4 180672008-04-12 Robert Millan <rmh@aybabtu.com>
18068
18069 * kern/powerpc/ieee1275/init.c: Move from here ...
18070 * kern/ieee1275/init.c: ... to here. Update all users.
18071
18072 * kern/powerpc/ieee1275/cmain.c: Move from here ...
18073 * kern/ieee1275/cmain.c: ... to here. Update all users.
18074
18075 * kern/powerpc/ieee1275/openfw.c: Move from here ...
18076 * kern/ieee1275/openfw.c: ... to here. Update all users.
18077
18078 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
18079 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
18080
322562ea 180812008-04-10 Pavel Roskin <proski@gnu.org>
18082
18083 * configure.ac: Always use "_cv_" in cache variables for
18084 compatibility with Autoconf 2.62.
18085
a02a73c5 180862008-04-07 Robert Millan <rmh@aybabtu.com>
18087
18088 Revert grub/machine/init.h addition by Pavel (since it breaks on
18089 i386-ieee1275 and others):
18090 * util/i386/pc/misc.c: Remove grub/machine/init.h.
18091 * util/powerpc/ieee1275/misc.c: Likewise.
18092
25c024b1 180932008-04-07 Robert Millan <rmh@aybabtu.com>
18094
18095 * util/grub-probe.c (probe): Improve error message.
18096
3cbd2f98 180972008-04-07 Robert Millan <rmh@aybabtu.com>
18098
18099 * util/biosdisk.c (read_device_map): Skip devices that don't exist
18100 (this prevents the presence of a bogus entry from ruining the whole
18101 thing).
18102
87a297bf 181032008-04-06 Pavel Roskin <proski@gnu.org>
18104
36747a62 18105 * util/biosdisk.c: Include grub/util/biosdisk.h.
18106 * util/grub-fstest.c (execute_command): Make static.
18107 * util/grub-mkdevicemap.c (check_device): Likewise.
18108 * util/i386/pc/misc.c: Include grub/machine/init.h.
18109 * util/powerpc/ieee1275/misc.c: Likewise.
18110 * util/lvm.c: Include grub/util/lvm.h.
18111 * util/misc.c: Include grub/kernel.h, grub/misc.h and
18112 grub/cache.h.
18113 * util/raid.c: Include grub/util/raid.h.
18114 (grub_util_getdiskname): Make static.
18115
87a297bf 18116 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
18117 grub_hostfs_fini(), as they are called from grub_init_all() and
18118 grub_fini_all() respectively. This fixes an infinite loop in
18119 grub-fstest due to double registration of hostfs.
18120 Reported by Christian Franke <Christian.Franke@t-online.de>
18121
f6ce7629 181222008-04-05 Pavel Roskin <proski@gnu.org>
18123
18124 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
18125 all 8 functions. Otherwise, probe function 0 only.
18126
070e49e4 181272008-04-04 Pavel Roskin <proski@gnu.org>
18128
8b088a4c 18129 * commands/lspci.c (grub_lspci_iter): Print the bus number
18130 correctly.
18131
4f657021 18132 * commands/lspci.c (grub_pci_classes): Fix typos.
18133 (grub_lspci_iter): Don't print func twice. Print vendor ID
18134 before device ID, as it's normally done.
18135
070e49e4 18136 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
18137 Fix signedness warnings.
18138 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
18139 Likewise.
18140 * util/ieee1275/get_disk_name.c: Include config.h so that
18141 _GNU_SOURCE is defined and getline() is declared. Mark an
18142 unused argument as such. Fix a signedness warning.
18143
ba7328dc 181442008-04-02 Pavel Roskin <proski@gnu.org>
18145
26887f22 18146 * genkernsyms.sh.in: Use more robust assignments for CC and
18147 srcdir. Quote srcdir.
18148 * gensymlist.sh.in: Likewise. Assert at the compile time that
18149 the symbol table is not empty.
18150
ba7328dc 18151 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
18152 * fs/cpio.c (grub_cpio_read): Likewise.
18153
0f582c6b 181542008-04-01 Pavel Roskin <proski@gnu.org>
18155
4b6e1995 18156 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
18157 * disk/host.c (grub_host_open): Likewise.
18158 * disk/loopback.c (grub_loopback_open): Likewise.
18159 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
18160 disk->id as in disk/host.c, not a multi-character constant.
18161
828a2768 18162 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
18163 later is obsolete, potentially dangerous and sets a bad example.
18164 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
18165 * util/misc.c (grub_util_get_image_size): Likewise.
18166
2bb4fb47 18167 * disk/loopback.c (options): Improve help for "--partitions".
18168
0f582c6b 18169 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
18170 options to align them with the short options, e.g. "echo -e".
18171
a33224e0 181722008-03-31 Bean <bean123ch@gmail.com>
18173
18174 * video/reader/png.c (grub_png_data): New member is_16bit and
18175 image_data.
18176 (grub_png_decode_image_header): Detect 16 bit png image.
18177 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
18178 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
18179 (grub_video_reader_png): Release memory occupied by image_data.
18180
18181 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
18182 4096 bytes.
18183 (grub_nfs_mount): Skip the test for sector per cluster.
18184
18185 * include/grub/ntfs.h (MAX_SPC): Removed.
18186
86cb4f54 181872008-03-31 Bean <bean123ch@gmail.com>
18188
18189 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
18190 (grub_probe_SOURCES): Add fs/afs.c.
18191 (grub_fstest_SOURCES): Likewise.
18192 (afs_mod_SOURCES): New variable.
18193 (afs_mod_CFLAGS): Likewise.
18194 (afs_mod_LDFLAGS): Likewise.
18195
18196 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
18197 (grub_emu_SOURCES): Likewise.
18198
18199 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
18200
18201 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18202
18203 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
18204
18205 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18206
18207 * fs/afs.c: New file.
18208
17c74c21 182092008-03-30 Pavel Roskin <proski@gnu.org>
18210
4cb68e89 18211 * disk/host.c: Include grub/misc.h to fix a warning.
18212 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
18213 warnings about implicit declarations.
18214
8790bb04 18215 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
18216 variable.
18217 * include/grub/i386/loader.h: Change declaration of
18218 grub_linux_boot() to match what grub_loader_set() expects.
18219 * util/getroot.c (grub_guess_root_device): Return const char* to
18220 fix a warning.
18221 * util/grub-probe.c (probe): Fix a warning about uninitialized
18222 abstraction_name variable.
18223 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
18224 second argument as unused to fix a warning.
18225
9a3f3296 18226 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
18227 missing grub_error() call.
18228
0ecef90d 18229 * util/update-grub_lib.in: Define datarootdir, since Autoconf
18230 2.60 and newer uses it to define datadir.
18231
0bf6d401 18232 * commands/sleep.c: Fix warning about implicit declaration.
18233 * disk/memdisk.c: Likewise.
18234 * loader/aout.c: Likewise.
18235 * loader/i386/bsd_normal.c: Likewise.
18236 * util/grub-probe.c: Likewise.
18237
7cdacf97 18238 * commands/i386/cpuid.c (has_longmode): Make static.
18239 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
18240 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
18241
17c74c21 18242 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
18243 GDT. This is more robust, as %ds can change.
18244 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
18245 calling real_to_prot().
18246 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
18247
80a3e68b 182482008-03-28 Pavel Roskin <proski@gnu.org>
18249
18250 * kern/i386/pc/startup.S: Assert that uncompressed functions
18251 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
18252 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
18253 code, as they push parts of the code (error handlers) beyond
18254 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
18255 code as correctness and size.
18256
77bcd272 182572008-03-28 Pavel Roskin <proski@gnu.org>
18258
18259 * kern/i386/pc/startup.S
18260 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
18261 data block address to the real mode, keep offset minimal. This
18262 works around a bug in AWARD BIOS on old Athlon systems, which
18263 makes CD detection hang.
18264
c5dfd43b 182652008-03-26 Pavel Roskin <proski@gnu.org>
18266
18267 * normal/color.c (grub_parse_color_name_pair): Make `name' a
18268 const.
18269 * include/grub/normal.h: Add grub_parse_color_name_pair()
18270 declaration.
18271
bf962df2 182722008-03-24 Bean <bean123ch@gmail.com>
18273
18274 * disk/i386/pc/biosdisk.c (cd_start): Removed.
18275 (cd_count): Removed.
18276 (cd_drive): New variable.
18277 (grub_biosdisk_get_drive): Don't check for (cdN) device.
18278 (grub_biosdisk_call_hook): Likewise.
18279 (grub_biosdisk_iterate): Change cdrom detection method.
18280 (grub_biosdisk_open): Replace cd_start with cd_drive.
18281 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
18282 detect cdrom device.
18283
18284 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
18285 Removed.
18286 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
18287 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
18288 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
18289 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
18290 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
18291 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
18292 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
18293 (grub_biosdisk_cdrp): New structure.
18294 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
18295
18296 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
18297
18298 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
18299 device.
18300
18301 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
18302 New function.
18303
68e7fc7a 183042008-03-20 Robert Millan <rmh@aybabtu.com>
18305
18306 Remove 2 TiB limit in ata.mod.
18307 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
18308 (grub_ata_dumpinfo): Print sector count with 0x%llx.
18309 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
18310 grub_uint64_t instead of grub_uint32_t.
18311
38ad2cf5 183122008-03-05 Bean <bean123ch@gmail.com>
18313
18314 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
18315 (grub_multiboot): Set boot device.
18316
18317 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
18318
2b89344e 183192008-03-02 Bean <bean123ch@gmail.com>
18320
18321 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
18322 symlink_buffer.
18323
87a95d1f 183242008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
18325
18326 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
18327 texinfo.tex.
18328
18329 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
18330 modified.
18331
18332 * docs/fdl.texi: New file.
f19dbdb7 18333
87a95d1f 18334 * docs/mdate-sh: New file. Copied from gnulib.
18335 * docs/texinfo.tex: Likewise.
18336
18337 * config.guess: Updated from gnulib.
18338 * install-sh: Likewise.
18339
7dc15d8e 183402008-02-28 Robert Millan <rmh@aybabtu.com>
18341
18342 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
18343 (aout_mod_SOURCES): New variable.
18344 (aout_mod_CFLAGS): Likewise.
18345 (aout_mod_LDFLAGS): Likewise.
18346
18347 * conf/i386-ieee1275.rmk: Likewise.
18348
b00ab696 183492008-02-28 Robert Millan <rmh@aybabtu.com>
18350
18351 * util/update-grub.in: Reorganise terminal validity check. Accept
18352 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
18353 Based on suggestion by Franklin PIAT.
18354
79ca2d78 183552008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
18356
18357 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
18358 function.
18359 * util/getroot.c (grub_util_check_block_device): New function that
18360 returns the given argument if it is a block device and returns NULL else.
18361 * util/grub-probe.c (argument_is_device): New variable.
18362 (probe): Promote device_name from a variable to an argument. Receive
18363 device_name from grub_util_check_block_device() if path is NULL and from
18364 grub_guess_root_device() else. Do not free() device_name anymore.
f19dbdb7 18365 (options): Introduce new parameter '-d, --device'.
79ca2d78 18366 (main): Add description of the new parameter to the help screen.
18367 Rename path variable to argument. Set argument_is_device if the '-d'
18368 option is given. Pass argument to probe() depending on
18369 argument_is_device.
18370
0d16e571 183712008-02-24 Bean <bean123ch@gmail.com>
18372
18373 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
18374 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
18375 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
18376 (GRUB_ISO9660_VOLDESC_PART): Likewise.
18377 (GRUB_ISO9660_VOLDESC_END): Likewise.
18378 (grub_iso9660_primary_voldesc): New member escape.
18379 (grub_iso9660_data): New member joliet.
18380 (grub_iso9660_convert_string): New function.
18381 (grub_iso9660_mount): Detect joliet extension.
18382 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
18383 (grub_iso9660_iso9660_label): Likewise.
18384
18385 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
18386 (grub_setup_SOURCES): Add fs/udf.c.
18387 (grub_fstest_SOURCES): Likewise.
18388 (udf_mod_SOURCES): New variable.
18389 (udf_mod_CFLAGS): Likewise.
18390 (udf_mod_LDFLAGS): Likewise.
18391
18392 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
18393 (grub_emu_SOURCES): Likewise.
18394
18395 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
18396
18397 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18398
18399 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
18400
18401 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18402
18403 * fs/udf.c: New file.
18404
8a594a17 184052008-02-24 Robert Millan <rmh@aybabtu.com>
18406
18407 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
18408 (normal/lexer.c_DEPENDENCIES): New variables.
18409 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
18410 (normal/lexer.c_DEPENDENCIES): Likewise.
18411 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
18412 (normal/lexer.c_DEPENDENCIES): Likewise.
18413 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
18414 (normal/lexer.c_DEPENDENCIES): Likewise.
18415 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
18416 (normal/lexer.c_DEPENDENCIES): Likewise.
18417 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
18418 (normal/lexer.c_DEPENDENCIES): Likewise.
18419
2dc33c03 184202008-02-23 Robert Millan <rmh@aybabtu.com>
18421
18422 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
18423 since they were intended to be in hex. This didn't break previously
18424 because of a bug in gpt_partition_map_iterate() (see below).
18425
18426 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
18427 when checking the validity of GPT header.
18428 Remove `partno', since it always provides the same information as `i'.
18429
f6f4cfb0 184302008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
18431
18432 * include/grub/efi/time.h: Fix a wrong comment.
18433
79ff665f 184342008-02-19 Pavel Roskin <proski@gnu.org>
18435
18436 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
18437 message.
18438
d38e24c2 184392008-02-19 Bean <bean123ch@gmail.com>
18440
18441 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
18442 (aout_mod_SOURCES): New variable.
18443 (aout_mod_CFLAGS): Likewise.
18444 (aout_mod_LDFLAGS): Likewise.
18445 (_bsd_mod_SOURCES): New variable.
18446 (_bsd_mod_CFLAGS): Likewise.
18447 (_bsd_mod_LDFLAGS): Likewise.
18448 (bsd_mod_SOURCES): New variable.
18449 (bsd_mod_CFLAGS): Likewise.
18450 (bsd_mod_LDFLAGS): Likewise.
18451
18452 * include/grub/aout.h: New file.
18453
18454 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
18455
18456 * include/grub/i386/bsd.h: New file.
18457
18458 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
18459 to make it public.
18460
18461 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
18462 function is called, so that it's possible to change it inside the hook.
18463 (grub_elf64_load): Likewise.
18464 (grub_elf_file): Don't close the file if elf header is not found.
18465 (grub_elf_close): Close the file if grub_elf_file fails (The new
18466 grub_elf_file won't close it).
18467 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
18468 (grub_elf64_size): Likewise.
18469
18470 * kern/i386/loader.S (grub_unix_real_boot): New function.
18471
18472 * loader/aout.c: New file.
18473
18474 * loader/i386/bsd.c: New file.
18475
18476 * loader/i386/bsd_normal.c: New file.
18477
18478 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
18479
18480 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
fe987087 18481 can test other formats.
d38e24c2 18482
b93bdb0f 184832008-02-19 Robert Millan <rmh@aybabtu.com>
18484
18485 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
18486 (grub_gpt_partition_type_empty): Redefine with macro from
18487 `<grub/gpt_partition.h>'.
18488 (gpt_partition_map_iterate): Adjust partition type comparison.
18489
18490 Export `entry' as partmap-specific `part.data' struct.
18491 (grub_gpt_header, grub_gpt_partentry): Move from here ...
18492
18493 * include/grub/gpt_partition.h (grub_gpt_header)
18494 (grub_gpt_partentry): ... to here (new file).
18495
18496 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
18497
18498 (grub_gpt_partition_type_bios_boot): New const variable, defined
18499 with macro from `<grub/gpt_partition.h>'.
18500
18501 (setup): Replace `first_start' with `embed_region', which keeps
18502 track of the embed region (and is partmap-agnostic).
18503
18504 Replace find_first_partition_start() with find_usable_region(),
18505 which finds a usable region for embedding using partmap-specific
18506 knowledge (supports PC/MSDOS and GPT).
18507
18508 Fix all assumptions that the embed region start at sector 1, using
18509 `embed_region.start' from now on. Similarly, use `embed_region.end'
18510 rather than `first_start' to calculate available size.
18511
18512 In grub_util_info() message, replace "into after the MBR" with an
18513 indication of the specific sector our embed region starts at.
18514
66cb40f6 185152008-02-19 Robert Millan <rmh@aybabtu.com>
18516
18517 * DISTLIST: Replace `commands/ieee1275/halt.c' and
18518 `commands/ieee1275/reboot.c' with `commands/halt.c' and
18519 `commands/reboot.c'.
18520 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
18521 (halt_mod_SOURCES): Likewise.
18522 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
18523 (halt_mod_SOURCES): Likewise.
18524
b7202015 185252008-02-17 Christian Franke <franke@computer.org>
18526
18527 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
18528
32b0fc49 185292008-02-17 Robert Millan <rmh@aybabtu.com>
18530
18531 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
18532 set `first_start' to 0 for non-PC/MSDOS partition maps.
18533
aca63502 185342008-02-16 Robert Millan <rmh@aybabtu.com>
18535
18536 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
18537 do not assume partition map is PC/MSDOS before performing checks that
18538 are specific to that layout.
18539
0de8be86 185402008-02-13 Robert Millan <rmh@aybabtu.com>
18541
18542 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
18543 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
18544 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
18545
c3db8364 185462008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
18547
18548 * configure.ac: Only a cosmetic change on the handling of
18549 -fno-stack-protector.
18550
f714229e 185512008-02-12 Alexandre Boeglin <alex@boeglin.org>
18552
c3db8364 18553 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
18554 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
18555 reboot.c.
f714229e 18556 (grub_install_SOURCES): Add halt.mod and reboot.mod.
18557 (halt_mod_SOURCES): New variable.
18558 (halt_mod_CFLAGS): Likewise.
18559 (halt_mod_LDFLAGS): Likewise.
18560 (reboot_mod_SOURCES): Likewise.
18561 (reboot_mod_CFLAGS): Likewise.
18562 (reboot_mod_LDFLAGS): Likewise.
18563
c3db8364 18564 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
18565 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
18566 reboot.c.
f714229e 18567 (halt_mod_SOURCES): Likewise.
18568 (reboot_mod_SOURCES): Likewise.
18569
c3db8364 18570 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
18571 commands/i386/pc/reboot.c by commands/reboot.c.
f714229e 18572 (reboot_mod_SOURCES): Likewise.
18573
18574 * commands/i386/pc/reboot.c: merge this file ...
18575
18576 * commands/ieee1275/reboot.c: ... and this file ...
18577
18578 * commands/reboot.c: ... to this file.
c3db8364 18579 Add some precompiler directive to include the correct header for
18580 each machine.
f714229e 18581
18582 * commands/ieee1275/halt.c: move this file ...
18583
18584 * commands/halt.c: ... to here.
c3db8364 18585 Add some precompiler directive to include the correct header for
18586 each machine.
f714229e 18587
18588 * include/grub/efi/efi.h (grub_reboot): New function declaration.
18589 (grub_halt): Likewise.
18590
18591 * kern/efi/efi.c (grub_reboot): New function.
18592 (grub_halt): Likewise.
18593
c74493e0 185942008-02-12 Robert Millan <rmh@aybabtu.com>
18595
18596 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
18597 /dev (like it is done for /dev/mapper). This doesn't provide support
18598 for EVMS, but at least it is now easy to identify the problem when it
18599 arises.
18600
d0db4b04 186012008-02-11 Robert Millan <rmh@aybabtu.com>
18602
18603 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
18604 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
18605 comparing it with -1, not 0.
18606
bf748642 186072008-02-10 Robert Millan <rmh@aybabtu.com>
18608
18609 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
18610 `disk/lvm.c'.
18611 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18612 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
18613
18614 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
18615 `disk/lvm.c' to the end of the list.
18616 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
18617 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
18618
b5db202a 186192008-02-10 Robert Millan <rmh@aybabtu.com>
18620
18621 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
18622 grub_print_error() instead. This will let user know why we're entering
18623 rescue mode.
18624 Based on suggestions from Sam Morris.
18625
83abee31 186262008-02-10 Alexandre Boeglin <alex@boeglin.org>
18627
18628 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
18629 on remaining N args, instead of "--" arg N times.
18630
78d5a08b 186312008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
18632
18633 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
18634 (fill_with_default_glyph): Changed to use unknown_glyph for fill
18635 pattern for unknown glyphs.
18636
68807e5f 186372008-02-09 Robert Millan <rmh@aybabtu.com>
18638
18639 * configure.ac: Probe for `help2man'.
18640 * Makefile.in (builddir): New variable.
18641 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
18642 or otherwise add a few flags/options to it.
18643 (install-local): For every executable utility or script that is
18644 installed, invoke $(HELP2MAN) to install a manpage based on --help
18645 output.
18646
18647 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
18648 that it doesn't prevent --help from working in build tree.
18649
18650 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
18651 with `bug-grub@gnu.org'.
18652 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
18653 * util/update-grub.in (usage): New function.
18654 Implement proper argument check, with support for --help and --version
18655 (as well as existing -y).
18656
186572008-02-09 Christian Franke <franke@computer.org>
0d9ff7f0 18658
18659 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
18660 avoid overwriting previous output.
18661 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
18662
c1962162 186632008-02-09 Robert Millan <rmh@aybabtu.com>
18664
18665 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
18666 drawing the menu.
18667
3dac2e3f 186682008-02-09 Robert Millan <rmh@aybabtu.com>
18669
18670 * commands/sleep.c: New file.
18671 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
18672 (sleep_mod_SOURCES): New variable.
18673 (sleep_mod_CFLAGS): Likewise.
18674 (sleep_mod_LDFLAGS): Likewise.
18675
7a634e08 186762008-02-09 Robert Millan <rmh@aybabtu.com>
18677
18678 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
18679 situations in which we can deduce the RAID size and the superblock
18680 doesn't match it.
18681
b92f0c18 186822008-02-09 Robert Millan <rmh@aybabtu.com>
18683
18684 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
18685 and return a grub_diskmemberlist_t composed of LVM physical volumes.
18686 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
18687
18688 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
18689 and return a grub_diskmemberlist_t composed of physical array members.
18690 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
18691
18692 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
18693 prototype.
18694 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
18695 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
18696 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
18697
18698 * util/grub-probe.c (probe): Move partmap probing code from here ...
18699 (probe_partmap): ... to here.
18700 (probe): Use probe_partmap() once for the disk we're probing, and
18701 additionally, when such disk contains a memberlist() struct member,
18702 once for each disk that is contained in the structure returned by
18703 memberlist().
18704
91a4bf68 187052008-02-09 Robert Millan <rmh@aybabtu.com>
18706
18707 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
18708 environment variable to 'all' in order to obtain debug output from
18709 non-util/ code.
18710 * util/i386/pc/grub-setup.c (main): Likewise.
18711
a96f9caa 187122008-02-08 Robert Millan <rmh@aybabtu.com>
18713
18714 * disk/raid.c (grub_raid_scan_device): Check for
18715 `array->device[sb.this_disk.number]' rather than for
18716 `array->device[sb.this_disk.number]->name', since the latter is not
fe6b695a 18717 guaranteed to be accessible.
a96f9caa 18718
b37a9222 187192008-02-08 Robert Millan <rmh@aybabtu.com>
18720
18721 * disk/raid.c: Update copyright.
18722 * fs/cpio.c: Likewise.
18723 * include/grub/raid.h: Likewise.
18724 * loader/i386/pc/multiboot.c: Likewise.
18725 * util/hostfs.c: Likewise.
18726
5626aee1 187272008-02-08 Robert Millan <rmh@aybabtu.com>
18728
18729 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
18730 to a grub_disk_t array.
18731 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
18732 `device[x]'.
18733 (grub_raid_scan_device): Replace `device[x].name' accesses with
18734 `device[x]->name'. Simplify initialization of `array->device[x]'.
18735
554f0187 187362008-02-08 Robert Millan <rmh@aybabtu.com>
18737
18738 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
18739 grub_dprintf() calls.
18740 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
18741 error message.
18742
1ec8425d 187432008-02-07 Christian Franke <franke@computer.org>
18744
18745 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
18746 instead of fseek and ftell to support large files.
18747 (grub_hostfs_read): Likewise.
18748
f2156fda 187492008-02-07 Robert Millan <rmh@aybabtu.com>
18750
18751 Patch from Jeroen Dekkers.
18752 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
fe6b695a 18753 failure, since successfully reading all array members might not be
f2156fda 18754 required.
18755
9216e0e7 187562008-02-06 Robert Millan <rmh@aybabtu.com>
18757
18758 * util/grub-probe.c (probe): Simplify partmap probing (with the
18759 assumption that the first word up to the underscore equals to
18760 the module name).
18761
b0dfd29a 187622008-02-06 Christian Franke <franke@computer.org>
18763
18764 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
18765 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
18766 last block of a cpio or tar stream.
18767 Check for "TRAILER!!!" instead of any empty data
18768 block to detect last block of a cpio stream.
18769 (grub_cpio_dir): Fix constness of variable np.
18770 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
18771 cpio or tar trailer is detected. This fixes a crash
18772 on open of a non existing file.
18773
c32865bf 187742008-02-05 Bean <bean123ch@gmail.com>
18775
18776 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
18777 address of entry.
18778 (grub_multiboot_load_elf64): Likewise.
18779 (grub_multiboot): Initialize mbi structure.
18780
18781 * util/grub-fstest.c: Don't include unused header file script.h.
18782
fe6b695a 18783 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
c32865bf 18784 of file.
18785 (grub_fstest_SOURCES): Likewise.
18786
409480b7 187872008-02-05 Robert Millan <rmh@aybabtu.com>
18788
18789 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
18790 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
18791 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
18792 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
18793
18794 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
18795 (translation_table): Replace hardcoded values with macros
18796 provided by `<grub/term.h>'.
18797
18798 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
18799 (keyboard_map): Correct/add a few values, with macros provided
18800 by `<grub/term.h>'.
18801 (keyboard_map_shift): Zero values that don't differ from their
18802 `keyboard_map' equivalents.
18803 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
18804 Discard the second scan code that is always sent by Caps lock.
18805 Only use `keyboard_map_shift' when it provides a non-zero value,
18806 otherwise fallback to `keyboard_map'.
18807
99fadbaa 188082008-02-04 Bean <bean123ch@gmail.com>
18809
18810 * Makefile.in (enable_grub_fstest): New variable.
18811
18812 * conf/common.rmk (grub_fstest_init.lst): New rule.
18813 (grub_fstest_init.h): Likewise.
18814 (grub_fstest_init.c): Likewise.
18815 (util/grub-fstest.c_DEPENDENCIES): New variable.
18816 (grub_fstest_SOURCES): Likewise.
18817
18818 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
18819
18820 * util/grub-fstest.c: New file.
18821
bf567c50 188222008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
18823
18824 Make grub-setup handle a separate root device.
f19dbdb7 18825
bf567c50 18826 * util/i386/pc/grub-setup.c (setup): Always open the root device,
18827 so that the root device can be compared with the destination
18828 device.
18829 When embedding the core image, if the root and destination devices
18830 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
18831 0xFF.
18832 When not embedding, set ROOT_DRIVE to 0xFF.
f19dbdb7 18833
9be6b98b 188342008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
18835
18836 Add support for having a grub directory in a different drive. This
18837 is still only the data handling part.
f19dbdb7 18838
9be6b98b 18839 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
18840 (codestart): Save %dh in GRUB_ROOT_DRIVE.
18841 (grub_root_drive): New variable.
18842
18843 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
18844 instead of GRUB_BOOT_DRIVE to construct a device name. Set
18845 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
18846 as it was.
18847
18848 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
18849
18850 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
18851 macro.
18852 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
18853
18854 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
18855 is bogus, because PXE booting does not specify any drive
18856 correctly.
18857
18858 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
18859 am not sure if this is really correct.
18860
18861 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
18862 is always identical to the boot drive when booting from a CD.
18863
18864 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
18865 longer.
18866 (root_drive): New variable.
18867 (real_start): Unconditionally set %dh to ROOT_DRIVE.
18868 (setup_sectors): Push %dx right after popping it, because %dh will
18869 be modified later.
18870 (copy_buffer): Restore %dx.
18871
e0ca0677 188722008-02-03 Robert Millan <rmh@aybabtu.com>
18873
18874 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
18875 use `cdboot.img' for cdrom images.
18876
3b3f6629 188772008-02-03 Robert Millan <rmh@aybabtu.com>
18878
18879 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
18880 only setup gfxterm when `font' command has succeeded.
18881
d42b3672 188822008-02-03 Robert Millan <rmh@aybabtu.com>
18883
18884 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
18885 (grub_rescue_cmd_multiboot_loader)
18886 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
18887
fa370ea6 188882008-02-03 Pavel Roskin <proski@gnu.org>
18889
e0c5dacb 18890 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
fa370ea6 18891 %edx and %esi from stack only after grub_gate_a20() is called.
18892 grub_gate_a20() clobbers %edx.
18893
f2a76e1d 188942008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
18895
18896 * configure.ac (AC_INIT): Bumped to 1.96.
18897
18898 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
18899 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
18900 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
18901 video/readers/png.c.
18902
90fd32d1 189032008-02-03 Bean <bean123ch@gmail.com>
9be665dd 18904
18905 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
18906 (cdboot_img_SOURCES): New variable.
18907 (cdboot_img_ASFLAGS): New variable.
18908 (cdboot_img_LDFLAGS): New variable.
18909
18910 * boot/i386/pc/cdboot.S: New file.
18911
18912 * disk/i386/pc/biosdisk.c (cd_start): New variable.
18913 (cd_count): Likewise.
18914 (grub_biosdisk_get_drive): Add support for cd device.
18915 (grub_biosdisk_call_hook): Likewise.
18916 (grub_biosdisk_iterate): Likewise.
18917 (grub_biosdisk_open): Likewise.
18918 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
18919 (grub_biosdisk_rw): Support reading from cd device.
18920 (GRUB_MOD_INIT): Iterate cd devices.
18921
18922 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
18923 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
18924 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
18925
18926 * kern/i386/pc/init.c (make_install_device): Check for cd device.
18927
4020aa53 189282008-02-02 Robert Millan <rmh@aybabtu.com>
18929
18930 * commands/read.c: New file.
18931 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
18932 (read_mod_SOURCES): New variable.
18933 (read_mod_CFLAGS): Likewise.
18934 (read_mod_LDFLAGS): Likewise.
18935
e03a1132 189362008-02-02 Robert Millan <rmh@aybabtu.com>
18937
18938 * normal/main.c (grub_normal_execute): Check for `menu->size' when
18939 determining whether menu has to be displayed.
18940
58c69220 189412008-02-02 Marco Gerards <marco@gnu.org>
18942
18943 * bus/pci.c: New file.
18944
18945 * include/grub/pci.h: Likewise.
18946
18947 * include/grub/i386/pc/pci.h: Likewise.
18948
18949 * commands/lspci.c: Likewise.
18950
18951 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
18952 `lspci.mod'.
18953 (pci_mod_SOURCES): New variable.
18954 (pci_mod_CFLAGS): Likewise.
18955 (pci_mod_LDFLAGS): Likewise.
18956 (lspci_mod_SOURCES): Likewise.
18957 (lspci_mod_CFLAGS): Likewise.
f19dbdb7 18958 (lspci_mod_LDFLAGS): Likewise.
58c69220 18959
c004e1b4 189602008-02-02 Bean <bean123ch@gmail.com>
18961
18962 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
18963 (grub_ufs_get_file_block): Fix indirect block calculation problem.
18964
18965 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
18966 (grub_xfs_btree_node): New structure.
18967 (grub_xfs_btree_root): New structure.
18968 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
18969 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
18970 (GRUB_XFS_EXTENT_BLOCK): Likewise.
18971 (GRUB_XFS_EXTENT_SIZE): Likewise.
18972 (grub_xfs_read_block): Support btree format type.
18973 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
18974 Use directory block as basic unit.
18975
18976 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
18977
18978 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
18979 __attribute__ ((__regparm__ (1))).
18980
f95562bf 189812008-02-01 Robert Millan <rmh@aybabtu.com>
18982
18983 Correct a mistake in previous commit.
18984
18985 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
18986 top.
18987 (normal/command.c_DEPENDENCIES): New variable.
18988
7d31f41f 189892008-02-01 Robert Millan <rmh@aybabtu.com>
18990
18991 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
18992 top.
18993 (normal/command.c_DEPENDENCIES): New variable.
18994 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
18995 * conf/i386-ieee1275.rmk: Likewise.
18996 * conf/i386-linuxbios.rmk: Likewise.
18997 * conf/i386-pc.rmk: Likewise.
18998 * conf/sparc64-ieee1275.rmk: Likewise.
18999 * conf/powerpc-ieee1275.rmk: Likewise.
19000 (grub_emu_SOURCES): Add `fs/fshelp.c'.
19001
19002 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
19003
60b6be74 190042008-02-01 Robert Millan <rmh@aybabtu.com>
19005
19006 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
19007 call at beginning of function.
19008
078522ab 190092008-01-31 Pavel Roskin <proski@gnu.org>
19010
19011 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
d2c11005 19012 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
19013 (grub_mkrescue_SOURCES): Likewise.
078522ab 19014 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
19015
ccaa8a5f 190162008-01-30 Robert Millan <rmh@aybabtu.com>
19017
19018 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
19019 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
19020 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
19021 (grub_probe_SOURCES): ... to here.
19022
19023 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
19024 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
19025 * conf/i386-ieee1275.rmk: Likewise.
19026 * conf/i386-linuxbios.rmk: Likewise.
19027 * conf/powerpc-ieee1275.rmk: Likewise.
19028
ae5a9cd7 190292008-01-30 Tristan Gingold <gingold@free.fr>
19030
19031 * kern/rescue.c: Silently accept empty lines.
19032
70bc2ef2 190332008-01-29 Bean <bean123ch@gmail.com>
19034
19035 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
19036 (real_code_2): Code cleanup and change comment style.
19037 (move_memory): Avoid using 32-bit address mode.
19038
6a4d50ea 190392008-01-29 Bean <bean123ch@gmail.com>
19040
19041 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
19042 (png_mod_SOURCES): New variable.
19043 (png_mod_CFLAGS): Likewise.
19044 (png_mod_LDFLAGS): Likewise.
19045
19046 * video/readers/png.c: New file.
19047
11cc30ac 190482008-01-28 Robert Millan <rmh@aybabtu.com>
19049
19050 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
19051 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
19052 `ifndef GRUB_MOD_GAP' hack.
19053 * util/elf/grub-mkimage.c (add_segments): Likewise.
19054
3abc589f 190552008-01-27 Robert Millan <rmh@aybabtu.com>
19056
19057 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
19058 `GRUB_MOD_GAP' for platforms in which it's not defined.
962ca133 19059 * util/elf/grub-mkimage.c (add_segments): Likewise.
3abc589f 19060
e1907778 190612008-01-27 Robert Millan <rmh@aybabtu.com>
19062
19063 Get grub-emu to build again (including parallel builds).
19064
19065 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
19066 Split into ...
19067 (util/grub-emu.c_DEPENDENCIES): ... this, ...
19068 (normal/execute.c_DEPENDENCIES): ... this, ...
19069 (grub-emu_DEPENDENCIES): ... and this.
19070
19071 * conf/i386-efi.rmk: Likewise.
19072 * conf/i386-linuxbios.rmk: Likewise.
19073 * conf/i386-ieee1275.rmk: Likewise.
19074 * conf/powerpc-ieee1275.rmk: Likewise.
19075 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
19076
2216b101 190772008-01-27 Robert Millan <rmh@aybabtu.com>
19078
19079 * NEWS: Add a few items.
19080
f75172d9 190812008-01-27 Robert Millan <rmh@aybabtu.com>
19082
19083 Fix parallel builds with grub-emu. Based on earlier commit for
19084 grub-probe and grub-setup.
19085
19086 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
19087 (util/grub-emu.c_DEPENDENCIES): ... this.
19088 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
19089 (util/grub-emu.c_DEPENDENCIES): ... this.
19090 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
19091 (util/grub-emu.c_DEPENDENCIES): ... this.
19092 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
19093 (util/grub-emu.c_DEPENDENCIES): ... this.
19094 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
19095 (util/grub-emu.c_DEPENDENCIES): ... this.
19096
3f51de77 190972008-01-27 Pavel Roskin <proski@gnu.org>
19098
19099 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
19100 to create a gap between _end and the modules added to the image
19101 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
19102 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
19103 * util/elf/grub-mkimage.c (add_segments): Likewise.
19104
2033f53e 191052008-01-26 Pavel Roskin <proski@gnu.org>
19106
19107 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
19108 just return an error.
19109
22da1f6f 191102008-01-26 Bean <bean123ch@gmail.com>
19111
19112 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
19113 (grub_reiserfs_get_item): Save offset of the next item.
19114 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
19115
2a9525e6 191162008-01-25 Robert Millan <rmh@aybabtu.com>
19117
19118 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
19119 make all filesystem sources appear together (possibly fixing omissions
19120 while at it).
19121 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
19122 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19123 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
19124 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19125
19126 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
19127 add `kern/file.c'.
19128 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
19129 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
19130 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
19131 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
19132
19133 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
19134 (probe): Add a sanity check to make sure of our ability to read
19135 requested files when probing for filesystem type.
19136
19137 * genmk.rb: Update copyright year (2007).
19138
19139 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
19140 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
19141 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
19142 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
19143 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
19144 : Remove function prototypes.
19145
b95f71b5 191462008-01-25 Robert Millan <rmh@aybabtu.com>
19147
19148 Revert my previous commits (based on wrong assumption of how grub_errno
19149 works).
19150
fe6b695a 19151 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
b95f71b5 19152 * kern/file.c (grub_file_open): Likewise.
19153
d08bbb49 191542008-01-24 Pavel Roskin <proski@gnu.org>
19155
19156 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
19157 that hang if GRUB tries to setup colors.
19158 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
19159 colors for firmwares that don't support it.
19160 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
19161 Recognize Open Hack'Ware, set flags to work around its
19162 limitations.
19163
605e36ed 191642008-01-24 Robert Millan <rmh@aybabtu.com>
19165
19166 * kern/file.c (grub_file_open): Do not account previous failures of
19167 unrelated functions when grub_errno is checked for.
19168 Reported by Oleg Strikov.
19169
bac332a1 191702008-01-24 Bean <bean123ch@gmail.com>
19171
19172 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
19173 (grub_ufs_sblock): New member volume name.
19174 (grub_ufs_find_file): Fix string copy bug.
19175 (grub_ufs_label): Implement this function properly.
19176
19177 * fs/hfs.c (grub_hfs_cnid_type): New enum.
19178 (grub_hfs_iterate_records): Use the correct file number for extents
19179 and catalog file. Fix problem in next index calculation.
19180 (grub_hfs_find_node): Replace recursive function call with loop.
19181 (grub_hfs_iterate_dir): Replace recursive function call with loop.
19182
15c80c09 191832008-01-23 Robert Millan <rmh@aybabtu.com>
19184
19185 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
19186 `<grub/symbol.h>' and `<grub/multiboot.h>'.
19187 (grub_multiboot2_real_boot): New function prototype.
19188
19189 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
19190 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
19191
19192 * kern/i386/ieee1275/init.c (grub_os_area_addr)
19193 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
19194
305338fd 191952008-01-23 Robert Millan <rmh@aybabtu.com>
19196
19197 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
19198 #ifdef'ed out grub_printf().
19199
3ea52685 192002008-01-23 Robert Millan <rmh@aybabtu.com>
19201
19202 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
19203 grub_dprintf calls, since they make "debug=all" mode unusable.
19204 (grub_console_checkkey): Likewise.
19205
5882ae4b 192062008-01-23 Robert Millan <rmh@aybabtu.com>
19207
19208 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
19209 `term/i386/pc/at_keyboard.c'.
19210 (pkglib_MODULES): Add `serial.mod'.
19211 (serial_mod_SOURCES): New variable.
19212 (serial_mod_CFLAGS): Likewise.
19213 (serial_mod_LDFLAGS): Likewise.
19214
19215 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
19216 `<grub/powerpc/ieee1275/console.h>'.
19217 (grub_keyboard_controller_init): New function prototype.
19218 (grub_console_checkkey): Likewise.
19219 (grub_console_getkey): Likewise.
19220
19221 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
19222 keyboard on i386.
19223
19224 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
19225 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
19226
06ab5303 192272008-01-23 Robert Millan <rmh@aybabtu.com>
19228
19229 * kern/i386/pc/init.c (make_install_device): When memdisk image is
19230 present, "(memdisk)/boot/grub" becomes the default prefix.
19231
19232 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
19233 a memdisk tarball with all the modules. Add --overlay=DIR option that
19234 allows users to overlay additional files into the image.
19235
dbb475a4 192362008-01-23 Robert Millan <rmh@aybabtu.com>
19237
19238 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
19239 and `machine/memory.h'.
19240 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
19241 (_multiboot_mod_SOURCES): New variable.
19242 (_multiboot_mod_CFLAGS): Likewise.
19243 (_multiboot_mod_LDFLAGS): Likewise.
19244 (multiboot_mod_SOURCES): Likewise.
19245 (multiboot_mod_CFLAGS): Likewise.
19246 (multiboot_mod_LDFLAGS): Likewise.
19247
19248 * include/grub/i386/ieee1275/loader.h: New file.
19249
19250 * include/grub/i386/ieee1275/machine.h: Likewise.
19251
19252 * include/grub/i386/ieee1275/memory.h: Likewise.
19253
19254 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
19255 variable declaration.
19256 (grub_os_area_size): Likewise.
19257
19258 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
19259 (grub_lower_mem, grub_upper_mem): New variables.
19260 (grub_stop_floppy): New function (just to make
19261 grub_multiboot2_real_boot() happy).
19262
19263 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
19264 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
19265 (grub_stop): New function.
19266 Include `"../realmode.S"' and `"../loader.S"'.
19267
19268 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
19269 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
19270
19271 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
19272 rely on grub_multiboot2_real_boot() for final boot.
19273
25638629 192742008-01-22 Robert Millan <rmh@aybabtu.com>
19275
19276 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
19277 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
19278 device that doesn't look like an SD card.
19279 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
19280 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
19281 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
19282 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
19283 found.
19284
9dad816d 192852008-01-22 Robert Millan <rmh@aybabtu.com>
19286
19287 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
19288 avoid claiming over our own code.
19289
34842f2d 192902008-01-22 Bean <bean123ch@gmail.com>
19291
19292 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
19293 (jpeg_mod_SOURCES): New variable.
19294 (jpeg_mod_CFLAGS): Likewise.
19295 (jpeg_mod_LDFLAGS): Likewise.
19296
19297 * video/readers/jpeg.c : New file.
19298
44023a28 192992008-01-22 Bean <bean123ch@gmail.com>
19300
19301 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
19302 there are no more items.
19303
bc2d8ac6 193042008-01-21 Robert Millan <rmh@aybabtu.com>
19305
19306 * kern/mm.c (grub_mm_init_region): Improve debug message.
19307
261bd4bc 193082008-01-21 Robert Millan <rmh@aybabtu.com>
19309
19310 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
19311 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
19312 address.
19313 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
19314 a C macro.
19315 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
19316 Indicates start of upper memory.
19317 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
19318 (generate_image): Abort when image size is big enough to corrupt
19319 upper memory.
19320
19321 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
19322 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
19323 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
19324 instead of hardcoding 0xA0000.
19325 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
19326 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
19327 instead of hardcoding 0xA0000.
19328
f970b55e 193292008-01-21 Robert Millan <rmh@aybabtu.com>
19330
19331 * disk/memdisk.c (memdisk_size): New variable.
19332 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
19333 `memdisk_size'.
19334 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
19335 image to dynamic memory.
19336 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
19337 `memdisk_size'. Free memdisk block.
19338
1a8b0526 193392008-01-21 Robert Millan <rmh@aybabtu.com>
19340
19341 Fix detection of very small filesystems (like tar).
19342
19343 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
19344 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
19345 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
19346 a problem with this disk).
19347
6e9b4aab 193482008-01-21 Robert Millan <rmh@aybabtu.com>
19349
19350 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
19351 on grub_biosdisk_rw_standard() error.
19352
0d8837b2 193532008-01-21 Robert Millan <rmh@aybabtu.com>
19354
19355 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
19356 recent changes.
19357 * kern/elf.c: Likewise.
19358 * kern/ieee1275/ieee1275.c: Likewise.
19359 * kern/powerpc/ieee1275/openfw.c: Likewise.
19360 * term/ieee1275/ofconsole.c: Likewise.
19361
ffd36e34 193622008-01-21 Robert Millan <rmh@aybabtu.com>
19363
19364 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
19365
3f0093d0 19366 * include/grub/kernel.h (grub_arch_memdisk_addr)
19367 (grub_arch_memdisk_size): Moved from here ...
ffd36e34 19368
3f0093d0 19369 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
19370 (grub_arch_memdisk_size): ... to here.
ffd36e34 19371
6c391b21 193722008-01-21 Robert Millan <rmh@aybabtu.com>
19373
19374 Mostly based on bugfix from Bean.
19375
19376 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
19377 attribute with hook() parameter.
19378 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
19379 declaration.
19380 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
19381 attribute with hook() parameter.
19382 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
19383 declaration.
19384
55a581dc 193852008-01-21 Robert Millan <rmh@aybabtu.com>
19386
19387 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
19388 (pkglib_MODULES): Add `memdisk.mod'.
19389 (memdisk_mod_SOURCES): New variable.
19390 (memdisk_mod_CFLAGS): Likewise.
19391 (memdisk_mod_LDFLAGS): Likewise.
19392
19393 * disk/memdisk.c: New file.
19394
19395 * include/grub/disk.h (grub_disk_dev_id): Add
19396 `GRUB_DISK_DEVICE_MEMDISK_ID'.
19397
19398 * include/grub/i386/pc/kernel.h
19399 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
19400 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
19401 (grub_kernel_image_size): New variable declaration.
19402 (grub_total_module_size): Likewise.
19403 (grub_memdisk_image_size): Likewise.
19404
19405 * include/grub/i386/pc/memory.h
19406 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
19407
19408 * include/grub/kernel.h: Include `<grub/symbol.h>'.
19409 (grub_arch_memdisk_addr): New variable declaration.
19410 (grub_arch_memdisk_size): Likewise.
19411
19412 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
19413 (grub_arch_memdisk_size): Likewise.
19414
19415 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
19416 (codestart): Replace hardcoded `0x100000' with
19417 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
19418
19419 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
19420 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
19421 not NULL, append the contents of the file it refers to, at the end of
19422 the compressed kernel image. Initialize `grub_memdisk_image_size'
19423 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
19424 (options): Add "memdisk"|'m' option.
19425 (main): Parse --memdisk|-m option, and pass user-provided path as
19426 parameter to generate_image().
19427
3d7f54c9 194282008-01-20 Robert Millan <rmh@aybabtu.com>
19429
19430 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
19431 grub_dprintf() calls from here ...
19432 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
19433
0bf74728 194342008-01-20 Robert Millan <rmh@aybabtu.com>
19435
19436 Fix detection of "real mode" when /options/real-mode? doesn't exist.
19437
19438 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
19439 declaration.
19440 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
19441 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
19442 `GRUB_IEEE1275_FLAG_REAL_MODE'.
fe6b695a 19443 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
0bf74728 19444 property).
19445 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
19446 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
19447
33bf70a7 194482008-01-19 Robert Millan <rmh@aybabtu.com>
19449
fe6b695a 19450 Get rid of confusing function (superseded by
33bf70a7 19451 `grub_ieee1275_get_integer_property')
19452 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
19453 prototype.
19454 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
19455 function.
19456 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
19457 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
fe987087 19458 in native endianness from grub_ieee1275_get_integer_property().
33bf70a7 19459
e2da7d26 194602008-01-19 Robert Millan <rmh@aybabtu.com>
19461
19462 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
19463 command after "shut-down", since implementations differ on which
19464 the command for halt is.
19465
59f1fd8d 194662008-01-19 Robert Millan <rmh@aybabtu.com>
19467
19468 * include/grub/i386/linuxbios/console.h: Add header protection.
19469 (grub_keyboard_controller_init): New function prototype.
19470 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
19471 (KEYBOARD_COMMAND_READ): Likewise.
19472 (KEYBOARD_COMMAND_WRITE): Likewise.
19473 (KEYBOARD_SCANCODE_SET1): Likewise.
19474 (grub_keyboard_controller_write): New function.
19475 (grub_keyboard_controller_read): Likewise.
19476 (grub_keyboard_controller_init): Likewise.
19477
19478 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
19479 (grub_console_init): On coreboot/LinuxBIOS, call
19480 grub_keyboard_controller_init().
19481
5f5a7c15 194822008-01-19 Robert Millan <rmh@aybabtu.com>
19483
19484 PowerPC changes provided by Pavel Roskin.
19485
19486 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
19487 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
19488 don't rely on cmain() doing it.
19489 * kern/i386/ieee1275/startup.S (_start): Store %eax in
19490 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
19491
1210e168 194922008-01-16 Robert Millan <rmh@aybabtu.com>
19493
19494 * include/grub/i386/linuxbios/memory.h
19495 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
19496 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
19497 receive `table_header' as argument. Instead, probe for it in the
19498 known memory ranges where it can be present.
19499 (grub_available_iterate): Do not pass a fixed `table_header' address
19500 to grub_linuxbios_table_iterate().
19501
3d04eab8 195022008-01-15 Robert Millan <rmh@aybabtu.com>
19503
19504 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
19505 * conf/i386-ieee1275.rmk: New file.
19506 * include/grub/i386/ieee1275/console.h: Likewise.
19507 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
19508 * include/grub/i386/ieee1275/kernel.h: Likewise.
19509 * include/grub/i386/ieee1275/time.h: Likewise.
19510 * kern/i386/ieee1275/init.c: Likewise.
19511 * kern/i386/ieee1275/startup.S: Likewise.
19512
d1bc1b73 195132008-01-15 Robert Millan <rmh@aybabtu.com>
19514
19515 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
19516 when pointers are 32-bit (but still do set it to one when they are
19517 64-bit).
19518
66a65807 195192008-01-15 Robert Millan <rmh@aybabtu.com>
19520
19521 * include/grub/ieee1275/ieee1275.h
19522 (grub_ieee1275_get_integer_property): New function prototype.
19523
19524 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
19525 (grub_ieee1275_get_integer_property): New function. Wraps around
fe987087 19526 grub_ieee1275_get_property() to handle endianness.
66a65807 19527
19528 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
19529 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
fe6b695a 19530 where appropriate.
66a65807 19531 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
19532 (grub_map): Likewise.
19533 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
19534
a83ccafd 195352008-01-15 Bean <bean123ch@gmail.com>
19536
19537 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
19538 (grub_script_execute_cmdline): Reset grub_errno.
19539
19540 * normal/main.c (read_config_file): Reset grub_errno.
19541
19542 * normal/parse.y (script_init): New.
19543 (script): Move function and menuentry here.
19544 (delimiter): New.
19545 (command): Add delimiter at the end of command.
19546 (commands): Adjust to match the new command.
19547 (commandblock): Remove grub_script_lexer_record_start.
f19dbdb7 19548 (menuentry): Add grub_script_lexer_record_start, use the new commands.
a83ccafd 19549 (if): Use the new commands.
19550
19551 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
19552
df6ecfc6 195532008-01-15 Robert Millan <rmh@aybabtu.com>
19554
19555 * normal/menu.c (run_menu): Move timeout message from here ...
19556 (print_timeout): ... to here.
19557 (run_menu): Use print_timeout() once during initial draw to print
19558 the whole message, and again in every clock tick to update only
19559 the number of seconds.
19560
87ae25eb 195612008-01-15 Robert Millan <rmh@aybabtu.com>
19562
19563 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
19564 actual size of `available' from grub_ieee1275_get_property(), and
19565 restrict parsing to that bound.
19566
47bf09a4 195672008-01-15 Christian Franke <franke@computer.org>
19568
19569 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
19570 (argp_program_version): Remove variable.
19571 (argp_program_bug_address): Likewise.
19572 (options): Convert from struct argp_option to struct option.
19573 (struct arguments): Remove.
19574 (parse_opt): Remove.
19575 (usage): New function.
19576 (main): Replace struct args members by simple variables.
19577 Replace argp_parse() by getopt_long().
19578 Add switch to evaluate options.
19579 Add missing "(...)" around root_dev in prefix string.
19580
c86f1469 195812008-01-14 Robert Millan <rmh@aybabtu.com>
19582
19583 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
19584 for grub_ieee1275_exit(), in order to improve portability.
19585
e622c559 195862008-01-14 Robert Millan <rmh@aybabtu.com>
19587
19588 * util/grub.d/10_linux.in (prefix): Define.
19589 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
19590
44cb1ec8 195912008-01-13 Pavel Roskin <proski@gnu.org>
19592
19593 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
19594 grub_errno if no errors have been detected.
19595
1eb8c802 195962008-01-12 Robert Millan <rmh@aybabtu.com>
19597
19598 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
19599 (grub_util_get_dev_abstraction): New function prototype.
19600
19601 * util/getroot.c: Include `<grub/util/getroot.h>'
19602 (grub_util_get_grub_dev): Move detection of abstraction type to ...
19603 (grub_util_get_dev_abstraction): ... here (new function).
19604
19605 * util/grub-probe.c: Convert PRINT_* to an enum. Add
19606 `PRINT_ABSTRACTION'.
19607 (probe): Probe for abstraction type when requested.
19608 (main): Understand `--target=abstraction'.
19609
19610 * util/i386/efi/grub-install.in: Add abstraction module to core
19611 image when it is found to be necessary.
19612 * util/i386/pc/grub-install.in: Likewise.
19613 * util/powerpc/ieee1275/grub-install.in: Likewise.
19614
19615 * util/update-grub_lib.in (font_path): Return system path without
19616 converting to GRUB path.
19617 * util/update-grub.in: Convert system path returned by font_path()
19618 to a GRUB path. Use `grub-probe -t abstraction' to determine what
19619 abstraction module is needed for loading fonts (if any). Export
19620 that as `GRUB_PRELOAD_MODULES'.
19621 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
19622 insmod commands).
19623
52bd3de9 196242008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
19625
19626 Remove some unused code from reiserfs.
f19dbdb7 19627
52bd3de9 19628 * fs/reiserfs.c (struct grub_reiserfs_key)
19629 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
19630 (struct grub_reiserfs_node_body): Removed.
19631 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
19632 Likewise.
19633 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
19634 Likewise.
19635 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
19636 Likewise.
19637 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
19638 Likewise.
19639 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
19640 Likewise.
19641 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
19642 Likewise.
19643 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
19644 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
19645 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
19646
2f80039d 196472008-01-10 Robert Millan <rmh@aybabtu.com>
19648
19649 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
19650 Determines if a file is garbage left by packaging systems, etc.
19651 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
19652 for processing /etc/grub.d scripts.
19653 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
19654 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
19655 as a condition for processing Linux images.
19656
87888032 196572008-01-10 Pavel Roskin <proski@gnu.org>
19658
19659 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
19660 to compile reiserfs.c on PowerPC.
19661
7e54fced 196622008-01-10 Robert Millan <rmh@aybabtu.com>
de9993e0 19663
19664 * kern/device.c (grub_device_iterate): Do not abort device iteration
19665 when one of the devices cannot be opened.
19666 * kern/disk.c (grub_disk_open): Do not account previous failures of
19667 unrelated functions when grub_errno is checked for.
19668
5aa541e6 196692008-01-08 Robert Millan <rmh@aybabtu.com>
19670
19671 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
19672 `! grub_linux_is_bzimage', change order of address comparison to make
19673 it more intuitive, and improve "too big zImage" error message.
19674
7076340d 196752008-01-08 Robert Millan <rmh@aybabtu.com>
19676
19677 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
19678 `$(update-grub_DATA)'.
19679 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
19680 targets.
19681
9ca70333 196822008-01-07 Robert Millan <rmh@aybabtu.com>
19683
19684 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
19685 which instruction is modified by grub-setup during installation
19686 (since it wasn't obvious by only looking at this file).
19687
38ccf575 196882008-01-07 Robert Millan <rmh@aybabtu.com>
19689
19690 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
19691 listing actual TODO items.
19692
f5db4291 196932008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
19694
868967cf 19695 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
19696 correctly.
19697 (grub_reiserfs_get_key_offset): Likewise.
19698 (grub_reiserfs_set_key_offset): Likewise.
19699 (grub_reiserfs_set_key_type): Likewise.
fe6b695a 19700 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
868967cf 19701
19702 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
19703 better to remove the bitfield version completely.
f19dbdb7 19704
868967cf 197052008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
f19dbdb7 19706
f5db4291 19707 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
19708 allocated from the heap, due to the fshelp implementation.
19709 (grub_reiserfs_dir): Free NODE, due to the same reason.
19710
492e6d9d 197112008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
19712
19713 Mostly from Vincent Pelletier:
f19dbdb7 19714
492e6d9d 19715 * fs/reiserfs.c: New file.
f19dbdb7 19716
492e6d9d 19717 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
19718 (reiserfs_mod_SOURCES): New variable.
19719 (reiserfs_mod_CFLAGS): Likewise.
19720 (reiserfs_mod_LDFLAGS): Likewise.
19721
19722 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
19723 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
19724 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
19725 normal/color.c.
19726
9ce3e7c1 197272008-01-06 Robert Millan <rmh@aybabtu.com>
19728
19729 * normal/color.c: Remove `<grub/env.h>'.
19730
f3b58148 197312008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
19732
19733 * include/grub/normal.h: Include <grub/env.h>.
19734
7ac3bcfa 197352008-01-05 Robert Millan <rmh@aybabtu.com>
19736
19737 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
19738 usage example with `(hd0,1)'.
fb358190 19739 Reported by Samuel Thibault.
7ac3bcfa 19740
c8ee99d7 197412008-01-05 Robert Millan <rmh@aybabtu.com>
19742
19743 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
19744 (grub_linux_boot_zimage): Rename to ...
19745 (grub_linux_boot): ... this.
19746 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
19747 (grub_linux_boot_zimage): Conditionalize zImage copy.
19748
19749 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
19750 (grub_linux_boot_bzimage): Remove prototype.
19751 (grub_linux_boot_zimage): Rename to ...
19752 (grub_linux_boot): ... this.
19753
19754 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
19755 (grub_linux_boot): Remove function.
19756
0ece25b1 197572008-01-05 Robert Millan <rmh@aybabtu.com>
19758
19759 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
19760 (grub_env_write_color_highlight): Likewise.
19761 (grub_wait_after_message): Likewise.
19762
19763 * normal/color.c: New file.
19764
19765 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
19766 (normal_mod_DEPENDENCIES): Likewise.
19767
19768 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
19769 (normal_mod_DEPENDENCIES): Likewise.
19770
19771 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
19772 (normal_mod_DEPENDENCIES): Likewise.
19773
19774 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
19775 (normal_mod_DEPENDENCIES): Likewise.
19776
19777 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
19778 for waiting after a message is printed.
19779 * normal/main.c (read_config_file): Likewise.
19780 (grub_normal_init): Register grub_env_write_color_normal() and
19781 grub_env_write_color_highlight() hooks. Mark `color_normal' and
19782 `color_highlight' variables as global.
19783
19784 * normal/menu.c (grub_wait_after_message): New function.
19785 (grub_color_menu_normal): New variable. Replaces ...
19786 (GRUB_COLOR_MENU_NORMAL): ... this macro.
19787 (grub_color_menu_highlight): New variable. Replaces ...
19788 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
19789 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
19790 `GRUB_TERM_COLOR_STANDARD'.
19791 (print_message): Use `grub_setcolorstate' to reload colors. Rename
19792 `normal_code' and `highlight_code' to `old_color_normal' and
19793 `old_color_highlight', respectively.
19794 (grub_menu_init_page): Update colors when drawing the menu, based on
19795 `menu_color_normal' and `menu_color_highlight' variables.
19796 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
19797 a message is printed.
19798
182dd4e5 197992008-01-05 Robert Millan <rmh@aybabtu.com>
19800
19801 * kern/env.c (grub_env_context_open): Propagate hooks for global
19802 variables to new context.
19803
19804 * kern/main.c (grub_set_root_dev): Export `root' variable.
19805
ddf8f6ad 198062008-01-05 Robert Millan <rmh@aybabtu.com>
19807
19808 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
fe6b695a 19809 discs unconditionally, since udev and others have options to provide
ddf8f6ad 19810 them.
19811
d8b43d9b 198122008-01-05 Robert Millan <rmh@aybabtu.com>
19813
19814 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
19815
2bff2de3 198162008-01-04 Christian Franke <franke@computer.org>
19817
19818 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
19819 of eisa_mmap.
19820
97eab917 198212008-01-03 Pavel Roskin <proski@gnu.org>
19822
19823 * kern/i386/linuxbios/init.c: Put "void" to all function
19824 declarations with no arguments.
19825 * kern/powerpc/ieee1275/init.c: Likewise.
19826 * term/i386/pc/at_keyboard.c: Likewise.
19827 * term/i386/pc/vga_text.c: Likewise.
19828 * util/grub-mkdevicemap.c: Likewise.
19829
b9416d00 198302008-01-02 Robert Millan <rmh@aybabtu.com>
19831
19832 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
19833 message when loaded image is out of bounds.
19834 (grub_multiboot_load_elf64): Likewise.
19835
92695df9 198362008-01-02 Pavel Roskin <proski@gnu.org>
19837
19838 * util/grub.d/10_linux.in: Try version without ".old" when
19839 looking for initrd. It's better to use initrd from the newer
19840 kernel of the same version than no initrd at all.
19841
d98d9cad 198422008-01-01 Robert Millan <rmh@aybabtu.com>
19843
19844 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
19845
dbfdce36 198462008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
19847
f19dbdb7 19848 * include/grub/video.h: Added grub_video_unmap_color and
dbfdce36 19849 grub_video_get_active_render_target.
19850 (grub_video_adapter): Added unmap_color and get_active_render_target.
19851
f19dbdb7 19852 * video/video.c: Added grub_video_unmap_color and
dbfdce36 19853 grub_video_get_active_render_target.
19854 (grub_video_get_info): Changed method to accept NULL pointer as an
19855 argument to allow detection of active video adapter.
19856
19857 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
19858 grub_video_vbe_unmap_color_int.
19859 Added grub_video_vbe_unmap_color and
19860 grub_video_vbe_get_active_render_target.
19861 (grub_video_vbe_adapter): Added unmap_color and
19862 get_active_render_target.
19863
f19dbdb7 19864 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
dbfdce36 19865 with grub_video_vbe_unmap_color_int.
19866
19867 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
19868 (DEFAULT_NORMAL_COLOR): Likewise.
19869 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
19870 (DEFAULT_FG_COLOR): Removed.
19871 (DEFAULT_BG_COLOR): Likewise.
19872 (DEFAULT_CURSOR_COLOR): Changed value.
19873 (grub_virtual_screen): Added standard_color_setting,
19874 normal_color_setting, highlight_color_setting and term_color.
19875 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
19876 (bitmap_width): Added.
19877 (bitmap_height): Likewise.
19878 (bitmap): Likewise.
19879 (set_term_color): Likewise.
19880 (grub_virtual_screen_setup): Changed to use new terminal coloring
19881 settings.
19882 (grub_gfxterm_init): Added init for bitmap.
19883 (grub_gfxterm_fini): Added destroy for bitmap.
19884 (redraw_screen_rect): Updated to use background bitmap and new
19885 terminal coloring.
19886 (scroll_up): Added optimization for case when there is no bitmap.
19887 (grub_gfxterm_cls): Fixed to use correct background color.
19888 (grub_virtual_screen_setcolorstate): Changed to use new terminal
19889 coloring.
19890 (grub_virtual_screen_setcolor): Likewise.
19891 (grub_virtual_screen_getcolor): Added.
19892 (grub_gfxterm_background_image_cmd): Likewise.
19893 (grub_video_term): Added setcolor and getcolor.
19894 (MOD_INIT): Added registration of background_image command.
19895 (MOD_TERM): Added unregistration for background_image command.
19896
c3c20931 198972007-12-30 Pavel Roskin <proski@gnu.org>
19898
19899 * loader/multiboot_loader.c: Fix multiboot command
19900 unregistration. Fix all typos in the word "multiboot".
19901
df266716 199022007-12-29 Pavel Roskin <proski@gnu.org>
94239199 19903
19904 * util/grub.d/10_linux.in: Refactor search for initrd. Add
19905 support for initrd names used in Fedora.
19906
fc6e896c 199072007-12-26 Bean <bean123ch@gmail.com>
19908
19909 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
19910 (cpio_mod_SOURCES): New variable.
19911 (cpio_mod_CFLAGS): Likewise.
19912 (cpio_mod_LDFLAGS): Likewise.
19913
19914 * fs/cpio.c: New file.
19915
19916 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
19917
19918 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
19919
19920 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
19921
19922 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19923
533110ad 199242007-12-25 Robert Millan <rmh@aybabtu.com>
19925
19926 * include/grub/term.h (struct grub_term): Add `getcolor' function.
19927 (grub_getcolor): New function.
19928
19929 * kern/term.c (grub_getcolor): New function.
19930 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
19931 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
19932 (print_entry): Set normal and highlight colors to
19933 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
19934 respectively, before printing and restore them to old
19935 values afterwards.
19936 (grub_menu_init_page): Likewise. Fill an additional colored space
19937 that would otherwise be left blank.
19938
19939 * term/efi/console.c (grub_console_getcolor): New function.
19940 (struct grub_console_term.getcolor): New variable.
19941 * term/i386/pc/console.c (grub_console_getcolor): New function.
19942 (struct grub_console_term.getcolor): New variable.
19943 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
19944 (struct grub_console_term.getcolor): New variable.
19945
19946 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
19947 (struct grub_console_term.setcolor): Remove variable.
19948 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
19949 (struct grub_console_term.setcolor): Remove variable.
19950 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
19951 (struct grub_console_term.setcolor): Remove variable.
19952 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
19953 (struct grub_console_term.setcolor): Remove variable.
19954
4931827f 199552007-12-25 Robert Millan <rmh@aybabtu.com>
19956
19957 * configure.ac: Search for possible unifont.hex locations, and
19958 define UNIFONT_HEX if found.
19959
19960 * Makefile.in (UNIFONT_HEX): Define variable.
19961 (DATA): Rename to ...
19962 (PKGLIB): ... this. Update all users.
19963 (PKGDATA): New variable.
19964 (pkgdata_IMAGES): Rename to ...
19965 (pkglib_IMAGES): ... this. Update all users.
19966 (pkgdata_MODULES): Rename to ...
19967 (pkglib_MODULES): ... this. Update all users.
19968 (pkgdata_PROGRAMS): Rename to ...
19969 (pkglib_PROGRAMS): ... this. Update all users.
19970 (pkgdata_DATA): Rename to ...
19971 (pkglib_DATA): ... this. Update all users.
19972 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
19973 (unicode.pff, ascii.pff): New rules.
19974 (all-local): Add `$(PKGDATA)' dependency.
19975 (install-local): Process `$(PKGDATA)'.
19976
19977 * util/update-grub_lib.in (font_path): Search for *.pff files in
19978 a few more locations, including `${pkgdata}'.
19979
57e57e31 199802007-12-23 Robert Millan <rmh@aybabtu.com>
19981
19982 Patch from Bean <bean123ch@gmail.com>:
19983 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
19984 `size'.
19985
4bc72aa9 199862007-12-21 Bean <bean123ch@gmail.com>
19987
19988 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
19989 (ntfscomp_mod_SOURCES): New variable.
19990 (ntfscomp_mod_CFLAGS): Likewise.
19991 (ntfscomp_mod_LDFLAGS): Likewise.
19992
19993 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
19994 (grub_probe_SOURCES): Likewise.
19995 (grub_emu_SOURCES): Likewise.
19996
19997 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
19998 (grub_emu_SOURCES): Likewise.
19999
20000 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
20001 (grub_emu_SOURCES): Likewise.
20002
20003 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
20004 (grub_emu_SOURCES): Likewise.
20005
20006 * fs/ntfs.c (grub_ntfscomp_func): New variable.
20007 (read_run_list): Renamed to grub_ntfs_read_run_list.
20008 (decomp_nextvcn): Moved to ntfscomp.c.
20009 (decomp_getch): Likewise.
20010 (decomp_get16): Likewise.
20011 (decomp_block): Likewise.
20012 (read_block): Likewise.
20013 (read_data): Partially moved to ntfscomp.c.
20014 (fixup): Change unsigned to grub_uint16_t.
20015 (read_mft): Change unsigned long to grub_uint32_t.
20016 (read_attr): Likewise.
20017 (read_data): Likewise.
20018 (read_run_data): Likewise.
20019 (read_run_list): Likewise.
20020 (read_mft): Likewise.
20021
20022 * fs/ntfscomp.c: New file.
20023
20024 * include/grub/ntfs.h: New file.
20025
af680a87 200262007-12-16 Robert Millan <rmh@aybabtu.com>
20027
20028 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
20029 IDE disk check, since Linux is known to support 20 IDE disks.
20030 Reported by Colin Watson.
20031
84be7599 200322007-12-15 Bean <bean123ch@gmail.com>
20033
20034 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
20035 (lnxboot_img_SOURCES): New variable.
20036 (lnxboot_img_ASFLAGS): Likewise.
20037 (lnxboot_img_LDFLAGS): Likewise.
20038
20039 * boot/i386/pc/lnxboot.S: New file.
20040
6af9db01 200412007-11-24 Pavel Roskin <proski@gnu.org>
20042
20043 * configure.ac: Test if '--build-id=none' is supported by the
20044 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
20045 objcopy to generate incorrect binary files (binutils
20046 2.17.50.0.18-1 as shipped by Fedora 8).
20047 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
20048 linking, so that build ID doesn't break the test.
20049
7361cfe6 200502007-11-24 Pavel Roskin <proski@gnu.org>
20051
20052 * include/grub/i386/time.h: use "void" in the argument list
20053 of grub_cpu_idle().
20054 * include/grub/powerpc/time.h: Likewise.
20055 * include/grub/sparc64/time.h: Likewise.
20056
1593e10c 200572007-11-18 Christian Franke <franke@computer.org>
20058
20059 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
20060 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
20061 This fixes the problem that function keys did not work in grub-emu.
20062
3b8db1a8 200632007-11-18 Christian Franke <franke@computer.org>
20064
20065 * disk/host.c (grub_host_open): Remove attribute unused from
20066 name parameter. Add check for "host". This fixes the problem
20067 that grub-emu does not find partitions.
20068
2e29408d 200692007-11-18 Christian Franke <franke@computer.org>
20070
20071 * util/hostfs.c (is_dir): New function.
20072 (grub_hostfs_dir): Handle missing dirent.d_type case.
20073 (grub_hostfs_read): Add missing fseek().
20074 (grub_hostfs_label): Clear label pointer. This fixes a crash
20075 of grub-emu on "ls (host)".
20076
398cd047 200772007-11-18 Christian Franke <franke@computer.org>
20078
20079 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
20080 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
20081 to 64 bit boundary by default.
20082
c405c391 200832007-11-18 Bean <bean123ch@gmail.com>
20084
20085 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
20086 (hexdump_mod_SOURCES): New variable.
20087 (hexdump_mod_CFLAGS): Likewise.
20088 (hexdump_mod_LDFLAGS): Likewise.
f19dbdb7 20089
c405c391 20090 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
20091
20092 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
20093
20094 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
20095
20096 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
20097
20098 * include/grub/hexdump.h: New file.
20099
20100 * commands/hexdump.c: New file.
20101
5cced7fd 201022007-11-10 Robert Millan <rmh@aybabtu.com>
20103
20104 * commands/i386/pc/play.c (beep_off): Switch order of arguments
20105 in grub_outb() calls.
20106 (beep_on): Likewise.
20107
8b714eb0 201082007-11-10 Christian Franke <franke@computer.org>
20109
20110 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
20111 (grub_menu_run): Likewise.
20112
ce0f1839 201132007-11-10 Robert Millan <rmh@aybabtu.com>
20114
20115 * include/grub/i386/efi/machine.h: New file.
20116 * include/grub/i386/linuxbios/machine.h: Likewise.
20117 * include/grub/i386/pc/machine.h: Likewise.
20118 * include/grub/powerpc/ieee1275/machine.h: Likewise.
20119 * include/grub/sparc64/ieee1275/machine.h: Likewise.
20120
20121 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
20122 (serial_hw_io_addr): New variable.
20123 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
20124 instead of `(unsigned short *) 0x400'.
20125
270c237d 201262007-11-10 Bean <bean123ch@gmail.com>
20127
20128 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
20129
a87783bf 201302007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
20131
20132 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
20133 (vga_mod_SOURCES): Added.
20134 (vga_mod_CFLAGS): Likewise.
20135 (vga_mod_LDFLAGS): Likewise.
20136
20137 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
20138 grub_outb() calls.
20139 (set_map_mask): Likewise.
20140 (set_read_map): Likewise.
20141 (set_read_address): Likewise.
20142 (vga_font): Removed variable.
20143 (get_vga_glyph): Removed function.
20144 (invalidate_char): Likewise.
20145 (write_char): Changed to use grub_font_get_glyph() for font
20146 information.
20147 (grub_vga_putchar): Likewise.
20148 (grub_vga_getcharwidth): Likewise.
20149
6433b448 201502007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
20151
20152 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
20153 flags.
20154 (pxeboot_img_LDFLAGS): Likewise.
20155 (diskboot_img_LDFLAGS): Likewise.
20156 (kernel_img_LDFLAGS): Likewise.
20157
49178511 201582007-11-06 Robert Millan <rmh@aybabtu.com>
20159
20160 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
20161 in grub_outb() calls.
20162 (serial_hw_init): Likewise.
20163
53b052de 201642007-11-05 Robert Millan <rmh@aybabtu.com>
20165
20166 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
20167 spaces. Skip non-regular files.
20168
5ab33bba 201692007-11-05 Robert Millan <rmh@aybabtu.com>
20170
20171 * kern/disk.c (grub_disk_firmware_fini)
20172 (grub_disk_firmware_is_tainted): New variables.
20173
20174 * include/grub/disk.h (grub_disk_firmware_fini)
20175 (grub_disk_firmware_is_tainted): Likewise.
20176
20177 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
20178 (grub_disk_biosdisk_fini): ... to here.
20179 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
20180 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
20181 is set. Register grub_disk_biosdisk_fini() in
20182 `grub_disk_firmware_fini'.
20183
20184 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
20185 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
20186 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
20187 to finish existing firmware disk interface.
20188
20189 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
20190 (ata_mod_SOURCES): New variable.
20191 (ata_mod_CFLAGS): Likewise.
20192 (ata_mod_LDFLAGS): Likewise.
20193
0149ab7c 201942007-11-05 Robert Millan <rmh@aybabtu.com>
20195
20196 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
20197 (grub_ata_wait): Reimplement using grub_millisleep().
20198
20199 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
20200 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
20201
be7ac41e 202022007-11-03 Marco Gerards <marco@gnu.org>
20203
20204 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
20205 (CRTC_ADDR_PORT): New macro.
20206 (CRTC_DATA_PORT): Likewise.
20207 (CRTC_CURSOR): Likewise.
20208 (CRTC_CURSOR_ADDR_HIGH): Likewise.
20209 (CRTC_CURSOR_ADDR_LOW): Likewise.
20210 (update_cursor): New function.
20211 (grub_console_real_putchar): Call `update_cursor'.
20212 (grub_console_gotoxy): Likewise.
20213 (grub_console_cls): Set the default color when clearing the
20214 screen.
20215 (grub_console_setcursor): Implemented.
20216
bb06ab2e 202172007-11-03 Marco Gerards <marco@gnu.org>
20218
20219 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
20220 become activate.
20221 (grub_ata_pio_write): Likewise.
20222
20223 (grub_atapi_identify): Wait after issuing an ATA command.
20224 (grub_atapi_packet): Likewise.
20225 (grub_ata_identify): Likewise.
20226 (grub_ata_readwrite): Likewise.
20227
cf8f780b 202282007-11-03 Marco Gerards <marco@gnu.org>
20229
20230 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
20231 (grub_ata_pio_write): Likewise.
20232 (grub_ata_readwrite): Use `grub_error', instead of
20233 returning `grub_errno'.
20234
ed649e54 202352007-11-03 Marco Gerards <marco@gnu.org>
20236
20237 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
20238 grub_ata_pio_write once for every single sector, instead of for
20239 multiple sectors.
20240
ca25d8f0 202412007-10-31 Robert Millan <rmh@aybabtu.com>
20242
20243 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
20244
20245 * conf/i386-linuxbios.rmk: New file.
20246
20247 * kern/i386/pc/hardware.c: Likewise.
20248 * term/i386/pc/at_keyboard.c: Likewise.
20249 * term/i386/pc/vga_text.c: Likewise.
20250
20251 * include/grub/i386/linuxbios/boot.h: Likewise.
20252 * include/grub/i386/linuxbios/console.h: Likewise.
20253 * include/grub/i386/linuxbios/init.h: Likewise.
20254 * include/grub/i386/linuxbios/kernel.h: Likewise.
20255 * include/grub/i386/linuxbios/loader.h: Likewise.
20256 * include/grub/i386/linuxbios/memory.h: Likewise.
20257 * include/grub/i386/linuxbios/serial.h: Likewise.
20258 * include/grub/i386/linuxbios/time.h: Likewise.
20259
20260 * kern/i386/linuxbios/init.c: Likewise.
20261 * kern/i386/linuxbios/startup.S: Likewise.
20262 * kern/i386/linuxbios/table.c: Likewise.
20263
e911ecc1 202642007-10-31 Marco Gerards <marco@gnu.org>
20265
20266 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
20267 (ata_mod_SOURCES): New variable.
20268 (ata_mod_CFLAGS): Likewise.
20269 (ata_mod_LDFLAGS): Likewise.
20270
20271 * disk/ata.c: New file.
20272
20273 * include/grub/disk.h (grub_disk_dev_id): Add
20274 `GRUB_DISK_DEV_ATA_ID'.
f19dbdb7 20275
7f66d0e0 202762007-10-31 Robert Millan <rmh@aybabtu.com>
20277
20278 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
20279 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
20280
20281 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
20282 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
20283
20284 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
20285 `<grub/types.h>'.
20286
20287 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
20288
5cd7dd46 202892007-10-27 Robert Millan <rmh@aybabtu.com>
20290
3236ca65 20291 * include/grub/types.h (ULONG_MAX): Define macro.
5cd7dd46 20292
2ebfc90f 202932007-10-22 Robert Millan <rmh@aybabtu.com>
20294
20295 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
20296 `"../realmode.S"'.
20297 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
20298
73fcb0f3 202992007-10-22 Robert Millan <rmh@aybabtu.com>
20300
20301 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
20302 (pkgdata_MODULES): Add `biosdisk.mod'.
20303 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
20304 variables.
20305
20306 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
20307 (grub_biosdisk_init): Replace with ...
20308 (GRUB_MOD_INIT(biosdisk)): ... this.
20309 (grub_biosdisk_fini): Replace with ...
20310 (GRUB_MOD_FINI(biosdisk)): ... this.
20311
20312 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
20313 (grub_machine_init): Remove call to grub_biosdisk_init().
20314 (grub_machine_fini): Remove call to grub_machine_fini().
20315
20316 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
20317
3381d274 203182007-10-22 Robert Millan <rmh@aybabtu.com>
20319
20320 * include/grub/time.h: New file.
20321 * include/grub/i386/time.h: Likewise.
20322 * include/grub/powerpc/time.h: Likewise.
20323 * include/grub/sparc64/time.h: Likewise.
20324
20325 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
20326 instances to ...
20327 (KERNEL_MACHINE_TIME_HEADER): ... this.
20328 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
20329 instances to ...
20330 (KERNEL_MACHINE_TIME_HEADER): ... this.
20331 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
20332 instances to ...
20333 (KERNEL_MACHINE_TIME_HEADER): ... this.
20334
20335 * kern/i386/efi/init.c: Include `<grub/time.h>'.
20336 (grub_millisleep): New function.
20337 * kern/i386/pc/init.c: Include `<grub/time.h>'.
20338 (grub_millisleep): New function.
20339 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
20340 Remove `grub/machine/time.h' include.
20341 (grub_millisleep): New function.
20342 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
20343 Remove `grub/machine/time.h' include.
20344 (grub_millisleep): New function.
20345
20346 * include/grub/misc.h (grub_div_roundup): New function.
20347
20348 * kern/misc.c: Include `<grub/time.h>'.
20349 (grub_millisleep_generic): New function.
20350
20351 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
20352 Add `time.h'.
20353 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
20354 Add `time.h'.
20355 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
20356 `machine/time.h'. Add `time.h'.
20357 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
20358
a39a0312 203592007-10-21 Robert Millan <rmh@aybabtu.com>
20360
20361 * include/grub/misc.h (grub_max): New function.
20362
2aad70e2 203632007-10-21 Robert Millan <rmh@aybabtu.com>
20364
20365 * util/misc.c (grub_util_info): Call fflush() before returning.
20366
54b71c4b 203672007-10-20 Robert Millan <rmh@aybabtu.com>
20368
20369 * genmk.rb (Image): Copy `extra_flags' from here ...
20370 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
20371
20372 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
20373 to `argc' and `args' arguments.
20374
a979f513 203752007-10-17 Robert Millan <rmh@aybabtu.com>
20376
20377 * kern/i386/loader.S: New file.
20378
20379 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
20380 * kern/i386/loader.S (grub_linux_prot_size)... to here.
20381 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
20382 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
20383 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
20384 * kern/i386/loader.S (grub_linux_real_addr)... to here.
20385 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
20386 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
20387 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
20388 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
20389 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
20390 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
20391 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
20392 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
20393
20394 * kern/i386/realmode.S: New file.
20395
20396 * kern/i386/pc/startup.S (protstack): Moved from here ...
20397 * kern/i386/realmode.S (protstack)... to here.
20398 * kern/i386/pc/startup.S (gdt): Moved from here ...
20399 * kern/i386/realmode.S (gdt)... to here.
20400 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
20401 * kern/i386/realmode.S (prot_to_real)... to here.
20402
20403 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
20404 `kern/i386/realmode.S'.
20405
825fc8fd 204062007-10-17 Robert Millan <rmh@aybabtu.com>
20407
20408 * include/grub/i386/loader.h: New file.
20409
20410 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
20411 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
20412 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
20413 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
20414 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
20415 * include/grub/i386/loader.h (grub_linux_prot_size)
20416 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
20417 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
20418 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
20419 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
20420
20421 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
20422
e179b2f4 204232007-10-15 Robert Millan <rmh@aybabtu.com>
20424
20425 * normal/misc.c (grub_normal_print_device_info): Do not probe for
20426 filesystem when dev->disk is unset.
20427 Do probe for filesystem even when dev->disk->has_partitions is set.
20428 In case a filesystem is found, always report it.
20429 In case it isn't, if dev->disk->has_partitions is set, report that
20430 a partition table was found instead of reporting that no filesystem
20431 could be identified.
20432
5db82af6 204332007-10-12 Robert Millan <rmh@aybabtu.com>
20434
20435 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
20436 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
20437
68f6ac74 20438 * include/grub/types.h (grub_host_to_target16): New macro.
20439 (grub_host_to_target32): Likewise.
20440 (grub_host_to_target64): Likewise.
20441 (grub_target_to_host16): Likewise.
20442 (grub_target_to_host32): Likewise.
20443 (grub_target_to_host64): Likewise.
5db82af6 20444
20445 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
20446 Renamed from to ...
20447 (GRUB_MOD_ALIGN): ...this. Update all users.
20448
68f6ac74 20449 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
20450 grub_host_to_target32.
20451 Replace grub_be_to_cpu32 with grub_target_to_host32.
20452 (load_modules): Likewise.
20453 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
20454 Replace grub_be_to_cpu32 with grub_target_to_host32.
20455 Replace grub_cpu_to_be16 with grub_host_to_target16.
20456 Replace grub_cpu_to_be32 grub_host_to_target32.
5db82af6 20457
3cf497cc 204582007-10-12 Robert Millan <rmh@aybabtu.com>
20459
20460 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
20461 * util/elf/grub-mkimage.c: ... here.
20462
20463 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
20464 `util/powerpc/ieee1275/grub-mkimage.c'.
20465
c8cc3692 204662007-10-07 Robert Millan <rmh@aybabtu.com>
adbc4c9d 20467
c8cc3692 20468 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
20469 and make it easier to figure out.
20470 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
20471 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
20472 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
20473 leave us with less than HEAP_MIN_SIZE total heap.
20474 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
adbc4c9d 20475
5c58b791 204762007-10-03 Robert Millan <rmh@aybabtu.com>
20477
20478 * include/grub/i386/io.h: New file.
20479 * commands/i386/pc/play.c (inb): Removed.
20480 (outb): Removed.
20481 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
20482 with grub_outb().
afcd2ef8 20483 * term/i386/pc/serial.c (inb): Removed.
20484 (outb): Removed.
20485 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
20486 with grub_outb().
20487 * term/i386/pc/vga.c (inb): Removed.
20488 (outb): Removed.
20489 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
20490 with grub_outb().
5c58b791 20491
1a477ed6 204922007-10-02 Robert Millan <rmh@aybabtu.com>
20493
20494 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
20495 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
20496 Reported by Marcin Kurek.
20497
6b5d80fa 204982007-09-07 Robert Millan <rmh@aybabtu.com>
20499
20500 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
20501 SmartFirmware version updates (as released by Sven Luther), and avoid
20502 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
20503 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
20504 known broken.
20505
5618afbf 205062007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
20507
20508 From Hitoshi Ozeki:
20509 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
20510 when merging two regions.
20511
6139dcd9 205122007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
20513
508e39ee 20514 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
20515 * normal/completion.c (grub_normal_do_completion): Likewise.
20516 Reported by Hitoshi Ozeki.
20517
205182007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
f19dbdb7 20519
6139dcd9 20520 Do not use devices at boot in chainloading.
f19dbdb7 20521
6139dcd9 20522 * loader/i386/pc/chainloader.c (boot_drive): New variable.
20523 (boot_part_addr): Likewise.
20524 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
20525 with BOOT_DRIVE and BOOT_PART_ADDR.
20526 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
20527 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
20528
38da6516 205292007-08-29 Robert Millan <rmh@aybabtu.com>
20530
20531 Patch from Simon Peter <dn.tlp@gmx.net>:
20532 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
20533 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
20534 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
20535 util/i386/pc/grub-setup.c_DEPENDENCIES.
20536 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
20537 util/grub-probe.c_DEPENDENCIES.
20538 * conf/powerpc-ieee1275.rmk: Likewise.
20539
29d0928c 205402007-08-28 Robert Millan <rmh@aybabtu.com>
20541
20542 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
20543 to tell grub-mkdevicemap how to name devices.
20544 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
20545 feature).
20546
20547 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
20548 util/i386/get_disk_name.c.
20549 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
20550 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
20551 util/ieee1275/get_disk_name.c.
20552
20553 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
20554
20555 * DISTLIST: Add util/i386/get_disk_name.c and
20556 util/ieee1275/get_disk_name.c.
20557
20558 * util/grub-mkdevicemap.c: Replace device naming logic with
20559 grub_util_get_disk_name() calls.
20560
5a0d3cca 205612007-08-20 Robert Millan <rmh@aybabtu.com>
20562
20563 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
20564 (so that it works for both plural and singular quantities).
20565
8b72db2f 205662007-08-05 Robert Millan <rmh@aybabtu.com>
20567
20568 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
20569 so that [xz] isn't taken into account when determining order.
20570
352466bf 205712007-08-02 Marco Gerards <marco@gnu.org>
20572
20573 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
20574 `include/multiboot2.h', `include/grub/elfload.h',
20575 `include/multiboot.h', `include/grub/multiboot.h',
20576 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
20577 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
20578 `kern/elf.c', `loader/multiboot_loader.c',
20579 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
20580 `loader/i386/pc/multiboot2.c',
20581 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
20582 `util/i386/pc/grub-mkrescue.in'. Remove
20583 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
20584 `include/grub/i386/pc/util/biosdisk.h' and
20585 `include/grub/powerpc/ieee1275/multiboot.h'.
20586
8f096014 205872007-08-02 Bean <bean123ch@gmail.com>
20588
20589 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
20590 (ntfs_mod_SOURCES): New variable.
20591 (ntfs_mod_CFLAGS): Likewise.
20592 (ntfs_mod_LDFLAGS): Likewise.
20593
20594 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
20595 (grub_probe_SOURCES): Likewise.
20596 (grub_emu_SOURCES): Likewise.
20597
20598 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
20599 (grub_emu_SOURCES): Likewise.
20600
20601 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
20602 (grub_emu_SOURCES): Likewise.
f19dbdb7 20603
8f096014 20604 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
20605
20606 * fs/ntfs.c: New file.
20607
9959f7db 206082007-08-02 Bean <bean123ch@gmail.com>
20609
20610 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
20611
20612 * file.h (grub_file): Likewise.
20613
20614 * fshelp.h (grub_fshelp_read_file): Likewise.
20615
20616 * util/i386/pc/grub-setup.c (setup): Likewise.
20617 (save_first_sector): Likewise.
20618 (save_blocklists): Likewise.
f19dbdb7 20619
9959f7db 20620 * fs/affs.c (grub_affs_read_file): Likewise.
20621
20622 * fs/ext2.c (grub_ext2_read_file): Likewise.
20623
20624 * fs/fat.c (grub_fat_read_data): Likewise.
20625
20626 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
20627
20628 * fs/hfs.c (grub_hfs_read_file): Likewise.
20629
20630 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
20631
20632 * fs/jfs.c (grub_jfs_read_file): Likewise.
20633
20634 * fs/minix.c (grub_minix_read_file): Likewise.
20635
20636 * fs/sfs.c (grub_sfs_read_file): Likewise.
20637
20638 * fs/ufs.c (grub_ufs_read_file): Likewise.
f19dbdb7 20639
9959f7db 20640 * fs/xfs.c (grub_xfs_read_file): Likewise.
20641
20642 * command/blocklist.c (read_blocklist): Likewise.
20643 (print_blocklist): Likewise.
20644
0a203f83 206452007-08-02 Marco Gerards <marco@gnu.org>
20646
20647 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
20648 `util/hostfs.c'.
20649
20650 * disk/host.c: New file.
20651
20652 * util/hostfs.c: Likewise.
20653
20654 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
20655 return `GRUB_ERR_BAD_FS'.
20656 * fs/sfs.c (grub_sfs_mount): Likewise.
20657 * fs/xfs.c (grub_xfs_mount): Likewise.
20658
20659 * include/grub/disk.h (enum grub_disk_dev_id): Add
20660 `GRUB_DISK_DEVICE_HOST_ID'.
20661
20662 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
20663
e5dfe777 206642007-07-24 Jerone Young <jerone@gmail.com>
20665
f19dbdb7 20666 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
e5dfe777 20667 modules for compilation.
20668 * conf/powerpc-ieee1275.rmk: Likewise.
20669
20670 * include/multiboot.h: Move multiboot definitions to one file. Rename
20671 many definitions to not get grub specific.
20672 * include/multiboot2.h: Create header with multiboot 2 definitions.
20673 * include/grub/multiboot.h: Header for grub specific function
20674 prototypes and definitions.
20675 * include/grub/multiboot2.h: Likewise.
20676 * include/grub/multiboot_loader.h: Likewise.
20677 * include/grub/i386/pc/multiboot.h: Removed.
20678 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
20679
20680 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
20681 and 2 to allow for one multiboot and module commands.
20682 * loader/multiboot2.c: Add multiboot2 functionality.
20683 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
20684 and definition names.
20685 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
20686 2 functions.
20687 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
20688 ieee1275 specific multiboot2 code.
20689
20690 * kern/i386/pc/startup.S: Change headers and definition names for
20691 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
20692
daf0f0ba 206932007-07-22 Robert Millan <rmh@aybabtu.com>
20694
20695 * geninitheader.sh: Process file specified in first parameter rather
20696 than hardcoding grub_modules_init.lst.
fe6b695a 20697 * geninit.sh: Likewise. Also, construct header name dynamically rather
daf0f0ba 20698 than hardcoding grub_modules_init.h.
20699
20700 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
20701 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
20702 grub_probe_init.[ch] and grub_setup_init.[ch].
20703
20704 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
20705 grub_modules_init.h with grub_emu_init.h.
20706 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
20707 grub_probe_init.[ch] files.
20708 * conf/i386-efi.rmk: Likewise.
20709 * conf/i386-pc.rmk: Likewise.
20710 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
20711 grub_setup_init.[ch] files.
20712
20713 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
20714 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
20715 to initialize modules rather than a list of hardcoded functions.
20716 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
20717 grub_init_all() to initialize modules rather than a list of hardcoded
20718 functions.
20719
54cdc1cc 207202007-07-22 Robert Millan <rmh@aybabtu.com>
20721
20722 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
20723 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
20724
ad0686cc 207252007-07-22 Robert Millan <rmh@aybabtu.com>
20726
20727 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
20728 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
20729 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
20730 flag when running on SmartFirmware.
20731 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
20732 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
20733 was set.
20734
20735 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
20736 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
20737 rather than decreasing it.
20738
20739 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
20740 there's not enough space to do it, fail in the same way as when it
20741 can't be done because there are no partitions.
20742
20743 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
20744 when nvsetenv failed.
20745
969c02ec 207462007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
20747
20748 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
20749 because this rule is automatically generated.
20750 (grub-mkrescue): Removed for the same reason as above.
20751
5a79f472 207522007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
20753
20754 Migrate to GNU General Public License Version 3.
f19dbdb7 20755
5a79f472 20756 * COPYING: Replaced with the plain text version of GPLv3.
20757
20758 * config.guess: Updated from gnulib.
20759 * config.sub: Likewise.
20760
20761 * geninit.sh: Output a GPLv3 copyright notice.
20762 * geninitheader.sh: Likewise.
20763 * genmodsrc.sh: Likewise.
20764 * gensymlist.sh.in: Likewise.
20765
20766 * boot/i386/pc/boot.S: Upgraded to GPLv3.
20767 * boot/i386/pc/diskboot.S: Likewise.
20768 * boot/i386/pc/pxeboot.S: Likewise.
20769 * commands/blocklist.c: Likewise.
20770 * commands/boot.c: Likewise.
20771 * commands/cat.c: Likewise.
20772 * commands/cmp.c: Likewise.
20773 * commands/configfile.c: Likewise.
20774 * commands/echo.c: Likewise.
20775 * commands/help.c: Likewise.
20776 * commands/ls.c: Likewise.
20777 * commands/search.c: Likewise.
20778 * commands/terminal.c: Likewise.
20779 * commands/test.c: Likewise.
20780 * commands/videotest.c: Likewise.
20781 * commands/i386/cpuid.c: Likewise.
20782 * commands/i386/pc/halt.c: Likewise.
20783 * commands/i386/pc/play.c: Likewise.
20784 * commands/i386/pc/reboot.c: Likewise.
20785 * commands/i386/pc/vbeinfo.c: Likewise.
20786 * commands/i386/pc/vbetest.c: Likewise.
20787 * commands/ieee1275/halt.c: Likewise.
20788 * commands/ieee1275/reboot.c: Likewise.
20789 * commands/ieee1275/suspend.c: Likewise.
20790 * disk/loopback.c: Likewise.
20791 * disk/lvm.c: Likewise.
20792 * disk/raid.c: Likewise.
20793 * disk/efi/efidisk.c: Likewise.
20794 * disk/i386/pc/biosdisk.c: Likewise.
20795 * disk/ieee1275/ofdisk.c: Likewise.
20796 * font/manager.c: Likewise.
20797 * fs/affs.c: Likewise.
20798 * fs/ext2.c: Likewise.
20799 * fs/fat.c: Likewise.
20800 * fs/fshelp.c: Likewise.
20801 * fs/hfs.c: Likewise.
20802 * fs/hfsplus.c: Likewise.
20803 * fs/iso9660.c: Likewise.
20804 * fs/jfs.c: Likewise.
20805 * fs/minix.c: Likewise.
20806 * fs/sfs.c: Likewise.
20807 * fs/ufs.c: Likewise.
20808 * fs/xfs.c: Likewise.
20809 * hello/hello.c: Likewise.
20810 * include/grub/acorn_filecore.h: Likewise.
20811 * include/grub/arg.h: Likewise.
20812 * include/grub/bitmap.h: Likewise.
20813 * include/grub/boot.h: Likewise.
20814 * include/grub/cache.h: Likewise.
20815 * include/grub/device.h: Likewise.
20816 * include/grub/disk.h: Likewise.
20817 * include/grub/dl.h: Likewise.
20818 * include/grub/elfload.h: Likewise.
20819 * include/grub/env.h: Likewise.
20820 * include/grub/err.h: Likewise.
20821 * include/grub/file.h: Likewise.
20822 * include/grub/font.h: Likewise.
20823 * include/grub/fs.h: Likewise.
20824 * include/grub/fshelp.h: Likewise.
20825 * include/grub/gzio.h: Likewise.
20826 * include/grub/hfs.h: Likewise.
20827 * include/grub/kernel.h: Likewise.
20828 * include/grub/loader.h: Likewise.
20829 * include/grub/lvm.h: Likewise.
20830 * include/grub/misc.h: Likewise.
20831 * include/grub/mm.h: Likewise.
20832 * include/grub/net.h: Likewise.
20833 * include/grub/normal.h: Likewise.
20834 * include/grub/parser.h: Likewise.
20835 * include/grub/partition.h: Likewise.
20836 * include/grub/pc_partition.h: Likewise.
20837 * include/grub/raid.h: Likewise.
20838 * include/grub/rescue.h: Likewise.
20839 * include/grub/script.h: Likewise.
20840 * include/grub/setjmp.h: Likewise.
20841 * include/grub/symbol.h: Likewise.
20842 * include/grub/term.h: Likewise.
20843 * include/grub/terminfo.h: Likewise.
20844 * include/grub/tparm.h: Likewise.
20845 * include/grub/types.h: Likewise.
20846 * include/grub/video.h: Likewise.
20847 * include/grub/efi/api.h: Likewise.
20848 * include/grub/efi/chainloader.h: Likewise.
20849 * include/grub/efi/console.h: Likewise.
20850 * include/grub/efi/console_control.h: Likewise.
20851 * include/grub/efi/disk.h: Likewise.
20852 * include/grub/efi/efi.h: Likewise.
20853 * include/grub/efi/pe32.h: Likewise.
20854 * include/grub/efi/time.h: Likewise.
20855 * include/grub/i386/linux.h: Likewise.
20856 * include/grub/i386/setjmp.h: Likewise.
20857 * include/grub/i386/types.h: Likewise.
20858 * include/grub/i386/efi/kernel.h: Likewise.
20859 * include/grub/i386/efi/loader.h: Likewise.
20860 * include/grub/i386/efi/time.h: Likewise.
20861 * include/grub/i386/pc/biosdisk.h: Likewise.
20862 * include/grub/i386/pc/boot.h: Likewise.
20863 * include/grub/i386/pc/chainloader.h: Likewise.
20864 * include/grub/i386/pc/console.h: Likewise.
20865 * include/grub/i386/pc/init.h: Likewise.
20866 * include/grub/i386/pc/kernel.h: Likewise.
20867 * include/grub/i386/pc/loader.h: Likewise.
20868 * include/grub/i386/pc/memory.h: Likewise.
20869 * include/grub/i386/pc/multiboot.h: Likewise.
20870 * include/grub/i386/pc/serial.h: Likewise.
20871 * include/grub/i386/pc/time.h: Likewise.
20872 * include/grub/i386/pc/vbe.h: Likewise.
20873 * include/grub/i386/pc/vbeblit.h: Likewise.
20874 * include/grub/i386/pc/vbefill.h: Likewise.
20875 * include/grub/i386/pc/vbeutil.h: Likewise.
20876 * include/grub/i386/pc/vga.h: Likewise.
20877 * include/grub/ieee1275/ieee1275.h: Likewise.
20878 * include/grub/ieee1275/ofdisk.h: Likewise.
20879 * include/grub/powerpc/libgcc.h: Likewise.
20880 * include/grub/powerpc/setjmp.h: Likewise.
20881 * include/grub/powerpc/types.h: Likewise.
20882 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
20883 * include/grub/powerpc/ieee1275/console.h: Likewise.
20884 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
20885 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
20886 * include/grub/powerpc/ieee1275/loader.h: Likewise.
20887 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
20888 * include/grub/powerpc/ieee1275/time.h: Likewise.
20889 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
20890 * include/grub/sparc64/libgcc.h: Likewise.
20891 * include/grub/sparc64/setjmp.h: Likewise.
20892 * include/grub/sparc64/types.h: Likewise.
20893 * include/grub/sparc64/ieee1275/console.h: Likewise.
20894 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
20895 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
20896 * include/grub/sparc64/ieee1275/time.h: Likewise.
20897 * include/grub/util/biosdisk.h: Likewise.
20898 * include/grub/util/getroot.h: Likewise.
20899 * include/grub/util/lvm.h: Likewise.
20900 * include/grub/util/misc.h: Likewise.
20901 * include/grub/util/raid.h: Likewise.
20902 * include/grub/util/resolve.h: Likewise.
20903 * io/gzio.c: Likewise.
20904 * kern/device.c: Likewise.
20905 * kern/disk.c: Likewise.
20906 * kern/dl.c: Likewise.
20907 * kern/elf.c: Likewise.
20908 * kern/env.c: Likewise.
20909 * kern/err.c: Likewise.
20910 * kern/file.c: Likewise.
20911 * kern/fs.c: Likewise.
20912 * kern/loader.c: Likewise.
20913 * kern/main.c: Likewise.
20914 * kern/misc.c: Likewise.
20915 * kern/mm.c: Likewise.
20916 * kern/parser.c: Likewise.
20917 * kern/partition.c: Likewise.
20918 * kern/rescue.c: Likewise.
20919 * kern/term.c: Likewise.
20920 * kern/efi/efi.c: Likewise.
20921 * kern/efi/init.c: Likewise.
20922 * kern/efi/mm.c: Likewise.
20923 * kern/i386/dl.c: Likewise.
20924 * kern/i386/efi/init.c: Likewise.
20925 * kern/i386/efi/startup.S: Likewise.
20926 * kern/i386/pc/init.c: Likewise.
20927 * kern/i386/pc/lzo1x.S: Likewise.
20928 * kern/i386/pc/startup.S: Likewise.
20929 * kern/ieee1275/ieee1275.c: Likewise.
20930 * kern/powerpc/cache.S: Likewise.
20931 * kern/powerpc/dl.c: Likewise.
20932 * kern/powerpc/ieee1275/cmain.c: Likewise.
20933 * kern/powerpc/ieee1275/crt0.S: Likewise.
20934 * kern/powerpc/ieee1275/init.c: Likewise.
20935 * kern/powerpc/ieee1275/openfw.c: Likewise.
20936 * kern/sparc64/cache.S: Likewise.
20937 * kern/sparc64/dl.c: Likewise.
20938 * kern/sparc64/ieee1275/init.c: Likewise.
20939 * kern/sparc64/ieee1275/openfw.c: Likewise.
20940 * loader/efi/chainloader.c: Likewise.
20941 * loader/efi/chainloader_normal.c: Likewise.
20942 * loader/i386/efi/linux.c: Likewise.
20943 * loader/i386/efi/linux_normal.c: Likewise.
20944 * loader/i386/pc/chainloader.c: Likewise.
20945 * loader/i386/pc/chainloader_normal.c: Likewise.
20946 * loader/i386/pc/linux.c: Likewise.
20947 * loader/i386/pc/linux_normal.c: Likewise.
20948 * loader/i386/pc/multiboot.c: Likewise.
20949 * loader/i386/pc/multiboot_normal.c: Likewise.
20950 * loader/powerpc/ieee1275/linux.c: Likewise.
20951 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
20952 * normal/arg.c: Likewise.
20953 * normal/cmdline.c: Likewise.
20954 * normal/command.c: Likewise.
20955 * normal/completion.c: Likewise.
20956 * normal/execute.c: Likewise.
20957 * normal/function.c: Likewise.
20958 * normal/lexer.c: Likewise.
20959 * normal/main.c: Likewise.
20960 * normal/menu.c: Likewise.
20961 * normal/menu_entry.c: Likewise.
20962 * normal/misc.c: Likewise.
20963 * normal/parser.y: Likewise.
20964 * normal/script.c: Likewise.
20965 * normal/i386/setjmp.S: Likewise.
20966 * normal/powerpc/setjmp.S: Likewise.
20967 * normal/sparc64/setjmp.S: Likewise.
20968 * partmap/acorn.c: Likewise.
20969 * partmap/amiga.c: Likewise.
20970 * partmap/apple.c: Likewise.
20971 * partmap/gpt.c: Likewise.
20972 * partmap/pc.c: Likewise.
20973 * partmap/sun.c: Likewise.
20974 * term/gfxterm.c: Likewise.
20975 * term/terminfo.c: Likewise.
20976 * term/efi/console.c: Likewise.
20977 * term/i386/pc/console.c: Likewise.
20978 * term/i386/pc/serial.c: Likewise.
20979 * term/i386/pc/vesafb.c: Likewise.
20980 * term/i386/pc/vga.c: Likewise.
20981 * term/ieee1275/ofconsole.c: Likewise.
20982 * util/biosdisk.c: Likewise.
20983 * util/console.c: Likewise.
20984 * util/genmoddep.c: Likewise.
20985 * util/getroot.c: Likewise.
20986 * util/grub-emu.c: Likewise.
20987 * util/grub-mkdevicemap.c: Likewise.
20988 * util/grub-probe.c: Likewise.
20989 * util/lvm.c: Likewise.
20990 * util/misc.c: Likewise.
20991 * util/raid.c: Likewise.
20992 * util/resolve.c: Likewise.
20993 * util/update-grub.in: Likewise.
20994 * util/update-grub_lib.in: Likewise.
20995 * util/grub.d/00_header.in: Likewise.
20996 * util/grub.d/10_hurd.in: Likewise.
20997 * util/grub.d/10_linux.in: Likewise.
20998 * util/i386/efi/grub-install.in: Likewise.
20999 * util/i386/efi/grub-mkimage.c: Likewise.
21000 * util/i386/pc/grub-install.in: Likewise.
21001 * util/i386/pc/grub-mkimage.c: Likewise.
21002 * util/i386/pc/grub-mkrescue.in: Likewise.
21003 * util/i386/pc/grub-setup.c: Likewise.
21004 * util/i386/pc/misc.c: Likewise.
21005 * util/powerpc/ieee1275/grub-install.in: Likewise.
21006 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
21007 * util/powerpc/ieee1275/misc.c: Likewise.
21008 * video/bitmap.c: Likewise.
21009 * video/video.c: Likewise.
21010 * video/i386/pc/vbe.c: Likewise.
21011 * video/i386/pc/vbeblit.c: Likewise.
21012 * video/i386/pc/vbefill.c: Likewise.
21013 * video/i386/pc/vbeutil.c: Likewise.
21014 * video/readers/tga.c: Likewise.
21015
3572d015 210162007-07-02 Robert Millan <rmh@aybabtu.com>
21017
21018 * conf/i386-efi.rmk: Replace obsolete reference to
21019 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
21020 with util/getroot.c.
21021 * conf/powerpc-ieee1275.rmk: Likewise.
21022 * conf/sparc64-ieee1275.rmk: Likewise.
21023
21024 * util/grub-emu.c (main): Fix unchecked pointer handling.
21025
2c2a681b 210262007-07-02 Robert Millan <rmh@aybabtu.com>
21027
21028 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
21029 invocation to fail, in order to support partition-less media.
21030
21031 * util/i386/pc/grub-install.in: Likewise.
21032
21033 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
21034 which fs or partmap modules are needed (akin to its sister scripts).
21035
21036 Also use grub-probe to get rid of unportable /proc/mounts check.
21037
21038 Print the same informational message that the other scripts do, before
fe6b695a 21039 exiting.
2c2a681b 21040
6193defe 210412007-06-23 Robert Millan <rmh@aybabtu.com>
21042
fe6b695a 21043 * util/update-grub_lib.in (font_path): New function. Determine whether
6193defe 21044 a font file can be found and, if so, echo the GRUB path to it.
21045
21046 * util/update-grub.in: Handle multiple terminals depending on user
21047 input, platform availability and font file presence. Propagate
21048 variables of our findings to /etc/grub.d/ children.
21049
21050 * util/grub.d/00_header.in: Handle multiple terminals, based on
21051 environment setup by update-grub.
21052
eface1dc 210532007-06-23 Robert Millan <rmh@aybabtu.com>
21054
ba50d28f 21055 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
eface1dc 21056
bf697e28 210572007-06-21 Robert Millan <rmh@aybabtu.com>
21058
21059 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
21060 indicate end of data section in kernel image.
21061 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
21062 GRUB_KERNEL_MACHINE_DATA_END.
21063
21064 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
21065 space for it.
21066 * kern/i386/efi/startup.S: Likewise.
21067
21068 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
21069 during image generation. Implement --prefix option to override this
21070 patch.
21071 * util/i386/efi/grub-mkimage.c: Likewise.
21072
21073 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
21074 code to make path relative to its root into a separate function.
21075
21076 * util/i386/pc/grub-install.in: Use newly provided
21077 make_system_path_relative_to_its_root() to convert ${grubdir}, then
21078 pass the result to grub-install --prefix.
21079
baa574b4 210802007-06-13 Robert Millan <rmh@aybabtu.com>
21081
21082 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
21083 DEFAULT_DEVICE_MAP.
21084 * util/grub-emu.c: Use above definitions from misc.h instead of
21085 defining them.
21086 * util/grub-mkdevicemap.c: Likewise.
21087 * util/i386/pc/grub-setup.c: Likewise.
21088 * util/grub-probe.c: Likewise.
21089 (probe): Abort with grub_util_error() when either
21090 grub_guess_root_device or grub_util_get_grub_dev fails.
21091
0215dcbf 210922007-06-12 Robert Millan <rmh@aybabtu.com>
21093
21094 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
21095 "pager" assignment.
21096 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
21097 "pcdata".
21098 * util/grub-probe.c (probe): Likewise for "drive_name".
21099
8af2ab7b 211002007-06-11 Robert Millan <rmh@aybabtu.com>
21101
21102 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
21103 not just the cdrom one.
21104
59d31694 211052007-06-11 Robert Millan <rmh@aybabtu.com>
21106
21107 * util/i386/pc/grub-mkrescue.in: Add "set -e".
21108 Add --pkglibdir=DIR option to override pkglibdir.
21109 Mention --image-type=TYPE in help output.
21110 Fix --grub-mkimage (it was a no-op).
fe6b695a 21111 Abort gracefully when no parameter is given.
59d31694 21112
7ee367e4 211132007-06-11 Robert Millan <rmh@aybabtu.com>
21114
21115 * util/i386/pc/grub-mkrescue.in: New file.
21116 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
21117 * Makefile.in: Handle bin_SCRIPTS.
21118
29b0ed46 211192007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
21120
21121 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
21122 list of video modes.
21123
c0f90770 211242007-06-06 Robert Millan <rmh@aybabtu.com>
21125
21126 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
21127 file doesn't exist, or if it is in a filesystem grub can't read.
21128
21129 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
21130 not abort if GRUB_DRIVE could not be defined. Rearrange generated
21131 header comment to fit in 80 columns when the variables are resolved.
21132
21133 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
21134 could be identified by update-grub. Remove redundant check for
fe6b695a 21135 unifont.pff existence (since convert_system_path_to_grub_path now
c0f90770 21136 handles that).
21137
fb36dc26 211382007-06-04 Robert Millan <rmh@aybabtu.com>
21139
21140 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
21141
21142 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
21143
21144 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
21145
0c68c93e 211462007-06-04 Robert Millan <rmh@aybabtu.com>
21147
21148 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
21149
21150 * include/grub/partition.h: Declare grub_apple_partition_map_init and
21151 grub_apple_partition_map_fini.
21152
21153 * util/biosdisk.c
21154 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
21155 to access >2 TiB disks).
21156
21157 Print disk->total_sectors with %llu instead of %lu, since this
21158 variable is always 64-bit (prevents wrong disk size from being displayed
21159 on either >2 TiB disk or big-endian CPU).
21160
21161 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
21162 into a generic case that supports all (sane) partition maps.
21163
21164 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
21165 breaks big-endian.
21166
21167 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
21168 and grub_apple_partition_map_fini() after that.
21169
0f23eb74 211702007-06-01 Robert Millan <rmh@aybabtu.com>
21171
21172 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
21173
21174 * util/grub.d/00_header.in: Only enable gfxterm when
21175 convert_system_path_to_grub_path() succeeds.
21176
42c71976 211772007-05-20 Robert Millan <rmh@aybabtu.com>
21178
21179 * util/update-grub_lib.in: New file.
21180 * DISTLIST: Add update-grub_lib.in.
21181 * conf/common.rmk: Generate update-grub_lib and install it in
21182 $(lib_DATA).
21183 * Makefile.in: Add install routine for $(lib_DATA).
21184
21185 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
21186 function provided by update-grub_lib to support arbitrary paths of
21187 unifont.pff.
21188 * util/update-grub.in: Use convert_system_path_to_grub_path() to
21189 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
21190
5beb2291 211912007-05-19 Robert Millan <rmh@aybabtu.com>
21192
21193 * commands/i386/cpuid.c: New module.
21194 * DISTLIST: Add it.
21195 * conf/i386-efi.rmk: Enable cpuid.mod.
21196 * conf/i386-pc.rmk: Likewise.
21197
7262eca1 211982007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
21199
21200 * kern/disk.c (grub_disk_read): Check return value of
21201 grub_realloc().
21202
260ba823 212032007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
21204
21205 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
21206 arrays.
21207 * disk/raid.c (grub_raid_open): Likewise.
21208
1ecb6cf2 212092007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
21210
21211 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
21212 stack instead of on the heap.
21213
21214 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
21215 before doing a read on it.
21216
21217 * configure.ac: Only use -fno-stack-protector for the target
21218 environment.
f19dbdb7 21219
21c8cbb1 212202007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
21221
21222 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
21223 __attribute_ ((unused)) to mode_type argument.
21224
21225 * util/getroot.c (grub_guess_root_device): Fix #endif.
f19dbdb7 21226
21c8cbb1 21227 * kern/misc.c (memcmp): Fix prototype.
21228
21229 * include/grub/partition.h [GRUB_UTIL]
21230 (grub_gpt_partition_map_init): Add prototype.
21231 (grub_gpt_partition_map_fini): Likewise.
21232
21233 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
21234 at the right place.
21235
21236 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
21237 (grub_fat_read_data): Likewise.
21238 (grub_fat_find_dir): Likewise.
21239
21240 * font/manager.c (find_glyph): Make table a const.
21241 (grub_font_get_glyph): Remove bitmap from if statement.
f19dbdb7 21242
849d55d3 212432007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
21244
21245 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
21246 code, first search for device in /dev/mapper, then in /dev.
21247 (grub_util_get_grub_dev): New function.
21248 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
21249 prototype.
21250 * util/grub-probe.c (probe): Remove check for RAID, call
21251 grub_util_get_grub_dev() instead of
21252 grub_util_biosdisk_get_grub_dev().
21253 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
21254 grub_util_biosdisk_get_grub_dev().
21255 * util/i386/pc/grub-setup.c (main): Likewise.
21256
8fff7c2f 212572007-05-16 Robert Millan <rmh@aybabtu.com>
21258
21259 * DISTLIST: Update for the latest changes.
21260 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
21261 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
21262 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
21263 grub/util/biosdisk.h.
21264 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
21265 grub/util/biosdisk.h.
21266
48e12b52 212672007-05-16 Robert Millan <rmh@aybabtu.com>
21268
21269 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
21270
46b9d128 212712007-05-16 Robert Millan <rmh@aybabtu.com>
21272
21273 * util/i386/efi/grub-install.in: New.
21274 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
21275 newly added grub-install.
21276 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
21277 include.
21278 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
21279 grub/util/biosdisk.h.
21280 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
21281 grub/util/biosdisk.h.
21282
2d1a40a9 212832007-05-16 Robert Millan <rmh@aybabtu.com>
21284
21285 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
21286 * include/grub/util/biosdisk.h: ... here.
21287 * util/i386/pc/biosdisk.c: Moved to ...
21288 * util/biosdisk.c: ... here.
21289 * util/i386/pc/getroot.c: Moved to ...
21290 * util/getroot.c: ... here.
21291 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
21292 * util/grub-mkdevicemap.c: ... here.
21293 * util/i386/pc/grub-probe.c: Moved to ...
21294 * util/grub-probe.c: ... here.
21295
9e26e3bc 212962007-05-15 Robert Millan <rmh@aybabtu.com>
21297
21298 * util/update-grub.in: Remove duplicated line in grub.cfg header
21299 message.
21300
57f96397 213012007-05-13 Robert Millan <rmh@aybabtu.com>
21302
21303 * util/update-grub.in: Fix a few assumptions about the devices holding
21304 /, /boot and /boot/grub being the same.
21305 * util/grub.d/00_header.in: Likewise.
21306 * util/grub.d/10_hurd.in: Likewise.
21307 * util/grub.d/10_linux.in: Likewise.
21308
21309 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
21310 patterns. Use that to define the `.old' suffix as older than `'.
21311
21312 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
21313
21314 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
21315 the grub.cfg header message.
21316
2e610d62 213172007-05-11 Robert Millan <rmh@aybabtu.com>
21318
21319 * util/update-grub.in: Create device.map if it doesn't already exist,
21320 before attempting to run grub-probe.
21321 Check for grub-probe and grub-mkdevicemap with the same code
21322 grub-install is using.
21323 Remove test mode.
21324
3f6a10ef 213252007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
21326
21327 * Makefile.in: Add the datarootdir autoconf variable.
21328
02e7b75e 213292007-05-09 Robert Millan <rmh@aybabtu.com>
21330
21331 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
f19dbdb7 21332 fail gracefully if dev->disk->partition == NULL.
02e7b75e 21333
75f396cc 213342007-05-07 Robert Millan <rmh@aybabtu.com>
21335
21336 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
21337 determine partition map module.
21338 * util/i386/pc/grub-install.in: Use this feature to decide which
21339 partition module to load, instead of hardcoding pc and gpt.
21340
da65cb36 213412007-05-07 Robert Millan <rmh@aybabtu.com>
21342
21343 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
21344 source directory differs from build directory.
21345
b57d6a91 213462007-05-05 Robert Millan <rmh@aybabtu.com>
21347
21348 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
21349 initialisation.
21350
509d00f1 213512007-05-05 Robert Millan <rmh@aybabtu.com>
21352
21353 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
21354
c48f23ef 213552007-05-05 Robert Millan <rmh@aybabtu.com>
21356
21357 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
21358 command-line arguments via ${GRUB_CMDLINE_LINUX}.
21359
20b97658 213602007-05-05 Robert Millan <rmh@aybabtu.com>
21361
21362 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
21363 (grub_probe_SOURCES): Likewise.
21364 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
21365 GPT and initialize dos_part and bsd_part accordingly.
21366 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
21367 install_bsd_part.
21368 (main): Activate gpt module for use during partition identification,
21369 and deactivate it afterwards.
21370 * util/i386/pc/grub-install.in: Add gpt module to core.img.
21371 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
21372 partition identification, and deactivate it afterwards.
21373
99123174 213742007-05-05 Robert Millan <rmh@aybabtu.com>
21375
21376 * term/i386/pc/console.c (grub_console_fini): Call
21377 grub_term_set_current() before grub_term_unregister().
21378
ebd97f6e 213792007-05-04 Robert Millan <rmh@aybabtu.com>
21380
21381 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
21382 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
21383 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
21384 and update-grub_DATA.
21385 * conf/common.rmk: Build and install update-grub components.
21386 * conf/common.mk: Regenerate.
21387 * util/update-grub.in: New. Core of update-grub.
21388 * util/grub.d/00_header.in: New. Generates grub.cfg header.
21389 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
21390 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
21391 * util/grub.d/README: New. Document grub.d directory layout.
21392
b06a264d 213932007-05-01 Robert Millan <rmh@aybabtu.com>
21394
21395 * util/grub-emu.c: Move initialization functions
21396 grub_util_biosdisk_init() and grub_init_all() before
21397 grub_util_biosdisk_get_grub_dev(), which relies on them.
21398
41f0050e 213992007-04-19 Robert Millan <rmh@aybabtu.com>
21400
21401 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
21402 it is used later.
21403
04582bb3 214042007-04-18 Jerone Young <jerone@gmail.com>
21405
f19dbdb7 21406 * kernel/elf.c: Add missing parenthesis for conditional statement
04582bb3 21407 stanza.
21408
08db4632 214092007-04-10 Jerone Young <jerone@gmail.com>
49892fdf 21410
08db4632 21411 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
21412 continue on and look for device node with real device name.
21413
801b76be 214142007-04-10 Jerone Young <jerone@gmail.com>
f19dbdb7 21415
fe6b695a 21416 * configure.ac: Add argument for autoconf to use transformation
1d543c3e 21417 ability.
21418 * Makefile.in: Add autoconf package transformation code.
21419 * util/i386/pc/grub-install.in: Likewise.
21420 * util/powerpc/ieee1275/grub-install.in: Likewise.
21421
6795c4e1 214222007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
21423
21424 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
21425 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
21426 (EXT2_REVISION): Likewise.
21427 (EXT2_INODE_SIZE): Likewise.
21428 (struct grub_ext2_block_group): Added a missing member
21429 "used_dirs".
21430 (grub_ext2_read_inode): Divide by the inode size in a superblock
21431 instead of 128 to obtain INODES_PER_BLOCK.
21432 Use the macro EXT2_INODE_SIZE instead of directly using
21433 SBLOCK->INODE_SIZE.
21434
d70af616 214352007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
21436
21437 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
21438 superblock instead of the structure size to compute an
21439 offset. This fixes the problem that GRUB could not read a
21440 filesystem when inode size is different from 128-byte.
21441
3b801603 214422007-03-05 Marco Gerards <marco@gnu.org>
21443
21444 * normal/main.c (read_config_file): When "menu" is not set, create
21445 an initial context.
21446
4785bfe4 214472007-02-21 Hollis Blanchard <hollis@penguinppc.org>
21448
21449 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
21450 (HEAP_LIMIT): New macro.
21451 (grub_claim_heap): Claim memory up to `heaplimit'.
21452
a0cbb023 214532007-02-21 Hollis Blanchard <hollis@penguinppc.org>
21454
21455 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
21456 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
21457 (_start): Likewise.
21458 (grub_arch_modules_addr): Return address after `_end'.
21459 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
21460 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
21461 (add_segments): Calculate `_end' from phdr size and location.
21462 (ALIGN_UP): Moved to ...
21463 * include/grub/misc.h: here.
21464 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
21465 New macro.
21466 (GRUB_IEEE1275_MODULE_BASE): Removed.
21467
fd7d8eba 214682007-02-20 Hollis Blanchard <hollis@penguinppc.org>
21469
21470 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
21471 loop boundary.
21472
9b09e6fc 214732007-02-20 Hollis Blanchard <hollis@penguinppc.org>
21474
21475 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
21476 All users updated.
21477 (grub_elf64_load_hook_t): Likewise.
21478 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
21479 debug output.
21480
3ce27299 214812007-02-20 Hollis Blanchard <hollis@penguinppc.org>
21482
21483 * kern/mm.c: Update copyright.
21484 (grub_mm_debug): Correct syntax error.
21485 (grub_mm_dump_free): New function.
21486 (grub_debug_free): Call `grub_free'.
21487 * include/grub/mm.h: Update copyright.
21488 (grub_mm_dump_free): Add declaration.
21489
077d5fee 214902007-02-12 Hollis Blanchard <hollis@penguinppc.org>
21491
21492 * include/grub/ieee1275/ieee1275.h: Update copyright.
21493 * kern/powerpc/ieee1275/init.c: Likewise.
21494 * kern/powerpc/ieee1275/openfw.c: Likewise.
21495
21496 * loader/powerpc/ieee1275/linux.c: Likewise.
21497 * include/grub/elfload.h: Likewise.
21498 * kern/elf.c: Likewise.
21499 (grub_elf32_load): Pass `base' and `size' parameters. Update all
21500 callers.
21501 (grub_elf64_load): Likewise.
21502 (grub_elf32_load_segment): Move to a nested function.
21503 (grub_elf64_load_segment): Likewise.
21504
dc946850 215052007-02-12 Hollis Blanchard <hollis@penguinppc.org>
21506
21507 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
21508 prototype.
21509 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
21510 (grub_heap_len): Likewise.
21511 (HEAP_SIZE): New macro.
21512 (grub_claim_heap): New function.
21513 (grub_machine_init): Don't claim heap directly. Call
21514 `grub_claim_heap'.
21515 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
21516 (grub_available_iterate): New function.
21517
baa2a121 215182007-02-03 Thomas Schwinge <tschwinge@gnu.org>
21519
21520 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
21521 * configure.ac: Use it for testing the HOST and TARGET compilers.
21522
4fe9862e 215232006-12-13 Thomas Schwinge <tschwinge@gnu.org>
21524
21525 * Makefile.in (enable_grub_emu): New variable.
21526 * configure.ac (--enable-grub-emu): New option.
21527 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
21528 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
21529 * conf/i386-pc.rmk: Likewise.
21530 * conf/powerpc-ieee1275.rmk: Likewise.
21531 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
21532
a8aa5762 215332006-12-12 Marco Gerards <marco@gnu.org>
21534
21535 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
21536
21537 * kern/env.c (grub_env_unset): Don't free the member `value' when
21538 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
21539 pointer.
21540
21541 * normal/main.c (current_menu): Removed.
21542 (free_menu): Unset the `menu' environment variable.
21543 (grub_normal_menu_addentry): Make use of the environment variable
21544 `menu', instead of using the global `current_menu'. Allocate
21545 memory for the sourcecode of this entry.
21546 (read_config_file): New argument `nested', changed all callers.
21547 Only in the case of a new context, initialize a new menu. Set the
21548 `menu' environment variable.
21549 (grub_normal_execute): Don't set and unset the environment
21550 variable `menu' here anymore. Only free the menu when leaving the
21551 context.
21552
21553 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
21554 leak.
21555
957b3a3e 215562006-12-11 Marco Gerards <marco@gnu.org>
21557
21558 * normal/menu_entry.c (run): Fix off by one bug so the last line
21559 is executed. Move the loader check to outside the loop.
21560
ef875714 215612006-12-08 Hollis Blanchard <hollis@penguinppc.org>
21562
21563 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
21564
4e739985 215652006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
21566
21567 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
21568 the number of sectors. Reported by Andrey Shuvikov
21569 <mr_hyro@yahoo.com>.
f19dbdb7 21570
790707f2 215712006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
21572
21573 * kern/disk.c (grub_disk_read): When there is a read error, always
21574 try to read only the necessary data.
f19dbdb7 21575
790707f2 21576 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
21577 disk/raid.c.
21578 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
21579 prototype.
21580 [GRUB_UTIL] (grub_raid_fini): Likewise.
21581 [GRUB_UTIL] (grub_lvm_init): Likewise.
f19dbdb7 21582 [GRUB_UTIL] (grub_lvm_fini): Likewise.
790707f2 21583 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
21584 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
21585 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
21586 and grub_raid_fini().
f19dbdb7 21587
03e58196 215882006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
21589
21590 * include/grub/types.h (__unused): Rename to UNUSED.
21591 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
21592 (grub_elf64_size): Likewise.
f19dbdb7 21593
ae4f23bf 215942006-11-03 Hollis Blanchard <hollis@penguinppc.org>
21595
21596 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
21597 grub_error_push and grub_error_pop in the error-handling path.
21598 (grub_elf32_load_segment): Only call grub_file_read with non-zero
21599 length.
21600
2166cc83 216012006-11-03 Hollis Blanchard <hollis@penguinppc.org>
21602
21603 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
21604 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
21605 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21606 (kernel_elf_SOURCES): Likewise.
21607 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
21608 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
21609 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
21610 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
21611 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
21612 (elf_mod_SOURCES): New variable.
21613 (elf_mod_CFLAGS): Likewise.
21614 (elf_mod_LDFLAGS): Likewise.
21615 * include/grub/types.h (__unused): New macro.
21616 * include/grub/elfload.h: New file.
21617 * kern/elf.c: Likewise.
21618 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
21619 (ELF32_LOADMASK): New macro.
21620 (ELF64_LOADMASK): Likewise.
21621 (vmlinux): Removed.
21622 (grub_linux_load32): New function.
21623 (grub_linux_load64): Likewise.
21624 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
21625 Use grub_elf_t instead of grub_file_t.
21626
a09d5aa5 216272006-11-02 Hollis Blanchard <hollis@penguinppc.org>
21628
21629 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
21630 `catch_result' to struct set_color_args.
21631
d976fc51 216322006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
21633
21634 * normal/menu.c: Include grub/script.h.
21635 * normal/menu_entry.c: Likewise.
21636 * include/grub/normal.h: Do not include grub/script.h.
21637
67507549 216382006-10-27 Hollis Blanchard <hollis@penguinppc.org>
21639
21640 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
21641
69203a99 216422006-10-27 Hollis Blanchard <hollis@penguinppc.org>
21643
21644 * kern/disk.c (grub_disk_open): Print debug messages when opening a
21645 disk.
21646 (grub_disk_close): Print debug messages when closing a disk.
21647 (grub_disk_read): Print debug messages when disk read fails.
21648 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
21649 filesystem type.
21650 * kern/partition.c: Include misc.h.
21651 (grub_partition_iterate): Print debug messages when detecting
21652 partition type.
21653
e2b8278c 216542006-10-27 Hollis Blanchard <hollis@penguinppc.org>
21655
21656 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
21657 is negative.
21658 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
21659
97b2f2ff 216602006-10-26 Hollis Blanchard <hollis@penguinppc.org>
21661
21662 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
21663 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
21664
6555d655 216652006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
21666
21667 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
21668 instead of sizeof(lv). Patch by Michael Guntsche.
21669
4d42b77f 216702006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
21671
21672 * disk/lvm.c: Rename VGS to VG_LIST.
21673 (grub_lvm_iterate): Change VGS->LV to VG-LV.
21674 (grub_lvm_open): Likewise.
21675 Thanks to Michael Guntsche for finding this bug.
21676
5d74d927 216772006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
21678
21679 * configure.ac (AC_INIT): Bumped to 1.95.
21680
a1bb27e4 216812006-10-14 Robert Millan <rmh@aybabtu.com>
21682
21683 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
21684 with "/dev/.static/dev/md".
21685
e0994b8b 216862006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
21687
21688 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
21689 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
21690 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
21691 DRIVE_NAME are always freed.
21692
21693 * util/i386/pc/biosdisk.c (make_device_name): Add one into
21694 DOS_PART, as a DOS partition is counted from one instead of zero
21695 now. Reported by Robert Millan.
21696
ddd5cee9 216972006-10-14 Robert Millan <rmh@aybabtu.com>
21698
21699 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
21700 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
21701 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
21702 string returned by grub_guess_root_device.
21703 * util/i386/pc/grub-setup.c: Likewise.
21704 * util/i386/pc/grub-probefs.c: Likewise.
21705
21706 * util/i386/pc/grub-probefs.c: Rename to ...
21707 * util/i386/pc/grub-probe.c: ... this.
21708 * DISTLIST: Remove grub-probefs, add grub-probe.
21709 * conf/i386-efi.rmk: Likewise.
21710 * conf/i386-pc.rmk: Likewise.
21711 * util/i386/pc/grub-install.in: Likewise.
21712
21713 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
21714 choose which information we want to print.
21715
2b002173 217162006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
21717
21718 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
21719 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
21720 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
21721 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
21722 video/readers/tga.c and video/i386/pc/vbeutil.c.
21723
217242006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
21725
21726 Added support for RAID and LVM.
f19dbdb7 21727
2b002173 21728 * disk/lvm.c: New file.
21729 * disk/raid.c: Likewise.
21730 * include/grub/lvm.h: Likewise.
f19dbdb7 21731 * include/grub/raid.h: Likewise.
2b002173 21732 * include/grub/util/lvm.h: Likewise.
21733 * include/grub/util/raid.h: Likewise.
21734 * util/lvm.c: Likewise.
21735 * util/raid.c: Likewise.
21736
21737 * include/grub/disk.h (grub_disk_dev_id): Add
21738 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
21739 (grub_disk_get_size): New prototype.
21740 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
21741 returns a partition.
21742 (grub_disk_get_size): New function.
f19dbdb7 21743
2b002173 21744 * kern/i386/pc/init.c (make_install_device): Copy the prefix
21745 verbatim if grub_install_dos_part is -2.
21746
21747 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
21748 and LVM devices.
21749
21750 * util/i386/pc/grub-setup.c (setup): New argument
21751 MUST_EMBED. Force embedding of GRUB when the argument is
21752 true. Close FILE before returning.
21753 (main): Add support for RAID and LVM.
f19dbdb7 21754
2b002173 21755 * conf/common.rmk: Add RAID and LVM modules.
21756 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
21757 util/lvm.c.
21758 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
21759
21760 * kern/misc.c (grub_strstr): New function.
21761 * include/grub/misc.h (grub_strstr): New prototype.
21762
050548d0 217632006-10-10 Tristan Gingold <tristan.gingold@bull.net>
21764
21765 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
21766
da849d2d 217672006-10-05 Tristan Gingold <tristan.gingold@bull.net>
21768
21769 * kern/misc.c (grub_strtoull): Guess the base only if not
21770 specified.
21771
97b2f2ff 217722006-10-01 Hollis Blanchard <hollis@penguinppc.org>
4f0acd39 21773
21774 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
21775 PowerMac support.
21776
97b2f2ff 217772006-10-01 Hollis Blanchard <hollis@penguinppc.org>
fba51f48 21778
21779 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
21780
21781 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
21782 Remove `flags' argument. All callers changed.
21783 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
21784 (IEEE1275_IHANDLE_INVALID): New variable.
21785 (IEEE1275_CELL_INVALID): New variable.
21786 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
21787 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
21788 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
21789 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
21790 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
21791 codes from Open Firmware. All callers updated.
21792 (grub_ieee1275_next_property): Directly return Open Firmware return
21793 code.
21794 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
21795 Standardize error checking from `grub_ieee1275_get_property'.
21796 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
21797 `devalias' to `aliases'. Correct comments. Consolidate error paths.
21798
97b2f2ff 217992006-10-01 Hollis Blanchard <hollis@penguinppc.org>
cc6d3df3 21800
21801 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
21802 `instance_to_package_args' to `instance_to_path_args'.
21803
21804 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
21805 `grub_ieee1275_chosen'.
21806
21807 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
21808 `grub_ieee1275_interpret'.
21809
97b2f2ff 218102006-09-25 Hollis Blanchard <hollis@penguinppc.org>
02bb8acc 21811
21812 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
21813
97b2f2ff 218142006-09-25 Hollis Blanchard <hollis@penguinppc.org>
663b72f0 21815
21816 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
21817 (__cmpdi): Likewise.
21818
21819 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
21820 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
21821 `grub_ssize_t'.
21822
02bb8acc 21823 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
663b72f0 21824
21825 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
21826 to type `grub_ssize_t'.
21827 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
21828
7f9a8531 218292006-09-22 Marco Gerards <marco@gnu.org>
21830
21831 * normal/script.c (grub_script_create_cmdmenu): Skip leading
21832 newlines.
21833
b5ef1102 218342006-09-22 Marco Gerards <marco@gnu.org>
21835
21836 * commands/echo.c: New file.
21837
21838 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
21839
21840 * conf/common.rmk (echo_mod_SOURCES): New variable.
21841 (echo_mod_CFLAGS): Likewise.
21842 (echo_mod_LDFLAGS): Likewise.
21843
2cff3677 218442006-09-22 Marco Gerards <marco@gnu.org>
21845
21846 * normal/main.c (get_line): Malloc memory instead of using
21847 preallocated memory. Removed the arguments `cmdline' and
21848 `max_len'. Updated all callers.
21849
6ba4688b 218502006-09-22 Marco Gerards <marco@gnu.org>
21851
21852 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
21853 (normal_mod_DEPENDENCIES): Likewise.
21854
21855 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
21856 (normal_mod_DEPENDENCIES): Likewise.
21857
21858 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
21859
e02ac02c 218602006-09-22 Johan Rydberg <jrydberg@gnu.org>
21861
21862 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
21863 programs.
21864 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
21865 (normal_mod_DEPENDENCIES): Likewise.
21866 * conf/i386-pc.mk: Regenerate.
21867 * conf/i386-efi.mk: Likewise
21868 * conf/common.mk: Likewise.
21869 * conf/powerpc-ieee1275.mk: Likewise.
21870 * conf/sparc64-ieee1275.mk: Likewise.
f19dbdb7 21871
8d252e44 218722006-09-22 Robert Millan <rmh@aybabtu.com>
21873
21874 Sync with i386 version.
21875 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
21876 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
21877
209bf7ac 218782006-09-21 Robert Millan <rmh@aybabtu.com>
21879
21880 Import from GRUB Legacy (lib/device.c):
21881 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
21882 (init_device_map) [__linux__]: Add support for I2O devices.
21883
6b146090 218842006-09-14 Marco Gerards <marco@gnu.org>
21885
21886 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
21887 `-melf_i386'.
21888
e38600a8 218892006-09-14 Robert Millan <rmh@aybabtu.com>
2952da5d 21890
21891 * util/i386/pc/grub-install.in: Skip menu.lst when removing
21892 /boot/grub/*.lst.
78fa1790 21893
2952da5d 21894 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
6b146090 21895
2952da5d 21896 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
21897 before adding it to device.map.
21898
01b82a64 218992006-08-15 Johan Rydberg <jrydberg@gnu.org>
21900
fe6b695a 21901 * genmk.rb: Let GCC generate dependencies the first time it
01b82a64 21902 compiles a file; using the -MD option.
21903 * conf/common.mk: Regenerate.
21904 * conf/i386-pc.mk: Likewise.
21905 * conf/i386-efi.mk: Likewise.
21906 * conf/powerpc-ieee1275.mk: Likewise.
21907 * conf/sparc64-ieee1275.mk: Likewise.
f19dbdb7 21908
1064790d 219092006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
21910
21911 Move the prototypes of grub_setjmp and grub_longjmp to
21912 cpu/setjmp.h, so that each architecture may specify different
21913 attributes.
f19dbdb7 21914
1064790d 21915 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
21916 (grub_longjmp): Likewise.
21917 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
21918 (grub_longjmp): Likewise.
21919 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
21920 (grub_longjmp): Likewise.
21921
21922 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
21923 [!GRUB_UTIL] (grub_longjmp): Removed.
21924
29dda3ed 219252006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
21926
21927 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
21928 "color!" method does not return any value.
21929
ad2a06ed 219302006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
21931
21932 * include/grub/bitmap.h: New file.
21933
21934 * include/grub/i386/pc/vbeutil.h: Likewise.
21935
21936 * video/bitmap.c: Likewise.
21937
21938 * video/readers/tga.c: Likewise.
21939
21940 * video/i386/pc/vbeutil.c: Likewise.
21941
21942 * commands/videotest.c: Code cleanup and updated to reflect to new
21943 video API.
21944
21945 * term/gfxterm.c: Likewise.
21946
21947 * video/video.c: Likewise.
21948
21949 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
21950 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
21951 (bitmap_mod_SOURCES): New entry.
21952 (bitmap_mod_CFLAGS): Likewise.
21953 (bitmap_mod_LDFLAGS): Likewise.
21954 (tga_mod_SOURCES): Likewise.
21955 (tga_mod_CFLAGS): Likewise.
21956 (tga_mod_LDFLAGS): Likewise.
21957
21958 * include/grub/video.h (grub_video_blit_operators): New enum type.
21959 (grub_video_render_target): Changed as forward declaration and moved
21960 actual definition to be video driver specific.
21961 (grub_video_adapter.blit_bitmap): Added blitting operator.
21962 (grub_video_adapter.blit_render_target): Likewise.
21963 (grub_video_blit_bitmap): Likewise.
21964 (grub_video_blit_render_target): Likewise.
21965
21966 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
21967 driver specific render target definition.
21968 (grub_video_vbe_map_rgba): Added driver internal helper.
21969 (grub_video_vbe_unmap_color): Updated to use
21970 grub_video_i386_vbeblit_info.
21971 (grub_video_vbe_get_video_ptr): Likewise.
21972
21973 * include/grub/i386/pc/vbeblit.h
21974 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
21975 grub_video_i386_vbeblit_info.
21976 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
21977 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
21978 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
21979 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
21980 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
21981 (grub_video_i386_vbeblit_index_index): Likewise.
21982 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
21983 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
21984 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
21985 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
21986 operator.
21987 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
21988 operator.
21989
21990 * video/i386/pc/vbeblit.c: Updated to reflect changes on
21991 include/grub/i386/pc/vbeblit.h.
21992
21993 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
21994 Updated to use grub_video_i386_vbeblit_info.
21995 (grub_video_i386_vbefill_R8G8B8): Likewise.
21996 (grub_video_i386_vbefill_index): Likewise.
21997 (grub_video_i386_vbefill): Added generic filler.
21998
21999 * video/i386/pc/vbefill.c: Updated to reflect changes on
22000 include/grub/i386/pc/vbefill.h.
22001
22002 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
22003 grub_video_i386_vbeblit_info.
22004 (grub_video_vbe_unmap_color): Likewise.
22005 (grub_video_vbe_blit_glyph): Likewise.
22006 (grub_video_vbe_scroll): Likewise.
22007 (grub_video_vbe_draw_pixel): Removed function.
22008 (grub_video_vbe_get_pixel): Likewise.
22009 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
22010 updated code to use it.
22011 (common_blitter): Added common blitter for render target and bitmap.
22012 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
22013 (grub_video_vbe_blit_render_target): Likewise.
22014
bc8c036d 220152006-07-30 Johan Rydberg <jrydberg@gnu.org>
22016
22017 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
22018 is in text mode if there is no console control protocol instance
22019 available.
22020
684a8eff 220212006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
22022
22023 * include/grub/video.h: Code cleanup.
22024
22025 * include/grub/i386/pc/vbe.h: Likewise.
22026
22027 * video/i386/pc/vbe.c: Likewise.
22028
22029 * video/i386/pc/vbeblit.c: Likewise.
22030
22031 * video/i386/pc/vbefill.c: Likewise.
22032
22033 * video/video.c: Likewise. Also added more comments.
22034
5915059b 220352006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
22036
22037 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
22038 (struct grub_biosdisk_dap): Likewise.
22039
22040 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
22041 linkage settings for all functions.
22042
90ce5d56 220432006-07-12 Marco Gerards <marco@gnu.org>
22044
22045 * configure.ac (--enable-mm-debug): Fix typo.
22046
22047 * genkernsyms.sh.in: Use proper quoting for `CC'.
22048
43e7f879 220492006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
22050
22051 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
22052 (normal_mod_ASFLAGS): Remove "-m32".
22053
4889bdec 220542006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
22055
22056 * util/misc.c: Include config.h.
22057 [!HAVE_MEMALIGN]: Do not include malloc.h.
22058 (grub_memalign): Use posix_memalign, if present. Then, use
22059 memalign, if present. Otherwise, emit an error.
22060
22061 * util/grub-emu.c: Do not include malloc.h.
22062
22063 * include/grub/util/misc.h: Include unistd.h. This is required for
22064 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
22065 D. Eades III <hde@foobar-qux.org>.
22066
22067 * configure.ac (AC_GNU_SOURCE): Added.
22068 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
22069 type.
22070
fd39d4da 220712006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
22072
22073 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
22074 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
22075
b786f3b5 220762006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
22077
22078 * include/grub/types.h (grub_host_addr_t): Rename to
22079 grub_target_addr_t.
22080 (grub_host_off_t): Rename to grub_target_off_t.
22081 (grub_host_size_t): Rename to grub_target_size_t.
22082 (grub_host_ssize_t): Rename to grub_target_ssize_t.
22083 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
22084
22085 * include/grub/kernel.h (struct grub_module_header): Change type
22086 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
22087 (grub_module_info): Likewise.
f19dbdb7 22088
051988bb 220892006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
22090
22091 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
22092 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
22093 Velazquez <jesus.velazquez@gmail.com>.
22094
deae281b 220952006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
22096
22097 Count partitions from 1 instead of 0 in the string representation
22098 of partitions. Still use 0-based internally.
f19dbdb7 22099
deae281b 22100 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
22101 (sun_partition_map_iterate): Use grub_partition_t instead of
22102 struct grub_partition *. Cast DESC->START_CYLINDER to
22103 grub_uint64_t after converting the endian.
22104 (sun_partition_map_probe): Subtract 1 for PARTNUM.
22105 (sun_partition_map_get_name): Add 1 to P->INDEX.
22106
22107 * partmap/pc.c (grub_partition_parse): Subtract 1 for
22108 PCDATA->DOS_PART.
22109 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
22110
22111 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
22112 zero instead of one.
22113 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
22114 (gpt_partition_map_get_name): Add 1 into P->INDEX.
22115
22116 * partmap/apple.c (apple_partition_map_iterate): Change the type
22117 of POS to unsigned.
22118 (apple_partition_map_probe): Subtract 1 for PARTNUM.
22119 (apple_partition_map_get_name): Add 1 into P->INDEX.
22120
22121 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
22122 of POS to unsigned.
22123 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
22124 calculate the offset of a partition.
22125 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
22126 (amiga_partition_map_get_name): Add 1 into P->INDEX.
22127
22128 * partmap/acorn.c (acorn_partition_map_find): Change the type of
22129 SECTOR to grub_disk_addr_t.
22130 (acorn_partition_map_iterate): Likewise.
22131 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
22132 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
22133 top.
22134 (acorn_partition_map_get_name): Add 1 into P->INDEX.
22135
22136 * kern/i386/pc/init.c (make_install_device): Add 1 into
22137 GRUB_INSTALL_DOS_PART.
22138
22139 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
22140 conditional.
22141
524a1e6a 221422006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
22143
22144 Clean up the code to support 64-bit addressing in disks and
22145 files. This change is not enough for filesystems yet.
f19dbdb7 22146
524a1e6a 22147 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
22148 type of "start" to grub_uint64_t.
22149 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
22150 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
22151 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
22152 convert addresses.
22153
22154 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
22155 to grub_disk_addr_t.
22156
22157 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
22158 string.
22159
22160 * partmap/pc.c (pc_partition_map_iterate): Likewise.
22161
22162 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
22163 to char *.
22164
22165 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
22166
22167 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
22168
22169 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
22170
22171 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
22172 to grub_off_t, to detect an error from grub_file_seek.
22173 (grub_multiboot_load_elf32): Likewise.
22174
22175 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
22176 maximum unsigned long value when an overflow is detected.
22177 (grub_strtoull): New function.
22178 (grub_divmod64): Likewise.
22179 (grub_lltoa): use grub_divmod64.
22180
22181 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
22182 grub_disk_addr_t.
22183 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
22184 the pointer to next character. Use grub_strtoull instead of
22185 grub_strtoul.
22186 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
22187 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
22188 respectively.
22189
fe6b695a 22190 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
524a1e6a 22191 return value is signed.
22192 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
22193 test if OFFSET is less than zero, as OFFSET is unsigned now.
22194
22195 * kern/disk.c (struct grub_disk_cache): Change the type of
22196 "sector" to grub_disk_addr_t.
22197 (grub_disk_cache_get_index): Change the type of SECTOR to
22198 grub_disk_addr_t. Calculate the hash with SECTOR casted to
22199 unsigned after shifting.
22200 (grub_disk_cache_invalidate): Change the type of SECTOR to
22201 grub_disk_addr_t.
22202 (grub_disk_cache_unlock): Likewise.
22203 (grub_disk_cache_store): Likewise.
22204 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
22205 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
22206 grub_disk_addr_t and grub_uint64_t, respectively.
22207 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
22208 body, as the value of OFFSET is tweaked by
22209 grub_disk_check_range. Change the types of START_SECTOR, LEN and
22210 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
22211 respectively.
22212 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
22213 body, as the value of OFFSET is tweaked by
22214 grub_disk_check_range. Change the types of LEN and N to
22215 grub_size_t.
22216
22217 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
22218 and "saved_offset" to grub_off_t.
22219 (test_header): Cast BUF to char *.
22220 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
22221 to char *.
22222 (grub_gzio_read): Change the types of OFFSET and SIZE to
22223 grub_off_t and grub_size_t, respectively.
22224
22225 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
22226 Removed.
22227 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
22228 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
22229 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
22230 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
22231 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
22232
22233 * include/grub/types.h (grub_off_t): Unconditionally set to
22234 grub_uint64_t.
22235 (grub_disk_addr_t): Changed to grub_uint64_t.
22236
22237 * include/grub/partition.h (struct grub_partition): Change the
22238 types of "start", "len" and "offset" to grub_disk_addr_t,
22239 grub_uint64_t and grub_disk_addr_t, respectively.
22240 (grub_partition_get_start): Return grub_disk_addr_t.
22241 (grub_partition_get_len): Return grub_uint64_t.
22242
22243 * include/grub/misc.h (grub_strtoull): New prototype.
22244 (grub_divmod64): Likewise.
22245
22246 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
22247 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
22248 grub_off_t, respectively.
22249 All callers and references changed.
22250
22251 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
22252 grub_size_t in "read".
22253 All callers and references changed.
22254
22255 * include/grub/file.h (struct grub_file): Change the types of
22256 "offset" and "size" to grub_off_t and grub_off_t,
22257 respectively. Change the type of SECTOR to grub_disk_addr_t in
22258 "read_hook".
22259 (grub_file_read): Change the type of LEN to grub_size_t.
22260 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
22261 grub_off_t.
22262 (grub_file_size): Return grub_off_t.
22263 (grub_file_tell): Likewise.
22264 All callers and references changed.
22265
22266 * include/grub/disk.h (struct grub_disk_dev): Change the types of
22267 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
22268 "write".
22269 (struct grub_disk): Change the type of "total_sectors" to
22270 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
f19dbdb7 22271 "read_hook".
524a1e6a 22272 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
22273 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
22274 (grub_disk_write): Likewise.
22275 All callers and references changed.
22276
22277 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
22278 char * for grub_strncmp to silence gcc.
22279 (grub_iso9660_mount): Likewise.
22280 (grub_iso9660_mount): Likewise.
22281 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
22282 return statement.
22283 (grub_iso9660_iterate_dir): Likewise.
22284 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
22285
22286 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
22287 LEN to grub_disk_addr_t and grub_size_t, respectively.
22288
22289 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
22290
22291 * fs/jfs.c (grub_jfs_read_file): Likewise.
22292
22293 * fs/minix.c (grub_jfs_read_file): Likewise.
22294
22295 * fs/sfs.c (grub_jfs_read_file): Likewise.
22296
22297 * fs/ufs.c (grub_jfs_read_file): Likewise.
22298
22299 * fs/xfs.c (grub_jfs_read_file): Likewise.
22300
22301 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
22302 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
22303 respectively.
22304
22305 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
22306 BLKNR to -1 instead of returning GRUB_ERRNO.
22307 (grub_ext2_read_file): Change the types of SECTOR and
22308 LEN to grub_disk_addr_t and grub_size_t, respectively.
22309
22310 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
22311 LEN to grub_disk_addr_t and grub_size_t, respectively.
22312
22313 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
22314 grub_file_read.
22315
22316 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
22317 string. Do not cast SECTOR explicitly.
22318
22319 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
22320 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
22321 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
22322 grub_disk_addr_t and grub_size_t, respectively. If the sector is
22323 over 2TB and LBA mode is not supported, raise an error.
22324 (get_safe_sectors): New function.
22325 (grub_biosdisk_read): Use get_safe_sectors.
22326 (grub_biosdisk_write): Likewise.
22327
22328 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
22329 (grub_efidisk_write): Likewise.
22330
22331 * disk/loopback.c (delete_loopback): Cosmetic changes.
22332 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
22333 correctly.
22334 (grub_loopback_open): Likewise.
22335 (grub_loopback_read): Likewise. Also, change the type of POS to
22336 grub_off_t, and fix the usage of grub_memset.
22337
22338 * commands/i386/pc/play.c: Include grub/machine/time.h.
22339
22340 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
22341 print FILE->SIZE.
22342
22343 * commands/configfile.c: Include grub/env.h.
22344
22345 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
22346 GRUB_ERRNO directly instead. Change the type of POS to
22347 grub_off_t. Follow the coding standard.
22348
22349 * commands/blocklist.c: Include grub/partition.h.
22350 (grub_cmd_blocklist): Return an error if the underlying device is
22351 not a disk. Take the starting sector of a partition into account,
22352 if a partition is used.
22353
22354 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
22355 a length field.
22356 (lba_mode): Support 64-bit addresses.
22357 (chs_mode): Likewise.
22358 (copy_buffer): Adapted to the new offsets of a length field and a
22359 segment field.
22360 (blocklist_default_start): Allocate 64-bit space.
22361
22362 * boot/i386/pc/boot.S (force_lba): Removed.
22363 (boot_drive): Moved to under KERNEL_SECTOR.
fe987087 22364 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
524a1e6a 22365 space.
22366 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
22367 is useless.
22368 (lba_mode): Refactored to support a 64-bit address. More size
22369 optimization.
22370 (setup_sectors): Likewise.
22371
53af98ad 223722006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
22373
22374 * DISTLIST: Added include/grub/i386/linux.h. Removed
22375 include/grub/i386/pc/linux.h
22376
22377 * configure.ac (AC_INIT): Bumped to 1.94.
22378
22379 * config.guess: Updated from gnulib.
22380 * config.sub: Likewise.
22381 * install-sh: Likewise.
22382 * mkinstalldirs: Likewise.
22383
b4c1940a 223842006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
22385
22386 * conf/common.rmk (grub_modules_init.lst): Depended on
22387 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
22388 MODSRCFILES.
22389
22390 * genmk.rb (PModule::rule): Reverted the previous change.
22391
cfca1cfd 223922006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
22393
22394 * conf/common.rmk (grub_modules_init.lst): Depends on
22395 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
22396 that the target does not exist before producing.
22397 (grub_modules_init.h): Remove the target before generating.
22398 (grub_emu_init.c): Likewise.
22399
22400 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
22401
aa6d7826 224022006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
22403
22404 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
22405 for the target-specific tests. Make sure that we also have the
22406 up-to-date target variables for those tests.
22407
26c607b9 224082006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
22409
22410 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
22411 (PModule::rule): Likewise.
22412
0162321a 224132006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
22414
22415 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
22416 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
22417 target-specific flags should be prefixed.
22418 (PModule::rule): Likewise.
22419
6c826348 224202006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
22421
22422 * configure.ac (CMP): Check if cmp is available explicitly.
22423
b977bf01 224242006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
22425
22426 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
22427 (target_cpu): New variable.
22428 (pkglibdir): Use target_cpu instead of host_cpu.
f19dbdb7 22429
b977bf01 22430 * util/i386/pc/grub-install.in (host_cpu): Removed.
22431 (target_cpu): New variable.
22432 (pkglibdir): Use target_cpu instead of host_cpu.
22433
22434 * util/genmoddep.c: Removed.
f19dbdb7 22435
b977bf01 22436 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
22437 instead of GRUB_HOST_SIZEOF_VOID_P.
22438 * kern/dl.c: Likewise.
22439
22440 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
22441 ...
22442 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
22443 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
22444 (GRUB_TARGET_SIZEOF_LONG): ... this.
22445 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
22446 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
22447 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
22448 to ...
22449 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
22450 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
22451 (GRUB_TARGET_SIZEOF_LONG): ... this.
22452 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
22453 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
22454 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
22455 to ...
22456 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
22457 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
22458 (GRUB_TARGET_SIZEOF_LONG): ... this.
22459 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
22460 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
22461
22462 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
22463 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
22464 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
22465 instead of GRUB_HOST_SIZEOF_LONG.
22466 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
22467 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
22468 GRUB_CPU_WORDS_BIGENDIAN.
22469 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
22470 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
22471 grub_host_ssize_t.
22472
22473 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
22474 (genmoddep_SOURCES): Likewise.
22475 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
22476 (genmoddep_SOURCES): Likewise.
22477 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
22478 (genmoddep_SOURCES): Likewise.
22479 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
22480 Likewise.
22481 (genmoddep_SOURCES): Likewise.
22482
22483 * genmoddep.awk: New file.
22484
22485 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
22486 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
22487 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
22488 (PModule::rule): Likewise.
22489 (Program::rule): Likewise.
22490 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
22491 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
22492 respectively.
22493
22494 * configure.ac: Rewritten intensively to use host and target
22495 instead of build and host, respectively.
22496
22497 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
22498 (host_cpu): Removed.
22499 (target_cpu): New variable.
22500 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
22501 (BUILD_CC): Removed.
22502 (BUILD_CFLAGS): Likewise.
22503 (BUILD_CPPFLAGS): Likewise.
22504 (TARGET_CC): New variable.
22505 (TARGET_CFLAGS): Likewise.
22506 (TARGET_CPPFLAGS): Likewise.
22507 (TARGET_LDFLAGS): Likewise.
22508 (AWK): Likewise.
22509 (include): Use target_cpu instead of host_cpu.
22510 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
f19dbdb7 22511
b977bf01 22512 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
22513
f09771a1 225142006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
22515
22516 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
22517 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
22518 field 'false' to 'exec_on_false'.
22519 (grub_script_create_cmdif): Renamed argument names to reflect above
22520 changes.
22521
22522 * normal/execute.c (grub_script_execute_cmdif): Likewise.
22523
22524 * normal/script.c (grub_script_create_cmdif): Likewise.
22525
118f4fb3 225262006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
22527
22528 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
22529 top.
22530 (grub_hfsplus_btree_recptr): Likewise.
22531 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
22532 FILEBLOCK both to pass a block number and store next block
22533 number.
22534 (grub_hfsplus_read_block): Rewritten heavily to support an extent
22535 overflow file correctly. Specify errors appropriately, because
22536 fshelp expects that GRUB_ERRNO is set when fails. Reuse
22537 grub_hfsplus_btree_recptr to get the pointer to a found key.
22538 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
22539 is found.
22540
22541 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
22542 linux.mod.
22543 (_linux_mod_SOURCES): New variable.
22544 (_linux_mod_CFLAGS): Likewise.
22545 (_linux_mod_LDFLAGS): Likewise.
22546 (linux_mod_SOURCES): Likewise.
22547 (linux_mod_CFLAGS): Likewise.
22548 (linux_mod_LDFLAGS): Likewise.
22549
22550 * DISTLIST: Added loader/i386/efi/linux.c,
22551 loader/i386/efi/linux_normal.c and
22552 include/grub/i386/efi/loader.h.
22553
22554 * loader/i386/efi/linux.c: New file.
22555 * loader/i386/efi/linux_normal.c: Likewise.
22556 * include/grub/i386/efi/loader.h: Likewise.
22557
89a7d726 225582006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
22559
22560 * commands/blocklist.c: New file.
22561
22562 * DISTLIST: Added commands/blocklist.c.
22563
22564 * term/efi/console.c (grub_console_highlight_color): Use a lighter
43b553ad 22565 color for the background, and a darker color for the foreground.
89a7d726 22566 (grub_console_checkkey): Return READ_KEY.
22567 (grub_console_cls): Set the background to
22568 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
22569
22570 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
22571
22572 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
22573 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
22574
22575 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
22576 prototype.
22577
22578 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
22579 BG. The spec is wrong again.
22580
22581 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
22582 prototype.
22583 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
22584
22585 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
22586 commands/blocklist.c.
22587 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
f19dbdb7 22588
89a7d726 22589 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
22590 (blocklist_mod_SOURCES): New variable.
22591 (blocklist_mod_CFLAGS): Likewise.
22592 (blocklist_mod_LDFLAGS): Likewise.
22593
75c8f258 225942006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
22595
22596 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
22597 duplication.
22598 (lba_mode): Use %eax more intensively to reduce the code size.
22599
da2eb181 226002006-05-20 Marco Gerards <marco@gnu.org>
22601
22602 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
22603
22604 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
22605 for `menuentry'.
22606 (script): Accept leading newlines.
22607 (newlines): New rule to describe 0 or more newlines.
22608 (commands): Accept `command' with trailing newline. Fixed the
22609 order in which arguments were passed to `grub_script_add_cmd'.
22610 Accept commands separated by newlines.
22611 (function): Changed to accept newlines.
22612 (menuentry) Rewritten.
22613
22614 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
22615 front of the list, instead of to the end.
22616
577b4050 226172006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
22618
22619 * util/i386/pc/grub-install.in (bindir): New variable.
22620 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
22621 Shaver <lbgwjl@gmail.com>.
22622
0d6e1189 226232006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
22624
22625 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
22626 grub/machine/linux.h
22627 * loader/i386/pc/linux.c: Likewise.
22628
22629 * include/grub/i386/pc/linux.h: Moved to ...
22630 * include/grub/i386/linux.h: ... here.
22631
22632 * include/grub/i386/linux.h (struct linux_kernel_params): New
22633 struct.
f19dbdb7 22634
31b86e9f 226352006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
22636
22637 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
22638 checking.
22639 (grub_video_vbe_blit_glyph): Likewise.
22640 (grub_video_vbe_blit_bitmap): Likewise.
22641 (grub_video_vbe_blit_render_target): Likewise.
22642
83b984de 226432006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
22644
22645 * configure.ac (--with-platform): Properly quote the square
22646 brackets.
22647
5f0413bd 226482006-05-08 Marco Gerards <marco@gnu.org>
22649
22650 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
22651 this...
22652 (kernel_elf_HEADERS): ...to this. Updated all users.
22653 (grubof_symlist.c): Renamed from this...
22654 (kernel_elf_symlist.c): ...to this. Updated all users.
22655 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
22656 (grubof_SOURCES): Renamed from this...
22657 (kernel_elf_SOURCES): ...to this.
22658 (grubof_HEADERS): Renamed from this...
22659 (kernel_elf_HEADERS): ...to this.
22660 (grubof_CFLAGS): Renamed from this...
22661 (kernel_elf_CFLAGS): ...to this.
22662 (grubof_ASFLAGS): Renamed from this...
22663 (kernel_elf_ASFLAGS): ...to this.
22664 (grubof_LDFLAGS): Renamed from this...
22665 (kernel_elf_LDFLAGS): ...to this.
22666
22667 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
22668 this...
22669 (kernel_elf_HEADERS): ...to this. Updated all users.
22670 (grubof_symlist.c): Renamed from this...
22671 (kernel_elf_symlist.c): ...to this. Updated all users.
22672 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
22673 (grubof_SOURCES): Renamed from this...
22674 (kernel_elf_SOURCES): ...to this.
22675 (grubof_HEADERS): Renamed from this...
22676 (kernel_elf_HEADERS): ...to this.
22677 (grubof_CFLAGS): Renamed from this...
22678 (kernel_elf_CFLAGS): ...to this.
22679 (grubof_ASFLAGS): Renamed from this...
22680 (kernel_elf_ASFLAGS): ...to this.
22681 (grubof_LDFLAGS): Renamed from this...
22682 (kernel_elf_LDFLAGS): ...to this.
22683
22684 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
22685 `kernel.elf' instead of `grubof'.
22686
05568c2e 226872006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
22688
22689 Add --with-platform to configure. Use pkglibdir instead of
22690 pkgdatadir. This is reported by Roger Leigh.
22691
22692 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
22693 (host_vendor): Likewise.
22694 (host_os): Likewise.
22695 (pkgdatadir): Likewise.
22696 (platform): New variable.
22697 (pkglibdir): Likewise.
22698 Use PKGLIBDIR instead of PKGDATADIR.
f19dbdb7 22699
05568c2e 22700 * util/i386/pc/grub-install.in (datadir): Removed.
22701 (host_vendor): Likewise.
22702 (host_os): Likewise.
22703 (pkgdatadir): Likewise.
22704 (platform): New variable.
22705 (pkglibdir): Likewise.
22706 Use PKGLIBDIR instead of PKGDATADIR.
22707
22708 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
22709 instead of GRUB_DATADIR.
22710 (main): Likewise.
22711 * util/i386/pc/grub-mkimage.c (usage): Likewise.
22712 (main): Likewise.
22713 * util/i386/efi/grub-mkimage.c (usage): Likewise.
22714 (main): Likewise.
22715
22716 * configure.ac (--with-platform): New option.
22717 Use PLATFORM instead of HOST_VENDOR to specify a platform.
22718
22719 * Makefile.in: Include a makefile based on PLATFORM instead of
22720 HOST_VENDOR.
22721 (pkgdatadir): Not appended by the machine type.
22722 (pkglibdir): Appended by the machine type.
22723 (host_vendor): Removed.
22724 (platform): New variable.
22725 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
22726 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
22727 (uninstall): Likewise.
22728
4e93851c 227292006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
22730
22731 Use the environment context in the menu. Remove the commands
22732 "default" and "timeout", and use variables instead.
f19dbdb7 22733
4e93851c 22734 * normal/menu.c: Include grub/env.h.
22735 (print_entry): Cast TITLE to silence gcc.
22736 (get_timeout): New function.
22737 (set_timeout): Likewise.
22738 (get_entry_number): Likewise.
22739 (run_menu): Use a default entry, a fallback entry and a timeout
22740 in the environment variables "default", "fallback" and
22741 "timeout". Also, tweak the default entry if it is not within the
22742 current menu entries.
22743 (grub_menu_run): Use a fallback entry in the environment variable
22744 "fallback".
22745
22746 * normal/main.c (read_config_file): Do not initialize
22747 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
22748 NEWMENU->TIMEOUT.
22749 (grub_normal_execute): Use a data slot to store the menu.
22750
22751 * include/grub/normal.h (struct grub_menu): Removed default_entry,
22752 fallback_entry and timeout.
22753 (struct grub_menu_list): Removed.
22754 (grub_menu_list_t): Likewise.
22755 (struct grub_context): Likewise.
22756 (grub_context_t): Likewise.
22757 (grub_context_get): Likewise.
22758 (grub_context_get_current_menu): Likewise.
22759 (grub_context_push_menu): Likewise.
22760 (grub_context_pop_menu): Likewise.
22761 (grub_default_init): Likewise.
22762 (grub_default_fini): Likewise.
22763 (grub_timeout_init): Likewise.
22764 (grub_timeout_fini): Likewise.
22765
22766 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
22767 and timeout.mod.
22768 (normal_mod_SOURCES): Removed normal/context.c.
22769
22770 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
22771 commands/default.c, commands/timeout.c and normal/context.c.
22772 (normal_mod_SOURCES): Removed normal/context.c.
22773
22774 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
22775 commands/timeout.c and normal/context.c.
22776 (normal_mod_SOURCES): Removed normal/context.c.
22777
22778 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
22779 commands/default.c, commands/timeout.c and normal/context.c.
22780 (normal_mod_SOURCES): Removed normal/context.c.
22781
22782 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
22783 timeout.mod.
22784 (default_mod_SOURCES): Removed.
22785 (default_mod_CFLAGS): Likewise.
22786 (default_mod_LDFLAGS): Likewise.
22787 (timeout_mod_SOURCES): Removed.
22788 (timeout_mod_CFLAGS): Likewise.
22789 (timeout_mod_LDFLAGS): Likewise.
22790
22791 * DISTLIST: Removed commands/default.c, commands/timeout.c and
22792 normal/context.c.
22793
22794 * commands/default.c: Removed.
22795 * commands/timeout.c: Likewise.
22796 * normal/context.c: Likewise.
22797
1eb9cc1d 227982006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
22799
22800 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
22801
385bd9c1 228022006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
22803
22804 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
22805 "next" to "prev" for readability.
22806 (struct grub_env_sorted_var): New struct.
22807 (grub_env_context): Renamed to ...
22808 (initial_context): ... this.
22809 (grub_env_var_context): Renamed to ...
22810 (current_context): ... this.
22811 (grub_env_find): Look only at CURRENT_CONTEXT.
22812 (grub_env_context_open): Rewritten to copy exported variables from
22813 previous context.
22814 (grub_env_context_close): Rewritten according to the new
22815 scheme. Also, add an assertion to prevent the initial context from
22816 removed.
22817 (grub_env_insert): Removed the code for the sorted list.
22818 (grub_env_remove): Likewise.
22819 (grub_env_export): Simply mark the variable with
22820 GRUB_ENV_VAR_GLOBAL.
22821 (grub_env_set): A cosmetic change for naming consistency.
22822 (grub_env_get): Likewise.
22823 (grub_env_unset): Likewise.
22824 (grub_env_iterate): Rewritten to sort variables within this
22825 function.
22826 (grub_register_variable_hook): Fixed for naming consistency. Call
22827 grub_env_find again, only if NAME is not found at the first time.
22828 (mangle_data_slot_name): New function.
22829 (grub_env_set_data_slot): Likewise.
22830 (grub_env_get_data_slot): Likewise.
22831 (grub_env_unset_data_slot): Likewise.
22832
22833 * include/grub/env.h (grub_env_var_type): New enum.
22834 (GRUB_ENV_VAR_LOCAL): New constant.
22835 (GRUB_ENV_VAR_GLOBAL): Likewise.
22836 (GRUB_ENV_VAR_DATA): Likewise.
22837 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
22838 "type".
22839 (grub_env_set): Replace VAR with NAME for consistency.
22840 (grub_register_variable_hook): Likewise.
22841 (grub_env_export): Specify the name of the argument.
22842 (grub_env_set_data_slot): New prototype.
22843 (grub_env_get_data_slot): Likewise.
22844 (grub_env_unset_data_slot): Likewise.
22845
7f362539 228462006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
22847
22848 Extend the loader so that GRUB can accept a loader which comes
22849 back to GRUB when a loaded image exits. Also, this change adds
22850 support for a chainloader on EFI.
f19dbdb7 22851
7f362539 22852 * term/efi/console.c: Include grub/misc.h.
22853 (grub_console_checkkey): Display a scan code on the top for
22854 debugging. This will be removed once the EFI port gets stable.
22855 Correct the scan code mapping.
22856
22857 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
22858 allocate memory from larger regions, in order to reduce the number
22859 of allocated regions. Otherwise, the MacOSX loader panics.
22860 (filter_memory_map): Avoid less than 1MB for compatibility with
22861 other loaders.
22862 (add_memory_regions): Allocate from the tail of a region, if
22863 possible, to avoid allocating a region near to 1MB, for the MacOSX
22864 loader.
22865
22866 * kern/efi/init.c (grub_efi_set_prefix): Specify
22867 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
22868
22869 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
22870 argument IMAGE_HANDLE and specify it to get a loaded image.
22871 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
22872 grub_efi_get_loaded_image.
fe6b695a 22873 (grub_efi_get_filename): Divide the length by the size of
7f362539 22874 grub_efi_char16_t.
22875 (grub_efi_get_device_path): New function.
22876 (grub_efi_print_device_path): Print End Device Path nodes. Divide
22877 the length by the size of grub_efi_char16_t for a file path device
22878 path node.
22879
22880 * kern/loader.c (grub_loader_noreturn): New variable.
22881 (grub_loader_set): Accept a new argument NORETURN. Set
22882 GRUB_LOADER_NORETURN to NORETURN.
22883 All callers changed.
22884 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
22885 grub_machine_fini.
22886
22887 * include/grub/efi/efi.h (grub_efi_get_device_path): New
22888 prototype.
22889 (grub_efi_get_loaded_image): Take an argument to specify an image
22890 handle.
22891
22892 * include/grub/loader.h (grub_loader_set): Added one more argument
22893 NORETURN.
22894
22895 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
22896 instead of grub_efi_open_protocol.
22897 (grub_efidisk_get_device_name): Likewise.
22898 (grub_efidisk_close): Print a newline.
22899 (grub_efidisk_get_device_handle): Fixed to use
22900 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
22901 GRUB_EFI_DEVICE_PATH_TYPE.
22902
22903 * disk/efi/efidisk.c (device_path_guid): Moved to ...
22904 * kern/efi/efi.c (device_path_guid): ... here.
22905
22906 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
22907 chain.mod.
22908 (kernel_mod_HEADERS): Added efi/disk.h.
22909 (_chain_mod_SOURCES): New variable.
22910 (_chain_mod_CFLAGS): Likewise.
22911 (_chain_mod_LDFLAGS): Likewise.
22912 (chain_mod_SOURCES): Likewise.
22913 (chain_mod_CFLAGS): Likewise.
22914 (chain_mod_LDFLAGS): Likewise.
22915
22916 * DISTLIST: Added include/grub/efi/chainloader.h,
22917 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
22918
22919 * include/grub/efi/chainloader.h: New file.
22920 * loader/efi/chainloader.c: Likewise.
22921 * loader/efi/chainloader_normal.c: Likewise.
22922
c0111d6e 229232006-04-30 Marco Gerards <marco@gnu.org>
22924
22925 * commands/configfile.c (grub_cmd_source): New function.
22926 (GRUB_MOD_INIT): Register the commands `source' and `.'.
22927 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
22928
df5341da 229292006-04-30 Marco Gerards <marco@gnu.org>
22930
22931 * normal/execute.c (grub_script_execute_cmd): Change the return
22932 type to `grub_err_t'. Correctly return the error.
22933 (grub_script_execute_cmdline): In case a command line is not a
22934 command or a function, try to interpret it as an assignment.
22935
f85934bd 229362006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
22937
22938 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
22939 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
22940 skip a node whose name is obviously invalid as UTF-16,
22941 i.e. contains a NUL character. Stop the iteration when the last
22942 directory entry is found. Instead of using the return value of
22943 grub_hfsplus_btree_iterate_node, store the value in RET and use
22944 it, because the iterator can be stopped by the last directory
22945 entry.
22946
8f8a2cf8 229472006-04-30 Marco Gerards <marco@gnu.org>
22948
22949 * include/grub/env.h (grub_env_export): New prototype. Reported
22950 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
22951
a27e84ce 229522006-04-30 Marco Gerards <marco@gnu.org>
22953
22954 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
22955 size of the extents in a catalog file record.
22956
eaef0553 229572006-04-29 Marco Gerards <marco@gnu.org>
22958
22959 * commands/configfile.c (grub_cmd_configfile): Execute the
22960 configfile within its own context.
22961
22962 * include/grub/env.h (grub_env_context_open): New prototype.
22963 (grub_env_context_close): Likewise.
22964
22965 * kern/env.c (grub_env): Removed.
22966 (grub_env_sorted): Likewise.
22967 (grub_env_context): New variable.
22968 (grub_env_var_context): Likewise.
22969 (grub_env_find): Search both the active context and the global
22970 context.
22971 (grub_env_context_open): New function.
22972 (grub_env_context_close): Likewise.
22973 (grub_env_insert): Likewise.
22974 (grub_env_remove): Likewise.
22975 (grub_env_export): Likewise.
22976 (grub_env_set): Changed to use helper functions to avoid code
22977 duplication.
22978 (grub_env_iterate): Rewritten so both the current context and the
22979 global context are being used.
22980
22981 * normal/command.c (export_command): New function.
22982 (grub_command_init): Register the `export' function.
22983
7b455f4d 229842006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
22985
22986 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
22987 explicitly to suppress gcc's warnings.
22988 * fs/fat.c (grub_fat_find_dir): Likewise.
22989 (grub_fat_label): Likewise.
22990 * fs/xfs.c (grub_xfs_read_inode): Likewise.
22991 (grub_xfs_mount): Likewise.
22992 (grub_xfs_label): Likewise.
22993 * fs/affs.c (grub_affs_mount): Likewise.
22994 (grub_affs_label): Likewise.
22995 (grub_affs_iterate_dir): Likewise.
22996 * fs/sfs.c (grub_sfs_mount): Likewise.
22997 (grub_sfs_iterate_dir): Likewise.
22998 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
22999 * fs/hfs.c (grub_hfs_mount): Likewise.
23000 (grub_hfs_cmp_catkeys): Likewise.
23001 (grub_hfs_find_dir): Likewise.
23002 (grub_hfs_dir): Likewise.
23003 (grub_hfs_label): Likewise.
23004 * fs/jfs.c (grub_jfs_mount): Likewise.
23005 (grub_jfs_opendir): Likewise.
23006 (grub_jfs_getent): Likewise.
23007 (grub_jfs_lookup_symlink): Likewise.
23008 (grub_jfs_label): Likewise.
23009 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
23010 (grub_hfsplus_iterate_dir): Likewise.
23011 (grub_hfsplus_btree_iterate_node): Made static.
23012
23013 * util/grub-emu.c (prefix): New variable.
23014 (grub_machine_set_prefix): New function.
23015 (main): Do not set the environment variable "prefix" here. Only
23016 set PREFIX, which is used later by grub_machine_set_prefix.
23017
23018 * include/grub/video.h: Do not include grub/symbol.h.
23019 (grub_video_register): Not exported. This symbol is not defined in
23020 the kernel.
23021 (grub_video_unregister): Likewise.
23022 (grub_video_iterate): Likewise.
23023 (grub_video_setup): Likewise.
23024 (grub_video_restore): Likewise.
23025 (grub_video_get_info): Likewise.
23026 (grub_video_get_blit_format): Likewise.
23027 (grub_video_set_palette): Likewise.
23028 (grub_video_get_palette): Likewise.
23029 (grub_video_set_viewport): Likewise.
23030 (grub_video_get_viewport): Likewise.
23031 (grub_video_map_color): Likewise.
23032 (grub_video_map_rgb): Likewise.
23033 (grub_video_map_rgba): Likewise.
23034 (grub_video_fill_rect): Likewise.
23035 (grub_video_blit_glyph): Likewise.
23036 (grub_video_blit_bitmap): Likewise.
23037 (grub_video_blit_render_target): Likewise.
23038 (grub_video_scroll): Likewise.
23039 (grub_video_swap_buffers): Likewise.
23040 (grub_video_create_render_target): Likewise.
23041 (grub_video_delete_render_target): Likewise.
23042 (grub_video_set_active_render_target): Likewise.
23043
23044 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
23045 Undefined.
23046 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
23047
23048 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
23049 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
23050 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
23051 instead of $(srcdir)/genkernsyms.sh.
23052
23053 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
23054 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
23055 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
23056 instead of $(srcdir)/genkernsyms.sh.
23057
23058 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
23059 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
23060 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
23061 instead of $(srcdir)/genkernsyms.sh.
23062
23063 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
23064 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
23065 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
23066 instead of $(srcdir)/genkernsyms.sh.
23067
23068 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
23069 genkernsyms.sh.
23070
23071 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
23072 genkernsyms.sh.
23073 (gensymlist.sh): New target.
23074 (genkernsyms.sh): Likewise.
23075
23076 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
23077 genkernsyms.sh.in and gensymlist.sh.in.
23078
23079 * genkernsyms.sh: Removed.
23080 * gensymlist.sh: Likewise.
f19dbdb7 23081
7b455f4d 23082 * genkernsyms.sh.in: New file.
23083 * gensymlist.sh.in: Likewise.
23084
1885bb27 230852006-04-25 Hollis Blanchard <hollis@penguinppc.org>
23086
23087 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
23088 clobber "prefix", since we may have already set it manually.
23089
71538dff 230902006-04-25 Hollis Blanchard <hollis@penguinppc.org>
23091
23092 * kern/misc.c (abort): New alias for grub_abort.
23093
2965c7cc 230942006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
23095
23096 A new machine-specific function "grub_machine_set_prefix" is
23097 defined. This is called after loading modules, so that a prefix
23098 initialization can use modules. Also, this change adds an
23099 intensive debugging feature for the memory manager via the
23100 configure option "--enable-mm-debug".
f19dbdb7 23101
2965c7cc 23102 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
23103 PART.LEN.
23104
23105 * kern/sparc64/ieee1275/init.c (abort): Removed.
23106 (grub_stop): Likewise.
23107 (grub_exit): New function.
23108 (grub_set_prefix): Renamed to ...
23109 (grub_machine_set_prefix): ... this.
23110 (grub_machine_init): Do not call grub_set_prefix.
23111
23112 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
23113 (grub_machine_set_prefix): ... this.
23114 (grub_machine_init): Do not call grub_set_prefix.
23115
23116 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
23117 (grub_machine_init): Do not set the prefix here.
23118
23119 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
23120
23121 * kern/efi/init.c: Include grub/mm.h.
23122 (grub_efi_set_prefix): New function.
23123
23124 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
23125 (grub_efi_get_filename): New function.
23126 (grub_print_device_path): Renamed to ...
23127 (grub_efi_print_device_path): ... this.
23128
23129 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
23130 [MM_DEBUG] (grub_realloc): Likewise.
23131 [MM_DEBUG] (grub_free): Likewise.
23132 [MM_DEBUG] (grub_memalign): Likewise.
23133 [MM_DEBUG] (grub_mm_debug): New variable.
23134 [MM_DEBUG] (grub_debug_malloc): New function.
23135 [MM_DEBUG] (grub_debug_free): New function.
23136 [MM_DEBUG] (grub_debug_realloc): New function.
23137 [MM_DEBUG] (grub_debug_memalign): New function.
23138
23139 * kern/misc.c (grub_abort): Print a newline to distinguish
23140 the message.
23141
23142 * kern/main.c (grub_main): Call grub_machine_set_prefix and
23143 grub_set_root_dev after loading modules. This is necessary when
23144 setting a prefix depends on modules.
23145
23146 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
23147 (grub_efi_print_device_path): ... this.
23148 (grub_efi_get_filename): New prototype.
23149 (grub_efi_set_prefix): Likewise.
23150
23151 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
23152 and grub/disk.h.
23153 (grub_efidisk_get_device_handle): New prototype.
23154 (grub_efidisk_get_device_name): Likewise.
23155
23156 * include/grub/mm.h: Include config.h.
23157 (MM_DEBUG): Removed.
23158 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
23159 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
23160 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
23161 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
23162 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
23163 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
23164 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
23165 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
23166 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
23167
23168 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
23169
23170 * disk/efi/efidisk.c: Include grub/partition.h.
23171 (iterate_child_devices): New function.
23172 (add_device): First, compare only last device path nodes, so that
23173 devices are sorted by the types.
23174 (grub_efidisk_get_device_handle): New function.
23175 (grub_efidisk_get_device_name): Likewise.
23176
23177 * configure.ac (--enable-mm-debug): New option to enable the
23178 memory manager debugging feature. This makes the binary much
23179 bigger, so is disabled by default.
23180
9cacaa17 231812006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
23182
23183 Use grub_abort instead of grub_stop, and grub_exit must be
23184 define in each architecture now. Also, this change adds support
23185 for EFI disks.
f19dbdb7 23186
9cacaa17 23187 * util/i386/pc/grub-probefs.c: Include grub/term.h.
23188 (grub_getkey): New function.
23189 (grub_term_get_current): Likewise.
23190
23191 * util/i386/pc/grub-setup.c: Include grub/term.h.
23192 (grub_getkey): New function.
23193 (grub_term_get_current): Likewise.
23194
23195 * util/misc.c (grub_stop): Renamed to ...
23196 (grub_exit): ... this.
23197
23198 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
23199 (grub_exit): ... this.
23200 (grub_machine_init): Use grub_abort instead of abort.
23201 (grub_stop): Removed.
23202
23203 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
23204 abort.
23205
23206 * kern/i386/pc/startup.S (grub_exit): New function.
23207 (cold_reboot): New label.
23208
23209 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
23210 (grub_efi_init): Call grub_efidisk_init.
23211 (grub_efi_fini): Call grub_efidisk_fini.
23212
23213 * kern/efi/efi.c: Include grub/mm.h.
23214 (grub_efi_console_control_guid): Renamed to ...
23215 (console_control_guid): ... this.
23216 (grub_efi_loaded_image_guid): Renamed to ...
23217 (loaded_image_guid): ... this.
23218 (grub_efi_locate_handle): New function.
23219 (grub_efi_open_protocol): Likewise.
23220 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
23221 GRUB_EFI_CONSOLE_CONTROL_GUID.
23222 (grub_efi_exit): Removed.
23223 (grub_stop): Likewise.
23224 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
23225 (grub_exit): New function.
23226 (grub_print_device_path): Likewise.
23227
23228 * kern/rescue.c (grub_rescue_cmd_exit): New function.
23229 (grub_enter_rescue_mode): Register "exit".
23230
23231 * kern/misc.c (grub_real_dprintf): A cosmetic change.
23232 (grub_abort): New function.
23233
23234 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
23235
23236 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
23237
23238 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
23239
23240 * include/grub/efi/efi.h (grub_efi_exit): Removed.
23241 (grub_print_device_path): New prototype.
23242 (grub_efi_locate_handle): Likewise.
23243 (grub_efi_open_protocol): Likewise.
23244
23245 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
23246 * disk/efi/efidisk.c: Likewise.
23247
23248 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
23249
23250 * include/grub/efi/console_control.h
23251 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
23252
23253 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
23254 last 8 bytes as an array.
23255 (GRUB_EFI_DISK_IO_GUID): New macro.
23256 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
23257 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
23258 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
23259 grub_uint8_t.
23260 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
23261 (struct grub_efi_device_path): Rename the member "sub_type" to
23262 "subtype".
23263 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
23264 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
23265 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
23266 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
23267 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
23268 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
23269 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
23270 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
23271 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
23272 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
23273 (struct grub_efi_pci_device_path): New structure.
23274 (grub_efi_pci_device_path_t): New type.
23275 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
23276 (struct grub_efi_pccard_device_path): New structure.
23277 (grub_efi_pccard_device_path_t): New type.
23278 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
23279 (struct grub_efi_memory_mapped_device_path): New structure.
23280 (grub_efi_memory_mapped_device_path_t): New type.
23281 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
23282 (struct grub_efi_vendor_device_path): New structure.
23283 (grub_efi_vendor_device_path_t): New type.
23284 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
23285 (struct grub_efi_controller_device_path): New structure.
23286 (grub_efi_controller_device_path_t): New type.
23287 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
23288 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
23289 (struct grub_efi_acpi_device_path): New structure.
23290 (grub_efi_acpi_device_path_t): New type.
23291 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
23292 (struct grub_efi_expanded_acpi_device_path): New structure.
23293 (grub_efi_expanded_acpi_device_path_t): New type.
23294 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
23295 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
23296 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
23297 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
23298 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
23299 (struct grub_efi_atapi_device_path): New structure.
23300 (grub_efi_atapi_device_path_t): New type.
23301 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
23302 (struct grub_efi_fibre_channel_device_path): New structure.
23303 (grub_efi_fibre_channel_device_path_t): New type.
23304 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
23305 (struct grub_efi_1394_device_path): New structure.
23306 (grub_efi_1394_device_path_t): New type.
23307 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
23308 (struct grub_efi_usb_device_path): New structure.
23309 (grub_efi_usb_device_path_t): New type.
23310 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
23311 (struct grub_efi_usb_class_device_path): New structure.
23312 (grub_efi_usb_class_device_path_t): New type.
23313 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
23314 (struct grub_efi_i2o_device_path): New structure.
23315 (grub_efi_i2o_device_path_t): New type.
23316 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
23317 (struct grub_efi_mac_address_device_path): New structure.
23318 (grub_efi_mac_address_device_path_t): New type.
23319 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
23320 (struct grub_efi_ipv4_device_path): New structure.
23321 (grub_efi_ipv4_device_path_t): New type.
23322 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
23323 (struct grub_efi_ipv6_device_path): New structure.
23324 (grub_efi_ipv6_device_path_t): New type.
23325 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
23326 (struct grub_efi_infiniband_device_path): New structure.
23327 (grub_efi_infiniband_device_path_t): New type.
23328 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
23329 (struct grub_efi_uart_device_path): New structure.
23330 (grub_efi_uart_device_path_t): New type.
23331 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
23332 (struct grub_efi_vendor_messaging_device_path): New structure.
23333 (grub_efi_vendor_messaging_device_path_t): New type.
23334 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
23335 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
23336 (struct grub_efi_hard_drive_device_path): New structure.
23337 (grub_efi_hard_drive_device_path_t): New type.
23338 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
23339 (struct grub_efi_cdrom_device_path): New structure.
23340 (grub_efi_cdrom_device_path_t): New type.
23341 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
23342 (struct grub_efi_vendor_media_device_path): New structure.
23343 (grub_efi_vendor_media_device_path_t): New type.
23344 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
23345 (struct grub_efi_file_path_device_path): New structure.
23346 (grub_efi_file_path_device_path_t): New type.
23347 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
23348 (struct grub_efi_protocol_device_path): New structure.
23349 (grub_efi_protocol_device_path_t): New type.
23350 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
23351 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
23352 (struct grub_efi_bios_device_path): New structure.
23353 (grub_efi_bios_device_path_t): New type.
23354 (struct grub_efi_disk_io): New structure.
23355 (grub_efi_disk_io_t): New type.
23356 (struct grub_efi_block_io_media): New structure.
23357 (grub_efi_block_io_media_t): New type.
23358 (struct grub_efi_block_io): New structure.
23359 (grub_efi_block_io_t): New type.
23360
23361 * include/grub/misc.h (grub_stop): Removed.
23362 (grub_exit): New prototype.
23363 (grub_abort): Likewise.
23364
23365 * include/grub/disk.h (enum grub_disk_dev_id): Added
23366 GRUB_DISK_DEVICE_EFIDISK_ID.
23367
23368 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
23369 disk/efi/efidisk.c.
23370 (kernel_syms.lst): Remove the target if an error occurs.
23371
49986a9f 233722006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
23373
23374 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
23375 as it was simply too buggy.
23376
970d3b8a 233772006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
23378
23379 * kern/misc.c (grub_lltoa): New function.
23380 (grub_vsprintf): Added support for the long long suffix,
23381 i.e. "ll".
23382
ff04ec24 233832006-04-20 Hollis Blanchard <hollis@penguinppc.org>
23384
23385 * Makefile.in (LDFLAGS): Add variable.
23386 (LD): Remove variable.
23387 * configure.ac: Add -m32 to LDFLAGS.
23388 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
23389 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
23390 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
23391 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
23392 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
23393 variables.
23394 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
23395 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
23396 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
23397
37e5e1a4 233982006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
23399
23400 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
23401 length for unknown glyph.
23402
c352d8dd 234032006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
23404
2eab1c0d 23405 Add support for pre-loaded modules into the EFI port.
f19dbdb7 23406
2eab1c0d 23407 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
23408 completely. Accept one more argument DIR. The caller has changed.
23409
23410 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
23411
23412 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
23413 (grub_efi_loaded_image_guid): New variable.
23414 (grub_efi_get_loaded_image): New function.
23415 (grub_arch_modules_addr): Likewise.
23416
23417 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
23418 prototype.
23419
23420 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
23421 (struct grub_efi_loaded_image): New structure.
23422 (grub_efi_loaded_image_t): New type.
23423
234242006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
f19dbdb7 23425
c352d8dd 23426 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
23427 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
23428 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
23429
6d01d6b4 234302006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
23431
23432 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
23433
976a4ea0 234342006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
23435
23436 * DISTLIST: Added include/grub/efi/console.h,
23437 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
23438 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
23439
23440 * include/grub/efi/console.h: New file.
23441 * include/grub/efi/time.h: Likewise.
23442 * include/grub/i386/efi/kernel.h: Likewise.
23443 * kern/efi/init.c: Likewise.
23444 * kern/efi/mm.c: Likewise.
23445 * term/efi/console.c: Likewise.
f19dbdb7 23446
976a4ea0 23447 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
23448 (grub_stop): Removed.
23449 (grub_get_rtc): Likewise.
23450 (grub_machine_init): Simply call grub_efi_init.
23451 (grub_machine_fini): Call grub_efi_fini.
23452
23453 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
23454 (grub_efi_output_string): Removed.
23455 (grub_efi_stall): New function.
23456 (grub_stop): Likewise.
23457 (grub_get_rtc): Likewise.
23458
23459 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
23460 (grub_efi_stall): New prototype.
23461 (grub_efi_allocate_pages): Likewise.
23462 (grub_efi_free_pages): Likewise.
23463 (grub_efi_get_memory_map): Likewise.
23464 (grub_efi_mm_init): Likewise.
23465 (grub_efi_mm_fini): Likewise.
23466 (grub_efi_init): Likewise.
23467 (grub_efi_fini): Likewise.
23468
23469 * include/grub/i386/efi/time.h: Do not include
23470 grub/symbol.h. Include grub/efi/time.h.
23471 (GRUB_TICKS_PER_SECOND): Removed.
23472 (grub_get_rtc): Likewise.
23473
23474 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
23475 Added padding. The EFI spec is buggy.
23476 (GRUB_EFI_BLACK): New macro.
23477 (GRUB_EFI_BLUE): Likewise.
23478 (GRUB_EFI_GREEN): Likewise.
23479 (GRUB_EFI_CYAN): Likewise.
23480 (GRUB_EFI_RED): Likewise.
23481 (GRUB_EFI_MAGENTA): Likewise.
23482 (GRUB_EFI_BROWN): Likewise.
23483 (GRUB_EFI_LIGHTGRAY): Likewise.
23484 (GRUB_EFI_BRIGHT): Likewise.
23485 (GRUB_EFI_DARKGRAY): Likewise.
23486 (GRUB_EFI_LIGHTBLUE): Likewise.
23487 (GRUB_EFI_LIGHTGREEN): Likewise.
23488 (GRUB_EFI_LIGHTCYAN): Likewise.
23489 (GRUB_EFI_LIGHTRED): Likewise.
23490 (GRUB_EFI_LIGHTMAGENTA): Likewise.
23491 (GRUB_EFI_YELLOW): Likewise.
23492 (GRUB_EFI_WHITE): Likewise.
23493 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
23494 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
23495 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
23496 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
23497 (GRUB_EFI_BACKGROUND_RED): Likewise.
23498 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
23499 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
23500 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
23501 (GRUB_EFI_TEXT_ATTR): Likewise.
23502
23503 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
23504 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
23505 (kernel_mod_HEADERS): Added efi/time.h.
23506
83709125 235072006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
23508
23509 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
23510 include/grub/efi/api.h, include/grub/efi/console_control.h,
23511 include/grub/efi/efi.h, include/grub/efi/pe32.h,
23512 include/grub/i386/efi/time.h, kern/efi/efi.c,
23513 kern/i386/efi/init.c, kern/i386/efi/startup.S,
23514 and util/i386/efi/grub-mkimage.c.
23515
23516 * Makefile.in (RMKFILES): Added i386-efi.rmk.
23517
23518 * genmk.rb (PModule#rule): Do not export symbols if
23519 #{prefix}_EXPORTS is set to "no".
23520
23521 * conf/i386-efi.mk: New file.
23522 * conf/i386-efi.rmk: Likewise.
23523 * include/grub/efi/api.h: Likewise.
23524 * include/grub/efi/console_control.h: Likewise.
23525 * include/grub/efi/efi.h: Likewise.
23526 * include/grub/efi/pe32.h: Likewise.
23527 * include/grub/i386/efi/time.h: Likewise.
23528 * kern/efi/efi.c: Likewise.
23529 * kern/i386/efi/init.c: Likewise.
23530 * kern/i386/efi/startup.S: Likewise.
23531 * util/i386/efi/grub-mkimage.c: Likewise.
23532
235332006-04-17 Marco Gerards <marco@gnu.org>
bfa2bd9e 23534
23535 * include/grub/script.h: Include <grub/parser.h> and
23536 "grub_script.tab.h".
23537 (struct grub_lexer_param): New struct.
23538 (struct grub_parser_param): Likewise.
23539 (grub_script_create_arglist): Pass the state in an argument.
23540 (grub_script_add_arglist): Likewise.
23541 (grub_script_create_cmdline): Likewise.
23542 (grub_script_create_cmdblock): Likewise.
23543 (grub_script_create_cmdif): Likewise.
23544 (grub_script_create_cmdmenu): Likewise.
23545 (grub_script_add_cmd): Likewise.
23546 (grub_script_arg_add): Likewise.
23547 (grub_script_lexer_ref): Likewise.
23548 (grub_script_lexer_deref): Likewise.
23549 (grub_script_lexer_record_start): Likewise.
23550 (grub_script_lexer_record_stop): Likewise.
23551 (grub_script_mem_record): Likewise.
23552 (grub_script_mem_record_stop): Likewise.
23553 (grub_script_malloc): Likewise.
23554 (grub_script_yylex): Likewise.
23555 (grub_script_yyparse): Likewise.
23556 (grub_script_yyerror): Likewise.
23557 (grub_script_yylex): Likewise.
23558 (grub_script_lexer_init): Return the state.
23559
23560 * normal/lexer.c (grub_script_lexer_state): Removed variable.
23561 (grub_script_lexer_done): Likewise.
23562 (grub_script_lexer_getline): Likewise.
23563 (grub_script_lexer_refs): Likewise.
23564 (script): Likewise.
23565 (newscript): Likewise.
23566 (record): Likewise.
23567 (recording): Likewise.
23568 (recordpos): Likewise.
23569 (recordlen): Likewise.
23570 (grub_script_lexer_init): Return the state instead of setting
23571 global variables.
23572 (grub_script_lexer_ref): Use the newly added argument for state
23573 instead of globals.
23574 (grub_script_lexer_deref): Likewise.
23575 (grub_script_lexer_record_start): Likewise.
23576 (grub_script_lexer_record_stop): Likewise.
23577 (recordchar): Likewise.
23578 (nextchar): Likewise.
23579 (grub_script_yylex2): Likewise.
23580 (grub_script_yylex): Likewise.
23581 (grub_script_yyerror): Likewise.
23582
23583 * normal/parser.y (func_mem): Removed variable.
23584 (menu_entry): Likewise.
23585 (err): Likewise.
23586 (%lex-param): New parser option.
23587 (%parse-param): Likewise.
23588 (script): Always return the AST.
23589 (argument): Pass the state around.
23590 (arguments): Likewise.
23591 (grubcmd): Likewise.
23592 (commands): Likewise.
23593 (function): Likewise.
23594 (menuentry): Likewise.
23595 (if_statement): Likewise.
23596 (if): Likewise.
23597
23598 * normal/script.c (grub_script_memused): Removed variable.
23599 (grub_script_parsed): Likewise.
23600 (grub_script_malloc): Added a state argument. Use that instead of
23601 global variables.
23602 (grub_script_mem_record): Likewise.
23603 (grub_script_mem_record_stop): Likewise.
23604 (grub_script_arg_add): Likewise.
23605 (grub_script_add_arglist): Likewise.
23606 (grub_script_create_cmdline): Likewise.
23607 (grub_script_create_cmdif): Likewise.
23608 (grub_script_create_cmdmenu): Likewise.
23609 (grub_script_add_cmd): Likewise.
23610 (grub_script_parse): Setup the state before calling the parser.
f19dbdb7 23611
e2a8c904 236122006-04-16 Marco Gerards <marco@gnu.org>
6de2ee99 23613
23614 * normal/command.c (grub_command_init): Remove the title command.
23615
23616 * normal/lexer.c (grub_script_yylex): Renamed from this...
23617 (grub_script_yylex2): ... to this.
23618 (grub_script_yylex): New function. Temporary
23619 introduced to filter some tokens.
23620 (grub_script_yyerror): Print a newline.
23621
23622 * normal/main.c (read_config_file): Output information about the
23623 lines that contain errors. Wait for a key after all lines have
23624 been processed. Don't return an empty menu.
23625
23626 * normal/parser.y (func_mem): Don't initialize.
23627 (menu_entry): Likewise.
23628 (err): New variable.
23629 (script): Don't return anything when an error was encountered.
23630 (ws, returns): Removed rules.
23631 (argument): Disabled concatenated variable support.
23632 (arguments): Remove explicit separators.
23633 (grubcmd): Likewise.
23634 (function): Likewise.
23635 (menuentry): Likewise.
23636 (if): Likewise.
23637 (commands): Likewise. Add error handling.
23638
23639 * normal/script.c (grub_script_create_cmdline): If
23640 `grub_script_parsed' is 0, assume the parser encountered an error.
23641
c9a86192 236422006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
23643
23644 * configure.ac: Add support for EFI. Fix the typo
23645 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
23646
70f3b243 236472006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
23648
23649 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
23650 foreign multibyte characters should be shown correctly.
23651
65f201ad 236522006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
23653
23654 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
23655 calculation.
23656 (read_config_file): Made it to close file before returning.
23657
b4b93674 236582006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
23659
23660 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
23661 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
23662 video/i386/pc/vbefill.c.
23663
23664 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
23665 video/i386/pc/vbefill.c.
23666
23667 * include/grub/video.h (grub_video_blit_format): New enum.
23668 (grub_video_mode_info): Added new member blit_format.
23669 (grub_video_get_blit_format): New function prototype.
23670
23671 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
23672 function prototype.
23673 (grub_video_vbe_map_rgb): Likewise.
23674 (grub_video_vbe_unmap_color): Likewise.
23675
23676 * include/grub/i386/pc/vbeblit.h: New file.
23677
23678 * include/grub/i386/pc/vbefill.h: New file.
23679
23680 * video/video.c (grub_video_get_blit_format): New function.
23681 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
23682 (grub_video_vbe_map_rgb): Likewise.
23683 (grub_video_vbe_unmap_color): Likewise.
23684
23685 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
23686 optimized fills.
23687 (grub_video_vbe_blit_render_target): Changed to use more optimized
23688 blits.
23689 (grub_video_vbe_setup): Added detection for optimized settings.
23690 (grub_video_vbe_create_render_target): Likewise.
23691
23692 * video/i386/pc/vbeblit.c: New file.
23693
23694 * video/i386/pc/vbefill.c: New file.
23695
c2379b9c 236962006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
23697
23698 * font/manager.c (grub_font_get_glyph): Removed font fixup from
23699 here...
23700
23701 * util/unifont2pff.rb: ... and moved it to here. Improved argument
23702 parsing to support both hex and dec ranges. If filename was missing
23703 show usage information.
23704
bd0d7896 237052006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
23706
23707 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
23708 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
23709
23710 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
23711 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
23712 (video_mod_SOURCES): Added.
23713 (video_mod_CFLAGS): Likewise.
23714 (video_mod_LDFLAGS): Likewise.
23715 (gfxterm_mod_SOURCES): Likewise.
23716 (gfxterm_mod_CFLAGS): Likewise.
23717 (gfxterm_mod_LDFLAGS): Likewise.
23718 (videotest_mod_SOURCES): Likewise.
23719 (videotest_mod_CFLAGS): Likewise.
23720 (videotest_mod_LDFLAGS): Likewise.
23721 (vesafb_mod_SOURCES): Removed.
23722 (vesafb_mod_CFLAGS): Likewise.
23723 (vesafb_mod_LDFLAGS): Likewise.
23724 (vga_mod_SOURCES): Likewise.
23725 (vga_mod_CFLAGS): Likewise.
23726 (vga_mod_LDFLAGS): Likewise.
23727
23728 * commands/videotest.c: New file.
23729
23730 * font/manager.c (fill_with_default_glyph): Modified to use
23731 grub_font_glyph.
23732 (grub_font_get_glyph): Likewise.
23733 (fontmanager): Renamed from this...
23734 (font_manager): ... to this.
23735
23736 * include/grub/font.h (grub_font_glyph): Added new structure.
23737 (grub_font_get_glyph): Modified to use grub_font_glyph.
23738
23739 * include/grub/misc.h (grub_abs): Added as inline function.
23740
23741 * include/grub/video.h: New file.
23742
23743 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
23744 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
23745 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
23746 (grub_vbe_get_controller_info): Renamed from this...
23747 (grub_vbe_bios_get_controller_info): ... to this.
23748 (grub_vbe_get_mode_info): Renamed from this...
23749 (grub_vbe_bios_get_mode_info): ... to this.
23750 (grub_vbe_set_mode): Renamed from this...
23751 (grub_vbe_bios_set_mode): ... to this.
23752 (grub_vbe_get_mode): Renamed from this...
23753 (grub_vbe_bios_get_mode): ... to this.
23754 (grub_vbe_set_memory_window): Renamed from this...
23755 (grub_vbe_bios_set_memory_window): ... to this.
23756 (grub_vbe_get_memory_window): Renamed from this...
23757 (grub_vbe_bios_get_memory_window): ... to this.
23758 (grub_vbe_set_scanline_length): Renamed from this...
23759 (grub_vbe_set_scanline_length): ... to this.
23760 (grub_vbe_get_scanline_length): Renamed from this...
23761 (grub_vbe_bios_get_scanline_length): ... to this.
23762 (grub_vbe_set_display_start): Renamed from this...
23763 (grub_vbe_bios_set_display_start): ... to this.
23764 (grub_vbe_get_display_start): Renamed from this...
23765 (grub_vbe_bios_get_display_start): ... to this.
23766 (grub_vbe_set_palette_data): Renamed from this...
23767 (grub_vbe_bios_set_palette_data): ... to this.
23768 (grub_vbe_set_pixel_rgb): Removed.
23769 (grub_vbe_set_pixel_index): Likewise.
23770
23771 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
23772 from this...
23773 (grub_vbe_bios_get_controller_info): ... to this.
23774 (grub_vbe_get_mode_info): Renamed from this...
23775 (grub_vbe_bios_get_mode_info): ... to this.
23776 (grub_vbe_set_mode): Renamed from this...
23777 (grub_vbe_bios_set_mode): ... to this.
23778 (grub_vbe_get_mode): Renamed from this...
23779 (grub_vbe_bios_get_mode): ... to this.
23780 (grub_vbe_set_memory_window): Renamed from this...
23781 (grub_vbe_bios_set_memory_window): ... to this.
23782 (grub_vbe_get_memory_window): Renamed from this...
23783 (grub_vbe_bios_get_memory_window): ... to this.
23784 (grub_vbe_set_scanline_length): Renamed from this...
23785 (grub_vbe_set_scanline_length): ... to this.
23786 (grub_vbe_get_scanline_length): Renamed from this...
23787 (grub_vbe_bios_get_scanline_length): ... to this.
23788 (grub_vbe_set_display_start): Renamed from this...
23789 (grub_vbe_bios_set_display_start): ... to this.
23790 (grub_vbe_get_display_start): Renamed from this...
23791 (grub_vbe_bios_get_display_start): ... to this.
23792 (grub_vbe_set_palette_data): Renamed from this...
23793 (grub_vbe_bios_set_palette_data): ... to this.
23794 (grub_vbe_bios_get_controller_info): Fixed problem with registers
23795 getting corrupted after calling it. Added more pushes and pops.
23796 (grub_vbe_bios_set_mode): Likewise.
23797 (grub_vbe_bios_get_mode): Likewise.
23798 (grub_vbe_bios_get_memory_window): Likewise.
23799 (grub_vbe_bios_set_scanline_length): Likewise.
23800 (grub_vbe_bios_get_scanline_length): Likewise.
23801 (grub_vbe_bios_get_display_start): Likewise.
23802 (grub_vbe_bios_set_palette_data): Likewise.
23803
23804 * normal/cmdline.c (cl_set_pos): Refresh the screen.
23805 (cl_insert): Likewise.
23806 (cl_delete): Likewise.
23807
23808 * term/gfxterm.c: New file.
23809
23810 * term/i386/pc/vesafb.c: Removed file.
23811
23812 * video/video.c: New file.
23813
23814 * video/i386/pc/vbe.c (real2pm): Added new function.
23815 (grub_video_vbe_draw_pixel): Likewise.
23816 (grub_video_vbe_get_video_ptr): Likewise.
23817 (grub_video_vbe_get_pixel): Likewise
23818 (grub_video_vbe_init): Likewise.
23819 (grub_video_vbe_fini): Likewise.
23820 (grub_video_vbe_setup): Likewise.
23821 (grub_video_vbe_get_info): Likewise.
23822 (grub_video_vbe_set_palette): Likewise.
23823 (grub_video_vbe_get_palette): Likewise.
23824 (grub_video_vbe_set_viewport): Likewise.
23825 (grub_video_vbe_get_viewport): Likewise.
23826 (grub_video_vbe_map_color): Likewise.
23827 (grub_video_vbe_map_rgb): Likewise.
23828 (grub_video_vbe_map_rgba): Likewise.
23829 (grub_video_vbe_unmap_color): Likewise.
23830 (grub_video_vbe_fill_rect): Likewise.
23831 (grub_video_vbe_blit_glyph): Likewise.
23832 (grub_video_vbe_blit_bitmap): Likewise.
23833 (grub_video_vbe_blit_render_target): Likewise.
23834 (grub_video_vbe_scroll): Likewise.
23835 (grub_video_vbe_swap_buffers): Likewise.
23836 (grub_video_vbe_create_render_target): Likewise.
23837 (grub_video_vbe_delete_render_target): Likewise.
23838 (grub_video_vbe_set_active_render_target): Likewise.
23839 (grub_vbe_set_pixel_rgb): Remove function.
23840 (grub_vbe_set_pixel_index): Likewise.
23841 (index_color_mode): Remove static variable.
23842 (active_mode): Likewise.
23843 (framebuffer): Likewise.
23844 (bytes_per_scan_line): Likewise.
23845 (grub_video_vbe_adapter): Added new static variable.
23846 (framebuffer): Likewise.
23847 (render_target): Likewise.
23848 (initial_mode): Likewise.
23849 (mode_in_use): Likewise.
23850 (mode_list): Likewise.
23851
5f97350b 238522006-03-10 Marco Gerards <marco@gnu.org>
23853
23854 * configure.ac (AC_INIT): Bumped to 1.93.
23855
23856 * DISTLIST: Added `include/grub/hfs.h'.
23857
a3c5c6f8 238582006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
23859
23860 * boot/i386/pc/boot.S (general_error): Before looping, try INT
23861 18H, which might help the BIOS falling back to next boot media.
23862
6de53d26 238632006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
23864
23865 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
23866 Poe Chen <poe.poechen@gmail.com>.
23867
77c4a393 238682006-01-17 Marco Gerards <marco@gnu.org>
23869
23870 * include/grub/normal.h: Include <grub/script.h>.
23871 (grub_command_list): Removed struct.
23872 (grub_command_list_t): Removed type.
23873 (grub_menu_entry): Remove members `num' and `command_list'. Add
23874 members `commands' and `sourcecode'.
23875 * include/grub/script.h: Add inclusion guards.
23876 (grub_script_cmd_menuentry): New struct.
23877 (grub_script_execute_menuentry): New prototype.
23878 (grub_script_lexer_record_start): Likewise.
23879 (grub_script_lexer_record_stop): Likewise.
23880 * normal/execute.c (grub_script_execute_menuentry): New function.
23881 * normal/lexer.c (record, recording, recordpos, recordlen): New
23882 variables.
23883 (grub_script_lexer_record_start): New function.
23884 (grub_script_lexer_record_stop): Likewise.
23885 (recordchar): Likewise.
23886 (nextchar): Likewise.
23887 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
23888 2048 as the buffer size. Add the tokens `menuentry' and `@'.
23889 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
23890 (current_menu): New variable.
23891 (free_menu): Mainly rewritten.
23892 (grub_normal_menu_addentry): New function.
23893 (read_config_file): Rewritten.
23894 * normal/menu.c (run_menu_entry): Mainly rewritten.
fe987087 23895 * normal/menu_entry.c (make_screen): Rewritten the code to insert
77c4a393 23896 the menu entry.
23897 (run): Mainly rewritten.
23898 * normal/parser.y (menu_entry): New variable.
23899 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
23900 (menuentry): New rule.
23901 (command): Add `menuentry'.
23902 (if_statement): Allow additional returns before `fi'.
23903 * normal/script.c (grub_script_create_cmdmenu): New function.
23904
144f1f98 239052006-01-03 Marco Gerards <marco@gnu.org>
23906
23907 * INSTALL: GNU Bison is required.
23908 * configure.ac: Rewritten the test to detect Bison.
23909 * Makefile.in (YACC): New variable. Reported by Xun Sun
23910 <xun.sun.cn@gmail.com>.
23911
af4b2d89 239122006-01-03 Marco Gerards <marco@gnu.org>
23913
23914 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
23915 the HFS+ filesystem to filesystem blocks.
23916 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
23917 GCC warning is silenced.
23918
15643b71 239192006-01-03 Marco Gerards <marco@gnu.org>
23920
23921 * partmap/apple.c (apple_partition_map_iterate): Convert the data
23922 read from disk from big endian to host byte order.
23923
00905879 239242006-01-03 Hollis Blanchard <hollis@penguinppc.org>
23925
23926 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
23927 documentation.
23928 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
23929 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
23930 embedded HFS+ filesystem.
23931 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
23932 (grub_hfs_sblock): Move from here...
23933 * include/grub/hfs.h: To here... New file.
23934 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
23935 documentation.
23936 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
23937 New macros.
23938 (grub_hfsplus_volheader): Change type of member `magic' to
23939 `grub_uint16_t'.
23940 (grub_hfsplus_data): Add new member `embedded_offset'.
23941 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
23942 returned block.
23943 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
23944 Calculate the offset.
23945
8899bc3e 239462005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
23947
23948 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
23949 Removed.
23950 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
23951
ae8c0277 239522005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
23953
23954 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
23955 ENV->NAME is NULL after allocating ENV->VALUE.
23956
07084456 239572005-12-25 Marco Gerards <marco@gnu.org>
23958
23959 * kern/env.c (grub_env_set): Rewritten the error handling code.
23960
4750f5f1 239612005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
23962
23963 * geninit.sh: Made more robust, and more portable.
23964
50214199 239652005-12-25 Marco Gerards <marco@gnu.org>
23966
23967 Add support for Apple HFS+ filesystems.
f19dbdb7 23968
50214199 23969 * fs/hfsplus.c: New file.
23970
23971 * DISTLIST: Added `fs/hfsplus.c'.
23972
23973 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
23974 (hfsplus_mod_SOURCES): New variable.
23975 (hfsplus_mod_CFLAGS): Likewise.
23976 (hfsplus_mod_LDFLAGS): Likewise.
23977 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
23978 (grub_setup_SOURCES): Likewise.
23979 (grub_mkdevicemap_SOURCES): Likewise.
23980 (grub_emu_SOURCES): Likewise.
23981 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
23982
23983 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
23984
23985 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
23986
befaed6c 239872005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
23988
23989 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
23990 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
23991 include/grub/parser.h, include/grub/script.h, kern/parser.c,
23992 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
23993 normal/lexer.c, normal/parser.y, normal/script.c, and
23994 partmap/gpt.c.
23995 Removed kern/sparc64/cache.c.
23996
23997 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
23998 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
23999 grub_emu_init.c.
24000
24001 * configure.ac (AC_INIT): Bumped to 1.92.
24002
6a124103 240032005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
24004
24005 * kern/err.c (grub_error_push): Added new function to support error
24006 stacks.
24007 (grub_error_pop): Likewise.
24008 (grub_error_stack_items): New local variable to support error stacks.
24009 (grub_error_stack_pos): Likewise.
24010 (grub_error_stack_assert): Likewise.
24011 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
24012 stack depth.
24013 (grub_print_error): Added support to print errors from error stack.
24014
24015 * include/grub/err.h (grub_error_push): Added function prototype.
24016 (grub_error_pop): Likewise.
24017
be973c1b 240182005-12-09 Hollis Blanchard <hollis@penguinppc.org>
24019
24020 * configure.ac: Accept `powerpc64' as host_cpu.
24021 (amd64): Rename to `biarch32'.
24022
24023 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
24024 non-cacheline-aligned addresses.
24025
24026 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
24027 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
24028 if `size' is non-zero.
24029
b04216ab 240302005-12-03 Marco Gerards <mgerards@xs4all.nl>
24031
24032 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
24033 and `cd' to make sure the filename is not prefixed with a
24034 directory name.
24035 (pkgdata_MODULES): Add `gpt.mod'.
24036 (gpt_mod_SOURCES): New variable.
24037 (gpt_mod_CFLAGS): Likewise.
24038 (gpt_mod_LDFLAGS): Likewise.
24039
24040 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
24041
24042 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
24043 New macro.
24044
24045 * partmap/gpt.c: New file.
24046
24047 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
24048 GPT partition map is detected.
24049
41730ed9 240502005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
24051
24052 * commands/i386/pc/play.c: New file.
24053 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
24054 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
24055 macros.
f19dbdb7 24056
95dc3643 240572005-11-27 Marco Gerards <mgerards@xs4all.nl>
24058
24059 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
24060 ((unused))' to silence gcc warning.
24061
1569ec51 240622005-11-26 Hollis Blanchard <hollis@penguinppc.org>
24063
24064 * configure.ac: Correct `AC_PROG_YACC' test.
24065
9abde152 240662005-11-22 Hollis Blanchard <hollis@penguinppc.org>
24067
24068 * util/powerpc/ieee1275/grub-install.in: Run the mount point
24069 check before installing files.
24070
44b83271 240712005-11-22 Mike Small <smallm@panix.com>
24072
24073 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
24074 number regex so multidigit numbers are recognized correctly.
24075
240762005-11-22 Mike Small <smallm@panix.com>
24077
24078 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
24079 debugging message before attempting to claim memory.
24080 (grub_rescue_cmd_initrd): Add a claim debugging message and try
24081 multiple addresses in case of failure.
24082
9c12956b 240832005-11-22 Hollis Blanchard <hollis@penguinppc.org>
24084
24085 * term/tparm.c (get_space): Remove empty `if' statement.
24086
24087 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
24088
24089 * kern/parser.c (check_varstate): Rename `state' to 's'.
24090
aeaf81d9 240912005-11-22 Hollis Blanchard <hollis@penguinppc.org>
24092
24093 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
24094 variable definitions to the beginning of each function. Sort stack
24095 variables by size.
24096 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
24097 `buf' argument to `char *'.
24098
79bbb63f 240992005-11-22 Hollis Blanchard <hollis@penguinppc.org>
24100
24101 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
24102 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
fe6b695a 24103 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
79bbb63f 24104 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
24105 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
24106 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
24107 configfile.mod, search.mod, gzio.mod and test.mod.
24108 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
24109 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
24110 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
24111 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
24112 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
24113 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
24114 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
24115 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
24116 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
24117 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
24118 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
24119 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
24120 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
24121 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
24122 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
24123 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
24124 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
24125 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
24126 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
24127 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
24128 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
24129 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
24130 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
24131
24132 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
24133 `grep --include'.
24134 (pkgdata_MODULES): Add test.mod.
24135
233b1628 241362005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
24137
24138 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
24139 appending to variables with "+=".
24140 (PModule): Use full pathname to generate *.lst filenames.
24141
24142 * Makefile.in: Fixed list rules moved from genmk.rb.
24143 (.DELETE_ON_ERROR): New special target.
24144 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
24145
24146 * conf/i386-pc.rmk: Include conf/common.mk.
24147 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
fe6b695a 24148 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
233b1628 24149 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
24150 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
24151 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
24152 configfile.mod, search.mod, gzio.mod and test.mod.
24153 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
24154 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
24155 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
24156 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
24157 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
24158 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
24159 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
24160 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
24161 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
24162 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
24163 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
24164 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
24165 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
24166 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
24167 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
24168 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
24169 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
24170 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
24171 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
24172 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
24173 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
24174 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
24175 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
24176 here...
24177 * conf/common.rmk: ... to here. New file.
24178
24179 * conf/common.mk: New file.
24180
16f820c8 241812005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
24182
24183 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
24184 (grub_script.tab.c): ... here.
24185
24186 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
24187 (grub_script.tab.c): ... here.
24188
24189 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
24190 (grub_script.tab.c): ... here.
24191
24192 * normal/command.c (grub_command_find): Fixed a memory leak of
24193 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
24194
63ba1554 241952005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
24196
24197 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
24198 "@" which marks the start of a comment on ARM.
24199 (VARIABLE): Likewise.
24200
7f67dc13 242012005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
24202
79bbb63f 24203 Add support for Linux/ADFS partition tables.
7f67dc13 24204
24205 * partmap/acorn.c: New file.
24206
24207 * include/grub/acorn_filecore.h: Likewise.
24208
24209 * DISTLIST: Added `partmap/acorn.c' and
24210 `include/grub/acorn_filecore.h'.
f19dbdb7 24211
7f67dc13 24212 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
24213 `partmap/acorn.c'.
24214 (pkgdata_MODULES): Add `acorn.mod'.
24215 (acorn_mod_SOURCES): New variable.
24216 (acorn_mod_CFLAGS): Likewise.
24217
24218 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
24219 `partmap/acorn.c'.
24220 (pkgdata_MODULES): Add `acorn.mod'.
24221 (acorn_mod_SOURCES): New variable.
24222 (acorn_mod_CFLAGS): Likewise.
24223
24224 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
24225 (pkgdata_MODULES): Add `acorn.mod'.
24226 (acorn_mod_SOURCES): New variable.
24227 (acorn_mod_CFLAGS): Likewise.
24228 (acorn_mod_LDFLAGS): Likewise.
24229
24230 * include/types.h (grub_disk_addr_t): New typedef.
24231
6d099807 242322005-11-13 Marco Gerards <mgerards@xs4all.nl>
24233
24234 * geninit.sh: New file.
24235
24236 * geninitheader.sh: Likewise.
24237
24238 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
24239 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
24240 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
24241 * commands/configfile.c (grub_configfile_init)
24242 (grub_configfile_fini): Likewise.
24243 * commands/default.c (grub_default_init, grub_default_fini):
24244 Likewise.
24245 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
24246 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
24247 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
24248 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
24249 Likewise.
24250 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
24251 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
24252 Likewise.
24253 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
fe6b695a 24254 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
6d099807 24255 Likewise.
24256 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
24257 Likewise.
fe6b695a 24258 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
6d099807 24259 Likewise.
24260 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
24261 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
24262 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
24263 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
24264 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
24265 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
24266 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
24267 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
24268 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
24269 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
24270 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
24271 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
24272 * partmap/amiga.c (grub_amiga_partition_map_init)
24273 (grub_amiga_partition_map_fini): Likewise.
24274 * partmap/apple.c (grub_apple_partition_map_init)
24275 (grub_apple_partition_map_fini): Likewise.
24276 * partmap/pc.c (grub_pc_partition_map_init)
24277 (grub_pc_partition_map_fini): Likewise.
24278 * partmap/sun.c (grub_sun_partition_map_init,
24279 grub_sun_partition_map_fini): Likewise.
24280 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
24281 Likewise.
24282
24283 * util/grub-emu.c: Include <grub_modules_init.h>.
24284 (main): Don't initialize and de-initialize any modules directly,
24285 use `grub_init_all' and `grub_fini_all' instead.
24286
24287 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
24288 `grub_vesafb_mod_init'.
24289 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
24290 all users.
24291 * term/i386/pc/vga.c (grub_vga_init): Renamed to
24292 `grub_vga_mod_init'. Updated all users.
24293 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
f19dbdb7 24294
6d099807 24295 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
24296 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
24297 rules.
24298
24299 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
24300 Generate a function to initialize the module in utilities.
24301 Updated all callers.
24302 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
24303 initialize the module in utilities. Updated all callers.
24304
9046bcf0 243052005-11-09 Hollis Blanchard <hollis@penguinppc.org>
24306
24307 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
24308 escape sequence and a literal ^L to clear the screen.
24309
24310 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
24311 when returning from Open Firmware.
24312
d13ea639 243132005-11-09 Hollis Blanchard <hollis@penguinppc.org>
24314
24315 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
24316 (grub_ofconsole_height): Likewise.
24317 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
24318 manually insert a '\n'.
24319 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
24320 `grub_ofconsole_height'. Return early if these are already set.
24321
a8fcf206 243222005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
24323
24324 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
24325 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
24326 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
24327 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
24328 and `normal/script.c'.
24329 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
24330 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
24331 (test_mod_SOURCES): New variable.
24332 (test_mod_CFLAGS): Likewise.
24333 (test_mod_LDFLAGS): Likewise.
24334 (pkgdata_MODULES): Add `test.mod'.
24335 (grub_script.tab.c): New rule.
24336 (grub_script.tab.h): Likewise.
24337
b6b32745 243382005-11-07 Marco Gerards <mgerards@xs4all.nl>
24339
24340 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
24341 `commands/test.c', `normal/execute.c', `normal/lexer.c',
24342 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
24343 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
24344 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
24345 (test_mod_SOURCES): New variable.
24346 (test_mod_CFLAGS): Likewise.
24347 (pkgdata_MODULES): Add `test.mod'.
24348 (grub_script.tab.c): New rule.
24349 (grub_script.tab.h): Likewise.
24350
daac212a 243512005-11-06 Marco Gerards <mgerards@xs4all.nl>
24352
24353 Add initial scripting support.
24354
24355 * commands/test.c: New file.
24356 * include/grub/script.h: Likewise.
24357 * normal/execute.c: Likewise.
24358 * normal/function.c: Likewise.
24359 * normal/lexer.c: Likewise.
24360 * normal/parser.y: Likewise.
24361 * normal/script.c: Likewise.
24362
24363 * configure.ac: Add `AC_PROG_YACC' test.
f19dbdb7 24364
daac212a 24365 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
24366 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
24367 `normal/function.c' and `normal/script.c'.
24368 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
24369 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
b6b32745 24370 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
24371 variables.
daac212a 24372 (pkgdata_MODULES): Add `test.mod'.
24373 (grub_script.tab.c): New rule.
24374 (grub_script.tab.h): Likewise.
24375
24376 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
24377
24378 * include/grub/normal.h (grub_test_init): New prototype.
24379 (grub_test_fini): Likewise.
f19dbdb7 24380
daac212a 24381 * normal/command.c: Include <grub/script.h>.
24382 (grub_command_execute): Rewritten.
f19dbdb7 24383
daac212a 24384 * util/grub-emu.c (main): Call `grub_test_init' and
24385 `grub_test_fini'.
24386
77500b2b 243872005-11-03 Hollis Blanchard <hollis@penguinppc.org>
24388
24389 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
24390 to 0.
24391 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
24392 there are no pending characters.
24393
e45deb9e 243942005-11-03 Hollis Blanchard <hollis@penguinppc.org>
24395
24396 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
24397 `grub_strndup' to drop device arguments. Replace unnecessary
24398 `grub_strndup' with `grub_strdup'.
24399
4ce32619 244002005-11-03 Hollis Blanchard <hollis@penguinppc.org>
24401
24402 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
24403 `debug' environment variable has been set.
24404
244052005-11-02 Hollis Blanchard <hollis@penguinppc.org>
f19dbdb7 24406
4ce32619 24407 * Makefile.in (install-local): Use $(DATA).
24408 (uninstall): Likewise.
24409 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
24410 (sbin_UTILITIES): ... to here.
24411 (sbin_SCRIPTS): New variable.
24412 (grub_install_SOURCES): New variable.
24413 * util/powerpc/ieee1275/grub-install.in: New file.
24414 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
24415 variable.
24416 (add_segments): Call `grub_util_get_path'.
24417
25fe6f03 244182005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
24419
24420 From Timothy Baldwin:
24421 * commands/ls.c (grub_ls_list_files): Close FILE with
24422 grub_file_close.
24423 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
24424
04ccf3ec 244252005-10-24 Marco Gerards <mgerards@xs4all.nl>
24426
24427 * include/grub/parser.h: New file.
24428
24429 * kern/parser.c: Likewise.
24430
24431 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
24432 (grub_setup_SOURCES): Likewise.
24433 (grub_probefs_SOURCES): Likewise.
24434 (grub_emu_SOURCES): Likewise.
24435 (kernel_img_HEADERS): Add `parser.h'.
24436
24437 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
24438 (grub_emu_SOURCES): Add `kern/parser.c'.
24439 (grubof_SOURCES): Likewise.
24440
24441 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
24442 (grubof_SOURCES): Add `kern/parser.c'.
24443
24444 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
24445
24446 * kern/misc.c (grub_split_cmdline): Removed function.
24447
24448 * kern/rescue.c: Include <grub/parser.h>.
24449 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
24450 of `grub_split_cmdline'.
24451
24452 * normal/command.c: Include <grub/parser.h>.
24453 (grub_command_execute): Use `grub_parser_split_cmdline' instead
24454 of `grub_split_cmdline'.
24455
24456 * normal/completion.c: Include <grub/parser.h>.
24457 (cmdline_state): New variable.
24458 (iterate_dir): End the filename with a quote depending on the
24459 command line state.
24460 (get_state): new function.
24461 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
24462 split the arguments and determine the current argument. When the
24463 argument string is not quoted, escape all spaces.
24464
6d8f4b0e 244652005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
24466
24467 * normal/sparc64/setjmp.S: New file.
24468
15cf03ed 244692005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
24470
24471 * include/grub/sparc64/libgcc.h: New file.
24472 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
24473 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
24474 normal/sparc64/setjmp.c.
24475
03e8661a 244762005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
24477
24478 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
24479 * kern/sparc64/cache.S: New file.
24480 * kern/sparc64/cache.c: Removed.
24481 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
24482 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
24483 -mtune=ultrasparc.
24484 (COMMON_LDFLAGS): Add -melf64_sparc.
24485 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
24486 (grubof_SOURCES): Use cache.S instead of cache.c.
24487 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
24488 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
24489 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
24490 commented though.
24491 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
24492 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
24493 (linux_mod_CFLAGS): Commented out.
24494 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
24495 out because module isn't built.
24496 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
24497 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
24498 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
24499 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
24500 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
24501 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
24502 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
24503 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
24504 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
24505 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
24506 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
24507 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
24508 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
24509 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
24510
34eeec8a 245112005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
24512
24513 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
24514 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
24515 longer, because HFS should not be used on PC.
24516
708367a3 245172005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
24518
24519 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
24520 consistently within the loop.
24521
6fa1251a 245222005-10-15 Marco Gerards <mgerards@xs4all.nl>
24523
24524 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
24525 directory can not be read.
24526
4801580b 245272005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
24528
24529 * configure.ac (AC_INIT): Increase the version number to 1.91.
24530
24531 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
24532 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
24533 term/i386/pc/serial.c.
24534
219ad426 245352005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
24536
24537 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
24538 file size must be permitted.
24539
24540 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
24541 between %ah and %al.
24542
688e5699 245432005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
24544
24545 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
24546 grub_uint64_t.
24547 Call the hook with a NUL-terminated filename.
24548 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
24549 grub_cpu_to_be32.
24550
24551 * kern/term.c (cursor_state): New variable.
24552 (grub_term_set_current): Reset the cursor state on a new
24553 terminal.
24554 (grub_setcursor): Rewritten to use CURSOR_STATE.
24555 (grub_getcursor): New function.
24556
24557 * include/grub/term.h (grub_getcursor): New prototype.
24558
24559 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
24560 integers on ARM. Reported by Timothy Baldwin
24561 <T.E.Baldwin99@members.leeds.ac.uk>.
24562
bb34586c 245632005-10-11 Marco Gerards <mgerards@xs4all.nl>
24564
24565 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
24566 allocated.
24567 (grub_sfs_dir): Likewise.
24568
9a909877 245692005-10-09 Marco Gerards <mgerards@xs4all.nl>
24570
24571 Add support for the SFS filesystem.
24572
24573 * fs/sfs.c: New file.
24574
24575 * DISTLIST: Added `fs/sfs.c'.
24576
24577 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
24578 (grub_probefs_SOURCES): Likewise.
24579 (grub_emu_SOURCES): Likewise.
24580 (pkgdata_MODULES): Add `sfs.mod'.
24581 (sfs_mod_SOURCES): New variable.
24582 (sfs_mod_CFLAGS): Likewise.
24583 (sfs_mod_LDFLAGS): Likewise.
24584
24585 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
24586 (pkgdata_MODULES): Add `sfs.mod'.
24587 (sfs_mod_SOURCES): New variable.
24588 (sfs_mod_CFLAGS): Likewise.
24589
24590 * util/grub-emu.c (main): Call `grub_sfs_init' and
24591 `grub_sfs_fini'.
24592
24593 * include/grub/fs.h (grub_sfs_init): New prototype.
24594 (grub_sfs_fini): Likewise.
24595
57bdbde3 245962005-10-07 Marco Gerards <mgerards@xs4all.nl>
24597
24598 Add support for the AFFS filesystem.
24599
24600 * fs/affs.c: New file.
24601
24602 * DISTLIST: Added `fs/affs.c'.
24603
24604 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
24605 (grub_probefs_SOURCES): Likewise.
24606 (grub_emu_SOURCES): Likewise.
24607 (pkgdata_MODULES): Add `affs.mod'.
24608 (affs_mod_SOURCES): New variable.
24609 (affs_mod_CFLAGS): Likewise.
24610 (affs_mod_LDFLAGS): Likewise.
24611
24612 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
24613 (pkgdata_MODULES): Add `affs.mod'.
24614 (affs_mod_SOURCES): New variable.
24615 (affs_mod_CFLAGS): Likewise.
24616
24617 * util/grub-emu.c (main): Call `grub_affs_init' and
24618 `grub_affs_fini'.
24619
24620 * include/grub/fs.h (grub_affs_init): New prototype.
24621 (grub_affs_fini): Likewise.
24622
047b67e0 246232005-10-01 Marco Gerards <mgerards@xs4all.nl>
24624
24625 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
24626
59b8208a 246272005-10-01 Marco Gerards <mgerards@xs4all.nl>
24628
24629 * configure.ac: Accept `x86_64' as host_cpu. In that case add
24630 `-m32' to CFLAGS.
24631
24632 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
24633 linking.
f19dbdb7 24634
59b8208a 24635 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
24636 (COMMON_LDFLAGS): New variable.
24637 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
24638 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
24639 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
24640 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
24641 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
24642 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
24643 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
24644 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
24645 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
24646 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
24647 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
24648 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
24649 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
24650 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
24651 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
24652 variables.
24653 (normal_mod_ASFLAGS): Add `-m32'.
24654
24655 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
24656 (grub_host_size_t, grub_host_ssize_t): New types.
24657 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
fe6b695a 24658 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
59b8208a 24659 `GRUB_HOST_SIZEOF_VOID_P'.
24660
24661 * include/grub/kernel.h (struct grub_module_header): Type of
24662 member offset changed to `grub_host_off_t'. Type of member size
24663 changed to `grub_host_size_t'.
24664 (struct grub_module_info): Type of member offset changed to
24665 `grub_host_off_t'. Type of member size changed to
24666 `grub_host_size_t'.
24667
b4093103 246682005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
24669
24670 Make GRUB's kernel compliant to Multiboot Specification.
f19dbdb7 24671
b4093103 24672 * kern/i386/pc/startup.S (multiboot_header): New label.
24673 (multiboot_entry): Likewise.
24674 (multiboot_trampoline): Likewise.
24675
24676 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
24677 Increased to 0x4A0.
24678
24679 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
24680 put parentheses after a question mark.
24681 [!GRUB_UTIL] (my_mod): New variable.
24682
24683 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
24684
b2499b29 246852005-09-28 Marco Gerards <mgerards@xs4all.nl>
24686
24687 Adds support for the XFS filesystem. Btrees are not supported
24688 yet.
24689
24690 * fs/xfs.c: New file.
24691
24692 * DISTLIST: Added `fs/xfs.c'.
24693
24694 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
24695 (grub_probefs_SOURCES): Likewise.
24696 (grub_emu_SOURCES): Likewise.
24697 (pkgdata_MODULES): Add `xfs.mod'.
24698 (xfs_mod_SOURCES): New variable.
24699 (xfs_mod_CFLAGS): Likewise.
24700
24701 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
24702 (pkgdata_MODULES): Add `xfs.mod'.
24703 (xfs_mod_SOURCES): New variable.
24704 (xfs_mod_CFLAGS): Likewise.
24705
24706 * util/grub-emu.c (main): Call `grub_xfs_init' and
24707 `grub_xfs_fini'.
24708
24709 * include/grub/fs.h (grub_xfs_init): New prototype.
24710 (grub_xfs_fini): Likewise.
24711
f19dbdb7 24712
83d37a62 247132005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
24714
24715 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
24716 color modes, allow greater than 16 colors to be configured as
24717 a default palette.
24718
47d2d65e 247192005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
24720
24721 * normal/completion.c (complete_arguments): Add the qualifier
24722 const into OPTIONS.
24723
24724 From Omniflux <omniflux+lists@omniflux.com>:
24725 * include/grub/terminfo.h: New file.
24726 * include/grub/tparm.h: Likewise.
24727 * include/grub/i386/pc/serial.h: Likewise.
24728 * term/terminfo.c: Likewise.
24729 * term/tparm.c: Likewise.
24730 * term/i386/pc/serial.c: Likewise.
24731 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
24732 serial.mod.
24733 (terminfo_mod_SOURCES): New variable.
24734 (terminfo_mod_CFLAGS): Likewise.
24735 (serial_mod_SOURCES): Likewise.
24736 (serial_mod_CFLAGS): Likewise.
24737
48b671ff 247382005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
24739
24740 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
24741 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
24742 and kern/powerpc/ieee1275/cmain.c, respectively.
24743
24744 * boot/powerpc/ieee1275/crt0.S: Moved to ...
24745 * kern/powerpc/ieee1275/crt0.S: ... here.
24746
24747 * boot/powerpc/ieee1275/cmain.c: Moved to ...
24748 * kern/powerpc/ieee1275/cmain.c: ... here.
f19dbdb7 24749
48b671ff 24750 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
24751 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
24752 instead of boot/powerpc/ieee1275/crt0.S and
24753 boot/powerpc/ieee1275/cmain.c, respectively.
24754
24755 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
24756 sectors. It was not used anyway.
24757
09fc77a7 247582005-08-30 Hollis Blanchard <hollis@penguinppc.org>
24759
24760 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
24761 `unused parameter' warning.
24762
003789c7 247632005-08-30 Hollis Blanchard <hollis@penguinppc.org>
24764
24765 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
24766 function.
24767 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
24768 getcharwidth.
24769
67f44c86 247702005-08-28 Marco Gerards <metgerards@student.han.nl>
24771
24772 * include/grub/normal.h (enum grub_completion_type): Added
24773 `GRUB_COMPLETION_TYPE_ARGUMENT'.
24774
24775 * normal/cmdline.c (print_completion): Handle
24776 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
24777 * normal/menu_entry.c (store_completion): Likewise.
24778
24779 * normal/completion.c (complete_arguments): New function.
24780 (grub_normal_do_completion): Call `complete_arguments' when the
24781 current words start with a dash.
24782
0b5abe02 247832005-08-27 Marco Gerards <metgerards@student.han.nl>
24784
24785 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
24786 `gzio.mod' instead of `io.mod').
24787
d9864ee1 247882005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
24789
24790 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
24791 (DISTDIRS): Added io and video.
24792 Rewrite the search routine to make an output consistently.
24793
24794 * DISTLIST: Added conf/sparc64-ieee1275.mk,
24795 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
24796 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
24797 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
24798 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
24799 util/powerpc/ieee1275/misc.c.
f19dbdb7 24800
d9864ee1 24801 * include/grub/gzio.h: New file.
24802 * io/gzio.c: Likewise.
f19dbdb7 24803
d9864ee1 24804 * kern/file.c (grub_file_close): Call grub_device_close only if
24805 FILE->DEVICE is not NULL.
24806
24807 * include/grub/mm.h [!NULL] (NULL): New macro.
24808
24809 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
24810
24811 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
24812 (pkgdata_MODULES): Added gzio.mod.
24813 (gzio_mod_SOURCES): New variable.
24814 (gzio_mod_CFLAGS): Likewise.
24815
24816 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
24817 (pkgdata_MODULES): Added gzio.mod.
24818 (gzio_mod_SOURCES): New variable.
24819 (gzio_mod_CFLAGS): Likewise.
24820
24821 * commands/cat.c: Include grub/gzio.h.
24822 (grub_cmd_cat): Use grub_gzfile_open instead of
24823 grub_file_open.
f19dbdb7 24824
d9864ee1 24825 * commands/cmp.c: Include grub/gzio.h.
24826 (grub_cmd_cmp): Use grub_gzfile_open instead of
24827 grub_file_open.
24828
24829 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
24830 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
24831 grub_file_open.
24832 (grub_rescue_cmd_module): Likewise.
24833
fa46f4b5 248342005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
24835
24836 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
24837 kern/sparc64/ieee1275/init.c because it contains _start.
24838 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
24839
e9211b5d 248402005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
24841
24842 * configure.ac: Add support for sparc64 host with ieee1275
24843 firmware.
24844 * configure: Generated from configure.ac.
24845 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
24846 instead of int.
24847 (grub_ofdisk_read): Likewise.
24848 (grub_ofdisk_open): Use %p to print pointer values, and cast the
24849 pointers as (void *) to remove a warning.
24850 (grub_ofdisk_close): Likewise.
24851 (grub_ofdisk_read): Likewise.
24852 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
24853 returns, so make it return void to remove a warning.
24854 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
24855 Corresponding prototype change.
24856 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
24857 values, and cast the pointers as (void *) to remove a warning.
24858 (grub_mm_dump): Likewise.
24859 * conf/sparc64-ieee1275.mk: New file.
24860 * conf/sparc64-ieee1275.rmk: Likewise.
24861 * include/grub/sparc64/setjmp.h: Likewise.
24862 * include/grub/sparc64/types.h: Likewise.
24863 * include/grub/sparc64/ieee1275/console.h: Likewise.
24864 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
24865 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
24866 * include/grub/sparc64/ieee1275/time.h: Likewise.
24867 * kern/sparc64/cache.c: Likewise.
24868 * kern/sparc64/dl.c: Likewise.
24869 * kern/sparc64/ieee1275/init.c: Likewise.
24870 * kern/sparc64/ieee1275/openfw.c: Likewise.
24871
385c6a92 248722005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
24873
24874 * util/console.c (grub_ncurses_putchar): If C is greater than
24875 0x7f, set C to a question mark.
24876 (grub_ncurses_getcharwidth): New function.
24877 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
24878 getcharwidth.
24879
24880 * normal/menu.c (print_entry): Made aware of Unicode. First,
24881 convert TITLE to UCS-4, and predict the cursor position by
24882 grub_getcharwidth.
24883
24884 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
24885 const to SRC.
24886 * kern/misc.c (grub_utf16_to_utf8): Likewise.
24887
16ccb8b1 248882005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
24889
24890 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
24891 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
24892 grub_strcat.
24893
24894 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
24895 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
24896 grub_strcpy and grub_strlen. Take it into account that a space
24897 character is inserted as a delimiter.
24898
6a85ce79 248992005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
24900
24901 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
fe6b695a 24902 invalid magic in the error.
6a85ce79 24903
24904 * commands/search.c: New file.
f19dbdb7 24905
6a85ce79 24906 * util/grub-emu.c (main): Call grub_search_init and
24907 grub_search_fini.
24908
24909 * kern/rescue.c (grub_rescue_print_disks): Removed.
24910 (grub_rescue_print_devices): New function.
24911 (grub_rescue_cmd_ls): Use grub_device_iterate with
24912 grub_rescue_print_devices instead of grub_disk_dev_iterate with
24913 grub_rescue_print_disks.
24914
24915 * kern/partition.c (grub_partition_iterate): Return the result of
24916 PARTMAP->ITERATE instead of GRUB_ERRNO.
24917
24918 * kern/device.c: Include grub/partition.h.
24919 (grub_device_iterate): New function.
24920
24921 * include/grub/partition.h (grub_partition_iterate): Return int
24922 instead of grub_err_t.
24923
24924 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
24925 prototype.
24926 [GRUB_UTIL] (grub_search_fini): Likewise.
24927
24928 * include/grub/device.h (grub_device_iterate): New prototype.
24929
24930 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
24931 commands/search.c.
24932 (pkgdata_MODULES): Added search.mod.
24933 (search_mod_SOURCES): New variable.
24934 (search_mod_CFLAGS): Likewise.
24935
24936 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
24937 (pkgdata_MODULES): Added search.mod.
24938 (search_mod_SOURCES): New variable.
24939 (search_mod_CFLAGS): Likewise.
24940
24941 * commands/ls.c (grub_ls_list_disks): Renamed to ...
24942 (grub_ls_list_devices): ... this, and use grub_device_iterate.
24943 All callers changed.
24944
24945 * DISTLIST: Added commands/search.c.
24946
ef095434 249472005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
24948
24949 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
24950 conversion.
24951 (grub_getcharwidth): New function.
24952
24953 * kern/misc.c (grub_utf8_to_ucs4): New function.
24954
24955 * include/grub/term.h (struct grub_term): Added a new member
24956 "getcharwidth".
24957 (grub_getcharwidth): New prototype.
24958
24959 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
24960
24961 * term/i386/pc/console.c (map_char): New function. Segregated from
24962 grub_console_putchar.
24963 (grub_console_putchar): Use map_char.
24964 (grub_console_getcharwidth): New function.
24965 (grub_console_term): Specified grub_console_getcharwidth as
24966 getcharwidth.
24967
24968 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
24969 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
24970
24971 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
24972 GRUB_ERRNO.
24973 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
24974 on grub_strtoul completely.
24975 (write_char): Declare local variables in the beginning of the
24976 function.
24977 (grub_vesafb_getcharwidth): New function.
24978 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
24979 getcharwidth.
24980
1f0a95e4 249812005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
24982
24983 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
24984 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
24985 commands/i386/pc/vbetest.c.
24986
24987 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
24988 call grub_vbe_get_controller_info again, because the returned
24989 information is volatile.
24990 (grub_vbe_set_video_mode): Mostly rewritten.
24991 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
24992 grub_vbe_status_t correctly.
24993 (grub_vbe_get_video_mode_info): Likewise.
24994 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
24995 several if statements.
24996
24997 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
24998 * commands/i386/pc/vbeinfo.c: ... this.
24999
25000 * commands/i386/pc/vbe_test.c: Renamed to ...
25001 * commands/i386/pc/vbetest.c: ... this.
25002
25003 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
25004 ...
25005 (grub_cmd_vbeinfo): ... this. Save video modes before
25006 iterating. Skip a video mode, if it is not available, not enough
25007 information is given or it is monochrome. Show the memory
25008 model. Leave the interpretation of MODEVAR to grub_strtoul
25009 completely.
25010 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
25011 (GRUB_MOD_FINI): Likewise.
25012
25013 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
25014 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
25015 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
25016 duplicated grub_env_get. Leave the interpretation of MODEVAR to
25017 grub_strtoul completely.
25018 (real2pm): Removed.
25019 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
25020 (GRUB_MOD_FINI): Likewise.
25021
25022 * normal/misc.c: Include grub/mm.h.
25023
25024 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
25025 vbe_list_modes with vbetest.mod and vbeinfo.mod.
25026 (vbe_list_modes_mod_SOURCES): Removed.
25027 (vbe_list_modes_mod_CFLAGS): Likewise.
25028 (vbe_test_mod_SOURCES): Likewise.
25029 (vbe_test_mod_CFLAGS): Likewise.
25030 (vbeinfo_mod_SOURCES): New variable.
25031 (vbeinfo_mod_CFLAGS): Likewise.
25032 (vbetest_mod_SOURCES): Likewise.
25033 (vbetest_mod_CFLAGS): Likewise.
25034
992ffbbe 250352005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
25036
25037 * normal/misc.c: New file.
25038
25039 * DISTLIST: Added normal/misc.c.
f19dbdb7 25040
992ffbbe 25041 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
25042 DISK to HOOK. Call HOOK with DISK.
25043 * partmap/apple.c (apple_partition_map_iterate): Likewise.
25044 * partmap/pc.c (pc_partition_map_iterate): Likewise.
25045 * partmap/sun.c (sun_partition_map_iterate): Likewise.
25046
25047 * normal/menu_entry.c (struct screen): Added a new member
25048 "completion_shown".
25049 (completion_buffer): New global variable.
25050 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
25051 (store_completion): New function.
25052 (complete): Likewise.
25053 (clear_completions): Likewise.
25054 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
25055 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
25056 a tab, call complete.
25057
25058 * normal/completion.c (disk_dev): Removed.
25059 (print_simple_completion): Likewise.
25060 (print_partition_completion): Likewise.
25061 (print_func): New global variable.
25062 (add_completion): Do not take the arguments WHAT or PRINT any
25063 longer. Added a new argument TYPE. Instead of printing directly,
25064 call PRINT_FUNC if not NULL.
25065 All callers changed.
25066 (complete_device): Use a local variable DEV instead of
25067 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
25068 (grub_normal_do_completion): Take a new argument HOOK. Do not
25069 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
25070 empty string, return NULL instead.
25071 All callers changed.
25072
25073 * normal/cmdline.c (print_completion): New function.
25074
25075 * kern/partition.c (grub_partition_iterate): Add an argument DISK
25076 to HOOK.
25077 All callers changed.
25078
25079 * kern/disk.c (grub_print_partinfo): Removed.
25080
25081 * include/grub/partition.h (struct grub_partition_map): Add a new
25082 argument DISK into HOOK of ITERATE.
25083 (grub_partition_iterate): Add a new argument DISK to HOOK.
25084
25085 * include/grub/normal.h (enum grub_completion_type): New enum.
25086 (grub_completion_type_t): New type.
25087 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
25088 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
25089 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
25090 (GRUB_COMPLETION_TYPE_FILE): Likewise.
25091 (grub_normal_do_completion): Added a new argument HOOK.
25092 (grub_normal_print_device_info): New prototype.
25093
25094 * include/grub/disk.h (grub_print_partinfo): Removed.
25095
25096 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
25097 (normal_mod_SOURCES): Likewise.
25098 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
25099 (normal_mod_SOURCES): Likewise.
25100
25101 * commands/ls.c (grub_ls_list_disks): Use
25102 grub_normal_print_device_info instead of grub_print_partinfo. Free
25103 PNAME.
25104 (grub_ls_list_files): Use grub_normal_print_device_info instead of
25105 duplicating the code.
25106
0bd41162 251072005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
25108
25109 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
f19dbdb7 25110 follow GCS more precisely.
25111 * commands/i386/pc/vbe_test.c: Likewise.
25112 * include/grub/i386/pc/vbe.h: Likewise.
25113 * term/i386/pc/vesafb.c: Likewise.
25114 * video/i386/pc/vbe.c: Likewise.
0bd41162 25115
6323696a 251162005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
25117
25118 * DISTLIST: Added term/i386/pc/vesafb.c
25119 DISTLIST: Added video/i386/pc/vbe.c
25120 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
25121 DISTLIST: Added commands/i386/pc/vbe_test.c.
25122 * commands/i386/pc/vbe_list_modes.c: New file.
25123 * commands/i386/pc/vbe_test.c: Likewise.
25124 * term/i386/pc/vesafb.c: Likewise.
25125 * video/i386/pc/vbe.c: Likewise.
25126 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
25127 (grub_vbe_probe) Added prototype.
25128 (grub_vbe_set_video_mode) Likewise.
25129 (grub_vbe_get_video_mode) Likewise.
25130 (grub_vbe_get_video_mode_info) Likewise.
25131 (grub_vbe_set_pixel_rgb) Likewise.
25132 (grub_vbe_set_pixel_index) Likewise.
25133 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
25134 (pkgdata_MODULES): Added vesafb.mod.
25135 (pkgdata_MODULES): Added vbe_list_modes.mod.
25136 (pkgdata_MODULES): Added vbe_test.mod.
25137 (vbe_mod_SOURCES): Added.
25138 (vbe_mod_CFLAGS): Likewise.
25139 (vesafb_mod_SOURCES): Likewise.
25140 (vesafb_mod_CFLAGS): Likewise.
25141 (vbe_list_modes_mod_SOURCES): Likewise.
25142 (vbe_list_modes_mod_CFLAGS): Likewise.
25143 (vbe_test_mod_SOURCES): Likewise.
25144 (vbe_test_mod_CFLAGS): Likewise.
25145
0a74e62f 251462005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
25147
0a74e62f 25148 * normal/command.c (grub_command_execute): If INTERACTIVE is
25149 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
25150 CMDLINE. Disable the pager if INTERACTIVE is true.
25151 All callers are changed.
25152
25153 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
25154 before reading a config file.
25155 * normal/main.c (read_config_file): Even if a command is not
25156 found, register it if it is within an entry.
25157
25158 * util/grub-emu.c: Include sys/types.h and unistd.h.
25159 (options): Added --hold.
25160 (struct arguments): Added a new member "hold".
25161 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
25162 missing.
25163 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
25164 cleared by a debugger, if it is not zero.
25165
25166 * include/grub/normal.h (grub_command_execute): Add an argument
25167 INTERACTIVE.
25168
e51f85ae 251692005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
25170
25171 * DISTLIST: Added include/grub/i386/pc/vbe.h.
25172
e9c6f39b 251732005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
25174
25175 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
25176 program with another one, because the old one didn't detect a bug
25177 in gcc-3.4. Always use regparm 2, because the new test is still
25178 not enough for gcc-4.0. Someone must investigate a simple test
25179 case which detects a bug in gcc-4.0.
25180
8de3495c 251812005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
25182
25183 * DISTLIST: Added normal/completion.c.
25184
25185 * normal/completion.c: New file.
f19dbdb7 25186
8de3495c 25187 * term/i386/pc/console.c (grub_console_getwh): New function.
25188 (grub_console_term): Assign grub_console_getwh to getwh.
25189
25190 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
25191 function is defined in normal/completion.c as
25192 grub_normal_do_completion.
25193 (grub_cmdline_get): Use grub_normal_do_completion instead of
25194 grub_tab_complete.
25195
25196 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
25197 returns non-zero, otherwise return 0.
25198 (grub_partition_iterate): First, probe the partition map. Then,
25199 call ITERATE only for this partition map.
25200
25201 * kern/misc.c (grub_strncmp): Rewritten.
25202
25203 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
25204 returns non-zero. Otherwise return 0.
25205
25206 * include/grub/partition.h (grub_partition_map_iterate): Return
25207 int instead of void.
25208
25209 * include/grub/normal.h (grub_normal_do_completion): New prototype.
25210
25211 * include/grub/misc.h (grub_strncmp): Change the type of N to
25212 grub_size_t.
25213
25214 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
25215 of void.
25216
25217 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
fe6b695a 25218 unsigned explicitly before comparing it with I.
8de3495c 25219
25220 * kern/main.c (grub_env_write_root): Add the attribute unused into
25221 VAR.
25222
25223 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
25224 normal/completion.c.
25225 (normal_mod_SOURCES): Likewise.
25226 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
25227 (normal_mod_SOURCES): Likewise.
25228
25229 * normal/command.c (grub_iterate_commands): If ITERATE returns
25230 non-zero, return one immediately.
25231
e85e144b 252322005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
25233
25234 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
25235 * kern/i386/pc/startup.S: Updated Global Descriptor table's
25236 descriptions.
25237 (grub_vbe_get_controller_info): New function.
25238 (grub_vbe_get_mode_info): Likewise.
25239 (grub_vbe_set_mode): Likewise.
25240 (grub_vbe_get_mode): Likewise.
25241 (grub_vbe_set_memory_window): Likewise.
25242 (grub_vbe_get_memory_window): Likewise.
25243 (grub_vbe_set_scanline_length): Likewise.
25244 (grub_vbe_get_scanline_length): Likewise.
25245 (grub_vbe_set_display_start): Likewise.
25246 (grub_vbe_get_display_start): Likewise.
25247 (grub_vbe_set_palette_data): Likewise.
25248 * include/grub/i386/pc/vbe.h: New file.
25249
c46153d2 252502005-08-08 Hollis Blanchard <hollis@penguinppc.org>
25251
25252 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
25253 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
25254 * DISTLIST: Likewise.
25255 * kern/ieee1275/of.c: Moved to ...
25256 * kern/ieee1275/ieee1275.c: ... here.
25257
0cb90c45 252582005-08-08 Hollis Blanchard <hollis@penguinppc.org>
25259
25260 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
25261 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
25262 Pass 0 as `end' parameter to grub_strtoul().
25263
a19fb360 252642005-08-08 Hollis Blanchard <hollis@penguinppc.org>
25265
25266 * include/grub/powerpc/ieee1275/console.h: Do not include
25267 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
25268 ifdef.
25269 (grub_console_cur_color): Remove i386-specific prototype.
25270 (grub_console_real_putchar): Likewise.
25271 (grub_console_checkkey): Likewise.
25272 (grub_console_getkey): Likewise.
25273 (grub_console_getxy): Likewise.
25274 (grub_console_gotoxy): Likewise.
25275 (grub_console_cls): Likewise.
25276 (grub_console_setcursor): Likewise.
25277 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
25278 Include <grub/machine/console.h>.
25279 * term/ieee1275/ofconsole.c: Likewise.
25280
4ac9bd04 252812005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
25282
25283 * Makefile.in (LIBLZO): New variable.
25284
25285 * configure.ac: Check for LZO version 2.
25286
25287 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
25288 lzo/lzo1x.h instead of lzo1x.h.
25289
25290 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
25291 of -llzo.
25292
25293 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
25294 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
25295
25296 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
25297 copying the data from PARTITION to P.
25298
f4917dfd 252992005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
25300
25301 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
25302 negative, unload the module.
25303
25304 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
25305 map is "pc_partition_map" but not "pc".
25306 (usage): Fix the description. The options are --boot-image and
25307 --core-image but not --boot-file or --core-file.
25308 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
25309 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
25310 DEFAULT_DIRECTORY.
25311
25312 * util/i386/pc/grub-install.in: Do not specify --boot-file or
25313 --core-file. Specify INSTALL_DEVICE as an argument.
25314
25315 * util/console.c: Include config.h.
25316 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
25317 [HAVE_NCURSES_H]: Include ncurses.h.
25318 [HAVE_CURSES_H]: Include curses.h.
25319 [!A_NORMAL] (A_NORMAL): Defined as zero.
25320 [!A_STANDOUT] (A_STANDOUT): Likewise.
25321
25322 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
25323 -lncurses.
25324 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
25325
25326 * configure.ac: Check for curses libraries and headers.
25327
25328 * Makefile.in (LIBCURSES): New variable.
25329
25330 * genmk.rb (Script::rule): Set the executable bits.
25331
25332 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
25333 name of the PC partition map is "pc_partition_map" but not "pc".
25334
0e143073 253352005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
25336
25337 * util/i386/pc/grub-install.in (grub_probefs): New variable.
25338 (modules): Likewise.
25339 (usage): Added descriptions for --modules and --grub-probefs.
25340 Handle --modules and --grub-probefs. Save the arguments in MODULES
25341 and GRUB_PROBEFS, respectively.
25342 Auto-detect a filesystem module against GRUBDIR. If the result is
25343 empty and modules are not specified explicitly, abort the
25344 installation. Add the result to MODULES.
25345
25346 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
25347 disk/powerpc/ieee1275/ofdisk.c,
25348 include/grub/powerpc/ieee1275/init.h and
25349 term/powerpc/ieee1275/ofconsole.c.
25350 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
25351 term/ieee1275/ofconsole.c.
25352
25353 * include/grub/powerpc/ieee1275/console.h: Resurrected.
25354
25355 * COPYING: Upgraded to the latest version. Only the address of the
25356 FSF office has changed.
f19dbdb7 25357
efd6e6d5 253582005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
25359
25360 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
25361 kern/ieee1275.c with kern/ieee1275/of.c.
25362
25363 * kern/ieee1275.c: Moved to ...
25364 * kern/ieee1275/of.c: ... here.
25365
8ceafda2 253662005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
25367
25368 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
fe6b695a 25369 readability.
8ceafda2 25370
25371 * config.guess: Updated to the latest version from gnulib.
25372 * config.sub: Likewise.
25373 * install.sh: Likewise.
25374 * mkinstalldirs: Likewise.
25375
25376 * include/grub/console.h: Removed. This file is arch-specific. Do
25377 not put this in include/grub.
25378
25379 * include/grub/i386/pc/console.h: Resurrected.
25380
25381 * util/console.c: Include grub/machine/console.h instead of
25382 grub/console.h.
25383 * util/grub-emu.c: Likewise.
25384
267f6cd9 253852005-08-04 Marco Gerards <metgerards@student.han.nl>
25386
25387 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
25388 hardcoded value.
f19dbdb7 25389
267f6cd9 25390 From Vincent Pelletier <subdino2004@yahoo.fr>
25391 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
25392 Redefined to use grub_getwh.
25393 (grub_term): New member named getwh.
25394 (grub_getwh): New prototype.
25395 * kern/term.c (grub_getwh): New function.
25396 * term/i386/pc/console.c (grub_console_getwh): New function.
25397 (grub_console_term): New member `getwh'.
25398 * term/i386/pc/vga.c (grub_vga_getwh): New function.
25399 (grub_vga_term): New member `getwh'.
0b5abe02 25400 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
267f6cd9 25401 grub_ssize_t.
25402 (grub_ofconsole_getw): New function.
25403 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
25404 (grub_ofconsole_term): New field named getwh and new initial
25405 value.
25406
3be7266d 254072005-08-03 Hollis Blanchard <hollis@penguinppc.org>
25408
25409 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
25410 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
25411 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
25412 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
25413 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
25414 of <grub/machine/ieee1275.h>.
25415 * commands/ieee1275/reboot.c: Likewise.
25416 * boot/powerpc/ieee1275/ieee1275.c: Move ...
25417 * kern/ieee1275.c: ... to here. All users updated. Change all
25418 parameter structs to use new type `grub_ieee1275_cell_t'.
25419 * term/powerpc/ieee1275/ofconsole.c: Move ...
25420 * term/ieee1275/ofconsole.c: ... to here. All users updated.
25421 * disk/powerpc/ieee1275/ofdisk.c: Move ...
25422 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
25423 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
25424 to return int.
25425 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
25426 Remove unused prototypes. All users updated.
25427 * include/grub/powerpc/ieee1275/console.h: Removed.
25428 * include/grub/powerpc/ieee1275/ieee1275.h: Define
25429 `grub_ieee1275_cell_t'.
25430 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
25431 Cast comparisons with -1 to the correct type.
25432 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
25433 type to match `grub_ieee1275_entry_fn'.
25434
8b5f3938 254352005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
25436
25437 * DISTLIST: Added util/i386/pc/grub-probefs.c.
25438
25439 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
25440 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
25441 partmap/sun.c.
25442 (grub_probefs_SOURCES): New variable.
25443
25444 * util/i386/pc/grub-probefs.c: New file.
25445
25446 * util/i386/pc/grub-setup.c (main): Call
25447 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
25448 grub_hfs_init and grub_jfs_init to initialize the system. Call
25449 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
25450 grub_pc_partition_map_fini to finish the system.
25451
ea409713 254522005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
25453
25454 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
25455 function.
25456 (grub_multiboot_load_elf32): Likewise.
25457 (grub_multiboot_is_elf64): Likewise.
25458 (grub_multiboot_load_elf64): Likewise.
25459 (grub_multiboot_load_elf): Likewise.
25460 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
25461 an ELF32 or ELF64 file.
25462 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
25463
25464 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
25465 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
25466 NULL before calling FS->LABEL.
25467 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
25468 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
25469 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
25470 before calling FS->LABEL.
25471
141a288b 254722005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
25473
25474 * util/i386/pc/grub-install.in (datadir): New variable.
25475 (libdir): Removed.
25476 (pkgdatadir): New variable.
25477 (pkglibdir): Removed.
25478
0d5f8a54 254792005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
25480
25481 * DISTLIST: Added util/i386/pc/grub-install.in.
25482
25483 * util/i386/pc/grub-install.in: New file.
25484
25485 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
25486 (grub_install_SOURCES): Likewise.
25487
25488 * genmk.rb: Added support for scripts.
25489 (Script): New class.
25490 (scripts): New variable.
25491
25492 * Makefile.in (install-local): Install sbin_SCRIPTS by
25493 INSTALL_SCRIPT.
25494 (uninstall): Remove sbin_SCRIPTS.
25495
25496 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
25497 device, try to get a GRUB device by
25498 grub_util_biosdisk_get_grub_dev.
25499 Free DEST_DEV.
25500
25501 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
25502 description for --device-map.
25503
5f968e1e 255042005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
25505
25506 Change the semantics of variable hooks. They now return strings
25507 instead of error values.
f19dbdb7 25508
5f968e1e 25509 * util/i386/pc/grub-setup.c: Include grub/env.h.
25510 (setup): Use grub_device_set_root instead of grub_env_set.
25511
25512 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
25513 grub_env_get instead of grub_device_set_root and
25514 grub_device_get_root, respectively.
25515
25516 * kern/main.c (grub_env_write_root): New function.
25517 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
25518 grub_env_set instead of grub_device_set_root.
25519
25520 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
25521 many variables.
25522 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
25523 rather than calling ENV->WRITE_HOOK afterwards.
25524 (grub_env_get): Return the result of ENV->READ_HOOK rather than
25525 passing a pointer of a pointer.
25526 (grub_register_variable_hook): Change the types of "read_hook" and
25527 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
25528 respectively.
25529 Allocate the default empty string on the heap, because this string
25530 may be freed later.
25531
25532 * kern/device.c: Include grub/env.h.
25533 (grub_device_set_root): Removed.
25534 (grub_device_get_root): Likewise.
25535 (grub_device_open): Use grub_env_get instead of
25536 grub_device_get_root.
25537
25538 * include/grub/env.h (grub_env_read_hook_t): New type.
25539 (grub_env_write_hook_t): Likewise.
25540 (grub_env_var): Change the types of "read_hook" and "write_hook"
25541 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
25542 (grub_register_variable_hook): Likewise.
25543
25544 * include/grub/device.h (grub_device_set_root): Removed.
25545 (grub_device_set_root): Likewise.
25546
25547 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
25548 make sure that DIRNAME terminates with '/', so that
25549 grub_fat_find_dir will fail if PATH is not a directory.
25550
25551 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
25552 from DIRNAME.
25553 Use the qualifier auto for print_files and print_files_long.
25554 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
25555 as a regular file.
25556 Put a newline only if there is no error.
25557 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
25558 used.
25559
896f0afd 255602005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
25561
25562 * kern/partition.c (grub_partition_probe): Initialize PART to
25563 NULL. Otherwise, when no partition map is registered, this returns
25564 a garbage.
25565
b28b81b2 255662005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
25567
25568 * partmap/apple.c (apple_partition_map_iterate): Check if POS
25569 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
25570 valid.
25571
5f3607e0 255722005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
25573
25574 * commands/ls.c (grub_ls_list_disks): Print the filesystem
25575 information on each device, if it does not have partitions. Print
25576 "Device" instead of "Disk", because this function is not specific
25577 to disk devices.
25578
25579 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
25580 static to ensure that it is put on the memory rather than a
25581 register.
25582
502c87e8 255832005-07-17 Yoshinori Okuji <okuji@enbug.org>
25584
25585 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
25586 (grub_cat_init): Likewise.
25587 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
25588 (options): Likewise.
25589 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
25590 (grub_configfile_init): Likewise.
25591 * font/manager.c (GRUB_MOD_INIT): Likewise.
25592 * commands/help.c (GRUB_MOD_INIT): Likewise.
25593 (grub_help_init): Likewise.
25594 * normal/command.c (grub_command_init): Likewise.
25595 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
25596 * disk/loopback.c (grub_loop_init): Likewise.
25597 (GRUB_MOD_INIT): Likewise.
25598 * commands/ls.c (grub_ls_init): Likewise.
25599 (GRUB_MOD_INIT): Likewise.
25600 (options): Likewise.
25601 * commands/boot.c (grub_boot_init): Likewise.
25602 (GRUB_MOD_INIT): Likewise.
25603 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
25604 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
25605 (GRUB_MOD_INIT): Likewise.
25606 * commands/cmp.c (grub_cmp_init): Likewise.
25607 (GRUB_MOD_INIT): Likewise.
25608
25609 * normal/arg.c: Use <> instead of "" to include header files.
25610 (SHORT_ARG_HELP): New macro.
25611 (SHORT_ARG_USAGE): Likewise.
25612 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
25613 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
25614 descriptions.
25615 (find_short): Check if C is 'h' or 'u' explicitly.
25616 (grub_arg_show_help): Use space characters instead of tabs. Treat
25617 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
25618 are shown with --help and --usage only if they are not used for
25619 the command itself.
25620 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
25621 'h' and 'u'.
25622
25623 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
25624 const into "longarg". Change the type of "shortarg" to int.
25625
f806d18e 256262005-07-17 Yoshinori Okuji <okuji@enbug.org>
25627
25628 * boot/i386/pc/boot.S (boot_drive_check): New label.
25629
25630 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
25631 macro.
25632
25633 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
25634 which do not pass a boot drive correctly. Copied from GRUB Legacy.
25635
e293232b 256362005-07-17 Yoshinori Okuji <okuji@enbug.org>
25637
25638 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
25639 When turning off Gate A20, skip the check and return immediately,
25640 because this is not fatal usually.
25641
ebedfd00 256422005-07-17 Yoshinori Okuji <okuji@enbug.org>
25643
25644 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
25645 be 0x7C00 instead of 0x8000.
25646
25647 * boot/i386/pc/pxeboot.S: Rewritten.
25648
25649 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
25650 EXT_C.
25651 (gate_a20_check_state): Read a byte from 0x108000. Invert the
25652 result.
25653
654fc59f 256542005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
25655
25656 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
25657 robustness. This routine now supports a BIOS call and System
25658 Control Port A to modify the gate A20.
25659
25660 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
25661 Increased to 0x440.
25662
09f9923f 256632005-07-12 Hollis Blanchard <hollis@penguinppc.org>
25664
25665 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
25666 device path and resulting ihandle.
25667 (grub_ofdisk_close): dprintf the ihandle being closed.
25668 (grub_ofdisk_read): dprintf function parameters.
25669 * kern/mm.c (grub_mm_init_region): Likewise.
25670 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
25671 (grub_linux_boot): dprintf the Linux entry point, initrd address and
25672 size, and boot arguments.
25673 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
25674 before loading into memory.
25675 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
25676 before loading into memory.
25677
7ef504d8 256782005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
25679
25680 * kern/mm.c: Added much documentation.
25681 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
25682 8, set to 5 instead of 8.
25683
e0f050c2 256842005-07-10 Yoshinori Okuji <okuji@enbug.org>
25685
25686 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
25687
25688 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
25689 (grub_mkdevicemap_SOURCES): New variable.
25690
25691 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
25692 lib/device.c of GRUB Legacy.
25693
7224189a 256942005-07-10 Yoshinori Okuji <okuji@enbug.org>
25695
25696 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
25697 instead of PATH is NULL.
25698
68c864eb 256992005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
25700
25701 * commands/cmp.c (BUFFER_SIZE): New macro.
25702 (grub_cmd_cmp): Close the right file at the right time. Compare
25703 only data just read. Don't report files of different size as
25704 identical. Dynamically allocate buffers. Move variable
25705 declarations at the beginning of function.
25706
e6f3e614 257072005-07-09 Yoshinori Okuji <okuji@enbug.org>
25708
25709 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
25710 reverse.
25711
f8f1559a 257122004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
25713
25714 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
25715 when backspace is pressed at beginning of line.
25716
39c9d41d 257172005-07-03 Yoshinori Okuji <okuji@enbug.org>
25718
25719 * DISTLIST: Added genfslist.sh.
25720
25721 * normal/main.c (fs_module_list): New variable.
25722 (autoload_fs_module): New function.
25723 (read_fs_list): Likewise.
25724 (grub_normal_execute): Call read_fs_list.
25725
25726 * kern/fs.c (grub_fs_autoload_hook): New variable.
25727 (grub_fs_probe): Added support for auto-loading.
25728
25729 * include/grub/normal.h (struct grub_fs_module_list): New struct.
25730 (grub_fs_module_list_t): New type.
25731
25732 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
25733 (grub_fs_autoload_hook): New prototype.
25734
25735 * genfslist.sh: New file.
f19dbdb7 25736
39c9d41d 25737 * genmk.rb: Added a rule to generate a filesystem list.
25738
121c1d83 257392005-06-30 Marco Gerards <metgerards@student.han.nl>
25740
25741 * configure.ac: Fix the test for cross-compiling.
25742
25743 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
25744 define GRUB_UTIL anymore.
25745
25746 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
25747 so this function works on other systems than just big endian.
25748 (load_modules): Likewise.
25749 (add_segments): Likewise.
25750
e75d76e1 257512005-06-23 Hollis Blanchard <hollis@penguinppc.org>
25752
25753 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
25754 contains `l' modifier, get a long from va_arg().
25755
50b5a0a7 257562005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
25757
25758 * kern/mm.c (grub_free): If the next free block which is being
25759 merged is the first free block, set the first block to the block
25760 being freed.
25761 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
25762
89371b20 257632005-05-08 Hollis Blanchard <hollis@penguinppc.org>
25764
25765 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
25766 `grub_ieee1275_chosen'.
25767
168d6e58 257682005-05-08 Hollis Blanchard <hollis@penguinppc.org>
25769
25770 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
25771 (grub_ieee1275_chosen): New variable.
25772 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
25773 `chosen'.
25774 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
25775 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
25776 Rename first argument to `phandle' for consistency.
25777 (grub_ieee1275_get_property_length): Likewise.
25778 (grub_ieee1275_next_property): Likewise. Change type of first argument
25779 to grub_ieee1275_phandle_t.
25780 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
25781 Move export next to declaration.
25782 (grub_ieee1275_chosen): New variable.
25783 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
25784 Correct cosmetic typo.
25785 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
25786 `grub_ieee1275_chosen'.
25787 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
25788 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
25789 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
25790 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
25791 `grub_ieee1275_chosen'.
25792
ca5baa3f 257932005-05-10 Hollis Blanchard <hollis@penguinppc.org>
25794
25795 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
25796 /chosen/bootargs.
25797 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
25798 /chosen/bootargs as "variable=value" pairs.
25799
708b345f 258002005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
25801
25802 * include/grub/misc.h (grub_dprintf): New macro.
25803 (grub_real_dprintf): New prototype.
25804 (grub_strword): Likewise.
25805 (grub_iswordseparator): Likewise.
25806 * kern/misc.c (grub_real_dprintf): New function.
25807 (grub_strword): Likewise.
25808 (grub_iswordseparator): Likewise.
25809
f4c5e67c 258102005-04-30 Hollis Blanchard <hollis@penguinppc.org>
25811
25812 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
25813 (roundup): Remove macro.
25814 (grub_ieee1275_flags): Make static.
25815 (grub_ieee1275_realmode): Remove.
25816 (grub_ieee1275_test_flag): New function.
25817 (grub_ieee1275_set_flag): Likewise.
25818 (find_options): Rename to `grub_ieee1275_find_options'; update
25819 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
25820 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
25821 (cmain): New prototype.
25822 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
25823 `grub_ieee1275_flags' directly.
25824 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
25825 machine/biosdisk.h.
25826 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
25827 Don't include grub/machine/init.h.
25828 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
25829 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
25830 Remove prototype.
25831 (grub_ieee1275_realmode): Likewise.
25832 (grub_ieee1275_flag): New enum.
25833 (grub_ieee1275_test_flag): New prototype.
25834 (grub_ieee1275_set_flag): New prototype.
25835 * include/grub/powerpc/ieee1275/init.h: Remove file.
25836 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
25837 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
25838 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
25839 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
25840 comment.
25841 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
25842 `grub_ieee1275_test_flag'.
25843 (grub_ieee1275_encode_devname): Likewise.
25844
ed16607e 258452005-04-21 Hollis Blanchard <hollis@penguinppc.org>
25846
25847 * include/grub/powerpc/ieee1275/ieee1275.h
25848 (grub_ieee1275_encode_devname): New prototype.
25849 (grub_ieee1275_get_filename): Likewise.
25850 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
25851 function.
25852 (grub_set_prefix): Likewise.
25853 (grub_machine_init): Call grub_set_prefix.
25854 * kern/powerpc/ieee1275/openfw.c: Fix typos.
25855 (grub_parse_type): New enum.
25856 (grub_ieee1275_get_devargs): New function.
25857 (grub_ieee1275_get_devname): Likewise.
25858 (grub_ieee1275_parse_args): Likewise.
25859 (grub_ieee1275_get_filename): Likewise.
25860 (grub_ieee1275_encode_devname): Likewise.
25861
be369920 258622005-03-30 Marco Gerards <metgerards@student.han.nl>
25863
25864 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
25865 `grub_loader_unset'.
25866
a5ce3a4a 258672005-03-26 Hollis Blanchard <hollis@penguinppc.org>
25868
25869 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
25870 instead of grub_ieee1275_interpret.
25871 (grub_halt_init): New function.
25872 (grub_halt_fini): Likewise.
25873 (GRUB_MOD_INIT): Correct message grammar.
25874 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
25875 instead of grub_ieee1275_interpret.
25876 (grub_reboot_init): New function.
25877 (grub_reboot_fini): Likewise.
25878 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
25879 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
25880 util/i386/pc/misc.c with commands/ieee1275/halt.c,
25881 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
25882 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
25883 function.
25884 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
25885 Add prototype.
25886 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
25887 prototype.
25888 (grub_halt): Likewise.
25889 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
25890 (cmain): Remove __attribute__((unused)).
25891 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
25892 (grub_heap_len): Likewise.
25893 (grub_machine_fini): New function.
25894 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
25895 (grub_halt): Likewise.
25896 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
25897 function.
25898 * util/powerpc/ieee1275/misc.c: New file.
25899
0058f771 259002005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
25901
25902 * DISTLIST: New file.
25903 * gendistlist.sh: Likewise.
f19dbdb7 25904
0058f771 25905 * Makefile.in (COMMON_DISTFILES): Removed.
25906 (BOOT_DISTFILES): Likewise.
25907 (CONF_DISTFILES): Likewise.
25908 (DISK_DISTFILES): Likewise.
25909 (FS_DISTFILES): Likewise.
25910 (INCLUDE_DISTFILES): Likewise.
25911 (KERN_DISTFILES): Likewise.
25912 (LOADER_DISTFILES): Likewise.
25913 (TERM_DISTFILES): Likewise.
25914 (UTIL_DISTFILES): Likewise.
25915 (DISTFILES): Likewise.
25916 (uninstall): Uninstall files in $(pkgdata_DATA).
25917 (DISTLIST): New target.
25918 (distdir): Use the contents of the file DISTLIST to get a list of
25919 distributed files.
25920
46b3b8a5 259212005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
25922
25923 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
25924 descriptor. This is ported from GRUB Legacy.
25925
25926 * gencmdlist.sh: Added an extra semicolon to make it work with
25927 old sed versions. Reported by Robert Bihlmeyer
25928 <robbe@orcus.priv.at>.
25929
5822ff87 259302005-03-08 Yoshinori Okuji <okuji@enbug.org>
25931
25932 Automatic loading of commands is supported.
f19dbdb7 25933
5822ff87 25934 * normal/main.c (read_command_list): New function.
25935 (grub_normal_execute): Call read_command_list.
25936
25937 * normal/command.c (grub_register_command): Return zero or CMD.
25938 Allocate CMD->NAME from the heap.
25939 Initialize CMD->MODULE_NAME to zero.
25940 Find the same name as well. If the same command is found and it is
25941 a dummy command, overwrite members. If it is not a dummy command,
25942 return zero.
25943 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
25944 (grub_command_find): If a dummy command is found, load a module
25945 and retry to find a command only once.
25946
25947 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
25948 make sure that each command is loaded.
25949
25950 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
25951 macro.
25952 (struct grub_command): Remove const from the member `name'.
25953 Add a new member `module_name'.
25954 (grub_register_command): Return grub_command_t.
25955
25956 * commands/help.c (grub_cmd_help): Call grub_command_find to make
25957 sure that each command is loaded.
25958
25959 * genmk.rb (PModule::rule): Specify a module name without the
25960 suffix ".mod" to gencmdlist.sh.
25961
7b1f4b57 259622005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
25963
25964 * gencmdlist.sh: New file.
f19dbdb7 25965
7b1f4b57 25966 * genmk.rb (PModule::rule): Generate a rule for a command list.
25967 Clean command.lst.
25968 Generate command.lst from $(COMMANDFILES).
25969
25970 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
25971 (DATA): Added $(pkgdata_DATA).
25972 (install-local): Install files in $(pkgdata_DATA).
25973
062aaf39 259742005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
25975
25976 * term/i386/pc/vga.c (debug_command): Removed.
25977 (GRUB_MOD_INIT): Do not register the command "debug".
25978
25979 From Hollis Blanchard:
25980 * commands/configfile.c: New file.
25981 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
25982 commands/configfile.c.
25983 (pkgdata_MODULES): Added configfile.mod.
25984 (configfile_mod_SOURCES): New variable.
25985 (configfile_mod_CFLAGS): Likewise.
25986 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
25987 commands/configfile.c.
25988 (pkgdata_MODULES): Added configfile.mod.
25989 (configfile_mod_SOURCES): New variable.
25990 (configfile_mod_CFLAGS): Likewise.
25991 * util/grub-emu.c (main): Call grub_configfile_init and
25992 grub_configfile_fini.
25993 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
25994 prototype.
25995 [GRUB_UTIL] (grub_configfile_fini): Likewise.
f19dbdb7 25996
cee01aa6 259972005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
25998
25999 * normal/arg.c (grub_arg_show_help): Do not show the bug report
26000 address.
26001
26002 * commands/help.c (grub_cmd_help): Do not print newlines after
26003 the last command in print_command_help.
26004
93f3a1d8 260052005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
26006
26007 * commands/default.h: New file.
26008 * commands/timeout.h: Likewise.
26009 * normal/context.c: Likewise.
f19dbdb7 26010
93f3a1d8 26011 * util/misc.c: Do not include sys/times.h.
26012 Include sys/time.h and grub/machine/time.h.
26013 (grub_get_rtc): Rewritten with gettimeofday.
26014
26015 * util/grub-emu.c (main): Call grub_default_init and
26016 grub_timeout_init before grub_normal_init, and call
26017 grub_timeout_fini and grub_default_fini after grub_main.
26018
26019 * util/console.c (grub_ncurses_checkkey): Return the read
26020 character or -1.
26021
26022 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
26023 timeouts.
26024
26025 * normal/main.c (read_config_file): Push MENU. If this fails,
26026 print an error and wait for a user input.
26027 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
26028 If a menu is empty or an error occurs, pop MENU.
26029 (grub_normal_execute): Pop and free MENU after grub_menu_run
26030 returns.
26031
26032 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
26033
26034 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
26035 include time.h.
26036 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
26037 without GRUB_UTIL.
26038 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
26039 time.h.
26040 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
26041 without GRUB_UTIL.
26042
26043 * include/grub/normal.h (struct grub_menu_list): New struct.
26044 (grub_menu_list_t): New type.
26045 (struct grub_context): New struct.
26046 (grub_context_t): New type.
26047 (grub_register_command): Got rid of EXPORT_FUNC.
26048 (grub_unregister_command): Likewise.
26049 (grub_context_get): New prototype.
26050 (grub_context_get_current_menu): Likewise.
26051 (grub_context_push_menu): Likewise.
26052 (grub_context_pop_menu): Likewise.
26053 [GRUB_UTIL] (grub_default_init): Likewise.
26054 [GRUB_UTIL] (grub_default_fini): Likewise.
26055 [GRUB_UTIL] (grub_timeout_init): Likewise.
26056 [GRUB_UTIL] (grub_timeout_fini): Likewise.
26057
26058 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
26059 commands/timeout.c and normal/context.c.
26060 (pkgdata_MODULES): Added default.mod and timeout.mod.
26061 (normal_mod_SOURCES): Added normal/context.c.
26062 (default_mod_SOURCES): New variable.
26063 (default_mod_CFLAGS): Likewise.
26064 (timeout_mod_SOURCES): Likewise.
26065 (timeout_mod_CFLAGS): Likewise.
26066 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
26067 conf/i386-pc.rmk.
26068 (pkgdata_MODULES): Added default.mod and timeout.mod.
26069 (normal_mod_SOURCES): Added normal/context.c.
26070 (default_mod_SOURCES): New variable.
26071 (default_mod_CFLAGS): Likewise.
26072 (timeout_mod_SOURCES): Likewise.
26073 (timeout_mod_CFLAGS): Likewise.
26074
26075 * Makefile.in (all-local): Added $(MKFILES).
26076
4ed2e1dd 260772005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
26078
26079 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
26080 (grub_emu_SOURCES): Likewise.
26081 (pkgdata_MODULES): Add `sun.mod'.
26082 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
26083 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
26084 `partmap/sun.c'.
26085 (pkgdata_MODULES): Add `sun.mod'.
26086 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
26087 * include/grub/partition.h (grub_sun_partition_map_init): New
26088 prototype.
26089 (grub_sun_partition_map_fini): Likewise.
26090 * partmap/sun.c: New file.
26091 * util/grub-emu.c (main): Initialize and de-initialize the sun
26092 partitionmap support.
26093
4d4e372e 260942005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
26095
26096 This implements an Emacs-like menu entry editor.
f19dbdb7 26097
4d4e372e 26098 * normal/menu_entry.c: New file.
f19dbdb7 26099
4d4e372e 26100 * util/console.c (grub_ncurses_putchar): Translate some Unicode
26101 characters to ASCII.
26102 (saved_char): New variable.
26103 (grub_ncurses_checkkey): Rewritten completely.
26104 (grub_ncurses_getkey): Likewise.
26105 (grub_ncurses_init): Call raw instead of cbreak.
26106
26107 * normal/menu.c (print_entry): Do not put a space.
26108 (init_page): Renamed to ...
26109 (grub_menu_init_page): ... this. All callers changed.
26110 (edit_menu_entry): Removed.
26111 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
26112
26113 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
26114
26115 * kern/misc.c (grub_vprintf): Call grub_refresh.
26116
26117 * normal/menu.c (DISP_LEFT): Renamed to ...
26118 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
26119 * normal/menu.c (DISP_UP): Renamed to ...
26120 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
26121 * normal/menu.c (DISP_RIGHT): Renamed to ...
26122 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
26123 * normal/menu.c (DISP_DOWN): Renamed to ...
26124 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
26125 * normal/menu.c (DISP_HLINE): Renamed to ...
26126 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
26127 * normal/menu.c (DISP_VLINE): Renamed to ...
26128 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
26129 * normal/menu.c (DISP_UL): Renamed to ...
26130 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
26131 * normal/menu.c (DISP_UR): Renamed to ...
26132 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
26133 * normal/menu.c (DISP_LL): Renamed to ...
26134 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
26135 * normal/menu.c (DISP_LR): Renamed to ...
26136 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
26137 * normal/menu.c (TERM_WIDTH): Renamed to ...
26138 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
26139 * normal/menu.c (TERM_HEIGHT): Renamed to ...
26140 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
26141 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
26142 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
26143 * normal/menu.c (TERM_MARGIN): Renamed to ...
26144 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
26145 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
26146 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
26147 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
26148 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
26149 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
26150 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
26151 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
26152 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
26153 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
26154 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
26155 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
26156 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
26157 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
26158 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
26159 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
26160 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
26161 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
26162 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
26163 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
26164 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
26165 All callers changed.
26166
26167 * include/grub/normal.h: New prototype.
26168
26169 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
26170 normal/menu_entry.c.
26171 (normal_mod_SOURCES): Likewise.
26172 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26173 (normal_mod_SOURCES): Likewise.
26174
e6b92c8a 261752005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
26176
26177 * include/grub/normal.h (grub_halt_init): New prototype.
26178 (grub_halt_fini): Likewise.
26179 (grub_reboot_init): Likewise.
26180 (grub_reboot_fini): Likewise.
26181
26182 * util/grub-emu.c: Include signal.h.
26183 (main_env): New global variable.
26184 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
26185 catch C-c.
26186 (grub_machine_fini): New function.
26187 (main): Call grub_halt_init and grub_reboot_init before
26188 grub_main, and grub_reboot_fini and grub_halt_fini after it.
26189 Call setjmp with MAIN_ENV to go back afterwards.
26190 Call grub_machine_fini right before return.
26191
26192 * include/grub/util/misc.h: Include setjmp.h.
26193 (main_env): New prototype.
26194
26195 * include/grub/kernel.h (grub_machine_fini): New prototype.
26196 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
26197 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
26198
26199 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
26200 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
26201 * term/i386/pc/console.c (grub_console_fini): Likewise.
f19dbdb7 26202
e6b92c8a 26203 * util/i386/pc/misc.c: New file.
f19dbdb7 26204
e6b92c8a 26205 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
26206 util/i386/pc/misc.c, commands/i386/pc/halt.c and
26207 commands/i386/pc/reboot.c.
26208
c642636f 262092005-02-14 Guillem Jover <guillem@hadrons.org>
26210
26211 * include/grub/dl.h (grub_dl_check_header): New prototype.
26212 (grub_arch_dl_check_header): Change return type to grub_err_t,
26213 remove size parameter and export function. Update all callers.
26214 * kern/dl.c (grub_dl_check_header): New function.
26215 (grub_dl_load_core): Use `grub_dl_check_header' instead of
26216 `grub_arch_dl_check_header'. Check ELF type. Check if sections
26217 are inside the core.
26218 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
26219 independent ELF header checks.
26220 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
26221 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
26222 `grub_dl_check_header' instead of explicit checks. Check for the
26223 ELF type.
26224 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
26225 `grub_dl_check_header' instead of explicit checks. Remove arch
26226 specific ELF header checks.
26227
e6b92c8a 26228 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
26229 argument SIZE.
26230
5eabe94b 262312005-02-13 Hollis Blanchard <hollis@penguinppc.org>
26232
26233 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
26234 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
26235
1b14a681 262362005-02-12 Hollis Blanchard <hollis@penguinppc.org>
26237
26238 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
f19dbdb7 26239 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
1b14a681 26240 (part_map_iterate): Clear `grub_errno' and return 0 if
f19dbdb7 26241 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
1b14a681 26242 * partmap/amiga.c (amiga_partition_map_iterate): Return
26243 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
26244 * partmap/apple.c (apple_partition_map_iterate): Likewise.
26245
aca108aa 262462005-02-01 Guillem Jover <guillem@hadrons.org>
26247
26248 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
26249 help info.
26250
c9f9c556 262512005-01-31 Marco Gerards <metgerards@student.han.nl>
26252
26253 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
26254 Removed prototype.
26255 (grub_rescue_cmd_linux): New prototype.
26256 (grub_rescue_cmd_initrd): Likewise.
26257 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
26258 `bi_rec'.
26259 (grub_linux_release_mem): Release the memory for the initrd.
26260 (grub_load_linux): Renamed from this...
26261 (grub_rescue_cmd_linux): ...To this. Changed all callers.
26262 Changed `entry' not to be static. Loop over memory regions to
26263 find another one when the default fails.
26264 (grub_rescue_cmd_initrd): New function.
26265 (grub_linux_init): Remove function.
26266 (grub_linux_fini): Likewise.
26267 (GRUB_MOD_INIT): Register `initrd'.
26268 (GRUB_MOD_FINI): Unregister `initrd'.
26269 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
26270 Function removed.
26271 (grub_linux_normal_fini): Likewise.
26272 (GRUB_MOD_INIT): Register `initrd'.
26273 (GRUB_MOD_FINI): Unregister `initrd'.
26274
990cf3aa 262752005-01-31 Marco Gerards <metgerards@student.han.nl>
26276
26277 * commands/help.c: New file.
26278 * normal/arg.c (show_help): Renamed to...
26279 (grub_arg_show_help): ... this.
26280 * commands/i386/pc/halt.c: New file.
26281 * commands/i386/pc/reboot.c: Likewise.
26282 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
26283 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
26284 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
26285 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
26286 variables.
26287 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
26288 `commands/help.c'.
26289 (pkgdata_MODULES): Add `help.mod'.
26290 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
26291 * grub/i386/pc/init.h (grub_reboot): New prototype.
26292 (grub_halt): Likewise.
26293 * include/grub/normal.h (grub_arg_show_help): New prototype.
26294 (grub_help_init): Likewise.
26295 (grub_help_fini): Likewise.
26296 * util/grub-emu.c (main): Initialize and deinitialize the help
26297 command.
26298
26299 * normal/cmdline.c (grub_cmdline_get): Doc fix.
26300
26301 * normal/command.c (grub_command_init): Fixed the description of
26302 the `set' and `unset' commands.
26303
263042005-01-31 Marco Gerards <metgerards@student.han.nl>
0f79cdc1 26305
26306 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
26307 function.
26308 * commands/ieee1275/halt.c: New file.
26309 * commands/ieee1275/reboot.c: Likewise.
26310 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
26311 `__attribute__ ((unused))'. Some GCS related fixed.
26312 (grub_suspend_init) [GRUB_UTIL]: Function removed.
26313 (grub_suspend_fini): Likewise.
26314 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
26315 and `halt.mod'.
26316 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
26317 (halt_mod_CFLAGS): New variables.
26318 * include/grub/powerpc/ieee1275/ieee1275.h
26319 (grub_ieee1275_interpret): New prototype.
26320
1ab09cc7 263212005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
26322
26323 * include/grub/misc.h (memmove): New prototype.
26324 (memcpy): Likewise.
26325
8b8cbdb2 263262005-01-22 Hollis Blanchard <hollis@penguinppc.org>
26327
26328 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
26329 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
26330
e3741a27 263312005-01-22 Marco Gerards <metgerards@student.han.nl>
26332
26333 * kern/misc.c (grub_strndup): Function rewritten.
26334
776bd780 263352005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
26336
26337 * normal/menu.c (TERM_WIDTH): Macro redefined.
26338 (TERM_TOP_BORDER_Y): Likewise.
26339 (draw_border): Replaced while-loop by a for-loop. Make the number
26340 of lines consistent with the number of lines displayed in
26341 print_entries. Added a margin below the rectangle.
26342 (print_entry): Make the entry fit in the rectangle.
26343 (print_entries): Display the scroll arrows next to the right
26344 border.
26345
78026bce 263462005-01-21 Marco Gerards <metgerards@student.han.nl>
26347
26348 * fs/minix.c (grub_minix_find_file): Reserve more space for
26349 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
26350 `grub_strncpy' to copy `path' into it.
26351
67bbaf0f 263522005-01-21 Marco Gerards <metgerards@student.han.nl>
26353
26354 Add the loopback device, a device via which files can be accessed
26355 as devices.
f19dbdb7 26356
67bbaf0f 26357 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
26358 (pkgdata_MODULES): Add loopback.mod.
26359 (loopback_mod_SOURCES): New variable.
26360 (loopback_mod_CFLAGS): Likewise.
26361 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
26362 `disk/loopback.c'.
26363 (pkgdata_MODULES): Add loopback.mod.
26364 (loopback_mod_SOURCES): New variable.
26365 (loopback_mod_CFLAGS): Likewise.
26366 * disk/loopback.c: new file.
26367 * include/grub/normal.h (grub_loop_init): New prototype.
26368 (grub_loop_fini): New prototype.
26369 * util/grub-emu.c (main): Initialize and de-initialize loopback
26370 support.
26371 * include/grub/disk.h (grub_disk_dev_id): Add
26372 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
26373
6f1c18bd 263742005-01-20 Hollis Blanchard <hollis@penguinppc.org>
26375
26376 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
26377 function.
26378 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
26379 (suspend_mod_SOURCES): New variable.
26380 (suspend_mod_CFLAGS): Likewise.
26381 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
26382 New prototype.
26383 * commands/ieee1275/suspend.c: New file.
26384
b38551da 263852005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
26386
26387 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
f19dbdb7 26388 ((unused))' to `__attribute__ ((used))'.
b38551da 26389 (GRUB_MOD_FINI): Likewise.
26390 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
26391 * genmk.rb (PModule): Assign space to common symbols when linking
26392 modules.
26393
777aff39 263942005-01-20 Marco Gerards <metgerards@student.han.nl>
26395
26396 * include/grub/mm.h (grub_mm_init_region): Change the type of the
26397 `unsigned' arguments to `grub_size_t'.
26398 (grub_malloc): Likewise.
26399 (grub_realloc): Likewise.
26400 (grub_memalign): Likewise.
26401 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
26402 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
26403 * util/misc.c (grub_malloc): Likewise.
26404 (grub_realloc): Likewise.
26405 * kern/mm.c (get_header_from_pointer): Change the casts to
26406 `unsigned' into a cast to `grub_size_t'.
26407
26408 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
26409 point to `currnode' when `currnode' is changed.
26410
26411 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
26412 Schottelius <nico-linux@schottelius.org>.
26413
d0ff18e1 264142005-01-09 Hollis Blanchard <hollis@penguinppc.org>
26415
26416 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
26417 (note_path): Remove variable.
26418 (GRUB_IEEE1275_NOTE_NAME): New macro.
26419 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
26420 (grub_ieee1275_note_hdr): New structure.
26421 (grub_ieee1275_note_desc): Likewise.
26422 (grub_ieee1275_note): Likewise.
26423 (load_note): Remove `dir' argument. All callers updated. Remove
26424 `note_img' and `path'. Do not load a file from `note_path'.
26425 Initialize a struct grub_ieee1275_note and write that to `out'.
26426 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
26427
4ca7004c 264282005-01-05 Marco Gerards <metgerards@student.han.nl>
26429
26430 * util/misc.c (grub_util_read_image): Revert last change. It
26431 called `grub_util_read_at', which seeks from the beginning of the
26432 file.
26433
0b412211 264342005-01-04 Hollis Blanchard <hollis@penguinppc.org>
26435
26436 * TODO: Add note about endianness in grub-mkimage.
26437 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
26438 section.
26439 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
26440 (grub_mkimage_SOURCES): New target.
26441 * include/grub/kernel.h (grub_start_addr): Remove variable.
26442 (grub_end_addr): Likewise.
26443 (grub_total_module_size): Likewise.
26444 (grub_kernel_image_size): Likewise.
26445 (GRUB_MODULE_MAGIC): New constant.
26446 (grub_module_info): New structure.
26447 (grub_arch_modules_addr): New prototype.
26448 (grub_get_end_addr): Remove prototype.
26449 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
26450 * include/grub/powerpc/ieee1275/kernel.h: New file.
26451 * include/grub/util/misc.h (grub_util_get_fp_size): New
26452 prototype.
26453 (grub_util_read_at): Likewise.
26454 (grub_util_write_image_at): Likewise.
26455 * kern/main.c (grub_get_end_addr): Remove function.
26456 (grub_load_modules): Call grub_arch_modules_addr instead of using
26457 grub_end_addr. Look for a grub_module_info struct in memory. Use
26458 the grub_module_info fields instead of calling grub_get_end_addr
26459 as loop conditions. Move grub_add_unused_region code here.
26460 (grub_add_unused_region): Remove function.
26461 * kern/i386/pc/init.c: Include grub/cache.h.
26462 (grub_machine_init): Remove call to grub_get_end_addr. Remove
26463 one call to add_mem_region.
26464 (grub_arch_modules_addr): New function.
26465 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
26466 (grub_total_module_size): Likewise.
26467 Include grub/machine/kernel.h.
26468 (grub_arch_modules_addr): New function.
26469 * util/grub-emu.c (grub_end_addr): Remove variable.
26470 (grub_total_module_size): Likewise.
26471 (grub_arch_modules_addr): New function.
26472 * util/misc.c: Include unistd.h.
26473 (grub_util_get_fp_size): New function.
26474 (grub_util_read_at): Likewise.
26475 (grub_util_write_image_at): Likewise.
26476 (grub_util_read_image): Call grub_util_read_at.
26477 (grub_util_write_image): Call grub_util_write_image_at.
26478 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
26479 additional memory in kernel_img for a struct grub_module_info.
26480 Fill in that grub_module_info.
26481 * util/powerpc/ieee1275/grub-mkimage.c: New file.
26482
458786f8 264832005-01-03 Hollis Blanchard <hollis@penguinppc.org>
26484
26485 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
26486 New function.
26487 * include/grub/powerpc/ieee1275/ieee1275.h
26488 (grub_ieee1275_milliseconds): New prototype.
26489 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
26490 Change to 1000.
26491 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
26492 grub_ieee1275_milliseconds.
26493
ac507d1b 264942005-01-03 Hollis Blanchard <hollis@penguinppc.org>
26495
26496 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
26497 variable.
26498 (find_options): New function.
26499 (cmain): Call find_options.
26500 * include/grub/powerpc/ieee1275/ieee1275.h
26501 (grub_ieee1275_realmode): New extern variable.
26502 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
26503 grub_map if grub_ieee1275_realmode is false.
26504
6b8fd1c4 265052004-12-29 Marco Gerards <metgerards@student.han.nl>
26506
26507 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
26508 lines are inserted and make it work like readline. Reported by
26509 Vincent Pelletier <subdino2004@yahoo.fr>.
26510
8514a1e0 265112004-12-28 Marco Gerards <metgerards@student.han.nl>
26512
26513 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
26514
26515 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
26516 `kern/powerpc/cache.S'.
26517
924b6140 265182004-12-27 Marco Gerards <metgerards@student.han.nl>
26519
26520 * genmk.rb: Handle the `Program' class in the main loop. Written
26521 by Johan Rydberg <jrydberg@gnu.org>.
26522 (Program): New class.
26523 (programs): New variable.
26524 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
26525 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
26526 instead of "grub/kernel.h". Include <grub/machine/init.h>.
26527 (help_arch): Function removed.
26528 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
26529 `powerpc/libgcc.h' and `loader.h'.
26530 (pkgdata_PROGRAMS): New variable.
26531 (sbin_UTILITIES): Variable removed.
26532 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
26533 (grubof_SOURCES): Variable re-defined so it only includes the
26534 core functionality.
26535 (grubof_CFLAGS): Remove `-DGRUBOF'.
26536 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
26537 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
26538 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
26539 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
26540 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
26541 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
26542 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
26543 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
26544 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
26545 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
26546 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
26547 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
26548 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
26549 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
26550 (pc_mod_CFLAGS): New variables.
26551 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
26552 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
26553 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
26554 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
26555 Moved from here...
26556 * include/grub/i386/pc/init.h (grub_os_area_addr)
26557 (rub_os_area_size): ... to here.
26558 * include/grub/powerpc/ieee1275/ieee1275.h
26559 (grub_ieee1275_entry_fn): Export symbol.
26560 * include/grub/powerpc/ieee1275/init.h: New file.
26561 * include/grub/powerpc/libgcc.h: Likewise.
26562 * include/grub/cache.h: Likewise.
26563 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
26564 <hollis@penguinppc.org>.
26565 * kern/dl.c: Include <grub/cache.h>.
26566 (grub_dl_flush_cache): New function.
26567 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
26568 for this module.
26569 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
26570 (grub_console_init): Removed prototypes.
26571 (grub_machine_init): Don't initialize the modules anymore.
26572 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
26573 static.
26574 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
26575 Macro undef removed.
26576 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
26577 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
26578 relocation `R_PPC_REL32'. Return an error when the relocation is
26579 unknown.
26580 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
26581 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
26582 * util/misc.c (grub_arch_sync_caches): Likewise.
26583
e4b47e0c 265842004-12-19 Marco Gerards <metgerards@student.han.nl>
26585
26586 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
26587 `symlist.c', add `grubof_symlist.c'.
26588 (symlist.c): Variable removed.
26589 (grubof_HEADERS): Variable added.
26590 (grubof_symlist.c): New target.
26591 (kernel_syms.lst): Use `grubof_HEADERS' instead of
26592 `kernel_img_HEADERS'.
26593 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
26594 * kern/powerpc/dl.c: New file.
26595 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
26596 Function removed.
26597 (grub_arch_dl_relocate_symbols): Likewise.
26598 (grub_register_exported_symbols): Likewise.
26599
4ceb3636 266002004-12-13 Marco Gerards <metgerards@student.han.nl>
26601
26602 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
26603 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
26604 to fail instead. Reported by Vincent Pelletier
26605 <subdino2004@yahoo.fr>.
26606
26607 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
26608 it is not allocated. Reported by Vincent Pelletier
26609 <subdino2004@yahoo.fr>.
26610
26611 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
26612 output so the output looks better.
f19dbdb7 26613
3f1578fe 266142004-12-04 Marco Gerards <metgerards@student.han.nl>
26615
26616 Modulize the partition map support and add support for the amiga
26617 partition map.
f19dbdb7 26618
3f1578fe 26619 * commands/ls.c: Include <grub/partition.h> instead of
26620 <grub/machine/partition.h>.
26621 * kern/disk.c: Likewise.
26622 * kern/rescue.c: Likewise.
26623 * loader/i386/pc/chainloader.c: Likewise.
26624 * normal/cmdline.c: Likewise.
26625 * kern/powerpc/ieee1275/init.c: Likewise.
26626 (grub_machine_init): Call `grub_pc_partition_map_init',
26627 `grub_amiga_partition_map_init' and
26628 `grub_apple_partition_map_init'.
26629 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
26630 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
26631 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
26632 `partition.h' and `pc_partition.h'.
26633 (grub_setup_SOURCES): Remove
26634 `disk/i386/pc/partition.c'. Add `kern/partition.c',
26635 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
26636 (grub_emu_SOURCES): Likewise.
26637 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
26638 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
26639 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
26640 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
26641 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
26642 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
26643 (grubof_SOURCES): Likewise.
26644 * disk/i386/pc/partition.c: File removed.
26645 * disk/powerpc/ieee1275/partition.c: Likewise.
26646 * include/grub/powerpc/ieee1275/partition.h: Likewise.
26647 * include/grub/i386/pc/partition.h: Likewise.
26648 * kern/partition.c: New file.
26649 * partmap/amiga.c: Likewise.
26650 * partmap/apple.c: Likewise.
26651 * partmap/pc.c: Likewise.
26652 * include/grub/partition.h: Likewise..
26653 * include/grub/pc_partition.h: Likewise.
26654 * util/grub-emu.c: Include <grub/partition.h> instead of
26655 <grub/machine/partition.h>.
26656 (main): Call `grub_pc_partition_map_init',
26657 `grub_amiga_partition_map_init' and
26658 `grub_apple_partition_map_init' and deinitialize afterwards.
26659 * util/i386/pc/biosdisk.c: Include `#include
26660 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
26661 `<grub/machine/partition.h>'.
26662 * util/i386/pc/grub-setup.c: Likewise.
26663 * util/i386/pc/biosdisk.c: Likewise.
26664 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
26665 partition information in case of a PC partition.
26666 * util/i386/pc/grub-setup.c: Include `#include
26667 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
26668 `<grub/machine/partition.h>'.
26669 (setup): Only access the PC specific partition information in case
26670 of a PC partition.
26671
0ef4ced9 266722004-11-17 Hollis Blanchard <hollis@penguinppc.org>
f19dbdb7 26673
0ef4ced9 26674 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
26675 (grub_longjmp): Likewise.
26676 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
26677 20.
26678 * normal/powerpc/setjmp.S: New file.
26679 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
26680 `normal/powerpc/setjmp.S'.
26681 (grubof_CFLAGS): Add `-DGRUBOF'.
26682 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
26683 [GRUB_UTIL && !GRUBOF].
f19dbdb7 26684
19950e29 266852004-11-16 Marco Gerards <metgerards@student.han.nl>
26686
26687 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
26688 property named `name'. Correctly handle the error returned by
26689 `grub_ieee1275_finddevice' if a device can not be opened.
26690
a2fea427 266912004-11-02 Hollis Blanchard <hollis@penguinppc.org>
26692
26693 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
26694 `actual' for negativity.
26695 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
26696 kern/fshelp.c.
26697
41ea0ea3 266982004-11-01 Marco Gerards <metgerards@student.han.nl>
26699
26700 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
26701 (PAGE_OFFSET): New macro.
26702 (CRTC_ADDR_PORT): Likewise.
26703 (CRTC_DATA_PORT): Likewise.
26704 (START_ADDR_HIGH_REGISTER): Likewise.
26705 (START_ADDR_LOW_REGISTER): Likewise.
26706 (GRAPHICS_ADDR_PORT): Likewise.
26707 (GRAPHICS_DATA_PORT): Likewise.
26708 (READ_MAP_REGISTER): Likewise.
26709 (INPUT_STATUS1_REGISTER): Likewise.
26710 (INPUT_STATUS1_VERTR_BIT): Likewise.
26711 (page): New variable.
26712 (wait_vretrace): New function.
26713 (set_read_map): Likewise.
26714 (set_start_address): Likewise.
26715 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
26716 the right page.
26717 (check_vga_mem): Take the page into account.
26718 (write_char): Likewise.
26719 (write_cursor): Likewise.
26720 (scroll_up): Likewise. Copy the page to the page that is not
26721 shown and switch between both pages.
26722 (grub_vga_putchar): Fix off by one error.
26723 (grub_vga_cls): Wait for the vertical retrace. Take the page into
26724 account.
26725
ad0bd20b 267262004-11-01 Marco Gerards <metgerards@student.han.nl>
26727
26728 Add support for iso9660 (including rockridge).
f19dbdb7 26729
ad0bd20b 26730 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
26731 (iso9660_mod_SOURCES): New variable.
26732 (iso9660_mod_CFLAGS): Likewise.
26733 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
26734 * include/grub/fs.h (grub_iso9660_init): New prototype.
26735 * util/grub-emu.c (main): Call `grub_iso9660_init'.
26736 * fs/iso9660.c: New file.
26737
26738 * include/grub/misc.h (grub_strncat): New prototype.
26739 * kern/misc.c (grub_strncat): New function.
f19dbdb7 26740
ad0bd20b 26741 * fs/hfs.c (grub_hfs_mount): Translate the error
26742 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
26743 * fs/jfs.c (grub_jfs_mount): Likewise.
26744 * fs/ufs.c (grub_ufs_mount): Likewise.
26745
a5477a59 267462004-10-28 Hollis Blanchard <hollis@penguinppc.org>
26747
26748 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
26749 which initialized BAT registers.
26750 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
26751 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
26752 Move from here...
26753 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
26754 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
26755 ... to here.
26756 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
26757 (grub_mapclaim): Likewise.
26758 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
26759 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
26760 hand.
26761
9304c1f8 267622004-10-19 Hollis Blanchard <hollis@penguinppc.org>
26763
26764 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
26765 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
26766 -ffreestanding and -msoft-float.
26767
86f4ae25 267682004-10-15 Hollis Blanchard <hollis@penguinppc.org>
26769
26770 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
26771 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
26772 set in grub_ieee1275_flags.
26773
38912228 267742004-10-14 Hollis Blanchard <hollis@penguinppc.org>
26775
26776 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
26777 prototype.
26778 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
26779 grub_console_init first.
26780 Change the memory range used for grub_ieee1275_claim and
26781 grub_mm_init_region.
26782 Print an error message if the claim fails.
26783 Include <grub/misc.h>.
26784
d1923dc8 267852004-10-13 Hollis Blanchard <hollis@penguinppc.org>
26786
26787 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
26788 Call grub_children_iterate for device nodes of type `scsi',
26789 `ide', or `ata'.
26790 (grub_ofdisk_open): Remove manual device alias resolution.
26791 Fix memory leak when device cannot be opened.
f19dbdb7 26792 * include/grub/powerpc/ieee1275/ieee1275.h
d1923dc8 26793 (grub_children_iterate): New prototype.
26794 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
26795 New function.
26796 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
26797 Return -1 if args.size was -1.
26798
4512e4f3 267992004-10-11 Hollis Blanchard <hollis@penguinppc.org>
26800
26801 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
26802 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
26803 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
26804 Open Firmware's memory for it; claim memory from _start to _end.
26805 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
26806 (_end): New extern.
26807 (_start): Zero BSS from __bss_start to _end.
26808 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
26809 New extern.
26810 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
26811
4d61feb0 268122004-10-11 Hollis Blanchard <hollis@penguinppc.org>
26813
ad0bd20b 26814 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
26815 -1 if args.base was -1.
4d61feb0 26816
026fa2f9 268172004-10-08 Hollis Blanchard <hollis@penguinppc.org>
26818
26819 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
26820 escape sequence instead of a literal ^L. Also call
26821 grub_ofconsole_gotoxy.
26822
9f2220ef 268232004-10-03 Hollis Blanchard <hollis@penguinppc.org>
26824
26825 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
26826 void * arguments to grub_addr_t. All callers updated. Also make
26827 the `result' argument optional.
26828 (grub_ieee1275_release): change void * arguments to grub_addr_t.
26829 All callers updated.
26830
8a572cd7 268312004-09-22 Hollis Blanchard <hollis@penguinppc.org>
26832
26833 * commands/ls.c (grub_ls_list_files): Use the string following the
26834 initial ')', if present, as the filesystem path.
26835 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
26836
26837 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
26838
18aa81f2 268392004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
26840
26841 Make the source code of the menu interface more readable.
f19dbdb7 26842
18aa81f2 26843 * normal/menu.c: Include grub/mm.h.
26844 (TERM_WIDTH): New macro.
26845 (TERM_HEIGHT): Likewise.
26846 (TERM_INFO_HEIGHT): Likewise.
26847 (TERM_MARGIN): Likewise.
26848 (TERM_SCROLL_WIDTH): Likewise.
26849 (TERM_TOP_BORDER_Y): Likewise.
26850 (TERM_LEFT_BORDER_X): Likewise.
26851 (TERM_BORDER_WIDTH): Likewise.
26852 (TERM_MESSAGE_HEIGHT): Likewise.
26853 (TERM_BORDER_HEIGHT): Likewise.
26854 (TERM_NUM_ENTRIES): Likewise.
26855 (TERM_FIRST_ENTRY_Y): Likewise.
26856 (TERM_ENTRY_WIDTH): Likewise.
26857 (TERM_CURSOR_X): Likewise.
26858 (draw_border): Use macros instead of magic numbers.
26859 (print_entry): Likewise.
26860 (print_entries): Likewise.
26861 (run_menu): Likewise. Also, handle the key 'e'.
26862 (run_menu_entry): Ignore empty command lines.
26863 (print_message): Added a new argument EDIT. If EDIT is true,
26864 print a different message.
26865 (init_page): Likewise.
26866 (edit_menu_entry): New function. Not implemented yet.
26867
b47efe30 268682004-09-17 Marco Gerards <metgerards@student.han.nl>
26869
26870 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
26871 can be loaded from normal mode.
f19dbdb7 26872
b47efe30 26873 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
26874 `multiboot.mod'.
26875 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
26876 (multiboot_mod_CFLAGS): New variables.
26877 * loader/i386/pc/linux_normal.c: New file.
f19dbdb7 26878 * loader/i386/pc/multiboot_normal.c: Likewise.
26879
b47efe30 26880 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
26881 attribute `unused'.
f19dbdb7 26882
b47efe30 26883 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
26884 `fdiro' to read the mode information from instead of `diro'.
26885
26886 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
26887 looking up a symlink.
26888
26889 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
26890 macro.
26891 * normal/command.c (grub_command_execute): Don't parse the
26892 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
26893 flags of the command.
26894
26895 * normal/menu.c (grub_menu_run): Fix typo.
26896
da75ac71 268972004-09-14 Hollis Blanchard <hollis@penguinppc.org>
26898
26899 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
26900
26901 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
26902 `y + 1' instead of `y - 1'.
26903
26904 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
f19dbdb7 26905
062b24c2 269062004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
26907
26908 From Hollis Blanchard <hollis@penguinppc.org>:
26909 * kern/misc.c (memmove): New alias for grub_memmove.
26910 (memcmp): New alias for grub_memcmp.
26911 (memset): New alias for grub_memset.
f19dbdb7 26912 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
062b24c2 26913 Change "int handle" to "grub_ieee1275_phandle_t handle".
f19dbdb7 26914 * include/grub/powerpc/ieee1275/ieee1275.h
062b24c2 26915 (grub_ieee1275_get_property): Likewise.
f19dbdb7 26916
8ddad845 269172004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
26918
26919 Added normal mode command `chainloader' as module chain.mod, which
26920 depends on normal.mod and _chain.mod.
f19dbdb7 26921
8ddad845 26922 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
26923 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
26924 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
26925 Deleted prototype.
26926 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
26927 but arguments parsing moved to ...
26928 (grub_chainloader_cmd): ... here. New function.
26929 * include/grub/i386/pc/chainloader.h: New file.
26930 * loader/i386/pc/chainloader_normal.c: Likewise.
26931
2c1f4ce3 269322004-09-11 Marco Gerards <metgerards@student.han.nl>
26933
26934 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
26935 (grub_mkimage_LDFLAGS): Likewise.
26936 (grub_emu_SOURCES): Likewise.
26937 (kernel_img_HEADERS): Added fshelp.h.
26938 * fs/ext2.c: Include <grub/fshelp.h>.
26939 (FILETYPE_REG): New macro.
26940 (FILETYPE_INO_REG): Likewise.
26941 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
26942 Changed all users.
26943 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
26944 all users.
26945 (grub_fshelp_node): New struct.
26946 (grub_ext2_data): Added member `diropen'. Changed member `inode'
26947 to a pointer.
26948 (grub_ext2_get_file_block): Removed function.
26949 (grub_ext2_read_block): New function.
26950 (grub_ext2_read_file): Replaced parameter `data' by `node'.
26951 This function was written.
26952 (grub_ext2_mount): Read the root inode. Create a diropen struct.
26953 (grub_ext2_find_file): Removed function.
26954 (grub_ext2_read_symlink): New function.
26955 (grub_ext2_iterate_dir): Likewise.
26956 (grub_ext2_open): Rewritten.
26957 (grub_ext2_dir): Rewritten.
26958 * include/grub/fshelp.h: New file.
26959 * fs/fshelp.c: Likewise.
26960
3c52136a 269612004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
26962
26963 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
26964 (print_message): Add a missing newline.
26965 (run_menu): Added timeout support.
26966 (run_menu_entry): New local function.
26967 (grub_menu_run): Added support for booting.
26968
26969 * kern/loader.c (grub_loader_is_loaded): New function.
26970
26971 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
26972 (grub_get_rtc): Exported.
26973
26974 * include/grub/i386/pc/time.h: Include grub/symbol.h.
26975 (grub_get_rtc): Exported.
26976
26977 * include/grub/normal.h (struct grub_command_list): Remove
26978 constant from the member `command'.
26979
26980 * include/grub/loader.h (grub_loader_is_loaded): Declared.
26981
26982 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
26983
26984 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
26985
aa033560 269862004-08-28 Marco Gerards <metgerards@student.han.nl>
26987
26988 Add support for the JFS filesystem.
26989
26990 * fs/jfs.c: New file.
26991 * include/grub/fs.h (grub_jfs_init): New prototype.
26992 (grub_jfs_fini): New prototype.
26993 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
26994 (grub_emu_SOURCES): Likewise.
26995 (pkgdata_MODULES): Add jfs.mod.
26996 (jfs_mod_SOURCES): New variable.
26997 (jfs_mod_CFLAGS): Likewise.
26998 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
26999 (grubof_SOURCES): Likewise.
27000 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
27001
27002 * fs/fat.c (grub_fat_find_dir): Convert the filename little
27003 endian to the host endian.
27004 (grub_fat_utf16_to_utf8): Move function from there...
27005 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
fe987087 27006 the endianness of the source string anymore.
aa033560 27007 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
27008
94bc45af 270092004-08-24 Marco Gerards <metgerards@student.han.nl>
27010
27011 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
27012 (grub_boot_fini) [GRUB_UTIL]: Likewise.
27013 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
27014 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
f19dbdb7 27015
94bc45af 27016 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
27017 (grub_hfs_iterate_dir): Make the function static. Add prototypes
27018 for `node_found' and `it_dir'.
27019 (grub_hfs_dir): Add prototype for `dir_hook'.
27020
27021 * fs/minix.c (grub_minix_get_file_block): Add prototype for
27022 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
27023 and `indir32' to silence a gcc warning.
27024
27025 * include/grub/fs.h (grub_hfs_init): New prototype.
27026 (grub_hfs_fini): Likewise.
f19dbdb7 27027
27028
97543f08 270292004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
27030
27031 Each disk device has its own id now. This is useful to make use
27032 of multiple disk devices.
f19dbdb7 27033
97543f08 27034 * include/grub/disk.h (grub_disk_dev_id): New enum.
27035 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
27036 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
27037
27038 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
27039 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
27040
27041 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
27042 GRUB_DISK_DEVICE_OFDISK_ID as an id.
27043
27044 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
27045 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
27046
27047 * include/grub/disk.h (struct grub_disk_dev): Added a new member
27048 "id" which is used by the cache manager.
27049
27050 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
27051 of just "GRUB".
27052
64372eb4 270532004-08-18 Marco Gerards <metgerards@student.han.nl>
27054
27055 * fs/hfs.c: New file.
27056 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
27057 (grub_emu_SOURCES): Likewise.
27058 (pkgdata_MODULES): Add hfs.mod.
27059 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
27060 (grubof_SOURCES): Likewise.
27061 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
27062
27063 * include/grub/misc.h (grub_strncasecmp): Add prototype.
27064 * kern/misc.c (grub_strncasecmp): Add function.
27065
cc61b58f 270662004-08-14 Marco Gerards <metgerards@student.han.nl>
27067
27068 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
27069 with parentheses.
27070
27071 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
27072 (grub_ext2_dir): In case the directory entry type is unknown, read
27073 it from the inode.
27074
0ef123f6 270752004-08-02 Peter Bruin <pjbruin@dds.nl>
27076
27077 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
27078 grub_load_linux instead of grub_rescue_cmd_linux as second
27079 argument of grub_rescue_register_command.
27080
27081 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
27082
a447c5df 270832004-07-27 Marco Gerards <metgerards@student.han.nl>
27084
27085 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
27086 function.
27087 * commands/boot.c: Remove the check for `GRUB_UTIL'.
27088 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
27089 `loader/powerpc/ieee1275/linux.c',
27090 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
27091 * include/grub/powerpc/ieee1275/ieee1275.h
27092 (grub_ieee1275_release): New prototype.
27093 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
27094 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
27095 normal, boot, linux and linux_normal.
27096 * loader/powerpc/ieee1275/linux.c: New file.
27097 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
27098
5a9e3546 270992004-07-12 Marco Gerards <metgerards@student.han.nl>
27100
27101 * normal/arg.c (grub_arg_parse): Correct error handling after
27102 reallocating the argumentlist (check if `argl' is not null instead
27103 of checking if `args' is not null).
27104 * kern/mm.c (grub_realloc): Return the same pointer when using the
27105 same region, instead of returning the header address.
27106
e15199cb 271072004-07-11 Marco Gerards <metgerards@student.han.nl>
27108
27109 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
27110 one block instead of two when looking for the initial partition.
27111 (grub_partition_probe): Initialize the local variable `p' with 0.
27112 Use base 10 for the grub_strtoul call.
27113 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
27114 need for one local variable.
27115 (grub_strtoul): Don't add the new value to `num', instead of that
27116 just assign it.
27117
020616c2 271182004-07-11 Marco Gerards <metgerards@student.han.nl>
27119
27120 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
27121 (pxeboot_img_SOURCES): New variable.
27122 (pxeboot_img_ASFLAGS): Likewise.
27123 (pxeboot_img_LDFLAGS): Likewise.
27124 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
27125 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
27126 <lode_leroy@hotmail.com>.
27127
6c51eb64 271282004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
27129
27130 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
27131 there was no input.
27132
cfb12aff 271332004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
27134
27135 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
27136 the history buffer logic.
27137
6eabba74 271382004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
27139
27140 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
27141 (FILETYPE_INO_SYMLINK): New macros.
27142 (grub_ext2_find_file): Check if the node is a directory using the
27143 inode stat information instead of using the filetype in the
27144 dirent. Exclude the first character of an absolute symlink.
27145 (grub_ext2_dir): Mask out the filetype part of the mode member of
27146 the inode.
27147
66e19ef8 271482004-05-24 Marco Gerards <metgerards@student.han.nl>
27149
27150 Add support for UFS version 1 and 2. Add support for the minix
27151 filesystem version 1 and 2, both the variants with 14 and 30 long
27152 filenames.
f19dbdb7 27153
66e19ef8 27154 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
27155 fs/minix.c.
27156 (grub_emu_SOURCES): Likewise.
27157 (pkgdata_MODULES): Add ufs.mod and minix.mod.
27158 (ufs_mod_SOURCES): New variable.
27159 (ufs_mod_CFLAGS): Likewise.
27160 (minix_mod_SOURCES): Likewise.
27161 (minix_mod_CFLAGS): Likewise.
27162 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
27163 fs/minix.c.
27164 (grubof_SOURCES): Likewise.
27165 * fs/ufs.c: New file.
27166 * fs/minix.c: New file.
27167 * include/grub/fs.h (grub_ufs_init): New prototype.
27168 (grub_ufs_fini): Likewise.
27169 (grub_minix_init): Likewise.
27170 (grub_minix_fini): Likewise.
27171 * util/grub-emu.c (main): Initialize and deinitialize UFS and
27172 minix fs.
27173
cc2e748a 271742004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
27175
27176 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
27177 commands/ls.c, commands/terminal.c, commands/boot.c,
27178 commands/cmp.c and commands/cat.c.
27179 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
27180
27181 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
27182 "env.h"
27183
4b13b216 271842004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
27185
27186 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
27187 and grub_, respectively. Because the conversion is trivial and
27188 mechanical, I omit the details here. Please refer to the CVS
27189 if you need more information.
27190
6a142551 271912004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
27192
27193 * include/pupa: Renamed to ...
27194 * include/grub: ... this.
27195 * util/i386/pc/pupa-mkimage.c: Renamed to ...
27196 * util/i386/pc/grub-mkimage.c: ... this.
27197 * util/i386/pc/pupa-setup.c: Renamed to ...
27198 * util/i386/pc/grub-setup.c: ... this.
27199 * util/pupa-emu.c: Renamed to ...
27200 * util/grub-emu.c: ... this.
27201
e56cdf21 272022004-03-29 Marco Gerards <metgerards@student.han.nl>
27203
27204 Add support for the newworld apple macintosh (PPC). This has been
27205 tested on the powerbook 2000 only. It only adds support for
27206 generic ieee1275 functions, console and disk support. This should
27207 be easy to port to other architectures with support for Open
27208 Firmware.
f19dbdb7 27209
e56cdf21 27210 * configure.ac: Accept the powerpc as host_cpu. In the case of
27211 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
27212 specific tests are only executed while building for the i386.
27213 Inverse test for crosscompile.
27214 * genmk.rb (Utility): Allow assembler files.
27215 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
27216 * conf/powerpc-ieee1275.rmk: New file.
27217 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
27218 * disk/powerpc/ieee1275/partition.c: Likewise.
27219 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
27220 * include/pupa/powerpc/ieee1275/console.h: Likewise.
27221 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
27222 * include/pupa/powerpc/ieee1275/time.h: Likewise.
27223 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
27224 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
27225 * include/pupa/powerpc/ieee1275/loader.h
27226 * include/pupa/powerpc/setjmp.h: Likewise.
27227 * include/pupa/powerpc/types.h: Likewise.
27228 * kern/powerpc/ieee1275/init.c: Likewise.
27229 * kern/powerpc/ieee1275/openfw.c: Likewise.
27230 * term/powerpc/ieee1275/ofconsole.c: Likewise.
27231
27232 These files were written by Johan Rydberg
27233 (jrydberg@night.trouble.net) and I only modified them slightly.
f19dbdb7 27234
e56cdf21 27235 * boot/powerpc/ieee1275/cmain.c: New file.
27236 * boot/powerpc/ieee1275/crt0.S: Likewise.
27237 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
27238 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
27239
8c8cc205 272402004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
27241
27242 * Makefile.in: Update copyright.
27243 * genmodsrc.sh: Likewise.
27244 * gensymlist.sh: Likewise.
27245 * term/i386/pc/vga.c: Indent correctly.
27246
27247 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
27248 bugreporting address.
27249 * util/i386/pc/pupa-setup.c (usage): Likewise,
27250 (main): Call pupa_ext2_init and pupa_ext2_fini.
27251
f19dbdb7 27252 * fs/fat.c (log2): Renamed to ...
8c8cc205 27253 (fat_log2): ... this.
27254 All callers changed.
27255 * kern/misc.c (memcpy): Alias to pupa_memmove.
27256 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
27257 lvalue cast.
27258 * util/console.c (pupa_ncurses_fini): Return 0.
27259
27260 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
27261 Move fail label here.
27262 [__GNU__]: Don't warn when using stat.
27263 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
27264 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
27265 long int. Use strtol instead of strtoul.
f19dbdb7 27266
db1771cf 272672004-03-14 Marco Gerards <metgerards@student.han.nl>
27268
27269 * commands/boot.c: New file.
27270 * commands/cat.c: Likewise.
27271 * commands/cmp.c: Likewise.
27272 * commands/ls.c: Likewise.
27273 * commands/terminal.c: Likewise.
27274 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
27275 (pupa_register_command): Changed interface to match the new
27276 argument parser.
27277 (pupa_command_execute): Changed (almost rewritten) so it uses
27278 pupa_split_command. Added support for setting variables using the
27279 syntax `foo=bar'.
27280 (rescue_command): Changed to work with the new argument parser.
27281 (terminal_command): Moved from here to commands/terminal.c.
27282 (set_command): New function.
27283 (unset_command): New function.
27284 (insmod_command): New function.
27285 (rmmod_command): New function.
27286 (lsmod_command): New function.
27287 (pupa_command_init): Don't initialize the command terminal
27288 anymore. Initialize the commands set, unset, insmod, rmmod and
27289 lsmod.
27290 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
27291 (kernel_img_HEADERS): Add arg.h and env.h.
27292 (pupa_mkimage_LDFLAGS): Add kern/env.c.
27293 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
27294 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
27295 normal/arg.c.
27296 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
27297 terminal.mod.
27298 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
27299 (boot_mod_SOURCES): New variable.
27300 (terminal_mod_SOURCES): Likewise.
27301 (ls_mod_SOURCES): Likewise.
27302 (cmp_mod_SOURCES): Likewise.
27303 (cat_mod_SOURCES): Likewise.
27304
27305 * normal/arg.c: New file.
27306 * kern/env.c: Likewise.
27307 * include/pupa/arg.h: Likewise.
27308 * include/pupa/env.h: Likewise.
27309 * font/manager.c (font_command): Changed to match argument parsing
27310 interface changes.
27311 (PUPA_MOD_INIT): Likewise.
27312 * hello/hello.c (pupa_cmd_hello): Likewise.
27313 (PUPA_MOD_INIT): Likewise.
27314 * include/pupa/disk.h: Include <pupa/device.h>.
27315 (pupa_print_partinfo): New prototype.
27316 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
27317 (pupa_dl_get_prefix): Likewise.
27318 * include/pupa/misc.h: Include <pupa/err.h>.
27319 (pupa_isgraph): New prototype.
27320 (pupa_isdigit): Likewise.
27321 (pupa_split_cmdline): Likewise.
27322 * include/pupa/normal.h: Include <pupa/arg.h>.
27323 (pupa_command): Changed the prototype of the member `func' to
27324 match the argument parsing interface. Added member `options'.
27325 (pupa_register_command): Updated to match function.
27326 (pupa_arg_parse): New prototype.
27327 (pupa_hello_init) [PUPA_UTIL]: New prototype.
27328 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
27329 (pupa_ls_init) [PUPA_UTIL]: Likewise.
27330 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
27331 (pupa_cat_init) [PUPA_UTIL]: Likewise.
27332 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
27333 (pupa_boot_init) [PUPA_UTIL]: Likewise.
27334 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
27335 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
27336 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
27337 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
27338 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
27339 * kern/disk.c: Include <pupa/file.h>.
27340 (pupa_print_partinfo): New function.
27341 * kern/dl.c: Include <pupa/env.h>.
27342 (pupa_dl_dir): Variable removed.
27343 (pupa_dl_load): Use the environment variable `prefix' instead of
27344 the variable pupa_dl_dir.
27345 (pupa_dl_set_prefix): Function removed.
27346 (pupa_dl_get_prefix): Likewise.
27347 * kern/i386/pc/init.c: Include <pupa/env.h>.
27348 (pupa_machine_init): Use the environment variable `prefix' instead of
27349 using pupa_dl_set_prefix to set the prefix.
27350 * kern/main.c: Include <pupa/env.h>.
27351 (pupa_set_root_dev): Use the environment variable `prefix' instead of
27352 using pupa_dl_get_prefix to get the prefix.
27353 * kern/misc.c: Include <pupa/env.h>.
27354 (pupa_isdigit): New function.
27355 (pupa_isgraph): Likewise.
27356 (pupa_ftoa): Likewise.
27357 (pupa_vsprintf): Added support for printing values of the type
27358 `double'. Make it possible to format variable output when using
27359 formatting like `%1.2%f'.
27360 (pupa_split_cmdline): New function.
27361 * kern/rescue.c: Include <pupa/env.h>.
27362 (next_word): Removed function.
27363 (pupa_rescue_cmd_prefix): Likewise.
27364 (pupa_rescue_cmd_set): New function.
27365 (pupa_rescue_cmd_unset): New function.
27366 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
27367 split the command line instead of splitting it here. Added
27368 support for setting variables using the syntax `foo=bar'. Don't
27369 initialize the prefix command anymore. Initialized the set and
27370 unset commands.
27371 * normal/cmdline.c: Include <pupa/env.h>.
27372 (pupa_tab_complete): Added prototypes for print_simple_completion,
27373 print_partition_completion, add_completion, iterate_commands,
27374 iterate_dev, iterate_part and iterate_dir. Moved code to print
27375 partition information from here to kern/disk.c.
fe6b695a 27376 (pupa_cmdline_run): Don't check if the function exists anymore.
db1771cf 27377 * normal/main.c: Include <pupa/env.h>.
27378 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
27379 instead of using pupa_dl_get_prefix to get the prefix.
27380 * term/i386/pc/vga.c: Include <pupa/arg.h>.
27381 (check_vga_mem): Cast pointers to `void *' to silence a gcc
27382 warning.
27383 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
27384 (pupa_vga_setcolor): Declare unused variables with `__attribute__
27385 ((unused))' to silence a gcc warning.
27386 (pupa_vga_setcolor): Likewise.
27387 (debug_command): Changed to match argument parsing
27388 interface changes.
27389 * util/pupa-emu.c: Include <pupa/env.h>.
27390 (options): Added 0's for unused fields to silence a gcc warning.
27391 (argp): Likewise.
27392 (main): Use the environment variable `prefix' instead of using
27393 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
27394 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
27395 and terminal.
27396
27397 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
27398 * util/misc.c: Include <malloc.h>.
27399 (pupa_malloc): Rewritten so errors are correctly reported.
27400 (pupa_realloc): Likewise.
27401 (pupa_memalign): Likewise.
27402 (pupa_mm_init_region): Declare unused variables with
27403 `__attribute__ ((unused))' to silence a gcc warning.
27404 * normal/i386/setjmp.S: Remove tab at the end of the file to
27405 silence a gcc warning.
27406 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
27407 variables with `__attribute__ ((unused))' to silence a gcc
27408 warning.
27409 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
27410 local variable i unsigned to silence a gcc warning.
27411
27412 * kern/term.c: Include <pupa/misc.h>.
27413 (pupa_more_lines): New variable.
27414 (pupa_more): Likewise.
27415 (pupa_putcode): When the pager is active pause at the end of every
27416 screen.
27417 (pupa_set_more): New function.
27418 * include/pupa/term.h (pupa_set_more): New prototype.
27419
27420
3b1139cb 274212004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
27422
27423 Now this project is GRUB 2 rather than PUPA. The location of
27424 the CVS repository was moved to GRUB's.
f19dbdb7 27425
3b1139cb 27426 * configure.ac: Use bug-grub as the reporting address.
27427 Use GRUB instead of PUPA.
27428 Change the version number to 1.90.
27429
8367695c 274302004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
27431
27432 * genkernsyms.sh: Updated copyright information.
27433 * genmk.rb: Likewise.
27434 * genmodsrc.sh: Likewise.
27435 * gensymlist.sh: Likewise.
27436 * boot/i386/pc/boot.S: Likewise.
27437 * boot/i386/pc/diskboot.S: Likewise.
27438 * disk/i386/pc/biosdisk.c: Likewise.
27439 * disk/i386/pc/partition.c: Likewise.
27440 * font/manager.c: Likewise.
27441 * fs/ext2.c: Likewise.
27442 * fs/fat.c: Likewise.
27443 * include/pupa/boot.h: Likewise.
27444 * include/pupa/device.h: Likewise.
27445 * include/pupa/disk.h: Likewise.
27446 * include/pupa/dl.h: Likewise.
27447 * include/pupa/elf.h: Likewise.
27448 * include/pupa/err.h: Likewise.
27449 * include/pupa/file.h: Likewise.
27450 * include/pupa/font.h: Likewise.
27451 * include/pupa/fs.h: Likewise.
27452 * include/pupa/kernel.h: Likewise.
27453 * include/pupa/loader.h: Likewise.
27454 * include/pupa/misc.h: Likewise.
27455 * include/pupa/mm.h: Likewise.
27456 * include/pupa/net.h: Likewise.
27457 * include/pupa/normal.h: Likewise.
27458 * include/pupa/rescue.h: Likewise.
27459 * include/pupa/setjmp.h: Likewise.
27460 * include/pupa/symbol.h: Likewise.
27461 * include/pupa/term.h: Likewise.
27462 * include/pupa/types.h: Likewise.
27463 * include/pupa/i386/setjmp.h: Likewise.
27464 * include/pupa/i386/types.h: Likewise.
27465 * include/pupa/i386/pc/biosdisk.h: Likewise.
27466 * include/pupa/i386/pc/boot.h: Likewise.
27467 * include/pupa/i386/pc/console.h: Likewise.
27468 * include/pupa/i386/pc/init.h: Likewise.
27469 * include/pupa/i386/pc/kernel.h: Likewise.
27470 * include/pupa/i386/pc/linux.h: Likewise.
27471 * include/pupa/i386/pc/loader.h: Likewise.
27472 * include/pupa/i386/pc/memory.h: Likewise.
27473 * include/pupa/i386/pc/multiboot.h: Likewise.
27474 * include/pupa/i386/pc/partition.h: Likewise.
27475 * include/pupa/i386/pc/time.h: Likewise.
27476 * include/pupa/i386/pc/vga.h: Likewise.
27477 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
27478 * include/pupa/util/getroot.h: Likewise.
27479 * include/pupa/util/misc.h: Likewise.
27480 * include/pupa/util/resolve.h: Likewise.
27481 * kern/device.c: Likewise.
27482 * kern/disk.c: Likewise.
27483 * kern/dl.c: Likewise.
27484 * kern/err.c: Likewise.
27485 * kern/file.c: Likewise.
27486 * kern/fs.c: Likewise.
27487 * kern/loader.c: Likewise.
27488 * kern/main.c: Likewise.
27489 * kern/misc.c: Likewise.
27490 * kern/mm.c: Likewise.
27491 * kern/rescue.c: Likewise.
27492 * kern/term.c: Likewise.
27493 * kern/i386/dl.c: Likewise.
27494 * kern/i386/pc/init.c: Likewise.
27495 * kern/i386/pc/lzo1x.S: Likewise.
27496 * kern/i386/pc/startup.S: Likewise.
27497 * loader/i386/pc/chainloader.c: Likewise.
27498 * loader/i386/pc/linux.c: Likewise.
27499 * loader/i386/pc/multiboot.c: Likewise.
27500 * normal/cmdline.c: Likewise.
27501 * normal/command.c: Likewise.
27502 * normal/main.c: Likewise.
27503 * normal/menu.c: Likewise.
27504 * normal/i386/setjmp.S: Likewise.
27505 * term/i386/pc/console.c: Likewise.
27506 * term/i386/pc/vga.c: Likewise.
27507 * util/console.c: Likewise.
27508 * util/genmoddep.c: Likewise.
27509 * util/misc.c: Likewise.
27510 * util/pupa-emu.c: Likewise.
27511 * util/resolve.c: Likewise.
27512 * util/unifont2pff.rb: Likewise.
27513 * util/i386/pc/biosdisk.c: Likewise.
27514 * util/i386/pc/getroot.c: Likewise.
27515 * util/i386/pc/pupa-mkimage.c: Likewise.
27516 * util/i386/pc/pupa-setup.c: Likewise.
27517
e6eced71 275182004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
27519
27520 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
27521 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
27522 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
27523 reading and reset it after reading.
27524 (pupa_ext2_close): Return PUPA_ERR_NONE.
27525
27526 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
27527 Correct value.
27528 (struct linux_kernel_header): Add kernel_version and
27529 initrd_addr_max.
27530 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
27531 pupa_file_read succeeds.
27532 (pupa_rescue_cmd_initrd): Implement.
27533
5aded270 275342003-12-03 Marco Gerards <metgerards@student.han.nl>
27535
27536 * fs/ext2.c (pupa_ext2_label): New function.
27537 (pupa_ext2_fs): Added label.
27538 * fs/fat.c (pupa_fat_label): New function.
27539 (pupa_fat_fs): Added label.
27540 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
27541
27542 * kern/misc.c (pupa_strndup): New function.
27543 * include/pupa/misc.h (pupa_strndup): New prototype.
27544
27545 * include/pupa/normal.h: Include <pupa/err.h>.
27546 (pupa_set_history): New prototype.
27547 (pupa_iterate_commands): New prototype.
27548 * normal/cmdline.c: Include <pupa/machine/partition.h>,
27549 <pupa/disk.h>, <pupa/file.h>.
27550 (hist_size): New variable.
27551 (hist_lines): Likewise.
27552 (hist_end): Likewise.
27553 (hist_used): Likewise.
27554 (pupa_set_history): New function.
27555 (pupa_history_get): Likewise.
27556 (pupa_history_add): Likewise.
27557 (pupa_history_replace): Likewise.
27558 (pupa_tab_complete): Likewise.
27559 (pupa_cmdline_run): Added tab completion and history buffer. Tab
27560 completion shows partitionnames while completing partitions, this
27561 feature was suggested by Jeff Bailey.
27562 * normal/command.c (pupa_iterate_commands): New function.
27563 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
27564 (pupa_normal_init): Initialize history buffer.
27565 (PUPA_MOD_INIT): Likewise.
27566 (pupa_normal_fini): Free the history buffer.
27567 (PUPA_MOD_FINI): Likewise.
27568
27569 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
27570 key.
27571
27572 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
27573 * configure.ac [i386]: Check for regparam bug.
27574 (NESTED_FUNC_ATTR) [! i386]: Defined.
27575
1f7315a3 275762003-11-17 Marco Gerards <metgerards@student.han.nl>
27577
27578 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
27579 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
27580 (pupa_emu_SOURCES): New variable.
27581 (pupa_emu_LDFLAGS): Likewise.
27582 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
27583 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
27584 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
27585 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
27586 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
27587 (pupa_jmp_buf): New typedef.
27588 (pupa_setjmp) [PUPA_UTIL]: New macro.
27589 (pupa_longjmp) [PUPA_UTIL]: Likewise.
27590 * include/pupa/term.h (struct pupa_term): New member `refresh'.
27591 (pupa_refresh): New prototype.
27592 * include/pupa/util/getroot.h: New file.
27593 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
27594 it.
27595 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
27596 (pupa_rescue_cmd_cat): Likewise.
27597 (pupa_rescue_cmd_ls): Likewise.
27598 (pupa_rescue_cmd_testload): Likewise.
27599 (pupa_rescue_cmd_lsmod): Likewise.
27600 * normal/cmdline.c (pupa_cmdline_get): Likewise.
27601 * normal/menu.c (run_menu): Likewise.
27602 * kern/term.c (pupa_cls): Likewise.
27603 (pupa_refresh): New function.
27604 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
27605 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
27606 * util/console.c: New file.
f19dbdb7 27607
1f7315a3 27608 * util/i386/pc/getroot.c: New file.
27609 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
27610 (pupa_putchar): New function.
27611 (pupa_refresh): Likewise.
27612 (xgetcwd): Function moved to ...
27613 (strip_extra_slashes): Likewise.
27614 (get_prefix): Likewise.
f19dbdb7 27615 * util/i386/pc/getroot.c: ... here.
1f7315a3 27616 (find_root_device): Function moved and renamed to...
27617 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
27618 Changed all callers.
27619 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
27620 and renamed to...
27621 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
27622 Changed all callers.
27623 * util/misc.c (pupa_memalign): New function.
27624 (pupa_mm_init_region): Likewise.
27625 (pupa_register_exported_symbols): Likewise.
27626 (pupa_putchar): Function removed.
27627 * util/pupa-emu.c: New file.
27628
9a5c1ade 276292003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
27630
27631 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
27632 (_multiboot_mod_SOURCES): New variable.
27633 (_multiboot_mod_CFLAGS): Likewise.
27634 * loader/i386/pc/multiboot.c: New file.
27635 * include/pupa/i386/pc/multiboot.h: Likewise.
27636 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
27637 (pupa_multiboot_real_boot): New function.
27638 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
27639 (pupa_multiboot_real_boot): New prototype.
27640 (pupa_rescue_cmd_multiboot): Likewise
27641 (pupa_rescue_cmd_module): Likewise.
27642
27643 * kern/loader.c (pupa_loader_set): Continue when
27644 pupa_loader_unload_func() fails.
27645 (pupa_loader_unset): New function.
27646 * include/pupa/loader.h (pupa_loader_unset): New prototype.
27647
27648 * kern/misc.c (pupa_stpcpy): New function.
27649 * include/pupa/misc.h (pupa_stpcpy): New prototype.
27650
8e72a9c0 276512003-11-12 Marco Gerards <metgerards@student.han.nl>
27652
27653 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
27654 for available extensions.
27655
27656 * include/pupa/i386/pc/time.h: New file.
27657 * kern/disk.c: Include <pupa/machine/time.h>.
27658 (PUPA_CACHE_TIMEOUT): New macro.
27659 (pupa_last_time): New variable.
27660 (pupa_disk_open): Flush the cache when there was a timeout.
27661 (pupa_disk_close): Reset the timer.
27662 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
27663 pupa_currticks.
27664 * util/misc.c: Include <sys/times.h>
27665 (pupa_get_rtc): New function.
27666
c4adbd32 276672003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
27668
27669 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
27670 as blocks.
27671 (pupa_ext2_get_file_block): Use blocks member.
27672
27673 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
27674 first block. Return -1 instead of pupa_errno on error.
27675
bfd30f06 276762003-10-27 Marco Gerards <metgerards@student.han.nl>
27677
27678 * README: In the pupa-mkimage example use _chain instead of chain
27679 and ext2 instead of fat.
27680 * TODO: Replace ext2fs with jfs as an example. Add an item for
27681 adding journal playback for ext2fs.
27682 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
27683 (pkgdata_MODULES): Added ext2.mod.
27684 (ext2_mod_SOURCES): New variable.
27685 (ext2_mod_CFLAGS): Likewise.
27686 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
27687 * include/pupa/misc.h (pupa_strncpy): New prototype.
27688 (pupa_strcat): Likewise.
27689 (pupa_strncmp): Likewise.
27690 * kern/misc.c (pupa_strcat): Enable function.
27691 (pupa_strncpy): New function.
27692 (pupa_strncmp): Likewise.
27693 * fs/ext2.c: New file.
f19dbdb7 27694
bfd30f06 27695 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
27696 when the read failed before retrying.
27697 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
27698 (_FILE_OFFSET_BITS): Likewise.
27699 * configure.ac: Added AC_SYS_LARGEFILE.
27700
98d15063 277012003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
27702
27703 * genmk.rb (PModule#rule): Make sure to get only symbol names
27704 from the output of nm.
59cad637 27705 Reported by Robert Millan <rmh.grub@aybabtu.com>.
98d15063 27706
18d9c7cd 277072003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
27708
27709 I forgot to check in these changes for a long time. This adds
27710 incomplete support for VGA console, and this is still very
27711 buggy. Also, a lot of consideration is required for I18N,
27712 UNICODE, and VGA font issues. Therefore, assume that this is
27713 such that "better than nothing".
f19dbdb7 27714
18d9c7cd 27715 * font/manager.c: New file.
27716 * include/pupa/font.h: Likewise.
27717 * include/pupa/i386/pc/vga.h: Likewise.
27718 * term/i386/pc/vga.c: Likewise.
27719 * util/unifont2pff.rb: Likewise.
27720
27721 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
27722 (pkgdata_MODULES): Added vga.mod and font.mod.
27723 (vga_mod_SOURCES): New variables.
27724 (vga_mod_CFLAGS): Likewise.
27725 (font_mod_SOURCES): Likewise.
27726 (font_mod_CFLAGS): Likewise.
27727
27728 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
27729
27730 * include/pupa/term.h: Include pupa/err.h.
f19dbdb7 27731 (struct pupa_term): Added init and fini.
18d9c7cd 27732 Changed the argument of putchar to pupa_uint32_t.
27733
27734 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
27735 (pupa_console_real_putchar): New prototype.
27736 (pupa_console_putchar): Removed.
27737 (pupa_console_checkkey): Exported.
27738 (pupa_console_getkey): Likewise.
27739
27740 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
27741 characters.
27742
27743 * kern/term.c (pupa_term_set_current): Rewritten.
27744 (pupa_putchar): Likewise.
27745 (pupa_putcode): New function.
27746
27747 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
27748 (pupa_console_real_putchar): ... this.
27749 (pupa_vga_set_mode): New function.
27750 (pupa_vga_get_font): Likewise.
27751
27752 * normal/command.c: Include pupa/term.h.
27753 (terminal_command): New function.
27754 (pupa_command_init): Register the command "terminal".
27755
27756 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
27757 (DISP_UP): Likewise.
27758 (DISP_RIGHT): Likewise.
27759 (DISP_DOWN): Likewise.
27760 (DISP_HLINE): Likewise.
27761 (DISP_VLINE): Likewise.
27762 (DISP_UL): Likewise.
27763 (DISP_UR): Likewise.
27764 (DISP_LL): Likewise.
27765 (DISP_LR): Likewise.
27766
27767 * term/i386/pc/console.c (pupa_console_putchar): New function.
f19dbdb7 27768
977329f5 277692003-02-08 NIIBE Yutaka <gniibe@m17n.org>
27770
27771 * util/resolve.c (pupa_util_resolve_dependencies): BUG
27772 FIX. Reverse the path_list.
27773
27774 * include/pupa/normal.h: Export pupa_register_command and
27775 pupa_unregister_command.
27776
27777 * hello/hello.c (pupa_cmd_hello): New module.
27778 * conf/i386-pc.rmk: Added hello.mod.
27779
1f5ab428 277802003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
27781
27782 * kern/i386/pc/lzo1x.S: New file.
f19dbdb7 27783
1f5ab428 27784 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
27785 (compress_kernel): New variable.
27786 (generate_image): Heavily modified to support compressing a
27787 large part of the core image.
27788
27789 * util/misc.c (pupa_util_read_image): Fix a file descriptor
27790 leak.
27791 (pupa_util_load_image): New function.
27792
27793 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
27794 (pupa_compressed_size): New variable.
27795 (codestart): Enable Gate A20 here.
27796 Decompress the compressed part of the core image.
27797 Rearrange the code to put functions and variables which are
27798 required for initialization in the non-compressed part.
27799 Include lzo1x.S.
27800
27801 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
27802 here.
27803
27804 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
27805
f19dbdb7 27806 * include/pupa/i386/pc/kernel.h
1f5ab428 27807 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
27808 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
27809 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
27810 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
27811 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
27812
27813 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
27814
27815 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
27816 (Utility#rule): Likewise.
27817
27818 * configure.ac: Check if LZO is available.
27819
ce5bf700 278202003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
27821
27822 * include/pupa/normal.h: New file.
27823 * include/pupa/setjmp.h: Likewise.
27824 * include/pupa/i386/setjmp.h: Likewise.
27825 * normal/cmdline.c: Likewise.
27826 * normal/command.c: Likewise.
27827 * normal/main.c: Likewise.
27828 * normal/menu.c: Likewise.
27829 * normal/i386/setjmp.S: Likewise.
f19dbdb7 27830
ce5bf700 27831 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
27832 (pupa_rescue_cmd_initrd): Likewise.
27833
27834 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
27835 Likewise.
27836
27837 * kern/i386/pc/startup.S (translation_table): New variable.
27838 (translate_keycode): New function.
27839 (pupa_console_getkey): Call translate_keycode.
27840
27841 * kern/rescue.c (attempt_normal_mode): New function.
27842 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
27843 it failed, print a message.
27844
27845 * kern/mm.c (pupa_real_malloc): Print more information when a
27846 free magic is broken.
27847 (pupa_free): If the first free header is not free actually, set
27848 it to P.
27849
27850 * kern/main.c (pupa_load_normal_mode): Just load the module
27851 "normal".
27852 (pupa_main): Don't print the message
27853 "Entering into rescue mode..." here.
27854
27855 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
27856 Declared.
27857 (pupa_rescue_cmd_initrd): Likewise.
27858 (pupa_rescue_cmd_initrd): Likewise.
27859
27860 * include/pupa/symbol.h (FUNCTION): Specify the type.
27861 (VARIABLE): Likewise.
27862
27863 * include/pupa/err.h (pupa_err_t): Added
27864 PUPA_ERR_UNKNOWN_COMMAND.
27865
27866 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
27867 (pupa_dl_get_prefix): Likewise.
27868
27869 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
27870 Added _chain.mod and _linux.mod instead of chain.mod and
27871 linux.mod.
27872 (chain_mod_SOURCES): Renamed to ...
27873 (_chain_mod_SOURCES): ... this.
27874 (chain_mod_CFLAGS): Renamed to ...
27875 (_chain_mod_CFLAGS): ... this.
27876 (linux_mod_SOURCES): Renamed to ...
27877 (_linux_mod_SOURCES): ... this.
27878 (linux_mod_CFLAGS): Renamed to ...
27879 (_linux_mod_CFLAGS): ... this.
27880 (normal_mod_SOURCES): New variable.
27881 (normal_mod_CFLAGS): Likewise.
27882 (normal_mod_ASFLAGS): Likewise.
27883
278842003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
27885
27886 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
27887 possible.
27888
fe6b695a 27889 * kern/dl.c (pupa_dl_ref): Refer depending modules
ce5bf700 27890 recursively.
27891 (pupa_dl_unref): Unrefer depending modules recursively.
27892 Don't call pupa_dl_unload implicitly, because PUPA can crash if
27893 a module is unloaded before one depending on that module is
27894 unloaded.
27895 (pupa_dl_unload): Unload depending modules explicitly,
27896 if possible.
27897
c04da074 278982003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
27899
27900 * include/pupa/i386/pc/linux.h: New file.
27901 * loader/i386/pc/linux.c: Likewise.
f19dbdb7 27902
c04da074 27903 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
27904 Removed.
27905 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
27906 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
27907 of PUPA_CHAINLOADER_BOOT_SECTOR.
27908
27909 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
27910 (pupa_linux_prot_size): New variable.
27911 (pupa_linux_tmp_addr): Likewise.
27912 (pupa_linux_real_addr): Likewise.
27913 (pupa_linux_boot_zimage): New function.
27914 (pupa_linux_boot_bzimage): Likewise.
27915
27916 * kern/i386/pc/init.c (struct mem_region): New structure.
27917 (MAX_REGIONS): New macro.
27918 (mem_regions): New variable.
27919 (num_regions): Likewise.
27920 (pupa_os_area_addr): Likewise.
27921 (pupa_os_area_size): Likewise.
27922 (pupa_lower_mem): Likewise.
27923 (pupa_upper_mem): Likewise.
27924 (add_mem_region): New function.
27925 (compact_mem_regions): Likewise.
27926 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
27927 the size of the conventional memory and that of so-called upper
27928 memory (before the first memory hole).
27929 Instead of adding each found region to free memory, use
27930 add_mem_region and add them after removing overlaps.
27931 Also, add only 1/4 of the upper memory to free memory. The rest
27932 is used for loading OS images. Maybe this is ad hoc, but this
27933 makes it much easier to relocate OS images when booting.
27934
27935 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
27936 (pupa_enter_rescue_mode): Don't register initrd and module.
27937
27938 * kern/mm.c: Include pupa/dl.h.
27939
27940 * kern/main.c: Include pupa/file.h and pupa/device.h.
27941
27942 * kern/loader.c (pupa_loader_load_module_func): Removed.
27943 (pupa_loader_load_module): Likewise.
27944
27945 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
27946 ``.o''.
27947
27948 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
27949 (pupa_linux_tmp_addr): Likewise.
27950 (pupa_linux_real_addr): Likewise.
27951 (pupa_linux_boot_zimage): Likewise.
27952 (pupa_linux_boot_bzimage): Likewise.
27953
27954 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
27955 (pupa_upper_mem): Likewise.
27956 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
27957 module is too dangerous.
27958
27959 * include/pupa/loader.h (pupa_os_area_addr): Declared.
27960 (pupa_os_area_size): Likewise.
27961 (pupa_loader_set): Remove the first argument. Loader doesn't
27962 manage modules or initrd any longer.
27963 (pupa_loader_load_module): Removed.
27964
27965 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
27966 (linux_mod_SOURCES): New variable.
27967 (linux_mod_CFLAGS): Likewise.
27968
a13f9237 279692003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
27970
27971 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
27972 the length of a blocklist correctly.
27973
27974 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
27975 Use ioctl only if the OS file is a block device.
27976 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
27977 not very useful for normal files.
27978
27979 * kern/main.c (pupa_set_root_dev): New function.
27980 (pupa_load_normal_mode): Likewise.
27981 (pupa_main): Call those above.
27982
27983 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
27984 pupa_uint16_t.
27985
27986 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
27987
a5ffe966 279882003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
27989
27990 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
27991 (setup): Configure the installed partition information and the
27992 dl prefix.
27993
27994 * loader/i386/pc/chainloader.c (my_mod): New variable.
27995 (pupa_chainloader_unload): New function.
27996 (pupa_rescue_cmd_chainloader): Refer itself.
27997 (PUPA_MOD_INIT): Save its own module in MY_MOD.
27998
27999 * kern/i386/pc/startup.S (install_partition): Removed.
28000 (version_string): Likewise.
28001 (config_file): Likewise.
28002 (pupa_install_dos_part): New variable.
28003 (pupa_install_bsd_part): Likewise.
28004 (pupa_prefix): Likewise.
28005 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
28006
28007 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
28008 and pupa/misc.h.
28009 (make_install_device): New function.
28010 (pupa_machine_init): Set the dl prefix.
28011
28012 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
28013 (buf): Renamed to ...
28014 (linebuf): ... this.
28015 (pupa_rescue_cmd_prefix): New function.
28016 (pupa_rescue_cmd_insmod): Likewise.
28017 (pupa_rescue_cmd_rmmod): Likewise.
28018 (pupa_rescue_cmd_lsmod): Likewise.
28019 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
28020 rmmod and lsmod.
28021
28022 * kern/mm.c (pupa_memalign): If failed even after invalidating
28023 disk caches, unload unneeded modules and retry.
28024
28025 * kern/misc.c (pupa_memmove): New function.
28026 (pupa_memcpy): Removed.
28027 (pupa_strcpy): New function.
28028 (pupa_itoa): Made static.
28029
28030 * kern/dl.c (pupa_dl_iterate): New function.
28031 (pupa_dl_ref): Likewise.
28032 (pupa_dl_unref): Likewise.
28033 (pupa_dl_unload): Return if succeeded or not.
28034 (pupa_dl_unload_unneeded): New function.
28035 (pupa_dl_unload_all): Likewise.
28036 (pupa_dl_init): Renamed to ...
28037 (pupa_dl_set_prefix): ... this.
28038 (pupa_dl_get_prefix): New function.
28039
28040 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
28041 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
28042 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
28043 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
28044 (pupa_install_dos_part): Declared.
28045 (pupa_install_bsd_part): Likewise.
28046 (pupa_prefix): Likewise.
28047 (pupa_boot_drive): Likewise.
28048
28049 * include/pupa/types.h: Fix a typo.
28050
28051 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
28052 pupa_memmove.
28053 (pupa_memmove): Declared.
28054 (pupa_strcpy): Likewise.
28055
28056 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
28057 pupa_mod_init takes one argument, its own module.
28058 (pupa_dl_unload_unneeded): Declared.
28059 (pupa_dl_unload_all): Likewise.
28060 (pupa_dl_ref): Likewise.
28061 (pupa_dl_unref): Likewise.
28062 (pupa_dl_iterate): Likewise.
28063 (pupa_dl_init): Renamed to ...
28064 (pupa_dl_set_prefix): ... this.
28065 (pupa_dl_get_prefix): Declared.
28066
28067 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
f19dbdb7 28068 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
a5ffe966 28069 unloaded.
28070 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
28071 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
28072
28073 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
28074 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
28075
012d7999 280762003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
28077
28078 * util/i386/pc/pupa-setup.c (setup): Define the internal
28079 function find_first_partition_start at the top level, because GCC
28080 3.0.x cannot compile internal functions in deeper scopes
28081 correctly.
28082 (find_root_device): Use lstat instead of stat.
28083 Don't follow symbolic links.
28084 Fix the path-constructing code.
28085
28086 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
28087 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
28088 by a BLKGETSIZE ioctl first, because block devices don't fill
28089 the member st_mode of the structure stat on Linux.
28090 [__linux__] (linux_find_partition): Use a temporary buffer
28091 REAL_DEV for the working space. Copy it to DEV before returning.
28092 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
28093 buffer cache consistent.
28094 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
28095 strncmp. The previous value was merely wrong.
28096 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
28097
28098 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
28099 FAT size is 12. The previous value was merely wrong.
28100
28101 * kern/main.c (pupa_main): Don't split the starting message from
28102 newlines.
28103
28104 * kern/term.c (pupa_putchar): Put CR after LF instead of before
28105 LF, because BIOS goes crazy about character attributes in this
28106 case.
28107
1cc73a62 281082003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
28109
28110 * include/i386/pc/util/biosdisk.h: New file.
28111 * util/i386/pc/biosdisk.c: Likewise.
28112 * util/i386/pc/pupa-setup.c: Likewise.
f19dbdb7 28113
1cc73a62 28114 * Makefile.in (INCLUDE_DISTFILES): Added
28115 include/pupa/i386/pc/util/biosdisk.h.
28116 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
28117 directory util/i386/pc.
28118 (install-local): Added a rule for sbin_UTILITIES.
28119 (uninstall): Likewise.
28120
28121 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
28122
28123 * util/misc.c (xrealloc): New function.
28124 (pupa_malloc): Likewise.
28125 (pupa_free): Likewise.
28126 (pupa_realloc): Likewise.
28127 (pupa_stop): Likewise.
28128 (pupa_putchar): Likewise.
28129
28130 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
28131
28132 * include/pupa/util/misc.h (xrealloc): Declared.
28133
28134 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
28135 macro.
28136 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
28137 (PUPA_BOOT_MACHINE_BPB_END): ... this.
28138
28139 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
28140 [PUPA_UTIL] (pupa_fat_fini): Likewise.
28141
28142 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
28143 way should be implemented.
28144 [PUPA_UTIL] (pupa_fat_fini): Likewise.
28145
28146 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
28147 the size of NAME for safety.
28148 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
28149 0x88.
28150
28151 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
28152 (pupa_setup_SOURCES): Likewise.
28153
28154 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
28155
08b70fe8 281562002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
28157
28158 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
28159 bunch of pushl's from pusha, because this destroys the return
28160 value.
28161
62ddcc8f 281622002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
28163
28164 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
28165 This means that any missing prototypes could be fatal. Also, you
28166 must take care when writing assembly code. See the comments at
28167 the beginning of startup.S, for more details.
f19dbdb7 28168
62ddcc8f 28169 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
28170 compilation mechanism.
28171 (pupa_chainloader_real_boot): Likewise.
28172 (pupa_biosdisk_rw_int13_extensions): Likewise.
28173 (pupa_biosdisk_rw_standard): Likewise.
28174 (pupa_biosdisk_check_int13_extensions): Likewise.
28175 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
28176 (pupa_biosdisk_get_diskinfo_standard): Likewise.
28177 (pupa_get_memsize): Likewise.
28178 (pupa_get_mmap_entry): Likewise.
28179 (pupa_console_putchar): Likewise.
28180 (pupa_console_setcursor): Likewise.
28181 (pupa_getrtsecs): Use pushl instead of push.
28182
28183 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
28184 memory instead of the stack for a mmap entry, because some
28185 BIOSes may ignore the maximum size and overflow.
28186
28187 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
28188
28189 * genmk.rb (PModule#rule): Compile automatically generated
28190 sources with module-specific CFLAGS as well as other sources.
28191
9962ed99 281922002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
28193
28194 * configure.ac: Check ld.
28195 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
28196 respectively, before checking endianness and sizes.
28197
28198 * Makefile.in (LD): New variable.
f19dbdb7 28199
abdfc3c5 282002002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
28201
28202 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
28203
6a161fa9 282042002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
28205
28206 * Changelog: New file.
28207