2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
Enable bsd.mod on coreboot. * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod. (bsd_mod_SOURCES): New variable. (bsd_mod_CFLAGS): Likewise. (bsd_mod_LDFLAGS): Likewise. (bsd_mod_ASFLAGS): Likewise. * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes. (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
This commit is contained in:
parent
beefc59841
commit
1ae2078cd8
3 changed files with 24 additions and 1 deletions
12
ChangeLog
12
ChangeLog
|
@ -1,3 +1,15 @@
|
|||
2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
|
||||
|
||||
Enable bsd.mod on coreboot.
|
||||
|
||||
* conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
|
||||
(bsd_mod_SOURCES): New variable.
|
||||
(bsd_mod_CFLAGS): Likewise.
|
||||
(bsd_mod_LDFLAGS): Likewise.
|
||||
(bsd_mod_ASFLAGS): Likewise.
|
||||
* loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
|
||||
(grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
|
||||
|
||||
2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
|
||||
|
||||
Cleanup NetBSD root support.
|
||||
|
|
|
@ -204,6 +204,13 @@ aout_mod_SOURCES = loader/aout.c
|
|||
aout_mod_CFLAGS = $(COMMON_CFLAGS)
|
||||
aout_mod_LDFLAGS = $(COMMON_LDFLAGS)
|
||||
|
||||
# For bsd.mod
|
||||
pkglib_MODULES += bsd.mod
|
||||
bsd_mod_SOURCES = loader/i386/bsd.c loader/i386/bsd32.c loader/i386/bsd64.c loader/i386/bsd_helper.S loader/i386/bsd_trampoline.S
|
||||
bsd_mod_CFLAGS = $(COMMON_CFLAGS)
|
||||
bsd_mod_LDFLAGS = $(COMMON_LDFLAGS)
|
||||
bsd_mod_ASFLAGS = $(COMMON_ASFLAGS)
|
||||
|
||||
# For play.mod.
|
||||
play_mod_SOURCES = commands/i386/pc/play.c
|
||||
play_mod_CFLAGS = $(COMMON_CFLAGS)
|
||||
|
|
|
@ -37,10 +37,10 @@
|
|||
|
||||
#ifdef GRUB_MACHINE_PCBIOS
|
||||
#include <grub/machine/biosnum.h>
|
||||
#endif
|
||||
#include <grub/disk.h>
|
||||
#include <grub/device.h>
|
||||
#include <grub/partition.h>
|
||||
#endif
|
||||
|
||||
#define ALIGN_DWORD(a) ALIGN_UP (a, 4)
|
||||
#define ALIGN_QWORD(a) ALIGN_UP (a, 8)
|
||||
|
@ -138,7 +138,11 @@ grub_bsd_get_device (grub_uint32_t * biosdev,
|
|||
char *p;
|
||||
grub_device_t dev;
|
||||
|
||||
#ifdef GRUB_MACHINE_PCBIOS
|
||||
*biosdev = grub_get_root_biosnumber () & 0xff;
|
||||
#else
|
||||
*biosdev = 0xff;
|
||||
#endif
|
||||
*unit = (*biosdev & 0x7f);
|
||||
*slice = 0xff;
|
||||
*part = 0xff;
|
||||
|
|
Loading…
Reference in a new issue