Let's fully exploit tpidrro_el0 by storing in it the current CPU's struct _cpu instance alongside the userspace mode flag bit. This greatly simplifies the code needed to get at the cpu structure, and this paves the way to much simpler multi cluster support, as there is no longer the need to decode MPIDR all the time. The same code is used in the !SMP case as there are benefits there too such as avoiding the literal pool, and it looks cleaner. The tpidrro_el0 value is no longer stored in the exception stack frame. Instead, we simply restore the user mode flag based on the SPSR value. This way, more flag bits could be used independently in the future. Signed-off-by: Nicolas Pitre <npitre@baylibre.com> |
||
|---|---|---|
| .. | ||
| cortex_r/mpu | ||
| scripts | ||
| arch_inlines.h | ||
| arch.h | ||
| arm_mmu.h | ||
| arm-smccc.h | ||
| asm_inline_gcc.h | ||
| asm_inline.h | ||
| cpu.h | ||
| error.h | ||
| exc.h | ||
| irq.h | ||
| lib_helpers.h | ||
| macro.inc | ||
| misc.h | ||
| sys_io.h | ||
| syscall.h | ||
| thread_stack.h | ||
| thread.h | ||
| timer.h | ||
| tpidrro_el0.h | ||