]> git.proxmox.com Git - grub2.git/log
grub2.git
15 years ago2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
phcoder [Mon, 27 Apr 2009 16:48:58 +0000 (16:48 +0000)]
2009-04-27  Vladimir Serbinenko <phcoder@gmail.com>

Preboot hooks support

* commands/boot.c (struct grub_preboot_t): new declaration
(preboots_head): new variable
(preboots_tail): likewise
(grub_loader_register_preboot_hook): new function
(grub_loader_unregister_preboot_hook): likewise
(grub_loader_set): launch preboot hooks
* include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
(grub_loader_register_preboot_hook): new declaration
(grub_loader_unregister_preboot_hook): likewise

15 years ago2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
phcoder [Mon, 27 Apr 2009 15:39:39 +0000 (15:39 +0000)]
2009-04-27  Vladimir Serbinenko  <phcoder@gmail.com>

Warning fix

* disk/scsi.c (grub_scsi_open): added missing cast when
calling grub_dprintf

15 years ago2009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
phcoder [Sun, 26 Apr 2009 15:09:30 +0000 (15:09 +0000)]
2009-04-26  Vladimir Serbinenko  <phcoder@gmail.com>

Bug and warning fixes

* include/grub/i386/pc/init.h (grub_stop_floppy): added missing
declaration
* commands/test.c (test_parse): fixed bug with file tests and corrected
declaration of find_file

15 years ago2009-04-26 Pavel Roskin <proski@gnu.org>
proski [Sun, 26 Apr 2009 14:14:05 +0000 (14:14 +0000)]
2009-04-26  Pavel Roskin  <proski@gnu.org>

* Makefile.in: Don't install empty manual pages if help2man is
missing.  Use help2man option for output, not shell redirection.

15 years ago * util/grub-mkdevicemap.c (make_device_map): Add missing
davem [Sun, 26 Apr 2009 08:44:36 +0000 (08:44 +0000)]
* util/grub-mkdevicemap.c (make_device_map): Add missing
NESTED_FUNC_ATTR to process_device().

15 years ago2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
phcoder [Sat, 25 Apr 2009 12:29:08 +0000 (12:29 +0000)]
2009-04-25  Vladimir Serbinenko  <phcoder@gmail.com>

Test command

* commands/test.c: rewritten to use bash-like test

15 years ago2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
phcoder [Sat, 25 Apr 2009 12:18:25 +0000 (12:18 +0000)]
2009-04-25  Vladimir Serbinenko  <phcoder@gmail.com>

Parttool autoloading and improvements

* Makefile.in (pkglib_DATA): add parttool.lst
(parttool.lst): new target
* genmk.rb: generate parttool-*
(CLEANFILES): add #{parttool}
(PARTTOOLFILES): new variable
* genparttoollist.sh: new file
* parttool/pcpart.c (grub_pcpart_boot): more feedback
(grub_pcpart_type): likewise
* commands/parttool.c (helpmsg): new variable
(grub_cmd_parttool): output help if not enough arguments are supplied
autoload modules
(GRUB_MOD_INIT(parttool)): use helpmsg

15 years agoReally remove lib/datetime.c and include/grub/lib/datetime.h
proski [Fri, 24 Apr 2009 17:05:19 +0000 (17:05 +0000)]
Really remove lib/datetime.c and include/grub/lib/datetime.h

15 years ago * disk/ieee1275/nand.c (grub_nand_iterate): Return
davem [Fri, 24 Apr 2009 12:05:54 +0000 (12:05 +0000)]
* disk/ieee1275/nand.c (grub_nand_iterate): Return
grub_devalias_iterate() result instead of unconditional 0.
* disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
Also, capture hook return value, either directly or via
grub_children_iterate(), and propagate to caller.
* include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
grub_children_iterate): Return value is now 'int' instead of
'grub_err_t'.
* kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
like a proper iterator, stopping when hooks return non-zero.
(grub_devalias_iterate): Likewise.

15 years ago * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
davem [Fri, 24 Apr 2009 12:05:14 +0000 (12:05 +0000)]
* disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
on disk->data.

15 years ago Avoiding openning same device multiple times in device iterator.
davem [Fri, 24 Apr 2009 12:04:10 +0000 (12:04 +0000)]
Avoiding openning same device multiple times in device iterator.

* kern/device.c (grub_device_iterate): Define struct part_ent,
and use it to build a list of partitions in interate_disk() and
iterate_partition().

15 years ago * kern/sparc64/ieee1275/openfw.c: Unused, delete.
davem [Thu, 23 Apr 2009 10:03:41 +0000 (10:03 +0000)]
* kern/sparc64/ieee1275/openfw.c: Unused, delete.

15 years ago * util/sparc64/ieee1275/misc.c: New file.
davem [Wed, 22 Apr 2009 09:57:39 +0000 (09:57 +0000)]
* util/sparc64/ieee1275/misc.c: New file.
* util/sparc64/ieee1275/grub-setup.c: New file.
* util/sparc64/ieee1275/grub-ofpathname.c: New file.
* util/sparc64/ieee1275/grub-mkimage.c: New file.
* util/sparc64/ieee1275/grub-install.in: New file.
* util/ieee1275/ofpath.c: New file.
* util/ieee1275/devicemap.c: New file.
* util/devicemap.c: New file.
* util/deviceiter.c: New file.
* kern/sparc64/ieee1275/init.c: New file.
* include/grub/util/ofpath.h: New file.
* include/grub/util/deviceiter.h: New file.
* util/grub-mkdevicemap.c: Include deviceiter.h.
Implement using grub_util_emit_devicemap_entry and
grub_util_iterate_devices.
* conf/i386-corebook.rmk: Build util/deviceiter.c and
util/devicemap.c into grub-mkdevicemap
* conf/i386-efi.rmk: Likewise.
* conf/i386-ieee1275.rmk: Likewise.
* conf/i386-pc.rmk: Likewise.
* conf/powerpc-ieee1275.rmk: Likewise.
* conf/sparc64-ieee1275.rmk: Add rules to build boot block
images and installation utilities.  Build kernel as image
instead of as elf binary.  Use common rules as much as possible.

