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:
Ingo Weinhold 2010-06-21 13:58:05 +00:00
parent a19f81b6c7
commit 8bcc0694ad

View File

@ -293,8 +293,6 @@ X86VMTranslationMapPAE::Unmap(addr_t start, addr_t end)
InvalidatePage(start);
}
}
pinner.Unlock();
} while (start != 0 && start < end);
return B_OK;
@ -542,7 +540,7 @@ X86VMTranslationMapPAE::Protect(addr_t start, addr_t end, uint32 attributes,
oldEntry = X86PagingMethodPAE::TestAndSetPageTableEntry(
&pageTable[index],
(entry & ~(X86_PAE_PTE_PROTECTION_MASK
| X86_PAE_PTE_MEMORY_TYPE_MASK))
| X86_PAE_PTE_MEMORY_TYPE_MASK))
| newProtectionFlags
| X86PagingMethodPAE::MemoryTypeToPageTableEntryFlags(
memoryType),
@ -559,8 +557,6 @@ X86VMTranslationMapPAE::Protect(addr_t start, addr_t end, uint32 attributes,
InvalidatePage(start);
}
}
pinner.Unlock();
} while (start != 0 && start < end);
return B_OK;