Changeset 3b0f1b9a in mainline for kernel/arch/amd64/src/context.S
- Timestamp:
- 2016-04-12T05:57:00Z (9 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 0f792c28, d84398a7
- Parents:
- 8844e70
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/amd64/src/context.S
r8844e70 r3b0f1b9a 27 27 # 28 28 29 #include <abi/asmtool.h> 30 #include <arch/context_struct.h> 31 29 32 .text 30 31 .global context_save_arch32 .global context_restore_arch33 34 #include <arch/context_struct.h>35 33 36 34 ## Save current CPU context … … 39 37 # pointed by the 1st argument. Returns 1 in EAX. 40 38 # 41 context_save_arch: 39 FUNCTION_BEGIN(context_save_arch) 42 40 movq (%rsp), %rdx # the caller's return %eip 43 41 … … 56 54 incl %eax 57 55 ret 56 FUNCTION_END(context_save_arch) 58 57 59 58 … … 63 62 # pointed by the 1st argument. Returns 0 in EAX. 64 63 # 65 context_restore_arch: 64 FUNCTION_BEGIN(context_restore_arch) 66 65 movq CONTEXT_OFFSET_R15(%rdi), %r15 67 66 movq CONTEXT_OFFSET_R14(%rdi), %r14 … … 79 78 xorl %eax, %eax # context_restore returns 0 80 79 ret 80 FUNCTION_END(context_restore_arch) 81 81
Note:
See TracChangeset
for help on using the changeset viewer.