mirror of
https://github.com/genodelabs/genode.git
synced 2025-04-08 03:45:24 +00:00
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:
parent
3f9b098b70
commit
a99a33e93e
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user