![Intel Extensible Firmware Interface Скачать руководство пользователя страница 88](http://html1.mh-extra.com/html/intel/extensible-firmware-interface/extensible-firmware-interface_specification_2073117088.webp)
Extensible Firmware Interface Specification
70
12/12/00
Version 1.02
Description
The
LoadImage()
function loads an EFI image into memory and returns a handle to the image.
The image is loaded in one of two ways. If
SourceBuffer
is not
NULL
, the function is a
memory-to-memory load in which
SourceBuffer
points to the image to be loaded and
SourceSize
indicates the image’s size in bytes. In this case, the caller has copied the image into
SourceBuffer
and can free the buffer once loading is complete.
If
SourceBuffer
is
NULL
, the function is a file copy operation that uses the
SIMPLE_FILE_SYSTEM
protocol and then the
LOAD_FILE
protocol on the
DeviceHandle
to
access the file referred to by
FilePath
. In this case, the
BootPolicy
flag is passed to the
LOAD_FILE.LoadFile()
function and is used to load the default image responsible for booting
when the
FilePath
only indicates the device. For more information see the discussion of the
Load File Protocol in Chapter 11.
Regardless of the type of load (memory-to-memory or file copy), the function relocates the code in
the image while loading it.
Once the image is loaded, firmware creates and returns an
EFI_HANDLE
that identifies the image
and supports the
LOADED_IMAGE
protocol. The caller may fill in the image’s “load options” data,
or add additional protocol support to the handle before passing control to the newly loaded image
by calling
StartImage()
. Also, once the image is loaded, the caller either starts it by calling
StartImage()
or unloads it by calling
Unload()
.
Status Codes Returned
EFI_SUCCESS
Image was loaded into memory correctly.
EFI_NOT_FOUND
The
FilePath
was not found.
EFI_INVALID_PARAMETER
One of the parameters has an invalid value.
EFI_UNSUPPORTED
The image type is not supported, or the device path can not be
parsed to locate the proper protocol for loading the the file.
EFI_OUT_OF_RESOURCES
Image was not loaded due to insufficient resources.
EFI_LOAD_ERROR
Image was not loaded because the image format was corrupt or not
understood.
EFI_DEVICE_ERROR
Image was not loaded because the device returned a read error.
Содержание Extensible Firmware Interface
Страница 1: ...Extensible Firmware Interface Specification Version 1 02 December 12 2000...
Страница 4: ...Extensible Firmware Interface Specification iv 12 12 00 Version 1 02...
Страница 42: ...Extensible Firmware Interface Specification 24 12 01 00 Version 1 02...
Страница 190: ...Extensible Firmware Interface Specification 172 12 12 00 Version 1 02...
Страница 200: ...Extensible Firmware Interface Specification 182 12 12 00 Version 1 02...
Страница 226: ...Extensible Firmware Interface Specification 208 12 12 00 Version 1 02...
Страница 230: ...Extensible Firmware Interface Specification 212 12 12 00 Version 1 02...
Страница 252: ...Extensible Firmware Interface Specification 234 12 12 00 Version 1 02...
Страница 294: ...Extensible Firmware Interface Specification 276 12 12 00 Version 1 02...
Страница 348: ...Extensible Firmware Interface Specification 330 12 01 00 Version 1 01...
Страница 350: ...Extensible Firmware Interface Specification 332 12 12 00 Version 1 02...
Страница 354: ...Extensible Firmware Interface Specification 336 12 12 00 Version 1 02...
Страница 362: ...Extensible Firmware Interface Specification 344 12 12 00 Version 1 02...
Страница 486: ...Extensible Firmware Interface Specification 468 12 12 00 Version 1 02...
Страница 494: ...Extensible Firmware Interface Specification 476 12 12 00 Version 1 02...