2014-05-20 14:22:24 +02:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2014 Freie Universität Berlin
|
|
|
|
*
|
2014-07-31 19:45:27 +02:00
|
|
|
* 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.
|
2014-05-20 14:22:24 +02:00
|
|
|
*/
|
|
|
|
|
2010-09-22 15:10:42 +02:00
|
|
|
/* GCC ARM assembler */
|
|
|
|
|
|
|
|
.text
|
|
|
|
.code 32
|
|
|
|
.align 4 /* 0 */
|
|
|
|
|
2010-10-28 11:22:57 +02:00
|
|
|
/* .extern sched_run*/
|
2010-09-22 15:10:42 +02:00
|
|
|
|
|
|
|
/* 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
|