summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/exceptions-64e.S
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt2012-03-02 01:01:31 +0100
committerBenjamin Herrenschmidt2012-03-09 00:55:16 +0100
commit990118c84b3e90b2b5354b6e2acd961044d7fa12 (patch)
treec34310e6d49cffa38d242270e58f661dd90a575d /arch/powerpc/kernel/exceptions-64e.S
parentpowerpc/xmon: Add display of soft & hard irq states (diff)
downloadkernel-qcow2-linux-990118c84b3e90b2b5354b6e2acd961044d7fa12.tar.gz
kernel-qcow2-linux-990118c84b3e90b2b5354b6e2acd961044d7fa12.tar.xz
kernel-qcow2-linux-990118c84b3e90b2b5354b6e2acd961044d7fa12.zip
powerpc: Fix register clobbering when accumulating stolen time
When running under a hypervisor that supports stolen time accounting, we may call C code from the macro EXCEPTION_PROLOG_COMMON in the exception entry path, which clobbers CR0. However, the FPU and vector traps rely on CR0 indicating whether we are coming from userspace or kernel to decide what to do. So we need to restore that value after the C call Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/kernel/exceptions-64e.S')
0 files changed, 0 insertions, 0 deletions