Skip to content

Commit

Permalink
application: show eclic interrupt information if present
Browse files Browse the repository at this point in the history
Signed-off-by: Huaqi Fang <578567190@qq.com>
  • Loading branch information
fanghuaqi committed Oct 20, 2023
1 parent ffe71e6 commit 34b98bc
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions application/baremetal/cpuinfo/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,17 @@ void nuclei_cpuinfo(void)
printf(" PMON_NUM=%ld", __RV_EXTRACT_FIELD(smp_cfg, 0x3F << 13));
printf("\r\n");
}
/* ECLIC */
if (mcfg.b.clic) {
printf(" ECLIC:");
printf(" VERSION=0x%x", (unsigned int)ECLIC_GetInfoVer());
printf(" NUM_INTERRUPT=%u", (unsigned int)ECLIC_GetInfoNum());
printf(" CLICINTCTLBITS=%u", (unsigned int)ECLIC_GetInfoCtlbits());
printf(" MTH=%u", (unsigned int)ECLIC_GetMth());
printf(" NLBITS=%u", (unsigned int)ECLIC_GetCfgNlbits());
printf("\r\n");
}

/* L2CACHE */
if (smp_cfg & BIT(1)) {
rv_csr_t cc_cfg = *(rv_csr_t*)(iregion_base + 0x40008);
Expand Down

0 comments on commit 34b98bc

Please sign in to comment.