mirror of
https://github.com/riscv-software-src/opensbi.git
synced 2026-11-20 10:32:19 +00:00
lib: sbi: mpxy: Register extension unconditionally
Register the MPXY ecall extension unconditionally, as this is too early in the init order and any channel might not have been registered yet. Reviewed-by: Rahul Pathak <rahul.pathak@oss.qualcomm.com> Signed-off-by: Oza Pawandeep <pawandeep.oza@oss.qualcomm.com> Reviewed-by: Anup Patel <anup@brainfault.org> Link: https://lore.kernel.org/r/20261118215549.2499040-8-pawandeep.oza@oss.qualcomm.com Signed-off-by: Anup Patel <anup@brainfault.org>
This commit is contained in:
1 parent
bd873ab56a
commit
61f1973bd5
1 file changed
+4
-3
@@ -57,9 +57,10 @@ struct sbi_ecall_extension ecall_mpxy;
|
|||||||
|
|
||||||
static int sbi_ecall_mpxy_register_extensions(void)
|
static int sbi_ecall_mpxy_register_extensions(void)
|
||||||
{
|
{
|
||||||
if (!sbi_mpxy_channel_available())
|
/*
|
||||||
return 0;
|
* Register the MPXY ecall extension unconditionally, as this is too early
|
||||||
|
* in the init order and any channel might not have been registered yet.
|
||||||
|
*/
|
||||||
return sbi_ecall_register_extension(&ecall_mpxy);
|
return sbi_ecall_register_extension(&ecall_mpxy);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user