1
2
3
4
5 #ifndef _SPARC_MP_H
6 #define _SPARC_MP_H
7
8 #include <asm/traps.h>
9 #include <asm/page.h>
10 #include <asm/vaddrs.h>
11
12 extern int linux_smp_still_initting;
13
14 struct sparc_percpu {
15 struct tt_entry trap_table[NUM_SPARC_TRAPS];
16 unsigned int kernel_stack[PAGE_SIZE/4];
17 int cpuid;
18 int cpu_is_alive;
19 int cpu_is_idling;
20
21 char filler[PERCPU_ENTSIZE-(PAGE_SIZE*2)-0xc];
22 };
23
24 extern struct sparc_percpu *percpu_table;
25
26 struct prom_cpuinfo {
27 int prom_node;
28 int mid;
29 };
30
31 extern struct prom_cpuinfo linux_cpus[NCPUS];
32
33 #endif