From: Matt Mackall This is needed to work properly with 4k and 16k stacks. --- 25-akpm/arch/i386/kernel/entry.S | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-) diff -puN arch/i386/kernel/entry.S~stack-overflow-test-fix arch/i386/kernel/entry.S --- 25/arch/i386/kernel/entry.S~stack-overflow-test-fix 2004-03-14 15:59:07.234925432 -0800 +++ 25-akpm/arch/i386/kernel/entry.S 2004-03-14 15:59:07.237924976 -0800 @@ -53,7 +53,7 @@ */ #ifdef CONFIG_STACK_OVERFLOW_TEST #define STACK_OVERFLOW_TEST \ - testl $7680,%esp; \ + testl $(THREAD_SIZE - 512),%esp; \ jnz 10f; \ call stack_overflow; \ 10: _