Skip to content
Commit ea238563 authored by Yong Cong Sin's avatar Yong Cong Sin Committed by Anas Nashif
Browse files

drivers: intc: plic: remove incorrect arch_proc_id() usage



The `arch_proc_id()` returns the hartid of a CPU, which may not start
from zero. The way that it's used as an index to access `save_irq[]`
array is wrong, use `arch_curr_cpu()->id` instead.

Signed-off-by: default avatarYong Cong Sin <ycsin@meta.com>
Signed-off-by: default avatarYong Cong Sin <yongcong.sin@gmail.com>
parent 93a9a096
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment