Re: [PATCH v11 04/11] RISC-V: Introduce a new config for SBI v0.1

From: Bin Meng
Date: Sun Apr 05 2020 - 10:37:21 EST


On Wed, Mar 18, 2020 at 9:11 AM Atish Patra <atish.patra@xxxxxxx> wrote:
>
> We now have SBI v0.2 which is more scalable and extendable to handle
> future needs for RISC-V supervisor interfaces.
>
> Introduce a new config and move all SBI v0.1 code under that config.
> This allows to implement the new replacement SBI extensions cleanly
> and remove v0.1 extensions easily in future. Currently, the config
> is enabled by default. Once all M-mode software, with v0.1, is no
> longer in use, this config option and all relevant code can be easily
> removed.
>
> Signed-off-by: Atish Patra <atish.patra@xxxxxxx>
> Reviewed-by: Anup Patel <anup@xxxxxxxxxxxxxx>
> ---
> arch/riscv/Kconfig | 7 ++
> arch/riscv/include/asm/sbi.h | 2 +
> arch/riscv/kernel/sbi.c | 132 +++++++++++++++++++++++++++++------
> 3 files changed, 118 insertions(+), 23 deletions(-)
>

Reviewed-by: Bin Meng <bmeng.cn@xxxxxxxxx>