diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-01-25 10:20:28 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-01-26 09:07:30 +0100 |
commit | a8865f8b415788c4e9bb7f68e38d41aec0e485db (patch) | |
tree | d7b70c608239be68c6476b0d9e9893e099ec8be6 /c/src/lib/libcpu/shared/src/cache_manager.c | |
parent | score: Add RTEMS_ALIGNED() (diff) | |
download | rtems-a8865f8b415788c4e9bb7f68e38d41aec0e485db.tar.bz2 |
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.
Diffstat (limited to '')
-rw-r--r-- | c/src/lib/libcpu/shared/src/cache_manager.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/c/src/lib/libcpu/shared/src/cache_manager.c b/c/src/lib/libcpu/shared/src/cache_manager.c index 202ea8e1ba..255f621771 100644 --- a/c/src/lib/libcpu/shared/src/cache_manager.c +++ b/c/src/lib/libcpu/shared/src/cache_manager.c @@ -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> |