9#ifndef NEXUS_ARCH_ARCH_H
10#define NEXUS_ARCH_ARCH_H
bool nx_arch_is_privileged(void)
Query privilege in the current CPU execution context.
void nx_arch_irq_restore(nx_arch_irq_state_t previous)
Restore the incoming mask, preserving nested exclusions.
void nx_arch_dsb(void)
Complete preceding explicit memory accesses.
void nx_arch_dmb(void)
Order explicit data memory accesses in the CPU domain.
bool nx_arch_cycle_snapshot(uint32_t *cycles)
Snapshot an already enabled free-running cycle counter.
void nx_arch_isb(void)
Synchronize subsequent CPU instruction execution.
bool nx_arch_irq_is_masked(void)
Test masks that could prevent required completion progress.
nx_arch_irq_masks_t nx_arch_irq_masks(void)
Snapshot the implemented local interrupt-mask registers.
uint32_t nx_arch_exception_number(void)
Query the exact current CPU exception identity.
nx_arch_irq_state_t nx_arch_irq_save(void)
Save incoming local mask and mask configurable exceptions.
bool nx_arch_in_isr(void)
Query current CPU exception context.
Read-only snapshot of implemented local interrupt masks.
Saved incoming PRIMASK or calling-thread Native nesting.