On 7/27/2016 12:08 PM, Matt Fleming wrote:
On Thu, 21 Jul, at 02:28:14PM, Jeffrey Hugo wrote:
The eboot code directly calls ExitBootServices. This is inadvisable, and
the eboot code attempts allocations after calling ExitBootSerives which is
not permitted per the spec. The efi_exit_boot_services() helper handles
this scenario.
Signed-off-by: Jeffrey Hugo <jhugo@xxxxxxxxxxxxxx>
---
arch/x86/boot/compressed/eboot.c | 130 ++++++++++++++++++++-------------------
1 file changed, 67 insertions(+), 63 deletions(-)
FYI, this patch prevents my x86-64 test machines from booting. Of
course, because it's the early boot code there's no useful output on
the console other than "efi_main() failed!".
I'll debug further tomorrow.
Doh. I'm sorry for that. Clearly my limited x86 testing was
insufficient. I'll see if I reproduce on my end for parallel debug.
--
Jeffrey Hugo
Qualcomm Datacenter Technologies as an affiliate of Qualcomm
Technologies, Inc.
Qualcomm Technologies, Inc. is a member of the
Code Aurora Forum, a Linux Foundation Collaborative Project.
--
To unsubscribe from this list: send the line "unsubscribe linux-efi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html