Al Viro | 27f85f1 | 2011-08-18 20:02:59 +0100 | [diff] [blame] | 1 | #ifndef __UM_PROCESSOR_H |
| 2 | #define __UM_PROCESSOR_H |
| 3 | |
| 4 | /* include faultinfo structure */ |
| 5 | #include <sysdep/faultinfo.h> |
| 6 | |
| 7 | #ifdef CONFIG_X86_32 |
| 8 | # include "processor_32.h" |
| 9 | #else |
| 10 | # include "processor_64.h" |
| 11 | #endif |
| 12 | |
Al Viro | c7ea591 | 2011-08-18 20:10:19 +0100 | [diff] [blame^] | 13 | #define ARCH_IS_STACKGROW(address) \ |
| 14 | (address + 65536 + 32 * sizeof(unsigned long) >= UPT_SP(¤t->thread.regs.regs)) |
| 15 | |
Al Viro | 27f85f1 | 2011-08-18 20:02:59 +0100 | [diff] [blame] | 16 | #include <asm/processor-generic.h> |
| 17 | |
| 18 | #endif |