Home
last modified time | relevance | path

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

/linux-6.1.9/arch/riscv/kernel/
Dalternative.c28 static void __init_or_module riscv_fill_cpu_mfr_info(struct cpu_manufacturer_info_t *cpu_mfr_info) in riscv_fill_cpu_mfr_info() argument
31 cpu_mfr_info->vendor_id = csr_read(CSR_MVENDORID); in riscv_fill_cpu_mfr_info()
32 cpu_mfr_info->arch_id = csr_read(CSR_MARCHID); in riscv_fill_cpu_mfr_info()
33 cpu_mfr_info->imp_id = csr_read(CSR_MIMPID); in riscv_fill_cpu_mfr_info()
35 cpu_mfr_info->vendor_id = sbi_get_mvendorid(); in riscv_fill_cpu_mfr_info()
36 cpu_mfr_info->arch_id = sbi_get_marchid(); in riscv_fill_cpu_mfr_info()
37 cpu_mfr_info->imp_id = sbi_get_mimpid(); in riscv_fill_cpu_mfr_info()
40 switch (cpu_mfr_info->vendor_id) { in riscv_fill_cpu_mfr_info()
43 cpu_mfr_info->patch_func = sifive_errata_patch_func; in riscv_fill_cpu_mfr_info()
48 cpu_mfr_info->patch_func = thead_errata_patch_func; in riscv_fill_cpu_mfr_info()
[all …]