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
devel
Christian Helmuth 8 years ago
parent ae61e520d7
commit f20b6bdc88

@ -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:

Loading…
Cancel
Save