summaryrefslogtreecommitdiff
path: root/sys/arch/sparc/dev
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2003-06-04 07:18:17 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2003-06-04 07:18:17 +0000
commitdb4a81237b284e962c3bf5004665336b81f4f00e (patch)
tree0e35c3381e459f25ab5a7975f5a64fa570b1445f /sys/arch/sparc/dev
parent0fec224f6a2d781dd59d747b51139c5c4f81112d (diff)
Use bus_untmp() instead of rolling an inline version of it;
tested and ok jason@
Diffstat (limited to 'sys/arch/sparc/dev')
-rw-r--r--sys/arch/sparc/dev/fga.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/sys/arch/sparc/dev/fga.c b/sys/arch/sparc/dev/fga.c
index def8f408630..46976079c3c 100644
--- a/sys/arch/sparc/dev/fga.c
+++ b/sys/arch/sparc/dev/fga.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: fga.c,v 1.12 2003/06/02 18:40:59 jason Exp $ */
+/* $OpenBSD: fga.c,v 1.13 2003/06/04 07:18:16 miod Exp $ */
/*
* Copyright (c) 1999 Jason L. Wright (jason@thought.net)
@@ -779,12 +779,10 @@ fvmescan(parent, child, aux)
mapdev(&oca.ca_ra.ra_reg[0], TMPMAP_VA, 0, NBPG);
if ((*cf->cf_attach->ca_match)(parent, cf, &oca) == 0) {
- pmap_remove(pmap_kernel(), TMPMAP_VA, TMPMAP_VA + NBPG);
- pmap_update(pmap_kernel());
+ bus_untmp();
return (0);
}
- pmap_remove(pmap_kernel(), TMPMAP_VA, TMPMAP_VA + NBPG);
- pmap_update(pmap_kernel());
+ bus_untmp();
oca.ca_ra.ra_reg[0].rr_paddr = (void *)paddr;
config_attach(parent, cf, &oca, fvmeprint);