diff options
author | Stefan Kerkmann <karlk90@pm.me> | 2022-09-22 23:48:20 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-22 22:48:20 +0100 |
commit | b8ffaa63310ec7cc29de0aaa562457d87e50f837 (patch) | |
tree | 4fbb68541e13573d8acc11cf97b7a9d5e2f66d48 /platforms/chibios | |
parent | 828a1db035d5aeebae8d3fb2bd1cacd4d61bd7bc (diff) |
Copy RP2040 vector table to RAM on startup (#18424)
...this reduces possible latency when invoking interrupt handlers by
mitigating XIP cache misses which are not existent when running code from
RAM.
Diffstat (limited to 'platforms/chibios')
-rw-r--r-- | platforms/chibios/vendors/RP/RP2040.mk | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/platforms/chibios/vendors/RP/RP2040.mk b/platforms/chibios/vendors/RP/RP2040.mk index de426c9c40..efa3fef13f 100644 --- a/platforms/chibios/vendors/RP/RP2040.mk +++ b/platforms/chibios/vendors/RP/RP2040.mk @@ -11,7 +11,8 @@ endif # Raspberry Pi Pico SDK Support ############################################################################## ADEFS += -DCRT0_VTOR_INIT=1 \ - -DCRT0_EXTRA_CORES_NUMBER=0 + -DCRT0_EXTRA_CORES_NUMBER=0 \ + -DCRT0_INIT_VECTORS=1 CFLAGS += -DPICO_NO_FPGA_CHECK \ -DNDEBUG |