diff options
author | Damien George <damien.p.george@gmail.com> | 2014-11-28 14:58:25 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-11-28 14:58:25 +0000 |
commit | fbea8100432abbdfde3d866d5bea1d8b4f87d217 (patch) | |
tree | f78953ebda69a6c76df5ef509f17955d711e9944 /esp8266/main.c | |
parent | 5f100657188c3f6e53db9d90f7ceebc4753bf44b (diff) |
esp8266: Change bignum from mpz to longlong; move some rodata to iram.
Some rodata items can go in iram/irom segment, but not others. With
this patch ESP now has 24256 bytes of heap ram. It passes 228 out of
248 tests from tests/basics directory.
Diffstat (limited to 'esp8266/main.c')
-rw-r--r-- | esp8266/main.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/esp8266/main.c b/esp8266/main.c index bab79d6fc..2f05ed022 100644 --- a/esp8266/main.c +++ b/esp8266/main.c @@ -44,6 +44,7 @@ #include MICROPY_HAL_H void user_init(void) { +soft_reset: //mp_stack_set_limit((char*)&_ram_end - (char*)&_heap_end - 1024); mp_hal_init(); gc_init(&_heap_start, &_heap_end); @@ -65,6 +66,8 @@ void user_init(void) { } } } + + goto soft_reset; } mp_lexer_t *mp_lexer_new_from_file(const char *filename) { |