arm64: record boot mode when entering the kernel
authorMarc Zyngier <marc.zyngier@arm.com>
Fri, 26 Oct 2012 14:40:05 +0000 (15:40 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Wed, 5 Dec 2012 11:26:48 +0000 (11:26 +0000)
commitf35a92053b45cf8154db5558ede3ba5245c9dc7e
treefc4b8d9cfcd538251db7ee8a03286bef302d6ba0
parentdc637f1fdaa6f335271a0341fef3914b80ab929c
arm64: record boot mode when entering the kernel

To be able to signal the availability of EL2 to other parts of
the kernel, record the boot mode.

Once booted, two predicates indicate if HYP mode is available,
and if not, whether this is due to a boot mode mismatch or not.

Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/include/asm/virt.h [new file with mode: 0644]
arch/arm64/kernel/head.S