patch-1.3.4 linux/include/asm-sparc/mp.h
Next file: linux/include/asm-sparc/mpmbox.h
Previous file: linux/include/asm-sparc/mostek.h
Back to the patch index
Back to the overall index
- Lines: 34
- Date:
Tue Jun 13 08:19:22 1995
- Orig file:
v1.3.3/linux/include/asm-sparc/mp.h
- Orig date:
Thu Jan 1 02:00:00 1970
diff -u --recursive --new-file v1.3.3/linux/include/asm-sparc/mp.h linux/include/asm-sparc/mp.h
@@ -0,0 +1,33 @@
+/* mp.h: Multiprocessing definitions for the Sparc.
+ *
+ * Copyright (C) 1995 David S. Miller (davem@caip.rutgers.edu)
+ */
+#ifndef _SPARC_MP_H
+#define _SPARC_MP_H
+
+#include <asm/traps.h>
+#include <asm/page.h>
+#include <asm/vaddrs.h>
+
+extern int linux_smp_still_initting;
+
+struct sparc_percpu {
+ struct tt_entry trap_table[NUM_SPARC_TRAPS]; /* One page */
+ unsigned int kernel_stack[PAGE_SIZE/4]; /* One page */
+ int cpuid; /* Who am I? */
+ int cpu_is_alive; /* Linux has fired it up. */
+ int cpu_is_idling; /* Is sitting in the idle loop. */
+ /* More to come... */
+ char filler[PERCPU_ENTSIZE-(PAGE_SIZE*2)-0xc];
+};
+
+extern struct sparc_percpu *percpu_table;
+
+struct prom_cpuinfo {
+ int prom_node;
+ int mid;
+};
+
+extern struct prom_cpuinfo linux_cpus[NCPUS];
+
+#endif /* !(_SPARC_MP_H) */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this