1
0
Fork 0
forked from suyu/suyu

KPageTable: Remove extraneous assert

Since start is always 0 and VAddr is unsigned, we can safely remove this assert.
This commit is contained in:
Morph 2022-06-21 21:28:54 -04:00
parent ab0e71d7cb
commit 1c8f6ba18f

View file

@ -65,7 +65,6 @@ ResultCode KPageTable::InitializeForProcess(FileSys::ProgramAddressSpaceType as_
std::size_t alias_region_size{GetSpaceSize(KAddressSpaceInfo::Type::Alias)};
std::size_t heap_region_size{GetSpaceSize(KAddressSpaceInfo::Type::Heap)};
ASSERT(start <= code_addr);
ASSERT(code_addr < code_addr + code_size);
ASSERT(code_addr + code_size - 1 <= end - 1);