7#ifndef ZEPHYR_INCLUDE_ZEPHYR_ARCH_COMMON_ARCH_INLINES_H_
8#define ZEPHYR_INCLUDE_ZEPHYR_ARCH_COMMON_ARCH_INLINES_H_
10#ifndef ZEPHYR_INCLUDE_ARCH_INLINES_H_
11#error "This header shouldn't be included directly"
18#ifndef CONFIG_ARCH_HAS_CUSTOM_CURRENT_IMPL
28 struct k_thread *ret = _current_cpu->current;
32 struct k_thread *ret = _kernel.cpus[0].current;
39 _current_cpu->current = thread;
static ALWAYS_INLINE unsigned int arch_irq_lock(void)
Disable all interrupts on the local CPU.
Definition irq.h:168
static ALWAYS_INLINE void arch_irq_unlock(unsigned int key)
Definition irq.h:176
static ALWAYS_INLINE struct k_thread * arch_current_thread(void)
Definition arch_inlines.h:19
static ALWAYS_INLINE void arch_current_thread_set(struct k_thread *thread)
Definition arch_inlines.h:37
Thread Structure.
Definition thread.h:259