diff options
author | Dale Rahn <drahn@cvs.openbsd.org> | 2001-10-03 14:07:06 +0000 |
---|---|---|
committer | Dale Rahn <drahn@cvs.openbsd.org> | 2001-10-03 14:07:06 +0000 |
commit | d06ec46e13639684c063927640650c3c355dfd3e (patch) | |
tree | eeb07dbdf5cccbdd1e586829316c0040ff3a9768 /sys/arch/macppc/dev/macintr.c | |
parent | a43dba615b676a8aa425635ec050c5ff97fa6ef4 (diff) |
Cleanup improperly shared code between the two interrupt drivers.
Pointed out by a7r.
Diffstat (limited to 'sys/arch/macppc/dev/macintr.c')
-rw-r--r-- | sys/arch/macppc/dev/macintr.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/sys/arch/macppc/dev/macintr.c b/sys/arch/macppc/dev/macintr.c index 606697c90d3..4e0f5cc1379 100644 --- a/sys/arch/macppc/dev/macintr.c +++ b/sys/arch/macppc/dev/macintr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: macintr.c,v 1.4 2001/09/28 04:13:12 drahn Exp $ */ +/* $OpenBSD: macintr.c,v 1.5 2001/10/03 14:07:05 drahn Exp $ */ /*- * Copyright (c) 1995 Per Fogelstrom @@ -144,7 +144,7 @@ macintr_match(parent, cf, aux) u_int8_t *interrupt_reg; typedef void (void_f) (void); extern void_f *pending_int_f; -int prog_switch (void *arg); +int macintr_prog_button (void *arg); intr_establish_t macintr_establish; intr_disestablish_t macintr_disestablish; @@ -173,7 +173,7 @@ macintr_attach(parent, self, aux) macintr_collect_preconf_intr(); mac_intr_establish(parent, 0x14, IST_LEVEL, IPL_HIGH, - prog_switch, (void *)0x14, "prog button"); + macintr_prog_button, (void *)0x14, "prog button"); ppc_intr_enable(1); @@ -202,8 +202,12 @@ macintr_collect_preconf_intr() } +/* + * programmer_button function to fix args to Debugger. + * deal with any enables/disables, if necessary. + */ int -prog_switch (void *arg) +macintr_prog_button (void *arg) { #ifdef DDB Debugger(); |