-#include <arch/asm.h>
-#include <arch/intel.h>
#include <cpu/x86/mtrr.h>
#include <cpu/x86/lapic_def.h>
+
.text
- .globl _secondary_start
+ .globl _secondary_start, _secondary_start_end
.balign 4096
_secondary_start:
.code16
orl $0x60000001, %eax /* CD, NW, PE = 1 */
movl %eax, %cr0
- ljmpl $0x10, $1f
-1:
+ ljmpl $0x10, $1f
+1:
.code32
movw $0x18, %ax
movw %ax, %ds
jmp 1b
gdtaddr:
- .word gdt_limit /* the table limit */
- .long gdt /* we know the offset */
-
+ .word gdt_limit /* the table limit */
+ .long gdt /* we know the offset */
+_secondary_start_end:
.code32