mirror of https://github.com/acidanthera/audk.git
OvmfPkg: create protocol and GUID header for loaded x86 Linux kernels
In preparation of moving the legacy x86 loading to an implementation of the QEMU load image library class, introduce a protocol header and GUID that we will use to identify legacy loaded x86 Linux kernels in the protocol database. Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Reviewed-by: Laszlo Ersek <lersek@redhat.com>
This commit is contained in:
parent
0758a8e979
commit
1dc875a7d5
|
@ -0,0 +1,32 @@
|
|||
/** @file
|
||||
Protocol/GUID definition to describe a x86 Linux kernel image loaded
|
||||
into memory.
|
||||
|
||||
Note that this protocol is considered internal ABI, and may be change
|
||||
structure at any time without regard for backward compatibility.
|
||||
|
||||
Copyright (c) 2020, Arm, Ltd. All rights reserved.<BR>
|
||||
|
||||
SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
**/
|
||||
|
||||
#ifndef OVMF_LOADED_X86_LINUX_KERNEL_H__
|
||||
#define OVMF_LOADED_X86_LINUX_KERNEL_H__
|
||||
|
||||
#define OVMF_LOADED_X86_LINUX_KERNEL_PROTOCOL_GUID \
|
||||
{0xa3edc05d, 0xb618, 0x4ff6, {0x95, 0x52, 0x76, 0xd7, 0x88, 0x63, 0x43, 0xc8}}
|
||||
|
||||
typedef struct {
|
||||
VOID *SetupBuf;
|
||||
VOID *KernelBuf;
|
||||
CHAR8 *CommandLine;
|
||||
VOID *InitrdData;
|
||||
UINTN SetupSize;
|
||||
UINTN KernelInitialSize;
|
||||
UINTN InitrdSize;
|
||||
UINTN CommandLineSize;
|
||||
} OVMF_LOADED_X86_LINUX_KERNEL;
|
||||
|
||||
extern EFI_GUID gOvmfLoadedX86LinuxKernelProtocolGuid;
|
||||
|
||||
#endif
|
|
@ -112,6 +112,7 @@
|
|||
gEfiLegacyBiosPlatformProtocolGuid = {0x783658a3, 0x4172, 0x4421, {0xa2, 0x99, 0xe0, 0x09, 0x07, 0x9c, 0x0c, 0xb4}}
|
||||
gEfiLegacyInterruptProtocolGuid = {0x31ce593d, 0x108a, 0x485d, {0xad, 0xb2, 0x78, 0xf2, 0x1f, 0x29, 0x66, 0xbe}}
|
||||
gEfiVgaMiniPortProtocolGuid = {0xc7735a2f, 0x88f5, 0x4882, {0xae, 0x63, 0xfa, 0xac, 0x8c, 0x8b, 0x86, 0xb3}}
|
||||
gOvmfLoadedX86LinuxKernelProtocolGuid = {0xa3edc05d, 0xb618, 0x4ff6, {0x95, 0x52, 0x76, 0xd7, 0x88, 0x63, 0x43, 0xc8}}
|
||||
|
||||
[PcdsFixedAtBuild]
|
||||
gUefiOvmfPkgTokenSpaceGuid.PcdOvmfPeiMemFvBase|0x0|UINT32|0
|
||||
|
|
Loading…
Reference in New Issue