+29
−29
+27
−27
+1
−1
Loading
Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more
Older assemblers may not have support for newer feature registers. To get round this, sysreg.h provides a 'mrs_s' macro that takes a register encoding and generates the raw instruction. Change read_cpuid() to use mrs_s in all cases so that new registers don't have to be a special case. Including sysreg.h means we need to move the include and definition of read_cpuid() after the #ifndef __ASSEMBLY__ to avoid syntax errors in vmlinux.lds. Signed-off-by:James Morse <james.morse@arm.com> Acked-by:
Mark Rutland <mark.rutland@arm.com> Signed-off-by:
Catalin Marinas <catalin.marinas@arm.com> Bug: 31432001 Change-Id: I14b627485c39a8ce180360409b5ecdc6fc5a874b (cherry picked from commit 0f54b14e76f5302afe164dc911b049b5df836ff5) Signed-off-by:
Sami Tolvanen <samitolvanen@google.com>