Changeset b4f1171 in mainline for uspace/lib/c/arch/ia32/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/ia32/src/fibril.S
ra5c78a18 rb4f1171 37 37 # pointed by the 1st argument. Returns 0 in EAX. 38 38 # 39 FUNCTION_BEGIN(__ setjmp)39 FUNCTION_BEGIN(__context_save) 40 40 movl 0(%esp), %eax # the caller's return %eip 41 41 movl 4(%esp), %edx # address of the context variable to save context to … … 53 53 movl %eax, __CONTEXT_OFFSET_TLS(%edx) # tls -> ctx->tls 54 54 55 xorl %eax, %eax # __ setjmpreturns 055 xorl %eax, %eax # __context_save returns 0 56 56 ret 57 FUNCTION_END(__ setjmp)57 FUNCTION_END(__context_save) 58 58 59 59 ## Restore saved CPU context … … 62 62 # pointed by the 1st argument. Returns second argument in EAX. 63 63 # 64 FUNCTION_BEGIN(__ longjmp)64 FUNCTION_BEGIN(__context_restore) 65 65 movl 4(%esp), %eax # address of the context variable to restore context from 66 66 movl 8(%esp), %ecx # return value … … 82 82 movl %ecx, %eax 83 83 ret 84 FUNCTION_END(__ longjmp)84 FUNCTION_END(__context_restore) 85 85
Note:
See TracChangeset
for help on using the changeset viewer.