15629675aSAdrien Destugues/*
25629675aSAdrien Destugues * Copyright 2003-2004, Axel D��rfler, axeld@pinc-software.de.
35629675aSAdrien Destugues * Copyright 2019, Adrien Destugues, pulkomandy@pulkomandy.tk.
45629675aSAdrien Destugues * Distributed under the terms of the MIT License.
55629675aSAdrien Destugues */
65629675aSAdrien Destugues#ifndef _KERNEL_ARCH_SPARC_CPU_H
75629675aSAdrien Destugues#define _KERNEL_ARCH_SPARC_CPU_H
85629675aSAdrien Destugues
95629675aSAdrien Destugues
105629675aSAdrien Destugues#include <arch/sparc/arch_thread_types.h>
115629675aSAdrien Destugues#include <arch/sparc/cpu.h>
125629675aSAdrien Destugues#include <kernel.h>
135629675aSAdrien Destugues
145629675aSAdrien Destugues
155629675aSAdrien Destugues#define CPU_MAX_CACHE_LEVEL	8
165629675aSAdrien Destugues#define CACHE_LINE_SIZE		128
175629675aSAdrien Destugues	// 128 Byte lines on PPC970
185629675aSAdrien Destugues
195629675aSAdrien Destugues
205629675aSAdrien Destugues#define set_ac()
215629675aSAdrien Destugues#define clear_ac()
225629675aSAdrien Destugues
235629675aSAdrien Destugues
245629675aSAdrien Destuguestypedef struct arch_cpu_info {
255629675aSAdrien Destugues	int null;
265629675aSAdrien Destugues} arch_cpu_info;
275629675aSAdrien Destugues
285629675aSAdrien Destugues
295629675aSAdrien Destugues#ifdef __cplusplus
305629675aSAdrien Destuguesextern "C" {
315629675aSAdrien Destugues#endif
325629675aSAdrien Destugues
335629675aSAdrien Destugues
345629675aSAdrien Destuguesstatic inline void
355629675aSAdrien Destuguesarch_cpu_pause(void)
365629675aSAdrien Destugues{
375629675aSAdrien Destugues	// TODO: CPU pause
385629675aSAdrien Destugues}
395629675aSAdrien Destugues
405629675aSAdrien Destugues
415629675aSAdrien Destuguesstatic inline void
425629675aSAdrien Destuguesarch_cpu_idle(void)
435629675aSAdrien Destugues{
445629675aSAdrien Destugues	// TODO: CPU idle call
455629675aSAdrien Destugues}
465629675aSAdrien Destugues
475629675aSAdrien Destugues
485629675aSAdrien Destugues#ifdef __cplusplus
495629675aSAdrien Destugues}
505629675aSAdrien Destugues#endif
515629675aSAdrien Destugues
525629675aSAdrien Destugues#endif	/* _KERNEL_ARCH_SPARC_CPU_H */
53