| 55 | |
| 56 | #ifdef ARCH_USING_HW_THREAD_SELF |
| 57 | rt_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 | |
| 65 | rt_inline void rt_hw_thread_set_self(struct rt_thread *thread) |
| 66 | { |
no outgoing calls
no test coverage detected