diff options
author | Roger Pau Monné <royger@FreeBSD.org> | 2021-01-27 11:23:32 +0000 |
---|---|---|
committer | Roger Pau Monné <royger@FreeBSD.org> | 2021-02-16 14:26:11 +0000 |
commit | adda2797eb2a29487fe26640a9c990fea7e6585d (patch) | |
tree | e3268ac02c268d67c305e8a053c62446863f0bf1 /sys/sys | |
parent | 7d3259775cb69f250df3e7fe51d6fff2283c6f20 (diff) | |
download | src-adda2797eb2a29487fe26640a9c990fea7e6585d.tar.gz src-adda2797eb2a29487fe26640a9c990fea7e6585d.zip |
stand/multiboot2: add support for booting a Xen dom0 in UEFI mode
Add some basic multiboot2 infrastructure to the EFI loader in order to
be capable of booting a FreeBSD/Xen dom0 when booted from UEFI.
Only a very limited subset of the multiboot2 protocol is implemented
in order to support enough to boot into Xen, the implementation
doesn't intend to be a full multiboot2 capable implementation.
Such multiboot2 functionality is hooked up into the amd64 EFI loader,
which is the only architecture that supports Xen dom0 on FreeBSD.
The options to boot a FreeBSD/Xen dom0 system are exactly the same as
on BIOS, and requires setting the xen_kernel and xen_cmdline options
in loader.conf.
Sponsored by: Citrix Systems R&D
Reviewed by: tsoome, imp
Differential revision: https://reviews.freebsd.org/D28497
Diffstat (limited to 'sys/sys')
-rw-r--r-- | sys/sys/linker.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/sys/linker.h b/sys/sys/linker.h index 13274ecd1a7c..73eea35dab55 100644 --- a/sys/sys/linker.h +++ b/sys/sys/linker.h @@ -215,6 +215,7 @@ void *linker_hwpmc_list_objects(void); #define MODINFOMD_SSYM 0x0003 /* start of symbols */ #define MODINFOMD_ESYM 0x0004 /* end of symbols */ #define MODINFOMD_DYNAMIC 0x0005 /* _DYNAMIC pointer */ +#define MODINFOMD_MB2HDR 0x0006 /* MB2 header info */ /* These values are MD on PowerPC */ #if !defined(__powerpc__) #define MODINFOMD_ENVP 0x0006 /* envp[] */ |