mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-09-21 17:36:15 +08:00
bsps/i386/shared/cache/cache.c: Make compile
This commit is contained in:
Vendored
+29
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user