From 801150431b4ea0e3e3659fa61661834b2e88972d Mon Sep 17 00:00:00 2001 From: bloqaudio Date: Tue, 25 Aug 2026 09:28:54 -0500 Subject: [PATCH] stp: host the spanning tree module in BANK2 All entry points are already __banked and none of the code runs in interrupt context, so the module can leave the resident bank. This relieves pressure on bank 0, which no longer fits a machine with a custom init table. --- rtl837x_stp.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/rtl837x_stp.c b/rtl837x_stp.c index 2eb4f92..116c64c 100644 --- a/rtl837x_stp.c +++ b/rtl837x_stp.c @@ -14,6 +14,11 @@ #include "uip.h" #include "machine.h" +// All entry points are __banked and nothing here runs from an interrupt, +// so the module does not need to stay in the resident bank +#pragma codeseg BANK2 +#pragma constseg BANK2 + extern __code struct machine machine; extern __xdata uint8_t sfr_data[4];