noux: enhance stack of all noux programs

This is done because we ran into a stack overflow while compiling
Genodes core/main.cc with GCC in Noux.

fix #1075
This commit is contained in:
Martin Stein 2014-02-26 16:56:32 +01:00 committed by Norman Feske
parent 3f9b098b70
commit a99a33e93e

View File

@ -2125,6 +2125,15 @@ void init_libc_noux(void)
static Plugin noux_plugin;
chdir(noux_cwd.base());
/*
* Enhance main-thread stack
*
* This is done because we ran into a stack overflow while compiling
* Genodes core/main.cc with GCC in Noux.
*/
enum { STACK_SIZE = 32UL * 1024 * sizeof(Genode::addr_t) };
Genode::Thread_base::myself()->stack_size(STACK_SIZE);
}