diff options
author | Owain Ainsworth <oga@cvs.openbsd.org> | 2008-11-24 03:16:28 +0000 |
---|---|---|
committer | Owain Ainsworth <oga@cvs.openbsd.org> | 2008-11-24 03:16:28 +0000 |
commit | 182459c1837dd2aeab6973ad0c11d1fb9cc63bb1 (patch) | |
tree | 3b53738b74d0bc04c9bb185dd4449adf82aab9a8 /sys/dev/pci/drm/radeon_drv.c | |
parent | 6e36029167f479641684e533993ff7e2226f6e81 (diff) |
oops. Use the correct struct member to map so that radeon doesn't panic
on X startup.
found by ckuethe@
Diffstat (limited to 'sys/dev/pci/drm/radeon_drv.c')
-rw-r--r-- | sys/dev/pci/drm/radeon_drv.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/drm/radeon_drv.c b/sys/dev/pci/drm/radeon_drv.c index 994183f194f..387f863353a 100644 --- a/sys/dev/pci/drm/radeon_drv.c +++ b/sys/dev/pci/drm/radeon_drv.c @@ -529,7 +529,7 @@ radeondrm_attach(struct device *parent, struct device *self, void *aux) return; } dev_priv->fb_aper_offset = bar->base; - dev_priv->fb_aper_size = bar->size; + dev_priv->fb_aper_size = bar->maxsize; bar = vga_pci_bar_info((struct vga_pci_softc *)parent, 2); if (bar == NULL) { @@ -538,7 +538,7 @@ radeondrm_attach(struct device *parent, struct device *self, void *aux) } dev_priv->regs = vga_pci_bar_map((struct vga_pci_softc *)parent, - bar->addr, bar->size, 0); + bar->addr, 0, 0); if (dev_priv->regs == NULL) { printf(": can't map mmio space\n"); return; |