From 9acd4172eeeb6616dff44b93fb2765953508e83f Mon Sep 17 00:00:00 2001 From: David Mosberger Date: Fri, 5 Sep 2003 03:19:35 -0700 Subject: [PATCH] ia64: Document the typo that made it into the definition of MINSTKSZ (last two numbers got transposed). Thanks to Arun Sharma for finding this. New glibc's will have the value corrected, but we leave the kernel at the old (bogus) value to retain backwards- compatibility (and while a strange value, the old value works just fine). --- include/asm-ia64/signal.h | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/include/asm-ia64/signal.h b/include/asm-ia64/signal.h index 2bd0508635274..f98d3bb65a920 100644 --- a/include/asm-ia64/signal.h +++ b/include/asm-ia64/signal.h @@ -2,7 +2,7 @@ #define _ASM_IA64_SIGNAL_H /* - * Copyright (C) 1998-2001 Hewlett-Packard Co + * Copyright (C) 1998-2001, 2003 Hewlett-Packard Co * David Mosberger-Tang * * Unfortunately, this file is being included by bits/signal.h in @@ -96,7 +96,16 @@ * ar.rsc.loadrs is 14 bits, we can assume that they'll never take up * more than 16KB of space. */ -#define MINSIGSTKSZ 131027 /* min. stack size for sigaltstack() */ +#if 1 + /* + * This is a stupid typo: the value was _meant_ to be 131072 (0x20000), but I typed it + * in wrong. ;-( To preserve backwards compatibility, we leave the kernel at the + * incorrect value and fix libc only. + */ +# define MINSIGSTKSZ 131027 /* min. stack size for sigaltstack() */ +#else +# define MINSIGSTKSZ 131072 /* min. stack size for sigaltstack() */ +#endif #define SIGSTKSZ 262144 /* default stack size for sigaltstack() */ #ifdef __KERNEL__ -- 2.53.0