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.
This commit is contained in:
Sebastian Huber
2016-01-25 10:20:28 +01:00
parent cd9ef18564
commit a8865f8b41
18 changed files with 73 additions and 254 deletions

View File

@@ -42,6 +42,14 @@
#include <rtems.h>
#include "cache_.h"
#if CPU_DATA_CACHE_ALIGNMENT > CPU_CACHE_LINE_BYTES
#error "CPU_DATA_CACHE_ALIGNMENT is greater than CPU_CACHE_LINE_BYTES"
#endif
#if CPU_INSTRUCTION_CACHE_ALIGNMENT > CPU_CACHE_LINE_BYTES
#error "CPU_INSTRUCTION_CACHE_ALIGNMENT is greater than CPU_CACHE_LINE_BYTES"
#endif
#if defined(RTEMS_SMP)
#include <rtems/score/smpimpl.h>