Kernel: Make sure PageTable::fast_page gets passed page aligned addr

This commit is contained in:
Bananymous 2025-06-30 01:48:47 +03:00
parent c8c05f62b4
commit 13d33995cb
2 changed files with 2 additions and 0 deletions

View File

@ -206,6 +206,7 @@ namespace Kernel
{ {
ASSERT(s_kernel); ASSERT(s_kernel);
ASSERT(paddr); ASSERT(paddr);
ASSERT(paddr % PAGE_SIZE == 0);
ASSERT(s_fast_page_lock.current_processor_has_lock()); ASSERT(s_fast_page_lock.current_processor_has_lock());

View File

@ -503,6 +503,7 @@ namespace Kernel
{ {
ASSERT(s_kernel); ASSERT(s_kernel);
ASSERT(paddr); ASSERT(paddr);
ASSERT(paddr % PAGE_SIZE == 0);
ASSERT(s_fast_page_lock.current_processor_has_lock()); ASSERT(s_fast_page_lock.current_processor_has_lock());