mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-22 02:09:24 +00:00
Kernel: Fix definition of CAP_TO_MASK
The default type for integer literals is signed int, so we were accidentally smearing those bits to the upper 32 bit of the result. This resulted in extremely unreasonable timeouts.
This commit is contained in:
parent
904ebb74a9
commit
a2b2209ea5
Notes:
sideshowbarker
2024-07-17 21:11:12 +09:00
Author: https://github.com/IdanHo
Commit: a2b2209ea5
Pull-request: https://github.com/SerenityOS/serenity/pull/24072
Reviewed-by: https://github.com/spholz
1 changed files with 1 additions and 1 deletions
|
@ -53,7 +53,7 @@ static constexpr u16 ID_CTRL_SHADOW_DBBUF_MASK = 0x0100;
|
|||
static constexpr u8 CAP_DBL_SHIFT = 32;
|
||||
static constexpr u8 CAP_DBL_MASK = 0xf;
|
||||
static constexpr u8 CAP_TO_SHIFT = 24;
|
||||
static constexpr u64 CAP_TO_MASK = 0xff << CAP_TO_SHIFT;
|
||||
static constexpr u64 CAP_TO_MASK = 0xffu << CAP_TO_SHIFT;
|
||||
static constexpr u32 MQES(u64 cap)
|
||||
{
|
||||
return (cap & 0xffff) + 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue