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
bf90b4c1c5
commit
97884673fe
@ -426,7 +426,9 @@ void
|
||||
cpu_halt(void)
|
||||
{
|
||||
|
||||
panic("cpu_halt");
|
||||
intr_disable();
|
||||
for (;;)
|
||||
__asm __volatile("wfi");
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user