16#ifndef ZEPHYR_INCLUDE_ARCH_SPARC_ARCH_H_
17#define ZEPHYR_INCLUDE_ARCH_SPARC_ARCH_H_
32#define ARCH_STACK_PTR_ALIGN 8
38#define SPARC_SW_TRAP_FLUSH_WINDOWS 0x03
39#define SPARC_SW_TRAP_SET_PIL 0x09
40#define SPARC_SW_TRAP_EXCEPT 0x0F
49#define STACK_ROUND_UP(x) ROUND_UP(x, ARCH_STACK_PTR_ALIGN)
56void z_irq_spurious(
const void *unused);
59#define ARCH_IRQ_CONNECT(irq_p, priority_p, isr_p, isr_param_p, flags_p) \
61 Z_ISR_DECLARE(irq_p, 0, isr_p, isr_param_p); \
65static ALWAYS_INLINE unsigned int z_sparc_set_pil_inline(
unsigned int newpil)
67 register uint32_t oldpil __asm__ (
"o0") = newpil;
80 return z_sparc_set_pil_inline(15);
85 z_sparc_set_pil_inline(key);
108 __asm__
volatile (
"nop");
125#define ARCH_EXCEPT(reason_p) \
127 register uint32_t _g1 __asm__("g1") = reason_p; \
132 : [vector] "i" (SPARC_SW_TRAP_EXCEPT), "r" (_g1) \
static ALWAYS_INLINE void arch_nop(void)
Definition arch.h:351
Per-arch thread definition.
Public interface for configuring interrupts.
static ALWAYS_INLINE unsigned int arch_irq_lock(void)
Definition arch.h:72
static ALWAYS_INLINE void arch_irq_unlock(unsigned int key)
Definition arch.h:83
uint64_t sys_clock_cycle_get_64(void)
uint32_t sys_clock_cycle_get_32(void)
static uint32_t arch_k_cycle_get_32(void)
Definition arch.h:114
static ALWAYS_INLINE bool arch_cpu_irqs_are_enabled(void)
Implementation of arch_cpu_irqs_are_enabled.
Definition arch.h:102
static uint64_t arch_k_cycle_get_64(void)
Definition arch.h:121
static ALWAYS_INLINE bool arch_irq_unlocked(unsigned int key)
Definition arch.h:96
#define SPARC_SW_TRAP_SET_PIL
Definition arch.h:39
__UINT32_TYPE__ uint32_t
Definition stdint.h:90
__UINT64_TYPE__ uint64_t
Definition stdint.h:91
Software-managed ISR table.