lkml.org 
[lkml]   [2004]   [Mar]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[patch] Fix stack overflow test for non-8k stacks
This is needed to work properly with 4k and 16k stacks. Please apply.

test-mpm/arch/i386/kernel/entry.S | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
diff -puN arch/i386/kernel/entry.S~stack_overflow arch/i386/kernel/entry.S
--- test/arch/i386/kernel/entry.S~stack_overflow 2004-03-14 17:37:47.000000000 -0600
+++ test-mpm/arch/i386/kernel/entry.S 2004-03-14 17:49:25.000000000 -0600
@@ -55,7 +55,7 @@
*/
#ifdef CONFIG_STACK_OVERFLOW_TEST
#define STACK_OVERFLOW_TEST \
- testl $7680,%esp; \
+ testl $(THREAD_SIZE - 512),%esp; \
jnz 10f; \
call stack_overflow; \
10:
_


--
Matt Mackall : http://www.selenic.com : Linux development and consulting
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:01    [from the cache]
©2003-2011 Jasper Spaans