diff options
author | Anup Patel <anup.patel@wdc.com> | 2020-02-18 11:53:52 +0530 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2020-02-19 09:58:48 +0530 |
commit | 24c3082ea496d39d406601ee4243b724f4d31aec (patch) | |
tree | cabd8d91dbe18267e1c61afba08ab16c5a86efbc /include/sbi/sbi_hart.h | |
parent | bc874e34cecbd1e024ae7be4ec2f34d9cb1fbecb (diff) |
lib: Print interrupt and exception delegation in boot prints
We print MIDELEG and MEDELEG CSRs as part of boot prints so that
boot log shows the interrupts and exceptions delegated to S-mode.
Signed-off-by: Anup Patel <anup.patel@wdc.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Atish Patra <atish.patra@wdc.com>
Diffstat (limited to 'include/sbi/sbi_hart.h')
-rw-r--r-- | include/sbi/sbi_hart.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/sbi/sbi_hart.h b/include/sbi/sbi_hart.h index 0762f95..065cb0c 100644 --- a/include/sbi/sbi_hart.h +++ b/include/sbi/sbi_hart.h @@ -20,6 +20,7 @@ void *sbi_hart_get_trap_info(struct sbi_scratch *scratch); void sbi_hart_set_trap_info(struct sbi_scratch *scratch, void *data); +void sbi_hart_delegation_dump(struct sbi_scratch *scratch); void sbi_hart_pmp_dump(struct sbi_scratch *scratch); void __attribute__((noreturn)) sbi_hart_hang(void); |