diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2013-08-16 18:20:47 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2013-08-16 18:20:47 +0000 |
commit | 48f66d5a2e6541df0aae2602b9b66de6c723c811 (patch) | |
tree | 2431c57193bcd74f4c9fc65d27e843a26d8a4e9f /sys/arch/macppc/pci | |
parent | d48e19307a3e50ed051a75b60b72dab8ddcfb27e (diff) |
Use mapiodev instead of bus_space_map the do the initial mapping of the
frame buffer. This allows radeondrm(4) to bus_space_map it without panicking.
ok mpi@, jsg@
Diffstat (limited to 'sys/arch/macppc/pci')
-rw-r--r-- | sys/arch/macppc/pci/vgafb.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/sys/arch/macppc/pci/vgafb.c b/sys/arch/macppc/pci/vgafb.c index 19523be8b0a..64521200805 100644 --- a/sys/arch/macppc/pci/vgafb.c +++ b/sys/arch/macppc/pci/vgafb.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vgafb.c,v 1.49 2013/08/12 08:03:56 mpi Exp $ */ +/* $OpenBSD: vgafb.c,v 1.50 2013/08/16 18:20:46 kettenis Exp $ */ /* $NetBSD: vga.c,v 1.3 1996/12/02 22:24:54 cgd Exp $ */ /* @@ -103,10 +103,7 @@ vgafb_init(bus_space_tag_t iot, bus_space_tag_t memt, struct vga_config *vc, vc->vc_memt = memt; vc->membase = membase; vc->memsize = memsize; - - if (bus_space_map(vc->vc_memt, membase, memsize, - /* XXX */ppc_proc_is_64b ? 0 : 1, &vc->vc_memh)) - panic("vgafb_init: can't map mem space"); + vc->vc_memh = (bus_space_handle_t)mapiodev(membase, memsize); } void |