From: Marc Zyngier Date: Fri, 6 Jun 2014 13:16:21 +0000 (+0100) Subject: arm64: fix el2_setup check of CurrentEL X-Git-Tag: omap-for-v3.16/fixes-rc4~16^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=974c8e450b9327a03453a4a450a2030b1bd42b5f;p=pandora-kernel.git arm64: fix el2_setup check of CurrentEL The CurrentEL system register reports the Current Exception Level of the CPU. It doesn't say anything about the stack handling, and yet we compare it to PSR_MODE_EL2t and PSR_MODE_EL2h. It works by chance because PSR_MODE_EL2t happens to match the right bits, but that's otherwise a very bad idea. Just check for the EL value instead. Signed-off-by: Marc Zyngier [catalin.marinas@arm.com: fixed arch/arm64/kernel/efi-entry.S] Signed-off-by: Catalin Marinas --- Reading git-diff-tree failed