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
|
#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;
|
||||||
|
|||||||
Reference in New Issue
Block a user