summaryrefslogtreecommitdiffstats
path: root/drivers/char/drm
diff options
context:
space:
mode:
authorDave Airlie <airlied@linux.ie>2006-04-23 10:14:00 +0200
committerDave Airlie <airlied@linux.ie>2006-04-23 10:14:00 +0200
commitcaa98c41c0db9bfda5bc9a0e680f304283089268 (patch)
tree483a9b38237851293c7170c9af666df332c90da7 /drivers/char/drm
parentLinux v2.6.17-rc2 (diff)
downloadlinux-caa98c41c0db9bfda5bc9a0e680f304283089268.tar.xz
linux-caa98c41c0db9bfda5bc9a0e680f304283089268.zip
drm: fixup r300 scratch on BE machines
This fixes the r300 scratch stuff to work on PPC, from Ben Herrenschmidt on IRC. Signed-off-by: Dave Airlie <airlied@linux.ie>
Diffstat (limited to 'drivers/char/drm')
-rw-r--r--drivers/char/drm/r300_cmdbuf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/drm/r300_cmdbuf.c b/drivers/char/drm/r300_cmdbuf.c
index b108c7f913b2..26bdf2ca59d7 100644
--- a/drivers/char/drm/r300_cmdbuf.c
+++ b/drivers/char/drm/r300_cmdbuf.c
@@ -723,7 +723,7 @@ static int r300_scratch(drm_radeon_private_t *dev_priv,
dev_priv->scratch_ages[header.scratch.reg]++;
- ref_age_base = *(u32 **)cmdbuf->buf;
+ ref_age_base = (u32 *)(unsigned long)*((uint64_t *)cmdbuf->buf);
cmdbuf->buf += sizeof(u64);
cmdbuf->bufsz -= sizeof(u64);