mirror of
https://github.com/apache/nuttx.git
synced 2026-08-16 09:53:23 +00:00
Double faulting on Idle task with 0 stack
This commit is contained in:
parent
e5f623e1d2
commit
89a79e8ac0
1 changed files with 4 additions and 0 deletions
|
|
@ -84,6 +84,10 @@ static size_t do_stackcheck(uintptr_t alloc, size_t size)
|
|||
FAR uint32_t *ptr;
|
||||
size_t mark;
|
||||
|
||||
if (size == 0)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
/* Get aligned addresses of the top and bottom of the stack */
|
||||
#ifdef CONFIG_TLS
|
||||
/* Skip over the TLS data structure at the bottom of the stack */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue