]> xenbits.xensource.com Git - people/julieng/freebsd.git/commitdiff
x86/xen: Cleanup in xen-os.h
authorJulien Grall <julien.grall@citrix.com>
Thu, 15 Oct 2015 11:27:02 +0000 (12:27 +0100)
committerJulien Grall <julien.grall@citrix.com>
Fri, 16 Oct 2015 16:31:43 +0000 (17:31 +0100)
sys/x86/include/xen/xen-os.h

index 79e917baf6e660b78d43d86dbdde2f9de02d08dd..e3b91bff7b95a39a486f716f6f2e05bf28497b6d 100644 (file)
@@ -43,8 +43,6 @@ static inline void rep_nop(void)
 /* This is a barrier for the compiler only, NOT the processor! */
 #define barrier() __asm__ __volatile__("": : :"memory")
 
-#define LOCK_PREFIX ""
-#define LOCK ""
 #define ADDR (*(volatile long *) addr)
 
 static __inline int constant_test_bit(int nr, const volatile void * addr)
@@ -80,7 +78,7 @@ static __inline int variable_test_bit(int nr, volatile void * addr)
  */
 static __inline__ void set_bit(int nr, volatile void * addr)
 {
-        __asm__ __volatile__( LOCK_PREFIX
+        __asm__ __volatile__(
                 "btsl %1,%0"
                 :"=m" (ADDR)
                 :"Ir" (nr));