From 705e839c628c42b233f9512ff1c8e12e75f34050 Mon Sep 17 00:00:00 2001 From: Brad Nelson Date: Sun, 23 Apr 2023 21:44:37 -0700 Subject: [PATCH] Fix overlap of system variables for float stack. --- web/web.template.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/web.template.js b/web/web.template.js index da6530f..c58b7c2 100644 --- a/web/web.template.js +++ b/web/web.template.js @@ -454,7 +454,8 @@ function Init() { i32[g_sys_stack_cells>>2] = STACK_CELLS; // Start heap after G_SYS area. - i32[g_sys_heap>>2] = i32[g_sys_heap_start>>2] + 256; + // Leave 256 byte gap + another 256 for G_SYS + i32[g_sys_heap>>2] = i32[g_sys_heap_start>>2] + 512; i32[g_sys_heap>>2] += 4; // Allocate stacks.