ARMv8: fix implementation of cpu_is_bsp()
@@ -90,8 +90,8 @@ static void mmap_find_memory(struct multiboot_tag_efi_mmap *mmap)
bool cpu_is_bsp(void)
{
- /* XXX: i don't think this is correct*/
- return (sysreg_get_cpu_id() == 0);
+ /* xxx: assumes the coreid to be set */
+ return (my_core_id == 0);
}
bool arch_core_is_bsp(void)
@@ -211,3 +211,4 @@ arch_init(uint32_t magic, void *pointer, uintptr_t stack) {
__asm volatile ("wfi":::);
}
}
+
