diff options
| author | Anup Patel <[email protected]> | 2020-02-18 11:53:52 +0530 |
|---|---|---|
| committer | Anup Patel <[email protected]> | 2020-02-19 09:58:48 +0530 |
| commit | 24c3082ea496d39d406601ee4243b724f4d31aec (patch) | |
| tree | cabd8d91dbe18267e1c61afba08ab16c5a86efbc /include | |
| 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 <[email protected]>
Reviewed-by: Bin Meng <[email protected]>
Reviewed-by: Atish Patra <[email protected]>
Diffstat (limited to 'include')
| -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 0762f951..065cb0c6 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); |
