Kernel: Make sure PageTable::fast_page gets passed page aligned addr
This commit is contained in:
@@ -206,6 +206,7 @@ namespace Kernel
|
||||
{
|
||||
ASSERT(s_kernel);
|
||||
ASSERT(paddr);
|
||||
ASSERT(paddr % PAGE_SIZE == 0);
|
||||
|
||||
ASSERT(s_fast_page_lock.current_processor_has_lock());
|
||||
|
||||
|
||||
@@ -503,6 +503,7 @@ namespace Kernel
|
||||
{
|
||||
ASSERT(s_kernel);
|
||||
ASSERT(paddr);
|
||||
ASSERT(paddr % PAGE_SIZE == 0);
|
||||
|
||||
ASSERT(s_fast_page_lock.current_processor_has_lock());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user