Changeset 32573ff in mainline for kernel/arch/amd64/src/context.S
- Timestamp:
- 2016-05-02T20:58:16Z (9 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 7c4b26c
- Parents:
- 6adb775f (diff), 5035ba05 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/amd64/src/context.S
r6adb775f r32573ff 29 29 #include <abi/asmtool.h> 30 30 #include <arch/context_struct.h> 31 #include <arch/vreg.h> 31 32 32 33 .text … … 50 51 movq %r14, CONTEXT_OFFSET_R14(%rdi) 51 52 movq %r15, CONTEXT_OFFSET_R15(%rdi) 53 54 movq vreg_ptr, %rsi 55 movq %fs:VREG_TP(%rsi), %rsi 56 movq %rsi, CONTEXT_OFFSET_TP(%rdi) 52 57 53 58 xorl %eax, %eax # context_save returns 1 … … 72 77 movq CONTEXT_OFFSET_SP(%rdi), %rsp # ctx->sp -> %rsp 73 78 74 movq CONTEXT_OFFSET_PC(%rdi), %rdx 75 79 movq CONTEXT_OFFSET_PC(%rdi), %rdx 76 80 movq %rdx, (%rsp) 81 82 movq CONTEXT_OFFSET_TP(%rdi), %rcx 83 movq vreg_ptr, %rsi 84 movq %rcx, %fs:VREG_TP(%rsi) 77 85 78 86 xorl %eax, %eax # context_restore returns 0
Note:
See TracChangeset
for help on using the changeset viewer.