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 /lib/sbi/sbi_init.c | |
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 'lib/sbi/sbi_init.c')
-rw-r--r-- | lib/sbi/sbi_init.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/sbi/sbi_init.c b/lib/sbi/sbi_init.c index 8baaed4..48bc653 100644 --- a/lib/sbi/sbi_init.c +++ b/lib/sbi/sbi_init.c @@ -68,6 +68,7 @@ static void sbi_boot_prints(struct sbi_scratch *scratch, u32 hartid) sbi_ecall_version_major(), sbi_ecall_version_minor()); sbi_printf("\n"); + sbi_hart_delegation_dump(scratch); sbi_hart_pmp_dump(scratch); } |