diff options
author | Alistair Francis <alistair.francis@wdc.com> | 2019-04-05 14:05:15 -0700 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2019-04-06 19:06:22 +0530 |
commit | 40086daa6275889d55829501ae926a95c9349701 (patch) | |
tree | d8689c1bcd6edc0f6cb59d55d5ab0c80c94a7e2f | |
parent | 09f976802bcd291c80b8260746bdcf5b530179ae (diff) |
lib: Fix the ecall macro definitions
Fix the ECALL definitions to matc the latest information in the
privlidge spec table 5.5.
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
-rw-r--r-- | include/sbi/riscv_encoding.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/sbi/riscv_encoding.h b/include/sbi/riscv_encoding.h index 3f1676c..1448f58 100644 --- a/include/sbi/riscv_encoding.h +++ b/include/sbi/riscv_encoding.h @@ -424,8 +424,8 @@ #define CAUSE_MISALIGNED_STORE 0x6 #define CAUSE_STORE_ACCESS 0x7 #define CAUSE_USER_ECALL 0x8 -#define CAUSE_SUPERVISOR_ECALL 0x9 -#define CAUSE_HYPERVISOR_ECALL 0xa +#define CAUSE_HYPERVISOR_ECALL 0x9 +#define CAUSE_SUPERVISOR_ECALL 0xa #define CAUSE_MACHINE_ECALL 0xb #define CAUSE_FETCH_PAGE_FAULT 0xc #define CAUSE_LOAD_PAGE_FAULT 0xd |