Commit e3a30a2c authored by Cheng Yang's avatar Cheng Yang Committed by Anup Patel
Browse files

lib: utils/irqchip: Check before initializing imsic



The current mlevel imsic check is only for the platform, which
may cause hart without imsic in the platform to trigger an
illegal instruction exception when initializing imsic. For
example, the platform contains a management hart that only
supports wired interrupts.

This patch will check if each hart supports Smaia extension
before doing imsic initialization to avoid triggering illegal
instruction exceptions.

Signed-off-by: default avatarCheng Yang <yangcheng.work@foxmail.com>
Reviewed-by: default avatarAnup Patel <anup@brainfault.org>
parent 2bed4c1c
Pipeline #2300 failed with stages
in 0 seconds
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment