OSDN Git Service

riscv: Add 3 SBI wrapper functions to get cpu manufacturer information
authorVincent Chen <vincent.chen@sifive.com>
Mon, 22 Mar 2021 14:26:02 +0000 (22:26 +0800)
committerPalmer Dabbelt <palmerdabbelt@google.com>
Mon, 26 Apr 2021 15:24:54 +0000 (08:24 -0700)
commit183787c6fcc2c793ec96e946a4fdd8cd0e6d7aa0
tree4ff6143f4e427f5990a6a5d9c6e43867dce1b117
parent7d0bc44bd0ea163a251d4aa778d1b6fcf6174d22
riscv: Add 3 SBI wrapper functions to get cpu manufacturer information

Add 3 wrapper functions to get vendor id, architecture id and implement id
from M-mode

Signed-off-by: Vincent Chen <vincent.chen@sifive.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
arch/riscv/include/asm/sbi.h
arch/riscv/kernel/sbi.c