[kernel] Remove unecessary functions from page manager

In preparation for removing more from page manager, removed several
unecessary functions and all their callsites.
This commit is contained in:
2020-09-17 01:33:10 -07:00
parent 9aa08a70cf
commit 09575370ce
6 changed files with 21 additions and 140 deletions

View File

@@ -53,4 +53,9 @@ namespace memory {
/// through the page_offset area.
inline bool page_mappable(uintptr_t a) { return (a & page_offset) == 0; }
/// Convert a physical address to a virtual one (in the offset-mapped area)
template <typename T> T * to_virtual(uintptr_t a) {
return reinterpret_cast<T*>(a|page_offset);
}
} // namespace memory