summaryrefslogtreecommitdiff
path: root/arch/sh/src/sh_atomic.h
blob: 054c2a326617961f9871e434edc72cd250b2c57e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#ifndef _SH_ATOMIC_H
#define _SH_ATOMIC_H

#define SH_A_GUSA 0
#define SH_A_LLSC 1
#define SH_A_CAS 2
#if !defined(__SH3__) && !defined(__SH4__)
#define SH_A_IMASK 3
#else
#define SH_A_IMASK -1LL /* unmatchable by unsigned int */
#endif

extern __attribute__((__visibility__("hidden"))) unsigned __sh_atomic_model;

#endif