summaryrefslogtreecommitdiff
path: root/Kernel
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2020-01-01 17:21:43 +0100
committerAndreas Kling <awesomekling@gmail.com>2020-01-01 17:21:43 +0100
commit37329c2009d167a982274ede30345c58dc673c9d (patch)
tree9b6618d13bea212754489bc60437e5f6467a5274 /Kernel
parentfd740829d1976c7da2372b60e36d1ae569d6148d (diff)
downloadserenity-37329c2009d167a982274ede30345c58dc673c9d.zip
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.
Diffstat (limited to 'Kernel')
-rw-r--r--Kernel/Arch/i386/CPU.h2
1 files changed, 1 insertions, 1 deletions
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;
}
};