Fixed GCC 4.4 build issue due to incorrect prefix. Now using ASM_PFX to correctly...
authorgeekboy15a <geekboy15a@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 16 Apr 2010 22:37:03 +0000 (22:37 +0000)
committergeekboy15a <geekboy15a@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 16 Apr 2010 22:37:03 +0000 (22:37 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10377 6f19259b-4bc3-4df7-8a09-765794883524

MdePkg/Library/BaseLib/X64/Thunk16.S

index 51798dc224deb3c0b1a716ddb4541e4970176039..84cafa19acc5810b6033984022bec354568b5886 100644 (file)
@@ -262,7 +262,7 @@ ASM_PFX(InternalAsmThunk16):
     movl    %edx,%eax                   # eax <- transition code address\r
     andl    $0xf,%edx\r
     shll    $12,%eax                    # segment address in high order 16 bits\r
-    lea     (_BackFromUserCode - ASM_PFX(m16Start))(%rdx), %ax\r
+    lea     (ASM_PFX(BackFromUserCode) - ASM_PFX(m16Start))(%rdx), %ax\r
     stosl                               # [edi] <- return address of user code\r
     sgdt    0x60(%rsp)                  # save GDT stack in argument space\r
     movzwq  0x60(%rsp), %r10            # r10 <- GDT limit \r