Searched refs:csr_read (Results 1 – 19 of 19) sorted by relevance
/Zephyr-Core-3.5.0/samples/userspace/syscall_perf/src/ |
D | test_supervisor.c | 25 inst_before = csr_read(0xB02); in supervisor_thread_function() 26 cycle_before = csr_read(0xB00); in supervisor_thread_function() 28 cycle_count = csr_read(0xB00); in supervisor_thread_function() 29 inst_count = csr_read(0xB02); in supervisor_thread_function()
|
D | test_user.c | 25 inst_before = csr_read(0xC02); in user_thread_function() 26 cycle_before = csr_read(0xC00); in user_thread_function() 28 cycle_count = csr_read(0xC00); in user_thread_function() 29 inst_count = csr_read(0xC02); in user_thread_function()
|
/Zephyr-Core-3.5.0/arch/riscv/core/ |
D | fpu.c | 65 unsigned long status = csr_read(mstatus); in z_riscv_fpu_disable() 79 __ASSERT((csr_read(mstatus) & MSTATUS_IEN) == 0, in z_riscv_fpu_load() 81 __ASSERT((csr_read(mstatus) & MSTATUS_FS) == 0, in z_riscv_fpu_load() 103 __ASSERT((csr_read(mstatus) & MSTATUS_IEN) == 0, in z_riscv_flush_local_fpu() 105 __ASSERT((csr_read(mstatus) & MSTATUS_FS) == 0, in z_riscv_flush_local_fpu() 135 __ASSERT((csr_read(mstatus) & MSTATUS_IEN) == 0, in flush_owned_fpu() 210 (csr_read(mstatus) & MSTATUS_FS) == 0, in z_riscv_fpu_trap() 256 __ASSERT((csr_read(mstatus) & MSTATUS_IEN) == 0, in fpu_access_allowed()
|
D | pmp.c | 112 #define PMPADDR_READ(x) pmp_addr[x] = csr_read(pmpaddr##x) in dump_pmp_regs() 122 pmp_cfg[0] = csr_read(pmpcfg0); in dump_pmp_regs() 124 pmp_cfg[1] = csr_read(pmpcfg2); in dump_pmp_regs() 127 pmp_cfg[0] = csr_read(pmpcfg0); in dump_pmp_regs() 128 pmp_cfg[1] = csr_read(pmpcfg1); in dump_pmp_regs() 130 pmp_cfg[2] = csr_read(pmpcfg2); in dump_pmp_regs() 131 pmp_cfg[3] = csr_read(pmpcfg3); in dump_pmp_regs()
|
D | irq_manage.c | 20 mcause = csr_read(mcause); in z_irq_spurious()
|
D | smp.c | 100 MSIP(csr_read(mhartid)) = 0; in ipi_handler()
|
D | thread.c | 152 status = csr_read(mstatus); in arch_user_mode_enter()
|
/Zephyr-Core-3.5.0/include/zephyr/arch/riscv/ |
D | arch_inlines.h | 17 return csr_read(mhartid); in arch_proc_id() 23 return (_cpu_t *)csr_read(mscratch); in arch_curr_cpu()
|
D | csr.h | 185 #define csr_read(csr) \ macro
|
/Zephyr-Core-3.5.0/tests/arch/riscv/fpu_sharing/src/ |
D | main.c | 16 return csr_read(mstatus) & MSTATUS_FS; in fpu_state() 285 zassert_true((csr_read(mstatus) & MSTATUS_IEN) == 0, "IRQs should be disabled"); in exception_context() 297 zassert_true((csr_read(mstatus) & MSTATUS_IEN) != 0, "IRQs should be enabled"); in ZTEST() 301 zassert_true((csr_read(mstatus) & MSTATUS_IEN) != 0, "IRQs should be enabled"); in ZTEST() 314 zassert_true((csr_read(mstatus) & MSTATUS_IEN) != 0, "IRQs should be enabled"); in ZTEST() 325 zassert_true((csr_read(mstatus) & MSTATUS_IEN) != 0, "IRQs should be enabled"); in ZTEST()
|
/Zephyr-Core-3.5.0/soc/riscv/riscv-ite/common/ |
D | soc_common_irq.c | 35 return ((csr_read(mie) & BIT(IRQ_M_EXT)) && in arch_irq_is_enabled()
|
/Zephyr-Core-3.5.0/soc/riscv/riscv-privileged/andes_v5/ |
D | pma.c | 98 pmacfg = csr_read(NDS_PMACFG##x); break; in write_pmacfg_entry() 206 mmsc_cfg = csr_read(NDS_MMSC_CFG); in pma_init()
|
D | l2_cache.c | 60 if (csr_read(NDS_MCACHE_CTL) & BIT_MASK(2)) { in andes_v5_l2c_enable()
|
/Zephyr-Core-3.5.0/soc/riscv/riscv-privileged/common/ |
D | soc_common_irq.c | 96 mie = csr_read(mie); in arch_irq_is_enabled()
|
/Zephyr-Core-3.5.0/arch/riscv/include/ |
D | kernel_arch_func.h | 36 _kernel.cpus[0].arch.hartid = csr_read(mhartid); in arch_kernel_init()
|
/Zephyr-Core-3.5.0/drivers/interrupt_controller/ |
D | intc_nuclei_eclic.c | 176 csr_write(mtvec, ((csr_read(mtvec) & 0xFFFFFFC0) | ECLIC_MODE_MTVEC_Msk)); in nuclei_eclic_init()
|
D | intc_ite_it8xxx2_v2.c | 220 LOG_DBG("CPU mepc: 0x%lx", csr_read(mepc)); in get_irq()
|
D | intc_ite_it8xxx2.c | 233 LOG_DBG("CPU mepc: 0x%lx", csr_read(mepc)); in get_irq()
|
/Zephyr-Core-3.5.0/doc/releases/ |
D | release-notes-3.4.rst | 367 * Switched from accessing CSRs from inline assembly to using the :c:func:`csr_read` helper
|