[PATCH 04/17] bsps/i386/shared/cache/cache.c: Fix warnings

Joel Sherrill joel at rtems.org
Wed Aug 29 20:15:17 UTC 2018


---
 bsps/i386/shared/cache/cache.c | 22 ++--------------------
 1 file changed, 2 insertions(+), 20 deletions(-)

diff --git a/bsps/i386/shared/cache/cache.c b/bsps/i386/shared/cache/cache.c
index df79094..ecbabc4 100644
--- a/bsps/i386/shared/cache/cache.c
+++ b/bsps/i386/shared/cache/cache.c
@@ -51,10 +51,6 @@ static void _CPU_cache_flush_1_data_line(const void *d_addr) {}
 static void _CPU_cache_invalidate_1_data_line(const void *d_addr) {}
 static void _CPU_cache_freeze_data(void) {}
 static void _CPU_cache_unfreeze_data(void) {}
-static void _CPU_cache_invalidate_1_instruction_line ( const void *d_addr ) {}
-static void _CPU_cache_freeze_instruction(void) {}
-static void _CPU_cache_unfreeze_instruction(void) {}
-
 static void _CPU_cache_flush_entire_data(void)
 {
   __asm__ volatile ("wbinvd");
@@ -66,28 +62,14 @@ static void _CPU_cache_invalidate_entire_data(void)
 
 static void _CPU_cache_enable_data(void)
 {
-        _CPU_enable_cache();
-}
-
-static void _CPU_cache_disable_data(void)
-{
-        _CPU_disable_cache();
-}
-
-static void _CPU_cache_invalidate_entire_instruction(void)
-{
-  __asm__ volatile ("invd");
-}
-
-static void _CPU_cache_enable_instruction(void)
-{
   _CPU_enable_cache();
 }
 
-static void _CPU_cache_disable_instruction( void )
+static void _CPU_cache_disable_data(void)
 {
   _CPU_disable_cache();
 }
+
 #endif
 
 #include "../../../shared/cache/cacheimpl.h"
-- 
1.8.3.1




More information about the devel mailing list