Zephyr Project API 4.1.99
A Scalable Open Source RTOS
|
MIPS specific kernel interface header. More...
#include <zephyr/arch/mips/thread.h>
#include <zephyr/arch/mips/exception.h>
#include <zephyr/arch/common/sys_bitops.h>
#include <zephyr/arch/common/sys_io.h>
#include <zephyr/arch/common/ffs.h>
#include <zephyr/irq.h>
#include <zephyr/sw_isr_table.h>
#include <zephyr/devicetree.h>
#include <mips/mipsregs.h>
#include <zephyr/sys/util.h>
Go to the source code of this file.
Macros | |
#define | ARCH_STACK_PTR_ALIGN 16 |
#define | OP_LOADREG lw |
#define | OP_STOREREG sw |
#define | CP0_STATUS_DEF_RESTORE (ST0_EXL | ST0_IE) |
#define | STACK_ROUND_UP(x) ROUND_UP(x, ARCH_STACK_PTR_ALIGN) |
#define | ARCH_IRQ_CONNECT(irq_p, priority_p, isr_p, isr_param_p, flags_p) |
Configure a static interrupt. | |
Functions | |
void | arch_irq_enable (unsigned int irq) |
void | arch_irq_disable (unsigned int irq) |
int | arch_irq_is_enabled (unsigned int irq) |
static ALWAYS_INLINE unsigned int | arch_irq_lock (void) |
static ALWAYS_INLINE void | arch_irq_unlock (unsigned int key) |
static ALWAYS_INLINE bool | arch_irq_unlocked (unsigned int key) |
static ALWAYS_INLINE void | arch_nop (void) |
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) |
MIPS specific kernel interface header.
This header contains the MIPS specific kernel interface. It is included by the kernel interface architecture-abstraction header (include/zephyr/arch/cpu.h).
#define ARCH_IRQ_CONNECT | ( | irq_p, | |
priority_p, | |||
isr_p, | |||
isr_param_p, | |||
flags_p | |||
) |
Configure a static interrupt.
All arguments must be computable by the compiler at build time.
irq_p | IRQ line number |
priority_p | Interrupt priority |
isr_p | Interrupt service routine |
isr_param_p | ISR parameter |
flags_p | IRQ options |
#define ARCH_STACK_PTR_ALIGN 16 |
#define CP0_STATUS_DEF_RESTORE (ST0_EXL | ST0_IE) |
#define OP_LOADREG lw |
#define OP_STOREREG sw |
#define STACK_ROUND_UP | ( | x | ) | ROUND_UP(x, ARCH_STACK_PTR_ALIGN) |
void arch_irq_disable | ( | unsigned int | irq | ) |
void arch_irq_enable | ( | unsigned int | irq | ) |
int arch_irq_is_enabled | ( | unsigned int | irq | ) |
|
static |
|
static |
|
static |
|
inlinestatic |
|
inlinestatic |
|
static |
|
extern |
|
extern |