Revision: 16025
          http://sourceforge.net/p/edk2/code/16025
Author:   jljusten
Date:     2014-09-01 17:24:08 +0000 (Mon, 01 Sep 2014)
Log Message:
-----------
MdePkg BaseLib NASM Thunk16: Initialize _16GdtrBase to 0

Previously we were setting it to the start of the GDT in the UEFI
driver's copy of BaseLib. This address is irrelavent, since the C code
will initialize it to the cooresponding address after the Thunk16 code
has been placed in low memory.

Additionally, initializing this was causing a link error for the
XCLANG toolchain.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jordan Justen <[email protected]>
Reviewed-by: Liming Gao <[email protected]>

Modified Paths:
--------------
    trunk/edk2/MdePkg/Library/BaseLib/Ia32/Thunk16.nasm
    trunk/edk2/MdePkg/Library/BaseLib/X64/Thunk16.nasm

Modified: trunk/edk2/MdePkg/Library/BaseLib/Ia32/Thunk16.nasm
===================================================================
--- trunk/edk2/MdePkg/Library/BaseLib/Ia32/Thunk16.nasm 2014-09-01 17:23:57 UTC 
(rev 16024)
+++ trunk/edk2/MdePkg/Library/BaseLib/Ia32/Thunk16.nasm 2014-09-01 17:24:08 UTC 
(rev 16025)
@@ -139,7 +139,7 @@
 _16Gdtr:
         DW      GdtEnd - _NullSegDesc - 1
 _16GdtrBase:
-        DD      _NullSegDesc
+        DD      0
 
 ;------------------------------------------------------------------------------
 ; _ToUserCode() takes control in real mode before passing control to user code.

Modified: trunk/edk2/MdePkg/Library/BaseLib/X64/Thunk16.nasm
===================================================================
--- trunk/edk2/MdePkg/Library/BaseLib/X64/Thunk16.nasm  2014-09-01 17:23:57 UTC 
(rev 16024)
+++ trunk/edk2/MdePkg/Library/BaseLib/X64/Thunk16.nasm  2014-09-01 17:24:08 UTC 
(rev 16025)
@@ -145,7 +145,7 @@
 _16Gdtr:
         DW      GDT_SIZE - 1
 _16GdtrBase:
-        DQ      _NullSeg
+        DQ      0
 _16Idtr:
         DW      (1 << 10) - 1
         DD      0


------------------------------------------------------------------------------
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to