Home
last modified time | relevance | path

Searched refs:temp (Results 1 – 4 of 4) sorted by relevance

/libcpu/m16c/m16c62p/
A Dcpuport.c97 register rt_uint16_t temp; in rt_hw_interrupt_disable() local
99 asm("STC FLG, %0":"=r" (temp)); in rt_hw_interrupt_disable()
102 return (rt_base_t)temp; in rt_hw_interrupt_disable()
107 register rt_uint16_t temp; in rt_hw_interrupt_enable() local
109 temp = level & 0xffff; in rt_hw_interrupt_enable()
110 asm("LDC %0, FLG": :"r" (temp)); in rt_hw_interrupt_enable()
/libcpu/aarch64/common/
A Dcpu.c87 union _spinlock temp; in rt_hw_spin_trylock() local
91 temp._value = readonce; in rt_hw_spin_trylock()
93 if (temp.ticket.owner != temp.ticket.next) in rt_hw_spin_trylock()
99 temp.ticket.next += 1; in rt_hw_spin_trylock()
101 &lock->_value, &readonce, temp._value, in rt_hw_spin_trylock()
/libcpu/risc-v/common/
A Datomic_riscv.c104 rt_atomic_t temp = 1; in rt_hw_atomic_flag_test_and_set() local
106 asm volatile ("amoor.w %0, %1, (%2)" : "=r"(result) : "r"(temp), "r"(ptr) : "memory"); in rt_hw_atomic_flag_test_and_set()
108 asm volatile ("amoor.d %0, %1, (%2)" : "=r"(result) : "r"(temp), "r"(ptr) : "memory"); in rt_hw_atomic_flag_test_and_set()
/libcpu/arm/common/
A Datomic_arm.c176 rt_atomic_t temp = *old; in rt_hw_atomic_compare_exchange_strong() local
180 if (result != temp) in rt_hw_atomic_compare_exchange_strong()
187 return (result == temp); in rt_hw_atomic_compare_exchange_strong()

Completed in 4 milliseconds