Unified · Split
| @@ -1,3 +1,5 @@ | |||
| 1 | 20120725 | ||
| 2 | increase KSTACK for Linux/arm | ||
| 1 | 20120615 | 3 | 20120615 |
| 2 | add configuration emu/FreeBSD/emu-g [powerman] | 4 | add configuration emu/FreeBSD/emu-g [powerman] |
| 3 | 20120509 | 5 | 20120509 |
| @@ -13,9 +13,9 @@ struct FPU · 12 unmodified lines | |||
| 13 | uchar env[28]; | 13 | uchar env[28]; |
| 14 | }; | 14 | }; |
| 15 | 15 | ||
| 16 | #define KSTACK (16 * 1024) | ||
| 17 | 16 | ||
| 18 | #ifndef USE_PTHREADS | 17 | #ifndef USE_PTHREADS |
| 18 | #define KSTACK (16 * 1024) /* must be power of two */ | ||
| 19 | static __inline Proc *getup(void) { | 19 | static __inline Proc *getup(void) { |
| 20 | Proc *p; | 20 | Proc *p; |
| 21 | __asm__( "mov %0, %%sp;" | 21 | __asm__( "mov %0, %%sp;" |
| @@ -24,6 +24,7 @@ static __inline Proc *getup(void) { · 2 unmodified lines | |||
| 24 | return *(Proc **)((uintptr)p & ~(KSTACK - 1)); | 24 | return *(Proc **)((uintptr)p & ~(KSTACK - 1)); |
| 25 | } | 25 | } |
| 26 | #else | 26 | #else |
| 27 | #define KSTACK (32 * 1024) /* need not be power of two */ | ||
| 27 | extern Proc* getup(void); | 28 | extern Proc* getup(void); |
| 28 | #endif | 29 | #endif |
| 29 | 30 | ||
| @@ -1 +1 @@ | |||
| 1 | #define VERSION "Fourth Edition (20120720)" | 1 | #define VERSION "Fourth Edition (20120725)" |