Prevent overlap of stack and thread-context members

Now, Thread::Context provides the first word of the stack to prevent the
overlapping of stack top and the 'stack_base' member.

Fixes #1491
This commit is contained in:
Christian Helmuth 2015-04-27 15:06:36 +02:00
parent ae61e520d7
commit f20b6bdc88
1 changed files with 4 additions and 1 deletions

View File

@ -99,8 +99,11 @@ class Genode::Thread_base
/**
* Top of the stack is accessible via stack_top()
*
* Context provides the first word of the stack to prevent the
* overlapping of stack top and the 'stack_base' member.
*/
long _stack[];
addr_t _stack[1];
public: