summaryrefslogtreecommitdiff
path: root/Linux
diff options
context:
space:
mode:
authorforsyth <forsyth@vitanuova.com>2012-07-25 15:13:50 +0100
committerforsyth <forsyth@vitanuova.com>2012-07-25 15:13:50 +0100
commit87efdcdeee000c948941544807a31df26aa9fb5d (patch)
tree20d169354d41f9fa1e341ed79ed44d37062be4ce /Linux
parent1b23ed88126e7f6a6f8b22831cd5a966c7da748d (diff)
20120725-1513
Diffstat (limited to 'Linux')
-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