forked from Mirrors/opensbi
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>
This commit is contained in:
3
lib/sbi/sbi_ecall_exts.carray
Normal file
3
lib/sbi/sbi_ecall_exts.carray
Normal file
@@ -0,0 +1,3 @@
|
||||
HEADER: sbi/sbi_ecall.h
|
||||
TYPE: struct sbi_ecall_extension
|
||||
NAME: sbi_ecall_exts
|
Reference in New Issue
Block a user