Module Name: src Committed By: riastradh Date: Thu Apr 4 00:46:42 UTC 2024
Modified Files: src/lib/libc/arch/i386/gen: setjmp.S sigsetjmp.S src/tests/lib/libc/setjmp: t_sigstack.c Log Message: i386 longjmp: Restore stack first, then signal mask. Otherwise, a pending signal may be delivered on the wrong stack when we restore the signal mask. While here: - Tidy the code a little bit. - Sprinkle comments to explain what's going on. - Use forward branches for statically predicted not-taken. => val==0 is unlikely in longjmp PR lib/57946 To generate a diff of this commit: cvs rdiff -u -r1.17 -r1.18 src/lib/libc/arch/i386/gen/setjmp.S cvs rdiff -u -r1.18 -r1.19 src/lib/libc/arch/i386/gen/sigsetjmp.S cvs rdiff -u -r1.8 -r1.9 src/tests/lib/libc/setjmp/t_sigstack.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.