ARMmbed / uvisor

DEPRECATED mbed OS uVisor -- device security layer for ARMv7M microcontrollers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Shall armv8m scheduler update thread information in RTX5 ? (ARMv8M)

p03189 opened this issue · comments

In uVisor for armv8m, the scheduler is responsible for switching boxes. I can't figure when thread information of RTX5 (osRtxInfo.thread.run) is updated by the scheduler. Is it a TODO item as your comment in uvisor/core/system/src/core_armv8m/scheduler.c ?
"// TODO copy state with memcpy by sharing the struct type in both places"

ARM Internal Ref: IOTSEC-378

In uVisor for armv8m, the scheduler does not and will not update osRtxInfo.thread.run. The uVisor scheduler switches boxes with SysTick_S. RTX5 uses SysTick_NS to schedule threads.