Module Name: src Committed By: martin Date: Wed Apr 27 21:08:48 UTC 2011
Modified Files: src/lib/libc/arch/sparc64/gen: longjmp.c setjmp.S sigsetjmp.S Log Message: Fix offsets used in the assembly code to save global registers into a jmp_buf, add a compile time assert to catch this kind of divergence in the C code. Move the fixed "%npc = %pc + 4" computation to longjmp, this frees the sigcontext sc_npc value. Use this space to save the savemask for siglongjmp (we have run out of space behind the globals). Fixes the tests/lib/libc/setjmp/t_threadjmp tests, and also hopefully fixes PR port-sparc64/44902. To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/lib/libc/arch/sparc64/gen/longjmp.c cvs rdiff -u -r1.7 -r1.8 src/lib/libc/arch/sparc64/gen/setjmp.S cvs rdiff -u -r1.8 -r1.9 src/lib/libc/arch/sparc64/gen/sigsetjmp.S Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.