beautypg.com

Intel Extensible Firmware Interface User Manual

Page 218

background image

Extensible Firmware Interface Specification

7-2

12/01/02

Version 1.10

// Location where image was loaded

VOID

*ImageBase;

UINT64

ImageSize;

EFI_MEMORY_TYPE

ImageCodeType;

EFI_MEMORY_TYPE

ImageDataType;

EFI_IMAGE_UNLOAD

Unload;

} EFI_LOADED_IMAGE;

Parameters

Revision

Defines the revision of the

EFI_LOADED_IMAGE

structure.

All future revisions will be backward compatible to the current
revision.

ParentHandle

Parent image’s image handle.

NULL

if the image is loaded

directly from the firmware’s boot manager. Type

EFI_HANDLE

is defined in Chapter 5.

SystemTable

The image’s EFI system table pointer. Type

EFI_SYSTEM_TABLE

is defined in Chapter 4.

DeviceHandle

The device handle that the EFI Image was loaded from. Type

EFI_HANDLE

is defined in Chapter 5.

FilePath

A pointer to the file path portion specific to

DeviceHandle

that the EFI Image was loaded from. The

EFI_DEVICE_PATH

protocol is defined in Chapter 8.

Reserved

Reserved. DO NOT USE.

LoadOptionsSize

The size in bytes of

LoadOptions

.

LoadOptions

A pointer to the image’s binary load options.

ImageBase

The base address at which the image was loaded.

ImageSize

The size in bytes of the loaded image.

ImageCodeType

The memory type that the code sections were loaded as. Type

EFI_MEMORY_TYPE

is defined in Chapter 5.

ImageDataType

The memory type that the data sections were loaded as. Type

EFI_MEMORY_TYPE

is defined in Chapter 5.

Unload

Function that unloads the image. See

Unload()

.

Description

Each loaded image has an image handle that supports the

EFI_LOADED_IMAGE

protocol. When

an image is started, it is passed the image handle for itself. The image can use the handle to obtain
its relevant image data stored in the

EFI_LOADED_IMAGE

structure, such as its load options.