1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-23 00:05:17 +03:00

Fixes #1643 - no more freeze but now I have to understand why we go over

4k there
This commit is contained in:
bsongis 2014-08-27 23:44:07 +02:00
parent 784ec0f05a
commit b0cf67a97e
2 changed files with 2 additions and 2 deletions

View file

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

View file

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