summaryrefslogtreecommitdiff
path: root/sys/arch/sparc/dev/if_ie.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/sparc/dev/if_ie.c')
-rw-r--r--sys/arch/sparc/dev/if_ie.c15
1 files changed, 14 insertions, 1 deletions
diff --git a/sys/arch/sparc/dev/if_ie.c b/sys/arch/sparc/dev/if_ie.c
index 9fdaaa1b8d4..2e4d444597f 100644
--- a/sys/arch/sparc/dev/if_ie.c
+++ b/sys/arch/sparc/dev/if_ie.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_ie.c,v 1.9 1999/03/01 20:45:10 jason Exp $ */
+/* $OpenBSD: if_ie.c,v 1.10 1999/04/22 16:57:54 art Exp $ */
/* $NetBSD: if_ie.c,v 1.33 1997/07/29 17:55:38 fair Exp $ */
/*-
@@ -137,6 +137,10 @@ Mode of operation:
#include <vm/vm.h>
+#if defined(UVM)
+#include <uvm/uvm_map.h>
+#endif
+
/*
* ugly byte-order hack for SUNs
*/
@@ -538,10 +542,19 @@ ieattach(parent, self, aux)
* XXX
*/
+#if defined(UVM)
+ ie_map = uvm_map_create(pmap_kernel(), (vm_offset_t)IEOB_ADBASE,
+ (vm_offset_t)IEOB_ADBASE + sc->sc_msize, 1);
+#else
ie_map = vm_map_create(pmap_kernel(), (vm_offset_t)IEOB_ADBASE,
(vm_offset_t)IEOB_ADBASE + sc->sc_msize, 1);
+#endif
if (ie_map == NULL) panic("ie_map");
+#if defined(UVM)
+ sc->sc_maddr = (caddr_t) uvm_km_alloc(ie_map, sc->sc_msize);
+#else
sc->sc_maddr = (caddr_t) kmem_alloc(ie_map, sc->sc_msize);
+#endif
if (sc->sc_maddr == NULL) panic("ie kmem_alloc");
kvm_uncache(sc->sc_maddr, sc->sc_msize >> PGSHIFT);
if (((u_long)sc->sc_maddr & ~(NBPG-1)) != (u_long)sc->sc_maddr)