[PATCH] smptests/smpcache01: Test the SMP cache manager
Sebastian Huber
sebastian.huber at embedded-brains.de
Wed Sep 10 09:26:37 UTC 2014
On 14/07/14 17:40, Daniel Cederman wrote:
> +static void all_cache_manager_smp_functions( size_t set_size,
> + cpu_set_t *cpu_set )
> +{
> + rtems_cache_flush_multiple_data_lines_processor_set( 0, 10, set_size,
> + cpu_set );
> + rtems_cache_invalidate_multiple_data_lines_processor_set( 0, 10, set_size,
> + cpu_set );
> + rtems_cache_flush_entire_data_processor_set( set_size, cpu_set );
> + rtems_cache_invalidate_entire_data_processor_set( set_size, cpu_set );
> + rtems_cache_invalidate_entire_instruction();
> + rtems_cache_invalidate_multiple_instruction_lines( 0, 10 );
> +}
Here you have several NULL pointer accesses.
If you call rtems_cache_invalidate_entire_data_processor_set() on systems
having a write-back cache, then you kill the stack frame and the test does
weird things.
--
Sebastian Huber, embedded brains GmbH
Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone : +49 89 189 47 41-16
Fax : +49 89 189 47 41-09
E-Mail : sebastian.huber at embedded-brains.de
PGP : Public key available on request.
Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.
More information about the devel
mailing list