mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-20 11:11:24 +00:00
cafd6dbd76
not save (restore) the global pointer (GP) in the jmpbuf in setjmp (longjmp) because it's not needed in general. GP is considered a scratch register at callsites and hence is always restored after a call (when it's possible that the call resolves to a symbol in a different loadmodule; otherwise GP does not have to be saved and restored at all), including calls to setjmp/longjmp. There's just one problem with this now that we use setjmp/longjmp for context switching: A new context must have GP defined properly for the thread's entry point. This means that we need to put GP in the jmpbuf and consequently that we have to restore is in longjmp. This automaticly requires us to save it as well. When setjmp/longjmp isn't used for context switching, this can be reverted again. |
||
---|---|---|
.. | ||
__divdf3.S | ||
__divdi3.S | ||
__divsf3.S | ||
__divsi3.S | ||
__moddi3.S | ||
__modsi3.S | ||
__udivdi3.S | ||
__udivsi3.S | ||
__umoddi3.S | ||
__umodsi3.S | ||
_setjmp.S | ||
fabs.S | ||
fpgetmask.c | ||
fpgetround.c | ||
fpsetmask.c | ||
fpsetround.c | ||
frexp.c | ||
infinity.c | ||
isinf.c | ||
ldexp.c | ||
Makefile.inc | ||
modf.c | ||
setjmp.S | ||
sigsetjmp.S | ||
unwind.c |