]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: avoid faulting on qemu
authorRussell King <rmk+kernel@armlinux.org.uk>
Mon, 27 Nov 2017 11:22:42 +0000 (11:22 +0000)
committerRussell King <rmk+kernel@armlinux.org.uk>
Mon, 27 Nov 2017 11:22:42 +0000 (11:22 +0000)
commit51ae7dbe00a5146e5b563dba3e8b7a227dd58a41
treecea1260797f0c3af391c048a53f46db026221f87
parent7fc412ffe482b6f1698f52dee8d2e57d074e9503
ARM: avoid faulting on qemu

When qemu starts a kernel in a bare environment, the default SCR has
the AW and FW bits clear, which means that the kernel can't modify
the PSR A or PSR F bits, and means that FIQs and imprecise aborts are
always masked.

When running uboot under qemu, the AW and FW SCR bits are set, and the
kernel functions normally - and this is how real hardware behaves.

Fix this for qemu by ignoring the FIQ bit.

Fixes: 7fc412ffe482 ("ARM: BUG if jumping to usermode address in kernel mode")
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
arch/arm/kernel/entry-header.S