Sign in
gem5
/
arm
/
linux
/
a50829479f58416a013a4ccca791336af3c584c7
/
.
/
tools
/
include
/
linux
/
spinlock.h
blob: 58397dcb19d6092a607478d070a850f162e49bed [
file
] [
log
] [
blame
]
#define
spinlock_t
pthread_mutex_t
#define
DEFINE_SPINLOCK
(
x
)
pthread_mutex_t
x
=
PTHREAD_MUTEX_INITIALIZER
;
#define
spin_lock_irqsave
(
x
,
f
)
(
void
)
f
,
pthread_mutex_lock
(
x
)
#define
spin_unlock_irqrestore
(
x
,
f
)
(
void
)
f
,
pthread_mutex_unlock
(
x
)