Oh sorry forgot one thing ... > >> /* >> * Armv8-R supports direct access and indirect access to the MPU regions >> through >> * registers: >> @@ -85,6 +87,7 @@ static void __init __maybe_unused build_assertions(void) >> */ >> static void prepare_selector(uint8_t *sel) >> { >> +#ifdef CONFIG_ARM_64 >> uint8_t cur_sel = *sel; >> >> /* >> @@ -98,7 +101,8 @@ static void prepare_selector(uint8_t *sel) >> WRITE_SYSREG(cur_sel, PRSELR_EL2); >> isb(); >> } >> - *sel &= 0xFU; >> + *sel = *sel & 0xFU;
this line is not part of this commit, maybe rebase clash? Cheers, Luca