summaryrefslogtreecommitdiff
path: root/include/sbi
diff options
context:
space:
mode:
authorAtish Patra <atish.patra@wdc.com>2020-05-10 02:47:23 +0300
committerAnup Patel <anup@brainfault.org>2020-05-10 07:29:16 +0300
commit63a513edeccee1758bbfe5111ccc4fbec8f18a12 (patch)
tree0b134fad4465b6cb69a9c69315f084104e1bb839 /include/sbi
parent7be75f519f7705367030258c4410d9ff9ea24a6f (diff)
downloadopensbi-63a513edeccee1758bbfe5111ccc4fbec8f18a12.tar.xz
lib: Rename unprivileged trap handler
Unprivileged trap handler can be reused for any cases where the executing code expects a trap. Rename it to "expected" trap handler as it will be used in other cases in future. Signed-off-by: Atish Patra <atish.patra@wdc.com> Tested-by: Jonathan Balkind <jbalkind@cs.princeton.edu> Reviewed-by: Anup Patel <anup.patel@wdc.com>
Diffstat (limited to 'include/sbi')
-rw-r--r--include/sbi/sbi_hart.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/sbi/sbi_hart.h b/include/sbi/sbi_hart.h
index 4b83b84..6a2ba4e 100644
--- a/include/sbi/sbi_hart.h
+++ b/include/sbi/sbi_hart.h
@@ -16,10 +16,10 @@ struct sbi_scratch;
int sbi_hart_init(struct sbi_scratch *scratch, u32 hartid, bool cold_boot);
-extern void (*sbi_hart_unpriv_trap)(void);
-static inline ulong sbi_hart_unpriv_trap_addr(void)
+extern void (*sbi_hart_expected_trap)(void);
+static inline ulong sbi_hart_expected_trap_addr(void)
{
- return (ulong)sbi_hart_unpriv_trap;
+ return (ulong)sbi_hart_expected_trap;
}
void sbi_hart_delegation_dump(struct sbi_scratch *scratch);