From fad71705188ce439b7bfde9b220381b26ef5149f Mon Sep 17 00:00:00 2001 From: d00f Date: Tue, 4 Aug 2026 03:18:28 +0200 Subject: [PATCH] stp: move the STP module to code bank 2 The always-mapped common area is nearly full (349 bytes free before this change), and the STP state machine that follows does not fit there. Move the module to BANK2 next to the other protocol code; its public entry points are already __banked, and cmpMAC/stp_cnf_send have no callers outside the file. --- rtl837x_stp.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/rtl837x_stp.c b/rtl837x_stp.c index e90227a..6ba1847 100644 --- a/rtl837x_stp.c +++ b/rtl837x_stp.c @@ -6,6 +6,12 @@ // #define REGDBG // #define DEBUG +/* Place this module's code and constants in code bank 2 (cf. rtl837x_igmp.c): + * the always-mapped common area is nearly full, and the full state machine + * does not fit there. */ +#pragma codeseg BANK2 +#pragma constseg BANK2 + #include #include "rtl837x_common.h" #include "rtl837x_sfr.h"