Update of /cvsroot/linux-vax/kernel-2.5/include/asm-vax
In directory sc8-pr-cvs1:/tmp/cvs-serv14781/include/asm-vax
Modified Files:
bitops.h
Log Message:
LOCK_PREFIX is an x86-ism
Index: bitops.h
===================================================================
RCS file: /cvsroot/linux-vax/kernel-2.5/include/asm-vax/bitops.h,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- bitops.h 16 Feb 2003 00:13:16 -0000 1.8
+++ bitops.h 16 Feb 2003 00:23:21 -0000 1.9
@@ -19,8 +19,6 @@
* Updates for 2.4.3+ atp Mar 2002
*/
-#define LOCK_PREFIX ""
-
#define ADDR (*(volatile long *) addr)
@@ -52,7 +50,7 @@
*/
static __inline__ void set_bit(int nr, volatile void * addr)
{
- __asm__ __volatile__( LOCK_PREFIX
+ __asm__ __volatile__(
"bbss %1, %0, 1f\n"
"1:\n"
:"=m" (ADDR)
@@ -88,7 +86,7 @@
*/
static __inline__ void clear_bit(int nr, volatile void * addr)
{
- __asm__ __volatile__( LOCK_PREFIX
+ __asm__ __volatile__(
"bbcc %1,%0, 1f\n"
"1:\n"
:"=m" (ADDR)
@@ -146,7 +144,7 @@
*/
static __inline__ void change_bit(int nr, volatile void * addr)
{
- __asm__ __volatile__( LOCK_PREFIX
+ __asm__ __volatile__(
"bbcs %1,%0,3f\n"
"bbsc %1,%0,3f\n"
"3:"
@@ -167,7 +165,7 @@
int oldbit;
/* there are interlocked versions of bbss and bbcs we could use*/
- __asm__ __volatile__( LOCK_PREFIX
+ __asm__ __volatile__(
"clrl %0\n"
"bbcs %2,%1, 1f\n"
"incl %0\n"
@@ -212,7 +210,7 @@
{
int oldbit;
- __asm__ __volatile__( LOCK_PREFIX
+ __asm__ __volatile__(
"clrl %0\n"
"bbcc %2,%1, 1f\n"
"incl %0\n"
@@ -268,7 +266,7 @@
{
int oldbit;
- __asm__ __volatile__( LOCK_PREFIX
+ __asm__ __volatile__(
"clrl %0\n"
"bbsc %2. %1,4f\n"
"incl %0\n"
|