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/i386/sysenter.s | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/kernel/arch/i386/sysenter.s') diff --git a/src/kernel/arch/i386/sysenter.s b/src/kernel/arch/i386/sysenter.s index db65a8c..ade69ec 100644 --- a/src/kernel/arch/i386/sysenter.s +++ b/src/kernel/arch/i386/sysenter.s @@ -48,6 +48,8 @@ sysenter_setup: ret sysenter_stage1: + cli /* prevent random IRQs in the middle of kernel code */ + // disable paging // I don't want to damage any of the registers passed in by the user, // so i'm using ESP as a temporary register. At this point there's nothing -- cgit v1.2.3