diff options
author | Anup Patel <anup.patel@wdc.com> | 2020-01-17 16:55:24 +0300 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2020-01-22 09:43:47 +0300 |
commit | 021b9e7c767f101e80fdd4868ad95177fa1cf1da (patch) | |
tree | 0eeda6168e2960d66c94b4847ad0a2f5e182de70 /include/sbi | |
parent | 43ac621ecba8d472a5e697527143f9d3317df3e1 (diff) | |
download | opensbi-021b9e7c767f101e80fdd4868ad95177fa1cf1da.tar.xz |
lib: Factor-out SBI base extension
This patch factor-out SBI base extension into its own source
for better modularity of SBI implementation.
Signed-off-by: Anup Patel <anup.patel@wdc.com>
Reviewed-by: Atish Patra <atish.patra@wdc.com>
Diffstat (limited to 'include/sbi')
-rw-r--r-- | include/sbi/sbi_ecall.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/sbi/sbi_ecall.h b/include/sbi/sbi_ecall.h index 80c99be..2a3500f 100644 --- a/include/sbi/sbi_ecall.h +++ b/include/sbi/sbi_ecall.h @@ -13,6 +13,10 @@ #include <sbi/sbi_types.h> #include <sbi/sbi_list.h> +#define SBI_ECALL_VERSION_MAJOR 0 +#define SBI_ECALL_VERSION_MINOR 2 +#define SBI_OPENSBI_IMPID 1 + struct sbi_trap_regs; struct sbi_trap_info; struct sbi_scratch; @@ -29,6 +33,7 @@ struct sbi_ecall_extension { struct sbi_trap_info *out_trap); }; +extern struct sbi_ecall_extension ecall_base; extern struct sbi_ecall_extension ecall_legacy; extern struct sbi_ecall_extension ecall_time; extern struct sbi_ecall_extension ecall_rfence; |