summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/prom_init.c
diff options
context:
space:
mode:
authorPaul Mackerras2005-11-30 03:20:54 +0100
committerPaul Mackerras2005-11-30 03:20:54 +0100
commit48abec07cf8063184d397560a6a5f27eaf9caddf (patch)
treec96acc7a1176d1848d4c8c9f623f8ed39a1f63de /arch/powerpc/kernel/prom_init.c
parent[PATCH] ppc: fix floating point register corruption (diff)
downloadkernel-qcow2-linux-48abec07cf8063184d397560a6a5f27eaf9caddf.tar.gz
kernel-qcow2-linux-48abec07cf8063184d397560a6a5f27eaf9caddf.tar.xz
kernel-qcow2-linux-48abec07cf8063184d397560a6a5f27eaf9caddf.zip
powerpc: Fix bug causing FP registers corruption on UP + preempt
This fixes a bug noticed by Paolo Galtieri and fixed for ARCH=ppc in the previous commit (ppc: fix floating point register corruption). This fixes the arch/powerpc code by adding preempt_disable/enable, and also cleans it up a bit by pulling out the code that discards any lazily-switched CPU register state into a new function, rather than having that code repeated in three places. Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/kernel/prom_init.c')
0 files changed, 0 insertions, 0 deletions