From 239cd26a5c3385d61a94b537dd68d3107680e4aa Mon Sep 17 00:00:00 2001 From: Eyck-Alexander Jentzsch Date: Thu, 12 Mar 2026 16:31:51 +0100 Subject: [PATCH] adds stub for dynamic core discovery in port --- port/threadx_smp/inc/tx_port.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/port/threadx_smp/inc/tx_port.h b/port/threadx_smp/inc/tx_port.h index c6e5673..5553645 100644 --- a/port/threadx_smp/inc/tx_port.h +++ b/port/threadx_smp/inc/tx_port.h @@ -69,7 +69,7 @@ #define LWU lw #define LOG_REGBYTES 2 #endif -#define REGBYTES (1 << LOG_REGBYTES) +#define REGBYTES (1 << LOG_REGBYTES) #include "tx_asm_offsets.inc" @@ -89,6 +89,13 @@ #define TX_THREAD_SMP_CORE_MASK 0xF /* Where bit 0 represents Core 0, bit 1 represents Core 1, etc. */ #endif +/* Declare ThreadX to discover the cores dynamically. The ceiling is given by TX_THREAD_SMP_MAX_CORES */ +/* +The current implementation does not support dynamic discovery, but simply set the runtime determined number to +TX_THREAD_SMP_MAX_CORES. See tx_thread_smp_low_level_initialize.S +#define TX_THREAD_SMP_DYNAMIC_CORE_MAX +*/ + /* Define INLINE_DECLARE */ #define INLINE_DECLARE inline