Anonymous user
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 %
#else
asm volatile ("mrc p15,0,%0,c0,c0,0" : "=r" (reg));
|