Changeset 18b6a88 in mainline for uspace/lib/c/arch


Ignore:
Timestamp:
2018-04-15T09:35:04Z (7 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c1f44ca
Parents:
8ebe212
Message:

More ccheck fixes, sometimes with manual intervention.

Location:
uspace/lib/c/arch
Files:
2 edited

Legend:

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

    r8ebe212 r18b6a88  
    6969        tp += MIPS_TP_OFFSET + sizeof(tcb_t);
    7070
    71         asm volatile ("add $27, %0, $0" : : "r"(tp)); /* Move tls to K1 */
     71        asm volatile ("add $27, %0, $0" : : "r" (tp)); /* Move tls to K1 */
    7272}
    7373
    74 static inline tcb_t * __tcb_get(void)
     74static inline tcb_t *__tcb_get(void)
    7575{
    76         void * retval;
     76        void *retval;
    7777
    78         asm volatile("add %0, $27, $0" : "=r"(retval));
     78        asm volatile ("add %0, $27, $0" : "=r" (retval));
    7979
    8080        return (tcb_t *)(retval - MIPS_TP_OFFSET - sizeof(tcb_t));
  • uspace/lib/c/arch/sparc64/include/libarch/syscall.h

    r8ebe212 r18b6a88  
    6060
    6161        asm volatile (
    62                 "ta %7\n"
    63                 : "=r" (a1)
    64                 : "r" (a1), "r" (a2), "r" (a3), "r" (a4), "r" (a5), "r" (a6),
    65                   "i" (id)
    66                 : "memory"
     62            "ta %7\n"
     63            : "=r" (a1)
     64            : "r" (a1), "r" (a2), "r" (a3), "r" (a4), "r" (a5), "r" (a6),
     65              "i" (id)
     66            : "memory"
    6767        );
    6868
Note: See TracChangeset for help on using the changeset viewer.