diff options
author | Jeff Fan <jeff.fan@intel.com> | 2015-07-15 03:37:25 +0000 |
---|---|---|
committer | vanjeff <vanjeff@Edk2> | 2015-07-15 03:37:25 +0000 |
commit | 8018cb158ccd3b466692533532edcd534d4704ff (patch) | |
tree | f478ff6d205efc5a0d49b4ffe477dd1a7d2fb118 /UefiCpuPkg/CpuMpPei/X64 | |
parent | 46ba0f63e9adaa2147366fcbd68c1c6f672b647b (diff) | |
download | edk2-platforms-8018cb158ccd3b466692533532edcd534d4704ff.tar.xz |
UefiCpuPkg/CpuMpPei: Get AP reset code size and far jump information
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan <jeff.fan@intel.com>
Reviewed-by: Feng Tian <feng.tian@intel.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17994 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'UefiCpuPkg/CpuMpPei/X64')
-rw-r--r-- | UefiCpuPkg/CpuMpPei/X64/MpFuncs.asm | 11 | ||||
-rw-r--r-- | UefiCpuPkg/CpuMpPei/X64/MpFuncs.nasm | 11 |
2 files changed, 22 insertions, 0 deletions
diff --git a/UefiCpuPkg/CpuMpPei/X64/MpFuncs.asm b/UefiCpuPkg/CpuMpPei/X64/MpFuncs.asm index 425bc202fd..9e85fac435 100644 --- a/UefiCpuPkg/CpuMpPei/X64/MpFuncs.asm +++ b/UefiCpuPkg/CpuMpPei/X64/MpFuncs.asm @@ -181,6 +181,17 @@ CProcedureInvoke: RendezvousFunnelProc ENDP RendezvousFunnelProcEnd:: +;------------------------------------------------------------------------------------- +; AsmGetAddressMap (&AddressMap); +;------------------------------------------------------------------------------------- +AsmGetAddressMap PROC + mov rax, offset RendezvousFunnelProcStart + mov qword ptr [rcx], rax + mov qword ptr [rcx + 8h], Flat32Start - RendezvousFunnelProcStart + mov qword ptr [rcx + 10h], LongModeStart - RendezvousFunnelProcStart + mov qword ptr [rcx + 18h], RendezvousFunnelProcEnd - RendezvousFunnelProcStart + ret +AsmGetAddressMap ENDP AsmInitializeGdt PROC push rbp diff --git a/UefiCpuPkg/CpuMpPei/X64/MpFuncs.nasm b/UefiCpuPkg/CpuMpPei/X64/MpFuncs.nasm index 3ddf26c29d..09c2fbc15e 100644 --- a/UefiCpuPkg/CpuMpPei/X64/MpFuncs.nasm +++ b/UefiCpuPkg/CpuMpPei/X64/MpFuncs.nasm @@ -175,6 +175,17 @@ CProcedureInvoke: RendezvousFunnelProcEnd: +;------------------------------------------------------------------------------------- +; AsmGetAddressMap (&AddressMap); +;------------------------------------------------------------------------------------- +global ASM_PFX(AsmGetAddressMap) +ASM_PFX(AsmGetAddressMap): + mov rax, ASM_PFX(RendezvousFunnelProc) + mov qword [rcx], rax + mov qword [rcx + 8h], Flat32Start - RendezvousFunnelProcStart + mov qword [rcx + 10h], LongModeStart - RendezvousFunnelProcStart + mov qword [rcx + 18h], RendezvousFunnelProcEnd - RendezvousFunnelProcStart + ret global ASM_PFX(AsmInitializeGdt) ASM_PFX(AsmInitializeGdt): |