Changeset e7b7be3f in mainline for uspace/libc/arch/mips32/include
- Timestamp:
- 2007-01-22T13:10:08Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 0f3fc9b
- Parents:
- 62c63fc
- Location:
- uspace/libc/arch/mips32/include
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/libc/arch/mips32/include/atomic.h
r62c63fc re7b7be3f 57 57 long tmp, v; 58 58 59 __asm__volatile (59 asm volatile ( 60 60 "1:\n" 61 61 " ll %0, %1\n" -
uspace/libc/arch/mips32/include/thread.h
r62c63fc re7b7be3f 62 62 tp += MIPS_TP_OFFSET + sizeof(tcb_t); 63 63 64 __asm__volatile ("add $27, %0, $0" : : "r"(tp)); /* Move tls to K1 */64 asm volatile ("add $27, %0, $0" : : "r"(tp)); /* Move tls to K1 */ 65 65 } 66 66 … … 69 69 void * retval; 70 70 71 __asm__volatile("add %0, $27, $0" : "=r"(retval));71 asm volatile("add %0, $27, $0" : "=r"(retval)); 72 72 73 73 return (tcb_t *)(retval - MIPS_TP_OFFSET - sizeof(tcb_t));
Note:
See TracChangeset
for help on using the changeset viewer.
