Remove whitespace.
[coreboot.git] / src / cpu / x86 / 32bit / entry32.inc
index 2cea40f8a71d8efcda5d98a2389cf132521dd950..f74e1b87374e2f11af1fa7b7f60e3c17da1d4f1c 100644 (file)
@@ -1,16 +1,18 @@
 /* For starting coreboot in protected mode */
 
 #include <arch/rom_segs.h>
+#include <cpu/x86/post_code.h>
 
-/*     .section ".rom.text" */
        .code32
 
+
+       /* This is the GDT for the ROM stage part of coreboot. It
+        * is different from the RAM stage GDT which is defined in
+        * c_start.S
+        */
+
        .align  4
 .globl gdtptr
-
-       /* This is the gdt for ROMCC/ASM part of coreboot.
-        * It is different from the gdt in GCC part of coreboot
-        * which is defined in c_start.S */
 gdt:
 gdtptr:
        .word   gdt_end - gdt -1 /* compute the table limit */
@@ -18,23 +20,23 @@ gdtptr:
        .word   0
 
        /* selgdt 0x08, flat code segment */
-       .word   0xffff, 0x0000          
-       .byte   0x00, 0x9b, 0xcf, 0x00 /* G=1 and 0x0f, So we get 4Gbytes for limit */  
+       .word   0xffff, 0x0000
+       .byte   0x00, 0x9b, 0xcf, 0x00 /* G=1 and 0x0f, So we get 4Gbytes for limit */
 
        /* selgdt 0x10,flat data segment */
-       .word   0xffff, 0x0000          
+       .word   0xffff, 0x0000
        .byte   0x00, 0x93, 0xcf, 0x00
 
 gdt_end:
-       
+
 
 /*
- *     When we come here we are in protected mode. We expand 
+ *     When we come here we are in protected mode. We expand
  *     the stack and copies the data segment from ROM to the
  *     memory.
  *
  *     After that, we call the chipset bootstrap routine that
- *     does what is left of the chipset initialization. 
+ *     does what is left of the chipset initialization.
  *
  *     NOTE aligned to 4 so that we are sure that the prefetch
  *     cache will be reloaded.
@@ -45,12 +47,12 @@ protected_start:
 
        lgdt    %cs:gdtptr
        ljmp    $ROM_CODE_SEG, $__protected_start
-       
+
 __protected_start:
        /* Save the BIST value */
        movl    %eax, %ebp
 
-       intel_chip_post_macro(0x10)     /* post 10 */
+       post_code(POST_ENTER_PROTECTED_MODE)
 
        movw    $ROM_DATA_SEG, %ax
        movw    %ax, %ds