[SeaBIOS] [PATCH 2/4] smm: Use .code16 not .code16gcc

David Woodhouse dwmw2 at infradead.org
Tue Jun 3 18:28:35 CEST 2014


There's no need to use .code16gcc where we are writing assembler code
explicitly. It only affects word-size-ambiguous instructions, and we
should just be explicit. And we are.

Signed-off-by: David Woodhouse <David.Woodhouse at intel.com>
---
 src/fw/smm.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/fw/smm.c b/src/fw/smm.c
index 0f59f20..77e1e63 100644
--- a/src/fw/smm.c
+++ b/src/fw/smm.c
@@ -19,7 +19,7 @@
 extern u8 smm_relocation_start, smm_relocation_end;
 ASM32FLAT(
     ".global smm_relocation_start, smm_relocation_end\n"
-    "  .code16gcc\n"
+    "  .code16\n"
 
     /* code to relocate SMBASE to 0xa0000 */
     "smm_relocation_start:\n"
@@ -46,7 +46,7 @@ ASM32FLAT(
 extern u8 smm_code_start, smm_code_end;
 ASM32FLAT(
     ".global smm_code_start, smm_code_end\n"
-    "  .code16gcc\n"
+    "  .code16\n"
     "smm_code_start:\n"
     "  rsm\n"
     "smm_code_end:\n"
-- 
1.9.3


-- 
David Woodhouse                            Open Source Technology Centre
David.Woodhouse at intel.com                              Intel Corporation
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 5745 bytes
Desc: not available
URL: <http://www.seabios.org/pipermail/seabios/attachments/20140603/81b456c1/attachment.bin>


More information about the SeaBIOS mailing list