mirror of
https://github.com/reactos/reactos.git
synced 2025-04-18 11:36:46 +00:00
Fixed smp boot.
svn path=/trunk/; revision=13796
This commit is contained in:
parent
c8e6164e8c
commit
2078ec7054
1 changed files with 21 additions and 1 deletions
|
@ -6,6 +6,8 @@
|
|||
#include <internal/i386/mm.h>
|
||||
#include <internal/i386/fpu.h>
|
||||
|
||||
#define AP_MAGIC (0x12481020)
|
||||
|
||||
.globl _NtProcessStartup
|
||||
|
||||
_NtProcessStartup:
|
||||
|
@ -17,7 +19,25 @@ _NtProcessStartup:
|
|||
/* Load the PCR selector */
|
||||
movl $PCR_SELECTOR, %eax
|
||||
movl %eax, %fs
|
||||
|
||||
|
||||
cmpl $AP_MAGIC, %ecx
|
||||
jne .m1
|
||||
|
||||
pushl $0
|
||||
popfl
|
||||
|
||||
/*
|
||||
* Reserve space for the floating point save area.
|
||||
*/
|
||||
subl $SIZEOF_FX_SAVE_AREA, %esp
|
||||
|
||||
/*
|
||||
* Call the application processor initialization code
|
||||
*/
|
||||
pushl $0
|
||||
call _KiSystemStartup
|
||||
|
||||
.m1:
|
||||
/* Load the initial kernel stack */
|
||||
lea _kernel_stack, %eax
|
||||
add $0x1000, %eax
|
||||
|
|
Loading…
Reference in a new issue