Ignore:
Timestamp:
2013-12-28T17:30:44Z (10 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
41b735f3
Parents:
c1023bcb
Message:

code revision
coding style fixes
removal of debugging printouts and other temporary stuff

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/arch/sparc32/include/libarch/tls.h

    rc1023bcb r1df1905  
    2828 */
    2929
    30 /** @addtogroup libcsparc64
     30/** @addtogroup libcsparc32
    3131 * @{
    3232 */
    33 /**
    34  * @file
    35  * @brief       sparc64 TLS functions.
     33/** @file
     34 * @brief sparc32 TLS functions.
    3635 */
    3736
    38 #ifndef LIBC_sparc64_TLS_H_
    39 #define LIBC_sparc64_TLS_H_
     37#ifndef LIBC_sparc32_TLS_H_
     38#define LIBC_sparc32_TLS_H_
    4039
    4140#define CONFIG_TLS_VARIANT_2
     
    4847static inline void __tcb_set(tcb_t *tcb)
    4948{
    50         asm volatile ("mov %0, %%g7\n" : : "r" (tcb) : "g7");
     49        asm volatile(
     50                "mov %0, %%g7\n"
     51                :: "r" (tcb)
     52                : "g7"
     53        );
    5154}
    5255
    53 static inline tcb_t * __tcb_get(void)
     56static inline tcb_t *__tcb_get(void)
    5457{
    5558        void *retval;
    56 
    57         asm volatile ("mov %%g7, %0\n" : "=r" (retval));
    58 
     59       
     60        asm volatile(
     61                "mov %%g7, %0\n"
     62                : "=r" (retval)
     63        );
     64       
    5965        return retval;
    6066}
Note: See TracChangeset for help on using the changeset viewer.