diff options
Diffstat (limited to 'EdkModulePkg/Library/EdkDxeRuntimeSalLib/Ipf/EsalServiceLib.c')
-rw-r--r-- | EdkModulePkg/Library/EdkDxeRuntimeSalLib/Ipf/EsalServiceLib.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/EdkModulePkg/Library/EdkDxeRuntimeSalLib/Ipf/EsalServiceLib.c b/EdkModulePkg/Library/EdkDxeRuntimeSalLib/Ipf/EsalServiceLib.c index 55a25b46ca..4532155406 100644 --- a/EdkModulePkg/Library/EdkDxeRuntimeSalLib/Ipf/EsalServiceLib.c +++ b/EdkModulePkg/Library/EdkDxeRuntimeSalLib/Ipf/EsalServiceLib.c @@ -83,8 +83,12 @@ Returns: --*/
{
- EfiConvertPointer (0x0, (VOID **) &mPlabel.EntryPoint);
- EfiConvertPointer (EFI_IPF_GP_POINTER, (VOID **) &mPlabel.GP);
+ UINT64 PhysicalEntryPoint;
+
+ PhysicalEntryPoint = mPlabel.EntryPoint;
+
+ EfiConvertPointer (0x0, (VOID **) &mPlabel.EntryPoint);
+ mPlabel.GP += mPlabel.EntryPoint - PhysicalEntryPoint;
SetEsalVirtualEntryPoint (mPlabel.EntryPoint, mPlabel.GP);
}
|