xref: /kvm-unit-tests/lib/powerpc/asm/smp.h (revision 4cdd2731bfaa151de8c8ab96efbf1b4848ede537)
1 #ifndef _ASMPOWERPC_SMP_H_
2 #define _ASMPOWERPC_SMP_H_
3 
4 #include <libcflat.h>
5 
6 extern int nr_threads;
7 
8 struct start_threads {
9 	int nr_threads;
10 	int nr_started;
11 };
12 
13 typedef void (*secondary_entry_fn)(void);
14 
15 extern void halt(void);
16 
17 extern int start_thread(int cpu_id, secondary_entry_fn entry, uint32_t r3);
18 extern struct start_threads start_cpu(int cpu_node, secondary_entry_fn entry,
19 				      uint32_t r3);
20 extern bool start_all_cpus(secondary_entry_fn entry, uint32_t r3);
21 
22 #endif /* _ASMPOWERPC_SMP_H_ */
23