1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/cpu/arm_common/atomic.s

18 lines
249 B
ArmAsm
Raw Normal View History

/* GCC ARM assembler */
.text
.code 32
.align 4 /* 0 */
2010-10-28 11:22:57 +02:00
/* .extern sched_run*/
/* Public functions declared in this file */
.global atomic_set_return
.func
atomic_set_return:
SWP r2,r1,[r0]
MOV r0, r2
mov pc, lr
.endfunc