]> git.ipfire.org Git - thirdparty/grub.git/log
thirdparty/grub.git
16 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.

16 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.

16 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.

16 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.

16 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.

16 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

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

16 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.

16 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.

16 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.

16 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.

16 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.

16 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.

16 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.

16 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.

16 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

16 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.

16 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.

16 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.

16 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.

16 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".

16 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.

16 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

16 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

16 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

16 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

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

16 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.

16 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.

16 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.

16 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.

16 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.

16 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.

16 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.

16 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.

16 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.

16 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.

16 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.

16 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.

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

16 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

16 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.

16 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.

16 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.

16 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.

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

16 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.

16 years ago2009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
robertmh [Sun, 22 Mar 2009 12:28:00 +0000 (12:28 +0000)] 
2009-03-22  Vladimir Serbinenko  <phcoder@gmail.com>

        Move multiboot helper out of kernel

        * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
        `loader/i386/multiboot_helper.S'.
        * conf/i386-coreboot.rmk: Likewise
        * conf/i386-ieee1275.rmk: Likewise

        * kern/i386/loader.S: Move multiboot helpers from here...
        * loader/i386/multiboot_helper.S: ...moved here
        * include/grub/i386/loader.h: Move declarations of multiboot
        helpers from here...
        * include/grub/i386/multiboot.h: ...moved here
        * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h

16 years ago2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
okuji [Sun, 22 Mar 2009 10:45:06 +0000 (10:45 +0000)] 
2009-03-22  Yoshinori K. Okuji  <okuji@enbug.org>

    * kern/env.c (grub_env_context_open): Added an argument to specify
    whether a new context inherits exported variables from current
    one. This is useful when making a sandbox to interpret a config
    file.
    All callers updated.

    * include/grub/env.h (grub_env_context_open): Updated the prototype.

16 years ago2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
okuji [Sun, 22 Mar 2009 10:38:19 +0000 (10:38 +0000)] 
2009-03-22  Yoshinori K. Okuji  <okuji@enbug.org>

    * kern/env.c (grub_env_context_close): Fix memory leaks.

16 years ago2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
okuji [Sun, 22 Mar 2009 10:05:31 +0000 (10:05 +0000)] 
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):

16 years ago2009-03-22 Pavel Roskin <proski@gno.org>
proski [Sun, 22 Mar 2009 00:37:49 +0000 (00:37 +0000)] 
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.

16 years ago2009-03-22 Pavel Roskin <proski@gno.org>
proski [Sun, 22 Mar 2009 00:31:30 +0000 (00:31 +0000)] 
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.

16 years ago2009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
robertmh [Sat, 21 Mar 2009 23:02:12 +0000 (23:02 +0000)] 
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.

16 years ago2009-03-21 Bean <bean123ch@gmail.com>
bean [Sat, 21 Mar 2009 08:39:59 +0000 (08:39 +0000)] 
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.

16 years ago2009-03-21 Bean <bean123ch@gmail.com>
bean [Sat, 21 Mar 2009 07:48:28 +0000 (07:48 +0000)] 
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.

16 years ago2009-03-21 Bean <bean123ch@gmail.com>
bean [Sat, 21 Mar 2009 07:35:04 +0000 (07:35 +0000)] 
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.

16 years ago2009-03-18 Michel Dänzer <michel@daenzer.net>
fzielcke [Thu, 19 Mar 2009 09:36:52 +0000 (09:36 +0000)] 
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.

16 years ago2009-03-18 Robert Millan <rmh@aybabtu.com>
robertmh [Wed, 18 Mar 2009 10:21:28 +0000 (10:21 +0000)] 
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.

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

        Fix build on powerpc.
        * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.

16 years ago2009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
cbennett [Thu, 12 Mar 2009 18:57:42 +0000 (18:57 +0000)] 
2009-03-12  Vladimir Serbinenko  <phcoder@gmail.com>

* term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
background image command.

16 years ago2009-03-12 Colin D Bennett <colin@gibibit.com>
cbennett [Thu, 12 Mar 2009 18:30:44 +0000 (18:30 +0000)] 
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.

16 years ago2009-03-11 Pavel Roskin <proski@gnu.org>
proski [Wed, 11 Mar 2009 21:51:16 +0000 (21:51 +0000)] 
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.

16 years ago2009-03-11 Robert Millan <rmh@aybabtu.com>
robertmh [Wed, 11 Mar 2009 21:27:01 +0000 (21:27 +0000)] 
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.

16 years ago2009-03-11 Felix Zielcke <fzielcke@z-51.de>
fzielcke [Wed, 11 Mar 2009 08:25:22 +0000 (08:25 +0000)] 
2009-03-11  Felix Zielcke  <fzielcke@z-51.de>

* conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
`kern/handler.c'.

