Revision: 14055
          http://edk2.svn.sourceforge.net/edk2/?rev=14055&view=rev
Author:   jljusten
Date:     2013-01-16 06:50:35 +0000 (Wed, 16 Jan 2013)
Log Message:
-----------
OvmfPkg: Fix Xcode assembly issue

The Xcode assembler is much pickier than GCC. Also the 64-bit
linker is not a fan of relocations so it is better to us IP
relative code, but at least it removes a relocation entry.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Andrew Fish <[email protected]>
[[email protected]: use .byte for retfq rather than lret]
Signed-off-by: Jordan Justen <[email protected]>

Modified Paths:
--------------
    trunk/edk2/OvmfPkg/Library/LoadLinuxLib/X64/JumpToKernel.S

Modified: trunk/edk2/OvmfPkg/Library/LoadLinuxLib/X64/JumpToKernel.S
===================================================================
--- trunk/edk2/OvmfPkg/Library/LoadLinuxLib/X64/JumpToKernel.S  2013-01-16 
06:50:21 UTC (rev 14054)
+++ trunk/edk2/OvmfPkg/Library/LoadLinuxLib/X64/JumpToKernel.S  2013-01-16 
06:50:35 UTC (rev 14055)
@@ -32,9 +32,9 @@
 
     // Jump into the compatibility mode CS
     pushq   $0x10
-    leaq    1f, %rax
+    leaq    1f(%rip), %rax
     pushq   %rax
-    retfq
+    .byte   0x48, 0xcb                      ; retfq
 
 1:  // Now in compatibility mode
 .code32

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Master Java SE, Java EE, Eclipse, Spring, Hibernate, JavaScript, jQuery
and much more. Keep your Java skills current with LearnJavaNow -
200+ hours of step-by-step video tutorials by Java experts.
SALE $49.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122612 
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to