[PATCH] testsuite/spcache01: Clear allocated coherent cache memory
Sebastian Huber
sebastian.huber at embedded-brains.de
Mon Oct 18 09:37:09 UTC 2021
On 18/10/2021 09:53, Chris Johns wrote:
> On 18/10/21 4:50 pm, Sebastian Huber wrote:
>> On 18/10/2021 07:19,chrisj at rtems.org wrote:
>>> From: Chris Johns<chrisj at rtems.org>
>>>
>>> - Coherent cache memory is used in libbsd for things like descriptors
>>> and it optionally clears the memory on allocation. Test is works.
>> There is no guarantee that memset() and memcpy() work with cache coherent
>> memory. Such memory areas may disallow misaligned access for example.
> That seems reasonable however this change about testing the implicit
> requirements we have that memset works. LibBSD requires memset works ...
>
> https://git.rtems.org/rtems-libbsd/tree/rtemsbsd/rtems/rtems-kernel-bus-dma.c?h=6-freebsd-12#n260
Using memset() here could be a bug in libbsd.
--
embedded brains GmbH
Herr Sebastian HUBER
Dornierstr. 4
82178 Puchheim
Germany
email: sebastian.huber at embedded-brains.de
phone: +49-89-18 94 741 - 16
fax: +49-89-18 94 741 - 08
Registergericht: Amtsgericht München
Registernummer: HRB 157899
Vertretungsberechtigte Geschäftsführer: Peter Rasmussen, Thomas Dörfler
Unsere Datenschutzerklärung finden Sie hier:
https://embedded-brains.de/datenschutzerklaerung/
More information about the devel
mailing list