OSDN Git Service

RISC-V: Add basic support for SBI v0.2
authorAtish Patra <atish.patra@wdc.com>
Wed, 18 Mar 2020 01:11:35 +0000 (18:11 -0700)
committerPalmer Dabbelt <palmerdabbelt@google.com>
Tue, 31 Mar 2020 18:25:29 +0000 (11:25 -0700)
commitb9dcd9e415872ae29f87667d23c8a8b946d24611
treea3d47ede25deecc7f672979fd539a7e0789c48f2
parent8446923ae4d776f42bf088ab99b1f91141ab6370
RISC-V: Add basic support for SBI v0.2

The SBI v0.2 introduces a base extension which is backward compatible
with v0.1. Implement all helper functions and minimum required SBI
calls from v0.2 for now. All other base extension function will be
added later as per need.
As v0.2 calling convention is backward compatible with v0.1, remove
the v0.1 helper functions and just use v0.2 calling convention.

Signed-off-by: Atish Patra <atish.patra@wdc.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
Reviewed-by: Palmer Dabbelt <palmerdabbelt@google.com>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
arch/riscv/include/asm/sbi.h
arch/riscv/kernel/sbi.c
arch/riscv/kernel/setup.c