summaryrefslogtreecommitdiff
path: root/sys/arch/m88k/include
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2006-11-18 22:47:14 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2006-11-18 22:47:14 +0000
commita92f90b45d06b1f85510f0ccd8c117898d4e5186 (patch)
tree77063ef2542ea1d2ea02c2f0ccc1e3212b357623 /sys/arch/m88k/include
parent48d70e184ce809b7fe79cb52ff12704d22b569cb (diff)
No need to use xmem when unlocking a simple_lock.
Diffstat (limited to 'sys/arch/m88k/include')
-rw-r--r--sys/arch/m88k/include/lock.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/arch/m88k/include/lock.h b/sys/arch/m88k/include/lock.h
index 092b4bd6d0c..ef6ef14556d 100644
--- a/sys/arch/m88k/include/lock.h
+++ b/sys/arch/m88k/include/lock.h
@@ -1,6 +1,6 @@
#ifndef _M88K_LOCK_H_
#define _M88K_LOCK_H_
-/* $OpenBSD: lock.h,v 1.1 2005/12/03 19:04:06 miod Exp $ */
+/* $OpenBSD: lock.h,v 1.2 2006/11/18 22:47:13 miod Exp $ */
/*
* Copyright (c) 2005, Miodrag Vallat.
@@ -67,8 +67,7 @@ __cpu_simple_lock_try(__cpu_simple_lock_t *l)
static __inline__ void
__cpu_simple_unlock(__cpu_simple_lock_t *l)
{
- __asm__ __volatile__
- ("xmem r0, %0, r0" : : "r" (l));
+ *l = __SIMPLELOCK_UNLOCKED;
}
#endif /* _M88K_LOCK_H_ */