summaryrefslogtreecommitdiff
path: root/src/kernel/arch/generic.h
diff options
context:
space:
mode:
authordzwdz2022-04-11 23:29:30 +0200
committerdzwdz2022-04-11 23:29:30 +0200
commit75ec633805db108bfddb6454ff7f8d812475feaf (patch)
tree6d558a64569648b9b425e3a568edc67c6d06298b /src/kernel/arch/generic.h
parent07b7e8ad787180b7e3eaccc819b9e5c4802edfcd (diff)
kernel: implement `cpu_pause()` in assembly, remove `irq_interrupt_flag()`
Diffstat (limited to 'src/kernel/arch/generic.h')
-rw-r--r--src/kernel/arch/generic.h3
1 files changed, 3 insertions, 0 deletions
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);