15 years ago * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
davem [Wed, 22 Apr 2009 09:46:54 +0000 (09:46 +0000)]
* include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
IEEE1275_MAX_PATH_LEN): Define.
* kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
allocate 'childtype', 'childpath', 'childname', and 'fullname'.
(grub_devalias_iterate): Dynamically allocate 'aliasname' and
'devtype'.  Explicitly NULL terminate devalias expansion.

15 years ago * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
davem [Wed, 22 Apr 2009 09:45:43 +0000 (09:45 +0000)]
* kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
is larger than address_cells, use that value for address_cells too.

15 years ago2009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
phcoder [Sun, 19 Apr 2009 20:38:46 +0000 (20:38 +0000)]
2009-04-19  Vladimir Serbinenko <phcoder@gmail.com>

Correct GPT definition

* include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
of "attrib" member

15 years ago2009-04-19 Felix Zielcke <fzielcke@z-51.de>
fzielcke [Sun, 19 Apr 2009 14:49:43 +0000 (14:49 +0000)]
2009-04-19  Felix Zielcke  <fzielcke@z-51.de>

* INSTALL: Replace `autogen.sh' with `./autogen.sh'.

15 years ago * loader/sparc64/ieee1275/linux.c: Include grub/command.h
davem [Sun, 19 Apr 2009 08:51:04 +0000 (08:51 +0000)]
* loader/sparc64/ieee1275/linux.c: Include grub/command.h
(grub_rescue_cmd_linux): Rename to...
(grub_cmd_linux): and fix prototype.
(grub_rescue_cmd_initrd): Rename to...
(grub_cmd_initrd): and fix prototype.
(cmd_linux, cmd_initrd): New.
(GRUB_MOD_INIT(linux)): Use grub_register_command().
(GRUB_MOD_FINI(linux): Use grub_unregister_command().

15 years ago2009-04-17 Pavel Roskin <proski@gnu.org>
proski [Fri, 17 Apr 2009 17:23:34 +0000 (17:23 +0000)]
2009-04-17  Pavel Roskin  <proski@gnu.org>

* bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
format.
(grub_ohci_transfer): Likewise.

15 years ago2009-04-17 Pavel Roskin <proski@gnu.org>
proski [Fri, 17 Apr 2009 17:09:36 +0000 (17:09 +0000)]
2009-04-17  Pavel Roskin  <proski@gnu.org>

* bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.

15 years ago2009-04-17 Pavel Roskin <proski@gnu.org>
proski [Fri, 17 Apr 2009 16:35:26 +0000 (16:35 +0000)]
2009-04-17  Pavel Roskin  <proski@gnu.org>

* loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
return without a value.  Fix inconsistent indentation.

15 years ago2009-04-17 Pavel Roskin <proski@gnu.org>
proski [Fri, 17 Apr 2009 16:08:24 +0000 (16:08 +0000)]
2009-04-17  Pavel Roskin  <proski@gnu.org>

* fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
match struct grub_fs.

15 years ago2009-04-17 Pavel Roskin <proski@gnu.org>
proski [Fri, 17 Apr 2009 15:36:41 +0000 (15:36 +0000)]
2009-04-17  Pavel Roskin  <proski@gnu.org>

* disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
* bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
* bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
* commands/lspci.c (grub_lspci_iter): Likewise.

15 years ago2009-04-16 Bean <bean123ch@gmail.com>
bean [Thu, 16 Apr 2009 12:18:11 +0000 (12:18 +0000)]
2009-04-16  Bean  <bean123ch@gmail.com>

* commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
value.

15 years ago2009-04-15 Pavel Roskin <proski@gnu.org>
proski [Wed, 15 Apr 2009 20:45:09 +0000 (20:45 +0000)]
2009-04-15  Pavel Roskin  <proski@gnu.org>

* include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
LONG_MAX to GRUB_LONG_MAX.  Introduce GRUB_LONG_MIN.  Update all
users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
definitions.

15 years agoremoved kern/loader which should have been removed by my previous commit
phcoder [Wed, 15 Apr 2009 16:39:02 +0000 (16:39 +0000)]
removed kern/loader which should have been removed by my previous commit

15 years ago2009-04-15 Felix Zielcke <fzielcke@z-51.de>
fzielcke [Wed, 15 Apr 2009 13:29:24 +0000 (13:29 +0000)]
2009-04-15  Felix Zielcke  <fzielcke@z-51.de>

* disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
that no multiple data or metadata areas are supported and `Unknown
metadata header'.

15 years ago2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
phcoder [Wed, 15 Apr 2009 12:45:50 +0000 (12:45 +0000)]
2009-04-15  Vladimir Serbinenko <phcoder@gmail.com>

Move loader out of the kernel

* kern/loader.c: moved to ...
* commands/boot.c: ... moved here
* commands/minicmd.c (grub_mini_cmd_boot): moved to ...
* commands/boot.c (grub_cmd_boot): moved here. All users updated
* include/grub/kernel.h (grub_machine_fini): export
* include/grub/loader.h (grub_loader_is_loaded): update declaration
(grub_loader_set): likewise
(grub_loader_unset): likewise
(grub_loader_boot): likewise
* conf/common.rmk: new module boot.mod
(pkglib_MODULES): add boot.mod
* conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
(grub_emu_SOURCES): likewise
* conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
(grub_emu_SOURCES): likewise
* conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
(grub_emu_SOURCES): likewise
* conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
(grub_emu_SOURCES): likewise
* conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
(grub_emu_SOURCES): likewise
* conf/sparcs64-ieee1275.rmk (kernel_elf_SOURCES): likewise
(grub_emu_SOURCES): likewise
* conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
(grub_emu_SOURCES): likewise

15 years ago2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
phcoder [Wed, 15 Apr 2009 12:33:46 +0000 (12:33 +0000)]
2009-04-15  Vladimir Serbinenko  <phcoder@gmail.com>

use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes

* kern/misc.c (grub_itoa): Removed function
(grub_ltoa): likewise
(grub_vsprintf): use grub_lltoa

15 years ago2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
phcoder [Wed, 15 Apr 2009 12:32:08 +0000 (12:32 +0000)]
2009-04-15  Vladimir Serbinenko  <phcoder@gmail.com>

Restore grub-emu

* conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
* conf/i386-coreboot.rmk: likewise
* conf/i386-ieee1275.rmk: likewise
* conf/powerpc-ieee1275.rmk: likewise

15 years ago2009-04-15 Felix Zielcke <fzielcke@z-51.de>
fzielcke [Wed, 15 Apr 2009 06:58:39 +0000 (06:58 +0000)]
2009-04-15  Felix Zielcke  <fzielcke@z-51.de>

* INSTALL: Add that `./autogen.sh' needs to be run before
`./configure.'.

15 years ago2009-04-14 Bean <bean123ch@gmail.com>
bean [Tue, 14 Apr 2009 18:12:14 +0000 (18:12 +0000)]
2009-04-14  Bean  <bean123ch@gmail.com>

* Makefile.in (pkglib_DATA): Add handler.lst.
(handler.lst): New rule.

* conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
* conf/i386-coreboot.rmk: Likewise.
* conf/i386-ieee1275.rmk: Likewise.
* conf/i386-efi.rmk: Likewise.
* conf/x86_64-efi.rmk: Likewise.
* conf/powerpc-ieee1275.rmk: Likewise.
* conf/sparc64-ieee1275.rmk: Likewise.

* genhandlerlist.sh: New file.

* genmk.rb: Add rules to generate handler.lst.

* include/grub/normal.h (grub_file_getline): New function definition.
(read_handler_list): Likewise.
(free_handler_list): Likewise.

* include/grub/term.h (grub_term_register_input): Add name parameter
for auto generation of handler.lst.
(grub_term_register_output): Likewise.

* normal/handler.c: New file.

* normal/main.c (get_line): Renamed to grub_file_getline.
(read_config_file): Use the newly renamed grub_file_getline.
(read_command_list): Likewise.
(read_fs_list): Likewise.
(grub_normal_execute): Call read_handler_list to parse handler.lst.
(GRUB_MOD_FINI): Call free_handler_list to free handler list.

* term/efi/console.c (grub_console_init): Add name parameter for auto
generation of handler.lst.
* term/gfxterm.c: Likewise.
* term/i386/pc/at_keyboard.c: Likewise.
* term/i386/pc/console.c: Likewise.
* term/i386/pc/serial.c: Likewise.
* term/i386/pc/vesafb.c: Likewise.
* term/i386/pc/vga.c: Likewise.
* term/i386/pc/vga_text.c: Likewise.
* term/ieee1275/ofconsole.c: Likewise.
* term/usb_keyboard.c: Likewise.

15 years ago2009-04-14 Bean <bean123ch@gmail.com>
bean [Tue, 14 Apr 2009 16:56:35 +0000 (16:56 +0000)]
2009-04-14  Bean  <bean123ch@gmail.com>

* util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
properly with null character.

15 years agoremove DISTLIST
fzielcke [Tue, 14 Apr 2009 16:17:10 +0000 (16:17 +0000)]
remove DISTLIST

15 years agoargs changelog should mention this too
fzielcke [Tue, 14 Apr 2009 16:15:42 +0000 (16:15 +0000)]
args changelog should mention this too

15 years agoForgot to delete stamp-h.in
fzielcke [Tue, 14 Apr 2009 16:12:01 +0000 (16:12 +0000)]
Forgot to delete stamp-h.in

15 years ago2009-04-14 Felix Zielcke <fzielcke@z-51.de>
fzielcke [Tue, 14 Apr 2009 16:11:26 +0000 (16:11 +0000)]
2009-04-14  Felix Zielcke  <fzielcke@z-51.de>

* configure: Remove.
* config.h.in: Likewise.
* DISTLIST: Likewise.
* conf/common.mk: Likewise.
* conf/i386-coreboot.mk: Likewise.
* conf/i386-efi.mk: Likewise.
* conf/i386-ieee1275.mk: Likewise.
* conf/i386.mk: Likewise.
* conf/i386-pc.mk: Likewise.
* conf/powerpc-ieee1275.mk: Likewise.
* conf/sparc64-ieee1275.mk: Likewise.
* conf/x86_64-efi.mk: Likewise.

* INSTALL: Remove the sentence that Ruby and autoconf are only required if you
develop on GRUB.

15 years ago * util/hostdisk.c (make_device_name): Fix buffer length
davem [Tue, 14 Apr 2009 09:07:25 +0000 (09:07 +0000)]
* util/hostdisk.c (make_device_name): Fix buffer length
calculations.

15 years ago2009-04-14 Felix Zielcke <fzielcke@z-51.de>
fzielcke [Tue, 14 Apr 2009 07:01:34 +0000 (07:01 +0000)]
2009-04-14  Felix Zielcke  <fzielcke@z-51.de>

* util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
<sys/param.h> and <sys/sysctl.h>.
(open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
to add 0x10 to `kern.geom.debugflags' if it's not already set, before
opening the device and reset them afterwards.

15 years ago2009-04-13 Pavel Roskin <proski@gnu.org>
proski [Tue, 14 Apr 2009 01:54:06 +0000 (01:54 +0000)]
2009-04-13  Pavel Roskin  <proski@gnu.org>

* conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
Reported by John Stanley <jpsinthemix@verizon.net>

15 years ago * kern/dl.c (grub_dl_load_file): Close file immediately when
davem [Mon, 13 Apr 2009 23:03:50 +0000 (23:03 +0000)]
* kern/dl.c (grub_dl_load_file): Close file immediately when
we are done using it.

15 years ago * util/hostdisk.c (make_device_name): Do not make any assumptions
davem [Mon, 13 Apr 2009 23:01:54 +0000 (23:01 +0000)]
* util/hostdisk.c (make_device_name): Do not make any assumptions
about the length of drive names.

15 years ago * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
davem [Mon, 13 Apr 2009 20:35:59 +0000 (20:35 +0000)]
* conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
(grub_fstest_SOURCES): Likewise.

15 years ago2009-04-13 Robert Millan <rmh@aybabtu.com>
robertmh [Mon, 13 Apr 2009 19:48:44 +0000 (19:48 +0000)]
2009-04-13  Robert Millan  <rmh@aybabtu.com>

        * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
        that name for menuentries when appropiate.

15 years agomove fi one line below
fzielcke [Mon, 13 Apr 2009 15:37:38 +0000 (15:37 +0000)]
move fi one line below

15 years ago2009-04-13 Felix Zielcke <fzielcke@z-51.de>
fzielcke [Mon, 13 Apr 2009 15:07:16 +0000 (15:07 +0000)]
2009-04-13  Felix Zielcke  <fzielcke@z-51.de>

* util/grub.d/10_freebsd.in: Add a missing `fi'.

15 years ago2009-04-13 Robert Millan <rmh@aybabtu.com>
robertmh [Mon, 13 Apr 2009 14:38:10 +0000 (14:38 +0000)]
2009-04-13  Robert Millan  <rmh@aybabtu.com>

        * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
        to Linux, simply abort telling the user it's no longer supported.

15 years ago2009-04-13 Felix Zielcke <fzielcke@z-51.de>
fzielcke [Mon, 13 Apr 2009 14:14:40 +0000 (14:14 +0000)]
2009-04-13  Felix Zielcke  <fzielcke@z-51.de>

* util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
doestn't exist.  Check also for /boot/kernel/kernel.gz.  Print
`freebsd_loadenv' only when devices.hints exist.

15 years ago2009-04-13 Pavel Roskin <proski@gnu.org>
proski [Mon, 13 Apr 2009 13:00:59 +0000 (13:00 +0000)]
2009-04-13  Pavel Roskin  <proski@gnu.org>

* term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.

15 years ago2009-04-13 Felix Zielcke <fzielcke@z-51.de>
fzielcke [Mon, 13 Apr 2009 11:45:20 +0000 (11:45 +0000)]
2009-04-13  Felix Zielcke  <fzielcke@z-51.de>

* util/i386/pc/grub-install.in (install_drive): Remove the BSD
partition number.
(grub_drive): Likewise.

15 years ago * include/grub/sparc64/ieee1275/loader.h: New file.
davem [Mon, 13 Apr 2009 07:08:10 +0000 (07:08 +0000)]
* include/grub/sparc64/ieee1275/loader.h: New file.
* include/grub/sparc64/ieee1275/memory.h: Likewise.
* include/grub/sparc64/kernel.h: Likewise.
* loader/sparc64/ieee1275/linux.c: Likewise.

15 years ago * kern/sparc64/ieee1275/ieee1275.c: New file.
davem [Mon, 13 Apr 2009 07:06:09 +0000 (07:06 +0000)]
* kern/sparc64/ieee1275/ieee1275.c: New file.
* include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
(grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
grub_ieee1275_alloc_physmem): Declare new exported functions.

15 years ago * kern/sparc64/ieee1275/init.c: Delete, replace with...
davem [Mon, 13 Apr 2009 07:02:46 +0000 (07:02 +0000)]
* kern/sparc64/ieee1275/init.c: Delete, replace with...
* kern/sparc64/ieee1275/crt0.S: assembler implementation.
* include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
(GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
GRUB_KERNEL_MACHINE_DATA_END): Define.
(grub_kernel_image_size, grub_total_module_size): Declare.

15 years ago * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
davem [Mon, 13 Apr 2009 06:40:34 +0000 (06:40 +0000)]
* disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
(OFDISK_HASH_SZ): Define.
(ofdisk_hash): New hash table.
(ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
(grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
instead of device phandle which is not unique.

15 years ago * genmk.rb: Add more flexible image type specification, also
davem [Mon, 13 Apr 2009 06:37:50 +0000 (06:37 +0000)]
* genmk.rb: Add more flexible image type specification, also
pass --strip-unneeded to objcopy.
* conf/i386-pc.rmk: Use *_FORMAT.
* conf/i386-pc.mk: Rebuilt.

15 years ago * configure.ac: Check for __bswapsi2 and__bswapdi2 using
davem [Mon, 13 Apr 2009 06:31:05 +0000 (06:31 +0000)]
* configure.ac: Check for __bswapsi2 and__bswapdi2 using
target compiler.

15 years ago * kern/misc.c (grub_ltoa): Fix cast when handling negative
davem [Sun, 12 Apr 2009 08:06:26 +0000 (08:06 +0000)]
* kern/misc.c (grub_ltoa): Fix cast when handling negative
values.  Noticed by Pavel Roskin.

15 years ago2009-04-12 Pavel Roskin <proski@gnu.org>
proski [Sun, 12 Apr 2009 04:33:18 +0000 (04:33 +0000)]
2009-04-12  Pavel Roskin  <proski@gnu.org>

         * configure.ac: Change the logic when we check for target tools.
         Do it when the target is specified and it's different from the
         specified value of the host.

15 years agoRegenerate with Autoconf 2.61 to match configure
proski [Sun, 12 Apr 2009 03:37:35 +0000 (03:37 +0000)]
Regenerate with Autoconf 2.61 to match configure

15 years agoRegenerate
proski [Sun, 12 Apr 2009 03:36:30 +0000 (03:36 +0000)]
Regenerate

15 years ago2009-04-11 Felix Zielcke <fzielcke@z-51.de>
fzielcke [Sat, 11 Apr 2009 18:46:12 +0000 (18:46 +0000)]
2009-04-11  Felix Zielcke  <fzielcke@z-51.de>

* util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
(grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
GNU/kFreeBSD. Check if a device is a character device. Use
DIOCGMEDIASIZE to get the size.
(convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
support for GNU/kFreeBSD.
(grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
is a character device instead of a block device. Add support for
FreeBSD device names.

* util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
is a character device instead of a block device.

* util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
is a character device instead of a block device.

15 years ago * kern/misc.c (grub_ltoa): New function.
davem [Sat, 11 Apr 2009 11:48:34 +0000 (11:48 +0000)]
* kern/misc.c (grub_ltoa): New function.
(grub_vsprintf): Use it to format 'long' integers.

15 years ago2009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
okuji [Sat, 11 Apr 2009 09:40:39 +0000 (09:40 +0000)]
2009-04-11  Andrey Shuvikov  <mr_hyro@yahoo.com>

    * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
    (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
    FreeBSD. Check if a device is a character device. Use
    DIOCGMEDIASIZE to get the size.
    (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
    support for FreeBSD.
    (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
    is a character device instead of a block device. Add support for
    FreeBSD device names.

    * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
    a character device instead of a block device.
    (grub_util_check_char_device): New function.

    * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
    a character device instead of a block device.

    * include/grub/util/getroot.h (grub_util_check_char_device): New
    prototype.

15 years agoMissed these in previous commits, sorry.
davem [Sat, 11 Apr 2009 08:33:35 +0000 (08:33 +0000)]
Missed these in previous commits, sorry.

15 years ago * include/grub/sparc64/ieee1275/boot.h: New file.
davem [Sat, 11 Apr 2009 08:31:10 +0000 (08:31 +0000)]
* include/grub/sparc64/ieee1275/boot.h: New file.
* boot/sparc64/ieee1275/boot.S: Likewise.
* boot/sparc64/ieee1275/diskboot.S: Likewise.

15 years ago * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
davem [Sat, 11 Apr 2009 08:24:49 +0000 (08:24 +0000)]
* conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
static libgcc.
* configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
* include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
function, if present.
(__bswapdi2): Likewise.

15 years ago * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
davem [Sat, 11 Apr 2009 03:09:17 +0000 (03:09 +0000)]
* kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
* kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
(grub_devalias_iterate): Likewise.

15 years ago * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
davem [Sat, 11 Apr 2009 03:07:58 +0000 (03:07 +0000)]
* disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
slots are of type grub_ieee1275_cell_t.
(grub_nand_read): Likewise.
* kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
macros are used to compare values in arg/ret block of the call.
(grub_ieee1275_finddevice, grub_ieee1275_get_property,
grub_ieee1275_next_property, grub_ieee1275_get_property_length,
grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
grub_ieee1275_instance_to_path, grub_ieee1275_write,
grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
grub_ieee1275_close, grub_ieee1275_set_property,
grub_ieee1275_set_color): All ieee1275 call arg slots are of type
grub_ieee1275_cell_t.
* kern/ieee1275/openfw.c (grub_map): Likewise.
* include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
grub_ieee1275_phandle_t): Define as grub_unit32_t type.

15 years ago2009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
phcoder [Fri, 10 Apr 2009 21:47:08 +0000 (21:47 +0000)]
2009-04-10  Vladimir Serbinenko  <phcoder@gmail.com>

UFS improvements

* fs/ufs.c (INODE_NBLOCKS): new definition
(struct grub_ufs_dirent): added fields for non-BSD dirents
(grub_ufs_get_file_block): fixed double indirect handling
(grub_ufs_lookup_symlink): use more robust way to determine whether
symlink is inline
(grub_ufs_find_file): support for non-BSD dirents
(grub_ufs_dir): support for non-BSD dirents

15 years ago2009-04-10 Bean <bean123ch@gnail.com>
bean [Fri, 10 Apr 2009 15:33:34 +0000 (15:33 +0000)]
2009-04-10  Bean  <bean123ch@gnail.com>

* include/grub/efi/api.h (grub_efi_configuration_table): Add packed
attribute, otherwise the size would be wrong for i386 platform.

* include/grub/pci.h (grub_pci_read_word): New inline function.
(grub_pci_read_byte): Likewise.
(grub_pci_write): Likewise.
(grub_pci_write_word): Likewise.
(grub_pci_write_byte): Likewise.

* include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.

* loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
(find_framebuf): Scan pci to locate the frame buffer address.

* commands/efi/fixvideo.c: New file.

* commands/efi/loadbios.c: Likewise.

* commands/memrw.c: Likewise.

* util/grub-dumpbios.in: Likewise.

* conf/common.rmk (grub-dumpbios): New utility.
(pkglib_MODULES): New module memrw.mod.
(memrw_mod_SOURCE): New macro.
(memrw_mod_CFLAGS): Likewise.
(memrw_mod_LDFLAGS): Likewise.

* conf/i386-efi.rmk (pkglig_MODULES): New module loadbios.mod and
fixvideo.mod.
(loadbios_mod_SOURCE): New macro.
(loadbios_mod_CFLAGS): Likewise.
(loadbios_mod_LDFLAGS): Likewise.
(fixvideo_mod_SOURCE): Likewise.
(fixvideo_mod_CFLAGS): Likewise.
(fixvideo_mod_LDFLAGS): Likewise.

* conf/x86_64.rmk (pkglig_MODULES): New module loadbios.mod and
fixvideo.mod.
(loadbios_mod_SOURCE): New macro.
(loadbios_mod_CFLAGS): Likewise.
(loadbios_mod_LDFLAGS): Likewise.
(fixvideo_mod_SOURCE): Likewise.
(fixvideo_mod_CFLAGS): Likewise.
(fixvideo_mod_LDFLAGS): Likewise.

15 years ago2009-04-08 Felix Zielcke <fzielcke@z-51.de>
fzielcke [Wed, 8 Apr 2009 15:03:50 +0000 (15:03 +0000)]
2009-04-08  Felix Zielcke  <fzielcke@z-51.de>

        * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.

15 years ago * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
davem [Tue, 7 Apr 2009 23:49:27 +0000 (23:49 +0000)]
* kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.

15 years ago * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
davem [Tue, 7 Apr 2009 23:48:28 +0000 (23:48 +0000)]
* kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
support for R_SPARC_OLO10 relocations.  Fix compile warning for
R_SPARC_WDISP30 case.

15 years ago2009-04-06 Pavel Roskin <proski@gnu.org>
proski [Tue, 7 Apr 2009 00:48:57 +0000 (00:48 +0000)]
2009-04-06  Pavel Roskin  <proski@gnu.org>

* include/grub/misc.h (ARRAY_SIZE): New macro.
* include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
New macro.
* loader/i386/linux.c (allocate_pages): Use free_pages().
(grub_linux_unload): Don't use free_pages().
(grub_linux_boot): Prevent accessing linux_vesafb_modes with a
wrong index.  Treat all other modes as text modes.
(grub_cmd_linux): Initialize vid_mode unconditionally to
GRUB_LINUX_VID_MODE_NORMAL.  Recognize and support "vga=ask".

15 years ago2009-04-06 Pavel Roskin <proski@gnu.org>
proski [Mon, 6 Apr 2009 16:15:36 +0000 (16:15 +0000)]
2009-04-06  Pavel Roskin  <proski@gnu.org>

* commands/help.c (print_command_help): Use cmd->prio, not
cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.

15 years ago2009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
phcoder [Mon, 6 Apr 2009 09:51:01 +0000 (09:51 +0000)]
2009-04-06  Vladimir Serbinenko  <phcoder@gmail.com>

Parttool

* parttool/pcpart.c: new file
* commands/parttool.c: likewise
* conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
(parttool_mod_SOURCES): new variable
(parttool_mod_CFLAGS): likewise
(parttool_mod_LDFLAGS): likewise
(pcpart_mod_SOURCES): likewise
(pcpart_mod_CFLAGS): likewise
(pcpart_mod_LDFLAGS): likewise
* conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
and parttool/pcpart.c
* conf/i386-efi.rmk: likewise
* conf/i386-ieee1275.rmk: likewise
* conf/i386-pc.rmk: likewise
* conf/powerpc-ieee1275.rmk: likewise
* conf/sparc64-ieee1275.rmk: likewise
* conf/x86_64-ieee1275.rmk: likewise

15 years ago2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
phcoder [Sun, 5 Apr 2009 20:19:05 +0000 (20:19 +0000)]
2009-04-05  Vladimir Serbinenko  <phcoder@gmail.com>

Support for mtime and further expandability of dir command

* include/grub/lib/datetime.h: moved to ...
* include/grub/datetime.h: ... moved here and added
declaration of grub_unixtime2datetime. All users updated
* include/grub/fs.h: new syntax for dir and mtime functionin
struct grub_fs
* include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
and GRUB_FSHELP_FLAGS_MASK
* commands/ls.c (grub_ls_list_files): Write mtime in long format
* fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
(grub_ext2_mtime): new function
* fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
(grub_hfsplus_mtime): new function
* fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
(GRUB_UFS_ATTR_FILE): likewise
(GRUB_UFS_ATTR_LNK): likewise
(struct grub_ufs_sblock): new fields mtime
(grub_ufs_read_inode): new parameter to read inode to a separate buffer
all users updated
(grub_ufs_dir): mtime support
(grub_ufs_mtime): new function
* fs/affs.c (grub_affs_dir): use new dir syntax
* fs/afs.c (grub_afs_dir): likewise
* fs/cpio.c (grub_cpio_dir): likewise
* fs/fat.c (grub_fat_find_dir): likewise
* fs/hfs.c (grub_hfs_dir): likewise
* fs/iso9660.c (grub_iso9660_dir): likewise
* fs/jfs.c (grub_jfs_dir): likewise
* fs/minix.c (grub_minix_dir): likewise
* fs/ntfs.c (grub_ntfs_dir): likewise
* fs/reiserfs.c (grub_reiserfs_dir): likewise
* fs/sfs.c (grub_sfs_dir): likewise
* fs/xfs.c (grub_xfs_dir): likewise
* util/hostfs.c (grub_hostfs_dir): likewise
* lib/datetime.c: moved to ...
* normal/datetime.c: ... moved here
(grub_unixtime2datetime): new function
* kern/rescue.c (grub_rescue_print_files): use new dir syntax
* normal/completition.c (iterate_dir): use new dir syntax
* normal/misc.c (grub_normal_print_device_info): tell the
last modification time of a volume
* kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
* conf/common.rmk: added lib/datetime.c to ls.mod
* conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
(normal_mod_SOURCES): likewise
(datetime_mod_SOURCES): Removed lib/datetime.c
* conf/i386-efi.rmk: likewise
* conf/i386-ieee1275.rmk: likewise
* conf/i386-pc.rmk: likewise
* conf/powerpc-ieee1275.rmk: likewise
* conf/sparc64-ieee1275.rmk: likewise
* conf/x86_64-efi.rmk: likewise

15 years ago2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
phcoder [Sun, 5 Apr 2009 15:34:30 +0000 (15:34 +0000)]
2009-04-05  Vladimir Serbinenko  <phcoder@gmail.com>

Trim trailing spaces in FAT label and support mtools-like labels

* fs/fat.c (grub_fat_iterate_dir): New function based
on grub_fat_find_dir
(grub_fat_find_dir): use grub_fat_iterate_dir
(grub_fat_label): likewise

15 years ago2009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
phcoder [Sat, 4 Apr 2009 12:28:33 +0000 (12:28 +0000)]
2009-04-04  Vladimir Serbinenko  <phcoder@gmail.com>

* conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
and command.h
remove extraneous kernel_elf_HEADERS

15 years agoUndo r2063.
okuji [Sat, 4 Apr 2009 09:22:35 +0000 (09:22 +0000)]
Undo r2063.

15 years ago2009-04-04 Bean <bean123ch@gnail.com>
bean [Sat, 4 Apr 2009 08:08:01 +0000 (08:08 +0000)]
2009-04-04  Bean  <bean123ch@gnail.com>

* include/grub/efi/api.h (grub_efi_configuration_table): Add packed
attribute, otherwise the size would be wrong for i386 platform.

* include/grub/pci.h (grub_pci_read_word): New inline function.
(grub_pci_read_byte): Likewise.
(grub_pci_write): Likewise.
(grub_pci_write_word): Likewise.
(grub_pci_write_byte): Likewise.

* include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.

* loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
(find_framebuf): Scan pci to locate the frame buffer address.

* commands/efi/fixvideo.c: New file.

* commands/efi/loadbios.c: Likewise.

* commands/memrw.c: Likewise.

* util/grub-dumpbios.in: Likewise.

* conf/common.rmk (grub-dumpbios): New utility.
(pkglib_MODULES): New module memrw.mod.
(memrw_mod_SOURCE): New macro.
(memrw_mod_CFLAGS): Likewise.
(memrw_mod_LDFLAGS): Likewise.

* conf/i386-efi.rmk (pkglig_MODULES): New module loadbios.mod and
fixvideo.mod.
(loadbios_mod_SOURCE): New macro.
(loadbios_mod_CFLAGS): Likewise.
(loadbios_mod_LDFLAGS): Likewise.
(fixvideo_mod_SOURCE): Likewise.
(fixvideo_mod_CFLAGS): Likewise.
(fixvideo_mod_LDFLAGS): Likewise.

* conf/x86_64.rmk (pkglig_MODULES): New module loadbios.mod and
fixvideo.mod.
(loadbios_mod_SOURCE): New macro.
(loadbios_mod_CFLAGS): Likewise.
(loadbios_mod_LDFLAGS): Likewise.
(fixvideo_mod_SOURCE): Likewise.
(fixvideo_mod_CFLAGS): Likewise.
(fixvideo_mod_LDFLAGS): Likewise.

15 years ago2009-04-04 Bean <bean123ch@gnail.com>
bean [Sat, 4 Apr 2009 07:42:13 +0000 (07:42 +0000)]
2009-04-04  Bean  <bean123ch@gnail.com>

* include/grub/util/misc.h: Add dummy function fsync for mingw.

* util/misc.c: Likewise.

15 years ago2009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
okuji [Fri, 3 Apr 2009 20:19:36 +0000 (20:19 +0000)]
2009-04-04  Yoshinori K. Okuji  <okuji@enbug.org>

    * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
    instead of grub_printf.

15 years ago2009-04-03 Robert Millan <rmh@aybabtu.com>
robertmh [Fri, 3 Apr 2009 20:03:39 +0000 (20:03 +0000)]
2009-04-03  Robert Millan  <rmh@aybabtu.com>

        * loader/i386/linux.c (grub_linux_setup_video): Fill
        `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
        values from `mode info' structure instead of hardcoded
        values.

15 years ago2009-04-01 Pavel Roskin <proski@gnu.org>
proski [Wed, 1 Apr 2009 16:17:20 +0000 (16:17 +0000)]
2009-04-01  Pavel Roskin  <proski@gnu.org>

* Makefile.in: Remove all references to MODULE_LDFLAGS, it's
unused now.
* genmk.rb: Likewise.
* configure.ac: Likewise.

15 years ago2009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
proski [Wed, 1 Apr 2009 16:08:42 +0000 (16:08 +0000)]
2009-04-01  Manoel Abranches  <mrabran@linux.vnet.ibm.com>

* aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
TARGET_LDFLAGS.  This corrects a problem with grub-mkelfimage.

15 years ago2009-04-01 David S. Miller <davem@davemloft.net>
robertmh [Wed, 1 Apr 2009 13:01:05 +0000 (13:01 +0000)]
2009-04-01  David S. Miller  <davem@davemloft.net>

* normal/sparc64/setjmp.S: Fix setjmp implementation.
* include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
(grub_setjmp): Mark with 'returns_twice' attribute.
* include/grub/i386/setjmp.h (grub_setjmp): Likewise
* include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
* include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.

15 years ago2009-04-01 Robert Millan <rmh@aybabtu.com>
robertmh [Wed, 1 Apr 2009 01:26:58 +0000 (01:26 +0000)]
2009-04-01  Robert Millan  <rmh@aybabtu.com>

        Reapply fix from 2008-07-28 which was accidentally reverted; also
        perform the same fix to a similar check in same function.

        * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
        with the same number are found, just use issue a warning with
        grub_dprintf(), as this error has been reported to be non-fatal.

15 years ago2009-03-31 Pavel Roskin <proski@gnu.org>
proski [Wed, 1 Apr 2009 01:09:30 +0000 (01:09 +0000)]
2009-03-31  Pavel Roskin  <proski@gnu.org>

* aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
for cross-compilation.

15 years ago2009-03-30 Robert Millan <rmh@aybabtu.com>
robertmh [Wed, 1 Apr 2009 00:04:50 +0000 (00:04 +0000)]
2009-03-30  Robert Millan  <rmh@aybabtu.com>

        Fix i386-ieee1275 build.

        * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
        Remove declaration.

15 years ago2009-03-30 Pavel Roskin <proski@gnu.org>
proski [Tue, 31 Mar 2009 00:22:08 +0000 (00:22 +0000)]
2009-03-30  Pavel Roskin  <proski@gnu.org>

* fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
(grub_hfs_cmp_catkeys): ... this.  Don't assume strings to be
zero-terminated, rely only on the strlen value.  Fix comparison
of strings differing in length.

15 years ago2009-03-30 Robert Millan <rmh@aybabtu.com>
robertmh [Mon, 30 Mar 2009 22:22:31 +0000 (22:22 +0000)]
2009-03-30  Robert Millan  <rmh@aybabtu.com>

        * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
        checking for abi version.  Improve error messages on BIOS to notify
        user about `linux16' command.

15 years agoFix indentation.
robertmh [Mon, 30 Mar 2009 22:20:16 +0000 (22:20 +0000)]
Fix indentation.

15 years ago2009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
phcoder [Sun, 29 Mar 2009 21:21:19 +0000 (21:21 +0000)]
2009-03-29  Vladimir Serbinenko  <phcoder@gmail.com>

      Leak fixes

      * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
      in case of collision
      * disk/scsi.c (grub_scsi_open): free scsi in case of error

15 years ago2009-03-29 Robert Millan <rmh@aybabtu.com>
robertmh [Sun, 29 Mar 2009 19:52:35 +0000 (19:52 +0000)]
2009-03-29  Robert Millan  <rmh@aybabtu.com>

        * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
        set `vid_mode' accordingly.
        (grub_linux_boot): Process `vid_mode' and set video mode.

15 years ago2009-03-29 Robert Millan <rmh@aybabtu.com>
robertmh [Sun, 29 Mar 2009 02:23:12 +0000 (02:23 +0000)]
2009-03-29  Robert Millan  <rmh@aybabtu.com>

        * util/grub.d/10_linux.in (linux_entry): New function.
        Factorize generation of Linux boot entries.

15 years ago2009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
okuji [Sat, 28 Mar 2009 19:58:15 +0000 (19:58 +0000)]
2009-03-29  Yoshinori K. Okuji  <okuji@enbug.org>

    Make the format of Environment Block plain text. The boot loader
    part is not tested well yet.

    * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
    (buffer): Removed.
    (envblk): Likewise.
    (usage): Remove "info" and "clear". Add "unset". Update the
    description of "set", as this does not delete variables any
    longer.
    (create_envblk_file): Complete rewrite.
    (open_envblk_file): Likewise.
    (cmd_info): Removed.
    (cmd_list): Likewise.
    (cmd_set): Likewise.
    (cmd_clear): Likewise.
    (list_variables): New function.
    (write_envblk): Likewise.
    (set_variables): Likewise.
    (unset_variables): Likewise.
    (main): Complete rewrite.

    * commands/loadenv.c (buffer): Removed.
    (envblk): Likewise.
    (open_envblk_file): New function.
    (read_envblk_file): Complete rewrite.
    (grub_cmd_load_env): Likewise.
    (grub_cmd_list_env): Likewise.
    (struct blocklist): New struct.
    (free_blocklists): New function.
    (check_blocklists): Likewise.
    (write_blocklists): Likewise.
    (grub_cmd_save_env): Complete rewrite.

    * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
    a plain text signature.
    (GRUB_ENVBLK_MAXLEN): Removed.
    (struct grub_envblk): Complete rewrite.
    (grub_envblk_find): Removed.
    (grub_envblk_insert): Likewise.
    (grub_envblk_open): New prototype.
    (grub_envblk_set): Likewise.
    (grub_envblk_delete): Put const to VALUE.
    (grub_envblk_iterate): Put const to NAME and VALUE.
    (grub_envblk_close): New prototype.
    (grub_envblk_buffer): New inline function.
    (grub_envblk_size): Likewise.

    * lib/envblk.c: Include grub/mm.h.
    (grub_env_find): Removed.
    (grub_envblk_open): New function.
    (grub_envblk_close): Likewise.
    (escaped_value_len): Likewise.
    (find_next_line): Likewise.
    (grub_envblk_insert): Removed.
    (grub_envblk_set): New function.
    (grub_envblk_delete): Complete rewrite.
    (grub_envblk_iterate): Likewise.

15 years ago2009-03-28 Robert Millan <rmh@aybabtu.com>
robertmh [Sat, 28 Mar 2009 12:53:16 +0000 (12:53 +0000)]
2009-03-28  Robert Millan  <rmh@aybabtu.com>

        * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
        (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
        variables.  Use 16-bit loader.
        (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
        loader.
        * kern/i386/loader.S (grub_linux_boot): Rename to ...
        (grub_linux16_boot): ... this.  Update all users.
        * loader/i386/linux.c (grub_linux32_boot): Rename to ...
        (grub_linux_boot): ... this.  Update all users.

        * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
        (GRUB_MOD_INIT(linux16)): ... this.  Rename `linux' and `initrd'
        commands to `linux16' and `initrd16'.
        (GRUB_MOD_FINI(linux)): Rename to ...
        (GRUB_MOD_FINI(linux16)): ... this.

15 years agotypos
proski [Tue, 24 Mar 2009 14:15:07 +0000 (14:15 +0000)]
typos

15 years ago2009-03-24 Pavel Roskin <proski@gnu.org>
proski [Tue, 24 Mar 2009 14:01:23 +0000 (14:01 +0000)]
2009-03-24  Pavel Roskin  <proski@gnu.org>

* genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
not just for compilation.