3 #include <ndk/i386/segment.h>
5 #define AP_MAGIC (0x12481020)
7 .globl _NtProcessStartup
11 /* FIXME: Application processors should have their own GDT/IDT */
15 /* Load the PCR selector */
16 movl $PCR_SELECTOR, %eax
26 * Reserve space for the floating point save area.
28 subl $SIZEOF_FX_SAVE_AREA, %esp
31 * Call the application processor initialization code
37 /* Load the initial kernel stack */
38 lea _kernel_stack, %eax
41 add $(0x3000 - SIZEOF_FX_SAVE_AREA), %eax
44 /* Call the main kernel initialization */