![Intel Extensible Firmware Interface Specification Download Page 94](http://html1.mh-extra.com/html/intel/extensible-firmware-interface/extensible-firmware-interface_specification_2073117094.webp)
Extensible Firmware Interface Specification
76
12/12/00
Version 1.02
3.4.6 ExitBootServices()
Summary
Terminates all boot services.
Prototype
EFI_STATUS
ExitBootServices (
IN EFI_HANDLE
ImageHandle,
IN UINTN
MapKey
);
Parameters
ImageHandle
Handle that identifies the exiting image. Type
EFI_HANDLE
is defined
in Section 3.3.1.
MapKey
Key to the latest memory map.
Description
The
ExitBootServices()
function is called by the currently executing EFI OS loader image
to terminate all boot services. On success, the loader becomes responsible for the continued
operation of the system.
An EFI OS loader must ensure that it has the system’s current memory map at the time it calls
ExitBootServices()
. This is done by passing in the current memory map’s
MapKey
value
as returned by
GetMemoryMap()
. Care must be taken to ensure that the memory map does not
change between these two calls. It is suggested that
GetMemoryMap()
be called immediately
before calling
ExitBootServices()
.
On success, the EFI OS loader owns all available memory in the system. In addition, the loader can
treat all memory in the map marked as
EfiBootServicesCode
and
EfiBootServicesData
as available free memory. No further calls to boot service functions or
EFI device-handle-based protocols may be used, and the boot serviceswatchdog timer is disabled.
Status Codes Returned
EFI_SUCCESS
Boot services have been terminated.
EFI_INVALID_PARAMETER
MapKey
is incorrect.
Summary of Contents for Extensible Firmware Interface
Page 1: ...Extensible Firmware Interface Specification Version 1 02 December 12 2000...
Page 4: ...Extensible Firmware Interface Specification iv 12 12 00 Version 1 02...
Page 42: ...Extensible Firmware Interface Specification 24 12 01 00 Version 1 02...
Page 190: ...Extensible Firmware Interface Specification 172 12 12 00 Version 1 02...
Page 200: ...Extensible Firmware Interface Specification 182 12 12 00 Version 1 02...
Page 226: ...Extensible Firmware Interface Specification 208 12 12 00 Version 1 02...
Page 230: ...Extensible Firmware Interface Specification 212 12 12 00 Version 1 02...
Page 252: ...Extensible Firmware Interface Specification 234 12 12 00 Version 1 02...
Page 294: ...Extensible Firmware Interface Specification 276 12 12 00 Version 1 02...
Page 348: ...Extensible Firmware Interface Specification 330 12 01 00 Version 1 01...
Page 350: ...Extensible Firmware Interface Specification 332 12 12 00 Version 1 02...
Page 354: ...Extensible Firmware Interface Specification 336 12 12 00 Version 1 02...
Page 362: ...Extensible Firmware Interface Specification 344 12 12 00 Version 1 02...
Page 486: ...Extensible Firmware Interface Specification 468 12 12 00 Version 1 02...
Page 494: ...Extensible Firmware Interface Specification 476 12 12 00 Version 1 02...