mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 02:47:35 +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:
parent
fd740829d1
commit
37329c2009
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue