From 37329c2009d167a982274ede30345c58dc673c9d Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Wed, 1 Jan 2020 17:21:43 +0100 Subject: Kernel: Fix typo in Descriptor::set_limit() x86 descriptor limits are 20 bytes, not 24 bytes. This was already a 4-bit wide bitfield, so no damage done, but let's be correct. --- Kernel/Arch/i386/CPU.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Kernel') diff --git a/Kernel/Arch/i386/CPU.h b/Kernel/Arch/i386/CPU.h index 9542383a2f..2fa2136a1f 100644 --- a/Kernel/Arch/i386/CPU.h +++ b/Kernel/Arch/i386/CPU.h @@ -81,7 +81,7 @@ union [[gnu::packed]] Descriptor void set_limit(u32 l) { limit_lo = (u32)l & 0xffff; - limit_hi = ((u32)l >> 16) & 0xff; + limit_hi = ((u32)l >> 16) & 0xf; } }; -- cgit v1.2.3