/* @Brief Initialize the per-thread PMP register copy with global values.  */
static unsigned int z_riscv_pmp_thread_init(unsigned long *pmp_addr, unsigned long *pmp_cfg, unsigned int index_limit)
/* @Brief Initialize the per-thread PMP register copy with global values.  */
static unsigned int z_riscv_pmp_thread_init(unsigned long *pmp_addr, unsigned long *pmp_cfg, unsigned int index_limit)
{
	ARG_UNUSED(index_limit);
	pmp_cfg[0] = global_pmp_cfg[0];
	pmp_addr[global_pmp_end_index - 1] = global_pmp_last_addr;
	return global_pmp_end_index;
}