pxCurrentTCB cannot be referenced outside tasks.c when configNUMBER_OF_CORES > 1

Hello everyone,
I am trying to compile the FreeRTOS v11.1.0 kernel for a Cortex-A9 while using SMP. At the moment I have still to provide the actual implementation of many things but I have managed to define some stubs to at least compile the code. However, during the linking pxCurrentTCB inside the CA9 portASM.s file cannot does not have any external reference as the variable is expanded as xTaskGetCurrentTaskHandle inside tasks.c. Is this the intended behaviour to avoid its usage outside the definition file when multiple cores are used or is it possible to define it otherwise?
Thanks

The variable is named pxCurrentTCBs in case of SMP as it is an array. The assembly code will need to correctly index the array based on the core number.

Ok, I was just trying to avoid modifying portASM.s for now and since I saw that pxCurrentTCB was being mapped to xTaskGetCurrentTaskHandle I thought I could temporarily avoid to use pxCurrentTCBs. I guess I’ll go the long way and implement the correct logic in assembly before trying to get an executable. Thank you.