VMM - touch_page sets flags

This commit is contained in:
thomas committed 2018-03-20 14:11:22 +01:00
1 parent 86d8aea9ea
commit 59ffd9d5f5
1 file changed
+6
+6
View File
@@ -140,3 +140,9 @@ TEST(touch_page_adds_P1)
ASSERT_EQ_PTR(p2[3], (uintptr_t)p1 | PAGE_PRESENT);
}
TEST(touch_page_sets_flags)
{
touch_page(p4, 0, 0x123);
ASSERT_EQ_PTR(p2[0], (uintptr_t)p1 | 0x123 | PAGE_PRESENT);
}