Changeset 55f068c in mainline for uspace/lib/c/arch/ia32/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/ia32/src/fibril.S
r615e83d r55f068c 37 37 # pointed by the 1st argument. Returns 0 in EAX. 38 38 # 39 FUNCTION_BEGIN( setjmp)39 FUNCTION_BEGIN(__setjmp) 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 # setjmp returns 055 xorl %eax, %eax # __setjmp returns 0 56 56 ret 57 FUNCTION_END( setjmp)57 FUNCTION_END(__setjmp) 58 58 59 59 ## Restore saved CPU context
Note:
See TracChangeset
for help on using the changeset viewer.