summaryrefslogtreecommitdiff
path: root/arch/arm64/kernel/halt.c
blob: d91d39ad0bdef3dc7bf344173d6193b60cea1b8a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* SPDX-License-Identifier: GPL-2.0+ */
/*
 * halt.c - stop the core, the ARM ARM's WFI loop. nothing recovers
 * from a halt, the machine needs a reset.
 *
 * Copyright (C) 2026 Bradley Morgan <brads@mainlining.org>
 */

#include <debug.h>

void platform_halt(void)
{
	dprintf(ALWAYS, "HALT: spinning forever...\n");

	for (;;) {
		asm volatile("wfi");
	}
}