Changeset e4c8e751 in mainline


Ignore:
Timestamp:
2013-05-30T22:33:52Z (12 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
0e575cd
Parents:
9ce0683
Message:

cstyle

Location:
uspace/lib/c/arch/amd64/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/arch/amd64/src/entryjmp.s

    r9ce0683 re4c8e751  
    3939        mov %rdi, %rdx
    4040        mov %rsi, %rdi
    41 
     41       
    4242        # jump to entry point
    4343        jmp %rdx
  • uspace/lib/c/arch/amd64/src/fibril.S

    r9ce0683 re4c8e751  
    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 
    5554
    5655## Restore current CPU context
     
    6463       
    6564        movq %rdx,(%rsp)
    66 
     65       
    6766        # Set thread local storage
    68         movq OFFSET_TLS(%rdi), %rdi   # Set arg1 to TLS addr
    69         movl $1, %eax           # SYS_TLS_SET
     67        movq OFFSET_TLS(%rdi), %rdi  # Set arg1 to TLS addr
     68        movl $1, %eax                # SYS_TLS_SET
    7069        syscall
    71 
    72         xorl %eax, %eax         # context_restore returns 0
     70       
     71        xorl %eax, %eax              # context_restore returns 0
    7372        ret
  • uspace/lib/c/arch/amd64/src/thread_entry.s

    r9ce0683 re4c8e751  
    4040        pushq $0
    4141        movq %rsp, %rbp
    42 
     42       
    4343        #
    4444        # RAX contains address of uarg
Note: See TracChangeset for help on using the changeset viewer.