16 years ago2009-03-11 Robert Millan <rmh@aybabtu.com>
robertmh [Tue, 10 Mar 2009 23:47:51 +0000 (23:47 +0000)] 
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'.

16 years agoforgot to run ./autogen.sh
fzielcke [Mon, 9 Mar 2009 09:50:50 +0000 (09:50 +0000)] 
forgot to run ./autogen.sh

16 years ago2009-03-09 Felix Zielcke <fzielcke@z-51.de>
fzielcke [Mon, 9 Mar 2009 09:02:52 +0000 (09:02 +0000)] 
2009-03-09  Felix Zielcke  <fzielcke@z-51.de>

* conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
`fs/ext2.c'.

16 years ago2009-03-08 Robert Millan <rmh@aybabtu.com>
robertmh [Sun, 8 Mar 2009 12:46:27 +0000 (12:46 +0000)] 
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.

16 years ago2009-03-07 Bean <bean123ch@gmail.com>
bean [Sat, 7 Mar 2009 10:50:43 +0000 (10:50 +0000)] 
2009-03-07  Bean  <bean123ch@gmail.com>

* loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
allocation.

16 years ago2009-03-06 Robert Millan <rmh@aybabtu.com>
robertmh [Fri, 6 Mar 2009 19:10:23 +0000 (19:10 +0000)] 
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.

16 years agoFix typos, spacing
proski [Thu, 5 Mar 2009 05:23:58 +0000 (05:23 +0000)] 
Fix typos, spacing

16 years ago2009-03-04 Robert Millan <rmh@aybabtu.com>
robertmh [Wed, 4 Mar 2009 22:00:41 +0000 (22:00 +0000)] 
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'.

16 years agofix date of previous changelog entry
fzielcke [Wed, 4 Mar 2009 14:49:44 +0000 (14:49 +0000)] 
fix date of previous changelog entry

16 years ago2009-02-03 Felix Zielcke <fzielcke@z-51.de>
fzielcke [Wed, 4 Mar 2009 14:08:05 +0000 (14:08 +0000)] 
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.

16 years ago2009-03-04 Felix Zielcke <fzielcke@z-51.de>
fzielcke [Wed, 4 Mar 2009 12:45:41 +0000 (12:45 +0000)] 
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.

16 years agoargs forgot Changelog entry in previous commit
fzielcke [Wed, 4 Mar 2009 12:44:18 +0000 (12:44 +0000)] 
args forgot Changelog entry in previous commit

16 years ago2009-03-04 Felix Zielcke <fzielcke@z-51.de>
fzielcke [Wed, 4 Mar 2009 10:25:31 +0000 (10:25 +0000)] 
2009-03-04  Felix Zielcke  <fzielcke@z-51.de>

* util/misc.c: Include <time.h>.
(grub_millisleep): New function.

16 years ago2009-03-04 Bean <bean123ch@gmail.com>
bean [Wed, 4 Mar 2009 05:56:31 +0000 (05:56 +0000)] 
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.

16 years ago2009-03-03 Robert Millan <rmh@aybabtu.com>
robertmh [Tue, 3 Mar 2009 19:00:41 +0000 (19:00 +0000)] 
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.

16 years ago2009-03-01 Bean <bean123ch@gmail.com>
bean [Sun, 1 Mar 2009 17:57:57 +0000 (17:57 +0000)] 
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.

16 years ago2009-03-01 Bean <bean123ch@gmail.com>
bean [Sun, 1 Mar 2009 17:51:44 +0000 (17:51 +0000)] 
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.

16 years ago2009-02-27 Robert Millan <rmh@aybabtu.com>
robertmh [Fri, 27 Feb 2009 23:04:46 +0000 (23:04 +0000)] 
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).

16 years ago2009-02-27 Robert Millan <rmh@aybabtu.com>
robertmh [Fri, 27 Feb 2009 21:37:07 +0000 (21:37 +0000)] 
2009-02-27  Robert Millan  <rmh@aybabtu.com>

        * util/grub.d/10_linux.in: Rename "single-user mode" to
        "recovery mode".

16 years ago2009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
robertmh [Fri, 27 Feb 2009 21:27:01 +0000 (21:27 +0000)] 
2009-02-27  Vladimir Serbinenko  <phcoder@gmail.com>

        Don't leak in SCSI code.
        * disk/scsi.c (grub_scsi_close): free `scsi'.

