[PATCH 2/2] bsps/i386/shared/cache/cache.c: Make compile
Joel Sherrill
joel at rtems.org
Wed Jan 16 21:44:27 UTC 2019
---
bsps/i386/shared/cache/cache.c | 29 +++++++++++++++++++++++++++++
1 file changed, 29 insertions(+)
diff --git a/bsps/i386/shared/cache/cache.c b/bsps/i386/shared/cache/cache.c
index f8358f2..3d53ff0 100644
--- a/bsps/i386/shared/cache/cache.c
+++ b/bsps/i386/shared/cache/cache.c
@@ -55,11 +55,22 @@ static void _CPU_cache_flush_entire_data(void)
{
__asm__ volatile ("wbinvd");
}
+
static void _CPU_cache_invalidate_entire_data(void)
{
__asm__ volatile ("invd");
}
+static void _CPU_cache_invalidate_entire_instruction(void)
+{
+ __asm__ volatile ("invd");
+}
+
+static void _CPU_cache_invalidate_1_instruction_line(const void *i_addr)
+{
+ _CPU_cache_invalidate_entire_instruction();
+}
+
static void _CPU_cache_enable_data(void)
{
_CPU_enable_cache();
@@ -70,6 +81,24 @@ static void _CPU_cache_disable_data(void)
_CPU_disable_cache();
}
+static void _CPU_cache_enable_instruction(void)
+{
+ _CPU_enable_cache();
+}
+
+static void _CPU_cache_disable_instruction(void)
+{
+ _CPU_disable_cache();
+}
+
+static void _CPU_cache_freeze_instruction(void)
+{
+}
+
+static void _CPU_cache_unfreeze_instruction(void)
+{
+}
+
#endif
#include "../../../shared/cache/cacheimpl.h"
--
1.8.3.1
More information about the devel
mailing list