Simplifications and indentation correction.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37191 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -293,8 +293,6 @@ X86VMTranslationMapPAE::Unmap(addr_t start, addr_t end)
|
|||||||
InvalidatePage(start);
|
InvalidatePage(start);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pinner.Unlock();
|
|
||||||
} while (start != 0 && start < end);
|
} while (start != 0 && start < end);
|
||||||
|
|
||||||
return B_OK;
|
return B_OK;
|
||||||
@@ -542,7 +540,7 @@ X86VMTranslationMapPAE::Protect(addr_t start, addr_t end, uint32 attributes,
|
|||||||
oldEntry = X86PagingMethodPAE::TestAndSetPageTableEntry(
|
oldEntry = X86PagingMethodPAE::TestAndSetPageTableEntry(
|
||||||
&pageTable[index],
|
&pageTable[index],
|
||||||
(entry & ~(X86_PAE_PTE_PROTECTION_MASK
|
(entry & ~(X86_PAE_PTE_PROTECTION_MASK
|
||||||
| X86_PAE_PTE_MEMORY_TYPE_MASK))
|
| X86_PAE_PTE_MEMORY_TYPE_MASK))
|
||||||
| newProtectionFlags
|
| newProtectionFlags
|
||||||
| X86PagingMethodPAE::MemoryTypeToPageTableEntryFlags(
|
| X86PagingMethodPAE::MemoryTypeToPageTableEntryFlags(
|
||||||
memoryType),
|
memoryType),
|
||||||
@@ -559,8 +557,6 @@ X86VMTranslationMapPAE::Protect(addr_t start, addr_t end, uint32 attributes,
|
|||||||
InvalidatePage(start);
|
InvalidatePage(start);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pinner.Unlock();
|
|
||||||
} while (start != 0 && start < end);
|
} while (start != 0 && start < end);
|
||||||
|
|
||||||
return B_OK;
|
return B_OK;
|
||||||
|
|||||||
Reference in New Issue
Block a user