summaryrefslogtreecommitdiff
path: root/Linux/arm/include
diff options
context:
space:
mode:
Diffstat (limited to 'Linux/arm/include')
-rw-r--r--Linux/arm/include/emu.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/Linux/arm/include/emu.h b/Linux/arm/include/emu.h
index 686dc1b7..7f2b101e 100644
--- a/Linux/arm/include/emu.h
+++ b/Linux/arm/include/emu.h
@@ -13,9 +13,9 @@ struct FPU
uchar env[28];
};
-#define KSTACK (16 * 1024)
#ifndef USE_PTHREADS
+#define KSTACK (16 * 1024) /* must be power of two */
static __inline Proc *getup(void) {
Proc *p;
__asm__( "mov %0, %%sp;"
@@ -24,6 +24,7 @@ static __inline Proc *getup(void) {
return *(Proc **)((uintptr)p & ~(KSTACK - 1));
}
#else
+#define KSTACK (32 * 1024) /* need not be power of two */
extern Proc* getup(void);
#endif