projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6cb6524
)
powerpc/64: Fix bug in setting floating-point exception mode
author
Paul Mackerras
<paulus@samba.org>
Tue, 7 Feb 2006 02:55:30 +0000
(13:55 +1100)
committer
Paul Mackerras
<paulus@samba.org>
Tue, 7 Feb 2006 02:55:30 +0000
(13:55 +1100)
When loading up the FPU, we were using a 'ld' (load doubleword)
instruction to get the FP exception mode from the thread_struct,
but it's only an int field. This changes the ld to lwz (load
word and zero-extend).
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/kernel/fpu.S
patch
|
blob
|
blame
|
history
diff --git
a/arch/powerpc/kernel/fpu.S
b/arch/powerpc/kernel/fpu.S
index e4362dfa37fba2e1971167c23d1a6c613152062e..340730fb8c9110608c8a47b5eb35724170e10d69 100644
(file)
--- a/
arch/powerpc/kernel/fpu.S
+++ b/
arch/powerpc/kernel/fpu.S
@@
-66,7
+66,7
@@
_GLOBAL(load_up_fpu)
#else
ld r4,PACACURRENT(r13)
addi r5,r4,THREAD /* Get THREAD */
- l
d
r4,THREAD_FPEXC_MODE(r5)
+ l
wz
r4,THREAD_FPEXC_MODE(r5)
ori r12,r12,MSR_FP
or r12,r12,r4
std r12,_MSR(r1)