From 75ec633805db108bfddb6454ff7f8d812475feaf Mon Sep 17 00:00:00 2001 From: dzwdz Date: Mon, 11 Apr 2022 23:29:30 +0200 Subject: kernel: implement `cpu_pause()` in assembly, remove `irq_interrupt_flag()` --- src/kernel/arch/generic.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/kernel/arch/generic.h') diff --git a/src/kernel/arch/generic.h b/src/kernel/arch/generic.h index fcc228e..01a3826 100644 --- a/src/kernel/arch/generic.h +++ b/src/kernel/arch/generic.h @@ -18,6 +18,9 @@ void halt_cpu(void); __attribute__((noreturn)) void cpu_shutdown(void); +/** on x86: waits for an IRQ */ +void cpu_pause(void); + // src/arch/i386/sysenter.s _Noreturn void sysexit(struct registers); -- cgit v1.2.3