normalize stack defines
This commit is contained in:
parent
abbad199e5
commit
7f7290a26a
@ -17,27 +17,38 @@
|
|||||||
#define CPUCONF_H_
|
#define CPUCONF_H_
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
|
|
||||||
/* TODO: choose more sensibly? */
|
/* TODO: tighten stack sizes */
|
||||||
#define KERNEL_CONF_STACKSIZE_PRINTF (81920)
|
|
||||||
|
|
||||||
#ifdef __MACH__ /* OSX */
|
#ifdef __MACH__ /* OSX */
|
||||||
#define KERNEL_CONF_STACKSIZE_DEFAULT (163840)
|
#define KERNEL_CONF_STACKSIZE_DEFAULT (163840)
|
||||||
#define KERNEL_CONF_STACKSIZE_IDLE (163840)
|
#define KERNEL_CONF_STACKSIZE_IDLE (163840)
|
||||||
#define NATIVE_ISR_STACKSIZE (163840)
|
#define KERNEL_CONF_STACKSIZE_PRINTF (163840)
|
||||||
#define TRANSCEIVER_STACK_SIZE (163840)
|
/* for core/include/thread.h */
|
||||||
#define MINIMUM_STACK_SIZE (163840)
|
#define MINIMUM_STACK_SIZE (163840)
|
||||||
|
/* undefine the TRANSCEIVER_STACK_SIZE (2048 or 512) defined in transceiver.h */
|
||||||
|
#ifdef TRANSCEIVER_STACK_SIZE
|
||||||
|
#undef TRANSCEIVER_STACK_SIZE
|
||||||
|
#endif
|
||||||
|
#define TRANSCEIVER_STACK_SIZE (163840)
|
||||||
|
/* native internal */
|
||||||
|
#define MINIMUM_STACK_SIZE (163840)
|
||||||
|
#define NATIVE_ISR_STACKSIZE (163840)
|
||||||
|
|
||||||
#else /* Linux etc. */
|
#else /* Linux etc. */
|
||||||
#define KERNEL_CONF_STACKSIZE_DEFAULT (KERNEL_CONF_STACKSIZE_PRINTF + 8192)
|
#define KERNEL_CONF_STACKSIZE_DEFAULT (8192)
|
||||||
#define KERNEL_CONF_STACKSIZE_IDLE (16384)
|
#define KERNEL_CONF_STACKSIZE_IDLE (8192)
|
||||||
#define NATIVE_ISR_STACKSIZE (16384)
|
#define KERNEL_CONF_STACKSIZE_PRINTF (8192)
|
||||||
|
/* for core/include/thread.h */
|
||||||
|
#define MINIMUM_STACK_SIZE (8192)
|
||||||
/* undefine the TRANSCEIVER_STACK_SIZE (2048 or 512) defined in transceiver.h */
|
/* undefine the TRANSCEIVER_STACK_SIZE (2048 or 512) defined in transceiver.h */
|
||||||
#ifdef TRANSCEIVER_STACK_SIZE
|
#ifdef TRANSCEIVER_STACK_SIZE
|
||||||
#undef TRANSCEIVER_STACK_SIZE
|
#undef TRANSCEIVER_STACK_SIZE
|
||||||
#endif
|
#endif
|
||||||
#define TRANSCEIVER_STACK_SIZE (16384)
|
#define TRANSCEIVER_STACK_SIZE (16384)
|
||||||
#define MINIMUM_STACK_SIZE (16384)
|
/* native internal */
|
||||||
|
#define NATIVE_ISR_STACKSIZE (8192)
|
||||||
#endif /* OS */
|
#endif /* OS */
|
||||||
|
|
||||||
|
/* for nativenet */
|
||||||
#define NATIVE_ETH_PROTO 0x1234
|
#define NATIVE_ETH_PROTO 0x1234
|
||||||
|
|
||||||
#endif /* CPUCONF_H_ */
|
#endif /* CPUCONF_H_ */
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user