1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-04-21 10:26:06 +03:00
Earle F. Philhower, III 8e46a3371d
Increase free IRAM (#5499)
* Move functions out of IRAM when possible

umm_init() is called in OS startup after flash is enabled, and never
again.

cont_get_free_stack() shouldn't be called from IRQ.

Don't inline _iram_read_byte() function.

* Move system fault handler to flash, use new printf

The __wrap_system_restart call has been in flash for quite a while and
seems to be working fine.  There were some support routines that were
placed in IRAM (mistakenly thinking the wrap_restart caller was also in
IRAM) which are now moved to flash.

Clean up the printf code to use the new stdlib which handles PGM_P
strings as format and arguments without any difficulty.

* Make STR macro more unique

Add double-underscores to some string assistance macros to avoid
conflicts with user applications.

* Use function, not macro, to save code space

Save ~2KB final bin size by using a ets_printf_P function and not
an inline macro.  IRAM and HEAP unaffected.

* Don't actually touch the SP in the dump

Store a copy of the incoming stack pointer in the postmortem in order
to avoid actually changing the SP when a crash happend in BearSSL.

* Make C++ uncaught exceptions explicit

Use the term "Unhandled C++ exception" instead of just "Unhandled
exception" to make it clear such crashes are caused by a C++ throw
and now a system exception.
2018-12-15 10:14:30 -08:00
..
2017-12-08 02:08:54 -03:00
2018-12-15 10:14:30 -08:00
2018-12-15 10:14:30 -08:00
2017-01-31 10:07:59 +03:00
2018-11-24 16:14:54 -03:00
2016-05-20 10:20:04 +08:00
2018-11-20 18:51:45 -02:00
2018-03-09 12:47:22 +08:00
2018-03-09 12:47:22 +08:00
2018-12-10 10:35:11 -03:00
2018-11-24 02:00:34 -03:00
2017-05-12 01:03:14 -05:00
2018-09-10 01:50:01 -03:00
2016-03-03 02:13:22 +03:00
2018-12-10 10:35:11 -03:00
2018-12-10 10:35:11 -03:00
2014-12-01 00:34:28 +03:00
2018-10-23 22:17:54 +02:00
2018-10-23 22:17:54 +02:00