From: Chris Johns <chr...@rtems.org> - Coherent cache memory is used in libbsd for things like descriptors and it optionally clears the memory on allocation. Test is works. --- testsuites/sptests/spcache01/init.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/testsuites/sptests/spcache01/init.c b/testsuites/sptests/spcache01/init.c index b6ad797dd3..fa87204b4b 100644 --- a/testsuites/sptests/spcache01/init.c +++ b/testsuites/sptests/spcache01/init.c @@ -451,9 +451,12 @@ static void test_cache_coherent_alloc(void) printf("test cache coherent allocation\n"); - p0 = rtems_cache_coherent_allocate(1, 0, 0); + p0 = rtems_cache_coherent_allocate(512, 0, 0); rtems_test_assert(p0 != NULL); + printf("clear cache coherent with memset: %p\n", p0); + memset(p0, 0, 512); + rtems_cache_coherent_free(p0); p0 = rtems_cache_coherent_allocate(1, 0, 0); -- 2.24.1 _______________________________________________ devel mailing list devel@rtems.org http://lists.rtems.org/mailman/listinfo/devel