summaryrefslogtreecommitdiff
path: root/lib/libc/amd64/gen/signalcontext.c
Commit message (Collapse)AuthorAgeFilesLines
* libc: further adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-251-1/+3
| | | | | | | | | | | | | | | Mainly focus on files that use BSD 2-Clause license, however the tool I was using mis-identified many licenses so this was mostly a manual - error prone - task. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. Notes: svn path=/head/; revision=326193
* Set fpu context flags to known values, zero is illegal.David Xu2004-07-281-0/+2
| | | | Notes: svn path=/head/; revision=132795
* Avoid to touch red zone, in libpthread, ucontext may be saved by kernel'sDavid Xu2004-06-151-1/+1
| | | | | | | | | | get_mcontext, and libpthread will use signalcontext to deliver signal in userland, it looks same as kernel's send_sig does. Reviewed by: deischen, tjr Notes: svn path=/head/; revision=130546
* Fix Yet Another 16 byte stack alignment bug. Thankfully, this one isPeter Wemm2004-03-311-7/+7
| | | | | | | | | | | | | | solved by a simple 'make world'. The signalcontext function was going to the trouble of generating an even 16 byte alignment, but in fact it needed to be odd aligned to simulate the 8-byte return address having been pushed by the caller. This fixes yet another group of crashes in applications using libpthread. And yet again, it was my fault all along. While here, rename the duplicate internal ctx_wrapper() functions to makectx_wrapper() and sigctx_wrapper() so that traces aren't ambiguous. Notes: svn path=/head/; revision=127658
* Set mc_len to sizeof(mcontext_t), otherwise it is an invalid context.David Xu2003-07-261-0/+1
| | | | Notes: svn path=/head/; revision=118058
* Add amd64 versions of makecontext() and signalcontext() neededDaniel Eischen2003-07-191-0/+103
for libkse (makecontext() is also needed for libthr). These probably will need some tweaking. Notes: svn path=/head/; revision=117755