summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--i386/intel/pmap.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/i386/intel/pmap.c b/i386/intel/pmap.c
index 5cfffb5..cf7a736 100644
--- a/i386/intel/pmap.c
+++ b/i386/intel/pmap.c
@@ -1585,8 +1585,8 @@ void pmap_page_protect(
/*
* Consistency checks.
*/
- /* assert(*pte & INTEL_PTE_VALID); XXX */
- /* assert(pte_to_phys(*pte) == phys); */
+ assert(*pte & INTEL_PTE_VALID);
+ assert(pte_to_pa(*pte) == phys);
/*
* Remove the mapping if new protection is NONE
@@ -2463,13 +2463,11 @@ phys_attribute_clear(
va = pv_e->va;
pte = pmap_pte(pmap, va);
-#if 0
/*
* Consistency checks.
*/
assert(*pte & INTEL_PTE_VALID);
- /* assert(pte_to_phys(*pte) == phys); */
-#endif
+ assert(pte_to_pa(*pte) == phys);
/*
* Clear modify or reference bits.
@@ -2556,13 +2554,11 @@ phys_attribute_test(
va = pv_e->va;
pte = pmap_pte(pmap, va);
-#if 0
/*
* Consistency checks.
*/
assert(*pte & INTEL_PTE_VALID);
- /* assert(pte_to_phys(*pte) == phys); */
-#endif
+ assert(pte_to_pa(*pte) == phys);
}
/*