]> www.infradead.org Git - users/jedix/linux-maple.git/commit
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>
Sun, 11 Apr 2021 20:25:42 +0000 (13:25 -0700)
commit45b249336a81ff9c0a35987eca2ed6d97f68d318
treea4f7f9c331fd4542a8c8e8bc46281aa75663d237
parent4b69023a938841b0c4633da13e7f398509d23165
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