lib: sbi_ecall: Generate extensions list with carray
authorVivian Wang <dramforever@live.com>
Mon, 10 Oct 2022 16:34:44 +0000 (00:34 +0800)
committerAnup Patel <anup@brainfault.org>
Sun, 23 Oct 2022 05:30:30 +0000 (11:00 +0530)
commit56bed1a0fe39cc788452202827ab5fdc3c58bc20
tree713d6fad53f7dfb29e0cbe12ecd025df7647c0b7
parent9d54f431e803342218561faa6b4649bbdcea1d24
lib: sbi_ecall: Generate extensions list with carray

Instead of hard-coding the list of extensions in C code, use carray to
generate the list of extensions.

Using carray makes adding and removing extensions slightly cleaner. This
also paves the way for using Kconfig to disable unneeded extensions.

Signed-off-by: Vivian Wang <dramforever@live.com>
Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
include/sbi/sbi_ecall.h
lib/sbi/objects.mk
lib/sbi/sbi_ecall.c
lib/sbi/sbi_ecall_exts.carray [new file with mode: 0644]