Here is the kernel module source code which works OK on Raspberry Pi 3, armv7 architecture:
void
enable_ccr(
*info) {
asm
volatile
(
"MCR p15, 0, %0, c9, c14, 0"
::
"r"
(1));
"MCR p15, 0, %0, c9, c12, 0\t\n"
"MCR p15, 0, %0, c9, c12, 1\t\n"
(0x80000000));
}
I have now switched my Raspberry Pi to 64-bit Linux Ubuntu OS, so the architecture is aarch64.
When I try to compile the source, I get error:
Error: unknown mnemonic `mcr' -- `mcr p15,0,x0,c9,c14,0'
How do I fix this?