Changeset b4f1171 in mainline for uspace/lib/c/arch/amd64/src/fibril.S
- Timestamp:
- 2019-02-03T14:56:13Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 8f99dbf
- Parents:
- a5c78a18
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2019-02-03 14:49:38)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2019-02-03 14:56:13)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/arch/amd64/src/fibril.S
ra5c78a18 rb4f1171 37 37 # pointed by the 1st argument. Returns 0 in RAX. 38 38 # 39 FUNCTION_BEGIN(__ setjmp)39 FUNCTION_BEGIN(__context_save) 40 40 movq (%rsp), %rdx # the caller's return %eip 41 41 … … 54 54 movq %rax, __CONTEXT_OFFSET_TLS(%rdi) 55 55 56 xorq %rax, %rax # __ setjmpreturns 056 xorq %rax, %rax # __context_save returns 0 57 57 ret 58 FUNCTION_END(__ setjmp)58 FUNCTION_END(__context_save) 59 59 60 60 ## Restore current CPU context … … 63 63 # pointed by the 1st argument. Returns second argument in RAX. 64 64 # 65 FUNCTION_BEGIN(__ longjmp)65 FUNCTION_BEGIN(__context_restore) 66 66 movq __CONTEXT_OFFSET_R15(%rdi), %r15 67 67 movq __CONTEXT_OFFSET_R14(%rdi), %r14 … … 80 80 movq %rdi, %fs:0 81 81 82 movq %rsi, %rax # __ longjmpreturns second argument82 movq %rsi, %rax # __context_restore returns second argument 83 83 ret 84 FUNCTION_END(__ longjmp)84 FUNCTION_END(__context_restore) 85 85
Note:
See TracChangeset
for help on using the changeset viewer.