2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
Fix OpenBSD and NetBSD support. * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve memory address conflict. (OPENBSD_MMAP_ACPI): New definition. (OPENBSD_MMAP_NVS): Likewise. * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI and OPENBSD_MMAP_NVS. Add memory map terminator Explicit cast when calling grub_unix_real_boot. (grub_nebsd_boot): Explicit cast when calling grub_unix_real_boot.
This commit is contained in:
parent
16c84d744c
commit
dd103c4e04
3 changed files with 35 additions and 5 deletions
|
@ -29,7 +29,7 @@ enum bsd_kernel_types
|
|||
KERNEL_TYPE_NETBSD,
|
||||
};
|
||||
|
||||
#define GRUB_BSD_TEMP_BUFFER 0x68000
|
||||
#define GRUB_BSD_TEMP_BUFFER 0x80000
|
||||
|
||||
#define FREEBSD_RB_ASKNAME (1 << 0) /* ask for file name to reboot from */
|
||||
#define FREEBSD_RB_SINGLE (1 << 1) /* reboot to single user only */
|
||||
|
@ -157,6 +157,8 @@ struct grub_openbsd_bios_mmap
|
|||
grub_uint64_t len;
|
||||
#define OPENBSD_MMAP_AVAILABLE 1
|
||||
#define OPENBSD_MMAP_RESERVED 2
|
||||
#define OPENBSD_MMAP_ACPI 3
|
||||
#define OPENBSD_MMAP_NVS 4
|
||||
grub_uint32_t type;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue