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:45:15 +02:00
parent 784ec0f05a
commit b0cf67a97e
2 changed files with 2 additions and 2 deletions
+1 -1
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;