[PATCH 1/5] ia64: limit stack size for the ski emulator

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The ski emulator can't spawn any process with larger stack than
0x7ffff00000000.

Signed-off-by: Mikulas Patocka <mpatocka@xxxxxxxxxx>

---
 arch/ia64/include/asm/resource.h |    6 ++++++
 1 file changed, 6 insertions(+)

Index: linux-2.6-ia64/arch/ia64/include/asm/resource.h
===================================================================
--- linux-2.6-ia64.orig/arch/ia64/include/uapi/asm/resource.h	2013-04-20 19:14:30.000000000 +0200
+++ linux-2.6-ia64/arch/ia64/include/uapi/asm/resource.h	2013-04-20 20:59:00.000000000 +0200
@@ -2,6 +2,12 @@
 #define _ASM_IA64_RESOURCE_H
 
 #include <asm/ustack.h>
+
+#if defined(__KERNEL__) && defined(CONFIG_IA64_HP_SIM)
+/* The ski simulator can't spawn any process with larger stack size */
+#define _STK_LIM_MAX	0x7ffff00000000UL
+#endif
+
 #include <asm-generic/resource.h>
 
 #endif /* _ASM_IA64_RESOURCE_H */

--
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Kernel]     [Sparc Linux]     [DCCP]     [Linux ARM]     [Yosemite News]     [Linux SCSI]     [Linux x86_64]     [Linux for Ham Radio]

  Powered by Linux