proski
4246b8a9e8
2009-05-13 Javier Martín <lordhabbit@gmail.com>
...
* commands/i386/pc/drivemap.c: New file - implement drivemap
command.
* commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
* conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
2009-05-14 01:23:49 +00:00
proski
6f6a8b2869
2009-05-13 Pavel Roskin <proski@gnu.org>
...
* util/i386/pc/grub-setup.c (setup): Remove unused variable
embedding_area_exists.
2009-05-13 21:28:25 +00:00
robertmh
59978c8ae7
2009-05-13 Robert Millan <rmh.grub@aybabtu.com>
...
Improve warning messages for cases where there's no embedding area,
or when it is too small (or core.img too large).
2009-05-13 21:13:11 +00:00
robertmh
667712d716
fix indentation for previous commit
2009-05-13 21:01:26 +00:00
robertmh
15fbf4c442
2009-05-13 Robert Millan <rmh.grub@aybabtu.com>
...
* util/i386/pc/grub-setup.c (setup): Restructure code flow to make
it easier to understand / work with.
2009-05-13 20:59:45 +00:00
proski
0ab3a9a46d
2009-05-13 Pavel Roskin <proski@gnu.org>
...
* loader/i386/pc/multiboot2.c: Add necessary includes for
grub_multiboot2_real_boot().
2009-05-13 20:52:35 +00:00
proski
a2c8c5f8f6
2009-05-13 Pavel Roskin <proski@gnu.org>
...
* fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
PX record is always little-endian. We only need the lower 2
bytes of the mode.
2009-05-13 20:09:09 +00:00
proski
faec96afc8
2009-05-13 Pavel Roskin <proski@gnu.org>
...
* fs/cpio.c: Use the same name "struct head" for tar and cpio to
facilitate code reuse.
(grub_cpio_mount): Use "struct head", not a char buffer. This
fixes a warning reported by gcc 4.4.
2009-05-13 19:16:55 +00:00
proski
238e871fff
2009-05-13 Pavel Roskin <proski@gnu.org>
...
* kernel/disk.c (grub_disk_read): Use void pointer for the
buffer.
(grub_disk_write): Use const void pointer for the buffer.
Adjust all callers. Remove unnecessary casts.
2009-05-13 18:58:38 +00:00
robertmh
901d2f0c27
2009-05-10 Robert Millan <rmh.grub@aybabtu.com>
...
* util/i386/pc/grub-install.in: Update copyright year.
2009-05-10 15:43:58 +00:00
phcoder
2eac4c1611
2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
...
gptsync
* commands/gptsync.c: new file
* conf/common.rmk (pkglib_MODULES): add gptsync.mod
(gptsync_mod_SOURCES): new variable
(gptsync_mod_CFLAGS): likewise
(gptsync_mod_LDFLAGS): likewise
* include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
new definition
(GRUB_PC_PARTITION_TYPE_HFS): likewise
* conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
* conf/i386-ieee1275.rmk: likewise
* conf/i386-pc.rmk: likewise
* conf/powerpc-ieee1275.rmk: likewise
2009-05-09 11:04:08 +00:00
phcoder
b4ba690abd
2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
...
Fixed grub-emu
* kern/dl.c (grub_dl_ref): omit when compiling grub-emu
(grub_dl_ref): likewise
2009-05-09 10:58:43 +00:00
robertmh
317e1a44b5
2009-05-08 Robert Millan <rmh.grub@aybabtu.com>
...
* util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
split in two functions (one for msdos and one for gpt).
2009-05-08 19:48:54 +00:00
proski
752473c2b0
2009-05-08 Pavel Roskin <proski@gnu.org>
...
* disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
not modified.
2009-05-08 19:29:04 +00:00
proski
041b8094ac
2009-05-08 Pavel Roskin <proski@gnu.org>
...
* disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
Initialize them with -1. Add sanity check for bad1. Eliminate
nerr variable.
2009-05-08 19:21:26 +00:00
davem
172800ce74
* util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
2009-05-08 09:43:54 +00:00
robertmh
29aa5e8163
2009-05-06 Robert Millan <rmh.grub@aybabtu.com>
...
* util/i386/pc/grub-setup.c (setup): Fix check for embed region
existance.
2009-05-06 11:56:17 +00:00
fzielcke
1905c57b0e
2009-05-05 Felix Zielcke <fzielcke@z-51.de>
...
* conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
`normal/autofs.c'.
2009-05-05 19:32:27 +00:00
fzielcke
96613b6258
2009-05-05 Felix Zielcke <fzielcke@z-51.de>
...
* conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
`kern/rescue_reader.c' and `kern/rescue_parser.c'.
2009-05-05 19:28:28 +00:00
davem
eef73c8a73
* util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
2009-05-05 18:54:36 +00:00
proski
119494b506
2009-05-05 Pavel Roskin <proski@gnu.org>
...
* include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
of grub_dl_ref() and grub_dl_unref().
* commands/parttool.c: Remove preprocessor conditionals around
grub_dl_ref() and grub_dl_unref().
* fs/affs.c: Likewise.
* fs/afs.c: Likewise.
* fs/cpio.c: Likewise.
* fs/ext2.c: Likewise.
* fs/fat.c: Likewise.
* fs/hfs.c: Likewise.
* fs/hfsplus.c: Likewise.
* fs/iso9660.c: Likewise.
* fs/jfs.c: Likewise.
* fs/minix.c: Likewise.
* fs/ntfs.c: Likewise.
* fs/reiserfs.c: Likewise.
* fs/sfs.c: Likewise.
* fs/udf.c: Likewise.
* fs/ufs.c: Likewise.
* fs/xfs.c: Likewise.
* include/grub/dl.h: Likewise.
* loader/xnu.c: Likewise.
2009-05-05 16:36:58 +00:00
proski
de5fd76e95
2009-05-04 Pavel Roskin <proski@gnu.org>
...
* commands/acpi.c: Remove unused variable my_mod.
* partmap/amiga.c: Likewise.
* partmap/apple.c: Likewise.
* partmap/gpt.c: Likewise.
* partmap/pc.c: Likewise.
* partmap/sun.c: Likewise.
* term/gfxterm.c: Likewise.
* term/i386/pc/vesafb.c: Likewise.
* term/i386/pc/vga.c: Likewise.
2009-05-04 23:33:34 +00:00
davem
67e23c9004
* disk/ieee1275/ofdisk.c (compute_dev_path): New.
...
(grub_ofdisk_open): Use it to un-escape "," characters.
* kern/disk.c (find_part_sep): New.
(grub_disk_open): Use it to find the first non-escaped ','
character in the disk name.
* util/ieee1275/devicemap.c (escape_of_path): New.
(grub_util_emit_devicemap_entry): Use it.
* util/sparc64/ieee1275/grub-install.in: Update script to
strip partition specifiers properly by not triggering on
'\' escaped ',' characters.
2009-05-04 23:13:53 +00:00
davem
9554b15eac
* disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
...
devices, and do not traverse down under controller nodes.
2009-05-04 23:05:12 +00:00
davem
8aadec43ee
* conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
2009-05-04 22:53:23 +00:00
davem
983598adde
* kern/ieee1275/openfw.c (grub_children_iterate): Fix string
...
pointer args to grub_ieee1275_get_property().
2009-05-04 22:46:55 +00:00
robertmh
74bfdd2f77
2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
...
* include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
to 0x300.
* loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
resolutions.
(linux_vesafb_modes): Add a lot of additional modes to the list (based
on documentation from Wikipedia).
2009-05-04 20:21:33 +00:00
proski
4241d2b13a
2009-05-04 Pavel Roskin <proski@gnu.org>
...
* disk/ata.c: Spelling fixes.
* disk/raid.c: Likewise.
* disk/usbms.c: Likewise.
* disk/dmraid_nvidia.c: Likewise.
* kern/ieee1275/openfw.c: Likewise.
* kern/ieee1275/init.c: Likewise.
* kern/ieee1275/cmain.c: Likewise.
* boot/i386/pc/cdboot.S: Likewise.
* video/readers/png.c: Likewise.
* video/i386/pc/vbe.c: Likewise.
* fs/udf.c: Likewise.
* fs/hfs.c: Likewise.
* fs/reiserfs.c: Likewise.
* efiemu/runtime/efiemu.c: Likewise.
* efiemu/main.c: Likewise.
* efiemu/mm.c: Likewise.
* include/grub/elf.h: Likewise.
* include/grub/xnu.h: Likewise.
* include/grub/usbdesc.h: Likewise.
* include/grub/usb.h: Likewise.
* include/grub/script_sh.h: Likewise.
* include/grub/lib/LzmaEnc.h: Likewise.
* include/grub/efiemu/efiemu.h: Likewise.
* include/grub/command.h: Likewise.
* normal/menu.c: Likewise.
* normal/main.c: Likewise.
* normal/datetime.c: Likewise.
* bus/usb/uhci.c: Likewise.
* mmap/i386/uppermem.c: Likewise.
* mmap/mmap.c: Likewise.
* commands/acpi.c: Likewise.
* commands/test.c: Likewise.
* partmap/apple.c: Likewise.
* font/font.c: Likewise.
* loader/sparc64/ieee1275/linux.c: Likewise.
* loader/macho.c: Likewise.
* loader/i386/bsd_trampoline.S: Likewise.
* loader/i386/bsd.c: Likewise.
* loader/xnu.c: Likewise.
* term/i386/pc/vesafb.c: Likewise.
* term/usb_keyboard.c: Likewise.
* util/resolve.c: Likewise.
* util/getroot.c: Likewise.
2009-05-04 20:06:05 +00:00
fzielcke
0cfc0083de
2009-05-04 Felix Zielcke <fzielcke@z-51.de>
...
* conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
2009-05-04 19:38:12 +00:00
robertmh
7c1d00cdc4
2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
...
* loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
build error.
2009-05-04 18:59:12 +00:00
robertmh
b01f05482b
2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
...
* loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
parameter only available on BIOS.
2009-05-04 18:40:33 +00:00
phcoder
ecc3eb22ee
2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
...
Removed wrong semicolon in declaration
* grub/misc.h (grub_dprintf): remove semicolon
2009-05-04 18:06:37 +00:00
robertmh
112972a96d
2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
...
* loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
(grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
is done by grub_cmd_linux() now).
[! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
restore video to text mode.
(grub_cmd_linux): Default `vid_mode' initialization to 0, which
indicates lack of "vga=" parameter. "vga=0" is mapped to
`GRUB_LINUX_VID_MODE_NORMAL'.
2009-05-04 18:04:09 +00:00
fzielcke
faa517ce50
* Makefile.in: Remove duplicated 2008 in Copyright line.
2009-05-04 17:57:31 +00:00
fzielcke
afd5c11527
2009-05-04 Felix Zielcke <fzielcke@z-51.de>
...
* conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
`normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
and `normal/script.c'. Add `kern/rescue_reader.c',
`kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
`script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
`grub_script.tab.c'.
* conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
* conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
* conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
* conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
* conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
2009-05-04 17:49:57 +00:00
robertmh
ae0c0bdca9
2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
...
* util/misc.c (grub_util_warn): New function. Emmits a warning
unconditionally.
* include/grub/util/misc.h (grub_util_warn): New declaration.
* util/i386/pc/grub-install.in: Understand --force and pass it down
to grub-setup.
* util/i386/pc/grub-setup.c (main): Understand --force and pass it
down to setup().
(setup): Improve error messages and add warnings when requested to
install in odd layouts. Refuse to install using blocklists unless
--force was set.
2009-05-04 16:16:03 +00:00
robertmh
c149b50021
2009-05-04 martin f. krafft <madduck@madduck.net>
...
* disk/raid.c (grub_raid_scan_device): Improve debug message.
2009-05-04 16:15:21 +00:00
phcoder
6d260daab7
2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
...
Updated copyright year
* fs/hfsplus.c: updated copyright year
2009-05-04 16:08:27 +00:00
phcoder
69f853f884
2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
...
HFS+ UUID
* fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
in the space previously used by unused3
(grub_hfsplus_uuid): new function
(grub_hfsplus_fs): added uuid field
2009-05-04 15:50:44 +00:00
proski
4c402e7301
2009-05-03 Pavel Roskin <proski@gnu.org>
...
* disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
suppress warnings. It's no longer needed.
* disk/host.c: Likewise.
* disk/ata_pthru.c: Likewise.
* disk/loopback.c: Likewise.
* hook/datehook.c: Likewise.
* parttool/pcpart.c: Likewise.
* fs/i386/pc/pxe.c: Likewise.
* fs/ntfscomp.c: Likewise.
* efiemu/main.c: Likewise.
* mmap/mmap.c: Likewise.
* commands/crc.c: Likewise.
* commands/hexdump.c: Likewise.
* commands/hdparm.c: Likewise.
* commands/acpi.c: Likewise.
* commands/echo.c: Likewise.
* commands/minicmd.c: Likewise.
* commands/blocklist.c: Likewise.
* commands/memrw.c: Likewise.
* commands/loadenv.c: Likewise.
* commands/usbtest.c: Likewise.
* commands/lsmmap.c: Likewise.
* commands/boot.c: Likewise.
* commands/parttool.c: Likewise.
* commands/configfile.c: Likewise.
* commands/search.c: Likewise.
* commands/ieee1275/suspend.c: Likewise.
* commands/cat.c: Likewise.
* commands/i386/pc/pxecmd.c: Likewise.
* commands/i386/pc/play.c: Likewise.
* commands/i386/pc/halt.c: Likewise.
* commands/i386/pc/vbeinfo.c: Likewise.
* commands/i386/pc/vbetest.c: Likewise.
* commands/lspci.c: Likewise.
* commands/date.c: Likewise.
* commands/handler.c: Likewise.
* commands/ls.c: Likewise.
* commands/test.c: Likewise.
* commands/cmp.c: Likewise.
* commands/efi/loadbios.c: Likewise.
* commands/efi/fixvideo.c: Likewise.
* commands/halt.c: Likewise.
* commands/help.c: Likewise.
* commands/reboot.c: Likewise.
* hello/hello.c: Likewise.
* script/sh/main.c: Likewise.
* loader/xnu.c: Likewise.
* term/terminfo.c: Likewise.
* term/i386/pc/serial.c: Likewise.
* term/usb_keyboard.c: Likewise.
2009-05-04 03:49:08 +00:00
davem
515b50793a
* normal/menu.c: Include grub/parser.h
2009-05-03 22:05:29 +00:00
proski
2fee74f1bb
2009-05-03 Pavel Roskin <proski@gnu.org>
...
* mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
not char*.
* mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
Suggested by Javier Martín <lordhabbit@gmail.com>
2009-05-03 19:25:14 +00:00
proski
dfc31a22bb
2009-05-03 Pavel Roskin <proski@gnu.org>
...
* util/i386/pc/grub-mkrescue.in: Allow for the case when
efiemu??.o doesn't exist.
* util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
copying.
2009-05-03 19:04:59 +00:00
phcoder
c405ba08ed
missing files from previous commit
2009-05-03 10:14:19 +00:00
phcoder
cef17233d4
2009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
...
FreeBSD 64-bit support
* conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
and loader/i386/bsd_trampoline.S
(bsd_mod_ASFLAGS): new variable
* include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
(FREEBSD_MODTYPE_KERNEL64): likewise
(grub_bsd64_trampoline_start): likewise
(grub_bsd64_trampoline_end): likewise
(grub_bsd64_trampoline_selfjump): likewise
(grub_bsd64_trampoline_gdt): likewise
* include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
* include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
* kern/i386/loader.S (grub_unix_real_boot): moved from here ...
* loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
* include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
of "attrib" member
* loader/i386/bsd_pagetable.c: new file
* loader/i386/bsd_trampoline.S: likewise
* loader/i386/bsd.c (ALIGN_QWORD): new macro
(ALIGN_VAR): likewise
(entry_hi): new variable
(kern_end_mdofs): likewise
(is_64bit): likewise
(grub_freebsd_add_meta): use ALIGN_VAR
(grub_e820_mmap): new declaration
(grub_freebsd_add_mmap): new function
(grub_freebsd_add_meta_module): support 64 bit kernels
(grub_freebsd_list_modules): use ALIGN_VAR
(gdt_descriptor): new declaration
(grub_freebsd_boot): support 64 bit kernels
(grub_bsd_elf64_hook): new function
(grub_bsd_load_elf): support elf64
2009-05-03 09:03:31 +00:00
bean
038c5720de
2009-05-03 Bean <bean123ch@gmail.com>
...
* script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
after we get the result of if statement.
2009-05-03 06:50:20 +00:00
bean
fc45fb586d
2009-05-03 Bean <bean123ch@gmail.com>
...
* Makefile.in (enable_efiemu): New variable.
* conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
set.
(efiemu32.o): Use macro $< for source file, add $(srcdir) to include
path.
(efi64_c.o): Use macro $< for source file, add $(srcdir) to include
path, add -mno-red-zone option.
(efiemu64_s.o): Likewise.
(efiemu64.o): Use macro $^ for source file.
* configure.ac (--enable-efiemu): New option.
2009-05-03 06:39:37 +00:00
proski
7dd4a573a9
Fix spacing, typos
2009-05-03 03:23:57 +00:00
phcoder
bbee0f2b56
2009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
...
xnu support
* conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
(pkglib_MODULES): add xnu.mod
(xnu_mod_SOURCES): new variable
(xnu_mod_CFLAGS): likewise
(xnu_mod_LDFLAGS): likewise
(xnu_mod_ASFLAGS): likewise
* conf/i386-pc.rmk: likewise
* conf/x86_64-efi.rmk: likewise
* include/grub/efi/efi.h (grub_efi_finish_boot_services):
new declaration
* include/grub/i386/macho.h: new file
* include/grub/i386/xnu.h: likewise
* include/grub/macho.h: likewise
* include/grub/machoload.h: likewise
* include/grub/x86_64/macho.h: likewise
* include/grub/x86_64/xnu.h: likewise
* include/grub/xnu.h: likewise
* kern/efi/efi.c (grub_efi_finish_boot_services): new function
* kern/efi/mm.c (MAX_HEAP_SIZE): increase
* loader/i386/efi/xnu.c: new file
* loader/i386/pc/xnu.c: likewise
* loader/i386/xnu.c: likewise
* loader/i386/xnu_helper.S: likewise
* loader/macho.c: likewise
* loader/xnu.c: likewise
* loader/xnu_resume.c: likewise
* util/grub-dumpdevtree: likewise
* include/grub/i386/pit.h: include grub/err.h
(grub_pit_wait): export
* util/grub.d/30_os-prober.in: support Darwin/Mac OS X
2009-05-02 23:19:20 +00:00
phcoder
5caf964d75
2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
...
Efiemu
* conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
_linux_efi, linux_efi.
new files in grub-emu
new targets efiemu32.o and efiemu64.o
* loader/linux_normal_efiemu.c: likewise
* loader/i386/efi/linux.c: added preliminary efiemu support
* util/i386/pc/grub-install.in: add efiemu??.o to the list of
files to copy
* include/grub/autoefi.h: new file
* nclude/grub/i386/efiemu.h: likewise
* include/grub/i386/pc/efiemu.h: likewise
* include/grub/efi/api.h: add LL suffix when necessary
new definitions relating to tables
* include/grub/efiemu/efiemu.h: new file
* include/grub/efiemu/runtime.h: likewise
* efiemu/prepare.c: likewise
* efiemu/loadcore_common.c: likewise
* efiemu/loadcore64.c: likewise
* efiemu/runtime/efiemu.sh: likewise
* efiemu/runtime/efiemu.S: likewise
* efiemu/runtime/efiemu.c: likewise
* efiemu/runtime/config.h: likewise
* efiemu/prepare32.c: likewise
* efiemu/main.c: likewise
* efiemu/modules/pnvram.c: likewise
* efiemu/modules/i386: likewise
* efiemu/modules/i386/pc: likewise
* efiemu/modules/acpi.c: likewise
* efiemu/i386/pc/cfgtables.c: likewise
* efiemu/i386/loadcore64.c: likewise
* efiemu/i386/loadcore32.c: likewise
* efiemu/prepare64.c: likewise
* efiemu/loadcore.c: likewise
* efiemu/symbols.c: likewise
* efiemu/mm.c: likewise
* efiemu/loadcore32.c: likewise
2009-05-02 22:40:21 +00:00