Skeleton for smcGetConfig and smcSetConfig

This commit is contained in:
Michael Scire 2018-02-19 00:41:19 -08:00
parent f629a629d1
commit f77cae48d0
4 changed files with 114 additions and 1 deletions

View file

@ -17,7 +17,7 @@ static inline uint32_t read32be(const unsigned char *dword, size_t offset) {
static inline unsigned int get_core_id(void) {
unsigned int core_id;
__asm__ __volatile__ ("mrs %0, MPIDR_EL1" : "=r"(core_id));
return core_id;
return core_id & 3;
}
#endif