lib: utils/irqchip: Use scratch space to save per-HART PLIC pointer
authorAnup Patel <apatel@ventanamicro.com>
Wed, 19 Apr 2023 15:59:50 +0000 (21:29 +0530)
committerAnup Patel <anup@brainfault.org>
Mon, 5 Jun 2023 11:20:56 +0000 (16:50 +0530)
commitb3594ac1d10ef6c7269c6381a1e826b73b06aca0
tree3e5a466a8dd691647e66723303e0b880cc5f3f8f
parentf0516beae068ffce0d5a79f09a96904a661a25ba
lib: utils/irqchip: Use scratch space to save per-HART PLIC pointer

Instead of using a global array indexed by hartid, we should use
scratch space to save per-HART PLIC pointer and PLIC context numbers.

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