mirror of
https://github.com/genodelabs/genode.git
synced 2025-02-21 10:01:57 +00:00
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:
parent
ae61e520d7
commit
f20b6bdc88
@ -99,8 +99,11 @@ class Genode::Thread_base
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Top of the stack is accessible via stack_top()
|
* 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:
|
public:
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user