summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2014-03-25 03:53:36 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2014-03-25 03:53:36 +0000
commit390e96d9d825f1c42671de83f711ae260400a74f (patch)
treee7b355da597bf39c80536df2cb50839a2e2dc66f
parent1191fcbd26db3675f1291fd568d5043416fa279c (diff)
the memory constraints are correct on the MD_SWAPIO bits, so we dont need
the extra restrictions that __volatile provides on the __asm statements.
-rw-r--r--sys/arch/sparc64/include/endian.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/sys/arch/sparc64/include/endian.h b/sys/arch/sparc64/include/endian.h
index 21a57bac38c..14d0ff09251 100644
--- a/sys/arch/sparc64/include/endian.h
+++ b/sys/arch/sparc64/include/endian.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: endian.h,v 1.4 2014/03/14 10:47:21 dlg Exp $ */
+/* $OpenBSD: endian.h,v 1.5 2014/03/25 03:53:35 dlg Exp $ */
#ifndef _MACHINE_ENDIAN_H_
#define _MACHINE_ENDIAN_H_
@@ -14,7 +14,7 @@ __mswap16(volatile __uint16_t *m)
{
__uint16_t v;
- __asm __volatile("lduha [%1] %2, %0 ! %3"
+ __asm("lduha [%1] %2, %0 ! %3"
: "=r" (v)
: "r" (m), "n" (ASI_P_L), "m" (*m));
@@ -26,7 +26,7 @@ __mswap32(volatile __uint32_t *m)
{
__uint32_t v;
- __asm __volatile("lduwa [%1] %2, %0 ! %3"
+ __asm("lduwa [%1] %2, %0 ! %3"
: "=r" (v)
: "r" (m), "n" (ASI_P_L), "m" (*m));
@@ -38,7 +38,7 @@ __mswap64(volatile __uint64_t *m)
{
__uint64_t v;
- __asm __volatile("ldxa [%1] %2, %0 ! %3"
+ __asm("ldxa [%1] %2, %0 ! %3"
: "=r" (v)
: "r" (m), "n" (ASI_P_L), "m" (*m));
@@ -48,7 +48,7 @@ __mswap64(volatile __uint64_t *m)
static inline void
__swapm16(volatile __uint16_t *m, __uint16_t v)
{
- __asm __volatile("stha %1, [%2] %3 ! %0"
+ __asm("stha %1, [%2] %3 ! %0"
: "=m" (*m)
: "r" (v), "r" (m), "n" (ASI_P_L));
}
@@ -56,7 +56,7 @@ __swapm16(volatile __uint16_t *m, __uint16_t v)
static inline void
__swapm32(volatile __uint32_t *m, __uint32_t v)
{
- __asm __volatile("stwa %1, [%2] %3 ! %0"
+ __asm("stwa %1, [%2] %3 ! %0"
: "=m" (*m)
: "r" (v), "r" (m), "n" (ASI_P_L));
}
@@ -64,7 +64,7 @@ __swapm32(volatile __uint32_t *m, __uint32_t v)
static inline void
__swapm64(volatile __uint64_t *m, __uint64_t v)
{
- __asm __volatile("stxa %1, [%2] %3 ! %0"
+ __asm("stxa %1, [%2] %3 ! %0"
: "=m" (*m)
: "r" (v), "r" (m), "n" (ASI_P_L));
}