mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-11 18:50:50 +00:00
Kernel: Switch static_asserts of a type size to AK::AssertSize
This will provide better debug ability when the size comparison fails.
This commit is contained in:
parent
112de58fe0
commit
472454cded
Notes:
sideshowbarker
2024-07-18 04:40:22 +09:00
Author: https://github.com/bgianfo
Commit: 472454cded
Pull-request: https://github.com/SerenityOS/serenity/pull/9834
Reviewed-by: https://github.com/AtkinsSJ
Reviewed-by: https://github.com/alimpfard
Reviewed-by: https://github.com/linusg
15 changed files with 25 additions and 19 deletions
|
@ -83,7 +83,7 @@ static_assert(__builtin_offsetof(HPETRegistersBlock, timers[1]) == 0x120);
|
|||
// Note: The HPET specification says it reserves the range of byte 0x160 to
|
||||
// 0x400 for comparators 3-31, but for implementing all 32 comparators the HPET
|
||||
// MMIO space has to be 1280 bytes and not 1024 bytes.
|
||||
static_assert(sizeof(HPETRegistersBlock) == 0x500);
|
||||
static_assert(AssertSize<HPETRegistersBlock, 0x500>());
|
||||
|
||||
static u64 read_register_safe64(const HPETRegister& reg)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue