summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2006-07-29 19:04:38 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2006-07-29 19:04:38 +0000
commit652a2b6c25f7eaf11bf293e36e9ead73e931bd33 (patch)
treedfd75f165cebd055656a2f5186af2b952f6dd54c /sys
parent7de96dfa28ad41f95acf986a0427150f0aae515b (diff)
And correctly map the ramdac when console, too. Doh. Somehow I was expecting
the vax pagesize to be 256 bytes...
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/vax/vsa/gpx.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/arch/vax/vsa/gpx.c b/sys/arch/vax/vsa/gpx.c
index 857f570c5db..57a3835e7e2 100644
--- a/sys/arch/vax/vsa/gpx.c
+++ b/sys/arch/vax/vsa/gpx.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: gpx.c,v 1.5 2006/07/29 17:46:08 miod Exp $ */
+/* $OpenBSD: gpx.c,v 1.6 2006/07/29 19:04:37 miod Exp $ */
/*
* Copyright (c) 2006 Miodrag Vallat.
*
@@ -1099,13 +1099,13 @@ gpxcninit()
ss->ss_depth = (0x00f0 & *(u_int16_t *)
(tmp + (GPX_READBACK_OFFSET & VAX_PGOFSET))) == 0x00f0 ? 4 : 8;
+ ioaccess(virtual_avail, GPXADDR + GPX_ADDER_OFFSET, 1);
ss->ss_adder = (struct adder *)virtual_avail;
virtual_avail += VAX_NBPG;
- ioaccess((vaddr_t)ss->ss_adder, GPXADDR + GPX_ADDER_OFFSET, 1);
- ss->ss_vdac = (void *)virtual_avail;
+ ioaccess(virtual_avail, vax_trunc_page(GPXADDR + GPX_VDAC_OFFSET), 1);
+ ss->ss_vdac = (void *)(virtual_avail + (GPX_VDAC_OFFSET & VAX_PGOFSET));
virtual_avail += VAX_NBPG;
- ioaccess((vaddr_t)ss->ss_vdac, GPXADDR + GPX_VDAC_OFFSET, 1);
virtual_avail = round_page(virtual_avail);