From 9d45fd97d26c9fbf57a700361416813ef1a33ae7 Mon Sep 17 00:00:00 2001 From: himanshi1505 Date: Fri, 24 Apr 2026 23:56:38 +0530 Subject: [PATCH] fix(mmu): remove duplicate NSEGS definition NSEGS and its accompanying comment were defined twice in mmu.h (once near the segment-selector block, once again below the STA_* flags). Drop the second copy. --- mmu.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/mmu.h b/mmu.h index c829a22..1e3f472 100644 --- a/mmu.h +++ b/mmu.h @@ -51,8 +51,6 @@ struct segdesc { #define STA_W 0x2 // Writeable (non-executable segments) #define STA_R 0x2 // Readable (executable segments) -// cpu->gdt[NSEGS] holds the above segments. -#define NSEGS 6 #define DPL_USER 0x3 // User DPL