Implement cpu_halt() for RISC-V.

Submitted by:	Mitchell Horne <mhorne063@gmail.com>
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D18595
This commit is contained in:
markj 2018-12-19 17:45:16 +00:00
parent bf90b4c1c5
commit 97884673fe

View File

@ -426,7 +426,9 @@ void
cpu_halt(void)
{
panic("cpu_halt");
intr_disable();
for (;;)
__asm __volatile("wfi");
}
/*