mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-26 06:08:20 +00:00
9
bsps/shared/cache/cacheimpl.h
vendored
9
bsps/shared/cache/cacheimpl.h
vendored
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user