From fc37c9712d50a8900a13eacae64bc4e640e528e9 Mon Sep 17 00:00:00 2001 From: Anup Patel Date: Sat, 10 Apr 2021 09:09:00 +0530 Subject: lib: sbi: Make the root domain instance global variable We make the the root domain instance global variable so that platform support and drivers can iterate over the root domain regions. Signed-off-by: Anup Patel Reviewed-by: Xiang W Reviewed-by: Alistair Francis --- lib/sbi/sbi_domain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/sbi/sbi_domain.c b/lib/sbi/sbi_domain.c index 4b5a89f..c95c3c3 100644 --- a/lib/sbi/sbi_domain.c +++ b/lib/sbi/sbi_domain.c @@ -29,7 +29,7 @@ static u32 root_memregs_count = 0; static struct sbi_domain_memregion root_fw_region; static struct sbi_domain_memregion root_memregs[ROOT_REGION_MAX + 1] = { 0 }; -static struct sbi_domain root = { +struct sbi_domain root = { .name = "root", .possible_harts = &root_hmask, .regions = root_memregs, -- cgit v1.1