Changeset bac86377 in mainline
- Timestamp:
- 2010-01-08T20:13:42Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 4290746
- Parents:
- 8fb47ec0
- Location:
- kernel/arch/ia32
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/ia32/include/context.h
r8fb47ec0 rbac86377 49 49 #define SP_DELTA (8 + STACK_ITEM_SIZE) 50 50 51 #define context_set(c, _pc, stack, size) \ 52 do { \ 53 (c)->pc = (uintptr_t) (_pc); \ 54 (c)->sp = ((uintptr_t) (stack)) + (size) - SP_DELTA; \ 55 (c)->ebp = 0; \ 56 } while (0) 57 51 58 #endif /* KERNEL */ 52 59 -
kernel/arch/ia32/src/boot/boot.S
r8fb47ec0 rbac86377 94 94 pushl grub_eax 95 95 call arch_pre_main 96 97 # Create the first stack frame 98 pushl $0 99 movl %esp, %ebp 96 100 97 101 call main_bsp -
kernel/arch/ia32/src/smp/ap.S
r8fb47ec0 rbac86377 78 78 addl $0x80000000, %esp # PA2KA(ctx.sp) 79 79 80 pushl $0 # create the first stack frame 81 movl %esp, %ebp 82 80 83 jmpl $KTEXT, $main_ap 81 84
Note:
See TracChangeset
for help on using the changeset viewer.