Home | History | Annotate | Download | only in gen
History log of /src/lib/libc/arch/mips/gen/longjmp.c
RevisionDateAuthorComments
 1.7  24-Apr-2025  riastradh mips longjmp: Use _UC_SIGMASK to restore signal mask.

This way, restoring the signal mask and restoring the stack pointer
happen atomically with respect to signal handler calls, whereas using
sigprocmask would restore the signal mask _before_ the stack pointer,
breaking sigaltstack.

The motivation for using sigprocmask first and then setcontext later,
rather than _UC_SIGMASK in setcontext, was to get SA-based libpthead
sigprocmask interposition. But that's long gone and unlikely to come
back.

PR lib/57946: longjmp fails to restore stack first before restoring
signal mask on most architectures
 1.6  24-Jan-2016  christos Use namespace protected types.
 1.5  29-Mar-2012  christos make constant explicitly unsigned
 1.4  03-Sep-2010  matt branches: 1.4.6;
Pullup fixes from matt-nb5-mips64.
This makes setjmp/longjmp work again.
 1.3  16-Feb-2009  lukem fix -Wsign-compare issue
 1.2  28-Apr-2008  martin branches: 1.2.8; 1.2.10; 1.2.14;
Remove clause 3 and 4 from TNF licenses
 1.1  17-Sep-2005  tsutsui branches: 1.1.20;
Switch mips to the new libc compat code layout.
 1.1.20.1  18-May-2008  yamt sync with head.
 1.2.14.3  29-Apr-2011  matt Pull in fixes from -current.
 1.2.14.2  30-Apr-2010  matt Semantic change: Use _REG_x with gregs, no binary difference
 1.2.14.1  30-Apr-2010  matt For N32/N64, GP is callee-saved
 1.2.10.1  13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.2.8.2  28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.2.8.1  28-Apr-2008  martin file longjmp.c was added on branch christos-time_t on 2008-04-28 20:22:57 +0000
 1.4.6.1  17-Apr-2012  yamt sync with head

RSS XML Feed