summaryrefslogtreecommitdiff
path: root/sys/arch/m88k/include/lock.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/m88k/include/lock.h')
-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_ */