Home
last modified time | relevance | path

Searched refs:hartid (Results 1 – 6 of 6) sorted by relevance

/Zephyr-latest/arch/riscv/core/
Dsmp.c48 riscv_cpu_wake_flag = _kernel.cpus[cpu_num].arch.hartid; in arch_cpu_start()
52 void arch_secondary_cpu_init(int hartid) in arch_secondary_cpu_init() argument
58 if (_kernel.cpus[i].arch.hartid == hartid) { in arch_secondary_cpu_init()
Dipi_clint.c17 #define MSIP(hartid) ((volatile uint32_t *)MSIP_BASE)[hartid] argument
32 MSIP(_kernel.cpus[i].arch.hartid) = 1; in arch_sched_directed_ipi()
43 MSIP(_kernel.cpus[cpu].arch.hartid) = 1; in arch_flush_fpu_ipi()
/Zephyr-latest/arch/riscv/include/
Dkernel_arch_func.h38 _kernel.cpus[0].arch.hartid = csr_read(mhartid); in arch_kernel_init()
48 if (cpu_node_list[hart_x] == _kernel.cpus[0].arch.hartid) { in arch_kernel_init()
51 _kernel.cpus[cpu_num].arch.hartid = cpu_node_list[hart_x]; in arch_kernel_init()
/Zephyr-latest/include/zephyr/arch/riscv/
Dstructs.h18 unsigned long hartid; member
/Zephyr-latest/drivers/interrupt_controller/
Dintc_plic.c138 static ALWAYS_INLINE uint32_t get_hart_context(const struct device *dev, uint32_t hartid) in get_hart_context() argument
142 return config->hart_context[hartid]; in get_hart_context()
162 uint32_t hartid; in get_context_en_addr() local
167 hartid = _kernel.cpus[cpu_num].arch.hartid; in get_context_en_addr()
169 hartid = arch_proc_id(); in get_context_en_addr()
171 return config->irq_en + get_hart_context(dev, hartid) * CONTEXT_ENABLE_SIZE; in get_context_en_addr()
188 uint32_t hartid; in get_threshold_priority_addr() local
191 hartid = _kernel.cpus[cpu_num].arch.hartid; in get_threshold_priority_addr()
193 hartid = arch_proc_id(); in get_threshold_priority_addr()
196 return config->reg + (get_hart_context(dev, hartid) * CONTEXT_SIZE); in get_threshold_priority_addr()
/Zephyr-latest/tests/drivers/interrupt_controller/intc_plic/
DKconfig11 bool "Test alternate hartid - context mapping"