summaryrefslogtreecommitdiffstats
path: root/sys/sparc64/include/intr_machdep.h
diff options
context:
space:
mode:
authorjake <jake@FreeBSD.org>2001-12-29 06:57:55 +0000
committerjake <jake@FreeBSD.org>2001-12-29 06:57:55 +0000
commita086b0a1b0f7e870378e6b034afc7a299ae7b978 (patch)
tree238dd1abaf84dc88e46afe762a46dd04e9e5880e /sys/sparc64/include/intr_machdep.h
parent9ca32fc4400722529e4a02486e269a7b8f6fcfba (diff)
downloadFreeBSD-src-a086b0a1b0f7e870378e6b034afc7a299ae7b978.zip
FreeBSD-src-a086b0a1b0f7e870378e6b034afc7a299ae7b978.tar.gz
Make it clear that IH_SHIFT is expected to be that of a pointer.
Make intr_handlers an array of function pointers instead of small structures.
Diffstat (limited to 'sys/sparc64/include/intr_machdep.h')
-rw-r--r--sys/sparc64/include/intr_machdep.h9
1 files changed, 2 insertions, 7 deletions
diff --git a/sys/sparc64/include/intr_machdep.h b/sys/sparc64/include/intr_machdep.h
index 01546e4..c4991de 100644
--- a/sys/sparc64/include/intr_machdep.h
+++ b/sys/sparc64/include/intr_machdep.h
@@ -35,7 +35,7 @@
#define IQ_SIZE (NPIL * 2)
#define IQ_MASK (IQ_SIZE - 1)
-#define IH_SHIFT 3
+#define IH_SHIFT PTR_SHIFT
#define IQE_SHIFT 5
#define IV_SHIFT 5
@@ -47,10 +47,6 @@
typedef void ih_func_t(struct trapframe *);
typedef void iv_func_t(void *);
-struct intr_handler {
- ih_func_t *ih_func;
-};
-
struct iqe {
u_int iqe_tag;
u_int iqe_pri;
@@ -75,8 +71,7 @@ struct intr_vector {
u_int iv_vec;
};
-extern struct intr_handler intr_handlers[];
-extern struct intr_queue intr_queues[];
+extern ih_func_t *intr_handlers[];
extern struct intr_vector intr_vectors[];
void intr_setup(int level, ih_func_t *ihf, int pri, iv_func_t *ivf,
OpenPOWER on IntegriCloud