1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 14:37:45 +00:00

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.
This commit is contained in:
Andreas Kling 2020-01-01 17:21:43 +01:00
parent fd740829d1
commit 37329c2009

View file

@ -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;
}
};