Lines Matching refs:pmp_cfg
60 unsigned long *pmp_addr, unsigned long *pmp_cfg, in print_pmp_entries() argument
63 uint8_t *pmp_n_cfg = (uint8_t *)pmp_cfg; in print_pmp_entries()
110 unsigned long pmp_cfg[CONFIG_PMP_SLOTS / PMPCFG_STRIDE]; in dump_pmp_regs() local
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()
135 print_pmp_entries(0, CONFIG_PMP_SLOTS, pmp_addr, pmp_cfg, banner); in dump_pmp_regs()
157 unsigned long *pmp_addr, unsigned long *pmp_cfg, in set_pmp_entry() argument
160 uint8_t *pmp_n_cfg = (uint8_t *)pmp_cfg; in set_pmp_entry()
208 unsigned long *pmp_addr, unsigned long *pmp_cfg, in set_pmp_mprv_catchall() argument
217 0, 0, pmp_addr, pmp_cfg, index_limit); in set_pmp_mprv_catchall()
253 const unsigned long *pmp_cfg);
269 unsigned long *pmp_addr, unsigned long *pmp_cfg, in write_pmp_entries() argument
288 uint8_t *pmp_n_cfg = (uint8_t *)pmp_cfg; in write_pmp_entries()
296 print_pmp_entries(start, end, pmp_addr, pmp_cfg, "register write"); in write_pmp_entries()
314 pmp_addr, pmp_cfg); in write_pmp_entries()
352 unsigned long pmp_cfg[CONFIG_PMP_SLOTS / PMPCFG_STRIDE]; in z_riscv_pmp_init() local
359 pmp_addr, pmp_cfg, ARRAY_SIZE(pmp_addr)); in z_riscv_pmp_init()
369 pmp_addr, pmp_cfg, ARRAY_SIZE(pmp_addr)); in z_riscv_pmp_init()
382 pmp_addr, pmp_cfg, ARRAY_SIZE(pmp_addr)); in z_riscv_pmp_init()
390 set_pmp_mprv_catchall(&index, pmp_addr, pmp_cfg, ARRAY_SIZE(pmp_addr)); in z_riscv_pmp_init()
393 write_pmp_entries(0, index, true, pmp_addr, pmp_cfg, ARRAY_SIZE(pmp_addr)); in z_riscv_pmp_init()
405 pmp_addr, pmp_cfg, ARRAY_SIZE(pmp_addr)); in z_riscv_pmp_init()
410 pmp_addr, pmp_cfg, ARRAY_SIZE(pmp_addr)); in z_riscv_pmp_init()
413 write_pmp_entries(0, index, true, pmp_addr, pmp_cfg, ARRAY_SIZE(pmp_addr)); in z_riscv_pmp_init()
417 write_pmp_entries(0, index, true, pmp_addr, pmp_cfg, ARRAY_SIZE(pmp_addr)); in z_riscv_pmp_init()
433 __ASSERT(global_pmp_cfg[0] == pmp_cfg[0], ""); in z_riscv_pmp_init()
438 global_pmp_cfg[0] = pmp_cfg[0]; in z_riscv_pmp_init()
451 unsigned long *pmp_cfg, in z_riscv_pmp_thread_init() argument
459 pmp_cfg[0] = global_pmp_cfg[0]; in z_riscv_pmp_thread_init()
539 unsigned long pmp_cfg[PMP_M_MODE_SLOTS / sizeof(unsigned long)]; in z_riscv_pmp_stackguard_disable() local
552 set_pmp_mprv_catchall(&index, pmp_addr, pmp_cfg, ARRAY_SIZE(pmp_addr)); in z_riscv_pmp_stackguard_disable()
556 true, pmp_addr, pmp_cfg, ARRAY_SIZE(pmp_addr)); in z_riscv_pmp_stackguard_disable()