Compensate missing return address, which is a 4-byte on i686 and an 8-byte on amd64

This commit is contained in:
2023-11-05 20:07:13 +01:00
parent ba833422b0
commit 91ce0f9947
4 changed files with 8 additions and 2 deletions

View File

@@ -105,6 +105,6 @@ KepSwitchBootStack(IN ULONG_PTR Stack)
"jmp KepStartKernel\n"
:
: "m" (Stack),
"i" (FLOATING_SAVE_AREA_SIZE | KEXCEPTION_FRAME_SIZE | KSWITCH_FRAME_SIZE),
"i" (FLOATING_SAVE_AREA_SIZE | KEXCEPTION_FRAME_SIZE | KSWITCH_FRAME_SIZE | KRETURN_ADDRESS_SIZE),
"p" (KepStartKernel));
}