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:
Mark Johnston 2018-12-19 17:45:16 +00:00
parent 39a8ee1351
commit 5268e09865
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=342221

View File

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