[rtems commit] bsps/sparc: Fix SMP build
Sebastian Huber
sebh at rtems.org
Wed Nov 28 13:54:24 UTC 2018
Module: rtems
Branch: master
Commit: 5bf0c1a4fa5a07ab25273bc1a1abfbf53746d200
Changeset: http://git.rtems.org/rtems/commit/?id=5bf0c1a4fa5a07ab25273bc1a1abfbf53746d200
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Wed Nov 28 14:52:22 2018 +0100
bsps/sparc: Fix SMP build
Update #3622.
---
bsps/shared/cache/cacheimpl.h | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/bsps/shared/cache/cacheimpl.h b/bsps/shared/cache/cacheimpl.h
index 96dc3c0..db84e05 100644
--- a/bsps/shared/cache/cacheimpl.h
+++ b/bsps/shared/cache/cacheimpl.h
@@ -41,6 +41,10 @@
#include <rtems.h>
+#if defined(RTEMS_SMP) && defined(CPU_CACHE_NO_INSTRUCTION_CACHE_SNOOPING)
+#include <rtems/score/smpimpl.h>
+#endif
+
#if CPU_DATA_CACHE_ALIGNMENT > CPU_CACHE_LINE_BYTES
#error "CPU_DATA_CACHE_ALIGNMENT is greater than CPU_CACHE_LINE_BYTES"
#endif
@@ -234,6 +238,11 @@ rtems_cache_disable_data( void )
&& defined(RTEMS_SMP) \
&& defined(CPU_CACHE_NO_INSTRUCTION_CACHE_SNOOPING)
+typedef struct {
+ const void *addr;
+ size_t size;
+} smp_cache_area;
+
static void smp_cache_inst_inv(void *arg)
{
smp_cache_area *area = arg;
More information about the vc
mailing list