okuji
b28bbc4ef5
2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
...
* kern/env.c (grub_env_context_close): Fix memory leaks.
2009-03-22 10:38:19 +00:00
okuji
f04f02e496
2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
...
* normal/main.c (grub_normal_execute): Added an argument
BATCH to specify if an interactive interface should be provided
after reading a config file.
All callers updated.
(read_command_list): Prevent being executed twice.
(read_fs_list): Likewise.
* include/grub/normal.h (grub_normal_execute):
2009-03-22 10:05:31 +00:00
proski
fbc00b0ca1
2009-03-22 Pavel Roskin <proski@gno.org>
...
* kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
_start.
* kern/i386/pc/startup.S: Likewise.
* kern/i386/efi/startup.S: Likewise.
* kern/i386/ieee1275/startup.S: Likewise.
* kern/i386/coreboot/startup.S: Likewise.
* kern/x86_64/efi/startup.S: Likewise.
2009-03-22 00:37:49 +00:00
proski
41473ac27f
2009-03-22 Pavel Roskin <proski@gno.org>
...
* aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
* configure.ac: Don't call grub_CHECK_START_SYMBOL.
* kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
2009-03-22 00:31:30 +00:00
robertmh
2274cc8fc9
2009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
...
Bugfixes in multiboot for bugs uncovered by solaris kernel.
* loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
limit detection.
Use vaddr of correct segment for entry_point.
2009-03-21 23:02:12 +00:00
bean
b1b797cb1b
2009-03-21 Bean <bean123ch@gmail.com>
...
* commands/blocklist.c: Add include file <grub/command.h>, remove
<grub/normal.h> and <grub/arg.h>.
(grub_cmd_blocklist): Use the new command interface.
(GRUB_MOD_INIT): Likewise.
(GRUB_MOD_FINI): Likewise.
* commands/boot.c: Likewise.
* commands/cat.c: Likewise.
* commands/cmp.c: Likewise.
* commands/configfile.c: Likewise.
* commands/crc.c: Likewise.
* commands/echo.c: Likewise.
* commands/halt.c: Likewise.
* commands/handler.c: Likewise.
* commands/hdparm.c: Likewise.
* commands/help.c: Likewise.
* commands/hexdump.c: Likewise.
* commands/loadenv.c: Likewise.
* commands/ls.c: Likewise.
* commands/lsmmap.c: Likewise.
* commands/lspci.c: Likewise.
* commands/loadenv.c: Likewise.
* commands/read.c: Likewise.
* commands/reboot.c: Likewise.
* commands/search.c: Likewise.
* commands/sleep.c: Likewise.
* commands/test.c: Likewise.
* commands/usbtest.c: Likewise.
* commands/videotest.c: Likewise.
* commands/i386/cpuid.c: Likewise.
* commands/i386/pc/halt.c: Likewise.
* commands/i386/pc/play.c: Likewise.
* commands/i386/pc/pxecmd.c: Likewise.
* commands/i386/pc/vbeinfo.c: Likewise.
* commands/i386/pc/vbetest.c: Likewise.
* commands/ieee1275/suspend.c: Likewise.
* disk/loopback.c: Likewise.
* font/font_cmd.c: Likewise.
* hello/hello.c: Likewise.
* loader/efi/appleloader.c: Likewise.
* loader/efi/chainloader.c: Likewise.
* loader/i386/bsd.c: Likewise.
* loader/i386/efi/linux.c: Likewise.
* loader/i386/ieee1275/linux.c: Likewise.
* loader/i386/linux.c: Likewise.
* loader/i386/pc/chainloader.c: Likewise.
* loader/i386/pc/linux.c: Likewise.
* loader/powerpc/ieee1275/linux.c: Likewise.
* loader/multiboot_loader.c: Likewise.
* term/gfxterm.c: Likewise.
* term/i386/pc/serial.c: Likewise.
* term/terminfo.c: Likewise.
* term/i386/pc/vesafb.c: Removed <grub/arg.h>.
* term/i386/pc/vga.c: Likewise.
* video/readers/jpeg.c: Likewise.
* video/readers/png.c: Likewise.
* video/readers/tga.c: Likewise.
* util/grub-fstest (cmd_loopback): Removed.
(cmd_blocklist): Likewise.
(cmd_ls): Likewise.
(grub_register_command): Likewise.
(grub_unregister_command): Likewise.
(execute_command): Use grub_command_find to locate command and execute
it.
* include/grub/efi/chainloader.h: Removed.
* loader/efi/chainloader_normal.c: Likewise.
* loader/i386/bsd_normal.c: Likewise.
* loader/i386/pc/chainloader_normal.c: Likewise.
* loader/i386/pc/multiboot_normal.c: Likewise.
* loader/linux_normal.c: Likewise.
* loader/multiboot_loader_normal.c: Likewise.
* loader/powerpc/ieee1275/linux_normal.c: Likewise.
* gencmdlist.sh: Scan new registration command grub_register_extcmd
and grub_register_command_p1.
* conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
kern/command.c, lib/arg.c and commands/extcmd.c.
(pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
(minicmd_mod_SOURCES): New variable.
(minicmd_mod_CFLAGS): Likewise.
(minicmd_mod_LDFLAGS): Likewise.
(extcmd_mod_SOURCES): Likewise.
(extcmd_mod_CFLAGS): Likewise.
(extcmd_mod_LDFLAGS): Likewise.
(boot_mod_SOURCES): Removed.
(boot_mod_CFLAGS): Likewise.
(boot_mod_LDFLAGS): Likewise.
* conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
kern/corecmd.c.
(kernel_img_HEADERS): Add command.h.
(grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
and lib/arg.c.
(pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
_multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
remove the corresponding normal mode command.
(normal_mod_SOURCES): Remove normal/arg.c.
* conf/i386-coreboot.rmk: Likewise.
* conf/i386-efi.rmk: Likewise.
* conf/i386-ieee1275.rmk: Likewise.
* conf/powerpc-ieee1275.rmk: Likewise.
* conf/x86_64-efi.rmk: Likewise.
* include/grub/arg.h: Move from here ...
* include/grub/lib/arg.h: ... to here.
* normal/arg.c: Move from here ...
* lib/arg.c: ... to here.
* commands/extcmd.c: New file.
* commands/minicmd.c: Likewise.
* include/grub/command.h: Likewise.
* include/grub/extcmd.h: Likewise.
* kern/command.c: Likewise.
* kern/corecmd.c: Likewise.
* kern/list.c (grub_list_iterate): Return int instead of void.
(grub_list_insert): New function.
(grub_prio_list_insert): Likewise.
* kern/rescue.c (grub_rescue_command): Removed.
(grub_rescue_command_list): Likewise.
(grub_rescue_register_command): Likewise.
(grub_rescue_unregister_command): Likewise.
(grub_rescue_cmd_boot): Move to minicmd.c
(grub_rescue_cmd_help): Likewise.
(grub_rescue_cmd_info): Likewise.
(grub_rescue_cmd_boot): Likewise.
(grub_rescue_cmd_testload): Likewise.
(grub_rescue_cmd_dump): Likewise.
(grub_rescue_cmd_rmmod): Likewise.
(grub_rescue_cmd_lsmod): Likewise.
(grub_rescue_cmd_exit): Likewise.
(grub_rescue_print_devices): Moved to corecmd.c.
(grub_rescue_print_files): Likewise.
(grub_rescue_cmd_ls): Likewise.
(grub_rescue_cmd_insmod): Likewise.
(grub_rescue_cmd_set): Likewise.
(grub_rescue_cmd_unset): Likewise.
(attemp_normal_mode): Use grub_command_find to get normal module.
(grub_enter_rescue_mode): Use grub_register_core_commands to register
commands, remove grub_rescue_regiter_command calls.
* normal/command.c (grub_regiser_command): Removed.
(grub_unregister_command): Likewise.
(grub_command_find): Likewise.
(grub_iterate_commands): Likewise.
(rescue_command): Likewise.
(export_command): Moved to corecmd.c.
(set_command): Removed.
(unset_command): Likewise.
(insmod_command): Likewise.
(rmmod_command): Likewise.
(lsmod_command): Likewise.
(grub_command_init): Likewise.
* normal/completion.c (iterate_command): Use cmd->prio to check for
active command.
(complete_arguments): Use grub_extcmd_t structure to find options.
(grub_normal_do_completion): Change function grub_iterate_commands to
grub_command_iterate.
* normal/execute.c (grub_script_execute_cmd): No need to parse
argument here.
* normal/main.c (grub_dyncmd_dispatcher): New function.
(read_command_list): Register unload commands as dyncmd.
(grub_cmd_normal): Use new command interface, register rescue,
unregister normal at entry, register normal, unregister rescue at exit.
* include/grub/list.h (grub_list_test_t): New type.
(grub_list_iterate): Return int instead of void.
(grub_list_insert): New function.
(GRUB_AS_NAMED_LIST_P): New macro.
(GRUB_AS_PRIO_LIST): Likewise.
(GRUB_AS_PRIO_LIST_P): Likewise.
(GRUB_PRIO_LIST_PRIO_MASK): New constant.
(GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
(grub_prio_list): New structure.
(grub_prio_list_insert): New function.
(grub_prio_list_remove): New inline function.
* include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
(GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
(GRUB_COMMAND_FLAG_MENU): Likewise.
(GRUB_COMMAND_FLAG_BOTH): Likewise.
(GRUB_COMMAND_FLAG_TITLE): Likewise.
(GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
(GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
(GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
(grub_command): Likewise.
(grub_register_command): Likewise.
(grub_command_find): Likewise.
(grub_iterate_commands): Likewise.
(grub_command_init): Likewise.
(grub_arg_parse): Likewise.
(grub_arg_show_help): Likewise.
* include/grub/rescue.h (grub_rescue_register_command): Removed.
(grub_rescue_unregister_command): Likewise.
* include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
* include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
grub_rescue_cmd_initrd.
* include/grub/i386/loader.h: Likewise.
* include/grub/x86_64/loader.h: Likewise.
* include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
2009-03-21 08:39:59 +00:00
bean
1f4147aaf0
2009-03-21 Bean <bean123ch@gmail.com>
...
* util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
instead of stat in mingw environment.
* util/misc.c (grub_millisleep): Use Sleep in mingw environment.
* aclocal.m4 (grub_CHECK_LINK_DIR): New function.
* configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
AC_CONFIG_LINKS.
2009-03-21 07:48:28 +00:00
bean
2156d5ba73
2009-03-21 Bean <bean123ch@gmail.com>
...
* fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
out of range error.
2009-03-21 07:35:04 +00:00
fzielcke
177b82ca8b
2009-03-18 Michel Dänzer <michel@daenzer.net>
...
* fs/ext2.c (grub_ext2_read_block): Take endianness into account when
checking inode flags for EXT4_EXTENTS_FLAG.
2009-03-19 09:36:52 +00:00
robertmh
14aad8072c
2009-03-18 Robert Millan <rmh@aybabtu.com>
...
* loader/i386/linux.c: Include `<grub/video.h>' and
`<grub/i386/pc/vbe.h>'..
(grub_linux_setup_video): New function. Loosely based on the EFI one.
(grub_linux32_boot): Attempt to configure video settings with
grub_linux_setup_video().
(grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
to avoid grub_console_fini() which would step out of graphical mode
unconditionally.
2009-03-18 10:21:28 +00:00
robertmh
8cf83a279b
2009-03-14 Robert Millan <rmh@aybabtu.com>
...
Fix build on powerpc.
* conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
2009-03-14 15:18:59 +00:00
cbennett
40164e7552
2009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
...
* term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
background image command.
2009-03-12 18:57:42 +00:00
cbennett
c58bc32a67
2009-03-12 Colin D Bennett <colin@gibibit.com>
...
* term/gfxterm.c (draw_cursor): Ensure character is redrawn.
(grub_gfxterm_putchar): Extract pairs of identical calls to
draw_cursor out of conditional blocks.
2009-03-12 18:30:44 +00:00
proski
5415144ac8
2009-03-11 Pavel Roskin <proski@gnu.org>
...
* fs/hfs.c (grub_hfs_strncasecmp): New function.
(grub_hfs_cmp_catkeys): Use HFS specific string comparison.
2009-03-11 21:51:16 +00:00
robertmh
6394042e02
2009-03-11 Robert Millan <rmh@aybabtu.com>
...
* loader/i386/multiboot_elfxx.c
(CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
2009-03-11 21:27:01 +00:00
fzielcke
b7b50e5f31
2009-03-11 Felix Zielcke <fzielcke@z-51.de>
...
* conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
`kern/handler.c'.
2009-03-11 08:25:22 +00:00
robertmh
1ca7fc96f7
2009-03-11 Robert Millan <rmh@aybabtu.com>
...
* loader/i386/multiboot.c (code_size): New variable.
(grub_multiboot): Define offsets by adding to `code_size' rather
than substracting from `grub_multiboot_payload_size'. Provide
4-byte alignment to MBI and others by increasing
`boot_loader_name_length' appropiately.
* loader/i386/multiboot_elfxx.c
(CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
2009-03-10 23:47:51 +00:00
fzielcke
a83ea1d20a
2009-03-09 Felix Zielcke <fzielcke@z-51.de>
...
* conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
`fs/ext2.c'.
2009-03-09 09:02:52 +00:00
robertmh
aa9f3bffbd
2009-03-08 Robert Millan <rmh@aybabtu.com>
...
Make loader/i386/linux.c usable on i386-pc again.
* kern/i386/pc/init.c (grub_machine_init): Disable addition of low
memory to heap.
* loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
`#error' stanza.
2009-03-08 12:46:27 +00:00
bean
d8b3b60eea
2009-03-07 Bean <bean123ch@gmail.com>
...
* loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
allocation.
2009-03-07 10:50:43 +00:00
robertmh
b362c9e990
2009-03-06 Robert Millan <rmh@aybabtu.com>
...
Fix display issue on terminals with screen size other than 80x25
(e.g. gfxterm with resolution higher than 640x480).
* normal/main.c (grub_normal_init_page): Display title text in a
position relative to the center of the terminal instead of reliing
on a hardcoded offset.
2009-03-06 19:10:23 +00:00
proski
50fb7002e5
Fix typos, spacing
2009-03-05 05:23:58 +00:00
robertmh
9304eef146
2009-03-04 Robert Millan <rmh@aybabtu.com>
...
Filter /etc/grub.d/10_* so that only add-ons for native kernels are
installed.
* Makefile.in (host_kernel): New variable.
* conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
scripts instead of just the windows one.
* configure.ac: Initialize and AC_SUBST `host_kernel'.
2009-03-04 22:00:41 +00:00
fzielcke
eabc95fb9a
fix date of previous changelog entry
2009-03-04 14:49:44 +00:00
fzielcke
2ba60b6286
2009-02-03 Felix Zielcke <fzielcke@z-51.de>
...
* conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
`kern/handler.c'.
* conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
* conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
* conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
* conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
* conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
* conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
2009-03-04 14:08:05 +00:00
fzielcke
ceb1223c92
2009-03-04 Felix Zielcke <fzielcke@z-51.de>
...
* partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
or if there's no space for the disk label and print the partition number on a
invalid magic.
2009-03-04 12:45:41 +00:00
fzielcke
4910684af3
args forgot Changelog entry in previous commit
2009-03-04 12:44:18 +00:00
bean
7e9ca17ace
2009-03-04 Bean <bean123ch@gmail.com>
...
* configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
another option -mno-red-zone.
* commands/handler.c: Change module description.
* kern/handler.c: Add missing space at the end of description line.
* kern/list.c: Likewise.
2009-03-04 05:56:31 +00:00
robertmh
f501677cb2
2009-03-03 Robert Millan <rmh@aybabtu.com>
...
Move more components to the relocation area, and fix mbi pointer
handling to use the destination rather than the origin (thanks to
Vladimir Serbinenko for spotting).
* loader/i386/multiboot.c (mbi_dest): New variable.
(grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
(grub_multiboot): Put cmdline, boot_loader_name and mbi in the
relocation area.
2009-03-03 19:00:41 +00:00
bean
9902d04725
2009-03-01 Bean <bean123ch@gmail.com>
...
* include/grub/efi/api.h (GRUB_EFI_MPS_TABALE_GUID): New constant.
(GRUB_EFI_ACPI_TABLE_GUID): Likewise.
(GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
(GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
* loader/i386/efi/linux.c (acpi_guid): New variable.
(acpi_guid): Likewise.
(EBDA_SEG_ADDR): New constant.
(LOW_MEM_ADDR): Likewise.
(FAKE_EBDA_SEG): Likewise.
(fake_bios_data): New function.
(grub_linux_boot): Call fake_bios_data.
2009-03-01 17:57:57 +00:00
bean
71b9f36193
2009-03-01 Bean <bean123ch@gmail.com>
...
* commands/terminal.c: Removed.
* commands/handler.c: New file.
* include/grub/list.h: Likewise.
* include/grub/handler.h: Likewise.
* kern/list.c: Likewise.
* kern/handler.c: Likewise.
* kern/term.h: Include header file <grub/handler.h>.
(grub_term_input): Move next field to the beginning.
(grub_term_output): Likewise.
(grub_term_input_class): New variable.
(grub_term_output_class): Likewise.
(grub_term_register_input): Changed to inline function.
(grub_term_register_output): Likewise.
(grub_term_unregister_input): Likewise.
(grub_term_unregister_output): Likewise.
(grub_term_set_current_input): Likewise.
(grub_term_set_current_output): Likewise.
(grub_term_get_current_input): Likewise.
(grub_term_get_current_output): Likewise.
(grub_term_iterate_input): Removed.
(grub_term_iterate_output): Likewise.
* kern/term.c (grub_term_list_input): Removed.
(grub_term_list_output): Likewise.
(grub_term_input_class): New variable.
(grub_term_output_class): Likewise.
(grub_cur_term_input): Change varaible as macro.
(grub_cur_term_output): Likewise.
(grub_term_register_input): Removed.
(grub_term_register_output): Likewise.
(grub_term_unregister_input): Likewise.
(grub_term_unregister_output): Likewise.
(grub_term_set_current_input): Likewise.
(grub_term_set_current_output): Likewise.
(grub_term_iterate_input): Likewise.
(grub_term_iterate_output): Likewise.
(grub_term_get_current_input): Likewise.
(grub_term_get_current_output): Likewise.
* util/grub-editenv.c: Include header file <grub/handler.h>.
(grub_term_get_current_input): Removed.
(grub_term_get_current_output): Likewise.
(grub_term_input_class): New variable.
(grub_term_outout_class): Likewise.
* util/grub-fstest.c (grub_term_get_current_input): Removed.
(grub_term_get_current_output): Likewise.
(grub_term_input_class): New variable.
(grub_term_outout_class): Likewise.
* util/grub-probe.c (grub_term_get_current_input): Removed.
(grub_term_get_current_output): Likewise.
(grub_term_input_class): New variable.
(grub_term_outout_class): Likewise.
* util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
(grub_term_get_current_output): Likewise.
(grub_term_input_class): New variable.
(grub_term_outout_class): Likewise.
* conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
(terminal_mod_SOURCES): Likewise.
(terminal_mod_CFLAGS): Likewise.
(terminal_mod_LDFLAGS): Likewise.
* conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
handler.c.
(kernel_img_SOURCES): Add list.c and handler.c.
(kernel_img_HEADERS): Add list.h and handler.h.
* conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
handler.c.
(kernel_mod_SOURCES): Add list.c and handler.c.
(kernel_mod_HEADERS): Add list.h and handler.h.
* conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
handler.c.
(kernel_elf_SOURCES): Add list.c and handler.c.
(kernel_elf_HEADERS): Add list.h and handler.h.
* conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
handler.c.
(kernel_elf_SOURCES): Add list.c and handler.c.
(kernel_elf_HEADERS): Add list.h and handler.h.
* conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
handler.c.
(kernel_mod_SOURCES): Add list.c and handler.c.
(kernel_mod_HEADERS): Add list.h and handler.h.
* conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
handler.c.
(kernel_elf_SOURCES): Add list.c and handler.c.
(kernel_elf_HEADERS): Add list.h and handler.h.
2009-03-01 17:51:44 +00:00
robertmh
8a31787ff5
2009-02-27 Robert Millan <rmh@aybabtu.com>
...
Factorize elf32 / elf64 code in Multiboot loader. This will
prevent it from getting out of sync again.
* loader/i386/multiboot.c (grub_multiboot_is_elf32,
grub_multiboot_load_elf32, grub_multiboot_is_elf64,
grub_multiboot_load_elf64): Move from here ...
* loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
grub_multiboot_load_elf): ... to here (new file).
2009-02-27 23:04:46 +00:00
robertmh
51cd3dfc70
2009-02-27 Robert Millan <rmh@aybabtu.com>
...
* util/grub.d/10_linux.in: Rename "single-user mode" to
"recovery mode".
2009-02-27 21:37:07 +00:00
robertmh
6e8c9c3a87
2009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
...
Don't leak in SCSI code.
* disk/scsi.c (grub_scsi_close): free `scsi'.
2009-02-27 21:27:01 +00:00
robertmh
4b6bf4f97c
2009-02-27 Robert Millan <rmh@aybabtu.com>
...
* loader/i386/pc/multiboot.c: Move from here ...
* loader/i386/multiboot.c: ... to here. Update all users.
2009-02-27 21:19:00 +00:00
robertmh
b941342428
2009-02-27 Robert Millan <rmh@aybabtu.com>
...
Patch from Alexandre Bique <bique.alexandre@gmail.com>
* util/i386/pc/grub-setup.c (setup): Fix directory path.
2009-02-27 21:01:25 +00:00
robertmh
34519c3f9d
2009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
...
* fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
b-tree.
2009-02-27 19:50:53 +00:00
robertmh
8cc50345f8
2009-02-27 Robert Millan <rmh@aybabtu.com>
...
* kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
`0x' qualifier as 0 when base is specified as parameter).
2009-02-27 19:33:38 +00:00
bean
6e09b8b72e
2009-02-24 Bean <bean123ch@gmail.com>
...
* configure.ac: Check for -mcmodel=large in x86_64 target.
* include/grub/efi/api.h (efi_call_10): New macro.
(efi_wrap_10): New function.
* include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
(GRUB_PE32_REL_BASED_HIGH): Likewise.
(GRUB_PE32_REL_BASED_LOW): Likewise.
(GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
(GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
(GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
(GRUB_PE32_REL_BASED_SECTION): Likewise.
(GRUB_PE32_REL_BASED_REL): Likewise.
(GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
(GRUB_PE32_REL_BASED_DIR64): Likewise.
(GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
* kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
issue.
* kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
(efi_wrap_10): New function.
* kern/x86_64/efi/startup.S (codestart): Use relative addressing.
* loader/efi/appleloader.c (devpath_5): Add support for late 2008
MB/MBP model (NV chipset).
(devdata_devs): Add devpath_5 to the list.
* load/i386/efi/linux.c (video_base): Remove variable.
(RGB_MASK): New macro.
(RGB_MAGIC): Likewise.
(LINE_MIN): Likewise.
(LINE_MAX): Likewise.
(FBTEST_STEP): Likewise.
(FBTEST_COUNT): Likewise.
(fb_list): New variable.
(grub_find_video_card): Remove function.
(find_framebuf): New function.
(grub_linux_setup_video): Use find_framebuf to get frame buffer and
line length.
* util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
problem for x86_64.
2009-02-24 13:19:46 +00:00
chaac
74b21bee5c
2009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
...
Patch #25624 by Kevin Lacquement <kevin@lacqui>.
* util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
coding tool name.
2009-02-22 21:55:49 +00:00
robertmh
a455f472aa
2009-02-22 Robert Millan <rmh@aybabtu.com>
...
* include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
* loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
in our relocation, instead of using it directly from heap. Also
use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
2009-02-22 00:44:22 +00:00
robertmh
6374daf387
2009-02-21 Robert Millan <rmh@aybabtu.com>
...
Implement USB keyboard support (based on patch by Marco Gerards)
* conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
(usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
(usb_keyboard_mod_LDFLAGS): New variables.
* term/usb_keyboard.c: New file.
2009-02-21 14:55:06 +00:00
chrfranke
8fa4ea7017
2009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
...
Corrected wrong declaration
* kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
2009-02-14 19:24:31 +00:00
chrfranke
353976ac0e
2009-02-14 Christian Franke <franke@computer.org>
...
* commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
(grub_lspci_iter): Print class code and programming interface byte.
2009-02-14 17:26:35 +00:00
chrfranke
6aa1169b6d
2009-02-14 Christian Franke <franke@computer.org>
...
* gendistlist.sh: Ignore `.svn' directories.
2009-02-14 16:02:12 +00:00
fzielcke
265372ca74
2009-02-14 Felix Zielcke <fzielcke@z-51.de>
...
* fs/fat.c: Add 2009 to Copyright line.
2009-02-14 14:38:50 +00:00
chrfranke
9ff516f3eb
2009-02-14 Christian Franke <franke@computer.org>
...
* commands/hdparm.c: New file. Provides `hdparm' command
which sends ATA commands via grub_disk_ata_pass_through ().
* conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
* disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
and <grub/cpu/io.h> to include/grub/ata.h.
(enum grub_ata_addressing_t): Move to include/grub/ata.h.
(GRUB_CDROM_SECTOR_SIZE): Remove.
(GRUB_ATA_*): Move to include/grub/ata.h.
(GRUB_ATAPI_*): Likewise.
(enum grub_ata_commands): Likewise.
(enum grub_ata_timeout_milliseconds): Likewise.
(struct grub_ata_device): Likewise.
(grub_ata_regset): Likewise.
(grub_ata_regget): Likewise.
(grub_ata_regset2): Likewise.
(grub_ata_regget2): Likewise.
(grub_ata_check_ready): Likewise.
(grub_ata_wait_not_busy): Remove static, exported in
include/grub/ata.h.
(grub_ata_wait_drq): Likewise.
(grub_ata_pio_read): Likewise.
* disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
function for hdparm.mod.
* include/grub/ata.h: New file, contains declarations from
disk/ata.c.
(enum grub_ata_commands): Add new commands for commands/hdparm.c.
* include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
(grub_disk_ata_pass_through): New exported variable.
* kern/disk.c (grub_disk_ata_pass_through): New variable.
2009-02-14 12:57:55 +00:00
cbennett
772e23dad2
2009-02-13 Colin D Bennett <colin@gibibit.com>
...
Support multiple fallback entries, and provide an API to support
executing default+fallback menu entries. Renamed the `terminal' menu
viewer to `text'.
* include/grub/normal.h (grub_normal_text_menu_viewer): New global
variable declaration.
(grub_menu_execute_callback): New structure declaration.
(grub_menu_execute_callback_t): New typedef.
(grub_menu_execute_with_fallback): New function declaration.
(grub_menu_get_entry): Likewise.
(grub_menu_get_timeout): Likewise.
(grub_menu_set_timeout): Likewise.
* normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
* normal/menu.c (grub_wait_after_message): Moved to
`normal/menu_text.c'.
(draw_border): Likewise.
(print_message): Likewise.
(print_entry): Likewise.
(print_entries): Likewise.
(grub_menu_init_page): Likewise.
(get_entry_number): Likewise.
(print_timeout): Likewise.
(run_menu): Likewise.
(grub_menu_execute_entry): Likewise.
(show_text_menu): Likewise.
(get_and_remove_first_entry_number): New function.
(grub_menu_execute_with_fallback): Likewise.
(get_entry): Renamed to ...
(grub_menu_get_entry): .. this and made it global.
(get_timeout): Renamed to ...
(grub_menu_get_timeout): ... this and made it global.
(set_timeout): Renamed to ...
(grub_menu_set_timeout): ... this and made it global.
(grub_normal_terminal_menu_viewer): Renamed to ...
(grub_normal_text_menu_viewer): ... this.
* normal/menu_text.c: New file. Extracted text-menu-specific code
from normal/menu.c.
* conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
(normal_mod_SOURCES): Likewise.
* conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
(normal_mod_SOURCES): Likewise.
* conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
(normal_mod_SOURCES): Likewise.
* conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
(normal_mod_SOURCES): Likewise.
* conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
(normal_mod_SOURCES): Likewise.
* conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
(normal_mod_SOURCES): Likewise.
* conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
(normal_mod_SOURCES): Likewise.
2009-02-13 20:06:27 +00:00
robertmh
16ac430e8c
2009-02-11 Robert Millan <rmh@aybabtu.com>
...
* util/grub.d/00_header.in: Update old reference to `font' command.
2009-02-11 00:36:58 +00:00
fzielcke
06ff20fcfe
2009-02-10 Felix Zielcke <fzielcke@z-51.de>
...
* fs/fat.c (grub_fat_mount): Fix wrong comparison.
Based on patch from Javier Martín.
2009-02-10 09:50:08 +00:00
fzielcke
96da94074c
2009-02-09 Felix Zielcke <fzielcke@z-51.de>
...
* conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
to avoid false posivites with FAT.
(grub_fstest_SOURCES): Likewise.
* conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
* conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
* conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
* conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
* conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
* conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
2009-02-09 18:00:36 +00:00
fzielcke
6dca6fe432
2009-02-09 Felix Zielcke <fzielcke@z-51.de>
...
fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
bpb.version_specific.fat12_or_fat16.fstype and
bpb.version_specific.fat32.fstype.
2009-02-09 14:17:19 +00:00
robertmh
be110b3076
Fix ChangeLog entry
2009-02-08 22:11:48 +00:00
robertmh
2550c62fe0
2009-02-08 Robert Millan <rmh@aybabtu.com>
...
* fs/tar.c: Replace "fs/cpio.h" with "cpio.h".
2009-02-08 21:50:27 +00:00
robertmh
56978920b1
2009-02-08 Robert Millan <rmh@aybabtu.com>
...
* Makefile.in (host_os, host_cpu): New variables.
(target_os): Remove. Update all users.
2009-02-08 19:59:32 +00:00
robertmh
d64399b562
2009-02-08 Marco Gerards <marco@gnu.org>
...
* Makefile.in (enable_grub_emu_usb): New variable.
* conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
(grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
`util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
(grub_emu_LDFLAGS): Add `$(LIBUSB)'.
(pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
`usbtest.mod' and `usbms.mod'.
(usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
(usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
(uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
(ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
(usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
variables.
* disk/usbms.c: New file.
* include/grub/usb.h: Likewise.
* include/grub/usbtrans.h: Likewise.
* include/grub/usbdesc.h: Likewise.
* bus/usb/usbtrans.c: Likewise.
* bus/usb/ohci.c: Likewise.
* bus/usb/uhci.c: Likewise.
* bus/usb/usbhub.c: Likewise.
* bus/usb/usb.c: Likewise.
* commands/usbtest.c: Likewise.
* util/usb.c: Likewise.
* include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
* configure.ac: Test for libusb presence.
* util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
2009-02-08 17:58:32 +00:00
chaac
2b40d6bb9f
2009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
...
* kern/mm.c: Add more comments.
2009-02-08 10:52:03 +00:00
robertmh
73a4ce818c
2009-02-08 Robert Millan <rmh@aybabtu.com>
...
Patch from Javier Martín.
* fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
`EXT4_FEATURE_INCOMPAT_FLEX_BG'.
2009-02-08 00:28:09 +00:00
robertmh
f821ce593a
2009-02-08 Robert Millan <rmh@aybabtu.com>
...
* fs/cpio.c: Split tar functionality to ...
* fs/tar.c: ... here (new file). Update all users.
2009-02-07 23:38:01 +00:00
robertmh
aebfc4b085
2009-02-07 Robert Millan <rmh@aybabtu.com>
...
* fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
backward-incompatible features.
Based on patch from Javier Martín, with some adjustments.
2009-02-07 23:13:48 +00:00
robertmh
cea15bca5b
2009-02-07 Michael Scherer <misc@mandriva.org>
...
* fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
2009-02-07 20:57:23 +00:00
robertmh
0bb5115e67
2009-02-07 Robert Millan <rmh@aybabtu.com>
...
* conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
position of `disk/lvm.c\' to ensure grub_init_all() always picks it
after the RAID stuff.
2009-02-07 20:55:48 +00:00
chaac
38a0f8e7b5
2009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
...
Fixes problem when running vbetest command as reported by
Vladimir Serbinenko <phcoder@gmail.com>.
* (grub_vbe_set_video_mode): Fixed problem with text modes.
2009-02-05 18:28:58 +00:00
fzielcke
3143cc1c5f
2009-02-04 Felix Zielcke <fzielcke@z-51.de>
...
util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
/dev/md/NpN style mdraid devices.
2009-02-04 10:52:25 +00:00
proski
7c3ff286eb
Fix typos and extra spaces
2009-02-03 22:33:45 +00:00
fzielcke
9cba6fce00
2009-02-03 Felix Zielcke <fzielcke@z-51.de>
...
* util/unifont2pff.rb: Remove.
2009-02-03 20:23:33 +00:00
fzielcke
e507a2c14f
2009-02-03 Felix Zielcke <fzielcke@z-51.de>
...
* conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
`#'.
2009-02-03 13:34:52 +00:00
fzielcke
d2c2b4cdb9
2009-02-03 Felix Zielcke <fzielcke@z-51.de>
...
* conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
* conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
* conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
* conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
* conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
* conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
* conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
2009-02-03 13:22:26 +00:00
chrfranke
b4315fb069
2009-02-02 Christian Franke <franke@computer.org>
...
* lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
2009-02-02 19:43:14 +00:00
fzielcke
de3aa26079
2009-02-01 Felix Zielcke <fzielcke@z-51.de>
...
* INSTALL: Note that we now require at least autconf 2.59 and that LZO
is optional.
2009-02-01 16:17:32 +00:00
chaac
825a182b6a
2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
...
Base on patch on bug #24154 created by Tomas Tintera
<trosos@seznam.cz>.
* video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
2009-02-01 09:33:29 +00:00
chaac
a69ef770ff
2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
...
Based on patch on bug #25318 created by Bernhard Rosenkraenzer
<bero@arklinux.org>.
* normal/parser.y (script_init): Add missing semicolon.
2009-02-01 09:03:15 +00:00
chaac
6fa42fa65a
2009-01-31 Colin D Bennett <colin@gibibit.com>
...
* normal/main.c: Add include to grub/menu_viewer.h.
(free_menu_entry_classes): Added.
(grub_normal_menu_addentry): Added class property handling.
(grub_normal_execute): Changed to use new menu viewer for menu viewing.
(GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
* normal/menu_viewer.c: New file.
* normal/menu.c (run_menu_entry): Renamed to ...
(grub_menu_execute_entry): ... this and made it as global.
(grub_menu_run): Renamed to ...
(show_text_menu): ... this and made it local.
(show_text_menu): Adapt to new function names.
(grub_normal_terminal_menu_viewer): New global variable.
* include/grub/menu.h: New file.
* include/grub/menu_viewer.h: New file.
* include/grub/normal.h: Added include to grub/menu.h.
(grub_menu_entry): Moved to include/grub/menu.h.
(grub_menu_entry_t): Likewise.
(grub_menu): Likewise.
(grub_menu_t): Likewise.
(grub_normal_terminal_menu_viewer): Added.
(grub_menu_execute_entry): Likewise.
(grub_menu_run): Removed.
* DISTLIST: Added include/grub/menu.h.
Added include/grub/menu_viewer.h.
Added normal/menu_viewer.c.
2009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
* normal/execute.c (grub_script_execute_menuentry): Changed to use
arglist for menutitle arguments.
* normal/main.c (grub_normal_menu_addentry): Likewise.
* normal/parser.y (menuentry): Likewise.
* normal/script.c (grub_script_create_cmdmenu): Likewise.
* include/grub/script.h (grub_script_cmd_menuentry): Likewise.
(grub_script_create_cmdmenu): Likewise.
* include/grub/normal.h (grub_normal_menu_addentry): Likewise.
* conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
changes.
* conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
* conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
* conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
* conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
* conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
* conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
2009-01-31 09:15:43 +00:00
chrfranke
56192c2346
2009-01-30 Christian Franke <franke@computer.org>
...
* normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
in option help text.
2009-01-30 21:10:17 +00:00
proski
d72521b377
2009-01-27 Pavel Roskin <proski@gnu.org>
...
* disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
2009-01-28 02:19:07 +00:00
chaac
994b5e841d
2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
...
* commands/lsmmap.c: Add include to grub/machine/memory.h.
* fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
* term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
unregister function.
2009-01-27 19:07:32 +00:00
chaac
6a7eab2c13
2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
...
* disk/scsi.c (grub_scsi_read): Fix sign problem.
* term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
* util/grub-mkfont.c (usage): Fix typo.
* util/elf/grub-mkimage.c (load_modules): Fix warning.
2009-01-27 18:26:09 +00:00
proski
3fb18f094d
2009-01-26 Daniel Mierswa <impulze@impulze.org>
...
* fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
2009-01-26 04:35:57 +00:00
proski
336e1fb9ea
2009-01-26 Daniel Mierswa <impulze@impulze.org>
...
* commands/search.c (search_fs_uuid): Ignore case of the UUID.
2009-01-26 04:26:47 +00:00
proski
1806b56e2b
2009-01-26 Daniel Mierswa <impulze@impulze.org>
...
* kern/misc.c (grub_strcasecmp): New function.
(grub_strcasecmp): Use grub_size_t instead of int for length.
Fix return value.
* include/grub/misc.h: Update function prototypes.
2009-01-26 04:22:44 +00:00
proski
ef257b36a6
Remove trailing whitespace
2009-01-26 04:05:54 +00:00
robertmh
580b2a0fb2
2009-01-26 Robert Millan <rmh@aybabtu.com>
...
* configure.ac: Fix cross-compilation check.
2009-01-25 23:04:46 +00:00
chrfranke
d31c24f1e0
2009-01-22 Christian Franke <franke@computer.org>
...
* kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
(precision) digit string. Allow `.format2' without `format1' (width).
Limit input chars for `%s' output to `format2' if specified. This is
compatible with standard printf ().
2009-01-22 20:27:52 +00:00
chrfranke
3138b44c90
2009-01-22 Christian Franke <franke@computer.org>
...
* disk/ata.c (grub_ata_wait_status): Replace by ...
(grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
other status bits may be invalid while BSY is asserted.
(grub_ata_check_ready): New function.
(grub_ata_cmd): Removed.
(grub_ata_wait_drq): New function.
(grub_ata_strncpy): Remove inline.
(grub_ata_pio_read): Reduce to actual block transfer. BSY wait
and error check now done by grub_ata_wait_drq ().
(grub_ata_pio_write): Likewise.
(grub_atapi_identify): Set DEV before check for !BSY. Use
grub_ata_wait_drq () to wait for data.
(grub_ata_device_initialize): Add status register check to
detect missing SATA slave devices. Add debug messages.
(grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
(grub_atapi_packet): Set DEV before check for !BSY. Replace
transfer loop by grub_ata_pio_write ().
(grub_ata_identify): Set DEV before check for !BSY. Use
grub_ata_wait_drq () to wait for data.
(grub_ata_setaddress): Set DEV before check for !BSY.
(grub_ata_readwrite): Remove duplicate code, handle batch/rest and
read/write in one loop. Fix invalid command on write. Fix incomplete
command on (size % batch) == 0. Add missing error check after write of
last block. Add debug messages.
(grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
2009-01-22 20:15:05 +00:00
chrfranke
59a64ef6da
2009-01-19 Christian Franke <franke@computer.org>
...
* disk/ata.c (GRUB_ATAPI_REG_*): New defines.
(GRUB_ATAPI_IREASON_*): Likewise.
(grub_ata_pio_write): Fix timeout error return.
(grub_atapi_identify): Add grub_ata_wait () after cmd.
(grub_atapi_wait_drq): New function.
(grub_atapi_packet): New parameter `size'.
Use grub_atapi_wait_drq () and direct write instead of
grub_ata_pio_write ().
(grub_atapi_read): Replace grub_ata_pio_read () by a loop which
reads the number of bytes requested by the device for each DRQ
assertion.
(grub_atapi_write): Remove old implementation, return not
implemented instead.
2009-01-19 20:39:57 +00:00
chrfranke
1cfe20b333
2009-01-19 Christian Franke <franke@computer.org>
...
* disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
of 512 to calculate data size.
(grub_scsi_read12): Likewise.
(grub_scsi_write10): Likewise.
(grub_scsi_write12): Likewise.
(grub_scsi_read): Adjust size according to blocksize.
Add checks for invalid blocksize and unaligned transfer.
2009-01-19 20:27:54 +00:00
chaac
bee5fe5d09
2009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
...
* font/font.c (grub_font_loader_init): Re-position unknown glyph.
* term/gfxterm.c (write_char): Fix background rendering for wide
width glyphs.
2009-01-19 17:09:53 +00:00
robertmh
3e643f8c13
2009-01-19 Robert Millan <rmh@aybabtu.com>
...
* config.guess: Update to latest version from config git.
* config.sub: Likewise.
2009-01-19 12:33:07 +00:00
fzielcke
4fa809981f
2009-01-17 Felix Zielcke <fzielcke@z-51.de>
...
* Makefile.in: Change font compilation to use new grub-mkfont instead
of java version.
* util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
* util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
* util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
* util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
* util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
* util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
* util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
* util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
* util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
2009-01-17 09:38:38 +00:00
chrfranke
7086085ba3
2009-01-16 Christian Franke <franke@computer.org>
...
* disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
(enum grub_ata_timeout_milliseconds): New enum.
(grub_ata_wait_status): Add parameter milliseconds.
(grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
recovery from timed-out commands.
(grub_ata_pio_read): Add parameter milliseconds. Fix error return,
return grub_errno instead of REG_ERROR.
(grub_ata_pio_write): Add parameter milliseconds.
(grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
Pass milliseconds to grub_ata_wait_status () and
grub_ata_pio_read ().
(grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
(grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
grub_ata_wait_status (). Fix IDENTIFY timeout check.
(grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
It is not suitable for device detection, because DEV bit is ignored,
the command may run too long, and not all devices set the signature
properly.
(grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
(grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
Fix device selection, DEV bit must be set first to address the registers
of the correct device.
(grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
grub_ata_pio_read/write ().
(grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
(grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
2009-01-16 19:29:41 +00:00
proski
4a412913d1
2009-01-13 Carles Pina i Estany <carles@pina.cat>
...
* util/grub-editenv.c (main): Use fseeko(), not fseek().
2009-01-14 00:17:12 +00:00
proski
7795c55ef9
Spacing fixes
2009-01-14 00:13:52 +00:00
bean
d913988ca9
2009-01-13 Bean <bean123ch@gmail.com>
...
* util/grub-mkfont.c (write_font): forget to remove some debug code.
2009-01-13 17:03:13 +00:00
bean
e52db1f722
2009-01-13 Bean <bean123ch@gmail.com>
...
* Makefile.in: (enable_grub_mkfont): New variable.
(freetype_cflags): Likewise.
(freetype_libs): Likewise.
* common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
(grub_mkfont_SOURCES): New variable.
(grub_mkfont_CFLAGS): Likewise.
(grub_mkfont_LDFLAGS): Likewise.
* configure.ac (--enable-grub-mkfont): New option. Check for freetype2
library if `--enable-grub-mkfont' is requested.
(enable_grub_mkfont): New variable.
(freetype_cflags): Likewise.
(freetype_libs): Likewise.
* util/grub-mkfont.c: New file.
2009-01-13 16:34:26 +00:00
chrfranke
093af1fe82
2009-01-12 Christian Franke <franke@computer.org>
...
* disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
mode check. Fix setting of compat_use[].
2009-01-12 20:23:13 +00:00
robertmh
f36cc10867
2009-01-10 Robert Millan <rmh@aybabtu.com>
...
Update a few copyright years which we forgot to do in 2008 (only for
files whose changes made in 2008 were copyright-significant)
* Makefile.in: Add 2008 to Copyright line.
* disk/ieee1275/ofdisk.c: Likewise.
* disk/efi/efidisk.c: Likewise.
* kern/dl.c: Likewise.
* kern/sparc64/ieee1275/init.c: Likewise.
* kern/mm.c: Likewise.
* kern/efi/mm.c: Likewise.
* boot/i386/pc/boot.S: Likewise.
* genfslist.sh: Likewise.
* fs/iso9660.c: Likewise.
* fs/hfs.c: Likewise.
* fs/jfs.c: Likewise.
* fs/minix.c: Likewise.
* fs/ufs.c: Likewise.
* gensymlist.sh.in: Likewise.
* genkernsyms.sh.in: Likewise.
* include/grub/misc.h: Likewise.
* include/grub/types.h: Likewise.
* include/grub/symbol.h: Likewise.
* include/grub/elf.h: Likewise.
* include/grub/kernel.h: Likewise.
* include/grub/disk.h: Likewise.
* include/grub/dl.h: Likewise.
* include/grub/i386/linux.h: Likewise.
* include/grub/i386/pc/biosdisk.h: Likewise.
* include/grub/efi/api.h: Likewise.
* include/grub/efi/pe32.h: Likewise.
* include/grub/util/misc.h: Likewise.
* normal/execute.c: Likewise.
* normal/arg.c: Likewise.
* normal/completion.c: Likewise.
* normal/lexer.c: Likewise.
* normal/parser.y: Likewise.
* normal/misc.c: Likewise.
* commands/i386/pc/vbeinfo.c: Likewise.
* commands/hexdump.c: Likewise.
* commands/terminal.c: Likewise.
* commands/ls.c: Likewise.
* commands/help.c: Likewise.
* partmap/pc.c: Likewise.
* loader/efi/chainloader.c: Likewise.
* loader/multiboot_loader.c: Likewise.
* loader/i386/pc/multiboot2.c: Likewise.
* term/efi/console.c: Likewise.
* term/i386/pc/serial.c: Likewise.
* util/lvm.c: Likewise.
* util/console.c: Likewise.
* util/i386/efi/grub-mkimage.c: Likewise.
* util/raid.c: Likewise.
2009-01-10 13:07:44 +00:00
chaac
7f02114b79
2009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
...
* commands/videotest.c: Removed include to grub/machine/memory.h.
* conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
(video_mod_SOURCES): Removed.
(video_mod_CFLAGS): Likewise.
(video_mod_LDFLAGS): Likewise.
(gfxterm_mod_SOURCES): Likewise.
(gfxterm_mod_CFLAGS): Likewise.
(gfxterm_mod_LDFLAGS): Likewise.
(videotest_mod_SOURCES): Likewise.
(videotest_mod_CFLAGS): Likewise.
(videotest_mod_LDFLAGS): Likewise.
(bitmap_mod_SOURCES): Likewise.
(bitmap_mod_CFLAGS): Likewise.
(bitmap_mod_LDFLAGS): Likewise.
(tga_mod_SOURCES): Likewise.
(tga_mod_CFLAGS): Likewise.
(tga_mod_LDFLAGS): Likewise.
(jpeg_mod_SOURCES): Likewise.
(jpeg_mod_CFLAGS): Likewise.
(jpeg_mod_LDFLAGS): Likewise.
(png_mod_SOURCES): Likewise.
(png_mod_CFLAGS): Likewise.
(png_mod_LDFLAGS): Likewise.
* conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
(video_mod_SOURCES): Added.
(video_mod_CFLAGS): Likewise.
(video_mod_LDFLAGS): Likewise.
(videotest_mod_SOURCES): Likewise.
(videotest_mod_CFLAGS): Likewise.
(videotest_mod_LDFLAGS): Likewise.
(bitmap_mod_SOURCES): Likewise.
(bitmap_mod_CFLAGS): Likewise.
(bitmap_mod_LDFLAGS): Likewise.
(tga_mod_SOURCES): Likewise.
(tga_mod_CFLAGS): Likewise.
(tga_mod_LDFLAGS): Likewise.
(jpeg_mod_SOURCES): Likewise.
(jpeg_mod_CFLAGS): Likewise.
(jpeg_mod_LDFLAGS): Likewise.
(png_mod_SOURCES): Likewise.
(png_mod_CFLAGS): Likewise.
(png_mod_LDFLAGS): Likewise.
(gfxterm_mod_SOURCES): Likewise.
(gfxterm_mod_CFLAGS): Likewise.
(gfxterm_mod_LDFLAGS): Likewise.
* term/gfxterm.c: Removed include to grub/machine/memory.h,
grub/machine/console.h.
2009-01-05 23:01:00 +00:00
jerone
644fff97d2
2009-01-04 Jerone Young <jerone@gmail.com>
...
Make on screen instructions clearer
Based on patch created by Jidanni <jidanni@jidanni.org>
* normal/menu.c: print clearer instructions on the screen
2009-01-05 05:25:05 +00:00
proski
34c44600fe
Fix typos, trailing whitespace
2009-01-02 23:38:44 +00:00
chaac
1e901a7573
2009-01-02 Colin D Bennett <colin@gibibit.com>
...
New font engine.
Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
build system and fixed gfxterm.c to work with different sized fonts.
* configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
* configure: Re-generated.
* DISTLIST: Removed font/manager.c.
Added font/font.c.
Added font/font_cmd.c.
* Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
compilation.
* include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
* kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
* kern/term.c: Changed users of grub_utf8_to_ucs4.
* normal/menu.c: Likewise.
* conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
(font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
* include/grub/font.h: Replaced with new file.
* include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
(GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
(GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
(GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
(grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
(grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
fg_red, fg_green, fg_blue, fg_alpha.
(grub_video_adapter): Removed blit_glyph.
(grub_video_blit_glyph): Removed.
* font/manager.c: Removed file.
* font/font.c: New file.
* font/font_cmd.c: Likewise.
* video/video.c (grub_video_blit_glyph): Removed.
* video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
(grub_video_vbe_map_rgba): Likewise.
(grub_video_vbe_unmap_color_int): Likewise.
(grub_video_vbe_blit_glyph): Removed.
(grub_video_vbe_adapter): Removed blit_glyph.
* video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
(get_pixel): Likewise.
(set_pixel): Likewise.
* commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
* term/gfxterm.c: Adapted to new font engine.
* term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
* term/i386/pc/vga.c: Likewise.
* util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
* util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
* util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
* util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
* util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
* util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
* util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
* util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
* util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
* util/grub.d/00_header.in: Changed to use new loadfont command.
* util/grub-mkconfig_lib.in: Changed font extension.
2009-01-02 15:26:06 +00:00