about summary refs log tree commit diff
path: root/sysdeps/powerpc/setjmp.S
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/powerpc/setjmp.S')
-rw-r--r--sysdeps/powerpc/setjmp.S2
1 files changed, 2 insertions, 0 deletions
diff --git a/sysdeps/powerpc/setjmp.S b/sysdeps/powerpc/setjmp.S
index dc9d923c75..32b1b94c30 100644
--- a/sysdeps/powerpc/setjmp.S
+++ b/sysdeps/powerpc/setjmp.S
@@ -31,8 +31,10 @@ ENTRY (__sigsetjmp)
 	stw  %r0,(JB_LR*4)(3)
 	stw  %r15,((JB_GPRS+1)*4)(3)
 	stfd %f15,((JB_FPRS+1*2)*4)(3)
+	mfcr %r0
 	stw  %r16,((JB_GPRS+2)*4)(3)
 	stfd %f16,((JB_FPRS+2*2)*4)(3)
+	stw  %r0,(JB_CR*4)(3)
 	stw  %r17,((JB_GPRS+3)*4)(3)
 	stfd %f17,((JB_FPRS+3*2)*4)(3)
 	stw  %r18,((JB_GPRS+4)*4)(3)