From 806d7daafe9953ef3f37c1ced4f10e9fb7ec6f31 Mon Sep 17 00:00:00 2001 From: Marcel Moolenaar Date: Thu, 9 Nov 2000 08:25:48 +0000 Subject: Make MINSIGSTKSZ machine dependent, and have the sigaltstack syscall compare against a variable sv_minsigstksz in struct sysentvec as to properly take the size of the machine- and ABI dependent struct sigframe into account. The SVR4 and iBCS2 modules continue to have a minsigstksz of 8192 to preserve behavior. The real values (if different) are not known at this time. Other ABI modules use the real values. The native MINSIGSTKSZ is now defined as follows: Arch MINSIGSTKSZ ---- ----------- alpha 4096 i386 2048 ia64 12288 Reviewed by: mjacob Suggested by: bde --- sys/amd64/include/signal.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'sys/amd64') diff --git a/sys/amd64/include/signal.h b/sys/amd64/include/signal.h index e3f1b19c4cea..1e91f6042564 100644 --- a/sys/amd64/include/signal.h +++ b/sys/amd64/include/signal.h @@ -45,6 +45,12 @@ typedef int sig_atomic_t; #if !defined(_ANSI_SOURCE) && !defined(_POSIX_SOURCE) +/* + * Minimum signal stack size. The current signal frame + * for i386 is 408 bytes large. + */ +#define MINSIGSTKSZ (512 * 4) + #include /* codes for SIGILL, SIGFPE */ /* -- cgit v1.3