From 1cf7d329b0f4b71b829fbfc52b25aa6886dda360 Mon Sep 17 00:00:00 2001 From: Matthias Kruk Date: Wed, 25 Sep 2019 18:24:53 +0900 Subject: [PATCH] Use KERNEL_CODE macro when initializing the IDT, instead of numerals --- kernel/arch/init.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/arch/init.S b/kernel/arch/init.S index ffe7bcf..c25f7d1 100644 --- a/kernel/arch/init.S +++ b/kernel/arch/init.S @@ -311,7 +311,7 @@ _update_cs: addl $IDT_OFFSET, %edi movl $DPL_USER, 16(%esp) - movl $8, 8(%esp) + movl $KERNEL_CODE, 8(%esp) movl $SD_TYPE_INT_GATE, 4(%esp) movl %edi, (%esp) -- 2.47.3