summaryrefslogtreecommitdiff
path: root/sys/arch/sparc64/include/cpu.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/sparc64/include/cpu.h')
-rw-r--r--sys/arch/sparc64/include/cpu.h38
1 files changed, 1 insertions, 37 deletions
diff --git a/sys/arch/sparc64/include/cpu.h b/sys/arch/sparc64/include/cpu.h
index 9b28cfedc7f..e706dd0b77e 100644
--- a/sys/arch/sparc64/include/cpu.h
+++ b/sys/arch/sparc64/include/cpu.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: cpu.h,v 1.21 2003/06/02 23:27:56 millert Exp $ */
+/* $OpenBSD: cpu.h,v 1.22 2003/06/24 21:54:39 henric Exp $ */
/* $NetBSD: cpu.h,v 1.28 2001/06/14 22:56:58 thorpej Exp $ */
/*
@@ -74,7 +74,6 @@
#include <machine/psl.h>
#include <machine/reg.h>
#include <machine/intr.h>
-#include <sparc64/sparc64/intreg.h>
/*#include <sys/sched.h> */
@@ -194,15 +193,8 @@ union sir {
#define SIR_CLOCK 1
#endif
-extern struct intrhand soft01intr, soft01net, soft01clock;
-
-#if 0
-#define setsoftint() send_softint(-1, IPL_SOFTINT, &soft01intr)
-#define setsoftnet() send_softint(-1, IPL_SOFTNET, &soft01net)
-#else
void setsoftint(void);
void setsoftnet(void);
-#endif
extern int want_ast;
@@ -234,29 +226,6 @@ extern int want_resched; /* resched() was called */
extern struct proc *fpproc; /* FPU owner */
extern int foundfpu; /* true => we have an FPU */
-/*
- * Interrupt handler chains. Interrupt handlers should return 0 for
- * ``not me'' or 1 (``I took care of it''). intr_establish() inserts a
- * handler into the list. The handler is called with its (single)
- * argument, or with a pointer to a clockframe if ih_arg is NULL.
- */
-struct intrhand {
- int (*ih_fun)(void *);
- void *ih_arg;
- short ih_number; /* interrupt number */
- /* the H/W provides */
- char ih_pil; /* interrupt priority */
- volatile char ih_busy; /* handler is on list */
- struct intrhand *ih_next; /* global list */
- struct intrhand *ih_pending; /* pending list */
- volatile u_int64_t *ih_map; /* Interrupt map reg */
- volatile u_int64_t *ih_clr; /* clear interrupt reg */
-};
-extern struct intrhand *intrhand[];
-extern struct intrhand *intrlev[MAXINTNUM];
-
-void intr_establish(int level, struct intrhand *);
-
/* disksubr.c */
struct dkbad;
int isbad(struct dkbad *bt, int, int, int);
@@ -275,13 +244,8 @@ void savefpstate(struct fpstate64 *);
void loadfpstate(struct fpstate64 *);
u_int64_t probeget(paddr_t, int, int);
int probeset(paddr_t, int, int, u_int64_t);
-#if 0
-void write_all_windows(void);
-void write_user_windows(void);
-#else
#define write_all_windows() __asm __volatile("flushw" : : )
#define write_user_windows() __asm __volatile("flushw" : : )
-#endif
void proc_trampoline(void);
struct pcb;
void snapshot(struct pcb *);