eclipse-threadx / threadx

Eclipse ThreadX is an advanced real-time operating system (RTOS) designed specifically for deeply embedded applications.
https://github.com/eclipse-threadx/rtos-docs/blob/main/rtos-docs/threadx/index.md
MIT License
2.89k stars 784 forks source link

cortex_a55_smp/gnu: added barrier instruction before setting tx_thread_smp_lock_ready_bit #271

Closed phoenix037 closed 1 year ago

phoenix037 commented 1 year ago

Added barrier instruction before setting tx_thread_smp_lock_ready_bit in _tx_thread_context_restore() and _tx_thread_system_return() to ensure accesses to shared resources have completed. This ensures that _tx_thread_schedule() reads correct thread data when it sees tx_thread_smp_lock_ready_bit set. This update should be relevant for other Cortex-A SMP ports as well. However, the update has been tested only on the Cortex-A55 platform.

phoenix037 commented 1 year ago

@microsoft-github-policy-service agree [company="{Cypherbridge Systems}"]

phoenix037 commented 1 year ago

@microsoft-github-policy-service agree

phoenix037 commented 1 year ago

@TiejunMS I note that you have reviewed past pull requests in this repository. Since the status of this PR shows Review Required, could you please tell me what the next step is to request a review? Thank you!

TiejunMS commented 1 year ago

Thanks @phoenix037 ! I just replied in email.

TiejunMS commented 1 year ago

Fixed in #280