mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-03 14:48:57 +00:00
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:
parent
39a8ee1351
commit
5268e09865
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=342221
@ -426,7 +426,9 @@ void
|
||||
cpu_halt(void)
|
||||
{
|
||||
|
||||
panic("cpu_halt");
|
||||
intr_disable();
|
||||
for (;;)
|
||||
__asm __volatile("wfi");
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user