Searched refs:hartid (Results 1 – 6 of 6) sorted by relevance
48 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() argument58 if (_kernel.cpus[i].arch.hartid == hartid) { in arch_secondary_cpu_init()
17 #define MSIP(hartid) ((volatile uint32_t *)MSIP_BASE)[hartid] argument32 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()
38 _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()
18 unsigned long hartid; member
138 static ALWAYS_INLINE uint32_t get_hart_context(const struct device *dev, uint32_t hartid) in get_hart_context() argument142 return config->hart_context[hartid]; in get_hart_context()162 uint32_t hartid; in get_context_en_addr() local167 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() local191 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()
11 bool "Test alternate hartid - context mapping"