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

Tento commit je obsažen v:
2023-11-05 20:07:13 +01:00
rodič ba833422b0
revize 91ce0f9947
4 změnil soubory, kde provedl 8 přidání a 2 odebrání

Zobrazit soubor

@@ -106,7 +106,7 @@ KepSwitchBootStack(IN ULONG_PTR Stack)
"jmp _KepStartKernel@0\n"
:
: "m" (Stack),
"i" (KTRAP_FRAME_ALIGN | KTRAP_FRAME_SIZE | NPX_FRAME_SIZE),
"i" (KTRAP_FRAME_ALIGN | KTRAP_FRAME_SIZE | NPX_FRAME_SIZE | KRETURN_ADDRESS_SIZE),
"i" (CR0_EM | CR0_MP | CR0_TS),
"p" (KepStartKernel));
}