Try to put the CPU into a low power state if we failed to otherwise halt

the system.

Obtained from:	ABT Systems Ltd
Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Andrew Turner 2015-07-31 15:54:34 +00:00
parent 176739d3f5
commit 9e2529043b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=286134

View File

@ -376,7 +376,11 @@ void
cpu_halt(void)
{
panic("ARM64TODO: cpu_halt");
/* We should have shutdown by now, if not enter a low power sleep */
intr_disable();
while (1) {
__asm __volatile("wfi");
}
}
/*