lib: utils/irqchip: Use scratch space to save per-HART IMSIC pointer
authorAnup Patel <apatel@ventanamicro.com>
Thu, 20 Apr 2023 04:48:08 +0000 (10:18 +0530)
committerAnup Patel <anup@brainfault.org>
Tue, 6 Jun 2023 10:31:14 +0000 (16:01 +0530)
commit355796c5bc1906d749850e4215e0f7f53802ba5b
treea6cab042ec698b2ecfa6ffc8187933dafc8997a8
parent1df52fa7e8db2c23a921014404bd472d20ca42e8
lib: utils/irqchip: Use scratch space to save per-HART IMSIC pointer

Instead of using a global array indexed by hartid, we should use
scratch space to save per-HART IMSIC pointer and IMSIC file number.

Signed-off-by: Anup Patel <apatel@ventanamicro.com>
Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
lib/utils/irqchip/fdt_irqchip_imsic.c
lib/utils/irqchip/imsic.c