Fix efiboot not to use the usual kernel load address. Load the kernel in
authoryasuoka <yasuoka@openbsd.org>
Mon, 5 Oct 2015 22:59:39 +0000 (22:59 +0000)
committeryasuoka <yasuoka@openbsd.org>
Mon, 5 Oct 2015 22:59:39 +0000 (22:59 +0000)
commit0d1fcfa70d817442f75e257c28602c7fdec9f262
tree145b190add7c2838a4eae90b416b54886dffbd80
parent6264d30e249c6a88a7eb10c13eaa78b152e7d9f5
Fix efiboot not to use the usual kernel load address.  Load the kernel in
an allocated region and also move the stack to the end of the heap region.
Then move the kernel to the usual place just before run the kernel, after
calling ExitBootService().

report/test Toby Slight, Brian Conway
sys/arch/amd64/include/loadfile_machdep.h
sys/arch/amd64/stand/efiboot/efiboot.c
sys/arch/amd64/stand/libsa/exec_i386.c