Zephyr API Documentation  2.7.0-rc2
A Scalable Open Source RTOS
arch_inlines.h File Reference
#include <kernel_structs.h>

Go to the source code of this file.

Macros

#define RSR(sr)
 
#define WSR(sr, v)
 

Functions

static ALWAYS_INLINE _cpu_t * arch_curr_cpu (void)
 

Macro Definition Documentation

◆ RSR

#define RSR (   sr)
Value:
({uint32_t v; \
__asm__ volatile ("rsr." sr " %0" : "=a"(v)); \
v; })
__UINT32_TYPE__ uint32_t
Definition: stdint.h:60

◆ WSR

#define WSR (   sr,
 
)
Value:
do { \
__asm__ volatile ("wsr." sr " %0" : : "r"(v)); \
} while (false)

Function Documentation

◆ arch_curr_cpu()

static ALWAYS_INLINE _cpu_t * arch_curr_cpu ( void  )
static