More problems, not quite there.

This commit is contained in:
Ronald G. Minnich 2002-10-17 23:07:48 +00:00
commit 31accf273f

View file

@ -1,8 +1,9 @@
#include <arch/asm.h>
#include <arch/intel.h>
.text
#include <cpu/p6/mtrr.h>
#include <cpu/p6/apic.h>
.text
#include <arch/asm.h>
#include <arch/intel.h>
.globl _secondary_start
.balign 4096
_secondary_start:
@ -44,6 +45,9 @@ _secondary_start:
orl $APIC_DEFAULT_BASE, %eax
wrmsr
/* Do I want to set the absolute memory limits in C ? */
CALLSP(set_memory_size)
/* Get the apic_id */
movl (APIC_ID + APIC_DEFAULT_BASE), %edi
shrl $24, %edi
@ -65,12 +69,11 @@ _secondary_start:
subl %eax, %esp
call EXT(secondary_cpu_init)
1: hlt
jmp 1b
jmp __cpu_reset
gdtaddr:
.word gdt_limit /* the table limit */
.long gdt /* we know the offset */
.word gdt_end - gdt - 1 /* compute the table limit */
.long gdt /* we know the offset */
.previous
.code32