Zephyr Project API  3.3.0
A Scalable Open Source RTOS
arch.h File Reference

Xtensa specific kernel interface header This header contains the Xtensa specific kernel interface. It is included by the generic kernel interface header (include/arch/cpu.h) More...

Go to the source code of this file.

Macros

#define ARCH_STACK_PTR_ALIGN   16
 
#define sys_define_gpr_with_alias(name1, name2)   union { uint32_t name1, name2; }
 
#define ARCH_EXCEPT(reason_p)
 
#define ARCH_IRQ_CONNECT(irq_p, priority_p, isr_p, isr_param_p, flags_p)
 
#define XTENSA_ERR_NORET
 

Functions

void xtensa_arch_except (int reason_p)
 
uint32_t sys_clock_cycle_get_32 (void)
 
static uint32_t arch_k_cycle_get_32 (void)
 
uint64_t sys_clock_cycle_get_64 (void)
 
static uint64_t arch_k_cycle_get_64 (void)
 
static ALWAYS_INLINE void arch_nop (void)
 

Detailed Description

Xtensa specific kernel interface header This header contains the Xtensa specific kernel interface. It is included by the generic kernel interface header (include/arch/cpu.h)

Macro Definition Documentation

◆ ARCH_EXCEPT

#define ARCH_EXCEPT (   reason_p)
Value:
do { \
xtensa_arch_except(reason_p); \
} while (false)

◆ ARCH_IRQ_CONNECT

#define ARCH_IRQ_CONNECT (   irq_p,
  priority_p,
  isr_p,
  isr_param_p,
  flags_p 
)
Value:
{ \
Z_ISR_DECLARE(irq_p, flags_p, isr_p, isr_param_p); \
}

◆ ARCH_STACK_PTR_ALIGN

#define ARCH_STACK_PTR_ALIGN   16

◆ sys_define_gpr_with_alias

#define sys_define_gpr_with_alias (   name1,
  name2 
)    union { uint32_t name1, name2; }

◆ XTENSA_ERR_NORET

#define XTENSA_ERR_NORET

Function Documentation

◆ arch_k_cycle_get_32()

static uint32_t arch_k_cycle_get_32 ( void  )
inlinestatic

◆ arch_k_cycle_get_64()

static uint64_t arch_k_cycle_get_64 ( void  )
inlinestatic

◆ arch_nop()

static ALWAYS_INLINE void arch_nop ( void  )
static

◆ sys_clock_cycle_get_32()

uint32_t sys_clock_cycle_get_32 ( void  )

◆ sys_clock_cycle_get_64()

uint64_t sys_clock_cycle_get_64 ( void  )

◆ xtensa_arch_except()

void xtensa_arch_except ( int  reason_p)