diff --git a/MdeModulePkg/Core/Dxe/SysCall/X64/CoreBootServices.nasm b/MdeModulePkg/Core/Dxe/SysCall/X64/CoreBootServices.nasm
index 16b182a764..3d0e96b5a0 100644
--- a/MdeModulePkg/Core/Dxe/SysCall/X64/CoreBootServices.nasm
+++ b/MdeModulePkg/Core/Dxe/SysCall/X64/CoreBootServices.nasm
@@ -203,7 +203,7 @@ ASM_PFX(CallRing3):
     SetRing3DataSegmentSelectors
 
     ; Prepare SYSRET arguments.
-    mov     rcx, [gRing3EntryPoint]
+    mov     rcx, [ASM_PFX(gRing3EntryPoint)]
     pop     rdx
 
     ; Save Core Stack pointers and switch to User Stack.