diff options
| author | Jan Remes <[email protected]> | 2022-06-21 14:07:39 +0200 |
|---|---|---|
| committer | Anup Patel <[email protected]> | 2022-06-22 10:55:27 +0530 |
| commit | d76a196bfc805e1ee51f9191162007d1e0657217 (patch) | |
| tree | 365bc4b9ac6605e56f871a26cf2586bc1bb2c25e /lib | |
| parent | 7738345396fbbae543a5af14fbc965d9163c12a0 (diff) | |
lib: irqchip/plic: fix typo in plic_warm_irqchip_init
The second invocation of plic_context_init() incorrectly calls the
function with m_cntx_id instead of s_cntx_id. This breaks systems which
only have 1 external interrupt per hart.
Fixes: 8c362e7 ("lib: irqchip/plic: Factor out a context init function")
Signed-off-by: Jan Remes <[email protected]>
Reviewed-by: Anup Patel <[email protected]>
Reviewed-by: Samuel Holland <[email protected]>
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/utils/irqchip/plic.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/utils/irqchip/plic.c b/lib/utils/irqchip/plic.c index 8c25b9d7..73d77889 100644 --- a/lib/utils/irqchip/plic.c +++ b/lib/utils/irqchip/plic.c @@ -145,7 +145,7 @@ int plic_warm_irqchip_init(const struct plic_data *plic, /* By default, disable all IRQs for S-mode of target HART */ if (s_cntx_id > -1) { - ret = plic_context_init(plic, m_cntx_id, false, 0x7); + ret = plic_context_init(plic, s_cntx_id, false, 0x7); if (ret) return ret; } |
