[OpenBIOS] L2 Cache Settings
Segher Boessenkool
segher at kernel.crashing.org
Wed Jan 24 19:21:07 CET 2018
On Wed, Jan 24, 2018 at 09:47:13AM -0500, Programmingkid wrote:
> > On Jan 23, 2018, at 4:57 PM, Segher Boessenkool <segher at kernel.crashing.org> wrote:
> > You meant something like
> >
> > void enable_L2_7447A(void)
> > {
> > asm("mtspr %0,%1" : : "n"(1017), "r"(0x80000000));
> > }
>
> I would change "asm" to "asm volatile" to prevent the compiler from optimizing this code out.
The asm has no outputs so it is already volatile.
Segher
More information about the OpenBIOS
mailing list