Add abort() implementation
Also reduces the IRAM footprint of the fatal exception handler, as only the prelude (which disables interrupts & enables the flash mapping) is in IRAM now. Closes #54, relevant to #133.
This commit is contained in:
parent
cf350efd8a
commit
36886412e6
9 changed files with 106 additions and 33 deletions
|
|
@ -25,7 +25,7 @@ IRAM caddr_t _sbrk_r (struct _reent *r, int incr)
|
|||
if (heap_end + incr > stack_ptr)
|
||||
{
|
||||
_write (1, "_sbrk: Heap collided with stack\n", 32);
|
||||
while(1) {}
|
||||
abort();
|
||||
}
|
||||
*/
|
||||
heap_end += incr;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue