remove trailing whitespace
[coreboot.git] / src / devices / oprom / x86_asm.S
index e355da8fb909a8b027ca8ae112f8688589caa3d4..488bfa6b912e625eae5b56cc4319a053e0e78839 100644 (file)
@@ -66,6 +66,11 @@ __registers = RELOCATED(.)
        .long 0 /* 16 - ESI */
        .long 0 /* 20 - EDI */
 
+/* 256 byte buffer, used by int10 */
+       .globl __buffer
+__buffer = RELOCATED(.)
+       .skip 256
+
        .code32
        .globl __realmode_call
 __realmode_call = RELOCATED(.)
@@ -82,10 +87,10 @@ __realmode_call = RELOCATED(.)
 
        /* entry point */
        movl    36(%ebp), %eax
-       movw    %ax, __lcall_instr + 1
+       mov     %ax, __lcall_instr + 1
        andl    $0xffff0000, %eax
        shrl    $4, %eax
-       movw    %ax, __lcall_instr + 3
+       mov     %ax, __lcall_instr + 3
 
        /* initial register values */
        movl    40(%ebp), %eax
@@ -147,7 +152,7 @@ __realmode_call = RELOCATED(.)
        movl    __registers +  8, %ecx
        movl    __registers + 12, %edx
        movl    __registers + 16, %esi
-       movl    __registers + 20, %edi  
+       movl    __registers + 20, %edi
 
        /* Set all segments to 0x0000, ds to 0x0040 */
        push    %ax
@@ -165,8 +170,8 @@ __lcall_instr = RELOCATED(.)
        .word 0x0000, 0x0000
        /* ************************************ */
 
-       /* If we got here, just about done.
-        * Need to get back to protected mode
+       /* If we got here, we are just about done.
+        * Need to get back to protected mode.
         */
        movl    %cr0, %eax
        orl     $PE, %eax
@@ -178,7 +183,7 @@ __lcall_instr = RELOCATED(.)
        data32  ljmp    $0x10, $RELOCATED(1f)
 1:
        .code32
-       movw    $0x18, %ax
+       mov     $0x18, %ax
        mov     %ax, %ds
        mov     %ax, %es
        mov     %ax, %fs
@@ -250,7 +255,7 @@ __realmode_interrupt = RELOCATED(.)
        data32 ljmp     $0, $RELOCATED(1f)
 1:
 
-       /* put the stack at the end of page zero.  That way we can easily 
+       /* put the stack at the end of page zero.  That way we can easily
         * share it between real mode and protected mode, because %esp and
         * %ss:%sp point to the same memory.
         */
@@ -294,7 +299,7 @@ __intXX_instr = RELOCATED(.)
        data32  ljmp    $0x10, $RELOCATED(1f)
 1:
        .code32
-       movw    $0x18, %ax
+       mov     $0x18, %ax
        mov     %ax, %ds
        mov     %ax, %es
        mov     %ax, %fs
@@ -337,7 +342,7 @@ __interrupt_handler_16bit = RELOCATED(.)
        data32 ljmp    $0x10, $RELOCATED(1f)
 1:
        .code32
-       movw    $0x18, %ax
+       mov     $0x18, %ax
        mov     %ax, %ds
        mov     %ax, %es
        mov     %ax, %fs
@@ -382,13 +387,6 @@ __interrupt_handler_16bit = RELOCATED(.)
        mov     %ax, %ds
        lidt    __realmode_idt
 
-       /* Set up segment registers to segment 0x0000 and ds to 0x040 */
-       mov     %ax, %es
-       mov     %ax, %fs
-       mov     %ax, %gs
-       mov     $0x40, %ax
-       mov     %ax, %ds
-
        /* Restore all registers, including those
         * manipulated by the C handler
         */