]> Git Repo - linux.git/commit
arm64: head: create a new function for setting the boot_cpu_mode flag
authorMatthew Leach <[email protected]>
Fri, 11 Oct 2013 13:52:16 +0000 (14:52 +0100)
committerCatalin Marinas <[email protected]>
Fri, 25 Oct 2013 14:59:39 +0000 (15:59 +0100)
commit828e9834e9a5b7e61046aa3c5f603a4fecba2fb4
tree0a0e3cd11b88f88b718e71fcb7990152486cf1a7
parente68bedaa03c950ae8045e7899e7a6b2a97d1bf41
arm64: head: create a new function for setting the boot_cpu_mode flag

Currently, the code for setting the __cpu_boot_mode flag is munged in
with el2_setup. This makes things difficult on a BE bringup as a
memory access has to have occurred before el2_setup which is the place
that we'd like to set the endianess on the current EL.

Create a new function for setting __cpu_boot_mode and have el2_setup
return the mode the CPU. Also define a new constant in virt.h,
BOOT_CPU_MODE_EL1, for readability.

Acked-by: Marc Zyngier <[email protected]>
Acked-by: Will Deacon <[email protected]>
Signed-off-by: Matthew Leach <[email protected]>
Signed-off-by: Catalin Marinas <[email protected]>
arch/arm64/include/asm/virt.h
arch/arm64/kernel/head.S
This page took 0.057691 seconds and 4 git commands to generate.