summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAtish Patra <[email protected]>2020-05-09 16:47:23 -0700
committerAnup Patel <[email protected]>2020-05-10 09:59:16 +0530
commit63a513edeccee1758bbfe5111ccc4fbec8f18a12 (patch)
tree0b134fad4465b6cb69a9c69315f084104e1bb839 /include
parent7be75f519f7705367030258c4410d9ff9ea24a6f (diff)
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 <[email protected]> Tested-by: Jonathan Balkind <[email protected]> Reviewed-by: Anup Patel <[email protected]>
Diffstat (limited to 'include')
-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 4b83b84b..6a2ba4ea 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);