diff options
author | Anup Patel <anup.patel@wdc.com> | 2018-12-22 02:46:37 +0300 |
---|---|---|
committer | Atish Patra <atish.patra@wdc.com> | 2018-12-22 09:11:21 +0300 |
commit | a6a5bb22a8c97f6191a0271f3dfe529038161675 (patch) | |
tree | 271dc9fe30c29c12b925426eaf8533028796c278 /platform/kendryte | |
parent | 5148499e0393737609baa5ada55284ad91c8be86 (diff) | |
download | opensbi-a6a5bb22a8c97f6191a0271f3dfe529038161675.tar.xz |
Fix plic warm init in platform code.
Pass S-Mode and M-mode context id separately to common warm init.
Signed-off-by: Atish Patra <atish.patra@wdc.com>
Signed-off-by: Anup Patel <anup.patel@wdc.com>
Diffstat (limited to 'platform/kendryte')
-rw-r--r-- | platform/kendryte/k210/platform.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/platform/kendryte/k210/platform.c b/platform/kendryte/k210/platform.c index 487b7cc..8e565dd 100644 --- a/platform/kendryte/k210/platform.c +++ b/platform/kendryte/k210/platform.c @@ -43,7 +43,9 @@ static int k210_cold_irqchip_init(void) static int k210_warm_irqchip_init(u32 core_id) { - return plic_warm_irqchip_init(core_id); + return plic_warm_irqchip_init(core_id, + (2 * core_id), + (2 * core_id + 1)); } static int k210_cold_ipi_init(void) |