summaryrefslogtreecommitdiff
path: root/shared-core
diff options
context:
space:
mode:
authorAlex Deucher <alex@cube.(none)>2008-05-12 09:24:13 -0400
committerAlex Deucher <alex@cube.(none)>2008-05-12 09:24:13 -0400
commit3582e82f140cdae947864af8403674e6e117588e (patch)
treea9ce5499b359bb7b09a3671818d30ec32c8de1d3 /shared-core
parentd26af273f8558c8ee6eca1914b35bfd174129da7 (diff)
RS4xx: fix MCIND index mask
Diffstat (limited to 'shared-core')
-rw-r--r--shared-core/radeon_cp.c4
-rw-r--r--shared-core/radeon_drv.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/shared-core/radeon_cp.c b/shared-core/radeon_cp.c
index da15a4b8..d6887f1f 100644
--- a/shared-core/radeon_cp.c
+++ b/shared-core/radeon_cp.c
@@ -16114,9 +16114,9 @@ static u32 R500_READ_MCIND(drm_radeon_private_t *dev_priv, int addr)
static u32 RS400_READ_MCIND(drm_radeon_private_t *dev_priv, int addr)
{
u32 ret;
- RADEON_WRITE(RS400_NB_MC_INDEX, addr & 0x7f);
+ RADEON_WRITE(RS400_NB_MC_INDEX, addr & 0xff);
ret = RADEON_READ(RS400_NB_MC_DATA);
- RADEON_WRITE(RS400_NB_MC_INDEX, 0x7f);
+ RADEON_WRITE(RS400_NB_MC_INDEX, 0xff);
return ret;
}
diff --git a/shared-core/radeon_drv.h b/shared-core/radeon_drv.h
index e580e5c1..d5c8fc3e 100644
--- a/shared-core/radeon_drv.h
+++ b/shared-core/radeon_drv.h
@@ -1165,9 +1165,9 @@ do { \
#define RS400_WRITE_MCIND( addr, val ) \
do { \
RADEON_WRITE( RS400_NB_MC_INDEX, \
- ((addr) & 0x7f) | RS400_NB_MC_IND_WR_EN); \
+ ((addr) & 0xff) | RS400_NB_MC_IND_WR_EN); \
RADEON_WRITE( RS400_NB_MC_DATA, (val) ); \
- RADEON_WRITE( RS400_NB_MC_INDEX, 0x7f ); \
+ RADEON_WRITE( RS400_NB_MC_INDEX, 0xff ); \
} while (0)
#define RS690_WRITE_MCIND( addr, val ) \