[OpenBIOS] L2 Cache Settings

Segher Boessenkool segher at kernel.crashing.org
Tue Jan 23 22:53:48 CET 2018


On Mon, Jan 22, 2018 at 09:50:57PM -0500, James Lyons via OpenBIOS wrote:
> Looks like for the 7447a we set SPR 1017( L2CR ) bit 0 ( L2E ) or  
> just write 0x8000000 to the reg.

One more zero (0x80000000).  And it is not enough.  You need at least
something like this (in Forth code):


\ This assumes we run after hard reset; if not, more work is needed.

\ l2cr@ ( -- x )  mfspr x,1017
\ l2cr~ ( x -- )  mtspr 1017,x

hex

: init-L2-7447A
  40200000 l2cr!  \ enable L2 parity, initiate invalidate
  BEGIN l2cr@ 00200000 and 0= UNTIL  \ wait for invalidate done
  c0200000 l2cr! ;  \ enable L2


Segher



More information about the OpenBIOS mailing list