mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-04 01:05:58 +03: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
Notes:
sideshowbarker
2024-07-19 10:29:39 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/37329c2009d
@ -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…
Reference in New Issue
Block a user