summaryrefslogtreecommitdiffstats
path: root/sys/arch/sh/include/signal.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* SROP mitigation. sendsig() stores a (per-process ^ &sigcontext) cookiederaadt2016-05-101-3/+3
| | | | | | | | inside the sigcontext. sigreturn(2) checks syscall entry was from the exact PC addr in the (per-process ASLR) sigtramp, verifies the cookie, and clears it to prevent sigcontext reuse. not yet tested on landisk, sparc, *88k, socppc. ok kettenis
* Determine whether we're currently on the alternative signal stackguenther2012-12-021-2/+2
| | | | | | | | | dynamically, by comparing the stack pointer against the altstack base and size, so that you get the correct answer if you longjmp out of the signal handler, as tested by regress/sys/kern/stackjmp/. Also, fix alt stack handling on vax, where it was completely broken. Testing and corrections by miod@, krw@, tobiasu@, pirofti@
* Remove reg.h inclusion.pirofti2012-04-271-2/+1
| | | | | | Missed by miod@ in his previous commit. Now groff should build. Okay miod@.
* Avoid horrible namespace pollution of <machine/signal.h> pulling inmiod2012-04-131-3/+3
| | | | | | | | <machine/reg.h> for the needs of struct sigcontext; said struct ought to only use simple integer types. Fixes build of groff on landisk. ok pirofti@ (who had a similar diff)
* only pull reg.h in when __BSD_VISIBLE || __XPG_VISIBLE >= 420, asderaadt2011-11-211-2/+3
| | | | | | on m88k, which is another architecture with structs visible inside sigcontext. for pirofti ok miod guenther
* Move landisk to hardware floating point. At the moment the FPU context ismiod2007-03-021-20/+4
| | | | | | | | | | | | | | | always saved upon context switches, as FPU registers are heavily used for long long computations (don't ask). Gcc default to -m4. Credits to drahn@ otto@ and deraadt@ for feedback and help testing. Upgrade procedure if you don't want to use the damn snapshots: - build and install new kernel, reboot off it - build new gcc, do not install it yet - make includes - install new gcc - build and install lib/csu and lib/libc - make build
* Preliminary bits for SuperH-based ports, based on NetBSD/sh3 codebase withmiod2006-10-061-0/+80
minor changes.