TianoCore EDK2 master
Loading...
Searching...
No Matches
CompatImageLoaderDxe.c File Reference

Go to the source code of this file.

Data Structures

struct  PE_COMPAT_TYPE1
 

Functions

STATIC BOOLEAN EFIAPI IsImageSupported (IN EDKII_PECOFF_IMAGE_EMULATOR_PROTOCOL *This, IN UINT16 ImageType, IN EFI_DEVICE_PATH_PROTOCOL *DevicePath OPTIONAL)
 
STATIC EFI_IMAGE_ENTRY_POINT EFIAPI GetCompatEntryPoint (IN EFI_PHYSICAL_ADDRESS ImageBase)
 
STATIC EFI_STATUS EFIAPI RegisterImage (IN EDKII_PECOFF_IMAGE_EMULATOR_PROTOCOL *This, IN EFI_PHYSICAL_ADDRESS ImageBase, IN UINT64 ImageSize, IN OUT EFI_IMAGE_ENTRY_POINT *EntryPoint)
 
STATIC EFI_STATUS EFIAPI UnregisterImage (IN EDKII_PECOFF_IMAGE_EMULATOR_PROTOCOL *This, IN EFI_PHYSICAL_ADDRESS ImageBase)
 
EFI_STATUS EFIAPI CompatImageLoaderDxeEntryPoint (IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
 

Variables

STATIC EDKII_PECOFF_IMAGE_EMULATOR_PROTOCOL mCompatLoaderPeCoffEmuProtocol
 

Detailed Description

PE/COFF emulator protocol implementation to start Linux kernel images from non-native firmware

Copyright (c) 2020, ARM Ltd. All rights reserved.

SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file CompatImageLoaderDxe.c.

Function Documentation

◆ CompatImageLoaderDxeEntryPoint()

EFI_STATUS EFIAPI CompatImageLoaderDxeEntryPoint ( IN EFI_HANDLE  ImageHandle,
IN EFI_SYSTEM_TABLE SystemTable 
)

Definition at line 137 of file CompatImageLoaderDxe.c.

◆ GetCompatEntryPoint()

STATIC EFI_IMAGE_ENTRY_POINT EFIAPI GetCompatEntryPoint ( IN EFI_PHYSICAL_ADDRESS  ImageBase)

Definition at line 44 of file CompatImageLoaderDxe.c.

◆ IsImageSupported()

STATIC BOOLEAN EFIAPI IsImageSupported ( IN EDKII_PECOFF_IMAGE_EMULATOR_PROTOCOL This,
IN UINT16  ImageType,
IN EFI_DEVICE_PATH_PROTOCOL *DevicePath  OPTIONAL 
)

Definition at line 32 of file CompatImageLoaderDxe.c.

◆ RegisterImage()

STATIC EFI_STATUS EFIAPI RegisterImage ( IN EDKII_PECOFF_IMAGE_EMULATOR_PROTOCOL This,
IN EFI_PHYSICAL_ADDRESS  ImageBase,
IN UINT64  ImageSize,
IN OUT EFI_IMAGE_ENTRY_POINT EntryPoint 
)

Definition at line 98 of file CompatImageLoaderDxe.c.

◆ UnregisterImage()

STATIC EFI_STATUS EFIAPI UnregisterImage ( IN EDKII_PECOFF_IMAGE_EMULATOR_PROTOCOL This,
IN EFI_PHYSICAL_ADDRESS  ImageBase 
)

Definition at line 119 of file CompatImageLoaderDxe.c.

Variable Documentation

◆ mCompatLoaderPeCoffEmuProtocol

STATIC EDKII_PECOFF_IMAGE_EMULATOR_PROTOCOL mCompatLoaderPeCoffEmuProtocol
Initial value:
= {
IsImageSupported,
RegisterImage,
UnregisterImage,
EDKII_PECOFF_IMAGE_EMULATOR_VERSION,
}
#define EFI_IMAGE_MACHINE_X64
Definition: UefiBaseType.h:233

Definition at line 127 of file CompatImageLoaderDxe.c.