Detecting Raspberry Pi Board: Difference between revisions

Jump to navigation Jump to search
Add `x` to `mrs` destination register to make things build with clang's integrated assembler too.
[unchecked revision][unchecked revision]
(Add `x` to `mrs` destination register to make things build with clang's integrated assembler too.)
Line 44:
/* read the system register */
#if __AARCH64__
asm volatile ("mrs %0x0, midr_el1" : "=r" (reg));
#else
asm volatile ("mrc p15,0,%0,c0,c0,0" : "=r" (reg));
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Navigation menu