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:
Alexander von Gluck IV
2014-01-19 14:27:09 -06:00
parent 6647d2c95a
commit 524bea3553
2 changed files with 12 additions and 0 deletions
@@ -5,11 +5,18 @@
#ifndef _KERNEL_ARCH_ARM_CPU_H #ifndef _KERNEL_ARCH_ARM_CPU_H
#define _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 #ifndef _ASSEMBLER
#include <arch/arm/arch_thread_types.h> #include <arch/arm/arch_thread_types.h>
#include <kernel.h> #include <kernel.h>
/* raw exception frames */ /* raw exception frames */
struct iframe { struct iframe {
uint32 spsr; uint32 spsr;
@@ -10,6 +10,11 @@
#include <kernel.h> #include <kernel.h>
#define CPU_MAX_CACHE_LEVEL 8
#define CACHE_LINE_SIZE 128
// 128 Byte lines on PPC970
struct iframe { struct iframe {
uint32 vector; uint32 vector;
uint32 srr0; uint32 srr0;