summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2002-05-10 10:13:28 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2002-05-10 10:13:28 +0000
commitfb683f839aacfea6120acee8af6473f6b6203afa (patch)
tree2e155e45528437506e64bf2bf64877f410a249bd /sys/arch
parentb1392f926e181e704683c571fde508e946bcf365 (diff)
Mark all those __asm directives as clobbering memory, because
that's what they are supposed to do.
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/alpha/include/bwx.h17
1 files changed, 11 insertions, 6 deletions
diff --git a/sys/arch/alpha/include/bwx.h b/sys/arch/alpha/include/bwx.h
index fd7da0c3e82..d6a56f70d72 100644
--- a/sys/arch/alpha/include/bwx.h
+++ b/sys/arch/alpha/include/bwx.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: bwx.h,v 1.3 2001/11/04 23:00:11 art Exp $ */
+/* $OpenBSD: bwx.h,v 1.4 2002/05/10 10:13:27 art Exp $ */
/* $NetBSD: bwx.h,v 1.3 2000/06/08 02:55:37 thorpej Exp $ */
/*-
@@ -90,7 +90,8 @@ alpha_stb(__volatile u_int8_t *a0, u_int8_t a1)
__asm __volatile("stb %1, %0"
: "=m" (*a0)
- : "r" (a1));
+ : "r" (a1)
+ : "memory");
}
static __inline void
@@ -99,7 +100,8 @@ alpha_stw(__volatile u_int16_t *a0, u_int16_t a1)
__asm __volatile("stw %1, %0"
: "=m" (*a0)
- : "r" (a1));
+ : "r" (a1)
+ : "memory");
}
static __inline void
@@ -108,7 +110,8 @@ alpha_stl(__volatile u_int32_t *a0, u_int32_t a1)
__asm __volatile("stl %1, %0"
: "=m" (*a0)
- : "r" (a1));
+ : "r" (a1)
+ : "memory");
}
static __inline u_int8_t
@@ -118,7 +121,8 @@ alpha_sextb(u_int8_t a0)
__asm __volatile("sextb %1, %0"
: "=r" (v0)
- : "r" (a0));
+ : "r" (a0)
+ : "memory");
return (v0);
}
@@ -130,7 +134,8 @@ alpha_sextw(u_int16_t a0)
__asm __volatile("sextw %1, %0"
: "=r" (v0)
- : "r" (a0));
+ : "r" (a0)
+ : "memory");
return (v0);
}