summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/common/mmio.h
diff options
context:
space:
mode:
authorMichel Dänzer <[email protected]>2005-02-12 20:37:07 +0000
committerMichel Dänzer <[email protected]>2005-02-12 20:37:07 +0000
commit37cbb521d3ab8d96a8fcc0199424c0ddc70f0435 (patch)
treea7e9f67e2a6438f227953ce036b204f4f38a54eb /src/mesa/drivers/dri/common/mmio.h
parent2752177ade76f36229dda8da42948b173bdf08bc (diff)
MMIO endianness fixes for Radeon drivers.
Diffstat (limited to 'src/mesa/drivers/dri/common/mmio.h')
-rw-r--r--src/mesa/drivers/dri/common/mmio.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mesa/drivers/dri/common/mmio.h b/src/mesa/drivers/dri/common/mmio.h
index a9bdce42bf9..d9fa3dec5f2 100644
--- a/src/mesa/drivers/dri/common/mmio.h
+++ b/src/mesa/drivers/dri/common/mmio.h
@@ -38,12 +38,11 @@
static __inline__ u_int32_t
read_MMIO_LE32( volatile void * base, unsigned long offset )
{
- volatile void * p = ((volatile char *) base) + offset;
u_int32_t val;
-
+
__asm__ __volatile__( "lwbrx %0, %1, %2 ; eieio"
: "=r" (val)
- : "b" (base), "r" (offset), "m" (p) );
+ : "b" (base), "r" (offset) );
return val;
}