[PATCH 1/4] bsp/leon3: Invalidate L1 caches during startup

Sebastian Huber sebastian.huber at embedded-brains.de
Tue Feb 18 13:58:12 UTC 2014


On 2014-02-18 14:49, Daniel Hellstrom wrote:
>
> Is this needed for CPU0 also?

I don't know.  In which state are the caches after a power-on-reset?

> Otherwise I think it would be enough to
> invalidate the caches when the other cache parameters to save one instruction,
> they are modified in leon3_secondary_cpu_initialize():
>
> - sparc_leon3_set_cctrl( 0x80000F );
> + sparc_leon3_set_cctrl( 0xE0000F );

I don't know if this cache flush is required at all.  In case it is required, 
then no read from memory must happen before the start of the flush operation. 
The easiest way to ensure this is to do it right at the start before the first 
C function is called.

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