forked from Mirrors/opensbi
lib: utils/irqchip: Look up IMSIC data by hart index
This avoids needing to map a hartid to a hart index. Signed-off-by: Samuel Holland <samuel.holland@sifive.com> Reviewed-by: Anup Patel <anup@brainfault.org>
This commit is contained in:

committed by
Anup Patel

parent
d73a4c741c
commit
7f5fa9f9a4
@@ -37,9 +37,9 @@ struct imsic_data {
|
||||
|
||||
int imsic_map_hartid_to_data(u32 hartid, struct imsic_data *imsic, int file);
|
||||
|
||||
struct imsic_data *imsic_get_data(u32 hartid);
|
||||
struct imsic_data *imsic_get_data(u32 hartindex);
|
||||
|
||||
int imsic_get_target_file(u32 hartid);
|
||||
int imsic_get_target_file(u32 hartindex);
|
||||
|
||||
void imsic_local_irqchip_init(void);
|
||||
|
||||
|
Reference in New Issue
Block a user