AM62x: Critical section protection not added in vPortTimerTickHandler for A53

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: High
    • SITSW-10178
    • 11.02.00
    • 12.00.00
    • Hide
      am62xx-sk
      am62d-evm
      Show
      am62xx-sk am62d-evm

      Currently interrupts are not disabled before entering xTaskIncrementTick function for both A53 

      cores in port.c: https://github.com/TexasInstruments/mcupsdk-core-k3/blob/k3_main/source/kernel/freertos/portable/GCC/ARM_CA53/port.c#L310 

       

      This might lead to corruption in some kernel data structures and variables like uxTopReadyPriority if another interrupt is trigger while xTaskIncrementTick is executing.

       

      Adding critical section protection portDISABLE_INTERRUPTS() / portENABLE_INTERRUPTS() around  xTaskIncrementTick() in the A53 port.c should solve this issue, this is already done for M4 core:

      https://github.com/TexasInstruments/mcupsdk-core-k3/blob/k3_main/source/kernel/freertos/portable/TI_ARM_CLANG/ARM_CM4F/port.c#L379 

            Assignee:
            TI User
            Reporter:
            TI User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Connection: Intermediate to External PROD System
                EXTSYNC-6520 - AM62x: Critical section protection ...
                SYNCHRONIZED
                • Last Sync Date: