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 <anup.patel@wdc.com>
Reviewed-by: Xiang W <wxjstz@126.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Dieser Commit ist enthalten in:
Anup Patel
2021-04-13 10:56:45 +05:30
committet von Anup Patel
Ursprung 8b56980347
Commit fc37c9712d
2 geänderte Dateien mit 4 neuen und 1 gelöschten Zeilen
+3
Datei anzeigen
@@ -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[];