mirror of
https://review.haiku-os.org/haiku
synced 2025-02-14 17:48:33 +01:00
These are architecture-specific routines, so they deserve proper architecture-specific naming. The user memory access routines are already under arch_cpu (arch_cpu_user_memcpy, etc.), and the methods usually change a CPU flag, so it makes sense to put these there too. RISC-V had get_ac but nothing else defined or used it, so it's removed. No functional change intended. Change-Id: Id4715214e32f73d4a93bc7ba8249411a0878d174 Reviewed-on: https://review.haiku-os.org/c/haiku/+/8106 Reviewed-by: waddlesplash <waddlesplash@gmail.com> Reviewed-by: X512 X512 <danger_mail@list.ru> Reviewed-by: Jérôme Duval <jerome.duval@gmail.com> Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
52 lines
789 B
C
52 lines
789 B
C
/*
|
|
* Copyright 2003-2004, Axel Dörfler, axeld@pinc-software.de.
|
|
* Copyright 2019, Adrien Destugues, pulkomandy@pulkomandy.tk.
|
|
* Distributed under the terms of the MIT License.
|
|
*/
|
|
#ifndef _KERNEL_ARCH_SPARC_CPU_H
|
|
#define _KERNEL_ARCH_SPARC_CPU_H
|
|
|
|
|
|
#include <arch/sparc/arch_thread_types.h>
|
|
#include <kernel.h>
|
|
|
|
|
|
#define CPU_MAX_CACHE_LEVEL 8
|
|
#define CACHE_LINE_SIZE 128
|
|
// 128 Byte lines on PPC970
|
|
|
|
|
|
#define arch_cpu_enable_user_access()
|
|
#define arch_cpu_disable_user_access()
|
|
|
|
|
|
typedef struct arch_cpu_info {
|
|
int null;
|
|
} arch_cpu_info;
|
|
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
|
|
static inline void
|
|
arch_cpu_pause(void)
|
|
{
|
|
// TODO: CPU pause
|
|
}
|
|
|
|
|
|
static inline void
|
|
arch_cpu_idle(void)
|
|
{
|
|
// TODO: CPU idle call
|
|
}
|
|
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* _KERNEL_ARCH_SPARC_CPU_H */
|