summaryrefslogtreecommitdiff
path: root/sys/arch/mvme88k/dev/pcctwo.c
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2006-04-27 20:19:32 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2006-04-27 20:19:32 +0000
commit87671e73ae61469d792aabc7a9da84929927871e (patch)
treee9d28760c61443b4be078b66551be05cb1e87ee0 /sys/arch/mvme88k/dev/pcctwo.c
parente60b80b1208551fe0bd1f42c8eb3a7ad1a3c681a (diff)
Adjust sizes for the mandatory 1:1 mappings created in pmap_bootstrap().
Saves up to 12KB of no longer necessary page tables.
Diffstat (limited to 'sys/arch/mvme88k/dev/pcctwo.c')
-rw-r--r--sys/arch/mvme88k/dev/pcctwo.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/mvme88k/dev/pcctwo.c b/sys/arch/mvme88k/dev/pcctwo.c
index f1b82b345e4..1d73c24e061 100644
--- a/sys/arch/mvme88k/dev/pcctwo.c
+++ b/sys/arch/mvme88k/dev/pcctwo.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pcctwo.c,v 1.27 2005/07/18 02:43:25 fgsch Exp $ */
+/* $OpenBSD: pcctwo.c,v 1.28 2006/04/27 20:19:28 miod Exp $ */
/*
* Copyright (c) 1995 Theo de Raadt
* All rights reserved.
@@ -84,7 +84,7 @@ pcctwomatch(parent, vcf, args)
return 0;
}
- if (bus_space_map(ca->ca_iot, ca->ca_paddr + PCC2_BASE, PCC2_SIZE,
+ if (bus_space_map(ca->ca_iot, PCC2_BASE, PCC2_SIZE,
0, &ioh) != 0)
return 0;
rc = badvaddr((vaddr_t)bus_space_vaddr(ca->ca_iot, ioh), 4);
@@ -112,7 +112,7 @@ pcctwoattach(parent, self, args)
bus_space_handle_t ioh;
u_int8_t genctl;
- sc->sc_base = ca->ca_paddr + PCC2_BASE;
+ sc->sc_base = PCC2_BASE;
if (bus_space_map(ca->ca_iot, sc->sc_base, PCC2_SIZE, 0, &ioh) != 0) {
printf(": can't map registers!\n");