diff options
author | Khem Raj <kraj@mvista.com> | 2006-08-31 19:49:16 +0000 |
---|---|---|
committer | Khem Raj <kraj@mvista.com> | 2006-08-31 19:49:16 +0000 |
commit | 84211be0889a59d7188645aefb5325ddfd642627 (patch) | |
tree | 0519bfa28d66c66774d5e70a05daae32f7bbe473 /libc/sysdeps/linux/arm/__longjmp.S | |
parent | 967639a59cfbcdecc1a93d6e28a77fdd88e893cf (diff) |
Fix from Joseph Myers: Save and restore iWMMXt registers in ARM setjmp/longjmp
Diffstat (limited to 'libc/sysdeps/linux/arm/__longjmp.S')
-rw-r--r-- | libc/sysdeps/linux/arm/__longjmp.S | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/arm/__longjmp.S b/libc/sysdeps/linux/arm/__longjmp.S index 27f127122..4261797f8 100644 --- a/libc/sysdeps/linux/arm/__longjmp.S +++ b/libc/sysdeps/linux/arm/__longjmp.S @@ -60,6 +60,16 @@ __longjmp: lfmfd f4, 4, [ip] ! /* load the floating point regs */ # endif #endif +#ifdef __IWMMXT__ + /* Restore the call-preserved iWMMXt registers. */ + /* Following instructions are wldrd wr10, [ip], #8 (etc.) */ + ldcl p1, cr10, [r12], #8 + ldcl p1, cr11, [r12], #8 + ldcl p1, cr12, [r12], #8 + ldcl p1, cr13, [r12], #8 + ldcl p1, cr14, [r12], #8 + ldcl p1, cr15, [r12], #8 +#endif #if defined(__USE_BX__) bx lr |