summaryrefslogtreecommitdiffstats
path: root/lib/libc/arch/i386/gen/setjmp.S (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Geode CPU does not support SSE, so MXCSR does not exists there. Asbluhm2020-12-131-3/+1
| | | | | | | | our i386 compiler does not generate SSE instructions by default, it is not strictly necessary to save MXCSR content between setjmp(3) and longjmp(3). We do not want to end supporting such old processors now. Remove the stmxcsr and ldmxcsr instructions from libc. reported by Johan Huldtgren; OK jsg@ kettenis@
* On i386 setjmp(3) should store the FPU state and longjmp(3) restorebluhm2020-12-061-1/+5
| | | | | | it. There is enough space in jmp_buf to save MXCSR and CW register. Idea taken from amd64. This fixes regress/lib/libc/setjmp-fpu . OK kettenis@
* Introduce constants to access the setjmp(3) jmp_buf fields frombluhm2020-12-061-25/+26
| | | | | | | i386 libc. The assembler code is more readable than with magic numbers. This brings i386 in line with amd64. No change in object file. OK kettenis@
* Do setjmp cookies for eip, esp, and ebp. For bonus points, mix howguenther2016-05-301-30/+50
| | | | | | | | the cookies are used in setjmp/_setjmp/sigsetjmp so that mixing calls (e.g., longjmp on a _setjmp buffer) will scramble all three registers and jump you to a random location on a random stack! ok deraadt@
* Do provide hidden _libc_* aliases for sig{block,setmask} and use them inguenther2015-09-131-5/+5
| | | | | | | the ASM *setjmp implementations. Skip the PLT when calling them on amd64 (other archs to do this after testing) ok miod@
* Convert cpp | as rules in bsd.lib.mk and lib/libc/sys/Makefile.inc to pure ccpascal2012-08-221-3/+3
| | | | | | | invocations. This allows us to use the compiler builtin define __PIC__ to check for PIC/PIEness rather than passing -DPIC. Simplifies PIE work a lot. ok matthew@, conceptually ok kurt@
* zap rcsid, tested there. okay deraadt@espie2005-08-071-5/+1
|
* Fix typo in comment (_setjmp -> setjmp)hshoexer2005-04-011-2/+2
| | | | ok deraadt
* Remove the advertising clause in the UCB license which Berkeleymillert2003-06-021-6/+2
| | | | rescinded 22 July 1999. Proofed by myself and Theo.
* ELF fixups, ELF PIC syscall support, asm changes as requested by assembler.drahn2003-04-171-1/+7
|
* use _C_LABELmickey2001-11-011-5/+5
|
* Fix RCS idstholo1996-08-191-4/+1
| | | | Make sure everything uses {SYS,}LIBC_SCCS properly
* from netbsd:deraadt1995-12-301-5/+4
| | | | Remove #include "SYS.h"; it is not needed (by normal assembly functions)
* initial import of NetBSD treederaadt1995-10-181-0/+99