diff options
Diffstat (limited to 'src/arch/riscv')
-rw-r--r-- | src/arch/riscv/include/arch/hlt.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/arch/riscv/include/arch/hlt.h b/src/arch/riscv/include/arch/hlt.h index bdefbb5de7..b2643fdfdf 100644 --- a/src/arch/riscv/include/arch/hlt.h +++ b/src/arch/riscv/include/arch/hlt.h @@ -1,6 +1,11 @@ /* SPDX-License-Identifier: GPL-2.0-only */ +#ifndef ARCH_HLT_H +#define ARCH_HLT_H + static __always_inline void hlt(void) { while (1); } + +#endif /* ARCH_HLT_H */ |