mirror of
https://github.com/logicog/RTLPlayground.git
synced 2026-08-30 14:52:51 +08:00
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.
This commit is contained in:
@@ -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];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user