From 63a513edeccee1758bbfe5111ccc4fbec8f18a12 Mon Sep 17 00:00:00 2001 From: Atish Patra Date: Sat, 9 May 2020 16:47:23 -0700 Subject: 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 Tested-by: Jonathan Balkind Reviewed-by: Anup Patel --- include/sbi/sbi_hart.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include/sbi') 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); -- cgit v1.2.3