mirror of
https://github.com/opentx/opentx.git
synced 2025-07-22 07:45:14 +03:00
Fixes #1643 - no more freeze but now I have to understand why we go over
4k there
This commit is contained in:
parent
784ec0f05a
commit
b0cf67a97e
2 changed files with 2 additions and 2 deletions
|
@ -3321,7 +3321,7 @@ uint16_t stack_free(uint8_t tid)
|
|||
for (; i<size; i++)
|
||||
if (stack[i] != 0x55555555)
|
||||
break;
|
||||
return i*4;
|
||||
return i;
|
||||
}
|
||||
#else
|
||||
extern unsigned char __bss_end ;
|
||||
|
|
|
@ -68,7 +68,7 @@ extern int _getpid ( void ) ;
|
|||
unsigned char *heap = (unsigned char *)&_end;
|
||||
extern caddr_t _sbrk(int nbytes)
|
||||
{
|
||||
if (heap + nbytes < RAM_END-4096) {
|
||||
if (heap + nbytes < RAM_END-8192) {
|
||||
unsigned char *prev_heap = heap;
|
||||
heap += nbytes;
|
||||
return (caddr_t) prev_heap;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue