summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2001-03-07 23:42:33 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2001-03-07 23:42:33 +0000
commit732e6b3944d75484ba05f09e74ae2bba49eae6ae (patch)
tree434a6d502198f5f5d345a18c4c0f3e6defbd1f27
parentd91359003084e85f8a771ff81f06718cd9c6da3e (diff)
Strict prototypes for interrupt handlers and a few machine-dependent
callbacks. While there, some warning hunting.
-rw-r--r--sys/arch/mvme88k/include/cpu.h21
1 files changed, 12 insertions, 9 deletions
diff --git a/sys/arch/mvme88k/include/cpu.h b/sys/arch/mvme88k/include/cpu.h
index 40105299fe1..15196e36f98 100644
--- a/sys/arch/mvme88k/include/cpu.h
+++ b/sys/arch/mvme88k/include/cpu.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: cpu.h,v 1.7 2001/01/14 20:25:23 smurph Exp $ */
+/* $OpenBSD: cpu.h,v 1.8 2001/03/07 23:42:32 miod Exp $ */
/*
* Copyright (c) 1996 Nivas Madhur
* Copyright (c) 1992, 1993
@@ -81,7 +81,7 @@ struct clockframe {
struct trapframe tf;
};
-extern intstack;
+extern int intstack;
#define CLKF_USERMODE(framep) ((((struct trapframe *)(framep))->epsr & 80000000) == 0)
#define CLKF_BASEPRI(framep) (((struct trapframe *)(framep))->mask == 0)
@@ -146,7 +146,7 @@ int want_resched; /* resched() was called */
#define signotify(p) (want_ast = 1)
struct intrhand {
- int (*ih_fn)();
+ int (*ih_fn) __P((void *));
void *ih_arg;
int ih_ipl;
int ih_wantframe;
@@ -183,15 +183,18 @@ struct switchframe {
/* This struct defines the machine dependant function pointers */
struct funcp {
- void (*clock_init_func)(); /* interval clock init function */
- void (*statclock_init_func)(); /* statistics clock init function */
- void (*delayclock_init_func)(); /* delay clock init function */
- void (*delay_func)(); /* delay clock function */
- void (*interrupt_func)(); /* interrupt func */
- void (*fp_precise_func)(); /* floating point precise function */
+ void (*clock_init_func) __P((void)); /* interval clock init function */
+ void (*statclock_init_func) __P((void)); /* statistics clock init function */
+ void (*delayclock_init_func) __P((void)); /* delay clock init function */
+ void (*delay_func) __P((void)); /* delay clock function */
+ void (*interrupt_func) __P((u_int, struct m88100_saved_state *)); /* interrupt func */
+ void (*fp_precise_func) __P((void)); /* floating point precise function */
};
extern struct funcp mdfp;
+int badvaddr __P((vm_offset_t va, int size));
+void nmihand __P((void *framep));
+
#endif /* _KERNEL */
#endif __MACHINE_CPU_H__