# SMP Porting Checklist - A53 \*4 as reference

**URL:** <https://forums.freertos.org/t/smp-porting-checklist-a53-4-as-reference/14499>\
**Category:** Kernel\
**Created:** [February 16, 2022, 8:21pm UTC](https://forums.freertos.org/t/smp-porting-checklist-a53-4-as-reference/14499 "2022-02-16T20:21:25Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Srini](https://avatars.discourse-cdn.com/v4/letter/s/e9bcb4/32.png) [@Srini](https://forums.freertos.org/u/Srini)\
**Post date:** [February 16, 2022, 8:21pm UTC](https://forums.freertos.org/t/smp-porting-checklist-a53-4-as-reference/14499/1 "2022-02-16T20:21:25Z")

</div>

Hi all,

Please see below a rough checklist for porting to SMP freertos. Let me know if i am missing something or something is wrong.

Regards  
Srinivas

Porting Checklist for FreeRTOS SMP

1. Change: Definition in freertosconfig  
configNUM\_CORES: The number of cores available to run tasks. May be set to anything greater than 0, provided the hardware and port supports it.  
configRUN\_MULTIPLE\_PRIORITIES: Set to 1 to allow tasks with different priority levels to run simultaneously on different cores. Set to 0 to only allow tasks with the same priority level to run simultaneously.  
configUSE\_CORE\_AFFINITY: Gets the core affinity mask for a task, i.e., the cores on which a task can run.  
configTICK\_CORE: Core in which tick should run  
configUSE\_TASK\_PREEMPTION\_DISABLE: In SMP FreeRTOS application, if configUSE\_TASK\_PREEMPTION\_DISABLE is defined as 1, then individual tasks can be set to either pre-emptive or co-operative mode using the vTaskPreemptionDisable and vTaskPreemptionEnable API functions.  
portCRITICAL\_NESTING\_IN\_TCB: Storing critical nesting count per task in TCB.

Example for Cortex A53:  
configNUM\_CORES – 4  
configRUN\_MULTIPLE\_PRIORITIES – 1  
configUSE\_CORE\_AFFINITY – 1  
configTICK\_CORE - 0  
configUSE\_TASK\_PREEMPTION\_DISABLE – 0  
portCRITICAL\_NESTING\_IN\_TCB - 1

1. Change: xPortStartScheduler should start scheduler on the number of cores specified by configNUM\_CORES specified in FreeRTOSConfig.h file. Each core must end this function by restoring the context of the task assigned to it.  
Example for Cortex A53:  
Primary core (core 0) executes xPortStartScheduler, wakes up other 3 cores which are in sleep state, and all cores execute vPortRestoreContext.

2. Change: pxCurrentTCB has been renamed to pxCurrentTCBs and made into an array indexed by core. Whenever task state needs to be saved or restored, this array must now be indexed first to get the stack pointer.  
Example for Cortex A53:  
In portSAVE\_CONTEXT and portRESTORE\_CONTEXT , get the portGET\_CORE\_ID of the current core executing. Based on the current core, move to that index of pxCurrentTCBs.

3. Change: portDisable\_interrupts to return interrupt mask prior to disabling.  
Example for Cortex A53:  
Use the ICC\_PMR\_EL1 to save priority mask.

4. Change: If portCRITICAL\_NESTING\_IN\_TCB is set to 1.  
portENTER\_CRITICAL() → vTaskEnterCritical()  
portEXIT\_CRITICAL() → vTaskExitCritical()  
portSET\_INTERRUPT\_MASK\_FROM\_ISR → This must call vTaskEnterCritical() in addition to returning the interrupt mask prior to calling it  
portCLEAR\_INTERRUPT\_MASK\_FROM\_ISR → This must first call vTaskExitCritical() before setting the interrupt mask to the value in x.  
Reference : [FreeRTOS-Kernel/portmacro.h at 4832377117b4198db43009f2b548497d9cdbf8da · FreeRTOS/FreeRTOS-Kernel · GitHub](https://github.com/FreeRTOS/FreeRTOS-Kernel/blob/4832377117b4198db43009f2b548497d9cdbf8da/portable/ThirdParty/GCC/RP2040/include/portmacro.h)

5. Change: portRESTORE\_INTERRUPTS This must set the interrupt mask to the value in x. It is used after calling portDISABLE\_INTERRUPTS() to restore the interrupt mask to what it was prior to calling portDISABLE\_INTERRUPTS(). The value x should be what was returned by portDISABLE\_INTERRUPTS().  
Example for Cortex A53:  
Use the ICC\_PMR\_EL1 to restore priority mask saved when portDISABLE\_INTERRUPTS.

6. Change: Tick interrupt should be enabled only on one core (preferably core 0).  
Example for Cortex A53:  
In function xPortStartScheduler get the portGET\_CORE\_ID, if it is primary core call configSETUP\_TICK\_INTERRUPT.

7. Change: Two locks must be implemented (portGET\_TASK\_LOCK portRELEASE\_TASK\_LOCK) and (portGET\_ISR\_LOCK, portRELEASE\_ISR\_LOCK). This should be recursive spinlock implementation.  
Example for Cortex A53:  
Use [FreeRTOS-Kernel/portmacro.h at 4832377117b4198db43009f2b548497d9cdbf8da · FreeRTOS/FreeRTOS-Kernel · GitHub](https://github.com/FreeRTOS/FreeRTOS-Kernel/blob/4832377117b4198db43009f2b548497d9cdbf8da/portable/ThirdParty/GCC/RP2040/include/portmacro.h) for reference.

8. Change: portGET\_CORE\_ID(). This must return the core ID (between 0 and configNUM\_CORES-1) of the calling core.  
Example for Cortex A53:  
Use the MPIDR\_EL1 register to get the core ID.

9. Change: portYIELD\_CORE(coreID) , This must interrupt the core with ID x. The core that is interrupted must behave as if it called portYIELD() (i.e. save the current task context, call vTaskSwitchContext(), and then restore the context of the new current task).  
Example for Cortex A53:  
Send an interrupt from the running core to “coreID” core using SPI/PPI .  
In the interrupt handler call portYield\_FROM\_ISR(pdTrue) ,which will make the core to do context switch

10. Change: portCHECK\_IF\_IN\_ISR This must return pdTRUE if it is called from within an ISR, otherwise pdFALSE if it is not.  
Example for Cortex A53:  
Use ISR\_EL1 register to check if it’s in ISR.

11. Change: Pass coreid to vTaskSwitchContext as argument.  
Use portGET\_CORE\_ID to get the coreID.

12. Change:  
Integration of ARM GIC – changing interrupt address  
Reference:  
[RTOS for ARM Cortex-A](https://www.freertos.org/Using-FreeRTOS-on-Cortex-A-Embedded-Processors.html)

13. Change: Call xTaskIncrementTick in function FreeRTOS\_Tick\_Handler within portSET\_INTERRUPT\_MASK\_FROM\_ISR and portCLEAR\_INTERRUPT\_MASK\_FROM\_ISR.

---

<div class="post-metadata">

**Author:** ![jjulich](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/jjulich/32/3232_2.png) [@jjulich](https://forums.freertos.org/u/jjulich)\
**Post date:** [February 16, 2022, 9:00pm UTC](https://forums.freertos.org/t/smp-porting-checklist-a53-4-as-reference/14499/2 "2022-02-16T21:00:59Z")

</div>

This looks very good. The only issue that I noticed in my first pass was in the example for step 6. It appears you copied the example from step 4.

Let us see if there are any other comments and then put it in the SMP docs folder.

---

<div class="post-metadata">

**Author:** ![jen](https://avatars.discourse-cdn.com/v4/letter/j/ecae2f/32.png) [@jen](https://forums.freertos.org/u/jen)\
**Post date:** [October 26, 2023, 6:59am UTC](https://forums.freertos.org/t/smp-porting-checklist-a53-4-as-reference/14499/3 "2023-10-26T06:59:28Z")

</div>

Looks like you already ported FreeRTOS with SMP Support to the ARM A53. I’m currently working on a port for the Zynq Ultrascale+ MPSOC platform which uses the same processing core. So I’m very interested in your work. Did you contribute your port back to the FreeRTOS Repositories? If so where can I find it?

---

<div class="post-metadata">

**Author:** ![jjulich](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/jjulich/32/3232_2.png) [@jjulich](https://forums.freertos.org/u/jjulich)\
**Post date:** [October 26, 2023, 6:46pm UTC](https://forums.freertos.org/t/smp-porting-checklist-a53-4-as-reference/14499/4 "2023-10-26T18:46:44Z")

</div>

The A53 SMP port done for TI is located here:

> <https://github.com/FreeRTOS/FreeRTOS-Kernel-Partner-Supported-Ports/tree/d38f59dbcdfabbe71361764e194e1ad6202f902c/TI/CORTEX_A53_64-BIT_TI_AM64_SMP>
>
> //github.com/FreeRTOS/FreeRTOS-Kernel-Partner-Supported-Ports/tree/d38f59dbcdfabbe71361764e194e1ad6202f902c/TI/CORTEX\_A53\_64-BIT\_TI\_AM64\_SMP

Good Luck

---

<div class="post-metadata">

**Author:** ![jen](https://avatars.discourse-cdn.com/v4/letter/j/ecae2f/32.png) [@jen](https://forums.freertos.org/u/jen)\
**Post date:** [December 7, 2023, 7:46am UTC](https://forums.freertos.org/t/smp-porting-checklist-a53-4-as-reference/14499/5 "2023-12-07T07:46:53Z")

</div>

Sadly this port seems outdated since the implemented functions do not match the required ones for the latest FreeRTOS release. This also applies for the Porting Checklist. Is anyone able to update the checklist?

These functions need to be implemented additionally when using SMP:

```auto
portGET_CORE_ID
portYIELD_CORE
portSET_INTERRUPT_MASK
portCLEAR_INTERRUPT_MASK
portRELEASE_TASK_LOCK
portGET_TASK_LOCK
portRELEASE_ISR_LOCK
portGET_ISR_LOCK
portENTER_CRITICAL_FROM_ISR
portEXIT_CRITICAL_FROM_ISR

```

Is there documentation on what these functions need to do?

---

<div class="post-metadata">

**Author:** ![Fresh](https://avatars.discourse-cdn.com/v4/letter/f/2acd7d/32.png) [@Fresh](https://forums.freertos.org/u/Fresh)\
**Post date:** [December 14, 2023, 11:47am UTC](https://forums.freertos.org/t/smp-porting-checklist-a53-4-as-reference/14499/6 "2023-12-14T11:47:28Z")

</div>

Hi jen,

Thank you for listing the port macros changed in main branch.

The checklist above is for porting to FreeRTOS SMP branch. FreeRTOS SMP branch is deprecated now. I update the checklist with RP2040 port example.

**1. Define SMP configuration in FreeRTOSConfig.h**  
Based on the [sample confiugration](https://github.com/FreeRTOS/FreeRTOS-Kernel/tree/main/examples/sample_configuration), the following are required configuration to be added to enable SMP scheduler.

```c
#define configNUMBER_OF_CORES /* The number of cores in the platform. Set core numbers to greater than 1 to enable SMP scheduler */
#define configUSE_PASSIVE_IDLE_HOOK 0 /* 

```

You may reference [SMP Specific Configuration Options](https://www.freertos.org/symmetric-multiprocessing-introduction.html#smp-specific-configuration-options) for more information about other SMP configurations.

**2. Define portGET\_CORE\_ID()**  
Returns the core ID ( between 0 and configNUMBER\_OF\_CORES - 1 ) of the calling core.  
RP2040 port makes use of the [get\_num\_core()](https://github.com/FreeRTOS/FreeRTOS-Kernel/blob/e0bb21f832cdcef9250e7dfe1c82abf9264f9d31/portable/ThirdParty/GCC/RP2040/include/portmacro.h#L141) API from PICO SDK to implement this function.

**3. Define portYIELD\_CORE( xCoreID )**  
The core calling this API must interrupt the other core with ID xCoreID. The interrupted core must behave as if it call `portYIELD()`.  
RP2040 makes use of a [FIFO](https://github.com/FreeRTOS/FreeRTOS-Kernel/blob/e0bb21f832cdcef9250e7dfe1c82abf9264f9d31/portable/ThirdParty/GCC/RP2040/port.c#L536) to interrupt other cores.

**4. Define portSET\_INTERRUPT\_MASK() and portCLEAR\_INTERRUPT\_MASK( ulState )**  
Interrupt mask should be returned and cleared with these macros.  
[Example RP2040 port implementation](https://github.com/FreeRTOS/FreeRTOS-Kernel/blob/e0bb21f832cdcef9250e7dfe1c82abf9264f9d31/portable/ThirdParty/GCC/RP2040/include/portmacro.h#L169-L176)

**5. Define portGET\_TASK\_LOCK() and portGET\_ISR\_LOCK()**  
Acquire the task or ISR lock. TASK and ISR lock are recursive lock. They should be able to be locked by the same core multiple times.

**6. Define portRELEASE\_TASK\_LOCK() and portRELEASE\_ISR\_LOCK()**  
Release the task or ISR lock. If these locks are locked by the same core multiple times, they should be released as many times as it is locked.  
[Example RP2040 recursive lock implementation.](https://github.com/FreeRTOS/FreeRTOS-Kernel/blob/e0bb21f832cdcef9250e7dfe1c82abf9264f9d31/portable/ThirdParty/GCC/RP2040/include/portmacro.h#L209)

**7. Define portENTER\_CRITICAL() and portEXIT\_CRITICAL()**  
These macros should be implemented with `vTaskEnterCritical()` and `vTaskExitCritical()`.  
[Example RP2040 implementation.](https://github.com/FreeRTOS/FreeRTOS-Kernel/blob/e0bb21f832cdcef9250e7dfe1c82abf9264f9d31/portable/ThirdParty/GCC/RP2040/include/portmacro.h#L198-L199)

**8. Define portENTER\_CRITICAL\_FROM\_ISR() and portEXIT\_CRITICAL\_FROM\_ISR()**  
Enter/exit critical section from ISR. These macros should be implemented with `vTaskEnterCriticalFromISR()` and `vTaskExitCriticalFromISR( x )`.  
[Example RP2040 implementation.](https://github.com/FreeRTOS/FreeRTOS-Kernel/blob/e0bb21f832cdcef9250e7dfe1c82abf9264f9d31/portable/ThirdParty/GCC/RP2040/include/portmacro.h#L200-L201)

**9. Define portCRITICAL\_NESTING\_IN\_TCB**  
Port can decide to keep the critical nesting count in TCB or in port by setting `portCRITICAL_NESTING_IN_TCB` in portmacro.h file. RP2040 port provides an example of [keeping critical nesting count in the port](https://github.com/FreeRTOS/FreeRTOS-Kernel/blob/e0bb21f832cdcef9250e7dfe1c82abf9264f9d31/portable/ThirdParty/GCC/RP2040/include/portmacro.h#L158-L163).

**10. Update portSET\_INTERRUPT\_MASK\_FROM\_ISR and portCLEAR\_INTERRUPT\_MASK\_FROM\_ISR implementation in port**  
These macros should now be implemented as the macro name suggested, set or clear interrupt mask from ISR if nested interrupt are supported.  
[Example RP2040 implementation](https://github.com/FreeRTOS/FreeRTOS-Kernel/blob/e0bb21f832cdcef9250e7dfe1c82abf9264f9d31/portable/ThirdParty/GCC/RP2040/port.c#L514-L532)

**11. Call xTaskIncrementTick in critical section in port**  
Access shared kernel data in interrupt handler now need to be performed in critical section due to multiple cores consideration.  
[Example RP2040 implementation.](https://github.com/FreeRTOS/FreeRTOS-Kernel/blob/e0bb21f832cdcef9250e7dfe1c82abf9264f9d31/portable/ThirdParty/GCC/RP2040/port.c#L739-L759)

**12. Update xPortStartScheduler**  
The port should start scheduler on the number of cores specified by configNUMBER\_OF\_CORES. Each core must end this function by restoring the context of the task assigned to it.

**13. Use pxCurrentTCBs in the port**  
Pointers to Current TCB now are an array indexed by core ID. Whenever task state needs to be saved or restored, this array must now be indexed first to get the stack pointer in TCB\_t.  
Example [Index the pxCurrentTCBs](https://github.com/FreeRTOS/FreeRTOS-Kernel/blob/e0bb21f832cdcef9250e7dfe1c82abf9264f9d31/portable/ThirdParty/GCC/RP2040/port.c#L648-L650) in RP2040 port

**14. Pass core ID to vTaskSwitchContext as parameter**  
vTaskSwitchContext now takes core ID as parameter to switch context of the core ID in pxCurrentTCBs.

This checklist may be rough and not completed. Feedback and update to the checklist are welcomed.  
The [template port](https://github.com/FreeRTOS/FreeRTOS-Kernel/tree/main/portable/template) also include SMP support. It can be used as a starting point for developing a new FreeRTOS SMP port.

---

<div class="post-metadata">

**Author:** ![Saiiijchan](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/saiiijchan/32/3287_2.png) [@Saiiijchan](https://forums.freertos.org/u/Saiiijchan)\
**Post date:** [December 21, 2023, 7:48am UTC](https://forums.freertos.org/t/smp-porting-checklist-a53-4-as-reference/14499/7 "2023-12-21T07:48:30Z")

</div>

I have some quesions about this check list:

1. About point 4 and 9  
The implement of **portSET\_INTERRUPT\_MASK()** and **portSET\_INTERRUPT\_MASK\_FROM\_ISR()** seems to be the same. They also read primask and disable irq, what is the difference between them? In last smp version v202110, portSET\_INTERRUPT\_MASK\_FROM\_ISR() should call vTaskEnterCritical(), isn’t it necessary in this version?

2. About point 14  
`vTaskSwitchContext now takes core ID as parameter to switch context of the core ID in pxCurrentTCBs.`  
vTaskSwitchContext( xCoreID ) will change pxCurrentTCBs[xCoreID]. Does it mean a core can change the running task on another core? In my understanding, vTaskSwitchContext() is called when the core needs to do context switch after a interrupt and only switch the context in inself.

---

<div class="post-metadata">

**Author:** ![Fresh](https://avatars.discourse-cdn.com/v4/letter/f/2acd7d/32.png) [@Fresh](https://forums.freertos.org/u/Fresh)\
**Post date:** [December 21, 2023, 10:34am UTC](https://forums.freertos.org/t/smp-porting-checklist-a53-4-as-reference/14499/8 "2023-12-21T10:34:14Z")

</div>

Hi Saiiijchan,

1. `portSET/CLEAR_INTERRUPT_MASK` is called in a FreeRTOS task and `portSET/CLEAR_INTERRUPT_MASK_FROM_ISR` is called in an ISR. They may use the same implementation to stop interrupts which may access FreeRTOS-Kernel shared data in the ISR. If the port doesn’t support nested interrupt, `portSET/CLEAR_INTERRUPT_MASK_FROM_ISR` can be ignored in the port.  
The `portSET_INTERRUPT_MASK_FROM_ISR()` should be implemented as the name suggested, vTaskEnterCritical() is not required. Instead, `vTaskEnterCriticalFromISR()` should be called in `portENTER_CRITICAL_FROM_ISR()`.

2. No, a core won’t change the running task on another core. We will look further if this can be removed.

---

<div class="post-metadata">

**Author:** ![jen](https://avatars.discourse-cdn.com/v4/letter/j/ecae2f/32.png) [@jen](https://forums.freertos.org/u/jen)\
**Post date:** [April 11, 2024, 8:34am UTC](https://forums.freertos.org/t/smp-porting-checklist-a53-4-as-reference/14499/9 "2024-04-11T08:34:31Z")

</div>

I’m done porting to the Zynq Ultrascale+ MPSOC Platform. I need to do a bit more testing to ensure stability but it look promising. When I’m done, I’ll contribute the port back to the community.

---

<div class="post-metadata">

**Author:** ![pete-pjb](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/pete-pjb/32/5940_2.png) [@pete-pjb](https://forums.freertos.org/u/pete-pjb)\
**Post date:** [April 16, 2024, 4:56pm UTC](https://forums.freertos.org/t/smp-porting-checklist-a53-4-as-reference/14499/10 "2024-04-16T16:56:27Z")

</div>

Hi @jen,

Can I kindly ask if you are still intending to contribute your port? As I need to do the same port and it will save me a lot of time!

Thank you.

Kind Regards,

Pete

---

<div class="post-metadata">

**Author:** ![jen](https://avatars.discourse-cdn.com/v4/letter/j/ecae2f/32.png) [@jen](https://forums.freertos.org/u/jen)\
**Post date:** [April 17, 2024, 7:23am UTC](https://forums.freertos.org/t/smp-porting-checklist-a53-4-as-reference/14499/11 "2024-04-17T07:23:40Z")

</div>

Hi @pete-pjb,

yes I will, though I need a bit more time to perfect what I’ve written (and verify if it really is working). If you need it quick, I can send it to you directly without any further modifications.

---

<div class="post-metadata">

**Author:** ![pete-pjb](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/pete-pjb/32/5940_2.png) [@pete-pjb](https://forums.freertos.org/u/pete-pjb)\
**Post date:** [April 17, 2024, 8:09am UTC](https://forums.freertos.org/t/smp-porting-checklist-a53-4-as-reference/14499/12 "2024-04-17T08:09:42Z")

</div>

Hi @jen,

Thank you for your prompt reply!

If it’s not an imposition would you mind sending it? I would be most grateful and of course if I find any issues I would be happy to work on and share any fixes back to you. I assume there is just 3 or 4 files, would you be able to send a zip to [pete@one.co.uk](mailto:pete@one.co.uk) please? ☺  
I am currently attempting to get a system up and running with SMP FreeRTOS on an Enclustra board (to date I have just used one core) and I am working on +TCP and +FAT (SD & onboard eMMC) integration which seems to be working okay, I am also using the Displayport Interface, along with attempting to get a host USB XHCI port running. So if any of my efforts might help you also please feel free to email me if you could benefit from any of those parts.

Thanks again.

Kind Regards,

Pete

---

<div class="post-metadata">

**Author:** ![jen](https://avatars.discourse-cdn.com/v4/letter/j/ecae2f/32.png) [@jen](https://forums.freertos.org/u/jen)\
**Post date:** [April 18, 2024, 6:47am UTC](https://forums.freertos.org/t/smp-porting-checklist-a53-4-as-reference/14499/13 "2024-04-18T06:47:53Z")

</div>

Hi @pete-pjb,

I’ve sent you an email.

---

<div class="post-metadata">

**Author:** ![Yafeng](https://avatars.discourse-cdn.com/v4/letter/y/848f3c/32.png) [@Yafeng](https://forums.freertos.org/u/Yafeng)\
**Post date:** [May 16, 2024, 2:21am UTC](https://forums.freertos.org/t/smp-porting-checklist-a53-4-as-reference/14499/14 "2024-05-16T02:21:56Z")

</div>

Hi @jen

I also need to use zynqMP SOC to run freertos SMP recently, I saw this post of yours and think you did a very good job, Would you send me a copy of your port layer as well, thanks!  
e-mail: yafeng.yun@mindcruise.ai

Kind Regards  
Yafeng

---

<div class="post-metadata">

**Author:** ![jjulich](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/jjulich/32/3232_2.png) [@jjulich](https://forums.freertos.org/u/jjulich)\
**Post date:** [May 16, 2024, 5:49pm UTC](https://forums.freertos.org/t/smp-porting-checklist-a53-4-as-reference/14499/15 "2024-05-16T17:49:46Z")

</div>

@jen  
With a few requests for the port work, would you consider a PR so we can more broadly support the community?

---

<div class="post-metadata">

**Author:** ![jen](https://avatars.discourse-cdn.com/v4/letter/j/ecae2f/32.png) [@jen](https://forums.freertos.org/u/jen)\
**Post date:** [May 22, 2024, 11:37am UTC](https://forums.freertos.org/t/smp-porting-checklist-a53-4-as-reference/14499/16 "2024-05-22T11:37:47Z")

</div>

Of course I will contribute my port. Currently however I have an issue with the recursive spinlock implementation. After my own implementation was not working I tried the existing implementation of a Partner Supported Port for a TI Cortex A53 CPU (found here: Source/portable/ThirdParty/Partner-Supported-Ports/TI/CORTEX\_A53\_64-BIT\_TI\_AM64\_SMP/portASM.S.) However this also results in the TASK\_LOCK being locked indefinitely (Partner Supported and mine).  
The Code I’m running is the Full\_Demo of the Sync Ultrascale+ Demo (here: Demo/CORTEX\_A53\_64-bit\_UltraScale\_MPSoC). I narrowed to problem down to the tick Hook (vFullDemoTickHook). Whenever I comment out the function calls within, the System runs fine. Any idea why I experience such behavior?

---

<div class="post-metadata">

**Author:** ![jen](https://avatars.discourse-cdn.com/v4/letter/j/ecae2f/32.png) [@jen](https://forums.freertos.org/u/jen)\
**Post date:** [May 22, 2024, 12:58pm UTC](https://forums.freertos.org/t/smp-porting-checklist-a53-4-as-reference/14499/17 "2024-05-22T12:58:58Z")

</div>

Also I encountered this: [[BUG] vTaskDelay raises configASSERT when SMP is on · Issue #1068 · FreeRTOS/FreeRTOS-Kernel · GitHub](https://github.com/FreeRTOS/FreeRTOS-Kernel/issues/1068)

---

<div class="post-metadata">

**Author:** ![aggarg](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/aggarg/32/4245_2.png) [@aggarg](https://forums.freertos.org/u/aggarg)\
**Post date:** [May 23, 2024, 5:27am UTC](https://forums.freertos.org/t/smp-porting-checklist-a53-4-as-reference/14499/18 "2024-05-23T05:27:36Z")

</div>

> [@jen](#):
>
> I narrowed to problem down to the tick Hook (vFullDemoTickHook). Whenever I comment out the function calls within, the System runs fine. Any idea why I experience such behavior?

Can you try pining all the tasks to one core? You can probably use `configTASK_DEFAULT_CORE_AFFINITY` for this.

---

<div class="post-metadata">

**Author:** ![Yafeng](https://avatars.discourse-cdn.com/v4/letter/y/848f3c/32.png) [@Yafeng](https://forums.freertos.org/u/Yafeng)\
**Post date:** [May 28, 2024, 9:44am UTC](https://forums.freertos.org/t/smp-porting-checklist-a53-4-as-reference/14499/19 "2024-05-28T09:44:17Z")

</div>

I’ve finished porting FreeRTOS SMP to ZynqMPSOC, and I’m currently testing it, and I haven’t found any problems at the moment

---

<div class="post-metadata">

**Author:** ![aggarg](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/aggarg/32/4245_2.png) [@aggarg](https://forums.freertos.org/u/aggarg)\
**Post date:** [May 28, 2024, 3:17pm UTC](https://forums.freertos.org/t/smp-porting-checklist-a53-4-as-reference/14499/20 "2024-05-28T15:17:16Z")

</div>

Whenever you feel you are ready, feel free to raise a PR to the following repo - [GitHub - FreeRTOS/FreeRTOS-Kernel-Community-Supported-Ports](https://github.com/FreeRTOS/FreeRTOS-Kernel-Community-Supported-Ports).

[Next page](https://forums.freertos.org/t/smp-porting-checklist-a53-4-as-reference/14499.md?page=2)
