[PATCH 2/2] bsps/i386/shared/cache/cache.c: Make compile

Chris Johns chrisj at rtems.org
Wed Jan 16 22:35:26 UTC 2019


+1, I have just tripped over this one.

On 17/1/19 8:44 am, Joel Sherrill wrote:
> ---
>  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"
> 



More information about the devel mailing list