xref: /optee_os/core/arch/riscv/kernel/idle.c (revision a4c2e0cb4e4fcb0c760fb3daf9172e682a4e3628)
1 // SPDX-License-Identifier: BSD-2-Clause
2 /*
3  * Copyright 2022 NXP
4  */
5 
6 #include <riscv.h>
7 #include <kernel/panic.h>
8 
9 void cpu_idle(void)
10 {
11 	/* ensure memory operations were complete */
12 	mb();
13 	/* stall the hart */
14 	wfi();
15 }
16