diff options
author | Ronald G. Minnich <rminnich@gmail.com> | 2009-02-21 17:28:24 +0000 |
---|---|---|
committer | Ronald G. Minnich <rminnich@gmail.com> | 2009-02-21 17:28:24 +0000 |
commit | 509ab45a81573a66d251ca4f0c052e3cb02d598d (patch) | |
tree | 0df868754923a377b9827ae9cdc137b0382ccb34 /arch/x86/secondary.S | |
parent | 5f27d204bc48b2308a038efa3915c723feb02b47 (diff) | |
download | coreboot-509ab45a81573a66d251ca4f0c052e3cb02d598d.tar.gz coreboot-509ab45a81573a66d251ca4f0c052e3cb02d598d.tar.bz2 coreboot-509ab45a81573a66d251ca4f0c052e3cb02d598d.zip |
This is a trivial commit and I want to get other people to look at the code.
I can still get to linux but core1 is not working.
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
Acked-by: Ronald G. Minnich <rminnich@gmail.com>
git-svn-id: svn://coreboot.org/repository/coreboot-v3@1137 f3766cd6-281f-0410-b1cd-43a5c92072e9
Diffstat (limited to 'arch/x86/secondary.S')
-rw-r--r-- | arch/x86/secondary.S | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/arch/x86/secondary.S b/arch/x86/secondary.S index 899f90a50d97..8c9ea898fbe1 100644 --- a/arch/x86/secondary.S +++ b/arch/x86/secondary.S @@ -23,10 +23,9 @@ */ .text .globl _secondary_start, _secondary_start_end - .balign 4096 _secondary_start: .code16 - .long 0 + .balign 4096 cli xorl %eax, %eax movl %eax, %cr3 /* Invalidate TLB*/ @@ -49,6 +48,7 @@ _secondary_start: ljmpl $0x10, $1f 1: .code32 +secondary32: movw $0x18, %ax movw %ax, %ds movw %ax, %es @@ -60,7 +60,8 @@ _secondary_start: lidt idtarg /* Set the stack pointer */ - movl _secondary_start, %esp + movl $_secondary_start-4,%eax + movl 0x0(%eax),%esp call secondary_cpu_init 1: hlt |