summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Airlie <airlied@airlied2.(none)>2007-04-11 14:04:18 +1000
committerDave Airlie <airlied@airlied2.(none)>2007-04-11 14:04:18 +1000
commitb329f91502a20cc6def44b7bea6cbc8b016edd5e (patch)
tree27923bca18706d5f531156ae4cc20e02fa7e49a2
parent7e58276c76ff2297fdf9ba295d696338377d6e14 (diff)
use the baseaddr at least
-rw-r--r--shared-core/i915_init.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/shared-core/i915_init.c b/shared-core/i915_init.c
index e454c9fc..038e3939 100644
--- a/shared-core/i915_init.c
+++ b/shared-core/i915_init.c
@@ -64,7 +64,7 @@ int i915_driver_load(drm_device_t *dev, unsigned long flags)
dev_priv->sarea_priv = kmalloc(sizeof(drm_i915_sarea_t), GFP_KERNEL);
/* FIXME: need real front buffer offset */
- dev_priv->sarea_priv->front_handle = 0xa0000000 + 1024*1024;
+ dev_priv->sarea_priv->front_handle = dev_priv->baseaddr + 1024*1024;
drm_bo_driver_init(dev);
/* this probably doesn't belong here - TODO */
@@ -73,7 +73,7 @@ int i915_driver_load(drm_device_t *dev, unsigned long flags)
drm_set_desired_modes(dev);
/* FIXME: command ring needs AGP space, do we own it at this point? */
- dev_priv->ring.Start = 0xa0000000;
+ dev_priv->ring.Start = dev_priv->baseaddr;
dev_priv->ring.End = 128*1024;
dev_priv->ring.Size = 128*1024;
dev_priv->ring.tail_mask = dev_priv->ring.Size - 1;