summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAnup Patel <[email protected]>2021-04-10 09:09:00 +0530
committerAnup Patel <[email protected]>2021-04-13 10:56:45 +0530
commitfc37c9712d50a8900a13eacae64bc4e640e528e9 (patch)
tree6919857e381d2a3c64550b6ca7a511e38d90a3bc /lib
parent8b569803475e130b85987b97fdd47c19e900bf82 (diff)
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 <[email protected]> Reviewed-by: Xiang W <[email protected]> Reviewed-by: Alistair Francis <[email protected]>
Diffstat (limited to 'lib')
-rw-r--r--lib/sbi/sbi_domain.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sbi/sbi_domain.c b/lib/sbi/sbi_domain.c
index 4b5a89fe..c95c3c3b 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,