From: Matthias Kruk Date: Wed, 25 Sep 2019 09:24:53 +0000 (+0900) Subject: Use KERNEL_CODE macro when initializing the IDT, instead of numerals X-Git-Url: https://git.corax.cc/?a=commitdiff_plain;h=1cf7d329b0f4b71b829fbfc52b25aa6886dda360;p=corax Use KERNEL_CODE macro when initializing the IDT, instead of numerals --- 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)