BUS_SPACE_MAP_PREFETCHABLE yields a write combining region on x86 and that's
not what I intended.. BUS_SPACE_MAP_CACHEABLE is enough.
This commit is contained in:
parent
6e5d662f34
commit
6dfea3c27b
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: vga.c,v 1.117 2019/12/01 14:18:51 ad Exp $ */
|
||||
/* $NetBSD: vga.c,v 1.118 2020/04/24 22:31:35 ad Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1995, 1996 Carnegie-Mellon University.
|
||||
|
@ -28,7 +28,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: vga.c,v 1.117 2019/12/01 14:18:51 ad Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: vga.c,v 1.118 2020/04/24 22:31:35 ad Exp $");
|
||||
|
||||
#include "opt_vga.h"
|
||||
/* for WSCONS_SUPPORT_PCVTFONTS */
|
||||
|
@ -545,8 +545,7 @@ vga_init(struct vga_config *vc, bus_space_tag_t iot, bus_space_tag_t memt)
|
|||
panic("vga_init: couldn't map 6845 io");
|
||||
|
||||
if (bus_space_map(vh->vh_memt, 0xa0000, 0x20000,
|
||||
BUS_SPACE_MAP_CACHEABLE | BUS_SPACE_MAP_PREFETCHABLE,
|
||||
&vh->vh_allmemh))
|
||||
BUS_SPACE_MAP_CACHEABLE, &vh->vh_allmemh))
|
||||
panic("vga_init: couldn't map memory");
|
||||
|
||||
if (bus_space_subregion(vh->vh_memt, vh->vh_allmemh,
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: vga_raster.c,v 1.47 2020/04/04 00:01:28 riastradh Exp $ */
|
||||
/* $NetBSD: vga_raster.c,v 1.48 2020/04/24 22:31:36 ad Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2001, 2002 Bang Jun-Young
|
||||
|
@ -56,7 +56,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: vga_raster.c,v 1.47 2020/04/04 00:01:28 riastradh Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: vga_raster.c,v 1.48 2020/04/24 22:31:36 ad Exp $");
|
||||
|
||||
#include "opt_vga.h"
|
||||
#include "opt_wsmsgattrs.h" /* for WSDISPLAY_CUSTOM_OUTPUT */
|
||||
|
@ -396,8 +396,7 @@ vga_raster_init(struct vga_config *vc, bus_space_tag_t iot,
|
|||
panic("vga_raster_init: couldn't map 6845 io");
|
||||
|
||||
if (bus_space_map(vh->vh_memt, 0xa0000, 0x20000,
|
||||
BUS_SPACE_MAP_CACHEABLE | BUS_SPACE_MAP_PREFETCHABLE,
|
||||
&vh->vh_allmemh))
|
||||
BUS_SPACE_MAP_CACHEABLE, &vh->vh_allmemh))
|
||||
panic("vga_init: couldn't map memory");
|
||||
|
||||
if (bus_space_subregion(vh->vh_memt, vh->vh_allmemh, 0, 0x10000,
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: pcdisplay.c,v 1.44 2019/12/01 14:18:51 ad Exp $ */
|
||||
/* $NetBSD: pcdisplay.c,v 1.45 2020/04/24 22:31:35 ad Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1998
|
||||
|
@ -27,7 +27,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: pcdisplay.c,v 1.44 2019/12/01 14:18:51 ad Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: pcdisplay.c,v 1.45 2020/04/24 22:31:35 ad Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -190,8 +190,7 @@ pcdisplay_init(struct pcdisplay_config *dc, bus_space_tag_t iot,
|
|||
dc->mono = mono;
|
||||
|
||||
if (bus_space_map(memt, mono ? 0xb0000 : 0xb8000, 0x8000,
|
||||
BUS_SPACE_MAP_CACHEABLE | BUS_SPACE_MAP_PREFETCHABLE,
|
||||
&ph->ph_memh))
|
||||
BUS_SPACE_MAP_CACHEABLE, &ph->ph_memh))
|
||||
panic("pcdisplay_init: cannot map memory");
|
||||
if (bus_space_map(iot, mono ? 0x3b0 : 0x3d0, 0x10,
|
||||
0, &ph->ph_ioh_6845))
|
||||
|
|
Loading…
Reference in New Issue