summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordrahn <drahn@openbsd.org>2001-09-10 12:57:24 +0000
committerdrahn <drahn@openbsd.org>2001-09-10 12:57:24 +0000
commit1d3795367c6dbeb63a9de1b3feee0c8fede91781 (patch)
tree727276a4d30198a98dbd55fd56a15047117a7871
parentDevices should not poke random memory, even hacked code which should be (diff)
downloadwireguard-openbsd-1d3795367c6dbeb63a9de1b3feee0c8fede91781.tar.xz
wireguard-openbsd-1d3795367c6dbeb63a9de1b3feee0c8fede91781.zip
Device addresses should be mapped. It should be converted to bus_ accesses.
This maps the region with mapiodev().
-rw-r--r--sys/arch/macppc/dev/macintr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/macppc/dev/macintr.c b/sys/arch/macppc/dev/macintr.c
index b3f3fbf99fc..d529c671ff4 100644
--- a/sys/arch/macppc/dev/macintr.c
+++ b/sys/arch/macppc/dev/macintr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: macintr.c,v 1.1 2001/09/01 15:50:00 drahn Exp $ */
+/* $OpenBSD: macintr.c,v 1.2 2001/09/10 12:57:24 drahn Exp $ */
/*-
* Copyright (c) 1995 Per Fogelstrom
@@ -161,7 +161,7 @@ macintr_attach(parent, self, aux)
extern intr_establish_t *intr_establish_func;
extern intr_disestablish_t *intr_disestablish_func;
- interrupt_reg = (void *)ca->ca_baseaddr; /* XXX */
+ interrupt_reg = (void *)mapiodev(ca->ca_baseaddr,0x100); /* XXX */
install_extint(mac_ext_intr);
pending_int_f = mac_intr_do_pending_int;