forked from Imagelibrary/rtems
Fall back to INT_MAX as posix stack size in if 12MB are too big for a target (16bit compliance).
This commit is contained in:
@@ -14,7 +14,11 @@
|
|||||||
#define CONFIGURE_POSIX_INIT_THREAD_STACK_SIZE 0
|
#define CONFIGURE_POSIX_INIT_THREAD_STACK_SIZE 0
|
||||||
posix_initialization_threads_table POSIX_Initialization_threads[] = {
|
posix_initialization_threads_table POSIX_Initialization_threads[] = {
|
||||||
{ POSIX_Init,
|
{ POSIX_Init,
|
||||||
|
#if INT_MAX < (12 * 1024 * 1024)
|
||||||
|
INT_MAX
|
||||||
|
#else
|
||||||
12 * 1024 * 1024 /* too much stack */
|
12 * 1024 * 1024 /* too much stack */
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user