L4Re Operating System Framework
Interface and Usage Documentation
Loading...
Searching...
No Matches
atomic.h
Go to the documentation of this file.
1
6
/*
7
* (c) 2008-2009 Adam Lackorzynski <adam@os.inf.tu-dresden.de>,
8
* Alexander Warg <warg@os.inf.tu-dresden.de>
9
* economic rights: Technische Universität Dresden (Germany)
10
*
11
* This file is part of TUD:OS and distributed under the terms of the
12
* GNU General Public License 2.
13
* Please see the COPYING-GPL-2 file for details.
14
*
15
* As a special exception, you may use this file as part of a free software
16
* library without restriction. Specifically, if other files instantiate
17
* templates or use macros or inline functions from this file, or you compile
18
* this file and link it with other files to produce an executable, this
19
* file does not by itself cause the resulting executable to be covered by
20
* the GNU General Public License. This exception does not however
21
* invalidate any other reasons why the executable file might be covered by
22
* the GNU General Public License.
23
*/
24
#pragma once
25
26
#include <
l4/sys/compiler.h
>
27
28
EXTERN_C
long
int
29
l4_atomic_add(
volatile
long
int
* mem,
long
int
offset)
L4_NOTHROW
L4_LONG_CALL;
30
31
EXTERN_C
long
int
32
l4_atomic_xchg(
volatile
long
int
* mem,
long
int
newval)
L4_NOTHROW
L4_LONG_CALL;
33
34
EXTERN_C
long
int
35
l4_atomic_cmpxchg(
volatile
long
int
* mem,
long
int
oldval,
long
int
newval)
L4_NOTHROW
L4_LONG_CALL;
compiler.h
L4 compiler related defines.
L4_NOTHROW
#define L4_NOTHROW
Mark a function declaration and definition as never throwing an exception.
Definition
compiler.h:188
EXTERN_C
#define EXTERN_C
Mark C types and functions.
Definition
compiler.h:194
arm
l4
sys
atomic.h
Generated on Sat Aug 24 2024 16:07:21 for L4Re Operating System Framework by
1.9.8