Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | #ifndef __UM_A_OUT_H |
| 2 | #define __UM_A_OUT_H |
| 3 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4 | #include "asm/arch/a.out.h" |
| 5 | #include "choose-mode.h" |
| 6 | |
| 7 | #undef STACK_TOP |
Jeff Dike | 39a2790 | 2007-06-16 10:16:10 -0700 | [diff] [blame] | 8 | #undef STACK_TOP_MAX |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 9 | |
| 10 | extern unsigned long stacksizelim; |
| 11 | |
| 12 | extern unsigned long host_task_size; |
| 13 | |
| 14 | #define STACK_ROOM (stacksizelim) |
| 15 | |
| 16 | extern int honeypot; |
| 17 | #define STACK_TOP \ |
| 18 | CHOOSE_MODE((honeypot ? host_task_size : task_size), task_size) |
| 19 | |
Peter Zijlstra | b111757 | 2007-07-19 01:48:14 -0700 | [diff] [blame] | 20 | #define STACK_TOP_MAX STACK_TOP |
| 21 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 22 | #endif |