forked from Bananymous/banan-os
Kernel: Make PageTable non-copyable and non-movable
Also PageTable destructor now verifies that is has allocated something instead of assuming paddr of 0.
This commit is contained in:
@@ -272,6 +272,9 @@ namespace Kernel
|
||||
|
||||
PageTable::~PageTable()
|
||||
{
|
||||
if (m_highest_paging_struct == 0)
|
||||
return;
|
||||
|
||||
uint64_t* pdpt = reinterpret_cast<uint64_t*>(P2V(m_highest_paging_struct));
|
||||
|
||||
for (uint32_t pdpte = 0; pdpte < 3; pdpte++)
|
||||
|
||||
Reference in New Issue
Block a user