Changes in kernel/arch/ia32/src/smp/ap.S [8844e70:0637ddb] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/ia32/src/smp/ap.S
r8844e70 r0637ddb 37 37 #include <arch/mm/page.h> 38 38 #include <arch/pm.h> 39 #include <arch/cpu.h> 40 #include <arch/context_struct.h> 39 41 40 42 .section K_TEXT_START, "ax" … … 63 65 /* switch to protected mode */ 64 66 movl %cr0, %eax 65 orl $ 1, %eax67 orl $CR0_PE, %eax 66 68 movl %eax, %cr0 67 69 jmpl $KTEXT, $jump_to_kernel - BOOT_OFFSET + AP_BOOT_OFFSET … … 73 75 movw %ax, %es 74 76 movw %ax, %ss 75 movl $KA2PA(ctx), %eax 76 movl (%eax), %esp77 subl $0x80000000, %esp/* KA2PA(ctx.sp) */77 movl $KA2PA(ctx), %eax /* KA2PA((uintptr_t) &ctx) */ 78 movl CONTEXT_OFFSET_SP(%eax), %esp 79 leal KA2PA(0)(%esp), %esp /* KA2PA(ctx.sp) */ 78 80 79 81 /* … … 83 85 call map_kernel_pse 84 86 85 addl $ 0x80000000, %esp /*PA2KA(ctx.sp) */87 addl $PA2KA(0), %esp /* PA2KA(ctx.sp) */ 86 88 87 89 /* create the first stack frame */
Note:
See TracChangeset
for help on using the changeset viewer.