diff options
author | Josef Gajdusek <atx@atx.name> | 2015-05-06 14:34:32 +0200 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2015-05-06 14:01:07 +0100 |
commit | 28076f3d4b3bf58aa86d6346af88665f7e5c6031 (patch) | |
tree | 4f77ce2f7411e5061c3485ef0abeeae8aacd781c /esp8266/gccollect.h | |
parent | 9a42eb541eb426a04bb0541ccf0e26ce82bdcb22 (diff) | |
download | micropython-28076f3d4b3bf58aa86d6346af88665f7e5c6031.tar.gz micropython-28076f3d4b3bf58aa86d6346af88665f7e5c6031.zip |
esp8266: Fix garbage collector by hard-coding stack end address.
As user_init() is not a true main functions, the stack pointer captured within
is not pointing at the base of the stack. This caused gc_collect being called
with sp being higher than stack_end, causing integer overflow and crashing as
gc tried to scan almost the entire address space.
Diffstat (limited to 'esp8266/gccollect.h')
-rw-r--r-- | esp8266/gccollect.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/esp8266/gccollect.h b/esp8266/gccollect.h index b1804d30e2..e360ef2f29 100644 --- a/esp8266/gccollect.h +++ b/esp8266/gccollect.h @@ -37,5 +37,4 @@ extern uint32_t _bss_end; extern uint32_t _heap_start; extern uint32_t _heap_end; -void gc_collect_init(void); void gc_collect(void); |