# Is it atomic TCB transfer from ready/pending lists?

**URL:** <https://forums.freertos.org/t/is-it-atomic-tcb-transfer-from-ready-pending-lists/17496>\
**Category:** Kernel\
**Tags:** debug\
**Created:** [May 25, 2023, 9:35am UTC](https://forums.freertos.org/t/is-it-atomic-tcb-transfer-from-ready-pending-lists/17496 "2023-05-25T09:35:52Z")\
**Posts on this page:** 1\
**Showing post:** 4

<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 25, 2023, 2:46pm UTC](https://forums.freertos.org/t/is-it-atomic-tcb-transfer-from-ready-pending-lists/17496/4 "2023-05-25T14:46:27Z")

</div>

> [@smdbh](#):
>
> i guess taskENTER\_CRITICAL() may not prevent higher priority irq re-entry since it just mask lower priority irqs.

But you are not supposed to call any FreeRTOS API from higher priority IRQs. Are you doing that? Also, see this response - [Understanding priority levels of ISR and FreeRTOS APIs - #16 by aggarg](https://forums.freertos.org/t/understanding-priority-levels-of-isr-and-freertos-apis/10453/16)

> [@smdbh](#):
>
> i used gcc cr5 porting as reference

Are you writing a new port? Which hardware is it?

---

_[View the full topic](https://forums.freertos.org/t/is-it-atomic-tcb-transfer-from-ready-pending-lists/17496)._
