summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnup Patel <anup.patel@wdc.com>2020-11-11 07:01:39 +0300
committerAnup Patel <anup@brainfault.org>2020-12-04 15:26:43 +0300
commit3d921fad0dc4c815b6be9c92df3df00a8b6439ef (patch)
tree2ecd2aae15e9a1eabd8879e6818e7e2f4bef91f1
parent8d2edc4fc957588e23d09c8f567a94cd737405d3 (diff)
downloadopensbi-3d921fad0dc4c815b6be9c92df3df00a8b6439ef.tar.xz
lib: sbi: Fix typo in sbi_domain_finalize()
There has been typo in automatic domain boot hart startup for non-root domains so this patch fixes it. Signed-off-by: Anup Patel <anup.patel@wdc.com> Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Reviewed-by: Atish Patra <atish.patra@wdc.com>
-rw-r--r--lib/sbi/sbi_domain.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/sbi/sbi_domain.c b/lib/sbi/sbi_domain.c
index d4b82fe..4c98a1b 100644
--- a/lib/sbi/sbi_domain.c
+++ b/lib/sbi/sbi_domain.c
@@ -404,12 +404,12 @@ int sbi_domain_finalize(struct sbi_scratch *scratch, u32 cold_hartid)
dhart = dom->boot_hartid;
/* Ignore if boot HART not possible for this domain */
- if (!sbi_hartmask_test_hart(i, dom->possible_harts))
+ if (!sbi_hartmask_test_hart(dhart, dom->possible_harts))
continue;
/* Ignore if boot HART assigned different domain */
if (sbi_hartid_to_domain(dhart) != dom ||
- !sbi_hartmask_test_hart(i, &dom->assigned_harts))
+ !sbi_hartmask_test_hart(dhart, &dom->assigned_harts))
continue;
/* Startup boot HART of domain */