mirror of
https://github.com/Fennix-Project/Kernel.git
synced 2025-07-14 16:59:20 +00:00
Oops, SetFlag() should not clear the entire data
This commit is contained in:
@ -7,7 +7,7 @@ namespace Memory
|
||||
void PageDirectoryEntry::ClearFlags() { this->Value.raw = 0; }
|
||||
void PageDirectoryEntry::SetFlag(uint64_t Flag, bool Enabled)
|
||||
{
|
||||
this->Value.raw = 0;
|
||||
this->Value.raw &= ~Flag;
|
||||
if (Enabled)
|
||||
this->Value.raw |= Flag;
|
||||
}
|
||||
|
Reference in New Issue
Block a user