From acc190f453f88c9e54425c625a44e81f9d8a4748 Mon Sep 17 00:00:00 2001 From: macallan Date: Fri, 4 Nov 2016 18:11:15 +0000 Subject: [PATCH] set BUS_SPACE_MAP_PREFETCHABLE when mapping the SFB32 range now using alpha fonts is actually faster than using bitmap fonts --- sys/arch/sparc64/dev/ffb_mainbus.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/sys/arch/sparc64/dev/ffb_mainbus.c b/sys/arch/sparc64/dev/ffb_mainbus.c index dfaa3fbaef95..02750b25e2ff 100644 --- a/sys/arch/sparc64/dev/ffb_mainbus.c +++ b/sys/arch/sparc64/dev/ffb_mainbus.c @@ -1,4 +1,4 @@ -/* $NetBSD: ffb_mainbus.c,v 1.13 2011/12/22 05:08:05 macallan Exp $ */ +/* $NetBSD: ffb_mainbus.c,v 1.14 2016/11/04 18:11:15 macallan Exp $ */ /* $OpenBSD: creator_mainbus.c,v 1.4 2002/07/26 16:39:04 jason Exp $ */ /* @@ -34,7 +34,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: ffb_mainbus.c,v 1.13 2011/12/22 05:08:05 macallan Exp $"); +__KERNEL_RCSID(0, "$NetBSD: ffb_mainbus.c,v 1.14 2016/11/04 18:11:15 macallan Exp $"); #include #include @@ -103,7 +103,8 @@ ffb_mainbus_attach(device_t parent, device_t self, void *aux) } if (bus_space_map(sc->sc_bt, ma->ma_reg[FFB_REG_SFB32].ur_paddr, - ma->ma_reg[FFB_REG_SFB32].ur_len, BUS_SPACE_MAP_LINEAR, + ma->ma_reg[FFB_REG_SFB32].ur_len, + BUS_SPACE_MAP_LINEAR | BUS_SPACE_MAP_PREFETCHABLE, &sc->sc_sfb32_h)) { panic(": failed to map SFB32\n"); goto unmap_dac;