commit | 990118c84b3e90b2b5354b6e2acd961044d7fa12 | [log] [tgz] |
---|---|---|
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | Fri Mar 02 11:01:31 2012 +1100 |
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | Fri Mar 09 10:55:16 2012 +1100 |
tree | c34310e6d49cffa38d242270e58f661dd90a575d | |
parent | 7ac21cd465391802d931bd5e692302639383b8f5 [diff] |
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>