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

此提交包含在:
2023-11-05 20:07:13 +01:00
父節點 ba833422b0
當前提交 91ce0f9947
共有 4 個檔案被更改,包括 8 行新增2 行删除

查看文件

@@ -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));
}