Skip to content

Commit

Permalink
Don't hang on risc-v when more than 1 cpu is found
Browse files Browse the repository at this point in the history
  • Loading branch information
N00byEdge committed Jul 1, 2022
1 parent 4f3577b commit e67e480
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/lib/dtb.zig
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,11 @@ pub fn psci_smp(comptime methods: ?sabaton.psci.Mode) void {
_ = sabaton.psci.wake_cpu(entry, id, tag_addr, comptime (methods.?));
continue;
}

if (comptime !sabaton.safety)
unreachable;

@panic("Unknown PSCI method!");
},

.riscv64 => {
Expand All @@ -128,11 +133,6 @@ pub fn psci_smp(comptime methods: ?sabaton.psci.Mode) void {

else => @compileError("Implement CPU waking on " ++ @tagName(sabaton.arch)),
}

if (comptime !sabaton.safety)
unreachable;

@panic("Unknown PSCI method!");
}

sabaton.add_tag(&smp_header.tag);
Expand Down

0 comments on commit e67e480

Please sign in to comment.