Fix write of thread stack end marker
Only the lower half of the stack end marker is being writtem to the stack buffer end.
This commit is contained in:
parent
cf517a326a
commit
5f422a9d07
@ -161,7 +161,7 @@ kernel_pid_t thread_create(char *stack, int stacksize, char priority, int flags,
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
/* create stack guard */
|
/* create stack guard */
|
||||||
*stack = (uintptr_t) stack;
|
*(uintptr_t *) stack = (uintptr_t) stack;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user