kernel: fix missing cpu cache defines non-x86
* Regression introduced due to scheduler change * Other other non-x86, non-ppc, and non-arm platforms need evalulated for this metric
This commit is contained in:
@@ -5,11 +5,18 @@
|
||||
#ifndef _KERNEL_ARCH_ARM_CPU_H
|
||||
#define _KERNEL_ARCH_ARM_CPU_H
|
||||
|
||||
|
||||
#define CPU_MAX_CACHE_LEVEL 8
|
||||
#define CACHE_LINE_SIZE 64
|
||||
// TODO: Could be 32-bits sometimes?
|
||||
|
||||
|
||||
#ifndef _ASSEMBLER
|
||||
|
||||
#include <arch/arm/arch_thread_types.h>
|
||||
#include <kernel.h>
|
||||
|
||||
|
||||
/* raw exception frames */
|
||||
struct iframe {
|
||||
uint32 spsr;
|
||||
|
||||
@@ -10,6 +10,11 @@
|
||||
#include <kernel.h>
|
||||
|
||||
|
||||
#define CPU_MAX_CACHE_LEVEL 8
|
||||
#define CACHE_LINE_SIZE 128
|
||||
// 128 Byte lines on PPC970
|
||||
|
||||
|
||||
struct iframe {
|
||||
uint32 vector;
|
||||
uint32 srr0;
|
||||
|
||||
Reference in New Issue
Block a user