]> git.proxmox.com Git - mirror_ubuntu-artful-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)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Tue, 13 Mar 2018 10:27:11 +0000 (11:27 +0100)
commit0b982592528f7b385b8493a3fd7d322efc07026f
tree0bf9a738e1abb7a0c406d38559f7250b7016ff30
parente35ea8762a29939557bfc2adcd3fc970582b665d
ARM: avoid faulting on qemu

BugLink: http://bugs.launchpad.net/bugs/1745047
commit 3aaf33bebda8d4ffcc0fc8ef39e6c1ac68823b11 upstream.

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: 8bafae202c82 ("ARM: BUG if jumping to usermode address in kernel mode")
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Cc: Alex Shi <alex.shi@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
arch/arm/kernel/entry-header.S