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/alpha/include/signal.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'sys/alpha/include') diff --git a/sys/alpha/include/signal.h b/sys/alpha/include/signal.h index 2e018642ff9a..02a4bfd2e56c 100644 --- a/sys/alpha/include/signal.h +++ b/sys/alpha/include/signal.h @@ -35,6 +35,12 @@ typedef long sig_atomic_t; #ifndef _ANSI_SOURCE +/* + * Minimum signal stack size. The current signal frame + * for Alpha is 808 bytes large. + */ +#define MINSIGSTKSZ (1024 * 4) + /* * Information pushed on stack when a signal is delivered. * This is used by the kernel to restore state following -- cgit v1.3