summaryrefslogtreecommitdiff
path: root/sys/arch/vax/include/cpu.h
diff options
context:
space:
mode:
authorMats O Jansson <maja@cvs.openbsd.org>1997-09-10 11:47:13 +0000
committerMats O Jansson <maja@cvs.openbsd.org>1997-09-10 11:47:13 +0000
commitccaf04f4bb2a93a41db1352978899ff3191f9193 (patch)
treebabab3fd533e6bdec85087b8fd342e2616556e73 /sys/arch/vax/include/cpu.h
parent7ee17d6b3862934e2abfa86ded9fdde7be1133ca (diff)
Sync with NetBSD 970516. -moj
Diffstat (limited to 'sys/arch/vax/include/cpu.h')
-rw-r--r--sys/arch/vax/include/cpu.h22
1 files changed, 16 insertions, 6 deletions
diff --git a/sys/arch/vax/include/cpu.h b/sys/arch/vax/include/cpu.h
index dce472921b9..510e8d857b3 100644
--- a/sys/arch/vax/include/cpu.h
+++ b/sys/arch/vax/include/cpu.h
@@ -1,5 +1,5 @@
-/* $OpenBSD: cpu.h,v 1.6 1997/05/29 00:04:37 niklas Exp $ */
-/* $NetBSD: cpu.h,v 1.19 1996/07/20 17:58:12 ragge Exp $ */
+/* $OpenBSD: cpu.h,v 1.7 1997/09/10 11:47:05 maja Exp $ */
+/* $NetBSD: cpu.h,v 1.23 1997/03/15 15:09:41 ragge Exp $ */
/*
* Copyright (c) 1994 Ludd, University of Lule}, Sweden
@@ -31,20 +31,21 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
- /* All bugs are subject to removal without further notice */
-
#include <sys/cdefs.h>
#include <sys/device.h>
#include <machine/mtpr.h>
#include <machine/pcb.h>
+#include <machine/uvax.h>
#define enablertclock()
#define cpu_wait(p)
#define cpu_swapout(p)
-extern struct cpu_dep cpu_calls[];
-
+/*
+ * All cpu-dependent info is kept in this struct. Pointer to the
+ * struct for the current cpu is set up in locore.c.
+ */
struct cpu_dep {
void (*cpu_steal_pages) __P((void)); /* pmap init before mm is on */
void (*cpu_clock) __P((void)); /* CPU dep RT clock start */
@@ -54,15 +55,24 @@ struct cpu_dep {
void (*cpu_conf) __P((struct device *, struct device *, void *));
int (*cpu_clkread) __P((time_t)); /* Read cpu clock time */
void (*cpu_clkwrite) __P((void)); /* Write system time to cpu */
+ int cpu_vups; /* speed of cpu */
+ u_char *cpu_intreq; /* Used on some VAXstations */
+ u_char *cpu_intclr; /* Used on some VAXstations */
+ u_char *cpu_intmsk; /* Used on some VAXstations */
+ struct uc_map *cpu_map; /* Map containing important addresses */
};
+extern struct cpu_dep *dep_call; /* Holds pointer to current CPU struct. */
+
struct clockframe {
int pc;
int ps;
};
+extern struct device *booted_from;
extern int cold;
extern int mastercpu;
+extern int bootdev;
#define setsoftnet() mtpr(12,PR_SIRR)
#define setsoftclock() mtpr(8,PR_SIRR)