2 * linux/arch/i386/dstack.S
4 * Copyright (C) 2005 Marc E. Fiuczynski
8 * dstack.s contains the system specific support for stack overflows
9 * and discontiguous stack support.
12 #include <linux/config.h>
13 #include <linux/linkage.h>
14 #include <asm/thread_info.h>
15 #include <asm/errno.h>
16 #include <asm/segment.h>
21 .globl stack_overflowed
27 #warning stack check enabled
29 movl $(THREAD_SIZE - 1),%eax
37 /* prevent infinite recursion from call to mcount from the
38 * stack_overflow function. Need to revisit this code for
41 lock; btsl $0,stack_overflowed
44 /* prepare to jmp to stack_overflow directly, as if it were
45 * called directly by the caller of mcount.
53 /* Note that stack_overflow() will clear the stack_overflowed