From 84211be0889a59d7188645aefb5325ddfd642627 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Thu, 31 Aug 2006 19:49:16 +0000 Subject: Fix from Joseph Myers: Save and restore iWMMXt registers in ARM setjmp/longjmp --- libc/sysdeps/linux/arm/setjmp.S | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'libc/sysdeps/linux/arm/setjmp.S') diff --git a/libc/sysdeps/linux/arm/setjmp.S b/libc/sysdeps/linux/arm/setjmp.S index ceea96a40..8d15b8324 100644 --- a/libc/sysdeps/linux/arm/setjmp.S +++ b/libc/sysdeps/linux/arm/setjmp.S @@ -52,6 +52,16 @@ __sigsetjmp: # else sfmea f4, 4, [ip]! # endif +#endif +#ifdef __IWMMXT__ + /* Save the call-preserved iWMMXt registers. */ + /* Following instructions are wstrd wr10, [ip], #8 (etc.) */ + stcl p1, cr10, [r12], #8 + stcl p1, cr11, [r12], #8 + stcl p1, cr12, [r12], #8 + stcl p1, cr13, [r12], #8 + stcl p1, cr14, [r12], #8 + stcl p1, cr15, [r12], #8 #endif /* Make a tail call to __sigjmp_save; it takes the same args. */ -- cgit v1.2.3