Skip to content

Commit 3fddf2a

Browse files
committed
allow to disable SYS continuation stack
1 parent 87991ab commit 3fddf2a

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

cores/esp8266/core_esp8266_main.cpp

+10
Original file line numberDiff line numberDiff line change
@@ -156,11 +156,21 @@ void init_done() {
156156
* Peripherals (except for SPI0 and UART0) are not initialized.
157157
* This function does not return.
158158
*/
159+
#define EXTRA_4K_HEAP 1
160+
161+
#if !EXTRA_4K_HEAP
162+
cont_t g_cont __attribute__ ((aligned (16)));
163+
#endif
164+
159165
extern "C" void ICACHE_RAM_ATTR app_entry(void)
160166
{
161167
/* Allocate continuation context on this stack, and save pointer to it. */
168+
#if EXTRA_4K_HEAP
162169
cont_t s_cont __attribute__((aligned(16)));
163170
g_pcont = &s_cont;
171+
#else
172+
g_pcont = &g_cont;
173+
#endif
164174
/* Call the entry point of the SDK code. */
165175
call_user_start();
166176
}

0 commit comments

Comments
 (0)