fzielcke
861f03a5b9
2009-05-23 Felix Zielcke <fzielcke@z-51.de>
...
* commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
2009-05-23 20:51:09 +00:00
proski
bf6a5fb2a8
2009-05-22 Pavel Roskin <proski@gnu.org>
...
* aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
* configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
compiling for the i386 targets, but not for the utilities.
2009-05-22 21:15:31 +00:00
proski
96b1619a75
2009-05-22 Pavel Roskin <proski@gnu.org>
...
* include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
to grub_uint8_t.
(grub_root_drive): Likewise.
* kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
remove alignment.
(grub_root_drive): Change size to byte.
(grub_start_addr): Remove.
(grub_end_addr): Likewise.
(grub_apm_bios_info): Likewise.
2009-05-22 19:52:43 +00:00
fzielcke
b729776bfc
2009-05-21 Felix Zielcke <fzielcke@z-51.de>
...
* normal/i386: Remove.
* normal/powerpc: Likewise.
* normal/sparc64: Likewise.
* normal/x86_64: Likewise.
2009-05-21 20:36:52 +00:00
proski
d6da58e631
Fix spacing and excessively long lines
2009-05-19 22:51:50 +00:00
phcoder
0a15ce802c
changelog
2009-05-19 15:24:51 +00:00
cbennett
33db90156a
2009-05-18 Colin D Bennett <colin@gibibit.com>
...
Display error messages when parsing a Lua statement fails. Previously,
executing a syntactically invalid statement like ")foo" or "bar;" would
silently fail.
* script/lua/grub_main.c (handle_lua_error): New function.
(grub_lua_parse_line): Improved reporting of Lua parser and execution
errors.
2009-05-18 21:53:09 +00:00
proski
18f547ad4d
Spacing fixes
2009-05-18 13:52:36 +00:00
phcoder
46422c891e
2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
...
Remove -Werror which causes build to fail on some systems
* conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
* conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
* conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
2009-05-17 11:33:20 +00:00
phcoder
22f53a96fd
2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
...
trampoline for linux on 64-bit platform
* conf/x86_64-efi.rmk (linux_mod_SOURCES): added
loader/i386/efi/linux_trampoline.S
* include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
declration
* kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from here
* loader/i386/linux_trampoline.S: moved here
* loader/i386/efi/linux.c (allocate_pages): reserve space for trampoline
(jumpvector): removed
(grub_linux_trampoline_start): new declaration
(grub_linux_trampoline_end): likewise
(grub_linux_boot): use trampoline when on 64-bit platform
* loader/i386/linux.c: likewise
2009-05-17 11:27:08 +00:00
proski
cb5a0f40a3
2009-05-16 Pavel Roskin <proski@gnu.org>
...
* script/lua/grub_lib.c (grub_lua_getenv): Make name and value
const to avoid a warning.
(grub_lua_setenv): Likewise.
* script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
lmsg to fix a warning.
2009-05-17 00:37:10 +00:00
fzielcke
7dd10fceb4
* conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
...
(setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
* conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
(setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
* conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
(setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
2009-05-16 17:32:32 +00:00
fzielcke
334f2c2858
2009-05-16 Felix Zielcke <fzielcke@z-51.de>
...
* conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
(setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS)
2009-05-16 17:22:32 +00:00
fzielcke
59e5d3ec80
2009-05-16 Felix Zielcke <fzielcke@z-51.de>
...
* util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
2009-05-16 13:58:07 +00:00
bean
9d87a1ba36
2009-05-16 Bean <bean123ch@gmail.com>
...
* conf/common.rmk (pkglib_MODULES): Add lua.mod.
(lua_mod_SOURCES): New variable.
(lua_mod_CFLAGS): Likewise.
(lua_mod_LDFLAGS): Likewise.
* conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
(setjmp_mod_SOURCES): New variable.
(setjmp_mod_CFLAGS): Likewise.
(setjmp_LDFLAGS): Likewise.
* conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
(setjmp_mod_SOURCES): New variable.
(setjmp_mod_CFLAGS): Likewise.
(setjmp_LDFLAGS): Likewise.
* conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
(setjmp_mod_SOURCES): New variable.
(setjmp_mod_CFLAGS): Likewise.
(setjmp_LDFLAGS): Likewise.
* conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
(setjmp_mod_SOURCES): New variable.
(setjmp_mod_CFLAGS): Likewise.
(setjmp_LDFLAGS): Likewise.
* normal/i386/setjmp.S: Moved from here ...
* lib/i386/setjmp.S: ... Moved here
* normal/x86_64/setjmp.S: Moved from here ...
* lib/x86_64/setjmp.S: ... Moved here
* normal/powerpc/setjmp.S: Moved from here ...
* lib/powerpc/setjmp.S: ... Moved here
* normal/sparc64/setjmp.S: Moved from here ...
* lib/sparc64/setjmp.S: ... Moved here
* include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
returns_twice in mingw.
* script/lua/grub_lib.c: New file.
* script/lua/grub_lib.h: Likewise.
* script/lua/grub_lua.h: Likewise.
* script/lua/grub_main.c: Likewise.
* script/lua/lapi.c: Likewise.
* script/lua/lapi.h: Likewise.
* script/lua/lauxlib.c: Likewise.
* script/lua/lauxlib.h: Likewise.
* script/lua/lbaselib.c: Likewise.
* script/lua/lcode.c: Likewise.
* script/lua/lcode.h: Likewise.
* script/lua/ldblib.c: Likewise.
* script/lua/ldebug.c: Likewise.
* script/lua/ldebug.h: Likewise.
* script/lua/ldo.c: Likewise.
* script/lua/ldo.h: Likewise.
* script/lua/ldump.c: Likewise.
* script/lua/lfunc.c: Likewise.
* script/lua/lfunc.h: Likewise.
* script/lua/lgc.c: Likewise.
* script/lua/lgc.h: Likewise.
* script/lua/linit.c: Likewise.
* script/lua/liolib.c: Likewise.
* script/lua/llex.c: Likewise.
* script/lua/llex.h: Likewise.
* script/lua/llimits.h: Likewise.
* script/lua/lmathlib.c: Likewise.
* script/lua/lmem.c: Likewise.
* script/lua/lmem.h: Likewise.
* script/lua/loadlib.c: Likewise.
* script/lua/lobject.c: Likewise.
* script/lua/lobject.h: Likewise.
* script/lua/lopcodes.c: Likewise.
* script/lua/lopcodes.h: Likewise.
* script/lua/loslib.c: Likewise.
* script/lua/lparser.c: Likewise.
* script/lua/lparser.h: Likewise.
* script/lua/lstate.c: Likewise.
* script/lua/lstate.h: Likewise.
* script/lua/lstring.c: Likewise.
* script/lua/lstring.h: Likewise.
* script/lua/lstrlib.c: Likewise.
* script/lua/ltable.c: Likewise.
* script/lua/ltable.h: Likewise.
* script/lua/ltablib.c: Likewise.
* script/lua/ltm.c: Likewise.
* script/lua/ltm.h: Likewise.
* script/lua/lua.h: Likewise.
* script/lua/luaconf.h: Likewise.
* script/lua/lualib.h: Likewise.
* script/lua/lundump.c: Likewise.
* script/lua/lundump.h: Likewise.
* script/lua/lvm.c: Likewise.
* script/lua/lvm.h: Likewise.
* script/lua/lzio.c: Likewise.
* script/lua/lzio.h: Likewise.
2009-05-16 12:46:24 +00:00
bean
5e898c9d71
2009-05-16 Bean <bean123ch@gmail.com>
...
* include/grub/kernel.h (grub_module_header_types): Add type
OBJ_TYPE_CONFIG.
* kern/main.c (grub_load_config): New function.
(grub_main): Call grub_load_config to read boot config.
* grub-mkimage (generate_image): New parameter config_path.
(options): New option --config.
(main): Parse --config option, and pass it to generate_image.
2009-05-16 12:12:12 +00:00
chrfranke
cf353a4742
2009-05-14 Christian Franke <franke@computer.org>
...
* commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
This fixes build on Cygwin.
2009-05-14 21:56:46 +00:00
proski
3834887fb2
2009-05-14 Pavel Roskin <proski@gnu.org>
...
* commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
jump. This saves two bytes, so the typical case of 2 swapped
drives would fit 32 bytes.
2009-05-14 13:43:13 +00:00
proski
ac96388340
2009-05-13 Pavel Roskin <proski@gnu.org>
...
* loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
grub_uint32_t to avoid a warning.
2009-05-14 03:59:10 +00:00
proski
8090fc012a
2009-05-13 Pavel Roskin <proski@gnu.org>
...
* loader/i386/linux.c (allocate_pages): When assigning
real_mode_mem, cast through grub_size_t to fix a warning. The
code already makes sure that the value would fit a pointer.
(grub_linux_setup_video): Cast render_target->data to
grub_size_t to fix a warning.
2009-05-14 03:48:08 +00:00
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
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