16 years ago2009-02-27 Robert Millan <rmh@aybabtu.com>
robertmh [Fri, 27 Feb 2009 21:19:00 +0000 (21:19 +0000)] 
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.

16 years ago2009-02-27 Robert Millan <rmh@aybabtu.com>
robertmh [Fri, 27 Feb 2009 21:01:25 +0000 (21:01 +0000)] 
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.

16 years ago2009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
robertmh [Fri, 27 Feb 2009 19:50:53 +0000 (19:50 +0000)] 
2009-02-27  Krzysztof Smiechowicz <deadwood@wp.pl>

        * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
        b-tree.

16 years ago2009-02-27 Robert Millan <rmh@aybabtu.com>
robertmh [Fri, 27 Feb 2009 19:33:38 +0000 (19:33 +0000)] 
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).

16 years ago2009-02-24 Bean <bean123ch@gmail.com>
bean [Tue, 24 Feb 2009 13:19:46 +0000 (13:19 +0000)] 
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.

16 years ago2009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
chaac [Sun, 22 Feb 2009 21:55:49 +0000 (21:55 +0000)] 
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.

16 years ago2009-02-22 Robert Millan <rmh@aybabtu.com>
robertmh [Sun, 22 Feb 2009 00:44:22 +0000 (00:44 +0000)] 
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.

16 years ago2009-02-21 Robert Millan <rmh@aybabtu.com>
robertmh [Sat, 21 Feb 2009 14:55:06 +0000 (14:55 +0000)] 
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.

16 years ago2009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
chrfranke [Sat, 14 Feb 2009 19:24:31 +0000 (19:24 +0000)] 
2009-02-14  Vladimir Serbinenko  <phcoder@gmail.com>

Corrected wrong declaration

* kern/disk.c: corrected declaration of grub_disk_ata_pass_through.

16 years ago2009-02-14 Christian Franke <franke@computer.org>
chrfranke [Sat, 14 Feb 2009 17:26:35 +0000 (17:26 +0000)] 
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.

16 years ago2009-02-14 Christian Franke <franke@computer.org>
chrfranke [Sat, 14 Feb 2009 16:02:12 +0000 (16:02 +0000)] 
2009-02-14  Christian Franke  <franke@computer.org>

* gendistlist.sh: Ignore `.svn' directories.

16 years ago2009-02-14 Felix Zielcke <fzielcke@z-51.de>
fzielcke [Sat, 14 Feb 2009 14:38:50 +0000 (14:38 +0000)] 
2009-02-14  Felix Zielcke  <fzielcke@z-51.de>

* fs/fat.c: Add 2009 to Copyright line.

16 years ago2009-02-14 Christian Franke <franke@computer.org>
chrfranke [Sat, 14 Feb 2009 12:57:55 +0000 (12:57 +0000)] 
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.

16 years agoRegenerate
proski [Fri, 13 Feb 2009 20:26:56 +0000 (20:26 +0000)] 
Regenerate

16 years ago2009-02-13 Colin D Bennett <colin@gibibit.com>
cbennett [Fri, 13 Feb 2009 20:06:27 +0000 (20:06 +0000)] 
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.