/* 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 */
/* Save the BIST value */
movl %eax, %ebp
- post_code(0x10) /* post 10 */
+ post_code(POST_ENTER_PROTECTED_MODE)
movw $ROM_DATA_SEG, %ax
movw %ax, %ds