From af6b5d82b590736eb6a5a6f7298bb2e700e67b83 Mon Sep 17 00:00:00 2001 From: wuyuxin Date: Mon, 16 Nov 2020 20:44:51 +0800 Subject: [PATCH] Update linux-initialization-2.md --- Initialization/linux-initialization-2.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Initialization/linux-initialization-2.md b/Initialization/linux-initialization-2.md index 4046604..d2d4664 100644 --- a/Initialization/linux-initialization-2.md +++ b/Initialization/linux-initialization-2.md @@ -115,7 +115,7 @@ Where: * `Offset` - is offset to entry point of an interrupt handler; * `DPL` - Descriptor Privilege Level; * `P` - Segment Present flag; -* `Segment selector` - a code segment selector in GDT or LDT (actually it always point to GDT in linux) +* `Segment selector` - a code segment selector in GDT or LDT (actually in linux, it must point to a valid descriptor in your GDT.) ```C #define __KERNEL_CS (GDT_ENTRY_KERNEL_CS*8) // 0000 0000 0001 0000 #define GDT_ENTRY_KERNEL_CS 2