diff options
author | Atish Patra <atish.patra@wdc.com> | 2020-05-09 16:47:23 -0700 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2020-05-10 09:59:16 +0530 |
commit | 63a513edeccee1758bbfe5111ccc4fbec8f18a12 (patch) | |
tree | 0b134fad4465b6cb69a9c69315f084104e1bb839 /include/sbi/sbi_hart.h | |
parent | 7be75f519f7705367030258c4410d9ff9ea24a6f (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 <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/sbi_hart.h')
-rw-r--r-- | include/sbi/sbi_hart.h | 6 |
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); |