From 9716891effe8e7d9a172955b6a7530d9cadc1c38 Mon Sep 17 00:00:00 2001 From: apio Date: Thu, 29 Sep 2022 19:20:31 +0200 Subject: [PATCH] do not fault in the userspace demo >.< --- kernel/src/main.asm | 1 - 1 file changed, 1 deletion(-) diff --git a/kernel/src/main.asm b/kernel/src/main.asm index c4c514cd..66394efa 100644 --- a/kernel/src/main.asm +++ b/kernel/src/main.asm @@ -22,7 +22,6 @@ _userspace: int 42h ; syscall cmp rcx, 0 jne .loop - cli ; WE ARE IN RING 3!! So this should GPF and the kernel should exit us as "misbehaved" mov rax, 0 int 42h ; Exit current task .message: