Changes in uspace/lib/c/arch/amd64/src/fibril.S [e4c8e751:9d58539] in mainline
- File:
-
- 1 edited
-
uspace/lib/c/arch/amd64/src/fibril.S (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/arch/amd64/src/fibril.S
re4c8e751 r9d58539 42 42 movq (%rsp), %rdx # the caller's return %eip 43 43 44 # in %edi is passed 1st argument44 # In %edi is passed 1st argument 45 45 CONTEXT_SAVE_ARCH_CORE %rdi %rdx 46 46 47 # save TLS47 # Save TLS 48 48 movq %fs:0, %rax 49 49 movq %rax, OFFSET_TLS(%rdi) 50 51 xorl %eax, %eax # context_save returns 150 51 xorl %eax, %eax # context_save returns 1 52 52 incl %eax 53 53 ret 54 54 55 55 56 ## Restore current CPU context … … 63 64 64 65 movq %rdx,(%rsp) 65 66 66 67 # Set thread local storage 67 movq OFFSET_TLS(%rdi), %rdi # Set arg1 to TLS addr68 movl $1, %eax # SYS_TLS_SET68 movq OFFSET_TLS(%rdi), %rdi # Set arg1 to TLS addr 69 movl $1, %eax # SYS_TLS_SET 69 70 syscall 70 71 xorl %eax, %eax # context_restore returns 071 72 xorl %eax, %eax # context_restore returns 0 72 73 ret
Note:
See TracChangeset
for help on using the changeset viewer.
