When the boot manager loads a driver, the image handle may be used to locate the "load options"
for the driver. The load options are those options that were stored in the
the
EFI_LOADED_IMAGE
4.5.1
EFI Image Handoff State
Control is transferred to a loaded image at the
the normal indirect calling conventions for the image's
function of type EFI_IMAGE_ENTRY_POINT. All other linkage to and from an EFI image is
done programmatically. See Chapter 3 for the full definition of EFI_IMAGE_ENTRY_POINT. Its
prototype is repeated below, along with some additional comments.
typedef
EFI_STATUS
(EFIAPI *EFI_IMAGE_ENTRY_POINT) (
IN EFI_HANDLE
IN EFI_SYSTEM_TABLE
);
The first argument is the image's image handle. The second argument is a pointer to the image's
system table. The system table contains the standard output and input handles, plus pointers to the
EFI_BOOT_SERVICES
entry points in the firmware for accessing the core EFI system functionality. The handles in the
system table are used to obtain basic access to the console. In addition, the EFI system table
contains pointers to other standard tables that a loaded image may use if the associated pointers are
initialized to non-zero values. Examples of such tables are ACPI, SMBIOS, SAL System
Table, etc.
The
ImageHandle
functions. The handle also supports one or more protocols that the image can use. All images
support the
EFI_LOADED_IMAGE
memory location of the image, the load options for the image, etc. The exact
EFI_LOADED_IMAGE
The following code shows the definition for the EFI system table. The EFI system table is provided
as the second argument to a loaded image's entry point.
Version 1.02
information for the driver.
AddressOfEntryPoint
and
EFI_RUNTIME_SERVICES
is a firmware-allocated handle that is used to identify the image on various
protocol that returns the source location of the image, the
structure is defined in Section 4.1.
LoadOptions
type. The entry point is a
Machine
ImageHandle,
*SystemTable
tables. The service tables contain the
12/12/00
EFI Image
field of
reference according to
111
Need help?
Do you have a question about the Extensible Firmware Interface and is the answer not in the manual?