[rtems commit] score: Add missing define to cache manager

Joel Sherrill joel.sherrill at oarcorp.com
Mon Aug 25 15:34:49 UTC 2014


Do we want these methods provided with empty implementations
on targets without CPU_CACHE_SUPPORT_PROVIDES_RANGE_FUNCTIONS?

We have always aimed for a consistent API. This propagates the use
of a conditional into drivers and other code.

--joel
On 8/25/2014 1:50 AM, Sebastian Huber wrote:
> Module:    rtems
> Branch:    master
> Commit:    e7a42a0cfbafc2311888780b086010aef6556311
> Changeset: http://git.rtems.org/rtems/commit/?id=e7a42a0cfbafc2311888780b086010aef6556311
>
> Author:    Daniel Cederman <cederman at gaisler.com>
> Date:      Mon Aug 25 08:48:17 2014 +0200
>
> score: Add missing define to cache manager
>
> ---
>
>  c/src/lib/libcpu/shared/src/cache_manager.c |    2 ++
>  1 files changed, 2 insertions(+), 0 deletions(-)
>
> diff --git a/c/src/lib/libcpu/shared/src/cache_manager.c b/c/src/lib/libcpu/shared/src/cache_manager.c
> index 7dd408f..7ff1166 100644
> --- a/c/src/lib/libcpu/shared/src/cache_manager.c
> +++ b/c/src/lib/libcpu/shared/src/cache_manager.c
> @@ -435,6 +435,7 @@ rtems_cache_disable_data( void )
>   * and then perform the invalidations.
>   */
>  
> +#if defined(CPU_INSTRUCTION_CACHE_ALIGNMENT)
>  #if !defined(CPU_CACHE_SUPPORT_PROVIDES_RANGE_FUNCTIONS)
>  static void
>  _invalidate_multiple_instruction_lines_no_range_functions(
> @@ -462,6 +463,7 @@ _invalidate_multiple_instruction_lines_no_range_functions(
>    }
>  }
>  #endif
> +#endif
>  
>  void
>  rtems_cache_invalidate_multiple_instruction_lines(
>
> _______________________________________________
> vc mailing list
> vc at rtems.org
> http://lists.rtems.org/mailman/listinfo/vc

-- 
Joel Sherrill, Ph.D.             Director of Research & Development
joel.sherrill at OARcorp.com        On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
Support Available                (256) 722-9985



More information about the vc mailing list