summaryrefslogtreecommitdiff
path: root/include/sbi
diff options
context:
space:
mode:
authorAnup Patel <anup.patel@wdc.com>2020-09-01 15:24:29 +0300
committerAnup Patel <anup@brainfault.org>2020-09-09 07:02:02 +0300
commitbef63d68489a3026f2fdf4c07a8915d3dcdf14cd (patch)
tree7c9f625c6cd267bb9be4282a460260efb7d52fb8 /include/sbi
parentdcb10c0056f37d3de6ce2794b8e6f7c322ac4d46 (diff)
downloadopensbi-bef63d68489a3026f2fdf4c07a8915d3dcdf14cd.tar.xz
include: Rename ECALL defines to match latest RISC-V spec
We rename CAUSE_HYPERVISOR_ECALL to CAUSE_SUPERVISOR_ECALL and CAUSE_SUPERVISOR_ECALL to CAUSE_VIRTUAL_SUPERVISOR_ECALL so that it matches latest RISC-V privilege spec. 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/riscv_encoding.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/sbi/riscv_encoding.h b/include/sbi/riscv_encoding.h
index ccd2c69..e1d0b46 100644
--- a/include/sbi/riscv_encoding.h
+++ b/include/sbi/riscv_encoding.h
@@ -539,8 +539,8 @@
#define CAUSE_MISALIGNED_STORE 0x6
#define CAUSE_STORE_ACCESS 0x7
#define CAUSE_USER_ECALL 0x8
-#define CAUSE_HYPERVISOR_ECALL 0x9
-#define CAUSE_SUPERVISOR_ECALL 0xa
+#define CAUSE_SUPERVISOR_ECALL 0x9
+#define CAUSE_VIRTUAL_SUPERVISOR_ECALL 0xa
#define CAUSE_MACHINE_ECALL 0xb
#define CAUSE_FETCH_PAGE_FAULT 0xc
#define CAUSE_LOAD_PAGE_FAULT 0xd