include: Rename ECALL defines to match latest RISC-V spec
authorAnup Patel <anup.patel@wdc.com>
Tue, 1 Sep 2020 12:24:29 +0000 (17:54 +0530)
committerAnup Patel <anup@brainfault.org>
Wed, 9 Sep 2020 04:02:02 +0000 (09:32 +0530)
commitbef63d68489a3026f2fdf4c07a8915d3dcdf14cd
tree7c9f625c6cd267bb9be4282a460260efb7d52fb8
parentdcb10c0056f37d3de6ce2794b8e6f7c322ac4d46
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>
include/sbi/riscv_encoding.h
lib/sbi/sbi_hart.c
lib/sbi/sbi_trap.c