mpfs/mpfs_entrypoints.c: Change atomic_load > atomic_read

Otherwise we get an undefined symbol error when LIBC_ARCH_ATOMIC is
defined.

Signed-off-by: Ville Juven <ville.juven@unikie.com>
This commit is contained in:
Ville Juven
2025-04-03 18:34:11 +08:00
committed by Xiang Xiao
parent 90e9b2426d
commit cc64c026d9
+1 -1
View File
@@ -270,7 +270,7 @@ bool mpfs_get_use_sbi(uint64_t hartid)
int mpfs_cpus_booted(void)
{
return atomic_load(&g_cpus_booted);
return atomic_read(&g_cpus_booted);
}
#endif /* CONFIG_MPFS_BOOTLOADER */