Searched refs:csr_read (Results 1 – 19 of 19) sorted by relevance
/Zephyr-Core-3.7.0/drivers/cache/ |
D | cache_andes.c | 82 unsigned long status = csr_read(mstatus); in nds_cctl_range_operations() 111 unsigned long status = csr_read(mstatus); in nds_l1i_cache_all() 113 if (csr_read(NDS_MMSC_CFG) & MMSC_CFG_VCCTL_2) { in nds_l1i_cache_all() 124 sets = 0x40 << (csr_read(NDS_MICM_CFG) & MICM_CFG_ISET); in nds_l1i_cache_all() 125 ways = ((csr_read(NDS_MICM_CFG) >> MICM_CFG_IWAY_SHIFT) & BIT_MASK(3)) + 1; in nds_l1i_cache_all() 139 unsigned long status = csr_read(mstatus); in nds_l1d_cache_all() 141 if (csr_read(NDS_MMSC_CFG) & MMSC_CFG_VCCTL_2) { in nds_l1d_cache_all() 216 if (csr_read(NDS_MCACHE_CTL) & MCACHE_CTL_DC_COHEN) { in cache_data_enable() 218 while (!(csr_read(NDS_MCACHE_CTL) & MCACHE_CTL_DC_COHSTA)) { in cache_data_enable() 230 unsigned long status = csr_read(mstatus); in cache_data_disable() [all …]
|
D | cache_andes_l2.h | 85 unsigned long status = csr_read(mstatus); in nds_l2_cache_all() 91 if (csr_read(NDS_MMSC_CFG) & MMSC_CFG_VCCTL_2) { in nds_l2_cache_all()
|
/Zephyr-Core-3.7.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.7.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 arch_flush_local_fpu() 105 __ASSERT((csr_read(mstatus) & MSTATUS_FS) == 0, in arch_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 | 26 mcause = csr_read(mcause); in z_irq_spurious()
|
D | smp.c | 124 MSIP(csr_read(mhartid)) = 0; in sched_ipi_handler()
|
D | thread.c | 152 status = csr_read(mstatus); in arch_user_mode_enter()
|
/Zephyr-Core-3.7.0/include/zephyr/arch/riscv/ |
D | arch_inlines.h | 17 return csr_read(mhartid) & ((uintptr_t)CONFIG_RISCV_HART_MASK); 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.7.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.7.0/soc/ite/ec/common/ |
D | soc_common_irq.c | 37 return ((csr_read(mie) & BIT(IRQ_M_EXT)) && in arch_irq_is_enabled()
|
/Zephyr-Core-3.7.0/soc/andestech/ae350/ |
D | pma.c | 100 pmacfg = csr_read(NDS_PMACFG##x); break; in write_pmacfg_entry() 208 mmsc_cfg = csr_read(NDS_MMSC_CFG); in pma_init()
|
/Zephyr-Core-3.7.0/soc/common/riscv-privileged/ |
D | soc_common_irq.c | 94 mie = csr_read(mie); in arch_irq_is_enabled()
|
/Zephyr-Core-3.7.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.7.0/drivers/interrupt_controller/ |
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.7.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
|