1 2012-09-05 Colin Watson <cjwatson@ubuntu.com>
3 * util/import_gcry.py: Sort cipher_files, to make build system
4 generation more deterministic.
6 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8 * grub-core/disk/ieee1275/ofdisk.c (scan): Check function return value.
9 * grub-core/lib/ieee1275/datetime.c (grub_get_datetime): Likewise.
10 (grub_set_datetime): Likewise.
12 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
14 * grub-core/script/yylex.l: Ignore unused-function and sign-compare
17 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
19 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Add missing byteswap.
21 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
23 * grub-core/fs/xfs.c (grub_xfs_read_block): Make keys a const pointer.
25 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
27 * Makefile.am (EXTRA_DIST): Add linguas.sh. It's only strictly
28 required for checkouts from bzr, but it may be useful for users or
29 distributors wishing to update translations against a tarball
30 distribution, and it can be helpful for the tarball to be a superset
33 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
35 * Makefile.am (EXTRA_DIST): Add
36 grub-core/tests/boot/linux.init-mips.S,
37 grub-core/tests/boot/linux.init-ppc.S, and
38 grub-core/tests/boot/linux-ppc.cfg.
40 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
42 * grub-core/mmap/mips/loongson: Remove empty directory.
44 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
46 * docs/man/grub-mkdevicemap.h2m: Remove, since grub-mkdevicemap is
49 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
51 * .bzrignore: Add grub-bios-setup, grub-ofpathname, and
54 2012-08-05 Grégoire Sutre <gregoire.sutre@gmail.com>
56 * configure.ac: Strengthen the test for working -nostdinc -isystem.
58 2012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
60 * po/POTFILES.in: Regenerated.
62 2012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
64 * docs/grub.texi: Note that NetBSD/i386 is Multiboot-compliant.
65 (NetBSD): New subsection.
67 2012-07-22 Ales Nesrsta <starous@volny.cz>
69 * grub-core/bus/usb/ehci.c: PCI iter. - added PCI bus master setting.
70 * grub-core/bus/usb/ohci.c: PCI iter. - added PCI bus master setting.
72 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
74 * util/grub-mkconfig_lib.in (grub_quote): Remove extra layer of escape.
75 * util/grub.d/10_hurd.in: Add missing quoting.
76 * util/grub.d/10_illumos.in: Likewise.
77 * util/grub.d/10_kfreebsd.in: Likewise.
78 * util/grub.d/10_linux.in: Likewise.
79 * util/grub.d/20_linux_xen.in: Likewise.
81 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
85 * grub-core/Makefile.core.def (lsefi): New module.
86 * grub-core/commands/efi/lsefi.c: New file.
87 * include/grub/efi/api.h: Add more GUIDs.
89 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
91 * grub-core/loader/i386/bsd.c (grub_bsd_elf32_size_hook): Fix mask.
92 (grub_bsd_elf32_hook): Likewise.
93 (grub_bsd_elf64_size_hook): Likewise.
94 (grub_bsd_elf64_hook): Likewise.
95 (grub_bsd_load_elf): Likewise.
97 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
99 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Fix behaviour
100 if hash function is unavailable.
101 (dec_stream_header): Likewise.
103 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
105 * grub-core/normal/autofs.c (autoload_fs_module): Save and restore
108 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
110 Fix coreboot compilation.
112 * grub-core/term/i386/pc/vga_text.c (grub_vga_text_init): Rename to ...
113 (grub_vga_text_init_real): ... this.
114 (grub_vga_text_fini): Rename to ...
115 (grub_vga_text_fini_real): ... this.
117 2012-07-07 Vladimir Serbinenko <phcoder@gmail.com>
119 * grub-core/Makefile.am: Fix path to boot/i386/pc/startup_raw.S.
121 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
123 * grub-core/lib/legacy_parse.c: Support clear and testload.
125 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
127 * grub-core/term/efi/serial.c: Support 1.5 stop bits.
129 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
131 * grub-core/fs/ext2.c: Experimental support for 64-bit.
133 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
135 * grub-core/net/tftp.c (ack): Fix endianness problem.
136 (tftp_receive): Likewise.
137 Reported by: Michael Davidsaver.
139 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
141 * gentpl.py: Make mans depend on grub-mkconfig_lib.
143 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
145 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE): New macro.
146 * include/grub/command.h (FOR_COMMANDS_SAFE): Likewise.
147 * grub-core/commands/help.c (grub_cmd_help): Use FOR_COMMANDS_SAFE.
149 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
151 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Don't decrease
153 Reported by: Stuart Hayes.
155 2012-06-28 Vladimir Serbinenko <phcoder@gmail.com>
157 Add monochrome text support (mda_text, aka `hercules' in grub-legacy).
159 * grub-core/Makefile.core.def (mda_text): New module.
160 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Support `hercules'.
161 * grub-core/term/i386/vga_common.c (grub_console_cur_color): Moved to ..
162 * grub-core/term/i386/pc/vga_text.c (cur_color): ... here
163 * grub-core/term/i386/pc/console.c (grub_console_cur_color): ... and
165 * grub-core/term/i386/vga_common.c (grub_console_getwh): Moved to ..
166 * grub-core/term/i386/pc/vga_text.c (grub_console_getwh): ... here
167 * grub-core/term/i386/pc/console.c (grub_console_getwh): ... and
169 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate): Moved
171 * grub-core/term/i386/pc/vga_text.c (grub_console_setcolorstate):
173 * grub-core/term/i386/pc/console.c (grub_console_setcolorstate): ... and
175 * grub-core/term/i386/vga_common.c: Removed.
176 * include/grub/i386/vga_common.h: Likewise.
177 * include/grub/vga.h (grub_vga_cr_bw_write): New function.
178 (grub_vga_cr_bw_read): Likewise.
179 * include/grub/vgaregs.h (GRUB_VGA_IO_CR_BW_INDEX): New enum value.
180 (GRUB_VGA_IO_CR_BW_DATA): Likewise.
181 * grub-core/term/i386/pc/vga_text.c [MODE_MDA]: Call
182 grub_vga_cr_bw_read/grub_vga_cr_bw_write instead of
183 grub_vga_cr_read/grub_vga_cr_write.
184 (grub_vga_text_setcolorstate) [MODE_MDA]: Ignore color.
186 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
188 * configure.ac: Bump version to 2.00.
189 * grub-core/normal/main.c (features): Add feature_200_final.
191 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
192 2012-06-27 Jordan Uggla <jordan.uggla@gmail.com>
194 * NEWS: Fix unclarity and language mistakes.
196 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
198 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Increase
199 additional size to 3 pages.
200 Reported by: Stuart Hayes.
202 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
204 * NEWS: Add 2.00 entry.
206 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
208 * grub-core/commands/wildcard.c (check_file): Fix bad logic.
209 put explicit "/" for empty path.
210 (wildcard_expand): Improve dprintf.
212 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
214 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Don't free oldnode if
215 it's equal to currnode. This can happen with "" symlink.
217 2012-06-27 Yves Blusseau <blusseau@zetam.org>
219 * util/grub-mkconfig_lib.in: Fix print messages replacing builtin
220 echo shell command by printf command.
222 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
224 * grub-core/term/arc/console.c (grub_console_init_output): Add one since
225 the value returned by firmware is the maximal position, not diumension.
226 (grub_terminfo_output_state): Use a more sane fallback.
228 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
230 * grub-core/term/terminfo.c (print_terminfo): Print terminal dimensions.
232 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
234 * grub-core/kern/mips/arc/init.c (grub_machine_init): Set clock
235 frequency to 150 MHz.
237 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
241 * grub-core/lib/i386/relocator16.S: Use correct __APPLE__ and not
243 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Fix gdtdesc
245 * grub-core/lib/i386/relocator64.S [__APPLE__]: Assemble jmp manually.
247 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
249 Handle slash in HFS label.
251 * grub-core/fs/hfs.c (macroman_to_utf8): New argument slash_translate.
252 (grub_hfs_dir): Tanslate slash.
253 (grub_hfs_label): Don't translate slash.
255 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
257 * grub-core/commands/ls.c (grub_ls_list_devices): Disable
258 network protocol listing since it introduces problematic dependency on
261 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
263 * util/grub-mkimage.c (generate_image): Add Yeeloong verified hash.
265 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
267 Init video early on yeeloong to avoid being rebooted by watchdog.
269 * grub-core/Makefile.am (gensm712): New target.
270 (sm712_start.S): Likewise.
271 (boot/mips/loongson/fwstart.S): Depend on sm712_start.S
272 * grub-core/boot/mips/loongson/fwstart.S [!FULOONG2F]: Init SM712.
273 * grub-core/video/sm712.c [GENINIT]: Generate compact init procedure
275 * include/grub/vga.h: Move registry definitions to...
276 * include/grub/vgaregs.h: ... here.
278 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
280 * grub-core/boot/decompressor/minilib.c (grub_memcmp): Fix the compare
283 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
285 * util/grub-install.in: Fix dvhtool invocation. Add arc to the list of
286 platforms with firmware disk drivers in the core.
288 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
290 * grub-core/disk/diskfilter.c (scan_disk) [GRUB_UTIL]: Put more
291 informative verbose message.
292 (read_lv): Handle 64-bit segment size.
294 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
296 * grub-core/disk/lvm.c (grub_lvm_getvalue): Handle 64-bit values.
298 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
300 * grub-core/fs/fat.c (grub_fat_iterate_dir_next): Don't stop on a space
301 character but still remove trainling spaces.
302 (grub_fat_label): Ignore archive flag.
304 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
306 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Avoid unnecessarry
307 cast between linux_kernel_header and linux_kernel_params.
309 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
311 * include/grub/diskfilter.h (grub_raid5_recover_func_t): Use proper
313 (grub_raid6_recover_func_t): Likewise.
314 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Likewise.
315 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
317 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
319 * util/grub-mkimage.c (generate_image): Add Fuloong2F verified hash.
321 2012-06-25 Grégoire Sutre <gregoire.sutre@gmail.com>
325 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size)
326 [__NetBSD__]: Add explicit cast before bitshift.
328 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
330 * configure.ac: Bump to 2.00~rc1.
332 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
334 * grub-core/boot/mips/loongson/fwstart.S: Add missing setting of high
337 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
338 2012-06-23 Jordan Uggla <jordan.uggla@gmail.com>
340 * docs/grub.texi: Fix search syntax.
341 (Multi-boot manual config): Put msdos rather than GPT example.
344 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
346 * docs/grub.texi (Multi-boot manual config): Use --set. Improve remark.
348 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
350 * grub-core/kern/mm.c (grub_free): Fix agglomerating of free regions.
352 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
354 * grub-core/kern/mm.c (get_header_from_pointer): Put a more informative
355 message on double free. Put the value of magic in case of mismatch.
357 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
359 Speed-up video on yeeloong.
361 * grub-core/video/sm712.c (framebuffer): Remove render_target and
363 (grub_video_sm712_video_fini): Unmap cached_ptr.
364 (grub_video_sm712_setup): Use cache address and grub_video_fb_setup.
365 (grub_video_sm712_set_active_render_target): Removed.
366 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
367 (grub_video_sm712_swap_buffers): Call grub_video_fb_swap_buffers and
370 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
372 Avoid flushing the same line multiple times on loongson.
374 * grub-core/kern/mips/cache.S [GRUB_MACHINE_MIPS_LOONGSON]:
375 Step in 32 bytes and not 1 byte.
376 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]:
379 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
381 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle btrfs
384 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
386 Implement flow control for http.
388 * grub-core/net/http.c (parse_line): Handle response 206.
389 (http_receive): Stall if too many packets are in the queue.
390 (http_establish): Fix range header.
391 (http_seek): Fix double free.
392 (http_close): Likewise.
393 (http_packets_pulled): New function.
394 (grub_http_protocol): Set http_seek
395 * grub-core/net/tcp.c (grub_net_tcp_socket): New field `i_stall'.
396 (ack_real): Set window depending on i_stall.
397 (grub_net_send_tcp_packet): Likewise.
398 (grub_net_tcp_stall): New function.
399 (grub_net_tcp_unstall): Likewise.
400 * include/grub/net/tcp.h (grub_net_tcp_stall): New proto.
401 (grub_net_tcp_unstall): Likewise.
403 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
405 * grub-core/net/tftp.c: Decrease stall to 50 packets.
407 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
409 * grub-core/net/net.c (grub_net_fs_open): Free resources on failed open.
411 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
413 * tests/util/grub-shell.in: Fix a typo.
415 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
417 Implement flow control for tftp.
419 * grub-core/net/net.c (receive_packets): Decrease the stop to 10
420 packets but stop only if stop condition is satisfied.
421 (grub_net_fs_read_real): Call packets_pulled after real read. Use
422 `stall' instead of `eof' as stop condition.
423 * grub-core/net/http.c (parse_line): Set `stall' on EOF.
424 (http_err): Likewise.
425 * grub-core/net/tftp.c (ack): Replace the first argument with data
427 (tftp_receive): Stall if too many packets are in wait queue.
428 (tftp_packets_pulled): New function.
429 (grub_tftp_protocol): Set packets_pulled.
430 * include/grub/net.h (grub_net_packets): New field count.
431 (grub_net_put_packet): Increment count.
432 (grub_net_remove_packet): Likewise.
433 (grub_net_app_protocol): New field `packets_pulled'.
434 (grub_net): New field `stall'.
436 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
438 * grub-core/net/net.c (receive_packets): Stop after 100 packets to let
439 sync part to handle them.
441 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
443 * grub-core/kern/main.c (grub_set_prefix_and_root): Fix memory leak.
444 * grub-core/net/drivers/ieee1275/ofnet.c
445 (grub_ieee1275_net_config_real): Likewise.
447 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
449 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Don't create
450 the direct route for server/gateway.
452 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
454 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Prefer
455 IP address to server name since we may not hame the DNS.
457 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
459 * grub-core/net/dns.c (grub_cmd_nslookup): Init addresses to 0 to avoid
460 freeing random buffer on failure.
461 * grub-core/net/net.c (grub_net_resolve_address): Likewise.
463 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
465 * grub-core/net/bootp.c (grub_cmd_bootp): Fix packet allocation size.
467 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
469 * grub-core/net/drivers/emu/emunet.c (get_card_packet): Allocate the
471 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Likewise.
472 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Likewise.
473 Handle malloc error correctly.
475 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
477 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
480 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
482 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix double
485 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
487 * grub-core/net/dns.c (grub_cmd_nslookup): Use configured DNS servers if
488 none is explicitly specified.
490 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
492 * grub-core/net/dns.c (grub_net_add_dns_server): Don't erase old servers
495 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
497 Respect netmask from bootp/dhcp.
499 * grub-core/net/bootp.c (parse_dhcp_vendor): Parse mask.
500 (grub_net_configure_by_dhcp_ack): Use mask and grub_net_add_ipv4_local.
501 * grub-core/net/net.c (grub_net_add_addr): Split creating local route
503 (grub_net_add_ipv4_local): ... this.
504 (grub_cmd_addaddr): Use grub_net_add_ipv4_local.
505 * include/grub/net.h (GRUB_NET_BOOTP_NETMASK): New enum value.
506 (grub_net_add_ipv4_local): New proto.
508 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
510 * grub-core/loader/i386/linux.c (grub_linux_boot): Setup video before
511 determining EFI memory map size.
513 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
515 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Escape commas.
517 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
519 * grub-core/kern/main.c (grub_set_prefix_and_root): Skip escaped commas
520 when looking for partition separator.
522 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
524 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
527 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
529 Restructure FAT driver to avoid hook in label reading as it hits a
532 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_EOF.
533 * grub-core/fs/fat.c (grub_fat_iterate_context): New struct.
534 (grub_fat_iterate_dir): Split into ...
535 (grub_fat_iterate_init): ... this, ...
536 (grub_fat_iterate_fini): ... this, ...
537 (grub_fat_iterate_dir_next): ... and this. All users updated.
539 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
541 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
542 GRUB_IEEE1275_FLAG_BROKEN_REPEAT.
543 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
544 GRUB_IEEE1275_FLAG_BROKEN_REPEAT on PowerBook3,3.
545 * include/grub/terminfo.h (grub_terminfo_input_state) [__powerpc__]:
546 New fields last_key and last_key_time.
547 * grub-core/term/terminfo.c (grub_terminfo_getkey): Transform
548 extended key-esc into extended key-extended key.
550 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
552 Avoid unnecessary memcpy of whole video buffer.
554 * grub-core/video/fb/video_fb.c (dirty): New struct.
555 (framebuffer): Add members current_dirty and previous_dirty.
556 (dirty): New function.
557 (grub_video_fb_fill_rect): Update dirty.
558 (common_blitter): Likewise.
559 (grub_video_fb_scroll): Likewise.
560 (doublebuf_blit_update_screen): Copy only dirty part.
561 (doublebuf_pageflipping_update_screen): Likewise.
562 (grub_video_fb_doublebuf_blit_init): Init dirty.
563 (doublebuf_pageflipping_init): Likewise.
564 (grub_video_fb_setup): Likewise.
566 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
568 * grub-core/net/drivers/ieee1275/ofnet.c (search_net_devices): Decrease
571 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
573 Fix wildcard regexp dot and other special characters handling.
574 Reported by: Robert Mabee.
576 * grub-core/commands/wildcard.c (isregexop): Add "|+{}[]?".
577 (make_regex): Escape "|+{}[]". Transform '?' to '.?'.
578 (split_path): Trigger expansion on '?'.
579 (unescape): New function.
580 (wildcard_expand): Unescape parts copied without globbing.
581 * grub-core/script/execute.c (wildcard_escape): Escape '?'.
582 (grub_script_arglist_to_argv): Don't unescape expansions.
584 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
586 * include/grub/net.h (grub_net_card): New member txbufsize.
587 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum values
588 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
589 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN.
590 * grub-core/net/drivers/efi/efinet.c (grub_efinet_findcards): Use
592 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Use
593 compatible property to check for macs. Set
594 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
595 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN on macs.
596 * grub-core/net/drivers/ieee1275/ofnet.c (card_open): Don't add suffix
597 if GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX is set.
598 (send_card_buffer): Use txbuf.
599 (grub_ofnet_findcards): Allocate txbuf. Simplify code flow and move
600 nested function out of the parent while on it.
602 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
604 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Fix packet
606 (grub_ieee1275_net_config_real): Fix config pointer.
608 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
610 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Extend
611 filename parsing to non-block devices.
613 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
615 * grub-core/kern/device.c (grub_device_open): Remove dead code.
617 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
619 * include/grub/elf.h: Rename R_PPC to GRUB_R_PPC to avoid collisions.
622 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
624 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Generate
625 UUID search command even if hints probing failed.
627 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
629 * po/POTFILES.in: Regenerated.
631 2012-06-17 Vladimir Serbinenko <phcoder@gmail.com>
633 Speed-up video on fuloong.
635 * grub-core/bus/bonito.c (grub_pci_device_map_range_cached):
637 (grub_pci_device_unmap_range): Handle non-cached address.
638 * grub-core/video/sis315pro.c (framebuffer): Remove render_target and
640 (grub_video_sis315pro_video_fini): Unmap direct_ptr.
641 (grub_video_sis315pro_setup): Use cache address and grub_video_fb_setup.
642 (grub_video_sis315pro_set_active_render_target): Removed.
643 (grub_video_sis315pro_get_info_and_fini): Use uncached address.
644 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
645 (grub_video_sis315pro_swap_buffers): Call grub_video_fb_swap_buffers and
647 * include/grub/mips/loongson/pci.h (grub_pci_device_map_range_cached):
650 2012-06-16 Vladimir Serbinenko <phcoder@gmail.com>
652 * docs/grub.texi (Multi-boot manual config): New section.
654 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
656 Avoid slow read-back from VRAM.
658 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
660 * grub-core/video/fb/video_fb.c
661 (grub_video_fb_doublebuf_update_screen_t): ... here. Remove arguments.
662 * grub-core/video/fb/video_fb.c (framebuf_t): New type.
663 (front_target): Remove front_target. Add pages.
664 (grub_video_fb_init): Skip setting front_pages.
665 (grub_video_fb_fini): Likewise.
666 (doublebuf_blit_update_screen): Use pages.
667 (grub_video_fb_doublebuf_blit_init): Likewise.
668 (doublebuf_pageflipping_init): Allocate offscreen buffer.
669 (doublebuf_pageflipping_update_screen): Use offscreen buffer.
670 (grub_video_fb_setup): Prefer doublebuffing.
672 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
674 * grub-core/normal/main.c (GRUB_MOD_INIT): Ignore errors when loading
677 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
681 * tests/util/grub-shell.in: Handle loongson.
682 * tests/partmap_test.in: Add loongson to the list of platform using ATA
684 * grub-core/tests/boot/linux.init-mips.S (SHUTDOWN_MAGIC3) [REBOOT]:
685 Reboot instead of shutdown if REBOOT is defined.
687 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
689 * grub-core/lib/mips/loongson/reboot.c (grub_reboot): Use 32-bit
690 sized ports since unlike on real hardware qemu supports only 32-bit
693 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
695 * Makefile.util.def (grub-mkrescue): Enable on loongson.
696 * util/grub-mkrescue.in: Handle loongson.
698 2012-06-14 Vladimir Serbinenko <phcoder@gmail.com>
700 * util/getroot.c (convert_system_partition_to_system_disk) [__APPLE__]:
701 Set is_part appropriately.
702 (grub_util_biosdisk_get_grub_dev): Use is_part rather than comparing
703 names. Canonicalize partition without full disk.
705 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
707 Revert usb-quiesce since it's wrong.
709 * grub-core/disk/ieee1275/ofdisk.c (quiesce): Removed.
710 (grub_ofdisk_init): Don't do quiesce.
712 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
714 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Apply
715 PowerMac workaround to Xserves as well.
716 Information supplied by: Benjamin Herrenschmidt.
718 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
720 Don't assume that beginning address is also the entry point on ppc.
722 * grub-core/loader/powerpc/ieee1275/linux.c (linux_entry): New variable.
723 (grub_linux_boot): Use linux_entry.
724 (grub_linux_load32): Fill linux_entry. Fix setting linux_addr.
725 (grub_linux_load64): Likewise.
727 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
729 * util/grub-install.in: Fix cross-disk check on non-PreP machines.
731 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
733 * grub-core/term/ieee1275/console.c (grub_console_fini): Don't
734 needlessly lose the console.
736 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
738 * grub-core/normal/dyncmd.c (read_command_list): Don't access freed
741 2012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
743 Remove non-functional EFI grub_get_rtc. Put a better fatal message
744 than current grub_get_rtc() not implemented when booted with
745 coreboot without TSC.
747 * grub-core/Makefile.am: Exclude efi/time.h from kernel headers.
748 Add machine/time.h to kernel headers on loongson.
749 * grub-core/Makefile.core.def (kernel): Remove
750 kern/generic/rtc_get_time_ms.c on qemu-multiboot-coreboot.
751 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms): Removed.
752 (grub_get_rtc): Likewise.
753 * grub-core/kern/generic/rtc_get_time_ms.c: Include grub/machine/time.h.
754 * grub-core/kern/i386/coreboot/init.c (grub_get_rtc): Removed.
755 * grub-core/kern/i386/pc/init.c: Include grub/machine/init.h.
756 * grub-core/kern/i386/tsc.c (grub_tsc_init)
757 [!GRUB_MACHINE_PCBIOS && !GRUB_MACHINE_IEEE1275]: Call grub_fatal
758 rather than installing known non-working time source.
759 * grub-core/kern/ieee1275/init.c (grub_get_rtc): Removed.
760 * grub-core/kern/mips/loongson/init.c: Include grub/machine/time.h.
761 * include/grub/time.h: Don't include machine/time.h.
762 * include/grub/efi/time.h: Removed.
763 * include/grub/i386/efi/time.h: Likewise.
764 * include/grub/i386/ieee1275/time.h: Likewise.
765 * include/grub/powerpc/ieee1275/time.h: Likewise.
766 * include/grub/sparc64/ieee1275/time.h: Likewise.
767 * include/grub/x86_64/efi/time.h: Likewise.
769 2012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
771 Remove dot on i and j when combining with above diacritics.
773 * include/grub/unicode.h (GRUB_UNICODE_DOTLESS_LOWERCASE_I): New enum
775 (GRUB_UNICODE_DOTLESS_LOWERCASE_J): Likewise.
776 * grub-core/font/font.c (grub_font_construct_dry_run): Replace i and j
777 with dotless variants when any combining above is present.
779 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
781 * tests/grub_script_expansion.in: Explicitly tell grep that we handle
784 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
786 Stop polling as soon as we have the packet we were waiting for.
788 * include/grub/net.h (grub_net_poll_cards): New argument stop_condition.
790 * grub-core/net/arp.c (have_pending): New var.
791 (pending_req): Likewise.
792 (grub_net_arp_send_request): Fill pending_req and use have_pending as
794 (grub_net_arp_receive): Set have_pending.
795 * grub-core/net/dns.c (recv_data): New field stop.
796 (recv_hook): Set stop.
797 (grub_net_dns_lookup): Init stop and use as stop condition.
798 * grub-core/net/http.c (http_establish): Use headers_recv as stop
800 * grub-core/net/net.c (grub_net_poll_cards): New argument
801 stop_condition. Stop when it goes true.
802 * grub-core/net/tcp.c (grub_net_tcp_open): Use `established' as stop
804 * grub-core/net/tftp.c (tftp_open): Use `have_oack' as stop indicator.
806 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
808 Keep TX and RX buffers on EFI rather than always allocate new ones.
810 * include/grub/net.h (grub_net_card_driver): Allow driver to modify
811 card. All users updated.
812 (grub_net_card): New members txbuf, rcvbuf, rcvbufsize and txbusy.
813 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Reuse buffer.
814 (get_card_packet): Likewise.
815 (grub_efinet_findcards): Init new fields.
817 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
819 * grub-core/term/ieee1275/serial.c (do_real_config): Fix cast to fix
820 compilation error on sparc64.
822 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
824 Use ITC on IA64 rather than broken routine based on daytime.
826 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms) [__ia64__]: Remove on
828 (grub_get_rtc) [__ia64__]: Likewise.
829 * grub-core/kern/ia64/efi/init.c (divisor): New variable.
830 (get_itc): New function.
831 (grub_rtc_get_time_ms): Likewise.
832 (grub_machine_init): Calibrate ITC.
833 * include/grub/efi/time.h (grub_get_rtc), (GRUB_TICKS_PER_SECOND):
834 Keep only on non-ia64. Don't export since it's broken and used only
835 if TSC is unavailable.
837 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
839 * grub-core/disk/efi/efidisk.c (find_parent_device): Return the parent
841 (name_devices): Replace #if 0 with #ifdef DEBUG_NAMES.
842 Skip if parent is unused.
844 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
846 * tests/partmap_test.in: Skip on ppc due to serious firmware bug.
848 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
850 Fix wildcard escaping.
852 * grub-core/commands/wildcard.c (wildcard_escape): Moved from here ...
853 * grub-core/script/execute.c (wildcard_escape): .. to here.
855 * grub-core/commands/wildcard.c (wildcard_unescape): Moved from here ...
856 * grub-core/script/execute.c (wildcard_unescape): .. to here.
858 * grub-core/script/execute.c (gettext_append): Always escape.
859 (grub_script_arglist_to_argv): Always handle escaping/unescaping.
860 * grub-core/script/yylex.l: Don't cut away the escaping.
861 * tests/grub_script_echo1.in: Add tests with wildcard.
863 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
865 * grub-core/bus/usb/serial/ftdi.c (real_config): Handle 1.5 stop bits.
866 (ftdi_hw_configure): Likewise.
867 * grub-core/bus/usb/serial/pl2303.c (GRUB_PL2303_STOP_BITS_1_5): New
869 (real_config): Handle 1.5 stop bits.
870 (pl2303_hw_configure): Likewise.
872 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
874 * Makefile.am: Add ppc linux bootcheck.
875 * grub-core/tests/boot/linux-ppc.cfg: New file.
876 * grub-core/tests/boot/linux.init-ppc.S: Likewise.
878 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
880 * tests/grub_script_expansion.in: Skip network protocols.
882 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
884 * tests/util/grub-shell.in: Use escc-ch-a port on ppc.
886 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
888 * util/powerpc/ieee1275/grub-mkrescue.in: Handle (and ignore)
892 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
894 ESCC serial driver for conducting sautomated tests in qemu.
895 Not tested on real hardware.
897 * include/grub/serial.h (grub_serial_port): New field escc_desc.
898 * grub-core/term/ieee1275/escc.c: New file.
899 * grub-core/Makefile.core.def (escc): New module.
901 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
903 * grub-core/term/ieee1275/serial.c (do_real_config): Set handle to
905 (serial_hw_fetch): Don't read invalid handle.
906 (serial_hw_put): Don't write into invalid handle.
908 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
910 Add a 1.5 stop bits value.
912 * grub-core/term/serial.c (grub_cmd_serial): Handle 1.5.
913 * include/grub/serial.h (grub_serial_stop_bits_t): Add
914 GRUB_SERIAL_STOP_BITS_1_5.
916 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
918 * grub-core/commands/wildcard.c (wildcard_expand): Set default return
919 value rather than let it uninited.
921 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
923 * grub-core/commands/wildcard.c (+check_file): New function.
924 (wildcard_expand): Don't expand to non-existing files, expand with
925 suffix and not attempt to expand if not needed.
927 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
929 * grub-core/disk/efi/efidisk.c (name_devices): Don't make disks
930 out of partitions containing other partitions.
932 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
934 Pass PCIINFO on BIOS to OpenBSD since otherwise it fails to boot
935 on some qemu versions with GRUB.
937 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_PCIBIOS): New
939 (grub_openbsd_bootarg_pcibios): New struct.
940 * grub-core/loader/i386/bsd.c (grub_openbsd_boot) [GRUB_MACHINE_PCBIOS]:
943 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
945 * tests/util/grub-shell.in: Trim firmware output on EFI.
947 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
949 * grub-core/Makefile.core.def (vga_text): Disable on muliboot
950 and coreboot since it's already in kernel.
952 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
954 * util/getroot.c (grub_util_get_dm_node_linear_info): Moved from here...
955 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
956 to here. New return value start. All users updated.
957 Recursively scan linear mappings.
958 * include/grub/emu/hostdisk.h (grub_util_get_dm_node_linear_info): New
960 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
961 Use grub_util_get_dm_node_linear_info.
962 * util/getroot.c (convert_system_partition_to_system_disk): Use
963 grub_util_info rather than grub_dprintf.
964 (grub_util_biosdisk_get_grub_dev): Add a new grub_util_info.
966 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
968 Move handling of GRUB_QEMU_OPTS to grub-shell so that make check works.
970 * Makefile.am: Remove GRUB_QEMU_OPTS handling.
971 * tests/util/grub-shell.in: Add GRUB_QEMU_OPTS handling.
973 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
975 * include/grub/types.h (grub_set_unaligned64): New function.
976 * util/grub-setup.c (write_rootdev): Use unaligned access functions.
979 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
981 * grub-core/disk/ieee1275/ofdisk.c (quiesce): New function.
982 (grub_ofdisk_fini): Quiesce USB devices.
984 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
986 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_boot): Sync
989 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
991 * util/grub-fstest.c (cmd_crc): Use grub_get_unaligned32 for safety.
993 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
995 * grub-core/disk/pata.c (grub_pata_pio_read)
996 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't byteswap even on mipseb.
997 (grub_pata_pio_write) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
999 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
1001 Extend automated tests to qemu-mips.
1003 * Makefile.am: reorganise tests and enable qemu-mips.
1004 * configure.ac (COND_mipseb), (COND_mipsel): New conditions.
1005 * grub-core/tests/boot/linux.init-mips.S: New file.
1006 * tests/partmap_test.in: Handle ata0 disks.
1007 * tests/util/grub-shell.in: Handle qemu-mips. Make defaults work on
1010 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
1012 * Makefile.util.def (grub-mkrescue) Anable on mips_qemu_mips and
1014 * util/grub-mkrescue.in: Handle qemu-mips and ia64. Add missing
1017 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
1019 * grub-core/kern/mips/qemu_mips/init.c (grub_exit): Implement.
1020 (grub_halt): Likewise.
1021 * grub-core/lib/mips/qemu_mips/reboot.c (grub_reboot): Likewise.
1023 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
1025 * grub-core/term/serial.c (grub_serial_register)
1026 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't autostart console in order to bring
1027 the behaviour in line with x86 platforms.
1029 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
1031 * grub-core/commands/hdparm.c (le16_to_char): Always byte-swap strings.
1032 (grub_ata_strncpy): Likewise.
1033 (grub_ata_identify): Add missing byteswaps.
1035 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
1037 * grub-core/term/i386/pc/vga_text.c (screen_write_char): Add missing
1039 (screen_read_char): Likewise.
1040 (grub_vga_text_cls): Likewise.
1042 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
1044 * grub-core/loader/efi/chainloader.c (copy_file_path): Handle non-ASCII
1046 (make_file_path): Likewise.
1048 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
1050 * grub-core/disk/ieee1275/ofdisk.c (scan): Support vscsi on IBM
1052 Tested by: Paulo Flabiano Smorigo.
1053 Crucial information about API supplied by: Coleen <Last name unknown>.
1054 Reviewed by: Coleen <Last name unknown>.
1056 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
1058 * util/grub-mkimage.c: Disable -Wcast-align.
1060 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
1062 * grub-core/genmod.sh.in: Enable objconv errors 2030, 2050 and 2031
1065 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
1067 * grub-core/Makefile.am (rs_decoder.S): Add missing -ffreestanding.
1069 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
1071 * util/grub-probe.c (escape_of_path): Fix double free.
1073 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
1075 * grub-core/commands/videoinfo.c (hook): Show pitch.
1077 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
1079 * util/grub.d/20_linux_xen.in: Skip xen-syms.
1081 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
1083 * util/grub-probe.c (escape_of_path): Don't add ieee1275/.
1084 (probe): Add ieee1275 to OFW devices.
1086 2012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
1088 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix wrong format specifier.
1090 2012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
1092 Handle IBM OFW path.
1094 * util/ieee1275/ofpath.c (find_obppath): Use devspec if obppath isn't
1096 (of_path_of_scsi): Handle vdevice.
1098 2012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
1100 * grub-core/mmap/i386/pc/mmap.c (malloc_hook):
1101 Allocate in multiples of 16 to avoid adding a few bytes free region the
1104 2012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
1106 * grub-core/commands/i386/pc/drivemap.c (install_int13_handler):
1107 Allocate in multiples of 16 to avoid adding a few bytes free region the
1109 * grub-core/mmap/i386/pc/mmap.c (malloc_hook): Likewise.
1111 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
1113 * grub-core/video/efi_gop.c (grub_video_gop_setup): Reject invalid
1115 * grub-core/video/i386/pc/vbe.c (grub_vbe_get_preferred_mode): Likewise.
1116 * grub-core/video/video.c (grub_video_edid_preferred_mode): Likewise.
1118 2012-06-02 Isao Shimizu <isaoshimizu@gmail.com>
1120 * util/ieee1275/ofpath.c (check_sas): Fix sas path.
1122 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
1124 * grub-core/normal/menu_entry.c (print_line): Fix off-by-one error which
1125 resulted in \\ at the end of the line.
1127 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
1129 * grub-core/kern/parser.c (grub_parser_state_transitions): Handle \t.
1130 (grub_parser_cmdline_state): Likewise.
1131 (grub_parser_split_cmdline): Likewise.
1133 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
1135 * util/getroot.c (grub_guess_root_devices): Don't canonicalise
1136 /dev/root and /dev/dm-*.
1138 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
1140 * grub-core/normal/menu_entry.c (update_screen): Fix loop condition to
1141 fix partially stale display.
1143 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
1145 * grub-core/normal/menu_entry.c (backward_char): Use right line for
1148 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
1150 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write) [__linux__]:
1151 Fix MBR remapping workaround.
1152 (grub_util_biosdisk_read) [__linux__]: Likewise.
1154 2012-06-01 Vladimir Serbinenko <phcoder@gmail.com>
1156 * util/grub-install.in: Check for ieee1275 and not ieee1276.
1158 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
1160 * configure.ac: Bump to beta6.
1162 2012-05-31 Christer Weinigel <christer@weinigel.se>
1164 * grub-core/normal/main.c (grub_file_getline): Fix off-by-one error.
1166 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
1168 * grub-core/loader/i386/linux.c (grub_linux_boot): Use right version.
1169 (grub_cmd_linux): Likewise.
1171 2012-05-31 Christer Weinigel <christer@weinigel.se>
1175 * grub-core/bus/usb/ehci.c (GRUB_EHCI_MULT_ONE): Fix the value.
1176 (GRUB_EHCI_MULT_TWO): Likewise.
1177 (GRUB_EHCI_MULT_THREE): Likewise.
1178 (GRUB_EHCI_CMASK_MASK): New enum value.
1179 (GRUB_EHCI_SMASK_MASK): Likewise.
1180 (GRUB_EHCI_CMASK_OFF): Likewise.
1181 (GRUB_EHCI_SMASK_OFF): Likewise.
1182 (grub_ehci_pci_iter): Enable periodic schedule.
1183 (grub_ehci_parse_notrun): Likewise.
1184 (grub_ehci_restore_hw): Likewise.
1185 (grub_ehci_setup_qh): Set flags for low speed transfers.
1186 (grub_ehci_find_qh): Use periodic list for low speed.
1187 (grub_ehci_setup_transfer): Check periodic queue as well.
1188 (grub_ehci_check_transfer): Likewise.
1189 (grub_ehci_cancel_transfer): Cancel periodic transfer.
1191 2012-05-31 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
1193 * util/grub-install.in: Write core.elf in PReP even if the --no-nvram
1196 2012-05-31 Peter Jones <pjones@redhat.com>
1198 * include/grub/i386/linux.h (linux_kernel_params): Add v206.
1199 * grub-core/loader/i386/linux.c (grub_linux_boot): Use v206.
1200 (grub_cmd_linux) [__x86_64__]: Validate grub_efi_system_table.
1202 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
1204 * grub-core/loader/i386/linux.c (grub_linux_boot): Fix overflow and
1205 uninited variable. Allocate at least setup_sects.
1207 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
1209 Fix handling of EFI with big memory maps.
1211 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_OFFSET): Removed.
1212 (real_mode_mem): Likewise.
1213 (real_mode_target): Likewise.
1214 (real_mode_pages): Likewise.
1215 (prot_mode_pages): Likewise.
1216 (linux_params): New var.
1217 (linux_cmdline): Likewise.
1218 (free_pages): Don't set real mode variables.
1219 (allocate_pages): Don't allocate real mode memory.
1220 (grub_e820_add_region): Remove the limit.
1221 (grub_linux_boot): Allocate and copy real mode memory.
1222 (grub_linux_unload): Free linux_cmdline.
1223 (grub_cmd_linux): Use temporary storage for parameters.
1224 (grub_cmd_initrd): Likewise.
1225 * include/grub/i386/linux.h (GRUB_E820_MAX_ENTRY): Removed.
1226 (linux_kernel_params): Make it 1K big.
1228 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
1230 * Makefile.util.def: Remove -Wno-format.
1231 * grub-core/Makefile.core.def: Likewise.
1233 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
1235 * tests/cmp_unit_test.c: Add missing failure message.
1236 * tests/example_unit_test.c: Likewise.
1237 * tests/printf_unit_test.c: Likewise.
1239 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
1241 * grub-core/commands/gptsync.c (grub_cmd_gptsync): Propagate the
1242 relaxation of protective MBR requirements.
1244 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
1246 * configure.ac: Add condition for COND_HOST_XNU.
1247 * Makefile.util.def (10_xnu): New script.
1248 * util/grub.d/10_xnu.in: New file, extracted from 30_os_prober.in.
1250 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
1252 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Add a workaround for
1255 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
1257 * grub-core/gdb/i386/machdep.S: Make usable with Apple assembler.
1258 Binary on other platforms stays identical.
1260 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
1262 * configure.ac: Remove APPLE_CC and add -Wl,-allow_stack_execute on
1265 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
1267 * gentpl.py: Ignore error 2022 in objconv since it's irrelevant for us.
1269 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
1271 * grub-core/lib/posix_wrap/sys/types.h [__APPLE__]: Include stddef
1272 rather than defining size_t ourselves to avoid conflict.
1274 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
1276 * grub-core/fs/hfs.c (grub_hfs_dir): Use memset instead of
1277 initialisation to avoid __bzero reference.
1279 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
1281 * grub-core/boot/i386/pc/startup_raw.S [__APPLE__]: Add Apple assembly
1283 * grub-core/commands/i386/pc/drivemap_int13h.S [__APPLE__]: Likewise.
1284 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Likewise.
1285 * grub-core/lib/i386/relocator16.S [__APPLE__]: Likewise.
1286 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Likewise.
1287 * grub-core/mmap/i386/pc/mmap_helper.S [__APPLE__]: Likewise.
1289 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
1291 * grub-core/efiemu/runtime/efiemu.c: Replace APPLE_CC with __APPLE__.
1292 * grub-core/kern/misc.c: Likewise.
1293 * grub-core/loader/i386/xnu.c: Likewise.
1294 * include/grub/i386/tsc.h: Likewise.
1295 * include/grub/symbol.h: Likewise.
1297 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
1299 * include/grub/list.h (grub_bad_type_cast_real): Remove return.
1300 * include/grub/misc.h (ATTRIBUTE_ERROR): Make into noreturn attribute
1303 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
1305 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__APPLE__]:
1306 Implement Apple flavour.
1307 (convert_system_partition_to_system_disk) [__APPLE__]: Likewise.
1309 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
1311 * include/grub/misc.h (memcmp) [__APPLE__]: Mark as regparm 0.
1312 (memmove) [__APPLE__]: Likewise.
1313 (memcpy) [__APPLE__]: Likewise.
1314 (memset) [__APPLE__]: Likewise.
1315 * grub-core/kern/misc.c (memcmp) [__APPLE__]: Likewise.
1316 (memmove) [__APPLE__]: Likewise.
1317 (memcpy) [__APPLE__]: Likewise.
1318 (memset) [__APPLE__]: Likewise.
1320 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
1322 * grub-core/genmod.sh.in: Fix a bug in Apple part which caused
1325 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
1327 * grub-core/normal/main.c (read_config_file): Provide config_file and
1329 * util/grub.d/41_custom.in: Use config_directoy when available.
1331 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
1333 * grub-core/fs/bfs.c (iterate_in_b_tree): Add missing NESTED_FUNC_ATTR.
1334 (grub_bfs_dir): Likewise.
1336 2012-05-27 Peter Jones <pjones@redhat.com>
1338 The old code gives arguments to a printf function which can't work
1339 correctly, and the compiler complains.
1341 * grub-core/tests/example_functional_test.c (example_test): Add
1343 * grub-core/tests/lib/test.c (add_failure): Rewrite.
1344 * include/grub/test.h (grub_test_assert_helper): New declaration.
1345 (grub_test_assert): Use grub_test_assert_helper.
1347 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
1349 * grub-core/Makefile.core.def (example_functional_test): Rename to ...
1350 (exfctest): ... this to avoid overlong filenames.
1353 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
1355 Handle "." and ".." on squashfs.
1357 * grub-core/fs/squash4.c (grub_fshelp_node): New field stsize.
1358 Make inode numbers into stack.
1359 (grub_squash_read_symlink): Use stack.
1360 (grub_squash_iterate_dir): Use stack. Create "." and ".." nodes.
1361 (make_root_node): Fill stack.
1362 (grub_squash_open): Use stack.
1364 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
1366 * grub-core/kern/emu/hostdisk.c (open_device): Set dest->dev to 0 after
1369 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
1371 * util/grub-mkconfig_lib.in (print_option_help): Properly redirect
1372 stderr on test calls.
1374 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
1376 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle "." and "..".
1378 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
1380 * grub-core/fs/ntfs.c (list_file): Set mtime to correct value.
1382 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
1384 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't skip "." and
1387 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
1389 * grub-core/fs/hfsplus.c (grub_hfsplus_catfile): New field parentid.
1390 (grub_hfsplus_iterate_dir): Add "." and "..".
1392 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
1394 * grub-core/fs/cpio.c (canonicalize): Handle "..".
1395 (grub_cpio_find_file) [MODE_USTAR]: Handle hardlinks.
1397 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
1399 * grub-core/fs/btrfs.c (GRUB_BTRFS_ITEM_TYPE_INODE_REF): New enum value.
1400 (find_path): Handle "." and "..".
1402 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
1404 * grub-core/fs/affs.c (grub_affs_file): New field hardlink.
1405 (GRUB_AFFS_FILETYPE_HARDLINK): New enum value.
1406 (grub_affs_iterate_dir): Handle hardlinks.
1408 2012-05-26 Matthew Garrett <mjg@redhat.com>
1410 * grub-core/term/efi/console.c (grub_efi_console_init): Set text mode.
1411 (grub_efi_console_fini): Likewise.
1412 * grub-core/video/efi_gop.c (framebuffer): New field offscreen.
1413 (grub_video_gop_fill_mode_info): Rename to ...
1414 (grub_video_gop_fill_real_mode_info): ... this.
1415 (grub_video_gop_fill_mode_info): New function.
1416 (grub_video_gop_setup): Setup double framebuffer.
1417 (grub_video_gop_get_info_and_fini): Use original framebuffer.
1419 (grub_video_gop_swap_buffers): Copy framebuffer.
1420 (grub_video_gop_fini): Free offscreen buffer.
1421 * include/grub/efi/graphics_output.h (grub_efi_gop_blt_operation_t):
1423 (grub_efi_gop_blt_pixel): New struct.
1425 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
1427 * gentpl.py: Remove error disabling for objconv.
1429 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
1431 * configure.ac: Remove -Wunitialized as it's not available on older
1434 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
1436 Fix extent overflow comparator.
1438 * grub-core/fs/hfsplus.c (grub_hfsplus_extkey_internal): Add type.
1439 (grub_hfsplus_read_block): Set type.
1440 (grub_hfsplus_cmp_extkey): Compare type.
1442 2012-05-25 Vladimir Serbinenko <phcoder@gmail.com>
1444 * util/grub-fstest.c (cmd_cmp): Fix stat'ing of wrong file.
1446 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
1448 * grub-core/fs/hfsplus.c (grub_hfsplus_label): Use found ptr rather
1451 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
1453 * Makefile.am (starfield_DATA): Add dejavu_bold_14.pf2.
1454 (dejavu_bold_14.pf2): New target.
1456 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
1458 * configure.ac: Fix djvu font detection.
1460 2012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
1462 * grub-core/normal/misc.c (grub_normal_print_device_info): Dsiplay
1463 ext* instead of ext2.
1465 2012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
1467 * grub-core/normal/term.c (read_terminal_list): Terminate the terminal
1470 2012-05-22 Jordan Uggla <jordan.uggla@gmail.com>
1472 * docs/grub-dev.texi: Remove dot from .png.
1474 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
1476 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Accept
1477 protective entry in any slot.
1478 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Reject
1479 if protective entry is found in any slot.
1481 Protective entry in non-first slot make no sense but is a widespread
1484 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
1486 * grub-core/fs/squash4.c (grub_squash_read_data): Add missing byte-swap.
1488 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
1490 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix size byteswap
1492 (grub_reiserfs_open): Don't free root.
1494 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
1496 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Set currnode to 0
1497 after freeing for safety.
1499 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
1501 * grub-core/commands/sleep.c (do_print): Add missing grub_refresh.
1502 Reported by: Jordan Uggla.
1504 2012-05-21 Jordan Uggla <jordan.uggla@gmail.com>
1506 * docs/grub.texi Fix documentation of GRUB_HIDDEN_TIMOUNT to match the
1507 actual implementation. Specifically, clarify that the grub menu will
1508 be displayed for GRUB_TIMOUT seconds after the hidden timeout has
1511 2012-05-21 Benjamin Herrenschmidt <benh@kernel.crashing.org>
1513 * grub-core/kern/powerpc/dl.c (trampoline_template): Use r12 instead
1516 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
1518 Remove unjustified hard dependency of normal.mod on gfxterm.
1520 * include/grub/term.h (grub_term_output): New member fullscreen.
1521 * include/grub/gfxterm.h (grub_gfxterm_fullscreen): Removed.
1522 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Make static.
1523 (grub_gfxterm): Set .fullscreen.
1524 * grub-core/normal/menu.c (menu_init): Use fullscreen.
1525 * grub-core/gfxmenu/gfxmenu.c (GRUB_MOD_INIT): Likewise.
1527 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
1529 * docs/grub.texi (Internationalisation/Filesystems): Add precisions
1530 mentioning possible problems with non-ASCII (non-compliant) ISOs.
1531 Mention case-insensitive AFFS, SFS and JFS.
1533 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
1535 * grub-core/fs/affs.c (grub_affs_mtime): Add missing grub_dl_ref.
1537 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
1539 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
1542 2012-05-18 Vladimir Serbinenko <phcoder@gmail.com>
1544 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Mark plain
1545 ISO9660 names as case-insensitive, lowercase it and remove trailing dot.
1547 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
1549 * grub-core/fs/jfs.c (grub_jfs_data): New field caseins.
1550 (grub_jfs_mount): Fill caseins.
1551 (grub_jfs_find_file): Respect caseins.
1553 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
1555 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't strrchr
1558 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
1560 * grub-core/fs/fat.c (grub_fat_find_dir): Fix error message.
1561 New argument origpath. All users updated.
1563 2012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
1565 * grub-core/fs/ntfs.c (read_data): Prevent overflow.
1566 (read_attr): Ensure that we read start of possibly compressed block.
1568 2012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
1570 * include/grub/ntfs.h (grub_ntfs_comp_table_element): New struct.
1571 (grub_ntfs_comp): Use grub_ntfs_comp_table_element for comp_table.
1574 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
1576 * Makefile.am (starfield_DATA): Replace dejavu.pf2 with dejavu_10.pf2,
1577 dejavu_12.pf2, dejavu_14.pf2 and dejavu_16.pf2.
1578 (dejavu.pf2): Replace with ...
1579 (dejavu_10.pf2), (dejavu_12.pf2), (dejavu_14.pf2), (dejavu_16.pf2):
1582 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
1584 * util/grub.d/20_linux_xen.in: Add missing line.
1586 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
1588 * include/grub/charset.h (GRUB_UTF16_UPPER_SURROGATE): Fix mask sizes.
1589 (GRUB_UTF16_LOWER_SURROGATE): Likewise.
1590 (grub_utf16_to_utf8): Likewise.
1592 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
1594 * grub-core/disk/ieee1275/ofdisk.c (scan): Don't scan device tree if
1595 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS is set.
1596 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
1597 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS on IBM hardware.
1598 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
1599 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS.
1601 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
1603 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
1606 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
1608 * grub-core/fs/udf.c (read_string): Bail out on size=0.
1609 (grub_udf_read_symlink): Handle read_string failure.
1611 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
1613 * grub-core/kern/emu/hostdisk.c (read_device_map): Improve TRANSLATORS
1616 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
1618 Fix handling of UDF symlinks.
1620 * grub-core/fs/udf.c (read_string): New argument outbuf.
1622 (grub_ufs_read_symlink): Rename to ...
1623 (grub_udf_read_symlink): ... this. All users updated.
1624 Handle symlinks with more than one component.
1626 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
1628 * grub-core/fs/affs.c (grub_affs_read_symlink): Fix handling of long
1629 symlinks. Replace leading colon with a slash.
1631 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
1633 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle multiple slashes in
1636 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
1638 * grub-core/fs/bfs.c (find_in_b_tree) [MODE_AFS]: Fix handling of exact
1639 match in inner node.
1641 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
1643 * grub-core/fs/bfs.c (mount): Improve filesystem detection reliability.
1644 * grub-core/fs/ext2.c (grub_ext2_mount): Likewise.
1645 * grub-core/fs/hfs.c (grub_hfs_mount): Likewise.
1646 * grub-core/fs/hfsplus.c (grub_hfsplus_mount): Likewise.
1647 * grub-core/fs/jfs.c (grub_jfs_mount): Likewise.
1648 * grub-core/fs/minix.c (grub_minix_mount): Likewise.
1649 * grub-core/fs/ntfs.c (grub_ntfs_mount): Likewise.
1650 * grub-core/fs/romfs.c (grub_romfs_mount): Likewise.
1651 * grub-core/fs/xfs.c (grub_xfs_mount): Likewise.
1653 2012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
1655 Use grub-probe and not cmp to check that disk is empty.
1657 * util/grub-install.in: Use grub-probe for zero-check.
1658 * util/grub-probe.c (PRINT_ZERO_CHECK): New enum value.
1659 (probe): Handle PRINT_ZERO_CHECK.
1660 (argp_parser): Handle -t zero_check.
1662 2012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
1664 Flush block cache on adding disk to device map.
1666 * grub-core/kern/emu/hostdisk.c (flush_initial_buffer): New function.
1667 (grub_hostdisk_os_dev_to_grub_drive): Call flush_initial_buffer on
1669 (read_device_map): Likewise.
1670 (open_device): Flush on opening.
1672 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
1674 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle prefix.
1675 (handle_symlink): Fix off-by-one error.
1676 Canonicalize the target.
1677 (grub_cpio_dir): Canonicalize the name.
1680 (grub_cpio_open): Canonicalize the name.
1682 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
1684 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix symlink
1687 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
1689 * grub-core/fs/ufs.c (grub_ufs_find_file): Fix handling of double slash.
1690 * grub-core/fs/minix.c (grub_minix_find_file): Likewise.
1692 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
1694 * util/grub-menulst2cfg.c (main): Check return value of fwrite.
1695 * util/grub-mklayout.c (write_file): Likewise. New argument fname.
1698 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
1700 * util/grub.d/20_linux_xen.in: Update initrd list based on 10_linux.in
1703 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
1705 Fix UFS1 big file support.
1707 * grub-core/fs/ufs.c (INODE): Removed.
1708 (INODE_SIZE): Always use 64-bit byte-swap since size field is always
1710 (INODE_MODE): Simplify.
1711 (grub_ufs_inode): Use uint64_t for size and not int64_t.
1712 (grub_ufs_lookup_symlink): Don't use INODE.
1714 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
1716 Fix minixfs with non-power-of-two blocks since it's supported by minix.
1718 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use block_size.
1719 (grub_minix_data): Replace log_block_size with block_size.
1720 (grub_minix_read_file): Use block_size but avoid 64-bit division.
1721 (grub_minix_mount): Fill block_size.
1723 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
1725 * configure.ac: Bump to beta5.
1727 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
1729 Fix wrapped HFS+ handling.
1731 * grub-core/fs/fshelp.c (grub_fshelp_read_file): New argument
1732 blocks_start. All users updated.
1733 * grub-core/fs/hfsplus.c (grub_hfsplus_read_block): Don't add
1735 (grub_hfsplus_read_file): Pass embedding offset to fshelp_read_file.
1737 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
1739 Fix long symlinks on reiserfs.
1741 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field size.
1742 (grub_reiserfs_read_symlink): Use grub_reiserfs_read_real.
1743 (grub_reiserfs_iterate_dir): Save size for non-directories.
1744 (grub_reiserfs_open): Don't reread stat block as we already know the
1746 (grub_reiserfs_read): Split into...
1747 (grub_reiserfs_read_real): ... and ...
1748 (grub_reiserfs_read): ...this.
1750 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
1752 Fix non-indexed JFS.
1754 * grub-core/fs/jfs.c (grub_jfs_sblock): New field flags.
1755 (grub_jfs_data): New field namecomponentlen.
1756 (grub_jfs_mount): Fill namecomponentlen.
1757 (grub_jfs_getent): Use namecomponentlen rather than hardcoded 11.
1759 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
1761 * grub-core/script/yylex.l: Ugly fix for "\\\n ".
1762 * tests/grub_script_echo1.in: Add tests.
1764 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
1766 * util/grub-install.in: Ignore empty devicetree directory.
1768 2012-05-08 Bean <bean123ch@gmail.com>
1770 * grub-core/net/ip.c (reassemble): Make asm_buffer into asm_netbuff.
1772 (free_rsm): Free header as well.
1773 (free_old_fragments): Fix memory leak.
1774 * grub-core/net/netbuff.c (grub_netbuff_free): Make return void.
1775 * grub-core/net/tftp.c (tftp_receive): Fix memory leak.
1776 (destroy_pq): Likewise.
1777 * include/grub/net/netbuff.h (grub_netbuff_free): Make return void.
1779 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
1781 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Align space for
1782 resulting hash as a precaution.
1784 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
1786 * grub-core/net/bootp.c (set_env_limn_ro): Replace reserved ':' with
1787 '_' in variable names.
1788 * grub-core/net/net.c (grub_net_network_level_interface_register):
1791 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
1793 Fix AFFS with non-512B blocks.
1795 * grub-core/fs/affs.c (grub_affs_rblock): Make type uint32_t.
1796 (AFFS_MAX_LOG_BLOCK_SIZE): New definition.
1797 (grub_affs_data): Replace blocksize with log_blocksize.
1798 (grub_affs_read_block): Fix non-512B blocks.
1799 (grub_affs_read_symlink): Likewise.
1800 (grub_affs_iterate_dir): Likewise. Fix freeing corruption.
1801 (grub_affs_read): Fix non-512B blocks.
1802 (grub_affs_label): Likewise.
1803 (grub_affs_mtime): Likewise.
1804 (grub_affs_mount): Fix block detection routine.
1806 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
1808 Add filesystem mtime to AFFS.
1810 * grub-core/fs/affs.c (grub_affs_file): Make type unsigned.
1811 (aftime2ctime): New function.
1812 (grub_affs_dir): Use aftime2ctime.
1813 (grub_affs_label): Fix return value.
1814 (grub_affs_mtime): New function.
1815 (grub_affs_fs): Add mtime.
1817 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
1819 * grub-core/fs/affs.c (grub_affs_read_symlink): Convert latin1 into
1822 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
1824 * grub-core/fs/sfs.c (grub_sfs_read_symlink): Convert latin1 into
1827 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
1829 * grub-core/fs/affs.c (grub_affs_iterate_dir): Mark as case insensitive.
1831 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
1833 * grub-core/fs/sfs.c (grub_sfs_rblock): New fields createtime and
1835 (FLAGS_CASE_SENSITIVE): New enum value.
1836 (cache_entry): New struct.
1837 (grub_fshelp_node): Add fields cache_off, next_extent, cache_allocated,
1838 cache_size and cache.
1839 (grub_sfs_data): Remove blocksize. All users switched to log_blocksize.
1840 Add log_blocksize and fshelp_flags.
1841 (grub_sfs_read_extent): Handle non-512 blocks.
1842 (grub_sfs_read_block): Add cаche and handle non-512 blocks.
1843 (grub_sfs_read_file): Handle non-512 blocks.
1844 (grub_sfs_mount): Handle non-512 blocks. Fill log_blocksize and
1846 (grub_sfs_read_symlink): Handle non-512 blocks.
1847 (grub_sfs_iterate_dir): Init new fields. Mark as case-insensitive.
1848 (grub_sfs_dir): Free cache.
1849 (grub_sfs_close): Likewise.
1851 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
1853 * grub-core/fs/bfs.c (read_bfs_file): Fix overflow with over 2TiB
1856 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
1858 * grub-core/fs/affs.c (grub_affs_read_block): Fix theoretical overflow.
1860 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
1862 * grub-core/commands/ls.c (grub_ls_list_files): Fix overflow.
1864 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
1866 * grub-core/fs/sfs.c (grub_fshelp_node): Fix types.
1867 (grub_sfs_read_extent): Likewise.
1868 (grub_sfs_read_block): Likewise.
1869 (grub_sfs_mount): Likewise.
1870 (grub_sfs_iterate_dir): Likewise.
1871 (grub_sfs_read_symlink): Use strncpy instead of strcpy.
1872 (grub_sfs_read): Remove unnecessarry and wrong temporary variable.
1874 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
1876 Fix errors on compressed NTFS with 512B clusters.
1878 * include/grub/ntfs.h (grub_ntfscomp_func_t): Use appropriately sized
1880 * grub-core/fs/ntfs.c (grub_ntfs_read): Return correct -1 on error and
1882 * grub-core/fs/ntfscomp.c (read_block): Use appropriately-sized types.
1883 Relax check for inline extents.
1884 (ntfscomp): Return correct -1 on error and not 0.
1886 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
1888 * util/grub-install.in: Fix handling of prefix containing spaces.
1890 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
1892 * grub-core/fs/squash4.c (grub_squash_inode): Fix offset field.
1893 (grub_squash_read_data): Fix offset byte-swapping.
1895 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
1897 * grub-core/kern/misc.c (grub_strcmp): Use unsigned comparison as
1898 per common usage and preffered in several parts of code.
1899 (grub_memcmp): Likewise.
1900 (grub_strncmp): Likewise.
1901 * include/grub/misc.h (grub_strcasecmp): Likewise.
1902 (grub_strncasecmp): Likewise.
1903 * Makefile.util.def (cmp_test): New test.
1904 (grub_script_strcmp): Likewise.
1905 * tests/cmp_unit_test.c: New file.
1906 * tests/grub_script_strcmp.in: Likewise.
1907 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Add a comment.
1909 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
1911 * include/grub/pci.h: Move enums into no-asm part.
1913 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
1915 * grub-core/fs/bfs.c (bfs_strcmp) [MODE_AFS]: Use signed comparison.
1917 2012-05-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
1919 * util/getroot.c (find_hurd_root_device): Try to make error message
1920 and comments to translators clearer.
1922 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
1924 * grub-core/commands/menuentry.c: Fix typo in TRANSLATORS comments.
1926 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
1928 * grub-core/kern/fs.c (grub_fs_probe) [GRUB_UTIL]: Add workaround for
1931 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
1933 * docs/grub.cfg: Update.
1935 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
1937 * docs/grub.texi (PXE): Remove not present variables.
1939 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
1941 * grub-core/net/net.c (defserver_set_env): New function.
1942 (defserver_get_env): Likewise.
1943 (GRUB_MOD_INIT): Register net_default_server and pxe_default_server.
1945 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
1947 * grub-core/kern/emu/hostdisk.c (read_device_map): Skip invalid Fedora
1950 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
1952 * grub-core/commands/menuentry.c: Add TRANSLATORS comments.
1953 * grub-core/kern/emu/hostdisk.c: Likewise.
1955 2012-05-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
1957 Handle hurd userspace partitions.
1959 * util/getroot.c (find_hurd_root_device): New function.
1960 (grub_guess_root_devices): Use find_hurd_root_device on Hurd.
1962 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
1964 * util/getroot.c (convert_system_partition_to_system_disk); Add etherd
1966 Reported by: Bastian Blank.
1968 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
1970 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Fix offset when
1971 crossing page boundary.
1973 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
1975 Fix B-tree search in BFS, especially in presence of non-ASCII
1978 * grub-core/fs/bfs.c (bfs_strcmp): New function.
1979 (find_in_b_tree): Use standard bsearch + btree algorithm.
1981 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
1983 * util/grub-fstest.c (cmd_cmp): Avoid comparing devices, pipes
1986 2012-05-03 Matthew Garrett <mjg@redhat.com>
1987 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
1989 Suspend broadcom cards in order to stop their DMA.
1991 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add pci.h on x86 EFI.
1992 * grub-core/Makefile.core.def (kernel): Add pci.c on x86 EFI.
1993 (pci): Don't build on x86 EFI.
1994 * grub-core/bus/pci.c (grub_pci_find_capability): New function.
1995 * grub-core/kern/efi/mm.c (stop_broadcom) [__i386__ || __x86_64__]:
1997 (grub_efi_finish_boot_services) [__i386__ || __x86_64__]: Call
1998 stop_broadcom if running on EFI.
1999 * include/grub/pci.h (GRUB_PCI_CLASS_NETWORK): New enum value.
2000 (GRUB_PCI_CAP_POWER_MANAGEMENT): Likewise.
2001 (GRUB_PCI_VENDOR_BROADCOM): Likewise.
2002 (grub_pci_find_capability): New proto.
2004 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2006 * docs/grub.texi: Remove dot from the extension as it apparently
2007 doesn't work with some makeinfo versions.
2009 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2011 * po/Makefile.in.in: Make msgfmt output in little-endian in accordance
2012 with GRUB expectance.
2014 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2016 * util/grub-fstest.c (cmd_cmp): Compare directories recursively.
2018 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2020 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Put a trailing
2021 zero after directory block since last entry may be not 0-terminated if
2022 it ends on block boundary. Use continue instead of if spanning whole
2025 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2027 Support 4K sectors UDF inline files.
2029 * grub-core/fs/udf.c (grub_udf_file_entry): Don't specify padding size.
2030 (grub_udf_extended_file_entry): Likewise.
2031 (grub_fshelp_node): Name the anonymous union. Put block at the end.
2033 (get_fshelp_size): New function.
2034 (grub_udf_read_icb): Read whole block.
2035 (grub_udf_iterate_dir): Likewise.
2036 (grub_udf_dir): Likewise.
2037 (grub_udf_open): Likewise.
2039 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2041 * grub-core/fs/ufs.c (grub_ufs_get_file_block): Support triple indirect.
2043 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2045 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Use proper check for
2046 inline symlinks in addition to workaround.
2048 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2050 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Handle read_inode errors.
2052 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2054 * grub-core/fs/xfs.c (GRUB_XFS_EXTENT_BLOCK): Fix bitmask.
2056 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2058 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Fix return value.
2060 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
2062 Fix reiserfs big seek times.
2064 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): New argument
2065 exact. All users updated.
2066 (grub_reiserfs_read): Use nearest btree search for seeking.
2067 Fix return value on error.
2069 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
2071 * grub-core/commands/legacycfg.c (legacy_file): Default to restricted
2073 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Likewise.
2074 * docs/grub.texi: Update menuentry description.
2076 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
2078 * util/grub-setup.c (setup): Remove duplicate call to embed. Fixes
2079 crash when embedding onto filesystem.
2081 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
2083 * util/getroot.c (find_root_devices_from_poolname): Handle spaces in the
2086 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
2088 * grub-core/net/ip.c (handle_dgram): Fix undeclared variable.
2090 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
2092 * grub-core/normal/autofs.c (read_fs_list): Revert accidental wrong
2095 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
2096 2012-05-01 Bean <bean123ch@gmail.com>
2098 * grub-core/net/ip.c (handle_dgram): Fix DHCP mac comparison.
2100 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
2102 * grub-core/kern/file.c (grub_file_read): Read nothing if len = 0.
2103 Special behaviour for len = 0 to read whole file isn't used anywhere and
2104 can cause buffer ovewrflows in several places.
2106 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
2108 * grub-core/normal/autofs.c (read_fs_list): Fix memory leak.
2110 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
2112 Handle RAIDZ on non-512B sectors.
2114 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member
2115 max_children_ashift.
2116 (fill_vdev_info_real): Fill max_children_ashift.
2117 (read_device): Use max_children_ashift.
2119 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
2121 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Fix memory leak.
2123 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
2125 * grub-core/kern/emu/hostdisk.c (read_device_map): Reject non-standard
2127 * docs/grub.texi: Update device.map parts.
2129 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
2131 Don't scan into non-diskfilter devices having diskfilter names.
2133 * grub-core/disk/diskfilter.c (is_valid_diskfilter_name): New function.
2134 (scan_disk): New argument accept_diskfilter. Fix recursion depth
2136 (scan_disk_hook): New function.
2138 2012-04-29 Bean <bean123ch@gmail.com>
2140 * grub-core/net/drivers/efi/efinet.c (get_card_packet): Fix buffer
2143 2012-04-29 Mads Kiilerich <mads@kiilerich.com> (tiny)
2145 * configure.ac: Detect starfield theme font path
2146 /usr/share/fonts/dejavu/DejaVuSans.ttf for Fedora.
2148 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
2150 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Use 80x24
2151 geometry on serial consoles.
2153 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
2155 * grub-core/term/terminfo.c (grub_terminfo_readkey): Increase timeout
2156 because of network consoles.
2158 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
2160 * grub-core/term/terminfo.c (grub_terminfo_getkey): Fix incorrect queue
2163 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
2165 * grub-core/disk/diskfilter.c (read_segment): Fix the case when disknr
2168 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
2170 * grub-core/fs/nilfs2.c (grub_nilfs2_palloc_entry_offset_log):
2171 Fix argument to grub_nilfs2_palloc_bitmap_block_offset.
2173 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
2175 * grub-core/fs/squash4.c (lzo_decompress): Set grub_errno on error.
2176 Allocate at lest 8192 for temporary buffer as required for lzo.
2178 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
2180 * grub-core/fs/fat.c (grub_fat_mount): Don't add logical_sector_bits
2181 to cluster_bits, since it's already added in.
2182 (grub_fat_read_data): Likewise.
2184 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
2186 * grub-core/fs/ntfs.c (grub_ntfs_mount): Support 256-byte sectors,
2187 as long as cluster size is multiple of 512 bytes.
2189 2012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
2191 * util/grub-mkrescue.in: Fix locale directory.
2193 2012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
2195 * grub-core/kern/emu/hostdisk.c (map): Make static.
2197 2012-04-23 Bean <bean123ch@gmail.com>
2199 * util/grub-fstest.c (fstest): Add missing break.
2201 2012-04-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
2205 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size) [__GNU__]: Do
2206 not define nr variable.
2207 * util/getroot.c [__GNU__] (strip_extra_slashes, xgetcwd, exec_pipe,
2208 find_root_devices_from_poolname, find_root_devices_from_libzfs,
2209 grub_find_device): Do not define.
2211 2012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
2213 Fix kfreebsd compile and behaviour.
2215 * grub-core/kern/emu/hostdisk.c (grub_util_follow_gpart_up): Fix
2217 * util/getroot.c: Fix wait.h include.
2218 (grub_guess_root_devices): Error if grub_find_device fails.
2219 (grub_util_get_geom_abstraction): Fix shadowing and format-security.
2220 (grub_util_get_dev_abstraction): Likewise.
2221 (grub_util_pull_device): Likewise.
2222 (grub_util_get_grub_dev): Likewise.
2223 * util/lvm.c (grub_util_lvm_isvolume): Likewise.
2225 2012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
2227 Fix and unify wholedisk detection.
2229 * util/getroot.c (convert_system_partition_to_system_disk): New argument
2230 is_part. All users updated.
2231 (device_is_wholedisk): Removed.
2232 (grub_util_biosdisk_get_grub_dev): Use is_part.
2234 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
2236 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix opening
2239 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
2241 * configure.ac: Bump to beta4.
2243 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
2245 * grub-core/commands/search_wrap.c (grub_cmd_search): Handle old
2246 --fs-uuid --set UUID syntax.
2248 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
2250 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix message
2253 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
2255 * conf/Makefile.common (LDFLAGS_PLATFORM): Use explicit -Wl.
2257 2012-04-18 Mads Kiilerich <mads@kiilerich.com>
2259 * grub-mkconfig_lib.in: Ignore *.rpmnew and *.rpmsave.
2261 2012-04-18 Mike Gilbert <floppym@gentoo.org>
2263 * util/grub.d/10_linux.in: Fix detection of genkernel initramfs.
2265 2012-04-18 Bean <bean123ch@gmail.com>
2267 * grub-core/disk/ata.c (grub_ata_strncpy): Put terminating zero at right
2270 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
2272 * grub-core/kern/emu/hostdisk.c (open_device): New argument max. All
2274 (grub_util_biosdisk_read): Handle Linux partitions not exactly
2275 corresponding to GRUB partitions.
2276 (grub_util_biosdisk_write): Likewise.
2278 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
2280 Scan mdraid before LVM.
2282 * include/grub/diskfilter.h (grub_diskfilter_register): Renamed to ..
2283 (grub_diskfilter_register_front): ... this.
2284 (grub_diskfilter_register_back): New function.
2285 All users of grub_diskfilter_register updated.
2287 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
2289 * util/grub-install.in: Fix an automatic target detection bug.
2291 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
2293 * util/grub-install.in: New option --efi-directory.
2295 2012-04-17 Vladimir Serbinenko <phcoder@gmail.com>
2297 * grub-core/loader/i386/linux.c (allocate_pages): Overwrite low memory
2298 boot services if we have no other choice.
2300 2012-04-14 Vladimir Serbinenko <phcoder@gmail.com>
2302 * util/grub-mknetdir.in: Rename --override-directory to --directory and
2304 * tests/util/grub-shell.in: Update to --directory.
2306 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
2308 * grub-core/fs/zfs/zfs.c: Disable -Wstrict-aliasing.
2310 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
2312 * grub-core/fs/minix.c (grub_minix_data): Fix ino type.
2313 (grub_minix_read_file): Likewise.
2314 (grub_minix_read_inode): Likewise.
2315 (grub_minix_find_file): Likewise.
2316 (grub_minix_dir): Likewise.
2318 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
2320 * util/grub-setup.c (setup): Fix partition handling and blocklist
2323 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
2325 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Remove
2326 redundant buggy overlap check.
2328 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
2330 * tests/util/grub-shell.in: Set pkgdatadir when calling grub-mkrescue
2333 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
2335 * grub-core/loader/i386/linux.c (grub_cmd_linux): Avoid accessing
2336 kh.loadflags on pre-2.00 kernels.
2338 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
2340 Terminate UNDI and PXE before launching the payload to avoid problems
2343 * grub-core/commands/boot.c (grub_loader_noreturn): Rename to ...
2344 (grub_loader_flags): ... this. All users updated.
2345 (grub_loader_boot): Check for GRUB_LOADER_FLAG_NORETURN.
2346 * grub-core/loader/i386/pc/pxechainloader.c (grub_cmd_pxechain): Mark
2347 loader as GRUB_LOADER_FLAG_PXE_NOT_UNLOAD.
2348 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_shutdown): New
2350 (grub_pxe_restore): Likewise.
2351 (fini_hnd): New var.
2352 (GRUB_MOD_INIT): Register shutdown hook.
2353 (GRUB_MOD_FINI): Shutdown and unregister shutdown hook.
2354 * include/grub/loader.h (GRUB_LOADER_FLAG_NORETURN): New const.
2355 (GRUB_LOADER_FLAG_PXE_NOT_UNLOAD): Likewise.
2356 (grub_loader_set): Rename second argument to flags.
2358 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
2360 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Return number of
2362 (grub_get_num_of_utf8_bytes): New function.
2363 (grub_ucs4_to_utf8_alloc): Use grub_get_num_of_utf8_bytes.
2364 * grub-core/normal/menu_entry.c (run): Convert entry to UTF-8 before
2366 * include/grub/charset.h (grub_get_num_of_utf8_bytes): New proto.
2367 (grub_ucs4_to_utf8): Change return type.
2369 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
2371 * grub-core/commands/usbtest.c (usb_print_str): Silence spurious
2373 * grub-core/fs/bfs.c (hop_level): Likewise.
2374 * grub-core/net/bootp.c (grub_cmd_bootp): Likewise.
2376 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
2378 * grub-core/lib/adler32.c: Recode due to license unclearness.
2380 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
2382 * grub-core/io/lzopio.c (read_block_header): Fix incorrect byte swapping
2383 (test_header): Likewise.
2385 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
2387 Fix --help formatting.
2389 * util/grub-mkconfig_lib.in (print_option_help): New function.
2390 (grub_fmt): Likewise.
2391 * util/grub-install.in: Use print_option_help and grub_fmt.
2392 * util/grub-kbdcomp.in: Likewise.
2393 * util/grub-mkconfig.in: Likewise.
2394 * util/grub-mknetdir.in: Likewise.
2395 * util/grub-mkrescue.in: Likewise.
2396 * util/grub-mkstandalone.in: Likewise.
2397 * util/grub-reboot.in: Likewise.
2398 * util/grub-set-default.in: Likewise.
2399 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
2401 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
2403 * linguas.sh: Remove autogenerated *.po.
2405 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
2407 * po/README: Move language fetcing to ...
2408 * linguas.sh: ... here.
2409 * po/README: Point to linguas.sh.
2411 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
2413 * po/README: Exclude ko.po due to disclaimer problems.
2415 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
2417 * grub-core/gettext/gettext.c (grub_gettext_pread): Fix the case when
2419 (grub_gettext_translate_real): Handle 0th string.
2420 (grub_gettext_translate): Ensure that "" isn't translated.
2422 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
2424 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add
2425 TRANSLATORS comment.
2426 (grub_diskfilter_print_partmap): Propagate changing of error into
2429 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
2431 * include/grub/diskfilter.h (grub_diskfilter_vg): Increase extent_size
2432 to uint64_t to prevent overflow.
2433 (grub_diskfilter_lv): Increase start_extent and extent_count
2434 to uint64_t to prevent overflow.
2436 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
2438 * configure.ac: Increase version.
2440 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
2442 Introduce en@cyrillic en@hebrew en@arabic and en@greek.
2444 * po/Rules-translit: New file.
2445 * po/arabic.sed: Likewise.
2446 * po/cyrillic.sed: Likewise.
2447 * po/greek.sed: Likewise.
2448 * po/hebrew.sed: Likewise.
2449 * po/README: Add en@cyrillic en@hebrew en@arabic and en@greek.
2450 * po/Makefile.in.in: Add extra_dist4.
2452 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
2454 Handle big-endian minixfs (fixes minixfs tests on bigendian).
2456 * grub-core/fs/minix.c: Replace le with minix. Add necessary defines,
2457 modify names. Introduce MODE_BIGENDIAN.
2458 * grub-core/fs/minix_be.c: New file.
2459 * grub-core/fs/minix2_be.c: Likewise
2460 * grub-core/fs/minix3_be.c: Likewise.
2461 * Makefile.util.def (libgrubmods): Add minix_be, minix2_be and
2463 * grub-core/Makefile.core.def (minix_be): New module.
2464 (minix2_be): Likewise.
2465 (minix3_be): Likewise.
2467 2012-04-01 Felix <email@hamburg.de>
2469 * grub-core/loader/efi/appleloader.c (devpath_7): New var.
2470 (devs): Add MBP 2011.
2472 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
2474 * grub-core/font/font.c (blit_comb): Handle dagesh somewhat.
2476 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
2478 * grub-core/normal/cmdline.c (print_completion): New field
2480 (grub_cmdline_get): Handle width properly.
2482 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
2484 * grub-core/commands/lsacpi.c (options): Add missing terminator.
2486 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
2488 * include/grub/datetime.h (grub_datetime2unixtime): Fix handling of days
2489 after 29th of February.
2491 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
2493 Fix exfat endianness handling.
2495 * grub-core/fs/fat.c (grub_fat_data): Make fat_sector 32-bit.
2496 (grub_fat_mount) [MODE_EXFAT]: Fix bpb.num_reserved_sectors byte-swap.
2497 (grub_fat_iterate_dir) [MODE_EXFAT]: Fix attr byte-swap.
2498 Byte-swap utf16 when necessary.
2499 (grub_fat_label) [MODE_EXFAT]: Byte-swap utf16 when necessary.
2501 2012-03-31 Anton Blanchard <anton@samba.org>
2502 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
2504 Fix btrfs endianness handling.
2506 * grub-core/fs/btrfs.c (key_cmp): Use grub_le_to_cpu for clarity.
2507 (lower_bound): Make root uint64_t. Use root in le.
2508 (grub_btrfs_read_logical): Fix template key init. Fix address byteswap.
2509 (find_path): Fix template key init.
2510 (grub_btrfs_dir): Fix mtime byteswap.
2511 * include/grub/types.h (grub_cpu_to_le64_compile_time): New macro.
2513 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
2515 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): New argument
2516 recursion_depth. Break infinite resursions. All users updated.
2518 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
2520 * util/getroot.c (convert_system_partition_to_system_disk): Fix use
2522 Reported by: Peter Jones.
2524 2012-03-31 Anton Blanchard <anton@samba.org>
2526 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Do not byteswap
2529 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
2531 * util/grub-install.in: Fix nvram call for PreP.
2533 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
2535 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Degrade
2536 the error when some elements are missing into a warning.
2538 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
2540 * grub-core/normal/charset.c (bidi_line_wrap): Fix out-of-range swap.
2542 2012-03-28 Colin Watson <cjwatson@ubuntu.com>
2544 * docs/grub.texi (Invoking grub-probe): New section.
2545 Reported by: Filipus Klutiero. Fixes Debian bug #666031.
2547 2012-03-27 Vladimir Serbinenko <phcoder@gmail.com>
2549 Fix tab and wide character handling in editor and menu.
2551 * grub-core/normal/charset.c (grub_unicode_aglomerate_comb): Don't
2552 agglomerate control characters with combining marks.
2553 (bidi_line_wrap): Allow break on tab.
2554 (grub_unicode_get_comb_start): New function.
2555 * grub-core/normal/menu_entry.c: Restructure to handle wide characters
2557 * grub-core/normal/menu_text.c (print_entry): Replace \n, \r, \b and \e
2559 * grub-core/normal/term.c (print_ucs4_terminal): New argument
2560 fixed_tab_size. All users updated.
2561 * include/grub/term.h (GRUB_TERM_TAB_WIDTH): New const.
2562 (grub_term_getcharwidth): Handle \t.
2563 * include/grub/unicode.h (grub_unicode_glyph_dup): Fix allocation
2566 2012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
2568 Handle big-endian mdraid.
2570 * Makefile.util.def (libgrubkern): Add mdraid_linux_be.c.
2571 * grub-core/Makefile.core.def (mdraid09_be): New module.
2572 * grub-core/disk/mdraid_linux.c: Use grub_md_to_cpu* and grub_cpu_to_md*
2573 rather than grub_le_to_cpu* and grub_cpu_to_le*.
2574 * grub-core/disk/mdraid_linux_be.c: New file.
2576 2012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
2578 * grub-core/gettext/gettext.c (GRUB_MOD_INIT): Handle errors.
2580 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
2582 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
2583 missing quotes which caused confusion among translators.
2585 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
2587 * util/grub-mkconfig_lib.in: Fix typo.
2589 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
2591 * grub-core/script/argv.c (grub_script_argv_split_append): Skip leading
2593 * tests/grub_script_leading_whitespace.in: New file.
2594 * Makefile.util.def (grub_script_leading_whitespace): New test.
2596 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
2598 * grub-core/kern/dl.c (grub_dl_add): Make global in order for gdb_grub
2601 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
2603 * grub-core/fs/jfs.c (grub_jfs_label): Use first label if second one
2604 starts with control character.
2606 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
2608 * grub-core/gdb/cstub.c (grub_gdb_inbuf): Increase the size to avoid
2610 (grub_gdb_outbuf): Likewise.
2612 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
2614 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): Add
2615 zero terminator. Fixes a crash.
2617 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
2619 * grub-core/loader/i386/linux.c (allocate_pages): Don't allocate
2621 (grub_cmd_linux): Use GRUB_LINUX_BZIMAGE_ADDR for non-relocatable
2622 images independently of preffered adderss field.
2624 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
2626 * grub-core/commands/i386/pc/play.c: Improve TRANSLATORS comments.
2627 * grub-core/commands/regexp.c: Likewise.
2628 * grub-core/loader/i386/linux.c: Likewise.
2629 * grub-core/partmap/msdos.c: Likewise.
2630 * grub-core/script/execute.c: Likewise.
2631 * grub-core/term/gfxterm.c: Likewise.
2633 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
2635 Add variable parsing in $"..." and fix several mismatches with bash.
2637 * Makefile.util.def (grub_script_gettext): New test.
2638 * grub-core/script/execute.c (parse_string): New function.
2639 (gettext_append): Likewise.
2640 (grub_script_arglist_to_argv): Use gettext_append.
2641 * grub-core/script/yylex.l: Fix slash and newline handling in $"...".
2642 * tests/grub_script_gettext.in: New file.
2644 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
2646 Fix handling of leading spaces in scripts.
2648 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't strip leading
2650 * grub-core/normal/main.c (grub_file_getline): Remove all preprocessing
2651 other than skipping \r. All users updated.
2652 * tests/grub_script_echo1.in: Add space-related tests.
2653 * util/grub-menulst2cfg.c (main): Remove useless space skipping.
2655 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
2657 * grub-core/commands/cat.c (grub_cmd_cat): Fix termination key check.
2659 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
2661 * configure.ac: Bump up the version to beta2.
2663 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
2665 Fix gettext reload bugs (e.g. inability to disable gettext
2668 * grub-core/gettext/gettext.c: Encapsulate all static variables in
2669 main_context and secondary_context. All functions updated.
2670 (grub_gettext_translate): Rename to ...
2671 (grub_gettext_translate_real): ... this. Return NULL on failed
2673 (grub_gettext_translate): Handle secondary context.
2674 (grub_gettext_delete_list): Close file and zero-out the context.
2675 (grub_mofile_open): Don't call grub_gettext_delete_list.
2677 (grub_gettext_init_ext): Call grub_gettext_init_ext. Skip loading
2678 if locale="" to avoid pointless error message.
2679 (grub_gettext_env_write_lang): Update lang even if load fails.
2680 Handle secondary context.
2681 (grub_gettext_reread_prefix): New function.
2682 (read_main): Likewise.
2683 (read_secondary): Likewise.
2684 (GRUB_MOD_INIT): Handle secondary context. Hook and export variables.
2685 (GRUB_MOD_FINI): Handle secondary context. Don't close file.
2686 * grub-core/normal/main.c (read_lists): Call grub_gettext_reread_prefix.
2687 * include/grub/normal.h (grub_gettext_reread_prefix): New proto.
2689 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
2691 * configure.ac: Decrease warning level to avoid spurious warnings and
2692 to be able to compile with GCC 4.2.
2693 * Makefile.util.def: Remove -Wno-error=logical-op.
2695 2012-03-10 William Bittner <william.bittner@gmail.com>
2697 * util/import_unicode.py: Add missing brackets around string for
2700 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
2702 Fix efi chainloader on network root.
2704 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Handle
2706 * grub-core/net/drivers/efi/efinet.c (grub_efinet_get_device_handle):
2709 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
2711 * grub-core/gfxmenu/gui_progress_bar.c (grub_gui_progress_bar): Remove
2712 unused show_text member.
2713 * docs/grub.texi: Document "text" property.
2715 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
2717 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Fix format
2720 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
2722 Fix IMSM handling on Fedora.
2724 * util/getroot.c (grub_util_is_imsm): New function.
2725 (grub_util_get_dev_abstraction): Treat IMSM as simple device, not RAID.
2727 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
2729 * Makefile.am: Strip gold section.
2730 * conf/Makefile.common: Likewise.
2731 * gentpl.py: Likewise.
2732 * grub-core/Makefile.core.def: Likewise.
2733 * grub-core/genmod.sh.in: Likewise.
2735 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
2737 * util/grub.d/10_linux.in: Use stat if grub-probe on root fails.
2738 * util/grub.d/20_linux_xen.in: Likewise.
2739 Based on Debian patch.
2741 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
2743 * util/grub.d/10_linux.in: Fix syntax error resulting in
2744 Richard Laager's patch.
2745 * util/grub.d/20_linux_xen.in: Propagate Richard Laager's patch.
2747 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
2749 * tests/partmap_test.in: Replace qemu-img usage with dd to decrease
2752 2012-03-10 Richard Laager <rlaager@wiktel.com>
2754 * util/grub.d/10_linux.in: Fix ZFS root passing.
2756 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
2758 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
2759 * grub-core/commands/xnu_uuid.c: Likewise.
2760 * grub-core/loader/efi/appleloader.c: Likewise.
2761 * grub-core/script/execute.c: Likewise.
2762 * grub-core/script/main.c: Likewise.
2763 * util/grub-mkfont.c: Likewise.
2765 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
2767 * util/grub-mkfont.c (options): Use more appropriate "select" that
2768 "set" for face index.
2770 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
2772 * util/grub-editenv.c (options): Gettextize command summaries.
2774 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
2776 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Use
2777 "out of memory" error messagge.
2779 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
2781 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add scanning
2782 of diskfilter for diskfilter on diskfilter support.
2784 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
2786 * util/getroot.c (exec_pipe): Ensure that the child is not localised.
2788 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
2790 * util/grub-install.in: Check for themes/starfield/theme.txt and not
2793 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
2795 * grub-core/gnulib/regcomp.c (regerror): Fix out-of-range array lookup.
2797 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
2799 * grub-core/gdb/i386/idt.c (grub_gdb_breakpoint): Remove old debug code.
2801 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
2803 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Remove dot at the end
2806 2012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
2808 * util/grub-install.in: Fix install non-PreP IEEE1275 install.
2810 2012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
2812 * grub-core/commands/i386/pc/sendkey.c (GRUB_MOD_INIT): Fix confusing
2814 * util/grub-install.in: Fix and gettextize error message.
2816 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
2818 * util/grub-fstest.c (options): Replace N with NUM and S with STRING.
2820 * util/grub-mount.c (options): Likewise.
2822 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
2824 * grub-core/commands/probe.c (options): Replace VAR with VARNAME and
2826 * grub-core/commands/search_wrap.c (options): Likewise.
2828 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
2830 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning.
2832 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
2834 * grub-core/boot/i386/pc/startup_raw.S (multiboot_trampoline): Fix
2836 * grub-core/kern/i386/realmode.S (realidt): Assume default BIOS IDT if
2839 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
2841 * grub-core/net/net.c (grub_net_addr_to_str): Don't translate
2842 "temporary" since it's used in identifier and is limited in space.
2844 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
2846 * po/POTFILES.in: Regenerate. Include *.h since they contain
2847 translatable strings as well.
2849 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
2851 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
2852 byte-swap on big-endian.
2853 Reported by: Lennart Sorensen
2855 2012-03-07 Vladimir Serbinenko <phcoder@gmail.com>
2857 * grub-core/loader/i386/linux.c (prot_init_space): New variable.
2858 (allocate_pages): Improve dprintf.
2859 (grub_cmd_linux): Fill prot_init_space. Fix improper usage of
2860 code32_start. Fill code32_start and kernel_alignment in params.
2861 (grub_cmd_initrd): Use prot_init_space.
2863 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
2865 * util/grub-mkstandalone.in: Propagate grub-mkimage.c change.
2867 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
2869 * util/grub-install.in: Add missing dot at the end of sentence.
2871 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
2873 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
2874 * grub-core/commands/videotest.c: Likewise.
2875 * grub-core/loader/i386/linux.c: Likewise.
2877 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
2879 * grub-core/commands/acpi.c (options): Fix a dot in the middle of the
2881 Reported by: Milo Casagrande.
2883 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
2885 * grub-core/commands/acpi.c: Add TRANSLATORS comments.
2886 * grub-core/commands/gptsync.c: Likewise.
2887 * grub-core/commands/hashsum.c: Likewise.
2888 * grub-core/commands/i386/pc/sendkey.c: Likewise.
2889 * grub-core/commands/legacycfg.c: Likewise.
2890 * grub-core/io/gzio.c: Likewise.
2891 * grub-core/net/net.c: Likewise.
2892 * grub-core/term/gfxterm.c: Likewise.
2893 * grub-core/term/terminfo.c: Likewise.
2894 * grub-core/tests/test_blockarg.c: Likewise.
2895 * grub-core/video/video.c: Likewise.
2896 * util/grub-install.in: Likewise.
2897 * util/grub-mkfont.c: Likewise.
2899 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
2901 * util/grub-mkimage.c (help_filter): Add missing capitalisation.
2903 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
2905 * grub-core/commands/search_wrap.c (options): Fix a typo.
2906 Reported by: David Prévot.
2908 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
2910 * util/grub-kbdcomp.in: Change "layout" to "keyboard layout" in
2913 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
2915 * util/grub-script-check.c (main): Fix a syntax error message which was
2918 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
2920 * util/grub-mkrescue.in (usage): Fix ROM capitalisation.
2922 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
2924 * grub-core/commands/search_wrap.c (options): Fix wrong copy-paste in
2927 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
2929 * util/grub-fstest.c (options): Remove OPTION_ARG_OPTIONAL from options
2931 * util/grub-mount.c (options): Likewise.
2933 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
2935 * util/grub-mkimage.c (generate_image): Unify diskboot.img size message.
2937 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
2939 * grub-core/net/http.c: Add TRANSLATORS comments.
2940 * grub-core/normal/cmdline.c: Likewise.
2941 * grub-core/normal/misc.c: Likewise.
2942 * grub-core/partmap/msdos.c: Likewise.
2943 * grub-core/parttool/msdospart.c: Likewise.
2944 * grub-core/script/execute.c: Likewise.
2945 * grub-core/script/main.c: Likewise.
2946 * grub-core/term/terminfo.c: Likewise.
2947 * grub-core/video/bitmap.c: Likewise.
2948 * util/grub-install.in: Likewise.
2949 * util/grub-mkimage.c: Likewise.
2950 * util/grub-mklayout.c: Likewise.
2951 * util/grub-setup.c: Likewise.
2953 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
2955 * util/grub-mount.c (fuse_init): Unify cryptomount and loopback messages
2956 with similar messages in grub-fstest.
2958 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
2960 * util/grub-install.in: Unify "option requires an argument" message
2961 with similar messages in other files.
2962 * util/grub-mkconfig.in: Likewise.
2964 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
2966 * util/grub-set-default.in: Replace printf with gettext_printf (the
2967 string in in question is already translated from grub-reboot)
2969 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
2971 * configure.ac: Bump up the version to beta1.
2973 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
2975 * grub-core/loader/i386/linux.c (allocate_pages): Fix handling of the
2976 case when min_align = 0.
2978 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
2980 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning
2981 and fix a case when line_start overflows.
2983 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
2985 * util/grub-reboot.in (usage): Mention id posibility.
2986 * util/grub-set-default.in (usage): Likewise.
2988 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
2990 * include/grub/misc.h (ALIGN_UP_OVERHEAD): New define.
2991 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Align initrds at 4.
2992 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
2993 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
2994 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
2995 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
2996 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
2998 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3000 * grub-core/commands/menuentry.c (options): Remove
3001 GRUB_ARG_OPTION_REPEATABLE.
3002 Reported by: Andreas Vogel
3004 2012-03-04 Andreas Vogel <Andreas.Vogel@anvo-it.de>
3006 * grub-core/normal/main.c (grub_normal_free_menu): Fix memory leak.
3008 2012-03-04 Hideki EIRAKU <hdk1983@gmail.com>
3010 * grub-core/normal/menu_entry.c (kill_line): Fix a crash and off-by-one
3013 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3015 Use sort -V by the idea of Georgi Georgiev.
3017 * util/grub-mkconfig_lib.in (version_sort): New function.
3018 (version_test_numeric): Use version_sort.
3020 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3022 Use submenus in grub-mkconfig.
3024 * util/grub-mkconfig.in: Define GRUB_ACTUAL_DEFAULT.
3025 * util/grub-mkconfig_lib.in (grub_quote): New function.
3026 (gettext_printf): Use gettext and not gettext_quoted to fix several
3028 * util/grub.d/10_hurd.in: Use submenus.
3029 * util/grub.d/10_kfreebsd.in: Likewise.
3030 * util/grub.d/10_linux.in: Likewise.
3031 * util/grub.d/10_netbsd.in: Likewise.
3032 * util/grub.d/20_linux_xen.in: Likewise.
3033 * util/grub.d/30_os-prober.in: Likewise.
3034 * util/grub.d/10_illumos.in: Add missing quoting.
3035 * util/grub.d/10_windows.in: Likewise.
3037 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3039 Fix menu title instability bug.
3041 * grub-core/commands/menuentry.c (options): New option --id.
3042 (grub_normal_add_menu_entry): New argument id. All users updated.
3043 (grub_cmd_menuentry): Handle --id.
3044 (grub_menu_init): Accept unknown arguments.
3045 * grub-core/normal/main.c (features): Add feature_menuentry_id and
3046 feature_menuentry_options.
3047 * grub-core/normal/menu.c (grub_menu_execute_entry): Use id for
3049 (get_entry_number): Match with id as well.
3050 * include/grub/menu.h (grub_menu_entry): New member id.
3051 * util/grub-mkconfig_lib.in (grub_get_device_id): New function.
3052 * util/grub.d/00_header.in: Define menuentry_id_option.
3053 * util/grub.d/10_hurd.in: Define id.
3054 * util/grub.d/10_illumos.in: Likewise.
3055 * util/grub.d/10_kfreebsd.in: Likewise.
3056 * util/grub.d/10_linux.in: Likewise.
3057 * util/grub.d/10_netbsd.in: Likewise.
3058 * util/grub.d/10_windows.in: Likewise.
3059 * util/grub.d/20_linux_xen.in: Likewise.
3060 * util/grub.d/30_os-prober.in: Likewise.
3062 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3064 * grub-core/script/execute.c (grub_script_return): Replace ambiguous
3065 "scope" with "body".
3067 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
3069 * include/grub/i386/linux.h (linux_kernel_header): Fix init_size type.
3070 * grub-core/loader/i386/linux.c (grub_cmd_linux): Differentiate between
3071 prot_size and prot_file_size.
3073 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
3075 * grub-core/disk/diskfilter.c (is_lv_readable): New argument "easily".
3076 All users updated. If easily=1 require raid-5/-6 to be full.
3077 (is_node_readable): Likewise.
3078 (scan_devices): Scan incomplete but readable LVs at the end.
3079 (grub_diskfilter_memberlist): Pull missing devices.
3080 (insert_array): Skip scanning until device is complete or scan is
3082 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix wrong
3084 * include/grub/diskfilter.h (grub_diskfilter_lv): New member scanned.
3085 * util/raid.c (grub_util_raid_getmembers): Handle "removed" disks.
3087 2012-03-03 Matthew Garrett <mjg@redhat.com>
3088 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
3090 Avoid EFI boot services when loading Linux.
3092 * grub-core/lib/i386/relocator.c (grub_relocator32_boot): New argument
3093 avoid_efi_bootservices. All users updated.
3094 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): New
3095 argument avoid_efi_bootservices. All users updated.
3096 Use grub_efi_mmap_iterate on EFI, grub_mmap_iterate if available.
3097 * grub-core/loader/i386/linux.c (allocate_pages): New arguments
3098 align, min_align, relocatable, prefered_address. All users updated.
3099 Allocate avoiding boot services if kernel is relocatable.
3100 (grub_cmd_linux): Check if kernel is relocatable.
3101 * grub-core/mmap/efi/mmap.c (grub_machine_mmap_iterate): Move most to ..
3102 (grub_efi_mmap_iterate): ... here. New argument avoid_efi_boot_services.
3103 Skip GRUB_EFI_BOOT_SERVICES_DATA and GRUB_EFI_BOOT_SERVICES_CODE if
3104 avoid_efi_boot_services.
3105 (grub_machine_mmap_iterate): Wrap grub_efi_mmap_iterate.
3106 * include/grub/i386/linux.h (linux_kernel_header): Update to 2.10.
3107 (linux_kernel_params): Likewise.
3109 2012-03-03 Matthew Garrett <mjg@redhat.com>
3110 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
3114 * grub-core/kern/efi/efi.c (grub_efi_get_variable): New argument
3116 * grub-core/video/efi_gop.c (check_protocol): Check that GOP has usable
3117 modes. Set gop_handle.
3118 (grub_video_gop_get_edid): New function.
3119 (grub_gop_get_preferred_mode): Likewise.
3120 (grub_video_gop_setup): Use grub_gop_get_preferred_mode.
3121 (grub_video_efi_gop_adapter): Set .get_edid.
3122 * include/grub/efi/edid.h: New file.
3123 * include/grub/efi/efi.h (grub_efi_get_variable): Update proto.
3125 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
3127 * util/grub-install.in: Load efivars unconditionally.
3129 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
3131 * po/Rules-piglatin: Change suffix from .po-update-en to
3132 .po-update-en-piglatin.
3134 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
3138 * po/piglatin.sed: New file.
3139 * po/en@piglatin.header: Likewise.
3140 * po/Rules-piglatin: Likewise.
3141 * po/README: Add en@piglatin to autogenerated languages.
3143 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
3145 * grub-core/commands/date.c (GRUB_MOD_INIT): Remove non-uniform
3147 * grub-core/commands/hdparm.c (options): Use "Display" rather than
3148 "Check" since we don't check anything.
3149 * grub-core/commands/i386/cpuid.c (options): Clarify that long mode
3151 * grub-core/commands/search_wrap.c (options): Clarify the conditions.
3152 * grub-core/disk/geli.c (grub_md_sha256_real): Fix typo.
3153 (grub_md_sha512_real): Likewise.
3155 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
3157 * grub-core/commands/gptsync.c: Fix typographic quoting.
3158 * grub-core/commands/ieee1275/suspend.c: Likewise.
3159 * grub-core/commands/parttool.c: Likewise.
3160 * grub-core/commands/search_wrap.c: Likewise.
3161 * grub-core/commands/videoinfo.c: Likewise.
3162 * grub-core/gfxmenu/gui_label.c: Likewise.
3163 * grub-core/hello/hello.c: Likewise.
3164 * grub-core/kern/emu/main.c: Likewise.
3165 * grub-core/net/net.c: Likewise.
3166 * grub-core/normal/menu.c: Likewise.
3167 * grub-core/normal/menu_text.c: Likewise.
3168 * grub-core/normal/misc.c: Likewise.
3169 * util/grub-editenv.c: Likewise.
3170 * util/grub-install.in: Likewise.
3171 * util/grub-kbdcomp.in: Likewise.
3172 * util/grub-mkconfig.in: Likewise.
3173 * util/grub-mknetdir.in: Likewise.
3174 * util/grub-mkrescue.in: Likewise.
3175 * util/grub-mkstandalone.in: Likewise.
3176 * util/grub-reboot.in: Likewise.
3177 * util/grub-set-default.in: Likewise.
3178 * util/grub-setup.c: Likewise.
3179 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
3181 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
3183 * grub-core/commands/acpihalt.c: Add TRANSLATORS comments.
3184 * grub-core/commands/keystatus.c: Likewise.
3185 * grub-core/commands/loadenv.c: Likewise.
3186 * grub-core/commands/probe.c: Likewise.
3187 * grub-core/commands/regexp.c: Likewise.
3188 * grub-core/commands/true.c: Likewise.
3189 * grub-core/commands/videoinfo.c: Likewise.
3190 * grub-core/disk/cryptodisk.c: Likewise.
3191 * grub-core/disk/ldm.c: Likewise.
3192 * grub-core/disk/loopback.c: Likewise.
3193 * grub-core/disk/luks.c: Likewise.
3194 * grub-core/fs/zfs/zfsinfo.c: Likewise.
3195 * grub-core/kern/disk.c: Likewise.
3196 * grub-core/kern/emu/hostdisk.c: Likewise.
3198 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
3200 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS comment.
3201 * util/grub-install.in: Add missing quote in the comment.
3203 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
3205 * grub-core/commands/i386/pc/drivemap.c: Add TRANSLATORS comments.
3206 * grub-core/commands/lsmmap.c: Likewise.
3207 * grub-core/commands/minicmd.c: Likewise.
3208 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
3209 * grub-core/commands/regexp.c: Likewise.
3210 * grub-core/gdb/gdb.c: Likewise.
3211 * grub-core/term/gfxterm.c: Likewise.
3212 * util/grub-mkconfig.in: Likewise.
3213 * util/grub-mkfont.c: Likewise.
3214 * util/grub-mklayout.c: Likewise.
3215 * util/grub-mknetdir.in: Likewise.
3216 * util/grub-mkrescue.in: Likewise.
3217 * util/grub.d/30_os-prober.in: Likewise.
3219 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
3221 * grub-core/commands/videoinfo.c (hook): Replace "Direct"
3222 with "Direct color" and "Packed" with "Packed pixel".
3223 (grub_cmd_videoinfo): Simplify legend.
3225 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
3227 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
3228 absolutely unclear error message.
3230 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
3232 * util/grub-mkstandalone.in: Remove confusing leftover print.
3234 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
3236 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS
3238 * grub-core/gdb/gdb.c (grub_cmd_gdbstub): Likewise.
3239 (GRUB_MOD_INIT): Likewise.
3240 * grub-core/loader/i386/linux.c (grub_cmd_linux): Clarify that it's
3242 * grub-core/net/net.c (grub_net_route_address): Add TRANSLATORS
3244 * util/grub-install.in (usage): Likewise.
3245 Spell ID in whole letters.
3246 Add missing ending dot.
3248 * util/grub-reboot.in: Fix capitalisation.
3249 * util/grub-set-default.in: Likewise.
3251 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
3253 * util/getroot.c (strip_extra_slashes) [CYGWIN]: #ifdef-out.
3254 (exec_pipe) [CYGWIN || MINGW32]: Likewise.
3255 (find_root_devices_from_poolname) [CYGWIN || MINGW32]: Likewise.
3256 (find_root_devices_from_libzfs) [CYGWIN || MINGW32]: Likewise.
3257 Disable -Werror for -Wdeprecated-declarations.
3258 (grub_guess_root_devices) [CYGWIN || MINGW32]: #ifdef-out.
3259 (get_dm_uuid) [!HAVE_DEVICE_MAPPER]: Likewise.
3260 (grub_util_get_dm_abstraction) [! __linux__]: #ifdef-out.
3261 (grub_util_get_grub_dev): Make luks handling dependent on
3262 HAVE_DEVICE_MAPPER and not __linux__.
3263 (get_win32_path): Fix format security.
3264 (grub_find_zpool_from_dir) [CYGWIN || MINGW32]: #ifdef-out.
3265 (grub_make_system_path_relative_to_its_root) [CYGWIN || MINGW32]:
3266 Don't try grub_find_zpool_from_dir.
3267 (grub_make_system_path_relative_to_its_root) [!__linux__]:
3268 #ifdef-out paresdir.
3270 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
3272 * util/grub-pe2elf.c (usage): Add missing noreturn.
3273 (write_section_data): Rename name to shname to avoid shadowing.
3274 (write_symbol_table): Rename name to symname to avoid shadowing.
3275 Fix write_reloc_section call.
3277 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
3279 * grub-core/boot/i386/pc/startup_raw.S: Move decompressor_end to .bss
3280 to ensure that it's after the last byte of .text.
3282 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
3284 * util/ieee1275/ofpath.c (my_isdigit): New function.
3285 (trailing_digits): Use my_isdigit.
3286 (strip_trailing_digits): Likewise.
3288 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
3290 * util/resolve.c (read_dep_list): Use grub_isspace instead of isspace.
3291 * grub-core/kern/emu/hostdisk.c (read_device_map): Likewise.
3293 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
3295 * grub-core/kern/i386/pc/startup.S: Define __start.
3297 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
3299 * gentpl.py (kernel): Remove the use of TARGET_OBJ2ELF after strip since
3300 strip already transforms he format.
3302 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
3304 * conf/i386-pc-cygwin-img-ld.sc: Define also _edata and __edata.
3306 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
3308 * util/grub-install.in: Add missing gettext init.
3309 * util/grub-kbdcomp.in: Likewise.
3310 * util/grub-mkconfig.in: Likewise.
3311 * util/grub-mknetdir.in: Likewise.
3312 * util/grub-mkrescue.in: Likewise.
3313 * util/grub-mkstandalone.in: Likewise.
3314 * util/grub-reboot.in: Likewise.
3315 * util/grub-set-default.in: Likewise.
3316 * util/grub.d/00_header.in: Likewise.
3317 * util/grub.d/10_hurd.in: Likewise.
3318 * util/grub.d/10_windows.in: Likewise.
3319 * util/grub.d/30_os-prober.in: Likewise.
3320 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
3322 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
3324 * po/Rules-swiss: Fix header comment.
3326 2012-02-29 Andreas Vogel <anvoit>
3328 * grub-core/kern/misc.c (grub_xvasprintf): Fix an exit path which
3329 resulted in leak of arguments.
3331 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
3333 * grub-core/boot/i386/pc/startup_raw.S: Use separate
3334 reed_solomon_size const definition instead of computing it since
3335 Apple assembler doesn't support the later.
3337 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
3339 * gentpl.py (kernel): Rewrite Apple part.
3341 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
3343 * include/grub/kernel.h (FOR_MODULES): Check module magic.
3345 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
3347 * util/grub-mkimagexx.c (locate_sections): Support non-standard
3349 (load_image): Likewise.
3351 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
3353 * configure.ac: Fix a typo in previous commit.
3355 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
3357 Don't add -Wl,-N on Apple platform.
3359 * configure.ac (TARGET_LDFLAGS_OLDMAGIC): New subst.
3360 * conf/Makefile.common: Use TARGET_LDFLAGS_OLDMAGIC instead of -Wl,-N
3362 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
3364 * grub-core/Makefile.core.def (lzma_decompress): Use
3365 TARGET_IMG_BASE_LDOPT rather than hardcoding -Wl,-Ttext.
3367 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
3369 * grub-core/genmod.sh.in: Rewrite the Apple part.
3371 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
3373 * grub-core/loader/machoXX.c (grub_macho_load): Fix signed vs unsigned
3376 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
3378 * acinclude.m4 (grub_CHECK_PIC): New test.
3379 * configure.ac: Add -fno-PIC to TARGET_CFLAGS if -fPIC is default.
3381 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
3383 * include/grub/libgcc.h (__STDC_VERSION__): Define if it's not yet so
3384 to avoid the warning.
3386 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
3388 * grub-core/boot/i386/pc/diskboot.S (firstlist): Rename to ...
3389 (LOCAL(firstlist)): ... this. Move it before the firstlist and not
3390 after. All users updated.
3392 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
3394 Use the common size routine in hostfs so we can read disks as well.
3396 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Rename to ..
3397 (grub_util_get_fd_size): ... this. Return size in bytes.
3399 * grub-core/kern/emu/hostfs.c (grub_hostfs_open): Use
3400 grub_util_get_fd_size.
3402 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
3404 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__APPLE__]:
3405 Add blocksize retrieval.
3407 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
3409 * configure.ac: Restore CFLAGS after efiemu check.
3411 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
3413 * configure.ac: Move -fnested-functions to CPPFLAGS to workaround
3416 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
3418 * grub-core/Makefile.am (MACHO2IMG): Add missing variable.
3420 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
3422 * grub-core/commands/i386/pc/halt.c (grub_halt): Add noreturn attribute.
3423 (grub_cmd_halt): Likewise.
3425 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
3427 * grub-core/lib/i386/relocator16.S: Declare LOCAL(relocator16_end)
3428 for local arithmetics.
3429 Break %sp init into 2 instructions.
3430 Add 0 byte at the end.
3432 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
3434 * grub-core/disk/diskfilter.c (read_segment): Initialise err
3437 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
3439 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Use void *
3442 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
3444 * grub-core/disk/ldm.c (make_vg): Init part.name.
3445 (grub_ldm_detect): Silence spurious warning.
3446 (grub_util_is_ldm): Likewise.
3448 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
3450 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Init fsbfreq to
3451 sane value to avoid a spurious warning.
3453 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
3455 * include/grub/dl.h: Switch from APPLE_CC to __APPLE__.
3456 (GRUB_MOD_LICENSE) [ASM_FILE]: Make into macro. All users updated.
3458 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
3460 * include/grub/symbol.h (EXT_C) [!ASM_FILE]: Redefine with strings.
3461 * grub-core/lib/i386/backtrace.c (grub_backtrace): Use EXT_C.
3463 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
3465 * grub-core/gdb/i386/machdep.S: Use VARIABLE and EXT_C instead of
3466 hardcoding the relevant info.
3468 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
3470 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Add
3471 missing const qualifiers.
3472 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): Likewise.
3474 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
3476 * util/getroot.c [__APPLE__]: Add missing includes.
3477 (grub_util_biosdisk_is_floppy): Fix usage of undefined variable.
3479 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
3481 * util/grub-mkimage.c (generate_image): Silence spurious warning.
3483 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
3485 * util/ieee1275/ofpath.c: Rename devname to sys_devname everywhere to
3488 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
3490 * util/ieee1275/grub-ofpathname.c: Add missing config.h include.
3492 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
3494 * util/grub-setup.c (setup) [!__linux__]: Add missing file declaration
3495 and grub_file_close call.
3497 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
3499 Add LZSS Mach-O support (needed for new xnu kernelcache).
3501 * grub-core/Makefile.core.def (xnu): Add file lzss.c
3502 * grub-core/loader/lzss.c: New file.
3503 * grub-core/loader/xnu.c (grub_xnu_load_driver): Close binaryfile
3504 on Mach-O open failure.
3505 * grub-core/loader/macho.c (grub_macho_close): Free uncompressedXX.
3506 Don't free cmdsXX in uncompressedXX is set.
3507 (grub_macho_file): Init new fields.
3508 New argument is_64bit. All users updated.
3509 Handle compressed. Error out if no suitable architecture is found.
3511 (grub_macho_open): New argument is_64bit. All users updated.
3512 * grub-core/loader/macho32.c: Add defines for new fields.
3513 * grub-core/loader/macho64.c: Likewise.
3514 * grub-core/loader/machoXX.c (grub_macho_contains_macho): Make static.
3515 (grub_macho_parse): Handle compressed.
3516 Defer actual processing if compressed.
3517 (grub_macho_cmds_iterate): Decompress if compressed. New argument
3518 "filename". All users updated.
3519 (grub_macho_size): New argument "filename". All users updated.
3520 (grub_macho_get_entry_point): Likewise.
3521 (grub_macho_load): Handle compressed.
3522 * include/grub/macho.h (grub_macho_lzss_header): New struct.
3523 (GRUB_MACHO_LZSS_OFFSET): New define.
3524 (grub_decompress_lzss): New proto.
3525 * include/grub/machoload.h (grub_macho_file): New fields to handle
3527 (grub_macho_contains_macho64): Remove proto.
3528 (grub_macho_contains_macho32): Likewise.
3529 * util/grub.d/30_os-prober.in: Use kernel cache if available.
3531 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
3533 * grub-core/disk/pata.c (grub_pata_readwrite): Fix ATAPI protocol error.
3535 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
3539 * Makefile.am (starfield_theme_files): New var.
3540 (starfield_DATA): Use starfield_theme_files.
3541 (EXTRA_DIST): Add starfield_theme_files. Add starfield source files.
3542 Add bootcheck-related files.
3543 * conf/Makefile.extra-dist (EXTRA_DIST): Add several missing files.
3544 * docs/Makefile.am (EXTRA_DIST): Add font_char_metrics.png
3545 and font_char_metrics.txt.
3546 * grub-core/Makefile.core.def (kernel): Update extra_dist.
3547 (setjmp): Add lib/ia64/longjmp.S.
3548 * po/Makefile.in.in (DISTFILES): Add POTFILES-shell.in and grub.d.sed.
3549 * po/POTFILES.in: Regenerate.
3550 * po/Rules-swiss: use DISTFILES.common.extra2 and not
3551 DISTFILES.common.extra1.
3552 * util/devicemap.c: Removed.
3553 * grub-core/lib/i386/relocator_backward.S: Likewise.
3554 * util/import_gcry.py: Remove unused files. Add extra_dist for
3557 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
3559 * grub-core/gettext/gettext.c (grub_mofile_open): Call
3560 grub_gettext_delete_list before changing grub_gettext_max to avoid
3561 running out of array bounds.
3563 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
3565 * grub-core/term/i386/pc/vga_text.c: Add GRUB_MACHINE_MULTIBOOT to
3566 grub_vga_text_init/grub_vga_text_fini.
3568 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
3570 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix format specification.
3572 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
3574 * configure.ac: Bump to 2.00~beta0.
3576 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
3578 * util/getroot.c (grub_find_root_devices_from_btrfs): Add
3579 missing initialisation.
3581 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
3583 * grub-core/partmap/msdos.c (message_warn): Clarify messages.
3585 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
3587 Support v2 xnu boot arguments.
3589 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree):
3590 New argument fsbfreq_out.
3591 (grub_xnu_set_video): Receive an argument grub_xnu_boot_params_common.
3592 (grub_xnu_boot): Support v2 arguments. Disable PIC so that APIC can
3594 * grub-core/loader/machoXX.c (grub_macho_load): New argument
3596 * grub-core/loader/xnu.c (grub_xnu_darwin_version): New variable.
3597 * include/grub/i386/xnu.h (grub_xnu_boot_params_common): New struct.
3598 (grub_xnu_boot_params): Rename to ...
3599 (grub_xnu_boot_params_v1): ...this. Use grub_xnu_boot_params_common.
3600 (grub_xnu_boot_params_v2): New struct.
3602 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
3604 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Add missing
3605 zeroing of CRC field before computing CRC.
3607 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
3609 * grub-core/lib/relocator.c (malloc_in_range): Fix memory leak.
3610 Change order of allocations to decrease fragmentation.
3612 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
3614 * Makefile.util.def (grub-ofpathname): Enable on all platforms.
3616 2012-02-27 Colin Watson <cjwatson@ubuntu.com>
3618 Use write-combining MTRR to speed up video with buggy BIOSes.
3620 * grub-core/video/i386/pc/vbe.c (framebuffer): New member mtrr.
3621 (cpuid): New define.
3624 (mtrr_base): Likewise.
3625 (mtrr_mask): Likewise.
3626 (grub_vbe_enable_mtrr_entry): New function.
3627 (grub_vbe_enable_mtrr): Likewise.
3628 (grub_vbe_disable_mtrr): Likewise.
3629 (grub_vbe_bios_set_display_start): Disable mtrr when handing the
3630 control off to BIOS.
3631 (grub_video_vbe_init): Fill mtrr.
3632 (grub_video_vbe_fini): Disable mtrr.
3633 (grub_video_vbe_get_info_and_fini): Likewise.
3634 (grub_video_vbe_setup): Enable mtrr.
3636 2012-02-27 Colin Watson <cjwatson@ubuntu.com>
3638 * include/grub/partition.h (grub_partition_map): Change prototype of
3639 embed to take a maximum value for nsectors.
3640 * include/grub/emu/hostdisk.h (grub_util_ldm_embed): Likewise.
3641 * include/grub/fs.h (grub_fs): Likewise.
3642 * grub-core/partmap/msdos.c (embed_signatures): New array.
3643 (pc_partition_map_embed): Check for and avoid sectors matching any
3644 of the signatures in embed_signatures, up to max_nsectors.
3645 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restrict
3646 returned sector map to max_nsectors.
3647 * grub-core/disk/ldm.c (grub_util_ldm_embed): Likewise.
3648 * grub-core/fs/btrfs.c (grub_btrfs_embed): Likewise.
3649 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): Likewise.
3650 * util/grub-setup.c (setup): Allow for the embedding area being
3651 split into multiple blocklists. Tell dest_partmap->embed the
3652 maximum number of sectors we care about.
3654 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
3656 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: Add blocklist_install field.
3657 Specify blocklist_install and reserver_first_sector for all fs.
3658 * util/grub-setup.c (setup): Use FIBMAP/FIEMAP on Linux. Check resulting
3661 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
3663 * util/grub-install.in: Clarify strings.
3664 Fix source dir check.
3666 2012-02-27 Richard Laager <rlaager@wiktel.com>
3668 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle
3669 "zfs" and "fuse.zfs" as synonyms.
3671 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
3673 * configure.ac: Put platform and target_cpu substitutions back since
3674 they are used for directories.
3676 2012-02-27 Richard Laager <rlaager@wiktel.com>
3677 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
3679 * util/grub.d/10_linux.in: Add ZFS-related arguments.
3680 * util/grub.d/20_linux_xen.in: Likewise.
3682 2012-02-27 Richard Laager <rlaager@wiktel.com>
3684 * util/getroot.c (find_root_devices_from_poolname): Handle vdevs
3687 2012-02-27 Richard Laager <rlaager@wiktel.com>
3689 * util/getroot.c (grub_find_root_devices_from_mountinfo): Add missing
3692 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
3694 Don't use insecure popen in getroot.
3696 * util/getroot.c (get_mdadm_uuid): Move pipe logic to ...
3697 (exec_pipe): ... here.
3698 (find_root_devices_from_poolname): Use exec_pipe.
3700 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
3702 Remove platform and target_cpu replacement.
3704 * configure.ac: Remove platform and target_cpu substitutions.
3705 * tests/util/grub-shell.in: Use modinfo.
3706 * util/powerpc/ieee1275/grub-mkrescue.in: Specify powerpc-ieee1275
3709 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
3711 Autodetect platform in grub-install but allow override.
3713 * util/grub-install.in: Autodetect platform. Support --target and
3714 --directory. Read platform from modinfo.sh.
3716 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
3718 Support btrfs multi-volume probe.
3720 * util/getroot.c (btrfs_ioctl_dev_info_args) [__linux__]: New struct.
3721 (btrfs_ioctl_fs_info_args) [__linux__]: Likewise.
3722 (BTRFS_IOC_DEV_INFO) [__linux__]: New define.
3723 (BTRFS_IOC_FS_INFO) [__linux__]: Likewise.
3724 (grub_find_root_devices_from_btrfs) [__linux__]: New function.
3725 (grub_find_root_devices_from_mountinfo) [__linux__]: Use
3726 grub_find_root_devices_from_btrfs if on btrfs.
3728 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
3730 Remove any awareness of *.c util files about target.
3732 * Makefile.util.def (grub-setup): Split to ...
3733 (grub-bios-setup): ... and this.
3734 (grub-sparc64-setup): ... and this.
3735 * configure.ac: Don't add machine_CPPFLAGS into HOST_CPPFLAGS.
3736 * docs/man/grub-setup.h2m: Split into ...
3737 * docs/man/grub-sparc64-setup.h2m: ... this.
3738 * docs/man/grub-bios-setup.h2m: ... and this.
3739 * include/grub/dl.h (grub_dl) [GRUB_UTIL]: Remove struct.
3740 * include/grub/elf.h (Elf_*) [GRUB_UTIL]: Remove types.
3741 (GRUB_TARGET_WORDSIZE) [GRUB_UTIL]: Remove.
3742 (grub_target_addr_t): Remove.
3743 (grub_target_size_t): Remove.
3744 (grub_target_ssize_t): Remove.
3745 * util/grub-install.in: Use new grub-*-setup.
3746 * util/grub-mkimagexx.c (Elf_Word): New define.
3747 (Elf_Half): Likewise.
3748 (Elf_Section): Likewise.
3749 (ELF_ST_TYPE): Likewise.
3750 * util/grub-setup.c: Switch from GRUB_MACHINE_SPARC64 to
3751 GRUB_SETUP_SPARC64 and from GRUB_MACHINE_PCBIOS to GRUB_SETUP_BIOS.
3753 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
3755 Replace grub_target_addr with more appropriate types.
3757 * grub-core/commands/efi/fixvideo.c (scan_card): Replace
3758 grub_target_addr with grub_addr.
3759 * grub-core/commands/iorw.c (grub_cmd_read): Replace
3760 grub_target_addr with grub_port.
3761 (grub_cmd_write): Likewise.
3762 * grub-core/commands/memrw.c (grub_cmd_read): Replace
3763 grub_target_addr with grub_addr.
3764 (grub_cmd_write): Likewise.
3765 * grub-core/video/efi_uga.c (find_line_len): Likewise.
3767 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
3769 * include/grub/efi/api.h (grub_efi_runtime_services): Add missing
3770 const qualifier for vendor_guid.
3772 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
3774 * grub-core/efiemu/runtime/efiemu.c (efiemu_get_variable): Add missing
3776 (efiemu_memequal): Likewise.
3777 (find_variable): Likewise.
3779 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
3781 Fix missing console prototype on qemu-mips.
3783 * include/grub/mips/qemu_mips/console.h: New file.
3785 2012-02-27 Matthew Garrett <mjg@redhat.com>
3786 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
3788 * grub-core/kern/efi/efi.c (grub_efi_get_variable): Add new function.
3789 * include/grub/efi/efi.h: Likewise.
3790 * include/grub/efi/api.h: Add guid for EFI-specified variables.
3791 * include/grub/charset.h (GRUB_MAX_UTF16_PER_UTF8): New definition.
3792 * grub-core/normal/charset.c (grub_utf8_process): Move from here ...
3793 * include/grub/charset.h (grub_utf8_process): ... to here. Inline.
3794 * grub-core/normal/charset.c (grub_utf8_to_utf16): Move from here ...
3795 * include/grub/charset.h (grub_utf8_to_utf16): ... to here. Inline.
3797 2012-02-27 Matthew Garrett <mjg@redhat.com>
3799 * include/grub/efi/pci.h: New file to define EFI PCI protocols.
3801 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
3803 * grub-core/disk/diskfilter.c (grub_diskfilter_iterate): Fix off-by-one
3806 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
3808 * configure.ac: Remove inappropriate use of program_transform_name
3809 on grubdir and bootdir but allow explicit specification of those
3812 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
3814 * util/grub-mknetdir.in (grub_prefix): Removed.
3815 (subdir): Use @bootdirname@ and @grubdirname@.
3817 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
3819 Replace PACKAGE_TARNAME with PACKAGE in pkglibdir and pkgdatadir.
3821 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
3823 * po/POTFILES.in: Regenerated.
3825 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
3827 Remove improper use of program_transform_name on pkglibrootdir.
3829 * configure.ac (pkglibrootdir): Removed.
3830 (grub-mkimage): Replace PKGLIBROOTDIR with PKGLIBDIR.
3831 * util/grub-mkimage.c: Likewise.
3833 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
3835 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Fix a
3838 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
3840 * util/grub-install.in: Use file identifier if no UUID is available
3841 or user explicitly prompted for it.
3843 2012-02-27 Navdeep Parhar <nparhar@gmail.com>
3845 * grub-core/loader/i386/bsd.c (freebsd_zfsguid): New variable.
3846 (freebsd_get_zfs): New function.
3847 (grub_freebsd_boot): Pass zfs UUID.
3848 (grub_cmd_freebsd): Set zfs UUID.
3850 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
3852 * conf/Makefile.common (platformdir): Base on pkglibdir and not
3855 2012-02-27 Mike Gilbert <floppym@gentoo.org>
3857 Add configure flag to control libzfs integration.
3859 * configure.ac: Add AC_ARG_ENABLE(libzfs ...) and associated logic.
3861 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
3863 * grub-core/disk/diskfilter.c (insert_array): Choose the smallest
3865 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Reject too
3868 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
3870 Remove grub_{modname}_init and grub_{modname}_fini. They should never
3871 be used directly if it's really a module and GRUB_MOD_INIT shouldn't
3872 be used on non-modules.
3874 * grub-core/commands/boot.c (GRUB_MOD_INIT) [LOONGSON || QEMU_MIPS]:
3875 Rename to grub_boot_init.
3876 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_boot_fini.
3877 * grub-core/commands/keylayouts.c (GRUB_MOD_INIT)
3878 [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_init.
3879 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_fini.
3880 * grub-core/font/font_cmd.c (GRUB_MOD_INIT)
3881 [LOONGSON || QEMU_MIPS]: Rename to grub_font_init.
3882 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_font_fini.
3883 * grub-core/kern/mips/loongson/init.c: Replace explicit protos with
3885 (grub_machine_init): Remove empty inits.
3886 * grub-core/kern/mips/qemu_mips/init.c: Replace explicit protos with
3888 (grub_machine_init): Remove empty inits.
3889 * grub-core/term/arc/console.c: Remove explicit proto.
3890 * grub-core/term/at_keyboard.c (GRUB_MOD_INIT)
3891 [LOONGSON || QEMU_MIPS]: Rename to grub_at_keyboard_init.
3892 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
3893 grub_at_keyboard_fini.
3894 * grub-core/term/gfxterm.c (GRUB_MOD_INIT)
3895 [LOONGSON || QEMU_MIPS]: Rename to grub_gfxterm_init.
3896 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
3898 * grub-core/term/i386/pc/vga_text.c (GRUB_MOD_INIT)
3899 [LOONGSON || QEMU_MIPS]: Rename to grub_vgatext_init.
3900 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
3902 * grub-core/term/ieee1275/console.c: Remove explicit proto.
3903 * grub-core/term/serial.c (GRUB_MOD_INIT)
3904 [LOONGSON || QEMU_MIPS]: Rename to grub_serial_init.
3905 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
3907 * grub-core/term/terminfo.c (GRUB_MOD_INIT)
3908 [LOONGSON || QEMU_MIPS]: Rename to grub_terminfo_init.
3909 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
3911 * grub-core/video/bitmap.c (GRUB_MOD_INIT): Removed.
3912 (GRUB_MOD_FINI): Likewise.
3913 * grub-core/video/radeon_fuloong2e.c (GRUB_MOD_INIT)
3914 [LOONGSON]: Rename to grub_video_radeon_fuloong2e_init.
3915 (GRUB_MOD_FINI) [LOONGSON]: Rename to
3916 grub_video_radeon_fuloong2e_fini.
3917 * grub-core/video/sis315pro.c (GRUB_MOD_INIT)
3918 [LOONGSON]: Rename to grub_video_sis315pro_init.
3919 (GRUB_MOD_FINI) [LOONGSON]: Rename to
3920 grub_video_sis315pro_fini.
3921 * grub-core/video/sm712.c (GRUB_MOD_INIT)
3922 [LOONGSON]: Rename to grub_video_sm712_init.
3923 (GRUB_MOD_FINI) [LOONGSON]: Rename to
3924 grub_video_sm712_fini.
3925 * include/grub/at_keyboard.h (grub_at_keyboard_init): New proto.
3926 (grub_at_keyboard_fini): Likewise.
3927 * include/grub/dl.h (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]:
3928 Don't declare grub_{modname}_init.
3929 (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]: Don't declare grub_{modname}_fini.
3930 * include/grub/keyboard_layouts.h (grub_keylayouts_init) [!EMU]:
3932 (grub_keylayouts_fini) [!EMU]: Likewise.
3933 * include/grub/serial.h (grub_serial_init) [!EMU]:
3935 (grub_serial_fini) [!EMU]: Likewise.
3936 * include/grub/terminfo.h (grub_terminfo_init) [!EMU]:
3938 (grub_terminfo_fini) [!EMU]: Likewise.
3939 * include/grub/video.h (grub_font_init) [!EMU]:
3941 (grub_font_fini) [!EMU]: Likewise.
3942 (grub_gfxterm_init) [!EMU]: Likewise.
3943 (grub_gfxterm_fini) [!EMU]: Likewise.
3944 (grub_video_sm712_init) [!EMU]: Likewise.
3945 (grub_video_sm712_fini) [!EMU]: Likewise.
3946 (grub_video_sis315pro_init) [!EMU]: Likewise.
3947 (grub_video_sis315pro_fini) [!EMU]: Likewise.
3948 (grub_video_radeon_fuloong2e_init) [!EMU]: Likewise.
3949 (grub_video_radeon_fuloong2e_fini) [!EMU]: Likewise.
3951 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
3953 Make nand a prefix for nand devices.
3955 * grub-core/disk/ieee1275/nand.c (grub_nand_open): Use prefix nand.
3957 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
3959 * grub-core/kern/misc.c (grub_stpcpy): Move from here ...
3960 * include/grub/misc.h (grub_stpcpy): ... to here. Inlined.
3962 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
3964 * include/grub/env.h (grub_env_find): Remove prototype.
3965 * grub-core/kern/env.c (grub_env_find): Make static.
3966 (grub_env_set): Remove useless set.
3968 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
3970 * grub-core/kern/i386/realmode.S: Remove useless align.
3972 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
3974 * include/grub/dl.h (grub_dl_load_file): Don't export.
3976 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
3978 * grub-core/disk/diskfilter.c (grub_diskfilter_open): Remove useless
3981 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
3983 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Remove useless
3985 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Simplify by
3986 not reloading whole superblock but only the part which is really needed.
3987 Remove useless grub_errors.
3988 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Remove useless
3991 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
3993 Don't export grub_get_rtc.
3995 * include/grub/i386/pc/time.h (grub_get_rtc): Don't export.
3996 * grub-core/commands/i386/pc/play.c (play): Use grub_get_time_ms.
3998 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4000 * grub-core/genmod.sh.in: Add -R .note.GNU-stack to strip.
4002 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4004 * grub-core/disk/diskfilter.c (insert_array): Remove scanner_name
4005 argument since it can be deduced from diskfilter. All users updated.
4007 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4011 * include/grub/list.h (grub_prio_list): Removed.
4012 (GRUB_PRIO_LIST_PRIO_MASK): Removed. All users switched to
4013 GRUB_COMMAND_PRIO_MASK.
4014 (GRUB_PRIO_LIST_FLAG_ACTIVE): Removed. All users switched to
4015 GRUB_COMMAND_FLAG_ACTIVE.
4016 (grub_prio_list_insert): Removed.
4017 (grub_prio_list_remove): Likewise.
4018 (GRUB_AS_PRIO_LIST): Likewise.
4019 (GRUB_AS_PRIO_LIST_P): Likewise.
4020 * include/grub/command.h (GRUB_COMMAND_PRIO_MASK): New define.
4021 (GRUB_COMMAND_FLAG_ACTIVE): Likewise.
4022 * grub-core/kern/list.c (grub_prio_list_insert): Remove.
4023 * grub-core/kern/command.c (grub_register_command_prio): Inline
4025 (grub_unregister_command): Likewise.
4027 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4029 Fix interrupt mixup from previous commit.
4031 * include/grub/i386/pc/int.h (grub_i386_idt): New struct.
4032 (grub_realidt): New var.
4033 * grub-core/lib/i386/relocator16.S (grub_relocator16_idt): New variable
4035 * grub-core/lib/i386/relocator.c (grub_relocator16_idt):
4037 (grub_relocator16_boot): Set grub_relocator16_idt.
4038 * grub-core/kern/i386/realmode.S (realidt): Renamed to ...
4039 (LOCAL(realidt)): ... this.
4040 * grub-core/boot/i386/pc/startup_raw.S: Pass pointer to realidt in eax.
4041 * grub-core/kern/i386/pc/startup.S: Save pointer to realidt.
4042 (grub_realidt): New variable.
4044 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4046 * grub-core/lib/i386/backtrace.c (grub_cmd_backtrace): Move from ...
4047 * grub-core/lib/backtrace.c (grub_cmd_backtrace): ... to here.
4048 * grub-core/lib/i386/backtrace.c (GRUB_MOD_INIT): Move from ...
4049 * grub-core/lib/backtrace.c (GRUB_MOD_INIT): ... to here.
4051 * grub-core/lib/i386/backtrace.c (GRUB_MOD_FINI): Move from ...
4052 * grub-core/lib/backtrace.c (GRUB_MOD_FINI): ... to here.
4053 * po/POTFILES.in: Regenerate.
4055 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4057 * grub-core/commands/probe.c (grub_cmd_probe): Gettextise UUID and label
4060 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4062 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Stop on
4064 (add_length): Likewise.
4066 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4067 2012-02-26 Lubomir Kundrak <lkundrak@redhat.com>
4069 GDB serial and backtrace support.
4071 * grub-core/kern/i386/realmode.S (real_to_prot): Reload IDT.
4072 (prot_to_real): Likewise.
4073 * grub-core/kern/i386/int.S (grub_bios_interrupt): Remove IDT reload.
4074 * grub-core/Makefile.core.def (backtrace): New module.
4076 * grub-core/gdb/cstub.c: New file.
4077 * grub-core/gdb/gdb.c: Likewise.
4078 * grub-core/gdb/i386/idt.c: Likewise.
4079 * grub-core/gdb/i386/machdep.S: Likewise.
4080 * grub-core/gdb/i386/signal.c: Likewise.
4081 * grub-core/lib/i386/backtrace.c: Likewise.
4082 * grub-core/lib/backtrace.c: Likewise.
4083 * include/grub/backtrace.h: Likewise.
4084 * include/grub/gdb.h: Likewise.
4085 * include/grub/i386/gdb.h: Likewise.
4087 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4089 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len):
4091 (add_length): Likewise.
4092 (__argp_fmtstream_update): Handle strings with non-ASCII chars.
4093 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): New
4095 * grub-core/gnulib/argp-help.c (argp_args_usage): Use
4096 __argp_get_display_len.
4098 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4100 $"..." support in scripts.
4102 * grub-core/script/execute.c (grub_script_arglist_to_argv): Handle
4103 GRUB_SCRIPT_ARG_TYPE_GETTEXT.
4104 * grub-core/script/yylex.l: Likewise.
4105 * include/grub/script_sh.h (GRUB_SCRIPT_ARG_TYPE_GETTEXT): New enum
4108 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4110 * gentpl.py: Remove obsolete pkglib_DATA handling.
4112 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4114 Don't transform PACKAGE_TARNAME following a discussion on autoconf
4117 * util/grub-install.in: Don't transform PACKAGE_TARNAME.
4118 * util/grub-kbdcomp.in: Likewise.
4119 * util/grub-mkconfig.in: Likewise.
4120 * util/grub-mkconfig_lib.in: Likewise.
4121 * util/grub-mknetdir.in: Likewise.
4122 * util/grub-mkrescue.in: Likewise.
4123 * util/grub-mkstandalone.in: Likewise.
4124 * util/grub-reboot.in: Likewise.
4125 * util/grub-set-default.in: Likewise.
4126 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
4128 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4132 * util/grub-mkconfig.in: Remove GRUB_PREFIX.
4133 * util/grub.d/00_header.in: Compute prefix in the only place it's still
4134 used for backward compatibility.
4136 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4138 Add new all_video module.
4140 * grub-core/Makefile.am (moddep.lst): Make dependent on video.lst.
4141 * grub-core/Makefile.core.def (all_video): New module.
4142 * grub-core/genmoddep.awk: Generate dependency of all_video from
4144 * grub-core/lib/fake_module.c: New file.
4145 * grub-core/normal/main.c (features): Add feature_all_video_module.
4146 * util/grub.d/00_header.in: Define locale_dir based on $prefix and
4147 don't do explicit search again.
4148 insmod all_video in load_video if available.
4150 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4152 Another round of string clarification and adding TRANSLATORS comments.
4154 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4156 * util/grub-mknetdir.in: Remove erroneous reference to install_device.
4158 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4160 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Fix return type
4162 * grub-core/normal/main.c (grub_normal_init_page): Fix msg_len type.
4163 * include/grub/charset.h (grub_utf8_to_ucs4_alloc): Fix prototype.
4165 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4167 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Add
4168 trailing newline implicitly. All users updated.
4170 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4172 Implement serial on IEEE1275 and EFI.
4174 * docs/grub.texi (Platform-specific limitations): Fix the columen video
4175 on emu. Mention arc and emu as the only platforms without serial
4177 * grub-core/Makefile.core.def (serial): Enable on all terminfomodule and
4179 * grub-core/term/efi/serial.c: New file.
4180 * grub-core/term/ieee1275/serial.c: Likewise.
4181 * grub-core/term/serial.c (grub_serial_find): Disable direct port
4182 specification if no ns8250 driver is available.
4183 (grub_cmd_serial): Likewise.
4184 (GRUB_MOD_INIT) [GRUB_MACHINE_IEEE1275]: Init ofserial.
4185 (GRUB_MOD_INIT) [GRUB_MACHINE_EFI]: Init efiserial.
4186 * include/grub/efi/api.h (GRUB_EFI_SERIAL_IO_GUID): New define.
4187 (grub_efi_parity_type_t): New type.
4188 (grub_efi_stop_bits_t): Likewise.
4189 (grub_efi_serial_io_interface): New struct.
4190 * include/grub/serial.h (grub_serial_port): Make 'broken' field
4191 available for all interfaces.
4192 Add EFI and IEEE1275 fields.
4193 (grub_ofserial_init): New proto.
4194 (grub_efiserial_init): Likeiwse.
4195 * util/grub.d/00_header.in: Don't check for the presence of serial
4198 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4200 * grub-core/disk/ieee1275/ofdisk.c (scan): Fix improper use of device
4201 name as if it was an alias.
4203 2012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
4205 * grub-core/commands/lsacpi.c (options): Fix typo.
4207 2012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
4209 Convert grub-emu to argp.
4211 * grub-core/Makefile.core.def (kernel): Add kern/emu/argp_common.c on
4213 * util/argp_common.c: Rename to ...
4214 * grub-core/kern/emu/argp_common.c: ... this. All users updated.
4215 Add missing includes.
4216 * grub-core/kern/emu/main.c: Convert to argp.
4217 * po/POTFILES.in: Regenerate.
4218 * util/grub-install.in (usage): Make first letter lowcase in messages
4220 * util/grub-setup.c (options): Likewise.
4222 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
4224 * grub-core/gfxmenu/gui_progress_bar.c (progress_bar_set_property):
4225 Put back accidently commented-out code.
4227 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
4229 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Add btree
4230 loop check using Brent algorithm.
4231 (grub_hfsplus_btree_search): Likewise.
4233 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
4235 * util/grub-install.in: Fix usage of wrong device for PreP install.
4237 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
4239 * conf/Makefile.common (CFLAGS_GNULIB): Add
4240 -Wno-unsafe-loop-optimizations.
4241 * configure.ac: Remove -Wmissing-declarations and -Wmissing-prototypes
4243 * grub-core/commands/legacycfg.c: Add pragma to skip
4244 -Wunsafe-loop-optimizations.
4245 (check_password_md5_real): Fix loop counter type.
4246 * grub-core/commands/testload.c (grub_cmd_testload): Fix over the EOF
4248 * grub-core/disk/ldm.c (grub_util_get_ldm): Fix logic error.
4249 * grub-core/fs/zfs/zfs_sha256.c (zio_checksum_SHA256): Add safety
4251 * grub-core/io/gzio.c: Add pragma to skip -Wunsafe-loop-optimizations.
4252 * grub-core/lib/LzmaEnc.c (GetOptimum): Avoid possible infinite loop.
4253 * grub-core/net/net.c (grub_net_route_address): Add safety loop
4255 * grub-core/normal/charset.c (bidi_line_wrap): Likewise.
4256 * grub-core/normal/cmdline.c (grub_set_history): Fix loop types and
4257 avoid possible infinite loops.
4258 * grub-core/script/parser.y: Add pragma to skip -Wmissing-declarations
4259 and -Wunsafe-loop-optimizations.
4260 * grub-core/script/yylex.l: Likewise.
4261 * util/grub-mkfont.c: Add pragma to skip -Wunsafe-loop-optimizations.
4262 (print_glyphs): Avoid infinite loops.
4263 * util/grub-mkimage.c (compress_kernel_xz): Fix format security.
4265 2012-02-24 Grégoire Sutre <gregoire.sutre@gmail.com>
4267 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): Fix loop condition
4268 to avoid infinite loop.
4269 (disp_acpi_rsdt_table): Likewise.
4271 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
4273 * grub-core/font/font.c (grub_font_load): Add support for default
4274 path for fonts ($prefix/fonts).
4275 * grub-core/kern/corecmd.c (grub_core_cmd_insmod): Unify condition
4276 for checking if string is a path.
4277 * grub-core/normal/main.c (features): Add feature_default_font_path.
4278 * util/grub-mkconfig.in: Skip mangling of GRUB_FONT into GRUB_FONT_PATH.
4279 * util/grub.d/00_header.in: Use default directory if possible.
4280 * util/grub-install.in: Install unicode.pf2.
4282 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
4284 * po/README: Add de_CH and en@quot to po/LINGUAS generation command.
4285 * po/Rules-swiss: New file.
4286 * po/swiss.sed: Likewise.
4288 2012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
4290 * grub-core/fs/btrfs.c (find_device): Fix typos.
4291 * grub-core/fs/zfs/zfs.c (read_device): Likewise.
4292 * util/grub-mkrelpath.c (argp_parser): Likewise.
4293 Reported by: Yuri Chornoivan.
4295 2012-02-23 Dalet Omega <daletomega@gmail.com>
4297 * grub-core/gfxmenu/gui_label.c (label_set_property): Add template
4298 for usual informative messages.
4300 2012-02-23 Dalet Omega <daletomega@gmail.com>
4304 * Makefile.am: Define starfield_DATA and dejavu.pf2 generation.
4305 * conf/Makefile.common: Define starfielddir.
4306 * configure.ac: Configure starfield.
4307 * themes/starfield/COPYING.CC-BY-SA-3.0: New file.
4308 * themes/starfield/README: Likewise.
4309 * themes/starfield/blob_w.png: Likewise.
4310 * themes/starfield/boot_menu_c.png: Likewise.
4311 * themes/starfield/boot_menu_e.png: Likewise.
4312 * themes/starfield/boot_menu_n.png: Likewise.
4313 * themes/starfield/boot_menu_ne.png: Likewise.
4314 * themes/starfield/boot_menu_nw.png: Likewise.
4315 * themes/starfield/boot_menu_s.png: Likewise.
4316 * themes/starfield/boot_menu_se.png: Likewise.
4317 * themes/starfield/boot_menu_sw.png: Likewise.
4318 * themes/starfield/boot_menu_w.png: Likewise.
4319 * themes/starfield/slider_c.png: Likewise.
4320 * themes/starfield/slider_n.png: Likewise.
4321 * themes/starfield/slider_s.png: Likewise.
4322 * themes/starfield/src/blob_nw.xcf: Likewise.
4323 * themes/starfield/src/bootmenu/: Likewise.
4324 * themes/starfield/src/bootmenu/center.xcf: Likewise.
4325 * themes/starfield/src/bootmenu/corner.xcf: Likewise.
4326 * themes/starfield/src/bootmenu/side.xcf: Likewise.
4327 * themes/starfield/src/slider_c.xcf: Likewise.
4328 * themes/starfield/src/slider_n.xcf: Likewise.
4329 * themes/starfield/src/slider_s.xcf: Likewise.
4330 * themes/starfield/src/terminalbox/: Likewise.
4331 * themes/starfield/src/terminalbox/center.xcf: Likewise.
4332 * themes/starfield/src/terminalbox/corner.xcf: Likewise.
4333 * themes/starfield/src/terminalbox/side.xcf: Likewise.
4334 * themes/starfield/starfield.png: Likewise.
4335 * themes/starfield/terminal_box_c.png: Likewise.
4336 * themes/starfield/terminal_box_e.png: Likewise.
4337 * themes/starfield/terminal_box_n.png: Likewise.
4338 * themes/starfield/terminal_box_ne.png: Likewise.
4339 * themes/starfield/terminal_box_nw.png: Likewise.
4340 * themes/starfield/terminal_box_s.png: Likewise.
4341 * themes/starfield/terminal_box_se.png: Likewise.
4342 * themes/starfield/terminal_box_sw.png: Likewise.
4343 * themes/starfield/terminal_box_w.png: Likewise.
4344 * themes/starfield/theme.txt: Likewise.
4346 2012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
4348 * util/grub.d/00_header.in: Add missing export theme.
4350 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
4352 * util/ieee1275/ofpath.c: Remove include of malloc.h since stdlib is
4354 Reported by: Eren D.
4356 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
4358 * conf/Makefile.common (grubdatadir): Removed.
4359 (Makefile.am): Move eveything grubdata to pkgdata.
4361 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
4363 * grub-core/commands/acpihalt.c (get_sleep_type):
4364 Remove unused variable.
4366 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
4368 * include/grub/acpi.h (GRUB_ASCII_OPCODE): Add
4369 GRUB_ACPI_OPCODE_STRING_CONST, GRUB_ACPI_OPCODE_BUFFER,
4370 GRUB_ACPI_OPCODE_CREATE_WORD_FIELD
4371 and GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD.
4372 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Replace include of
4373 i18n with gettext no-op.
4374 (skip_data_ref_object): Support GRUB_ACPI_OPCODE_BUFFER and
4375 GRUB_ACPI_OPCODE_STRING_CONST.
4376 (get_sleep_type): Support GRUB_ACPI_OPCODE_CREATE_WORD_FIELD and
4377 GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD. Add handling of unknown opcodes.
4379 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
4381 * po/POTFILES.in: Regenerate.
4383 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
4385 * Makefile.util.def (libgrubmods.a): Add -Wno-error=logical-op
4386 -Wno-error=missing-noreturn.
4388 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
4390 * grub-core/fs/affs.c (grub_affs_read_block): Avoid <= in loop
4391 condition to avoid possibly infinite loops.
4392 * grub-core/lib/pbkdf2.c (grub_crypto_pbkdf2): Likewise.
4393 * grub-core/lib/xzembed/xz_dec_bcj.c (bcj_powerpc): Likewise.
4395 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
4397 * grub-core/normal/charset.c (bidi_line_wrap): Avoid <= in loop
4398 condition to avoid possibly infinite loops.
4400 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
4402 * grub-core/kern/emu/hostdisk.c (read_device_map): Add missing noreturn
4405 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
4407 * grub-core/kern/disk.c (grub_disk_write): Add missing const qualifier.
4409 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
4411 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Add missing var init.
4413 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
4415 * util/bin2h.c (usage): Add missing attribute noreturn.
4417 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
4419 * grub-core/commands/testload.c (grub_cmd_testload): Fix overflow
4420 if the size isn't divisible by 512.
4422 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
4424 Make list_push and list_remove functions rather than inline functions
4425 to decrease size and avoid aliasing violations.
4427 * include/grub/list.h (grub_list_push): Move to ...
4428 * grub-core/kern/list.c (grub_list_push): ... here. Don't inline.
4429 * include/grub/list.h (grub_list_remove): Move to ...
4430 * grub-core/kern/list.c (grub_list_remove): ... here. Don't inline.
4432 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
4434 * configure.ac: Disable for now -Wstack-protector, -Wunreachable-code
4435 and -Wunused-result.
4437 2012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
4439 * grub-core/net/net.c (grub_cmd_deladdr): Fix index.
4440 Reported by: Seth Goldberg
4442 2012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
4444 * configure.ac: Add -fno-builtin-gettext on host if NLS is disabled.
4446 2012-02-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
4448 * util/grub-mkconfig.in (GRUB_CMDLINE_GNUMACH): Export variable.
4449 * util/grub.d/10_hurd.in: Include GRUB_CMDLINE_GNUMACH in gnumach
4451 * docs/grub.texi (Simple configuration): Document
4452 GRUB_CMDLINE_GNUMACH.
4454 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
4456 * conf/Makefile.common (platform_SCRIPTS): New variable.
4457 (platform_PROGRAMS): Likewise.
4458 * gentpl.py: Mark *,module and *.image for install.
4459 * grub-core/gdb_grub.in: Add a notice of expected environment.
4460 * grub-core/Makefile.core.def (gdb_grub): Mark for install.
4461 (gmodule.pl): Likewise.
4463 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
4465 Replace grub_checkkey with grub_getkey_noblock.
4467 * grub-core/kern/term.c (grub_checkkey): Replaced with ...
4468 (grub_getkey_noblock): ... this. All users updated.
4470 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
4472 * grub-core/kern/emu/console.c: Move to ...
4473 * grub-core/term/emu/console.c: ...here.
4474 (grub_ncurses_getkey): Fix return value if no key is detected.
4476 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
4478 * include/grub/test.h (grub_unit_test_init): Add missing prototype.
4479 (grub_unit_test_fini): Likewise.
4480 * tests/lib/unit_test.c (main): Remove extra nested external prototype.
4482 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
4484 * include/grub/test.h (GRUB_UNIT_TEST)
4486 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
4488 * grub-core/script/execute.c (grub_script_break): Clarify logic.
4489 Better error handling.
4490 (grub_script_return): Likewise.
4491 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
4493 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
4495 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (__GNU_LIBRARY__): Avoid
4496 rimplicit redifinition.
4498 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
4500 * docs/grub.texi (Internationalisation): Detail (lack of) collation in
4503 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
4505 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't gettext prompt.
4506 * grub-core/normal/main.c (grub_normal_read_line_real): Gettext
4509 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
4511 * grub-core/fs/zfs/zfs.c (zfs_fetch_nvlist): Mark unknown member here
4512 as GRUB_ERR_BUG. Don't malloc if no device is available.
4514 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
4516 * grub-core/term/terminfo.c (grub_terminfo_output_unregister):
4517 Mark calling with invalid term as GRUB_ERR_BUG.
4519 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
4521 * grub-core/net/tftp.c (tftp_receive): Silently discard too short
4522 packets rather than raising an error.
4524 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
4526 * grub-core/loader/xnu.c (grub_xnu_writetree_toheap_real): Avoid set
4529 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
4531 * grub-core/loader/efi/appleloader.c (grub_cmd_appleloader): Move
4532 diagnostic to dprintf.
4533 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
4535 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
4537 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Handle error in parsing
4540 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
4542 * grub-core/fs/ntfs.c (locate_attr): Avoid set in if.
4543 (grub_ntfs_iterate_dir): Likewise.
4545 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
4547 Efiemu stylistic fixes and gettext.
4549 * grub-core/efiemu/i386/loadcore32.c
4550 (grub_arch_efiemu_relocate_symbols32): Avoid set in if.
4551 * grub-core/efiemu/i386/loadcore64.c
4552 (grub_arch_efiemu_relocate_symbols64): Likewise.
4553 * grub-core/efiemu/i386/pc/cfgtables.c
4554 (grub_machine_efiemu_init_tables): Likewise.
4555 * grub-core/efiemu/loadcore.c (grub_efiemu_resolve_symbols): Likewise.
4556 (grub_efiemu_loadcore_initXX): Add a filename argument.
4558 Improved error message.
4559 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_init):
4560 Add a filename argument.
4562 * grub-core/efiemu/symbols.c (grub_efiemu_set_virtual_address_map):
4563 Reclassify double relocation as GRUB_ERR_BUG.
4565 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
4567 * grub-core/commands/i386/pc/play.c (grub_cmd_play): Improve error
4570 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
4572 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Allow running
4575 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
4577 * include/grub/misc.h (grub_error_save): Fix cleaning grub_errno.
4579 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
4581 Improve string. Gettextize.
4583 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
4585 * configure.ac: Remove -Winline altogether and -Wmissing-prototypes on
4587 * util/import_gcry.py: Add -Wno-strict-aliasing on checked modules.
4589 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
4591 * grub-core/disk/diskfilter.c (grub_diskfilter_print_partmap)
4592 [GRUB_UTIL]: New function.
4593 (insert_array) [GRUB_UTIL]: Store partmaps.
4594 * include/grub/diskfilter.h (grub_diskfilter_pv) [GRUB_UTIL]: New member
4596 (grub_diskfilter_print_partmap) [GRUB_UTIL]: New proto.
4597 * util/grub-probe.c (probe_partmap): Call grub_diskfilter_print_partmap.
4598 (probe_abstraction): Print diskfilter and not raid.
4599 Reported by: Lennart Sorensen
4601 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
4603 * util/grub-mkimage.c (generate_image): Explicitly init decompress_size.
4604 * util/grub-mkimagexx.c (MASK3): New define.
4605 (add_value_to_slot_20b): Use MASK3.
4606 (add_value_to_slot_21): Likewise.
4607 (relocate_addresses): Fix format specification.
4608 (load_image): Explicitly init symtab_section.
4610 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
4612 * util/getroot.c (grub_find_root_devices_from_mountinfo): Fix types.
4613 (grub_util_biosdisk_get_grub_dev): Fix format specification.
4615 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
4617 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size): Enable
4619 Reported by: Lennart Sorensen
4621 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
4623 * gentpl.py: Add missing license header.
4624 * docs/grub.texi: Update copyright year.
4626 2012-02-10 Grégoire Sutre <gregoire.sutre@gmail.com>
4628 Source grub-mkconfig_lib from the build directory at build time.
4629 Suggested by: Vladimir Serbinenko.
4631 * gentpl.py (manpage): Set pkgdatadir to $(builddir) on help2man call.
4632 * util/grub-install.in: Define pkgdatadir if not already set, and source
4633 grub-mkconfig_lib from there.
4634 * util/grub-kbdcomp.in: Likewise.
4635 * util/grub-mkconfig.in: Likewise.
4636 * util/grub-mknetdir.in: Likewise.
4637 * util/grub-mkrescue.in: Likewise.
4638 * util/grub-mkstandalone.in: Likewise.
4639 * util/grub-reboot.in: Likewise.
4640 * util/grub-set-default.in: Likewise.
4641 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
4643 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
4645 Increase warning level.
4647 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-redundant-decls
4648 -Wno-unreachable-code -Wno-conversion -Wno-old-style-definition.
4649 * configure.ac (HOST_CFLAGS): Add bunch of -W arguments.
4650 (TARGET_CFLAGS): Likewise.
4651 (HOST_CFLAGS): Add -Werror unless --disable-werror is activated.
4652 * grub-core/Makefile.core.def (decompressor_xz): Add
4653 -Wno-unreachable-code.
4654 (normal): Add -Wno-redundant-decls.
4655 (xzio): Add -Wno-unreachable-code.
4656 (lzopio): Add -Wno-redundant-decls -Wno-error.
4657 * grub-core/commands/acpi.c: Add exception to -Wcast-align.
4658 * grub-core/commands/lsacpi.c: Add exception to -Wcast-align.
4659 * grub-core/gensymlist.sh: Add exception to -Wmissing-format-attribute.
4660 * grub-core/kern/dl.c: Add exception to -Wcast-align.
4661 * grub-core/kern/efi/efi.c (grub_efi_modules_addr): Likewise.
4662 * grub-core/kern/i386/coreboot/init.c: Add exception to
4663 -Wsuggest-attribute=noreturn.
4664 * grub-core/kern/ia64/dl.c: Add exception to -Wcast-align.
4665 * grub-core/kern/ia64/dl_helper.c: Likewise.
4666 * grub-core/kern/mips/dl.c: Likewise.
4667 * grub-core/kern/sparc64/dl.c: Likewise.
4668 * grub-core/lib/LzmaEnc.c: Add exception to -Wshadow.
4669 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy): Likewise.
4671 * grub-core/lib/pbkdf2.c: Add exception to -Wunreachable-code.
4672 * grub-core/loader/ia64/efi/linux.c: Add exception to -Wcast-align.
4673 * grub-core/loader/mips/linux.c: Likewise.
4674 * grub-core/loader/multiboot_elfxx.c: Likewise.
4675 * grub-core/script/parser.y: Add exception to -Wunreachable-code.
4676 * grub-core/video/sm712.c: Add exception to -Wcast-align.
4677 * util/import_gcry.py: Add -Wno-cast-align to modules checked by hand.
4678 * grub-core/font/font.c (grub_font_loader_init): Add explicit cast and
4680 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
4681 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_init):
4684 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
4686 * grub-core/lib/i386/relocator16.S: Fix incorrect use of absolute
4689 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
4691 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
4692 Avoid improper use of strings.
4693 (grub_cmd_legacy_initrdnounzip): Likewise.
4695 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
4697 * include/grub/emu/misc.h (grub_util_warn): Add missing format
4699 (grub_util_info): Likewise.
4700 (grub_util_error): Likewise.
4702 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
4704 * util/grub-mount.c (fuse_init): Avoid improper use of strings.
4705 * util/grub-fstest.c (fstest): Likewise.
4707 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
4709 * grub-core/disk/geli.c (grub_md_sha256_real): Respect format security.
4710 (grub_md_sha512_real): Likewise.
4711 (grub_util_get_geli_uuid): Likewise.
4712 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Likewise.
4713 (grub_util_biosdisk_open): Fix format specification.
4714 Respect format security.
4715 * grub-core/kern/emu/misc.c (xmalloc): Respect format security.
4716 (xrealloc): Likewise.
4717 (xasprintf): Likewise.
4719 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
4721 * util/import_gcry.py: Include grub/crypto.h in init.c.
4723 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
4725 * util/grub-mkimage.c (compress_kernel_lzma): Respect format security.
4726 (generate_image): Make prefix a const char *.
4727 Fix format specifications. Respect format security.
4728 Avoid void * arithmetics.
4730 (argp_parser): Remove unused variable. Respect format security.
4731 * util/grub-mkimagexx.c (relocate_symbols): Avoid shadowing.
4732 (count_funcs) [!MKIMAGE_ELF64]: #if-out.
4733 (count_funcs): Remove unused variable.
4734 (relocate_addresses): Fix format specification.
4735 Disable x86-64 with elf32. Remove unused variables.
4736 (add_fixup_entry): Avoid shadowing.
4737 (make_reloc_section): Fix format specification.
4739 (locate_sections): Fix format specifications.
4740 (load_image): Avoid shadowing.
4742 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
4744 * util/grub-setup.c (setup): Remove unused variable. Avoid shadowing.
4745 Fix format specifications. Respect format security.
4746 Don't translate already translated grub_errmsg.
4747 (argp_parser): Remove unused variable
4749 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
4751 * util/grub-mkrelpath.c (argp_parser): Remove unused variable.
4753 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
4755 * util/grub-mkpasswd-pbkdf2.c (argp_parser): Remove unused variable.
4756 (main): Likewise. Use xmalloc. Respect format security.
4758 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
4760 * util/grub-mklayout.c (console_grub_equivalence): Make "layout"
4762 (argp_parser): Remove unused variable.
4764 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
4766 * util/grub-mkfont.c (grub_font_info): Make name a const char *.
4767 (add_pixel): Make static.
4768 (add_font): Likewise.
4769 (write_string_section): Make name and str a const char *.
4770 (write_be16_section): Make name a const char *.
4771 (print_glyphs): Make static.
4772 (write_font_ascii_bitmap): Likewise.
4773 (write_font_width_spec): Likewise.
4774 (write_font_pf2): Likewise.
4775 (argp_parser): Remove unused variable.
4776 Respect format security.
4777 (main): Avoid shadowing. Respect format security.
4779 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
4781 * util/grub-editenv.c (argp_parser): Make static.
4782 (create_envblk_file): Use xmalloc.
4783 (open_envblk_file): Likewise.
4784 Resepect format security.
4785 (set_variables): Respect format security.
4787 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
4789 * util/getroot.c (grub_find_device): Respect format security.
4790 (get_mdadm_uuid): Remove unused variable.
4791 (grub_util_pull_device): Dont call gettext on already translated
4793 (find_system_device): Remove unused variable.
4794 (grub_util_get_grub_dev): Likewise.
4795 (grub_make_system_path_relative_to_its_root): Respect format security.
4797 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
4799 * util/grub-fstest.c (execute_command): Make first argument
4801 (read_file): Avoid shadowing.
4802 Reuse underlying error message if device open fails.
4803 (cmd_cmp): Respect format security.
4804 (root): Make const char *.
4805 (fstest): Remove args argument and use global copy.
4806 Respect format security.
4807 (argp_parser): Make static.
4808 (main): Make default_root const char *.
4810 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
4812 * util/grub-mount.c (root): Make const char *.
4813 (execute_command): Make first argument a const char *.
4814 (fuse_init): Respect format security.
4815 (argp_parser): Make static. Remove unused variable.
4816 (main): Make default_root a const char *.
4817 Respect format security.
4819 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
4821 * util/grub-probe.c (probe): Don't call gettext on already translated
4823 Remove unused variables.
4824 (argp_parser): Remove unused variable.
4826 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
4828 * util/grub-script-check.c (argp_parser): Remove unused variable.
4829 (main): Rename read to curread to avoid shadowing.
4831 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
4833 * util/misc.c (grub_util_write_image_at): Fix format specification.
4834 (grub_util_write_image): Likewise.
4835 (grub_script_execute_argument_to_string): Removed (unused).
4836 (grub_script_execute_menuentry): Likewise.
4837 (grub_putchar): Likewise.
4839 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
4841 * include/grub/symbol.h (EXT_C) [GRUB_UTIL]: Removed.
4842 (FUNCTION) [GRUB_UTIL]: Likewise.
4843 (VARIABLE) [GRUB_UTIL]: Likewise.
4845 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
4847 * include/grub/misc.h: Avoid evaluationg NEED_ENABLE_EXECUTE_STACK and
4848 NEED_REGISTER_FRAME_INFO in GRUB_UTIL.
4850 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
4852 * grub-core/partmap/bsdlabel.c (iterate_real): Fix freeing of static
4855 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
4857 * grub-core/lib/LzmaEnc.c (LzmaEnc_FastPosInit): Made static.
4858 (LzmaEnc_SaveState): Removed (unused).
4859 (LzmaEnc_RestoreState): Likewise.
4860 (LzmaEnc_InitPriceTables): Made static.
4861 (LzmaEnc_Construct): Likewise.
4862 (LzmaEnc_FreeLits): Likewise.
4863 (LzmaEnc_Destruct): Likewise.
4864 (LzmaEnc_Init): Likewise.
4865 (LzmaEnc_InitPrices): Likewise.
4866 (LzmaEnc_Finish): Likewise.
4867 (LzmaEnc_PrepareForLzma2): Removed (unused).
4868 (LzmaEnc_MemPrepare): Likewise.
4869 (LzmaEnc_GetNumAvailableBytes): Likewise.
4870 (LzmaEnc_GetCurBuf): Likewise.
4871 (LzmaEnc_CodeOneMemBlock): Likewise.
4873 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
4875 * grub-core/disk/ldm.c (grub_util_get_ldm): Remove unused variables.
4876 (grub_util_ldm_embed): Likewise.
4878 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
4880 * util/grub-editenv.c (print_var): Rename name to varname to
4882 (main): Rename index to curindex to avoid shadowing.
4883 Make filename a const char *.
4885 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
4887 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
4888 to arg_getline to avoid shadowing.
4890 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
4892 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Rename disk to
4893 disk_ to avoid shadowing.
4895 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
4897 * grub-core/lib/LzFind.c (MatchFinder_GetIndexByte): Rename index to
4898 curindex to avoid shadowing.
4900 (MatchFinder_GetNumAvailableBytes): Make static.
4902 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
4904 * grub-core/fs/squash4.c (direct_read): Rename read to curread to
4907 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
4909 * grub-core/disk/cryptodisk.c (grub_cryptodisk_endecrypt): Rename
4910 argument from encrypt to do_encrypt to avoid shadowing.
4912 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
4914 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elf): Fix
4915 incorrect nesting of #if's.
4917 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
4919 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): #if'-out the
4920 checks which are always false on some platforms.
4921 (grub_cmd_lsacpi): Likewise.
4922 * grub-core/kern/misc.c (grub_strtoul): Likewise.
4923 * grub-core/loader/multiboot.c (grub_multiboot_set_video_mode):
4926 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
4928 * grub-core/disk/diskfilter.c (read_segment): Renome unreachable code.
4929 * grub-core/net/ip.c (grub_net_recv_ip4_packets): Likewise.
4931 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
4933 * grub-core/gnulib/regex.h (re_pattern_buffer): Declare buffer as
4934 re_dfa_t to avoid breaking alignment invariants.
4935 * grub-core/gnulib/regex_internal.h (re_dfa_t): Moved to ...
4936 * grub-core/gnulib/regex.h (re_dfa_t): ... here.
4938 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
4940 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix printf.
4941 * grub-core/loader/ia64/efi/linux.c (grub_cmd_fpswa): Likewise.
4943 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
4945 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init):
4948 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
4950 * grub-core/bus/usb/ehci.c (grub_ehci_ehcc_read32): Restructure to
4951 conserve alignment invariants.
4952 (grub_ehci_ehcc_read16): Likewise.
4953 (grub_ehci_oper_read32): Likewise.
4954 (grub_ehci_oper_write32): Likewise.
4955 (grub_ehci_pci_iter) [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
4956 Conserve alignment invariants.
4958 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
4960 * grub-core/kern/emu/full.c (grub_emu_post_init): Remove raid reinit.
4961 * include/grub/disk.h [GRUB_MACHINE_EMU]: Remove now useless LVM/RAID
4964 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
4966 * grub-core/kern/emu/hostfs.c (grub_hostfs_close):
4967 Remove unused variable.
4969 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
4971 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_load):
4974 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
4976 * include/grub/net.h: Remove double declarations.
4978 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
4980 Remove "payload" command in ia64 Linux loader since I couldn't
4981 find any evidence of it being used for anything.
4982 Replace "relocate" command with an environment variable
4984 * grub-core/loader/ia64/efi/linux.c (ia64_boot_param): Remove extra
4986 (ia64_boot_payload): Removed.
4987 (last_payload): Likewise.
4988 (RELOCATE_OFF): Likewise.
4989 (RELOCATE_ON): Likewise.
4990 (RELOCATE_FORCE): Likewise.
4991 (relocate): Likewise.
4992 (free_pages): Don't free payloads.
4993 (grub_load_elf64): Use common error messages.
4994 Use "linux_relocate" variable.
4995 Increase the space after boot_params.
4996 (grub_cmd_payload): Removed.
4997 (grub_cmd_relocate): Likewise.
4998 (grub_cmd_fpswa): Improve messages.
4999 (cmd_payload): Removed.
5000 (cmd_relocate): Likewise.
5001 (GRUB_MOD_INIT): Don't register "payload" and "relocate".
5002 (GRUB_MOD_FINI): Don't unregister "payload" and "relocate".
5004 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
5006 Convert UHCI to DMA framework.
5008 * grub-core/bus/usb/uhci.c (grub_uhci): Add chunk and phys members.
5009 (grub_uhci_pci_iter): Fill new members
5010 (grub_alloc_td): Use P2V and V2P functions.
5011 (grub_free_queue): Likewise.
5012 (grub_alloc_qh): Likewise.
5013 (grub_uhci_setup_transfer): Likewise.
5014 (grub_uhci_check_transfer): Likewise.
5016 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
5018 * grub-core/video/colors.c (grub_video_parse_color): Fix error message.
5019 Remove assignment in if while on it.
5021 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
5023 * util/grub-mkstandalone.in: Fix modules directory.
5025 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
5027 * util/grub-mkimage.c (image_targets): Set default_compression to lzma
5029 (argp_parser): Accept "auto" as compression specification.
5031 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
5033 Fix `help' with unloaded modules.
5035 * include/grub/normal.h (grub_dyncmd_get_cmd): New proto.
5036 * grub-core/normal/dyncmd.c (grub_dyncmd_get_cmd): New function.
5037 (grub_dyncmd_dispatcher): Small stylistic fix.
5038 * grub-core/commands/help.c (grub_cmd_help): Load missing modules when
5039 explicit help is requested.
5041 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
5043 * grub-core/fs/cpio.c (grub_cpio_dir): Fix a bug with multiple listing.
5044 Explicitly init restart while on it.
5046 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
5048 * grub-core/lib/posix_wrap/wchar.h (mbrtowc): Set pwc to zero to avoid
5051 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
5053 * util/grub-mknetdir.in: Use . rather than source for POSIX
5056 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
5058 * util/grub-probe.c (main): Fix trailing space in compatibility hint.
5060 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
5062 * grub-core/kern/partition.c (grub_partition_get_name): Fix uninited
5065 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
5067 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Accept device name
5070 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
5072 * grub-core/net/net.c (GRUB_MOD_INIT): Don't register netfs.
5074 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
5076 * grub-core/kern/partition.c (grub_partition_get_name): Fix reverse
5077 iteration of partitions.
5079 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
5081 Improve gettext support. Stylistic fixes and error handling fixes while
5084 2012-02-07 Vladimir Serbinenko <phcoder@gmail.com>
5086 * grub-core/lib/i386/relocator16.S: Revert moving A20 code into PM
5087 part. Instead setup the correct stack in RM.
5088 * grub-core/lib/i386/relocator.c (grub_relocator16_boot): Reserve place
5090 * include/grub/i386/relocator_private.h: New file.
5092 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
5094 * grub-core/commands/minicmd.c (GRUB_MOD_INIT): Add missing SIZE
5096 * util/grub-fstest.c (options): Add missing DEVICE part.
5098 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
5100 Clarify and unify messages.
5102 * grub-core/commands/hashsum.c (options): Unify messages.
5103 * grub-core/commands/keystatus.c (GRUB_MOD_INIT): Don't mark a
5104 literal-only message as translatable.
5105 * grub-core/commands/lsacpi.c (GRUB_MOD_INIT): Likewise.
5106 * grub-core/loader/ia64/efi/linux.c (GRUB_MOD_INIT): Likewise.
5107 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Add quoting around
5109 * grub-core/commands/menuentry.c (options): Clarify that it's a keyboard
5110 key, not the key used to unlock. Clarify what it's used for.
5111 * grub-core/kern/emu/hostdisk.c (read_device_map): Unify error message.
5112 * grub-core/loader/xnu.c (grub_xnu_load_driver): Remove erroneous colon.
5113 * grub-core/script/main.c (GRUB_MOD_INIT): Clarify [n] to be [NUM].
5114 * util/grub-editenv.c (options): Unify "verbose" message.
5115 * util/grub-fstest.c (read_file): Unify error message.
5116 (fstest): Add quotes around commands.
5117 (options): Unify "verbose" message.
5118 * util/grub-install.in: Add quotes around variable name.
5119 * util/grub-kbdcomp.in: Unify error message.
5120 * util/grub-mkfont.c (main): Likewise.
5121 * util/grub-mkrescue.in: Likewise.
5122 * util/grub-mklayout.c (options): Unify "verbose" message.
5123 * util/grub-mkstandalone.in: Unify help and verbose messages.
5124 * util/grub-mount.c (options): Unify "verbose" message.
5125 * util/grub-probe.c (options): Likewise.
5126 * util/grub-script-check.c (options): Likewise.
5127 * util/grub-setup.c (setup): Unify no-terminator message.
5128 (options): Use DEVICE and not DEV.
5129 Unify "verbose" message.
5130 * util/ieee1275/ofpath.c (xrealpath): Unify error message.
5132 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
5134 Improve and unify messages.
5136 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Add argument
5137 name. All users updated.
5138 Print filename in error.
5139 (read_device_map): Print filename in error.
5140 * util/getroot.c (grub_guess_root_devices): Print filename in error.
5141 (grub_util_get_os_disk): Likewise.
5142 (grub_util_biosdisk_get_grub_dev): Likewise.
5143 (grub_util_check_block_device): Likewise.
5144 (grub_util_check_char_device): Likewise.
5145 (grub_make_system_path_relative_to_its_root): Likewise.
5146 * util/grub-editenv.c (create_envblk_file): Likewise.
5147 (open_envblk_file): Likewise.
5148 (write_envblk): Likewise.
5149 * util/grub-fstest.c (cmd_cp): Likewise.
5150 (cmd_cat): Likewise.
5151 (cmd_cmp): Likewise.
5152 * util/grub-menulst2cfg.c (main): Likewise.
5153 * util/grub-mkfont.c (write_font_ascii_bitmap): Likewise.
5154 (write_font_width_spec): Likewise.
5155 (write_font_pf2): Likewise.
5156 * util/grub-mkimage.c (generate_image): New argument outname.
5158 Remove unreacheable message.
5159 (options): Unify messages.
5160 (help_filter): Likewise.
5161 * util/grub-mklayout.c (usage): Removed (unused).
5162 (main): Print filename in error.
5163 * util/grub-mkrescue.in: Fix wrong quoting.
5164 * util/grub-setup.c (setup): Print filename in error.
5165 * util/ieee1275/ofpath.c (vendor_is_ATA): Likewise.
5166 (check_sas): Likewise.
5167 * util/misc.c (grub_util_get_fp_size): Removed.
5168 (grub_util_get_image_size): Print filename in error.
5169 (grub_util_read_at): Removed.
5170 (grub_util_read_image): Print filename in error.
5171 (grub_util_load_image): Likewise.
5172 (grub_util_write_image_at): New argument filename. All users updated.
5173 Print filename in error.
5174 (grub_util_write_image): New argument filename. All users updated.
5175 Print filename in error.
5176 * util/raid.c (grub_util_raid_getmembers): Print filename in error.
5177 * util/resolve.c (grub_util_resolve_dependencies): Likewise.
5179 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
5181 * grub-core/Makefile.core.def (pxechain): New module.
5182 * grub-core/loader/i386/pc/pxechainloader.c: New file.
5183 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_get_cached): New
5185 (grub_pc_net_config_real): Use grub_pxe_get_cached.
5186 * include/grub/i386/pc/pxe.h (grub_pxe_get_cached): New proto.
5188 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
5190 * grub-core/kern/err.c (GRUB_MAX_ERRMSG): Move to ...
5191 * include/grub/err.h (GRUB_MAX_ERRMSG): ... here.
5192 * include/grub/err.h (grub_error_saved): New struct.
5193 (grub_errmsg): Make array size explicit.
5194 * include/grub/misc.h (grub_error_save): New function.
5195 (grub_error_load): Likewise.
5196 * grub-core/kern/err.c (grub_error_stack_items): Use grub_error_saved.
5197 (grub_error_push): Update `errno' member name.
5198 (grub_error_pop): Likewise
5199 * grub-core/net/tftp.c (tftp_data): New member save_err.
5200 (tftp_receive): Save error.
5201 (tftp_open): Restore error.
5203 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
5205 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move switch
5206 to real mode down to execute A20-related code in protected mode as
5209 2012-02-05 Grégoire Sutre <gregoire.sutre@gmail.com>
5211 * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Return
5212 NULL when the argument `level' has an unexpected value.
5214 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
5216 Move platform-dependent files from $prefix to $prefix/$platform.
5218 * config.h.in (GRUB_TARGET_CPU): New definition.
5219 (GRUB_PLATFORM): Likewise.
5220 * configure.ac: Define GRUB_TARGET_CPU and GRUB_PLATFORM.
5221 * grub-core/commands/parttool.c (grub_cmd_parttool): Update dir.
5222 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
5223 * grub-core/kern/dl.c (grub_dl_load): Likewise.
5224 * grub-core/normal/autofs.c (read_fs_list): Likewise.
5225 * grub-core/normal/crypto.c (read_crypto_list): Likewise.
5226 * grub-core/normal/dyncmd.c (read_command_list): Likewise.
5227 * grub-core/normal/term.c (read_terminal_list): Likewise.
5228 * grub-core/gettext/gettext.c (grub_mofile_open_lang): Use
5230 (grub_gettext_init_ext): Likewise.
5231 * grub-core/normal/main.c (GRUB_MOD_INIT): Define grub_cpu and
5233 * util/grub-install.in: Update directories.
5234 * util/grub-mknetdir.in: Likewise.
5235 * util/grub-mkrescue.in: Likewise.
5237 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
5239 * grub-core/kern/ieee1275/openfw.c (grub_claimmap): Change to
5240 grub_error framework. All users updated.
5242 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
5244 * grub-core/gettext/gettext.c: Mostly rewritten to avoid using
5245 lists (by always binsearching), improve caching (cache strings
5246 used for binsearch, not only results), improve
5247 maintainability (by using more structured binary search) and correct
5250 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
5252 * grub-core/script/execute.c (grub_script_return): Fix warning.
5254 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
5256 * grub-core/script/execute.c (grub_script_return): Fix potential
5258 Reported by: Jim Meyering.
5260 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
5262 * po/POTFILES.in: Regenerate.
5263 * util/grub-install.in: Gettextize the strings missed in first pass.
5265 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
5267 * Makefile.util.def (grub-mkdevicemap): Removed.
5268 * include/grub/emu/hostdisk.h (grub_util_get_os_disk): New proto.
5269 * include/grub/util/deviceiter.h: Removed.
5270 * util/deviceiter.c: Likewise.
5271 * util/getroot.c (grub_util_get_os_disk): New function.
5272 * util/grub-install.in: Remove grub-mkdevicemap. Use -t disk as
5273 replacement for EFI.
5274 * util/grub-mkdevicemap.c: Removed.
5275 * util/grub-probe.c (probe): Handle PRINT_DISK.
5276 (argp_parser): Handle -t disk.
5278 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
5280 * util/grub-mkfont.c: Migrate to argp.
5281 * util/grub-mklayout.c: Likewise.
5282 * util/grub-mkpasswd-pbkdf2.c: Likewise.
5283 * util/grub-mkrelpath.c: Likewise.
5284 * util/grub-probe.c: Likewise.
5285 * util/grub-script-check.c: Likewise.
5287 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
5289 * util/grub-reboot.in: Add missing datarootdir.
5290 Add missing newline.
5291 * util/grub-set-default.in: Add missing datarootdir.
5292 * util/powerpc/ieee1275/grub-mkrescue.in: Add missing newline.
5293 * util/grub-mkrescue.in: Likewise.
5295 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
5297 * util/grub.d/30_os-prober.in: Fix TRANSLATORS comment.
5299 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
5301 * util/grub-kbdcomp.in: Add decent help and gettextize.
5302 * docs/man/grub-kbdcomp.h2m: New file.
5304 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
5306 Migrate grub-mkimage.c to argp.
5308 * Makefile.util.def (grub-mkimage): Add util/argp_common.c.
5309 (grub-setup): Likewise.
5310 * util/grub-setup.c (print_version): Move to ...
5311 * util/argp_common.c (print_version): ... here.
5312 * util/grub-setup.c (argp_program_version_hook): Move to ...
5313 * util/argp_common.c (argp_program_version_hook): ... here.
5314 * util/grub-setup.c (argp_parser): Add exit (1) on fatal error for
5316 * util/grub-mkimage.c (main): Migrate to argp.
5318 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
5320 * util/grub-mkrescue.in: Use same message as
5321 util/powerpc/ieee1275/grub-mkrescue.in with %s in place of command
5322 for better translations.
5324 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
5326 * util/powerpc/ieee1275/grub-mkrescue.in: Gettextize. Unify the command
5327 options with generic grub-mkrescue.in with the goal of future
5330 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
5332 * grub-core/kern/mm.c: Add missing include of i18n.h
5333 * grub-core/lib/relocator.c: Likewise.
5335 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
5337 * grub-core/loader/ia64/efi/linux.c (find_mmap_size): Replace fatal with
5339 (allocate_pages): Check return value.
5340 Replace fatal with error.
5341 (grub_linux_boot): Replace printf with dprintf.
5342 Check find_mmap_size return value.
5343 Replace fatal with error.
5344 Don't call grub_machine_fini.
5345 (grub_load_elf64): Replace printf with dprintf.
5346 (grub_cmd_linux): Likewise.
5347 (grub_cmd_initrd): Likewise.
5348 (grub_cmd_payload): Likewise.
5350 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
5352 * grub-core/loader/i386/xnu.c (grub_cmd_devprop_load): Fix error
5354 * grub-core/video/radeon_fuloong2e.c
5355 (grub_video_radeon_fuloong2e_setup): Likewise.
5356 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup): Likewise.
5357 * grub-core/video/video.c (grub_video_set_mode): Don't override
5358 standard out of memory message.
5360 2012-02-03 Grégoire Sutre <gregoire.sutre@gmail.com>
5362 NetBSD disk wedge support.
5364 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start)
5365 [__NetBSD__]: Handle NetBSD disk wedges.
5366 * util/getroot.c (convert_system_partition_to_system_disk)
5367 [__NetBSD__]: Likewise.
5369 2012-02-03 Mark Wooding <mdw@distorted.org.uk>
5371 * util/grub-mkconfig.in: Use umask rather than chmod to create
5372 grub.cfg.new to avoid insecure grub.cfg.
5374 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
5376 * grub-core/commands/ls.c: Gettextize.
5377 * grub-core/commands/setpci.c: Likewise.
5378 * grub-core/commands/videotest.c: Likewise.
5379 * grub-core/disk/geli.c: Likewise.
5380 * grub-core/kern/mm.c: Likewise.
5381 * grub-core/lib/relocator.c: Likewise.
5382 * grub-core/loader/efi/appleloader.c: Likewise.
5383 * grub-core/loader/i386/xnu.c: Likewise.
5384 * grub-core/loader/ia64/efi/linux.c: Likewise.
5385 * grub-core/loader/xnu.c: Likewise.
5386 * grub-core/net/dns.c: Likewise.
5387 * grub-core/net/net.c: Likewise.
5388 * grub-core/script/lexer.c: Likewise.
5389 * grub-core/script/parser.y: Likewise.
5390 * grub-core/script/yylex.l: Likewise.
5391 * util/getroot.c: Likewise.
5392 * util/grub-setup.c: Likewise.
5394 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
5396 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): Use proper error
5399 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
5401 * grub-core/disk/ldm.c (grub_util_ldm_embed): Correct error message.
5403 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
5405 * grub-core/commands/search_file.c (SEARCH_TARGET): Remove obsolete
5407 * grub-core/commands/search_label.c (SEARCH_TARGET): Likewise.
5408 * grub-core/commands/search_uuid.c (SEARCH_TARGET): Likewise.
5410 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
5412 * util/grub-mkstandalone.in: Fix help messages. Gettextize.
5413 * util/grub-install.in: Gettextize.
5414 * util/grub-mkconfig.in: Likewise.
5415 * util/grub-mkconfig_lib.in: Replace gettext with echo -n and not echo
5417 (grub_warn): Gettextize.
5418 * util/grub-mknetdir.in: Gettextize.
5419 * util/grub-mkrescue.in: Likewise.
5420 * util/grub-mkstandalone.in: Likewise.
5421 * util/grub-reboot.in: Likewise.
5422 * util/grub-set-default.in: Likewise.
5423 * util/grub.d/00_header.in: Likewise.
5424 * util/grub.d/10_hurd.in: Likewise.
5425 * util/grub.d/10_kfreebsd.in: Likewise.
5426 * util/grub.d/10_linux.in: Likewise.
5427 * util/grub.d/10_netbsd.in: Likewise.
5428 * util/grub.d/10_windows.in: Likewise.
5429 * util/grub.d/20_linux_xen.in: Likewise.
5430 * util/grub.d/30_os-prober.in: Likewise.
5431 * po/POTFILES-shell.in: Regenerate.
5433 2012-02-03 Richard Laager <rlaager@wiktel.com>
5435 * util/grub-mkimage.c (main): Fix format-security warning.
5436 * util/grub-mkrelpath.c (main): Likewise.
5437 * util/grub-probe.c (main): Likewise.
5439 2012-02-03 Richard Laager <rlaager@wiktel.com>
5441 * util/grub-probe.c (probe): Don't crash on canonicalize_file_name
5443 Put back lost PRINT_DRIVE.
5445 2012-02-03 Richard Laager <rlaager@wiktel.com>
5447 * util/getroot.c (find_root_devices_from_libzfs): Fix compilation error.
5448 (grub_guess_root_devices): Replace strlen with sizeof.
5450 (find_root_devices_from_poolname): Remove unused variable.
5453 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
5455 Support install on multi-device filesystems.
5457 * include/grub/emu/getroot.h (grub_guess_root_device): Renamed to ...
5458 (grub_guess_root_devices): ...this. Return char **. All users updated.
5459 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo):
5461 * util/getroot.c (find_root_device_from_libzfs): Moved pool logic to ...
5462 (find_root_devices_from_poolname): ... here.
5463 (grub_find_root_devices_from_mountinfo): Return char **. Make static.
5465 (grub_guess_root_device): Rename to ...
5466 (grub_guess_root_devices): ... this. Return char **. All users updated.
5467 * util/grub-install.in: Handle multi-device filesystems.
5468 * util/grub-probe.c (probe). Make device_names a char **. Add delim
5469 argument. All users updated.
5470 Handle multi-device filesystems.
5471 Use 'delim' as separator.
5472 Remove device check to allow filesystems on file.
5473 (main): Support -0 argument. Handle multi-device.
5474 * util/grub-setup.c (setup): Remove root argument. Handle multi-device.
5475 Fix a cross-device check while on it.
5476 (arguments): Remove root_dev.
5477 (argp_parser): Remove -r.
5478 (main): Remove root_dev.
5480 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
5482 * grub-core/fs/zfs/zfscrypt.c: Add link to documentation.
5484 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
5486 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix subset
5488 Reported by: NODA, Kai <nodakai>.
5490 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
5494 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): Use %p to print
5496 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Likewise.
5497 (grub_ehci_setup_qh): Likewise.
5498 (grub_ehci_find_qh): Likewise.
5499 (grub_ehci_transaction): Likewise.
5500 (grub_ehci_setup_transfer): Likewise.
5501 (grub_ehci_check_transfer): Likewise.
5502 (grub_ehci_portstatus): Likewise.
5503 (grub_ehci_detect_dev): Likewise.
5504 (grub_ehci_transfer_controller_data): New field td_last_phys.
5505 (grub_ehci_setup_transfer): Fill td_last_phys.
5506 (grub_ehci_check_transfer): Use td_last_phys.
5508 2012-02-01 Seth Goldberg <seth.goldberg@oracle.com>
5510 * grub-core/normal/context.c (grub_env_extractor_close): Don't crash
5511 if no submenu is present.
5513 2012-02-01 Aleš Nesrsta <starous@volny.cz>
5517 * include/grub/usb.h (grub_usbms_protocol_t): New values
5518 GRUB_USBMS_PROTOCOL_CB and GRUB_USBMS_PROTOCOL_CBI.
5519 * grub-core/disk/usbms.c (GRUB_USBMS_CBI_CMD_SIZE): New define.
5520 (GRUB_USBMS_CBI_ADSC_REQ): Likewise.
5521 (grub_usbms_dev): Add subclass, protocol and intrpt.
5522 Remove in_maxsz and out_maxsz.
5523 (grub_usbms_reset): Rename to ...
5524 (grub_usbms_bo_reset): .. this.
5525 (grub_usbms_cbi_cmd): New function.
5526 (grub_usbms_cbi_reset): Likewise.
5527 (grub_usbms_reset): Likewise.
5528 (grub_usbms_attach): Recognize cbi. Same subclass and protocol.
5529 (grub_usbms_transfer): Rename to ...
5530 (grub_usbms_transfer_bo): ... this.
5531 (grub_usbms_transfer_cbi): Likewise.
5532 (grub_usbms_transfer): Likewise.
5534 2012-02-01 Aleš Nesrsta <starous@volny.cz>
5535 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
5537 EHCI support. All of the credit goes to Aleš Nesrsta. I've just added
5538 the support for the CS5536 modification thereos and few bugfixes.
5540 * grub-core/Makefile.core.def (ehci): New module.
5541 * grub-core/bus/usb/ehci.c: New file.
5542 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): New arguments
5543 port and hubaddr. All users updated.
5544 Save port and hubaddr into dev structure.
5545 * include/grub/cs5536.h (GRUB_CS5536_MSR_USB_BASE_SMI_ENABLE): New
5547 * include/grub/pci.h (grub_dma_phys2virt): New function.
5548 (grub_dma_virt2phys): Likewise.
5549 * include/grub/usb.h (grub_usb_device): New members port and hubaddr.
5551 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
5553 * grub-core/fs/fat.c (grub_fat_mount) [!MODE_EXFAT]: Remove fstype
5554 check as some mkfs implementations omit it.
5556 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
5558 * docs/grub.texi (Unicode): Mention identifier and space limitations.
5560 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
5562 * grub-core/fs/jfs.c (grub_jfs_sblock): Make volname a char array.
5563 Add new member volname2.
5564 (grub_jfs_label): Use volname2 if available.
5566 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
5568 * grub-core/fs/nilfs2.c (grub_nilfs2_super_block): Expand volume_name
5569 over last_mounted as seen in image generated by mkfs.nilfs2.
5570 (grub_nilfs2_label): Use sizeof for the size of s_volume_name.
5572 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
5574 * grub-core/fs/fat.c (grub_fat_dir_entry) [MODE_EXFAT]: Expand label
5575 to 15 UTF-16 characters as seen in FS generated by mkexfatfs.
5576 (grub_fat_label) [MODE_EXFAT]: Use macros for size.
5578 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
5580 * grub-core/fs/romfs.c (grub_romfs_mount): Fix a bug with labels going
5583 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
5585 * grub-core/fs/zfs/zfs.c (get_filesystem_dnode): Support space in
5586 subvolume name (by removing a bogus and useless check).
5588 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
5590 * grub-core/fs/ext2.c (grub_ext2_label): Fix field size. Change to
5593 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
5595 * grub-core/disk/scsi.c (grub_scsi_read_capacity): Renamed to ...
5596 (grub_scsi_read_capacity10): ... this.
5597 (grub_scsi_read_capacity16): New function.
5598 (grub_scsi_open): Use read_capacity16 if read_capacity10 returned
5600 Fix off-by-one error.
5601 * include/grub/scsi.h (grub_scsi): Rename size to last_block and make it
5603 * include/grub/scsicmd.h (grub_scsi_read_capacity): Rename to ...
5604 (grub_scsi_read_capacity10): ... this.
5605 (grub_scsi_read_capacity_data): Rename to ...
5606 (grub_scsi_read_capacity10_data): ... this. Rename size to last_block.
5607 (grub_scsi_read_capacity16): New struct.
5608 (grub_scsi_read_capacity16_data): Likewise.
5609 (grub_scsi_cmd_t): Rename grub_scsi_cmd_read_capacity to
5610 grub_scsi_cmd_read_capacity10.
5611 New command grub_scsi_cmd_read_capacity16.
5613 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
5617 * grub-core/disk/scsi.c (grub_scsi_read16): New function.
5618 (grub_scsi_write16): Likewise.
5619 (grub_scsi_read): Use read16 when necessary.
5620 (grub_scsi_write): Likewise.
5621 * include/grub/scsicmd.h (grub_scsi_read16): New struct.
5622 (grub_scsi_write16): Likewise.
5623 (grub_scsi_cmd_t): Add READ16 and WRITE16.
5625 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
5627 SCSI write support (for usbms mainly).
5629 * grub-core/disk/scsi.c (grub_scsi_write10): Uncomment. Make buffer
5631 (grub_scsi_write): Implement.
5632 * include/grub/scsi.h (grub_scsi_dev): Make write buffer a const pointer
5634 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
5636 * grub-core/io/lzopio.c (uncompress_block): Fix use of incorrect
5639 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
5641 * grub-core/lib/posix_wrap/string.h (memchr): New function.
5643 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
5645 * po/POTFILES.in: Regenerate.
5647 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
5649 * grub-core/lib/posix_wrap/assert.h (assert_real): Replace grub_fatal
5650 with grub_printf to avoid unnecessary fatal failure.
5652 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
5654 * grub-core/lib/posix_wrap/limits.h (SHRT_MAX): New define.
5655 (INT_MAX): Likewise.
5656 * grub-core/lib/posix_wrap/stdio.h (snprintf): New function.
5657 * grub-core/lib/posix_wrap/stdlib.h (abs): Likewise.
5658 * grub-core/lib/posix_wrap/string.h (memcmp): Likewise.
5662 (strncpy): Likewise.
5664 (strncat): Likewise.
5665 (strcoll): Likewise.
5666 * include/grub/types.h (GRUB_SHRT_MAX): New define.
5667 (GRUB_INT_MAX): Likewise.
5669 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
5671 * grub-core/gnulib/regcomp.c (regerror): Don't use abort on
5673 (optimize_utf8): Likewise.
5674 * grub-core/lib/posix_wrap/stdlib.h (abort): Removed.
5676 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
5678 * grub-core/boot/i386/pc/lnxboot.S: Use
5679 GRUB_DECOMPRESSOR_MAX_DECOMPRESSOR_SIZE.
5680 * grub-core/boot/i386/pc/startup_raw.S: Ensure about boot_dev
5682 * include/grub/offsets.h (GRUB_DECOMPRESSOR_I386_PC_BOOT_DEVICE): New
5684 (GRUB_DECOMPRESSOR_I386_PC_MAX_DECOMPRESSOR_SIZE): Likewise.
5686 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
5688 * util/getroot.c (grub_util_get_dm_node_linear_info): Fix memory leak.
5689 * grub-core/disk/cryptodisk.c (cryptodisk_cleanup): Disable for
5690 now to avoid double free.
5691 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_dev): Rename to
5693 * include/grub/disk.h (grub_disk_dev_id): New id HOSTDISK.
5694 * util/grub-probe.c (escape_of_path): Always return a new copy.
5695 (print_full_name): Escape path.
5696 (probe): Don't call grub_util_devname_to_ofpath on NULL.
5697 Fix hints on abstractions.
5699 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
5701 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device):
5702 Don't add "root" line if no compatibility hont is available.
5703 Suggested by: Seth Goldberg.
5705 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
5707 * include/grub/ata.h (grub_ata): Add a new element maxbuffer.
5708 * grub-core/disk/ata.c (grub_ata_readwrite): Limit to ata->maxbuffer.
5709 * grub-core/disk/pata.c (grub_pata_open): Set ata->maxbuffer.
5710 * grub-core/disk/ahci.c (grub_ahci_open): Likewise.
5712 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
5714 * include/grub/zfs/dnode.h (DN_MIN_INDBLKSHIFT): Removed.
5716 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
5718 * util/grub-pe2elf.c (ehdr): Make static.
5720 (num_sections): Likewise.
5723 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
5725 Eliminate ofpath limits and possible overflows.
5727 * util/ieee1275/ofpath.c (grub_util_info) [STANDALONE]: New function.
5728 (OF_PATH_MAX): Removed.
5729 (MAX_DISK_CAT): New const.
5730 (find_obppath): Use allocated rather than preallocated buffer.
5731 Return result. Argument of_path removed. All users updated.
5733 (xrealpath): New function.
5734 (block_device_get_sysfs_path_and_link): Remove sysfs argument.
5735 Allocate rather than use preallocated buffer. All users updated.
5736 (__of_path_common): Use allocated rather than preallocatecd buffer.
5737 Return result. Argument of_path removed. All users updated.
5738 (vendor_is_ATA): Read only needed part form the file.
5739 (check_sas): Allocate depending on contents rather than fixed.
5740 (main) [STANDALONE]: Handle NULL result.
5742 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
5744 * grub-core/normal/completion.c (iterate_dev): Close the disk.
5746 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
5748 Cryptodisk write support.
5750 * grub-core/disk/cryptodisk.c (grub_crypto_pcbc_encrypt): New function.
5751 (grub_cryptodisk_decrypt): Moved logic to ...
5752 (grub_cryptodisk_endecrypt): ...this. New argument "encrypt".
5753 (grub_cryptodisk_write): Implement.
5754 * grub-core/kern/emu/hostdisk.c (nwrite): Rename to ...
5755 (grub_util_fd_write): ... this. Make global.
5756 * include/grub/emu/hostdisk.h (grub_util_fd_write): New proto.
5758 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
5760 * include/grub/list.h (grub_list_remove): Don't crash if element is
5763 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
5765 Rename ofconsole to console.
5767 * grub-core/commands/terminal.c (handle_command): Handle ofconsole
5768 as sysnonym to console.
5769 * grub-core/term/ieee1275/ofconsole.c: Renamed to ..
5770 * grub-core/term/ieee1275/console.c: ... this. All users updated.
5771 Rename grub_ofconsole_ to grub_console_. All users updated
5772 (grub_console_term_output): Rename "ofconsole" to "console".
5773 * grub-core/term/terminfo.c (grub_cmd_terminfo): Handle "ofconsole"
5776 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
5778 * grub-core/loader/i386/pc/plan9.c (grub_cmd_plan9): Remove PXE
5780 * include/grub/disk.h (grub_disk_dev_id): Remove obsolete
5781 GRUB_DISK_DEVICE_UUID_ID, GRUB_DISK_DEVICE_PXE_ID and
5782 GRUB_DISK_DEVICE_FILE_ID.
5784 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
5786 * grub-core/kern/partition.c (grub_partition_get_name): Simplify logic
5787 and improve performance.
5789 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
5791 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Fix
5792 missing ieee1275/ prefix on whole disk.
5794 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
5796 * include/grub/powerpc/ieee1275/util/biosdisk.h: Remove.
5797 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
5799 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
5801 * grub-core/fs/cpio.c (handle_symlink): Fix a bug.
5803 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
5805 Merge common RAID and LVM logic to an abstract diskfilter.
5806 Add LDM support using the same framework.
5808 * Makefile.util.def (libgrubkern): Add grub-core/disk/ldm.c,
5809 grub-core/disk/diskfilter.c and grub-core/partmap/gpt.c.
5810 (libgrubmods): Remove grub-core/disk/raid.c and
5811 grub-core/partmap/gpt.c.
5812 * grub-core/Makefile.core.def (ldm): New module.
5813 (raid): Renamed to diskfilter. All users updated.
5814 * grub-core/disk/raid.c: Moved to ...
5815 * grub-core/disk/diskfilter.c: ... here.
5816 * grub-core/disk/diskfilter.c: Rename grub_raid_ to grub_diskfilter_.
5818 (find_array): Renamed to ...
5819 (find_lv): ... this. Support multi-LV. Skip nameless LVs
5820 (grub_is_array_readable): Renamed to ...
5821 (grub_is_lv_readable): ... this. Support multinode hierarchy.
5822 (insert_array): New argument id.
5823 (is_node_readable): New function.
5824 (scan_device): Rename to ...
5825 (scan_disk): .. this. Restrict to one disk.
5826 (scan_devices): New function.
5827 (grub_diskfilter_iterate): Support multi-LV.
5828 Skip invisible and nameless LVs.
5829 (grub_diskfilter_memberlist): Support multi-LV.
5830 (grub_diskfilter_read_node): New function.
5831 (grub_raid_read): Most of logic moved to ...
5832 (read_segment): ... here
5833 (read_lv): New function.
5834 (grub_diskfilter_get_vg_by_uuid): New function.
5835 (grub_diskfilter_make_raid): Likewise.
5836 * grub-core/disk/ldm.c: New file.
5837 * grub-core/disk/lvm.c (vg_list): Removed.
5838 (lv_count): Likewise.
5839 (scan_depth): Likewise.
5840 (is_lv_readable): Likewise.
5841 (grub_lvm_getvalue): Advance pointer past the number.
5843 (do_lvm_scan): Refactored into ...
5844 (grub_lvm_detect): ... this. Support raid.
5845 (grub_lvm_iterate): Removed.
5846 (grub_lvm_memberlist): Likewise.
5847 (grub_lvm_open): Likewise.
5848 (grub_lvm_close): Likewise.
5849 (read_lv): Likewise.
5850 (read_node): Likewise.
5851 (is_node_readable): Likewise.
5852 (is_lv_readable): Likewise.
5853 (grub_lvm_read): Likewise.
5854 (grub_lvm_write): Likewise.
5855 (grub_lvm_dev): Use diskfilter
5856 (GRUB_MOD_INIT): Likewise.
5857 (GRUB_MOD_FINI): Likewise.
5858 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Use
5860 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Likewise.
5861 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
5862 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Use
5863 grub_diskfilter_read_node.
5865 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Use
5866 grub_diskfilter_read_node.
5867 Support GRUB_RAID_LAYOUT_MUL_FROM_POS.
5868 * grub-core/kern/disk.c (grub_disk_dev_list): Make global.
5869 (grub_disk_dev_iterate): Move from here...
5870 * include/grub/disk.h (grub_disk_dev_iterate): ... to here. Inlined.
5871 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
5873 (grub_hostdisk_find_partition_start): Likewise.
5874 (grub_hostdisk_os_dev_to_grub_drive): New function.
5875 (grub_util_biosdisk_get_osdev): Check that disk is biosdisk.
5876 * grub-core/kern/emu/hostdisk.c (make_device_name): Move to ...
5877 * util/getroot.c (make_device_name): ... here.
5878 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
5880 * util/getroot.c (grub_util_get_dm_node_linear_info): ...here.
5881 * grub-core/kern/emu/hostdisk.c
5882 (convert_system_partition_to_system_disk): Move to ...
5883 * util/getroot.c (convert_system_partition_to_system_disk): ...here.
5884 * grub-core/kern/emu/hostdisk.c (device_is_wholedisk): Move to ...
5885 * util/getroot.c (device_is_wholedisk): ... here.
5886 * grub-core/kern/emu/hostdisk.c (find_system_device): Move to ...
5887 * util/getroot.c (find_system_device): ... here.
5888 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_present):
5890 * util/getroot.c (grub_util_biosdisk_is_present): ...here.
5891 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
5893 * util/getroot.c (grub_util_biosdisk_get_grub_dev): ... here.
5895 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
5897 * util/getroot.c (grub_util_biosdisk_is_floppy): ... here.
5898 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Made global.
5899 * include/grub/disk.h (grub_disk_dev_id): Replaced RAID and LVM with
5901 * include/grub/raid.h: Renamed to ...
5902 * include/grub/diskfilter.h: ... this.
5903 * include/grub/diskfilter.h: Rename grub_raid_* to grub_diskfilter_*
5904 (GRUB_RAID_LAYOUT_*): Make into array.
5905 (GRUB_RAID_LAYOUT_MUL_FROM_POS): New value.
5906 (grub_diskfilter_vg): New struct.
5907 (grub_diskfilter_pv_id): Likewise.
5908 (grub_raid_member): Removed.
5909 (grub_raid_array): Likewise.
5910 (grub_diskfilter_pv): New struct.
5911 (grub_diskfilter_lv): Likewise.
5912 (grub_diskfilter_segment): Likewise.
5913 (grub_diskfilter_node): Likewise.
5914 (grub_diskfilter_get_vg_by_uuid): New proto.
5915 (grub_raid_register): Inline.
5916 (grub_diskfilter_unregister): Likewise.
5917 (grub_diskfilter_make_raid): New proto.
5918 (grub_diskfilter_vg_register): Likewise.
5919 (grub_diskfilter_read_node): Likewise.
5920 (grub_diskfilter_get_pv_from_disk) [GRUB_UTIL]: Likewise.
5921 * include/grub/emu/hostdisk.h (grub_util_get_ldm): New proto.
5922 (grub_util_is_ldm): Likewise.
5923 (grub_util_ldm_embed) [GRUB_UTIL]: Likewise.
5924 (grub_hostdisk_find_partition_start): Likewise.
5925 (grub_hostdisk_os_dev_to_grub_drive): Likewise.
5926 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_LDM):
5928 (grub_gpt_partition_map_iterate): New proto.
5929 * include/grub/lvm.h (grub_lvm_vg): Removed.
5930 (grub_lvm_pv): Likewise.
5931 (grub_lvm_lv): Likewise.
5932 (grub_lvm_segment): Likewise.
5933 (grub_lvm_node): Likewise.
5934 * util/getroot.c [...]
5935 * util/grub-probe.c (probe_raid_level): Handle diskfilter.
5936 (probe_abstraction): Likewise.
5937 * util/grub-setup.c (setup): Remove must_embed. Support LDM.
5938 (main): Remove dead logic.
5940 2012-01-28 Vladimir Serbinenko <phcoder@gmail.com>
5942 Simplify root device discover and don't fail when trying to open
5945 * grub-core/disk/efi/efidisk.c (get_diskname_from_path_real): New
5947 (get_diskname_from_path): Likewise.
5948 (grub_efidisk_get_device_name): Use get_diskname_from_path instead
5951 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
5953 * grub-core/Makefile.core.def (setpci): Enable on all PCI platforms.
5955 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
5957 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Check that we don't go
5960 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
5962 * util/grub-install.in: Add missing \.
5963 Reported by: gentoofan
5965 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
5967 * grub-core/fs/squash4.c (xz_decompress): Fix return value.
5968 (direct_read): Use correct compressed size.
5969 (grub_squash_read_data): Likewise.
5971 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
5973 * docs/grub.texi (Platform limitations): New section.
5974 (Platform-specific operations): Likewise.
5975 * docs/grub-dev.texi (Porting): Likewise.
5977 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
5979 IEEE1275 disk write support.
5981 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_write): Make buffer
5983 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_write): Likewise.
5984 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_read): Move open
5985 and seek loginc to ...
5986 (grub_ofdisk_prepare): ... here.
5987 (grub_ofdisk_write): Implement.
5989 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
5991 ARC disk write support.
5993 * grub-core/disk/arc/arcdisk.c (handle_writable): New var.
5994 (reopen): New argument writable. All users updated.
5995 Handle required access mode.
5996 (grub_arcdisk_write): Implement.
5997 * include/grub/arc/arc.h (grub_arc_file_access): New enum.
5998 (grub_arc_firmware_vector): Make buffer to write a const buffer.
6000 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
6002 * grub-core/fs/btrfs.c (grub_btrfs_device): New field size.
6003 (read_sblock): Don't attempt to read superblocks outside the disk size.
6005 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
6007 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Use device size from
6008 first superblock to find the second one when possible.
6010 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
6012 * util/grub-install.in: Fix an ARC bug.
6013 Print a warning if no platform-specific setup is available.
6015 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
6017 Use static allocation rather than scratch pointer in reed_solomon.
6018 It decreases its size significantly and avoids a variable in .text.
6020 * grub-core/lib/reed_solomon.c (scratch): Removed.
6021 (chosenstat): New const or static array.
6027 (errvals): Likewise.
6029 (pol_evaluate): Replace x with log_x argument. All users updated.
6030 (syndroms): Removed.
6031 (gauss_solve): Use statically allocated arrays.
6032 (rs_recover): Likewise.
6033 Calculate syndroms directly.
6034 (decode_block): Use statically allocated arrays.
6035 (grub_reed_solomon_add_redundancy) [TEST]: Fix -DTEST compilation.
6036 (main) [TEST]: Allow -DTEST -DSTANDALONE.
6038 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
6040 Eliminate fixed limit on reed solomon decoder length.
6042 * grub-core/boot/i386/pc/lnxboot.S: Scan for multiboot signature
6043 rather than hardcoding the address.
6044 * grub-core/boot/i386/pc/startup_raw.S: Add new data field
6045 no_reed_solomon_length.
6046 Move gate_a20 to no-reed-solomon part.
6047 Don't force a particular size of no reed-solomon part.
6048 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
6050 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_LENGTH): New define.
6051 * util/grub-setup.c (setup): Read no_rs_length from the image itself.
6053 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
6055 * grub-core/commands/wildcard.c (match_files): Handle filenames
6056 without explicit device.
6057 (wildcard_expand): Don't add explicit device if not already present.
6058 * tests/grub_script_echo1.in: Add a new expansion test.
6060 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
6062 Replace single-linked with double-linked lists. It results in more
6063 compact and more efficient code.
6065 * grub-core/kern/list.c (grub_list_push): Moved from here ...
6066 * include/grub/list.h (grub_list_push): ... to here. Set prev.
6067 (grub_list_remove): Moved from here ...
6068 * include/grub/list.h (grub_list_remove): ... here. Use and set prev.
6069 (grub_prio_list_insert): Set prev.
6070 * include/grub/list.h (grub_list): Add prev. All users updated.
6072 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
6074 Handle newer autotools. Add some missing quotes while on it.
6076 * Makefile.am (pkglib_DATA): Remove update-grub_lib.
6077 (pkglib_DATA): Move grub-mkconfig_lib from here ...
6078 (pkgdata_DATA): ... here.
6079 * Makefile.util.def (update-grub_lib): Removed.
6080 * conf/Makefile.common (pkglib_DATA): Removed.
6081 (pkglib_SCRIPTS): Likewise.
6082 (pkgdata_DATA): New variable.
6083 * tests/util/grub-shell-tester.in: Replace pkglib with pkgdata where
6086 Remove unused variable while on it.
6087 * tests/util/grub-shell.in: Likewise.
6088 * util/grub-install.in: Likewise.
6089 * util/grub-mkconfig.in: Likewise.
6090 * util/grub-mknetdir.in: Likewise.
6091 * util/grub-mkrescue.in: Likewise.
6092 * util/grub-mkstandalone.in: Likewise.
6093 * util/grub.d/00_header.in: Likewise.
6094 * util/grub.d/10_hurd.in: Likewise.
6095 * util/grub.d/10_illumos.in: Likewise.
6096 * util/grub.d/10_kfreebsd.in: Likewise.
6097 * util/grub.d/10_linux.in: Likewise.
6098 * util/grub.d/10_netbsd.in: Likewise.
6099 * util/grub.d/10_windows.in: Likewise.
6100 * util/grub.d/20_linux_xen.in: Likewise.
6101 * util/grub.d/30_os-prober.in: Likewise.
6102 * util/update-grub_lib.in: Removed.
6104 2012-01-24 Seth Goldberg <seth.goldberg@oracle.com>
6106 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Relax checks as
6107 a workaround for intel problem.
6109 2012-01-23 Paulo de Rezende Pinatti <ppinatti@linux.vnet.ibm.com>
6110 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
6111 2012-01-23 pfsmorigo
6113 * util/grub-install.in: Support dd'in into PreP partition.
6114 * util/grub-probe.c (probe): Support discovering partition type.
6115 (main): Support -t msdos_parttype.
6117 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
6119 * grub-core/normal/crypto.c (grub_crypto_autoload): Prevent
6120 infinite recursion using counter.
6121 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_init): Defer s->crc32
6122 init to skip it if the magic check fails.
6123 (dec_stream_header): Init s->crc32.
6125 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
6126 2012-01-22 Zachary Bedell <pendorbound@gmail.com>
6127 2012-01-22 Richard Laager <rlaager@wiktel.com>
6129 * grub-core/fs/zfs/zfs.c (uberblock_verify): New parameter size.
6131 (find_bestub): Determine correct size.
6132 (fill_vdev_info_real): Fill ashift. New argument. All users updated.
6133 (scan_disk): Align the size down.
6134 Call check pool before find_bestub to have ashift.
6136 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
6138 * grub-core/lib/relocator.c (malloc_in_range): Remove couple of
6139 dprintf in no-malloc zone.
6141 2012-01-22 Mario Limonciello <mario_limonciello@dell.com>
6143 * configure.ac: Add back in test for limits.h.
6145 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
6147 Support 4K-sector NTFS.
6149 * include/grub/ntfs.h (GRUB_NTFS_MAX_MFT): Increase to 8.
6150 (grub_ntfs_data): Remove blocksize.
6151 * grub-core/fs/ntfs.c (fixup): Fix size comparison.
6152 Remove data argument. All users updated.
6154 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
6156 * grub-core/kern/mips/arc/init.c (grub_total_modules_size): Mark as
6157 being in .text to avoid dprel references.
6158 * include/grub/mips/loongson/kernel.h (grub_arch_machine): Likewise.
6159 * include/grub/mips/loongson/memory.h (grub_arch_memsize): Likewise.
6160 (grub_arch_highmemsize): Likewise.
6161 * include/grub/mips/loongson/time.h (grub_arch_busclock): Likewise.
6162 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): Likewise.
6163 * include/grub/mips/time.h (grub_arch_cpuclock): Likewise.
6165 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
6167 Support powerpc with GCC that defines __PPC__ but not __powerpc__.
6169 * config.h.in (__powerpc__) [__PPC__ && !__powerpc__]: New definition.
6170 * grub-core/lib/setjmp.S: Treat __PPC__ as equivalent to __powerpc__.
6172 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
6174 * include/grub/datetime.h (grub_get_datetime_cmos): Don't define in
6176 (grub_set_datetime_cmos): Likewise.
6178 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
6180 Make XZ compression parameters dependent on target and not host CPU.
6182 * configure.ac: Define GRUB_TARGET_CPU_XYZ series.
6183 * grub-core/lib/xzembed/xz_config.h: Use GRUB_TARGET_CPU_XYZ.
6185 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
6187 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): Remove
6188 set but not used variable.
6190 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
6192 * grub-core/fs/reiserfs.c (grub_reiserfs_uuid): Reject 0-uuid as
6193 created when no uuid support is compiled into mkfs.reiser.
6195 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
6197 * grub-core/fs/hfs.c (macroman_to_utf8): Convert / to :.
6198 (utf8_to_macroman): Do the opposite.
6199 * grub-core/fs/hfsplus.c (grub_hfsplus_iterate_dir): Convert / to :.
6201 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
6203 * configure.ac: Refise build qemu_mips w/o unifont.
6205 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
6207 Eliminate grub_min/grub_max prone to overflow usage.
6209 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Eliminate grub_min.
6210 (poll_nonroot_hub): Likewise.
6211 * grub-core/fs/affs.c (grub_affs_iterate_dir): Likewise.
6212 (grub_affs_label): Likewise.
6213 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Likewise.
6214 * grub-core/fs/hfs.c (grub_hfs_dir): Likewise.
6215 (grub_hfs_label): Likewise.
6216 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
6217 * grub-core/fs/zfs/zfs.c (MIN): Remove.
6218 (zap_leaf_array_equal): Use grub_size. Remove MIN.
6219 (zap_leaf_array_get): Likewise.
6220 (dnode_get_path): Likewise.
6221 * grub-core/io/lzopio.c (grub_lzopio_read): Eliminate grub_min.
6222 * grub-core/io/xzio.c (grub_xzio_read): Likewise.
6223 * grub-core/script/execute.c (grub_script_break): Likewise.
6224 * grub-core/script/lexer.c (grub_script_lexer_record): Eliminate
6226 * grub-core/script/yylex.l (grub_lexer_yyrealloc): Likewise.
6227 * include/grub/misc.h (grub_min): Removed.
6228 (grub_max): Likewise.
6230 2012-01-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
6232 * grub-core/fs/ext2.c (grub_ext2_iterate_dir): Ignore entries with
6235 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
6237 * grub-core/lib/posix_wrap/wctype.h (CHARCLASS_NAME_MAX): New define.
6239 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
6241 * include/grub/datetime.h (grub_datetime2unixtime): Fix offset.
6243 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
6245 * grub-core/lib/posix_wrap/stdlib.h (MB_CUR_MAX): Moved from here ...
6246 * grub-core/lib/posix_wrap/wchar.h (MB_CUR_MAX): ... here. Value fixed.
6248 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
6250 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Use grub_strcasecmp
6251 rather than a hack for grub_strncasemap.
6253 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
6255 Support multiple initrds
6256 Note: part of this was accidently committed in r3739.
6258 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Support multiple
6260 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
6261 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
6262 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
6263 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
6264 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
6266 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
6268 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Skip
6269 disks with unknown size.
6270 * grub-core/disk/raid.c (scan_devices): Allow disks with unknown sizes.
6272 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
6274 Remove defines pertaining to arbitrary limits not affecting GRUB
6277 * grub-core/fs/ext2.c (EXT2_PATH_MAX): Removed.
6278 (EXT2_MAX_SYMLINKCNT): Likewise.
6279 * grub-core/fs/nilfs2.c (NILFS_BTREE_LEVEL_MAX): Likewise.
6280 * grub-core/net/tftp.c (TFTP_MAX_PACKET): Likewise.
6281 * include/grub/i386/pc/pxe.h (GRUB_PXE_MIN_BLKSIZE): Likewise.
6282 (GRUB_PXE_MAX_BLKSIZE): Likewise.
6283 * include/grub/normal.h (GRUB_MAX_CMDLINE): Likewise.
6284 * include/grub/zfs/dnode.h (DN_MAX_INDBLKSHIFT): Likewise.
6285 (DN_MAX_OBJECT_SHIFT): Likewise.
6286 (DN_MAX_OFFSET_SHIFT): Likewise.
6287 (DN_MAX_OBJECT): Likewise.
6288 (DNODES_PER_LEVEL_SHIFT): Likewise.
6289 * include/grub/zfs/spa.h (SPA_MAXBLOCKSHIFT): Likewise.
6290 (SPA_MAXBLOCKSIZE): Likewise.
6291 (SPA_BLOCKSIZES): Likewise.
6292 * include/grub/zfs/zap_impl.h (MZAP_MAX_BLKSHIFT): Likewise.
6293 (MZAP_MAX_BLKSZ): Likewise.
6295 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
6297 * grub-core/fs/zfs/zfs.c (grub_zfs_read): Remove useless alloc and
6298 handle NULL appropriately.
6301 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
6305 * grub-core/efiemu/runtime/efiemu.c: explicitly include right
6307 (efiemu_set_virtual_address_map): Remove UINT_TO_PTR.
6308 * configure.ac: Fix efiemu check.
6310 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
6312 * util/grub.d/30_os-prober.in: Fix occurence of grub-probe instead of
6314 Reported by: adamwill
6316 2012-01-12 Seth Goldberg <seth.goldberg@oracle.com>
6318 * grub-core/lib/arg.c (grub_arg_parse): Fix NULL pointer dereference.
6320 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
6322 Fix handling of wide characters in gfxterm.
6324 * grub-core/term/gfxterm.c (grub_colored_char): Remove width and index.
6325 (clear_char): Likewise.
6326 (paint_char): Skip code == NULL chars.
6327 (grub_gfxterm_putchar): Set code = NULL on "shadowed" positions.
6329 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
6331 * grub-core/normal/charset.c: Move comment to right place.
6333 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
6335 * grub-core/fs/affs.c (grub_affs_bblock): Revert flags.
6336 (GRUB_AFFS_FLAG_FFS): Put back where it was.
6337 (grub_affs_mount): Revert the correct version checking.
6339 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
6341 * docs/grub.texi (Unicode): Mention several other unsupported features.
6343 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
6345 * grub-core/fs/squash4.c (squash_mount): Mark endian conversion in
6346 case statements as compile-time one.
6347 (direct_read): Prevent spurious warnings.
6348 (grub_squash_read_data): Likewise.
6350 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
6352 Various squash4 fixes and LZO and XZ support.
6354 * Makefile.util.def (libgrubmods.a): Add xzembed directory to cppflags.
6355 Add xzembed source files.
6356 * grub-core/Makefile.core.def (squash4): Add xzembed and minilzo flags.
6357 * grub-core/fs/squash4.c (grub_squash_super): New field compression.
6358 (grub_squash_inode): New subtype long_dir.
6359 (SQUASH_TYPE_LONG_DIR): New inode type.
6360 (COMPRESSION): New enum.
6361 (XZBUFSIZ): New const.
6362 (grub_squash_data): New fields blksz, decompress, xzdec, xzbuf.
6363 (read_chunk): Use data->decompress.
6364 (zlib_decompress): New function.
6365 (lzo_decompress): Likewise.
6366 (xz_decompress): Likewise.
6367 (squash_mount): Set new data fields.
6368 (grub_squash_iterate_dir): Handle long dir.
6369 (squash_unmount): Free xzdec and xzbuf.
6370 (grub_squash_open): Check ino type.
6371 (direct_read): Stylistic fixes. Use data->decompress.
6372 (grub_squash_read_data): Likewise.
6373 * grub-core/io/gzio.c (grub_gzio): Remove disk_input.
6374 (get_byte): Likewise.
6375 (grub_zlib_disk_read): Removed.
6376 * grub-core/lib/posix_wrap/sys/types.h (ssize_t): New type.
6377 (GRUB_POSIX_BOOL_DEFINED): New define.
6378 * grub-core/lib/posix_wrap/unistd.h: Include sys/types.h.
6379 * grub-core/lib/xzembed/xz.h: Addmissing includes.
6380 [!GRUB_POSIX_BOOL_DEFINED]: Define bool.
6381 * include/grub/deflate.h (grub_zlib_disk_read): Removed.
6383 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
6385 Don't override more informative errors.
6387 * grub-core/commands/acpi.c (grub_cmd_acpi): Don't override errors.
6388 * grub-core/font/font.c (open_section): Likewise.
6389 * grub-core/loader/i386/bsd.c (grub_bsd_load_aout): New argument
6390 filename. Don't override errors.
6391 (grub_cmd_openbsd_ramdisk): Don't override errors.
6392 * grub-core/loader/i386/linux.c (grub_cmd_linux): Likewise.
6393 (grub_cmd_initrd): Likewise.
6394 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
6395 (grub_cmd_initrd): Likewise.
6396 * grub-core/loader/ia64/efi/linux.c (grub_load_elf64): Likewise.
6397 (grub_cmd_linux): Likewise.
6398 (grub_cmd_initrd): Likewise.
6399 (grub_cmd_payload): Likewise.
6400 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
6401 * grub-core/loader/multiboot.c (grub_cmd_multiboot): Likewise.
6402 (grub_cmd_module): Likewise.
6403 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
6404 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
6405 * grub-core/loader/xnu.c (grub_xnu_load_driver): Likewise.
6406 (grub_cmd_xnu_mkext): Likewise.
6407 (grub_cmd_xnu_ramdisk): Likewise.
6408 (grub_xnu_check_os_bundle_required): Likewise.
6409 (grub_xnu_load_kext_from_dir): Likewise.
6410 (grub_cmd_xnu_kextdir): Likewise.
6411 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Likewise.
6413 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
6415 * grub-core/fs/minix.c (grub_minix_mount) [MODE_MINIX3]: Treat 0xffff
6416 as 1024 in block size field. Found on one of my test images.
6417 Small optimisation while on it.
6419 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
6421 * docs/grub.texi (Filesystems): Mention SFS as Latin1 filesystem.
6422 * grub-core/fs/sfs.c (grub_sfs_mount): Fix a memory leak while on it.
6423 (grub_sfs_iterate_dir): Convert Latin1 to UTF8. Stylistic and
6424 performance fixes while on it.
6425 (grub_sfs_close): Fix memory leak while on it.
6426 (grub_sfs_label): Convert Latin1 to UTF-8.
6428 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
6430 * grub-core/fs/hfs.c (grub_hfs_dir): Cap keylen to actually available
6431 space to avoid overflows.
6432 (grub_hfs_label): Convert from macroman to UTF-8.
6434 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
6436 * grub-core/fs/affs.c (grub_affs_label): Interpret label as latin1.
6438 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
6440 * grub-core/normal/menu.c (menu_init): Don't stop menu init at gfxterm.
6442 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
6444 * unicode: Import Unicode 6.0 data.
6446 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
6448 * grub-core/term/gfxterm.c (grub_gfxterm_putchar): Don't set values
6451 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
6453 Avoid cutting in the middle of UTF-8 character.
6455 * include/grub/charset.h (grub_getend): New function.
6456 * grub-core/script/function.c (grub_script_function_find): Use
6458 * grub-core/normal/completion.c (add_completion): Likewise.
6460 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
6462 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Small stylistic fix.
6463 (grub_bidi_line_logical_to_visual): Skip tags. They are deprecated.
6464 * include/grub/unicode.h (GRUB_UNICODE_TAG_START): New enum value.
6465 (GRUB_UNICODE_TAG_END): Likewise.
6466 (GRUB_UNICODE_LAST_VALID): Likewise.
6468 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
6470 * include/grub/unicode.h (grub_unicode_compact_range): Replace end with
6471 len and make it smaller. All users updated.
6472 * util/import_unicode.py: Put length and not end character.
6475 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
6477 Make better Unicode-compliant and unify some UTF-8 code pathes.
6479 * grub-core/normal/charset.c (grub_utf8_to_utf16): Don't eat possibly
6481 (grub_is_valid_utf8): Use grub_utf8_process.
6482 Check resulting code range.
6483 (grub_utf8_to_ucs4): Use grub_utf8_process.
6484 * include/grub/charset.h (grub_utf16_to_utf8): Don't eat up a possibly
6487 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
6489 * grub-core/io/bufio.c (grub_bufio_read): Fix handling of corner cases.
6491 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
6493 * docs/grub.texi (Filesystems): Mention AFS.
6495 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
6497 * docs/grub.texi (Filesystems): Clarify restrictions.
6498 (Regexp): Mention non-Unicode regexp behaviour.
6499 (Other): Mention non-Unicode matching behaviour.
6501 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
6503 Make HFS implementation use MacRoman.
6505 * grub-core/fs/hfs.c (MAX_UTF8_PER_MAC_ROMAN): New define.
6506 (macroman): New const array.
6507 (macroman_to_utf8): New function.
6508 (utf8_to_macroman): Likewise.
6509 (grub_hfs_find_dir): Use utf8_to_macroman.
6510 (grub_hfs_dir): Use macroman_to_utf8.
6511 Set case_insensitive.
6513 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
6515 * docs/grub.texi (Filesystems): Add IEEE1275 full-path example.
6517 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
6519 Integrate hints into autogeneration scripts.
6521 * docs/grub.texi (Filesystems): Add a hostdisk example.
6522 * Makefile.util.def (grub-mkdevicemap): Remove ofpath.
6523 (grub-probe): Add ofpath.
6524 * gentpl.py: Remove group nosparc64.
6525 * grub-core/commands/search.c (cache_entry): New struct.
6527 (FUNC_NAME): Use and save cache. Fix handling of trailing comma.
6528 * grub-core/commands/search_wrap.c (options): Add platform-specific
6530 (grub_cmd_search): Handle platform-specific hints.
6531 (GRUB_MOD_INIT): Declare grub_cmd_search as accept_dash.
6532 * grub-core/kern/emu/hostdisk.c (map): New field device_map.
6533 (grub_util_biosdisk_data): Likewise.
6534 (grub_util_biosdisk_open): Set device_map.
6535 (read_device_map): Handle "" as indication of no map.
6537 (find_system_device): Add hostdisk/ prefix for autogenerated entries.
6538 (grub_util_biosdisk_get_compatibility_hint): New function.
6539 * grub-core/normal/main.c (features): Add feature_platform_search_hint.
6540 * include/grub/emu/hostdisk.h
6541 (grub_util_biosdisk_get_compatibility_hint): New proto.
6542 * util/grub-install.in: Don't call grub-mkdevicemap.
6543 Add platform-specific hint to load.cfg.
6544 * util/grub-mkconfig.in: Don't call grub-mkdevicemap.
6545 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
6546 hints. Set root preliminary to compatibility hint, not to OS name.
6547 * util/grub-probe.c (PRINT_*): Add hints.
6548 (print): Make static.
6549 (escape_of_path): New function.
6550 (guess_bios_drive): Likewise.
6551 (guess_efi_drive): Likewise.
6552 (guess_baremetal_drive): Likewise.
6553 (print_full_name): Likewise.
6554 (probe): Handle hints.
6556 * util/ieee1275/devicemap.c: Removed.
6557 * util/ieee1275/ofpath.c (find_obppath): Allow to fail. All users
6559 (grub_util_devname_to_ofpath): Return NULL on failure.
6561 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Fix
6563 * util/getroot.c (grub_util_pull_device): Fix memory leak.
6565 * po/POTFILES.in: Regenerated.
6567 Allow purely long options
6569 * grub-core/lib/arg.c (SHORT_ARG_HELP): Removed.
6570 (SHORT_ARG_USAGE): Likewise.
6571 (grub_arg_show_help): Compare opt with help_options.
6572 (parse_option): Receive opt as argument. If makes big simplificatons.
6575 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
6577 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN):
6578 Restructure to avoid warning.
6580 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
6582 * util/grub-install.in: Account for possible escaped comma in device
6585 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
6587 * util/ieee1275/ofpath.c (of_path_of_ide): Fix address for secondary
6590 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
6592 * grub-core/kern/ieee1275/openfw.c (grub_devalias_iterate): Fix
6593 allocation and zero-setting.
6594 (grub_ieee1275_get_devname): Check that alias is complete.
6596 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
6598 * grub-core/kern/disk.c (grub_disk_read): Fix hook calling for
6601 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
6603 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Add ieee1275/
6605 (grub_ofdisk_open): Check and discard ieee1275 prefix.
6606 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
6607 Add ieee1275 prefix.
6609 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
6611 * docs/grub.texi (Filesystems): Update.
6613 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
6615 Support odc, newc and bigendian cpio formats.
6617 * Makefile.util.def (libgrubmods): Add odc.c, newc.c and cpio_be.c.
6618 * grub-core/Makefile.core.def (newc): New module.
6620 (cpio_be): Likewise.
6621 * grub-core/fs/cpio.c (ALIGN_CPIO): New macro.
6624 (head) [MODE_ODC]: Adapt for the format.
6625 (head) [MODE_NEWC]: Likewise.
6626 (head) [!MODE_*]: Write fields of interest as arrays.
6627 (MAGIC_USTAR): Removed.
6628 (read_number) [MODE_NEWC]: Change to hex.
6629 (read_number) [!MODE_*]: Parse binary arrays.
6630 (grub_cpio_find_file): Factor out the code for better structure and
6631 always use read_number.
6632 (grub_cpio_mount): Use MAGIC and MAGIC2.
6633 (grub_cpio_dir): Exit on first hook non-0 return.
6634 (grub_cpio_fs) [MODE_ODC]: Set name to odc.
6635 (grub_cpio_fs) [MODE_NEWC]: Set name to newc.
6636 (GRUB_MOD_INIT) [MODE_ODC]: Set name to odc.
6637 (GRUB_MOD_INIT) [MODE_NEWC]: Set name to newc.
6638 (GRUB_MOD_FINI) [MODE_ODC]: Set name to odc.
6639 (GRUB_MOD_FINI) [MODE_NEWC]: Set name to newc.
6640 * grub-core/fs/newc.c: New file.
6641 * grub-core/fs/odc.c: Likewise.
6642 * grub-core/fs/cpio_be.c: Likewise.
6644 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
6646 Fix handling of tar numbers occupying the whole field.
6648 * grub-core/fs/cpio.c (read_number): New function.
6649 (grub_cpio_find_file): Use read_number instead of strtoull.
6651 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
6653 * grub-core/fs/cpio.c (grub_cpio_find_file): Fix handling of names
6654 occupying the whole field size.
6656 2011-12-23 Lukas Anzinger <l.anzinger@gmail.com>
6658 * util/grub-mkconfig_lib.in (version_test_gt): Fix variable names.
6660 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
6662 * grub-core/net/net.c (grub_cmd_delroute): Add missing out condition.
6664 2011-12-23 Seth Goldberg <seth.goldberg@oracle.com>
6666 * grub-core/Makefile.core.def (lzma_decompress): Add missing
6669 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
6671 * util/getroot.c (ESCAPED_PATH_MAX): New define.
6672 (mountinfo_entry): Increase the field size to take escaping into
6674 (find_root_device_from_libzfs): Add one byte to size of strings for
6677 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
6679 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy): Add
6681 * util/grub-setup.c (setup): Likewise.
6683 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
6685 * grub-core/boot/i386/pc/startup_raw.S: Add missing argument for
6688 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
6690 * docs/grub.texi (Internationalisation): New section.
6692 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
6694 * docs/grub.texi (Loopback booting): New section.
6696 2011-12-22 Keshav P R <the.ridikulus.rat@gmail.com>
6698 * util/grub-mkstandalone.in: Fix minor typo errors.
6700 2011-12-20 Vladimir Serbinenko <phcoder@gmail.com>
6702 IPv6, TCP, HTTP, ICMP and DNS support. Several cleanups and bugfixes.
6704 * grub-core/Makefile.core.def (net): Add net/dns.c, net/tcp.c,
6705 net/icmp.c and net/icmp6.c.
6707 (priority_queue): Likewise.
6708 * grub-core/io/bufio.c: Rewritten.
6709 * grub-core/lib/legacy_parse.c (legacy_command): New argument type
6710 TYPE_WITH_CONFIGFILE_OPTION.
6711 (legacy_commands): Add bootp and dhcp.
6712 (is_option): Handle TYPE_WITH_CONFIGFILE_OPTION.
6713 (grub_legacy_parse): Likewise.
6714 * grub-core/lib/priority_queue.c: New file.
6715 * grub-core/net/arp.c: Add missing license header.
6716 (arp_find_entry): Removed.
6717 (arp_find_entry): Likewise.
6718 (grub_net_arp_resolve): Rename to ...
6719 (grub_net_arp_send_request): ...this.
6720 (grub_net_arp_receive): New card argument.
6721 * grub-core/net/bootp.c (parse_dhcp_vendor): Clean up.
6722 Set router and DNS server.
6723 (grub_net_configure_by_dhcp_ack): Handle routing information.
6724 (grub_cmd_bootp): Set checksum.
6725 (grub_bootp_init): Remove net_dhcp.
6726 * grub-core/net/dns.c: New file.
6727 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Wait for
6729 (get_card_packet): Handle allocation.
6730 (grub_efinet_findcards): Set mtu.
6731 * grub-core/net/drivers/emu/emunet.c: Add missing license header.
6732 (get_card_packet): Handle allocation.
6734 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Handle allocation
6735 (GRUB_MOD_INIT): Set mtu.
6736 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnetcard_data): Remove
6738 (get_card_packet): Handle allocation.
6739 (grub_ofnet_findcards): Set mtu.
6740 * grub-core/net/ethernet.c (send_ethernet_packet): Add compile time
6742 (grub_net_recv_ethernet_packet): Handle IPv6.
6743 * grub-core/net/http.c: New file.
6744 * grub-core/net/icmp.c: Likewise.
6745 * grub-core/net/icmp6.c: Likewise.
6746 * grub-core/net/ip.c (ip6addr): New type.
6748 (reassemble): Likewise.
6749 (cmp): New function.
6750 (reassembles): New variable.
6751 (grub_net_ip_chksum): Handle 0xffff sum and unaligned buffers.
6753 (send_fragmented): New function.
6754 (grub_net_send_ip_packet): Rename to ...
6755 (grub_net_send_ip4_packet): ... this. Send fragmented if needed.
6757 (grub_net_recv_ip_packets): Rename to ...
6758 (handle_dgram): ... this. Check checksum. Handle non-UDP.
6759 (free_rsm): New function.
6760 (free_old_fragments): Likewise.
6761 (grub_net_recv_ip4_packets): New function.
6762 (grub_net_send_ip6_packet): Likewise.
6763 (grub_net_send_ip_packet): Likewise.
6764 (grub_net_recv_ip6_packets): Likewise.
6765 (grub_net_recv_ip_packets): Likewise.
6766 * grub-core/net/net.c (grub_net_link_layer_entry): New struct.
6767 (LINK_LAYER_CACHE_SIZE): New const.
6768 (link_layer_find_entry): New function.
6769 (grub_net_link_layer_add_address): Likewise.
6770 (grub_net_link_layer_resolve_check): Likewise.
6771 (grub_net_link_layer_resolve): Likewise.
6772 (grub_net_ipv6_get_slaac): Likewise.
6773 (grub_net_ipv6_get_link_local): Likewise.
6774 (grub_cmd_ipv6_autoconf): Likewise.
6775 (parse_ip): Handle one number representation.
6776 (parse_ip6): New functoion.
6777 (match_net): Handle IPv6.
6778 (grub_net_resolve_address): Handle IPv6 and DNS.
6779 (grub_net_resolve_net_address): Handle IPv6.
6780 (route_cmp): New function.
6781 (grub_net_route_address): Find best route.
6782 (grub_net_addr_to_str): Handle IPv6.
6783 (grub_net_addr_cmp): New function.
6784 (grub_net_add_addr): Register local route.
6785 (print_net_address): Handle net address.
6786 (grub_net_poll_cards): Retransmit TCP.
6787 (grub_net_poll_cards_idle_real): Likewise.
6788 (have_ahead): New function.
6789 (grub_net_seek_real): Use underlying seek.
6790 (GRUB_MOD_INIT): Register net_ipv6_autoconf and init dns.
6791 * grub-core/net/tcp.c: New file.
6792 * grub-core/net/tftp.c (tftp_data): Add priority_queue.
6793 (cmp): New function.
6795 (tftp_receive): Handle unordered input.
6796 (destroy_pq): New function.
6797 (tftp_close): Close pq.
6798 * grub-core/net/udp.c: Put missing license header.
6799 (grub_net_udp_socket): New function.
6800 (udp_socket_register): Likewise.
6801 (grub_net_udp_close): Likewise.
6802 (grub_net_recv_udp_packet): Check checksum.
6803 * include/grub/efi/api.h (grub_efi_simple_network): Add status.
6804 * include/grub/misc.h (grub_memchr): New function.
6805 * include/grub/net.h (GRUB_NET_*_SIZE): New enum.
6806 (grub_net_card_driver): Return buf in recv.
6807 (grub_net_slaac_mac_list): New struct.
6808 (grub_network_level_protocol_id): Add ipv6.
6809 (grub_net_network_level_addr): Likewise.
6810 (grub_net_network_level_net_addr): Likewise.
6811 (grub_net_app_protocol): Add seek.
6812 (grub_net_socket): Removed.
6813 (grub_net_sockets): Likewise.
6814 (grub_net_socket_register): Likewise.
6815 (grub_net_socket_unregister): Likewise.
6816 (FOR_NET_SOCKETS): Likewise.
6817 (grub_net_add_addr): Add const.
6818 (GRUB_NET_BOOTP_*): New enum.
6819 (grub_net_addr_cmp): New proto.
6820 (GRUB_NET_MAX_STR_ADDR_LEN): Take IPV6 into account.
6821 (GRUB_NET_MAX_STR_HWADDR_LEN): New define.
6822 (grub_net_hwaddr_to_str): NEw proto.
6823 (FOR_NET_NETWORK_LEVEL_INTERFACES): New macro.
6824 (FOR_NET_NETWORK_LEVEL_INTERFACES_SAFE): Handle NULL.
6825 (grub_dns_init): New proto.
6826 (grub_dns_fini): Likewise.
6827 (grub_net_tcp_retransmit): Likewise.
6828 (grub_net_link_layer_add_address): Likewise.
6829 (grub_net_link_layer_resolve_check): Likewise.
6830 (grub_net_link_layer_resolve): Likewise.
6831 (grub_net_dns_lookup): Likewise.
6832 (grub_net_add_dns_server): Likewise.
6833 (grub_net_remove_dns_server): Likewise.
6834 (GRUB_NET_TRIES): New const.
6835 (GRUB_NET_INTERVAL): Likewise.
6836 * include/grub/net/arp.h: Mostly rewritten.
6837 * include/grub/net/ethernet.h (grub_net_ethertype_t): New enum.
6838 * include/grub/net/ip.h: Mostly rewritten.
6839 * include/grub/net/netbuff.h: Indent.
6840 * include/grub/net/tcp.h: New file.
6841 * include/grub/net/udp.h: Mostly rewritten.
6842 * include/grub/priority_queue.h: New file.
6843 * include/grub/types.h (PRIdGRUB_SSIZE): New define.
6844 (grub_swap_bytes64_compile_time): Likewise.
6845 (grub_cpu_to_be16_compile_time): Likewise.
6846 (grub_cpu_to_be32_compile_time): Likewise.
6847 (grub_cpu_to_be64_compile_time): Likewise.
6848 (grub_be_to_cpu64_compile_time): Likewise.
6850 2011-12-16 Vladimir Serbinenko <phcoder@gmail.com>
6852 * grub-core/commands/i386/pc/drivemap.c (int13slot): Replace
6853 UINT_TO_PTR with cast.
6855 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
6857 * util/import_gcry.py: Skip _gcry_rmd160_mixblock and serpent_test. We
6860 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
6862 * util/import_gcry.py: Don't add include camellia.h to camellia.c. It's
6865 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
6867 * util/grub-mkimage.c (generate_image): Clean multiboot header to avoid
6870 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
6872 * grub-core/lib/libgcrypt/cipher/md4.c (transform) [WORDS_BIGENDIAN]:
6873 Add missing const attribute.
6874 * grub-core/lib/libgcrypt/cipher/md5.c (transform) [WORDS_BIGENDIAN]:
6876 * grub-core/lib/libgcrypt/cipher/rmd160.c (transform) [WORDS_BIGENDIAN]:
6879 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
6881 * grub-core/lib/libgcrypt/cipher/serpent.c (serpent_key_prepare): Fix
6883 (serpent_setkey): Likewise.
6884 (serpent_encrypt_internal): Likewise.
6885 (serpent_decrypt_internal): Likewise.
6886 (serpent_encrypt): Don't put an alignment-increasing cast.
6887 (serpent_decrypt): Likewise.
6888 (serpent_test): Likewise.
6890 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
6892 * grub-core/loader/multiboot.c (grub_cmd_module): Fix target address.
6894 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
6896 Replace UINT_TO_PTR and PTR_TO_UINT with explicit grub_addr_t casts.
6898 * include/grub/types.h (UINT_TO_PTR): Removed. All users switched to
6900 (PTR_TO_UINT64): Likewise.
6901 (PTR_TO_UINT32): Likewise.
6903 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
6905 * util/grub-mkimage.c (generate_image): Decrease the higher limit
6907 * util/grub-setup.c (setup): Don't add redundancy past the higher load
6910 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
6912 * grub-core/gfxmenu/gui_label.c (label_paint): Handle the case
6913 text_width > available width a bit more gracefully.
6915 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
6917 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Fix
6918 current address calculation.
6920 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
6922 * grub-core/lib/reed_solomon.c (decode_block): Allocate on heap and not
6924 (encode_block): Likewise.
6926 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
6928 * grub-core/boot/i386/pc/startup_raw.S: Clear direction flag for
6931 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
6933 * grub-core/boot/i386/pc/startup_raw.S: Move realmode routines to
6934 non-RS part to avoid RS messing with GDT.
6935 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
6936 Increase to suit in realmode routines.
6938 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
6940 * grub-core/kern/i386/realmode.S: Increase alignment.
6941 * grub-core/boot/i386/pc/startup_raw.S: Likewise.
6943 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
6945 * grub-core/lib/reed_solomon.c (init_powx): Set gf_powx_inv[0] just to
6947 (syndroms): Compute 0 syndrom.
6948 (rs_recover): Use 0 syndrom.
6950 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
6952 * include/grub/kernel.h (FOR_MODULES): Make it a bit faster.
6954 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
6956 * include/grub/types.h (GRUB_PROPERLY_ALIGNED_ARRAY): Add missing
6959 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
6961 * grub-core/gfxmenu/widget-box.c (get_left_pad): Take corners into
6963 (get_top_pad): Likewise.
6964 (get_right_pad): Likewise.
6965 (get_bottom_pad): Likewise.
6967 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
6969 * grub-core/gfxmenu/gui_list.c (draw_menu): Don't use assignment in if.
6971 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
6973 * include/grub/efi/api.h (grub_efi_memory_descriptor): Add packed
6974 attribute as the structure isn't guaranteed to be properly aligned.
6975 (grub_efi_pci_device_path): Likewise.
6976 (grub_efi_pccard_device_path): Likewise.
6977 (grub_efi_memory_mapped_device_path): Likewise. Additionaly explicitly
6978 specify the size of `memory_type'.
6979 (grub_efi_vendor_device_path): Likewise.
6980 (grub_efi_controller_device_path): Likewise.
6981 (grub_efi_acpi_device_path): Likewise.
6982 (grub_efi_expanded_acpi_device_path): Likewise.
6983 (grub_efi_atapi_device_path): Likewise.
6984 (grub_efi_scsi_device_path): Likewise.
6985 (grub_efi_fibre_channel_device_path): Likewise.
6986 (grub_efi_1394_device_path): Likewise.
6987 (grub_efi_usb_device_path): Likewise.
6988 (grub_efi_usb_class_device_path): Likewise.
6989 (grub_efi_i2o_device_path): Likewise.
6990 (grub_efi_mac_address_device_path): Likewise.
6991 (grub_efi_ipv4_device_path): Likewise.
6992 (grub_efi_ipv6_device_path): Likewise.
6993 (grub_efi_infiniband_device_path): Likewise.
6994 (grub_efi_uart_device_path): Likewise.
6995 (grub_efi_vendor_messaging_device_path): Likewise.
6996 (grub_efi_hard_drive_device_path): Likewise.
6997 (grub_efi_cdrom_device_path): Likewise.
6998 (grub_efi_vendor_media_device_path): Likewise.
6999 (grub_efi_file_path_device_path): Likewise.
7000 (grub_efi_protocol_device_path): Likewise.
7001 (grub_efi_piwg_device_path): Likewise.
7002 (grub_efi_bios_device_path): Likewise.
7004 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
7006 * include/grub/charset.h (grub_utf16_to_utf8): Make src a const pointer.
7007 (grub_ucs4_to_utf8_alloc): Likewise.
7008 (grub_ucs4_to_utf8): Likewise.
7009 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Likewise.
7010 (grub_ucs4_to_utf8_alloc): Likewise.
7012 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
7014 AFFS never uses unicode.
7016 * include/grub/charset.h (GRUB_MAX_UTF8_PER_LATIN1): New const.
7017 (grub_latin1_to_utf8): New inline function.
7018 * grub-core/fs/affs.c (grub_affs_iterate_dir): Convert latin1 to UTF8.
7020 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7022 * grub-core/fs/romfs.c (grub_romfs_mount): Fix pointer comparison
7025 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7027 * grub-core/fs/squash4.c (grub_squash_inode): Fix field sizes.
7028 (grub_squash_dirent_header): Likewise.
7029 (read_chunk): Don't double swap.
7030 (grub_squash_iterate_dir): Fix swap sizes.
7032 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7034 * grub-core/fs/jfs.c (grub_jfs_getent): Handle UTF16 endianness.
7036 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7038 * grub-core/fs/hfs.c (grub_hfs_find_node): Handle unaligned keys.
7039 (grub_hfs_iterate_dir): Likewise.
7041 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7043 Fix video on platforms where unaligned access is forbidden.
7044 Make several optimisations while on it.
7046 * grub-core/video/fb/fbblit.c (grub_video_fbblit_replace_directN):
7047 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
7048 (grub_video_fbblit_replace_32bit_1bit): Likewise.
7049 (grub_video_fbblit_replace_24bit_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
7051 (grub_video_fbblit_replace_16bit_1bit):
7052 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
7053 (grub_video_fbblit_replace_8bit_1bit): Likewise.
7054 (grub_video_fbblit_replace_BGRX8888_RGBX8888): Likewise.
7055 (grub_video_fbblit_replace_BGRX8888_RGB888): Likewise.
7056 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
7057 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
7058 (grub_video_fbblit_replace_BGR888_RGB888): Likewise.
7059 (grub_video_fbblit_replace_RGBX8888_RGB88): Likewise.
7060 (grub_video_fbblit_replace_RGB888_RGBX888): Likewise.
7061 (grub_video_fbblit_replace_RGB888_RGBX8888): Likewise.
7062 (grub_video_fbblit_replace_index_RGBX8888): Likewise.
7063 (grub_video_fbblit_replace_index_RGB888): Likewise.
7064 (grub_video_fbblit_blend_BGRA8888_RGBA8888): Likewise.
7065 (grub_video_fbblit_blend_BGR888_RGBA8888): Likewise.
7066 (grub_video_fbblit_blend_RGBA8888_RGBA8888): Likewise.
7067 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
7068 (grub_video_fbblit_blend_index_RGBA8888): Likewise.
7069 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
7070 (grub_video_fbblit_blend_XXX888_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
7072 (grub_video_fbblit_blend_XXX565_1bit):
7073 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
7074 * grub-core/video/fb/fbfill.c (grub_video_fbfill_direct32): Likewise.
7075 * grub-core/video/fb/fbutil.c (grub_video_fb_get_video_ptr): Return
7077 * grub-core/video/fb/video_fb.c (common_blitter)
7078 [!GRUB_HAVE_UNALIGNED_ACCESS]: Skip disabled blitters.
7079 (grub_video_fb_create_render_target_from_pointer)
7080 [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
7081 * include/grub/fbutil.h (grub_video_fb_get_video_ptr): Return void *.
7082 * include/grub/i386/types.h (GRUB_HAVE_UNALIGNED_ACCESS): New
7084 * include/grub/x86_64/types.h (GRUB_HAVE_UNALIGNED_ACCESS): Likewise.
7086 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7088 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Support
7089 HH22 and HM10 relocations.
7091 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7093 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix fmt2 parsing.
7095 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7097 * grub-core/commands/videotest.c (grub_cmd_videotest): Check that
7098 allocation succeeded.
7100 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7102 * grub-core/fs/iso9660.c (grub_iso9660_convert_string): Make first
7103 argument a u8 pointer. All users updated.
7104 Handle unaligned buffers.
7106 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7108 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Force inlining of
7109 add_part to workaround compiler bug.
7111 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7113 * include/grub/kernel.h (FOR_MODULES): Preserve alignment invariants.
7115 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7117 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_elfsyms):
7118 Reserve alignment invariants.
7119 (grub_multiboot_load): Likewise.
7120 (retrieve_video_parameters): Likewise.
7121 (grub_multiboot_make_mbi): Likewise.
7123 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7125 * grub-core/loader/i386/xnu.c (grub_xnu_devprop_remove_property): Fix
7128 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7130 * grub-core/disk/pata.c (grub_pata_pio_read): Handle unaligned buffer.
7131 (grub_pata_pio_write): Likewise.
7133 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7135 Add noreturn attributes and remove unreachable code.
7137 * grub-core/bus/cs5536.c (grub_cs5536_smbus_wait): Remove unreachable
7139 * grub-core/commands/halt.c (grub_cmd_halt): Remove unreachable
7140 code. Mark as noreturn.
7141 * grub-core/commands/minicmd.c (grub_mini_cmd_exit): Likewise.
7142 * grub-core/commands/reboot.c (grub_cmd_reboot): Likewise.
7143 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Remove
7145 * grub-core/kern/main.c (grub_main): Mark as noreturn.
7146 * grub-core/kern/rescue_reader.c (grub_rescue_run): Likewise.
7147 * grub-core/lib/posix_wrap/stdlib.h (abort): Likewise.
7148 * grub-core/normal/menu.c (run_menu): Remove unreachable code.
7149 * include/grub/kernel.h (grub_main): Mark as noreturn.
7150 * include/grub/reader.h (grub_rescue_run): Likewise.
7152 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7154 * include/grub/i386/qemu/memory.h (grub_machine_mmap_init): Remove
7155 redundant declaration.
7157 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7159 * include/grub/net.h (grub_net_network_level_interfaces): Remove
7160 redundant declaration.
7161 (FOR_NET_NETWORK_LEVEL_INTERFACES): Move to appropriate place.
7163 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7165 * grub-core/commands/hdparm.c (le16_to_char): Make src and dest uint16 *
7166 to ensure alignment.
7167 (grub_hdparm_print_identify): Make argument uint16 * to ensure
7168 alignment. Ensure tmp alignment.
7169 (grub_cmd_hdparm): Ensure buf alignment.
7170 * grub-core/disk/ata.c (grub_ata_strncpy): Make src and dest uint16 *
7171 to ensure alignment.
7172 (grub_ata_dumpinfo): Ensure text alignment.
7173 (grub_atapi_identify): Preserve alignment invariant.
7174 (grub_ata_identify): Likewise. Use grub_get_unaligned32 when necessary.
7176 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7178 * include/grub/emu/misc.h (xasprintf): Add missing format attribute.
7179 * include/grub/mips/kernel.h (grub_halt): Remove redundant declaration.
7180 * include/grub/mips/qemu_mips/kernel.h (grub_halt): Likewise.
7181 * include/grub/misc.h (grub_reboot)
7182 [GRUB_MACHINE_EMU || GRUB_MACHINE_QEMU_MIPS]: Export.
7183 (grub_halt) [__mips__]: Likewise.
7185 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7187 * include/grub/efi/memory.h (grub_machine_mmap_iterate):
7188 Remove redundant declaration.
7189 (grub_mmap_get_post64): Likewise.
7190 (grub_mmap_get_upper): Likewise.
7191 (grub_mmap_get_lower): Likewise.
7193 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7195 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Make argument
7196 uint32_t * to ensure alignment.
7197 (dvh_partition_map_iterate): Make `block' a union to ensure alignment.
7199 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7201 * grub-core/partmap/sunpc.c (grub_sun_is_valid): Make argument
7202 uint16_t * to ensure alignment.
7203 (sun_pc_partition_map_iterate): Make `block' a union to ensure
7206 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7208 * grub-core/partmap/sun.c (grub_sun_is_valid): Make argument uint16_t *
7209 to ensure alignment.
7210 (sun_partition_map_iterate): Make `block' a union to ensure alignment.
7212 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7214 * grub-core/fs/ntfs.c (u16at): Make into inline function.
7215 Handle unaligned pointers.
7218 (fixup): Use byte access instead of v16at.
7219 (find_attr): Fix imporper usage of v32at.
7220 (read_data): Likewise.
7221 (list_file): Handle byte-swapping and unaligned strings.
7222 (grub_ntfs_label): Likewise.
7224 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7226 * grub-core/fs/udf.c (grub_udf_partmap): Add packed attribute
7227 as it's not necessarily aligned.
7229 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7231 * grub-core/kern/mips/qemu_mips/init.c (grub_at_keyboard_init): Remove
7232 redundant declaration.
7233 (grub_serial_init): Likewise.
7234 (grub_terminfo_init): Likewise.
7236 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7238 * grub-core/fs/zfs/zfs.c (DVA_OFFSET_TO_PHYS_SECTOR): Make into inline
7240 (ZAP_HASH_IDX): Likewise.
7241 (ZAP_LEAF_HASH_SHIFT): Likewise.
7242 (ZAP_LEAF_HASH_NUMENTRIES): Likewise.
7243 (LEAF_HASH): Likewise.
7244 (ZAP_LEAF_NUMCHUNKS): Likewise.
7245 (ZAP_LEAF_CHUNK): Likewise. Changed pointer arithmetic to preserve
7246 alignment invariants. Return pointer. All users updated.
7247 (ZAP_LEAF_ENTRY): Make into inline function.
7250 (xor_out): Use grub_crypto_xor.
7251 (dnode_get_path): Use grub_get_unaligned.
7252 (nvlist_find_value): Likewise.
7253 (grub_zfs_nvlist_lookup_uint64): Likewise.
7254 (grub_zfs_nvlist_lookup_string): Likewise.
7255 (get_nvlist_size): Likewise.
7256 (grub_zfs_open): Likewise.
7257 (fill_fs_info): Likewise.
7258 (grub_zfs_dir): Likewise.
7259 * include/grub/zfs/zap_leaf.h (zap_leaf_phys): Adapt to preserve
7260 alignment invariants.
7261 * include/grub/zfs/zio.h (zio_eck_t): Mark as packed as it's not
7262 necessarily aligned.
7264 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7266 * grub-core/net/netbuff.c (grub_netbuff_alloc): Ensure proper alignment.
7268 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7270 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Change pointer
7271 arithmetic to conserve alignment invariants.
7273 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7275 * include/grub/efiemu/efiemu.h (grub_efiemu_get_memory_map): Remove
7276 redundant declaration.
7277 (grub_efiemu_mm_obtain_request): Likewise.
7278 (grub_efiemu_prepare): Likewise.
7280 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7282 * include/grub/list.h: Explicitly cast return of grub_bad_type_cast
7285 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7287 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_recoffset): Handle the
7288 case of aunaligned recptr.
7289 (grub_hfsplus_read_block): Declare extoverflow as key to ensure
7291 (grub_hfsplus_btree_search): Handle unaligned index.
7293 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7295 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Use grub_get_unaligned16
7296 to get freetag and skip.
7298 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7300 * grub-core/fs/nilfs2.c (grub_nilfs2_btree_node): Add zero-size keys
7302 (grub_nilfs2_btree_node_dkeys): Ensure return pointer alignment.
7303 (grub_nilfs2_btree_lookup): Ensure buffer alignment.
7305 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7307 * grub-core/fs/romfs.c (grub_romfs_iterate_dir): Properly align
7308 name for checksum and fix allocation algorithm.
7310 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7312 * include/grub/types.h (grub_properly_aligned_t): New type.
7313 (GRUB_PROPERLY_ALIGNED_ARRAY): New macro.
7314 (grub_get_unaligned16): Add explicit casts.
7315 (grub_get_unaligned32): Likewise.
7316 (grub_get_unaligned64): Likewise.
7317 (grub_set_unaligned16): New function.
7318 (grub_set_unaligned32): Likewise.
7320 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7322 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
7324 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7326 * grub-core/fs/udf.c (read_string): Macroify GRUB_MAX_UTF8_PER_UTF16.
7327 * grub-core/fs/jfs.c (grub_jfs_diropen): Likewise.
7328 * grub-core/fs/fat.c (grub_fat_iterate_dir): Likewise.
7330 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7332 * grub-core/term/at_keyboard.c (set_scancodes): Fix preprocessor
7335 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7337 * grub-core/kern/emu/main.c (main): Add missing const qualifier.
7338 * grub-core/loader/efi/appleloader.c (devdata): Likewise.
7340 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7342 Unify and improve RAID and crypto xor.
7344 * grub-core/disk/raid.c (grub_raid_block_xor): Removed. All users
7345 changed to grub_crypto_xor
7346 * grub-core/lib/crypto.c (grub_crypto_xor): Moved from here ...
7347 * include/grub/crypto.h (grub_crypto_xor): ... here. Inlined.
7348 Use bigger types when possible.
7350 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7352 * grub-core/disk/raid.c (scan_devices): Fix condition.
7354 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7356 * grub-core/net/drivers/ieee1275/ofnet.c (bootp_response_properties):
7357 Make name a const ptr.
7359 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7361 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_finddevice): Make
7362 first argument a const pointer.
7363 * grub-core/kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
7364 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_finddevice): Update
7366 (grub_children_iterate): Likewise.
7367 (grub_machine_mmap_iterate): Remove redundant declaration.
7369 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7371 * grub-core/commands/acpi.c (grub_acpi_create_ebda) [!x86]: Disable.
7372 (grub_cmd_acpi) [!x86]: Disable EBDA.
7374 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7376 Enable UTF8 in gnulib regexp.
7378 * config.h.in (RE_ENABLE_I18N) [!GRUB_UTIL]: New define.
7379 * grub-core/lib/posix_wrap/ctype.h (islower): Use grub_islower.
7380 (isupper): Use grub_isupper.
7381 (isascii): New inline function.
7382 * grub-core/lib/posix_wrap/wchar.h: Replace dummy with real contents.
7383 * grub-core/lib/posix_wrap/wctype.h: Likewise.
7384 * grub-core/normal/charset.c (grub_utf8_process): New function.
7385 (grub_utf8_to_utf16): Use grub_utf8_process.
7386 (grub_encode_utf8_character): New function.
7387 (grub_ucs4_to_utf8): Use grub_encode_utf8_character.
7388 * include/grub/charset.h (grub_utf8_process): New declaration.
7389 (grub_encode_utf8_character): Likewise.
7390 * include/grub/misc.h (grub_islower): New inline function.
7391 (grub_isupper): Likewise.
7392 (grub_strchrsub): Moved down to fix the definitions.
7394 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7396 * grub-core/bus/usb/ohci.c (grub_ohci_check_transfer): Add an unsigned
7399 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7401 * include/grub/loader.h (grub_loader_register_preboot_hook):
7402 Use struct preboot * and not void * for handle. All users updated.
7403 (grub_loader_unregister_preboot_hook): Likewise.
7405 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
7407 * include/grub/charset.h (GRUB_MAX_UTF8_PER_UTF16): New const.
7408 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Change to
7409 UTF-16-BE. All users updated.
7410 (grub_hfsplus_cmp_catkey): Fix unicode handling.
7411 (grub_hfsplus_iterate_dir): Likewise.
7412 (grub_hfsplus_label): Likewise.
7414 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
7416 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix compat condition.
7418 2011-11-30 Vladimir Serbinenko <phcoder@gmail.com>
7420 Add missing const qualifiers.
7422 * grub-core/commands/i386/pc/sendkey.c (keysym): Add missing const.
7423 * grub-core/commands/lspci.c (grub_pci_classname): Likewise.
7424 * grub-core/commands/menuentry.c (hotkey_aliases): Likewise.
7425 * grub-core/disk/lvm.c (grub_lvm_getvalue): Likewise.
7426 (grub_lvm_check_flag): Likewise.
7427 * grub-core/efiemu/i386/coredetect.c
7428 (grub_efiemu_get_default_core_name): Likewise
7429 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
7430 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Likewise.
7431 * grub-core/fs/ntfs.c (fixup): Likewise.
7432 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Likewise.
7433 * grub-core/fs/zfs/zfs.c (decomp_entry): Likewise.
7434 (fzap_lookup): Likewise.
7435 (zap_lookup): Likewise.
7436 * grub-core/gnulib/regcomp.c (init_dfa): Likewise.
7437 * grub-core/lib/legacy_parse.c (check_option): Likewise.
7438 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Likewise.
7439 * grub-core/loader/i386/bsd.c (grub_bsd_add_meta): Likewise.
7440 (grub_freebsd_add_meta_module): Likewise.
7441 (grub_cmd_freebsd_module): Likewise.
7442 * grub-core/loader/i386/xnu.c (tbl_alias): Likewise.
7443 * grub-core/loader/xnu.c (grub_xnu_register_memory): Likewise.
7444 (grub_xnu_writetree_get_size): Likewise.
7445 (grub_xnu_writetree_toheap_real): Likewise.
7446 (grub_xnu_find_key): Likewise.
7447 (grub_xnu_create_key): Likewise.
7448 (grub_xnu_create_value): Likewise.
7449 (grub_xnu_register_memory): Likewise.
7450 (grub_xnu_check_os_bundle_required): Likewise.
7451 (grub_xnu_scan_dir_for_kexts): Likewise.
7452 (grub_xnu_load_kext_from_dir): Likewise.
7453 * grub-core/normal/color.c (color_list): Likewise.
7454 * grub-core/normal/completion.c (current_word): Likewise.
7455 * grub-core/normal/menu_entry.c (insert_string): Likewise.
7456 * grub-core/term/serial.c (grub_serial_find): Likewise.
7457 * grub-core/term/tparm.c (grub_terminfo_tparm): Likewise.
7458 * include/grub/efiemu/efiemu.h (grub_efiemu_get_default_core_name):
7460 * include/grub/i386/bsd.h (grub_bsd_add_meta): Likewise.
7461 (grub_freebsd_add_meta_module): Likewise.
7462 * include/grub/lib/arg.h (grub_arg_option): Likewise.
7463 * include/grub/net.h (grub_net_card_driver): Likewise.
7464 (grub_net_card): Likewise.
7465 (grub_net_app_protocol): Likewise.
7466 * include/grub/parttool.h (grub_parttool_argdesc): Likewise.
7467 * include/grub/serial.h (grub_serial_find): Likewise.
7468 * include/grub/tparm.h (grub_terminfo_tparm): Likewise.
7469 * include/grub/xnu.h (grub_xnu_create_key): Likewise.
7470 (grub_xnu_create_value): Likewise.
7471 (grub_xnu_find_key): Likewise.
7472 (grub_xnu_scan_dir_for_kexts): Likewise.
7473 (grub_xnu_load_kext_from_dir): Likewise.
7475 * include/grub/zfs/zio_checksum.h (zio_checksum_t): Moved from here ...
7476 * grub-core/fs/zfs/zfs.c (zio_checksum_t): ...here.
7477 * include/grub/zfs/zio_checksum.h (zio_checksum_info):
7479 * grub-core/fs/zfs/zfs.c (zio_checksum_info): ... here. Added missing const.
7481 2011-11-28 Colin Watson <cjwatson@ubuntu.com>
7483 * util/getroot.c (find_root_device_from_libzfs): Use xasprintf.
7485 2011-11-27 Vladimir Serbinenko <phcoder@gmail.com>
7487 * grub-core/fs/zfs/zfs.c (recovery): Fix spelling.
7488 (read_device): Fix size calculation.
7490 2011-11-25 Robert Millan <rmh@gnu.org>
7492 * util/getroot.c [HAVE_LIMITS_H]: Include `<limits.h>'.
7493 (find_root_device_from_libzfs): Add zpool output parser to be used
7494 as fallback when libzfs isn't available.
7496 2011-11-25 Seth Goldberg <seth.goldberg@oracle.com>
7498 * po/Makefile.in.in: Add missing escape-continuation.
7500 2011-11-25 Vladimir Serbinenko <phcoder@gmail.com>
7502 * grub-core/fs/cpio.c (grub_cpio_dir): Handle subdirs correctly.
7504 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
7506 * grub-core/kern/dl.c (grub_dl_load_segments): Fix alignment handling.
7508 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
7510 * grub-core/kern/dl.c (grub_dl_unload): Fix freeing segments.
7512 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
7514 * grub-core/kern/x86_64/efi/callwrap.S: Fix the comment.
7516 2011-11-14 Vladimir Serbinenko <phcoder@gmail.com>
7518 * grub-core/lib/adler32.c: Add missing license specification.
7519 * grub-core/lib/crc64.c: Likewise.
7520 * grub-core/loader/i386/pc/plan9.c: Likewise.
7521 * grub-core/partmap/plan.c: Likewise.
7523 2011-11-13 Lubomir Kundrak <lkundrak@redhat.com>
7525 Add facility to debug GRUB with gdb under qemu.
7527 * grub-core/gdb_grub.in: New file.
7528 * grub-core/gmodule.pl.in: Likewise.
7529 * grub-core/Makefile.core.def (gmodule.pl): New script.
7530 (gdb_grub): Likewise.
7532 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
7534 * util/grub-mount.c (argp_parser): Accept relative pathes.
7535 * util/grub-fstest.c (argp_parser): Likewise.
7537 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
7541 * Makefile.util.def (libgrubmods): Add
7542 grub-core/partmap/plan.c.
7543 * docs/grub.texi: Notice Plan9 support.
7544 * grub-core/Makefile.core.def (plan9): New module.
7545 (part_plan): Likewise.
7546 * grub-core/loader/i386/pc/plan9.c: New file.
7547 * grub-core/partmap/plan.c: Likewise.
7548 * include/grub/msdos_partition.h (GRUB_PC_PARTITION_TYPE_PLAN9): New
7550 (GRUB_PC_PARTITION_TYPE_LINUX_SWAP): Likewise.
7551 * include/grub/mm.h (grub_extend_alloc): New inline function.
7553 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
7555 Make Reed-Solomon faster by using power of generator representation of
7558 * grub-core/lib/reed_solomon.c (grub_uint16_t) [TEST]: Removed.
7559 (gf_double_t): Likewise.
7560 (gf_invert): Removed.
7561 (gf_powx): New array.
7562 (gf_powx_inv): Likewise.
7563 (scratch): Move higher.
7564 (gf_reduce): Removed.
7566 (gf_invert): Likewise.
7567 (init_inverts): Replaced with ...
7568 (init_powx): ...this. All users updated.
7569 (pol_evaluate): Replace multiplications with additions.
7570 (rs_encode): Likewise.
7571 (gauss_eliminate): Call gf_invert.
7572 (grub_reed_solomon_add_redundancy): Call init_powx.
7573 (grub_reed_solomon_recover): Call init_powx unconditionally.
7575 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
7577 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Fix spelling.
7579 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
7581 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restore
7582 disk->partiton for safety.
7584 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
7586 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
7588 (grub_util_biosdisk_get_grub_dev): Add a useful debug info.
7590 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
7592 * grub-core/kern/emu/hostdisk.c (find_system_device): Fix a memory leak.
7594 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
7596 * include/grub/lvm.h (grub_lvm_pv): Correct start type.
7598 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
7600 Fix spaces handling in proc/self/mountinfo.
7602 * util/getroot.c (unescape): New function.
7603 (grub_find_root_device_from_mountinfo): Use unescape.
7605 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
7607 Support ZFS embedding.
7609 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): New function.
7610 (grub_zfs_fs): Register grub_zfs_embed.
7612 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
7614 Fix MIPS compilation.
7616 * grub-core/boot/mips/startup_raw.S: Use GRUB_DECOMPRESSOR_*
7617 * include/grub/offsets.h: Rename decompressor fields from
7618 GRUB_KERNEL_* to GRUB_DECOMPRESSOR_*.
7619 * util/grub-mkimage.c (image_targets): Use new names.
7621 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
7623 Defer multiboot device parsing until we're in compressed part.
7625 * grub-core/boot/i386/pc/lnxboot.S: Remove setting dos_part and
7626 bsd_part. setdevice has fallen into disuse.
7627 * grub-core/boot/i386/pc/startup_raw.S (dos_part): Removed.
7628 (bsd_part): Likewise.
7629 (boot_dev): New variable.
7630 (multiboot_trampoline): Don't parse multiboot device.
7631 Pass multiboot device in %edx.
7632 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Parse
7634 * grub-core/kern/i386/pc/init.c (grub_machine_get_bootlocation):
7636 * grub-core/kern/i386/pc/startup.S: Save edx.
7637 (grub_boot_drive): Removed.
7638 (grub_install_dos_part): Likewise.
7639 (grub_install_bsd_part): Likewise.
7640 (grub_boot_device): New variable.
7641 * include/grub/i386/pc/kernel.h (grub_install_dos_part): Removed.
7642 (grub_install_bsd_part): Likewise.
7643 (grub_boot_drive): Likewise.
7644 (grub_boot_device): New variable.
7645 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART):
7647 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
7648 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Moved lower.
7649 (GRUB_KERNEL_MACHINE_INSTALL_BSD_PART): Removed.
7650 (GRUB_KERNEL_MACHINE_INSTALL_DOS_PART): Likewise.
7651 * util/grub-install.in: Remove redundant condition.
7653 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
7655 Fix bug introduced by previous commit.
7657 * grub-core/boot/i386/pc/startup_raw.S: Compute RS start correctly.
7659 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
7661 Use decompressors framework on i386-pc. It increases core size
7662 by 46 bytes but improves compatibility and maintainability.
7664 * grub-core/Makefile.core.def (lzma_decompress): New image.
7665 (kernel): Add i386_pc_ldflags.
7666 * grub-core/kern/i386/pc/startup.S: Move intial part to ..
7667 * grub-core/boot/i386/pc/startup_raw.S: ... here. Pass pointers
7668 to real_to_prot, prot_to_real and device info.
7669 * include/grub/offsets.h: Renamed decompressor offsets.
7670 * util/grub-mkimage.c (grub_compression_t): New cmpression lzma.
7671 (image_target_desc): Remove raw_size and rename decompressor fields.
7672 (compress_kernel): Handle lzma.
7673 (generate_image): Handle decompressors on i386-pc.
7675 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
7677 * configure.ac: Add -fno-asynchronous-unwind-tables.
7679 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
7681 Move assembly code to C by using intwrap. It increases core size
7682 by 88 bytes but improves compatibility and maintainability.
7684 * grub-core/kern/i386/pc/startup.S (grub_console_putchar): Moved to ...
7685 * grub-core/term/i386/pc/console.c (grub_console_putchar_real):
7686 ... here. Translated to C.
7687 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Moved to ...
7688 * grub-core/term/i386/pc/console.c (grub_console_getkey):
7689 ... here. Translated to C.
7690 * grub-core/kern/i386/pc/startup.S (grub_console_getxy): Moved to ...
7691 * grub-core/term/i386/pc/console.c (grub_console_getxy):
7692 ... here. Translated to C.
7693 * grub-core/kern/i386/pc/startup.S (grub_console_gotoxy): Moved to ...
7694 * grub-core/term/i386/pc/console.c (grub_console_gotoxy):
7695 ... here. Translated to C.
7696 * grub-core/kern/i386/pc/startup.S (grub_console_cls): Moved to ...
7697 * grub-core/term/i386/pc/console.c (grub_console_cls):
7698 ... here. Translated to C.
7699 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Moved to ..
7700 * grub-core/term/i386/pc/console.c (grub_console_setcursor):
7701 ... here. Translated to C.
7702 * grub-core/kern/i386/pc/startup.S (grub_get_rtc): Moved to ..
7703 * grub-core/kern/i386/pc/init.c (grub_get_rtc): ... here.
7705 * grub-core/term/i386/pc/console.c (int10_9): New function.
7706 (grub_console_putchar): Likewise.
7707 * include/grub/i386/pc/console.h: Removed the not anymore shared
7710 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
7712 Move grub_chainloader_real_boot out of the kernel.
7714 * grub-core/Makefile.am: Remove machine/loader.h.
7715 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
7717 * grub-core/lib/i386/relocator.c (grub_relocator16_esi): New extern
7719 (grub_relocator16_keep_a20_enabled): Likewise.
7720 (grub_relocator16_boot): Fill new variables.
7721 * grub-core/lib/i386/relocator16.S: Add gate a20 handling.
7722 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_boot): Use
7724 (grub_chainloader_unload): Likewise.
7725 (grub_chainloader_cmd): Likewise.
7726 * include/grub/i386/pc/loader.h: Removed.
7727 * include/grub/i386/relocator.h (grub_relocator16_state): Add a20
7728 and esi. All initialisers updated.
7730 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
7731 2011-11-12 Colin Watson <cjwatson@ubuntu.com>
7733 * Makefile.util.def (grub-mount): New util.
7734 * .bzrignore: Add grub-mount.
7735 * configure.ac: Check for fuse and enable grub-mount if available.
7736 * docs/man/grub-mount.h2m: New file.
7737 * util/grub-mount.c: Likewise.
7739 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
7741 * grub-core/commands/efi/fixvideo.c: Gettextize.
7742 * grub-core/commands/hashsum.c: Likewise.
7743 * grub-core/commands/i386/cmostest.c: Likewise.
7744 * grub-core/commands/i386/pc/drivemap.c: Likewise.
7745 * grub-core/commands/i386/pc/lsapm.c: Likewise.
7746 * grub-core/commands/i386/pc/sendkey.c: Likewise.
7747 * grub-core/commands/lsmmap.c: Likewise.
7748 * grub-core/commands/menuentry.c: Likewise.
7749 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
7750 * grub-core/commands/setpci.c: Likewise.
7751 * grub-core/loader/i386/bsd.c: Likewise.
7752 * grub-core/loader/i386/linux.c: Likewise.
7753 * util/getroot.c: Likewise.
7754 * util/grub-editenv.c: Likewise.
7755 * util/grub-fstest.c: Likewise.
7756 * util/grub-mkfont.c: Likewise.
7757 * util/grub-mkimage.c: Likewise.
7758 * util/grub-mkpasswd-pbkdf2.c: Likewise.
7759 * util/grub-pe2elf.c: Likewise.
7760 * util/grub-probe.c: Likewise.
7761 * util/grub-setup.c: Likewise.
7762 * util/ieee1275/ofpath.c: Likewise.
7763 * util/misc.c: Likewise.
7764 * util/raid.c: Likewise.
7766 2011-11-11 Robert Millan <rmh@gnu.org>
7768 * util/getroot.c (grub_util_get_geom_abstraction): Remove
7769 __attribute__((unused)) from `os_dev', which *is* being used.
7771 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
7773 * include/grub/dl.h (GRUB_ARCH_DL_TRAMP_SIZE) [__ia64__]: Add back
7775 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Redefine in terms of
7776 GRUB_IA64_DL_GOT_ALIGN.
7777 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Redefine in terms of
7778 GRUB_IA64_DL_TRAMP_ALIGN.
7780 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
7782 Replace grub_fatal with normal errors in i386 linux loader.
7784 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Return 0 on error.
7785 (allocate_pages): Check find_efi_mmap_size return value.
7786 (grub_e820_add_region): Return error.
7787 (grub_linux_boot): Check mmap return value.
7789 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
7791 * grub-core/commands/acpihalt.c: Gettextized.
7792 * grub-core/commands/cacheinfo.c: Likewise.
7793 * grub-core/commands/cmp.c: Likewise.
7794 * grub-core/commands/efi/loadbios.c: Likewise.
7795 * grub-core/commands/gptsync.c: Likewise.
7796 * grub-core/commands/ieee1275/suspend.c: Likewise.
7797 * grub-core/commands/legacycfg.c: Likewise.
7798 * grub-core/commands/memrw.c: Likewise.
7799 * grub-core/commands/minicmd.c: Likewise.
7800 * grub-core/commands/parttool.c: Likewise.
7801 * grub-core/commands/time.c: Likewise.
7802 * grub-core/commands/videoinfo.c: Likewise.
7803 * grub-core/disk/geli.c: Likewise.
7804 * grub-core/disk/i386/pc/biosdisk.c: Likewise.
7805 * grub-core/disk/luks.c: Likewise.
7806 * grub-core/disk/lvm.c: Likewise.
7807 * grub-core/font/font_cmd.c: Likewise.
7808 * grub-core/fs/zfs/zfscrypt.c: Likewise.
7809 * grub-core/fs/zfs/zfsinfo.c: Likewise.
7810 * grub-core/gfxmenu/view.c: Likewise.
7811 * grub-core/kern/emu/hostdisk.c: Likewise.
7812 * grub-core/kern/emu/main.c: Likewise.
7813 * grub-core/kern/emu/misc.c: Likewise.
7814 * grub-core/kern/emu/mm.c: Likewise.
7815 * grub-core/kern/mips/arc/init.c: Likewise.
7816 * grub-core/kern/mips/loongson/init.c: Likewise.
7817 * grub-core/kern/partition.c: Likewise.
7818 * grub-core/lib/i386/halt.c: Likewise.
7819 * grub-core/lib/mips/arc/reboot.c: Likewise.
7820 * grub-core/lib/mips/loongson/reboot.c: Likewise.
7821 * grub-core/loader/i386/pc/chainloader.c: Likewise.
7822 * grub-core/loader/i386/xnu.c: Likewise.
7823 * grub-core/loader/multiboot.c: Likewise.
7824 * grub-core/net/bootp.c: Likewise.
7825 * grub-core/net/net.c: Likewise.
7826 * grub-core/normal/term.c: Likewise.
7827 * grub-core/partmap/bsdlabel.c: Likewise.
7828 * grub-core/parttool/msdospart.c: Likewise.
7829 * grub-core/term/gfxterm.c: Likewise.
7830 * grub-core/term/terminfo.c: Likewise.
7831 * grub-core/video/i386/pc/vbe.c: Likewise.
7832 * util/grub-menulst2cfg.c: Likewise.
7833 * util/grub-mkdevicemap.c: Likewise.
7834 * util/grub-mklayout.c: Likewise.
7835 * util/grub-mkrelpath.c: Likewise.
7836 * util/grub-script-check.c: Likewise.
7837 * util/ieee1275/grub-ofpathname.c: Likewise.
7838 * util/resolve.c: Likewise.
7840 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
7842 Support %1$d syntax.
7844 * tests/printf_unit_test.c: New file.
7845 * Makefile.util.def (printf_test): New test.
7846 * grub-core/kern/misc.c (grub_vsnprintf_real): Support %1$d syntax.
7848 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
7850 * grub-core/hook/datehook.c (grub_read_hook_datetime): Small stylistic
7853 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
7855 * grub-core/efiemu/mm.c (grub_efiemu_mmap_fill): Change printf into
7857 * grub-core/font/font.c (grub_font_load): Likewise.
7859 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
7861 * util/grub-macho2img.c: Add comment concerning gettext.
7862 * grub-core/lib/legacy_parse.c: Likewise.
7864 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
7866 * grub-core/kern/misc.c (grub_vprintf): Add missing va_end.
7867 (grub_xvasprintf): Likewise.
7869 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
7871 Add const keyword to grub_env_get and gettextize week days.
7873 * grub-core/hook/datehook.c (grub_datetime_names): Make const.
7874 (grub_read_hook_datetime): Return const char *.
7875 * grub-core/kern/env.c (grub_env_get): Return const char *. All users
7877 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
7879 (grub_get_weekday_name): Return const char *. Call gettext.
7880 * grub-core/script/argv.c (grub_script_argv_append): Receive const
7881 char * and len as the argument. All users updated.
7882 (grub_script_argv_split_append): Receive const char *.
7883 * include/grub/datetime.h (grub_get_weekday_name): Update proto.
7884 * include/grub/env.h (grub_env_get): Likewise.
7885 (grub_env_read_hook_t): Return const char *.
7886 * include/grub/script_sh.h (grub_script_argv_append): Update proto.
7887 (grub_script_argv_split_append): Likewise.
7889 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
7891 * grub-core/normal/main.c (grub_normal_execute): Remove leftover call.
7893 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
7895 * grub-core/kern/misc.c (grub_strstr): Moved from here ...
7896 * include/grub/misc.h (grub_strstr): ... here. Make static and inline.
7898 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
7900 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_set_property):
7903 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
7905 Fix mips compilation.
7907 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec): Restrict hash_id to
7909 (hashes): Use in embed decoder as well (for sizes).
7910 (dec_stream_header): Fix embed decompressor logic.
7911 (dec_stream_footer): Likewise.
7913 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
7915 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Issue
7916 an error and not a fatal on unrecognised relocation types.
7918 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
7920 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
7921 Issue error rather than printf on unknown arguments.
7923 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
7925 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_set_property):
7928 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
7930 * grub-core/fs/zfs/zfscrypt.c (GRUB_MOD_INIT), (GRUB_MOD_FINI):
7933 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
7935 * grub-core/fs/ntfs.c (grub_ntfs_read_symlink): Stylistic fix. Remove
7936 leftover debug printf.
7938 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
7940 * grub-core/fs/btrfs.c (grub_btrfs_embed): Spelling fix.
7942 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
7944 * grub-core/efiemu/main.c (grub_efiemu_register_configuration_table):
7947 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
7949 * grub-core/commands/probe.c (grub_cmd_probe): Fix error message.
7951 2011-11-10 Shea Levy <slevy@tieronedesign.com>
7953 Allow all modules to perform serial IO
7955 * grub-core/term-serial.c (grub_serial_find): Remove static qualifier
7956 * include/grub/serial.h (grub_serial_port_configure): New inline
7958 (grub_serial_port_fetch): Likewise.
7959 (grub_serial_port_put): Likewise.
7960 (grub_serial_port_fini): Likewise.
7961 (grub_serial_find): New proto.
7963 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
7965 Put symlink at the end of the node and fix a potential
7968 * grub-core/fs/iso9660.c (grub_fshelp_node): New field have_symlink.
7969 Make symlink into an array.
7970 (set_rockridge): Set have_symlink and alloc_dirents.
7971 (grub_iso9660_read_symlink): Use new layout.
7972 (grub_iso9660_iterate_dir): Fix memory corruption.
7974 (grub_iso9660_dir): Set have_symlink.
7975 (grub_iso9660_open): Likewise.
7977 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
7979 Remove local keyword.
7981 * util/grub-mkconfig_lib.in (version_test_numeric): Remove local.
7982 (version_test_gt): Likewise.
7983 (version_find_latest): Likewise.
7984 (gettext_printf): Likewise.
7985 * util/grub.d/10_windows.in (get_os_name_from_boot_ini): Likewise.
7987 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
7989 * grub-core/fs/zfs/zfs.c (zfs_mount): Fix spurious warning.
7991 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
7993 Fix ZFS memory and resource leaks.
7995 * grub-core/fs/zfs/zfs.c (fill_vdev_info_real): New paramter inserted.
7998 (fill_vdev_info): New parameter inserted. All users updated.
7999 (check_pool_label): Likewise.
8000 (scan_disk): Likewise.
8001 (scan_devices): Close non-inserted disks.
8002 (fzap_iterate): Free l.
8003 (unmount_device): Free children descripto memory.
8005 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
8007 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix grub_strncat
8008 argument (access out of bounds).
8010 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
8012 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Fix RAID10 logic for
8015 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
8017 * include/grub/i386/netbsd_bootinfo.h (grub_netbsd_btinfo_bootwedge):
8020 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
8022 Fix several memory leaks.
8024 * grub-core/fs/btrfs.c (grub_btrfs_dir): Fix memory leak.
8025 * grub-core/fs/cpio.c (grub_cpio_find_file): Likewise.
8026 (grub_cpio_dir): Likewise.
8027 * grub-core/fs/fat.c (grub_fat_label): Likewise.
8028 * grub-core/fs/jfs.c (grub_jfs_label): Likewise.
8029 * grub-core/fs/romfs.c (grub_romfs_close): Likewise.
8030 (grub_romfs_label): Likewise.
8031 * grub-core/fs/squash4.c (squash_mount): Use zalloc for safety.
8032 (squash_unmount): New function.
8033 (grub_squash_dir): Fix memory leak.
8034 (grub_squash_open): Likewise.
8035 (grub_squash_read): Likewise.
8036 (grub_squash_mtime): Likewise.
8037 * grub-core/fs/xfs.c (grub_xfs_open): Likewise.
8038 * grub-core/fs/zfs/zfs.c (check_pool_label): Likewise.
8039 * util/grub-fstest.c (fstest): Likewise.
8041 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
8043 * include/grub/misc.h (grub_strncat): Fix the order of conditionals to
8044 avoid accessing beyond the array.
8046 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
8048 * configure.ac: Add missing -mXX to TARGET_CPPFLAGS.
8050 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
8054 * grub-core/fs/affs.c (grub_affs_bblock): Replace flags with version.
8055 (GRUB_AFFS_FLAG_FFS): Removed.
8056 (GRUB_AFFS_SYMLINK_SIZE): Likewise.
8057 (GRUB_AFFS_FILETYPE_DIR): Make positive and unsigned.
8058 (GRUB_AFFS_FILETYPE_DIR), (GRUB_AFFS_FILETYPE_REG): Fix a mix-up.
8059 (grub_fshelp_node): Make block 32-bit.
8060 Add block_cache and last_block_cache.
8061 (grub_affs_read_block): Fill and use block cache.
8062 (grub_affs_read_file): Removed.
8063 (grub_affs_mount): Zero-fill node. Fix version check. Don't reread
8065 (grub_affs_read_symlink): Fix symlink size. Add a \0 at the end for
8067 (grub_affs_iterate_dir): Use more appropriate types. Zero-fill allocated
8069 (grub_affs_close): Free block cache.
8070 (grub_affs_read): Use grub_fshelp_read_file directly.
8072 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
8074 * grub-core/fs/zfs/zfs.c (read_dva): Issue an error if read failed
8077 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
8079 * grub-core/lib/LzmaEnc.c (LzmaEnc_CodeOneBlock): Remove set but not
8081 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
8084 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
8086 Fix potential problem with calling zfs_to_cpu and cpu_to_be in a row.
8088 * grub-core/fs/zfs/zfscrypt.c (grub_zfs_decrypt_real): Use explicit
8089 byteswap when needed.
8091 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
8093 Fix FreeBSD compilation.
8095 * grub-core/disk/geli.c (GRUB_MD_SHA256) [GRUB_UTIL]: Redefine in a way
8096 to avoid circular dependency.
8097 (GRUB_MD_SHA512) [GRUB_UTIL]: Likewise.
8098 * util/getroot.c (grub_util_follow_gpart_up): Move from here...
8099 * grub-core/kern/emu/hostdisk.c (+grub_util_follow_gpart_up): ... here.
8101 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
8103 Fix ZFS crypto error types.
8105 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Fix return type.
8106 (grub_gcm_decrypt): Likewise.
8107 (grub_zfs_load_key_real): Fix error code type. Handle possible error
8110 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
8114 * Makefile.util.def (10_illumos): New script.
8115 * configure.ac: Set COND_HOST_ILLUMOS.
8116 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__sun__]:
8117 Support Illumos calls.
8118 (find_partition_start) [__sun__]: Likewise.
8119 (convert_system_partition_to_system_disk) [__sun__]: Likewise.
8120 (device_is_wholedisk) [__sun__]: Handle Illumos naming scheme.
8121 (grub_util_biosdisk_get_grub_dev) [__sun__]: Handle Illumos.
8122 * util/getroot.c (find_root_device_from_libzfs) [__sun__]: Return raw
8124 * util/grub-probe.c (probe) [__sun__]: Do character check.
8125 * util/grub.d/10_illumos.in: New file.
8127 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
8129 Support escaped commas in hostdisk.
8131 * grub-core/kern/emu/hostdisk.c (unescape_cmp): New function.
8132 (find_grub_drive): Use unescape_cmp.
8133 (make_device_name): Escape commas.
8135 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
8137 * util/grub.d/10_kfreebsd.in: Use ${grub_mkrelpath} not grub-mkrelpath.
8139 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
8141 * grub-core/fs/zfs/zfs.c (zap_iterate): Remove set but not used
8144 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
8146 Support trampoline jumps on powerpc.
8148 * grub-core/kern/dl.c (grub_dl_load_segments) [__powerpc__]: Follow
8150 (grub_dl_load_segments): Set mod->sz.
8151 (grub_dl_flush_cache): Flush whole space occupied by module, not just
8153 * grub-core/kern/ia64/dl.c (nopm): Make const while on it.
8155 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): New
8157 (trampoline): New struct.
8158 (trampoline_template): New const.
8159 (grub_arch_dl_relocate_symbols): Create trampolines on overflow.
8160 * include/grub/dl.h (grub_dl): Add sz element.
8161 [__powerpc__]: Follow __ia64__.
8162 (GRUB_ARCH_DL_TRAMP_ALIGN): Define on ppc.
8163 (GRUB_ARCH_DL_GOT_ALIGN): Likewise.
8164 (GRUB_ARCH_DL_TRAMP_SIZE): Likewise.
8165 (grub_arch_dl_get_tramp_got_size) [__powerpc__]: New proto.
8167 2011-11-06 Vladimir Serbinenko <phcoder@gmail.com>
8171 * Makefile.util.def (libgrubmods): Add grub-core/fs/zfs/zfscrypt.c.
8172 * grub-core/Makefile.core.def (zfscrypt): New module.
8173 * grub-core/fs/zfs/zfs.c (subvolume): New structure.
8174 (grub_zfs_data): Replace mdn with subvol. Put case_insensitivity inside
8175 it. All users updated.
8176 (grub_zfs_decrypt): New var.
8177 (grub_zfs_load_key): Likewise.
8178 (zio_checksum_functions): Add SHA256+MAC.
8179 (zio_checksum_verify): Handle incomplete comparison due to MAC.
8180 (zio_read): Handle encrypted blocks.
8181 (zap_verify): Remove incorrect check.
8182 (fzap_iterate): Handle non-standard fzap.
8183 (zap_iterate): Likewise.
8184 (zap_iterate_u64): New function.
8185 (dnode_get_fullpath): Load keys.
8186 * grub-core/fs/zfs/zfscrypt.c: New file.
8187 * grub-core/lib/crypto.c (grub_crypto_cipher_close): Removed.
8188 (grub_crypto_ecb_encrypt): Make input const.
8189 * include/grub/crypto.h (grub_crypto_cipher_close): Inline.
8190 (grub_crypto_ecb_encrypt): Make input const.
8191 (GRUB_CIPHER_AES): New macro.
8192 * include/grub/zfs/dmu.h (dmu_object_type): Add DMU_OT_DSL_KEYCHAIN.
8193 * include/grub/zfs/dsl_dir.h (dsl_dir_phys): Add keychain.
8194 * include/grub/zfs/spa.h (grub_zfs_endian): Moved from here ...
8195 * include/grub/zfs/zfs.h (grub_zfs_endian): ... here. Added GURB_ZFS_
8196 prefix. All users updated.
8197 (grub_zfs_add_key): New proto.
8198 (grub_zfs_decrypt): Likewise.
8199 (grub_zfs_load_key): Likewise.
8200 * include/grub/zfs/zio.h (zio_checksum): Add SHA256+MAC.
8201 * util/grub-fstest.c (options): Add -K option.
8202 (argp_parser): Likewise.
8204 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
8206 Support zle compression on ZFS.
8208 * grub-core/fs/zfs/zfs.c (zle_decompress): New function.
8209 (decomp_table): Add zle.
8210 * include/grub/zfs/zio.h (zio_compress): Add zle.
8212 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
8214 Support BtrFS embedding.
8216 * grub-core/fs/btrfs.c (grub_btrfs_embed) [GRUB_UTIL]: New function.
8217 (grub_btrfs_fs) [GRUB_UTIL]: Set embed.
8218 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: New field embed.
8219 * util/grub-setup.c (setup): Use fs embedding if available.
8220 Add additional sanity check.
8222 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
8224 * util/grub-install.in: Fix condition for config_opt.
8226 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
8228 Support third redundancy strip on raidz3.
8230 * grub-core/fs/zfs/zfs.c (recovery): Add Gauss for general case.
8231 Return error on singularity. All users updated.
8232 (read_device): Don't stop on 3rd failure on raidz3.
8234 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
8236 Support case-insensitive ZFS subvolumes.
8238 * grub-core/fs/zfs/zfs.c (mzap_lookup): New parameter case_insensitive.
8240 (zap_hash): Likewise.
8241 (name_cmp): New function.
8242 (zap_leaf_array_equal): New parameter case_insensitive.
8244 (zap_leaf_lookup): Likewise.
8245 (fzap_lookup): Likewise.
8246 (zap_lookup): Likewise.
8247 (dnode_get_path): New parameter case_insensitive. Retrieve case
8248 sensitiviness of a volume. All users updated.
8249 (dnode_get_fullpath): New parameter case_insensitive.
8251 (grub_zfs_dir): Set info.case_insensitiveness.
8253 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
8255 Support second redundancy strip on raidz(2,3).
8257 * grub-core/fs/zfs/zfs.c (powx): New array.
8258 (powx_inv): Likewise.
8260 (xor_out): New function.
8262 (recovery): Likewise.
8263 (read_device): Use second redundancy strip.
8265 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
8267 Use a power of generator representation of GF(256) multiplication group
8268 to save space time and complexity.
8270 * grub-core/disk/raid6_recover.c (raid6_table1): Removed.
8271 (raid6_table2): Likewise.
8273 (powx_inv): Likewise.
8275 (grub_raid_block_mul): Replace with ...
8276 (grub_raid_block_mulx): ...this.
8277 (grub_raid6_init_table): Rewritten.
8278 (grub_raid6_recover): Use power of generator representation.
8280 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
8282 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Get start_sector
8283 for the right device.
8285 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
8287 * include/grub/kernel.h (grub_module_header): Make type into uint32 as
8288 expected by grub-mkimage and it's more clear since there is no implicit
8291 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
8293 * grub-core/disk/raid.c (scan_devices): Don't derference NULL on whole
8295 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
8297 2011-11-03 Philipp Matthias Hahn <pmhahn@debian.org>
8299 * util/grub-mkrescue.in: Fix handling xorriso option.
8301 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
8303 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Exit if local is
8306 2011-11-03 crocket <crockabiscuit@gmail.com>
8308 * util/grub.d/10_linux.in: Add Slackware initrd naming.
8310 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
8312 XZ CRC64 and SHA256 support.
8314 * Makefile.util.def (libgrubmods): Add crc64.c.
8315 * grub-core/Makefile.core.def (crc64): New module.
8316 * grub-core/lib/crc64.c: New file.
8317 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_hash)
8318 [!GRUB_EMBED_DECOMPRESSOR]: Rename crc32_context to hash_context.
8320 (MAX_HASH_SIZE): New define.
8321 (xz_dec) [!GRUB_EMBED_DECOMPRESSOR]: Add generic hash fields.
8322 (dec_block) [!GRUB_EMBED_DECOMPRESSOR]: Handle non-crc32 hashes.
8323 (index_update) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
8324 (dec_index) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
8325 (crc32_validate) [!GRUB_EMBED_DECOMPRESSOR]: Rename to ...
8326 (hash_validate) [!GRUB_EMBED_DECOMPRESSOR]: ... this.
8327 Handle non-crc32 hashes.
8328 (hashes) [!GRUB_EMBED_DECOMPRESSOR]: New variable.
8329 (dec_stream_header): Handle non-crc32 hashes.
8330 (dec_stream_footer): Likewise.
8331 (dec_block_header): Likewise.
8332 (dec_main): Likewise.
8333 (xz_dec_init): Likewise.
8334 (xz_dec_reset): Likewise.
8335 (xz_dec_end): Likewise.
8336 * util/import_gcry.py: Add CRC64 line.
8338 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
8340 * grub-core/fs/ufs.c (grub_ufs_mtime) [MODE_UFS2]: Check mtime field
8343 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
8345 Make reiserfs label retrieval similar to other *_label functions.
8347 * grub-core/fs/reiserfs.c (grub_reiserfs_superblock): New field label.
8348 (REISERFS_MAX_LABEL_LENGTH): Removed.
8349 (REISERFS_LABEL_OFFSET): Likewise.
8350 (grub_reiserfs_label): Rewritten.
8352 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
8354 * grub-core/fs/nilfs2.c (grub_nilfs2_mtime): Use correct superblock
8357 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
8359 * grub-core/fs/zfs/zfs.c (read_device): Support raidz3.
8361 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
8363 * grub-core/fs/zfs/zfs.c (read_device): Add ability to sustain a single
8364 drive failure on both raidz and raidz2.
8366 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
8368 Fix RAIDZ(2) for >= 5 devices.
8370 * grub-core/fs/zfs/zfs.c (read_device): Fix length formula. Remove
8371 asize argument. All users updated.
8373 2011-11-01 Vladimir Serbinenko <phcoder@gmail.com>
8377 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member ashift.
8378 (fill_vdev_info_real): Set ashift.
8379 (read_device): Rewrite RAIDZ part based on reverse engineering.
8381 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
8383 * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Add sanity check and
8384 don't report potentially unavialiable fields in debug output.
8385 (find_path): Fix double-free and memory leak.
8387 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
8391 * grub-core/fs/ufs.c (grub_ufs_label): Remove MODE_UFS2 condition.
8392 (grub_ufs_fs): Always set .label.
8394 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
8398 * grub-core/fs/ufs.c (UFS_LOG_BLKSZ): New macro.
8399 (grub_ufs_data): New field log2_blksz.
8400 (grub_ufs_read_file): Use shifts.
8401 (grub_ufs_mount): Check block size and logarithm it.
8403 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
8405 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Fix handling of
8408 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
8410 Handle symlinks and long names on tar and cpio.
8412 * grub-core/fs/cpio.c (ATTR_TYPE): New definition.
8413 (ATTR_FILE): Likewise.
8414 (ATTR_DIR): Likewise.
8415 (ATTR_LNK): Likewise.
8416 (grub_cpio_data) [MODE_USTAR]: New fields linkname and linkname_alloc.
8417 (grub_cpio_find_file): Fill mode, handle linkname field as well as
8419 (grub_cpio_mount): Zero-fill data.
8420 (handle_symlink): New function.
8421 (grub_cpio_dir): Handle symlinks.
8422 (grub_cpio_open): Likewise.
8423 (grub_cpio_close) [MODE_USTAR]: Free linkname.
8425 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
8427 Fix iso9660 filename limitations and fix memory leaks.
8429 * grub-core/fs/iso9660.c (set_rockridge): Free sua at the end.
8430 (grub_iso9660_iterate_dir): Fix slash handling in symlinks.
8432 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
8434 Fix JFS file name length limitations.
8436 * grub-core/fs/jfs.c (grub_jfs_inode): Fix in-place symlink length.
8437 (grub_jfs_diropen): Fix maximum filename length.
8438 (grub_jfs_getent): Fix filename length.
8439 (grub_jfs_lookup_symlink): Fix size checks.
8441 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
8443 * grub-core/loader/mips/linux.c (loongson_machtypes): Fix fuloong type
8446 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
8448 Leverage BFS implementation to read AFS.
8450 * Makefile.util.def (libgrubmods): Add afs.c.
8451 * grub-core/Makefile.core.def (afs): New module
8452 * grub-core/fs/afs.c: New file.
8453 * grub-core/fs/bfs.c [MODE_AFS]: Adapt for AFS.
8455 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
8457 * grub-core/fs/bfs.c: Macroify and add some necessary sanity checks.
8459 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
8461 * grub-core/fs/bfs.c: Run indent.
8463 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
8465 BFS implementation based on the specification.
8467 * grub-core/fs/bfs.c: New file.
8468 * Makefile.util.def (libgrubmods): Add bfs.c.
8469 * grub-core/Makefile.core.def (bfs): New module.
8471 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
8473 * util/grub-fstest.c (cmd_cp): Clarify error message.
8474 (cmd_cmp): Likewise.
8476 2011-10-30 Yves Blusseau <blusseau@zetam.org>
8478 * po/POTFILES.in: Regenerate because of the removal of afs, afs_be, befs
8481 2011-10-29 Vladimir Serbinenko <phcoder@gmail.com>
8483 Remove afs and befs because of copyright problem.
8485 * grub-core/fs/afs.c: Removed.
8486 * grub-core/fs/afs_be.c: Removed.
8487 * grub-core/fs/befs.c: Removed.
8488 * grub-core/fs/befs_be.c: Removed.
8489 * Makefile.util.def (libgrubkern): Remove afs, afs_be, befs and befs_be.
8490 * grub-core/Makefile.core.def (afs): Removed.
8493 (befs_be): Likewise.
8495 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
8497 Prefer rockridge over Joliet.
8499 * grub-core/fs/iso9660.c (grub_iso9660_mount): Move rockridge detection
8501 (set_rockridge): ... here.
8502 (grub_iso9660_mount): Check rockridge on the primary label when
8503 discovering. Ignore Joliet if Rockridge is present.
8505 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
8507 Use shifts in nilfs2.
8509 * grub-core/fs/nilfs2.c (LOG_INODE_SIZE): New definition.
8510 (LOG_NILFS_DAT_ENTRY_SIZE): Likewise.
8511 (grub_nilfs2_palloc_entries_per_group): Replace with ...
8512 (grub_nilfs2_log_palloc_entries_per_group): ... this.
8513 (grub_nilfs2_palloc_group): Use shifts and bitmasks.
8514 (grub_nilfs2_entries_per_block): Replaced with ...
8515 (grub_nilfs2_log_entries_per_block_log): ... this.
8516 (grub_nilfs2_blocks_per_group): Replaced with ...
8517 (grub_nilfs2_blocks_per_group_log): ... this.
8518 (grub_nilfs2_blocks_per_desc_block): Replaced with ...
8519 (grub_nilfs2_blocks_per_desc_block_log): ... this.
8520 (grub_nilfs2_palloc_desc_block_offset): Replaced with ...
8521 (grub_nilfs2_palloc_desc_block_offset_log): ... this.
8522 (grub_nilfs2_palloc_entry_offset): Replaced ...
8523 (grub_nilfs2_palloc_entry_offset_log): ... this. Use shifts.
8524 (grub_nilfs2_dat_translate): Use shifts.
8525 (grub_nilfs2_read_inode): Likewise.
8526 (GRUB_MOD_INIT): Ensure that logs are correct.
8528 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
8530 Use shifts in minix filesystem.
8532 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use log_block_size.
8533 (GRUB_MINIX_ZONE2SECT): Likewise.
8534 (grub_minix_data): Replace block_size with log_block_size.
8535 (grub_minix_read_file): Use shifts.
8536 (grub_minix_mount): Check block size and take a logarithm.
8538 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
8540 Use shifts in squash4.
8542 * grub-core/fs/squash4.c (grub_squash_data): New field log2_blksz.
8543 (squash_mount): Check block size and take logarithm.
8544 (direct_read): Use shifts.
8546 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
8548 Correct befs block counting logic.
8550 * grub-core/fs/afs.c (GRUB_AFS_BLOCKS_PER_DI_RUN): Replaced with...
8551 (GRUB_AFS_LOG_BLOCKS_PER_DI_RUN): ... this.
8552 (GRUB_AFS_BLOCKRUN_LOG_SIZE): New definition.
8553 (grub_afs_read_inode): Use block_shift.
8554 (RANGE_SHIFT): New definition.
8555 (grub_afs_read_block): Account for RANGE_SHIFT, emit errors on
8556 unexpected conditions, use shifts and appropriate types.
8557 (GRUB_MOD_INIT): Check the value of GRUB_AFS_BLOCKRUN_LOG_SIZE.
8559 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
8561 * grub-core/disk/raid.c (scan_devices): Check partition.
8562 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
8564 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
8566 Support BFS (befs) UUID.
8568 * grub-core/fs/afs.c (grub_afs_inode): Make small_data zero-size.
8569 (grub_afs_small_data_element_header): New struct.
8570 (grub_afs_read_inode): Read complete inode. Fix ino type while on it.
8571 (grub_afs_read_attribute) [MODE_BFS]: New function.
8572 (grub_afs_iterate_dir): Allocate for complete inode.
8573 (grub_afs_mount): Likewise.
8574 (grub_afs_uuid) [MODE_BFS]: New function.
8575 (grub_afs_fs) [MODE_BFS]: Add .uuid.
8577 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
8579 * grub-core/fs/zfs/zfs.c (read_device): Silence spurious warning.
8580 (zfs_unmount): Fix memory leak.
8582 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
8584 Support NTFS reparse points.
8586 * grub-core/fs/ntfs.c (list_file): Set symlink type when appropriate.
8587 (symlink_descriptor): New struct.
8588 (grub_ntfs_read_symlink): New function.
8589 (grub_ntfs_iterate_dir): Use grub_ntfs_read_symlink.
8590 (grub_ntfs_open): Likewise.
8592 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
8594 * include/grub/ntfs.h: Add GRUB_NTFS_ prefix. All users updated.
8596 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
8598 fstest xnu_uuid subcommand.
8600 * grub-core/commands/xnu_uuid.c (libgrubkrn): Add
8601 grub-core/commands/xnu_uuid.c.
8602 * util/grub-fstest.c (CMD_XNU_UUID): New enum value.
8603 (fstest): Handle xnu_uuid.
8604 (options): Document xnu_uuid.
8605 (argp_parser): Parse xnu_uuid.
8607 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
8609 * grub-core/commands/xnu_uuid.c (grub_cmd_xnu_uuid): Support
8610 -l argument. Add newline at the end if printing.
8611 (GRUB_MOD_INIT): Document -l.
8613 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
8615 * grub-core/fs/nilfs2.c (grub_nilfs2_uuid): Add missing field length.
8617 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
8619 ZFS multi-device and version 33 support.
8621 * Makefile.util.def (libgrubkern): Add grub-core/fs/zfs/zfsinfo.c.
8622 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New struct.
8623 (grub_zfs_data): Add multidev-ice-related fields.
8624 (zio_checksum_verify): Zero-pad printed values. Print checksum name.
8625 (dva_get_offset): Make dva const.
8626 (zfs_fetch_nvlist): New function.
8627 (fill_vdev_info_real): Likewise.
8628 (fill_vdev_info): Likewise.
8629 (check_pool_label): Likewise.
8630 (scan_disk): Likewise.
8631 (scan_devices): Likewise.
8632 (read_device): Likewise.
8633 (read_dva): Likewise.
8634 (zio_read_gang): Use read_dva.
8635 (zio_read_data): Likewise.
8636 (zap_leaf_lookup): Add missing endian conversion.
8637 (zap_verify): Add missing endian conversion. All users updated.
8638 (fzap_lookup): Likewise.
8639 (fzap_iterate): Likewise.
8640 (dnode_get_path): Handle SA bonus.
8641 (nvlist_find_value): Make input const. All users updated.
8642 (unmount_device): New function.
8643 (zfs_unmount): Use unmount_device.
8644 (zfs_mount): Use scan_disk.
8645 (zfs_mtime): New function.
8646 (grub_zfs_open): Handle system attributes.
8647 (fill_fs_info): Likewise.
8648 (grub_zfs_dir): Likewise.
8649 (grub_zfs_fs): Add mtime.
8650 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add missing return.
8651 * include/grub/zfs/sa_impl.h (SA_TYPE_OFFSET): New definition.
8652 (SA_MTIME_OFFSET): Likewise.
8653 (SA_SYMLINK_OFFSET): Likewise.
8654 * include/grub/zfs/zfs.h (SPA_VERSION): Increase to 33.
8655 * util/grub-fstest.c (CMD_ZFSINFO): New enum value.
8656 (fstest): Support zfsinfo.
8657 (argp_parser): Likewise.
8659 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
8661 * include/grub/datetime.h (grub_datetime2unixtime): Fix off-by-one
8664 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
8668 * grub-core/fs/zfs/zfs.c (fzap_iterate): Fix handling of indexes
8669 sharing the same block. Iterate over correct number of indices.
8670 (dnode_get_path): Handle symlinks correctly.
8672 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
8674 * grub-core/fs/jfs.c (grub_jfs_sblock): Fix offset to volname.
8676 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
8680 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey_id): New function.
8681 (grub_hfsplus_btree_search): Fix types.
8682 (grub_hfsplus_label): Implement.
8684 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
8686 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Fix a memory leak.
8688 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
8690 * grub-core/fs/fat.c (grub_fat_uuid): Make uppercase to match Linux.
8692 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
8694 Fix symlink handling on iso9660.
8696 * grub-core/fs/iso9660.c (grub_fshelp_node): Remove dir_off. Add symlink
8698 (grub_iso9660_susp_iterate): Accept zero-size iterate.
8699 (grub_iso9660_read_symlink): Moved most of code ...
8700 (grub_iso9660_iterate_dir): ... here. Fill node->symlink.
8702 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
8704 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
8705 Use union to avoid breaking strict-aliasing rules.
8707 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
8709 Support multi-extent iso files.
8711 * grub-core/fs/iso9660.c (grub_iso9660_data): Remove first_sector.
8713 (grub_fshelp_node): Revamp. All users updated.
8715 (read_node): New function.
8716 (grub_iso9660_susp_iterate): Use read_node. Receive a node as argument.
8718 (grub_iso9660_mount): Don't attempt to read sua when there is none.
8719 (get_node_size): New function.
8720 (grub_iso9660_iterate_dir): Use read_node. Agglomerate multi-extent
8722 Fix memory leak on . and ..
8723 (grub_iso9660_read): Use read_node.
8724 (grub_iso9660_close): Free node.
8726 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
8728 Fix tar 4G limit and handle paths containing dot.
8730 * grub-core/fs/cpio.c (grub_cpio_data): Use grub_off_t for offsets.
8731 (canonicalize): New function.
8732 (grub_cpio_find_file): Use canonicalize. Store offs in
8734 (grub_cpio_dir): Use grub_disk_addr_t.
8735 (grub_cpio_open): Likewise.
8737 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
8739 Fix handling of uncompressed blocks on squashfs and break 4G limit.
8741 * grub-core/fs/squash4.c (grub_squash_super): Add block_size. Remove
8743 (grub_squash_inode): Add long_file and block_size.
8744 (grub_squash_cache_inode): New struct.
8745 (grub_squash_dirent): Make types into enum.
8746 (SQUASH_TYPE_LONG_REGULAR): New type.
8747 (grub_squash_frag_desc): Add field size.
8748 (SQUASH_BLOCK_FLAGS): New enum.
8749 (grub_squash_data): Use grub_squash_cache_inode.
8750 (grub_fshelp_node): Make ino_chunk 64-bit.
8751 (read_chunk): Minor argument change. All users updated.
8752 (squash_mount): Use correct le_to_cpu.
8753 (grub_squash_open): Handle LONG_REGULAR.
8754 (direct_read): New function.
8755 (grub_squash_read_data): Handle blocks correctly.
8757 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
8759 * grub-core/kern/disk.c (grub_disk_read_small): Fix memory leak.
8761 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
8763 * grub-core/fs/romfs.c (grub_romfs_open): Add missing return.
8765 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
8767 Fix 2G limit on ZFS.
8769 * grub-core/fs/zfs/zfs.c (zio_checksum_verify): Use more appropriate
8771 (uberblock_verify): Likewise.
8772 (dmu_read): Likewise.
8773 (grub_zfs_read): Likewise. Remove invalid cast.
8775 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
8777 * grub-core/fs/jfs.c (grub_jfs_blkno): Use more appropriate types.
8778 (grub_jfs_blkno): Fix incorrect shift.
8779 (grub_jfs_read_file): Use more appropriate types.
8781 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
8783 Support triple indirect on minix2 and minix3.
8785 * grub-core/fs/minix.c (grub_minix_inode) [MODE_MINIX2 || MODE_MINIX3]:
8786 Declare triple_indir_zone.
8787 (grub_minix_get_file_block) [MODE_MINIX2 || MODE_MINIX3]: Handle triple
8790 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
8794 * grub-core/fs/minix.c (GRUB_MINIX_INODE_SIZE): Size is always 32-bit.
8795 (grub_minix_inode) [!MODE_MINIX2 && !MODE_MINIX3]: Make size 32-bit.
8796 Rename ctime to mtime. All users updated.
8797 (grub_minix_get_file_block): Fix types and double indirect computations.
8799 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
8801 * grub-core/fs/fat.c (grub_fat_label) [MODE_EXFAT]: Set *label to 0
8802 if no label is found.
8803 (grub_fat_iterate_dir): Fix file size type.
8804 (grub_fat_iterate_dir): Likewise.
8806 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
8808 * grub-core/lib/reed_solomon.c (gf_invert): Declare as const and
8810 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
8811 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
8813 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
8815 * util/import_gcry.py: Automatically fix camellia.c and camellia.h.
8817 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
8819 * util/import_gcry.py: Accept space between # and include.
8821 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
8823 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/longjmp.S.
8825 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
8827 Fine grainely disable warnings on lexer. Remove Wno-error on it.
8829 * grub-core/Makefile.core.def (normal): Remove -Wno-error.
8830 * grub-core/script/lexer.c: Declare yytext_ptr to avoid having
8832 * grub-core/script/yylex.l: Add fine-grained #pragma.
8834 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
8836 * grub-core/lib/posix_wrap/string.h (memcpy) [GRUB_UTIL]:
8837 New inline function.
8838 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy) [GRUB_UTIL]:
8840 (memset) [GRUB_UTIL]: Likewise.
8841 (memcmp) [GRUB_UTIL]: Likewise.
8843 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
8845 * include/grub/misc.h (grub_memcpy): Declare grub_memcpy with static
8846 inline function rather than a define.
8848 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
8850 * util/grub-setup.c: Add missing include.
8852 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
8854 * util/ieee1275/grub-ofpathname.c: Add missing include.
8856 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
8858 * grub-core/kern/i386/pc/startup.S (grub_exit): Add missing zeroing-out.
8859 * grub-core/lib/i386/reboot_trampoline.S (grub_reboot_start):
8862 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
8864 * grub-core/io/lzopio.c (test_header): Fix incorrect memcmp instead of
8867 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
8869 * util/grub-install.in: Add datarootdir as per automake manual
8871 * util/grub-mknetdir.in: Likewise.
8873 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
8875 * util/grub.d/10_hurd.in: Add datarootdir as per automake manual
8877 * util/grub.d/10_kfreebsd.in: Likewise.
8878 * util/grub.d/10_linux.in: Likewise.
8879 * util/grub.d/10_netbsd.in: Likewise.
8880 * util/grub.d/10_windows.in: Likewise.
8881 * util/grub.d/20_linux_xen.in: Likewise.
8883 2011-10-20 Vladimir Serbinenko <phcoder@gmail.com>
8885 Remove redundant grub_kernel_image_size.
8887 * grub-core/kern/i386/coreboot/init.c (grub_machine_init): Use
8889 * grub-core/kern/i386/coreboot/startup.S: Move multiboot header after
8890 the small code. It moves it only by few bytes but simplifies the code.
8891 * grub-core/kern/i386/pc/init.c (grub_machine_init): Use _edata and
8893 * grub-core/kern/i386/pc/startup.S: Use _edata and _start.
8894 (grub_kernel_image_size): Removed.
8895 * grub-core/kern/i386/qemu/startup.S: Use _edata and _start.
8896 (grub_kernel_image_size): Removed.
8897 [APPLE_CC]: Remove apple compiler support. i386-qemu port can't be
8898 compiled with Apple toolchain.
8899 * grub-core/kern/sparc64/ieee1275/crt0.S: Remove leftover fields.
8900 * include/grub/i386/pc/kernel.h (grub_kernel_image_size): Removed.
8901 * include/grub/i386/qemu/kernel.h (grub_kernel_image_size): Removed.
8902 (grub_total_module_size): Likewise.
8903 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_KERNEL_IMAGE_SIZE):
8905 (GRUB_KERNEL_I386_PC_COMPRESSED_SIZE): Put it lower.
8906 (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART): Likewise.
8907 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
8908 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Likewise.
8909 (GRUB_KERNEL_I386_QEMU_KERNEL_IMAGE_SIZE): Removed.
8910 (GRUB_KERNEL_SPARC64_IEEE1275_KERNEL_IMAGE_SIZE): Likewise.
8911 (GRUB_KERNEL_SPARC64_IEEE1275_COMPRESSED_SIZE): Likewise.
8912 * include/grub/sparc64/ieee1275/kernel.h (grub_kernel_image_size):
8914 (grub_total_module_size): Removed.
8915 * util/grub-mkimage.c (image_target_desc): Remove image_size.
8916 (image_targets): Likewise.
8917 Set .compressed_size to no field on sparc.
8918 (generate_image): Remove kernel_image_size handling.
8920 2011-10-19 Szymon Janc <szymon@janc.net.pl>
8922 * grub-core/bus/usb/uhci.c (grub_uhci_setup_transfer): Fix possible
8923 NULL pointer dereference.
8925 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
8927 Removed unused GRUB_BOOT_VERSION. Check for kernel version is better
8928 done with a dedicated section.
8930 * grub-core/boot/sparc64/ieee1275/boot.S: Remove GRUB_BOOT_VERSION.
8931 Ensure the correct position of boot_path.
8932 * grub-core/kern/i386/efi/startup.S: Remove GRUB_BOOT_VERSION.
8933 * grub-core/kern/i386/pc/startup.S: Likewise. Ensure correct position of
8935 * grub-core/kern/x86_64/efi/startup.S: Remove GRUB_BOOT_VERSION.
8936 * include/grub/boot.h: Removed. All references removed.
8937 * include/grub/sparc64/ieee1275/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
8939 (GRUB_BOOT_MACHINE_BOOT_DEVPATH): Make it lower.
8941 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
8943 * util/grub-install.in: Declare IEEE1275 as able to find out the disk
8946 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
8948 * grub-core/kern/main.c (grub_set_prefix_and_root): Init prefix.
8950 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
8952 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
8953 Don't add the bogus brackets.
8955 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
8959 * Makefile.util.def (libgrubmods.a): Add grub-core/fs/exfat.c.
8960 * grub-core/Makefile.core.def (exfat): New module.
8961 * grub-core/fs/exfat.c: New file.
8962 * grub-core/fs/fat.c (GRUB_FAT_DIR_ENTRY_SIZE): Removed.
8963 (GRUB_FAT_ATTR_*): Make into an enum.
8964 (GRUB_FAT_ATTR_LONG_NAME) [MODE_EXFAT]: Removed.
8965 (GRUB_FAT_ATTR_VALID) [MODE_EXFAT]: Remove GRUB_FAT_ATTR_VOLUME_ID.
8966 (GRUB_FAT_ATTR_VOLUME_ID) [MODE_EXFAT]: Removed.
8967 (GRUB_FAT_MAXFILE): Removed.
8968 (grub_exfat_bpb) [MODE_EXFAT]: New struct.
8969 (grub_current_fat_bpb_t): New type.
8970 (grub_fat_dir_entry) [MODE_EXFAT]: New struct.
8971 (grub_fat_dir_node) [MODE_EXFAT]: New struct.
8972 (grub_fat_dir_node_t): New type.
8973 (grub_fat_data) [MODE_EXFAT]: Remove root_sector and num_root_sectors.
8974 (fat_log2) [MODE_EXFAT]: Removed.
8975 (grub_fat_mount): Use grub_current_fat_bpb_t. Add some sanity checks.
8976 (grub_fat_mount) [MODE_EXFAT]: Handle ExFAT.
8977 (grub_fat_iterate_dir) [MODE_EXFAT]: New function.
8978 (grub_fat_find_dir) [MODE_EXFAT]: Handle ExFAT.
8979 (grub_fat_label) [MODE_EXFAT]: New function.
8980 (grub_fat_fs) [MODE_EXFAT]: Set name to "exfat" and
8981 reserved_first_sector to 0.
8983 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
8985 Move grub_reboot out of the kernel.
8987 * grub-core/Makefile.core.def (reboot): Add platform-specific files.
8988 * grub-core/kern/efi/efi.c (grub_reboot): Moved to ...
8989 * grub-core/lib/efi/reboot.c: ... here.
8990 * grub-core/kern/i386/efi/startup.S: Remove including of realmode.S.
8991 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
8992 * grub-core/kern/i386/pc/startup.S (grub_exit): Inline cold_reboot.
8993 * grub-core/kern/i386/realmode.S (grub_reboot): Moved to...
8994 * grub-core/lib/i386/reboot_trampoline.S: ... here.
8995 * grub-core/kern/ieee1275/openfw.c (grub_reboot): Moved to...
8996 * grub-core/lib/ieee1275/reboot.c: ... here.
8997 * grub-core/kern/mips/arc/init.c (grub_reboot): Moved to...
8998 * grub-core/lib/mips/arc/reboot.c: ... here.
8999 * grub-core/kern/mips/loongson/init.c (grub_reboot): Moved to...
9000 * grub-core/lib/mips/loongson/reboot.c: ...here.
9001 * grub-core/kern/mips/qemu_mips/init.c (grub_reboot): Moved to...
9002 * grub-core/lib/mips/qemu_mips/reboot.c: ... here.
9003 * include/grub/emu/misc.h (grub_reboot): New function declaration.
9004 * include/grub/i386/reboot.h: New file.
9005 * include/grub/mips/loongson/ec.h: Fix includes.
9006 * include/grub/mips/qemu_mips/kernel.h (grub_reboot): Removed.
9007 * include/grub/misc.h (grub_reboot): Don't mark as kernel function.
9008 * grub-core/lib/i386/reboot.c: New file.
9010 2011-10-18 Vladimir Serbinenko <phcoder@gmail.com>
9012 Make grub_prefix into module to fix the arbitrary limit and save
9015 * grub-core/kern/emu/main.c (grub_prefix): Removed.
9016 * grub-core/kern/i386/coreboot/startup.S (grub_prefix): Likewise.
9017 * grub-core/kern/i386/efi/startup.S (grub_prefix): Likewise.
9018 * grub-core/kern/i386/ieee1275/startup.S (grub_prefix): Likewise.
9019 * grub-core/kern/i386/pc/startup.S (grub_prefix): Likewise.
9020 * grub-core/kern/i386/qemu/startup.S (grub_prefix): Likewise.
9021 * grub-core/kern/ia64/efi/startup.S (grub_prefix): Likewise.
9022 * grub-core/kern/mips/startup.S (grub_prefix): Likewise.
9023 * grub-core/kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
9024 * grub-core/kern/sparc64/ieee1275/crt0.S (grub_prefix): Likewise.
9025 * grub-core/kern/x86_64/efi/startup.S (grub_prefix): Likewise.
9026 * include/grub/ia64/efi/kernel.h: Removed.
9027 * include/grub/kernel.h: New module type OBJ_TYPE_PREFIX.
9028 (grub_prefix): Removed.
9029 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_PREFIX): Removed.
9030 (GRUB_KERNEL_I386_PC_PREFIX_END): Likewise.
9031 (GRUB_KERNEL_I386_QEMU_PREFIX): Likewise.
9032 (GRUB_KERNEL_I386_QEMU_PREFIX_END): Likewise.
9033 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX): Likewise.
9034 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX_END): Likewise.
9035 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX): Likewise.
9036 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX_END): Likewise.
9037 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX): Likewise.
9038 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX_END): Likewise.
9039 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
9040 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
9041 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
9042 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
9043 (GRUB_KERNEL_I386_EFI_PREFIX): Likewise.
9044 (GRUB_KERNEL_I386_EFI_PREFIX_END): Likewise.
9045 (GRUB_KERNEL_IA64_EFI_PREFIX): Likewise.
9046 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
9047 (GRUB_KERNEL_X86_64_EFI_PREFIX): Likewise.
9048 (GRUB_KERNEL_X86_64_EFI_PREFIX_END): Likewise.
9049 (GRUB_KERNEL_I386_COREBOOT_PREFIX): Likewise.
9050 (GRUB_KERNEL_I386_COREBOOT_PREFIX_END): Likewise.
9051 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX): Likewise.
9052 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX_END): Likewise.
9053 (GRUB_KERNEL_I386_IEEE1275_PREFIX): Likewise.
9054 (GRUB_KERNEL_I386_IEEE1275_PREFIX_END): Likewise.
9055 (GRUB_KERNEL_MACHINE_PREFIX): Likewise.
9056 (GRUB_KERNEL_MACHINE_PREFIX_END): Likewise.
9057 * grub-core/kern/main.c (grub_set_prefix_and_root): Retrieve grub_prefix
9059 * util/grub-mkimage.c (image_target_desc): Removed prefix and
9061 (image_targets): Likewise.
9062 (generate_image): Put prefix as a module.
9064 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
9066 Replace grub_module_iterate with FOR_MODULES.
9068 * grub-core/disk/memdisk.c (GRUB_MOD_INIT): Switched to new interface.
9069 * grub-core/kern/efi/efi.c (grub_arch_modules_addr): Renamed to...
9070 (grub_efi_modules_addr): ...this.
9071 * grub-core/kern/efi/init.c (grub_modbase): New variable.
9072 (grub_efi_init): Set grub_modbase.
9073 * grub-core/kern/emu/main.c (grub_arch_modules_addr): Removed.
9074 (grub_modbase): New variable.
9075 * grub-core/kern/i386/coreboot/init.c (grub_arch_modules_addr): Removed.
9076 (grub_modbase): New variable.
9077 (grub_machine_init): Set grub_modbase.
9078 * grub-core/kern/i386/pc/init.c (grub_arch_modules_addr): Removed.
9079 (grub_modbase): New variable.
9080 (grub_machine_init): Set grub_modbase.
9081 * grub-core/kern/ieee1275/init.c (grub_arch_modules_addr): Removed.
9082 (grub_modbase): New variable.
9083 (grub_machine_init): Set grub_modbase.
9084 * grub-core/kern/main.c (grub_module_iterate): Remove.
9085 (grub_modules_get_end): Use grub_modbase.
9086 (grub_load_modules): Use FOR_MODULES.
9087 (grub_load_config): Likewise.
9088 * grub-core/kern/mips/arc/init.c (grub_arch_modules_addr): Removed.
9089 (grub_modbase): New variable.
9090 (grub_machine_init): Set grub_modbase.
9091 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): Removed.
9092 (grub_modbase): New variable.
9093 (grub_machine_init): Set grub_modbase.
9094 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr):
9096 (grub_modbase): New variable.
9097 (grub_machine_init): Set grub_modbase.
9098 * include/grub/efi/efi.h (grub_efi_modules_addr): New declaration.
9099 * include/grub/kernel.h (grub_arch_modules_addr): Removed.
9100 (grub_module_iterate): Likewise.
9101 (grub_modbase): New variable declaration.
9102 (FOR_MODULES): New macro.
9104 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
9106 * configure.ac: Check for __ctzdi2 and __ctzsi2.
9107 * include/grub/libgcc.h: Include __ctzdi2 and __ctzsi2 if present.
9109 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
9111 Fix few obvious type discrepancies.
9113 * grub-core/fs/affs.c (grub_affs_read_file): Use grub_off_t for offset.
9114 * grub-core/fs/afs.c (grub_afs_read_file): Likewise.
9115 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Remove leftover
9117 * grub-core/fs/hfs.c (grub_hfs_read_file): Use grub_off_t for offset
9118 and connected types.
9119 * grub-core/fs/nilfs2.c (grub_nilfs2_read_file): Use grub_off_t for
9121 (grub_nilfs2_iterate_dir): Use grub_off_t for fpos.
9122 * grub-core/fs/sfs.c (grub_sfs_read_file): Use grub_off_t for offset.
9123 * grub-core/fs/ufs.c (grub_ufs_read_file): Use grub_off_t for offset
9124 and connected types.
9126 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
9128 Fix python 3.x incompatibilities.
9130 * gentpl.py: Put brackets around print strings.
9131 * util/import_gcry.py: Open explicitly as utf-8.
9132 Use in instead of has_key.
9134 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
9136 * grub-core/fs/xfs.c (grub_xfs_inode): New field fork_offset.
9137 (GRUB_XFS_INO_AGBITS): Make into inline function.
9138 (GRUB_XFS_INO_INOINAG): Likewise.
9139 (GRUB_XFS_INO_AG): Likewise.
9140 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
9141 (GRUB_XFS_EXTENT_OFFSET): Likewise.
9142 (GRUB_XFS_EXTENT_BLOCK): Likewise.
9143 (GRUB_XFS_EXTENT_SIZE): Likewise.
9144 (GRUB_XFS_ROUND_TO_DIRENT): Likewise.
9145 (GRUB_XFS_NEXT_DIRENT): Likewise.
9146 (grub_xfs_read_block): Rewrite the btree parsing. Fixes invalid BMAP.
9147 (grub_xfs_read_file): Fix offset type.
9149 2011-10-15 Robert Millan <rmh@gnu.org>
9151 * util/getroot.c (grub_util_get_grub_dev): Fix OS selection #ifdefs.
9153 2011-10-15 Robert Millan <rmh@gnu.org>
9155 Fix build problem on FreeBSD and GNU/kFreeBSD.
9157 * util/getroot.c [__FreeBSD_kernel__]: Include `<sys/mount.h>'.
9159 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
9161 Fix overflow with >2GiB file on HFS+. >4GiB wasn't tested.
9163 * grub-core/fs/hfsplus.c (grub_hfsplus_btree): Use more appropriate
9165 (grub_hfsplus_btree_recoffset): Likewise.
9166 (grub_hfsplus_btree_recptr): Likewise.
9167 (grub_hfsplus_find_block): Likewise.
9168 (grub_hfsplus_btree_search): Likewise.
9169 (grub_hfsplus_read_block): Likewise.
9170 (grub_hfsplus_read_file): Likewise.
9171 (grub_hfsplus_mount): Likewise.
9172 (grub_hfsplus_btree_iterate_node): Likewise.
9173 (grub_hfsplus_btree_search): Likewise.
9174 (grub_hfsplus_iterate_dir): Likewise.
9175 (grub_hfsplus_read): A small code simplification.
9177 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
9179 * grub-core/kern/emu/hostdisk.c
9180 (convert_system_partition_to_system_disk): Don't assume that children
9181 of mapper nodes are mapper nodes.
9183 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
9185 * grub-core/lib/posix_wrap/ctype.h (isxdigit): Use grub_isxdigit.
9186 * include/grub/misc.h (grub_isxdigit): New function.
9187 * grub-core/video/colors.c (my_isxdigit): Removed. All users
9188 switched to grub_isxdigit.
9189 * grub-core/term/serial.c (grub_serial_find): Fix in case of port
9190 number starting with a letter.
9192 2011-10-09 Robert Millan <rmh@gnu.org>
9194 LVM support for FreeBSD and GNU/kFreeBSD.
9196 * util/lvm.c (grub_util_lvm_isvolume): Enable on FreeBSD and
9198 (LVM_DEV_MAPPER_STRING): Move from here ...
9199 * include/grub/util/lvm.h (LVM_DEV_MAPPER_STRING): ... to here.
9200 * util/getroot.c: Include `<grub/util/lvm.h>'.
9201 (grub_util_get_dev_abstraction): Enable
9202 grub_util_biosdisk_is_present() on FreeBSD and GNU/kFreeBSD.
9203 Check for LVM abstraction on FreeBSD and GNU/kFreeBSD.
9204 (grub_util_get_grub_dev): Replace "/dev/mapper/" with
9205 `LVM_DEV_MAPPER_STRING'. Enable LVM and mdRAID only on platforms that
9207 * util/grub-setup.c (main): Check for LVM also on FreeBSD and
9209 * util/grub.d/10_kfreebsd.in: Load `geom_linux_lvm' kernel module
9210 when LVM abstraction is required for ${GRUB_DEVICE}.
9212 2011-10-06 Szymon Janc <szymon@janc.net.pl>
9214 Add support for LZO compression in GRUB:
9215 - import of minilzo library,
9216 - LZO decompression for btrfs,
9217 - lzop files decompression.
9219 * grub-core/io/lzopio.c: New file.
9220 * grub-core/lib/adler32.c: Likewise.
9221 * grub-core/lib/minilzo/lzoconf.h: Likewise.
9222 * grub-core/lib/minilzo/lzodefs.h: Likewise.
9223 * grub-core/lib/minilzo/minilzo.c: Likewise.
9224 * grub-core/lib/minilzo/minilzo.h: Likewise.
9225 * Makefile.util.def (libgrubmods.a): Add grub-core/io/lzopio.c,
9226 grub-core/lib/adler32.c, grub-core/io/lzopio.c,
9227 grub-core/lib/minilzo/minilzo.c to common.
9228 * Makefile.util.def (libgrubmods.a): Add flags required by minilzo to
9230 * grub-core/Makefile.core.def (btrfs): Likewise.
9231 * grub-core/Makefile.core.def (lzopio): New module.
9232 (adler32): Likewise.
9233 * grub-core/fs/btrfs.c: Include minilzo.h.
9234 (GRUB_BTRFS_COMPRESSION_LZO): New define.
9235 (GRUB_BTRFS_LZO_BLOCK_SIZE): Likewise.
9236 (GRUB_BTRFS_LZO_BLOCK_MAX_CSIZE): Likewise.
9237 (grub_btrfs_lzo_decompress): New function.
9238 (grub_btrfs_extent_read): Add support for LZO compression type.
9239 * include/grub/types.h (GRUB_UCHAR_MAX): New define.
9240 (GRUB_USHRT_MAX): Likewise.
9241 (GRUB_UINT_MAX): Likewise.
9242 * grub-core/lib/posix_wrap/limits.h (USHRT_MAX): Likewise.
9243 (UINT_MAX): Likewise.
9244 (CHAR_BIT): Likewise.
9245 * grub-core/lib/posix_wrap/sys/types.h (ULONG_MAX): Moved to
9246 grub-core/lib/posix_wrap/limits.h
9247 (UCHAR_MAX): Likewise.
9248 * include/grub/file.h (grub_file_filter_id): New compression filter
9249 GRUB_FILE_FILTER_LZOPIO.
9250 * include/grub/file.h (grub_file_filter_id): Set
9251 GRUB_FILE_FILTER_LZOPIO as GRUB_FILE_FILTER_COMPRESSION_LAST.
9252 * include/grub/types.h (grub_get_unaligned16): New function.
9253 (grub_get_unaligned32): Likewise.
9254 (grub_get_unaligned64): Likewise.
9255 * util/import_gcry.py (cryptolist): Add adler32.
9257 2011-10-05 Vladimir Serbinenko <phcoder@gmail.com>
9259 * grub-core/Makefile.core.def: Eliminate rarely used emu_condition. This
9260 in perspective decreases the complexity of build system and fixes
9261 compilation right now.
9263 2011-10-01 Ales Nesrsta <starous@volny.cz>
9265 * grub-core/bus/usb/uhci.c: Changes made by Rock Cui - thanks!
9266 (fixed problem related to using UHCI with coreboot).
9268 2011-08-25 BVK Chaitanya <bvk.groups@gmail.com>
9270 * gentpl.py: Use Autogen macros so that the output template file
9271 (Makefile.tpl) size is reduced.
9273 2011-09-29 Mads Kiilerich <mads@kiilerich.com>
9275 * grub-core/Makefile.core.def (kernel): Add kern/i386/int.S to
9278 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
9280 * util/misc.c (grub_util_get_disk_size) [__MINGW32__]: Strip trailing
9281 slashes on PHYSICALDRIVE%d paths when making Windows CreateFile calls.
9283 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
9285 * grub-core/kern/emu/misc.c (canonicalize_file_name) [__MINGW32__]: Use
9288 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
9290 Remove extra declaration of sleep for mingw32.
9292 * util/misc.c (sleep) [__MINGW32__]: Removed.
9293 * include/grub/util/misc.h (sleep) [__MINGW32__]: Likewise.
9295 2011-09-28 Grégoire Sutre <gregoire.sutre@gmail.com>
9297 * include/grub/bsdlabel.h (grub_partition_bsd_disk_label): Add fields
9299 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK):
9301 (NETBSD_BTINFO_BOOTWEDGE): New definition.
9302 (grub_netbsd_btinfo_bootwedge): New struct.
9303 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
9305 (grub_cmd_netbsd): Call grub_netbsd_add_boot_disk_and_wedge.
9307 2011-09-28 Thomas Haller <thomas.haller@fen-net.de>
9309 * grub-core/loader/multiboot_elfxx.c (Elf_Shdr): Set according to
9312 2011-09-28 Andreas Born <futur.andy@googlemail.com>
9314 Fix incorrect identifiers in bash-completion.
9316 * util/bash-completion.d/grub-completion.bash.in
9317 (_grub_mkpasswd-pbkdf2): Rename to ...
9318 (_grub_mkpasswd_pbkdf2): ... this. All users updated.
9319 (_grub_script-check): Rename to ...
9320 (_grub_script_check): ... this. All users updated.
9322 2011-09-28 Vladimir Serbinenko <phcoder@gmail.com>
9324 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
9325 Return 0 if disk isn't biosdisk.
9327 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
9329 * Makefile.util.def (grub-mkrelpath): Add LIBUTIL for getrawpartition(3)
9331 * Makefile.util.def (grub-fstest): Likewise.
9333 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
9335 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__NetBSD__]:
9336 Get sector size from disk label.
9338 2011-09-05 Colin Watson <cjwatson@ubuntu.com>
9340 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Return 1 for
9341 */README* as well as README*.
9342 Reported by: Axel Beckert.
9344 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
9346 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Handle the
9347 case of less than 256 MiB of RAM.
9349 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
9351 * grub-core/commands/wildcard.c (make_regex): Handle @.
9353 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
9355 * util/grub-install.in: Move cryptodisk logic to appropriate place.
9357 2011-08-21 Szymon Janc <szymon@janc.net.pl>
9359 * acinclude.m4: Use AC_LANG_PROGRAM macro to generate source code for
9360 AC_LANG_CONFTEST macros.
9362 2011-08-20 Szymon Janc <szymon@janc.net.pl>
9364 Add grub-fstest option to uncompress data for commands.
9366 * util/grub-fstest.c (uncompress): New var.
9367 (options): New option -u.
9369 2011-08-20 Szymon Janc <szymon@janc.net.pl>
9371 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
9372 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E to switch case statement.
9374 2011-08-20 Szymon Janc <szymon@janc.net.pl>
9376 * grub-core/io/gzio.c (grub_gzio_open): Always return original io if
9377 file type was not recognized correctly (not gzip or corrupted).
9379 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
9381 * grub-core/kern/mips/loongson/init.c (grub_reboot): Reboot Fuloong.
9382 * include/grub/cs5536.h (GRUB_CS5536_MSR_DIVIL_RESET): New definition.
9384 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
9386 * grub-core/Makefile.core.def (kernel): Add video/radeon_fuloong2e.c on
9388 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
9389 video_radeon_fuloong2e.
9390 * grub-core/video/radeon_fuloong2e.c: New file.
9391 * include/grub/video.h (grub_video_id_t): Add new ID
9392 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E.
9394 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
9396 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_COP0_PRID): New
9398 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Check
9399 that PRID matches the detected subplatform and reset the subplatform
9402 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
9404 * grub-core/kern/misc.c (grub_vprintf): Fix a bug on malloc failure.
9406 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
9408 Fix PCI iterating on functions >= 4.
9410 * grub-core/bus/pci.c (grub_pci_iterate): Remove useless ghost skipping.
9411 * include/grub/mips/loongson/pci.h (GRUB_LOONGSON_OHCI_GHOST_FUNCTION):
9413 (GRUB_LOONGSON_EHCI_GHOST_FUNCTION): Likewise.
9414 (grub_pci_read): Fix bitmask.
9415 (grub_pci_read_word): Likewise.
9416 (grub_pci_read_byte): Likewise.
9417 (grub_pci_write): Likewise.
9418 (grub_pci_write_word): Likewise.
9419 (grub_pci_write_byte): Likewise.
9421 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
9423 * configure.ac: Don't impose march=loongson2f on loongson platform. (It
9424 can still be specified in TARGET_CFLAGS)
9426 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
9428 Rename Fuloong into Fuloong 2F. Add new ID for Fuloong2E.
9430 * grub-core/Makefile.core.def (fwstart_fuloong): Rename fwstart_fuloong
9431 into fwstart_fuloong2f. Use boot/mips/loongson/fuloong2f.S.
9432 * grub-core/boot/mips/loongson/fuloong.S: Rename to ...
9433 * grub-core/boot/mips/loongson/fuloong2f.S: ... this.
9434 (FULOONG): Rename to ...
9435 (FULOONG2F): ... this. All users updated.
9436 * grub-core/boot/mips/startup_raw.S (machtype_fuloong_str): Rename to
9437 (machtype_fuloong2f_str): ... this.
9438 (machtype_fuloong2e_str): New string.
9439 Check for machtype_fuloong2e_str.
9440 * grub-core/loader/mips/linux.c (loongson_machtypes)
9441 [GRUB_MACHINE_MIPS_LOONGSON]: Add GRUB_ARCH_MACHINE_FULOONG2E.
9442 * grub-core/term/serial.c (loongson_defserial)
9443 [GRUB_MACHINE_MIPS_LOONGSON]: New array.
9444 (grub_serial_register) [GRUB_MACHINE_MIPS_LOONGSON]: Use
9446 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_FULOONG):
9448 (GRUB_ARCH_MACHINE_FULOONG2F): ... this.
9449 (GRUB_ARCH_MACHINE_FULOONG2E): New const.
9450 * util/grub-mkimage.c (image_target_desc): Rename IMAGE_FULOONG_FLASH
9451 to IMAGE_FULOONG2F_FLASH. All users updated.
9452 (image_targets): Rename images.
9453 * util/grub-mkstandalone.in: Accept fuloong2f and fuloong2e.
9455 2011-08-19 Szymon Janc <szymon@janc.net.pl>
9457 Make enable of disk cache statistics code configurable.
9459 * configure.ac: --enable-cache-stats added.
9460 * config.h.in (DISK_CACHE_STATS): New define.
9461 * grub-core/Makefile.core.def (cacheinfo): New command.
9462 * include/grub/disk.h(grub_disk_cache_get_performance): New function.
9463 * grub-core/commands/cacheinfo.c: New file.
9464 * grub-core/commands/minicmd.c (grub_rescue_cmd_info): Updated and
9465 moved to cacheinfo.c.
9466 * grub-core/kern/disk.c: Use DISK_CACHE_STATS to disable disk cache
9468 * include/grub/disk.h: Likewise.
9470 2011-08-19 Szymon Janc <szymon@janc.net.pl>
9472 * Makefile.am (AUTOMAKE_OPTIONS): = Added -Wno-portability flag.
9473 * grub-core/Makefile.am: Likewise.
9475 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
9477 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_iterate): Skip with
9480 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
9482 * grub-core/fs/jfs.c (grub_jfs_read_file): New parameter ino.
9484 (grub_jfs_lookup_symlink): Use correct starting inode.
9486 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
9488 * util/grub-setup.c (main): Add missing gcry initialisation.
9490 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
9492 Don't accept text modes on EFI when booting Linux.
9494 * grub-core/loader/i386/linux.c (ACCEPTS_PURE_TEXT): New define.
9495 (grub_linux_boot) [!ACCEPTS_PURE_TEXT]: Restrict to graphics modes.
9497 2011-08-15 Mario Limonciello <mario_limonciello@dell.com>
9498 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
9500 * util/grub-probe.c (probe): Canonicalise the path argument, fixing
9501 use of "/path/.." as in grub-install for EFI as well as handling
9503 Fixes Debian bug #637768.
9505 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
9507 * util/grub-probe.c: Remove duplicate #include.
9509 2011-08-10 Robert Millan <rmh@gnu.org>
9511 Detect LSI MegaRAID SAS (`mfi') devices on GNU/kFreeBSD.
9513 * util/deviceiter.c [__FreeBSD_kernel__] (get_mfi_disk_name): New
9515 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for mfi
9516 (/dev/mfid[0-9]+) devices using get_mfi_disk_name().
9518 2011-08-03 Robert Millan <rmh@gnu.org>
9520 * include/grub/zfs/zap_leaf.h (typedef union zap_leaf_chunk): Mark
9522 Reported by: Zachary Bedell
9524 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
9526 * configure.ac: The Loongson port requires grub-mkfont due to its
9527 use of -DUSE_ASCII_FAILBACK. Raise an error if it is not going to
9530 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
9532 * util/grub-install.in: Don't source grub-mkconfig_lib until after
9533 processing arguments (otherwise help2man fails when GRUB has not yet
9536 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
9538 New script grub-mkstandalone.
9540 * Makefile.util.def (grub-mkstandalone): New script.
9541 * docs/man/grub-mkstandalone.h2m: New file.
9542 * util/grub-mkstandalone.in: Likewise.
9544 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
9546 Support ATA disks with 4K sectors.
9548 * include/grub/ata.h (grub_ata): New member log_sector_size.
9549 * grub-core/disk/ata.c (grub_ata_dumpinfo): Show sector size.
9550 (grub_ata_identify): Read sector size.
9551 (grub_ata_readwrite): Use log_sector_size rather than hardcoded value.
9553 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
9555 * util/grub-install.in: Don't use uhci outside of x86.
9557 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
9559 * util/grub-mkrescue.in: Add missing quotes.
9561 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
9563 * grub-core/normal/menu.c (grub_menu_execute_entry): Fix NULL
9566 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
9568 * grub-core/disk/pata.c (grub_pata_readwrite): Add missing wait.
9570 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
9572 * include/grub/video.h: add missing EXPORT_FUND on
9573 grub_video_edid_checksum and grub_video_edid_preferred_mode.
9575 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
9577 * include/grub/mips/kernel.h: Fix define conflict.
9579 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
9581 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]: Flush
9584 2011-07-21 Colin Watson <cjwatson@ubuntu.com>
9586 Preferred resolution detection for VBE.
9588 * grub-core/video/video.c (grub_video_edid_checksum): New function.
9589 (grub_video_edid_preferred_mode): Likewise. Try EDID followed by
9590 the Flat Panel extension, in line with the X.org VESA driver.
9591 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_flat_panel_info):
9593 (grub_vbe_bios_get_ddc_capabilities): Likewise.
9594 (grub_vbe_bios_read_edid): Likewise.
9595 (grub_vbe_get_preferred_mode): Likewise.
9596 (grub_video_vbe_setup): When the mode is "auto", try to get the
9597 preferred mode from VBE, and use the largest mode that is no larger
9598 than the preferred mode (some BIOSes expose a preferred mode that is
9599 not in their mode list!). If this fails, fall back to 640x480 as a
9600 safe conservative choice.
9601 (grub_video_vbe_get_edid): New function.
9602 (grub_video_vbe_adapter): Add get_edid.
9603 * include/grub/video.h (struct grub_vbe_edid_info): New structure.
9604 (struct grub_video_adapter): Add get_edid.
9605 (grub_video_edid_checksum): Add prototype.
9606 (grub_video_edid_preferred_mode): Likewise.
9607 * include/grub/i386/pc/vbe.h (struct grub_vbe_flat_panel_info): New
9610 * grub-core/commands/videoinfo.c (print_edid): New function.
9611 (grub_cmd_videoinfo): Print EDID if available.
9613 * util/grub.d/00_header.in (GRUB_GFXMODE): Default to "auto". This
9614 is more appropriate on a wider range of platforms than 640x480.
9615 * docs/grub.texi (Simple configuration): Update GRUB_GFXMODE
9618 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
9620 * util/grub-install.in: Recognize ESP mounted at /boot/EFI.
9622 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
9624 * po/POTFILES.in: Regenerate.
9626 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
9628 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix
9629 incorrect memory usage.
9631 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
9633 * util/grub-install.in: Source grub-mkconfig_lib.
9635 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
9637 Remove getroot.c from core on emu platform.
9639 * grub-core/Makefile.core.def (kernel): Remove kern/emu/getroot.c and
9641 * grub-core/kern/emu/main.c (main): Don't try to guess root device. It's
9643 * grub-core/kern/emu/misc.c (get_win32_path): Moved from here...
9644 * util/getroot.c (get_win32_path): ... here.
9645 * grub-core/kern/emu/misc.c (fini_libzfs): Moved from here...
9646 * util/getroot.c (fini_libzfs): ... here.
9647 * grub-core/kern/emu/misc.c (grub_get_libzfs_handle): Moved from here...
9648 * util/getroot.c (grub_get_libzfs_handle): ... here.
9649 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir):
9651 * util/getroot.c (grub_find_zpool_from_dir): ... here.
9652 * grub-core/kern/emu/misc.c
9653 (grub_make_system_path_relative_to_its_root): Moved from here...
9654 * util/getroot.c (grub_make_system_path_relative_to_its_root): ... here.
9655 * grub-core/kern/emu/getroot.c: Moved from here ...
9656 * util/getroot.c: ... here. All users updated.
9657 * grub-core/kern/emu/raid.c: Moved from here ...
9658 * util/raid.c: ... here. All users updated.
9660 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
9662 * po/POTFILES.in: Regenerate.
9664 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
9666 Fix compilation on GNU/Linux.
9668 * grub-core/kern/emu/getroot.c (grub_util_pull_device) [!FreeBSD]:
9670 (grub_util_get_grub_dev) [!FreeBSD]: Likewise.
9671 (grub_util_pull_device) [HAVE_DEVICE_MAPPER]: Fix const and func name.
9672 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Fix proto.
9674 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
9675 2011-07-07 Michael Gorven <michael@gorven.za.net>
9676 2011-07-07 Clemens Fruhwirth <clemens@endorphin.org>
9678 LUKS and GELI support.
9680 * Makefile.util.def (libgrubkern.a): Add grub-core/lib/crypto.c,
9681 grub-core/disk/luks.c, grub-core/disk/geli.c,
9682 grub-core/disk/cryptodisk.c, grub-core/disk/AFSplitter.c,
9683 grub-core/lib/pbkdf2.c, grub-core/commands/extcmd.c,
9684 grub-core/lib/arg.c.
9685 (libgrubmods.a): Remove gcrypts cflags and cppflags.
9686 Remove grub-core/commands/extcmd.c, grub-core/lib/arg.c,
9687 grub-core/lib/crypto.c, grub-core/lib/libgcrypt-grub/cipher/sha512.c,
9688 grub-core/lib/libgcrypt-grub/cipher/crc.c and grub-core/lib/pbkdf2.c.
9689 (grub-bin2h): Add libgcry.a.
9690 (grub-mkimage): Likewise.
9691 (grub-mkrelpath): Likewise.
9692 (grub-script-check): Likewise.
9693 (grub-editenv): Likewise.
9694 (grub-mkpasswd-pbkdf2): Likewise.
9695 (grub-pe2elf): Likewise.
9696 (grub-fstest): Likewise.
9697 (grub-mkfont): Likewise.
9698 (grub-mkdevicemap): Likewise.
9699 (grub-probe): Likewise.
9700 (grub-ofpath): Likewise.
9701 (grub-mklayout): Likewise.
9702 (example_unit_test): Likewise.
9703 (grub-menulst2cfg): Likewise.
9704 * autogen.sh (UTIL_DEFS): Add Makefile.utilgcry.def.
9705 * grub-core/Makefile.core.def (cryptodisk): New module.
9708 * grub-core/disk/AFSplitter.c: New file.
9709 * grub-core/disk/cryptodisk.c: Likewise.
9710 * grub-core/disk/geli.c: Likewise.
9711 * grub-core/disk/luks.c: Likewise.
9712 * grub-core/kern/emu/getroot.c (get_dm_uuid): New function based on
9714 (grub_util_get_dm_abstraction): New function.
9715 (grub_util_follow_gpart_up): Likewise.
9716 (grub_util_get_geom_abstraction): Likewise.
9717 (grub_util_get_dev_abstraction): Use new functions.
9718 (grub_util_pull_device): Pull GELI and LUKS.
9719 (grub_util_get_grub_dev): Handle LUKS and GELI.
9720 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): New function.
9721 (grub_util_biosdisk_open): Use grub_util_get_fd_sectors.
9722 (follow_geom_up): Removed.
9723 (grub_util_fd_seek): New function.
9724 (open_device): Use grub_util_fd_seek.
9725 (nread): Rename to ..
9726 (grub_util_fd_read): ... this. All users updated.
9727 * grub-core/lib/crypto.c (grub_crypto_ecb_decrypt): A better prototype.
9728 (grub_crypto_cbc_decrypt): Likewise.
9729 (grub_crypto_hmac_write): Likewise.
9730 (grub_crypto_hmac_buffer): Likewise.
9731 (grub_password_get): Extend to util.
9732 * include/grub/crypto.h (gcry_cipher_spec) [GRUB_UTIL]:
9734 (gcry_md_spec) [GRUB_UTIL]: Likewise.
9735 * include/grub/cryptodisk.h: New file.
9736 * include/grub/disk.h (grub_disk_dev_id): Rename LUKS to CRYPTODISK.
9737 * include/grub/emu/getroot.h (grub_dev_abstraction_types): Add
9739 (grub_util_follow_gpart_up): New proto.
9740 * include/grub/emu/hostdisk.h (grub_util_fd_seek): Likewise.
9741 (grub_util_fd_read): Likewise.
9742 (grub_cryptodisk_cheat_mount): Likewise.
9743 (grub_util_cryptodisk_print_uuid): Likewise.
9744 (grub_util_get_fd_sectors): Likewise.
9745 * util/grub-fstest.c (mount_crypt): New var.
9746 (fstest): Mount crypto if requested.
9747 (options): New option -C.
9748 (argp_parser): Parse -C.
9749 (main): Init and fini gcry.
9750 * util/grub-install.in: Support cryptodisk install.
9751 * util/grub-mkconfig.in: Export GRUB_ENABLE_CRYPTODISK.
9752 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Support
9754 (prepare_grub_to_access_device): Likewise.
9755 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_password_get.
9756 * util/grub-probe.c (probe_partmap): Support cryptodisk UUID probe.
9757 (probe_cryptodisk_uuid): New function.
9758 (probe_abstraction): Likewise.
9759 (probe): Use new functions.
9760 * util/import_gcry.py: Create Makefile.utilgcry.def.
9763 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
9765 Lazy device scanning.
9767 * Makefile.util.def (libgrubkern.a): Add grub-core/kern/emu/raid.c.
9768 (grub-setup): Remove util/raid.c.
9769 * grub-core/Makefile.core.def (kernel): Add kern/emu/raid.c on emu.
9770 * grub-core/disk/lvm.c (scan_depth): New variable.
9771 (grub_lvm_iterate): Rescan if necessary.
9772 (find_lv): New function based on grub_lvm_open.
9773 (grub_lvm_open): Use find_lv. Rescan on error.
9774 (is_node_readable): New function.
9775 (is_lv_readable): Likewise.
9776 (grub_lvm_scan_device): Skip already found disks.
9777 (do_lvm_scan): New function. Move grub_lvm_scan_device inside of it.
9778 Stop if searched device is found and readable.
9779 * grub-core/disk/raid.c (inscnt): New variable.
9780 (scan_depth): Likewise.
9781 (scan_devices): New function based on grub_raid_register. Abort if
9782 looked for device is found.
9783 (grub_raid_iterate): Rescan if needed.
9784 (find_array): NEw function based on -grub_raid_open.
9785 (grub_raid_open): Use find_array and rescan.
9786 (insert_array): Set became_readable_at.
9787 * grub-core/kern/disk.c (grub_disk_dev_iterate): Iterate though "pull.
9788 * grub-core/kern/emu/getroot.c (grub_util_open_dm) [HAVE_DEVICE_MAPPER]:
9790 (grub_util_is_lvm) [HAVE_DEVICE_MAPPER]: Use grub_util_open_dm.
9791 (grub_util_pull_device): New function.
9792 (grub_util_get_grub_dev): Call grub_util_pull_device.
9793 * util/raid.c: Moved to ..
9794 * grub-core/kern/emu/raid.c: ... here.
9795 (grub_util_raid_getmembers): New parameter "bootable".
9796 All users updated. Support 1.x.
9797 * include/grub/ata.h (grub_ata_dev): Change iterate prototype.
9799 * include/grub/disk.h (grub_disk_pull_t): New enum.
9800 (grub_disk_dev): Change iterate prototype.
9802 * include/grub/emu/getroot.h (grub_util_raid_getmembers) [__linux__]:
9804 * include/grub/emu/hostdisk.h (grub_util_pull_device): Likewise.
9805 * include/grub/lvm.h (grub_lvm_lv): New members fullname and compatname.
9806 * include/grub/raid.h (grub_raid_array): New member became_readable_at.
9807 * include/grub/scsi.h (grub_scsi_dev): Change iterate prototype.
9809 * include/grub/util/raid.h: Removed.
9811 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
9813 * po/POTFILES.in: Regenerate.
9815 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
9817 Unify sparc init with other ieee1275.
9819 * grub-core/Makefile.core.def (kernel): Use kern/ieee1275/init.c
9820 instead of kern/sparc64/ieee1275/init.c.
9821 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options)
9822 [__sparc__]: Set GRUB_IEEE1275_FLAG_NO_PARTITION_0.
9823 * grub-core/kern/ieee1275/init.c [__sparc__]: Include
9824 grub/machine/kernel.h.
9825 (grub_ieee1275_original_stack) [__sparc__]: New variable.
9826 (grub_claim_heap) [__sparc__]: Use sparc version.
9827 (grub_machine_init): Moved args parsing to
9828 (grub_parse_cmdline): ...this.
9829 * grub-core/kern/sparc64/ieee1275/init.c: Removed.
9830 * include/grub/offsets.h (GRUB_KERNEL_SPARC64_IEEE1275_MOD_GAP):
9832 (GRUB_KERNEL_SPARC64_IEEE1275_MOD_ALIGN): Likewise.
9834 Move BOOTP to separate file.
9836 * grub-core/Makefile.core.def (net): Add net/bootp.c.
9837 * grub-core/net/net.c: Move all BOOTP functions to
9838 * grub-core/net/bootp.c: ... here.
9840 Use frame interface on PXE.
9842 * grub-core/Makefile.core.def (pxecmd): Removed.
9843 (pxe): Use net/drivers/i386/pc/pxe.c rather than net/i386/pc/pxe.c.
9844 * grub-core/commands/i386/pc/pxecmd.c: Removed.
9845 * grub-core/i386/pc/pxe.c: Moved from here ...
9846 * grub-core/net/i386/pc/pxe.c: ... here. Rewritten.
9847 * grub-core/net/net.c (grub_net_open_real): Handle old pxe syntax.
9848 * include/grub/i386/pc/pxe.h (grub_pxe_unload): Removed.
9850 EFI network support.
9852 * grub-core/Makefile.core.def (efinet): New module.
9853 * grub-core/disk/efi/efidisk.c (compare_device_paths): Moved from
9855 * grub-core/kern/efi/efi.c (grub_efi_compare_device_paths): ... here.
9857 * grub-core/kern/efi/init.c (grub_efi_net_config): New variable.
9858 (grub_machine_get_bootlocation): Call grub_efi_net_config if needed.
9859 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_7): New function.
9860 * grub-core/net/drivers/efi/efinet.c: New file.
9861 * include/grub/efi/efi.h (grub_efi_compare_device_paths): New proto.
9862 (grub_efi_net_config): New extern var.
9864 Various cleanups and bugfixes.
9866 * grub-core/disk/efi/efidisk.c (grub_efidisk_open): Fix off-by-one
9868 (grub_efidisk_get_device_name): Unify similar codepaths. Accept whole
9869 disk declared as partition.
9870 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Fix memory
9872 * grub-core/kern/dl.c (grub_dl_load_file): Fix memory leak.
9873 * grub-core/kern/mm.c (grub_debug_malloc): Don't use unsupported %zx.
9874 (grub_debug_zalloc): Likewise.
9875 (grub_debug_realloc): Likewise.
9876 (grub_debug_memalign): Likewise.
9877 * grub-core/net/arp.c (grub_net_arp_receive): IPv4 is 4-byte wide.
9878 Check that target is IPv4.
9879 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnet_findcards): Use
9880 local-mac-address as fallback.
9881 * grub-core/net/ethernet.c (grub_net_recv_ethernet_packet): Prevent
9883 * grub-core/net/ip.c (ipchksum): Rename to ...
9884 (grub_net_ip_chksum): ... this. All users updated.
9885 (grub_net_recv_ip_packets): Special handling for DHCP.
9886 * util/grub-mkimage.c (generate_image): Zero-out aout header.
9888 Unify prefix handling
9890 * grub-core/kern/efi/init.c (grub_efi_set_prefix): Revamped into ...
9891 (grub_machine_get_bootlocation): ... this.
9892 * grub-core/kern/emu/main.c (grub_machine_set_prefix): Revamped into ...
9893 (grub_machine_get_bootlocation): ... this.
9894 (grub_prefix): New variable.
9896 (root_dev): New variable.
9898 (main): Use new variables.
9899 * grub-core/kern/i386/coreboot/init.c (grub_machine_set_prefix):
9901 (grub_machine_get_bootlocation): ... this.
9902 * grub-core/kern/i386/efi/init.c (grub_machine_set_prefix): Removed.
9903 * grub-core/kern/i386/pc/init.c (make_install_device): Revamped into ...
9904 (grub_machine_get_bootlocation): ... this.
9905 (grub_machine_set_prefix): Removed.
9906 * grub-core/kern/ia64/efi/init.c (grub_machine_set_prefix): Removed.
9907 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix):
9909 (grub_machine_get_bootlocation): ... this.
9910 * grub-core/kern/main.c (grub_set_root_dev): Revamped into ...
9911 (grub_set_prefix_and_root): ... this. All users updated.
9912 * grub-core/kern/mips/init.c (grub_machine_set_prefix):
9914 (grub_machine_get_bootlocation): ... this.
9915 * include/grub/kernel.h (grub_machine_set_prefix): Removed.
9916 (grub_machine_get_bootlocation): New proto.
9917 * include/grub/i386/pc/kernel.h (grub_pc_net_config): New var.
9919 Less intrusive and more reliable seek on network implementation.
9921 * grub-core/kern/file.c (grub_file_net_seek): Removed.
9922 (grub_file_seek): Don't call grub_file_net_seek.
9923 * grub-core/net/net.c (grub_net_fs_read): Renamed to ...
9924 (grub_net_fs_read_real): .. this.
9925 (grub_net_seek_real): Use net->offset.
9926 (grub_net_fs_read): Seek if necessary.
9928 Unify IEEE1275 netwotk config with the other platforms.
9930 * grub-core/kern/ieee1275/init.c (grub_ieee1275_net_config):
9932 (grub_machine_get_bootlocation): Support network.
9933 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
9934 Support type and device parsing.
9935 (grub_ieee1275_get_device_type): New function.
9936 * grub-core/net/drivers/ieee1275/ofnet.c (grub_getbootp_real): Revamped
9938 (grub_ieee1275_net_config_real): ... this.
9939 (grub_ofnet_probecards): Removed.
9940 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove ofnet.h.
9941 * include/grub/ieee1275/ofnet.h: Removed.
9942 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_net_config): NEw
9944 (grub_ieee1275_get_device_type): New function.
9946 Unify network device closing across platforms and make more robust.
9948 * grub-core/kern/ieee1275/init.c (grub_machine_fini): Don't call
9950 * grub-core/net/ethernet.c (send_ethernet_packet): Open card if it isn't
9952 * grub-core/net/net.c (grub_net_network_level_interface_register):
9954 (grub_net_card_unregister): Close all interfaces.
9955 (receive_packets): Don't poll if no iterfaces are registered.
9957 (grub_net_fini_hw): New function.
9958 (grub_net_restore_hw): Likewise.
9959 (fini_hnd): New variable.
9960 (GRUB_MOD_INIT): Register preboot hook.
9961 (GRUB_MOD_FINI): Run and unregister preboot hook.
9963 Poll network cards when idle.
9965 * grub-core/kern/term.c (grub_net_poll_cards_idle): New variable.
9966 (grub_checkkey): Call grub_net_poll_cards_idle if it's not NULL.
9967 * grub-core/net/net.c (receive_packets): Save last poll time.
9968 (grub_net_poll_cards_idle_real): New function.
9969 (GRUB_MOD_INIT): Register grub_net_poll_cards_idle.
9970 (GRUB_MOD_FINI): Unregister grub_net_poll_cards_idle.
9971 * include/grub/kernel.h (grub_poll_cards_idle): New extern variable.
9973 Rename ofnet interfaces.
9975 * grub-core/net/drivers/ieee1275/ofnet.c (find_alias): New function.
9976 (grub_ofnet_findcards): Use ofnet_%s names.
9978 * util/grub-mknetdir.in: Support for EFI and IEEE1275.
9980 Cleanup socket opening.
9982 * grub-core/net/net.c (grub_net_fs_open): Rewritten.
9983 (grub_net_fs_close): Likewise.
9984 (grub_net_fs_read_real): Use eof member.
9985 * include/grub/net/udp.h (+grub_net_udp_open): New proto.
9986 (+grub_net_udp_close): New inline function.
9988 * include/grub/net/tftp.h: Moved to the top of ...
9989 * grub-core/net/tftp.c: ... here.
9990 * include/grub/net/ip.h: Moved mostly to the top of ...
9991 * grub-core/net/ip.c: ... here.
9992 * include/grub/net/ethernet.h: Moved mostly to the top of ...
9993 * grub-core/net/ethernet.c: ... here.
9995 * grub-core/kern/device.c (grub_device_close): Free device->net->server.
9997 * grub-core/commands/probe.c (grub_cmd_probe): Use protocol name for
10000 * include/grub/net/ip.h (ipv4_ini): Removed.
10001 (ipv4_fini): Likewise.
10003 * include/grub/net/ip.h (grub_net_recv_ip_packets): New proto.
10004 (grub_net_send_ip_packets): Likewise.
10006 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
10008 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init): Use new
10009 grub_read_cmos prototype.
10011 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
10013 VGA text support in qemu-mips
10015 * grub-core/Makefile.core.def (kernel): Add term/i386/pc/vga_text.c,
10016 term/i386/vga_common.c and kern/vga_init.c on qemu-mips.
10017 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init vga
10019 * grub-core/kern/i386/qemu/init.c: Renamed to ...
10020 * grub-core/kern/vga_init.c: ... this.
10021 * grub-core/kern/vga_init.c (VGA_ADDR) [__mips__]: Adjust.
10022 (grub_qemu_init_cirrus) [__mips__]: Skip PCI and adjust the I/O base.
10023 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN) [__mips__]:
10025 * include/grub/vga.h [GRUB_MACHINE_MIPS_QEMU_MIPS]: Declare
10026 GRUB_MACHINE_PCI_IO_BASE.
10028 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
10030 MIPS qemu flash support.
10032 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]: Check
10034 * grub-core/kern/mips/qemu_mips/init.c (probe_mem): New function.
10035 (grub_machine_init): Probe memory if its size isn't known.
10036 * util/grub-mkimage.c (image_targets): Add flash targets.
10037 (generate_image): Handle flash targets.
10039 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
10041 MIPS qemu at_keyboard support.
10043 * gentpl.py (videoinkernel): Add qemu-mips.
10044 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add necessary headers.
10045 * grub-core/Makefile.core.def (kernel): Add at_keyboard and layout.
10046 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init new
10048 * grub-core/term/at_keyboard.c (grub_keyboard_controller_init)
10049 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't consider original set.
10050 * grub-core/term/serial.c (grub_serial_register)
10051 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Make com0 explicitly active.
10053 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
10055 CMOS support on sparc.
10057 * gentpl.py (cmos): Add powerpc and sparc.
10058 * grub-core/Makefile.core.def (datetime): Add lib/ieee1275/cmos.c on
10060 * grub-core/lib/cmos_datetime.c (grub_get_datetime)
10061 [__powerpc__ || __sparc__]: Rename to grub_get_datetime_cmos.
10062 (grub_set_datetime) [__powerpc__ || __sparc__]: Likewise to
10063 grub_set_datetime_cmos.
10064 * grub-core/lib/ieee1275/cmos.c: New file.
10065 * grub-core/lib/ieee1275/datetime.c (no_ieee1275_rtc): New vaiable.
10066 (find_rtc): Set no_ieee1275_rtc on error.
10067 (grub_get_datetime): Call grub_get_datetime_cmos on error.
10068 (grub_set_datetime): Call grub_set_datetime_cmos on error.
10069 * include/grub/cmos.h (grub_cmos_read): Return grub_err_t since it may
10070 fail. Move value to argument. All users updated
10071 (grub_cmos_write): Likewise.
10072 (grub_cmos_read) [__powerpc__ || __sparc__]: Rewritten.
10073 (grub_cmos_write) [__powerpc__ || __sparc__]: Likewise.
10074 * include/grub/datetime.h [__powerpc__ || __sparc__]: Declare
10075 grub_get_datetime_cmos and grub_set_datetime_cmos.
10077 2011-07-02 Grégoire Sutre <gregoire.sutre@gmail.com>
10079 * util/grub-mkconfig.in: Use @PACKAGE@ instead of hardcoded name when
10080 sourcing grub-mkconfig_lib.
10081 * util/update-grub_lib.in: Likewise.
10082 * util/grub.d/00_header.in: Likewise.
10083 * util/grub.d/10_hurd.in: Likewise.
10084 * util/grub.d/10_kfreebsd.in: Likewise.
10085 * util/grub.d/10_linux.in: Likewise.
10086 * util/grub.d/10_netbsd.in: Likewise.
10087 * util/grub.d/10_windows.in: Likewise.
10088 * util/grub.d/20_linux_xen.in: Likewise.
10089 * util/grub.d/30_os-prober.in: Likewise.
10091 2011-06-28 Colin Watson <cjwatson@ubuntu.com>
10093 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
10094 default_bg_color rather than black.
10095 (grub_gfxterm_fullscreen): Likewise.
10096 (grub_gfxterm_background_color_cmd): Save new background color in
10099 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
10101 * grub-core/Makefile.core.def (chain): Fix coreboot filename.
10103 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
10105 * grub-core/disk/pata.c (grub_pata_initialize) [QEMU_MIPS]: Fix a
10108 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
10110 Chainloading on coreboot support.
10112 * grub-core/Makefile.core.def (chain): Add coreboot.
10113 * grub-core/loader/i386/coreboot/chainloader.c: New file.
10115 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
10117 * grub-core/loader/i386/bsd.c (grub_bsd_load): Handle relocator failure
10120 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
10122 Implement time command.
10124 * grub-core/Makefile.core.def (time): New module.
10125 * grub-core/commands/time.c: New file.
10126 * grub-core/script/parser.y: Remove "time" keyword.
10127 * grub-core/script/yylex.l: Likewise.
10129 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
10131 * include/grub/loader.h (grub_loader_unregister_preboot_hook): Export.
10133 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
10135 * grub-core/lib/relocator.c (malloc_in_range): Fix a memory corruption
10136 when handling leftovers.
10138 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
10140 * util/ieee1275/grub-ofpathname.c (main): Handle --help and --version
10141 so that help2man doesn't fail.
10143 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
10145 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer) Use right
10146 type in pointers on sparc64.
10147 (get_card_packet): Likewise.
10149 2011-06-27 Colin Watson <cjwatson@ubuntu.com>
10151 * grub-core/commands/videoinfo.c (hook): Indicate current video mode
10153 (grub_cmd_videoinfo): Fetch current video mode.
10155 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
10157 * grub-core/disk/scsi.c (grub_scsi_read): Limit SCSI reads to 32K
10158 because of underlying system restrictions.
10160 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
10162 * util/grub-mkrescue.in: Rename "ata" to "pata" and add ahci when
10165 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
10167 Coreboot video support.
10169 * grub-core/Makefile.core.def (vga): Extend to coreboot and multiboot.
10171 * grub-core/kern/i386/coreboot/startup.S: Include int.S.
10172 * grub-core/kern/i386/pc/startup.S (grub_bios_interrupt): Moved from
10174 * grub-core/kern/i386/int.S: ... here.
10175 * grub-core/video/i386/pc/vbe.c: Updated includes.
10176 * grub-core/video/i386/pc/vga.c: Likewise.
10177 * include/grub/i386/coreboot/memory.h
10178 (GRUB_MEMORY_MACHINE_SCRATCH_ADDR): New definition.
10179 (GRUB_MEMORY_MACHINE_SCRATCH_SEG): Likewise.
10180 (GRUB_MEMORY_MACHINE_SCRATCH_SIZE): Likewise.
10181 * include/grub/i386/pc/int.h (GRUB_CPU_INT_FLAGS_DEFAULT) [!PCBIOS]:
10182 Disable interrupts.
10183 * include/grub/i386/pc/vga.h: Removed. All users updated.
10185 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
10187 * grub-core/disk/ahci.c (grub_ahci_readwrite_real): Use proper
10188 definitions for dprintf.
10189 * grub-core/disk/pata.c (grub_pata_readwrite): Likewise.
10191 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
10193 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer): Fix
10195 (get_card_packet): Likewise.
10197 2011-06-26 Yves Blusseau <blusseau@zetam.org>
10199 Display the path of the file when file is not found
10201 * grub-core/fs/fat.c: Display the filename when file is not found.
10202 * grub-core/fs/fshelp.c: Likewise.
10203 * grub-core/fs/hfs.c: Likewise.
10204 * grub-core/fs/jfs.c: Likewise.
10205 * grub-core/fs/minix.c: Likewise.
10206 * grub-core/fs/ufs.c: Likewise.
10207 * grub-core/fs/btrfs.c: Likewise.
10208 * grub-core/commands/i386/pc/play.c: Likewise.
10210 2011-06-26 Szymon Janc <szymon@janc.net.pl>
10212 * grub-core/commands/cmp.c (grub_cmd_cmp): Remove unnecessary NULL
10213 pointer checks before calling grub_free().
10214 * grub-core/commands/wildcard.c (match_devices): Likewise.
10215 * grub-core/commands/wildcard.c (match_files): Likewise.
10216 * grub-core/fs/cpio.c (grub_cpio_dir): Likewise.
10217 * grub-core/fs/cpio.c (grub_cpio_open): Likewise.
10218 * grub-core/fs/udf.c (grub_udf_read_block): Likewise.
10219 * grub-core/fs/xfs.c (grub_xfs_read_block): Likewise.
10220 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Likewise.
10221 * grub-core/normal/cmdline.c (grub_cmdline_get): Likewise.
10222 * grub-core/script/yylex.l (grub_lexer_unput): Likewise.
10223 * grub-core/video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
10224 * grub-core/video/readers/png.c (grub_png_output_byte): Likewise.
10226 2011-06-25 Patrick <p55@mailinator.com>
10228 * grub-core/kern/main.c (grub_load_normal_mode): Correct the comment.
10230 2011-06-25 Vladimir Serbinenko <phcoder@gmail.com>
10232 * grub-core/net/i386/pc/pxe.c (grub_pxe_recv): Fix declaration.
10233 (grub_pxe_send): Likewise.
10234 (GRUB_MOD_INIT): Fix types.
10236 2011-06-24 Szymon Janc <szymon@janc.net.pl>
10238 * grub-core/io/xzio.c: Fix code style issues
10240 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
10241 2011-06-24 Manoel Rebelo Abranches <mrabran@gmail.com>
10243 Network infrastructure.
10244 The ARP protocol was made by Paulo Pinatti <ppinatti@br.ibm.com>
10246 * include/grub/net/arp.h: New file.
10247 * include/grub/net/device.h: Likewise.
10248 * include/grub/net/ethernet.h: Likewise.
10249 * include/grub/net/ip.h: Likewise.
10250 * include/grub/net/netbuff.h: Likewise.
10251 * include/grub/net/tftp.h: Likewise.
10252 * include/grub/net/udp.h: Likewise.
10253 * include/grub/ieee1275/ofnet.h: Likewise.
10254 * include/grub/emu/export.h: Likewise.
10255 * include/grub/net.h: Likewise.
10256 * grub-core/net/arp.c: Likewise.
10257 * grub-core/net/ethernet.c: Likewise.
10258 * grub-core/net/ip.c: Likewise.
10259 * grub-core/net/udp.c: Likewise.
10260 * grub-core/net/tftp.c: Likewise.
10261 * grub-core/net/netbuff.c: Likewise.
10262 * grub-core/net/net.c: Likewise.
10263 * grub-core/net/drivers/emu/emunet.c: Likewise.
10264 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
10265 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add net.h, ofnet.h and
10267 * grub-core/Makefile.core.def (net): New module.
10270 (emunet): Likewise.
10271 * grub-core/commands/ls.c (grub_ls_list_devices) [!GRUB_UTIL]: List
10273 * grub-core/kern/device.c (grub_net_open) : New variable.
10274 (grub_device_open): Handle network device.
10275 (grub_device_close): Likewise.
10276 * grub-core/kern/file.c (grub_file_net_seek) : New variable.
10277 (grub_grubnet_fini): Likewise.
10278 (grub_file_seek): Seek in network device.
10279 * grub-core/kern/fs.c (grub_fs_probe): Handle network devices.
10280 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix): Handle
10282 (grub_machine_fini): Call grub_grubnet_fini.
10283 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Handle
10285 (grub_ieee1275_get_aliasdevname): New function.
10286 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
10287 Add unofficial Solaris network info.
10288 (grub_multiboot_make_mbi): Likewise.
10289 * grub-core/fs/i386/pc/pxe.c: Moved from here ...
10290 * grub-core/net/i386/pc/pxe.c: ...here. Adapted for new design.
10291 * include/grub/device.h (grub_fs): Removed.
10292 * include/grub/err.h (grub_err_t): Add network-related values.
10293 * include/grub/i386/pc/pxe.h: Removed bootp parts.
10294 * include/grub/ieee1275/ieee1275.h (grub_ofnetcard_data): New struct.
10295 (grub_ieee1275_get_aliasdevname): New proto.
10296 * include/grub/net.h: Rewritten.
10298 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
10300 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of readable
10303 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
10305 * grub-core/commands/wildcard.c (match_files): Add a useful dprintf.
10306 (wildcard_expand): Don't stop on nonregexp parts after regexp ones since
10307 it truncates the output.
10308 Reported by: Ximin Luo.
10310 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
10312 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Skip . and ..
10314 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
10316 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
10317 partmap before abstraction.
10319 2011-06-24 Alexander Kurtz <kurtz.alex@googlemail.com>
10321 * util/grub-mkconfig_lib.in: Add missing quotes.
10323 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
10325 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Revert to
10326 old method if mountinfo would return /dev/root and /dev/root doesn't
10329 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
10333 * grub-core/fs/zfs/zfs.c (zlib_decompress): New function.
10334 (decomp_table): Add zlib entries.
10335 (zio_read): USe 8 bits for compression function rather than 3.
10336 * include/grub/zfs/zio.h (zio_compress): Add zlib values.
10338 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
10340 * grub-core/disk/ahci.c: Add missing license statements.
10341 * grub-core/fs/romfs.c: Likewise.
10342 * grub-core/lib/ia64/setjmp.S: Likewise.
10343 * grub-core/loader/i386/pc/freedos.c: Likewise.
10344 * grub-core/loader/ia64/efi/linux.c: Likewise.
10345 * grub-core/video/colors.c: Likewise.
10346 * include/grub/dl.h (GRUB_MOD_DEP): New macro.
10348 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
10352 * grub-core/Makefile.core.def (ata_pthru): Removed.
10353 (ahci): New module.
10355 * grub-core/bus/usb/ohci.c (GRUB_MOD_FINI): Unregister preboot hook
10357 * grub-core/commands/hdparm.c (grub_hdparm_do_ata_cmd): Use ATA
10359 (grub_hdparm_do_check_powermode_cmd): Likewise.
10360 (grub_hdparm_do_smart_cmd): Likewise.
10361 (grub_hdparm_set_val_cmd): Likewise.
10362 (grub_cmd_hdparm): Likewise. Check thta we have an ATA device.
10363 * grub-core/disk/ahci.c: New file.
10364 * grub-core/disk/ata.c: Factor out the low-level part into ...
10365 * grub-core/disk/pata.c: ... here.
10366 * grub-core/disk/ata_pthru.c: Contents moved to ...
10367 * grub-core/disk/pata.c: ... here.
10368 * grub-core/disk/scsi.c (grub_scsi_names): New array.
10369 (grub_scsi_iterate): Use grub_scsi_names.
10370 (grub_scsi_open): Likewise.
10371 * grub-core/kern/disk.c (grub_disk_ata_pass_through): Removed.
10372 * include/grub/ata.h (grub_ata_commands): Add DMA commands.
10373 (grub_ata_regs_t): New struct.
10374 (grub_disk_ata_pass_through_parms): Likewise.
10375 (grub_ata_device): Renamed to ...
10376 (grub_ata): ... this.
10377 (grub_ata_dev): New struct.
10378 Removed all low-level inline functions.
10379 * include/grub/scsi.h: Add PATA and AHCI subsystems.
10380 (grub_scsi_dev): Removed 'name' and 'id'. Added 'id' parameter to
10381 iterate hooks and open. All users updated.
10382 * util/grub-install.in: Handle AHCI disk module.
10384 2011-06-23 Szymon Janc <szymon@janc.net.pl>
10386 Add support for DRI and RSTn markers in JPEG files.
10388 * grub-core/video/readers/jpeg.c (JPEG_MARKER_DRI): New define.
10389 (JPEG_MARKER_RST0): Likewise.
10390 (JPEG_MARKER_RST1): Likewise.
10391 (JPEG_MARKER_RST2): Likewise.
10392 (JPEG_MARKER_RST3): Likewise.
10393 (JPEG_MARKER_RST4): Likewise.
10394 (JPEG_MARKER_RST5): Likewise.
10395 (JPEG_MARKER_RST6): Likewise.
10396 (JPEG_MARKER_RST7): Likewise.
10397 (grub_jpeg_data): New fields dri, r1, bitmap_ptr.
10398 (grub_jpeg_decode_dri): New function.
10399 (grub_jpeg_decode_sos): Move image data related part into
10400 grub_jpeg_decode_data function.
10401 (grub_jpeg_decode_data): New function.
10402 (grub_jpeg_reset): New function.
10403 (grub_jpeg_decode_jpeg): Handle new markers.
10405 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
10407 * util/ieee1275/ofpath.c (check_sas): Close fd.
10408 (main): Free of_path.
10409 Reported by: David Volgyes <dvolgyes>.
10411 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
10413 * util/grub-mkpasswd-pbkdf2.c (main): Don't double-close.
10414 Reported by: David Volgyes <dvolgyes>.
10416 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
10418 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Close
10420 Reported by: David Volgyes <dvolgyes>.
10422 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
10424 * util/raid.c (grub_util_raid_getmembers): Close fd before returning.
10426 Reported by: David Volgyes <dvolgyes>.
10428 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
10430 * grub-core/lib/reed_solomon.c (rs_recover) [STANDALONE]:
10431 Prevent memory leak.
10433 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
10435 * grub-core/lib/reed_solomon.c (rs_recover): Prevent memory leak.
10436 (main): Close file.
10437 Reported by: David Volgyes <dvolgyes>.
10439 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
10441 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devprop): Don't attempt
10442 to continue if allocation is failed.
10444 Reported by: David Volgyes <dvolgyes>.
10446 2011-06-23 David Volgyes <dvolgyes>
10448 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Avoid NULL-pointer
10451 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
10453 Fix spurious warning.
10455 * grub-core/partmap/acorn.c (grub_acorn_boot_block): Make a union.
10456 (acorn_partition_map_find): Use .bin member.
10458 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
10460 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Don't accept
10461 /dev/root as a valid device.
10463 2011-06-23 Jim Meyering <meyering@redhat.com>
10465 Avoid NULL deref in grub_device_open.
10467 * grub-core/kern/device.c (grub_device_open): Don't dereference
10468 a NULL pointer upon failed grub_env_get.
10470 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
10472 Support non-512B sectors and agglomerate reads.
10474 * Makefile.util.def (libgrubmods.a): Add grub-core/commands/testload.c.
10475 * grub-core/disk/efi/efidisk.c (grub_efidisk_data): Remove disk_io.
10476 (disk_io_guid): Removed.
10477 (make_devices): Locate solely by BlockIO.
10478 (grub_efidisk_open): Fill log_sector_size and total_sectors.
10479 (grub_efidisk_read): Use read_blocks.
10480 (grub_efidisk_write): Use write_blocks.
10481 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Fill
10483 (get_safe_sectors): Handle non-512B sectors.
10484 (grub_biosdisk_read): Remove special CDROM handling. Handle non-512B
10486 (grub_biosdisk_write): Handle non-512B sectors.
10487 * grub-core/disk/scsi.c (grub_scsi_open): Fill log_sector_size.
10488 (grub_scsi_read): Remove special non-512B block handling (now handled
10490 * grub-core/kern/disk.c (grub_disk_open): Fill default log_sector_size
10491 and do sanity checks.
10492 (grub_disk_adjust_range): Handle non-512B sectors.
10493 (transform_sector): New function.
10494 (grub_disk_read_small): Likewise.
10495 (grub_disk_read): Rewritten.
10496 (grub_disk_write): Handle non-512B sectors.
10497 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Fill
10499 (open_device): Use log_sector_size.
10500 (grub_util_biosdisk_read): Likewise.
10501 (grub_util_biosdisk_write): Likewise.
10502 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Handle
10504 (pc_partition_map_embed): Likewise.
10505 * include/grub/disk.h (grub_disk): New field log_sector_size.
10506 (GRUB_DISK_CACHE_SIZE): Redefined from GRUB_DISK_CACHE_BITS.
10507 (GRUB_DISK_CACHE_BITS): Increased to 6.
10508 * util/grub-fstest.c (fstest): New command testload.
10509 (argp_parser): Likewise.
10511 2011-06-16 Robert Millan <rmh@gnu.org>
10513 Detect `ataraid' devices on GNU/kFreeBSD. Fix for ATA devices using
10514 `ata' driver on kernel of FreeBSD 9.
10516 * util/deviceiter.c [__FreeBSD_kernel__] (get_ada_disk_name)
10517 (get_ataraid_disk_name): New functions.
10518 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for ataraid
10519 (/dev/ar[0-9]+) and ada (/dev/ada[0-9]+) devices using
10520 get_ataraid_disk_name() and get_ada_disk_name().
10522 2011-06-13 Colin Watson <cjwatson@ubuntu.com>
10524 * docs/man/grub-mklayout.h2m (DESCRIPTION): Add a reference to the
10527 2011-05-29 Colin Watson <cjwatson@ubuntu.com>
10529 * docs/grub.texi (Obtaining and Building GRUB): Substitute
10530 `ftp.gnu.org' for `alpha.gnu.org'.
10532 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
10534 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Handle
10535 partitions under /dev/disk/by-id/.
10537 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
10539 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Give up
10540 after ten consecutive open failures. Scanning all the way up to
10541 10000 is excessive and can cause serious performance problems in
10542 some configurations.
10543 Fixes Ubuntu bug #787461.
10545 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
10547 * grub-core/disk/arc/arcdisk.c (reopen): Close old handle before
10550 2011-05-21 Colin Watson <cjwatson@ubuntu.com>
10551 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
10553 Don't stat devices unless we have to.
10555 * grub-core/kern/emu/getroot.c (grub_find_device): Recognize
10556 dir == /dev/mapper.
10557 (grub_guess_root_device): Use already known os_dev if possible.
10558 * grub-core/kern/emu/hostdisk.c
10559 (convert_system_partition_to_system_disk): Scan only in /dev/mapper
10560 if device is known to be a dm one.
10562 2011-05-20 Colin Watson <cjwatson@ubuntu.com>
10564 * util/grub-mkconfig.in: Export GRUB_CMDLINE_LINUX_XEN_REPLACE and
10565 GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT.
10566 Reported by: Pawel Tecza.
10568 2011-05-19 Vladimir Serbinenko <phcoder@gmail.com>
10570 * grub-core/Makefile.core.def (lsacpi): Fix ia64 mismerge.
10571 (lsefisystab): Likewise.
10573 (lsefimmap): Likewise.
10574 (hdparm): Enable on qemu-mips.
10575 (setjmp): Add ia64 nodist.
10576 (serial): Simplify tags.
10578 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
10580 * Makefile.util.def (grub-ofpathname): Install manual page.
10582 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
10584 * grub-core/fs/squash4.c: Add missing GRUB_MOD_LICENSE.
10586 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
10588 * .bzrignore: Add grub-core/modinfo.sh and a number of test files.
10590 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
10592 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Downgrade a printf
10595 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
10597 Use full 64-bit division.
10599 * grub-core/kern/misc.c (grub_divmod64_full): Renamed to ...
10600 (grub_divmod64): ... this.
10601 * include/grub/misc.h (grub_divmod64): Removed. All users switch to full
10604 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
10606 * util/grub-mkrescue.in: Use portable `.' rather than non-portable
10609 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
10611 * grub-core/genmod.sh.in: Use 'set -e' rather than '#! /bin/sh -e',
10612 to avoid accidents when debugging with 'sh -x'.
10613 * grub-core/gensyminfo.sh.in: Likewise.
10614 * tests/example_scripted_test.in: Likewise.
10615 * tests/grub_cmd_regexp.in: Likewise.
10616 * tests/grub_script_blanklines.in: Likewise.
10617 * tests/grub_script_dollar.in: Likewise.
10618 * tests/grub_script_expansion.in: Likewise.
10619 * tests/grub_script_final_semicolon.in: Likewise.
10620 * tests/partmap_test.in: Likewise.
10621 * tests/util/grub-shell-tester.in: Likewise.
10622 * tests/util/grub-shell.in: Likewise.
10624 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
10626 Move gfxmenu color handling to video, so that gfxterm can use it
10629 * grub-core/gfxmenu/named_colors.c: Move to ...
10630 * grub-core/video/colors.c: ... here. Rename
10631 grub_gui_get_named_color to grub_video_get_named_color.
10632 * grub-core/gfxmenu/gui_string_util.c (my_isxdigit): Move to ...
10633 * grub-core/video/colors.c (my_isxdigit): ... here.
10634 * grub-core/gfxmenu/gui_string_util.c (parse_hex_color_component):
10636 * grub-core/video/colors.c (parse_hex_color_component): ... here.
10637 * grub-core/gfxmenu/gui_string_util.c (grub_gui_parse_color): Move
10639 * grub-core/video/colors.c (grub_video_parse_color): ... here.
10641 * include/grub/gui.h (grub_gui_color_t): Move to ...
10642 * include/grub/video.h (grub_video_rgba_color_t): ... here.
10643 * include/grub/gui.h (grub_gui_color_rgb): Move to ...
10644 * include/grub/video.h (grub_video_rgba_color_rgb): ... here.
10645 * include/grub/gui.h (grub_gui_map_color): Move to ...
10646 * include/grub/video.h (grub_video_map_rgba_color): ... here.
10647 * include/grub/gui_string_util.h (grub_gui_get_named_color): Move
10649 * include/grub/video.h (grub_video_get_named_color): ... here.
10650 * include/grub/gui_string_util.h (grub_gui_parse_color): Move to ...
10651 * include/grub/video.h (grub_video_parse_color): ... here.
10653 * grub-core/Makefile.core.def (kernel) [videoinkernel]: Add
10655 (gfxmenu): Remove gfxmenu/named_colors.c.
10656 (video) [videomodules]: Add video/colors.c.
10658 Add a background_color command.
10660 * grub-core/term/gfxterm.c (grub_gfxterm_background_color_cmd): New
10662 (GRUB_MOD_INIT): Register background_color command.
10663 (GRUB_MOD_FINI): Unregister background_color command.
10664 (redraw_screen_rect): Allow blend/replace of text layer to be
10665 controlled independently from whether there is a background bitmap.
10666 (grub_gfxterm_background_image_cmd): Change blend_text_bg when
10669 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
10671 Patch BPB in ntldr and chainloader --bpb.
10673 * grub-core/fs/fat.c: Include grub/fat.h.
10674 (grub_fat_bpb): Moved to ...
10675 * include/grub/fat.h (grub_fat_bpb): ... here. New file.
10676 * grub-core/loader/i386/pc/chainloader.c: Include grub/fat.h and
10678 * include/grub/i386/pc/chainloader.h (grub_chainloader_flags_t):
10680 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_flags_t): ...
10682 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_patch_bpb):
10684 (grub_chainloader_cmd): Patch BPB if --bpb is given.
10685 (GRUB_MOD_INIT): Show --bpb.
10686 * grub-core/loader/i386/pc/ntldr.c (grub_cmd_ntldr): Patch BPB.
10687 * grub-core/normal/main.c (features): New variable.
10688 (GRUB_MOD_INIT): Set feature_* variables.
10689 * include/grub/i386/pc/chainloader.h (grub_chainloader_patch_bpb): New
10691 * include/grub/ntfs.h (grub_ntfs_bpb): New field bios_drive.
10693 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
10695 * grub-core/Makefile.core.def (ieee1275_fb): Use enable=powerpc_ieee1275
10698 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
10700 FreeDOS direct loading support.
10702 * docs/grub.texi (Supported OS): Add FreeDOS.
10703 * grub-core/Makefile.core.def (freedos): New module.
10704 * grub-core/lib/i386/relocator.c (grub_relocator16_ebx): New extern
10706 (grub_relocator16_boot): Handle %ebx.
10707 * grub-core/lib/i386/relocator16.S: Likewise.
10708 * grub-core/loader/i386/pc/freedos.c: New file.
10710 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
10712 Long Linux command line support.
10714 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
10715 (maximal_cmdline_size): New variable.
10716 (allocate_pages): Use maximal_cmdline_size.
10717 (grub_cmd_linux): Set and use maximal_cmdline_size.
10718 * grub-core/loader/i386/pc/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
10719 (allocate_pages): Use maximal_cmdline_size.
10720 (grub_cmd_linux): Set and use maximal_cmdline_size.
10721 * include/grub/i386/linux.h (GRUB_LINUX_SETUP_MOVE_SIZE): Removed.
10722 (linux_kernel_header): Add fields kernel_alignment, relocatable, pad
10725 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
10726 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
10728 Improve devmapper support
10730 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Removed.
10731 (grub_util_is_lvm): New function.
10732 (grub_util_get_dev_abstraction): Assume dmraid if not lvm rather
10733 than lvm if not dmraid.
10734 Handle mapped md nodes.
10735 * grub-core/kern/emu/hostdisk.c (device_is_mapped): Rename to ...
10736 (grub_util_device_is_mapped): ... this. Make always available. All users
10738 (grub_util_get_dm_node_linear_info) [HAVE_DEVICE_MAPPER]: New function.
10739 (convert_system_partition_to_system_disk): Handle lvm, mpath and
10741 * include/grub/emu/misc.h (grub_util_device_is_mapped): New proto.
10743 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
10745 Unify grub-mkrescue (except powerpc) and grrub-mknetdir across platforms
10747 * grub-core/Makefile.am (platform_DATA): Add modinfo.sh.
10748 * grub-core/modinfo.sh.in: New file.
10749 * grub-core/Makefile.core.def (modinfo.sh): New script.
10750 * util/grub-mknetdir.in: Use modinfo.sh.
10751 * util/grub-mkrescue.in: Likewise.
10753 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
10755 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
10756 Fix potential usage of Elf32 instead of Elf64 when compiling on
10757 32-bit architecture. Add endianness macros while on it.
10759 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
10761 Use mipsel- rather than mips- in directories involving mipsel ports to
10762 allow both endiannesses coexist.
10764 * configure.ac: proparate target_cpu=mipsel rather than resetting to
10765 mips. All conditions adjusted.
10766 * tests/util/grub-shell-tester.in: Remove gratuitious target_cpu
10768 * util/grub-install.in: Adjust conditions to take renaming into account.
10769 * util/grub-mkimage.c (image_targets): Likewise. New target
10770 mips-qemu_mips-elf for bigendian mips.
10772 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
10774 Avoid unnecessary copying on MIPS.
10776 * grub-core/boot/decompressor/none.c (grub_decompress_core): Exit
10777 early if src == dest.
10778 * util/grub-mkimage.c (generate_image): Arange for src == dest if
10779 compression is none.
10781 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
10783 Reduce memory footprint on SGI by putting modules before the kernel
10784 as opposed to after.
10786 * grub-core/Makefile.core.def (kernel): Increase linking address.
10787 (none_decompress): Likewise.
10788 (xz_decompress): Likewise.
10789 * grub-core/boot/mips/startup_raw.S: Use prewritten uncompression
10791 * grub-core/kern/mips/arc/init.c (grub_machine_init): Handle memory
10793 (grub_arch_modules_addr): New function.
10794 * grub-core/kern/mips/init.c (grub_arch_modules_addr): Moved from here...
10795 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): .. here
10796 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr): ... and
10798 * grub-core/kern/mips/startup.S (total_size): Rename to ...
10799 (grub_total_modules_size): ... this. Make global.
10800 [GRUB_MACHINE_ARC]: Don't attempt to move modules out of the bss.
10801 * include/grub/offsets.h (GRUB_KERNEL_MIPS_LOONGSON_UNCOMPRESSED_ADDR):
10803 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_ADDR): Likewise.
10804 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_ADDR): Likewise.
10805 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_ADDR): Likewise.
10806 (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): Increased.
10807 * util/grub-mkimage.c (image_target_desc): New flag
10808 PLATFORM_FLAGS_MODULES_BEFORE_KERNEL.
10809 (image_targets): Set PLATFORM_FLAGS_MODULES_BEFORE_KERNEL on mips-arc.
10810 (generate_image): Handle images with modules before kernel.
10812 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
10814 Prevent potential loss of memory map by overwrite on qemu-mips.
10816 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]:
10817 Save ram size in $s4.
10818 * grub-core/kern/mips/qemu_mips/init.c (RAMSIZE): Removed.
10819 All users changed to grub_arch_memsize.
10820 * grub-core/kern/mips/startup.S (grub_arch_machine): Restrict to
10822 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Save grub_arch_memsize.
10823 * grub-core/loader/mips/linux.c (grub_linux_boot): Pass memory size.
10824 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): New
10827 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
10829 * .bzrignore: Remove grub-dumpbios.
10831 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
10833 * util/grub.d/20_linux_xen.in: Honour GRUB_CMDLINE_LINUX_XEN_REPLACE
10834 and GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT, which replace
10835 GRUB_CMDLINE_LINUX and GRUB_CMDLINE_LINUX_DEFAULT (complementing the
10836 existing options which append).
10837 * docs/grub.texi (Simple configuration): Document new options.
10838 Reported by: Ian Jackson. Fixes Debian bug #617538.
10840 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
10842 * util/grub-fstest.c (cmd_cat): New function.
10843 (fstest): Handle CMD_CAT.
10844 (options): Add cat.
10845 (argp_parser): Handle cat.
10847 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
10849 * Makefile.util.def (grub-bin2h): Don't install.
10850 * docs/man/grub-bin2h.h2m: Remove.
10852 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
10854 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Move to the right
10857 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
10859 Reenable qemu-mips port.
10861 * configure.ac: Handle --target=qemu-mips and --target=qemu_mips.
10862 Fix small arc bug while on it.
10863 * gentpl.py: Handle qemu_mips.
10864 * grub-core/Makefile.am: Likewise.
10865 * grub-core/Makefile.core.def: Likewise.
10866 * grub-core/disk/ata.c [GRUB_MACHINE_MIPS_QEMU_MIPS]: Remove
10867 inappropriate includes.
10868 (grub_ata_pciinit) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Removed.
10869 (grub_ata_initialize): [GRUB_MACHINE_MIPS_QEMU_MIPS]: Rewritten.
10870 * grub-core/kern/main.c (grub_modules_get_end)
10871 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Enable.
10872 * grub-core/kern/mips/qemu-mips: Moved to ..
10873 * grub-core/kern/mips/qemu_mips: ... this.
10874 * grub-core/kern/mips/qemu_mips/init.c (grub_get_rtc): Removed.
10875 (grub_machine_init): Call terminfo_init and serial_init.
10876 * grub-core/kern/mips/startup.S: Change MIPS_LOONGSON to MACHINE.
10877 * grub-core/loader/mips/linux.c (params) [GRUB_MACHINE_MIPS_QEMU_MIPS]:
10879 (grub_linux_boot) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle the qemu-mips
10881 (grub_linux_unload) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Free params.
10882 (grub_cmd_linux) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle params.
10883 (grub_cmd_initrd) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
10884 * include/grub/mips/qemu_mips/cmos.h: New file.
10885 * include/grub/mips/qemu-mips/kernel.h: Don't include cpu/kernel.h.
10886 * include/grub/mips/qemu-mips/memory.h (grub_machine_mmap_iterate):
10888 * include/grub/mips/qemu-mips/serial.h (GRUB_MACHINE_SERIAL_PORTS):
10889 Use correct mips-style address.
10890 * include/grub/mips/qemu-mips/time.h: Include cpu/time.h.
10891 (GRUB_TICKS_PER_SECOND): Removed.
10892 (grub_get_rtc): Likewise.
10893 (grub_cpu_idle): Likewise.
10894 * include/grub/offsets.h (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ADDR):
10896 (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ALIGN): Likewise.
10897 (GRUB_KERNEL_MIPS_QEMU_MIPS_COMPRESSED_SIZE): Likewise.
10898 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_SIZE): Likewise.
10899 (GRUB_KERNEL_MIPS_QEMU_MIPS_TOTAL_MODULE_SIZE): Likewise.
10900 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
10901 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
10902 (GRUB_KERNEL_MIPS_QEMU_MIPS_MOD_ALIGN): Likewise.
10903 * util/grub-mkimage.c (image_targets): Add mipsel-qemu_mips-elf.
10905 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
10909 * Makefile.util.def (libgrubmods.a): Add dvh.c.
10910 * conf/Makefile.common (CCASFLAGS_PLATFORM): Add -mips3 on all mips
10912 * configure.ac: New target mips-arc.
10913 * gentpl.py: Likewise.
10914 * grub-core/Makefile.am: Likewise.
10915 * grub-core/Makefile.core.def: Likewise.
10916 (xz_decompress): Remove -D GRUB_MACHINE_LINK_ADDR.
10917 (none_decompress): Likewise.
10918 (lsdev): New module.
10919 (datetime): Use lib/arc/datetime.c on ARC.
10920 (part_dvh): New module.
10921 * grub-core/commands/arc/lsdev.c: New file.
10922 * grub-core/disk/arc/arcdisk.c: Likewise.
10923 * grub-core/kern/mips/arc/init.c: Likewise.
10924 * grub-core/kern/mips/cache_flush.S: Don't flush non 4-byte
10926 * grub-core/kern/mips/dl.c (grub_arch_dl_check_header): Fix bigendian
10928 (grub_arch_dl_relocate_symbols): Likewise.
10929 * grub-core/kern/mips/loongson/init.c (grub_get_rtc): Moved from here...
10930 * grub-core/kern/mips/init.c (grub_get_rtc): ... here.
10931 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Have on all
10933 * grub-core/lib/arc/datetime.c: New file.
10934 * grub-core/loader/mips/linux.c: Always include time.h. Don't include
10935 pci.h on non-loongson.
10936 (envp_off) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove.
10937 (grub_linux_boot): Set unused registers to 0.
10938 (grub_cmd_linux) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove envp.
10939 * grub-core/mmap/mips/loongson/uppermem.c: Moved from here ...
10940 * grub-core/mmap/mips/uppermem.c: ...here.
10941 * grub-core/partmap/dvh.c: New file.
10942 * grub-core/term/arc/console.c: Likewise.
10943 * grub-core/term/terminfo.c (ANSI_C0_STR): New const.
10944 (grub_terminfo_set_current): Add terminal "arc".
10945 (grub_terminfo_readkey): Support ARC sequences.
10946 * include/grub/arc/arc.h: New file.
10947 * include/grub/arc/console.h: Likewise.
10948 * include/grub/disk.h (grub_disk_dev_id): Add
10949 GRUB_DISK_DEVICE_ARCDISK_ID.
10950 * include/grub/mips/arc/kernel.h: New file.
10951 * include/grub/mips/arc/memory.h: Likewise.
10952 * include/grub/mips/arc/time.h: Likewise.
10953 * include/grub/mips/loongson/kernel.h (grub_halt): Moved from here ...
10954 * include/grub/mips/kernel.h (grub_halt): ... here.
10955 * include/grub/mips/loongson.h (GRUB_CPU_REGISTER_WRAP): Moved from
10957 * include/grub/mips/mips.h (GRUB_CPU_REGISTER_WRAP): ... here.
10958 (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): Moved from here ...
10959 * include/grub/mips/mips.h (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): .. here
10960 * include/grub/mips/loongson/kernel.h (grub_reboot): Removed redundant
10962 * include/grub/mips/loongson/memory.h (GRUB_ARCH_LOWMEMVSTART): Moved
10964 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMVSTART): ... here.
10965 (GRUB_ARCH_LOWMEMPSTART): Moved from here ...
10966 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMPSTART): ... here.
10967 (GRUB_ARCH_LOWMEMMAXSIZE): Moved from here ...
10968 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMMAXSIZE): ... here.
10969 (GRUB_ARCH_HIGHMEMPSTART): Moved from here ...
10970 * include/grub/mips/memory.h (GRUB_ARCH_HIGHMEMPSTART): ... here.
10971 (grub_phys_addr_t): Moved from here ...
10972 * include/grub/mips/memory.h (grub_phys_addr_t): ... here.
10973 (grub_vtop): Moved from here ...
10974 * include/grub/mips/memory.h (grub_vtop): ... here.
10975 (grub_map_memory): Moved from here ...
10976 * include/grub/mips/memory.h (grub_map_memory): ... here.
10977 (grub_unmap_memory): Moved from here ...
10978 * include/grub/mips/memory.h (grub_unmap_memory): ... here.
10979 (grub_machine_mmap_iterate): Moved from here ...
10980 * include/grub/mips/memory.h (grub_machine_mmap_iterate): ... here.
10981 (grub_mmap_get_lower): Moved from here ...
10982 * include/grub/mips/memory.h (grub_mmap_get_lower): ... here.
10983 (grub_mmap_get_upper): Moved from here ...
10984 * include/grub/mips/memory.h (grub_mmap_get_upper): ... here.
10985 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
10987 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
10988 * include/grub/mips/loongson/time.h (grub_get_rtc): Moved from
10990 * include/grub/mips/time.h (grub_get_rtc): ... here.
10991 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
10993 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
10994 * include/grub/mips/loongson/time.h (grub_cpu_idle): Moved from
10996 * include/grub/mips/time.h (grub_cpu_idle): ... here.
10997 * include/grub/offsets.h (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): New
10999 (GRUB_KERNEL_MIPS_ARC_LINK_ALIGN): Likewise.
11000 (GRUB_KERNEL_MIPS_ARC_COMPRESSED_SIZE): Likewise.
11001 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_SIZE): Likewise.
11002 (GRUB_KERNEL_MIPS_ARC_TOTAL_MODULE_SIZE): Likewise.
11003 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
11004 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
11005 (GRUB_KERNEL_MIPS_ARC_MOD_ALIGN): Likewise.
11006 (GRUB_MACHINE_LINK_ADDR): Likewise.
11007 * include/grub/terminfo.h (GRUB_TERMINFO_READKEY_MAX_LEN): Increased
11009 * util/grub-install.in: Run dvhtool on ARC.
11010 * util/grub-mkimage.c (image_targets): Add mips-arc.
11011 (generate_image): Handle ECOFF output for mips-arc.
11013 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
11015 * grub-core/bus/pci.c (grub_memalign_dma32): Always allocate in 64-byte
11018 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
11020 * grub-core/bus/usb/usbhub.c (attach_root_port): Wait 10ms
11021 after enabling port.
11023 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
11025 Skip incorrect USB devices.
11027 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Fail if
11029 * include/grub/usb.h (grub_usb_err_t): New enum value
11030 GRUB_USB_ERR_BADDEVICE.
11032 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
11034 Fuloong video init support.
11036 * include/grub/vga.h (grub_vga_write_arx): inb monochrome address as
11038 (grub_vga_read_arx): New function.
11039 * grub-core/video/sis315pro.c (GRUB_SIS315PRO_MMIO_SPACE): New
11041 (framebuffer): New members io, mmioptr and mmiobase.
11042 (read_sis_cmd): New function.
11043 (write_sis_cmd): Likewise.
11044 (grub_video_sis315pro_setup): Do the initialisation. Use 640x480
11045 rather than 640x400.
11046 * grub-core/video/sis315_init.c: New file.
11048 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
11050 * grub-core/bus/cs5536.c: Don't include grub/machine/kernel.h on
11052 * grub-core/kern/mips/dl.c (grub_arch_dl_init_linker): Fix argument
11053 to grub_dl_register_symbol.
11055 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
11057 Fix compilation errors.
11059 * grub-core/term/ns8250.c (serial_get_divisor): Declare 'port' as
11060 potentially unused.
11061 * grub-core/loader/i386/linux.c (grub_linux_setup_video):
11062 Handle GRUB_VIDEO_DRIVER_SIS315PRO.
11063 * grub-core/bus/cs5536.c (grub_cs5536_init_geode): Restrict DIVIL init
11064 to loongson machines.
11066 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
11068 Several FS mtime support.
11070 * grub-core/fs/affs.c (grub_affs_time): New struct.
11071 (grub_affs_file): New field mtime.
11072 (grub_fshelp_node): Changed 'block' and 'parent' to more appropriate
11073 type. Removed 'size'. New field 'di'. All users updated.
11074 (grub_affs_mount): Simplify checsum checking.
11075 (grub_affs_iterate_dir): New helper grub_affs_create_node.
11076 (grub_affs_dir): Handle mtime.
11077 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle mtime.
11078 (grub_cpio_dir): Likewise.
11079 * grub-core/fs/hfs.c (grub_hfs_dirrec): New fields 'ctime' and 'mtime'.
11080 (grub_hfs_filerec): New field mtime.
11081 (grub_hfs_dir): Handle mtime.
11082 (grub_hfs_mtime): New function.
11083 (grub_hfs_fs): Register grub_hfs_mtime.
11084 * grub-core/fs/iso9660.c (grub_iso9660_date2): New struct.
11085 (grub_iso9660_dir): New field mtime.
11086 (grub_fshelp_node): New field dirent.
11087 (iso9660_to_unixtime): New function.
11088 (iso9660_to_unixtime2): Likewise.
11089 (grub_iso9660_read_symlink): Use node->dirent.
11090 (grub_iso9660_iterate_dir): Likewise.
11091 (grub_iso9660_dir): Set mtime.
11092 (grub_iso9660_mtime): New function.
11093 (grub_iso9660_fs): Register grub_iso9660_mtime.
11094 * grub-core/fs/jfs.c (grub_jfs_time): New struct.
11095 (grub_jfs_inode): New fields atime, ctime and mtime.
11096 (grub_jfs_dir): Set mtime.
11097 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
11098 * grub-core/fs/ntfs.c (list_file): Set mtime.
11099 (grub_ntfs_dir): Likewise.
11100 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field 'mtime'.
11101 (grub_reiserfs_iterate_dir): Set mtime.
11102 (grub_reiserfs_dir): Likewise.
11103 * grub-core/fs/sfs.c (grub_sfs_obj): New field mtime.
11104 (grub_fshelp_node): Likewise.
11105 (grub_sfs_iterate_dir): Set mtime.
11106 (grub_sfs_dir): Likewise.
11107 * grub-core/fs/udf.c (grub_udf_dir): Set mtime.
11108 * grub-core/fs/xfs.c (grub_xfs_time): New struct.
11109 (grub_xfs_inode): New fields atime, mtime, ctime.
11110 (grub_xfs_dir): Set mtime.
11111 * include/grub/datetime.h (grub_datetime2unixtime): New function.
11112 * include/grub/hfs.h (grub_hfs_sblock): New fields ctime and mtime.
11113 * include/grub/ntfs.h (grub_fshelp_node): New field mtime.
11115 Support UDF symlinks.
11117 * grub-core/fs/udf.c (grub_udf_iterate_dir): Handle symlinks.
11118 (grub_ufs_read_symlink): New function. All users updated.
11120 Check amiga partmap checksum.
11122 * grub-core/partmap/amiga.c (grub_amiga_rdsk): Pad to 128 bytes.
11123 (grub_amiga_partition): Likewise.
11124 (amiga_partition_map_checksum): New function.
11125 (amiga_partition_map_iterate): Check checksum.
11127 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
11131 * Makefile.util.def (libgrubmods.a): Add romfs.
11132 * grub-core/Makefile.core.def (romfs): New module.
11133 * grub-core/fs/romfs.c: New file.
11135 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
11137 Squashfs v4 support.
11139 * Makefile.util.def (libgrubmods.a): Add squash4.
11140 * grub-core/Makefile.core.def (squash4): New module.
11141 * grub-core/fs/squash4.c: New file.
11142 * grub-core/io/gzio.c (grub_gzio): New members disk_input_off,
11143 disk_input_start, disk_input.
11144 (get_byte): Handle disk_input.
11145 (grub_zlib_disk_read): New function.
11146 * include/grub/deflate.h (grub_zlib_disk_read): New proto.
11148 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
11149 2011-05-15 Feiran Zheng <famcool@gmail.com>
11151 * Makefile.util.def (libgrubmods.a): Add minix3.
11152 * grub-core/Makefile.core.def (minix3): New module.
11153 * grub-core/fs/minix.c (GRUB_MINIX_MAGIC) [MODE_MINIX3]: New value.
11154 (GRUB_MINIX_BSIZE): Removed.
11155 (GRUB_MINIX_INODE_DIR_BLOCKS): New definition. All users updated.
11156 (grub_minix_ino_t): New type.
11157 (grub_minix_le_to_cpu_ino): New macro.
11158 (GRUB_MINIX_ZONE2SECT): New definition. All users updated.
11159 (grub_minix_sblock) [MODE_MINIX3]: Change for minix3.
11160 (grub_minix_data): New field block_size.
11161 (grub_minix_read_file): Handle 64-bit correctly.
11162 * grub-core/fs/minix3.c: New file.
11164 2011-05-15 Tristan Gingold <gingold@free.fr>
11165 2011-05-15 Robert Millan <rmh.grub@aybabtu.com>
11166 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
11170 * Makefile.util.def (libgrubmods.a): Add grub-core/kern/ia64/dl_helper.c
11171 * configure.ac: Add ia64-efi target.
11172 Probe for __ia64_trampoline, __udivsi3, __umoddi3, __udivdi3,
11173 __divsi3, __modsi3, __umodsi3, __moddi3 and __divdi3 symbols.
11174 * gentpl.py: Add ia64_efi platform.
11175 Rename x86_efi to efi and Add ia64-efi. All users updated.
11176 * grub-core/Makefile.am: Set KERNEL_HEADER_FILES for ia64-efi.
11177 * grub-core/Makefile.core.def (kernel.img): Add compile flags for ia64.
11178 Remove kern/generic/rtc_get_time_ms.c on EFI.
11179 Add kern/ia64/efi/startup.S, kern/ia64/efi/init.c, kern/ia64/dl.c,
11180 kern/ia64/dl_helper.c on ia64-efi.
11181 Add kern/emu/cache.c on emu.
11182 (linux): Use on loader/ia64/efi/linux.c on ia64.
11183 * grub-core/gensymlist.sh (grub_register_exported_symbols): Check
11184 whether symbol is a function.
11185 * grub-core/kern/dl.c [GRUB_MACHINE_EMU]: Include sys/mman.h.
11186 (grub_symbol): New field 'isfunc'.
11187 (grub_dl_resolve_symbol): Return whole symbol rather than just address.
11188 (grub_dl_register_symbol): New argument 'isfunc'. All users updated.
11189 (grub_dl_load_segments): Place all sections into the same region.
11190 [__ia64__]: Create trampolines and got.
11191 [GRUB_MACHINE_EMU]: Call mprotect.
11192 (grub_dl_resolve_symbols): Resolve symbol type as well.
11193 [__ia64__]: Create function descriptors.
11194 * grub-core/kern/efi/efi.c (grub_get_rtc): Renamed to ...
11195 (grub_rtc_get_time_ms): ... this. Expressions simplified.
11196 (grub_get_rtc): New function.
11197 * grub-core/kern/emu/cache.c [__ia64__]: New file.
11198 * grub-core/kern/emu/cache.S: Renamed to ...
11199 * grub-core/kern/emu/cache_s.S: ... this.
11200 [__ia64__]: Add a nop.
11201 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size)
11202 [__ia64__]: New function.
11203 * grub-core/kern/emu/lite.c [__ia64__]: Include ../ia64/dl.c.
11204 * grub-core/kern/ia64/dl.c: New file.
11205 * grub-core/kern/ia64/dl_helper.c: Likewise.
11206 * grub-core/kern/ia64/efi/init.c: New file.
11207 * grub-core/kern/ia64/efi/startup.S: Likewise.
11208 * grub-core/lib/efi/halt.c [__ia64__]: Don't try acpi.
11209 * grub-core/lib/ia64/longjmp.S: New file (from glibc).
11210 * grub-core/lib/ia64/setjmp.S: Likewise (from glibc).
11211 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/setjmp.S.
11212 * grub-core/loader/ia64/efi/linux.c: New file.
11213 * include/grub/dl.h (GRUB_MOD_NAME): Redefined using C rather than asm.
11214 (GRUB_MOD_DEP): Likewise.
11215 (grub_dl) [__ia64__]: New fields got and tramp.
11216 (grub_dl): New field 'base'.
11217 (grub_dl_register_symbol): New argument isfunc. All users updated.
11218 (GRUB_IA64_DL_TRAMP_ALIGN): New definition.
11219 (GRUB_IA64_DL_TRAMP_SIZE): Likewise.
11220 (GRUB_IA64_DL_GOT_ALIGN): Likewise.
11221 (grub_ia64_dl_get_tramp_got_size): New proto.
11222 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Likewise
11223 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Likewise
11224 (grub_arch_dl_get_tramp_got_size) [__ia64__]: Likewise
11225 * include/grub/efi/api.h: Skip call wrappers on ia64.
11226 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_IA64): New definition.
11227 * include/grub/efi/time.h (GRUB_TICKS_PER_SECOND): Change to 1000.
11228 * include/grub/elf.h (ELF_ST_INFO): New definition.
11229 * include/grub/ia64/efi/kernel.h: New file.
11230 * include/grub/ia64/efi/memory.h: Likewise.
11231 * include/grub/ia64/efi/time.h: Likewise.
11232 * include/grub/ia64/kernel.h: Likewise.
11233 * include/grub/ia64/setjmp.h: Likewise (from glibc).
11234 * include/grub/ia64/time.h: New file.
11235 * include/grub/ia64/types.h: Likewise.
11236 * include/grub/libgcc.h (__udivsi3, __umodsi3, __umoddi3, __udivdi3,
11237 __moddi3, __divdi3, __divsi3, __modsi3, __ia64_trampoline):
11239 * include/grub/offsets.h (GRUB_KERNEL_IA64_EFI_PREFIX): New definition.
11240 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
11241 * include/grub/types.h (PRIxGRUB_ADDR): Likewise.
11242 * util/grub-mkimage.c (image_target_desc): New field pe_target.
11244 (EFI64_HEADER_SIZE): New definition. All users updated.
11245 (image_targets): Add ia64-efi.
11246 * util/grub-mkimagexx.c (relocate_symbols): New arguments jumpers and
11247 jumpers_addr. All users updated.
11248 Create function descriptors.
11249 (count_funcs): New function.
11250 (unaligned_uint32): New struct.
11251 (MASK20): New definition.
11252 (MASK19): Likewise.
11253 (MASKF21): Likewise.
11254 (add_value_to_slot_20b): New function.
11255 (add_value_to_slot_21_real): Likewise.
11256 (add_value_to_slot_21): Likewise.
11257 (ia64_kernel_trampoline): New struct.
11258 (nopm): New variable.
11260 (make_trampoline): New function.
11261 (relocate_addresses): Handle ia64.
11262 (make_reloc_section): Likewise.
11263 (load_image): Likewise.
11265 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
11267 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Silence spurious
11268 warning. Move variables before code while on it.
11270 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
11274 * configure.ac: Rename yeeloong platform to loongson. All users updated.
11275 * grub-core/Makefile.core.def (fwstart_fuloong): New image.
11276 * grub-core/boot/mips/loongson/fuloong.S: New file.
11277 * grub-core/boot/mips/loongson/fwstart.S: Wait for CS5536 to come up.
11278 Explicitly init CS5536.
11279 [FULOONG]: Don't use serial until CS5536 is available.
11280 Set GPIO based on dumps.
11281 (serial_hw_init) [FULOONG]: Handle CS5536 parts.
11282 [FULOONG]: Handle GPIO and memory controller differences.
11283 Parse machine type in $a2.
11284 * grub-core/boot/mips/startup_raw.S: Determine and save the
11286 * grub-core/bus/cs5536.c (gpiodump): Move to fwstart.S.
11287 (grub_cs5536_init_geode): Remove gpio part. Conditionalise DIVIL
11288 init on architecture type.
11289 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
11290 SIS315E. Don't init at_keyboard on fuloong.
11291 (grub_halt): Support Fuloong.
11292 * grub-core/kern/mips/startup.S [LOONGSON]: Save $s7.
11293 * grub-core/loader/mips/linux.c (LOONGSON_MACHTYPE): Removed.
11294 (loongson_machtypes): New array.
11295 (grub_cmd_linux) [GRUB_MACHINE_MIPS_LOONGSON]: Pass the right machine
11297 * grub-core/term/ns8250.c (serial_get_divisor): New parameter port and
11298 config. All users updated. Handle CS5536 serial.
11299 * grub-core/term/serial.c (grub_serial_register): Conditionalise
11300 default port on machine type. Register serial as inactive.
11301 * grub-core/video/sis315pro.c: New file.
11302 * include/grub/cs5536.h (GRUB_CS5536_MSR_MAILBOX_CONFIG_ENABLED): New
11304 (GRUB_CS5536_MSR_MAILBOX_CONFIG): Likewise.
11305 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART1_COM1): Likewise.
11306 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART2_COM3): Likewise.
11307 (GRUB_CS5536_MSR_DIVIL_UART1_CONF): Likewise.
11308 (GRUB_CS5536_MSR_DIVIL_UART2_CONF): Likewise.
11309 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_SHUTDOWN_GPIO): Rename
11311 (GRUB_CPU_YEELOONG_SHUTDOWN_GPIO): ... this.
11312 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_YEELOONG): New
11314 (GRUB_ARCH_MACHINE_FULOONG): Likewise.
11315 (grub_arch_machine): New extern var.
11316 * include/grub/mips/loongson/serial.h
11317 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Renamed to ...
11318 (GRUB_MACHINE_SERIAL_PORT0_DIVISOR_115200): ... this.
11319 (GRUB_MACHINE_SERIAL_PORT): Renamed to ...
11320 (GRUB_MACHINE_SERIAL_PORT0): ... this.
11321 (GRUB_MACHINE_SERIAL_PORT2_DIVISOR_115200): New definition.
11322 (GRUB_MACHINE_SERIAL_PORT1): Likewise.
11323 (GRUB_MACHINE_SERIAL_PORT2): Likewise.
11324 (GRUB_MACHINE_SERIAL_PORTS): Include ports 1 and 2.
11325 * include/grub/term.h (grub_term_register_input_inactive): New inline
11327 (grub_term_register_output_inactive): Likewise.
11328 * include/grub/video.h (grub_video_driver_id): New value
11329 GRUB_VIDEO_DRIVER_SIS315PRO.
11330 * util/grub-mkimage.c (image_target_desc): Rename name to dirname.
11331 New field "names". All users updated.
11332 New field value IMAGE_FULOONG_FLASH.
11333 (generate_image): USe separate fwstart hashes for yeeloong and fuloong.
11335 2011-05-14 Jordan Uggla <jordan.uggla@gmail.com>
11337 * docs/grub.texi (Invoking grub-install): Fix additional outdated claims
11338 and add some clarification.
11340 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
11342 * util/grub.d/10_linux.in: Autoload gzio since it's needed on some
11343 platforms if kernel is compressed.
11345 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
11347 * grub-core/kern/mm.c (grub_memalign): Disable auto-unloadding of
11348 unused modules since currently referrence counter isn't reliable and
11349 there isn't much memory to recover there anyway.
11351 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
11353 * grub-core/kern/dl.c (grub_dl_load_file): Decrease ref counter
11354 rather than resetting it to allow modules to reference themselves
11357 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
11359 * grub-core/kern/dl.c (grub_dl_unload): Don't decrease reference
11360 counter on dependencies since grub_dl_unref already handles this.
11362 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
11364 * grub-core/font/font_cmd.c (loadfont_command): Set grub_errno
11365 on error if not already done.
11367 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
11369 Fix few potential memory misusage.
11371 * grub-core/font/font.c (load_font_index): Don't free char_index to
11373 (grub_font_load): Zero-fill font at alloc for safety.
11374 Close file on error.
11375 (free_font): Free bmp_idx.
11377 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
11379 * docs/grub.texi (Installation): Fix several outdated claims.
11381 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
11383 Handle module_license on windows.
11385 * util/grub-pe2elf.c (MODLICENSE_SECTION): New definition. All following
11387 (insert_string): Make argument const char * instead of char *.
11388 (write_section_data): Handle long section names.
11389 Handle module_license.
11391 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
11393 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Correctly
11394 handle class-free menuentries.
11395 (grub_normal_add_menu_entry): Add a check to be sure.
11397 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
11399 * grub-core/term/at_keyboard.c (set1_e0_mapping): Fix swap between
11402 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
11404 * configure.ac: Bump version to 1.99.
11406 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
11408 Give ATA device a bit more time on first try in order to allow disks
11411 * grub-core/disk/ata.c (grub_atapi_identify): Use GRUB_ATA_TOUT_DEV_INIT
11412 if dev->present is 1. Reset dev->present on failure.
11413 (grub_ata_device_initialize): Set dev->present to 1.
11414 * include/grub/ata.h (GRUB_ATA_TOUT_DEV_INIT): New value.
11415 (grub_ata_device): New member 'present'.
11417 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
11419 * util/grub-mkimage.c (generate_image): Update hash.
11421 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
11423 Flush caches on DMA memory.
11425 * grub-core/kern/mips/cache.S (grub_arch_sync_dma_caches): New function.
11426 * grub-core/bus/pci.c (grub_memalign_dma32): Flush caches.
11427 (grub_dma_free): Likewise.
11428 * include/grub/cache.h (grub_arch_sync_dma_caches): New declaration.
11430 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
11432 * grub-core/boot/mips/yeeloong/fwstart.S: Add explicit set mips3
11433 to avoid asm treating ld and sd as macros.
11435 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
11437 * grub-core/boot/mips/startup_raw.S: Flush cache after loading
11440 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
11442 * grub-core/boot/mips/startup_raw.S: Use jalr rather than bal to call
11443 grub_decompress_core since later would fail if grub_decompress_core
11446 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
11448 * grub-core/kern/mips/dl.c (grub_arch_dl_relocate_symbols): Handle
11449 R_MIPS_JALR since it's used by newer compiler.
11451 2011-05-10 Vladimir Serbinenko <phcoder@gmail.com>
11453 * util/grub.d/10_linux.in: Correctly handle the Linux in root.
11455 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
11457 * grub-core/loader/efi/chainloader.c (grub_chainloader_unload): Set
11458 file_path to 0 for surety.
11459 (grub_chainloader_boot): Set exit_data to NULL.
11460 Unset the loader once done.
11461 (grub_cmd_chainloader): Fix confusing error message if file is empty.
11463 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
11465 * grub-core/term/at_keyboard.c (fetch_key): Make a printf on
11466 unknown key into a dprintf.
11468 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
11470 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Don't abort
11471 on first non-existant partition.
11473 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
11475 * grub-core/kern/emu/hostdisk.c (open_device): Set data->fd to -1 if
11477 Reported by: Mark Korenberg.
11479 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
11481 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Prevent possible
11484 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
11486 * util/grub-mkimage.c (main): Explicitely flush and sync the output
11487 before closing to ensure that it will be readable by grub-setup.
11489 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
11491 * grub-core/loader/efi/appleloader.c (MAKE_PIWG_PATH): New macro.
11492 (devpath_1): Use MAKE_PIWG_PATH.
11493 (devpath_2): Likewise.
11494 (devpath_3): Likewise.
11495 (devpath_4): Likewise.
11496 (devpath_5): Likewise.
11497 (devpath_6): Likewise.
11499 The appleldr.mod was checked that to be binary identical to previous
11502 2011-05-05 Zach <mikezackles>
11504 Support 2010 Macbooks.
11506 * grub-core/loader/efi/appleloader.c (devpath_6): New variable.
11507 (devs): Add devpath_6.
11509 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
11511 * util/grub-mkpasswd-pbkdf2.c (main): Use /dev/urandom and not
11512 /dev/random. /dev/urandom is good enough for our purposes (salting).
11514 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
11516 * util/grub-mkrescue.in (process_input_dir): Include efiemu??.o.
11518 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
11520 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Correctly handle
11523 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
11525 * grub-core/efiemu/main.c (grub_efiemu_load_file): Return grub_errno
11526 and not 0 on failure.
11528 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
11530 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_dir): Return
11531 GRUB_ERR_BAD_FS rather than GRUB_ERR_IO if the disk is not a pxe
11532 disk; otherwise grub_fs_probe will not fall back to the next
11534 (grub_pxefs_open): Likewise, for consistency.
11535 Reported and tested by: Ezekiel Grave.
11537 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
11539 * tests/partmap_test.in: Don't hardcode path to parted.
11540 Reported by: Peter Hjalmarsson. Fixes Savannah bug #33150.
11542 2011-05-01 Colin Watson <cjwatson@ubuntu.com>
11544 * docs/grub.texi (GRUB only offers a rescue shell): Suggest the use
11545 of `ls' to find out which devices are available.
11547 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
11549 * grub-core/loader/i386/linux.c (grub_linux_boot): Supply target rather
11550 than source address for efi mmap buffer.
11552 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
11554 * grub-core/partmap/amiga.c (amiga_partition_map_iterate): Fix a
11555 wrong action on non-detecting the magic.
11557 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
11559 * grub-core/gnulib/regex.c: Remove GRUB_MOD_LICENSE since it's
11560 already supplied by another part of the module (fixes compilation on
11563 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
11565 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Make mdraid UUID
11566 match the one used by mdadm.
11568 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
11570 * po/README: Add instructions for creating po/LINGUAS.
11572 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
11574 Add "SEE ALSO" sections to most man pages. Fixes Debian bug
11577 * docs/man/grub-editenv.h2m (SEE ALSO): New section.
11578 * docs/man/grub-emu.h2m (SEE ALSO): Likewise.
11579 * docs/man/grub-fstest.h2m (SEE ALSO): Likewise.
11580 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
11581 * docs/man/grub-macho2img.h2m (SEE ALSO): Likewise.
11582 * docs/man/grub-menulst2cfg.h2m (SEE ALSO): Likewise.
11583 * docs/man/grub-mkconfig.h2m (SEE ALSO): Likewise.
11584 * docs/man/grub-mkdevicemap.h2m (SEE ALSO): Likewise.
11585 * docs/man/grub-mkfont.h2m (SEE ALSO): Likewise.
11586 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
11587 * docs/man/grub-mklayout.h2m (SEE ALSO): Likewise.
11588 * docs/man/grub-mknetdir.h2m (SEE ALSO): Likewise.
11589 * docs/man/grub-mkpasswd-pbkdf2.h2m (SEE ALSO): Likewise.
11590 * docs/man/grub-mkrelpath.h2m (SEE ALSO): Likewise.
11591 * docs/man/grub-mkrescue.h2m (SEE ALSO): Likewise.
11592 * docs/man/grub-ofpathname.h2m (SEE ALSO): Likewise.
11593 * docs/man/grub-pe2elf.h2m (SEE ALSO): Likewise.
11594 * docs/man/grub-probe.h2m (SEE ALSO): Likewise.
11595 * docs/man/grub-reboot.h2m (SEE ALSO): Likewise.
11596 * docs/man/grub-script-check.h2m (SEE ALSO): Likewise.
11597 * docs/man/grub-set-default.h2m (SEE ALSO): Likewise.
11598 * docs/man/grub-setup.h2m (SEE ALSO): Likewise.
11600 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
11602 * grub-core/kern/emu/getroot.c
11603 (grub_find_root_device_from_mountinfo): Remove non-virtual-device
11604 test that was incorrectly reintroduced in r3214.
11605 Reported by: Ian Dall. Fixes Savannah bug #33133.
11607 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
11609 Fix stack pointer handling in 16-bit relocator.
11611 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move
11612 grub_relocator16_sp to %esp rather than %ss, and zero-extend it.
11613 Fixes Ubuntu bug #683904.
11615 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
11617 * configure.ac: Bump version to 1.99~rc2.
11619 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
11621 * include/grub/dl.h [ASM_FILE]: Adapt for assembly.
11622 * grub-core/lib/i386/setjmp.S: Add missing GRUB_MOD_LICENSE.
11623 * grub-core/lib/x86_64/setjmp.S: Likewise.
11624 * grub-core/lib/mips/setjmp.S: Likewise.
11625 * grub-core/lib/powerpc/setjmp.S: Likewise.
11626 * grub-core/lib/sparc64/setjmp.S: Likewise.
11628 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
11630 * grub-core/lib/efi/datetime.c: Add missing GRUB_MOD_LICENSE.
11631 * grub-core/lib/efi/datetime.c: Likewise.
11633 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
11635 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_flush):
11637 (grub_util_biosdisk_close): Use grub_util_biosdisk_flush.
11638 * include/grub/emu/hostdisk.h (grub_util_biosdisk_flush): New proto.
11639 * util/grub-setup.c (setup): Use grub_util_biosdisk_flush.
11641 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
11643 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Preserve previous
11645 (grub_gfxterm_term_init): Likewise.
11647 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
11649 Take into account the decorations the computing menu entry width.
11651 * grub-core/gfxmenu/widget-box.c (get_border_width): New function.
11652 (grub_gfxmenu_create_box): Register get_border_width.
11653 * grub-core/gfxmenu/gui_list.c (draw_menu): Use get_border_width
11655 * include/grub/gfxwidgets.h (grub_gfxmenu_box): New member
11658 2011-04-18 Endres Puschner <code@e7p.de>
11660 * grub-core/gfxmenu/icon_manager.c (grub_gfxmenu_icon_manager_get_icon):
11661 Don't skip first class.
11663 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
11665 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Support huge
11667 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_BUG.
11669 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
11671 Complete 64-bit division support.
11673 * grub-core/kern/misc.c (grub_divmod64): Rename to ...
11674 (grub_divmod64_full): ... this. Support 64-bit divisor and reminder.
11675 * include/grub/misc.h (grub_divmod64): Rename to ...
11676 (grub_divmod64_full): ... this.
11677 (grub_divmod64): New inline function.
11679 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
11681 * util/grub-mkimage.c (generate_image): Add forgotten comma.
11683 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
11685 * util/grub-mkimage.c (generate_image): Update fwstart.img hash after
11686 performing the necessary test.
11688 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
11690 * Makefile.am (multiboot.elf): Add -Wl,--build-id=none.
11691 (kfreebsd.elf): Likewise.
11692 (pc-chainloader.elf): Likewise.
11693 (ntldr.elf): Likewise.
11695 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
11697 Identify RAID by its UUID rather than (guessed) name.
11699 * grub-core/disk/raid.c (ascii2hex): New function.
11700 (grub_raid_open): Accept mduuid/%s specification.
11701 * grub-core/kern/emu/getroot.c (get_mdadm_name): Revamped into ...
11702 (get_mdadm_uuid): ... this.
11703 (grub_util_get_grub_dev): Use mduuid/%s if UUID is available.
11705 2011-04-16 Vladimir Serbinenko <phcoder@gmail.com>
11707 * grub-core/gfxmenu/gui_image.c (rescale_image): Don't attempt to scale
11710 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
11712 * util/grub.d/10_linux.in: Add rootflags=subvol=<name> if / is on a
11714 * util/grub.d/20_linux_xen.in: Likewise.
11716 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
11718 Rewrite /proc/self/mountinfo handling to cope with bind-mounts and
11719 move-mounts appearing out of order. Fixes Ubuntu bug #738345.
11721 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
11722 Build a list of relevant visible mounts using the mnt_id and
11723 parent_mnt_id fields, and then scan that list at the end.
11725 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
11727 * docs/grub.texi (normal): New section.
11728 (normal_exit): New section.
11729 (Embedded configuration): Add reference to normal.
11730 (GRUB only offers a rescue shell): Likewise.
11731 * docs/grub-dev.texi (Error Handling): Fix typo.
11733 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
11735 * NEWS: Drop obsolete entry about probe-only btrfs support.
11737 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
11739 * util/import_gcry.py: Fix typo.
11741 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
11743 * NEWS: Add btrfs support.
11745 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
11746 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
11748 BtrFS support. Written by me (Vladimir) with important bugfixes and
11749 even more important testing by Colin.
11751 * Makefile.util.def (libgrubmods.a): Add crc.c and gzio.c
11752 * grub-core/Makefile.core.def (btrfs): Add crc.c.
11753 * grub-core/fs/btrfs.c: Stub replaced with real implementation.
11754 * grub-core/io/gzio.c (grub_gzio): New fields mem_input_size,
11755 mem_input_off and mem_input. All users updated to accept in-RAM input.
11756 (gzio_seek): New function.
11757 (test_zlib_header): Likewise.
11758 (grub_gzio_read): Likewise.
11759 (grub_zlib_decompress): Likewise.
11760 * grub-core/kern/emu/getroot.c (grub_find_root_device_from_mountinfo):
11761 Accept partial and non-virtual mounts.
11762 (grub_guess_root_device): Do rescanning after device_from_mountinfo to
11763 avoid receiving /dev/dm-X as device.
11764 * grub-core/kern/emu/misc.c (grub_make_system_path_relative_to_its_root):
11765 Handle bind and partial mounts.
11766 * grub-core/lib/crc.c: New file.
11767 * include/grub/deflate.h: Likewise.
11768 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo): New
11770 * include/grub/lib/crc.h: New file.
11772 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
11774 Implement automatic module license checking according to new GNU
11777 * grub-core/kern/dl.c (grub_dl_check_license): New function.
11778 (grub_dl_load_core): Use grub_dl_check_license.
11779 * include/grub/dl.h (GRUB_MOD_SECTION): New macro.
11780 (GRUB_MOD_LICENSE): Likewise.
11781 (GRUB_MOD_DUAL_LICENSE): Likewise.
11782 All modules updated.
11784 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
11786 * grub-core/fs/btrfs.c (grub_btrfs_fs) [GRUB_UTIL]: Set
11787 reserved_first_sector to 1. btrfs reserves plenty of space for boot
11789 Reported by: Gene Cumm. Fixes Ubuntu bug #757446.
11791 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
11793 * util/grub-fstest.c (cmd_cmp): Check that sizes match.
11795 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
11797 * util/grub-fstest.c (read_file): Report GRUB error if file opening
11800 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
11802 * grub-core/kern/file.c (grub_file_open): Don't take into account the
11803 parenthesis in the middle of the filename.
11805 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
11807 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Use correct limits
11808 rather than trying to put initrd way too high.
11809 Reported by: Ryan Lortie <desrt@desrt.ca>
11811 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
11813 * grub-core/boot/mips/yeeloong/fwstart.S (no_cs5536): Put back
11814 improperly removed string.
11816 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
11818 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_data): New member
11820 (grub_util_biosdisk_open): Don't apply ioctl on non-disk devices.
11821 (open_device) Likewise.
11822 (grub_util_biosdisk_close): Likewise.
11823 Reported by: Mark Korenberg.
11825 2011-04-10 Alexander Kurtz <kurtz.alex@googlemail.com>
11827 * util/grub-mkconfig_lib.in: Add missing quotes.
11829 2011-04-10 Colin Watson <cjwatson@ubuntu.com>
11831 * grub-core/gnulib/argp-parse.c (__argp_input): Don't crash if pstate
11834 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
11836 Dynamically count the number of lines for the lower banner.
11838 * grub-core/normal/menu_entry.c (per_term_screen): New member
11840 (print_down): Use num_entries.
11841 (update_screen): Likewise.
11842 (grub_menu_entry_run): Set num_entries.
11843 * grub-core/normal/menu_text.c (menu_viewer_data): New member
11845 (grub_print_message_indented): Move real part to ...
11846 (grub_print_message_indented_real): ... here. Additional argument
11848 (draw_border): Additional argument num_entries.
11849 (print_message): Additional argument dry_run.
11850 (print_entries): Receive menu viewer data.
11851 (grub_menu_init_page): New argment num_entries.
11852 (menu_text_set_chosen_entry): Use num_entries.
11853 (grub_menu_try_text): Likewise.
11854 * grub-core/normal/term.c (print_ucs4_terminal): New argument dry_run.
11856 (grub_ucs4_count_lines): New function.
11857 * include/grub/term.h (grub_term_cursor_x): Moved from here ..
11858 * grub-core/normal/menu_text.c (grub_term_cursor_x): ... to here.
11859 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): Removed.
11860 (grub_term_border_height): Likewise.
11861 (grub_term_num_entries): Likewise.
11863 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
11865 * grub-core/boot/mips/yeeloong/fwstart.S: Fix address to error message.
11866 Remove now unused string.
11868 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
11870 * docs/grub-dev.texi (Finding your way around): Update for 1.99
11872 (Getting started): GRUB is developed in Bazaar now, not Subversion.
11874 (Comment): Fix typo.
11875 (Getting started): General copy-editing.
11876 (Typical Development Experience): Likewise.
11877 (Error Handling): Likewise.
11878 (Video API): Likewise.
11880 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
11882 * docs/grub-dev.texi: Replace MoinMoin syntax with Texinfo syntax
11885 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
11887 * util/grub-mkimage.c (main): Handle special naming of yeeloong
11890 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
11892 * docs/grub-dev.texi: Fix spelling of "developer" throughout.
11893 * grub-core/fs/i386/pc/pxe.c (parse_dhcp_vendor): Fix spelling of
11896 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
11898 * grub-core/normal/menu_entry.c (run): Use grub_memcpy rather than
11899 grub_strcpy since the lines aren't necessarily 0-terminated.
11901 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
11903 * grub-core/lib/legacy_parse.c (legacy_commands): Find doesn't set
11906 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
11908 * grub-core/commands/probe.c (options): Argument to set isn't optional.
11909 (GRUB_MOD_INIT): DEVICE isn't optional.
11911 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
11913 * grub-core/normal/term.c (print_ucs4_terminal): Don't try to put the
11914 word on new line if it's too long anyway. Fixes a hang.
11916 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
11918 * include/grub/util/raid.h (grub_util_raid_getmembers): Make argument
11920 * util/grub-setup.c (main): Reuse md device name if available.
11921 * util/raid.c (grub_util_raid_getmembers): Receive device name and
11922 not GRUB name as argument.
11923 Based on patch by: Florian Wagner <fwagner>.
11925 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
11927 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
11928 Place mbi on low memory for better compatibility.
11930 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
11932 * include/grub/efiemu/efiemu.h: Use grub_memory_hook_t type.
11934 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
11935 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
11937 * autogen.sh: Ensure that collate and ctype locale is C.
11938 * conf/Makefile.common: Likewise.
11940 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
11942 * grub-core/normal/menu.c: Add missing include.
11944 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
11946 * grub-core/disk/raid.c [GRUB_UTIL]: Add missing include.
11948 2011-04-08 Martin Zuther <mzuther@mzuther.de>
11950 * util/grub-mkconfig.in: Ignore emacsen backup.
11952 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
11954 * grub-core/kern/emu/hostdisk.c (open_device): Sync on close and not
11956 (grub_util_biosdisk_close): Likewise.
11958 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
11960 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Add missing
11961 const attribute and use grub_isdigit.
11963 2011-04-06 Andrey <dev_null@ukr.net>
11965 * grub-core/video/fb/video_fb.c (grub_video_fb_setup): Silence older
11968 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
11970 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Add few
11971 useful grub_dprintf's.
11973 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
11975 * include/grub/fs.h (grub_dirhook_info): Use unsigned for 1-bit fields.
11977 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
11979 * util/grub.d/00_header.in: Don't use LANG unless unifont is available.
11981 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
11983 Output errors if theme loading failed.
11985 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Move the call to
11986 grub_gfxterm_fullscreen on error paths to ...
11987 * grub-core/normal/menu.c (menu_init): ...here. Wait after showing
11988 theme loading error.
11990 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
11992 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Let a bit more
11993 space for older compilers.
11994 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
11996 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
11998 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Detect spares
11999 and report them as not RAID members since they are useless for GRUB.
12000 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
12002 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
12004 Increase LVM implementation robustness in order not to crash on
12005 configurations like pvmove. Previously code assumed that in some places
12006 only lvs or only pvs are used whereas it seems that they are used
12009 * grub-core/disk/lvm.c (read_node): New function.
12010 (read_lv): Use read_node.
12011 (grub_lvm_scan_device): Use only first mirror on pvmove'd lvs.
12012 Match volumes only at the end when all lvs are found. Take both
12013 pvs (first) and lvs (second) into account.
12014 * include/grub/lvm.h (grub_lvm_segment): Merge fields stripe_* and
12015 mirror_* into node_*. All users updated.
12016 (grub_lvm_stripe): Merge this ...
12017 (grub_lvm_mirror): ... and this ...
12018 (grub_lvm_node): ... into this. All users updated.
12020 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
12022 * grub-core/disk/lvm.c (grub_lvm_scan_device): Print errors on the end
12023 of function to allow further scanning for LVMs.
12025 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
12027 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_read): Don't close
12028 on failed seek as it breaks open fd reusage.
12030 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
12032 * util/grub-install.in: Add a recommendation to use --recheck before
12035 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
12037 * docs/grub.texi (Vendor power-on buttons): Explain how the numbers
12040 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
12042 GRUB developper manual based on existing Internals section and
12043 contributions by the various authors with active copyright assignment.
12045 * docs/Makefile.am (info_TEXINFOS): Add grub-dev.texi.
12046 * docs/font_char_metrics.png: New file.
12047 * docs/font_char_metrics.txt: Likewise.
12048 * docs/grub-dev.texi: Likewise.
12049 * docs/grub.texi (Internals): Move from here ...
12050 * docs/grub-dev.texi: ... here.
12052 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
12054 Store the loopback device as data on loopback grub_disk structures,
12055 rather than the file it points to. This fixes use of freed memory
12056 if an existing loopback device is replaced.
12058 * grub-core/disk/loopback.c (grub_loopback_open): Store dev in
12059 disk->data, not dev->file.
12060 (grub_loopback_read): Adjust file assignment to match.
12061 Fixes Ubuntu bug #742967.
12063 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
12065 * grub-core/disk/loopback.c (grub_cmd_loopback): Fix a memory leak
12066 when replacing an existing device.
12068 2011-04-01 Vladimir Serbinenko <phcoder@gmail.com>
12070 Fix incorrect types in jfs.c. This enables >2TiB disks and fixes some
12071 memory corruptions.
12073 * grub-core/fs/jfs.c (struct grub_jfs_diropen): Interpret bytes as
12075 (grub_jfs_lookup_symlink): Make ino a grub_uint32_t rather than int.
12076 (grub_jfs_blkno): Use 64-bit quantities for block sectors.
12077 (grub_jfs_read_inode): Likewise.
12078 (grub_jfs_opendir): Likewise. Remove now useless casts.
12079 (grub_jfs_getent): Likewise.
12080 Make ino a grub_uint32_t rather than int.
12081 (grub_jfs_mount): Ensure that blksize and log2_blksize are consistent.
12082 (grub_jfs_read_file): Use 64-bit quantities when necessary. Replace
12083 division and module with bit operations.
12084 (grub_jfs_find_file): Make ino a grub_uint32_t.
12085 (grub_jfs_lookup_symlink): Likewise. Use 64-bit quantities
12087 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
12089 * grub-core/normal/menu_entry.c (run): Quieten uninitialised
12090 warning. (This was in fact always initialised before use, but GCC
12091 wasn't smart enough to prove that.)
12092 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
12094 2011-03-31 Vladimir Serbinenko <phcoder@gmail.com>
12096 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_0): Preserve 16-byte
12098 (efi_wrap_1): Likewise.
12099 (efi_wrap_2): Likewise.
12100 (efi_wrap_3): Likewise.
12101 (efi_wrap_4): Likewise.
12102 (efi_wrap_5): Likewise.
12103 (efi_wrap_6): Likewise.
12104 (efi_wrap_10): Likewise.
12105 Based on information by: Red Hat/Peter Jones.
12107 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
12109 * grub-core/mmap/efi/mmap.c (grub_mmap_unregister): Remove
12110 set-but-not-used variable.
12112 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
12114 * docs/grub.texi (Simple configuration): Be more explicit about
12115 GRUB_DEFAULT, and add an example.
12116 Reported by: Leslie Rhorer.
12118 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
12120 * docs/grub.texi (Commands): Link to "GRUB only offers a rescue
12123 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
12125 * util/grub.d/10_linux.in: Add gentoo-specific config filename.
12126 * util/grub.d/20_linux_xen.in: Likewise.
12128 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
12130 * util/grub.d/10_linux.in: Try alternative config filenames where
12131 we parse config file.
12132 * util/grub.d/20_linux_xen.in: Likewise.
12134 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
12136 * util/grub.d/10_linux.in: Add gentoo-specific Linux and initrd names.
12137 * util/grub.d/20_linux_xen.in: Likewise.
12139 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
12141 * grub-core/disk/raid.c (insert_array): Add few potentially
12142 useful grub_util_info.
12143 (grub_raid_register): Likewise.
12145 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
12147 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev) [__linux__]:
12148 Preserve partition number in mdadm code path.
12150 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
12152 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Add
12153 few potentially useful grub_util_info.
12155 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
12157 * grub-core/disk/lvm.c (grub_lvm_scan_device): Remove spurious \n.
12159 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
12161 * docs/grub.texi (default): Use @example rather than nested
12162 itemized lists to avoid breaking gendocs.
12164 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
12166 * docs/grub.texi (Future): Update.
12168 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
12170 * docs/grub.texi (Environment): New chapter.
12171 (Changes from GRUB Legacy): Link to "Environment block" section for
12172 details of limitations.
12173 (Simple configuration): Likewise. Link to documentation of gfxmode
12174 and gfxpayload variables from GRUB_GFXMODE and GRUB_GFXPAYLOAD
12176 (Shell-like scripting): Note that normal variables are stored in the
12178 (gettext): Link to documentation of lang and locale_dir.
12179 (list_env): New section.
12180 (load_env): New section.
12181 (save_env): New section.
12183 (Reporting bugs): Fix typo.
12185 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
12187 * docs/grub.texi: Correctly use "terminal_input" and not "terminal" in
12190 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
12192 * grub-core/term/at_keyboard.c (set_scancodes)
12193 [!GRUB_MACHINE_MIPS_YEELOONG && !GRUB_MACHINE_QEMU]: Use scancode set 1.
12195 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
12197 * docs/grub.texi (Menu-specific commands): Remove some semantics
12198 that were true in GRUB Legacy but not in GRUB 2.
12199 (submenu): New section.
12200 (false): New section.
12201 (read): New section.
12202 (true): New section.
12204 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
12206 * docs/grub.texi (Changes from GRUB Legacy): Minor proofreading.
12208 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
12210 * docs/grub.texi (Simple configuration): Explain some of the
12211 current limitations of grub-mkconfig.
12212 Reported by: Leslie Rhorer.
12214 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
12216 Old macs search for boot.efi rather than for bootia32.efi.
12218 * util/grub-install.in: Copy bootia32.efi to boot.efi.
12219 * util/grub-mkrescue.in: Likewise.
12220 Suggested by: Peter Jones.
12222 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
12224 * util/grub.d/20_linux_xen.in: Accept old-style xen kernels.
12226 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
12228 * include/grub/lvm.h (grub_lvm_lv): New field 'visible'.
12229 (grub_lvm_segment): New fields 'type', 'mirror_count' and 'mirrors'.
12230 (grub_lvm_mirror): New struct.
12231 * grub-core/disk/lvm.c (grub_lvm_checkvalue): Commented out.
12232 (grub_lvm_iterate): Iterate only visible volumes.
12233 (grub_lvm_read): Factor out to ..
12234 (read_lv): ... this. Support mirrors.
12235 (grub_lvm_read): New wrapper function.
12236 (grub_lvm_scan_device): Parse mirrors. Skip everything that isn't
12237 stripped or mirrored.
12239 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
12241 * util/grub.d/10_linux.in: Skip vmlinux-* on x86 platforms.
12243 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
12245 * docs/grub.texi (loopback): New section.
12247 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
12249 * grub-core/disk/loopback.c (GRUB_MOD_INIT): Stop documenting
12252 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
12254 * docs/grub.texi (BIOS installation): New section, partly based on
12255 previous text in other sections.
12256 (Installing GRUB using grub-install): Replace BIOS discussion with a
12258 (Images): Likewise.
12260 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
12262 * grub-core/kern/emu/hostdisk.c (find_partition_start)
12263 [HAVE_DIOCGDINFO]: Add safety checks.
12265 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
12267 * util/grub.d/10_kfreebsd.in: Allow ufs.ko to be missing as it's
12268 per default compiled in kernel and prior to 8.0 isn't shipped at all.
12270 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
12272 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): If
12273 real_sb->size is zero (e.g. RAID-0), get the disk size from
12274 real_sb->data_size instead.
12275 Fixes Ubuntu bug #743136.
12277 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
12279 * grub-core/normal/misc.c (grub_normal_print_device_info): Use correct
12280 printf clauses for printing size and start.
12282 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
12284 * grub-core/fs/ext2.c (grub_ext2_read_inode): Fix an overflow.
12285 Reported and tested by: Timothy Nikkel.
12287 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
12289 * grub-core/term/gfxterm.c (dirty_region_add): Move core part to ...
12290 (dirty_region_add_real): ... this.
12291 (dirty_region_add): Don't discard margin refresh when performing
12294 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
12296 * grub-core/lib/relocator.c (allocate_regstart)
12297 [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Avoid grub_dprintf since not all
12298 terminals are capabple of malloc-free operation.
12299 (allocate_inreg) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
12300 (malloc_in_range) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
12302 2011-03-29 Mario Limonciello <Mario_Limonciello@Dell.com>
12304 * util/grub-setup.c: Copy the partition table zone if floppy support
12305 is disabled, even if no partition table is found.
12307 Otherwise, the BIOS on Dell Latitude E series laptops will freeze
12308 during POST if an invalid partition table is contained in the PBR
12309 of the active partition when GRUB is installed to a partition.
12311 2011-03-28 Colin Watson <cjwatson@debian.org>
12313 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Remove stale
12316 2011-03-28 Colin Watson <cjwatson@debian.org>
12318 * grub-core/disk/raid.c (grub_raid_register): Adjust debug message
12319 to be specific about what kind of RAID device we're scanning for.
12321 2011-03-26 Seth Goldberg <seth.goldberg@oracle.com>
12323 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): Don't
12324 return freed string.
12326 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
12328 * grub-core/fs/iso9660.c (grub_iso9660_label): Rtrim the label.
12330 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
12332 Use libgeom on FreeBSD to detect partitions.
12334 * Makefile.util.def (grub-mkimage): Add LIBGEOM to ldadd.
12335 (grub-mkrelpath): Likewise.
12336 (grub-script-check): Likewise.
12337 (grub-editenv): Likewise.
12338 (grub-mkpasswd-pbkdf2): Likewise.
12339 (grub-fstest): Likewise.
12340 (grub-mkfont): Likewise.
12341 (grub-mkdevicemap): Likewise.
12342 (grub-probe): Likewise.
12343 (grub-setup): Likewise.
12344 (grub-ofpathname): Likewise.
12345 (grub-mklayout): Likewise.
12346 (example_unit_test): Likewise.
12347 (grub-menulst2cfg): Likewise.
12348 * grub-core/Makefile.core.def (grub-emu): Likewise.
12349 (grub-emu-lite): Likewise.
12350 * configure.ac: Check for -lgeom on FreeBSD and set LIBGEOM.
12351 * grub-core/kern/emu/hostdisk.c [FreeBSD]: Include libgeom.h. Don't
12352 define HAVE_DIOCGDINFO.
12353 (follow_geom_up) [FreeBSD]: New function.
12354 (find_partition_start) [FreeBSD]: Rewritten using follow_geom_up.
12355 (convert_system_partition_to_system_disk) [FreeBSD]: Likewise.
12356 (grub_util_biosdisk_get_grub_dev) [FreeBSD]: Use FreeBSD path
12357 unconditionally of HAVE_DIOCGDINFO.
12359 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
12361 Fix FreeBSD compilation problem.
12363 * grub-core/kern/emu/hostdisk.c (MAJOR) [FreeBSD]: New definition.
12364 (FLOPPY_MAJOR) [FreeBSD]: Likewise.
12366 2011-03-24 Colin Watson <cjwatson@ubuntu.com>
12368 * grub-core/video/fb/video_fb.c (grub_video_fb_get_info_and_fini):
12369 Switch back to page zero before loading a kernel, since some kernel
12370 drivers expect that.
12371 Thanks to: Felix Kuehling.
12373 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
12375 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_addr)
12376 [DEBUG_RELOCATOR]: Reuse grub_mm_check.
12377 (grub_relocator_alloc_chunk_align) [DEBUG_RELOCATOR]: Likewise.
12379 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
12381 * include/grub/mm.h (GRUB_MM_CHECK): Rename to ...
12382 (grub_mm_check): ... this. MAke a function-like macro and use GRUB_FILE.
12384 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
12386 * grub-core/lib/relocator.c (allocate_inreg): Avoid dprintf unless
12387 DEBUG_RELOCATOR is defined since gfxterm can't cope with output when
12388 malloc is disabled.
12390 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
12392 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Account
12393 for modules headers when counting the needed allocation size.
12395 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
12397 * grub-core/term/gfxterm.c (calculate_normal_character_width): Return 8
12398 if no ASCII character is found to prevent crash.
12400 2011-03-23 Alexander Kurtz <kurtz.alex@googlemail.com>
12402 * grub-core/video/bitmap.c (match_extension): Ignore case.
12404 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
12406 * grub-core/normal/menu_entry.c (init_line): Fix off-by-one error.
12408 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
12410 * grub-core/script/parser.y: Declare "time" as valid argument.
12412 2011-03-23 Peter Jones <pjones@redhat.com>
12414 Fix incorrect assert failure reporting.
12416 * grub-core/tests/example_functional_test.c (example_test): Add
12418 * grub-core/tests/lib/test.c (add_failure): Renamed to ...
12419 (failure_start): ...this. Check that malloc succeeded.
12420 Don't call xvasprintf. Return failure struct.
12421 (failure_append_vtext): New function.
12422 (failure_append_text): Likewise.
12423 (add_failure): Likewise.
12424 (grub_test_assert_helper): Likewise.
12425 * include/grub/test.h (grub_test_assert_helper): New declaration.
12426 (grub_test_assert): Macro rewritten.
12428 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
12430 * grub-core/normal/main.c (GRUB_MOD_INIT): Export pager variable.
12432 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
12434 * grub-core/lib/i386/pc/biosnum.c: Add missing include.
12436 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
12438 * grub-core/disk/usbms.c (grub_usbms_reset): Transform USB-style error
12439 into GRUB-style one.
12441 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
12443 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Return usb-style
12444 error and not grub_errno.
12445 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
12447 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
12449 * grub-core/bus/usb/uhci.c (grub_uhci_detect_dev): Return
12450 GRUB_USB_SPEED_NONE in case of failure and not the error code.
12452 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
12454 * grub-core/efiemu/i386/pc/cfgtables.c
12455 (grub_machine_efiemu_init_tables): Make declaration a prototype.
12456 * grub-core/loader/xnu.c (grub_xnu_lock): Likewise.
12457 (grub_xnu_unlock): Likewise.
12458 * grub-core/normal/cmdline.c (grub_cmdline_get/cl_set_pos_all): Likewise.
12460 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
12462 * grub-core/bus/usb/usb.c (attach_hooks): Make static.
12463 * grub-core/bus/usb/usbhub.c (hubs): Likewise.
12464 * grub-core/commands/hashsum.c (aliases): Likewise.
12465 * grub-core/commands/setpci.c (pci_registers): Likewise.
12466 * grub-core/disk/usbms.c (attach_hook): Likewise.
12467 * grub-core/fs/zfs/zfs.c (decomp_table): Likewise.
12468 (zio_checksum_table): Likewise.
12469 * grub-core/gettext/gettext.c (grub_gettext_msg_list): Likewise.
12470 * grub-core/gfxmenu/gfxmenu.c (cached_view): Likewise.
12471 * grub-core/lib/legacy_parse.c (legacy_commands): Likewise.
12472 * grub-core/lib/relocator.c (leftovers): Likewise.
12473 (extra_blocks): Likewise.
12474 * grub-core/loader/i386/bsd.c (relocator): Likewise.
12475 * grub-core/loader/i386/multiboot_mbi.c (modules): Likewise.
12476 (modules_last): Likewise.
12477 * grub-core/loader/i386/xnu.c (table_aliases): Likewise.
12478 (devices): Likewise.
12479 * grub-core/loader/multiboot_mbi2.c (modules): Likewise.
12480 (modules_last): Likewise.
12481 * grub-core/normal/auth.c (users): Likewise.
12482 * grub-core/normal/context.c (initial_menu): Likewise.
12483 (current_menu): Likewise.
12484 * grub-core/normal/crypto.c (crypto_specs): Likewise.
12485 * grub-core/term/serial.c (grub_serial_ports): Likewise.
12486 (grub_serial_terminfo_input_template): Likewise.
12487 (grub_serial_terminfo_output_template): Likewise.
12488 (grub_serial_terminfo_input): Likewise.
12489 (grub_serial_terminfo_output): Likewise.
12490 (registered): Likewise.
12491 * grub-core/term/usb_keyboard.c (attach_hook): Likewise.
12493 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
12495 * grub-core/video/bochs.c (grub_video_bochs_setup): Use
12496 grub_video_mode_type_t.
12497 * grub-core/video/cirrus.c (grub_video_cirrus_setup): Likewise.
12498 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Likewise.
12499 * grub-core/video/i386/pc/vga.c (grub_video_vga_setup): Likewise.
12501 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
12503 * util/grub-install.in: Correct the x86-64 name as x86_64.
12505 2011-03-11 Colin Watson <cjwatson@ubuntu.com>
12507 * grub-core/boot/i386/pc/lnxboot.S (real_code_2): Ensure that the
12508 initial chunk read from the kernel always includes GRUB's multiboot
12509 header, which is now outside the first sector.
12511 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
12513 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Page-align
12514 cached mmap_size, so that this works correctly when called multiple
12516 Reported by: Daniel Kahn Gillmor. Should fix Debian bug #616638.
12518 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
12520 * docs/grub.texi (Simple configuration): Tidy up formatting.
12522 2011-03-07 Szymon Janc <szymon@janc.net.pl>
12524 * grub-core/fs/zfs/zfs.c (zap_leaf_lookup):
12525 Set-but-not-used variable removed.
12527 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12529 Workaround yet another IEEE1275 bug.
12531 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
12532 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS.
12533 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate): Ignore
12534 adress_cells and size:cells if GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS
12536 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
12537 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS on powermacs.
12539 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12541 * grub-core/partmap/msdos.c (pc_partition_map_embed): Fix off by one
12544 2011-02-11 Colin Watson <cjwatson@ubuntu.com>
12546 * util/grub.d/20_linux_xen.in: Bail out early if linux_list is
12547 empty, since in that case we can only generate either nothing or a
12548 syntactically invalid configuration file.
12549 Reported by: Michal Suchanek. Fixes Debian bug #612898.
12551 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
12553 * docs/grub.texi (Kernel): Add reference to grub-mkrescue.
12554 (Making a GRUB bootable CD-ROM): Likewise.
12555 (Invoking grub-mkrescue): New section.
12556 Reported by: Yann Dirson. Fixes Debian bug #612585.
12558 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
12560 * util/grub-install.in: Remove unnecessary brackets from tr
12562 * util/grub.d/10_hurd.in: Likewise.
12563 * util/grub.d/10_kfreebsd.in: Likewise.
12564 * util/grub.d/10_linux.in: Likewise.
12565 * util/grub.d/20_linux_xen.in: Likewise.
12566 Reported by: Jamie Heilman. Fixes Debian bug #612564.
12568 2011-02-08 Colin Watson <cjwatson@ubuntu.com>
12570 * include/grub/file.h (not_easly_seekable): Rename to ...
12571 (not_easily_seekable): ... this. Update all users.
12573 2011-01-28 Colin Watson <cjwatson@ubuntu.com>
12575 * docs/grub.texi (Making a GRUB bootable CD-ROM): Update to describe
12578 2011-01-24 Vladimir Serbinenko <phcoder@gmail.com>
12580 * util/grub-mkimage.c (generate_image): Refuse to create the images
12581 bigger than the actual flash (512K) in Loongson machines. 512K is also
12582 the biggest chip supported by them.
12584 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
12586 * grub-core/kern/emu/getroot.c: Include config-util.h explicitly.
12588 2011-01-22 Anthony DeRobertis <anthony@derobert.net>
12590 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Check
12591 super_offset field.
12593 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
12595 * util/grub-install.in: Ignore install device on platforms
12596 where it doesn't make sense. Always use UUIDs except on pc, efi and
12598 Reported by: Daniel Kahn Gillmor.
12600 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
12602 * grub-core/bus/bonito.c (write_bases): Fix direction of the shift.
12604 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
12606 * grub-core/partmap/bsdlabel.c: Include grub/emu/misc.h and not grub/util/misc.h.
12607 (iterate_real): Don't rely on partition being non-NULL.
12609 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
12611 * grub-core/script/argv.c (round_up_exp): unsigned is 32-bit on all
12612 supported platforms. Put a compile time assert for this rather than
12613 generate a warning with 32-bit shift.
12615 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
12617 * grub-core/disk/scsi.c (grub_scsi_read): Fix binary and check and make
12618 logical expression more readable.
12620 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
12622 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of p->number
12623 even if some elements have a name.
12624 Reported by: Alexander GQ Gerasiov.
12626 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
12628 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Consider a
12629 path unreadable if `grub-probe -t abstraction' fails, for example if
12630 memberlist fails on an LVM volume group.
12631 Reported by: Darius Jahandarie.
12633 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
12635 * docs/grub.texi (Simple configuration): Document
12636 GRUB_PRELOAD_MODULES.
12638 2011-01-17 Colin Watson <cjwatson@ubuntu.com>
12640 * .bzrignore: Remove nonexistent grub-pbkdf2.
12642 2011-01-16 Vladimir Serbinenko <phcoder@gmail.com>
12644 * configure.ac: Bump version to 1.99~rc1.
12646 2011-01-15 Vladimir Serbinenko <phcoder@gmail.com>
12648 * util/grub-mkimage.c (generate_image): Check fwstart.img checksum
12651 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
12653 * grub-core/kern/mips/yeeloong/init.c (grub_machine_init): Init boot
12656 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
12658 * grub-core/Makefile.core.def (fwstart): Add lost LDFLAGS.
12660 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
12662 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Quote bootpath and
12665 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
12667 Fix compilation on cygwin.
12669 * conf/Makefile.common (STRIPFLAGS_KERNEL): Add -F elf32-i386 and
12670 -R .drectve on cygwin.
12671 * conf/i386-pc-cygwin-img-ld.sc: Merge rdata and pdata into data.
12672 * configure.ac: Use $(top_builddir) in TARGET_OBJ2ELF.
12673 (COND_CYGWIN): New condition.
12674 * grub-core/Makefile.am (%.mod): Set TARGET_OBJ2ELF.
12675 * grub-core/genmod.sh.in: Use ${TARGET_OBJ2ELF} and
12676 not @TARGET_OBJ2ELF@.
12677 * util/grub-pe2elf.c (write_symbol_table): Use pe_symtab->type and not
12678 type to determine whether aux is to be used.
12680 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
12682 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Use the
12683 realpath'ed device string.
12684 Handle floppy (somewhat).
12685 Issue error in unknown case rather than garbage.
12686 Reported by: Axel Beckert.
12688 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
12690 * util/grub.d/00_header.in (load_video): Handle the case when no video
12692 Thanks to: Axel Beckert.
12694 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
12696 * util/grub-mkfont.c (write_font_pf2): Use appropriate type for data
12697 variable. Fixes problem on big endian platforms.
12699 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
12701 * grub-core/Makefile.core.def (ieee1275_fb): Disable on sparc.
12702 It doesn't work well there.
12704 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
12706 * grub-core/normal/context.c (grub_env_context_close): Silence spurious
12708 * grub-core/normal/menu.c (grub_menu_execute_entry): Likewise.
12709 * grub-core/partmap/msdos.c (pc_partition_map_embed): Use unsigned
12712 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
12714 Use alias->path rather than buggy "canon".
12716 * grub-core/disk/ieee1275/ofdisk.c (ofdisk_hash_add_real): New function.
12717 (ofdisk_hash_add): New argument curcan. All users updated.
12719 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
12721 * configure.ac: Fall back to `true' if `makeinfo' does not exist.
12723 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
12725 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32): Apply
12726 loadmask before doing any calculations. Use correct type for offset.
12727 (grub_linux_load64): Likewise.
12729 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
12731 * util/grub-mklayout.c (console_grub_equivalences_shift): Terminate
12733 (console_grub_equivalences_unshift): Likewise.
12734 Reported by: Daniel Dehennin.
12736 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
12738 * grub-core/fs/i386/pc/pxe.c (set_mac_env): Export variable.
12739 (set_env_limn_ro): Likewise.
12740 (GRUB_MOD_INIT): Likewise.
12741 * grub-core/hook/datehook.c (GRUB_MOD_INIT): Likewise. Change to
12742 ARRAY_SIZE while on it.
12743 (GRUB_MOD_FINI): Change to ARRAY_SIZE.
12744 * grub-core/normal/context.c (grub_env_export): Move from here ...
12745 * grub-core/kern/env.c (grub_env_export): ... here.
12746 * grub-core/normal/context.c (grub_cmd_export): Skip exporting root and
12748 * grub-core/kern/main.c (grub_main): Export root and prefix.
12749 * include/grub/env.h (grub_env_export): Export.
12750 Reported by: Seth Goldberg.
12752 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
12754 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
12755 Take into account space used by ELF sections and multiboot palette.
12756 Reported by: Grégoire Sutre.
12758 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
12762 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
12764 Pass more appropriate video id to Linux.
12766 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Use
12767 grub_video_get_driver_id and variable gfxpayloadforcelfb to
12769 (grub_linux_boot): Rely on grub_linux_setup_video to fill have_vga and
12770 shift params->lfb_size.
12771 * include/grub/i386/linux.h: Make an enume out of have_vga values.
12773 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
12775 * util/grub-menulst2cfg.c: Add missing include of misc.h.
12777 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
12779 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Use comma as
12780 separator and pass bootpath/devid even if only one of them is available.
12781 Reported by: Seth Goldberg.
12783 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
12785 Don't use post-4G memory on EFI even if 64-bit since some non-compliant
12786 implementations bug on them.
12788 * grub-core/kern/efi/mm.c (grub_efi_allocate_pages): Skip post-4G
12790 (filter_memory_map): Likewise.
12792 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
12794 * util/grub-kbdcomp.in: Add missing prefix and exec_prefix variables.
12795 Reported by: nebuchadnezzar.
12797 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
12799 * util/grub-kbdcomp.in: Add missing transform and bindir variables.
12800 Reported by: nebuchadnezzar.
12802 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
12804 Submenu default support.
12806 * grub-core/normal/menu.c (grub_menu_execute_entry): New parameter
12807 auto_boot. All users updated.
12809 Handle chosen and default with submenus.
12810 (grub_menu_execute_with_fallback): Declared static.
12811 Don't notify failure if autobooted. Upper level does it.
12812 (menuentry_eq): New function.
12813 (get_entry_number): Use menuentry_eq.
12814 (show_menu): New parameter "autobooted". All users updated.
12815 (grub_show_menu): Likewise.
12816 * include/grub/normal.h (grub_show_menu): Likewise.
12817 * include/grub/menu.h (grub_menu_execute_entry): Removed.
12818 (grub_menu_execute_with_fallback): Likewise.
12820 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
12822 * util/grub-mklayout.c (usage): Update help text.
12824 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
12826 * grub-core/commands/legacycfg.c (legacy_file): Trim the line.
12828 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
12830 * util/grub-menulst2cfg.c (main): Trim the line.
12832 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
12834 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): Removed.
12835 (grub_machine_init): Don't check amount of low memory as reportedly
12836 INT 12h can be broken and if low memory is too low we wouldn't have
12837 gotten into grub_machine_init anyway.
12839 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
12841 * grub-core/kern/i386/pc/mmap.c (grub_get_conv_memsize): New function.
12842 (grub_machine_mmap_iterate): Take low memory into account
12844 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
12846 * grub-core/fs/btrfs.c (grub_btrfs_mount): Transform out of range into
12848 Reported by: TiCPU.
12850 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
12852 * grub-core/disk/raid.c (insert_array): Display RAID name in duplicate
12855 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
12857 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): New function.
12858 (netbsd_entry): Use netbsd_load_fs_module() to load filesystem module.
12860 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
12862 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Handle
12863 openbsd and netbsd types being in part_bsd module.
12865 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
12867 * config.h.in (_LARGEFILE_SOURCE): Add missing define.
12868 (_FILE_OFFSET_BITS): Likewise.
12869 Reported by: Seth Goldberg.
12871 2011-01-08 Grégoire Sutre <gregoire.sutre@gmail.com>
12873 * configure.ac: Check for libdevmapper header.
12875 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
12877 * grub-core/fs/zfs/zfs.c (dmu_read): Use void * for some pointers to
12879 (fzap_lookup): Likewise.
12880 (dnode_get): Likewise.
12881 (make_mdn): Likewise.
12882 (zfs_mount): Likewise.
12883 (fzap_iterate): Use temporary pointer to avoid aliasing.
12884 (grub_zfs_read): Likewise.
12885 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Likewise.
12886 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel): Use void * for some
12887 pointers to avoid aliasing.
12888 (grub_cmd_xnu_kernel64): Likewise.
12889 (grub_xnu_load_driver): Likewise.
12891 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
12893 * grub-core/commands/terminal.c (grub_cmd_terminal_input): Silence
12895 (grub_cmd_terminal_output): Likewise.
12896 Reported and tested by: Grégoire Sutre.
12898 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
12900 * grub-core/term/at_keyboard.c (grub_keyboard_getkey): Silence spurious
12902 Reported and tested by: Grégoire Sutre.
12904 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
12906 * configure.ac: Do CPU substitution even if it's specified explicitly.
12907 Reported and tested by: Alain Greppin.
12909 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
12911 * grub-core/Makefile.am (rs_decoder.S): Force compilation with -Os.
12912 Reported and tested by: Alain Greppin.
12914 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
12916 Satisfy some bison versions need for inttypes.h.
12918 * grub-core/lib/posix_wrap/inttypes.h: New file.
12919 * grub-core/lib/posix_wrap/sys/types.h (int8_t): New type.
12920 (int16_t): Likewise.
12921 (int32_t): Likewise.
12922 (int64_t): Likewise.
12923 Reported and tested by: Alain Greppin.
12925 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
12927 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta):
12928 Silence spurious warning.
12929 Reported and tested by: Alain Greppin.
12931 2011-01-07 Szymon Janc <szymon@janc.net.pl>
12933 * docs/grub.texi (Support automatic decompression): Update with xz
12934 decompression support.
12936 2011-01-07 Szymon Janc <szymon@janc.net.pl>
12938 Improve loaders' kernel command line handling.
12940 * grub-core/lib/cmdline.c: New file.
12941 * include/grub/lib/cmdline.h: Likewise.
12942 * grub-core/loader/i386/linux.c (grub_cmd_linux): Use
12943 grub_create_loader_cmdline to create kernel command line.
12944 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
12945 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Likewise.
12946 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_linux): Likewise.
12947 * grub-core/Makefile.core.def (linux16): Add lib/cmdline.c on i386_pc.
12948 (linux): Add lib/cmdline.c on common.
12950 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
12952 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Take into account that
12953 inopos might be unaligned.
12955 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
12957 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
12958 endian transformations.
12959 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
12960 Based on report by: Doug Nazar.
12962 2011-01-07 Doug Nazar <nazard.michi@gmail.com>
12964 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Add missing
12965 array->members[i].start_sector.
12966 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
12968 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
12970 * util/grub-setup.c (setup): Handle NetBSD and OpenBSD disklabels.
12971 Reported and tested by: Grégoire Sutre.
12973 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
12975 * tests/util/grub-shell.in: Set serial terminfo type to `dumb', to
12976 avoid causing test failures by clearing the screen.
12978 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
12980 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
12981 Fix prefix check to handle the case where dir ends with a slash
12982 (most significantly, "/" itself).
12983 Reported by: Michael Vogt.
12985 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
12987 Run terminfo_cls on initing terminfo output to clear the screen and
12988 move the cursor to (0,0).
12990 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_init_output):
12991 Call grub_terminfo_output_init.
12992 * grub-core/term/serial.c (grub_serial_term_output): Set .init.
12993 * grub-core/term/terminfo.c (grub_terminfo_output_init): New function.
12994 * include/grub/terminfo.h (grub_terminfo_output_init): New declaration.
12996 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
12998 * util/grub-install.in: Determine ofpathname, nvsetenv and efibootmgr
13001 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
13003 * grub-core/term/terminfo.c (grub_terminfo_readkey): Handle keys with
13006 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
13008 The E820 type 5 is BADRAM, not EXEC_CODE.
13010 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
13011 (GRUB_E820_BADRAM): New define.
13012 * grub-core/loader/i386/linux.c (grub_linux_boot): Translate code
13013 into reserved. Propagate BADRAM.
13014 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
13015 (GRUB_E820_BADRAM): New define.
13017 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
13019 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_fill_events):
13020 Ignore the memory post-4G.
13021 (grub_relocator_firmware_alloc_region): Additional debug statement.
13023 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
13025 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Check md/%s
13027 Reported by: David Pravec.
13029 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
13031 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Workaround buggy
13034 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
13036 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy):
13038 (grub_reed_solomon_recover): Likewise.
13040 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
13042 * grub-core/lib/reed_solomon.c (main) [TEST]: Reactivate normal test.
13044 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
13046 * grub-core/lib/reed_solomon.c (scratch) [! STANDALONE]: Remove leftover
13049 2011-01-04 Colin Watson <cjwatson@ubuntu.com>
13051 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Fix typo in
13052 descriptions of extract_legacy_entries_source and
13053 extract_legacy_entries_configfile.
13054 Reported by: Seung Soo, Ha.
13056 2011-01-03 Colin Watson <cjwatson@ubuntu.com>
13058 * grub-core/bus/pci.c (grub_pci_iterate): Skip remaining functions
13059 on devices that do not implement function 0.
13061 2011-01-03 Dave Vasilevsky <dave@vasilevsky.ca>
13063 * grub-core/fs/hfsplus.c: Make parent unsigned.
13064 (grub_hfsplus_cmp_catkey): Don't compare using subtraction, it
13066 (grub_hfsplus_cmp_extkey): Likewise
13068 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
13070 * util/grub-install.in: Correctly use bootloader_id and not
13071 GRUB_DISTRIBUTOR on efibootmgr line.
13073 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
13075 * util/grub-mkfont.c (main): Report errors in FT_New_Face.
13077 2010-12-31 Ian Campbell <ijc@hellion.org.uk>
13079 * util/grub.d/20_linux_xen.in (linux_entry): Correctly capitalize
13080 Xen and reorder menu item wording to make it clearer that this entry
13081 will launch Xen. Print separate messages when loading Xen and
13084 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
13086 * grub-core/partmap/amiga.c (GRUB_AMIGA_PART_MAGIC): New define.
13087 (amiga_partition_map_iterate): Check "PART" magic to avoid a very long
13088 loop in case of incorrect amiga partmap.
13090 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
13092 * grub-core/partmap/amiga.c (GRUB_AMIGA_RDSK_MAGIC): New define.
13093 (amiga_partition_map_iterate): Use grub_memcmp instead of grub_strcmp.
13096 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
13098 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Silence
13100 Reported by: crocket
13102 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
13104 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel) [! GRUB_MACHINE_EFI]:
13106 (grub_cmd_xnu_kernel64) [! GRUB_MACHINE_EFI]: Likewise.
13108 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
13110 * grub-core/loader/xnu.c (grub_cmd_xnu_kext): Abort if no kernel
13112 (grub_cmd_xnu_kextdir): Likewise.
13113 (grub_cmd_xnu_splash): Likewise.
13115 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
13117 Avoid using Reed-Solomon with 0 redundancy.
13119 * grub-core/kern/i386/pc/startup.S: Remove 0-data check.
13120 * grub-core/lib/reed_solomon.c (decode_block): Do not proceed on 0 data
13122 (grub_reed_solomon_add_redundancy): Do not proceed with 0 redundancy.
13123 (grub_reed_solomon_recover): Likewise.
13125 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
13127 Don't use disk subsystem in freebsd_boot.
13129 * grub-core/loader/i386/bsd.c (freebsd_bootdev): New variable.
13130 (freebsd_biosdev): Likewise.
13131 (grub_freebsd_boot): Use freebsd_bootdev and freebsd_biosdev.
13132 (grub_cmd_freebsd): Set freebsd_bootdev and freebsd_biosdev.
13134 2010-12-26 Vladimir Serbinenko <phcoder@gmail.com>
13136 Handling of files of unknown size is currently limited. They can't be
13137 used e.g. for initrd or modules. Moreover gzip handling of not
13138 easily seekable files is buggy. Disable unknown file size for now. May
13139 be inefficient but works.
13141 * grub-core/io/gzio.c (test_header): Always retrieve the file size.
13142 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
13144 2010-12-25 Mirko Parthey <mirko.parthey@informatik.tu-chemnitz.de>
13146 * grub-core/boot/i386/pc/boot.S: Fix %es:%bx pointing to nowhere on
13149 2010-12-25 Jeroen Dekkers <jeroen@dekkers.ch>
13151 * grub-core/disk/raid.c (insert_array): Don't add spurious members.
13153 2010-12-25 Shea Levy <shlevy>
13155 * grub-core/genmod.sh.in: Use @OBJCOPY@ rather than objcopy.
13157 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
13159 * util/grub.d/30_os-prober.in: Don't emit drivemap directive for
13160 Windows Server 2008.
13161 Reported by: Devin Giddings.
13163 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
13165 * grub-core/commands/acpihalt.c (grub_acpi_halt): Sleep for 1.5 before
13166 writing an error message because of async power management.
13167 * grub-core/kern/mips/yeeloong/init.c (grub_halt): Likewise.
13168 (grub_reboot): Likewise.
13170 2010-12-23 Jordan Uggla <jordan.uggla@gmail.com>
13172 * tests/util/grub-shell.in: Suppress "ACPI shutdown failed" error to
13173 keep unit tests from failing when they shouldn't.
13175 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
13177 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): The
13178 previous patch increased the size of the RS code by 20 bytes (at
13179 least with gcc-4.4), so increase this by 20 bytes to match.
13180 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
13182 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
13184 * grub-core/lib/reed_solomon.c (gauss_solve): Fix size of standalone
13185 scratch area. Make sure to initialise chosen in standalone mode as
13186 well as non-standalone.
13187 Reported by: Robert Hooker and Andy Whitcroft.
13188 Tested by: Andy Whitcroft.
13190 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
13192 * grub-core/commands/echo.c (grub_cmd_echo): Make UTF-8-clean by
13193 constructing a new unescaped string and passing it to grub_xputs in
13194 one go, rather than passing characters to grub_printf one at a time.
13196 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
13198 * grub-core/fs/udf.c (read_string): Pacify GCC warning by
13199 initialising utf16.
13201 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
13203 * util/grub-mkconfig_lib.in (gettext_quoted): Add clarifying
13204 comment. Add an extra layer of quotation, requiring the output of
13205 this function to be used in a printf format string.
13206 (gettext_printf): New function.
13207 * util/grub.d/10_hurd.in: Use gettext_printf where appropriate.
13208 Extract translatable strings from here-documents and use a temporary
13209 variable instead, so that xgettext can find them.
13210 * util/grub.d/10_kfreebsd.in: Likewise.
13211 * util/grub.d/10_linux.in: Likewise.
13212 * util/grub.d/20_linux_xen.in: Likewise.
13214 * po/grub.d.sed: New file.
13215 * po/Makefile.in.in ($(DOMAIN).pot-update): Extract gettext_printf
13216 arguments. Set c-format flags on all strings extracted from
13217 util/grub.d/ (xgettext refuses to include these itself for strings
13218 it extracted from a shell file, but these really are c-format).
13220 2010-12-20 Vladimir Serbinenko <phcoder@gmail.com>
13222 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_add_module):
13223 Avoid next pointing to nowhere.
13225 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
13227 * grub-core/fs/affs.c (grub_affs_mount): Read data->bblock.rootblock
13228 rather than assuming than rootblock is exactly in the middle.
13229 (grub_affs_label): Likewise.
13231 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
13233 * grub-core/fs/affs.c (grub_affs_fs) [GRUB_UTIL]: Explicitly set
13234 reserved_first_sector to 0.
13235 * grub-core/fs/cpio.c (grub_cpio_fs) [GRUB_UTIL]: Likewise.
13236 * grub-core/fs/sfs.c (grub_sfs_fs) [GRUB_UTIL]: Likewise.
13237 * grub-core/fs/xfs.c (grub_xfs_fs) [GRUB_UTIL]: Likewise.
13239 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
13241 Fix handling of UTF-16 UDF labels.
13243 * grub-core/fs/udf.c (grub_udf_iterate_dir): Move string-parsing part
13244 (read_string): .. here.
13245 (grub_udf_label): Use read_string.
13247 2010-12-19 BVK Chaitanya <bvk.groups@gmail.com>
13249 * grub-core/normal/menu_entry.c (run): Execute commands from menu
13250 editor under argument scope.
13251 Reported by: Jordan Uggla
13253 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
13255 * util/grub-mkfont.c (main): Handle errors from FT_Set_Pixel_Sizes.
13257 2010-12-18 Colin Watson <cjwatson@ubuntu.com>
13259 * grub-core/normal/term.c (print_more): Make \r or \n scroll one
13260 line, and other keys scroll an entire page (previous handling was
13261 for \r and \n to scroll a page and other keys to scroll two lines).
13263 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
13265 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
13266 Set ptrdest to correct get_physical_target_address rather than
13267 incorrect get_virtual_current_address.
13269 2010-12-18 kashyap garimella <garimella.kashyap@gmail.com>
13271 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_load): Use
13272 correct cat to grub_uint8_t * rather than grub_uint32_t *.
13274 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
13276 * .bzrignore: Ignore grub-core/rs_decoder.S.
13278 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
13280 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Factor out
13281 .mo/.mo.gz opening sequence to ...
13282 (grub_mofile_open_lang): ... here.
13283 (grub_gettext_init_ext): If opening ll_CC fails, try ll.
13284 * util/grub.d/00_header.in (grub_lang): Include country part of
13286 Reported by: Mario Limonciello.
13288 2010-12-09 Robert Millan <rmh@gnu.org>
13290 * NEWS: Document addition of ZFS support.
13292 2010-12-04 Colin Watson <cjwatson@ubuntu.com>
13294 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Use `>> 1'
13295 rather than `/ 2', as the latter requires -Wa,--divide which would
13296 require bumping our minimum binutils version.
13298 2010-12-03 BVK Chaitanya <bvk.groups@gmail.com>
13300 * util/grub-script-check.c (main): Print script line number on
13303 2010-12-01 Robert Millan <rmh@gnu.org>
13305 * grub-core/fs/zfs/zfs.c: New file.
13306 * grub-core/fs/zfs/zfs_fletcher.c: Likewise.
13307 * grub-core/fs/zfs/zfs_lzjb.c: Likewise.
13308 * grub-core/fs/zfs/zfs_sha256.c: Likewise.
13309 * grub-core/fs/zfs/zfsinfo.c: Likewise.
13311 * include/grub/zfs/dmu.h: Likewise.
13312 * include/grub/zfs/dmu_objset.h: Likewise.
13313 * include/grub/zfs/dnode.h: Likewise.
13314 * include/grub/zfs/dsl_dataset.h: Likewise.
13315 * include/grub/zfs/dsl_dir.h: Likewise.
13316 * include/grub/zfs/sa_impl.h: Likewise.
13317 * include/grub/zfs/spa.h: Likewise.
13318 * include/grub/zfs/uberblock_impl.h: Likewise.
13319 * include/grub/zfs/vdev_impl.h: Likewise.
13320 * include/grub/zfs/zap_impl.h: Likewise.
13321 * include/grub/zfs/zap_leaf.h: Likewise.
13322 * include/grub/zfs/zfs.h: Likewise.
13323 * include/grub/zfs/zfs_acl.h: Likewise.
13324 * include/grub/zfs/zfs_znode.h: Likewise.
13325 * include/grub/zfs/zil.h: Likewise.
13326 * include/grub/zfs/zio.h: Likewise.
13327 * include/grub/zfs/zio_checksum.h: Likewise.
13329 * Makefile.util.def: Build ZFS into libgrubmods.
13330 * grub-core/Makefile.core.def: Build zfs.mod.
13332 2010-11-30 Szymon Janc <szymon@janc.net.pl>
13334 * grub-core/commands/regexp.c (grub_cmd_regexp): Remove unused
13336 * grub-core/commands/wildcard.c (match_files): Likewise.
13338 2010-11-30 Robert Millan <rmh@gnu.org>
13340 * grub-core/loader/i386/bsd.c
13341 (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module_elf): Check
13342 whether kernel is loaded using grub_loader_is_loaded(), rather
13343 than `kernel_type', which may still be `KERNEL_TYPE_NONE' under
13344 certain error conditions.
13346 2010-11-30 Robert Millan <rmh@gnu.org>
13348 * grub-core/commands/echo.c: Include `<grub/term.h>'.
13349 (grub_cmd_echo): Call grub_refresh() after printing a message.
13351 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
13353 Avoid using tricks for initialising endian variables.
13355 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot):
13357 (GRUB_MOD_INIT): Don't byte-swap.
13358 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
13359 Use grub_cpu_to_le16_compile_time and grub_cpu_to_le32_compile_time.
13360 * include/grub/types.h (grub_swap_bytes16_compile_time): New macro.
13361 (grub_swap_bytes32_compile_time): Likewise.
13362 (grub_cpu_to_le32_compile_time): Likewise.
13363 (grub_cpu_to_le16_compile_time): Likewise.
13365 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
13367 * util/grub-setup.c (setup): Stop recommending --force. People who
13368 understand the dangers of blocklists are able to find this option
13369 anyway and the ones who don't shouldn't use it anyway.
13371 2010-11-26 Robert Millan <rmh@gnu.org>
13373 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN): Beautify.
13376 2010-11-26 Colin Watson <cjwatson@ubuntu.com>
13378 Fix LVM-on-RAID probing.
13380 * util/grub-probe.c (probe): Remember which disk was detected as
13381 RAID (perhaps an LVM physical volume). Use that disk's raidname
13382 rather than that of the top-level disk.
13384 2010-11-25 BVK Chaitanya <bvk.groups@gmail.com>
13386 Fix cmdline argument quotes for setparams command of menuentry
13389 * grub-core/commands/menuentry.c (setparams_prefix): Use single
13390 quotes for arguments.
13391 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Use
13392 grub_strchrsub function instead.
13394 * include/grub/misc.h (grub_strchrsub): New function.
13396 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
13398 * util/deviceiter.c (grub_util_iterate_devices): Save a bit of
13399 effort by skipping "." and ".." entries up-front.
13400 Suggested by: Michael Lazarev.
13402 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
13404 * grub-core/Makefile.core.def (xz_decompress): Move -lgcc from
13405 ldflags to ldadd, to fix link line ordering.
13406 (none_decompress): Likewise.
13408 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
13410 * grub-core/Makefile.core.def (kernel): Add kern/emu/cache.S for emu
13412 (grub-emu-lite): Remove kern/emu/cache.S.
13414 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
13416 * util/deviceiter.c (compare_devices): If the by-id link for a
13417 device couldn't be resolved, fall back to sorting by the by-id link
13418 rather than segfaulting.
13419 Reported and tested by: Daniel Mierswa.
13421 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
13423 * Makefile.util.def (grub-menulst2cfg): List libraries in ldadd, not
13424 ldflags, to fix link line ordering.
13426 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
13428 * grub-core/Makefile.am (gentrigtables): Put -lm after $<; some
13429 linkers are picky about this.
13431 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
13433 * grub-core/Makefile.am (command.lst): Adjust sed expression
13434 ordering so that extended and priority commands aren't treated as
13437 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
13439 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
13440 Remove byte-swapping function calls, which are not valid in
13441 structure initialisers.
13442 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot): Make
13444 (GRUB_MOD_INIT): Byte-swap data1, data2, and data3 fields of
13445 grub_gpt_partition_type_bios_boot.
13447 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
13449 Fix test program build on GNU/kFreeBSD.
13451 * Makefile.util.def (example_unit_test): Add `$(LIBZFS)
13452 $(LIBNVPAIR)' library dependencies.
13454 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
13456 * util/grub-install.in: Fix parsing of --grub-mkrelpath= option.
13458 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
13460 * util/grub-install.in: Remove excessive quoting that broke
13461 installations to RAID devices.
13463 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
13465 * grub-core/loader/i386/linux.c (grub_cmd_linux): Pass correctly the
13466 bootloader version instead of 0.
13468 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
13470 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix spurious
13473 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
13475 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Don't try to
13476 retrieve the metadat sector if size isn't known.
13477 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
13479 2010-11-18 Robert Millan <rmh@gnu.org>
13481 * grub-core/fs/btrfs.c (grub_btrfs_mount): Replace grub_strncmp()
13482 with grub_memcmp().
13484 2010-11-18 Vladimir Serbinenko <phcoder@gmail.com>
13486 * grub-core/normal/menu_entry.c (print_up): Fix displacement of up
13488 Reported by: Jordan Uggla.
13490 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
13492 Make better UTF compliant.
13494 * grub-core/normal/charset.c (grub_utf8_to_utf16): Handle 6- and 7-byte
13495 sequences as incorrect.
13496 (grub_is_valid_utf8): Likewise.
13497 (grub_utf8_to_ucs4): Likewise.
13498 (grub_ucs4_to_utf8): Handle codepoints outside of BMP.
13499 (grub_ucs4_to_utf8_alloc): Likewise.
13500 * include/grub/charset.h (grub_utf16_to_utf8): Likewise.
13502 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
13504 Make legacy_source behave like source.
13506 * grub-core/commands/legacycfg.c (legacy_file): Don't call
13508 (grub_cmd_legacy_source): Call grub_show_menu if needed.
13510 2010-11-16 Colin Watson <cjwatson@debian.org>
13512 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-unused-parameter.
13513 (-Wunused implies -Wunused-parameter, but not vice versa).
13515 2010-11-16 Colin Watson <cjwatson@ubuntu.com>
13517 * configure.ac: Make error messages less confusing by testing for
13518 -Wtrampolines rather than -Wno-trampolines (since -Wno-* is always
13519 accepted, but produces a diagnostic if something else is wrong).
13521 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
13523 * grub-core/term/at_keyboard.c (grub_keyboard_controller_read)
13524 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: ifdef-ed out
13526 (grub_keyboard_controller_init)
13527 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: Don't attempt to
13528 read the initial state since controller isn't inited yet.
13530 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
13532 * grub-core/lib/relocator.c (malloc_in_range): Take into account that
13533 allocate_regbeg may need to create new chunk header.
13535 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
13537 Fix quoting in legacy parser.
13539 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Correctly handle
13541 (grub_legacy_parse): Likewise.
13542 Reported by: Jordan Uggla.
13543 Tested by: Jordan Uggla.
13545 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
13547 Don't add -lgcc on i386 and x86_64.
13549 * configure.ac (LIBS): Don't add -lgcc on i386 and x86_64.
13550 * conf/Makefile.common (LDADD_KERNEL): Likewise.
13551 * grub-core/Makefile.core.def (kernel): Use LDADD_KERNEL.
13553 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
13555 * configure.ac: Add -Wno-trampolines when supported.
13557 2010-11-14 Modestas Vainius <modax@debian.org>
13559 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Recognise ddf1_
13562 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
13564 Add generic logical block size support for UDF.
13566 * grub-core/fs/udf.c (GRUB_UDF_LOG2_BLKSIZE): Removed.
13567 (GRUB_UDF_BLKSZ): Removed.
13568 (struct grub_udf_data): New field "lbshift" to hold the logical block
13569 size of the file system in log2 format. All users updated.
13570 (sblocklist): Change type to unsigned.
13571 (grub_udf_mount): Change type of "sblklist" to unsigned.
13572 Move AVDP search before VRS recognition, because the latter requires
13573 knowledge of the logical block size, which is detected during the
13575 Detect and validate logical block size during AVDP search, adding
13576 support for block sizes 512, 1024 and 4096.
13577 Make VRS recognition independent of block size.
13579 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
13581 Properly handle deleted files on UDF.
13583 * grub-core/fs/udf.c (grub_udf_iterate_dir): Skip directory entries
13584 whose "characteristics" field has the bit GRUB_UDF_FID_CHAR_DELETED
13587 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
13589 Support reading files larger than 2 GiB.
13591 * grub-core/fs/udf.c (grub_udf_iterate_dir): Change type of variable
13592 "offset" to grub_off_t.
13593 (grub_udf_read_file): Likewise for parameter "pos".
13595 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
13597 * docs/grub.texi (Changes from GRUB Legacy): Note when save_env is
13599 (Simple configuration): Refer to Changes from GRUB Legacy about
13600 save_env availability.
13602 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
13604 * util/grub-install.in: Ignore empty partition table detection
13605 instead of trying to include part_ module.
13607 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
13609 * grub-core/disk/lvm.c (GRUB_MOD_FINI): Reset the vg_list. Fixes
13610 LVM on RAID support.
13612 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
13614 Properly define WORDS_BIGENDIAN in wrapped environments.
13616 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN): New
13618 * grub-core/lib/posix_wrap/sys/types.h (WORDS_BIGENDIAN): Likewise.
13620 Reported by: Manoel Rebelo Abranches.
13621 Tested by: Manoel Rebelo Abranches.
13623 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
13625 * util/grub-mkconfig.in: Fix quoting.
13627 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
13629 Support big ext2 files.
13631 * grub-core/fs/ext2.c (grub_ext2_inode): Rename dir_acl to size_high.
13632 (grub_ext2_read_block): Support triple indirect blocks.
13633 (grub_ext2_read_file): Use 64-bit types and read size_high.
13634 (grub_ext2_open): Read size_high.
13635 Reported by: Ximin Luo.
13636 Tested by: Manoel Rebelo Abranches.
13638 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
13640 * util/grub-install.in: Handle filenames containing spaces.
13641 Reported by: Jordan Uggla.
13642 Tested by: Jordan Uggla.
13644 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
13646 * util/grub-mkconfig.in (grub_script_check): New variable.
13647 Use grub_script_check instead of grub-script-check.
13648 Reported by: Barry Jackson.
13650 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
13652 * docs/grub.texi (menu): Correct the order.
13653 Reported by: D. Hugh Redelmeier.
13655 2010-11-12 Vladimir Serbinenko <phcoder@gmail.com>
13657 * grub-core/kern/i386/pc/startup.S (multiboot_trampoline): Add missing
13660 2010-11-08 Manoel Rebelo Abranches <mrabran@br.ibm.com>
13662 * include/grub/elfload.h (grub_elf32_size): New parameter.
13664 Return maximum segments alignment.
13665 (grub_elf64_size): Likewise.
13666 * kern/elf.c (grub_elf32_size): New parameter. All users updated.
13667 Return maximum segments alignment.
13668 (grub_elf64_size): Likewise.
13669 * grub-core/loader/powerpc/ieee1275/linux.c:
13670 (grub_linux_claimmap_iterate): New function. Uses the
13671 "available" property in the "memory" node for memory allocation
13672 for kernel in the PowerPC loader.
13673 (grub_linux_load32): Correctly find linux entry point offset.
13674 (grub_linux_load64): Likewise.
13676 2010-11-07 Robert Millan <rmh@gnu.org>
13678 On mips-yeeloong, build with -march=loongson2f when this flag is
13679 available (GCC >= 4.4).
13680 * conf/Makefile.common [COND_mips_yeeloong] (CFLAGS_PLATFORM): Remove
13682 * configure.ac: For mips-yeeloong, add -march=loongson2f if available,
13683 or otherwise add -march=mips3.
13685 2010-11-07 BVK Chaitanya <bvk.groups@gmail.com>
13687 Suppress shell expansion on echo '*' and echo "*" like cases.
13688 Reported by: Jordan Uggla.
13690 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
13691 string arguments before shell expansion.
13692 * tests/grub_cmd_echo.in: New testcases.
13694 2010-11-07 Robert Millan <rmh@gnu.org>
13696 * conf/mips-qemu-mips.rmk: Remove stale file from previous
13699 2010-11-07 Vladimir Serbinenko <phcoder@gmail.com>
13701 * grub-core/kern/emu/hostdisk.c
13702 (convert_system_partition_to_system_disk): Handle devices like "sdaa1".
13704 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
13706 * include/grub/emu/misc.h: Don't include grub/util/libzfs.h.
13707 * include/grub/emu/misc.h (grub_get_libzfs_handle): Move from here ...
13708 * include/grub/util/libzfs.h (grub_get_libzfs_handle): ... here.
13710 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
13712 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Make uppercase.
13714 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
13716 * util/grub-install.in: Replace useless recomendation to pass
13717 --modules with a recomendation to report a bug.
13719 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
13721 Properly register serial terminfo.
13722 Reported by: Jordan Uggla
13724 * grub-core/term/serial.c (grub_serial_terminfo_input_template): New
13726 (grub_serial_terminfo_output_template): Likewise.
13727 (grub_cmd_serial): Register "serial" with terminfo.
13728 (GRUB_MOD_INIT(serial)): Fill grub_serial_terminfo_input and
13729 grub_serial_terminfo_output.
13731 2010-11-05 Robert Millan <rmh@gnu.org>
13733 * util/grub-mkconfig.in: Remove gfxterm.mod probe (no longer
13736 2010-11-05 Robert Millan <rmh@gnu.org>
13738 On Yeeloong, pass machine type information to Linux.
13740 * grub-core/loader/mips/linux.c [GRUB_MACHINE_MIPS_YEELOONG]
13741 (LOONGSON_MACHTYPE): New macro, set to
13742 "machtype=lemote-yeeloong-2f-8.9inches".
13743 [LOONGSON_MACHTYPE] (grub_cmd_linux): Pass LOONGSON_MACHTYPE as
13744 additional argument to Linux.
13746 2010-11-04 Robert Millan <rmh@gnu.org>
13748 * util/deviceiter.c (grub_util_iterate_devices): Increase SCSI
13749 limit to 48 (to cope with Sun Fire X4500), and IDE limit to 96
13750 (its SATA disks are detected as slaveless IDE master drives on
13752 Reported by Carsten Aulbert.
13754 2010-11-02 Colin Watson <cjwatson@ubuntu.com>
13756 * util/bin2h.c (main): Fix spelling error in generated output.
13758 2010-11-01 Grégoire Sutre <gregoire.sutre@gmail.com>
13760 * grub-core/partmap/bsdlabel.c (iterate_real): Fix an integer overflow.
13762 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
13764 * grub-core/loader/i386/linux.c (grub_cmd_linux): Autoload vbe.mod if
13765 vga= option is supplied.
13767 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
13769 * util/grub.d/10_hurd.in: Don't call savedefault on recovery entries.
13770 * util/grub.d/10_kfreebsd.in: Likewise.
13771 * util/grub.d/10_linux.in: Likewise.
13772 * util/grub.d/20_linux_xen.in: Likewise.
13774 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
13776 * grub-core/lib/arg.c (grub_arg_parse): Avoid interpreting direct
13777 argument as an argument to no-argument option.
13779 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
13781 * util/grub.d/10_linux.in: Add missing load_video with explicit
13782 GRUB_GFXPAYLOAD_LINUX.
13784 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
13786 * Makefile.am (libgrub.pp): Propagate the libgrub.a split.
13788 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
13790 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Do not put
13791 elements with invlid index.
13792 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
13793 * grub-core/disk/raid.c (insert_array): Automatically reallocate
13795 * include/grub/raid.h (grub_raid_member): New struct.
13796 (grub_raid_array): Transform devices and start_sector into usage of
13797 grub_raid_member. All users updated
13798 (allocated_devs): New member.
13800 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
13802 * docs/man/grub-set-default.h2m: Clarify that only saved default entry
13805 2010-10-29 BVK Chaitanya <bvk.groups@gmail.com>
13807 NetBSD build fix for getline function conflict from gnulib.
13809 * Makefile.util.def (libgrubkern.a): New library for grub kernel
13810 components that depend on gnulib headers.
13811 (libgrubmods.a): Renamed from earlier libgrub.a.
13812 * conf/Makefile.common: Remove gnulib from *_LIBRARY flags.
13814 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
13816 * util/grub-setup.c (setup): Refuse to do a cross-disk embeddingless
13817 install rather than creating a broken install.
13819 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
13821 * util/grub-setup.c (argp): Remove misleading example of installing to
13824 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
13826 * util/grub-setup.c (setup): Clarify the error message.
13828 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
13830 * include/grub/types.h (grub_target_off_t): Removed no longer used type.
13832 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
13834 * grub-core/kern/emu/misc.c
13835 (grub_make_system_path_relative_to_its_root)
13836 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Fix mountpoint return on ZFS.
13838 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
13840 * grub-core/kern/emu/misc.c
13841 (grub_make_system_path_relative_to_its_root): Revert r2882.
13843 2010-10-22 Vladimir Serbinenko <phcoder@gmail.com>
13845 * grub-core/lib/relocator.c (grub_relocator_subchunk): Remove now
13846 useless field head. All users updated.
13847 (free_subchunk): Correct handling of IN_REGION subchunk.
13849 2010-10-22 Colin Watson <cjwatson@ubuntu.com>
13851 * docs/grub.texi (Installing GRUB using grub-install): Proofread.
13852 (Supported kernels): Likewise.
13854 2010-10-18 Grégoire Sutre <gregoire.sutre@gmail.com>
13856 Make mktemp invocations portable.
13858 * grub-core/genmod.sh.in: Use mktemp with an explicit template, and
13859 exit if mktemp fails.
13860 * tests/grub_script_blockarg.in: Likewise.
13861 * tests/partmap_test.in: Likewise.
13862 * tests/util/grub-shell-tester.in: Likewise.
13863 * tests/util/grub-shell.in: Likewise.
13864 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
13865 * Makefile.am: Likewise, and chain shell commands with `&&'
13867 * util/grub-mkrescue.in: Use the same explicit template as above, and
13868 exit if mktemp fails.
13870 2010-10-18 BVK Chaitanya <bvk.groups@gmail.com>
13872 * util/grub.d/10_linux.in: Fix built-in initramfs image mode for
13873 Linux kernel, reported by Dennis Schridde.
13875 2010-10-17 Szymon Janc <szymon@janc.net.pl>
13877 * grub-core/normal/auth.c (grub_auth_check_authentication):
13878 Set-but-not-used variable removed.
13880 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
13882 * docs/grub.texi (GNU/Linux): Document APM unavailability with
13883 32-bit linux protocol.
13885 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
13887 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Check
13888 cursor shape for sanity.
13890 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
13892 * docs/grub.texi (Installation): Document buggy BIOS install.
13894 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
13896 * docs/grub.texi (Installation): Indent.
13898 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
13900 * util/grub-setup.c (setup): New parameter allow_floppy.
13901 (arguments): New member allow_floppy.
13902 (argp_parser): Handle --allow-floppy.
13903 (main): Pass allow_floppy.
13904 * util/grub-install.in: New option --allow-floppy passed though to
13907 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
13909 * util/grub-install.in: Handle partitionless disks.
13911 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
13913 * util/grub-setup.c (setup): Don't clean blocklists before readability
13916 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
13918 * docs/grub.texi (Installation): Document embedding zone. Remove
13919 obsolete grub-install example.
13921 2010-10-16 Szymon Janc <szymon@janc.net.pl>
13923 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
13924 Set-but-not-used variable ifdef'ed.
13925 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Likewise.
13926 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Set-but-not-used
13928 * grub-core/disk/lvm.c (grub_lvm_scan_device): Likewise.
13929 * grub-core/fs/jfs.c (grub_jfs_find_file): Likewise.
13930 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
13931 * grub-core/fs/sfs.c (grub_sfs_read_extent): Likewise.
13932 * grub-core/fs/ufs.c (grub_ufs_dir): Likewise.
13933 * grub-core/gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
13934 * grub-core/gfxmenu/view.c (redraw_menu_visit): Likewise.
13935 * grub-core/gfxmenu/widget-box.c (draw): Likewise.
13936 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
13937 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta): Likewise.
13938 * grub-core/loader/i386/bsd_pagetable.c (fill_bsd64_pagetable):
13941 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
13943 * grub-core/commands/acpihalt.c (skip_ext_op): Skip index field op.
13944 * include/grub/acpi.h (GRUB_ACPI_EXTOPCODE_INDEX_FIELD_OP): New
13947 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
13949 * grub-core/commands/acpihalt.c (get_sleep_type): Accept \_S5_ as
13950 synonym to _S5_. Needed for some DSDTs.
13952 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
13954 Userspace ACPI parser debugging.
13956 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Include userspace
13957 headers and add relevant defines. Don't include standard headers.
13958 (main) [GRUB_DSDT_TEST]: New function.
13959 * include/grub/acpi.h [GRUB_DSDT_TEST]: Don't include standard headers.
13960 Don't declare functions.
13962 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
13964 Remove dead grub_efi_mm_fini.
13966 * grub-core/kern/efi/mm.c (allocated_page): Removed.
13967 (ALLOCATED_PAGES_SIZE): Likewise.
13968 (MAX_ALLOCATED_PAGES): Likewise.
13969 (allocated_pages): Likewise.
13970 (grub_efi_allocate_pages): Don't record allocated pages.
13971 (grub_efi_free_pages): Likewise.
13972 (grub_efi_mm_init): Likewise.
13973 (grub_efi_mm_fini): Removed.
13975 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
13977 * grub-core/kern/efi/mm.c (BYTES_TO_PAGES): Round up instead of down.
13978 (grub_efi_mm_init): Take into account the memory map size increase.
13980 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
13982 * grub-core/term/ns8250.c (do_real_config): Set port->broken to 0.
13983 (serial_hw_put): Wait based on real time rather than port reads. Don't
13985 * include/grub/serial.h (grub_serial_port): New field broken.
13987 2010-10-16 Robert Millan <rmh@gnu.org>
13989 * grub-core/kern/emu/misc.c
13990 (grub_make_system_path_relative_to_its_root): Fix premature return
13991 when processing non-root ZFS filesystems.
13992 Reported by Sergio Talens-Oliag.
13994 2010-10-15 Robert Millan <rmh@gnu.org>
13996 * util/grub.d/10_linux.in (list): Expand "vmlinu[zx]" instances to
13997 guarantee compressed ones are processed first.
13999 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
14001 * grub-core/efiemu/main.c (grub_efiemu_prepare): Handle errors from
14002 grub_efiemu_autocore.
14004 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
14006 * grub-core/kern/i386/pc/startup.S (bypass_table): Use 0x1b explicitly
14008 (grub_console_getkey): Use correct jae opcode rather than ja.
14010 2010-10-12 Robert Millan <rmh@gnu.org>
14012 * util/grub-mkconfig.in: Merge `GRUB_DISABLE_LINUX_RECOVERY' and
14013 `GRUB_DISABLE_NETBSD_RECOVERY' into a single `GRUB_DISABLE_RECOVERY'
14014 variable. All references updated.
14016 * util/grub.d/10_kfreebsd.in: Support recovery boot entries.
14018 2010-10-08 Vladimir Serbinenko <phcoder@gmail.com>
14020 Correctly distinguish mdraid flavours.
14022 * grub-core/disk/raid.c (grub_raid_getname) [GRUB_UTIL]: New function.
14023 (insert_array): New argument raid.
14024 * include/grub/disk.h (grub_disk_dev) [GRUB_UTIL]: New member raidname.
14025 * include/grub/raid.h (grub_raid_array) [GRUB_UTIL]: New member driver.
14026 * util/grub-probe.c (probe): PRint raidname instead of plainly "mdraid".
14028 2010-10-09 Vladimir Serbinenko <phcoder@gmail.com>
14030 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Fix incorrect
14031 handling of special keys.
14033 2010-10-02 Aleš Nesrsta <starous@volny.cz>
14035 * include/grub/scsi.h (grub_make_scsi_id): Fix incorrect usgae of
14036 GRUB_SCSI_ID_BUS_SHIFT instead of GRUB_SCSI_ID_LUN_SHIFT.
14038 2010-10-02 Aleš Nesrsta <starous@volny.cz>
14040 * grub-core/bus/usb/ohci.c (GRUB_OHCI_TDS): Increase.
14041 * grub-core/bus/usb/uhci.c (N_TD): New definition. All previous implicit
14043 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_setup_readwrite):
14044 Use right endpoint when querying descriptor.
14046 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
14048 Clear out 0x80 color bit on EFI.
14050 Reported by: decoder and meta tech.
14052 * grub-core/term/efi/console.c (grub_console_standard_color): Removed.
14053 (grub_console_setcolorstate): Clear out 0x80 bit.
14054 Use GRUB_TERM_DEFAULT_STANDARD_COLOR.
14055 (grub_console_output): Use GRUB_TERM_DEFAULT_NORMAL_COLOR.
14056 Use GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR.
14058 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
14060 * grub-core/loader/i386/linux.c (DEFAULT_VIDEO_MODE) [GRUB_MACHINE_EFI]:
14063 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
14065 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Avoid using
14066 mo_file after freeing.
14068 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
14070 * grub-core/normal/term.c (read_terminal_list): Free in a right order.
14072 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
14074 * grub-core/script/execute.c (grub_script_execute_sourcecode): Set
14077 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
14079 * util/grub-setup.c (main) [GRUB_MACHINE_IEEE1275]: Propagate argp
14082 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
14084 Put terminfo into core on ieee1275 and yeeloong (needed for console).
14086 * gentpl.py: New groups terminfoinkernel and terminfomodule.
14087 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include extcmd.h, arg.h
14088 and terminfo.h when needed.
14089 * grub-core/Makefile.core.def (kernel): Include term/terminfo.c,
14090 term/tparm.c, commands/extcmd.c, lib/arg.c on terminfokernel.
14091 (terminfo): Enable only on terminfokernel.
14092 (extcmd): Likewise.
14093 * include/grub/extcmd.h: Add missing EXPORT_FUNC.
14094 * include/grub/lib/arg.h: Likewise.
14095 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Fix
14096 incorrect usage of ->.
14098 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
14100 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi]
14101 [GRUB_MACHINE_EFI && __i386__]: Fix typo.
14103 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
14105 Fix coreboot compilation.
14107 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
14108 Take VBE info into account even if only text is supported.
14109 (fill_vbe_info): Take into account the case when only VGA text
14111 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): Set to zero
14112 on coreboot, multiboot and qemu.
14114 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
14116 * grub-core/lib/relocator.c (malloc_in_range): Trim too verbose
14118 (grub_relocator_prepare_relocs): Set movers_chunk.srcv.
14120 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
14122 * grub-core/loader/i386/bsd.c (grub_cmd_netbsd): Provide default serial
14125 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
14127 * grub-core/lib/arg.c (grub_arg_parse): Fix treating of all commands as
14128 if they were BSD-style.
14130 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
14132 * grub-core/boot/i386/pc/lnxboot.S: Replace
14133 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE with
14134 GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART.
14136 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
14138 Write embedding zone using Reed-Solomon.
14140 * Makefile.util.def (grub-setup): Add grub-core/lib/reed_solomon.c.
14141 * grub-core/Makefile.am (rs_decoder.S): New target.
14142 (kern/i386/pc/startup.S): Depend on rs_decoder.S.
14143 * grub-core/kern/i386/pc/startup.S (reed_solomon_redundancy): New field.
14144 (multiboot): Move to RS part.
14145 (post_reed_solomon): New label.
14146 (grub_boot_drive): Move to non-RS part since it's modified in memory
14148 Include rs_decoder.S.
14149 * grub-core/lib/reed_solomon.c: New file.
14150 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY):
14152 (GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE): Removed.
14153 (GRUB_KERNEL_I386_PC_RAW_SIZE): Updated.
14154 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): New definition.
14155 * include/grub/partition.h (grub_partition_map): Change prototype of
14156 embed to allow returning additional sectors.
14157 * include/grub/reed_solomon.h: New file.
14158 * util/grub-setup.c (setup): Handle Reed-Solomon.
14160 2010-09-28 Colin Watson <cjwatson@ubuntu.com>
14162 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
14163 i386 and x86-64 definedness tests.
14165 2010-09-27 Yves Blusseau <blusseau@zetam.org>
14167 Fix generation of kernel_syms.lst
14169 * grub-core/Makefile.am (kernel_syms.lst): Fix value and position of
14172 2010-09-26 Robert Millan <rmh@gnu.org>
14174 Support degraded ZFS arrays in "grub-probe -t device" resolution.
14176 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): When
14177 the pool is an array of devices, iterate through it and return the
14178 first device that passes a stat() test (instead of blindly returning
14181 2010-09-26 Robert Millan <rmh@gnu.org>
14183 Build fixes for GNU/kFreeBSD.
14185 * Makefile.util.def: Add `$(LIBZFS) $(LIBNVPAIR)' library dependencies
14186 to programs that require ZFS conversion.
14187 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Support
14188 kernels that don't have FLOPPY_MAJOR.
14190 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
14192 * grub-core/kern/emu/full.c (grub_emu_post_init): Fix typo.
14194 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
14196 Fix grub-emu build.
14198 * grub-core/kern/emu/main.c: Remove #include <getopt.h>.
14199 * grub-core/kern/emu/full.c: Split grub_mdraid_{init,fini} into
14200 mdraid09 and mdraid1x.
14202 2010-09-24 Colin Watson <cjwatson@ubuntu.com>
14204 Re-enable grub-extras.
14206 * autogen.sh: Create symlinks to ${GRUB_CONTRIB} if necessary to
14207 avoid confusing Automake. Run autogen only twice, once for the top
14208 level and once for grub-core. Add Makefile.util.def and
14209 Makefile.core.def from extra modules to the appropriate autogen
14210 invocations. If Makefile.common exists in an extra module, include
14211 it in both Makefile.util.am and grub-core/Makefile.core.am;
14212 similarly, include any Makefile.util.common file in Makefile.util.am
14213 and any Makefile.core.common file in grub-core/Makefile.core.am.
14214 * conf/Makefile.common ($(top_srcdir)/grub-core/Makefile.core.am):
14215 Depend on $(top_srcdir)/grub-core/Makefile.gcry.def.
14216 ($(top_srcdir)/grub-core/Makefile.gcry.def): Remove.
14217 * grub-core/Makefile.am: Remove inclusion of Makefile.gcry.am.
14219 * gentpl.py (gvar_add): Turn GVARS into a set.
14220 (global_variable_initializers): Sort global variables on output.
14221 (vars_init): New function.
14222 (first_time): Likewise.
14223 (library): Ensure that non-global variable initialisations are
14224 emitted before the first time we emit code for a library block.
14225 Append to variables rather than setting them. Only emit
14226 noinst_LIBRARIES, BUILT_SOURCES, and CLEANFILES the first time for
14227 each conditional path.
14228 (program): installdir() emits an Autogen macro, so must be passed to
14229 var_add rather than gvar_add.
14231 (script): Likewise.
14232 (rules): New function, centralising handling for different target
14233 types. Set up Guile association lists for first_time and vars_init,
14234 and send most output to a diversion so that variable initialisations
14235 can be emitted first.
14236 (module_rules): Use new rules function.
14237 (kernel_rules): Likewise.
14238 (image_rules): Likewise.
14239 (library_rules): Likewise.
14240 (program_rules): Likewise.
14241 (script_rules): Likewise.
14242 (data_rules): Likewise.
14244 * configure.ac: Add AC_PROG_LN_S, for the benefit of ntldr-img.
14246 * .bzrignore: Add contrib and grub-core/contrib. Remove
14247 grub-core/Makefile.gcry.am.
14249 2010-09-24 Yves Blusseau <blusseau@zetam.org>
14251 * grub-core/lib/LzFind.c: Add missing include.
14252 * grub-core/lib/LzmaEnc.c: Likewise.
14253 * grub-core/script/lexer.c: Likewise.
14254 * grub-core/script/yylex.l: Likewise.
14255 * util/grub-macho2img.c: Likewise.
14256 * util/grub-menulst2cfg.c: Likewise.
14257 * util/grub-mklayout.c: Likewise.
14258 * util/grub-mkpasswd-pbkdf2.c
14259 * util/grub-mkrelpath.c: Likewise.
14260 * util/resolve.c: Likewise.
14262 2010-09-24 BVK Chaitanya <bvk.groups@gmail.com>
14264 * Makefile.util.def (example_unit_test): Add
14265 grub-core/gnulib/libgnu.a.
14267 2010-09-23 Grégoire Sutre <gregoire.sutre@gmail.com>
14269 * grub-core/commands/acpihalt.c (get_sleep_type): Initialize prev.
14271 2010-09-23 Vladimir Serbinenko <phcoder@gmail.com>
14273 Support xz compression on yeeloong.
14275 * Makefile.util.def (grub-mkimage): Add $(LIBLZMA).
14276 * configure.ac: Check for LZMA.
14277 * grub-core/Makefile.core.def (xz_decompress): New target.
14278 (none_decompress): Likewise.
14279 * grub-core/boot/decompressor/minilib.c: New file.
14280 * grub-core/boot/decompressor/none.c: Likewise.
14281 * grub-core/boot/decompressor/xz.c: Likewise.
14282 * grub-core/kern/mips/cache.S: Change to noreorder nomacro.
14283 * grub-core/kern/mips/cache_flush.S: Likewise.
14284 * grub-core/kern/i386/pc/lzma_decode.S: Remove dead code.
14285 * grub-core/kern/mips/startup.S: Move first stage to ...
14286 * grub-core/boot/mips/startup_raw.S: ...here. Change to noreorder
14288 * grub-core/kern/mips/startup.S: Change to noreorder nomacro.
14289 * grub-core/lib/mips/relocator_asm.S: Change to noreorder nomacro.
14290 * grub-core/lib/xzembed/xz_dec_bcj.c [GRUB_EMBED_DECOMPRESSOR]:
14291 Allocate statically.
14292 * grub-core/lib/xzembed/xz_dec_lzma2.c [GRUB_EMBED_DECOMPRESSOR]:
14293 Allocate statically or use scratch. Don't check CRC32.
14294 * grub-core/lib/xzembed/xz_dec_stream.c [GRUB_EMBED_DECOMPRESSOR]:
14295 Allocate statically. Don't check CRC32.
14296 * include/grub/decompressor.h: New file.
14297 * include/grub/offsets.h (GRUB_KERNEL_MIPS_YEELOONG_RAW_SIZE):
14299 (GRUB_KERNEL_MIPS_YEELOONG_UNCOMPRESSED_SIZE): New field.
14300 (GRUB_KERNEL_MIPS_YEELOONG_TOTAL_MODULE_SIZE): Adjusted.
14301 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX): Likewise.
14302 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX_END): Likewise.
14303 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_SIZE): New define.
14304 * util/grub-mkimage.c (grub_compression_t): New type.
14305 (PLATFORM_FLAGS_DECOMPRESSORS): New flag.
14306 (image_target_desc): New field default_compression.
14307 (image_targets): Adjust yeeloong targets.
14308 (compress_kernel_xz) [HAVE_LIBLZMA]: New function.
14309 (compress_kernel): New parameter comp.
14310 (generate_image): Likewise. Handle new compression case.
14311 (options): New option --compression
14313 (main): Handle new option.
14315 2010-09-22 Grégoire Sutre <gregoire.sutre@gmail.com>
14317 * grub-core/kern/emu/hostdisk.c [__NetBSD__]: Define FLOPPY_MAJOR.
14319 2010-09-22 Colin Watson <cjwatson@ubuntu.com>
14321 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
14322 typo in __i386__ conditional.
14324 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
14326 * grub-core/loader/multiboot_mbi2.c (GRUB_MACHINE_EFI): Add missing
14329 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
14331 Implement EFI and ACPI multiboot2 extensions.
14333 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare
14334 new tags as supported.
14335 (acpiv2_size): New function.
14336 (grub_multiboot_get_mbi_size): Take new tags into account.
14337 (grub_multiboot_make_mbi): Add new tags.
14338 * include/grub/multiboot.h (GRUB_MACHINE_HAS_ACPI): New definition.
14340 2010-09-21 Aleš Nesrsta <starous@volny.cz>
14342 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach):
14343 Added missing configuration of USB device.
14345 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
14347 * grub-core/normal/menu_entry.c (run): Make sure we always return
14350 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
14352 * grub-core/commands/efi/lsefimmap.c (grub_cmd_lsefimmap):
14353 NumberOfPages is UINT64 according to the UEFI specification, not
14354 UINTN. Fix printf format.
14356 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
14358 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Change type of
14359 `err' to grub_usb_err_t.
14360 Reported and tested by: KESHAV P.R.
14362 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
14364 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Make
14365 tpart non-const, so that we can assign to it. (Since this is a
14366 typedef, the constness refers to the pointer rather than what it
14369 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
14371 * conf/Makefile.common (CPPFLAGS_GNULIB): Add
14372 $(top_srcdir)/grub-core/gnulib as well as
14373 $(top_builddir)/grub-core/gnulib.
14374 Reported by: KESHAV P.R.
14376 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
14378 * util/grub-install.in: Fix the bootloader ID option to be
14379 consistently --bootloader-id, not --bootloader_id.
14380 Reported by: KESHAV P.R.
14382 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
14384 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Make "Compute or
14385 check hash checksum." consistently translatable.
14387 2010-09-21 Yves Blusseau <blusseau@zetam.org>
14389 * conf/Makefile.common (CPPFLAGS_GNULIB): Replace $(top_srcdir) with
14392 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
14394 * grub-core/commands/hashsum.c (aliases): Add sha1sum alias.
14395 (GRUB_MOD_INIT): Register sha1sum command.
14396 (GRUB_MOD_FINI): Unregister sha1sum command.
14398 2010-09-21 Yves Blusseau <blusseau@zetam.org>
14400 Keep boot and grub directory names in sync with utils scripts
14402 * configure.ac: Define GRUB_BOOT_DIR_NAME and GRUB_DIR_NAME macros.
14403 * config.h.in: Add previous macros.
14404 * include/grub/emu/misc.h (DEFAULT_DIRECTORY): Use previous macros.
14405 * util/grub-install.in: Use $bootdir and $grubdir variables.
14407 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
14409 * grub-core/kern/emu/hostdisk.c (find_system_device): Only try to
14410 convert partition names to disk names if the new `convert' parameter
14412 (grub_util_biosdisk_get_grub_dev): If opening the disk device
14413 returns GRUB_ERR_UNKNOWN_DEVICE, treat the partition device as a
14414 disk in its own right. This can happen with Xen disk images.
14416 2010-09-21 Yves Blusseau <blusseau@zetam.org>
14418 * util/grub-editenv.c: Update strings to avoid warnings when generating
14420 * util/grub-setup.c: Likewise.
14422 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
14424 * configure.ac: Change version to 1.99~beta0.
14426 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
14428 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
14430 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap):
14432 * include/multiboot.h: Resynced with specification.
14433 * include/multiboot2.h: Likewise.
14435 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
14437 Fix po directory handling.
14439 * configure.ac: Create po/Makefile.in rather than po/Makefile.
14440 * grub-core/gnulib/Makefile.am: Import gettext module.
14441 * m4/gnulib-cache.m4: Likewise.
14442 * m4/gnulib-comp.m4: Likewise.
14443 * m4/gettext.m4: New file, from gnulib.
14444 * m4/glibc2.m4: Likewise.
14445 * m4/iconv.m4: Likewise.
14446 * m4/intdiv0.m4: Likewise.
14447 * m4/intl.m4: Likewise.
14448 * m4/intldir.m4: Likewise.
14449 * m4/intlmacosx.m4: Likewise.
14450 * m4/intmax.m4: Likewise.
14451 * m4/inttypes-pri.m4: Likewise.
14452 * m4/lcmessage.m4: Likewise.
14453 * m4/lib-ld.m4: Likewise.
14454 * m4/lib-link.m4: Likewise.
14455 * m4/lib-prefix.m4: Likewise.
14456 * m4/lock.m4: Likewise.
14457 * m4/nls.m4: Likewise.
14458 * m4/po.m4: Likewise.
14459 * m4/printf-posix.m4: Likewise.
14460 * m4/progtest.m4: Likewise.
14461 * m4/threadlib.m4: Likewise.
14462 * m4/uintmax_t.m4: Likewise.
14463 * m4/visibility.m4: Likewise.
14464 * po/Makefile.am: Remove.
14465 * po/Makefile.in.in: New file, from gettext.
14466 ($(DOMAIN).pot-update): Support POTFILES-shell.
14467 * po/Makevars: New file.
14468 * po/POTFILES-shell: Rename to ...
14469 * po/POTFILES-shell.in: ... this. Update.
14470 * po/POTFILES: Rename to ...
14471 * po/POTFILES.in: ... this. Update.
14472 * po/Rules-quot: New file, from gettext.
14473 * po/boldquot.sed: Likewise.
14474 * po/en@boldquot.header: Likewise.
14475 * po/en@quot.header: Likewise.
14476 * po/insert-header.sin: Likewise.
14477 * po/quot.sed: Likewise.
14478 * po/remove-potcdate.sin: Likewise.
14480 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
14482 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Use UUID when possible.
14484 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
14486 * util/grub.d/20_linux_xen.in: Use submenus.
14488 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
14492 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): New
14493 parameter submenu. All users updated.
14494 * grub-core/normal/main.c (free_menu): Rename to ...
14495 (grub_normal_free_menu): ... this. Made global.
14496 * grub-core/normal/menu.c (grub_menu_execute_entry): Open new context
14498 * grub-core/normal/menu_entry.c (screen): New field submenu.
14499 (make_screen): Set submenu.
14500 (run): Open new context if requested.
14501 * include/grub/menu.h (grub_menu_entry): New field submenu.
14502 * include/grub/normal.h (grub_normal_free_menu): New proto.
14504 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
14506 Menu entries extractor.
14508 * grub-core/commands/configfile.c (grub_cmd_source): Implement extractor
14510 (GRUB_MOD_INIT): Register new variants.
14511 (GRUB_MOD_FINI): Unregister new variants.
14512 * grub-core/commands/legacycfg.c (grub_cmd_legacy_configfile): Merge
14513 into grub_cmd_legacy_source.
14514 (grub_cmd_legacy_source): Implement extractor variants.
14515 (GRUB_MOD_INIT): Register new variants.
14516 (GRUB_MOD_FINI): Unregister new variants.
14517 * grub-core/commands/menuentry.c (grub_menu_init): Declare menuentry
14519 * grub-core/commands/search_wrap.c (GRUB_MOD_INIT): Declare
14520 search as an extractor.
14521 * grub-core/commands/test.c (GRUB_MOD_INIT): Declare
14522 test as an extractor.
14523 * grub-core/kern/corecmd.c (grub_register_core_commands): Declare set
14525 * grub-core/normal/context.c (grub_env_context_open): Reorganised.
14526 (grub_env_new_context): New function.
14527 (grub_env_context_open): Likewise.
14528 (grub_env_extractor_open): Likewise.
14529 (grub_env_extractor_close): Likewise.
14530 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
14531 grub_extractor_level.
14532 * include/grub/command.h (GRUB_COMMAND_FLAG_EXTRACTOR): New flag.
14533 * include/grub/env.h (grub_env_extractor_open): New proto.
14534 (grub_env_extractor_close): Likewise.
14535 * include/grub/normal.h (grub_extractor_level): New external variable.
14537 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
14539 Make cutmem accept a region specification.
14540 Suggested by: Samuel Thibault
14542 * grub-core/mmap/mmap.c (parsemem): New function.
14543 (grub_cmd_cutmem): Handle new arguments.
14545 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
14547 New command cutmem.
14549 * grub-core/mmap/mmap.c (grub_cmd_cutmem): New function.
14550 (GRUB_MOD_INIT): Register new command.
14551 (GRUB_MOD_FINI): Unregister new command.
14553 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
14555 Support some annoying BSD and Minix subpartitions.
14557 * Makefile.util.def (libgrub.a): Add grub-core/partmap/bsdlabel.c.
14558 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
14559 Properly handle concatenation.
14560 * grub-core/kern/device.c (grub_device_iterate): Likewise.
14561 * grub-core/normal/completion.c (iterate_partition): Likewise.
14562 * grub-core/kern/disk.c (grub_disk_open): Make disk->name not
14563 contain partition. All users updated.
14564 * grub-core/partmap/bsdlabel.c (grub_netbsdlabel_partition_map): New
14566 (grub_openbsdlabel_partition_map): Likewise.
14567 (bsdlabel_partition_map_iterate): Rename to ..
14568 (iterate_real): ... this. New arguments sector, freebsd and pmap.
14569 (bsdlabel_partition_map_iterate): New function.
14570 (netopenbsdlabel_partition_map_iterate): Likewise.
14571 (netbsdlabel_partition_map_iterate): Likewise.
14572 (openbsdlabel_partition_map_iterate): Likewise.
14573 (GRUB_MOD_INIT): Register new partmaps.
14574 (GRUB_MOD_FINI): Unregister new partmaps.
14575 * grub-core/partmap/msdos.c (pc_partition_map_iterate): Rename to ...
14576 (grub_partition_msdos_iterate): ... this. All users updated.
14577 Don't support embedding other than in a minix partition.
14578 * include/grub/msdos_partition.h (grub_partition_msdos_iterate): New
14580 * include/grub/partition.h (grub_partition): New field msdostype.
14581 * util/grub-install.in: Handle openbsd and netbsd types being in
14584 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
14586 Split mdraid.mod into mdraid09.mod and mdraid1x.mod.
14588 * Makefile.util.def (libgrub.a): Add grub-core/disk/mdraid1x_linux.c.
14589 * grub-core/Makefile.core.def (mdraid): Renamed to ...
14590 (mdraid09): ... this.
14591 (mdraid1x): New module.
14592 * grub-core/disk/mdraid_linux.c: Move 1.x parts ...
14593 * grub-core/disk/mdraid1x_linux.c: ...here. All users updated.
14595 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
14597 * grub-core/kern/emu/misc.c (asprintf): Use vsnprintf instead of
14600 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
14602 * grub-core/commands/efi/lsefimmap.c: Correct header.
14605 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
14607 * util/grub-editenv.c (argp_parser): Don't pass translated strings
14608 as printf format strings; the translations might contain '%' which
14609 could cause a crash.
14611 * util/grub-fstest.c (argp_parser): Likewise.
14612 * util/grub-setup.c (argp_parser): Likewise.
14615 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
14617 Use argp in grub-fstest.
14619 * util/grub-fstest.c: Don't include getopt.h.
14621 (root): New variable.
14622 (args_count): Likewise.
14624 (num_disks): Likewise.
14625 (images): Likewise.
14627 (debug_str): Likewise.
14629 (options): Transformed to argp.
14631 (main): Split argument parsing into ...
14632 (argp_parser): ... this. Changed to argp format.
14633 (argp): New variable.
14634 (main): Use argp_parse.
14636 2010-09-20 Tristan Gingold <gingold@free.fr>
14637 2010-09-20 Robert Millan <rmh.grub@aybabtu.com>
14638 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
14640 * grub-core/commands/efi/lsefimmap.c: New file.
14641 * grub-core/Makefile.core.def (lsefimmap): New module.
14642 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): New definition.
14644 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
14646 Pause the execution (10s max) if any errors are displayed so the user
14647 has a chance to see them.
14649 * grub-core/kern/err.c (grub_err_printed_errors): New variable.
14650 (grub_print_error): Increment grub_err_printed_errors.
14651 * grub-core/normal/menu.c (grub_menu_execute_entry): Pause the
14652 execution if any errors were displayed.
14653 (show_menu): Remove old code for pause.
14654 * grub-core/normal/menu_entry.c (run): Likewise.
14655 * grub-core/normal/term.c (grub_normal_char_counter): Removed. All
14657 (grub_normal_get_char_counter): Likewise.
14658 * include/grub/err.h (grub_err_printed_errors): New external variable.
14659 * include/grub/normal.h (grub_normal_get_char_counter): Removed.
14661 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
14663 Support multiboot VBE info.
14665 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
14666 Take VBE info into account.
14667 (fill_vbe_info) [GRUB_MACHINE_HAS_VBE]: New function.
14668 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
14669 Call fill_vbe_info when appropriate.
14670 (grub_multiboot_make_mbi): Account for the size occupied by VBE info.
14671 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare tags
14673 (grub_multiboot_get_mbi_size): Take new tags into account.
14674 (fill_vbe_tag) [GRUB_MACHINE_HAS_VBE]: New function.
14675 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
14676 Call fill_vbe_tag when appropriate.
14677 (grub_multiboot_make_mbi): Properly align tags.
14678 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_pm_interface): New
14680 * include/grub/i386/pc/vbe.h (grub_vbe_bios_get_pm_interface): New
14682 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): New definition.
14684 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
14686 Suport manual terminal geometry specification.
14688 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions):
14689 Save state in grub_ofconsole_terminfo_output.
14690 (grub_ofconsole_term): Use grub_terminfo_getwh.
14691 (grub_ofconsole_getwh): Removed.
14692 * grub-core/term/serial.c (grub_serial_getwh): Removed.
14693 (grub_serial_term): Use grub_terminfo_getwh.
14694 * grub-core/term/terminfo.c (grub_terminfo_getwh): New function.
14695 (options): New struct.
14696 (OPTION_*): New enum.
14697 (grub_cmd_terminfo): Transform into extcmd and handle new parameters.
14698 * include/grub/terminfo.h (grub_terminfo_output_state): New fields
14700 (grub_terminfo_getwh): New proto.
14701 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Handle --lines.
14703 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
14705 Handle legacy "terminal" command.
14707 * grub-core/lib/legacy_parse.c (legacy_command): New flags FLAG_TITLE
14709 (legacy_commands): Add terminal and title.
14710 (grub_legacy_parse): Handle terminal. Simplify title handling.
14712 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
14714 * grub-core/lib/arg.c (grub_arg_show_help): Correctly handle
14715 parameters overflow.
14717 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
14719 * .bzrignore: Add grub-core/gnulib/sys, widthspec.bin, and
14722 * docs/grub.texi (Shell-like scripting): Document `!'.
14723 (Network): Simplify using new i386-pc-pxe format. Mention
14728 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
14730 * Makefile.am (SUBDIRS): Restore "."; it's important to force
14731 ordering, so that e.g. ascii.h is built before grub-core/font/font.c
14734 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
14736 * grub-core/commands/efi/lsefisystab.c: Correct header.
14737 * grub-core/commands/efi/lssal.c: Likewise.
14738 * grub-core/commands/testload.c: Likewise.
14740 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
14742 * util/grub-mkrescue.in: Add explicit root argument to --set to
14743 prevent the UUID being interpreted as an argument to --set (matches
14744 previous change to prepare_grub_to_access_device).
14746 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
14748 * kern/emu/hostdisk.c: Include <sys/ioctl.h> and <sys/disklabel.h>
14749 on FreeBSD. Define HAVE_DIOCGDINFO on NetBSD and FreeBSD to reduce
14750 the verbosity of later #ifs.
14751 (find_partition_start): Define this function on FreeBSD too.
14752 (device_is_wholedisk) [__FreeBSD__ || __FreeBSD_kernel__]: New
14754 (grub_util_biosdisk_get_grub_dev): Use partition-start-sector logic
14757 2010-09-20 Yves Blusseau <blusseau@zetam.org>
14759 * util/grub-editenv.c: Use argp instead of getopt.
14761 2010-09-20 Yves Blusseau <blusseau@zetam.org>
14763 * util/grub-setup.c: Use argp instead of getopt.
14765 2010-09-20 Yves Blusseau <blusseau@zetam.org>
14767 Use gnulib-tool to create gnulib source files.
14769 * Add gnulib files generated by gnulib-tool in build-aux, m4 and
14770 grub-core/gnulib directories
14771 * .bzignore: Add **/.deps and autogenerated gnulib files
14772 * configure.ac: Assign auxiliary directory to build-aux, add invocation
14773 of gnulib macros, add grub-core/gnulib/Makefile
14774 * Makefile.am: Add gnulib directory in SUBDIRS (removing unnecessary .),
14775 include m4 directory to aclocal.
14776 * Makefile.util.def: Remove direct compilation of gnulib source files
14777 and use the new grub-core/gnulib/libgnu.a.
14778 * build-aux/config.rpath: move config.rpath from top directory to
14780 * conf/Makefile.common: Remove the macro _GL_UNUSED already defined
14782 * conf/Makefile.extra-dist: Add m4/gnulib-cache.m4
14783 * grub-core/Makefile.core.def: Remove unnecessary extra_dist
14784 * grub-core/lib/posix_wrap/localcharset.h (locale_charset): Update
14786 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Return static
14789 2010-09-20 Yves Blusseau <blusseau@zetam.org>
14791 * .bzrignore: Add grub-kbdcomp, grub-menulst2cfg, *.marker,
14792 grub-core/genmod.sh and grub-core/gensyminfo.sh
14794 2010-09-20 BVK Chaitanya <bvk.groups@gmail.com>
14796 Add a test for echo command options.
14798 * tests/grub_cmd_echo.in: New test.
14799 * Makefile.util.def: Rules for new test.
14801 2010-09-20 Szymon Janc <szymon@janc.net.pl>
14803 Remove crc.mod and move crc command to hashsum.mod.
14804 Remove lib/crc.c - users updated to use gcrypt implementation.
14806 * grub-core/commands/crc.c: Removed.
14807 * grub-core/Makefile.core.def (crc): Module removed.
14808 * grub-core/commands/hashsum.c (aliases[]): Add crc alias.
14809 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Register crc command.
14810 * grub-core/commands/hashsum.c (GRUB_MOD_FINI): Unregister crc command.
14811 * grub-core/lib/crc.c: Removed.
14812 * include/grub/lib/crc.h: Removed.
14813 * Makefile.util.def (crc): Remove lib/crc.c
14814 * grub-core/Makefile.core.def (libgrub.a): Remove grub-core/lib/crc.c.
14815 * util/grub-fstest.c (cmd_crd): Use libgcrypt crc implementation.
14816 * Makefile.util.def (libgrub.a): Add grub-core/lib/libgcrypt-grub/cipher/crc.c.
14817 * Makefile.util.def (grub-fstest): Add CFLAGS_GCRY to cflags.
14818 * Makefile.util.def (grub-fstest): Add CPPFLAGS_GCRY to cppflags.
14819 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Use libgcrypt crc implementation.
14821 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
14823 * grub-core/boot/i386/pc/boot.S: Ignore %dl if it's not in a sane range.
14825 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
14827 Split config.h for util and core.
14829 * acinclude.m4 (HAVE_ASM_USCORE): Transformed into a variable.
14830 (ADDR32): Likewise.
14831 (DATA32): Likewise.
14832 (BSS_START_SYMBOL): Likewise.
14833 (END_SYMBOL): Likewise.
14834 (NEED_ENABLE_EXECUTE_STACK): Likewise. All users updated.
14835 (grub_I386_ASM_ABSOLUTE_WITHOUT_ASTERISK): Removed.
14836 * config.h.in: New file.
14837 * configure.ac: Use config-util.h as config define file.
14838 Rename MACHINE into GRUB_MACHINE. All users updated.
14839 (NEED_REGISTER_FRAME_INFO): Transformed into a variable. All users
14841 (NESTED_FUNC_ATTR): Likewise.
14842 Substitue new variables.
14843 (COND_HAVE_ASM_USCORE): New conditional.
14844 * grub-core/Makefile.am (ASM_PREFIX): New variable.
14845 (kernel_syms.lst): Use ASM_PREFIX.
14846 * grub-core/kern/emu/console.c: Include config-util.h.
14847 * grub-core/kern/emu/misc.c: Likewise.
14848 * grub-core/kern/emu/mm.c: Likewise.
14849 * include/grub/emu/misc.h: Likewise.
14850 * include/grub/libgcc.h: Likewise.
14852 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
14854 * grub-core/term/efi/console.c (efi_codes): Fix GRUB_TERM_KEY_*
14856 * grub-core/kern/emu/console.c (grub_ncurses_getkey):
14857 Fix GRUB_TERM_KEY_* constants usage.
14858 * grub-core/kern/emu/misc.c (asprintf): Fix vasprintf usage.
14860 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
14862 * grub-core/bus/usb/ohci.c (grub_ohci_cancel_transfer): Use %p to
14864 * grub-core/bus/usb/uhci.c: Remove empty define.
14865 (grub_uhci_check_transfer): Add missing cast.
14866 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Use %p to
14868 * grub-core/term/usb_keyboard.c (grub_usb_keyboard_getkey): Use
14870 * include/grub/types.h (PRIuGRUB_SIZE): New definition.
14872 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
14874 * grub-core/Makefile.core.def (legacycfg): Add
14875 lib/i386/pc/vesa_modes_table.c on emu.
14877 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
14879 Reduce number of temporary files generated by build system.
14881 * grub-core/gencmdlist.sh: Removed.
14882 * grub-core/genfslist.sh: Removed.
14883 * grub-core/genhandlerlist.sh: Removed.
14884 * grub-core/genmodsrc.sh: Removed.
14885 * grub-core/genpartmaplist.sh: Removed.
14886 * grub-core/genparttoollist.sh: Removed.
14887 * grub-core/gentermiinallist.sh: Removed.
14888 * grub-core/genvideolist.sh: Removed.
14890 * grub-core/genmod.sh.in: New file.
14891 * grub-core/gensyminfo.sh.in: New file.
14893 * conf/Makefile.common (CPPFLAGS_*_LIST): New marker flags.
14894 * conf/Makefile.extra-dist: Update with new files.
14895 * gentpl.py: Remove rules related to unnecessary temporary files.
14896 * grub-core/Makefile.am (syminfo.lst): New replacement for def-*
14898 * grub-core/Makefile.core.def: New rules for gensyminfo.sh and
14900 * grub-core/bus/usb/uhci.c: Remove empty #define.
14901 * grub-core/genmoddep.awk: Updated with new syminfo format.
14902 * util/bash-completion.d/Makefile.am: Add config.log to
14905 2010-09-19 Yves Blusseau <blusseau@zetam.org>
14907 * Makefile.util.def: Add forgotten $(LIBINTL) library.
14909 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
14911 * util/grub-mkconfig.in: Check the config script for syntax errors
14914 2010-09-19 Colin Watson <cjwatson@ubuntu.com>
14915 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
14917 * Makefile.util.def (grub-install): Use util/grub-install.in on all
14919 * util/grub-install.in: Add EFI and IEEE1275 support.
14920 * util/i386/efi/grub-install.in: Removed.
14921 * util/ieee1275/grub-install.in: Likewise.
14923 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
14925 * grub-core/commands/i386/cmostest.c (+parse_args): New function.
14926 (grub_cmd_cmosclean): Likewise.
14927 (GRUB_MOD_INIT): Register command cmosclean.
14928 * util/grub-mkconfig.in: Export GRUB_BUTTON_CMOS_CLEAN.
14929 * util/grub.d/00_header.in: Handle GRUB_BUTTON_CMOS_CLEAN.
14931 2010-09-18 Carles Pina i Estany <carles@pina.cat>
14932 2010-09-18 Aleš Nesrsta <starous@volny.cz>
14933 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
14935 Add keyboard layouts support.
14937 * Makefile.util.def (grub-mklayout): New file.
14938 (grub-kbdcomp): New script.
14939 * grub-core/Makefile.am (KERNEL_HEADER_FILES) [COND_mips_yeeloong]:
14940 Add keyboard_layouts.h.
14941 * grub-core/Makefile.core.def (kernel): Add commands/keylayouts.c and
14942 commands/boot.c on yeeloong.
14943 (keylayouts): New module.
14944 * grub-core/bus/usb/ohci.c
14945 * grub-core/bus/usb/uhci.c
14946 * grub-core/bus/usb/usbhub.c (rescan): New variable.
14947 (grub_usb_add_hub): Poll interrupt pipe for device handling.
14948 (attach_root_port): Likewise.
14949 (poll_nonroot_hub): Likewise.
14950 (grub_usb_poll_devices): Likewise.
14951 (detach_device): Close transfer.
14952 * grub-core/bus/usb/usbtrans.c (grub_usb_execute_and_wait_transfer): New
14954 (grub_usb_bulk_setup_readwrite): Likewise.
14955 (grub_usb_bulk_finish_readwrite): Likewise.
14956 * grub-core/commands/keylayouts.c: New file.
14957 * grub-core/commands/keystatus.c (grub_getkeystatus): New function.
14958 * grub-core/commands/menuentry.c (hotkey_aliases): All several new
14960 * grub-core/term/at_keyboard.c: Restructured to use keylayouts and
14961 support scancode 2.
14962 * grub-core/term/usb_keyboard.c: Restructured to use keylayouts.
14963 * include/grub/keyboard_layouts.h: New file.
14964 * util/grub-mklayout.c: New file.
14965 * util/grub-kbdcomp.in: Likewise.
14967 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
14969 Unify memory types.
14971 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include memory.h.
14972 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap): Output user-readable
14974 * grub-core/kern/i386/multiboot_mmap.c (grub_lower_mem): Removed.
14975 (grub_upper_mem): Likewise.
14976 * grub-core/kern/ieee1275/init.c (grub_upper_mem): Likewise.
14977 * include/grub/memory.h (grub_memory_type_t): New enum.
14980 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
14982 * grub-core/Makefile.core.def (lsapm): New module.
14983 * grub-core/commands/i386/pc/lsapm.c: New file.
14984 * grub-core/loader/i386/multiboot_mbi.c (make_mbi) [GRUB_MACHINE_PCBIOS]: Pass APM info.
14985 * grub-core/loader/multiboot_mbi2.c (make_mbi) [GRUB_MACHINE_PCBIOS]:
14987 * include/grub/i386/pc/apm.h: New file.
14988 * include/multiboot.h (multiboot_apm_info): New struct.
14990 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
14992 GRUB-legacy configuration file support.
14994 * Makefile.util.def (grub-menulst2cfg): New util.
14995 * docs/man/grub-menulst2cfg.h2m: New file.
14996 * grub-core/Makefile.core.def (legacycfg): New module.
14997 * grub-core/commands/legacycfg.c: New file.
14998 * grub-core/commands/menuentry.c (append_menu_entry): Rename to ...
14999 (grub_normal_add_menu_entry): ... this.
15000 * grub-core/commands/password.c (grub_cmd_password): Split main part to ...
15001 (grub_normal_set_password): ...this.
15002 * grub-core/commands/videoinfo.c (grub_cmd_videoinfo): Support MODE.
15003 * grub-core/loader/i386/linux.c (linux_vesafb_res): Move to ..,
15004 * grub-core/lib/i386/pc/vesa_modes_table.c: ... here.
15005 * grub-core/lib/legacy_parse.c: New file.
15006 * grub-core/normal/auth.c (grub_cmd_authenticate): New command.
15007 * include/grub/i386/pc/vesa_modes_table.h: New file.
15008 * include/grub/legacy_parse.h: Likewise.
15009 * include/grub/normal.h (grub_normal_add_menu_entry): New proto.
15010 * util/grub-menulst2cfg.c: New file.
15012 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
15014 * grub-core/kern/emu/hostdisk.c
15015 (convert_system_partition_to_system_disk): Initialise node.
15017 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
15019 * grub-core/kern/emu/hostdisk.c
15020 (convert_system_partition_to_system_disk): Fix devmapper memory pool
15022 Reported and based on patch by: Modestas Vainius.
15024 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
15026 Fix DM-RAID probing with recent versions of device-mapper udev
15029 * grub-core/kern/emu/hostdisk.c (read_device_map): Don't
15030 canonicalise device paths under /dev/mapper/.
15031 (convert_system_partition_to_system_disk): Compare the
15032 uncanonicalised path to /dev/mapper/ rather than the canonicalised
15033 path, since device nodes under /dev/mapper/ are often symlinks.
15035 2010-09-17 Yves Blusseau <blusseau@zetam.org>
15037 * .bzrignore: *.d removed (old rule), add *.image and symlist.h.
15039 2010-09-16 Yves Blusseau <blusseau@zetam.org>
15041 * configure.ac: Avoid some annoying error messages if freetype-config
15042 program is not found.
15044 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
15046 Support RAID on virtio devices, and others.
15048 * grub-core/kern/emu/getroot.c [__MINGW32__] (find_root_device):
15050 [__MINGW32__] (grub_find_device): ... this.
15051 [! __MINGW32__ && ! __CYGWIN__] (find_root_device): Rename to ...
15052 [! __MINGW32__ && ! __CYGWIN__] (grub_find_device): ... this. Use a
15053 reasonable default if dir is NULL.
15054 [! __MINGW32__ && __CYGWIN__] (find_cygwin_root_device): Rename to
15056 [! __MINGW32__ && __CYGWIN__] (grub_find_device): ... this.
15057 (grub_guess_root_device): Update callers.
15058 * include/grub/emu/getroot.h (grub_find_device): Add prototype.
15060 * util/raid.c (grub_util_getdiskname): Remove.
15061 (grub_util_raid_getmembers): Use grub_find_device rather than
15062 grub_util_getdiskname.
15064 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
15066 * docs/grub.texi (serial): Remove obsolete comment about GRUB
15067 needing to be compiled with serial support.
15068 (ls): Indicate that multiple files are accepted.
15069 * grub-core/commands/ls.c (GRUB_MOD_INIT): Update help text to
15070 indicate that multiple files are accepted.
15072 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
15074 * .bzrignore: Add *.1, *.8, grub-shell, grub-shell-tester,
15075 libgrub_a_init.c, and util/bash-completion.d/grub.
15077 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
15079 * util/grub-setup.c (setup): Fix incorrect container semantics.
15081 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
15083 * grub-core/commands/parttool.c (grub_cmd_parttool): Fix a variable
15085 Reported by: J. Nick Terry
15087 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
15089 Move embedding routines to partmap sources files.
15091 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot)
15092 [GRUB_UTIL]: New variable.
15093 (gpt_partition_map_iterate): Set part.parent.
15094 (gpt_partition_map_embed) [GRUB_UTIL]: New function.
15095 (grub_gpt_partition_map) [GRUB_UTIL]: Set .embed.
15096 * grub-core/partmap/msdos.c (pc_partition_map_embed) [GRUB_UTIL]:
15098 (grub_msdos_partition_map) [GRUB_UTIL]: Set .embed.
15099 * include/grub/partition.h (grub_embed_type_t) [GRUB_UTIL]: New type.
15100 (grub_partition_map) [GRUB_UTIL]: New field embed.
15101 * util/grub-setup.c (grub_gpt_partition_type_bios_boot): Removed.
15102 (setup): Use ->embed.
15104 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
15106 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): New
15108 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_floppy): New proto.
15109 * util/grub-setup.c (setup): Use grub_util_biosdisk_is_floppy.
15111 2010-09-15 Yves Blusseau <blusseau@zetam.org>
15113 Add function to get completions from usage.
15115 * util/bash-completion.d/grub-completion.bash.in: Add function to get
15116 completions from usage. Use LC_ALL=C to get options properly.
15118 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
15120 * grub-core/gnulib/basename-lgpl.c: Imported.
15121 * grub-core/gnulib/basename.c: Likewise.
15122 * grub-core/gnulib/dirname-lgpl.c: Likewise.
15123 * grub-core/gnulib/dirname.c: Likewise.
15124 * grub-core/gnulib/dirname.h: Likewise.
15125 * grub-core/gnulib/stripslash.c: Likewise.
15127 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
15129 * grub-core/gnulib/error.c: Resynced.
15130 * grub-core/gnulib/getopt.c: Likewise.
15131 * grub-core/gnulib/getopt_int.h: Likewise.
15132 * grub-core/gnulib/regex.h: Likewise.
15133 * grub-core/gnulib/regex_internal.c: Likewise.
15134 * grub-core/gnulib/regex_internal.h: Likewise.
15136 2010-09-15 Szymon Janc <szymon@janc.net.pl>
15138 * grub-core/lib/xzembed/xz_dec_stream.c (dec_main): Fix index and block
15139 CRC calculations and validity checks.
15140 * grub-core/lib/xzembed/xz_dec_stream.c (dec_index): Fix index CRC
15143 2010-09-15 Szymon Janc <szymon@janc.net.pl>
15145 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_end): Fix memory leak.
15147 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
15149 Fix incorrect echo options handling.
15150 Reported by: Yves Blusseau.
15152 * include/grub/command.h (grub_command_flags_t): New flags
15153 GRUB_COMMAND_ACCEPT_DASH and GRUB_COMMAND_OPTIONS_AT_START.
15154 * grub-core/lib/arg.c (grub_arg_parse): Handle new flags.
15155 * grub-core/commands/echo.c (GRUB_MOD_INIT): Use new flags.
15157 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
15159 * include/grub/command.h (GRUB_COMMAND_FLAG_CMDLINE): Removed. All
15161 (GRUB_COMMAND_FLAG_MENU): Likewise.
15162 (GRUB_COMMAND_FLAG_BOTH): Likewise.
15163 (GRUB_COMMAND_FLAG_TITLE): Removed.
15164 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
15165 (GRUB_COMMAND_FLAG_EXTCMD): Moved into enum.
15166 (GRUB_COMMAND_FLAG_DYNCMD): Likewise.
15167 (GRUB_COMMAND_FLAG_BLOCKS): Likewise.
15168 (grub_command_flags_t): New enum. All users updated.
15170 2010-09-14 Seth Goldberg <seth.goldberg@oracle.com>
15172 Fix solaris compilation.
15174 * grub-core/Makefile.core.def (kernel): Include gnulib/error.c on emu.
15175 (grub-emu): Add LIBZFS and LIBNVPAIR to ldadd.
15176 (grub-emu-list): Likewise.
15178 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
15180 Remove deprecated root command.
15182 * grub-core/commands/minicmd.c (grub_mini_cmd_root): Removed. All users
15185 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
15187 * util/i386/pc/grub-setup.c: Merge this ...
15188 * util/sparc64/ieee1275/grub-setup.c: ... and this ...
15189 * util/grub-setup.c: ... into this.
15190 * include/grub/sparc64/ieee1275/boot.h (grub_boot_blocklist) [ASM_FILE]:
15193 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
15195 * grub-core/fs/ext2.c (grub_ext2_open): Use return error value when
15198 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
15200 * grub-core/partmap/sun.c (sun_partition_map_iterate): Don't needlesly
15203 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
15205 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
15206 explicit root argument to set to prevent UUID to be interpreted as
15209 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
15211 * grub-core/kern/sparc64/ieee1275/crt0.S: Align stack.
15213 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
15215 Don't export grub_gate_a20.
15217 * grub-core/kern/i386/pc/init.c: Remove leftovers.
15218 * grub-core/kern/i386/pc/startup.S (FUNCTION(grub_gate_a20)): Rename
15220 (grub_gate_a20): ... this. All users updated.
15221 * include/grub/i386/pc/init.h: Removed. All users updated.
15223 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
15225 Create euro.pf2 which supports most European languages.
15227 * Makefile.am (grubdata_DATA): Add euro.pf2.
15228 (euro.pf2): New target.
15229 (CLEANFILES): Add euro.pf2.
15231 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
15233 * configure.ac: Disable emu-usb by default to prevent inadvertent
15236 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
15238 Disable usbserial on grub-emu since our libusb code isn't good enough
15241 * grub-core/Makefile.core.def (usbserial_common): Disable on emu.
15242 (usbserial_pl2303): Likewise.
15243 (usbserial_ftdi): Likewise.
15245 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
15247 * include/grub/disk.h (grub_disk): Remove has_partitions.
15249 * disk/loopback.c (grub_loopback): Remove has_partitions.
15251 (options): Remove partitions. All users updated.
15252 * util/grub-fstest.c (fstest): Don't pass "-p" to loopback.
15253 * util/i386/pc/grub-setup.c (setup): copy partition table only when
15254 actual partition table is found.
15256 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
15258 Remove readability checks (too many false negatives).
15260 * util/grub-install.in: Remove readability checks.
15261 * util/grub-mkconfig.in: Likewise.
15262 * util/grub.d/10_hurd.in: Likewise.
15263 * util/grub.d/10_kfreebsd.in: Likewise.
15264 * util/grub.d/10_linux.in: Likewise.
15265 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Revert to old
15268 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
15270 Enable acpi shutdown on all ACPI platforms.
15272 * grub-core/Makefile.core.def (halt): Inlude commands/acpihalt.c
15273 on coreboo, multiboot and EFI.
15274 * grub-core/commands/acpihalt.c (get_sleep_type): Add missing casts.
15275 (grub_acpi_halt): Likewise.
15276 * grub-core/commands/i386/pc/halt.c (grub_halt): Call grub_acpi_halt.
15277 (grub_cmd_halt): Don't call grub_acpi_halt directly.
15278 * grub-core/lib/efi/halt.c (grub_halt): Call grub_acpi_halt.
15279 * grub-core/lib/i386/halt.c (grub_halt)
15280 [GRUB_MACHINE_COREBOOT || GRUB_MACHINE_MULTIBOOT]: Likewise.
15282 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
15284 * grub-core/commands/iorw.c (grub_cmd_read): Declare buf in smallest
15287 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
15289 * grub-core/video/efi_gop.c: Fix over-80-chars line.
15290 * grub-core/video/efi_uga.c: Likewise.
15292 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
15294 Filter devaliases and never open same device twice.
15296 * grub-core/disk/ieee1275/ofdisk.c (last_devpath): New variable.
15297 (last_ihandle): Likewise.
15298 (ofdisk_hash_ent): New member shortest.
15299 (ofdisk_hash_add): Add canonical path too.
15300 (scan): New function.
15301 (grub_ofdisk_iterate): Iterate over hashed entries.
15302 (compute_dev_path): Don't add :0.
15303 (grub_ofdisk_open): Don't really open the disk.
15304 (grub_ofdisk_close): Avoid closing unrelated disk.
15305 (grub_ofdisk_read): Implement reopen logic.
15306 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_canonicalise_devname):
15308 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_canonicalise_devname):
15311 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
15315 * configure.ac (GRUB_KERNEL_MACHINE_LINK_ADDR): Removed.
15316 * grub-core/Makefile.core.def (kernel): Make ldflags just use the
15317 right address. Add sparc64_ieee1275_ldflags.
15318 * grub-core/loader/sparc64/ieee1275/linux.c: Remove leftover include.
15319 * util/grub-mkimagexx.c (locate_sections): Correct grub_host_to_target32
15320 to grub_host_to_target_addr
15321 (load_image): Likewise.
15323 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
15325 * grub-core/normal/completion.c (complete_file): Handle device
15327 Fix based on patch by Doug Nazar.
15329 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
15331 grub-mknetdir script.
15333 * Makefile.util.def (grub-mknetdir): New module.
15334 * tests/util/grub-shell.in: Support boot=net
15335 * util/grub-mknetdir.in: New file.
15337 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
15339 videoinfo on non-vbe.
15341 * grub-core/Makefile.core.def (vbeinfo): Removed.
15342 (vbetest): Removed.
15343 (videoinfo): New module.
15344 * grub-core/commands/i386/pc/vbeinfo.c: Removed.
15345 * grub-core/commands/i386/pc/vbetest.c: Removed.
15346 * grub-core/commands/videoinfo.c: New file.
15347 * grub-core/commands/videotest.c (grub_cmd_videotest): Support mode
15349 (grub_cmd_videotest) [GRUB_MACHINE_PCBIOS]: Load vbe.mod when invoked
15351 (GRUB_MOD_INIT) [GRUB_MACHINE_PCBIOS]: New command vbetest.
15352 (GRUB_MOD_FINI) [GRUB_MACHINE_PCBIOS]: Unregister vbetest.
15353 * grub-core/video/efi_gop.c (grub_video_gop_fill_mode_info): Fill
15354 mode_number. New parameter mode. All users updated.
15355 (grub_video_gop_iterate): New function.
15356 (grub_video_efi_gop): New member iterate.
15357 * grub-core/video/i386/pc/vbe.c (framebuffer): Removed leftover fields.
15358 (grub_vbe_set_video_mode): Remove setting useless fields.
15359 (vbe2videoinfo): New function.
15360 (grub_video_vbe_iterate): Likewise.
15361 (grub_video_vbe_setup): Use vbe2videoinfo.
15362 (grub_video_vbe_print_adapter_specific_info): New function.
15363 (grub_video_vbe_adapter): New fields iterate and
15364 print_adapter_specific_info.
15365 * include/grub/video.h (GRUB_VIDEO_MODE_*): Transform into enum.
15367 (grub_video_mode_info): New field mode_number.
15368 (grub_video_adapter): New fields iterate and
15369 print_adapter_specific_info.
15371 2010-09-13 Tristan Gingold <gingold@free.fr>
15372 2010-09-13 Robert Millan <rmh.grub@aybabtu.com>
15373 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
15375 * grub-core/commands/efi/lsefisystab.c: New file.
15376 * grub-core/commands/efi/lssal.c: Likewise.
15377 * grub-core/Makefile.core.def (lsacpi): New module.
15378 (lsefisystab): Likewise.
15379 * include/grub/efi/api.h (GRUB_EFI_SAL_TABLE_GUID): New definition.
15380 (GRUB_EFI_HCDP_TABLE_GUID): Likewise.
15381 (grub_efi_sal_system_table): New struct.
15382 (grub_efi_sal_system_table_entrypoint_descriptor): Likewise.
15383 (grub_efi_sal_system_table_memory_descriptor): Likewise.
15384 (grub_efi_sal_system_table_platform_features): Likewise.
15385 (grub_efi_sal_system_table_translation_register_descriptor): Likewise.
15386 (grub_efi_sal_system_table_purge_translation_coherence): Likewise.
15387 (grub_efi_sal_system_table_ap_wakeup): Likewise.
15388 * include/grub/types.h (PRIuGRUB_UINT64_T): New definition.
15390 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
15392 Support explicit user claim that a device is BIOS-visible.
15394 * grub-core/kern/emu/getroot.c (grub_util_get_dev_abstraction):
15395 Return GRUB_DEV_ABSTRACTION_NONE if device is in device.map.
15396 * grub-core/kern/emu/hostdisk.c
15397 (convert_system_partition_to_system_disk): Support mdX.
15398 (find_system_device): New parameter add. All users updated.
15399 (grub_util_biosdisk_is_present): New function.
15400 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_present): New
15403 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
15405 Search hints support.
15407 * commands/search.c (FUNC_NAME): New arguments hints and nhints.
15410 2010-09-13 Yves Blusseau <blusseau@zetam.org>
15412 Bash completion script for util commands
15414 * Makefile.am: Add util/bash-completion.d directory
15415 * configure.ac: Likewise.
15416 * util/bash-completion.d/Makefile.am: New file.
15417 * util/bash-completion.d/grub-completion.bash.in: Likewise.
15419 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
15421 * grub-core/normal/term.c (put_glyphs_terminal): Correct sign.
15422 (print_backlog): set backlog_ucs4 and backlog_glyphs.
15423 Reported by: Yves Blusseau.
15425 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
15427 * grub-core/normal/misc.c (grub_normal_print_device_info): Show
15428 partition size and offset.
15430 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
15432 * grub-core/commands/wildcard.c (make_regex): Escape brackets.
15434 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
15436 * grub-core/commands/ls.c (grub_cmd_ls): Accept multiple files.
15438 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
15440 * grub-core/kern/misc.c (grub_vprintf): Use va_copy when necessary.
15441 (grub_xvasprintf): Likewise.
15443 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
15445 * grub-core/kern/emu/main.c (main): Call hostfs_init only after init_all.
15447 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
15449 * grub-core/commands/menuentry.c (append_menu_entry): Don't rely on
15450 args ending with NULL.
15452 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
15454 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_reset): Preserve context
15457 2010-09-11 Szymon Janc <szymon@janc.net.pl>
15459 * grub-core/commands/lsacpi.c (grub_cmd_lsacpi): Fix prototype.
15461 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
15463 Shutdown using ACPI.
15465 * grub-core/Makefile.core.def (halt): Add commands/acpihalt.c on i386-pc.
15466 * grub-core/commands/acpihalt.c: New file.
15467 * grub-core/commands/i386/pc/halt.c (grub_cmd_halt): Call grub_acpi_halt.
15468 * include/grub/acpi.h (grub_acpi_fadt): New member pm1a.
15469 (grub_acpi_halt): New proto.
15470 (GRUB_ACPI_SLP_EN): New const.
15471 (GRUB_ACPI_SLP_TYP_OFFSET): Likewise.
15472 (GRUB_ACPI_OPCODE_*): New enum.
15473 (GRUB_ACPI_EXTOPCODE_*): Likewise.
15475 2010-09-11 Tristan Gingold <gingold@free.fr>
15476 2010-09-11 Robert Millan <rmh.grub@aybabtu.com>
15477 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
15479 * commands/lsacpi.c: New file.
15480 * grub-core/Makefile.core.def (lsacpi): New module.
15481 * include/grub/acpi.h (GRUB_ACPI_FADT_SIGNATURE): New definition.
15482 (GRUB_ACPI_MADT_SIGNATURE): Likewise.
15483 (grub_acpi_madt_entry_header): New struct.
15484 (grub_acpi_madt): Likewise.
15485 (grub_acpi_madt_entry_interrupt_override): Likewise.
15486 (grub_acpi_madt_entry_sapic): Likewise.
15487 (grub_acpi_madt_entry_lsapic): Likewise.
15488 (grub_acpi_madt_entry_platform_int_source): Likewise.
15489 * include/grub/types.h (PRIxGRUB_UINT32_T): New definition.
15490 (PRIuGRUB_UINT32_T): Likewise.
15491 (PRIxGRUB_UINT64_T): Likewise.
15493 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
15495 Implement loading palette on ieee1275_fb.
15497 * grub-core/video/ieee1275.c (stdout_ihandle): New variable.
15498 (have_setcolors): Likewise.
15499 (grub_video_ieee1275_init): Fill stdout_ihandle and have_setcolors.
15500 (grub_video_ieee1275_setup): Use grub_video_ieee1275_set_palette.
15501 (grub_video_ieee1275_set_palette): Implement.
15503 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
15504 2010-09-11 Colin Watson <cjwatson@ubuntu.com>
15506 * util/grub-install.in (grub_partition): New variable.
15507 Set prefix_drive on EFI and PC to (,$grub_partition) as last resort.
15508 * util/i386/pc/grub-setup.c (setup): Don't touch prefix.
15509 Fixes a bug reported by Yves Blusseau.
15511 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
15515 * conf/Makefile.common (CFLAGS_PLATFORM): Add -mflush-func
15516 =grub_cpu_flush_cache on all mips and not only yeeloong.
15517 * configure.ac (COND_mips): New conditional.
15518 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add libgcc on all
15520 * grub-core/kern/emu/cache.S (__mips__): Use _flush_cache.
15521 * grub-core/kern/emu/full.c (grub_arch_dl_init_linker)
15522 [GRUB_LINKER_HAVE_INIT]: New function.
15523 (grub_emu_post_init): Likewise.
15524 * grub-core/kern/emu/lite.c (grub_emu_post_init): Likewise.
15525 * grub-core/kern/emu/main.c: Use grub_emu_post_init.
15526 * include/grub/cache.h (_mips): Include mips/cache.h.
15527 * include/grub/disk.h [GRUB_UTIL || GRUB_MACHINE_EMU]: Add missing
15528 LVM and RAID prototypes.
15529 * include/grub/emu/misc.h (grub_emu_post_init): New proto.
15530 * include/grub/mips/time.h (grub_cpu_idle) [GRUB_MACHINE_EMU]: New
15533 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
15535 * util/grub-install.in: Don't try to verify core.img until after
15536 running grub-mkimage to create it.
15538 2010-09-10 Robert Millan <rmh@gnu.org>
15540 * util/grub.d/10_hurd.in: Add misc readability checks.
15541 * util/grub.d/10_kfreebsd.in: Likewise.
15542 * util/grub.d/10_linux.in: Likewise.
15544 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
15546 * util/grub-install.in: ${imgext} won't be defined here until the
15547 install branch is merged. For the meantime, only verify core.img on
15548 i386-pc and sparc64-ieee1275 platforms.
15550 2010-09-10 Robert Millan <rmh@gnu.org>
15552 Solaris support in grub_find_zpool_from_dir(). Thanks
15553 Seth Goldberg for referring to getextmntent() facility.
15555 * configure.ac: Check for getextmntent(), `sys/mnttab.h' and
15557 * grub-core/kern/emu/misc.c [HAVE_SYS_MNTTAB_H]: Include
15559 [HAVE_SYS_MKDEV_H]: Include `<sys/mkdev.h>'.
15560 [HAVE_GETEXTMNTENT] (grub_find_zpool_from_dir): Add getextmntent()
15561 method for finding zpool name.
15563 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
15565 grub-fstest needs the host and hostfs modules while other utilities
15566 actively require those modules to be absent, so grub-fstest needs
15567 its own initialisation and finalisation code.
15569 * Makefile.am (grub_fstest.pp): New target.
15570 (grub_fstest_init.lst): Likewise.
15571 (grub_fstest_init.c): Likewise.
15572 * Makefile.util.def (grub-fstest): Add grub_fstest_init.c.
15574 2010-09-10 Robert Millan <rmh@gnu.org>
15576 * configure.ac: Check for `struct statfs.f_fstypename' and
15577 `struct statfs.f_mntfromname'.
15579 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir): Conditionalize
15580 kFreeBSD-specific code.
15582 2010-09-10 Robert Millan <rmh@gnu.org>
15584 * util/grub.d/10_kfreebsd.in: Fix ${kfreebsd_device} initialization
15585 on ZFS. Now non-main filesystems are supported as / too.
15587 2010-09-09 Colin Watson <cjwatson@ubuntu.com>
15589 * Makefile.util.def (libgrub.a): Move grub-core/kern/emu/hostfs.c
15590 and grub-core/disk/host.c to ...
15591 (grub-fstest): ... here. Having the host disk implementation
15592 present confuses grub-probe and other utility programs.
15594 * util/grub-mkconfig.in: Only verify readability of grub.cfg.new
15595 when writing to a file, not when writing to stdout.
15597 2010-09-09 BVK Chaitanya <bvk.groups@gmail.com>
15599 * tests/partmap_test.in: New test for partitions.
15600 * Makefile.util.def: Rules for new test.
15602 2010-09-09 Robert Millan <rmh@gnu.org>
15604 * util/grub-probe.c (probe): Fix a pair of unhandled error
15607 2010-09-09 Robert Millan <rmh@gnu.org>
15609 Basic Btrfs support (detection and UUID).
15611 * grub-core/fs/btrfs.c: New file.
15612 * Makefile.util.def (library): Register btrfs.c.
15613 * grub-core/Makefile.core.def: Likewise.
15615 2010-09-08 Robert Millan <rmh@gnu.org>
15617 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Improve
15618 with (optional) parameters to specify device and relative path.
15619 * util/grub-install.in: Use is_path_readable_by_grub() to
15620 verify readability of a few critical files.
15621 * util/grub-mkconfig.in: Use is_path_readable_by_grub() to
15622 verify readability of grub.cfg.new.
15624 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
15626 Split minix.mod into minix.mod and minix2.mod.
15628 * Makefile.util.def (libgrub.a): Add grub-core/fs/minix2.c.
15629 * grub-core/Makefile.core.def (minix2): New module.
15630 * grub-core/fs/minix.c: Use definitions instead of runtime version
15632 * grub-core/fs/minix2.c: New file.
15634 2010-09-08 Yves Blusseau <blusseau@zetam.org>
15636 Add new --boot-directory option to replace --root-directory
15638 * util/grub-install.in: Add new --boot-directory option
15639 * util/grub-reboot.in: Likewise.
15640 * util/grub-set-default.in: Likewise.
15642 2010-09-08 Yves Blusseau <blusseau@zetam.org>
15644 * util/grub-mkconfig.in: Use new variable.
15646 2010-09-08 Yves Blusseau <blusseau@zetam.org>
15648 * configure.ac: Define some useful variables.
15650 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
15652 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
15653 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF when appropriate.
15654 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_setcursor):
15655 Use terminfo and don't use cursor-on/cursor-off unless it's known
15657 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New element
15658 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF.
15660 2010-09-08 Colin Watson <cjwatson@ubuntu.com>
15662 * grub-core/kern/efi/init.c (grub_efi_set_prefix): If the prefix
15663 starts with "(,", fill the drive containing the loaded image in
15664 between those two characters, but expect that a full partition
15665 specification including partition map names will follow.
15667 2010-09-08 Robert Millan <rmh@gnu.org>
15669 * configure.ac: Remove `--enable-grub-fstest' option.
15670 * Makefile.util.def (grub-fstest): Remove COND_GRUB_FSTEST condition.
15672 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Use
15673 `grub-fstest' instead of `grub-probe' for readability verification.
15674 * util/grub-probe.c (probe): Remove readability verification kludge.
15676 2010-09-08 Robert Millan <rmh@gnu.org>
15678 * util/grub-mkconfig.in: Pass `--device ${GRUB_DEVICE}' when
15679 initializing `GRUB_FS'.
15681 2010-09-08 BVK Chaitanya <bvk.groups@gmail.com>
15683 Not command (!) support to GRUB script.
15685 * tests/grub_script_not.in: New test.
15686 * Makefile.util.def: Rules for new test.
15688 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
15689 ! command as a special case.
15690 * grub-core/script/yylex.l (GRUB_PARSER_TOKEN_NOT): Removed.
15692 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
15694 * grub-core/commands/wildcard.c (wildcard_expand): Fix wrong
15697 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
15699 * docs/grub.texi (Shell-like scripting): Fix @dots to @dots{}.
15701 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
15703 * docs/grub.texi (Shell-like scripting): Documentation for break,
15704 continue, shift and return commands.
15706 2010-09-06 Vladimir Serbinenko <phcoder@gmail.com>
15708 Rename CD-ROM to cd on BIOS.
15710 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_drive): Recognise
15712 (grub_biosdisk_call_hook): Call with "cd" instead of arbitrary hdX.
15714 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
15716 * grub-core/kern/emu/main.c (main): Reinit LVM and RAID.
15717 * util/grub-probe.c (main): Likewise.
15718 * util/i386/pc/grub-setup.c (main): Likewise.
15719 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
15720 Reported and debugged by: alexxy
15722 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
15724 * grub-core/disk/lvm.c (grub_lvm_scan_device) [GRUB_UTIL]: Output more
15727 2010-09-05 Jo Shields <directhex@apebox.org>
15729 * util/grub.d/30_os-prober.in: Add missing classes.
15731 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
15733 * docs/grub.texi (Theme file format): Document new position format.
15735 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
15737 * docs/grub.texi (Theme file format): Replace Box_slice_names.png with
15738 a table. Use @code instead of @verbatim.
15740 2010-09-05 Colin D Bennett <colin@gibibit.com>
15742 Gfxmenu documentation.
15744 * docs/grub.texi (Theme file format): New chapter.
15746 2010-09-05 Szymon Janc <szymon@janc.net.pl>
15748 * grub-core/Makefile.core.def (xzio): New module.
15749 * grub-core/io/xzio.c: New file.
15750 * grub-core/lib/xzembed/xz.h: New file (from xembed).
15751 * grub-core/lib/xzembed/xz_config.h: Likewise.
15752 * grub-core/lib/xzembed/xz_dec_bcj.c: Likewise.
15753 * grub-core/lib/xzembed/xz_dec_lzma2.c: Likewise.
15754 * grub-core/lib/xzembed/xz_dec_stream.c: Likewise.
15755 * grub-core/lib/xzembed/xz_lzma2.h: Likewise.
15756 * grub-core/lib/xzembed/xz_private.h: Likewise.
15757 * grub-core/lib/xzembed/xz_stream.h: Likewise.
15758 * include/grub/file.h (grub_file_filter_id): New compression filter
15759 GRUB_FILE_FILTER_XZIO.
15761 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
15763 * include/grub/file.h (GRUB_FILE_SIZE_UNKNOWN): New definition.
15764 * grub-core/disk/loopback.c (grub_loopback_open): Handle unknown file
15767 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
15769 * include/grub/err.h (grub_err_t): Replace GRUB_ERR_BAD_GZIP_DATA with
15770 GRUB_ERR_BAD_COMPRESSED_DATA. All users updated.
15772 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
15774 Uncompressed checksum support.
15776 * grub-core/commands/hashsum.c (options): Add option --uncompress.
15777 (check_list): New parameter uncompress.
15778 (grub_cmd_hashsum): Handle --uncompress.
15780 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
15782 Reintroduce testload.
15784 * grub-core/commands/minicmd.c (grub_rescue_cmd_testload) [0]: Moved
15786 * grub-core/commands/testload.c (grub_cmd_testload): ... here.
15787 (GRUB_MOD_INIT): New function.
15788 (GRUB_MOD_FINI): Likewise.
15789 * grub-core/Makefile.core.def (testload): New module.
15791 2010-09-05 Szymon Janc <szymon@janc.net.pl>
15793 * grub-core/lib/posix_wrap/sys/types.h (bool): Transform into an enum.
15794 (uint8_t): New type.
15795 (uint16_t): Likewise.
15796 (uint32_t): Likewise.
15797 (uint64_t): Likewise.
15799 2010-09-05 Szymon Janc <szymon@janc.net.pl>
15801 * include/grub/crypto.h (GRUB_MD_CRC32): New definition.
15803 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
15805 * grub-core/io/gzio.c (grub_gzio_open): Removed "transparent" parameter.
15807 (grub_gzfile_open): Removed. All users updated.
15808 (GRUB_MOD_INIT): New function.
15809 (GRUB_MOD_FINI): Likewise.
15810 * grub-core/kern/file.c (grub_file_filters_all): New variable.
15811 (grub_file_filters_enabled): Likewise.
15812 (grub_file_open): Handle filters.
15813 * grub-core/loader/i386/bsd.c (GRUB_MOD_INIT): Load gzio.
15814 * grub-core/normal/main.c (GRUB_MOD_INIT): Likewise.
15815 * include/grub/file.h (grub_file_filter_id_t): New type.
15816 (grub_file_filter_t): Likewise.
15817 (grub_file_filters_all): New extern variable.
15818 (grub_file_filters_enabled): Likewise.
15819 (grub_file_filter_register): New inline function.
15820 (grub_file_filter_unregister): Likewise.
15821 (grub_file_filter_disable): Likewise.
15822 (grub_file_filter_disable_compression): Likewise.
15823 * include/grub/gzio.h: Removed.
15825 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
15827 Filename expansion support for wildcards in GRUB script.
15829 * tests/grub_script_expansion.in: New test.
15830 * Makefile.util.def: Rule for new test.
15832 * grub-core/commands/wildcard.c: New file, implements filename
15833 expansion support for GRUB script.
15834 * grub-core/Makefile.core.def: Rule update for regexp.mod.
15835 * grub-core/script/argv.c: Cosmetic changes.
15836 * grub-core/script/execute.c (grub_script_arglist_to_argv):
15837 Refactored to perform wildcard expansion on arguments.
15838 * include/grub/script_sh.h (grub_script_wildcard_translator): New
15841 * tests/util/grub-shell.in: Fix quoting for read input.
15843 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
15845 Support for updating environment variables with matched substrings
15848 * tests/grub_cmd_regexp.in: New test.
15849 * Makefile.util.def: Rule for new test.
15851 * grub-core/commands/regexp.c: New option -s to update environment
15852 variables with regexp matches.
15854 2010-09-04 Szymon Janc <szymon@janc.net.pl>
15856 * include/grub/file.h (grub_file): New member not_easly_seekable.
15857 (grub_file_seekable): New inline function.
15858 * grub-core/io/gzio.c (test_header): Don't test end magic if file isn't
15860 (grub_gzio_open): Set not_easly_seekable.
15861 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_open): Set not_easily_seekable.
15862 * grub-core/io/bufio.c (grub_bufio_open): Propagate not_easily_seekable.
15864 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
15866 Support for options to appear multiple times on cmdline.
15868 * include/grub/lib/arg.h (grub_arg_list_alloc): New prototype.
15869 * grub-core/commands/extcmd.c: Support for repeatable option.
15870 * grub-core/lib/arg.c (grub_arg_list_alloc): New function for
15871 repeatable option support.
15873 Refactor menuentry into a regular command.
15875 * grub-core/commands/menuentry.c: New file, menuentry command
15877 * grub-core/Makefile.core.def: Rule update for normal.mod.
15878 * grub-core/normal/main.c: Moved menuentry creation to
15879 grub-core/commands/menuentry.c.
15880 * grub-core/normal/menu.c (grub_menu_execute_entry): Removed.
15881 (grub_menu_execute_entry_real): Removed.
15882 * grub-core/script/execute.c (grub_script_execute_sourcecode): New
15884 (grub_script_execute_menuentry): Removed.
15885 * grub-core/script/parser.y (menuentry): Removed.
15886 * grub-core/script/script.c (grub_script_create_cmdmenu): Removed.
15887 * grub-core/script/yylex.l (menuentry): Removed.
15888 * include/grub/menu.h (grub_menu_init): New prototype.
15889 (grub_menu_fini): New prototype.
15890 * include/grub/normal.h (grub_normal_add_menu_entry): Removed.
15891 * include/grub/script_sh.h (grub_script_cmd_menuentry): Removed.
15892 (grub_script_execute_sourcecode): New prototype.
15894 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
15896 "return" command for GRUB script functions.
15898 * tests/grub_script_return.in: New test.
15899 * Makefile.util.def: Rules for new test.
15901 * grub-core/script/execute.c (grub_script_return): New function.
15902 * grub-core/script/main.c: Register/unregister return commaond.
15903 * include/grub/script_sh.h (grub_script_return): New prototype.
15905 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
15907 "setparams" command to update positional parameters.
15909 * tests/grub_script_setparams.in: New test.
15910 * Makefile.util.def: Rules for new test.
15912 * grub-core/script/argv.c (grub_script_argv_make): New function.
15913 * grub-core/script/execute.c (replace_scope): New function.
15914 (grub_script_setparams): New function.
15915 * grub-core/script/lexer.c: Remove unused variables.
15916 * grub-core/script/main.c: Register/unregister setparams command.
15917 * include/grub/script_sh.h (grub_script_argv_make): New prototype.
15918 (grub_script_setparams): New prototype.
15920 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
15922 * grub-core/normal/completion.c (grub_normal_do_completion): Fix
15925 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
15927 Support for passing block of commands as an argument to extcmds.
15929 * Makefile.util.def: Rules for new test.
15930 * tests/grub_script_blockarg.in: New test.
15931 * grub-core/tests/test_blockarg.c: New file, block argument
15932 command used in the test.
15934 * include/grub/extcmd.h (grub_extcmd_context): New struct.
15935 (grub_register_extcmd_prio): New function prototype.
15936 (grub_extcmd_dispatcher): New function prototype.
15937 * include/grub/command.h (GRUB_COMMAND_FLAG_BLOCKS): New command
15939 * include/grub/script_sh.h (struct grub_script): New members
15940 `children', `next_siblings' and `refcnt' for block arguments and
15941 reference counting.
15942 (GRUB_SCRIPT_ARG_TYPE_BLOCK): New argument type.
15943 (grub_script_arg): New member `script' for block argument.
15944 (grub_script_argv): New member `script' for block argument.
15945 (grub_parser_param): New member `scripts' for block argument.
15946 (grub_script_mem_free): New extern function prototype.
15947 (grub_script_ref): New function prototype.
15948 (grub_script_unref): New function prototype.
15950 * grub-core/normal/dyncmd.c (grub_dyncmd_dispatcher): Moved to
15951 extcmd form to support block arguments.
15952 * grub-core/script/argv.c: Block arguments support.
15953 * grub-core/script/execute.c: Likewise.
15954 * grub-core/script/lexer.c: Likewise.
15955 * grub-core/script/main.c: Likewise.
15956 * grub-core/script/script.c: Likewise.
15957 * grub-core/script/parser.y: Likewise. New `block' and `block0'
15960 * grub-core/commands/acpi.c: Update extcmd implementations with
15961 grub_extcmd_context_t.
15962 * grub-core/commands/cat.c: Likewise.
15963 * grub-core/commands/echo.c: Likewise.
15964 * grub-core/commands/extcmd.c: Likewise.
15965 * grub-core/commands/hashsum.c: Likewise.
15966 * grub-core/commands/hdparm.c: Likewise.
15967 * grub-core/commands/help.c: Likewise.
15968 * grub-core/commands/hexdump.c: Likewise.
15969 * grub-core/commands/i386/cpuid.c: Likewise.
15970 * grub-core/commands/i386/pc/drivemap.c: Likewise.
15971 * grub-core/commands/i386/pc/halt.c: Likewise.
15972 * grub-core/commands/i386/pc/sendkey.c: Likewise.
15973 * grub-core/commands/iorw.c: Likewise.
15974 * grub-core/commands/keystatus.c: Likewise.
15975 * grub-core/commands/loadenv.c: Likewise.
15976 * grub-core/commands/ls.c: Likewise.
15977 * grub-core/commands/lspci.c: Likewise.
15978 * grub-core/commands/memrw.c: Likewise.
15979 * grub-core/commands/probe.c: Likewise.
15980 * grub-core/commands/search_wrap.c: Likewise.
15981 * grub-core/commands/setpci.c: Likewise.
15982 * grub-core/commands/sleep.c: Likewise.
15983 * grub-core/disk/loopback.c: Likewise.
15984 * grub-core/hello/hello.c: Likewise.
15985 * grub-core/loader/i386/bsd.c: Likewise.
15986 * grub-core/loader/xnu.c: Likewise.
15987 * grub-core/term/gfxterm.c: Likewise.
15988 * grub-core/term/serial.c: Likewise.
15989 * grub-core/tests/lib/functional_test.c: Likewise.
15991 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
15993 Multi-line quoted strings support.
15995 * grub-core/script/lexer.c (append_newline): Removed.
15996 (grub_script_lexer_yywrap): Refactored.
15997 (grub_script_lexer_init): Refactored.
15998 * grub-core/script/yylex.l (yywrap): New function.
15999 (grub_lexer_resplit): New function.
16000 (grub_lexer_unput): New function.
16001 * include/grub/script_sh.h (grub_lexer_param): New members, unput
16003 * tests/grub_script_echo1.in: Added few more testcases.
16005 2010-09-04 Vladimir Serbinenko <phcoder@gmail.com>
16007 * grub-core/kern/misc.c: Don't add abort alias in utils.
16008 Reported by: echoline.
16010 2010-09-03 BVK Chaitanya <bvk.groups@gmail.com>
16012 Add missing files into "make dist" tarball for other platforms.
16014 * gentpl.py (script): Use dist_noinst_DATA instead of EXTRA_DIST.
16015 * conf/Makefile.common (dist_noinst_DATA): New variable.
16016 * conf/Makefile.extra-dist: Added missing make dist files.
16017 * grub-core/Makefile.core.def: Likewise.
16019 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
16021 Compress grub_prefix.
16023 * grub-core/boot/i386/pc/lnxboot.S: Use
16024 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE.
16025 * grub-core/kern/i386/pc/startup.S: Move grub_prefix to compressed part.
16026 * include/grub/offsets.h: Rename GRUB_MACHINE_DATA_END to
16027 GRUB_MACHINE_PREFIX_END. All users updated.
16028 (GRUB_KERNEL_I386_PC_PREFIX): Set to GRUB_KERNEL_I386_PC_RAW_SIZE.
16029 (GRUB_KERNEL_I386_PC_PREFIX_END): Set to GRUB_KERNEL_I386_PC_PREFIX
16031 (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
16032 * util/grub-mkimage.c (image_target_desc): Change data_end to
16033 prefix_end. All users updated.
16035 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
16037 * grub-core/loader/i386/bsd.c (grub_freebsd_boot): Set %ebp to sane
16039 (grub_openbsd_boot): Likewise.
16040 (grub_netbsd_boot): Likewise.
16041 * grub-core/loader/i386/xnu.c (grub_xnu_boot_resume): Likewise.
16042 (grub_xnu_boot): Likewise.
16044 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
16046 * configure.ac: Clean LIBS variable after tests.
16048 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
16050 * INSTALL: Document that libdevmapper needs to be 1.02.34 or later.
16052 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
16054 * configure.ac: Check for dm_log_with_errno_init in libdevmapper and
16055 echo if libdevmapper will be used.
16057 2010-09-02 Ian Turner <Ian.Turner@deshaw.com>
16059 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_read): Keep the blocksize
16060 constant for the same file.
16062 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
16064 * grub-core/kern/i386/multiboot_mmap.c: Remove leftover include.
16066 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
16068 * .bzrignore: Add *.pp, **/.dirstamp, grub-core/*.module, and
16071 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
16073 Zero %ebp and %edi when entering Linux's 32-bit entry point, as
16074 required by the boot protocol.
16076 * include/grub/i386/relocator.h (struct grub_relocator32_state): Add
16077 ebp and edi members.
16078 * grub-core/lib/i386/relocator.c (grub_relocator_boot): Handle
16079 state.ebp and state.edi.
16080 * grub-core/lib/i386/relocator32.S (grub_relocator32_start): Set
16081 %ebp and %edi according to grub_relocator32_ebp and
16082 grub_relocator32_edi respectively.
16083 * grub-core/loader/i386/linux.c (grub_linux_boot): Zero state.ebp
16086 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
16088 Add i386-pc-pxe image target.
16090 * util/grub-mkimage.c (image_target_desc): New enum value
16092 (image_targets): New target i386-pc-pxe.
16093 (generate_image): Handle i386-pc-pxe image.
16095 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
16099 * grub-core/fs/i386/pc/pxe.c (grub_pxe_pxenv): Put correct type bangpxe.
16100 (grub_pxe_scan): Fix types and pxe_rm_entry computation.
16102 * include/grub/i386/pc/pxe.h (grub_pxe_bangpxe): New struct.
16103 (grub_pxe_pxenv): Correct type.
16105 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
16107 * NEWS: Document most of the important changes since 1.98.
16109 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
16111 * util/grub-mkrescue.in (usage): Tidy up usage output (and hence
16112 generated manual page) a little.
16114 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
16116 * docs/grub.texi: Add myself as an author.
16118 2010-09-01 Vladimir Serbinenko <phcoder@gmail.com>
16120 * Makefile.util.def (libgrub.a): Add missing sunpc.
16121 Reported by: Seth Goldberg.
16123 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
16125 Interrupt wrapping and code simplifications.
16127 * Makefile.util.def (grub-mkrescue): Use x86 tg instead of
16128 x86_noieee1275 which are functionaly equivalent in this case.
16129 (grub-install): Make source on each platform explicit. Enable on
16131 * gentpl.py (x86_efi_pc): Removed group.
16132 (x86_noefi): Likewise.
16133 (i386_noefi): Likewise.
16134 (x86_noieee1275): Likewise.
16135 (i386_noieee1275): Likewise.
16136 (i386_noefi_noieee1275): Likewise.
16137 (i386_pc_qemu_coreboot): Likewise.
16138 (i386_coreboot_multiboot): Likewise.
16139 (i386_pc_coreboot_multiboot_qemu): Likewise.
16140 (x86_noefi_mips): Likewise.
16141 (noieee1275): Likewise.
16142 (ieee1275_mips): Likewise.
16143 (noemu_noieee1275): Likewise.
16146 (videoinkernel): Likewise.
16147 (videomodules): Likewise.
16148 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove
16149 include/grub/elf.h, include/grub/elfload.h, include/grub/net.h,
16150 include/grub/reader.h, include/grub/symbol.h, include/grub/types.h,
16151 include/grub/loader.h, include/grub/msdos_partition.h,
16152 include/grub/machine/biosdisk.h, include/grub/machine/boot.h,
16153 include/grub/machine/console.h, include/grub/machine/vga.h,
16154 include/grub/machine/vbe.h, include/grub/machine/init.h,
16155 include/grub/machine/kernel.h, include/grub/cpu/time.h,
16156 include/grub/cpu/types.h, include/grub/gzio.h and include/grub/menu.h
16157 (KERNEL_HEADER_FILES) [i386-pc]: Add include/grub/machine/int.h.
16158 (KERNEL_HEADER_FILES) [i386-ieee1275]: Add include/grub/i386/pit.h
16159 * grub-core/Makefile.core.def (kernel): Explicit the source for
16160 startup. Explicit the platforms using kern/generic/rtc_get_time_ms.c.
16161 Split ieee1275_mips. Remove kern/i386/halt.c. Remove kern/i386/misc.S.
16162 Enable kern/i386/pit.c on all x86. Remove kern/i386/ieee1275/init.c.
16163 Use videoinkernel tag.
16164 (usb): Enable on all usb.
16165 (usbserial_common): Likewise.
16166 (usbserial_pl2303): Likewise.
16167 (usbserial_ftdi): Likewise.
16168 (uhci): Enable on all x86.
16169 (ohci): Enable on all pci.
16170 (cmostest): Enable on all CMOS.
16171 (acpi): Include commands/acpi.c on all platforms.
16172 (halt): Add relevant lib/*/halt.c.
16173 (hdparm): Enable on all pci.
16175 (usbtest): Enable on all usb.
16176 (ata): Enable on all pci.
16177 (ata_pthru): Likewise.
16178 (usbms): Enable on all usb.
16179 (usb_keyboard): Likewise.
16180 (font): Use tag videomodules.
16182 (datetime): Use tag cmos. Enable on all noemu.
16183 (mmap): Use tags common and x86.
16184 (gfxterm): Use tag videomodules.
16185 (bitmap): Likewise.
16186 (bitmap_scale): Likewise.
16187 (video_fb): Likewise.
16189 * grub-core/bus/usb/ohci.c (grub_ohci_td): Make link_td a pointer and
16190 adjust padding accordingly. All users updated.
16191 (grub_ohci_transaction): Fix bad format specification.
16192 (GRUB_MOD_INIT): Add asserts for struct size.
16193 * grub-core/bus/usb/uhci.c (grub_uhci_pci_iter): Add explicit casts.
16194 (grub_alloc_td): Likewise.
16195 (grub_free_queue): Likewise.
16196 (grub_uhci_transfer): Likewise.
16197 (grub_uhci_transaction): Fix bad format specification.
16198 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
16199 (grub_usb_bulk_readwrite): Likewise.
16200 * grub-core/kern/i386/misc.S (grub_stop): Moved from here ...
16201 * grub-core/commands/i386/pc/halt.c (stop): ...here. Transformed into C.
16203 * grub-core/lib/i386/halt.c (stop): ... and here. Transformed into C.
16205 * grub-core/kern/i386/pc/startup.S (grub_halt): Moved from here ...
16206 * grub-core/commands/i386/pc/halt.c (grub_halt): ...here.
16207 Transformed into C.
16208 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_int13_extensions):
16209 Moved from here ...
16210 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_int13_extensions):
16211 ... here. Transformed into C. Made static.
16212 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_standard):
16213 Moved from here ...
16214 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_standard):
16215 ... here. Transformed into C. Made static.
16216 * grub-core/kern/i386/pc/startup.S
16217 (grub_biosdisk_check_int13_extensions): Moved from here ...
16218 * grub-core/disk/i386/pc/biosdisk.c
16219 (grub_biosdisk_check_int13_extensions): ... here. Transformed into C.
16221 * grub-core/kern/i386/pc/startup.S
16222 (grub_biosdisk_get_cdinfo_int13_extensions): Moved from here ...
16223 * grub-core/disk/i386/pc/biosdisk.c
16224 (grub_biosdisk_get_cdinfo_int13_extensions): ... here.
16225 Transformed into C. Made static.
16226 * grub-core/kern/i386/pc/startup.S
16227 (grub_biosdisk_get_diskinfo_int13_extensions): Moved from here ...
16228 * grub-core/disk/i386/pc/biosdisk.c
16229 (grub_biosdisk_get_diskinfo_int13_extensions): ... here.
16230 Transformed into C. Made static.
16231 * grub-core/kern/i386/pc/startup.S
16232 (grub_biosdisk_get_diskinfo_standard): Moved from here ...
16233 * grub-core/disk/i386/pc/biosdisk.c
16234 (grub_biosdisk_get_diskinfo_standard): ... here.
16235 Transformed into C. Made static.
16236 * grub-core/kern/i386/pc/startup.S
16237 (grub_biosdisk_get_num_floppies): Moved from here ...
16238 * grub-core/disk/i386/pc/biosdisk.c
16239 (grub_biosdisk_get_num_floppies): ... here.
16240 Transformed into C. Made static.
16241 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_diskinfo_real):
16243 * grub-core/kern/i386/pc/startup.S (grub_pxe_scan): Moved from here ...
16244 * grub-core/fs/i386/pc/pxe.c (grub_pxe_scan): ... here.
16245 Transformed into C. Made static.
16246 * grub-core/kern/i386/pc/startup.S (grub_rm_entry): Moved from here ...
16247 * grub-core/fs/i386/pc/pxe.c (grub_rm_entry): ... here.
16248 Transformed into C. Made static.
16249 * grub-core/kern/i386/ieee1275/init.c: Removed.
16250 * grub-core/kern/i386/misc.S: Likewise.
16251 * grub-core/kern/i386/pc/startup.S (grub_get_memsize):
16252 Splitted from here ...
16253 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): ... here.
16254 Transformed into C. Made static. All users updated.
16255 * grub-core/kern/i386/pc/mmap.c (grub_get_ext_memsize): ... and here.
16256 Transformed into C. Made static. All users updated.
16257 * grub-core/kern/i386/pc/startup.S (grub_get_eisa_mmap):
16259 * grub-core/kern/i386/pc/mmap.c (grub_get_eisa_mmap): ... here.
16260 Transformed into C. Made static. All users updated.
16261 * grub-core/kern/i386/pc/startup.S (grub_get_mmap_entry):
16263 * grub-core/kern/i386/pc/mmap.c (grub_get_mmap_entry): ... here.
16264 Transformed into C. Made static. All users updated.
16265 * grub-core/kern/i386/pc/startup.S (grub_stop_floppy):
16266 Removed (replaced by C version).
16267 * grub-core/kern/i386/pc/startup.S (grub_vga_set_mode):
16269 * grub-core/video/i386/pc/vga.c (grub_vga_set_mode): ...here.
16270 Transformed into C. Made static.
16271 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_controller_info):
16273 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_controller_info):
16274 ... here. Transformed into C.
16275 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode_info):
16277 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode_info):
16278 ... here. Transformed into C.
16279 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_mode):
16281 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_mode):
16282 ... here. Transformed into C. Made static.
16283 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode):
16285 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode):
16286 ... here. Transformed into C.
16287 * grub-core/kern/i386/pc/startup.S
16288 (grub_vbe_bios_getset_dac_palette_width):Moved from here...
16289 * grub-core/video/i386/pc/vbe.c
16290 (grub_vbe_bios_getset_dac_palette_width):... here. Transformed into C.
16291 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_memory_window):
16293 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_memory_window):
16294 ... here. Transformed into C.
16295 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_memory_window):
16297 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_memory_window):
16298 ... here. Transformed into C.
16299 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_scanline_length):
16301 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_scanline_length):
16302 ... here. Transformed into C.
16303 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_scanline_length):
16305 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_scanline_length):
16306 ... here. Transformed into C.
16307 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_display_start):
16309 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_display_start):
16310 ... here. Transformed into C. Made static.
16311 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_display_start):
16313 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_display_start):
16314 ... here. Transformed into C. Made static.
16315 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_palette_data):
16317 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_palette_data):
16318 ... here. Transformed into C. Made static.
16319 * grub-core/kern/i386/pc/startup.S (grub_pxe_call): Receive
16320 pxe_rm_entry as third argument.
16321 (grub_bios_interrupt): New function.
16322 * grub-core/kern/i386/qemu/mmap.c: Remove useless include.
16323 * grub-core/kern/i386/qemu/startup.S (codestart): Do cli;hlt instead
16324 of calling grub_stop.
16325 * grub-core/kern/efi/efi.c (grub_halt): Moved from here ...
16326 * grub-core/lib/efi/halt.c (grub_halt): ...here.
16327 * grub-core/kern/emu/main.c (grub_halt): Moved from here ...
16328 * grub-core/lib/emu/halt.c (grub_halt): ... here.
16329 * grub-core/lib/i386/halt.c: Moved from here ...
16330 * grub-core/lib/i386/halt.c: ... here.
16331 * grub-core/kern/ieee1275/openfw.c (grub_halt): Moved from here ...
16332 * grub-core/lib/ieee1275/halt.c (grub_halt): ... here.
16333 * grub-core/loader/i386/pc/linux.c (grub_linux16_boot): Call
16335 * grub-core/loader/i386/xnu.c (guessfsb) [IEEE1275]: Enable.
16336 * include/grub/i386/coreboot/init.h: Removed.
16337 * include/grub/i386/multiboot/init.h: Likewise.
16338 * include/grub/i386/pc/biosdisk.h: Removed all function prototypes.
16339 * include/grub/i386/pc/init.h: Likewise except grub_gate_a20.
16340 * include/grub/i386/pc/int.h: New file.
16341 * include/grub/i386/pc/pxe.h (GRUB_PXE_SIGNATURE): New definition.
16342 (grub_pxe_scan): Removed.
16343 (grub_pxe_call): Update prototype.
16344 * include/grub/i386/pc/vbe.h: Removed EXPORT_FUNC and useless
16346 * include/grub/i386/pc/vga.h (grub_vga_set_mode): Removed.
16347 * include/grub/i386/qemu/init.h: Removed.
16348 * include/grub/mips/yeeloong/kernel.h (grub_reboot): Add missing
16350 (grub_halt): Likewise.
16351 * include/grub/misc.h (grub_halt): Removed EXPORT_FUNC.
16352 (grub_reboot): Likewise.
16353 * grub-core/kern/i386/coreboot/init.c (grub_stop_floppy): Moved from here...
16354 * include/grub/i386/floppy.h (grub_stop_floppy): ...here. Inlined.
16355 * grub-core/kern/i386/pc/startup.S (grub_hard_stop): Removed.
16357 2010-08-30 Robert Millan <rmh@gnu.org>
16359 * NEWS: Document addition of ZFS support in `grub-install' and
16362 2010-08-30 BVK Chaitanya <bvk.groups@gmail.com>
16364 * conf/Makefile.common (CPPFLAGS_DEFAULT): Remove leading / from
16367 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
16369 Remove leftover embedding of font objects.
16371 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
16372 * util/grub-install.in (font): Removed.
16373 * util/grub-mkimage.c (generate_image): Remove font support. All users
16376 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
16378 Remove leftover embedding of font objects.
16380 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
16381 * util/grub-install.in (font): Removed.
16382 * util/grub-mkimage.c (generate_image): Remove font support. All users
16385 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
16387 * docs/grub.texi (Network): Fix reference to pxe_blksize.
16388 Reported by: Ian Turner
16390 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
16392 * grub-core/normal/menu.c (grub_wait_after_message): Add a 10 second
16393 timeout to avoid indefinite boot stalling.
16395 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
16397 * grub-core/normal/color.c (grub_env_write_color_normal): Fix a warning.
16398 (grub_env_write_color_highlight): Likewise.
16400 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
16402 * grub-core/normal/term.c (print_more): Return to normal and not
16403 to standard state after printing "---MORE---".
16405 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
16407 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate):
16408 Mask out the bit 0x80 since it has other meaning that specifiing color.
16410 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
16412 New relocator. Allows for more kernel support and more straightforward
16415 * Makefile.am (BOOTTARGET): New variable.
16416 (QEMU32): Likewise.
16417 (linux.init.x86_64): New target.
16418 (linux.init.i386): Likewise.
16419 (multiboot.elf): Likewise.
16420 (kfreebsd.elf): Likewise.
16421 (kfreebsd.aout): Likewise.
16422 (pc-chainloader.elf): Likewise.
16423 (pc-chainloader.bin): Likewise.
16424 (ntldr.elf): Likewise.
16425 (ntldr.bin): Likewise.
16426 (multiboot2.elf): Likewise.
16427 (kfreebsd.init.x86_64): Likewise.
16428 (kfreebsd.init.i386): Likewise.
16429 (knetbsd.init.i386): Likewise.
16430 (kopenbsd.init.i386): Likewise.
16431 (knetbsd.init.x86_64): Likewise.
16432 (kopenbsd.init.x86_64): Likewise.
16433 (linux-initramfs.i386): Likewise.
16434 (linux-initramfs.x86_64): Likewise.
16435 (kfreebsd-mfsroot.i386.img): Likewise.
16436 (knetbsd.image.i386): Likewise.
16437 (kopenbsd.image.i386): Likewise.
16438 (kopenbsd.image.x86_64): Likewise.
16439 (knetbsd.miniroot-image.i386.img): Likewise.
16440 (kfreebsd-mfsroot.x86_64.img): Likewise.
16441 (knetbsd.image.x86_64): Likewise.
16442 (knetbsd.miniroot-image.x86_64.img): Likewise.
16443 (kfreebsd-mfsroot.i386.gz): Likewise.
16444 (bootcheck-kfreebsd-i386): Likewise.
16445 (kfreebsd-mfsroot.x86_64.gz): Likewise.
16446 (bootcheck-kfreebsd-x86_64): Likewise.
16447 (knetbsd.miniroot-image.i386.gz): Likewise.
16448 (bootcheck-knetbsd-i386): Likewise.
16449 (bootcheck-kopenbsd-i386): Likewise.
16450 (bootcheck-kopenbsd-x86_64): Likewise.
16451 (knetbsd.miniroot-image.x86_64.gz): Likewise.
16452 (bootcheck-knetbsd-x86_64): Likewise.
16453 (bootcheck-linux-i386): Likewise.
16454 (bootcheck-linux-x86_64): Likewise.
16455 (bootcheck-linux16-i386): Likewise.
16456 (bootcheck-linux16-x86_64): Likewise.
16457 (bootcheck-multiboot): Likewise.
16458 (bootcheck-multiboot2): Likewise.
16459 (bootcheck-kfreebsd-aout): Likewise.
16460 (bootcheck-pc-chainloader): Likewise.
16461 (bootcheck-ntldr): Likewise.
16462 (CLEANFILES): Add new targets.
16463 (BOOTCHECKS): New variable.
16464 (.PHONY): Add bootchecks.
16465 (SUCCESSFUL_BOOT_STRING): New variable.
16466 (BOOTCHECK_TIMEOUT): Likewise.
16467 (bootcheck): New target
16468 * Makefile.util.def (grub-mkrescue): Enable on i386-multiboot.
16469 * configure.ac: Correct efiemu excuse.
16470 * docs/grub.texi (Supported kernels): New chapter.
16471 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add
16472 include/grub/mm_private.h. Simplify inclusion of
16473 include/grub/boot.h, include/grub/loader.h
16474 and include/grub/msdos_partition.h
16475 (KERNEL_HEADER_FILES) [i386_coreboot]:
16476 Remove include/grub/machine/loader.h. Add include/grub/i386/pit.h.
16477 (KERNEL_HEADER_FILES) [i386_multiboot]: Likewise.
16478 (KERNEL_HEADER_FILES) [i386_qemu]: Likewise.
16479 (KERNEL_HEADER_FILES) [i386_ieee1275]: Remove
16480 include/grub/machine/loader.h.
16481 (KERNEL_HEADER_FILES) [x86_64-efi]: Likewise.
16482 * grub-core/Makefile.core.def (kernel): Remove kern/i386/loader.S from
16484 (pci.mod): Enable on i386-multiboot.
16485 (acpi.mod): Enable on i386-multiboot and i386-coreboot.
16486 (efiemu.mod): Enable on i386-coreboot, i386-ieee1275, i386-multiboot and
16488 (relocator.mod): Rewritten.
16489 (aout.mod): Enable on all x86.
16490 (bsd.mod): Likewise.
16491 (ntldr.mod): New module.
16492 (linux.mod): Use loader/i386/linux.c on all x86.
16493 (xnu.mod): Enable on all x86.
16494 (vga_text.mod): disable on EFI and QEMU.
16495 * grub-core/efiemu/i386/coredetect.c: Remove useless include.
16496 * grub-core/efiemu/i386/pc/cfgtables.c: Likewise.
16497 * grub-core/efiemu/loadcore.c: Likewise.
16498 * grub-core/efiemu/main.c: Likewise.
16499 (grub_efiemu_exit_boot_services): Removed.
16500 (grub_efiemu_finish_boot_services): Likewise.
16501 * grub-core/efiemu/mm.c (grub_efiemu_finish_boot_services): New
16503 * grub-core/efiemu/i386/nocfgtables.c: New file.
16504 * grub-core/kern/dl.c (grub_dl_unload_all): Removed.
16505 * grub-core/kern/efi/efi.c (grub_efi_exit_boot_services): Removed.
16506 (grub_efi_finish_boot_services): Moved from here ...
16507 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services): ...here.
16508 Fille finish memory map and related data.
16509 (finish_mmap_buf): New variable.
16510 (grub_efi_uintn_t finish_mmap_size): Likewise.
16511 (grub_efi_uintn_t finish_key): Likewise.
16512 (grub_efi_uintn_t finish_desc_size): Likewise.
16513 (grub_efi_uint32_t finish_desc_version): Likewise.
16514 (grub_efi_is_finished): Likewise.
16515 (grub_efi_get_memory_map): Use saved memory map if EFI is already
16517 * grub-core/kern/elf.c (grub_elf32_phdr_iterate): Make global.
16518 (grub_elf64_phdr_iterate): Likewise.
16519 * grub-core/kern/i386/coreboot/init.c (grub_os_area_addr): Removed.
16520 (grub_os_area_size): Likewise.
16521 (grub_machine_init): Don't reserve os area.
16522 * grub-core/kern/i386/coreboot/startup.S: Don't include loader.S.
16523 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
16524 * grub-core/kern/i386/loader.S: Removed.
16525 * grub-core/kern/i386/pc/init.c (grub_os_area_addr): Removed.
16526 (grub_os_area_size): Likewise.
16527 (grub_machine_init): Don't reserve os area.
16528 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
16529 Don't call grub_dl_unload_all.
16530 Don't include loader.S.
16531 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
16532 Declare the memory after _end as available.
16533 * grub-core/kern/mm.c (GRUB_MM_FREE_MAGIC): Moved from here...
16534 * include/grub/mm_private.h (GRUB_MM_FREE_MAGIC): ... here.
16535 (GRUB_MM_ALLOC_MAGIC): Moved from here...
16536 * include/grub/mm_private.h (GRUB_MM_ALLOC_MAGIC): ... here.
16537 * grub-core/kern/mm.c (grub_mm_header): Moved from here...
16538 * include/grub/mm_private.h (grub_mm_header): ... here.
16539 * grub-core/kern/mm.c (GRUB_MM_ALIGN): Moved from here...
16540 * include/grub/mm_private.h (GRUB_MM_ALIGN): ... here.
16541 * grub-core/kern/mm.c (grub_mm_region): Moved from here ...
16542 (grub_mm_region): ..here. Removed addr. Added pre_size.
16544 * grub-core/kern/mm.c (base): Renamed to ...
16545 (grub_mm_base): ... this. Made global.
16546 (grub_real_malloc): Alloc from end of region.
16547 (grub_memalign): Don't attempt to malloc if grub_mm_base is NULL.
16548 * grub-core/kern/powerpc/cache.S (grub_arch_sync_caches): Move to ...
16549 * grub-core/kern/powerpc/cache_flush.S: ... here.
16550 * grub-core/lib/efi/relocator.c: New file.
16551 * grub-core/lib/i386/relocator.c: Rewritten.
16552 * grub-core/lib/i386/relocator16.S: New file.
16553 * grub-core/lib/i386/relocator32.S: Likewise.
16554 * grub-core/lib/i386/relocator64.S: Likewise.
16555 * grub-core/lib/i386/relocator_asm.S: Rewritten.
16556 * grub-core/lib/i386/relocator_common.S: New file.
16557 * grub-core/lib/ieee1275/relocator.c: Likewise.
16558 * grub-core/lib/mips/relocator.c: Rewritten.
16559 * grub-core/lib/mips/relocator_asm.S: Renamed variables and minor
16560 stylistic adjustments.
16561 * grub-core/lib/powerpc/relocator.c: New file.
16562 * grub-core/lib/powerpc/relocator_asm.S: Likewise.
16563 * grub-core/lib/relocator.c: Rewritten.
16564 * grub-core/lib/x86_64/relocator_asm.S: New file.
16565 * grub-core/loader/aout.c (grub_aout_load): Make load_addr a void *.
16566 * grub-core/loader/i386/bsd.c (NETBSD_DEFAULT_VIDEO_MODE): New const.
16567 (bsd_tag): New struct.
16568 (tags): New variable.
16569 (tags_last): Likewise.
16570 (netbsd_module): New struct.
16571 (netbsd_mods): New variable.
16572 (netbsd_mods_last): Likewise.
16573 (openbsd_opts): New parameter "serial".
16574 (OPENBSD_SERIAL_ARG): New definition.
16575 (netbsd_opts): New parameter "serial".
16576 (NETBSD_SERIAL_ARG): New definition.
16577 (grub_freebsd_add_meta): Reorganised into ...
16578 (grub_bsd_add_meta): ...this. All users updated.
16579 (grub_freebsd_add_mmap): Reorganised into ...
16580 (generate_e820_mmap): ...this...
16581 (grub_bsd_add_mmap): ...and this. All users updated.
16582 (grub_freebsd_list_modules): Use tags.
16583 (grub_netbsd_add_meta_module): New function.
16584 (grub_netbsd_list_modules): Likewise.
16585 (grub_freebsd_boot): Use relocator and finish EFI.
16586 (grub_openbsd_boot): Likewise.
16587 (grub_netbsd_setup_video): New function.
16588 (grub_netbsd_add_modules): Likewise.
16589 (grub_netbsd_boot): Use grub_netbsd_add_modules, relocator, netbsd_tags
16591 (grub_bsd_unload): Unload tags.
16592 (grub_bsd_load_aout): Use relocator.
16593 (grub_bsd_elf32_size_hook): New function.
16594 (grub_bsd_elf32_hook): Use relocator.
16595 (grub_bsd_elf64_size_hook): New function.
16596 (grub_bsd_elf64_hook): Use relocator.
16597 (grub_bsd_load_elf): Use relocator and call grub_openbsd_find_ramdisk.
16598 (grub_bsd_load): Zero-out openbsd_ramdisk.
16599 (grub_bsd_load): Use relocator.
16600 (grub_cmd_openbsd): Support serial.
16601 (grub_cmd_netbsd): Support modules.
16602 (grub_cmd_freebsd_module): Use relocator.
16603 (grub_netbsd_module_load): New function.
16604 (grub_cmd_netbsd_module): Likewise.
16605 (grub_cmd_openbsd_ramdisk): Likewise.
16606 (GRUB_MOD_INIT): Register knetbsd_module, knetbsd_module_elf and
16608 (GRUB_MOD_FINI): Unregister new commands.
16609 * grub-core/loader/i386/bsdXX.c (load): Remove useless checks.
16610 (grub_freebsd_load_elfmodule_obj): Use relocator.
16611 (grub_freebsd_load_elfmodule): Likewise.
16612 (grub_freebsd_load_elf_meta): Likewise.
16613 (grub_netbsd_load_elf_meta): New function.
16614 (grub_openbsd_find_ramdisk): Likewise.
16615 * grub-core/loader/i386/bsd_helper.S: Removed.
16616 * grub-core/loader/i386/bsd_pagetable.c: Support relocator.
16617 * grub-core/loader/i386/bsd_trampoline.S: Removed.
16618 * grub-core/loader/i386/efi/linux.c: Likewise.
16619 * grub-core/loader/i386/ieee1275/linux.c: Likewise.
16620 * grub-core/loader/i386/linux.c (HAS_VGA_TEXT): New const.
16621 (DEFAULT_VIDEO_MODE): Likewise.
16622 (real_mode_target): New variable.
16623 (prot_mode_target): Likewise.
16624 (initrd_mem_target): Likewise.
16625 (relocator): Likewise.
16626 (efi_mmap_buf): Likewise.
16627 (efi_mmap_size): Likewise.
16628 (find_efi_mmap_size): Moved from grub-core/loader/i386/efi/linux.c.
16629 (free_pages): Use relocator.
16630 (allocate_pages): Account for efi_mmap and use relocator. Return error.
16631 (grub_linux_setup_video): Return error.
16632 (grub_linux_trampoline_start): Removed.
16633 (grub_linux_trampoline_end): Likewise.
16634 (grub_linux_boot): Use relocator and DEFAULT_VIDEO_MODE. Pass console
16635 andd video parameters depending on firmware.
16636 [GRUB_MACHINE_IEEE1275]: Pass OFW parameters.
16637 [GRUB_MACHINE_EFI]: Pass EFI parameters.
16638 (grub_cmd_linux) [GRUB_MACHINE_EFI]: Likewise.
16639 (grub_cmd_initrd): Use relocator.
16640 * grub-core/loader/i386/linux_trampoline.S: Removed.
16641 * grub-core/loader/i386/multiboot_mbi.c (elf_sec_num): New variable.
16642 (elf_sec_entsize): Likewise.
16643 (elf_sec_shstrndx): Likewise.
16644 (elf_sections): Likewise.
16645 (grub_multiboot_load): Use relocator.
16646 (grub_multiboot_get_mbi_size): Account for sections.
16647 (grub_multiboot_make_mbi): Use relocator and support sections.
16648 (grub_multiboot_add_elfsyms): New function.
16649 (grub_multiboot_free_mbi): Free sections.
16650 * grub-core/loader/i386/pc/linux.c (relocator): New variable.
16651 (grub_linux_real_target): Likewise.
16652 (grub_linux_real_chunk): Likewise.
16653 (grub_linux16_prot_size): Likewise.
16654 (grub_linux16_boot): Use relocator.
16655 (grub_linux_unload): Unload relocator.
16656 (grub_cmd_linux): Use relocator.
16657 (grub_cmd_initrd): Likewise.
16658 * grub-core/loader/i386/pc/ntldr.c: New file.
16659 * grub-core/loader/i386/xnu.c (guessfsb) [GRUB_MACHINE_IEEE1275]:
16660 Don't try to guess CPU frequency.
16661 (grub_xnu_set_video): Stretch bitmap.
16662 (grub_xnu_boot): Use relocator.
16663 * grub-core/loader/mips/linux.c (grub_linux_boot): Use relocator.
16664 (grub_linux_unload): Free relocator.
16665 (grub_linux_load32): Use relocator.
16666 (grub_linux_load64): Likewise.
16667 (grub_cmd_initrd): Likewise.
16668 * grub-core/loader/multiboot.c (grub_multiboot_boot): Use relocator.
16669 (grub_multiboot_unload): Unload relocator.
16670 (grub_cmd_multiboot): Use relocator.
16671 (grub_cmd_module): Likewise.
16672 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elfXX):
16673 Use relocator and support sections.
16674 * grub-core/loader/multiboot_mbi2.c(elf_sec_num): New variable.
16675 (elf_sec_entsize): Likewise.
16676 (elf_sec_shstrndx): Likewise.
16677 (elf_sections): Likewise.
16678 (grub_multiboot_load): Use relocator.
16679 (grub_multiboot_get_mbi_size): Account for sections.
16680 (grub_multiboot_make_mbi): Use relocator and support sections.
16681 (grub_multiboot_add_elfsyms): New function.
16682 * grub-core/loader/powerpc/ieee1275/linux.c: Remove useless include.
16683 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
16684 * grub-core/loader/xnu.c (grub_xnu_heap_malloc): Use relocator.
16685 Prototype changed. All users updated.
16686 (grub_xnu_align_heap): Simplified.
16687 (grub_xnu_writetree_toheap): Likewise.
16688 (grub_xnu_unload): Unload relocator.
16689 (grub_cmd_xnu_kernel): Use relocator.
16690 (grub_cmd_xnu_kernel64): Likewise.
16691 (grub_xnu_register_memory): Simplified.
16692 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Use relocator.
16693 * grub-core/term/efi/console.c (grub_console_putchar): Abort if
16695 (grub_console_checkkey): Likewise.
16696 (grub_console_getkey): Likewise.
16697 (grub_console_getwh): Likewise.
16698 (grub_console_getxy): Likewise.
16699 (grub_console_gotoxy): Likewise.
16700 (grub_console_cls): Likewise.
16701 (grub_console_setcolorstate): Likewise.
16702 (grub_console_setcursor): Likewise.
16703 * grub-core/term/ns8250.c (grub_ns8250_hw_get_port): New function.
16704 * grub-core/tests/boot/kbsd.init-i386.S: New file.
16705 * grub-core/tests/boot/kbsd.init-x86_64.S: Likewise.
16706 * grub-core/tests/boot/kbsd.spec.txt: Likewise.
16707 * grub-core/tests/boot/kernel-8086.S: Likewise.
16708 * grub-core/tests/boot/kernel-i386.S: Likewise.
16709 * grub-core/tests/boot/kfreebsd-aout.cfg: Likewise.
16710 * grub-core/tests/boot/kfreebsd.cfg: Likewise.
16711 * grub-core/tests/boot/kfreebsd.init-i386.S: Likewise.
16712 * grub-core/tests/boot/kfreebsd.init-x86_64.S: Likewise.
16713 * grub-core/tests/boot/knetbsd.cfg: Likewise.
16714 * grub-core/tests/boot/kopenbsd.cfg: Likewise.
16715 * grub-core/tests/boot/kopenbsdlabel.txt: Likewise.
16716 * grub-core/tests/boot/linux.cfg: Likewise.
16717 * grub-core/tests/boot/linux.init-i386.S: Likewise.
16718 * grub-core/tests/boot/linux.init-x86_64.S: Likewise.
16719 * grub-core/tests/boot/linux16.cfg: Likewise.
16720 * grub-core/tests/boot/multiboot.cfg: Likewise.
16721 * grub-core/tests/boot/multiboot2.cfg: Likewise.
16722 * grub-core/tests/boot/ntldr.cfg: Likewise.
16723 * grub-core/tests/boot/pc-chainloader.cfg: Likewise.
16724 * include/grub/aout.h (grub_aout_load): Make load_addr a void *.
16725 * include/grub/autoefi.h (grub_autoefi_finish_boot_services):
16727 * include/grub/dl.h (grub_dl_unload_all): Removed.
16728 * include/grub/efi/efi.h (grub_efi_exit_boot_services): Likewise.
16729 (grub_efi_finish_boot_services): Change prototype.
16730 (grub_efi_is_finished): New variable.
16731 * include/grub/efiemu/efiemu.h (grub_efiemu_finish_boot_services):
16733 (grub_efiemu_finish_boot_services): Removed.
16734 (grub_machine_efiemu_init_tables): New prototype.
16735 * include/grub/elfload.h (grub_elf32_phdr_iterate): Likewise.
16736 (grub_elf64_phdr_iterate): Likewise.
16737 * include/grub/i386/bsd.h: Include relocator.h.
16738 (freebsd_tag_header): New struct.
16739 (grub_openbsd_bios_mmap): Removed.
16740 (grub_unix_real_boot): Removed.
16741 (grub_freebsd_load_elfmodule32): Changed prototype.
16742 (grub_freebsd_load_elfmodule_obj64): Likewise.
16743 (grub_freebsd_load_elf_meta32): Likewise.
16744 (grub_freebsd_load_elf_meta64): Likewise.
16745 (grub_freebsd_add_meta): Removed.
16746 (grub_netbsd_load_elf_meta32): New prototype.
16747 (grub_netbsd_load_elf_meta64): Likewise.
16748 (grub_bsd_add_meta): Likewise.
16749 (grub_openbsd_ramdisk_descriptor): New struct.
16750 (grub_openbsd_find_ramdisk32): New prototype.
16751 (grub_openbsd_find_ramdisk64): Likewise.
16752 * include/grub/i386/coreboot/loader.h: Removed.
16753 * include/grub/i386/efi/loader.h: Likewise.
16754 * include/grub/i386/ieee1275/loader.h: Likewise.
16755 * include/grub/i386/linux.h (linux_kernel_header): Change void *
16757 * include/grub/i386/loader.h: Removed.
16758 * include/grub/i386/memory.h (GRUB_MEMORY_CPU_CR4_PAE_ON): Correct the
16760 (GRUB_MEMORY_CPU_CR4_PSE_ON): New definition.
16761 (grub_phys_addr_t): New type.
16762 (grub_vtop): New inline function.
16763 (grub_map_memory): Likewise.
16764 (grub_unmap_memory): Likewise.
16765 * include/grub/i386/multiboot/loader.h: Removed.
16766 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK): Removed.
16767 (NETBSD_BTINFO_CONSOLE): New definition.
16768 (NETBSD_BTINFO_SYMTAB): Likewise.
16769 (NETBSD_BTINFO_MODULES): Likewise.
16770 (NETBSD_BTINFO_FRAMEBUF): Likewise.
16771 (grub_netbsd_bootinfo): New struct.
16772 (grub_netbsd_btinfo_common): Use explicit bitsize.
16773 (grub_netbsd_btinfo_mmap_entry): Removed.
16774 (GRUB_NETBSD_MAX_BOOTPATH_LEN): New definition.
16775 (grub_netbsd_btinfo_bootdisk): New struct.
16776 (grub_netbsd_btinfo_symtab): Likewise.
16777 (grub_netbsd_btinfo_serial): Likewise.
16778 (grub_netbsd_btinfo_modules): Likewise.
16779 (grub_netbsd_btinfo_framebuf): Likewise.
16780 (GRUB_NETBSD_MAX_ROOTDEVICE_LEN): New definition.
16781 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_CONSOLE):
16783 (grub_openbsd_bootargs): Use explicit bitsize.
16784 (grub_openbsd_bootarg_console): New struct.
16785 (GRUB_OPENBSD_COM_MAJOR): New definition.
16786 (GRUB_OPENBSD_VGA_MAJOR): Likewise.
16787 * include/grub/i386/pc/efiemu.h: Removed.
16788 * include/grub/i386/pc/loader.h: Don't include cpu/loader.h.
16789 * include/grub/i386/qemu/loader.h: Removed.
16790 * include/grub/i386/relocator.h: Rewritten.
16791 * include/grub/i386/xnu.h (grub_xnu_heap_will_be_at): Removed.
16792 * include/grub/mips/memory.h: New file.
16793 * include/grub/mips/multiboot.h: Rewritten.
16794 * include/grub/mips/relocator.h: Rewritten.
16795 * include/grub/mips/yeeloong/memory.h (grub_phys_addr_t): New type.
16796 (grub_vtop): New function.
16797 (grub_map_memory): Likewise.
16798 (grub_unmap_memory): Likewise.
16799 * include/grub/misc.h (ALIGN_DOWN): New definition.
16800 * include/grub/mm.h (grub_mm_check_real): New proto.
16801 (GRUB_MM_CHECK): New definition.
16802 * include/grub/mm_private.h: New file.
16803 * include/grub/multiboot.h (grub_multiboot_relocator): New variable.
16804 (grub_multiboot_get_mbi_size): Removed.
16805 (grub_multiboot_make_mbi): Change prottype.
16806 (grub_multiboot_set_accepts_video): New proto.
16807 (grub_multiboot_add_elfsyms): Likewise.
16808 (grub_multiboot_payload_eip): New variable.
16809 * include/grub/ns8250.h (grub_ns8250_hw_get_port) [!ASM_FILE]:
16811 * include/grub/offsets.h (GRUB_KERNEL_I386_MULTIBOOT_PREFIX):
16813 (GRUB_KERNEL_I386_MULTIBOOT_DATA_END): Likewise.
16814 (GRUB_KERNEL_I386_MULTIBOOT_MOD_ALIGN): Likewise.
16815 * include/grub/powerpc/ieee1275/loader.h: Removed.
16816 * include/grub/powerpc/memory.h: New file.
16817 * include/grub/powerpc/relocator.h: Likewise.
16818 * include/grub/relocator.h: Likewise.
16819 * include/grub/relocator_private.h: Likewise.
16820 * include/grub/sparc64/ieee1275/loader.h: Removed.
16821 * include/grub/x86_64/memory.h: New file.
16822 * include/grub/xnu.h (grub_xnu_writetree_toheap): Changed prototype.
16823 (grub_xnu_heap_malloc): Likewise.
16824 (grub_xnu_heap_real_start): Removed.
16825 (grub_xnu_heap_start): Likewise.
16826 (grub_xnu_relocator): New variable.
16827 (grub_xnu_heap_target_start): Likewise.
16828 * tests/util/grub-shell.in: Support non-pc.
16829 * util/grub-mkimage.c (image_targets): Fix multiboot target.
16831 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
16833 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Avoid deadloop
16835 (grub_bidi_logical_to_visual): Check that malloc succeded.
16836 * grub-core/normal/term.c (grub_puts_terminal): Fix fallback to dumb
16838 (grub_xputs_normal): Likewise.
16840 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
16842 * grub-core/Makefile.core.def (kernel): Add kern/mips/cache_flush.S to
16845 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
16847 * grub-core/efiemu/runtime/efiemu.sh: Removed.
16849 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
16851 * Makefile.util.def (grub-ofpathname): Add missing ldadd.
16853 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
16855 * grub-core/kern/misc.c (grub_real_dprintf): Always refresh after
16858 2010-08-29 BVK Chaitanya <bvk.groups@gmail.com>
16860 * Makefile.util.def: Use ldadd instead of ldflags for libraries.
16862 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
16864 * grub-core/normal/term.c (print_more): Fix a memory leak.
16865 (grub_puts_terminal): Revert to dumb puts if memory allocation fails.
16866 (grub_xputs_normal): Likewise.
16868 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
16870 * grub-core/script/lexer.c (grub_script_lexer_init): Don't look before
16871 the begining of the string
16873 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
16875 * grub-core/script/script.c (grub_script_parse): Free parsed on
16878 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
16880 * grub-core/normal/completion.c (grub_normal_do_completion): Free argv
16883 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
16885 * grub-core/normal/cmdline.c (grub_cmdline_get): Free cl_terms on
16888 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
16890 * grub-core/term/gfxterm.c (grub_gfxterm_term_fini): Free the text buffer.
16891 (scroll_up): Fix a memory leak.
16893 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
16895 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Handle grub_disk_read
16898 2010-08-27 Vladimir Serbinenko <phcoder@gmail.com>
16900 Handle USB pendrives exposed as floppies.
16902 * grub-core/boot/i386/pc/boot.S: Check LBA even on what appears to be
16904 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
16905 Check for partitions on all devices.
16907 2010-08-25 Vladimir Serbinenko <phcoder@gmail.com>
16909 * grub-core/term/ieee1275/ofconsole.c (put): Correct prototype.
16910 (readkey): Likewise.
16912 2010-08-25 BVK Chaitanya <bvk.groups@gmail.com>
16914 Multiple variable names support to "export" command.
16916 * normal/context.c (grub_cmd_export): "export" command supports
16917 multiple variable names.
16919 2010-08-23 Samuel Thibault <samuel.thibault@ens-lyon.org>
16921 * util/grub.d/30_os-prober.in: Fix conversion from grub-probe
16922 --target=drive output to Mach device name.
16924 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
16926 New Automake based build system for GRUB.
16928 * ABOUT-NLS: New file.
16929 * Makefile.am: New file. GRUB host utils' rules that doesn't fit
16930 in Makefile.util.def file.
16931 * Makefile.util.def: New file. Autogen build definitions file for
16933 * conf/Makefile.common: New file. Common variables for GRUB host
16934 utils and target modules.
16935 * conf/Makefile.extra-dist: New file. Extra files for make dist.
16936 * docs/Makefile.am: New file. Automake file for docs.
16937 * gentpl.py: New file. Python script to generate Autogen
16939 * grub-core/Makefile.am: New file. GRUB target modules' rules
16940 that doesn't fit in Makefile.core.def file.
16941 * grub-core/Makefile.core.def: New file. Autogen build
16942 definitions file for GRUB target modules.
16943 * grub-core/lib/setjmp.S: New file. Wrapper for target_cpu
16944 specific setjmp.S file.
16945 * po/Makefile.am: New file.
16947 * .bzrignore: New ignores.
16948 * INSTALL: New requirements, without Ruby.
16949 * acinclude.m4: Use TARGET_IMG_BASE_LDOPT variable instead.
16950 * autogen.sh: Updated to invoke autogen as necessary.
16951 * configure.ac: Separate *FLAGS with HOST_ and TARGET_ prefixes,
16952 and defines for Automake conditionals.
16953 * geninit.sh: Refactoring.
16955 * include/grub/dl.h: Allow build rules to define GRUB_MOD_* if
16957 * include/grub/emu/getroot.h (grub_make_system_path_relative_to_its_root):
16960 * include/grub/test.h: Fix functional test modules' naming.
16961 * grub-core/tests/example_functional_test.c: Fix test module name.
16963 * util/misc.c: Hosted versions' of grub functions for libgrub.a
16964 * tests/lib/unit_test.c: Remove hosted versions of grub functions.
16965 * util/grub-editenv.c: Likewise.
16966 * util/grub-fstest.c: Likewise.
16967 * util/grub-mkdevicemap.c: Likewise.
16968 * util/grub-mkfont.c: Likewise.
16969 * util/grub-mkimage.c: Likewise.
16970 * util/grub-mkpasswd-pbkdf2.c: Likewise.
16971 * util/grub-probe.c: Likewise.
16972 * util/grub-script-check.c: Likewise.
16973 * util/i386/pc/grub-setup.c: Likewise.
16974 * util/sparc64/ieee1275/grub-setup.c: Likewise.
16976 * tests/util/grub-shell.in: Fix override directory path.
16977 * util/grub-mkrescue.in: Replace @pkglib_DATA@ with files.
16978 * util/import_gcry.py: Create Makefile.gcry.def file instead.
16980 * util/lvm.c: Update #includes.
16981 * util/raid.c: Likewise.
16982 * util/resolve.c: Likewise.
16983 * grub-core/bus/emu/pci.c: Likewise.
16984 * grub-core/lib/posix_wrap/stdlib.h: Likewise.
16985 * grub-core/lib/posix_wrap/string.h: Likewise.
16986 * grub-core/kern/emu/main.c: Likewise.
16988 * grub-core/gensymlist.sh: New file. Script for generating kernel
16990 * grub-core/genmoddep.awk: Support new kernel_syms.lst format.
16992 * grub-core/gentrigtables.c: Fix unused variable warnings.
16994 * Makefile.in: Removed.
16995 * conf/any-emu.rmk: Removed.
16996 * conf/common.rmk: Removed.
16997 * conf/i386-coreboot.rmk: Removed.
16998 * conf/i386-efi.rmk: Removed.
16999 * conf/i386-ieee1275.rmk: Removed.
17000 * conf/i386-multiboot.rmk: Removed.
17001 * conf/i386-pc.rmk: Removed.
17002 * conf/i386-qemu.rmk: Removed.
17003 * conf/i386.rmk: Removed.
17004 * conf/mips-yeeloong.rmk: Removed.
17005 * conf/mips.rmk: Removed.
17006 * conf/powerpc-ieee1275.rmk: Removed.
17007 * conf/sparc64-ieee1275.rmk: Removed.
17008 * conf/tests.rmk: Removed.
17009 * conf/x86-efi.rmk: Removed.
17010 * conf/x86_64-efi.rmk: Removed.
17011 * gendistlist.sh: Removed.
17012 * geninitheader.sh: Removed.
17013 * genkernsyms.sh.in: Removed.
17014 * genmk.rb: Removed.
17015 * gensymlist.sh.in: Removed.
17016 * mkinstalldirs: Removed.
17018 * grub-core/boot: ... to here.
17020 * grub-core/bus: ... to here.
17021 * commands: Moved ...
17022 * grub-core/commands: ... to here.
17024 * grub-core/disk: ... to here.
17025 * efiemu: Moved ...
17026 * grub-core/efiemu: ... to here.
17028 * grub-core/font: ... to here.
17030 * grub-core/fs: ... to here.
17031 * gencmdlist.sh: Moved ...
17032 * grub-core/gencmdlist.sh: ... to here.
17033 * genemuinit.sh: Moved ...
17034 * grub-core/genemuinit.sh: ... to here.
17035 * genemuinitheader.sh: Moved ...
17036 * grub-core/genemuinitheader.sh: ... to here.
17037 * genfslist.sh: Moved ...
17038 * grub-core/genfslist.sh: ... to here.
17039 * genhandlerlist.sh: Moved ...
17040 * grub-core/genhandlerlist.sh: ... to here.
17041 * genmoddep.awk: Moved ...
17042 * grub-core/genmoddep.awk: ... to here.
17043 * genmodsrc.sh: Moved ...
17044 * grub-core/genmodsrc.sh: ... to here.
17045 * genpartmaplist.sh: Moved ...
17046 * grub-core/genpartmaplist.sh: ... to here.
17047 * genparttoollist.sh: Moved ...
17048 * grub-core/genparttoollist.sh: ... to here.
17049 * genterminallist.sh: Moved ...
17050 * grub-core/genterminallist.sh: ... to here.
17051 * gentrigtables.c: Moved ...
17052 * grub-core/gentrigtables.c: ... to here.
17053 * genvideolist.sh: Moved ...
17054 * grub-core/genvideolist.sh: ... to here.
17055 * gettext: Moved ...
17056 * grub-core/gettext: ... to here.
17057 * gfxmenu: Moved ...
17058 * grub-core/gfxmenu: ... to here.
17059 * gnulib: Moved ...
17060 * grub-core/gnulib: ... to here.
17062 * grub-core/hello: ... to here.
17064 * grub-core/hook: ... to here.
17066 * grub-core/io: ... to here.
17068 * grub-core/kern: ... to here.
17070 * grub-core/lib: ... to here.
17071 * loader: Moved ...
17072 * grub-core/loader: ... to here.
17074 * grub-core/mmap: ... to here.
17075 * normal: Moved ...
17076 * grub-core/normal: ... to here.
17077 * partmap: Moved ...
17078 * grub-core/partmap: ... to here.
17079 * parttool: Moved ...
17080 * grub-core/parttool: ... to here.
17081 * script: Moved ...
17082 * grub-core/script: ... to here.
17084 * grub-core/term: ... to here
17085 * tests/example_functional_test.c: Moved ...
17086 * grub-core/tests/example_functional_test.c: ... to here.
17087 * tests/lib/functional_test.c: Moved ...
17088 * grub-core/tests/lib/functional_test.c: ... to here.
17089 * tests/lib/test.c: Moved ...
17090 * grub-core/tests/lib/test.c: ... to here.
17092 * grub-core/video: ... to here.
17094 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
17096 Replace --enable-grub-emu-modules with grub-emu-lite.
17098 * kern/emu/cache.S: New file. Wrapper for $target_cpu specific
17101 * include/grub/emu/misc.h (grub_emu_init): New prototype.
17102 * kern/emu/full.c: New file. For grub-emu specific initialization.
17103 * kern/emu/lite.c: New file. For grub-emu-lite initialization.
17104 * kern/emu/main.c: Call initialization function grub_emu_init.
17106 * Makefile.in: Include grub-emu-lite in install.
17107 * commands/parttool.c: Use grub_no_autoload to differentiate
17108 between grub-emu and grub-emu-lite.
17109 * include/grub/misc.h: New variable grub_no_autoload.
17111 * conf/any-emu.rmk: New rules for grub-emu-lite.
17112 * configure.ac: Remove --enable-grub-emu-modules.
17113 * genmk.rb: Cleanup unnecessary rules.
17114 * include/grub/dl.h: Remove GRUB_NO_MODULES macro.
17116 * normal/main.c: Don't load list files on grub-emu-lite.
17117 * util/misc.c (grub_arch_sync_caches): Removed.
17119 2010-08-23 Colin Watson <cjwatson@ubuntu.com>
17121 * kern/mips/startup.S (grub_prefix): Update comment to refer to
17122 grub-mkimage rather than grub-mkelfimage.
17123 * kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
17125 2010-08-22 Vladimir Serbinenko <phcoder@gmail.com>
17127 * term/at_keyboard.c (grub_at_keyboard_getkey_noblock): Don't discard
17128 a key after CapsLock or NumLock. It's just a qemu bug.
17130 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
17132 * include/grub/usb.h (grub_usb_device): Add 'data' field back. It's
17133 needed by libusb wrapper.
17135 2010-08-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
17137 * docs/grub.texi (GNU/Hurd): Document booting GNU/Hurd.
17139 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
17141 * loader/multiboot.c (grub_cmd_module): Don't unzip module if
17142 --nounzip is passed.
17144 2010-08-20 Vladimir Serbinenko <phcoder@gmail.com>
17146 USB hotunplugging and USB serial support.
17148 * bus/usb/ohci.c (grub_ohci_transfer): Fill *actual and respect timeout.
17149 * bus/usb/uhci.c (grub_free_queue): Compute *actual.
17150 (grub_uhci_transfer): Respect timeout and set *actual.
17151 * bus/usb/usb.c (grub_usb_device_initialize): Correctly skip fields of
17152 non-standard length.
17153 (grub_usb_device_attach): Autoload modules.
17154 (GRUB_MOD_INIT): Set grub_term_poll_usb.
17155 (GRUB_MOD_FINI): Unset grub_term_poll_usb.
17156 * bus/usb/usbhub.c (grub_usb_hub): Replace speed with devices. All
17158 (grub_usb_add_hub): Fill nports and children.
17159 (attach_root_port): Receive hub instead of controller.
17160 All users updated. Fill hub->devices.
17161 (grub_usb_root_hub): Allocate hub->devices.
17162 (detach_device): New function.
17163 (poll_nonroot_hub): Fill children and detach devices.
17164 * bus/usb/usbtrans.c (grub_usb_bulk_readwrite): Accept timeout and
17165 actual arguments. All users updated.
17166 (grub_usb_bulk_read_extended): New function.
17167 * bus/usb/serial/common.c: New file.
17168 * bus/usb/serial/ftdi.c: Likewise.
17169 * bus/usb/serial/pl2303.c: Likewise.
17170 * commands/terminal.c (handle_command): Support wildcard.
17171 * commands/usbtest.c: Output "Unknown" instead of empty string.
17172 * conf/any-emu.rmk (pkglib_MODULES): Add usbserial_common.mod.
17173 (usbserial_common_mod_SOURCES): New variable.
17174 (usbserial_common_mod_CFLAGS): Likewise.
17175 (usbserial_common_mod_LDFLAGS): Likewise.
17176 (pkglib_MODULES): Add usbserial_pl2303.mod.
17177 (usbserial_pl2303_mod_SOURCES): New variable.
17178 (usbserial_pl2303_mod_CFLAGS): Likewise.
17179 (usbserial_pl2303_mod_LDFLAGS): Likewise.
17180 (pkglib_MODULES): Add usbserial_ftdi.mod.
17181 (usbserial_ftdi_mod_SOURCES): New variable.
17182 (usbserial_ftdi_mod_CFLAGS): Likewise.
17183 (usbserial_ftdi_mod_LDFLAGS): Likewise.
17184 (pkglib_MODULES): Add serial.mod.
17185 (serial_mod_SOURCES): New variable.
17186 (serial_mod_CFLAGS): Likewise.
17187 (serial_mod_LDFLAGS): Likewise.
17188 * conf/i386-pc.rmk: Likewise.
17189 * conf/mips-yeeloong.rmk: Likewise.
17190 * conf/i386.rmk (serial_mod_SOURCES): Add term/ns8250.c.
17191 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
17192 * disk/usbms.c (first_available_slot): New variable.
17193 (grub_usbms_attach): Don't reuse free slots due to potential cache
17195 * include/grub/serial.h: Moved to ..
17196 * include/grub/ns8250.h: ...this.
17197 * include/grub/serial.h: New file.
17198 * include/grub/term.h (grub_term_poll_usb): New variable.
17199 * include/grub/terminfo.h (grub_terminfo_input_state): Pass term to
17200 readkey. All users updated.
17201 (grub_terminfo_output_state): Pass term to put.
17202 * include/grub/usb.h (GRUB_USB_REQTYPE): New enum.
17203 (grub_usb_controller_dev): Add timeout and actual arguments to
17204 transfer. All users updated.
17205 (grub_usb_interface): New field detach_data.
17206 (grub_usb_device): New fields children and nports.
17207 (grub_usb_ep_type_t): New type.
17208 (grub_usb_get_ep_type): New function.
17209 (grub_usb_bulk_read_extended): Likewise.
17210 * include/grub/usbdesc.h (grub_usb_desc): New type.
17211 * include/grub/usbserial.h: New file.
17212 * include/grub/usbtrans.h (grub_usb_transaction): New field preceding.
17213 * kern/term.c (grub_term_poll_usb): New variable.
17214 (grub_getkey): Call grub_term_poll_usb if set.
17215 (grub_checkkey): Likewise.
17216 (grub_getkeystatus): Likewise.
17217 * term/serial.c: Moved controller-specific parts to ...
17218 * term/ns8250.c: ... here.
17219 * term/serial.c: Mostly rewritten.
17220 * term/usb_keyboard.c: Reorganised to use GET_REPORT only on attaching
17223 2010-08-20 Robert Millan <rmh@gnu.org>
17225 Make kFreeBSD code more generic to support ext2fs as root, ufs as
17226 a separate module and maybe other interesting combinations.
17228 * util/grub.d/10_kfreebsd.in (load_kfreebsd_module): New function.
17229 (kfreebsd_entry): Use load_kfreebsd_module() to load modules.
17230 (kfreebsd_entry): Add generic filesystem module load routine.
17231 Map GRUB `ext2' to kFreeBSD `ext2fs'.
17233 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
17235 * commands/i386/pc/sendkey.c (keysym_table): Rename "numlock" to
17236 "numcenter" (I misunderstood the purpose of this entry).
17237 * docs/grub.texi (sendkey): Likewise.
17239 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
17241 * commands/i386/pc/sendkey.c (options): Remove "keep" from all
17242 status flag options; simply omitting the option is equivalent and
17243 simpler. Rename "wait" to "pause". Rename "sysreq" to "sysrq".
17244 (keysym_table): Rename "num5numlock" to "numlock".
17245 (grub_cmd_sendkey): Reinitialise `andmask' and `ormask', so that we
17246 can uniformly say that only the last of multiple `sendkey'
17247 invocations has any effect.
17248 * docs/grub.texi (sendkey): New section.
17250 2010-08-19 Colin Watson <cjwatson@ubuntu.com>
17252 * commands/i386/pc/sendkey.c (options): Fix three typos.
17254 2010-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17256 Implement sendkey support.
17258 * commands/i386/pc/sendkey.c: New file.
17259 * conf/i386-pc.rmk (pkglib_MODULES): Add sendkey.mod.
17260 (sendkey_mod_SOURCES): New variable.
17261 (sendkey_mod_CFLAGS): Likewise.
17262 (sendkey_mod_LDFLAGS): Likewise.
17264 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
17266 * configure.ac: Move AM_INIT_AUTOMAKE after AC_CANONICAL_TARGET to
17267 fix warnings from Autoconf.
17269 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
17271 * acinclude.m4 (grub_ASM_USCORE): Use a more accurate grep pattern,
17272 to avoid false positives with some assemblers that output things
17273 like "someprefix_func" as part of their output.
17275 2010-08-15 Robert Millan <rmh@gnu.org>
17277 * kern/emu/misc.c (grub_get_libzfs_handle): Handle libzfs_init()
17279 * kern/emu/getroot.c (find_root_device_from_libzfs): Handle
17280 grub_get_libzfs_handle() errors.
17282 2010-08-14 Robert Millan <rmh@gnu.org>
17284 * kern/emu/misc.c (grub_find_zpool_from_dir): Abort function if
17285 filesystem is not ZFS.
17287 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
17289 Fix for misspelled color names defaulting to black/black (bug
17290 reported by Doug Nazar)
17292 * include/grub/normal.h (grub_parse_color_name_pair): Add return
17293 status to prototype.
17294 * normal/color.c (grub_parse_color_name_pair): Return failure
17296 (grub_env_write_color_normal): Ignore bad color names.
17297 (grub_env_write_color_highlight): Likewise.
17298 * normal/main.c (GRUB_MOD_INIT): Set default color names.
17300 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
17302 "shift" command support to GRUB script.
17304 * include/grub/script_sh.h (grub_script_shift): New prototype.
17305 * script/execute.c (grub_script_shift): New function.
17306 * script/main.c (grub_script_init): Register shift command.
17307 (grub_script_fini): Unregister shift command.
17308 * util/grub-script-check.c (grub_script_cmd_shift): New function.
17310 * tests/grub_script_shift.in: New testcase.
17311 * conf/tests.rmk: Rules for new testcase.
17313 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
17315 "continue" command support to GRUB script.
17317 * script/execute.c (grub_script_execute_cmdwhile): Continue support.
17318 (grub_script_break): Continue support.
17319 * script/main.c (grub_script_init): Register continue command.
17320 (grub_script_fini): Unregister continue command.
17322 * tests/grub_script_continue.in: New testcase.
17323 * conf/tests.rmk: Rules for new testcase.
17325 2010-08-12 BVK Chaitanya <bvk@dbook>
17327 "break" command support to GRUB script.
17329 * conf/common.rmk: Rule updates to grub-script-check.
17330 * include/grub/misc.h (grub_min): New function.
17331 * include/grub/script_sh.h (grub_script_init): New prototype.
17332 (grub_script_fini): New prototype.
17333 (grub_script_break): New prototype.
17334 * script/main.c (grub_script_init): New function.
17335 (grub_script_fini): New function.
17336 * script/execute.c (grub_script_break): New function.
17337 * normal/main.c: Calls to grub_script_{init,fini}.
17338 * util/grub-script-check.c (grub_script_break): New function.
17340 * tests/grub_script_break.in: New testcase.
17341 * conf/tests.rmk: Rules for new test case.
17343 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
17345 Function parameters support to GRUB script.
17347 * script/yylex.l (VARIABLE): Regular expression update.
17348 * script/function.c (grub_script_function_call): Moved ...
17349 * script/execute.c (grub_script_function_call): ... to here.
17350 (grub_script_execute_arglist_to_argv): Removed.
17351 (grub_script_arglist_to_argv): New function.
17352 * script/argv.c: New file.
17353 (grub_script_argv_free): New function.
17354 (grub_script_argv_next): Likewise.
17355 (grub_script_argv_append): Likewise.
17356 (grub_script_argv_split_append): Likewise.
17357 * include/grub/script_sh.h (grub_script_argv): New struct.
17358 (grub_script_argv_free): New function.
17359 (grub_script_argv_next): Likewise.
17360 (grub_script_argv_append): Likewise.
17361 (grub_script_argv_split_append): Likewise.
17363 * conf/common.rmk (normal.mod): New source script/argv.c.
17365 * tests/grub_script_echo1.in: More tests.
17366 * tests/grub_script_vars1.in: Likewise.
17367 * tests/grub_script_functions.in: New test case.
17368 * conf/tests.rmk: Rules for new testcase.
17370 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
17372 Remove grub_script_cmdblock struct.
17374 * include/grub/script_sh.h: Remove grub_script_cmdblock.
17375 * script/parser.y: Likewise.
17376 * script/execute.c: Rename cmdblock suffix to cmdlist.
17377 * script/script.c: Likewise.
17378 * util/grub-script-check.c: Likewise.
17380 2010-08-11 Yves Blusseau <blusseau@zetam.org>
17382 * .bzrignore: add grub-macho2img
17384 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
17386 * kern/i386/qemu/init.c (grub_qemu_init_cirrus): Fix compilation error.
17388 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
17390 Remove the dump of sm712 initialisation sequence.
17392 * include/grub/pci.h (GRUB_PCI_CLASS_SUBCLASS_VGA): New const.
17393 * include/grub/vga.h (GRUB_VGA_IO_ARX_READ): New register.
17394 (GRUB_VGA_IO_MISC_WRITE): Likewise.
17395 (GRUB_VGA_CR_*): Added many registers.
17396 (GRUB_VGA_SR_*): Likewise.
17397 (GRUB_VGA_GR_*): Likewise.
17398 (grub_vga_write_arx): New function.
17399 (grub_video_hw_config): New struct.
17400 (grub_vga_set_geometry): New function.
17401 * kern/i386/qemu/init.c (load_palette): Use grub_vga_write_arx and
17402 GRUB_PCI_CLASS_SUBCLASS_VGA.
17403 * video/cirrus.c (grub_video_cirrus_setup): Use grub_vga_set_geometry.
17404 * video/sm712.c (grub_sm712_write_reg): New function
17405 (grub_sm712_read_reg): Likewise.
17406 (grub_sm712_sr_write): Likewise.
17407 (grub_sm712_gr_write): Likewise.
17408 (grub_sm712_cr_write): Likewise.
17409 (grub_sm712_write_arx): Likewise.
17410 (grub_sm712_cr_shadow_write): Likewise.
17411 (grub_sm712_write_dda_lookup): Likewise.
17412 (grub_video_sm712_setup): Initialise the video rather then
17413 blindly replay the dump.
17414 (main) [TEST]: Add a routine to be able to compile as standalone for
17416 * video/sm712_init.c (sm712_init): Removed.
17417 (sm712_sr_seq1): New array.
17418 (sm712_sr_seq2): Likewise.
17420 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
17422 * include/grub/vga.h: Add missing grub/pci.h include.
17424 2010-08-10 Yves Blusseau <blusseau@zetam.org>
17426 * util/grub-macho2img.c (main): fix typo
17428 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
17430 * include/grub/vga.h (grub_vga_gr_write): Add GRUB_MACHINE_PCI_IO_BASE.
17431 (grub_vga_gr_read): Likewise.
17432 (grub_vga_cr_write): Likewise.
17433 (grub_vga_cr_read): Likewise.
17434 (grub_vga_sr_write): Likewise.
17435 (grub_vga_sr_read): Likewise.
17436 (grub_vga_palette_read): Likewise.
17437 (grub_vga_palette_write): Likewise.
17438 * video/sm712.c (GRUB_SM712_REG_BASE): New definition.
17439 (grub_sm712_sr_read): New function.
17440 (grub_video_sm712_setup): Use grub_vga_sr_write and grub_sm712_sr_read.
17441 * video/sm712_init.c (sm712_init): Substract GRUB_MACHINE_PCI_IO_BASE.
17443 2010-08-09 Robert Millan <rmh@gnu.org>
17445 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Filter
17446 out unused variables on non-ZFS build.
17448 2010-08-08 Robert Millan <rmh@gnu.org>
17450 Fix path generation for sub-filesystems in ZFS.
17452 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Add
17455 2010-08-08 Robert Millan <rmh@gnu.org>
17457 * util/grub-fstest.c (read_file, cmd_cmp): Improve error message.
17459 2010-08-08 Robert Millan <rmh@gnu.org>
17461 * util/grub.d/10_kfreebsd.in: When files required for ZFS do not
17462 exist, issue a proper error message (rely on `ls' for translated
17465 2010-08-08 Robert Millan <rmh@gnu.org>
17467 Fix grub-probe invocation.
17469 * util/grub.d/10_kfreebsd.in: s/label/fs_label/g.
17471 2010-08-04 Robert Millan <rmh@gnu.org>
17473 * configure.ac: Remove checks for getfsstat() and getmntany().
17474 Add checks for `<sys/param.h>' and `<sys/mount.h>'.
17475 * kern/emu/misc.c [HAVE_GETMNTANY]: Remove `<sys/mnttab.h>'.
17476 [HAVE_SYS_PARAM_H]: Include `<sys/param.h>'.
17477 [HAVE_SYS_MOUNT_H]: Include `<sys/mount.h>'.
17478 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_mount_point_from_dir): Remove
17480 (grub_find_zpool_from_dir): Use statfs() instead of indirect matching
17481 via find_mount_point_from_dir() and getfsstat() / getmntany().
17483 2010-08-04 Robert Millan <rmh@gnu.org>
17485 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
17486 (grub_find_zpool_from_mount_point): Merge into ...
17487 (grub_find_zpool_from_dir): ... this.
17488 * kern/emu/misc.c: Likewise.
17491 (grub_make_system_path_relative_to_its_root): Replace
17492 grub_find_mount_point_from_dir() / grub_find_zpool_from_mount_point()
17493 with grub_find_zpool_from_dir().
17494 * kern/emu/getroot.c (find_root_device_from_libzfs): Likewise.
17496 2010-08-04 Robert Millan <rmh@gnu.org>
17498 Support OpenSolaris in ZFS device resolution.
17500 * configure.ac: Check for getmntany().
17501 * kern/emu/misc.c [HAVE_GETMNTANY]: Include `<sys/mnttab.h>'.
17502 [HAVE_GETMNTANY] (grub_find_zpool_from_mount_point): Add OpenSolaris
17505 2010-08-03 Robert Millan <rmh@gnu.org>
17507 Fix grub-emu build.
17509 * include/grub/util/misc.h: Move `<grub/util/libzfs.h>' to ...
17510 * include/grub/emu/misc.h: ... here.
17512 * include/grub/util/misc.h (grub_get_libzfs_handle): Move function ...
17513 * include/grub/emu/misc.h (grub_get_libzfs_handle): ... here.
17515 * util/misc.c: Remove `<grub/util/libzfs.h>'.
17516 [HAVE_LIBZFS] (libzfs_handle, fini_libzfs)
17517 (grub_get_libzfs_handle): Move to ...
17518 * kern/emu/misc.c [HAVE_LIBZFS] (__libzfs_handle, fini_libzfs)
17519 (grub_get_libzfs_handle): ... here.
17521 2010-08-03 BVK Chaitanya <bvk.groups@gmail.com>
17523 * script/execute.c (grub_script_execute_cmdline): Check for NULL
17524 as command name case.
17526 2010-08-02 Colin Watson <cjwatson@ubuntu.com>
17528 * disk/raid.c (insert_array): Select unique numbers for named arrays
17529 as well, for use as keys in the disk cache.
17531 2010-08-01 Robert Millan <rmh@gnu.org>
17533 * util/grub.d/10_kfreebsd.in: Initialize ${kfreebsd_device} as the
17534 kFreeBSD device name, except on ZFS where the filesystem label is
17536 (kfreebsd_entry): On ZFS root, load `opensolaris.ko', `zfs.ko' and
17537 `/boot/zfs/zpool.cache'.
17538 Set mountfrom kernel variable using ${kfreebsd_device}.
17540 2010-08-01 Robert Millan <rmh@gnu.org>
17542 Make it even harder to use uninitialized `libzfs_handle' (and
17543 make the interface a bit simpler).
17545 * include/grub/util/misc.h (grub_util_init_libzfs)
17546 (libzfs_handle): Remove.
17547 (grub_get_libzfs_handle): New prototype.
17549 * util/misc.c [HAVE_LIBZFS] (libzfs_handle): Add `static'
17551 (grub_util_init_libzfs): Remove.
17552 (grub_get_libzfs_handle): New function.
17554 * kern/emu/getroot.c (find_root_device_from_libzfs): Use
17555 grub_get_libzfs_handle() to obtain a libzfs handle instead of
17556 accessing `libzfs_handle' directly.
17558 2010-08-01 Robert Millan <rmh@gnu.org>
17560 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
17561 (grub_find_zpool_from_mount_point): New function prototypes.
17563 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
17564 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
17566 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
17567 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
17568 `static' attribute.
17570 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
17571 finding zpool from mount point into ...
17572 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
17574 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
17575 requested path is part of a ZFS pool, use
17576 grub_find_zpool_from_mount_point() to detect its filesystem name,
17577 and generate a path with `/fsname@path' syntax.
17579 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
17581 * include/grub/util/libzfs.h (libzfs_init): Set argument list to
17582 (void) rather than () so that this is a proper prototype.
17584 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
17586 * lib/arg.c (grub_arg_show_help): Add the necessary spacing.
17588 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
17590 * kern/emu/getroot.c (find_mount_point_from_dir): Compile only if
17591 [HAVE_LIBZFS && HAVE_LIBNVPAIR]
17593 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
17595 * util/grub-mkrescue.in: Remove ${efi_dir} after building efi.img.
17597 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
17599 * script/yylex.l (NAME): Remove [:digit:], redundant with [:alnum:].
17601 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
17603 * docs/grub.texi (Simple configuration): Document GRUB_CMDLINE_XEN
17604 and GRUB_CMDLINE_XEN_DEFAULT. Recommend setting
17605 GRUB_GFXPAYLOAD_LINUX=text rather than unsetting it in order to
17606 disable gfxpayload.
17607 (Shell-like scripting): Add real content.
17608 (Serial terminal): Suggest `terminal_input serial; terminal_output
17609 serial' rather than putting the two commands on separate lines,
17610 since console input will be inoperative after the first command.
17611 (menuentry): Document --class, --users, and --hotkey options.
17612 (terminfo): Describe what `visually-ordered UTF-8' means (thanks,
17613 Vladimir Serbinenko).
17615 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
17616 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
17618 * kern/misc.c (grub_memset): Optimise to reduce cache stalls.
17620 2010-08-01 Robert Millan <rmh@gnu.org>
17622 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
17623 (grub_find_zpool_from_mount_point): New function prototypes.
17625 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
17626 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
17628 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
17629 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
17630 `static' attribute.
17632 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
17633 finding zpool from mount point into ...
17634 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
17636 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
17637 requested path is part of a ZFS pool, use
17638 grub_find_zpool_from_mount_point() to detect its filesystem name,
17639 and generate a path with `/fsname@path' syntax.
17641 2010-08-01 Robert Millan <rmh@gnu.org>
17643 Prevent accidental use of uninitialized libzfs_handle.
17645 * util/grub-probe.c (main): Move grub_util_init_libzfs() call to ...
17646 * kern/emu/getroot.c (find_root_device_from_libzfs): ... here.
17647 * util/misc.c (grub_util_init_libzfs): Make this function idempotent.
17649 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
17651 * util/grub.d/20_linux_xen.in: Don't use UUID for LVM root (matching
17652 util/grub.d/10_linux.in). Fixes Debian bug #591093.
17654 2010-08-01 Robert Millan <rmh@gnu.org>
17656 * kern/emu/getroot.c: Include `<grub/util/misc.h>'.
17658 2010-07-31 Robert Millan <rmh@gnu.org>
17660 * util/grub.d/10_kfreebsd.in: Make module handling more generic.
17662 2010-07-31 Robert Millan <rmh@gnu.org>
17664 * kern/emu/misc.c: Add missing license header.
17666 2010-07-31 Robert Millan <rmh@gnu.org>
17668 * configure.ac: Check for `libzfs.h' and `libnvpair.h'.
17670 * include/grub/util/libnvpair.h: Include `<config.h>'.
17671 [HAVE_LIBNVPAIR_H]: Include `<libnvpair.h>' instead of
17672 declaring libnvpair prototypes ourselves.
17673 * include/grub/util/libzfs.h: Include `<config.h>'.
17674 [HAVE_LIBZFS_H]: Include `<libzfs.h>' instead of
17675 declaring libzfs prototypes ourselves.
17677 (libzfs_handle): Moved to ...
17678 * include/grub/util/misc.h (libzfs_handle): ... here.
17679 Include `<grub/util/libzfs.h>'.
17681 2010-07-30 Robert Millan <rmh@gnu.org>
17683 * include/grub/emu/misc.h: Add missing license header.
17685 2010-07-30 Robert Millan <rmh@gnu.org>
17687 Enable `grub-probe -t device' resolution on ZFS.
17689 * configure.ac: Check for getfsstat(), libzfs and libnvpair.
17690 * include/grub/util/libnvpair.h: New file.
17691 * include/grub/util/libzfs.h: New file.
17693 * kern/emu/getroot.c: Include `<assert.h>' and `<error.h>'.
17694 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Include `<grub/util/libzfs.h>' and
17695 `<grub/util/libnvpair.h>'.
17696 [HAVE_GETFSSTAT]: Include `<sys/mount.h>'.
17698 (find_mount_point_from_dir): New static function.
17699 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_root_device_from_libzfs): New
17701 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (grub_guess_root_device): Use
17702 find_root_device_from_libzfs() before ressorting to find_root_device().
17704 * include/grub/util/misc.h (grub_util_init_libzfs): New function
17706 * util/misc.c: Include `<grub/util/libzfs.h>'.
17707 (grub_util_init_libzfs): New function.
17708 [HAVE_LIBZFS] (libzfs_handle): New global variable.
17709 [HAVE_LIBZFS] (fini_libzfs): New static function.
17710 (grub_util_init_libzfs): New function.
17711 * util/grub-probe.c (main): Call grub_util_init_libzfs().
17713 2010-07-30 Robert Millan <rmh@gnu.org>
17715 * include/grub/emu/misc.h (grub_make_system_path_relative_to_its_root)
17716 (xmalloc, xrealloc, xstrdup, xasprintf): Add
17717 `warn_unused_result' attribute.
17718 * include/grub/misc.h (grub_strdup, grub_strndup, grub_strlen)
17719 (grub_xasprintf, grub_xvasprintf): Likewise.
17720 * include/grub/emu/misc.h (xasprintf): Remove duplicate prototype.
17722 2010-07-29 Robert Millan <rmh@gnu.org>
17724 * util/grub-probe.c (PRINT_FS_LABEL): New enum value.
17725 (probe): Handle `PRINT_FS_LABEL'.
17726 (main): Handle `-t fs_label'.
17728 2010-07-29 Robert Millan <rmh@gnu.org>
17730 * configure.ac: Remove grub-mkisofs checks.
17732 2010-07-28 Vladimir Serbinenko <phcoder@gmail.com>
17734 * util/ieee1275/grub-install.in: Don't use empty grub_device.
17735 Reported by: Lennart Sorensen.
17737 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
17739 * util/grub.d/00_header.in: Remove compatibility with terminal.mod
17740 prior to terminal_input/terminal_output separation. It's been over 1.5
17741 years and those versions weren't widely deployed.
17743 2010-07-22 Colin Watson <cjwatson@ubuntu.com>
17745 * disk/raid.c (insert_array): Don't count named arrays when looking
17746 for unused array numbers.
17747 Reported and tested by: Michael Guntsche.
17749 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
17751 * bus/usb/emu/usb.c (grub_usb_poll_devices): Add a dummy
17752 implementation of this so that grub-emu links again, with a note
17753 that this should support hotplugging in the future.
17755 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
17757 * kern/emu/getroot.c (grub_util_get_grub_dev): Use xasprintf.
17759 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
17761 * disk/loopback.c (grub_cmd_loopback): Don't leak a grub_file_t
17763 (grub_loopback_close): Remove empty function.
17764 (grub_loopback_dev): Remove close method.
17766 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
17768 Disable EFI cursor when the EFI console becomes inactive.
17770 * term/efi/console.c (grub_efi_console_init): New function.
17771 (grub_efi_console_fini): New function.
17772 (grub_console_term_output): Register init and fini methods.
17774 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
17776 * tests/util/grub-shell-tester.in: Remove bashism and declare as
17779 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
17781 * disk/loopback.c (grub_loopback): Replace filename with file.
17782 (delete_loopback): Handle new semantics.
17783 (grub_cmd_loopback): Likewise.
17784 (grub_loopback_iterate): Likewise.
17785 (grub_loopback_close): Likewise.
17787 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
17789 * util/i386/efi/grub-install.in: Revert to platform-specific behaviour
17791 Reported by: Tito Keitel.
17793 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
17795 * docs/grub.texi (Naming convention): Document new naming convention.
17797 2010-07-20 Vadim Solomin <vadic052@gmail.com>
17798 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
17800 Generate device.map in something closer to the old ordering.
17802 * util/deviceiter.c (struct device): New declaration.
17803 (compare_file_names): Rename to ...
17804 (compare_devices): ... this. Sort by kernel name in preference to
17805 the stable by-id name, but keep the latter as a fallback comparison.
17806 Update header comment.
17807 (grub_util_iterate_devices) [__linux__]: Construct and sort an array
17808 of `struct device' rather than of plain file names.
17810 2010-07-20 Thomas Frauendorfer <Thomas.Frauendorfer@googlemail.com>
17812 * lib/i386/relocator_asm.S [! __x86_64__]: Don't try to disable amd64
17815 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
17817 * commands/acpi.c (setup_common_tables): Use sizeof instead of
17819 (setv1table): Likewise.
17821 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
17823 * disk/raid.c (insert_array): Use md/%s to name mdadm 1.x devices,
17824 removing the homehost if present.
17825 * kern/emu/getroot.c (get_mdadm_name) [__linux__]: New function.
17826 (grub_util_get_grub_dev): Use md/%s to name mdadm 1.x devices,
17827 removing the homehost if present.
17828 (grub_util_get_grub_dev) [__linux__]: Get the array name from mdadm
17830 * util/i386/pc/grub-setup.c (main): Handle md/* devices.
17832 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Add start_sector
17833 parameter. Set its pointer target to 0.
17834 * disk/mdraid_linux.c (grub_mdraid_detect): Add start_sector
17835 parameter. Set its pointer target to 0 for 0.9 metadata, or to the
17836 `data_offset' value from the superblock for 1.x metadata.
17837 * disk/raid.c (grub_raid_read): Offset reads by the start sector of
17838 data on the device.
17839 (insert_array): Record the start sector of data on the device.
17840 (grub_raid_register): Pass start_sector parameters to
17841 grub_raid_list->detect and insert_array.
17842 * include/grub/raid.h (struct grub_raid_array): Add start_sector
17844 (struct grub_raid): Add start_sector parameter to `detect'.
17846 * disk/mdraid_linux.c (struct grub_raid_super_1x): Remove
17847 __attribute__ ((packed)), leaving a comment.
17848 (grub_mdraid_detect): Split out 0.9 and 1.x detection to ...
17849 (grub_mdraid_detect_09): ... here and ...
17850 (grub_mdraid_detect_1x): ... here.
17852 2010-07-20 Peter Henn <peter.henn@web.de>
17854 * disk/mdraid_linux.c (grub_mdraid_detect): Fix calculation of 1.x
17855 chunk size and disk size, which are already given as sector counts
17856 as distinct from the 0.90 units. Fetch the correct device number
17857 from the role table instead of using the table index.
17859 2010-07-20 Felix Zielcke <fzielcke@z-51.de>
17861 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Set array->name to NULL.
17862 * disk/mdraid_linux.c (grub_raid_super_1x): New structure.
17863 (WriteMostly1): New macro.
17864 Set array->name to NULL for metadata format 0.90. Add support for
17865 metadata 1.x. Fix some comments.
17866 * disk/raid.c (): Add support for name based RAID arrays. Fix a
17868 * util/getroot.c (grub_util_get_grub_dev): Add support for
17869 /dev/md/name style devices.
17871 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
17873 * .bzrignore: Ignore 20_linux_xen.
17875 2010-07-17 Colin Watson <cjwatson@ubuntu.com>
17877 * util/import_unicode.py: Remove unnecessary imports.
17879 2010-07-17 Aleš Nesrsta <starous@volny.cz>
17881 Hotplugging and USB hub support.
17883 * bus/usb/ohci.c (grub_ohci_td): Add convenience fields.
17884 (grub_ohci): Likewise.
17885 (GRUB_OHCI_REG_CONTROL_BULK_ENABLE): New definition.
17886 (GRUB_OHCI_REG_CONTROL_CONTROL_ENABLE): Likewise.
17887 (GRUB_OHCI_RESET_CONNECT_CHANGE): Likewise.
17888 (GRUB_OHCI_CTRL_EDS): Likewise.
17889 (GRUB_OHCI_BULK_EDS): Likewise.
17890 (GRUB_OHCI_TDS): Likewise.
17891 (GRUB_OHCI_ED_ADDR_MASK): Likewise.
17892 (grub_ohci_ed_phys2virt): New function.
17893 (grub_ohci_virt_to_phys): Likewise.
17894 (grub_ohci_td_phys2virt): Likewise.
17895 (grub_ohci_td_virt2phys): Likewise.
17896 (grub_ohci_pci_iter): Allocate memory and don't wait for stable
17898 (grub_ohci_find_ed): New function.
17899 (grub_ohci_alloc_td): Likewise.
17900 (grub_ohci_free_td): Likewise.
17901 (grub_ohci_free_tds): Likewise.
17902 (grub_ohci_transfer): Use previously allocated memory.
17903 (grub_ohci_portstatus): Reset status changed bit.
17904 (grub_ohci_detect_dev): Supply status changed.
17905 (grub_ohci_fini_hw): Free memory.
17906 (grub_ohci_restore_hw): Reallocate memory.
17907 * bus/usb/uhci.c (grub_uhci_portstatus): Don't reset on disable.
17908 Reset status change.
17909 (grub_uhci_detect_dev): Supply status_change.
17910 * bus/usb/usb.c (attach_hooks): New var.
17911 (grub_usb_device_attach): New function.
17912 (grub_usb_register_attach_hook_class): Likewise.
17913 (grub_usb_unregister_attach_hook_class): Likewise.
17914 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Handle errors correctly.
17915 (grub_usb_add_hub): Reset connection changed bit.
17916 (attach_root_port): New function.
17917 (grub_usb_root_hub): Likewise.
17918 (poll_nonroot_hub): Likewise.
17919 (grub_usb_poll_devices): Likewise.
17920 * commands/usbtest.c (grub_cmd_usbtest): Poll devices before listing.
17921 * disk/usbms.c (grub_usbms_open): Use device hooks.
17922 (grub_usbms_iterate) :Poll devices.
17923 (grub_usbms_finddevs): Split into ...
17924 (grub_usbms_attach): ... this ...
17925 (grub_usbms_attach): ... and this.
17926 * include/grub/usb.h (grub_usb_controller_dev): Supply status_changed
17928 (grub_usb_interface): New fields attached and detach_hook.
17929 (grub_usb_attach_hook_class): New type.
17930 (grub_usb_attach_desc): New struct.
17931 (grub_usb_register_attach_hook_class): New function.
17932 (grub_usb_unregister_attach_hook_class): Likewise.
17933 (grub_usb_poll_devices): Likewise.
17934 (grub_usb_device_attach): Likewise.
17935 * include/grub/usbtrans.h (GRUB_USB_HUB_FEATURE_C_CONNECTED): New const.
17936 (GRUB_USB_HUB_STATUS_C_CONNECTED): Likewise.
17938 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
17940 * include/grub/bsdlabel.h (GRUB_PC_PARTITION_BSD_LABEL_WHOLE_DISK_PARTITION): New definition.
17941 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Use FreeBSD
17942 delta determination style. Works with most NetBSD partitions too.
17944 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
17946 * kern/partition.c [GRUB_UTIL]: Add missing util/misc.h inclusion.
17947 * partmap/bsdlabel.c [GRUB_UTIL]: Likewise.
17949 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
17951 * disk/scsi.c (grub_scsi_open): Fix incorrect pointer dereference.
17953 2010-07-14 Anton Blanchard <anton@samba.org>
17955 * loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Do not reject
17958 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
17960 * Makefile.in: Use the substituted @USE_NLS@ instead of ENABLE_NLS.
17962 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
17964 * kern/partition.c (grub_partition_check_containment): New function to
17965 check that a partition is physically contained in a parent. Since
17966 offsets are relative (and non-negative), this reduces to checking that
17967 the partition ends before its parent.
17968 (grub_partition_map_probe): Discard out-of-range sub-partitions.
17969 (grub_partition_iterate): Likewise.
17970 * include/grub/partition.h (grub_partition_map): Slightly more detailed
17972 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Discard
17973 partitions that start before their parent, and add debug printfs.
17975 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
17977 * Makefile.in (.SUFFIX): Spell correctly, as ...
17978 (.SUFFIXES): ... this. Fixes bug where `make foo' (where foo is a
17979 bare module name without `.mod', e.g. `test') tried to invoke a
17982 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
17984 * README: Point to the Info manual.
17986 2010-07-13 Jiro SEKIBA <jir@unicus.jp>
17988 * fs/nilfs2.c: fix macro NILFS_2ND_SUPER_BLOCK to calculate
17989 2nd superblock position from partition size.
17991 2010-07-10 Colin Watson <cjwatson@ubuntu.com>
17993 * Makefile.in (MAINTAINER_CLEANFILES): Remove
17994 unicode/UnicodeData.txt, unicode/BidiMirroring.txt, and
17995 unicode/ArabicShaping.txt again; these are inputs to autogen.sh, not
17998 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18000 Restructure SCSI .id handling.
18001 Reported and tested by: Aleš Nesrsta.
18003 * disk/ata.c (grub_atapi_close): Removed. All users updated.
18004 (grub_atapi_dev): Changed .name to "ata". New field .id.
18005 * disk/usbms.c (grub_usbms_close): Removed. All users updated.
18006 (grub_usbms_dev): New field .id.
18007 * disk/scsi.c (grub_scsi_iterate): Generate name.
18008 (grub_scsi_open): Parse name.
18009 * include/grub/scsi.h (grub_make_scsi_id): New function.
18010 (grub_scsi_dev): Change iterate and open to number instead of naming
18011 busses. All users updated.
18012 (grub_scsi): Remove name. Add .bus.
18014 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18016 * commands/help.c (grub_cmd_help): Fix a typo.
18018 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18020 * normal/term.c (put_glyphs_terminal): Fix state->num_lines counting.
18021 Reported and tested by: Colin Watson.
18023 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18025 * util/grub-mkrescue.in: Don't use tar GNU-ism since it's not necessary
18028 2010-07-07 Vladimir Serbinenko <phcoder@gmail.com>
18030 * tests/util/grub-shell.in: Remove bashisms and declare as sh script.
18032 2010-07-07 Colin Watson <cjwatson@ubuntu.com>
18034 * term/gfxterm.c (grub_gfxterm_background_image_cmd): Fix
18037 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
18039 * conf/common.rmk (grub_probe_SOURCES): Add disk/raid5_recover.c
18040 and disk/raid6_recover.c.
18041 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
18042 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
18044 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
18046 * term/gfxterm.c (repaint_schedulded): Rename to ...
18047 (repaint_scheduled): ... this. Update all callers.
18048 (repaint_was_schedulded): Rename to ...
18049 (repaint_was_scheduled): ... this. Update all callers.
18051 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
18053 * util/deviceiter.c (grub_util_iterate_devices): Skip MD devices,
18054 which we expect to be handled by upper layers.
18056 2010-07-06 BVK Chaitanya <bvk.groups@gmail.com>
18058 * bus/usb/usbhub.c: #include time.h header.
18060 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
18062 * fs/reiserfs.c (grub_reiserfs_iterate_dir): Zero out first byte of
18063 entry_name also for entries without stat blocks (e.g. ".."); fixes
18064 corruption of the first entry in a directory.
18066 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
18068 * util/grub.d/00_header.in: Process GRUB_THEME and GRUB_BACKGROUND
18069 after setting gfxterm as the active terminal. GRUB_BACKGROUND
18070 doesn't work otherwise.
18072 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
18074 * docs/grub.texi (Features): Update list of supported file systems.
18075 (GNU/Linux): Update for GRUB 2.
18076 (Serial terminal): Remove mention of --disable-serial, which was a
18077 GRUB Legacy configure option. Update instructions to use
18078 `terminal_input' and `terminal_output' rather than `terminal'.
18079 (Vendor power-on keys): Copy-edit. Add cross-references to `Simple
18080 configuration' and `Installing GRUB using grub-install'.
18081 (Menu entry editor): Update for GRUB 2.
18082 (terminfo): Add vt100-color, ieee1275, and dumb terminal types.
18083 Document new -a, -u, and -v options.
18084 (initrd): New section.
18085 (initrd16): New section.
18086 (linux): New section.
18087 (linux16): New section.
18088 (search): The `var' argument to `--set' is optional.
18089 (GRUB only offers a rescue shell): Go into a little more detail on
18092 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
18094 * Makefile.in: Set LINGUAS to empty if ENABLE_NLS is undefined.
18096 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
18098 * Makefile.in (MAINTAINER_CLEANFILES): Add unicode/UnicodeData.txt,
18099 unicode/BidiMirroring.txt, unicode/ArabicShaping.txt, and unidata.c.
18101 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
18103 * util/i386/pc/grub-setup.c (setup): Rename prefix to
18104 install_prefix, in line with install_dos_part and install_bsd_part.
18105 Add new prefix variable, which is copied to install_prefix after
18106 comparing core.img in memory with the one read from disk in the
18107 no-embedding case, and use that rather than overwriting
18108 install_prefix immediately when installing to a partition.
18109 Fixes Debian bug #586621; based on patches by Matt Kraai and M. Vefa
18112 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
18114 * configure.ac: Avoid == in test command, it's not portable.
18115 * util/grub.d/30_os-prober.in: Likewise.
18117 2010-07-04 Colin Watson <cjwatson@ubuntu.com>
18119 * kern/emu/getroot.c [__GNU__]: Include <sys/mman.h> for munmap.
18121 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
18123 * util/i386/pc/grub-setup.c (setup): Do not embed when there are
18124 multiple (top-level) partmaps.
18126 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
18128 * util/i386/efi/grub-install.in: Don't use empty grub_device.
18129 Reported by: Tino Keitel.
18131 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
18133 Bidi and diacritics support.
18135 * Makefile.in (widthspec.bin): New target.
18136 (widthspec.h): Likewise.
18137 (TARGET_CFLAGS): Add -DHAVE_UNIFONT_WIDTHSPEC=1 if font was available.
18138 * autogen.sh: Generate unidata.c.
18139 * commands/cat.c (grub_cmd_cat): Don't use grub_putchar.
18140 * commands/ls.c (grub_ls_list_devices): Likewise.
18141 (grub_ls_list_files): Likewise.
18142 * commands/minicmd.c (grub_mini_cmd_cat): Likewise.
18143 (grub_mini_cmd_lsmod): Likewise.
18144 * commands/read.c: Likewise.
18145 * kern/corecmd.c (grub_core_cmd_ls): Likewise.
18146 * kern/rescue_reader.c (grub_rescue_read_line): Likewise.
18147 * lib/arg.c (grub_arg_show_help): Likewise.
18148 * lib/crypto.c (grub_password_get): Likewise.
18149 * normal/auth.c (grub_username_get): Likewise.
18150 * normal/misc.c (grub_normal_print_device_info): Likewise.
18151 * commands/help.c (grub_cmd_help): Use grub_unicode_aglomerate_comb.
18152 * conf/common.rmk (grub_mkfont_SOURCES): Add unidata.c.
18153 (gfxmenu_mod_SOURCES): Add gfxmenu/font.c.
18154 (normal/charset.c_DEPENDENCIES): New variable.
18155 (normal_mod_SOURCES): Add normal/charset.c and unidata.c.
18156 (pkglib_MODULES): Remove charset.mod.
18157 (charset_mod_SOURCES): Removed.
18158 (charset_mod_CFLAGS): Likewise.
18159 (charset_mod_LDFLAGS): Likewise.
18160 (pkglib_MODULES) [ieee1275]: Remove terminfo.mod.
18161 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Add term/terminfo.c
18163 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
18164 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
18165 (kernel_img_HEADERS): Add terminfo.h.
18166 * font/font.c (ascii_glyph_lookup): Return NULL on failure.
18167 Fill ->font. Reverse ascii bitmaps.
18168 (grub_font_get_xheight): New function.
18169 * font/font.c (grub_font_get_string_width): Moved from here ...
18170 * gfxmenu/font.c (grub_font_get_string_width): ... here.
18171 * font/font.c (grub_font_draw_string): Moved from here ...
18172 * gfxmenu/font.c (grub_font_draw_string): ... here.
18173 * font/font.c (grub_font_dup_glyph): New function.
18174 (grub_font_blit_glyph): Likewise.
18175 (grub_font_blit_glyph_mirror): Likewise.
18176 (blit_comb): Likewise.
18177 (grub_font_construct_dry_run): Likewise.
18178 (grub_font_get_constructed_device_width): Likewise.
18179 (grub_font_construct_glyph): Likewise.
18180 * include/grub/charset.h (grub_ucs4_to_utf8): New proto.
18181 * include/grub/misc.h (grub_utf8_to_ucs4): Moved from here ...
18182 * include/grub/charset.h (grub_utf8_to_ucs4): ... here.
18183 * include/grub/font.h (GRUB_FONT_CODE_CHAR_MASK): New constant.
18184 (GRUB_FONT_CODE_RIGHT_JOINED): Likewise.
18185 (GRUB_FONT_CODE_LEFT_JOINED): Likewise.
18186 (grub_font_get_xheight): New proto.
18187 (grub_font_get_constructed_device_width): Likewise.
18188 (grub_font_construct_glyph): Likewise.
18189 * include/grub/font.h (grub_font_get_string_width): Moved from here ...
18190 * include/grub/gfxmenu_view.h (grub_font_get_string_width): ... here.
18191 * include/grub/font.h (grub_font_draw_string): Moved from here ...
18192 * include/grub/gfxmenu_view.h (grub_font_draw_string): ... here.
18193 * include/grub/i386/vga_common.h (grub_console_putchar): Moved from here..
18194 * include/grub/i386/pc/console.h (grub_console_putchar): ... here.
18195 * include/grub/i386/vga_common.h (grub_console_real_putchar): Removed.
18196 (grub_console_getcharwidth): Likewise.
18197 * include/grub/misc.h (grub_xputs): New proto.
18198 (grub_puts): Inlined.
18199 * include/grub/normal.h (grub_print_ucs4): Add margin specification.
18200 (grub_normal_get_line_counter): Removed.
18201 (grub_install_newline_hook): Likewise.
18202 (grub_normal_get_char_counter): New proto.
18203 (grub_normal_reset_more): Likewise.
18204 (grub_xputs_normal): Likewise.
18205 * include/grub/powerpc/ieee1275/console.h: Removed.
18206 * include/grub/sparc64/ieee1275/console.h: Likewise.
18207 * include/grub/term.h (GRUB_TERM_CODE_TYPE_MASK): New definition.
18208 (GRUB_TERM_CODE_TYPE_ASCII): Likewise.
18209 (GRUB_TERM_CODE_TYPE_CP437): Likewise.
18210 (GRUB_TERM_CODE_TYPE_UTF8_LOGICAL): Likewise.
18211 (GRUB_TERM_CODE_TYPE_UTF8_VISUAL): Likewise.
18212 (GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS): Likewise.
18213 (grub_term_input): Pass reference to self. All users updated.
18214 (grub_term_output): Pass grub_unicode_glyph to putchar and getcharwidth.
18215 Pass reference to self. New fields normal_color, highlight_color and
18216 data. All users updated.
18217 (grub_putchar): Removed.
18218 (grub_putcode): Remove EXPORT_FUNC since it's not in kernel anymore.
18219 (grub_unicode_estimate_width): New function.
18220 (grub_term_getcharwidth): Add defaults.
18221 (GRUB_TERM_DEFAULT_NORMAL_COLOR): New definition.
18222 (GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR): Likewise.
18223 (GRUB_TERM_DEFAULT_STANDARD_COLOR): Likewise.
18224 (grub_cls): Remove EXPORT_FUNC.
18225 (grub_setcolorstate): Inline.
18226 (grub_newline_hook): Removed.
18227 * include/grub/terminfo.h: Rewritten. All users updated.
18228 * include/grub/unicode.h: New file.
18229 * include/grub/video.h (grub_video_signed_rect): New type.
18230 * kern/emu/console.c (grub_console_highlight_color): Removed.
18231 (grub_console_normal_color): Likewise.
18232 (grub_console_standard_color): Made static.
18233 (grub_ncurses_putchar): Remove mapping.
18234 (grub_ncurses_getcharwidth): Removed.
18235 (grub_ncurses_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
18236 (grub_ncurses_setcolor): Removed.
18237 (grub_ncurses_getcolor): Likewise.
18238 * kern/i386/pc/startup.S (grub_console_real_putchar): Renamed to ...
18239 (grub_console_putchar): ... this.
18240 (grub_console_putchar): Handle argument difference.
18241 * kern/ieee1275/init.c (grub_machine_init): Split console_init into
18242 console_init_early and console_init_lately.
18243 * kern/sparc64/ieee1275/init.c (grub_machine_init): Likewise.
18244 * kern/misc.c (grub_puts): Removed.
18245 (grub_vprintf): Store UTF-8 string instead of outputting it directly.
18246 (grub_vsnprintf_real): Remove str = NULL support.
18247 * kern/misc.c (grub_utf8_to_ucs4): Move from here ...
18248 * normal/charset.c (grub_utf8_to_ucs4): ... here.
18249 * kern/term.c (grub_putcode): Renamed to ...
18250 (grub_putcode_dumb): ... this. Pass grub_unicode_glyph instead of code.
18251 (grub_putchar): Removed.
18252 (grub_xputs_dumb): New function.
18253 (grub_xputs): New variable.
18254 * lib/charset.c: Move from here ...
18255 * normal/charset.c: ... to here.
18256 (grub_ucs4_to_utf8): New function.
18257 (grub_ucs4_to_utf8_alloc): Use grub_ucs4_to_utf8.
18258 (join_types): New variable.
18259 (unpack_join): New function.
18260 (bidi_types): New variable.
18261 (unpack_bidi): New function.
18262 (get_bidi_type): Likewise.
18263 (get_join_type): Likewise.
18264 (is_mirrored): Likewise.
18265 (grub_unicode_get_comb_type): Likewise.
18266 (grub_unicode_estimate_width) [HAVE_UNIFONT_WIDTHSPEC]: Likewise.
18267 (is_type_after): Likewise.
18268 (grub_unicode_aglomerate_comb): Likewise.
18269 (bidi_line_wrap): Likewise.
18270 (grub_bidi_line_logical_to_visual): Likewise.
18271 (grub_bidi_logical_to_visual): Likewise.
18272 (grub_unicode_mirror_code): Likewise.
18273 (grub_unicode_shape_code): Likewise.
18274 * normal/cmdline.c (grub_cmdline_get): Reset more counter.
18275 Don't use grub_putchar.
18276 * normal/main.c (grub_normal_init_page): Use grub_putcode.
18277 (grub_normal_reader_init): Likewise.
18278 (grub_xputs_saved): New variable.
18279 (GRUB_MOD_INIT): Set grub_xputs.
18280 (GRUB_MOD_FINI): Restore grub_xputs.
18281 * normal/menu.c (grub_wait_after_message): Don't use grub_putchar.
18282 (menu_init): Avoid printing gfxmenu error.
18283 (show_menu): Use grub_normal_get_char_counter.
18284 * normal/menu_entry.c (update_screen): Fix out-of-array.
18285 (complete): Avoid NULL dereferencing.
18286 * grub_menu_entry_run (grub_menu_entry_run): Don't use putchar.
18287 * normal/menu_text.c (print_spaces): Removed.
18288 (grub_print_ucs4): Likewise.
18289 (grub_print_message_indented): Use grub_print_ucs4.
18290 (print_message): Use grub_putcode.
18291 (print_entry): Hanlde diacritics.
18292 * normal/term.c (term_state): New type.
18293 (grub_more_lines): Removed.
18294 (term_states): New variable.
18295 (grub_normal_line_counter): Renamed to ..
18296 (grub_normal_char_counter): ...this. All users updated.
18297 (grub_normal_get_line_counter): Renamed to ...
18298 (grub_normal_get_char_counter): ... this.
18299 (grub_normal_reset_more): New function.
18300 (process_newline): Removed.
18301 (print_more): New function.
18302 (grub_install_newline_hook): Removed.
18303 (map_code): New function.
18304 (grub_puts_terminal): Use grub_print_ucs4.
18305 (putglyph): New function.
18306 (putcode_real): Likewise.
18307 (grub_putcode): Use putcode_real.
18308 (get_maxwidth): New function.
18309 (get_startwidth): Likewise.
18310 (print_ucs4_terminal): Likewise.
18311 (find_term_state): Likewise.
18312 (put_glyphs_terminal): Likewise.
18313 (print_backlog): Likewise.
18314 (print_ucs4_real): Likewise.
18315 (grub_print_ucs4): Likewise.
18316 (grub_xputs_normal): Likewise.
18317 * term/efi/console.c (grub_console_putchar): Output diacritics.
18318 (grub_console_getcharwidth): Removed.
18319 (grub_console_term_output): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
18320 * term/gfxterm.c (clear_char): Free chars.
18321 (scroll_up): Avoid leaking memory.
18322 (grub_gfxterm_putchar): Support diacritics.
18323 (grub_video_term): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
18324 * term/i386/pc/console.c (grub_console_term_output): Declare as
18325 GRUB_TERM_CODE_TYPE_VGA.
18326 * term/i386/pc/vga.c (grub_vga_term): Declare as
18327 GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS.
18328 * term/i386/pc/vga_text.c (grub_vga_text_term): Declare as
18329 GRUB_TERM_CODE_TYPE_VGA.
18330 * term/i386/vga_common.c (map_char): Removed.
18331 (grub_console_putchar): Likewise.
18332 (grub_console_getcharwidth): Likewise.
18333 * term/ieee1275/ofconsole.c: Simplify using terminfo.
18334 (colors): Reordered to match terminfo.
18335 (grub_ofconsole_normal_color): Removed.
18336 (grub_ofconsole_writeesc): Likewise.
18337 (grub_ofconsole_highlight_color): Likewise.
18338 (grub_ofconsole_getcharwidth): Likewise.
18339 (grub_ofconsole_setcolorstate): Likewise.
18340 (grub_ofconsole_setcolor): Likewise.
18341 (grub_ofconsole_getcolor): Likewise.
18342 (grub_ofconsole_readkey): Renamed to ...
18343 (readkey): ... this. Remove escape sequence handling. Return -1 on no
18345 (grub_ofconsole_checkkey): Removed.
18346 (grub_ofconsole_getkey): Likewise.
18347 (grub_ofconsole_getxy): Likewise.
18348 (grub_ofconsole_gotoxy): Likewise.
18349 (grub_ofconsole_cls): Likewise.
18350 (grub_ofconsole_refresh): Likewise.
18351 (grub_ofconsole_terminfo_input): New struct.
18352 (grub_ofconsole_terminfo_output): Likewise.
18353 (grub_ofconsole_term_input): Use terminfo.
18354 (grub_ofconsole_term_output): Likewise.
18355 (grub_console_init): Split into ...
18356 (grub_console_init_early): ...this and ...
18357 (grub_console_init_lately): ...this. Use terminfo.
18358 (grub_ofconsole_putchar): Renamed to ...
18359 (put): ... this. Remove mapping.
18360 (grub_ofconsole_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
18361 * term/serial.c: Simplify using terminfo.
18364 (keep_track): Likewise.
18365 (registered): Likewise.
18366 (input_buf): Likewise.
18367 (npending): Likewise.
18368 (serial_translate_key_sequence): Likewise.
18369 (fill_input_buf): Likewise.
18370 (grub_serial_checkkey): Likewise.
18371 (grub_serial_getkey): Likewise.
18372 (grub_serial_getxy): Likewise.
18373 (grub_serial_gotoxy): Likewise.
18374 (grub_serial_putchar): Likewise.
18375 (grub_serial_cls): Likewise.
18376 (grub_serial_setcolorstate): Likewise.
18377 (grub_serial_setcursor): Likewise.
18378 (serial_hw_init): Use serial_hw_fetch.
18379 (grub_serial_terminfo_input): New variable.
18380 (grub_serial_terminfo_output): Likewise.
18381 (grub_serial_term_input): Use terminfo.
18382 (grub_serial_term_output): Likewise.
18383 * term/terminfo.c (putstr): Use put.
18384 (grub_terminfo_all_free): New function
18385 (grub_terminfo_set_current): New types vt100-color, ieee1275 and dumb.
18386 (grub_terminfo_output_register): New function.
18387 (grub_terminfo_output_unregister): Likewise.
18388 (grub_terminfo_getxy): Likewise.
18389 (grub_terminfo_readkey): Likewise.
18390 (grub_terminfo_checkkey): Likewise.
18391 (grub_terminfo_getkey): Likewise.
18392 (grub_terminfo_input_init): Likewise.
18393 (print_terminfo): Likewise.
18394 (grub_cmd_terminfo): Handle encoding.
18395 (grub_terminfo_gotoxy): Track position.
18396 (grub_terminfo_cls): Likewise.
18397 (grub_terminfo_putchar): Likewise.
18398 (grub_terminfo_setcolorstate): Handle colors
18399 (grub_terminfo_cursor_on): This ...
18400 (grub_terminfo_cursor_off): ... and this merged into ...
18401 (grub_terminfo_setcursor): ... this.
18402 * term/tparm.c (grub_terminfo_tparm): Avoid NULL dereferencing.
18403 * unicode/ArabicShaping.txt: New file (imported from Unicode).
18404 * unicode/BidiMirroring.txt: Likewise.
18405 * unicode/UnicodeData.txt: Likewise.
18406 * unicode/COPYING: Likewise.
18407 * util/grub-editenv.c (grub_putchar): Removed.
18408 (grub_xputs_real): New function.
18409 (grub_xputs): New variable.
18410 * util/grub-fstest.c (grub_putchar): Removed.
18411 (grub_xputs_real): New function.
18412 (grub_xputs): New variable.
18413 * util/grub-mkdevicemap.c (grub_putchar): Removed.
18414 (grub_xputs_real): New function.
18415 (grub_xputs): New variable.
18416 * util/grub-probe.c (grub_putchar): Removed.
18417 (grub_xputs_real): New function.
18418 (grub_xputs): New variable.
18419 * util/grub-script-check.c (grub_putchar): Removed.
18420 (grub_xputs_real): New function.
18421 (grub_xputs): New variable.
18422 * util/i386/pc/grub-setup.c (grub_putchar): Removed.
18423 (grub_xputs_real): New function.
18424 (grub_xputs): New variable.
18425 * util/import_unicode.py: New file.
18426 * util/grub-mkfont.c (ft_errmsgs): New array.
18427 (grub_glyph_info): Make bitmap a pointer.
18428 (file_formats): New type WIDTH_SPEC.
18429 (grub_font_info): New members glyphs_unsorted, glyphs_sorted, num_glyphs.
18430 (options): Add width-spec.
18432 (add_char): Renamed to ...
18433 (add_glyph): ... this.
18434 (add_glyph): Use index. Show freetype errors. Cut blank space at borders.
18435 (glyph_replace): New type.
18436 (subst_rightjoin), (subst_leftjoin), (subst_medijoin): New variables.
18437 (add_char): New function.
18438 (add_subst): Likewise.
18439 (process_cursive): Likewise.
18440 (add_font): Handle GSUB.
18441 (write_font_width_spec): New function.
18442 (main): Sort glyphs.
18443 * commands/minicmd.c (grub_mini_cmd_clear): Moved from here ...
18444 * normal/main.c (grub_mini_cmd_clear): ..here. All users updated.
18445 * kern/term.c (grub_cls): Moved from here...
18446 * normal/term.c (grub_cls): ... here.
18448 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
18450 * include/grub/types.h: Define the C99-style PRIxGRUB_SIZE macro,
18451 suitable for using within the format argument of printf when
18452 converting grub_size_t.
18453 * disk/usbms.c (grub_usbms_transfer): Use PRIxGRUB_SIZE rather than
18454 "x" to convert grub_size_t arguments.
18456 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
18458 * gfxmenu/gui_list.c (draw_menu): Use viewport to simplify code and fix
18460 (list_get_minimal_size): Take selection box into account.
18462 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
18464 * font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing
18467 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
18469 * util/deviceiter.c (grub_util_iterate_devices): Skip device-mapper
18470 devices when iterating over /dev/disk/by-id; they will be handled
18471 later if appropriate, which they aren't always (e.g. LVM).
18473 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
18475 * include/grub/misc.h (grub_reboot): Declare as noreturn.
18476 * kern/efi/efi.c (grub_reboot): Don't return, even if reset_system
18478 (grub_halt): Likewise.
18479 * kern/ieee1275/openfw.c (grub_reboot): Don't return, even if
18481 (grub_halt): Don't return, even if all of shut-down, power-off, and
18484 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
18486 * kern/efi/init.c (grub_efi_init): set_watchdog_timer takes four
18487 arguments, not three.
18489 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
18491 * util/grub-mkconfig_lib.in (uses_abstraction): New function.
18492 * util/grub.d/10_linux.in: Use it to check for LVM, so that
18493 LVM-on-RAID is handled correctly.
18495 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
18497 * docs/grub.texi (Changes from GRUB Legacy): New section.
18498 (Future): Fix typo.
18500 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
18502 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
18503 grub.d/README accidentally ends up executable for one reason or
18504 another. Ignore it.
18506 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
18508 * partmap/gpt.c (MAX_SECTOR_LOG): New definition.
18509 (gpt_partition_map_iterate): Support non-512B sectors.
18511 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
18513 * kern/efi/init.c (grub_efi_init): Disable watchdog.
18514 Tested by: Seth Goldberg.
18516 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
18518 * loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
18519 Properly align mbi.
18520 Reported by: Seth Goldberg.
18522 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
18524 * util/grub-mkrescue.in: Avoid module duplication.
18526 2010-07-01 Sean Finney <seanius@seanius.net>
18528 * util/grub.d/10_linux.in: Don't use UUID for LVM root.
18530 2010-07-01 Sean Finney <seanius@seanius.net>
18532 * disk/lvm.c (grub_lvm_scan_device): Skip snapshots.
18534 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
18536 * disk/lvm.c (grub_lvm_checkvalue): New function.
18537 (grub_lvm_check_flag): Likewise.
18539 2010-07-01 Robert Millan <rmh@gnu.org>
18541 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk):
18542 Support 'p' as partition separator on kernel of FreeBSD (used
18544 (grub_util_biosdisk_get_grub_dev): Likewise.
18546 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
18548 Yeeloong firmware port.
18550 * boot/mips/yeeloong/fwstart.S: New file.
18551 * bus/cs5536.c (gpiodump): New const.
18552 (set_io_space): New function.
18553 (set_iod): Likewise.
18554 (set_p2d): Likewise.
18555 (grub_cs5536_init_geode): Likewise.
18556 * commands/mips/yeeloong/lsspd.c: New file.
18557 * conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod.
18558 (serial_mod_SOURCES): New variable.
18559 (serial_mod_CFLAGS): Likewise.
18560 (serial_mod_LDFLAGS): Likewise.
18561 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c,
18562 term/terminfo.c and term/tparm.c.
18563 (pkglib_IMAGES): Add fwstart.img.
18564 (fwstart_img_SOURCES): New variable.
18565 (fwstart_img_CFLAGS): Likewise.
18566 (fwstart_img_ASFLAGS): Likewise.
18567 (fwstart_img_LDFLAGS): Likewise.
18568 (fwstart_img_FORMAT): Likewise.
18569 (pkglib_MODULES): Add lsspd.mod.
18570 (lsspd_mod_SOURCES): New variable.
18571 (lsspd_mod_CFLAGS): Likewise.
18572 (lsspd_mod_LDFLAGS): Likewise.
18573 (pkglib_MODULES): Add halt.mod.
18574 (halt_mod_SOURCES): New variable.
18575 (halt_mod_CFLAGS): Likewise.
18576 (halt_mod_LDFLAGS): Likewise.
18577 * conf/mips.rmk (pkglib_MODULES): Remove serial.mod.
18578 (serial_mod_SOURCES): Removed.
18579 (serial_mod_CFLAGS): Likewise.
18580 (serial_mod_LDFLAGS): Likewise.
18581 * disk/ata.c (check_device): New function.
18582 (grub_ata_device_initialize): Use check_device.
18583 (grub_ata_iterate): Recheck devices.
18584 (grub_ata_open): Likewise.
18585 (grub_atapi_iterate): Likewise.
18586 (grub_atapi_open): Likewise.
18587 * include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro.
18588 (GRUB_ATA_CH1_PORT1): Likewise.
18589 (GRUB_ATA_CH0_PORT2): Likewise.
18590 (GRUB_ATA_CH1_PORT2): Likewise.
18591 * include/grub/mips/loongson.h: New file.
18592 * include/grub/mips/yeeloong/ec.h: Likewise.
18593 * include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition.
18594 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise.
18595 (GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove.
18596 * include/grub/misc.h (grub_halt): Declare as noreturn.
18597 * include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ...
18598 (UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated.
18599 (UART_ENABLE_FIFO_TRIGGER1): New definition.
18600 (UART_ENABLE_DTRRTS): Likewise.
18601 (UART_ENABLE_MODEM): Removed.
18602 (UART_ENABLE_OUT2): New const.
18603 * include/grub/term.h (grub_term_register_input_active): New function.
18604 (grub_term_register_output_active): Likewise.
18605 * kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff
18607 * kern/mips/yeeloong/init.c (grub_get_rtc): Macroify.
18608 (init_pci): New function.
18609 (grub_machine_init): Execute platform init when firmware. Init serial.
18610 (grub_halt): Implement.
18611 (grub_exit): Likewise.
18612 (grub_reboot): Likewise.
18613 * term/serial.c (serial_hw_init): Update macros.
18614 [GRUB_MACHINE_MIPS_YEELOONG]: Init on startup.
18615 * util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH.
18616 (image_targets): New target mipsel-yeeloong-flash.
18617 (generate_image): Support IMAGE_YEELOONG_FLASH.
18618 * video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition.
18619 (grub_video_sm712_setup): Init card.
18620 (grub_video_sm712_set_palette): Removed.
18621 * video/sm712_init.c: New file.
18623 2010-06-30 Colin Watson <cjwatson@ubuntu.com>
18625 * Makefile.in (install-local): Temporarily prepend $(builddir) to
18626 PATH when running help2man and then run it on the unadorned
18627 executable names, rather than passing $(builddir)/* paths to
18628 help2man. This avoids the build directory ending up in generated
18631 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
18633 * util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
18634 to avoid accidents when debugging with 'sh -x'.
18635 * util/grub-mkrescue.in: Likewise.
18636 * util/grub.d/00_header.in: Likewise.
18637 * util/grub.d/10_hurd.in: Likewise.
18638 * util/grub.d/10_kfreebsd.in: Likewise.
18639 * util/grub.d/10_linux.in: Likewise.
18640 * util/grub.d/10_netbsd.in: Likewise.
18641 * util/grub.d/10_windows.in: Likewise.
18642 * util/grub.d/20_linux_xen.in: Likewise.
18643 * util/grub.d/30_os-prober.in: Likewise.
18644 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
18646 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
18648 * commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
18649 last character in the buffer.
18650 Reported by: Vladimir Serbinenko.
18652 2010-06-29 Robert Millan <rmh@gnu.org>
18654 * docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}.
18655 (Command-line and menu entry commands): Document `badram' command.
18657 2010-06-28 Robert Millan <rmh@gnu.org>
18659 * util/grub-mkconfig.in: Export `GRUB_BADRAM' variable.
18660 * util/grub.d/00_header.in: When `GRUB_BADRAM' is set, issue badram
18661 command using ${GRUB_BADRAM} as parameter.
18663 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
18665 * docs/grub.texi (Device map): New section.
18666 (Themes): New section (stub).
18667 * Makefile.in (docs/grub.info): The info documentation now builds
18668 without errors. Make sure it stays that way.
18670 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
18672 Use normal parser for menu entries.
18673 Reported by: Thomas Frauendorfer
18675 * include/grub/parser.h (grub_parser_execute): Don't export.
18676 * normal/menu.c (grub_menu_execute_entry_real): New function.
18677 (grub_menu_execute_entry): Use grub_menu_execute_entry_real.
18679 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
18681 * docs/grub.texi (Embedded configuration): New section (replacing
18682 old "Preset Menu" stub).
18683 (Images): New section.
18684 (configfile): Note that any menu entries defined in `file' are shown
18687 2010-06-28 Josh Triplett <josh@joshtriplett.org>
18689 * mmap/i386/pc/mmap_helper.S: Set CF on return.
18691 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
18693 * util/grub-install.in: Add --debug-image= option.
18695 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
18697 Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
18700 * util/deviceiter.c (check_device): Rename to ...
18701 (check_device_readable_unique): ... this. Update all callers.
18702 Maintain and check a list of which devices (by canonicalized name)
18703 have already been seen.
18704 (clear_seen_devices): New function.
18705 (compare_file_names) [__linux__]: New function.
18706 (grub_util_iterate_devices): Clear the list of seen devices on exit
18707 and (just in case) on entry.
18708 (grub_util_iterate_devices) [__linux__]: Iterate over non-partition
18709 devices in /dev/disk/by-id/, in sorted order. Remove DM-RAID
18710 seen-devices list, superseded by general code in check_device.
18712 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
18714 * commands/cat.c (options): New variable.
18715 (grub_cmd_cat): Parse options. If the --dos option is given, print
18716 DOS-style "\r\n" line endings as simple newlines (Debian bug
18718 (GRUB_MOD_INIT): Use extcmd.
18719 (GRUB_MOD_FINI): Likewise.
18720 * docs/grub.texi (cat): Document --dos.
18722 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
18724 XEN with Linux grub-mkconfig support.
18726 * conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
18727 * util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
18728 GRUB_CMDLINE_XEN_DEFAULT.
18729 * util/grub.d/20_linux_xen.in: New file.
18731 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
18733 Initialise VGA video on qemu ourselves.
18735 * boot/i386/qemu/boot.S: Don't call 0xc000.
18736 * conf/i386-qemu.rmk (kern/i386/qemu/init.c_DEPENDENCIES): New variable.
18737 (kernel_img_SOURCES): Add kern/i386/qemu/init.c and bus/pci.c.
18738 (kernel_img_HEADERS): Add pci.h.
18739 * conf/i386.rmk (pkglib_MODULES) [qemu]: Remove pci.mod.
18740 * configure.ac: Force unifont on qemu and yeeloong.
18741 * include/grub/i386/qemu/kernel.h (grub_qemu_init_cirrus): New proto.
18742 (grub_vga_palette_write): Use correct register.
18743 * kern/i386/coreboot/init.c (grub_machine_init) [GRUB_MACHINE_QEMU]:
18744 Call grub_qemu_init_cirrus.
18745 * kern/i386/qemu/init.c: New file.
18746 * term/i386/pc/vga_text.c (inc_y): Never read outside the screen.
18748 * commands/videotest.c (grub_cmd_videotest): Handle double buffering.
18750 2010-06-26 Pavel Roskin <proski@gnu.org>
18752 * util/grub.d/10_linux.in: Add support for initrd images on Fedora
18755 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
18757 * docs/grub.texi (Simple configuration): Explain that
18758 GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY must be
18759 set to `true' to disable their respective recovery entries, not
18762 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
18764 Make the `source' command slightly faster.
18766 * normal/main.c (grub_normal_execute): Don't re-read list files when
18769 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
18771 * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
18772 field position and mask size to red fields from mode_info, not
18774 * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
18775 Remove redundant tag->common.framebuffer_type assignment.
18776 Reported by: Seth Goldberg.
18778 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
18780 Sync up other versions of the Linux loader with Robert Millan's
18781 change of 2010-01-09, "Make loader output a bit more user-friendly".
18783 * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
18785 (grub_cmd_linux): Likewise.
18786 (grub_cmd_initrd): Likewise.
18787 * loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise.
18788 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
18790 2010-06-21 Colin Watson <cjwatson@ubuntu.com>
18792 * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
18793 larger than MEMORY_MAP_SIZE.
18795 2010-06-21 BVK Chaitanya <bvk.groups@gmail.com>
18797 Fix parallel build.
18799 * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
18801 * script/parser.y: #include grub_script.tab.h header.
18803 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
18805 Support >3GiB and <16MiB RAM in i386-qemu.
18807 * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
18808 (QEMU_CMOS_MEMSIZE2_LOW): Likewise.
18809 (grub_lower_mem): Removed.
18810 (grub_upper_mem): Likewise.
18811 (mem_size): Made static.
18812 (above_4g): New variable.
18813 (grub_machine_mmap_init): Detect small mem_size and above_4g.
18814 (grub_machine_mmap_iterate): Order in ascending order and add above_4g
18817 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
18819 Cirrus 5446 and Bochs video cards support.
18821 * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
18823 (video_cirrus_mod_SOURCES): New variable.
18824 (video_cirrus_mod_CFLAGS): Likewise.
18825 (video_cirrus_mod_LDFLAGS): Likewise.
18826 (video_bochs_mod_SOURCES): Likewise.
18827 (video_bochs_mod_CFLAGS): Likewise.
18828 (video_bochs_mod_LDFLAGS): Likewise.
18829 * include/grub/vga.h: New file.
18830 * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
18831 (grub_video_fb_set_page_t): New type.
18832 (grub_video_fb_setup): New prototype.
18833 (grub_video_fb_swap_buffers): Likewise.
18834 (grub_video_fb_get_info_and_fini): Likewise.
18835 * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
18836 (CRTC_DATA_PORT): Likewise.
18837 (CRTC_CURSOR): Likewise.
18838 (CRTC_CURSOR_ADDR_HIGH): Likewise.
18839 (CRTC_CURSOR_ADDR_LOW): Likewise.
18840 (CRTC_CURSOR_DISABLE): Likewise.
18841 (update_cursor): Use grub_vga_cr_write.
18842 (grub_vga_text_setcursor): Likewise.
18843 * video/bochs.c: New file.
18844 * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
18845 (palette): Likewise.
18846 (palette_size): Likewise.
18847 (framebuffer): New variable.
18848 (grub_video_fb_init): Use 'framebuffer'.
18849 (grub_video_fb_fini): Likewise.
18850 (grub_video_fb_get_info): Likewise.
18851 (grub_video_fb_get_palette): Likewise.
18852 (grub_video_fb_set_palette): Likewise.
18853 (grub_video_fb_set_viewport): Likewise.
18854 (grub_video_fb_get_viewport): Likewise.
18855 (grub_video_fb_map_color): Likewise.
18856 (grub_video_fb_map_rgb): Likewise.
18857 (grub_video_fb_map_rgba): Likewise.
18858 (grub_video_fb_unmap_color): Likewise.
18859 (grub_video_fb_unmap_color_int): Likewise.
18860 (grub_video_fb_fill_rect): Likewise.
18861 (grub_video_fb_blit_bitmap): Likewise.
18862 (grub_video_fb_blit_render_target): Likewise.
18863 (grub_video_fb_scroll): Likewise.
18864 (grub_video_fb_create_render_target): Likewise.
18865 (grub_video_fb_doublebuf_blit_init): Likewise.
18866 (grub_video_fb_set_active_render_target): Handle doublebuffering.
18867 (doublebuf_pageflipping_update_screen): New function.
18868 (doublebuf_pageflipping_init): Likewise.
18869 (grub_video_fb_setup): Likewise.
18870 (grub_video_fb_swap_buffers): Likewise.
18871 (grub_video_fb_get_info_and_fini): Likewise.
18872 * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
18874 (doublebuf_pageflipping_commit): Restructured into ...
18875 (doublebuf_pageflipping_set_page): ... this.
18876 (doublebuf_pageflipping_update_screen): Removed.
18877 (doublebuf_pageflipping_init): Likewise.
18878 (double_buffering_init): Likewise.
18879 (grub_video_vbe_setup): Use grub_video_fb_setup.
18880 (grub_video_vbe_swap_buffers): Removed.
18881 (grub_video_vbe_set_active_render_target): Likewise.
18882 (grub_video_vbe_get_active_render_target): Likewise.
18883 (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
18884 (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
18885 grub_video_fb_set_active_render_target and
18886 grub_video_fb_get_active_render_target.
18887 * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
18888 (SEQUENCER_DATA_PORT): Likewise.
18889 (MAP_MASK_REGISTER): Likewise.
18890 (CRTC_ADDR_PORT): Likewise.
18891 (CRTC_DATA_PORT): Likewise.
18892 (START_ADDR_HIGH_REGISTER): Likewise.
18893 (START_ADDR_LOW_REGISTER): Likewise.
18894 (GRAPHICS_ADDR_PORT): Likewise.
18895 (GRAPHICS_DATA_PORT): Likewise.
18896 (READ_MAP_REGISTER): Likewise.
18897 (INPUT_STATUS1_REGISTER): Likewise.
18898 (INPUT_STATUS1_VERTR_BIT): Likewise.
18899 (get_map_mask): Use grub_vga_sr_read.
18900 (set_map_mask): Use grub_vga_sr_write.
18901 (set_read_map): Use grub_vga_gr_write.
18902 (set_start_address): Use grub_vga_cr_write.
18903 * video/sm712.c (framebuffer): Remove leftover fields.
18905 2010-06-20 Colin Watson <cjwatson@ubuntu.com>
18907 * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
18908 setting GRUB_VIDEO_BACKEND. Make it available as a user override
18909 instead. Replace the gfxterm backend check with a check that
18910 ${GRUB_PREFIX}/video.lst is non-empty.
18911 * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
18913 (load_video): New generated function. Call it before loading
18914 gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
18915 * util/grub.d/10_linux.in (linux_entry): Call load_video.
18916 * util/grub.d/30_os-prober.in (osx_entry): Likewise.
18917 * docs/grub.texi (Simple configuration): Document
18918 GRUB_VIDEO_BACKEND.
18920 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
18922 Use video functions in linux and xnu loaders.
18924 * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
18925 * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
18926 * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
18927 * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
18928 loader/i386/pc/linux.c.
18929 (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
18930 (find_line_len): Removed.
18931 (find_framebuf): Likewise.
18932 (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
18933 * loader/i386/efi/xnu.c: Removed.
18934 * loader/i386/pc/xnu.c: Moved from here...
18935 * loader/i386/xnu.c: ...here.
18937 Enable priorities in video drivers.
18939 * include/grub/video.h (grub_video_adapter_prio_t): New type.
18940 (grub_video_adapter): New field prio.
18941 (grub_video_register): Respect prio when inserting.
18942 * video/efi_gop.c (grub_video_gop_adapter): Add prio.
18943 * video/efi_uga.c (grub_video_uga_adapter): Likewise.
18944 * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
18945 * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
18946 * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
18947 * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
18948 * video/sm712.c (grub_video_sm712_adapter): Likewise.
18952 * include/grub/video.h (grub_video_driver_id_t): New value
18953 GRUB_VIDEO_DRIVER_SDL.
18954 * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
18956 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
18958 * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
18959 argument to printf.
18960 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
18962 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
18964 * util/i386/pc/grub-setup.c (usage): Fix syntax error.
18965 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
18967 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
18969 * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
18970 directly, and recommend grub-install instead.
18971 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
18973 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
18975 Fix i386-pc prefix handling with nested partitions (Debian bug
18976 #585068). Note that the case where the core image is booted using
18977 multiboot and relocated from its original location still requires
18980 * kern/i386/pc/init.c (make_install_device): If the prefix starts
18981 with "(,", fill the boot drive in between those two characters, but
18982 expect that a full partition specification including partition map
18984 * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
18985 specified, write a prefix without the drive name but including a
18986 full partition specification.
18988 2010-06-16 Colin Watson <cjwatson@ubuntu.com>
18990 * util/grub-mkconfig.in: Ignore non-option arguments, for
18991 compatibility with older versions (before 2010-06-12) which did the
18992 same. In particular, this makes it easier to ship an update-grub
18993 wrapper which is compatible with that used with GRUB Legacy (Debian
18996 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
18998 * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
18999 for manual page generation.
19001 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
19003 * po/POTFILES: Remove leftover commands/handler.c.
19005 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
19007 * util/grub-mkconfig.in: Remove vestige of old argument parsing that
19008 left this script non-functional.
19010 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
19012 * docs/man/grub-emu.h2m: New file.
19014 2010-06-13 Colin Watson <cjwatson@ubuntu.com>
19016 * docs/grub.texi (Commands): Document reduced command set in rescue
19018 (cpuid): New section.
19020 2010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
19022 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
19023 new partition naming style.
19024 * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
19026 2010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
19028 Add "-o grub.iso" like cmdline options support.
19030 * util/grub-install.in: Improve cmdline option parsing.
19031 * util/grub-mkconfig.in: Likewise.
19032 * util/grub-mkrescue.in: Likewise.
19033 * util/grub-reboot.in: Likewise.
19034 * util/grub-set-default.in: Likewise.
19035 * util/i386/efi/grub-install.in: Likewise.
19036 * util/ieee1275/grub-install.in: Likewise.
19037 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
19039 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
19041 * .bzrignore: Ignore 41_custom.
19043 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
19045 * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
19047 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
19049 Avoid false positives in fs.lst, partmap.lst, and video.lst due to
19050 prototype declarations.
19052 * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
19053 generating fs, partmap, and video lists.
19054 * include/grub/fs.h (grub_fs_register): Omit prototype if
19055 GRUB_LST_GENERATOR is defined.
19056 * include/grub/partition.h (grub_partition_map_register): Likewise.
19057 * include/grub/video.h (grub_video_register): Likewise.
19059 2010-06-12 Javier Martín <lordhabbit@gmail.com>
19061 * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
19063 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
19065 * util/grub-mkrescue.in: Support --xorriso argument.
19067 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
19069 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
19070 Suggested by: Thomas Schmitt.
19072 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
19074 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
19075 Suggested by: Thomas Schmitt.
19077 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
19079 custom.cfg support.
19081 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
19082 * util/grub.d/41_custom.in: New file.
19084 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
19086 * util/grub-mkrescue.in (make_image): Remove sh module, which has
19087 been merged back into normal.
19089 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
19091 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
19092 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
19094 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
19096 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
19097 when generating manual pages.
19098 * docs/man/grub-bin2h.h2m: New file.
19099 * docs/man/grub-editenv.h2m: New file.
19100 * docs/man/grub-fstest.h2m: New file.
19101 * docs/man/grub-install.h2m: New file.
19102 * docs/man/grub-macho2img.h2m: New file.
19103 * docs/man/grub-mkconfig.h2m: New file.
19104 * docs/man/grub-mkdevicemap.h2m: New file.
19105 * docs/man/grub-mkfont.h2m: New file.
19106 * docs/man/grub-mkimage.h2m: New file.
19107 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
19108 * docs/man/grub-mkrelpath.h2m: New file.
19109 * docs/man/grub-mkrescue.h2m: New file.
19110 * docs/man/grub-ofpathname.h2m: New file.
19111 * docs/man/grub-pe2elf.h2m: New file.
19112 * docs/man/grub-probe.h2m: New file.
19113 * docs/man/grub-reboot.h2m: New file.
19114 * docs/man/grub-script-check.h2m: New file.
19115 * docs/man/grub-set-default.h2m: New file.
19116 * docs/man/grub-setup.h2m: New file.
19118 2010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
19120 Use FOR_* macros instead of *_iterate whenever possible.
19122 * commands/handler.c: Removed.
19123 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
19124 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
19125 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
19126 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
19127 (grub_probe_SOURCES): Remove kern/parser.c.
19128 (util/grub-script-check.c_DEPENDENCIES): Removed.
19129 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
19130 and grub_script_check_init.c.
19131 (grub_script_check_init.lst): Removed.
19132 (grub_script_check_init.h): Likewise.
19133 (grub_script_check_init.c): Likewise.
19134 (pkglib_MODULES): Remove handler.mod and sh.mod.
19135 (handler_mod_SOURCES): Removed.
19136 (handler_mod_CFLAGS): Likewise.
19137 (handler_mod_LDFLAGS): Likewise.
19138 (normal_mod_SOURCES): Remove normal/handler.c.
19139 Add script/main.c, script/script.c, script/execute.c,
19140 script/function.c, script/lexer.c, grub_script.tab.c
19141 and grub_script.yy.c.
19142 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
19143 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
19144 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
19145 (grub_setup_SOURCES): Remove kern/parser.c.
19146 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
19147 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
19148 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
19149 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
19150 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
19151 (grub_setup_SOURCES): Remove kern/parser.c.
19152 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
19153 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
19154 * include/grub/command.h (grub_command_iterate): Removed.
19155 (FOR_COMMANDS): New macro.
19156 * include/grub/dl.h (grub_dl): New member next.
19157 (grub_dl_iterate): Removed.
19158 (grub_dl_head): New variable declaration.
19159 (FOR_DL_MODULES): New macro.
19160 * include/grub/fs.h: Include list.h.
19161 (grub_fs): Make next first element.
19162 (grub_fs_list): New variable declaration.
19163 (grub_fs_register): Make inline.
19164 (grub_fs_unregister): Likewise.
19165 (grub_fs_iterate): Removed.
19166 (FOR_FILESYSTEMS): New macro.
19167 * include/grub/handler.h: Removed.
19168 * include/grub/list.h (grub_list_hook_t): Removed.
19169 (grub_list_test_t): Likewise.
19170 (grub_list_pop): Likewise.
19171 (grub_list_iterate): Likewise.
19172 (grub_list_insert): Likewise.
19173 (FOR_LIST_ELEMENTS): New macro.
19174 * include/grub/parser.h (grub_parser_class): Removed.
19175 (grub_parser_register): Likewise.
19176 (grub_parser_unregister): Likewise.
19177 (grub_parser_get_current): Likewise.
19178 (grub_parser_set_current): Likewise.
19179 (grub_register_rescue_parser): Likewise.
19180 (grub_rescue_parse_line): New function.
19181 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
19182 * include/grub/script_sh.h (grub_script_function_list): New variable
19184 (FOR_SCRIPT_FUNCTIONS): New macro.
19185 (grub_script_function_iterate): Removed.
19186 (grub_normal_parse_line): New prototype.
19187 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
19188 (FOR_DISABLED_TERM_INPUTS): Likewise.
19189 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
19190 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
19191 * include/grub/video.h (grub_video_adapter): Move 'next' to first
19193 (grub_video_register): Inline.
19194 (grub_video_unregister): Likewise.
19195 (grub_video_adapter_list): New variable declaration.
19196 (grub_video_iterate): Removed.
19197 (FOR_VIDEO_ADAPTERS): New macro.
19198 * kern/dl.c (grub_dl_list): Removed. All users updated.
19199 (grub_dl_iterate): Removed.
19200 * kern/fs.c (grub_fs_list): Make global.
19201 (grub_fs_register): Removed.
19202 (grub_fs_unregister): Likewise.
19203 (grub_fs_iterate): Likewise.
19204 * kern/handler.c: Removed.
19205 * kern/list.c (grub_list_pop): Removed.
19206 (grub_list_iterate): Likewise.
19207 (grub_list_insert): Likewise.
19208 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
19209 (grub_prio_list_insert): Don't use grub_list_insert.
19210 * kern/main.c (grub_register_rescue_parser): Don't call
19211 grub_register_rescue_parser.
19212 * kern/parser.c (grub_parser_class): Removed.
19213 (grub_parser_execute): Use grub_rescue_parse_line.
19214 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
19215 (grub_rescue_parser): Removed.
19216 (grub_register_rescue_parser): Likewise.
19217 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
19218 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
19219 (grub_auth_check_authentication): Likewise.
19220 * normal/completion.c (iterate_command): Removed.
19221 (grub_normal_do_completion): Use FOR_COMMANDS.
19222 * normal/handler.c: Removed.
19223 * normal/main.c (read_config_file): Remove parser changing.
19224 (grub_normal_execute): Don't call read_handler_list.
19225 (grub_normal_read_line_real): Statically allocate prompt.
19226 (grub_cmdline_run): Use grub_normal_parse_line.
19227 (GRUB_MOD_FINI): Don't call free_handler_list.
19228 * normal/menu_entry.c (run): Likewise.
19229 * script/function.c (grub_script_function_list): Make global.
19230 (grub_script_function_iterate): Removed.
19231 * script/main.c (grub_normal_parse_line): Make global.
19232 (grub_sh_parser): Removed.
19233 (GRUB_MOD_INIT): Likewise.
19234 (GRUB_MOD_FINI): Likewise.
19235 * tests/lib/functional_test.c (grub_functional_test): Use
19237 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
19238 (grub_test_run): Use FOR_LIST_ELEMENTS.
19239 * tests/lib/unit_test.c (main): Likewise.
19240 * util/deviceiter.c (grub_util_iterate_devices): Don't use
19242 * util/grub-fstest.c (grub_term_input_class): Removed.
19243 (grub_term_output_class): Likewise.
19244 * util/grub-probe.c: Likewise.
19245 * util/i386/pc/grub-setup.c: Likewise.
19246 * util/sparc64/ieee1275/grub-setup.c: Likewise.
19247 * util/grub-script-check.c (main): Don't call grub_init_all and
19249 * video/video.c (grub_video_adapter_list): Make global.
19250 (grub_video_register): Removed.
19251 (grub_video_unregister): Likewise.
19252 (grub_video_iterate): Likewise.
19254 2010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
19256 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
19257 reported by Henrique Ferreiro.
19259 2010-06-09 Robert Millan <rmh@gnu.org>
19261 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
19262 ones, when both are available.
19264 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
19266 Make --version uniform and avoid hard-coded program name.
19268 * util/grub-mkimage.c (main): Use `program_name' instead of
19270 * util/i386/pc/grub-setup.c (main): Likewise.
19271 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
19272 * util/grub-install.in: Save the basename of $0 in $self, and use the
19273 latter in informational messages. Use the same format for --version
19274 as the binary programs.
19275 * util/grub-mkconfig.in: Likewise.
19276 * util/grub-mkrescue.in: Likewise.
19277 * util/grub-reboot.in: Likewise.
19278 * util/grub-set-default.in: Likewise.
19279 * util/i386/efi/grub-install.in: Likewise.
19280 * util/ieee1275/grub-install.in: Likewise.
19281 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
19283 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
19285 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
19286 embedding area. Use <= instead of == when checking for non-emptiness.
19288 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
19290 * configure.ac: Add `.' to the directories searched for unifont.
19292 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
19294 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
19297 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
19299 * docs/grub.texi (History): Expand to cover GRUB 2.
19300 (Serial terminal): Refer to `terminal_input' and `terminal_output'
19301 commands, not `terminal'.
19302 (serial): Likewise.
19303 (terminal_input): New section.
19304 (terminal_output): New section.
19305 (uppermem): New section (stub).
19306 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
19308 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
19310 * docs/grub.texi (Security): Menu entries are unrestricted by
19311 default, not restricted to superusers as I had previously thought.
19312 Reword to account for this.
19314 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
19316 * kern/emu/misc.c (device_mapper_null_log): New function.
19317 (grub_device_mapper_supported): New function.
19318 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
19320 * kern/emu/hostdisk.c (find_partition_start): Check whether
19321 device-mapper is supported before trying to use it.
19322 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
19324 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
19326 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
19327 (File name syntax): Likewise.
19328 (help): --all is no longer supported in GRUB 2. Be more precise
19329 about pattern matching.
19331 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
19333 * normal/completion.c (grub_normal_do_completion): When completing
19334 arguments to "set" and the current word contains an equals sign,
19335 skip to after the equals sign before starting completion.
19337 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
19339 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
19341 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
19343 * docs/grub.texi (Network): New section.
19344 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
19345 `(nd)' as in GRUB Legacy.
19346 (pxe_unload): New section.
19348 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
19350 * docs/grub.texi (Troubleshooting): `echo' is not usually available
19351 in the rescue shell, so recommend using `set' instead. Thanks,
19354 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
19356 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
19357 (password): New section.
19358 (password_pbkdf2): New section.
19359 (search): New section.
19360 (Security): New section.
19361 (Troubleshooting): New section, currently very incomplete.
19362 (Invoking grub-mkpasswd-pbkdf2): New section.
19363 (Internals): New section, currently very incomplete.
19365 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
19367 * util/grub.d/00_header.in: Add some more quoting (of
19368 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
19370 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
19372 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
19374 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
19375 to `count', fixing variable shadowing that broke the -c option.
19377 2010-06-05 Colin Watson <cjwatson@ubuntu.com>
19379 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
19380 in case they contain spaces.
19382 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
19384 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
19385 "part_" to partmap module names, in line with grub-install.
19386 Reported by: Jindřich Makovička (Debian bug #584426).
19388 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
19390 * util/grub-mkimage.c: Make target-related error messages slightly
19391 more helpful; -O talks about "format". Explicitly point to the use
19392 of -O if no target is specified.
19393 Reported by: Didier Raboud (Debian bug #584415).
19395 2010-06-03 Colin Watson <cjwatson@ubuntu.com>
19397 * INSTALL: Document several build requirements for optional features
19398 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
19400 2010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
19402 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
19403 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
19404 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
19406 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
19408 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
19409 Thanks to Jordan Uggla for spotting this.
19411 2010-06-02 Aleš Nesrsta <starous@volny.cz>
19413 Finally make USB usable.
19415 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
19416 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
19417 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
19418 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
19419 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
19420 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
19421 (GRUB_OHCI_FSMPS): Likewise.
19422 (GRUB_OHCI_PERIODIC_START): Likewise.
19423 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
19424 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
19425 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
19426 (GRUB_OHCI_SET_PORT_RESET): Likewise.
19427 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
19428 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
19429 (grub_ohci_transaction): Likewise.
19430 (grub_ohci_transfer): Improve condition detection algorithms.
19431 Handle toggle property. Program the transactions correctly.
19432 Improve error handling. Various important fixups.
19433 (grub_ohci_portstatus): Put register writes in right order.
19434 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
19435 (grub_uhci_transfer): Don't show "failed" message on success.
19436 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
19438 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
19439 determine its size.
19440 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
19441 before initialization is completed. Use IN direction for empty
19442 transfers. Use last_trans and compute toggle.
19443 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
19444 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
19445 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
19446 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
19447 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
19448 (grub_usb_device): Increase toggle to 256.
19449 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
19450 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
19451 GRUB_USBMS_SUBCLASS_SFF8070.
19452 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
19453 (grub_scsi_inquiry): New member page and alloc_length.
19454 (grub_scsi_request_sense): New structure.
19455 (grub_scsi_request_sense_data): Likewise.
19456 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
19458 * disk/scsi.c (grub_scsi_request_sense): New function.
19459 (grub_scsi_test_unit_ready): Likewise.
19460 (grub_scsi_inquiry): Fill new fields.
19461 (grub_scsi_read_capacity): Likewise.
19462 (grub_scsi_read10): Add request sense at the end.
19463 (grub_scsi_read12): Likewise.
19464 (grub_scsi_write10): Likewise.
19465 (grub_scsi_write12): Likewise.
19466 (grub_scsi_open): Add Test Unit Ready.
19467 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
19468 Support additional subclasses. Con't clear halt yet. Activate the
19469 proper config. Calculate LUNs correctly.
19470 (grub_usbms_transfer): Various important fixups.
19472 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
19474 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
19475 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
19476 (grub_ohci_fini_hw): New function.
19477 (grub_ohci_restore_hw): Likewise.
19478 (GRUB_MOD_INIT(ohci)): Register preboot hook.
19479 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
19480 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
19482 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
19484 Dedicated DMA allocations.
19486 * bus/pci.c (grub_memalign_dma32): New function
19487 (grub_dma_free): Likewise.
19488 (grub_dma_get_virt): Likewise.
19489 (grub_dma_get_phys): Likewise.
19490 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
19491 (grub_ohci_pci_iter): Use dma32_alloc.
19492 (grub_ohci_transfer): Likewise.
19493 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
19494 (grub_usb_bulk_readwrite): Likewise.
19495 * include/grub/pci.h: Add declarations.
19497 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
19501 * bus/cs5536.c: New file.
19502 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
19503 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
19504 (cs5536_mod_SOURCES): New variable.
19505 (cs5536_mod_CFLAGS): Likewise.
19506 (cs5536_mod_LDFLAGS): Likewise.
19507 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
19509 (kernel_img_SOURCES): Add bus/cs5536.c.
19510 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
19512 (usb_mod_SOURCES): New variable.
19513 (usb_mod_CFLAGS): New variable.
19514 (usb_mod_LDFLAGS): New variable.
19515 (usbtest_mod_SOURCES): New variable.
19516 (usbtest_mod_CFLAGS): New variable.
19517 (usbtest_mod_LDFLAGS): New variable.
19518 (ohci_mod_SOURCES): New variable.
19519 (ohci_mod_CFLAGS): New variable.
19520 (ohci_mod_LDFLAGS): New variable.
19521 (usbms_mod_SOURCES): New variable.
19522 (usbms_mod_CFLAGS): New variable.
19523 (usbms_mod_LDFLAGS): New variable.
19524 (usb_keyboard_mod_SOURCES): New variable.
19525 (usb_keyboard_mod_CFLAGS): New variable.
19526 (usb_keyboard_mod_LDFLAGS): New variable.
19527 * include/grub/smbus.h: New file.
19528 * include/grub/cs5536.h: New file.
19530 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
19532 * util/grub.d/00_header.in: Add safety check to make sure that
19533 ${locale_dir} exists before trying to probe it.
19535 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
19537 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
19538 per the GNU Coding Standards; this is now too obscure to be worth
19541 (chainloader): Remove cross-reference to `SCO UnixWare'.
19543 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
19545 * docs/grub.texi (Chain-loading): New section.
19546 (DOS/Windows): New section, borrowed from GRUB Legacy with details
19547 adjusted for GRUB 2.
19548 (SCO UnixWare): Likewise.
19550 (chainloader): Add reference to `Block list syntax'.
19551 (drivemap): New section.
19552 (parttool): New section.
19554 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
19556 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
19558 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
19559 (Installing GRUB using grub-install): Remove reference to the grub
19560 shell; mention `grub-mkimage' and `grub-setup' instead.
19561 (Invoking grub-install): Likewise.
19562 (Interface): Add reference to `Menu entry editor'.
19563 (serial): Remove `--device' option.
19565 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
19567 * docs/grub.texi (Configuration): New section, documenting
19568 configuration file generation using grub-mkconfig. I've left a slot
19569 for documenting the full shell scripting format but have not yet
19570 started on writing that up.
19571 (Invoking grub-mkconfig): New section.
19573 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
19575 * docs/grub.texi (direntry): Remove grub-terminfo reference.
19576 (GNU GRUB manual): Likewise.
19577 (General commands): Update description of `terminfo' for GRUB 2.
19579 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
19581 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
19582 (GRUB_MOD_INIT): Fix capitalisation.
19583 * docs/grub.texi (Command-line and menu entry commands): Document
19584 gettext and gptsync commands.
19586 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
19588 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
19589 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
19591 2010-06-01 Colin Watson <cjwatson@ubuntu.com>
19593 Add btrfs probing support, currently only in the single-device case.
19595 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
19597 (grub_guess_root_device): Call find_root_device_from_mountinfo
19598 before looking in /dev.
19600 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
19602 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
19603 GRUB_DISK_SIZE_UNKNOWN.
19604 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
19606 2010-05-31 Jiro SEKIBA <jir@unicus.jp>
19608 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
19609 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
19610 corrupted or not synced properly.
19612 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
19614 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
19615 Reported by: Seth Goldberg.
19617 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
19619 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
19621 Reported by: Seth Goldberg.
19623 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
19625 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
19626 Reported by: Seth Goldberg.
19628 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
19630 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
19631 64-bit address as signed on MIPS.
19633 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
19635 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
19636 to the empty string.
19638 2010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
19640 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
19642 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
19643 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
19644 * kern/misc.c (__enable_execute_stack): Disable on
19647 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
19649 Make grub-probe work with symbolic links under /dev/mapper as well
19650 as with real block devices. The Linux world seems to be (at best)
19651 in transition here, and GRUB shouldn't get caught in the middle.
19653 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
19656 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
19658 * util/grub-script-check.c (main): Ensure defined behaviour on empty
19659 input files (in which case exit zero).
19661 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
19663 * kern/emu/misc.c (canonicalize_file_name): realpath can still
19664 return NULL for various reasons even if it has a maximum-length
19665 buffer: for example, there might be a symlink loop, or the path
19666 might exceed PATH_MAX. If this happens, return NULL.
19668 2010-05-27 Robert Millan <rmh@gnu.org>
19670 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
19671 partmap module to handle cross-partmap setups.
19672 Reported by Orestes Mas. Gràcies!
19674 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
19676 * util/grub-mkrescue.in: Initialise override_dir rather than
19677 assuming that it's unset or empty in the environment.
19679 2010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
19681 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
19682 variable index into p_index to suppress a warning with -Wshadow.
19684 2010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
19686 * INSTALL: Added flex >= 2.5.35 requirement.
19688 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
19690 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
19692 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
19696 * commands/i386/cmostest.c: New file.
19697 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
19698 (cmostest_mod_SOURCES): New variable.
19699 (cmostest_mod_CFLAGS): Likewise.
19700 (cmostest_mod_LDFLAGS): Likewise.
19701 * conf/i386-pc.rmk: Likewise.
19702 * docs/grub.texi (Vendor power-on keys): New section.
19703 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
19704 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
19705 and GRUB_BUTTON_CMOS_ADDRESS.
19706 * util/grub.d/00_header.in: Handle powering-on by separate button.
19708 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
19710 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
19711 Removed drawing_scrollbar argument. All users updated
19713 Reported by Jo Shields
19715 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
19717 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
19718 buffer since gfxterm handles double repaint.
19720 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
19722 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
19723 * term/gfxterm.c (real_scroll): Likewise.
19725 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
19727 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
19728 before calling BIOS.
19730 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
19732 * include/grub/i18n.h: Always enable grub_gettext.
19734 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
19736 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
19737 partition naming style.
19739 2010-05-21 Colin Watson <cjwatson@ubuntu.com>
19741 * util/grub-mkconfig.in: Fix handling of -o so that it works when
19742 not the first option.
19744 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
19746 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
19748 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
19750 * util/misc.c: Move inclusion of <limits.h> to ...
19751 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
19753 2010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
19755 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
19756 Fix merge error in NetBSD code.
19757 (find_partition_start) [__NetBSD__]: Likewise.
19759 2010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
19761 Fix grub-mkrescue usage unit testing.
19763 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
19765 2010-05-18 Christian Franke <franke@computer.org>
19767 * util/grub.d/10_windows.in: Use path names instead of
19768 drive letters to prevent warning from Cygwin 1.7.
19769 Add drivemap command to menuentry if needed.
19771 2010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
19773 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
19774 gnumach and gnumach.gz.
19776 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19778 * include/grub/i18n.h (gettext): Inline instead of using #define.
19779 (grub_gettext): Likewise.
19782 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19784 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
19785 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
19786 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
19787 (main): Add a slash after pkglibdirroot.
19789 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19791 * util/grub-install.in: Add missing "in" keyword.
19793 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19795 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
19796 Reported by: Seth Goldberg.
19798 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19800 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
19802 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
19804 * configure.ac: Check for Linux device-mapper support.
19806 * util/hostdisk.c (device_is_mapped): New function.
19807 (find_partition_start): New function, partly broken out from
19808 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
19809 device-mapper support added.
19810 (linux_find_partition): Use find_partition_start.
19811 (convert_system_partition_to_system_disk): Add `st' argument.
19812 Support Linux /dev/mapper/* devices if device-mapper support is
19813 available; only DM-RAID devices are understood at present.
19814 (find_system_device): Add `st' argument. Pass it to
19815 convert_system_partition_to_system_disk.
19816 (grub_util_biosdisk_get_grub_dev): Pass stat result to
19817 find_system_device and convert_system_partition_to_system_disk. Use
19818 find_partition_start.
19820 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
19821 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
19822 * util/deviceiter.c [__linux__]: Define MINOR.
19823 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
19824 * util/mkdevicemap.c (grub_putchar): New function.
19825 (grub_getkey): New function.
19826 (grub_refresh): New function.
19827 (main): Set debug=all if -v -v is used.
19829 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
19831 Fix build with non-GNU libcs.
19833 * util/misc.c (canonicalize_file_name): Move to ...
19834 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
19835 grub_make_system_path_relative_to_its_root.
19837 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
19839 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
19840 we handle finding grub-mkimage. Default to finding grub-mkimage in
19841 ${bindir} with program_transform_name applied, and provide a
19842 --grub-mkimage option to override this.
19844 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19846 Remove grub-mkisofs.
19848 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
19849 (grub_mkisofs_SOURCES): Removed.
19850 (grub_mkisofs_CFLAGS): Removed.
19851 * util/mkisofs/defaults.h: Removed.
19852 * util/mkisofs/eltorito.c: Likewise.
19853 * util/mkisofs/exclude.h: Likewise.
19854 * util/mkisofs/hash.c: Likewise.
19855 * util/mkisofs/include/: Likewise.
19856 * util/mkisofs/include/fctldefs.h: Likewise.
19857 * util/mkisofs/include/mconfig.h: Likewise.
19858 * util/mkisofs/include/prototyp.h: Likewise.
19859 * util/mkisofs/include/statdefs.h: Likewise.
19860 * util/mkisofs/iso9660.h: Likewise.
19861 * util/mkisofs/joliet.c: Likewise.
19862 * util/mkisofs/match.c: Likewise.
19863 * util/mkisofs/match.h: Likewise.
19864 * util/mkisofs/mkisofs.c: Likewise.
19865 * util/mkisofs/mkisofs.h: Likewise.
19866 * util/mkisofs/msdos_partition.h: Likewise.
19867 * util/mkisofs/multi.c: Likewise.
19868 * util/mkisofs/name.c: Likewise.
19869 * util/mkisofs/rock.c: Likewise.
19870 * util/mkisofs/tree.c: Likewise.
19871 * util/mkisofs/write.c: Likewise.
19873 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19875 Unify grub-mkimage accross platforms.
19877 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
19878 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
19879 (grub_mkelfimage_SOURCES): Removed.
19880 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
19881 (util/grub-mkimage.c_DEPENDENCIES): .. this.
19882 (bin_UTILITIES): Add grub-mkimage.
19883 (grub_mkimage_SOURCES): New variable.
19884 (kernel_img_HEADERS): Remove machine/kernel.h.
19885 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
19886 (pkglib_PROGRAMS): Add kernel.img.
19887 (kernel_img_HEADERS): Add machine/kernel.h.
19888 (kernel_img_FORMAT): Removed.
19889 (bin_UTILITIES): Remove grub-mkimage.
19890 (grub_mkimage_SOURCES): Removed.
19891 (grub_mkimage_CFLAGS): Likewise.
19892 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
19893 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
19894 (pkglib_PROGRAMS): Add kernel.img.
19895 (bin_UTILITIES): Remove grub-mkimage.
19896 (grub_mkimage_SOURCES): Removed.
19897 (grub_mkimage_CFLAGS): Likewise.
19898 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
19899 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
19900 (pkglib_PROGRAMS): Add kernel.img.
19901 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
19902 (pkglib_PROGRAMS): Add kernel.img.
19903 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
19904 (grub_mkimage_SOURCES): Removed.
19905 (grub_mkimage_CFLAGS): Likewise.
19906 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
19907 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
19908 (pkglib_PROGRAMS): Add kernel.img.
19909 (bin_UTILITIES): Remove grub-mkimage.
19910 (grub_mkimage_SOURCES): Removed.
19911 (grub_mkimage_CFLAGS): Likewise.
19912 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
19913 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
19914 (grub_mkimage_SOURCES): Removed.
19915 (grub_mkimage_CFLAGS): Likewise.
19916 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
19917 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
19918 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
19919 (grub_pe32_optional_header): ... this.
19920 (grub_pe64_optional_header): ... and this. All users updated.
19921 (GRUB_PE32_PE32_MAGIC): Split into ..
19922 (GRUB_PE32_PE32_MAGIC): .. this.
19923 (GRUB_PE32_PE64_MAGIC): .. and this.
19924 (GRUB_PE32_SIGNATURE_SIZE): New definition.
19925 * include/grub/elf.h (PT_GNU_STACK): New definition.
19926 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
19927 * include/grub/i386/efi/kernel.h: Likewise.
19928 * include/grub/i386/kernel.h: Likewise.
19929 * include/grub/i386/pc/kernel.h: Likewise.
19930 * include/grub/i386/qemu/boot.h: Likewise.
19931 * include/grub/mips/kernel.h: Likewise.
19932 * include/grub/mips/qemu-mips/kernel.h: Likewise.
19933 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
19934 * include/grub/powerpc/kernel.h: Likewise.
19935 * include/grub/sparc64/ieee1275/boot.h: Likewise.
19936 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
19937 * include/grub/sparc64/kernel.h: Likewise.
19938 * include/grub/x86_64/efi/kernel.h: Likewise.
19939 * include/grub/x86_64/kernel.h: Likewise.
19940 * include/grub/offsets.h: New file.
19941 * include/grub/kernel.h (grub_module_info): Split into ...
19942 (grub_module_info32): ... this.
19943 (grub_module_info64): ... and this.
19944 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
19945 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
19946 (grub_boot_blocklist): Moved from here ...
19947 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
19948 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
19949 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
19950 * include/grub/types.h (grub_target_to_host16): Removed.
19951 (grub_target_to_host32): Likewise.
19952 (grub_target_to_host64): Likewise.
19953 (grub_host_to_target16): Likewise.
19954 (grub_host_to_target32): Likewise.
19955 (grub_host_to_target64): Likewise.
19956 (grub_host_to_target_addr): Likewise.
19958 Support grub-mkrescue for efi, coreboot and qemu.
19960 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
19961 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
19962 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
19963 * util/grub-mkrawimage.c: Moved from here ...
19964 * util/grub-mkimage.c: ... here. All users updated.
19965 (ALIGN_ADDR): Use image_target.
19966 (TARGET_NO_FIELD): New const.
19967 (image_target_desc): New type.
19968 (image_targets): New array.
19969 (grub_target_to_host64): Use image_target.
19970 (grub_target_to_host32): Likewise.
19971 (grub_target_to_host16): Likewise.
19972 (grub_host_to_target64): Likewise.
19973 (grub_host_to_target32): Likewise.
19974 (grub_host_to_target16): Likewise.
19975 (grub_host_to_target_addr): Likewise.
19976 (generate_image): Handle multiimage.
19977 (main): Require -O parameter. All users updated.
19978 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
19979 util/efi/grub-mkimage.c
19980 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
19981 New option --rom-directory.
19983 * util/i386/efi/grub-mkimage.c: Removed.
19984 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
19985 (grub_target_to_host32): Likewise.
19986 (grub_target_to_host64): Likewise.
19987 (grub_host_to_target16): Likewise.
19988 (grub_host_to_target32): Likewise.
19989 (grub_host_to_target64): Likewise.
19990 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
19991 (grub_target_to_host32): Likewise.
19992 (grub_target_to_host64): Likewise.
19993 (grub_host_to_target16): Likewise.
19994 (grub_host_to_target32): Likewise.
19995 (grub_host_to_target64): Likewise.
19997 2010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
19999 Source tree is reorganized for emu build.
20001 * include/grub/util/console.h: Move from here...
20002 * include/grub/emu/console.h: ...to here.
20003 * include/grub/util/getroot.h: Move from here...
20004 * include/grub/emu/getroot.h: ...to here.
20005 * include/grub/util/hostdisk.h: Move from here...
20006 * include/grub/emu/hostdisk.h: ...to here.
20007 * util/console.c: Move from here...
20008 * kern/emu/console.c: ...to here.
20009 * util/getroot.c: Move from here...
20010 * kern/emu/getroot.c: ...to here.
20011 * util/grub-emu.c: Move from here...
20012 * kern/emu/main.c: ...to here.
20013 * util/hostdisk.c: Move from here...
20014 * kern/emu/hostdisk.c: ...to here.
20015 * util/hostfs.c: Move from here...
20016 * kern/emu/hostfs.c: ...to here.
20017 * util/mm.c: Move from here...
20018 * kern/emu/mm.c: ...to here.
20019 * util/pci.c: Move from here...
20020 * bus/emu/pci.c: ...to here.
20021 * util/sdl.c: Move from here...
20022 * video/emu/sdl.c: ...to here.
20023 * util/time.c: Move from here...
20024 * kern/emu/time.c: ...to here.
20025 * util/usb.c: Move from here...
20026 * bus/usb/emu/usb.c: ...to here.
20028 * include/grub/emu/misc.h: New header for grub-emu functions.
20029 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
20031 * conf/any-emu.rmk: Rule updates for above renames.
20032 * conf/common.rmk: Likewise.
20033 * conf/i386-pc.rmk: Likewise.
20034 * conf/i386-qemu.rmk: Likewise.
20035 * conf/mips.rmk: Likewise.
20036 * conf/sparc64-ieee1275.rmk: Likewise.
20037 * conf/x86-efi.rmk: Likewise.
20039 * disk/lvm.h: #include updates for above renames.
20040 * util/grub-mkrelpath.c: Likewise.
20041 * util/grub-probe.c: Likewise.
20042 * util/i386/pc/grub-setup.c: Likewise.
20043 * util/sparc64/ieee1275/grub-setup.c: Likewise.
20044 * kern/emu/console.c: Likewise.
20045 * kern/emu/getroot.c: Likewise.
20046 * kern/emu/hostdisk.c: Likewise.
20047 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
20049 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
20050 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
20051 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
20052 * util/misc.c: Remove grub-emu functions.
20054 2010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20057 Reported by: Thorsten Grützmacher.
20059 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
20061 (circprog_set_property): Register and unregister timeout hook.
20062 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
20063 (label_destroy): Free template. and unregister hook.
20064 (label_set_state): New function.
20065 (label_set_property): Handle templates and hooks.
20066 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
20068 (progress_bar_set_property): Register and unregister timeout hook.
20069 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
20070 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
20071 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
20072 (update_timeout_visit): Removed.
20073 (update_timeouts): New function.
20074 (redraw_timeouts): Likewise.
20075 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
20076 (grub_gfxmenu_clear_timeout): Likewise.
20077 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
20078 (grub_gfxmenu_timeout_notify): Likewise.
20079 (grub_gfxmenu_timeout_notifications): New external variable.
20080 (grub_gfxmenu_timeout_register): New function.
20081 (grub_gfxmenu_timeout_unregister): Likewise.
20083 2010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20085 Transform (broken) vga terminal into (working) vga video driver.
20087 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
20088 video/i386/pc/vga.c.
20089 * include/grub/video.h (grub_video_driver_id):
20090 Add GRUB_VIDEO_DRIVER_VGA.
20091 * term/i386/pc/vga.c: Renamed to ...
20092 * video/i386/pc/vga.c: ...this
20093 (DEBUG_VGA): Removed.
20094 (CHAR_WIDTH): Likewise.
20095 (CHAR_HEIGHT): Likewise.
20096 (TEXT_WIDTH): Likewise.
20097 (TEXT_HEIGHT): Likewise.
20098 (DEFAULT_FG_COLOR): Likewise.
20099 (DEFAULT_BG_COLOR): Likewise.
20100 (colored_char): Likewise.
20103 (cursor_state): Likewise.
20104 (fg_color): Likewise.
20105 (bg_color): Likewise.
20106 (text_buf): Likewise.
20109 (framebuffer): New variable.
20110 (set_read_map): Disabled.
20111 (setup): New variable.
20112 (is_target): Likewise.
20113 (grub_vga_mod_init): Likewise.
20114 (grub_vga_mod_fini): Likewise.
20115 (check_vga_mem): Likewise.
20116 (write_char): Likewise.
20117 (write_cursor): Likewise.
20118 (scroll_up): Likewise.
20119 (grub_vga_putchar): Likewise.
20120 (grub_vga_getcharwidth): Likewise.
20121 (grub_vga_getwh): Likewise.
20122 (grub_vga_getxy): Likewise.
20123 (grub_vga_gotoxy): Likewise.
20124 (grub_vga_cls): Likewise.
20125 (grub_vga_setcolorstate): Likewise.
20126 (grub_vga_setcursor): Likewise.
20127 (grub_video_vga_init): New function.
20128 (grub_video_vga_setup): Likewise.
20129 (grub_video_vga_fini): Likewise.
20130 (update_target): Likewise.
20131 (grub_video_vga_blit_bitmap): Likewise.
20132 (grub_video_vga_blit_render_target): Likewise.
20133 (grub_video_vga_set_active_render_target): Likewise.
20134 (grub_video_vga_get_active_render_target): Likewise.
20135 (grub_video_vga_swap_buffers): Likewise.
20136 (grub_video_vga_set_palette): Likewise.
20137 (grub_video_vga_get_info_and_fini): Likewise.
20138 (grub_vga_term): Removed.
20139 (grub_video_vga_adapter): New variable.
20140 (GRUB_MOD_INIT): Register a video driver instead of terminal.
20141 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
20143 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20145 * video/readers/jpeg.c: Indented.
20147 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20149 Various jpeg cleanups.
20151 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
20152 (grub_jpeg_decode_quan_table): Use sizeof.
20153 (grub_jpeg_decode_du): Use ARRAY_SIZE.
20155 2010-05-05 Peter Hurley <No e-mail available> (tiny change)
20157 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
20158 tables. Ignore non-last ac bit.
20159 (grub_jpeg_decode_quan_table): Likewise.
20161 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20163 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
20164 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
20165 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
20166 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
20167 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
20168 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
20170 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20172 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
20175 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20177 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
20179 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
20181 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
20184 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
20186 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
20189 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
20191 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
20194 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
20196 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
20198 2010-05-01 Christian Franke <franke@computer.org>
20200 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
20201 Remove broken Cygwin path conversion.
20202 * util/misc.c: [__CYGWIN__] Add include and define.
20203 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
20205 (make_system_path_relative_to_its_root): Simplify loop, replace early
20207 [__CYGWIN__] Add conversion to win32 path.
20208 Include "/" case in trailing slash removal.
20210 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
20212 * kern/main.c (grub_load_config): Fix copy-pasted comment.
20213 Reported by: Seth Goldberg
20215 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
20217 * commands/help.c (grub_cmd_help): Fix a typo.
20218 Reported by: Seth Goldberg
20220 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
20222 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
20224 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
20225 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
20226 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
20227 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
20228 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
20229 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
20230 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
20231 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
20232 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
20233 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
20234 * normal/context.c (GRUB_MOD_INIT): Likewise.
20235 * normal/main.c (GRUB_MOD_INIT): Likewise.
20236 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
20237 * term/serial.c (GRUB_MOD_INIT): Likewise.
20238 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
20240 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
20242 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
20245 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
20247 * commands/iorw.c: New file.
20248 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
20249 (iorw_mod_SOURCES): New variable.
20250 (iorw_mod_CFLAGS): Likewise.
20251 (iorw_mod_LDFLAGS): Likewise.
20253 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
20257 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
20258 * normal/main.c (hotkey_aliases): New variable.
20259 (grub_normal_add_menu_entry): Parse "--hotkey".
20260 * normal/menu_text.c (run_menu): Handle hotkeys.
20262 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
20264 * kern/i386/coreboot/init.c (grub_machine_init): Call
20265 grub_machine_mmap_init on qemu.
20267 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
20269 * boot/i386/qemu/boot.S: Add a missing .code16.
20271 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
20273 Use LBIO on coreboot.
20275 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
20276 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
20277 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
20279 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
20280 grub_machine_mmap_init on coreboot.
20281 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
20282 GRUB_LINUXBIOS_MEMBER_LINK.
20283 (grub_machine_mmap_iterate): Fix declaration.
20284 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
20286 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
20288 Split coreboot and multiboot ports.
20290 * conf/i386-multiboot.rmk: New file.
20291 * configure.ac: Add multiboot port.
20292 * include/grub/i386/multiboot/boot.h: New file.
20293 * include/grub/i386/multiboot/console.h: Likewise.
20294 * include/grub/i386/multiboot/init.h: Likewise.
20295 * include/grub/i386/multiboot/kernel.h: Likewise.
20296 * include/grub/i386/multiboot/loader.h: Likewise.
20297 * include/grub/i386/multiboot/memory.h: Likewise.
20298 * include/grub/i386/multiboot/serial.h: Likewise.
20299 * include/grub/i386/multiboot/time.h: Likewise.
20300 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
20301 * loader/multiboot.c: Likewise.
20302 * loader/multiboot_mbi2.c: Likewise.
20303 * util/grub-mkrescue.in: Generate multiboot rescue.
20305 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
20307 * kern/parser.c (grub_parser_execute): Cope with read-only config.
20309 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
20311 Merge handling of input and output terminals. Fix a hang.
20313 * commands/terminal.c (abstract_terminal): New struct.
20314 (handle_command): New function. Based on grub_cmd_terminal_input.
20315 (grub_cmd_terminal_input): Use handle_command.
20316 (grub_cmd_terminal_output): Use handle_command.
20318 2010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
20320 Fix comment handling.
20322 * tests/grub_script_comments.in: New testcase.
20323 * conf/tests.rmk: Rules for new testcase.
20324 * script/yylex.l: Updated flex rules.
20326 2010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
20328 * docs/grub.texi (play): Document that zero pitches produce rests.
20329 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
20332 2010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
20334 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
20337 2010-04-26 Christian Franke <franke@computer.org>
20339 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
20340 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
20341 (grub_get_prefix): Remove function.
20342 * util/grub-emu.c (main): Replace grub_get_prefix () call by
20343 make_system_path_relative_to_its_root ().
20344 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
20346 2010-04-24 Christian Franke <franke@computer.org>
20348 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
20349 (kernel_img_LDFLAGS): Remove -static-libgcc.
20351 2010-04-24 Christian Franke <franke@computer.org>
20353 * configure.ac: Do not CHECK_BSS_START_SYMBOL
20354 and CHECK_END_SYMBOL if grub-emu is built.
20355 Unset TARGET_OBJ2ELF if grub-emu is built
20356 without module support.
20358 2010-04-24 Jiro SEKIBA <jir@unicus.jp>
20362 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
20363 (grub_fstest_SOURCES): Likewise.
20364 (pkglib_MODULES): Add nilfs2.mod.
20365 (nilfs2_mod_SOURCES): New variable.
20366 (nilfs2_mod_CFLAGS): Likewise.
20367 (nilfs2_mod_LDFLAGS): Likewise.
20368 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
20369 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
20370 * fs/nilfs2.c: New file.
20372 2010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
20374 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
20377 2010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
20379 Add grub-mkconfig support for NetBSD.
20381 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
20382 * util/grub-mkconfig.in: export new NetBSD specific variables.
20383 * po/POTFILES-shell: added 10_netbsd.in.
20384 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
20386 2010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
20388 Fix emu build with grub-emu-pci and grub-emu-modules.
20390 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
20392 * include/grub/libpciaccess.h: New file.
20393 * conf/any-emu.rmk: Update kernel headers for emu build.
20395 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
20397 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
20399 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
20401 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
20403 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20405 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
20406 Retrieve chosen/bootpath if bootpath isn't hardcoded.
20407 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
20408 util/ieee1275/ofpath.c.
20409 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
20410 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
20411 * include/grub/sparc64/ieee1275/boot.h
20412 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
20413 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
20414 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
20415 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
20417 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
20418 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
20419 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
20422 2010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
20424 * util/grub-mkconfig.in: Corrected two == equality tests.
20425 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
20426 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
20427 expect a number appended to it.
20428 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
20429 expects a number appended to it.
20431 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20433 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
20435 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20437 * util/hostdisk.c (make_device_name): Change to new partition naming.
20439 2010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
20441 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
20443 2010-04-17 Christian Franke <franke@computer.org>
20445 * Makefile.in: Add missing localedir setting.
20447 2010-04-14 Colin Watson <cjwatson@ubuntu.com>
20449 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
20450 mistake in r2156. Noticed by Anthony Fok.
20452 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
20454 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
20456 2010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
20458 Fix a spurious, uninitialized variable warning.
20460 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
20461 Initialize variable, shdr.
20462 (grub_freebsd_load_elfmodule): Likewise.
20463 (grub_freebsd_load_elf_meta): Likewise.
20465 2010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
20467 Fix for escaped dollar in double quoted strings.
20469 * script/yylex.l: Updated flex rules.
20470 * conf/tests.rmk: Rule for new testcase.
20471 * tests/grub_script_dollar.in: New testcase.
20473 2010-04-13 Carles Pina i Estany <carles@pina.cat>
20474 2010-04-13 Colin Watson <cjwatson@ubuntu.com>
20476 Enclose all translated strings in grub.cfg in single quotes, and
20477 escape them appropriately (Ubuntu bug #552921).
20479 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
20480 * util/grub.d/10_hurd.in: Use it.
20481 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
20482 * util/grub.d/10_linux.in (linux_entry): Likewise.
20484 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20486 Fix cygwin compilation.
20488 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
20489 * include/grub/misc.h (__register_frame_info)
20490 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
20491 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
20492 * kern/misc.c (__register_frame_info)
20493 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
20494 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
20496 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20498 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
20500 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20502 Unify libgcc processing.
20504 * Makefile.in (kernel_img_LDFLAGS): New variable.
20505 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
20506 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
20508 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
20509 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
20510 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
20511 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
20512 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
20513 overwriting. Remove -lgcc and -static-libgcc
20514 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
20515 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
20516 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
20517 (kernel_img_LDFLAGS): Append instead of overwriting.
20518 Remove -lgcc and -static-libgcc
20519 * conf/sparc64-ieee1275.rmk: Likewise.
20520 * include/grub/powerpc/libgcc.h: Move to ...
20521 * include/grub/libgcc.h: .. this.
20522 * include/grub/libgcc.h: Don't export most of the function on x86.
20523 (__bswapsi2): New export.
20524 (__bswapdi2): Likewise.
20525 * include/grub/mips/libgcc.h: Removed.
20526 * include/grub/sparc64/libgcc.h: Likewise.
20528 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20530 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
20531 disk_info_msg (conflicts with gettexting into languages with cases).
20533 2010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
20535 Add grub-probe support for NetBSD.
20537 * util/getroot.c (find_root_device): Convert block device to
20538 character device on NetBSD.
20539 * util/probe.c (probe): Require character device on NetBSD.
20540 * util/hostdisk.c: NetBSD specific headers.
20541 (configure_device_driver): new function to tune device driver
20542 parameters (currently only for NetBSD floppy driver).
20543 (grub_util_biosdisk_open): NetBSD specific code (get disk size
20544 via disklabel ioctl).
20545 (open_device): call configure_device_driver on NetBSD.
20546 (convert_system_partition_to_system_disk): NetBSD specific code.
20547 (device_is_wholedisk): Likewise.
20548 (grub_util_biosdisk_get_grub_dev): Likewise.
20549 (make_device_name): Fixed a typo in bsd_part_str.
20550 * configure.ac: check for opendisk() and getrawpartition() on
20551 NetBSD and set LIBUTIL.
20552 * Makefile.in: add LIBUTIL to LIBS.
20554 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
20558 * util/grub-script-check.c: Better help message.
20560 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
20564 * configure.ac: Flex version check.
20565 * conf/common.rmk: Add -Wno-error to sh.mod.
20566 * script/yylex.l: Remove all #pragma.
20568 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20570 * include/grub/util/misc.h (canonicalise_file_name): Add missing
20572 Reported by: Seth Goldberg.
20574 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20576 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
20577 Rename "module" to "module2".
20578 Reported by: Seth Goldberg.
20580 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20582 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
20584 Reported by: Seth Goldberg.
20586 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20588 * lib/posix_wrap/locale.h: Add missing file.
20589 Reported by: Seth Goldberg.
20591 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20593 grub-emu module load support.
20595 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
20596 NO_DYNAMIC_MODULES switched to this.
20597 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
20598 (CFLAGS): Likewise.
20599 * conf/any-emu.rmk: Generate symlist.
20600 (kernel_img_HEADERS): Add util/datetime.h.
20601 (kernel_img_HEADERS) [sdl]: Add sdl.h.
20602 (kernel_img_HEADERS) [libusb]: Add libusb.h.
20603 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
20604 kern/$(target_cpu)/cache.S.
20605 * configure.ac (grub-emu-modules): New option.
20606 * genmk.rb: Handle multiple source lists.
20607 * include/grub/sdl.h: New file.
20608 * include/grub/libusb.h: Likewise.
20609 * util/grub-emu.c (main): Hanle (host) root.
20610 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
20611 GRUB_ERR_UNKNOWN_DEVICE.
20612 * util/misc.c: Move mm functions to ...
20613 * util/mm.c: ... here. All users updated.
20615 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
20617 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
20618 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
20620 (maintainer-clean): Remove libgcrypt-grub.
20622 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
20624 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
20626 2010-04-09 EFI Coder <eficoder@hotmail.com>
20628 * normal/menu_text.c (print_message): Clean up the message and show
20629 the Fn information when on EFI
20630 * term/efi/console.c (grub_console_checkkey): Add F4 support.
20632 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
20634 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
20636 * normal/crypto.c (read_crypto_list): Likewise.
20637 * normal/dyncmd.c (read_command_list): Likewise.
20638 * normal/term.c (read_terminal_list): Likewise.
20639 * normal/main.c (read_lists): Use explicit prefix.
20640 (read_lists_hook): Use read_lists.
20641 (grub_normal_execute): Likewise.
20643 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
20645 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
20646 Reported by: Thomas Schmitt.
20647 Add -no-emul-boot to grub-mkisofs parameters.
20649 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
20651 * font/font.c: Indented.
20653 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
20655 Elif support to GRUB script (by Deepak Vankadaru).
20657 * tests/grub_script_if.in: New testcase.
20658 * conf/tests.rmk: Rule for new testcase.
20659 * script/parser.y: Grammar rules for elif.
20661 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
20663 While and until loops support to GRUB script.
20665 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
20666 (grub_script_create_cmdwhile): New function prototype.
20667 (grub_script_execute_cmdwhile): New function prototype.
20668 * script/execute.c (grub_script_execute_cmdwhile): New function.
20669 * script/parser.y (command): New commands.
20670 (whilecmd): New grammar rule.
20671 (untilcmd): New grammar rule.
20672 * script/script.c (grub_script_create_cmdwhile): New function.
20673 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
20676 * tests/grub_script_while1.in: New testcase.
20677 * conf/tests.rmk: Rule for new testcase.
20679 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
20681 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
20684 2010-04-09 Mario Vazquez <mariovazq@gmail.com>
20686 GRUB_BACKGROUND support.
20688 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
20689 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
20691 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
20693 Load fonts and modules for gfxmenu in grub-mkconfig.
20694 Idea by: Mario Vazquez
20696 * util/grub.d/00_header.in: Load pf2 and image modules.
20698 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
20700 grub-mkconfig multiple terminal support.
20702 * util/grub-mkconfig.in: Handle multiple terminals correctly.
20703 * util/grub.d/00_header.in: Likewise.
20705 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
20707 * Makefile.in: Specify files explicitly instead of using $< and $@ since
20708 we use cd $(srcdir).
20710 2010-04-08 Colin Watson <cjwatson@ubuntu.com>
20712 * util/grub.d/10_linux.in: Only use the first word of
20713 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
20714 spaces in GRUB_DISTRIBUTOR.
20715 * util/grub.d/10_kfreebsd.in: Likewise.
20716 * util/grub.d/10_hurd.in: Likewise.
20718 2010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
20720 Fix unit testing framework for Qemu 0.12.
20722 * tests/util/grub-shell.in: Remove -serial stdio option.
20724 2010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20726 POSIX header file wrappers.
20728 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
20730 * lib/posix_wrap/ctype.h: Likewise.
20731 * lib/posix_wrap/errno.h: Likewise.
20732 * lib/posix_wrap/langinfo.h: Likewise.
20733 * lib/posix_wrap/limits.h: Likewise.
20734 * lib/posix_wrap/localcharset.h: Likewise.
20735 * lib/posix_wrap/stdint.h: Likewise.
20736 * lib/posix_wrap/stdio.h: Likewise.
20737 * lib/posix_wrap/stdlib.h: Likewise.
20738 * lib/posix_wrap/string.h: Likewise.
20739 * lib/posix_wrap/sys/types.h: Likewise.
20740 * lib/posix_wrap/unistd.h: Likewise.
20741 * lib/posix_wrap/wchar.h: Likewise.
20742 * lib/posix_wrap/wctype.h: Likewise.
20743 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
20744 (grub_script.yy.h): Likewise.
20745 * script/yylex.l: Remove POSIX emulation #defines.
20746 * Makefile.in (POSIX_CFLAGS): New variable.
20747 (GNULIB_UTIL_CFLAGS): Likewise.
20751 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
20752 (regexp_mod_SOURCES): New variable.
20753 (regexp_mod_CFLAGS): Likewise.
20754 (regexp_mod_LDFLAGS): Likewise.
20755 * commands/regexp.c: New file.
20756 * gnulib/regcomp.c: New file. Imported from gnulib.
20757 * gnulib/regex.c: Likewise.
20758 * gnulib/regex_internal.c: Likewise.
20759 * gnulib/regex_internal.h: Likewise.
20760 * gnulib/regexec.c: Likewise.
20761 * gnulib/regex.h: Likewise.
20763 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
20765 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
20766 unsupported video mode types.
20768 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
20770 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
20772 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
20774 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
20775 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
20777 2010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
20779 Remove unused grub_vga_get_font.
20781 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
20782 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
20784 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
20786 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
20787 * include/grub/misc.h: Likewise.
20789 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
20791 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
20792 for which failure is fatal.
20794 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
20796 * util/grub-install.in: Use mkdir -p to create grub directory.
20797 * util/i386/efi/grub-install.in: Likewise.
20798 * util/ieee1275/grub-install.in: Likewise.
20800 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
20802 * Makefile.in (LEX): new variable.
20804 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
20806 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
20807 `=' and added double quotes on operands of this equality test.
20809 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
20811 * Makefile.in (uninstall): Remove a leftover debug echo.
20812 Reported by: Grégoire Sutre
20814 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
20816 MIPS multiboot2 support.
20818 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
20819 (multiboot2_mod_SOURCES): New variable.
20820 (multiboot2_mod_CFLAGS): Likewise.
20821 (multiboot2_mod_LDFLAGS): Likewise.
20822 (multiboot2_mod_ASFLAGS): Likewise.
20823 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
20825 (MULTIBOOT_ENTRY_REGISTER): Likewise.
20826 (MULTIBOOT_MBI_REGISTER): Likewise.
20827 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
20828 (MULTIBOOT_ELF32_MACHINE): Likewise.
20829 (MULTIBOOT_ELF64_MACHINE): Likewise.
20830 * include/grub/mips/multiboot.h: New file.
20831 * include/grub/video.h (grub_video_driver_id): New type
20832 GRUB_VIDEO_DRIVER_SM712.
20833 (grub_video_get_info_and_fini): Export.
20834 (grub_video_get_palette): Likewise.
20835 (grub_video_get_driver_id): Likewise.
20836 * include/multiboot2.h: Resynced with spec.
20837 * loader/i386/multiboot.c: Moved from here ...
20838 * loader/multiboot.c: ... here. All users updated.
20839 (grub_multiboot_boot): Use platform-specific macros.
20840 * loader/i386/multiboot_elfxx.c: Moved from here ...
20841 * loader/multiboot_elfxx.c: ... here. All users updated.
20842 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
20843 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
20844 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
20846 2010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20848 Import gnulib argp module.
20850 * gnulib/argp-ba.c: New file.
20851 * gnulib/argp-eexst.c: Likewise.
20852 * gnulib/argp-fmtstream.c: Likewise.
20853 * gnulib/argp-fmtstream.h: Likewise.
20854 * gnulib/argp-fs-xinl.c: Likewise.
20855 * gnulib/argp-help.c: Likewise.
20856 * gnulib/argp-namefrob.h: Likewise.
20857 * gnulib/argp-parse.c: Likewise.
20858 * gnulib/argp-pin.c: Likewise.
20859 * gnulib/argp-pv.c: Likewise.
20860 * gnulib/argp-pvh.c: Likewise.
20861 * gnulib/argp-version-etc.c: Likewise.
20862 * gnulib/argp-version-etc.h: Likewise.
20863 * gnulib/argp-xinl.c: Likewise.
20864 * gnulib/argp.h: Likewise.
20866 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
20868 * kern/device.c (grub_device_iterate): Clear errors after failed
20871 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
20873 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
20874 returned by firmware.
20876 2010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20878 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
20879 compilation on coreboot and qemu
20881 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
20883 * include/multiboot2.h: Resync with spec.
20885 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
20887 Multiboot2 tag support
20889 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
20890 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
20891 Remove loader/multiboot_loader.c.
20892 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
20893 (grub_multiboot2_real_boot): Likewise.
20894 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
20895 (grub_get_multiboot_mmap_count): New proto.
20896 (grub_fill_multiboot_mmap): Likewise.
20897 (grub_multiboot_set_video_mode): Likewise.
20898 (grub_multiboot_set_console): Likewise.
20899 (grub_multiboot_load): Likewise.
20900 (grub_multiboot_load_elf): Likewise.
20901 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
20902 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
20903 * include/multiboot.h: Resynced with specification.
20904 * include/multiboot2.h: Resynced with specification.
20905 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
20906 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
20907 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
20908 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
20910 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
20911 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
20912 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
20914 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
20916 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
20917 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
20919 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
20920 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
20921 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
20923 * loader/i386/multiboot_mbi2.c: New file.
20925 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
20927 Resync with gnulib.
20929 * Makefile.in (GNULIB_CFLAGS): New variable.
20930 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
20931 (grub_script_check_CFLAGS): New variable.
20932 * gnulib/alloca.h: Resync with gnulib.
20933 * gnulib/error.c: Likewise.
20934 * gnulib/error.h: Likewise.
20935 * gnulib/fnmatch.c: Likewise.
20936 * gnulib/fnmatch_loop.c: Likewise.
20937 * gnulib/getdelim.c: Likewise.
20938 * gnulib/getline.c: Likewise.
20939 * gnulib/getopt.c: Likewise.
20940 * gnulib/getopt1.c: Likewise.
20941 * gnulib/getopt_int.h: Likewise.
20942 * gnulib/gettext.h: Likewise.
20943 * gnulib/progname.c: Likewise.
20944 * gnulib/progname.h: Likewise.
20946 2010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
20948 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
20949 which is the case with --disabled-nls.
20951 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
20952 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
20953 * util/misc.c: Likewise.
20954 * util/mkisofs/mkisofs.c: Likewise.
20955 * util/mkisofs/mkisofs.h: Likewise.
20957 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
20959 Simplify Apple CC support.
20961 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
20962 Add 0 byte at the end not to have a symbol with empty target.
20963 * mmap/i386/pc/mmap_helper.S: Likewise.
20964 * genmk.rb: Ignore errors 2030 and 2050.
20965 * kern/i386/pc/startup.S: Use LOCAL when possible.
20967 2010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
20969 Testcase and the fix for final semicolon on cmdline.
20971 * tests/grub_script_final_semicolon.in: New testcase.
20972 * conf/tests.rmk: Rules for the new testcase.
20973 * script/parser.y: Grammar fix.
20975 2010-03-26 BVK Chaitanya <bvk@localhost>
20977 Blank lines testcase for GRUB script.
20979 * tests/grub_script_blanklines.in: New testcase.
20980 * conf/tests.rmk: Rules for the new testcase.
20982 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
20984 Don't use __FILE__.
20986 * genmk.rb: Add -DGRUB_FILE to all C targets.
20987 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
20988 * include/grub/list.h: Likewise.
20989 * include/grub/misc.h: Likewise.
20990 * include/grub/mm.h: Likewise.
20991 * include/grub/test.h: Likewise.
20992 * kern/mm.c: Likewise.
20993 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
20995 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
20997 Sunpc partitions support.
20999 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
21000 (grub_fstest_SOURCES): Likewise.
21001 (pkglib_MODULES): Add part_sunpc.mod.
21002 (part_sunpc_mod_SOURCES): New variable.
21003 (part_sunpc_mod_CFLAGS): Likewise.
21004 (part_sunpc_mod_LDFLAGS): Likewise.
21005 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
21006 * partmap/sunpc.c: New file.
21008 2010-03-26 BVK Chaitanya <bvk@localhost>
21010 For loop support to GRUB script.
21012 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
21013 (grub_script_create_cmdfor): New function prototype.
21014 (grub_script_execute_cmdfor): New function prototype.
21015 * script/execute.c (grub_script_execute_cmdfor): New function.
21016 * script/parser.y (command): New for command.
21017 (forcmd): New grammar rule.
21018 * script/script.c (grub_script_create_cmdfor): New function.
21019 * util/grub-script-check.c (grub_script_execute_cmdfor): New
21021 * tests/grub_script_for1.in: New testcase.
21022 * conf/tests.rmk: Rules for new testcase.
21024 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
21028 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
21029 'partition' is NULL, grub_partition_get_start already does that.
21030 * commands/loadenv.c (check_blocklists): Likewise.
21031 (write_blocklists): Likewise.
21032 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
21033 (grub_fstest_SOURCES): Likewise.
21034 (pkglib_MODULES): Add part_bsd.mod.
21035 (part_bsd_mod_SOURCES): New variable.
21036 (part_bsd_mod_CFLAGS): Likewise.
21037 (part_bsd_mod_LDFLAGS): Likewise.
21038 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
21039 (grub_emu_SOURCES): Likewise.
21040 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21041 * include/grub/bsdlabel.h: New file.
21042 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
21044 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
21045 (grub_partition_map_list): New variable.
21046 (grub_partition_map_register): Inline.
21047 (grub_partition_map_unregister): Likewise.
21048 (FOR_PARTITION_MAPS): New macro.
21049 (grub_partition_map_iterate): Removed.
21050 (grub_partition_get_start): Handle nested partitions.
21051 * include/grub/msdos_partition.h: Remove bsd-related entries.
21052 (grub_pc_partition): Remove.
21053 * kern/disk.c (grub_disk_close): Free partition data.
21054 (grub_disk_adjust_range): Handle nested partitions.
21055 * kern/partition.c (grub_partition_map_probe): New function.
21056 (grub_partition_probe): Parse name to number, handle subpartitions.
21057 (get_partmap): New function.
21058 (grub_partition_iterate): Handle subpartitions.
21059 (grub_partition_get_name): Likewise.
21060 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
21061 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
21062 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
21063 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
21065 (acorn_partition_map_probe): Remove.
21066 (acorn_partition_map_get_name): Likewise.
21067 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
21069 Set 'index' to 0 since there can be only one partition entry per sector.
21070 (amiga_partition_map_probe): Remove.
21071 (amiga_partition_map_get_name): Likewise.
21072 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
21074 Set 'offset' and 'index' to real positions of partitions.
21075 (apple_partition_map_probe): Remove.
21076 (apple_partition_map_get_name): Likewise.
21077 * partmap/bsdlabel.c: New file.
21078 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
21080 Allocate 'data' so it can be correctly freed.
21081 Set 'index' to offset inside sector.
21082 (gpt_partition_map_probe): Remove.
21083 (gpt_partition_map_get_name): Likewise.
21084 * partmap/msdos.c (grub_partition_parse): Remove.
21085 (pc_partition_map_iterate): Don't force raw access.
21087 Make 'ext_offset' a local variable.
21088 (pc_partition_map_probe): Remove.
21089 (pc_partition_map_get_name): Remove.
21090 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
21092 (sun_partition_map_probe): Remove.
21093 (sun_partition_map_get_name): Likewise.
21094 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
21095 (grub_pcpart_type): Likewise.
21096 * util/hostdisk.c (open_device): Handle new numbering scheme.
21097 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
21098 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
21099 * util/grub-probe.c (probe_partmap): Handle nested paritions.
21100 * util/grub-install.in: Insert all subpartition modules.
21101 * util/ieee1275/grub-install.in: Likewise.
21103 2010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
21105 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
21108 2010-03-24 Colin Watson <cjwatson@ubuntu.com>
21110 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
21112 2010-03-21 Colin Watson <cjwatson@ubuntu.com>
21114 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
21115 match where 'make install' puts them.
21116 * util/i386/efi/grub-install.in: Likewise.
21118 2010-03-19 Colin Watson <cjwatson@ubuntu.com>
21120 * .bzrignore: Add gentrigtables, grub-script-check,
21121 grub_script_check_init.c, grub_script_check_init.h, and
21124 2010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
21126 * kern/parser.c: Indented.
21128 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
21130 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
21132 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
21134 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
21135 alpha_mask_size == 0 case.
21137 2010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
21139 GRUB shell lexer and parser improvements.
21141 * conf/any-emu.rmk: Build rule updates.
21142 * conf/common.rmk: Likewise.
21143 * conf/i386-coreboot.rmk: Likewise.
21144 * conf/i386-efi.rmk: Likewise.
21145 * conf/i386-ieee1275.rmk: Likewise.
21146 * conf/i386-pc.rmk: Likewise.
21147 * conf/powerpc-ieee1275.rmk: Likewise.
21148 * conf/x86_64-efi.rmk: Likewise.
21150 * configure.ac: Configure check for flex.
21152 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
21154 (grub_lexer_param): Struct member updates.
21155 (grub_parser_param): Likewise.
21156 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
21157 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
21158 (grub_script_lexer_init): Prototype update.
21159 (grub_script_lexer_record_start): Likewise.
21160 (grub_script_lexer_record_stop): Likewise.
21161 (grub_script_lexer_yywrap): New function prototype.
21162 (grub_script_lexer_fini): Likewise.
21163 (grub_script_execute_argument_to_string): Removed by...
21164 (grub_script_execute_argument_to_argv): ...better version.
21166 * script/execute.c (ROUND_UPTO): New macro.
21167 (grub_script_execute_cmdline): Out of memory fixes.
21168 (grub_script_execute_menuentry): Likewise.
21169 (grub_script_execute_argument_to_string): Removed. Update all
21171 (grub_script_execute_argument_to_argv): ...better version.
21172 * script/function.c (grub_script_function_create): Use
21173 grub_script_execute_argument_to_argv instead of
21174 grub_script_execute_argument_to_string.
21176 * script/lexer.c (check_varstate): Removed.
21177 (check_textstate): Removed.
21178 (grub_script_lexer_record_start): Likewise.
21179 (grub_script_lexer_record_stop): Likewise.
21180 (recordchar): Replaced with...
21181 (grub_script_lexer_record): ...new function.
21182 (nextchar): Removed.
21183 (grub_script_lexer_init): Rewritten.
21184 (grub_script_yylex): Rewritten.
21185 (append_newline): New function.
21186 (grub_script_lexer_yywrap): New function.
21187 (grub_script_lexer_fini): New function.
21188 (grub_script_yyerror): Sets error flag.
21190 * script/yylex.l: New file.
21191 (grub_lexer_yyfree): Wrapper for flex yyffre.
21192 (grub_lexer_yyalloc): Likewise.
21193 (grub_lexer_yyrealloc): Likewise.
21194 * script/parser.y: Refactored.
21196 * script/script.c (grub_script_arg_add): Out of memory fixes.
21197 (grub_script_add_arglist): Likewise.
21198 (grub_script_create_cmdline): Likewise.
21199 (grub_script_create_cmdmenu): Likewise.
21200 (grub_script_add_cmd): Likewise.
21201 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
21202 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
21205 * tests/grub_script_echo1.in: New testcase.
21206 * tests/grub_script_vars1.in: New testcase.
21207 * tests/grub_script_echo_keywords.in: New testcase.
21209 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
21211 Remove some redundancy in build system.
21213 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
21214 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
21215 (TARGET_LDFLAGS): Add -nostdlib.
21216 (TARGET_IMG_LDFLAGS): Likewise.
21217 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
21218 anything since mmap isn't available.
21219 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
21221 (pkglib_MODULES): Remove reboot.mod.
21222 (reboot_mod_SOURCES): Removed.
21223 (reboot_mod_CFLAGS): Likewise.
21224 (reboot_mod_LDFLAGS): Likewise.
21225 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
21226 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
21227 (DEFSYMFILES): Add kernel_syms.lst.
21228 (kernel_img_HEADERS): Add common headers.
21229 (symlist.c): New target.
21230 (kernel_syms.lst): Likewise.
21231 (pkglib_MODULES): Add memdisk.mod.
21232 (memdisk_mod_SOURCES): New variable.
21233 (memdisk_mod_CFLAGS): Likewise.
21234 (memdisk_mod_LDFLAGS): Likewise.
21235 (pkglib_MODULES): Add reboot.mod.
21236 (reboot_mod_SOURCES): New variable.
21237 (reboot_mod_CFLAGS): Likewise.
21238 (reboot_mod_LDFLAGS): Likewise.
21239 (pkglib_MODULES): Add date.mod.
21240 (date_mod_SOURCES): New variable.
21241 (date_mod_CFLAGS): Likewise.
21242 (date_mod_LDFLAGS): Likewise.
21243 (pkglib_MODULES): Add datehook.mod.
21244 (datehook_mod_SOURCES): New variable.
21245 (datehook_mod_CFLAGS): Likewise.
21246 (datehook_mod_LDFLAGS): Likewise.
21247 (pkglib_MODULES): Add lsmmap.mod.
21248 (lsmmap_mod_SOURCES): New variable.
21249 (lsmmap_mod_CFLAGS): Likewise.
21250 (lsmmap_mod_LDFLAGS): Likewise.
21251 (pkglib_MODULES): Add boot.mod.
21252 (boot_mod_SOURCES): New variable.
21253 (boot_mod_CFLAGS): Likewise.
21254 (boot_mod_LDFLAGS): Likewise.
21255 * conf/i386-coreboot.rmk: Removed redundant parts.
21256 * conf/i386-ieee1275.rmk: Likewise.
21257 * conf/i386-pc.rmk: Likewise.
21258 * conf/mips-yeeloong.rmk: Likewise.
21259 * conf/mips.rmk: Likewise.
21260 * conf/powerpc-ieee1275.rmk: Likewise.
21261 * conf/sparc64-ieee1275.rmk: Likewise.
21262 * conf/x86_64-efi.rmk: Likewise.
21263 * conf/i386-coreboot.rmk: Moved qemu parts ..
21264 * conf/i386-qemu.rmk: ... here
21265 * conf/i386-efi.rmk: Moved common parts to...
21266 * conf/x86-efi.rmk: ... here.
21267 * conf/i386.rmk: Added modules common to all x86 variants.
21268 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
21269 * disk/memdisk.c: Remove grub/machine/kernel.h.
21270 * gensymlist.sh.in: Include symbol.h.
21271 * hook/datehook.c: Correct module name.
21272 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
21273 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
21274 * include/grub/i386/efi/serial.h: New file.
21275 * include/grub/x86_64/efi/serial.h: Likewise.
21276 * util/time.c: Likewise.
21277 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
21279 2010-03-14 Colin King <colin.king@ubuntu.com>
21280 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
21282 Shrink the pre-partition-table part of boot.img by eight bytes.
21284 * boot/i386/pc/boot.S (ERR): New macro.
21285 (chs_mode): Use ERR.
21286 (geometry_error): Likewise.
21287 (hd_probe_error): Remove. This is only used once, so we wrwite
21289 (read_error): Instead of printing read_error_string, just set up
21290 %si and fall through to ...
21291 (error_message): ... this new function, also used by ERR.
21293 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
21295 Speed up consecutive hostdisk operations on the same device.
21297 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
21298 (grub_util_biosdisk_open): Initialise disk->data.
21299 (struct linux_partition_cache): New structure.
21300 (linux_find_partition): Cache partition start positions; these are
21301 expensive to compute on every read and write.
21302 (open_device): Cache open file descriptor in disk->data, so that we
21303 don't have to reopen it and flush the buffer cache for consecutive
21304 operations on the same device.
21305 (grub_util_biosdisk_close): New function.
21306 (grub_util_biosdisk_dev): Set `close' member.
21308 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
21309 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
21310 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
21311 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
21312 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
21314 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
21316 Compile parts of grub-emu as modules.
21318 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
21319 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
21320 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
21321 (all-local): Add $(GRUB_EMU).
21322 (install-local): Install $(GRUB_EMU).
21323 (uninstall): Uninstall $(GRUB_EMU).
21324 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
21325 * kern/dl.c: Likewise.
21326 * commands/sleep.c: Not include machine/time.h.
21327 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
21328 (COMMON_CFLAGS): Likewise.
21329 (sbin_UTILITIES): Remove grub-emu.
21330 (grub_emu_SOURCES): Removed.
21331 (kernel_img_RELOCATABLE): New variable.
21332 (pkglib_PROGRAMS): Add kernel.img.
21333 (kernel_img_SOURCES): New variable
21334 (kernel_img_CFLAGS): Likewise.
21335 (kernel_img_LDFLAGS): Likewise.
21336 (TARGET_NO_STRIP): Likewise.
21337 (TARGET_NO_DYNAMIC_MODULES): Likewise.
21338 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
21339 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
21340 (grub-emu): New target.
21341 (GRUB_EMU): New variable.
21342 * configure.ac: Whitelist -emu as possible x86_64 architecture.
21343 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
21344 * loader/xnu.c: Likewise.
21345 * include/grub/pci.h: Likewise.
21346 * genemuinit.sh: New file.
21347 * genemuinitheader.sh: Likewise.
21348 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
21349 Support TARGET_NO_DYNAMIC_MODULES.
21350 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
21351 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
21352 * disk/loopback.c: Likewise.
21353 * font/font_cmd.c: Likewise.
21354 * partmap/acorn.c: Likewise.
21355 * partmap/amiga.c: Likewise.
21356 * partmap/apple.c: Likewise.
21357 * partmap/gpt.c: Likewise.
21358 * partmap/msdos.c: Likewise.
21359 * partmap/sun.c: Likewise.
21360 * parttool/msdospart.c: Likewise.
21361 * term/gfxterm.c: Likewise.
21362 * video/bitmap.c: Likewise.
21363 * video/readers/jpeg.c: Likewise.
21364 * video/readers/png.c: Likewise.
21365 * video/readers/tga.c: Likewise.
21366 * video/video.c: Likewise.
21367 * util/grub-emu.c (read_command_list): Removed.
21368 (main): Don't call util_init_nls.
21369 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
21370 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
21372 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
21374 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
21375 date.mod, datehook.mod.
21376 (datetime_mod_SOURCES): New variable.
21377 (datetime_mod_CFLAGS): Likewise.
21378 (datetime_mod_LDFLAGS): Likewise.
21379 (date_mod_SOURCES): Likewise.
21380 (date_mod_CFLAGS): Likewise.
21381 (date_mod_LDFLAGS): Likewise.
21382 (datehook_mod_SOURCES): Likewise.
21383 (datehook_mod_CFLAGS): Likewise.
21384 (datehook_mod_LDFLAGS): Likewise.
21385 * conf/sparc64-ieee1275.rmk: Likewise.
21386 * lib/ieee1275/datetime.c: New file.
21388 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
21390 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
21391 (ieee1275_fb_mod_SOURCES): New variable.
21392 (ieee1275_fb_mod_CFLAGS): Likewise.
21393 (ieee1275_fb_mod_LDFLAGS): Likewise.
21394 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
21396 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
21397 (HEAP_MAX_ADDR): Likewise.
21398 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
21400 Correct stop condition.
21401 (grub_ieee1275_devices_iterate): New function.
21402 * video/ieee1275.c: New file.
21404 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
21406 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
21408 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
21410 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
21411 SCRATCH_PAD_DISKBOOT as scratch.
21412 (bootit): Pass Openfirmware pointer in %o4.
21413 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
21415 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
21416 with util/grub-mkrawimage.c.
21417 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
21418 * include/grub/aout.h (AOUT_MID_SUN): New definition.
21419 (grub_aout_get_type) [GRUB_UTIL]: Removed.
21420 (grub_aout_load) [GRUB_UTIL]: Likewise.
21421 * include/grub/kernel.h (grub_modules_get_end): New proto.
21422 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
21423 (SCRATCH_PAD_BOOT): New definition.
21424 (SCRATCH_PAD_DISKBOOT): Likewise.
21425 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
21426 * include/grub/sparc64/ieee1275/ieee1275.h
21427 (grub_ieee1275_original_stack): New variable
21428 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
21430 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
21431 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
21432 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
21433 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
21434 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
21435 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
21436 (grub_platform_image_format_t): New type.
21437 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
21438 * kern/main.c (grub_modules_get_end)
21439 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
21440 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
21441 (codestart): Switch stacks.
21442 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
21444 (grub_heap_init): Use grub_modules_get_end.
21445 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
21447 * util/grub-mkrawimage.c (generate_image): Support sparc64.
21449 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
21451 2010-03-14 Thorsten Glaser <tg@mirbsd.org>
21453 * util/grub-mkrescue.in: Base ISO UUID on UTC.
21455 2010-03-08 Matt Kraai <kraai@ftbfs.org>
21457 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
21460 2010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
21462 * genmoddep.awk: Output all missing symbols and not only first.
21464 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
21466 * NEWS: Put the date of 1.98 release.
21468 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
21470 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
21473 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
21475 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
21476 completition in the middle of string.
21478 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
21480 * util/grub-mkrescue.in: Use mktemp with explicit template.
21482 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
21484 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
21486 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
21488 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
21491 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
21493 Fix FreeBSD compilation.
21495 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
21496 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
21498 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
21500 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
21502 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
21504 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
21506 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
21508 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
21510 2010-03-04 Robert Millan <rmh.grub@aybabtu.com>
21512 Support relative image path in theme file.
21514 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
21515 (image_set_property): Handle theme_dir and relative path.
21517 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
21519 * configure.ac: Alias amd64 to x86_64.
21521 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
21523 * NEWS: mention multiboot on EFI.
21525 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
21527 * kern/main.c (grub_load_modules): Handle errors from init functions of
21530 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
21532 * normal/autofs.c (autoload_fs_module): Handle errors.
21534 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
21536 Disable linux.mod on qemu-mips since it's not functional and leads
21537 to compilation failure.
21539 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
21540 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
21541 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
21542 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
21543 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
21544 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
21545 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
21546 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
21547 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
21548 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
21549 Reported by: BVK Chaitanya
21551 2010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
21553 * INSTALL: Add gettext as a dependency and add qemu to a new section
21554 "Prerequisites for make-check".
21556 2010-03-04 Christian Franke <franke@computer.org>
21558 * util/grub-pe2elf.c: Add missing include "progname.h".
21560 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
21562 * normal/crypto.c (read_crypto_list): Fix a typo.
21563 Reported by: Seth Goldberg.
21565 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
21567 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
21568 Reported by: Seth Goldberg.
21570 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
21572 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
21575 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
21577 * genmk.rb: Remove terminal*.lst in make clean.
21578 Reported by: Seth Goldberg.
21580 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
21582 * util/i386/efi/grub-install.in: Copy gettext files.
21584 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
21586 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
21588 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
21590 Wait for user entry basing on presence of output rather than on errors.
21592 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
21593 (grub_install_newline_hook): Likewise.
21594 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
21595 * normal/menu.c (show_menu): Check line_counter to determine presence
21597 * normal/term.c (grub_normal_line_counter): New variable.
21598 (grub_normal_get_line_counter): New function.
21599 (grub_install_newline_hook): Likewise.
21601 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
21603 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
21605 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
21607 * configure.ac: Update version to 1.98.
21609 2010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
21611 * util/grub.d/10_linux.in (linux_entry): Don't default to
21612 gfxpayload=keep if Linux doesn't support video handover.
21614 2010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
21616 Don't compile video modules on yeeloong since video subsystem is part
21619 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
21620 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
21621 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
21622 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
21623 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
21624 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
21625 * include/grub/bitmap_scale.h: Likewise.
21626 * include/grub/bufio.h: Likewise.
21627 * include/grub/font.h: Likewise.
21628 * include/grub/gfxterm.h: Likewise.
21629 * include/grub/video.h: Likewise.
21630 * include/grub/vbe.h: Don't include video_fb.h.
21631 * video/i386/pc/vbe.c: Include video_fb.h.
21632 * commands/i386/pc/vbetest.c: Include video.h.
21634 2010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
21636 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
21637 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
21638 default entry if GRUB_SAVEDEFAULT=true. This allows using
21639 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
21640 saving a new default on every boot.
21642 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
21644 * normal/crypto.c (read_crypto_list): Fix a memory leak.
21645 * normal/term.c (read_terminal_list): Likewise.
21646 * normal/main.c (grub_normal_init_page): Likewise.
21647 (grub_normal_read_line_real): Likewise.
21649 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
21651 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
21653 Reported by: Seth Goldberg.
21655 2010-02-24 Joey Korkames <joey+lists@kidfixit.com>
21657 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
21658 duplicate declaration of `start'.
21660 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
21662 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
21664 Reported by: Georgy Buranov
21666 2010-02-20 Carles Pina i Estany <carles@pina.cat>
21668 * util/grub-mkrawimage.c (usage): Change string formatting to
21671 2010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
21673 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
21676 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
21678 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
21679 Reported by: Michael Suchanek.
21681 2010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
21683 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
21684 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
21686 2010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
21688 Remove any reference to non-free fonts.
21690 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
21691 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
21692 uses non-free components.
21693 * font/font.c (grub_font_get_name): Remove example name.
21694 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
21695 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
21696 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
21697 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
21699 2010-02-16 Georgy Buranov <gburanov@gmail.com>
21701 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
21703 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
21705 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
21707 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
21709 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
21711 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
21713 * gensymlist.sh.in: Use TARGET_CC instead of CC.
21715 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
21717 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
21718 * docs/grub.texi (Command-line and menu entry commands): Document play
21721 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
21723 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
21724 parse arguments as inline tempo and notes. Move code for playing notes
21726 (play): ... new function.
21728 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
21730 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
21731 grub_uint16_t instead of short.
21732 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
21733 disk from little endian to cpu endianness.
21735 2010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
21737 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
21738 GRUB_TICKS_PER_SECOND instead of 120.
21740 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
21742 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
21743 escape sequence after \e.
21745 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
21747 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
21748 non-ASCII characters.
21750 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
21752 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
21753 set root in single quotes to prevent \, from being unescaped.
21755 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
21757 Prevent unknown commands from stopping menuentry execution.
21759 * script/execute.c (grub_script_execute_cmdline): Print error after
21762 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
21764 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
21765 Reported by: Pavel Pisa.
21767 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
21769 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
21771 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
21773 Merge grub_ieee1275_map_physical into grub_map and rename to
21776 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
21777 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
21779 * kern/ieee1275/openfw.c (grub_map): Rename to ...
21780 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
21782 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
21784 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
21786 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
21787 opening and not after.
21789 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
21791 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
21794 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
21796 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
21797 (alloc_phys): Use ALIGN_UP instead of align_addr.
21799 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
21801 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
21803 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
21805 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
21807 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
21809 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
21812 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
21814 Fix over-4GiB seek on sparc64.
21816 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
21817 Replace pos_i and pos_lo with pos. All users updated.
21818 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
21820 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
21822 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
21825 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
21827 * util/grub-mkrawimage.c (main): Call set_program_name.
21829 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
21831 Properly align 64-bit targets.
21833 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
21834 (generate_image): Use ALIGN_ADDR.
21836 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
21838 Properly create cross-endian images.
21840 * include/grub/types.h (grub_host_to_target_addr): New macro
21841 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
21843 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
21845 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
21847 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
21849 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
21851 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
21852 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
21853 (grub_linux_boot): Divide by 64K when on VESA.
21855 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
21857 Support GRUB_GFXPAYLOAD_LINUX.
21859 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
21860 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
21862 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
21864 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
21865 to show messages instead of discarding them.
21866 Process errors after executing command and not before. Keep old method
21869 2010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
21871 * configure.ac: Check for ft2build.h.
21873 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
21875 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
21877 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
21879 * genkernsyms.sh.in: Use TARGET_CC.
21881 2010-02-07 Colin Watson <cjwatson@ubuntu.com>
21885 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
21887 * include/grub/multiboot2.h: Remove leftover file.
21888 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
21889 * include/grub/partition.h [GRUB_UTIL]: Likewise.
21891 2010-02-07 Yves Blusseau <blusseau@zetam.org>
21893 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
21895 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
21897 Fix warnings in grub-emu when compiling with maximum warning options.
21899 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
21900 (grub_arch_modules_addr): Return 0 and not NULL.
21901 * util/misc.c (ENABLE_RELOCATABLE): New definition.
21902 (xstrdup): Use newstr instead of dup.
21903 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
21904 of disk to dsk to avoid shadowing.
21905 (find_free_slot): Fix prototype.
21906 * util/getroot.c (grub_util_is_dmraid): Make static.
21907 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
21908 Add missing prototype.
21909 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
21911 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
21913 * loader/i386/linux.c (grub_linux_setup_video): Handle error
21916 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
21918 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
21921 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
21923 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
21924 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
21925 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
21926 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
21927 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
21928 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
21930 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
21932 * include/grub/err.h (grub_err_printf): Don't export.
21934 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
21936 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
21938 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
21940 * include/grub/i18n.h (grub_gettext_dummy): Removed.
21941 * kern/misc.c (grub_gettext_dummy): Make static.
21943 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
21945 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
21947 * kern/term.c (grub_putchar): Likewise.
21949 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
21951 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
21952 buggy hook call and memory leak.
21954 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
21956 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
21958 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
21960 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
21962 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
21964 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
21966 Return grub_errno on allocation error.
21968 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
21970 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
21972 2010-02-06 Yves Blusseau <blusseau@zetam.org>
21974 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
21975 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
21977 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
21979 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
21981 (grub_pxefs_open): Likewise.
21983 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
21985 * util/grub.d/10_hurd.in: Add --class information to menuentries.
21986 * util/grub.d/10_kfreebsd.in: Likewise.
21987 * util/grub.d/10_linux.in: Likewise.
21989 2010-02-06 Colin D Bennett <colin@gibibit.com>
21991 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
21992 (gfxmenu_mod_SOURCES): New variable.
21993 (gfxmenu_mod_CFLAGS): Likewise.
21994 (gfxmenu_mod_LDFLAGS): Likewise.
21995 * include/grub/term.h (grub_term_set_current_output): Declare
21997 * docs/gfxmenu-theme-example.txt: New file.
21998 * gfxmenu/gfxmenu.c: Likewise.
21999 * gfxmenu/gui_box.c: Likewise.
22000 * gfxmenu/gui_canvas.c: Likewise.
22001 * gfxmenu/gui_circular_progress.c: Likewise.
22002 * gfxmenu/gui_image.c: Likewise.
22003 * gfxmenu/gui_label.c: Likewise.
22004 * gfxmenu/gui_list.c: Likewise.
22005 * gfxmenu/gui_progress_bar.c: Likewise.
22006 * gfxmenu/gui_string_util.c: Likewise.
22007 * gfxmenu/gui_util.c: Likewise.
22008 * gfxmenu/icon_manager.c: Likewise.
22009 * gfxmenu/model.c: Likewise.
22010 * gfxmenu/named_colors.c: Likewise.
22011 * gfxmenu/theme_loader.c: Likewise.
22012 * gfxmenu/view.c: Likewise.
22013 * gfxmenu/widget-box.c: Likewise.
22014 * include/grub/gfxmenu_model.h: Likewise.
22015 * include/grub/gfxmenu_view.h: Likewise.
22016 * include/grub/gfxwidgets.h: Likewise.
22017 * include/grub/gui.h: Likewise.
22018 * include/grub/gui_string_util.h: Likewise.
22019 * include/grub/icon_manager.h: Likewise.
22021 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
22023 Agglomerate scrolling in gfxterm.
22025 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
22026 (grub_virtual_screen_setup): Initialise 'total_screen'.
22027 (write_char): Split to ...
22028 (paint_char): ... this ...
22029 (write_char): ... and this.
22030 (paint_char): Handle delayed scrolling.
22031 (draw_cursor): Likewise.
22032 (scroll_up): Split to ...
22033 (real_scroll): ... this ...
22034 (scroll_up): ... and this.
22035 (real_scroll): Handle multi-line scroll and draw below-the-bottom
22037 (grub_gfxterm_refresh): Call real_scroll.
22039 2010-02-06 Colin D Bennett <colin@gibibit.com>
22041 * include/grub/misc.h (grub_iscntrl): New inline function.
22042 (grub_isalnum): Likewise.
22043 (grub_strtol): Likewise.
22045 2010-02-06 Colin D Bennett <colin@gibibit.com>
22047 * normal/menu_text.c (get_entry_number): Move from here ...
22048 * normal/menu.c (get_entry_number): ... moved here.
22049 * include/grub/menu.h (grub_menu_get_default_entry_index):
22051 * normal/menu.c (grub_menu_get_default_entry_index): New function.
22052 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
22053 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
22054 (grub_menu_viewer_should_return): Likewise.
22055 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
22056 * normal/menu_text.c (run_menu): Enable menu switching.
22057 * normal/menu_viewer.c (should_return): New variable.
22058 (menu_viewer_changed): Likewise.
22059 (grub_menu_viewer_show_menu): Handle menu viewer changes.
22060 (grub_menu_viewer_should_return): New function.
22061 (menuviewer_write_hook): Likewise.
22062 (grub_menu_viewer_init): Likewise.
22064 2010-02-06 Colin D Bennet <colin@gibibit.com>
22065 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
22067 Support for gfxterm in a window.
22069 * include/grub/gfxterm.h: New file.
22070 * include/grub/video.h (struct grub_video_rect): New declaration.
22071 (grub_video_rect_t): Likewise.
22072 * term/gfxterm.c (struct grub_gfxterm_window): New type.
22073 (refcount): New variable.
22074 (render_target): Likewise.
22075 (window): Likewise.
22076 (repaint_callback): Likewise.
22077 (grub_virtual_screen_setup): Use 'render_target'.
22078 (init_window): New function.
22079 (grub_gfxterm_init_window): Likewise.
22080 (grub_gfxterm_init): Check reference counter.
22082 (destroy_window): New function.
22083 (grub_gfxterm_destroy_window): Likewise.
22084 (grub_gfxterm_fini): Check reference counter.
22085 Use destroy_window.
22086 (redraw_screen_rect): Restore viewport.
22087 Use 'render_target' and 'window'.
22088 Call 'repaint_callback'.
22089 (write_char): Use 'render_target'.
22090 (draw_cursor): Likewise.
22091 (scroll_up): Restore viewport.
22092 Use 'render_target' and 'window'.
22093 Call 'repaint_callback'.
22094 (grub_gfxterm_cls): Likewise.
22095 (grub_gfxterm_refresh): Use 'window'.
22096 (grub_gfxterm_set_repaint_callback): New function.
22097 (grub_gfxterm_background_image_cmd): Use 'window'.
22098 (grub_gfxterm_get_term): New function.
22099 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
22101 2010-02-06 Colin D Bennett <colin@gibibit.com>
22103 Bitmap scaling support.
22105 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
22106 (bitmap_scale_mod_SOURCES): New variable.
22107 (bitmap_scale_mod_CFLAGS): Likewise.
22108 (bitmap_scale_mod_LDFLAGS): Likewise.
22109 * include/grub/bitmap_scale.h: New file.
22110 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
22111 (background_image_cmd_options): New variable.
22112 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
22113 (cmd): Rename and change type to ...
22114 (background_image_cmd_handle): ... this. All users updated.
22115 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
22116 * video/bitmap_scale.c: New file.
22118 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
22122 * Makefile.in (LIBSDL): New variable.
22123 (enable_grub_emu_sdl): Likewise.
22124 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
22125 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
22126 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
22127 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
22128 * util/sdl.c: New file.
22130 2010-02-06 Colin D Bennett <colin@gibibit.com>
22131 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
22133 Double buffering support.
22135 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
22136 * include/grub/video.h: Update comment.
22137 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
22139 (grub_video_fb_doublebuf_blit_init): New prototype.
22140 * term/gfxterm.c (scroll_up): Support double buffering.
22141 (grub_gfxterm_refresh): Likewise.
22142 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
22143 (grub_video_fb_doublebuf_blit_init): Likewise.
22144 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
22145 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
22146 'displayed_page', 'render_page' and 'update_screen'.
22147 (grub_video_vbe_fini): Free offscreen buffer.
22148 (doublebuf_pageflipping_commit): New function.
22149 (doublebuf_pageflipping_update_screen): Likewise.
22150 (doublebuf_pageflipping_init): Likewise.
22151 (double_buffering_init): Likewise.
22152 (grub_video_vbe_setup): Enable doublebuffering.
22153 (grub_video_vbe_swap_buffers): Implement.
22154 (grub_video_vbe_set_active_render_target): Handle double buffering.
22155 (grub_video_vbe_get_active_render_target): Likewise.
22156 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
22157 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
22158 (grub_video_vbe_enable_double_buffering): Likewise.
22159 (grub_video_vbe_swap_buffers): Use update_screen.
22160 (grub_video_set_mode): Use double buffering.
22162 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
22164 * maintainance/gentrigtables.py: Remove.
22165 * lib/trig.c: Likewise.
22167 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
22169 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
22171 (trigtables.c): New rule.
22172 (gentrigtables): Likewise.
22173 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
22175 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
22177 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
22180 2010-02-06 Colin D Bennet <colin@gibibit.com>
22182 Trigonometry support.
22184 * include/grub/trig.h: New file.
22185 * lib/trig.c: Likewise.
22186 * maintainance/gentrigtables.py: Likewise.
22187 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
22188 (trig_mod_SOURCES): New variable.
22189 (trig_mod_CFLAGS): Likewise.
22190 (trig_mod_LDFLAGS): Likewise.
22192 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
22194 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
22197 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
22199 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
22202 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
22204 * util/hostdisk.c (open_device): Don't use partition device when reading
22205 before the partition.
22206 (grub_util_biosdisk_read): Don't read from partition and before the
22207 partition in single operation.
22208 (grub_util_biosdisk_write): Don't write to partition and before the
22209 partition in single operation.
22211 2010-02-03 Torsten Landschoff <torsten@debian.org>
22213 * kern/disk.c (grub_disk_read): Fix offset computation when reading
22216 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
22218 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
22220 (grub_biosdisk_write): Refuse to write to CDROM.
22222 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
22224 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
22226 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
22228 * font/font.c (find_glyph): Check that bmp_idx is available before
22230 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
22231 with (font == NULL).
22233 2010-01-28 Christian Schmitt <chris@ilovelinux.de>
22235 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
22237 2010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
22239 * include/grub/script_sh.h (sourcecode): Add const qualifier.
22240 * util/grub-script-check.c (getline): Fix empty lines case.
22242 2010-01-28 Robert Millan <rmh.grub@aybabtu.com>
22244 * Makefile.in (check): Exit with fail status when one of the tests
22246 * tests/example_functional_test.c (example_test): Fix reversed assert.
22247 * tests/example_unit_test.c (example_test): Likewise.
22249 2010-01-28 Colin Watson <cjwatson@ubuntu.com>
22251 * util/grub.d/10_linux.in: This script does not use any of the
22252 contents of gettext.sh, only the external command `gettext', so stop
22253 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
22254 the same prefix as GRUB.)
22255 * util/grub.d/10_kfreebsd.in: Likewise.
22257 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
22259 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
22262 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
22264 * kern/disk.c (grub_disk_read): Fix offset computation when reading
22267 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
22269 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
22270 having a 4KiB and not 32KiB buffer size.
22272 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
22274 * util/hostfs.c: Include `<errno.h>'.
22275 (grub_hostfs_read): Handle errors from fseeko() and fread().
22277 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
22279 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
22280 loop when using read hooks on files whose size isn't sector-aligned.
22282 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
22284 Remove unused parameter.
22286 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
22287 (grub_iso9660_open): Remove initialization of `data->length'.
22289 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
22291 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
22292 memleak conditions.
22294 2010-01-27 Carles Pina i Estany <carles@pina.cat>
22296 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
22297 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
22299 2010-01-26 Carles Pina i Estany <carles@pina.cat>
22301 * util/bin2h.c (usage): Fix warning (space after backslash).
22303 2010-01-26 Carles Pina i Estany <carles@pina.cat>
22305 * font/font.c: Include `grub/fontformat.h.
22306 Remove font file format constants.
22307 (grub_font_load): Use the new macros.
22308 * include/grub/fontformat.h: New file.
22309 * util/grub-mkfont.c: Include `grub/fontformat.c'.
22310 (write_font_pf2): Use the new macros.
22312 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
22314 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
22317 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
22319 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
22321 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
22322 (_start): Macroify `0x7F'.
22324 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
22325 (make_install_device): Use "(pxe)" as fallback prefix when booting
22328 2010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
22330 * configure.ac: Reset LIBS after check for libgcc symbols.
22332 2010-01-25 Colin Watson <cjwatson@ubuntu.com>
22334 * util/hostdisk.c (open_device): Add trailing newline to debug
22337 2010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
22339 * configure.ac: Check for `limits.h'.
22340 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
22342 2010-01-24 Robert Millan <rmh.grub@aybabtu.com>
22344 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
22345 capitalize error strings.
22347 2010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
22349 * util/grub.d/10_hurd.in: Add a recovery mode.
22351 2010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
22353 * configure.ac: Check for libgcc symbols with -nostdlib.
22355 2010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
22357 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
22359 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
22361 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
22362 stack since heap may be unavailable at that point.
22363 (grub_ofconsole_gotoxy): Likewise.
22365 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
22367 * configure.ac: Check for _restgpr_14_x.
22368 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
22369 and _savegpr_* prototypes.
22371 2010-01-22 Robert Millan <rmh.grub@aybabtu.com>
22373 Use generic grub_reboot() for i386-efi.
22375 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
22376 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
22377 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
22379 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
22381 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
22382 presence of "prefix" variable as it breaks when normal.mod is
22385 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
22387 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
22388 stack since heap is unavailable at that point.
22390 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
22392 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
22393 (grub_freebsd_bootinfo): Rewritten.
22394 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
22396 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
22398 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
22400 2010-01-21 Robert Millan <rmh.grub@aybabtu.com>
22402 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
22405 2010-01-20 Felix Zielcke <fzielcke@z-51.de>
22407 * util/misc.c (make_system_path_relative_to_its_root): Change the work
22408 around for handling "/" to the correct fix. Fix a memory leak. Use
22409 xstrdup instead of strdup.
22411 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
22413 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
22415 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
22417 Optimise glyph lookup by Basic Multilingual Plane lookup array.
22419 * font/font.c (struct grub_font): New member 'bmp_idx'.
22420 (font_init): Initialise 'bmp_idx'.
22421 (load_font_index): Fill 'bmp_idx'.
22422 (find_glyph): Make inline. Use bmp_idx for BMP characters.
22424 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
22426 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
22429 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
22431 Move context handling out of the kernel.
22433 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
22434 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
22435 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
22436 * conf/i386-efi.rmk: Likewise.
22437 * conf/i386-ieee1275.rmk: Likewise.
22438 * conf/i386-pc.rmk: Likewise.
22439 * conf/powerpc-ieee1275.rmk: Likewise.
22440 * conf/sparc64-ieee1275.rmk: Likewise.
22441 * conf/x86_64-efi.rmk: Likewise.
22442 * include/grub/env.h: Include grub/menu.h.
22443 (grub_env_var_type): Removed.
22444 (grub_env_var): Replaced field 'type' with 'global'.
22445 (grub_env_find): New prototype.
22446 (grub_env_context_open): Remove EXPORT_FUNC.
22447 (grub_env_context_close): Likewise.
22448 (grub_env_export): Likewise.
22449 (grub_env_set_data_slot): Removed.
22450 (grub_env_get_data_slot): Likewise.
22451 (grub_env_unset_data_slot): Likewise.
22452 (grub_env_unset_menu): New prototype.
22453 (grub_env_set_menu): Likewise.
22454 (grub_env_get_menu): Likewise.
22455 * include/grub/env_private.h: New file.
22456 * include/grub/normal.h (grub_context_init): New prototype.
22457 (grub_context_fini): Likewise.
22458 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
22459 * normal/context.c (grub_cmd_export): ... to here.
22460 * kern/env.c: Include env_private.h.
22461 (HASHSZ): Moved to include/grub/env_private.h.
22462 (grub_env_context): Likewise.
22463 (grub_env_sorted_var): Likewise.
22464 (current_context): Renamed from this ...
22465 (grub_current_context): ...to this. 'static' removed. All users updated.
22466 (grub_env_find): Removed 'static'.
22467 (grub_env_context_open): Moved to normal/context.c.
22468 (grub_env_context_close): Likewise.
22469 (grub_env_export): Likewise.
22470 (mangle_data_slot_name): Removed.
22471 (grub_env_set_data_slot): Likewise.
22472 (grub_env_get_data_slot): Likewise.
22473 (grub_env_unset_data_slot): Likewise.
22474 * kern/main.c (grub_set_root_dev): Don't export root.
22475 It will be done later.
22476 (grub_main): Don't export prefix.
22477 It will be done later.
22478 * normal/context.c: New file.
22479 * normal/main.c (free_menu): Use grub_env_unset_menu.
22480 (grub_normal_add_menu_entry): Use grub_env_get_menu.
22481 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
22482 (GRUB_MOD_INIT(normal)): Call grub_context_init.
22483 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
22485 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
22489 * commands/setpci.c: New file.
22490 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
22491 (setpci_mod_SOURCES): New variable.
22492 (setpci_mod_CFLAGS): Likewise.
22493 (setpci_mod_LDFLAGS): Likewise.
22495 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
22497 Byte-addressable PCI configuration space.
22499 * bus/pci.c (grub_pci_make_address): Use byte address instead of
22501 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
22502 GRUB_PCI_REG_CACHELINE.
22503 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
22504 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
22505 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
22506 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
22507 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
22508 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
22509 grub_pci_make_address.
22510 (lock_rom_area): Likewise.
22511 * commands/lspci.c (grub_lspci_iter): Use macroses
22512 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
22513 of grub_pci_make_address.
22514 * disk/ata.c (grub_ata_pciinit): Likewise.
22515 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
22516 (GRUB_PCI_REG_VENDOR): Likewise.
22517 (GRUB_PCI_REG_DEVICE): Likewise.
22518 (GRUB_PCI_REG_COMMAND): Likewise.
22519 (GRUB_PCI_REG_STATUS): Likewise.
22520 (GRUB_PCI_REG_REVISION): Likewise.
22521 (GRUB_PCI_REG_CLASS): Likewise.
22522 (GRUB_PCI_REG_CACHELINE): Likewise.
22523 (GRUB_PCI_REG_LAT_TIMER): Likewise.
22524 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
22525 (GRUB_PCI_REG_BIST): Likewise.
22526 (GRUB_PCI_REG_ADDRESSES): Likewise.
22527 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
22528 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
22529 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
22530 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
22531 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
22532 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
22533 (GRUB_PCI_REG_CIS_POINTER): Likewise.
22534 (GRUB_PCI_REG_SUBVENDOR): Likewise.
22535 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
22536 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
22537 (GRUB_PCI_REG_CAP_POINTER): Likewise.
22538 (GRUB_PCI_REG_IRQ_LINE): Likewise.
22539 (GRUB_PCI_REG_IRQ_PIN): Likewise.
22540 (GRUB_PCI_REG_MIN_GNT): Likewise.
22541 (GRUB_PCI_REG_MAX_LAT): Likewise.
22542 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
22543 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
22544 * video/efi_uga.c (find_framebuf): Likewise.
22545 * video/sm712.c (grub_video_sm712_setup): Likewise.
22546 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
22549 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
22551 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
22552 can be reliably determined to be supported.
22554 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
22556 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
22557 that VESA is supported.
22558 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
22561 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
22563 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
22565 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
22567 * util/misc.c (make_system_path_relative_to_its_root): Work around
22568 special-casing of "/", as previous incarnation of this routine did.
22570 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
22572 Fix any-emu compilation.
22574 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
22575 * grub_bin2h_SOURCES: New variable.
22577 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
22579 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
22581 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
22583 * util/grub.d/00_header.in: Fix handling of locale_dir.
22585 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
22587 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
22588 as possible unifont location (Gentoo).
22589 Reported by: Alexander Brüning
22591 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
22593 Don't try to generate lists for kernel.img.
22595 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
22596 (pkglib_MODULES): Remove kernel.img.
22597 (kernel_img_EXPORTS): Removed.
22598 (kernel_img_RELOCATABLE): New variable.
22599 * conf/x86_64-efi.rmk: Likewise.
22600 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
22602 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
22604 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
22605 grub_xasprintf or grub_snprintf.
22606 (grub_vsprintf): Likewise.
22607 (grub_snprintf): New proto.
22608 (grub_vsnprintf): Likewise.
22609 (grub_xasprintf): Likewise.
22610 (grub_xvasprintf): Likewise.
22611 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
22612 (grub_sprintf): Removed.
22613 (grub_vsnprintf): New function.
22614 (grub_snprintf): Likewise.
22615 (grub_xvasprintf): Likewise.
22616 (grub_xasprintf): Likewise.
22617 (grub_vsprintf): Renamed to ...
22618 (grub_vsnprintf_real): ...this. New argument max_len.
22620 2010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
22622 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
22623 fix grub-script-check warning.
22625 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
22627 * include/grub/font.h (grub_font_load): Fix prototype.
22629 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
22631 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
22633 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
22635 * include/grub/x86_64/at_keyboard.h: New file.
22637 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
22639 * loader/mips/linux.c: Include missing grub/i18n.h.
22641 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
22643 * normal/menu.c (notify_execution_failure): Clarify error message.
22645 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
22647 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
22648 return value (and revert all return statements). Update users.
22650 2010-01-20 Dan Merillat <debian@dan.merillat.org>
22652 * kern/device.c (grub_device_iterate): Allocate new part_ent
22653 structure based on sizeof (*p) rather than sizeof (p->next), to
22654 account for structure padding.
22656 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
22657 disk is NULL, which might happen for LVM physical volumes with no
22660 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
22662 * loader/mips/linux.c (grub_cmd_initrd)
22663 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
22665 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
22667 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
22668 (grub_video_video_init, grub_video_bitmap_init)
22669 (grub_font_manager_init, grub_term_gfxterm_init)
22670 (grub_at_keyboard_init): New extern declarations.
22671 (grub_machine_init): Initialize gfxterm and at_keyboard.
22673 * kern/main.c (grub_main): Revert grub_printf delay kludge.
22675 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
22676 `gfxterm.mod' into core image.
22678 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
22679 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
22680 (kernel_img_FORMAT): Copy to ...
22682 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
22683 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
22684 (kernel_img_FORMAT): ... here, and ...
22686 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
22687 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
22688 (kernel_img_FORMAT): ... here.
22690 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
22691 and input (at_keyboard) terminals in kernel.
22692 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
22694 (pkglib_MODULES): Remove `pci.mod'.
22695 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
22696 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
22697 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
22698 (at_keyboard_mod_LDFLAGS): Remove variables.
22700 2010-01-11 Felix Zielcke <fzielcke@z-51.de>
22702 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
22704 2009-12-10 Robert Millan <rmh.grub@aybabtu.com>
22706 * include/grub/mips/libgcc.h: Only export symbols for functions
22707 that libgcc provides.
22709 2009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
22713 * bus/bonito.c: New file.
22714 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
22715 GRUB_PCI_NUM_DEVICES.
22716 * term/i386/pc/serial.c: Move to ...
22717 * term/serial.c: ... here. All users updated.
22718 * util/i386/pc/grub-mkimage.c: Move to ...
22719 * util/grub-mkrawimage.c: ... here. All users updated.
22720 * term/i386/pc/at_keyboard.c: Move to ...
22721 * term/at_keyboard.c: ... here. All users updated.
22722 * conf/mips-qemu-mips.rmk: New file.
22723 * conf/mips-yeeloong.rmk: Likewise.
22724 * conf/mips.rmk: Likewise.
22725 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
22727 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
22729 (grub_ata_pciinit): Support CS5536.
22730 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
22731 * font/font_cmd.c (loadfont_command): Open file before passing it to
22733 (pseudo_file_read): New function.
22734 (pseudo_file_close): Likewise.
22735 (pseudo_fs): New structure.
22736 (load_font_module): New function.
22737 (GRUB_MOD_INIT(font_manager)): Load embedded font.
22738 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
22739 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
22740 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
22741 * include/grub/i386/at_keyboard.h: Split into ...
22742 * include/grub/at_keyboard.h: ... this ...
22743 * include/grub/i386/at_keyboard.h: ... and this.
22744 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
22746 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
22748 (grub_elf64_size): Likewise.
22749 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
22751 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
22752 * include/grub/i386/coreboot/serial.h: Rewritten.
22753 * include/grub/i386/ieee1275/serial.h: Include
22754 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
22755 * include/grub/i386/pc/serial.h: Moved from here ...
22756 * include/grub/serial.h: ... to here. All users updated.
22757 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
22758 (GRUB_PCI_NUM_BUS): Likewise.
22759 (GRUB_PCI_NUM_DEVICES): Likewise.
22760 (grub_pci_device_map_range): Add missing volatile keyword.
22761 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
22762 * include/grub/mips/at_keyboard.h: New file.
22763 * include/grub/mips/cache.h: Likewise.
22764 * include/grub/mips/io.h: Likewise.
22765 * include/grub/mips/kernel.h: Likewise.
22766 * include/grub/mips/libgcc.h: Likewise.
22767 * include/grub/mips/pci.h: Likewise.
22768 * include/grub/mips/qemu-mips/boot.h: Likewise.
22769 * include/grub/mips/qemu-mips/kernel.h: Likewise.
22770 * include/grub/mips/qemu-mips/loader.h: Likewise.
22771 * include/grub/mips/qemu-mips/memory.h: Likewise.
22772 * include/grub/mips/qemu-mips/serial.h: Likewise.
22773 * include/grub/mips/qemu-mips/time.h: Likewise.
22774 * include/grub/mips/relocator.h: Likewise.
22775 * include/grub/mips/time.h: Likewise.
22776 * include/grub/mips/types.h: Likewise.
22777 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
22778 * include/grub/mips/yeeloong/boot.h: Likewise.
22779 * include/grub/mips/yeeloong/kernel.h: Likewise.
22780 * include/grub/mips/yeeloong/loader.h: Likewise.
22781 * include/grub/mips/yeeloong/memory.h: Likewise.
22782 * include/grub/mips/yeeloong/pci.h: Likewise.
22783 * include/grub/mips/yeeloong/serial.h: Likewise.
22784 * include/grub/mips/yeeloong/time.h: Likewise.
22785 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
22786 * kern/elf.c (grub_elf32_size): New parameter. All users
22788 (grub_elf64_size): Likewise.
22789 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
22790 Load modules before saying "Welcome to GRUB!".
22791 Call grub_refresh after saying "Welcome to GRUB!".
22792 * kern/mips/cache.S: New file.
22793 * kern/mips/cache_flush.S: Likewise.
22794 * kern/mips/dl.c: Likewise.
22795 * kern/mips/init.c: Likewise.
22796 * kern/mips/qemu-mips/init.c: Likewise.
22797 * kern/mips/startup.S: Likewise.
22798 * kern/mips/yeeloong/init.c: Likewise.
22799 * kern/term.c (grub_putcode): Handle NULL terminal.
22800 (grub_getcharwidth): Likewise.
22801 (grub_getkey): Likewise.
22802 (grub_checkkey): Likewise.
22803 (grub_getkeystatus): Likewise.
22804 (grub_getxy): Likewise.
22805 (grub_getwh): Likewise.
22806 (grub_gotoxy): Likewise.
22807 (grub_cls): Likewise.
22808 (grub_setcolorstate): Likewise.
22809 (grub_setcolor): Likewise.
22810 (grub_getcolor): Likewise.
22811 (grub_refresh): Likewise.
22812 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
22813 (write_jump): Add hatch nop.
22814 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
22815 * lib/mips/setjmp.S: New file.
22816 * loader/mips/linux.c: Likewise.
22817 * term/i386/pc/at_keyboard.c: Move from here ...
22818 * term/at_keyboard.c: ... to here.
22819 * term/i386/pc/serial.c: Moved from here ...
22820 * term/serial.c: ... to here. All users updated.
22821 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
22822 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
22823 (serial_translate_key_sequence): Avoid deadlock.
22824 (grub_serial_getkey): Handle backspace.
22825 (grub_serial_putchar): Fix newline handling.
22826 * util/i386/pc/grub-mkimage.c: Move from here ...
22827 * util/grub-mkrawimage.c: ... to here. All users updated.
22828 (generate_image): New parameters 'font_path' and 'format'.
22829 Support embedding font.
22830 Use grub_host_to_target* instead of grub_cpu_to_le*.
22831 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
22832 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
22833 (options): New option "--font".
22835 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
22836 (main): Handle "--font".
22837 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
22838 (grub_virtual_screen_setup): Set bg_color_display.
22839 (redraw_screen_rect): Use bg_color_display instead of incorrect
22841 (grub_gfxterm_cls): Likewise.
22842 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
22843 Support embedding config file.
22844 (add_segments): Likewise.
22845 (options): New option "--config".
22846 (main): Handle "--config".
22847 * video/sm712.c: New file.
22849 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
22851 Fix parallel builds.
22853 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
22854 font.c depend on ascii.h).
22856 2010-01-12 Carles Pina i Estany <carles@pina.cat>
22858 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
22860 2010-01-11 Carles Pina i Estany <carles@pina.cat>
22862 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
22863 By default: disabled.
22864 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
22867 2010-01-10 Carles Pina i Estany <carles@pina.cat>
22869 * font/font.c: Update copyright years.
22870 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
22872 2010-01-10 Carles Pina i Estany <carles@pina.cat>
22874 * font/font.c: Include `ascii.h'.
22875 (ASCII_BITMAP_SIZE): New macro.
22876 (ascii_font_glyph): Define.
22877 (ascii_glyph_lookup): New function.
22878 (grub_font_get_string_width): Change comment. If glyph not found, use
22879 ascii_glyph_lookup.
22880 (grub_font_get_glyph_with_fallback): If glyph not available returns
22881 ascii_glyph_lookup.
22882 * util/grub-mkfont.c (file_formats): New enum.
22883 (options): Add `ascii-bitmaps' new option.
22884 (usage): Add `asii-bitmaps' new option.
22885 (write_font_ascii_bitmap): New function.
22886 (write_font): Rename to ...
22887 (write_font_p2): ... this. Remove print_glyphs call.
22888 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
22889 used. Call print_glyphs.
22890 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
22892 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
22894 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
22895 (grub_bin2h_SOURCES): New variable.
22896 * util/bin2h.c: New file.
22898 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
22900 * include/multiboot.h: Resynced with spec.
22901 * include/multiboot2.h: Likewise.
22902 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
22903 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
22905 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
22907 * include/grub/term.h (grub_term_register_input,
22908 grub_term_register_output): Check return of terminal init()
22909 routines, and abort if errors are raised.
22911 * commands/terminal.c: Update copyright year.
22913 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
22915 * commands/terminal.c (grub_cmd_terminal_input)
22916 (grub_cmd_terminal_output): Check return of terminal init()
22917 routines, and abort if errors are raised.
22919 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
22921 * include/grub/i386/bsd.h: Fix include pathes.
22923 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
22925 Add missing *BSD copyright headers.
22927 * include/grub/aout.h: Add BSD licence.
22928 * include/grub/i386/bsd.h: Parts under different licences moved to ...
22929 * include/grub/i386/freebsd_linker.h: ... here,
22930 * include/grub/i386/freebsd_reboot.h: ... here,
22931 * include/grub/i386/netbsd_bootinfo.h: ... here,
22932 * include/grub/i386/netbsd_reboot.h: ... here,
22933 * include/grub/i386/openbsd_bootarg.h: ... here,
22934 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
22935 licence to each file.
22937 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
22939 * acinclude.m4: Remove `nop' assembly instruction; it's not
22940 implemented by all architectures.
22942 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
22944 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
22945 ELILO. This is no longer necessary.
22947 2010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
22949 Added new tool, grub-scrit-check to verify grub.cfg syntax.
22951 * util/grub-script-check.c: grub-script-check tool.
22952 * conf/common.rmk: Make rules for grub-script-check.
22954 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
22956 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
22957 spotting it back in 2008. Shame on me for forgetting he did.
22959 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
22961 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
22963 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
22964 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
22965 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
22966 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
22967 (GRUB_VIDEO_TYPE_EFI): Rename to ...
22968 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
22970 2010-01-17 Robert Millan <rmh.grub@aybabtu.com>
22972 * include/grub/test.h: Add license header.
22973 * tests/example_functional_test.c: Likewise.
22974 * tests/example_unit_test.c: Likewise.
22975 * tests/lib/functional_test.c: Likewise.
22976 * tests/lib/test.c: Likewise.
22977 * tests/lib/unit_test.c: Likewise.
22979 2010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
22981 Use flag-based instead of hook-based video mode selection and "auto"
22984 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
22985 (grub_video_set_mode): Changed prototype. All users updated.
22986 (grub_video_check_mode_flag): New inline function.
22987 * video/video.c (parse_modespec): New function.
22988 (grub_video_set_mode): Parse flags and keywords.
22990 2010-01-17 Carles Pina i Estany <carles@pina.cat>
22992 * util/misc.c (grub_util_info): Fix the order of the parameters in a
22995 2010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
22997 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
22999 2010-01-16 Carles Pina i Estany <carles@pina.cat>
23001 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
23003 * util/grub-emu.c (usage): Likewise.
23004 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
23005 * util/i386/efi/grub-mkimage.c (usage): Likewise.
23006 * util/i386/pc/grub-mkimage.c (usage): Likewise.
23007 * util/i386/pc/grub-setup.c (usage): Likewise.
23009 2010-01-16 Carles Pina i Estany <carles@pina.cat>
23011 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
23013 (grub_util_info): Likewise.
23014 (grub_util_error): Likewise.
23015 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
23016 and/or new lines in `grub_util_warna', `grub_util_info',
23017 `grub_util_error' calls.
23018 * util/getroot.c: Likewise.
23019 * util/grub-editenv.c: Likewise.
23020 * util/grub-emu.c: Likewise.
23021 * util/grub-fstest.c: Likewise.
23022 * util/grub-mkdevicemap.c: Likewise.
23023 * util/grub-mkfont.c: Likewise.
23024 * util/grub-mkpasswd-pbkdf2.c: Likewise.
23025 * util/grub-mkrelpath.c: Likewise.
23026 * util/grub-pe2elf.c: Likewise.
23027 * util/grub-probe.c: Likewise.
23028 * util/hostdisk.c: Likewise.
23029 * util/i386/efi/grub-mkimage.c: Likewise.
23030 * util/i386/pc/grub-mkimage.c: Likewise.
23031 * util/i386/pc/grub-setup.c: Likewise.
23032 * util/ieee1275/ofpath.c: Likewise.
23033 * util/mkisofs/eltorito.c: Likewise.
23034 * util/mkisofs/rock.c: Likewise.
23035 * util/mkisofs/write.c: Likewise.
23036 * util/raid.c: Likewise.
23037 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
23038 * util/sparc64/ieee1275/grub-setup.c: Likewise.
23040 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
23042 Enable multiboot on non-pc.
23044 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
23045 multiboot.mod and multiboot2.mod to ...
23046 * conf/i386.rmk (pkglib_MODULES): ... here.
23047 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
23049 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
23050 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
23052 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
23053 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
23055 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
23056 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
23058 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
23059 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
23061 (ata_mod_SOURCES): Removed.
23062 (ata_mod_CFLAGS): Likewise.
23063 (ata_mod_LDFLAGS): Likewise.
23064 (relocator_mod_SOURCES): Removed.
23065 (relocator_mod_CFLAGS): Likewise.
23066 (relocator_mod_ASFLAGS): Likewise.
23067 (relocator_mod_LDFLAGS): Likewise.
23069 * include/grub/x86_64/multiboot.h: New file.
23070 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
23073 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
23075 Video multiboot support.
23077 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
23079 * include/multiboot.h: Resynced with multiboot specification.
23080 * include/multiboot2.h: Likewise.
23081 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
23082 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
23083 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
23084 (HAS_VGA_TEXT): Likewise.
23085 (accepts_video): New variable.
23086 (grub_multiboot_set_accepts_video): New function.
23087 (grub_multiboot_get_mbi_size): Account for video structures.
23088 (set_video_mode): New function.
23089 (retrieve_video_parameters): Likewise.
23090 (grub_multiboot_make_mbi): Fill video fields.
23092 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
23096 * include/grub/video.h (grub_video_driver_id): New type.
23097 (grub_video_adapter): New member 'id'. All users updated.
23098 (grub_video_get_driver_id): New proto.
23099 * video/video.c (grub_video_get_driver_id): New function.
23101 2010-01-14 Carles Pina i Estany <carles@pina.cat>
23103 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
23106 2010-01-14 Carles Pina i Estany <carles@pina.cat>
23108 * normal/cmdline.c (print_completion): Gettextizze.
23110 2001-01-14 Carles Pina i Estany <carles@pina.cat>
23112 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
23114 2010-01-14 Carles Pina i Estany <carles@pina.cat>
23116 * gettext/gettext.c (grub_gettext_translate): Push and pop
23118 (grub_gettext_delete_list): Change comment style.
23119 * kern/err.c (grub_error): Gettextizze.
23120 (grub_fatal): Gettextizze.
23122 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
23124 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
23125 (grub_linux16_real_boot): ... this.
23126 * kern/i386/loader.S: Likewise.
23127 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
23128 (grub_linux16_boot): New function. Switches to text mode and calls
23129 grub_linux16_real_boot().
23131 * loader/i386/bsd.c: Include `<grub/video.h>'.
23132 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
23133 text mode before calling grub_unix_real_boot().
23135 * loader/i386/multiboot.c: Include `<grub/video.h>'.
23136 (grub_multiboot_boot): Switch to text mode before calling
23137 grub_relocator32_boot().
23139 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
23140 (grub_chainloader_boot): Switch to text mode before calling
23141 grub_chainloader_real_boot().
23143 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
23144 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
23146 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
23149 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
23150 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
23152 * util/grub.d/00_header.in: Define a "savedefault" function for use
23154 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
23156 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
23157 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
23159 * util/grub-mkconfig_lib.in (save_default_entry): Only set
23160 saved_entry if boot_once is unset.
23161 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
23162 previous saved entry (i.e. grub-reboot).
23164 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
23166 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
23168 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
23170 * util/grub.d/00_header.in: Use `set var=val' rather than plain
23172 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
23174 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
23176 * util/grub-reboot.in: Fix --version output.
23177 * util/grub-set-default.in: Likewise.
23179 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
23181 * util/grub.d/00_header.in: Silently ignore zero-sized environment
23184 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
23186 * util/grub.d/00_header.in: Quote the value assigned to `default',
23187 in case it contains spaces.
23189 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
23191 * util/grub.d/30_os-prober.in: Fix merge error that moved a
23192 `save_default_entry' call from the macosx case to the linux case.
23194 2009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
23195 2009-10-25 Colin Watson <cjwatson@ubuntu.com>
23197 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
23198 in `chosen' environment variable.
23199 * normal/menu_text.c (get_entry_number): Check if the variable
23200 matches the title of a menu entry.
23201 (run_menu): Pass menu to get_entry_number.
23203 * util/grub-reboot.in: New file.
23204 * util/grub-set-default.in: New file.
23205 * conf/common.rmk (grub-reboot): New utility.
23206 (grub-set-default): New utility.
23208 * util/grub-mkconfig_lib.in (save_default_entry): New function.
23209 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
23210 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
23211 move it to `saved_entry' for the next boot. Load environment on
23213 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
23214 * util/grub.d/10_hurd.in: Likewise.
23215 * util/grub.d/10_linux.in (linux_entry): Likewise.
23216 * util/grub.d/10_windows.in: Likewise.
23217 * util/grub.d/30_os-prober.in: Likewise.
23219 * util/grub-install.in: Create environment block.
23220 * util/i386/efi/grub-install.in: Likewise.
23221 * util/ieee1275/grub-install.in: Likewise.
23222 * util/sparc64/ieee1275/grub-install.in: Likewise.
23224 2010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
23226 Unit testing framework for GRUB.
23228 * Makefile.in: Test framework build rules for 'make check'.
23229 * conf/tests.rmk: Build rules for individual tests and framework.
23231 * include/grub/test.h: Header file for whitebox tests.
23232 * tests/lib/functional_test.c: Framework support for whitebox
23234 * tests/lib/test.c: Common whitebox testing code for unit and
23236 * tests/lib/unit_test.c: Framework support for whitebox unit
23239 * tests/util/grub-shell-tester.in: Support utility for grub-script
23241 * tests/util/grub-shell.in: Utility to execute grub-script
23242 commands in a Qemu instance.
23244 * tests/example_functional_test.c: Example whitebox functional
23246 * tests/example_grub_script_test.in: Example grub-script test.
23247 * tests/example_scripted_test.in: Example scripted test.
23248 * tests/example_unit_test.c: Example whitebox unit test.
23250 2010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
23252 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
23253 Add loader/i386/multiboot_mbi.c.
23254 (multiboot2_mod_SOURCES): Likewise.
23255 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
23256 (multiboot2_mod_SOURCES): Likewise.
23257 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
23258 (grub_multiboot_make_mbi): Likewise.
23259 (grub_multiboot_free_mbi): Likewise.
23260 (grub_multiboot_init_mbi): Likewise.
23261 (grub_multiboot_add_module): Likewise.
23262 (grub_multiboot_set_bootdev): Likewise.
23263 * loader/i386/multiboot.c (mbi): Removed.
23264 (mbi_dest): Likewise.
23265 (alloc_mbi): New variable.
23266 (grub_multiboot_payload_size): Removed. All users updated.
23267 (grub_multiboot_pure_size): New variable.
23268 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
23269 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
23270 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
23271 (grub_fill_multiboot_mmap): Likewise.
23272 (grub_multiboot_get_bootdev): Likewise.
23273 (grub_multiboot): Use multiboot_mbi functions.
23274 * loader/i386/multiboot_mbi.c: New file.
23276 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
23278 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
23279 it would result in module crash.
23281 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
23283 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
23284 (grub_ofconsole_getwh): Split to ...
23285 (grub_ofconsole_getwh): ... this.
23286 (grub_ofconsole_dimensions): ...and this.
23287 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
23289 2010-01-13 Robert Millan <rmh.grub@aybabtu.com>
23291 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
23293 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
23295 * loader/i386/pc/multiboot2.c: Removed stalled file.
23297 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
23299 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
23300 Reported by: Grégoire Sutre
23302 2010-01-11 Robert Millan <rmh.grub@aybabtu.com>
23304 * util/misc.c (canonicalize_file_name): New function.
23305 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
23306 instead of realpath().
23308 2010-01-11 Colin Watson <cjwatson@ubuntu.com>
23310 * util/grub-install.in (usage): Clarify meaning of --root-directory,
23311 and make it clearer that it's optional. Based on confusion
23314 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
23316 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
23317 in premature implicit newline.
23319 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
23321 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
23322 which resulted in garbled command line at the end of screen.
23324 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
23326 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
23327 initialization with similar approach as with other Linux loaders.
23329 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
23331 Fix i386-ieee1275 build.
23333 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
23334 and grub_term_height() for video_{width,height} initialization.
23336 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
23338 Fix grub-emu build.
23340 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
23342 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
23343 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
23345 Support for multiple terminals.
23347 * Makefile.in (pkglib_DATA): terminal.lst.
23348 (terminal.lst): New target.
23349 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
23350 (GRUB_MOD_INIT(handler)): Likewise.
23351 (GRUB_MOD_FINI(handler)): Likewise.
23352 * commands/help.c (grub_cmd_help): Handle multiple terminals.
23353 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
23354 * commands/sleep.c (do_print): Use grub_term_restore_pos.
23355 (grub_cmd_sleep): Use grub_term_save_pos.
23356 * commands/terminal.c: New file.
23357 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
23358 commands/terminal.c and lib/charset.c.
23359 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
23360 (pkglib_MODULES): Add terminal.mod.
23361 (terminal_mod_SOURCES): New variable.
23362 (terminal_mod_CFLAGS): Likewise.
23363 (terminal_mod_LDFLAGS): Likewise.
23364 * genhandlerlist.sh: Don't handle terminals.
23365 * genmk.rb: Generate terminal-*.lst.
23366 * genterminallist.sh: New file.
23367 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
23368 (grub_is_valid_utf8): Likewise.
23369 (grub_utf8_to_ucs4_alloc): Likewise.
23370 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
23371 (grub_menu_register_viewer): Changed argument.
23372 (grub_menu_try_text): New proto.
23373 (grub_gfxmenu_try_hook): New declaration.
23374 * include/grub/normal.h (grub_normal_exit_level): New declaration.
23375 (grub_menu_init_page): Additional argument term.
23376 (grub_normal_init_page): Likewise.
23377 (grub_cmdline_get): Arguments simplified.
23378 (grub_utf8_to_ucs4_alloc): Removed.
23379 (grub_print_ucs4): Additional argument term.
23380 (grub_getstringwidth): Likewise.
23381 (grub_print_message_indented): Likewise.
23382 (grub_menu_text_register_instances): New proto.
23383 (grub_show_menu): Likewise.
23384 (read_terminal_list): Likewise.
23385 (grub_set_more): Likewise.
23386 * include/grub/parser.h: Include handler.h.
23387 * include/grub/reader.h: Rewritten.
23388 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
23389 (GRUB_TERM_WIDTH): Changed to function.
23390 (GRUB_TERM_HEIGHT): Likewise.
23391 (GRUB_TERM_BORDER_WIDTH): Likewise.
23392 (GRUB_TERM_BORDER_HEIGHT): Likewise.
23393 (GRUB_TERM_NUM_ENTRIES): Likewise.
23394 (GRUB_TERM_ENTRY_WIDTH): Likewise.
23395 (GRUB_TERM_CURSOR_X): Likewise.
23396 (grub_term_input_class): Likewise.
23397 (grub_term_output_class): Likewise.
23398 (grub_term_outputs_disabled): New declaration.
23399 (grub_term_inputs_disabled): Likewise.
23400 (grub_term_outputs): Likewise.
23401 (grub_term_inputs): Likewise.
23402 (grub_term_register_input): Rewritten.
23403 (grub_term_register_output): Likewise.
23404 (grub_term_unregister_input): Likewise.
23405 (grub_term_unregister_output): Likewise.
23406 (FOR_ACTIVE_TERM_INPUTS): New macro.
23407 (FOR_DISABLED_TERM_INPUTS): Likewise.
23408 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
23409 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
23410 * include/grub/terminfo.h: Add oterm argument to all protypes.
23411 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
23412 Use grub_rescue_run.
23413 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
23415 * kern/reader.c: Removed. All users updated.
23416 * kern/rescue_reader.c (grub_rescue_init): Removed.
23417 (grub_rescue_reader): Likewise.
23418 (grub_register_rescue_reader): Likewise.
23419 (grub_rescue_run): New function based on kern/reader.c.
23420 * kern/term.c: Adapted for multiterm.
23421 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
23422 (grub_is_valid_utf8): Likewise.
23423 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
23424 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
23426 * loader/i386/linux.c (grub_linux_boot): Likewise.
23427 * normal/auth.c (grub_username_get): New function.
23428 (grub_auth_check_authentication): Use grub_username_get.
23429 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
23430 * normal/color.c: Adapt for multiterm.
23431 * normal/main.c (read_config_file): Don't use grub_reader_loop.
23432 (grub_normal_init_page): Additional argument term.
23433 (read_lists): Call read_terminal_lists.
23434 (grub_enter_normal_mode): Call grub_cmdline_run.
23435 Handle grub_normal_exit_level.
23436 (grub_cmd_normal): Make reentrant.
23437 (grub_cmd_normal_exit): New function.
23438 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
23439 * normal/menu.c: Adapt for multiterm.
23440 * normal/menu_entry.c: Likewise.
23441 * normal/menu_text.c: Likewise.
23442 * normal/menu_viewer.c: Removed. All users updated.
23443 * normal/term.c: New file.
23444 * util/console.c: Change order of includes to workaround a bug in
23446 * term/terminfo.c: New argument oterm on all exported functions.
23448 * util/grub-editenv.c (grub_term_input_class): Removed.
23449 (grub_term_output_class): Likewise.
23451 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
23453 Make loader output a bit more user-friendly.
23455 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
23456 is being loaded. Likewise for the Hurd.
23458 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
23459 that kernel of FreeBSD ${version} is being loaded.
23461 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
23463 (grub_cmd_initrd): Likewise.
23464 * util/grub.d/10_linux.in (linux_entry): Print message indicating
23465 that Linux ${version} is being loaded. Likewise for initrd.
23467 2010-01-09 Carles Pina i Estany <carles@pina.cat>
23469 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
23471 2010-01-08 Carles Pina i Estany <carles@pina.cat>
23473 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
23474 (GRUB_MOD_INIT): Gettextizze.
23475 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
23476 (GRUB_MOD_INIT): Gettextizze.
23477 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
23478 (grub_cmd_linux): Capitalise Linux.
23479 (GRUB_MOD_INIT): Gettextizze.
23480 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
23481 (grub_cmd_linux): Capitalise Linux.
23482 (GRUB_MOD_INIT): Gettextizze.
23483 * loader/i386/linux.c: Include `<grub/i18n.h>'.
23484 (grub_cmd_linux): Capitalise Linux.
23485 (GRUB_MOD_INIT): Gettextizze.
23486 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
23487 (GRUB_MOD_INIT): Gettextizze.
23488 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
23489 (grub_cmd_linux): Capitalise Linux.
23490 (GRUB_MOD_INIT): Gettextizze.
23491 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
23492 (grub_cpu_xnu_init): Gettextizze.
23493 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
23494 (GRUB_MOD_INIT): Gettextizze.
23495 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
23496 (GRUB_MOD_INIT): Gettextizze.
23497 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
23498 (grub_linux_load64): Capitalise Linux.
23499 (GRUB_MOD_INIT): Gettextizze.
23500 * loader/xnu.c: Include `<grub/i18n.h>'.
23501 (GRUB_MOD_INIT): Gettextizze.
23502 * po/POTFILES: Add `loader/efi/appleloader.c',
23503 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
23504 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
23505 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
23506 `loader/i386/xnu.c', `loader/multiboot_loader.c',
23507 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
23508 and `loader/xnu.c'.
23510 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
23512 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
23514 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
23516 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
23517 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
23518 * util/mkisofs/mkisofs.c (main): Readjust --version output.
23520 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
23522 Reset Multiboot 2 support. New loader implements the draft in
23523 /branches/multiboot2 and shares as much code as possible with the
23524 production Multiboot 1 implementation.
23526 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
23527 * loader/multiboot2.c: Likewise.
23528 * loader/i386/multiboot_helper.S: Likewise.
23529 * include/multiboot2.h: Replace with latest version from the draft
23530 in /branches/multiboot2.
23532 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
23533 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
23534 and `loader/multiboot2.c'.
23535 (pkglib_MODULES): Add `multiboot2.mod'.
23536 (multiboot2_mod_SOURCES): New variable.
23537 (multiboot2_mod_LDFLAGS): Likewise.
23538 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
23540 * conf/i386-pc.rmk: Likewise.
23542 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
23543 (multiboot_mod_SOURCES): Remove variable.
23544 (multiboot_mod_LDFLAGS): Likewise.
23545 (multiboot_mod_CFLAGS): Likewise.
23547 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
23548 `<multiboot2.h>' instead of `<multiboot.h>'.
23549 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
23550 (MULTIBOOT_HEADER_MAGIC): New macros.
23552 * loader/multiboot_loader.c (module_version_status): Remove variable.
23553 (find_multi_boot2_header): Remove function.
23554 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
23555 logic. Always check for the Multiboot version we're compiling for.
23556 (grub_cmd_module_loader): Likewise.
23557 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
23558 command instead of `multiboot'.
23560 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
23562 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
23563 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
23566 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
23567 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
23569 Fix breakage introduced with previous commit.
23571 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
23573 * normal/handler.c (read_handler_list): Revert part of previous commit
23574 affecting this file.
23575 * normal/main.c (read_lists): Move read_handler_list() call back to ...
23576 (grub_normal_execute): ... here.
23578 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
23580 Merge prefix-redefinition-fix branch.
23582 * normal/autofs.c (read_fs_list): Make function capable of being
23583 run multiple times, gracefuly replacing the previous data
23585 * normal/dyncmd.c (read_command_list): Likewise.
23586 * normal/handler.c (read_handler_list): Likewise.
23587 * normal/main.c (read_lists): New function. Calls all the
23588 list reading functions.
23589 (grub_normal_execute): Use read_lists() instead of calling all
23590 list reading functions explicitly. Register read_lists() as a
23591 variable hook attached to ${prefix}.
23593 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
23595 Merge crypto branch.
23597 * Makefile.in (pkglib_DATA): Add crypto.lst.
23598 (crypto.lst): New target.
23599 * commands/hashsum.c: New file.
23600 * commands/password.c (check_password): Use grub_crypto_memcmp.
23601 * commands/password_pbkdf2.c: New file.
23602 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
23603 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
23604 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
23605 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
23606 -I$(srcdir)/lib/libgcrypt_wrap.
23607 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
23608 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
23609 password_pbkdf2.mod.
23610 (crypto_mod_SOURCES): New variable.
23611 (crypto_mod_CFLAGS): Likewise.
23612 (crypto_mod_LDFLAGS): Likewise.
23613 (hashsum_mod_SOURCES): New variable.
23614 (hashsum_mod_CFLAGS): Likewise.
23615 (hashsum_mod_LDFLAGS): Likewise.
23616 (pbkdf2_mod_SOURCES): New variable.
23617 (pbkdf2_mod_CFLAGS): Likewise.
23618 (pbkdf2_mod_LDFLAGS): Likewise.
23619 (password_pbkdf2_mod_SOURCES): New variable.
23620 (password_pbkdf2_mod_CFLAGS): Likewise.
23621 (password_pbkdf2_mod_LDFLAGS): Likewise.
23622 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
23623 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
23624 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
23625 Include conf/gcry.rmk.
23626 * include/grub/auth.h: Rewritten.
23627 * include/grub/crypto.h: New file.
23628 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
23629 * include/grub/normal.h (read_crypto_list): New prototype.
23630 * lib/crypto.c: New file.
23631 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
23632 * lib/pbkdf2.c: Likewise.
23633 * normal/auth.c (grub_auth_strcmp): Removed.
23634 (grub_iswordseparator): Likewise.
23635 (grub_auth_strword): Likewise.
23636 (is_authenticated): Use grub_strword.
23637 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
23638 and grub_strword. Pass entered password to authentication callback.
23639 * normal/crypto.c: New file.
23640 * normal/main.c: Call read_crypto_list.
23641 * util/grub-mkpasswd-pbkdf2.c: New file.
23642 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
23644 2010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
23646 Fix descent and ascent calculation.
23648 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
23649 (options): New option "asce".
23651 (add_char): Ignore invalid glyphs for descent calculation.
23652 Calculate ascent from actual content.
23653 (print_glyphs): Use 'asce'.
23654 (write_font): Likewise. Allow ascent override.
23655 (main): Handle "asce" option.
23657 2010-01-06 Carles Pina i Estany <carles@pina.cat>
23659 * kern/err.c: Include `<grub/i18n.h>'.
23660 (grub_print_error): Add full stop. Gettextizze.
23661 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
23662 (grub_bsd_load_elf): Capitalise ELF.
23663 (grub_cmd_freebsd_loadenv): Add `s' in error string.
23664 (grub_cmd_freebsd_module): Likewise.
23665 (grub_cmd_freebsd_module_elf): Likewise.
23666 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
23668 2010-01-06 Carles Pina i Estany <carles@pina.cat>
23670 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
23671 * commands/search_file.c (HELP_MESSAGE): New macro.
23672 * commands/search_label.c (HELP_MESSAGE): Likewise.
23673 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
23674 * po/POTFILES: Add `commands/search_file.c',
23675 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
23676 `commands/search.c'.
23678 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
23680 * config.rpath: Update from Gnulib.
23682 2010-01-05 Yves Blusseau <blusseau@zetam.org>
23684 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
23686 2010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
23688 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
23690 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
23692 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
23693 arguments to fread so that we get a return value in bytes, rather
23694 than something that will normally be rounded down to 0.
23695 Adjust error handling to avoid producing garbage when size_t is not
23696 the same size as long long.
23698 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
23700 * util/mkisofs/write.c (padblock_write): Check return value of
23703 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
23705 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
23708 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
23710 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
23712 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
23713 instead of manual alignment.
23714 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
23715 verbose). Avoid attempts to read past end of the device
23716 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
23717 but GRUB_DISK_CACHE_SIZE may exceed that).
23719 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
23721 * commands/crc.c (grub_cmd_crc): Abort on read errors.
23722 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
23725 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
23727 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
23729 (grub_efi_piwg_device_path): New structure
23730 (grub_efi_piwg_device_path_t): New type.
23731 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
23732 (devpath_1): Transform to a structure. All users updated.
23733 (devpath_2): Likewise.
23734 (devpath_3): Likewise.
23735 (devpath_4): Likewise.
23736 (devpath_5): Likewise.
23738 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
23740 * loader/efi/appleloader.c: Restored. Update all users.
23742 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
23744 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
23746 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
23747 (struct boot_blocklist): Move from here ...
23748 * include/grub/i386/pc/boot.h [ASM_FILE]
23749 (struct grub_boot_blocklist): ... to here. Update all users.
23750 (setup): Only initialize `start' member of `first_block'
23751 structure. Add assert() calls to verify the other members.
23753 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
23754 (generate_image): Fix broken blocklist length initialization.
23755 Add assert() call to verify blocklist `segment' field.
23757 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
23759 * loader/efi/appleloader.c: Remove. Update all users.
23761 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
23763 * boot/i386/pc/boot.S: Update copyright year.
23764 * boot/i386/pc/cdboot.S: Likewise.
23765 * boot/i386/pc/diskboot.S: Likewise.
23766 * boot/i386/pc/lnxboot.S: Likewise.
23767 * boot/i386/pc/pxeboot.S: Likewise.
23768 * bus/pci.c: Likewise.
23769 * commands/cmp.c: Likewise.
23770 * commands/help.c: Likewise.
23771 * commands/hexdump.c: Likewise.
23772 * commands/i386/pc/halt.c: Likewise.
23773 * commands/i386/pc/play.c: Likewise.
23774 * commands/i386/pc/vbeinfo.c: Likewise.
23775 * commands/ls.c: Likewise.
23776 * commands/test.c: Likewise.
23777 * disk/dmraid_nvidia.c: Likewise.
23778 * disk/i386/pc/biosdisk.c: Likewise.
23779 * disk/ieee1275/nand.c: Likewise.
23780 * disk/ieee1275/ofdisk.c: Likewise.
23781 * disk/lvm.c: Likewise.
23782 * disk/raid.c: Likewise.
23783 * disk/raid6_recover.c: Likewise.
23784 * disk/scsi.c: Likewise.
23785 * fs/affs.c: Likewise.
23786 * fs/cpio.c: Likewise.
23787 * fs/ext2.c: Likewise.
23788 * fs/hfs.c: Likewise.
23789 * fs/iso9660.c: Likewise.
23790 * fs/ntfs.c: Likewise.
23791 * fs/sfs.c: Likewise.
23792 * fs/udf.c: Likewise.
23793 * fs/ufs.c: Likewise.
23794 * fs/xfs.c: Likewise.
23795 * gencmdlist.sh: Likewise.
23796 * genmk.rb: Likewise.
23797 * include/grub/disk.h: Likewise.
23798 * include/grub/efi/api.h: Likewise.
23799 * include/grub/efi/efi.h: Likewise.
23800 * include/grub/efi/pe32.h: Likewise.
23801 * include/grub/elf.h: Likewise.
23802 * include/grub/fs.h: Likewise.
23803 * include/grub/i386/at_keyboard.h: Likewise.
23804 * include/grub/i386/pc/memory.h: Likewise.
23805 * include/grub/i386/pc/vbe.h: Likewise.
23806 * include/grub/i386/pci.h: Likewise.
23807 * include/grub/i386/tsc.h: Likewise.
23808 * include/grub/ieee1275/ieee1275.h: Likewise.
23809 * include/grub/ntfs.h: Likewise.
23810 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
23811 * include/grub/sparc64/libgcc.h: Likewise.
23812 * include/grub/symbol.h: Likewise.
23813 * include/grub/types.h: Likewise.
23814 * include/multiboot2.h: Likewise.
23815 * io/gzio.c: Likewise.
23816 * kern/device.c: Likewise.
23817 * kern/disk.c: Likewise.
23818 * kern/efi/efi.c: Likewise.
23819 * kern/efi/mm.c: Likewise.
23820 * kern/elf.c: Likewise.
23821 * kern/file.c: Likewise.
23822 * kern/i386/dl.c: Likewise.
23823 * kern/i386/pc/init.c: Likewise.
23824 * kern/i386/pc/startup.S: Likewise.
23825 * kern/ieee1275/ieee1275.c: Likewise.
23826 * kern/ieee1275/init.c: Likewise.
23827 * kern/main.c: Likewise.
23828 * kern/mm.c: Likewise.
23829 * kern/powerpc/dl.c: Likewise.
23830 * kern/sparc64/dl.c: Likewise.
23831 * kern/x86_64/dl.c: Likewise.
23832 * lib/hexdump.c: Likewise.
23833 * loader/efi/appleloader.c: Likewise.
23834 * loader/i386/ieee1275/linux.c: Likewise.
23835 * loader/i386/pc/chainloader.c: Likewise.
23836 * loader/i386/pc/linux.c: Likewise.
23837 * loader/i386/pc/multiboot2.c: Likewise.
23838 * loader/ieee1275/multiboot2.c: Likewise.
23839 * loader/multiboot2.c: Likewise.
23840 * loader/multiboot_loader.c: Likewise.
23841 * loader/powerpc/ieee1275/linux.c: Likewise.
23842 * normal/completion.c: Likewise.
23843 * normal/menu_entry.c: Likewise.
23844 * partmap/apple.c: Likewise.
23845 * util/grub.d/10_hurd.in: Likewise.
23846 * util/hostfs.c: Likewise.
23847 * video/readers/png.c: Likewise.
23849 2010-01-03 Colin Watson <cjwatson@ubuntu.com>
23851 * include/grub/misc.h (GNUC_PREREQ): New macro.
23852 (ATTRIBUTE_ERROR): New macro.
23853 * include/grub/list.h (grub_bad_type_cast_real): Use
23856 2010-01-03 Carles Pina i Estany <carles@pina.cat>
23858 * normal/menu_text.c (print_message): Change messages.
23860 2010-01-03 Carles Pina i Estany <carles@pina.cat>
23862 * normal/menu_entry.c (store_completion): Gettextizze.
23864 2010-01-03 Carles Pina i Estany <carles@pina.cat>
23866 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
23868 2010-01-03 Carles Pina i Estany <carles@pina.cat>
23870 * po/POTFILES: Sort correctly.
23872 2010-01-03 Carles Pina i Estany <carles@pina.cat>
23874 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
23875 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
23876 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
23878 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
23879 summary. Gettextizze the strings.
23880 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
23881 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
23882 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
23884 (GRUB_MOD_INIT): Remove command name from summary.
23885 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
23887 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
23888 * term/i386/pc/serial.c (options): Add full stops.
23889 (GRUB_MOD_INIT): Remove command name from the summary.
23891 2010-01-03 Carles Pina i Estany <carles@pina.cat>
23893 * commands/acpi.c: Gettextizze help strings and/or options. Include
23894 `grub/i18n.h' if needed.
23895 * commands/blocklist.c: Likewise.
23896 * commands/boot.c: Likewise.
23897 * commands/cat.c: Likewise.
23898 * commands/cmp.c: Likewise.
23899 * commands/configfile.c: Likewise.
23900 * commands/crc.c: Likewise.
23901 * commands/date.c: Likewise.
23902 * commands/echo.c: Likewise.
23903 * commands/efi/fixvideo.c: Likewise.
23904 * commands/efi/loadbios.c: Likewise.
23905 * commands/gptsync.c: Likewise.
23906 * commands/halt.c: Likewise.
23907 * commands/handler.c: Likewise.
23908 * commands/hdparm.c: Likewise.
23909 * commands/hexdump.c: Likewise.
23910 * commands/i386/cpuid.c: Likewise.
23911 * commands/i386/pc/drivemap.c: Likewise.
23912 * commands/i386/pc/halt.c: Likewise.
23913 * commands/i386/pc/pxecmd.c: Likewise.
23914 * commands/i386/pc/vbeinfo.c: Likewise.
23915 * commands/i386/pc/vbetest.c: Likewise.
23916 * commands/ieee1275/suspend.c: Likewise.
23917 * commands/keystatus.c: Likewise.
23918 * commands/loadenv.c: Likewise.
23919 * commands/ls.c: Likewise.
23920 * commands/lsmmap.c: Likewise.
23921 * commands/lspci.c: Likewise.
23922 * commands/memrw.c: Likewise.
23923 * commands/minicmd.c: Likewise.
23924 * commands/parttool.c: Likewise.
23925 * commands/password.c: Likewise.
23926 * commands/probe.c: Likewise.
23927 * commands/read.c: Likewise.
23928 * commands/reboot.c: Likewise.
23929 * commands/search.c: Likewise.
23930 * commands/sleep.c: Likewise.
23931 * commands/test.c: Likewise.
23932 * commands/true.c: Likewise.
23933 * commands/usbtest.c: Likewise.
23934 * commands/videotest.c: Likewise.
23935 * commands/xnu_uuid.c: Likewise.
23936 * disk/loopback.c: Likewise.
23937 * hello/hello.c: Likewise.
23938 * loader/i386/bsd.c: Likewise.
23939 * term/i386/pc/serial.c: Likewise.
23940 * po/POTFILES: Add new files.
23942 2010-01-02 Colin Watson <cjwatson@ubuntu.com>
23944 * term/i386/pc/at_keyboard.c
23945 (keyboard_controller_wait_untill_ready): Rename to ...
23946 (keyboard_controller_wait_until_ready): ... this. Update all users.
23948 2010-01-01 Carles Pina i Estany <carles@pina.cat>
23950 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
23951 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
23952 string using string width.
23953 * normal/menu_text.c (grub_print_message_indented): Use
23954 grub_print_spaces and not print_spaces.
23955 (print_timeout): Likewise.
23956 (print_spaces): Move to...
23957 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
23959 2010-01-01 Robert Millan <rmh.grub@aybabtu.com>
23961 Import from Gnulib.
23963 * gnulib/getdelim.c: New file.
23964 * gnulib/getline.c: Likewise.
23966 2009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
23968 * include/grub/list.h (grub_assert_fail): Removed.
23969 (grub_bad_type_cast_real): New function.
23970 (grub_bad_type_cast): New macro.
23971 (GRUB_AS_LIST): Use grub_bad_type_cast.
23972 (GRUB_AS_LIST_P): Likewise.
23973 (GRUB_AS_NAMED_LIST): Likewise.
23974 (GRUB_AS_NAMED_LIST_P): Likewise.
23975 (GRUB_AS_PRIO_LIST): Likewise.
23976 (GRUB_AS_PRIO_LIST_P): Likewise.
23977 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
23979 2009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
23981 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
23984 2009-12-29 Robert Millan <rmh.grub@aybabtu.com>
23986 * configure.ac: Check for TARGET_CFLAGS initialization before we
23987 initialize it ourselves (sigh).
23988 Move a few modifications to TARGET_CFLAGS to be unconditional
23989 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
23992 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
23993 * term/i386/pc/at_keyboard.c
23994 (keyboard_controller_wait_untill_ready): Likewise.
23995 (keyboard_controller_led): Rename `led_status' paramter to avoid
23998 2009-12-28 Carles Pina i Estany <carles@pina.cat>
24000 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
24003 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
24005 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
24007 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
24009 * normal/menu_text.c (grub_print_message_indented): Prevent
24010 past-the-end-of-array dereference.
24012 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
24014 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
24015 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
24017 2009-12-27 Carles Pina i Estany <carles@pina.cat>
24019 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
24020 * normal/main.c (grub_normal_read_line): Remove a space from the
24023 2009-12-27 Carles Pina i Estany <carles@pina.cat>
24025 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
24026 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
24027 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
24028 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
24029 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
24030 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
24031 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
24033 2009-12-26 Carles Pina i Estany <carles@pina.cat>
24035 * video/readers/jpeg.c (cmd): Declare.
24036 (grub_cmd_jpegtest): Use `grub_command_t' type.
24037 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
24039 (GRUB_MOD_FINI): Use `cmd' to unregister.
24040 * video/readers/png.c (cmd): Declare.
24041 (grub_cmd_pngtest): Use `grub_command_t' type.
24042 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
24044 (GRUB_MOD_FINI): Use `cmd' to unregister.
24045 * video/readers/tga.c (cmd): Declare.
24046 (grub_cmd_tgatest): Use `grub_command_t' type.
24047 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
24049 (GRUB_MOD_FINI): Use `cmd' to unregister.
24051 2009-12-26 Carles Pina i Estany <carles@pina.cat>
24053 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
24055 * kern/corecmd.c (grub_register_core_commands): Likewise.
24056 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
24057 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
24058 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
24059 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
24060 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
24061 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
24062 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
24063 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
24064 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
24065 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
24066 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
24067 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
24068 * normal/handler.c (insert_handler): Likewise.
24069 * normal/main.c (GRUB_MOD_INIT): Likewise.
24070 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
24072 2009-12-26 Carles Pina i Estany <carles@pina.cat>
24074 * commands/help.c (grub_cmd_help): Print the command name before the
24076 (GRUB_MOD_INIT): Remove command name from the summary.
24077 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
24079 * lib/arg.c (find_long): Print the command name before the summary.
24080 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
24082 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
24083 * commands/cat.c (GRUB_MOD_INIT): Likewise.
24084 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
24085 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
24086 * commands/crc.c (GRUB_MOD_INIT): Likewise.
24087 * commands/date.c (GRUB_MOD_INIT): Likewise.
24088 * commands/echo.c (GRUB_MOD_INIT): Likewise.
24089 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
24090 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
24091 * commands/handler.c (GRUB_MOD_INIT): Likewise.
24092 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
24093 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
24094 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
24095 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
24096 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
24097 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
24098 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
24099 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
24100 * commands/ls.c (GRUB_MOD_INIT): Likewise.
24101 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
24102 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
24103 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
24104 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
24105 * commands/password.c (GRUB_MOD_INIT): Likewise.
24106 * commands/probe.c (GRUB_MOD_INIT): Likewise.
24107 * commands/read.c (GRUB_MOD_INIT): Likewise.
24108 * commands/search.c (GRUB_MOD_INIT): Likewise.
24109 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
24110 * commands/test.c (GRUB_MOD_INIT): Likewise.
24111 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
24112 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
24113 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
24114 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
24115 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
24116 * lib/arg.c (GRUB_MOD_INIT): Likewise.
24117 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
24118 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
24119 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
24120 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
24121 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
24122 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
24123 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
24124 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
24126 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
24128 Use search command for preliminar UUID search.
24130 * commands/search.c: Split into ...
24131 * commands/search_wrap.c: ...this
24132 * commands/search.c: ...and this.
24133 * commands/search_file.c: New file.
24134 * commands/search_label.c: New file.
24135 * commands/search_uuid.c: New file.
24136 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
24137 Add commands/search_wrap.c, commands/search_file.c,
24138 commands/search_label.c and commands/search_uuid.c.
24139 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
24140 (search_mod_SOURCES): Set to commands/search_wrap.c.
24141 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
24143 (search_fs_file_mod_SOURCES): New variable.
24144 (search_fs_file_mod_CFLAGS): Likewise.
24145 (search_fs_file_mod_LDFLAGS): Likewise.
24146 (search_label_mod_SOURCES): Likewise.
24147 (search_label_mod_CFLAGS): Likewise.
24148 (search_label_mod_LDFLAGS): Likewise.
24149 (search_fs_uuid_mod_SOURCES): New variable.
24150 (search_fs_uuid_mod_CFLAGS): Likewise.
24151 (search_fs_uuid_mod_LDFLAGS): Likewise.
24152 (fs_file_mod_SOURCES): Removed.
24153 (fs_file_mod_CFLAGS): Likewise.
24154 (fs_file_mod_LDFLAGS): Likewise.
24155 (fs_uuid_mod_SOURCES): Removed.
24156 (fs_uuid_mod_CFLAGS): Likewise.
24157 (fs_uuid_mod_LDFLAGS): Likewise.
24158 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
24159 Set to util/grub-install.in.
24160 * disk/fs_file.c: Removed.
24161 * disk/fs_uuid.c: Likewise.
24162 * include/grub/search.h: New file.
24163 * util/grub-install.in: Handle sparc64.
24164 Create and use load.cfg.
24165 * util/sparc64/ieee1275/grub-install.in: Removed.
24167 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
24169 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
24170 Ignore return status if CF is cleared.
24171 (grub_biosdisk_get_diskinfo_standard): Likewise.
24173 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
24175 * term/i386/pc/at_keyboard.c
24176 (keyboard_controller_wait_untill_ready): New function.
24177 (grub_keyboard_controller_write, grub_keyboard_controller_read)
24178 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
24179 for keyboard polling, rather than duplicate the same loop. This
24180 saves a few bytes in code size.
24182 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
24184 Support for (pxe[:server[:gateway]]) syntax and
24185 use environment variable for PXE.
24187 * commands/i386/pc/pxecmd.c (options): Removed.
24188 (print_ip): Removed.
24189 (grub_cmd_pxe): Removed
24190 (grub_cmd_pxe_unload): New function.
24191 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
24192 (grub_pxe_your_ip): Made static.
24193 (grub_pxe_default_server_ip): Likewise.
24194 (grub_pxe_default_gateway_ip): Likewise.
24195 (grub_pxe_blksize): Likewise.
24196 (parse_ip): New function.
24197 (grub_pxe_open): Support server and gateway specification.
24198 (grub_pxe_close): Free disk->data.
24199 (grub_pxefs_open): Use disk->data.
24200 (grub_pxefs_read): Likewise.
24201 (grub_env_write_readonly): New function.
24202 (set_mac_env): Likewise.
24203 (set_env_limn_ro): Likewise.
24204 (parse_dhcp_vendor): Likewise.
24205 (grub_pxe_detect): Set the environment variables.
24206 (set_ip_env): New function.
24207 (write_ip_env): Likewise.
24208 (grub_env_write_pxe_default_server): Likewise.
24209 (grub_env_write_pxe_default_gateway): Likewise.
24210 (grub_env_write_pxe_blocksize): Likewise.
24211 (GRUB_MOD_INIT(pxe)): Set environment variables.
24212 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
24213 (grub_pxe_mac_addr_t): ... this. All users updated.
24214 (grub_pxe_your_ip): Removed.
24215 (grub_pxe_server_ip): Likewise.
24216 (grub_pxe_gateway_ip): Likewise.
24217 (grub_pxe_blksize): Likewise.
24219 2009-12-25 Carles Pina i Estany <carles@pina.cat>
24221 * commands/help.c: Include `<grub/i18n.h>'.
24222 (grub_cmd_help): Gettextizze.
24223 (GRUB_MOD_INIT): Likewise.
24224 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
24225 (GRUB_MOD_INIT): Gettextizze.
24226 * commands/search.c: Include `<grub/i18n.h>'.
24227 (options): Gettextizze.
24228 (GRUB_MOD_INIT): Gettextizze.
24229 * lib/arg.c: Include `<grub/i18n.h>'.
24230 (help_options): Gettextizze.
24231 (find_long): Likewise.
24232 (grub_arg_show_help): Likewise.
24233 * normal/dyncmd.c: Include `<grub/i18n.h>'.
24234 (read_command_list): Gettextizze.
24235 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
24236 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
24238 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
24240 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
24241 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
24242 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
24243 (led_status): New variable.
24244 (keyboard_controller_led): New function.
24245 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
24246 update led status for caps lock, num lock and scroll lock.
24248 2009-12-25 Felix Zielcke <fzielcke@z-51.de>
24250 * util/hostdisk.c (open_device): Fix a comment.
24252 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
24254 * util/grub-install.in (host_os): New variable.
24255 * util/i386/efi/grub-install.in (host_os): Likewise.
24257 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
24259 * util/mkisofs/write.c (padblock_write): Abort when given an
24260 excedingly large embed image, instead of silently truncating it.
24262 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
24264 * include/multiboot.h: Indentation fixes.
24266 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
24268 * include/multiboot.h (struct multiboot_aout_symbol_table)
24269 (struct multiboot_elf_section_header_table): New structure
24270 declarations (stolen from GRUB Legacy).
24271 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
24274 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
24275 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
24278 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
24280 * include/multiboot.h: Make comments src2texi-friendly.
24282 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
24284 For consistency with [multiboot]/docs/boot.S.
24286 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
24287 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
24288 (MULTIBOOT_MAGIC2): Rename from this ...
24289 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
24291 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
24293 * include/multiboot.h: Remove `<grub/types.h>'.
24294 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
24295 types. Update all users.
24297 2009-12-25 Carles Pina i Estany <carles@pina.cat>
24299 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
24300 `couldn't' and `can not' by `cannot'.
24301 * commands/i386/pc/drivemap.c: Likewise.
24302 * disk/ata.c: Likewise.
24303 * disk/ieee1275/nand.c: Likewise.
24304 * fs/affs.c: Likewise.
24305 * fs/fat.c: Likewise.
24306 * fs/hfs.c: Likewise.
24307 * fs/hfsplus.c: Likewise.
24308 * fs/iso9660.c: Likewise.
24309 * fs/jfs.c: Likewise.
24310 * fs/minix.c: Likewise.
24311 * fs/reiserfs.c: Likewise.
24312 * fs/sfs.c: Likewise.
24313 * fs/udf.c: Likewise.
24314 * fs/ufs.c: Likewise.
24315 * fs/xfs.c: Likewise.
24316 * loader/powerpc/ieee1275/linux.c: Likewise.
24317 * loader/sparc64/ieee1275/linux.c: Likewise.
24318 * util/grub-probe.c: Likewise.
24319 * util/misc.c: Likewise.
24321 2009-12-24 Carles Pina i Estany <carles@pina.cat>
24323 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
24325 * commands/acpi.c: Likewise.
24326 * commands/blocklist.c: Likewise.
24327 * commands/efi/loadbios.c: Likewise.
24328 * commands/i386/pc/drivemap.c: Likewise.
24329 * commands/loadenv.c: Likewise.
24330 * commands/memrw.c: Likewise.
24331 * commands/password.c: Likewise.
24332 * commands/videotest.c: Likewise.
24333 * disk/ata.c: Likewise.
24334 * disk/ata_pthru.c: Likewise.
24335 * disk/dmraid_nvidia.c: Likewise.
24336 * disk/ieee1275/nand.c: Likewise.
24337 * disk/ieee1275/ofdisk.c: Likewise.
24338 * disk/loopback.c: Likewise.
24339 * disk/lvm.c: Likewise.
24340 * disk/mdraid_linux.c: Likewise.
24341 * disk/raid.c: Likewise.
24342 * disk/raid6_recover.c: Likewise.
24343 * disk/scsi.c: Likewise.
24344 * efiemu/main.c: Likewise.
24345 * efiemu/mm.c: Likewise.
24346 * efiemu/pnvram.c: Likewise.
24347 * efiemu/symbols.c: Likewise.
24348 * font/font.c: Likewise.
24349 * fs/cpio.c: Likewise.
24350 * fs/hfsplus.c: Likewise.
24351 * fs/iso9660.c: Likewise.
24352 * fs/jfs.c: Likewise.
24353 * fs/minix.c: Likewise.
24354 * fs/ntfs.c: Likewise.
24355 * fs/ntfscomp.c: Likewise.
24356 * fs/reiserfs.c: Likewise.
24357 * fs/ufs.c: Likewise.
24358 * fs/xfs.c: Likewise.
24359 * gettext/gettext.c: Likewise.
24360 * include/grub/auth.h: Likewise.
24361 * kern/elf.c: Likewise.
24362 * kern/file.c: Likewise.
24363 * kern/ieee1275/init.c: Likewise.
24364 * kern/ieee1275/mmap.c: Likewise.
24365 * kern/ieee1275/openfw.c: Likewise.
24366 * kern/powerpc/dl.c: Likewise.
24367 * kern/sparc64/dl.c: Likewise.
24368 * lib/arg.c: Likewise.
24369 * loader/i386/bsd.c: Likewise.
24370 * loader/i386/bsdXX.c: Likewise.
24371 * loader/i386/efi/linux.c: Likewise.
24372 * loader/i386/efi/xnu.c: Likewise.
24373 * loader/i386/ieee1275/linux.c: Likewise.
24374 * loader/i386/linux.c: Likewise.
24375 * loader/i386/multiboot.c: Likewise.
24376 * loader/i386/pc/linux.c: Likewise.
24377 * loader/i386/pc/multiboot2.c: Likewise.
24378 * loader/i386/xnu.c: Likewise.
24379 * loader/ieee1275/multiboot2.c: Likewise.
24380 * loader/macho.c: Likewise.
24381 * loader/machoXX.c: Likewise.
24382 * loader/multiboot2.c: Likewise.
24383 * loader/multiboot_loader.c: Likewise.
24384 * loader/powerpc/ieee1275/linux.c: Likewise.
24385 * loader/sparc64/ieee1275/linux.c: Likewise.
24386 * loader/xnu.c: Likewise.
24387 * loader/xnu_resume.c: Likewise.
24388 * mmap/i386/pc/mmap.c: Likewise.
24389 * normal/menu_viewer.c: Likewise.
24390 * partmap/acorn.c: Likewise.
24391 * partmap/amiga.c: Likewise.
24392 * partmap/apple.c: Likewise.
24393 * script/lexer.c: Likewise.
24394 * term/gfxterm.c: Likewise.
24395 * term/i386/pc/serial.c: Likewise.
24396 * term/i386/pc/vga.c: Likewise.
24397 * term/ieee1275/ofconsole.c: Likewise.
24398 * term/terminfo.c: Likewise.
24399 * video/bitmap.c: Likewise.
24400 * video/efi_gop.c: Likewise.
24401 * video/efi_uga.c: Likewise.
24402 * video/fb/video_fb.c: Likewise.
24403 * video/i386/pc/vbe.c: Likewise.
24404 * video/readers/tga.c: Likewise.
24405 * video/video.c: Likewise.
24407 2009-12-23 Felix Zielcke <fzielcke@z-51.de>
24409 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
24410 * commands/lspci.c: Likewise.
24411 * commands/probe.c: Likewise.
24412 * commands/xnu_uuid.c: Likewise.
24413 * conf/i386-coreboot.rmk: Likewise.
24414 * conf/i386-efi.rmk: Likewise.
24415 * conf/i386-ieee1275.rmk: Likewise.
24416 * conf/i386-pc.rmk: Likewise.
24417 * conf/powerpc-ieee1275.rmk: Likewise.
24418 * conf/sparc64-ieee1275.rmk: Likewise.
24419 * conf/x86_64-efi.rmk: Likewise.
24420 * fs/i386/pc/pxe.c: Likewise.
24421 * gettext/gettext.c: Likewise.
24422 * include/grub/efi/graphics_output.h: Likewise.
24423 * include/grub/i386/pc/memory.h: Likewise.
24424 * kern/env.c: Likewise.
24425 * kern/i386/qemu/startup.S: Likewise.
24426 * lib/i386/pc/biosnum.c: Likewise.
24427 * lib/i386/relocator.c: Likewise.
24428 * lib/i386/relocator_asm.S: Likewise.
24429 * lib/relocator.c: Likewise.
24430 * loader/i386/bsd.c: Likewise.
24431 * loader/i386/multiboot.c: Likewise.
24432 * loader/i386/pc/chainloader.c: Likewise.
24433 * loader/i386/xnu.c: Likewise.
24434 * loader/xnu.c: Likewise.
24435 * normal/main.c: Likewise.
24436 * normal/menu_text.c: Likewise.
24437 * util/getroot.c: Likewise.
24438 * util/grub-mkconfig_lib.in: Likewise.
24439 * util/grub.d/00_header.in: Likewise.
24440 * util/i386/pc/grub-mkimage.c: Likewise.
24441 * util/mkisofs/eltorito.c: Likewise.
24442 * util/mkisofs/exclude.h: Likewise.
24443 * util/mkisofs/hash.c: Likewise.
24444 * util/mkisofs/iso9660.h: Likewise.
24445 * util/mkisofs/joliet.c: Likewise.
24446 * util/mkisofs/mkisofs.c: Likewise.
24447 * util/mkisofs/mkisofs.h: Likewise.
24448 * util/mkisofs/multi.c: Likewise.
24449 * util/mkisofs/name.c: Likewise.
24450 * util/mkisofs/rock.c: Likewise.
24451 * util/mkisofs/tree.c: Likewise.
24452 * util/mkisofs/write.c: Likewise.
24453 * video/efi_gop.c: Likewise.
24455 2009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
24457 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
24460 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
24462 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
24463 * genmk.rb (class SCRIPT): Modify the target file instead of source.
24465 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
24467 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
24468 (GRUB_MOD_INIT(memrw)): Update help line.
24470 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
24472 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
24473 Use grub_extcmd_t. All users updated.
24474 (options): New variable.
24475 (grub_cmd_read): Restructure for readability. Support "-v" option.
24476 (grub_cmd_write): Restructure for readability.
24478 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
24480 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
24482 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
24484 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
24485 with the actual contents of the correspondending make variable.
24486 * util/grub-mkrescue.in (pkglib_DATA): New variable.
24487 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
24488 specifying `*.lst' and `efiemu??.o'
24490 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
24492 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
24493 after function name.
24494 Noticed by Rene Engelhard <rene@debian.org>.
24496 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
24498 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
24499 (options): New variable.
24500 (iospace): Likewise.
24501 (grub_lspci_iter): List IO spaces if "-i" was given.
24502 (grub_cmd_lspci): Parse options.
24503 (GRUB_MOD_INIT(lspci)): Use extcmd.
24504 (GRUB_MOD_FINI(lspci)): Likewise.
24506 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
24508 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
24509 `function' keyword.
24510 Patch by Tony Mancill <tmancill@debian.org>.
24512 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
24514 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
24515 (grub_uhci_portstatus): Likewise.
24516 (grub_uhci_portstatus): Add necessary delay.
24517 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
24519 2009-12-21 Carles Pina i Estany <carles@pina.cat>
24521 * commands/acpi.c (options): Fix capitalizations and/or full stops.
24522 (GRUB_MOD_INIT): Likewise.
24523 * commands/boot.c (GRUB_MOD_INIT): Likewise.
24524 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
24525 * commands/echo.c (options): Fix capitalizations and/or full stops.
24526 * commands/efi/loadbios.c (enable_rom_area): Likewise.
24527 (enable_rom_area): Likewise.
24528 (GRUB_MOD_INIT): Likewise.
24529 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
24530 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
24531 * commands/handler.c (GRUB_MOD_INIT): Likewise.
24532 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
24533 * commands/hexdump.c (options): Likewise.
24534 * commands/i386/cpuid.c (options): Likewise.
24535 (GRUB_MOD_INIT): Likewise.
24536 * commands/i386/pc/drivemap.c (options): Likewise.
24537 (GRUB_MOD_INIT): Likewise.
24538 * commands/i386/pc/halt (options): Likewise.
24539 (GRUB_MOD_INIT): Likewise.
24540 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
24541 * commands/i386/pc/pxecmd.c (options): Likewise.
24542 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
24543 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
24544 * commands/keystatus.c (options): Likewise.
24545 (GRUB_MOD_INIT): Likewise.
24546 * commands/loadenv.c (options): Likewise.
24547 * commands/ls.c (options): Likewise.
24548 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
24549 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
24550 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
24551 * commands/parttool.c (helpmsg): Likewise.
24552 * commands/probe.c (options): Likewise.
24553 * commands/read.c (GRUB_MOD_INIT): Likewise.
24554 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
24555 * commands/search.c (options): Likewise.
24556 * commands/sleep.c (options): Likewise.
24557 * commands/test.c (GRUB_MOD_INIT): Likewise.
24558 * commands/true.c (GRUB_MOD_INIT): Likewise.
24559 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
24560 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
24561 * lib/arg.c (help_options): Likewise.
24562 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
24564 * po/POTFILES: Add `commands/loadenv.c'.
24566 2009-12-21 Felix Zielcke <fzielcke@z-51.de>
24568 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
24569 instead of specifying them explicit.
24571 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
24573 * NEWS: Add grub-probe support for GNU/Hurd.
24575 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
24577 * NEWS: gettext was added after 1.97.
24579 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
24581 * util/mkisofs/msdos_partition.h: New file (based on
24582 include/grub/msdos_partition.h).
24583 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
24584 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
24585 (ld_options, main): Recognize --protective-msdos-label.
24586 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
24587 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
24588 (padblock_write): If `use_protective_msdos_label' is set, patch a
24589 protective DOS-style label in the output image.
24591 * util/grub-mkrescue.in: Use --protective-msdos-label.
24593 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
24595 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
24598 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
24600 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
24602 (ld_options, main): Recognize `--embedded-boot'.
24603 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
24605 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
24606 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
24607 (padblock_write): Likewise. Rewrite to support embedded boot image.
24609 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
24610 for BIOS-based disk boot instead of only ElTorito.
24612 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
24614 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
24615 build (not needed for bootstrap).
24617 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
24619 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
24620 from i386-pc build (not needed for bootstrap).
24621 Rewrite a pair of strings.
24623 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
24625 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
24627 2009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
24629 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
24631 2009-12-21 Andreas Born <futur.andy@googlemail.com>
24633 * kern/env.c (grub_env_context_open): Mark exported variable for
24636 2009-12-21 Andreas Born <futur.andy@googlemail.com>
24638 * kern/env.c (grub_env_export): Create nonexistent variables before
24641 2009-12-20 Carles Pina i Estany <carles@pina.cat>
24643 * include/grub/auth.h: Include `<grub/i18n.h>'.
24644 (GRUB_GET_PASSWORD): Gettextizze string.
24645 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
24647 (grub_utf8_to_ucs4_alloc): Fix indentation.
24648 (grub_print_ucs4): Likewise.
24649 (grub_getstringwidth): Likewise.
24650 (print_message_indented): New declaration.
24651 * normal/auth.c: Include `<grub/i18n.h>'.
24652 (grub_auth_check_authentication): Gettexttize string.
24653 * normal/cmdline.c: Include `<grub/i18n.h>'.
24654 (grub_cmdline_get): Gettextizze.
24655 * normal/color.c: Include `<grub/i18n.h>'.
24656 (grub_parse_color_name_pair): Gettexttize strings.
24657 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
24658 string (use `print_message_indented').
24659 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
24660 `include/grub/normal.h'.
24661 (print_message_indented): Renamed to ...
24662 (grub_print_message_indented): ... this. Remove `static' qualifer (now
24663 used in normal/main.c).
24664 (print_message): Use `grub_print_message_indented' instead of
24665 `print_message_indented'.
24666 (print_timeout): Likewise.
24667 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
24668 (grub_normal_print_device_info): Gettexttize strings.
24669 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
24671 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
24673 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
24674 of arguments. Return number of tokens and not arguments. All users
24677 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
24679 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
24680 non-MSDOS paritions.
24682 2009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
24684 * include/grub/types.h (UNUSED): Removed since it conflicts with
24685 NetBSD headers. All users changed to direct __attribute__ ((unused)).
24686 Reported by Grégoire Sutre.
24688 2009-12-19 Carles Pina i Estany <carles@pina.cat>
24690 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
24691 (grub_print_ucs4_alloc): Likewise.
24692 (grub_getstringwidth): Likewise.
24693 * normal/main.c (grub_normal_init_page): Gettextize version string.
24694 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
24695 (getstringwidth): Renamed to ...
24696 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
24697 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
24698 (grub_print_ucs4): Remove `static' qualifer (now used in
24700 * po/POTFILES: Add normal/main.c.
24702 2009-12-19 Carles Pina i Estany <carles@pina.cat>
24704 * normal/menu_text.c (STANDARD_MARGIN): New macro.
24705 (print_message_indented): Add `margin_left' and `margin_right'
24707 (print_message): Update `print_message_indented' calls. Adds '\n' to the
24709 (print_timeout): Use `print_message_indented' to print the message.
24710 Deletes `second_stage' parameter.
24711 (run_menu): Update `print_timeout' calls.
24713 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
24715 Fix console palette on OpenFirmware.
24717 * term/ieee1275/ofconsole.c (MAX): Removed.
24718 (colors): Redone based on VGA palette.
24719 (grub_ofconsole_setcolor): Discard brightness bit since only 8
24720 colors are supported.
24721 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
24723 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
24725 Fix potential EfiEmu double prepare.
24727 * efiemu/main.c (prepared): New variable
24728 (grub_efiemu_unload): Set prepare to '0'.
24729 (grub_efiemu_prepare): Return if already prepared. Set prepared.
24731 set_virtual_address_map support.
24733 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
24735 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
24737 (grub_efiemu_crc32): Likewise.
24738 (grub_efiemu_crc64): Likewise.
24739 (grub_efiemu_set_virtual_address_map): Likewise.
24740 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
24742 (grub_autoefi_set_virtual_address_map): Likewise.
24743 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
24744 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
24745 Restructure flow to accomodate it.
24746 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
24747 (grub_efiemu_crc): Recompute CRC32.
24748 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
24749 (efiemu_ptv_relocated): ... this. Made global. All users updated.
24750 * efiemu/symbols.c (relocated_handle): New variable.
24751 (grub_efiemu_free_syms): Free relocated_handle.
24752 (grub_efiemu_alloc_syms): Allocate relocated_handle.
24753 (grub_efiemu_write_sym_markers): New function.
24754 (grub_efiemu_set_virtual_address_map): Likewise.
24756 Newer XNU parameters.
24758 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
24759 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
24760 (grub_xnu_fill_devicetree): New prototype.
24761 (grub_xnu_heap_real_start): New variable.
24762 * loader/xnu.c (get_name_ptr): New function.
24763 (grub_xnu_load_driver): Fill namelen and name.
24765 64-bit xnu support.
24767 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
24768 and 'loader/macho64.c'.
24769 * conf/i386-pc.rmk: Likewise.
24770 * conf/x86_64-efi.rmk: Likewise.
24771 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
24772 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
24773 * include/grub/macho.h (grub_macho_segment64): New structure.
24774 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
24775 (grub_macho_size32): ... to this.
24776 (grub_macho32_get_entry_point): Renamed from ...
24777 (grub_macho_get_entry_point32): ... to this.
24778 (grub_macho_contains_macho64): New prototype.
24779 (grub_macho_size64): Likewise.
24780 (grub_macho_get_entry_point64): Likewise.
24781 (grub_macho32_load): Renamed from ...
24782 (grub_macho_load32): ... to this.
24783 (grub_macho32_filesize): Renamed from ...
24784 (grub_macho_filesize32): ... to this.
24785 (grub_macho32_readfile): Renamed from ...
24786 (grub_macho_readfile32): ... to this.
24787 (grub_macho_filesize64): New prototype.
24788 (grub_macho_readfile64): Likewise.
24789 (grub_macho_parse32): Likewise.
24790 (grub_macho_parse64): Likewise.
24791 * loader/macho.c: Split into ...
24792 * loader/machoXX.c: ... and this. Replace 32 with XX.
24793 * loader/macho32.c: New file.
24794 * loader/macho64.c: Likewise.
24795 * loader/xnu.c (grub_xnu_is_64bit): New variable.
24796 (grub_cmd_xnu_kernel): Make 32-bit only.
24797 (grub_cmd_xnu_kernel64): New function.
24798 (grub_xnu_load_driver): Support Mach-O 64.
24799 (grub_cmd_xnu_mkext): Likewise.
24800 * util/grub.d/30_os-prober.in (osx_entry): New function.
24801 Generate entries for 64-bit boot too.
24803 Eliminate ad-hoc tree format in XNU and EfiEmu.
24805 * efiemu/main.c (grub_efiemu_prepare): Update comment.
24806 * efiemu/pnvram.c: Rewritten to use environment variables.
24809 Inline utf16_to_utf8.
24811 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
24812 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
24814 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
24816 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
24817 * commands/usbtest.c (grub_usb_get_string): ... move here.
24818 (usb_print_str): Fix error handling.
24819 * include/grub/usb.h (grub_usb_get_string): Remove.
24821 UTF-8 to UTF-16 transformation.
24823 * conf/common.rmk (pkglib_MODULES): Add charset.mod
24824 (charset_mod_SOURCES): New variable.
24825 (charset_mod_CFLAGS): Likewise.
24826 (charset_mod_LDFLAGS): Likewise.
24827 * include/grub/utf.h: New file.
24828 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
24830 Support for device properties.
24832 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
24833 (grub_xnu_devprop_device_header): Likewise.
24834 (grub_xnu_devprop_device_descriptor): Likewise.
24835 (grub_xnu_devprop_add_device): New prototype.
24836 (grub_xnu_devprop_remove_device): Likewise.
24837 (grub_xnu_devprop_remove_property): Likewise.
24838 (grub_xnu_devprop_add_property_utf8): Likewise.
24839 (grub_xnu_devprop_add_property_utf16): Likewise.
24840 (grub_cpu_xnu_init): Likewise.
24841 (grub_cpu_xnu_fini): Likewise.
24842 (grub_cpu_xnu_unload): Likewise.
24843 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
24844 (property_descriptor): Likewise.
24845 (devices): New variable.
24846 (grub_xnu_devprop_remove_property): New function.
24847 (grub_xnu_devprop_add_device): Likewise.
24848 (grub_xnu_devprop_remove_device): Likewise.
24849 (grub_xnu_devprop_add_property): Likewise.
24850 (grub_xnu_devprop_add_property_utf8): Likewise.
24851 (grub_xnu_devprop_add_property_utf16): Likewise.
24852 (hextoval): Likewise.
24853 (grub_cpu_xnu_fill_devprop): Likewise.
24854 (grub_cmd_devprop_load): Likewise.
24855 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
24856 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
24857 (cmd_devprop_load): New variable.
24858 (grub_cpu_xnu_init): New function.
24859 (grub_cpu_xnu_fini): Likewise.
24860 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
24861 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
24862 (grub_cmd_xnu_devtree): Likewise.
24863 (hextoval): New function.
24864 (unescape): Likewise.
24865 (grub_xnu_fill_devicetree): Likewise.
24867 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
24868 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
24870 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
24872 Workaround for broken ATI VBE.
24874 * video/i386/pc/vbe.c (last_set_mode): New variable.
24875 (grub_vbe_set_video_mode): Set 'last_set_mode'.
24876 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
24877 (grub_video_vbe_setup): Don't check for reserved flag.
24879 2009-12-17 Felix Zielcke <fzielcke@z-51.de>
24881 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
24882 the `find' command.
24884 2009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
24886 UUID support for HFS.
24888 * fs/hfs.c (grub_hfs_uuid): New function.
24889 (grub_hfs_fs): New value .uuid.
24890 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
24892 2009-12-14 Felix Zielcke <fzielcke@z-51.de>
24894 Fix a segfault with parsing unknown long options.
24896 * util/grub-mkrelpath.c (options): Zero terminate it.
24898 2009-12-13 Carles Pina i Estany <carles@pina.cat>
24900 * include/grub/misc.h (grub_puts): New declaration.
24901 (grub_puts_): Likewise.
24902 * kern/misc.c (grub_puts): New definition.
24903 (grub_puts_): Likewise.
24905 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
24907 * util/grub-probe.c (probe): Improve error message.
24909 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
24911 * loader/i386/multiboot_elfxx.c
24912 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
24915 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
24917 Relocator framework
24919 * loader/i386/xnu_helper.S: Removed. All users updated.
24920 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
24921 (relocator_mod_SOURCES): New variable.
24922 (relocator_mod_CFLAGS): Likewise.
24923 (relocator_mod_LDFLAGS): Likewise.
24924 (relocator_mod_ASFLAGS): Likewise.
24925 * conf/x86_64.rmk: Likewise.
24926 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
24927 (grub_multiboot_payload_entry_offset): Likewise.
24928 (grub_multiboot_forward_relocator): Likewise.
24929 (grub_multiboot_forward_relocator_end): Likewise.
24930 (grub_multiboot_backward_relocator): Likewise.
24931 (grub_multiboot_backward_relocator_end): Likewise.
24932 (grub_multiboot_payload_eip): New variable.
24933 (grub_multiboot_payload_orig): Likewise.
24934 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
24935 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
24936 * include/grub/i386/memory.h
24937 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
24938 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
24939 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
24940 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
24941 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
24942 * include/grub/i386/relocator.h: New file.
24943 * include/grub/x86_64/relocator.h: Likewise.
24944 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
24945 (XNU_RELOCATOR): New macro.
24946 (grub_xnu_launcher_start): Remove.
24947 (grub_xnu_launcher_end): Likewise.
24948 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
24949 (grub_xnu_heap_real_start): Remove.
24950 (grub_xnu_heap_start): Change to void *. All users updated.
24951 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
24952 * lib/i386/relocator.c: New file.
24953 * lib/i386/relocator_asm.S: Likewise.
24954 * lib/i386/relocator_backward.S: Likewise.
24955 * lib/mips/relocator.c: Likewise.
24956 * lib/mips/relocator_asm.S: Likewise.
24957 * lib/relocator.c: Likewise.
24958 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
24960 (playground): Likewise.
24961 (grub_multiboot_payload_orig): New variable.
24962 (grub_multiboot_payload_dest): Likewise.
24963 (grub_multiboot_payload_size): Likewise.
24964 (grub_multiboot_payload_eip): Likewise.
24965 (grub_multiboot_payload_esp): Likewise.
24966 (grub_multiboot_boot): Use grub_relocator32_boot.
24967 (grub_multiboot_unload): Free relocators.
24968 (grub_multiboot): Setup stack. Use relocators.
24969 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
24970 (grub_multiboot_load_elfXX): Use relocators.
24971 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
24972 (grub_multiboot_payload_size): Likewise.
24973 (grub_multiboot_payload_dest): Likewise.
24974 (grub_multiboot_payload_entry_offset): Likewise.
24975 (grub_multiboot_forward_relocator): Likewise.
24976 (grub_multiboot_backward_relocator): Likewise.
24977 (grub_multiboot_real_boot): Likewise.
24978 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
24979 (grub_xnu_entry_point): Likewise.
24980 (grub_xnu_arg1): Likewise.
24981 (grub_xnu_stack): Likewise.
24982 (grub_xnu_launch): Removed.
24983 (grub_xnu_boot_resume): New function.
24984 (grub_xnu_boot): Use relocators.
24985 * loader/i386/xnu_helper.S: Removed.
24986 * loader/xnu.c (grub_xnu_heap_start): New variable.
24987 (grub_xnu_heap_size): Likewise.
24988 (grub_xnu_heap_malloc): Use relocators.
24989 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
24991 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
24993 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
24996 2009-12-13 Carles Pina i Estany <carles@pina.cat>
24998 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
24999 GRUB_ERR_NONE before calling grub_env_set.
25001 2009-12-12 Robert Millan <rmh@aybabtu.com>
25003 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
25004 * genmk.rb (video): New variable.
25005 (CLEANFILES, VIDEOFILES): Add #{video}.
25006 (#{video}): New target rule.
25007 * genvideolist.sh: New file.
25008 * Makefile.in (pkglib_DATA): Add video.lst.
25009 (video.lst): New target rule.
25010 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
25012 * util/grub.d/30_os-prober.in: Replace `vbe' with
25013 ${GRUB_VIDEO_BACKEND}.
25015 2009-12-11 Robert Millan <rmh.grub@aybabtu.com>
25017 * THANKS: Add David Miller.
25019 2009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
25021 libpciaccess support.
25023 * Makefile.in (LIBPCIACCESS): New variable.
25024 (enable_grub_emu_pci): Likewise.
25025 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
25026 util/pci.c and commands/lspci.c.
25027 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
25028 * configure.ac (grub-emu-pci): New option.
25029 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
25030 (grub_pci_device_unmap_range): Likewise.
25031 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
25032 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
25033 (grub_pci_address_t) [!GRUB_UTIL]: New type.
25034 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
25035 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
25036 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
25037 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
25038 * include/grub/pciutils.h: New file.
25039 * util/pci.c: Likewise.
25041 2009-12-11 Felix Zielcke <fzielcke@z-51.de>
25043 * util/misc.c: Don't include <errno.h> twice.
25045 2009-12-10 Felix Zielcke <fzielcke@z-51.de>
25047 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
25048 name in an error message.
25049 (grub_biosdisk_rw): Likewise.
25051 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
25053 Eliminate NTFS 4Gib barrier.
25055 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
25056 (read_run_data): Likewise.
25057 (grub_ntfs_read_run_list): Likewise.
25058 (grub_ntfs_read_block): Likewise.
25059 (grub_ntfs_iterate_dir): Likewise.
25060 (read_mft): Likewise.
25061 (read_data): Likewise.
25063 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
25064 to avoid 64-bit division
25065 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
25066 (grub_ntfs_rlst): Use grub_disk_addr_t.
25068 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
25070 Eliminate grub-fstest 4Gib barrier.
25072 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
25073 (read_file): Fix error reporting.
25075 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
25077 Eliminate hexdump 4Gib barrier.
25079 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
25080 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
25082 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
25084 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
25087 2009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
25089 Remove miscellaneous files in distclean target.
25091 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
25093 2009-12-09 Colin Watson <cjwatson@ubuntu.com>
25095 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
25096 if they're already set. This resolves the conflict between my
25097 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
25098 fixing the --grub-probe option again.
25099 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
25100 change on 2009-10-06, so that we now once again source
25101 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
25103 2009-12-08 Robert Millan <rmh.grub@aybabtu.com>
25105 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
25106 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
25107 `util/devicemap.c'.
25109 2009-12-08 Carles Pina i Estany <carles@pina.cat>
25111 * include/grub/misc.h (grub_printf_): New declaration.
25112 * kern/misc.c (grub_printf_): New definition.
25113 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
25114 instead of `grub_printf' and `_'.
25115 * normal/menu_entry.c (store_completion): Likewise.
25117 (grub_menu_entry_run): Likewise.
25118 * normal/menu_text.c (grub_wait_after_message): Likewise.
25119 (notify_booting): Likewise.
25120 (notify_fallback): Likewise.
25121 (notify_execution_failure): Likewise.
25123 2009-12-07 Colin Watson <cjwatson@ubuntu.com>
25125 * configure.ac: Check for vasprintf.
25126 * util/misc.c (asprintf): Move allocation from here ...
25127 (vasprintf): ... to here. New function.
25128 (xasprintf): New function.
25129 * include/grub/util/misc.h (vasprintf, xasprintf): Add
25131 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
25132 * util/grub-mkfont.c (write_font): Likewise.
25133 * util/grub-probe.c (probe): Likewise.
25134 * util/hostdisk.c (make_device_name): Likewise.
25136 2009-12-06 David S. Miller <davem@sunset.davemloft.net>
25138 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
25139 anything even prefixed with 'cdrom' as a cdrom.
25141 2009-12-06 Felix Zielcke <fzielcke@z-51.de>
25143 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
25146 2009-12-05 Carles Pina i Estany <carles@pina.cat>
25148 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
25149 grub_gettext_msg_list.
25150 (grub_gettext_gettranslation_from_position): Return const char *
25152 (grub_gettext_translate): Add the translated strings into a list,
25153 returns from the list if existing there.
25154 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
25155 (grub_gettext_delete_list): Delete the list.
25156 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
25157 lang environment variable is changed.
25158 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
25160 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
25162 Rename kernel.mod to kernel.img.
25164 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
25165 (kernel_mod_EXPORTS): Rename to ...
25166 (kernel_img_EXPORTS): ... this.
25167 (kernel_mod_SOURCES): Rename to ...
25168 (kernel_img_SOURCES): ... this.
25169 (kernel_mod_HEADERS): Rename to ...
25170 (kernel_img_HEADERS): ... this. All users updated.
25171 (kernel_mod_CFLAGS): Rename to ...
25172 (kernel_img_CFLAGS): ... this.
25173 (kernel_mod_ASFLAGS): Rename to ...
25174 (kernel_img_ASFLAGS): ... this.
25175 (kernel_mod_LDFLAGS): Rename to ...
25176 (kernel_img_LDFLAGS): ... this.
25177 * conf/x86_64-efi.rmk: Likewise.
25178 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
25179 (read_kernel_image): ... this. All users updated.
25180 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
25182 2009-12-05 Carles Pina i Estany <carles@pina.cat>
25184 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
25185 (print_spaces): New function.
25186 (grub_print_ucs4): New function.
25187 (getstringwidth): New function.
25188 (print_message_indented): New function.
25189 (print_message): Gettexttize strings using print_message_indented.
25190 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
25192 (get_entry_number): Gettextize and uses dynamic terminal width.
25193 (notify_booting, notify_fallback, notify_execution_failure):
25195 * normal/menu_entry.c (store_completion): Cleanup the gettextized
25198 (grub_menu_entry_run): Likewise.
25199 * PO/POTFILES: Add normal/menu_entry.c.
25201 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
25203 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
25205 2009-12-05 Carles Pina i Estany <carles@pina.cat>
25207 * util/grub-install.in: Install gettext .mo files.
25208 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
25210 2009-12-05 Carles Pina i Estany <carles@pina.cat>
25212 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
25215 2009-12-05 Robert Millan <rmh.grub@aybabtu.com>
25217 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
25218 non-firmware-dependant one in realmode.S takes precedence.
25220 2009-12-04 Robert Millan <rmh.grub@aybabtu.com>
25222 * commands/halt.c: Replace misc arch-specific headers with
25224 * commands/reboot.c: Likewise.
25225 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
25227 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
25228 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
25229 (kernel_img_SOURCES): ... to here.
25231 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
25232 * include/grub/i386/pc/init.h: Likewise.
25233 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
25234 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
25236 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
25238 * include/grub/i386/halt.h: Remove.
25239 * include/grub/i386/reboot.h: Likewise.
25241 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
25243 2009-12-03 David S. Miller <davem@sunset.davemloft.net>
25245 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
25246 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
25247 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
25249 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
25250 * util/sparc64/ieee1275/grub-setup.c: Likewise.
25251 (usage): Add missing comma in printf.
25253 2009-12-02 Robert Millan <rmh.grub@aybabtu.com>
25255 Use the same reboot approach on i386 coreboot and qemu as we do on
25258 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
25259 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
25260 * kern/i386/reboot.c: Remove.
25261 * include/grub/i386/reboot.h (grub_reboot): Export function.
25262 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
25263 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
25264 0xf000:0xfff0 instead of 0xffff:0x0000.
25265 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
25266 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
25268 2009-11-30 Robert Millan <rmh.grub@aybabtu.com>
25270 Fix $srcdir != $objdir build.
25272 * Makefile.in (po/%.po): Rewrite as ...
25273 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
25275 2009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
25277 Fix GNU/Hurd grub-install crash.
25278 * util/grub-probe.c (probe): Try to access `path' only when it is not
25281 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
25283 Correct module naming.
25285 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
25286 (GRUB_MOD_INIT(efi_uga)): ... to this
25287 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
25288 (GRUB_MOD_FINI(efi_uga)): ... to this
25289 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
25290 (GRUB_MOD_INIT(efi_gop)): ... to this
25291 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
25292 (GRUB_MOD_FINI(efi_gop)): ... to this
25294 2009-11-28 Robert Millan <rmh.grub@aybabtu.com>
25296 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
25298 (usage): Translate `arg' strings using gettext().
25299 Thanks to Jordi Mallach for the suggestion.
25301 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
25303 GOP support. Based on patch from Bean
25304 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
25306 * video/efi_gop.c: New file.
25307 * include/grub/efi/graphics_output.h: Likewise.
25308 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
25309 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
25311 * conf/x86_64-efi.rmk: Likewise.
25313 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
25315 Rename efi_fb to efi_uga.
25317 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
25319 (efi_fb_mod_SOURCES): Rename this ...
25320 (efi_uga_mod_SOURCES): ... to this.
25321 (efi_fb_mod_CFLAGS): Rename this ...
25322 (efi_uga_mod_CFLAGS): ... to this.
25323 (efi_fb_mod_LDFLAGS): Rename this ...
25324 (efi_uga_mod_LDFLAGS): ... to this.
25325 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
25327 (efi_fb_mod_SOURCES): Rename this ...
25328 (efi_uga_mod_SOURCES): ... to this.
25329 (efi_fb_mod_CFLAGS): Rename this ...
25330 (efi_uga_mod_CFLAGS): ... to this.
25331 (efi_fb_mod_LDFLAGS): Rename this ...
25332 (efi_uga_mod_LDFLAGS): ... to this.
25333 * video/efi_fb.c: Move this ...
25334 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
25336 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
25338 * po/README: New file. Explain our PO file workflow.
25340 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
25342 * po/ChangeLog: Remove. Move relevant entries back to ...
25343 * ChangeLog: ... here.
25344 * po/ca.po: Remove (now handled by TLP).
25345 * po/id.po: Likewise.
25346 * po/zh_CN.po: Likewise.
25347 * Makefile.in (LINGUAS): Initialize in a way that supports
25350 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
25352 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
25353 reliing on po/LINGUAS.
25354 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
25355 (po/%.po): ... this.
25357 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
25359 * util/i386/efi/grub-mkimage.c: Include "progname.h".
25360 (main): Use `program_name' instead of nonexistent `progname'.
25362 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
25364 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
25365 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
25367 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
25369 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
25371 * conf/i386-efi.rmk: Likewise.
25372 * conf/i386-ieee1275.rmk: Likewise.
25373 * conf/powerpc-ieee1275.rmk: Likewise.
25374 * conf/sparc64-ieee1275.rmk: Likewise.
25375 * conf/x86_64-efi.rmk: Likewise.
25377 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
25379 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
25381 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
25383 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
25385 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
25387 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
25388 (grub_mkdevicemap_SOURCES): New variable.
25389 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
25390 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
25391 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
25392 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
25393 (grub_mkdevicemap_SOURCES): Remove.
25394 * conf/i386-efi.rmk: Likewise.
25395 * conf/i386-ieee1275.rmk: Likewise.
25396 * conf/i386-pc.rmk: Likewise.
25397 * conf/powerpc-ieee1275.rmk: Likewise.
25398 * conf/sparc64-ieee1275.rmk: Likewise.
25399 * conf/x86_64-efi.rmk: Likewise.
25400 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
25401 (usage): Fix strings to use `program_name'.
25402 (main): Initialize gettext.
25403 * util/grub-editenv.c: Likewise.
25404 * util/grub-emu.c: Likewise.
25405 * util/grub-fstest.c: Likewise.
25406 * util/grub-mkdevicemap.c: Likewise.
25407 * util/grub-mkfont.c: Likewise.
25408 * util/grub-mkrelpath.c: Likewise.
25409 * util/grub-pe2elf.c: Likewise.
25410 * util/grub-probe.c: Likewise.
25411 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
25412 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
25413 * util/sparc64/ieee1275/grub-setup.c: Likewise.
25415 * util/misc.c: Include `"progname.h"'.
25416 (progname): Remove variable.
25417 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
25419 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
25421 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
25422 printf and print a newline after the menuentry header line.
25423 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
25425 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
25427 autoconf >= 2.60 support $(localedir).
25429 * INSTALL: Note that autoconf 2.60 is required.
25430 * configure.ac (AC_PREREQ): Bump to 2.60.
25431 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
25432 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
25434 2009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
25436 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
25439 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
25441 * normal/main.c (grub_normal_read_line): Fix off-by-one
25444 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
25446 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
25447 "parser.grub" in grub_command_execute() call.
25449 2009-11-24 Carles Pina i Estany <carles@pina.cat>
25451 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
25452 * conf/i386-efi.rmk: Likewise.
25453 * conf/i386-ieee1275.rmk: Likewise.
25454 * conf/i386-pc.rmk: Likewise.
25455 * conf/powerpc-ieee1275.rmk: Likewise.
25456 * conf/sparc64-ieee1275.rmk: Likewise.
25457 * conf/x86_64-efi.rmk: Likewise.
25458 * gettext/gettex.c: Include <grub/i18n.h>.
25459 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
25461 * include/grub/i18n.h: ... to here
25462 * include/grub/i18n.h: ... to here.
25463 * kern/misc.c: Include <grub/i18n.h>
25464 (grub_gettext_dummy): Move above user.
25466 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
25468 * util/Makefile.in (install-local): Convert a `for' into a normal
25471 2009-11-24 Robert Millan <rmh.grub@aybabtu.com>
25473 * autogen.sh: Add automake call.
25474 * config.guess: Remove.
25475 * config.sub: Likewise.
25476 * install-sh: Likewise.
25478 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
25480 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
25482 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
25484 * util/Makefile.in (install-local): Convert a make `$(foreach)'
25485 function to a normal shell `for'.
25487 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
25489 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
25491 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
25493 * util/grub-mkrelpath.c: New file.
25494 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
25495 (grub_mkrelpath_SOURCES): New variable.
25496 * include/grub/util/misc.h: New function prototype.
25497 * util/misc.c (make_system_path_relative_to_its_root): New function.
25499 * util/grub-mkconfig_lib.in (bindir): New variable.
25500 (grub_mkrelpath): Likewise.
25501 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
25503 * util/probe.c (probe): Make the file path relative to its root.
25504 Change a info message to use the GRUB path. Enable again the
25505 check if we can read the file with GRUB facilities.
25507 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
25510 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
25512 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
25515 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
25517 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
25520 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
25522 * util/getroot.c (grub_util_is_dmraid): New function.
25523 (grub_util_get_dev_abstraction): Treat dmraid and multipath
25524 devices as normal ones, not as LVM.
25526 2009-11-23 Carles Pina i Estany <carles@pina.cat>
25528 * conf/common.rmk: Add grub-gettext_lib target and updates
25529 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
25531 * gettext/gettext.c: New file. (Reads mo files).
25532 * include/grub/file.h (grub_file_pread): New prototype.
25533 * include/grub/i18n.h (_): New prototype.
25534 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
25536 * kern/misc.c (grub_gettext_dummy): New function.
25537 * normal/menu_text.c: Include <grub/i18n.h>.
25538 * normal/menu_text.c (print_timeout): Gettexttize string.
25539 * normal/menu_text.c (print_message): Gettexttize string.
25540 * po/POTFILES: Add `normal/menu_text.c'.
25541 * po/ca.po: Add new translations.
25542 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
25543 gettext module and defines locale_dir and lang in grub.cfg.
25544 * NEWS: Add gettext support.
25546 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
25548 * util/hostdisk.c: Include `<grub/i18n.h>'.
25549 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
25550 (make_device_name): Rewrite using asprintf.
25551 (convert_system_partition_to_system_disk): Replace 0 with NULL.
25552 (find_system_device): If a device is not found, generate one just
25553 by reusing the OS path name.
25554 (read_device_map): Make it permissible for device.map not to exist.
25556 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
25558 * script/sh/execute.c: Move from here ...
25559 * script/execute.c: ... to here. Update all users.
25560 * script/sh/function.c: Move from here ...
25561 * script/function.c: ... to here. Update all users.
25562 * script/sh/lexer.c: Move from here ...
25563 * script/lexer.c: ... to here. Update all users.
25564 * script/sh/main.c: Move from here ...
25565 * script/main.c: ... to here. Update all users.
25566 * script/sh/parser.y: Move from here ...
25567 * script/parser.y: ... to here. Update all users.
25568 * script/sh/script.c: Move from here ...
25569 * script/script.c: ... to here. Update all users.
25571 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
25573 * configure.ac: Detect all `emu' platforms. Define
25574 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
25575 --enable-grub-emu logic. Disable include/grub/machine
25576 symlink on `emu' platforms.
25578 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
25579 * gensymlist.sh.in: Likewise.
25581 * include/grub/i386/coreboot/machine.h: Remove file.
25582 * include/grub/i386/efi/machine.h: Likewise.
25583 * include/grub/i386/ieee1275/machine.h: Likewise.
25584 * include/grub/i386/pc/machine.h: Likewise.
25585 * include/grub/i386/qemu/machine.h: Likewise.
25586 * include/grub/powerpc/ieee1275/machine.h: Likewise.
25587 * include/grub/sparc64/ieee1275/machine.h: Likewise.
25588 * include/grub/x86_64/efi/machine.h: Likewise.
25590 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
25591 * commands/halt.c: Likewise.
25592 * commands/reboot.c: Likewise.
25593 * include/grub/autoefi.h: Likewise.
25594 * include/grub/i386/at_keyboard.h: Likewise.
25595 * include/grub/i386/kernel.h: Likewise.
25596 * include/grub/i386/loader.h: Likewise.
25597 * include/grub/i386/pc/memory.h: Likewise.
25598 * kern/dl.c: Likewise.
25599 * kern/i386/coreboot/init.c: Likewise.
25600 * loader/i386/bsd.c: Likewise.
25601 * loader/i386/linux.c: Likewise.
25602 * loader/multiboot_loader.c: Likewise.
25603 * term/i386/pc/serial.c: Likewise.
25604 * term/usb_keyboard.c: Likewise.
25606 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
25607 `<grub/machine/machine.h>'
25608 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
25609 * util/misc.c: Remove `<grub/machine/machine.h>' and
25610 `<grub/machine/time.h>'.
25612 * Makefile.in (enable_grub_emu): Remove variable.
25613 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
25615 * conf/any-emu.rmk: New file.
25616 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
25617 (grub_emu_init.c): Move from here ...
25618 * conf/any-emu.rmk: ... to here.
25620 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
25621 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
25622 * conf/any-emu.rmk: ... to here.
25624 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
25626 * include/grub/parser.h (grub_parser_register): Document need
25627 of `name' parameter.
25628 * normal/main.c (grub_normal_read_line): Simplify prompt string.
25629 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
25632 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
25634 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
25636 * include/grub/i18n.h (N_): New macro.
25637 * util/mkisofs/mkisofs.h: Likewise.
25638 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
25640 (usage): Use gettext() to translate help strings when printing them.
25642 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
25644 Based on patch from Bean
25645 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
25647 * video/efi_fb.c: New file.
25648 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
25649 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
25651 * conf/x86_64-efi.rmk: Likewise.
25653 2009-11-22 Robert Millan <rmh.grub@aybabtu.com>
25655 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
25656 * util/i386/pc/grub-setup.c: Likewise.
25658 2009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
25660 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
25662 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
25663 file_get_storage_info to implement grub_guess_root_device.
25665 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
25667 * Makefile.in (target): Use make's builtin $(shell) function
25668 instead of calling directly $(SHELL) to create the locale directories,
25669 inside the $(foreach) function.
25671 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
25673 * util/grub-mkrescue.in: Print an error and usage if output option
25674 has not been given.
25676 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
25678 Patch from Loïc Minier <loic.minier@ubuntu.com>.
25679 * util/grub.d/30_os-prober.in: Cope with Linux entries where
25680 root and /boot are on different devices.
25682 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
25684 Fix build for srcdir != objdir.
25686 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
25687 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
25689 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
25690 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
25691 reference for input.
25693 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
25695 * util/grub-mkrescue.in: Use source directory direcly (without copiing
25696 or hardlinking it). Remove -J option, Joliet is not compatible with
25697 multiple source directories.
25699 2009-11-21 Carles Pina i Estany <carles@pina.cat>
25700 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
25702 * util/grub-mkrescue.in: Recognize `--override-directory' option.
25703 (process_input_dir): New function. Process an arbitrary input
25705 Misc adjustments to support both "override mode" and system-wide mode.
25707 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
25709 * configure.ac (UNIFONT_BDF): Rename to ...
25710 (FONT_SOURCE): ... this. Update all users.
25712 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
25714 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
25715 to the list of unifont files to look for.
25717 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
25719 Patch from Joe Auricchio <jauricchio@gmail.com>
25720 * commands/minicmd.c (grub_mini_cmd_clear): New function.
25721 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
25722 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
25724 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
25726 * Makefile.in (install-local): Add a missing backslash.
25728 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
25730 * include/grub/x86_64/io.h: New file.
25732 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
25734 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
25735 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
25736 Include `"progname.h"'.
25737 (main): Initialize gettext.
25738 * util/i386/pc/grub-setup.c: Gettexttize.
25739 * util/i386/pc/grub-mkimage.c: Likewise.
25741 * Makefile.in (po/*.po): Redefine as ...
25742 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
25744 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
25746 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
25748 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
25749 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
25750 (program_name): Remove.
25751 (main): Initialize gettext support.
25752 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
25753 Include `<libintl.h>'.
25756 * util/mkisofs/eltorito.c: Gettexttize.
25757 * util/mkisofs/joliet.c: Likewise.
25758 * util/mkisofs/mkisofs.c: Likewise.
25759 * util/mkisofs/multi.c: Likewise.
25760 * util/mkisofs/rock.c: Likewise.
25761 * util/mkisofs/tree.c: Likewise.
25762 * util/mkisofs/write.c: Likewise.
25764 * po/POTFILES: Update with new files.
25766 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
25768 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
25769 * util/mkisofs/iso9660.h: Likewise.
25770 * util/mkisofs/joliet.c: Likewise.
25771 * util/mkisofs/mkisofs.c: Likewise.
25772 * util/mkisofs/mkisofs.h: Likewise.
25773 * util/mkisofs/rock.c: Likewise.
25774 * util/mkisofs/tree.c: Likewise.
25775 * util/mkisofs/write.c: Likewise.
25777 * util/mkisofs/eltorito.c (rcsid): Remove.
25778 * util/mkisofs/hash.c: Likewise.
25779 * util/mkisofs/joliet.c: Likewise.
25780 * util/mkisofs/name.c: Likewise.
25781 * util/mkisofs/rock.c: Likewise.
25782 * util/mkisofs/tree.c: Likewise.
25783 * util/mkisofs/write.c: Likewise.
25785 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
25787 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
25788 instead of static allocation.
25789 * util/mkisofs/match.h: Likewise.
25791 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
25793 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
25794 and `util/grub.d/10_linux.in'.
25795 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
25796 translatable Shell files.
25798 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
25800 * Makefile.in ($(srcdir)/aclocal.m4): New target.
25802 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
25804 * INSTALL: Document Automake is needed for bootstrap.
25805 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
25806 * util/grub.d/10_kfreebsd.in (bindir): New variable.
25807 Add gettext initialization.
25808 (kfreebsd_entry): Make menuentry output translatable.
25810 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
25812 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
25813 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
25814 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
25815 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
25816 (LINGUAS): Auto-generate using `po/LINGUAS'.
25817 * po/LINGUAS: New file.
25819 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
25821 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
25823 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
25824 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
25825 bindtextdomain() calls for gettext initialization.
25827 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
25829 * gnulib/progname.c: New file (imported from Gnulib).
25830 * gnulib/progname.h: Likewise.
25831 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
25832 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
25833 (usage): Replace `progname' with `program_name'.
25834 (main): Use set_program_name() for program name initialization.
25836 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
25838 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
25840 * Makefile.in (CPPFLAGS): ... to here.
25842 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
25844 * aclocal.m4: Move from here ...
25845 * acinclude.m4: ... to here.
25846 * autogen.sh: Add call to `aclocal'.
25847 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
25849 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
25851 * Makefile.in (CLEANFILES): Add `po/*.mo'.
25852 (LINGUAS): New variable.
25853 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
25854 (install-local): Install MO files.
25855 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
25856 * include/grub/i18n.h: New file.
25857 * po/POTFILES: New file.
25858 * po/ca.po: New file.
25859 * util/grub.d/10_linux.in (bindir): New variable.
25860 Add gettext initialization.
25861 (linux_entry): Make menuentry output translatable.
25862 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
25863 (usage): Make --help output translatable.
25864 (main): Initialize gettext.
25866 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
25868 * import_gcry.py: New file (written by Vladimir with minor
25870 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
25872 * INSTALL: Document that Python is required for bootstrap.
25874 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
25876 Import ciphers from libgcrypt 1.4.4.
25878 * lib/libgcrypt/cipher/ChangeLog
25879 * lib/libgcrypt/cipher/ac.c
25880 * lib/libgcrypt/cipher/arcfour.c
25881 * lib/libgcrypt/cipher/bithelp.h
25882 * lib/libgcrypt/cipher/blowfish.c
25883 * lib/libgcrypt/cipher/camellia-glue.c
25884 * lib/libgcrypt/cipher/camellia.c
25885 * lib/libgcrypt/cipher/camellia.h
25886 * lib/libgcrypt/cipher/cast5.c
25887 * lib/libgcrypt/cipher/cipher.c
25888 * lib/libgcrypt/cipher/crc.c
25889 * lib/libgcrypt/cipher/des.c
25890 * lib/libgcrypt/cipher/dsa.c
25891 * lib/libgcrypt/cipher/ecc.c
25892 * lib/libgcrypt/cipher/elgamal.c
25893 * lib/libgcrypt/cipher/hash-common.c
25894 * lib/libgcrypt/cipher/hash-common.h
25895 * lib/libgcrypt/cipher/hmac-tests.c
25896 * lib/libgcrypt/cipher/md.c
25897 * lib/libgcrypt/cipher/md4.c
25898 * lib/libgcrypt/cipher/md5.c
25899 * lib/libgcrypt/cipher/primegen.c
25900 * lib/libgcrypt/cipher/pubkey.c
25901 * lib/libgcrypt/cipher/rfc2268.c
25902 * lib/libgcrypt/cipher/rijndael-tables.h
25903 * lib/libgcrypt/cipher/rijndael.c
25904 * lib/libgcrypt/cipher/rmd.h
25905 * lib/libgcrypt/cipher/rmd160.c
25906 * lib/libgcrypt/cipher/rsa.c
25907 * lib/libgcrypt/cipher/seed.c
25908 * lib/libgcrypt/cipher/serpent.c
25909 * lib/libgcrypt/cipher/sha1.c
25910 * lib/libgcrypt/cipher/sha256.c
25911 * lib/libgcrypt/cipher/sha512.c
25912 * lib/libgcrypt/cipher/tiger.c
25913 * lib/libgcrypt/cipher/twofish.c
25914 * lib/libgcrypt/cipher/whirlpool.c
25916 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
25918 Fix build for systems without error().
25920 * gnulib/error.c: New file (imported from Gnulib).
25921 * gnulib/error.h: Likewise.
25922 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
25923 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
25924 (this variable is now used by error()).
25926 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
25928 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
25929 instead of relying that char is signed.
25931 2009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
25933 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
25934 blocksize different from specified.
25935 (grub_pxefs_read): Likewise.
25937 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
25939 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
25941 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
25942 (grub_ata_readwrite): Likewise. Update 2 format strings.
25943 (grub_atapi_read): Likewise.
25945 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
25946 * conf/i386.rmk (pkglib_MODULES): ... to here ...
25947 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
25948 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
25949 (ata_mod_LDFLAGS): Move from here ...
25950 * conf/i386.rmk: ... to here ...
25951 * conf/x86_64-efi.rmk: ... and here.
25952 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
25953 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
25955 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
25957 Relicense multiboot.h, with RMS' blessing.
25959 * include/multiboot.h: Change to X11 license.
25961 2009-11-15 Robert Millan <rmh.grub@aybabtu.com>
25963 Support --version in grub-mkisofs.
25965 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
25966 (OPTION_VERSION): New macro.
25967 (ld_options): Recognize --version.
25968 (usage): Move `program_name' from here ...
25969 (program_name): ... to here. Add `static' qualifier.
25970 (main): Recognize `OPTION_VERSION'.
25972 2009-11-15 Felix Zielcke <fzielcke@z-51.de>
25974 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
25975 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
25977 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
25979 Fix help2man generation for mkisofs.
25981 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
25982 (usage): Send output to stdout (rather than stderr).
25984 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
25986 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
25987 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
25988 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
25989 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
25990 (bin_SCRIPTS): Add `grub-mkfloppy'.
25991 (grub_mkfloppy_SOURCES): New variable.
25993 * util/grub-mkrescue.in: New file.
25994 * util/i386/pc/grub-mkfloppy.in: New file.
25996 * util/i386/coreboot/grub-mkrescue.in: Remove.
25997 * util/i386/pc/grub-mkrescue.in: Remove.
25999 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
26001 * include/grub/multiboot.h (struct grub_multiboot_header): Move
26003 * include/multiboot.h (struct multiboot_header): ... to here. Update
26005 * include/grub/multiboot.h (struct grub_multiboot_info): Move
26007 * include/multiboot.h (struct multiboot_info): ... to here. Update
26009 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
26011 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
26013 * include/grub/multiboot.h (struct grub_mod_list): Move
26015 * include/multiboot.h (struct multiboot_mod_list): ... to here.
26018 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
26020 * include/multiboot2.h (multiboot_word): Rename from this ...
26021 (multiboot2_word): ... to this. Update all users.
26022 (multiboot_header): Rename from this ...
26023 (multiboot2_header): ... to this. Update all users.
26024 (multiboot_tag_header): Rename from this ...
26025 (multiboot2_tag_header): ... to this. Update all users.
26026 (multiboot_tag_start): Rename from this ...
26027 (multiboot2_tag_start): ... to this. Update all users.
26028 (multiboot_tag_name): Rename from this ...
26029 (multiboot2_tag_name): ... to this. Update all users.
26030 (multiboot_tag_module): Rename from this ...
26031 (multiboot2_tag_module): ... to this. Update all users.
26032 (multiboot_tag_memory): Rename from this ...
26033 (multiboot2_tag_memory): ... to this. Update all users.
26034 (multiboot_tag_unused): Rename from this ...
26035 (multiboot2_tag_unused): ... to this. Update all users.
26036 (multiboot_tag_end): Rename from this ...
26037 (multiboot2_tag_end): ... to this. Update all users.
26039 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
26041 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
26042 this platform we should support Multiboot1 first.
26044 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
26045 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
26046 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
26048 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
26050 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
26051 of write calls (converting them to fwrite() if they aren't already).
26052 (get_torito_desc): Likewise.
26053 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
26055 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
26057 * util/i386/pc/grub-install.in: Move from here ...
26058 * util/grub-install.in: ... to here. Update all users.
26060 2009-11-11 Colin Watson <cjwatson@ubuntu.com>
26062 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
26064 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
26066 Support for El Torito without floppy emulation.
26068 * util/mkisofs/eltorito.c: Include `<errno.h>'.
26069 (init_boot_catalog): Improve error handling.
26070 (get_torito_desc): Don't use floppy emulation unless requested by
26071 user. Patch boot information table when requested via
26072 `-boot-info-table'.
26073 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
26074 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
26075 (use_boot_info_table): New variables.
26076 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
26077 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
26078 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
26079 `--eltorito-emul-floppy'.
26080 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
26081 and `OPTION_ELTORITO_EMUL_FLOPPY'.
26082 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
26083 (use_boot_info_table, get_731): New prototypes.
26084 * util/mkisofs/write.c (get_731): New function.
26086 2009-11-11 Felix Zielcke <fzielcke@z-51.de>
26088 Fix the generation of the man page.
26090 * util/pc/i386/grub-install.in: Source
26091 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
26093 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
26095 Large file support for grub-mkisofs.
26097 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
26098 * util/mkisofs/mkisofs.c (next_extent, last_extent)
26099 (session_start): Upgrade type to `uint64_t'. Update all users.
26100 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
26101 (struct directory_entry): Upgrade type of `starting_block' and
26102 `size' to `uint64_t'. Update all users.
26103 (struct deferred): Remove unused structure.
26104 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
26106 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
26107 file is larger than `UINT32_MAX'.
26108 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
26109 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
26111 (struct deferred_write): Upgrade type of `extent' and `size' to
26112 `uint64_t'. Update all users.
26113 (last_extent_written): Upgrade type to `uint64_t'. Update all
26115 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
26116 Update all users. Upgrade type of `remain' to `int64_t' and
26117 `use' to `size_t'. Use error() to handle fread() errors.
26118 (write_files): Rely on write_one_file() rather than calling
26119 xfwrite() directly.
26121 2009-11-09 Felix Zielcke <fzielcke@z-51.de>
26123 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
26125 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
26127 * util/mkisofs/fnmatch.c: Remove.
26128 * util/mkisofs/getopt1.c: Likewise.
26129 * util/mkisofs/getopt.c: Likewise.
26130 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
26131 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
26132 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
26133 `gnulib/getopt1.c' and `gnulib/getopt.c'.
26134 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
26136 * configure.ac: Detect `mingw32msvc' host_os.
26137 Check for lstat(), getuid() and getgid().
26139 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
26140 instances of `u_char' with `uint8_t'.
26142 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
26143 [!HAVE_GETUID] (getuid): New function (stub).
26144 [!HAVE_GETGID] (getgid): Likewise.
26145 [!HAVE_LSTAT] (lstat): Likewise.
26146 [!S_IROTH] (S_IROTH): New macro (dummy).
26147 [!S_IRGRP] (S_IRGRP): Likewise.
26149 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
26151 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
26152 conditional expression).
26154 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
26156 Import from Gnulib.
26158 * gnulib/fnmatch.c: New file.
26159 * gnulib/fnmatch.h: Likewise.
26160 * gnulib/fnmatch_loop.c: Likewise.
26161 * gnulib/getopt.c: Likewise.
26162 * gnulib/getopt.h: Likewise.
26163 * gnulib/getopt1.c: Likewise.
26164 * gnulib/getopt_int.h: Likewise.
26165 * gnulib/gettext.h: Likewise.
26167 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
26169 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
26170 * normal/handler.c (read_handler_list): Likewise.
26172 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
26176 * kern/command.c (grub_register_command_prio): Use
26177 grub_zalloc() instead of explicitly zeroing data.
26178 * kern/list.c: Include `<grub/mm.h>'.
26179 (grub_named_list_find): Replace `0' with `NULL'.
26180 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
26181 (fs_module_list): Change type to `grub_named_list_t'. Update all
26183 * normal/dyncmd.c (read_command_list): Add space between function
26184 call and parenthesis.
26185 * normal/handler.c (read_handler_list): Likewise.
26187 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
26189 * normal/auth.c (punishment_delay): Moved from here ...
26190 (grub_auth_strcmp): ... to here (inside function).
26192 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
26194 * include/grub/list.h (struct grub_named_list): Remove `const'
26195 qualifier from `name'.
26196 (struct grub_prio_list): Likewise.
26198 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
26200 * normal/auth.c: Include `<grub/time.h>'.
26201 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
26203 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
26205 * normal/auth.c (punishment_delay): New variable.
26206 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
26207 (grub_auth_check_authentication): Punish failed login attempts with
26208 an incremental (2^N) delay.
26210 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
26212 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
26213 path with $(srcdir).
26215 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
26217 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
26219 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
26221 * util/i386/coreboot/grub-mkrescue.in: New file.
26222 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
26225 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
26226 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
26227 * configure.ac: Add header and function checks to satisfy grub-mkisofs
26229 * util/mkisofs/defaults.h: New file.
26230 * util/mkisofs/eltorito.c: Likewise.
26231 * util/mkisofs/exclude.h: Likewise.
26232 * util/mkisofs/fnmatch.c: Likewise.
26233 * util/mkisofs/getopt.c: Likewise.
26234 * util/mkisofs/getopt1.c: Likewise.
26235 * util/mkisofs/hash.c: Likewise.
26236 * util/mkisofs/include/fctldefs.h: Likewise.
26237 * util/mkisofs/include/mconfig.h: Likewise.
26238 * util/mkisofs/include/prototyp.h: Likewise.
26239 * util/mkisofs/include/statdefs.h: Likewise.
26240 * util/mkisofs/iso9660.h: Likewise.
26241 * util/mkisofs/joliet.c: Likewise.
26242 * util/mkisofs/match.c: Likewise.
26243 * util/mkisofs/match.h: Likewise.
26244 * util/mkisofs/mkisofs.c: Likewise.
26245 * util/mkisofs/mkisofs.h: Likewise.
26246 * util/mkisofs/multi.c: Likewise.
26247 * util/mkisofs/name.c: Likewise.
26248 * util/mkisofs/rock.c: Likewise.
26249 * util/mkisofs/tree.c: Likewise.
26250 * util/mkisofs/write.c: Likewise.
26252 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
26254 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
26257 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
26259 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
26260 `grub-mkimage' (and use $0 when possible).
26262 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
26264 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
26265 error message for excessively large memory map.
26267 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
26269 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
26272 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
26274 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
26275 message for coreboot users.
26277 2009-11-07 Robert Millan <rmh.grub@aybabtu.com>
26279 Fix build with GNU gold.
26281 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
26282 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
26283 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
26285 * aclocal.m4: Likewise.
26287 2009-11-04 Felix Zielcke <fzielcke@z-51.de>
26289 * configure.ac (AC_PREREQ): Bump to 2.59d.
26290 * INSTALL: Make it more clear when Autoconf and Ruby are
26291 needed and when to run `./autogen.sh'.
26293 2009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
26295 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
26298 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
26300 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
26302 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
26304 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
26305 giving it to GNU Mach.
26307 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
26309 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
26310 GNU partition number to get internal GRUB partition number.
26312 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
26314 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
26315 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
26317 2009-11-01 Robert Millan <rmh.grub@aybabtu.com>
26319 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
26320 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
26323 2009-11-01 Felix Zielcke <fzielcke@z-51.de>
26325 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
26327 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
26331 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
26332 `-isystem=$(srcdir)/include'.
26334 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
26336 * util/i386/pc/grub-install.in: Remove hint that device.map should be
26337 checked (grub-install doesn't currently rely on it).
26339 2009-10-29 Robert Millan <rmh.grub@aybabtu.com>
26343 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
26344 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
26345 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
26346 * conf/i386-ieee1275.rmk: Likewise.
26347 * conf/i386-pc.rmk: Likewise.
26348 * conf/powerpc-ieee1275.rmk: Likewise.
26349 * conf/sparc64-ieee1275.rmk: Likewise.
26350 * conf/x86_64-efi.rmk: Likewise.
26352 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
26354 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
26356 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
26358 * include/grub/misc.h: Stop checking for APPLE_CC.
26360 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
26362 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
26363 doesn't cause an infinite call loop.
26365 2009-10-28 Felix Zielcke <fzielcke@z-51.de>
26367 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
26370 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
26372 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
26374 * Makefile.in: Likewise.
26376 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
26378 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
26380 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
26382 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
26384 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
26386 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
26388 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
26390 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
26392 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
26394 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
26396 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
26397 in $(MAKEINFO) invocation. This makes it clear in output that
26398 errors are being ignored.
26400 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
26402 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
26404 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
26405 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
26406 * conf/i386-ieee1275.rmk: Likewise.
26407 * conf/i386-pc.rmk: Likewise.
26408 * conf/powerpc-ieee1275.rmk: Likewise.
26409 * conf/sparc64-ieee1275.rmk: Likewise.
26410 * conf/x86_64-efi.rmk: Likewise.
26412 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
26414 * util/grub-editenv.c (main): If only a command is given, use
26415 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
26416 (usage): FILENAME is now optional and has a default.
26418 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
26420 Improve grub-mkconfig performance when there are several menu
26421 entries on a single filesystem.
26423 * util/grub.d/10_linux.in (linux_entry): Cache the output of
26424 prepare_grub_to_access_device.
26425 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
26426 * util/grub.d/30_os-prober.in: Likewise.
26428 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
26430 * util/grub.d/10_freebsd.in: Remove.
26431 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
26432 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
26434 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
26436 * docs/grub.cfg: Fix example usage of *BSD loaders.
26438 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
26440 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
26441 grub_util_error() call.
26443 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
26445 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
26446 `reserved_first_sector' member.
26447 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
26448 `reserved_first_sector' to 1.
26449 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
26450 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
26451 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
26452 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
26453 filesystems which begin at first sector.
26454 (options): New option --skip-fs-probe.
26455 (main): Handle --skip-fs-probe and pass it to setup().
26457 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
26459 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
26460 (memset): Fix function prototype.
26462 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
26463 2009-10-25 Vasily Averin <vvs@parallels.com>
26465 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
26466 `dirent.direntlen == 0'.
26468 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
26470 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
26472 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
26474 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
26476 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
26477 `__trampoline_setup' and `__ucmpdi2'.
26478 * include/grub/powerpc/libgcc.h: Only export symbols for functions
26479 that libgcc provides.
26481 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
26483 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
26484 * include/grub/sparc64/libgcc.h (memset): Likewise.
26485 * include/grub/misc.h (memset, memcmp): New function prototypes.
26487 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
26489 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
26491 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
26493 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
26495 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
26496 * docs/grub.cfg: Compensate for recent change in multiboot
26497 loader (since 2009-08-14 it won't pass filename to payload).
26498 * util/grub.d/10_hurd.in: Likewise.
26500 2009-10-21 Felix Zielcke <fzielcke@z-51.de>
26502 * config.guess: Update to latest version from config git
26504 * config.sub: Likewise.
26506 2009-10-20 Robert Millan <rmh.grub@aybabtu.com>
26508 Fix build on sparc64.
26510 * configure.ac: Perform checks for libgcc symbols before
26511 adding `-nostdlib' to LDFLAGS.
26513 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
26515 Let user specify OpenBSD root device.
26517 * loader/i386/bsd.c (openbsd_root): New variable.
26518 (openbsd_opts): New option 'root'.
26519 (OPENBSD_ROOT_ARG): New macro.
26520 (grub_openbsd_boot): Use 'openbsd_root'.
26521 (grub_cmd_openbsd): Fill 'openbsd_root'.
26523 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
26525 * NEWS: Misc adjustments.
26527 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
26529 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
26531 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
26533 * configure.ac: Bump version to 1.97.
26535 2009-10-16 Colin Watson <cjwatson@ubuntu.com>
26537 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
26538 -mno-3dnow on x86 architectures. Some toolchains enable these
26539 features by default, but they rely on registers that aren't enabled
26540 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
26542 2009-10-15 Robert Millan <rmh.grub@aybabtu.com>
26544 Make entry text a bit more readable.
26546 * util/grub.d/10_linux.in: Add `with' before `Linux'.
26548 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
26550 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
26552 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
26554 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
26557 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
26559 * configure.ac: Add missing dollar.
26561 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
26563 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
26565 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
26566 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
26568 * include/grub/sparc64/libgcc.h: Likewise. Use
26569 preprocessor conditionals.
26571 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
26573 * conf/common.rmk (grub-dumpbios): Remove rule.
26574 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
26575 * util/grub-dumpbios.in: Remove file.
26577 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
26579 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
26580 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
26582 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
26583 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
26586 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
26587 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
26588 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
26589 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
26592 2009-10-12 Robert Millan <rmh.grub@aybabtu.com>
26594 * term/tparm.c: Switch to GPLv3.
26596 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
26598 * include/grub/i386/cpuid.h: Add header protection.
26600 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
26602 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
26604 * include/grub/i386/cpuid.h: New file.
26605 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
26606 (has_longmode): Rename to ...
26607 (grub_cpuid_has_longmode): ... this. Update all users. Remove
26608 `static' attribute.
26609 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
26610 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
26611 on a CPU that doesn't implement AMD64 instruction set.
26613 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
26615 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
26616 that version.texi is rebuilt on version number changes.
26618 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
26620 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
26623 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
26625 * util/i386/pc/grub-install.in: Source
26626 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
26627 that the --grub-probe option will work.
26628 * util/sparc64/ieee1275/grub-install.in: Likewise.
26630 2009-10-05 Robert Millan <rmh.grub@aybabtu.com>
26632 * configure.ac: Bump version to 1.97~beta4.
26634 2009-10-03 Robert Millan <rmh.grub@aybabtu.com>
26636 Resync grub-mkdevicemap in x86_64-efi.
26638 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
26639 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
26640 `util/devicemap.c'.
26642 2009-10-01 Colin Watson <cjwatson@ubuntu.com>
26644 * util/grub-editenv.c (create_envblk_file): Write new block with a
26645 .new suffix and then rename it into place, to ensure atomic
26648 2009-09-28 Robert Millan <rmh.grub@aybabtu.com>
26650 Do not automatically install headers.
26652 * Makefile.in (include_DATA): Remove. Update all users.
26654 2009-09-26 Robert Millan <rmh.grub@aybabtu.com>
26656 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
26657 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
26659 * util/osdetect.lua: Remove.
26660 * script/lua/lauxlib.c: Likewise.
26661 * script/lua/ldebug.c: Likewise.
26662 * script/lua/grub_main.c: Likewise.
26663 * script/lua/lauxlib.h: Likewise.
26664 * script/lua/ldebug.h: Likewise.
26665 * script/lua/ltablib.c: Likewise.
26666 * script/lua/liolib.c: Likewise.
26667 * script/lua/lstrlib.c: Likewise.
26668 * script/lua/lualib.h: Likewise.
26669 * script/lua/ldo.c: Likewise.
26670 * script/lua/ldump.c: Likewise.
26671 * script/lua/ldo.h: Likewise.
26672 * script/lua/loslib.c: Likewise.
26673 * script/lua/lundump.c: Likewise.
26674 * script/lua/grub_lib.c: Likewise.
26675 * script/lua/ldblib.c: Likewise.
26676 * script/lua/lundump.h: Likewise.
26677 * script/lua/lmem.c: Likewise.
26678 * script/lua/grub_lib.h: Likewise.
26679 * script/lua/lmathlib.c: Likewise.
26680 * script/lua/lstate.c: Likewise.
26681 * script/lua/ltm.c: Likewise.
26682 * script/lua/lvm.c: Likewise.
26683 * script/lua/lmem.h: Likewise.
26684 * script/lua/lstate.h: Likewise.
26685 * script/lua/ltm.h: Likewise.
26686 * script/lua/ltable.c: Likewise.
26687 * script/lua/lvm.h: Likewise.
26688 * script/lua/llex.c: Likewise.
26689 * script/lua/lgc.c: Likewise.
26690 * script/lua/grub_lua.h: Likewise.
26691 * script/lua/loadlib.c: Likewise.
26692 * script/lua/lfunc.c: Likewise.
26693 * script/lua/lopcodes.c: Likewise.
26694 * script/lua/lparser.c: Likewise.
26695 * script/lua/ltable.h: Likewise.
26696 * script/lua/llex.h: Likewise.
26697 * script/lua/lgc.h: Likewise.
26698 * script/lua/lfunc.h: Likewise.
26699 * script/lua/lbaselib.c: Likewise.
26700 * script/lua/lopcodes.h: Likewise.
26701 * script/lua/lparser.h: Likewise.
26702 * script/lua/lzio.c: Likewise.
26703 * script/lua/linit.c: Likewise.
26704 * script/lua/lobject.c: Likewise.
26705 * script/lua/llimits.h: Likewise.
26706 * script/lua/lstring.c: Likewise.
26707 * script/lua/lzio.h: Likewise.
26708 * script/lua/lapi.c: Likewise.
26709 * script/lua/lcode.c: Likewise.
26710 * script/lua/lua.h: Likewise.
26711 * script/lua/lobject.h: Likewise.
26712 * script/lua/lstring.h: Likewise.
26713 * script/lua/lapi.h: Likewise.
26714 * script/lua/lcode.h: Likewise.
26715 * script/lua/luaconf.h: Likewise.
26717 2009-09-26 Colin Watson <cjwatson@ubuntu.com>
26719 * docs/grub.texi (Command-line and menu entry commands): Document
26720 date and echo commands.
26722 2009-09-24 Pavel Roskin <proski@gnu.org>
26724 * include/grub/kernel.h (struct grub_module_header): Remove
26725 `grub_module_header_types'. Make `type' unsigned. Make `size'
26726 32-bit on all platforms.
26727 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
26728 8-bit field. Use grub_host_to_target32() for `size'.
26729 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
26730 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
26731 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
26733 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
26735 Fix "lost keypress" bug in at_keyboard.
26737 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
26738 Checks for readyness of input buffer (without flushing it).
26739 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
26740 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
26742 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
26744 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
26745 size check within GRUB_MACHINE_PCBIOS section.
26747 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
26749 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
26751 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
26752 KEYBOARD_ISREADY check.
26753 (grub_at_keyboard_checkkey): Rename to ...
26754 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
26755 Remove gratuitous cast.
26757 2009-09-23 Colin Watson <cjwatson@ubuntu.com>
26759 * configure.ac: Call AC_PROG_MKDIR_P.
26760 * Makefile.in (docs/stamp-vti): Create docs directory. Create
26761 version.texi in $(builddir) rather than $(srcdir).
26762 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
26763 to makeinfo's @include search path.
26765 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
26767 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
26769 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
26771 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
26774 2009-09-21 Colin Watson <cjwatson@ubuntu.com>
26776 Build info documentation. Some code borrowed from Automake.
26778 * configure.ac: Check for makeinfo.
26779 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
26780 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
26782 (MOSTLYCLEANFILES): Add vti.tmp.
26783 (docs/version.texi, docs/stamp-vti): Update automatically.
26784 (docs/grub.info): Build info documentation. Use --force and ignore
26786 (all-local): Add $(INFOS).
26787 (install-local): Install info files.
26788 (uninstall): Uninstall info files.
26789 * docs/version.texi: Remove from revision control. This file is
26790 automatically generated on build now.
26791 * gendistlist.sh: Add `*.info'.
26793 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
26795 * kern/term.c: Fix indentation.
26797 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
26799 * util/hostdisk.c: Fix a comment.
26801 2009-09-20 Robert Millan <rmh.grub@aybabtu.com>
26803 Fix regression introduced in r2539.
26805 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
26808 2009-09-19 Colin Watson <cjwatson@ubuntu.com>
26810 * util/grub.d/30_os-prober.in: Don't throw away stderr from
26811 os-prober. Under normal operation, it does not print anything to
26812 stderr; if it does, we need to debug it, and throwing away stderr
26813 makes that excessively difficult.
26815 2009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
26817 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
26819 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
26821 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
26822 AC_LANG_PROGRAM from autoconf.
26823 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
26824 prototypes (fixes warning).
26826 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
26827 `--disable-werror' was used.
26829 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
26831 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
26832 uninitialized `lastaddr'.
26834 2009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
26836 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
26838 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
26840 * commands/test.c (get_fileinfo): Return immediately if
26841 grub_fs_probe fails.
26843 2009-09-14 José Martínez <xosemp@gmail.com>
26845 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
26847 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
26849 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
26852 2009-09-13 Robert Millan <rmh.grub@aybabtu.com>
26854 * configure.ac: Remove --enable-grub-pe2elf. Only build
26855 grub-pe2elf when needed by the build system itself.
26856 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
26858 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
26860 * configure.ac: Bump version to 1.97~beta3.
26861 * docs/version.texi: Likewise.
26863 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
26865 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
26866 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
26868 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
26869 (grub_linux_setup_video): ... to here (with some adjustments).
26871 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
26873 Fix memory corruption issue (spotted by Colin Watson).
26875 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
26876 causing returned size to be stored in an incorrect memory location.
26877 Fix use of uninitialized value when storing the returned size.
26879 2009-09-12 Yves Blusseau <blusseau@zetam.org>
26881 Change clean rules to properly remove files
26883 * genmk.rb: add new clean rules
26884 * Makefile.in (clean): add the new targets
26885 (mostlyclean): likewise
26887 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
26889 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
26891 * fs/ntfs.c (init_file): Understand 64-bit sizes for
26892 non-resident files.
26894 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
26896 * configure.ac: Don't look for help2man when cross-compiling. Fixes
26897 part of bug #27349.
26899 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
26901 * util/grub-mkconfig.in: Make the created config mode 400 and
26902 print a warning if it fails.
26904 2009-09-10 Robert Millan <rmh.grub@aybabtu.com>
26906 * util/grub.d/40_custom.in: Ask user to type custom entries below
26907 comment, rather than below 'exec tail' line.
26909 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
26911 * util/grub.d/40_custom.in: Make sure that the explanatory text is
26912 visible in grub.cfg.
26914 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
26916 * util/grub.d/40_custom.in: Make it a little clearer how to use this
26919 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
26921 * docs/grub.cfg: Add an example menu entry for memtest86+.
26923 2009-09-09 Felix Zielcke <fzielcke@z-51.de>
26925 * config.guess: Update to latest version from config git.
26926 * config.sub: Likewise.
26928 2009-09-08 Colin Watson <cjwatson@ubuntu.com>
26930 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
26931 unknown-command case. Fixes bug #27320.
26933 2009-09-08 Felix Zielcke <fzielcke@z-51.de>
26935 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
26936 `help' if the command exists.
26938 2009-09-06 Robert Millan <rmh.grub@aybabtu.com>
26940 * INSTALL: Require GCC 4.1.3 or later.
26942 2009-09-06 Yves Blusseau <blusseau@zetam.org>
26944 * Makefile.in (RMKFILES): add i386-qemu.rmk
26945 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
26946 $(srcdir)/stamp-h.in
26948 2009-09-05 Robert Millan <rmh.grub@aybabtu.com>
26950 * util/grub-probe.c (probe): Comment out buggy codepath, which
26951 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
26952 should be re-enabled after 1.97.
26954 2009-09-05 Felix Zielcke <fzielcke@z-51.de>
26956 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
26959 2009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
26961 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
26962 unnecessary calls to grub_error.
26964 2009-09-04 Colin Watson <cjwatson@ubuntu.com>
26966 * NEWS: Mention `keystatus' and Unicode fonts.
26968 2009-09-04 Robert Millan <rmh.grub@aybabtu.com>
26970 * configure.ac: Bump version to 1.97~beta2.
26971 * docs/version.texi: Likewise.
26973 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
26975 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
26976 containing unwind information in some cases where it previously did
26977 not. Use -fno-dwarf2-cfi-asm if available to restore the old
26978 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
26981 2009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
26983 Embedding loadenv module into grub-emu
26985 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
26987 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
26988 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
26989 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
26990 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
26991 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
26992 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
26994 2009-09-03 Magnus Granberg <zorry@ume.nu>
26996 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
26997 include -fPIE in the default specs.
26998 * configure.ac: Check if pie_possible is yes and add -fno-PIE
27001 2009-09-03 Felix Zielcke <fzielcke@z-51.de>
27003 * INSTALL: Note that GNU Bison 2.3 or later is required.
27005 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
27007 * kern/i386/pc/startup.S: Fix typo.
27009 2009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
27011 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
27014 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
27016 * docs/grub.texi (Naming convention): Describe one-based partition
27018 (Device syntax): Likewise.
27019 (File name syntax): Likewise.
27020 (Block list syntax): Likewise.
27021 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
27023 (File name syntax): Likewise.
27024 (Command-line and menu entry commands): Document acpi, blocklist,
27025 crc, export, insmod, keystatus, ls, set, and unset commands.
27027 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
27029 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
27030 to avoid implying that only one of --shift, --ctrl, or --alt may be
27033 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
27035 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
27036 rather than comparing against S_IFREG, which will almost never work.
27038 2009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
27040 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
27041 (write_blocklists): Likewise.
27043 2009-09-01 Colin Watson <cjwatson@ubuntu.com>
27045 * script/lua/grub_lua.h (fputs): Supply a format string as the first
27046 argument to grub_printf.
27048 2009-09-01 Felix Zielcke <fzielcke@z-51.de>
27050 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
27053 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
27055 * kern/file.c (grub_file_read): Spelling fix
27057 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
27059 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
27060 loading of headers in some cases.
27062 2009-08-30 Robert Millan <rmh.grub@aybabtu.com>
27064 * configure.ac: Bump version to 1.97~beta1.
27065 * docs/version.texi: Likewise.
27067 2009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
27069 * include/grub/i386/xnu.h: Add license header.
27070 include grub/err.h explicitly.
27072 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
27074 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
27075 to `ufs' in the vfs.root.mountfrom kernel parameter.
27077 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
27079 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
27081 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
27082 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
27084 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
27085 `ARRAY_SIZE' macro.
27087 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
27089 * kern/file.c (grub_file_read): Check offset.
27090 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
27091 * fs/jfs.c (grub_jfs_read_file): Likewise.
27092 * fs/ntfs.c (grub_ntfs_read): Likewise.
27093 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
27094 * fs/minix.c (grub_minix_read_file): Correct offset check.
27095 * fs/ufs.c (grub_ufs_read_file): Likewise.
27097 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
27099 * term/i386/pc/console.c (bios_data_area): Cast
27100 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
27102 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
27104 1-bit optimised blitters.
27106 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
27108 (grub_video_fbblit_replace_24bit_1bit): Likewise.
27109 (grub_video_fbblit_replace_16bit_1bit): Likewise.
27110 (grub_video_fbblit_replace_8bit_1bit): Likewise.
27111 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
27112 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
27113 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
27114 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
27116 (grub_video_fbblit_replace_24bit_1bit): Likewise.
27117 (grub_video_fbblit_replace_16bit_1bit): Likewise.
27118 (grub_video_fbblit_replace_8bit_1bit): Likewise.
27119 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
27120 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
27121 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
27122 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
27124 * video/video.c (grub_video_get_blit_format): Return
27125 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
27127 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
27129 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
27130 the first argument to grub_printf.
27132 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
27133 2009-08-28 Robert Millan <rmh.grub@aybabtu.com>
27135 Add `getkeystatus' terminal method. Add a new `keystatus' command
27138 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
27139 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
27140 modifier key bitmasks.
27141 (struct grub_term_input): Add `getkeystatus' member.
27142 (grub_getkeystatus): Add prototype.
27143 * kern/term.c (grub_getkeystatus): New function.
27145 * include/grub/i386/pc/memory.h
27146 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
27147 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
27149 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
27150 (grub_console_term_input): Set `getkeystatus' member.
27151 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
27153 (grub_usb_keyboard_getreport): Likewise.
27154 (grub_usb_keyboard_checkkey): Likewise.
27155 (grub_usb_keyboard_getkeystatus): New function.
27156 (grub_usb_keyboard_term): Set `getkeystatus' member.
27158 * commands/keystatus.c: New file.
27159 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
27160 (keystatus_mod_SOURCES): New variable.
27161 (keystatus_mod_CFLAGS): Likewise.
27162 (keystatus_mod_LDFLAGS): Likewise.
27163 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
27164 commands/keystatus.c.
27165 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
27166 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
27167 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
27168 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
27169 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
27170 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
27172 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
27174 Split befs.mod and afs.mod into *_be.mod and *.mod
27176 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
27177 (grub_fstest_SOURCES): Likewise.
27178 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
27179 (afs_be_mod_SOURCES): New variable.
27180 (afs_be_mod_CFLAGS): Likewise.
27181 (afs_be_mod_LDFLAGS): Likewise.
27182 (befs_be_mod_SOURCES): Likewise.
27183 (befs_be_mod_CFLAGS): Likewise.
27184 (befs_be_mod_LDFLAGS): Likewise.
27185 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
27186 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
27187 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
27188 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
27189 (grub_emu_SOURCES): Likewise.
27190 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
27191 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
27192 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
27193 * fs/afs_be.c: New file.
27194 * fs/befs_be.c: New file.
27195 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
27196 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
27197 (U16): Replaced with ...
27198 (grub_afs_to_cpu16): ...this. All users updated.
27199 (U32): Replaced with ...
27200 (grub_afs_to_cpu32): ...this. All users updated.
27201 (U64): Replaced with ...
27202 (grub_afs_to_cpu64): ...this. All users updated.
27203 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
27204 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
27205 (grub_afs_validate_sblock): Check only one endianness.
27206 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
27207 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
27208 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
27209 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
27210 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
27211 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
27212 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
27213 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
27215 2009-08-26 Bean <bean123ch@gmail.com>
27217 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
27219 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
27220 (grub_xfs_inode_block): Change return type to grub_uint64_t.
27221 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
27223 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
27225 NetBSD memory map support.
27227 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
27228 (grub_netbsd_btinfo_mmap_header): New structure.
27229 (grub_netbsd_btinfo_mmap_entry): Likewise.
27230 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
27232 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
27234 Enable bsd.mod on coreboot.
27236 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
27237 (bsd_mod_SOURCES): New variable.
27238 (bsd_mod_CFLAGS): Likewise.
27239 (bsd_mod_LDFLAGS): Likewise.
27240 (bsd_mod_ASFLAGS): Likewise.
27241 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
27242 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
27244 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
27246 Cleanup NetBSD root support.
27248 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
27249 grub_bsd_get_device.
27252 2009-08-25 Felix Zielcke <fzielcke@z-51.de>
27254 * util/grub.d/00_header.in: Move check for the video backend of
27255 gfxterm from here ...
27256 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
27257 a suitable video backend.
27259 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
27261 Fix breakage in grub-setup.
27263 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
27264 "msdos_partition_map".
27266 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
27268 Fix breakage in normal/auth.c.
27270 * normal/auth.c (grub_iswordseparator): New function.
27272 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
27274 Authentication support.
27276 * commands/password.c: New file.
27277 * conf/common.rmk (pkglib_MODULES): Add password.mod.
27278 (password_mod_SOURCES): New variable.
27279 (password_mod_CFLAGS): Likewise.
27280 (password_mod_LDFLAGS): Likewise.
27281 (normal_mod_SOURCES): Add normal/auth.c.
27282 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
27284 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
27285 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
27286 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
27287 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
27288 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
27289 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
27290 * include/grub/auth.h: New file.
27291 * include/grub/err.h (grub_err_t): New enum value
27292 GRUB_ERR_ACCESS_DENIED.
27293 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
27295 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
27296 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
27298 * normal/auth.c: New file.
27299 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
27300 (grub_cmdline_run): Don't allow to go to command line without
27302 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
27303 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
27304 menuentry without superuser rights.
27305 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
27306 user isn't a superuser.
27308 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
27310 Save space by inlining misc.c functions.
27312 * kern/misc.c (grub_iswordseparator): Made static.
27313 * kern/misc.c (grub_strcat): Moved from here ...
27314 * include/grub/misc.h (grub_strcat): ... here. Inlined.
27315 * kern/misc.c (grub_strncat): Moved from here ...
27316 * include/grub/misc.h (grub_strncat): ... here. Inlined.
27317 * kern/misc.c (grub_strcasecmp): Moved from here ...
27318 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
27319 * kern/misc.c (grub_strncasecmp): Moved from here ...
27320 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
27321 * kern/misc.c (grub_isalpha): Moved from here ...
27322 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
27323 * kern/misc.c (grub_isdigit): Moved from here ...
27324 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
27325 * kern/misc.c (grub_isgraph): Moved from here ...
27326 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
27327 * kern/misc.c (grub_tolower): Moved from here ...
27328 * include/grub/misc.h (grub_tolower): ... here. Inlined.
27330 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
27332 * script/sh/function.c (grub_script_function_find): Cut error message
27333 not to flood terminal.
27334 * script/sh/lexer.c (grub_script_yylex): Remove command line length
27336 * script/sh/script.c (grub_script_arg_add): Duplicate string.
27338 2009-08-24 Colin Watson <cjwatson@ubuntu.com>
27340 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
27341 `report' grub_uint8_t *.
27342 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
27343 Use a 50-millisecond timeout rather than just repeating
27344 grub_usb_keyboard_getreport 50 times.
27345 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
27347 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
27349 Rename *_partition_map to part_*
27351 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
27352 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
27353 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
27354 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
27356 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
27358 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
27359 * util/grub-probe.c (probe_partmap): Don't transform partition name
27360 to get module name.
27362 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
27364 Fix OpenBSD and NetBSD support.
27366 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
27367 memory address conflict.
27368 (OPENBSD_MMAP_ACPI): New definition.
27369 (OPENBSD_MMAP_NVS): Likewise.
27370 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
27371 and OPENBSD_MMAP_NVS.
27372 Add memory map terminator
27373 Explicit cast when calling grub_unix_real_boot.
27374 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
27376 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
27378 Let user specify NetBSD root device.
27380 * loader/i386/bsd.c (netbsd_root): New variable.
27381 (netbsd_opts): New option 'root'.
27382 (NETBSD_ROOT_ARG): New macro.
27383 (grub_netbsd_boot): Use 'netbsd_root'.
27384 (grub_bsd_unload): Free 'netbsd_root'.
27385 (grub_cmd_netbsd): Fill 'netbsd_root'.
27387 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
27389 Support for 64-bit NetBSD.
27391 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
27392 point when booting non-FreeBSD.
27394 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
27396 Support --no-smp and --no-acpi for NetBSD.
27398 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
27399 (NETBSD_AB_NOACPI): Likewise.
27400 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
27401 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
27403 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
27405 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
27407 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
27408 errors. Call grub_error when needed.
27410 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
27412 * commands/search.c (search_fs): Try searching without autoload first.
27413 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
27414 filesystem module explicitly for faster booting.
27416 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
27418 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
27420 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
27422 * util/grub.d/30_os-prober.in: Disable os-prober if
27423 `GRUB_DISABLE_OS_PROBER' was set to true.
27425 2009-08-23 Robert Millan <rmh.grub@aybabtu.com>
27427 * partmap/pc.c: Rename to ...
27428 * partmap/msdos.c: ... this. Update all users.
27429 (grub_pc_partition_map): Rename to ...
27430 (grub_msdos_partition_map): ... this. Update all users.
27432 * parttool/pcpart.c: Rename to ...
27433 * parttool/msdospart.c: ... this. Update all users.
27435 * include/grub/pc_partition.h: Rename to ...
27436 * include/grub/msdos_partition.h: ... this. Update all users.
27437 (grub_pc_partition_bsd_entry): Rename to ...
27438 (grub_msdos_partition_bsd_entry): ... this. Update all users.
27439 (grub_pc_partition_disk_label): Rename to ...
27440 (grub_msdos_partition_disk_label): ... this. Update all users.
27441 (grub_pc_partition_entry): Rename to ...
27442 (grub_msdos_partition_entry): ... this. Update all users.
27443 (grub_pc_partition_mbr): Rename to ...
27444 (grub_msdos_partition_mbr): ... this. Update all users.
27445 (grub_pc_partition): Rename to ...
27446 (grub_msdos_partition): ... this. Update all users.
27447 (grub_pc_partition_is_empty): Rename to ...
27448 (grub_msdos_partition_is_empty): ... this. Update all users.
27449 (grub_pc_partition_is_extended): Rename to ...
27450 (grub_msdos_partition_is_extended): ... this. Update all users.
27451 (grub_pc_partition_is_bsd): Rename to ...
27452 (grub_msdos_partition_is_bsd): ... this. Update all users.
27454 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
27455 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
27456 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
27457 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
27458 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
27459 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
27460 (gpt_mod_LDFLAGS): Rename to ...
27461 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
27462 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
27463 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
27464 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
27465 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
27466 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
27467 (part_gpt_mod_LDFLAGS): ... this.
27468 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
27469 `pcpart.mod' to `msdospart.mod'.
27470 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
27472 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
27473 (msdospart_mod_LDFLAGS): ... this.
27475 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
27477 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
27478 (openbsd_opts): Likewise.
27479 (netbsd_opts): Likewise.
27480 (freebsd_flags): Added 0 terminator.
27481 (openbsd_flags): Likewise.
27482 (netbsd_flags): Likewise.
27483 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
27484 (grub_cmd_freebsd): Transformed into extended command.
27485 (grub_cmd_openbsd): Likewise.
27486 (grub_cmd_netbsd): Likewise.
27487 (cmd_freebsd): Changed type to grub_extcmd_t.
27488 (cmd_openbsd): Likewise.
27489 (cmd_netbsd): Likewise.
27490 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
27491 grub_cmd_openbsd as extended commands.
27492 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
27493 cmd_netbsd and cmd_openbsd
27495 2009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
27497 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
27499 2009-08-21 Pavel Roskin <proski@gnu.org>
27501 * Makefile.in (install-local): When checking if a file is in the
27502 build directory, use "test -e" to detect symlinks.
27504 * Makefile.in (install-local): Remove all files in
27505 $(DESTDIR)$(pkglibdir) before installing new files there.
27507 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
27509 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
27512 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
27514 * util/grub-mkconfig.in: Don't use gfxterm by default if not
27515 explicitly specified by the user.
27517 2009-08-18 Pavel Roskin <proski@gnu.org>
27519 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
27520 grub_uint8_t pointer for data.
27521 * include/grub/fbutil.h (struct grub_video_fbblit_info):
27523 * video/fb/fbutil.c: Remove unnecessary casts.
27525 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
27529 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
27530 (grub_vbe_set_video_mode): Save active mode info
27531 only after setting the mode.
27532 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
27535 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
27537 Rename variables for clarity.
27539 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
27540 (active_vbe_mode_info): ... this. All users updated.
27541 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
27543 (initial_mode): Rename to ...
27544 (initial_vbe_mode): ... this. All users updated.
27545 (mode_in_use): Rename to ..
27546 (vbe_mode_in_use): ... this. All users updated.
27547 (mode_list): Rename to ..
27548 (vbe_mode_list): ... this. All users updated.
27549 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
27550 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
27551 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
27552 'mode_list_size' to 'vbe_mode_list_size'.
27553 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
27554 'best_mode_info' to 'best_vbe_mode_info' and
27555 'best_mode' to 'best_vbe_mode'
27557 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
27559 Remove duplicate grub_video_fb_get_video_ptr.
27561 * include/grub/fbutil.h (get_data_ptr): Rename to ...
27562 (grub_video_fb_get_video_ptr): ... this.
27563 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
27564 * video/fb/fbutil.c: Add comment about addressing.
27565 (get_data_ptr): Rename to ...
27566 (grub_video_fb_get_video_ptr): ... this. All users updated.
27567 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
27569 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
27571 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
27572 grub_dprintf() that was just added.
27574 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
27576 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
27577 (DEFAULT_VIDEO_MODE): Remove macros.
27578 (grub_linux_boot): Remove assumption that Linux has FB support,
27579 and use "text" as default video mode.
27581 2009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
27583 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
27585 * fs/fat.c (grub_fat_read_data): Likewise.
27587 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
27589 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
27591 (grub_module): Likewise.
27593 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
27595 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
27596 mbi->cmdline but free playground.
27598 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
27600 Handle group offset on UFS1.
27602 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
27603 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
27605 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
27607 Split ufs.mod into ufs1.mod and ufs2.mod.
27609 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
27610 (grub_fstest_SOURCES): Likewise.
27611 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
27612 (ufs_mod_SOURCES): Remove.
27613 (ufs_mod_CFLAGS): Likewise.
27614 (ufs_mod_LDFLAGS): Likewise.
27615 (ufs1_mod_SOURCES): New variable.
27616 (ufs1_mod_CFLAGS): Likewise.
27617 (ufs1_mod_LDFLAGS): Likewise.
27618 (ufs2_mod_SOURCES): New variable.
27619 (ufs2_mod_CFLAGS): Likewise.
27620 (ufs2_mod_LDFLAGS): Likewise.
27621 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
27622 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
27624 (grub_emu_SOURCES): Likewise.
27625 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
27626 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
27627 (grub_setup_SOURCES): Likewise.
27628 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
27629 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
27630 (grub_setup_SOURCES): Likewise.
27631 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
27633 * fs/ufs2.c: New file.
27634 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
27636 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
27640 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
27641 subsystem at the end.
27642 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
27643 (video_fb_mod_SOURCES): New variable.
27644 (video_fb_mod_CFLAGS): Likewise.
27645 (video_fb_mod_LDFLAGS): Likewise.
27646 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
27647 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
27648 * video/i386/pc/vbeblit.c: Moved from here ...
27649 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
27650 * video/i386/pc/vbefill.c: Moved from here ...
27651 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
27652 * video/i386/pc/vbeutil.c: Moved from here ...
27653 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
27654 * include/grub/i386/pc/vbeblit.h: Moved from here ...
27655 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
27656 * include/grub/i386/pc/vbefill.h: Moved from here ...
27657 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
27658 * include/grub/i386/pc/vbeutil.h: Moved from here ...
27659 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
27660 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
27661 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
27662 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
27663 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
27664 (grub_video_adapter): Added 'get_info_and_fini'.
27665 (grub_video_get_info_and_fini): New prototype.
27666 (grub_video_set_mode): make modestring const char *.
27667 * loader/i386/linux.c (grub_linux_setup_video): Use
27668 grub_video_get_info_and_fini.
27669 (grub_linux_boot): Move modesetting just before booting.
27670 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
27671 grub_video_get_info_and_fini.
27672 * video/i386/pc/vbe.c: Moved framebuffer part ...
27673 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
27674 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
27675 grub_video_fbstd_colors and grub_video_fb_set_palette.
27676 (grub_video_vbe_init): Clear 'framebuffer' variable and use
27677 grub_video_fb_init.
27678 (grub_video_vbe_fini): Use grub_video_fb_fini.
27679 (grub_video_vbe_setup): Use framebuffer.render_target instead of
27680 render_target and use grub_video_fb_set_active_render_target and
27681 grub_video_fb_set_palette.
27682 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
27683 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
27684 (grub_video_vbe_adapter): Use framebuffer.
27685 * video/video.c (grub_video_get_info_and_fini): New function.
27686 (grub_video_set_mode): Make modestring const char *.
27687 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
27688 values are already initialised.
27690 2009-08-14 Pavel Roskin <proski@gnu.org>
27692 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
27694 * boot/i386/pc/diskboot.S: Likewise.
27695 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
27696 sectors allow compilation on MacOSX.
27697 * conf/i386-pc.rmk: Enable unconditional compilation of
27700 2009-08-13 Colin Watson <cjwatson@ubuntu.com>
27702 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
27703 * util/grub.d/00_header.in: Enter interruptible sleep if
27704 GRUB_HIDDEN_TIMEOUT is set.
27706 2009-08-13 Yves Blusseau <blusseau@zetam.org>
27708 * include/grub/symbol.h: Add the LOCAL macro.
27709 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
27710 starting with "L_".
27712 2009-08-13 Pavel Roskin <proski@gnu.org>
27714 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
27715 any modern compilers we support.
27717 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
27718 Use local labels starting with "L_" so that Apple assembler
27719 knows they are local.
27721 2009-08-10 Robert Millan <rmh.grub@aybabtu.com>
27723 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
27724 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
27725 (bsd_kernel_types): ... this enum.
27727 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
27728 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
27729 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
27731 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
27732 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
27733 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
27736 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
27738 * util/grub-dumpdevtree: Moved from here ...
27739 * util/i386/efi/grub-dumpdevtree: ... to here.
27740 (hexify): New function. Converts a string to its hex version.
27741 Generate hex versions of "efi" and "device-properties" by calling
27742 hexify() on the ASCII strings rather than by hardcoding numbers.
27744 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
27746 * fs/jfs.c: Update copyright year.
27748 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
27750 * util/grub.d/00_header.in: Fix a comment.
27751 * util/grub.d/10_linux.in: Likewise.
27752 * util/grub.d/10_windows.in: Likewise.
27753 * util/grub.d/10_hurd.in: Likewise.
27755 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
27757 * util/grub-mkconfig.in: Allow the user to specify the used font
27760 2009-08-08 Pavel Roskin <proski@gnu.org>
27762 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
27763 available, xfs.mod needs it now.
27765 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
27766 the "g" modifier in sed when the intention is to strip something
27767 once. This fixes comparison of kernels with multiple dashes.
27769 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
27770 on it. Add missing space before closing bracket. Fix
27771 misleading formatting.
27773 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
27775 * docs/grub.texi: Major overhaul. Remove all sections that are
27776 specific to GRUB Legacy, or mostly composed of Legacy-specific
27779 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
27781 * docs/version.texi: New file. Provides version information for
27784 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
27786 * docs/grub.texi: Update CVS information to SVN.
27787 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
27789 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
27791 * util/grub-mkconfig.in: Remove a wrong `fi'.
27793 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
27795 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
27796 (grub_jfs_uuid): New function.
27797 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
27799 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
27801 * util/grub-mkconfig_lib.in (font_path): Move the functionality
27803 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
27804 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
27806 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
27808 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
27809 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
27812 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
27813 not just "vmlinu[zx]".
27814 Moved from here ...
27815 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
27818 * util/grub.d/10_linux.in (find_latest): Moved from here ...
27819 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
27822 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
27824 * util/grub.d/10_freebsd.in: Use an absolute device path for
27825 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
27827 2009-08-06 Felix Zielcke <fzielcke@z-51.de>
27829 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
27830 handling of multiple abstraction modules.
27832 2009-08-04 Robert Millan <rmh.grub@aybabtu.com>
27834 Fix a bug resulting in black screen when loading Linux using a
27837 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
27840 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
27841 (grub_vbe_bios_getset_dac_palette_width): New function.
27842 (grub_vbe_bios_get_dac_palette_width)
27843 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
27844 grub_vbe_bios_getset_dac_palette_width()).
27846 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
27847 check for return status.
27848 (grub_vbe_get_video_mode_info): When getting information for a packed
27849 mode (<= 8 bpp), obtain DAC palette width using
27850 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
27851 {red,green,blue}_mark_size.
27853 2009-08-04 Felix Zielcke <fzielcke@z-51.de>
27855 * commands/search.c (options): Fix help output to match actual code.
27857 2009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
27859 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
27862 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
27864 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
27865 on XFS or ReiserFS.
27867 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
27869 Support Apple partition map with sector size different from 512 bytes.
27871 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
27872 (apple_partition_map_iterate): Respect 'aheader.blocksize'
27873 and 'apart.partmap_size'.
27875 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
27876 2009-08-01 Robert Millan <rmh.grub@aybabtu.com>
27880 * commands/i386/cpuid.c (options): New variable.
27881 (grub_cmd_cpuid): Return real error.
27882 (GRUB_MOD_INIT(cpuid)): Declare options.
27884 2009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
27886 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
27889 2009-07-31 Bean <bean123ch@gmail.com>
27891 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
27893 (grub_fshelp_node): Move inode field to the end.
27894 (grub_xfs_data): Remove inode field.
27895 (grub_xfs_inode_block): Calculate inode size using sblock.
27896 (grub_xfs_inode_offset): Likewise.
27897 (grub_xfs_read_inode): Calculate inode size using sblock.
27898 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
27899 (grub_xfs_iterate_dir): Calculate inode size using sblock.
27900 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
27901 to match inode size.
27902 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
27903 not accessible when data is null.
27904 (grub_xfs_open): Likewise.
27906 2009-07-31 Bean <bean123ch@gmail.com>
27908 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
27909 Don't change pv->disk if it's already set.
27911 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
27912 (grub_raid_register): ... here.
27913 (grub_raid_rescan): Removed.
27915 * include/grub/raid.h (grub_raid_rescan): Removed.
27917 * util/grub-fstest.c: Remove include file <grub/raid.h>.
27918 (fstest): Replace grub_raid_rescan with module fini function followed
27921 * util/grub-probe.c: Add include file <grub/raid.h>.
27922 (probe_raid_level): New function.
27923 (probe): Detect abstraction by walking the disk device, support two
27924 level of abstraction (LVM on RAID) when detecting partition map.
27926 2009-07-31 Pavel Roskin <proski@gnu.org>
27928 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
27929 to grub_zalloc(), it was erroneous.
27930 Reported by Bean <bean123ch@gmail.com>
27932 2009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
27934 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
27935 embedding zone, not only the first one.
27937 2009-07-29 Joe Auricchio <jauricchio@gmail.com>
27939 * term/gfxterm.c (clear_char): New function.
27940 (grub_virtual_screen_setup): Use clear_char.
27941 (scroll_up): Likewise.
27942 (grub_virtual_screen_cls): Likewise.
27944 2009-07-29 Felix Zielcke <fzielcke@z-51.de>
27946 * util/deviceiter.c (get_acceleraid_disk_name): New static
27948 (grub_util_iterate_devices): Handle Accelraid devices.
27949 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
27951 2009-07-28 Robert Millan <rmh.grub@aybabtu.com>
27953 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
27954 separator for the suggested gfxpayload string (';' collides with the
27955 parser and needs escaping).
27957 2009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
27959 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
27960 Clear direction flag before jumping to OS.
27961 (grub_multiboot2_real_boot): Likewise.
27963 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
27965 * util/i386/pc/grub-install: Fix parsing of --disk-module
27968 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
27970 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
27973 2009-07-26 Felix Zielcke <fzielcke@z-51.de>
27975 * util/grub-mkconfig.in (package_version): New variable.
27976 Use it do display the version.
27978 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
27980 * kern/file.c (grub_file_open): Revert to previous check with
27983 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
27985 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
27986 from help line. It's out of sync with code.
27988 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
27990 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
27991 entries on failed boot.
27993 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
27995 * kern/file.c (grub_file_open): Fix an error check.
27997 2009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
27999 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
28000 partition map couldn't be identified.
28002 2009-07-23 Pavel Roskin <proski@gnu.org>
28004 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
28005 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
28006 case of little endian words becomes just an optimization.
28007 Respect const modifier.
28008 (md5_final): Use code that doesn't depend on endianness.
28010 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
28011 to avoid loss of upper bits if align is unsigned and shorter
28014 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
28016 UUID support for UFS
28018 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
28019 (grub_ufs_uuid): New function.
28020 (grub_ufs_fs): add .uuid
28022 2009-07-21 Pavel Roskin <proski@gnu.org>
28024 * kern/dl.c (grub_dl_check_header): Make static.
28026 2009-07-21 Felix Zielcke <fzielcke@z-51.de>
28028 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
28029 add drivemap for Vista. It breaks Windows 7.
28031 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
28033 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
28036 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
28040 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
28041 (grub_fstest_SOURCES): Likewise.
28042 (pkglib_MODULES): Add befs.mod.
28043 (befs_mod_SOURCES): New variable.
28044 (befs_mod_CFLAGS): Likewise.
28045 (befs_mod_LDFLAGS): Likewise.
28046 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
28047 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
28048 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28049 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
28050 (grub_setup_SOURCES): Likewise.
28051 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28052 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28053 (grub_setup_SOURCES): Likewise.
28054 * fs/befs.c: New file.
28055 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
28056 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
28057 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
28058 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
28059 (B_KEY_INDEX_ALIGN): New declaration.
28060 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
28061 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
28062 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
28063 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
28064 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
28065 (grub_afs_mount) [MODE_BFS]: Likewise.
28066 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
28067 (grub_afs_fs): Use GRUB_AFS_FSNAME
28068 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
28069 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
28070 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
28071 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
28073 2009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
28075 * util/getroot.c (find_root_device): Add support for MacOSX.
28076 * util/hostdisk.c: Likewise.
28078 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
28080 * font/font.c (find_glyph): Check whether a font is present to avoid
28081 segmentation fault.
28083 2009-07-20 Joe Auricchio <jauricchio@gmail.com>
28085 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
28087 2009-07-20 Pavel Roskin <proski@gnu.org>
28089 * configure.ac: Trim excessively wordy excuses.
28091 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
28093 Add symlink, mtime and label support to AtheFS.
28095 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
28096 (grub_afs_iterate_dir): Handle symlinks.
28097 (grub_afs_open): Use grub_afs_read_symlink.
28098 (grub_afs_dir): Likewise.
28100 (grub_afs_label): New function.
28101 (grub_afs_fs): Add grub_afs_label.
28102 (grub_afs_read_symlink): New function.
28104 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
28106 Fix AtheFS support.
28108 * fs/afs.c: Fix comments style.
28109 (grub_afs_blockrun): Declare as packed.
28110 (grub_afs_datastream): Likewise.
28111 (grub_afs_bnode): Likewise.
28112 (grub_afs_btree): Likewise.
28113 (grub_afs_sblock): Likewise.
28114 Declare `name' as char.
28115 (grub_afs_inode): Declare as packed.
28116 Change void *vnode to grub_uint32_t unused.
28117 (grub_afs_iterate_dir): Check that key_size is positive.
28118 (grub_afs_mount): Don't read superblock twice.
28119 (grub_afs_dir): Don't free node in case of error,
28120 grub_fshelp_find_file already handles this.
28121 (grub_afs_open): Likewise.
28123 2009-07-19 Pavel Roskin <proski@gnu.org>
28125 * Makefile.in: Remove LIBLZO and enable_lzo.
28126 * conf/i386-pc.rmk: Remove lzo support.
28127 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
28128 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
28130 * kern/i386/pc/lzo1x.S: Remove.
28131 * kern/i386/pc/startup.S: Remove lzo support.
28132 * util/i386/pc/grub-mkimage.c: Likewise.
28134 2009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
28136 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
28137 * fs/xfs.c (grub_xfs_dir): Likewise.
28138 * fs/afs.c (grub_afs_dir): Likewise.
28139 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
28140 (grub_iso9660_open): Likewise.
28141 * fs/jfs.c (grub_jfs_open): Likewise.
28142 * fs/ext2.c (grub_ext2_dir): Likewise.
28143 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
28144 * script/sh/lexer.c (grub_script_yylex): Likewise.
28146 2009-07-16 Pavel Roskin <proski@gnu.org>
28148 * configure.ac: Never add "-c" to CFLAGS.
28150 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
28152 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
28153 grub_cv_cc_efiemu should be used.
28155 * configure.ac: Typo fixes.
28157 * kern/mm.c (grub_zalloc): New function.
28158 (grub_debug_zalloc): Likewise.
28159 * include/grub/mm.h: Declare grub_zalloc() and
28160 grub_debug_zalloc().
28161 * util/misc.c (grub_zalloc): New function.
28162 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
28163 instead of grub_malloc(), remove unneeded initializations.
28164 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
28165 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
28166 * commands/parttool.c (grub_cmd_parttool): Likewise.
28167 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
28168 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
28169 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
28170 * disk/usbms.c (grub_usbms_finddevs): Likewise.
28171 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
28172 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
28173 (grub_cmd_efiemu_pnvram): Likewise.
28174 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
28175 * fs/iso9660.c (grub_iso9660_mount): Likewise.
28176 (grub_iso9660_iterate_dir): Likewise.
28177 * fs/jfs.c (grub_jfs_opendir): Likewise.
28178 * fs/ntfs.c (list_file): Likewise.
28179 (grub_ntfs_mount): Likewise.
28180 * kern/disk.c (grub_disk_open): Likewise.
28181 * kern/dl.c (grub_dl_load_core): Likewise.
28182 * kern/elf.c (grub_elf_file): Likewise.
28183 * kern/env.c (grub_env_context_open): Likewise.
28184 (grub_env_set): Likewise.
28185 (grub_env_set_data_slot): Likewise.
28186 * kern/file.c (grub_file_open): Likewise.
28187 * kern/fs.c (grub_fs_blocklist_open): Likewise.
28188 * loader/i386/multiboot.c (grub_module): Likewise.
28189 * loader/xnu.c (grub_xnu_create_key): Likewise.
28190 (grub_xnu_create_value): Likewise.
28191 * normal/main.c (grub_normal_add_menu_entry): Likewise.
28192 (read_config_file): Likewise.
28193 * normal/menu_entry.c (make_screen): Likewise.
28194 * partmap/sun.c (sun_partition_map_iterate): Likewise.
28195 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
28196 * script/sh/script.c (grub_script_parse): Likewise.
28197 * video/bitmap.c (grub_video_bitmap_create): Likewise.
28198 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
28199 * video/readers/png.c (grub_png_output_byte): Likewise.
28200 (grub_video_reader_png): Likewise.
28202 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
28204 Enable all targets that can be built by default
28206 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
28207 grub-mkfont and grub-fstest if they can be built
28209 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
28211 Fix hang and segmentation fault in grub-emu-usb
28213 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
28214 * util/usb.c (grub_libusb_devices): likewise
28215 (grub_libusb_init): rename to ...
28216 (GRUB_MOD_INIT (libusb)):...this
28217 (grub_libusb_fini): rename to ..
28218 (GRUB_MOD_FINI (libusb)):...this
28219 * disk/usbms.c (grub_usbms_transfer): fix retry logic
28220 * include/grub/disk.h (grub_raid_init): removed, it's useless
28221 (grub_raid_fini): likewise
28222 (grub_lvm_init): likewise
28223 (grub_lvm_fini): likewise
28224 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
28227 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
28231 * Makefile.in (LIBUSB): new macro
28232 * genmk.rb (Utility/print_tail): new method
28233 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
28234 (top level): call util.print_tail at the end.
28236 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
28238 Make FreeBSD accept zpool.cache
28240 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
28241 type is /boot/zfs/zpool.cache
28243 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
28247 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
28248 correct wrong typedef
28249 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
28251 2009-07-15 Pavel Roskin <proski@gnu.org>
28253 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
28254 * kern/disk.c (struct grub_disk_cache): Likewise.
28256 * commands/probe.c (options): Typo fix.
28258 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
28259 Increase to 0x5a to accommodate FAT32. Adjust other offsets
28261 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
28263 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
28264 the end of "Error" to make the message more readable.
28266 * boot/i386/pc/boot.S (kernel_segment): Remove.
28267 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
28270 * boot/i386/pc/boot.S (boot_version): Remove.
28271 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
28274 * include/grub/i386/pc/boot.h: Sort all offsets.
28275 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
28276 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
28277 * boot/i386/pc/boot.S: Assert location of every offset listed in
28278 include/grub/i386/pc/boot.h.
28280 2009-07-13 Pavel Roskin <proski@gnu.org>
28282 * include/grub/i386/coreboot/machine.h: Rename
28283 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
28284 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
28285 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
28287 * kern/dl.c: Force native word size to suppress warnings when
28288 compiling grub-emu.
28290 * kern/device.c (grub_device_iterate): Change struct part_ent to
28291 hold the name, not a pointer to it. Use one grub_malloc() per
28292 partition, not two. Free partition_name if grub_malloc() fails.
28293 Set ents to NULL only before grub_partition_iterate() is called.
28295 2009-07-11 Bean <bean123ch@gmail.com>
28297 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
28300 2009-07-10 Bean <bean123ch@gmail.com>
28301 2009-07-10 Robert Millan <rmh.grub@aybabtu.com>
28303 * kern/ieee1275/openfw.c (grub_children_iterate)
28304 (grub_devalias_iterate): Fix size evaluation for property or path
28305 strings, which was broken since r2132.
28307 2009-07-07 Pavel Roskin <proski@gnu.org>
28309 * commands/search.c (search_file): Merge into ...
28310 (search_fs): ... this. Accept search type as argument.
28311 (grub_cmd_search): Pass search type to search_fs().
28313 * include/grub/util/console.h: New file.
28314 * util/console.c: Use it instead of grub/machine/console.h.
28315 * util/grub-emu.c: Likewise.
28317 * lib/arg.c (find_long_option): Remove.
28318 (find_long): Add `len' argument, make `s' const char *.
28319 (grub_arg_parse): Parse long options in place, not in a
28322 2009-07-06 Pavel Roskin <proski@gnu.org>
28324 * commands/search.c (search_fs): Fix potential NULL pointer
28327 * commands/search.c (search_fs): Replace QUID macro with quid_fn
28330 2009-07-06 Daniel Mierswa <impulze@impulze.org>
28332 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
28335 2009-07-05 Pavel Roskin <proski@gnu.org>
28337 * include/grub/i386/linux.h (struct linux_kernel_params):
28338 Restore padding3, it's still needed.
28340 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
28342 * util/osdetect.lua: Likewise.
28344 2009-07-05 Bean <bean123ch@gmail.com>
28346 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
28348 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
28349 (grub_lua_getenv): Likewise.
28350 (grub_lua_setenv): Likewise.
28351 (save_errno): New function.
28352 (push_result): Likewise.
28353 (grub_lua_enum_device): Likewise.
28354 (grub_lua_enum_file): Likewise.
28355 (grub_lua_file_open): Likewise.
28356 (grub_lua_file_close): Likewise.
28357 (grub_lua_file_seek): Likewise.
28358 (grub_lua_file_read): Likewise.
28359 (grub_lua_file_getline): Likewise.
28360 (grub_lua_file_getsize): Likewise.
28361 (grub_lua_file_getpos): Likewise.
28362 (grub_lua_file_eof): Likewise.
28363 (grub_lua_file_exist): Likewise.
28364 (grub_lua_add_menu): Likewise.
28366 * script/lua/grub_lua.h (isupper): New inline function.
28367 (islower): Likewise.
28368 (ispunct): Likewise.
28369 (isxdigit): Likewise.
28370 (strcspn): Change to normal function.
28371 (strpbkr): New function declaration.
28372 (memchr): Likewise.
28374 * script/lua/grub_main.c (scan_str): New function.
28375 (strcspn): Likewise.
28376 (strpbrk): Likewise.
28377 (memchr): Likewise.
28379 * script/lua/linit.c (lualibs): Enable the string library.
28381 * util/osdetect.lua: New file.
28383 2009-07-04 Robert Millan <rmh.grub@aybabtu.com>
28385 * include/grub/i386/linux.h (struct linux_kernel_params): Add
28386 `capabilities' member.
28388 2009-07-02 Pavel Roskin <proski@gnu.org>
28390 * genparttoollist.sh: Add missing newline at the end.
28392 2009-07-01 Pavel Roskin <proski@gnu.org>
28394 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
28396 * util/hostdisk.c (open_device): Remove `const' from
28397 `sysctl_size', as sysctlbyname() can change it (in this case it
28398 doesn't actually happen).
28400 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
28401 using signed long int constants.
28403 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
28404 constant to avoid a warning on FreeBSD.
28406 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
28409 * Makefile.in: Install include/grub/machine symlink.
28411 * Makefile.in: When installing symlinks, use "cp -fR", which
28412 works on FreeBSD and MacOSX.
28413 From Yves Blusseau <cl7m42e02@sneakemail.com>
28415 * kern/dl.c (grub_dl_resolve_symbol): Make static.
28416 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
28418 * util/misc.c: Move grub_reboot() and grub_halt() ...
28419 * util/grub-emu.c: ... here. Make main_env static.
28420 * include/grub/util/misc.h: Remove main_env.
28422 * kern/mm.c: Use correct format to print size_t.
28424 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
28425 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
28426 * kern/powerpc/dl.c: Likewise.
28427 * kern/sparc64/dl.c: Likewise.
28428 * kern/x86_64/dl.c: Likewise.
28430 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
28432 Fix grub-emu build on sparc64-ieee1275.
28434 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
28435 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
28437 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
28439 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
28440 (grub_reboot, grub_halt): New functions.
28442 * util/i386/pc/misc.c: Delete. Update all users.
28443 * util/sparc64/ieee1275/misc.c: Likewise.
28444 * util/powerpc/ieee1275/misc.c: Likewise.
28446 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
28448 * conf/i386.rmk (setjmp_mod_SOURCES)
28449 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
28450 * conf/common.rmk (setjmp_mod_SOURCES)
28451 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
28452 to use $(target_cpu).
28453 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
28454 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
28455 * conf/powerpc-ieee1275.rmk: Likewise.
28456 * conf/sparc64-ieee1275.rmk: Likewise.
28458 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
28459 $(target_cpu) for kern/$(target_cpu)/dl.c.
28460 * conf/i386-efi.rmk: Likewise.
28461 * conf/i386-ieee1275.rmk: Likewise.
28462 * conf/x86_64-efi.rmk: Likewise.
28463 * conf/i386-coreboot.rmk: Likewise.
28464 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
28465 $(target_cpu) for kern/$(target_cpu)/dl.c and for
28466 kern/$(target_cpu)/cache.S.
28467 * conf/sparc64-ieee1275.rmk: Likewise.
28469 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
28471 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
28472 type to `grub_uint8_t', and adjust `padding9' accordingly.
28474 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
28476 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
28478 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
28479 assembly in final jump, using register constraints.
28481 (grub_linux_boot): For text mode, initialize `have_vga' using
28482 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
28484 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
28485 right before the final jump.
28487 Set `video_mode' to 0x3.
28489 Document initialization of `video_page', `video_mode' and
28492 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
28494 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
28495 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
28496 and set GRUB_LINUX_FLAG_QUIET appropriately.
28498 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
28500 Fix build on Debian / sparc.
28502 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
28504 2009-06-28 Pavel Roskin <proski@gnu.org>
28506 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
28509 * util/grub.d/10_linux.in: Match SUSE style initrd names.
28511 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
28513 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
28516 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
28520 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
28521 file can't be opened. grub_file_open() is already supposed to set
28522 grub_errno / grub_errmsg appropriately.
28523 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
28525 2009-06-27 Pavel Roskin <proski@gnu.org>
28526 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
28528 * include/grub/dl.h: Include grub/elf.h.
28529 (struct grub_dl): Add symtab field.
28530 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
28531 GRUB_MODULES_MACHINE_READONLY.
28532 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
28533 of the header for read-only modules.
28534 (grub_dl_unload): Free mod->symtab for read-only modules.
28535 * kern/i386/dl.c: Use mod->symtab.
28536 * kern/powerpc/dl.c: Likewise.
28537 * kern/sparc64/dl.c: Likewise.
28538 * kern/x86_64/dl.c: Likewise.
28540 * conf/i386-qemu.rmk: New file.
28541 * kern/i386/qemu/startup.S: Likewise.
28542 * kern/i386/qemu/mmap.c: Likewise.
28543 * boot/i386/qemu/boot.S: Likewise.
28544 * include/grub/i386/qemu/time.h: Likewise.
28545 * include/grub/i386/qemu/serial.h: Likewise.
28546 * include/grub/i386/qemu/kernel.h: Likewise.
28547 * include/grub/i386/qemu/console.h: Likewise.
28548 * include/grub/i386/qemu/boot.h: Likewise.
28549 * include/grub/i386/qemu/init.h: Likewise.
28550 * include/grub/i386/qemu/machine.h: Likewise.
28551 * include/grub/i386/qemu/loader.h: Likewise.
28552 * include/grub/i386/qemu/memory.h: Likewise.
28554 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
28555 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
28556 [qemu] (pkglib_IMAGES): Add `boot.img'.
28557 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
28558 [qemu] (boot_img_FORMAT): New variables.
28559 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
28560 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
28561 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
28562 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
28563 [qemu] (kernel_img_FORMAT): New variables.
28565 * configure.ac: Recognise `i386-qemu'.
28567 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
28568 (for no compression).
28569 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
28570 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
28571 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
28572 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
28575 2009-06-27 Pavel Roskin <proski@gnu.org>
28577 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
28579 * efiemu/prepare32.c: Likewise.
28580 * efiemu/prepare64.c: Likewise.
28582 2009-06-26 Pavel Roskin <proski@gnu.org>
28584 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
28585 * include/grub/elf.h: Define symbols without "32" or "64" based
28586 on GRUB_TARGET_WORDSIZE.
28587 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
28588 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
28590 * efiemu/loadcore64.c: Likewise.
28591 * loader/i386/bsd32.c: Likewise.
28592 * loader/i386/bsd64.c: Likewise.
28593 * kern/dl.c: Remove own ELF definitions.
28594 * util/i386/efi/grub-mkimage.c: Likewise.
28596 2009-06-23 Robert Millan <rmh.grub@aybabtu.com>
28598 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
28599 segment 0x0 unconditionally, because the reference generated by
28600 GAS is an absolute address.
28602 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
28604 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
28605 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
28607 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
28609 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
28610 indexes. Check for -f explicitly.
28611 (search_file): Improve error message.
28612 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
28614 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
28616 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
28617 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
28619 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
28621 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
28622 * conf/i386-ieee1275.rmk: Likewise.
28623 * conf/i386-coreboot.rmk: Likewise.
28625 * kern/i386/pc/startup.S (grub_stop): Remove function.
28626 * kern/i386/ieee1275/startup.S: Likewise.
28627 * kern/i386/coreboot/startup.S: Likewise.
28628 * kern/i386/misc.S (grub_stop): New function.
28630 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
28632 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
28633 * kern/i386/realmode.S (real_to_prot): ... to here.
28635 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
28637 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
28639 (kernel_elf_SOURCES): Rename to ...
28640 (kernel_img_SOURCES): ... this.
28641 (kernel_elf_HEADERS): Rename to ...
28642 (kernel_img_HEADERS): ... this. Update all users.
28643 (kernel_elf_ASFLAGS): Rename to ...
28644 (kernel_img_ASFLAGS): ... this.
28645 (kernel_elf_CFLAGS): Rename to ...
28646 (kernel_img_CFLAGS): ... this.
28647 (kernel_elf_LDFLAGS): Rename to ...
28648 (kernel_img_LDFLAGS): ... this.
28649 * conf/i386-coreboot.rmk: Likewise.
28650 * conf/powerpc-ieee1275.rmk: Likewise.
28652 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
28655 2009-06-21 Pavel Roskin <proski@gnu.org>
28657 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
28658 to match nested functions.
28659 * loader/sparc64/ieee1275/linux.c: Likewise.
28661 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
28663 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
28665 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
28666 all i386 platforms.
28668 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
28670 Fix asm file handling on ELF, and remove workarounds.
28672 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
28673 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
28674 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
28675 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
28677 2009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
28679 Load BSD ELF modules
28681 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
28682 and loader/i386/bsd64.c
28683 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
28684 (FREEBSD_MODTYPE_ELF_MODULE): New definition
28685 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
28686 (grub_freebsd_load_elfmodule32): New declaration
28687 (grub_freebsd_load_elfmoduleobj64): Likewise
28688 (grub_freebsd_load_elf_meta32): Likewise
28689 (grub_freebsd_load_elf_meta64): Likewise
28690 (grub_freebsd_add_meta): Likewise
28691 (grub_freebsd_add_meta_module): Likewise
28692 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
28693 (grub_freebsd_add_meta_module): Likewise and move module-specific
28694 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
28695 (grub_cmd_freebsd): Add elf-kernel specific parts
28696 based on grub_freebsd_add_meta_module
28697 (grub_cmd_freebsd_module): Add type parsing moved from
28698 grub_freebsd_add_meta_module
28699 (grub_cmd_freebsd_module_elf): New function
28700 (cmd_freebsd_module_elf): New variable
28701 (GRUB_MOD_INIT): Register freebsd_module_elf
28702 * loader/i386/bsd32.c: New file
28703 * loader/i386/bsd64.c: Likewise
28704 * loader/i386/bsdXX.c: Likewise
28705 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
28706 (grub_elf64_load): Likewise
28707 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
28709 (grub_elf64_load_hook_t): Likewise
28711 2009-06-21 Colin Watson <cjwatson@ubuntu.com>
28713 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
28715 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
28716 don't write a menu entry for recovery mode.
28718 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
28720 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
28721 after it's no longer needed.
28723 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
28725 * include/grub/i386/loader.h (grub_linux_prot_size)
28726 (grub_linux_tmp_addr, grub_linux_real_addr)
28727 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
28728 GRUB_MACHINE_PCBIOS.
28729 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
28730 common grub_util_info() call to ...
28731 (generate_image): ... here.
28732 Fix use of uninitialized memory, comparison of signed with
28733 unsigned integers and memory leak.
28734 Remove bogus module address message.
28736 2009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
28738 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
28740 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
28742 2009-06-19 Pavel Roskin <proski@gnu.org>
28744 * configure.ac: Remove stray AC_MSG_CHECKING.
28746 2009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
28748 * disk/scsi.c (grub_scsi_open): use continue instead of big if
28750 2009-06-18 Pavel Roskin <proski@gnu.org>
28752 * conf/common.rmk: Add fs_file.mod.
28753 * disk/fs_file.c: New file.
28754 * include/grub/disk.h (enum grub_disk_dev_id): Add
28755 GRUB_DISK_DEVICE_FILE_ID.
28757 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
28759 Fix build with Apple's toolchain. Part 2
28761 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
28764 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
28766 Fix build with Apple's toolchain. Part 1
28768 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
28770 * configure.ac: remove a leftover AC_MSG_RESULT
28771 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
28774 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
28778 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
28779 (decomp_block): initialize ch
28780 use grub_memcpy instead of memcpy
28782 2009-06-17 Pavel Roskin <proski@gnu.org>
28784 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
28785 version, use declarations needed to use vga_text as the startup
28788 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
28789 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
28791 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
28792 and grub_at_keyboard_fini(), it's done on module load and
28795 2009-06-17 Felix Zielcke <fzielcke@z-51.de>
28797 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
28798 file can't be found.
28799 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
28801 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
28803 Fix newline handling
28805 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
28806 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
28807 (grub_script_yylex): don't segfault on unterminated script
28808 newline terminates command and variable
28810 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
28812 avoid double grub_adjust_range call. Bug reported by David Simner
28814 * kern/disk.c (grub_disk_write): change to raw disk access before
28817 2009-06-17 Colin Watson <cjwatson@ubuntu.com>
28819 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
28820 spaces, for the benefit of help2man.
28821 * util/i386/efi/grub-mkimage.c (usage): Likewise.
28823 2009-06-16 Pavel Roskin <proski@gnu.org>
28825 * kern/i386/halt.c: Include grub/machine/init.h.
28826 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
28828 2009-06-16 Felix Zielcke <fzielcke@z-51.de>
28830 * util/grub.d/30_os-prober.in: Use ${root} in the generated
28831 drivemap menuentry.
28833 2009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
28835 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
28838 2009-06-16 Pavel Roskin <proski@gnu.org>
28840 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
28841 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
28842 save %dx, we only need %dl and we never change it.
28843 * boot/i386/pc/cdboot.S: Don't set the root drive.
28844 * boot/i386/pc/pxeboot.S: Likewise.
28845 * include/grub/i386/pc/boot.h: Remove
28846 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
28847 GRUB_BOOT_MACHINE_DRIVE_CHECK.
28848 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
28849 * kern/i386/pc/init.c (make_install_device): Remove references
28850 to grub_root_drive.
28851 * kern/i386/pc/startup.S: Likewise.
28852 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
28854 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
28858 * commands/xnu_uuid.c: new file
28859 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
28860 (xnu_uuid_mod_SOURCES): new variable
28861 (xnu_uuid_mod_CFLAGS): likewise
28862 (xnu_uuid_mod_LDFLAGS): likewise
28863 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
28864 * conf/i386-ieee1275.rmk: likewise
28865 * conf/i386-pc.rmk: likewise
28866 * conf/powerpc-ieee1275.rmk: likewise
28867 * conf/sparc64-ieee1275.rmk: likewise
28868 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
28870 2009-06-16 Pavel Roskin <proski@gnu.org>
28872 * configure.ac: Avoid '==' in test command, it's not portable.
28874 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
28878 * commands/probe.c: new file
28879 * conf/common.rmk (pkglib_MODULES): add probe.mod
28880 (probe_mod_SOURCES): new variable
28881 (probe_mod_CFLAGS): likewise
28882 (probe_mod_LDFLAGS): likewise
28883 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
28884 * conf/i386-ieee1275.rmk: likewise
28885 * conf/i386-pc.rmk: likewise
28886 * conf/powerpc-ieee1275.rmk: likewise
28887 * conf/sparc64-ieee1275.rmk: likewise
28889 2009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
28891 Fix handling of string like \"hello\" and "a
28894 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
28895 (grub_script_yylex): fix parsing of quoting, escaping and newline
28897 2009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
28899 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
28902 2009-06-13 Jun Inoue <jun.lambda@gmail.com>
28904 * util/grub-mkconfig.in: Fix parsing of --output option.
28906 2009-06-12 Pavel Roskin <proski@gnu.org>
28908 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
28909 genmk.rb don't need to be generated or installed.
28911 2009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
28913 * commands/i386/pc/drivemap_int13h.S: add more comments
28915 2009-06-11 Pavel Roskin <proski@gnu.org>
28917 * Makefile.in (uninstall): Uninstall manuals.
28919 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
28920 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
28921 and update-grub_lib in two places.
28922 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
28924 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
28925 a compiler warning.
28927 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
28928 `entry_lo' to fix variable shadowing.
28930 2009-06-11 Christian Franke <franke@computer.org>
28932 * kern/misc.c (__enable_execute_stack): Add missing return type
28933 to prevent gcc warning.
28935 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
28937 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
28939 2009-06-11 Pavel Roskin <proski@gnu.org>
28941 * Makefile.in: Don't rely on any scripts being executable.
28942 Always use $(SHELL) to run shell scripts.
28944 * configure.ac: Always define ___main if using -nostdlib. This
28945 fixes tests on Cygwin.
28947 2009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
28951 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
28952 is in bytes and not in blocks
28954 2009-06-11 Pavel Roskin <proski@gnu.org>
28956 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
28959 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
28961 * util/grub.d/30_os-prober.in: Fix a comment. Source
28962 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
28963 to set the root device. Place drivemap command in the generated
28966 2009-06-11 Pavel Roskin <proski@gnu.org>
28968 * configure.ac: Remove host_m32. Issues with 64-bit utilities
28969 have long been resolved.
28971 2009-06-11 Colin Watson <cjwatson@ubuntu.com>
28973 * util/grub.d/10_linux.in: Capitalise "Linux".
28975 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
28977 2009-06-11 Pavel Roskin <proski@gnu.org>
28979 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
28980 fix a gcc warning and ensure that the function won't ever exit.
28982 * kern/i386/ieee1275/init.c: Add missing prototype for
28983 grub_stop_floppy().
28985 * loader/ieee1275/multiboot2.c [__i386__]: Include
28986 grub/cpu/multiboot.h.
28988 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
28989 casts to short - they are not portable and cause warnings. Fix
28990 use of uninitialized values in input_buf. Use ARRAY_SIZE.
28992 2009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
28996 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
28998 (grub_get_root_biosnumber_saved): new variable
28999 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
29000 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
29001 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
29002 %dx after the call if necessary
29003 * conf/common.rmk (pkglib_MODULES): remove boot.mod
29004 (boot_mod_SOURCES): remove
29005 (boot_mod_CFLAGS): remove
29006 (boot_mod_LDFLAGS): remove
29007 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
29008 (boot_mod_SOURCES): new variable
29009 (boot_mod_CFLAGS): likewise
29010 (boot_mod_LDFLAGS): likewise
29011 * conf/i386-efi.rmk: likewise
29012 * conf/i386-ieee1275.rmk: likewise
29013 * conf/i386-pc.rmk: likewise
29014 * conf/powerpc-ieee1275.rmk: likewise
29015 * conf/sparc64-ieee1275.rmk: likewise
29016 * conf/x86_64-efi.rmk: likewise
29017 * include/grub/i386/pc/biosnum.h: new file
29018 * lib/i386/pc/biosnum.c: likewise
29019 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
29020 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
29021 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
29023 2009-06-10 Pavel Roskin <proski@gnu.org>
29025 * io/gzio.c (test_header): Don't reuse one buffer for all data.
29026 Use separate variables. Read only the file size at the end, but
29027 not the checksum that we don't use.
29029 * kern/file.c (grub_file_read): Use void pointer for the buffer.
29030 Adjust all callers.
29032 * kern/ieee1275/openfw.c: Remove libc includes.
29033 * kern/ieee1275/cmain.c: Likewise.
29034 * include/grub/ieee1275/ieee1275.h: Likewise.
29036 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
29039 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
29041 * Makefile.in: Remove all trailing whitespace.
29042 * conf/i386-pc.rmk: Likewise.
29043 * conf/powerpc-ieee1275.rmk: Likewise.
29044 * conf/sparc64-ieee1275.rmk: Likewise.
29045 * docs/grub.texi: Likewise.
29046 * docs/texinfo.tex: Likewise.
29047 * disk/fs_uuid.c: Likewise.
29048 * disk/lvm.c: Likewise.
29049 * disk/scsi.c: Likewise.
29050 * disk/ata.c: Likewise.
29051 * disk/ieee1275/ofdisk.c: Likewise.
29052 * disk/i386/pc/biosdisk.c: Likewise.
29053 * disk/host.c: Likewise.
29054 * disk/raid.c: Likewise.
29055 * disk/efi/efidisk.c: Likewise.
29056 * disk/usbms.c: Likewise.
29057 * disk/memdisk.c: Likewise.
29058 * disk/loopback.c: Likewise.
29059 * kern/powerpc/dl.c: Likewise.
29060 * kern/device.c: Likewise.
29061 * kern/dl.c: Likewise.
29062 * kern/sparc64/dl.c: Likewise.
29063 * kern/ieee1275/ieee1275.c: Likewise.
29064 * kern/term.c: Likewise.
29065 * kern/fs.c: Likewise.
29066 * kern/i386/dl.c: Likewise.
29067 * kern/i386/pc/startup.S: Likewise.
29068 * kern/i386/pc/init.c: Likewise.
29069 * kern/i386/pc/mmap.c: Likewise.
29070 * kern/i386/pc/lzo1x.S: Likewise.
29071 * kern/i386/ieee1275/init.c: Likewise.
29072 * kern/i386/realmode.S: Likewise.
29073 * kern/i386/tsc.c: Likewise.
29074 * kern/partition.c: Likewise.
29075 * kern/corecmd.c: Likewise.
29076 * kern/file.c: Likewise.
29077 * kern/efi/efi.c: Likewise.
29078 * kern/efi/init.c: Likewise.
29079 * kern/efi/mm.c: Likewise.
29080 * kern/main.c: Likewise.
29081 * kern/err.c: Likewise.
29082 * kern/env.c: Likewise.
29083 * kern/disk.c: Likewise.
29084 * kern/generic/millisleep.c: Likewise.
29085 * kern/generic/rtc_get_time_ms.c: Likewise.
29086 * kern/misc.c: Likewise.
29087 * kern/parser.c: Likewise.
29088 * genmk.rb: Likewise.
29089 * configure.ac: Likewise.
29090 * boot/i386/pc/diskboot.S: Likewise.
29091 * boot/i386/pc/pxeboot.S: Likewise.
29092 * boot/i386/pc/boot.S: Likewise.
29093 * boot/i386/pc/lnxboot.S: Likewise.
29094 * boot/i386/pc/cdboot.S: Likewise.
29095 * parttool/pcpart.c: Likewise.
29096 * video/readers/tga.c: Likewise.
29097 * video/video.c: Likewise.
29098 * video/bitmap.c: Likewise.
29099 * lib/envblk.c: Likewise.
29100 * lib/i386/setjmp.S: Likewise.
29101 * fs/xfs.c: Likewise.
29102 * fs/afs.c: Likewise.
29103 * fs/fat.c: Likewise.
29104 * fs/ntfs.c: Likewise.
29105 * fs/udf.c: Likewise.
29106 * fs/affs.c: Likewise.
29107 * fs/iso9660.c: Likewise.
29108 * fs/hfs.c: Likewise.
29109 * fs/fshelp.c: Likewise.
29110 * fs/ext2.c: Likewise.
29111 * fs/jfs.c: Likewise.
29112 * fs/reiserfs.c: Likewise.
29113 * fs/hfsplus.c: Likewise.
29114 * fs/minix.c: Likewise.
29115 * fs/cpio.c: Likewise.
29116 * fs/sfs.c: Likewise.
29117 * fs/ufs.c: Likewise.
29118 * efiemu/prepare.c: Likewise.
29119 * efiemu/loadcore_common.c: Likewise.
29120 * efiemu/runtime/efiemu.sh: Likewise.
29121 * efiemu/runtime/efiemu.S: Likewise.
29122 * efiemu/runtime/efiemu.c: Likewise.
29123 * efiemu/pnvram.c: Likewise.
29124 * efiemu/main.c: Likewise.
29125 * efiemu/i386/pc/cfgtables.c: Likewise.
29126 * efiemu/i386/loadcore64.c: Likewise.
29127 * efiemu/i386/loadcore32.c: Likewise.
29128 * efiemu/loadcore.c: Likewise.
29129 * efiemu/symbols.c: Likewise.
29130 * efiemu/mm.c: Likewise.
29131 * include/grub/autoefi.h: Likewise.
29132 * include/grub/datetime.h: Likewise.
29133 * include/grub/term.h: Likewise.
29134 * include/grub/hfs.h: Likewise.
29135 * include/grub/lvm.h: Likewise.
29136 * include/grub/i386/tsc.h: Likewise.
29137 * include/grub/i386/linux.h: Likewise.
29138 * include/grub/i386/xnu.h: Likewise.
29139 * include/grub/i386/efiemu.h: Likewise.
29140 * include/grub/i386/pc/biosdisk.h: Likewise.
29141 * include/grub/i386/pc/memory.h: Likewise.
29142 * include/grub/i386/pc/vbe.h: Likewise.
29143 * include/grub/parttool.h: Likewise.
29144 * include/grub/video.h: Likewise.
29145 * include/grub/memory.h: Likewise.
29146 * include/grub/fs.h: Likewise.
29147 * include/grub/partition.h: Likewise.
29148 * include/grub/xnu.h: Likewise.
29149 * include/grub/efi/api.h: Likewise.
29150 * include/grub/efi/pe32.h: Likewise.
29151 * include/grub/efi/memory.h: Likewise.
29152 * include/grub/multiboot.h: Likewise.
29153 * include/grub/usbdesc.h: Likewise.
29154 * include/grub/multiboot2.h: Likewise.
29155 * include/grub/acpi.h: Likewise.
29156 * include/grub/efiemu/efiemu.h: Likewise.
29157 * include/grub/disk.h: Likewise.
29158 * include/grub/ieee1275/ieee1275.h: Likewise.
29159 * include/grub/net.h: Likewise.
29160 * include/grub/machoload.h: Likewise.
29161 * include/grub/macho.h: Likewise.
29162 * include/multiboot.h: Likewise.
29163 * genmoddep.awk: Likewise.
29164 * normal/main.c: Likewise.
29165 * normal/menu_entry.c: Likewise.
29166 * normal/menu_viewer.c: Likewise.
29167 * normal/completion.c: Likewise.
29168 * normal/cmdline.c: Likewise.
29169 * normal/misc.c: Likewise.
29170 * normal/datetime.c: Likewise.
29171 * bus/usb/usbtrans.c: Likewise.
29172 * bus/usb/ohci.c: Likewise.
29173 * bus/usb/uhci.c: Likewise.
29174 * bus/usb/usb.c: Likewise.
29175 * mmap/efi/mmap.c: Likewise.
29176 * mmap/i386/pc/mmap_helper.S: Likewise.
29177 * mmap/i386/pc/mmap.c: Likewise.
29178 * mmap/i386/mmap.c: Likewise.
29179 * mmap/i386/uppermem.c: Likewise.
29180 * mmap/mmap.c: Likewise.
29181 * commands/acpi.c: Likewise.
29182 * commands/echo.c: Likewise.
29183 * commands/blocklist.c: Likewise.
29184 * commands/loadenv.c: Likewise.
29185 * commands/usbtest.c: Likewise.
29186 * commands/boot.c: Likewise.
29187 * commands/parttool.c: Likewise.
29188 * commands/search.c: Likewise.
29189 * commands/cat.c: Likewise.
29190 * commands/i386/pc/play.c: Likewise.
29191 * commands/i386/pc/drivemap.c: Likewise.
29192 * commands/i386/pc/vbeinfo.c: Likewise.
29193 * commands/i386/pc/acpi.c: Likewise.
29194 * commands/i386/pc/vbetest.c: Likewise.
29195 * commands/ls.c: Likewise.
29196 * commands/cmp.c: Likewise.
29197 * commands/test.c: Likewise.
29198 * commands/efi/acpi.c: Likewise.
29199 * commands/gptsync.c: Likewise.
29200 * commands/help.c: Likewise.
29201 * partmap/amiga.c: Likewise.
29202 * partmap/apple.c: Likewise.
29203 * partmap/acorn.c: Likewise.
29204 * partmap/pc.c: Likewise.
29205 * partmap/sun.c: Likewise.
29206 * partmap/gpt.c: Likewise.
29207 * script/sh/lexer.c: Likewise.
29208 * script/sh/function.c: Likewise.
29209 * font/font.c: Likewise.
29210 * font/font_cmd.c: Likewise.
29211 * loader/powerpc/ieee1275/linux.c: Likewise.
29212 * loader/efi/chainloader.c: Likewise.
29213 * loader/multiboot_loader.c: Likewise.
29214 * loader/macho.c: Likewise.
29215 * loader/i386/multiboot.c: Likewise.
29216 * loader/i386/linux.c: Likewise.
29217 * loader/i386/pc/linux.c: Likewise.
29218 * loader/i386/pc/multiboot2.c: Likewise.
29219 * loader/i386/pc/chainloader.c: Likewise.
29220 * loader/i386/pc/xnu.c: Likewise.
29221 * loader/i386/bsd_trampoline.S: Likewise.
29222 * loader/i386/efi/linux.c: Likewise.
29223 * loader/i386/multiboot_elfxx.c: Likewise.
29224 * loader/i386/bsd_helper.S: Likewise.
29225 * loader/i386/bsd.c: Likewise.
29226 * loader/i386/linux_trampoline.S: Likewise.
29227 * loader/i386/xnu_helper.S: Likewise.
29228 * loader/i386/xnu.c: Likewise.
29229 * loader/i386/bsd_pagetable.c: Likewise.
29230 * loader/i386/multiboot_helper.S: Likewise.
29231 * loader/xnu.c: Likewise.
29232 * loader/xnu_resume.c: Likewise.
29233 * io/gzio.c: Likewise.
29234 * term/efi/console.c: Likewise.
29235 * term/terminfo.c: Likewise.
29236 * term/ieee1275/ofconsole.c: Likewise.
29237 * term/i386/pc/serial.c: Likewise.
29238 * term/i386/pc/vesafb.c: Likewise.
29239 * term/i386/pc/vga.c: Likewise.
29240 * term/usb_keyboard.c: Likewise.
29241 * term/gfxterm.c: Likewise.
29242 * aclocal.m4: Likewise.
29243 * util/lvm.c: Likewise.
29244 * util/grub.d/30_os-prober.in: Likewise.
29245 * util/grub.d/10_hurd.in: Likewise.
29246 * util/console.c: Likewise.
29247 * util/grub-macho2img.c: Likewise.
29248 * util/grub-probe.c: Likewise.
29249 * util/hostfs.c: Likewise.
29250 * util/i386/pc/grub-mkimage.c: Likewise.
29251 * util/i386/pc/grub-setup.c: Likewise.
29252 * util/i386/efi/grub-mkimage.c: Likewise.
29253 * util/grub-mkconfig.in: Likewise.
29254 * util/raid.c: Likewise.
29255 * util/resolve.c: Likewise.
29256 * util/grub-mkdevicemap.c: Likewise.
29257 * util/grub-emu.c: Likewise.
29258 * util/getroot.c: Likewise.
29259 * util/hostdisk.c: Likewise.
29260 * util/usb.c: Likewise.
29261 * util/grub-editenv.c: Likewise.
29262 * util/misc.c: Likewise.
29264 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
29266 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
29267 `genparttoollist.sh'.
29268 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
29269 Add `*.sh' to the list find searches for and change `mdate.sh'
29272 2009-06-10 Pavel Roskin <proski@gnu.org>
29274 * include/grub/multiboot2.h: Provide compatibility defines for
29276 * include/multiboot2.h: Include stdint.h only if needed, using
29278 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
29280 * loader/ieee1275/multiboot2.c: Likewise.
29281 * loader/multiboot2.c: Likewise.
29282 * loader/multiboot_loader.c: Likewise.
29284 * configure.ac: Use -nostdlib when probing for the target. It
29285 should not be required to have libc for the target.
29287 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
29288 they fail without libc headers for the target.
29289 * include/grub/powerpc/libgcc.h: Use weak attribute for all
29291 * include/grub/sparc64/libgcc.h: Likewise. Don't use
29292 preprocessor conditionals.
29294 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
29295 build system doesn't need to be aware of the tar.c internals.
29297 2009-06-09 Michel Hermier <michel.hermier@gmail.com>
29299 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
29301 2009-06-09 Robert Millan <rmh.grub@aybabtu.com>
29303 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
29304 disk limit to 26 for IDE, Virtio, Xen and SCSI.
29306 2009-06-09 Felix Zielcke <fzielcke@z-51.de>
29308 * util/i386/pc/grub-install.in: Change the error message if UUIDs
29309 aren't available if ata.mod gets used.
29311 2009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
29313 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
29314 initialising controller.
29315 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
29317 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
29319 * util/i386/pc/grub-install.in: Add a parameter --disk-module
29320 to choose between ata and biosdisk module on i386-pc.
29322 2009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
29324 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
29325 Subclass and Programming Interface fields in terms of the 3 byte
29326 Class Code register.
29327 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
29329 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
29330 interface is OHCI. Add grub_dprintf for symmetry with
29332 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
29333 interface is UHCI. Add interf variable for programming
29334 interface. Print interface with class/subclass.
29336 * bus/usb/ohci.c: Set interf with correct field.
29338 * bus/usb/uhci.c: Remove unneeded doubled lines.
29339 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
29340 Remove whitespace inside comment.
29342 2009-06-08 Robert Millan <rmh.grub@aybabtu.com>
29344 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
29345 as fallback an equivalent option without depth.
29347 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
29349 Not fail if unable to retrieve C/H/S on LBA disks
29351 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
29352 if unable to retrieve C/H/S on LBA disks
29354 2009-06-08 Pavel Roskin <proski@gnu.org>
29356 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
29359 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
29361 * Makefile.in (uninstall): Remove all $lib_DATA files.
29363 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
29365 Bugfix: install on partitionless device
29367 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
29370 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
29372 * Makefile.in (uninstall): Remove all $include_DATA files.
29374 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
29376 * commands/true.c: New file. Implement the true and false commands.
29377 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
29378 (true_mod_SOURCES): New variable.
29379 (true_mod_CFLAGS): Likewise.
29380 (true_mod_LDFLAGS): Likewise.
29382 2009-06-05 Colin D Bennett <colin@gibibit.com>
29384 Optimized font character lookup using binary search instead of linear
29385 search. Fonts now are required to have the character index ordered by
29388 * font/font.c (load_font_index): Verify that fonts have ordered
29390 (find_glyph): Use binary search instead of linear search to find a
29391 character in a font.
29393 2009-06-05 Michael Scherer <misc@mandriva.org>
29395 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
29396 uses case sensitive btree.
29397 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
29398 only for case insensitive filesystems.
29400 2009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
29402 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
29403 * conf/common.rmk (search_mod_CFLAGS): likewise
29405 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
29407 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
29408 compensate a compiler bug
29410 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
29412 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
29415 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
29417 Definitions for creating asm symbols with Apple's CC
29419 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
29420 [APPLE_CC] (VARIABLE): likewise
29422 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
29424 Disable lnxboot.img when compiled
29427 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
29428 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
29429 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
29430 [! APPLE_CC] (CODE_LENG): skip
29431 [! APPLE_CC] (setup_sects): likewise
29432 [! APPLE_CC]: skip filling
29434 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
29436 Address in trampolines based on 32-bit registers when compiled
29439 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
29441 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
29443 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
29445 Avoid aliases when compiling with Apple's CC for PCBIOS machine
29447 * kern/misc.c [APPLE_CC] (memcpy): new function
29448 [APPLE_CC] (memmove): likewise
29449 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
29450 (memcpy): define alias conditionally on !APPLE_CC
29453 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
29454 APPLE_CC are defined
29455 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
29456 (grub_assert_fail): make prototype conditional
29458 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
29460 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
29462 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
29464 (CLEANFILES): add grub-macho2img
29465 (grub_macho2img_SOURCES): new variable
29466 * kern/i386/pc/startup.S (bss_start): new variable
29467 (bss_end): likewise
29468 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
29469 * util/grub-macho2img.c: new file
29471 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
29473 Use objconv when compiling with Apple's CC
29475 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
29476 (efiemu64.o): likewise
29477 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
29478 when compiling with Apple's CC
29479 (efiemu64_s.o): likewise
29480 * configure.ac: check for objconv when compiling with Apple's CC
29481 * genmk.rb: use objconv for modules when compiled with Apple's CC
29483 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
29485 Define segment as well as section when compiling with
29488 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
29489 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
29490 (efiemu_convert_pointer): likewise
29491 (efiemu_set_virtual_address_map): likewise
29492 (efiemu_convert_pointer): likewise
29493 (efiemu_getcrc32): likewise
29494 (init_crc32_table): likewise
29495 (reflect): likewise
29496 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
29497 (GRUB_MOD_DEP): likewise
29499 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
29501 Allow a compilation without -mcmodel=large
29503 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
29504 when compiled without -mcmodel=large
29505 (filter_memory_map): remove memory post 4 GiB when compiled
29506 without -mcmodel=large
29507 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
29508 TARGET_CFLAGS when -mcmodel=large isn't supported
29510 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
29512 Remove nested functions in efiemu core
29514 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
29516 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
29518 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
29520 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
29522 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
29524 (grub_cpu_is_tsc_supported): likewise
29525 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
29527 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
29529 Absolute addressing through constant with Apple's cc
29531 * kern/i386/pc/startup.S: Define necessary constants
29532 and address through it when using ABS with Apple's CC
29533 * boot/i386/pc/diskboot.S: likewise
29534 * boot/i386/pc/boot.S: likewise
29535 * boot/i386/pc/lnxboot.S: likewise
29536 * boot/i386/pc/cdboot.S: likewise
29537 * mmap/i386/pc/mmap_helper.S: likewise
29538 * commands/i386/pc/drivemap_int13h.S: likewise
29540 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
29542 Check if compiler is apple cc
29544 * Makefile.in (ASFLAGS): new variable
29545 (TARGET_ASFLAGS): likewise
29546 (TARGET_MODULE_FORMAT): likewise
29547 (TARGET_APPLE_CC): likewise
29548 (OBJCONV): likewise
29549 (TARGET_IMG_CFLAGS): likewise
29550 (TARGET_CPPFLAGS): add includedir
29551 * configure.ac: call grub_apple_cc and grub_apple_target_cc
29552 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
29553 Check for linker script only if compiler isn't Apple's CC
29554 (TARGET_MODULE_FORMAT): set
29555 (TARGET_APPLE_CC): likewise
29556 (TARGET_ASFLAGS): likewise
29557 (ASFLAGS): likewise
29558 Check for objcopy only if compiler isn't Apple's CC
29559 Check for BSS symbol only if compiler isn't Apple's CC
29560 * genmk.rb: adapt nm options if we use Apple's utils
29561 * aclocal.m4 (grub_apple_cc): new test
29562 (grub_apple_target_cc): likewise
29564 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
29566 Simplify sed expressions and improve awk
29568 * Makefile.in (install-local): simplify sed expression
29569 * gencmdlist.sh: likewise
29570 * genmoddep.awk: avoid adding module as a dependency of itself
29572 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
29574 Add missing start symbols
29576 * boot/i386/pc/boot.S: add start
29577 * boot/i386/pc/pxeboot.S: likewise
29579 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
29581 Fix wrong assumptions with grub-mkimage on EFI
29583 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
29584 (relocate_addresses): consider both r_addend and value at offset
29585 (make_mods_section): zerofill modinfo and header
29586 (convert_elf): write prefix here
29588 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
29590 Use .asciz instead of .string
29592 * i386/pc/diskboot.S: use .asciz instead of .string
29593 * i386/pc/boot.S: likewise
29594 * include/grub/dl.h (GRUB_MOD_DEP): likewise
29595 (GRUB_MOD_NAME): likewise
29597 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
29601 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
29602 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
29603 (grub_video_setup): remove
29604 (grub_video_set_mode): new prototype
29605 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
29607 (linux_vesafb_res): compile only on PCBIOS
29608 (grub_linux_boot): support gfxpayload
29609 * loader/i386/pc/xnu.c (video_hook): new function
29610 (grub_xnu_set_video): support gfxpayload
29611 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
29612 (DEFAULT_VIDEO_HEIGHT): likewise
29613 (DEFAULT_VIDEO_FLAGS): likewise
29614 (DEFAULT_VIDEO_MODE): new definition
29615 (video_hook): new function
29616 (grub_gfxterm_init): use grub_video_set_mode
29617 * util/grub.d/30_os-prober.in: remove explicit modesetting before
29619 * video/video.c (grub_video_setup): removed
29620 (grub_video_set_mode): new function based on grub_gfxterm_init and
29623 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
29625 Avoid calling biosdisk in drivemap
29627 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
29628 (revparse_biosdisk): likewise
29629 (list_mappings): derive name from id directly
29630 (grub_cmd_drivemap): use tryparse_diskstring
29632 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
29636 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
29637 (grub_lexer_param): add tokenonhold
29638 (grub_script_create_cmdline): remove cmdline. All callers updated
29639 (grub_script_function_create): make functionname
29640 grub_script_arg. All callers updated
29641 (grub_script_execute_argument_to_string): new prototype
29642 * kern/parser.c (state_transitions): reorder
29643 (grub_parser_cmdline_state): fix a bug and make more compact
29644 * script/sh/execute.c (grub_script_execute_argument_to_string):
29646 (grub_script_execute_cmdline): use new format
29647 * script/sh/function.c (grub_script_function_create): make functionname
29648 grub_script_arg. All callers updated
29649 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
29650 (grub_script_yylex): remove
29651 (grub_script_yylex2): renamed to ...
29652 (grub_script_yylex): ...renamed
29653 parse the expressions like a${b}c
29654 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
29655 (GRUB_PARSER_TOKEN_VAR): remove
29656 (GRUB_PARSER_TOKEN_NAME): likewise
29657 ("if"): declare as typeless
29658 ("while"): likewise
29659 ("function"): likewise
29664 (argument): likewise
29665 (script): accept empty scripts and make exit on error
29666 (arguments): use GRUB_PARSER_TOKEN_ARG
29667 (function): likewise
29668 (command): move error handling to script
29669 (menuentry): move grub_script_lexer_ref before
29670 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
29671 argument. All callers updated
29673 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
29675 Prevent GRUB from probing floppies during boot.
29677 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
29678 * commands/search.c (options): Add --no-floppy.
29679 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
29680 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
29681 --no-floppy when searching for UUIDs.
29683 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
29685 Simplify the code duplication in commands/search.c.
29687 * commands/search.c (search_label, search_fs_uuid): Merge into ...
29688 (search_fs): ... this. Update all users.
29690 2009-06-03 Felix Zielcke <fzielcke@z-51.de>
29692 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
29694 2009-05-28 Pavel Roskin <proski@gnu.org>
29696 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
29697 Remove the original symlink explicitly.
29699 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
29700 just one slash. That's how grub_fshelp_find_file() does it.
29702 2009-05-26 Pavel Roskin <proski@gnu.org>
29704 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
29707 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
29710 2009-05-25 Christian Franke <franke@computer.org>
29712 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
29714 (grub_atapi_identify): Add wait after drive select.
29715 (grub_ata_identify): Do more strict status register check before
29716 calling grub_atapi_identify (). Suppress error message if status
29717 register is 0x00 after command failure. Add status register
29718 check after PIO read to avoid bogus identify due to stuck DRQ.
29719 Thanks to Pavel Roskin for testing.
29720 (grub_device_initialize): Remove unsafe status register check.
29721 Thanks to 'phcoder' for problem report and patch.
29722 Prevent sign extension in debug message.
29724 2009-05-23 Colin D Bennett <colin@gibibit.com>
29726 Cleaned up `include/grub/normal.h'. Grouped prototypes by
29727 definition file, and functions defined in `normal/menu.c' have had
29728 their prototypes moved to `include/grub/menu.h' for consistency.
29730 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
29732 (grub_menu_get_entry): Likewise.
29733 (grub_menu_get_timeout): Likewise.
29734 (grub_menu_set_timeout): Likewise.
29735 (grub_menu_execute_entry): Likewise.
29736 (grub_menu_execute_with_fallback): Likewise.
29737 (grub_menu_entry_run): Likewise.
29739 * include/grub/normal.h: Re-ordered and grouped function
29740 prototypes by file that the function is defined in.
29741 (grub_menu_execute_callback): Removed; moved to menu.h.
29742 (grub_menu_get_entry): Likewise.
29743 (grub_menu_get_timeout): Likewise.
29744 (grub_menu_set_timeout): Likewise.
29745 (grub_menu_execute_entry): Likewise.
29746 (grub_menu_execute_with_fallback): Likewise.
29747 (grub_menu_entry_run): Likewise.
29748 (grub_menu_addentry): Renamed from this ...
29749 (grub_normal_add_menu_entry): ... to this.
29751 * normal/main.c (grub_menu_addentry): Renamed from this ...
29752 (grub_normal_add_menu_entry): ... to this.
29754 * script/sh/execute.c (grub_script_execute_menuentry): Update
29755 reference to renamed grub_menu_addentry function.
29757 2009-05-23 Felix Zielcke <fzielcke@z-51.de>
29759 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
29761 2009-05-22 Pavel Roskin <proski@gnu.org>
29763 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
29764 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
29765 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
29766 compiling for the i386 targets, but not for the utilities.
29768 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
29770 (grub_root_drive): Likewise.
29771 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
29773 (grub_root_drive): Change size to byte.
29774 (grub_start_addr): Remove.
29775 (grub_end_addr): Likewise.
29776 (grub_apm_bios_info): Likewise.
29778 2009-05-21 Felix Zielcke <fzielcke@z-51.de>
29780 * normal/i386: Remove.
29781 * normal/powerpc: Likewise.
29782 * normal/sparc64: Likewise.
29783 * normal/x86_64: Likewise.
29785 2009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
29787 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
29788 * loader/i386/linux_trampoline.S: Fix indentation
29789 * loader/i386/xnu_helper.S: Likewise
29791 2009-05-18 Colin D Bennett <colin@gibibit.com>
29793 Display error messages when parsing a Lua statement fails.
29794 Previously, executing a syntactically invalid statement like
29795 ")foo" or "bar;" would silently fail.
29797 * script/lua/grub_main.c (handle_lua_error): New function.
29798 (grub_lua_parse_line): Improved reporting of Lua parser and
29801 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
29803 Remove -Werror which causes build to fail on some systems
29805 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
29806 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
29807 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
29809 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
29811 trampoline for linux on 64-bit platform
29813 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
29814 loader/i386/efi/linux_trampoline.S
29815 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
29817 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
29819 * loader/i386/linux_trampoline.S: moved here
29820 * loader/i386/efi/linux.c (allocate_pages): reserve space for
29822 (jumpvector): removed
29823 (grub_linux_trampoline_start): new declaration
29824 (grub_linux_trampoline_end): likewise
29825 (grub_linux_boot): use trampoline when on 64-bit platform
29826 * loader/i386/linux.c: likewise
29828 2009-05-16 Pavel Roskin <proski@gnu.org>
29830 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
29831 const to avoid a warning.
29832 (grub_lua_setenv): Likewise.
29833 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
29834 lmsg to fix a warning.
29836 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
29838 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
29839 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
29840 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
29841 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
29842 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
29843 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
29844 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
29845 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
29847 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
29849 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
29851 2009-05-16 Bean <bean123ch@gmail.com>
29853 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
29854 (lua_mod_SOURCES): New variable.
29855 (lua_mod_CFLAGS): Likewise.
29856 (lua_mod_LDFLAGS): Likewise.
29858 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
29859 (setjmp_mod_SOURCES): New variable.
29860 (setjmp_mod_CFLAGS): Likewise.
29861 (setjmp_LDFLAGS): Likewise.
29863 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
29864 (setjmp_mod_SOURCES): New variable.
29865 (setjmp_mod_CFLAGS): Likewise.
29866 (setjmp_LDFLAGS): Likewise.
29868 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
29869 (setjmp_mod_SOURCES): New variable.
29870 (setjmp_mod_CFLAGS): Likewise.
29871 (setjmp_LDFLAGS): Likewise.
29873 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
29874 (setjmp_mod_SOURCES): New variable.
29875 (setjmp_mod_CFLAGS): Likewise.
29876 (setjmp_LDFLAGS): Likewise.
29878 * normal/i386/setjmp.S: Moved from here ...
29879 * lib/i386/setjmp.S: ... Moved here
29880 * normal/x86_64/setjmp.S: Moved from here ...
29881 * lib/x86_64/setjmp.S: ... Moved here
29882 * normal/powerpc/setjmp.S: Moved from here ...
29883 * lib/powerpc/setjmp.S: ... Moved here
29884 * normal/sparc64/setjmp.S: Moved from here ...
29885 * lib/sparc64/setjmp.S: ... Moved here
29887 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
29888 returns_twice in mingw.
29890 * script/lua/grub_lib.c: New file.
29891 * script/lua/grub_lib.h: Likewise.
29892 * script/lua/grub_lua.h: Likewise.
29893 * script/lua/grub_main.c: Likewise.
29894 * script/lua/lapi.c: Likewise.
29895 * script/lua/lapi.h: Likewise.
29896 * script/lua/lauxlib.c: Likewise.
29897 * script/lua/lauxlib.h: Likewise.
29898 * script/lua/lbaselib.c: Likewise.
29899 * script/lua/lcode.c: Likewise.
29900 * script/lua/lcode.h: Likewise.
29901 * script/lua/ldblib.c: Likewise.
29902 * script/lua/ldebug.c: Likewise.
29903 * script/lua/ldebug.h: Likewise.
29904 * script/lua/ldo.c: Likewise.
29905 * script/lua/ldo.h: Likewise.
29906 * script/lua/ldump.c: Likewise.
29907 * script/lua/lfunc.c: Likewise.
29908 * script/lua/lfunc.h: Likewise.
29909 * script/lua/lgc.c: Likewise.
29910 * script/lua/lgc.h: Likewise.
29911 * script/lua/linit.c: Likewise.
29912 * script/lua/liolib.c: Likewise.
29913 * script/lua/llex.c: Likewise.
29914 * script/lua/llex.h: Likewise.
29915 * script/lua/llimits.h: Likewise.
29916 * script/lua/lmathlib.c: Likewise.
29917 * script/lua/lmem.c: Likewise.
29918 * script/lua/lmem.h: Likewise.
29919 * script/lua/loadlib.c: Likewise.
29920 * script/lua/lobject.c: Likewise.
29921 * script/lua/lobject.h: Likewise.
29922 * script/lua/lopcodes.c: Likewise.
29923 * script/lua/lopcodes.h: Likewise.
29924 * script/lua/loslib.c: Likewise.
29925 * script/lua/lparser.c: Likewise.
29926 * script/lua/lparser.h: Likewise.
29927 * script/lua/lstate.c: Likewise.
29928 * script/lua/lstate.h: Likewise.
29929 * script/lua/lstring.c: Likewise.
29930 * script/lua/lstring.h: Likewise.
29931 * script/lua/lstrlib.c: Likewise.
29932 * script/lua/ltable.c: Likewise.
29933 * script/lua/ltable.h: Likewise.
29934 * script/lua/ltablib.c: Likewise.
29935 * script/lua/ltm.c: Likewise.
29936 * script/lua/ltm.h: Likewise.
29937 * script/lua/lua.h: Likewise.
29938 * script/lua/luaconf.h: Likewise.
29939 * script/lua/lualib.h: Likewise.
29940 * script/lua/lundump.c: Likewise.
29941 * script/lua/lundump.h: Likewise.
29942 * script/lua/lvm.c: Likewise.
29943 * script/lua/lvm.h: Likewise.
29944 * script/lua/lzio.c: Likewise.
29945 * script/lua/lzio.h: Likewise.
29947 2009-05-16 Bean <bean123ch@gmail.com>
29949 * include/grub/kernel.h (grub_module_header_types): Add type
29952 * kern/main.c (grub_load_config): New function.
29953 (grub_main): Call grub_load_config to read boot config.
29955 * grub-mkimage (generate_image): New parameter config_path.
29956 (options): New option --config.
29957 (main): Parse --config option, and pass it to generate_image.
29959 2009-05-14 Christian Franke <franke@computer.org>
29961 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
29962 This fixes build on Cygwin.
29964 2009-05-14 Pavel Roskin <proski@gnu.org>
29966 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
29967 jump. This saves two bytes, so the typical case of 2 swapped
29968 drives would fit 32 bytes.
29970 2009-05-13 Pavel Roskin <proski@gnu.org>
29972 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
29973 grub_uint32_t to avoid a warning.
29975 * loader/i386/linux.c (allocate_pages): When assigning
29976 real_mode_mem, cast through grub_size_t to fix a warning. The
29977 code already makes sure that the value would fit a pointer.
29978 (grub_linux_setup_video): Cast render_target->data to
29979 grub_size_t to fix a warning.
29981 2009-05-13 Javier Martín <lordhabbit@gmail.com>
29983 * commands/i386/pc/drivemap.c: New file - implement drivemap
29985 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
29986 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
29988 2009-05-13 Pavel Roskin <proski@gnu.org>
29990 * util/i386/pc/grub-setup.c (setup): Remove unused variable
29991 embedding_area_exists.
29993 2009-05-13 Robert Millan <rmh.grub@aybabtu.com>
29995 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
29996 it easier to understand / work with.
29997 Improve warning messages for cases where there's no embedding area,
29998 or when it is too small (or core.img too large).
30000 2009-05-13 Pavel Roskin <proski@gnu.org>
30002 * loader/i386/pc/multiboot2.c: Add necessary includes for
30003 grub_multiboot2_real_boot().
30005 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
30006 PX record is always little-endian. We only need the lower 2
30009 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
30010 facilitate code reuse.
30011 (grub_cpio_mount): Use "struct head", not a char buffer. This
30012 fixes a warning reported by gcc 4.4.
30014 * kernel/disk.c (grub_disk_read): Use void pointer for the
30016 (grub_disk_write): Use const void pointer for the buffer.
30017 Adjust all callers. Remove unnecessary casts.
30019 2009-05-10 Robert Millan <rmh.grub@aybabtu.com>
30021 * util/i386/pc/grub-install.in: Update copyright year.
30023 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
30027 * commands/gptsync.c: new file
30028 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
30029 (gptsync_mod_SOURCES): new variable
30030 (gptsync_mod_CFLAGS): likewise
30031 (gptsync_mod_LDFLAGS): likewise
30032 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
30034 (GRUB_PC_PARTITION_TYPE_HFS): likewise
30035 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
30036 * conf/i386-ieee1275.rmk: likewise
30037 * conf/i386-pc.rmk: likewise
30038 * conf/powerpc-ieee1275.rmk: likewise
30040 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
30044 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
30045 (grub_dl_ref): likewise
30047 2009-05-08 Robert Millan <rmh.grub@aybabtu.com>
30049 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
30050 split in two functions (one for msdos and one for gpt).
30052 2009-05-08 Pavel Roskin <proski@gnu.org>
30054 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
30057 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
30058 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
30059 Initialize them with -1. Add sanity check for bad1. Eliminate
30062 2009-05-08 David S. Miller <davem@davemloft.net>
30064 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
30066 2009-05-06 Robert Millan <rmh.grub@aybabtu.com>
30068 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
30071 2009-05-05 Felix Zielcke <fzielcke@z-51.de>
30073 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
30074 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
30076 2009-05-05 David S. Miller <davem@davemloft.net>
30078 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
30080 2009-05-05 Pavel Roskin <proski@gnu.org>
30082 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
30083 of grub_dl_ref() and grub_dl_unref().
30084 * commands/parttool.c: Remove preprocessor conditionals around
30085 grub_dl_ref() and grub_dl_unref().
30086 * fs/affs.c: Likewise.
30087 * fs/afs.c: Likewise.
30088 * fs/cpio.c: Likewise.
30089 * fs/ext2.c: Likewise.
30090 * fs/fat.c: Likewise.
30091 * fs/hfs.c: Likewise.
30092 * fs/hfsplus.c: Likewise.
30093 * fs/iso9660.c: Likewise.
30094 * fs/jfs.c: Likewise.
30095 * fs/minix.c: Likewise.
30096 * fs/ntfs.c: Likewise.
30097 * fs/reiserfs.c: Likewise.
30098 * fs/sfs.c: Likewise.
30099 * fs/udf.c: Likewise.
30100 * fs/ufs.c: Likewise.
30101 * fs/xfs.c: Likewise.
30102 * include/grub/dl.h: Likewise.
30103 * loader/xnu.c: Likewise.
30105 2009-05-04 Pavel Roskin <proski@gnu.org>
30107 * commands/acpi.c: Remove unused variable my_mod.
30108 * partmap/amiga.c: Likewise.
30109 * partmap/apple.c: Likewise.
30110 * partmap/gpt.c: Likewise.
30111 * partmap/pc.c: Likewise.
30112 * partmap/sun.c: Likewise.
30113 * term/gfxterm.c: Likewise.
30114 * term/i386/pc/vesafb.c: Likewise.
30115 * term/i386/pc/vga.c: Likewise.
30117 2009-05-04 David S. Miller <davem@davemloft.net>
30119 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
30120 pointer args to grub_ieee1275_get_property().
30122 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
30124 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
30125 devices, and do not traverse down under controller nodes.
30127 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
30128 (grub_ofdisk_open): Use it to un-escape "," characters.
30129 * kern/disk.c (find_part_sep): New.
30130 (grub_disk_open): Use it to find the first non-escaped ','
30131 character in the disk name.
30132 * util/ieee1275/devicemap.c (escape_of_path): New.
30133 (grub_util_emit_devicemap_entry): Use it.
30134 * util/sparc64/ieee1275/grub-install.in: Update script to
30135 strip partition specifiers properly by not triggering on
30136 '\' escaped ',' characters.
30138 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
30140 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
30142 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
30144 (linux_vesafb_modes): Add a lot of additional modes to the list (based
30145 on documentation from Wikipedia).
30147 2009-05-04 Pavel Roskin <proski@gnu.org>
30149 * disk/ata.c: Spelling fixes.
30150 * disk/raid.c: Likewise.
30151 * disk/usbms.c: Likewise.
30152 * disk/dmraid_nvidia.c: Likewise.
30153 * kern/ieee1275/openfw.c: Likewise.
30154 * kern/ieee1275/init.c: Likewise.
30155 * kern/ieee1275/cmain.c: Likewise.
30156 * boot/i386/pc/cdboot.S: Likewise.
30157 * video/readers/png.c: Likewise.
30158 * video/i386/pc/vbe.c: Likewise.
30159 * fs/udf.c: Likewise.
30160 * fs/hfs.c: Likewise.
30161 * fs/reiserfs.c: Likewise.
30162 * efiemu/runtime/efiemu.c: Likewise.
30163 * efiemu/main.c: Likewise.
30164 * efiemu/mm.c: Likewise.
30165 * include/grub/elf.h: Likewise.
30166 * include/grub/xnu.h: Likewise.
30167 * include/grub/usbdesc.h: Likewise.
30168 * include/grub/usb.h: Likewise.
30169 * include/grub/script_sh.h: Likewise.
30170 * include/grub/lib/LzmaEnc.h: Likewise.
30171 * include/grub/efiemu/efiemu.h: Likewise.
30172 * include/grub/command.h: Likewise.
30173 * normal/menu.c: Likewise.
30174 * normal/main.c: Likewise.
30175 * normal/datetime.c: Likewise.
30176 * bus/usb/uhci.c: Likewise.
30177 * mmap/i386/uppermem.c: Likewise.
30178 * mmap/mmap.c: Likewise.
30179 * commands/acpi.c: Likewise.
30180 * commands/test.c: Likewise.
30181 * partmap/apple.c: Likewise.
30182 * font/font.c: Likewise.
30183 * loader/sparc64/ieee1275/linux.c: Likewise.
30184 * loader/macho.c: Likewise.
30185 * loader/i386/bsd_trampoline.S: Likewise.
30186 * loader/i386/bsd.c: Likewise.
30187 * loader/xnu.c: Likewise.
30188 * term/i386/pc/vesafb.c: Likewise.
30189 * term/usb_keyboard.c: Likewise.
30190 * util/resolve.c: Likewise.
30191 * util/getroot.c: Likewise.
30193 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
30195 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
30197 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
30199 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
30202 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
30204 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
30205 parameter only available on BIOS.
30207 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
30209 Removed wrong semicolon in declaration
30211 * grub/misc.h (grub_dprintf): remove semicolon
30213 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
30215 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
30216 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
30217 is done by grub_cmd_linux() now).
30218 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
30219 restore video to text mode.
30220 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
30221 indicates lack of "vga=" parameter. "vga=0" is mapped to
30222 `GRUB_LINUX_VID_MODE_NORMAL'.
30224 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
30226 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
30227 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
30228 and `normal/script.c'. Add `kern/rescue_reader.c',
30229 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
30230 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
30231 `grub_script.tab.c'.
30233 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
30234 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
30235 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
30236 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
30237 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
30239 * Makefile.in: Remove duplicated 2008 in Copyright line.
30241 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
30243 * util/misc.c (grub_util_warn): New function. Emits a warning
30245 * include/grub/util/misc.h (grub_util_warn): New declaration.
30247 * util/i386/pc/grub-install.in: Understand --force and pass it down
30250 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
30252 (setup): Improve error messages and add warnings when requested to
30253 install in odd layouts. Refuse to install using blocklists unless
30256 2009-05-04 martin f. krafft <madduck@madduck.net>
30258 * disk/raid.c (grub_raid_scan_device): Improve debug message.
30260 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
30262 Updated copyright year
30264 * fs/hfsplus.c: updated copyright year
30266 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
30270 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
30271 in the space previously used by unused3
30272 (grub_hfsplus_uuid): new function
30273 (grub_hfsplus_fs): added uuid field
30275 2009-05-03 Pavel Roskin <proski@gnu.org>
30277 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
30278 suppress warnings. It's no longer needed.
30279 * disk/host.c: Likewise.
30280 * disk/ata_pthru.c: Likewise.
30281 * disk/loopback.c: Likewise.
30282 * hook/datehook.c: Likewise.
30283 * parttool/pcpart.c: Likewise.
30284 * fs/i386/pc/pxe.c: Likewise.
30285 * fs/ntfscomp.c: Likewise.
30286 * efiemu/main.c: Likewise.
30287 * mmap/mmap.c: Likewise.
30288 * commands/crc.c: Likewise.
30289 * commands/hexdump.c: Likewise.
30290 * commands/hdparm.c: Likewise.
30291 * commands/acpi.c: Likewise.
30292 * commands/echo.c: Likewise.
30293 * commands/minicmd.c: Likewise.
30294 * commands/blocklist.c: Likewise.
30295 * commands/memrw.c: Likewise.
30296 * commands/loadenv.c: Likewise.
30297 * commands/usbtest.c: Likewise.
30298 * commands/lsmmap.c: Likewise.
30299 * commands/boot.c: Likewise.
30300 * commands/parttool.c: Likewise.
30301 * commands/configfile.c: Likewise.
30302 * commands/search.c: Likewise.
30303 * commands/ieee1275/suspend.c: Likewise.
30304 * commands/cat.c: Likewise.
30305 * commands/i386/pc/pxecmd.c: Likewise.
30306 * commands/i386/pc/play.c: Likewise.
30307 * commands/i386/pc/halt.c: Likewise.
30308 * commands/i386/pc/vbeinfo.c: Likewise.
30309 * commands/i386/pc/vbetest.c: Likewise.
30310 * commands/lspci.c: Likewise.
30311 * commands/date.c: Likewise.
30312 * commands/handler.c: Likewise.
30313 * commands/ls.c: Likewise.
30314 * commands/test.c: Likewise.
30315 * commands/cmp.c: Likewise.
30316 * commands/efi/loadbios.c: Likewise.
30317 * commands/efi/fixvideo.c: Likewise.
30318 * commands/halt.c: Likewise.
30319 * commands/help.c: Likewise.
30320 * commands/reboot.c: Likewise.
30321 * hello/hello.c: Likewise.
30322 * script/sh/main.c: Likewise.
30323 * loader/xnu.c: Likewise.
30324 * term/terminfo.c: Likewise.
30325 * term/i386/pc/serial.c: Likewise.
30326 * term/usb_keyboard.c: Likewise.
30328 2009-05-03 David S. Miller <davem@davemloft.net>
30330 * normal/menu.c: Include grub/parser.h
30332 2009-05-03 Pavel Roskin <proski@gnu.org>
30334 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
30336 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
30337 Suggested by Javier Martín <lordhabbit@gmail.com>
30339 * util/i386/pc/grub-mkrescue.in: Allow for the case when
30340 efiemu??.o doesn't exist.
30341 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
30344 2009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
30346 FreeBSD 64-bit support
30348 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
30349 and loader/i386/bsd_trampoline.S
30350 (bsd_mod_ASFLAGS): new variable
30351 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
30352 (FREEBSD_MODTYPE_KERNEL64): likewise
30353 (grub_bsd64_trampoline_start): likewise
30354 (grub_bsd64_trampoline_end): likewise
30355 (grub_bsd64_trampoline_selfjump): likewise
30356 (grub_bsd64_trampoline_gdt): likewise
30357 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
30358 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
30359 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
30360 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
30361 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
30363 * loader/i386/bsd_pagetable.c: new file
30364 * loader/i386/bsd_trampoline.S: likewise
30365 * loader/i386/bsd.c (ALIGN_QWORD): new macro
30366 (ALIGN_VAR): likewise
30367 (entry_hi): new variable
30368 (kern_end_mdofs): likewise
30369 (is_64bit): likewise
30370 (grub_freebsd_add_meta): use ALIGN_VAR
30371 (grub_e820_mmap): new declaration
30372 (grub_freebsd_add_mmap): new function
30373 (grub_freebsd_add_meta_module): support 64 bit kernels
30374 (grub_freebsd_list_modules): use ALIGN_VAR
30375 (gdt_descriptor): new declaration
30376 (grub_freebsd_boot): support 64 bit kernels
30377 (grub_bsd_elf64_hook): new function
30378 (grub_bsd_load_elf): support elf64
30380 2009-05-03 Bean <bean123ch@gmail.com>
30382 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
30383 after we get the result of if statement.
30385 2009-05-03 Bean <bean123ch@gmail.com>
30387 * Makefile.in (enable_efiemu): New variable.
30389 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
30391 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
30393 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
30394 path, add -mno-red-zone option.
30395 (efiemu64_s.o): Likewise.
30396 (efiemu64.o): Use macro $^ for source file.
30398 * configure.ac (--enable-efiemu): New option.
30400 2009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
30404 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
30405 (pkglib_MODULES): add xnu.mod
30406 (xnu_mod_SOURCES): new variable
30407 (xnu_mod_CFLAGS): likewise
30408 (xnu_mod_LDFLAGS): likewise
30409 (xnu_mod_ASFLAGS): likewise
30410 * conf/i386-pc.rmk: likewise
30411 * conf/x86_64-efi.rmk: likewise
30412 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
30414 * include/grub/i386/macho.h: new file
30415 * include/grub/i386/xnu.h: likewise
30416 * include/grub/macho.h: likewise
30417 * include/grub/machoload.h: likewise
30418 * include/grub/x86_64/macho.h: likewise
30419 * include/grub/x86_64/xnu.h: likewise
30420 * include/grub/xnu.h: likewise
30421 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
30422 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
30423 * loader/i386/efi/xnu.c: new file
30424 * loader/i386/pc/xnu.c: likewise
30425 * loader/i386/xnu.c: likewise
30426 * loader/i386/xnu_helper.S: likewise
30427 * loader/macho.c: likewise
30428 * loader/xnu.c: likewise
30429 * loader/xnu_resume.c: likewise
30430 * util/grub-dumpdevtree: likewise
30431 * include/grub/i386/pit.h: include grub/err.h
30432 (grub_pit_wait): export
30433 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
30435 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
30439 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
30440 _linux_efi, linux_efi.
30441 new files in grub-emu
30442 new targets efiemu32.o and efiemu64.o
30443 * loader/linux_normal_efiemu.c: likewise
30444 * loader/i386/efi/linux.c: added preliminary efiemu support
30445 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
30447 * include/grub/autoefi.h: new file
30448 * include/grub/i386/efiemu.h: likewise
30449 * include/grub/i386/pc/efiemu.h: likewise
30450 * include/grub/efi/api.h: add LL suffix when necessary
30451 new definitions relating to tables
30452 * include/grub/efiemu/efiemu.h: new file
30453 * include/grub/efiemu/runtime.h: likewise
30454 * efiemu/prepare.c: likewise
30455 * efiemu/loadcore_common.c: likewise
30456 * efiemu/loadcore64.c: likewise
30457 * efiemu/runtime/efiemu.sh: likewise
30458 * efiemu/runtime/efiemu.S: likewise
30459 * efiemu/runtime/efiemu.c: likewise
30460 * efiemu/runtime/config.h: likewise
30461 * efiemu/prepare32.c: likewise
30462 * efiemu/main.c: likewise
30463 * efiemu/modules/pnvram.c: likewise
30464 * efiemu/modules/i386: likewise
30465 * efiemu/modules/i386/pc: likewise
30466 * efiemu/modules/acpi.c: likewise
30467 * efiemu/i386/pc/cfgtables.c: likewise
30468 * efiemu/i386/loadcore64.c: likewise
30469 * efiemu/i386/loadcore32.c: likewise
30470 * efiemu/prepare64.c: likewise
30471 * efiemu/loadcore.c: likewise
30472 * efiemu/symbols.c: likewise
30473 * efiemu/mm.c: likewise
30474 * efiemu/loadcore32.c: likewise
30476 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
30480 * commands/acpi.c: new file
30481 * commands/i386/pc/acpi.c: likewise
30482 * commands/efi/acpi.c: likewise
30483 * include/grub/acpi.h: likewise
30484 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
30485 (acpi_mod_SOURCES): new variable
30486 (acpi_mod_CFLAGS): likewise
30487 (acpi_mod_LDFLAGS): likewise
30488 * conf/i386-efi.rmk: likewise
30489 * conf/x86_64-efi.rmk: likewise
30491 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
30493 Missing part from mmap patch
30495 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
30496 (grub_mmap_unregister)
30497 (grub_mmap_free_and_unregister): use grub_mmap_register
30499 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
30503 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
30504 * loader/i386/linux.c (find_mmap_size): likewise
30505 (allocate_pages): likewise
30506 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
30507 (grub_fill_multiboot_mmap): likewise
30508 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
30509 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
30510 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
30511 (OPENBSD_MMAP_RESERVED): likewise
30512 * include/grub/i386/pc/memory.h: include grub/memory.h
30513 (grub_lower_mem): removed
30514 (grub_upper_mem): likewise
30515 (GRUB_MACHINE_MEMORY_ACPI): new definition
30516 (GRUB_MACHINE_MEMORY_NVS): likewise
30517 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
30518 (GRUB_MACHINE_MEMORY_HOLE): likewise
30519 (grub_machine_mmap_register): likewise
30520 (grub_machine_mmap_unregister): likewise
30521 (grub_machine_get_upper): likewise
30522 (grub_machine_get_lower): likewise
30523 (grub_machine_get_post64): likewise
30524 * include/grub/i386/efi/memory.h: new file
30525 * include/grub/x86_64/efi/memory.h: likewise
30526 * include/grub/efi/memory.h: likewise
30527 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
30528 (mmap_mod_SOURCES): new variable
30529 (mmap_mod_LDFLAGS): likewise
30530 (mmap_mod_ASFLAGS): likewise
30531 * conf/i386-coreboot.rmk: likewise
30532 * conf/i386-ieee1275.rmk: likewise
30533 * conf/i386-efi.rmk: likewise
30534 * conf/x86_64-efi.rmk: likewise
30535 * include/grub/types.h (UINT_TO_PTR): new macro
30536 (PTR_TO_UINT32): likewise
30537 (PTR_TO_UINT64): likewise
30538 * include/grub/memory.h: new file
30539 * mmap/i386/pc/mmap.c: likewise
30540 * mmap/i386/pc/mmap_helper.S: likewise
30541 * mmap/i386/uppermem.c: likewise
30542 * mmap/mmap.c: likewise
30543 * mmap/efi/mmap.c: likewise
30544 * kern/i386/coreboot/init.c (grub_machine_init): don't use
30546 * kern/i386/pc/init.c (grub_lower_mem): removed variable
30547 (grub_upper_mem): likewise
30548 (grub_machine_init): don't use grub_upper_mem,
30549 make grub_lower_mem local
30550 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
30551 grub_mmap_iterate and grub_mmap_get_upper
30552 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
30554 2009-05-02 Bean <bean123ch@gmail.com>
30556 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
30557 script/sh/parser.y.
30558 (pkglib_MODULES): Add normal.mod and sh.mod.
30559 (normal_SOURCES): New variable.
30560 (normal_mod_CFLAGS): Likewise.
30561 (normal_mod_LDFLAGS): Likewise.
30562 (sh_mod_SOURCES): Likewise.
30563 (sh_mod_CFLAGS): Likewise.
30564 (sh_mod_LDFLAGS): Likewise.
30566 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
30567 script/sh/lexer.c_DEPENDENCIES.
30568 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
30569 kern/rescue_reader.c and kern/rescue_parser.c.
30570 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
30571 (grub_emu_SOURCES): Change source files.
30572 (pkglib_MODULES): Remove normal.mod.
30573 (normal_SOURCES): Removed.
30574 (normal_mod_CFLAGS): Likewise.
30575 (normal_mod_LDFLAGS): Likewise.
30576 * conf/i386-coreboot.rmk: Likewise.
30577 * conf/i386-efi.rmk: Likewise.
30578 * conf/i386-ieee1276.rmk: Likewise.
30579 * conf/powerpc-ieee1275.rmk: Likewise.
30580 * conf/sparc64-ieee1275.rmk: Likewise.
30581 * conf/x86_64-efi.rmk: Likewise.
30583 * include/grub/command.h (grub_command_execute): New inline function.
30585 * include/grub/menu.h (grub_menu_entry): Removed commands field.
30587 * include/grub/normal.h: Remove <grub/setjmp.h>.
30588 (grub_fs_module_list): Moved to normal/autofs.c.
30589 (grub_exit_env): Removed.
30590 (grub_command_execute): Likewise.
30591 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
30593 (read_command_list): New function declaration.
30594 (read_fs_list): Likewise.
30596 * include/parser.h: Include <grub/reader.h>.
30597 (grub_parser_split_cmdline): Change type of getline parameter.
30598 (grub_parser): New structure.
30599 (grub_parser_class): New variable.
30600 (grub_parser_execute): New function declaration.
30601 (grub_register_rescue_parser): Likewise.
30602 (grub_parser_register): New inline function.
30603 (grub_parser_unregister): Likewise.
30604 (grub_parser_get_current): Likewise.
30605 (grub_parser_set_current): Likewise.
30607 * include/grub/reader.h: New file.
30608 * kern/reader.c: Likewise.
30609 * kern/rescue_parser.c: Likewise.
30610 * kern/rescue_reader.c: Likewise.
30611 * normal/autofs.c: Likewise.
30612 * normal/dyncmd.c: Likewise.
30614 * include/grub/rescue.h: Removed.
30615 * normal/command.h: Likewise.
30617 * include/grub/script.h: Moved to ...
30618 * include/grub/script_sh.h: ... Moved here.
30619 * normal/execute.c: Moved to ...
30620 * script/sh/execute.c: ... Moved here.
30621 * normal/function.c: Moved to ...
30622 * script/sh/function.c: ... Moved here.
30623 * normal/lexer.c: Moved to ...
30624 * script/sh/lexer.c: ... Moved here.
30625 * normal/parser.y: Moved to ...
30626 * script/sh/parser.y: ... Moved here.
30627 * normal/script.c: Moved to ...
30628 * script/sh/script.c: ... Moved here.
30630 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
30632 (grub_exit_env): Removed.
30633 (fs_module_list): Moved to normal/autofs.c.
30634 (grub_file_getline): Don't handle comment here.
30635 (free_menu): Skip removed field entry->commands.
30636 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
30638 (read_config_file): Removed nested parameter, change getline function.
30639 (grub_enter_normal_mode): Removed.
30640 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
30641 (read_command_list): Likewise.
30642 (autoload_fs_module): Moved to normal/autofs.c.
30643 (read_fs_list): Likewise.
30644 (reader_nested): New variable.
30645 (grub_normal_execute): Run parser.sh to switch to sh parser.
30646 (grub_cmd_rescue): Removed.
30647 (cmd_normal): Removed.
30648 (grub_cmd_normal): Unregister itself at the beginning. Don't register
30650 (grub_cmdline_run): New function.
30651 (grub_normal_reader_init): Likewise.
30652 (grub_normal_read_line): Likewise.
30653 (grub_env_write_pager): Likewise.
30654 (cmdline): New variable.
30655 (grub_normal_reader): Likewise.
30656 (GRUB_MOD_INIT): Register normal reader and set as current, register
30657 pager hook, register normal command with grub_register_command_prio,
30658 so that it won't show up in command.lst.
30659 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
30660 grub_fs_autoload_hook.
30662 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
30663 (grub_menu_execute_entry): Replace grub_script_execute with
30664 grub_parser_execute, change parameter to grub_command_execute.
30666 * normal/menu_text.c: Remove <grub/script.h>.
30668 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
30669 and <grub/parser.h>.
30670 (run): Change editor_getline to use new parser interface. Change
30671 parameter to grub_command_execute.
30673 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
30674 <grub/reader.h> and <grub/parser.h>.
30675 (grub_load_normal_mode): Execute normal command.
30676 (grub_main): Call grub_register_core_commands,
30677 grub_register_rescue_parser and grub_register_rescue_reader, use
30678 grub_reader_loop to enter input loop.
30680 * kern/parser.c (grub_parser_split_cmdline): Change type of
30682 (grub_parser_class): New variable.
30683 (grub_parser_execute): New function.
30685 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
30686 * loader/multiboot2.c: Likewise.
30687 * loader/sparc64/ieee1275/linux.c: Likewise.
30689 * util/grub-emu.c (read_command_list): New dummy function.
30691 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
30693 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
30694 count to 16 for CCISS and IDA.
30696 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
30698 * normal/menu_text.c (grub_wait_after_message): Print a newline
30699 after waiting for user input.
30701 * loader/i386/linux.c: Include `<grub/normal.h>'.
30702 (grub_cmd_linux): Improve the error message about `ask' mode, by
30703 waiting for user input so it's not missed (we can do this, since
30704 user requested interaction).
30706 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
30708 Added missing lst to grub-mkrescue
30710 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
30711 and ${input_dir}/parttool.lst
30713 2009-04-30 David S. Miller <davem@davemloft.net>
30715 * util/hostdisk.c (device_is_wholedisk): New function.
30716 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
30717 zero only if device_is_wholedisk() returns true.
30719 * util/hostdisk.c (convert_system_partition_to_system_disk):
30720 Handle virtual disk devices named /dev/vdiskX as found on sparc
30723 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
30724 lettered partition specifier is found, convert to numbered.
30726 2009-04-29 David S. Miller <davem@davemloft.net>
30728 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
30729 * include/grub/sparc64/ieee1275/memory.h: Likewise.
30731 * normal/command.c: Add missing newline at end of file.
30733 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
30735 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
30736 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
30737 grub_ofdisk_read): Likewise, and deal similarly with the fact that
30738 ihandles have a 32-bit type but need to be stored in a "void *".
30740 2009-04-28 Pavel Roskin <proski@gnu.org>
30742 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
30743 not disk. Adjust all dependencies.
30744 (grub_fs_uuid_close): Use grub_device_close(), not
30747 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
30748 parent's partition, don't copy it by reference, as it gets freed
30751 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
30753 Preboot hooks support
30755 * commands/boot.c (struct grub_preboot_t): new declaration
30756 (preboots_head): new variable
30757 (preboots_tail): likewise
30758 (grub_loader_register_preboot_hook): new function
30759 (grub_loader_unregister_preboot_hook): likewise
30760 (grub_loader_set): launch preboot hooks
30761 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
30762 (grub_loader_register_preboot_hook): new declaration
30763 (grub_loader_unregister_preboot_hook): likewise
30765 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
30769 * disk/scsi.c (grub_scsi_open): added missing cast when
30770 calling grub_dprintf
30772 2009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
30774 Bug and warning fixes
30776 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
30778 * commands/test.c (test_parse): fixed bug with file tests and corrected
30779 declaration of find_file
30781 2009-04-26 Pavel Roskin <proski@gnu.org>
30783 * Makefile.in: Don't install empty manual pages if help2man is
30784 missing. Use help2man option for output, not shell redirection.
30786 2009-04-26 David S. Miller <davem@davemloft.net>
30788 * util/grub-mkdevicemap.c (make_device_map): Add missing
30789 NESTED_FUNC_ATTR to process_device().
30791 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
30795 * commands/test.c: rewritten to use bash-like test
30797 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
30799 Parttool autoloading and improvements
30801 * Makefile.in (pkglib_DATA): add parttool.lst
30802 (parttool.lst): new target
30803 * genmk.rb: generate parttool-*
30804 (CLEANFILES): add #{parttool}
30805 (PARTTOOLFILES): new variable
30806 * genparttoollist.sh: new file
30807 * parttool/pcpart.c (grub_pcpart_boot): more feedback
30808 (grub_pcpart_type): likewise
30809 * commands/parttool.c (helpmsg): new variable
30810 (grub_cmd_parttool): output help if not enough arguments are supplied
30812 (GRUB_MOD_INIT(parttool)): use helpmsg
30814 2009-04-24 David S. Miller <davem@davemloft.net>
30816 Avoiding opening same device multiple times in device iterator.
30818 * kern/device.c: (grub_device_iterate): Define struct part_ent,
30819 and use it to build a list of partitions in iterate_disk() and
30820 iterate_partition().
30822 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
30825 * disk/ieee1275/nand.c (grub_nand_iterate): Return
30826 grub_devalias_iterate() result instead of unconditional 0.
30827 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
30828 Also, capture hook return value, either directly or via
30829 grub_children_iterate(), and propagate to caller.
30830 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
30831 grub_children_iterate): Return value is now 'int' instead of
30833 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
30834 like a proper iterator, stopping when hooks return non-zero.
30835 (grub_devalias_iterate): Likewise.
30837 2009-04-23 David S. Miller <davem@davemloft.net>
30839 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
30841 2009-04-22 David S. Miller <davem@davemloft.net>
30843 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
30844 is larger than address_cells, use that value for address_cells too.
30846 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
30847 IEEE1275_MAX_PATH_LEN): Define.
30848 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
30849 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
30850 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
30851 'devtype'. Explicitly NULL terminate devalias expansion.
30853 * util/sparc64/ieee1275/misc.c: New file.
30854 * util/sparc64/ieee1275/grub-setup.c: New file.
30855 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
30856 * util/sparc64/ieee1275/grub-mkimage.c: New file.
30857 * util/sparc64/ieee1275/grub-install.in: New file.
30858 * util/ieee1275/ofpath.c: New file.
30859 * util/ieee1275/devicemap.c: New file.
30860 * util/devicemap.c: New file.
30861 * util/deviceiter.c: New file.
30862 * kern/sparc64/ieee1275/init.c: New file.
30863 * include/grub/util/ofpath.h: New file.
30864 * include/grub/util/deviceiter.h: New file.
30865 * util/grub-mkdevicemap.c: Include deviceiter.h.
30866 Implement using grub_util_emit_devicemap_entry and
30867 grub_util_iterate_devices.
30868 * conf/i386-corebook.rmk: Build util/deviceiter.c and
30869 util/devicemap.c into grub-mkdevicemap
30870 * conf/i386-efi.rmk: Likewise.
30871 * conf/i386-ieee1275.rmk: Likewise.
30872 * conf/i386-pc.rmk: Likewise.
30873 * conf/powerpc-ieee1275.rmk: Likewise.
30874 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
30875 images and installation utilities. Build kernel as image
30876 instead of as elf binary. Use common rules as much as possible.
30878 2009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
30880 Correct GPT definition
30882 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
30885 2009-04-19 Felix Zielcke <fzielcke@z-51.de>
30887 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
30889 2009-04-19 David S. Miller <davem@davemloft.net>
30891 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
30892 (grub_rescue_cmd_linux): Rename to...
30893 (grub_cmd_linux): and fix prototype.
30894 (grub_rescue_cmd_initrd): Rename to...
30895 (grub_cmd_initrd): and fix prototype.
30896 (cmd_linux, cmd_initrd): New.
30897 (GRUB_MOD_INIT(linux)): Use grub_register_command().
30898 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
30900 2009-04-17 Pavel Roskin <proski@gnu.org>
30902 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
30904 (grub_ohci_transfer): Likewise.
30906 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
30908 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
30909 return without a value. Fix inconsistent indentation.
30911 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
30912 match struct grub_fs.
30914 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
30915 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
30916 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
30917 * commands/lspci.c (grub_lspci_iter): Likewise.
30919 2009-04-16 Bean <bean123ch@gmail.com>
30921 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
30924 2009-04-15 Pavel Roskin <proski@gnu.org>
30926 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
30927 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
30928 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
30931 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
30933 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
30934 that no multiple data or metadata areas are supported and `Unknown
30937 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
30939 Move loader out of the kernel
30941 * kern/loader.c: moved to ...
30942 * commands/boot.c: ... moved here
30943 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
30944 * commands/boot.c (grub_cmd_boot): moved here. All users updated
30945 * include/grub/kernel.h (grub_machine_fini): export
30946 * include/grub/loader.h (grub_loader_is_loaded): update declaration
30947 (grub_loader_set): likewise
30948 (grub_loader_unset): likewise
30949 (grub_loader_boot): likewise
30950 * conf/common.rmk: new module boot.mod
30951 (pkglib_MODULES): add boot.mod
30952 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
30953 (grub_emu_SOURCES): likewise
30954 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
30955 (grub_emu_SOURCES): likewise
30956 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
30957 (grub_emu_SOURCES): likewise
30958 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
30959 (grub_emu_SOURCES): likewise
30960 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
30961 (grub_emu_SOURCES): likewise
30962 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
30963 (grub_emu_SOURCES): likewise
30964 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
30965 (grub_emu_SOURCES): likewise
30967 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
30969 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
30971 * kern/misc.c (grub_itoa): Removed function
30972 (grub_ltoa): likewise
30973 (grub_vsprintf): use grub_lltoa
30975 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
30979 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
30980 * conf/i386-coreboot.rmk: likewise
30981 * conf/i386-ieee1275.rmk: likewise
30982 * conf/powerpc-ieee1275.rmk: likewise
30984 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
30986 * INSTALL: Add that `./autogen.sh' needs to be run before
30989 2009-04-14 Bean <bean123ch@gmail.com>
30991 * Makefile.in (pkglib_DATA): Add handler.lst.
30992 (handler.lst): New rule.
30994 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
30995 * conf/i386-coreboot.rmk: Likewise.
30996 * conf/i386-ieee1275.rmk: Likewise.
30997 * conf/i386-efi.rmk: Likewise.
30998 * conf/x86_64-efi.rmk: Likewise.
30999 * conf/powerpc-ieee1275.rmk: Likewise.
31000 * conf/sparc64-ieee1275.rmk: Likewise.
31002 * genhandlerlist.sh: New file.
31004 * genmk.rb: Add rules to generate handler.lst.
31006 * include/grub/normal.h (grub_file_getline): New function definition.
31007 (read_handler_list): Likewise.
31008 (free_handler_list): Likewise.
31010 * include/grub/term.h (grub_term_register_input): Add name parameter
31011 for auto generation of handler.lst.
31012 (grub_term_register_output): Likewise.
31014 * normal/handler.c: New file.
31016 * normal/main.c (get_line): Renamed to grub_file_getline.
31017 (read_config_file): Use the newly renamed grub_file_getline.
31018 (read_command_list): Likewise.
31019 (read_fs_list): Likewise.
31020 (grub_normal_execute): Call read_handler_list to parse handler.lst.
31021 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
31023 * term/efi/console.c (grub_console_init): Add name parameter for auto
31024 generation of handler.lst.
31025 * term/gfxterm.c: Likewise.
31026 * term/i386/pc/at_keyboard.c: Likewise.
31027 * term/i386/pc/console.c: Likewise.
31028 * term/i386/pc/serial.c: Likewise.
31029 * term/i386/pc/vesafb.c: Likewise.
31030 * term/i386/pc/vga.c: Likewise.
31031 * term/i386/pc/vga_text.c: Likewise.
31032 * term/ieee1275/ofconsole.c: Likewise.
31033 * term/usb_keyboard.c: Likewise.
31035 2009-04-14 Bean <bean123ch@gmail.com>
31037 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
31038 properly with null character.
31040 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
31042 * configure: Remove.
31043 * config.h.in: Likewise.
31044 * stamp-h.in: Likewise.
31045 * DISTLIST: Likewise.
31046 * conf/common.mk: Likewise.
31047 * conf/i386-coreboot.mk: Likewise.
31048 * conf/i386-efi.mk: Likewise.
31049 * conf/i386-ieee1275.mk: Likewise.
31050 * conf/i386.mk: Likewise.
31051 * conf/i386-pc.mk: Likewise.
31052 * conf/powerpc-ieee1275.mk: Likewise.
31053 * conf/sparc64-ieee1275.mk: Likewise.
31054 * conf/x86_64-efi.mk: Likewise.
31056 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
31059 2009-04-14 John Stanley <jpsinthemix@verizon.net>
31060 David S. Miller <davem@davemloft.net>
31062 * util/hostdisk.c (make_device_name): Fix buffer length
31065 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
31067 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
31068 <sys/param.h> and <sys/sysctl.h>.
31069 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
31070 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
31071 opening the device and reset them afterwards.
31073 2009-04-13 Pavel Roskin <proski@gnu.org>
31075 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
31076 Reported by John Stanley <jpsinthemix@verizon.net>
31078 2009-04-13 Robert Millan <rmh@aybabtu.com>
31080 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
31081 that name for menuentries when appropriate.
31083 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
31085 * util/grub.d/10_freebsd.in: Add a missing `fi'.
31087 2009-04-13 Robert Millan <rmh@aybabtu.com>
31089 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
31090 to Linux, simply abort telling the user it's no longer supported.
31092 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
31094 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
31095 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
31096 `freebsd_loadenv' only when devices.hints exist.
31098 2009-04-13 Pavel Roskin <proski@gnu.org>
31100 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
31102 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
31104 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
31106 (grub_drive): Likewise.
31108 2009-04-13 David S. Miller <davem@davemloft.net>
31110 * kern/sparc64/ieee1275/ieee1275.c: New file.
31111 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
31112 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
31113 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
31114 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
31115 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
31116 grub_ieee1275_alloc_physmem): Declare new exported functions.
31118 * include/grub/sparc64/ieee1275/loader.h: New file.
31119 * include/grub/sparc64/ieee1275/memory.h: Likewise.
31120 * include/grub/sparc64/kernel.h: Likewise.
31121 * loader/sparc64/ieee1275/linux.c: Likewise.
31123 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
31124 (grub_fstest_SOURCES): Likewise.
31126 * util/hostdisk.c (make_device_name): Do not make any assumptions
31127 about the length of drive names.
31129 * kern/dl.c (grub_dl_load_file): Close file immediately when
31130 we are done using it.
31132 2009-04-12 David S. Miller <davem@davemloft.net>
31134 * kern/misc.c (grub_ltoa): Fix cast when handling negative
31135 values. Noticed by Pavel Roskin.
31137 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
31140 * genmk.rb: Add more flexible image type specification, also
31141 pass --strip-unneeded to objcopy.
31142 * conf/i386-pc.rmk: Use *_FORMAT.
31143 * conf/i386-pc.mk: Rebuilt.
31145 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
31146 (OFDISK_HASH_SZ): Define.
31147 (ofdisk_hash): New hash table.
31148 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
31149 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
31150 instead of device phandle which is not unique.
31152 * kern/sparc64/ieee1275/init.c: Delete, replace with...
31153 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
31154 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
31155 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
31156 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
31157 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
31158 GRUB_KERNEL_MACHINE_DATA_END): Define.
31159 (grub_kernel_image_size, grub_total_module_size): Declare.
31161 2009-04-12 Pavel Roskin <proski@gnu.org>
31163 * configure.ac: Change the logic when we check for target tools.
31164 Do it when the target is specified and it's different from the
31165 specified value of the host.
31167 2009-04-11 Felix Zielcke <fzielcke@z-51.de>
31169 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
31170 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
31171 GNU/kFreeBSD. Check if a device is a character device. Use
31172 DIOCGMEDIASIZE to get the size.
31173 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
31174 support for GNU/kFreeBSD.
31175 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
31176 is a character device instead of a block device. Add support for
31177 FreeBSD device names.
31179 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
31180 is a character device instead of a block device.
31182 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
31183 is a character device instead of a block device.
31185 2009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
31187 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
31188 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
31189 FreeBSD. Check if a device is a character device. Use
31190 DIOCGMEDIASIZE to get the size.
31191 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
31192 support for FreeBSD.
31193 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
31194 is a character device instead of a block device. Add support for
31195 FreeBSD device names.
31197 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
31198 a character device instead of a block device.
31199 (grub_util_check_char_device): New function.
31201 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
31202 a character device instead of a block device.
31204 * include/grub/util/getroot.h (grub_util_check_char_device): New
31207 2009-04-11 David S. Miller <davem@davemloft.net>
31209 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
31211 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
31212 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
31213 function, if present.
31214 (__bswapdi2): Likewise.
31216 * include/grub/sparc64/ieee1275/boot.h: New file.
31217 * boot/sparc64/ieee1275/boot.S: Likewise.
31218 * boot/sparc64/ieee1275/diskboot.S: Likewise.
31220 * kern/misc.c (grub_ltoa): New function.
31221 (grub_vsprintf): Use it to format 'long' integers.
31223 2009-04-10 David S. Miller <davem@davemloft.net>
31225 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
31226 slots are of type grub_ieee1275_cell_t.
31227 (grub_nand_read): Likewise.
31228 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
31229 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
31230 macros are used to compare values in arg/ret block of the call.
31231 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
31232 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
31233 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
31234 grub_ieee1275_instance_to_path, grub_ieee1275_write,
31235 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
31236 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
31237 grub_ieee1275_close, grub_ieee1275_set_property,
31238 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
31239 grub_ieee1275_cell_t.
31240 * kern/ieee1275/openfw.c (grub_map): Likewise.
31241 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
31242 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
31244 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
31245 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
31246 (grub_devalias_iterate): Likewise.
31248 2009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
31252 * fs/ufs.c (INODE_NBLOCKS): new definition
31253 (struct grub_ufs_dirent): added fields for non-BSD dirents
31254 (grub_ufs_get_file_block): fixed double indirect handling
31255 (grub_ufs_lookup_symlink): use more robust way to determine whether
31257 (grub_ufs_find_file): support for non-BSD dirents
31258 (grub_ufs_dir): support for non-BSD dirents
31260 2009-04-10 Bean <bean123ch@gnail.com>
31262 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
31263 attribute, otherwise the size would be wrong for i386 platform.
31265 * include/grub/pci.h (grub_pci_read_word): New inline function.
31266 (grub_pci_read_byte): Likewise.
31267 (grub_pci_write): Likewise.
31268 (grub_pci_write_word): Likewise.
31269 (grub_pci_write_byte): Likewise.
31271 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
31273 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
31274 (find_framebuf): Scan pci to locate the frame buffer address.
31276 * commands/efi/fixvideo.c: New file.
31278 * commands/efi/loadbios.c: Likewise.
31280 * commands/memrw.c: Likewise.
31282 * util/grub-dumpbios.in: Likewise.
31284 * conf/common.rmk (grub-dumpbios): New utility.
31285 (pkglib_MODULES): New module memrw.mod.
31286 (memrw_mod_SOURCE): New macro.
31287 (memrw_mod_CFLAGS): Likewise.
31288 (memrw_mod_LDFLAGS): Likewise.
31290 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
31292 (loadbios_mod_SOURCE): New macro.
31293 (loadbios_mod_CFLAGS): Likewise.
31294 (loadbios_mod_LDFLAGS): Likewise.
31295 (fixvideo_mod_SOURCE): Likewise.
31296 (fixvideo_mod_CFLAGS): Likewise.
31297 (fixvideo_mod_LDFLAGS): Likewise.
31299 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
31301 (loadbios_mod_SOURCE): New macro.
31302 (loadbios_mod_CFLAGS): Likewise.
31303 (loadbios_mod_LDFLAGS): Likewise.
31304 (fixvideo_mod_SOURCE): Likewise.
31305 (fixvideo_mod_CFLAGS): Likewise.
31306 (fixvideo_mod_LDFLAGS): Likewise.
31308 2009-04-08 Felix Zielcke <fzielcke@z-51.de>
31310 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
31312 2009-04-07 David S. Miller <davem@davemloft.net>
31314 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
31315 support for R_SPARC_OLO10 relocations. Fix compile warning for
31316 R_SPARC_WDISP30 case.
31317 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
31319 2009-04-06 Pavel Roskin <proski@gnu.org>
31321 * include/grub/misc.h (ARRAY_SIZE): New macro.
31322 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
31324 * loader/i386/linux.c (allocate_pages): Use free_pages().
31325 (grub_linux_unload): Don't use free_pages().
31326 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
31327 wrong index. Treat all other modes as text modes.
31328 (grub_cmd_linux): Initialize vid_mode unconditionally to
31329 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
31331 * commands/help.c (print_command_help): Use cmd->prio, not
31332 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
31334 2009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
31338 * parttool/pcpart.c: new file
31339 * commands/parttool.c: likewise
31340 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
31341 (parttool_mod_SOURCES): new variable
31342 (parttool_mod_CFLAGS): likewise
31343 (parttool_mod_LDFLAGS): likewise
31344 (pcpart_mod_SOURCES): likewise
31345 (pcpart_mod_CFLAGS): likewise
31346 (pcpart_mod_LDFLAGS): likewise
31347 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
31348 and parttool/pcpart.c
31349 * conf/i386-efi.rmk: likewise
31350 * conf/i386-ieee1275.rmk: likewise
31351 * conf/i386-pc.rmk: likewise
31352 * conf/powerpc-ieee1275.rmk: likewise
31353 * conf/sparc64-ieee1275.rmk: likewise
31354 * conf/x86_64-ieee1275.rmk: likewise
31356 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
31358 Support for mtime and further expandability of dir command
31360 * include/grub/lib/datetime.h: moved to ...
31361 * include/grub/datetime.h: ... moved here and added
31362 declaration of grub_unixtime2datetime. All users updated
31363 * include/grub/fs.h: new syntax for dir and mtime functions in
31365 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
31366 and GRUB_FSHELP_FLAGS_MASK
31367 * commands/ls.c (grub_ls_list_files): Write mtime in long format
31368 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
31369 (grub_ext2_mtime): new function
31370 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
31371 (grub_hfsplus_mtime): new function
31372 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
31373 (GRUB_UFS_ATTR_FILE): likewise
31374 (GRUB_UFS_ATTR_LNK): likewise
31375 (struct grub_ufs_sblock): new fields mtime
31376 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
31378 (grub_ufs_dir): mtime support
31379 (grub_ufs_mtime): new function
31380 * fs/affs.c (grub_affs_dir): use new dir syntax
31381 * fs/afs.c (grub_afs_dir): likewise
31382 * fs/cpio.c (grub_cpio_dir): likewise
31383 * fs/fat.c (grub_fat_find_dir): likewise
31384 * fs/hfs.c (grub_hfs_dir): likewise
31385 * fs/iso9660.c (grub_iso9660_dir): likewise
31386 * fs/jfs.c (grub_jfs_dir): likewise
31387 * fs/minix.c (grub_minix_dir): likewise
31388 * fs/ntfs.c (grub_ntfs_dir): likewise
31389 * fs/reiserfs.c (grub_reiserfs_dir): likewise
31390 * fs/sfs.c (grub_sfs_dir): likewise
31391 * fs/xfs.c (grub_xfs_dir): likewise
31392 * util/hostfs.c (grub_hostfs_dir): likewise
31393 * lib/datetime.c: moved to ...
31394 * normal/datetime.c: ... moved here
31395 (grub_unixtime2datetime): new function
31396 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
31397 * normal/completion.c (iterate_dir): use new dir syntax
31398 * normal/misc.c (grub_normal_print_device_info): tell the
31399 last modification time of a volume
31400 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
31401 * conf/common.rmk: added lib/datetime.c to ls.mod
31402 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
31403 (normal_mod_SOURCES): likewise
31404 (datetime_mod_SOURCES): Removed lib/datetime.c
31405 * conf/i386-efi.rmk: likewise
31406 * conf/i386-ieee1275.rmk: likewise
31407 * conf/i386-pc.rmk: likewise
31408 * conf/powerpc-ieee1275.rmk: likewise
31409 * conf/sparc64-ieee1275.rmk: likewise
31410 * conf/x86_64-efi.rmk: likewise
31412 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
31414 Trim trailing spaces in FAT label and support mtools-like labels
31416 * fs/fat.c (grub_fat_iterate_dir): New function based
31417 on grub_fat_find_dir
31418 (grub_fat_find_dir): use grub_fat_iterate_dir
31419 (grub_fat_label): likewise
31421 2009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
31423 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
31425 remove extraneous kernel_elf_HEADERS
31427 2009-04-04 Bean <bean123ch@gnail.com>
31429 * include/grub/util/misc.h: Add dummy function fsync for mingw.
31431 * util/misc.c: Likewise.
31433 2009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
31435 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
31436 instead of grub_printf.
31438 2009-04-03 Robert Millan <rmh@aybabtu.com>
31440 * loader/i386/linux.c (grub_linux_setup_video): Fill
31441 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
31442 values from `mode info' structure instead of hardcoded
31445 2009-04-01 Pavel Roskin <proski@gnu.org>
31447 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
31449 * genmk.rb: Likewise.
31450 * configure.ac: Likewise.
31452 2009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
31454 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
31455 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
31457 2009-04-01 David S. Miller <davem@davemloft.net>
31459 * normal/sparc64/setjmp.S: Fix setjmp implementation.
31460 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
31461 (grub_setjmp): Mark with 'returns_twice' attribute.
31462 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
31463 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
31464 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
31466 2009-04-01 Robert Millan <rmh@aybabtu.com>
31468 Reapply fix from 2008-07-28 which was accidentally reverted; also
31469 perform the same fix to a similar check in same function.
31471 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
31472 with the same number are found, just use issue a warning with
31473 grub_dprintf(), as this error has been reported to be non-fatal.
31475 2009-03-31 Pavel Roskin <proski@gnu.org>
31477 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
31478 for cross-compilation.
31480 2009-03-30 Robert Millan <rmh@aybabtu.com>
31482 Fix i386-ieee1275 build.
31484 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
31485 Remove declaration.
31487 2009-03-30 Pavel Roskin <proski@gnu.org>
31489 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
31490 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
31491 zero-terminated, rely only on the strlen value. Fix comparison
31492 of strings differing in length.
31494 2009-03-30 Robert Millan <rmh@aybabtu.com>
31496 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
31497 checking for abi version. Improve error messages on BIOS to notify
31498 user about `linux16' command.
31500 2009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
31504 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
31505 in case of collision
31506 * disk/scsi.c (grub_scsi_open): free scsi in case of error
31508 2009-03-29 Robert Millan <rmh@aybabtu.com>
31510 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
31511 set `vid_mode' accordingly.
31512 (grub_linux_boot): Process `vid_mode' and set video mode.
31514 2009-03-29 Robert Millan <rmh@aybabtu.com>
31516 * util/grub.d/10_linux.in (linux_entry): New function.
31517 Factorize generation of Linux boot entries.
31519 2009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
31521 Make the format of Environment Block plain text. The boot loader
31522 part is not tested well yet.
31524 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
31526 (envblk): Likewise.
31527 (usage): Remove "info" and "clear". Add "unset". Update the
31528 description of "set", as this does not delete variables any
31530 (create_envblk_file): Complete rewrite.
31531 (open_envblk_file): Likewise.
31532 (cmd_info): Removed.
31533 (cmd_list): Likewise.
31534 (cmd_set): Likewise.
31535 (cmd_clear): Likewise.
31536 (list_variables): New function.
31537 (write_envblk): Likewise.
31538 (set_variables): Likewise.
31539 (unset_variables): Likewise.
31540 (main): Complete rewrite.
31542 * commands/loadenv.c (buffer): Removed.
31543 (envblk): Likewise.
31544 (open_envblk_file): New function.
31545 (read_envblk_file): Complete rewrite.
31546 (grub_cmd_load_env): Likewise.
31547 (grub_cmd_list_env): Likewise.
31548 (struct blocklist): New struct.
31549 (free_blocklists): New function.
31550 (check_blocklists): Likewise.
31551 (write_blocklists): Likewise.
31552 (grub_cmd_save_env): Complete rewrite.
31554 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
31555 a plain text signature.
31556 (GRUB_ENVBLK_MAXLEN): Removed.
31557 (struct grub_envblk): Complete rewrite.
31558 (grub_envblk_find): Removed.
31559 (grub_envblk_insert): Likewise.
31560 (grub_envblk_open): New prototype.
31561 (grub_envblk_set): Likewise.
31562 (grub_envblk_delete): Put const to VALUE.
31563 (grub_envblk_iterate): Put const to NAME and VALUE.
31564 (grub_envblk_close): New prototype.
31565 (grub_envblk_buffer): New inline function.
31566 (grub_envblk_size): Likewise.
31568 * lib/envblk.c: Include grub/mm.h.
31569 (grub_env_find): Removed.
31570 (grub_envblk_open): New function.
31571 (grub_envblk_close): Likewise.
31572 (escaped_value_len): Likewise.
31573 (find_next_line): Likewise.
31574 (grub_envblk_insert): Removed.
31575 (grub_envblk_set): New function.
31576 (grub_envblk_delete): Complete rewrite.
31577 (grub_envblk_iterate): Likewise.
31579 2009-03-28 Robert Millan <rmh@aybabtu.com>
31581 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
31582 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
31583 variables. Use 16-bit loader.
31584 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
31586 * kern/i386/loader.S (grub_linux_boot): Rename to ...
31587 (grub_linux16_boot): ... this. Update all users.
31588 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
31589 (grub_linux_boot): ... this. Update all users.
31591 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
31592 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
31593 commands to `linux16' and `initrd16'.
31594 (GRUB_MOD_FINI(linux)): Rename to ...
31595 (GRUB_MOD_FINI(linux16)): ... this.
31597 2009-03-24 Pavel Roskin <proski@gnu.org>
31599 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
31600 not just for compilation.
31602 2009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
31604 Move multiboot helper out of kernel
31606 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
31607 `loader/i386/multiboot_helper.S'.
31608 * conf/i386-coreboot.rmk: Likewise
31609 * conf/i386-ieee1275.rmk: Likewise
31611 * kern/i386/loader.S: Move multiboot helpers from here...
31612 * loader/i386/multiboot_helper.S: ...moved here
31613 * include/grub/i386/loader.h: Move declarations of multiboot
31614 helpers from here...
31615 * include/grub/i386/multiboot.h: ...moved here
31616 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
31618 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
31620 * kern/env.c (grub_env_context_open): Added an argument to specify
31621 whether a new context inherits exported variables from current
31622 one. This is useful when making a sandbox to interpret a config
31624 All callers updated.
31626 * include/grub/env.h (grub_env_context_open): Updated the prototype.
31628 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
31630 * kern/env.c (grub_env_context_close): Fix memory leaks.
31632 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
31634 * normal/main.c (grub_normal_execute): Added an argument
31635 BATCH to specify if an interactive interface should be provided
31636 after reading a config file.
31637 All callers updated.
31638 (read_command_list): Prevent being executed twice.
31639 (read_fs_list): Likewise.
31641 * include/grub/normal.h (grub_normal_execute): Updated the
31644 2009-03-22 Pavel Roskin <proski@gno.org>
31646 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
31648 * kern/i386/pc/startup.S: Likewise.
31649 * kern/i386/efi/startup.S: Likewise.
31650 * kern/i386/ieee1275/startup.S: Likewise.
31651 * kern/i386/coreboot/startup.S: Likewise.
31652 * kern/x86_64/efi/startup.S: Likewise.
31654 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
31655 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
31656 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
31658 2009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
31660 Bugfixes in multiboot for bugs uncovered by solaris kernel.
31662 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
31664 Use vaddr of correct segment for entry_point.
31666 2009-03-21 Bean <bean123ch@gmail.com>
31668 * commands/blocklist.c: Add include file <grub/command.h>, remove
31669 <grub/normal.h> and <grub/arg.h>.
31670 (grub_cmd_blocklist): Use the new command interface.
31671 (GRUB_MOD_INIT): Likewise.
31672 (GRUB_MOD_FINI): Likewise.
31673 * commands/boot.c: Likewise.
31674 * commands/cat.c: Likewise.
31675 * commands/cmp.c: Likewise.
31676 * commands/configfile.c: Likewise.
31677 * commands/crc.c: Likewise.
31678 * commands/echo.c: Likewise.
31679 * commands/halt.c: Likewise.
31680 * commands/handler.c: Likewise.
31681 * commands/hdparm.c: Likewise.
31682 * commands/help.c: Likewise.
31683 * commands/hexdump.c: Likewise.
31684 * commands/loadenv.c: Likewise.
31685 * commands/ls.c: Likewise.
31686 * commands/lsmmap.c: Likewise.
31687 * commands/lspci.c: Likewise.
31688 * commands/loadenv.c: Likewise.
31689 * commands/read.c: Likewise.
31690 * commands/reboot.c: Likewise.
31691 * commands/search.c: Likewise.
31692 * commands/sleep.c: Likewise.
31693 * commands/test.c: Likewise.
31694 * commands/usbtest.c: Likewise.
31695 * commands/videotest.c: Likewise.
31696 * commands/i386/cpuid.c: Likewise.
31697 * commands/i386/pc/halt.c: Likewise.
31698 * commands/i386/pc/play.c: Likewise.
31699 * commands/i386/pc/pxecmd.c: Likewise.
31700 * commands/i386/pc/vbeinfo.c: Likewise.
31701 * commands/i386/pc/vbetest.c: Likewise.
31702 * commands/ieee1275/suspend.c: Likewise.
31703 * disk/loopback.c: Likewise.
31704 * font/font_cmd.c: Likewise.
31705 * hello/hello.c: Likewise.
31706 * loader/efi/appleloader.c: Likewise.
31707 * loader/efi/chainloader.c: Likewise.
31708 * loader/i386/bsd.c: Likewise.
31709 * loader/i386/efi/linux.c: Likewise.
31710 * loader/i386/ieee1275/linux.c: Likewise.
31711 * loader/i386/linux.c: Likewise.
31712 * loader/i386/pc/chainloader.c: Likewise.
31713 * loader/i386/pc/linux.c: Likewise.
31714 * loader/powerpc/ieee1275/linux.c: Likewise.
31715 * loader/multiboot_loader.c: Likewise.
31716 * term/gfxterm.c: Likewise.
31717 * term/i386/pc/serial.c: Likewise.
31718 * term/terminfo.c: Likewise.
31720 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
31721 * term/i386/pc/vga.c: Likewise.
31722 * video/readers/jpeg.c: Likewise.
31723 * video/readers/png.c: Likewise.
31724 * video/readers/tga.c: Likewise.
31726 * util/grub-fstest (cmd_loopback): Removed.
31727 (cmd_blocklist): Likewise.
31728 (cmd_ls): Likewise.
31729 (grub_register_command): Likewise.
31730 (grub_unregister_command): Likewise.
31731 (execute_command): Use grub_command_find to locate command and execute
31734 * include/grub/efi/chainloader.h: Removed.
31735 * loader/efi/chainloader_normal.c: Likewise.
31736 * loader/i386/bsd_normal.c: Likewise.
31737 * loader/i386/pc/chainloader_normal.c: Likewise.
31738 * loader/i386/pc/multiboot_normal.c: Likewise.
31739 * loader/linux_normal.c: Likewise.
31740 * loader/multiboot_loader_normal.c: Likewise.
31741 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
31743 * gencmdlist.sh: Scan new registration command grub_register_extcmd
31744 and grub_register_command_p1.
31746 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
31747 kern/command.c, lib/arg.c and commands/extcmd.c.
31748 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
31749 (minicmd_mod_SOURCES): New variable.
31750 (minicmd_mod_CFLAGS): Likewise.
31751 (minicmd_mod_LDFLAGS): Likewise.
31752 (extcmd_mod_SOURCES): Likewise.
31753 (extcmd_mod_CFLAGS): Likewise.
31754 (extcmd_mod_LDFLAGS): Likewise.
31755 (boot_mod_SOURCES): Removed.
31756 (boot_mod_CFLAGS): Likewise.
31757 (boot_mod_LDFLAGS): Likewise.
31759 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
31761 (kernel_img_HEADERS): Add command.h.
31762 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
31763 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
31765 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
31766 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
31767 remove the corresponding normal mode command.
31768 (normal_mod_SOURCES): Remove normal/arg.c.
31769 * conf/i386-coreboot.rmk: Likewise.
31770 * conf/i386-efi.rmk: Likewise.
31771 * conf/i386-ieee1275.rmk: Likewise.
31772 * conf/powerpc-ieee1275.rmk: Likewise.
31773 * conf/x86_64-efi.rmk: Likewise.
31775 * include/grub/arg.h: Move from here ...
31776 * include/grub/lib/arg.h: ... to here.
31778 * normal/arg.c: Move from here ...
31779 * lib/arg.c: ... to here.
31781 * commands/extcmd.c: New file.
31782 * commands/minicmd.c: Likewise.
31783 * include/grub/command.h: Likewise.
31784 * include/grub/extcmd.h: Likewise.
31785 * kern/command.c: Likewise.
31786 * kern/corecmd.c: Likewise.
31788 * kern/list.c (grub_list_iterate): Return int instead of void.
31789 (grub_list_insert): New function.
31790 (grub_prio_list_insert): Likewise.
31792 * kern/rescue.c (grub_rescue_command): Removed.
31793 (grub_rescue_command_list): Likewise.
31794 (grub_rescue_register_command): Likewise.
31795 (grub_rescue_unregister_command): Likewise.
31796 (grub_rescue_cmd_boot): Move to minicmd.c
31797 (grub_rescue_cmd_help): Likewise.
31798 (grub_rescue_cmd_info): Likewise.
31799 (grub_rescue_cmd_boot): Likewise.
31800 (grub_rescue_cmd_testload): Likewise.
31801 (grub_rescue_cmd_dump): Likewise.
31802 (grub_rescue_cmd_rmmod): Likewise.
31803 (grub_rescue_cmd_lsmod): Likewise.
31804 (grub_rescue_cmd_exit): Likewise.
31805 (grub_rescue_print_devices): Moved to corecmd.c.
31806 (grub_rescue_print_files): Likewise.
31807 (grub_rescue_cmd_ls): Likewise.
31808 (grub_rescue_cmd_insmod): Likewise.
31809 (grub_rescue_cmd_set): Likewise.
31810 (grub_rescue_cmd_unset): Likewise.
31811 (attempt_normal_mode): Use grub_command_find to get normal module.
31812 (grub_enter_rescue_mode): Use grub_register_core_commands to register
31813 commands, remove grub_rescue_register_command calls.
31815 * normal/command.c (grub_register_command): Removed.
31816 (grub_unregister_command): Likewise.
31817 (grub_command_find): Likewise.
31818 (grub_iterate_commands): Likewise.
31819 (rescue_command): Likewise.
31820 (export_command): Moved to corecmd.c.
31821 (set_command): Removed.
31822 (unset_command): Likewise.
31823 (insmod_command): Likewise.
31824 (rmmod_command): Likewise.
31825 (lsmod_command): Likewise.
31826 (grub_command_init): Likewise.
31828 * normal/completion.c (iterate_command): Use cmd->prio to check for
31830 (complete_arguments): Use grub_extcmd_t structure to find options.
31831 (grub_normal_do_completion): Change function grub_iterate_commands to
31832 grub_command_iterate.
31834 * normal/execute.c (grub_script_execute_cmd): No need to parse
31837 * normal/main.c (grub_dyncmd_dispatcher): New function.
31838 (read_command_list): Register unload commands as dyncmd.
31839 (grub_cmd_normal): Use new command interface, register rescue,
31840 unregister normal at entry, register normal, unregister rescue at exit.
31842 * include/grub/list.h (grub_list_test_t): New type.
31843 (grub_list_iterate): Return int instead of void.
31844 (grub_list_insert): New function.
31845 (GRUB_AS_NAMED_LIST_P): New macro.
31846 (GRUB_AS_PRIO_LIST): Likewise.
31847 (GRUB_AS_PRIO_LIST_P): Likewise.
31848 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
31849 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
31850 (grub_prio_list): New structure.
31851 (grub_prio_list_insert): New function.
31852 (grub_prio_list_remove): New inline function.
31854 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
31855 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
31856 (GRUB_COMMAND_FLAG_MENU): Likewise.
31857 (GRUB_COMMAND_FLAG_BOTH): Likewise.
31858 (GRUB_COMMAND_FLAG_TITLE): Likewise.
31859 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
31860 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
31861 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
31862 (grub_command): Likewise.
31863 (grub_register_command): Likewise.
31864 (grub_command_find): Likewise.
31865 (grub_iterate_commands): Likewise.
31866 (grub_command_init): Likewise.
31867 (grub_arg_parse): Likewise.
31868 (grub_arg_show_help): Likewise.
31870 * include/grub/rescue.h (grub_rescue_register_command): Removed.
31871 (grub_rescue_unregister_command): Likewise.
31873 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
31874 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
31875 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
31877 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
31878 grub_rescue_cmd_initrd.
31879 * include/grub/i386/loader.h: Likewise.
31880 * include/grub/x86_64/loader.h: Likewise.
31882 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
31884 2009-03-21 Bean <bean123ch@gmail.com>
31886 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
31887 instead of stat in mingw environment.
31889 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
31891 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
31893 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
31896 2009-03-21 Bean <bean123ch@gmail.com>
31898 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
31899 out of range error.
31901 2009-03-18 Michel Dänzer <michel@daenzer.net>
31903 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
31904 checking inode flags for EXT4_EXTENTS_FLAG.
31906 2009-03-18 Robert Millan <rmh@aybabtu.com>
31908 * loader/i386/linux.c: Include `<grub/video.h>' and
31909 `<grub/i386/pc/vbe.h>'..
31910 (grub_linux_setup_video): New function. Loosely based on the EFI one.
31911 (grub_linux32_boot): Attempt to configure video settings with
31912 grub_linux_setup_video().
31913 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
31914 to avoid grub_console_fini() which would step out of graphical mode
31917 2009-03-14 Robert Millan <rmh@aybabtu.com>
31919 Fix build on powerpc.
31920 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
31922 2009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
31924 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
31925 background image command.
31927 2009-03-12 Colin D Bennett <colin@gibibit.com>
31929 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
31930 (grub_gfxterm_putchar): Extract pairs of identical calls to
31931 draw_cursor out of conditional blocks.
31933 2009-03-11 Pavel Roskin <proski@gnu.org>
31935 * fs/hfs.c (grub_hfs_strncasecmp): New function.
31936 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
31938 2009-03-11 Robert Millan <rmh@aybabtu.com>
31940 * loader/i386/multiboot_elfxx.c
31941 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
31943 2009-03-11 Felix Zielcke <fzielcke@z-51.de>
31945 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
31948 2009-03-11 Robert Millan <rmh@aybabtu.com>
31950 * loader/i386/multiboot.c (code_size): New variable.
31951 (grub_multiboot): Define offsets by adding to `code_size' rather
31952 than subtracting from `grub_multiboot_payload_size'. Provide
31953 4-byte alignment to MBI and others by increasing
31954 `boot_loader_name_length' appropriately.
31956 * loader/i386/multiboot_elfxx.c
31957 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
31959 2009-03-09 Felix Zielcke <fzielcke@z-51.de>
31961 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
31964 2009-03-08 Robert Millan <rmh@aybabtu.com>
31966 Make loader/i386/linux.c usable on i386-pc again.
31968 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
31970 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
31973 2009-03-07 Bean <bean123ch@gmail.com>
31975 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
31978 2009-03-06 Robert Millan <rmh@aybabtu.com>
31980 Fix display issue on terminals with screen size other than 80x25
31981 (e.g. gfxterm with resolution higher than 640x480).
31983 * normal/main.c (grub_normal_init_page): Display title text in a
31984 position relative to the center of the terminal instead of relying
31985 on a hardcoded offset.
31987 2009-03-04 Robert Millan <rmh@aybabtu.com>
31989 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
31992 * Makefile.in (host_kernel): New variable.
31993 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
31994 scripts instead of just the windows one.
31995 * configure.ac: Initialize and AC_SUBST `host_kernel'.
31997 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
31999 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
32001 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
32002 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
32003 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
32004 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32005 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32006 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32008 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
32010 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
32011 or if there's no space for the disk label and print the partition number on a
32014 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
32016 * util/misc.c: Include <time.h>.
32017 (grub_millisleep): New function.
32019 2009-03-04 Bean <bean123ch@gmail.com>
32021 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
32022 another option -mno-red-zone.
32024 * commands/handler.c: Change module description.
32026 * kern/handler.c: Add missing space at the end of description line.
32028 * kern/list.c: Likewise.
32030 2009-03-03 Robert Millan <rmh@aybabtu.com>
32032 Move more components to the relocation area, and fix mbi pointer
32033 handling to use the destination rather than the origin (thanks to
32034 Vladimir Serbinenko for spotting).
32036 * loader/i386/multiboot.c (mbi_dest): New variable.
32037 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
32038 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
32041 2009-03-01 Bean <bean123ch@gmail.com>
32043 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
32044 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
32045 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
32046 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
32048 * loader/i386/efi/linux.c (acpi_guid): New variable.
32049 (acpi_guid): Likewise.
32050 (EBDA_SEG_ADDR): New constant.
32051 (LOW_MEM_ADDR): Likewise.
32052 (FAKE_EBDA_SEG): Likewise.
32053 (fake_bios_data): New function.
32054 (grub_linux_boot): Call fake_bios_data.
32056 2009-03-01 Bean <bean123ch@gmail.com>
32058 * commands/terminal.c: Removed.
32060 * commands/handler.c: New file.
32062 * include/grub/list.h: Likewise.
32064 * include/grub/handler.h: Likewise.
32066 * kern/list.c: Likewise.
32068 * kern/handler.c: Likewise.
32070 * kern/term.h: Include header file <grub/handler.h>.
32071 (grub_term_input): Move next field to the beginning.
32072 (grub_term_output): Likewise.
32073 (grub_term_input_class): New variable.
32074 (grub_term_output_class): Likewise.
32075 (grub_term_register_input): Changed to inline function.
32076 (grub_term_register_output): Likewise.
32077 (grub_term_unregister_input): Likewise.
32078 (grub_term_unregister_output): Likewise.
32079 (grub_term_set_current_input): Likewise.
32080 (grub_term_set_current_output): Likewise.
32081 (grub_term_get_current_input): Likewise.
32082 (grub_term_get_current_output): Likewise.
32083 (grub_term_iterate_input): Removed.
32084 (grub_term_iterate_output): Likewise.
32086 * kern/term.c (grub_term_list_input): Removed.
32087 (grub_term_list_output): Likewise.
32088 (grub_term_input_class): New variable.
32089 (grub_term_output_class): Likewise.
32090 (grub_cur_term_input): Change variable as macro.
32091 (grub_cur_term_output): Likewise.
32092 (grub_term_register_input): Removed.
32093 (grub_term_register_output): Likewise.
32094 (grub_term_unregister_input): Likewise.
32095 (grub_term_unregister_output): Likewise.
32096 (grub_term_set_current_input): Likewise.
32097 (grub_term_set_current_output): Likewise.
32098 (grub_term_iterate_input): Likewise.
32099 (grub_term_iterate_output): Likewise.
32100 (grub_term_get_current_input): Likewise.
32101 (grub_term_get_current_output): Likewise.
32103 * util/grub-editenv.c: Include header file <grub/handler.h>.
32104 (grub_term_get_current_input): Removed.
32105 (grub_term_get_current_output): Likewise.
32106 (grub_term_input_class): New variable.
32107 (grub_term_output_class): Likewise.
32109 * util/grub-fstest.c (grub_term_get_current_input): Removed.
32110 (grub_term_get_current_output): Likewise.
32111 (grub_term_input_class): New variable.
32112 (grub_term_output_class): Likewise.
32114 * util/grub-probe.c (grub_term_get_current_input): Removed.
32115 (grub_term_get_current_output): Likewise.
32116 (grub_term_input_class): New variable.
32117 (grub_term_output_class): Likewise.
32119 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
32120 (grub_term_get_current_output): Likewise.
32121 (grub_term_input_class): New variable.
32122 (grub_term_output_class): Likewise.
32124 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
32125 (terminal_mod_SOURCES): Likewise.
32126 (terminal_mod_CFLAGS): Likewise.
32127 (terminal_mod_LDFLAGS): Likewise.
32129 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
32131 (kernel_img_SOURCES): Add list.c and handler.c.
32132 (kernel_img_HEADERS): Add list.h and handler.h.
32134 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
32136 (kernel_mod_SOURCES): Add list.c and handler.c.
32137 (kernel_mod_HEADERS): Add list.h and handler.h.
32139 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
32141 (kernel_elf_SOURCES): Add list.c and handler.c.
32142 (kernel_elf_HEADERS): Add list.h and handler.h.
32144 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
32146 (kernel_elf_SOURCES): Add list.c and handler.c.
32147 (kernel_elf_HEADERS): Add list.h and handler.h.
32149 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
32151 (kernel_mod_SOURCES): Add list.c and handler.c.
32152 (kernel_mod_HEADERS): Add list.h and handler.h.
32154 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
32156 (kernel_elf_SOURCES): Add list.c and handler.c.
32157 (kernel_elf_HEADERS): Add list.h and handler.h.
32159 2009-02-27 Robert Millan <rmh@aybabtu.com>
32161 Factorize elf32 / elf64 code in Multiboot loader. This will
32162 prevent it from getting out of sync again.
32164 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
32165 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
32166 grub_multiboot_load_elf64): Move from here ...
32167 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
32168 grub_multiboot_load_elf): ... to here (new file).
32170 2009-02-27 Robert Millan <rmh@aybabtu.com>
32172 * util/grub.d/10_linux.in: Rename "single-user mode" to
32175 2009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
32177 Don't leak in SCSI code.
32178 * disk/scsi.c (grub_scsi_close): free `scsi'.
32180 2009-02-27 Robert Millan <rmh@aybabtu.com>
32182 * loader/i386/pc/multiboot.c: Move from here ...
32183 * loader/i386/multiboot.c: ... to here. Update all users.
32185 2009-02-27 Robert Millan <rmh@aybabtu.com>
32187 Patch from Alexandre Bique <bique.alexandre@gmail.com>
32188 * util/i386/pc/grub-setup.c (setup): Fix directory path.
32190 2009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
32192 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
32195 2009-02-27 Robert Millan <rmh@aybabtu.com>
32197 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
32198 `0x' qualifier as 0 when base is specified as parameter).
32200 2009-02-24 Bean <bean123ch@gmail.com>
32202 * configure.ac: Check for -mcmodel=large in x86_64 target.
32204 * include/grub/efi/api.h (efi_call_10): New macro.
32205 (efi_wrap_10): New function.
32207 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
32208 (GRUB_PE32_REL_BASED_HIGH): Likewise.
32209 (GRUB_PE32_REL_BASED_LOW): Likewise.
32210 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
32211 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
32212 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
32213 (GRUB_PE32_REL_BASED_SECTION): Likewise.
32214 (GRUB_PE32_REL_BASED_REL): Likewise.
32215 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
32216 (GRUB_PE32_REL_BASED_DIR64): Likewise.
32217 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
32219 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
32222 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
32223 (efi_wrap_10): New function.
32225 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
32227 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
32228 MB/MBP model (NV chipset).
32229 (devdata_devs): Add devpath_5 to the list.
32231 * load/i386/efi/linux.c (video_base): Remove variable.
32232 (RGB_MASK): New macro.
32233 (RGB_MAGIC): Likewise.
32234 (LINE_MIN): Likewise.
32235 (LINE_MAX): Likewise.
32236 (FBTEST_STEP): Likewise.
32237 (FBTEST_COUNT): Likewise.
32238 (fb_list): New variable.
32239 (grub_find_video_card): Remove function.
32240 (find_framebuf): New function.
32241 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
32244 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
32245 problem for x86_64.
32247 2009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
32249 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
32251 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
32254 2009-02-22 Robert Millan <rmh@aybabtu.com>
32256 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
32257 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
32258 in our relocation, instead of using it directly from heap. Also
32259 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
32261 2009-02-21 Robert Millan <rmh@aybabtu.com>
32263 Implement USB keyboard support (based on patch by Marco Gerards)
32265 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
32266 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
32267 (usb_keyboard_mod_LDFLAGS): New variables.
32269 * term/usb_keyboard.c: New file.
32271 2009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
32273 Corrected wrong declaration
32275 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
32277 2009-02-14 Christian Franke <franke@computer.org>
32279 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
32280 (grub_lspci_iter): Print class code and programming interface byte.
32282 2009-02-14 Christian Franke <franke@computer.org>
32284 * gendistlist.sh: Ignore `.svn' directories.
32286 2009-02-14 Felix Zielcke <fzielcke@z-51.de>
32288 * fs/fat.c: Add 2009 to Copyright line.
32290 2009-02-14 Christian Franke <franke@computer.org>
32292 * commands/hdparm.c: New file. Provides `hdparm' command
32293 which sends ATA commands via grub_disk_ata_pass_through ().
32295 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
32297 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
32298 and <grub/cpu/io.h> to include/grub/ata.h.
32299 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
32300 (GRUB_CDROM_SECTOR_SIZE): Remove.
32301 (GRUB_ATA_*): Move to include/grub/ata.h.
32302 (GRUB_ATAPI_*): Likewise.
32303 (enum grub_ata_commands): Likewise.
32304 (enum grub_ata_timeout_milliseconds): Likewise.
32305 (struct grub_ata_device): Likewise.
32306 (grub_ata_regset): Likewise.
32307 (grub_ata_regget): Likewise.
32308 (grub_ata_regset2): Likewise.
32309 (grub_ata_regget2): Likewise.
32310 (grub_ata_check_ready): Likewise.
32311 (grub_ata_wait_not_busy): Remove static, exported in
32312 include/grub/ata.h.
32313 (grub_ata_wait_drq): Likewise.
32314 (grub_ata_pio_read): Likewise.
32316 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
32317 function for hdparm.mod.
32319 * include/grub/ata.h: New file, contains declarations from
32321 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
32323 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
32324 (grub_disk_ata_pass_through): New exported variable.
32326 * kern/disk.c (grub_disk_ata_pass_through): New variable.
32328 2009-02-13 Colin D Bennett <colin@gibibit.com>
32330 Support multiple fallback entries, and provide an API to support
32331 executing default+fallback menu entries. Renamed the `terminal' menu
32334 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
32335 variable declaration.
32336 (grub_menu_execute_callback): New structure declaration.
32337 (grub_menu_execute_callback_t): New typedef.
32338 (grub_menu_execute_with_fallback): New function declaration.
32339 (grub_menu_get_entry): Likewise.
32340 (grub_menu_get_timeout): Likewise.
32341 (grub_menu_set_timeout): Likewise.
32343 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
32345 * normal/menu.c (grub_wait_after_message): Moved to
32346 `normal/menu_text.c'.
32347 (draw_border): Likewise.
32348 (print_message): Likewise.
32349 (print_entry): Likewise.
32350 (print_entries): Likewise.
32351 (grub_menu_init_page): Likewise.
32352 (get_entry_number): Likewise.
32353 (print_timeout): Likewise.
32354 (run_menu): Likewise.
32355 (grub_menu_execute_entry): Likewise.
32356 (show_text_menu): Likewise.
32357 (get_and_remove_first_entry_number): New function.
32358 (grub_menu_execute_with_fallback): Likewise.
32359 (get_entry): Renamed to ...
32360 (grub_menu_get_entry): .. this and made it global.
32361 (get_timeout): Renamed to ...
32362 (grub_menu_get_timeout): ... this and made it global.
32363 (set_timeout): Renamed to ...
32364 (grub_menu_set_timeout): ... this and made it global.
32365 (grub_normal_terminal_menu_viewer): Renamed to ...
32366 (grub_normal_text_menu_viewer): ... this.
32368 * normal/menu_text.c: New file. Extracted text-menu-specific code
32369 from normal/menu.c.
32371 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
32372 (normal_mod_SOURCES): Likewise.
32374 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
32375 (normal_mod_SOURCES): Likewise.
32377 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32378 (normal_mod_SOURCES): Likewise.
32380 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
32381 (normal_mod_SOURCES): Likewise.
32383 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32384 (normal_mod_SOURCES): Likewise.
32386 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32387 (normal_mod_SOURCES): Likewise.
32389 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
32390 (normal_mod_SOURCES): Likewise.
32392 2009-02-11 Robert Millan <rmh@aybabtu.com>
32394 * util/grub.d/00_header.in: Update old reference to `font' command.
32396 2009-02-10 Felix Zielcke <fzielcke@z-51.de>
32398 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
32400 Based on patch from Javier Martín.
32402 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
32404 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
32405 to avoid false positives with FAT.
32406 (grub_fstest_SOURCES): Likewise.
32407 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
32408 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
32409 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32410 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
32411 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32412 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32414 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
32416 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
32417 bpb.version_specific.fat12_or_fat16.fstype and
32418 bpb.version_specific.fat32.fstype.
32420 2009-02-08 Robert Millan <rmh@aybabtu.com>
32422 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
32424 2009-02-08 Robert Millan <rmh@aybabtu.com>
32426 * Makefile.in (host_os, host_cpu): New variables.
32427 (target_os): Remove. Update all users.
32429 2009-02-08 Marco Gerards <marco@gnu.org>
32431 * Makefile.in (enable_grub_emu_usb): New variable.
32432 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
32433 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
32434 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
32435 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
32436 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
32437 `usbtest.mod' and `usbms.mod'.
32438 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
32439 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
32440 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
32441 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
32442 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
32445 * disk/usbms.c: New file.
32447 * include/grub/usb.h: Likewise.
32449 * include/grub/usbtrans.h: Likewise.
32451 * include/grub/usbdesc.h: Likewise.
32453 * bus/usb/usbtrans.c: Likewise.
32455 * bus/usb/ohci.c: Likewise.
32457 * bus/usb/uhci.c: Likewise.
32459 * bus/usb/usbhub.c: Likewise.
32461 * bus/usb/usb.c: Likewise.
32463 * commands/usbtest.c: Likewise.
32465 * util/usb.c: Likewise.
32467 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
32469 * configure.ac: Test for libusb presence.
32471 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
32473 2009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
32475 * kern/mm.c: Add more comments.
32477 2009-02-08 Robert Millan <rmh@aybabtu.com>
32479 Patch from Javier Martín.
32480 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
32481 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
32483 2009-02-08 Robert Millan <rmh@aybabtu.com>
32485 * fs/cpio.c: Split tar functionality to ...
32486 * fs/tar.c: ... here (new file). Update all users.
32488 2009-02-07 Robert Millan <rmh@aybabtu.com>
32490 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
32491 backward-incompatible features.
32493 Based on patch from Javier Martín, with some adjustments.
32495 2009-02-07 Michael Scherer <misc@mandriva.org>
32497 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
32499 2009-02-07 Robert Millan <rmh@aybabtu.com>
32501 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
32502 position of `disk/lvm.c' to ensure grub_init_all() always picks it
32503 after the RAID stuff.
32505 2009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
32507 Fixes problem when running vbetest command as reported by
32508 Vladimir Serbinenko <phcoder@gmail.com>.
32510 * (grub_vbe_set_video_mode): Fixed problem with text modes.
32512 2009-02-04 Felix Zielcke <fzielcke@z-51.de>
32514 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
32515 /dev/md/NpN style mdraid devices.
32517 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
32519 * util/unifont2pff.rb: Remove.
32521 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
32523 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
32526 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
32528 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
32529 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
32530 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
32531 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
32532 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32533 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32534 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32536 2009-02-02 Christian Franke <franke@computer.org>
32538 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
32540 2009-02-01 Felix Zielcke <fzielcke@z-51.de>
32542 * INSTALL: Note that we now require at least autoconf 2.59 and
32543 that LZO is optional.
32545 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
32547 Base on patch on bug #24154 created by Tomas Tintera
32548 <trosos@seznam.cz>.
32550 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
32552 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
32554 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
32555 <bero@arklinux.org>.
32557 * normal/parser.y (script_init): Add missing semicolon.
32559 2009-01-31 Colin D Bennett <colin@gibibit.com>
32561 * normal/main.c: Add include to grub/menu_viewer.h.
32562 (free_menu_entry_classes): Added.
32563 (grub_normal_menu_addentry): Added class property handling.
32564 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
32565 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
32567 * normal/menu_viewer.c: New file.
32569 * normal/menu.c (run_menu_entry): Renamed to ...
32570 (grub_menu_execute_entry): ... this and made it as global.
32571 (grub_menu_run): Renamed to ...
32572 (show_text_menu): ... this and made it local.
32573 (show_text_menu): Adapt to new function names.
32574 (grub_normal_terminal_menu_viewer): New global variable.
32576 * include/grub/menu.h: New file.
32578 * include/grub/menu_viewer.h: New file.
32580 * include/grub/normal.h: Added include to grub/menu.h.
32581 (grub_menu_entry): Moved to include/grub/menu.h.
32582 (grub_menu_entry_t): Likewise.
32583 (grub_menu): Likewise.
32584 (grub_menu_t): Likewise.
32585 (grub_normal_terminal_menu_viewer): Added.
32586 (grub_menu_execute_entry): Likewise.
32587 (grub_menu_run): Removed.
32589 * DISTLIST: Added include/grub/menu.h.
32590 Added include/grub/menu_viewer.h.
32591 Added normal/menu_viewer.c.
32593 2009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
32595 * normal/execute.c (grub_script_execute_menuentry): Changed to use
32596 arglist for menutitle arguments.
32598 * normal/main.c (grub_normal_menu_addentry): Likewise.
32600 * normal/parser.y (menuentry): Likewise.
32602 * normal/script.c (grub_script_create_cmdmenu): Likewise.
32604 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
32605 (grub_script_create_cmdmenu): Likewise.
32607 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
32609 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
32612 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
32614 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
32616 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
32618 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
32620 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
32622 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
32624 2009-01-30 Christian Franke <franke@computer.org>
32626 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
32627 in option help text.
32629 2009-01-27 Pavel Roskin <proski@gnu.org>
32631 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
32633 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
32635 * commands/lsmmap.c: Add include to grub/machine/memory.h.
32637 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
32639 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
32640 unregister function.
32642 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
32644 * disk/scsi.c (grub_scsi_read): Fix sign problem.
32646 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
32648 * util/grub-mkfont.c (usage): Fix typo.
32650 * util/elf/grub-mkimage.c (load_modules): Fix warning.
32652 2009-01-26 Daniel Mierswa <impulze@impulze.org>
32654 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
32656 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
32658 * kern/misc.c (grub_strcasecmp): New function.
32659 (grub_strcasecmp): Use grub_size_t instead of int for length.
32661 * include/grub/misc.h: Update function prototypes.
32663 2009-01-26 Robert Millan <rmh@aybabtu.com>
32665 * configure.ac: Fix cross-compilation check.
32667 2009-01-22 Christian Franke <franke@computer.org>
32669 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
32670 (precision) digit string. Allow `.format2' without `format1' (width).
32671 Limit input chars for `%s' output to `format2' if specified. This is
32672 compatible with standard printf ().
32674 2009-01-22 Christian Franke <franke@computer.org>
32676 * disk/ata.c (grub_ata_wait_status): Replace by ...
32677 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
32678 other status bits may be invalid while BSY is asserted.
32679 (grub_ata_check_ready): New function.
32680 (grub_ata_cmd): Removed.
32681 (grub_ata_wait_drq): New function.
32682 (grub_ata_strncpy): Remove inline.
32683 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
32684 and error check now done by grub_ata_wait_drq ().
32685 (grub_ata_pio_write): Likewise.
32686 (grub_atapi_identify): Set DEV before check for !BSY. Use
32687 grub_ata_wait_drq () to wait for data.
32688 (grub_ata_device_initialize): Add status register check to
32689 detect missing SATA slave devices. Add debug messages.
32690 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
32691 (grub_atapi_packet): Set DEV before check for !BSY. Replace
32692 transfer loop by grub_ata_pio_write ().
32693 (grub_ata_identify): Set DEV before check for !BSY. Use
32694 grub_ata_wait_drq () to wait for data.
32695 (grub_ata_setaddress): Set DEV before check for !BSY.
32696 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
32697 read/write in one loop. Fix invalid command on write. Fix incomplete
32698 command on (size % batch) == 0. Add missing error check after write of
32699 last block. Add debug messages.
32700 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
32702 2009-01-19 Christian Franke <franke@computer.org>
32704 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
32705 (GRUB_ATAPI_IREASON_*): Likewise.
32706 (grub_ata_pio_write): Fix timeout error return.
32707 (grub_atapi_identify): Add grub_ata_wait () after cmd.
32708 (grub_atapi_wait_drq): New function.
32709 (grub_atapi_packet): New parameter `size'.
32710 Use grub_atapi_wait_drq () and direct write instead of
32711 grub_ata_pio_write ().
32712 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
32713 reads the number of bytes requested by the device for each DRQ
32715 (grub_atapi_write): Remove old implementation, return not
32716 implemented instead.
32718 2009-01-19 Christian Franke <franke@computer.org>
32720 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
32721 of 512 to calculate data size.
32722 (grub_scsi_read12): Likewise.
32723 (grub_scsi_write10): Likewise.
32724 (grub_scsi_write12): Likewise.
32725 (grub_scsi_read): Adjust size according to blocksize.
32726 Add checks for invalid blocksize and unaligned transfer.
32728 2009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
32730 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
32732 * term/gfxterm.c (write_char): Fix background rendering for wide
32735 2009-01-19 Robert Millan <rmh@aybabtu.com>
32737 * config.guess: Update to latest version from config git.
32738 * config.sub: Likewise.
32740 2009-01-17 Felix Zielcke <fzielcke@z-51.de>
32742 * Makefile.in: Change font compilation to use new grub-mkfont instead
32745 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
32746 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
32747 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
32748 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
32749 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
32750 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
32751 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
32752 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
32753 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
32755 2009-01-16 Christian Franke <franke@computer.org>
32757 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
32758 (enum grub_ata_timeout_milliseconds): New enum.
32759 (grub_ata_wait_status): Add parameter milliseconds.
32760 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
32761 recovery from timed-out commands.
32762 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
32763 return grub_errno instead of REG_ERROR.
32764 (grub_ata_pio_write): Add parameter milliseconds.
32765 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
32766 Pass milliseconds to grub_ata_wait_status () and
32767 grub_ata_pio_read ().
32768 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
32769 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
32770 grub_ata_wait_status (). Fix IDENTIFY timeout check.
32771 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
32772 It is not suitable for device detection, because DEV bit is ignored,
32773 the command may run too long, and not all devices set the signature
32775 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
32776 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
32777 Fix device selection, DEV bit must be set first to address the registers
32778 of the correct device.
32779 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
32780 grub_ata_pio_read/write ().
32781 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
32782 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
32784 2009-01-13 Carles Pina i Estany <carles@pina.cat>
32786 * util/grub-editenv.c (main): Use fseeko(), not fseek().
32788 2009-01-13 Bean <bean123ch@gmail.com>
32790 * util/grub-mkfont.c (write_font): forget to remove some debug code.
32792 2009-01-13 Bean <bean123ch@gmail.com>
32794 * Makefile.in: (enable_grub_mkfont): New variable.
32795 (freetype_cflags): Likewise.
32796 (freetype_libs): Likewise.
32798 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
32799 (grub_mkfont_SOURCES): New variable.
32800 (grub_mkfont_CFLAGS): Likewise.
32801 (grub_mkfont_LDFLAGS): Likewise.
32803 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
32804 library if `--enable-grub-mkfont' is requested.
32805 (enable_grub_mkfont): New variable.
32806 (freetype_cflags): Likewise.
32807 (freetype_libs): Likewise.
32809 * util/grub-mkfont.c: New file.
32811 2009-01-12 Christian Franke <franke@computer.org>
32813 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
32814 mode check. Fix setting of compat_use[].
32816 2009-01-10 Robert Millan <rmh@aybabtu.com>
32818 Update a few copyright years which we forgot to do in 2008 (only for
32819 files whose changes made in 2008 were copyright-significant)
32821 * Makefile.in: Add 2008 to Copyright line.
32822 * disk/ieee1275/ofdisk.c: Likewise.
32823 * disk/efi/efidisk.c: Likewise.
32824 * kern/dl.c: Likewise.
32825 * kern/sparc64/ieee1275/init.c: Likewise.
32826 * kern/mm.c: Likewise.
32827 * kern/efi/mm.c: Likewise.
32828 * boot/i386/pc/boot.S: Likewise.
32829 * genfslist.sh: Likewise.
32830 * fs/iso9660.c: Likewise.
32831 * fs/hfs.c: Likewise.
32832 * fs/jfs.c: Likewise.
32833 * fs/minix.c: Likewise.
32834 * fs/ufs.c: Likewise.
32835 * gensymlist.sh.in: Likewise.
32836 * genkernsyms.sh.in: Likewise.
32837 * include/grub/misc.h: Likewise.
32838 * include/grub/types.h: Likewise.
32839 * include/grub/symbol.h: Likewise.
32840 * include/grub/elf.h: Likewise.
32841 * include/grub/kernel.h: Likewise.
32842 * include/grub/disk.h: Likewise.
32843 * include/grub/dl.h: Likewise.
32844 * include/grub/i386/linux.h: Likewise.
32845 * include/grub/i386/pc/biosdisk.h: Likewise.
32846 * include/grub/efi/api.h: Likewise.
32847 * include/grub/efi/pe32.h: Likewise.
32848 * include/grub/util/misc.h: Likewise.
32849 * normal/execute.c: Likewise.
32850 * normal/arg.c: Likewise.
32851 * normal/completion.c: Likewise.
32852 * normal/lexer.c: Likewise.
32853 * normal/parser.y: Likewise.
32854 * normal/misc.c: Likewise.
32855 * commands/i386/pc/vbeinfo.c: Likewise.
32856 * commands/hexdump.c: Likewise.
32857 * commands/terminal.c: Likewise.
32858 * commands/ls.c: Likewise.
32859 * commands/help.c: Likewise.
32860 * partmap/pc.c: Likewise.
32861 * loader/efi/chainloader.c: Likewise.
32862 * loader/multiboot_loader.c: Likewise.
32863 * loader/i386/pc/multiboot2.c: Likewise.
32864 * term/efi/console.c: Likewise.
32865 * term/i386/pc/serial.c: Likewise.
32866 * util/lvm.c: Likewise.
32867 * util/console.c: Likewise.
32868 * util/i386/efi/grub-mkimage.c: Likewise.
32869 * util/raid.c: Likewise.
32871 2009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
32873 * commands/videotest.c: Removed include to grub/machine/memory.h.
32875 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
32876 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
32877 (video_mod_SOURCES): Removed.
32878 (video_mod_CFLAGS): Likewise.
32879 (video_mod_LDFLAGS): Likewise.
32880 (gfxterm_mod_SOURCES): Likewise.
32881 (gfxterm_mod_CFLAGS): Likewise.
32882 (gfxterm_mod_LDFLAGS): Likewise.
32883 (videotest_mod_SOURCES): Likewise.
32884 (videotest_mod_CFLAGS): Likewise.
32885 (videotest_mod_LDFLAGS): Likewise.
32886 (bitmap_mod_SOURCES): Likewise.
32887 (bitmap_mod_CFLAGS): Likewise.
32888 (bitmap_mod_LDFLAGS): Likewise.
32889 (tga_mod_SOURCES): Likewise.
32890 (tga_mod_CFLAGS): Likewise.
32891 (tga_mod_LDFLAGS): Likewise.
32892 (jpeg_mod_SOURCES): Likewise.
32893 (jpeg_mod_CFLAGS): Likewise.
32894 (jpeg_mod_LDFLAGS): Likewise.
32895 (png_mod_SOURCES): Likewise.
32896 (png_mod_CFLAGS): Likewise.
32897 (png_mod_LDFLAGS): Likewise.
32899 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
32900 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
32901 (video_mod_SOURCES): Added.
32902 (video_mod_CFLAGS): Likewise.
32903 (video_mod_LDFLAGS): Likewise.
32904 (videotest_mod_SOURCES): Likewise.
32905 (videotest_mod_CFLAGS): Likewise.
32906 (videotest_mod_LDFLAGS): Likewise.
32907 (bitmap_mod_SOURCES): Likewise.
32908 (bitmap_mod_CFLAGS): Likewise.
32909 (bitmap_mod_LDFLAGS): Likewise.
32910 (tga_mod_SOURCES): Likewise.
32911 (tga_mod_CFLAGS): Likewise.
32912 (tga_mod_LDFLAGS): Likewise.
32913 (jpeg_mod_SOURCES): Likewise.
32914 (jpeg_mod_CFLAGS): Likewise.
32915 (jpeg_mod_LDFLAGS): Likewise.
32916 (png_mod_SOURCES): Likewise.
32917 (png_mod_CFLAGS): Likewise.
32918 (png_mod_LDFLAGS): Likewise.
32919 (gfxterm_mod_SOURCES): Likewise.
32920 (gfxterm_mod_CFLAGS): Likewise.
32921 (gfxterm_mod_LDFLAGS): Likewise.
32923 * term/gfxterm.c: Removed include to grub/machine/memory.h,
32924 grub/machine/console.h.
32926 2009-01-04 Jerone Young <jerone@gmail.com>
32928 Make on screen instructions clearer
32930 Based on patch created by Jidanni <jidanni@jidanni.org>
32932 * normal/menu.c: print clearer instructions on the screen
32934 2009-01-02 Colin D Bennett <colin@gibibit.com>
32938 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
32939 build system and fixed gfxterm.c to work with different sized fonts.
32941 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
32943 * configure: Re-generated.
32945 * DISTLIST: Removed font/manager.c.
32947 Added font/font_cmd.c.
32949 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
32952 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
32954 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
32956 * kern/term.c: Changed users of grub_utf8_to_ucs4.
32958 * normal/menu.c: Likewise.
32960 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
32961 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
32963 * include/grub/font.h: Replaced with new file.
32965 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
32966 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
32967 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
32968 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
32969 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
32970 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
32971 fg_red, fg_green, fg_blue, fg_alpha.
32972 (grub_video_adapter): Removed blit_glyph.
32973 (grub_video_blit_glyph): Removed.
32975 * font/manager.c: Removed file.
32977 * font/font.c: New file.
32979 * font/font_cmd.c: Likewise.
32981 * video/video.c (grub_video_blit_glyph): Removed.
32983 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
32984 (grub_video_vbe_map_rgba): Likewise.
32985 (grub_video_vbe_unmap_color_int): Likewise.
32986 (grub_video_vbe_blit_glyph): Removed.
32987 (grub_video_vbe_adapter): Removed blit_glyph.
32989 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
32990 (get_pixel): Likewise.
32991 (set_pixel): Likewise.
32993 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
32995 * term/gfxterm.c: Adapted to new font engine.
32997 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
32999 * term/i386/pc/vga.c: Likewise.
33001 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
33003 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
33005 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
33007 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
33009 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
33011 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
33013 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
33015 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
33017 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
33019 * util/grub.d/00_header.in: Changed to use new loadfont command.
33021 * util/grub-mkconfig_lib.in: Changed font extension.
33023 2008-12-28 Felix Zielcke <fzielcke@z-51.de>
33025 * util/getroot.c (grub_util_get_grub_dev): Add support for
33026 /dev/md/dNNpNN style partitionable mdraid devices.
33028 2008-12-12 Alex Smith <alex@alex-smith.me.uk>
33030 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
33031 at a time limit of the PXE TFTP API correctly.
33032 (grub_pxefs_close): Likewise.
33034 2008-11-29 Robert Millan <rmh@aybabtu.com>
33036 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
33037 grub_ata_device_initialize() calls.
33039 2008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
33041 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
33043 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
33045 2008-11-28 Robert Millan <rmh@aybabtu.com>
33047 Fix build on powerpc-ieee1275. Based on patch created by
33048 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
33049 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
33050 `kern/ieee1275/mmap.c'.
33051 * include/grub/powerpc/ieee1275/memory.h: New file.
33053 Provide grub-install on coreboot.
33054 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
33055 (grub_install_SOURCES): New variable.
33056 * util/i386/pc/grub-install.in: Add a few condition checks to make it
33057 usable on coreboot.
33059 2008-11-25 Felix Zielcke <fzielcke@z-51.de>
33061 * util/grub-fstest.c (grub_term_get_current_input): Change return type
33062 to `grub_term_input_t'.
33063 (grub_term_get_current_output): Change return type to
33064 `grub_term_output_t'.
33066 2008-11-22 Robert Millan <rmh@aybabtu.com>
33068 Fix breakage on coreboot due to declaration mismatch.
33069 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
33070 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
33071 grub_vga_text_cls().
33073 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
33074 comments. Avoid copying one more byte than necessary (just in case).
33076 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
33077 to 0x200000 (avoids trouble with some OFW implementations, and matches
33078 with the one in Yaboot).
33079 Reported by Manoel Abranches
33081 2008-11-20 Robert Millan <rmh@aybabtu.com>
33083 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
33084 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
33086 * util/grub-mkconfig_lib.in (grub_warn): New function.
33087 (convert_system_path_to_grub_path): Use grub_warn() when issuing
33088 warnings, to obtain consistent formatting.
33089 * util/grub.d/00_header.in: Likewise.
33090 * util/update-grub_lib.in: Likewise.
33092 * loader/i386/linux.c (allocate_pages): Fix a warning.
33093 Move comment text to `#error' stanza.
33095 Harmonize ieee1275's grub_available_iterate() with the generic
33096 grub_machine_mmap_iterate() interface (fixes a recently-introduced
33097 build problem on i386-ieee1275):
33098 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
33099 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
33100 parameter `type'. Update all users of this function.
33101 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
33102 `kern/ieee1275/mmap.c'.
33103 * kern/ieee1275/init.c
33104 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
33106 (grub_machine_mmap_iterate): ... this.
33107 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
33108 return type to `grub_err_t'. Update all implementations of this
33109 function prototype.
33110 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
33113 Add `lsmmap' command (lists firmware-provided memory map):
33114 * commands/lsmmap.c: New file.
33115 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
33116 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
33118 * conf/powerpc-ieee1275.rmk: Likewise.
33119 * conf/i386-coreboot.rmk: Likewise.
33120 * conf/i386-ieee1275.rmk: Likewise.
33122 2008-11-19 Robert Millan <rmh@aybabtu.com>
33124 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
33125 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
33126 constraints to initrd allocation (based on code from
33127 loader/i386/pc/linux.c). Without them, initrd was allocated too high
33128 for Linux to find it.
33130 2008-11-14 Robert Millan <rmh@aybabtu.com>
33132 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
33133 order to cope with duplicate slashes.
33135 2008-11-14 Robert Millan <rmh@aybabtu.com>
33137 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
33138 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
33139 don't want to mess with lower memory, because it is used in the Linux
33142 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
33143 an appropriate place in lower memory, between 0x10000 and 0x90000,
33144 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
33145 is in our heap (probably as a result of it being corrupted during
33146 decompression). Add #error instance with comment to explain why this
33147 loader isn't currently usable on PC/BIOS.
33149 2008-11-14 Robert Millan <rmh@aybabtu.com>
33151 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
33152 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
33154 2008-11-12 Robert Millan <rmh@aybabtu.com>
33156 Make loader/i386/linux.c buildable on i386-pc (although disabled).
33158 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
33159 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
33161 * include/grub/i386/pc/memory.h: ... to here.
33163 2008-11-12 Robert Millan <rmh@aybabtu.com>
33165 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
33168 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
33169 (grub_console_cur_color, grub_console_real_putchar)
33170 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
33171 (grub_console_setcolorstate, grub_console_setcolor)
33172 (grub_console_getcolor): Move from here ...
33173 * include/grub/i386/vga_common.h: ... to here (new file).
33175 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
33176 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
33177 `<grub/i386/io.h>'.
33178 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
33179 `<grub/i386/vga_common.h>'.
33181 2008-11-12 Robert Millan <rmh@aybabtu.com>
33183 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
33184 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
33185 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
33187 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
33188 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
33190 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
33191 grub_console_init() with call to grub_vga_text_init().
33192 (grub_machine_fini): Replace call to
33193 grub_console_fini() with call to grub_vga_text_fini() and
33194 grub_at_keyboard_fini().
33196 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
33197 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
33198 (grub_console_setcolorstate, grub_console_setcolor)
33199 (grub_console_getcolor): New function prototypes.
33201 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
33202 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
33203 (grub_vga_text_setcursor): Static-ize.
33204 (grub_vga_text_term): New structure.
33205 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
33207 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
33208 (grub_console_cur_color, grub_console_standard_color)
33209 (grub_console_normal_color, grub_console_highlight_color)
33210 (map_char, grub_console_putchar, grub_console_getcharwidth)
33211 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
33212 (grub_console_getcolor): Move from here ...
33213 * term/i386/vga_common.c: ... to here (same function names).
33215 2008-11-12 Robert Millan <rmh@aybabtu.com>
33217 Use newly-added Multiboot support in coreboot.
33219 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
33220 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
33222 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
33223 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
33224 (codestart): Store the MBI in `startup_multiboot_info' when we're
33225 being loaded using Multiboot.
33227 * kern/i386/coreboot/init.c (grub_machine_init): Move
33228 grub_at_keyboard_init() call to beginning of function (useful for
33229 debugging). Call grub_machine_mmap_init() before attempting to use
33230 grub_machine_mmap_iterate().
33231 (grub_lower_mem, grub_upper_mem): Move from here ...
33232 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
33235 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
33236 function prototype.
33238 2008-11-12 Robert Millan <rmh@aybabtu.com>
33240 Fix a regression introduced by the at_keyboard.mod split. Because
33241 some terminals are default on some platforms and non-default on
33242 others, the first terminal being registered determines which is
33243 going to be default.
33245 * kern/term.c (grub_term_register_input): If this is the first
33246 terminal being registered, set it as the current one.
33247 (grub_term_register_output): Likewise.
33249 * term/efi/console.c (grub_console_init): Do not call
33250 grub_term_set_current_output() or grub_term_set_current_input().
33251 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
33252 * term/i386/pc/console.c (grub_console_init): Likewise.
33253 (grub_console_fini): Do not call grub_term_set_current_input()
33254 (but leave grub_term_set_current_output() to restore text mode).
33256 2008-11-10 Robert Millan <rmh@aybabtu.com>
33258 * util/grub.d/00_header.in: Add backward compatibility check for
33259 versions of terminal.mod that don't understand `terminal_input' or
33262 2008-11-09 Robert Millan <rmh@aybabtu.com>
33264 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
33265 `terminal_input' / `terminal_output', not `terminal'.
33267 2008-11-08 Robert Millan <rmh@aybabtu.com>
33269 * Makefile.in (include_DATA): Fix srcdir=. assumption.
33270 (DISTCLEANFILES): Add `build_env.mk'.
33272 2008-11-08 Robert Millan <rmh@aybabtu.com>
33274 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
33275 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
33276 members. Update all users.
33277 * util/console.c (grub_ncurses_term): Split in ...
33278 (grub_ncurses_term_input): ... this, and ...
33279 (grub_ncurses_term_output): ... this. Update all users.
33280 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
33282 2008-11-08 Robert Millan <rmh@aybabtu.com>
33284 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
33285 (PKGDATA): Add $(pkgdata_SRCDIR).
33286 (pkglib_BUILDDIR): New variable.
33287 (pkgdata_SRCDIR): New variable.
33288 (build_env.mk): New target.
33289 (include_DATA): New variable.
33290 (install-local): Install $(include_DATA) files in $(includedir).
33292 2008-11-07 Pavel Roskin <proski@gnu.org>
33294 * gendistlist.sh: Use C locale for sorting to ensure consistent
33295 output on all systems.
33297 * util/grub.d/00_header.in: Remove incorrect space before
33300 2008-11-07 Robert Millan <rmh@aybabtu.com>
33302 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
33304 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
33305 * loader/multiboot_loader.c (find_multi_boot2_header): New function
33306 (based on find_multi_boot1_header).
33307 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
33308 using find_multi_boot2_header(), and abort if neither Multiboot or
33309 Multiboot headers were found.
33311 2008-11-07 Robert Millan <rmh@aybabtu.com>
33313 Modularize at_keyboard.mod:
33315 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
33316 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
33317 (at_keyboard_mod_LDFLAGS): New variables.
33319 Actual terminal split:
33321 * include/grub/term.h (struct grub_term): Split in ...
33322 (struct grub_term_input): ... this, and ...
33323 (struct grub_term_output): ... this. Update all users.
33324 (grub_term_set_current): Split in ...
33325 (grub_term_set_current_input): ... this, and ...
33326 (grub_term_set_current_output): ... this.
33327 (grub_term_get_current): Split in ...
33328 (grub_term_get_current_input): ... this, and ...
33329 (grub_term_get_current_output): ... this.
33330 (grub_term_register): Split in ...
33331 (grub_term_register_input): ... this, and ...
33332 (grub_term_register_output): ... this.
33333 (grub_term_unregister): Split in ...
33334 (grub_term_unregister_input): ... this, and ...
33335 (grub_term_unregister_output): ... this.
33336 (grub_term_iterate): Split in ...
33337 (grub_term_iterate_input): ... this, and ...
33338 (grub_term_iterate_output): ... this.
33340 * kern/term.c (grub_term_list): Split in ...
33341 (grub_term_list_input): ... this, and ...
33342 (grub_term_list_output): ... this. Update all users.
33343 (grub_cur_term): Split in ...
33344 (grub_cur_term_input): ... this, and ...
33345 (grub_cur_term_output): ... this. Update all users.
33346 (grub_term_set_current): Split in ...
33347 (grub_term_set_current_input): ... this, and ...
33348 (grub_term_set_current_output): ... this.
33349 (grub_term_get_current): Split in ...
33350 (grub_term_get_current_input): ... this, and ...
33351 (grub_term_get_current_output): ... this.
33352 (grub_term_register): Split in ...
33353 (grub_term_register_input): ... this, and ...
33354 (grub_term_register_output): ... this.
33355 (grub_term_unregister): Split in ...
33356 (grub_term_unregister_input): ... this, and ...
33357 (grub_term_unregister_output): ... this.
33358 (grub_term_iterate): Split in ...
33359 (grub_term_iterate_input): ... this, and ...
33360 (grub_term_iterate_output): ... this.
33362 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
33363 a check for input and one for output (and only attempt to get keys
33364 from user when input works).
33366 * util/grub-probe.c (grub_term_get_current): Split in ...
33367 (grub_term_get_current_input): ... this, and ...
33368 (grub_term_get_current_output): ... this.
33369 * util/grub-fstest.c: Likewise.
33370 * util/i386/pc/grub-setup.c: Likewise.
33371 * util/grub-editenv.c: Likewise.
33373 Portability adjustments:
33375 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
33376 `term/i386/pc/at_keyboard.c'.
33377 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
33378 grub_keyboard_controller_init() (now handled by terminal .init).
33379 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
33380 grub_at_keyboard_init().
33381 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
33382 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
33383 at_keyboard.mod via input terminal interface).
33384 * include/grub/i386/coreboot/console.h: Convert into a stub for
33385 `<grub/i386/pc/console.h>'.
33387 Migrate full terminals to new API:
33389 * term/efi/console.c (grub_console_term): Split into ...
33390 (grub_console_term_input): ... this, and ...
33391 (grub_console_term_output): ... this. Update all users.
33392 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
33393 (grub_ofconsole_init): Split into ...
33394 (grub_ofconsole_init_input): ... this, and ...
33395 (grub_ofconsole_init_output): ... this.
33396 (grub_ofconsole_term): Split into ...
33397 (grub_ofconsole_term_input): ... this, and ...
33398 (grub_ofconsole_term_output): ... this. Update all users.
33399 * term/i386/pc/serial.c (grub_serial_term): Split into ...
33400 (grub_serial_term_input): ... this, and ...
33401 (grub_serial_term_output): ... this. Update all users.
33402 * term/i386/pc/console.c (grub_console_term): Split into ...
33403 (grub_console_term_input): ... this, and ...
33404 (grub_console_term_output): ... this. Update all users.
33405 (grub_console_term_input): Only enable it on PC/BIOS platform.
33406 (grub_console_init): Remove grub_keyboard_controller_init() call.
33408 Migrate input terminals to new API:
33410 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
33411 `i386' and `i386/pc' to enable build on x86_64 (this driver is
33412 i386-specific anyway).
33413 (grub_console_checkkey): Rename to ...
33414 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
33416 (grub_keyboard_controller_orig): New variable.
33417 (grub_console_getkey): Rename to ...
33418 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
33420 (grub_keyboard_controller_init): Static-ize. Save original
33421 controller value so that it can be restored ...
33422 (grub_keyboard_controller_fini): ... here (new function).
33423 (grub_at_keyboard_term): New structure.
33424 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
33427 Migrate output terminals to new API:
33429 * term/i386/pc/vga.c (grub_vga_term): Change type to
33430 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
33431 members. Update all users.
33432 * term/gfxterm.c (grub_video_term): Change type to
33433 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
33434 members. Update all users.
33435 * include/grub/i386/pc/console.h (grub_console_checkkey)
33436 (grub_console_getkey): Do not export (no longer needed by gfxterm,
33439 Migrate `terminal' command and userland tools to new API:
33441 * commands/terminal.c (grub_cmd_terminal): Split into ...
33442 (grub_cmd_terminal_input): ... this, and ...
33443 (grub_cmd_terminal_output): ... this.
33444 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
33445 `terminal_input' and `terminal_output'.
33446 * util/grub.d/00_header.in: Adjust `terminal' calls to new
33447 `terminal_input' / `terminal_output' API.
33448 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
33449 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
33450 provided ${GRUB_TERMINAL}, convert it).
33452 2008-11-04 Robert Millan <rmh@aybabtu.com>
33454 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
33456 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
33458 2008-11-03 Bean <bean123ch@gmail.com>
33460 * kern/elf.c (grub_elf32_load): Revert to previous code.
33461 (grub_elf64_load): Likewise.
33463 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
33465 2008-11-01 Robert Millan <rmh@aybabtu.com>
33467 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
33468 (TARGET_CPPFLAGS): Likewise.
33469 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
33471 2008-11-01 Carles Pina i Estany <carles@pina.cat>
33473 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
33475 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
33477 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
33478 addition of objects until the code is not going to be able to fail.
33480 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
33482 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
33483 (add a missing NULL check, and correct them by moving the pointer
33484 operations after the actual check).
33486 2008-10-29 Robert Millan <rmh@aybabtu.com>
33488 * util/i386/pc/grub-install.in: Handle empty string as output from
33489 make_system_path_relative_to_its_root().
33491 2008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
33493 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
33494 circular metadata worst case scenario. If the metadata is circular
33495 then copy the wrap in place.
33496 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
33497 project lib/format_text/layout.h
33498 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
33500 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
33502 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
33504 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
33506 * util/update-grub_lib.in: Mention filename in warning message.
33508 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
33510 * NEWS: Update for rename of update-grub to grub-mkconfig.
33512 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
33514 * util/update-grub_lib.in: Copy to ...
33515 * util/grub-mkconfig_lib.in: ... this. Update all users.
33516 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
33517 * util/update-grub.in: Rename to ...
33518 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
33519 option. Add `--output' option to allow users to specify the generated
33520 configuration file. Default to stdout.
33521 (update_grub_dir): Rename to ...
33522 (grub_mkconfig_dir): ... this.
33523 (grub_cfg): Default to an empty string.
33524 * conf/common.rmk (update-grub): Rename to ...
33525 (grub-mkconfig): ... this.
33526 (update-grub_lib): Copy to ...
33527 (grub-mkconfig_lib): ... this.
33528 (update-grub_SCRIPTS): Copy to ...
33529 (grub-mkconfig_SCRIPTS): ... this. Update all users.
33530 (update-grub_DATA): Rename to ...
33531 (grub-mkconfig_DATA): ... this.
33533 2008-09-28 Robert Millan <rmh@aybabtu.com>
33535 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
33536 to `modified'. Add the real `created' field.
33537 (grub_iso9660_uuid): Use `modified' rather than `created' for
33538 constructing the UUID.
33540 2008-09-28 Felix Zielcke <fzielcke@z-51.de>
33542 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
33543 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
33545 2008-09-28 Bean <bean123ch@gmail.com>
33547 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
33548 Thanks to Christian Franke for finding this bug.
33550 2008-09-25 Robert Millan <rmh@aybabtu.com>
33552 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
33553 instances of grub_util_get_disk_name() (see previous commit).
33555 2008-09-25 Robert Millan <rmh@aybabtu.com>
33557 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
33558 `util/i386/get_disk_name.c'.
33559 * conf/i386-efi.rmk: Likewise.
33560 * conf/x86_64-efi.rmk: Likewise.
33561 * conf/i386-coreboot.rmk: Likewise.
33562 * conf/i386-ieee1275.rmk: Likewise.
33563 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
33564 `util/ieee1275/get_disk_name.c'.
33565 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
33566 * util/ieee1275/get_disk_name.c: Remove file.
33567 * util/i386/get_disk_name.c: Remove file.
33568 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
33569 "hd%d" for device.map entries, rather than using
33570 grub_util_get_disk_name().
33572 2008-09-24 Carles Pina i Estany <carles@pina.cat>
33574 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
33576 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
33578 2008-09-24 Carles Pina i Estany <carles@pina.cat>
33580 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
33582 (GRUB_TERM_PPAGE): Changed to 0x4900.
33584 2008-09-24 Robert Millan <rmh@aybabtu.com>
33586 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
33587 macros (they were i386-pc specific).
33588 * include/grub/sparc64/ieee1275/console.h: Likewise.
33589 * include/grub/efi/console.h: Likewise.
33591 2008-09-22 Bean <bean123ch@gmail.com>
33593 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
33594 resident and in attribute list.
33596 * include/grub/ntfs.h (BMP_LEN): Removed.
33598 2008-09-22 Bean <bean123ch@gmail.com>
33600 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
33601 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
33603 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
33604 error occurs, as grub_disk_open will call grub_disk_close, which will
33605 call p->close (scsi).
33607 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
33609 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
33610 (AC_PREREQ): Bumped to 2.59.
33611 (AC_TRY_COMPILE): Replace obsolete macro with ...
33612 (AC_COMPILE_IFELSE): ... this.
33613 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
33614 (AC_LINK_IFELSE): ... this.
33616 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
33618 * autogen.sh: Add a call to `gendistlist.sh'.
33620 2008-09-19 Christian Franke <franke@computer.org>
33622 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
33623 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
33624 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
33625 Export __enable_execute_stack() to modules.
33626 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
33629 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
33631 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
33634 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
33636 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
33637 #include <grub/util/hostdisk.h>.
33639 2008-09-08 Robert Millan <rmh@aybabtu.com>
33641 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
33642 segments when their filesz is zero (grub_file_read() interprets
33643 zero-size as "read until EOF", which results in memory corruption).
33644 Use `lowest_segment' rather than 0 for calculating the current
33645 segment load address.
33647 2008-09-08 Robert Millan <rmh@aybabtu.com>
33649 * util/hostdisk.c (open_device): Replace a grub_util_info() call
33650 with grub_dprintf("hostdisk", ...), as it was so verbose that it
33651 clobbered useful information.
33653 2008-09-08 Robert Millan <rmh@aybabtu.com>
33655 * include/grub/util/biosdisk.h: Move to ...
33656 * include/grub/util/hostdisk.h: ... here. Update all users.
33657 * util/biosdisk.c: Move to ...
33658 * util/hostdisk.c: ... here. Update all users.
33660 2008-09-07 Robert Millan <rmh@aybabtu.com>
33662 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
33664 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
33665 and length can be stored directly in the `mbi->mmap_addr' and
33666 `mbi->mmap_length' struct fields.
33668 2008-09-07 Robert Millan <rmh@aybabtu.com>
33670 * conf/i386.rmk: New file. Provides declaration for building
33672 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
33673 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
33675 Include `conf/i386.mk'.
33676 * conf/i386-efi.rmk: Likewise.
33677 * conf/x86_64-efi.rmk: Likewise.
33678 * conf/i386-coreboot.rmk: Likewise.
33679 * conf/i386-ieee1275.rmk: Likewise.
33681 2008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
33683 Based on patch created by Colin D Bennett <colin@gibibit.com>.
33684 Adds optimization support for BGR based modes.
33686 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
33687 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
33688 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
33689 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
33690 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
33691 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
33692 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
33693 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
33694 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
33695 (grub_video_i386_vbeblit_index_index): Likewise.
33696 (grub_video_i386_vbeblit_replace_directN): Added.
33697 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
33698 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
33699 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
33700 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
33701 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
33702 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
33703 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
33704 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
33705 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
33706 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
33707 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
33708 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
33709 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
33711 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
33712 (grub_video_i386_vbefill_R8G8B8): Likewise.
33713 (grub_video_i386_vbefill_index): Likewise.
33714 (grub_video_i386_vbefill_direct32): Added.
33715 (grub_video_i386_vbefill_direct24): Likewise.
33716 (grub_video_i386_vbefill_direct16): Likewise.
33717 (grub_video_i386_vbefill_direct8): Likewise.
33719 * include/grub/video.h (grub_video_blit_format): Removed
33720 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
33721 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
33722 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
33723 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
33724 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
33726 * video/video.c (grub_video_get_blit_format): Updated to use new
33727 blit formats. Added handling for 16 bit color modes.
33729 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
33731 (common_blitter): Updated to use new blitters.
33733 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
33735 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
33736 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
33737 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
33738 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
33739 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
33740 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
33741 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
33742 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
33743 (grub_video_i386_vbeblit_index_index): Likewise.
33744 (grub_video_i386_vbeblit_replace_directN): Added.
33745 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
33746 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
33747 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
33748 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
33749 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
33750 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
33751 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
33752 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
33753 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
33754 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
33755 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
33756 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
33757 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
33759 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
33760 (grub_video_i386_vbefill_R8G8B8): Likewise.
33761 (grub_video_i386_vbefill_index): Likewise.
33762 (grub_video_i386_vbefill_direct32): Added.
33763 (grub_video_i386_vbefill_direct24): Likewise.
33764 (grub_video_i386_vbefill_direct16): Likewise.
33765 (grub_video_i386_vbefill_direct8): Likewise.
33767 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
33770 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
33773 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
33776 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
33779 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
33781 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
33784 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
33786 * fs/iso9660.c (grub_iso9660_date): New structure.
33787 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
33788 (grub_iso9660_uuid): New function.
33790 2008-09-05 Bean <bean123ch@gmail.com>
33792 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
33794 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
33795 insensitive bit for names in Win32 and Win32 & DOS namespace.
33797 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
33799 * include/grub/types.h (LONG_MAX): Likewise.
33801 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
33803 * util/getroot.c: Include <config.h>.
33804 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
33805 add support for /dev/md/N devices and handle LVM double dash escaping.
33807 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
33809 * config.guess: Update to latest version from config git.
33810 * config.sub: Likewise.
33812 2008-09-03 Robert Millan <rmh@aybabtu.com>
33814 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
33815 `disk->total_sectors'.
33817 2008-09-01 Colin D Bennett <colin@gibibit.com>
33819 * include/grub/normal.h: Fixed incorrect comment for
33820 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
33822 2008-09-01 Colin D Bennett <colin@gibibit.com>
33824 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
33825 values with defines.
33827 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
33828 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
33829 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
33830 (GRUB_VBE_MODEATTR_COLOR): Likewise.
33831 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
33832 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
33833 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
33834 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
33835 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
33836 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
33837 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
33838 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
33839 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
33840 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
33841 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
33842 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
33843 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
33844 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
33845 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
33847 2008-08-31 Robert Millan <rmh@aybabtu.com>
33849 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
33851 (grub_multiboot): Fix a few warnings.
33853 2008-08-31 Robert Millan <rmh@aybabtu.com>
33855 * loader/i386/pc/multiboot.c: Update comment not to say that
33856 boot_device support is unimplemented.
33858 2008-08-31 Robert Millan <rmh@aybabtu.com>
33860 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
33861 or memory map support are unimplemented.
33863 2008-08-31 Colin D Bennett <colin@gibibit.com>
33865 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
33867 2008-08-31 Colin D Bennett <colin@gibibit.com>
33869 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
33870 total video memory in 'vbeinfo' output; show color format details for
33873 2008-08-30 Pavel Roskin <proski@gnu.org>
33875 * util/genmoddep.c: Remove for real this time.
33876 * DISTLIST: Remove util/genmoddep.c.
33878 2008-08-30 Robert Millan <rmh@aybabtu.com>
33880 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
33881 as required by Multiboot spec (it was already 4-byte aligned, but
33884 2008-08-29 Pavel Roskin <proski@gnu.org>
33886 * kern/powerpc/ieee1275/crt0.S: Rename to ...
33887 * kern/powerpc/ieee1275/startup.S: ... this.
33888 * conf/powerpc-ieee1275.rmk: Adjust for the above.
33889 * DISTLIST: Likewise.
33891 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
33892 grub/cpu/kernel.h. Add start label for consistency with other
33893 platforms. Add grub_prefix immediately after start. Add jump
33894 to the code after grub_prefix.
33895 * include/grub/powerpc/kernel.h: Provide valid values for
33896 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
33898 2008-08-29 Bean <bean123ch@gmail.com>
33900 * configure.ac: Change host_os to cygwin for mingw.
33901 (asprintf): New check for function.
33903 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
33904 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
33906 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
33907 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
33908 sync, sleep and grub_util_get_disk_size for mingw.
33910 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
33911 to get size in mingw.
33912 (open_device): Use flag O_BINARY if it's defined.
33913 (find_root_device): Add dummy code for mingw.
33915 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
33916 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
33917 (get_scsi_disk_name): Return 0 for mingw.
33919 * util/hostfs.c: #include <grub/util/misc.h>.
33920 (grub_hostfs_open): Use "rb" flag to open file, use
33921 grub_util_get_disk_size to get disk size for mingw.
33923 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
33924 (asprintf): New function if HAVE_ASPRINTF is not set.
33925 (sync): New function for mingw.
33927 (grub_util_get_disk_size): Likewise.
33929 2008-08-28 Pavel Roskin <proski@gnu.org>
33931 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
33934 2008-08-28 Robert Millan <rmh@aybabtu.com>
33936 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
33938 2008-08-28 Robert Millan <rmh@aybabtu.com>
33940 Change find_grub_drive() syntax so it doesn't prevent it from
33941 detecting NULL names as errors.
33943 * util/biosdisk.c (find_grub_drive): Move free slot search code
33945 (find_free_slot): ... to here.
33946 (read_device_map): Use find_free_slot() to search for free slots.
33948 2008-08-27 Marco Gerards <marco@gnu.org>
33950 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
33951 (scsi_mod_SOURCES): New variable.
33952 (scsi_mod_CFLAGS): Likewise
33953 (scsi_mod_LDFLAGS): Likewise.
33955 * disk/scsi.c: New file.
33957 * include/grub/scsi.h: Likewise.
33959 * include/grub/scsicmd.h: Likewise.
33961 * disk/ata.c: Include <grub/scsi.h>.
33962 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
33964 (grub_ata_iterate): Skip ATAPI devices.
33965 (grub_ata_open): Only handle ATAPI devices.
33966 (struct grub_atapi_read): Removed.
33967 (grub_atapi_readsector): Likewise.
33968 (grub_ata_read): No longer handle ATAPI devices.
33969 (grub_ata_write): Likewise.
33970 (grub_atapi_iterate): New function.
33971 (grub_atapi_read): Likewise.
33972 (grub_atapi_write): Likewise.
33973 (grub_atapi_open): Likewise.
33974 (grub_atapi_close): Likewise.
33975 (grub_atapi_dev): New variable.
33976 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
33977 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
33979 * include/grub/disk.h (enum grub_disk_dev_id): Add
33980 `GRUB_DISK_DEVICE_SCSI_ID'.
33982 2008-08-26 Robert Millan <rmh@aybabtu.com>
33984 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
33985 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
33988 2008-08-23 Bean <bean123ch@gmail.com>
33990 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
33991 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
33992 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
33993 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
33995 (raid5rec_mod_SOURCES): New macro.
33996 (raid5rec_mod_CFLAGS): Likewise.
33997 (raid5rec_mod_LDFLAGS): Likewise.
33998 (raid6rec_mod_SOURCES): Likewise.
33999 (raid6rec_mod_CFLAGS): Likewise.
34000 (raid6rec_mod_LDFLAGS): Likewise.
34001 (mdraid_mod_SOURCES): Likewise.
34002 (mdraid_mod_CFLAGS): Likewise.
34003 (mdraid_mod_LDFLAGS): Likewise.
34004 (dm_nv_mod_SOURCES): Likewise.
34005 (dm_nv_mod_CFLAGS): Likewise.
34006 (dm_nv_mod_LDFLAGS): Likewise.
34008 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
34009 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
34010 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
34012 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
34013 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
34015 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
34017 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
34019 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34021 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34023 * disk/raid5_recover.c: New file.
34025 * disk/raid6_recover.c: Likewise.
34027 * disk/mdraid_linux.c: Likewise.
34029 * disk/dmraid_nvidia.c: Likewise.
34031 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
34034 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
34035 calculate the size of raid device.
34036 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
34037 different layout of raid5.
34038 (grub_raid_scan_device): Remove code specific to mdraid.
34039 (grub_raid_list): New variable.
34040 (free_array): New function.
34041 (grub_raid_register): Likewise.
34042 (grub_raid_unregister): Likewise.
34043 (grub_raid_rescan): Likewise.
34044 (GRUB_MOD_INIT): Don't iterate device here.
34045 (GRUB_MOD_FINI): Use free_array to release resource.
34047 * include/grub/raid.h: Remove macro and structure specific to mdraid.
34048 (grub_raid5_recover_func_t): New function variable type.
34049 (grub_raid6_recover_func_t): Likewise.
34050 (grub_raid5_recover_func): New variable.
34051 (grub_raid6_recover_func): Likewise.
34052 (grub_raid_register): New function.
34053 (grub_raid_unregister): Likewise.
34054 (grub_raid_rescan): Likewise.
34055 (grub_raid_block_xor): Likewise.
34057 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
34058 (CMD_CRC): New macro.
34060 (read_file): Handle device as well as file.
34061 (cmd_crc): New function.
34062 (fstest): Handle multiple disks.
34063 (options): Remove part, raw and long, add root and diskcount.
34064 (usage): Add crc, remove -p, -r, -l, add -r and -c.
34065 (main): Find the first non option entry and ignore subsequent options,
34066 add handling for the new options, support multiple disks.
34068 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
34070 2008-08-23 Bean <bean123ch@gmail.com>
34072 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
34074 * genfslist.sh: Ignore kernel.mod.
34076 * genpartmaplist.sh: Likewise.
34078 2008-08-23 Robert Millan <rmh@aybabtu.com>
34080 * util/getroot.c (find_root_device): Skip anything that starts with
34081 a dot, not just directories. This avoids things like /dev/.tmp.md0.
34083 2008-08-22 Felix Zielcke <fzielcke@z-51.de>
34085 * util/update-grub.in (GRUB_GFXMODE): Export variable.
34086 * util/grub.d/00_header.in: Allow the administrator to change default
34087 gfxmode via ${GRUB_GFXMODE}.
34089 2008-08-21 Felix Zielcke <fzielcke@z-51.de>
34091 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
34093 2008-08-21 Robert Millan <rmh@aybabtu.com>
34095 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
34097 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
34098 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
34100 2008-08-20 Carles Pina i Estany <carles@pina.cat>
34102 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
34103 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
34105 2008-08-19 Robert Millan <rmh@aybabtu.com>
34107 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
34108 (struct grub_virtual_screen): Remove `cursor_color'.
34109 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
34111 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
34113 2008-08-18 Robert Millan <rmh@aybabtu.com>
34115 Unify (identical) linux_normal.c files.
34116 * loader/i386/efi/linux_normal.c: Move from here ...
34117 * loader/linux_normal.c: ... to here. Update all users.
34118 * loader/i386/pc/linux_normal.c: Delete. Update all users.
34119 * loader/i386/ieee1275/linux_normal.c: Likewise.
34121 2008-08-18 Robert Millan <rmh@aybabtu.com>
34123 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
34124 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
34125 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
34126 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
34127 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
34129 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
34130 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
34131 (GRUB_LINUX_CL_END_OFFSET): ... to here.
34132 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
34133 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
34134 (GRUB_EFI_CL_END_OFFSET): Rename to ...
34135 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
34136 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
34137 Initialize `params->video_cursor_x' and `params->video_cursor_y'
34138 portably using grub_getxy().
34139 Replace `-EFI' with `-bzImage' in boot message.
34141 2008-08-17 Robert Millan <rmh@aybabtu.com>
34143 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
34145 2008-08-17 Robert Millan <rmh@aybabtu.com>
34147 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
34149 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
34150 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
34151 (grub_machine_mmap_iterate): New function declaration.
34152 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
34154 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
34157 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
34158 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
34159 Move e820 parsing from here ...
34160 * kern/i386/pc/mmap.c: New file.
34161 (grub_machine_mmap_iterate): ... to here.
34163 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
34164 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
34165 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
34166 (grub_available_iterate): Redeclare to return `void', and redeclare
34167 its hook to use grub_uint64_t as addr and size parameters, and rename
34169 (grub_machine_mmap_iterate): ... this. Update all users.
34171 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
34172 to make it more readable. Rename to ...
34173 (grub_machine_mmap_iterate): ... this.
34175 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
34176 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
34177 (grub_multiboot): Allocate an extra region after the payload, and fill
34178 it with a Multiboot memory map. Adjust a.out loader to calculate size
34179 with the extra space.
34180 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
34181 with the extra space.
34183 2008-08-17 Carles Pina i Estany <carles@pina.cat>
34185 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
34187 2008-08-17 Felix Zielcke <fzielcke@z-51.de>
34189 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
34190 mdate-sh to the list `find' searches for.
34191 * DISTLIST: Regenerated.
34193 2008-08-16 Felix Zielcke <fzielcke@z-51.de>
34195 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
34196 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
34197 genmoddep.awk, gensymlist.sh.in.
34198 (DISTDIRS): Add bus, docs, hook, lib.
34199 * DISTLIST: Regenerated.
34200 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
34202 2008-08-16 Robert Millan <rmh@aybabtu.com>
34204 * disk/raid.c (grub_raid_init): Handle/report errors set by
34205 grub_device_iterate().
34206 * disk/lvm.c (grub_lvm_init): Likewise.
34208 2008-08-15 Bean <bean123ch@gmail.com>
34210 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
34212 (datetime_mod_SOURCES): New macro.
34213 (datetime_mod_CFLAGS): Likewise.
34214 (datetime_mod_LDFLAGS): Likewise.
34215 (date_mod_SOURCES): Likewise.
34216 (date_mod_CFLAGS): Likewise.
34217 (date_mod_LDFLAGS): Likewise.
34218 (datehook_mod_SOURCES): Likewise.
34219 (datehook_mod_CFLAGS): Likewise.
34220 (datehook_mod_LDFLAGS): Likewise.
34222 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
34224 (datetime_mod_SOURCES): New macro.
34225 (datetime_mod_CFLAGS): Likewise.
34226 (datetime_mod_LDFLAGS): Likewise.
34227 (date_mod_SOURCES): Likewise.
34228 (date_mod_CFLAGS): Likewise.
34229 (date_mod_LDFLAGS): Likewise.
34230 (datehook_mod_SOURCES): Likewise.
34231 (datehook_mod_CFLAGS): Likewise.
34232 (datehook_mod_LDFLAGS): Likewise.
34234 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
34236 (datetime_mod_SOURCES): New macro.
34237 (datetime_mod_CFLAGS): Likewise.
34238 (datetime_mod_LDFLAGS): Likewise.
34239 (date_mod_SOURCES): Likewise.
34240 (date_mod_CFLAGS): Likewise.
34241 (date_mod_LDFLAGS): Likewise.
34242 (datehook_mod_SOURCES): Likewise.
34243 (datehook_mod_CFLAGS): Likewise.
34244 (datehook_mod_LDFLAGS): Likewise.
34246 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
34248 (datetime_mod_SOURCES): New macro.
34249 (datetime_mod_CFLAGS): Likewise.
34250 (datetime_mod_LDFLAGS): Likewise.
34251 (date_mod_SOURCES): Likewise.
34252 (date_mod_CFLAGS): Likewise.
34253 (date_mod_LDFLAGS): Likewise.
34254 (datehook_mod_SOURCES): Likewise.
34255 (datehook_mod_CFLAGS): Likewise.
34256 (datehook_mod_LDFLAGS): Likewise.
34258 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
34260 (datetime_mod_SOURCES): New macro.
34261 (datetime_mod_CFLAGS): Likewise.
34262 (datetime_mod_LDFLAGS): Likewise.
34263 (date_mod_SOURCES): Likewise.
34264 (date_mod_CFLAGS): Likewise.
34265 (date_mod_LDFLAGS): Likewise.
34266 (datehook_mod_SOURCES): Likewise.
34267 (datehook_mod_CFLAGS): Likewise.
34268 (datehook_mod_LDFLAGS): Likewise.
34270 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
34272 * commands/date.c: New file.
34274 * hook/datehook.c: Likewise.
34276 * include/grub/lib/datetime.h: Likewise.
34278 * include/grub/i386/cmos.h: Likewise.
34280 * lib/datetime.c: Likewise.
34282 * lib/i386/datetime.c: Likewise.
34284 * lib/efi/datetime.c: Likewise.
34286 2008-08-14 Robert Millan <rmh@aybabtu.com>
34288 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
34289 (grub_mkelfimage_SOURCES): New variable.
34290 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
34292 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
34293 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
34294 * conf/powerpc-ieee1275.rmk: Likewise.
34295 * conf/i386-ieee1275.rmk: Likewise.
34297 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
34298 * kern/i386/coreboot/init.c: Likewise.
34300 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
34301 with `<grub/cpu/kernel.h>'.
34302 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
34304 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
34305 * kern/i386/coreboot/startup.S: Likewise.
34307 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
34308 (GRUB_MOD_GAP): Remove.
34309 * include/grub/powerpc/kernel.h: New file.
34310 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
34311 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
34312 * include/grub/i386/kernel.h: New file.
34313 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
34314 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
34315 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
34317 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
34319 Use --directory when invoking grub_mkimage.
34321 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
34322 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
34323 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
34324 and GRUB_KERNEL_CPU_PREFIX.
34326 2008-08-14 Felix Zielcke <fzielcke@z-51.de>
34328 * include/grub/err.h (grub_err_printf): New function prototype.
34329 * util/misc.c (grub_err_printf): New function.
34330 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
34332 * kern/err.c (grub_print_error): Use grub_err_printf.
34334 2008-08-13 Robert Millan <rmh@aybabtu.com>
34336 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
34338 2008-08-13 Robert Millan <rmh@aybabtu.com>
34340 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
34343 2008-08-12 Robert Millan <rmh@aybabtu.com>
34345 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
34346 of the relocation code from here ...
34347 (grub_multiboot): ... to here.
34348 (forward_relocator, backward_relocator): Move from here ...
34349 * kern/i386/loader.S (grub_multiboot_forward_relocator)
34350 (grub_multiboot_backward_relocator): ... to here.
34351 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
34352 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
34353 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
34354 (grub_multiboot_forward_relocator_end)
34355 (grub_multiboot_backward_relocator)
34356 (grub_multiboot_backward_relocator_end): New variables.
34358 2008-08-12 Bean <bean123ch@gmail.com>
34360 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
34362 2008-08-11 Robert Millan <rmh@aybabtu.com>
34364 * kern/i386/linuxbios/startup.S: Move from here ...
34365 * kern/i386/coreboot/startup.S: ... to here.
34367 * kern/i386/linuxbios/init.c: Move from here ...
34368 * kern/i386/coreboot/init.c: ... to here.
34370 * kern/i386/linuxbios/table.c: Move from here ...
34371 * kern/i386/coreboot/mmap.c: ... to here.
34373 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
34375 2008-08-11 Robert Millan <rmh@aybabtu.com>
34377 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
34378 errors. Leave it to the upper layer to handle them.
34380 2008-08-09 Christian Franke <franke@computer.org>
34382 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
34383 * conf/common.rmk: Install `grub-pe2elf' only if requested.
34384 Install `grub.d/10_windows' only on Cygwin.
34385 * configure.ac: Add subst of `target_os'.
34386 Check `target_os' also before setting TARGET_OBJ2ELF.
34387 Add `--enable-grub-pe2elf'.
34389 2008-08-08 Robert Millan <rmh@aybabtu.com>
34391 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
34392 (grub_last_time): Change type to grub_uint64_t.
34393 (grub_disk_open): Migrate code from to using grub_get_time_ms().
34394 (grub_disk_close): Likewise.
34396 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
34397 (run_menu): Migrate code from to using grub_get_time_ms().
34399 * util/misc.c (grub_get_time_ms): New function.
34401 2008-08-08 Marco Gerards <marco@gnu.org>
34403 * disk/ata.c (grub_ata_regget): Change return type to
34405 (grub_ata_regget2): Likewise.
34406 (grub_ata_wait_status): New function.
34407 (grub_ata_wait_busy): Removed function, updated all users to use
34408 `grub_ata_wait_status'.
34409 (grub_ata_wait_drq): Likewise.
34410 (grub_ata_cmd): New function.
34411 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
34413 (grub_ata_pio_write): Add error handling.
34414 (grub_atapi_identify): Likewise.
34415 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
34417 (grub_ata_identify): Use `grub_ata_cmd' and improve error
34418 handling. Actually use the detected registers. Reorder the
34419 detection logic such that it is easier to read.
34420 (grub_ata_pciinit): Do not assign the same ID to each controller.
34421 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
34423 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
34425 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
34427 2008-08-08 Marco Gerards <marco@gnu.org>
34431 2008-08-07 Bean <bean123ch@gmail.com>
34433 * include/grub/x86_64/pci.h: New file.
34435 2008-08-07 Christian Franke <franke@computer.org>
34437 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
34438 (TIMER2_GATE): Likewise.
34439 (grub_pit_wait): Add enable/disable of the timer2 gate
34440 bit of port 0x61. This fixes a possible infinite loop.
34442 2008-08-07 Bean <bean123ch@gmail.com>
34444 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
34445 kern/i386/tsc.c and kern/i386/pit.c.
34447 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
34450 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
34453 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
34455 2008-08-07 Bean <bean123ch@gmail.com>
34457 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
34459 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
34461 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
34462 multiple inclusion. Add #include <grub/types.h>.
34464 2008-08-06 Christian Franke <franke@computer.org>
34466 * conf/common.rmk: Build and install `10_windows'.
34467 * util/grub.d/10_windows.in: New script.
34469 2008-08-06 Pavel Roskin <proski@gnu.org>
34471 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
34473 2008-08-06 Robert Millan <rmh@aybabtu.com>
34475 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
34476 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
34478 2008-08-06 Bean <bean123ch@gmail.com>
34480 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
34481 (grub_pxefs_fs_int): Remove dummy definition.
34482 (grub_pxefs_open): Use data->block_size to store the current block
34484 (grub_pxefs_read): Use block size stored in data->block_size. As the
34485 value of grub_pxe_blksize can be changed after the file is opened.
34487 2008-08-06 Bean <bean123ch@gmail.com>
34489 * fs/i386/pc/pxe.c (curr_file): new variable.
34490 (grub_pxefs_open): Simply the handling of pxe file system. Don't
34491 require the dummy internal file system anymore.
34492 (grub_pxefs_read): Removed.
34493 (grub_pxefs_close): Likewise.
34494 (grub_pxefs_fs_int): Likewise.
34495 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
34496 connection when we switch file.
34497 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
34499 2008-08-06 Robert Millan <rmh@aybabtu.com>
34501 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
34503 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
34504 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
34506 * kern/i386/halt.c: New file.
34507 * kern/i386/reboot.c: Likewise.
34508 * include/grub/i386/reboot.h: Likewise.
34509 * include/grub/i386/halt.h: Likewise.
34511 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
34512 Include `<grub/cpu/halt.h>'.
34513 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
34514 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
34516 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
34517 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
34518 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
34519 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
34520 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
34521 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
34523 * include/grub/i386/at_keyboard.h: ... to here.
34525 2008-08-05 Robert Millan <rmh@aybabtu.com>
34527 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
34528 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
34529 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
34530 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
34531 `kern/generic/millisleep.c'.
34533 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
34534 instead of grub_get_rtc().
34535 (grub_tsc_init): Initialize `tsc_boot_time'.
34537 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
34538 (grub_machine_init): Use grub_tsc_init() rather than
34539 installing an RTC-based handler via grub_install_get_time_ms().
34541 * kern/i386/pit.c: New file.
34542 * include/grub/i386/pit.h: Likewise.
34544 2008-08-05 Bean <bean123ch@gmail.com>
34546 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
34548 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
34549 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
34550 (pxe_mod_SOURCES): New macro.
34551 (pxe_mod_CFLAGS): Likewise.
34552 (pxe_mod_LDFLAGS): Likewise.
34553 (pxecmd_mod_SOURCES): Likewise.
34554 (pxecmd_mod_CFLAGS): Likewise.
34555 (pxecmd_mod_LDFLAGS): Likewise.
34557 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
34558 (grub_pxe_call): Likewise.
34560 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
34562 * commands/i386/pc/pxecmd.c: New file.
34564 * fs/i386/pc/pxe.c: Likewise.
34566 * include/grub/i386/pc/pxe.h: Likewise.
34568 2008-08-05 Bean <bean123ch@gmail.com>
34570 * util/console.c (grub_console_cur_color): New variable.
34571 (grub_console_standard_color): Likewise.
34572 (grub_console_normal_color): Likewise.
34573 (grub_console_highlight_color): Likewise.
34574 (color_map): Likewise.
34575 (use_color): Likewise.
34576 (NUM_COLORS): New macro.
34577 (grub_ncurses_setcolorstate): Handle color properly.
34578 (grub_ncurses_setcolor): Don't change color here, just remember the
34579 settings, color will be set in grub_ncurses_setcolorstate.
34580 (grub_ncurses_getcolor): New function.
34581 (grub_ncurses_init): Initialize color pairs.
34582 (grub_ncurses_term): New member grub_ncurses_getcolor.
34584 2008-08-05 Colin D Bennett <colin@gibibit.com>
34586 High resolution timer support. Implemented for x86 CPUs using TSC.
34587 Extracted generic grub_millisleep() so it's linked in only as needed.
34588 This requires a Pentium compatible CPU; if the RDTSC instruction is
34589 not supported, then it falls back on the generic grub_get_time_ms()
34590 implementation that uses the machine's RTC.
34592 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
34593 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
34594 `kern/generic/millisleep.c'.
34596 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
34597 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
34599 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
34600 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
34602 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
34604 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
34605 `kern/generic/millisleep.c'.
34607 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
34609 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
34611 * kern/generic/rtc_get_time_ms.c: New file.
34613 * kern/generic/millisleep.c: New file.
34615 * kern/misc.c: Don't include
34616 <kern/time.h> anymore.
34617 (grub_millisleep_generic): Removed.
34619 * commands/sleep.c (grub_interruptible_millisleep): Uses
34620 grub_get_time_ms() instead of grub_get_rtc().
34622 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
34624 (grub_cpu_is_cpuid_supported): New inline function.
34625 (grub_cpu_is_tsc_supported): New inline function.
34626 (grub_tsc_init): New function prototype.
34627 (grub_tsc_get_time_ms): New function prototype.
34629 * kern/i386/tsc.c (grub_get_time_ms): New file.
34631 * include/grub/time.h: Include <grub/types.h.
34632 (grub_millisleep_generic): Removed.
34633 (grub_get_time_ms): New prototype.
34634 (grub_install_get_time_ms): New prototype.
34635 (grub_rtc_get_time_ms): New prototype.
34637 * kern/time.c (grub_get_time_ms): New function.
34638 (grub_install_get_time_ms): New function.
34640 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
34641 <grub/time.h> anymore.
34642 (grub_millisleep): Removed.
34643 (grub_machine_init): Call grub_tsc_init.
34645 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
34646 get_time_ms() implementation.
34648 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
34649 (ieee1275_get_time_ms): New function.
34650 (grub_machine_init): Install get_time_ms() implementation.
34652 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
34653 (grub_machine_init): Call grub_tsc_init().
34654 (grub_millisleep): Removed.
34656 * kern/ieee1275/init.c (grub_millisleep): Removed.
34657 (grub_machine_init): Install ieee1275_get_time_ms()
34659 (ieee1275_get_time_ms): New function.
34660 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
34663 2008-08-05 Marco Gerards <marco@gnu.org>
34665 * disk/ata.c: Include <grub/pci.h>.
34666 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
34667 (grub_ata_initialize): Rewritten.
34668 (grub_ata_device_initialize): New function.
34670 2008-08-04 Pavel Roskin <proski@gnu.org>
34672 * kern/main.c: Include grub/mm.h.
34674 2008-08-04 Robert Millan <rmh@aybabtu.com>
34676 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
34677 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
34678 corruption problem).
34680 2008-08-04 Robert Millan <rmh@aybabtu.com>
34682 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
34683 warnings introduced in my last commit.
34685 2008-08-03 Robert Millan <rmh@aybabtu.com>
34687 Make PCI available on all i386 architectures.
34689 * include/grub/i386/pc/pci.h: Move from here ...
34690 * include/grub/i386/pci.h: ... to here.
34692 * include/grub/i386/pc/pci.h: Remove.
34693 * include/grub/i386/efi/pci.h: Remove.
34694 * include/grub/x86_64/efi/pci.h: Remove.
34696 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
34697 `<grub/cpu/pci.h>'.
34699 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
34700 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
34701 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
34703 * conf/i386-ieee1275.rmk: Likewise.
34705 2008-08-03 Robert Millan <rmh@aybabtu.com>
34707 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
34708 (grub_console_setcursor): Make it possible to set cursor off.
34710 2008-08-03 Robert Millan <rmh@aybabtu.com>
34712 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
34713 of modules instead of assuming which platform provides what.
34714 * util/update-grub.in: Likewise.
34716 2008-08-03 Robert Millan <rmh@aybabtu.com>
34718 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
34719 instead of `grub_install_dos_part' to determine whether a drive needs
34720 to be prepended to prefix (`grub_install_dos_part' is not reliable,
34721 because it can be overridden when loading GRUB via Multiboot).
34723 2008-08-02 Robert Millan <rmh@aybabtu.com>
34725 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
34727 2008-08-02 Robert Millan <rmh@aybabtu.com>
34729 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
34730 of informational grub_dprintf() calls.
34732 2008-08-02 Robert Millan <rmh@aybabtu.com>
34734 * disk/memdisk.c (memdisk_size): Don't initialize.
34735 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
34737 * include/grub/i386/pc/kernel.h
34738 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
34739 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
34740 (grub_memdisk_image_size, grub_arch_memdisk_addr)
34741 (grub_arch_memdisk_size): Remove.
34743 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
34744 field (was only used to transfer a constant). Add `type' field to
34745 support multiple module types.
34746 (grub_module_iterate): New function.
34748 * kern/device.c (grub_device_open): Do not hide error messages
34749 when grub_disk_open() fails. Use grub_print_error() instead.
34751 * kern/i386/pc/init.c (grub_arch_modules_addr)
34752 (grub_arch_memdisk_size): Remove functions.
34753 (grub_arch_modules_addr): Return the module address in high memory
34754 (now that it isn't copied anymore).
34756 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
34757 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
34758 decompression routine (grub_total_module_size already includes that
34759 now). Don't copy modules back to low memory.
34761 * kern/main.c: Include `<grub/mm.h>'.
34762 (grub_load_modules): Split out (and use) ...
34763 (grub_module_iterate): ... this function, which iterates through
34764 module objects and runs a hook.
34765 Comment out grub_mm_init_region() call, as it would cause non-ELF
34766 modules to be overwritten.
34768 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
34769 the memdisk image in its own region, make it part of the module list.
34770 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
34771 (main): Parse --memdisk|-m option, and pass user-provided path as
34772 parameter to generate_image().
34773 (add_segments): Pass `memdisk_path' down to load_modules().
34774 (load_modules): Embed memdisk image in module section when requested.
34775 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
34776 `header.type' instead of `header.offset'.
34778 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
34779 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
34780 (memdisk_mod_LDFLAGS): New variables.
34781 * conf/i386-coreboot.rmk: Likewise.
34782 * conf/i386-ieee1275.rmk: Likewise.
34784 2008-08-02 Robert Millan <rmh@aybabtu.com>
34786 * loader/i386/pc/multiboot.c (playground, forward_relocator)
34787 (backward_relocator): New variables. Used to allocate and relocate
34788 the payload, respectively.
34789 (grub_multiboot_load_elf32): Load into heap instead of requested
34790 address, install the appropriate relocator code in each bound of
34791 the payload, and set the entry point such that
34792 grub_multiboot_real_boot() will jump to one of them.
34794 * kern/i386/loader.S (grub_multiboot_payload_size)
34795 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
34796 (grub_multiboot_payload_entry_offset): New variables.
34797 (grub_multiboot_real_boot): Set cpu context to what the relocator
34798 expects, and jump to the relocator instead of the payload.
34800 * include/grub/i386/loader.h (grub_multiboot_payload_size)
34801 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
34802 (grub_multiboot_payload_entry_offset): Export.
34804 2008-08-01 Bean <bean123ch@gmail.com>
34806 * normal/menu_entry.c (editor_getline): Don't return the original
34807 string as result, as it will be released by lexer once it has done
34810 2008-08-01 Robert Millan <rmh@aybabtu.com>
34812 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
34813 within menuentries, not before them.
34814 util/grub.d/10_hurd.in: Likewise.
34816 2008-08-01 Bean <bean123ch@gmail.com>
34818 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
34819 (bufio_mod_SOURCES): New macro.
34820 (bufio_mod_CFLAGS): Likewise.
34821 (bufio_mod_LDFLAGS): Likewise.
34823 * include/grub/bufio.h: New file.
34825 * io/bufio.c: Likewise.
34827 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
34828 (grub_video_reader_png): Use grub_buffile_open to open file.
34830 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
34831 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
34833 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
34834 (grub_video_reader_tga): Use grub_buffile_open to open file.
34836 * font/manager.c: Include <grub/bufio.h>.
34837 (add_font): Use grub_buffile_open to open file.
34839 2008-07-31 Robert Millan <rmh@aybabtu.com>
34841 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
34842 ELF segments, use a macro for arbitrarily accessing any of them instead
34843 of preparing a pointer that allows access to one at a time.
34844 (grub_multiboot_load_elf64): Likewise.
34846 2008-07-31 Bean <bean123ch@gmail.com>
34848 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
34849 GRUB_KERNEL_MACHINE_DATA_END.
34851 2008-07-30 Robert Millan <rmh@aybabtu.com>
34853 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
34854 Increase from 0x50 to 0x60.
34855 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
34856 use UUIDs to identify the root drive for them. If that's not
34858 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
34859 check, for cross-disk installs.
34861 2008-07-30 Robert Millan <rmh@aybabtu.com>
34863 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
34864 is non-empty, use it to set the `prefix' environment variable instead
34865 of the usual approach.
34866 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
34867 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
34868 environment variable instead of dummy make_install_device().
34870 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
34871 (start): Insert a data section, with `grub_prefix' variable.
34872 * kern/i386/linuxbios/startup.S: Likewise.
34874 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
34875 New variable reference.
34876 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
34877 New macro. Defines offset of `grub_prefix' within startup.S (relative
34879 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
34880 section within startup.S (relative to `start').
34881 * include/grub/i386/coreboot/kernel.h: Likewise.
34883 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
34884 Overwrite grub_prefix with its contents, at the beginning of the
34886 (main): Understand -p|--prefix.
34888 2008-07-30 Robert Millan <rmh@aybabtu.com>
34890 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
34892 2008-07-30 Robert Millan <rmh@aybabtu.com>
34894 * term/i386/pc/vga_text.c (grub_console_cls): Use
34895 grub_console_gotoxy() to go back to beginning of the screen.
34896 Found by Patrick Georgi <patrick.georgi@coresystems.de>
34898 2008-07-29 Christian Franke <franke@computer.org>
34900 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
34901 Add conversion of emulated mount points on Cygwin.
34903 2008-07-29 Christian Franke <franke@computer.org>
34905 * util/update-grub.in: Add a check for admin
34907 Remove old `grub.cfg.new' before creation.
34908 Add `-f' to `mv' to handle the different filesystem
34909 semantics of Windows.
34911 2008-07-29 Bean <bean123ch@gmail.com>
34913 * normal/main.c (get_line): Fix buffer overflow bug.
34915 2008-07-28 Robert Millan <rmh@aybabtu.com>
34917 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
34918 (struct grub_apple_header): New struct. Describes the layout of
34919 the partmap header.
34920 (apple_partition_map_iterate): Check the header magic as well as the
34921 partition magic (which was already being checked).
34923 2008-07-28 Pavel Roskin <proski@gnu.org>
34925 * genmk.rb: Add a warning to the beginning of the output that
34926 it's a generated file and should not be edited.
34928 2008-07-28 Robert Millan <rmh@aybabtu.com>
34930 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
34931 with the same number are found, just use issue a warning with
34932 grub_dprintf(), as this error has been reported to be non-fatal.
34934 2008-07-27 Robert Millan <rmh@aybabtu.com>
34936 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
34939 2008-07-27 Bean <bean123ch@gmail.com>
34941 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
34942 (grub_fat_find_dir): Ignore case when comparing filename.
34944 2008-07-27 Bean <bean123ch@gmail.com>
34946 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
34947 smallino, as it's more descriptive, and i8count can be confused with
34948 the other field count.
34949 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
34952 2008-07-27 Bean <bean123ch@gmail.com>
34954 * commands/crc.c: New file.
34956 * lib/crc.c: Likewise.
34958 * include/grub/lib/crc.h: Likewise.
34960 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
34962 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
34963 (hexdump): Move this function to ...
34965 * lib/hexdump.c: ... here.
34967 * include/grub/hexdump.h: Renamed to ...
34969 * include/grub/lib/hexdump.h: ... this.
34971 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
34973 * util/grub-editenv.c: Likewise.
34975 * include/envblk.h: Renamed to ...
34977 * include/lib/envblk.h: ... this.
34979 * util/envblk.c: Renamed to ...
34981 * lib/envblk.c: ... this.
34983 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
34985 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
34986 (pkglib_MODULES): Add crc.mod.
34987 (hexdump_mod_SOURCES): Add lib/hexdump.c.
34988 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
34989 (crc_mod_SOURCES): New macro.
34990 (crc_mod_CFLAGS): Likewise.
34991 (crc_mod_LDFLAGS): Likewise.
34993 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
34995 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
34997 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
34999 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35001 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35003 2008-07-27 Felix Zielcke <fzielcke@z-51.de>
35005 * commands/help.c: Include <grub/term.h>.
35006 (TERM_WIDTH): Removed. Updated all users.
35008 2008-07-27 Pavel Roskin <proski@gnu.org>
35010 * util/getroot.c (find_root_device): Rephrase a comment to avoid
35011 spurious warnings about a comment within a comment.
35013 2008-07-25 Robert Millan <rmh@aybabtu.com>
35015 * util/getroot.c (find_root_device): Skip devices that match
35016 /dev/dm-[0-9]. This lets the real device be found for any type of
35017 abstraction (LVM, EVMS, RAID..).
35018 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
35019 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
35020 device is found first, find_root_device() will now skip it.
35022 2008-07-24 Pavel Roskin <proski@gnu.org>
35024 * include/grub/types.h: Use __builtin_bswap32() and
35025 __builtin_bswap64() with gcc 4.3 and newer.
35027 2008-07-24 Christian Franke <franke@computer.org>
35029 * util/i386/pc/grub-install.in: If `--debug' is specified,
35030 pass `--verbose' to grub-setup.
35031 Abort script if make_system_path_relative_to_its_root() fails.
35033 2008-07-24 Bean <bean123ch@gmail.com>
35035 * configure.ac: Fixed a bug caused by the previous cygwin patch,
35036 variable `target_platform' should be `platform'.
35038 2008-07-24 Bean <bean123ch@gmail.com>
35040 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
35041 (grub_png_init_fixed_block): New function.
35042 (grub_png_decode_image_data): Handle fixed huffman code compression.
35044 2008-07-24 Bean <bean123ch@gmail.com>
35046 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
35047 (grub_pe2elf_SOURCES): New macro.
35048 (CLEANFILES): Add grub-pe2elf.
35050 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
35051 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
35052 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
35053 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
35054 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
35055 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
35056 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
35057 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
35058 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
35059 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
35060 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
35061 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
35062 (GRUB_PE32_DT_FUNCTION): Likewise.
35063 (GRUB_PE32_REL_I386_DIR32): Likewise.
35064 (GRUB_PE32_REL_I386_REL32): Likewise.
35065 (grub_pe32_symbol): New structure.
35066 (grub_pe32_reloc): Likewise.
35068 * util/grub-pe2elf.c: New file.
35070 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
35071 start symbol in non pc platform.
35073 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
35075 The following patches are from Christian Franke.
35077 * include/grub/dl.h: Remove .previous, gas supports this only
35080 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
35081 Remove .type, gas supports this only for ELF format.
35083 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
35084 nullbytes in symbol table. This fixes an infinite loop if table is
35087 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
35088 TARGET_IMG_LDFLAGS and EXEEXT.
35090 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
35091 TARGET_IMG_LDFLAGS_AC.
35092 (grub_CHECK_STACK_ARG_PROBE): New function.
35094 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
35096 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
35098 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
35099 to set TARGET_IMG_LD* accordingly.
35100 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
35101 Add call to grub_CHECK_STACK_ARG_PROBE.
35102 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
35104 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
35106 * genmk.rb: Add EXEEXT to CLEANFILES.
35108 2008-07-23 Robert Millan <rmh@aybabtu.com>
35110 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
35111 define the codes for arrows and lines used for the menu).
35112 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
35115 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
35116 fonts, because the latter are too slow.
35118 2008-07-21 Bean <bean123ch@gmail.com>
35120 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
35121 a20. Run keyboard test last, as it will cause macbook to halt.
35123 2008-07-18 Pavel Roskin <proski@gnu.org>
35125 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
35126 load foreign architecture modules correctly anyway. Keep
35127 support for loading host architecture modules, whether we
35128 compile them or not.
35130 2008-07-17 Pavel Roskin <proski@gnu.org>
35132 * configure.ac: Use -m32 or -m64 regardless of whether we had to
35133 change target_cpu. The compiler default can mismatch target_cpu
35136 * disk/efi/efidisk.c: Fix format warnings on x86_64.
35137 * kern/efi/efi.c: Likewise.
35139 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
35140 target compiler is functional.
35141 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
35144 * configure.ac: Default to efi platform for x86_64-apple. Allow
35145 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
35146 adjustments from the rest, only do them if target is not
35147 explicitly given. Merge other adjustments with the final sanity
35148 check. Remove an extraneous check for supported CPU. Be
35149 specific which CPU and which platform is not supported.
35151 * configure.ac: Default to pc platform for x86_64.
35153 2008-07-17 Robert Millan <rmh@aybabtu.com>
35155 Partial LinuxBIOS -> Coreboot rename.
35157 * conf/i386-linuxbios.rmk: Renamed to ...
35158 * conf/i386-coreboot.rmk: ... this.
35159 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
35160 * configure.ac: Accept "coreboot" as input platform (but maintain
35161 compatibility with "linuxbios").
35162 * include/grub/i386/linuxbios: Renamed to ...
35163 * include/grub/i386/coreboot: ... this.
35165 2008-07-17 Bean <bean123ch@gmail.com>
35167 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
35168 (appleldr_mod_SOURCE): New variable.
35169 (appleldr_mod_CFLAGS): Likewise.
35170 (appleldr_mod_LDFLAGS): Likewise.
35171 (pci_mod_SOURCES): Likewise.
35172 (pci_mod_CFLAGS): Likewise.
35173 (pci_mod_LDFLAGS): Likewise.
35174 (lspci_mod_SOURCES): Likewise.
35175 (lspci_mod_CFLAGS): Likewise.
35176 (lspci_mod_LDFLAGS): Likewise.
35178 * conf/x86_64-efi.rmk: New file.
35180 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
35182 (grub_efidisk_write): Likewise.
35184 * include/efi/api.h (efi_call_0): New macro.
35185 (efi_call_1): Likewise.
35186 (efi_call_2): Likewise.
35187 (efi_call_3): Likewise.
35188 (efi_call_4): Likewise.
35189 (efi_call_5): Likewise.
35190 (efi_call_6): Likewise.
35192 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
35193 grub_rescue_cmd_chainloader.
35195 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
35196 (grub_pe32_optional_header): Change some fields based on i386 or
35198 (GRUB_PE32_PE32_MAGIC): Likewise.
35200 * include/grub/efi/uga_draw.h: New file.
35202 * include/grub/elf.h (STN_ABS): New constant.
35203 (R_X86_64_NONE): Relocation constant for x86_64.
35204 (R_X86_64_64): Likewise.
35205 (R_X86_64_PC32): Likewise.
35206 (R_X86_64_GOT32): Likewise.
35207 (R_X86_64_PLT32): Likewise.
35208 (R_X86_64_COPY): Likewise.
35209 (R_X86_64_GLOB_DAT): Likewise.
35210 (R_X86_64_JUMP_SLOT): Likewise.
35211 (R_X86_64_RELATIVE): Likewise.
35212 (R_X86_64_GOTPCREL): Likewise.
35213 (R_X86_64_32): Likewise.
35214 (R_X86_64_32S): Likewise.
35215 (R_X86_64_16): Likewise.
35216 (R_X86_64_PC16): Likewise.
35217 (R_X86_64_8): Likewise.
35218 (R_X86_64_PC8): Likewise.
35220 * include/grub/i386/efi/pci.h: New file.
35222 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
35223 Change it value based on platform.
35224 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
35225 (GRUB_E820_RAM): Likewise.
35226 (GRUB_E820_RESERVED): Likewise.
35227 (GRUB_E820_ACPI): Likewise.
35228 (GRUB_E820_NVS): Likewise.
35229 (GRUB_E820_EXEC_CODE): Likewise.
35230 (GRUB_E820_MAX_ENTRY): Likewise.
35231 (grub_e820_mmap): New structure.
35232 (linux_kernel_header): Change the efi field according to different
35233 kernel version, also field from linux_kernel_header.
35235 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
35237 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
35238 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
35239 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
35240 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
35241 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
35242 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
35243 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
35244 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
35245 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
35246 (GRUB_PCI_ADDR_IO_MASK): Likewise.
35248 * include/grub/x86_64/efi/kernel.h: New file.
35250 * include/grub/x86_64/efi/loader.h: Likewise.
35252 * include/grub/x86_64/efi/machine.h: Likewise.
35254 * include/grub/x86_64/efi/pci.h: Likewise.
35256 * include/grub/x86_64/efi/time.h: Likewise.
35258 * include/grub/x86_64/linux.h: Likewise.
35260 * include/grub/x86_64/setjmp.h: Likewise.
35262 * include/grub/x86_64/time.h: Likewise.
35264 * include/grub/x86_64/types.h: Likewise.
35266 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
35267 GRUB_TARGET_SIZEOF_VOID_P.
35269 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
35270 (grub_efi_locate_handle): Likewise.
35271 (grub_efi_open_protocol): Likewise.
35272 (grub_efi_set_text_mode): Likewise.
35273 (grub_efi_stall): Likewise.
35274 (grub_exit): Likewise.
35275 (grub_reboot): Likewise.
35276 (grub_halt): Likewise.
35277 (grub_efi_exit_boot_services): Likewise.
35278 (grub_get_rtc): Likewise.
35280 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
35281 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
35282 (grub_efi_allocate_pages): Wrap efi calls.
35283 (grub_efi_free_pages): Wrap efi calls.
35284 (grub_efi_get_memory_map): Wrap efi calls.
35286 * kern/x86_64/dl.c: New file.
35288 * kern/x86_64/efi/callwrap.S: Likewise.
35290 * kern/x86_64/efi/startup.S: Likewise.
35292 * loader/efi/appleloader.c: Likewise.
35294 * loader/efi/chainloader.c (cmdline): New variable.
35295 (grub_chainloader_unload): Wrap efi calls.
35296 (grub_chainloader_boot): Likewise.
35297 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
35300 * loader/efi/chainloader_normal.c (chainloader_command):
35301 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
35304 * loader/i386/efi/linux.c (allocate_pages): Change allocation
35306 (grub_e820_add_region): New function.
35307 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
35309 (grub_find_video_card): New function.
35310 (grub_linux_setup_video): New function.
35311 (grub_rescue_cmd_linux): Probe for video information.
35313 * normal/x86_64/setjmp.S: New file.
35315 * term/efi/console.c (map_char): New function.
35316 (grub_console_putchar): Map unicode char.
35317 (grub_console_checkkey): Wrap efi calls.
35318 (grub_console_getkey): Likewise.
35319 (grub_console_getwh): Likewise.
35320 (grub_console_gotoxy): Likewise.
35321 (grub_console_cls): Likewise.
35322 (grub_console_setcolorstate): Likewise.
35323 (grub_console_setcursor): Likewise.
35325 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
35327 2008-07-16 Pavel Roskin <proski@gnu.org>
35329 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
35332 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
35333 pointer, not an integer. This fixes a warning and prevents
35334 precision loss on 64-bit systems.
35335 (relocate_addresses): Remove unneeded cast.
35337 2008-07-15 Pavel Roskin <proski@gnu.org>
35339 * kern/i386/ieee1275/init.c: Include grub/cache.h.
35341 * term/ieee1275/ofconsole.c: Disable code unused on i386.
35343 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
35344 Fix comparison between signed and unsigned.
35346 * include/grub/i386/ieee1275/console.h: Declare
35347 grub_console_init() and grub_console_fini().
35349 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
35350 It's empty and unused.
35352 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
35353 beginning to avoid warnings with some compilers.
35355 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
35356 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
35358 2008-07-14 Pavel Roskin <proski@gnu.org>
35360 * kern/env.c (grub_register_variable_hook): Don't copy empty
35361 string, it leaks memory. Pass "" to grub_env_set(), it should
35362 handle constant strings.
35364 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
35365 * commands/cmp.c (grub_cmd_cmp): Likewise.
35366 * kern/dl.c (grub_dl_flush_cache): Likewise.
35367 (grub_dl_load_core): Likewise.
35368 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
35369 (grub_elf64_load_phdrs): Likewise.
35371 2008-07-13 Pavel Roskin <proski@gnu.org>
35373 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
35374 between signed and unsigned.
35375 (LzmaEnc_Finish): Fix warning about an unused parameter.
35377 2008-07-13 Bean <bean123ch@gmail.com>
35379 * Makefile.in (enable_lzo): New rule.
35381 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
35383 * configure.ac (ENABLE_LZO): New option --enable-lzo.
35385 * boot/i386/pc/lnxboot.S: #include <config.h>.
35387 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
35388 its value according to the compression algorithm used, lzo or lzma.
35390 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
35391 compression algorithm according to configure macro.
35393 * kern/i386/pc/startup.S (codestart): Likewise.
35395 * kern/i386/pc/lzma_decode.S: New file.
35397 * include/grub/lib/LzFind.h: Likewise.
35399 * include/grub/lib/LzHash.h: Likewise.
35401 * include/grub/lib/LzmaDec.h: Likewise.
35403 * include/grub/lib/LzmaEnc.h: Likewise.
35405 * include/grub/lib/LzmaTypes.h: Likewise.
35407 * lib/LzFind.c: Likewise.
35409 * lib/LzmaDec.c: Likewise.
35411 * lib/LzmaEnc.c: Likewise.
35413 2008-07-13 Bean <bean123ch@gmail.com>
35415 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
35416 (grub_ext4_extent_header): New structure.
35417 (grub_ext4_extent): Likewise.
35418 (grub_ext4_extent_idx): Likewise.
35419 (grub_ext4_find_leaf): New function.
35420 (grub_ext2_read_block): Handle extents.
35422 2008-07-12 Robert Millan <rmh@aybabtu.com>
35424 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
35426 2008-07-11 Robert Millan <rmh@aybabtu.com>
35428 * util/grub.d/40_custom.in: New file. Example on how to add custom
35429 entries to /etc/grub.d.
35430 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
35431 40_custom (implicitly, by merging all the grub.d rules).
35433 2008-07-11 Pavel Roskin <proski@gnu.org>
35435 * commands/read.c (grub_getline): Fix invalid memory access.
35436 Don't add newline to the variable value.
35438 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
35439 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
35440 (serial_hw_get_port): Check validity of the port number.
35441 (grub_cmd_serial): Check return value of serial_hw_get_port().
35443 2008-07-07 Pavel Roskin <proski@gnu.org>
35445 * boot/i386/pc/diskboot.S (notification_string): Replace
35446 "Loading kernel" with just "loading". This is shorter, less
35447 confusing and saves a few bytes for possible future changes.
35449 2008-07-05 Pavel Roskin <proski@gnu.org>
35451 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
35452 size for ATAPI devices, they are undefined. Output sector
35453 number in decimal form.
35455 * disk/ata.c: Use named constants for status bits.
35457 2008-07-04 Pavel Roskin <proski@gnu.org>
35459 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
35460 grub_addr_t before casting it to the void pointer to fix a
35461 warning. Non-addressable regions are discarded earlier.
35462 (grub_arch_modules_addr): Cast _end to grub_addr_t.
35463 * kern/i386/linuxbios/table.c: Include grub/misc.h.
35464 (check_signature): Don't shadow table_header.
35465 (grub_linuxbios_table_iterate): Cast numeric constants to
35466 grub_linuxbios_table_header_t.
35467 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
35470 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
35473 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
35474 pointer, which can cause warnings. Support 64-bit addresses.
35476 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
35477 of sizeof(long). This fixes PowerPC image generation on x86_64.
35479 2008-07-04 Robert Millan <rmh@aybabtu.com>
35481 This fixes a performance issue when pc & gpt partmap iterators
35482 didn't abort iteration even after our hook found what it was
35483 looking for (often causing expensive probes of non-existent drives).
35485 Some callers relied on previous buggy behaviour, since they would
35486 raise an error when their own hooks caused early abortion of its
35489 * kern/device.c (grub_device_open): Improve error message.
35490 * disk/lvm.c (grub_lvm_open): Likewise.
35491 * disk/raid.c (grub_raid_open): Likewise.
35493 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
35494 when hook requests it, independently of grub_errno.
35495 (pc_partition_map_probe): Do not fail when find_func() caused
35496 early abortion of pc_partition_map_iterate().
35498 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
35499 when hook requests it, independently of grub_errno.
35500 (gpt_partition_map_probe): Do not fail when find_func() caused
35501 early abortion of gpt_partition_map_iterate().
35503 * kern/partition.c (grub_partition_iterate): Abort parent iteration
35504 when hook requests it, independently of grub_errno. Do not fail when
35505 part_map_iterate_hook() caused early abortion of p->iterate().
35507 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
35508 when grub_partition_iterate() returned with non-zero.
35510 2008-07-03 Pavel Roskin <proski@gnu.org>
35512 * disk/ata.c (grub_ata_pio_write): Check status before writing,
35513 like we do in grub_ata_pio_read().
35514 (grub_ata_readwrite): Always write individual sectors. Fix the
35515 sector count for the remainder.
35516 (grub_ata_write): Enable writing to ATA devices. Correctly
35517 report error for ATAPI devices.
35519 2008-07-02 Pavel Roskin <proski@gnu.org>
35521 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
35524 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
35525 for every read sector, we already increment it for the whole
35526 batch. This fixes reading more than 256 sectors at once.
35528 * util/grub-editenv.c (cmd_info): Cast argument to long
35529 explicitly. ptrdiff_t reduces to int on i386.
35531 * util/grub-editenv.c (main): Be specific which parameter is
35534 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
35535 (memdisk): Make memdisk_orig_addr a pointer.
35537 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
35538 for file offsets, use grub_off_t instead. Fix printf format
35541 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
35542 there. Real unexpected warnings should not drown in the noise
35543 about known problems.
35545 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
35546 grub_disk_addr_t for memory addresses.
35548 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
35549 explicitly to fix a warning.
35551 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
35553 * Makefile.in (MODULE_LDFLAGS): New variable.
35554 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
35555 the linker accepts --build-id=none.
35556 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
35558 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
35560 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
35561 those in Linux XFS code. Provide a way to access 64-bit parent
35563 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
35564 the end of struct grub_xfs_dir_header.
35566 2008-07-02 Bean <bean123ch@gmail.com>
35568 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
35569 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
35570 and GRUB_IEEE1275_FLAG_NO_ANSI.
35572 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
35573 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
35574 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
35576 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
35577 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
35579 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
35580 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
35582 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
35583 esc sequence on non ANSI terminal.
35584 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
35586 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
35589 2008-07-02 Bean <bean123ch@gmail.com>
35591 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
35592 (grub_editenv_SOURCES): New variable.
35593 (pkglib_MODULES): Add loadenv.mod.
35594 (loadenv_mod_SOURCES): New variable.
35595 (loadenv_mod_CFLAGS): Likewise.
35596 (loadenv_mod_LDFLAGS): Likewise.
35598 * include/grub/envblk.h: New file.
35600 * util/envblk.c: New file.
35602 * util/grub-editenv.c: New file.
35604 * commands/loadenv.c: New file.
35606 2008-07-01 Pavel Roskin <proski@gnu.org>
35608 * include/multiboot2.h (struct multiboot_tag_module): Use char,
35609 not unsigned char. This fixes warnings and is consistent with
35612 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
35614 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
35616 * term/tparm.c (analyze): Always set *popcount.
35618 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
35619 cast to fix a warning.
35621 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
35622 cast to suppress a warning.
35624 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
35625 grub_fshelp_read_file() expects.
35627 * fs/fat.c: Fix UUID calculation on big-endian systems. We
35628 write uuid as a 32-bit value in CPU byte order, so declare and
35631 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
35632 long if the format specifier expects it.
35633 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
35634 * partmap/pc.c (pc_partition_map_iterate): Likewise.
35635 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
35636 long to fix a warning.
35637 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
35638 grub_dprintf() arguments to fix warnings.
35640 2008-06-30 Pavel Roskin <proski@gnu.org>
35642 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
35643 install_bsd_part immediately before core.img is embedded or
35644 modified on disk. This fixes core.img verification if core.img
35645 cannot be embedded.
35647 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
35648 core_path to calculate the blocklist.
35649 Patch from Javier Martín <lordhabbit@gmail.com>
35651 2008-06-29 Robert Millan <rmh@aybabtu.com>
35653 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
35654 block to disk block.
35655 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
35656 Patch from Niels Böhm <bitbucket@arcor.de>
35658 2008-06-29 Robert Millan <rmh@aybabtu.com>
35660 * util/update-grub_lib.in (font_path): Search for fonts in
35661 /boot/grub first, which is more likely to be readable (we aren't
35662 deciding where fonts live, just looking for them).
35664 2008-06-26 Pavel Roskin <proski@gnu.org>
35666 * util/biosdisk.c (read_device_map): Don't leave dead map
35667 entries for devices failing stat() check.
35669 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
35670 core_path_dev for the core.img path on the target device.
35672 2008-06-26 Robert Millan <rmh@aybabtu.com>
35674 * disk/fs_uuid.c: New file.
35675 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
35676 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
35677 (fs_uuid_mod_LDFLAGS): New variables.
35678 * include/grub/disk.h (grub_disk_dev_id): Add
35679 `GRUB_DISK_DEVICE_UUID_ID'.
35680 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
35681 implement iterate().
35683 2008-06-26 Robert Millan <rmh@aybabtu.com>
35685 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
35686 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
35687 Linux image includes no initrd.
35689 2008-06-21 Javier Martín <lordhabbit@gmail.com>
35691 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
35692 call to resolve the core image location that effectively appended the
35695 2008-06-21 Robert Millan <rmh@aybabtu.com>
35697 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
35700 * util/grub.d/10_hurd.in: ... to here ...
35701 * util/grub.d/10_linux.in: ... and here.
35703 2008-06-19 Robert Millan <rmh@aybabtu.com>
35705 * kern/main.c (grub_main): Export `prefix' variable immediately
35706 after it has been set by grub_machine_set_prefix().
35708 2008-06-19 Robert Millan <rmh@aybabtu.com>
35710 * commands/search.c (search_label, search_fs_uuid, search_file): Print
35711 search result when not saving to variable, not the other way around.
35712 When saving to variable, abort iteration as soon as a match is found.
35714 2008-06-19 Robert Millan <rmh@aybabtu.com>
35716 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
35717 check for partition that provides /boot/grub. Its logic is flawed,
35718 as it prevents prepare_grub_to_access_device() from being called
35721 2008-06-19 Robert Millan <rmh@aybabtu.com>
35723 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
35724 "insmod" command directly when abstraction modules are needed,
35725 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
35726 since it had already been processed).
35728 2008-06-19 Pavel Roskin <proski@gnu.org>
35730 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
35731 changed. This is needed in case GRUB_LIBDIR changes.
35732 * conf/i386-ieee1275.rmk: Likewise.
35733 * conf/i386-linuxbios.rmk: Likewise.
35734 * conf/i386-pc.rmk: Likewise.
35735 * conf/powerpc-ieee1275.rmk: Likewise.
35737 2008-06-18 Pavel Roskin <proski@gnu.org>
35739 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
35740 kernel_elf_symlist.c to symlist.c for consistency with other
35741 architectures. Update all users.
35742 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
35744 2008-06-18 Robert Millan <rmh@aybabtu.com>
35746 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
35749 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
35750 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
35751 a RAID device, run setup() for all members independently on whether
35752 LVM abstraction is being used.
35753 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
35754 If grub-mkimage has set `*install_dos_part == -2', don't override this
35756 Perform *install_dos_part adjustments independently on whether
35757 we're embedding or not.
35758 Clarify error message when image is too big for embedding.
35759 Remove duplicate *install_dos_part stanza.
35761 2008-06-17 Robert Millan <rmh@aybabtu.com>
35763 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
35764 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
35766 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
35767 values in grub_ofconsole_normal_color and
35768 grub_ofconsole_highlight_color (they're not directly related to
35769 background and foreground).
35770 (grub_ofconsole_setcolorstate): Extract background and foreground
35771 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
35773 2008-06-17 Robert Millan <rmh@aybabtu.com>
35775 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
35776 /boot/grub for the check in last commit, not /boot (they could be
35777 different partitions).
35779 2008-06-16 Robert Millan <rmh@aybabtu.com>
35781 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
35782 asked to setup access for the same partition that provides /boot,
35783 don't bother using UUIDs since our root already has the value we
35786 2008-06-16 Robert Millan <rmh@aybabtu.com>
35788 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
35790 Patch from Sven Mueller <sven@debian.org>.
35792 2008-06-16 Robert Millan <rmh@aybabtu.com>
35794 * util/update-grub.in: Check for $EUID instead of $UID.
35795 Reported by Vincent Zweije.
35797 2008-06-16 Bean <bean123ch@gmail.com>
35799 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
35800 (grub_ext2_read_block): Likewise.
35801 (grub_ext2_read_inode): Likewise.
35802 (grub_ext2_mount): Likewise.
35803 (grub_ext2_close): Likewise.
35804 (grub_ext3_get_journal): Removed.
35806 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
35807 (grub_reiserfs_read_symlink): Likewise.
35808 (grub_reiserfs_mount): Likewise.
35809 (grub_reiserfs_open): Likewise.
35810 (grub_reiserfs_read): Likewise.
35811 (grub_reiserfs_close): Likewise.
35812 (grub_reiserfs_get_journal): Removed.
35814 * fs/fshelp.c (grub_fshelp_read): Removed.
35815 (grub_fshelp_map_block): Likewise.
35817 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
35818 (grub_fshelp_journal): Likewise.
35819 (grub_fshelp_read): Likewise.
35820 (grub_fshelp_map_block): Likewise.
35822 2008-06-16 Pavel Roskin <proski@gnu.org>
35824 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
35825 floating point anymore.
35826 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
35828 2008-06-15 Pavel Roskin <proski@gnu.org>
35830 * commands/ls.c (grub_ls_list_files): Use integer calculations
35831 for human readable format, avoid floating point use.
35832 * kern/misc.c (grub_ftoa): Remove.
35833 (grub_vsprintf): Remove floating point support.
35835 2008-06-15 Robert Millan <rmh@aybabtu.com>
35837 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
35839 Reported by Max Vozeler.
35841 2008-06-15 Robert Millan <rmh@aybabtu.com>
35843 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
35844 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
35846 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
35847 the beginning of the prefix.
35849 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
35850 It is assumed that if we have a memdisk, grub-mkimage has set
35851 grub_prefix to include the "(memdisk)" drive in it.
35853 2008-06-15 Robert Millan <rmh@aybabtu.com>
35855 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
35856 Initialize keyboard controller after registering the terminal, so that
35857 grub_printf() can be called from grub_keyboard_controller_init().
35859 2008-06-15 Robert Millan <rmh@aybabtu.com>
35861 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
35862 extent-btree which is written as big endian on disk.
35863 Reported by Alain Greppin <al@chilibi.org>.
35865 2008-06-14 Robert Millan <rmh@aybabtu.com>
35867 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
35868 * util/i386/pc/grub-install.in (modules): Likewise.
35870 2008-06-13 Pavel Roskin <proski@gnu.org>
35872 * commands/ls.c (grub_ls_list_files): Fix format warnings.
35874 2008-06-13 Bean <bean123ch@gmail.com>
35876 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
35878 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
35880 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
35881 to indicate sparse block.
35883 2008-06-12 Pavel Roskin <proski@gnu.org>
35885 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
35886 number, grub_fshelp_read() does it for us.
35888 * fs/fshelp.c (grub_fshelp_read): New function. Implement
35889 linear disk read with journal translation.
35890 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
35891 * include/grub/fshelp.h: Declare grub_fshelp_read().
35893 2008-06-09 Pavel Roskin <proski@gnu.org>
35895 * fs/minix.c (grub_minix_mount): Handle error reading
35898 2008-06-08 Robert Millan <rmh@aybabtu.com>
35900 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
35901 don't append the RAID prefix afterwards.
35902 Reported by Clint Adams.
35904 2008-06-08 Robert Millan <rmh@aybabtu.com>
35906 Based on description from Pavel:
35907 * kern/disk.c (grub_disk_check_range): Rename to ...
35908 (grub_disk_adjust_range): ... this. Add a comment explaining the
35909 tasks performed by this function.
35911 2008-06-08 Robert Millan <rmh@aybabtu.com>
35913 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
35914 `num_serial' (for consistency with other variables).
35915 (struct grub_ntfs_data): Add `uuid' member.
35916 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
35917 (grub_ntfs_uuid): New function.
35918 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
35920 2008-06-07 Pavel Roskin <proski@gnu.org>
35922 * util/biosdisk.c (open_device): Revert last change to the
35923 function, it broke installation. The sector needs to be
35924 different dependent on which device is opened.
35926 2008-06-06 Robert Millan <rmh@aybabtu.com>
35928 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
35929 rest of GRUB, and breakage doesn't happen if its value were modified.
35931 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
35932 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
35933 a constant (same value).
35934 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
35935 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
35937 2008-06-06 Robert Millan <rmh@aybabtu.com>
35939 * util/biosdisk.c (open_device): Do not modify sector offset when
35940 accessing a partition. kern/disk.c already handles this for us.
35942 2008-06-06 Robert Millan <rmh@aybabtu.com>
35944 * util/grub-emu.c (grub_machine_init): Move code in this function from
35946 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
35947 segfault in case grub_printf() is called).
35949 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
35950 grub_probe. Update all users not to explicitly add it again.
35951 (grub_device): New variable; contains corresponding device for grubdir.
35952 (fs_module, partmap_module, devabstraction_module): Pass
35953 `--device ${grub_device}' to grub_probe to avoid traversing /dev
35956 2008-06-05 Robert Millan <rmh@aybabtu.com>
35958 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
35959 is found, print it (same layout as with labels).
35961 2008-06-04 Robert Millan <rmh@aybabtu.com>
35963 * util/biosdisk.c (get_drive): Rename to ...
35964 (find_grub_drive): ... this. Update all users.
35966 (get_os_disk): Rename to ...
35967 (convert_system_partition_to_system_disk): ... this. Update all users.
35969 (find_drive): Rename to ...
35970 (find_system_device): ... this. Update all users.
35972 2008-06-04 Robert Millan <rmh@aybabtu.com>
35974 * util/biosdisk.c (get_os_disk): Handle IDA devices.
35975 * util/grub-mkdevicemap.c (get_mmc_disk_name)
35976 (make_device_map): Likewise.
35978 2008-06-01 Robert Millan <rmh@aybabtu.com>
35980 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
35981 before dereferencing it.
35983 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
35984 union with fat12/fat16-specific ones. Add some new fields, including
35985 `num_serial' for both versions.
35986 (struct grub_fat_data): Add `uuid' member.
35987 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
35988 names. Initialize `data->uuid' using `num_serial'.
35989 (grub_fat_uuid): New function.
35990 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
35992 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
35993 (grub_reiserfs_uuid): New function.
35994 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
35997 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
35998 (grub_xfs_uuid): New function.
35999 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
36001 2008-06-01 Robert Millan <rmh@aybabtu.com>
36003 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
36004 code that is backward compatible with pre-uuid search command.
36006 2008-05-31 Robert Millan <rmh@aybabtu.com>
36008 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
36009 floppies after everything else, to ensure floppy drive isn't accessed
36010 unnecessarily (patch from Bean).
36012 2008-05-31 Robert Millan <rmh@aybabtu.com>
36014 * commands/search.c (search_label, search_fs_uuid, search_file): Do
36015 not print device names when we were asked to set a variable.
36017 2008-05-31 Robert Millan <rmh@aybabtu.com>
36019 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
36020 using "cursor-on" and "cursor-off" commands (understood at least by
36021 the Open Firmware flavour on OLPC).
36023 2008-05-31 Michael Gorven <michael@gorven.za.net>
36025 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
36026 on and off sequences.
36028 2008-05-31 Robert Millan <rmh@aybabtu.com>
36030 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
36031 * util/update-grub.in: Likewise.
36033 2008-05-30 Pavel Roskin <proski@gnu.org>
36035 * util/biosdisk.c (linux_find_partition): Simplify logic and
36036 make the code more universal. Keep special processing for
36037 devfs, but use a simple rule for all other devices. If the
36038 device ends with a number, append 'p' and the partition number.
36039 Otherwise, append only the partition number.
36041 2008-05-30 Robert Millan <rmh@aybabtu.com>
36043 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
36044 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
36045 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
36046 the `root' parameter to Linux.
36048 2008-05-30 Robert Millan <rmh@aybabtu.com>
36050 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
36051 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
36052 --fs_uuid with --fs-uuid.
36053 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
36054 all filesystems support them).
36056 2008-05-30 Robert Millan <rmh@aybabtu.com>
36058 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
36059 grub_printf() flags, since we're printing in units of 2 bytes.
36061 2008-05-30 Robert Millan <rmh@aybabtu.com>
36063 * util/grub.d/00_header.in: Remove obsolete comment referencing
36064 convert_system_path_to_grub_path().
36065 * util/update-grub.in: Likewise.
36066 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
36067 (convert_system_path_to_grub_path): Add a warning message explaining
36068 that this function is deprecated. Rely on is_path_readable_by_grub()
36069 for the readability checks.
36070 (font_path): Use is_path_readable_by_grub() for the readability
36071 check rather than convert_system_path_to_grub_path().
36073 2008-05-30 Robert Millan <rmh@aybabtu.com>
36075 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
36076 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
36077 converting it first.
36078 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
36079 grub.cfg for access to font file, and afterwards call it again to set
36082 2008-05-30 Robert Millan <rmh@aybabtu.com>
36084 * commands/search.c (options): Add --fs_uuid option.
36085 (search_fs_uuid): New function.
36086 (grub_cmd_search): Fix --set argument passing.
36087 Use search_fs_uuid() when requested via --fs_uuid.
36088 (grub_search_init): Update help message.
36089 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
36090 and redeclare it as an array of 16-bit words.
36091 (grub_ext2_uuid): New function.
36092 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
36093 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
36094 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
36095 (GRUB_DEVICE_BOOT_UUID): New variables.
36096 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
36097 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
36099 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
36100 just assume `root' variable has the right value.
36101 * util/grub.d/10_linux.in: Likewise.
36102 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
36104 (main): Recognise `-t fs_uuid' argument.
36106 2008-05-30 Robert Millan <rmh@aybabtu.com>
36108 * util/biosdisk.c (map): Redefine structure to hold information
36109 about GRUB drive name.
36110 (get_drive): Reimplement without assuming (and verifying) BIOS-like
36112 (call_hook): Remove.
36113 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
36114 member. Assume drive has partitions.
36115 (grub_util_biosdisk_open): Access device names via `.device' struct
36117 (open_device): Likewise.
36118 (find_drive): Likewise.
36119 (read_device_map): Adjust map[] usage to match the new struct
36120 definition. Don't check for duplicates (still possible, but not cheap
36122 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
36123 (make_device_name): Remove assumption of BIOS-like drive names.
36125 2008-05-30 Pavel Roskin <proski@gnu.org>
36127 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
36128 compiling execute.c doesn't need grub_script.tab.h anymore.
36129 (normal/command.c_DEPENDENCIES): Likewise.
36130 (normal/function.c_DEPENDENCIES): Likewise.
36131 * conf/i386-ieee1275.rmk: Likewise.
36132 * conf/i386-linuxbios.rmk: Likewise.
36133 * conf/i386-pc.rmk: Likewise.
36134 * conf/powerpc-ieee1275.rmk: Likewise.
36135 * conf/sparc64-ieee1275.rmk: Likewise.
36137 2008-05-29 Pavel Roskin <proski@gnu.org>
36139 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
36140 when scanning metadata for volume group name.
36142 * include/grub/script.h: Don't include grub_script.tab.h. It's
36143 a generated file, which may only be included from the files with
36144 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
36145 use union YYSTYPE, as the later allows forward declaration.
36146 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
36148 2008-05-29 Robert Millan <rmh@aybabtu.com>
36150 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
36151 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
36152 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
36153 (grub_console_checkkey): Add grub_dprintf() call to report unknown
36156 2008-05-29 Robert Millan <rmh@aybabtu.com>
36158 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
36159 control key combinations.
36161 2008-05-29 Robert Millan <rmh@aybabtu.com>
36163 * util/powerpc/ieee1275/grub-install.in: Move from here ...
36164 * util/ieee1275/grub-install.in: ... to here.
36165 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
36166 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
36167 (grub_install_SOURCES): Likewise.
36169 2008-05-29 Robert Millan <rmh@aybabtu.com>
36171 * fs/affs.c: Update copyright year.
36172 * fs/ext2.c: Likewise.
36173 * fs/fshelp.c: Likewise.
36174 * fs/hfsplus.c: Likewise.
36175 * fs/ntfs.c: Likewise.
36176 * fs/xfs.c: Likewise.
36177 * include/grub/fshelp.h: Likewise.
36178 * util/grub-mkdevicemap.c: Likewise.
36180 2008-05-28 Robert Millan <rmh@aybabtu.com>
36182 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
36183 might need to be fatfs to support some firmware implementations
36186 2008-05-28 Robert Millan <rmh@aybabtu.com>
36188 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
36190 * util/grub-mkdevicemap.c (get_mmc_disk_name)
36191 (make_device_map): Likewise.
36193 2008-05-20 Bean <bean123ch@gmail.com>
36195 * fs/fshelp.c (grub_fshelp_map_block): New function.
36196 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
36197 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
36199 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
36200 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
36201 (grub_fshelp_journal): New structure.
36202 (grub_fshelp_map_block): New function prototype.
36203 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
36204 (grub_fshelp_map_block): Likewise.
36206 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
36207 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
36208 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
36209 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
36210 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
36211 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
36212 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
36213 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
36214 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
36215 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
36216 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
36217 (grub_ext2_sblock): New members for journal support.
36218 (grub_ext3_journal_header): New structure.
36219 (grub_ext3_journal_revoke_header): Likewise.
36220 (grub_ext3_journal_block_tag): Likewise.
36221 (grub_ext3_journal_sblock): Likewise.
36222 (grub_fshelp_node): New members logfile and journal.
36223 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
36224 grub_fshelp_map_block to get real block number.
36225 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
36227 (grub_ext2_read_inode): Likewise.
36228 (grub_ext3_get_journal): New function.
36229 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
36230 (grub_ext2_close): Release memory used by journal.
36232 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
36233 (REISERFS_MAGIC_DESC_BLOCK): New macro.
36234 (grub_reiserfs_transaction_header): Renamed to
36235 grub_reiserfs_description_block, replace field data with real_blocks.
36236 (grub_reiserfs_commit_block): New structure.
36237 (grub_reiserfs_data): New member journal.
36238 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
36240 (grub_reiserfs_read_symlink): Likewise.
36241 (grub_reiserfs_iterate_dir): Likewise.
36242 (grub_reiserfs_open): Likewise.
36243 (grub_reiserfs_read): Likewise.
36244 (grub_reiserfs_get_journal): New function.
36245 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
36246 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
36247 using grub_reiserfs_get_journal.
36248 (grub_reiserfs_close): Release memory used by journal.
36250 * fs/affs.c (grub_affs_read_block): Change block type to
36251 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
36253 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
36255 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
36257 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
36259 * fs/udf.c (grub_udf_read_block): Change block type to
36260 grub_disk_addr_t. Use type cast to avoid warning.
36262 * fs/xfs.c (grub_xfs_read_block): Likewise.
36264 2008-05-16 Christian Franke <franke@computer.org>
36266 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
36267 to ensure that break with ESC will always work.
36268 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
36269 Remove ESC from keyboard queue.
36271 2008-05-16 Christian Franke <franke@computer.org>
36273 * util/biosdisk.c: [__CYGWIN__] Add includes.
36274 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
36275 (get_os_disk): Move variable declarations to OS specific
36276 parts to avoid warning.
36277 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
36278 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
36279 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
36281 * util/getroot.c: [__CYGWIN__] Add includes.
36282 (strip_extra_slashes): Fix "/" case.
36283 [__CYGWIN__] (get_win32_path): New function.
36284 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
36285 [__CYGWIN__] (find_root_device): Disable.
36286 [__CYGWIN__] (get_bootsec_serial): New function.
36287 [__CYGWIN__] (find_cygwin_root_device): Likewise.
36288 [__linux__] (grub_guess_root_device): Add early returns to simplify
36290 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
36291 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
36292 check for Linux only.
36294 2008-05-15 Bean <bean123ch@gmail.com>
36296 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
36297 keyboard hang problem in apple's intel mac.
36299 2008-05-09 Robert Millan <rmh@aybabtu.com>
36301 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
36303 * util/grub-mkdevicemap.c (get_virtio_disk_name)
36304 (make_device_map): Likewise.
36305 Reported by Aurelien Jarno <aurel32@debian.org>
36307 2008-05-07 Ian Campbell <ijc@hellion.org.uk>
36309 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
36310 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
36311 (make_device_map): Output entries for xvd type disks.
36313 2008-05-07 Robert Millan <rmh@aybabtu.com>
36315 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
36317 * util/grub-mkdevicemap.c (get_cciss_disk_name)
36318 (make_device_map): Likewise.
36319 Reported by Roland Dreier <rdreier@cisco.com>
36321 2008-05-07 Robert Millan <rmh@aybabtu.com>
36323 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
36324 grub_strstr() call. Correct a few mistakes in failure path handling.
36326 2008-05-06 Robert Millan <rmh@aybabtu.com>
36328 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
36329 Do not print a trailing slash (therefore, the root directory is an
36331 (convert_system_path_to_grub_path): Do not remove trailing slash
36332 from make_system_path_relative_to_its_root() output.
36334 * util/i386/pc/grub-install.in: Add trailing slash to output from
36335 make_system_path_relative_to_its_root().
36337 2008-05-06 Robert Millan <rmh@aybabtu.com>
36339 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
36340 ensures that output lines aren't intermangled with those sent to
36341 stderr (via grub_util_info()).
36342 * util/grub-probe.c (grub_refresh): Likewise.
36343 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
36345 2008-05-05 Christian Franke <franke@computer.org>
36347 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
36348 Add Cygwin device names.
36349 (get_ide_disk_name) [__CYGWIN__]: Likewise.
36350 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
36351 (check_device): Return error instead of success on empty name.
36352 (make_device_map): Move label inside linux specific code to
36353 prevent compiler warning.
36355 2008-04-30 Robert Millan <rmh@aybabtu.com>
36357 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
36358 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
36360 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
36362 2008-04-29 Robert Millan <rmh@aybabtu.com>
36364 * docs/grub.cfg: New file (example GRUB configuration).
36366 2008-04-26 Robert Millan <rmh@aybabtu.com>
36368 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
36369 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
36370 and `disk/ieee1275/nand.c'.
36372 2008-04-25 Bean <bean123ch@gmail.com>
36374 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
36377 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
36378 change the buffer size to 4096 for cdrom device.
36380 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
36382 (_linux_mod_SOURCES): New variable.
36383 (_linux_mod_CFLAGS): Likewise.
36384 (_linux_mod_LDFLAGS): Likewise.
36385 (linux_mod_SOURCES): Likewise.
36386 (linux_mod_CFLAGS): Likewise.
36387 (linux_mod_LDFLAGS): Likewise.
36388 (nand_mod_SOURCES): Likewise.
36389 (nand_mod_CFLAGS): Likewise.
36390 (nand_mod_LDFLAGS): Likewise.
36392 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
36393 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
36394 type property. (nand device in olpc don't have this property)
36396 * include/grub/disk.h (grub_disk_dev_id): New macro
36397 GRUB_DISK_DEVICE_NAND_ID.
36399 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
36400 function prototype.
36401 (grub_rescue_cmd_initrd): Likewise.
36403 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
36404 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
36405 ofw_cif_handler and ofw_idt, adjust padding number.
36407 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
36408 GRUB_MACHINE_IEEE1275 is defined.
36410 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
36411 Use NESTED_FUNC_ATTR attribute on the hook parameter.
36413 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
36414 on nested function heap_init.
36415 (grub_upper_mem): New variable for i386-ieee1275.
36416 (grub_get_extended_memory): New function for i386-ieee1275.
36417 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
36419 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
36420 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
36423 * loader/i386/ieee1275/linux.c: New file.
36425 * loader/i386/ieee1275/linux_normal.c: New file.
36427 * disk/ieee1275/nand.c: New file.
36429 2008-04-18 Thomas Schwinge <tschwinge@gnu.org>
36431 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
36433 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
36435 2008-04-18 Robert Millan <rmh@aybabtu.com>
36437 Restructures early code path on ieee1275 to unify grub_main() as
36438 the first C function that is executed in every platform.
36440 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
36441 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
36443 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
36444 * kern/ieee1275/cmain.c (cmain): Rename to ...
36445 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
36446 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
36449 2008-04-18 Robert Millan <rmh@aybabtu.com>
36451 * util/update-grub.in: Fix syntax error when setting
36452 `GRUB_PRELOAD_MODULES'.
36453 Reported by Stephane Chazelas <stephane@artesyncp.com>
36455 2008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
36457 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
36458 section into account, newer toolchains generate unique build ids
36459 * configure.ac: remove the test for --build-id=none acceptance,
36460 we want build ids to be preserved
36461 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
36462 far from other sections don't cause the raw binary images grow
36465 2008-04-15 Robert Millan <rmh@aybabtu.com>
36467 * disk/lvm.c: Update copyright year.
36468 * kern/misc.c: Likewise.
36470 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
36472 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
36473 there is no memory left for physical volume name.
36475 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
36477 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
36478 volume name mapping to support bigger than 9 character names properly.
36480 2008-04-13 Robert Millan <rmh@aybabtu.com>
36482 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
36483 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
36485 2008-04-13 Christian Franke <franke@computer.org>
36487 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
36488 to create a floppy emulation boot CD when non emulation mode
36490 Enable Joliet CD filesystem extension.
36492 2008-04-13 Robert Millan <rmh@aybabtu.com>
36494 * kern/misc.c (grub_strncat): Fix off-by-one error.
36495 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
36497 * kern/env.c (grub_env_context_close): Clear current context, not
36499 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
36501 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
36503 2008-04-13 Robert Millan <rmh@aybabtu.com>
36505 Improve robustness when handling LVM.
36507 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
36508 (and leave `*p' unmodified).
36509 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
36511 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
36512 iterating through it.
36513 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
36515 (grub_lvm_scan_device): Check the return value (and fail gracefully
36516 when due) on each grub_lvm_getvalue() or grub_strstr() call.
36517 Don't assume `vg->pvs != NULL' when iterating through it.
36519 2008-04-13 Robert Millan <rmh@aybabtu.com>
36521 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
36522 * genmk.rb (partmap): New variable.
36523 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
36524 (#{partmap}): New target rule.
36525 * genpartmaplist.sh: New file.
36526 * Makefile.in (pkglib_DATA): Add partmap.lst.
36527 (partmap.lst): New target rule.
36528 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
36529 modules (including all partition maps), instead of preloading them.
36531 2007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
36533 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
36534 `linux-boot-prober' (if installed) to detect other operating
36535 systems which are installed on the computer and add them to
36537 * conf/common.rmk: Build and install 30_os-prober.
36539 2008-04-12 Robert Millan <rmh@aybabtu.com>
36541 * kern/powerpc/ieee1275/init.c: Move from here ...
36542 * kern/ieee1275/init.c: ... to here. Update all users.
36544 * kern/powerpc/ieee1275/cmain.c: Move from here ...
36545 * kern/ieee1275/cmain.c: ... to here. Update all users.
36547 * kern/powerpc/ieee1275/openfw.c: Move from here ...
36548 * kern/ieee1275/openfw.c: ... to here. Update all users.
36550 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
36551 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
36553 2008-04-10 Pavel Roskin <proski@gnu.org>
36555 * configure.ac: Always use "_cv_" in cache variables for
36556 compatibility with Autoconf 2.62.
36558 2008-04-07 Robert Millan <rmh@aybabtu.com>
36560 Revert grub/machine/init.h addition by Pavel (since it breaks on
36561 i386-ieee1275 and others):
36562 * util/i386/pc/misc.c: Remove grub/machine/init.h.
36563 * util/powerpc/ieee1275/misc.c: Likewise.
36565 2008-04-07 Robert Millan <rmh@aybabtu.com>
36567 * util/grub-probe.c (probe): Improve error message.
36569 2008-04-07 Robert Millan <rmh@aybabtu.com>
36571 * util/biosdisk.c (read_device_map): Skip devices that don't exist
36572 (this prevents the presence of a bogus entry from ruining the whole
36575 2008-04-06 Pavel Roskin <proski@gnu.org>
36577 * util/biosdisk.c: Include grub/util/biosdisk.h.
36578 * util/grub-fstest.c (execute_command): Make static.
36579 * util/grub-mkdevicemap.c (check_device): Likewise.
36580 * util/i386/pc/misc.c: Include grub/machine/init.h.
36581 * util/powerpc/ieee1275/misc.c: Likewise.
36582 * util/lvm.c: Include grub/util/lvm.h.
36583 * util/misc.c: Include grub/kernel.h, grub/misc.h and
36585 * util/raid.c: Include grub/util/raid.h.
36586 (grub_util_getdiskname): Make static.
36588 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
36589 grub_hostfs_fini(), as they are called from grub_init_all() and
36590 grub_fini_all() respectively. This fixes an infinite loop in
36591 grub-fstest due to double registration of hostfs.
36592 Reported by Christian Franke <Christian.Franke@t-online.de>
36594 2008-04-05 Pavel Roskin <proski@gnu.org>
36596 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
36597 all 8 functions. Otherwise, probe function 0 only.
36599 2008-04-04 Pavel Roskin <proski@gnu.org>
36601 * commands/lspci.c (grub_lspci_iter): Print the bus number
36604 * commands/lspci.c (grub_pci_classes): Fix typos.
36605 (grub_lspci_iter): Don't print func twice. Print vendor ID
36606 before device ID, as it's normally done.
36608 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
36609 Fix signedness warnings.
36610 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
36612 * util/ieee1275/get_disk_name.c: Include config.h so that
36613 _GNU_SOURCE is defined and getline() is declared. Mark an
36614 unused argument as such. Fix a signedness warning.
36616 2008-04-02 Pavel Roskin <proski@gnu.org>
36618 * genkernsyms.sh.in: Use more robust assignments for CC and
36619 srcdir. Quote srcdir.
36620 * gensymlist.sh.in: Likewise. Assert at the compile time that
36621 the symbol table is not empty.
36623 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
36624 * fs/cpio.c (grub_cpio_read): Likewise.
36626 2008-04-01 Pavel Roskin <proski@gnu.org>
36628 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
36629 * disk/host.c (grub_host_open): Likewise.
36630 * disk/loopback.c (grub_loopback_open): Likewise.
36631 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
36632 disk->id as in disk/host.c, not a multi-character constant.
36634 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
36635 later is obsolete, potentially dangerous and sets a bad example.
36636 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
36637 * util/misc.c (grub_util_get_image_size): Likewise.
36639 * disk/loopback.c (options): Improve help for "--partitions".
36641 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
36642 options to align them with the short options, e.g. "echo -e".
36644 2008-03-31 Bean <bean123ch@gmail.com>
36646 * video/reader/png.c (grub_png_data): New member is_16bit and
36648 (grub_png_decode_image_header): Detect 16 bit png image.
36649 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
36650 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
36651 (grub_video_reader_png): Release memory occupied by image_data.
36653 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
36655 (grub_nfs_mount): Skip the test for sector per cluster.
36657 * include/grub/ntfs.h (MAX_SPC): Removed.
36659 2008-03-31 Bean <bean123ch@gmail.com>
36661 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
36662 (grub_probe_SOURCES): Add fs/afs.c.
36663 (grub_fstest_SOURCES): Likewise.
36664 (afs_mod_SOURCES): New variable.
36665 (afs_mod_CFLAGS): Likewise.
36666 (afs_mod_LDFLAGS): Likewise.
36668 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
36669 (grub_emu_SOURCES): Likewise.
36671 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
36673 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36675 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
36677 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36679 * fs/afs.c: New file.
36681 2008-03-30 Pavel Roskin <proski@gnu.org>
36683 * disk/host.c: Include grub/misc.h to fix a warning.
36684 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
36685 warnings about implicit declarations.
36687 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
36689 * include/grub/i386/loader.h: Change declaration of
36690 grub_linux_boot() to match what grub_loader_set() expects.
36691 * util/getroot.c (grub_guess_root_device): Return const char* to
36693 * util/grub-probe.c (probe): Fix a warning about uninitialized
36694 abstraction_name variable.
36695 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
36696 second argument as unused to fix a warning.
36698 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
36699 missing grub_error() call.
36701 * util/update-grub_lib.in: Define datarootdir, since Autoconf
36702 2.60 and newer uses it to define datadir.
36704 * commands/sleep.c: Fix warning about implicit declaration.
36705 * disk/memdisk.c: Likewise.
36706 * loader/aout.c: Likewise.
36707 * loader/i386/bsd_normal.c: Likewise.
36708 * util/grub-probe.c: Likewise.
36710 * commands/i386/cpuid.c (has_longmode): Make static.
36711 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
36712 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
36714 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
36715 GDT. This is more robust, as %ds can change.
36716 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
36717 calling real_to_prot().
36718 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
36720 2008-03-28 Pavel Roskin <proski@gnu.org>
36722 * kern/i386/pc/startup.S: Assert that uncompressed functions
36723 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
36724 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
36725 code, as they push parts of the code (error handlers) beyond
36726 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
36727 code as correctness and size.
36729 2008-03-28 Pavel Roskin <proski@gnu.org>
36731 * kern/i386/pc/startup.S
36732 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
36733 data block address to the real mode, keep offset minimal. This
36734 works around a bug in AWARD BIOS on old Athlon systems, which
36735 makes CD detection hang.
36737 2008-03-26 Pavel Roskin <proski@gnu.org>
36739 * normal/color.c (grub_parse_color_name_pair): Make `name' a
36741 * include/grub/normal.h: Add grub_parse_color_name_pair()
36744 2008-03-24 Bean <bean123ch@gmail.com>
36746 * disk/i386/pc/biosdisk.c (cd_start): Removed.
36747 (cd_count): Removed.
36748 (cd_drive): New variable.
36749 (grub_biosdisk_get_drive): Don't check for (cdN) device.
36750 (grub_biosdisk_call_hook): Likewise.
36751 (grub_biosdisk_iterate): Change cdrom detection method.
36752 (grub_biosdisk_open): Replace cd_start with cd_drive.
36753 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
36754 detect cdrom device.
36756 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
36758 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
36759 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
36760 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
36761 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
36762 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
36763 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
36764 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
36765 (grub_biosdisk_cdrp): New structure.
36766 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
36768 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
36770 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
36773 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
36776 2008-03-20 Robert Millan <rmh@aybabtu.com>
36778 Remove 2 TiB limit in ata.mod.
36779 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
36780 (grub_ata_dumpinfo): Print sector count with 0x%llx.
36781 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
36782 grub_uint64_t instead of grub_uint32_t.
36784 2008-03-05 Bean <bean123ch@gmail.com>
36786 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
36787 (grub_multiboot): Set boot device.
36789 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
36791 2008-03-02 Bean <bean123ch@gmail.com>
36793 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
36796 2008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
36798 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
36801 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
36804 * docs/fdl.texi: New file.
36806 * docs/mdate-sh: New file. Copied from gnulib.
36807 * docs/texinfo.tex: Likewise.
36809 * config.guess: Updated from gnulib.
36810 * install-sh: Likewise.
36812 2008-02-28 Robert Millan <rmh@aybabtu.com>
36814 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
36815 (aout_mod_SOURCES): New variable.
36816 (aout_mod_CFLAGS): Likewise.
36817 (aout_mod_LDFLAGS): Likewise.
36819 * conf/i386-ieee1275.rmk: Likewise.
36821 2008-02-28 Robert Millan <rmh@aybabtu.com>
36823 * util/update-grub.in: Reorganise terminal validity check. Accept
36824 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
36825 Based on suggestion by Franklin PIAT.
36827 2008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
36829 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
36831 * util/getroot.c (grub_util_check_block_device): New function that
36832 returns the given argument if it is a block device and returns NULL else.
36833 * util/grub-probe.c (argument_is_device): New variable.
36834 (probe): Promote device_name from a variable to an argument. Receive
36835 device_name from grub_util_check_block_device() if path is NULL and from
36836 grub_guess_root_device() else. Do not free() device_name anymore.
36837 (options): Introduce new parameter '-d, --device'.
36838 (main): Add description of the new parameter to the help screen.
36839 Rename path variable to argument. Set argument_is_device if the '-d'
36840 option is given. Pass argument to probe() depending on
36841 argument_is_device.
36843 2008-02-24 Bean <bean123ch@gmail.com>
36845 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
36846 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
36847 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
36848 (GRUB_ISO9660_VOLDESC_PART): Likewise.
36849 (GRUB_ISO9660_VOLDESC_END): Likewise.
36850 (grub_iso9660_primary_voldesc): New member escape.
36851 (grub_iso9660_data): New member joliet.
36852 (grub_iso9660_convert_string): New function.
36853 (grub_iso9660_mount): Detect joliet extension.
36854 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
36855 (grub_iso9660_iso9660_label): Likewise.
36857 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
36858 (grub_setup_SOURCES): Add fs/udf.c.
36859 (grub_fstest_SOURCES): Likewise.
36860 (udf_mod_SOURCES): New variable.
36861 (udf_mod_CFLAGS): Likewise.
36862 (udf_mod_LDFLAGS): Likewise.
36864 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
36865 (grub_emu_SOURCES): Likewise.
36867 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
36869 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36871 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
36873 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36875 * fs/udf.c: New file.
36877 2008-02-24 Robert Millan <rmh@aybabtu.com>
36879 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
36880 (normal/lexer.c_DEPENDENCIES): New variables.
36881 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
36882 (normal/lexer.c_DEPENDENCIES): Likewise.
36883 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
36884 (normal/lexer.c_DEPENDENCIES): Likewise.
36885 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
36886 (normal/lexer.c_DEPENDENCIES): Likewise.
36887 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
36888 (normal/lexer.c_DEPENDENCIES): Likewise.
36889 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
36890 (normal/lexer.c_DEPENDENCIES): Likewise.
36892 2008-02-23 Robert Millan <rmh@aybabtu.com>
36894 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
36895 since they were intended to be in hex. This didn't break previously
36896 because of a bug in gpt_partition_map_iterate() (see below).
36898 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
36899 when checking the validity of GPT header.
36900 Remove `partno', since it always provides the same information as `i'.
36902 2008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
36904 * include/grub/efi/time.h: Fix a wrong comment.
36906 2008-02-19 Pavel Roskin <proski@gnu.org>
36908 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
36911 2008-02-19 Bean <bean123ch@gmail.com>
36913 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
36914 (aout_mod_SOURCES): New variable.
36915 (aout_mod_CFLAGS): Likewise.
36916 (aout_mod_LDFLAGS): Likewise.
36917 (_bsd_mod_SOURCES): New variable.
36918 (_bsd_mod_CFLAGS): Likewise.
36919 (_bsd_mod_LDFLAGS): Likewise.
36920 (bsd_mod_SOURCES): New variable.
36921 (bsd_mod_CFLAGS): Likewise.
36922 (bsd_mod_LDFLAGS): Likewise.
36924 * include/grub/aout.h: New file.
36926 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
36928 * include/grub/i386/bsd.h: New file.
36930 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
36933 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
36934 function is called, so that it's possible to change it inside the hook.
36935 (grub_elf64_load): Likewise.
36936 (grub_elf_file): Don't close the file if elf header is not found.
36937 (grub_elf_close): Close the file if grub_elf_file fails (The new
36938 grub_elf_file won't close it).
36939 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
36940 (grub_elf64_size): Likewise.
36942 * kern/i386/loader.S (grub_unix_real_boot): New function.
36944 * loader/aout.c: New file.
36946 * loader/i386/bsd.c: New file.
36948 * loader/i386/bsd_normal.c: New file.
36950 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
36952 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
36953 can test other formats.
36955 2008-02-19 Robert Millan <rmh@aybabtu.com>
36957 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
36958 (grub_gpt_partition_type_empty): Redefine with macro from
36959 `<grub/gpt_partition.h>'.
36960 (gpt_partition_map_iterate): Adjust partition type comparison.
36962 Export `entry' as partmap-specific `part.data' struct.
36963 (grub_gpt_header, grub_gpt_partentry): Move from here ...
36965 * include/grub/gpt_partition.h (grub_gpt_header)
36966 (grub_gpt_partentry): ... to here (new file).
36968 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
36970 (grub_gpt_partition_type_bios_boot): New const variable, defined
36971 with macro from `<grub/gpt_partition.h>'.
36973 (setup): Replace `first_start' with `embed_region', which keeps
36974 track of the embed region (and is partmap-agnostic).
36976 Replace find_first_partition_start() with find_usable_region(),
36977 which finds a usable region for embedding using partmap-specific
36978 knowledge (supports PC/MSDOS and GPT).
36980 Fix all assumptions that the embed region start at sector 1, using
36981 `embed_region.start' from now on. Similarly, use `embed_region.end'
36982 rather than `first_start' to calculate available size.
36984 In grub_util_info() message, replace "into after the MBR" with an
36985 indication of the specific sector our embed region starts at.
36987 2008-02-19 Robert Millan <rmh@aybabtu.com>
36989 * DISTLIST: Replace `commands/ieee1275/halt.c' and
36990 `commands/ieee1275/reboot.c' with `commands/halt.c' and
36991 `commands/reboot.c'.
36992 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
36993 (halt_mod_SOURCES): Likewise.
36994 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
36995 (halt_mod_SOURCES): Likewise.
36997 2008-02-17 Christian Franke <franke@computer.org>
36999 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
37001 2008-02-17 Robert Millan <rmh@aybabtu.com>
37003 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
37004 set `first_start' to 0 for non-PC/MSDOS partition maps.
37006 2008-02-16 Robert Millan <rmh@aybabtu.com>
37008 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
37009 do not assume partition map is PC/MSDOS before performing checks that
37010 are specific to that layout.
37012 2008-02-13 Robert Millan <rmh@aybabtu.com>
37014 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
37015 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
37016 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
37018 2008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
37020 * configure.ac: Only a cosmetic change on the handling of
37021 -fno-stack-protector.
37023 2008-02-12 Alexandre Boeglin <alex@boeglin.org>
37025 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
37026 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
37028 (grub_install_SOURCES): Add halt.mod and reboot.mod.
37029 (halt_mod_SOURCES): New variable.
37030 (halt_mod_CFLAGS): Likewise.
37031 (halt_mod_LDFLAGS): Likewise.
37032 (reboot_mod_SOURCES): Likewise.
37033 (reboot_mod_CFLAGS): Likewise.
37034 (reboot_mod_LDFLAGS): Likewise.
37036 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
37037 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
37039 (halt_mod_SOURCES): Likewise.
37040 (reboot_mod_SOURCES): Likewise.
37042 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
37043 commands/i386/pc/reboot.c by commands/reboot.c.
37044 (reboot_mod_SOURCES): Likewise.
37046 * commands/i386/pc/reboot.c: merge this file ...
37048 * commands/ieee1275/reboot.c: ... and this file ...
37050 * commands/reboot.c: ... to this file.
37051 Add some precompiler directive to include the correct header for
37054 * commands/ieee1275/halt.c: move this file ...
37056 * commands/halt.c: ... to here.
37057 Add some precompiler directive to include the correct header for
37060 * include/grub/efi/efi.h (grub_reboot): New function declaration.
37061 (grub_halt): Likewise.
37063 * kern/efi/efi.c (grub_reboot): New function.
37064 (grub_halt): Likewise.
37066 2008-02-12 Robert Millan <rmh@aybabtu.com>
37068 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
37069 /dev (like it is done for /dev/mapper). This doesn't provide support
37070 for EVMS, but at least it is now easy to identify the problem when it
37073 2008-02-11 Robert Millan <rmh@aybabtu.com>
37075 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
37076 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
37077 comparing it with -1, not 0.
37079 2008-02-10 Robert Millan <rmh@aybabtu.com>
37081 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
37083 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37084 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
37086 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
37087 `disk/lvm.c' to the end of the list.
37088 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
37089 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
37091 2008-02-10 Robert Millan <rmh@aybabtu.com>
37093 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
37094 grub_print_error() instead. This will let user know why we're entering
37096 Based on suggestions from Sam Morris.
37098 2008-02-10 Alexandre Boeglin <alex@boeglin.org>
37100 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
37101 on remaining N args, instead of "--" arg N times.
37103 2008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
37105 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
37106 (fill_with_default_glyph): Changed to use unknown_glyph for fill
37107 pattern for unknown glyphs.
37109 2008-02-09 Robert Millan <rmh@aybabtu.com>
37111 * configure.ac: Probe for `help2man'.
37112 * Makefile.in (builddir): New variable.
37113 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
37114 or otherwise add a few flags/options to it.
37115 (install-local): For every executable utility or script that is
37116 installed, invoke $(HELP2MAN) to install a manpage based on --help
37119 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
37120 that it doesn't prevent --help from working in build tree.
37122 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
37123 with `bug-grub@gnu.org'.
37124 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
37125 * util/update-grub.in (usage): New function.
37126 Implement proper argument check, with support for --help and --version
37127 (as well as existing -y).
37129 2008-02-09 Christian Franke <franke@computer.org>
37131 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
37132 avoid overwriting previous output.
37133 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
37135 2008-02-09 Robert Millan <rmh@aybabtu.com>
37137 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
37140 2008-02-09 Robert Millan <rmh@aybabtu.com>
37142 * commands/sleep.c: New file.
37143 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
37144 (sleep_mod_SOURCES): New variable.
37145 (sleep_mod_CFLAGS): Likewise.
37146 (sleep_mod_LDFLAGS): Likewise.
37148 2008-02-09 Robert Millan <rmh@aybabtu.com>
37150 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
37151 situations in which we can deduce the RAID size and the superblock
37154 2008-02-09 Robert Millan <rmh@aybabtu.com>
37156 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
37157 and return a grub_diskmemberlist_t composed of LVM physical volumes.
37158 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
37160 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
37161 and return a grub_diskmemberlist_t composed of physical array members.
37162 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
37164 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
37166 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
37167 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
37168 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
37170 * util/grub-probe.c (probe): Move partmap probing code from here ...
37171 (probe_partmap): ... to here.
37172 (probe): Use probe_partmap() once for the disk we're probing, and
37173 additionally, when such disk contains a memberlist() struct member,
37174 once for each disk that is contained in the structure returned by
37177 2008-02-09 Robert Millan <rmh@aybabtu.com>
37179 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
37180 environment variable to 'all' in order to obtain debug output from
37182 * util/i386/pc/grub-setup.c (main): Likewise.
37184 2008-02-08 Robert Millan <rmh@aybabtu.com>
37186 * disk/raid.c (grub_raid_scan_device): Check for
37187 `array->device[sb.this_disk.number]' rather than for
37188 `array->device[sb.this_disk.number]->name', since the latter is not
37189 guaranteed to be accessible.
37191 2008-02-08 Robert Millan <rmh@aybabtu.com>
37193 * disk/raid.c: Update copyright.
37194 * fs/cpio.c: Likewise.
37195 * include/grub/raid.h: Likewise.
37196 * loader/i386/pc/multiboot.c: Likewise.
37197 * util/hostfs.c: Likewise.
37199 2008-02-08 Robert Millan <rmh@aybabtu.com>
37201 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
37202 to a grub_disk_t array.
37203 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
37205 (grub_raid_scan_device): Replace `device[x].name' accesses with
37206 `device[x]->name'. Simplify initialization of `array->device[x]'.
37208 2008-02-08 Robert Millan <rmh@aybabtu.com>
37210 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
37211 grub_dprintf() calls.
37212 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
37215 2008-02-07 Christian Franke <franke@computer.org>
37217 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
37218 instead of fseek and ftell to support large files.
37219 (grub_hostfs_read): Likewise.
37221 2008-02-07 Robert Millan <rmh@aybabtu.com>
37223 Patch from Jeroen Dekkers.
37224 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
37225 failure, since successfully reading all array members might not be
37228 2008-02-06 Robert Millan <rmh@aybabtu.com>
37230 * util/grub-probe.c (probe): Simplify partmap probing (with the
37231 assumption that the first word up to the underscore equals to
37234 2008-02-06 Christian Franke <franke@computer.org>
37236 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
37237 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
37238 last block of a cpio or tar stream.
37239 Check for "TRAILER!!!" instead of any empty data
37240 block to detect last block of a cpio stream.
37241 (grub_cpio_dir): Fix constness of variable np.
37242 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
37243 cpio or tar trailer is detected. This fixes a crash
37244 on open of a non existing file.
37246 2008-02-05 Bean <bean123ch@gmail.com>
37248 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
37250 (grub_multiboot_load_elf64): Likewise.
37251 (grub_multiboot): Initialize mbi structure.
37253 * util/grub-fstest.c: Don't include unused header file script.h.
37255 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
37257 (grub_fstest_SOURCES): Likewise.
37259 2008-02-05 Robert Millan <rmh@aybabtu.com>
37261 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
37262 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
37263 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
37264 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
37266 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
37267 (translation_table): Replace hardcoded values with macros
37268 provided by `<grub/term.h>'.
37270 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
37271 (keyboard_map): Correct/add a few values, with macros provided
37272 by `<grub/term.h>'.
37273 (keyboard_map_shift): Zero values that don't differ from their
37274 `keyboard_map' equivalents.
37275 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
37276 Discard the second scan code that is always sent by Caps lock.
37277 Only use `keyboard_map_shift' when it provides a non-zero value,
37278 otherwise fallback to `keyboard_map'.
37280 2008-02-04 Bean <bean123ch@gmail.com>
37282 * Makefile.in (enable_grub_fstest): New variable.
37284 * conf/common.rmk (grub_fstest_init.lst): New rule.
37285 (grub_fstest_init.h): Likewise.
37286 (grub_fstest_init.c): Likewise.
37287 (util/grub-fstest.c_DEPENDENCIES): New variable.
37288 (grub_fstest_SOURCES): Likewise.
37290 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
37292 * util/grub-fstest.c: New file.
37294 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
37296 Make grub-setup handle a separate root device.
37298 * util/i386/pc/grub-setup.c (setup): Always open the root device,
37299 so that the root device can be compared with the destination
37301 When embedding the core image, if the root and destination devices
37302 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
37304 When not embedding, set ROOT_DRIVE to 0xFF.
37306 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
37308 Add support for having a grub directory in a different drive. This
37309 is still only the data handling part.
37311 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
37312 (codestart): Save %dh in GRUB_ROOT_DRIVE.
37313 (grub_root_drive): New variable.
37315 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
37316 instead of GRUB_BOOT_DRIVE to construct a device name. Set
37317 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
37320 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
37322 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
37324 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
37326 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
37327 is bogus, because PXE booting does not specify any drive
37330 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
37331 am not sure if this is really correct.
37333 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
37334 is always identical to the boot drive when booting from a CD.
37336 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
37338 (root_drive): New variable.
37339 (real_start): Unconditionally set %dh to ROOT_DRIVE.
37340 (setup_sectors): Push %dx right after popping it, because %dh will
37342 (copy_buffer): Restore %dx.
37344 2008-02-03 Robert Millan <rmh@aybabtu.com>
37346 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
37347 use `cdboot.img' for cdrom images.
37349 2008-02-03 Robert Millan <rmh@aybabtu.com>
37351 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
37352 only setup gfxterm when `font' command has succeeded.
37354 2008-02-03 Robert Millan <rmh@aybabtu.com>
37356 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
37357 (grub_rescue_cmd_multiboot_loader)
37358 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
37360 2008-02-03 Pavel Roskin <proski@gnu.org>
37362 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
37363 %edx and %esi from stack only after grub_gate_a20() is called.
37364 grub_gate_a20() clobbers %edx.
37366 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
37368 * configure.ac (AC_INIT): Bumped to 1.96.
37370 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
37371 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
37372 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
37373 video/readers/png.c.
37375 2008-02-03 Bean <bean123ch@gmail.com>
37377 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
37378 (cdboot_img_SOURCES): New variable.
37379 (cdboot_img_ASFLAGS): New variable.
37380 (cdboot_img_LDFLAGS): New variable.
37382 * boot/i386/pc/cdboot.S: New file.
37384 * disk/i386/pc/biosdisk.c (cd_start): New variable.
37385 (cd_count): Likewise.
37386 (grub_biosdisk_get_drive): Add support for cd device.
37387 (grub_biosdisk_call_hook): Likewise.
37388 (grub_biosdisk_iterate): Likewise.
37389 (grub_biosdisk_open): Likewise.
37390 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
37391 (grub_biosdisk_rw): Support reading from cd device.
37392 (GRUB_MOD_INIT): Iterate cd devices.
37394 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
37395 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
37396 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
37398 * kern/i386/pc/init.c (make_install_device): Check for cd device.
37400 2008-02-02 Robert Millan <rmh@aybabtu.com>
37402 * commands/read.c: New file.
37403 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
37404 (read_mod_SOURCES): New variable.
37405 (read_mod_CFLAGS): Likewise.
37406 (read_mod_LDFLAGS): Likewise.
37408 2008-02-02 Robert Millan <rmh@aybabtu.com>
37410 * normal/main.c (grub_normal_execute): Check for `menu->size' when
37411 determining whether menu has to be displayed.
37413 2008-02-02 Marco Gerards <marco@gnu.org>
37415 * bus/pci.c: New file.
37417 * include/grub/pci.h: Likewise.
37419 * include/grub/i386/pc/pci.h: Likewise.
37421 * commands/lspci.c: Likewise.
37423 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
37425 (pci_mod_SOURCES): New variable.
37426 (pci_mod_CFLAGS): Likewise.
37427 (pci_mod_LDFLAGS): Likewise.
37428 (lspci_mod_SOURCES): Likewise.
37429 (lspci_mod_CFLAGS): Likewise.
37430 (lspci_mod_LDFLAGS): Likewise.
37432 2008-02-02 Bean <bean123ch@gmail.com>
37434 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
37435 (grub_ufs_get_file_block): Fix indirect block calculation problem.
37437 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
37438 (grub_xfs_btree_node): New structure.
37439 (grub_xfs_btree_root): New structure.
37440 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
37441 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
37442 (GRUB_XFS_EXTENT_BLOCK): Likewise.
37443 (GRUB_XFS_EXTENT_SIZE): Likewise.
37444 (grub_xfs_read_block): Support btree format type.
37445 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
37446 Use directory block as basic unit.
37448 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
37450 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
37451 __attribute__ ((__regparm__ (1))).
37453 2008-02-01 Robert Millan <rmh@aybabtu.com>
37455 Correct a mistake in previous commit.
37457 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
37459 (normal/command.c_DEPENDENCIES): New variable.
37461 2008-02-01 Robert Millan <rmh@aybabtu.com>
37463 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
37465 (normal/command.c_DEPENDENCIES): New variable.
37466 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
37467 * conf/i386-ieee1275.rmk: Likewise.
37468 * conf/i386-linuxbios.rmk: Likewise.
37469 * conf/i386-pc.rmk: Likewise.
37470 * conf/sparc64-ieee1275.rmk: Likewise.
37471 * conf/powerpc-ieee1275.rmk: Likewise.
37472 (grub_emu_SOURCES): Add `fs/fshelp.c'.
37474 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
37476 2008-02-01 Robert Millan <rmh@aybabtu.com>
37478 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
37479 call at beginning of function.
37481 2008-01-31 Pavel Roskin <proski@gnu.org>
37483 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
37484 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
37485 (grub_mkrescue_SOURCES): Likewise.
37486 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
37488 2008-01-30 Robert Millan <rmh@aybabtu.com>
37490 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
37491 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
37492 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
37493 (grub_probe_SOURCES): ... to here.
37495 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
37496 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
37497 * conf/i386-ieee1275.rmk: Likewise.
37498 * conf/i386-linuxbios.rmk: Likewise.
37499 * conf/powerpc-ieee1275.rmk: Likewise.
37501 2008-01-30 Tristan Gingold <gingold@free.fr>
37503 * kern/rescue.c: Silently accept empty lines.
37505 2008-01-29 Bean <bean123ch@gmail.com>
37507 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
37508 (real_code_2): Code cleanup and change comment style.
37509 (move_memory): Avoid using 32-bit address mode.
37511 2008-01-29 Bean <bean123ch@gmail.com>
37513 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
37514 (png_mod_SOURCES): New variable.
37515 (png_mod_CFLAGS): Likewise.
37516 (png_mod_LDFLAGS): Likewise.
37518 * video/readers/png.c: New file.
37520 2008-01-28 Robert Millan <rmh@aybabtu.com>
37522 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
37523 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
37524 `ifndef GRUB_MOD_GAP' hack.
37525 * util/elf/grub-mkimage.c (add_segments): Likewise.
37527 2008-01-27 Robert Millan <rmh@aybabtu.com>
37529 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
37530 `GRUB_MOD_GAP' for platforms in which it's not defined.
37531 * util/elf/grub-mkimage.c (add_segments): Likewise.
37533 2008-01-27 Robert Millan <rmh@aybabtu.com>
37535 Get grub-emu to build again (including parallel builds).
37537 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
37539 (util/grub-emu.c_DEPENDENCIES): ... this, ...
37540 (normal/execute.c_DEPENDENCIES): ... this, ...
37541 (grub-emu_DEPENDENCIES): ... and this.
37543 * conf/i386-efi.rmk: Likewise.
37544 * conf/i386-linuxbios.rmk: Likewise.
37545 * conf/i386-ieee1275.rmk: Likewise.
37546 * conf/powerpc-ieee1275.rmk: Likewise.
37547 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
37549 2008-01-27 Robert Millan <rmh@aybabtu.com>
37551 * NEWS: Add a few items.
37553 2008-01-27 Robert Millan <rmh@aybabtu.com>
37555 Fix parallel builds with grub-emu. Based on earlier commit for
37556 grub-probe and grub-setup.
37558 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
37559 (util/grub-emu.c_DEPENDENCIES): ... this.
37560 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
37561 (util/grub-emu.c_DEPENDENCIES): ... this.
37562 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
37563 (util/grub-emu.c_DEPENDENCIES): ... this.
37564 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
37565 (util/grub-emu.c_DEPENDENCIES): ... this.
37566 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
37567 (util/grub-emu.c_DEPENDENCIES): ... this.
37569 2008-01-27 Pavel Roskin <proski@gnu.org>
37571 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
37572 to create a gap between _end and the modules added to the image
37573 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
37574 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
37575 * util/elf/grub-mkimage.c (add_segments): Likewise.
37577 2008-01-26 Pavel Roskin <proski@gnu.org>
37579 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
37580 just return an error.
37582 2008-01-26 Bean <bean123ch@gmail.com>
37584 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
37585 (grub_reiserfs_get_item): Save offset of the next item.
37586 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
37588 2008-01-25 Robert Millan <rmh@aybabtu.com>
37590 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
37591 make all filesystem sources appear together (possibly fixing omissions
37593 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
37594 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37595 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
37596 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37598 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
37600 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
37601 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
37602 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
37603 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
37605 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
37606 (probe): Add a sanity check to make sure of our ability to read
37607 requested files when probing for filesystem type.
37609 * genmk.rb: Update copyright year (2007).
37611 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
37612 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
37613 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
37614 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
37615 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
37616 : Remove function prototypes.
37618 2008-01-25 Robert Millan <rmh@aybabtu.com>
37620 Revert my previous commits (based on wrong assumption of how grub_errno
37623 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
37624 * kern/file.c (grub_file_open): Likewise.
37626 2008-01-24 Pavel Roskin <proski@gnu.org>
37628 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
37629 that hang if GRUB tries to setup colors.
37630 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
37631 colors for firmwares that don't support it.
37632 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
37633 Recognize Open Hack'Ware, set flags to work around its
37636 2008-01-24 Robert Millan <rmh@aybabtu.com>
37638 * kern/file.c (grub_file_open): Do not account previous failures of
37639 unrelated functions when grub_errno is checked for.
37640 Reported by Oleg Strikov.
37642 2008-01-24 Bean <bean123ch@gmail.com>
37644 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
37645 (grub_ufs_sblock): New member volume name.
37646 (grub_ufs_find_file): Fix string copy bug.
37647 (grub_ufs_label): Implement this function properly.
37649 * fs/hfs.c (grub_hfs_cnid_type): New enum.
37650 (grub_hfs_iterate_records): Use the correct file number for extents
37651 and catalog file. Fix problem in next index calculation.
37652 (grub_hfs_find_node): Replace recursive function call with loop.
37653 (grub_hfs_iterate_dir): Replace recursive function call with loop.
37655 2008-01-23 Robert Millan <rmh@aybabtu.com>
37657 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
37658 `<grub/symbol.h>' and `<grub/multiboot.h>'.
37659 (grub_multiboot2_real_boot): New function prototype.
37661 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
37662 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
37664 * kern/i386/ieee1275/init.c (grub_os_area_addr)
37665 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
37667 2008-01-23 Robert Millan <rmh@aybabtu.com>
37669 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
37670 #ifdef'ed out grub_printf().
37672 2008-01-23 Robert Millan <rmh@aybabtu.com>
37674 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
37675 grub_dprintf calls, since they make "debug=all" mode unusable.
37676 (grub_console_checkkey): Likewise.
37678 2008-01-23 Robert Millan <rmh@aybabtu.com>
37680 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
37681 `term/i386/pc/at_keyboard.c'.
37682 (pkglib_MODULES): Add `serial.mod'.
37683 (serial_mod_SOURCES): New variable.
37684 (serial_mod_CFLAGS): Likewise.
37685 (serial_mod_LDFLAGS): Likewise.
37687 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
37688 `<grub/powerpc/ieee1275/console.h>'.
37689 (grub_keyboard_controller_init): New function prototype.
37690 (grub_console_checkkey): Likewise.
37691 (grub_console_getkey): Likewise.
37693 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
37696 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
37697 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
37699 2008-01-23 Robert Millan <rmh@aybabtu.com>
37701 * kern/i386/pc/init.c (make_install_device): When memdisk image is
37702 present, "(memdisk)/boot/grub" becomes the default prefix.
37704 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
37705 a memdisk tarball with all the modules. Add --overlay=DIR option that
37706 allows users to overlay additional files into the image.
37708 2008-01-23 Robert Millan <rmh@aybabtu.com>
37710 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
37711 and `machine/memory.h'.
37712 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
37713 (_multiboot_mod_SOURCES): New variable.
37714 (_multiboot_mod_CFLAGS): Likewise.
37715 (_multiboot_mod_LDFLAGS): Likewise.
37716 (multiboot_mod_SOURCES): Likewise.
37717 (multiboot_mod_CFLAGS): Likewise.
37718 (multiboot_mod_LDFLAGS): Likewise.
37720 * include/grub/i386/ieee1275/loader.h: New file.
37722 * include/grub/i386/ieee1275/machine.h: Likewise.
37724 * include/grub/i386/ieee1275/memory.h: Likewise.
37726 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
37727 variable declaration.
37728 (grub_os_area_size): Likewise.
37730 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
37731 (grub_lower_mem, grub_upper_mem): New variables.
37732 (grub_stop_floppy): New function (just to make
37733 grub_multiboot2_real_boot() happy).
37735 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
37736 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
37737 (grub_stop): New function.
37738 Include `"../realmode.S"' and `"../loader.S"'.
37740 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
37741 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
37743 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
37744 rely on grub_multiboot2_real_boot() for final boot.
37746 2008-01-22 Robert Millan <rmh@aybabtu.com>
37748 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
37749 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
37750 device that doesn't look like an SD card.
37751 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
37752 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
37753 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
37754 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
37757 2008-01-22 Robert Millan <rmh@aybabtu.com>
37759 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
37760 avoid claiming over our own code.
37762 2008-01-22 Bean <bean123ch@gmail.com>
37764 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
37765 (jpeg_mod_SOURCES): New variable.
37766 (jpeg_mod_CFLAGS): Likewise.
37767 (jpeg_mod_LDFLAGS): Likewise.
37769 * video/readers/jpeg.c : New file.
37771 2008-01-22 Bean <bean123ch@gmail.com>
37773 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
37774 there are no more items.
37776 2008-01-21 Robert Millan <rmh@aybabtu.com>
37778 * kern/mm.c (grub_mm_init_region): Improve debug message.
37780 2008-01-21 Robert Millan <rmh@aybabtu.com>
37782 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
37783 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
37785 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
37787 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
37788 Indicates start of upper memory.
37789 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
37790 (generate_image): Abort when image size is big enough to corrupt
37793 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
37794 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
37795 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
37796 instead of hardcoding 0xA0000.
37797 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
37798 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
37799 instead of hardcoding 0xA0000.
37801 2008-01-21 Robert Millan <rmh@aybabtu.com>
37803 * disk/memdisk.c (memdisk_size): New variable.
37804 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
37806 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
37807 image to dynamic memory.
37808 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
37809 `memdisk_size'. Free memdisk block.
37811 2008-01-21 Robert Millan <rmh@aybabtu.com>
37813 Fix detection of very small filesystems (like tar).
37815 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
37816 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
37817 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
37818 a problem with this disk).
37820 2008-01-21 Robert Millan <rmh@aybabtu.com>
37822 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
37823 on grub_biosdisk_rw_standard() error.
37825 2008-01-21 Robert Millan <rmh@aybabtu.com>
37827 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
37829 * kern/elf.c: Likewise.
37830 * kern/ieee1275/ieee1275.c: Likewise.
37831 * kern/powerpc/ieee1275/openfw.c: Likewise.
37832 * term/ieee1275/ofconsole.c: Likewise.
37834 2008-01-21 Robert Millan <rmh@aybabtu.com>
37836 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
37838 * include/grub/kernel.h (grub_arch_memdisk_addr)
37839 (grub_arch_memdisk_size): Moved from here ...
37841 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
37842 (grub_arch_memdisk_size): ... to here.
37844 2008-01-21 Robert Millan <rmh@aybabtu.com>
37846 Mostly based on bugfix from Bean.
37848 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
37849 attribute with hook() parameter.
37850 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
37852 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
37853 attribute with hook() parameter.
37854 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
37857 2008-01-21 Robert Millan <rmh@aybabtu.com>
37859 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
37860 (pkglib_MODULES): Add `memdisk.mod'.
37861 (memdisk_mod_SOURCES): New variable.
37862 (memdisk_mod_CFLAGS): Likewise.
37863 (memdisk_mod_LDFLAGS): Likewise.
37865 * disk/memdisk.c: New file.
37867 * include/grub/disk.h (grub_disk_dev_id): Add
37868 `GRUB_DISK_DEVICE_MEMDISK_ID'.
37870 * include/grub/i386/pc/kernel.h
37871 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
37872 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
37873 (grub_kernel_image_size): New variable declaration.
37874 (grub_total_module_size): Likewise.
37875 (grub_memdisk_image_size): Likewise.
37877 * include/grub/i386/pc/memory.h
37878 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
37880 * include/grub/kernel.h: Include `<grub/symbol.h>'.
37881 (grub_arch_memdisk_addr): New variable declaration.
37882 (grub_arch_memdisk_size): Likewise.
37884 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
37885 (grub_arch_memdisk_size): Likewise.
37887 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
37888 (codestart): Replace hardcoded `0x100000' with
37889 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
37891 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
37892 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
37893 not NULL, append the contents of the file it refers to, at the end of
37894 the compressed kernel image. Initialize `grub_memdisk_image_size'
37895 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
37896 (options): Add "memdisk"|'m' option.
37897 (main): Parse --memdisk|-m option, and pass user-provided path as
37898 parameter to generate_image().
37900 2008-01-20 Robert Millan <rmh@aybabtu.com>
37902 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
37903 grub_dprintf() calls from here ...
37904 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
37906 2008-01-20 Robert Millan <rmh@aybabtu.com>
37908 Fix detection of "real mode" when /options/real-mode? doesn't exist.
37910 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
37912 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
37913 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
37914 `GRUB_IEEE1275_FLAG_REAL_MODE'.
37915 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
37917 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
37918 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
37920 2008-01-19 Robert Millan <rmh@aybabtu.com>
37922 Get rid of confusing function (superseded by
37923 `grub_ieee1275_get_integer_property')
37924 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
37926 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
37928 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
37929 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
37930 in native endianness from grub_ieee1275_get_integer_property().
37932 2008-01-19 Robert Millan <rmh@aybabtu.com>
37934 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
37935 command after "shut-down", since implementations differ on which
37936 the command for halt is.
37938 2008-01-19 Robert Millan <rmh@aybabtu.com>
37940 * include/grub/i386/linuxbios/console.h: Add header protection.
37941 (grub_keyboard_controller_init): New function prototype.
37942 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
37943 (KEYBOARD_COMMAND_READ): Likewise.
37944 (KEYBOARD_COMMAND_WRITE): Likewise.
37945 (KEYBOARD_SCANCODE_SET1): Likewise.
37946 (grub_keyboard_controller_write): New function.
37947 (grub_keyboard_controller_read): Likewise.
37948 (grub_keyboard_controller_init): Likewise.
37950 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
37951 (grub_console_init): On coreboot/LinuxBIOS, call
37952 grub_keyboard_controller_init().
37954 2008-01-19 Robert Millan <rmh@aybabtu.com>
37956 PowerPC changes provided by Pavel Roskin.
37958 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
37959 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
37960 don't rely on cmain() doing it.
37961 * kern/i386/ieee1275/startup.S (_start): Store %eax in
37962 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
37964 2008-01-16 Robert Millan <rmh@aybabtu.com>
37966 * include/grub/i386/linuxbios/memory.h
37967 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
37968 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
37969 receive `table_header' as argument. Instead, probe for it in the
37970 known memory ranges where it can be present.
37971 (grub_available_iterate): Do not pass a fixed `table_header' address
37972 to grub_linuxbios_table_iterate().
37974 2008-01-15 Robert Millan <rmh@aybabtu.com>
37976 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
37977 * conf/i386-ieee1275.rmk: New file.
37978 * include/grub/i386/ieee1275/console.h: Likewise.
37979 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
37980 * include/grub/i386/ieee1275/kernel.h: Likewise.
37981 * include/grub/i386/ieee1275/time.h: Likewise.
37982 * kern/i386/ieee1275/init.c: Likewise.
37983 * kern/i386/ieee1275/startup.S: Likewise.
37985 2008-01-15 Robert Millan <rmh@aybabtu.com>
37987 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
37988 when pointers are 32-bit (but still do set it to one when they are
37991 2008-01-15 Robert Millan <rmh@aybabtu.com>
37993 * include/grub/ieee1275/ieee1275.h
37994 (grub_ieee1275_get_integer_property): New function prototype.
37996 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
37997 (grub_ieee1275_get_integer_property): New function. Wraps around
37998 grub_ieee1275_get_property() to handle endianness.
38000 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
38001 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
38003 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
38004 (grub_map): Likewise.
38005 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
38007 2008-01-15 Bean <bean123ch@gmail.com>
38009 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
38010 (grub_script_execute_cmdline): Reset grub_errno.
38012 * normal/main.c (read_config_file): Reset grub_errno.
38014 * normal/parse.y (script_init): New.
38015 (script): Move function and menuentry here.
38017 (command): Add delimiter at the end of command.
38018 (commands): Adjust to match the new command.
38019 (commandblock): Remove grub_script_lexer_record_start.
38020 (menuentry): Add grub_script_lexer_record_start, use the new commands.
38021 (if): Use the new commands.
38023 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
38025 2008-01-15 Robert Millan <rmh@aybabtu.com>
38027 * normal/menu.c (run_menu): Move timeout message from here ...
38028 (print_timeout): ... to here.
38029 (run_menu): Use print_timeout() once during initial draw to print
38030 the whole message, and again in every clock tick to update only
38031 the number of seconds.
38033 2008-01-15 Robert Millan <rmh@aybabtu.com>
38035 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
38036 actual size of `available' from grub_ieee1275_get_property(), and
38037 restrict parsing to that bound.
38039 2008-01-15 Christian Franke <franke@computer.org>
38041 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
38042 (argp_program_version): Remove variable.
38043 (argp_program_bug_address): Likewise.
38044 (options): Convert from struct argp_option to struct option.
38045 (struct arguments): Remove.
38046 (parse_opt): Remove.
38047 (usage): New function.
38048 (main): Replace struct args members by simple variables.
38049 Replace argp_parse() by getopt_long().
38050 Add switch to evaluate options.
38051 Add missing "(...)" around root_dev in prefix string.
38053 2008-01-14 Robert Millan <rmh@aybabtu.com>
38055 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
38056 for grub_ieee1275_exit(), in order to improve portability.
38058 2008-01-14 Robert Millan <rmh@aybabtu.com>
38060 * util/grub.d/10_linux.in (prefix): Define.
38061 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
38063 2008-01-13 Pavel Roskin <proski@gnu.org>
38065 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
38066 grub_errno if no errors have been detected.
38068 2008-01-12 Robert Millan <rmh@aybabtu.com>
38070 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
38071 (grub_util_get_dev_abstraction): New function prototype.
38073 * util/getroot.c: Include `<grub/util/getroot.h>'
38074 (grub_util_get_grub_dev): Move detection of abstraction type to ...
38075 (grub_util_get_dev_abstraction): ... here (new function).
38077 * util/grub-probe.c: Convert PRINT_* to an enum. Add
38078 `PRINT_ABSTRACTION'.
38079 (probe): Probe for abstraction type when requested.
38080 (main): Understand `--target=abstraction'.
38082 * util/i386/efi/grub-install.in: Add abstraction module to core
38083 image when it is found to be necessary.
38084 * util/i386/pc/grub-install.in: Likewise.
38085 * util/powerpc/ieee1275/grub-install.in: Likewise.
38087 * util/update-grub_lib.in (font_path): Return system path without
38088 converting to GRUB path.
38089 * util/update-grub.in: Convert system path returned by font_path()
38090 to a GRUB path. Use `grub-probe -t abstraction' to determine what
38091 abstraction module is needed for loading fonts (if any). Export
38092 that as `GRUB_PRELOAD_MODULES'.
38093 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
38096 2008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
38098 Remove some unused code from reiserfs.
38100 * fs/reiserfs.c (struct grub_reiserfs_key)
38101 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
38102 (struct grub_reiserfs_node_body): Removed.
38103 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
38105 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
38107 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
38109 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
38111 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
38113 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
38115 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
38116 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
38117 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
38119 2008-01-10 Robert Millan <rmh@aybabtu.com>
38121 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
38122 Determines if a file is garbage left by packaging systems, etc.
38123 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
38124 for processing /etc/grub.d scripts.
38125 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
38126 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
38127 as a condition for processing Linux images.
38129 2008-01-10 Pavel Roskin <proski@gnu.org>
38131 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
38132 to compile reiserfs.c on PowerPC.
38134 2008-01-10 Robert Millan <rmh@aybabtu.com>
38136 * kern/device.c (grub_device_iterate): Do not abort device iteration
38137 when one of the devices cannot be opened.
38138 * kern/disk.c (grub_disk_open): Do not account previous failures of
38139 unrelated functions when grub_errno is checked for.
38141 2008-01-08 Robert Millan <rmh@aybabtu.com>
38143 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
38144 `! grub_linux_is_bzimage', change order of address comparison to make
38145 it more intuitive, and improve "too big zImage" error message.
38147 2008-01-08 Robert Millan <rmh@aybabtu.com>
38149 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
38150 `$(update-grub_DATA)'.
38151 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
38154 2008-01-07 Robert Millan <rmh@aybabtu.com>
38156 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
38157 which instruction is modified by grub-setup during installation
38158 (since it wasn't obvious by only looking at this file).
38160 2008-01-07 Robert Millan <rmh@aybabtu.com>
38162 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
38163 listing actual TODO items.
38165 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
38167 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
38169 (grub_reiserfs_get_key_offset): Likewise.
38170 (grub_reiserfs_set_key_offset): Likewise.
38171 (grub_reiserfs_set_key_type): Likewise.
38172 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
38174 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
38175 better to remove the bitfield version completely.
38177 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
38179 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
38180 allocated from the heap, due to the fshelp implementation.
38181 (grub_reiserfs_dir): Free NODE, due to the same reason.
38183 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
38185 Mostly from Vincent Pelletier:
38187 * fs/reiserfs.c: New file.
38189 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
38190 (reiserfs_mod_SOURCES): New variable.
38191 (reiserfs_mod_CFLAGS): Likewise.
38192 (reiserfs_mod_LDFLAGS): Likewise.
38194 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
38195 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
38196 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
38199 2008-01-06 Robert Millan <rmh@aybabtu.com>
38201 * normal/color.c: Remove `<grub/env.h>'.
38203 2008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
38205 * include/grub/normal.h: Include <grub/env.h>.
38207 2008-01-05 Robert Millan <rmh@aybabtu.com>
38209 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
38210 usage example with `(hd0,1)'.
38211 Reported by Samuel Thibault.
38213 2008-01-05 Robert Millan <rmh@aybabtu.com>
38215 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
38216 (grub_linux_boot_zimage): Rename to ...
38217 (grub_linux_boot): ... this.
38218 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
38219 (grub_linux_boot_zimage): Conditionalize zImage copy.
38221 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
38222 (grub_linux_boot_bzimage): Remove prototype.
38223 (grub_linux_boot_zimage): Rename to ...
38224 (grub_linux_boot): ... this.
38226 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
38227 (grub_linux_boot): Remove function.
38229 2008-01-05 Robert Millan <rmh@aybabtu.com>
38231 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
38232 (grub_env_write_color_highlight): Likewise.
38233 (grub_wait_after_message): Likewise.
38235 * normal/color.c: New file.
38237 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
38238 (normal_mod_DEPENDENCIES): Likewise.
38240 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
38241 (normal_mod_DEPENDENCIES): Likewise.
38243 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
38244 (normal_mod_DEPENDENCIES): Likewise.
38246 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
38247 (normal_mod_DEPENDENCIES): Likewise.
38249 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
38250 for waiting after a message is printed.
38251 * normal/main.c (read_config_file): Likewise.
38252 (grub_normal_init): Register grub_env_write_color_normal() and
38253 grub_env_write_color_highlight() hooks. Mark `color_normal' and
38254 `color_highlight' variables as global.
38256 * normal/menu.c (grub_wait_after_message): New function.
38257 (grub_color_menu_normal): New variable. Replaces ...
38258 (GRUB_COLOR_MENU_NORMAL): ... this macro.
38259 (grub_color_menu_highlight): New variable. Replaces ...
38260 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
38261 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
38262 `GRUB_TERM_COLOR_STANDARD'.
38263 (print_message): Use `grub_setcolorstate' to reload colors. Rename
38264 `normal_code' and `highlight_code' to `old_color_normal' and
38265 `old_color_highlight', respectively.
38266 (grub_menu_init_page): Update colors when drawing the menu, based on
38267 `menu_color_normal' and `menu_color_highlight' variables.
38268 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
38269 a message is printed.
38271 2008-01-05 Robert Millan <rmh@aybabtu.com>
38273 * kern/env.c (grub_env_context_open): Propagate hooks for global
38274 variables to new context.
38276 * kern/main.c (grub_set_root_dev): Export `root' variable.
38278 2008-01-05 Robert Millan <rmh@aybabtu.com>
38280 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
38281 discs unconditionally, since udev and others have options to provide
38284 2008-01-05 Robert Millan <rmh@aybabtu.com>
38286 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
38288 2008-01-04 Christian Franke <franke@computer.org>
38290 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
38293 2008-01-03 Pavel Roskin <proski@gnu.org>
38295 * kern/i386/linuxbios/init.c: Put "void" to all function
38296 declarations with no arguments.
38297 * kern/powerpc/ieee1275/init.c: Likewise.
38298 * term/i386/pc/at_keyboard.c: Likewise.
38299 * term/i386/pc/vga_text.c: Likewise.
38300 * util/grub-mkdevicemap.c: Likewise.
38302 2008-01-02 Robert Millan <rmh@aybabtu.com>
38304 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
38305 message when loaded image is out of bounds.
38306 (grub_multiboot_load_elf64): Likewise.
38308 2008-01-02 Pavel Roskin <proski@gnu.org>
38310 * util/grub.d/10_linux.in: Try version without ".old" when
38311 looking for initrd. It's better to use initrd from the newer
38312 kernel of the same version than no initrd at all.
38314 2008-01-01 Robert Millan <rmh@aybabtu.com>
38316 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
38318 2008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
38320 * include/grub/video.h: Added grub_video_unmap_color and
38321 grub_video_get_active_render_target.
38322 (grub_video_adapter): Added unmap_color and get_active_render_target.
38324 * video/video.c: Added grub_video_unmap_color and
38325 grub_video_get_active_render_target.
38326 (grub_video_get_info): Changed method to accept NULL pointer as an
38327 argument to allow detection of active video adapter.
38329 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
38330 grub_video_vbe_unmap_color_int.
38331 Added grub_video_vbe_unmap_color and
38332 grub_video_vbe_get_active_render_target.
38333 (grub_video_vbe_adapter): Added unmap_color and
38334 get_active_render_target.
38336 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
38337 with grub_video_vbe_unmap_color_int.
38339 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
38340 (DEFAULT_NORMAL_COLOR): Likewise.
38341 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
38342 (DEFAULT_FG_COLOR): Removed.
38343 (DEFAULT_BG_COLOR): Likewise.
38344 (DEFAULT_CURSOR_COLOR): Changed value.
38345 (grub_virtual_screen): Added standard_color_setting,
38346 normal_color_setting, highlight_color_setting and term_color.
38347 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
38348 (bitmap_width): Added.
38349 (bitmap_height): Likewise.
38350 (bitmap): Likewise.
38351 (set_term_color): Likewise.
38352 (grub_virtual_screen_setup): Changed to use new terminal coloring
38354 (grub_gfxterm_init): Added init for bitmap.
38355 (grub_gfxterm_fini): Added destroy for bitmap.
38356 (redraw_screen_rect): Updated to use background bitmap and new
38358 (scroll_up): Added optimization for case when there is no bitmap.
38359 (grub_gfxterm_cls): Fixed to use correct background color.
38360 (grub_virtual_screen_setcolorstate): Changed to use new terminal
38362 (grub_virtual_screen_setcolor): Likewise.
38363 (grub_virtual_screen_getcolor): Added.
38364 (grub_gfxterm_background_image_cmd): Likewise.
38365 (grub_video_term): Added setcolor and getcolor.
38366 (MOD_INIT): Added registration of background_image command.
38367 (MOD_TERM): Added unregistration for background_image command.
38369 2007-12-30 Pavel Roskin <proski@gnu.org>
38371 * loader/multiboot_loader.c: Fix multiboot command
38372 unregistration. Fix all typos in the word "multiboot".
38374 2007-12-29 Pavel Roskin <proski@gnu.org>
38376 * util/grub.d/10_linux.in: Refactor search for initrd. Add
38377 support for initrd names used in Fedora.
38379 2007-12-26 Bean <bean123ch@gmail.com>
38381 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
38382 (cpio_mod_SOURCES): New variable.
38383 (cpio_mod_CFLAGS): Likewise.
38384 (cpio_mod_LDFLAGS): Likewise.
38386 * fs/cpio.c: New file.
38388 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
38390 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
38392 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
38394 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38396 2007-12-25 Robert Millan <rmh@aybabtu.com>
38398 * include/grub/term.h (struct grub_term): Add `getcolor' function.
38399 (grub_getcolor): New function.
38401 * kern/term.c (grub_getcolor): New function.
38402 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
38403 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
38404 (print_entry): Set normal and highlight colors to
38405 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
38406 respectively, before printing and restore them to old
38408 (grub_menu_init_page): Likewise. Fill an additional colored space
38409 that would otherwise be left blank.
38411 * term/efi/console.c (grub_console_getcolor): New function.
38412 (struct grub_console_term.getcolor): New variable.
38413 * term/i386/pc/console.c (grub_console_getcolor): New function.
38414 (struct grub_console_term.getcolor): New variable.
38415 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
38416 (struct grub_console_term.getcolor): New variable.
38418 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
38419 (struct grub_console_term.setcolor): Remove variable.
38420 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
38421 (struct grub_console_term.setcolor): Remove variable.
38422 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
38423 (struct grub_console_term.setcolor): Remove variable.
38424 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
38425 (struct grub_console_term.setcolor): Remove variable.
38427 2007-12-25 Robert Millan <rmh@aybabtu.com>
38429 * configure.ac: Search for possible unifont.hex locations, and
38430 define UNIFONT_HEX if found.
38432 * Makefile.in (UNIFONT_HEX): Define variable.
38433 (DATA): Rename to ...
38434 (PKGLIB): ... this. Update all users.
38435 (PKGDATA): New variable.
38436 (pkgdata_IMAGES): Rename to ...
38437 (pkglib_IMAGES): ... this. Update all users.
38438 (pkgdata_MODULES): Rename to ...
38439 (pkglib_MODULES): ... this. Update all users.
38440 (pkgdata_PROGRAMS): Rename to ...
38441 (pkglib_PROGRAMS): ... this. Update all users.
38442 (pkgdata_DATA): Rename to ...
38443 (pkglib_DATA): ... this. Update all users.
38444 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
38445 (unicode.pff, ascii.pff): New rules.
38446 (all-local): Add `$(PKGDATA)' dependency.
38447 (install-local): Process `$(PKGDATA)'.
38449 * util/update-grub_lib.in (font_path): Search for *.pff files in
38450 a few more locations, including `${pkgdata}'.
38452 2007-12-23 Robert Millan <rmh@aybabtu.com>
38454 Patch from Bean <bean123ch@gmail.com>:
38455 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
38458 2007-12-21 Bean <bean123ch@gmail.com>
38460 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
38461 (ntfscomp_mod_SOURCES): New variable.
38462 (ntfscomp_mod_CFLAGS): Likewise.
38463 (ntfscomp_mod_LDFLAGS): Likewise.
38465 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
38466 (grub_probe_SOURCES): Likewise.
38467 (grub_emu_SOURCES): Likewise.
38469 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
38470 (grub_emu_SOURCES): Likewise.
38472 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
38473 (grub_emu_SOURCES): Likewise.
38475 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
38476 (grub_emu_SOURCES): Likewise.
38478 * fs/ntfs.c (grub_ntfscomp_func): New variable.
38479 (read_run_list): Renamed to grub_ntfs_read_run_list.
38480 (decomp_nextvcn): Moved to ntfscomp.c.
38481 (decomp_getch): Likewise.
38482 (decomp_get16): Likewise.
38483 (decomp_block): Likewise.
38484 (read_block): Likewise.
38485 (read_data): Partially moved to ntfscomp.c.
38486 (fixup): Change unsigned to grub_uint16_t.
38487 (read_mft): Change unsigned long to grub_uint32_t.
38488 (read_attr): Likewise.
38489 (read_data): Likewise.
38490 (read_run_data): Likewise.
38491 (read_run_list): Likewise.
38492 (read_mft): Likewise.
38494 * fs/ntfscomp.c: New file.
38496 * include/grub/ntfs.h: New file.
38498 2007-12-16 Robert Millan <rmh@aybabtu.com>
38500 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
38501 IDE disk check, since Linux is known to support 20 IDE disks.
38502 Reported by Colin Watson.
38504 2007-12-15 Bean <bean123ch@gmail.com>
38506 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
38507 (lnxboot_img_SOURCES): New variable.
38508 (lnxboot_img_ASFLAGS): Likewise.
38509 (lnxboot_img_LDFLAGS): Likewise.
38511 * boot/i386/pc/lnxboot.S: New file.
38513 2007-11-24 Pavel Roskin <proski@gnu.org>
38515 * configure.ac: Test if '--build-id=none' is supported by the
38516 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
38517 objcopy to generate incorrect binary files (binutils
38518 2.17.50.0.18-1 as shipped by Fedora 8).
38519 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
38520 linking, so that build ID doesn't break the test.
38522 2007-11-24 Pavel Roskin <proski@gnu.org>
38524 * include/grub/i386/time.h: use "void" in the argument list
38525 of grub_cpu_idle().
38526 * include/grub/powerpc/time.h: Likewise.
38527 * include/grub/sparc64/time.h: Likewise.
38529 2007-11-18 Christian Franke <franke@computer.org>
38531 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
38532 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
38533 This fixes the problem that function keys did not work in grub-emu.
38535 2007-11-18 Christian Franke <franke@computer.org>
38537 * disk/host.c (grub_host_open): Remove attribute unused from
38538 name parameter. Add check for "host". This fixes the problem
38539 that grub-emu does not find partitions.
38541 2007-11-18 Christian Franke <franke@computer.org>
38543 * util/hostfs.c (is_dir): New function.
38544 (grub_hostfs_dir): Handle missing dirent.d_type case.
38545 (grub_hostfs_read): Add missing fseek().
38546 (grub_hostfs_label): Clear label pointer. This fixes a crash
38547 of grub-emu on "ls (host)".
38549 2007-11-18 Christian Franke <franke@computer.org>
38551 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
38552 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
38553 to 64 bit boundary by default.
38555 2007-11-18 Bean <bean123ch@gmail.com>
38557 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
38558 (hexdump_mod_SOURCES): New variable.
38559 (hexdump_mod_CFLAGS): Likewise.
38560 (hexdump_mod_LDFLAGS): Likewise.
38562 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
38564 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
38566 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
38568 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
38570 * include/grub/hexdump.h: New file.
38572 * commands/hexdump.c: New file.
38574 2007-11-10 Robert Millan <rmh@aybabtu.com>
38576 * commands/i386/pc/play.c (beep_off): Switch order of arguments
38577 in grub_outb() calls.
38578 (beep_on): Likewise.
38580 2007-11-10 Christian Franke <franke@computer.org>
38582 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
38583 (grub_menu_run): Likewise.
38585 2007-11-10 Robert Millan <rmh@aybabtu.com>
38587 * include/grub/i386/efi/machine.h: New file.
38588 * include/grub/i386/linuxbios/machine.h: Likewise.
38589 * include/grub/i386/pc/machine.h: Likewise.
38590 * include/grub/powerpc/ieee1275/machine.h: Likewise.
38591 * include/grub/sparc64/ieee1275/machine.h: Likewise.
38593 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
38594 (serial_hw_io_addr): New variable.
38595 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
38596 instead of `(unsigned short *) 0x400'.
38598 2007-11-10 Bean <bean123ch@gmail.com>
38600 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
38602 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
38604 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
38605 (vga_mod_SOURCES): Added.
38606 (vga_mod_CFLAGS): Likewise.
38607 (vga_mod_LDFLAGS): Likewise.
38609 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
38611 (set_map_mask): Likewise.
38612 (set_read_map): Likewise.
38613 (set_read_address): Likewise.
38614 (vga_font): Removed variable.
38615 (get_vga_glyph): Removed function.
38616 (invalidate_char): Likewise.
38617 (write_char): Changed to use grub_font_get_glyph() for font
38619 (grub_vga_putchar): Likewise.
38620 (grub_vga_getcharwidth): Likewise.
38622 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
38624 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
38626 (pxeboot_img_LDFLAGS): Likewise.
38627 (diskboot_img_LDFLAGS): Likewise.
38628 (kernel_img_LDFLAGS): Likewise.
38630 2007-11-06 Robert Millan <rmh@aybabtu.com>
38632 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
38633 in grub_outb() calls.
38634 (serial_hw_init): Likewise.
38636 2007-11-05 Robert Millan <rmh@aybabtu.com>
38638 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
38639 spaces. Skip non-regular files.
38641 2007-11-05 Robert Millan <rmh@aybabtu.com>
38643 * kern/disk.c (grub_disk_firmware_fini)
38644 (grub_disk_firmware_is_tainted): New variables.
38646 * include/grub/disk.h (grub_disk_firmware_fini)
38647 (grub_disk_firmware_is_tainted): Likewise.
38649 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
38650 (grub_disk_biosdisk_fini): ... to here.
38651 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
38652 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
38653 is set. Register grub_disk_biosdisk_fini() in
38654 `grub_disk_firmware_fini'.
38656 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
38657 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
38658 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
38659 to finish existing firmware disk interface.
38661 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
38662 (ata_mod_SOURCES): New variable.
38663 (ata_mod_CFLAGS): Likewise.
38664 (ata_mod_LDFLAGS): Likewise.
38666 2007-11-05 Robert Millan <rmh@aybabtu.com>
38668 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
38669 (grub_ata_wait): Reimplement using grub_millisleep().
38671 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
38672 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
38674 2007-11-03 Marco Gerards <marco@gnu.org>
38676 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
38677 (CRTC_ADDR_PORT): New macro.
38678 (CRTC_DATA_PORT): Likewise.
38679 (CRTC_CURSOR): Likewise.
38680 (CRTC_CURSOR_ADDR_HIGH): Likewise.
38681 (CRTC_CURSOR_ADDR_LOW): Likewise.
38682 (update_cursor): New function.
38683 (grub_console_real_putchar): Call `update_cursor'.
38684 (grub_console_gotoxy): Likewise.
38685 (grub_console_cls): Set the default color when clearing the
38687 (grub_console_setcursor): Implemented.
38689 2007-11-03 Marco Gerards <marco@gnu.org>
38691 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
38693 (grub_ata_pio_write): Likewise.
38695 (grub_atapi_identify): Wait after issuing an ATA command.
38696 (grub_atapi_packet): Likewise.
38697 (grub_ata_identify): Likewise.
38698 (grub_ata_readwrite): Likewise.
38700 2007-11-03 Marco Gerards <marco@gnu.org>
38702 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
38703 (grub_ata_pio_write): Likewise.
38704 (grub_ata_readwrite): Use `grub_error', instead of
38705 returning `grub_errno'.
38707 2007-11-03 Marco Gerards <marco@gnu.org>
38709 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
38710 grub_ata_pio_write once for every single sector, instead of for
38713 2007-10-31 Robert Millan <rmh@aybabtu.com>
38715 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
38717 * conf/i386-linuxbios.rmk: New file.
38719 * kern/i386/pc/hardware.c: Likewise.
38720 * term/i386/pc/at_keyboard.c: Likewise.
38721 * term/i386/pc/vga_text.c: Likewise.
38723 * include/grub/i386/linuxbios/boot.h: Likewise.
38724 * include/grub/i386/linuxbios/console.h: Likewise.
38725 * include/grub/i386/linuxbios/init.h: Likewise.
38726 * include/grub/i386/linuxbios/kernel.h: Likewise.
38727 * include/grub/i386/linuxbios/loader.h: Likewise.
38728 * include/grub/i386/linuxbios/memory.h: Likewise.
38729 * include/grub/i386/linuxbios/serial.h: Likewise.
38730 * include/grub/i386/linuxbios/time.h: Likewise.
38732 * kern/i386/linuxbios/init.c: Likewise.
38733 * kern/i386/linuxbios/startup.S: Likewise.
38734 * kern/i386/linuxbios/table.c: Likewise.
38736 2007-10-31 Marco Gerards <marco@gnu.org>
38738 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
38739 (ata_mod_SOURCES): New variable.
38740 (ata_mod_CFLAGS): Likewise.
38741 (ata_mod_LDFLAGS): Likewise.
38743 * disk/ata.c: New file.
38745 * include/grub/disk.h (grub_disk_dev_id): Add
38746 `GRUB_DISK_DEV_ATA_ID'.
38748 2007-10-31 Robert Millan <rmh@aybabtu.com>
38750 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
38751 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
38753 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
38754 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
38756 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
38759 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
38761 2007-10-27 Robert Millan <rmh@aybabtu.com>
38763 * include/grub/types.h (ULONG_MAX): Define macro.
38765 2007-10-22 Robert Millan <rmh@aybabtu.com>
38767 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
38769 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
38771 2007-10-22 Robert Millan <rmh@aybabtu.com>
38773 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
38774 (pkgdata_MODULES): Add `biosdisk.mod'.
38775 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
38778 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
38779 (grub_biosdisk_init): Replace with ...
38780 (GRUB_MOD_INIT(biosdisk)): ... this.
38781 (grub_biosdisk_fini): Replace with ...
38782 (GRUB_MOD_FINI(biosdisk)): ... this.
38784 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
38785 (grub_machine_init): Remove call to grub_biosdisk_init().
38786 (grub_machine_fini): Remove call to grub_machine_fini().
38788 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
38790 2007-10-22 Robert Millan <rmh@aybabtu.com>
38792 * include/grub/time.h: New file.
38793 * include/grub/i386/time.h: Likewise.
38794 * include/grub/powerpc/time.h: Likewise.
38795 * include/grub/sparc64/time.h: Likewise.
38797 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
38799 (KERNEL_MACHINE_TIME_HEADER): ... this.
38800 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
38802 (KERNEL_MACHINE_TIME_HEADER): ... this.
38803 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
38805 (KERNEL_MACHINE_TIME_HEADER): ... this.
38807 * kern/i386/efi/init.c: Include `<grub/time.h>'.
38808 (grub_millisleep): New function.
38809 * kern/i386/pc/init.c: Include `<grub/time.h>'.
38810 (grub_millisleep): New function.
38811 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
38812 Remove `grub/machine/time.h' include.
38813 (grub_millisleep): New function.
38814 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
38815 Remove `grub/machine/time.h' include.
38816 (grub_millisleep): New function.
38818 * include/grub/misc.h (grub_div_roundup): New function.
38820 * kern/misc.c: Include `<grub/time.h>'.
38821 (grub_millisleep_generic): New function.
38823 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
38825 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
38827 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
38828 `machine/time.h'. Add `time.h'.
38829 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
38831 2007-10-21 Robert Millan <rmh@aybabtu.com>
38833 * include/grub/misc.h (grub_max): New function.
38835 2007-10-21 Robert Millan <rmh@aybabtu.com>
38837 * util/misc.c (grub_util_info): Call fflush() before returning.
38839 2007-10-20 Robert Millan <rmh@aybabtu.com>
38841 * genmk.rb (Image): Copy `extra_flags' from here ...
38842 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
38844 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
38845 to `argc' and `args' arguments.
38847 2007-10-17 Robert Millan <rmh@aybabtu.com>
38849 * kern/i386/loader.S: New file.
38851 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
38852 * kern/i386/loader.S (grub_linux_prot_size)... to here.
38853 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
38854 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
38855 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
38856 * kern/i386/loader.S (grub_linux_real_addr)... to here.
38857 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
38858 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
38859 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
38860 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
38861 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
38862 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
38863 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
38864 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
38866 * kern/i386/realmode.S: New file.
38868 * kern/i386/pc/startup.S (protstack): Moved from here ...
38869 * kern/i386/realmode.S (protstack)... to here.
38870 * kern/i386/pc/startup.S (gdt): Moved from here ...
38871 * kern/i386/realmode.S (gdt)... to here.
38872 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
38873 * kern/i386/realmode.S (prot_to_real)... to here.
38875 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
38876 `kern/i386/realmode.S'.
38878 2007-10-17 Robert Millan <rmh@aybabtu.com>
38880 * include/grub/i386/loader.h: New file.
38882 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
38883 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
38884 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
38885 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
38886 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
38887 * include/grub/i386/loader.h (grub_linux_prot_size)
38888 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
38889 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
38890 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
38891 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
38893 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
38895 2007-10-15 Robert Millan <rmh@aybabtu.com>
38897 * normal/misc.c (grub_normal_print_device_info): Do not probe for
38898 filesystem when dev->disk is unset.
38899 Do probe for filesystem even when dev->disk->has_partitions is set.
38900 In case a filesystem is found, always report it.
38901 In case it isn't, if dev->disk->has_partitions is set, report that
38902 a partition table was found instead of reporting that no filesystem
38903 could be identified.
38905 2007-10-12 Robert Millan <rmh@aybabtu.com>
38907 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
38908 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
38910 * include/grub/types.h (grub_host_to_target16): New macro.
38911 (grub_host_to_target32): Likewise.
38912 (grub_host_to_target64): Likewise.
38913 (grub_target_to_host16): Likewise.
38914 (grub_target_to_host32): Likewise.
38915 (grub_target_to_host64): Likewise.
38917 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
38918 Renamed from to ...
38919 (GRUB_MOD_ALIGN): ...this. Update all users.
38921 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
38922 grub_host_to_target32.
38923 Replace grub_be_to_cpu32 with grub_target_to_host32.
38924 (load_modules): Likewise.
38925 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
38926 Replace grub_be_to_cpu32 with grub_target_to_host32.
38927 Replace grub_cpu_to_be16 with grub_host_to_target16.
38928 Replace grub_cpu_to_be32 grub_host_to_target32.
38930 2007-10-12 Robert Millan <rmh@aybabtu.com>
38932 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
38933 * util/elf/grub-mkimage.c: ... here.
38935 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
38936 `util/powerpc/ieee1275/grub-mkimage.c'.
38938 2007-10-07 Robert Millan <rmh@aybabtu.com>
38940 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
38941 and make it easier to figure out.
38942 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
38943 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
38944 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
38945 leave us with less than HEAP_MIN_SIZE total heap.
38946 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
38948 2007-10-03 Robert Millan <rmh@aybabtu.com>
38950 * include/grub/i386/io.h: New file.
38951 * commands/i386/pc/play.c (inb): Removed.
38953 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
38955 * term/i386/pc/serial.c (inb): Removed.
38957 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
38959 * term/i386/pc/vga.c (inb): Removed.
38961 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
38964 2007-10-02 Robert Millan <rmh@aybabtu.com>
38966 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
38967 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38968 Reported by Marcin Kurek.
38970 2007-09-07 Robert Millan <rmh@aybabtu.com>
38972 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
38973 SmartFirmware version updates (as released by Sven Luther), and avoid
38974 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
38975 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
38978 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
38980 From Hitoshi Ozeki:
38981 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
38982 when merging two regions.
38984 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
38986 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
38987 * normal/completion.c (grub_normal_do_completion): Likewise.
38988 Reported by Hitoshi Ozeki.
38990 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
38992 Do not use devices at boot in chainloading.
38994 * loader/i386/pc/chainloader.c (boot_drive): New variable.
38995 (boot_part_addr): Likewise.
38996 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
38997 with BOOT_DRIVE and BOOT_PART_ADDR.
38998 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
38999 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
39001 2007-08-29 Robert Millan <rmh@aybabtu.com>
39003 Patch from Simon Peter <dn.tlp@gmx.net>:
39004 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
39005 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
39006 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
39007 util/i386/pc/grub-setup.c_DEPENDENCIES.
39008 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
39009 util/grub-probe.c_DEPENDENCIES.
39010 * conf/powerpc-ieee1275.rmk: Likewise.
39012 2007-08-28 Robert Millan <rmh@aybabtu.com>
39014 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
39015 to tell grub-mkdevicemap how to name devices.
39016 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
39019 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
39020 util/i386/get_disk_name.c.
39021 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
39022 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
39023 util/ieee1275/get_disk_name.c.
39025 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
39027 * DISTLIST: Add util/i386/get_disk_name.c and
39028 util/ieee1275/get_disk_name.c.
39030 * util/grub-mkdevicemap.c: Replace device naming logic with
39031 grub_util_get_disk_name() calls.
39033 2007-08-20 Robert Millan <rmh@aybabtu.com>
39035 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
39036 (so that it works for both plural and singular quantities).
39038 2007-08-05 Robert Millan <rmh@aybabtu.com>
39040 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
39041 so that [xz] isn't taken into account when determining order.
39043 2007-08-02 Marco Gerards <marco@gnu.org>
39045 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
39046 `include/multiboot2.h', `include/grub/elfload.h',
39047 `include/multiboot.h', `include/grub/multiboot.h',
39048 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
39049 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
39050 `kern/elf.c', `loader/multiboot_loader.c',
39051 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
39052 `loader/i386/pc/multiboot2.c',
39053 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
39054 `util/i386/pc/grub-mkrescue.in'. Remove
39055 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
39056 `include/grub/i386/pc/util/biosdisk.h' and
39057 `include/grub/powerpc/ieee1275/multiboot.h'.
39059 2007-08-02 Bean <bean123ch@gmail.com>
39061 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
39062 (ntfs_mod_SOURCES): New variable.
39063 (ntfs_mod_CFLAGS): Likewise.
39064 (ntfs_mod_LDFLAGS): Likewise.
39066 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
39067 (grub_probe_SOURCES): Likewise.
39068 (grub_emu_SOURCES): Likewise.
39070 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
39071 (grub_emu_SOURCES): Likewise.
39073 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
39074 (grub_emu_SOURCES): Likewise.
39076 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
39078 * fs/ntfs.c: New file.
39080 2007-08-02 Bean <bean123ch@gmail.com>
39082 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
39084 * file.h (grub_file): Likewise.
39086 * fshelp.h (grub_fshelp_read_file): Likewise.
39088 * util/i386/pc/grub-setup.c (setup): Likewise.
39089 (save_first_sector): Likewise.
39090 (save_blocklists): Likewise.
39092 * fs/affs.c (grub_affs_read_file): Likewise.
39094 * fs/ext2.c (grub_ext2_read_file): Likewise.
39096 * fs/fat.c (grub_fat_read_data): Likewise.
39098 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
39100 * fs/hfs.c (grub_hfs_read_file): Likewise.
39102 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
39104 * fs/jfs.c (grub_jfs_read_file): Likewise.
39106 * fs/minix.c (grub_minix_read_file): Likewise.
39108 * fs/sfs.c (grub_sfs_read_file): Likewise.
39110 * fs/ufs.c (grub_ufs_read_file): Likewise.
39112 * fs/xfs.c (grub_xfs_read_file): Likewise.
39114 * command/blocklist.c (read_blocklist): Likewise.
39115 (print_blocklist): Likewise.
39117 2007-08-02 Marco Gerards <marco@gnu.org>
39119 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
39122 * disk/host.c: New file.
39124 * util/hostfs.c: Likewise.
39126 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
39127 return `GRUB_ERR_BAD_FS'.
39128 * fs/sfs.c (grub_sfs_mount): Likewise.
39129 * fs/xfs.c (grub_xfs_mount): Likewise.
39131 * include/grub/disk.h (enum grub_disk_dev_id): Add
39132 `GRUB_DISK_DEVICE_HOST_ID'.
39134 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
39136 2007-07-24 Jerone Young <jerone@gmail.com>
39138 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
39139 modules for compilation.
39140 * conf/powerpc-ieee1275.rmk: Likewise.
39142 * include/multiboot.h: Move multiboot definitions to one file. Rename
39143 many definitions to not get grub specific.
39144 * include/multiboot2.h: Create header with multiboot 2 definitions.
39145 * include/grub/multiboot.h: Header for grub specific function
39146 prototypes and definitions.
39147 * include/grub/multiboot2.h: Likewise.
39148 * include/grub/multiboot_loader.h: Likewise.
39149 * include/grub/i386/pc/multiboot.h: Removed.
39150 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
39152 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
39153 and 2 to allow for one multiboot and module commands.
39154 * loader/multiboot2.c: Add multiboot2 functionality.
39155 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
39156 and definition names.
39157 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
39159 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
39160 ieee1275 specific multiboot2 code.
39162 * kern/i386/pc/startup.S: Change headers and definition names for
39163 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
39165 2007-07-22 Robert Millan <rmh@aybabtu.com>
39167 * geninitheader.sh: Process file specified in first parameter rather
39168 than hardcoding grub_modules_init.lst.
39169 * geninit.sh: Likewise. Also, construct header name dynamically rather
39170 than hardcoding grub_modules_init.h.
39172 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
39173 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
39174 grub_probe_init.[ch] and grub_setup_init.[ch].
39176 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
39177 grub_modules_init.h with grub_emu_init.h.
39178 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
39179 grub_probe_init.[ch] files.
39180 * conf/i386-efi.rmk: Likewise.
39181 * conf/i386-pc.rmk: Likewise.
39182 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
39183 grub_setup_init.[ch] files.
39185 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
39186 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
39187 to initialize modules rather than a list of hardcoded functions.
39188 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
39189 grub_init_all() to initialize modules rather than a list of hardcoded
39192 2007-07-22 Robert Millan <rmh@aybabtu.com>
39194 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
39195 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
39197 2007-07-22 Robert Millan <rmh@aybabtu.com>
39199 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
39200 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
39201 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
39202 flag when running on SmartFirmware.
39203 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
39204 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
39207 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
39208 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
39209 rather than decreasing it.
39211 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
39212 there's not enough space to do it, fail in the same way as when it
39213 can't be done because there are no partitions.
39215 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
39216 when nvsetenv failed.
39218 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
39220 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
39221 because this rule is automatically generated.
39222 (grub-mkrescue): Removed for the same reason as above.
39224 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
39226 Migrate to GNU General Public License Version 3.
39228 * COPYING: Replaced with the plain text version of GPLv3.
39230 * config.guess: Updated from gnulib.
39231 * config.sub: Likewise.
39233 * geninit.sh: Output a GPLv3 copyright notice.
39234 * geninitheader.sh: Likewise.
39235 * genmodsrc.sh: Likewise.
39236 * gensymlist.sh.in: Likewise.
39238 * boot/i386/pc/boot.S: Upgraded to GPLv3.
39239 * boot/i386/pc/diskboot.S: Likewise.
39240 * boot/i386/pc/pxeboot.S: Likewise.
39241 * commands/blocklist.c: Likewise.
39242 * commands/boot.c: Likewise.
39243 * commands/cat.c: Likewise.
39244 * commands/cmp.c: Likewise.
39245 * commands/configfile.c: Likewise.
39246 * commands/echo.c: Likewise.
39247 * commands/help.c: Likewise.
39248 * commands/ls.c: Likewise.
39249 * commands/search.c: Likewise.
39250 * commands/terminal.c: Likewise.
39251 * commands/test.c: Likewise.
39252 * commands/videotest.c: Likewise.
39253 * commands/i386/cpuid.c: Likewise.
39254 * commands/i386/pc/halt.c: Likewise.
39255 * commands/i386/pc/play.c: Likewise.
39256 * commands/i386/pc/reboot.c: Likewise.
39257 * commands/i386/pc/vbeinfo.c: Likewise.
39258 * commands/i386/pc/vbetest.c: Likewise.
39259 * commands/ieee1275/halt.c: Likewise.
39260 * commands/ieee1275/reboot.c: Likewise.
39261 * commands/ieee1275/suspend.c: Likewise.
39262 * disk/loopback.c: Likewise.
39263 * disk/lvm.c: Likewise.
39264 * disk/raid.c: Likewise.
39265 * disk/efi/efidisk.c: Likewise.
39266 * disk/i386/pc/biosdisk.c: Likewise.
39267 * disk/ieee1275/ofdisk.c: Likewise.
39268 * font/manager.c: Likewise.
39269 * fs/affs.c: Likewise.
39270 * fs/ext2.c: Likewise.
39271 * fs/fat.c: Likewise.
39272 * fs/fshelp.c: Likewise.
39273 * fs/hfs.c: Likewise.
39274 * fs/hfsplus.c: Likewise.
39275 * fs/iso9660.c: Likewise.
39276 * fs/jfs.c: Likewise.
39277 * fs/minix.c: Likewise.
39278 * fs/sfs.c: Likewise.
39279 * fs/ufs.c: Likewise.
39280 * fs/xfs.c: Likewise.
39281 * hello/hello.c: Likewise.
39282 * include/grub/acorn_filecore.h: Likewise.
39283 * include/grub/arg.h: Likewise.
39284 * include/grub/bitmap.h: Likewise.
39285 * include/grub/boot.h: Likewise.
39286 * include/grub/cache.h: Likewise.
39287 * include/grub/device.h: Likewise.
39288 * include/grub/disk.h: Likewise.
39289 * include/grub/dl.h: Likewise.
39290 * include/grub/elfload.h: Likewise.
39291 * include/grub/env.h: Likewise.
39292 * include/grub/err.h: Likewise.
39293 * include/grub/file.h: Likewise.
39294 * include/grub/font.h: Likewise.
39295 * include/grub/fs.h: Likewise.
39296 * include/grub/fshelp.h: Likewise.
39297 * include/grub/gzio.h: Likewise.
39298 * include/grub/hfs.h: Likewise.
39299 * include/grub/kernel.h: Likewise.
39300 * include/grub/loader.h: Likewise.
39301 * include/grub/lvm.h: Likewise.
39302 * include/grub/misc.h: Likewise.
39303 * include/grub/mm.h: Likewise.
39304 * include/grub/net.h: Likewise.
39305 * include/grub/normal.h: Likewise.
39306 * include/grub/parser.h: Likewise.
39307 * include/grub/partition.h: Likewise.
39308 * include/grub/pc_partition.h: Likewise.
39309 * include/grub/raid.h: Likewise.
39310 * include/grub/rescue.h: Likewise.
39311 * include/grub/script.h: Likewise.
39312 * include/grub/setjmp.h: Likewise.
39313 * include/grub/symbol.h: Likewise.
39314 * include/grub/term.h: Likewise.
39315 * include/grub/terminfo.h: Likewise.
39316 * include/grub/tparm.h: Likewise.
39317 * include/grub/types.h: Likewise.
39318 * include/grub/video.h: Likewise.
39319 * include/grub/efi/api.h: Likewise.
39320 * include/grub/efi/chainloader.h: Likewise.
39321 * include/grub/efi/console.h: Likewise.
39322 * include/grub/efi/console_control.h: Likewise.
39323 * include/grub/efi/disk.h: Likewise.
39324 * include/grub/efi/efi.h: Likewise.
39325 * include/grub/efi/pe32.h: Likewise.
39326 * include/grub/efi/time.h: Likewise.
39327 * include/grub/i386/linux.h: Likewise.
39328 * include/grub/i386/setjmp.h: Likewise.
39329 * include/grub/i386/types.h: Likewise.
39330 * include/grub/i386/efi/kernel.h: Likewise.
39331 * include/grub/i386/efi/loader.h: Likewise.
39332 * include/grub/i386/efi/time.h: Likewise.
39333 * include/grub/i386/pc/biosdisk.h: Likewise.
39334 * include/grub/i386/pc/boot.h: Likewise.
39335 * include/grub/i386/pc/chainloader.h: Likewise.
39336 * include/grub/i386/pc/console.h: Likewise.
39337 * include/grub/i386/pc/init.h: Likewise.
39338 * include/grub/i386/pc/kernel.h: Likewise.
39339 * include/grub/i386/pc/loader.h: Likewise.
39340 * include/grub/i386/pc/memory.h: Likewise.
39341 * include/grub/i386/pc/multiboot.h: Likewise.
39342 * include/grub/i386/pc/serial.h: Likewise.
39343 * include/grub/i386/pc/time.h: Likewise.
39344 * include/grub/i386/pc/vbe.h: Likewise.
39345 * include/grub/i386/pc/vbeblit.h: Likewise.
39346 * include/grub/i386/pc/vbefill.h: Likewise.
39347 * include/grub/i386/pc/vbeutil.h: Likewise.
39348 * include/grub/i386/pc/vga.h: Likewise.
39349 * include/grub/ieee1275/ieee1275.h: Likewise.
39350 * include/grub/ieee1275/ofdisk.h: Likewise.
39351 * include/grub/powerpc/libgcc.h: Likewise.
39352 * include/grub/powerpc/setjmp.h: Likewise.
39353 * include/grub/powerpc/types.h: Likewise.
39354 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
39355 * include/grub/powerpc/ieee1275/console.h: Likewise.
39356 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
39357 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
39358 * include/grub/powerpc/ieee1275/loader.h: Likewise.
39359 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
39360 * include/grub/powerpc/ieee1275/time.h: Likewise.
39361 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
39362 * include/grub/sparc64/libgcc.h: Likewise.
39363 * include/grub/sparc64/setjmp.h: Likewise.
39364 * include/grub/sparc64/types.h: Likewise.
39365 * include/grub/sparc64/ieee1275/console.h: Likewise.
39366 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
39367 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
39368 * include/grub/sparc64/ieee1275/time.h: Likewise.
39369 * include/grub/util/biosdisk.h: Likewise.
39370 * include/grub/util/getroot.h: Likewise.
39371 * include/grub/util/lvm.h: Likewise.
39372 * include/grub/util/misc.h: Likewise.
39373 * include/grub/util/raid.h: Likewise.
39374 * include/grub/util/resolve.h: Likewise.
39375 * io/gzio.c: Likewise.
39376 * kern/device.c: Likewise.
39377 * kern/disk.c: Likewise.
39378 * kern/dl.c: Likewise.
39379 * kern/elf.c: Likewise.
39380 * kern/env.c: Likewise.
39381 * kern/err.c: Likewise.
39382 * kern/file.c: Likewise.
39383 * kern/fs.c: Likewise.
39384 * kern/loader.c: Likewise.
39385 * kern/main.c: Likewise.
39386 * kern/misc.c: Likewise.
39387 * kern/mm.c: Likewise.
39388 * kern/parser.c: Likewise.
39389 * kern/partition.c: Likewise.
39390 * kern/rescue.c: Likewise.
39391 * kern/term.c: Likewise.
39392 * kern/efi/efi.c: Likewise.
39393 * kern/efi/init.c: Likewise.
39394 * kern/efi/mm.c: Likewise.
39395 * kern/i386/dl.c: Likewise.
39396 * kern/i386/efi/init.c: Likewise.
39397 * kern/i386/efi/startup.S: Likewise.
39398 * kern/i386/pc/init.c: Likewise.
39399 * kern/i386/pc/lzo1x.S: Likewise.
39400 * kern/i386/pc/startup.S: Likewise.
39401 * kern/ieee1275/ieee1275.c: Likewise.
39402 * kern/powerpc/cache.S: Likewise.
39403 * kern/powerpc/dl.c: Likewise.
39404 * kern/powerpc/ieee1275/cmain.c: Likewise.
39405 * kern/powerpc/ieee1275/crt0.S: Likewise.
39406 * kern/powerpc/ieee1275/init.c: Likewise.
39407 * kern/powerpc/ieee1275/openfw.c: Likewise.
39408 * kern/sparc64/cache.S: Likewise.
39409 * kern/sparc64/dl.c: Likewise.
39410 * kern/sparc64/ieee1275/init.c: Likewise.
39411 * kern/sparc64/ieee1275/openfw.c: Likewise.
39412 * loader/efi/chainloader.c: Likewise.
39413 * loader/efi/chainloader_normal.c: Likewise.
39414 * loader/i386/efi/linux.c: Likewise.
39415 * loader/i386/efi/linux_normal.c: Likewise.
39416 * loader/i386/pc/chainloader.c: Likewise.
39417 * loader/i386/pc/chainloader_normal.c: Likewise.
39418 * loader/i386/pc/linux.c: Likewise.
39419 * loader/i386/pc/linux_normal.c: Likewise.
39420 * loader/i386/pc/multiboot.c: Likewise.
39421 * loader/i386/pc/multiboot_normal.c: Likewise.
39422 * loader/powerpc/ieee1275/linux.c: Likewise.
39423 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
39424 * normal/arg.c: Likewise.
39425 * normal/cmdline.c: Likewise.
39426 * normal/command.c: Likewise.
39427 * normal/completion.c: Likewise.
39428 * normal/execute.c: Likewise.
39429 * normal/function.c: Likewise.
39430 * normal/lexer.c: Likewise.
39431 * normal/main.c: Likewise.
39432 * normal/menu.c: Likewise.
39433 * normal/menu_entry.c: Likewise.
39434 * normal/misc.c: Likewise.
39435 * normal/parser.y: Likewise.
39436 * normal/script.c: Likewise.
39437 * normal/i386/setjmp.S: Likewise.
39438 * normal/powerpc/setjmp.S: Likewise.
39439 * normal/sparc64/setjmp.S: Likewise.
39440 * partmap/acorn.c: Likewise.
39441 * partmap/amiga.c: Likewise.
39442 * partmap/apple.c: Likewise.
39443 * partmap/gpt.c: Likewise.
39444 * partmap/pc.c: Likewise.
39445 * partmap/sun.c: Likewise.
39446 * term/gfxterm.c: Likewise.
39447 * term/terminfo.c: Likewise.
39448 * term/efi/console.c: Likewise.
39449 * term/i386/pc/console.c: Likewise.
39450 * term/i386/pc/serial.c: Likewise.
39451 * term/i386/pc/vesafb.c: Likewise.
39452 * term/i386/pc/vga.c: Likewise.
39453 * term/ieee1275/ofconsole.c: Likewise.
39454 * util/biosdisk.c: Likewise.
39455 * util/console.c: Likewise.
39456 * util/genmoddep.c: Likewise.
39457 * util/getroot.c: Likewise.
39458 * util/grub-emu.c: Likewise.
39459 * util/grub-mkdevicemap.c: Likewise.
39460 * util/grub-probe.c: Likewise.
39461 * util/lvm.c: Likewise.
39462 * util/misc.c: Likewise.
39463 * util/raid.c: Likewise.
39464 * util/resolve.c: Likewise.
39465 * util/update-grub.in: Likewise.
39466 * util/update-grub_lib.in: Likewise.
39467 * util/grub.d/00_header.in: Likewise.
39468 * util/grub.d/10_hurd.in: Likewise.
39469 * util/grub.d/10_linux.in: Likewise.
39470 * util/i386/efi/grub-install.in: Likewise.
39471 * util/i386/efi/grub-mkimage.c: Likewise.
39472 * util/i386/pc/grub-install.in: Likewise.
39473 * util/i386/pc/grub-mkimage.c: Likewise.
39474 * util/i386/pc/grub-mkrescue.in: Likewise.
39475 * util/i386/pc/grub-setup.c: Likewise.
39476 * util/i386/pc/misc.c: Likewise.
39477 * util/powerpc/ieee1275/grub-install.in: Likewise.
39478 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
39479 * util/powerpc/ieee1275/misc.c: Likewise.
39480 * video/bitmap.c: Likewise.
39481 * video/video.c: Likewise.
39482 * video/i386/pc/vbe.c: Likewise.
39483 * video/i386/pc/vbeblit.c: Likewise.
39484 * video/i386/pc/vbefill.c: Likewise.
39485 * video/i386/pc/vbeutil.c: Likewise.
39486 * video/readers/tga.c: Likewise.
39488 2007-07-02 Robert Millan <rmh@aybabtu.com>
39490 * conf/i386-efi.rmk: Replace obsolete reference to
39491 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
39492 with util/getroot.c.
39493 * conf/powerpc-ieee1275.rmk: Likewise.
39494 * conf/sparc64-ieee1275.rmk: Likewise.
39496 * util/grub-emu.c (main): Fix unchecked pointer handling.
39498 2007-07-02 Robert Millan <rmh@aybabtu.com>
39500 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
39501 invocation to fail, in order to support partition-less media.
39503 * util/i386/pc/grub-install.in: Likewise.
39505 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
39506 which fs or partmap modules are needed (akin to its sister scripts).
39508 Also use grub-probe to get rid of unportable /proc/mounts check.
39510 Print the same informational message that the other scripts do, before
39513 2007-06-23 Robert Millan <rmh@aybabtu.com>
39515 * util/update-grub_lib.in (font_path): New function. Determine whether
39516 a font file can be found and, if so, echo the GRUB path to it.
39518 * util/update-grub.in: Handle multiple terminals depending on user
39519 input, platform availability and font file presence. Propagate
39520 variables of our findings to /etc/grub.d/ children.
39522 * util/grub.d/00_header.in: Handle multiple terminals, based on
39523 environment setup by update-grub.
39525 2007-06-23 Robert Millan <rmh@aybabtu.com>
39527 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
39529 2007-06-21 Robert Millan <rmh@aybabtu.com>
39531 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
39532 indicate end of data section in kernel image.
39533 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
39534 GRUB_KERNEL_MACHINE_DATA_END.
39536 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
39538 * kern/i386/efi/startup.S: Likewise.
39540 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
39541 during image generation. Implement --prefix option to override this
39543 * util/i386/efi/grub-mkimage.c: Likewise.
39545 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
39546 code to make path relative to its root into a separate function.
39548 * util/i386/pc/grub-install.in: Use newly provided
39549 make_system_path_relative_to_its_root() to convert ${grubdir}, then
39550 pass the result to grub-install --prefix.
39552 2007-06-13 Robert Millan <rmh@aybabtu.com>
39554 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
39555 DEFAULT_DEVICE_MAP.
39556 * util/grub-emu.c: Use above definitions from misc.h instead of
39558 * util/grub-mkdevicemap.c: Likewise.
39559 * util/i386/pc/grub-setup.c: Likewise.
39560 * util/grub-probe.c: Likewise.
39561 (probe): Abort with grub_util_error() when either
39562 grub_guess_root_device or grub_util_get_grub_dev fails.
39564 2007-06-12 Robert Millan <rmh@aybabtu.com>
39566 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
39567 "pager" assignment.
39568 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
39570 * util/grub-probe.c (probe): Likewise for "drive_name".
39572 2007-06-11 Robert Millan <rmh@aybabtu.com>
39574 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
39575 not just the cdrom one.
39577 2007-06-11 Robert Millan <rmh@aybabtu.com>
39579 * util/i386/pc/grub-mkrescue.in: Add "set -e".
39580 Add --pkglibdir=DIR option to override pkglibdir.
39581 Mention --image-type=TYPE in help output.
39582 Fix --grub-mkimage (it was a no-op).
39583 Abort gracefully when no parameter is given.
39585 2007-06-11 Robert Millan <rmh@aybabtu.com>
39587 * util/i386/pc/grub-mkrescue.in: New file.
39588 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
39589 * Makefile.in: Handle bin_SCRIPTS.
39591 2007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
39593 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
39594 list of video modes.
39596 2007-06-06 Robert Millan <rmh@aybabtu.com>
39598 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
39599 file doesn't exist, or if it is in a filesystem grub can't read.
39601 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
39602 not abort if GRUB_DRIVE could not be defined. Rearrange generated
39603 header comment to fit in 80 columns when the variables are resolved.
39605 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
39606 could be identified by update-grub. Remove redundant check for
39607 unifont.pff existence (since convert_system_path_to_grub_path now
39610 2007-06-04 Robert Millan <rmh@aybabtu.com>
39612 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
39614 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
39616 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
39618 2007-06-04 Robert Millan <rmh@aybabtu.com>
39620 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
39622 * include/grub/partition.h: Declare grub_apple_partition_map_init and
39623 grub_apple_partition_map_fini.
39626 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
39627 to access >2 TiB disks).
39629 Print disk->total_sectors with %llu instead of %lu, since this
39630 variable is always 64-bit (prevents wrong disk size from being displayed
39631 on either >2 TiB disk or big-endian CPU).
39633 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
39634 into a generic case that supports all (sane) partition maps.
39636 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
39639 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
39640 and grub_apple_partition_map_fini() after that.
39642 2007-06-01 Robert Millan <rmh@aybabtu.com>
39644 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
39646 * util/grub.d/00_header.in: Only enable gfxterm when
39647 convert_system_path_to_grub_path() succeeds.
39649 2007-05-20 Robert Millan <rmh@aybabtu.com>
39651 * util/update-grub_lib.in: New file.
39652 * DISTLIST: Add update-grub_lib.in.
39653 * conf/common.rmk: Generate update-grub_lib and install it in
39655 * Makefile.in: Add install routine for $(lib_DATA).
39657 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
39658 function provided by update-grub_lib to support arbitrary paths of
39660 * util/update-grub.in: Use convert_system_path_to_grub_path() to
39661 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
39663 2007-05-19 Robert Millan <rmh@aybabtu.com>
39665 * commands/i386/cpuid.c: New module.
39666 * DISTLIST: Add it.
39667 * conf/i386-efi.rmk: Enable cpuid.mod.
39668 * conf/i386-pc.rmk: Likewise.
39670 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
39672 * kern/disk.c (grub_disk_read): Check return value of
39675 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
39677 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
39679 * disk/raid.c (grub_raid_open): Likewise.
39681 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
39683 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
39684 stack instead of on the heap.
39686 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
39687 before doing a read on it.
39689 * configure.ac: Only use -fno-stack-protector for the target
39692 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
39694 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
39695 __attribute_ ((unused)) to mode_type argument.
39697 * util/getroot.c (grub_guess_root_device): Fix #endif.
39699 * kern/misc.c (memcmp): Fix prototype.
39701 * include/grub/partition.h [GRUB_UTIL]
39702 (grub_gpt_partition_map_init): Add prototype.
39703 (grub_gpt_partition_map_fini): Likewise.
39705 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
39706 at the right place.
39708 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
39709 (grub_fat_read_data): Likewise.
39710 (grub_fat_find_dir): Likewise.
39712 * font/manager.c (find_glyph): Make table a const.
39713 (grub_font_get_glyph): Remove bitmap from if statement.
39715 2007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
39717 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
39718 code, first search for device in /dev/mapper, then in /dev.
39719 (grub_util_get_grub_dev): New function.
39720 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
39722 * util/grub-probe.c (probe): Remove check for RAID, call
39723 grub_util_get_grub_dev() instead of
39724 grub_util_biosdisk_get_grub_dev().
39725 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
39726 grub_util_biosdisk_get_grub_dev().
39727 * util/i386/pc/grub-setup.c (main): Likewise.
39729 2007-05-16 Robert Millan <rmh@aybabtu.com>
39731 * DISTLIST: Update for the latest changes.
39732 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
39733 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
39734 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
39735 grub/util/biosdisk.h.
39736 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
39737 grub/util/biosdisk.h.
39739 2007-05-16 Robert Millan <rmh@aybabtu.com>
39741 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
39743 2007-05-16 Robert Millan <rmh@aybabtu.com>
39745 * util/i386/efi/grub-install.in: New.
39746 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
39747 newly added grub-install.
39748 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
39750 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
39751 grub/util/biosdisk.h.
39752 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
39753 grub/util/biosdisk.h.
39755 2007-05-16 Robert Millan <rmh@aybabtu.com>
39757 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
39758 * include/grub/util/biosdisk.h: ... here.
39759 * util/i386/pc/biosdisk.c: Moved to ...
39760 * util/biosdisk.c: ... here.
39761 * util/i386/pc/getroot.c: Moved to ...
39762 * util/getroot.c: ... here.
39763 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
39764 * util/grub-mkdevicemap.c: ... here.
39765 * util/i386/pc/grub-probe.c: Moved to ...
39766 * util/grub-probe.c: ... here.
39768 2007-05-15 Robert Millan <rmh@aybabtu.com>
39770 * util/update-grub.in: Remove duplicated line in grub.cfg header
39773 2007-05-13 Robert Millan <rmh@aybabtu.com>
39775 * util/update-grub.in: Fix a few assumptions about the devices holding
39776 /, /boot and /boot/grub being the same.
39777 * util/grub.d/00_header.in: Likewise.
39778 * util/grub.d/10_hurd.in: Likewise.
39779 * util/grub.d/10_linux.in: Likewise.
39781 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
39782 patterns. Use that to define the `.old' suffix as older than `'.
39784 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
39786 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
39787 the grub.cfg header message.
39789 2007-05-11 Robert Millan <rmh@aybabtu.com>
39791 * util/update-grub.in: Create device.map if it doesn't already exist,
39792 before attempting to run grub-probe.
39793 Check for grub-probe and grub-mkdevicemap with the same code
39794 grub-install is using.
39797 2007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
39799 * Makefile.in: Add the datarootdir autoconf variable.
39801 2007-05-09 Robert Millan <rmh@aybabtu.com>
39803 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
39804 fail gracefully if dev->disk->partition == NULL.
39806 2007-05-07 Robert Millan <rmh@aybabtu.com>
39808 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
39809 determine partition map module.
39810 * util/i386/pc/grub-install.in: Use this feature to decide which
39811 partition module to load, instead of hardcoding pc and gpt.
39813 2007-05-07 Robert Millan <rmh@aybabtu.com>
39815 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
39816 source directory differs from build directory.
39818 2007-05-05 Robert Millan <rmh@aybabtu.com>
39820 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
39823 2007-05-05 Robert Millan <rmh@aybabtu.com>
39825 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
39827 2007-05-05 Robert Millan <rmh@aybabtu.com>
39829 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
39830 command-line arguments via ${GRUB_CMDLINE_LINUX}.
39832 2007-05-05 Robert Millan <rmh@aybabtu.com>
39834 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
39835 (grub_probe_SOURCES): Likewise.
39836 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
39837 GPT and initialize dos_part and bsd_part accordingly.
39838 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
39840 (main): Activate gpt module for use during partition identification,
39841 and deactivate it afterwards.
39842 * util/i386/pc/grub-install.in: Add gpt module to core.img.
39843 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
39844 partition identification, and deactivate it afterwards.
39846 2007-05-05 Robert Millan <rmh@aybabtu.com>
39848 * term/i386/pc/console.c (grub_console_fini): Call
39849 grub_term_set_current() before grub_term_unregister().
39851 2007-05-04 Robert Millan <rmh@aybabtu.com>
39853 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
39854 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
39855 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
39856 and update-grub_DATA.
39857 * conf/common.rmk: Build and install update-grub components.
39858 * conf/common.mk: Regenerate.
39859 * util/update-grub.in: New. Core of update-grub.
39860 * util/grub.d/00_header.in: New. Generates grub.cfg header.
39861 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
39862 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
39863 * util/grub.d/README: New. Document grub.d directory layout.
39865 2007-05-01 Robert Millan <rmh@aybabtu.com>
39867 * util/grub-emu.c: Move initialization functions
39868 grub_util_biosdisk_init() and grub_init_all() before
39869 grub_util_biosdisk_get_grub_dev(), which relies on them.
39871 2007-04-19 Robert Millan <rmh@aybabtu.com>
39873 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
39876 2007-04-18 Jerone Young <jerone@gmail.com>
39878 * kernel/elf.c: Add missing parenthesis for conditional statement
39881 2007-04-10 Jerone Young <jerone@gmail.com>
39883 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
39884 continue on and look for device node with real device name.
39886 2007-04-10 Jerone Young <jerone@gmail.com>
39888 * configure.ac: Add argument for autoconf to use transformation
39890 * Makefile.in: Add autoconf package transformation code.
39891 * util/i386/pc/grub-install.in: Likewise.
39892 * util/powerpc/ieee1275/grub-install.in: Likewise.
39894 2007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
39896 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
39897 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
39898 (EXT2_REVISION): Likewise.
39899 (EXT2_INODE_SIZE): Likewise.
39900 (struct grub_ext2_block_group): Added a missing member
39902 (grub_ext2_read_inode): Divide by the inode size in a superblock
39903 instead of 128 to obtain INODES_PER_BLOCK.
39904 Use the macro EXT2_INODE_SIZE instead of directly using
39905 SBLOCK->INODE_SIZE.
39907 2007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
39909 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
39910 superblock instead of the structure size to compute an
39911 offset. This fixes the problem that GRUB could not read a
39912 filesystem when inode size is different from 128-byte.
39914 2007-03-05 Marco Gerards <marco@gnu.org>
39916 * normal/main.c (read_config_file): When "menu" is not set, create
39917 an initial context.
39919 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
39921 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
39922 (HEAP_LIMIT): New macro.
39923 (grub_claim_heap): Claim memory up to `heaplimit'.
39925 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
39927 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
39928 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
39929 (_start): Likewise.
39930 (grub_arch_modules_addr): Return address after `_end'.
39931 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
39932 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
39933 (add_segments): Calculate `_end' from phdr size and location.
39934 (ALIGN_UP): Moved to ...
39935 * include/grub/misc.h: here.
39936 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
39938 (GRUB_IEEE1275_MODULE_BASE): Removed.
39940 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
39942 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
39945 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
39947 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
39949 (grub_elf64_load_hook_t): Likewise.
39950 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
39953 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
39955 * kern/mm.c: Update copyright.
39956 (grub_mm_debug): Correct syntax error.
39957 (grub_mm_dump_free): New function.
39958 (grub_debug_free): Call `grub_free'.
39959 * include/grub/mm.h: Update copyright.
39960 (grub_mm_dump_free): Add declaration.
39962 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
39964 * include/grub/ieee1275/ieee1275.h: Update copyright.
39965 * kern/powerpc/ieee1275/init.c: Likewise.
39966 * kern/powerpc/ieee1275/openfw.c: Likewise.
39968 * loader/powerpc/ieee1275/linux.c: Likewise.
39969 * include/grub/elfload.h: Likewise.
39970 * kern/elf.c: Likewise.
39971 (grub_elf32_load): Pass `base' and `size' parameters. Update all
39973 (grub_elf64_load): Likewise.
39974 (grub_elf32_load_segment): Move to a nested function.
39975 (grub_elf64_load_segment): Likewise.
39977 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
39979 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
39981 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
39982 (grub_heap_len): Likewise.
39983 (HEAP_SIZE): New macro.
39984 (grub_claim_heap): New function.
39985 (grub_machine_init): Don't claim heap directly. Call
39987 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
39988 (grub_available_iterate): New function.
39990 2007-02-03 Thomas Schwinge <tschwinge@gnu.org>
39992 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
39993 * configure.ac: Use it for testing the HOST and TARGET compilers.
39995 2006-12-13 Thomas Schwinge <tschwinge@gnu.org>
39997 * Makefile.in (enable_grub_emu): New variable.
39998 * configure.ac (--enable-grub-emu): New option.
39999 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
40000 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
40001 * conf/i386-pc.rmk: Likewise.
40002 * conf/powerpc-ieee1275.rmk: Likewise.
40003 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
40005 2006-12-12 Marco Gerards <marco@gnu.org>
40007 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
40009 * kern/env.c (grub_env_unset): Don't free the member `value' when
40010 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
40013 * normal/main.c (current_menu): Removed.
40014 (free_menu): Unset the `menu' environment variable.
40015 (grub_normal_menu_addentry): Make use of the environment variable
40016 `menu', instead of using the global `current_menu'. Allocate
40017 memory for the sourcecode of this entry.
40018 (read_config_file): New argument `nested', changed all callers.
40019 Only in the case of a new context, initialize a new menu. Set the
40020 `menu' environment variable.
40021 (grub_normal_execute): Don't set and unset the environment
40022 variable `menu' here anymore. Only free the menu when leaving the
40025 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
40028 2006-12-11 Marco Gerards <marco@gnu.org>
40030 * normal/menu_entry.c (run): Fix off by one bug so the last line
40031 is executed. Move the loader check to outside the loop.
40033 2006-12-08 Hollis Blanchard <hollis@penguinppc.org>
40035 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
40037 2006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
40039 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
40040 the number of sectors. Reported by Andrey Shuvikov
40041 <mr_hyro@yahoo.com>.
40043 2006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
40045 * kern/disk.c (grub_disk_read): When there is a read error, always
40046 try to read only the necessary data.
40048 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
40050 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
40052 [GRUB_UTIL] (grub_raid_fini): Likewise.
40053 [GRUB_UTIL] (grub_lvm_init): Likewise.
40054 [GRUB_UTIL] (grub_lvm_fini): Likewise.
40055 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
40056 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
40057 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
40058 and grub_raid_fini().
40060 2006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
40062 * include/grub/types.h (__unused): Rename to UNUSED.
40063 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
40064 (grub_elf64_size): Likewise.
40066 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
40068 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
40069 grub_error_push and grub_error_pop in the error-handling path.
40070 (grub_elf32_load_segment): Only call grub_file_read with non-zero
40073 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
40075 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
40076 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
40077 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40078 (kernel_elf_SOURCES): Likewise.
40079 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
40080 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
40081 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
40082 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
40083 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
40084 (elf_mod_SOURCES): New variable.
40085 (elf_mod_CFLAGS): Likewise.
40086 (elf_mod_LDFLAGS): Likewise.
40087 * include/grub/types.h (__unused): New macro.
40088 * include/grub/elfload.h: New file.
40089 * kern/elf.c: Likewise.
40090 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
40091 (ELF32_LOADMASK): New macro.
40092 (ELF64_LOADMASK): Likewise.
40093 (vmlinux): Removed.
40094 (grub_linux_load32): New function.
40095 (grub_linux_load64): Likewise.
40096 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
40097 Use grub_elf_t instead of grub_file_t.
40099 2006-11-02 Hollis Blanchard <hollis@penguinppc.org>
40101 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
40102 `catch_result' to struct set_color_args.
40104 2006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
40106 * normal/menu.c: Include grub/script.h.
40107 * normal/menu_entry.c: Likewise.
40108 * include/grub/normal.h: Do not include grub/script.h.
40110 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
40112 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
40114 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
40116 * kern/disk.c (grub_disk_open): Print debug messages when opening a
40118 (grub_disk_close): Print debug messages when closing a disk.
40119 (grub_disk_read): Print debug messages when disk read fails.
40120 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
40122 * kern/partition.c: Include misc.h.
40123 (grub_partition_iterate): Print debug messages when detecting
40126 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
40128 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
40130 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
40132 2006-10-26 Hollis Blanchard <hollis@penguinppc.org>
40134 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
40135 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
40137 2006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
40139 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
40140 instead of sizeof(lv). Patch by Michael Guntsche.
40142 2006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
40144 * disk/lvm.c: Rename VGS to VG_LIST.
40145 (grub_lvm_iterate): Change VGS->LV to VG-LV.
40146 (grub_lvm_open): Likewise.
40147 Thanks to Michael Guntsche for finding this bug.
40149 2006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
40151 * configure.ac (AC_INIT): Bumped to 1.95.
40153 2006-10-14 Robert Millan <rmh@aybabtu.com>
40155 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
40156 with "/dev/.static/dev/md".
40158 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
40160 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
40161 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
40162 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
40163 DRIVE_NAME are always freed.
40165 * util/i386/pc/biosdisk.c (make_device_name): Add one into
40166 DOS_PART, as a DOS partition is counted from one instead of zero
40167 now. Reported by Robert Millan.
40169 2006-10-14 Robert Millan <rmh@aybabtu.com>
40171 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
40172 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
40173 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
40174 string returned by grub_guess_root_device.
40175 * util/i386/pc/grub-setup.c: Likewise.
40176 * util/i386/pc/grub-probefs.c: Likewise.
40178 * util/i386/pc/grub-probefs.c: Rename to ...
40179 * util/i386/pc/grub-probe.c: ... this.
40180 * DISTLIST: Remove grub-probefs, add grub-probe.
40181 * conf/i386-efi.rmk: Likewise.
40182 * conf/i386-pc.rmk: Likewise.
40183 * util/i386/pc/grub-install.in: Likewise.
40185 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
40186 choose which information we want to print.
40188 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
40190 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
40191 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
40192 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
40193 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
40194 video/readers/tga.c and video/i386/pc/vbeutil.c.
40196 2006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
40198 Added support for RAID and LVM.
40200 * disk/lvm.c: New file.
40201 * disk/raid.c: Likewise.
40202 * include/grub/lvm.h: Likewise.
40203 * include/grub/raid.h: Likewise.
40204 * include/grub/util/lvm.h: Likewise.
40205 * include/grub/util/raid.h: Likewise.
40206 * util/lvm.c: Likewise.
40207 * util/raid.c: Likewise.
40209 * include/grub/disk.h (grub_disk_dev_id): Add
40210 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
40211 (grub_disk_get_size): New prototype.
40212 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
40213 returns a partition.
40214 (grub_disk_get_size): New function.
40216 * kern/i386/pc/init.c (make_install_device): Copy the prefix
40217 verbatim if grub_install_dos_part is -2.
40219 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
40222 * util/i386/pc/grub-setup.c (setup): New argument
40223 MUST_EMBED. Force embedding of GRUB when the argument is
40224 true. Close FILE before returning.
40225 (main): Add support for RAID and LVM.
40227 * conf/common.rmk: Add RAID and LVM modules.
40228 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
40230 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
40232 * kern/misc.c (grub_strstr): New function.
40233 * include/grub/misc.h (grub_strstr): New prototype.
40235 2006-10-10 Tristan Gingold <tristan.gingold@bull.net>
40237 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
40239 2006-10-05 Tristan Gingold <tristan.gingold@bull.net>
40241 * kern/misc.c (grub_strtoull): Guess the base only if not
40244 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
40246 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
40249 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
40251 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
40253 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
40254 Remove `flags' argument. All callers changed.
40255 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
40256 (IEEE1275_IHANDLE_INVALID): New variable.
40257 (IEEE1275_CELL_INVALID): New variable.
40258 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
40259 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
40260 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
40261 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
40262 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
40263 codes from Open Firmware. All callers updated.
40264 (grub_ieee1275_next_property): Directly return Open Firmware return
40266 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
40267 Standardize error checking from `grub_ieee1275_get_property'.
40268 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
40269 `devalias' to `aliases'. Correct comments. Consolidate error paths.
40271 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
40273 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
40274 `instance_to_package_args' to `instance_to_path_args'.
40276 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
40277 `grub_ieee1275_chosen'.
40279 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
40280 `grub_ieee1275_interpret'.
40282 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
40284 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
40286 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
40288 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
40289 (__cmpdi): Likewise.
40291 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
40292 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
40295 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
40297 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
40298 to type `grub_ssize_t'.
40299 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
40301 2006-09-22 Marco Gerards <marco@gnu.org>
40303 * normal/script.c (grub_script_create_cmdmenu): Skip leading
40306 2006-09-22 Marco Gerards <marco@gnu.org>
40308 * commands/echo.c: New file.
40310 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
40312 * conf/common.rmk (echo_mod_SOURCES): New variable.
40313 (echo_mod_CFLAGS): Likewise.
40314 (echo_mod_LDFLAGS): Likewise.
40316 2006-09-22 Marco Gerards <marco@gnu.org>
40318 * normal/main.c (get_line): Malloc memory instead of using
40319 preallocated memory. Removed the arguments `cmdline' and
40320 `max_len'. Updated all callers.
40322 2006-09-22 Marco Gerards <marco@gnu.org>
40324 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
40325 (normal_mod_DEPENDENCIES): Likewise.
40327 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
40328 (normal_mod_DEPENDENCIES): Likewise.
40330 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
40332 2006-09-22 Johan Rydberg <jrydberg@gnu.org>
40334 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
40336 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
40337 (normal_mod_DEPENDENCIES): Likewise.
40338 * conf/i386-pc.mk: Regenerate.
40339 * conf/i386-efi.mk: Likewise
40340 * conf/common.mk: Likewise.
40341 * conf/powerpc-ieee1275.mk: Likewise.
40342 * conf/sparc64-ieee1275.mk: Likewise.
40344 2006-09-22 Robert Millan <rmh@aybabtu.com>
40346 Sync with i386 version.
40347 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
40348 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
40350 2006-09-21 Robert Millan <rmh@aybabtu.com>
40352 Import from GRUB Legacy (lib/device.c):
40353 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
40354 (init_device_map) [__linux__]: Add support for I2O devices.
40356 2006-09-14 Marco Gerards <marco@gnu.org>
40358 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
40361 2006-09-14 Robert Millan <rmh@aybabtu.com>
40363 * util/i386/pc/grub-install.in: Skip menu.lst when removing
40366 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
40368 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
40369 before adding it to device.map.
40371 2006-08-15 Johan Rydberg <jrydberg@gnu.org>
40373 * genmk.rb: Let GCC generate dependencies the first time it
40374 compiles a file; using the -MD option.
40375 * conf/common.mk: Regenerate.
40376 * conf/i386-pc.mk: Likewise.
40377 * conf/i386-efi.mk: Likewise.
40378 * conf/powerpc-ieee1275.mk: Likewise.
40379 * conf/sparc64-ieee1275.mk: Likewise.
40381 2006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
40383 Move the prototypes of grub_setjmp and grub_longjmp to
40384 cpu/setjmp.h, so that each architecture may specify different
40387 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
40388 (grub_longjmp): Likewise.
40389 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
40390 (grub_longjmp): Likewise.
40391 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
40392 (grub_longjmp): Likewise.
40394 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
40395 [!GRUB_UTIL] (grub_longjmp): Removed.
40397 2006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
40399 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
40400 "color!" method does not return any value.
40402 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
40404 * include/grub/bitmap.h: New file.
40406 * include/grub/i386/pc/vbeutil.h: Likewise.
40408 * video/bitmap.c: Likewise.
40410 * video/readers/tga.c: Likewise.
40412 * video/i386/pc/vbeutil.c: Likewise.
40414 * commands/videotest.c: Code cleanup and updated to reflect to new
40417 * term/gfxterm.c: Likewise.
40419 * video/video.c: Likewise.
40421 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
40422 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
40423 (bitmap_mod_SOURCES): New entry.
40424 (bitmap_mod_CFLAGS): Likewise.
40425 (bitmap_mod_LDFLAGS): Likewise.
40426 (tga_mod_SOURCES): Likewise.
40427 (tga_mod_CFLAGS): Likewise.
40428 (tga_mod_LDFLAGS): Likewise.
40430 * include/grub/video.h (grub_video_blit_operators): New enum type.
40431 (grub_video_render_target): Changed as forward declaration and moved
40432 actual definition to be video driver specific.
40433 (grub_video_adapter.blit_bitmap): Added blitting operator.
40434 (grub_video_adapter.blit_render_target): Likewise.
40435 (grub_video_blit_bitmap): Likewise.
40436 (grub_video_blit_render_target): Likewise.
40438 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
40439 driver specific render target definition.
40440 (grub_video_vbe_map_rgba): Added driver internal helper.
40441 (grub_video_vbe_unmap_color): Updated to use
40442 grub_video_i386_vbeblit_info.
40443 (grub_video_vbe_get_video_ptr): Likewise.
40445 * include/grub/i386/pc/vbeblit.h
40446 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
40447 grub_video_i386_vbeblit_info.
40448 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
40449 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
40450 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
40451 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
40452 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
40453 (grub_video_i386_vbeblit_index_index): Likewise.
40454 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
40455 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
40456 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
40457 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
40459 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
40462 * video/i386/pc/vbeblit.c: Updated to reflect changes on
40463 include/grub/i386/pc/vbeblit.h.
40465 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
40466 Updated to use grub_video_i386_vbeblit_info.
40467 (grub_video_i386_vbefill_R8G8B8): Likewise.
40468 (grub_video_i386_vbefill_index): Likewise.
40469 (grub_video_i386_vbefill): Added generic filler.
40471 * video/i386/pc/vbefill.c: Updated to reflect changes on
40472 include/grub/i386/pc/vbefill.h.
40474 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
40475 grub_video_i386_vbeblit_info.
40476 (grub_video_vbe_unmap_color): Likewise.
40477 (grub_video_vbe_blit_glyph): Likewise.
40478 (grub_video_vbe_scroll): Likewise.
40479 (grub_video_vbe_draw_pixel): Removed function.
40480 (grub_video_vbe_get_pixel): Likewise.
40481 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
40482 updated code to use it.
40483 (common_blitter): Added common blitter for render target and bitmap.
40484 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
40485 (grub_video_vbe_blit_render_target): Likewise.
40487 2006-07-30 Johan Rydberg <jrydberg@gnu.org>
40489 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
40490 is in text mode if there is no console control protocol instance
40493 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
40495 * include/grub/video.h: Code cleanup.
40497 * include/grub/i386/pc/vbe.h: Likewise.
40499 * video/i386/pc/vbe.c: Likewise.
40501 * video/i386/pc/vbeblit.c: Likewise.
40503 * video/i386/pc/vbefill.c: Likewise.
40505 * video/video.c: Likewise. Also added more comments.
40507 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
40509 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
40510 (struct grub_biosdisk_dap): Likewise.
40512 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
40513 linkage settings for all functions.
40515 2006-07-12 Marco Gerards <marco@gnu.org>
40517 * configure.ac (--enable-mm-debug): Fix typo.
40519 * genkernsyms.sh.in: Use proper quoting for `CC'.
40521 2006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
40523 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
40524 (normal_mod_ASFLAGS): Remove "-m32".
40526 2006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
40528 * util/misc.c: Include config.h.
40529 [!HAVE_MEMALIGN]: Do not include malloc.h.
40530 (grub_memalign): Use posix_memalign, if present. Then, use
40531 memalign, if present. Otherwise, emit an error.
40533 * util/grub-emu.c: Do not include malloc.h.
40535 * include/grub/util/misc.h: Include unistd.h. This is required for
40536 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
40537 D. Eades III <hde@foobar-qux.org>.
40539 * configure.ac (AC_GNU_SOURCE): Added.
40540 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
40543 2006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
40545 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
40546 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
40548 2006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
40550 * include/grub/types.h (grub_host_addr_t): Rename to
40551 grub_target_addr_t.
40552 (grub_host_off_t): Rename to grub_target_off_t.
40553 (grub_host_size_t): Rename to grub_target_size_t.
40554 (grub_host_ssize_t): Rename to grub_target_ssize_t.
40555 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
40557 * include/grub/kernel.h (struct grub_module_header): Change type
40558 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
40559 (grub_module_info): Likewise.
40561 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
40563 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
40564 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
40565 Velazquez <jesus.velazquez@gmail.com>.
40567 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
40569 Count partitions from 1 instead of 0 in the string representation
40570 of partitions. Still use 0-based internally.
40572 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
40573 (sun_partition_map_iterate): Use grub_partition_t instead of
40574 struct grub_partition *. Cast DESC->START_CYLINDER to
40575 grub_uint64_t after converting the endian.
40576 (sun_partition_map_probe): Subtract 1 for PARTNUM.
40577 (sun_partition_map_get_name): Add 1 to P->INDEX.
40579 * partmap/pc.c (grub_partition_parse): Subtract 1 for
40581 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
40583 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
40584 zero instead of one.
40585 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
40586 (gpt_partition_map_get_name): Add 1 into P->INDEX.
40588 * partmap/apple.c (apple_partition_map_iterate): Change the type
40589 of POS to unsigned.
40590 (apple_partition_map_probe): Subtract 1 for PARTNUM.
40591 (apple_partition_map_get_name): Add 1 into P->INDEX.
40593 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
40594 of POS to unsigned.
40595 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
40596 calculate the offset of a partition.
40597 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
40598 (amiga_partition_map_get_name): Add 1 into P->INDEX.
40600 * partmap/acorn.c (acorn_partition_map_find): Change the type of
40601 SECTOR to grub_disk_addr_t.
40602 (acorn_partition_map_iterate): Likewise.
40603 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
40604 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
40606 (acorn_partition_map_get_name): Add 1 into P->INDEX.
40608 * kern/i386/pc/init.c (make_install_device): Add 1 into
40609 GRUB_INSTALL_DOS_PART.
40611 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
40614 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
40616 Clean up the code to support 64-bit addressing in disks and
40617 files. This change is not enough for filesystems yet.
40619 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
40620 type of "start" to grub_uint64_t.
40621 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
40622 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
40623 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
40626 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
40627 to grub_disk_addr_t.
40629 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
40632 * partmap/pc.c (pc_partition_map_iterate): Likewise.
40634 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
40637 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
40639 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
40641 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
40643 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
40644 to grub_off_t, to detect an error from grub_file_seek.
40645 (grub_multiboot_load_elf32): Likewise.
40647 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
40648 maximum unsigned long value when an overflow is detected.
40649 (grub_strtoull): New function.
40650 (grub_divmod64): Likewise.
40651 (grub_lltoa): use grub_divmod64.
40653 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
40655 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
40656 the pointer to next character. Use grub_strtoull instead of
40658 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
40659 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
40662 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
40663 return value is signed.
40664 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
40665 test if OFFSET is less than zero, as OFFSET is unsigned now.
40667 * kern/disk.c (struct grub_disk_cache): Change the type of
40668 "sector" to grub_disk_addr_t.
40669 (grub_disk_cache_get_index): Change the type of SECTOR to
40670 grub_disk_addr_t. Calculate the hash with SECTOR casted to
40671 unsigned after shifting.
40672 (grub_disk_cache_invalidate): Change the type of SECTOR to
40674 (grub_disk_cache_unlock): Likewise.
40675 (grub_disk_cache_store): Likewise.
40676 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
40677 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
40678 grub_disk_addr_t and grub_uint64_t, respectively.
40679 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
40680 body, as the value of OFFSET is tweaked by
40681 grub_disk_check_range. Change the types of START_SECTOR, LEN and
40682 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
40684 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
40685 body, as the value of OFFSET is tweaked by
40686 grub_disk_check_range. Change the types of LEN and N to
40689 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
40690 and "saved_offset" to grub_off_t.
40691 (test_header): Cast BUF to char *.
40692 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
40694 (grub_gzio_read): Change the types of OFFSET and SIZE to
40695 grub_off_t and grub_size_t, respectively.
40697 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
40699 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
40700 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
40701 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
40702 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
40703 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
40705 * include/grub/types.h (grub_off_t): Unconditionally set to
40707 (grub_disk_addr_t): Changed to grub_uint64_t.
40709 * include/grub/partition.h (struct grub_partition): Change the
40710 types of "start", "len" and "offset" to grub_disk_addr_t,
40711 grub_uint64_t and grub_disk_addr_t, respectively.
40712 (grub_partition_get_start): Return grub_disk_addr_t.
40713 (grub_partition_get_len): Return grub_uint64_t.
40715 * include/grub/misc.h (grub_strtoull): New prototype.
40716 (grub_divmod64): Likewise.
40718 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
40719 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
40720 grub_off_t, respectively.
40721 All callers and references changed.
40723 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
40724 grub_size_t in "read".
40725 All callers and references changed.
40727 * include/grub/file.h (struct grub_file): Change the types of
40728 "offset" and "size" to grub_off_t and grub_off_t,
40729 respectively. Change the type of SECTOR to grub_disk_addr_t in
40731 (grub_file_read): Change the type of LEN to grub_size_t.
40732 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
40734 (grub_file_size): Return grub_off_t.
40735 (grub_file_tell): Likewise.
40736 All callers and references changed.
40738 * include/grub/disk.h (struct grub_disk_dev): Change the types of
40739 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
40741 (struct grub_disk): Change the type of "total_sectors" to
40742 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
40744 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
40745 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
40746 (grub_disk_write): Likewise.
40747 All callers and references changed.
40749 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
40750 char * for grub_strncmp to silence gcc.
40751 (grub_iso9660_mount): Likewise.
40752 (grub_iso9660_mount): Likewise.
40753 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
40755 (grub_iso9660_iterate_dir): Likewise.
40756 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
40758 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
40759 LEN to grub_disk_addr_t and grub_size_t, respectively.
40761 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
40763 * fs/jfs.c (grub_jfs_read_file): Likewise.
40765 * fs/minix.c (grub_jfs_read_file): Likewise.
40767 * fs/sfs.c (grub_jfs_read_file): Likewise.
40769 * fs/ufs.c (grub_jfs_read_file): Likewise.
40771 * fs/xfs.c (grub_jfs_read_file): Likewise.
40773 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
40774 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
40777 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
40778 BLKNR to -1 instead of returning GRUB_ERRNO.
40779 (grub_ext2_read_file): Change the types of SECTOR and
40780 LEN to grub_disk_addr_t and grub_size_t, respectively.
40782 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
40783 LEN to grub_disk_addr_t and grub_size_t, respectively.
40785 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
40788 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
40789 string. Do not cast SECTOR explicitly.
40791 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
40792 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
40793 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
40794 grub_disk_addr_t and grub_size_t, respectively. If the sector is
40795 over 2TB and LBA mode is not supported, raise an error.
40796 (get_safe_sectors): New function.
40797 (grub_biosdisk_read): Use get_safe_sectors.
40798 (grub_biosdisk_write): Likewise.
40800 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
40801 (grub_efidisk_write): Likewise.
40803 * disk/loopback.c (delete_loopback): Cosmetic changes.
40804 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
40806 (grub_loopback_open): Likewise.
40807 (grub_loopback_read): Likewise. Also, change the type of POS to
40808 grub_off_t, and fix the usage of grub_memset.
40810 * commands/i386/pc/play.c: Include grub/machine/time.h.
40812 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
40815 * commands/configfile.c: Include grub/env.h.
40817 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
40818 GRUB_ERRNO directly instead. Change the type of POS to
40819 grub_off_t. Follow the coding standard.
40821 * commands/blocklist.c: Include grub/partition.h.
40822 (grub_cmd_blocklist): Return an error if the underlying device is
40823 not a disk. Take the starting sector of a partition into account,
40824 if a partition is used.
40826 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
40828 (lba_mode): Support 64-bit addresses.
40829 (chs_mode): Likewise.
40830 (copy_buffer): Adapted to the new offsets of a length field and a
40832 (blocklist_default_start): Allocate 64-bit space.
40834 * boot/i386/pc/boot.S (force_lba): Removed.
40835 (boot_drive): Moved to under KERNEL_SECTOR.
40836 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
40838 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
40840 (lba_mode): Refactored to support a 64-bit address. More size
40842 (setup_sectors): Likewise.
40844 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
40846 * DISTLIST: Added include/grub/i386/linux.h. Removed
40847 include/grub/i386/pc/linux.h
40849 * configure.ac (AC_INIT): Bumped to 1.94.
40851 * config.guess: Updated from gnulib.
40852 * config.sub: Likewise.
40853 * install-sh: Likewise.
40854 * mkinstalldirs: Likewise.
40856 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
40858 * conf/common.rmk (grub_modules_init.lst): Depended on
40859 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
40862 * genmk.rb (PModule::rule): Reverted the previous change.
40864 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
40866 * conf/common.rmk (grub_modules_init.lst): Depends on
40867 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
40868 that the target does not exist before producing.
40869 (grub_modules_init.h): Remove the target before generating.
40870 (grub_emu_init.c): Likewise.
40872 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
40874 2006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
40876 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
40877 for the target-specific tests. Make sure that we also have the
40878 up-to-date target variables for those tests.
40880 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
40882 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
40883 (PModule::rule): Likewise.
40885 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
40887 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
40888 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
40889 target-specific flags should be prefixed.
40890 (PModule::rule): Likewise.
40892 2006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
40894 * configure.ac (CMP): Check if cmp is available explicitly.
40896 2006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
40898 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
40899 (target_cpu): New variable.
40900 (pkglibdir): Use target_cpu instead of host_cpu.
40902 * util/i386/pc/grub-install.in (host_cpu): Removed.
40903 (target_cpu): New variable.
40904 (pkglibdir): Use target_cpu instead of host_cpu.
40906 * util/genmoddep.c: Removed.
40908 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
40909 instead of GRUB_HOST_SIZEOF_VOID_P.
40910 * kern/dl.c: Likewise.
40912 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
40914 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
40915 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
40916 (GRUB_TARGET_SIZEOF_LONG): ... this.
40917 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
40918 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
40919 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
40921 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
40922 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
40923 (GRUB_TARGET_SIZEOF_LONG): ... this.
40924 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
40925 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
40926 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
40928 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
40929 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
40930 (GRUB_TARGET_SIZEOF_LONG): ... this.
40931 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
40932 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
40934 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
40935 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
40936 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
40937 instead of GRUB_HOST_SIZEOF_LONG.
40938 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
40939 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
40940 GRUB_CPU_WORDS_BIGENDIAN.
40941 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
40942 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
40945 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
40946 (genmoddep_SOURCES): Likewise.
40947 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
40948 (genmoddep_SOURCES): Likewise.
40949 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
40950 (genmoddep_SOURCES): Likewise.
40951 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
40953 (genmoddep_SOURCES): Likewise.
40955 * genmoddep.awk: New file.
40957 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
40958 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
40959 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
40960 (PModule::rule): Likewise.
40961 (Program::rule): Likewise.
40962 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
40963 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
40966 * configure.ac: Rewritten intensively to use host and target
40967 instead of build and host, respectively.
40969 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
40970 (host_cpu): Removed.
40971 (target_cpu): New variable.
40972 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
40973 (BUILD_CC): Removed.
40974 (BUILD_CFLAGS): Likewise.
40975 (BUILD_CPPFLAGS): Likewise.
40976 (TARGET_CC): New variable.
40977 (TARGET_CFLAGS): Likewise.
40978 (TARGET_CPPFLAGS): Likewise.
40979 (TARGET_LDFLAGS): Likewise.
40981 (include): Use target_cpu instead of host_cpu.
40982 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
40984 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
40986 2006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
40988 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
40989 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
40990 field 'false' to 'exec_on_false'.
40991 (grub_script_create_cmdif): Renamed argument names to reflect above
40994 * normal/execute.c (grub_script_execute_cmdif): Likewise.
40996 * normal/script.c (grub_script_create_cmdif): Likewise.
40998 2006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
41000 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
41002 (grub_hfsplus_btree_recptr): Likewise.
41003 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
41004 FILEBLOCK both to pass a block number and store next block
41006 (grub_hfsplus_read_block): Rewritten heavily to support an extent
41007 overflow file correctly. Specify errors appropriately, because
41008 fshelp expects that GRUB_ERRNO is set when fails. Reuse
41009 grub_hfsplus_btree_recptr to get the pointer to a found key.
41010 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
41013 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
41015 (_linux_mod_SOURCES): New variable.
41016 (_linux_mod_CFLAGS): Likewise.
41017 (_linux_mod_LDFLAGS): Likewise.
41018 (linux_mod_SOURCES): Likewise.
41019 (linux_mod_CFLAGS): Likewise.
41020 (linux_mod_LDFLAGS): Likewise.
41022 * DISTLIST: Added loader/i386/efi/linux.c,
41023 loader/i386/efi/linux_normal.c and
41024 include/grub/i386/efi/loader.h.
41026 * loader/i386/efi/linux.c: New file.
41027 * loader/i386/efi/linux_normal.c: Likewise.
41028 * include/grub/i386/efi/loader.h: Likewise.
41030 2006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
41032 * commands/blocklist.c: New file.
41034 * DISTLIST: Added commands/blocklist.c.
41036 * term/efi/console.c (grub_console_highlight_color): Use a lighter
41037 color for the background, and a darker color for the foreground.
41038 (grub_console_checkkey): Return READ_KEY.
41039 (grub_console_cls): Set the background to
41040 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
41042 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
41044 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
41045 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
41047 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
41050 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
41051 BG. The spec is wrong again.
41053 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
41055 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
41057 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
41058 commands/blocklist.c.
41059 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41061 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
41062 (blocklist_mod_SOURCES): New variable.
41063 (blocklist_mod_CFLAGS): Likewise.
41064 (blocklist_mod_LDFLAGS): Likewise.
41066 2006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
41068 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
41070 (lba_mode): Use %eax more intensively to reduce the code size.
41072 2006-05-20 Marco Gerards <marco@gnu.org>
41074 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
41076 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
41078 (script): Accept leading newlines.
41079 (newlines): New rule to describe 0 or more newlines.
41080 (commands): Accept `command' with trailing newline. Fixed the
41081 order in which arguments were passed to `grub_script_add_cmd'.
41082 Accept commands separated by newlines.
41083 (function): Changed to accept newlines.
41084 (menuentry) Rewritten.
41086 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
41087 front of the list, instead of to the end.
41089 2006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
41091 * util/i386/pc/grub-install.in (bindir): New variable.
41092 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
41093 Shaver <lbgwjl@gmail.com>.
41095 2006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
41097 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
41098 grub/machine/linux.h
41099 * loader/i386/pc/linux.c: Likewise.
41101 * include/grub/i386/pc/linux.h: Moved to ...
41102 * include/grub/i386/linux.h: ... here.
41104 * include/grub/i386/linux.h (struct linux_kernel_params): New
41107 2006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
41109 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
41111 (grub_video_vbe_blit_glyph): Likewise.
41112 (grub_video_vbe_blit_bitmap): Likewise.
41113 (grub_video_vbe_blit_render_target): Likewise.
41115 2006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
41117 * configure.ac (--with-platform): Properly quote the square
41120 2006-05-08 Marco Gerards <marco@gnu.org>
41122 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
41124 (kernel_elf_HEADERS): ...to this. Updated all users.
41125 (grubof_symlist.c): Renamed from this...
41126 (kernel_elf_symlist.c): ...to this. Updated all users.
41127 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
41128 (grubof_SOURCES): Renamed from this...
41129 (kernel_elf_SOURCES): ...to this.
41130 (grubof_HEADERS): Renamed from this...
41131 (kernel_elf_HEADERS): ...to this.
41132 (grubof_CFLAGS): Renamed from this...
41133 (kernel_elf_CFLAGS): ...to this.
41134 (grubof_ASFLAGS): Renamed from this...
41135 (kernel_elf_ASFLAGS): ...to this.
41136 (grubof_LDFLAGS): Renamed from this...
41137 (kernel_elf_LDFLAGS): ...to this.
41139 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
41141 (kernel_elf_HEADERS): ...to this. Updated all users.
41142 (grubof_symlist.c): Renamed from this...
41143 (kernel_elf_symlist.c): ...to this. Updated all users.
41144 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
41145 (grubof_SOURCES): Renamed from this...
41146 (kernel_elf_SOURCES): ...to this.
41147 (grubof_HEADERS): Renamed from this...
41148 (kernel_elf_HEADERS): ...to this.
41149 (grubof_CFLAGS): Renamed from this...
41150 (kernel_elf_CFLAGS): ...to this.
41151 (grubof_ASFLAGS): Renamed from this...
41152 (kernel_elf_ASFLAGS): ...to this.
41153 (grubof_LDFLAGS): Renamed from this...
41154 (kernel_elf_LDFLAGS): ...to this.
41156 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
41157 `kernel.elf' instead of `grubof'.
41159 2006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
41161 Add --with-platform to configure. Use pkglibdir instead of
41162 pkgdatadir. This is reported by Roger Leigh.
41164 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
41165 (host_vendor): Likewise.
41166 (host_os): Likewise.
41167 (pkgdatadir): Likewise.
41168 (platform): New variable.
41169 (pkglibdir): Likewise.
41170 Use PKGLIBDIR instead of PKGDATADIR.
41172 * util/i386/pc/grub-install.in (datadir): Removed.
41173 (host_vendor): Likewise.
41174 (host_os): Likewise.
41175 (pkgdatadir): Likewise.
41176 (platform): New variable.
41177 (pkglibdir): Likewise.
41178 Use PKGLIBDIR instead of PKGDATADIR.
41180 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
41181 instead of GRUB_DATADIR.
41183 * util/i386/pc/grub-mkimage.c (usage): Likewise.
41185 * util/i386/efi/grub-mkimage.c (usage): Likewise.
41188 * configure.ac (--with-platform): New option.
41189 Use PLATFORM instead of HOST_VENDOR to specify a platform.
41191 * Makefile.in: Include a makefile based on PLATFORM instead of
41193 (pkgdatadir): Not appended by the machine type.
41194 (pkglibdir): Appended by the machine type.
41195 (host_vendor): Removed.
41196 (platform): New variable.
41197 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
41198 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
41199 (uninstall): Likewise.
41201 2006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
41203 Use the environment context in the menu. Remove the commands
41204 "default" and "timeout", and use variables instead.
41206 * normal/menu.c: Include grub/env.h.
41207 (print_entry): Cast TITLE to silence gcc.
41208 (get_timeout): New function.
41209 (set_timeout): Likewise.
41210 (get_entry_number): Likewise.
41211 (run_menu): Use a default entry, a fallback entry and a timeout
41212 in the environment variables "default", "fallback" and
41213 "timeout". Also, tweak the default entry if it is not within the
41214 current menu entries.
41215 (grub_menu_run): Use a fallback entry in the environment variable
41218 * normal/main.c (read_config_file): Do not initialize
41219 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
41221 (grub_normal_execute): Use a data slot to store the menu.
41223 * include/grub/normal.h (struct grub_menu): Removed default_entry,
41224 fallback_entry and timeout.
41225 (struct grub_menu_list): Removed.
41226 (grub_menu_list_t): Likewise.
41227 (struct grub_context): Likewise.
41228 (grub_context_t): Likewise.
41229 (grub_context_get): Likewise.
41230 (grub_context_get_current_menu): Likewise.
41231 (grub_context_push_menu): Likewise.
41232 (grub_context_pop_menu): Likewise.
41233 (grub_default_init): Likewise.
41234 (grub_default_fini): Likewise.
41235 (grub_timeout_init): Likewise.
41236 (grub_timeout_fini): Likewise.
41238 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
41240 (normal_mod_SOURCES): Removed normal/context.c.
41242 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
41243 commands/default.c, commands/timeout.c and normal/context.c.
41244 (normal_mod_SOURCES): Removed normal/context.c.
41246 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
41247 commands/timeout.c and normal/context.c.
41248 (normal_mod_SOURCES): Removed normal/context.c.
41250 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
41251 commands/default.c, commands/timeout.c and normal/context.c.
41252 (normal_mod_SOURCES): Removed normal/context.c.
41254 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
41256 (default_mod_SOURCES): Removed.
41257 (default_mod_CFLAGS): Likewise.
41258 (default_mod_LDFLAGS): Likewise.
41259 (timeout_mod_SOURCES): Removed.
41260 (timeout_mod_CFLAGS): Likewise.
41261 (timeout_mod_LDFLAGS): Likewise.
41263 * DISTLIST: Removed commands/default.c, commands/timeout.c and
41266 * commands/default.c: Removed.
41267 * commands/timeout.c: Likewise.
41268 * normal/context.c: Likewise.
41270 2006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
41272 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
41274 2006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
41276 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
41277 "next" to "prev" for readability.
41278 (struct grub_env_sorted_var): New struct.
41279 (grub_env_context): Renamed to ...
41280 (initial_context): ... this.
41281 (grub_env_var_context): Renamed to ...
41282 (current_context): ... this.
41283 (grub_env_find): Look only at CURRENT_CONTEXT.
41284 (grub_env_context_open): Rewritten to copy exported variables from
41286 (grub_env_context_close): Rewritten according to the new
41287 scheme. Also, add an assertion to prevent the initial context from
41289 (grub_env_insert): Removed the code for the sorted list.
41290 (grub_env_remove): Likewise.
41291 (grub_env_export): Simply mark the variable with
41292 GRUB_ENV_VAR_GLOBAL.
41293 (grub_env_set): A cosmetic change for naming consistency.
41294 (grub_env_get): Likewise.
41295 (grub_env_unset): Likewise.
41296 (grub_env_iterate): Rewritten to sort variables within this
41298 (grub_register_variable_hook): Fixed for naming consistency. Call
41299 grub_env_find again, only if NAME is not found at the first time.
41300 (mangle_data_slot_name): New function.
41301 (grub_env_set_data_slot): Likewise.
41302 (grub_env_get_data_slot): Likewise.
41303 (grub_env_unset_data_slot): Likewise.
41305 * include/grub/env.h (grub_env_var_type): New enum.
41306 (GRUB_ENV_VAR_LOCAL): New constant.
41307 (GRUB_ENV_VAR_GLOBAL): Likewise.
41308 (GRUB_ENV_VAR_DATA): Likewise.
41309 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
41311 (grub_env_set): Replace VAR with NAME for consistency.
41312 (grub_register_variable_hook): Likewise.
41313 (grub_env_export): Specify the name of the argument.
41314 (grub_env_set_data_slot): New prototype.
41315 (grub_env_get_data_slot): Likewise.
41316 (grub_env_unset_data_slot): Likewise.
41318 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
41320 Extend the loader so that GRUB can accept a loader which comes
41321 back to GRUB when a loaded image exits. Also, this change adds
41322 support for a chainloader on EFI.
41324 * term/efi/console.c: Include grub/misc.h.
41325 (grub_console_checkkey): Display a scan code on the top for
41326 debugging. This will be removed once the EFI port gets stable.
41327 Correct the scan code mapping.
41329 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
41330 allocate memory from larger regions, in order to reduce the number
41331 of allocated regions. Otherwise, the MacOSX loader panics.
41332 (filter_memory_map): Avoid less than 1MB for compatibility with
41334 (add_memory_regions): Allocate from the tail of a region, if
41335 possible, to avoid allocating a region near to 1MB, for the MacOSX
41338 * kern/efi/init.c (grub_efi_set_prefix): Specify
41339 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
41341 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
41342 argument IMAGE_HANDLE and specify it to get a loaded image.
41343 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
41344 grub_efi_get_loaded_image.
41345 (grub_efi_get_filename): Divide the length by the size of
41347 (grub_efi_get_device_path): New function.
41348 (grub_efi_print_device_path): Print End Device Path nodes. Divide
41349 the length by the size of grub_efi_char16_t for a file path device
41352 * kern/loader.c (grub_loader_noreturn): New variable.
41353 (grub_loader_set): Accept a new argument NORETURN. Set
41354 GRUB_LOADER_NORETURN to NORETURN.
41355 All callers changed.
41356 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
41359 * include/grub/efi/efi.h (grub_efi_get_device_path): New
41361 (grub_efi_get_loaded_image): Take an argument to specify an image
41364 * include/grub/loader.h (grub_loader_set): Added one more argument
41367 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
41368 instead of grub_efi_open_protocol.
41369 (grub_efidisk_get_device_name): Likewise.
41370 (grub_efidisk_close): Print a newline.
41371 (grub_efidisk_get_device_handle): Fixed to use
41372 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
41373 GRUB_EFI_DEVICE_PATH_TYPE.
41375 * disk/efi/efidisk.c (device_path_guid): Moved to ...
41376 * kern/efi/efi.c (device_path_guid): ... here.
41378 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
41380 (kernel_mod_HEADERS): Added efi/disk.h.
41381 (_chain_mod_SOURCES): New variable.
41382 (_chain_mod_CFLAGS): Likewise.
41383 (_chain_mod_LDFLAGS): Likewise.
41384 (chain_mod_SOURCES): Likewise.
41385 (chain_mod_CFLAGS): Likewise.
41386 (chain_mod_LDFLAGS): Likewise.
41388 * DISTLIST: Added include/grub/efi/chainloader.h,
41389 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
41391 * include/grub/efi/chainloader.h: New file.
41392 * loader/efi/chainloader.c: Likewise.
41393 * loader/efi/chainloader_normal.c: Likewise.
41395 2006-04-30 Marco Gerards <marco@gnu.org>
41397 * commands/configfile.c (grub_cmd_source): New function.
41398 (GRUB_MOD_INIT): Register the commands `source' and `.'.
41399 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
41401 2006-04-30 Marco Gerards <marco@gnu.org>
41403 * normal/execute.c (grub_script_execute_cmd): Change the return
41404 type to `grub_err_t'. Correctly return the error.
41405 (grub_script_execute_cmdline): In case a command line is not a
41406 command or a function, try to interpret it as an assignment.
41408 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
41410 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
41411 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
41412 skip a node whose name is obviously invalid as UTF-16,
41413 i.e. contains a NUL character. Stop the iteration when the last
41414 directory entry is found. Instead of using the return value of
41415 grub_hfsplus_btree_iterate_node, store the value in RET and use
41416 it, because the iterator can be stopped by the last directory
41419 2006-04-30 Marco Gerards <marco@gnu.org>
41421 * include/grub/env.h (grub_env_export): New prototype. Reported
41422 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
41424 2006-04-30 Marco Gerards <marco@gnu.org>
41426 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
41427 size of the extents in a catalog file record.
41429 2006-04-29 Marco Gerards <marco@gnu.org>
41431 * commands/configfile.c (grub_cmd_configfile): Execute the
41432 configfile within its own context.
41434 * include/grub/env.h (grub_env_context_open): New prototype.
41435 (grub_env_context_close): Likewise.
41437 * kern/env.c (grub_env): Removed.
41438 (grub_env_sorted): Likewise.
41439 (grub_env_context): New variable.
41440 (grub_env_var_context): Likewise.
41441 (grub_env_find): Search both the active context and the global
41443 (grub_env_context_open): New function.
41444 (grub_env_context_close): Likewise.
41445 (grub_env_insert): Likewise.
41446 (grub_env_remove): Likewise.
41447 (grub_env_export): Likewise.
41448 (grub_env_set): Changed to use helper functions to avoid code
41450 (grub_env_iterate): Rewritten so both the current context and the
41451 global context are being used.
41453 * normal/command.c (export_command): New function.
41454 (grub_command_init): Register the `export' function.
41456 2006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
41458 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
41459 explicitly to suppress gcc's warnings.
41460 * fs/fat.c (grub_fat_find_dir): Likewise.
41461 (grub_fat_label): Likewise.
41462 * fs/xfs.c (grub_xfs_read_inode): Likewise.
41463 (grub_xfs_mount): Likewise.
41464 (grub_xfs_label): Likewise.
41465 * fs/affs.c (grub_affs_mount): Likewise.
41466 (grub_affs_label): Likewise.
41467 (grub_affs_iterate_dir): Likewise.
41468 * fs/sfs.c (grub_sfs_mount): Likewise.
41469 (grub_sfs_iterate_dir): Likewise.
41470 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
41471 * fs/hfs.c (grub_hfs_mount): Likewise.
41472 (grub_hfs_cmp_catkeys): Likewise.
41473 (grub_hfs_find_dir): Likewise.
41474 (grub_hfs_dir): Likewise.
41475 (grub_hfs_label): Likewise.
41476 * fs/jfs.c (grub_jfs_mount): Likewise.
41477 (grub_jfs_opendir): Likewise.
41478 (grub_jfs_getent): Likewise.
41479 (grub_jfs_lookup_symlink): Likewise.
41480 (grub_jfs_label): Likewise.
41481 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
41482 (grub_hfsplus_iterate_dir): Likewise.
41483 (grub_hfsplus_btree_iterate_node): Made static.
41485 * util/grub-emu.c (prefix): New variable.
41486 (grub_machine_set_prefix): New function.
41487 (main): Do not set the environment variable "prefix" here. Only
41488 set PREFIX, which is used later by grub_machine_set_prefix.
41490 * include/grub/video.h: Do not include grub/symbol.h.
41491 (grub_video_register): Not exported. This symbol is not defined in
41493 (grub_video_unregister): Likewise.
41494 (grub_video_iterate): Likewise.
41495 (grub_video_setup): Likewise.
41496 (grub_video_restore): Likewise.
41497 (grub_video_get_info): Likewise.
41498 (grub_video_get_blit_format): Likewise.
41499 (grub_video_set_palette): Likewise.
41500 (grub_video_get_palette): Likewise.
41501 (grub_video_set_viewport): Likewise.
41502 (grub_video_get_viewport): Likewise.
41503 (grub_video_map_color): Likewise.
41504 (grub_video_map_rgb): Likewise.
41505 (grub_video_map_rgba): Likewise.
41506 (grub_video_fill_rect): Likewise.
41507 (grub_video_blit_glyph): Likewise.
41508 (grub_video_blit_bitmap): Likewise.
41509 (grub_video_blit_render_target): Likewise.
41510 (grub_video_scroll): Likewise.
41511 (grub_video_swap_buffers): Likewise.
41512 (grub_video_create_render_target): Likewise.
41513 (grub_video_delete_render_target): Likewise.
41514 (grub_video_set_active_render_target): Likewise.
41516 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
41518 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
41520 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
41521 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
41522 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
41523 instead of $(srcdir)/genkernsyms.sh.
41525 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
41526 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
41527 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
41528 instead of $(srcdir)/genkernsyms.sh.
41530 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
41531 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
41532 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
41533 instead of $(srcdir)/genkernsyms.sh.
41535 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
41536 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
41537 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
41538 instead of $(srcdir)/genkernsyms.sh.
41540 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
41543 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
41545 (gensymlist.sh): New target.
41546 (genkernsyms.sh): Likewise.
41548 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
41549 genkernsyms.sh.in and gensymlist.sh.in.
41551 * genkernsyms.sh: Removed.
41552 * gensymlist.sh: Likewise.
41554 * genkernsyms.sh.in: New file.
41555 * gensymlist.sh.in: Likewise.
41557 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
41559 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
41560 clobber "prefix", since we may have already set it manually.
41562 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
41564 * kern/misc.c (abort): New alias for grub_abort.
41566 2006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
41568 A new machine-specific function "grub_machine_set_prefix" is
41569 defined. This is called after loading modules, so that a prefix
41570 initialization can use modules. Also, this change adds an
41571 intensive debugging feature for the memory manager via the
41572 configure option "--enable-mm-debug".
41574 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
41577 * kern/sparc64/ieee1275/init.c (abort): Removed.
41578 (grub_stop): Likewise.
41579 (grub_exit): New function.
41580 (grub_set_prefix): Renamed to ...
41581 (grub_machine_set_prefix): ... this.
41582 (grub_machine_init): Do not call grub_set_prefix.
41584 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
41585 (grub_machine_set_prefix): ... this.
41586 (grub_machine_init): Do not call grub_set_prefix.
41588 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
41589 (grub_machine_init): Do not set the prefix here.
41591 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
41593 * kern/efi/init.c: Include grub/mm.h.
41594 (grub_efi_set_prefix): New function.
41596 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
41597 (grub_efi_get_filename): New function.
41598 (grub_print_device_path): Renamed to ...
41599 (grub_efi_print_device_path): ... this.
41601 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
41602 [MM_DEBUG] (grub_realloc): Likewise.
41603 [MM_DEBUG] (grub_free): Likewise.
41604 [MM_DEBUG] (grub_memalign): Likewise.
41605 [MM_DEBUG] (grub_mm_debug): New variable.
41606 [MM_DEBUG] (grub_debug_malloc): New function.
41607 [MM_DEBUG] (grub_debug_free): New function.
41608 [MM_DEBUG] (grub_debug_realloc): New function.
41609 [MM_DEBUG] (grub_debug_memalign): New function.
41611 * kern/misc.c (grub_abort): Print a newline to distinguish
41614 * kern/main.c (grub_main): Call grub_machine_set_prefix and
41615 grub_set_root_dev after loading modules. This is necessary when
41616 setting a prefix depends on modules.
41618 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
41619 (grub_efi_print_device_path): ... this.
41620 (grub_efi_get_filename): New prototype.
41621 (grub_efi_set_prefix): Likewise.
41623 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
41625 (grub_efidisk_get_device_handle): New prototype.
41626 (grub_efidisk_get_device_name): Likewise.
41628 * include/grub/mm.h: Include config.h.
41629 (MM_DEBUG): Removed.
41630 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
41631 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
41632 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
41633 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
41634 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
41635 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
41636 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
41637 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
41638 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
41640 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
41642 * disk/efi/efidisk.c: Include grub/partition.h.
41643 (iterate_child_devices): New function.
41644 (add_device): First, compare only last device path nodes, so that
41645 devices are sorted by the types.
41646 (grub_efidisk_get_device_handle): New function.
41647 (grub_efidisk_get_device_name): Likewise.
41649 * configure.ac (--enable-mm-debug): New option to enable the
41650 memory manager debugging feature. This makes the binary much
41651 bigger, so is disabled by default.
41653 2006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
41655 Use grub_abort instead of grub_stop, and grub_exit must be
41656 define in each architecture now. Also, this change adds support
41659 * util/i386/pc/grub-probefs.c: Include grub/term.h.
41660 (grub_getkey): New function.
41661 (grub_term_get_current): Likewise.
41663 * util/i386/pc/grub-setup.c: Include grub/term.h.
41664 (grub_getkey): New function.
41665 (grub_term_get_current): Likewise.
41667 * util/misc.c (grub_stop): Renamed to ...
41668 (grub_exit): ... this.
41670 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
41671 (grub_exit): ... this.
41672 (grub_machine_init): Use grub_abort instead of abort.
41673 (grub_stop): Removed.
41675 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
41678 * kern/i386/pc/startup.S (grub_exit): New function.
41679 (cold_reboot): New label.
41681 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
41682 (grub_efi_init): Call grub_efidisk_init.
41683 (grub_efi_fini): Call grub_efidisk_fini.
41685 * kern/efi/efi.c: Include grub/mm.h.
41686 (grub_efi_console_control_guid): Renamed to ...
41687 (console_control_guid): ... this.
41688 (grub_efi_loaded_image_guid): Renamed to ...
41689 (loaded_image_guid): ... this.
41690 (grub_efi_locate_handle): New function.
41691 (grub_efi_open_protocol): Likewise.
41692 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
41693 GRUB_EFI_CONSOLE_CONTROL_GUID.
41694 (grub_efi_exit): Removed.
41695 (grub_stop): Likewise.
41696 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
41697 (grub_exit): New function.
41698 (grub_print_device_path): Likewise.
41700 * kern/rescue.c (grub_rescue_cmd_exit): New function.
41701 (grub_enter_rescue_mode): Register "exit".
41703 * kern/misc.c (grub_real_dprintf): A cosmetic change.
41704 (grub_abort): New function.
41706 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
41708 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
41710 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
41712 * include/grub/efi/efi.h (grub_efi_exit): Removed.
41713 (grub_print_device_path): New prototype.
41714 (grub_efi_locate_handle): Likewise.
41715 (grub_efi_open_protocol): Likewise.
41717 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
41718 * disk/efi/efidisk.c: Likewise.
41720 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
41722 * include/grub/efi/console_control.h
41723 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
41725 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
41726 last 8 bytes as an array.
41727 (GRUB_EFI_DISK_IO_GUID): New macro.
41728 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
41729 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
41730 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
41732 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
41733 (struct grub_efi_device_path): Rename the member "sub_type" to
41735 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
41736 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
41737 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
41738 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
41739 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
41740 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
41741 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
41742 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
41743 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
41744 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
41745 (struct grub_efi_pci_device_path): New structure.
41746 (grub_efi_pci_device_path_t): New type.
41747 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
41748 (struct grub_efi_pccard_device_path): New structure.
41749 (grub_efi_pccard_device_path_t): New type.
41750 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
41751 (struct grub_efi_memory_mapped_device_path): New structure.
41752 (grub_efi_memory_mapped_device_path_t): New type.
41753 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
41754 (struct grub_efi_vendor_device_path): New structure.
41755 (grub_efi_vendor_device_path_t): New type.
41756 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
41757 (struct grub_efi_controller_device_path): New structure.
41758 (grub_efi_controller_device_path_t): New type.
41759 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
41760 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
41761 (struct grub_efi_acpi_device_path): New structure.
41762 (grub_efi_acpi_device_path_t): New type.
41763 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
41764 (struct grub_efi_expanded_acpi_device_path): New structure.
41765 (grub_efi_expanded_acpi_device_path_t): New type.
41766 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
41767 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
41768 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
41769 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
41770 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
41771 (struct grub_efi_atapi_device_path): New structure.
41772 (grub_efi_atapi_device_path_t): New type.
41773 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
41774 (struct grub_efi_fibre_channel_device_path): New structure.
41775 (grub_efi_fibre_channel_device_path_t): New type.
41776 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
41777 (struct grub_efi_1394_device_path): New structure.
41778 (grub_efi_1394_device_path_t): New type.
41779 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
41780 (struct grub_efi_usb_device_path): New structure.
41781 (grub_efi_usb_device_path_t): New type.
41782 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
41783 (struct grub_efi_usb_class_device_path): New structure.
41784 (grub_efi_usb_class_device_path_t): New type.
41785 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
41786 (struct grub_efi_i2o_device_path): New structure.
41787 (grub_efi_i2o_device_path_t): New type.
41788 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
41789 (struct grub_efi_mac_address_device_path): New structure.
41790 (grub_efi_mac_address_device_path_t): New type.
41791 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
41792 (struct grub_efi_ipv4_device_path): New structure.
41793 (grub_efi_ipv4_device_path_t): New type.
41794 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
41795 (struct grub_efi_ipv6_device_path): New structure.
41796 (grub_efi_ipv6_device_path_t): New type.
41797 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
41798 (struct grub_efi_infiniband_device_path): New structure.
41799 (grub_efi_infiniband_device_path_t): New type.
41800 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
41801 (struct grub_efi_uart_device_path): New structure.
41802 (grub_efi_uart_device_path_t): New type.
41803 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
41804 (struct grub_efi_vendor_messaging_device_path): New structure.
41805 (grub_efi_vendor_messaging_device_path_t): New type.
41806 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
41807 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
41808 (struct grub_efi_hard_drive_device_path): New structure.
41809 (grub_efi_hard_drive_device_path_t): New type.
41810 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
41811 (struct grub_efi_cdrom_device_path): New structure.
41812 (grub_efi_cdrom_device_path_t): New type.
41813 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
41814 (struct grub_efi_vendor_media_device_path): New structure.
41815 (grub_efi_vendor_media_device_path_t): New type.
41816 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
41817 (struct grub_efi_file_path_device_path): New structure.
41818 (grub_efi_file_path_device_path_t): New type.
41819 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
41820 (struct grub_efi_protocol_device_path): New structure.
41821 (grub_efi_protocol_device_path_t): New type.
41822 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
41823 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
41824 (struct grub_efi_bios_device_path): New structure.
41825 (grub_efi_bios_device_path_t): New type.
41826 (struct grub_efi_disk_io): New structure.
41827 (grub_efi_disk_io_t): New type.
41828 (struct grub_efi_block_io_media): New structure.
41829 (grub_efi_block_io_media_t): New type.
41830 (struct grub_efi_block_io): New structure.
41831 (grub_efi_block_io_t): New type.
41833 * include/grub/misc.h (grub_stop): Removed.
41834 (grub_exit): New prototype.
41835 (grub_abort): Likewise.
41837 * include/grub/disk.h (enum grub_disk_dev_id): Added
41838 GRUB_DISK_DEVICE_EFIDISK_ID.
41840 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
41841 disk/efi/efidisk.c.
41842 (kernel_syms.lst): Remove the target if an error occurs.
41844 2006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
41846 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
41847 as it was simply too buggy.
41849 2006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
41851 * kern/misc.c (grub_lltoa): New function.
41852 (grub_vsprintf): Added support for the long long suffix,
41855 2006-04-20 Hollis Blanchard <hollis@penguinppc.org>
41857 * Makefile.in (LDFLAGS): Add variable.
41858 (LD): Remove variable.
41859 * configure.ac: Add -m32 to LDFLAGS.
41860 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
41861 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
41862 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
41863 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
41864 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
41866 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
41867 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
41868 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
41870 2006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
41872 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
41873 length for unknown glyph.
41875 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
41877 Add support for pre-loaded modules into the EFI port.
41879 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
41880 completely. Accept one more argument DIR. The caller has changed.
41882 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
41884 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
41885 (grub_efi_loaded_image_guid): New variable.
41886 (grub_efi_get_loaded_image): New function.
41887 (grub_arch_modules_addr): Likewise.
41889 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
41892 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
41893 (struct grub_efi_loaded_image): New structure.
41894 (grub_efi_loaded_image_t): New type.
41896 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
41898 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
41899 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
41900 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
41902 2006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
41904 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
41906 2006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
41908 * DISTLIST: Added include/grub/efi/console.h,
41909 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
41910 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
41912 * include/grub/efi/console.h: New file.
41913 * include/grub/efi/time.h: Likewise.
41914 * include/grub/i386/efi/kernel.h: Likewise.
41915 * kern/efi/init.c: Likewise.
41916 * kern/efi/mm.c: Likewise.
41917 * term/efi/console.c: Likewise.
41919 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
41920 (grub_stop): Removed.
41921 (grub_get_rtc): Likewise.
41922 (grub_machine_init): Simply call grub_efi_init.
41923 (grub_machine_fini): Call grub_efi_fini.
41925 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
41926 (grub_efi_output_string): Removed.
41927 (grub_efi_stall): New function.
41928 (grub_stop): Likewise.
41929 (grub_get_rtc): Likewise.
41931 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
41932 (grub_efi_stall): New prototype.
41933 (grub_efi_allocate_pages): Likewise.
41934 (grub_efi_free_pages): Likewise.
41935 (grub_efi_get_memory_map): Likewise.
41936 (grub_efi_mm_init): Likewise.
41937 (grub_efi_mm_fini): Likewise.
41938 (grub_efi_init): Likewise.
41939 (grub_efi_fini): Likewise.
41941 * include/grub/i386/efi/time.h: Do not include
41942 grub/symbol.h. Include grub/efi/time.h.
41943 (GRUB_TICKS_PER_SECOND): Removed.
41944 (grub_get_rtc): Likewise.
41946 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
41947 Added padding. The EFI spec is buggy.
41948 (GRUB_EFI_BLACK): New macro.
41949 (GRUB_EFI_BLUE): Likewise.
41950 (GRUB_EFI_GREEN): Likewise.
41951 (GRUB_EFI_CYAN): Likewise.
41952 (GRUB_EFI_RED): Likewise.
41953 (GRUB_EFI_MAGENTA): Likewise.
41954 (GRUB_EFI_BROWN): Likewise.
41955 (GRUB_EFI_LIGHTGRAY): Likewise.
41956 (GRUB_EFI_BRIGHT): Likewise.
41957 (GRUB_EFI_DARKGRAY): Likewise.
41958 (GRUB_EFI_LIGHTBLUE): Likewise.
41959 (GRUB_EFI_LIGHTGREEN): Likewise.
41960 (GRUB_EFI_LIGHTCYAN): Likewise.
41961 (GRUB_EFI_LIGHTRED): Likewise.
41962 (GRUB_EFI_LIGHTMAGENTA): Likewise.
41963 (GRUB_EFI_YELLOW): Likewise.
41964 (GRUB_EFI_WHITE): Likewise.
41965 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
41966 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
41967 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
41968 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
41969 (GRUB_EFI_BACKGROUND_RED): Likewise.
41970 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
41971 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
41972 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
41973 (GRUB_EFI_TEXT_ATTR): Likewise.
41975 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
41976 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
41977 (kernel_mod_HEADERS): Added efi/time.h.
41979 2006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
41981 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
41982 include/grub/efi/api.h, include/grub/efi/console_control.h,
41983 include/grub/efi/efi.h, include/grub/efi/pe32.h,
41984 include/grub/i386/efi/time.h, kern/efi/efi.c,
41985 kern/i386/efi/init.c, kern/i386/efi/startup.S,
41986 and util/i386/efi/grub-mkimage.c.
41988 * Makefile.in (RMKFILES): Added i386-efi.rmk.
41990 * genmk.rb (PModule#rule): Do not export symbols if
41991 #{prefix}_EXPORTS is set to "no".
41993 * conf/i386-efi.mk: New file.
41994 * conf/i386-efi.rmk: Likewise.
41995 * include/grub/efi/api.h: Likewise.
41996 * include/grub/efi/console_control.h: Likewise.
41997 * include/grub/efi/efi.h: Likewise.
41998 * include/grub/efi/pe32.h: Likewise.
41999 * include/grub/i386/efi/time.h: Likewise.
42000 * kern/efi/efi.c: Likewise.
42001 * kern/i386/efi/init.c: Likewise.
42002 * kern/i386/efi/startup.S: Likewise.
42003 * util/i386/efi/grub-mkimage.c: Likewise.
42005 2006-04-17 Marco Gerards <marco@gnu.org>
42007 * include/grub/script.h: Include <grub/parser.h> and
42008 "grub_script.tab.h".
42009 (struct grub_lexer_param): New struct.
42010 (struct grub_parser_param): Likewise.
42011 (grub_script_create_arglist): Pass the state in an argument.
42012 (grub_script_add_arglist): Likewise.
42013 (grub_script_create_cmdline): Likewise.
42014 (grub_script_create_cmdblock): Likewise.
42015 (grub_script_create_cmdif): Likewise.
42016 (grub_script_create_cmdmenu): Likewise.
42017 (grub_script_add_cmd): Likewise.
42018 (grub_script_arg_add): Likewise.
42019 (grub_script_lexer_ref): Likewise.
42020 (grub_script_lexer_deref): Likewise.
42021 (grub_script_lexer_record_start): Likewise.
42022 (grub_script_lexer_record_stop): Likewise.
42023 (grub_script_mem_record): Likewise.
42024 (grub_script_mem_record_stop): Likewise.
42025 (grub_script_malloc): Likewise.
42026 (grub_script_yylex): Likewise.
42027 (grub_script_yyparse): Likewise.
42028 (grub_script_yyerror): Likewise.
42029 (grub_script_yylex): Likewise.
42030 (grub_script_lexer_init): Return the state.
42032 * normal/lexer.c (grub_script_lexer_state): Removed variable.
42033 (grub_script_lexer_done): Likewise.
42034 (grub_script_lexer_getline): Likewise.
42035 (grub_script_lexer_refs): Likewise.
42036 (script): Likewise.
42037 (newscript): Likewise.
42038 (record): Likewise.
42039 (recording): Likewise.
42040 (recordpos): Likewise.
42041 (recordlen): Likewise.
42042 (grub_script_lexer_init): Return the state instead of setting
42044 (grub_script_lexer_ref): Use the newly added argument for state
42045 instead of globals.
42046 (grub_script_lexer_deref): Likewise.
42047 (grub_script_lexer_record_start): Likewise.
42048 (grub_script_lexer_record_stop): Likewise.
42049 (recordchar): Likewise.
42050 (nextchar): Likewise.
42051 (grub_script_yylex2): Likewise.
42052 (grub_script_yylex): Likewise.
42053 (grub_script_yyerror): Likewise.
42055 * normal/parser.y (func_mem): Removed variable.
42056 (menu_entry): Likewise.
42058 (%lex-param): New parser option.
42059 (%parse-param): Likewise.
42060 (script): Always return the AST.
42061 (argument): Pass the state around.
42062 (arguments): Likewise.
42063 (grubcmd): Likewise.
42064 (commands): Likewise.
42065 (function): Likewise.
42066 (menuentry): Likewise.
42067 (if_statement): Likewise.
42070 * normal/script.c (grub_script_memused): Removed variable.
42071 (grub_script_parsed): Likewise.
42072 (grub_script_malloc): Added a state argument. Use that instead of
42074 (grub_script_mem_record): Likewise.
42075 (grub_script_mem_record_stop): Likewise.
42076 (grub_script_arg_add): Likewise.
42077 (grub_script_add_arglist): Likewise.
42078 (grub_script_create_cmdline): Likewise.
42079 (grub_script_create_cmdif): Likewise.
42080 (grub_script_create_cmdmenu): Likewise.
42081 (grub_script_add_cmd): Likewise.
42082 (grub_script_parse): Setup the state before calling the parser.
42084 2006-04-16 Marco Gerards <marco@gnu.org>
42086 * normal/command.c (grub_command_init): Remove the title command.
42088 * normal/lexer.c (grub_script_yylex): Renamed from this...
42089 (grub_script_yylex2): ... to this.
42090 (grub_script_yylex): New function. Temporary
42091 introduced to filter some tokens.
42092 (grub_script_yyerror): Print a newline.
42094 * normal/main.c (read_config_file): Output information about the
42095 lines that contain errors. Wait for a key after all lines have
42096 been processed. Don't return an empty menu.
42098 * normal/parser.y (func_mem): Don't initialize.
42099 (menu_entry): Likewise.
42100 (err): New variable.
42101 (script): Don't return anything when an error was encountered.
42102 (ws, returns): Removed rules.
42103 (argument): Disabled concatenated variable support.
42104 (arguments): Remove explicit separators.
42105 (grubcmd): Likewise.
42106 (function): Likewise.
42107 (menuentry): Likewise.
42109 (commands): Likewise. Add error handling.
42111 * normal/script.c (grub_script_create_cmdline): If
42112 `grub_script_parsed' is 0, assume the parser encountered an error.
42114 2006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
42116 * configure.ac: Add support for EFI. Fix the typo
42117 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
42119 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
42121 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
42122 foreign multibyte characters should be shown correctly.
42124 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
42126 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
42128 (read_config_file): Made it to close file before returning.
42130 2006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
42132 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
42133 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
42134 video/i386/pc/vbefill.c.
42136 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
42137 video/i386/pc/vbefill.c.
42139 * include/grub/video.h (grub_video_blit_format): New enum.
42140 (grub_video_mode_info): Added new member blit_format.
42141 (grub_video_get_blit_format): New function prototype.
42143 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
42144 function prototype.
42145 (grub_video_vbe_map_rgb): Likewise.
42146 (grub_video_vbe_unmap_color): Likewise.
42148 * include/grub/i386/pc/vbeblit.h: New file.
42150 * include/grub/i386/pc/vbefill.h: New file.
42152 * video/video.c (grub_video_get_blit_format): New function.
42153 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
42154 (grub_video_vbe_map_rgb): Likewise.
42155 (grub_video_vbe_unmap_color): Likewise.
42157 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
42159 (grub_video_vbe_blit_render_target): Changed to use more optimized
42161 (grub_video_vbe_setup): Added detection for optimized settings.
42162 (grub_video_vbe_create_render_target): Likewise.
42164 * video/i386/pc/vbeblit.c: New file.
42166 * video/i386/pc/vbefill.c: New file.
42168 2006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
42170 * font/manager.c (grub_font_get_glyph): Removed font fixup from
42173 * util/unifont2pff.rb: ... and moved it to here. Improved argument
42174 parsing to support both hex and dec ranges. If filename was missing
42175 show usage information.
42177 2006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
42179 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
42180 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
42182 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
42183 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
42184 (video_mod_SOURCES): Added.
42185 (video_mod_CFLAGS): Likewise.
42186 (video_mod_LDFLAGS): Likewise.
42187 (gfxterm_mod_SOURCES): Likewise.
42188 (gfxterm_mod_CFLAGS): Likewise.
42189 (gfxterm_mod_LDFLAGS): Likewise.
42190 (videotest_mod_SOURCES): Likewise.
42191 (videotest_mod_CFLAGS): Likewise.
42192 (videotest_mod_LDFLAGS): Likewise.
42193 (vesafb_mod_SOURCES): Removed.
42194 (vesafb_mod_CFLAGS): Likewise.
42195 (vesafb_mod_LDFLAGS): Likewise.
42196 (vga_mod_SOURCES): Likewise.
42197 (vga_mod_CFLAGS): Likewise.
42198 (vga_mod_LDFLAGS): Likewise.
42200 * commands/videotest.c: New file.
42202 * font/manager.c (fill_with_default_glyph): Modified to use
42204 (grub_font_get_glyph): Likewise.
42205 (fontmanager): Renamed from this...
42206 (font_manager): ... to this.
42208 * include/grub/font.h (grub_font_glyph): Added new structure.
42209 (grub_font_get_glyph): Modified to use grub_font_glyph.
42211 * include/grub/misc.h (grub_abs): Added as inline function.
42213 * include/grub/video.h: New file.
42215 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
42216 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
42217 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
42218 (grub_vbe_get_controller_info): Renamed from this...
42219 (grub_vbe_bios_get_controller_info): ... to this.
42220 (grub_vbe_get_mode_info): Renamed from this...
42221 (grub_vbe_bios_get_mode_info): ... to this.
42222 (grub_vbe_set_mode): Renamed from this...
42223 (grub_vbe_bios_set_mode): ... to this.
42224 (grub_vbe_get_mode): Renamed from this...
42225 (grub_vbe_bios_get_mode): ... to this.
42226 (grub_vbe_set_memory_window): Renamed from this...
42227 (grub_vbe_bios_set_memory_window): ... to this.
42228 (grub_vbe_get_memory_window): Renamed from this...
42229 (grub_vbe_bios_get_memory_window): ... to this.
42230 (grub_vbe_set_scanline_length): Renamed from this...
42231 (grub_vbe_set_scanline_length): ... to this.
42232 (grub_vbe_get_scanline_length): Renamed from this...
42233 (grub_vbe_bios_get_scanline_length): ... to this.
42234 (grub_vbe_set_display_start): Renamed from this...
42235 (grub_vbe_bios_set_display_start): ... to this.
42236 (grub_vbe_get_display_start): Renamed from this...
42237 (grub_vbe_bios_get_display_start): ... to this.
42238 (grub_vbe_set_palette_data): Renamed from this...
42239 (grub_vbe_bios_set_palette_data): ... to this.
42240 (grub_vbe_set_pixel_rgb): Removed.
42241 (grub_vbe_set_pixel_index): Likewise.
42243 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
42245 (grub_vbe_bios_get_controller_info): ... to this.
42246 (grub_vbe_get_mode_info): Renamed from this...
42247 (grub_vbe_bios_get_mode_info): ... to this.
42248 (grub_vbe_set_mode): Renamed from this...
42249 (grub_vbe_bios_set_mode): ... to this.
42250 (grub_vbe_get_mode): Renamed from this...
42251 (grub_vbe_bios_get_mode): ... to this.
42252 (grub_vbe_set_memory_window): Renamed from this...
42253 (grub_vbe_bios_set_memory_window): ... to this.
42254 (grub_vbe_get_memory_window): Renamed from this...
42255 (grub_vbe_bios_get_memory_window): ... to this.
42256 (grub_vbe_set_scanline_length): Renamed from this...
42257 (grub_vbe_set_scanline_length): ... to this.
42258 (grub_vbe_get_scanline_length): Renamed from this...
42259 (grub_vbe_bios_get_scanline_length): ... to this.
42260 (grub_vbe_set_display_start): Renamed from this...
42261 (grub_vbe_bios_set_display_start): ... to this.
42262 (grub_vbe_get_display_start): Renamed from this...
42263 (grub_vbe_bios_get_display_start): ... to this.
42264 (grub_vbe_set_palette_data): Renamed from this...
42265 (grub_vbe_bios_set_palette_data): ... to this.
42266 (grub_vbe_bios_get_controller_info): Fixed problem with registers
42267 getting corrupted after calling it. Added more pushes and pops.
42268 (grub_vbe_bios_set_mode): Likewise.
42269 (grub_vbe_bios_get_mode): Likewise.
42270 (grub_vbe_bios_get_memory_window): Likewise.
42271 (grub_vbe_bios_set_scanline_length): Likewise.
42272 (grub_vbe_bios_get_scanline_length): Likewise.
42273 (grub_vbe_bios_get_display_start): Likewise.
42274 (grub_vbe_bios_set_palette_data): Likewise.
42276 * normal/cmdline.c (cl_set_pos): Refresh the screen.
42277 (cl_insert): Likewise.
42278 (cl_delete): Likewise.
42280 * term/gfxterm.c: New file.
42282 * term/i386/pc/vesafb.c: Removed file.
42284 * video/video.c: New file.
42286 * video/i386/pc/vbe.c (real2pm): Added new function.
42287 (grub_video_vbe_draw_pixel): Likewise.
42288 (grub_video_vbe_get_video_ptr): Likewise.
42289 (grub_video_vbe_get_pixel): Likewise
42290 (grub_video_vbe_init): Likewise.
42291 (grub_video_vbe_fini): Likewise.
42292 (grub_video_vbe_setup): Likewise.
42293 (grub_video_vbe_get_info): Likewise.
42294 (grub_video_vbe_set_palette): Likewise.
42295 (grub_video_vbe_get_palette): Likewise.
42296 (grub_video_vbe_set_viewport): Likewise.
42297 (grub_video_vbe_get_viewport): Likewise.
42298 (grub_video_vbe_map_color): Likewise.
42299 (grub_video_vbe_map_rgb): Likewise.
42300 (grub_video_vbe_map_rgba): Likewise.
42301 (grub_video_vbe_unmap_color): Likewise.
42302 (grub_video_vbe_fill_rect): Likewise.
42303 (grub_video_vbe_blit_glyph): Likewise.
42304 (grub_video_vbe_blit_bitmap): Likewise.
42305 (grub_video_vbe_blit_render_target): Likewise.
42306 (grub_video_vbe_scroll): Likewise.
42307 (grub_video_vbe_swap_buffers): Likewise.
42308 (grub_video_vbe_create_render_target): Likewise.
42309 (grub_video_vbe_delete_render_target): Likewise.
42310 (grub_video_vbe_set_active_render_target): Likewise.
42311 (grub_vbe_set_pixel_rgb): Remove function.
42312 (grub_vbe_set_pixel_index): Likewise.
42313 (index_color_mode): Remove static variable.
42314 (active_mode): Likewise.
42315 (framebuffer): Likewise.
42316 (bytes_per_scan_line): Likewise.
42317 (grub_video_vbe_adapter): Added new static variable.
42318 (framebuffer): Likewise.
42319 (render_target): Likewise.
42320 (initial_mode): Likewise.
42321 (mode_in_use): Likewise.
42322 (mode_list): Likewise.
42324 2006-03-10 Marco Gerards <marco@gnu.org>
42326 * configure.ac (AC_INIT): Bumped to 1.93.
42328 * DISTLIST: Added `include/grub/hfs.h'.
42330 2006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
42332 * boot/i386/pc/boot.S (general_error): Before looping, try INT
42333 18H, which might help the BIOS falling back to next boot media.
42335 2006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
42337 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
42338 Poe Chen <poe.poechen@gmail.com>.
42340 2006-01-17 Marco Gerards <marco@gnu.org>
42342 * include/grub/normal.h: Include <grub/script.h>.
42343 (grub_command_list): Removed struct.
42344 (grub_command_list_t): Removed type.
42345 (grub_menu_entry): Remove members `num' and `command_list'. Add
42346 members `commands' and `sourcecode'.
42347 * include/grub/script.h: Add inclusion guards.
42348 (grub_script_cmd_menuentry): New struct.
42349 (grub_script_execute_menuentry): New prototype.
42350 (grub_script_lexer_record_start): Likewise.
42351 (grub_script_lexer_record_stop): Likewise.
42352 * normal/execute.c (grub_script_execute_menuentry): New function.
42353 * normal/lexer.c (record, recording, recordpos, recordlen): New
42355 (grub_script_lexer_record_start): New function.
42356 (grub_script_lexer_record_stop): Likewise.
42357 (recordchar): Likewise.
42358 (nextchar): Likewise.
42359 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
42360 2048 as the buffer size. Add the tokens `menuentry' and `@'.
42361 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
42362 (current_menu): New variable.
42363 (free_menu): Mainly rewritten.
42364 (grub_normal_menu_addentry): New function.
42365 (read_config_file): Rewritten.
42366 * normal/menu.c (run_menu_entry): Mainly rewritten.
42367 * normal/menu_entry.c (make_screen): Rewritten the code to insert
42369 (run): Mainly rewritten.
42370 * normal/parser.y (menu_entry): New variable.
42371 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
42372 (menuentry): New rule.
42373 (command): Add `menuentry'.
42374 (if_statement): Allow additional returns before `fi'.
42375 * normal/script.c (grub_script_create_cmdmenu): New function.
42377 2006-01-03 Marco Gerards <marco@gnu.org>
42379 * INSTALL: GNU Bison is required.
42380 * configure.ac: Rewritten the test to detect Bison.
42381 * Makefile.in (YACC): New variable. Reported by Xun Sun
42382 <xun.sun.cn@gmail.com>.
42384 2006-01-03 Marco Gerards <marco@gnu.org>
42386 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
42387 the HFS+ filesystem to filesystem blocks.
42388 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
42389 GCC warning is silenced.
42391 2006-01-03 Marco Gerards <marco@gnu.org>
42393 * partmap/apple.c (apple_partition_map_iterate): Convert the data
42394 read from disk from big endian to host byte order.
42396 2006-01-03 Hollis Blanchard <hollis@penguinppc.org>
42398 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
42400 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
42401 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
42402 embedded HFS+ filesystem.
42403 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
42404 (grub_hfs_sblock): Move from here...
42405 * include/grub/hfs.h: To here... New file.
42406 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
42408 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
42410 (grub_hfsplus_volheader): Change type of member `magic' to
42412 (grub_hfsplus_data): Add new member `embedded_offset'.
42413 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
42415 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
42416 Calculate the offset.
42418 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
42420 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
42422 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
42424 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
42426 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
42427 ENV->NAME is NULL after allocating ENV->VALUE.
42429 2005-12-25 Marco Gerards <marco@gnu.org>
42431 * kern/env.c (grub_env_set): Rewritten the error handling code.
42433 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
42435 * geninit.sh: Made more robust, and more portable.
42437 2005-12-25 Marco Gerards <marco@gnu.org>
42439 Add support for Apple HFS+ filesystems.
42441 * fs/hfsplus.c: New file.
42443 * DISTLIST: Added `fs/hfsplus.c'.
42445 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
42446 (hfsplus_mod_SOURCES): New variable.
42447 (hfsplus_mod_CFLAGS): Likewise.
42448 (hfsplus_mod_LDFLAGS): Likewise.
42449 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
42450 (grub_setup_SOURCES): Likewise.
42451 (grub_mkdevicemap_SOURCES): Likewise.
42452 (grub_emu_SOURCES): Likewise.
42453 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42455 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
42457 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
42459 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
42461 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
42462 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
42463 include/grub/parser.h, include/grub/script.h, kern/parser.c,
42464 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
42465 normal/lexer.c, normal/parser.y, normal/script.c, and
42467 Removed kern/sparc64/cache.c.
42469 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
42470 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
42473 * configure.ac (AC_INIT): Bumped to 1.92.
42475 2005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
42477 * kern/err.c (grub_error_push): Added new function to support error
42479 (grub_error_pop): Likewise.
42480 (grub_error_stack_items): New local variable to support error stacks.
42481 (grub_error_stack_pos): Likewise.
42482 (grub_error_stack_assert): Likewise.
42483 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
42485 (grub_print_error): Added support to print errors from error stack.
42487 * include/grub/err.h (grub_error_push): Added function prototype.
42488 (grub_error_pop): Likewise.
42490 2005-12-09 Hollis Blanchard <hollis@penguinppc.org>
42492 * configure.ac: Accept `powerpc64' as host_cpu.
42493 (amd64): Rename to `biarch32'.
42495 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
42496 non-cacheline-aligned addresses.
42498 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
42499 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
42500 if `size' is non-zero.
42502 2005-12-03 Marco Gerards <mgerards@xs4all.nl>
42504 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
42505 and `cd' to make sure the filename is not prefixed with a
42507 (pkgdata_MODULES): Add `gpt.mod'.
42508 (gpt_mod_SOURCES): New variable.
42509 (gpt_mod_CFLAGS): Likewise.
42510 (gpt_mod_LDFLAGS): Likewise.
42512 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
42514 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
42517 * partmap/gpt.c: New file.
42519 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
42520 GPT partition map is detected.
42522 2005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
42524 * commands/i386/pc/play.c: New file.
42525 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
42526 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
42529 2005-11-27 Marco Gerards <mgerards@xs4all.nl>
42531 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
42532 ((unused))' to silence gcc warning.
42534 2005-11-26 Hollis Blanchard <hollis@penguinppc.org>
42536 * configure.ac: Correct `AC_PROG_YACC' test.
42538 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
42540 * util/powerpc/ieee1275/grub-install.in: Run the mount point
42541 check before installing files.
42543 2005-11-22 Mike Small <smallm@panix.com>
42545 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
42546 number regex so multidigit numbers are recognized correctly.
42548 2005-11-22 Mike Small <smallm@panix.com>
42550 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
42551 debugging message before attempting to claim memory.
42552 (grub_rescue_cmd_initrd): Add a claim debugging message and try
42553 multiple addresses in case of failure.
42555 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
42557 * term/tparm.c (get_space): Remove empty `if' statement.
42559 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
42561 * kern/parser.c (check_varstate): Rename `state' to 's'.
42563 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
42565 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
42566 variable definitions to the beginning of each function. Sort stack
42568 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
42569 `buf' argument to `char *'.
42571 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
42573 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
42574 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
42575 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
42576 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
42577 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
42578 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
42579 configfile.mod, search.mod, gzio.mod and test.mod.
42580 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
42581 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
42582 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
42583 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
42584 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
42585 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
42586 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
42587 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
42588 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
42589 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
42590 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
42591 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
42592 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
42593 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
42594 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
42595 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
42596 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
42597 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
42598 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
42599 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
42600 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
42601 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
42602 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
42604 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
42606 (pkgdata_MODULES): Add test.mod.
42608 2005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
42610 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
42611 appending to variables with "+=".
42612 (PModule): Use full pathname to generate *.lst filenames.
42614 * Makefile.in: Fixed list rules moved from genmk.rb.
42615 (.DELETE_ON_ERROR): New special target.
42616 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
42618 * conf/i386-pc.rmk: Include conf/common.mk.
42619 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
42620 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
42621 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
42622 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
42623 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
42624 configfile.mod, search.mod, gzio.mod and test.mod.
42625 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
42626 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
42627 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
42628 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
42629 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
42630 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
42631 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
42632 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
42633 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
42634 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
42635 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
42636 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
42637 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
42638 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
42639 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
42640 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
42641 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
42642 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
42643 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
42644 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
42645 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
42646 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
42647 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
42649 * conf/common.rmk: ... to here. New file.
42651 * conf/common.mk: New file.
42653 2005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
42655 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
42656 (grub_script.tab.c): ... here.
42658 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
42659 (grub_script.tab.c): ... here.
42661 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
42662 (grub_script.tab.c): ... here.
42664 * normal/command.c (grub_command_find): Fixed a memory leak of
42665 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
42667 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
42669 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
42670 "@" which marks the start of a comment on ARM.
42671 (VARIABLE): Likewise.
42673 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
42675 Add support for Linux/ADFS partition tables.
42677 * partmap/acorn.c: New file.
42679 * include/grub/acorn_filecore.h: Likewise.
42681 * DISTLIST: Added `partmap/acorn.c' and
42682 `include/grub/acorn_filecore.h'.
42684 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
42686 (pkgdata_MODULES): Add `acorn.mod'.
42687 (acorn_mod_SOURCES): New variable.
42688 (acorn_mod_CFLAGS): Likewise.
42690 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
42692 (pkgdata_MODULES): Add `acorn.mod'.
42693 (acorn_mod_SOURCES): New variable.
42694 (acorn_mod_CFLAGS): Likewise.
42696 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
42697 (pkgdata_MODULES): Add `acorn.mod'.
42698 (acorn_mod_SOURCES): New variable.
42699 (acorn_mod_CFLAGS): Likewise.
42700 (acorn_mod_LDFLAGS): Likewise.
42702 * include/types.h (grub_disk_addr_t): New typedef.
42704 2005-11-13 Marco Gerards <mgerards@xs4all.nl>
42706 * geninit.sh: New file.
42708 * geninitheader.sh: Likewise.
42710 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
42711 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
42712 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
42713 * commands/configfile.c (grub_configfile_init)
42714 (grub_configfile_fini): Likewise.
42715 * commands/default.c (grub_default_init, grub_default_fini):
42717 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
42718 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
42719 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
42720 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
42722 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
42723 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
42725 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
42726 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
42728 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
42730 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
42732 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
42733 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
42734 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
42735 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
42736 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
42737 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
42738 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
42739 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
42740 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
42741 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
42742 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
42743 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
42744 * partmap/amiga.c (grub_amiga_partition_map_init)
42745 (grub_amiga_partition_map_fini): Likewise.
42746 * partmap/apple.c (grub_apple_partition_map_init)
42747 (grub_apple_partition_map_fini): Likewise.
42748 * partmap/pc.c (grub_pc_partition_map_init)
42749 (grub_pc_partition_map_fini): Likewise.
42750 * partmap/sun.c (grub_sun_partition_map_init,
42751 grub_sun_partition_map_fini): Likewise.
42752 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
42755 * util/grub-emu.c: Include <grub_modules_init.h>.
42756 (main): Don't initialize and de-initialize any modules directly,
42757 use `grub_init_all' and `grub_fini_all' instead.
42759 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
42760 `grub_vesafb_mod_init'.
42761 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
42763 * term/i386/pc/vga.c (grub_vga_init): Renamed to
42764 `grub_vga_mod_init'. Updated all users.
42765 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
42767 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
42768 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
42771 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
42772 Generate a function to initialize the module in utilities.
42773 Updated all callers.
42774 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
42775 initialize the module in utilities. Updated all callers.
42777 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
42779 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
42780 escape sequence and a literal ^L to clear the screen.
42782 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
42783 when returning from Open Firmware.
42785 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
42787 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
42788 (grub_ofconsole_height): Likewise.
42789 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
42790 manually insert a '\n'.
42791 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
42792 `grub_ofconsole_height'. Return early if these are already set.
42794 2005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
42796 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
42797 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
42798 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
42799 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
42800 and `normal/script.c'.
42801 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
42802 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
42803 (test_mod_SOURCES): New variable.
42804 (test_mod_CFLAGS): Likewise.
42805 (test_mod_LDFLAGS): Likewise.
42806 (pkgdata_MODULES): Add `test.mod'.
42807 (grub_script.tab.c): New rule.
42808 (grub_script.tab.h): Likewise.
42810 2005-11-07 Marco Gerards <mgerards@xs4all.nl>
42812 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
42813 `commands/test.c', `normal/execute.c', `normal/lexer.c',
42814 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
42815 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
42816 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
42817 (test_mod_SOURCES): New variable.
42818 (test_mod_CFLAGS): Likewise.
42819 (pkgdata_MODULES): Add `test.mod'.
42820 (grub_script.tab.c): New rule.
42821 (grub_script.tab.h): Likewise.
42823 2005-11-06 Marco Gerards <mgerards@xs4all.nl>
42825 Add initial scripting support.
42827 * commands/test.c: New file.
42828 * include/grub/script.h: Likewise.
42829 * normal/execute.c: Likewise.
42830 * normal/function.c: Likewise.
42831 * normal/lexer.c: Likewise.
42832 * normal/parser.y: Likewise.
42833 * normal/script.c: Likewise.
42835 * configure.ac: Add `AC_PROG_YACC' test.
42837 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
42838 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
42839 `normal/function.c' and `normal/script.c'.
42840 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
42841 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
42842 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
42844 (pkgdata_MODULES): Add `test.mod'.
42845 (grub_script.tab.c): New rule.
42846 (grub_script.tab.h): Likewise.
42848 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
42850 * include/grub/normal.h (grub_test_init): New prototype.
42851 (grub_test_fini): Likewise.
42853 * normal/command.c: Include <grub/script.h>.
42854 (grub_command_execute): Rewritten.
42856 * util/grub-emu.c (main): Call `grub_test_init' and
42859 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
42861 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
42863 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
42864 there are no pending characters.
42866 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
42868 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
42869 `grub_strndup' to drop device arguments. Replace unnecessary
42870 `grub_strndup' with `grub_strdup'.
42872 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
42874 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
42875 `debug' environment variable has been set.
42877 2005-11-02 Hollis Blanchard <hollis@penguinppc.org>
42879 * Makefile.in (install-local): Use $(DATA).
42880 (uninstall): Likewise.
42881 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
42882 (sbin_UTILITIES): ... to here.
42883 (sbin_SCRIPTS): New variable.
42884 (grub_install_SOURCES): New variable.
42885 * util/powerpc/ieee1275/grub-install.in: New file.
42886 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
42888 (add_segments): Call `grub_util_get_path'.
42890 2005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
42892 From Timothy Baldwin:
42893 * commands/ls.c (grub_ls_list_files): Close FILE with
42895 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
42897 2005-10-24 Marco Gerards <mgerards@xs4all.nl>
42899 * include/grub/parser.h: New file.
42901 * kern/parser.c: Likewise.
42903 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
42904 (grub_setup_SOURCES): Likewise.
42905 (grub_probefs_SOURCES): Likewise.
42906 (grub_emu_SOURCES): Likewise.
42907 (kernel_img_HEADERS): Add `parser.h'.
42909 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
42910 (grub_emu_SOURCES): Add `kern/parser.c'.
42911 (grubof_SOURCES): Likewise.
42913 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
42914 (grubof_SOURCES): Add `kern/parser.c'.
42916 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
42918 * kern/misc.c (grub_split_cmdline): Removed function.
42920 * kern/rescue.c: Include <grub/parser.h>.
42921 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
42922 of `grub_split_cmdline'.
42924 * normal/command.c: Include <grub/parser.h>.
42925 (grub_command_execute): Use `grub_parser_split_cmdline' instead
42926 of `grub_split_cmdline'.
42928 * normal/completion.c: Include <grub/parser.h>.
42929 (cmdline_state): New variable.
42930 (iterate_dir): End the filename with a quote depending on the
42931 command line state.
42932 (get_state): new function.
42933 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
42934 split the arguments and determine the current argument. When the
42935 argument string is not quoted, escape all spaces.
42937 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
42939 * normal/sparc64/setjmp.S: New file.
42941 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
42943 * include/grub/sparc64/libgcc.h: New file.
42944 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
42945 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
42946 normal/sparc64/setjmp.c.
42948 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
42950 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
42951 * kern/sparc64/cache.S: New file.
42952 * kern/sparc64/cache.c: Removed.
42953 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
42954 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
42956 (COMMON_LDFLAGS): Add -melf64_sparc.
42957 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
42958 (grubof_SOURCES): Use cache.S instead of cache.c.
42959 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
42960 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
42961 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
42963 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
42964 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
42965 (linux_mod_CFLAGS): Commented out.
42966 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
42967 out because module isn't built.
42968 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
42969 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
42970 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
42971 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
42972 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
42973 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
42974 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
42975 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
42976 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
42977 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
42978 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
42979 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
42980 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
42981 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
42983 2005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
42985 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
42986 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
42987 longer, because HFS should not be used on PC.
42989 2005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
42991 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
42992 consistently within the loop.
42994 2005-10-15 Marco Gerards <mgerards@xs4all.nl>
42996 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
42997 directory can not be read.
42999 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
43001 * configure.ac (AC_INIT): Increase the version number to 1.91.
43003 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
43004 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
43005 term/i386/pc/serial.c.
43007 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
43009 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
43010 file size must be permitted.
43012 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
43013 between %ah and %al.
43015 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
43017 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
43019 Call the hook with a NUL-terminated filename.
43020 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
43023 * kern/term.c (cursor_state): New variable.
43024 (grub_term_set_current): Reset the cursor state on a new
43026 (grub_setcursor): Rewritten to use CURSOR_STATE.
43027 (grub_getcursor): New function.
43029 * include/grub/term.h (grub_getcursor): New prototype.
43031 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
43032 integers on ARM. Reported by Timothy Baldwin
43033 <T.E.Baldwin99@members.leeds.ac.uk>.
43035 2005-10-11 Marco Gerards <mgerards@xs4all.nl>
43037 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
43039 (grub_sfs_dir): Likewise.
43041 2005-10-09 Marco Gerards <mgerards@xs4all.nl>
43043 Add support for the SFS filesystem.
43045 * fs/sfs.c: New file.
43047 * DISTLIST: Added `fs/sfs.c'.
43049 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
43050 (grub_probefs_SOURCES): Likewise.
43051 (grub_emu_SOURCES): Likewise.
43052 (pkgdata_MODULES): Add `sfs.mod'.
43053 (sfs_mod_SOURCES): New variable.
43054 (sfs_mod_CFLAGS): Likewise.
43055 (sfs_mod_LDFLAGS): Likewise.
43057 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
43058 (pkgdata_MODULES): Add `sfs.mod'.
43059 (sfs_mod_SOURCES): New variable.
43060 (sfs_mod_CFLAGS): Likewise.
43062 * util/grub-emu.c (main): Call `grub_sfs_init' and
43065 * include/grub/fs.h (grub_sfs_init): New prototype.
43066 (grub_sfs_fini): Likewise.
43068 2005-10-07 Marco Gerards <mgerards@xs4all.nl>
43070 Add support for the AFFS filesystem.
43072 * fs/affs.c: New file.
43074 * DISTLIST: Added `fs/affs.c'.
43076 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
43077 (grub_probefs_SOURCES): Likewise.
43078 (grub_emu_SOURCES): Likewise.
43079 (pkgdata_MODULES): Add `affs.mod'.
43080 (affs_mod_SOURCES): New variable.
43081 (affs_mod_CFLAGS): Likewise.
43082 (affs_mod_LDFLAGS): Likewise.
43084 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
43085 (pkgdata_MODULES): Add `affs.mod'.
43086 (affs_mod_SOURCES): New variable.
43087 (affs_mod_CFLAGS): Likewise.
43089 * util/grub-emu.c (main): Call `grub_affs_init' and
43092 * include/grub/fs.h (grub_affs_init): New prototype.
43093 (grub_affs_fini): Likewise.
43095 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
43097 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
43099 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
43101 * configure.ac: Accept `x86_64' as host_cpu. In that case add
43104 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
43107 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
43108 (COMMON_LDFLAGS): New variable.
43109 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
43110 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
43111 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
43112 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
43113 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
43114 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
43115 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
43116 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
43117 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
43118 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
43119 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
43120 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
43121 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
43122 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
43123 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
43125 (normal_mod_ASFLAGS): Add `-m32'.
43127 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
43128 (grub_host_size_t, grub_host_ssize_t): New types.
43129 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
43130 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
43131 `GRUB_HOST_SIZEOF_VOID_P'.
43133 * include/grub/kernel.h (struct grub_module_header): Type of
43134 member offset changed to `grub_host_off_t'. Type of member size
43135 changed to `grub_host_size_t'.
43136 (struct grub_module_info): Type of member offset changed to
43137 `grub_host_off_t'. Type of member size changed to
43138 `grub_host_size_t'.
43140 2005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
43142 Make GRUB's kernel compliant to Multiboot Specification.
43144 * kern/i386/pc/startup.S (multiboot_header): New label.
43145 (multiboot_entry): Likewise.
43146 (multiboot_trampoline): Likewise.
43148 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
43149 Increased to 0x4A0.
43151 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
43152 put parentheses after a question mark.
43153 [!GRUB_UTIL] (my_mod): New variable.
43155 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
43157 2005-09-28 Marco Gerards <mgerards@xs4all.nl>
43159 Adds support for the XFS filesystem. Btrees are not supported
43162 * fs/xfs.c: New file.
43164 * DISTLIST: Added `fs/xfs.c'.
43166 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
43167 (grub_probefs_SOURCES): Likewise.
43168 (grub_emu_SOURCES): Likewise.
43169 (pkgdata_MODULES): Add `xfs.mod'.
43170 (xfs_mod_SOURCES): New variable.
43171 (xfs_mod_CFLAGS): Likewise.
43173 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
43174 (pkgdata_MODULES): Add `xfs.mod'.
43175 (xfs_mod_SOURCES): New variable.
43176 (xfs_mod_CFLAGS): Likewise.
43178 * util/grub-emu.c (main): Call `grub_xfs_init' and
43181 * include/grub/fs.h (grub_xfs_init): New prototype.
43182 (grub_xfs_fini): Likewise.
43185 2005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
43187 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
43188 color modes, allow greater than 16 colors to be configured as
43191 2005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
43193 * normal/completion.c (complete_arguments): Add the qualifier
43194 const into OPTIONS.
43196 From Omniflux <omniflux+lists@omniflux.com>:
43197 * include/grub/terminfo.h: New file.
43198 * include/grub/tparm.h: Likewise.
43199 * include/grub/i386/pc/serial.h: Likewise.
43200 * term/terminfo.c: Likewise.
43201 * term/tparm.c: Likewise.
43202 * term/i386/pc/serial.c: Likewise.
43203 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
43205 (terminfo_mod_SOURCES): New variable.
43206 (terminfo_mod_CFLAGS): Likewise.
43207 (serial_mod_SOURCES): Likewise.
43208 (serial_mod_CFLAGS): Likewise.
43210 2005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
43212 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
43213 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
43214 and kern/powerpc/ieee1275/cmain.c, respectively.
43216 * boot/powerpc/ieee1275/crt0.S: Moved to ...
43217 * kern/powerpc/ieee1275/crt0.S: ... here.
43219 * boot/powerpc/ieee1275/cmain.c: Moved to ...
43220 * kern/powerpc/ieee1275/cmain.c: ... here.
43222 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
43223 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
43224 instead of boot/powerpc/ieee1275/crt0.S and
43225 boot/powerpc/ieee1275/cmain.c, respectively.
43227 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
43228 sectors. It was not used anyway.
43230 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
43232 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
43233 `unused parameter' warning.
43235 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
43237 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
43239 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
43242 2005-08-28 Marco Gerards <metgerards@student.han.nl>
43244 * include/grub/normal.h (enum grub_completion_type): Added
43245 `GRUB_COMPLETION_TYPE_ARGUMENT'.
43247 * normal/cmdline.c (print_completion): Handle
43248 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
43249 * normal/menu_entry.c (store_completion): Likewise.
43251 * normal/completion.c (complete_arguments): New function.
43252 (grub_normal_do_completion): Call `complete_arguments' when the
43253 current words start with a dash.
43255 2005-08-27 Marco Gerards <metgerards@student.han.nl>
43257 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
43258 `gzio.mod' instead of `io.mod').
43260 2005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
43262 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
43263 (DISTDIRS): Added io and video.
43264 Rewrite the search routine to make an output consistently.
43266 * DISTLIST: Added conf/sparc64-ieee1275.mk,
43267 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
43268 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
43269 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
43270 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
43271 util/powerpc/ieee1275/misc.c.
43273 * include/grub/gzio.h: New file.
43274 * io/gzio.c: Likewise.
43276 * kern/file.c (grub_file_close): Call grub_device_close only if
43277 FILE->DEVICE is not NULL.
43279 * include/grub/mm.h [!NULL] (NULL): New macro.
43281 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
43283 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
43284 (pkgdata_MODULES): Added gzio.mod.
43285 (gzio_mod_SOURCES): New variable.
43286 (gzio_mod_CFLAGS): Likewise.
43288 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
43289 (pkgdata_MODULES): Added gzio.mod.
43290 (gzio_mod_SOURCES): New variable.
43291 (gzio_mod_CFLAGS): Likewise.
43293 * commands/cat.c: Include grub/gzio.h.
43294 (grub_cmd_cat): Use grub_gzfile_open instead of
43297 * commands/cmp.c: Include grub/gzio.h.
43298 (grub_cmd_cmp): Use grub_gzfile_open instead of
43301 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
43302 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
43304 (grub_rescue_cmd_module): Likewise.
43306 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
43308 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
43309 kern/sparc64/ieee1275/init.c because it contains _start.
43310 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
43312 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
43314 * configure.ac: Add support for sparc64 host with ieee1275
43316 * configure: Generated from configure.ac.
43317 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
43319 (grub_ofdisk_read): Likewise.
43320 (grub_ofdisk_open): Use %p to print pointer values, and cast the
43321 pointers as (void *) to remove a warning.
43322 (grub_ofdisk_close): Likewise.
43323 (grub_ofdisk_read): Likewise.
43324 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
43325 returns, so make it return void to remove a warning.
43326 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
43327 Corresponding prototype change.
43328 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
43329 values, and cast the pointers as (void *) to remove a warning.
43330 (grub_mm_dump): Likewise.
43331 * conf/sparc64-ieee1275.mk: New file.
43332 * conf/sparc64-ieee1275.rmk: Likewise.
43333 * include/grub/sparc64/setjmp.h: Likewise.
43334 * include/grub/sparc64/types.h: Likewise.
43335 * include/grub/sparc64/ieee1275/console.h: Likewise.
43336 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
43337 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
43338 * include/grub/sparc64/ieee1275/time.h: Likewise.
43339 * kern/sparc64/cache.c: Likewise.
43340 * kern/sparc64/dl.c: Likewise.
43341 * kern/sparc64/ieee1275/init.c: Likewise.
43342 * kern/sparc64/ieee1275/openfw.c: Likewise.
43344 2005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
43346 * util/console.c (grub_ncurses_putchar): If C is greater than
43347 0x7f, set C to a question mark.
43348 (grub_ncurses_getcharwidth): New function.
43349 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
43352 * normal/menu.c (print_entry): Made aware of Unicode. First,
43353 convert TITLE to UCS-4, and predict the cursor position by
43356 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
43358 * kern/misc.c (grub_utf16_to_utf8): Likewise.
43360 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
43362 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
43363 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
43366 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
43367 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
43368 grub_strcpy and grub_strlen. Take it into account that a space
43369 character is inserted as a delimiter.
43371 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
43373 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
43374 invalid magic in the error.
43376 * commands/search.c: New file.
43378 * util/grub-emu.c (main): Call grub_search_init and
43381 * kern/rescue.c (grub_rescue_print_disks): Removed.
43382 (grub_rescue_print_devices): New function.
43383 (grub_rescue_cmd_ls): Use grub_device_iterate with
43384 grub_rescue_print_devices instead of grub_disk_dev_iterate with
43385 grub_rescue_print_disks.
43387 * kern/partition.c (grub_partition_iterate): Return the result of
43388 PARTMAP->ITERATE instead of GRUB_ERRNO.
43390 * kern/device.c: Include grub/partition.h.
43391 (grub_device_iterate): New function.
43393 * include/grub/partition.h (grub_partition_iterate): Return int
43394 instead of grub_err_t.
43396 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
43398 [GRUB_UTIL] (grub_search_fini): Likewise.
43400 * include/grub/device.h (grub_device_iterate): New prototype.
43402 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
43404 (pkgdata_MODULES): Added search.mod.
43405 (search_mod_SOURCES): New variable.
43406 (search_mod_CFLAGS): Likewise.
43408 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
43409 (pkgdata_MODULES): Added search.mod.
43410 (search_mod_SOURCES): New variable.
43411 (search_mod_CFLAGS): Likewise.
43413 * commands/ls.c (grub_ls_list_disks): Renamed to ...
43414 (grub_ls_list_devices): ... this, and use grub_device_iterate.
43415 All callers changed.
43417 * DISTLIST: Added commands/search.c.
43419 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
43421 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
43423 (grub_getcharwidth): New function.
43425 * kern/misc.c (grub_utf8_to_ucs4): New function.
43427 * include/grub/term.h (struct grub_term): Added a new member
43429 (grub_getcharwidth): New prototype.
43431 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
43433 * term/i386/pc/console.c (map_char): New function. Segregated from
43434 grub_console_putchar.
43435 (grub_console_putchar): Use map_char.
43436 (grub_console_getcharwidth): New function.
43437 (grub_console_term): Specified grub_console_getcharwidth as
43440 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
43441 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
43443 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
43445 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
43446 on grub_strtoul completely.
43447 (write_char): Declare local variables in the beginning of the
43449 (grub_vesafb_getcharwidth): New function.
43450 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
43453 2005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
43455 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
43456 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
43457 commands/i386/pc/vbetest.c.
43459 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
43460 call grub_vbe_get_controller_info again, because the returned
43461 information is volatile.
43462 (grub_vbe_set_video_mode): Mostly rewritten.
43463 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
43464 grub_vbe_status_t correctly.
43465 (grub_vbe_get_video_mode_info): Likewise.
43466 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
43467 several if statements.
43469 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
43470 * commands/i386/pc/vbeinfo.c: ... this.
43472 * commands/i386/pc/vbe_test.c: Renamed to ...
43473 * commands/i386/pc/vbetest.c: ... this.
43475 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
43477 (grub_cmd_vbeinfo): ... this. Save video modes before
43478 iterating. Skip a video mode, if it is not available, not enough
43479 information is given or it is monochrome. Show the memory
43480 model. Leave the interpretation of MODEVAR to grub_strtoul
43482 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
43483 (GRUB_MOD_FINI): Likewise.
43485 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
43486 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
43487 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
43488 duplicated grub_env_get. Leave the interpretation of MODEVAR to
43489 grub_strtoul completely.
43490 (real2pm): Removed.
43491 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
43492 (GRUB_MOD_FINI): Likewise.
43494 * normal/misc.c: Include grub/mm.h.
43496 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
43497 vbe_list_modes with vbetest.mod and vbeinfo.mod.
43498 (vbe_list_modes_mod_SOURCES): Removed.
43499 (vbe_list_modes_mod_CFLAGS): Likewise.
43500 (vbe_test_mod_SOURCES): Likewise.
43501 (vbe_test_mod_CFLAGS): Likewise.
43502 (vbeinfo_mod_SOURCES): New variable.
43503 (vbeinfo_mod_CFLAGS): Likewise.
43504 (vbetest_mod_SOURCES): Likewise.
43505 (vbetest_mod_CFLAGS): Likewise.
43507 2005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
43509 * normal/misc.c: New file.
43511 * DISTLIST: Added normal/misc.c.
43513 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
43514 DISK to HOOK. Call HOOK with DISK.
43515 * partmap/apple.c (apple_partition_map_iterate): Likewise.
43516 * partmap/pc.c (pc_partition_map_iterate): Likewise.
43517 * partmap/sun.c (sun_partition_map_iterate): Likewise.
43519 * normal/menu_entry.c (struct screen): Added a new member
43520 "completion_shown".
43521 (completion_buffer): New global variable.
43522 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
43523 (store_completion): New function.
43524 (complete): Likewise.
43525 (clear_completions): Likewise.
43526 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
43527 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
43528 a tab, call complete.
43530 * normal/completion.c (disk_dev): Removed.
43531 (print_simple_completion): Likewise.
43532 (print_partition_completion): Likewise.
43533 (print_func): New global variable.
43534 (add_completion): Do not take the arguments WHAT or PRINT any
43535 longer. Added a new argument TYPE. Instead of printing directly,
43536 call PRINT_FUNC if not NULL.
43537 All callers changed.
43538 (complete_device): Use a local variable DEV instead of
43539 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
43540 (grub_normal_do_completion): Take a new argument HOOK. Do not
43541 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
43542 empty string, return NULL instead.
43543 All callers changed.
43545 * normal/cmdline.c (print_completion): New function.
43547 * kern/partition.c (grub_partition_iterate): Add an argument DISK
43549 All callers changed.
43551 * kern/disk.c (grub_print_partinfo): Removed.
43553 * include/grub/partition.h (struct grub_partition_map): Add a new
43554 argument DISK into HOOK of ITERATE.
43555 (grub_partition_iterate): Add a new argument DISK to HOOK.
43557 * include/grub/normal.h (enum grub_completion_type): New enum.
43558 (grub_completion_type_t): New type.
43559 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
43560 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
43561 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
43562 (GRUB_COMPLETION_TYPE_FILE): Likewise.
43563 (grub_normal_do_completion): Added a new argument HOOK.
43564 (grub_normal_print_device_info): New prototype.
43566 * include/grub/disk.h (grub_print_partinfo): Removed.
43568 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
43569 (normal_mod_SOURCES): Likewise.
43570 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
43571 (normal_mod_SOURCES): Likewise.
43573 * commands/ls.c (grub_ls_list_disks): Use
43574 grub_normal_print_device_info instead of grub_print_partinfo. Free
43576 (grub_ls_list_files): Use grub_normal_print_device_info instead of
43577 duplicating the code.
43579 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
43581 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
43582 follow GCS more precisely.
43583 * commands/i386/pc/vbe_test.c: Likewise.
43584 * include/grub/i386/pc/vbe.h: Likewise.
43585 * term/i386/pc/vesafb.c: Likewise.
43586 * video/i386/pc/vbe.c: Likewise.
43588 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
43590 * DISTLIST: Added term/i386/pc/vesafb.c
43591 DISTLIST: Added video/i386/pc/vbe.c
43592 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
43593 DISTLIST: Added commands/i386/pc/vbe_test.c.
43594 * commands/i386/pc/vbe_list_modes.c: New file.
43595 * commands/i386/pc/vbe_test.c: Likewise.
43596 * term/i386/pc/vesafb.c: Likewise.
43597 * video/i386/pc/vbe.c: Likewise.
43598 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
43599 (grub_vbe_probe) Added prototype.
43600 (grub_vbe_set_video_mode) Likewise.
43601 (grub_vbe_get_video_mode) Likewise.
43602 (grub_vbe_get_video_mode_info) Likewise.
43603 (grub_vbe_set_pixel_rgb) Likewise.
43604 (grub_vbe_set_pixel_index) Likewise.
43605 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
43606 (pkgdata_MODULES): Added vesafb.mod.
43607 (pkgdata_MODULES): Added vbe_list_modes.mod.
43608 (pkgdata_MODULES): Added vbe_test.mod.
43609 (vbe_mod_SOURCES): Added.
43610 (vbe_mod_CFLAGS): Likewise.
43611 (vesafb_mod_SOURCES): Likewise.
43612 (vesafb_mod_CFLAGS): Likewise.
43613 (vbe_list_modes_mod_SOURCES): Likewise.
43614 (vbe_list_modes_mod_CFLAGS): Likewise.
43615 (vbe_test_mod_SOURCES): Likewise.
43616 (vbe_test_mod_CFLAGS): Likewise.
43618 2005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
43620 * normal/command.c (grub_command_execute): If INTERACTIVE is
43621 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
43622 CMDLINE. Disable the pager if INTERACTIVE is true.
43623 All callers are changed.
43625 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
43626 before reading a config file.
43627 * normal/main.c (read_config_file): Even if a command is not
43628 found, register it if it is within an entry.
43630 * util/grub-emu.c: Include sys/types.h and unistd.h.
43631 (options): Added --hold.
43632 (struct arguments): Added a new member "hold".
43633 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
43635 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
43636 cleared by a debugger, if it is not zero.
43638 * include/grub/normal.h (grub_command_execute): Add an argument
43641 2005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
43643 * DISTLIST: Added include/grub/i386/pc/vbe.h.
43645 2005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
43647 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
43648 program with another one, because the old one didn't detect a bug
43649 in gcc-3.4. Always use regparm 2, because the new test is still
43650 not enough for gcc-4.0. Someone must investigate a simple test
43651 case which detects a bug in gcc-4.0.
43653 2005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
43655 * DISTLIST: Added normal/completion.c.
43657 * normal/completion.c: New file.
43659 * term/i386/pc/console.c (grub_console_getwh): New function.
43660 (grub_console_term): Assign grub_console_getwh to getwh.
43662 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
43663 function is defined in normal/completion.c as
43664 grub_normal_do_completion.
43665 (grub_cmdline_get): Use grub_normal_do_completion instead of
43668 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
43669 returns non-zero, otherwise return 0.
43670 (grub_partition_iterate): First, probe the partition map. Then,
43671 call ITERATE only for this partition map.
43673 * kern/misc.c (grub_strncmp): Rewritten.
43675 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
43676 returns non-zero. Otherwise return 0.
43678 * include/grub/partition.h (grub_partition_map_iterate): Return
43679 int instead of void.
43681 * include/grub/normal.h (grub_normal_do_completion): New prototype.
43683 * include/grub/misc.h (grub_strncmp): Change the type of N to
43686 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
43689 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
43690 unsigned explicitly before comparing it with I.
43692 * kern/main.c (grub_env_write_root): Add the attribute unused into
43695 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
43696 normal/completion.c.
43697 (normal_mod_SOURCES): Likewise.
43698 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
43699 (normal_mod_SOURCES): Likewise.
43701 * normal/command.c (grub_iterate_commands): If ITERATE returns
43702 non-zero, return one immediately.
43704 2005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
43706 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
43707 * kern/i386/pc/startup.S: Updated Global Descriptor table's
43709 (grub_vbe_get_controller_info): New function.
43710 (grub_vbe_get_mode_info): Likewise.
43711 (grub_vbe_set_mode): Likewise.
43712 (grub_vbe_get_mode): Likewise.
43713 (grub_vbe_set_memory_window): Likewise.
43714 (grub_vbe_get_memory_window): Likewise.
43715 (grub_vbe_set_scanline_length): Likewise.
43716 (grub_vbe_get_scanline_length): Likewise.
43717 (grub_vbe_set_display_start): Likewise.
43718 (grub_vbe_get_display_start): Likewise.
43719 (grub_vbe_set_palette_data): Likewise.
43720 * include/grub/i386/pc/vbe.h: New file.
43722 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
43724 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
43725 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
43726 * DISTLIST: Likewise.
43727 * kern/ieee1275/of.c: Moved to ...
43728 * kern/ieee1275/ieee1275.c: ... here.
43730 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
43732 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
43733 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
43734 Pass 0 as `end' parameter to grub_strtoul().
43736 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
43738 * include/grub/powerpc/ieee1275/console.h: Do not include
43739 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
43741 (grub_console_cur_color): Remove i386-specific prototype.
43742 (grub_console_real_putchar): Likewise.
43743 (grub_console_checkkey): Likewise.
43744 (grub_console_getkey): Likewise.
43745 (grub_console_getxy): Likewise.
43746 (grub_console_gotoxy): Likewise.
43747 (grub_console_cls): Likewise.
43748 (grub_console_setcursor): Likewise.
43749 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
43750 Include <grub/machine/console.h>.
43751 * term/ieee1275/ofconsole.c: Likewise.
43753 2005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
43755 * Makefile.in (LIBLZO): New variable.
43757 * configure.ac: Check for LZO version 2.
43759 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
43760 lzo/lzo1x.h instead of lzo1x.h.
43762 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
43765 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
43766 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
43768 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
43769 copying the data from PARTITION to P.
43771 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
43773 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
43774 negative, unload the module.
43776 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
43777 map is "pc_partition_map" but not "pc".
43778 (usage): Fix the description. The options are --boot-image and
43779 --core-image but not --boot-file or --core-file.
43780 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
43781 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
43784 * util/i386/pc/grub-install.in: Do not specify --boot-file or
43785 --core-file. Specify INSTALL_DEVICE as an argument.
43787 * util/console.c: Include config.h.
43788 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
43789 [HAVE_NCURSES_H]: Include ncurses.h.
43790 [HAVE_CURSES_H]: Include curses.h.
43791 [!A_NORMAL] (A_NORMAL): Defined as zero.
43792 [!A_STANDOUT] (A_STANDOUT): Likewise.
43794 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
43796 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
43798 * configure.ac: Check for curses libraries and headers.
43800 * Makefile.in (LIBCURSES): New variable.
43802 * genmk.rb (Script::rule): Set the executable bits.
43804 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
43805 name of the PC partition map is "pc_partition_map" but not "pc".
43807 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
43809 * util/i386/pc/grub-install.in (grub_probefs): New variable.
43810 (modules): Likewise.
43811 (usage): Added descriptions for --modules and --grub-probefs.
43812 Handle --modules and --grub-probefs. Save the arguments in MODULES
43813 and GRUB_PROBEFS, respectively.
43814 Auto-detect a filesystem module against GRUBDIR. If the result is
43815 empty and modules are not specified explicitly, abort the
43816 installation. Add the result to MODULES.
43818 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
43819 disk/powerpc/ieee1275/ofdisk.c,
43820 include/grub/powerpc/ieee1275/init.h and
43821 term/powerpc/ieee1275/ofconsole.c.
43822 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
43823 term/ieee1275/ofconsole.c.
43825 * include/grub/powerpc/ieee1275/console.h: Resurrected.
43827 * COPYING: Upgraded to the latest version. Only the address of the
43828 FSF office has changed.
43830 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
43832 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
43833 kern/ieee1275.c with kern/ieee1275/of.c.
43835 * kern/ieee1275.c: Moved to ...
43836 * kern/ieee1275/of.c: ... here.
43838 2005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
43840 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
43843 * config.guess: Updated to the latest version from gnulib.
43844 * config.sub: Likewise.
43845 * install.sh: Likewise.
43846 * mkinstalldirs: Likewise.
43848 * include/grub/console.h: Removed. This file is arch-specific. Do
43849 not put this in include/grub.
43851 * include/grub/i386/pc/console.h: Resurrected.
43853 * util/console.c: Include grub/machine/console.h instead of
43855 * util/grub-emu.c: Likewise.
43857 2005-08-04 Marco Gerards <metgerards@student.han.nl>
43859 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
43862 From Vincent Pelletier <subdino2004@yahoo.fr>
43863 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
43864 Redefined to use grub_getwh.
43865 (grub_term): New member named getwh.
43866 (grub_getwh): New prototype.
43867 * kern/term.c (grub_getwh): New function.
43868 * term/i386/pc/console.c (grub_console_getwh): New function.
43869 (grub_console_term): New member `getwh'.
43870 * term/i386/pc/vga.c (grub_vga_getwh): New function.
43871 (grub_vga_term): New member `getwh'.
43872 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
43874 (grub_ofconsole_getw): New function.
43875 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
43876 (grub_ofconsole_term): New field named getwh and new initial
43879 2005-08-03 Hollis Blanchard <hollis@penguinppc.org>
43881 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
43882 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
43883 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
43884 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
43885 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
43886 of <grub/machine/ieee1275.h>.
43887 * commands/ieee1275/reboot.c: Likewise.
43888 * boot/powerpc/ieee1275/ieee1275.c: Move ...
43889 * kern/ieee1275.c: ... to here. All users updated. Change all
43890 parameter structs to use new type `grub_ieee1275_cell_t'.
43891 * term/powerpc/ieee1275/ofconsole.c: Move ...
43892 * term/ieee1275/ofconsole.c: ... to here. All users updated.
43893 * disk/powerpc/ieee1275/ofdisk.c: Move ...
43894 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
43895 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
43897 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
43898 Remove unused prototypes. All users updated.
43899 * include/grub/powerpc/ieee1275/console.h: Removed.
43900 * include/grub/powerpc/ieee1275/ieee1275.h: Define
43901 `grub_ieee1275_cell_t'.
43902 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
43903 Cast comparisons with -1 to the correct type.
43904 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
43905 type to match `grub_ieee1275_entry_fn'.
43907 2005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
43909 * DISTLIST: Added util/i386/pc/grub-probefs.c.
43911 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
43912 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
43914 (grub_probefs_SOURCES): New variable.
43916 * util/i386/pc/grub-probefs.c: New file.
43918 * util/i386/pc/grub-setup.c (main): Call
43919 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
43920 grub_hfs_init and grub_jfs_init to initialize the system. Call
43921 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
43922 grub_pc_partition_map_fini to finish the system.
43924 2005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
43926 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
43928 (grub_multiboot_load_elf32): Likewise.
43929 (grub_multiboot_is_elf64): Likewise.
43930 (grub_multiboot_load_elf64): Likewise.
43931 (grub_multiboot_load_elf): Likewise.
43932 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
43933 an ELF32 or ELF64 file.
43934 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
43936 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
43937 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
43938 NULL before calling FS->LABEL.
43939 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
43940 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
43941 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
43942 before calling FS->LABEL.
43944 2005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
43946 * util/i386/pc/grub-install.in (datadir): New variable.
43948 (pkgdatadir): New variable.
43949 (pkglibdir): Removed.
43951 2005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
43953 * DISTLIST: Added util/i386/pc/grub-install.in.
43955 * util/i386/pc/grub-install.in: New file.
43957 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
43958 (grub_install_SOURCES): Likewise.
43960 * genmk.rb: Added support for scripts.
43961 (Script): New class.
43962 (scripts): New variable.
43964 * Makefile.in (install-local): Install sbin_SCRIPTS by
43966 (uninstall): Remove sbin_SCRIPTS.
43968 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
43969 device, try to get a GRUB device by
43970 grub_util_biosdisk_get_grub_dev.
43973 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
43974 description for --device-map.
43976 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
43978 Change the semantics of variable hooks. They now return strings
43979 instead of error values.
43981 * util/i386/pc/grub-setup.c: Include grub/env.h.
43982 (setup): Use grub_device_set_root instead of grub_env_set.
43984 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
43985 grub_env_get instead of grub_device_set_root and
43986 grub_device_get_root, respectively.
43988 * kern/main.c (grub_env_write_root): New function.
43989 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
43990 grub_env_set instead of grub_device_set_root.
43992 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
43994 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
43995 rather than calling ENV->WRITE_HOOK afterwards.
43996 (grub_env_get): Return the result of ENV->READ_HOOK rather than
43997 passing a pointer of a pointer.
43998 (grub_register_variable_hook): Change the types of "read_hook" and
43999 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
44001 Allocate the default empty string on the heap, because this string
44002 may be freed later.
44004 * kern/device.c: Include grub/env.h.
44005 (grub_device_set_root): Removed.
44006 (grub_device_get_root): Likewise.
44007 (grub_device_open): Use grub_env_get instead of
44008 grub_device_get_root.
44010 * include/grub/env.h (grub_env_read_hook_t): New type.
44011 (grub_env_write_hook_t): Likewise.
44012 (grub_env_var): Change the types of "read_hook" and "write_hook"
44013 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
44014 (grub_register_variable_hook): Likewise.
44016 * include/grub/device.h (grub_device_set_root): Removed.
44017 (grub_device_set_root): Likewise.
44019 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
44020 make sure that DIRNAME terminates with '/', so that
44021 grub_fat_find_dir will fail if PATH is not a directory.
44023 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
44025 Use the qualifier auto for print_files and print_files_long.
44026 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
44028 Put a newline only if there is no error.
44029 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
44032 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
44034 * kern/partition.c (grub_partition_probe): Initialize PART to
44035 NULL. Otherwise, when no partition map is registered, this returns
44038 2005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
44040 * partmap/apple.c (apple_partition_map_iterate): Check if POS
44041 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
44044 2005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
44046 * commands/ls.c (grub_ls_list_disks): Print the filesystem
44047 information on each device, if it does not have partitions. Print
44048 "Device" instead of "Disk", because this function is not specific
44051 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
44052 static to ensure that it is put on the memory rather than a
44055 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
44057 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
44058 (grub_cat_init): Likewise.
44059 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
44060 (options): Likewise.
44061 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
44062 (grub_configfile_init): Likewise.
44063 * font/manager.c (GRUB_MOD_INIT): Likewise.
44064 * commands/help.c (GRUB_MOD_INIT): Likewise.
44065 (grub_help_init): Likewise.
44066 * normal/command.c (grub_command_init): Likewise.
44067 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
44068 * disk/loopback.c (grub_loop_init): Likewise.
44069 (GRUB_MOD_INIT): Likewise.
44070 * commands/ls.c (grub_ls_init): Likewise.
44071 (GRUB_MOD_INIT): Likewise.
44072 (options): Likewise.
44073 * commands/boot.c (grub_boot_init): Likewise.
44074 (GRUB_MOD_INIT): Likewise.
44075 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
44076 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
44077 (GRUB_MOD_INIT): Likewise.
44078 * commands/cmp.c (grub_cmp_init): Likewise.
44079 (GRUB_MOD_INIT): Likewise.
44081 * normal/arg.c: Use <> instead of "" to include header files.
44082 (SHORT_ARG_HELP): New macro.
44083 (SHORT_ARG_USAGE): Likewise.
44084 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
44085 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
44087 (find_short): Check if C is 'h' or 'u' explicitly.
44088 (grub_arg_show_help): Use space characters instead of tabs. Treat
44089 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
44090 are shown with --help and --usage only if they are not used for
44091 the command itself.
44092 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
44095 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
44096 const into "longarg". Change the type of "shortarg" to int.
44098 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
44100 * boot/i386/pc/boot.S (boot_drive_check): New label.
44102 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
44105 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
44106 which do not pass a boot drive correctly. Copied from GRUB Legacy.
44108 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
44110 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
44111 When turning off Gate A20, skip the check and return immediately,
44112 because this is not fatal usually.
44114 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
44116 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
44117 be 0x7C00 instead of 0x8000.
44119 * boot/i386/pc/pxeboot.S: Rewritten.
44121 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
44123 (gate_a20_check_state): Read a byte from 0x108000. Invert the
44126 2005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
44128 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
44129 robustness. This routine now supports a BIOS call and System
44130 Control Port A to modify the gate A20.
44132 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
44133 Increased to 0x440.
44135 2005-07-12 Hollis Blanchard <hollis@penguinppc.org>
44137 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
44138 device path and resulting ihandle.
44139 (grub_ofdisk_close): dprintf the ihandle being closed.
44140 (grub_ofdisk_read): dprintf function parameters.
44141 * kern/mm.c (grub_mm_init_region): Likewise.
44142 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
44143 (grub_linux_boot): dprintf the Linux entry point, initrd address and
44144 size, and boot arguments.
44145 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
44146 before loading into memory.
44147 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
44148 before loading into memory.
44150 2005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
44152 * kern/mm.c: Added much documentation.
44153 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
44154 8, set to 5 instead of 8.
44156 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
44158 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
44160 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
44161 (grub_mkdevicemap_SOURCES): New variable.
44163 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
44164 lib/device.c of GRUB Legacy.
44166 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
44168 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
44169 instead of PATH is NULL.
44171 2005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
44173 * commands/cmp.c (BUFFER_SIZE): New macro.
44174 (grub_cmd_cmp): Close the right file at the right time. Compare
44175 only data just read. Don't report files of different size as
44176 identical. Dynamically allocate buffers. Move variable
44177 declarations at the beginning of function.
44179 2005-07-09 Yoshinori Okuji <okuji@enbug.org>
44181 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
44184 2004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
44186 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
44187 when backspace is pressed at beginning of line.
44189 2005-07-03 Yoshinori Okuji <okuji@enbug.org>
44191 * DISTLIST: Added genfslist.sh.
44193 * normal/main.c (fs_module_list): New variable.
44194 (autoload_fs_module): New function.
44195 (read_fs_list): Likewise.
44196 (grub_normal_execute): Call read_fs_list.
44198 * kern/fs.c (grub_fs_autoload_hook): New variable.
44199 (grub_fs_probe): Added support for auto-loading.
44201 * include/grub/normal.h (struct grub_fs_module_list): New struct.
44202 (grub_fs_module_list_t): New type.
44204 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
44205 (grub_fs_autoload_hook): New prototype.
44207 * genfslist.sh: New file.
44209 * genmk.rb: Added a rule to generate a filesystem list.
44211 2005-06-30 Marco Gerards <metgerards@student.han.nl>
44213 * configure.ac: Fix the test for cross-compiling.
44215 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
44216 define GRUB_UTIL anymore.
44218 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
44219 so this function works on other systems than just big endian.
44220 (load_modules): Likewise.
44221 (add_segments): Likewise.
44223 2005-06-23 Hollis Blanchard <hollis@penguinppc.org>
44225 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
44226 contains `l' modifier, get a long from va_arg().
44228 2005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
44230 * kern/mm.c (grub_free): If the next free block which is being
44231 merged is the first free block, set the first block to the block
44233 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
44235 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
44237 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
44238 `grub_ieee1275_chosen'.
44240 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
44242 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
44243 (grub_ieee1275_chosen): New variable.
44244 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
44246 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
44247 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
44248 Rename first argument to `phandle' for consistency.
44249 (grub_ieee1275_get_property_length): Likewise.
44250 (grub_ieee1275_next_property): Likewise. Change type of first argument
44251 to grub_ieee1275_phandle_t.
44252 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
44253 Move export next to declaration.
44254 (grub_ieee1275_chosen): New variable.
44255 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
44256 Correct cosmetic typo.
44257 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
44258 `grub_ieee1275_chosen'.
44259 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
44260 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
44261 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
44262 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
44263 `grub_ieee1275_chosen'.
44265 2005-05-10 Hollis Blanchard <hollis@penguinppc.org>
44267 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
44269 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
44270 /chosen/bootargs as "variable=value" pairs.
44272 2005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
44274 * include/grub/misc.h (grub_dprintf): New macro.
44275 (grub_real_dprintf): New prototype.
44276 (grub_strword): Likewise.
44277 (grub_iswordseparator): Likewise.
44278 * kern/misc.c (grub_real_dprintf): New function.
44279 (grub_strword): Likewise.
44280 (grub_iswordseparator): Likewise.
44282 2005-04-30 Hollis Blanchard <hollis@penguinppc.org>
44284 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
44285 (roundup): Remove macro.
44286 (grub_ieee1275_flags): Make static.
44287 (grub_ieee1275_realmode): Remove.
44288 (grub_ieee1275_test_flag): New function.
44289 (grub_ieee1275_set_flag): Likewise.
44290 (find_options): Rename to `grub_ieee1275_find_options'; update
44291 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
44292 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
44293 (cmain): New prototype.
44294 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
44295 `grub_ieee1275_flags' directly.
44296 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
44297 machine/biosdisk.h.
44298 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
44299 Don't include grub/machine/init.h.
44300 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
44301 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
44303 (grub_ieee1275_realmode): Likewise.
44304 (grub_ieee1275_flag): New enum.
44305 (grub_ieee1275_test_flag): New prototype.
44306 (grub_ieee1275_set_flag): New prototype.
44307 * include/grub/powerpc/ieee1275/init.h: Remove file.
44308 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
44309 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
44310 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
44311 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
44313 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
44314 `grub_ieee1275_test_flag'.
44315 (grub_ieee1275_encode_devname): Likewise.
44317 2005-04-21 Hollis Blanchard <hollis@penguinppc.org>
44319 * include/grub/powerpc/ieee1275/ieee1275.h
44320 (grub_ieee1275_encode_devname): New prototype.
44321 (grub_ieee1275_get_filename): Likewise.
44322 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
44324 (grub_set_prefix): Likewise.
44325 (grub_machine_init): Call grub_set_prefix.
44326 * kern/powerpc/ieee1275/openfw.c: Fix typos.
44327 (grub_parse_type): New enum.
44328 (grub_ieee1275_get_devargs): New function.
44329 (grub_ieee1275_get_devname): Likewise.
44330 (grub_ieee1275_parse_args): Likewise.
44331 (grub_ieee1275_get_filename): Likewise.
44332 (grub_ieee1275_encode_devname): Likewise.
44334 2005-03-30 Marco Gerards <metgerards@student.han.nl>
44336 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
44337 `grub_loader_unset'.
44339 2005-03-26 Hollis Blanchard <hollis@penguinppc.org>
44341 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
44342 instead of grub_ieee1275_interpret.
44343 (grub_halt_init): New function.
44344 (grub_halt_fini): Likewise.
44345 (GRUB_MOD_INIT): Correct message grammar.
44346 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
44347 instead of grub_ieee1275_interpret.
44348 (grub_reboot_init): New function.
44349 (grub_reboot_fini): Likewise.
44350 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
44351 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
44352 util/i386/pc/misc.c with commands/ieee1275/halt.c,
44353 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
44354 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
44356 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
44358 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
44360 (grub_halt): Likewise.
44361 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
44362 (cmain): Remove __attribute__((unused)).
44363 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
44364 (grub_heap_len): Likewise.
44365 (grub_machine_fini): New function.
44366 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
44367 (grub_halt): Likewise.
44368 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
44370 * util/powerpc/ieee1275/misc.c: New file.
44372 2005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
44374 * DISTLIST: New file.
44375 * gendistlist.sh: Likewise.
44377 * Makefile.in (COMMON_DISTFILES): Removed.
44378 (BOOT_DISTFILES): Likewise.
44379 (CONF_DISTFILES): Likewise.
44380 (DISK_DISTFILES): Likewise.
44381 (FS_DISTFILES): Likewise.
44382 (INCLUDE_DISTFILES): Likewise.
44383 (KERN_DISTFILES): Likewise.
44384 (LOADER_DISTFILES): Likewise.
44385 (TERM_DISTFILES): Likewise.
44386 (UTIL_DISTFILES): Likewise.
44387 (DISTFILES): Likewise.
44388 (uninstall): Uninstall files in $(pkgdata_DATA).
44389 (DISTLIST): New target.
44390 (distdir): Use the contents of the file DISTLIST to get a list of
44393 2005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
44395 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
44396 descriptor. This is ported from GRUB Legacy.
44398 * gencmdlist.sh: Added an extra semicolon to make it work with
44399 old sed versions. Reported by Robert Bihlmeyer
44400 <robbe@orcus.priv.at>.
44402 2005-03-08 Yoshinori Okuji <okuji@enbug.org>
44404 Automatic loading of commands is supported.
44406 * normal/main.c (read_command_list): New function.
44407 (grub_normal_execute): Call read_command_list.
44409 * normal/command.c (grub_register_command): Return zero or CMD.
44410 Allocate CMD->NAME from the heap.
44411 Initialize CMD->MODULE_NAME to zero.
44412 Find the same name as well. If the same command is found and it is
44413 a dummy command, overwrite members. If it is not a dummy command,
44415 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
44416 (grub_command_find): If a dummy command is found, load a module
44417 and retry to find a command only once.
44419 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
44420 make sure that each command is loaded.
44422 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
44424 (struct grub_command): Remove const from the member `name'.
44425 Add a new member `module_name'.
44426 (grub_register_command): Return grub_command_t.
44428 * commands/help.c (grub_cmd_help): Call grub_command_find to make
44429 sure that each command is loaded.
44431 * genmk.rb (PModule::rule): Specify a module name without the
44432 suffix ".mod" to gencmdlist.sh.
44434 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
44436 * gencmdlist.sh: New file.
44438 * genmk.rb (PModule::rule): Generate a rule for a command list.
44440 Generate command.lst from $(COMMANDFILES).
44442 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
44443 (DATA): Added $(pkgdata_DATA).
44444 (install-local): Install files in $(pkgdata_DATA).
44446 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
44448 * term/i386/pc/vga.c (debug_command): Removed.
44449 (GRUB_MOD_INIT): Do not register the command "debug".
44451 From Hollis Blanchard:
44452 * commands/configfile.c: New file.
44453 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
44454 commands/configfile.c.
44455 (pkgdata_MODULES): Added configfile.mod.
44456 (configfile_mod_SOURCES): New variable.
44457 (configfile_mod_CFLAGS): Likewise.
44458 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
44459 commands/configfile.c.
44460 (pkgdata_MODULES): Added configfile.mod.
44461 (configfile_mod_SOURCES): New variable.
44462 (configfile_mod_CFLAGS): Likewise.
44463 * util/grub-emu.c (main): Call grub_configfile_init and
44464 grub_configfile_fini.
44465 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
44467 [GRUB_UTIL] (grub_configfile_fini): Likewise.
44469 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
44471 * normal/arg.c (grub_arg_show_help): Do not show the bug report
44474 * commands/help.c (grub_cmd_help): Do not print newlines after
44475 the last command in print_command_help.
44477 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
44479 * commands/default.h: New file.
44480 * commands/timeout.h: Likewise.
44481 * normal/context.c: Likewise.
44483 * util/misc.c: Do not include sys/times.h.
44484 Include sys/time.h and grub/machine/time.h.
44485 (grub_get_rtc): Rewritten with gettimeofday.
44487 * util/grub-emu.c (main): Call grub_default_init and
44488 grub_timeout_init before grub_normal_init, and call
44489 grub_timeout_fini and grub_default_fini after grub_main.
44491 * util/console.c (grub_ncurses_checkkey): Return the read
44494 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
44497 * normal/main.c (read_config_file): Push MENU. If this fails,
44498 print an error and wait for a user input.
44499 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
44500 If a menu is empty or an error occurs, pop MENU.
44501 (grub_normal_execute): Pop and free MENU after grub_menu_run
44504 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
44506 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
44508 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
44510 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
44512 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
44515 * include/grub/normal.h (struct grub_menu_list): New struct.
44516 (grub_menu_list_t): New type.
44517 (struct grub_context): New struct.
44518 (grub_context_t): New type.
44519 (grub_register_command): Got rid of EXPORT_FUNC.
44520 (grub_unregister_command): Likewise.
44521 (grub_context_get): New prototype.
44522 (grub_context_get_current_menu): Likewise.
44523 (grub_context_push_menu): Likewise.
44524 (grub_context_pop_menu): Likewise.
44525 [GRUB_UTIL] (grub_default_init): Likewise.
44526 [GRUB_UTIL] (grub_default_fini): Likewise.
44527 [GRUB_UTIL] (grub_timeout_init): Likewise.
44528 [GRUB_UTIL] (grub_timeout_fini): Likewise.
44530 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
44531 commands/timeout.c and normal/context.c.
44532 (pkgdata_MODULES): Added default.mod and timeout.mod.
44533 (normal_mod_SOURCES): Added normal/context.c.
44534 (default_mod_SOURCES): New variable.
44535 (default_mod_CFLAGS): Likewise.
44536 (timeout_mod_SOURCES): Likewise.
44537 (timeout_mod_CFLAGS): Likewise.
44538 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
44540 (pkgdata_MODULES): Added default.mod and timeout.mod.
44541 (normal_mod_SOURCES): Added normal/context.c.
44542 (default_mod_SOURCES): New variable.
44543 (default_mod_CFLAGS): Likewise.
44544 (timeout_mod_SOURCES): Likewise.
44545 (timeout_mod_CFLAGS): Likewise.
44547 * Makefile.in (all-local): Added $(MKFILES).
44549 2005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
44551 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
44552 (grub_emu_SOURCES): Likewise.
44553 (pkgdata_MODULES): Add `sun.mod'.
44554 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
44555 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
44557 (pkgdata_MODULES): Add `sun.mod'.
44558 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
44559 * include/grub/partition.h (grub_sun_partition_map_init): New
44561 (grub_sun_partition_map_fini): Likewise.
44562 * partmap/sun.c: New file.
44563 * util/grub-emu.c (main): Initialize and de-initialize the sun
44564 partitionmap support.
44566 2005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
44568 This implements an Emacs-like menu entry editor.
44570 * normal/menu_entry.c: New file.
44572 * util/console.c (grub_ncurses_putchar): Translate some Unicode
44573 characters to ASCII.
44574 (saved_char): New variable.
44575 (grub_ncurses_checkkey): Rewritten completely.
44576 (grub_ncurses_getkey): Likewise.
44577 (grub_ncurses_init): Call raw instead of cbreak.
44579 * normal/menu.c (print_entry): Do not put a space.
44580 (init_page): Renamed to ...
44581 (grub_menu_init_page): ... this. All callers changed.
44582 (edit_menu_entry): Removed.
44583 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
44585 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
44587 * kern/misc.c (grub_vprintf): Call grub_refresh.
44589 * normal/menu.c (DISP_LEFT): Renamed to ...
44590 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
44591 * normal/menu.c (DISP_UP): Renamed to ...
44592 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
44593 * normal/menu.c (DISP_RIGHT): Renamed to ...
44594 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
44595 * normal/menu.c (DISP_DOWN): Renamed to ...
44596 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
44597 * normal/menu.c (DISP_HLINE): Renamed to ...
44598 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
44599 * normal/menu.c (DISP_VLINE): Renamed to ...
44600 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
44601 * normal/menu.c (DISP_UL): Renamed to ...
44602 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
44603 * normal/menu.c (DISP_UR): Renamed to ...
44604 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
44605 * normal/menu.c (DISP_LL): Renamed to ...
44606 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
44607 * normal/menu.c (DISP_LR): Renamed to ...
44608 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
44609 * normal/menu.c (TERM_WIDTH): Renamed to ...
44610 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
44611 * normal/menu.c (TERM_HEIGHT): Renamed to ...
44612 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
44613 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
44614 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
44615 * normal/menu.c (TERM_MARGIN): Renamed to ...
44616 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
44617 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
44618 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
44619 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
44620 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
44621 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
44622 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
44623 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
44624 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
44625 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
44626 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
44627 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
44628 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
44629 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
44630 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
44631 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
44632 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
44633 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
44634 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
44635 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
44636 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
44637 All callers changed.
44639 * include/grub/normal.h: New prototype.
44641 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
44642 normal/menu_entry.c.
44643 (normal_mod_SOURCES): Likewise.
44644 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
44645 (normal_mod_SOURCES): Likewise.
44647 2005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
44649 * include/grub/normal.h (grub_halt_init): New prototype.
44650 (grub_halt_fini): Likewise.
44651 (grub_reboot_init): Likewise.
44652 (grub_reboot_fini): Likewise.
44654 * util/grub-emu.c: Include signal.h.
44655 (main_env): New global variable.
44656 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
44658 (grub_machine_fini): New function.
44659 (main): Call grub_halt_init and grub_reboot_init before
44660 grub_main, and grub_reboot_fini and grub_halt_fini after it.
44661 Call setjmp with MAIN_ENV to go back afterwards.
44662 Call grub_machine_fini right before return.
44664 * include/grub/util/misc.h: Include setjmp.h.
44665 (main_env): New prototype.
44667 * include/grub/kernel.h (grub_machine_fini): New prototype.
44668 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
44669 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
44671 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
44672 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
44673 * term/i386/pc/console.c (grub_console_fini): Likewise.
44675 * util/i386/pc/misc.c: New file.
44677 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
44678 util/i386/pc/misc.c, commands/i386/pc/halt.c and
44679 commands/i386/pc/reboot.c.
44681 2005-02-14 Guillem Jover <guillem@hadrons.org>
44683 * include/grub/dl.h (grub_dl_check_header): New prototype.
44684 (grub_arch_dl_check_header): Change return type to grub_err_t,
44685 remove size parameter and export function. Update all callers.
44686 * kern/dl.c (grub_dl_check_header): New function.
44687 (grub_dl_load_core): Use `grub_dl_check_header' instead of
44688 `grub_arch_dl_check_header'. Check ELF type. Check if sections
44689 are inside the core.
44690 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
44691 independent ELF header checks.
44692 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
44693 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
44694 `grub_dl_check_header' instead of explicit checks. Check for the
44696 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
44697 `grub_dl_check_header' instead of explicit checks. Remove arch
44698 specific ELF header checks.
44700 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
44703 2005-02-13 Hollis Blanchard <hollis@penguinppc.org>
44705 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
44706 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
44708 2005-02-12 Hollis Blanchard <hollis@penguinppc.org>
44710 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
44711 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
44712 (part_map_iterate): Clear `grub_errno' and return 0 if
44713 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
44714 * partmap/amiga.c (amiga_partition_map_iterate): Return
44715 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
44716 * partmap/apple.c (apple_partition_map_iterate): Likewise.
44718 2005-02-01 Guillem Jover <guillem@hadrons.org>
44720 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
44723 2005-01-31 Marco Gerards <metgerards@student.han.nl>
44725 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
44727 (grub_rescue_cmd_linux): New prototype.
44728 (grub_rescue_cmd_initrd): Likewise.
44729 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
44731 (grub_linux_release_mem): Release the memory for the initrd.
44732 (grub_load_linux): Renamed from this...
44733 (grub_rescue_cmd_linux): ...To this. Changed all callers.
44734 Changed `entry' not to be static. Loop over memory regions to
44735 find another one when the default fails.
44736 (grub_rescue_cmd_initrd): New function.
44737 (grub_linux_init): Remove function.
44738 (grub_linux_fini): Likewise.
44739 (GRUB_MOD_INIT): Register `initrd'.
44740 (GRUB_MOD_FINI): Unregister `initrd'.
44741 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
44743 (grub_linux_normal_fini): Likewise.
44744 (GRUB_MOD_INIT): Register `initrd'.
44745 (GRUB_MOD_FINI): Unregister `initrd'.
44747 2005-01-31 Marco Gerards <metgerards@student.han.nl>
44749 * commands/help.c: New file.
44750 * normal/arg.c (show_help): Renamed to...
44751 (grub_arg_show_help): ... this.
44752 * commands/i386/pc/halt.c: New file.
44753 * commands/i386/pc/reboot.c: Likewise.
44754 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
44755 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
44756 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
44757 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
44759 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
44761 (pkgdata_MODULES): Add `help.mod'.
44762 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
44763 * grub/i386/pc/init.h (grub_reboot): New prototype.
44764 (grub_halt): Likewise.
44765 * include/grub/normal.h (grub_arg_show_help): New prototype.
44766 (grub_help_init): Likewise.
44767 (grub_help_fini): Likewise.
44768 * util/grub-emu.c (main): Initialize and deinitialize the help
44771 * normal/cmdline.c (grub_cmdline_get): Doc fix.
44773 * normal/command.c (grub_command_init): Fixed the description of
44774 the `set' and `unset' commands.
44776 2005-01-31 Marco Gerards <metgerards@student.han.nl>
44778 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
44780 * commands/ieee1275/halt.c: New file.
44781 * commands/ieee1275/reboot.c: Likewise.
44782 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
44783 `__attribute__ ((unused))'. Some GCS related fixed.
44784 (grub_suspend_init) [GRUB_UTIL]: Function removed.
44785 (grub_suspend_fini): Likewise.
44786 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
44788 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
44789 (halt_mod_CFLAGS): New variables.
44790 * include/grub/powerpc/ieee1275/ieee1275.h
44791 (grub_ieee1275_interpret): New prototype.
44793 2005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
44795 * include/grub/misc.h (memmove): New prototype.
44796 (memcpy): Likewise.
44798 2005-01-22 Hollis Blanchard <hollis@penguinppc.org>
44800 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
44801 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
44803 2005-01-22 Marco Gerards <metgerards@student.han.nl>
44805 * kern/misc.c (grub_strndup): Function rewritten.
44807 2005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
44809 * normal/menu.c (TERM_WIDTH): Macro redefined.
44810 (TERM_TOP_BORDER_Y): Likewise.
44811 (draw_border): Replaced while-loop by a for-loop. Make the number
44812 of lines consistent with the number of lines displayed in
44813 print_entries. Added a margin below the rectangle.
44814 (print_entry): Make the entry fit in the rectangle.
44815 (print_entries): Display the scroll arrows next to the right
44818 2005-01-21 Marco Gerards <metgerards@student.han.nl>
44820 * fs/minix.c (grub_minix_find_file): Reserve more space for
44821 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
44822 `grub_strncpy' to copy `path' into it.
44824 2005-01-21 Marco Gerards <metgerards@student.han.nl>
44826 Add the loopback device, a device via which files can be accessed
44829 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
44830 (pkgdata_MODULES): Add loopback.mod.
44831 (loopback_mod_SOURCES): New variable.
44832 (loopback_mod_CFLAGS): Likewise.
44833 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
44835 (pkgdata_MODULES): Add loopback.mod.
44836 (loopback_mod_SOURCES): New variable.
44837 (loopback_mod_CFLAGS): Likewise.
44838 * disk/loopback.c: new file.
44839 * include/grub/normal.h (grub_loop_init): New prototype.
44840 (grub_loop_fini): New prototype.
44841 * util/grub-emu.c (main): Initialize and de-initialize loopback
44843 * include/grub/disk.h (grub_disk_dev_id): Add
44844 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
44846 2005-01-20 Hollis Blanchard <hollis@penguinppc.org>
44848 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
44850 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
44851 (suspend_mod_SOURCES): New variable.
44852 (suspend_mod_CFLAGS): Likewise.
44853 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
44855 * commands/ieee1275/suspend.c: New file.
44857 2005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
44859 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
44860 ((unused))' to `__attribute__ ((used))'.
44861 (GRUB_MOD_FINI): Likewise.
44862 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
44863 * genmk.rb (PModule): Assign space to common symbols when linking
44866 2005-01-20 Marco Gerards <metgerards@student.han.nl>
44868 * include/grub/mm.h (grub_mm_init_region): Change the type of the
44869 `unsigned' arguments to `grub_size_t'.
44870 (grub_malloc): Likewise.
44871 (grub_realloc): Likewise.
44872 (grub_memalign): Likewise.
44873 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
44874 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
44875 * util/misc.c (grub_malloc): Likewise.
44876 (grub_realloc): Likewise.
44877 * kern/mm.c (get_header_from_pointer): Change the casts to
44878 `unsigned' into a cast to `grub_size_t'.
44880 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
44881 point to `currnode' when `currnode' is changed.
44883 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
44884 Schottelius <nico-linux@schottelius.org>.
44886 2005-01-09 Hollis Blanchard <hollis@penguinppc.org>
44888 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
44889 (note_path): Remove variable.
44890 (GRUB_IEEE1275_NOTE_NAME): New macro.
44891 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
44892 (grub_ieee1275_note_hdr): New structure.
44893 (grub_ieee1275_note_desc): Likewise.
44894 (grub_ieee1275_note): Likewise.
44895 (load_note): Remove `dir' argument. All callers updated. Remove
44896 `note_img' and `path'. Do not load a file from `note_path'.
44897 Initialize a struct grub_ieee1275_note and write that to `out'.
44898 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
44900 2005-01-05 Marco Gerards <metgerards@student.han.nl>
44902 * util/misc.c (grub_util_read_image): Revert last change. It
44903 called `grub_util_read_at', which seeks from the beginning of the
44906 2005-01-04 Hollis Blanchard <hollis@penguinppc.org>
44908 * TODO: Add note about endianness in grub-mkimage.
44909 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
44911 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
44912 (grub_mkimage_SOURCES): New target.
44913 * include/grub/kernel.h (grub_start_addr): Remove variable.
44914 (grub_end_addr): Likewise.
44915 (grub_total_module_size): Likewise.
44916 (grub_kernel_image_size): Likewise.
44917 (GRUB_MODULE_MAGIC): New constant.
44918 (grub_module_info): New structure.
44919 (grub_arch_modules_addr): New prototype.
44920 (grub_get_end_addr): Remove prototype.
44921 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
44922 * include/grub/powerpc/ieee1275/kernel.h: New file.
44923 * include/grub/util/misc.h (grub_util_get_fp_size): New
44925 (grub_util_read_at): Likewise.
44926 (grub_util_write_image_at): Likewise.
44927 * kern/main.c (grub_get_end_addr): Remove function.
44928 (grub_load_modules): Call grub_arch_modules_addr instead of using
44929 grub_end_addr. Look for a grub_module_info struct in memory. Use
44930 the grub_module_info fields instead of calling grub_get_end_addr
44931 as loop conditions. Move grub_add_unused_region code here.
44932 (grub_add_unused_region): Remove function.
44933 * kern/i386/pc/init.c: Include grub/cache.h.
44934 (grub_machine_init): Remove call to grub_get_end_addr. Remove
44935 one call to add_mem_region.
44936 (grub_arch_modules_addr): New function.
44937 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
44938 (grub_total_module_size): Likewise.
44939 Include grub/machine/kernel.h.
44940 (grub_arch_modules_addr): New function.
44941 * util/grub-emu.c (grub_end_addr): Remove variable.
44942 (grub_total_module_size): Likewise.
44943 (grub_arch_modules_addr): New function.
44944 * util/misc.c: Include unistd.h.
44945 (grub_util_get_fp_size): New function.
44946 (grub_util_read_at): Likewise.
44947 (grub_util_write_image_at): Likewise.
44948 (grub_util_read_image): Call grub_util_read_at.
44949 (grub_util_write_image): Call grub_util_write_image_at.
44950 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
44951 additional memory in kernel_img for a struct grub_module_info.
44952 Fill in that grub_module_info.
44953 * util/powerpc/ieee1275/grub-mkimage.c: New file.
44955 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
44957 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
44959 * include/grub/powerpc/ieee1275/ieee1275.h
44960 (grub_ieee1275_milliseconds): New prototype.
44961 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
44963 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
44964 grub_ieee1275_milliseconds.
44966 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
44968 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
44970 (find_options): New function.
44971 (cmain): Call find_options.
44972 * include/grub/powerpc/ieee1275/ieee1275.h
44973 (grub_ieee1275_realmode): New extern variable.
44974 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
44975 grub_map if grub_ieee1275_realmode is false.
44977 2004-12-29 Marco Gerards <metgerards@student.han.nl>
44979 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
44980 lines are inserted and make it work like readline. Reported by
44981 Vincent Pelletier <subdino2004@yahoo.fr>.
44983 2004-12-28 Marco Gerards <metgerards@student.han.nl>
44985 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
44987 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
44988 `kern/powerpc/cache.S'.
44990 2004-12-27 Marco Gerards <metgerards@student.han.nl>
44992 * genmk.rb: Handle the `Program' class in the main loop. Written
44993 by Johan Rydberg <jrydberg@gnu.org>.
44994 (Program): New class.
44995 (programs): New variable.
44996 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
44997 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
44998 instead of "grub/kernel.h". Include <grub/machine/init.h>.
44999 (help_arch): Function removed.
45000 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
45001 `powerpc/libgcc.h' and `loader.h'.
45002 (pkgdata_PROGRAMS): New variable.
45003 (sbin_UTILITIES): Variable removed.
45004 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
45005 (grubof_SOURCES): Variable re-defined so it only includes the
45006 core functionality.
45007 (grubof_CFLAGS): Remove `-DGRUBOF'.
45008 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
45009 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
45010 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
45011 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
45012 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
45013 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
45014 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
45015 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
45016 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
45017 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
45018 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
45019 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
45020 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
45021 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
45022 (pc_mod_CFLAGS): New variables.
45023 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
45024 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
45025 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
45026 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
45028 * include/grub/i386/pc/init.h (grub_os_area_addr)
45029 (rub_os_area_size): ... to here.
45030 * include/grub/powerpc/ieee1275/ieee1275.h
45031 (grub_ieee1275_entry_fn): Export symbol.
45032 * include/grub/powerpc/ieee1275/init.h: New file.
45033 * include/grub/powerpc/libgcc.h: Likewise.
45034 * include/grub/cache.h: Likewise.
45035 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
45036 <hollis@penguinppc.org>.
45037 * kern/dl.c: Include <grub/cache.h>.
45038 (grub_dl_flush_cache): New function.
45039 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
45041 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
45042 (grub_console_init): Removed prototypes.
45043 (grub_machine_init): Don't initialize the modules anymore.
45044 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
45046 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
45047 Macro undef removed.
45048 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
45049 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
45050 relocation `R_PPC_REL32'. Return an error when the relocation is
45052 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
45053 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
45054 * util/misc.c (grub_arch_sync_caches): Likewise.
45056 2004-12-19 Marco Gerards <metgerards@student.han.nl>
45058 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
45059 `symlist.c', add `grubof_symlist.c'.
45060 (symlist.c): Variable removed.
45061 (grubof_HEADERS): Variable added.
45062 (grubof_symlist.c): New target.
45063 (kernel_syms.lst): Use `grubof_HEADERS' instead of
45064 `kernel_img_HEADERS'.
45065 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
45066 * kern/powerpc/dl.c: New file.
45067 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
45069 (grub_arch_dl_relocate_symbols): Likewise.
45070 (grub_register_exported_symbols): Likewise.
45072 2004-12-13 Marco Gerards <metgerards@student.han.nl>
45074 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
45075 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
45076 to fail instead. Reported by Vincent Pelletier
45077 <subdino2004@yahoo.fr>.
45079 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
45080 it is not allocated. Reported by Vincent Pelletier
45081 <subdino2004@yahoo.fr>.
45083 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
45084 output so the output looks better.
45086 2004-12-04 Marco Gerards <metgerards@student.han.nl>
45088 Modulize the partition map support and add support for the amiga
45091 * commands/ls.c: Include <grub/partition.h> instead of
45092 <grub/machine/partition.h>.
45093 * kern/disk.c: Likewise.
45094 * kern/rescue.c: Likewise.
45095 * loader/i386/pc/chainloader.c: Likewise.
45096 * normal/cmdline.c: Likewise.
45097 * kern/powerpc/ieee1275/init.c: Likewise.
45098 (grub_machine_init): Call `grub_pc_partition_map_init',
45099 `grub_amiga_partition_map_init' and
45100 `grub_apple_partition_map_init'.
45101 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
45102 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
45103 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
45104 `partition.h' and `pc_partition.h'.
45105 (grub_setup_SOURCES): Remove
45106 `disk/i386/pc/partition.c'. Add `kern/partition.c',
45107 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
45108 (grub_emu_SOURCES): Likewise.
45109 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
45110 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
45111 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
45112 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
45113 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
45114 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
45115 (grubof_SOURCES): Likewise.
45116 * disk/i386/pc/partition.c: File removed.
45117 * disk/powerpc/ieee1275/partition.c: Likewise.
45118 * include/grub/powerpc/ieee1275/partition.h: Likewise.
45119 * include/grub/i386/pc/partition.h: Likewise.
45120 * kern/partition.c: New file.
45121 * partmap/amiga.c: Likewise.
45122 * partmap/apple.c: Likewise.
45123 * partmap/pc.c: Likewise.
45124 * include/grub/partition.h: Likewise..
45125 * include/grub/pc_partition.h: Likewise.
45126 * util/grub-emu.c: Include <grub/partition.h> instead of
45127 <grub/machine/partition.h>.
45128 (main): Call `grub_pc_partition_map_init',
45129 `grub_amiga_partition_map_init' and
45130 `grub_apple_partition_map_init' and deinitialize afterwards.
45131 * util/i386/pc/biosdisk.c: Include `#include
45132 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
45133 `<grub/machine/partition.h>'.
45134 * util/i386/pc/grub-setup.c: Likewise.
45135 * util/i386/pc/biosdisk.c: Likewise.
45136 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
45137 partition information in case of a PC partition.
45138 * util/i386/pc/grub-setup.c: Include `#include
45139 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
45140 `<grub/machine/partition.h>'.
45141 (setup): Only access the PC specific partition information in case
45144 2004-11-17 Hollis Blanchard <hollis@penguinppc.org>
45146 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
45147 (grub_longjmp): Likewise.
45148 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
45150 * normal/powerpc/setjmp.S: New file.
45151 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
45152 `normal/powerpc/setjmp.S'.
45153 (grubof_CFLAGS): Add `-DGRUBOF'.
45154 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
45155 [GRUB_UTIL && !GRUBOF].
45157 2004-11-16 Marco Gerards <metgerards@student.han.nl>
45159 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
45160 property named `name'. Correctly handle the error returned by
45161 `grub_ieee1275_finddevice' if a device can not be opened.
45163 2004-11-02 Hollis Blanchard <hollis@penguinppc.org>
45165 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
45166 `actual' for negativity.
45167 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
45170 2004-11-01 Marco Gerards <metgerards@student.han.nl>
45172 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
45173 (PAGE_OFFSET): New macro.
45174 (CRTC_ADDR_PORT): Likewise.
45175 (CRTC_DATA_PORT): Likewise.
45176 (START_ADDR_HIGH_REGISTER): Likewise.
45177 (START_ADDR_LOW_REGISTER): Likewise.
45178 (GRAPHICS_ADDR_PORT): Likewise.
45179 (GRAPHICS_DATA_PORT): Likewise.
45180 (READ_MAP_REGISTER): Likewise.
45181 (INPUT_STATUS1_REGISTER): Likewise.
45182 (INPUT_STATUS1_VERTR_BIT): Likewise.
45183 (page): New variable.
45184 (wait_vretrace): New function.
45185 (set_read_map): Likewise.
45186 (set_start_address): Likewise.
45187 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
45189 (check_vga_mem): Take the page into account.
45190 (write_char): Likewise.
45191 (write_cursor): Likewise.
45192 (scroll_up): Likewise. Copy the page to the page that is not
45193 shown and switch between both pages.
45194 (grub_vga_putchar): Fix off by one error.
45195 (grub_vga_cls): Wait for the vertical retrace. Take the page into
45198 2004-11-01 Marco Gerards <metgerards@student.han.nl>
45200 Add support for iso9660 (including rockridge).
45202 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
45203 (iso9660_mod_SOURCES): New variable.
45204 (iso9660_mod_CFLAGS): Likewise.
45205 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
45206 * include/grub/fs.h (grub_iso9660_init): New prototype.
45207 * util/grub-emu.c (main): Call `grub_iso9660_init'.
45208 * fs/iso9660.c: New file.
45210 * include/grub/misc.h (grub_strncat): New prototype.
45211 * kern/misc.c (grub_strncat): New function.
45213 * fs/hfs.c (grub_hfs_mount): Translate the error
45214 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
45215 * fs/jfs.c (grub_jfs_mount): Likewise.
45216 * fs/ufs.c (grub_ufs_mount): Likewise.
45218 2004-10-28 Hollis Blanchard <hollis@penguinppc.org>
45220 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
45221 which initialized BAT registers.
45222 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
45223 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
45225 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
45226 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
45228 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
45229 (grub_mapclaim): Likewise.
45230 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
45231 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
45234 2004-10-19 Hollis Blanchard <hollis@penguinppc.org>
45236 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
45237 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
45238 -ffreestanding and -msoft-float.
45240 2004-10-15 Hollis Blanchard <hollis@penguinppc.org>
45242 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
45243 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
45244 set in grub_ieee1275_flags.
45246 2004-10-14 Hollis Blanchard <hollis@penguinppc.org>
45248 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
45250 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
45251 grub_console_init first.
45252 Change the memory range used for grub_ieee1275_claim and
45253 grub_mm_init_region.
45254 Print an error message if the claim fails.
45255 Include <grub/misc.h>.
45257 2004-10-13 Hollis Blanchard <hollis@penguinppc.org>
45259 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
45260 Call grub_children_iterate for device nodes of type `scsi',
45262 (grub_ofdisk_open): Remove manual device alias resolution.
45263 Fix memory leak when device cannot be opened.
45264 * include/grub/powerpc/ieee1275/ieee1275.h
45265 (grub_children_iterate): New prototype.
45266 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
45268 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
45269 Return -1 if args.size was -1.
45271 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
45273 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
45274 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
45275 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
45276 Open Firmware's memory for it; claim memory from _start to _end.
45277 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
45278 (_end): New extern.
45279 (_start): Zero BSS from __bss_start to _end.
45280 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
45282 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
45284 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
45286 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
45287 -1 if args.base was -1.
45289 2004-10-08 Hollis Blanchard <hollis@penguinppc.org>
45291 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
45292 escape sequence instead of a literal ^L. Also call
45293 grub_ofconsole_gotoxy.
45295 2004-10-03 Hollis Blanchard <hollis@penguinppc.org>
45297 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
45298 void * arguments to grub_addr_t. All callers updated. Also make
45299 the `result' argument optional.
45300 (grub_ieee1275_release): change void * arguments to grub_addr_t.
45301 All callers updated.
45303 2004-09-22 Hollis Blanchard <hollis@penguinppc.org>
45305 * commands/ls.c (grub_ls_list_files): Use the string following the
45306 initial ')', if present, as the filesystem path.
45307 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
45309 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
45311 2004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
45313 Make the source code of the menu interface more readable.
45315 * normal/menu.c: Include grub/mm.h.
45316 (TERM_WIDTH): New macro.
45317 (TERM_HEIGHT): Likewise.
45318 (TERM_INFO_HEIGHT): Likewise.
45319 (TERM_MARGIN): Likewise.
45320 (TERM_SCROLL_WIDTH): Likewise.
45321 (TERM_TOP_BORDER_Y): Likewise.
45322 (TERM_LEFT_BORDER_X): Likewise.
45323 (TERM_BORDER_WIDTH): Likewise.
45324 (TERM_MESSAGE_HEIGHT): Likewise.
45325 (TERM_BORDER_HEIGHT): Likewise.
45326 (TERM_NUM_ENTRIES): Likewise.
45327 (TERM_FIRST_ENTRY_Y): Likewise.
45328 (TERM_ENTRY_WIDTH): Likewise.
45329 (TERM_CURSOR_X): Likewise.
45330 (draw_border): Use macros instead of magic numbers.
45331 (print_entry): Likewise.
45332 (print_entries): Likewise.
45333 (run_menu): Likewise. Also, handle the key 'e'.
45334 (run_menu_entry): Ignore empty command lines.
45335 (print_message): Added a new argument EDIT. If EDIT is true,
45336 print a different message.
45337 (init_page): Likewise.
45338 (edit_menu_entry): New function. Not implemented yet.
45340 2004-09-17 Marco Gerards <metgerards@student.han.nl>
45342 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
45343 can be loaded from normal mode.
45345 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
45347 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
45348 (multiboot_mod_CFLAGS): New variables.
45349 * loader/i386/pc/linux_normal.c: New file.
45350 * loader/i386/pc/multiboot_normal.c: Likewise.
45352 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
45353 attribute `unused'.
45355 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
45356 `fdiro' to read the mode information from instead of `diro'.
45358 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
45359 looking up a symlink.
45361 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
45363 * normal/command.c (grub_command_execute): Don't parse the
45364 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
45365 flags of the command.
45367 * normal/menu.c (grub_menu_run): Fix typo.
45369 2004-09-14 Hollis Blanchard <hollis@penguinppc.org>
45371 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
45373 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
45374 `y + 1' instead of `y - 1'.
45376 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
45378 2004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
45380 From Hollis Blanchard <hollis@penguinppc.org>:
45381 * kern/misc.c (memmove): New alias for grub_memmove.
45382 (memcmp): New alias for grub_memcmp.
45383 (memset): New alias for grub_memset.
45384 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
45385 Change "int handle" to "grub_ieee1275_phandle_t handle".
45386 * include/grub/powerpc/ieee1275/ieee1275.h
45387 (grub_ieee1275_get_property): Likewise.
45389 2004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
45391 Added normal mode command `chainloader' as module chain.mod, which
45392 depends on normal.mod and _chain.mod.
45394 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
45395 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
45396 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
45398 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
45399 but arguments parsing moved to ...
45400 (grub_chainloader_cmd): ... here. New function.
45401 * include/grub/i386/pc/chainloader.h: New file.
45402 * loader/i386/pc/chainloader_normal.c: Likewise.
45404 2004-09-11 Marco Gerards <metgerards@student.han.nl>
45406 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
45407 (grub_mkimage_LDFLAGS): Likewise.
45408 (grub_emu_SOURCES): Likewise.
45409 (kernel_img_HEADERS): Added fshelp.h.
45410 * fs/ext2.c: Include <grub/fshelp.h>.
45411 (FILETYPE_REG): New macro.
45412 (FILETYPE_INO_REG): Likewise.
45413 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
45415 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
45417 (grub_fshelp_node): New struct.
45418 (grub_ext2_data): Added member `diropen'. Changed member `inode'
45420 (grub_ext2_get_file_block): Removed function.
45421 (grub_ext2_read_block): New function.
45422 (grub_ext2_read_file): Replaced parameter `data' by `node'.
45423 This function was written.
45424 (grub_ext2_mount): Read the root inode. Create a diropen struct.
45425 (grub_ext2_find_file): Removed function.
45426 (grub_ext2_read_symlink): New function.
45427 (grub_ext2_iterate_dir): Likewise.
45428 (grub_ext2_open): Rewritten.
45429 (grub_ext2_dir): Rewritten.
45430 * include/grub/fshelp.h: New file.
45431 * fs/fshelp.c: Likewise.
45433 2004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
45435 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
45436 (print_message): Add a missing newline.
45437 (run_menu): Added timeout support.
45438 (run_menu_entry): New local function.
45439 (grub_menu_run): Added support for booting.
45441 * kern/loader.c (grub_loader_is_loaded): New function.
45443 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
45444 (grub_get_rtc): Exported.
45446 * include/grub/i386/pc/time.h: Include grub/symbol.h.
45447 (grub_get_rtc): Exported.
45449 * include/grub/normal.h (struct grub_command_list): Remove
45450 constant from the member `command'.
45452 * include/grub/loader.h (grub_loader_is_loaded): Declared.
45454 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
45456 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
45458 2004-08-28 Marco Gerards <metgerards@student.han.nl>
45460 Add support for the JFS filesystem.
45462 * fs/jfs.c: New file.
45463 * include/grub/fs.h (grub_jfs_init): New prototype.
45464 (grub_jfs_fini): New prototype.
45465 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
45466 (grub_emu_SOURCES): Likewise.
45467 (pkgdata_MODULES): Add jfs.mod.
45468 (jfs_mod_SOURCES): New variable.
45469 (jfs_mod_CFLAGS): Likewise.
45470 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
45471 (grubof_SOURCES): Likewise.
45472 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
45474 * fs/fat.c (grub_fat_find_dir): Convert the filename little
45475 endian to the host endian.
45476 (grub_fat_utf16_to_utf8): Move function from there...
45477 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
45478 the endianness of the source string anymore.
45479 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
45481 2004-08-24 Marco Gerards <metgerards@student.han.nl>
45483 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
45484 (grub_boot_fini) [GRUB_UTIL]: Likewise.
45485 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
45486 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
45488 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
45489 (grub_hfs_iterate_dir): Make the function static. Add prototypes
45490 for `node_found' and `it_dir'.
45491 (grub_hfs_dir): Add prototype for `dir_hook'.
45493 * fs/minix.c (grub_minix_get_file_block): Add prototype for
45494 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
45495 and `indir32' to silence a gcc warning.
45497 * include/grub/fs.h (grub_hfs_init): New prototype.
45498 (grub_hfs_fini): Likewise.
45501 2004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
45503 Each disk device has its own id now. This is useful to make use
45504 of multiple disk devices.
45506 * include/grub/disk.h (grub_disk_dev_id): New enum.
45507 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
45508 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
45510 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
45511 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
45513 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
45514 GRUB_DISK_DEVICE_OFDISK_ID as an id.
45516 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
45517 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
45519 * include/grub/disk.h (struct grub_disk_dev): Added a new member
45520 "id" which is used by the cache manager.
45522 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
45525 2004-08-18 Marco Gerards <metgerards@student.han.nl>
45527 * fs/hfs.c: New file.
45528 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
45529 (grub_emu_SOURCES): Likewise.
45530 (pkgdata_MODULES): Add hfs.mod.
45531 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
45532 (grubof_SOURCES): Likewise.
45533 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
45535 * include/grub/misc.h (grub_strncasecmp): Add prototype.
45536 * kern/misc.c (grub_strncasecmp): Add function.
45538 2004-08-14 Marco Gerards <metgerards@student.han.nl>
45540 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
45543 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
45544 (grub_ext2_dir): In case the directory entry type is unknown, read
45547 2004-08-02 Peter Bruin <pjbruin@dds.nl>
45549 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
45550 grub_load_linux instead of grub_rescue_cmd_linux as second
45551 argument of grub_rescue_register_command.
45553 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
45555 2004-07-27 Marco Gerards <metgerards@student.han.nl>
45557 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
45559 * commands/boot.c: Remove the check for `GRUB_UTIL'.
45560 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
45561 `loader/powerpc/ieee1275/linux.c',
45562 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
45563 * include/grub/powerpc/ieee1275/ieee1275.h
45564 (grub_ieee1275_release): New prototype.
45565 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
45566 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
45567 normal, boot, linux and linux_normal.
45568 * loader/powerpc/ieee1275/linux.c: New file.
45569 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
45571 2004-07-12 Marco Gerards <metgerards@student.han.nl>
45573 * normal/arg.c (grub_arg_parse): Correct error handling after
45574 reallocating the argumentlist (check if `argl' is not null instead
45575 of checking if `args' is not null).
45576 * kern/mm.c (grub_realloc): Return the same pointer when using the
45577 same region, instead of returning the header address.
45579 2004-07-11 Marco Gerards <metgerards@student.han.nl>
45581 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
45582 one block instead of two when looking for the initial partition.
45583 (grub_partition_probe): Initialize the local variable `p' with 0.
45584 Use base 10 for the grub_strtoul call.
45585 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
45586 need for one local variable.
45587 (grub_strtoul): Don't add the new value to `num', instead of that
45590 2004-07-11 Marco Gerards <metgerards@student.han.nl>
45592 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
45593 (pxeboot_img_SOURCES): New variable.
45594 (pxeboot_img_ASFLAGS): Likewise.
45595 (pxeboot_img_LDFLAGS): Likewise.
45596 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
45597 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
45598 <lode_leroy@hotmail.com>.
45600 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
45602 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
45603 there was no input.
45605 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
45607 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
45608 the history buffer logic.
45610 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
45612 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
45613 (FILETYPE_INO_SYMLINK): New macros.
45614 (grub_ext2_find_file): Check if the node is a directory using the
45615 inode stat information instead of using the filetype in the
45616 dirent. Exclude the first character of an absolute symlink.
45617 (grub_ext2_dir): Mask out the filetype part of the mode member of
45620 2004-05-24 Marco Gerards <metgerards@student.han.nl>
45622 Add support for UFS version 1 and 2. Add support for the minix
45623 filesystem version 1 and 2, both the variants with 14 and 30 long
45626 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
45628 (grub_emu_SOURCES): Likewise.
45629 (pkgdata_MODULES): Add ufs.mod and minix.mod.
45630 (ufs_mod_SOURCES): New variable.
45631 (ufs_mod_CFLAGS): Likewise.
45632 (minix_mod_SOURCES): Likewise.
45633 (minix_mod_CFLAGS): Likewise.
45634 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
45636 (grubof_SOURCES): Likewise.
45637 * fs/ufs.c: New file.
45638 * fs/minix.c: New file.
45639 * include/grub/fs.h (grub_ufs_init): New prototype.
45640 (grub_ufs_fini): Likewise.
45641 (grub_minix_init): Likewise.
45642 (grub_minix_fini): Likewise.
45643 * util/grub-emu.c (main): Initialize and deinitialize UFS and
45646 2004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
45648 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
45649 commands/ls.c, commands/terminal.c, commands/boot.c,
45650 commands/cmp.c and commands/cat.c.
45651 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
45653 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
45656 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
45658 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
45659 and grub_, respectively. Because the conversion is trivial and
45660 mechanical, I omit the details here. Please refer to the CVS
45661 if you need more information.
45663 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
45665 * include/pupa: Renamed to ...
45666 * include/grub: ... this.
45667 * util/i386/pc/pupa-mkimage.c: Renamed to ...
45668 * util/i386/pc/grub-mkimage.c: ... this.
45669 * util/i386/pc/pupa-setup.c: Renamed to ...
45670 * util/i386/pc/grub-setup.c: ... this.
45671 * util/pupa-emu.c: Renamed to ...
45672 * util/grub-emu.c: ... this.
45674 2004-03-29 Marco Gerards <metgerards@student.han.nl>
45676 Add support for the newworld apple macintosh (PPC). This has been
45677 tested on the powerbook 2000 only. It only adds support for
45678 generic ieee1275 functions, console and disk support. This should
45679 be easy to port to other architectures with support for Open
45682 * configure.ac: Accept the powerpc as host_cpu. In the case of
45683 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
45684 specific tests are only executed while building for the i386.
45685 Inverse test for crosscompile.
45686 * genmk.rb (Utility): Allow assembler files.
45687 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
45688 * conf/powerpc-ieee1275.rmk: New file.
45689 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
45690 * disk/powerpc/ieee1275/partition.c: Likewise.
45691 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
45692 * include/pupa/powerpc/ieee1275/console.h: Likewise.
45693 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
45694 * include/pupa/powerpc/ieee1275/time.h: Likewise.
45695 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
45696 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
45697 * include/pupa/powerpc/ieee1275/loader.h
45698 * include/pupa/powerpc/setjmp.h: Likewise.
45699 * include/pupa/powerpc/types.h: Likewise.
45700 * kern/powerpc/ieee1275/init.c: Likewise.
45701 * kern/powerpc/ieee1275/openfw.c: Likewise.
45702 * term/powerpc/ieee1275/ofconsole.c: Likewise.
45704 These files were written by Johan Rydberg
45705 (jrydberg@night.trouble.net) and I only modified them slightly.
45707 * boot/powerpc/ieee1275/cmain.c: New file.
45708 * boot/powerpc/ieee1275/crt0.S: Likewise.
45709 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
45710 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
45712 2004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
45714 * Makefile.in: Update copyright.
45715 * genmodsrc.sh: Likewise.
45716 * gensymlist.sh: Likewise.
45717 * term/i386/pc/vga.c: Indent correctly.
45719 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
45720 bugreporting address.
45721 * util/i386/pc/pupa-setup.c (usage): Likewise,
45722 (main): Call pupa_ext2_init and pupa_ext2_fini.
45724 * fs/fat.c (log2): Renamed to ...
45725 (fat_log2): ... this.
45726 All callers changed.
45727 * kern/misc.c (memcpy): Alias to pupa_memmove.
45728 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
45730 * util/console.c (pupa_ncurses_fini): Return 0.
45732 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
45733 Move fail label here.
45734 [__GNU__]: Don't warn when using stat.
45735 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
45736 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
45737 long int. Use strtol instead of strtoul.
45739 2004-03-14 Marco Gerards <metgerards@student.han.nl>
45741 * commands/boot.c: New file.
45742 * commands/cat.c: Likewise.
45743 * commands/cmp.c: Likewise.
45744 * commands/ls.c: Likewise.
45745 * commands/terminal.c: Likewise.
45746 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
45747 (pupa_register_command): Changed interface to match the new
45749 (pupa_command_execute): Changed (almost rewritten) so it uses
45750 pupa_split_command. Added support for setting variables using the
45752 (rescue_command): Changed to work with the new argument parser.
45753 (terminal_command): Moved from here to commands/terminal.c.
45754 (set_command): New function.
45755 (unset_command): New function.
45756 (insmod_command): New function.
45757 (rmmod_command): New function.
45758 (lsmod_command): New function.
45759 (pupa_command_init): Don't initialize the command terminal
45760 anymore. Initialize the commands set, unset, insmod, rmmod and
45762 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
45763 (kernel_img_HEADERS): Add arg.h and env.h.
45764 (pupa_mkimage_LDFLAGS): Add kern/env.c.
45765 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
45766 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
45768 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
45770 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
45771 (boot_mod_SOURCES): New variable.
45772 (terminal_mod_SOURCES): Likewise.
45773 (ls_mod_SOURCES): Likewise.
45774 (cmp_mod_SOURCES): Likewise.
45775 (cat_mod_SOURCES): Likewise.
45777 * normal/arg.c: New file.
45778 * kern/env.c: Likewise.
45779 * include/pupa/arg.h: Likewise.
45780 * include/pupa/env.h: Likewise.
45781 * font/manager.c (font_command): Changed to match argument parsing
45783 (PUPA_MOD_INIT): Likewise.
45784 * hello/hello.c (pupa_cmd_hello): Likewise.
45785 (PUPA_MOD_INIT): Likewise.
45786 * include/pupa/disk.h: Include <pupa/device.h>.
45787 (pupa_print_partinfo): New prototype.
45788 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
45789 (pupa_dl_get_prefix): Likewise.
45790 * include/pupa/misc.h: Include <pupa/err.h>.
45791 (pupa_isgraph): New prototype.
45792 (pupa_isdigit): Likewise.
45793 (pupa_split_cmdline): Likewise.
45794 * include/pupa/normal.h: Include <pupa/arg.h>.
45795 (pupa_command): Changed the prototype of the member `func' to
45796 match the argument parsing interface. Added member `options'.
45797 (pupa_register_command): Updated to match function.
45798 (pupa_arg_parse): New prototype.
45799 (pupa_hello_init) [PUPA_UTIL]: New prototype.
45800 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
45801 (pupa_ls_init) [PUPA_UTIL]: Likewise.
45802 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
45803 (pupa_cat_init) [PUPA_UTIL]: Likewise.
45804 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
45805 (pupa_boot_init) [PUPA_UTIL]: Likewise.
45806 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
45807 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
45808 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
45809 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
45810 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
45811 * kern/disk.c: Include <pupa/file.h>.
45812 (pupa_print_partinfo): New function.
45813 * kern/dl.c: Include <pupa/env.h>.
45814 (pupa_dl_dir): Variable removed.
45815 (pupa_dl_load): Use the environment variable `prefix' instead of
45816 the variable pupa_dl_dir.
45817 (pupa_dl_set_prefix): Function removed.
45818 (pupa_dl_get_prefix): Likewise.
45819 * kern/i386/pc/init.c: Include <pupa/env.h>.
45820 (pupa_machine_init): Use the environment variable `prefix' instead of
45821 using pupa_dl_set_prefix to set the prefix.
45822 * kern/main.c: Include <pupa/env.h>.
45823 (pupa_set_root_dev): Use the environment variable `prefix' instead of
45824 using pupa_dl_get_prefix to get the prefix.
45825 * kern/misc.c: Include <pupa/env.h>.
45826 (pupa_isdigit): New function.
45827 (pupa_isgraph): Likewise.
45828 (pupa_ftoa): Likewise.
45829 (pupa_vsprintf): Added support for printing values of the type
45830 `double'. Make it possible to format variable output when using
45831 formatting like `%1.2%f'.
45832 (pupa_split_cmdline): New function.
45833 * kern/rescue.c: Include <pupa/env.h>.
45834 (next_word): Removed function.
45835 (pupa_rescue_cmd_prefix): Likewise.
45836 (pupa_rescue_cmd_set): New function.
45837 (pupa_rescue_cmd_unset): New function.
45838 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
45839 split the command line instead of splitting it here. Added
45840 support for setting variables using the syntax `foo=bar'. Don't
45841 initialize the prefix command anymore. Initialized the set and
45843 * normal/cmdline.c: Include <pupa/env.h>.
45844 (pupa_tab_complete): Added prototypes for print_simple_completion,
45845 print_partition_completion, add_completion, iterate_commands,
45846 iterate_dev, iterate_part and iterate_dir. Moved code to print
45847 partition information from here to kern/disk.c.
45848 (pupa_cmdline_run): Don't check if the function exists anymore.
45849 * normal/main.c: Include <pupa/env.h>.
45850 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
45851 instead of using pupa_dl_get_prefix to get the prefix.
45852 * term/i386/pc/vga.c: Include <pupa/arg.h>.
45853 (check_vga_mem): Cast pointers to `void *' to silence a gcc
45855 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
45856 (pupa_vga_setcolor): Declare unused variables with `__attribute__
45857 ((unused))' to silence a gcc warning.
45858 (pupa_vga_setcolor): Likewise.
45859 (debug_command): Changed to match argument parsing
45861 * util/pupa-emu.c: Include <pupa/env.h>.
45862 (options): Added 0's for unused fields to silence a gcc warning.
45864 (main): Use the environment variable `prefix' instead of using
45865 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
45866 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
45869 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
45870 * util/misc.c: Include <malloc.h>.
45871 (pupa_malloc): Rewritten so errors are correctly reported.
45872 (pupa_realloc): Likewise.
45873 (pupa_memalign): Likewise.
45874 (pupa_mm_init_region): Declare unused variables with
45875 `__attribute__ ((unused))' to silence a gcc warning.
45876 * normal/i386/setjmp.S: Remove tab at the end of the file to
45877 silence a gcc warning.
45878 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
45879 variables with `__attribute__ ((unused))' to silence a gcc
45881 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
45882 local variable i unsigned to silence a gcc warning.
45884 * kern/term.c: Include <pupa/misc.h>.
45885 (pupa_more_lines): New variable.
45886 (pupa_more): Likewise.
45887 (pupa_putcode): When the pager is active pause at the end of every
45889 (pupa_set_more): New function.
45890 * include/pupa/term.h (pupa_set_more): New prototype.
45893 2004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
45895 Now this project is GRUB 2 rather than PUPA. The location of
45896 the CVS repository was moved to GRUB's.
45898 * configure.ac: Use bug-grub as the reporting address.
45899 Use GRUB instead of PUPA.
45900 Change the version number to 1.90.
45902 2004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
45904 * genkernsyms.sh: Updated copyright information.
45905 * genmk.rb: Likewise.
45906 * genmodsrc.sh: Likewise.
45907 * gensymlist.sh: Likewise.
45908 * boot/i386/pc/boot.S: Likewise.
45909 * boot/i386/pc/diskboot.S: Likewise.
45910 * disk/i386/pc/biosdisk.c: Likewise.
45911 * disk/i386/pc/partition.c: Likewise.
45912 * font/manager.c: Likewise.
45913 * fs/ext2.c: Likewise.
45914 * fs/fat.c: Likewise.
45915 * include/pupa/boot.h: Likewise.
45916 * include/pupa/device.h: Likewise.
45917 * include/pupa/disk.h: Likewise.
45918 * include/pupa/dl.h: Likewise.
45919 * include/pupa/elf.h: Likewise.
45920 * include/pupa/err.h: Likewise.
45921 * include/pupa/file.h: Likewise.
45922 * include/pupa/font.h: Likewise.
45923 * include/pupa/fs.h: Likewise.
45924 * include/pupa/kernel.h: Likewise.
45925 * include/pupa/loader.h: Likewise.
45926 * include/pupa/misc.h: Likewise.
45927 * include/pupa/mm.h: Likewise.
45928 * include/pupa/net.h: Likewise.
45929 * include/pupa/normal.h: Likewise.
45930 * include/pupa/rescue.h: Likewise.
45931 * include/pupa/setjmp.h: Likewise.
45932 * include/pupa/symbol.h: Likewise.
45933 * include/pupa/term.h: Likewise.
45934 * include/pupa/types.h: Likewise.
45935 * include/pupa/i386/setjmp.h: Likewise.
45936 * include/pupa/i386/types.h: Likewise.
45937 * include/pupa/i386/pc/biosdisk.h: Likewise.
45938 * include/pupa/i386/pc/boot.h: Likewise.
45939 * include/pupa/i386/pc/console.h: Likewise.
45940 * include/pupa/i386/pc/init.h: Likewise.
45941 * include/pupa/i386/pc/kernel.h: Likewise.
45942 * include/pupa/i386/pc/linux.h: Likewise.
45943 * include/pupa/i386/pc/loader.h: Likewise.
45944 * include/pupa/i386/pc/memory.h: Likewise.
45945 * include/pupa/i386/pc/multiboot.h: Likewise.
45946 * include/pupa/i386/pc/partition.h: Likewise.
45947 * include/pupa/i386/pc/time.h: Likewise.
45948 * include/pupa/i386/pc/vga.h: Likewise.
45949 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
45950 * include/pupa/util/getroot.h: Likewise.
45951 * include/pupa/util/misc.h: Likewise.
45952 * include/pupa/util/resolve.h: Likewise.
45953 * kern/device.c: Likewise.
45954 * kern/disk.c: Likewise.
45955 * kern/dl.c: Likewise.
45956 * kern/err.c: Likewise.
45957 * kern/file.c: Likewise.
45958 * kern/fs.c: Likewise.
45959 * kern/loader.c: Likewise.
45960 * kern/main.c: Likewise.
45961 * kern/misc.c: Likewise.
45962 * kern/mm.c: Likewise.
45963 * kern/rescue.c: Likewise.
45964 * kern/term.c: Likewise.
45965 * kern/i386/dl.c: Likewise.
45966 * kern/i386/pc/init.c: Likewise.
45967 * kern/i386/pc/lzo1x.S: Likewise.
45968 * kern/i386/pc/startup.S: Likewise.
45969 * loader/i386/pc/chainloader.c: Likewise.
45970 * loader/i386/pc/linux.c: Likewise.
45971 * loader/i386/pc/multiboot.c: Likewise.
45972 * normal/cmdline.c: Likewise.
45973 * normal/command.c: Likewise.
45974 * normal/main.c: Likewise.
45975 * normal/menu.c: Likewise.
45976 * normal/i386/setjmp.S: Likewise.
45977 * term/i386/pc/console.c: Likewise.
45978 * term/i386/pc/vga.c: Likewise.
45979 * util/console.c: Likewise.
45980 * util/genmoddep.c: Likewise.
45981 * util/misc.c: Likewise.
45982 * util/pupa-emu.c: Likewise.
45983 * util/resolve.c: Likewise.
45984 * util/unifont2pff.rb: Likewise.
45985 * util/i386/pc/biosdisk.c: Likewise.
45986 * util/i386/pc/getroot.c: Likewise.
45987 * util/i386/pc/pupa-mkimage.c: Likewise.
45988 * util/i386/pc/pupa-setup.c: Likewise.
45990 2004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
45992 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
45993 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
45994 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
45995 reading and reset it after reading.
45996 (pupa_ext2_close): Return PUPA_ERR_NONE.
45998 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
46000 (struct linux_kernel_header): Add kernel_version and
46002 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
46003 pupa_file_read succeeds.
46004 (pupa_rescue_cmd_initrd): Implement.
46006 2003-12-03 Marco Gerards <metgerards@student.han.nl>
46008 * fs/ext2.c (pupa_ext2_label): New function.
46009 (pupa_ext2_fs): Added label.
46010 * fs/fat.c (pupa_fat_label): New function.
46011 (pupa_fat_fs): Added label.
46012 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
46014 * kern/misc.c (pupa_strndup): New function.
46015 * include/pupa/misc.h (pupa_strndup): New prototype.
46017 * include/pupa/normal.h: Include <pupa/err.h>.
46018 (pupa_set_history): New prototype.
46019 (pupa_iterate_commands): New prototype.
46020 * normal/cmdline.c: Include <pupa/machine/partition.h>,
46021 <pupa/disk.h>, <pupa/file.h>.
46022 (hist_size): New variable.
46023 (hist_lines): Likewise.
46024 (hist_end): Likewise.
46025 (hist_used): Likewise.
46026 (pupa_set_history): New function.
46027 (pupa_history_get): Likewise.
46028 (pupa_history_add): Likewise.
46029 (pupa_history_replace): Likewise.
46030 (pupa_tab_complete): Likewise.
46031 (pupa_cmdline_run): Added tab completion and history buffer. Tab
46032 completion shows partitionnames while completing partitions, this
46033 feature was suggested by Jeff Bailey.
46034 * normal/command.c (pupa_iterate_commands): New function.
46035 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
46036 (pupa_normal_init): Initialize history buffer.
46037 (PUPA_MOD_INIT): Likewise.
46038 (pupa_normal_fini): Free the history buffer.
46039 (PUPA_MOD_FINI): Likewise.
46041 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
46044 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
46045 * configure.ac [i386]: Check for regparam bug.
46046 (NESTED_FUNC_ATTR) [! i386]: Defined.
46048 2003-11-17 Marco Gerards <metgerards@student.han.nl>
46050 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
46051 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
46052 (pupa_emu_SOURCES): New variable.
46053 (pupa_emu_LDFLAGS): Likewise.
46054 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
46055 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
46056 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
46057 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
46058 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
46059 (pupa_jmp_buf): New typedef.
46060 (pupa_setjmp) [PUPA_UTIL]: New macro.
46061 (pupa_longjmp) [PUPA_UTIL]: Likewise.
46062 * include/pupa/term.h (struct pupa_term): New member `refresh'.
46063 (pupa_refresh): New prototype.
46064 * include/pupa/util/getroot.h: New file.
46065 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
46067 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
46068 (pupa_rescue_cmd_cat): Likewise.
46069 (pupa_rescue_cmd_ls): Likewise.
46070 (pupa_rescue_cmd_testload): Likewise.
46071 (pupa_rescue_cmd_lsmod): Likewise.
46072 * normal/cmdline.c (pupa_cmdline_get): Likewise.
46073 * normal/menu.c (run_menu): Likewise.
46074 * kern/term.c (pupa_cls): Likewise.
46075 (pupa_refresh): New function.
46076 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
46077 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
46078 * util/console.c: New file.
46080 * util/i386/pc/getroot.c: New file.
46081 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
46082 (pupa_putchar): New function.
46083 (pupa_refresh): Likewise.
46084 (xgetcwd): Function moved to ...
46085 (strip_extra_slashes): Likewise.
46086 (get_prefix): Likewise.
46087 * util/i386/pc/getroot.c: ... here.
46088 (find_root_device): Function moved and renamed to...
46089 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
46090 Changed all callers.
46091 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
46093 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
46094 Changed all callers.
46095 * util/misc.c (pupa_memalign): New function.
46096 (pupa_mm_init_region): Likewise.
46097 (pupa_register_exported_symbols): Likewise.
46098 (pupa_putchar): Function removed.
46099 * util/pupa-emu.c: New file.
46101 2003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
46103 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
46104 (_multiboot_mod_SOURCES): New variable.
46105 (_multiboot_mod_CFLAGS): Likewise.
46106 * loader/i386/pc/multiboot.c: New file.
46107 * include/pupa/i386/pc/multiboot.h: Likewise.
46108 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
46109 (pupa_multiboot_real_boot): New function.
46110 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
46111 (pupa_multiboot_real_boot): New prototype.
46112 (pupa_rescue_cmd_multiboot): Likewise
46113 (pupa_rescue_cmd_module): Likewise.
46115 * kern/loader.c (pupa_loader_set): Continue when
46116 pupa_loader_unload_func() fails.
46117 (pupa_loader_unset): New function.
46118 * include/pupa/loader.h (pupa_loader_unset): New prototype.
46120 * kern/misc.c (pupa_stpcpy): New function.
46121 * include/pupa/misc.h (pupa_stpcpy): New prototype.
46123 2003-11-12 Marco Gerards <metgerards@student.han.nl>
46125 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
46126 for available extensions.
46128 * include/pupa/i386/pc/time.h: New file.
46129 * kern/disk.c: Include <pupa/machine/time.h>.
46130 (PUPA_CACHE_TIMEOUT): New macro.
46131 (pupa_last_time): New variable.
46132 (pupa_disk_open): Flush the cache when there was a timeout.
46133 (pupa_disk_close): Reset the timer.
46134 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
46136 * util/misc.c: Include <sys/times.h>
46137 (pupa_get_rtc): New function.
46139 2003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
46141 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
46143 (pupa_ext2_get_file_block): Use blocks member.
46145 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
46146 first block. Return -1 instead of pupa_errno on error.
46148 2003-10-27 Marco Gerards <metgerards@student.han.nl>
46150 * README: In the pupa-mkimage example use _chain instead of chain
46151 and ext2 instead of fat.
46152 * TODO: Replace ext2fs with jfs as an example. Add an item for
46153 adding journal playback for ext2fs.
46154 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
46155 (pkgdata_MODULES): Added ext2.mod.
46156 (ext2_mod_SOURCES): New variable.
46157 (ext2_mod_CFLAGS): Likewise.
46158 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
46159 * include/pupa/misc.h (pupa_strncpy): New prototype.
46160 (pupa_strcat): Likewise.
46161 (pupa_strncmp): Likewise.
46162 * kern/misc.c (pupa_strcat): Enable function.
46163 (pupa_strncpy): New function.
46164 (pupa_strncmp): Likewise.
46165 * fs/ext2.c: New file.
46167 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
46168 when the read failed before retrying.
46169 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
46170 (_FILE_OFFSET_BITS): Likewise.
46171 * configure.ac: Added AC_SYS_LARGEFILE.
46173 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
46175 * genmk.rb (PModule#rule): Make sure to get only symbol names
46176 from the output of nm.
46177 Reported by Robert Millan <rmh.grub@aybabtu.com>.
46179 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
46181 I forgot to check in these changes for a long time. This adds
46182 incomplete support for VGA console, and this is still very
46183 buggy. Also, a lot of consideration is required for I18N,
46184 UNICODE, and VGA font issues. Therefore, assume that this is
46185 such that "better than nothing".
46187 * font/manager.c: New file.
46188 * include/pupa/font.h: Likewise.
46189 * include/pupa/i386/pc/vga.h: Likewise.
46190 * term/i386/pc/vga.c: Likewise.
46191 * util/unifont2pff.rb: Likewise.
46193 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
46194 (pkgdata_MODULES): Added vga.mod and font.mod.
46195 (vga_mod_SOURCES): New variables.
46196 (vga_mod_CFLAGS): Likewise.
46197 (font_mod_SOURCES): Likewise.
46198 (font_mod_CFLAGS): Likewise.
46200 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
46202 * include/pupa/term.h: Include pupa/err.h.
46203 (struct pupa_term): Added init and fini.
46204 Changed the argument of putchar to pupa_uint32_t.
46206 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
46207 (pupa_console_real_putchar): New prototype.
46208 (pupa_console_putchar): Removed.
46209 (pupa_console_checkkey): Exported.
46210 (pupa_console_getkey): Likewise.
46212 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
46215 * kern/term.c (pupa_term_set_current): Rewritten.
46216 (pupa_putchar): Likewise.
46217 (pupa_putcode): New function.
46219 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
46220 (pupa_console_real_putchar): ... this.
46221 (pupa_vga_set_mode): New function.
46222 (pupa_vga_get_font): Likewise.
46224 * normal/command.c: Include pupa/term.h.
46225 (terminal_command): New function.
46226 (pupa_command_init): Register the command "terminal".
46228 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
46229 (DISP_UP): Likewise.
46230 (DISP_RIGHT): Likewise.
46231 (DISP_DOWN): Likewise.
46232 (DISP_HLINE): Likewise.
46233 (DISP_VLINE): Likewise.
46234 (DISP_UL): Likewise.
46235 (DISP_UR): Likewise.
46236 (DISP_LL): Likewise.
46237 (DISP_LR): Likewise.
46239 * term/i386/pc/console.c (pupa_console_putchar): New function.
46241 2003-02-08 NIIBE Yutaka <gniibe@m17n.org>
46243 * util/resolve.c (pupa_util_resolve_dependencies): BUG
46244 FIX. Reverse the path_list.
46246 * include/pupa/normal.h: Export pupa_register_command and
46247 pupa_unregister_command.
46249 * hello/hello.c (pupa_cmd_hello): New module.
46250 * conf/i386-pc.rmk: Added hello.mod.
46252 2003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
46254 * kern/i386/pc/lzo1x.S: New file.
46256 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
46257 (compress_kernel): New variable.
46258 (generate_image): Heavily modified to support compressing a
46259 large part of the core image.
46261 * util/misc.c (pupa_util_read_image): Fix a file descriptor
46263 (pupa_util_load_image): New function.
46265 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
46266 (pupa_compressed_size): New variable.
46267 (codestart): Enable Gate A20 here.
46268 Decompress the compressed part of the core image.
46269 Rearrange the code to put functions and variables which are
46270 required for initialization in the non-compressed part.
46273 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
46276 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
46278 * include/pupa/i386/pc/kernel.h
46279 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
46280 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
46281 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
46282 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
46283 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
46285 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
46287 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
46288 (Utility#rule): Likewise.
46290 * configure.ac: Check if LZO is available.
46292 2003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
46294 * include/pupa/normal.h: New file.
46295 * include/pupa/setjmp.h: Likewise.
46296 * include/pupa/i386/setjmp.h: Likewise.
46297 * normal/cmdline.c: Likewise.
46298 * normal/command.c: Likewise.
46299 * normal/main.c: Likewise.
46300 * normal/menu.c: Likewise.
46301 * normal/i386/setjmp.S: Likewise.
46303 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
46304 (pupa_rescue_cmd_initrd): Likewise.
46306 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
46309 * kern/i386/pc/startup.S (translation_table): New variable.
46310 (translate_keycode): New function.
46311 (pupa_console_getkey): Call translate_keycode.
46313 * kern/rescue.c (attempt_normal_mode): New function.
46314 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
46315 it failed, print a message.
46317 * kern/mm.c (pupa_real_malloc): Print more information when a
46318 free magic is broken.
46319 (pupa_free): If the first free header is not free actually, set
46322 * kern/main.c (pupa_load_normal_mode): Just load the module
46324 (pupa_main): Don't print the message
46325 "Entering into rescue mode..." here.
46327 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
46329 (pupa_rescue_cmd_initrd): Likewise.
46330 (pupa_rescue_cmd_initrd): Likewise.
46332 * include/pupa/symbol.h (FUNCTION): Specify the type.
46333 (VARIABLE): Likewise.
46335 * include/pupa/err.h (pupa_err_t): Added
46336 PUPA_ERR_UNKNOWN_COMMAND.
46338 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
46339 (pupa_dl_get_prefix): Likewise.
46341 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
46342 Added _chain.mod and _linux.mod instead of chain.mod and
46344 (chain_mod_SOURCES): Renamed to ...
46345 (_chain_mod_SOURCES): ... this.
46346 (chain_mod_CFLAGS): Renamed to ...
46347 (_chain_mod_CFLAGS): ... this.
46348 (linux_mod_SOURCES): Renamed to ...
46349 (_linux_mod_SOURCES): ... this.
46350 (linux_mod_CFLAGS): Renamed to ...
46351 (_linux_mod_CFLAGS): ... this.
46352 (normal_mod_SOURCES): New variable.
46353 (normal_mod_CFLAGS): Likewise.
46354 (normal_mod_ASFLAGS): Likewise.
46356 2003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
46358 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
46361 * kern/dl.c (pupa_dl_ref): Refer depending modules
46363 (pupa_dl_unref): Unrefer depending modules recursively.
46364 Don't call pupa_dl_unload implicitly, because PUPA can crash if
46365 a module is unloaded before one depending on that module is
46367 (pupa_dl_unload): Unload depending modules explicitly,
46370 2003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
46372 * include/pupa/i386/pc/linux.h: New file.
46373 * loader/i386/pc/linux.c: Likewise.
46375 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
46377 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
46378 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
46379 of PUPA_CHAINLOADER_BOOT_SECTOR.
46381 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
46382 (pupa_linux_prot_size): New variable.
46383 (pupa_linux_tmp_addr): Likewise.
46384 (pupa_linux_real_addr): Likewise.
46385 (pupa_linux_boot_zimage): New function.
46386 (pupa_linux_boot_bzimage): Likewise.
46388 * kern/i386/pc/init.c (struct mem_region): New structure.
46389 (MAX_REGIONS): New macro.
46390 (mem_regions): New variable.
46391 (num_regions): Likewise.
46392 (pupa_os_area_addr): Likewise.
46393 (pupa_os_area_size): Likewise.
46394 (pupa_lower_mem): Likewise.
46395 (pupa_upper_mem): Likewise.
46396 (add_mem_region): New function.
46397 (compact_mem_regions): Likewise.
46398 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
46399 the size of the conventional memory and that of so-called upper
46400 memory (before the first memory hole).
46401 Instead of adding each found region to free memory, use
46402 add_mem_region and add them after removing overlaps.
46403 Also, add only 1/4 of the upper memory to free memory. The rest
46404 is used for loading OS images. Maybe this is ad hoc, but this
46405 makes it much easier to relocate OS images when booting.
46407 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
46408 (pupa_enter_rescue_mode): Don't register initrd and module.
46410 * kern/mm.c: Include pupa/dl.h.
46412 * kern/main.c: Include pupa/file.h and pupa/device.h.
46414 * kern/loader.c (pupa_loader_load_module_func): Removed.
46415 (pupa_loader_load_module): Likewise.
46417 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
46420 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
46421 (pupa_linux_tmp_addr): Likewise.
46422 (pupa_linux_real_addr): Likewise.
46423 (pupa_linux_boot_zimage): Likewise.
46424 (pupa_linux_boot_bzimage): Likewise.
46426 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
46427 (pupa_upper_mem): Likewise.
46428 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
46429 module is too dangerous.
46431 * include/pupa/loader.h (pupa_os_area_addr): Declared.
46432 (pupa_os_area_size): Likewise.
46433 (pupa_loader_set): Remove the first argument. Loader doesn't
46434 manage modules or initrd any longer.
46435 (pupa_loader_load_module): Removed.
46437 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
46438 (linux_mod_SOURCES): New variable.
46439 (linux_mod_CFLAGS): Likewise.
46441 2003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
46443 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
46444 the length of a blocklist correctly.
46446 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
46447 Use ioctl only if the OS file is a block device.
46448 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
46449 not very useful for normal files.
46451 * kern/main.c (pupa_set_root_dev): New function.
46452 (pupa_load_normal_mode): Likewise.
46453 (pupa_main): Call those above.
46455 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
46458 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
46460 2003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
46462 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
46463 (setup): Configure the installed partition information and the
46466 * loader/i386/pc/chainloader.c (my_mod): New variable.
46467 (pupa_chainloader_unload): New function.
46468 (pupa_rescue_cmd_chainloader): Refer itself.
46469 (PUPA_MOD_INIT): Save its own module in MY_MOD.
46471 * kern/i386/pc/startup.S (install_partition): Removed.
46472 (version_string): Likewise.
46473 (config_file): Likewise.
46474 (pupa_install_dos_part): New variable.
46475 (pupa_install_bsd_part): Likewise.
46476 (pupa_prefix): Likewise.
46477 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
46479 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
46481 (make_install_device): New function.
46482 (pupa_machine_init): Set the dl prefix.
46484 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
46485 (buf): Renamed to ...
46486 (linebuf): ... this.
46487 (pupa_rescue_cmd_prefix): New function.
46488 (pupa_rescue_cmd_insmod): Likewise.
46489 (pupa_rescue_cmd_rmmod): Likewise.
46490 (pupa_rescue_cmd_lsmod): Likewise.
46491 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
46494 * kern/mm.c (pupa_memalign): If failed even after invalidating
46495 disk caches, unload unneeded modules and retry.
46497 * kern/misc.c (pupa_memmove): New function.
46498 (pupa_memcpy): Removed.
46499 (pupa_strcpy): New function.
46500 (pupa_itoa): Made static.
46502 * kern/dl.c (pupa_dl_iterate): New function.
46503 (pupa_dl_ref): Likewise.
46504 (pupa_dl_unref): Likewise.
46505 (pupa_dl_unload): Return if succeeded or not.
46506 (pupa_dl_unload_unneeded): New function.
46507 (pupa_dl_unload_all): Likewise.
46508 (pupa_dl_init): Renamed to ...
46509 (pupa_dl_set_prefix): ... this.
46510 (pupa_dl_get_prefix): New function.
46512 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
46513 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
46514 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
46515 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
46516 (pupa_install_dos_part): Declared.
46517 (pupa_install_bsd_part): Likewise.
46518 (pupa_prefix): Likewise.
46519 (pupa_boot_drive): Likewise.
46521 * include/pupa/types.h: Fix a typo.
46523 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
46525 (pupa_memmove): Declared.
46526 (pupa_strcpy): Likewise.
46528 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
46529 pupa_mod_init takes one argument, its own module.
46530 (pupa_dl_unload_unneeded): Declared.
46531 (pupa_dl_unload_all): Likewise.
46532 (pupa_dl_ref): Likewise.
46533 (pupa_dl_unref): Likewise.
46534 (pupa_dl_iterate): Likewise.
46535 (pupa_dl_init): Renamed to ...
46536 (pupa_dl_set_prefix): ... this.
46537 (pupa_dl_get_prefix): Declared.
46539 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
46540 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
46542 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
46543 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
46545 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
46546 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
46548 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
46550 * util/i386/pc/pupa-setup.c (setup): Define the internal
46551 function find_first_partition_start at the top level, because GCC
46552 3.0.x cannot compile internal functions in deeper scopes
46554 (find_root_device): Use lstat instead of stat.
46555 Don't follow symbolic links.
46556 Fix the path-constructing code.
46558 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
46559 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
46560 by a BLKGETSIZE ioctl first, because block devices don't fill
46561 the member st_mode of the structure stat on Linux.
46562 [__linux__] (linux_find_partition): Use a temporary buffer
46563 REAL_DEV for the working space. Copy it to DEV before returning.
46564 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
46565 buffer cache consistent.
46566 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
46567 strncmp. The previous value was merely wrong.
46568 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
46570 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
46571 FAT size is 12. The previous value was merely wrong.
46573 * kern/main.c (pupa_main): Don't split the starting message from
46576 * kern/term.c (pupa_putchar): Put CR after LF instead of before
46577 LF, because BIOS goes crazy about character attributes in this
46580 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
46582 * include/i386/pc/util/biosdisk.h: New file.
46583 * util/i386/pc/biosdisk.c: Likewise.
46584 * util/i386/pc/pupa-setup.c: Likewise.
46586 * Makefile.in (INCLUDE_DISTFILES): Added
46587 include/pupa/i386/pc/util/biosdisk.h.
46588 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
46589 directory util/i386/pc.
46590 (install-local): Added a rule for sbin_UTILITIES.
46591 (uninstall): Likewise.
46593 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
46595 * util/misc.c (xrealloc): New function.
46596 (pupa_malloc): Likewise.
46597 (pupa_free): Likewise.
46598 (pupa_realloc): Likewise.
46599 (pupa_stop): Likewise.
46600 (pupa_putchar): Likewise.
46602 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
46604 * include/pupa/util/misc.h (xrealloc): Declared.
46606 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
46608 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
46609 (PUPA_BOOT_MACHINE_BPB_END): ... this.
46611 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
46612 [PUPA_UTIL] (pupa_fat_fini): Likewise.
46614 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
46615 way should be implemented.
46616 [PUPA_UTIL] (pupa_fat_fini): Likewise.
46618 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
46619 the size of NAME for safety.
46620 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
46623 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
46624 (pupa_setup_SOURCES): Likewise.
46626 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
46628 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
46630 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
46631 bunch of pushl's from pusha, because this destroys the return
46634 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
46636 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
46637 This means that any missing prototypes could be fatal. Also, you
46638 must take care when writing assembly code. See the comments at
46639 the beginning of startup.S, for more details.
46641 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
46642 compilation mechanism.
46643 (pupa_chainloader_real_boot): Likewise.
46644 (pupa_biosdisk_rw_int13_extensions): Likewise.
46645 (pupa_biosdisk_rw_standard): Likewise.
46646 (pupa_biosdisk_check_int13_extensions): Likewise.
46647 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
46648 (pupa_biosdisk_get_diskinfo_standard): Likewise.
46649 (pupa_get_memsize): Likewise.
46650 (pupa_get_mmap_entry): Likewise.
46651 (pupa_console_putchar): Likewise.
46652 (pupa_console_setcursor): Likewise.
46653 (pupa_getrtsecs): Use pushl instead of push.
46655 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
46656 memory instead of the stack for a mmap entry, because some
46657 BIOSes may ignore the maximum size and overflow.
46659 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
46661 * genmk.rb (PModule#rule): Compile automatically generated
46662 sources with module-specific CFLAGS as well as other sources.
46664 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
46666 * configure.ac: Check ld.
46667 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
46668 respectively, before checking endianness and sizes.
46670 * Makefile.in (LD): New variable.
46672 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
46674 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
46676 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
46678 * Changelog: New file.