summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordrahn <drahn@openbsd.org>2001-05-02 06:02:45 +0000
committerdrahn <drahn@openbsd.org>2001-05-02 06:02:45 +0000
commitbfa4df816d2fed6507064305edfe14ca78bb5a5b (patch)
tree9724de5724cc7649222519daff173d6c80f8e371
parentUse correct M_CACHE type; art@ ok. (diff)
downloadwireguard-openbsd-bfa4df816d2fed6507064305edfe14ca78bb5a5b.tar.xz
wireguard-openbsd-bfa4df816d2fed6507064305edfe14ca78bb5a5b.zip
Move powerpc interrupt enablement into the interrupt controller, not after
config runs. openpic already had this change. Cleans up config operations for other changes.
-rw-r--r--sys/arch/powerpc/mac/macintr.c4
-rw-r--r--sys/arch/powerpc/powerpc/machdep.c13
2 files changed, 4 insertions, 13 deletions
diff --git a/sys/arch/powerpc/mac/macintr.c b/sys/arch/powerpc/mac/macintr.c
index 75d92f9f42d..7f6ef0c040d 100644
--- a/sys/arch/powerpc/mac/macintr.c
+++ b/sys/arch/powerpc/mac/macintr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: macintr.c,v 1.7 2001/04/08 05:00:26 drahn Exp $ */
+/* $OpenBSD: macintr.c,v 1.8 2001/05/02 06:02:46 drahn Exp $ */
/*-
* Copyright (c) 1995 Per Fogelstrom
@@ -180,6 +180,8 @@ macintr_attach(parent, self, aux)
mac_intr_establish(parent, 0x14, IST_LEVEL, IPL_HIGH,
prog_switch, (void *)0x14, "prog button");
+ ppc_intr_enable(1);
+
printf("\n");
}
void
diff --git a/sys/arch/powerpc/powerpc/machdep.c b/sys/arch/powerpc/powerpc/machdep.c
index 2fe792f6f17..7117f62406e 100644
--- a/sys/arch/powerpc/powerpc/machdep.c
+++ b/sys/arch/powerpc/powerpc/machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machdep.c,v 1.56 2001/04/08 05:00:27 drahn Exp $ */
+/* $OpenBSD: machdep.c,v 1.57 2001/05/02 06:02:45 drahn Exp $ */
/* $NetBSD: machdep.c,v 1.4 1996/10/16 19:33:11 ws Exp $ */
/*
@@ -587,17 +587,6 @@ cpu_startup()
*/
devio_malloc_safe = 1;
configure();
-
- /*
- * Now allow hardware interrupts.
- */
- {
- int msr;
-
- splhigh();
- __asm__ volatile ("mfmsr %0; ori %0, %0, %1; mtmsr %0"
- : "=r"(msr) : "K"(PSL_EE));
- }
}