Luna/kernel/src/memory/Paging.cpp

16 lines
304 B
C++
Raw Normal View History

2022-10-06 15:13:34 +00:00
#include "memory/Paging.h"
#pragma GCC push_options
#pragma GCC diagnostic ignored "-Wconversion"
void PageDirectoryEntry::set_address(uint64_t addr)
2022-10-06 15:13:34 +00:00
{
2022-10-13 16:42:53 +00:00
this->address = (addr >> 12);
}
uint64_t PageDirectoryEntry::get_address()
{
return (uint64_t)this->address << 12;
2022-10-06 15:13:34 +00:00
}
#pragma GCC pop_options