diff options
author | Luke <luke.wilde@live.co.uk> | 2020-12-29 00:24:33 +0000 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-12-29 01:41:16 +0100 |
commit | eb38fe4a82e77e7bc97fd2f6310b6168e8feb5db (patch) | |
tree | 7df7440e5609768eaa3616d7b22c2c7d2156ae53 /Kernel/VM/ProcessPagingScope.h | |
parent | c006952aeb41bbfa4b478e89a699d9f80dd068ba (diff) | |
download | serenity-eb38fe4a82e77e7bc97fd2f6310b6168e8feb5db.zip |
Kernel/VM: Make local_offset in PhysicalRegion::free_page_at unsigned
Anything above or equal to the 2 GB mark has the left most bit set
(0x8000...), which was falsely interpreted as negative due to
local_offset being signed.
This makes it unsigned by using FlatPtr. To check for underflow as
was intended, lets use Checked instead.
Fixes #4585
Diffstat (limited to 'Kernel/VM/ProcessPagingScope.h')
0 files changed, 0 insertions, 0 deletions