Changes in kernel/arch/amd64/src/context.S [3b0f1b9a:1a5eca4] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/amd64/src/context.S
r3b0f1b9a r1a5eca4 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.