Changeset 4928165 in mainline
- Timestamp:
- 2016-05-08T21:18:45Z (9 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 0637ddb
- Parents:
- a0d9abcd
- Location:
- kernel/arch
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/amd64/src/smp/ap.S
ra0d9abcd r4928165 39 39 #include <arch/cpu.h> 40 40 #include <arch/cpuid.h> 41 #include <arch/context_struct.h> 41 42 42 43 .section K_TEXT_START, "ax" … … 98 99 start64: 99 100 movabsq $ctx, %rsp 100 movq (%rsp), %rsp101 movq CONTEXT_OFFSET_SP(%rsp), %rsp 101 102 102 103 pushq $0 -
kernel/arch/ia32/src/smp/ap.S
ra0d9abcd r4928165 38 38 #include <arch/pm.h> 39 39 #include <arch/cpu.h> 40 #include <arch/context_struct.h> 40 41 41 42 .section K_TEXT_START, "ax" … … 74 75 movw %ax, %es 75 76 movw %ax, %ss 76 movl $KA2PA(ctx), %eax 77 movl (%eax), %esp78 subl $ 0x80000000, %esp/* KA2PA(ctx.sp) */77 movl $KA2PA(ctx), %eax /* KA2PA((uintptr_t) &ctx) */ 78 movl CONTEXT_OFFSET_SP(%eax), %esp 79 subl $PA2KA(0), %esp /* KA2PA(ctx.sp) */ 79 80 80 81 /* … … 84 85 call map_kernel_pse 85 86 86 addl $ 0x80000000, %esp /*PA2KA(ctx.sp) */87 addl $PA2KA(0), %esp /* PA2KA(ctx.sp) */ 87 88 88 89 /* create the first stack frame */
Note:
See TracChangeset
for help on using the changeset viewer.