VMM - touch_page sets flags

This commit is contained in:
Thomas Lovén 2017-12-27 23:20:15 +01:00
parent 86d8aea9ea
commit 59ffd9d5f5

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);
}