Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/arch/amd64/src/fibril.S

    re4c8e751 r9d58539  
    4242        movq (%rsp), %rdx     # the caller's return %eip
    4343       
    44         # in %edi is passed 1st argument
     44        # In %edi is passed 1st argument
    4545        CONTEXT_SAVE_ARCH_CORE %rdi %rdx
    4646       
    47         # save TLS
     47        # Save TLS
    4848        movq %fs:0, %rax
    4949        movq %rax, OFFSET_TLS(%rdi)
    50        
    51         xorl %eax, %eax       # context_save returns 1
     50               
     51        xorl %eax, %eax         # context_save returns 1
    5252        incl %eax
    5353        ret
     54
    5455
    5556## Restore current CPU context
     
    6364       
    6465        movq %rdx,(%rsp)
    65        
     66
    6667        # Set thread local storage
    67         movq OFFSET_TLS(%rdi), %rdi  # Set arg1 to TLS addr
    68         movl $1, %eax                # SYS_TLS_SET
     68        movq OFFSET_TLS(%rdi), %rdi   # Set arg1 to TLS addr
     69        movl $1, %eax           # SYS_TLS_SET
    6970        syscall
    70        
    71         xorl %eax, %eax              # context_restore returns 0
     71
     72        xorl %eax, %eax         # context_restore returns 0
    7273        ret
Note: See TracChangeset for help on using the changeset viewer.