Skip to content

Commit 5f38bbb

Browse files
committed
aarch64: ignore cpu nodes without a reg
1 parent 1a551db commit 5f38bbb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

kernel/arch/aarch64/smp.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,10 @@ void smp_bootstrap(void) {
104104

105105
static void start_cpu(uint32_t * node) {
106106
uint32_t * cpuid = dtb_node_find_property(node, "reg");
107+
if (!cpuid) {
108+
dprintf("smp: skipping cpus node without 'reg' parameter\n");
109+
return;
110+
}
107111
uint32_t num = swizzle(cpuid[2]);
108112
dprintf("smp: cpu node %d %#zx '%s'\n", num, (uintptr_t)node, (char *)(node));
109113
if (num == 0) return;

0 commit comments

Comments
 (0)