Ignore:
Timestamp:
2007-10-30T22:54:11Z (18 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
4d21cf8
Parents:
b2a0f6dd
Message:

Unify implementations of TLS variant I and variant II alloc_tls() and
free_tls_arch().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/libc/arch/sparc64/include/thread.h

    rb2a0f6dd rfa23560  
    3131 * @{
    3232 */
    33 /**
    34  * @file
    35  * @brief       sparc64 TLS functions.
    36  */
    3733
    3834#ifndef LIBC_sparc64_THREAD_H_
    3935#define LIBC_sparc64_THREAD_H_
    40 
    41 typedef struct {
    42         void *self;
    43         void *fibril_data;
    44 } tcb_t;
    45 
    46 static inline void __tcb_set(tcb_t *tcb)
    47 {
    48         asm volatile ("mov %0, %%g7\n" : : "r" (tcb) : "g7");
    49 }
    50 
    51 static inline tcb_t * __tcb_get(void)
    52 {
    53         void *retval;
    54 
    55         asm volatile ("mov %%g7, %0\n" : "=r" (retval));
    56 
    57         return retval;
    58 }
    5936
    6037#endif
Note: See TracChangeset for help on using the changeset viewer.