summaryrefslogtreecommitdiffstats
path: root/drivers/char/drm
diff options
context:
space:
mode:
authorDave Airlie <airlied@linux.ie>2006-04-23 18:14:00 +1000
committerDave Airlie <airlied@linux.ie>2006-04-23 18:14:00 +1000
commitcaa98c41c0db9bfda5bc9a0e680f304283089268 (patch)
tree483a9b38237851293c7170c9af666df332c90da7 /drivers/char/drm
parent8bbde0e6d52265158ee9625f383500c1a7d09ba9 (diff)
downloadblackbird-op-linux-caa98c41c0db9bfda5bc9a0e680f304283089268.tar.gz
blackbird-op-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);
OpenPOWER on IntegriCloud