Compensate missing return address, which is a 4-byte on i686 and an 8-byte on amd64
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
Reference in New Issue
Block a user