Re:64-bit Tiano Core UEFI for the Raspberry Pi 3
by mjg59 on Wednesday April 25, 2018 @04:26PM
(#16925730)
> I think that it was something along the lines of some implementations (including TianoCore) required the ExitBootServices call to be performed more than once to exit the UEFI-controlled environment correctly?
As hinted at in andreiw's reply, this is entirely spec-compliant (if really annoying). Quoting from the spec:
"Firmware implementation may choose to do a partial shutdown of the boot services during the first call to ExitBootServices(). A UEFI OS loader should not make calls to any boot service function other than GetMemoryMap() after the first call to ExitBootServices()."
As hinted at in andreiw's reply, this is entirely spec-compliant (if really annoying). Quoting from the spec:
"Firmware implementation may choose to do a partial shutdown of the boot services during the first call to ExitBootServices(). A UEFI OS loader should not make calls to any boot service function other than GetMemoryMap() after the first call to ExitBootServices()."