]> xenbits.xensource.com Git - seabios.git/commitdiff
romlayout: Use .code16 not .code16gcc
authorDavid Woodhouse <dwmw2@infradead.org>
Tue, 3 Jun 2014 16:28:49 +0000 (17:28 +0100)
committerKevin O'Connor <kevin@koconnor.net>
Thu, 5 Jun 2014 14:58:29 +0000 (10:58 -0400)
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@intel.com>
src/romlayout.S

index 68c43235bb7edfd7002e7043dda402224541a0ef..807196305d34711b357040b36159cebd38558ff5 100644 (file)
@@ -21,7 +21,7 @@
 // %edx = return location (in 32bit mode)
 // Clobbers: ecx, flags, segment registers, cr0, idt/gdt
         DECLFUNC transition32
-        .code16gcc
+        .code16
 transition32_for_smi:
         movl %eax, %ecx
         jmp 1f
@@ -104,7 +104,7 @@ transition16big:
 
         ljmpw $SEG32_MODE16BIG_CS, $1f
 
-        .code16gcc
+        .code16
 1:
         // Disable protected mode
         movl %cr0, %eax
@@ -147,7 +147,7 @@ __call16big:
         jmp transition16big
 
         // Make call.
-        .code16gcc
+        .code16
 1:      movl $_zonelow_seg, %edx        // Adjust %ds, %ss, and %esp
         movl %edx, %ds
         movzwl StackSeg, %edx
@@ -179,7 +179,7 @@ __call16big:
 // Far call a 16bit function from 16bit mode with a specified cpu register state
 // %eax = address of struct bregs, %edx = segment of struct bregs
 // Clobbers: %e[bc]x, %e[ds]i, flags
-        .code16gcc
+        .code16
         DECLFUNC __farcall16
 __farcall16:
         // Save %edx/%eax, %ebp
@@ -272,7 +272,7 @@ entry_smi:
 1:      movl $BUILD_SMM_ADDR + 0x8000, %esp
         calll _cfunc32flat_handle_smi - BUILD_BIOS_ADDR
         rsm
-        .code16gcc
+        .code16
 
 // Entry point for QEMU smp sipi interrupts.
         DECLFUNC entry_smp
@@ -292,7 +292,7 @@ entry_smp:
         movl $0, SMPLock
 3:      hlt
         jmp 3b
-        .code16gcc
+        .code16
 
 // Resume (and reboot) entry point - called from entry_post
         DECLFUNC entry_resume
@@ -406,7 +406,7 @@ entry_pcibios32:
         popfl
         lretl
 
-        .code16gcc
+        .code16
         DECLFUNC entry_pcibios16
 entry_pcibios16:
         ENTRY_ARG handle_pcibios
@@ -455,7 +455,7 @@ entry_elf:
         movl $BUILD_STACK_ADDR, %esp
         ljmpl $SEG32_MODE32_CS, $_cfunc32flat_handle_post
 
-        .code16gcc
+        .code16
 
 // UEFI Compatibility Support Module (CSM) entry point
         EXPORTFUNC entry_csm
@@ -487,7 +487,7 @@ entry_csm:
 __csm_return:
         movl $1f, %edx
         jmp transition16big
-        .code16gcc
+        .code16
 
         // Switch back to original stack
 1:      movzwl BREGS_code+2(%eax), %edx