lib: sbi: implement SBI FWFT extension
authorClément Léger <cleger@rivosinc.com>
Wed, 19 Jun 2024 09:42:42 +0000 (11:42 +0200)
committerAnup Patel <anup@brainfault.org>
Wed, 19 Jun 2024 12:45:28 +0000 (18:15 +0530)
commitecef14d5732f837cbfa4a8cefa8fed7953e7abfb
tree1bb751958253d0ecd8f11532b8c3abbca96e146e
parente9ee9678ba509f42a93c8de518710c225c0499f5
lib: sbi: implement SBI FWFT extension

The SBI FWFT extension defines a set of function that can be called
to control the configuration of some platform features (misaligned
trap delegation, etc). This patch implements sbi_fwft_set() and
sbi_fwft_get() as defined in the specification [1].

Link: https://lists.riscv.org/g/tech-prs/message/924
Signed-off-by: Clément Léger <cleger@rivosinc.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
lib/sbi/Kconfig
lib/sbi/objects.mk
lib/sbi/sbi_ecall_fwft.c [new file with mode: 0644]