[PATCH 4/5] SMP01: possible CPU race when using byte arrays

Sebastian Huber sebastian.huber at embedded-brains.de
Thu Oct 31 14:54:45 UTC 2013


On 2013-10-31 15:27, Daniel Hellstrom wrote:
> On 10/31/2013 03:17 PM, Sebastian Huber wrote:
>> On 2013-10-31 14:58, Daniel Hellstrom wrote:
>>> Switch to using 32-bit variable that works better on a
>>> 32-bit CPU. This does not solve the general SMP case
>>> though, would perhaps better to use an atomic set
>>> here.
>>
>> In case a CPU doesn't support atomic 8-bit load/store operations it
>> insufficient for SMP.
>>
>> A proper fix would be to use atomic operations, which we don't support at the
>> moment.
>
> Agree. This is a temporary fix that is required for the LEON to run the test.

What is the problem with the current test code on LEON?

-- 
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