xref: /haiku/headers/private/kernel/arch/sparc/arch_cpu.h (revision 15fb7d88e971c4d6c787c6a3a5c159afb1ebf77b)
1 /*
2  * Copyright 2003-2004, Axel Dörfler, axeld@pinc-software.de.
3  * Copyright 2019, Adrien Destugues, pulkomandy@pulkomandy.tk.
4  * Distributed under the terms of the MIT License.
5  */
6 #ifndef _KERNEL_ARCH_SPARC_CPU_H
7 #define _KERNEL_ARCH_SPARC_CPU_H
8 
9 
10 #include <arch/sparc/arch_thread_types.h>
11 #include <arch/sparc/cpu.h>
12 #include <kernel.h>
13 
14 
15 #define CPU_MAX_CACHE_LEVEL	8
16 #define CACHE_LINE_SIZE		128
17 	// 128 Byte lines on PPC970
18 
19 
20 #define set_ac()
21 #define clear_ac()
22 
23 
24 typedef struct arch_cpu_info {
25 	int null;
26 } arch_cpu_info;
27 
28 
29 #ifdef __cplusplus
30 extern "C" {
31 #endif
32 
33 
34 static inline void
35 arch_cpu_pause(void)
36 {
37 	// TODO: CPU pause
38 }
39 
40 
41 static inline void
42 arch_cpu_idle(void)
43 {
44 	// TODO: CPU idle call
45 }
46 
47 
48 #ifdef __cplusplus
49 }
50 #endif
51 
52 #endif	/* _KERNEL_ARCH_SPARC_CPU_H */
53