lib: sbi: Domains can be registered only before finalizing domains
authorAnup Patel <anup.patel@wdc.com>
Fri, 9 Apr 2021 03:50:08 +0000 (09:20 +0530)
committerAnup Patel <anup@brainfault.org>
Tue, 13 Apr 2021 05:26:32 +0000 (10:56 +0530)
commitb1df1acd201e388a5ce96fd045593ee5b29c0387
treeddbfd3557c44213d1a2086f5431ec6af3bd2c54d
parent27a16b1545f750bc4d15d46a737a4411861bd9d3
lib: sbi: Domains can be registered only before finalizing domains

The domains are boot-time system-level partitions so we should
allow platform support to register domains only before hart
domain assignments are finalized.

Signed-off-by: Anup Patel <anup.patel@wdc.com>
Reviewed-by: Xiang W <wxjstz@126.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
lib/sbi/sbi_domain.c