From a8865f8b415788c4e9bb7f68e38d41aec0e485db Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Mon, 25 Jan 2016 10:20:28 +0100 Subject: score: Introduce CPU_CACHE_LINE_BYTES Add CPU_CACHE_LINE_BYTES for the maximum cache line size in bytes. The actual processor may use no cache or a smaller cache line size. --- cpukit/score/cpu/i386/rtems/score/cpu.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'cpukit/score/cpu/i386/rtems') diff --git a/cpukit/score/cpu/i386/rtems/score/cpu.h b/cpukit/score/cpu/i386/rtems/score/cpu.h index 8a495972e3..5a8e5d6cb3 100644 --- a/cpukit/score/cpu/i386/rtems/score/cpu.h +++ b/cpukit/score/cpu/i386/rtems/score/cpu.h @@ -100,6 +100,10 @@ extern "C" { #endif /* __SSE__ */ #define CPU_STACK_GROWS_UP FALSE + +/* FIXME: The Pentium 4 used 128 bytes, it this processor still relevant? */ +#define CPU_CACHE_LINE_BYTES 64 + #define CPU_STRUCTURE_ALIGNMENT /* -- cgit v1.2.3