On Wed, Jan 24, 2018 at 09:47:13AM -0500, Programmingkid wrote:
On Jan 23, 2018, at 4:57 PM, Segher Boessenkool segher@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