Changeset 3b0f1b9a in mainline for uspace/lib/c/arch/amd64/src/fibril.S
- Timestamp:
- 2016-04-12T05:57:00Z (8 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
-
uspace/lib/c/arch/amd64/src/fibril.S
r8844e70 r3b0f1b9a 27 27 # 28 28 29 #include <abi/asmtool.h> 30 #include <libarch/fibril_context.h> 31 29 32 .text 30 31 .global context_save32 .global context_restore33 34 #include <libarch/fibril_context.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: 39 FUNCTION_BEGIN(context_save) 42 40 movq (%rsp), %rdx # the caller's return %eip 43 41 … … 60 58 incl %eax 61 59 ret 60 FUNCTION_END(context_save) 62 61 63 62 ## Restore current CPU context … … 66 65 # pointed by the 1st argument. Returns 0 in EAX. 67 66 # 68 context_restore: 69 67 FUNCTION_BEGIN(context_restore) 70 68 movq CONTEXT_OFFSET_R15(%rdi), %r15 71 69 movq CONTEXT_OFFSET_R14(%rdi), %r14 … … 88 86 xorl %eax, %eax # context_restore returns 0 89 87 ret 88 FUNCTION_END(context_restore) 90 89
Note:
See TracChangeset
for help on using the changeset viewer.