1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/cpu/arm7_common/atomic.s
Oleg Hahm 20ce2aee8b cpu: rename arm_common to arm7_common
To be more accurate with the naming and avoid confusions.
2014-11-21 20:27:19 +01:00

26 lines
479 B
ArmAsm

/*
* Copyright (C) 2014 Freie Universität Berlin
*
* This file is subject to the terms and conditions of the GNU Lesser
* General Public License v2.1. See the file LICENSE in the top level
* directory for more details.
*/
/* GCC ARM assembler */
.text
.code 32
.align 4 /* 0 */
/* .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