MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / rt_hw_thread_self

Function rt_hw_thread_self

libcpu/aarch64/common/include/cpuport.h:57–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55
56#ifdef ARCH_USING_HW_THREAD_SELF
57rt_inline struct rt_thread *rt_hw_thread_self(void)
58{
59 struct rt_thread *thread;
60 __asm__ volatile ("mrs %0, " RT_STRINGIFY(ARM64_THREAD_REG) :"=r"(thread));
61
62 return thread;
63}
64
65rt_inline void rt_hw_thread_set_self(struct rt_thread *thread)
66{

Callers 3

rt_enter_criticalFunction · 0.85
rt_exit_criticalFunction · 0.85
rt_thread_selfFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected