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