summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/sbi/sbi_domain.h3
-rw-r--r--lib/sbi/sbi_domain.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/include/sbi/sbi_domain.h b/include/sbi/sbi_domain.h
index 84d17da..27316de 100644
--- a/include/sbi/sbi_domain.h
+++ b/include/sbi/sbi_domain.h
@@ -80,6 +80,9 @@ struct sbi_domain {
bool system_reset_allowed;
};
+/** The root domain instance */
+extern struct sbi_domain root;
+
/** HART id to domain table */
extern struct sbi_domain *hartid_to_domain_table[];
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,