Changeset 55f068c in mainline for uspace/lib/c/arch/amd64/src/fibril.S
- Timestamp:
- 2018-03-11T17:15:15Z (7 years ago)
- Children:
- 12ae6d8
- Parents:
- 615e83d
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-03-11 17:07:39)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-03-11 17:15:15)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/arch/amd64/src/fibril.S
r615e83d r55f068c 35 35 # 36 36 # Save CPU context to context_t variable 37 # pointed by the 1st argument. Returns 0 in EAX.37 # pointed by the 1st argument. Returns 0 in RAX. 38 38 # 39 FUNCTION_BEGIN( setjmp)39 FUNCTION_BEGIN(__setjmp) 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 # setjmp returns 056 xorq %rax, %rax # __setjmp returns 0 57 57 ret 58 FUNCTION_END( setjmp)58 FUNCTION_END(__setjmp) 59 59 60 60 ## Restore current CPU context 61 61 # 62 62 # Restore CPU context from context_t variable 63 # pointed by the 1st argument. Returns RSI in EAX.63 # pointed by the 1st argument. Returns second argument in RAX. 64 64 # 65 65 FUNCTION_BEGIN(__longjmp)
Note:
See TracChangeset
for help on using the changeset viewer.