[OpenBIOS] L2 Cache Settings

Programmingkid programmingkidx at gmail.com
Tue Jan 23 04:35:17 CET 2018


> On Jan 22, 2018, at 9:50 PM, James Lyons via OpenBIOS <openbios at openbios.org> wrote:
> 
> Looks like for the 7447a we set SPR 1017( L2CR ) bit 0 ( L2E ) or just write 0x8000000 to the reg.
> 
> Not sure how we do this in Openbios.

This would be done in PowerPC assembly. A C function can contain the inline assembly code. 

It would look something like this:

void setup_PPC_7447a(void)
{
    asm volatile("addis r10, 0, 0x8000");
    asm volatile("mtspr 1017, r10");
}


More information about the OpenBIOS mailing list