summaryrefslogtreecommitdiff
path: root/src/kernel/arch/i386/sysenter.s
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/i386/sysenter.s
parent07b7e8ad787180b7e3eaccc819b9e5c4802edfcd (diff)
kernel: implement `cpu_pause()` in assembly, remove `irq_interrupt_flag()`
Diffstat (limited to 'src/kernel/arch/i386/sysenter.s')
-rw-r--r--src/kernel/arch/i386/sysenter.s2
1 files changed, 2 insertions, 0 deletions
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